dsh-token-use 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +105 -0
- package/README.md +105 -0
- package/client/client.js +428 -0
- package/cordis.patch.yml +7 -0
- package/lib/index.js +727 -0
- package/lib/scan-worker.js +12 -0
- package/package.json +66 -0
package/client/client.js
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
(()=>{var tw=Object.defineProperty;var kt=(t,e)=>{for(var r in e)tw(t,r,{get:e[r],enumerable:!0})};var dm={};kt(dm,{Axis:()=>Ec,ChartView:()=>bt,ComponentModel:()=>me,ComponentView:()=>je,List:()=>tc,Model:()=>Se,PRIORITY:()=>Od,SeriesModel:()=>hr,color:()=>ql,connect:()=>zL,dataTool:()=>qL,dependencies:()=>SL,disConnect:()=>FL,disconnect:()=>LT,dispose:()=>VL,env:()=>Q,extendChartView:()=>xP,extendComponentModel:()=>gP,extendComponentView:()=>yP,extendSeriesModel:()=>_P,format:()=>fm,getCoordinateSystemDimensions:()=>GL,getInstanceByDom:()=>Pd,getInstanceById:()=>HL,getMap:()=>XL,graphic:()=>um,helper:()=>tm,init:()=>UL,innerDrawElementOnCanvas:()=>yo,matrix:()=>jr,number:()=>sm,parseGeoJSON:()=>Cc,parseGeoJson:()=>Cc,registerAction:()=>Hi,registerCoordinateSystem:()=>Bd,registerCustomSeries:()=>YL,registerLayout:()=>Ud,registerLoading:()=>$f,registerLocale:()=>Ku,registerMap:()=>Fd,registerPostInit:()=>Nd,registerPostUpdate:()=>kd,registerPreprocessor:()=>jf,registerProcessor:()=>Qf,registerTheme:()=>Rd,registerTransform:()=>Vd,registerUpdateLifecycle:()=>Js,registerVisual:()=>ci,setCanvasCreator:()=>WL,setPlatformAPI:()=>El,throttle:()=>Ws,time:()=>lm,use:()=>Et,util:()=>cm,vector:()=>mr,version:()=>xL,zrUtil:()=>ne,zrender:()=>lu});var Kc=function(t,e){return Kc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Kc(t,e)};function I(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kc(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var lu={};kt(lu,{dispose:()=>zE,disposeAll:()=>FE,getElementSSRData:()=>HE,getInstance:()=>VE,init:()=>su,registerPainter:()=>th,registerSSRDataGetter:()=>rh,version:()=>GE});var rw=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),iw=(function(){function t(){this.browser=new rw,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 t})(),yi=new iw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yi.wxa=!0,yi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yi.worker=!0:!yi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(yi.node=!0,yi.svgSupported=!0):nw(navigator.userAgent,yi);function nw(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var Q=yi;var ne={};kt(ne,{EPSILON:()=>Sw,HashMap:()=>pg,RADIAN_TO_DEGREE:()=>np,assert:()=>ze,assignProps:()=>ep,bind:()=>fe,clone:()=>j,concatArray:()=>ip,createCanvas:()=>mw,createHashMap:()=>H,createObject:()=>Zr,curry:()=>Te,defaults:()=>J,disableUserSelect:()=>Fo,each:()=>b,eqNaN:()=>qr,extend:()=>P,filter:()=>we,find:()=>tp,guid:()=>Bo,hasOwn:()=>Me,indexOf:()=>ee,inherits:()=>Uo,isArray:()=>R,isArrayLike:()=>Ue,isBuiltInObject:()=>Qc,isDom:()=>$i,isFunction:()=>V,isGradientObject:()=>Xr,isImagePatternObject:()=>rp,isNumber:()=>le,isObject:()=>z,isPrimitive:()=>da,isRegExp:()=>yw,isString:()=>N,isStringSafe:()=>ga,isTypedArray:()=>Re,keys:()=>se,logError:()=>Ji,map:()=>B,merge:()=>oe,mergeAll:()=>dw,mixin:()=>Qe,noop:()=>Le,normalizeCssArray:()=>tn,reduce:()=>st,retrieve:()=>en,retrieve2:()=>G,retrieve3:()=>$t,setAsPrimitive:()=>rn,slice:()=>zo,trim:()=>$e});var wl=12,aw="sans-serif",Qt=wl+"px "+aw,ow=20,sw=100,lw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function uw(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-ow)/sw;e[i]=n}return e}var fw=uw(lw),Oe={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Oe.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==i&&(e=t.font=i||Qt),t.measureText(r);r=r||"",i=i||Qt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||wl,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=fw[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function El(t){for(var e in Oe)Oe.hasOwnProperty(e)&&t[e]&&(Oe[e]=t[e])}var lg=st(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),ug=st(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),ma=Object.prototype.toString,Al=Array.prototype,cw=Al.forEach,pw=Al.filter,$c=Al.slice,hw=Al.map,sg=function(){}.constructor,Dl=sg?sg.prototype:null,Jc="__proto__",jc=2311,vw=Math.pow(2,53)-1;function Bo(){return jc>=vw&&(jc=0),jc++}function Ji(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function j(t){if(t==null||typeof t!="object")return t;var e=t,r=ma.call(t);if(r==="[object Array]"){if(!da(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=j(t[i])}}else if(ug[r]){if(!da(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!lg[r]&&!da(t)&&!$i(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==Jc&&(e[o]=j(t[o]))}return e}function oe(t,e,r){if(!z(e)||!z(t))return r?j(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Jc){var n=t[i],a=e[i];z(a)&&z(n)&&!R(a)&&!R(n)&&!$i(a)&&!$i(n)&&!Qc(a)&&!Qc(n)&&!da(a)&&!da(n)?oe(n,a,r):(r||!(i in t))&&(t[i]=j(e[i]))}return t}function dw(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=oe(r,t[i],e);return r}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==Jc&&(t[r]=e[r]);return t}function ep(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function J(t,e,r){for(var i=se(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var mw=Oe.createCanvas;function ee(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function Uo(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function Qe(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else J(t,e,r)}function Ue(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function b(t,e,r){if(t&&e)if(t.forEach&&t.forEach===cw)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function B(t,e,r){if(!t)return[];if(!e)return zo(t);if(t.map&&t.map===hw)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function st(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function we(t,e,r){if(!t)return[];if(!e)return zo(t);if(t.filter&&t.filter===pw)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function tp(t,e,r){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}}function se(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function gw(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat($c.call(arguments)))}}var fe=Dl&&V(Dl.bind)?Dl.call.bind(Dl.bind):gw;function Te(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat($c.call(arguments)))}}function R(t){return Array.isArray?Array.isArray(t):ma.call(t)==="[object Array]"}function V(t){return typeof t=="function"}function N(t){return typeof t=="string"}function ga(t){return ma.call(t)==="[object String]"}function le(t){return typeof t=="number"}function z(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Qc(t){return!!lg[ma.call(t)]}function Re(t){return!!ug[ma.call(t)]}function $i(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Xr(t){return t.colorStops!=null}function rp(t){return t.image!=null}function yw(t){return ma.call(t)==="[object RegExp]"}function qr(t){return t!==t}function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function G(t,e){return t??e}function $t(t,e,r){return t??e??r}function zo(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return $c.apply(t,e)}function tn(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function ze(t,e){if(!t)throw new Error(e)}function $e(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fg="__ec_primitive__";function rn(t){t[fg]=!0}function da(t){return t[fg]}var _w=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return se(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})(),cg=typeof Map=="function";function xw(){return cg?new Map:new _w}var pg=(function(){function t(e){var r=R(e);this.data=xw();var i=this;e instanceof t?e.each(n):e&&b(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return cg?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function H(t){return new pg(t)}function ip(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function Zr(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&P(r,e),r}function Fo(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Me(t,e){return t.hasOwnProperty(e)}function Le(){}var np=180/Math.PI,Sw=Number.EPSILON||Math.pow(2,-52);var mr={};kt(mr,{add:()=>Ml,applyTransform:()=>Fe,clone:()=>ap,copy:()=>Tw,create:()=>Kr,dist:()=>fp,distSquare:()=>_i,distance:()=>Go,distanceSquare:()=>hg,div:()=>Dw,dot:()=>Aw,len:()=>sp,lenSquare:()=>lp,length:()=>Cw,lengthSquare:()=>ww,lerp:()=>Ow,max:()=>er,min:()=>Jt,mul:()=>Ew,negate:()=>Mw,normalize:()=>up,scale:()=>Ho,scaleAndAdd:()=>bw,set:()=>Vo,sub:()=>op});function Kr(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Tw(t,e){return t[0]=e[0],t[1]=e[1],t}function ap(t){return[t[0],t[1]]}function Vo(t,e,r){return t[0]=e,t[1]=r,t}function Ml(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function bw(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t}function op(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function sp(t){return Math.sqrt(lp(t))}var Cw=sp;function lp(t){return t[0]*t[0]+t[1]*t[1]}var ww=lp;function Ew(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function Dw(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function Aw(t,e){return t[0]*e[0]+t[1]*e[1]}function Ho(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function up(t,e){var r=sp(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Go(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var fp=Go;function hg(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var _i=hg;function Mw(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Ow(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Fe(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function Jt(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function er(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ya=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),Lw=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ya(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new ya(r,e),"drag",e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ya(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ya(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ya(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ya(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),vg=Lw;var Iw=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),rt=Iw;var Pw=Math.log(2);function cp(t,e,r,i,n,a){var o=i+"-"+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/Pw);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*cp(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function pp(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=cp(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*cp(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var Ol="___zrEVENTSAVED",hp=[];function dg(t,e,r,i,n){return Ll(hp,e,i,n,!0)&&Ll(t,r,hp[0],hp[1])}function mg(t,e){t&&r(t),e&&r(e);function r(i){var n=i[Ol];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Ol])}}function Ll(t,e,r,i,n){if(e.getBoundingClientRect&&Q.domSupported&&!vp(e)){var a=e[Ol]||(e[Ol]={}),o=Rw(e,a),s=Nw(o,a,n);if(s)return s(t,r,i),!0}return!1}function Rw(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function Nw(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?pp(s,o):pp(o,s))}function vp(t){return t.nodeName.toUpperCase()==="CANVAS"}var kw=/([&<>"'])/g,Bw={"&":"&","<":"<",">":">",'"':""","'":"'"};function qe(t){return t==null?"":(t+"").replace(kw,function(e,r){return Bw[r]})}var Uw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dp=[],zw=Q.browser.firefox&&+Q.browser.version.split(".")[0]<39;function Il(t,e,r,i){return r=r||{},i?gg(t,e,r):zw&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):gg(t,e,r),r}function gg(t,e,r){if(Q.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(vp(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Ll(dp,t,i,n)){r.zrX=dp[0],r.zrY=dp[1];return}}r.zrX=r.zrY=0}function Pl(t){return t||window.event}function Dt(t,e,r){if(e=Pl(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Il(t,o,e,r)}else{Il(t,e,e,r);var a=Fw(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Uw.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Fw(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function yg(t,e,r,i){t.addEventListener(e,r,i)}function _g(t,e,r,i){t.removeEventListener(e,r,i)}var Rl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Sg=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Il(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in gp)if(gp.hasOwnProperty(r)){var i=gp[r](this._track,e);if(i)return i}},t})();function xg(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function Vw(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var gp={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=xg(i)/xg(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Vw(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};var jr={};kt(jr,{clone:()=>Hw,copy:()=>nn,create:()=>it,identity:()=>tr,invert:()=>Bt,mul:()=>gr,rotate:()=>an,scale:()=>yp,translate:()=>_a});function it(){return[1,0,0,1,0,0]}function tr(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function nn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function gr(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function _a(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function an(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function yp(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Bt(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}function Hw(t){var e=it();return nn(e,t),e}var Gw=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})(),be=Gw;var fn=Math.min,xa=Math.max,Sp=Math.abs,Tg=["x","y"],Yw=["width","height"],on=new be,sn=new be,ln=new be,un=new be,Ut=bp(),Yo=Ut.minTv,Tp=Ut.maxTv,Wo=[0,0],Qr=(function(){function t(e,r,i,n){_p(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=fn(e.x,this.x),i=fn(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=xa(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return Ww(it(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&be.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=_p(Xw,e.x,e.y,e.width,e.height)),r instanceof t||(r=_p(qw,r.x,r.y,r.width,r.height));var s=!!i;Ut.reset(n,s);var l=Ut.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,d=r.y+l,g=r.y+r.height-l;if(u>f||c>p||h>v||d>g)return!1;var m=!(f<h||v<u||p<d||g<c);return(s||a)&&(Wo[0]=1/0,Wo[1]=0,Cg(u,f,h,v,0,s,a,o),Cg(c,p,d,g,1,s,a,o),s&&be.copy(i,m?Ut.useDir?Ut.dirMinTv:Yo:Tp)),m},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){bg(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&bg(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}on.x=ln.x=r.x,on.y=un.y=r.y,sn.x=un.x=r.x+r.width,sn.y=ln.y=r.y+r.height,on.transform(i),un.transform(i),sn.transform(i),ln.transform(i),e.x=fn(on.x,sn.x,ln.x,un.x),e.y=fn(on.y,sn.y,ln.y,un.y);var l=xa(on.x,sn.x,ln.x,un.x),u=xa(on.y,sn.y,ln.y,un.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=tr(e||[]),_a(e,e,Vo(xp,-r.x,-r.y)),yp(e,e,Vo(xp,n,a)),_a(e,e,Vo(xp,i.x,i.y)),e},t})(),VN=Qr.create,_p=Qr.set,bg=Qr.copy,Ww=Qr.calculateTransform,HN=Qr.applyTransform,GN=Qr.contain,Xw=new Qr(0,0,0,0),qw=new Qr(0,0,0,0),xp=[];function Cg(t,e,r,i,n,a,o,s){var l=Sp(e-r),u=Sp(i-t),f=fn(l,u),c=Tg[n],p=Tg[1-n],h=Yw[n];e<r||i<t?l<u?(a&&(Tp[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(Tp[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=xa(t,r),o[h]=fn(e,i)-o[c]),a&&(f<Wo[0]||Ut.useDir)&&(Wo[0]=fn(f,Wo[0]),(l<u||!Ut.bidirectional)&&(Yo[c]=l,Yo[p]=0,Ut.useDir&&Ut.calcDirMTV()),(l>=u||!Ut.bidirectional)&&(Yo[c]=-u,Yo[p]=0,Ut.useDir&&Ut.calcDirMTV())))}function bp(){var t=0,e=new be,r=new be,i={minTv:new be,maxTv:new be,useDir:!1,dirMinTv:new be,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=xa(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Sp(a)<1e-10}return i}var q=Qr;var Eg="silent";function Zw(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kw}}function Kw(){Rl(this.event)}var jw=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(rt),Xo=(function(){function t(e,r){this.x=e,this.y=r}return t})(),Qw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Cp=new q(0,0,0,0),Dg=(function(t){I(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new Xo(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new jw,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new vg(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(Qw,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Ag(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Xo(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Xo(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Zw(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Xo(r,i);if(wg(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new q(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Cp.copy(p.getBoundingRect()),p.transform&&Cp.applyTransform(p.transform),Cp.intersect(f)&&s.push(p))}if(s.length)for(var h=4,v=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<d;m+=v){var y=r+g*Math.cos(m),_=i+g*Math.sin(m);if(wg(s,o,y,_,n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Sg);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Xo;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(rt);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Dg.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=Ag(this,r,i),a,o;if((t!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||fp(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function $w(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Eg:!0}return!1}function wg(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=$w(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==Eg)){e.target=o;break}}}function Ag(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var Mg=Dg;var Ig=32,qo=7;function Jw(t){for(var e=0;t>=Ig;)e|=t&1,t>>=1;return t+e}function Og(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;eE(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function eE(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function Lg(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function wp(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(t,e[r+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Ep(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(t,e[r+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function tE(t,e){var r=qo,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],d=n[h],g=i[h+1],m=n[h+1];n[h]=d+m,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=Ep(t[g],t,v,d,0,e);v+=y,d-=y,d!==0&&(m=wp(t[v+d-1],t,g,m,m-1,e),m!==0&&(d<=m?c(v,d,g,m):p(v,d,g,m)))}function c(h,v,d,g){var m=0;for(m=0;m<v;m++)o[m]=t[h+m];var y=0,_=d,x=h;if(t[x++]=t[_++],--g===0){for(m=0;m<v;m++)t[x+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)t[x+m]=t[_+m];t[x+g]=o[y];return}for(var S=r,T,C,D;;){T=0,C=0,D=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],C++,T=0,--g===0){D=!0;break}}else if(t[x++]=o[y++],T++,C=0,--v===1){D=!0;break}while((T|C)<S);if(D)break;do{if(T=Ep(t[_],o,y,v,0,e),T!==0){for(m=0;m<T;m++)t[x+m]=o[y+m];if(x+=T,y+=T,v-=T,v<=1){D=!0;break}}if(t[x++]=t[_++],--g===0){D=!0;break}if(C=wp(o[y],t,_,g,0,e),C!==0){for(m=0;m<C;m++)t[x+m]=t[_+m];if(x+=C,_+=C,g-=C,g===0){D=!0;break}}if(t[x++]=o[y++],--v===1){D=!0;break}S--}while(T>=qo||C>=qo);if(D)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<g;m++)t[x+m]=t[_+m];t[x+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[x+m]=o[y+m]}}function p(h,v,d,g){var m=0;for(m=0;m<g;m++)o[m]=t[d+m];var y=h+v-1,_=g-1,x=d+g-1,S=0,T=0;if(t[x--]=t[y--],--v===0){for(S=x-(g-1),m=0;m<g;m++)t[S+m]=o[m];return}if(g===1){for(x-=v,y-=v,T=x+1,S=y+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[_];return}for(var C=r;;){var D=0,E=0,w=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],D++,E=0,--v===0){w=!0;break}}else if(t[x--]=o[_--],E++,D=0,--g===1){w=!0;break}while((D|E)<C);if(w)break;do{if(D=v-Ep(o[_],t,h,v,v-1,e),D!==0){for(x-=D,y-=D,v-=D,T=x+1,S=y+1,m=D-1;m>=0;m--)t[T+m]=t[S+m];if(v===0){w=!0;break}}if(t[x--]=o[_--],--g===1){w=!0;break}if(E=g-wp(t[y],o,0,g,g-1,e),E!==0){for(x-=E,_-=E,g-=E,T=x+1,S=_+1,m=0;m<E;m++)t[T+m]=o[S+m];if(g<=1){w=!0;break}}if(t[x--]=t[y--],--v===0){w=!0;break}C--}while(D>=qo||E>=qo);if(w)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),g===1){for(x-=v,y-=v,T=x+1,S=y+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),m=0;m<g;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function cn(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<Ig){a=Og(t,r,i,e),Lg(t,r,i,r+a,e);return}var o=tE(t,e),s=Jw(n);do{if(a=Og(t,r,i,e),a<s){var l=n;l>s&&(l=s),Lg(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Ve=1,pn=2,xi=4;var Pg=!1;function Dp(){Pg||(Pg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Rg(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var rE=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Rg}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,cn(i,Rg)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Ve),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(Dp(),v.z=0),isNaN(v.z2)&&(Dp(),v.z2=0),isNaN(v.zlevel)&&(Dp(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,i);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=ee(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),Ng=rE;var kg;kg=Q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Zo=kg;var Nl={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Nl.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Nl.bounceIn(t*2)*.5:Nl.bounceOut(t*2-1)*.5+.5}},kl=Nl;var Bl=Math.pow,Ti=Math.sqrt,zl=1e-8,Ug=1e-4,Bg=Ti(3),Ul=1/3,Or=Kr(),rr=Kr(),Sa=Kr();function Si(t){return t>-zl&&t<zl}function zg(t){return t>zl||t<-zl}function Ie(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function Ap(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function hn(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Si(f)&&Si(c))if(Si(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var d=c*c-4*f*p;if(Si(d)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(d>0){var y=Ti(d),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-Bl(-_,Ul):_=Bl(_,Ul),x<0?x=-Bl(-x,Ul):x=Bl(x,Ul);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Ti(f*f*f)),T=Math.acos(S)/3,C=Ti(f),D=Math.cos(T),v=(-s-2*C*D)/(3*o),m=(-s+C*(D+Bg*Math.sin(T)))/(3*o),E=(-s+C*(D-Bg*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),E>=0&&E<=1&&(a[h++]=E)}}return h}function Fl(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Si(o)){if(zg(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Si(f))n[0]=-a/(2*o);else if(f>0){var c=Ti(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ta(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function Fg(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=1/0,v,d,g,m;Or[0]=l,Or[1]=u;for(var y=0;y<1;y+=.05)rr[0]=Ie(t,r,n,o,y),rr[1]=Ie(e,i,a,s,y),g=_i(Or,rr),g<h&&(c=y,h=g);h=1/0;for(var _=0;_<32&&!(p<Ug);_++)v=c-p,d=c+p,rr[0]=Ie(t,r,n,o,v),rr[1]=Ie(e,i,a,s,v),g=_i(rr,Or),v>=0&&g<h?(c=v,h=g):(Sa[0]=Ie(t,r,n,o,d),Sa[1]=Ie(e,i,a,s,d),m=_i(Sa,Or),d<=1&&m<h?(c=d,h=m):p*=.5);return f&&(f[0]=Ie(t,r,n,o,c),f[1]=Ie(e,i,a,s,c)),Ti(h)}function Vg(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,d=Ie(t,r,n,o,v),g=Ie(e,i,a,s,v),m=d-u,y=g-f;c+=Math.sqrt(m*m+y*y),u=d,f=g}return c}function Ze(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Mp(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function Hg(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Si(a)){if(zg(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Si(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Ti(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Vl(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function ba(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function Gg(t,e,r,i,n,a,o,s,l){var u,f=.005,c=1/0;Or[0]=o,Or[1]=s;for(var p=0;p<1;p+=.05){rr[0]=Ze(t,r,n,p),rr[1]=Ze(e,i,a,p);var h=_i(Or,rr);h<c&&(u=p,c=h)}c=1/0;for(var v=0;v<32&&!(f<Ug);v++){var d=u-f,g=u+f;rr[0]=Ze(t,r,n,d),rr[1]=Ze(e,i,a,d);var h=_i(rr,Or);if(d>=0&&h<c)u=d,c=h;else{Sa[0]=Ze(t,r,n,g),Sa[1]=Ze(e,i,a,g);var m=_i(Sa,Or);g<=1&&m<c?(u=g,c=m):f*=.5}}return l&&(l[0]=Ze(t,r,n,u),l[1]=Ze(e,i,a,u)),Ti(c)}function Yg(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Ze(t,r,n,p),v=Ze(e,i,a,p),d=h-s,g=v-l;u+=Math.sqrt(d*d+g*g),s=h,l=v}return u}var iE=/cubic-bezier\(([0-9,\.e ]+)\)/;function Hl(t){var e=t&&iE.exec(t);if(e){var r=e[1].split(","),i=+$e(r[0]),n=+$e(r[1]),a=+$e(r[2]),o=+$e(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:hn(0,i,a,1,l,s)&&Ie(0,n,o,1,s[0])}}}var nE=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Le,this.ondestroy=e.ondestroy||Le,this.onrestart=e.onrestart||Le,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:kl[e]||Hl(e)},t})(),Wg=nE;var ql={};kt(ql,{fastLerp:()=>jg,fastMapToColor:()=>fE,lerp:()=>Wl,lift:()=>Rp,liftColor:()=>Xl,lum:()=>vn,mapToColor:()=>cE,modifyAlpha:()=>pE,modifyHSL:()=>wa,parse:()=>lt,parseCssFloat:()=>Ci,parseCssInt:()=>Yl,random:()=>hE,stringify:()=>Ir,toHex:()=>uE});var Xg=(function(){function t(e){this.value=e}return t})();var aE=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Xg(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var oE=(function(){function t(e){this._list=new aE,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Xg(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),Lr=oE;var qg={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 yr(t){return t=Math.round(t),t<0?0:t>255?255:t}function sE(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ko(t){return t<0?0:t>1?1:t}function Yl(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function Ci(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ko(parseFloat(e)/100):Ko(parseFloat(e))}function Lp(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function bi(t,e,r){return t+(e-t)*r}function ir(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function Ip(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Kg=new Lr(20),Gl=null;function Ca(t,e){Gl&&Ip(Gl,e),Gl=Kg.put(t,Gl||e.slice())}function lt(t,e){if(t){e=e||[];var r=Kg.get(t);if(r)return Ip(e,r);t=t+"";var i=t.replace(/ /g,"").toLowerCase();if(i in qg)return Ip(e,qg[i]),Ca(t,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ir(e,0,0,0,1);return}return ir(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ca(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ir(e,0,0,0,1);return}return ir(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ca(t,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ir(e,+u[0],+u[1],+u[2],1):ir(e,0,0,0,1);f=Ci(u.pop());case"rgb":if(u.length>=3)return ir(e,Yl(u[0]),Yl(u[1]),Yl(u[2]),u.length===3?f:Ci(u[3])),Ca(t,e),e;ir(e,0,0,0,1);return;case"hsla":if(u.length!==4){ir(e,0,0,0,1);return}return u[3]=Ci(u[3]),Pp(u,e),Ca(t,e),e;case"hsl":if(u.length!==3){ir(e,0,0,0,1);return}return Pp(u,e),Ca(t,e),e;default:return}}ir(e,0,0,0,1)}}function Pp(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ci(t[1]),n=Ci(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],ir(e,yr(Lp(o,a,r+1/3)*255),yr(Lp(o,a,r)*255),yr(Lp(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function lE(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function Rp(t,e){var r=lt(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Ir(r,r.length===4?"rgba":"rgb")}}function uE(t){var e=lt(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function jg(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return r[0]=yr(bi(o[0],s[0],l)),r[1]=yr(bi(o[1],s[1],l)),r[2]=yr(bi(o[2],s[2],l)),r[3]=Ko(bi(o[3],s[3],l)),r}}var fE=jg;function Wl(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var i=t*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=lt(e[n]),s=lt(e[a]),l=i-n,u=Ir([yr(bi(o[0],s[0],l)),yr(bi(o[1],s[1],l)),yr(bi(o[2],s[2],l)),Ko(bi(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var cE=Wl;function wa(t,e,r,i){var n=lt(t);if(t)return n=lE(n),e!=null&&(n[0]=sE(V(e)?e(n[0]):e)),r!=null&&(n[1]=Ci(V(r)?r(n[1]):r)),i!=null&&(n[2]=Ci(V(i)?i(n[2]):i)),Ir(Pp(n),"rgba")}function pE(t,e){var r=lt(t);if(r&&e!=null)return r[3]=Ko(e),Ir(r,"rgba")}function Ir(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function vn(t,e){var r=lt(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}function hE(){return Ir([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Zg=new Lr(100);function Xl(t){if(N(t)){var e=Zg.get(t);return e||(e=Rp(t,-.1),Zg.put(t,e)),e}else if(Xr(t)){var r=P({},t);return r.colorStops=B(t.colorStops,function(i){return{offset:i.offset,color:Rp(i.color,-.1)}}),r}return t}function Qg(t){return t.type==="linear"}function $g(t){return t.type==="radial"}var mk=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(t){return Buffer.from(t).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var kp=Array.prototype.slice;function $r(t,e,r){return(e-t)*r+t}function Np(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=$r(e[a],r[a],i);return t}function vE(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=$r(e[o][s],r[o][s],i)}return t}function Zl(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function Jg(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function dE(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function mE(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:kp.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function $o(t){if(Ue(t)){var e=t.length;if(Ue(t[0])){for(var r=[],i=0;i<e;i++)r.push(kp.call(t[i]));return r}return kp.call(t)}return t}function Ql(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function gE(t){return Ue(t&&t[0])?2:1}var Kl=0,$l=1,ry=2,Qo=3,Bp=4,Up=5,ey=6;function ty(t){return t===Bp||t===Up}function jl(t){return t===$l||t===ry}var jo=[0,0,0,0],yE=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=ey,l=r;if(Ue(r)){var u=gE(r);s=u,(u===1&&!le(r[0])||u===2&&!le(r[0][0]))&&(o=!0)}else if(le(r)&&!qr(r))s=Kl;else if(N(r))if(!isNaN(+r))s=Kl;else{var f=lt(r);f&&(l=f,s=Qo)}else if(Xr(r)){var c=P({},l);c.colorStops=B(r.colorStops,function(h){return{offset:h.offset,color:lt(h.color)}}),Qg(r)?s=Bp:$g(r)&&(s=Up),l=c}a===0?this.valType=s:(s!==this.valType||s===ey)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=V(i)?i:kl[i]||Hl(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(d,g){return d.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=jl(n),u=ty(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?mE(p,h,n):u&&dE(p.colorStops,h.colorStops))}if(!s&&n!==Up&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===Kl?i[f].additiveValue=i[f].value-v:n===Qo?i[f].additiveValue=Zl([],i[f].value,v,-1):jl(n)&&(i[f].additiveValue=n===$l?Zl([],i[f].value,v,-1):Jg([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Qo,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var d=p(c+1,s-1);for(f=d;f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:p((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=i?this._additiveValue:u?jo:e[l];if((jl(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(jl(a))a===$l?Np(y,h[n],v[n],m):vE(y,h[n],v[n],m);else if(ty(a)){var _=h[n],x=v[n],S=a===Bp;e[l]={type:S?"linear":"radial",x:$r(_.x,x.x,m),y:$r(_.y,x.y,m),colorStops:B(_.colorStops,function(C,D){var E=x.colorStops[D];return{offset:$r(C.offset,E.offset,m),color:Ql(Np([],C.color,E.color,m))}}),global:x.global},S?(e[l].x2=$r(_.x2,x.x2,m),e[l].y2=$r(_.y2,x.y2,m)):e[l].r=$r(_.r,x.r,m)}else if(u)Np(y,h[n],v[n],m),i||(e[l]=Ql(y));else{var T=$r(h[n],v[n],m);i?this._additiveValue=T:e[l]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Kl?e[i]=e[i]+n:r===Qo?(lt(e[i],jo),Zl(jo,jo,n,1),e[i]=Ql(jo)):r===$l?Zl(e[i],e[i],n,1):r===ry&&Jg(e[i],e[i],n,1)},t})(),_E=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){Ji("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,se(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new yE(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Qo&&u&&(u=Ql(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,$o(u),n),this._trackKeys.push(s)}l.addKeyframe(e,$o(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Wg({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var d=!1,g=0;g<v.length;g++)if(v[g]._clip){d=!0;break}d||(r._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(r._target,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=$o(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||se(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})(),Jo=_E;function dn(){return new Date().getTime()}var xE=(function(t){I(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=dn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Zo(i),!r._paused&&r.update())}Zo(i)},e.prototype.start=function(){this._running||(this._time=dn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=dn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=dn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new Jo(r,i.loop);return this.addAnimator(n),n},e})(rt),iy=xE;var SE=300,zp=Q.domSupported,Fp=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=B(t,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:t,touch:e,pointer:i}})(),ny={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},ay=!1;function Gp(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TE(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Vp(t){t&&(t.zrByTouch=!0)}function bE(t,e){return Dt(t.dom,new CE(t,e),!0)}function sy(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var CE=(function(){function t(e,r){this.stopPropagation=Le,this.stopImmediatePropagation=Le,this.preventDefault=Le,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),_r={mousedown:function(t){t=Dt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Dt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Dt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Dt(this.dom,t);var e=t.toElement||t.relatedTarget;sy(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ay=!0,t=Dt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ay||(t=Dt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Dt(this.dom,t),Vp(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),_r.mousemove.call(this,t),_r.mousedown.call(this,t)},touchmove:function(t){t=Dt(this.dom,t),Vp(t),this.handler.processGesture(t,"change"),_r.mousemove.call(this,t)},touchend:function(t){t=Dt(this.dom,t),Vp(t),this.handler.processGesture(t,"end"),_r.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<SE&&_r.click.call(this,t)},pointerdown:function(t){_r.mousedown.call(this,t)},pointermove:function(t){Gp(t)||_r.mousemove.call(this,t)},pointerup:function(t){_r.mouseup.call(this,t)},pointerout:function(t){Gp(t)||_r.mouseout.call(this,t)}};b(["click","dblclick","contextmenu"],function(t){_r[t]=function(e){e=Dt(this.dom,e),this.trigger(t,e)}});var Yp={pointermove:function(t){Gp(t)||Yp.mousemove.call(this,t)},pointerup:function(t){Yp.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function wE(t,e){var r=e.domHandlers;Q.pointerEventsSupported?b(Fp.pointer,function(i){Jl(e,i,function(n){r[i].call(t,n)})}):(Q.touchEventsSupported&&b(Fp.touch,function(i){Jl(e,i,function(n){r[i].call(t,n),TE(e)})}),b(Fp.mouse,function(i){Jl(e,i,function(n){n=Pl(n),e.touching||r[i].call(t,n)})}))}function EE(t,e){Q.pointerEventsSupported?b(ny.pointer,r):Q.touchEventsSupported||b(ny.mouse,r);function r(i){function n(a){a=Pl(a),sy(t,a.target)||(a=bE(t,a),e.domHandlers[i].call(t,a))}Jl(e,i,n,{capture:!0})}}function Jl(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,yg(t.domTarget,e,r,i)}function Hp(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&_g(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var oy=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),DE=(function(t){I(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new oy(r,_r),zp&&(n._globalHandlerScope=new oy(document,Yp)),wE(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Hp(this._localHandlerScope),zp&&Hp(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,zp&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?EE(this,i):Hp(i)}},e})(rt),ly=DE;var uy=1;Q.hasGlobalWindow&&(uy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var mn=uy,es=.4,ts="#333",rs="#ccc",fy="#eee";var cy=tr,py=5e-5;function gn(t){return t>py||t<-py}var yn=[],Ea=[],Wp=it(),Xp=Math.abs,hy=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return AE(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return gn(this.rotation)||gn(this.x)||gn(this.y)||gn(this.scaleX-1)||gn(this.scaleY-1)||gn(this.skewX)||gn(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(cy(i),this.invTransform=null);return}i=i||it(),r?this.getLocalTransform(i):cy(i),e&&(r?gr(i,e,i):nn(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||it(),Bt(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(yn);var i=yn[0]<0?-1:1,n=yn[1]<0?-1:1,a=((yn[0]-i)*r+i)/yn[0]||0,o=((yn[1]-n)*r+n)/yn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||it(),gr(Ea,e.invTransform,r),r=Ea);var i=this.originX,n=this.originY;(i||n)&&(Wp[4]=i,Wp[5]=n,gr(Ea,r,Wp),Ea[4]-=i,Ea[5]-=n,r=Ea),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&Fe(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&Fe(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Xp(e[0]-1)>1e-10&&Xp(e[3]-1)>1e-10?Math.sqrt(Xp(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Aa(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,d=n+l;r[4]=-v*a-p*d*o,r[5]=-d*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&an(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),AE=hy.getLocalTransform;var Da=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Aa(t,e){return ep(t,e,Da)}var Ma=hy;function xr(t){eu||(eu=new Lr(100)),t=t||Qt;var e=eu.get(t);return e||(e={font:t,strWidthCache:new Lr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Oe.measureText("\u56FD",t).width,asciiCharWidth:Oe.measureText("a",t).width},eu.put(t,e)),e}var eu;function ME(t){if(!(qp>=vy)){t=t||Qt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Oe.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?qp=vy:n>2&&qp++,e}}var qp=0,vy=5;function Zp(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=ME(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Sr(t,e){var r=t.strWidthCache,i=r.get(e);return i==null&&(i=Oe.measureText(e,t.font).width,r.put(e,i)),i}function dy(t,e,r,i){var n=Sr(xr(e),t),a=is(e),o=wi(0,n,r),s=ei(0,a,i),l=new q(o,s,n,a);return l}function tu(t,e,r,i){var n=((t||"")+"").split(`
|
|
2
|
+
`),a=n.length;if(a===1)return dy(n[0],e,r,i);for(var o=new q(0,0,0,0),s=0;s<n.length;s++){var l=dy(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function wi(t,e,r,i){return r==="right"?i?t+=e:t-=e:r==="center"&&(i?t+=e/2:t-=e/2),t}function ei(t,e,r,i){return r==="middle"?i?t+=e/2:t-=e/2:r==="bottom"&&(i?t+=e:t-=e),t}function is(t){return xr(t).stWideCharWidth}function Jr(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ru(t,e,r){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(i instanceof Array)l+=Jr(i[0],r.width),u+=Jr(i[1],r.height),f=null,c=null;else switch(i){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Kp="__zr_normal__",jp=Da.concat(["ignore"]),OE=st(Da,function(t,e){return t[e]=!0,t},{ignore:!1}),Oa={},LE=new q(0,0,0,0),iu=[],nu=0,La=1,Jp=(function(){function t(e){this.id=Bo(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=LE,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Oa,i,p):ru(Oa,i,p),a.x=Oa.x,a.y=Oa.y,o=Oa.align,s=Oa.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,d=void 0;h==="center"?(v=p.width*.5,d=p.height*.5):(v=Jr(h[0],p.width),d=Jr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+d+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var g=i.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new q(0,0,0,0);a.getLocalTransform(iu),Bt(iu,iu),q.copy(y,p),y.applyTransform(iu)}else m.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,T=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),T=!0)),x=x||"#000",(x!==m.fill||S!==m.stroke||T!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=S,m.autoStroke=T,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Ve,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rs:ts},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&<(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Ir(i,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},P(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(z(e))for(var i=e,n=se(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Kp)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,jp)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Kp,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===Kp,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ee(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ji("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=gy(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,_y(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=nu,this.__dirty&=~Ve),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=gy(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,_y(this,r,d),d);var g=this._textGuide;p&&p.useStates(e,r,!!h),g&&g.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=nu,this.__dirty&=~Ve)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ee(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=ee(n,e),o=ee(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];P(r,a),a.textConfig&&(i=i||{},P(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==La){var s=!(r&&n);r&&r.textConfig?(this.textConfig=P({},n?this.textConfig:i.textConfig),P(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<jp.length;f++){var c=jp[f],p=a&&OE[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Ma,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),P(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ve;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var n=e?this[e]:this,a=new Jo(n,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=ee(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Qp(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Qp(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Qp(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=nu,e.__dirty=Ve;var r={};function i(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),t})();Qe(Jp,rt);Qe(Jp,Ma);function Qp(t,e,r,i,n){r=r||{};var a=[];xy(t,"",t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,d){r.during(d)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function $p(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function IE(t){return Ue(t[0])}function PE(t,e,r){if(Ue(e[r]))if(Ue(t[r])||(t[r]=[]),Re(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),$p(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(IE(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?$p(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else $p(a,n,o);a.length=n.length}else t[r]=e[r]}function RE(t,e){return t===e||Ue(t)&&Ue(e)&&NE(t,e)}function NE(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function xy(t,e,r,i,n,a,o,s){for(var l=se(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!z(a),v=t.animators,d=[],g=0;g<l.length;g++){var m=l[g],y=i[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(z(y)&&!Ue(y)&&!Xr(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}xy(t,m,r[m],y,n,a&&a[m],o,s)}else d.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),d.push(m))}var _=d.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){var T=S.stopTracks(d);if(T){var C=ee(v,S);v.splice(C,1)}}}if(n.force||(d=we(d,function(A){return!RE(i[A],r[A])}),_=d.length),_>0||n.force&&!o.length){var D=void 0,E=void 0,w=void 0;if(s){E={},p&&(D={});for(var x=0;x<_;x++){var m=d[x];E[m]=r[m],p?D[m]=i[m]:r[m]=i[m]}}else if(p){w={};for(var x=0;x<_;x++){var m=d[x];w[m]=$o(r[m]),PE(r,i,m)}}var S=new Jo(r,!1,!1,c?we(v,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&D&&S.whenWithKeys(0,D,d),w&&S.whenWithKeys(0,w,d),S.whenWithKeys(u??500,s?E:i,d).delay(f||0),t.addAnimator(S,e),o.push(S)}}function gy(t,e,r,i){return!(r&&r.hoverLayer||i)||yy(t)||e&&yy(e)?nu:La}function yy(t){return t.type==="text"||t.type==="tspan"}function _y(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var au=Jp;var Sy=(function(t){I(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=ee(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=ee(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var i=new q(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(q.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(au);Sy.prototype.type="group";var xe=Sy;var ou={},_n={};function kE(t){delete _n[t]}function BE(t){if(!t)return!1;if(typeof t=="string")return vn(t,1)<es;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=vn(e[n].color,1);return r/=i,r<es}return!1}var UE=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new Ng,o=i.renderer||"canvas";ou[o]||(o=se(ou)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ou[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Q.node&&!Q.worker&&!l?new ly(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f==="auto"?Q.touchEventsSupported:!!f,p=44,h;c&&(h=G(i.pointerSize,p)),this.handler=new Mg(a,s,u,s.root,h),this.animation=new iy({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=BE(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=dn(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=dn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof xe&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,kE(this.id))},t})();function su(t,e){var r=new UE(Bo(),t,e);return _n[r.id]=r,r}function zE(t){t.dispose()}function FE(){for(var t in _n)_n.hasOwnProperty(t)&&_n[t].dispose();_n={}}function VE(t){return _n[t]}function th(t,e){ou[t]=e}var eh;function HE(t){if(typeof eh=="function")return eh(t)}function rh(t){eh=t}var GE="6.1.0";var Ty=1e-4,uu=20;function YE(t){return t.replace(/^\s+|\s+$/g,"")}var Ge=Math.min,ve=Math.max,Ne=Math.abs,At=Math.round,nr=Math.floor,Di=Math.ceil,Ai=Math.pow,Ei=Math.log,ns=Math.LN10,WE=Math.PI,XE=Math.random;function as(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var yt=qE;function qE(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return fu(t,e,r)}function fu(t,e,r){return N(t)?ZE(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function ZE(t){return!!YE(t).match(/%$/)}function pe(t,e,r){return isNaN(e)?r?""+t:+t:(e=Ge(ve(0,e),uu),t=(+t).toFixed(e),r?t:+t)}function by(t,e,r){return e==null&&(e=10),pe(t,e,r)}function Ia(t){return t.sort(function(e,r){return e-r}),t}function zt(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(At(t*e)/e===t)return r}return ih(t)}function ih(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ve(0,o-i)}function Cy(t,e){var r=nr(Ei(t[1]-t[0])/ns),i=At(Ei(Ne(e[1]-e[0]))/ns),n=Ge(ve(-r+i,0),uu);return isFinite(n)?n:uu}function wy(t,e,r){var i=Ne(t[1]-t[0]);if(!isFinite(i)||i===0)return NaN;var n=Ei(2*Ne(r||1)*Ne(i))/ns,a=Ei(Ne(e))/ns,o=ve(0,Di(-n+a));return isFinite(o)||(o=NaN),o}function Ey(t,e,r){if(!t[e])return 0;var i=KE(t,r);return i[e]||0}function KE(t,e){var r=st(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Ai(10,e),n=B(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=B(n,function(h){return nr(h)}),s=st(o,function(h,v){return h+v},0),l=B(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return B(o,function(h){return h/i})}function Dy(t,e){var r=ve(zt(t),zt(e)),i=t+e;return r>uu?i:pe(i,r)}var os=Ai(2,53)-1;function ss(t){var e=WE*2;return(t%e+e)%e}function xn(t){return t>-Ty&&t<Ty}var jE=/^(?:(\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 _t(t){if(t instanceof Date)return t;if(N(t)){var e=jE.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(At(t))}function Pa(t){return Ai(10,Ra(t))}function Ra(t){if(t===0)return 0;var e=nr(Ei(t)/ns);return t/Ai(10,e)>=10&&e++,e}var nh=2;function ti(t,e){var r=Ra(t),i=Ai(10,r),n=t/i,a;return e===nh?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,pe(t,-r)}function Ay(t,e){var r=(t.length-1)*e+1,i=nr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function My(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ar(t){var e=parseFloat(t);return e==t&&(e!==0||!N(t)||t.indexOf("x")<=0)?e:NaN}function ls(t){return!isNaN(ar(t))}function us(){return At(XE()*9)}function Oy(t,e){return e===0?t:Oy(e,t%e)}function ah(t,e){return t==null?e:e==null?t:t*e/Oy(t,e)}function ut(t){return t!=null&&isFinite(t)}var QE="[ECharts] ",Iy={},$E=typeof console<"u"&&console.warn&&console.log;function JE(t,e,r){if($E){if(r){if(Iy[e])return;Iy[e]=!0}console[t](QE+e)}}function oh(t,e){JE("error",t,e)}function Je(t){throw new Error(t)}function Py(t,e,r){return(e-t)*r+t}var Ry="series\0",eD="\0_ec_\0";function Pe(t){return t instanceof Array?t:t==null?[]:[t]}function sh(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var lh=["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 ri(t){return z(t)&&!R(t)&&!(t instanceof Date)?t.value:t}function Ny(t){return z(t)&&!(t instanceof Array)}function ky(t,e,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=H();b(e,function(l,u){if(!z(l)){e[u]=null;return}});var s=tD(t,o,r);return(i||n)&&rD(s,t,o,e),i&&iD(s,e),i||n?nD(s,e,n):a&&aD(s,e),oD(s),s}function tD(t,e,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r==="replaceMerge"||Na(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function rD(t,e,r,i){b(i,function(n,a){if(!(!n||n.id==null)){var o=fs(n.id),s=r.get(o);if(s!=null){var l=t[s];ze(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}}})}function iD(t,e){b(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!Na(r)&&!Na(a)&&By("name",a,r)){t[n].newOption=r,e[i]=null;return}}})}function nD(t,e,r){b(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||Na(n.existing)||n.existing&&i.id!=null&&!By("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function aD(t,e){b(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oD(t){var e=H();b(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),b(t,function(r){var i=r.newOption;ze(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),b(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(z(a)){if(o.name=a.name!=null?fs(a.name):n?n.name:Ry+i,n)o.id=fs(n.id);else if(a.id!=null)o.id=fs(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function By(t,e,r){var i=Ft(e[t],null),n=Ft(r[t],null);return i!=null&&n!=null&&i===n}function fs(t){return Ft(t,"")}function Ft(t,e){return t==null?e:N(t)?t:le(t)||ga(t)?t+"":e}function ka(t){var e=t.name;return!!(e&&e.indexOf(Ry))}function Na(t){return t&&t.id!=null&&fs(t.id).indexOf(eD)===0}function Uy(t,e,r){b(t,function(i){var n=i.newOption;z(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=sD(e,n,i.existing,r))})}function sD(t,e,r,i){var n=e.type?e.type:r?r.subType:i.determineSubType(t,e);return n}function or(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return R(e.dataIndex)?B(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return R(e.name)?B(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function re(){var t="__ec_inner_"+lD++;return function(e){return e[t]||(e[t]={})}}var lD=us();function cu(t,e,r){var i=cs(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Mi(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function cs(t,e){var r;if(N(t)){var i={};i[t+"Index"]=0,r=i}else r=t;var n=H(),a={},o=!1;return b(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&ee(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var nt={useDefault:!0,enableAll:!1,enableNone:!1};function Mi(t,e,r,i){i=i||nt;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function zy(t,e,r){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var n={mainType:e,query:i};return r&&(n.subType=r),n}function uh(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function Fy(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Vy(t){return t==="auto"?Q.domSupported?"html":"richText":t||"html"}function fh(t,e,r,i,n){var a=e==null||e==="auto";if(i==null)return i;if(le(i)){var o=Py(r||0,i,n);return pe(o,a?Math.max(zt(r||0),zt(i)):e)}else{if(N(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=Py(h,v,n);s[c]=pe(o,a?Math.max(zt(h),zt(v)):e)}}return s}}var v2=(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},t})();function at(){return[1/0,-1/0]}function ps(t,e){Tr(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function ch(t,e){Tr(e)&&e<t[0]&&(t[0]=e)}function ph(t,e){Tr(e)&&e>t[1]&&(t[1]=e)}function Hy(t,e){ii(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function Tr(t){return t!=null&&isFinite(t)}function ii(t,e){return Tr(t)&&Tr(e)&&t<=e}function Gy(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function Yy(t){ii(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Wy(){var t="__ec_once_"+uD++;return function(e,r){Me(e,t)||(e[t]=1,r())}}var uD=us();function Ba(t,e,r){var i=H(),n=0;b(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function Xy(t){return t.value+""}function qy(t){return t+""}function Zy(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:t.get("progressiveChunkMode")==="mod"?t.getData().count():null}}function Ua(t){return{overallReset:t}}var fD=".",Tn="___EC__COMPONENT__CONTAINER___",Ky="___EC__EXTENDED_CLASS___";function Mt(t){var e={main:"",sub:""};if(t){var r=t.split(fD);e.main=r[0]||"",e.sub=r[1]||""}return e}function cD(t){ze(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function jy(t){return!!(t&&t[Ky])}function za(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return pD(i)?n=(function(a){I(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},Uo(n,this)),P(n.prototype,r),n[Ky]=!0,n.extend=this.extend,n.superCall=vD,n.superApply=dD,n.superClass=i,n}}function pD(t){return V(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function pu(t,e){t.extend=e.extend}var hD=Math.round(Math.random()*10);function Qy(t){var e=["__\0is_clz",hD++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function vD(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function dD(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Oi(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){cD(n),i.prototype.type=n;var a=Mt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Tn){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[Tn]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},t.getClassesByMainType=function(i){var n=Mt(i),a=[],o=e[n.main];return o&&o[Tn]?b(o,function(s,l){l!==Tn&&a.push(s)}):a.push(o),a},t.hasClass=function(i){var n=Mt(i);return!!e[n.main]},t.getAllClassMainTypes=function(){var i=[];return b(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var n=Mt(i),a=e[n.main];return a&&a[Tn]};function r(i){var n=e[i.main];return(!n||!n[Tn])&&(n=e[i.main]={},n[Tn]=!0),n}}function Pr(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&ee(n,l)>=0||a&&ee(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var mD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gD=Pr(mD),$y=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return gD(this,e,r)},t})();var vh=new Lr(50);function e_(t){if(typeof t=="string"){var e=vh.get(t);return e&&e.image}else return t}function dh(t,e,r,i,n){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=vh.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Fa(e)&&a.pending.push(o)):(e=Oe.loadImage(t,Jy,Jy),e.__zrImageSrc=t,vh.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Jy(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Fa(t){return t&&t.width&&t.height}var mh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function yh(t,e,r,i,n){var a={};return n_(a,t,e,r,i,n),a.text}function n_(t,e,r,i,n,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
3
|
+
`);a=a_(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)o_(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
|
|
4
|
+
`),t.isTruncated=s}function a_(t,e,r,i){i=i||{};var n=P({},i);r=G(r,"..."),n.maxIterations=G(i.maxIterations,2);var a=n.minChar=G(i.minChar,0),o=n.fontMeasureInfo=xr(e),s=o.asciiCharWidth;n.placeholder=G(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=Sr(o,r);return f>l&&(r="",f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function o_(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine="",t.isTruncated=!1;return}var o=Sr(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?_D(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Sr(a,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function _D(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Zp(r,t.charCodeAt(n));return n}function s_(t,e,r,i){var n=xh(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a==="truncate",c=is(u),p=G(e.lineHeight,c),h=e.lineOverflow==="truncate",v=!1,d=e.width;d==null&&r!=null&&(d=r-s);var g=e.height;g==null&&i!=null&&(g=i-l);var m;d!=null&&(a==="break"||a==="breakAll")?m=n?u_(n,e.font,d,a==="breakAll",0).lines:[]:m=n?n.split(`
|
|
5
|
+
`):[];var y=m.length*p;if(g==null&&(g=y),y>g&&h){var _=Math.floor(g/p);v=v||m.length>_,m=m.slice(0,_),y=m.length*p}if(n&&f&&d!=null)for(var x=a_(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<m.length;T++)o_(S,m[T],x),m[T]=S.textLine,v=v||S.isTruncated;for(var C=g,D=0,E=xr(u),T=0;T<m.length;T++)D=Math.max(Sr(E,m[T]),D);d==null&&(d=D);var w=d;return C+=l,w+=s,{lines:m,height:g,outerWidth:w,outerHeight:C,lineHeight:p,calculatedLineHeight:c,contentWidth:D,contentHeight:y,width:d,isTruncated:v}}var xD=(function(){function t(){}return t})(),t_=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),SD=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function l_(t,e,r,i,n){var a=new SD,o=xh(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p==="break"||p==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:p==="breakAll"}:null,v=mh.lastIndex=0,d;(d=mh.exec(o))!=null;){var g=d.index;g>v&&gh(a,o.substring(v,g),e,h),gh(a,d[2],e,h,d[1]),v=mh.lastIndex}v<o.length&&gh(a,o.substring(v,o.length),e,h);var m=[],y=0,_=0,x=p==="truncate",S=e.lineOverflow==="truncate",T={};function C(ge,mt,dr){ge.width=mt,ge.lineHeight=dr,y+=dr,_=Math.max(_,mt)}e:for(var D=0;D<a.lines.length;D++){for(var E=a.lines[D],w=0,A=0,O=0;O<E.tokens.length;O++){var M=E.tokens[O],L=M.styleName&&e.rich[M.styleName]||{},U=M.textPadding=L.padding,k=U?U[1]+U[3]:0,Y=M.font=L.font||e.font;M.contentHeight=is(Y);var X=G(L.height,M.contentHeight);if(M.innerHeight=X,U&&(X+=U[0]+U[2]),M.height=X,M.lineHeight=$t(L.lineHeight,e.lineHeight,X),M.align=L&&L.align||n,M.verticalAlign=L&&L.verticalAlign||"middle",S&&c!=null&&y+M.lineHeight>c){var K=a.lines.length;O>0?(E.tokens=E.tokens.slice(0,O),C(E,A,w),a.lines=a.lines.slice(0,D+1)):a.lines=a.lines.slice(0,D),a.isTruncated=a.isTruncated||a.lines.length<K;break e}var ie=L.width,te=ie==null||ie==="auto";if(typeof ie=="string"&&ie.charAt(ie.length-1)==="%")M.percentWidth=ie,m.push(M),M.contentWidth=Sr(xr(Y),M.text);else{if(te){var ue=L.backgroundColor,$=ue&&ue.image;$&&($=e_($),Fa($)&&(M.width=Math.max(M.width,$.width*X/$.height)))}var W=x&&f!=null?f-A:null;W!=null&&W<M.width?!te||W<k?(M.text="",M.width=M.contentWidth=0):(n_(T,M.text,W-k,Y,e.ellipsis,{minChar:e.truncateMinChar}),M.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,M.width=M.contentWidth=Sr(xr(Y),M.text)):M.contentWidth=Sr(xr(Y),M.text)}M.width+=k,A+=M.width,L&&(w=Math.max(w,M.lineHeight))}C(E,A,w)}a.outerWidth=a.width=G(f,_),a.outerHeight=a.height=G(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var D=0;D<m.length;D++){var M=m[D],he=M.percentWidth;M.width=parseInt(he,10)/100*a.width}return a}function gh(t,e,r,i,n){var a=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Jr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
|
|
6
|
+
`),u=!0),i.accumWidth=v}else{var d=u_(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+h,c=d.linesWidths,f=d.lines}}f||(f=e.split(`
|
|
7
|
+
`));for(var g=xr(l),m=0;m<f.length;m++){var y=f[m],_=new xD;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[m]:Sr(g,y),!m&&!u){var x=(s[s.length-1]||(s[0]=new t_)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new t_([_]))}}function TD(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var bD=st(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function CD(t){return TD(t)?!!bD[t]:!0}function u_(t,e,r,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,c=xr(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
|
|
8
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Zp(c,h.charCodeAt(0)),d=i?!1:!CD(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=v)):d?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,d?(l+=h,u+=v):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function _h(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;q.set(r_,wi(r,o,n),ei(i,s,a),o,s),q.intersect(e,r_,null,i_);var l=i_.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=wi(l.x,l.width,n,!0),t.baseY=ei(l.y,l.height,a,!0)}}var r_=new q(0,0,0,0),i_={outIntersectRect:{},clamp:!0};function xh(t){return t!=null?t+="":t=""}function f_(t){var e=xh(t.text),r=t.font,i=Sr(xr(r),e),n=is(r);return hu(t,i,n,null)}function hu(t,e,r,i){var n=new q(wi(t.x||0,e,t.textAlign),ei(t.y||0,r,t.textBaseline),e,r),a=i??(Sh(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Sh(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var Ch="__zr_style_"+Math.round(Math.random()*10),Rr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bn={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Rr[Ch]=!0;var c_=["z","z2","invisible"],wD=["invisible"],ED=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=se(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&DD(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new q(0,0,0,0)),i?q.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new q(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!=="style"?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:P(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=pn,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&pn)},e.prototype.styleUpdated=function(){this.__dirty&=~pn},e.prototype.createStyle=function(r){return Zr(Rr,r)},e.prototype.useStyle=function(r){r[Ch]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[Ch]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,c_)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===La,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=se(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var d=se(f),h=0;h<d.length;h++){var v=d[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?wD:c_,h=0;h<g.length;h++){var v=g[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return P(r,i),r},e.prototype.getAnimationStyleProps=function(){return bn},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ve|pn})(),e})(au),Th=new q(0,0,0,0),bh=new q(0,0,0,0);function DD(t,e,r){return Th.copy(t.getBoundingRect()),t.transform&&Th.applyTransform(t.transform),bh.width=e,bh.height=r,!Th.intersect(bh)}var Nr=ED;var sr=Math.min,lr=Math.max,wh=Math.sin,Eh=Math.cos,Cn=Math.PI*2,vu=Kr(),du=Kr(),mu=Kr();function Dh(t,e,r,i,n,a){n[0]=sr(t,r),n[1]=sr(e,i),a[0]=lr(t,r),a[1]=lr(e,i)}var p_=[],h_=[];function v_(t,e,r,i,n,a,o,s,l,u){var f=Fl,c=Ie,p=f(t,r,n,o,p_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=c(t,r,n,o,p_[h]);l[0]=sr(v,l[0]),u[0]=lr(v,u[0])}p=f(e,i,a,s,h_);for(var h=0;h<p;h++){var d=c(e,i,a,s,h_[h]);l[1]=sr(d,l[1]),u[1]=lr(d,u[1])}l[0]=sr(t,l[0]),u[0]=lr(t,u[0]),l[0]=sr(o,l[0]),u[0]=lr(o,u[0]),l[1]=sr(e,l[1]),u[1]=lr(e,u[1]),l[1]=sr(s,l[1]),u[1]=lr(s,u[1])}function d_(t,e,r,i,n,a,o,s){var l=Vl,u=Ze,f=lr(sr(l(t,r,n),1),0),c=lr(sr(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=sr(t,n,p),o[1]=sr(e,a,h),s[0]=lr(t,n,p),s[1]=lr(e,a,h)}function m_(t,e,r,i,n,a,o,s,l){var u=Jt,f=er,c=Math.abs(n-a);if(c%Cn<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(vu[0]=Eh(n)*r+t,vu[1]=wh(n)*i+e,du[0]=Eh(a)*r+t,du[1]=wh(a)*i+e,u(s,vu,du),f(l,vu,du),n=n%Cn,n<0&&(n=n+Cn),a=a%Cn,a<0&&(a=a+Cn),n>a&&!o?a+=Cn:n<a&&o&&(n+=Cn),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(mu[0]=Eh(h)*r+t,mu[1]=wh(h)*i+e,u(s,mu,s),f(l,mu,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wn=[],En=[],kr=[],Li=[],Br=[],Ur=[],Ah=Math.min,Mh=Math.max,Dn=Math.cos,An=Math.sin,ni=Math.abs,Ih=Math.PI,Ii=Ih*2,Oh=typeof Float32Array<"u",hs=[];function Lh(t){var e=Math.round(t/Ih*1e8)/1e8;return e%2*Ih}function AD(t,e){var r=Lh(t[0]);r<0&&(r+=Ii);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Ii?n=r+Ii:e&&r-n>=Ii?n=r-Ii:!e&&r>n?n=r+(Ii-Lh(r-n)):e&&r<n&&(n=r-(Ii-Lh(n-r))),t[0]=r,t[1]=n}var MD=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=ni(i/mn/e)||0,this._uy=ni(i/mn/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Ce.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=ni(e-this._xi),n=ni(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Ce.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(Ce.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(Ce.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),hs[0]=n,hs[1]=a,AD(hs,o),n=hs[0],a=hs[1];var s=a-n;return this.addData(Ce.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=Dn(a)*i+e,this._yi=An(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(Ce.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Oh&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(Oh&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Oh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){kr[0]=kr[1]=Br[0]=Br[1]=Number.MAX_VALUE,Li[0]=Li[1]=Ur[0]=Ur[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case Ce.M:r=n=e[o++],i=a=e[o++],Br[0]=n,Br[1]=a,Ur[0]=n,Ur[1]=a;break;case Ce.L:Dh(r,i,e[o],e[o+1],Br,Ur),r=e[o++],i=e[o++];break;case Ce.C:v_(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Br,Ur),r=e[o++],i=e[o++];break;case Ce.Q:d_(r,i,e[o++],e[o++],e[o],e[o+1],Br,Ur),r=e[o++],i=e[o++];break;case Ce.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Dn(h)*c+u,a=An(h)*p+f),m_(u,f,c,p,h,v,d,Br,Ur),r=Dn(v)*c+u,i=An(v)*p+f;break;case Ce.R:n=r=e[o++],a=i=e[o++];var g=e[o++],m=e[o++];Dh(n,a,n+g,a+m,Br,Ur);break;case Ce.Z:r=n,i=a;break}Jt(kr,kr,Br),er(Li,Li,Ur)}return o===0&&(kr[0]=kr[1]=Li[0]=Li[1]=0),new q(kr[0],kr[1],Li[0]-kr[0],Li[1]-kr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var d=-1;switch(h){case Ce.M:a=s=e[p++],o=l=e[p++];break;case Ce.L:{var g=e[p++],m=e[p++],y=g-a,_=m-o;(ni(y)>i||ni(_)>n||p===r-1)&&(d=Math.sqrt(y*y+_*_),a=g,o=m);break}case Ce.C:{var x=e[p++],S=e[p++],g=e[p++],m=e[p++],T=e[p++],C=e[p++];d=Vg(a,o,x,S,g,m,T,C,10),a=T,o=C;break}case Ce.Q:{var x=e[p++],S=e[p++],g=e[p++],m=e[p++];d=Yg(a,o,x,S,g,m,10),a=g,o=m;break}case Ce.A:var D=e[p++],E=e[p++],w=e[p++],A=e[p++],O=e[p++],M=e[p++],L=M+O;p+=1,v&&(s=Dn(O)*w+D,l=An(O)*A+E),d=Mh(w,A)*Ah(Ii,Math.abs(M)),a=Dn(L)*w+D,o=An(L)*A+E;break;case Ce.R:{s=a=e[p++],l=o=e[p++];var U=e[p++],k=e[p++];d=U*2+k*2;break}case Ce.Z:{var y=s-a,_=l-o;d=Math.sqrt(y*y+_*_),a=s,o=l;break}}d>=0&&(u[c++]=d,f+=d)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,d,g=0,m=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,d=this._pathLen,y=r*d,!y)))e:for(var T=0;T<o;){var C=i[T++],D=T===1;switch(D&&(u=i[T],f=i[T+1],s=u,l=f),C!==Ce.L&&_>0&&(e.lineTo(x,S),_=0),C){case Ce.M:s=u=i[T++],l=f=i[T++],e.moveTo(u,f);break;case Ce.L:{c=i[T++],p=i[T++];var E=ni(c-u),w=ni(p-f);if(E>n||w>a){if(h){var A=v[m++];if(g+A>y){var O=(y-g)/A;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}g+=A}e.lineTo(c,p),u=c,f=p,_=0}else{var M=E*E+w*w;M>_&&(x=c,S=p,_=M)}break}case Ce.C:{var L=i[T++],U=i[T++],k=i[T++],Y=i[T++],X=i[T++],K=i[T++];if(h){var A=v[m++];if(g+A>y){var O=(y-g)/A;Ta(u,L,k,X,O,wn),Ta(f,U,Y,K,O,En),e.bezierCurveTo(wn[1],En[1],wn[2],En[2],wn[3],En[3]);break e}g+=A}e.bezierCurveTo(L,U,k,Y,X,K),u=X,f=K;break}case Ce.Q:{var L=i[T++],U=i[T++],k=i[T++],Y=i[T++];if(h){var A=v[m++];if(g+A>y){var O=(y-g)/A;ba(u,L,k,O,wn),ba(f,U,Y,O,En),e.quadraticCurveTo(wn[1],En[1],wn[2],En[2]);break e}g+=A}e.quadraticCurveTo(L,U,k,Y),u=k,f=Y;break}case Ce.A:var ie=i[T++],te=i[T++],ue=i[T++],$=i[T++],W=i[T++],he=i[T++],ge=i[T++],mt=!i[T++],dr=ue>$?ue:$,Ae=ni(ue-$)>.001,Xe=W+he,ce=!1;if(h){var A=v[m++];g+A>y&&(Xe=W+he*(y-g)/A,ce=!0),g+=A}if(Ae&&e.ellipse?e.ellipse(ie,te,ue,$,ge,W,Xe,mt):e.arc(ie,te,dr,W,Xe,mt),ce)break e;D&&(s=Dn(W)*ue+ie,l=An(W)*$+te),u=Dn(Xe)*ue+ie,f=An(Xe)*$+te;break;case Ce.R:s=u=i[T],l=f=i[T+1],c=i[T++],p=i[T++];var ye=i[T++],Qi=i[T++];if(h){var A=v[m++];if(g+A>y){var gt=y-g;e.moveTo(c,p),e.lineTo(c+Ah(gt,ye),p),gt-=ye,gt>0&&e.lineTo(c+ye,p+Ah(gt,Qi)),gt-=Qi,gt>0&&e.lineTo(c+Mh(ye-gt,0),p+Qi),gt-=ye,gt>0&&e.lineTo(c,p+Mh(Qi-gt,0));break e}g+=A}e.rect(c,p,ye,Qi);break;case Ce.Z:if(h){var A=v[m++];if(g+A>y){var O=(y-g)/A;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Ce,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})(),Vt=MD;function Mn(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function g_(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;var p=Fg(t,e,r,i,n,a,o,s,u,f,null);return p<=c/2}function y_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;var f=Gg(t,e,r,i,n,a,s,l,null);return f<=u/2}var __=Math.PI*2;function vs(t){return t%=__,t<0&&(t+=__),t}var ds=Math.PI*2;function x_(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%ds<1e-4)return!0;if(a){var c=i;i=vs(n),n=vs(c)}else i=vs(i),n=vs(n);i>n&&(n+=ds);var p=Math.atan2(l,s);return p<0&&(p+=ds),p>=i&&p<=n||p+ds>=i&&p+ds<=n}function ur(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?1/0:l>n?s:0}var Pi=Vt.CMD,On=Math.PI*2,RD=1e-4;function ND(t,e){return Math.abs(t-e)<RD}var xt=[-1,-1,-1],fr=[-1,-1];function kD(){var t=fr[0];fr[0]=fr[1],fr[1]=t}function BD(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=hn(e,i,a,s,u,xt);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,d=0;d<f;d++){var g=xt[d],m=g===0||g===1?.5:1,y=Ie(t,r,n,o,g);y<l||(p<0&&(p=Fl(e,i,a,s,fr),fr[1]<fr[0]&&p>1&&kD(),h=Ie(e,i,a,s,fr[0]),p>1&&(v=Ie(e,i,a,s,fr[1]))),p===2?g<fr[0]?c+=h<e?m:-m:g<fr[1]?c+=v<h?m:-m:c+=s<v?m:-m:g<fr[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function UD(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=Hg(e,i,a,s,xt);if(l===0)return 0;var u=Vl(e,i,a);if(u>=0&&u<=1){for(var f=0,c=Ze(e,i,a,u),p=0;p<l;p++){var h=xt[p]===0||xt[p]===1?.5:1,v=Ze(t,r,n,xt[p]);v<o||(xt[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=xt[0]===0||xt[0]===1?.5:1,v=Ze(t,r,n,xt[0]);return v<o?0:a<e?h:-h}}function zD(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);xt[0]=-l,xt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=On-1e-4){i=0,n=On;var f=a?1:-1;return o>=xt[0]+t&&o<=xt[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=On,n+=On);for(var p=0,h=0;h<2;h++){var v=xt[h];if(v+t>o){var d=Math.atan2(s,v),f=a?1:-1;d<0&&(d=On+d),(d>=i&&d<=n||d+On>=i&&d+On<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),p+=f)}}return p}function S_(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var d=a[v++],g=v===1;switch(d===Pi.M&&v>1&&(r||(s+=ur(l,u,f,c,i,n))),g&&(l=a[v],u=a[v+1],f=l,c=u),d){case Pi.M:f=a[v++],c=a[v++],l=f,u=c;break;case Pi.L:if(r){if(Mn(l,u,a[v],a[v+1],e,i,n))return!0}else s+=ur(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Pi.C:if(r){if(g_(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=BD(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Pi.Q:if(r){if(y_(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=UD(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Pi.A:var m=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(S)*_+m,h=Math.sin(S)*x+y,g?(f=p,c=h):s+=ur(l,u,p,h,i,n);var D=(i-m)*x/_+m;if(r){if(x_(m,y,x,S,S+T,C,e,D,n))return!0}else s+=zD(m,y,x,S,S+T,C,D,n);l=Math.cos(S+T)*_+m,u=Math.sin(S+T)*x+y;break;case Pi.R:f=l=a[v++],c=u=a[v++];var E=a[v++],w=a[v++];if(p=f+E,h=c+w,r){if(Mn(f,c,p,c,e,i,n)||Mn(p,c,p,h,e,i,n)||Mn(p,h,f,h,e,i,n)||Mn(f,h,f,c,e,i,n))return!0}else s+=ur(p,c,p,h,i,n),s+=ur(f,h,f,c,i,n);break;case Pi.Z:if(r){if(Mn(l,u,f,c,e,i,n))return!0}else s+=ur(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!ND(u,c)&&(s+=ur(l,u,f,c,i,n)||0),s!==0}function T_(t,e,r){return S_(t,0,!1,e,r)}function b_(t,e,r,i){return S_(t,e,!0,r,i)}var Rh=J({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Rr),VD={style:J({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bn.style)},Ph=Da.concat(["invisible","culling","z","z2","zlevel","parent"]),HD=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Ph.length;++s)n[Ph[s]]=this[Ph[s]];n.__dirty|=Ve}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=se(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?P(this.style,s):this.useStyle(s):o==="shape"?P(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(N(r)){var i=vn(r,0);return i>.5?ts:i>.2?fy:rs}else if(r)return rs}return ts},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(N(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=vn(r,0)<es;if(a===o)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~xi},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Vt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&xi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),b_(s,l/u,r,i)))return!0}if(this.hasFill())return T_(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=xi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:P(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&xi)},e.prototype.createStyle=function(r){return Zr(Rh,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=P({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==La){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=P({},n.shape),P(u,i.shape)):(u=P({},a?this.shape:n.shape),P(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=P({},this.shape);for(var f={},c=se(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return VD},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){I(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return j(r.style)},o.prototype.getDefaultShape=function(){return j(r.shape)},o})(e);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ve|pn|xi})(),e})(Nr),ae=HD;var GD=J({strokeFirst:!0,font:Qt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rh),C_=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return Sh(this.style)},e.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(r){return Zr(GD,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=f_(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(Nr);C_.prototype.type="tspan";var ms=C_;var YD=J({x:0,y:0},Rr),WD={style:J({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bn.style)};function XD(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var w_=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Zr(YD,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=XD(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return WD},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new q(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Nr);w_.prototype.type="image";var Ot=w_;function E_(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Va=Math.round;function gu(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Va(i*2)===Va(n*2)&&(t.x1=t.x2=Ri(i,s,!0)),Va(a*2)===Va(o*2)&&(t.y1=t.y2=Ri(a,s,!0))),t}}function yu(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Ri(i,s,!0),t.y=Ri(n,s,!0),t.width=Math.max(Ri(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Ri(n+o,s,!1)-t.y,o===0?0:1)),t}}function Ri(t,e,r){if(!e)return t;var i=Va(t*2);return(i+Va(e))%2===0?i/2:(i+(r?1:-1))/2}var KD=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var jD={},D_=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new KD},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=yu(jD,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?E_(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ae);D_.prototype.type="rect";var _e=D_;var A_={fill:"#000"},M_=2,zr={},QD={style:J({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},bn.style)},B_=(function(t){I(e,t);function e(r){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=A_,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,rA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new q(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||A_},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return P(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=se(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},P(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return QD},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Qt,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";_h(zr,a.overflowRect,o,s,l,u),o=zr.baseX,s=zr.baseY;var f=k_(r),c=s_(f,r,zr.outerWidth,zr.outerHeight),p=Nh(r),h=!!r.backgroundColor,v=c.outerHeight,d=c.outerWidth,g=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=ei(s,c.contentHeight,u);if(p||n){var x=wi(o,d,l),S=ei(s,v,u);p&&this._renderBackground(r,r,x,S,d,v)}_+=m/2,n&&(y=N_(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var T=0,C=!1,D=!1,E=R_("fill"in r?r.fill:(D=!0,a.fill)),w=P_("stroke"in r?r.stroke:!h&&(!a.autoStroke||D)?(T=M_,C=!0,a.stroke):null),A=r.textShadowBlur>0,O=0;O<g.length;O++){var M=this._getOrCreateChild(ms),L=M.createStyle();M.useStyle(L),L.text=g[O],L.x=y,L.y=_,l&&(L.textAlign=l),L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,A&&(L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0),L.stroke=w,L.fill=E,w&&(L.lineWidth=r.lineWidth||T,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=i,L_(L,r),_+=m,M.setBoundingRect(hu(L,c.contentWidth,c.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;_h(zr,i.overflowRect,o,s,n,a),o=zr.baseX,s=zr.baseY;var l=k_(r),u=l_(l,r,zr.outerWidth,zr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=wi(o,c,n),d=ei(s,p,a),g=v,m=d;h&&(g+=h[3],m+=h[0]);var y=g+f;Nh(r)&&this._renderBackground(r,r,v,d,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],T=S.tokens,C=T.length,D=S.lineHeight,E=S.width,w=0,A=g,O=y,M=C-1,L=void 0;w<C&&(L=T[w],!L.align||L.align==="left");)this._placeToken(L,r,D,m,A,"left",_),E-=L.width,A+=L.width,w++;for(;M>=0&&(L=T[M],L.align==="right");)this._placeToken(L,r,D,m,O,"right",_),E-=L.width,O-=L.width,M--;for(A+=(f-(A-g)-(y-O)-E)/2;w<=M;)L=T[w],this._placeToken(L,r,D,m,A+L.width/2,"center",_),A+=L.width,w++;m+=D}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+n-r.height/2);var p=!r.isLineHolder&&Nh(u);p&&this._renderBackground(u,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=N_(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var d=this._getOrCreateChild(ms),g=d.createStyle();d.useStyle(g);var m=this._defaultStyle,y=!1,_=0,x=!1,S=R_("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,m.fill)),T=P_("stroke"in u?u.stroke:"stroke"in i?i.stroke:!h&&!l&&(!m.autoStroke||y)?(_=M_,x=!0,m.stroke):null),C=u.textShadowBlur>0||i.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,C&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Qt,g.opacity=$t(u.opacity,i.opacity,1),L_(g,u),T&&(g.lineWidth=$t(u.lineWidth,i.lineWidth,_),g.lineDash=G(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=T),S&&(g.fill=S),d.setBoundingRect(hu(g,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,d,g;if(p||r.lineHeight||u&&f){d=this._getOrCreateChild(_e),d.useStyle(d.createStyle()),d.style.fill=null;var m=d.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=h,d.dirtyShape()}if(p){var y=d.style;y.fill=l||null,y.fillOpacity=G(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(Ot),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=G(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||g).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||"transparent",x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=$t(r.opacity,i.opacity,1)},e.makeFont=function(r){var i="";return tA(r)&&(i=[r.fontStyle,r.fontWeight,eA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&$e(i)||r.textFont||r.font},e})(Nr),$D={left:!0,right:1,center:1},JD={top:1,bottom:1,middle:1},O_=["fontStyle","fontWeight","fontSize","fontFamily"];function eA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?wl+"px":t+"px"}function L_(t,e){for(var r=0;r<O_.length;r++){var i=O_[r],n=e[i];n!=null&&(t[i]=n)}}function tA(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function rA(t){return I_(t),b(t.rich,I_),t}function I_(t){if(t){t.font=B_.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||$D[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||JD[r]?r:"top";var i=t.padding;i&&(t.padding=tn(t.padding))}}function P_(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function R_(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function N_(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function k_(t){var e=t.text;return e!=null&&(e+=""),e}function Nh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Ee=B_;var de=re(),U_=function(t,e,r,i){if(i){var n=de(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=de(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}};var Ln="undefined",_u="series",xu=H(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ke="original",Ye="arrayRows",St="objectRows",Ht="keyedColumns",Gt="typedArray",kh="unknown",Yt="column",Fr="row";var iA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nA=(function(){function t(e){b(iA,function(r){this[r]=fe(e[r],e)},this)}return t})();function z_(t,e){return e.mainType===_u?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Su=nA;var F_=1,V_={},X_=re(),zh=re(),Fh=0,gs=1,ys=2,cr=["emphasis","blur","select"],Vh=["normal","emphasis","blur","select"],aA=10,oA=9,Ni="highlight",_s="downplay",xs="select",bu="unselect",Ss="toggleSelect",Cu="selectchanged";function Ha(t){return t!=null&&t!=="none"}function wu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function q_(t){wu(t,"emphasis",ys)}function Z_(t){t.hoverState===ys&&wu(t,"normal",Fh)}function Hh(t){wu(t,"blur",gs)}function K_(t){t.hoverState===gs&&wu(t,"normal",Fh)}function sA(t){t.selected=!0}function lA(t){t.selected=!1}function H_(t,e,r){e(t,r)}function ai(t,e,r){H_(t,e,r),t.isGroup&&t.traverse(function(i){H_(i,e,r)})}function Gh(t,e){switch(e){case"emphasis":t.hoverState=ys;break;case"normal":t.hoverState=Fh;break;case"blur":t.hoverState=gs;break;case"select":t.selected=!0}}function uA(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function fA(t,e,r,i){var n=r&&ee(r,"select")>=0,a=!1;if(t instanceof ae){var o=X_(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ha(s)||Ha(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=P({},i),u=P({},u),u.fill=s):!Ha(u.fill)&&Ha(s)?(a=!0,i=P({},i),u=P({},u),u.fill=Xl(s)):!Ha(u.stroke)&&Ha(l)&&(a||(i=P({},i),u=P({},u)),u.stroke=Xl(l)),i.style=u}}if(i&&i.z2==null){a||(i=P({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??aA)}return i}function cA(t,e,r){if(r&&r.z2==null){r=P({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??oA)}return r}function pA(t,e,r){var i=ee(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:uA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:i?n:a.opacity*.1},o),r.style=o),r}function Bh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return fA(this,t,e,r);if(t==="blur")return pA(this,t,r);if(t==="select")return cA(this,t,r)}return r}function hA(t){t.stateProxy=Bh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Bh),r&&(r.stateProxy=Bh)}function G_(t,e){!Q_(t,e)&&!t.__highByOuter&&ai(t,q_)}function Y_(t,e){!Q_(t,e)&&!t.__highByOuter&&ai(t,Z_)}function In(t,e){t.__highByOuter|=1<<(e||0),ai(t,q_)}function Pn(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ai(t,Z_)}function j_(t){ai(t,Hh)}function Yh(t){ai(t,K_)}function Wh(t){ai(t,sA)}function Xh(t){ai(t,lA)}function Q_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function qh(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=zh(a),s=z_(t,a),l=n==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){K_(u)}),l&&r.push(a)),o.isBlured=!1}),b(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function Uh(t,e,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&Yh(p)}}if(t!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var p=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!p||e==="series"&&f)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Hh(g)}),Ue(e))a(u.getData(),e);else if(z(e))for(var v=se(e),d=0;d<v.length;d++)a(u.getData(v[d]),e[v[d]]);l.push(u),zh(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Tu(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){zh(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Hh(a)})}}}function $_(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=or(n,e);a=(R(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=de(o);Uh(i,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&Uh(i,f,c,r)}}}function Eu(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function J_(t,e,r){var i=de(t),n=Eu(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&Tu(i.componentMainType,i.componentIndex,r),b(a,function(s){return G_(s,e)})):(Uh(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&Tu(i.componentMainType,i.componentIndex,r),G_(t,e))}function e0(t,e,r){qh(r);var i=de(t),n=Eu(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?b(n,function(a){return Y_(a,e)}):Y_(t,e)}function t0(t,e,r){if(Du(e)){var i=e.dataType,n=t.getData(i),a=or(n,e);R(a)||(a=[a]),t[e.type===Ss?"toggleSelect":e.type===xs?"select":"unselect"](a,i)}}function Zh(t){var e=t.getAllData();b(e,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Wh(a):Xh(a)})})}function r0(t){var e=[];return t.eachSeries(function(r){var i=r.getAllData();b(i,function(n){var a=n.data,o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Ga(t,e,r){i0(t,!0),ai(t,hA),dA(t,e,r)}function vA(t){i0(t,!1)}function Ts(t,e,r,i){i?vA(t):Ga(t,e,r)}function dA(t,e,r){var i=de(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}var W_=["emphasis","blur","select"],mA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kh(t,e,r,i){r=r||"itemStyle";for(var n=0;n<W_.length;n++){var a=W_[n],o=e.getModel([a,r]),s=t.ensureState(a);s.style=i?i(o):o[mA[r]]()}}function i0(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function bs(t){return!!(t&&t.__highDownDispatcher)}function n0(t){var e=V_[t];return e==null&&F_<=32&&(e=V_[t]=F_++),e}function Du(t){var e=t.type;return e===xs||e===bu||e===Ss}function jh(t){var e=t.type;return e===Ni||e===_s}function a0(t){var e=X_(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var ot={};kt(ot,{Arc:()=>Bn,BezierCurve:()=>Ls,BoundingRect:()=>q,Circle:()=>Rn,CompoundPath:()=>Iu,Ellipse:()=>ws,Group:()=>xe,HOVER_LAYER_FOR_INCREMENTAL:()=>Ps,HOVER_LAYER_FROM_THRESHOLD:()=>uv,HOVER_LAYER_NO:()=>lv,Image:()=>Ot,IncrementalDisplayable:()=>zu,Line:()=>Wt,LinearGradient:()=>Xa,OrientedBoundingRect:()=>Uu,Path:()=>ae,Point:()=>be,Polygon:()=>Ms,Polyline:()=>Os,RadialGradient:()=>Ru,Rect:()=>_e,Ring:()=>As,Sector:()=>kn,Text:()=>Ee,WH:()=>Vn,XY:()=>oi,applyTransform:()=>Hu,calcZ2Range:()=>eM,clipPointsByRect:()=>mv,clipRectByRect:()=>gv,createIcon:()=>Gn,decomposeTransform:()=>rM,ensureCopyRect:()=>$a,ensureCopyTransform:()=>Yu,expandOrShrinkRect:()=>ja,extendPath:()=>cv,extendShape:()=>fv,getCurrentCanvasPainter:()=>iM,getShapeClass:()=>pv,getTransform:()=>vv,groupTransition:()=>dv,initProps:()=>Cr,isBoundingRectAxisAligned:()=>Gu,isElementRemoved:()=>Fn,lineLineIntersect:()=>z0,linePolygonIntersect:()=>$A,makeImage:()=>Rs,makePath:()=>Ka,mergePath:()=>hv,payloadDisableAnimation:()=>tM,registerShape:()=>Xt,removeElement:()=>Za,removeElementWithFadeOut:()=>R0,resizePath:()=>Vu,retrieveZInfo:()=>yv,setTooltipConfig:()=>Qa,subPixelOptimize:()=>KA,subPixelOptimizeLine:()=>Hn,subPixelOptimizeRect:()=>ZA,transformDirection:()=>jA,traverseElements:()=>Ns,traverseUpdateZ:()=>_v,updateProps:()=>ct});var Ya=Vt.CMD,gA=[[],[],[]],o0=Math.sqrt,yA=Math.atan2;function Qh(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Ya.M,c=Ya.C,p=Ya.L,h=Ya.R,v=Ya.A,d=Ya.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case d:a=2;break;case v:var g=e[4],m=e[5],y=o0(e[0]*e[0]+e[1]*e[1]),_=o0(e[2]*e[2]+e[3]*e[3]),x=yA(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Fe(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Fe(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=gA[l];S[0]=r[o++],S[1]=r[o++],Fe(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var $h=Math.sqrt,Au=Math.sin,Mu=Math.cos,Cs=Math.PI;function s0(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Jh(t,e){return(t[0]*e[0]+t[1]*e[1])/(s0(t)*s0(e))}function l0(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Jh(t,e))}function u0(t,e,r,i,n,a,o,s,l,u,f){var c=l*(Cs/180),p=Mu(c)*(t-r)/2+Au(c)*(e-i)/2,h=-1*Au(c)*(t-r)/2+Mu(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=$h(v),s*=$h(v));var d=(n===a?-1:1)*$h((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,g=d*o*h/s,m=d*-s*p/o,y=(t+r)/2+Mu(c)*g-Au(c)*m,_=(e+i)/2+Au(c)*g+Mu(c)*m,x=l0([1,0],[(p-g)/o,(h-m)/s]),S=[(p-g)/o,(h-m)/s],T=[(-1*p-g)/o,(-1*h-m)/s],C=l0(S,T);if(Jh(S,T)<=-1&&(C=Cs),Jh(S,T)>=1&&(C=0),C<0){var D=Math.round(C/Cs*1e6)/1e6;C=Cs*2+D%2*Cs}f.addData(u,y,_,o,s,x,C,c,a)}var _A=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function SA(t){var e=new Vt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=Vt.CMD,l=t.match(_A);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(xA)||[],v=h.length,d=0;d<v;d++)h[d]=parseFloat(h[d]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,D=r,E=i,w=void 0,A=void 0;switch(c){case"l":r+=h[g++],i+=h[g++],p=s.L,e.addData(p,r,i);break;case"L":r=h[g++],i=h[g++],p=s.L,e.addData(p,r,i);break;case"m":r+=h[g++],i+=h[g++],p=s.M,e.addData(p,r,i),n=r,a=i,c="l";break;case"M":r=h[g++],i=h[g++],p=s.M,e.addData(p,r,i),n=r,a=i,c="L";break;case"h":r+=h[g++],p=s.L,e.addData(p,r,i);break;case"H":r=h[g++],p=s.L,e.addData(p,r,i);break;case"v":i+=h[g++],p=s.L,e.addData(p,r,i);break;case"V":i=h[g++],p=s.L,e.addData(p,r,i);break;case"C":p=s.C,e.addData(p,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],i=h[g-1];break;case"c":p=s.C,e.addData(p,h[g++]+r,h[g++]+i,h[g++]+r,h[g++]+i,h[g++]+r,h[g++]+i),r+=h[g-2],i+=h[g-1];break;case"S":m=r,y=i,w=e.len(),A=e.data,o===s.C&&(m+=r-A[w-4],y+=i-A[w-3]),p=s.C,D=h[g++],E=h[g++],r=h[g++],i=h[g++],e.addData(p,m,y,D,E,r,i);break;case"s":m=r,y=i,w=e.len(),A=e.data,o===s.C&&(m+=r-A[w-4],y+=i-A[w-3]),p=s.C,D=r+h[g++],E=i+h[g++],r+=h[g++],i+=h[g++],e.addData(p,m,y,D,E,r,i);break;case"Q":D=h[g++],E=h[g++],r=h[g++],i=h[g++],p=s.Q,e.addData(p,D,E,r,i);break;case"q":D=h[g++]+r,E=h[g++]+i,r+=h[g++],i+=h[g++],p=s.Q,e.addData(p,D,E,r,i);break;case"T":m=r,y=i,w=e.len(),A=e.data,o===s.Q&&(m+=r-A[w-4],y+=i-A[w-3]),r=h[g++],i=h[g++],p=s.Q,e.addData(p,m,y,r,i);break;case"t":m=r,y=i,w=e.len(),A=e.data,o===s.Q&&(m+=r-A[w-4],y+=i-A[w-3]),r+=h[g++],i+=h[g++],p=s.Q,e.addData(p,m,y,r,i);break;case"A":_=h[g++],x=h[g++],S=h[g++],T=h[g++],C=h[g++],D=r,E=i,r=h[g++],i=h[g++],p=s.A,u0(D,E,r,i,T,C,_,x,S,p,e);break;case"a":_=h[g++],x=h[g++],S=h[g++],T=h[g++],C=h[g++],D=r,E=i,r+=h[g++],i+=h[g++],p=s.A,u0(D,E,r,i,T,C,_,x,S,p,e);break}}(c==="z"||c==="Z")&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var f0=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(ae);function c0(t){return t.setData!=null}function p0(t,e){var r=SA(t),i=P({},e);return i.buildPath=function(n){var a=c0(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Qh(r,n),this.dirtyShape()},i}function h0(t,e){return new f0(p0(t,e))}function v0(t,e){var r=p0(t,e),i=(function(n){I(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(f0);return i}function d0(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new ae(e);return o.createPathProxy(),o.buildPath=function(s){if(c0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var bA=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var m0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new bA},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ae);m0.prototype.type="circle";var Rn=m0;var CA=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var g0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CA},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(ae);g0.prototype.type="ellipse";var ws=g0;var _0=Math.PI,ev=_0*2,Nn=Math.sin,Wa=Math.cos,wA=Math.acos,ft=Math.atan2,y0=Math.abs,Ds=Math.sqrt,Es=Math.max,Vr=Math.min,br=1e-4;function EA(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<br))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function Ou(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/Ds(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,d=i+c,g=(p+v)/2,m=(h+d)/2,y=v-p,_=d-h,x=y*y+_*_,S=n-a,T=p*d-v*h,C=(_<0?-1:1)*Ds(Es(0,S*S*x-T*T)),D=(T*_-y*C)/x,E=(-T*y-_*C)/x,w=(T*_+y*C)/x,A=(-T*y+_*C)/x,O=D-g,M=E-m,L=w-g,U=A-m;return O*O+M*M>L*L+U*U&&(D=w,E=A),{cx:D,cy:E,x0:-f,y0:-c,x1:D*(n/S-1),y1:E*(n/S-1)}}function DA(t){var e;if(R(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function x0(t,e){var r,i=Es(e.r,0),n=Es(e.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=y0(u-l),v=h>ev&&h%ev;if(v>br&&(h=v),!(i>br))t.moveTo(f,c);else if(h>ev-br)t.moveTo(f+i*Wa(l),c+i*Nn(l)),t.arc(f,c,i,l,u,!p),n>br&&(t.moveTo(f+n*Wa(u),c+n*Nn(u)),t.arc(f,c,n,u,l,p));else{var d=void 0,g=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,D=void 0,E=void 0,w=void 0,A=void 0,O=void 0,M=void 0,L=void 0,U=i*Wa(l),k=i*Nn(l),Y=n*Wa(u),X=n*Nn(u),K=h>br;if(K){var ie=e.cornerRadius;ie&&(r=DA(ie),d=r[0],g=r[1],m=r[2],y=r[3]);var te=y0(i-n)/2;if(_=Vr(te,m),x=Vr(te,y),S=Vr(te,d),T=Vr(te,g),E=C=Es(_,x),w=D=Es(S,T),(C>br||D>br)&&(A=i*Wa(u),O=i*Nn(u),M=n*Wa(l),L=n*Nn(l),h<_0)){var ue=EA(U,k,M,L,A,O,Y,X);if(ue){var $=U-ue[0],W=k-ue[1],he=A-ue[0],ge=O-ue[1],mt=1/Nn(wA(($*he+W*ge)/(Ds($*$+W*W)*Ds(he*he+ge*ge)))/2),dr=Ds(ue[0]*ue[0]+ue[1]*ue[1]);E=Vr(C,(i-dr)/(mt+1)),w=Vr(D,(n-dr)/(mt-1))}}}if(!K)t.moveTo(f+U,c+k);else if(E>br){var Ae=Vr(m,E),Xe=Vr(y,E),ce=Ou(M,L,U,k,i,Ae,p),ye=Ou(A,O,Y,X,i,Xe,p);t.moveTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),E<C&&Ae===Xe?t.arc(f+ce.cx,c+ce.cy,E,ft(ce.y0,ce.x0),ft(ye.y0,ye.x0),!p):(Ae>0&&t.arc(f+ce.cx,c+ce.cy,Ae,ft(ce.y0,ce.x0),ft(ce.y1,ce.x1),!p),t.arc(f,c,i,ft(ce.cy+ce.y1,ce.cx+ce.x1),ft(ye.cy+ye.y1,ye.cx+ye.x1),!p),Xe>0&&t.arc(f+ye.cx,c+ye.cy,Xe,ft(ye.y1,ye.x1),ft(ye.y0,ye.x0),!p))}else t.moveTo(f+U,c+k),t.arc(f,c,i,l,u,!p);if(!(n>br)||!K)t.lineTo(f+Y,c+X);else if(w>br){var Ae=Vr(d,w),Xe=Vr(g,w),ce=Ou(Y,X,A,O,n,-Xe,p),ye=Ou(U,k,M,L,n,-Ae,p);t.lineTo(f+ce.cx+ce.x0,c+ce.cy+ce.y0),w<D&&Ae===Xe?t.arc(f+ce.cx,c+ce.cy,w,ft(ce.y0,ce.x0),ft(ye.y0,ye.x0),!p):(Xe>0&&t.arc(f+ce.cx,c+ce.cy,Xe,ft(ce.y0,ce.x0),ft(ce.y1,ce.x1),!p),t.arc(f,c,n,ft(ce.cy+ce.y1,ce.cx+ce.x1),ft(ye.cy+ye.y1,ye.cx+ye.x1),p),Ae>0&&t.arc(f+ye.cx,c+ye.cy,Ae,ft(ye.y1,ye.x1),ft(ye.y0,ye.x0),!p))}else t.lineTo(f+Y,c+X),t.arc(f,c,n,u,l,p)}t.closePath()}}}var MA=(function(){function t(){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 t})();var S0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new MA},e.prototype.buildPath=function(r,i){x0(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ae);S0.prototype.type="sector";var kn=S0;var OA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var T0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(ae);T0.prototype.type="ring";var As=T0;function tv(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,h=t.length;p<h;p++)Jt(f,f,t[p]),er(c,c,t[p]);Jt(f,f,i[0]),er(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(ap(t[p]));continue}else l=t[p-1],u=t[p+1];op(a,u,l),Ho(a,a,e);var d=Go(v,l),g=Go(v,u),m=d+g;m!==0&&(d/=m,g/=m),Ho(o,a,-d),Ho(s,a,g);var y=Ml([],v,o),_=Ml([],v,s);i&&(er(y,y,f),Jt(y,y,c),er(_,_,f),Jt(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function Lu(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=tv(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var LA=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var C0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LA},e.prototype.buildPath=function(r,i){Lu(r,i,!0)},e})(ae);C0.prototype.type="polygon";var Ms=C0;var IA=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var w0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new IA},e.prototype.buildPath=function(r,i){Lu(r,i,!1)},e})(ae);w0.prototype.type="polyline";var Os=w0;var PA={},RA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var E0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RA},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=gu(PA,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(ae);E0.prototype.type="line";var Wt=E0;var Lt=[],NA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function D0(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?Ap:Ie)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Ap:Ie)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Mp:Ze)(t.x1,t.cpx1,t.x2,e),(r?Mp:Ze)(t.y1,t.cpy1,t.y2,e)]}var A0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new NA},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(ba(n,l,o,p,Lt),l=Lt[1],o=Lt[2],ba(a,u,s,p,Lt),u=Lt[1],s=Lt[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Ta(n,l,f,o,p,Lt),l=Lt[1],f=Lt[2],o=Lt[3],Ta(a,u,c,s,p,Lt),u=Lt[1],c=Lt[2],s=Lt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return D0(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=D0(this.shape,r,!0);return up(i,i)},e})(ae);A0.prototype.type="bezier-curve";var Ls=A0;var kA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var M0=(function(t){I(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(ae);M0.prototype.type="arc";var Bn=M0;var BA=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ae.prototype.getBoundingRect.call(this)},e})(ae),Iu=BA;var UA=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),Pu=UA;var zA=(function(t){I(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(Pu),Xa=zA;var FA=(function(t){I(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e})(Pu),Ru=FA;var rv=Math.min,VA=Math.max,Nu=Math.abs,Un=[0,0],zn=[0,0],et=bp(),ku=et.minTv,Bu=et.maxTv,HA=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new be;for(var i=0;i<2;i++)this._axes[i]=new be;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);be.sub(n[0],i[1],i[0]),be.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&be.set(r,0,0),et.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!et.negativeSize&&be.copy(r,n?et.useDir?et.dirMinTv:ku:Bu),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Un),e._getProjMinMaxOnAxis(o,r._corners,zn),et.negativeSize||Un[1]<zn[0]||Un[0]>zn[1]){if(a=!1,et.negativeSize||i)return a;var l=Nu(zn[0]-Un[1]),u=Nu(Un[0]-zn[1]);rv(l,u)>Bu.len()&&(l<u?be.scale(Bu,s,-l*n):be.scale(Bu,s,u*n))}else if(!i){var l=Nu(zn[0]-Un[1]),u=Nu(Un[0]-zn[1]);(et.useDir||rv(l,u)<ku.len())&&((l<u||!et.bidirectional)&&(be.scale(ku,s,l*n),et.useDir&&et.calcDirMTV()),(l>=u||!et.bidirectional)&&(be.scale(ku,s,-u*n),et.useDir&&et.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=rv(f,s),l=VA(f,l)}i[0]=s+et.touchThreshold,i[1]=l-et.touchThreshold,et.negativeSize=i[1]<i[0]},t})(),Uu=HA;var iv=0,O0=1,L0=2,I0=1,qa=0;var GA=[],YA=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=O0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new q(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(GA)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},e})(Nr),zu=YA;var WA=re();function XA(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;i?(u=G(i.duration,200),f=G(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),V(c)&&(c=c(r,n)),V(u)&&(u=u(r));var p={duration:u||0,delay:c,easing:f};return p}else return null}function nv(t,e,r,i,n,a,o){var s=!1,l;V(n)?(o=a,a=n,n=null):z(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=XA(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ct(t,e,r,i,n,a){nv("update",t,e,r,i,n,a)}function Cr(t,e,r,i,n,a){nv("enter",t,e,r,i,n,a)}function Fn(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function Za(t,e,r,i,n,a){Fn(t)||nv("leave",t,e,r,i,n,a)}function P0(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Za(t,{style:{opacity:0}},e,r,i)}function R0(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||P0(n,e,r,i)}):P0(t,e,r,i)}function N0(t){WA(t).oldStyle=t.style}var ov={},oi=["x","y"],Vn=["width","height"],lv=0,uv=1,Ps=2;function fv(t){return ae.extend(t)}var qA=v0;function cv(t,e){return qA(t,e)}function Xt(t,e){ov[t]=e}function pv(t){if(ov.hasOwnProperty(t))return ov[t]}function Ka(t,e,r,i){var n=h0(t,e);return r&&(i==="center"&&(r=U0(r,n.getBoundingRect())),Vu(n,r)),n}function Rs(t,e,r){var i=new Ot({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(U0(e,a))}}});return i}function U0(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var hv=d0;function Vu(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}}function Hn(t,e){return gu(t,t,{lineWidth:e}),t}function ZA(t,e){return yu(t,t,e),t}var KA=Ri;function vv(t,e){for(var r=tr([]);t&&t!==e;)gr(r,t.getLocalTransform(),r),t=t.parent;return r}function Hu(t,e,r){return e&&!Ue(e)&&(e=Ma.getLocalTransform(e)),r&&(e=Bt([],e)),Fe([],t,e)}function jA(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:Ne(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ne(2*e[4]/e[2]),a=[t==="left"?-i:t==="right"?i:0,t==="top"?-n:t==="bottom"?n:0];return a=Hu(a,e,r),Ne(a[0])>Ne(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function k0(t){return!t.isGroup}function QA(t){return t.shape!=null}function dv(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){k0(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return QA(o)&&(s.shape=j(o.shape)),s}var a=i(t);e.traverse(function(o){if(k0(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ct(o,l,r,de(o).dataIndex)}}})}function mv(t,e){return B(t,function(r){var i=r[0];i=ve(i,e.x),i=Ge(i,e.x+e.width);var n=r[1];return n=ve(n,e.y),n=Ge(n,e.y+e.height),[i,n]})}function gv(t,e){var r=ve(t.x,e.x),i=Ge(t.x+t.width,e.x+e.width),n=ve(t.y,e.y),a=Ge(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Gn(t,e,r){var i=P({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(n.image=t.slice(8),J(n,r),new Ot(i)):Ka(t.replace("path://",""),i,r,"center")}function $A(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(z0(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function z0(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=av(f,c,l,u);if(JA(p))return!1;var h=t-n,v=e-a,d=av(h,v,l,u)/p;if(d<0||d>1)return!1;var g=av(h,v,f,c)/p;return!(g<0||g>1)}function av(t,e,r,i){return t*i-r*e}function JA(t){return t<=1e-6&&t>=-1e-6}function ja(t,e,r,i,n){return e==null||(le(e)?De[0]=De[1]=De[2]=De[3]=e:(De[0]=e[0],De[1]=e[1],De[2]=e[2],De[3]=e[3]),i&&(De[0]=ve(0,De[0]),De[1]=ve(0,De[1]),De[2]=ve(0,De[2]),De[3]=ve(0,De[3])),r&&(De[0]=-De[0],De[1]=-De[1],De[2]=-De[2],De[3]=-De[3]),B0(t,De,"x","width",3,1,n&&n[0]||0),B0(t,De,"y","height",0,2,n&&n[1]||0)),t}var De=[0,0,0,0];function B0(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=ve(0,Ge(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:Ne(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Qa(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=N(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&b(se(l),function(f){Me(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=de(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:J({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function sv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function Ns(t,e){if(t)if(R(t))for(var r=0;r<t.length;r++)sv(t[r],e);else sv(t,e)}function Gu(t){return!t||Ne(t[1])<Fu&&Ne(t[2])<Fu||Ne(t[0])<Fu&&Ne(t[3])<Fu}var Fu=1e-5;function $a(t,e){return t?q.copy(t,e):e.clone()}function Yu(t,e){return e?nn(t||it(),e):void 0}function yv(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function eM(t){var e=-1/0,r=1/0;sv(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function _v(t,e,r){F0(t,e,r,-1/0)}function F0(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=ve(F0(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=ve(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function tM(t){return t.animation={duration:0},t}function rM(t,e){return e?nn(Is.transform,e):tr(Is.transform),Is.decomposeTransform(),Aa(t,Is),t}var Is=new Ma;Is.transform=it();function iM(t){var e=t.getZr().painter;return e.getType()==="canvas"?e:null}Xt("circle",Rn);Xt("ellipse",ws);Xt("sector",kn);Xt("ring",As);Xt("polygon",Ms);Xt("polyline",Os);Xt("rect",_e);Xt("line",Wt);Xt("bezierCurve",Ls);Xt("arc",Bn);var Wu={};function nM(t,e){for(var r=0;r<cr.length;r++){var i=cr[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function V0(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=V(t.defaultText)?t.defaultText(n,t,r):t.defaultText);for(var l={normal:s},u=0;u<cr.length;u++){var f=cr[u],c=e[f];l[f]=G(i?i.getFormattedLabel(n,f,null,a,c&&c.get("formatter")):null,s)}return l}function Ja(t,e,r,i){r=r||Wu;for(var n=t instanceof Ee,a=!1,o=0;o<Vh.length;o++){var s=e[Vh[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?t:t.getTextContent();if(a){n||(l||(l=new Ee,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=V0(r,e),f=e.normal,c=!!f.getShallow("show"),p=wr(f,i&&i.normal,r,!1,!n);p.text=u.normal,n||t.setTextConfig(H0(f,r,!1));for(var o=0;o<cr.length;o++){var h=cr[o],s=e[h];if(s){var v=l.ensureState(h),d=!!G(s.getShallow("show"),c);if(d!==c&&(v.ignore=!d),v.style=wr(s,i&&i[h],r,!0,!n),v.style.text=u[h],!n){var g=t.ensureState(h);g.textConfig=H0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),r.enableTextSetter&&(xv(l).setLabelText=function(m){var y=V0(r,e,m);nM(l,y)})}else l&&(l.ignore=!0);t.dirty()}function eo(t,e){e=e||"label";for(var r={normal:t.getModel(e)},i=0;i<cr.length;i++){var n=cr[i];r[n]=t.getModel([n,e])}return r}function wr(t,e,r,i,n){var a={};return aM(a,t,r,i,n),e&&P(a,e),a}function H0(t,e,r){e=e||{};var i={},n,a=t.getShallow("rotate"),o=G(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(r?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function aM(t,e,r,i,n){r=r||Wu;var a=e.ecModel,o=a&&a.option.textStyle,s=oM(e),l;if(s){l={};var u="richInheritPlainLabel",f=G(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel(["rich",c]);X0(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get("overflow");h&&(t.overflow=h);var v=e.get("lineOverflow");v&&(t.lineOverflow=v);var d=t,g=e.get("minMargin");if(g!=null)g=le(g)?g/2:0,d.margin=[g,g,g,g],d.__marginType=Yn.minMargin;else{var m=e.get("textMargin");m!=null&&(d.margin=tn(m),d.__marginType=Yn.textMargin)}X0(t,e,o,null,null,r,i,n,!0,!1)}function oM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Wu).rich;if(r){e=e||{};for(var i=se(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var G0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Y0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],W0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function X0(t,e,r,i,n,a,o,s,l,u){r=!o&&r||Wu;var f=a&&a.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=G(e.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(p==="inherit"||p==="auto")&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=G(e.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(t.lineWidth=v);var d=G(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var g=G(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<G0.length;m++){var y=G0[m],_=n!==!1&&i?$t(e.getShallow(y),i.getShallow(y),r[y]):G(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<Y0.length;m++){var y=Y0[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var m=0;m<W0.length;m++){var y=W0[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(t.borderColor=f)}}function q0(t,e){var r=e&&e.getModel("textStyle");return $e([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var xv=re();var Yn={minMargin:1,textMargin:2};var sM=["textStyle","color"],Sv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tv=new Ee,lM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(sM):null)},t.prototype.getFont=function(){return q0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Sv.length;i++)r[Sv[i]]=this.getShallow(Sv[i]);return Tv.useStyle(r),Tv.update(),Tv.getBoundingRect()},t})(),Z0=lM;var bv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],uM=Pr(bv),K0=(function(){function t(){}return t.prototype.getLineStyle=function(e){return uM(this,e)},t})();var Cv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],fM=Pr(Cv),j0=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return fM(this,e,r)},t})();var Wn=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){oe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(j(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i=="object"?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();za(Wn);Qy(Wn);Qe(Wn,K0);Qe(Wn,j0);Qe(Wn,$y);Qe(Wn,Z0);var Se=Wn;var cM=Math.round(Math.random()*10);function ki(t){return[t||"",cM++].join("_")}function Q0(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=Mt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=Mt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function $0(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(b(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],d=!!p[h];d&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),b(v.successor,d?m:g)}b(p,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){p[y]=!0,g(y)}};function r(a){var o={},s=[];return b(a,function(l){var u=i(o,l),f=u.originalDeps=e(l),c=n(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),b(c,function(p){ee(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);ee(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return b(a,function(l){ee(o,l)>=0&&s.push(l)}),s}}function J0(t,e){return oe(oe({},t,!0),e,!0)}var ex={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:". "}}}};var tx={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 qu="ZH",Ev="EN",to=Ev,Xu={},Dv={},Zu=Q.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||to).toUpperCase();return t.indexOf(qu)>-1?qu:to})():to;function Ku(t,e){t=t.toUpperCase(),Dv[t]=new Se(e),Xu[t]=e}function rx(t){if(N(t)){var e=Xu[t.toUpperCase()]||{};return t===qu||t===Ev?j(e):oe(j(e),j(Xu[to]),!1)}else return oe(j(t),j(Xu[to]),!1)}function ix(t){return Dv[t]}function nx(){return Dv[to]}Ku(Ev,ex);Ku(qu,tx);var pM=null;function ke(){return pM}function ju(t,e){var r=ke(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function Xn(t){var e=t.brk;return e?e.breaks:[]}function qn(t){var e=t.brk;return e?e.hasBreaks():!1}var Ju=1e3,ef=Ju*60,ro=ef*60,qt=ro*24,Av=qt*365,hM={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})/},$u={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vM="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Qu="{yyyy}-{MM}-{dd}",Mv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qu,hour:Qu+" "+$u.hour,minute:Qu+" "+$u.minute,second:Qu+" "+$u.second,millisecond:vM},It=["year","month","day","hour","minute","second","millisecond"],ax=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ox(t){return!N(t)&&!V(t)?dM(t):t}function dM(t){t=t||{};var e={},r=!0;return b(It,function(i){r&&(r=t[i]==null)}),b(It,function(i,n){var a=t[i];e[i]={};for(var o=null,s=n;s>=0;s--){var l=It[s],u=z(a)&&!R(a)?a[l]:a,f=void 0;R(u)?(f=u.slice(),o=f[0]||""):N(u)?(o=u,f=[o]):(o==null?o=$u[i]:hM[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function pt(t,e){return t+="","0000".substr(0,e-t.length)+t}function io(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function sx(t){return t===io(t)}function lx(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function si(t,e,r,i){var n=_t(t),a=n[Ov(r)](),o=n[tf(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[rf(r)](),u=n["get"+(r?"UTC":"")+"Day"](),f=n[nf(r)](),c=(f-1)%12+1,p=n[af(r)](),h=n[of(r)](),v=n[sf(r)](),d=f>=12?"pm":"am",g=d.toUpperCase(),m=i instanceof Se?i:ix(i||Zu)||nx(),y=m.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),T=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,pt(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,pt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,pt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,pt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,pt(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,pt(v,3)).replace(/{S}/g,v+"")}function ux(t,e,r,i,n){var a=null;if(N(r))a=r;else if(V(r)){var o={time:t.time,level:t.time?t.time.level:0},s=ke();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=Zn(t.value,n);a=r[f][f][0]}}return si(new Date(t.value),a,n,i)}function Zn(t,e){var r=_t(t),i=r[tf(e)]()+1,n=r[rf(e)](),a=r[nf(e)](),o=r[af(e)](),s=r[of(e)](),l=r[sf(e)](),u=l===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1,v=h&&i===1;return v?"year":h?"month":p?"day":c?"hour":f?"minute":u?"second":"millisecond"}function no(t,e,r){switch(e){case"year":t[Lv(r)](0);case"month":t[Iv(r)](1);case"day":t[Pv(r)](0);case"hour":t[Rv(r)](0);case"minute":t[Nv(r)](0);case"second":t[kv(r)](0)}return t}function Ov(t){return t?"getUTCFullYear":"getFullYear"}function tf(t){return t?"getUTCMonth":"getMonth"}function rf(t){return t?"getUTCDate":"getDate"}function nf(t){return t?"getUTCHours":"getHours"}function af(t){return t?"getUTCMinutes":"getMinutes"}function of(t){return t?"getUTCSeconds":"getSeconds"}function sf(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fx(t){return t?"setUTCFullYear":"setFullYear"}function Lv(t){return t?"setUTCMonth":"setMonth"}function Iv(t){return t?"setUTCDate":"setDate"}function Pv(t){return t?"setUTCHours":"setHours"}function Rv(t){return t?"setUTCMinutes":"setMinutes"}function Nv(t){return t?"setUTCSeconds":"setSeconds"}function kv(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Bv(t,e,r,i,n,a,o,s){var l=new Ee({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function ks(t){if(!ls(t))return N(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function ao(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Hr=tn;function lf(t,e,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&$e(f)?f:"-"}function a(f){return ut(f)}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?_t(t):t;if(isNaN(+l)){if(s)return"-"}else return si(l,i,r)}if(e==="ordinal")return ga(t)?n(t):le(t)&&a(t)?t+"":"-";var u=ar(t);return a(u)?ks(u):ga(t)?n(t):typeof t=="boolean"?t+"":"-"}var cx=["a","b","c","d","e","f","g"],Uv=function(t,e){return"{"+t+(e??"")+"}"};function oo(t,e,r){R(e)||(e=[e]);var i=e.length;if(!i)return"";for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=cx[a];t=t.replace(Uv(o),Uv(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(Uv(cx[l],s),r?qe(u):u)}return t}function uf(t,e){var r=N(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qe(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qe(i)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function px(t,e,r){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
9
|
+
yyyy`);var i=_t(e),n=r?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return t=t.replace("MM",pt(o,2)).replace("M",o).replace("yyyy",a).replace("yy",pt(a%100+"",2)).replace("dd",pt(s,2)).replace("d",s).replace("hh",pt(l,2)).replace("h",l).replace("mm",pt(u,2)).replace("m",u).replace("ss",pt(f,2)).replace("s",f).replace("SSS",pt(c,3)),t}function hx(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Er(t,e){return e=e||"transparent",N(t)?t:z(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var ff={},Fv={},mM=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(ff,!0),this._normalMasterList=i(Fv,!1);function i(n,a){var o=[];return b(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){b(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){ff[e]=r;return}Fv[e]=r},t.get=function(e){return Fv[e]||ff[e]},t})();function gM(t){return!!ff[t]}var yM=1,vx=2;var _M=H();function pf(t){var e=t.getShallow("coord",!0),r=yM;if(e==null){var i=_M.get(t.type);i&&i.getCoord2&&(r=vx,e=i.getCoord2(t))}return{coord:e,from:r}}var so=0,cf=1,xM=2;function SM(t,e){var r=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=i!=null,a=so;if(r){var o=t.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(a=cf,o||(a=so)):i==="box"&&(a=xM,!o&&!gM(r)&&(a=so))}return{coordSysType:r,kind:a}}function dx(t){var e=t.targetModel,r=t.coordSysType,i=t.coordSysProvider,n=t.isDefaultDataCoordSys,a=t.allowNotFound,o=SM(e,!0),s=o.kind,l=o.coordSysType;if(n&&s!==cf&&(s=cf,l=r),s===so||l!==r)return so;var u=i(r,e);return u?(s===cf?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):so}var lo=mM;var df=b,TM=["left","right","top","bottom","width","height"],hf=[["width","left","right"],["height","top","bottom"]];function Vv(t,e,r,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t==="horizontal"){var d=f.width+(p?-p.x+f.x:0);h=a+d,h>i||l.newline?(a=0,h=d,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(p?-p.y+f.y:0);v=o+g,v>n||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+r:o=v+r)})}var Kn=Vv,pF=Te(Vv,"vertical"),hF=Te(Vv,"horizontal");function mx(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Gr(t,e,r){r=Hr(r||0);var i=e.width,n=e.height,a=yt(t.left,i),o=yt(t.top,n),s=yt(t.right,i),l=yt(t.bottom,n),u=yt(t.width,i),f=yt(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case"center":a=i/2-u/2-r[3];break;case"right":a=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":o=n/2-f/2-r[0];break;case"bottom":o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new q((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}var vf={rect:1,point:2};function mf(t,e,r){var i,n,a,o=t.boxCoordinateSystem,s;if(o){var l=pf(t),u=l.coord,f=l.from;if(o.dataToLayout){a=vf.rect,s=f;var c=o.dataToLayout(u);i=c.contentRect||c.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=vf.point,s=f,n=o.dataToPoint(u))}return a==null&&(a=vf.rect),a===vf.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function Bi(t){var e=t.layoutMode||t.constructor.layoutMode;return z(e)?e:e?{type:e}:null}function Zt(t,e,r){var i=r&&r.ignoreSize;!R(i)&&(i=[i,i]);var n=o(hf[0],0),a=o(hf[1],1);l(hf[0],t,n),l(hf[1],t,a);function o(u,f){var c={},p=0,h={},v=0,d=2;if(df(u,function(y){h[y]=t[y]}),df(u,function(y){Me(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===d||!p)return h;if(p>=d)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!Me(c,m)&&Me(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){df(u,function(p){f[p]=c[p]})}}function Yr(t){return bM({},t)}function bM(t,e){return e&&t&&df(TM,function(r){Me(e,r)&&(t[r]=e[r])}),t}var CM=re(),uo=(function(t){I(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=ki("ec_cpt_model"),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Bi(this),a=n?Yr(r):{},o=i.getTheme();oe(r,o.get(this.mainType)),oe(r,this.getDefaultOption()),n&&Zt(r,a,n)},e.prototype.mergeOption=function(r,i){oe(this.option,r,!0);var n=Bi(this);n&&Zt(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!jy(r))return r.defaultOption;var i=CM(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=oe(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return Mi(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return mx(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Se);pu(uo,Se);Oi(uo);Q0(uo);$0(uo,wM);function wM(t){var e=[];return b(uo.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=B(e,function(r){return Mt(r).main}),t!=="dataset"&&ee(e,"dataset")<=0&&e.unshift("dataset"),e}var me=uo;var jn={color:{},darkColor:{},size:{}},Be=jn.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)"};P(Be,{primary:Be.neutral80,secondary:Be.neutral70,tertiary:Be.neutral60,quaternary:Be.neutral50,disabled:Be.neutral20,border:Be.neutral30,borderTint:Be.neutral20,borderShade:Be.neutral40,background:Be.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Be.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Be.neutral70,axisLineTint:Be.neutral40,axisTick:Be.neutral70,axisTickMinor:Be.neutral60,axisLabel:Be.neutral70,axisSplitLine:Be.neutral15,axisMinorSplitLine:Be.neutral05});for(Ui in Be)Be.hasOwnProperty(Ui)&&(Gv=Be[Ui],Ui==="theme"?jn.darkColor.theme=Be.theme.slice():Ui==="highlight"?jn.darkColor.highlight="rgba(255,231,130,0.4)":Ui.indexOf("accent")===0?jn.darkColor[Ui]=wa(Gv,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):jn.darkColor[Ui]=wa(Gv,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var Gv,Ui;jn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Z=jn;var gx="";typeof navigator<"u"&&(gx=navigator.platform||"");var fo="rgba(0, 0, 0, 0.2)",yx=Z.color.theme[0],EM=wa(yx,null,null,.9),gf={darkMode:"auto",colorBy:"series",color:Z.color.theme,gradientColor:[EM,yx],aria:{decal:{decals:[{color:fo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gx.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 Tt={Must:1,Might:2,Not:3},_x=re();function xx(t){_x(t).datasetMap=H()}function Sx(t,e,r){var i={},n=Yv(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=_x(s).datasetMap,u=n.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),b(t,function(d,g){var m=z(d)?d:t[g]={name:d};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});b(t,function(d,g){var m=d.name,y=v(d);if(f==null){var _=p.valueWayDim;h(i[m],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===g)h(i[m],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[m],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(d,g,m){for(var y=0;y<m;y++)d.push(g+y)}function v(d){var g=d.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Yv(t){var e=t.get("data",!0);if(!e)return Mi(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},nt).models[0]}function Tx(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Mi(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},nt).models}function yf(t,e){return DM(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function DM(t,e,r,i,n,a){var o,s=5;if(Re(t))return Tt.Not;var l,u;if(i){var f=i[a];z(f)?(l=f.name,u=f.type):N(f)&&(l=f)}if(u!=null)return u==="ordinal"?Tt.Must:Tt.Not;if(e===Ye){var c=t;if(r===Fr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===St){var d=t;if(!l)return Tt.Not;for(var h=0;h<d.length&&h<s;h++){var g=d[h];if(g&&(o=x(g[l]))!=null)return o}}else if(e===Ht){var m=t;if(!l)return Tt.Not;var p=m[l];if(!p||Re(p))return Tt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===Ke)for(var y=t,h=0;h<y.length&&h<s;h++){var g=y[h],_=ri(g);if(!R(_))return Tt.Not;if((o=x(_[a]))!=null)return o}function x(S){var T=N(S);if(S!=null&&isFinite(Number(S))&&S!=="")return T?Tt.Might:Tt.Not;if(T&&S!=="-")return Tt.Must}return Tt.Not}var AM=H();function bx(t,e,r){var i=AM.get(e);if(!i)return r;var n=i(t);if(!n)return r;if(0)for(var a;a<n.length;a++);return r.concat(n)}var Cx=re(),IF=re(),Bs=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Pe(this.get("color",!0)),a=this.get("colorLayer",!0);return OM(this,Cx,n,a,e,r,i)},t.prototype.clearColorPalette=function(){LM(this,Cx)},t})();function MM(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function OM(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:MM(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function LM(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var _f,Us,Ex,Dx="\0_ec_inner",IM=1;var Lx=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Se(a),this._locale=new Se(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=Ox(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,Ox(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Ex(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=H(),u=i&&i.replaceMergeMainTypeMap;xx(this),b(r,function(c,p){c!=null&&(me.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?j(c):oe(n[p],c,!0))}),u&&u.each(function(c,p){me.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),me.topologicalTravel(s,me.getAllClassMainTypes(),f,this);function f(c){var p=bx(this,c,Pe(r[c])),h=a.get(c),v=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",d=ky(h,p,v);Uy(d,c,me),n[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],y=0,_,x;b(d,function(S,T){var C=S.existing,D=S.newOption;if(!D)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var E=c==="series",w=me.getClass(c,S.keyInfo.subType,!E);if(!w){if(0)var A,O;return}if(c==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===w)C.name=S.keyInfo.name,C.mergeOption(D,this),C.optionUpdated(D,!1);else{var M=P({componentIndex:T},S.keyInfo);C=new w(D,this,this,M),P(C,M),S.brandNew&&(C.__requireNewView=!0),C.init(D,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),y++):(g.push(void 0),m.push(void 0))},this),n[c]=g,a.set(c,m),o.set(c,y),c==="series"&&_f(this)}this._seriesIndices||_f(this)},e.prototype.getOption=function(){var r=j(this.option);return b(r,function(i,n){if(me.hasClass(n)){for(var a=Pe(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Na(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[Dx],r},e.prototype.setTheme=function(r){this._theme=new Se(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(Pe(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ax("id",a,s):o!=null?l=Ax("name",o,s):l=we(s,function(u){return!!u}),Mx(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):we(this._componentsMap.get(n),function(u){return!!u});return l(Mx(o,r));function s(u){var f=n+"Index",c=n+"Id",p=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?we(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(V(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=N(r)?a.get(r):z(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Ft(r,null);return we(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return we(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return we(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,i){Us(this),b(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){b(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Us(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return b(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Us(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Us(this);var n=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=H(n)},e.prototype.restoreData=function(r){_f(this);var i=this._componentsMap,n=[];i.each(function(a,o){me.hasClass(o)&&n.push(o)}),me.topologicalTravel(n,me.getAllClassMainTypes(),function(a){b(i.get(a),function(o){o&&(a!=="series"||!PM(o,r))&&o.restoreData()})})},e.internalField=(function(){_f=function(r){var i=r._seriesIndices=[];b(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=H(i)},Us=function(r){},Ex=function(r,i){r.option={},r.option[Dx]=IM,r._componentsMap=H({series:[]}),r._componentsCount=H();var n=i.aria;z(n)&&n.enabled==null&&(n.enabled=!0),RM(i,r._theme.option),oe(i,gf,!1),r._mergeOption(i,null)}})(),e})(Se);function PM(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function RM(t,e){var r=t.color&&!t.colorLayer;b(e,function(i,n){n==="colorLayer"&&r||n==="color"&&t.color||me.hasClass(n)||(typeof i=="object"?t[n]=t[n]?oe(t[n],i,!1):j(i):t[n]==null&&(t[n]=i))})}function Ax(t,e,r){if(R(e)){var i=H();return b(e,function(a){if(a!=null){var o=Ft(a,null);o!=null&&i.set(a,!0)}}),we(r,function(a){return a&&i.get(a[t])})}else{var n=Ft(e,null);return we(r,function(a){return a&&n!=null&&a[t]===n})}}function Mx(t,e){return e.hasOwnProperty("subType")?we(t,function(r){return r&&r.subType===e.subType}):t}function Ox(t){var e=H();return t&&b(Pe(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Qe(Lx,Bs);var xf=Lx;var NM=/^(min|max)?(.+)$/,kM=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(b(Pe(e.series),function(o){o&&o.data&&Re(o.data)&&rn(o.data)}),b(Pe(e.dataset),function(o){o&&o.source&&Re(o.source)&&rn(o.source)})),e=j(e);var n=this._optionBackup,a=BM(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],j(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(r=j(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)UM(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!FM(o,this._currentMediaIndices)&&(s=B(o,function(f){return j(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function BM(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&R(u)&&b(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),b(l,function(h){return p(h)}),b(i,function(h){return p(h.option)});function p(h){b(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function UM(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return b(t,function(a,o){var s=o.match(NM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();zM(i[u],a,l)||(n=!1)}}),n}function zM(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function FM(t,e){return t.join(",")===e.join(",")}var Ix=kM;var Dr=b,Fs=z,Px=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=Px.length;r<i;r++){var n=Px[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?oe(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?oe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function ht(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,J(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function zs(t){ht(t,"itemStyle"),ht(t,"lineStyle"),ht(t,"areaStyle"),ht(t,"label"),ht(t,"labelLine"),ht(t,"upperLabel"),ht(t,"edgeLabel")}function He(t,e){var r=Fs(t)&&t[e],i=Fs(r)&&r.textStyle;if(i)for(var n=0,a=lh.length;n<a;n++){var o=lh[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function pr(t){t&&(zs(t),He(t,"label"),t.emphasis&&He(t.emphasis,"label"))}function VM(t){if(Fs(t)){Wv(t),zs(t),He(t,"label"),He(t,"upperLabel"),He(t,"edgeLabel"),t.emphasis&&(He(t.emphasis,"label"),He(t.emphasis,"upperLabel"),He(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wv(e),pr(e));var r=t.markLine;r&&(Wv(r),pr(r));var i=t.markArea;i&&pr(i);var n=t.data;if(t.type==="graph"){n=n||t.nodes;var a=t.links||t.edges;if(a&&!Re(a))for(var o=0;o<a.length;o++)pr(a[o]);b(t.categories,function(u){zs(u)})}if(n&&!Re(n))for(var o=0;o<n.length;o++)pr(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)pr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)R(l[o])?(pr(l[o][0]),pr(l[o][1])):pr(l[o]);t.type==="gauge"?(He(t,"axisLabel"),He(t,"title"),He(t,"detail")):t.type==="treemap"?(ht(t.breadcrumb,"itemStyle"),b(t.levels,function(u){zs(u)})):t.type==="tree"&&zs(t.leaves)}}function li(t){return R(t)?t:t?[t]:[]}function Rx(t){return(R(t)?t[0]:t)||{}}function Xv(t,e){Dr(li(t.series),function(i){Fs(i)&&VM(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Dr(r,function(i){Dr(li(t[i]),function(n){n&&(He(n,"axisLabel"),He(n.axisPointer,"label"))})}),Dr(li(t.parallel),function(i){var n=i&&i.parallelAxisDefault;He(n,"axisLabel"),He(n&&n.axisPointer,"label")}),Dr(li(t.calendar),function(i){ht(i,"itemStyle"),He(i,"dayLabel"),He(i,"monthLabel"),He(i,"yearLabel")}),Dr(li(t.radar),function(i){He(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)}),Dr(li(t.geo),function(i){Fs(i)&&(pr(i),Dr(li(i.regions),function(n){pr(n)}))}),Dr(li(t.timeline),function(i){pr(i),ht(i,"label"),ht(i,"itemStyle"),ht(i,"controlStyle",!0);var n=i.data;R(n)&&b(n,function(a){z(a)&&(ht(a,"label"),ht(a,"itemStyle"))})}),Dr(li(t.toolbox),function(i){ht(i,"iconStyle"),Dr(i.feature,function(n){ht(n,"iconStyle")})}),He(Rx(t.axisPointer),"label"),He(Rx(t.tooltip).axisPointer,"label")}function HM(t,e){for(var r=e.split(","),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function GM(t,e,r,i){for(var n=e.split(","),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function Nx(t){t&&b(YM,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var YM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],WM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],qv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Vs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<qv.length;r++){var i=qv[r][1],n=qv[r][0];e[i]!=null&&(e[n]=e[i])}}function kx(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Bx(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function XM(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Ux(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&Ux(t[r].children,e)}function Sf(t,e){Xv(t,e),t.series=Pe(t.series),b(t.series,function(r){if(z(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),kx(r.label);var n=r.data;if(n&&!Re(n))for(var a=0;a<n.length;a++)kx(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=HM(r,"pointer.color");o!=null&&GM(r,"itemStyle.color",o)}else if(i==="bar"){Vs(r),Vs(r.backgroundStyle),Vs(r.emphasis);var n=r.data;if(n&&!Re(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Vs(n[a]),Vs(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Bx(r),Ux(r.data,Bx)}else i==="graph"||i==="sankey"?XM(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&J(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Nx(r)}}),t.dataRange&&(t.visualMap=t.dataRange),b(WM,function(r){var i=t[r];i&&(R(i)||(i=[i]),b(i,function(n){Nx(n)}))})}var zx=Ua(qM);function qM(t){var e=H();t.eachSeries(function(r){var i=r.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),ZM(r)}})}function ZM(t){b(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var d=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&p>=0&&y>0||l==="samesign"&&p<=0&&y<0){p=Dy(p,y),d=y;break}}}return i[0]=p,i[1]=d,i})})}var Tf=(function(){function t(e){this.data=e.data||(e.sourceFormat===Ht?{}:[]),this.sourceFormat=e.sourceFormat||kh,this.seriesLayoutBy=e.seriesLayoutBy||Yt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&yf(this,i)===Tt.Must&&(n.type="ordinal")}}return t})();function co(t){return t instanceof Tf}function Hs(t,e,r){r=r||Zv(t);var i=e.seriesLayoutBy,n=KM(t,r,i,e.sourceHeader,e.dimensions),a=new Tf({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(e)});return a}function po(t){return new Tf({data:t,sourceFormat:Re(t)?Gt:Ke})}function Hx(t){return new Tf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:j(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Zv(t){var e=kh;if(Re(t))e=Gt;else if(R(t)){t.length===0&&(e=Ye);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(R(n)||Re(n)){e=Ye;break}else if(z(n)){e=St;break}}}}else if(z(t)){for(var a in t)if(Me(t,a)&&Ue(t[a])){e=Ht;break}}return e}function KM(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:Fx(n),startIndex:o,dimensionsDetectedCount:a};if(e===Ye){var s=t;i==="auto"||i==null?Vx(function(u){u!=null&&u!=="-"&&(N(u)?o==null&&(o=1):o=0)},r,s,10):o=le(i)?i:i?1:0,!n&&o===1&&(n=[],Vx(function(u,f){n[f]=u!=null?u+"":""},r,s,1/0)),a=n?n.length:r===Fr?s.length:s[0]?s[0].length:null}else if(e===St)n||(n=jM(t));else if(e===Ht)n||(n=[],b(t,function(u,f){n.push(f)}));else if(e===Ke){var l=ri(t[0]);a=R(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Fx(n),dimensionsDetectedCount:a}}function jM(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return se(r)}function Fx(t){if(t){var e=H();return B(t,function(r,i){r=z(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=e.get(n.name);return a?n.name+="-"+a.count++:e.set(n.name,{count:1}),n})}}function Vx(t,e,r,i){if(e===Fr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function bf(t){var e=t.sourceFormat;return e===St||e===Ht}var Qn,$n,Jn,ea,Gx,Yx,wf=(function(){function t(e,r){var i=co(e)?e:po(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat,o=i.seriesLayoutBy;if(a===Gt&&(this._offset=0,this._dimSize=r,this._data=n),0)var s;Yx(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;Yx=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=Gx[Jv(u,f)];if(P(o,h),u===Gt)o.getItem=r,o.count=n,o.fillStorage=i;else{var v=jv(u,f);o.getItem=fe(v,null,s,c,p);var d=Qv(u,f);o.count=fe(d,null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?1/0:h[0],d=h[1]==null?-1/0:h[1],g=s-o,m=l[p],y=0;y<g;y++){var _=f[y*c+p];m[o+y]=_,_<v&&(v=_),_>d&&(d=_)}h[0]=v,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Gx=(e={},e[Ye+"_"+Yt]={pure:!0,appendData:a},e[Ye+"_"+Fr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[St]={pure:!0,appendData:a},e[Ht]={pure:!0,appendData:function(o){var s=this._data;b(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ke]={appendData:a},e[Gt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var Cf=function(t){R(t)||oh("series.data or dataset.source must be an array.")},mV=(Qn={},Qn[Ye+"_"+Yt]=Cf,Qn[Ye+"_"+Fr]=Cf,Qn[St]=Cf,Qn[Ht]=function(t,e){for(var r=0;r<e.length;r++){var i=e[r].name;i==null&&oh("dimension name must not be null/undefined.")}},Qn[Ke]=Cf,Qn),Wx=function(t,e,r,i){return t[i]},QM=($n={},$n[Ye+"_"+Yt]=function(t,e,r,i){return t[i+e]},$n[Ye+"_"+Fr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},$n[St]=Wx,$n[Ht]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},$n[Ke]=Wx,$n);function jv(t,e){var r=QM[Jv(t,e)];return r}var Xx=function(t,e,r){return t.length},$M=(Jn={},Jn[Ye+"_"+Yt]=function(t,e,r){return Math.max(0,t.length-e)},Jn[Ye+"_"+Fr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},Jn[St]=Xx,Jn[Ht]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},Jn[Ke]=Xx,Jn);function Qv(t,e){var r=$M[Jv(t,e)];return r}var Kv=function(t,e,r){return t[e]},JM=(ea={},ea[Ye]=Kv,ea[St]=function(t,e,r){return t[r]},ea[Ht]=Kv,ea[Ke]=function(t,e,r){var i=ri(t);return i instanceof Array?i[e]:i},ea[Gt]=Kv,ea);function $v(t){var e=JM[t];return e}function Jv(t,e){return t===Ye?t+"_"+e:t}function ui(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return $v(a)(i,o,s)}else{var l=i;return a===Ke&&(l=ri(i)),l}}}}var eO=/\{@(.+?)\}/g,qx=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,p=c==="series",h=i.userOutput&&i.userOutput.get();return{componentType:c,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:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&R(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(V(a))return l.status=r,l.dimensionIndex=n,a(l);if(N(a)){var f=oo(a,l);return f.replace(eO,function(c,p){var h=p.length,v=p;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var d=ui(s,e,v);if(o&&R(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},t.prototype.getRawValue=function(e,r){return ui(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function ed(t){var e,r;return z(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function zi(t){return new tO(t)}var tO=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||h<v)){var d=this._progress;if(R(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],h,v,l,u);else this._doProgress(d,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){Zx.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:Zx.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),R(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var Zx=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function ho(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!le(t)&&t!=null&&t!=="-"&&(t=+_t(t)),t==null||t===""?NaN:Number(t))}var DV=H({number:function(t){return parseFloat(t)},time:function(t){return+_t(t)},trim:function(t){return N(t)?$e(t):t}});var rO={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},AV=(function(){function t(e,r){if(!le(r)){var i="";Je(i)}this._opFn=rO[e],this._rvalFloat=ar(r)}return t.prototype.evaluate=function(e){return le(e)?this._opFn(e,this._rvalFloat):this._opFn(ar(e),this._rvalFloat)},t})(),Kx=(function(){function t(e,r){var i=e==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var i=le(e)?e:ar(e),n=le(r)?r:ar(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=N(e),l=N(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();var MV=(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=ar(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=ar(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function jx(t){var e="",r=-1/0,i=-1/0,n=1/0,a=1/0;return t&&(t.g!=null&&(e+="G"+t.g,r=t.g),t.ge!=null&&(e+="GE"+t.ge,i=t.ge),t.l!=null&&(e+="L"+t.l,n=t.l),t.le!=null&&(e+="LE"+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function Qx(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var iO=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ho(e,r)},t})();function nO(t,e){var r=new iO,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Yt&&Je(o);var s=[],l={},u=t.dimensionsDefine;if(u)b(u,function(d,g){var m=d.name,y={index:g,name:m,displayName:d.displayName};if(s.push(y),m!=null){var _="";Me(l,m)&&Je(_),l[m]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=jv(n,Yt);e.__isBuiltIn&&(r.getRawDataItem=function(d){return c(i,a,s,d)},r.getRawData=fe(aO,null,t)),r.cloneRawData=fe(oO,null,t);var p=Qv(n,Yt);r.count=fe(p,null,i,a,s);var h=$v(n);r.retrieveValue=function(d,g){var m=c(i,a,s,d);return v(m,g)};var v=r.retrieveValueFromItem=function(d,g){if(d!=null){var m=s[g];if(m)return h(d,g,m.name)}};return r.getDimensionInfo=fe(sO,null,s,l),r.cloneAllDimensionInfo=fe(lO,null,s),r}function aO(t){var e=t.sourceFormat;if(!td(e)){var r="";Je(r)}return t.data}function oO(t){var e=t.sourceFormat,r=t.data;if(!td(e)){var i="";Je(i)}if(e===Ye){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===St){for(var n=[],a=0,o=r.length;a<o;a++)n.push(P({},r[a]));return n}}function sO(t,e,r){if(r!=null){if(le(r)||!isNaN(r)&&!Me(e,r))return t[r];if(Me(e,r))return e[r]}}function lO(t){return j(t)}var $x=H();function Jx(t){t=j(t);var e=t.type,r="";e||Je(r);var i=e.split(":");i.length!==2&&Je(r);var n=!1;i[0]==="echarts"&&(e=i[1],n=!0),t.__isBuiltIn=n,$x.set(e,t)}function eS(t,e,r){var i=Pe(t),n=i.length,a="";n||Je(a);for(var o=0,s=n;o<s;o++){var l=i[o];e=uO(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function uO(t,e,r,i){var n="";e.length||Je(n),z(t)||Je(n);var a=t.type,o=$x.get(a);o||Je(n);var s=B(e,function(f){return nO(f,o)}),l=Pe(o.transform({upstream:s[0],upstreamList:s,config:j(t.config)}));if(0&&t.print)var u;return B(l,function(f,c){var p="";z(f)||Je(p),f.data||Je(p);var h=Zv(f.data);td(h)||Je(p);var v,d=e[0];if(d&&c===0&&!f.dimensions){var g=d.startIndex;g&&(f.data=d.data.slice(0,g).concat(f.data)),v={seriesLayoutBy:Yt,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Yt,sourceHeader:0,dimensions:f.dimensions};return Hs(f.data,v,null)})}function td(t){return t===Ye||t===St}var fO=typeof Uint32Array===Ln?Array:Uint32Array,cO=typeof Uint16Array===Ln?Array:Uint16Array,id=typeof Int32Array===Ln?Array:Int32Array,tS=typeof Float64Array===Ln?Array:Float64Array,iS={float:tS,int:id,ordinal:Array,number:Array,time:tS},rd;function vo(t){return t>65535?fO:cO}function pO(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function rS(t,e,r,i,n){var a=iS[r||"float"];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var hO=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=H()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=rd[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=bf(n);this._dimensions=B(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new iS[r||"float"](this._rawCount),this._rawExtent[a]=at(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=at());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],i=r.ordinalMeta;return i},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];rS(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],d=rd.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=d;var g=o[v];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=B(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=at()),rS(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var d=a[v],g=this._dimValueGetter(p,u[v],h,v);d[h]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Ia(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=vo(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=vo(i._rawCount),o=new a(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var d=c[f][v];h=r(d,p)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][v];s[g]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=se(e),a=n.length;if(!a)return this;var o=r.count(),s=vo(r._rawCount),l=new s(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var d=0;if(a===1){for(var g=h[n[0]],m=0;m<i;m++){var y=g[m];(y>=c&&y<=p||isNaN(y))&&(l[u++]=d),d++}v=!0}else if(a===2){for(var g=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],m=0;m<i;m++){var y=g[m],T=_[m];(y>=c&&y<=p||isNaN(y))&&(T>=x&&T<=S||isNaN(T))&&(l[u++]=d),d++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var C=r.getRawIndex(m),y=h[n[0]][C];(y>=c&&y<=p||isNaN(y))&&(l[u++]=C)}else for(var m=0;m<o;m++){for(var D=!0,C=r.getRawIndex(m),E=0;E<a;E++){var w=n[E],y=h[w][C];(y<e[w][0]||y>e[w][1])&&(D=!1)}D&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=at();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var d=r[f],g=v[f],m=u[d],y=n[d];y&&(y[p]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(vo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var d=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+d)/2,y=0,_=d;_<g;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=g-d;var T=v,C=Math.min(v+l,o),D=v-1,E=a[u];f=-1,p=T;for(var w=-1,A=0,_=T;_<C;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){A++,w<0&&(w=x);continue}c=Math.abs((D-m)*(S-E)-(D-_)*(y-E)),c>f&&(f=c,p=x)}A>0&&A<C-T&&(h[s++]=Math.min(w,p),p=Math.max(w,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(vo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],d=a;f+a>s&&(d=s-f);for(var g=0;g<d;g++){var m=this.getRawIndex(f+g),y=o[m];y<p&&(p=y,c=f+g),y>v&&(v=y,h=f+g)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=at(),p=new(vo(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(v+d);s[d]=u[g]}var m=i(s),y=this.getRawIndex(Math.min(v+n(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=at();if(!i)return n;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=jx(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=this.getRawIndex(v),g=i[d];(!r||Qx(u,g))&&(g<p&&(p=g),g>h&&(h=g))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&st(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?pO(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=j(this._extent),e._rawExtent=j(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return ho(r[a],this._dimensions[a])}rd={arrayRows:e,objectRows:function(r,i,n,a){return ho(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return ho(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})(),Gs=hO;var aS=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Ef(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Re(s)?Gt:Ke,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=G(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=G(c.sourceHeader,p.sourceHeader),d=G(c.dimensions,p.dimensions),g=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||d;n=g?[Hs(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:d},l)]:[]}else{var m=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);n=[Hs(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";e.length!==1&&nS(a)}var o,s=[],l=[];return b(e,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&nS(c),s.push(f),l.push(u._getVersionSign())}),i?o=eS(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Hx(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Ef(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new Gs,s.initData(new wf(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ef(e)){var r=Yv(e);return r?[r.getSourceManager()]:[]}else return B(Tx(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(Ef(e))r=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function Ef(t){return t.mainType==="series"}function nS(t){throw new Error(t)}var vO="line-height:1";function oS(t){var e=t.lineHeight;return e==null?vO:"line-height:"+qe(e+"")+"px"}function sS(t,e){var r=t.color||Z.color.tertiary,i=t.fontSize||12,n=t.fontWeight||"400",a=t.color||Z.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+qe(i+"")+"px;color:"+qe(r)+";font-weight:"+qe(n+""),valueStyle:"font-size:"+qe(o+"")+"px;color:"+qe(a)+";font-weight:"+qe(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var dO=[0,10,20,30],mO=["",`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];function ta(t,e){return e.type=t,e}function nd(t){return t.type==="section"}function lS(t){return nd(t)?gO:yO}function uS(t){if(nd(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return b(t.blocks,function(n){var a=uS(n);a>=e&&(e=a+ +(i&&(!a||nd(n)&&!n.noHeader)))}),e}return 0}function gO(t,e,r,i){var n=e.noHeader,a=_O(uS(e)),o=[],s=e.blocks||[];ze(!s||R(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Me(u,l)){var f=new Kx(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(d,g){var m=e.valueFormatter,y=lS(d)(m?P(P({},t),{valueFormatter:m}):t,d,g>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode==="richText"?o.join(a.richText):ad(i,o.join(""),n?r:a.html);if(n)return c;var p=lf(e.header,"ordinal",t.useUTC),h=sS(i,t.renderMode).nameStyle,v=oS(i);return t.renderMode==="richText"?fS(t,p,h)+a.richText+c:ad(i,'<div style="'+h+";"+v+';">'+qe(p)+"</div>"+c,r)}function yO(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=R(x)?x:[x],B(x,function(S,T){return lf(S,R(h)?h[T]:h,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Z.color.secondary,n),p=a?"":lf(l,"ordinal",u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),d=!s||!a,g=!s&&a,m=sS(i,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":c)+(a?"":fS(t,p,y))+(o?"":TO(t,v,d,g,_)):ad(i,(s?"":c)+(a?"":xO(p,!s,y))+(o?"":SO(v,d,g,_)),r)}}function od(t,e,r,i,n,a){if(t){var o=lS(t),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function _O(t){return{html:dO[t],richText:mO[t]}}function ad(t,e,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=oS(t);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function xO(t,e,r){var i=e?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+qe(t)+"</span>"}function SO(t,e,r,i){var n=r?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return t=R(t)?t:[t],'<span style="'+a+";"+i+'">'+B(t,function(o){return qe(o)}).join(" ")+"</span>"}function fS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function TO(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(R(e)?e.join(" "):e,a)}function cS(t,e){var r=t.getData().getItemVisual(e,"style"),i=r[t.visualDrawType];return Er(i)}function Df(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Af=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=us()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i==="richText"?this._generateStyleName():null,a=uf({color:r,type:e,renderMode:i,markerId:n});return N(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};R(r)?b(r,function(a){return P(i,a)}):P(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},t})();function pS(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=R(s),u=cS(e,r),f,c,p,h;if(o>1||l&&!o){var v=bO(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);h=f=ui(n,r,a[0]),c=d.type}else h=f=l?s[0]:s;var g=ka(e),m=g&&e.name||"",y=n.getName(r),_=i?m:y;return ta("section",{header:m,noHeader:i||!g,sortParam:h,blocks:[ta("nameValue",{markerType:"item",markerColor:u,name:_,noName:!$e(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function bO(t,e,r,i,n){var a=e.getData(),o=st(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?b(i,function(c){f(ui(a,r,c),c)}):b(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(ta("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Fi=re();function Mf(t,e){return t.getName(e)||t.getId(e)}var CO="__universalTransitionEnabled",Of=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=zi({count:EO,reset:DO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=Fi(this).sourceManager=new aS(this);a.prepareSource();var o=this.getInitialData(r,n);vS(o,this),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,hS(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=Bi(this),a=n?Yr(r):{},o=this.subType;me.hasClass(o)&&(o+="Series"),oe(r,i.getTheme().get(this.subType)),oe(r,this.getDefaultOption()),sh(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&Zt(r,a,n)},e.prototype.mergeOption=function(r,i){r=oe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=Bi(this);n&&Zt(this.option,r,n);var a=Fi(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);vS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Fi(this).dataBeforeProcessed=o,hS(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!Re(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&sh(r[n],"label",i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},e.prototype.getData=function(r){var i=sd(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return Fi(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=sd(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}Fi(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return H(r)},e.prototype.getSourceManager=function(){return Fi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Fi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a==null&&(a=1/0);for(var f=[],c=1/0,p=-1,h=0,v=o.getDimensionIndex(i),d=o.getStore(),g=0,m=d.count();g<m;g++){var y=d.get(v,g),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return pS({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Q.node&&!(r&&r.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Bs.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Mf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=se(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Mf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[CO])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){z(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=Mf(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var h=i[l-1],p=Mf(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return me.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(me);Qe(Of,qx);Qe(Of,Bs);pu(Of,me);function hS(t){var e=t.name;ka(t)||(t.name=wO(t)||e)}function wO(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),i=[];return b(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function EO(t){return t.model.getRawData().count()}function DO(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),AO}function AO(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function vS(t,e){b(ip(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Te(MO,e))})}function MO(t,e){var r=sd(t);return r&&r.setOutputEnd((e||this).count()),e}function sd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var hr=Of;var ld=(function(){function t(){this.group=new xe,this.uid=ki("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();za(ld);Oi(ld);var je=ld;function Ys(){var t=re();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var gS=re(),OO=Ys(),ud=(function(){function t(){this.group=new xe,this.uid=ki("viewChart"),this.renderTask=zi({plan:LO,reset:IO}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&mS(a,n,"emphasis")},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&mS(a,n,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){Ns(this.group,e)},t.markUpdateMethod=function(e,r){gS(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function dS(t,e,r){t&&bs(t)&&(e==="emphasis"?In:Pn)(t,r)}function mS(t,e,r){var i=or(t,e),n=e&&e.highlightKey!=null?n0(e.highlightKey):null;i!=null?b(Pe(i),function(a){dS(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){dS(a,r,n)})}za(ud,["dispose"]);Oi(ud);function LO(t){return OO(t.model)}function IO(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&gS(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,i,n),PO[l]}var PO={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},bt=ud;var Lf="\0__throttleOriginMethod",yS="\0__throttleRate",_S="\0__throttleType";function Ws(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var d=f||e,g=f||r;f=null,s=i-(g?n:a)-d,clearTimeout(o),g?o=setTimeout(c,d):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function If(t,e,r,i){var n=t[e];if(n){var a=n[Lf]||n,o=n[_S],s=n[yS];if(s!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=Ws(a,r,i==="debounce"),n[Lf]=a,n[_S]=i,n[yS]=r}return n}}function Xs(t,e){var r=t[e];r&&r[Lf]&&(r.clear&&r.clear(),t[e]=r[Lf])}var xS=re(),SS={itemStyle:Pr(Cv,!0),lineStyle:Pr(bv,!0)},NO={lineStyle:"stroke",itemStyle:"fill"};function TS(t,e){var r=t.visualStyleMapper||SS[e];return r||(console.warn("Unknown style type '"+e+"'."),SS.itemStyle)}function bS(t,e){var r=t.visualDrawType||NO[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var CS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=t.getModel(i),a=TS(t,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=bS(t,i),u=o[l],f=V(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||V(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||V(o.stroke)?p:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var d=t.getDataParams(v),g=P({},o);g[l]=f(d),h.setItemVisual(v,"style",g)}}}},qs=new Se,wS={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||"itemStyle",n=TS(t,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){qs.option=l[i];var u=n(qs),f=o.ensureUniqueItemVisual(s,"style");P(f,u),qs.option.decal&&(o.setItemVisual(s,"decal",qs.option.decal),qs.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ES={performRawSeries:!0,overallReset:function(t){var e=H();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+"-"+r.getColorBy();xS(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=xS(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=bS(r,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var p=a.ensureUniqueItemVisual(f,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var Pf=Math.PI;function fd(t,e){e=e||{},J(e,{text:"loading",textColor:Z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new xe,i=new _e({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new Ee({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new _e({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Bn({shape:{startAngle:-Pf/2,endAngle:-Pf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Pf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var kO=(function(){function t(e,r,i,n){this._stageTaskMap=H(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(r,i):Zy(e,r,i);e.pipelineContext=i.context=n},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=H();r.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;b(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";ze(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;b(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var d=o.getPerformArgs(p,n.block);v.each(function(g){g.perform(d)}),p.perform(d)&&(a=!0)}else c&&c.each(function(g,m){s(n,g)&&g.dirty();var y=o.getPerformArgs(g,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=H(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||zi({plan:VO,reset:HO,count:YO}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||zi({reset:BO});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=H(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1,h="";ze(!e.createOnAllSeries,h),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):b(i.getSeries(),v);function v(d){var g=d.uid,m=l.set(g,s&&s.get(g)||(p=!0,zi({reset:UO,onDirty:FO})));m.context={model:d,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(d,m)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return V(e)&&(e={overallReset:e,seriesType:WO(e)}),e.uid=ki("stageHandler"),r&&(e.visualType=r),e},t})();function BO(t){t.overallReset(t.ecModel,t.api,t.payload)}function UO(t){return t.dirtyOnOverallProgress&&zO}function zO(){this.agent.dirty(),this.getDownstream().dirty()}function FO(){this.agent&&this.agent.dirty()}function VO(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function HO(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Pe(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?B(e,function(r,i){return DS(i)}):GO}var GO=DS(0);function DS(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function YO(t){return t.data.count()}function WO(t){Rf=null;try{t(Zs,AS)}catch{}return Rf}var Zs={},AS={},Rf;MS(Zs,xf);MS(AS,Su);Zs.eachSeriesByType=Zs.eachRawSeriesByType=function(t){Rf=t};Zs.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Rf=t.subType)};function MS(t,e){for(var r in e.prototype)t[r]=Le}var cd=kO;var F=Z.darkColor,OS=F.background,Ks=function(){return{axisLine:{lineStyle:{color:F.axisLine}},splitLine:{lineStyle:{color:F.axisSplitLine}},splitArea:{areaStyle:{color:[F.backgroundTint,F.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:F.axisMinorSplitLine}},axisLabel:{color:F.axisLabel},axisName:{}}},LS={label:{color:F.secondary},itemStyle:{borderColor:F.borderTint},dividerLineStyle:{color:F.border}},IS={darkMode:!0,color:F.theme,backgroundColor:OS,axisPointer:{lineStyle:{color:F.border},crossStyle:{color:F.borderShade},label:{color:F.tertiary}},legend:{textStyle:{color:F.secondary},pageTextStyle:{color:F.tertiary}},textStyle:{color:F.secondary},title:{textStyle:{color:F.primary},subtextStyle:{color:F.quaternary}},toolbox:{iconStyle:{borderColor:F.accent50},feature:{dataView:{backgroundColor:OS,textColor:F.primary,textareaColor:F.background,textareaBorderColor:F.border,buttonColor:F.accent50,buttonTextColor:F.neutral00}}},tooltip:{backgroundColor:F.neutral20,defaultBorderColor:F.border,textStyle:{color:F.tertiary}},dataZoom:{borderColor:F.accent10,textStyle:{color:F.tertiary},brushStyle:{color:F.backgroundTint},handleStyle:{color:F.neutral00,borderColor:F.accent20},moveHandleStyle:{color:F.accent40},emphasis:{handleStyle:{borderColor:F.accent50}},dataBackground:{lineStyle:{color:F.accent30},areaStyle:{color:F.accent20}},selectedDataBackground:{lineStyle:{color:F.accent50},areaStyle:{color:F.accent30}}},visualMap:{textStyle:{color:F.secondary},handleStyle:{borderColor:F.neutral30}},timeline:{lineStyle:{color:F.accent10},label:{color:F.tertiary},controlStyle:{color:F.accent30,borderColor:F.accent30}},calendar:{itemStyle:{color:F.neutral00,borderColor:F.neutral20},dayLabel:{color:F.tertiary},monthLabel:{color:F.secondary},yearLabel:{color:F.secondary}},matrix:{x:LS,y:LS,backgroundColor:{borderColor:F.axisLine},body:{itemStyle:{borderColor:F.borderTint}}},timeAxis:Ks(),logAxis:Ks(),valueAxis:Ks(),categoryAxis:Ks(),line:{symbol:"circle"},graph:{color:F.theme},gauge:{title:{color:F.secondary},axisLine:{lineStyle:{color:[[1,F.neutral05]]}},axisLabel:{color:F.axisLabel},detail:{color:F.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:F.background}},radar:(function(){var t=Ks();return t.axisName={color:F.axisLabel},t.axisLine.lineStyle.color=F.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:F.neutral20,textStyle:{color:F.secondary}},emphasis:{itemStyle:{color:F.neutral30}}}},sunburst:{itemStyle:{borderColor:F.background}},map:{itemStyle:{borderColor:F.border,areaColor:F.neutral10},label:{color:F.tertiary},emphasis:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}},select:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}}},geo:{itemStyle:{borderColor:F.border,areaColor:F.neutral10},emphasis:{label:{color:F.primary},itemStyle:{areaColor:F.highlight}},select:{label:{color:F.primary},itemStyle:{color:F.highlight}}}};IS.categoryAxis.splitLine.show=!1;var PS=IS;var RS=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(N(e)){var a=Mt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var pd=["symbol","symbolSize","symbolRotate","symbolOffset"],NS=pd.concat(["symbolKeepAspect"]),kS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<pd.length;o++){var s=pd[o],l=t.get(s);V(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(P({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),e.isSeriesFiltered(t))return;var u=se(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),d=0;d<u.length;d++){var g=u[d];c.setItemVisual(p,g,n[g](h,v))}}return{dataEach:a?f:null}}},BS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<NS.length;s++){var l=NS[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function US(t,e,r){switch(r){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:}}function zS(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:}}function mo(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),p=or(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:R(p)?c.getName(p[0]):c.getName(p),selected:N(l)?l:P({},l)})}})}function FS(t,e,r){t.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(mo("map","selectchanged",e,n,i),mo("pie","selectchanged",e,n,i)):i.fromAction==="select"?(mo("map","selected",e,n,i),mo("pie","selected",e,n,i)):i.fromAction==="unselect"&&(mo("map","unselected",e,n,i),mo("pie","unselected",e,n,i))})}function ra(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var XO=new rt,Kt=XO;var VS={};function HS(t,e){VS[t]=e}function hd(t){return VS[t]}var qO={};function Nf(t,e){qO[t]=e}var vd=re();function GS(t){vd(t).prepare={}}function YS(t){vd(t).fullUpdate={}}function go(t){return vd(t).fullUpdate}var ZO=Math.round(Math.random()*9),KO=typeof Object.defineProperty=="function",jO=(function(){function t(){this._id="__ec_inner_"+ZO++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return KO?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),WS=jO;var QO=ae.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),$O=ae.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),JO=ae.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),eL=ae.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),tL={line:Wt,rect:_e,roundRect:_e,square:_e,circle:Rn,diamond:$O,pin:JO,arrow:eL,triangle:QO},rL={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},dd={};b(tL,function(t,e){dd[e]=new t});var iL=ae.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=ru(t,e,r),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!=="none"){var n=dd[i];n||(i="rect",n=dd[i]),rL[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function nL(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Z.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function jt(t,e,r,i,n,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Rs(t.slice(8),new q(e,r,i,n),o?"center":"cover"):t.indexOf("path://")===0?l=Ka(t.slice(7),{},new q(e,r,i,n),o?"center":"cover"):l=new iL({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=nL,a&&l.setColor(a),l}function XS(t){return R(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function kf(t,e){if(t!=null)return R(t)||(t=[t,t]),[yt(t[0],e[0])||0,yt(G(t[1],t[0]),e[1])||0]}function ia(t){return isFinite(t)}function aL(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=ia(i)?i:0,n=ia(n)?n:1,a=ia(a)?a:0,o=ia(o)?o:0;var s=t.createLinearGradient(i,a,n,o);return s}function oL(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+r.x,s=s*n+r.y,l=l*a),o=ia(o)?o:.5,s=ia(s)?s:.5,l=l>=0&&ia(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function js(t,e,r){for(var i=e.type==="radial"?oL(t,e,r):aL(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function qS(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function Bf(t){return parseInt(t,10)}function Qs(t,e,r){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||Bf(s[i])||Bf(t.style[i]))-(Bf(s[a])||0)-(Bf(s[o])||0)||0}function sL(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:le(t)?[t]:R(t)?t:null}function md(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&sL(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=B(r,function(a){return a/n}),i/=n)}return[r,i]}var lL=new Vt(!0);function Uf(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function ZS(t){return typeof t=="string"&&t!=="none"}function zf(t){var e=t.fill;return e!=null&&e!=="none"}function KS(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function jS(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Ff(t,e,r){var i=dh(e.image,e.__image,r);if(Fa(i)){var n=t.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*np),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function uL(t,e,r,i,n){var a,o=Uf(r),s=zf(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||lL,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,d=s&&!!h.colorStops,g=o&&!!v.colorStops,m=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0;(d||g)&&(C=e.getBoundingRect()),d&&(_=p?js(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(x=p?js(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(S=p||!e.__canvasFillPattern?Ff(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(T=p||!e.__canvasStrokePattern?Ff(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),d?t.fillStyle=_:m&&(S?t.fillStyle=S:s=!1),g?t.strokeStyle=x:y&&(T?t.strokeStyle=T:o=!1)}var D=e.getGlobalScale();c.setScale(D[0],D[1],e.segmentIgnoreThreshold);var E,w;t.setLineDash&&r.lineDash&&(a=md(e),E=a[0],w=a[1]);var A=!0;(f||p&xi)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),E&&(t.setLineDash(E),t.lineDashOffset=w),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&jS(t,r),s&&KS(t,r)):(s&&KS(t,r),o&&jS(t,r)),E&&t.setLineDash([])}function fL(t,e,r){var i=e.__image=dh(r.image,e.__image,e,e.onload);if(!(!i||!Fa(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function cL(t,e,r){var i,n=r.text;if(n!=null&&(n+=""),n){t.font=r.font||Qt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=md(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Uf(r)&&t.strokeText(n,r.x,r.y),zf(r)&&t.fillText(n,r.x,r.y)):(zf(r)&&t.fillText(n,r.x,r.y),Uf(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var QS=["shadowBlur","shadowOffsetX","shadowOffsetY"],$S=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nT(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){Ct(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Rr.opacity:o}(i||e.blend!==r.blend)&&(a||(Ct(t,n),a=!0),t.globalCompositeOperation=e.blend||Rr.blend);for(var s=0;s<QS.length;s++){var l=QS[s];(i||e[l]!==r[l])&&(a||(Ct(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(Ct(t,n),a=!0),t.shadowColor=e.shadowColor||Rr.shadowColor),a}function JS(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=nT(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Ct(t,n),s=!0),ZS(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Ct(t,n),s=!0),ZS(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Ct(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ct(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<$S.length;f++){var c=$S[f],p=c[0];(i||a[p]!==o[p])&&(s||(Ct(t,n),s=!0),t[p]=a[p]||c[1])}return s}function pL(t,e,r,i,n){return nT(t,e.style,r&&r.style,i,n)}function aT(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function hL(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),aT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function vL(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var eT=1,tT=2,rT=3,iT=4;function dL(t){var e=zf(t),r=Uf(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ct(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function yo(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Vi(t,e,r),na(t,r)}function Vi(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ve,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||qS(n,a))&&(a&&(Ct(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(Ct(t,r),t.save(),hL(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~Ve,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof ae&&e.autoBatch&&dL(o);s||vL(i,u.transform)?(Ct(t,r),aT(t,e)):f||Ct(t,r),e instanceof ae?(r.lastDrawType!==eT&&(l=!0,r.lastDrawType=eT),JS(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),uL(t,e,o,f,r)):e instanceof ms?(r.lastDrawType!==rT&&(l=!0,r.lastDrawType=rT),JS(t,e,u,l,r),cL(t,e,o)):e instanceof Ot?(r.lastDrawType!==tT&&(l=!0,r.lastDrawType=tT),pL(t,e,u,l,r),fL(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==iT&&(l=!0,r.lastDrawType=iT),mL(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&Ct(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function na(t,e){Ct(t,e),e.prevElClipPaths&&t.restore()}function mL(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Vi(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}na(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),Vi(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}na(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var gd=new WS,oT=new Lr(100),sT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $s(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";t.dirty&&gd.delete(t);var a=gd.get(t);if(a)return a;var o=J(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,gd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<sT.length;++p){var h=o[sT[p]];if(h!=null&&!R(h)&&!N(h)&&!le(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var v;if(c){v=f.join(",")+(n?"-svg":"");var d=oT.get(v);d&&(n?u.svgElement=d:u.image=d)}var g=uT(o.dashArrayX),m=gL(o.dashArrayY),y=lT(o.symbol),_=yL(g),x=fT(m),S=!n&&Oe.createCanvas(),T=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=E(),D;S&&(S.width=C.width*r,S.height=C.height*r,D=S.getContext("2d")),w(),c&&oT.put(v,S||T),u.image=S,u.svgElement=T,u.svgWidth=C.width,u.svgHeight=C.height;function E(){for(var A=1,O=0,M=_.length;O<M;++O)A=ah(A,_[O]);for(var L=1,O=0,M=y.length;O<M;++O)L=ah(L,y[O].length);A*=L;var U=x*_.length*y.length;if(0)var k;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(U,o.maxTileHeight))}}function w(){D&&(D.clearRect(0,0,S.width,S.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,S.width,S.height)));for(var A=0,O=0;O<m.length;++O)A+=m[O];if(A<=0)return;for(var M=-x,L=0,U=0,k=0;M<C.height;){if(L%2===0){for(var Y=U/2%y.length,X=0,K=0,ie=0;X<C.width*2;){for(var te=0,O=0;O<g[k].length;++O)te+=g[k][O];if(te<=0)break;if(K%2===0){var ue=(1-o.symbolSize)*.5,$=X+g[k][K]*ue,W=M+m[L]*ue,he=g[k][K]*o.symbolSize,ge=m[L]*o.symbolSize,mt=ie/2%y[Y].length;dr($,W,he,ge,y[Y][mt])}X+=g[k][K],++ie,++K,K===g[k].length&&(K=0)}++k,k===g.length&&(k=0)}M+=m[L],++U,++L,L===m.length&&(L=0)}function dr(Ae,Xe,ce,ye,Qi){var gt=n?1:r,ag=jt(Qi,Ae*gt,Xe*gt,ce*gt,ye*gt,o.color,o.symbolKeepAspect);if(n){var og=i.painter.renderOneToVNode(ag);og&&T.children.push(og)}else yo(D,ag)}}}}function lT(t){if(!t||t.length===0)return[["rect"]];if(N(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!N(t[r])){e=!1;break}if(e)return lT([t]);for(var i=[],r=0;r<t.length;++r)N(t[r])?i.push([t[r]]):i.push(t[r]);return i}function uT(t){if(!t||t.length===0)return[[0,0]];if(le(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!le(t[i])){r=!1;break}if(r)return uT([t]);for(var n=[],i=0;i<t.length;++i)if(le(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=B(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function gL(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(le(t)){var e=Math.ceil(t);return[e,e]}var r=B(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function yL(t){return B(t,function(e){return fT(e)})}function fT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var cT=Ua(_L);function _L(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=$s(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=$s(n,e)}}})}var xL="6.1.0",SL={zrender:"6.1.0"},TL=1,bL=800,CL=900,wL=920,EL=1e3,DL=2e3,pT=5e3,ST=1e3,AL=1100,Md=2e3,TT=3e3,ML=4e3,Kf=4500,OL=4600,LL=5e3,IL=6e3,bT=7e3,Od={PROCESSOR:{SERIES_FILTER:bL,AXIS_STATISTICS:wL,FILTER:EL,STATISTIC:pT,STATISTICS:pT},VISUAL:{LAYOUT:ST,PROGRESSIVE_LAYOUT:AL,GLOBAL:Md,CHART:TT,POST_CHART_LAYOUT:OL,COMPONENT:ML,BRUSH:LL,CHART_ITEM:Kf,ARIA:IL,DECAL:bT}},We="__flagInMainProcess",Vf="__mainProcessVersion",tt="__pendingUpdate",yd="__needsUpdateStatus",hT=/^[a-zA-Z0-9_]+$/,_d="__connectUpdateStatus",vT=0,PL=1,RL=2;function CT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return ET(this,t,e)}}function wT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ET(this,t,e)}}function ET(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),rt.prototype[e].apply(t,r)}var DT=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(rt),AT=DT.prototype;AT.on=wT("on");AT.off=wT("off");var aa,xd,Hf,fi,Gf,Sd,Td,_o,xo,dT,mT,bd,gT,Yf,yT,MT,vr,_T,So,Wf=(function(t){I(e,t);function e(r,i,n){var a=t.call(this,new RS)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",l=!1;if(a[Vf]=1,0)var u;n.ssr&&rh(function(h){var v=de(h),d=v.dataIndex;if(d!=null){var g=H();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var f=a._zr=su(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:G(n.useDirtyRect,l),useCoarsePointer:G(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Ws(fe(f.flush,f),17),a._updateTheme(i),a._locale=rx(n.locale||Zu),a._coordSysMgr=new lo;var c=a._api=yT(a);function p(h,v){return h.__prio-v.__prio}return cn(qf,p),cn(Ed,p),a._scheduler=new cd(a,c,Ed,qf),a._messageCenter=new DT,a._initEvents(),a.resize=fe(a.resize,a),f.animation.on("frame",a._onframe,a),dT(f,a),mT(f,a),rn(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(_T(this),this[tt]){var a=this[tt].silent;this[We]=!0,So(this);try{aa(this),fi.update.call(this,null,this[tt].updateParams)}catch(l){throw this[We]=!1,this[tt]=null,l}this._zr.flush(),this[We]=!1,this[tt]=null,_o.call(this,a),xo.call(this,a)}else if(r.unfinished){var o=TL;do{r.unfinished=!1;var s=Oe.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),Sd(this,i),r.performVisualTasks(i),Yf(this,this._model,n,"remain",{}),o-=Oe.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[We]){if(this._disposed){this.id;return}var a,o,s;if(z(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[We]=!0,So(this),!this._model||i){var l=new Ix(this._api),u=this._theme,f=this._model=new xf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Dd);var c={seriesTransition:s,optionChanged:!0};if(n)this[tt]={silent:a,updateParams:c},this[We]=!1,this.getZr().wakeUp();else{try{aa(this),fi.update.call(this,null,c)}catch(p){throw this[tt]=null,this[We]=!1,p}this._ssr||this._zr.flush(),this[tt]=null,this[We]=!1,_o.call(this,a),xo.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[We]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[tt]&&(a==null&&(a=this[tt].silent),o=this[tt].updateParams,this[tt]=null),this[We]=!0,So(this);try{this._updateTheme(r),n.setTheme(this._theme),aa(this),fi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[We]=!1,s}this[We]=!1,_o.call(this,a),xo.call(this,a)}}},e.prototype._updateTheme=function(r){N(r)&&(r=OT[r]),r&&(r=j(r),r&&Sf(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Q.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return b(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;b(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Zf[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();b(oa,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,d=c-u,g=Oe.createCanvas(),m=su(g,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:d}),i){var y="";return b(p,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new _e({shape:{x:0,y:0,width:v,height:d},style:{fill:r.connectedBackgroundColor}})),b(p,function(_){var x=new Ot({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Gf(this,"convertToPixel",r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Gf(this,"convertToLayout",r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Gf(this,"convertFromPixel",r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=cu(n,r);return b(o,function(s,l){l.indexOf("Models")>=0&&b(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=cu(n,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?US(s,l,i):zS(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;b(NL,function(n){var a=function(o){var s=r.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&ra(l,function(d){var g=de(d);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=P({},g.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;b(wd,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),FS(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&uh(this.getDom(),Id,"");var i=this,n=i._api,a=i._model;b(i._componentsViews,function(o){o.dispose(a,n)}),b(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete oa[i.id]},e.prototype.resize=function(r){if(!this[We]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[tt]&&(a==null&&(a=this[tt].silent),n=!0,this[tt]=null),this[We]=!0,So(this);try{n&&aa(this),fi.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[We]=!1,o}this[We]=!1,_o.call(this,a),xo.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(z(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Ad[r]){var n=Ad[r](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var i=P({},r);return i.type=Cd[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(z(i)||(i={silent:!!i}),!!Xf[r.type]&&this._model){if(this[We]){this._pendingActions.push(r);return}var n=i.silent;Td.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&Q.browser.weChat&&this._throttledZrFlush(),_o.call(this,n),xo.call(this,n)}},e.prototype.updateLabelLayout=function(){Kt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){aa=function(c){GS(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),xd(c,!0),xd(c,!1),p.plan()},xd=function(c,p){for(var h=c._model,v=c._scheduler,d=p?c._componentsViews:c._chartsViews,g=p?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<d.length;_++)d[_].__alive=!1;p?h.eachComponent(function(T,C){T!=="series"&&x(C)}):h.eachSeries(x);function x(T){var C=T.__requireNewView;T.__requireNewView=!1;var D="_ec_"+T.id+"_"+T.type,E=!C&&g[D];if(!E){var w=Mt(T.type),A=p?je.getClass(w.main,w.sub):bt.getClass(w.sub);E=new A,E.init(h,y),g[D]=E,d.push(E),m.add(E.group)}T.__viewId=E.__id=D,E.__alive=!0,E.__model=T,E.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(E,T,h,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!p&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),d.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Hf=function(c,p,h,v,d){var g=c._model;if(g.setUpdatePayload(h),!v){b([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m=zy(h,v,d),y=h.excludeSeriesId,_;y!=null&&(_=H(),b(Pe(y),function(S){var T=Ft(S,null);T!=null&&_.set(T,!0)})),g&&g.eachComponent(m,function(S){var T=_&&_.get(S.id)!=null;if(!T)if(jh(h))if(S instanceof hr)h.type===Ni&&!h.notBlur&&!S.get(["emphasis","disabled"])&&$_(S,h,c._api);else{var C=Eu(S.mainType,S.componentIndex,h.name,c._api),D=C.focusSelf,E=C.dispatchers;h.type===Ni&&D&&!h.notBlur&&Tu(S.mainType,S.componentIndex,c._api),E&&b(E,function(w){h.type===Ni?In(w):Pn(w)})}else Du(h)&&S instanceof hr&&(t0(S,h,c._api),Zh(S),vr(c))},c),g&&g.eachComponent(m,function(S){var T=_&&_.get(S.id)!=null;T||x(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,g,c._api,h)}},fi={prepareAndUpdate:function(c){aa(this),fi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,d=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){YS(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),g.create(h,v),Kt.trigger("coordsys:aftercreate",h,v),m.performDataProcessorTasks(h,c),Sd(this,h),g.update(h,v),i(h),m.performVisualTasks(h,c);var y=h.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=h.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),bd(this,h,v,c,p),Kt.trigger("afterupdate",h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var d=[];h.eachComponent(function(m,y){if(m!==_u){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&d.push(_)}else d.push(_)}});var g=H();h.eachSeries(function(m){var y=p._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(m,h,v,c);x&&x.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Yf(p,h,v,c,{},g),Kt.trigger("afterupdate",h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),bt.markUpdateMethod(c,"updateView"),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),bd(this,p,this._api,c,{}),Kt.trigger("afterupdate",p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),bt.markUpdateMethod(c,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,d){if(v!=="series"){var g=p.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,h,p._api,c)}}),h.eachSeries(function(v){var d=p._chartsMap[v.__viewId];d.updateVisual(v,h,p._api,c)}),Kt.trigger("afterupdate",h,this._api))},updateLayout:function(c){fi.update.call(this,c)}};function r(c,p,h,v,d){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=cu(g,h),x=0;x<m.length;x++){var S=m[x];if(S[p]&&(y=S[p](g,_,v,d))!=null)return y}}Gf=r,Sd=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(d){v.updateStreamModes(d,h[d.__viewId])})},Td=function(c,p){var h=this,v=this.getModel(),d=c.type,g=c.escapeConnect,m=Xf[d],y=(m.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&Mt(y[0]);this[We]=!0,So(this);var S=[c],T=!1;c.batch&&(T=!0,S=B(c.batch,function(k){return k=J(P({},k),c),k.batch=null,k}));var C=[],D,E=[],w=m.nonRefinedEventType,A=Du(c),O=jh(c);if(O&&qh(this._api),b(S,function(k){var Y=m.action(k,v,h._api);if(m.refineEvent?E.push(Y):D=Y,D=D||P({},k),D.type=w,C.push(D),O){var X=cs(c),K=X.queryOptionMap,ie=X.mainTypeSpecified,te=ie?K.keys()[0]:"series";Hf(h,_,k,te),vr(h)}else A?(Hf(h,_,k,"series"),vr(h)):x&&Hf(h,_,k,x.main,x.sub)}),_!=="none"&&!O&&!A&&!x)try{this[tt]?(aa(this),fi.update.call(this,c),this[tt]=null):fi[_].call(this,c)}catch(k){throw this[We]=!1,k}if(T?D={type:w,escapeConnect:g,batch:C}:D=C[0],this[We]=!1,!p){var M=void 0;if(m.refineEvent){var L=m.refineEvent(E,c,v,this._api).eventContent;ze(z(L)),M=J({type:m.refinedEventType},L),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var U=this._messageCenter;U.trigger(D.type,D),M&&U.trigger(M.type,M)}},_o=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Td.call(this,h,c)}},xo=function(c){!c&&this.trigger("updated")},dT=function(c,p){c.on("rendered",function(h){p.trigger("rendered",h),c.animation.isFinished()&&!p[tt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):c.refresh()})},mT=function(c,p){c.on("mouseover",function(h){var v=h.target,d=ra(v,bs);d&&(J_(d,h,p._api),vr(p))}).on("mouseout",function(h){var v=h.target,d=ra(v,bs);d&&(e0(d,h,p._api),vr(p))}).on("click",function(h){var v=h.target,d=ra(v,function(y){return de(y).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",m=de(d);p._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,T=_.getZLevelKey();v=v||!!T,(y==="series"?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:T})}),v){var d=p.concat(h),g,m;cn(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(d,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==m&&x++,m=S):m&&(x===g&&x++,m=""),g=x,_.setZLevel(x)})}}bd=function(c,p,h,v,d){n(p),gT(c,p,h,v,d),b(c._chartsViews,function(g){g.__alive=!1}),Yf(c,p,h,v,d),b(c._chartsViews,function(g){g.__alive||g.remove(p,h)})},gT=function(c,p,h,v,d,g){b(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,p,h,v),l(y,m),f(y,m)})},Yf=function(c,p,h,v,d,g){var m=c._scheduler;d=P(d||{},{updatedSeries:p.getSeries()}),Kt.trigger("series:beforeupdate",p,h,d);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,v),u(_,x),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),Zh(_)}),m.unfinished=y||m.unfinished,Kt.trigger("series:layoutlabels",p,h,d),Kt.trigger("series:transition",p,h,d),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),Kt.trigger("series:afterupdate",p,h,d)},vr=function(c){c[yd]=!0,c.getZr().wakeUp()},So=function(c){c[Vf]=(c[Vf]+1)%1e6},_T=function(c){c[yd]&&(c.getZr().storage.traverse(function(p){Fn(p)||a(p)}),c[yd]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var d=h[v];d==="emphasis"||d==="blur"||d==="select"||p.push(d)}c.selected&&c.states.select&&p.push("select"),c.hoverState===ys&&c.states.emphasis?p.push("emphasis"):c.hoverState===gs&&c.states.blur&&p.push("blur"),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type==="canvas"){var v=h.storage,d=0;v.traverse(function(m){m.isGroup||d++});var g=d>G(p.get("hoverLayerThreshold"),gf.hoverLayerThreshold)&&!Q.node&&!Q.worker;(c._usingTHL||g)&&(p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Ps&&(x.hoverLayer=g?uv:lv)})}}),c._usingTHL=g)}}function s(c,p){var h=c.get("blendMode")||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=yv(c);p.eachRendered(function(v){return _v(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Fn(h)){var v=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),d=h.get("duration"),g=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Fn(m))return;if(m instanceof ae&&a0(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}m.__dirty&&a(m)}})}yT=function(c){return new((function(p){I(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var d=v.__ecComponentInfo;if(d!=null)return c._model.getComponent(d.mainType,d.index);v=v.parent}},h.prototype.enterEmphasis=function(v,d){In(v,d),vr(c)},h.prototype.leaveEmphasis=function(v,d){Pn(v,d),vr(c)},h.prototype.enterBlur=function(v){j_(v),vr(c)},h.prototype.leaveBlur=function(v){Yh(v),vr(c)},h.prototype.enterSelect=function(v){Wh(v),vr(c)},h.prototype.leaveSelect=function(v){Xh(v),vr(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Vf]},h.prototype.usingTHL=function(){return c._usingTHL},h})(Su))(c)},MT=function(c){function p(h,v){for(var d=0;d<h.length;d++){var g=h[d];g[_d]=v}}b(Cd,function(h,v){c._messageCenter.on(v,function(d){if(Zf[c.group]&&c[_d]!==vT){if(d&&d.escapeConnect)return;var g=c.makeActionFromEvent(d),m=[];b(oa,function(y){y!==c&&y.group===c.group&&m.push(y)}),p(m,vT),b(m,function(y){y[_d]!==PL&&y.dispatchAction(g)}),p(m,RL)}})})}})(),e})(rt),Ld=Wf.prototype;Ld.on=CT("on");Ld.off=CT("off");Ld.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var NL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Xf={},Cd={},wd={},Ed=[],Dd=[],qf=[],OT={},Ad={},oa={},Zf={},kL=+new Date-0,BL=+new Date-0,Id="_echarts_instance_";function UL(t,e,r){var i=!(r&&r.ssr);if(i){var n=Pd(t);if(n)return n}var a=new Wf(t,e,r);return a.id="ec_"+kL++,oa[a.id]=a,i&&uh(t,Id,a.id),MT(a),Kt.trigger("afterinit",a),a}function zL(t){if(R(t)){var e=t;t=null,b(e,function(r){r.group!=null&&(t=r.group)}),t=t||"g_"+BL++,b(e,function(r){r.group=t})}return Zf[t]=!0,t}function LT(t){Zf[t]=!1}var FL=LT;function VL(t){N(t)?t=oa[t]:t instanceof Wf||(t=Pd(t)),t instanceof Wf&&!t.isDisposed()&&t.dispose()}function Pd(t){return oa[Fy(t,Id)]}function HL(t){return oa[t]}function Rd(t,e){OT[t]=e}function jf(t){ee(Dd,t)<0&&Dd.push(t)}function Qf(t,e){zd(Ed,t,e,DL)}function Nd(t){Js("afterinit",t)}function kd(t){Js("afterupdate",t)}function Js(t,e){Kt.on(t,e)}function Hi(t,e,r){var i,n,a,o,s;V(e)&&(r=e,e=""),z(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Xf[i]||(ze(hT.test(i)&&hT.test(n)),a&&ze(n!==i),Xf[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},wd[n]=1,a&&s&&(wd[u]=1),Cd[u]=i)}function Bd(t,e){lo.register(t,e)}function GL(t){var e=lo.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function YL(t,e){Nf(t,e)}function Ud(t,e){zd(qf,t,e,ST,"layout",!0)}function ci(t,e){zd(qf,t,e,TT,"visual",!0)}var xT=[];function zd(t,e,r,i,n,a){if((V(e)||z(e))&&(r=e,e=i),!(ee(xT,r)>=0)){xT.push(r);var o=cd.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function $f(t,e){Ad[t]=e}function WL(t){El({createCanvas:t})}function Fd(t,e,r){var i=hd("registerMap");i&&i(t,e,r)}function XL(t){var e=hd("getMap");return e&&e(t)}var Vd=Jx;ci(Md,CS);ci(Kf,wS);ci(Kf,ES);ci(Md,kS);ci(Kf,BS);ci(bT,cT);jf(Sf);Qf(CL,zx);$f("default",fd);Hi({type:Ni,event:Ni,update:Ni},Le);Hi({type:_s,event:_s,update:_s},Le);Hi({type:xs,event:Cu,update:xs,action:Le,refineEvent:Hd,publishNonRefinedEvent:!0});Hi({type:bu,event:Cu,update:bu,action:Le,refineEvent:Hd,publishNonRefinedEvent:!0});Hi({type:Ss,event:Cu,update:Ss,action:Le,refineEvent:Hd,publishNonRefinedEvent:!0});function Hd(t,e,r,i){return{eventContent:{selected:r0(r),isFromClick:e.isFromClick||!1}}}Rd("default",{});Rd("dark",PS);var qL={};function el(t){return t==null?0:t.length||1}function IT(t){return t}var ZL=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||IT,this._newKeyGetter=n||IT,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=el(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=el(u),p=el(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=el(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=el(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),PT=ZL;var KL=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function RT(t,e){var r={},i=r.encode={},n=H(),a=[],o=[],s={};b(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var d=h.coordDimIndex;Gd(i,v)[d]=p,h.isExtraCoord||(n.set(v,1),jL(h.type)&&(a[0]=p),Gd(s,v)[d]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}xu.each(function(g,m){var y=Gd(i,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=B(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new KL(s,e),r}function Gd(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function NT(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function jL(t){return!(t==="ordinal"||t==="time")}var QL=(function(){function t(e){this.otherDims={},e!=null&&P(this,e)}return t})(),To=QL;var $L=re(),JL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Yd=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Wd(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return G(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=bf(this.source),i=!Xd(e),n="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=JL[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Jf(t){return t instanceof Yd}function tl(t){for(var e=H(),r=0;r<(t||[]).length;r++){var i=t[r],n=z(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Wd(t){var e=$L(t);return e.dimNameMap||(e.dimNameMap=tl(t.dimensionsDefine))}function Xd(t){return t>30}var rl=z,Gi=B,eI=typeof Int32Array>"u"?Array:Int32Array,tI="e\0\0",kT=-1,rI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],iI=["_approximateExtent"],BT,ec,il,nl,qd,al,Zd,nI=(function(){function t(e,r){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,n=!1;Jf(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=N(c)?new To({name:c}):c instanceof To?c:new To(c),h=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=H();b(o,function(g){d.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(le(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,i=r.encode[e];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof Gs&&(a=e),!a){var o=this.dimensions,s=co(e)||Ue(e)?new wf(e,o.length):e;a=new Gs;var l=Gi(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=RT(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&Zd(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Gt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ke;if(l&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&Ny(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Ft(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Ft(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Zd(this,f);BT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){rl(e)?P(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=il(this,this._nameDimIdx,r)),i==null&&(i=""),i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return ec(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return R(e)?n.getValues(Gi(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?kT:n},t.prototype.each=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]);var n=i||this,a=Gi(nl(e),this._getStoreDimIndex,this);this._store.each(a,n?fe(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]);var n=i||this,a=Gi(nl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?fe(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=se(e),a=[];return b(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=Gi(nl(e),this._getStoreDimIndex,this),s=al(this);return s._store=this._store.map(o,a?fe(r,a):r),s},t.prototype.modify=function(e,r,i,n){var a=this,o=i||n||this,s=Gi(nl(e),this._getStoreDimIndex,this);this._store.modify(s,o?fe(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=al(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=al(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=al(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,i=this.getRawDataItem(e);return new Se(i,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new PT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ec(e,i)},function(i){return ec(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},rl(e)?P(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e],n=i&&i[r];return n??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a==null&&(a=this.getVisual(r),R(a)?a=a.slice():rl(a)&&(a=P({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,rl(r)?P(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){rl(e)?P(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?P(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var i=this.hostModel&&this.hostModel.seriesIndex;U_(i,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){b(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Gi(this.dimensions,this._getDimInfo,this),this.hostModel)),qd(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];V(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(zo(arguments)))})},t.internalField=(function(){BT=function(e){var r=e._invertedIndicesMap;b(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new eI(o.categories.length);for(var l=0;l<i.length;l++)i[l]=kT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},il=function(e,r,i){return Ft(e._getCategory(r,i),null)},ec=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=il(e,e._idDimIdx,r)),i==null&&(i=tI+r),i},nl=function(e){return R(e)||(e=e!=null?[e]:[]),e},al=function(e){var r=new t(e._schema?e._schema:Gi(e.dimensions,e._getDimInfo,e),e.hostModel);return qd(r,e),r},qd=function(e,r){b(rI.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,b(iI,function(i){e[i]=j(r[i])}),e._calculationInfo=P({},r._calculationInfo)},Zd=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=il(e,a,r)),l==null&&o!=null&&(n[r]=l=il(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[r]=l}}})(),t})(),tc=nI;var tm={};kt(tm,{createDimensions:()=>UT,createList:()=>XI,createScale:()=>ZI,createSymbol:()=>jt,createTextStyle:()=>jI,dataStack:()=>qI,enableHoverEmphasis:()=>Ga,getECData:()=>de,getLayoutRect:()=>Gr,mixinAxisModelCommonMethods:()=>KI});function UT(t,e){return rc(t,e).dimensions}function rc(t,e){co(t)||(t=po(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=H(),a=[],o=aI(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Xd(o),l=i===t.dimensionsDefine,u=l?Wd(t):tl(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=H(f),p=new id(o),h=0;h<p.length;h++)p[h]=-1;function v(E){var w=p[E];if(w<0){var A=i[E],O=z(A)?A:{name:A},M=new To,L=O.name;L!=null&&u.get(L)!=null&&(M.name=M.displayName=L),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);var U=a.length;return p[E]=U,M.storeDimIndex=E,a.push(M),M}return a[w]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(E,w){var A=Pe(E).slice();if(A.length===1&&!N(A[0])&&A[0]<0){c.set(w,!1);return}var O=c.set(w,[]);b(A,function(M,L){var U=N(M)?u.get(M):M;U!=null&&U<o&&(O[L]=U,g(v(U),w,L))})});var d=0;b(r,function(E){var w,A,O,M;if(N(E))w=E,M={};else{M=E,w=M.name;var L=M.ordinalMeta;M.ordinalMeta=null,M=P({},M),M.ordinalMeta=L,A=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var U=c.get(w);if(U!==!1){if(U=Pe(U),!U.length)for(var k=0;k<(A&&A.length||1);k++){for(;d<o&&v(d).coordDim!=null;)d++;d<o&&U.push(d++)}b(U,function(Y,X){var K=v(Y);if(l&&M.type!=null&&(K.type=M.type),g(J(K,M),w,X),K.name==null&&A){var ie=A[X];!z(ie)&&(ie={name:ie}),K.name=K.displayName=ie.name,K.defaultTooltip=ie.defaultTooltip}O&&J(K.otherDims,O)})}});function g(E,w,A){xu.get(w)!=null?E.otherDims[w]=A:(E.coordDim=w,E.coordDimIndex=A,n.set(w,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||"value";function S(E){E.name==null&&(E.name=E.coordDim)}if(s)b(a,function(E){S(E)}),a.sort(function(E,w){return E.storeDimIndex-w.storeDimIndex});else for(var T=0;T<o;T++){var C=v(T),D=C.coordDim;D==null&&(C.coordDim=oI(x,n,_),C.coordDimIndex=0,(!m||y<=0)&&(C.isExtraCoord=!0),y--),S(C),C.type==null&&(yf(t,T)===Tt.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return Ba(a,function(E){return E.name},function(E,w){w>0&&(E.name=E.name+(w-1))}),new Yd({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function aI(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return b(e,function(a){var o;z(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function oI(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var sI=(function(){function t(e){this.coordSysDims=[],this.axisMap=H(),this.categoryAxisMap=H(),this.coordSysName=e}return t})();function zT(t){var e=t.get("coordinateSystem"),r=new sI(e),i=lI[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var lI={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents("xAxis",nt).models[0],a=t.getReferringComponents("yAxis",nt).models[0];e.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),bo(n)&&(i.set("x",n),e.firstCategoryDimIndex=0),bo(a)&&(i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,i){var n=t.getReferringComponents("singleAxis",nt).models[0];e.coordSysDims=["single"],r.set("single",n),bo(n)&&(i.set("single",n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents("polar",nt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),bo(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),bo(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];r.set(f,u),bo(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,i){var n=t.getReferringComponents("matrix",nt).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function bo(t){return t.get("type")==="category"}function ic(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;uI(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,p,h=!0;function v(x){return x.type!=="ordinal"&&x.type!=="time"}if(b(a,function(x,S){N(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),b(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,g=f.type,m=0;b(a,function(x){x.coordDim===d&&m++});var y={name:c,coordDim:d,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function uI(t){return!Jf(t.schema)}function pi(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function nc(t,e){return pi(t,e)?t.getCalculationInfo("stackResultDimension"):e}function fI(t,e){var r=t.get("coordinateSystem"),i=lo.get(r),n;return e&&e.coordSysDims&&(n=B(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=NT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function cI(t,e,r){var i,n;return r&&b(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function pI(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=po(t)):(n=i.getSource(),a=n.sourceFormat===Ke);var o=zT(e),s=fI(e,o),l=r.useEncodeDefaulter,u=V(l)?l:l?Te(Sx,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=rc(n,f),p=cI(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=ic(e,{schema:c,store:h}),d=new tc(c,e);d.setCalculationInfo(v);var g=p!=null&&hI(n)?function(m,y,_,x){return x===p?_:this.defaultDimValueGetter(m,y,_,x)}:null;return d.hasItemOption=!1,d.initData(a?n:h,null,g),d}function hI(t){if(t.sourceFormat===Ke){var e=vI(t.data||[]);return!R(ri(e))}}function vI(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var ac=pI;var FT=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Oi(FT);var wt=FT;var dI=0,mI=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++dI,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&B(i,gI);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!N(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r==null&&(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=H(this.categories))},t})();function gI(t){return z(t)&&t.value!=null?t.value:t+""}var ol=mI;var Pt=0,Co=1,yI={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},HT=se(yI),wo=2,GT=3;function Eo(t,e,r){var i;t=t||{};var n=ke();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(b(HT,function(o){a[o]&&(t[o]=fe(a[o],a))}),i=a)}return i==null&&_I(t,r),{brk:i,mapper:t}}function oc(t,e){b(HT,function(r){t[r]=e[r]})}function sc(t,e){t.freeze=Le}function hi(t){return t.getExtentUnsafe(Pt,wo)}function sa(t,e){return t.getExtentUnsafe(Co,e)||t.getExtentUnsafe(Pt,e)}function YT(t){var e=sa(t,GT);return e[1]-e[0]}function Do(t){var e=t.getExtentUnsafe(Pt,GT);return e[1]-e[0]}function _I(t,e){var r=t||{},i=[];return r._extents=i,i[Pt]=e?e.slice():at(),P(r,xI),r}var xI={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Co]||this._extents[Pt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Co]||this._extents[Pt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=sa(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Pt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){VT(this._extents,Pt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Pt].slice()),VT(i,t,e,r)},freeze:function(){}};function VT(t,e,r,i){ii(r,i)&&(t[e][0]=r,t[e][1]=i)}function lc(t){return Ao(t)||Wr(t)}function Ao(t){return t.type==="interval"}function Mo(t){return t.type==="time"}function Wr(t){return t.type==="log"}function vt(t){return t.type==="ordinal"}function WT(t){var e=Ra(t),r=Ai(10,e),i=At(t/r);return i?i===2?i=3:i===3?i=5:i*=2:i=1,pe(i*r,-e)}function Ar(t){return zt(t)+2}function sl(t,e){return Ei(t)/Ei(e)}function uc(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Ai(e,t)}function fc(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=Ne(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!Tr(i[0])||!Tr(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function XT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function ll(t,e){return t=t||e,At(ve(t,1))}function cc(t,e,r){var i=hi(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}var qT=(function(t){I(e,t);function e(r){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,oc(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new ol({})),R(n)&&(n=new ol({categories:B(n,function(o){return z(o)?o.value:o})})),i._ordinalMeta=n;var a=Eo(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,sc(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:N(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=At(r),r},e.prototype.getTicks=function(){var r=[];return cc(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Ge(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var r=hi(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(At(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(wt);wt.registerClass(qT);var ZT=qT;function Oo(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],p=l.value-u.value,h=p/e,v=Ar(h);f<e-1;){var d=pe(u.value+(f+1)*h,v);d>o[0]&&d<o[1]&&c.push(d),f++}var g=ke();g&&g.pruneTicksByBreak("auto",c,r,function(m){return m},i,o),a.push(c)}}return a}var KT=(function(t){I(e,t);function e(r){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,r=r||{};var n=ju(i,r),a=Eo(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.getConfig=function(){return j(this._cfg)},e.prototype.setConfig=function(r){var i=hi(this);this._cfg=r=j(r),r.niceExtent==null&&(r.niceExtent=i.slice()),r.intervalPrecision==null&&(r.intervalPrecision=Ar(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=hi(this),o=i.niceExtent,s=i.intervalPrecision,l=ke(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?pe(o[0]-n,s):a[0]});for(var h=function(_,x){return At((x-_)/n)},v=i.intervalCount,d=o[0],g=0;;g++){if(v==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(g>v)break;d=Ge(d,o[1]),g===v&&(d=o[1])}if(c.push({value:d}),d=pe(d+n,s),u){var m=u.calcNiceTickMultiple(d,h);m>=0&&(d=pe(d+m*n,s))}if(c.length>0&&d===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?pe(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return Oo(this,r,Xn(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=zt(r.value)||0:n==="auto"&&(n=this._cfg.intervalPrecision);var a=pe(r.value,n,!0);return ks(a)},e.type="interval",e})(wt);wt.registerClass(KT);var la=KT;var SI=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r},QT=(function(t){I(e,t);function e(r){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;var n=ju(i,r),a=Eo(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(r){return si(r.value,Mv[lx(io(this._minLevelUnit))]||Mv.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return ux(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=hi(this),a=ke(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks==="only_break")return ke().addBreaksToTicks(l,o.breaks,n),l;l=AI(this._minLevelUnit,this._approxInterval,u,n,Do(this),o);var f=It.length-1,c=0;return b(l,function(p){p.time&&(f=Math.min(f,ee(It,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&ke().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!=="none"&&ke().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(ee(It,Zn(p.vmin,u)),ee(It,Zn(p.vmax,u))),v=0,d=0;d<It.length;d++)if(!$T(It[d],p.vmin,p.vmax,u)){v=d;break}var g=Math.min(v,f),m=Math.max(g,h);return{level:c,lowerTimeUnit:It[m],upperTimeUnit:It[g]}}),l},e.prototype.getMinorTicks=function(r){return Oo(this,r,Xn(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return le(r)?Math.round(r):+_t(r)},e.type="time",e})(wt),pc=[["second",Ju],["minute",ef],["hour",ro],["quarter-day",ro*6],["half-day",ro*12],["day",qt*1.2],["half-week",qt*3.5],["week",qt*7],["month",qt*31],["quarter",qt*95],["half-year",Av/2],["year",Av]];function $T(t,e,r,i){return no(new Date(e),t,i).getTime()===no(new Date(r),t,i).getTime()}function TI(t,e){return t/=qt,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function bI(t){var e=30*qt;return t/=e,t>6?6:t>3?3:t>2?2:1}function CI(t){return t/=ro,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function jT(t,e){return t/=e?ef:Ju,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function wI(t){return ve(ti(t,!0),1)}function EI(t,e,r){var i=Math.max(0,ee(It,e)-1);return no(new Date(t),It[i],r).getTime()}function DI(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function AI(t,e,r,i,n,a){var o=3e3,s=ax,l=0;function u(k,Y,X,K,ie,te,ue){for(var $=DI(ie,k),W=Y,he=new Date(W);W<X&&W<=i[1]&&(ue.push({value:W}),!(l++>o));)if(he[ie](he[K]()+k),W=he.getTime(),a){var ge=a.calcNiceTickMultiple(W,$);ge>0&&(he[ie](he[K]()+ge*k),W=he.getTime())}ue.push({value:W,notAdd:W>i[1]})}function f(k,Y,X){var K=[],ie=!Y.length;if(!$T(io(k),i[0],i[1],r)){ie&&(Y=[{value:EI(i[0],k,r)},{value:i[1]}]);for(var te=0;te<Y.length-1;te++){var ue=Y[te].value,$=Y[te+1].value;if(ue!==$){var W=void 0,he=void 0,ge=void 0,mt=!1;switch(k){case"year":W=Math.max(1,Math.round(e/qt/365)),he=Ov(r),ge=fx(r);break;case"half-year":case"quarter":case"month":W=bI(e),he=tf(r),ge=Lv(r);break;case"week":case"half-week":case"day":W=TI(e,31),he=rf(r),ge=Iv(r),mt=!0;break;case"half-day":case"quarter-day":case"hour":W=CI(e),he=nf(r),ge=Pv(r);break;case"minute":W=jT(e,!0),he=af(r),ge=Rv(r);break;case"second":W=jT(e,!1),he=of(r),ge=Nv(r);break;case"millisecond":W=wI(e),he=sf(r),ge=kv(r);break}$>=i[0]&&ue<=i[1]&&u(W,ue,$,he,ge,mt,K),k==="year"&&X.length>1&&te===0&&X.unshift({value:X[0].value-W})}}for(var te=0;te<K.length;te++)X.push(K[te])}}for(var c=[],p=[],h=0,v=0,d=0;d<s.length;++d){var g=io(s[d]);if(sx(s[d])){f(s[d],c[c.length-1]||[],p);var m=s[d+1]?io(s[d+1]):null;if(g!==m){if(p.length){v=h,p.sort(function(k,Y){return k.value-Y.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[d]))break}p=[]}}}for(var T=we(B(c,function(k){return we(k,function(Y){return Y.value>=i[0]&&Y.value<=i[1]&&!Y.notAdd})}),function(k){return k.length>0}),C=T.length-1,D=[],d=0;d<T.length;++d)for(var E=T[d],w=0;w<E.length;++w){var A=Zn(E[w].value,r);D.push({value:E[w].value,time:{level:C-d,upperTimeUnit:A,lowerTimeUnit:A}})}Ba(D,Xy,null),D.sort(function(k,Y){return k.value-Y.value});var O=D[0],M=D[D.length-1],L=Zn(i[0],r),U=Zn(i[1],r);return(!O||O.value>i[0])&&D.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!M||M.value<i[1])&&D.push({value:i[1],time:{level:0,upperTimeUnit:U,lowerTimeUnit:U},notNice:!0}),D}var JT=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=qt,r[1]+=qt),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-qt}t.setExtent(r[0],r[1]);var n=ll(e.splitNumber,10),a=Do(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=pc.length,u=Math.min(SI(pc,a,0,l),l-1),f=pc[u][1],c=pc[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};wt.registerClass(QT);var eb=QT;var hc=0,vc=1,MI=2,nb=(function(t){I(e,t);function e(r){var i=t.call(this)||this;i.type="log",i.parse=la.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[hc]=n[vc]=a[hc]=a[vc]=NaN,oc(i,e.mapperMethods);var s=ke(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},MI,u),i.powStub=new la({breakParsed:u.original}),i.intervalStub=new la({breakParsed:u.transformed}),sc(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=ke(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return B(o.getTicks(r||{}),function(f){var c=f.value,p=uc(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,Xn(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return Oo(this,r,Xn(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(sl(r,this.base))},scale:function(r){return uc(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=sl(r,this.base),i&&i.depth===wo?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return tb.depth=n,rb.lookup=this._lookup,uc(n===wo?r:this.intervalStub.transformOut(r,tb),this.base,rb)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Pt,r,i)},setExtent2:function(r,i,n){if(!(!ii(i,n)||i<=0||n<=0)){var a=ib,o=ib;if(r===Pt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[hc]=i,a[vc]=n);var l=this.base;this.intervalStub.setExtent2(r,o[hc]=sl(i,l),o[vc]=sl(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return ii(i[0],i[1])&&ut(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(wt);wt.registerClass(nb);var tb={},rb={},ib=[],ab=nb;var dc={value:1,category:1,time:1,log:1};var ob=re();function gc(t){var e=t.get("type");return(e==null||!Me(dc,e)&&!wt.getClass(e))&&(e="value"),e}function yc(t,e,r){var i=ke(),n;switch(i&&(n=Kd(t,e,r)),e){case"category":return new ZT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:at()});case"time":return new eb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new ab({logBase:t.get("logBase"),breakOption:n});case"value":return new la({breakOption:n});default:return new(wt.getClass(e)||la)({})}}function sb(t,e,r){var i=r?sa(t,null):t.getExtentUnsafe(Pt,null),n=i[0],a=i[1];return ii(n,a)?n===e||a===e?LI:n<e&&a>e?OI:mc:mc}var OI=1,LI=2,mc=3;function lb(t){ob(t).noOnMyZero=!0}function ub(t){return ob(t).noOnMyZero}function ul(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=ox(e);return function(n,a){return t.scale.getFormattedLabel(n,a,r)}}else{if(N(e))return function(n){var a=t.scale.getLabel(n),o=e.replace("{value}",a??"");return o};if(V(e)){if(t.type==="category")return function(n,a){return e(Lo(t,n),n.value-t.scale.getExtent()[0],null)};var i=ke();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Lo(t,n),a,o)}}else return function(n){return t.scale.getLabel(n)}}}function Lo(t,e){var r=t.scale;return vt(r)?r.getLabel(e):e.value}function _c(t){var e=t.get("interval");return e??"auto"}function fb(t){return t.type==="category"&&_c(t.getLabelModel())===0}function cb(t,e){var r={};return b(t.mapDimensionsAll(e),function(i){r[nc(t,i)]=!0}),se(r)}function Yi(t){return t==="middle"||t==="center"}function ua(t){return t.getShallow("show")}function Kd(t,e,r){var i=t.get("breaks",!0);if(i!=null){if(!ke())return;if(!r||!II(e)){if(0)var n;return}return i}}function II(t){return t!=="category"}function xc(t,e,r,i,n,a){var o=Wr(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:wo},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=XT(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function vi(t,e){return vt(t)?t.getRawOrdinalNumber(e.value):e.value}function Sc(t,e){return vt(t)&&!!e.get("boundaryGap")}var Tc=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();var JY=Wy(),pb="|&",fl=re(),db=-2;var eW=re();function PI(t,e){var r=t.model,i=fl(go(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function mb(t,e){return yb(PI(t,e))}function gb(t,e){var r=[];return RI(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(yb(i))}),r}function RI(t,e){var r=fl(go(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function yb(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function _b(t,e){var r=t.model.ecModel,i=fl(go(r)).axSer;i&&NI(r,i.get(t.model.uid),e)}function NI(t,e,r){if(e)for(var i=0;i<e.length;i++){var n=e[i];t.isSeriesFiltered(n)||r(n)}}function Qd(t,e){var r=t.model,i=fl(go(r.ecModel)).keys;i&&b(i.get(r.uid),function(n){if(0)var a;e(n)})}function $d(t,e,r){if(t){var i=e.ecModel,n=fl(go(i)),a=t.model.uid;if(0)var o,s;var l=n.axSer||(n.axSer=H()),u=l.get(a)||l.set(a,[]);if(0)var f;u.push(e);var c=e.subType,p=e.getBaseAxis()===t,h=vb.get(hb(c,p,r))||vb.get(hb(c,p,null));if(h){var v=n.keyed||(n.keyed=H()),d=n.keys||(n.keys=H()),g=h.key,m=v.get(g)||v.set(g,H()),y=m.get(a);y||(y=m.set(a,{axis:t,sers:[],serByIdx:[]}),y.metrics=h.getMetrics(t),(d.get(a)||d.set(a,[])).push(g)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function hb(t,e,r){return t+pb+G(e,!0)+pb+(r||"")}var vb=H();var kI=re(),Tb=1;var BI=3,bb=(function(){function t(e,r,i,n,a){var o=vt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(Ao(e)||Wr(e)||Mo(e))&&(ch(f,cl(e,r.get("dataMin",!0))),ph(f,cl(e,r.get("dataMax",!0)))),Gy(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get("min",!0);h==="dataMin"?(c[0]=f[0],p[0]=!0):(c[0]=cl(e,V(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get("max",!0);v==="dataMax"?(c[1]=f[1],p[1]=!0):(c[1]=cl(e,V(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var d=UI(e,r),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*g),!Tr(c[0])&&(c[0]=NaN),!Tr(c[1])&&(c[1]=NaN);var m=l||qr(c[0])||qr(c[1])||o&&!s,y=Ao(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=cl(e,r.get("startValue",!0)),T=S!=null;!ut(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),ut(S)&&(T||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));var C=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:_,tggAxInv:x,ctnShp:a};xb(C,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),xb(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function xb(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),Yy(e))}function cl(t,e){return e==null?null:qr(e)?NaN:t.parse(e)}function UI(t,e){var r;if(vt(t))r=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),r=R(i)?i:[i,i]}return[Sb(r[0]),Sb(r[1])]}function Sb(t){return Jr(typeof t=="boolean"?0:t,1)||0}function Cb(t){var e=kI(t.scale);return e.extent||(e.extent=at()),e}function wb(t,e){Cb(t).dimIdxInCoord=e.get(t.dim)}function Eb(t,e){var r=t.scale,i=t.model,n=t.dim;r.rawExtentInfo||zI(r,t,n,i,e)}function zI(t,e,r,i,n){var a=Cb(e),o=a.extent,s=!1;_b(e,function(f){if(f.boxCoordinateSystem){var c=pf(f).coord,p=a.dimIdxInCoord;if(p>=0){if(R(c)){var h=c[p];h!=null&&!R(h)&&ps(o,t.parse(h))}}}else if(f.coordinateSystem){var v=f.getData();if(v){var d=t.getFilter?t.getFilter():null;b(cb(v,r),function(g){Hy(o,v.getApproximateExtent(g,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=VI(t,e,i),u=new bb(t,i,o,s,l);Db(t,u,n),a.extent=null}function FI(t,e){var r=t.scale;Db(r,new bb(r,t.model,e,!1,!1),BI)}function Db(t,e,r){t.rawExtentInfo=e,e.from=r}var Ab=H();function bc(t,e,r,i,n){t.rawExtentInfo||FI({scale:t,model:e},n||at());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function VI(t,e,r){var i=Sc(t,r),n=r.get("containShape",!0);if(n==null&&!i&&(n=!0),!n)return!1;var a=!1;return Qd(e,function(o){a=!!Ab.get(o)||a}),a}function Mb(t,e,r,i){if(r.ctnShp){var n;if(Qd(t,function(s){var l=Ab.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],ch(n,u[0]),ph(n,u[1]),lb(t))}}),!!n){var a=e.getExtent();if(vt(e))t.onBand||e.setExtent2(Co,Ge(a[0],a[0]+n[0]),ve(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=Ge(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=ve(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(Co,o[0],o[1])}}}}function Ob(t,e){var r=Wr(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=fc(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?GI(i,e):HI(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Ar(c)),n[0]||(s[0]=pe(nr(s[0]/f)*f,u)),n[1]||(s[1]=pe(Di(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),xc(t,n,o,s,a,l)}function HI(t,e){var r=ll(e.splitNumber,5),i=Do(t),n=e.minInterval,a=e.maxInterval,o=ti(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=Ar(o),l=t.getExtent(),u=[pe(Di(l[0]/o)*o,s),pe(nr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function GI(t,e){var r=ll(e.splitNumber,10),i=t.getExtent(),n=Do(t),a=ve(Pa(n),1),o=r/n*a;o<=.5&&(a*=10);var s=Ar(a),l=[pe(Di(i[0]/a)*a,s),pe(nr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Jd(t){var e=t.scale,r=t.model,i=r.axis,n=r.ecModel;em(e,r,i,n,null)}function em(t,e,r,i,n){var a=bc(t,e,i,r,n),o=Ao(t)||Mo(t);YI(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),r&&i&&Mb(r,t,a,i)}function YI(t,e){WI[t.type](t,e)}var WI={interval:Ob,log:Ob,time:JT,ordinal:Le};function XI(t){return ac(null,t)}var qI={isDimensionStacked:pi,enableDataStack:ic,getStackedDimension:nc};function ZI(t,e){var r=e;e instanceof Se||(r=new Se(e));var i=gc(r),n=yc(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),em(n,r,null,null,t),n}function KI(t){Qe(t,Tc)}function jI(t,e){return e=e||{},wr(t,null,null,e.state!=="normal")}var Lb=[],QI={registerPreprocessor:jf,registerProcessor:Qf,registerPostInit:Nd,registerPostUpdate:kd,registerUpdateLifecycle:Js,registerAction:Hi,registerCoordinateSystem:Bd,registerLayout:Ud,registerVisual:ci,registerTransform:Vd,registerLoading:$f,registerMap:Fd,registerImpl:HS,PRIORITY:Od,ComponentModel:me,ComponentView:je,SeriesModel:hr,ChartView:bt,registerComponentModel:function(t){me.registerClass(t)},registerComponentView:function(t){je.registerClass(t)},registerSeriesModel:function(t){hr.registerClass(t)},registerChartView:function(t){bt.registerClass(t)},registerCustomSeries:function(t,e){Nf(t,e)},registerSubTypeDefaulter:function(t,e){me.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){th(t,e)}};function Et(t){if(R(t)){b(t,function(e){Et(e)});return}ee(Lb,t)>=0||(Lb.push(t),V(t)&&(t={install:t}),t.install(QI))}var $I=1e-8;function Ib(t,e){return Math.abs(t-e)<$I}function rm(t,e,r){var i=0,n=t[0];if(!n)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=ur(n[0],n[1],o[0],o[1],e,r),n=o}var s=t[0];return(!Ib(n[0],s[0])||!Ib(n[1],s[1]))&&(i+=ur(n[0],n[1],s[0],s[1],e,r)),i!==0}var eP=[];function im(t,e){for(var r=0;r<t.length;r++)Fe(t[r],t[r],e)}function Pb(t,e,r,i){for(var n=0;n<t.length;n++){var a=t[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Jt(e,e,a),er(r,r,a))}}function tP(t){for(var e=0,r=0,i=0,n=t.length,a=t[n-1][0],o=t[n-1][1],s=0;s<n;s++){var l=t[s][0],u=t[s][1],f=a*u-l*o;e+=f,r+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return e?[r/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Rb=(function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t})();var nm=(function(){function t(e,r){this.type="polygon",this.exterior=e,this.interiors=r}return t})();var am=(function(){function t(e){this.type="linestring",this.points=e}return t})();var Nb=(function(t){I(e,t);function e(r,i,n){var a=t.call(this,r)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){for(var r=this.geometries,i,n=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return tP(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(r){var i=this._rect;if(i&&!r)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?Pb(s.exterior,n,a,r):b(s.points,function(l){Pb(l,n,a,r)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new q(n[0],n[1],a[0]-n[0],a[1]-n[1]),r||(this._rect=i),i},e.prototype.contain=function(r){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(r[0],r[1]))return!1;e:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(rm(l,r[0],r[1])){for(var f=0;f<(u?u.length:0);f++)if(rm(u[f],r[0],r[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(r,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new q(r,i,n,a),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var p=f[c];p.type==="polygon"?(im(p.exterior,u),b(p.interiors,function(h){im(h,u)})):b(p.points,function(h){im(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(r){r==null&&(r=this.name);var i=new e(r,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(Rb);var qW=(function(t){I(e,t);function e(r,i){var n=t.call(this,r)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,i=r.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=tr(eP),o=r;o&&!o.isGeoSVGGraphicRoot;)gr(a,o.getLocalTransform(),a),o=o.parent;return Bt(a,a),Fe(n,n,a),n},e})(Rb);function rP(t){if(!t.UTF8Encoding)return t;var e=t,r=e.UTF8Scale;r==null&&(r=1024);var i=e.features;return b(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=kb(s,o,r);break;case"Polygon":om(s,o,r);break;case"MultiLineString":om(s,o,r);break;case"MultiPolygon":b(s,function(l,u){return om(l,o[u],r)})}}),e.UTF8Encoding=!1,e}function om(t,e,r){for(var i=0;i<t.length;i++)t[i]=kb(t[i],e[i],r)}function kb(t,e,r){for(var i=[],n=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/r,l/r])}return i}function Cc(t,e){return t=rP(t),B(we(t.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var i=r.properties,n=r.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new nm(o[0],o.slice(1)));break;case"MultiPolygon":b(n.coordinates,function(l){l[0]&&a.push(new nm(l[0],l.slice(1)))});break;case"LineString":a.push(new am([n.coordinates]));break;case"MultiLineString":a.push(new am(n.coordinates))}var s=new Nb(i[e||"name"],a,i.cp);return s.properties=i,s})}var sm={};kt(sm,{MAX_SAFE_INTEGER:()=>os,asc:()=>Ia,getPercentWithPrecision:()=>Ey,getPixelPrecision:()=>Cy,getPrecision:()=>zt,getPrecisionSafe:()=>ih,isNumeric:()=>ls,isRadianAroundZero:()=>xn,linearMap:()=>as,nice:()=>ti,numericToNumber:()=>ar,parseDate:()=>_t,parsePercent:()=>yt,quantile:()=>Ay,quantity:()=>Pa,quantityExponent:()=>Ra,reformIntervals:()=>My,remRadian:()=>ss,round:()=>by});var lm={};kt(lm,{format:()=>si,parse:()=>_t,roundTime:()=>no});var um={};kt(um,{Arc:()=>Bn,BezierCurve:()=>Ls,BoundingRect:()=>q,Circle:()=>Rn,CompoundPath:()=>Iu,Ellipse:()=>ws,Group:()=>xe,Image:()=>Ot,IncrementalDisplayable:()=>zu,Line:()=>Wt,LinearGradient:()=>Xa,Polygon:()=>Ms,Polyline:()=>Os,RadialGradient:()=>Ru,Rect:()=>_e,Ring:()=>As,Sector:()=>kn,Text:()=>Ee,clipPointsByRect:()=>mv,clipRectByRect:()=>gv,createIcon:()=>Gn,extendPath:()=>cv,extendShape:()=>fv,getShapeClass:()=>pv,getTransform:()=>vv,initProps:()=>Cr,makeImage:()=>Rs,makePath:()=>Ka,mergePath:()=>hv,registerShape:()=>Xt,resizePath:()=>Vu,updateProps:()=>ct});var fm={};kt(fm,{addCommas:()=>ks,capitalFirst:()=>hx,encodeHTML:()=>qe,formatTime:()=>px,formatTpl:()=>oo,getTextRect:()=>Bv,getTooltipMarker:()=>uf,normalizeCssArray:()=>Hr,toCamelCase:()=>ao,truncateText:()=>yh});var cm={};kt(cm,{bind:()=>fe,clone:()=>j,curry:()=>Te,defaults:()=>J,each:()=>b,extend:()=>P,filter:()=>we,indexOf:()=>ee,inherits:()=>Uo,isArray:()=>R,isFunction:()=>V,isObject:()=>z,isString:()=>N,map:()=>B,merge:()=>oe,reduce:()=>st});var iP=re(),pl=re(),Rt={estimate:1,determine:2};function Io(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Bb(t,e){var r=t.getLabelModel().get("customValues");if(r){var i=t.scale;return{labels:B(zb(r,i),function(n,a){return{formattedLabel:ul(t)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return t.type==="category"?nP(t,e):oP(t)}function Ub(t,e,r){var i=t.scale,n=t.getTickModel().get("customValues");return n?{ticks:zb(n,i)}:t.type==="category"?aP(t,e):{ticks:i.getTicks(r)}}function zb(t,e){var r=e.getExtent(),i=[];return b(t,function(n){n=e.parse(n),n>=r[0]&&n<=r[1]&&i.push(n)}),Ba(i,qy,null),Ia(i),B(i,function(n){return{value:n}})}function nP(t,e){var r=t.getLabelModel(),i=Fb(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:i}function Fb(t,e,r){var i=lP(t),n=_c(e),a=r.kind===Rt.estimate;if(!a){var o=Hb(i,n);if(o)return o}var s,l;V(n)?s=wc(t,n,!1):(l=n==="auto"?uP(t,r):n,s=wc(t,l,!1));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return pm(i,n,u),!0}):pm(i,n,u),u}function aP(t,e){var r=sP(t),i=_c(e),n=Hb(r,i);if(n)return n;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),V(i))a=wc(t,i,!0);else if(i==="auto"){var s=Fb(t,t.getLabelModel(),Io(Rt.determine));o=s.labelCategoryInterval,a=B(s.labels,function(l){return l.tick})}else o=i,a=wc(t,o,!0);return pm(r,i,{ticks:a,tickCategoryInterval:o})}function oP(t){var e=t.scale.getTicks(),r=ul(t);return{labels:B(e,function(i,n){return{formattedLabel:r(i,n),rawLabel:t.scale.getLabel(i),tick:i}})}}var sP=Vb("axisTick"),lP=Vb("axisLabel");function Vb(t){return function(r){return pl(r)[t]||(pl(r)[t]={list:[]})}}function Hb(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function pm(t,e,r){return t.list.push({key:e,value:r}),r}function uP(t,e){if(e.kind===Rt.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return pl(t).autoInterval=r,!0}),r}var i=pl(t).autoInterval;return i??(pl(t).autoInterval=t.calculateCategoryInterval(e))}function Gb(t,e){var r=e.kind,i=cP(t),n=ul(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),d=0,g=0;c<=s[1];c+=u){var m=0,y=0,_=tu(n({value:c}),i.font,"center","top");m=_.width*1.3,y=_.height*1.3,d=Math.max(d,m,7),g=Math.max(g,y,7)}var x=d/h,S=g/v;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var T=Math.max(0,Math.floor(Math.min(x,S)));if(r===Rt.estimate)return e.out.noPxChangeTryDetermine.push(fe(fP,null,t,T,l)),T;var C=Yb(t,T,l);return C??T}function fP(t,e,r){return Yb(t,e,r)==null}function Yb(t,e,r){var i=iP(t.model),n=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function cP(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function wc(t,e,r){var i=ul(t),n=t.scale,a=[],o=V(e);return cc(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}a.push(r?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var pP=.8;function fa(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=YT(i);ut(o)||(o=NaN);var s=t.getExtent(),l=Ne(s[1]-s[0]);return vt(i)?hP(r,t,o,l):n?vP(r,t,o,l,n):a==null,a!=null&&(r.w=ut(r.w)?ve(a,r.w):a),r}function hP(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function vP(t,e,r,i,n){var a=!1,o=-1/0;b(n.key?[mb(e,n.key)]:gb(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===db&&(a=!0))}),ut(r)&&r>0&&ut(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*pP,t.w2=t.w*r/i)}var Wb=[0,1],dP=(function(){function t(e,r,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=i||[0,0]}return t.prototype.contain=function(e){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return e>=i&&e<=n},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){var i=this._extent;i[0]=e,i[1]=r},t.prototype.dataToCoord=function(e,r){var i=this.scale;return e=i.normalize(i.parse(e)),as(e,Wb,Xb(this),r)},t.prototype.coordToData=function(e,r){var i=as(e,Xb(this),Wb,r);return this.scale.scale(i)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),i=Ub(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=B(i.ticks,function(s){return{coord:this.dataToCoord(vi(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=mP(this,n,a);return B(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},t.prototype.getMinorTicksCoords=function(){if(vt(this.scale))return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=B(i,function(a){return B(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},t.prototype.getViewLabels=function(e){return e=e||Io(Rt.determine),Bb(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return fa(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(e){return e=e||Io(Rt.determine),Gb(this,e)},t})();function Xb(t){var e=t.getExtent();if(t.onBand){var r=e[1]-e[0],i=r/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function mP(t,e,r){var i=e.length;if(!t.onBand||r||!i)return!1;var n=fa(t).w;if(!n)return!1;b(e,function(s){s.coord-=n/2});var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var Ec=dP;function gP(t){var e=me.extend(t);return me.registerClass(e),e}function yP(t){var e=je.extend(t);return je.registerClass(e),e}function _P(t){var e=hr.extend(t);return hr.registerClass(e),e}function xP(t){var e=bt.extend(t);return bt.registerClass(e),e}var qb=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],SP=1,Dc=2,Kb=SP|Dc;function hl(t,e,r){r=r||Kb,e?t.dirty|=r:t.dirty&=~r}function jb(t,e){return e=e||Kb,t.dirty==null||!!(t.dirty&e)}function Mr(t){if(t)return jb(t)&&TP(t,t.label,t),t}function TP(t,e,r){var i=e.getComputedTransform();t.transform=Yu(t.transform,i);var n=t.localRect=$a(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Yn.textMargin);for(var c=0;c<4;c++)hm[c]=f===Yn.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Yn.textMargin&&ja(n,hm,!1,!1);var p=t.rect=$a(t.rect,n);return i&&p.applyTransform(i),f===Yn.minMargin&&ja(p,hm,!1,!1),t.axisAligned=Gu(i),(t.label=t.label||{}).ignore=e.ignore,hl(t,!1),hl(t,!0,Dc),t}var hm=[0,0,0,0];function Qb(t,e,r){return t.transform=Yu(t.transform,r),t.localRect=$a(t.localRect,e),t.rect=$a(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Gu(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function $b(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function vm(t,e){for(var r=0;r<qb.length;r++){var i=qb[r];t[i]==null&&(t[i]=e[i])}return Mr(t)}function Zb(t){var e=t.obb;return(!e||jb(t,Dc))&&(t.obb=e=e||new Uu,e.fromBoundingRect(t.localRect,t.transform),hl(t,!1,Dc)),e}function Jb(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<t.length;i++){var n=Mr(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Ac(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Ac(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:Zb(t).intersect(Zb(e),r,i)}var bP=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(0)var i;return ac(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var i=new xe,n=jt("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=jt(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);i.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Z.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.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},e})(hr),e1=bP;function Mc(t,e){var r=t.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=ui(t,e,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(ui(t,e,r[o]));return a.join(" ")}}function t1(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!R(e))return e+"";for(var i=[],n=0;n<r.length;n++){var a=t.getDimensionIndex(r[n]);a>=0&&i.push(e[a])}return i.join(" ")}var CP=(function(t){I(e,t);function e(r,i,n,a){var o=t.call(this)||this;return o.updateData(r,i,n,a),o}return e.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var l=jt(r,-1,-1,2,2,null,s);l.attr({z2:G(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=wP,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){In(this.childAt(0))},e.prototype.downplay=function(){Pn(this.childAt(0))},e.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},e.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},e.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,i),u=e.getSymbolZ2(r,i),f=o!==this._symbolType,c=a&&a.disableAnimation;if(f){var p=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(v):ct(h,v,s,i),N0(h)}if(this._updateCommon(r,i,l,n,a),f){var h=this.childAt(0);if(!c){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Cr(h,v,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,p,h,v,d,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,p=a.focus,h=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),d=eo(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var x=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=kf(r.getItemVisual(i,"symbolOffset"),n);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var T=r.getItemVisual(i,"style"),C=T.fill;if(s instanceof Ot){var D=s.style;s.useStyle(P({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},T))}else s.__isEmptyBrush?s.useStyle(P({},T)):s.useStyle(T),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var E=r.getItemVisual(i,"liftZ"),w=this._z2;E!=null?w==null&&(this._z2=s.z2,s.z2+=E):w!=null&&(s.z2=w,this._z2=null);var A=o&&o.useNameLabel;Ja(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:O,inheritColor:C,defaultOpacity:T.opacity});function O(U){return A?r.getName(U):Mc(r,U)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;M.scaleX=this._sizeX*L,M.scaleY=this._sizeY*L,this.setSymbolScale(1),Ts(this,p,h,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=de(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Za(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Za(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,i){return XS(r.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},e})(xe);function wP(t,e){this.parent.drift(t,e)}var vl=CP;function Oc(t,e,r,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(r))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function r1(t){return t!=null&&!z(t)&&(t={isIgnore:t}),t||{}}function i1(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:eo(e),cursorStyle:e.get("cursor")}}function n1(t,e,r,i,n,a,o){var s=new t(e,r,i,n);return s.setPosition(a),e.setItemGraphicEl(r,s),o.add(s),s}var EP=(function(){function t(e){this.group=new xe,this._SymbolCtor=e||vl}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=r1(r);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=this._seriesScope=i1(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||i.removeAll(),e.diff(a).add(function(c){var p=f(c);Oc(e,p,c,r)&&n1(o,e,c,l,u,p,i)}).update(function(c,p){var h=a.getItemGraphicEl(p),v=f(c);if(!Oc(e,v,c,r)){i.remove(h);return}var d=e.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==d)i.remove(h),h=new o(e,c,l,u),h.setPosition(v);else{h.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):ct(h,m,n)}i.add(h),e.setItemGraphicEl(c,h)}).remove(function(c){var p=a.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(e){var r=this._data;if(r)for(var i=this,n=r.getStore(),a=0,o=n.count();a<o;a++){var s=r.getItemGraphicEl(a),l=i._getSymbolPoint(a);Oc(r,l,a,e)?(s=s||n1(i._SymbolCtor,r,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),r.setItemGraphicEl(a,null))}},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=i1(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,i,n){this._progressiveEls=[],n=r1(n);function a(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Ps)}for(var o=e.start;o<e.end;o++){var s=r.getItemLayout(o);if(Oc(r,s,o,n)){var l=new this._SymbolCtor(r,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),r.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(e){Ns(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},t})(),a1=EP;function Lc(t,e,r){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=DP(n,r),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=B(t.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");return pi(e,c[0])&&(p=!0,c[0]=h),pi(e,c[1])&&(p=!0,c[1]=h),{dataDimsForPoint:c,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function DP(t,e){var r=0,i=t.scale.getExtent();return e==="start"?r=i[0]:e==="end"?r=i[1]:le(e)&&!isNaN(e)?r=e:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function Ic(t,e,r,i){var n=NaN;t.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Nt(t,e){return!isFinite(t)||!isFinite(e)}var AP=typeof Float32Array!==Ln?Float32Array:void 0;function di(t){return MP({ctor:AP},t).arr}function MP(t,e){var r=t.arr,i=t.ctor;if(e>os&&(e=os),!r||t.typed&&r.length<e){var n=void 0;if(i)try{n=new i(e),t.typed=!0,r&&n.set(r)}catch{}if(!n&&(n=[],t.typed=!1,r))for(var a=0,o=r.length;a<o;a++)n[a]=r[a];t.arr=n}return t}function OP(t,e){var r=[];return e.diff(t).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function mm(t,e,r,i,n,a,o,s){for(var l=OP(t,e),u=[],f=[],c=[],p=[],h=[],v=[],d=[],g=Lc(n,e,o),m=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,T=void 0,C=void 0;switch(x.cmd){case"=":T=x.idx*2,C=x.idx1*2;var D=m[T],E=m[T+1],w=y[C],A=y[C+1];(isNaN(D)||isNaN(E))&&(D=w,E=A),u.push(D,E),f.push(w,A),c.push(r[T],r[T+1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var O=x.idx,M=g.dataDimsForPoint,L=n.dataToPoint([e.get(M[0],O),e.get(M[1],O)]);C=O*2,u.push(L[0],L[1]),f.push(y[C],y[C+1]);var U=Ic(g,n,e,O);c.push(U[0],U[1]),p.push(i[C],i[C+1]),d.push(e.getRawIndex(O));break;case"-":S=!1}S&&(h.push(x),v.push(v.length))}v.sort(function(he,ge){return d[he]-d[ge]});for(var k=u.length,Y=di(k),X=di(k),K=di(k),ie=di(k),te=[],_=0;_<v.length;_++){var ue=v[_],$=_*2,W=ue*2;Y[$]=u[W],Y[$+1]=u[W+1],X[$]=f[W],X[$+1]=f[W+1],K[$]=c[W],K[$+1]=c[W+1],ie[$]=p[W],ie[$+1]=p[W+1],te[_]=h[ue]}return{current:Y,next:X,stackedOnCurrent:K,stackedOnNext:ie,status:te}}var Wi=Math.min,Xi=Math.max;function gm(t,e,r,i,n,a,o,s,l){for(var u,f,c,p,h,v,d=r,g=0;g<i;g++){var m=e[d*2],y=e[d*2+1];if(d>=n||d<0)break;if(Nt(m,y)){if(l){d+=a;continue}break}if(d===r)t[a>0?"moveTo":"lineTo"](m,y),c=m,p=y;else{var _=m-u,x=y-f;if(_*_+x*x<.5){d+=a;continue}if(o>0){for(var S=d+a,T=e[S*2],C=e[S*2+1];T===m&&C===y&&g<i;)g++,S+=a,d+=a,T=e[S*2],C=e[S*2+1],m=e[d*2],y=e[d*2+1],_=m-u,x=y-f;var D=g+1;if(l)for(;Nt(T,C)&&D<i;)D++,S+=a,T=e[S*2],C=e[S*2+1];var E=.5,w=0,A=0,O=void 0,M=void 0;if(D>=i||Nt(T,C))h=m,v=y;else{w=T-u,A=C-f;var L=m-u,U=T-m,k=y-f,Y=C-y,X=void 0,K=void 0;if(s==="x"){X=Math.abs(L),K=Math.abs(U);var ie=w>0?1:-1;h=m-ie*X*o,v=y,O=m+ie*K*o,M=y}else if(s==="y"){X=Math.abs(k),K=Math.abs(Y);var te=A>0?1:-1;h=m,v=y-te*X*o,O=m,M=y+te*K*o}else X=Math.sqrt(L*L+k*k),K=Math.sqrt(U*U+Y*Y),E=K/(K+X),h=m-w*o*(1-E),v=y-A*o*(1-E),O=m+w*o*E,M=y+A*o*E,O=Wi(O,Xi(T,m)),M=Wi(M,Xi(C,y)),O=Xi(O,Wi(T,m)),M=Xi(M,Wi(C,y)),w=O-m,A=M-y,h=m-w*X/K,v=y-A*X/K,h=Wi(h,Xi(u,m)),v=Wi(v,Xi(f,y)),h=Xi(h,Wi(u,m)),v=Xi(v,Wi(f,y)),w=m-h,A=y-v,O=m+w*K/X,M=y+A*K/X}t.bezierCurveTo(c,p,h,v,m,y),c=O,p=M}else t.lineTo(m,y)}u=m,f=y,d+=a}return g}var o1=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),s1=(function(t){I(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new o1},e.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&Nt(n[o*2-2],n[o*2-1]);o--);for(;a<o&&Nt(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=gm(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Vt.CMD,s,l,u=i==="x",f=[],c=0;c<a.length;){var p=a[c++],h=void 0,v=void 0,d=void 0,g=void 0,m=void 0,y=void 0,_=void 0;switch(p){case o.M:s=a[c++],l=a[c++];break;case o.L:if(h=a[c++],v=a[c++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var x=u?(v-l)*_+l:(h-s)*_+s;return u?[r,x]:[x,r]}s=h,l=v;break;case o.C:h=a[c++],v=a[c++],d=a[c++],g=a[c++],m=a[c++],y=a[c++];var S=u?hn(s,h,d,m,r,f):hn(l,v,g,y,r,f);if(S>0)for(var T=0;T<S;T++){var C=f[T];if(C<=1&&C>=0){var x=u?Ie(l,v,g,y,C):Ie(s,h,d,m,C);return u?[r,x]:[x,r]}}s=m,l=y;break}}},e})(ae);var LP=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(o1),l1=(function(t){I(e,t);function e(r){var i=t.call(this,r)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new LP},e.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Nt(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Nt(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=gm(r,n,o,s,s,1,i.smooth,l,i.connectNulls);gm(r,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,r.closePath()}},e})(ae);function u1(t,e,r,i,n){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new _e({shape:{x:o,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;h?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var d=V(n)?function(g){n(g,c)}:null;Cr(c,{shape:{width:l,height:u,x:o,y:s}},r,null,i,d)}return c}function f1(t,e,r){var i=t.getArea(),n=pe(i.r0,1),a=pe(i.r,1),o=new kn({shape:{cx:pe(t.cx,1),cy:pe(t.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,Cr(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function c1(t,e){return t.type===e}function p1(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function h1(t){for(var e=at(),r=at(),i=0;i<t.length;){var n=t[i++],a=t[i++];Nt(n,a)||(ps(e,n),ps(r,a))}return[e,r]}function v1(t,e){var r=h1(t),i=r[0],n=r[1],a=h1(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function d1(t){return le(t)?t:t?.5:0}function IP(t,e,r){if(r.valueDim==null)return[];for(var i=e.count(),n=di(i*2),a=0;a<i;a++){var o=Ic(r,t,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function qi(t,e,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],p=[];if(n){for(l=0;l<t.length;l+=2){var h=e||t;Nt(h[l],h[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(c[0]=t[l+2],c[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),i){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var v=(f[o]+c[o])/2,d=[];u[o]=d[o]=v,u[1-o]=f[1-o],d[1-o]=c[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function PP(t,e){var r=[],i=t.length,n,a;function o(f,c,p){var h=f.coord,v=(p-h)/(c.coord-h),d=Wl(v,[f.color,c.color]);return{coord:p,color:d}}for(var s=0;s<i;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){a?r.push(o(a,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}else n&&(r.push(o(n,l,0)),n=null),r.push(l),a=l}return r}function RP(t,e,r){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&e.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=e.getAxis(n),u=B(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var p=PP(u,n==="x"?r.getWidth():r.getHeight()),h=p.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var v=10,d=p[0].coord-v,g=p[h-1].coord+v,m=g-d;if(m<.001)return"transparent";b(p,function(_){_.offset=(_.coord-d)/m}),p.push({offset:h?p[h-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:h?p[0].offset:.5,color:c[0]||"transparent"});var y=new Xa(0,0,0,0,p,!0);return y[n]=d,y[n+"2"]=g,y}}}function NP(t,e,r){var i=t.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&kP(a,e))){var o=e.mapDimension(a.dim),s={};return b(a.getViewLabels(),function(l){l.tick.offInterval||(s[vi(a.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function kP(t,e){var r=t.getExtent(),i=Math.abs(r[1]-r[0])/t.scale.count();isNaN(i)&&(i=0);for(var n=e.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(vl.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>i)return!1;return!0}function BP(t){for(var e=t.length/2;e>0&&Nt(t[e*2-2],t[e*2-1]);e--);return e-1}function m1(t,e){return[t[e*2],t[e*2+1]]}function UP(t,e,r){for(var i=t.length/2,n=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=t[u*2+n],!Nt(o,t[u*2+1-n])){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function g1(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<cr.length;e++)if(t.get([cr[e],"endLabel","show"]))return!0;return!1}function ym(t,e,r,i){if(c1(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=g1(i)?function(h,v){t._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=u1(e,r,i,function(){var h=t._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=f.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=p*2):(c.x-=p,c.width+=p*2)}return l&&l(1,f),f}else return f1(e,r,i)}function zP(t,e){var r=e.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var FP=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new xe,i=new a1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=fe(this._changePolyState,this)},e.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],c=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,d=this._polygon,g=this._lineGroup,m=!i.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=Lc(a,s,_),S=y&&IP(a,s,x),T=r.get("showSymbol"),C=r.get("connectNulls"),D=T&&!c&&NP(r,s,a),E=this._data;E&&E.eachItemGraphicEl(function(Ae,Xe){Ae.__temp&&(o.remove(Ae),E.setItemGraphicEl(Xe,null))}),T||h.remove(),o.add(g);var w=c?!1:r.get("step"),A;a&&a.getArea&&r.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var O=RP(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&w===this._step))T&&h.updateData(s,{isIgnore:D,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,A),w&&(S&&(S=qi(S,f,a,w,C)),f=qi(f,null,a,w,C)),v=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(g.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Er(O)),g.setClipPath(ym(this,a,!0,r));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(g.remove(d),d=this._polygon=null),c||this._initOrUpdateEndLabel(r,a,Er(O));var M=g.getClipPath();if(M){var L=ym(this,a,!1,r);Cr(M,{shape:L.shape},r)}else g.setClipPath(ym(this,a,!0,r));T&&h.updateData(s,{isIgnore:D,clipShape:A,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!p1(this._stackedOnPoints,S)||!p1(this._points,f))&&(m?this._doUpdateAnimation(s,S,a,n,w,_,C):(w&&(S&&(S=qi(S,f,a,w,C)),f=qi(f,null,a,w,C)),v.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var U=r.getModel("emphasis"),k=U.get("focus"),Y=U.get("blurScope"),X=U.get("disabled");if(v.useStyle(J(l.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),Kh(v,r,"lineStyle"),v.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var K=v.getState("emphasis").style;K.lineWidth=+v.style.lineWidth+1}de(v).seriesIndex=r.seriesIndex,Ts(v,k,Y,X);var ie=d1(r.get("smooth")),te=r.get("smoothMonotone");if(v.setShape({smooth:ie,smoothMonotone:te,connectNulls:C}),d){var ue=s.getCalculationInfo("stackedOnSeries"),$=0;d.useStyle(J(u.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ue&&($=d1(ue.get("smooth"))),d.setShape({smooth:ie,stackedOnSmooth:$,smoothMonotone:te,connectNulls:C}),Kh(d,r,"areaStyle"),de(d).seriesIndex=r.seriesIndex,Ts(d,k,Y,X)}var W=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=w,this._valueOrigin=_;var he=r.get("triggerEvent"),ge=r.get("triggerLineEvent"),mt=ge===!0||he===!0||he==="line",dr=ge===!0||he===!0||he==="area";this.packEventData(r,v,mt),d&&this.packEventData(r,d,dr)},e.prototype.packEventData=function(r,i,n){de(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=or(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(Nt(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var p=r.get("zlevel")||0,h=r.get("z")||0;u=new vl(o,s),u.x=f,u.y=c,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else bt.prototype.highlight.call(this,r,i,n,a)},e.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=or(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else bt.prototype.downplay.call(this,r,i,n,a)},e.prototype._changePolyState=function(r){var i=this._polygon;Gh(this._polyline,r),i&&Gh(i,r)},e.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new s1({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new l1({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");V(f)&&(f=f(null));var c=u.get("animationDelay")||0,p=V(c)?c(null):c;r.eachItemGraphicEl(function(h,v){var d=h;if(d){var g=[h.x,h.y],m=void 0,y=void 0,_=void 0;if(n)if(o){var x=n,S=i.pointToCoord(g);a?(m=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(m=x.r0,y=x.r,_=S[0])}else{var T=n;a?(m=T.x,y=T.x+T.width,_=h.x):(m=T.y+T.height,y=T.y,_=h.y)}var C=y===m?0:(_-m)/(y-m);l&&(C=1-C);var D=V(c)?c(v):f*C+p,E=d.getSymbolPath(),w=E.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:D}),E.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(g1(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ee({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=BP(l);f>=0&&(Ja(s,eo(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(c,p,h){return h!=null?t1(o,h):Mc(o,c)},enableTextSetter:!0},zP(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var c=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,_=i.shape,x=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,S=(m?d:0)*(y?-1:1),T=(m?0:-d)*(y?-1:1),C=m?"x":"y",D=UP(c,x,C),E=D.range,w=E[1]-E[0],A=void 0;if(w>=1){if(w>1&&!h){var O=m1(c,E[0]);u.attr({x:O[0]+S,y:O[1]+T}),o&&(A=p.getRawValue(E[0]))}else{var O=f.getPointOn(x,C);O&&u.attr({x:O[0]+S,y:O[1]+T});var M=p.getRawValue(E[0]),L=p.getRawValue(E[1]);o&&(A=fh(n,v,M,L,D.t))}a.lastFrameIndex=E[0]}else{var U=r===1||a.lastFrameIndex>0?E[0]:0,O=m1(c,U);o&&(A=p.getRawValue(U)),u.attr({x:O[0]+S,y:O[1]+T})}if(o){var k=xv(u);typeof k.setLabelText=="function"&&k.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(r,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,c=r.hostModel,p=mm(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),h=p.current,v=p.stackedOnCurrent,d=p.next,g=p.stackedOnNext;if(o&&(v=qi(p.stackedOnCurrent,p.current,n,o,l),h=qi(p.current,null,n,o,l),g=qi(p.stackedOnNext,p.next,n,o,l),d=qi(p.next,null,n,o,l)),v1(h,d)>3e3||f&&v1(v,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=p.current,u.shape.points=h;var m={shape:{points:d}};p.current!==h&&(m.shape.__points=p.next),u.stopAnimation(),ct(u,m,c),f&&(f.setShape({points:h,stackedOnPoints:v}),f.stopAnimation(),ct(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=p.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var T=r.getItemGraphicEl(_[x].idx1);T&&y.push({el:T,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,D=0;D<y.length;D++){var E=y[D].el,w=y[D].ptIdx*2;E.x=C[w],E.y=C[w+1],E.markRedraw()}})},e.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(bt),y1=FP;function _m(t,e){return{seriesType:t,plan:Ys(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=e||a.large;if(n){var s=B(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");pi(i,s[0])&&(s[0]=u),pi(i,s[1])&&(s[1]=u);var f=i.getStore(),c=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var d=h.end-h.start,g=o&&di(d*l),m=[],y=[],_=h.start,x=0;_<h.end;_++){var S=void 0;if(l===1){var T=f.get(c,_);S=n.dataToPoint(T,null,y)}else m[0]=f.get(c,_),m[1]=f.get(p,_),S=n.dataToPoint(m,null,y);o?(g[x++]=S[0],g[x++]=S[1]):v.setItemLayout(_,S.slice())}o&&(v.setLayout("points",g),v.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var VP={average:function(t){for(var e=0,r=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},HP=function(t){return Math.round(t.length/2)};function xm(t){return{seriesType:t,reset:function(e,r,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/p);if(isFinite(h)&&h>1){a==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):a==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;N(a)?v=VP[a]:V(a)&&(v=a),v&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,HP))}}}}}function Sm(t){t.registerChartView(y1),t.registerSeriesModel(e1),t.registerLayout(_m("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,xm("line"))}var GP=(function(t){I(e,t);function e(r,i,n,a,o){var s=t.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(Ec),_1=GP;var YP=null;function ca(){return YP}var x1="expandAxisBreak";var Zi=Math.PI,WP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],XP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ki=re(),b1=re(),bm=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function qP(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=Em(t.axisName)&&Yi(t.nameLocation);b(i,function(v){var d=Mr(v);if(!(!d||d.label.ignore)){o.push(d);var g=a.transGroup;l&&(g.transform?Bt(dl,g.transform):tr(dl),d.transform&&gr(dl,dl,d.transform),q.copy(Pc,d.localRect),Pc.applyTransform(dl),s?s.union(Pc):q.copy(s=new q(0,0,0,0),Pc))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(v,d){return Math.abs(v.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new q(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var dl=it(),Pc=new q(0,0,0,0),Cm=function(t,e,r,i,n,a){if(Yi(t.nameLocation)){var o=a.stOccupiedRect;o&&C1(Qb({},o,a.transGroup.transform),i,n)}else wm(a.labelInfoList,a.dirVec,i,n)};function C1(t,e,r){var i=new be;Ac(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&$b(e,i)}function wm(t,e,r,i){for(var n=be.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||C1(s,r,i)}}var pa=(function(){function t(e,r,i,n){this.group=new xe,this._axisModel=e,this._api=r,this._local={},this._shared=n||new bm(Cm),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){if(0)var r;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=G(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=G(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:n,nameLocation:$t(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Em(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new xe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new be(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(ZP,function(n){e[n]&&KP[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=ss(r-e),a,o;return xn(n)?(o=i>0?"top":"bottom",a="center"):xn(n-Zi)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<Zi?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),ZP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],KP={axisLine:function(t,e,r,i,n,a,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(Fe(c,c,f),Fe(p,p,f));var v=P({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&qn(i.axis.scale))ca().buildAxisBreakLine(i,n,a,d);else{var g=new Wt(P({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},d));Hn(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var m=i.get(["axisLine","symbol"]);if(m!=null){var y=i.get(["axisLine","symbolSize"]);N(m)&&(m=[m,m]),(N(y)||le(y))&&(y=[y,y]);var _=kf(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];b([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(T,C){if(m[C]!=="none"&&m[C]!=null){var D=jt(m[C],-x/2,-S/2,x,S,v.stroke,!0),E=T.r+T.offset,w=h?p:c;D.attr({rotation:T.rotate,x:w[0]+E*Math.cos(t.rotation),y:w[1]-E*Math.sin(t.rotation),silent:!0,z2:11}),n.add(D)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){if(0)var l;var u=T1(e,n,s);u&&S1(t,e,r,i,n,a,o,Rt.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){if(0)var l;var u=T1(e,n,s);u&&S1(t,e,r,i,n,a,o,Rt.determine);var f=JP(t,n,a,i);$P(t,e.labelLayoutList,f),eR(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);if(0)var u;e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Em(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),g=i.axis.inverse?-1:1,m=new be(0,0),y=new be(0,0);c==="start"?(m.x=d[0]-g*v,y.x=-g):c==="end"?(m.x=d[1]+g*v,y.x=g):(m.x=(d[0]+d[1])/2,m.y=t.labelOffset+p*v,y.y=p);var _=it();y.transform(an(_,_,t.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Zi/180);var S,T;Yi(c)?S=pa.innerTextLayout(t.rotation,x??t.rotation,p):(S=jP(t.rotation,c,x||0,d),T=t.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var C=h.getFont(),D=i.get("nameTruncate",!0)||{},E=D.ellipsis,w=en(t.raw.nameTruncateMaxWidth,D.maxWidth,T),A=s.nameMarginLevel||0,O=new Ee({x:m.x,y:m.y,rotation:S.rotation,silent:pa.isLabelSilent(i),style:wr(h,{text:f,font:C,overflow:"truncate",width:w,ellipsis:E,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Qa({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid="name",i.get("triggerEvent")){var M=pa.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,de(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var L=l.nameLayout=Mr({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:Yi(c)?WP[A]:XP[A]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&L){var U=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,L,y,U)}}}};function S1(t,e,r,i,n,a,o,s){E1(e)||tR(t,e,n,s,i,o);var l=e.labelLayoutList;rR(t,i,l,a),aR(i,t.rotation,l);var u=t.optionHideOverlap;QP(i,l,u),u&&Jb(we(l,function(f){return f&&!f.label.ignore})),qP(t,r,i,l)}function jP(t,e,r,i){var n=ss(r-t),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return xn(n-Zi/2)?(o=l?"bottom":"top",a="center"):xn(n-Zi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<Zi*1.5&&n>Zi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function QP(t,e,r){var i=t.axis,n=t.get(["axisLabel","customValues"]);if(fb(i))return;function a(u,f,c){var p=Mr(e[f]),h=Mr(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var d=Ki(p.label).labelInfo.tick;if(Mo(v)&&d.notNice||vt(v)&&d.offInterval){Po(p.label);return}}if(u===!1||p.suggestIgnore){Po(p.label);return}if(h.suggestIgnore){Po(h.label);return}var g=.1;if(!r){var m=[0,0,0,0];p=vm({marginForce:m},p),h=vm({marginForce:m},h)}Ac(p,h,null,{touchThreshold:g})&&Po(u?h.label:p.label)}}var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function $P(t,e,r){t.showMinorTicks||b(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=b1(a),s=Ki(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Po(a);return}}})}function Po(t){t&&(t.ignore=!0)}function w1(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(Fe(o,o,e),Fe(s,s,e));var f=new Wt({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Hn(f.shape,f.style.lineWidth),f.anid=n+"_"+t[l].tickValue,a.push(f);var c=b1(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function JP(t,e,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=n.getTicksCoords(),f=w1(u,r.transform,l,J(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function eR(t,e,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=J(l.getLineStyle(),J(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=w1(s[c],r.transform,u,f,"minorticks_"+c),h=0;h<p.length;h++)e.add(p[h])}}function T1(t,e,r){if(E1(t)){var i=t.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),Tm(t,null,null,null))}return!0}function tR(t,e,r,i,n,a){var o=n.axis,s=en(t.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new xe;r.add(l);var u=Io(i);if(!s||o.scale.isBlank()){Tm(e,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),p=(en(t.raw.labelRotate,f.get("rotate"))||0)*Zi/180,h=pa.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),d=[],g=n.get("triggerEvent"),m=1/0,y=-1/0;b(c,function(x,S){var T,C=x.tick,D=x.formattedLabel,E=x.rawLabel,w=f,A=vi(o.scale,C);if(v&&v[A]){var O=v[A];z(O)&&O.textStyle&&(w=new Se(O.textStyle,f,n.ecModel))}var M=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=w.getShallow("align",!0)||h.textAlign,U=G(w.getShallow("alignMinLabel",!0),L),k=G(w.getShallow("alignMaxLabel",!0),L),Y=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||h.textVerticalAlign,X=G(w.getShallow("verticalAlignMinLabel",!0),Y),K=G(w.getShallow("verticalAlignMaxLabel",!0),Y),ie=10+(((T=C.time)===null||T===void 0?void 0:T.level)||0);m=Math.min(m,ie),y=Math.max(y,ie);var te=new Ee({x:0,y:0,rotation:0,silent:pa.isLabelSilent(n),z2:ie,style:wr(w,{text:D,align:S===0?U:S===c.length-1?k:L,verticalAlign:S===0?X:S===c.length-1?K:Y,fill:V(M)?M(o.type==="category"?E:o.type==="value"?A+"":A,S):M})});te.anid="label_"+A;var ue=Ki(te);if(ue.labelInfo=x,ue.layoutRotation=h.rotation,Qa({el:te,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return te.isTruncated},value:E,tickIndex:S}}),g){var $=pa.makeAxisEventDataBase(n);$.targetType="axisLabel",$.value=E,$.tickIndex=S;var W=x.tick.break;if(W){var he=W.parsedBreak;$.break={start:he.vmin,end:he.vmax}}o.type==="category"&&($.dataIndex=A),de(te).eventData=$,W&&nR(n,a,te,W)}d.push(te),l.add(te)});var _=B(d,function(x){return{label:x,priority:Ki(x).labelInfo.tick.break?x.z2+(y-m+1):x.z2,defaultAttr:{ignore:x.ignore}}});Tm(e,_,l,u)}function E1(t){return!!t.labelLayoutList}function Tm(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function rR(t,e,r,i){var n=e.get(["axisLabel","margin"]);b(r,function(a,o){var s=Mr(a);if(s){var l=s.label,u=Ki(l);s.suggestIgnore=l.ignore,l.ignore=!1,Aa(mi,iR);var f=e.axis;mi.x=f.dataToCoord(vi(f.scale,u.labelInfo.tick)),mi.y=t.labelOffset+t.labelDirection*n,mi.rotation=u.layoutRotation,i.add(mi),mi.updateTransform(),i.remove(mi),mi.decomposeTransform(),Aa(l,mi),l.markRedraw(),hl(s,!0),Mr(s)}})}var mi=new _e,iR=new _e;function Em(t){return!!t}function nR(t,e,r,i){r.on("click",function(n){var a={type:x1,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function aR(t,e,r){var i=ke();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Ki(o.label).labelInfo.tick.break},!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&b(n,function(o){ca().adjustBreakLabelPair(t.axis.inverse,e,[Mr(r[o[0]]),Mr(r[o[1]])])})}}var Rc=pa;function ml(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[f[s]]:u[0],l==="x"?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),en(r.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-d:d,n.z2=1,n}function D1(t){var e={xAxisModel:null,yAxisModel:null};return b(e,function(r,i){var n=i.replace(/Model$/,""),a=t.getReferringComponents(n,nt).models[0];e[i]=a}),e}function A1(t,e,r,i,n,a){for(var o=ml(t,r),s=!1,l=!1,u=0;u<e.length;u++)lc(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Rc(r,i,o,n)}function M1(t,e,r){var i=ml(e,r);if(0)var n;t.updateCfg(i)}var Dm={left:0,right:0,top:0,bottom:0},gl=["25%","25%"],Ro="cartesian2d",sR=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,i){var n=Yr(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&Zt(r.outerBounds,n)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&Zt(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Dm,outerBoundsContain:"all",outerBoundsClampWidth:gl[0],outerBoundsClampHeight:gl[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},e})(me),O1=sR;var Nc=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nt).models[0]},e.type="cartesian2dAxis",e})(me);Qe(Nc,Tc);var L1={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:Z.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:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},lR=oe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},L1),Am=oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},L1),uR=oe({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Am),fR=J({logBase:10},Am),I1={category:lR,value:Am,time:uR,log:fR};function kc(t,e,r,i){b(dc,function(n,a){var o=oe(oe({},I1[a],!0),i,!0),s=(function(l){I(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var p=Bi(this),h=p?Yr(f):{},v=c.getTheme();oe(f,v.get(a+"Axis")),oe(f,this.getDefaultOption()),f.type=P1(f),p&&Zt(f,h,p)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=ol.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=ca();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",P1)}function P1(t){return t.type||(t.data?"category":"value")}var cR=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),we(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),R1=cR;var yl=["x","y"];function N1(t){return(t.type==="interval"||t.type==="time")&&!qn(t)}var pR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ro,r.dimensions=yl,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!N1(r)||!N1(i))){var n=sa(r,null),a=sa(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,p=o[0]-n[0]*f,h=o[1]-a[0]*c,v=this._transform=[f,0,0,c,p,h];this._invTransform=Bt([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new q(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Fe(n,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(r[0]),u=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return Fe(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,l=Math.max(n[0],n[1])-o+r;return new q(a,o,s,l)},e})(R1),k1=pR;function B1(t,e){var r=t.scale,i=t.model,n=bc(r,i,i.ecModel,t,null),a=Wr(r),o=Wr(e)?e.intervalStub:e,s=a?r.intervalStub:r,l=r.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,p,h,v;if(c===1)p=h=0,v=1;else if(c===2){var d=Ne(u[0].value-u[1].value),g=Ne(u[1].value-u[2].value);p=h=0,d===g?v=2:(v=1,d<g?p=d/g:h=g/d)}else{var m=o.getConfig().interval;p=(1-(u[0].value-f[0].value)/m)%1,h=(1-(f[c].value-u[c].value)/m)%1,v=c-(p?1:0)-(h?1:0)}var y=n.zoomFixMM,_=y[0]||y[1],x=[n.fixMM[0]||_,n.fixMM[1]||_],S=r.getExtent(),T=s.getExtent(),C=fc(T,x),D,E,w,A,O,M;function L(ue){for(var $=50,W=0;W<$&&!ue();W++)w=a?w*ve(l,2):WT(w),A=Ar(w)}function U(){D=pe(M-w*p,A)}function k(){E=pe(O+w*h,A)}function Y(){M=p?pe(D+w*p,A):D}function X(){O=h?pe(E-w*h,A):E}if(x[0]&&x[1]){D=C[0],E=C[1],w=(E-D)/(v+p+h);var K=t.getExtent(),ie=Ne(K[1]-K[0]);A=wy([E,D],ie,.5/v),Y(),X(),ut(A)&&(w=pe(w,A))}else{var te=C[1]-C[0];w=a?ve(Pa(te),1):ti(te/v,nh),A=Ar(w),x[0]?(D=C[0],L(function(){if(Y(),O=pe(M+w*v,A),k(),E>=C[1])return!0})):x[1]?(E=C[1],L(function(){if(X(),M=pe(O-w*v,A),U(),D<=C[0])return!0})):L(function(){M=pe(Di(C[0]/w)*w,A),O=pe(nr(C[1]/w)*w,A);var ue=At((O-M)/w);if(ue<=v){var $=v-ue,W=void 0,he=n.incl0||a;if(he&&C[0]===0)W=[0,$];else if(he&&C[1]===0)W=[$,0];else{var ge=nr($/2);W=$%2===0?[ge,ge]:D+E<C[0]+C[1]?[ge,ge+1]:[ge+1,ge]}if(M=pe(M-w*W[0],A),O=pe(O+w*W[1],A),U(),k(),D<=C[0]&&E>=C[1])return!0}})}xc(r,x,T,[D,E],S,{interval:w,intervalCount:v,intervalPrecision:A,niceExtent:[M,O]})}var U1=[[3,1],[0,2]],hR=(function(){function t(e,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yl,this._initCartesian(e,r,i),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var i=this._axesMap;b(this._axesList,function(o){Eb(o,Tb);var s=o.scale;vt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){for(var s=se(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Jd(f)}b(l,function(c){dR(c,c.__alignTo)?Jd(c):B1(c,c.__alignTo.scale)})}n(i.x),n(i.y);var a={};b(i.x,function(o){z1(i,"y",o,a)}),b(i.y,function(o){z1(i,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,i){var n=mf(e,r),a=this._rect=Gr(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Mm(o,a),!i){var u=gR(a,s,o,l,r),f=void 0;if(l)G1?(G1(this._axesList,a),Mm(o,a)):f=Y1(a.clone(),"axisLabel",null,a,o,u,n);else{var c=yR(e,a,n),p=c.outerBoundsRect,h=c.parsedOuterBoundsContain,v=c.outerBoundsClamp;p&&(f=Y1(p,h,v,a,o,u,n))}W1(a,o,Rt.determine,null,f,n),b(this._coordsList,function(d){d.calcAffineTransform()})}},t.prototype.getAxis=function(e,r){var i=this._axesMap[e];if(i!=null)return i[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var i="x"+e+"y"+r;return this._coordsMap[i]}z(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===r)return a[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(e,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",nt).models[0],n=e.yAxisModel||r&&r.getReferringComponents("yAxis",nt).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ee(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,b(s.x,function(f,c){b(s.y,function(p,h){var v="x"+c+"y"+h,d=new k1(v);d.master=n,d.model=e,n._coordsMap[v]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(p)})}),V1(s.x),V1(s.y);function u(f){return function(c,p){if(vR(c,e)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=gc(c),d=new _1(f,yc(c,v,!0),[0,0],v,h);d.onBand=Sc(d.scale,c),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=a,d.index=p,a._axesList.push(d),s[f][p]=d,l[f]++}}}},t.prototype.getTooltipAxes=function(e){var r=[],i=[];return b(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);ee(r,a)<0&&r.push(a),ee(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},t.create=function(e,r){var i=[];return e.eachComponent("grid",function(n,a){var o=new t(n,e,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o),b(o._axesList,function(s){wb(s,t.dimIdxMap)})}),e.eachSeries(function(n){var a,o;dx({targetModel:n,coordSysType:Ro,coordSysProvider:s});function s(){var l=D1(n),u=l.xAxisModel,f=l.yAxisModel;a=u.axis,o=f.axis;var c=u.getCoordSysModel(),p=c.coordinateSystem;return p.getCartesian(u.componentIndex,f.componentIndex)}a&&o&&($d(a,n,Ro),$d(o,n,Ro))},this),i},t.dimensions=yl,t.dimIdxMap=tl(yl),t})();function vR(t,e){return t.getCoordSysModel()===e}function z1(t,e,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)F1(s,n[l])&&(a=n[l]);else for(var u in n)if(Me(n,u)&&F1(s,n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(c){return c.dim+"_"+c.index}}function F1(t,e){if(!e)return!1;var r=e.scale,i=sb(r,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==mc;return n&&t==="auto"&&ub(e)&&(n=!1),n}function V1(t){for(var e=se(t),r,i=[],n=e.length-1;n>=0;n--){var a=t[+e[n]];lc(a.scale)&&Kd(a.model,a.type,!0)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?i.push(a):r=a)}r||(r=i.pop()),r&&b(i,function(o){o.__alignTo=r})}function dR(t,e){return qn(t.scale)||qn(e.scale)||e.scale.getTicks().length<2}function mR(t,e){var r=t.getExtent(),i=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(n){return n+e}:function(n){return i-n+e},t.toLocalCoord=t.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function Mm(t,e){b(t.x,function(r){return H1(r,e.x,e.width)}),b(t.y,function(r){return H1(r,e.y,e.height)})}function H1(t,e,r){var i=[0,r],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),mR(t,e)}var G1;function Y1(t,e,r,i,n,a,o){W1(i,n,Rt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=tp(s,function(p){return p>0})==null;return ja(i,s,!0,!0,r),Mm(n,i),l;function u(p){b(n[oi[p]],function(h){if(ua(h.model)){var v=a.ensureRecord(h.model),d=v.labelInfoList;if(d)for(var g=0;g<d.length;g++){var m=d[g],y=h.scale.normalize(vi(h.scale,Ki(m.label).labelInfo.tick));y=p===1?1-y:y,f(m.rect,p,y),f(m.rect,1-p,NaN)}var _=v.nameLayout;if(_){var y=Yi(v.nameLocation)?.5:NaN;f(_.rect,p,y),f(_.rect,1-p,NaN)}}})}function f(p,h,v){var d=t[oi[h]]-p[oi[h]],g=p[Vn[h]]+p[oi[h]]-(t[Vn[h]]+t[oi[h]]);d=c(d,1-v),g=c(g,v);var m=U1[h][0],y=U1[h][1];s[m]=ve(s[m],d),s[y]=ve(s[y],g)}function c(p,h){return p>0&&!qr(h)&&h>1e-4&&(p/=h),p}}function gR(t,e,r,i,n){var a=new bm(_R);return b(r,function(o){return b(o,function(s){if(ua(s.model)){var l=!i;s.axisBuilder=A1(t,e,s.model,n,a,l)}})}),a}function W1(t,e,r,i,n,a){var o=r===Rt.determine;b(e,function(u){return b(u,function(f){ua(f.model)&&(M1(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[oi[1-u]]=t[Vn[u]]<=a.refContainer[Vn[u]]*.5?0:1-u===1?2:1}b(e,function(u,f){return b(u,function(c){ua(c.model)&&((i==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function yR(t,e,r){var i,n=t.get("outerBoundsMode",!0);n==="same"?i=e.clone():(n==null||n==="auto")&&(i=Gr(t.get("outerBounds",!0)||Dm,r.refContainer));var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"||ee(["all","axisLabel"],a)<0?o="all":o=a;var s=[fu(G(t.get("outerBoundsClampWidth",!0),gl[0]),e.width),fu(G(t.get("outerBoundsClampHeight",!0),gl[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var _R=function(t,e,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Cm(t,e,r,i,n,a),Yi(t.nameLocation)||b(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&wm(s.labelInfoList,s.dirVec,i,n)})},X1=hR;function q1(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xR(r,t,e),r.seriesInvolved&&TR(r,t),r}function xR(t,e,r){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=No(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",i);if(b(s.getAxes(),Te(d,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var p=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(p||h)&&b(v.baseAxes,Te(d,h?"cross":!0,p)),h&&b(v.otherAxes,Te(d,"cross",!1))}function d(g,m,y){var _=y.model.getModel("axisPointer",n),x=_.get("show");if(!(!x||x==="auto"&&!g&&!Lm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?SR(y,c,n,e,g,m):_;var S=_.get("snap"),T=_.get("triggerEmphasis"),C=No(y.model),D=m||S||y.type==="category",E=t.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:T,involveSeries:D,snap:S,useHandle:Lm(_),seriesModels:[],linkGroup:null};u[C]=E,t.seriesInvolved=t.seriesInvolved||D;var w=bR(a,y);if(w!=null){var A=o[w]||(o[w]={axesInfo:{}});A.axesInfo[C]=E,A.mapper=a[w].mapper,E.linkGroup=A}}}})}function SR(t,e,r,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};b(s,function(p){l[p]=j(o.get(p))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&J(u,c.textStyle)}}return t.model.getModel("axisPointer",new Se(l,r,i))}function TR(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||b(t.coordSysAxesInfo[No(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function bR(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(Om(a[i+"AxisId"],r.id)||Om(a[i+"AxisIndex"],r.componentIndex)||Om(a[i+"AxisName"],r.name))return n}}function Om(t,e){return t==="all"||R(t)&&ee(t,e)>=0||t===e}function Z1(t){var e=Bc(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Lm(r);a==null&&(n.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function Bc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[No(t)]}function K1(t){var e=Bc(t);return e&&e.axisPointerModel}function Lm(t){return!!t.get(["handle","show"])}function No(t){return t.type+"||"+t.id}var j1={},CR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&Z1(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=K1(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){j1[r]=i},e.getAxisPointerClass=function(r){return r&&j1[r]},e.type="axis",e})(je),Uc=CR;var Pm=re();function Q1(t,e,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Pm(t).splitAreaColors,p=H(),h=0;if(c)for(var v=0;v<u.length;v++){var d=c.get(u[v].tickValue);if(d!=null){h=(d+(f-1)*v)%f;break}}var g=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=R(s)?s:[s];for(var v=1;v<u.length;v++){var y=n.toGlobalCoord(u[v].coord),_=void 0,x=void 0,S=void 0,T=void 0;n.isHorizontal()?(_=g,x=l.y,S=y-_,T=l.height,g=_+S):(_=l.x,x=g,S=l.width,T=y-x,g=x+T);var C=u[v-1].tickValue;C!=null&&p.set(C,h),e.add(new _e({anid:C!=null?"area_"+C:null,shape:{x:_,y:x,width:S,height:T},style:J({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%f}Pm(t).splitAreaColors=p}}}function $1(t){Pm(t).splitAreaColors=null}var wR=["splitArea","splitLine","minorSplitLine","breakArea"],J1=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xe,this.group.add(this._axisGroup),!!ua(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(wR,function(l){r.get([l,"show"])&&ER[l](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||dv(o,this._axisGroup,r),t.prototype.render.call(this,r,i,n,a)}},e.prototype.remove=function(){$1(this)},e.type="cartesianAxis",e})(Uc),ER={splitLine:function(t,e,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=R(l)?l:[l];for(var c=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],m=s.getLineStyle(),y=0;y<v.length;y++){var _=a.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!f)){var x=v[y].tickValue;p?(d[0]=_,d[1]=c.y,g[0]=_,g[1]=c.y+c.height):(d[0]=c.x,d[1]=_,g[0]=c.x+c.width,g[1]=_);var S=h++%l.length,T=new Wt({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:J({stroke:l[S]},m),silent:!0});Hn(T.shape,m.lineWidth),e.add(T)}}}},minorSplitLine:function(t,e,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var c=[],p=[],h=s.getLineStyle(),v=0;v<f.length;v++)for(var d=0;d<f[v].length;d++){var g=a.toGlobalCoord(f[v][d].coord);u?(c[0]=g,c[1]=l.y,p[0]=g,p[1]=l.y+l.height):(c[0]=l.x,c[1]=g,p[0]=l.x+l.width,p[1]=g);var m=new Wt({anid:"minor_line_"+f[v][d].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:h,silent:!0});Hn(m.shape,h.lineWidth),e.add(m)}},splitArea:function(t,e,r,i,n){Q1(t,e,r,i)},breakArea:function(t,e,r,i,n){var a=ca(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(e,t,r,i.coordinateSystem.getRect(),n)}},Rm=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(J1);var eC=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Rm.type,r}return e.type="yAxis",e})(J1);var DR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new _e({shape:r.coordinateSystem.getRect(),style:J({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(je),tC={offset:0};function rC(t){t.registerComponentView(DR),t.registerComponentModel(O1),t.registerCoordinateSystem("cartesian2d",X1),kc(t,"x",Nc,tC),kc(t,"y",Nc,tC),t.registerComponentView(Rm),t.registerComponentView(eC),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var ha=re(),iC=j,Nm=fe,AR=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new xe,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Te(nC,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}oC(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get("animation"),n=e.axis,a=n.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&fa(n).w>s)return!0;if(o){var l=Bc(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=ha(e).pointerEl=new ot[a.type](iC(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=ha(e).labelEl=new Ee(iC(r.label));e.add(a),aC(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=ha(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=ha(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),aC(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Gn(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Rl(u.event)},onmousedown:Nm(this._onHandleDragMove,this,0,0),drift:Nm(this._onHandleDragMove,this),ondragend:Nm(this._onHandleDragEnd,this)}),i.add(n)),oC(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");R(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,If(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){nC(this._axisPointerModel,!r&&this._moveAnimation,this._handle,km(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(km(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(km(n)),ha(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Xs(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function nC(t,e,r,i){sC(ha(r).lastProp,i)||(ha(r).lastProp=i,e?ct(r,i,t):(r.stopAnimation(),r.attr(i)))}function sC(t,e){if(z(t)&&z(e)){var r=!0;return b(e,function(i,n){r=r&&sC(t[n],i)}),!!r}else return t===e}function aC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function km(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function oC(t,e,r){var i=e.get("z"),n=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var lC=AR;function uC(t){var e=t.get("type"),r=t.getModel(e+"Style"),i;return e==="line"?(i=r.getLineStyle(),i.fill=null):e==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function MR(t,e,r,i,n){var a=r.get("value"),o=Bm(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Hr(s.get("padding")||0),u=s.getFont(),f=tu(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v==="right"&&(c[0]-=p),v==="center"&&(c[0]-=p/2);var d=n.verticalAlign;d==="bottom"&&(c[1]-=h),d==="middle"&&(c[1]-=h/2),OR(c,p,h,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:wr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function OR(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Bm(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Lo(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),N(o)?a=o.replace("{value}",a):V(o)&&(a=o(s))}return a}function Um(t,e,r){var i=it();return an(i,i,r.rotation),_a(i,i,r.position),Hu([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function fC(t,e,r,i,n,a){var o=Rc.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),MR(e,i,n,a,{position:Um(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function cC(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function pC(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function hC(t,e,r){return fa(t,{fromStat:{sers:B(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function vC(t,e,r){return[ve(Ge(e[0],e[1]),t-r/2),Ge(t+r/2,ve(e[0],e[1]))]}var LR=(function(t){I(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=s.getGlobalExtent(),c=mC(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=uC(a),v=IR[u](s,p,f,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}var d=ml(l.getRect(),n);fC(i,r,d,n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=ml(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Um(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mC(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=Ge(l[1],c[f]),c[f]=ve(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[f]}},e})(lC);function mC(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var IR={line:function(t,e,r,i){var n=cC([e,i[0]],[e,i[1]],gC(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r,i,n,a){var o=hC(t,n,a),s=i[1]-i[0],l=vC(e,r,o),u=l[0],f=l[1];return{type:"Rect",shape:pC([u,i[0]],[f-u,s],gC(t))}}};function gC(t){return t.dim==="x"?0:1}var yC=LR;var PR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Z.color.border,width:1,type:"dashed"},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.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:Z.color.accent40,throttle:40}},e})(me),_C=PR;var gi=re(),RR=b;function zc(t,e,r){if(!Q.node){var i=e.getZr();gi(i).records||(gi(i).records={}),NR(i,e);var n=gi(i).records[t]||(gi(i).records[t]={});n.handler=r}}function NR(t,e){if(gi(t).initialized)return;gi(t).initialized=!0,r("click",Te(zm,"click")),r("mousemove",Te(zm,"mousemove")),r("mousewheel",Te(zm,"mousewheel")),r("globalout",BR);function r(i,n){t.on(i,function(a){var o=UR(e);RR(gi(t).records,function(s){s&&n(s,a,o.dispatchAction)}),kR(o.pendings,e)})}}function kR(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function BR(t,e,r){t.handler("leave",null,r)}function zm(t,e,r,i){e.handler(t,r,i)}function UR(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function _l(t,e){if(!Q.node){var r=e.getZr(),i=(gi(r).records||{})[t];i&&(gi(r).records[t]=null)}}var zR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";zc("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,i){_l("axisPointer",i)},e.prototype.dispose=function(r,i){_l("axisPointer",i)},e.type="axisPointer",e})(je),SC=zR;function xl(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=or(a,t);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,p=u.dim,h=c==="x"||c==="radius"?1:0,v=a.mapDimension(p),d=[];d[h]=a.get(v,o),d[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(d)||[]}else r=l.dataToPoint(a.getValues(B(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var TC=re();function Fm(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||fe(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Fc(n)&&(n=xl({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Fc(n),u=a.axesInfo,f=s.axesInfo,c=i==="leave"||Fc(n),p={},h={},v={list:[],map:{}},d={showPointer:Te(VR,h),showTooltip:Te(HR,v)};b(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);b(s.coordSysAxesInfo[y],function(x,S){var T=x.axis,C=XR(u,x);if(!c&&_&&(!u||C)){var D=C&&C.value;D==null&&!l&&(D=T.pointToData(n)),D!=null&&bC(x,D,d,!1,p)}})});var g={};return b(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&b(_.axesInfo,function(x,S){var T=h[S];if(x!==m&&T){var C=T.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,CC(x),CC(m)))),g[m.key]=C}})}),b(g,function(m,y){bC(f[y],m,d,!0,p)}),GR(h,f,p),YR(v,n,t,o),WR(f,o,r),p}}function bC(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=FR(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&P(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function FR(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return b(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type==="category"?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(ut(c)){var v=t-c,d=Math.abs(v);d<=o&&((d<o||v>=0&&s<0)&&(o=d,s=v,n=c,a.length=0),b(p,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function VR(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function HR(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=No(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function GR(t,e,r){var i=r.axesInfo=[];b(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function YR(t,e,r,i){if(Fc(e)||!t.list.length){i({type:"hideTip"});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function WR(t,e,r){var i=r.getZr(),n="axisPointerLastHighlights",a=TC(i)[n]||{},o=TC(i)[n]={};b(t,function(f,c){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&b(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,c){!o[c]&&l.push(u(f))}),b(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function XR(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function CC(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=e.componentIndex,r.axisName=r[i+"AxisName"]=e.name,r.axisId=r[i+"AxisId"]=e.id,r}function Fc(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Vc(t){Uc.registerAxisPointerClass("CartesianAxisPointer",yC),t.registerComponentModel(_C),t.registerComponentView(SC),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!R(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=q1(e,r)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Fm)}function Vm(t){Et(rC),Et(Vc)}function wC(t,e){var r=Hr(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new _e({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var qR=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.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:Z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},e})(me),EC=qR;function Hc(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function DC(t){if(Q.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var Hm=DC(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),AC=DC(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Gm(t,e){if(!t)return e;e=ao(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function MC(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var ZR=Gm(AC,"transition"),Ym=Gm(Hm,"transform"),KR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Q.transform3dSupported?"will-change:transform;":"");function jR(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function QR(t,e,r){if(!N(r)||r==="inside")return"";var i=t.get("backgroundColor"),n=t.get("borderWidth");e=Er(e);var a=jR(r),o=Math.max(Math.round(n)*1.5,6),s="",l=Ym+":",u;ee(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function $R(t,e,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+t/2+"s "+i,a="opacity"+n+",visibility"+n),e||(n=" "+t+"s "+i,a+=(a.length?",":"")+(Q.transformSupported?""+Ym+n:",left"+n+",top"+n)),ZR+":"+a}function OC(t,e,r){var i=t.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Q.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=Q.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+Ym+":"+o+";":[["top",0],["left",0],[Hm,o]]}function JR(t){var e=[],r=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var n=G(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+n+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),b(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function eN(t,e,r,i){var n=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=Df(t,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&a>0&&n.push($R(a,r,i)),o&&n.push("background-color:"+o),b(["width","color","radius"],function(v){var d="border-"+v,g=ao(d),m=t.get(g);m!=null&&n.push(d+":"+m+(v==="color"?"":"px"))}),n.push(JR(c)),p!=null&&n.push("padding:"+Hr(p).join("px ")+"px"),n.join(";")+";"}function LC(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&dg(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var tN=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Q.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(N(a)?document.querySelector(a):$i(a)?a:V(a)&&a(e.getDom()));LC(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;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=n.handler,f=n.painter.getViewportRoot();Dt(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=MC(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=KR+eN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+OC(a[0],a[1],!0)+("border-color:"+Er(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(N(a)&&i.get("trigger")==="item"&&!Hc(i)&&(s=QR(i,n,a)),N(e))o.innerHTML=e+s;else if(e){o.innerHTML="",R(e)||(e=[e]);for(var l=0;l<e.length;l++)$i(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(LC(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=OC(i[0],i[1]);b(a,function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",Q.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;mg(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})(),IC=tN;var rN=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),RC(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;z(e)&&Je(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Ee({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Df(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),b(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=PC(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;RC(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=ji(a.borderWidth||0),s=PC(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(fe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function ji(t){return Math.max(0,t)}function PC(t){var e=ji(t.shadowBlur||0),r=ji(t.shadowOffsetX||0),i=ji(t.shadowOffsetY||0);return{left:ji(e-r),right:ji(e+r),top:ji(e-i),bottom:ji(e+i)}}function RC(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var NC=rN;var iN=new _e({shape:{x:-1,y:-1,width:2,height:2}}),nN=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(Q.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=Vy(n.get("renderMode"));this._tooltipContent=a==="richText"?new NC(i):new IC(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(r,i,n){if(!(Q.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?If(this,"_updatePosition",50,"fixRate"):Xs(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");zc("itemTooltip",this._api,fe(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||Q.node||!n.getDom())){var o=kC(a,n);this._ticket="";var s=a.dataByCoordSys,l=lN(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=iN;f.x=a.x,f.y=a.y,f.update(),de(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=xl(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(kC(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),c=Sl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=de(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ra(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(de(f).dataIndex!=null?l=f:de(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=fe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Sl([i.tooltipOption],a),l=this._renderMode,u=[],f=ta("section",{blocks:[],noHeader:!0}),c=[],p=new Af;b(r,function(y){b(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,T=x.axis,C=T.scale.parse(S);if(!(!x||S==null)){var D=Bm(S,T,n,_.seriesDataIndices,_.valueLabelOpt),E=ta("section",{header:D,noHeader:!$e(D),sortBlocks:!0,blocks:[]});f.blocks.push(E),b(_.seriesDataIndices,function(w){var A=n.getSeriesByIndex(w.seriesIndex),O=w.dataIndexInside,M=A.getDataParams(O);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Lo(x.axis,{value:C}),M.axisValueLabel=D,M.marker=p.makeTooltipMarker("item",Er(M.color),l);var L=ed(A.formatTooltip(O,!0,null)),U=L.frag;if(U){var k=Sl([A],a).get("valueFormatter");E.blocks.push(k?P({valueFormatter:k},U):U)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,v=s.get("order"),d=od(f,p,l,v,n.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var g=l==="richText"?`
|
|
16
|
+
|
|
17
|
+
`:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=de(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,d=Sl([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new Af;m.marker=y.makeTooltipMarker("item",Er(m.color),h);var _=ed(u.formatTooltip(f,!1,c)),x=d.get("order"),S=d.get("valueFormatter"),T=_.frag,C=T?od(S?P({valueFormatter:S},T):T,y,h,x,a.get("useUTC"),d.get("textStyle")):_.text,D="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,C,m,D,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=de(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(N(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=j(l),l.content=qe(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=Sl(c,this._tooltipModel,h?{position:h}:null),d=v.get("content"),g=Math.random()+"",m=new Af;this._showOrMove(v,function(){var y=j(v.get("formatterParams")||{});this._showTooltipContent(v,d,y,g,r.offsetX,r.offsetY,r.position,i,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var p=r.get("formatter");l=l||r.get("position");var h=i,v=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),d=v.color;if(p)if(N(p)){var g=r.ecModel.get("useUTC"),m=R(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=p,y&&(h=si(m.axisValue,h,g)),h=oo(h,n,!0)}else if(V(p)){var _=fe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,d,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,d,l),c.show(r,d),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||R(i))return{color:a||o};if(!R(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var c=o.getSize(),p=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),V(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),R(i))n=yt(i[0],u),a=yt(i[1],f);else if(z(i)){var d=i;d.width=c[0],d.height=c[1];var g=Gr(d,{width:u,height:f});n=g.x,a=g.y,p=null,h=null}else if(N(i)&&l){var m=sN(i,v,c,r.get("borderWidth"));n=m[0],a=m[1]}else{var m=aN(n,a,o,u,f,p?null:20,h?null:20);n=m[0],a=m[1]}if(p&&(n-=BC(p)?c[0]/2:p==="right"?c[0]:0),h&&(a-=BC(h)?c[1]/2:h==="bottom"?c[1]:0),Hc(r)){var m=oN(n,a,o,u,f);n=m[0],a=m[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&b(u,function(p,h){var v=c[h]||{},d=p.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&d.length===g.length,o&&b(d,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&b(p.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,i){Q.node||!i.getDom()||(Xs(this,"_updatePosition"),this._tooltipContent.dispose(),_l("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(je);function Sl(t,e,r){var i=e.ecModel,n;r?(n=new Se(r,i,i),n=new Se(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Se&&(o=o.get("tooltip",!0)),N(o)&&(o={formatter:o}),o&&(n=new Se(o,n,i)))}return n}function kC(t,e){return t.dispatchAction||fe(e.dispatchAction,e)}function aN(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function oN(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function sN(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function BC(t){return t==="center"||t==="middle"}function lN(t,e,r){var i=cs(t).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Mi(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=de(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var UC=nN;function Wm(t){Et(Vc),t.registerComponentModel(EC),t.registerComponentView(UC),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Le),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Le)}var uN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},fN=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),this._updateSelector(r)},e.prototype._updateSelector=function(r){var i=r.selector,n=this.ecModel;i===!0&&(i=r.selector=["all","inverse"]),R(i)&&b(i,function(a,o){N(a)&&(a={type:a}),i[o]=oe(a,uN(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<r.length;n++){var a=r[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var i=[],n=[];r.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,p=c.getAllNames();r.isSeriesFiltered(l)||(n=n.concat(p)),p.length?i=i.concat(p):f=!0}else f=!0;f&&ka(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=H(),s=B(a,function(l){return(N(l)||le(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Se(l,this,this.ecModel))},this);this._data=we(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;b(a,function(o){i[o.get("name")]=!1})}i[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var i=this.option.selected;i.hasOwnProperty(r)||(i[r]=!0),this[i[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,i=this.option.selected;b(r,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,i=this.option.selected;b(r,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},e.prototype.isSelected=function(r){var i=this.option.selected;return!(i.hasOwnProperty(r)&&!i[r])&&ee(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Z.size.m,align:"auto",backgroundColor:Z.color.transparent,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Z.color.disabled,inactiveBorderColor:Z.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:Z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Z.color.tertiary,borderWidth:1,borderColor:Z.color.border},emphasis:{selectorLabel:{show:!0,color:Z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(me),Tl=fN;var ko=Te,Xm=b,Gc=xe,cN=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new Gc),this.group.add(this._selectorGroup=new Gc),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,i,n,l,s,u);var f=mf(r,n).refContainer,c=r.getBoxLayoutParams(),p=r.get("padding"),h=Gr(c,f,p),v=this.layoutInner(r,o,h,a,l,u),d=Gr(J({width:v.width,height:v.height},c),f,p);this.group.x=d.x-v.x,this.group.y=d.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wC(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this.getContentGroup(),f=H(),c=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),Xm(i.getData(),function(v,d){var g=this,m=v.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
18
|
+
`)){var y=new Gc;y.newline=!0,u.add(y);return}var _=n.getSeriesByName(m)[0];if(!f.get(m))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},T=x.getVisual("legendIcon"),C=x.getVisual("style"),D=this._createItem(_,m,d,v,i,r,S,C,T,c,a);D.on("click",ko(zC,m,null,a,h)).on("mouseover",ko(qm,_.name,null,a,h)).on("mouseout",ko(Zm,_.name,null,a,h)),n.ssr&&D.eachChild(function(E){var w=de(E);w.seriesIndex=_.seriesIndex,w.dataIndex=d,w.ssrType="legend"}),p&&D.eachChild(function(E){g.packEventData(E,i,_,d,m)}),f.set(m,!0)}else n.eachRawSeries(function(E){var w=this;if(!f.get(m)&&E.legendVisualProvider){var A=E.legendVisualProvider;if(!A.containName(m))return;var O=A.indexOfName(m),M=A.getItemVisual(O,"style"),L=A.getItemVisual(O,"legendIcon"),U=lt(M.fill);U&&U[3]===0&&(U[3]=.2,M=P(P({},M),{fill:Ir(U,"rgba")}));var k=this._createItem(E,m,d,v,i,r,{},M,L,c,a);k.on("click",ko(zC,null,m,a,h)).on("mouseover",ko(qm,null,m,a,h)).on("mouseout",ko(Zm,null,m,a,h)),n.ssr&&k.eachChild(function(Y){var X=de(Y);X.seriesIndex=E.seriesIndex,X.dataIndex=d,X.ssrType="legend"}),p&&k.eachChild(function(Y){w.packEventData(Y,i,E,d,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(r,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};de(r).eventData=s},e.prototype._createSelector=function(r,i,n,a,o){var s=this.getSelectorGroup();Xm(r,function(u){var f=u.type,c=new Ee({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);Ja(c,{normal:p,emphasis:h},{defaultText:u.title}),Ga(c)})},e.prototype._createItem=function(r,i,n,a,o,s,l,u,f,c,p){var h=r.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(i),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=pN(f,a,l,u,h,g,p),S=new Gc,T=a.getModel("textStyle");if(V(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(hN({itemWidth:v,itemHeight:d,icon:f,iconRotate:C,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var D=s==="left"?v+5:-5,E=s,w=o.get("formatter"),A=i;N(w)&&w?A=w.replace("{name}",i??""):V(w)&&(A=w(i));var O=g?T.getTextColor():a.get("inactiveColor");S.add(new Ee({style:wr(T,{text:A,x:D,y:d/2,fill:O,align:E,verticalAlign:"middle"},{inheritColor:O})}));var M=new _e({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Qa({el:M,componentModel:o,itemName:i,itemTooltipOption:L.option}),S.add(M),S.eachChild(function(U){U.silent=!0}),M.silent=!c,this.getContentGroup().add(S),Ga(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Kn(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Kn("horizontal",u,r.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=r.get("selectorButtonGap",!0),d=r.getOrient().index,g=d===0?"width":"height",m=d===0?"height":"width",y=d===0?"y":"x";s==="end"?h[d]+=f[g]+v:c[d]+=p[g]+v,h[1-d]+=f[m]/2-p[m]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+v+p[g],_[m]=Math.max(f[m],p[m]),_[y]=Math.min(0,p[y]+h[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(je);function pN(t,e,r,i,n,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Xm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:$s(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:r).opacity),s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=v==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function hN(t){var e=t.icon||"roundRect",r=jt(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=Z.color.neutral00,r.style.lineWidth=2),r}function zC(t,e,r,i){Zm(t,e,r,i),r.dispatchAction({type:"legendToggleSelect",name:t??e}),qm(t,e,r,i)}function qm(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Zm(t,e,r,i){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var Yc=cN;function bl(t,e,r){var i=t==="allSelect"||t==="inverseSelect",n={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){i?s[t]():s[t](e.name),FC(s,n),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){b(n,function(l,u){s[l?"select":"unSelect"](u)}),FC(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function FC(t,e){var r=e||{};return b(t.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
19
|
+
`||n==="")){var a=t.isSelected(n);Me(r,n)?r[n]=r[n]&&a:r[n]=a}}),r}function VC(t){t.registerAction("legendToggleSelect","legendselectchanged",Te(bl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Te(bl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Te(bl,"inverseSelect")),t.registerAction("legendSelect","legendselected",Te(bl,"select")),t.registerAction("legendUnSelect","legendunselected",Te(bl,"unSelect"))}var HC=Ua(vN);function vN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var i=0;i<e.length;i++)if(!e[i].isSelected(r.name))return!1;return!0})}function Wc(t){t.registerComponentModel(Tl),t.registerComponentView(Yc),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,HC),t.registerSubTypeDefaulter("legend",function(){return"plain"}),VC(t)}var dN=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,i,n){var a=Yr(r);t.prototype.init.call(this,r,i,n),GC(this,r,a)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),GC(this,this.option,r)},e.type="legend.scroll",e.defaultOption=J0(Tl.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:Z.color.accent50,pageIconInactiveColor:Z.color.accent10,pageIconSize:15,pageTextStyle:{color:Z.color.tertiary},animationDurationUpdate:800}),e})(Tl);function GC(t,e,r){var i=t.getOrient(),n=[1,1];n[i.index]=0,Zt(e,r,{type:"box",ignoreSize:!!n})}var YC=dN;var WC=xe,Km=["width","height"],jm=["x","y"],mN=(function(t){I(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new WC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WC)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,i,n,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,i,n,a,o,s,l);var f=this._controllerGroup,c=i.get("pageIconSize",!0),p=R(c)?c:[c,c];v("pagePrev",0);var h=i.getModel("pageTextStyle");f.add(new Ee({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(d,g){var m=d+"DataIndex",y=Gn(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:fe(u._pageGo,u,m,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(r,i,n,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Km[u],c=jm[u],p=Km[1-u],h=jm[1-u];o&&Kn("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],m=j(n);o&&(m[f]=n[f]-d[f]-v);var y=this._layoutContentAndController(r,a,m,u,f,p,h,c);if(o){if(s==="end")g[u]+=y[f]+v;else{var _=d[f]+v;g[u]-=_,y[c]-=_}y[f]+=d[f]+v,g[1-u]+=y[h]+y[p]/2-d[p]/2,y[p]=Math.max(y[p],d[p]),y[h]=Math.min(y[h],d[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,i,n,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;Kn(r.get("orient"),f,r.get("itemGap"),a?n.width:null,a?null:n.height),Kn("horizontal",p,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),v=p.getBoundingRect(),d=this._showController=h[o]>n[o],g=[-h.x,-h.y];i||(g[a]=f[u]);var m=[0,0],y=[-v.x,-v.y],_=G(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(d){var x=r.get("pageButtonPosition",!0);x==="end"?y[a]+=n[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),p.setPosition(y);var S={x:0,y:0};if(S[o]=d?n[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),c.__rectSize=n[o],d){var T={x:0,y:0};T[o]=Math.max(n[o]-v[o]-_,0),T[s]=S[s],c.setClipPath(new _e({shape:T})),c.__rectSize=T[o]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(r);return C.pageIndex!=null&&ct(f,{x:C.contentPosition[0],y:C.contentPosition[1]},d?r:null),this._updatePageInfoView(r,C),S},e.prototype._pageGo=function(r,i,n){var a=this._getPageInfo(i)[r];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(r,i){var n=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",p=i[c]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",p?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default")});var a=n.childOfName("pageText"),o=r.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",N(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Km[o],l=jm[o],u=this._findTargetItemIndex(i),f=n.children(),c=f[u],p=f.length,h=p?1:0,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var d=x(c);v.contentPosition[o]=-d.s;for(var g=u+1,m=d,y=d,_=null;g<=p;++g)_=x(f[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=d,y=d,_=null;g>=-1;--g)_=x(f[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function x(T){if(T){var C=T.getBoundingRect(),D=C[l]+T[l];return{s:D,e:D+C[s],i:T.__legendDataIndex}}}function S(T,C){return T.e>=C&&T.s<=C+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(i=s)}),i??a},e.type="legend.scroll",e})(Yc),XC=mN;function Qm(t){t.registerAction("legendScroll","legendscroll",function(e,r){var i=e.scrollDataIndex;i!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function qC(t){Et(Wc),t.registerComponentModel(YC),t.registerComponentView(XC),Qm(t)}function $m(t){Et(Wc),Et(qC)}function ZC(t,e,r){var i=Oe.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=n*r,i.height=a*r,i}function Xc(t){return!t.__cursors.get(iv)}function KC(t){var e=t.__cursors.get(iv);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var gN=(function(t){I(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=qa,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||mn,typeof r=="string"?o=ZC(r,i,n):z(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Fo(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=KC(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=ZC("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new q(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new q(0,0,0,0);S.copy(x),o.push(S)}else{for(var T=!1,C=1/0,D=0,E=0;E<o.length;++E){var w=o[E];if(w.intersect(x)){var A=new q(0,0,0,0);A.copy(w),A.union(x),o[E]=A,T=!0;break}else if(l){u.copy(x),u.union(w);var O=x.width*x.height,M=w.width*w.height,L=u.width*u.height,U=L-O-M;U<C&&(C=U,D=E)}}if(l&&(o[D].union(x),T=!0),!T){var S=new q(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=KC(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),d=h.__isRendered&&(h.__dirty&Ve||!v)?h.getPrevPaintRect():null;d&&f(d);var g=v&&(h.__dirty&Ve||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var m=this.__prevIdx,p=m.startIdx;p<m.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var d=h.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(d,g,m,y){if(o.clearRect(d,g,m,y),i&&i!=="transparent"){var _=void 0;if(Xr(i)){var x=i.global||i.__width===m&&i.__height===y;_=x&&i.__canvasGradient||js(o,i,{x:0,y:0,width:m,height:y}),i.__canvasGradient=_,i.__width=m,i.__height=y}else rp(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=Ff(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,g,m,y),o.restore())}!n||u?v(0,0,s,l):n.length&&b(n,function(d){v(d.x*c,d.y*c,d.width*c,d.height*c)})},e})(rt),Jm=gN;var jC=1e5,va=314159,eg=void 0,yN=1,tg=2;function _N(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function xN(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}function QC(t,e,r,i){var n=new Jm(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,$C(n),n}function $C(t){t.__cursorStack=[],t.__cursors=H()}function SN(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function TN(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,SN({key:i})))}function qc(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function rg(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function dt(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&Cl)||s.__builtin__)&&(!(r&ig)||!s.__builtin__)&&(!(r&JC)||s!==t.hoverlayer))&&e(s,a,o,n)}}var Cl=1,ig=2,JC=4,Zc=Cl|JC,bN=(function(){function t(e,r,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=P({},i||{}),this.dpr=i.devicePixelRatio||mn,this._singleCanvas=a,this.root=e;var o=e.style;if(o&&(Fo(e),e.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=QC(l,this,va,qa);c.initContext(),this._insertLayer(c,va,qa,!0),this._domRoot=e}else{this._width=Qs(e,0,i),this._height=Qs(e,1,i);var s=this._domRoot=xN(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!z(e)?r={paintAll:!!e}:r=e||{};var i=G(r.refresh,!0),n=G(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=tg),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return dt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},ig),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=eg,i!==eg&&(!r&&i===tg&&(r=this._i.hoverlayer=this._ensureLayer(jC)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Vi(a,l,n),u&&(l.style=f)}}a&&(na(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(jC)},t.prototype.paintOne=function(e,r){yo(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)dt(this._i,function(o){o.afterBrush&&o.afterBrush()},Zc),this._paintHoverList(e);else{var a=this;Zo(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(va).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),dt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},Cl)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return dt(this._i,function(a){var o=!1;if(qc(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Xc(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}qc(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},Zc),Q.wxa&&dt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Xc(e),u=l&&Oe.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=tg),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(Vi(s,h,o),h.setPrevPaintRect(v))}else Vi(s,h,o);if(l){var d=Oe.getTime()-u;if(d>15){p++;break}}}}na(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=va,r=0);var a=rg(this._i,e)[r];return a||(a=QC("zr_"+e+"."+r,this,e,r),this._layerConfig[e]&&oe(a,this._layerConfig[e],!0),(i||n&&e!==va)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&_N(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=rg(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),rg(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return dt(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return dt(this._i,function(i,n){e.call(r,i,n)},Cl)},t.prototype.eachOtherLayer=function(e,r){return dt(this._i,function(i,n){e.call(r,i,n)},ig)},t.prototype.getLayers=function(){var e={};return dt(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}dt(i._i,function(g){g.__dirty=!1,qc(g,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},Zc);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=I0):v=u?L0:qa,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){Ji("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=TN(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Ve&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}dt(i._i,function(g){for(var m=g.__cursorStack,y=g.__cursors,_=m.length-1;_>=0;_--){var x=y.get(m[_]);if(!x.used)g.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var S=x.endIdxNew;(Xc(g)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(g.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}g.__dirty&&(qc(g,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===eg&&(i._hoverLayerDirty=yN))},Zc)},t.prototype.clear=function(){return dt(this._i,function(e){e.clear(),$C(e)},Cl),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,dt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?oe(i[e],r,!0):i[e]=r,dt(this._i,function(n,a){oe(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Qs(a,0,n),r=Qs(a,1,n),i.style.display="",(this._width!==e||r!==this._height)&&(i.style.width=e+"px",i.style.height=r+"px",dt(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(va).resize(e,r)}return this},t.prototype.clearLayer=function(e){b(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[va][0].dom;var r=new Jm("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;dt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Vi(i,f,o)}na(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})(),ew=bN;function ng(t){t.registerPainter("canvas",ew)}Et([Sm,Vm,Wm,$m,ng]);globalThis.__DSHTU_ECHARTS__=dm;})();
|
|
20
|
+
|
|
21
|
+
window.__ModuleLoader__.load({ id: "dsh-token-use", factory: (require) => {
|
|
22
|
+
var module = { exports: {} };
|
|
23
|
+
var exports = module.exports;
|
|
24
|
+
var react = require("react");
|
|
25
|
+
var useEffect = react.useEffect;
|
|
26
|
+
var useState = react.useState;
|
|
27
|
+
var h = react.createElement;
|
|
28
|
+
|
|
29
|
+
var NS = "settings.tokenUsage";
|
|
30
|
+
var inject = ["slots", "locale"];
|
|
31
|
+
|
|
32
|
+
var zh = {
|
|
33
|
+
tab: "Token 用量",
|
|
34
|
+
totals: "总用量(历史重建 + 实时累计)",
|
|
35
|
+
total: "总计",
|
|
36
|
+
input: "输入",
|
|
37
|
+
output: "输出",
|
|
38
|
+
cacheRead: "缓存读",
|
|
39
|
+
cacheWrite: "缓存写",
|
|
40
|
+
reasoning: "推理",
|
|
41
|
+
calls: "调用次数",
|
|
42
|
+
byModel: "按模型",
|
|
43
|
+
byDay: "按日期",
|
|
44
|
+
byProject: "按项目",
|
|
45
|
+
trend: "用量趋势",
|
|
46
|
+
trendNote: "每条折线按自身峰值归一化;悬停查看当日明细",
|
|
47
|
+
trendEmpty: "当前范围不足两天数据,切换到「按月」或「全部」查看趋势",
|
|
48
|
+
peak: "峰值",
|
|
49
|
+
filterAll: "全部",
|
|
50
|
+
filterDay: "按天",
|
|
51
|
+
filterMonth: "按月",
|
|
52
|
+
filterLabel: "范围",
|
|
53
|
+
modelLabel: "模型",
|
|
54
|
+
modelAll: "全部模型",
|
|
55
|
+
unitLabel: "单位",
|
|
56
|
+
unitZh: "中文",
|
|
57
|
+
unitEn: "英文",
|
|
58
|
+
scanPending: "正在重建历史用量…",
|
|
59
|
+
scanDone: "已扫描 {sessions} 个会话 · {files} 个日志 · {ms} ms",
|
|
60
|
+
scanFailed: "历史重建失败:{error}",
|
|
61
|
+
updated: "更新于 {time}",
|
|
62
|
+
loading: "加载中…",
|
|
63
|
+
error: "读取失败",
|
|
64
|
+
remoteDenied: "接口仅允许本机访问;局域网使用需在插件配置中开启 allowRemote",
|
|
65
|
+
retry: "重试"
|
|
66
|
+
};
|
|
67
|
+
var en = {
|
|
68
|
+
tab: "Token usage",
|
|
69
|
+
totals: "Totals (history rebuild + live fold)",
|
|
70
|
+
total: "Total",
|
|
71
|
+
input: "Input",
|
|
72
|
+
output: "Output",
|
|
73
|
+
cacheRead: "Cache read",
|
|
74
|
+
cacheWrite: "Cache write",
|
|
75
|
+
reasoning: "Reasoning",
|
|
76
|
+
calls: "Calls",
|
|
77
|
+
byModel: "By model",
|
|
78
|
+
byDay: "By day",
|
|
79
|
+
byProject: "By project",
|
|
80
|
+
trend: "Usage trend",
|
|
81
|
+
trendNote: "Each line is normalized to its own peak; hover for daily detail",
|
|
82
|
+
trendEmpty: "Fewer than two days in range — switch to By month or All for a trend",
|
|
83
|
+
peak: "Peak",
|
|
84
|
+
filterAll: "All",
|
|
85
|
+
filterDay: "By day",
|
|
86
|
+
filterMonth: "By month",
|
|
87
|
+
filterLabel: "Range",
|
|
88
|
+
modelLabel: "Model",
|
|
89
|
+
modelAll: "All models",
|
|
90
|
+
unitLabel: "Unit",
|
|
91
|
+
unitZh: "中文",
|
|
92
|
+
unitEn: "English",
|
|
93
|
+
scanPending: "Rebuilding history…",
|
|
94
|
+
scanDone: "Scanned {sessions} sessions · {files} logs · {ms} ms",
|
|
95
|
+
scanFailed: "History rebuild failed: {error}",
|
|
96
|
+
updated: "Updated {time}",
|
|
97
|
+
loading: "Loading…",
|
|
98
|
+
error: "Failed to load",
|
|
99
|
+
remoteDenied: "Endpoint is loopback-only; enable allowRemote in the plugin config for LAN access",
|
|
100
|
+
retry: "Retry"
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
var css = ".dshtu_wrap{max-width:860px;display:flex;flex-direction:column;gap:14px;color:var(--dsw-alias-label-primary);font-size:13px}.dshtu_card{background:var(--dsw-alias-bg-layer-3);border-radius:14px;box-shadow:var(--dsw-elevation-stroke);padding:14px 16px}.dshtu_bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dshtu_bar label{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_bar select,.dshtu_bar input{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;padding:4px 8px;font-size:12.5px}.dshtu_bar select{width:168px;text-overflow:ellipsis;white-space:nowrap}.dshtu_field{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.dshtu_seg{display:inline-flex;border:.5px solid var(--dsw-alias-border-l4);border-radius:8px;overflow:hidden}.dshtu_seg button{border:0;background:0 0;color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;padding:4px 10px;font-size:12.5px}.dshtu_seg button[data-on=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.dshtu_totalsMeta{margin-top:12px}.dshtu_grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-top:8px}.dshtu_stat{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:10px 12px}.dshtu_stat b{display:block;font-size:16px;line-height:24px;font-variant-numeric:tabular-nums}.dshtu_stat span{color:var(--dsw-alias-label-tertiary);font-size:12px}.dshtu_stat[data-main=true]{background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 12%,var(--dsw-alias-bg-module-platform))}.dshtu_stat[data-main=true] b{color:var(--dsw-alias-state-business-primary);font-size:20px}.dshtu_table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.dshtu_table th,.dshtu_table td{text-align:right;padding:6px 8px;border-bottom:.5px solid var(--dsw-alias-border-l2);font-weight:400}.dshtu_table th:first-child,.dshtu_table td:first-child{text-align:left}.dshtu_table th{color:var(--dsw-alias-label-tertiary);font-size:12px;white-space:nowrap}.dshtu_table td:first-child{overflow-wrap:anywhere;max-width:300px;color:var(--dsw-alias-label-secondary)}.dshtu_meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.dshtu_err{color:var(--dsw-alias-state-error-primary);display:flex;align-items:center;gap:10px}.dshtu_err button{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;border-radius:6px;padding:4px 10px}.dshtu_chart{width:100%;height:260px}";
|
|
104
|
+
|
|
105
|
+
function trimNum(v, decimals) {
|
|
106
|
+
var f = v.toFixed(decimals);
|
|
107
|
+
if (f.indexOf(".") !== -1) f = f.replace(/0+$/, "").replace(/\.$/, "");
|
|
108
|
+
return f;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function fmtValue(v, unit) {
|
|
112
|
+
v = v || 0;
|
|
113
|
+
if (unit === "en") {
|
|
114
|
+
if (v >= 1e9) return trimNum(v / 1e9, 2) + "B";
|
|
115
|
+
if (v >= 1e6) return trimNum(v / 1e6, 2) + "M";
|
|
116
|
+
if (v >= 1e3) return trimNum(v / 1e3, 1) + "K";
|
|
117
|
+
return String(v);
|
|
118
|
+
}
|
|
119
|
+
if (v >= 1e8) return trimNum(v / 1e8, 2) + "亿";
|
|
120
|
+
if (v >= 1e4) return trimNum(v / 1e4, 1) + "万";
|
|
121
|
+
if (v >= 1e3) return trimNum(v / 1e3, 1) + "千";
|
|
122
|
+
return String(v);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
var fmtTime = function (ms) {
|
|
126
|
+
var d = new Date(ms);
|
|
127
|
+
var p = function (n) { return String(n).padStart(2, "0"); };
|
|
128
|
+
return d.getFullYear() + "-" + p(d.getMonth() + 1) + "-" + p(d.getDate()) + " " + p(d.getHours()) + ":" + p(d.getMinutes()) + ":" + p(d.getSeconds());
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var today = function () { return new Date().toISOString().slice(0, 10); };
|
|
132
|
+
var thisMonth = function () { return new Date().toISOString().slice(0, 7); };
|
|
133
|
+
|
|
134
|
+
function statBox(t, label, value, unit, main) {
|
|
135
|
+
return h("div", { className: "dshtu_stat", "data-main": main === true },
|
|
136
|
+
h("b", null, fmtValue(value, unit)),
|
|
137
|
+
h("span", null, label));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function basename(path) {
|
|
141
|
+
var text = String(path);
|
|
142
|
+
var idx = Math.max(text.lastIndexOf("/"), text.lastIndexOf("\\"));
|
|
143
|
+
return idx >= 0 ? (text.slice(idx + 1) || text) : text;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var BUCKET_KEYS = ["calls", "input", "output", "cacheRead", "cacheWrite", "reasoning", "total"];
|
|
147
|
+
|
|
148
|
+
/** Project tables read as directory names; same-named projects merge, full path rides the title. */
|
|
149
|
+
function shortenProjects(rows) {
|
|
150
|
+
var merged = {};
|
|
151
|
+
var titles = {};
|
|
152
|
+
Object.keys(rows || {}).forEach(function (key) {
|
|
153
|
+
var name = basename(key);
|
|
154
|
+
titles[name] = key;
|
|
155
|
+
var source = rows[key];
|
|
156
|
+
if (merged[name] === undefined) {
|
|
157
|
+
merged[name] = {};
|
|
158
|
+
BUCKET_KEYS.forEach(function (k) { merged[name][k] = source[k] || 0; });
|
|
159
|
+
} else {
|
|
160
|
+
BUCKET_KEYS.forEach(function (k) { merged[name][k] += source[k] || 0; });
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
return { rows: merged, titles: titles };
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function table(t, keyLabel, rows, unit, titles) {
|
|
167
|
+
var keys = Object.keys(rows || {});
|
|
168
|
+
if (keys.length === 0) return null;
|
|
169
|
+
return h("div", { className: "dshtu_card" },
|
|
170
|
+
h("table", { className: "dshtu_table" },
|
|
171
|
+
h("thead", null,
|
|
172
|
+
h("tr", null,
|
|
173
|
+
h("th", null, keyLabel),
|
|
174
|
+
h("th", null, t("total")),
|
|
175
|
+
h("th", null, t("input")),
|
|
176
|
+
h("th", null, t("output")),
|
|
177
|
+
h("th", null, t("cacheRead")),
|
|
178
|
+
h("th", null, t("reasoning")),
|
|
179
|
+
h("th", null, t("calls")))),
|
|
180
|
+
h("tbody", null, keys.map(function (key) {
|
|
181
|
+
var row = rows[key];
|
|
182
|
+
return h("tr", { key: key },
|
|
183
|
+
h("td", { title: titles !== undefined && titles[key] !== undefined ? titles[key] : undefined }, key),
|
|
184
|
+
h("td", null, fmtValue(row.total, unit)),
|
|
185
|
+
h("td", null, fmtValue(row.input, unit)),
|
|
186
|
+
h("td", null, fmtValue(row.output, unit)),
|
|
187
|
+
h("td", null, fmtValue(row.cacheRead, unit)),
|
|
188
|
+
h("td", null, fmtValue(row.reasoning, unit)),
|
|
189
|
+
h("td", null, fmtValue(row.calls, unit)));
|
|
190
|
+
}))));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
var CHART_SERIES = [
|
|
194
|
+
{ key: "total", label: "total", color: "#3b82f6", axis: 0, area: true },
|
|
195
|
+
{ key: "input", label: "input", color: "#10b981", axis: 0 },
|
|
196
|
+
{ key: "output", label: "output", color: "#f59e0b", axis: 0 },
|
|
197
|
+
{ key: "cacheRead", label: "cacheRead", color: "#8b5cf6", axis: 0 },
|
|
198
|
+
{ key: "calls", label: "calls", color: "#ef4444", axis: 1 }
|
|
199
|
+
];
|
|
200
|
+
|
|
201
|
+
function buildChartOption(t, unit, trend) {
|
|
202
|
+
var days = Object.keys(trend.days || {}).sort();
|
|
203
|
+
return {
|
|
204
|
+
animation: false,
|
|
205
|
+
grid: { left: 6, right: 6, top: 34, bottom: 4, containLabel: true },
|
|
206
|
+
tooltip: {
|
|
207
|
+
trigger: "axis",
|
|
208
|
+
valueFormatter: function (value) { return fmtValue(value, unit); }
|
|
209
|
+
},
|
|
210
|
+
legend: { top: 0, right: 0, icon: "roundRect", itemWidth: 9, itemHeight: 9, textStyle: { fontSize: 12 } },
|
|
211
|
+
xAxis: {
|
|
212
|
+
type: "category",
|
|
213
|
+
boundaryGap: false,
|
|
214
|
+
data: days.map(function (d) { return d.slice(5); }),
|
|
215
|
+
axisTick: { show: false }
|
|
216
|
+
},
|
|
217
|
+
yAxis: [
|
|
218
|
+
{ type: "value", axisLabel: { formatter: function (v) { return fmtValue(v, unit); } }, splitLine: { lineStyle: { opacity: 0.15 } } },
|
|
219
|
+
{ type: "value", axisLabel: { formatter: function (v) { return String(v); } }, splitLine: { show: false } }
|
|
220
|
+
],
|
|
221
|
+
series: CHART_SERIES.map(function (s) {
|
|
222
|
+
return {
|
|
223
|
+
name: t(s.label),
|
|
224
|
+
type: "line",
|
|
225
|
+
yAxisIndex: s.axis,
|
|
226
|
+
smooth: 0.35,
|
|
227
|
+
symbol: "none",
|
|
228
|
+
showSymbol: false,
|
|
229
|
+
lineStyle: { width: 2, color: s.color },
|
|
230
|
+
itemStyle: { color: s.color },
|
|
231
|
+
emphasis: { focus: "series" },
|
|
232
|
+
areaStyle: s.area ? { opacity: 0.08, color: s.color } : undefined,
|
|
233
|
+
data: days.map(function (d) { return (trend.days[d] || {})[s.key] || 0; })
|
|
234
|
+
};
|
|
235
|
+
})
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function TrendChart(props) {
|
|
240
|
+
var t = props.t;
|
|
241
|
+
var unit = props.unit;
|
|
242
|
+
var trend = props.trend || { days: {} };
|
|
243
|
+
var holder = react.useRef(null);
|
|
244
|
+
var chart = react.useRef(null);
|
|
245
|
+
var days = Object.keys(trend.days || {}).length;
|
|
246
|
+
|
|
247
|
+
useEffect(function () {
|
|
248
|
+
var echarts = globalThis.__DSHTU_ECHARTS__;
|
|
249
|
+
if (!echarts || !holder.current || days < 2) return undefined;
|
|
250
|
+
if (chart.current === null) chart.current = echarts.init(holder.current, null, { renderer: "canvas" });
|
|
251
|
+
chart.current.setOption(buildChartOption(t, unit, trend), true);
|
|
252
|
+
var onResize = function () { if (chart.current) chart.current.resize(); };
|
|
253
|
+
window.addEventListener("resize", onResize);
|
|
254
|
+
return function () { window.removeEventListener("resize", onResize); };
|
|
255
|
+
}, [t, unit, trend, days]);
|
|
256
|
+
|
|
257
|
+
useEffect(function () {
|
|
258
|
+
return function () {
|
|
259
|
+
if (chart.current) {
|
|
260
|
+
chart.current.dispose();
|
|
261
|
+
chart.current = null;
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
}, []);
|
|
265
|
+
|
|
266
|
+
if (days < 2) {
|
|
267
|
+
return h("div", { className: "dshtu_card dshtu_meta" }, t("trendEmpty"));
|
|
268
|
+
}
|
|
269
|
+
return h("div", { className: "dshtu_card" },
|
|
270
|
+
h("div", { className: "dshtu_meta" }, t("trend") + " · " + trend.from + " ~ " + trend.to),
|
|
271
|
+
h("div", { className: "dshtu_chart", ref: holder }));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
function Tab(props) {
|
|
275
|
+
var t = props.t;
|
|
276
|
+
var _a = useState(null), data = _a[0], setData = _a[1];
|
|
277
|
+
var _b = useState(null), error = _b[0], setError = _b[1];
|
|
278
|
+
var _c = useState(0), tick = _c[0], setTick = _c[1];
|
|
279
|
+
var _d = useState("day"), mode = _d[0], setMode = _d[1];
|
|
280
|
+
var _e = useState(today()), day = _e[0], setDay = _e[1];
|
|
281
|
+
var _f = useState(thisMonth()), month = _f[0], setMonth = _f[1];
|
|
282
|
+
var _g = useState(""), model = _g[0], setModel = _g[1];
|
|
283
|
+
var _h = useState(function () {
|
|
284
|
+
try { return localStorage.getItem("dshtu.unit") === "en" ? "en" : "zh"; } catch (err) { return "zh"; }
|
|
285
|
+
}), unit = _h[0], setUnit = _h[1];
|
|
286
|
+
|
|
287
|
+
var parts = [];
|
|
288
|
+
if (mode === "day") parts.push("day=" + day);
|
|
289
|
+
if (mode === "month") parts.push("month=" + month);
|
|
290
|
+
if (model) parts.push("model=" + encodeURIComponent(model));
|
|
291
|
+
var query = parts.length > 0 ? "?" + parts.join("&") : "";
|
|
292
|
+
|
|
293
|
+
useEffect(function () {
|
|
294
|
+
var stopped = false;
|
|
295
|
+
var controller = null;
|
|
296
|
+
var load = function () {
|
|
297
|
+
if (controller) controller.abort();
|
|
298
|
+
controller = new AbortController();
|
|
299
|
+
fetch("/dsh-token-use" + query, { signal: controller.signal })
|
|
300
|
+
.then(function (res) {
|
|
301
|
+
if (res.status === 403) throw new Error(t("remoteDenied"));
|
|
302
|
+
if (!res.ok) throw new Error("http " + res.status);
|
|
303
|
+
return res.json();
|
|
304
|
+
})
|
|
305
|
+
.then(function (json) {
|
|
306
|
+
if (!stopped) { setData(json); setError(null); }
|
|
307
|
+
})
|
|
308
|
+
.catch(function (err) {
|
|
309
|
+
if (!stopped && err.name !== "AbortError") setError(String(err));
|
|
310
|
+
});
|
|
311
|
+
};
|
|
312
|
+
load();
|
|
313
|
+
var timer = setInterval(function () {
|
|
314
|
+
if (!document.hidden) load();
|
|
315
|
+
}, 5000);
|
|
316
|
+
var onVisible = function () { if (!document.hidden) load(); };
|
|
317
|
+
document.addEventListener("visibilitychange", onVisible);
|
|
318
|
+
return function () {
|
|
319
|
+
stopped = true;
|
|
320
|
+
clearInterval(timer);
|
|
321
|
+
document.removeEventListener("visibilitychange", onVisible);
|
|
322
|
+
if (controller) controller.abort();
|
|
323
|
+
};
|
|
324
|
+
}, [query, tick]);
|
|
325
|
+
|
|
326
|
+
useEffect(function () {
|
|
327
|
+
var el = document.getElementById("dshtu-style");
|
|
328
|
+
if (!el) {
|
|
329
|
+
el = document.createElement("style");
|
|
330
|
+
el.id = "dshtu-style";
|
|
331
|
+
el.textContent = css;
|
|
332
|
+
document.head.appendChild(el);
|
|
333
|
+
}
|
|
334
|
+
}, []);
|
|
335
|
+
|
|
336
|
+
var switchUnit = function (next) {
|
|
337
|
+
setUnit(next);
|
|
338
|
+
try { localStorage.setItem("dshtu.unit", next); } catch (err) {}
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
var seg = function (value, label) {
|
|
342
|
+
return h("button", { key: value, "data-on": unit === value, onClick: function () { switchUnit(value); } }, label);
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
var modeTab = function (value, label) {
|
|
346
|
+
return h("button", { key: value, "data-on": mode === value, onClick: function () { setMode(value); setTick(tick + 1); } }, label);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
if (error) {
|
|
350
|
+
return h("div", { className: "dshtu_wrap" },
|
|
351
|
+
h("div", { className: "dshtu_card dshtu_err" },
|
|
352
|
+
h("span", null, t("error") + ": " + error),
|
|
353
|
+
h("button", { onClick: function () { setError(null); setTick(tick + 1); } }, t("retry"))));
|
|
354
|
+
}
|
|
355
|
+
if (!data) {
|
|
356
|
+
return h("div", { className: "dshtu_wrap" },
|
|
357
|
+
h("div", { className: "dshtu_card dshtu_meta" }, t("loading")));
|
|
358
|
+
}
|
|
359
|
+
var totals = data.totals || {};
|
|
360
|
+
var models = (data.models && data.models.length > 0 ? data.models : Object.keys(data.byModel || {}));
|
|
361
|
+
var metaParts = [];
|
|
362
|
+
if (data.scan && data.scan.done) {
|
|
363
|
+
metaParts.push(t("scanDone").replace("{sessions}", data.scan.sessions).replace("{files}", data.scan.files).replace("{ms}", data.scan.ms));
|
|
364
|
+
} else if (data.scan && data.scan.error) {
|
|
365
|
+
metaParts.push(t("scanFailed").replace("{error}", data.scan.error));
|
|
366
|
+
} else {
|
|
367
|
+
metaParts.push(t("scanPending"));
|
|
368
|
+
}
|
|
369
|
+
metaParts.push(t("updated").replace("{time}", fmtTime(data.updatedAt)));
|
|
370
|
+
return h("div", { className: "dshtu_wrap" },
|
|
371
|
+
h("div", { className: "dshtu_card" },
|
|
372
|
+
h("div", { className: "dshtu_bar" },
|
|
373
|
+
h("label", null, t("filterLabel")),
|
|
374
|
+
h("span", { className: "dshtu_seg" },
|
|
375
|
+
modeTab("day", t("filterDay")),
|
|
376
|
+
modeTab("month", t("filterMonth")),
|
|
377
|
+
modeTab("all", t("filterAll"))),
|
|
378
|
+
mode === "day" ? h("input", { type: "date", value: day, onChange: function (e) { setDay(e.target.value); setTick(tick + 1); } }) : null,
|
|
379
|
+
mode === "month" ? h("input", { type: "month", value: month, onChange: function (e) { setMonth(e.target.value); setTick(tick + 1); } }) : null,
|
|
380
|
+
h("span", { className: "dshtu_field" },
|
|
381
|
+
h("label", null, t("modelLabel")),
|
|
382
|
+
h("select", { value: model, onChange: function (e) { setModel(e.target.value); setTick(tick + 1); } },
|
|
383
|
+
h("option", { value: "" }, t("modelAll")),
|
|
384
|
+
models.map(function (name) { return h("option", { key: name, value: name }, name); }))),
|
|
385
|
+
h("span", { style: { flex: "1" } }),
|
|
386
|
+
h("label", null, t("unitLabel")),
|
|
387
|
+
h("span", { className: "dshtu_seg" }, seg("zh", t("unitZh")), seg("en", t("unitEn")))),
|
|
388
|
+
h("div", { className: "dshtu_meta dshtu_totalsMeta" }, t("totals")),
|
|
389
|
+
h("div", { className: "dshtu_grid" },
|
|
390
|
+
statBox(t, t("total"), totals.total, unit, true),
|
|
391
|
+
statBox(t, t("input"), totals.input, unit),
|
|
392
|
+
statBox(t, t("output"), totals.output, unit),
|
|
393
|
+
statBox(t, t("cacheRead"), totals.cacheRead, unit),
|
|
394
|
+
statBox(t, t("cacheWrite"), totals.cacheWrite, unit),
|
|
395
|
+
statBox(t, t("reasoning"), totals.reasoning, unit),
|
|
396
|
+
statBox(t, t("calls"), totals.calls, unit))),
|
|
397
|
+
h(TrendChart, { t: t, unit: unit, trend: data.trend }),
|
|
398
|
+
table(t, t("byModel"), data.byModel, unit),
|
|
399
|
+
table(t, t("byDay"), data.byDay, unit),
|
|
400
|
+
(function () {
|
|
401
|
+
var projects = shortenProjects(data.byProject);
|
|
402
|
+
return table(t, t("byProject"), projects.rows, unit, projects.titles);
|
|
403
|
+
})(),
|
|
404
|
+
h("div", { className: "dshtu_meta" }, metaParts.join(" · ")));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
function apply(ctx) {
|
|
408
|
+
ctx.effect(function () {
|
|
409
|
+
ctx.locale.register(NS, { zh: zh, en: en });
|
|
410
|
+
}, "dsh-token-use: dictionaries");
|
|
411
|
+
var t = ctx.locale.bind(NS);
|
|
412
|
+
ctx.slots.inject("settings.section", function () {
|
|
413
|
+
return ctx.slots.register({
|
|
414
|
+
name: "settings.section",
|
|
415
|
+
id: "token-usage",
|
|
416
|
+
order: 90,
|
|
417
|
+
label: function () { return t("tab"); },
|
|
418
|
+
locale: NS,
|
|
419
|
+
inject: function () { return { t: t }; }
|
|
420
|
+
}, function (props) { return h(Tab, props); });
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
exports.NS = NS;
|
|
425
|
+
exports.apply = apply;
|
|
426
|
+
exports.inject = inject;
|
|
427
|
+
return module.exports;
|
|
428
|
+
} });
|