procweb-rust 0.1.2

A binary providing a web interface to monitor the resources used by a process on Linux.
1
"use strict";(self.webpackChunkprocweb_webui=self.webpackChunkprocweb_webui||[]).push([[386],{386:(eK,Ym,Ft)=>{Ft.r(Ym),Ft.d(Ym,{Axis:()=>lr,ChartView:()=>Et,ComponentModel:()=>_t,ComponentView:()=>Gt,List:()=>xe,Model:()=>Rt,PRIORITY:()=>Db,SeriesModel:()=>Nt,color:()=>ov,connect:()=>EV,dataTool:()=>GV,dependencies:()=>dV,disConnect:()=>Wb,disconnect:()=>kV,dispose:()=>OV,env:()=>bt,extendChartView:()=>cz,extendComponentModel:()=>fz,extendComponentView:()=>hz,extendSeriesModel:()=>vz,format:()=>vv,getCoordinateSystemDimensions:()=>VV,getInstanceByDom:()=>gd,getInstanceById:()=>NV,getMap:()=>zV,graphic:()=>hv,helper:()=>lv,init:()=>RV,innerDrawElementOnCanvas:()=>ed,matrix:()=>iv,number:()=>uv,parseGeoJSON:()=>Bd,parseGeoJson:()=>Bd,registerAction:()=>Dr,registerCoordinateSystem:()=>Zb,registerLayout:()=>Xb,registerLoading:()=>xd,registerLocale:()=>np,registerMap:()=>Kb,registerPostInit:()=>Ub,registerPostUpdate:()=>Yb,registerPreprocessor:()=>md,registerProcessor:()=>_d,registerTheme:()=>yd,registerTransform:()=>jb,registerUpdateLifecycle:()=>Nf,registerVisual:()=>Xa,setCanvasCreator:()=>BV,setPlatformAPI:()=>jm,throttle:()=>xf,time:()=>fv,use:()=>ct,util:()=>cv,vector:()=>nv,version:()=>pV,zrUtil:()=>av,zrender:()=>sv});var av={};Ft.r(av),Ft.d(av,{HashMap:()=>i0,RADIAN_TO_DEGREE:()=>Go,assert:()=>de,bind:()=>Y,clone:()=>et,concatArray:()=>Bo,createCanvas:()=>CP,createHashMap:()=>q,createObject:()=>zo,curry:()=>it,defaults:()=>Q,disableUserSelect:()=>xv,each:()=>A,eqNaN:()=>Ti,extend:()=>V,filter:()=>Lt,find:()=>t0,guid:()=>mv,hasOwn:()=>Z,indexOf:()=>ht,inherits:()=>_v,isArray:()=>z,isArrayLike:()=>fe,isBuiltInObject:()=>Sv,isDom:()=>wi,isFunction:()=>j,isGradientObject:()=>No,isImagePatternObject:()=>e0,isNumber:()=>wt,isObject:()=>J,isPrimitive:()=>Ci,isRegExp:()=>r0,isString:()=>U,isStringSafe:()=>Kl,isTypedArray:()=>Re,keys:()=>mt,logError:()=>Xl,map:()=>G,merge:()=>ot,mergeAll:()=>ql,mixin:()=>Zt,noop:()=>Xt,normalizeCssArray:()=>Ql,reduce:()=>qe,retrieve:()=>ee,retrieve2:()=>st,retrieve3:()=>Rr,setAsPrimitive:()=>Vo,slice:()=>jl,trim:()=>Ke});var nv={};Ft.r(nv),Ft.d(nv,{add:()=>wv,applyTransform:()=>se,clone:()=>Er,copy:()=>ge,create:()=>Ta,dist:()=>ta,distSquare:()=>Aa,distance:()=>tu,distanceSquare:()=>f0,div:()=>kP,dot:()=>OP,len:()=>Fo,lenSquare:()=>Tv,length:()=>PP,lengthSquare:()=>RP,lerp:()=>Wo,max:()=>ra,min:()=>ea,mul:()=>EP,negate:()=>NP,normalize:()=>vn,scale:()=>Ho,scaleAndAdd:()=>$l,set:()=>u0,sub:()=>Ca});var iv={};Ft.r(iv),Ft.d(iv,{clone:()=>y0,copy:()=>eu,create:()=>Ge,identity:()=>Uo,invert:()=>cn,mul:()=>kr,rotate:()=>Ma,scale:()=>ru,translate:()=>gr});var ov={};Ft.r(ov),Ft.d(ov,{fastLerp:()=>$o,fastMapToColor:()=>b2,lerp:()=>Uv,lift:()=>vu,lum:()=>es,mapToColor:()=>w2,modifyAlpha:()=>ts,modifyHSL:()=>Ii,parse:()=>Te,random:()=>T2,stringify:()=>mr,toHex:()=>x2});var sv={};Ft.r(sv),Ft.d(sv,{dispose:()=>iR,disposeAll:()=>oR,getInstance:()=>sR,init:()=>pc,registerPainter:()=>h_,version:()=>lR});var fn={};Ft.r(fn),Ft.d(fn,{Arc:()=>ff,BezierCurve:()=>zs,BoundingRect:()=>ut,Circle:()=>Tr,CompoundPath:()=>hf,Ellipse:()=>lf,Group:()=>rt,Image:()=>ue,IncrementalDisplayable:()=>Rx,Line:()=>ie,LinearGradient:()=>eo,OrientedBoundingRect:()=>pf,Path:()=>pt,Point:()=>lt,Polygon:()=>De,Polyline:()=>Le,RadialGradient:()=>Wp,Rect:()=>St,Ring:()=>Bs,Sector:()=>Me,Text:()=>xt,applyTransform:()=>Ar,clipPointsByRect:()=>Xp,clipRectByRect:()=>Vx,createIcon:()=>ao,extendPath:()=>kx,extendShape:()=>Ex,getShapeClass:()=>yf,getTransform:()=>Ua,groupTransition:()=>Fs,initProps:()=>zt,isElementRemoved:()=>Gi,lineLineIntersect:()=>Bx,linePolygonIntersect:()=>Hs,makeImage:()=>Yp,makePath:()=>Gs,mergePath:()=>Ye,registerShape:()=>or,removeElement:()=>za,removeElementWithFadeOut:()=>bs,resizePath:()=>Zp,setTooltipConfig:()=>no,subPixelOptimize:()=>mf,subPixelOptimizeLine:()=>ro,subPixelOptimizeRect:()=>fN,transformDirection:()=>_f,traverseElements:()=>Ya,updateProps:()=>Ct});var lv={};Ft.r(lv),Ft.d(lv,{createDimensions:()=>tB,createList:()=>WB,createScale:()=>YB,createSymbol:()=>Kt,createTextStyle:()=>XB,dataStack:()=>UB,enableHoverEmphasis:()=>Ba,getECData:()=>nt,getLayoutRect:()=>Jt,mixinAxisModelCommonMethods:()=>ZB});var uv={};Ft.r(uv),Ft.d(uv,{MAX_SAFE_INTEGER:()=>gc,asc:()=>We,getPercentWithPrecision:()=>fR,getPixelPrecision:()=>dc,getPrecision:()=>xr,getPrecisionSafe:()=>p_,isNumeric:()=>Sc,isRadianAroundZero:()=>us,linearMap:()=>It,nice:()=>mc,numericToNumber:()=>Vr,parseDate:()=>Ue,quantile:()=>Au,quantity:()=>g_,quantityExponent:()=>Cu,reformIntervals:()=>_c,remRadian:()=>yc,round:()=>Wt});var fv={};Ft.r(fv),Ft.d(fv,{format:()=>As,parse:()=>Ue});var hv={};Ft.r(hv),Ft.d(hv,{Arc:()=>ff,BezierCurve:()=>zs,BoundingRect:()=>ut,Circle:()=>Tr,CompoundPath:()=>hf,Ellipse:()=>lf,Group:()=>rt,Image:()=>ue,IncrementalDisplayable:()=>Rx,Line:()=>ie,LinearGradient:()=>eo,Polygon:()=>De,Polyline:()=>Le,RadialGradient:()=>Wp,Rect:()=>St,Ring:()=>Bs,Sector:()=>Me,Text:()=>xt,clipPointsByRect:()=>Xp,clipRectByRect:()=>Vx,createIcon:()=>ao,extendPath:()=>kx,extendShape:()=>Ex,getShapeClass:()=>yf,getTransform:()=>Ua,initProps:()=>zt,makeImage:()=>Yp,makePath:()=>Gs,mergePath:()=>Ye,registerShape:()=>or,resizePath:()=>Zp,updateProps:()=>Ct});var vv={};Ft.r(vv),Ft.d(vv,{addCommas:()=>fp,capitalFirst:()=>fk,encodeHTML:()=>we,formatTime:()=>uk,formatTpl:()=>pp,getTextRect:()=>$B,getTooltipMarker:()=>QS,normalizeCssArray:()=>Bn,toCamelCase:()=>hp,truncateText:()=>P_});var cv={};Ft.r(cv),Ft.d(cv,{bind:()=>Y,clone:()=>et,curry:()=>it,defaults:()=>Q,each:()=>A,extend:()=>V,filter:()=>Lt,indexOf:()=>ht,inherits:()=>_v,isArray:()=>z,isFunction:()=>j,isObject:()=>J,isString:()=>U,map:()=>G,merge:()=>ot,reduce:()=>qe});var pv=function(r,e){return(pv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])})(r,e)};function O(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}pv(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var cP=function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},hn=new function r(){this.browser=new cP,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"};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(hn.wxa=!0,hn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?hn.worker=!0:typeof navigator>"u"?(hn.node=!0,hn.svgSupported=!0):function dP(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}(navigator.userAgent,hn);const bt=hn;var r,e,Km="sans-serif",wa="12px "+Km,SP=function _P(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-20)/100;e[a]=n}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),dr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(t,a){if(!r){var n=dr.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||wa),r.measureText(t);t=t||"";var i=/(\d+)px/.exec(a=a||wa),o=i&&+i[1]||12,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=SP[t[l]];s+=null==u?o:u*o}return{width:s}},loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}};function jm(r){for(var e in dr)r[e]&&(dr[e]=r[e])}var Qm=qe(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Jm=qe(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),bi=Object.prototype.toString,Yl=Array.prototype,xP=Yl.forEach,bP=Yl.filter,gv=Yl.slice,wP=Yl.map,$m=function(){}.constructor,Zl=$m?$m.prototype:null,yv="__proto__",TP=2311;function mv(){return TP++}function Xl(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function et(r){if(null==r||"object"!=typeof r)return r;var e=r,t=bi.call(r);if("[object Array]"===t){if(!Ci(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=et(r[a])}}else if(Jm[t]){if(!Ci(r)){var i=r.constructor;if(i.from)e=i.from(r);else for(e=new i(r.length),a=0,n=r.length;a<n;a++)e[a]=r[a]}}else if(!Qm[t]&&!Ci(r)&&!wi(r))for(var o in e={},r)r.hasOwnProperty(o)&&o!==yv&&(e[o]=et(r[o]));return e}function ot(r,e,t){if(!J(e)||!J(r))return t?et(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==yv){var n=r[a],i=e[a];!J(i)||!J(n)||z(i)||z(n)||wi(i)||wi(n)||Sv(i)||Sv(n)||Ci(i)||Ci(n)?(t||!(a in r))&&(r[a]=et(e[a])):ot(n,i,t)}return r}function ql(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=ot(t,r[a],e);return t}function V(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==yv&&(r[t]=e[t]);return r}function Q(r,e,t){for(var a=mt(e),n=0;n<a.length;n++){var i=a[n];(t?null!=e[i]:null==r[i])&&(r[i]=e[i])}return r}var CP=dr.createCanvas;function ht(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function _v(r,e){var t=r.prototype;function a(){}for(var n in a.prototype=e.prototype,r.prototype=new a,t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function Zt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];"constructor"!==i&&(t?null!=e[i]:null==r[i])&&(r[i]=e[i])}else Q(r,e,t)}function fe(r){return!(!r||"string"==typeof r)&&"number"==typeof r.length}function A(r,e,t){if(r&&e)if(r.forEach&&r.forEach===xP)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function G(r,e,t){if(!r)return[];if(!e)return jl(r);if(r.map&&r.map===wP)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function qe(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function Lt(r,e,t){if(!r)return[];if(!e)return jl(r);if(r.filter&&r.filter===bP)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function t0(r,e,t){if(r&&e)for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}function mt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}var Y=Zl&&j(Zl.bind)?Zl.call.bind(Zl.bind):function AP(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(gv.call(arguments)))}};function it(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(gv.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):"[object Array]"===bi.call(r)}function j(r){return"function"==typeof r}function U(r){return"string"==typeof r}function Kl(r){return"[object String]"===bi.call(r)}function wt(r){return"number"==typeof r}function J(r){var e=typeof r;return"function"===e||!!r&&"object"===e}function Sv(r){return!!Qm[bi.call(r)]}function Re(r){return!!Jm[bi.call(r)]}function wi(r){return"object"==typeof r&&"number"==typeof r.nodeType&&"object"==typeof r.ownerDocument}function No(r){return null!=r.colorStops}function e0(r){return null!=r.image}function r0(r){return"[object RegExp]"===bi.call(r)}function Ti(r){return r!=r}function ee(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(null!=r[t])return r[t]}function st(r,e){return r??e}function Rr(r,e,t){return r??e??t}function jl(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return gv.apply(r,e)}function Ql(r){if("number"==typeof r)return[r,r,r,r];var e=r.length;return 2===e?[r[0],r[1],r[0],r[1]]:3===e?[r[0],r[1],r[2],r[1]]:r}function de(r,e){if(!r)throw new Error(e)}function Ke(r){return null==r?null:"function"==typeof r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var a0="__ec_primitive__";function Vo(r){r[a0]=!0}function Ci(r){return r[a0]}var MP=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return mt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r}(),n0="function"==typeof Map,i0=function(){function r(e){var t=z(e);this.data=function DP(){return n0?new Map:new MP}();var a=this;function n(i,o){t?a.set(i,o):a.set(o,i)}e instanceof r?e.each(n):e&&A(e,n)}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return n0?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function q(r){return new i0(r)}function Bo(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];var n=r.length;for(a=0;a<e.length;a++)t[a+n]=e[a];return t}function zo(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&V(t,e),t}function xv(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Z(r,e){return r.hasOwnProperty(e)}function Xt(){}var Go=180/Math.PI,bv=function(r,e){return(bv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])})(r,e)};function Bt(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}bv(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}function Ta(r,e){return null==r&&(r=0),null==e&&(e=0),[r,e]}function ge(r,e){return r[0]=e[0],r[1]=e[1],r}function Er(r){return[r[0],r[1]]}function u0(r,e,t){return r[0]=e,r[1]=t,r}function wv(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function $l(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Ca(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Fo(r){return Math.sqrt(Tv(r))}var PP=Fo;function Tv(r){return r[0]*r[0]+r[1]*r[1]}var RP=Tv;function EP(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function kP(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function OP(r,e){return r[0]*e[0]+r[1]*e[1]}function Ho(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function vn(r,e){var t=Fo(e);return 0===t?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function tu(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var ta=tu;function f0(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Aa=f0;function NP(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Wo(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function se(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function ea(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function ra(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Ai=function r(e,t){this.target=e,this.topTarget=t&&t.topTarget},VP=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ai(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new Ai(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ai(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ai(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ai(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ai(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const BP=VP;var zP=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&0===a[e].length&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!i||!i.filter||null==f.query||i.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}();const je=zP;var GP=Math.log(2);function Cv(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(1===e){var l=Math.round(Math.log((1<<s)-1&~n)/GP);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var p=1<<v;p&n||(h+=(c%2?-1:1)*r[t][v]*Cv(r,e-1,f,u,n|p,i),c++)}return i[o]=h,h}function h0(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Cv(t,8,0,0,0,a);if(0!==n){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Cv(t,7,0===o?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var h=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/h,l[1]=(u*i[3]+f*i[4]+i[5])/h}}}var v0="___zrEVENTSAVED",Av=[];function Mv(r,e,t,a,n){if(e.getBoundingClientRect&&bt.domSupported&&!c0(e)){var i=e[v0]||(e[v0]={}),o=function HP(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),l=i%2,u=(i>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}(e,i),s=function WP(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?h0(s,o):h0(o,s))}(o,i,n);if(s)return s(r,t,a),!0}return!1}function c0(r){return"CANVAS"===r.nodeName.toUpperCase()}var UP=/([&<>"'])/g,YP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function we(r){return null==r?"":(r+"").replace(UP,function(e,t){return YP[t]})}var ZP=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dv=[],XP=bt.browser.firefox&&+bt.browser.version.split(".")[0]<39;function Lv(r,e,t,a){return t=t||{},a?p0(r,e,t):XP&&null!=e.layerX&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):null!=e.offsetX?(t.zrX=e.offsetX,t.zrY=e.offsetY):p0(r,e,t),t}function p0(r,e,t){if(bt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(c0(r)){var i=r.getBoundingClientRect();return t.zrX=a-i.left,void(t.zrY=n-i.top)}if(Mv(Dv,r,a,n))return t.zrX=Dv[0],void(t.zrY=Dv[1])}t.zrX=t.zrY=0}function Iv(r){return r||window.event}function Qe(r,e,t){if(null!=(e=Iv(e)).zrX)return e;var a=e.type;if(a&&a.indexOf("touch")>=0){var o="touchend"!==a?e.targetTouches[0]:e.changedTouches[0];o&&Lv(r,o,e,t)}else{Lv(r,e,e,t);var i=function qP(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;return null==t||null==a?e:3*Math.abs(0!==a?a:t)*(a>0?-1:a<0?1:t>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&ZP.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Pv(r,e,t,a){r.addEventListener(e,t,a)}function KP(r,e,t,a){r.removeEventListener(e,t,a)}var aa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function d0(r){return 2===r.which||3===r.which}var jP=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Lv(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Rv)if(Rv.hasOwnProperty(t)){var a=Rv[t](this._track,e);if(a)return a}},r}();function g0(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}var Rv={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=g0(a)/g0(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function QP(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ge(){return[1,0,0,1,0,0]}function Uo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function eu(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function kr(r,e,t){var n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=e[0]*t[0]+e[2]*t[1],r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function gr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ma(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function ru(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function cn(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(r[0]=o*(l=1/l),r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function y0(r){var e=[1,0,0,1,0,0];return eu(e,r),e}var JP=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const lt=JP;var au=Math.min,nu=Math.max,pn=new lt,dn=new lt,gn=new lt,yn=new lt,Yo=new lt,Zo=new lt,$P=function(){function r(e,t,a,n){a<0&&(e+=a,a=-a),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=au(e.x,this.x),a=au(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?nu(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?nu(e.y+e.height,this.y+this.height)-a:e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=[1,0,0,1,0,0];return gr(i,i,[-t.x,-t.y]),ru(i,i,[a,n]),gr(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(i<l||u<n||s<f||h<o);if(t){var c=1/0,p=0,d=Math.abs(i-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);i<l||u<n?_>p&&(p=_,lt.set(Zo,d<g?-d:g,0)):_<c&&(c=_,lt.set(Yo,d<g?d:-g,0)),s<f||h<o?S>p&&(p=S,lt.set(Zo,0,y<m?-y:m)):_<c&&(c=_,lt.set(Yo,0,y<m?y:-m))}return t&&lt.copy(t,v?Yo:Zo),v},r.prototype.contain=function(e,t){var a=this;return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return 0===this.width||0===this.height},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],s=a[5];return e.x=t.x*n+a[4],e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}pn.x=gn.x=t.x,pn.y=yn.y=t.y,dn.x=yn.x=t.x+t.width,dn.y=gn.y=t.y+t.height,pn.transform(a),yn.transform(a),dn.transform(a),gn.transform(a),e.x=au(pn.x,dn.x,gn.x,yn.x),e.y=au(pn.y,dn.y,gn.y,yn.y);var l=nu(pn.x,dn.x,gn.x,yn.x),u=nu(pn.y,dn.y,gn.y,yn.y);e.width=l-e.x,e.height=u-e.y}else e!==t&&r.copy(e,t)},r}();const ut=$P;function e2(){aa(this.event)}var r2=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.handler=null,t}return Bt(e,r),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(je),Xo=function r(e,t){this.x=e,this.y=t},a2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ev=new ut(0,0,0,0),_0=function(r){function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Xo(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new r2,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new BP(s),s}return Bt(e,r),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(a2,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=x0(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var l=this._hovered=i?new Xo(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;"only_globalout"!==a&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==a&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Xo(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+a,s=function t2(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:e2}}(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[o]&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Xo(t,a);if(S0(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ut(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ev.copy(v.getBoundingRect()),v.transform&&Ev.applyTransform(v.transform),Ev.intersect(f)&&s.push(v))}if(s.length)for(var p=Math.PI/12,d=2*Math.PI,g=0;g<u;g+=4)for(var y=0;y<d;y+=p)if(S0(s,o,t+g*Math.cos(y),a+g*Math.sin(y),n),o.target)return o}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new jP);var n=this._gestureMgr;"start"===a&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===a&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Xo;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(je);function n2(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}a=a.__hostTarget||a.parent}return!n||"silent"}return!1}function S0(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=n2(o,t,a))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function x0(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){_0.prototype[r]=function(e){var i,o,t=e.zrX,a=e.zrY,n=x0(this,t,a);if(("mouseup"!==r||!n)&&(o=(i=this.findHover(t,a)).target),"mousedown"===r)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===r)this._upEl=o;else if("click"===r){if(this._downEl!==this._upEl||!this._downPoint||ta(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});const i2=_0;function T0(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;!function s2(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function C0(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var l,i=r[a],o=e,s=a;o<s;)n(i,r[l=o+s>>>1])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function kv(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,(l=1+(l<<1))<=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);i(r,e[t+f])>0?o=f+1:l=f}return l}function Ov(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function iu(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<32)return void C0(r,t,a,t+(i=T0(r,t,a,e)),e);var o=function l2(r,e){var o,s,t=7,l=0,u=[];function c(g){var y=o[g],m=s[g],_=o[g+1],S=s[g+1];s[g]=m+S,g===l-3&&(o[g+1]=o[g+2],s[g+1]=s[g+2]),l--;var b=Ov(r[_],r,y,m,0,e);y+=b,0!=(m-=b)&&0!==(S=kv(r[y+m-1],r,_,S,S-1,e))&&(m<=S?function p(g,y,m,_){var S=0;for(S=0;S<y;S++)u[S]=r[g+S];var b=0,x=m,w=g;if(r[w++]=r[x++],0!=--_)if(1!==y){for(var C,M,D,T=t;;){C=0,M=0,D=!1;do{if(e(r[x],u[b])<0){if(r[w++]=r[x++],M++,C=0,0==--_){D=!0;break}}else if(r[w++]=u[b++],C++,M=0,1==--y){D=!0;break}}while((C|M)<T);if(D)break;do{if(0!==(C=Ov(r[x],u,b,y,0,e))){for(S=0;S<C;S++)r[w+S]=u[b+S];if(w+=C,b+=C,(y-=C)<=1){D=!0;break}}if(r[w++]=r[x++],0==--_){D=!0;break}if(0!==(M=kv(u[b],r,x,_,0,e))){for(S=0;S<M;S++)r[w+S]=r[x+S];if(w+=M,x+=M,0==(_-=M)){D=!0;break}}if(r[w++]=u[b++],1==--y){D=!0;break}T--}while(C>=7||M>=7);if(D)break;T<0&&(T=0),T+=2}if((t=T)<1&&(t=1),1===y){for(S=0;S<_;S++)r[w+S]=r[x+S];r[w+_]=u[b]}else{if(0===y)throw new Error;for(S=0;S<y;S++)r[w+S]=u[b+S]}}else{for(S=0;S<_;S++)r[w+S]=r[x+S];r[w+_]=u[b]}else for(S=0;S<y;S++)r[w+S]=u[b+S]}(y,m,_,S):function d(g,y,m,_){var S=0;for(S=0;S<_;S++)u[S]=r[m+S];var b=g+y-1,x=_-1,w=m+_-1,T=0,C=0;if(r[w--]=r[b--],0!=--y)if(1!==_){for(var M=t;;){var D=0,L=0,I=!1;do{if(e(u[x],r[b])<0){if(r[w--]=r[b--],D++,L=0,0==--y){I=!0;break}}else if(r[w--]=u[x--],L++,D=0,1==--_){I=!0;break}}while((D|L)<M);if(I)break;do{if(0!=(D=y-Ov(u[x],r,g,y,y-1,e))){for(y-=D,C=1+(w-=D),T=1+(b-=D),S=D-1;S>=0;S--)r[C+S]=r[T+S];if(0===y){I=!0;break}}if(r[w--]=u[x--],1==--_){I=!0;break}if(0!=(L=_-kv(r[b],u,0,_,_-1,e))){for(_-=L,C=1+(w-=L),T=1+(x-=L),S=0;S<L;S++)r[C+S]=u[T+S];if(_<=1){I=!0;break}}if(r[w--]=r[b--],0==--y){I=!0;break}M--}while(D>=7||L>=7);if(I)break;M<0&&(M=0),M+=2}if((t=M)<1&&(t=1),1===_){for(C=1+(w-=y),T=1+(b-=y),S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else{if(0===_)throw new Error;for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}}else{for(C=1+(w-=y),T=1+(b-=y),S=y-1;S>=0;S--)r[C+S]=r[T+S];r[w]=u[x]}else for(T=w-(_-1),S=0;S<_;S++)r[T+S]=u[S]}(y,m,_,S))}return o=[],s=[],{mergeRuns:function h(){for(;l>1;){var g=l-2;if(g>=1&&s[g-1]<=s[g]+s[g+1]||g>=2&&s[g-2]<=s[g]+s[g-1])s[g-1]<s[g+1]&&g--;else if(s[g]>s[g+1])break;c(g)}},forceMergeRuns:function v(){for(;l>1;){var g=l-2;g>0&&s[g-1]<s[g+1]&&g--,c(g)}},pushRun:function f(g,y){o[l]=g,s[l]=y,l+=1}}}(r,e),s=function o2(r){for(var e=0;r>=32;)e|=1&r,r>>=1;return r+e}(n);do{if((i=T0(r,t,a,e))<s){var l=n;l>s&&(l=s),C0(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(0!==n);o.forceMergeRuns()}}var A0=!1;function Nv(){A0||(A0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function M0(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var u2=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=M0}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,iu(a,M0)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!e.ignore||a){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath();if(e.ignoreClip)t=null;else if(n){t=t?t.slice():[];for(var i=n,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=1),this._updateAndAddDisplayable(u,t,a)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Nv(),f.z=0),isNaN(f.z2)&&(Nv(),f.z2=0),isNaN(f.zlevel)&&(Nv(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);else{var n=ht(this._roots,e);n>=0&&this._roots.splice(n,1)}},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const f2=u2;var D0;D0=bt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Vv=D0;var ou={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return.5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return 0===r?0:Math.pow(1024,r-1)},exponentialOut:function(r){return 1===r?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return 0===r?0:1===r?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(2-Math.pow(2,-10*(r-1)))},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),-t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4))},elasticOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*-.5:t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?r*r*((e+1)*r-e)*.5:.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-ou.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?.5*ou.bounceIn(2*r):.5*ou.bounceOut(2*r-1)+.5}};const L0=ou;var su=Math.pow,Da=Math.sqrt,P0=Da(3),uu=1/3,Or=Ta(),Je=Ta(),Di=Ta();function La(r){return r>-1e-8&&r<1e-8}function R0(r){return r>1e-8||r<-1e-8}function re(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function E0(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function fu(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-2*e+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(La(f)&&La(h))La(s)?i[0]=0:(p=-l/s)>=0&&p<=1&&(i[c++]=p);else{var d=h*h-4*f*v;if(La(d)){var g=h/f,y=-g/2;(p=-s/o+g)>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=Da(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);(p=(-s-((_=_<0?-su(-_,uu):su(_,uu))+(S=S<0?-su(-S,uu):su(S,uu))))/(3*o))>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*Da(f*f*f)),x=Math.acos(b)/3,w=Da(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),C=(y=(-s+w*(T+P0*Math.sin(x)))/(3*o),(-s+w*(T-P0*Math.sin(x)))/(3*o));p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function k0(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(La(o))R0(i)&&(u=-s/i)>=0&&u<=1&&(n[l++]=u);else{var f=i*i-4*o*s;if(La(f))n[0]=-i/(2*o);else if(f>0){var u,h=Da(f),v=(-i-h)/(2*o);(u=(-i+h)/(2*o))>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Ia(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function O0(r,e,t,a,n,i,o,s,l,u,f){var h,p,d,g,y,v=.005,c=1/0;Or[0]=l,Or[1]=u;for(var m=0;m<1;m+=.05)Je[0]=re(r,t,n,o,m),Je[1]=re(e,a,i,s,m),(g=Aa(Or,Je))<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<1e-4);_++)d=h+v,Je[0]=re(r,t,n,o,p=h-v),Je[1]=re(e,a,i,s,p),g=Aa(Je,Or),p>=0&&g<c?(h=p,c=g):(Di[0]=re(r,t,n,o,d),Di[1]=re(e,a,i,s,d),y=Aa(Di,Or),d<=1&&y<c?(h=d,c=y):v*=.5);return f&&(f[0]=re(r,t,n,o,h),f[1]=re(e,a,i,s,h)),Da(c)}function h2(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var p=c*v,d=re(r,t,n,o,p),g=re(e,a,i,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function le(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function Bv(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function N0(r,e,t){var a=r+t-2*e;return 0===a?.5:(r-e)/a}function jo(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function V0(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Or[0]=o,Or[1]=s;for(var v=0;v<1;v+=.05)Je[0]=le(r,t,n,v),Je[1]=le(e,a,i,v),(c=Aa(Or,Je))<h&&(u=v,h=c);h=1/0;for(var p=0;p<32&&!(f<1e-4);p++){var d=u-f,g=u+f;Je[0]=le(r,t,n,d),Je[1]=le(e,a,i,d);var c=Aa(Je,Or);if(d>=0&&c<h)u=d,h=c;else{Di[0]=le(r,t,n,g),Di[1]=le(e,a,i,g);var y=Aa(Di,Or);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=le(r,t,n,u),l[1]=le(e,a,i,u)),Da(h)}function c2(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=le(r,t,n,v),p=le(e,a,i,v),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var p2=/cubic-bezier\(([0-9,\.e ]+)\)/;function zv(r){var e=r&&p2.exec(r);if(e){var t=e[1].split(","),a=+Ke(t[0]),n=+Ke(t[1]),i=+Ke(t[2]),o=+Ke(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:fu(0,a,i,1,l,s)&&re(0,n,o,1,s[0])}}}var d2=function(){function r(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||Xt,this.ondestroy=e.ondestroy||Xt,this.onrestart=e.onrestart||Xt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-n%a,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=j(e)?e:L0[e]||zv(e)},r}();const g2=d2;var B0=function r(e){this.value=e},y2=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new B0(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),m2=function(){function r(e){this._list=new y2,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(null==n[e]){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new B0(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(null!=t)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Qo=m2;var z0={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(r){return(r=Math.round(r))<0?0:r>255?255:r}function Jo(r){return r<0?0:r>1?1:r}function Gv(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?yr(parseFloat(e)/100*255):yr(parseInt(e,10))}function mn(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?Jo(parseFloat(e)/100):Jo(parseFloat(e))}function Fv(r,e,t){return t<0?t+=1:t>1&&(t-=1),6*t<1?r+(e-r)*t*6:2*t<1?e:3*t<2?r+(e-r)*(2/3-t)*6:r}function Pa(r,e,t){return r+(e-r)*t}function $e(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function Hv(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var G0=new Qo(20),hu=null;function Li(r,e){hu&&Hv(hu,e),hu=G0.put(r,hu||e.slice())}function Te(r,e){if(r){e=e||[];var t=G0.get(r);if(t)return Hv(e,t);var a=(r+="").replace(/ /g,"").toLowerCase();if(a in z0)return Hv(e,z0[a]),Li(r,e),e;var i,n=a.length;if("#"===a.charAt(0))return 4===n||5===n?(i=parseInt(a.slice(1,4),16))>=0&&i<=4095?($e(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===n?parseInt(a.slice(4),16)/15:1),Li(r,e),e):void $e(e,0,0,0,1):7===n||9===n?(i=parseInt(a.slice(1,7),16))>=0&&i<=16777215?($e(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===n?parseInt(a.slice(7),16)/255:1),Li(r,e),e):void $e(e,0,0,0,1):void 0;var o=a.indexOf("("),s=a.indexOf(")");if(-1!==o&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?$e(e,+u[0],+u[1],+u[2],1):$e(e,0,0,0,1);f=mn(u.pop());case"rgb":return u.length>=3?($e(e,Gv(u[0]),Gv(u[1]),Gv(u[2]),3===u.length?f:mn(u[3])),Li(r,e),e):void $e(e,0,0,0,1);case"hsla":return 4!==u.length?void $e(e,0,0,0,1):(u[3]=mn(u[3]),Wv(u,e),Li(r,e),e);case"hsl":return 3!==u.length?void $e(e,0,0,0,1):(Wv(u,e),Li(r,e),e);default:return}}$e(e,0,0,0,1)}}function Wv(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=mn(r[1]),n=mn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=2*n-i;return $e(e=e||[],yr(255*Fv(o,i,t+1/3)),yr(255*Fv(o,i,t)),yr(255*Fv(o,i,t-1/3)),1),4===r.length&&(e[3]=r[3]),e}function vu(r,e){var t=Te(r);if(t){for(var a=0;a<3;a++)t[a]=e<0?t[a]*(1-e)|0:(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return mr(t,4===t.length?"rgba":"rgb")}}function x2(r){var e=Te(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function $o(r,e,t){if(e&&e.length&&r>=0&&r<=1){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=yr(Pa(o[0],s[0],l)),t[1]=yr(Pa(o[1],s[1],l)),t[2]=yr(Pa(o[2],s[2],l)),t[3]=Jo(Pa(o[3],s[3],l)),t}}var b2=$o;function Uv(r,e,t){if(e&&e.length&&r>=0&&r<=1){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Te(e[n]),s=Te(e[i]),l=a-n,u=mr([yr(Pa(o[0],s[0],l)),yr(Pa(o[1],s[1],l)),yr(Pa(o[2],s[2],l)),Jo(Pa(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var w2=Uv;function Ii(r,e,t,a){var n=Te(r);if(r)return n=function S2(r){if(r){var l,u,e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2;if(0===o)l=0,u=0;else{u=s<.5?o/(i+n):o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[360*l,u,s];return null!=r[3]&&c.push(r[3]),c}}(n),null!=e&&(n[0]=function _2(r){return(r=Math.round(r))<0?0:r>360?360:r}(e)),null!=t&&(n[1]=mn(t)),null!=a&&(n[2]=mn(a)),mr(Wv(n),"rgba")}function ts(r,e){var t=Te(r);if(t&&null!=e)return t[3]=Jo(e),mr(t,"rgba")}function mr(r,e){if(r&&r.length){var t=r[0]+","+r[1]+","+r[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(t+=","+r[3]),e+"("+t+")"}}function es(r,e){var t=Te(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function T2(){return mr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var rs=Math.round;function as(r){var e;if(r&&"transparent"!==r){if("string"==typeof r&&r.indexOf("rgba")>-1){var t=Te(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}}else r="none";return{color:r,opacity:e??1}}function Ra(r){return r<1e-4&&r>-1e-4}function cu(r){return rs(1e3*r)/1e3}function Yv(r){return rs(1e4*r)/1e4}var A2={left:"start",right:"end",center:"middle",middle:"middle"};function H0(r){return r&&!!r.image}function Zv(r){return H0(r)||function I2(r){return r&&!!r.svgElement}(r)}function W0(r){return"linear"===r.type}function U0(r){return"radial"===r.type}function Y0(r){return r&&("linear"===r.type||"radial"===r.type)}function pu(r){return"url(#"+r+")"}function Z0(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function X0(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Go,n=st(r.scaleX,1),i=st(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(1!==n||1!==i)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+rs(o*Go)+"deg, "+rs(s*Go)+"deg)"),l.join(" ")}var P2=bt.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null},Xv=Array.prototype.slice;function na(r,e,t){return(e-r)*t+r}function qv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=na(e[i],t[i],a);return r}function du(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function q0(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function E2(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function k2(r,e,t){var a=r,n=e;if(a.push&&n.push){var i=a.length,o=n.length;if(i!==o)if(i>o)a.length=o;else for(var l=i;l<o;l++)a.push(1===t?n[l]:Xv.call(n[l]));var u=a[0]&&a[0].length;for(l=0;l<a.length;l++)if(1===t)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function ns(r){if(fe(r)){var e=r.length;if(fe(r[0])){for(var t=[],a=0;a<e;a++)t.push(Xv.call(r[a]));return t}return Xv.call(r)}return r}function gu(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=null==r[3]?1:r[3],"rgba("+r.join(",")+")"}function Q0(r){return 4===r||5===r}function _u(r){return 1===r||2===r}var os=[0,0,0,0],N2=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=6,l=t;if(fe(t)){var u=function O2(r){return fe(r&&r[0])?2:1}(t);s=u,(1===u&&!wt(t[0])||2===u&&!wt(t[0][0]))&&(o=!0)}else if(wt(t)&&!Ti(t))s=0;else if(U(t))if(isNaN(+t)){var f=Te(t);f&&(l=f,s=3)}else s=0;else if(No(t)){var h=V({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:Te(c.color)}}),W0(t)?s=4:U0(t)&&(s=5),l=h}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=j(a)?a:L0[a]||zv(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=_u(n),u=Q0(n),f=0;f<i;f++){var h=a[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==i-1?k2(v,c,n):u&&E2(v.colorStops,c.colorStops))}if(!s&&5!==n&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;var p=a[0].value;for(f=0;f<i;f++)0===n?a[f].additiveValue=a[f].value-p:3===n?a[f].additiveValue=du([],a[f].value,p,-1):_u(n)&&(a[f].additiveValue=1===n?du([],a[f].value,p,-1):q0([],a[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,c,p,a=null!=this._additiveTrack,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=3===i,h=this._lastFr,v=Math.min;if(1===s)c=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){for(f=v(h+1,s-1);f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=0===g?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?os:e[l];if((_u(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(_u(i))1===i?qv(m,c[n],p[n],y):function R2(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=na(e[o][s],t[o][s],a)}}(m,c[n],p[n],y);else if(Q0(i)){var _=c[n],S=p[n],b=4===i;e[l]={type:b?"linear":"radial",x:na(_.x,S.x,y),y:na(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:na(w.offset,C.offset,y),color:gu(qv([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=na(_.x2,S.x2,y),e[l].y2=na(_.y2,S.y2,y)):e[l].r=na(_.r,S.r,y)}else if(u)qv(m,c[n],p[n],y),a||(e[l]=gu(m));else{var x=na(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;0===t?e[a]=e[a]+n:3===t?(Te(e[a],os),du(os,os,n,1),e[a]=gu(os)):1===t?du(e[a],e[a],n,1):2===t&&q0(e[a],e[a],n,1)},r}(),V2=function(){function r(e,t,a,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?Xl("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=a)}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,mt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new N2(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,3===f.valType&&u&&(u=gu(u))}else u=this._target[s];if(null==u)continue;e>0&&l.addKeyframe(0,ns(u),n),this._trackKeys.push(s)}l.addKeyframe(e,ns(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var v=new g2({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(g=0;g<a.length;g++)a[g].step(t._target,c);var y=t._onframeCbs;if(y)for(g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){this._clip&&(e&&this._clip.onframe(1),this._abortedCallback())},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(o&&!o.isFinished()){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=ns(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||mt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();const Qv=V2;function Pi(){return(new Date).getTime()}var B2=function(r){function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,a.stage=(t=t||{}).stage||{},a}return Bt(e,r),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=Pi()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next;i.step(a,n)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Vv(function a(){t._running&&(Vv(a),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Pi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Pi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Pi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Qv(t,a.loop);return this.addAnimator(n),n},e}(je);const z2=B2;var Jv=bt.domSupported,$v=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:r,touch:["touchstart","touchend","touchmove"],pointer:G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n})}}(),J0_mouse=["mousemove","mouseup"],J0_pointer=["pointermove","pointerup"],$0=!1;function tc(r){var e=r.pointerType;return"pen"===e||"touch"===e}function ec(r){r&&(r.zrByTouch=!0)}function t_(r,e){for(var t=e,a=!1;t&&9!==t.nodeType&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var W2=function r(e,t){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},_r={mousedown:function(r){r=Qe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Qe(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Qe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){t_(this,(r=Qe(this.dom,r)).toElement||r.relatedTarget)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){$0=!0,r=Qe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){$0||(r=Qe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){ec(r=Qe(this.dom,r)),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_r.mousemove.call(this,r),_r.mousedown.call(this,r)},touchmove:function(r){ec(r=Qe(this.dom,r)),this.handler.processGesture(r,"change"),_r.mousemove.call(this,r)},touchend:function(r){ec(r=Qe(this.dom,r)),this.handler.processGesture(r,"end"),_r.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<300&&_r.click.call(this,r)},pointerdown:function(r){_r.mousedown.call(this,r)},pointermove:function(r){tc(r)||_r.mousemove.call(this,r)},pointerup:function(r){_r.mouseup.call(this,r)},pointerout:function(r){tc(r)||_r.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){_r[r]=function(e){e=Qe(this.dom,e),this.trigger(r,e)}});var rc={pointermove:function(r){tc(r)||rc.mousemove.call(this,r)},pointerup:function(r){rc.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Su(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,Pv(r.domTarget,e,t,a)}function ac(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&KP(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var e_=function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},Z2=function(r){function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new e_(t,_r),Jv&&(n._globalHandlerScope=new e_(document,rc)),function U2(r,e){var t=e.domHandlers;bt.pointerEventsSupported?A($v.pointer,function(a){Su(e,a,function(n){t[a].call(r,n)})}):(bt.touchEventsSupported&&A($v.touch,function(a){Su(e,a,function(n){t[a].call(r,n),function F2(r){r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}(e)})}),A($v.mouse,function(a){Su(e,a,function(n){n=Iv(n),e.touching||t[a].call(r,n)})}))}(n,n._localHandlerScope),n}return Bt(e,r),e.prototype.dispose=function(){ac(this._localHandlerScope),Jv&&ac(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Jv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?function Y2(r,e){function t(a){Su(e,a,function n(i){i=Iv(i),t_(r,i.target)||(i=function H2(r,e){return Qe(r.dom,new W2(r,e),!0)}(r,i),e.domHandlers[a].call(r,i))},{capture:!0})}bt.pointerEventsSupported?A(J0_pointer,t):bt.touchEventsSupported||A(J0_mouse,t)}(this,a):ac(a)}},e}(je);const X2=Z2;var r_=1;bt.hasGlobalWindow&&(r_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xu=r_,ic="#333",oc="#ccc",a_=Uo;function _n(r){return r>5e-5||r<-5e-5}var Sn=[],Ri=[],sc=[1,0,0,1,0,0],lc=Math.abs,K2=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return _n(this.rotation)||_n(this.x)||_n(this.y)||_n(this.scaleX-1)||_n(this.scaleY-1)||_n(this.skewX)||_n(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;t||e?(a=a||[1,0,0,1,0,0],t?this.getLocalTransform(a):a_(a),e&&(t?kr(a,e,a):eu(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)):a&&a_(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Sn);var a=Sn[0]<0?-1:1,n=Sn[1]<0?-1:1,i=((Sn[0]-a)*t+a)/Sn[0]||0,o=((Sn[1]-n)*t+n)/Sn[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],cn(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(kr(Ri,e.invTransform,t),t=Ri);var a=this.originX,n=this.originY;(a||n)&&(sc[4]=a,sc[5]=n,kr(Ri,t,sc),Ri[4]-=a,Ri[5]-=n,t=Ri),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&se(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&se(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&lc(e[0]-1)>1e-10&&lc(e[3]-1)>1e-10?Math.sqrt(lc(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){i_(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&Ma(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.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}(),r}(),Nr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function i_(r,e){for(var t=0;t<Nr.length;t++){var a=Nr[t];r[a]=e[a]}}const ia=K2;var o_={};function He(r,e){var t=o_[e=e||wa];t||(t=o_[e]=new Qo(500));var a=t.get(r);return null==a&&(a=dr.measureText(r,e).width,t.put(r,a)),a}function s_(r,e,t,a){var n=He(r,e),i=bu(e),o=ls(0,n,t),s=Ei(0,i,a);return new ut(o,s,n,i)}function ss(r,e,t,a){var n=((r||"")+"").split("\n");if(1===n.length)return s_(n[0],e,t,a);for(var o=new ut(0,0,0,0),s=0;s<n.length;s++){var l=s_(n[s],e,t,a);0===s?o.copy(l):o.union(l)}return o}function ls(r,e,t){return"right"===t?r-=e:"center"===t&&(r-=e/2),r}function Ei(r,e,t){return"middle"===t?r-=e/2:"bottom"===t&&(r-=e),r}function bu(r){return He("\u56fd",r)}function Sr(r,e){return"string"==typeof r?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function wu(r,e,t){var a=e.position||"inside",n=null!=e.distance?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Sr(a[0],t.width),u+=Sr(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom"}return(r=r||{}).x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var uc="__zr_normal__",fc=Nr.concat(["ignore"]),j2=qe(Nr,function(r,e){return r[e]=!0,r},{ignore:!1}),ki={},Q2=new ut(0,0,0,0),hc=function(){function r(e){this.id=mv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),null!=a.position){var f=Q2;f.copy(a.layoutRect?a.layoutRect:this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ki,a,f):wu(ki,a,f),i.x=ki.x,i.y=ki.y,o=ki.align,s=ki.verticalAlign;var h=a.origin;if(h&&null!=a.rotation){var v=void 0,c=void 0;"center"===h?(v=.5*f.width,c=.5*f.height):(v=Sr(h[0],f.width),c=Sr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}null!=a.rotation&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=null==a.inside?"string"==typeof a.position&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(m=a.insideStroke,(null==(y=a.insideFill)||"auto"===y)&&(y=this.getInsideTextFill()),(null==m||"auto"===m)&&(m=this.getInsideTextStroke(y),_=!0)):(m=a.outsideStroke,(null==(y=a.outsideFill)||"auto"===y)&&(y=this.getOutsideFill()),(null==m||"auto"===m)&&(m=this.getOutsideStroke(y),_=!0)),((y=y||"#000")!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=1,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?oc:ic},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a="string"==typeof t&&Te(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,mr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(J(e))for(var n=mt(e),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==uc)){var o=n.targetName;n.saveTo(o?t[o]:t)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,fc)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];null!=e[i]&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(uc,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===uc;if(this.hasState()||!i){var s=this.currentStates,l=this.stateTransition;if(!(ht(s,e)>=0)||!t&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i)return void Xl("State "+e+" not exists.");i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(e,t,a){if(e.length){var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}if(s)return;for(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 h=n[o-1],v=!!(h&&h.hoverLayer||a);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ht(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=ht(n,e),o=ht(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var a,t={},n=0;n<e.length;n++){var i=e[n];V(t,i),i.textConfig&&V(a=a||{},i.textConfig)}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=V({},n?this.textConfig:a.textConfig),V(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<fc.length;f++){var h=fc[f],v=i&&j2[h];t&&null!=t[h]?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&null!=a[h]&&(v?(u=!0,l[h]=a[h]):this[h]=a[h])}if(!i)for(f=0;f<this.animators.length;f++){var c=this.animators[f],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(t||a)[p]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ia,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var i=new Qv(e?this[e]:this,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=ht(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];e&&e!==s.scope?i.push(s):s.stop(t)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){vc(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){vc(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=vc(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;function n(i,o,s,l){function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(v){f[s]=v}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(v){f[l]=v}})}Object.defineProperty(e,i,{get:function(){return this[o]||u(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),r}();function vc(r,e,t,a,n){var i=[];l_(r,"",r,e,t=t||{},a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},h=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v<i.length;v++){var c=i[v];f&&c.done(f),h&&c.aborted(h),t.force&&c.duration(t.duration),c.start(t.easing)}return i}function cc(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function $2(r,e,t){if(fe(e[t]))if(fe(r[t])||(r[t]=[]),Re(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),cc(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(function J2(r){return fe(r[0])}(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?cc(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else cc(i,n,o);i.length=n.length}else r[t]=e[t]}function l_(r,e,t,a,n,i,o,s){for(var l=mt(a),u=n.duration,f=n.delay,h=n.additive,v=n.setToFinal,c=!J(i),p=r.animators,d=[],g=0;g<l.length;g++){var m=a[y=l[g]];if(null!=m&&null!=t[y]&&(c||i[y]))if(!J(m)||fe(m)||No(m))d.push(y);else{if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}l_(r,y,t[y],m,n,i&&i[y],o,s)}else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++)if((b=p[S]).targetName===e&&b.stopTracks(d)){var w=ht(p,b);p.splice(w,1)}if(n.force||(d=Lt(d,function(D){return!function tR(r,e){return r===e||fe(r)&&fe(e)&&function eR(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}(r,e)}(a[D],t[D])}),_=d.length),_>0||n.force&&!o.length){var b,T=void 0,C=void 0,M=void 0;if(s)for(C={},v&&(T={}),S=0;S<_;S++)C[y=d[S]]=t[y],v?T[y]=a[y]:t[y]=a[y];else if(v)for(M={},S=0;S<_;S++){var y;M[y=d[S]]=ns(t[y]),$2(t,a,y)}(b=new Qv(t,!1,!1,h?Lt(p,function(L){return L.targetName===e}):null)).targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),M&&b.whenWithKeys(0,M,d),b.whenWithKeys(u??500,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}Zt(hc,je),Zt(hc,ia);const u_=hc;var f_=function(r){function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return Bt(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=ht(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=ht(n,t);return i<0||(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++)t.call(a,n[i],i);return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].addSelfToZr(t)},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].removeSelfFromZr(t)},e.prototype.getBoundingRect=function(t){for(var a=new ut(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(ut.applyTransform(a,u,f),(o=o||a.clone()).union(a)):(o=o||u.clone()).union(u)}}return o||a},e}(u_);f_.prototype.type="group";const rt=f_;var Tu={},xn={},nR=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new f2,o=a.renderer||"canvas";Tu[o]||(o=mt(Tu)[0]),a.useDirtyRect=null!=a.useDirtyRect&&a.useDirtyRect;var s=new Tu[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var c,u=bt.node||bt.worker||l?null:new X2(s.getViewportRoot(),s.root),f=a.useCoarsePointer;(null==f||"auto"===f?bt.touchEventsSupported:!!f)&&(c=st(a.pointerSize,44)),this.handler=new i2(i,s,u,s.root,c),this.animation=new z2({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},r.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function aR(r){if(!r)return!1;if("string"==typeof r)return es(r,1)<.4;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=es(e[n].color,1);return(t/=a)<.4}return!1}(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(e){var t,a=Pi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=Pi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},r.prototype.resize=function(e){this.painter.resize((e=e||{}).width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof rt&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,function rR(r){delete xn[r]}(this.id)},r}();function pc(r,e){var t=new nR(mv(),r,e);return xn[t.id]=t,t}function iR(r){r.dispose()}function oR(){for(var r in xn)xn.hasOwnProperty(r)&&xn[r].dispose();xn={}}function sR(r){return xn[r]}function h_(r,e){Tu[r]=e}var lR="5.4.1";function It(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%"}return U(r)?function uR(r){return r.replace(/^\s+|\s+$/g,"")}(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):null==r?NaN:+r}function Wt(r,e,t){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),r=(+r).toFixed(e),t?r:+r}function We(r){return r.sort(function(e,t){return e-t}),r}function xr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14)for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t;return p_(r)}function p_(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf(".");return Math.max(0,(i<0?0:n-1-i)-a)}function dc(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function fR(r,e,t){return r[e]&&d_(r,t)[e]||0}function d_(r,e){var t=qe(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(0===t)return[];for(var a=Math.pow(10,e),n=G(r,function(c){return(isNaN(c)?0:c)/t*a*100}),i=100*a,o=G(n,function(c){return Math.floor(c)}),s=qe(o,function(c,p){return c+p},0),l=G(n,function(c,p){return c-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return G(o,function(c){return c/a})}function hR(r,e){var t=Math.max(xr(r),xr(e)),a=r+e;return t>20?a:Wt(a,t)}var gc=9007199254740991;function yc(r){var e=2*Math.PI;return(r%e+e)%e}function us(r){return r>-1e-4&&r<1e-4}var vR=/^(?:(\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 Ue(r){if(r instanceof Date)return r;if(U(r)){var e=vR.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}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)}return null==r?new Date(NaN):new Date(Math.round(r))}function g_(r){return Math.pow(10,Cu(r))}function Cu(r){if(0===r)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function mc(r,e){var t=Cu(r),a=Math.pow(10,t),n=r/a;return r=(e?n<1.5?1:n<2.5?2:n<4?3:n<7?5:10:n<1?1:n<2?2:n<3?3:n<5?5:10)*a,t>=-20?+r.toFixed(t<0?-t:0):r}function Au(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function _c(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!=1?r.splice(a,1):a++}return r;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 Vr(r){var e=parseFloat(r);return e==r&&(0!==e||!U(r)||r.indexOf("x")<=0)?e:NaN}function Sc(r){return!isNaN(Vr(r))}function y_(){return Math.round(9*Math.random())}function m_(r,e){return 0===e?r:m_(e,r%e)}function __(r,e){return null==r?e:null==e?r:r*e/m_(r,e)}function S_(r,e,t){return(e-r)*t+r}var x_="series\0";function Pt(r){return r instanceof Array?r:null==r?[]:[r]}function bn(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var w_=["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 Oi(r){return!J(r)||z(r)||r instanceof Date?r:r.value}function cR(r){return J(r)&&!(r instanceof Array)}function T_(r,e,t){var a="normalMerge"===t,n="replaceMerge"===t,i="replaceAll"===t;r=r||[],e=(e||[]).slice();var o=q();A(e,function(l,u){J(l)||(e[u]=null)});var s=function pR(r,e,t){var a=[];if("replaceAll"===t)return a;for(var n=0;n<r.length;n++){var i=r[n];i&&null!=i.id&&e.set(i.id,n),a.push({existing:"replaceMerge"===t||hs(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}(r,o,t);return(a||n)&&function dR(r,e,t,a){A(a,function(n,i){if(n&&null!=n.id){var o=fs(n.id),s=t.get(o);if(null!=s){var l=r[s];de(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}(s,r,o,e),a&&function gR(r,e){A(e,function(t,a){if(t&&null!=t.name)for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(null==i.id||null==t.id)&&!hs(t)&&!hs(i)&&C_("name",i,t))return r[n].newOption=t,void(e[a]=null)}})}(s,e),a||n?function yR(r,e,t){A(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||hs(n.existing)||n.existing&&null!=a.id&&!C_("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}(s,e,n):i&&function mR(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function _R(r){var e=q();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;de(!a||null==a.id||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(J(i)){if(o.name=null!=i.name?fs(i.name):n?n.name:x_+a,n)o.id=fs(n.id);else if(null!=i.id)o.id=fs(i.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,t)}})}(s),s}function C_(r,e,t){var a=te(e[r],null),n=te(t[r],null);return null!=a&&null!=n&&a===n}function fs(r){return te(r,"")}function te(r,e){return null==r?e:U(r)?r:wt(r)||Kl(r)?r+"":e}function xc(r){var e=r.name;return!(!e||!e.indexOf(x_))}function hs(r){return r&&null!=r.id&&0===fs(r.id).indexOf("\0_ec_\0")}function wn(r,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?z(e.dataIndex)?G(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex):null!=e.name?z(e.name)?G(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name):void 0}function Tt(){var r="__ec_inner_"+TR++;return function(e){return e[r]||(e[r]={})}}var TR=y_();function vs(r,e,t){var a=bc(e,t),i=a.queryOptionMap,s=a.others,l=t?t.defaultMainType:null;return!a.mainTypeSpecified&&l&&i.set(l,{}),i.each(function(u,f){var h=cs(r,f,u,{useDefault:l===f,enableAll:!t||null==t.enableAll||t.enableAll,enableNone:!t||null==t.enableNone||t.enableNone});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function bc(r,e){var t;if(U(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=q(),i={},o=!1;return A(t,function(s,l){if("dataIndex"!==l&&"dataIndexInside"!==l){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();!f||!h||e&&e.includeMainTypes&&ht(e.includeMainTypes,f)<0||(o=o||!!f,(n.get(f)||n.set(f,{}))[h]=s)}else i[l]=s}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Qt={useDefault:!0,enableAll:!1,enableNone:!1},CR={useDefault:!1,enableAll:!0,enableNone:!0};function cs(r,e,t,a){a=a||Qt;var n=t.index,i=t.id,o=t.name,s={models:null,specified:null!=n||null!=i||null!=o};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}return"none"===n||!1===n?(de(a.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===n&&(de(a.enableAll,'`"all"` is not a valid value on index option.'),n=i=o=null),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s)}function A_(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function wc(r,e){var t=q(),a=[];return A(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function M_(r,e,t,a,n){var i=null==e||"auto"===e;if(null==a)return a;if(wt(a))return Wt(o=S_(t||0,a,n),i?Math.max(xr(t||0),xr(a)):e);if(U(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&"ordinal"===v.type)s[h]=(n<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,p=u[h],o=S_(c,p,n);s[h]=Wt(o,i?Math.max(xr(c),xr(p)):e)}}return s}var Tn="___EC__COMPONENT__CONTAINER___",D_="___EC__EXTENDED_CLASS___";function Br(r){var e={main:"",sub:""};if(r){var t=r.split(".");e.main=t[0]||"",e.sub=t[1]||""}return e}function Tc(r,e){r.$constructor=r,r.extend=function(t){var n,a=this;return function PR(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}(a)?n=function(i){function o(){return i.apply(this,arguments)||this}return O(o,i),o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},_v(n,this)),V(n.prototype,t),n[D_]=!0,n.extend=this.extend,n.superCall=kR,n.superApply=OR,n.superClass=a,n}}function L_(r,e){r.extend=e.extend}var RR=Math.round(10*Math.random());function kR(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function OR(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Mu(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){(function LR(r){de(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')})(n),a.prototype.type=n;var i=Br(n);if(i.sub){if(i.sub!==Tn){var o=function t(a){var n=e[a.main];return(!n||!n[Tn])&&((n=e[a.main]={})[Tn]=!0),n}(i);o[i.sub]=a}}else e[i.main]=a}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Tn]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Br(a),i=[],o=e[n.main];return o&&o[Tn]?A(o,function(s,l){l!==Tn&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Br(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Br(a),i=e[n.main];return i&&i[Tn]}}function Cn(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ht(n,l)>=0||i&&ht(i,l)<0)){var u=a.getShallow(l,e);null!=u&&(o[r[s][0]]=u)}}return o}}var VR=Cn([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),BR=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return VR(this,e,t)},r}(),Cc=new Qo(50);function zR(r){if("string"==typeof r){var e=Cc.get(r);return e&&e.image}return r}function Ac(r,e,t,a,n){if(r){if("string"==typeof r){if(e&&e.__zrImageSrc===r||!t)return e;var i=Cc.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?!Du(e=i.image)&&i.pending.push(o):((e=dr.loadImage(r,I_,I_)).__zrImageSrc=r,Cc.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}return r}return e}function I_(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Du(r){return r&&r.width&&r.height}var Mc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function P_(r,e,t,a,n){if(!e)return"";var i=(r+"").split("\n");n=R_(e,t,a,n);for(var o=0,s=i.length;o<s;o++)i[o]=E_(i[o],n);return i.join("\n")}function R_(r,e,t,a){var n=V({},a=a||{});n.font=e,t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0);n.cnCharWidth=He("\u56fd",e);var o=n.ascCharWidth=He("a",e);n.placeholder=st(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=He(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function E_(r,e){var t=e.containerWidth,a=e.font,n=e.contentWidth;if(!t)return"";var i=He(r,a);if(i<=t)return r;for(var o=0;;o++){if(i<=n||o>=e.maxIterations){r+=e.ellipsis;break}var s=0===o?GR(r,n,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(r.length*n/i):0;i=He(r=r.substr(0,s),a)}return""===r&&(r=e.placeholder),r}function GR(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}var HR=function r(){},k_=function r(e){this.tokens=[],e&&(this.tokens=e)},WR=function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Dc(r,e,t,a,n){var f,h,i=""===e,o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(null!=o.width&&"auto"!==o.width){var p=Sr(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=e.split("\n"),u=!0),a.accumWidth=p}else{var d=O_(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split("\n");for(var g=0;g<f.length;g++){var y=f[g],m=new HR;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,m.width="number"==typeof o.width?o.width:h?h[g]:He(y,l),g||u)s.push(new k_([m]));else{var _=(s[s.length-1]||(s[0]=new k_)).tokens,S=_.length;1===S&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}}}var ZR=qe(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function XR(r){return!function YR(r){var e=r.charCodeAt(0);return e>=33&&e<=383}(r)||!!ZR[r]}function O_(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if("\n"!==v){var c=He(v,e),p=!a&&!XR(v);(i.length?f+c>t:n+f+c>t)?f?(s||l)&&(p?(s||(s=l,l="",f=u=0),i.push(s),o.push(f-u),l+=v,s="",f=u+=c):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c)):(f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v))}else l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),1===i.length&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Lc="__zr_style_"+Math.round(10*Math.random()),An={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Lu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};An[Lc]=!0;var N_=["z","z2","invisible"],qR=["invisible"],KR=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype._init=function(t){for(var a=mt(t),n=0;n<a.length;n++){var i=a[n];"style"===i?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function jR(r,e,t){return Ic.copy(r.getBoundingRect()),r.transform&&Ic.applyTransform(r.transform),Pc.width=e,Pc.height=t,!Ic.intersect(Pc)}(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ut(0,0,0,0)),a?ut.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=2*o+Math.abs(s),t.height+=2*o+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+2*u),t.height=Math.ceil(t.height+1+2*u))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ut(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){"style"!==t?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return"string"==typeof t?this.style[t]=a:V(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return zo(An,t)},e.prototype.useStyle=function(t){t[Lc]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Lc]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,N_)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var u,l=!(a&&i);if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=mt(f),v=0;v<h.length;v++)(c=h[v])in u&&(u[c]=u[c],this.style[c]=f[c]);var p=mt(u);for(v=0;v<p.length;v++)this.style[c=p[v]]=this.style[c];this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);var d=this.__inHover?qR:N_;for(v=0;v<d.length;v++){var c=d[v];a&&null!=a[c]?this[c]=a[c]:l&&null!=n[c]&&(this[c]=n[c])}},e.prototype._mergeStates=function(t){for(var n,a=r.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(n=n||{},o.style)}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return V(t,a),t},e.prototype.getAnimationStyleProps=function(){return Lu},e.initDefaultProps=((t=e.prototype).type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,void(t.__dirty=3)),e;var t}(u_),Ic=new ut(0,0,0,0),Pc=new ut(0,0,0,0);const tr=KR;var Ee=Math.min,ke=Math.max,Rc=Math.sin,Ec=Math.cos,Mn=2*Math.PI,Iu=Ta(),Pu=Ta(),Ru=Ta();function Eu(r,e,t){if(0!==r.length){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)n=Ee(n,(a=r[l])[0]),i=ke(i,a[0]),o=Ee(o,a[1]),s=ke(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function V_(r,e,t,a,n,i){n[0]=Ee(r,t),n[1]=Ee(e,a),i[0]=ke(r,t),i[1]=ke(e,a)}var B_=[],z_=[];function QR(r,e,t,a,n,i,o,s,l,u){var f=k0,h=re,v=f(r,t,n,o,B_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var p=h(r,t,n,o,B_[c]);l[0]=Ee(p,l[0]),u[0]=ke(p,u[0])}for(v=f(e,a,i,s,z_),c=0;c<v;c++){var d=h(e,a,i,s,z_[c]);l[1]=Ee(d,l[1]),u[1]=ke(d,u[1])}l[0]=Ee(r,l[0]),u[0]=ke(r,u[0]),l[0]=Ee(o,l[0]),u[0]=ke(o,u[0]),l[1]=Ee(e,l[1]),u[1]=ke(e,u[1]),l[1]=Ee(s,l[1]),u[1]=ke(s,u[1])}function JR(r,e,t,a,n,i,o,s){var l=N0,u=le,f=ke(Ee(l(r,t,n),1),0),h=ke(Ee(l(e,a,i),1),0),v=u(r,t,n,f),c=u(e,a,i,h);o[0]=Ee(r,n,v),o[1]=Ee(e,i,c),s[0]=ke(r,n,v),s[1]=ke(e,i,c)}function $R(r,e,t,a,n,i,o,s,l){var u=ea,f=ra,h=Math.abs(n-i);if(h%Mn<1e-4&&h>1e-4)return s[0]=r-t,s[1]=e-a,l[0]=r+t,void(l[1]=e+a);if(Iu[0]=Ec(n)*t+r,Iu[1]=Rc(n)*a+e,Pu[0]=Ec(i)*t+r,Pu[1]=Rc(i)*a+e,u(s,Iu,Pu),f(l,Iu,Pu),(n%=Mn)<0&&(n+=Mn),(i%=Mn)<0&&(i+=Mn),n>i&&!o?i+=Mn:n<i&&o&&(n+=Mn),o){var v=i;i=n,n=v}for(var c=0;c<i;c+=Math.PI/2)c>n&&(Ru[0]=Ec(c)*t+r,Ru[1]=Rc(c)*a+e,u(s,Ru,s),f(l,Ru,l))}var kt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Dn=[],Ln=[],zr=[],Ea=[],Gr=[],Fr=[],kc=Math.min,Oc=Math.max,In=Math.cos,Pn=Math.sin,oa=Math.abs,Nc=Math.PI,ka=2*Nc,Vc=typeof Float32Array<"u",ps=[];function Bc(r){return Math.round(r/Nc*1e8)/1e8%2*Nc}function G_(r,e){var t=Bc(r[0]);t<0&&(t+=ka);var n=r[1];n+=t-r[0],!e&&n-t>=ka?n=t+ka:e&&t-n>=ka?n=t-ka:!e&&t>n?n=t+(ka-Bc(t-n)):e&&t<n&&(n=t-(ka-Bc(n-t))),r[0]=t,r[1]=n}var tE=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){(a=a||0)>0&&(this._ux=oa(a/xu/e)||0,this._uy=oa(a/xu/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(kt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=oa(e-this._xi),n=oa(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(kt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(kt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(kt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){return this._drawPendingPt(),ps[0]=n,ps[1]=i,G_(ps,o),this.addData(kt.A,e,t,a,a,n=ps[0],(i=ps[1])-n,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=In(i)*a+e,this._yi=Pn(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(kt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(kt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;(!this.data||this.data.length!==t)&&Vc&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();for(Vc&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+a)),i=0;i<t;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Vc&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){zr[0]=zr[1]=Gr[0]=Gr[1]=Number.MAX_VALUE,Ea[0]=Ea[1]=Fr[0]=Fr[1]=-Number.MAX_VALUE;var o,e=this.data,t=0,a=0,n=0,i=0;for(o=0;o<this._len;){var s=e[o++],l=1===o;switch(l&&(n=t=e[o],i=a=e[o+1]),s){case kt.M:t=n=e[o++],a=i=e[o++],Gr[0]=n,Gr[1]=i,Fr[0]=n,Fr[1]=i;break;case kt.L:V_(t,a,e[o],e[o+1],Gr,Fr),t=e[o++],a=e[o++];break;case kt.C:QR(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Gr,Fr),t=e[o++],a=e[o++];break;case kt.Q:JR(t,a,e[o++],e[o++],e[o],e[o+1],Gr,Fr),t=e[o++],a=e[o++];break;case kt.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],p=e[o++]+c;o+=1;var d=!e[o++];l&&(n=In(c)*h+u,i=Pn(c)*v+f),$R(u,f,h,v,c,p,d,Gr,Fr),t=In(p)*h+u,a=Pn(p)*v+f;break;case kt.R:V_(n=t=e[o++],i=a=e[o++],n+e[o++],i+e[o++],Gr,Fr);break;case kt.Z:t=n,a=i}ea(zr,zr,Gr),ra(Ea,Ea,Fr)}return 0===o&&(zr[0]=zr[1]=Ea[0]=Ea[1]=0),new ut(zr[0],zr[1],Ea[0]-zr[0],Ea[1]-zr[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<t;){var c=e[v++],p=1===v;p&&(s=i=e[v],l=o=e[v+1]);var d=-1;switch(c){case kt.M:i=s=e[v++],o=l=e[v++];break;case kt.L:var g=e[v++],_=(y=e[v++])-o;(oa(m=g-i)>a||oa(_)>n||v===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break;case kt.C:var S=e[v++],b=e[v++],y=(g=e[v++],e[v++]),x=e[v++],w=e[v++];d=h2(i,o,S,b,g,y,x,w,10),i=x,o=w;break;case kt.Q:d=c2(i,o,S=e[v++],b=e[v++],g=e[v++],y=e[v++],10),i=g,o=y;break;case kt.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,v++,p&&(s=In(L)*M+T,l=Pn(L)*D+C),d=Oc(M,D)*kc(ka,Math.abs(I)),i=In(P)*M+T,o=Pn(P)*D+C;break;case kt.R:s=i=e[v++],l=o=e[v++],d=2*e[v++]+2*e[v++];break;case kt.Z:var m=s-i;_=l-o,d=Math.sqrt(m*m+_*_),i=s,o=l}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var s,l,u,f,h,v,p,m,S,b,a=this.data,n=this._ux,i=this._uy,o=this._len,c=t<1,g=0,y=0,_=0;if(!c||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=t*this._pathLen))t:for(var x=0;x<o;){var w=a[x++],T=1===x;switch(T&&(s=u=a[x],l=f=a[x+1]),w!==kt.L&&_>0&&(e.lineTo(S,b),_=0),w){case kt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case kt.L:h=a[x++],v=a[x++];var C=oa(h-u),M=oa(v-f);if(C>n||M>i){if(c){if(g+(D=p[y++])>m){e.lineTo(u*(1-(L=(m-g)/D))+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var I=C*C+M*M;I>_&&(S=h,b=v,_=I)}break;case kt.C:var P=a[x++],R=a[x++],E=a[x++],N=a[x++],k=a[x++],B=a[x++];if(c){if(g+(D=p[y++])>m){Ia(u,P,E,k,L=(m-g)/D,Dn),Ia(f,R,N,B,L,Ln),e.bezierCurveTo(Dn[1],Ln[1],Dn[2],Ln[2],Dn[3],Ln[3]);break t}g+=D}e.bezierCurveTo(P,R,E,N,k,B),u=k,f=B;break;case kt.Q:if(P=a[x++],R=a[x++],E=a[x++],N=a[x++],c){if(g+(D=p[y++])>m){jo(u,P,E,L=(m-g)/D,Dn),jo(f,R,N,L,Ln),e.quadraticCurveTo(Dn[1],Ln[1],Dn[2],Ln[2]);break t}g+=D}e.quadraticCurveTo(P,R,E,N),u=E,f=N;break;case kt.A:var F=a[x++],W=a[x++],X=a[x++],$=a[x++],tt=a[x++],dt=a[x++],Mt=a[x++],gt=!a[x++],at=X>$?X:$,yt=oa(X-$)>.001,vt=tt+dt,K=!1;if(c&&(g+(D=p[y++])>m&&(vt=tt+dt*(m-g)/D,K=!0),g+=D),yt&&e.ellipse?e.ellipse(F,W,X,$,Mt,tt,vt,gt):e.arc(F,W,at,tt,vt,gt),K)break t;T&&(s=In(tt)*X+F,l=Pn(tt)*$+W),u=In(vt)*X+F,f=Pn(vt)*$+W;break;case kt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var ft=a[x++],Ht=a[x++];if(c){if(g+(D=p[y++])>m){var At=m-g;e.moveTo(h,v),e.lineTo(h+kc(At,ft),v),(At-=ft)>0&&e.lineTo(h+ft,v+kc(At,Ht)),(At-=Ht)>0&&e.lineTo(h+Oc(ft-At,0),v+Ht),(At-=ft)>0&&e.lineTo(h,v+Oc(Ht-At,0));break t}g+=D}e.rect(h,v,ft,Ht);break;case kt.Z:if(c){var D;if(g+(D=p[y++])>m){var L;e.lineTo(u*(1-(L=(m-g)/D))+s*L,f*(1-L)+l*L);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=kt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const Hr=tE;function Oa(r,e,t,a,n,i,o){if(0===n)return!1;var l,s=n;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r===t)return Math.abs(i-r)<=s/2;var f=(l=(e-a)/(r-t))*i-o+(r*a-t*e)/(r-t);return f*f/(l*l+1)<=s/2*s/2}function eE(r,e,t,a,n,i,o,s,l,u,f){if(0===l)return!1;var h=l;return!(f>e+h&&f>a+h&&f>i+h&&f>s+h||f<e-h&&f<a-h&&f<i-h&&f<s-h||u>r+h&&u>t+h&&u>n+h&&u>o+h||u<r-h&&u<t-h&&u<n-h&&u<o-h)&&O0(r,e,t,a,n,i,o,s,u,f,null)<=h/2}function F_(r,e,t,a,n,i,o,s,l){if(0===o)return!1;var u=o;return!(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)&&V0(r,e,t,a,n,i,s,l,null)<=u/2}var H_=2*Math.PI;function Na(r){return(r%=H_)<0&&(r+=H_),r}var ds=2*Math.PI;function rE(r,e,t,a,n,i,o,s,l){if(0===o)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-n)%ds<1e-4)return!0;if(i){var h=a;a=Na(n),n=Na(h)}else a=Na(a),n=Na(n);a>n&&(n+=ds);var v=Math.atan2(l,s);return v<0&&(v+=ds),v>=a&&v<=n||v+ds>=a&&v+ds<=n}function sa(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(1===o||0===o)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var Va=Hr.CMD,Rn=2*Math.PI,Ce=[-1,-1,-1],er=[-1,-1];function iE(){var r=er[0];er[0]=er[1],er[1]=r}function oE(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var f=fu(e,a,i,s,u,Ce);if(0===f)return 0;for(var h=0,v=-1,c=void 0,p=void 0,d=0;d<f;d++){var g=Ce[d],y=0===g||1===g?.5:1;re(r,t,n,o,g)<l||(v<0&&(v=k0(e,a,i,s,er),er[1]<er[0]&&v>1&&iE(),c=re(e,a,i,s,er[0]),v>1&&(p=re(e,a,i,s,er[1]))),h+=2===v?g<er[0]?c<e?y:-y:g<er[1]?p<c?y:-y:s<p?y:-y:g<er[0]?c<e?y:-y:s<c?y:-y)}return h}function sE(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=function v2(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(La(i))R0(o)&&(u=-s/o)>=0&&u<=1&&(n[l++]=u);else{var f=o*o-4*i*s;if(La(f))(u=-o/(2*i))>=0&&u<=1&&(n[l++]=u);else if(f>0){var u,h=Da(f),v=(-o-h)/(2*i);(u=(-o+h)/(2*i))>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}(e,a,i,s,Ce);if(0===l)return 0;var u=N0(e,a,i);if(u>=0&&u<=1){for(var f=0,h=le(e,a,i,u),v=0;v<l;v++){var c=0===Ce[v]||1===Ce[v]?.5:1;le(r,t,n,Ce[v])<o||(f+=Ce[v]<u?h<e?c:-c:i<h?c:-c)}return f}return c=0===Ce[0]||1===Ce[0]?.5:1,le(r,t,n,Ce[0])<o?0:i<e?c:-c}function lE(r,e,t,a,n,i,o,s){if((s-=e)>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ce[0]=-l,Ce[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Rn-1e-4){a=0,n=Rn;var f=i?1:-1;return o>=Ce[0]+r&&o<=Ce[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=Rn,n+=Rn);for(var v=0,c=0;c<2;c++){var p=Ce[c];if(p+r>o){var d=Math.atan2(s,p);f=i?1:-1,d<0&&(d=Rn+d),(d>=a&&d<=n||d+Rn>=a&&d+Rn<=n)&&(d>Math.PI/2&&d<1.5*Math.PI&&(f=-f),v+=f)}}return v}function W_(r,e,t,a,n){for(var v,c,i=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,p=0;p<o;){var d=i[p++],g=1===p;switch(d===Va.M&&p>1&&(t||(s+=sa(l,u,f,h,a,n))),g&&(f=l=i[p],h=u=i[p+1]),d){case Va.M:l=f=i[p++],u=h=i[p++];break;case Va.L:if(t){if(Oa(l,u,i[p],i[p+1],e,a,n))return!0}else s+=sa(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Va.C:if(t){if(eE(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=oE(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Va.Q:if(t){if(F_(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=sE(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Va.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],b=i[p++],x=i[p++];p+=1;var w=!!(1-i[p++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=sa(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(t){if(rE(y,m,S,b,b+x,w,e,T,n))return!0}else s+=lE(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Va.R:if(f=l=i[p++],h=u=i[p++],v=f+i[p++],c=h+i[p++],t){if(Oa(f,h,v,h,e,a,n)||Oa(v,h,v,c,e,a,n)||Oa(v,c,f,c,e,a,n)||Oa(f,c,f,h,e,a,n))return!0}else s+=sa(v,h,v,c,a,n),s+=sa(f,c,f,h,a,n);break;case Va.Z:if(t){if(Oa(l,u,f,h,e,a,n))return!0}else s+=sa(l,u,f,h,a,n);l=f,u=h}}return!t&&!function nE(r,e){return Math.abs(r-e)<1e-4}(u,h)&&(s+=sa(l,u,f,h,a,n)||0),0!==s}var ku=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},An),hE={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Lu.style)},zc=Nr.concat(["invisible","culling","z","z2","zlevel","parent"]),vE=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<zc.length;++s)n[zc[s]]=this[zc[s]];n.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=mt(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];"style"===o?this.style?V(this.style,s):this.useStyle(s):"shape"===o?V(this.shape,s):r.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 t=this.style.fill;if("none"!==t){if(U(t)){var a=es(t,0);return a>.5?ic:a>.2?"#eee":oc}if(t)return oc}return ic},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(U(a)){var n=this.__zr;if(!(!n||!n.isDarkMode())==es(t,0)<.4)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Hr(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(null==a||"none"===a||!(t.lineWidth>0))},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;this.hasFill()||(u=Math.max(u,this.strokeContainThreshold??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 t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(i.contain(t=n[0],a=n[1])){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)),function fE(r,e,t,a){return W_(r,e,!0,t,a)}(s,l/u,t,a)))return!0}if(this.hasFill())return function uE(r,e,t){return W_(r,0,!1,e,t)}(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){"shape"===t?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=a:V(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return zo(ku,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var u,l=!(a&&i);if(a&&a.shape?o?i?u=a.shape:(u=V({},n.shape),V(u,a.shape)):(u=V({},i?this.shape:n.shape),V(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=mt(u),v=0;v<h.length;v++){var c=h[v];"object"==typeof u[c]?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n,a=r.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(n=n||{},o.shape)}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return hE},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(i){function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return Bt(o,i),o.prototype.getDefaultStyle=function(){return et(t.style)},o.prototype.getDefaultShape=function(){return et(t.shape)},o}(e);for(var n in t)"function"==typeof t[n]&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=((t=e.prototype).type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,void(t.__dirty=7)),e;var t}(tr);const pt=vE;var cE=Q({strokeFirst:!0,font:wa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ku),U_=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return Bt(e,r),e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return null!=a&&"none"!==a&&t.lineWidth>0},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.createStyle=function(t){return zo(cE,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;null!=a?a+="":a="";var n=ss(a,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(tr);U_.prototype.type="tspan";const gs=U_;var pE=Q({x:0,y:0},An),dE={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Lu.style)},Y_=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return Bt(e,r),e.prototype.createStyle=function(t){return zo(pE,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(null!=n)return n;var i=function gE(r){return!!(r&&"string"!=typeof r&&r.width&&r.height)}(a.image)?a.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",s=a[o];return null==s?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return dE},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ut(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(tr);Y_.prototype.type="image";const ue=Y_;var Ni=Math.round;function Z_(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Ni(2*a)===Ni(2*n)&&(r.x1=r.x2=En(a,s,!0)),Ni(2*i)===Ni(2*o)&&(r.y1=r.y2=En(i,s,!0))),r}}function X_(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=En(a,s,!0),r.y=En(n,s,!0),r.width=Math.max(En(a+i,s,!1)-r.x,0===i?0:1),r.height=Math.max(En(n+o,s,!1)-r.y,0===o?0:1)),r}}function En(r,e,t){if(!e)return r;var a=Ni(2*r);return(a+Ni(e))%2==0?a/2:(a+(t?1:-1))/2}var mE=function r(){this.x=0,this.y=0,this.width=0,this.height=0},_E={},q_=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new mE},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=X_(_E,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?function yE(r,e){var s,l,u,f,h,t=e.x,a=e.y,n=e.width,i=e.height,o=e.r;n<0&&(t+=n,n=-n),i<0&&(a+=i,i=-i),"number"==typeof o?s=l=u=f=o:o instanceof Array?1===o.length?s=l=u=f=o[0]:2===o.length?(s=u=o[0],l=f=o[1]):3===o.length?(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,s+l>n&&(s*=n/(h=s+l),l*=n/h),u+f>n&&(u*=n/(h=u+f),f*=n/h),l+u>i&&(l*=i/(h=l+u),u*=i/h),s+f>i&&(s*=i/(h=s+f),f*=i/h),r.moveTo(t+s,a),r.lineTo(t+n-l,a),0!==l&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),0!==u&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),0!==f&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),0!==s&&r.arc(t+s,a+s,s,Math.PI,1.5*Math.PI)}(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(pt);q_.prototype.type="rect";const St=q_;var K_={fill:"#000"},SE={style:Q({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},Lu.style)},Q_=function(r){function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=K_,a.attr(t),a}return Bt(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function wE(r){rS(r),A(r.rich,rS)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ut(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),(i=i||t.clone()).union(t)):(i=i||l.clone()).union(l)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||K_},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return V(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=mt(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},V(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return SE},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||wa,n=t.padding,o=function FR(r,e){null!=r&&(r+="");var h,t=e.overflow,a=e.padding,n=e.font,i="truncate"===t,o=bu(n),s=st(e.lineHeight,o),l=!!e.backgroundColor,u="truncate"===e.lineOverflow,f=e.width,v=(h=null==f||"break"!==t&&"breakAll"!==t?r?r.split("\n"):[]:r?O_(r,e.font,f,"breakAll"===t,0).lines:[]).length*s,c=st(e.height,v);if(v>c&&u){var p=Math.floor(c/s);h=h.slice(0,p)}if(r&&i&&null!=f)for(var d=R_(f,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=E_(h[g],d);var y=c,m=0;for(g=0;g<h.length;g++)m=Math.max(He(h[g],n),m);null==f&&(f=m);var _=m;return a&&(y+=a[0]+a[2],_+=a[1]+a[3],f+=a[1]+a[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}(oS(t),t),s=Gc(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,p=this._defaultStyle,d=t.x||0,g=t.y||0,y=t.align||p.align||"left",m=t.verticalAlign||p.verticalAlign||"top",_=d,S=Ei(g,o.contentHeight,m);if(s||n){var b=ls(d,f,y),x=Ei(g,u,m);s&&this._renderBackground(t,t,b,x,f,u)}S+=c/2,n&&(_=iS(d,y,n),"top"===m?S+=n[0]:"bottom"===m&&(S-=n[2]));for(var w=0,T=!1,C=(nS("fill"in t?t.fill:(T=!0,p.fill))),M=(aS("stroke"in t?t.stroke:l||p.autoStroke&&!T?null:(w=2,p.stroke))),D=t.textShadowBlur>0,L=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),I=o.calculatedLineHeight,P=0;P<v.length;P++){var R=this._getOrCreateChild(gs),E=R.createStyle();R.useStyle(E),E.text=v[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=M,E.fill=C,M&&(E.lineWidth=t.lineWidth||w,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=a,tS(E,t),S+=c,L&&R.setBoundingRect(new ut(ls(E.x,t.width,E.textAlign),Ei(E.y,I,E.textBaseline),h,I))}},e.prototype._updateRichTexts=function(){var t=this.style,n=function UR(r,e){var t=new WR;if(null!=r&&(r+=""),!r)return t;for(var l,a=e.width,n=e.height,i=e.overflow,o="break"!==i&&"breakAll"!==i||null==a?null:{width:a,accumWidth:0,breakAll:"breakAll"===i},s=Mc.lastIndex=0;null!=(l=Mc.exec(r));){var u=l.index;u>s&&Dc(t,r.substring(s,u),e,o),Dc(t,l[2],e,o,l[1]),s=Mc.lastIndex}s<r.length&&Dc(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p="truncate"===i,d="truncate"===e.lineOverflow;function g(k,B,F){k.width=B,k.lineHeight=F,h+=F,v=Math.max(v,B)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var w=(x=m.tokens[b]).styleName&&e.rich[x.styleName]||{},T=x.textPadding=w.padding,C=T?T[1]+T[3]:0,M=x.font=w.font||e.font;x.contentHeight=bu(M);var D=st(w.height,x.contentHeight);if(x.innerHeight=D,T&&(D+=T[0]+T[2]),x.height=D,x.lineHeight=Rr(w.lineHeight,e.lineHeight,D),x.align=w&&w.align||e.align,x.verticalAlign=w&&w.verticalAlign||"middle",d&&null!=n&&h+x.lineHeight>n){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=w.width,I=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))x.percentWidth=L,f.push(x),x.contentWidth=He(x.text,M);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&Du(R=zR(R))&&(x.width=Math.max(x.width,R.width*D/R.height))}var E=p&&null!=a?a-S:null;null!=E&&E<x.width?!I||E<C?(x.text="",x.width=x.contentWidth=0):(x.text=P_(x.text,E-C,M,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=He(x.text,M)):x.contentWidth=He(x.text,M)}x.width+=C,S+=x.width,w&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}for(t.outerWidth=t.width=st(a,v),t.outerHeight=t.height=st(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]),y=0;y<f.length;y++){var x;(x=f[y]).width=parseInt(x.percentWidth,10)/100*t.width}return t}(oS(t),t),i=n.width,o=n.outerWidth,s=n.outerHeight,l=t.padding,f=t.y||0,h=this._defaultStyle,c=t.verticalAlign||h.verticalAlign,p=ls(t.x||0,o,t.align||h.align),d=Ei(f,s,c),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+i;Gc(t)&&this._renderBackground(t,t,p,d,o,s);for(var _=!!t.backgroundColor,S=0;S<n.lines.length;S++){for(var b=n.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,M=0,D=g,L=m,I=w-1,P=void 0;M<w&&(!(P=x[M]).align||"left"===P.align);)this._placeToken(P,t,T,y,D,"left",_),C-=P.width,D+=P.width,M++;for(;I>=0&&"right"===(P=x[I]).align;)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(i-(D-g)-(m-L)-C)/2;M<=I;)this._placeToken(P=x[M],t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=i+n/2;"top"===f?h=i+t.height/2:"bottom"===f&&(h=i+n-t.height/2),!t.isLineHolder&&Gc(u)&&this._renderBackground(u,a,"right"===s?o-t.width:"center"===s?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=iS(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(gs),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=nS("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=aS("stroke"in u?u.stroke:"stroke"in a?a.stroke:c||l||y.autoStroke&&!m?null:(_=2,y.stroke)),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||wa,g.opacity=Rr(u.opacity,a.opacity,1),tS(g,u),b&&(g.lineWidth=Rr(u.lineWidth,a.lineWidth,_),g.lineDash=st(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ut(ls(g.x,w,g.textAlign),Ei(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,n,i,o,s){var d,g,m,l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this;if(v||t.lineHeight||u&&f){(d=this._getOrCreateChild(St)).useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v)(m=d.style).fill=l||null,m.fillOpacity=st(t.fillOpacity,1);else if(h){(g=this._getOrCreateChild(ue)).onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}u&&f&&((m=d.style).lineWidth=u,m.stroke=f,m.strokeOpacity=st(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Rr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return eS(t)&&(a=[t.fontStyle,t.fontWeight,$_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Ke(a)||t.textFont||t.font},e}(tr),xE={left:!0,right:1,center:1},bE={top:1,bottom:1,middle:1},J_=["fontStyle","fontWeight","fontSize","fontFamily"];function $_(r){return"string"!=typeof r||-1===r.indexOf("px")&&-1===r.indexOf("rem")&&-1===r.indexOf("em")?isNaN(+r)?"12px":r+"px":r}function tS(r,e){for(var t=0;t<J_.length;t++){var a=J_[t],n=e[a];null!=n&&(r[a]=n)}}function eS(r){return null!=r.fontSize||r.fontFamily||r.fontWeight}function rS(r){if(r){r.font=Q_.makeFont(r);var e=r.align;"middle"===e&&(e="center"),r.align=null==e||xE[e]?e:"left";var t=r.verticalAlign;"center"===t&&(t="middle"),r.verticalAlign=null==t||bE[t]?t:"top",r.padding&&(r.padding=Ql(r.padding))}}function aS(r,e){return null==r||e<=0||"transparent"===r||"none"===r?null:r.image||r.colorStops?"#000":r}function nS(r){return null==r||"none"===r?null:r.image||r.colorStops?"#000":r}function iS(r,e,t){return"right"===e?r-t[1]:"center"===e?r+t[3]/2-t[1]/2:r+t[3]}function oS(r){var e=r.text;return null!=e&&(e+=""),e}function Gc(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const xt=Q_;var nt=Tt(),Fc=function(r,e,t,a){if(a){var n=nt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,"group"===a.type&&a.traverse(function(i){var o=nt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e})}},sS=1,lS={},uS=Tt(),Hc=Tt(),Ae=["emphasis","blur","select"],ms=["normal","emphasis","blur","select"],kn="highlight",Nu="downplay",_s="select",Vu="unselect",Ss="toggleSelect";function Bi(r){return null!=r&&"none"!==r}var fS=new Qo(100);function hS(r){if(U(r)){var e=fS.get(r);return e||(e=vu(r,-.1),fS.put(r,e)),e}if(No(r)){var t=V({},r);return t.colorStops=G(r.colorStops,function(a){return{offset:a.offset,color:vu(a.color,-.1)}}),t}return r}function Bu(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function vS(r){Bu(r,"emphasis",2)}function cS(r){2===r.hoverState&&Bu(r,"normal",0)}function Uc(r){Bu(r,"blur",1)}function pS(r){1===r.hoverState&&Bu(r,"normal",0)}function CE(r){r.selected=!0}function AE(r){r.selected=!1}function dS(r,e,t){e(r,t)}function la(r,e,t){dS(r,e,t),r.isGroup&&r.traverse(function(a){dS(a,e,t)})}function zu(r,e){switch(e){case"emphasis":r.hoverState=2;break;case"normal":r.hoverState=0;break;case"blur":r.hoverState=1;break;case"select":r.selected=!0}}function Yc(r,e){var t=this.states[r];if(this.style){if("emphasis"===r)return function DE(r,e,t,a){var n=t&&ht(t,"select")>=0,i=!1;if(r instanceof pt){var o=uS(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Bi(s)||Bi(l)){var u=(a=a||{}).style||{};"inherit"===u.fill?(i=!0,a=V({},a),(u=V({},u)).fill=s):!Bi(u.fill)&&Bi(s)?(i=!0,a=V({},a),(u=V({},u)).fill=hS(s)):!Bi(u.stroke)&&Bi(l)&&(i||(a=V({},a),u=V({},u)),u.stroke=hS(l)),a.style=u}}return a&&null==a.z2&&(i||(a=V({},a)),a.z2=r.z2+(r.z2EmphasisLift??10)),a}(this,0,e,t);if("blur"===r)return function IE(r,e,t){var a=ht(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:function ME(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o];i[s]=n[s]??(a&&a[s])}for(o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&"style"===u.targetName&&u.saveTo(i,e)}return i}(r,["opacity"],e,{opacity:1}),o=(t=t||{}).style||{};return null==o.opacity&&(t=V({},t),o=V({opacity:a?n:.1*i.opacity},o),t.style=o),t}(this,r,t);if("select"===r)return function LE(r,e,t){return t&&null==t.z2&&((t=V({},t)).z2=r.z2+(r.z2SelectLift??9)),t}(this,0,t)}return t}function On(r){r.stateProxy=Yc;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Yc),t&&(t.stateProxy=Yc)}function gS(r,e){!xS(r,e)&&!r.__highByOuter&&la(r,vS)}function yS(r,e){!xS(r,e)&&!r.__highByOuter&&la(r,cS)}function ua(r,e){r.__highByOuter|=1<<(e||0),la(r,vS)}function fa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&la(r,cS)}function mS(r){la(r,Uc)}function Zc(r){la(r,pS)}function _S(r){la(r,CE)}function SS(r){la(r,AE)}function xS(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function bS(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Hc(i),s="series"===n,l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){pS(u)}),s&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Xc(r,e,t,a){var n=a.getModel();function i(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&Zc(v)}}if(t=t||"coordinateSystem",null!=r&&e&&"none"!==e){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;if(h&&h.master&&(h=h.master),!("series"===t&&!f||"coordinateSystem"===t&&!(h&&s?h===s:f)||"series"===e&&f)){if(a.getViewOfSeriesModel(u).group.traverse(function(g){Uc(g)}),fe(e))i(u.getData(),e);else if(J(e))for(var p=mt(e),d=0;d<p.length;d++)i(u.getData(p[d]),e[p[d]]);l.push(u),Hc(u).isBlured=!0}}),n.eachComponent(function(u,f){if("series"!==u){var h=a.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function qc(r,e,t){if(null!=r&&null!=e){var a=t.getModel().getComponent(r,e);if(a){Hc(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Uc(i)})}}}function Kc(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(null==r||"series"===r||null==e||null==t)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var l,s=o.findHighDownDispatchers(t),u=0;u<s.length;u++)if("self"===nt(s[u]).focus){l=!0;break}return{focusSelf:l,dispatchers:s}}function wS(r){A(r.getAllData(),function(t){var n=t.type;t.data.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?_S(i):SS(i)})})}function OE(r){var e=[];return r.eachSeries(function(t){A(t.getAllData(),function(n){var o=n.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};null!=o&&(l.dataType=o),e.push(l)}})}),e}function Ba(r,e,t){Nn(r,!0),la(r,On),jc(r,e,t)}function Ut(r,e,t,a){a?function NE(r){Nn(r,!1)}(r):Ba(r,e,t)}function jc(r,e,t){var a=nt(r);null!=e?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var TS=["emphasis","blur","select"],VE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function he(r,e,t,a){t=t||"itemStyle";for(var n=0;n<TS.length;n++){var i=TS[n],o=e.getModel([i,t]);r.ensureState(i).style=a?a(o):o[VE[t]]()}}function Nn(r,e){var t=!1===e,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function xs(r){return!(!r||!r.__highDownDispatcher)}function Qc(r){var e=r.type;return e===_s||e===Vu||e===Ss}function CS(r){var e=r.type;return e===kn||e===Nu}var AS=Tt();function zi(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var l="update"===r;if(e&&e.isAnimationEnabled()){var u=void 0,f=void 0,h=void 0;return a?(u=st(a.duration,200),f=st(a.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(u=i.duration),null!=i.easing&&(f=i.easing),null!=i.delay&&(h=i.delay)),j(h)&&(h=h(t,n)),j(u)&&(u=u(t)),{duration:u||0,delay:h,easing:f}}return null}function Jc(r,e,t,a,n,i,o){var l,s=!1;j(n)?(o=i,i=n,n=null):J(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u="leave"===r;u||e.stopAnimation("leave");var f=zi(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var p={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Ct(r,e,t,a,n,i){Jc("update",r,e,t,a,n,i)}function zt(r,e,t,a,n,i){Jc("enter",r,e,t,a,n,i)}function Gi(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++)if("leave"===r.animators[e].scope)return!0;return!1}function za(r,e,t,a,n,i){Gi(r)||Jc("leave",r,e,t,a,n,i)}function MS(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),za(r,{style:{opacity:0}},e,t,a)}function bs(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||MS(n,e,t,a)}):MS(r,e,t,a)}function br(r){AS(r).oldStyle=r.style}var Gu={};function DS(r,e){for(var t=0;t<Ae.length;t++){var a=Ae[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function $c(r,e,t){var s,a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),null!=t?{interpolatedValue:t}:null)),null==s&&(s=j(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Ae.length;u++){var f=Ae[u],h=e[f];l[f]=st(a?a.getFormattedLabel(n,f,null,i,h&&h.get("formatter")):null,s)}return l}function ve(r,e,t,a){t=t||Gu;for(var n=r instanceof xt,i=!1,o=0;o<ms.length;o++)if((s=e[ms[o]])&&s.getShallow("show")){i=!0;break}var l=n?r:r.getTextContent();if(i){n||(l||(l=new xt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=$c(t,e),f=e.normal,h=!!f.getShallow("show"),v=Ot(f,a&&a.normal,t,!1,!n);for(v.text=u.normal,n||r.setTextConfig(Fu(f,t,!1)),o=0;o<Ae.length;o++){var s,c=Ae[o];if(s=e[c]){var p=l.ensureState(c),d=!!st(s.getShallow("show"),h);d!==h&&(p.ignore=!d),p.style=Ot(s,a&&a[c],t,!0,!n),p.style.text=u[c],n||(r.ensureState(c).textConfig=Fu(s,t,!0))}}l.silent=!!f.getShallow("silent"),null!=l.style.x&&(v.x=l.style.x),null!=l.style.y&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),t.enableTextSetter&&(Fi(l).setLabelText=function(y){var m=$c(t,e,y);DS(l,m)})}else l&&(l.ignore=!0);r.dirty()}function ae(r,e){for(var t={normal:r.getModel(e=e||"label")},a=0;a<Ae.length;a++){var n=Ae[a];t[n]=r.getModel([n,e])}return t}function Ot(r,e,t,a,n){var i={};return function HE(r,e,t,a,n){t=t||Gu;var l,i=e.ecModel,o=i&&i.option.textStyle,s=function WE(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Gu).rich;if(t){e=e||{};for(var a=mt(t),n=0;n<a.length;n++)e[a[n]]=1}r=r.parentModel}return e}(e);if(s)for(var u in l={},s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);RS(l[u]={},f,o,t,a,n,!1,!0)}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("minMargin");null!=v&&(r.margin=v),RS(r,e,o,t,a,n,!0,!1)}(i,r,t,a,n),e&&V(i,e),i}function Fu(r,e,t){e=e||{};var n,a={},i=r.getShallow("rotate"),o=st(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return"outside"===(n=r.getShallow("position")||(t?null:"inside"))&&(n=e.defaultOutsidePosition||"top"),null!=n&&(a.position=n),null!=s&&(a.offset=s),null!=i&&(i*=Math.PI/180,a.rotation=i),null!=o&&(a.distance=o),a.outsideFill="inherit"===r.get("color")?e.inheritColor||null:"auto",a}var LS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],IS=["align","lineHeight","width","height","tag","verticalAlign"],PS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function RS(r,e,t,a,n,i,o,s){t=!n&&t||Gu;var l=a&&a.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=st(e.getShallow("opacity"),t.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===f||"auto"===f)&&(f=l||null),i||(u=u||t.color,f=f||t.textBorderColor),null!=u&&(r.fill=u),null!=f&&(r.stroke=f);var v=st(e.getShallow("textBorderWidth"),t.textBorderWidth);null!=v&&(r.lineWidth=v);var c=st(e.getShallow("textBorderType"),t.textBorderType);null!=c&&(r.lineDash=c);var p=st(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);null!=p&&(r.lineDashOffset=p),!n&&null==h&&!s&&(h=a&&a.defaultOpacity),null!=h&&(r.opacity=h),!n&&!i&&null==r.fill&&a.inheritColor&&(r.fill=a.inheritColor);for(var d=0;d<LS.length;d++)null!=(y=st(e.getShallow(g=LS[d]),t[g]))&&(r[g]=y);for(d=0;d<IS.length;d++)null!=(y=e.getShallow(g=IS[d]))&&(r[g]=y);if(null==r.verticalAlign){var m=e.getShallow("baseline");null!=m&&(r.verticalAlign=m)}if(!o||!a.disableBox){for(d=0;d<PS.length;d++){var g,y;null!=(y=e.getShallow(g=PS[d]))&&(r[g]=y)}var _=e.getShallow("borderType");null!=_&&(r.borderDash=_),("auto"===r.backgroundColor||"inherit"===r.backgroundColor)&&l&&(r.backgroundColor=l),("auto"===r.borderColor||"inherit"===r.borderColor)&&l&&(r.borderColor=l)}}function ES(r,e){var t=e&&e.getModel("textStyle");return Ke([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Fi=Tt();function kS(r,e,t,a){if(r){var n=Fi(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function OS(r,e,t,a,n){var i=Fi(r);if(i.valueAnimation&&i.prevValue!==i.value){var o=i.defaultInterpolatedText,s=st(i.interpolatedValue,i.prevValue),l=i.value;r.percent=0,(null==i.prevValue?zt:Ct)(r,{percent:1},a,e,null,function u(f){var h=M_(t,i.precision,s,l,f);i.interpolatedValue=1===f?null:h;var v=$c({labelDataIndex:e,labelFetcher:n,defaultText:o?o(h):h+""},i.statesModels,h);DS(r,v)})}}var UE=["textStyle","color"],tp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ep=new xt,YE=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(UE):null)},r.prototype.getFont=function(){return ES({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<tp.length;a++)t[tp[a]]=this.getShallow(tp[a]);return ep.useStyle(t),ep.update(),ep.getBoundingRect()},r}();const ZE=YE;var NS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],XE=Cn(NS),qE=function(){function r(){}return r.prototype.getLineStyle=function(e){return XE(this,e)},r}(),VS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],KE=Cn(VS),jE=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return KE(this,e,t)},r}(),Vn=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i]},r.prototype.mergeOption=function(e,t){ot(this.option,e,!0)},r.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=null==a?a:a[e];if(null==n&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=null!=e,n=a?this.parsePath(e):null;return new r(a?this._doGet(n):this.option,t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),this.ecModel)},r.prototype.isEmpty=function(){return null==this.option},r.prototype.restoreData=function(){},r.prototype.clone=function(){return new(0,this.constructor)(et(this.option))},r.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!bt.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&(!e[n]||null!=(a=a&&"object"==typeof a?a[e[n]]:null));n++);return null==a&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r}();Tc(Vn),function ER(r){var e=["__\0is_clz",RR++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!(!t||!t[e])}}(Vn),Zt(Vn,qE),Zt(Vn,jE),Zt(Vn,BR),Zt(Vn,ZE);const Rt=Vn;var QE=Math.round(10*Math.random());function Hi(r){return[r||"",QE++].join("_")}function Ga(r,e){return ot(ot({},r,!0),e,!0)}var Wu={},ap={},BS=bt.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function np(r,e){r=r.toUpperCase(),ap[r]=new Rt(e),Wu[r]=e}function ip(r){return ap[r]}np("EN",{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"}},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:". "}}}}),np("ZH",{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"}},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 Ts=36e5,rr=24*Ts,zS=365*rr,Cs={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Uu="{yyyy}-{MM}-{dd}",GS={year:"{yyyy}",month:"{yyyy}-{MM}",day:Uu,hour:Uu+" "+Cs.hour,minute:Uu+" "+Cs.minute,second:Uu+" "+Cs.second,millisecond:Cs.none},lp=["year","month","day","hour","minute","second","millisecond"],FS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oe(r,e){return"0000".substr(0,e-(r+="").length)+r}function Wi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function nk(r){return r===Wi(r)}function As(r,e,t,a){var n=Ue(r),i=n[up(t)](),o=n[Ui(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Yu(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Ms(t)](),h=(f-1)%12+1,v=n[Zu(t)](),c=n[Xu(t)](),p=n[qu(t)](),g=(a instanceof Rt?a:ip(a||BS)||function ak(){return ap.EN}()).getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Oe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oe(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oe(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Oe(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Oe(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Oe(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Oe(p,3)).replace(/{S}/g,p+"")}function HS(r,e){var t=Ue(r),a=t[Ui(e)]()+1,n=t[Yu(e)](),i=t[Ms(e)](),o=t[Zu(e)](),s=t[Xu(e)](),u=0===t[qu(e)](),f=u&&0===s,h=f&&0===o,v=h&&0===i,c=v&&1===n;return c&&1===a?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function WS(r,e,t){var a=wt(r)?Ue(r):r;switch(e=e||HS(r,t)){case"year":return a[up(t)]();case"half-year":return a[Ui(t)]()>=6?1:0;case"quarter":return Math.floor((a[Ui(t)]()+1)/4);case"month":return a[Ui(t)]();case"day":return a[Yu(t)]();case"half-day":return a[Ms(t)]()/24;case"hour":return a[Ms(t)]();case"minute":return a[Zu(t)]();case"second":return a[Xu(t)]();case"millisecond":return a[qu(t)]()}}function up(r){return r?"getUTCFullYear":"getFullYear"}function Ui(r){return r?"getUTCMonth":"getMonth"}function Yu(r){return r?"getUTCDate":"getDate"}function Ms(r){return r?"getUTCHours":"getHours"}function Zu(r){return r?"getUTCMinutes":"getMinutes"}function Xu(r){return r?"getUTCSeconds":"getSeconds"}function qu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function sk(r){return r?"setUTCFullYear":"setFullYear"}function US(r){return r?"setUTCMonth":"setMonth"}function YS(r){return r?"setUTCDate":"setDate"}function ZS(r){return r?"setUTCHours":"setHours"}function XS(r){return r?"setUTCMinutes":"setMinutes"}function qS(r){return r?"setUTCSeconds":"setSeconds"}function KS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function fp(r){if(!Sc(r))return U(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function hp(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Bn=Ql;function vp(r,e,t){function n(f){return f&&Ke(f)?f:"-"}function i(f){return!(null==f||isNaN(f)||!isFinite(f))}var o="time"===e,s=r instanceof Date;if(o||s){var l=o?Ue(r):r;if(!isNaN(+l))return As(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",t);if(s)return"-"}if("ordinal"===e)return Kl(r)?n(r):wt(r)&&i(r)?r+"":"-";var u=Vr(r);return i(u)?fp(u):Kl(r)?n(r):"boolean"==typeof r?r+"":"-"}var jS=["a","b","c","d","e","f","g"],cp=function(r,e){return"{"+r+(e??"")+"}"};function pp(r,e,t){z(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=jS[i];r=r.replace(cp(o),cp(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(cp(jS[l],s),t?we(u):u)}return r}function QS(r,e){var t=U(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";return a?"html"===i?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+we(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+we(a)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(t.markerId||"markerX")+"|}  ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}function uk(r,e,t){("week"===r||"month"===r||"quarter"===r||"half-year"===r||"year"===r)&&(r="MM-dd\nyyyy");var a=Ue(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),h=a[n+"Milliseconds"]();return r.replace("MM",Oe(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Oe(i%100+"",2)).replace("dd",Oe(s,2)).replace("d",s).replace("hh",Oe(l,2)).replace("h",l).replace("mm",Oe(u,2)).replace("m",u).replace("ss",Oe(f,2)).replace("s",f).replace("SSS",Oe(h,3))}function fk(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function zn(r,e){return e=e||"transparent",U(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Ku(r,e){if("_blank"===e||"blank"===e){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var ju=A,JS=["left","right","top","bottom","width","height"],Gn=[["width","left","right"],["height","top","bottom"]];function dp(r,e,t,a,n){var i=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var s=0;e.eachChild(function(l,u){var c,p,f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect();if("horizontal"===r){var d=f.width+(v?-v.x+f.x:0);(c=i+d)>a||l.newline?(i=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);(p=o+g)>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===r?i=c+t:o=p+t)})}var Fn=dp;function Jt(r,e,t){t=Bn(t||0);var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),null!=c&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=.8*a:f=.8*n),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-v}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-h}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ut(i+t[3],o+t[0],u,f);return p.margin=t,p}function Qu(r,e,t,a,n,i){var u,o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if((i=i||r).x=r.x,i.y=r.y,!o&&!s)return!1;if("raw"===l)u="group"===r.type?new ut(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();(u=u.clone()).applyTransform(f)}var h=Jt(Q({width:u.width,height:u.height},e),t,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return"raw"===l?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function Ds(r){var e=r.layoutMode||r.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function Fa(r,e,t){var a=t&&t.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Gn[0],0),i=o(Gn[1],1);function o(f,h){var v={},c=0,p={},d=0;if(ju(f,function(_){p[_]=r[_]}),ju(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(2===d||!c)return p;if(c>=2)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return null!=f[h]&&"auto"!==f[h]}function u(f,h,v){ju(f,function(c){h[c]=v[c]})}u(Gn[0],r,n),u(Gn[1],r,i)}function Yi(r){return $S({},r)}function $S(r,e){return e&&r&&ju(JS,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}it(dp,"vertical"),it(dp,"horizontal");var ck=Tt(),Zi=function(r){function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Hi("ec_cpt_model"),i}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Ds(this),i=n?Yi(t):{};ot(t,a.getTheme().get(this.mainType)),ot(t,this.getDefaultOption()),n&&Fa(t,i,n)},e.prototype.mergeOption=function(t,a){ot(this.option,t,!0);var n=Ds(this);n&&Fa(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function IR(r){return!(!r||!r[D_])}(t))return t.defaultOption;var a=ck(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ot(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Id";return cs(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((t=e.prototype).type="component",t.id="",t.name="",t.mainType="",t.subType="",void(t.componentIndex=0)),e;var t}(Rt);L_(Zi,Rt),Mu(Zi),function JE(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Br(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Br(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}(Zi),function $E(r,e){function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}r.topologicalTravel=function(i,o,s,l){if(i.length){var u=function t(i){var o={},s=[];return A(i,function(l){var u=a(o,l),h=function n(i,o){var s=[];return A(i,function(l){ht(o,l)>=0&&s.push(l)}),s}(u.originalDeps=e(l),i);u.entryCount=h.length,0===u.entryCount&&s.push(l),A(h,function(v){ht(u.predecessor,v)<0&&u.predecessor.push(v);var c=a(o,v);ht(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}(o),f=u.graph,h=u.noEntryList,v={};for(A(i,function(m){v[m]=!0});h.length;){var c=h.pop(),p=f[c],d=!!v[c];d&&(s.call(l,c,p.originalDeps.slice()),delete v[c]),A(p.successor,d?y:g)}A(v,function(){throw new Error("")})}function g(m){f[m].entryCount--,0===f[m].entryCount&&h.push(m)}function y(m){v[m]=!0,g(m)}}}(Zi,function pk(r){var e=[];return A(Zi.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return Br(t).main}),"dataset"!==r&&ht(e,"dataset")<=0&&e.unshift("dataset"),e});const _t=Zi;var t1="";typeof navigator<"u"&&(t1=navigator.platform||"");var Xi="rgba(0, 0, 0, 0.2)";const dk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:t1.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 e1=q(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ar="original",ye="arrayRows",nr="objectRows",Wr="keyedColumns",ha="typedArray",r1="unknown",Ur="column",qi="row",a1=Tt();function n1(r,e,t){var a={},n=yp(e);if(!n||!r)return a;var f,h,i=[],o=[],l=a1(e.ecModel).datasetMap,u=n.uid+"_"+t.seriesLayoutBy;A(r=r.slice(),function(d,g){var y=J(d)?d:r[g]={name:d};"ordinal"===y.type&&null==f&&(f=g,h=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});function c(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return A(r,function(d,g){var y=d.name,m=p(d);if(null==f)c(a[y],_=v.valueWayDim,m),c(o,_,m),v.valueWayDim+=m;else if(f===g)c(a[y],0,m),c(i,0,m);else{var _;c(a[y],_=v.categoryWayDim,m),c(o,_,m),v.categoryWayDim+=m}}),i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function gp(r,e,t){var a={};if(!yp(r))return a;var s,i=e.sourceFormat,o=e.dimensionsDefine;(i===nr||i===Wr)&&A(o,function(f,h){"name"===(J(f)?f.name:f)&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,p=Math.min(5,t);c<p;c++){var d=o1(e.data,i,e.seriesLayoutBy,o,e.startIndex,c);v.push(d);var g=3===d;if(g&&null==f.v&&c!==s&&(f.v=c),(null==f.n||f.n===f.v||!g&&3===v[f.n])&&(f.n=c),y(f)&&3!==v[f.n])return f;g||(2===d&&null==h.v&&c!==s&&(h.v=c),(null==h.n||h.n===h.v)&&(h.n=c))}function y(m){return null!=m.v&&null!=m.n}return y(f)?f:y(h)?h:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function yp(r){if(!r.get("data",!0))return cs(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Qt).models[0]}function i1(r,e){return o1(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function o1(r,e,t,a,n,i){var o,l,u;if(Re(r))return 3;if(a){var f=a[i];J(f)?(l=f.name,u=f.type):U(f)&&(l=f)}if(null!=u)return"ordinal"===u?1:3;if(e===ye){var h=r;if(t===qi){for(var v=h[i],c=0;c<(v||[]).length&&c<5;c++)if(null!=(o=S(v[n+c])))return o}else for(c=0;c<h.length&&c<5;c++){var p=h[n+c];if(p&&null!=(o=S(p[i])))return o}}else if(e===nr){var d=r;if(!l)return 3;for(c=0;c<d.length&&c<5;c++)if((g=d[c])&&null!=(o=S(g[l])))return o}else if(e===Wr){if(!l)return 3;if(!(v=r[l])||Re(v))return 3;for(c=0;c<v.length&&c<5;c++)if(null!=(o=S(v[c])))return o}else if(e===ar){var m=r;for(c=0;c<m.length&&c<5;c++){var g,_=Oi(g=m[c]);if(!z(_))return 3;if(null!=(o=S(_[i])))return o}}function S(b){var x=U(b);return null!=b&&isFinite(b)&&""!==b?x?2:3:x&&"-"!==b?1:void 0}return 3}var mp=q(),s1=Tt(),Sk=Tt(),_p=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=Pt(this.get("color",!0)),i=this.get("colorLayer",!0);return l1(this,s1,n,i,e,t,a)},r.prototype.clearColorPalette=function(){!function bk(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}(this,s1)},r}();function Sp(r,e,t,a){var n=Pt(r.get(["aria","decal","decals"]));return l1(r,Sk,n,null,e,t,a)}function l1(r,e,t,a,n,i,o){var s=e(i=i||r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=null!=o&&a?function xk(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}(a,o):t;if((f=f||t)&&f.length){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}var Ju,Ls,u1,f1="\0_ec_inner",v1=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Rt(i),this._locale=new Rt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=d1(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,d1(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var o=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(o,a)):u1(this,o),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||"recreate"===t||"media"===t){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;(function gk(r){a1(r).datasetMap=q()})(this),A(t,function(h,v){null!=h&&(_t.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=null==n[v]?et(h):ot(n[v],h,!0))}),u&&u.each(function(h,v){_t.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),function f(h){var v=function _k(r,e,t){var a=mp.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}(this,h,Pt(t[h])),c=i.get(h),d=T_(c,v,c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll");(function xR(r,e,t){A(r,function(a){var n=a.newOption;J(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=function bR(r,e,t,a){return e.type?e.type:t?t.subType:a.determineSubType(r,e)}(e,n,a.existing,t))})})(d,h,_t),n[h]=null,i.set(h,null),o.set(h,0);var _,g=[],y=[],m=0;A(d,function(b,x){var w=b.existing,T=b.newOption;if(T){var M=_t.getClass(h,b.keyInfo.subType,!("series"===h));if(!M)return;if("tooltip"===h){if(_)return;_=!0}if(w&&w.constructor===M)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=V({componentIndex:x},b.keyInfo);V(w=new M(T,this,this,I),I),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}else w&&(w.mergeOption({},this),w.optionUpdated({},!1));w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),"series"===h&&Ju(this)},this),this._seriesIndices||Ju(this)},e.prototype.getOption=function(){var t=et(this.option);return A(t,function(a,n){if(_t.hasClass(n)){for(var i=Pt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!hs(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[f1],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(null==a)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var l,n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);return s&&s.length?(null!=n?(l=[],A(Pt(n),function(u){s[u]&&l.push(s[u])})):l=null!=i?c1("id",i,s):null!=o?c1("name",o,s):Lt(s,function(u){return!!u}),p1(l,t)):[]},e.prototype.findComponents=function(t){var n=t.mainType,i=function s(u){var f=n+"Index",h=n+"Id",v=n+"Name";return!u||null==u[f]&&null==u[h]&&null==u[v]?null:{mainType:n,index:u[f],id:u[h],name:u[v]}}(t.query);return function l(u){return t.filter?Lt(u,t.filter):u}(p1(i?this.queryComponents(i):Lt(this._componentsMap.get(n),function(u){return!!u}),t))},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(j(t)){var o=a,s=t;i.each(function(h,v){for(var c=0;h&&c<h.length;c++){var p=h[c];p&&s.call(o,v,p,p.componentIndex)}})}else for(var l=U(t)?i.get(t):J(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=te(t,null);return Lt(this._componentsMap.get("series"),function(n){return!!n&&null!=a&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Lt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return Lt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Ls(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){A(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Ls(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return A(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Ls(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Ls(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},e.prototype.restoreData=function(t){Ju(this);var a=this._componentsMap,n=[];a.each(function(i,o){_t.hasClass(o)&&n.push(o)}),_t.topologicalTravel(n,_t.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&("series"!==i||!function Ck(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return null!=t&&r.componentIndex!==t||null!=a&&r.id!==a||null!=n&&r.name!==n}}(o,t))&&o.restoreData()})})},e.internalField=(Ju=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=q(a)},Ls=function(t){},void(u1=function(t,a){t.option={},t.option[f1]=1,t._componentsMap=q({series:[]}),t._componentsCount=q();var n=a.aria;J(n)&&null==n.enabled&&(n.enabled=!0),function Ak(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,n){"colorLayer"===n&&t||_t.hasClass(n)||("object"==typeof a?r[n]=r[n]?ot(r[n],a,!1):et(a):null==r[n]&&(r[n]=a))})}(a,t._theme.option),ot(a,dk,!1),t._mergeOption(a,null)})),e}(Rt);function c1(r,e,t){if(z(e)){var a=q();return A(e,function(i){null!=i&&null!=te(i,null)&&a.set(i,!0)}),Lt(t,function(i){return i&&a.get(i[r])})}var n=te(e,null);return Lt(t,function(i){return i&&null!=n&&i[r]===n})}function p1(r,e){return e.hasOwnProperty("subType")?Lt(r,function(t){return t&&t.subType===e.subType}):r}function d1(r){var e=q();return r&&A(Pt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Zt(v1,_p);const g1=v1;var Mk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const y1=function r(e){A(Mk,function(t){this[t]=Y(e[t],e)},this)};var xp={},Lk=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var a=[];A(xp,function(n,i){var o=n.create(e,t);a=a.concat(o||[])}),this._coordinateSystems=a},r.prototype.update=function(e,t){A(this._coordinateSystems,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){xp[e]=t},r.get=function(e){return xp[e]},r}();const Ki=Lk;var Ik=/^(min|max)?(.+)$/,Pk=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(Pt(e.series),function(o){o&&o.data&&Re(o.data)&&Vo(o.data)}),A(Pt(e.dataset),function(o){o&&o.source&&Re(o.source)&&Vo(o.source)})),e=et(e);var n=this._optionBackup,i=function Rk(r,e,t){var n,i,a=[],o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);function v(c){A(e,function(p){p(c,t)})}return o?(i=o).timeline||(i.timeline=s):((h||f)&&(r.options=r.media=null),i=r),f&&z(u)&&A(u,function(c){c&&c.option&&(c.query?a.push(c):n||(n=c))}),v(i),A(l,function(c){return v(c)}),A(a,function(c){return v(c.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],et(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=et(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)Ek(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!function Ok(r,e){return r.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=G(o,function(f){return et(-1===f?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function Ek(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return A(r,function(i,o){var s=o.match(Ik);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function kk(r,e,t){return"min"===t?r>=e:"max"===t?r<=e:r===e})(a[u],i,l)||(n=!1)}}),n}const Nk=Pk;var wr=A,Is=J,m1=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function bp(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=m1.length;t<a;t++){var n=m1[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?ot(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ot(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function me(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,Q(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Ps(r){me(r,"itemStyle"),me(r,"lineStyle"),me(r,"areaStyle"),me(r,"label"),me(r,"labelLine"),me(r,"upperLabel"),me(r,"edgeLabel")}function $t(r,e){var t=Is(r)&&r[e],a=Is(t)&&t.textStyle;if(a)for(var n=0,i=w_.length;n<i;n++){var o=w_[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function ir(r){r&&(Ps(r),$t(r,"label"),r.emphasis&&$t(r.emphasis,"label"))}function va(r){return z(r)?r:r?[r]:[]}function _1(r){return(z(r)?r[0]:r)||{}}function S1(r){r&&A(Fk,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var Fk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Hk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Rs(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<wp.length;t++){var a=wp[t][1];null!=e[a]&&(e[wp[t][0]]=e[a])}}function x1(r){!r||"edge"===r.alignTo&&null!=r.margin&&null==r.edgeDistance&&(r.edgeDistance=r.margin)}function b1(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function w1(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&w1(r[t].children,e)}function T1(r,e){(function Bk(r,e){wr(va(r.series),function(a){Is(a)&&function Vk(r){if(Is(r)){bp(r),Ps(r),$t(r,"label"),$t(r,"upperLabel"),$t(r,"edgeLabel"),r.emphasis&&($t(r.emphasis,"label"),$t(r.emphasis,"upperLabel"),$t(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(bp(e),ir(e));var t=r.markLine;t&&(bp(t),ir(t));var a=r.markArea;a&&ir(a);var n=r.data;if("graph"===r.type){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Re(i))for(var o=0;o<i.length;o++)ir(i[o]);A(r.categories,function(u){Ps(u)})}if(n&&!Re(n))for(o=0;o<n.length;o++)ir(n[o]);if((e=r.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)ir(s[o])}if((t=r.markLine)&&t.data){var l=t.data;for(o=0;o<l.length;o++)z(l[o])?(ir(l[o][0]),ir(l[o][1])):ir(l[o])}"gauge"===r.type?($t(r,"axisLabel"),$t(r,"title"),$t(r,"detail")):"treemap"===r.type?(me(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Ps(u)})):"tree"===r.type&&Ps(r.leaves)}}(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),wr(t,function(a){wr(va(r[a]),function(n){n&&($t(n,"axisLabel"),$t(n.axisPointer,"label"))})}),wr(va(r.parallel),function(a){var n=a&&a.parallelAxisDefault;$t(n,"axisLabel"),$t(n&&n.axisPointer,"label")}),wr(va(r.calendar),function(a){me(a,"itemStyle"),$t(a,"dayLabel"),$t(a,"monthLabel"),$t(a,"yearLabel")}),wr(va(r.radar),function(a){$t(a,"name"),a.name&&null==a.axisName&&(a.axisName=a.name,delete a.name),null!=a.nameGap&&null==a.axisNameGap&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),wr(va(r.geo),function(a){Is(a)&&(ir(a),wr(va(a.regions),function(n){ir(n)}))}),wr(va(r.timeline),function(a){ir(a),me(a,"label"),me(a,"itemStyle"),me(a,"controlStyle",!0);var n=a.data;z(n)&&A(n,function(i){J(i)&&(me(i,"label"),me(i,"itemStyle"))})}),wr(va(r.toolbox),function(a){me(a,"iconStyle"),wr(a.feature,function(n){me(n,"iconStyle")})}),$t(_1(r.axisPointer),"label"),$t(_1(r.tooltip).axisPointer,"label")})(r,e),r.series=Pt(r.series),A(r.series,function(t){if(J(t)){var a=t.type;if("line"===a)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===a||"gauge"===a){if(null!=t.clockWise&&(t.clockwise=t.clockWise),x1(t.label),(n=t.data)&&!Re(n))for(var i=0;i<n.length;i++)x1(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===a){var o=function zk(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&null!=(a=a&&a[t[n]]);n++);return a}(t,"pointer.color");null!=o&&function Gk(r,e,t,a){for(var o,n=e.split(","),i=r,s=0;s<n.length-1;s++)null==i[o=n[s]]&&(i[o]={}),i=i[o];(a||null==i[n[s]])&&(i[n[s]]=t)}(t,"itemStyle.color",o)}else if("bar"===a){var n;if(Rs(t),Rs(t.backgroundStyle),Rs(t.emphasis),(n=t.data)&&!Re(n))for(i=0;i<n.length;i++)"object"==typeof n[i]&&(Rs(n[i]),Rs(n[i]&&n[i].emphasis))}else if("sunburst"===a){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),b1(t),w1(t.data,b1)}else"graph"===a||"sankey"===a?function Wk(r){!r||null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus&&(r.emphasis.focus="adjacency"))}(t):"map"===a&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Q(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),S1(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(Hk,function(t){var a=r[t];a&&(z(a)||(a=[a]),A(a,function(n){S1(n)}))})}function Yk(r){A(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,h){var c,p,v=o.get(e.stackedDimension,h);if(isNaN(v))return n;s?p=o.getRawIndex(h):c=o.get(e.stackedByDimension,h);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&v>=0&&m>0||"samesign"===l&&v<=0&&m<0){v=hR(v,m),d=m;break}}}return a[0]=v,a[1]=d,a})})}var $u=function r(e){this.data=e.data||(e.sourceFormat===Wr?{}:[]),this.sourceFormat=e.sourceFormat||r1,this.seriesLayoutBy=e.seriesLayoutBy||Ur,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];null==n.type&&1===i1(this,a)&&(n.type="ordinal")}};function Tp(r){return r instanceof $u}function Cp(r,e,t){t=t||C1(r);var a=e.seriesLayoutBy,n=function Xk(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:A1(n),startIndex:o,dimensionsDetectedCount:i};if(e===ye){var s=r;"auto"===a||null==a?M1(function(u){null!=u&&"-"!==u&&(U(u)?null==o&&(o=1):o=0)},t,s,10):o=wt(a)?a:a?1:0,!n&&1===o&&(n=[],M1(function(u,f){n[f]=null!=u?u+"":""},t,s,1/0)),i=n?n.length:t===qi?s.length:s[0]?s[0].length:null}else if(e===nr)n||(n=function qk(r){for(var t,e=0;e<r.length&&!(t=r[e++]););if(t){var a=[];return A(t,function(n,i){a.push(i)}),a}}(r));else if(e===Wr)n||(n=[],A(r,function(u,f){n.push(f)}));else if(e===ar){var l=Oi(r[0]);i=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:A1(n),dimensionsDetectedCount:i}}(r,t,a,e.sourceHeader,e.dimensions);return new $u({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:et(e)})}function Ap(r){return new $u({data:r,sourceFormat:Re(r)?ha:ar})}function Zk(r){return new $u({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:et(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function C1(r){var e=r1;if(Re(r))e=ha;else if(z(r)){0===r.length&&(e=ye);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(null!=n){if(z(n)){e=ye;break}if(J(n)){e=nr;break}}}}else if(J(r))for(var i in r)if(Z(r,i)&&fe(r[i])){e=Wr;break}return e}function A1(r){if(r){var e=q();return G(r,function(t,a){var n={name:(t=J(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function M1(r,e,t,a){if(e===qi)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else{var i=t[0]||[];for(n=0;n<i.length&&n<a;n++)r(i[n],n)}}function D1(r){var e=r.sourceFormat;return e===nr||e===Wr}var Hn,Wn,Un,L1,I1,P1=function(){function r(e,t){var a=Tp(e)?e:Ap(e);this._source=a;var n=this._data=a.data;a.sourceFormat===ha&&(this._offset=0,this._dimSize=t,this._data=n),I1(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;I1=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine;if(V(o,L1[Dp(u,f)]),u===ha)o.getItem=t,o.count=n,o.fillStorage=a;else{var p=E1(u,f);o.getItem=Y(p,null,s,h,v);var d=O1(u,f);o.count=Y(d,null,s,h,v)}};var t=function(o,s){s=s||[];for(var l=this._data,u=this._dimSize,f=u*(o-=this._offset),h=0;h<u;h++)s[h]=l[f+h];return s},a=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],p=null==c[0]?1/0:c[0],d=null==c[1]?-1/0:c[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}c[0]=p,c[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[ye+"_"+Ur]={pure:!0,appendData:i},e[ye+"_"+qi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nr]={pure:!0,appendData:i},e[Wr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[ar]={appendData:i},e[ha]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},L1=e}(),r}(),R1=function(r,e,t,a){return r[a]},Kk=((Hn={})[ye+"_"+Ur]=function(r,e,t,a){return r[a+e]},Hn[ye+"_"+qi]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Hn[nr]=R1,Hn[Wr]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var l=r[t[o].name];i[o]=l?l[a]:null}return i},Hn[ar]=R1,Hn);function E1(r,e){return Kk[Dp(r,e)]}var k1=function(r,e,t){return r.length},jk=((Wn={})[ye+"_"+Ur]=function(r,e,t){return Math.max(0,r.length-e)},Wn[ye+"_"+qi]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Wn[nr]=k1,Wn[Wr]=function(r,e,t){var n=r[t[0].name];return n?n.length:0},Wn[ar]=k1,Wn);function O1(r,e){return jk[Dp(r,e)]}var Mp=function(r,e,t){return r[e]},Qk=((Un={})[ye]=Mp,Un[nr]=function(r,e,t){return r[t]},Un[Wr]=Mp,Un[ar]=function(r,e,t){var a=Oi(r);return a instanceof Array?a[e]:a},Un[ha]=Mp,Un);function N1(r){return Qk[r]}function Dp(r,e){return r===ye?r+"_"+e:r}function ji(r,e,t){if(r){var a=r.getRawDataItem(e);if(null!=a){var n=r.getStore(),i=n.getSource().sourceFormat;if(null!=t){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return N1(i)(a,o,s)}var l=a;return i===ar&&(l=Oi(a)),l}}}var Jk=/\{@(.+?)\}/g,Lp=function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v="series"===h,c=a.userOutput&&a.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);return o&&(l.value=o.interpolatedValue),null!=n&&z(l.value)&&(l.value=l.value[n]),i||(i=s.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),j(i)?(l.status=t,l.dimensionIndex=n,i(l)):U(i)?pp(i,l).replace(Jk,function(h,v){var c=v.length,p=v;"["===p.charAt(0)&&"]"===p.charAt(c-1)&&(p=+p.slice(1,c-1));var d=ji(s,e,p);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return null!=d?d+"":""}):void 0},r.prototype.getRawValue=function(e,t){return ji(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function V1(r){var e,t;return J(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Es(r){return new $k(r)}var $k=function(){function r(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var i,t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var h,o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==l||s!==u)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(null!=v?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c<p)){var d=this._progress;if(z(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],c,p,l,u);else this._doProgress(d,c,p,l,u)}this._dueIndex=p,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:p}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){B1.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:B1.next},this.context)},r.prototype._doReset=function(e){var t,a;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(a=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),B1=function(){var r,e,t,a,n,i={reset:function(l,u,f,h){e=l,r=u,t=f,a=h,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}}();function Dt(r){throw new Error(r)}function Ha(r,e){var t=e&&e.type;return"ordinal"===t?r:("time"===t&&!wt(r)&&null!=r&&"-"!==r&&(r=+Ue(r)),null==r||""===r?NaN:+r)}typeof console<"u"&&console.warn&&console;var aO=q({number:function(r){return parseFloat(r)},time:function(r){return+Ue(r)},trim:function(r){return U(r)?Ke(r):r}});function G1(r){return aO.get(r)}var F1={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},nO=function(){function r(e,t){wt(t)||Dt(""),this._opFn=F1[e],this._rvalFloat=Vr(t)}return r.prototype.evaluate=function(e){return wt(e)?this._opFn(e,this._rvalFloat):this._opFn(Vr(e),this._rvalFloat)},r}(),H1=function(){function r(e,t){var a="desc"===e;this._resultLT=a?1:-1,null==t&&(t=a?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=wt(e)?e:Vr(e),n=wt(t)?t:Vr(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=U(e),l=U(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),iO=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Vr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&("number"===a||"number"===this._rvalTypeof)&&(t=Vr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function oO(r,e){return"eq"===r||"ne"===r?new iO("eq"===r,e):Z(F1,r)?new nO(r,e):null}var sO=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ha(e,t)},r}();function uO(r){return Pp(r.sourceFormat)||Dt(""),r.data}function fO(r){var e=r.sourceFormat,t=r.data;if(Pp(e)||Dt(""),e===ye){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}if(e===nr){for(n=[],i=0,o=t.length;i<o;i++)n.push(V({},t[i]));return n}}function hO(r,e,t){if(null!=t){if(wt(t)||!isNaN(t)&&!Z(e,t))return r[t];if(Z(e,t))return e[t]}}function vO(r){return et(r)}var W1=q();function dO(r,e,t,a){e.length||Dt(""),J(r)||Dt("");var o=W1.get(r.type);o||Dt("");var s=G(e,function(f){return function lO(r,e){var t=new sO,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex;r.seriesLayoutBy!==Ur&&Dt("");var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};s.push(m),null!=y&&(Z(l,y)&&Dt(""),l[y]=m)});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=E1(n,Ur);e.__isBuiltIn&&(t.getRawDataItem=function(d){return h(a,i,s,d)},t.getRawData=Y(uO,null,r)),t.cloneRawData=Y(fO,null,r);var v=O1(n,Ur);t.count=Y(v,null,a,i,s);var c=N1(n);t.retrieveValue=function(d,g){var y=h(a,i,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(null!=d){var y=s[g];if(y)return c(d,g,y.name)}};return t.getDimensionInfo=Y(hO,null,s,l),t.cloneAllDimensionInfo=Y(vO,null,s),t}(f,o)});return G(Pt(o.transform({upstream:s[0],upstreamList:s,config:et(r.config)})),function(f,h){J(f)||Dt(""),f.data||Dt(""),Pp(C1(f.data))||Dt("");var p,d=e[0];if(d&&0===h&&!f.dimensions){var g=d.startIndex;g&&(f.data=d.data.slice(0,g).concat(f.data)),p={seriesLayoutBy:Ur,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else p={seriesLayoutBy:Ur,sourceHeader:0,dimensions:f.dimensions};return Cp(f.data,p,null)})}function Pp(r){return r===ye||r===nr}var Rp,tf="undefined",gO=typeof Uint32Array===tf?Array:Uint32Array,yO=typeof Uint16Array===tf?Array:Uint16Array,U1=typeof Int32Array===tf?Array:Int32Array,Y1=typeof Float64Array===tf?Array:Float64Array,Z1={float:Y1,int:U1,ordinal:Array,number:Array,time:Y1};function ks(r){return r>65535?gO:yO}function mO(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function X1(r,e,t,a,n){var i=Z1[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var _O=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=Rp[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],D1(n),this._dimensions=G(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(null!=i){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new Z1[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;0===o&&(i[e]=[1/0,-1/0]);for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++)X1(a,u,n[u].type,l,!0);for(var h=[],v=s;v<l;v++)for(var c=v-s,p=0;p<i;p++){var d=Rp.arrayRows.call(this,e[c]||h,n[p].property,c,p);a[p][v]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=G(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=[1/0,-1/0]),X1(i,f,h.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var v=[],c=e;c<t;c++){v=n.getItem(c,v);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(v,u[p],c,p);d[c]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;i=0;for(var o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var a=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return 0===n?0:n%2==1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(null!=a&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},r.prototype.indicesOfNearest=function(e,t,a){var i=this._chunks[e],o=[];if(!i)return o;null==a&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=t-i[this.getRawIndex(f)],p=Math.abs(c);p<=a&&((p<s||p===s&&c>=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=this._count;if((a=t.constructor)===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a;for(e=new(a=ks(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),o=new(ks(a._rawCount))(n),s=[],l=e.length,u=0,f=e[0],h=a._chunks,v=0;v<n;v++){var c=void 0,p=a.getRawIndex(v);if(0===l)c=t(v);else if(1===l)c=t(h[f][p],v);else{for(var g=0;g<l;g++)s[g]=h[e[g]][p];s[g]=v,c=t.apply(null,s)}c&&(o[u++]=p)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=mt(e),i=n.length;if(!i)return this;var o=t.count(),l=new(ks(t._rawCount))(o),u=0,f=n[0],h=e[f][0],v=e[f][1],c=t._chunks,p=!1;if(!t._indices){var d=0;if(1===i){for(var g=c[n[0]],y=0;y<a;y++)((m=g[y])>=h&&m<=v||isNaN(m))&&(l[u++]=d),d++;p=!0}else if(2===i){g=c[n[0]];var _=c[n[1]],S=e[n[1]][0],b=e[n[1]][1];for(y=0;y<a;y++){var x=_[y];((m=g[y])>=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(1===i)for(y=0;y<o;y++){var w=t.getRawIndex(y);((m=c[n[0]][w])>=h&&m<=v||isNaN(m))&&(l[u++]=w)}else for(y=0;y<o;y++){for(var T=!0,C=(w=t.getRawIndex(y),0);C<i;C++){var m,M=n[C];((m=c[M][w])<e[M][0]||m>e[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=[1/0,-1/0];for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=n[t[c]][v];l[o]=h;var p=a&&a.apply(null,l);if(null!=p)for("object"!=typeof p&&(i[0]=p,p=i),f=0;f<p.length;f++){var d=t[f],g=p[f],y=u[d],m=n[d];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},r.prototype.lttbDownSample=function(e,t){var f,h,v,a=this.clone([e],!0),i=a._chunks[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c=new(ks(this._rawCount))(Math.min(2*(Math.ceil(o/l)+2),o));c[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+2*l,o),y=(g+d)/2,m=0,_=d;_<g;_++){var b=i[S=this.getRawIndex(_)];isNaN(b)||(m+=b)}m/=g-d;var x=p,w=Math.min(p+l,o),T=p-1,C=i[u];f=-1,v=x;var M=-1,D=0;for(_=x;_<w;_++){var S;b=i[S=this.getRawIndex(_)],isNaN(b)?(D++,M<0&&(M=S)):(h=Math.abs((T-y)*(b-C)-(T-_)*(m-C)))>f&&(f=h,v=S)}D>0&&D<w-x&&(c[s++]=Math.min(M,v),v=Math.max(M,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),a._count=s,a._indices=c,a.getRawIndex=this._getRawIdx,a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),h=i._rawExtent[e]=[1/0,-1/0],v=new(ks(this._rawCount))(Math.ceil(f/l)),c=0,p=0;p<f;p+=l){l>f-p&&(s.length=l=f-p);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=[1/0,-1/0];if(!t)return a;var o,n=this.count();if(!this._indices)return this._rawExtent[e].slice();if(o=this._extent[e])return o.slice();for(var s=(o=a)[0],l=o[1],u=0;u<n;u++){var h=t[this.getRawIndex(u)];h<s&&(s=h),h>l&&(l=h)}return this._extent[e]=o=[s,l],o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&qe(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?mO(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=et(this._extent),e._rawExtent=et(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Ha(t[i],this._dimensions[i])}Rp={arrayRows:e,objectRows:function(t,a,n,i){return Ha(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(null==t.value?t:t.value);return Ha(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}();const Ep=_O;var q1=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var n,i,e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length;if(ef(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),s=(u=f.getSource()).data,l=u.sourceFormat,i=[f._getVersionSign()]}else l=Re(s=o.get("data",!0))?ha:ar,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=st(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=st(h.sourceHeader,v.sourceHeader),d=st(h.dimensions,v.dimensions);n=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d?[Cp(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else n=[Cp(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);null!=n&&1!==e.length&&j1("");var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0);null!=n&&!f&&j1(""),s.push(f),l.push(u._getVersionSign())}),a?o=function pO(r,e,t){var a=Pt(r),n=a.length;n||Dt("");for(var o=0,s=n;o<s;o++)e=dO(a[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(a,s):null!=n&&(o=[Zk(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){var t=this._sourceList[e=e||0];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var i=this._storeList,o=i[0];o||(o=i[0]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];ef(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new Ep).initData(new P1(t,e.length),e),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(ef(e)){var t=yp(e);return t?[t.getSourceManager()]:[]}return G(function yk(r){return r.get("transform",!0)||r.get("fromTransformResult",!0)?cs(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Qt).models:[]}(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t,a,n,e=this._sourceHost;if(ef(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r}();function K1(r){r.option.transform&&Vo(r.option.transform)}function ef(r){return"series"===r.mainType}function j1(r){throw new Error(r)}var Q1="line-height:1";function J1(r,e){var t=r.color||"#6e7079",a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+we(a+"")+"px;color:"+we(t)+";font-weight:"+we(n+""),valueStyle:"font-size:"+we(o+"")+"px;color:"+we(i)+";font-weight:"+we(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var SO=[0,10,20,30],xO=["","\n","\n\n","\n\n\n"];function ne(r,e){return e.type=r,e}function kp(r){return"section"===r.type}function $1(r){return kp(r)?bO:wO}function tx(r){if(kp(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=tx(n);i>=e&&(e=i+ +(a&&(!i||kp(n)&&!n.noHeader)))}),e}return 0}function bO(r,e,t,a){var n=e.noHeader,i=function TO(r){return{html:SO[r],richText:xO[r]}}(tx(e)),o=[],s=e.blocks||[];de(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new H1(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else"seriesDesc"===l&&s.reverse()}A(s,function(p,d){var g=e.valueFormatter,y=$1(p)(g?V(V({},r),{valueFormatter:g}):r,p,d>0?i.html:0,a);null!=y&&o.push(y)});var h="richText"===r.renderMode?o.join(i.richText):Op(o.join(""),n?t:i.html);if(n)return h;var v=vp(e.header,"ordinal",r.useUTC),c=J1(a,r.renderMode).nameStyle;return"richText"===r.renderMode?rx(r,v,c)+i.richText+h:Op('<div style="'+c+";"+Q1+';">'+we(v)+"</div>"+h,t)}function wO(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return G(S=z(S)?S:[S],function(b,x){return vp(b,z(c)?c[x]:c,u)})};if(!i||!o){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":vp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value),d=!s||!i,g=!s&&i,y=J1(a,n),m=y.nameStyle,_=y.valueStyle;return"richText"===n?(s?"":h)+(i?"":rx(r,v,m))+(o?"":function MO(r,e,t,a,n){var i=[n];return t&&i.push({padding:[0,0,0,a?10:20],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join("  "):e,i)}(r,p,d,g,_)):Op((s?"":h)+(i?"":function CO(r,e,t){return'<span style="'+t+";"+(e?"margin-left:2px":"")+'">'+we(r)+"</span>"}(v,!s,m))+(o?"":function AO(r,e,t,a){return'<span style="'+(e?"float:right;margin-left:"+(t?"10px":"20px"):"")+";"+a+'">'+G(r=z(r)?r:[r],function(o){return we(o)}).join("&nbsp;&nbsp;")+"</span>"}(p,d,g,_)),t)}}function ex(r,e,t,a,n,i){if(r)return $1(r)({useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter},r,0,i)}function Op(r,e){return'<div style="margin: '+e+"px 0 0;"+Q1+';">'+r+'<div style="clear:both"></div></div>'}function rx(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function ax(r,e){return zn(r.getData().getItemVisual(e,"style")[r.visualDrawType])}function nx(r,e){return r.get("padding")??("richText"===e?[8,10]:10)}var Np=function(){function r(){this.richTextStyles={},this._nextStyleNameId=y_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n="richText"===a?this._generateStyleName():null,i=QS({color:t,type:e,renderMode:a,markerId:n});return U(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};z(t)?A(t,function(i){return V(a,i)}):V(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function ix(r){var f,h,v,c,e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=z(s),u=ax(e,t);if(o>1||l&&!o){var p=function DO(r,e,t,a,n){var i=e.getData(),o=qe(r,function(h,v,c){var p=i.getDimensionInfo(c);return h||p&&!1!==p.tooltip&&null!=p.displayName},!1),s=[],l=[],u=[];function f(h,v){var c=i.getDimensionInfo(v);!c||!1===c.otherDims.tooltip||(o?u.push(ne("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return a.length?A(a,function(h){f(ji(i,t,h),h)}):A(r,f),{inlineValues:s,inlineValueTypes:l,blocks:u}}(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=ji(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=xc(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return ne("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[ne("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ke(_),value:f,valueType:h})].concat(v||[])})}var Wa=Tt();function rf(r,e){return r.getName(e)||r.getId(e)}var af="__universalTransitionEnabled",nf=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return O(e,r),e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Es({count:IO,reset:PO}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Wa(this).sourceManager=new q1(this)).prepareSource();var o=this.getInitialData(t,n);sx(o,this),this.dataTask.context.data=o,Wa(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Ds(this),i=n?Yi(t):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),ot(t,a.getTheme().get(this.subType)),ot(t,this.getDefaultOption()),bn(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Fa(t,i,n)},e.prototype.mergeOption=function(t,a){t=ot(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ds(this);n&&Fa(this.option,t,n);var i=Wa(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);sx(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Wa(this).dataBeforeProcessed=o,ox(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Re(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&bn(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var a=Vp(this);if(a){var n=a.context.data;return null==t?n:n.getLinkedData(t)}return Wa(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=Vp(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}Wa(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return q(t)},e.prototype.getSourceManager=function(){return Wa(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Wa(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,a,n){return ix({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(bt.node&&(!t||!t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=_p.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<t.length;s++){var u=rf(o,t[s]);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=mt(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return("all"===n||n[rf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[af])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(s&&l)if("series"===s)o.selectedMap="all";else if("multiple"===s){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=a[f];u[v=rf(t,h)]=!0,this._selectedDataIndicesMap[v]=t.getRawIndex(h)}}else if("single"===s||!0===s){var c=a[l-1],v=rf(t,c);o.selectedMap=((n={})[v]=!0,n),this._selectedDataIndicesMap=((i={})[v]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return _t.registerClass(t)},e.protoInitialize=((t=e.prototype).type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",void(t.visualDrawType="fill")),e;var t}(_t);function ox(r){var e=r.name;xc(r)||(r.name=function LO(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}(r)||e)}function IO(r){return r.model.getRawData().count()}function PO(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),RO}function RO(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function sx(r,e){A(Bo(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,it(EO,e))})}function EO(r,e){var t=Vp(r);return t&&t.setOutputEnd((e||this).count()),e}function Vp(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}Zt(nf,Lp),Zt(nf,_p),L_(nf,_t);const Nt=nf;var Bp=function(){function r(){this.group=new rt,this.uid=Hi("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Tc(Bp),Mu(Bp);const Gt=Bp;function Ji(){var r=Tt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!(!a||!a.large),s=t.progressiveRender=!(!a||!a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var $i=Hr.CMD,kO=[[],[],[]],lx=Math.sqrt,OO=Math.atan2;function ux(r,e){if(e){var n,i,o,s,l,u,t=r.data,a=r.len(),f=$i.M,h=$i.C,v=$i.L,c=$i.R,p=$i.A,d=$i.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case f:case v:i=1;break;case h:i=3;break;case d:i=2;break;case p:var g=e[4],y=e[5],m=lx(e[0]*e[0]+e[1]*e[1]),_=lx(e[2]*e[2]+e[3]*e[3]),S=OO(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,s=o+=2;break;case c:u[0]=t[o++],u[1]=t[o++],se(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],se(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var b=kO[l];b[0]=t[o++],b[1]=t[o++],se(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var zp=Math.sqrt,of=Math.sin,sf=Math.cos,Os=Math.PI;function fx(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Gp(r,e){return(r[0]*e[0]+r[1]*e[1])/(fx(r)*fx(e))}function hx(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Gp(r,e))}function vx(r,e,t,a,n,i,o,s,l,u,f){var h=l*(Os/180),v=sf(h)*(r-t)/2+of(h)*(e-a)/2,c=-1*of(h)*(r-t)/2+sf(h)*(e-a)/2,p=v*v/(o*o)+c*c/(s*s);p>1&&(o*=zp(p),s*=zp(p));var d=(n===i?-1:1)*zp((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+sf(h)*g-of(h)*y,_=(e+a)/2+of(h)*g+sf(h)*y,S=hx([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],w=hx(b,x);if(Gp(b,x)<=-1&&(w=Os),Gp(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Os*1e6)/1e6;w=2*Os+T%2*Os}f.addData(u,m,_,o,s,S,w,h,i)}var NO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,VO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,cx=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return Bt(e,r),e.prototype.applyTransform=function(t){},e}(pt);function px(r){return null!=r.setData}function dx(r,e){var t=function BO(r){var e=new Hr;if(!r)return e;var o,t=0,a=0,n=t,i=a,s=Hr.CMD,l=r.match(NO);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(VO)||[],p=c.length,d=0;d<p;d++)c[d]=parseFloat(c[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=t,C=a,M=void 0,D=void 0;switch(h){case"l":t+=c[g++],a+=c[g++],e.addData(v=s.L,t,a);break;case"L":t=c[g++],a=c[g++],e.addData(v=s.L,t,a);break;case"m":t+=c[g++],a+=c[g++],e.addData(v=s.M,t,a),n=t,i=a,h="l";break;case"M":t=c[g++],a=c[g++],e.addData(v=s.M,t,a),n=t,i=a,h="L";break;case"h":t+=c[g++],e.addData(v=s.L,t,a);break;case"H":t=c[g++],e.addData(v=s.L,t,a);break;case"v":a+=c[g++],e.addData(v=s.L,t,a);break;case"V":a=c[g++],e.addData(v=s.L,t,a);break;case"C":e.addData(v=s.C,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),t=c[g-2],a=c[g-1];break;case"c":e.addData(v=s.C,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a,c[g++]+t,c[g++]+a),t+=c[g-2],a+=c[g-1];break;case"S":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),T=c[g++],C=c[g++],t=c[g++],a=c[g++],e.addData(v=s.C,y,m,T,C,t,a);break;case"s":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),T=t+c[g++],C=a+c[g++],t+=c[g++],a+=c[g++],e.addData(v=s.C,y,m,T,C,t,a);break;case"Q":T=c[g++],C=c[g++],t=c[g++],a=c[g++],e.addData(v=s.Q,T,C,t,a);break;case"q":T=c[g++]+t,C=c[g++]+a,t+=c[g++],a+=c[g++],e.addData(v=s.Q,T,C,t,a);break;case"T":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t=c[g++],a=c[g++],e.addData(v=s.Q,y,m,t,a);break;case"t":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t+=c[g++],a+=c[g++],e.addData(v=s.Q,y,m,t,a);break;case"A":_=c[g++],S=c[g++],b=c[g++],x=c[g++],w=c[g++],vx(T=t,C=a,t=c[g++],a=c[g++],x,w,_,S,b,v=s.A,e);break;case"a":_=c[g++],S=c[g++],b=c[g++],x=c[g++],w=c[g++],vx(T=t,C=a,t+=c[g++],a+=c[g++],x,w,_,S,b,v=s.A,e)}}("z"===h||"Z"===h)&&(e.addData(v=s.Z),t=n,a=i),o=v}return e.toStatic(),e}(r),a=V({},e);return a.buildPath=function(n){var i;px(n)?(n.setData(t.data),(i=n.getContext())&&n.rebuildPath(i,1)):t.rebuildPath(i=n,1)},a.applyTransform=function(n){ux(t,n),this.dirtyShape()},a}function gx(r,e){return new cx(dx(r,e))}function Fp(r,e){e=e||{};var t=new pt;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?ux(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var FO=function r(){this.cx=0,this.cy=0,this.r=0},yx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new FO},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,2*Math.PI)},e}(pt);yx.prototype.type="circle";const Tr=yx;var HO=function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},mx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new HO},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e}(pt);mx.prototype.type="ellipse";const lf=mx;var _x=Math.PI,Hp=2*_x,Yn=Math.sin,to=Math.cos,WO=Math.acos,_e=Math.atan2,Sx=Math.abs,Ns=Math.sqrt,Vs=Math.max,Yr=Math.min,Cr=1e-4;function uf(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/Ns(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=e+h,p=t+f,d=a+h,g=(v+p)/2,y=(c+d)/2,m=p-v,_=d-c,S=m*m+_*_,b=n-i,x=v*d-p*c,w=(_<0?-1:1)*Ns(Vs(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,M=(x*_+m*w)/S,D=(-x*m+_*w)/S,L=T-g,I=C-y,P=M-g,R=D-y;return L*L+I*I>P*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(n/b-1),y1:C*(n/b-1)}}var XO=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},xx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new XO},e.prototype.buildPath=function(t,a){!function ZO(r,e){var t,a=Vs(e.r,0),n=Vs(e.r0||0,0),i=a>0;if(i||n>0){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var f=e.cx,h=e.cy,v=!!e.clockwise,c=Sx(u-l),p=c>Hp&&c%Hp;if(p>Cr&&(c=p),a>Cr)if(c>Hp-Cr)r.moveTo(f+a*to(l),h+a*Yn(l)),r.arc(f,h,a,l,u,!v),n>Cr&&(r.moveTo(f+n*to(u),h+n*Yn(u)),r.arc(f,h,n,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,L=void 0,I=void 0,P=void 0,R=a*to(l),E=a*Yn(l),N=n*to(u),k=n*Yn(u),B=c>Cr;if(B){var F=e.cornerRadius;F&&(t=function YO(r){var e;if(z(r)){var t=r.length;if(!t)return r;e=1===t?[r[0],r[0],0,0]:2===t?[r[0],r[0],r[1],r[1]]:3===t?r.concat(r[2]):r}else e=[r,r,r,r];return e}(F),d=t[0],g=t[1],y=t[2],m=t[3]);var W=Sx(a-n)/2;if(_=Yr(W,y),S=Yr(W,m),b=Yr(W,d),x=Yr(W,g),C=w=Vs(_,S),M=T=Vs(b,x),(w>Cr||T>Cr)&&(D=a*to(u),L=a*Yn(u),I=n*to(l),P=n*Yn(l),c<_x)){var X=function UO(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=h*l-f*u;if(!(v*v<Cr))return[r+(v=(f*(e-i)-h*(r-n))/v)*l,e+v*u]}(R,E,I,P,D,L,N,k);if(X){var $=R-X[0],tt=E-X[1],dt=D-X[0],Mt=L-X[1],gt=1/Yn(WO(($*dt+tt*Mt)/(Ns($*$+tt*tt)*Ns(dt*dt+Mt*Mt)))/2),at=Ns(X[0]*X[0]+X[1]*X[1]);C=Yr(w,(a-at)/(gt+1)),M=Yr(T,(n-at)/(gt-1))}}}if(B)if(C>Cr){var yt=Yr(y,C),vt=Yr(m,C),K=uf(I,P,R,E,a,yt,v),ft=uf(D,L,N,k,a,vt,v);r.moveTo(f+K.cx+K.x0,h+K.cy+K.y0),C<w&&yt===vt?r.arc(f+K.cx,h+K.cy,C,_e(K.y0,K.x0),_e(ft.y0,ft.x0),!v):(yt>0&&r.arc(f+K.cx,h+K.cy,yt,_e(K.y0,K.x0),_e(K.y1,K.x1),!v),r.arc(f,h,a,_e(K.cy+K.y1,K.cx+K.x1),_e(ft.cy+ft.y1,ft.cx+ft.x1),!v),vt>0&&r.arc(f+ft.cx,h+ft.cy,vt,_e(ft.y1,ft.x1),_e(ft.y0,ft.x0),!v))}else r.moveTo(f+R,h+E),r.arc(f,h,a,l,u,!v);else r.moveTo(f+R,h+E);n>Cr&&B?M>Cr?(yt=Yr(d,M),K=uf(N,k,D,L,n,-(vt=Yr(g,M)),v),ft=uf(R,E,I,P,n,-yt,v),r.lineTo(f+K.cx+K.x0,h+K.cy+K.y0),M<T&&yt===vt?r.arc(f+K.cx,h+K.cy,M,_e(K.y0,K.x0),_e(ft.y0,ft.x0),!v):(vt>0&&r.arc(f+K.cx,h+K.cy,vt,_e(K.y0,K.x0),_e(K.y1,K.x1),!v),r.arc(f,h,n,_e(K.cy+K.y1,K.cx+K.x1),_e(ft.cy+ft.y1,ft.cx+ft.x1),v),yt>0&&r.arc(f+ft.cx,h+ft.cy,yt,_e(ft.y1,ft.x1),_e(ft.y0,ft.x0),!v))):(r.lineTo(f+N,h+k),r.arc(f,h,n,u,l,v)):r.lineTo(f+N,h+k)}else r.moveTo(f,h);r.closePath()}}}(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(pt);xx.prototype.type="sector";const Me=xx;var qO=function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new qO},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=2*Math.PI;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(pt);bx.prototype.type="ring";const Bs=bx;function Tx(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=function KO(r,e,t,a){var l,u,f,h,n=[],i=[],o=[],s=[];if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)ea(f,f,r[v]),ra(h,h,r[v]);ea(f,f,a[0]),ra(h,h,a[1])}for(v=0,c=r.length;v<c;v++){var p=r[v];if(t)l=r[v?v-1:c-1],u=r[(v+1)%c];else{if(0===v||v===c-1){n.push(Er(r[v]));continue}l=r[v-1],u=r[v+1]}Ca(i,u,l),Ho(i,i,e);var d=tu(p,l),g=tu(p,u),y=d+g;0!==y&&(d/=y,g/=y),Ho(o,i,-d),Ho(s,i,g);var m=wv([],p,o),_=wv([],p,s);a&&(ra(m,m,f),ea(m,m,h),ra(_,_,f),ea(_,_,h)),n.push(m),n.push(_)}return t&&n.push(n.shift()),n}(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[2*s],u=i[2*s+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]),s=1;for(var h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var jO=function r(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultShape=function(){return new jO},e.prototype.buildPath=function(t,a){Tx(t,a,!0)},e}(pt);Cx.prototype.type="polygon";const De=Cx;var QO=function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Ax=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new QO},e.prototype.buildPath=function(t,a){Tx(t,a,!1)},e}(pt);Ax.prototype.type="polyline";const Le=Ax;var JO={},$O=function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Mx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $O},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=Z_(JO,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;0!==u&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e}(pt);Mx.prototype.type="line";const ie=Mx;var Ne=[],tN=function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Dx(r,e,t){return null!=r.cpx2||null!=r.cpy2?[(t?E0:re)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?E0:re)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Bv:le)(r.x1,r.cpx1,r.x2,e),(t?Bv:le)(r.y1,r.cpy1,r.y2,e)]}var Lx=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tN},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,h=a.cpy2,v=a.percent;0!==v&&(t.moveTo(n,i),null==f||null==h?(v<1&&(jo(n,l,o,v,Ne),l=Ne[1],o=Ne[2],jo(i,u,s,v,Ne),u=Ne[1],s=Ne[2]),t.quadraticCurveTo(l,u,o,s)):(v<1&&(Ia(n,l,f,o,v,Ne),l=Ne[1],f=Ne[2],o=Ne[3],Ia(i,u,h,s,v,Ne),u=Ne[1],h=Ne[2],s=Ne[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return Dx(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=Dx(this.shape,t,!0);return vn(a,a)},e}(pt);Lx.prototype.type="bezier-curve";const zs=Lx;var eN=function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Ix=function(r){function e(t){return r.call(this,t)||this}return Bt(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new eN},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+n,h*o+i),t.arc(n,i,o,s,l,!u)},e}(pt);Ix.prototype.type="arc";const ff=Ix;var rN=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="compound",t}return Bt(e,r),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pt.prototype.getBoundingRect.call(this)},e}(pt);const hf=rN;var aN=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const Px=aN;var nN=function(r){function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return Bt(e,r),e}(Px);const eo=nN;var iN=function(r){function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return Bt(e,r),e}(Px);const Wp=iN;var Zn=[0,0],Xn=[0,0],vf=new lt,cf=new lt,oN=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new lt;for(a=0;a<2;a++)this._axes[a]=new lt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);for(lt.sub(n[0],a[1],a[0]),lt.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize(),u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t){var a=!0,n=!t;return vf.set(1/0,1/0),cf.set(0,0),!this._intersectCheckOneSide(this,e,vf,cf,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,vf,cf,n,-1)&&(a=!1,n)||n||lt.copy(t,a?vf:cf),a},r.prototype._intersectCheckOneSide=function(e,t,a,n,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Zn),this._getProjMinMaxOnAxis(l,t._corners,Xn),Zn[1]<Xn[0]||Zn[0]>Xn[1]){if(s=!1,i)return s;var f=Math.abs(Xn[0]-Zn[1]),h=Math.abs(Zn[0]-Xn[1]);Math.min(f,h)>n.len()&&lt.scale(n,u,f<h?-f*o:h*o)}else a&&(f=Math.abs(Xn[0]-Zn[1]),h=Math.abs(Zn[0]-Xn[1]),Math.min(f,h)<a.len()&&lt.scale(a,u,f<h?f*o:-h*o))}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+i[e];s=Math.min(f,s),l=Math.max(f,l)}a[0]=s,a[1]=l},r}();const pf=oN;var sN=[],lN=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Bt(e,r),e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},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(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(a=this._displayables[t]).parent=this,a.update(),a.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var a;(a=this._temporaryDisplayables[t]).parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ut(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(sN)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);if(this.getBoundingRect().contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(t,a))return!0;return!1},e}(tr);const Rx=lN;var df=Math.max,gf=Math.min,Up={};function Ex(r){return pt.extend(r)}function kx(r,e){return function zO(r,e){var t=dx(r,e);return function(n){function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return Bt(i,n),i}(cx)}(r,e)}function or(r,e){Up[r]=e}function yf(r){if(Up.hasOwnProperty(r))return Up[r]}function Gs(r,e,t,a){var n=gx(r,e);return t&&("center"===a&&(t=Ox(t,n.getBoundingRect())),Zp(n,t)),n}function Yp(r,e,t){var a=new ue({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){"center"===t&&a.setStyle(Ox(e,{width:n.width,height:n.height}))}});return a}function Ox(r,e){var n,t=e.width/e.height,a=r.height*t;return n=a<=r.width?r.height:(a=r.width)/t,{x:r.x+r.width/2-a/2,y:r.y+r.height/2-n/2,width:a,height:n}}var Ye=function GO(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push(r[n].getUpdatedPathProxy(!0));var o=new pt(e);return o.createPathProxy(),o.buildPath=function(s){if(px(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o};function Zp(r,e){if(r.applyTransform){var a=r.getBoundingRect().calculateTransform(e);r.applyTransform(a)}}function ro(r,e){return Z_(r,r,{lineWidth:e}),r}function fN(r){return X_(r.shape,r.shape,r.style),r}var mf=En;function Ua(r,e){for(var t=Uo([]);r&&r!==e;)kr(t,r.getLocalTransform(),t),r=r.parent;return t}function Ar(r,e,t){return e&&!fe(e)&&(e=ia.getLocalTransform(e)),t&&(e=cn([],e)),se([],r,e)}function _f(r,e,t){var a=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),n=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=["left"===r?-a:"right"===r?a:0,"top"===r?-n:"bottom"===r?n:0];return i=Ar(i,e,t),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Nx(r){return!r.isGroup}function Fs(r,e,t){if(r&&e){var i=function a(o){var s={};return o.traverse(function(l){Nx(l)&&l.anid&&(s[l.anid]=l)}),s}(r);e.traverse(function(o){if(Nx(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Ct(o,l,t,nt(o).dataIndex)}}})}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function hN(r){return null!=r.shape}(o)&&(s.shape=V({},o.shape)),s}}function Xp(r,e){return G(r,function(t){var a=t[0];a=df(a,e.x),a=gf(a,e.x+e.width);var n=t[1];return n=df(n,e.y),[a,n=gf(n,e.y+e.height)]})}function Vx(r,e){var t=df(r.x,e.x),a=gf(r.x+r.width,e.x+e.width),n=df(r.y,e.y),i=gf(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function ao(r,e,t){var a=V({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return 0===r.indexOf("image://")?(n.image=r.slice(8),Q(n,t),new ue(a)):Gs(r.replace("path://",""),a,t,"center")}function Hs(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Bx(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Bx(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=qp(f,h,l,u);if(function vN(r){return r<=1e-6&&r>=-1e-6}(v))return!1;var c=r-n,p=e-i,d=qp(c,p,l,u)/v;if(d<0||d>1)return!1;var g=qp(c,p,f,h)/v;return!(g<0||g>1)}function qp(r,e,t,a){return r*a-t*e}function no(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=U(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(mt(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,formatterParams:s},n)}}function zx(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Ya(r,e){if(r)if(z(r))for(var t=0;t<r.length;t++)zx(r[t],e);else zx(r,e)}or("circle",Tr),or("ellipse",lf),or("sector",Me),or("ring",Bs),or("polygon",De),or("polyline",Le),or("rect",St),or("line",ie),or("bezierCurve",zs),or("arc",ff);var Gx=Tt(),cN=Ji(),Kp=function(){function r(){this.group=new rt,this.uid=Hi("viewChart"),this.renderTask=Es({plan:pN,reset:dN}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||Hx(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);!i||Hx(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Ya(this.group,e)},r.markUpdateMethod=function(e,t){Gx(e).updateMethod=t},r.protoInitialize=void(r.prototype.type="chart"),r}();function Fx(r,e,t){r&&xs(r)&&("emphasis"===e?ua:fa)(r,t)}function Hx(r,e,t){var a=wn(r,e),n=e&&null!=e.highlightKey?function zE(r){var e=lS[r];return null==e&&sS<=32&&(e=lS[r]=sS++),e}(e.highlightKey):null;null!=a?A(Pt(a),function(i){Fx(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){Fx(i,t,n)})}function pN(r){return cN(r.model)}function dN(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&Gx(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,t,a,n),gN[l]}Tc(Kp),Mu(Kp);var gN={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Et=Kp;var Sf="\0__throttleOriginMethod",Wx="\0__throttleRate",Ux="\0__throttleType";function xf(r,e,t){var a,s,l,u,f,n=0,i=0,o=null;function h(){i=(new Date).getTime(),o=null,r.apply(l,u||[])}e=e||0;var v=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];a=(new Date).getTime(),l=this,u=c;var d=f||e,g=f||t;f=null,s=a-(g?n:i)-d,clearTimeout(o),g?o=setTimeout(h,d):s>=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function io(r,e,t,a){var n=r[e];if(n){var i=n[Sf]||n;if(n[Wx]!==t||n[Ux]!==a){if(null==t||!a)return r[e]=i;(n=r[e]=xf(i,t,"debounce"===a))[Sf]=i,n[Ux]=a,n[Wx]=t}return n}}function Ws(r,e){var t=r[e];t&&t[Sf]&&(t.clear&&t.clear(),r[e]=t[Sf])}var Yx=Tt(),Zx={itemStyle:Cn(VS,!0),lineStyle:Cn(NS,!0)},yN={lineStyle:"stroke",itemStyle:"fill"};function Xx(r,e){return r.visualStyleMapper||Zx[e]||(console.warn("Unknown style type '"+e+"'."),Zx.itemStyle)}function qx(r,e){return r.visualDrawType||yN[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var mN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),o=Xx(r,a)(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=qx(r,a),u=o[l],f=j(u)?u:null;if(!o[l]||f||"auto"===o.fill||"auto"===o.stroke){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||j(o.fill)?v:o.fill,o.stroke="auto"===o.stroke||j(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=V({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Us=new Rt,_N={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData&&!e.isSeriesFiltered(r)){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Xx(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Us.option=l[a];var u=n(Us);V(o.ensureUniqueItemVisual(s,"style"),u),Us.option.decal&&(o.setItemVisual(s,"decal",Us.option.decal),Us.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},SN={performRawSeries:!0,overallReset:function(r){var e=q();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||e.set(n,i={}),Yx(t).scope=i}}),r.eachSeries(function(t){if(!t.isColorBySeries()&&!r.isSeriesFiltered(t)){var a=t.getRawData(),n={},i=t.getData(),o=Yx(t).scope,l=qx(t,t.visualStyleAccessPath||"itemStyle");i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u];if(i.getItemVisual(f,"colorFromPalette")){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},bf=Math.PI,bN=function(){function r(e,t,a,n){this._stageTaskMap=q(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,o=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex?a.step:null,s=n&&n.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),i=e.getData().count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=q();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{});de(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(e,function(l,u){if(!n.visualType||n.visualType===l.visualType){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,n.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}}),this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=q(),l=e.seriesType,u=e.getTargetSeries;function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Es({plan:MN,reset:DN,count:IN}));c.context={model:h,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(h,c)}e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f)},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Es({reset:wN});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1;function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,Es({reset:TN,onDirty:AN})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,i._pipe(d,y)}de(!e.createOnAllSeries,""),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):(h=!1,A(a.getSeries(),p)),v&&o.dirty()},r.prototype._pipe=function(e,t){var n=this._pipelineMap.get(e.uid);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return j(e)&&(e={overallReset:e,seriesType:PN(e)}),e.uid=Hi("stageHandler"),t&&(e.visualType=t),e},r}();function wN(r){r.overallReset(r.ecModel,r.api,r.payload)}function TN(r){return r.overallProgress&&CN}function CN(){this.agent.dirty(),this.getDownstream().dirty()}function AN(){this.agent&&this.agent.dirty()}function MN(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function DN(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Pt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?G(e,function(t,a){return Kx(a)}):LN}var LN=Kx(0);function Kx(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function IN(r){return r.data.count()}function PN(r){wf=null;try{r(Ys,jx)}catch{}return wf}var wf,Ys={},jx={};function Qx(r,e){for(var t in e.prototype)r[t]=Xt}Qx(Ys,g1),Qx(jx,y1),Ys.eachSeriesByType=Ys.eachRawSeriesByType=function(r){wf=r},Ys.eachComponent=function(r){"series"===r.mainType&&r.subType&&(wf=r.subType)};const Jx=bN;var $x=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const RN={color:$x,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$x]};var Ie="#B9B8CE",tb="#100C2A",Tf=function(){return{axisLine:{lineStyle:{color:Ie}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},eb=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],rb={darkMode:!0,color:eb,backgroundColor:tb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ie}},textStyle:{color:Ie},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ie}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ie},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ie}},timeline:{lineStyle:{color:Ie},label:{color:Ie},controlStyle:{color:Ie,borderColor:Ie}},calendar:{itemStyle:{color:tb},dayLabel:{color:Ie},monthLabel:{color:Ie},yearLabel:{color:Ie}},timeAxis:Tf(),logAxis:Tf(),valueAxis:Tf(),categoryAxis:Tf(),line:{symbol:"circle"},graph:{color:eb},gauge:{title:{color:Ie},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ie},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};rb.categoryAxis.splitLine.show=!1;const EN=rb;var kN=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(U(e)){var i=Br(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var p=u.slice(0,c);"data"!==p&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.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,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(h,v,c,p){return null==h[c]||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),jp=["symbol","symbolSize","symbolRotate","symbolOffset"],ab=jp.concat(["symbolKeepAspect"]),ON={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),r.hasSymbolVisual){for(var a={},n={},i=!1,o=0;o<jp.length;o++){var s=jp[o],l=r.get(s);j(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(V({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),!e.isSeriesFiltered(r)){var u=mt(n);return{dataEach:i?function f(h,v){for(var c=r.getRawValue(v),p=r.getDataParams(v),d=0;d<u.length;d++){var g=u[d];h.setItemVisual(v,g,n[g](c,p))}}:null}}}}},NN={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(r.hasSymbolVisual&&!e.isSeriesFiltered(r))return{dataEach:r.getData().hasItemOption?function a(n,i){for(var o=n.getItemModel(i),s=0;s<ab.length;s++){var l=ab[s],u=o.getShallow(l,!0);null!=u&&n.setItemVisual(i,l,u)}}:null}}};function Qp(r,e,t){switch(t){case"color":return r.getItemVisual(e,"style")[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Zs(r,e){switch(e){case"color":return r.getVisual("style")[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function nb(r,e,t,a){switch(t){case"color":r.ensureUniqueItemVisual(e,"style")[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a)}}function ib(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=V({},n),o.dispatchAction(V(n,{type:a[1],seriesIndex:t(i,n)}))})})}function oo(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=wn(h,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:z(v)?h.getName(v[0]):h.getName(v),selected:U(l)?l:V({},l)})}})}function qn(r,e,t){for(var a;r&&(!e(r)||(a=r,!t));)r=r.__hostTarget||r.parent;return a}var BN=Math.round(9*Math.random()),zN="function"==typeof Object.defineProperty,GN=function(){function r(){this._id="__ec_inner_"+BN++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return zN?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}();const FN=GN;var HN=pt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),WN=pt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),UN=pt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=.6*o,p=.7*o;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,2*Math.PI+u),r.bezierCurveTo(t+f-h*c,l+s+v*c,t,a-p,t,a),r.bezierCurveTo(t,a-p,t-f+h*c,l+s+v*c,t-f,l+s),r.closePath()}}),YN=pt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.x,i=e.y,o=e.width/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),XN={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},Cf={};A({line:ie,rect:St,roundRect:St,square:St,circle:Tr,diamond:WN,pin:UN,arrow:YN,triangle:HN},function(r,e){Cf[e]=new r});var qN=pt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=wu(r,e,t),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(a.y=t.y+.4*t.height),a},buildPath:function(r,e,t){var a=e.symbolType;if("none"!==a){var n=Cf[a];n||(n=Cf[a="rect"]),XN[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function KN(r,e){if("image"!==this.type){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):"line"===this.shape.symbolType?t.stroke=r:t.fill=r,this.markRedraw()}}function Kt(r,e,t,a,n,i,o){var l,s=0===r.indexOf("empty");return s&&(r=r.substr(5,1).toLowerCase()+r.substr(6)),(l=0===r.indexOf("image://")?Yp(r.slice(8),new ut(e,t,a,n),o?"center":"cover"):0===r.indexOf("path://")?Gs(r.slice(7),{},new ut(e,t,a,n),o?"center":"cover"):new qN({shape:{symbolType:r,x:e,y:t,width:a,height:n}})).__isEmptyBrush=s,l.setColor=KN,i&&l.setColor(i),l}function Xs(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function so(r,e){if(null!=r)return z(r)||(r=[r,r]),[H(r[0],e[0])||0,H(st(r[1],r[0]),e[1])||0]}function Kn(r){return isFinite(r)}function Jp(r,e,t){for(var a="radial"===e.type?function QN(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*a+t.x,s=s*n+t.y,l*=i),o=Kn(o)?o:.5,s=Kn(s)?s:.5,l=l>=0&&Kn(l)?l:.5,r.createRadialGradient(o,s,0,o,s,l)}(r,e,t):function jN(r,e,t){var a=null==e.x?0:e.x,n=null==e.x2?1:e.x2,i=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=Kn(a)?a:0,n=Kn(n)?n:1,i=Kn(i)?i:0,o=Kn(o)?o:0,r.createLinearGradient(a,i,n,o)}(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function Af(r){return parseInt(r,10)}function lo(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[a]&&"auto"!==t[a])return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Af(s[a])||Af(r.style[a]))-(Af(s[i])||0)-(Af(s[o])||0)|0}function $p(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&function $N(r,e){return r&&"solid"!==r&&e>0?"dashed"===r?[4*e,2*e]:"dotted"===r?[e]:wt(r)?[r]:z(r)?r:null:null}(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&1!==n&&(t=G(t,function(i){return i/n}),a/=n)}return[t,a]}var tV=new Hr(!0);function Mf(r){var e=r.stroke;return!(null==e||"none"===e||!(r.lineWidth>0))}function ob(r){return"string"==typeof r&&"none"!==r}function Df(r){var e=r.fill;return null!=e&&"none"!==e}function sb(r,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function lb(r,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function td(r,e,t){var a=Ac(e.image,e.__image,t);if(Du(a)){var n=r.createPattern(a,e.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Go),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}var ub=["shadowBlur","shadowOffsetX","shadowOffsetY"],fb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hb(r,e,t,a,n){var i=!1;if(!a&&e===(t=t||{}))return!1;if(a||e.opacity!==t.opacity){Ve(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?An.opacity:o}(a||e.blend!==t.blend)&&(i||(Ve(r,n),i=!0),r.globalCompositeOperation=e.blend||An.blend);for(var s=0;s<ub.length;s++){var l=ub[s];(a||e[l]!==t[l])&&(i||(Ve(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(Ve(r,n),i=!0),r.shadowColor=e.shadowColor||An.shadowColor),i}function vb(r,e,t,a,n){var i=qs(e,n.inHover),o=a?null:t&&qs(t,n.inHover)||{};if(i===o)return!1;var s=hb(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(Ve(r,n),s=!0),ob(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(Ve(r,n),s=!0),ob(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(Ve(r,n),s=!0),r.globalAlpha=null==i.opacity?1:i.opacity),e.hasStroke()){var u=i.lineWidth/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(Ve(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<fb.length;f++){var h=fb[f],v=h[0];(a||i[v]!==o[v])&&(s||(Ve(r,n),s=!0),r[v]=i[v]||h[1])}return s}function cb(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function Ve(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function qs(r,e){return e&&r.__hoverStyle||r.style}function ed(r,e){jn(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function jn(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||function JN(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}(i,o))&&(o&&o.length&&(Ve(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(Ve(r,t),r.save(),function iV(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),cb(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof pt&&e.autoBatch&&function sV(r){var e=Df(r),t=Mf(r);return!(r.lineDash||!(+e^+t)||e&&"string"!=typeof r.fill||t&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}(e.style);s||function oV(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}(n,u.transform)?(Ve(r,t),cb(r,e)):f||Ve(r,t);var h=qs(e,t.inHover);e instanceof pt?(1!==t.lastDrawType&&(l=!0,t.lastDrawType=1),vb(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),function eV(r,e,t,a){var n,i=Mf(t),o=Df(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||tV,h=e.__dirty;if(!a){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?Jp(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Jp(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?td(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=h||!e.__canvasStrokePattern?td(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var T,C,w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold),r.setLineDash&&t.lineDash&&(T=(n=$p(e))[0],C=n[1]);var M=!0;(u||4&h)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(i&&lb(r,t),o&&sb(r,t)):(o&&sb(r,t),i&&lb(r,t))),T&&r.setLineDash([])}(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof gs?(3!==t.lastDrawType&&(l=!0,t.lastDrawType=3),vb(r,e,u,l,t),function aV(r,e,t){var a,n=t.text;if(null!=n&&(n+=""),n){r.font=t.font||wa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=(a=$p(e))[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(Mf(t)&&r.strokeText(n,t.x,t.y),Df(t)&&r.fillText(n,t.x,t.y)):(Df(t)&&r.fillText(n,t.x,t.y),Mf(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}(r,e,h)):e instanceof ue?(2!==t.lastDrawType&&(l=!0,t.lastDrawType=2),function nV(r,e,t,a,n){hb(r,qs(e,n.inHover),t&&qs(t,n.inHover),a,n)}(r,e,u,l,t),function rV(r,e,t){var a=e.__image=Ac(t.image,e.__image,e,e.onload);if(a&&Du(a)){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=a.width,s=a.height),t.sWidth&&t.sHeight)r.drawImage(a,u=t.sx||0,f=t.sy||0,t.sWidth,t.sHeight,n,i,o,s);else if(t.sx&&t.sy){var u,f;r.drawImage(a,u=t.sx,f=t.sy,o-u,s-f,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}(r,e,h)):e.getTemporalDisplayables&&(4!==t.lastDrawType&&(l=!0,t.lastDrawType=4),function lV(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var o,s,i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover};for(o=e.getCursor(),s=a.length;o<s;o++)(l=a[o]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),jn(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l;for(var u=0,f=n.length;u<f;u++){var l;(l=n[u]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),jn(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}(r,e,t)),f&&a&&Ve(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var rd=new FN,mb=new Qo(100),_b=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function uo(r,e){if("none"===r)return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n="svg"===a.painter.type;r.dirty&&rd.delete(r);var i=rd.get(r);if(i)return i;var o=Q(r,{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});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function l(u){for(var f=[t],h=!0,v=0;v<_b.length;++v){var c=o[_b[v]];if(null!=c&&!z(c)&&!U(c)&&!wt(c)&&"boolean"!=typeof c){h=!1;break}f.push(c)}var p;if(h){p=f.join(",")+(n?"-svg":"");var d=mb.get(p);d&&(n?u.svgElement=d:u.image=d)}var T,g=xb(o.dashArrayX),y=function uV(r){if(!r||"object"==typeof r&&0===r.length)return[0,0];if(wt(r)){var e=Math.ceil(r);return[e,e]}var t=G(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}(o.dashArrayY),m=Sb(o.symbol),_=function fV(r){return G(r,function(e){return bb(e)})}(g),S=bb(y),b=!n&&dr.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=function C(){for(var D=1,L=0,I=_.length;L<I;++L)D=__(D,_[L]);var P=1;for(L=0,I=m.length;L<I;++L)P=__(P,m[L].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}();b&&(b.width=w.width*t,b.height=w.height*t,T=b.getContext("2d")),function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(!(D<=0))for(var I=-S,P=0,R=0,E=0;I<w.height;){if(P%2==0){for(var N=R/2%m.length,k=0,B=0,F=0;k<2*w.width;){var W=0;for(L=0;L<g[E].length;++L)W+=g[E][L];if(W<=0)break;if(B%2==0){var X=.5*(1-o.symbolSize);at(k+g[E][B]*X,I+y[P]*X,g[E][B]*o.symbolSize,y[P]*o.symbolSize,m[N][F/2%m[N].length])}k+=g[E][B],++F,++B===g[E].length&&(B=0)}++E===g.length&&(E=0)}I+=y[P],++R,++P===y.length&&(P=0)}function at(yt,vt,K,ft,Ht){var At=n?1:t,qt=Kt(Ht,yt*At,vt*At,K*At,ft*At,o.color,o.symbolKeepAspect);if(n){var Yt=a.painter.renderOneToVNode(qt);Yt&&x.children.push(Yt)}else ed(T,qt)}}(),h&&mb.put(p,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,rd.set(r,s),r.dirty=!1,s}function Sb(r){if(!r||0===r.length)return[["rect"]];if(U(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!U(r[t])){e=!1;break}if(e)return Sb([r]);var a=[];for(t=0;t<r.length;++t)U(r[t])?a.push([r[t]]):a.push(r[t]);return a}function xb(r){if(!r||0===r.length)return[[0,0]];if(wt(r))return[[e=Math.ceil(r),e]];for(var t=!0,a=0;a<r.length;++a)if(!wt(r[a])){t=!1;break}if(t)return xb([r]);var n=[];for(a=0;a<r.length;++a)if(wt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else e=G(r[a],function(s){return Math.ceil(s)}),n.push(e.length%2==1?e.concat(e):e);return n}function bb(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2==1?2*e:e}const Mr=new je;var wb={};function Tb(r){return wb[r]}var pV="5.4.1",dV={zrender:"5.4.1"},Db={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Se="__flagInMainProcess",Be="__pendingUpdate",nd="__needsUpdateStatus",Lb=/^[a-zA-Z0-9_]+$/,id="__connectUpdateStatus";function Pb(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!this.isDisposed())return Eb(this,r,e)}}function Rb(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Eb(this,r,e)}}function Eb(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),je.prototype[e].apply(r,t)}var kb=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e}(je),Ob=kb.prototype;Ob.on=Rb("on"),Ob.off=Rb("off");var fo,od,If,Za,sd,ld,ud,Ks,js,Nb,Vb,fd,Bb,Pf,zb,Gb,sr,Fb,Rf=function(r){function e(t,a,n){var i=r.call(this,new kN)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},U(a)&&(a=Hb[a]),i._dom=t;var h=i._zr=pc(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:st(n.useDirtyRect,!1),useCoarsePointer:st(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=xf(Y(h.flush,h),17),(a=et(a))&&T1(a,!0),i._theme=a,i._locale=function rk(r){if(U(r)){var e=Wu[r.toUpperCase()]||{};return"ZH"===r||"EN"===r?et(e):ot(et(e),et(Wu.EN),!1)}return ot(et(r),et(Wu.EN),!1)}(n.locale||BS),i._coordSysMgr=new Ki;var v=i._api=zb(i);function c(p,d){return p.__prio-d.__prio}return iu(kf,c),iu(vd,c),i._scheduler=new Jx(i,v,vd,kf),i._messageCenter=new kb,i._initEvents(),i.resize=Y(i.resize,i),h.animation.on("frame",i._onframe,i),Nb(h,i),Vb(h,i),Vo(i),i}return O(e,r),e.prototype._onframe=function(){if(!this._disposed){Fb(this);var t=this._scheduler;if(this[Be]){var a=this[Be].silent;this[Se]=!0;try{fo(this),Za.update.call(this,null,this[Be].updateParams)}catch(l){throw this[Se]=!1,this[Be]=null,l}this._zr.flush(),this[Se]=!1,this[Be]=null,Ks.call(this,a),js.call(this,a)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),ld(this,i),t.performVisualTasks(i),Pf(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&t.unfinished);t.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(t,a,n){if(!this[Se]){if(this._disposed)return;var i,o,s;if(J(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Se]=!0,!this._model||a){var l=new Nk(this._api),u=this._theme,f=this._model=new g1;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},cd);var h={seriesTransition:s,optionChanged:!0};if(n)this[Be]={silent:i,updateParams:h},this[Se]=!1,this.getZr().wakeUp();else{try{fo(this),Za.update.call(this,null,h)}catch(v){throw this[Be]=null,this[Se]=!1,v}this._ssr||this._zr.flush(),this[Be]=null,this[Se]=!1,Ks.call(this,i),js.call(this,i)}}},e.prototype.setTheme=function(){},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||bt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},e.prototype.getSvgDataURL=function(){if(bt.svgSupported){var t=this._zr;return A(t.storage.getDisplayList(),function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var n=this._model,i=[],o=this;A((t=t||{}).excludeComponents,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var a="svg"===t.type,n=this.group,i=Math.min,o=Math.max,s=1/0;if(Of[n]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(Qn,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(et(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}});var p=(f*=c)-(l*=c),d=(h*=c)-(u*=c),g=dr.createCanvas(),y=pc(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(v,function(_){m+='<g transform="translate('+(_.left-l)+","+(_.top-u)+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new St({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(v,function(_){var S=new ue({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,a){return sd(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return sd(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){var i;if(!this._disposed)return A(vs(this._model,t),function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if("seriesModels"===l){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var i=vs(this._model,t,{defaultMainType:"series"}),s=i.seriesModel.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=l?Qp(s,l,a):Zs(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;A(LV,function(a){var n=function(i){var l,o=t.getModel(),s=i.target;if("globalout"===a?l={}:s&&qn(s,function(p){var d=nt(p);if(d&&null!=d.dataIndex){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}if(d.eventData)return l=V({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;("markLine"===f||"markPoint"===f||"markArea"===f)&&(f="series",h=l.seriesIndex);var v=f&&null!=h&&o.getComponent(f,h),c=v&&t["series"===v.mainType?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)}),A(Qs,function(a,n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),A(["selectchanged"],function(a){t._messageCenter.on(a,function(n){this.trigger(a,n)},t)}),function VN(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(oo("map","selectchanged",e,n,a),oo("pie","selectchanged",e,n,a)):"select"===a.fromAction?(oo("map","selected",e,n,a),oo("pie","selected",e,n,a)):"unselect"===a.fromAction&&(oo("map","unselected",e,n,a),oo("pie","unselected",e,n,a))})}(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&A_(this.getDom(),dd,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Qn[a.id]}},e.prototype.resize=function(t){if(!this[Se]){if(this._disposed)return;this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),a){var n=a.resetOption("media"),i=t&&t.silent;this[Be]&&(null==i&&(i=this[Be].silent),n=!0,this[Be]=null),this[Se]=!0;try{n&&fo(this),Za.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(o){throw this[Se]=!1,o}this[Se]=!1,Ks.call(this,i),js.call(this,i)}}},e.prototype.showLoading=function(t,a){if(!this._disposed&&(J(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),pd[t])){var n=pd[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=Qs[t.type],a},e.prototype.dispatchAction=function(t,a){if(!this._disposed&&(J(a)||(a={silent:!!a}),Ef[t.type]&&this._model)){if(this[Se])return void this._pendingActions.push(t);var n=a.silent;ud.call(this,t,n);var i=a.flush;i?this._zr.flush():!1!==i&&bt.browser.weChat&&this._throttledZrFlush(),Ks.call(this,n),js.call(this,n)}},e.prototype.updateLabelLayout=function(){Mr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(!this._disposed){var a=t.seriesIndex;this.getModel().getSeriesByIndex(a).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){for(var v=[],c=h.currentStates,p=0;p<c.length;p++){var d=c[p];"emphasis"===d||"blur"===d||"select"===d||v.push(d)}h.selected&&h.states.select&&v.push("select"),2===h.hoverState&&h.states.emphasis?v.push("emphasis"):1===h.hoverState&&h.states.blur&&v.push("blur"),h.useStates(v)}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine();if(h.isGroup)for(var m=h.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],v,c,p),p);else h.z=v,h.zlevel=c,p=Math.max(h.z2,p);if(d&&(d.z=v,d.zlevel=c,isFinite(p)&&(d.z2=p+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(h,v){v.eachRendered(function(c){if(!Gi(c)){var p=c.getTextContent(),d=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),d=c.get("duration"),g=d>0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Gi(y))return;if(y instanceof pt&&function GE(r){var e=uS(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}fo=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),od(h,!0),od(h,!1),v.plan()},od=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<d.length;_++)d[_].__alive=!1;function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var M=Br(x.type);(C=new(v?Gt.getClass(M.main,M.sub):Et.getClass(M.sub))).init(c,m),g[T]=C,d.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&p.prepareView(C,x,c,m)}for(v?c.eachComponent(function(x,w){"series"!==x&&S(w)}):c.eachSeries(S),_=0;_<d.length;){var b=d[_];b.__alive?_++:(!v&&b.renderTask.dispose(),y.remove(b.group),b.dispose(c,m),d.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},If=function(h,v,c,p,d){var g=h._model;if(g.setUpdatePayload(c),p){var y={};y[p+"Id"]=c[p+"Id"],y[p+"Index"]=c[p+"Index"],y[p+"Name"]=c[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var S,_=c.excludeSeriesId;null!=_&&(S=q(),A(Pt(_),function(x){var w=te(x,null);null!=w&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){if(!S||null==S.get(x.id))if(CS(c))if(x instanceof Nt)c.type===kn&&!c.notBlur&&!x.get(["emphasis","disabled"])&&function PE(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=wn(n,e);i=(z(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=nt(o);Xc(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);null!=f&&Xc(a,f,h,t)}}}(x,c,h._api);else{var T=Kc(x.mainType,x.componentIndex,c.name,h._api),M=T.dispatchers;c.type===kn&&T.focusSelf&&!c.notBlur&&qc(x.mainType,x.componentIndex,h._api),M&&A(M,function(D){c.type===kn?ua(D):fa(D)})}else Qc(c)&&x instanceof Nt&&(function kE(r,e,t){if(Qc(e)){var a=e.dataType,i=wn(r.getData(a),e);z(i)||(i=[i]),r[e.type===Ss?"toggleSelect":e.type===_s?"select":"unselect"](i,a)}}(x,c),wS(x),sr(h))},h),g&&g.eachComponent(m,function(x){S&&null!=S.get(x.id)||b(h["series"===p?"_chartsMap":"_componentsMap"][x.__viewId])},h)}else A([].concat(h._componentsViews).concat(h._chartsViews),b);function b(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,h._api,c)}},Za={prepareAndUpdate:function(h){fo(this),Za.update.call(this,h,{optionChanged:null!=h.newOption})},update:function(h,v){var c=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,p),y.performDataProcessorTasks(c,h),ld(this,c),g.update(c,p),t(c),y.performVisualTasks(c,h),fd(this,c,p,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");d.setBackgroundColor(m),null!=_&&"auto"!==_&&d.setDarkMode(_),Mr.trigger("afterupdate",c,p)}},updateTransform:function(h){var v=this,c=this._model,p=this._api;if(c){c.setUpdatePayload(h);var d=[];c.eachComponent(function(y,m){if("series"!==y){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,p,h);S&&S.update&&d.push(_)}else d.push(_)}});var g=q();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,p,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Pf(this,c,p,h,{},g),Mr.trigger("afterupdate",c,p)}},updateView:function(h){var v=this._model;!v||(v.setUpdatePayload(h),Et.markUpdateMethod(h,"updateView"),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),fd(this,v,this._api,h,{}),Mr.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;!c||(c.setUpdatePayload(h),c.eachSeries(function(p){p.getData().clearAllVisual()}),Et.markUpdateMethod(h,"updateVisual"),t(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(p,d){if("series"!==p){var g=v.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,c,v._api,h)}}),c.eachSeries(function(p){v._chartsMap[p.__viewId].updateVisual(p,c,v._api,h)}),Mr.trigger("afterupdate",c,this._api))},updateLayout:function(h){Za.update.call(this,h)}},sd=function(h,v,c,p){if(!h._disposed)for(var y,d=h._model,g=h._coordSysMgr.getCoordinateSystems(),m=vs(d,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&null!=(y=S[v](d,m,p)))return y}},ld=function(h,v){var c=h._chartsMap,p=h._scheduler;v.eachSeries(function(d){p.updateStreamModes(d,c[d.__viewId])})},ud=function(h,v){var c=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=Ef[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=null!=_[0]&&Br(_[0]);this[Se]=!0;var x=[h],w=!1;h.batch&&(w=!0,x=G(h.batch,function(P){return(P=Q(V({},P),h)).batch=null,P}));var C,T=[],M=Qc(h),D=CS(h);if(D&&bS(this._api),A(x,function(P){if((C=(C=y.action(P,c._model,c._api))||V({},P)).type=m.event||C.type,T.push(C),D){var R=bc(h),k=R.mainTypeSpecified?R.queryOptionMap.keys()[0]:"series";If(c,S,P,k),sr(c)}else M?(If(c,S,P,"series"),sr(c)):b&&If(c,S,P,b.main,b.sub)}),"none"!==S&&!D&&!M&&!b)try{this[Be]?(fo(this),Za.update.call(this,h),this[Be]=null):Za[S].call(this,h)}catch(P){throw this[Se]=!1,P}if(C=w?{type:m.event||d,escapeConnect:g,batch:T}:T[0],this[Se]=!1,!v){var L=this._messageCenter;if(L.trigger(C.type,C),M){var I={type:"selectchanged",escapeConnect:g,selected:OE(p),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},Ks=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();ud.call(this,c,h)}},js=function(h){!h&&this.trigger("updated")},Nb=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[Be]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Vb=function(h,v){h.on("mouseover",function(c){var d=qn(c.target,xs);d&&(function RE(r,e,t){var a=nt(r),n=Kc(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers;i?(n.focusSelf&&qc(a.componentMainType,a.componentIndex,t),A(i,function(s){return gS(s,e)})):(Xc(a.seriesIndex,a.focus,a.blurScope,t),"self"===a.focus&&qc(a.componentMainType,a.componentIndex,t),gS(r,e))}(d,c,v._api),sr(v))}).on("mouseout",function(c){var d=qn(c.target,xs);d&&(function EE(r,e,t){bS(t);var a=nt(r),n=Kc(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?A(n,function(i){return yS(i,e)}):yS(r,e)}(d,c,v._api),sr(v))}).on("click",function(c){var d=qn(c.target,function(m){return null!=nt(m).dataIndex},!0);if(d){var g=d.selected?"unselect":"select",y=nt(d);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})},fd=function(h,v,c,p,d){(function a(h){var v=[],c=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,("series"===m?c:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),p){var g,y,d=v.concat(c);iu(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(d,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;null!=g&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}})(v),Bb(h,v,c,p,d),A(h._chartsViews,function(g){g.__alive=!1}),Pf(h,v,c,p,d),A(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},Bb=function(h,v,c,p,d,g){A(g||h._componentsViews,function(y){var m=y.__model;u(0,y),y.render(m,v,c,p),s(m,y),f(m,y)})},Pf=function(h,v,c,p,d,g){var y=h._scheduler;d=V(d||{},{updatedSeries:v.getSeries()}),Mr.trigger("series:beforeupdate",v,c,d);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,p),u(0,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}(_,S),wS(_)}),y.unfinished=m||y.unfinished,Mr.trigger("series:layoutlabels",v,c,d),Mr.trigger("series:transition",v,c,d),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),function i(h,v){var d=0;h._zr.storage.traverse(function(g){g.isGroup||d++}),d>v.get("hoverLayerThreshold")&&!bt.node&&!bt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}(h,v),Mr.trigger("series:afterupdate",v,c,d)},sr=function(h){h[nd]=!0,h.getZr().wakeUp()},Fb=function(h){!h[nd]||(h.getZr().storage.traverse(function(v){Gi(v)||n(v)}),h[nd]=!1)},zb=function(h){return new(function(v){function c(){return null!==v&&v.apply(this,arguments)||this}return O(c,v),c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(null!=d)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){ua(p,d),sr(h)},c.prototype.leaveEmphasis=function(p,d){fa(p,d),sr(h)},c.prototype.enterBlur=function(p){mS(p),sr(h)},c.prototype.leaveBlur=function(p){Zc(p),sr(h)},c.prototype.enterSelect=function(p){_S(p),sr(h)},c.prototype.leaveSelect=function(p){SS(p),sr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(y1))(h)},Gb=function(h){function v(c,p){for(var d=0;d<c.length;d++)c[d][id]=p}A(Qs,function(c,p){h._messageCenter.on(p,function(d){if(Of[h.group]&&0!==h[id]){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];A(Qn,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,0),A(y,function(m){1!==m[id]&&m.dispatchAction(g)}),v(y,2)}})})}}(),e}(je),hd=Rf.prototype;hd.on=Pb("on"),hd.off=Pb("off"),hd.one=function(r,e,t){var a=this;this.on.call(this,r,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)},t)};var LV=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Ef={},Qs={},vd=[],cd=[],kf=[],Hb={},pd={},Qn={},Of={},IV=+new Date-0,PV=+new Date-0,dd="_echarts_instance_";function RV(r,e,t){var a=!(t&&t.ssr);if(a){var n=gd(r);if(n)return n}var i=new Rf(r,e,t);return i.id="ec_"+IV++,Qn[i.id]=i,a&&A_(r,dd,i.id),Gb(i),Mr.trigger("afterinit",i),i}function EV(r){if(z(r)){var e=r;r=null,A(e,function(t){null!=t.group&&(r=t.group)}),r=r||"g_"+PV++,A(e,function(t){t.group=r})}return Of[r]=!0,r}function Wb(r){Of[r]=!1}var kV=Wb;function OV(r){U(r)?r=Qn[r]:r instanceof Rf||(r=gd(r)),r instanceof Rf&&!r.isDisposed()&&r.dispose()}function gd(r){return Qn[function AR(r,e){return r.getAttribute?r.getAttribute(e):r[e]}(r,dd)]}function NV(r){return Qn[r]}function yd(r,e){Hb[r]=e}function md(r){ht(cd,r)<0&&cd.push(r)}function _d(r,e){Sd(vd,r,e,2e3)}function Ub(r){Nf("afterinit",r)}function Yb(r){Nf("afterupdate",r)}function Nf(r,e){Mr.on(r,e)}function Dr(r,e,t){j(e)&&(t=e,e="");var a=J(r)?r.type:[r,r={event:e}][0];r.event=(r.event||a).toLowerCase(),!Qs[e=r.event]&&(de(Lb.test(a)&&Lb.test(e)),Ef[a]||(Ef[a]={action:t,actionInfo:r}),Qs[e]=a)}function Zb(r,e){Ki.register(r,e)}function VV(r){var e=Ki.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Xb(r,e){Sd(kf,r,e,1e3,"layout")}function Xa(r,e){Sd(kf,r,e,3e3,"visual")}var qb=[];function Sd(r,e,t,a,n){if((j(e)||J(e))&&(t=e,e=a),!(ht(qb,t)>=0)){qb.push(t);var i=Jx.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function xd(r,e){pd[r]=e}function BV(r){jm({createCanvas:r})}function Kb(r,e,t){var a=Tb("registerMap");a&&a(r,e,t)}function zV(r){var e=Tb("getMap");return e&&e(r)}var jb=function cO(r){var e=(r=et(r)).type;e||Dt("");var a=e.split(":");2!==a.length&&Dt("");var n=!1;"echarts"===a[0]&&(e=a[1],n=!0),r.__isBuiltIn=n,W1.set(e,r)};Xa(2e3,mN),Xa(4500,_N),Xa(4500,SN),Xa(2e3,ON),Xa(4500,NN),Xa(7e3,function hV(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");s&&(a.ensureUniqueItemVisual(o,"style").decal=uo(s,e))});var n=a.getVisual("decal");n&&(a.getVisual("style").decal=uo(n,e))}})}),md(T1),_d(900,function Uk(r){var e=q();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(Yk)}),xd("default",function xN(r,e){Q(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new rt,a=new St({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var o,n=new xt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new St({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return t.add(i),e.showSpinner&&((o=new ff({shape:{startAngle:-bf/2,endAngle:-bf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*bf/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*bf/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:2*l,height:2*l}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}),Dr({type:kn,event:kn,update:kn},Xt),Dr({type:Nu,event:Nu,update:Nu},Xt),Dr({type:_s,event:_s,update:_s},Xt),Dr({type:Vu,event:Vu,update:Vu},Xt),Dr({type:Ss,event:Ss,update:Ss},Xt),yd("light",RN),yd("dark",EN);var GV={},Qb=[],FV={registerPreprocessor:md,registerProcessor:_d,registerPostInit:Ub,registerPostUpdate:Yb,registerUpdateLifecycle:Nf,registerAction:Dr,registerCoordinateSystem:Zb,registerLayout:Xb,registerVisual:Xa,registerTransform:jb,registerLoading:xd,registerMap:Kb,registerImpl:function cV(r,e){wb[r]=e},PRIORITY:Db,ComponentModel:_t,ComponentView:Gt,SeriesModel:Nt,ChartView:Et,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Gt.registerClass(r)},registerSeriesModel:function(r){Nt.registerClass(r)},registerChartView:function(r){Et.registerClass(r)},registerSubTypeDefaulter:function(r,e){_t.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){h_(r,e)}};function ct(r){z(r)?A(r,function(e){ct(e)}):ht(Qb,r)>=0||(Qb.push(r),j(r)&&(r={install:r}),r.install(FV))}function Js(r){return null==r?0:r.length||1}function Jb(r){return r}var HV=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||Jb,this._newKeyGetter=n||Jb,this.context=i,this._diffModeMultiple="multiple"===o}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=Js(l);if(u>1){var f=l.shift();1===l.length&&(a[s]=l[0]),this._update&&this._update(f,o)}else 1===u?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._new,a={},n={},i=[],o=[];this._initIndexMap(this._old,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],h=Js(u),v=Js(f);if(h>1&&1===v)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(1===h&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(1===h&&1===v)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=Js(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else 1===o&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),t){var l=t[s],u=Js(l);0===u?(t[s]=o,i&&a.push(s)):1===u?t[s]=[l,o]:l.push(o)}}},r}();const ca=HV;var WV=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function bd(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Vf(r){return"category"===r?"ordinal":"time"===r?"time":"float"}const Bf=function r(e){this.otherDims={},null!=e&&V(this,e)};var XV=Tt(),qV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},$b=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=rw(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return st(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=D1(this.source),a=!aw(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=t?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&null!=l&&(!h||!h.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=qV[u]||"f",f&&(n+=f.uid),n+="$"}var c=this.source;return{dimensions:i,hash:[c.seriesLayoutBy,c.startIndex,n].join("$$")}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function tw(r){return r instanceof $b}function ew(r){for(var e=q(),t=0;t<(r||[]).length;t++){var a=r[t],n=J(a)?a.name:a;null!=n&&null==e.get(n)&&e.set(n,t)}return e}function rw(r){var e=XV(r);return e.dimNameMap||(e.dimNameMap=ew(r.dimensionsDefine))}function aw(r){return r>30}var iw,zf,tl,el,wd,Gf,Td,$s=J,qa=G,KV=typeof Int32Array>"u"?Array:Int32Array,QV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],JV=["_approximateExtent"],$V=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;tw(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var h=a[f],v=U(h)?new Bf({name:h}):h instanceof Bf?h:new Bf(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var p=v.otherDims=v.otherDims||{};o.push(c),i[c]=v,null!=u[c]&&(l=!0),v.createInvertedIndices&&(s[c]=[]),0===p.itemName&&(this._nameDimIdx=f),0===p.itemId&&(this._idDimIdx=f),n&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=q();A(o,function(g){d.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(null!=a)return a;var n=this._schema.getSourceDimension(t);return n?n.name:void 0},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(wt(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(null==t)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var i,n=this;if(e instanceof Ep&&(i=e),!i){var o=this.dimensions,s=Tp(e)||fe(e)?new P1(e,o.length):e;i=new Ep;var l=qa(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function UV(r,e){var t={},a=t.encode={},n=q(),i=[],o=[],s={};A(r.dimensions,function(v){var c=r.getDimensionInfo(v),p=c.coordDim;if(p){var d=c.coordDimIndex;bd(a,p)[d]=v,c.isExtraCoord||(n.set(p,1),function YV(r){return!("ordinal"===r||"time"===r)}(c.type)&&(i[0]=v),bd(s,p)[d]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}e1.each(function(g,y){var m=bd(a,y),_=c.otherDims[y];null!=_&&!1!==_&&(m[_]=c.name)})});var l=[],u={};n.each(function(v,c){var p=a[c];u[c]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var h=a.tooltip;return h&&h.length?o=h.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new WV(s,e),t}(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++)this._nameList[s]=t[s-n],o&&Td(this,s)},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==ha&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===ar&&!n.pure)for(var u=[],f=e;f<t;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&cR(h)&&(this.hasItemOption=!0),h){var v=h.name;null==i[f]&&null!=v&&(i[f]=te(v,null));var c=h.id;null==o[f]&&null!=c&&(o[f]=te(c,null))}}if(this._shouldMakeIdFromName())for(f=e;f<t;f++)Td(this,f);iw(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){$s(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return null==a&&null!=this._nameDimIdx&&(a=tl(this,this._nameDimIdx,t)),null==a&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return zf(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._dimInfos[e];if(n)return this._store.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._dimInfos[e];if(n)return this._store.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return z(e)?n.getValues(qa(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},r.prototype.indicesOfNearest=function(e,t,a){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,a)},r.prototype.each=function(e,t,a){j(e)&&(a=t,t=e,e=[]);var n=a||this,i=qa(el(e),this._getStoreDimIndex,this);this._store.each(i,n?Y(t,n):t)},r.prototype.filterSelf=function(e,t,a){j(e)&&(a=t,t=e,e=[]);var n=a||this,i=qa(el(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Y(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=mt(e),i=[];return A(n,function(o){var s=t._getStoreDimIndex(o);a[s]=e[o],i.push(s)}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){j(e)&&(a=t,t=e,e=[]);var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a=a||this),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=qa(el(e),this._getStoreDimIndex,this),s=Gf(this);return s._store=this._store.map(o,i?Y(t,i):t),s},r.prototype.modify=function(e,t,a,n){var o=a||n||this,s=qa(el(e),this._getStoreDimIndex,this);this._store.modify(s,o?Y(t,o):t)},r.prototype.downSample=function(e,t,a,n){var i=Gf(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.lttbDownSample=function(e,t){var a=Gf(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new Rt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new ca(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return zf(e,a)},function(a){return zf(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},$s(e)?V(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e];return(a&&a[t])??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return null==i&&(z(i=this.getVisual(t))?i=i.slice():$s(i)&&(i=V({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,$s(t)?V(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){$s(e)?V(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){Fc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:qa(this.dimensions,this._getDimInfo,this),this.hostModel)),wd(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];!j(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(jl(arguments)))})},r.internalField=(iw=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new KV(o.categories.length);for(var l=0;l<a.length;l++)a[l]=-1;for(l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},tl=function(e,t,a){return te(e._getCategory(t,a),null)},zf=function(e,t){var a=e._idList[t];return null==a&&null!=e._idDimIdx&&(a=tl(e,e._idDimIdx,t)),null==a&&(a="e\0\0"+t),a},el=function(e){return z(e)||(e=null!=e?[e]:[]),e},Gf=function(e){var t=new r(e._schema?e._schema:qa(e.dimensions,e._getDimInfo,e),e.hostModel);return wd(t,e),t},wd=function(e,t){A(QV.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,A(JV,function(a){e[a]=et(t[a])}),e._calculationInfo=V({},t._calculationInfo)},void(Td=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(null==s&&null!=i&&(a[t]=s=tl(e,i,t)),null==l&&null!=o&&(n[t]=l=tl(e,o,t)),null==l&&null!=s){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}})),r}();const xe=$V;function tB(r,e){return ho(r,e).dimensions}function ho(r,e){Tp(r)||(r=Ap(r));var t=(e=e||{}).coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=function rB(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;J(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&aw(o),l=a===r.dimensionsDefine,u=l?rw(r):ew(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=q(f),v=new U1(o),c=0;c<v.length;c++)v[c]=-1;function p(C){var M=v[C];if(M<0){var D=a[C],L=J(D)?D:{name:D},I=new Bf,P=L.name;return null!=P&&null!=u.get(P)&&(I.name=I.displayName=P),null!=L.type&&(I.type=L.type),null!=L.displayName&&(I.displayName=L.displayName),v[C]=i.length,I.storeDimIndex=C,i.push(I),I}return i[M]}if(!s)for(c=0;c<o;c++)p(c);h.each(function(C,M){var D=Pt(C).slice();if(1===D.length&&!U(D[0])&&D[0]<0)h.set(M,!1);else{var L=h.set(M,[]);A(D,function(I,P){var R=U(I)?u.get(I):I;null!=R&&R<o&&(L[P]=R,g(p(R),M,P))})}});var d=0;function g(C,M,D){null!=e1.get(M)?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}A(t,function(C){var M,D,L,I;if(U(C))M=C,I={};else{M=(I=C).name;var P=I.ordinalMeta;I.ordinalMeta=null,(I=V({},I)).ordinalMeta=P,D=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(M);if(!1!==R){if(!(R=Pt(R)).length)for(var E=0;E<(D&&D.length||1);E++){for(;d<o&&null!=p(d).coordDim;)d++;d<o&&R.push(d++)}A(R,function(N,k){var B=p(N);if(l&&null!=I.type&&(B.type=I.type),g(Q(B,I),M,k),null==B.name&&D){var F=D[k];!J(F)&&(F={name:F}),B.name=B.displayName=F.name,B.defaultTooltip=F.defaultTooltip}L&&Q(B.otherDims,L)})}});var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var S=y||"value";function b(C){null==C.name&&(C.name=C.coordDim)}if(s)A(i,function(C){b(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var w=p(x);null==w.coordDim&&(w.coordDim=aB(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),null==w.type&&(1===i1(r,x)||w.isExtraCoord&&(null!=w.otherDims.itemName||null!=w.otherDims.seriesName))&&(w.type="ordinal")}return function eB(r){for(var e=q(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}(i),new $b({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function aB(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var nB=function r(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e},oB={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",Qt).models[0],i=r.getReferringComponents("yAxis",Qt).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),vo(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),vo(i)&&(a.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",Qt).models[0];e.coordSysDims=["single"],t.set("single",n),vo(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",Qt).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),vo(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),vo(o)&&(a.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),vo(u)&&(a.set(f,u),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})}};function vo(r){return"category"===r.get("type")}function ow(r,e,t){var i,o,s,a=(t=t||{}).byIndex,n=t.stackedCoordDimension;!function sB(r){return!tw(r.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var u,f,h,v,l=!(!r||!r.get("stack"));if(A(i,function(m,_){U(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&"ordinal"!==m.type&&"time"!==m.type&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;A(i,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function pa(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Cd(r,e){return pa(r,e)?r.getCalculationInfo("stackResultDimension"):e}const Zr=function fB(r,e,t){t=t||{};var n,a=e.getSourceManager(),i=!1;r?(i=!0,n=Ap(r)):i=(n=a.getSource()).sourceFormat===ar;var o=function iB(r){var e=r.get("coordinateSystem"),t=new nB(e),a=oB[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}(e),s=function lB(r,e){var n,t=r.get("coordinateSystem"),a=Ki.get(t);return e&&e.coordSysDims&&(n=G(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=Vf(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(e,o),l=t.useEncodeDefaulter,u=j(l)?l:l?it(n1,s,e):null,h=ho(n,{coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),v=function uB(r,e,t){var a,n;return t&&A(r,function(i,o){var l=t.categoryAxisMap.get(i.coordDim);l&&(null==a&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(n=!0)}),!n&&null!=a&&(r[a].otherDims.itemName=0),a}(h.dimensions,t.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),p=ow(e,{schema:h,store:c}),d=new xe(h,e);d.setCalculationInfo(p);var g=null!=v&&function hB(r){if(r.sourceFormat===ar){var e=function vB(r){for(var e=0;e<r.length&&null==r[e];)e++;return r[e]}(r.data||[]);return!z(Oi(e))}}(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:c,null,g),d};var sw=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Mu(sw);const da=sw;var cB=0,pB=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++cB}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&G(a,dB);return new r({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!U(e)&&!a)return e;if(a&&!this._deduplication)return this.categories[t=this.categories.length]=e,t;var n=this._getOrCreateMap();return null==(t=n.get(e))&&(a?(this.categories[t=this.categories.length]=e,n.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r}();function dB(r){return J(r)&&null!=r.value?r.value:r+""}const Ad=pB;function Md(r){return"interval"===r.type||"log"===r.type}function Dd(r){var e=Math.pow(10,Cu(r)),t=r/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Wt(t*e)}function lw(r){return xr(r)+2}function uw(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Ff(r,e){return r>=e[0]&&r<=e[1]}function Hf(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Wf(r,e){return r*(e[1]-e[0])+e[0]}var fw=function(r){function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Ad({})),z(n)&&(n=new Ad({categories:G(n,function(i){return J(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return O(e,r),e.prototype.parse=function(t){return null==t?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ff(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Hf(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Wf(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;null!=i[f];)f++;n.push(f),i[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(da);da.registerClass(fw);const Ld=fw;var Jn=Wt,hw=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return O(e,r),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ff(t,this._extent)},e.prototype.normalize=function(t){return Hf(t,this._extent)},e.prototype.scale=function(t){return Wf(t,this._extent)},e.prototype.setExtent=function(t,a){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(a)||(n[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]<a[0]&&(a[0]=t[0]),t[1]>a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=lw(t)},e.prototype.getTicks=function(t){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;n[0]<i[0]&&s.push(t?{value:Jn(i[0]-a,o)}:{value:n[0]});for(var u=i[0];u<=i[1]&&(s.push({value:u}),(u=Jn(u+a,o))!==s[s.length-1].value);)if(s.length>1e4)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&s.push(t?{value:Jn(f+a,o)}:{value:n[1]}),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<a.length;o++){for(var l=a[o-1],u=0,f=[],v=(a[o].value-l.value)/t;u<t-1;){var c=Jn(l.value+(u+1)*v);c>i[0]&&c<i[1]&&f.push(c),u++}n.push(f)}return n},e.prototype.getLabel=function(t,a){if(null==t)return"";var n=a&&a.precision;return null==n?n=xr(t.value)||0:"auto"===n&&(n=this._intervalPrecision),fp(Jn(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=function gB(r,e,t,a){var n={},o=n.interval=mc((r[1]-r[0])/e,!0);null!=t&&o<t&&(o=n.interval=t),null!=a&&o>a&&(o=n.interval=a);var s=n.intervalPrecision=lw(o);return function yB(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),uw(r,0,e),uw(r,1,e),r[0]>r[1]&&(r[0]=r[1])}(n.niceTickExtent=[Wt(Math.ceil(r[0]/o)*o,s),Wt(Math.floor(r[1]/o)*o,s)],r),n}(i,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1])if(0!==a[0]){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;isFinite(a[1]-a[0])||(a[0]=0,a[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(a[0]=Jn(Math.floor(a[0]/o)*o)),t.fixMax||(a[1]=Jn(Math.ceil(a[1]/o)*o))},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(da);da.registerClass(hw);const Ka=hw;var vw=typeof Float32Array<"u",mB=vw?Float32Array:Array;function Xr(r){return z(r)?vw?new Float32Array(r):r:new mB(r)}var Id="__ec_stack_";function Pd(r){return r.get("stack")||Id+r.seriesIndex}function Rd(r){return r.dim+r.index}function cw(r,e){var t=[];return e.eachSeriesByType(r,function(a){mw(a)&&t.push(a)}),t}function pw(r){var e=function SB(r){var e={};A(r,function(l){var f=l.coordinateSystem.getBaseAxis();if("time"===f.type||"value"===f.type)for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),p=h.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(c,d);e[v]?e[v].push(y):e[v]=[y]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=null===i?s:Math.min(i,s))}t[a]=i}}return t}(r),t=[];return A(r,function(a){var s,i=a.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)s=i.getBandWidth();else if("value"===i.type||"time"===i.type){var u=e[i.dim+"_"+i.index],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=H(a.get("barWidth"),s),d=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(_w(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Rd(i),stackId:Pd(a)})}),dw(t)}function dw(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;null!=c&&(s.gap=c);var p=a.barCategoryGap;null!=p&&(s.categoryGap=p)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(null==s){var l=mt(i).length;s=Math.max(35-4*l,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else S=c,m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d,p=0;A(i,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function gw(r,e){var t=cw(r,e),a=pw(t);A(t,function(n){var i=n.getData(),s=n.coordinateSystem.getBaseAxis(),l=Pd(n),u=a[Rd(s)][l];i.setLayout({bandWidth:u.bandWidth,offset:u.offset,size:u.width})})}function yw(r){return{seriesType:r,plan:Ji(),reset:function(e){if(mw(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),h=pa(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=function bB(r,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),p=_w(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var D,b=_.count,x=p&&Xr(3*b),w=p&&l&&Xr(3*b),T=p&&Xr(b),C=a.master.getRect(),M=v?C.width:C.height,L=S.getStore(),I=0;null!=(D=_.next());){var P=L.get(h?g:o,D),R=L.get(s,D),E=c,N=void 0;h&&(N=+P-L.get(o,D));var k=void 0,B=void 0,F=void 0,W=void 0;if(v){var X=a.dataToPoint([P,R]);h&&(E=a.dataToPoint([N,R])[0]),k=E,B=X[1]+m,F=X[0]-E,W=y,Math.abs(F)<d&&(F=(F<0?-1:1)*d)}else X=a.dataToPoint([R,P]),h&&(E=a.dataToPoint([R,N])[1]),k=X[0]+m,B=E,F=y,W=X[1]-E,Math.abs(W)<d&&(W=(W<=0?-1:1)*d);p?(x[I]=k,x[I+1]=B,x[I+2]=v?F:W,w&&(w[I]=v?C.x:k,w[I+1]=v?B:C.y,w[I+2]=M),T[D]=D):S.setItemLayout(D,{x:k,y:B,width:F,height:W}),I+=3}p&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function mw(r){return r.coordinateSystem&&"cartesian2d"===r.coordinateSystem.type}function _w(r){return r.pipelineContext&&r.pipelineContext.large}var Sw=function(r){function e(t){var a=r.call(this,t)||this;return a.type="time",a}return O(e,r),e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return As(t.value,GS[function ik(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Wi(this._minLevelUnit))]||GS.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC");return function ok(r,e,t,a,n){var i=null;if(U(t))i=t;else if(j(t))i=t(r.value,e,{level:r.level});else{var o=V({},Cs);if(r.level>0)for(var s=0;s<lp.length;++s)o[lp[s]]="{primary|"+o[lp[s]]+"}";var l=t?!1===t.inherit?t:Q(t,o):o,u=HS(r.value,n);if(l[u])i=l[u];else if(l.inherit){for(s=FS.indexOf(u)-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=null==r.level?0:r.level>=0?r.level:i.length+r.level;i=i[h=Math.min(h,i.length-1)]}}return As(new Date(r.value),i,n,a)}(t,a,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var a=this._extent,n=[];if(!this._interval)return n;n.push({value:a[0],level:0});var i=this.getSetting("useUTC"),o=function IB(r,e,t,a){var i=FS,o=0;function s(M,D,L,I,P,R,E){for(var N=new Date(D),k=D,B=N[I]();k<L&&k<=a[1];)E.push({value:k}),N[P](B+=M),k=N.getTime();E.push({value:k,notAdd:!0})}function l(M,D,L){var I=[],P=!D.length;if(!function TB(r,e,t,a){var n=Ue(e),i=Ue(t),o=function(p){return WS(n,p,a)===WS(i,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return v()&&o("millisecond")}}(Wi(M),a[0],a[1],t)){P&&(D=[{value:LB(new Date(a[0]),M,t)},{value:a[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,N=D[R+1].value;if(E!==N){var k=void 0,B=void 0,F=void 0;switch(M){case"year":k=Math.max(1,Math.round(e/rr/365)),B=up(t),F=sk(t);break;case"half-year":case"quarter":case"month":k=AB(e),B=Ui(t),F=US(t);break;case"week":case"half-week":case"day":k=CB(e),B=Yu(t),F=YS(t),!0;break;case"half-day":case"quarter-day":case"hour":k=MB(e),B=Ms(t),F=ZS(t);break;case"minute":k=xw(e,!0),B=Zu(t),F=XS(t);break;case"second":k=xw(e,!1),B=Xu(t),F=qS(t);break;case"millisecond":k=DB(e),B=qu(t),F=KS(t)}s(k,E,N,B,F,0,I),"year"===M&&L.length>1&&0===R&&L.unshift({value:L[0].value-k})}}for(R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,v=0,c=0;c<i.length&&o++<1e4;++c){var p=Wi(i[c]);if(nk(i[c])&&(l(i[c],u[u.length-1]||[],f),p!==(i[c+1]?Wi(i[c+1]):null))){if(f.length){v=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(0===y||f[y-1].value!==m)&&(g.push(f[y]),m>=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/e;if(h>1.5*_&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}var S=Lt(G(u,function(M){return Lt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1;for(c=0;c<S.length;++c)for(var w=S[c],T=0;T<w.length;++T)b.push({value:w[T].value,level:x-c});b.sort(function(M,D){return M.value-D.value});var C=[];for(c=0;c<b.length;++c)(0===c||b[c].value!==b[c-1].value)&&C.push(b[c]);return C}(this._minLevelUnit,this._approxInterval,i,a);return(n=n.concat(o)).push({value:a[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var a=this._extent;if(a[0]===a[1]&&(a[0]-=rr,a[1]+=rr),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-rr}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){var i=this._extent;this._approxInterval=(i[1]-i[0])/(t=t||10),null!=a&&this._approxInterval<a&&(this._approxInterval=a),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var s=Uf.length,l=Math.min(function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t}(Uf,this._approxInterval,0,s),s-1);this._interval=Uf[l][1],this._minLevelUnit=Uf[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return wt(t)?t:+Ue(t)},e.prototype.contain=function(t){return Ff(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Hf(this.parse(t),this._extent)},e.prototype.scale=function(t){return Wf(t,this._extent)},e.type="time",e}(Ka),Uf=[["second",1e3],["minute",6e4],["hour",Ts],["quarter-day",6*Ts],["half-day",12*Ts],["day",1.2*rr],["half-week",3.5*rr],["week",7*rr],["month",31*rr],["quarter",95*rr],["half-year",zS/2],["year",zS]];function CB(r,e){return(r/=rr)>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function AB(r){return(r/=2592e6)>6?6:r>3?3:r>2?2:1}function MB(r){return(r/=Ts)>12?12:r>6?6:r>3.5?4:r>2?2:1}function xw(r,e){return(r/=e?6e4:1e3)>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function DB(r){return mc(r,!0)}function LB(r,e,t){var a=new Date(r);switch(Wi(e)){case"year":case"month":a[US(t)](0);case"day":a[YS(t)](1);case"hour":a[ZS(t)](0);case"minute":a[XS(t)](0);case"second":a[qS(t)](0),a[KS(t)](0)}return a.getTime()}da.registerClass(Sw);const bw=Sw;var ww=da.prototype,rl=Ka.prototype,PB=Wt,RB=Math.floor,EB=Math.ceil,Yf=Math.pow,Lr=Math.log,Ed=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ka,t._interval=0,t}return O(e,r),e.prototype.getTicks=function(t){var n=this._extent,i=this._originalScale.getExtent();return G(rl.getTicks.call(this,t),function(s){var l=s.value,u=Wt(Yf(this.base,l));return u=l===n[0]&&this._fixMin?Zf(u,i[0]):u,{value:u=l===n[1]&&this._fixMax?Zf(u,i[1]):u}},this)},e.prototype.setExtent=function(t,a){var n=Lr(this.base);t=Lr(Math.max(0,t))/n,a=Lr(Math.max(0,a))/n,rl.setExtent.call(this,t,a)},e.prototype.getExtent=function(){var t=this.base,a=ww.getExtent.call(this);a[0]=Yf(t,a[0]),a[1]=Yf(t,a[1]);var i=this._originalScale.getExtent();return this._fixMin&&(a[0]=Zf(a[0],i[0])),this._fixMax&&(a[1]=Zf(a[1],i[1])),a},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var a=this.base;t[0]=Lr(t[0])/Lr(a),t[1]=Lr(t[1])/Lr(a),ww.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,a){this.unionExtent(t.getApproximateExtent(a))},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent,n=a[1]-a[0];if(!(n===1/0||n<=0)){var i=g_(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Wt(EB(a[0]/i)*i),Wt(RB(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){rl.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ff(t=Lr(t)/Lr(this.base),this._extent)},e.prototype.normalize=function(t){return Hf(t=Lr(t)/Lr(this.base),this._extent)},e.prototype.scale=function(t){return t=Wf(t,this._extent),Yf(this.base,t)},e.type="log",e}(da),Tw=Ed.prototype;function Zf(r,e){return PB(r,xr(e))}Tw.getMinorTicks=rl.getMinorTicks,Tw.getLabel=rl.getLabel,da.registerClass(Ed);const kB=Ed;var OB=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);j(i)?this._modelMinNum=Xf(e,i({min:a[0],max:a[1]})):"dataMin"!==i&&(this._modelMinNum=Xf(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(j(o)?this._modelMaxNum=Xf(e,o({min:a[0],max:a[1]})):"dataMax"!==o&&(this._modelMaxNum=Xf(e,o)),n)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=z(s)?s:[s||0,s||0];this._boundaryGapInner="boolean"==typeof l[0]||"boolean"==typeof l[1]?[0,0]:[Sr(l[0],1),Sr(l[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?a:this._modelMaxNum,u=null!=s,f=null!=l;null==s&&(s=e?n?0:NaN:t-i[0]*o),null==l&&(l=e?n?n-1:NaN:a+i[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Ti(s)||Ti(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return null!=v&&(s=v,u=!0),null!=c&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[VB[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){this[NB[e]]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),NB={min:"_determinedMin",max:"_determinedMax"},VB={min:"_dataMin",max:"_dataMax"};function Cw(r,e,t){var a=r.rawExtentInfo;return a||(a=new OB(r,e,t),r.rawExtentInfo=a,a)}function Xf(r,e){return null==e?null:Ti(e)?NaN:r.parse(e)}function Aw(r,e){var t=r.type,a=Cw(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&"time"===t){var s=cw("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=pw(s),f=function BB(r,e,t,a){var n=t.axis.getExtent(),i=n[1]-n[0],o=function xB(r,e,t){if(r&&e){var a=r[Rd(e)];return null!=a&&null!=t?a[Pd(t)]:a}}(a,t.axis);if(void 0===o)return{min:r,max:e};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,v=f/(1-(s+l)/i)-f;return{min:r-=v*(s/u),max:e+=v*(l/u)}}(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function $n(r,e){var t=e,a=Aw(r,t),n=a.extent,i=t.get("splitNumber");r instanceof kB&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l="interval"===o||"time"===o;r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),null!=s&&r.setInterval&&r.setInterval(s)}function al(r,e){if(e=e||r.get("type"))switch(e){case"category":return new Ld({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new bw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(da.getClass(e)||Ka)}}function nl(r){var a,e=r.getLabelModel().get("formatter"),t="category"===r.type?r.scale.getExtent()[0]:null;return"time"===r.scale.type?(a=e,function(n,i){return r.scale.getFormattedLabel(n,i,a)}):U(e)?function(a){return function(n){var i=r.scale.getLabel(n);return a.replace("{value}",i??"")}}(e):j(e)?function(a){return function(n,i){return null!=t&&(i=n.value-t),a(kd(r,n),i,null!=n.level?{level:n.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function kd(r,e){return"category"===r.type?r.scale.getLabel(e):e.value}function FB(r,e){var t=e*Math.PI/180,a=r.width,n=r.height,i=a*Math.abs(Math.cos(t))+Math.abs(n*Math.sin(t)),o=a*Math.abs(Math.sin(t))+Math.abs(n*Math.cos(t));return new ut(r.x,r.y,i,o)}function Od(r){return r.get("interval")??"auto"}function Mw(r){return"category"===r.type&&0===Od(r.getLabelModel())}function qf(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[Cd(r,a)]=!0}),mt(t)}var co=function(){function r(){}return r.prototype.getNeedCrossZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}();function WB(r){return Zr(null,r)}var UB={isDimensionStacked:pa,enableDataStack:ow,getStackedDimension:Cd};function YB(r,e){var t=e;e instanceof Rt||(t=new Rt(e));var a=al(t);return a.setExtent(r[0],r[1]),$n(a,t),a}function ZB(r){Zt(r,co)}function XB(r,e){return Ot(r,null,null,"normal"!==(e=e||{}).state)}function Dw(r,e){return Math.abs(r-e)<1e-8}function ti(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=sa(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Dw(n[0],s[0])||!Dw(n[1],s[1]))&&(a+=sa(n[0],n[1],s[0],s[1],e,t)),0!==a}var KB=[];function Nd(r,e){for(var t=0;t<r.length;t++)se(r[t],r[t],e)}function Lw(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(ea(e,e,i),ra(t,t,i))}}var Iw=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Pw=function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t},Rw=function r(e){this.type="linestring",this.points=e},Ew=function(r){function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return O(e,r),e.prototype.calcCenter=function(){for(var a,t=this.geometries,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return function jB(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0];return A(this.geometries,function(s){"polygon"===s.type?Lw(s.exterior,n,i,t):A(s.points,function(l){Lw(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new ut(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if("polygon"===s.type){var u=s.interiors;if(ti(s.exterior,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(ti(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new ut(t,a,n,i),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];"polygon"===v.type?(Nd(v.exterior,u),A(v.interiors,function(c){Nd(c,u)})):A(v.points,function(c){Nd(c,u)})}(o=this._rect).copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(Iw),QB=function(r){function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return O(e,r),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Uo(KB),o=t;o&&!o.isGeoSVGGraphicRoot;)kr(i,o.getLocalTransform(),i),o=o.parent;return cn(i,i),se(n,n,i),n},e}(Iw);function Vd(r,e,t){for(var a=0;a<r.length;a++)r[a]=kw(r[a],e[a],t)}function kw(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),n=s+=n,i=l+=i,a.push([s/t,l/t])}return a}function Bd(r,e){return r=function JB(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;return null==t&&(t=1024),A(e.features,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=kw(s,o,t);break;case"Polygon":case"MultiLineString":Vd(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return Vd(l,o[u],t)})}}),e.UTF8Encoding=!1,e}(r),G(Lt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Pw(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Pw(l[0],l.slice(1)))});break;case"LineString":i.push(new Rw([n.coordinates]));break;case"MultiLineString":i.push(new Rw(n.coordinates))}var s=new Ew(a[e||"name"],i,a.cp);return s.properties=a,s})}function $B(r,e,t,a,n,i,o,s){return new xt({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}var il=Tt();function Ow(r,e){var i,o,t=Nw(r,"labels"),a=Od(e);return Vw(t,a)||(j(a)?i=Gw(r,a):(o="auto"===a?function iz(r){return il(r).autoInterval??(il(r).autoInterval=r.calculateCategoryInterval())}(r):a,i=zw(r,o)),Bw(t,a,{labels:i,labelCategoryInterval:o}))}function Nw(r,e){return il(r)[e]||(il(r)[e]=[])}function Vw(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function Bw(r,e,t){return r.push({key:e,value:t}),t}function zw(r,e,t){var a=nl(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();0!==u&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Mw(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&d(i[0]);for(var p=u;p<=i[1];p+=l)d(p);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return c&&p-l!==i[1]&&d(i[1]),s}function Gw(r,e,t){var a=r.scale,n=nl(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Fw=[0,1],lz=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return dc(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&Hw(a=a.slice(),n.count()),It(e,Fw,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&Hw(a=a.slice(),n.count());var i=It(e,a,Fw,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=G(function ez(r,e){return"category"===r.type?function az(r,e){var i,o,t=Nw(r,"ticks"),a=Od(e),n=Vw(t,a);if(n)return n;if((!e.get("show")||r.scale.isBlank())&&(i=[]),j(a))i=Gw(r,a,!0);else if("auto"===a){var s=Ow(r,r.getLabelModel());o=s.labelCategoryInterval,i=G(s.labels,function(l){return l.tickValue})}else i=zw(r,o=a,!0);return Bw(t,a,{ticks:i,tickCategoryInterval:o})}(r,e):{ticks:G(r.scale.getTicks(),function(t){return t.value})}}(this,t).ticks,function(s){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this);return function uz(r,e,t,a){var n=e.length;if(r.onBand&&!t&&n){var o,i=r.getExtent();if(1===n)e[0].coord=i[0],o=e[1]={coord:i[0]};else{var u=(e[n-1].coord-e[0].coord)/(e[n-1].tickValue-e[0].tickValue);A(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();e.push(o={coord:e[n-1].coord+u*(1+f[1]-e[n-1].tickValue)})}var h=i[0]>i[1];v(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&v(i[0],e[0].coord)&&e.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&v(o.coord,i[1])&&e.push({coord:i[1]})}function v(c,p){return c=Wt(c),p=Wt(p),h?c>p:c<p}}(this,i,t.get("alignWithLabel"),e.clamp),i},r.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),G(this.scale.getMinorTicks(t),function(i){return G(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},r.prototype.getViewLabels=function(){return function tz(r){return"category"===r.type?function rz(r){var e=r.getLabelModel(),t=Ow(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}(r):function nz(r){var e=r.scale.getTicks(),t=nl(r);return{labels:G(e,function(a,n){return{level:a.level,formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}(r)}(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);0===a&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return function oz(r){var e=function sz(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(r),t=nl(r),a=(e.axisRotate-e.labelRotate)/180*Math.PI,n=r.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d,g=ss(t({value:l}),e.font,"center","top");d=1.3*g.height,v=Math.max(v,1.3*g.width,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=il(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return null!=x&&null!=w&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}(this)},r}();function Hw(r,e){var n=(r[1]-r[0])/e/2;r[0]+=n,r[1]-=n}const lr=lz;function fz(r){var e=_t.extend(r);return _t.registerClass(e),e}function hz(r){var e=Gt.extend(r);return Gt.registerClass(e),e}function vz(r){var e=Nt.extend(r);return Nt.registerClass(e),e}function cz(r){var e=Et.extend(r);return Et.registerClass(e),e}var ol=2*Math.PI,ei=Hr.CMD,pz=["top","right","bottom","left"];function dz(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0)}}function gz(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*t+r,h=(s/=u)*t+e;if(Math.abs(a-n)%ol<1e-4)return l[0]=f,l[1]=h,u-t;if(i){var v=a;a=Na(n),n=Na(v)}else a=Na(a),n=Na(n);a>n&&(n+=ol);var c=Math.atan2(s,o);if(c<0&&(c+=ol),c>=a&&c<=n||c+ol>=a&&c+ol<=n)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Kf(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,h=a-e,v=Math.sqrt(f*f+h*h),p=(l*(f/=v)+u*(h/=v))/v;s&&(p=Math.min(Math.max(p,0),1));var d=o[0]=r+(p*=v)*f,g=o[1]=e+p*h;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function Ww(r,e,t,a,n,i,o){t<0&&(r+=t,t=-t),a<0&&(e+=a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Ir=[];function yz(r,e,t){var a=Ww(e.x,e.y,e.width,e.height,r.x,r.y,Ir);return t.set(Ir[0],Ir[1]),a}function mz(r,e,t){for(var s,l,a=0,n=0,i=0,o=0,u=1/0,f=e.data,h=r.x,v=r.y,c=0;c<f.length;){var p=f[c++];1===c&&(i=a=f[c],o=n=f[c+1]);var d=u;switch(p){case ei.M:a=i=f[c++],n=o=f[c++];break;case ei.L:d=Kf(a,n,f[c],f[c+1],h,v,Ir,!0),a=f[c++],n=f[c++];break;case ei.C:d=O0(a,n,f[c++],f[c++],f[c++],f[c++],f[c],f[c+1],h,v,Ir),a=f[c++],n=f[c++];break;case ei.Q:d=V0(a,n,f[c++],f[c++],f[c],f[c+1],h,v,Ir),a=f[c++],n=f[c++];break;case ei.A:var g=f[c++],y=f[c++],m=f[c++],_=f[c++],S=f[c++],b=f[c++];c+=1;var x=!!(1-f[c++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,c<=1&&(i=s,o=l),d=gz(g,y,_,S,S+b,x,(h-g)*_/m+g,v,Ir),a=Math.cos(S+b)*m+g,n=Math.sin(S+b)*_+y;break;case ei.R:d=Ww(i=a=f[c++],o=n=f[c++],f[c++],f[c++],h,v,Ir);break;case ei.Z:d=Kf(a,n,i,o,h,v,Ir,!0),a=i,n=o}d<u&&(u=d,t.set(Ir[0],Ir[1]))}return u}var Pr=new lt,Vt=new lt,jt=new lt,qr=new lt,Kr=new lt;function Uw(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||pz,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),h=f&&cn([],f),v=e.get("length2")||0;u&&jt.copy(u);for(var c=0;c<o.length;c++){dz(o[c],0,s,Pr,qr),lt.scaleAndAdd(Vt,Pr,qr,v),Vt.transform(h);var d=r.getBoundingRect(),g=u?u.distance(Vt):r instanceof pt?mz(Vt,r.path,jt):yz(Vt,d,jt);g<l&&(l=g,Vt.transform(f),jt.transform(f),jt.toArray(i[0]),Vt.toArray(i[1]),Pr.toArray(i[2]))}Yw(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var jf=[],Pe=new lt;function Yw(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Pr.fromArray(r[0]),Vt.fromArray(r[1]),jt.fromArray(r[2]),lt.sub(qr,Pr,Vt),lt.sub(Kr,jt,Vt);var t=qr.len(),a=Kr.len();if(!(t<.001||a<.001)){qr.scale(1/t),Kr.scale(1/a);var n=qr.dot(Kr);if(Math.cos(e)<n){var o=Kf(Vt.x,Vt.y,jt.x,jt.y,Pr.x,Pr.y,jf,!1);Pe.fromArray(jf),Pe.scaleAndAdd(Kr,o/Math.tan(Math.PI-e));var s=jt.x!==Vt.x?(Pe.x-Vt.x)/(jt.x-Vt.x):(Pe.y-Vt.y)/(jt.y-Vt.y);if(isNaN(s))return;s<0?lt.copy(Pe,Vt):s>1&&lt.copy(Pe,jt),Pe.toArray(r[1])}}}}function _z(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Pr.fromArray(r[0]),Vt.fromArray(r[1]),jt.fromArray(r[2]),lt.sub(qr,Vt,Pr),lt.sub(Kr,jt,Vt);var a=qr.len(),n=Kr.len();if(!(a<.001||n<.001)&&(qr.scale(1/a),Kr.scale(1/n),qr.dot(e)<Math.cos(t))){var s=Kf(Vt.x,Vt.y,jt.x,jt.y,Pr.x,Pr.y,jf,!1);Pe.fromArray(jf);var l=Math.PI/2,f=l+Math.acos(Kr.dot(e))-t;if(f>=l)lt.copy(Pe,jt);else{Pe.scaleAndAdd(Kr,s/Math.tan(Math.PI/2-f));var h=jt.x!==Vt.x?(Pe.x-Vt.x)/(jt.x-Vt.x):(Pe.y-Vt.y)/(jt.y-Vt.y);if(isNaN(h))return;h<0?lt.copy(Pe,Vt):h>1&&lt.copy(Pe,jt)}Pe.toArray(r[1])}}}function Zw(r,e,t,a){var n="normal"===t,i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&!0===o&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Sz(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=ta(a[0],a[1]),i=ta(a[1],a[2]);if(!n||!i)return r.lineTo(a[1][0],a[1][1]),void r.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*t,s=Wo([],a[1],a[0],o/n),l=Wo([],a[1],a[2],o/i),u=Wo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function zd(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(n){for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<ms.length;l++){var u=ms[l],f=e[u],h="normal"===u;if(f){var v=f.get("show");if((h?s:st(n.states[u]&&n.states[u].ignore,s))||!st(v,o)){var p=h?a:a&&a.states[u];p&&(p.ignore=!0);continue}a||(a=new Le,r.setTextGuideLine(a),!h&&(s||!o)&&Zw(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Zw(a,!1,u,f)}}if(a){Q(a.style,t),a.style.fill=null;var d=i.get("showAbove");(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=d||!1,a.buildPath=Sz}}else a&&r.removeTextGuideLine()}function Gd(r,e){for(var t={normal:r.getModel(e=e||"labelLine")},a=0;a<Ae.length;a++){var n=Ae[a];t[n]=r.getModel([n,e])}return t}function Xw(r){for(var e=[],t=0;t<r.length;t++){var a=r[t];if(!a.defaultAttr.ignore){var n=a.label,i=n.getComputedTransform(),o=n.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new pf(o,i):null;e.push({label:n,labelLine:a.labelLine,rect:u,localRect:o,obb:f,priority:a.priority,defaultAttr:a.defaultAttr,layoutOption:a.computedLayoutOption,axisAligned:s,transform:i})}}return e}function qw(r,e,t,a,n,i){var o=r.length;if(!(o<2)){r.sort(function(C,M){return C.rect[e]-M.rect[e]});for(var l,s=0,u=!1,f=[],h=0,v=0;v<o;v++){var c=r[v],p=c.rect;(l=p[e]-s)<0&&(p[e]-=l,c.label[e]-=l,u=!0);var d=Math.max(-l,0);f.push(d),h+=d,s=p[e]+p[t]}h>0&&i&&x(-h/o,0,o);var m,_,g=r[0],y=r[o-1];return S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_),u}function S(){m=g.rect[e]-a,_=n-y.rect[e]-y.rect[t]}function b(C,M,D){if(C<0){var L=Math.min(M,-C);if(L>0){x(L*D,0,o);var I=L+C;I<0&&w(-I*D,1)}else w(-C*D,1)}}function x(C,M,D){0!==C&&(u=!0);for(var L=M;L<D;L++){var I=r[L];I.rect[e]+=C,I.label[e]+=C}}function w(C,M){for(var D=[],L=0,I=1;I<o;I++){var P=r[I-1].rect,R=Math.max(r[I].rect[e]-P[e]-P[t],0);D.push(R),L+=R}if(L){var E=Math.min(Math.abs(C)/L,M);if(C>0)for(I=0;I<o-1;I++)x(D[I]*E,0,I+1);else for(I=o-1;I>0;I--)x(-D[I-1]*E,I,o)}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),L=0;L<o-1;L++)if(M>0?x(D,0,L+1):x(-D,o-L-1,o),(C-=D)<=0)return}}function Kw(r,e,t,a){return qw(r,"y","height",e,t,a)}function jw(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ut(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");null==g.ignore&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n<r.length;n++){var i=r[n],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,f=i.labelLine;t.copy(i.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=i.obb,v=!1,c=0;c<e.length;c++){var p=e[c];if(t.intersect(p.rect)){if(o&&p.axisAligned){v=!0;break}if(p.obb||(p.obb=new pf(p.localRect,p.transform)),h||(h=new pf(s,l)),h.intersect(p.obb)){v=!0;break}}}v?(a(u),f&&a(f)):(u.attr("ignore",i.defaultAttr.ignore),f&&f.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function bz(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function wz(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:bz(a&&a.shape.points)}}var Qw=["align","verticalAlign","width","height","fontSize"],Ze=new ia,Fd=Tt(),Tz=Tt();function Qf(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];null!=e[n]&&(r[n]=e[n])}}var Jf=["x","y","rotation"],Cz=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,l=n.__hostTarget.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();ut.applyTransform(f,f,u),u?Ze.setLocalTransform(u):(Ze.x=Ze.y=Ze.rotation=Ze.originX=Ze.originY=0,Ze.scaleX=Ze.scaleY=1);var v,h=n.__hostTarget;if(h){v=h.getBoundingRect().plain();var c=h.getComputedTransform();ut.applyTransform(v,v,c)}var p=v&&h.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:Ze.x,y:Ze.y,scaleX:Ze.scaleX,scaleY:Ze.scaleY,rotation:Ze.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");!j(n)&&!mt(n).length||e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=nt(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(_,S){return function(){Uw(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;f=j(o.layoutOption)?o.layoutOption(wz(o,l)):o.layoutOption,o.computedLayoutOption=f=f||{};var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:u.attachedPos,rotation:null!=f.rotate?f.rotate*h:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(null!=f.x?(s.x=H(f.x,t),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),null!=f.y?(s.y=H(f.y,a),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var c=l.getTextGuideLine();c&&(c.setShape({points:f.labelLinePoints}),v=!1)}Fd(s).needsUpdateLabelLine=v,s.rotation=null!=f.rotate?f.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<Qw.length;d++){var g=Qw[d];s.setStyle(g,null!=f[g]?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;null!=o.dataIndex&&(y=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=Xw(this._labelList),i=Lt(n,function(l){return"shiftX"===l.layoutOption.moveOverlap}),o=Lt(n,function(l){return"shiftY"===l.layoutOption.moveOverlap});(function xz(r,e,t,a){qw(r,"x","width",e,t,a)})(i,0,t),Kw(o,0,a),jw(Lt(n,function(l){return l.layoutOption.hideOverlap}))},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Fd(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=nt(e),i=n.dataIndex;if(a&&null!=i){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style"),f=o.getVisual("drawType");l.stroke=u[f];var h=s.getModel("labelLine");zd(e,Gd(s),l),Uw(e,h)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Gi(e))){var o=(i=Fd(a)).oldLayout,s=nt(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var v=e.prevStates;v&&(ht(v,"select")>=0&&a.attr(i.oldLayoutSelect),ht(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Ct(a,u,t,l)}else if(a.attr(u),!Fi(a).valueAnimation){var h=st(a.style.opacity,1);a.style.opacity=0,zt(a,{style:{opacity:h}},t,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};Qf(c,u,Jf),Qf(c,a.states.select,Jf)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Qf(p,u,Jf),Qf(p,a.states.emphasis,Jf)}OS(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=Tz(n),d={points:n.shape.points};(o=i.oldLayout)?(n.attr({shape:o}),Ct(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,zt(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const Az=Cz;var Hd=Tt();function Jw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Hd(t).labelManager;n||(n=Hd(t).labelManager=new Az),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Hd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function $w(r,e,t){var a=dr.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}ct(Jw);var Mz=function(r){function e(t,a,n){var o,i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,n=n||xu,"string"==typeof t?o=$w(t,a,n):J(t)&&(t=(o=t).id),i.id=t,i.dom=o;var s=o.style;return s&&(xv(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return Bt(e,r),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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 t=this.dpr;this.domBack=$w("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var g,o=[],s=this.maxRepaintRectCount,l=!1,u=new ut(0,0,0,0);function f(m){if(m.isFinite()&&!m.isZero())if(0===o.length)(_=new ut(0,0,0,0)).copy(m),o.push(_);else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new ut(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}if(l){u.copy(m),u.union(T);var I=u.width*u.height-m.width*m.height-T.width*T.height;I<b&&(b=I,x=w)}}var _;l&&(o[x].union(m),S=!0),S||((_=new ut(0,0,0,0)).copy(m),o.push(_)),l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h)if(v=t[h]){var c=v.shouldBePainted(n,i,!0,!0);(p=v.__isRendered&&(1&v.__dirty||!c)?v.getPrevPaintRect():null)&&f(p);var d=c&&(1&v.__dirty||!v.__isRendered)?v.getPaintRect():null;d&&f(d)}for(h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v,p;c=(v=a[h]).shouldBePainted(n,i,!0,!0),!v||c&&v.__zr||!v.__isRendered||(p=v.getPrevPaintRect())&&f(p)}do{for(g=!1,h=0;h<o.length;)if(o[h].isZero())o.splice(h,1);else{for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/h,l/h));var c=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),a&&"transparent"!==a){var _=void 0;No(a)?(_=(a.global||a.__width===y&&a.__height===m)&&a.__canvasGradient||Jp(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m):e0(a)&&(a.scaleX=a.scaleX||h,a.scaleY=a.scaleY||h,_=td(o,a,{dirty:function(){v.setUnpainted(),v.__painter.refresh()}})),o.save(),o.fillStyle=_||a,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,d,g,y,m),o.restore())}!n||u?p(0,0,s,l):n.length&&A(n,function(d){p(d.x*h,d.y*h,d.width*h,d.height*h)})},e}(je);const Wd=Mz;var ri=314159,Pz=function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=a=V({},a||{}),this.dpr=a.devicePixelRatio||xu,this._singleCanvas=i,this.root=e,e.style&&(xv(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,h=f.width,v=f.height;null!=a.width&&(h=a.width),null!=a.height&&(v=a.height),this.dpr=a.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new Wd(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[ri]=c,c.zlevel=ri,s.push(ri),this._domRoot=e}else{this._width=lo(e,0,a),this._height=lo(e,1,a);var u=this._domRoot=function Iz(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var s=this._layers[n[i]];!s.__builtin__&&s.refresh&&s.refresh(0===i?this._backgroundColor:null)}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),t){for(var i,n={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(1e5)),i||(i=a.ctx).save(),jn(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(1e5)},r.prototype.paintOne=function(e,t){ed(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Vv(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(ri).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._layers[this._zlevelList[s]];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var f=!0,h=!1,v=function(d){var g=i[d],y=g.ctx,m=o&&g.createRepaintRects(e,t,c._width,c._height),_=a?g.__startIndex:g.__drawIndex,S=!a&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,x,m)}-1===_&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(T=_;T<g.__endIndex;T++){var R=e[T];if(R.__inHover&&(h=!0),n._doPaintEl(R,g,o,I,P,T===g.__endIndex-1),S&&Date.now()-b>15)break}P.prevElClipPaths&&y.restore()};if(m)if(0===m.length)T=g.__endIndex;else for(var M=c.dpr,D=0;D<m.length;++D){var L=m[D];y.save(),y.beginPath(),y.rect(L.x*M,L.y*M,L.width*M,L.height*M),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},c=this,p=0;p<i.length;p++)v(p);return bt.wxa&&A(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!n||l&&l.intersect(n))&&(jn(s,e,i,o),e.setPrevPaintRect(l))}else jn(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ri);var a=this._layers[e];return a||((a=new Wd("zr_"+e,this,this.dpr)).zlevel=e,a.__builtin__=!0,this._layerConfig[e]?ot(a,this._layerConfig[e],!0):this._layerConfig[e-.01]&&ot(a,this._layerConfig[e-.01],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&function Lz(r){return!(!r||!r.__builtin__&&("function"!=typeof r.resize||"function"!=typeof r.refresh))}(t)){if(i>0&&e>n[0]){for(l=0;l<i-1&&!(n[l]<e&&n[l+1]>e);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){function t(h){i&&(i.__endIndex!==h&&(i.__dirty=!0),i.__endIndex=h)}if(this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1}),this._singleCanvas)for(var a=1;a<e.length;a++)if((n=e[a]).zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}var s,l,i=null,o=0;for(l=0;l<e.length;l++){var n,u=(n=e[l]).zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?((f=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,o=1):f=this.getLayer(u+(o>0?.01:0),this._needsManuallyCompositing),f.__builtin__||Xl("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.__drawIndex=f.incremental?-1:l,t(l),i=f),1&n.__dirty&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?ot(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];i!==e&&i!==e+.01||ot(this._layers[i],a[e],!0)}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];!n||(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(ht(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=lo(i,0,n),t=lo(i,1,n),a.style.display="",this._width!==e||t!==this._height){for(var o in a.style.width=e+"px",a.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(ri).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._layers[ri].dom;var t=new Wd("image",this,(e=e||{}).pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(h){h.__builtin__?a.drawImage(h.dom,0,0,n,i):h.renderToCanvas&&(a.save(),h.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++)jn(a,s[l],o,l===u-1);return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const Rz=Pz;var Ud=Math.sin,Yd=Math.cos,eT=Math.PI,ai=2*Math.PI,kz=180/eT,Oz=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var p,u=s-o,f=!l,h=Math.abs(u),v=Ra(h-ai)||(f?u>=ai:-u>=ai),c=u>0?u%ai:u%ai+ai;p=!!v||!Ra(h)&&c>=eT==!!f;var d=e+a*Yd(o),g=t+n*Ud(o);this._start&&this._add("M",d,g);var y=Math.round(i*kz);if(v){var m=1/this._p,_=(f?1:-1)*(ai-m);this._add("A",a,n,y,1,+f,e+a*Yd(o+_),t+n*Ud(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*Yd(s),b=t+n*Ud(s);this._add("A",a,n,y,+p,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v<arguments.length;v++){var c=arguments[v];if(isNaN(c))return void(this._invalid=!0);f.push(Math.round(c*h)/h)}this._d.push(e+f.join(" ")),this._start="Z"===e},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const rT=Oz;var sl="none",Nz=Math.round,Zd=["lineCap","miterLimit","lineJoin"],zz=G(Zd,function(r){return"stroke-"+r.toLowerCase()});var aT="http://www.w3.org/2000/svg",nT="http://www.w3.org/1999/xlink";function iT(r){return document.createElementNS(aT,r)}function oe(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function Xd(r,e){var t=(e=e||{}).newline?"\n":"";return function a(n){var i=n.children,o=n.tag;return function Wz(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;!1!==n&&(!0!==n&&null!=n&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}(o,n.attrs)+we(n.text)+(i?""+t+G(i,function(l){return a(l)}).join(t)+t:"")+function Uz(r){return"</"+r+">"}(o)}(r)}function qd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function oT(r,e,t,a){return oe("svg","root",{width:r,height:e,xmlns:aT,"xmlns:xlink":nT,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+r+" "+e},t)}var sT={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ni="transform-origin";function Zz(r,e,t){var a=V({},r.shape);V(a,e),r.buildPath(t,a);var n=new rT;return n.reset(Z0(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function Xz(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[ni]=t+"px "+a+"px")}var qz={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function lT(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function uT(r){return U(r)?sT[r]?"cubic-bezier("+sT[r]+")":zv(r)?r:"":""}function th(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof hf){var s=function Kz(r,e,t){var i,o,n={};if(A(r.shape.paths,function(l){var u=qd(t.zrId);u.animation=!0,th(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=mt(f),c=v.length;if(c){var p=f[o=v[c-1]];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),i){e.d=!1;var s=lT(n,t);return i.replace(o,s)}}(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=uT(f.getClip().easing),c=f.getDelay();h.push(v||"linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(at,yt,vt){for(var K=at.getTracks(),ft=at.getMaxTime(),Ht=0;Ht<K.length;Ht++){var At=K[Ht];if(At.needsAnimate()){var qt=At.keyframes,Yt=At.propName;if(vt&&(Yt=vt(Yt)),Yt)for(var be=0;be<qt.length;be++){var ba=qt[be],ze=Math.round(ba.time/ft*100)+"%",rv=uT(ba.easing),un=ba.rawValue;(U(un)||wt(un))&&(yt[ze]=yt[ze]||{},yt[ze][Yt]=ba.rawValue,rv&&(yt[ze][T]=rv))}}}}for(var M=0;M<S;M++)(L=(D=_[M]).targetName)?"shape"===L&&C(D,x):!a&&C(D,b);for(var I in b){var P={};i_(P,r),V(P,b[I]);var R=X0(P),E=b[I][T];w[I]=R?{transform:R}:{},Xz(w[I],P),E&&(w[I][T]=E)}var N,k=!0;for(var I in x){w[I]=w[I]||{};var B=!N;E=x[I][T],B&&(N=new Hr);var F=N.len();N.reset(),w[I].d=Zz(r,x[I],N);var W=N.len();if(!B&&F!==W){k=!1;break}E&&(w[I][T]=E)}if(!k)for(var I in w)delete w[I].d;if(!a)for(M=0;M<S;M++){var D,L;"style"===(L=(D=_[M]).targetName)&&C(D,w,function(K){return qz[K]})}var tt,X=mt(w),$=!0;for(M=1;M<X.length;M++){var dt=X[M-1];if(w[dt][ni]!==w[X[M]][ni]){$=!1;break}tt=w[dt][ni]}if($&&tt){for(var I in w)w[I][ni]&&delete w[I][ni];e[ni]=tt}if(Lt(X,function(at){return mt(w[at]).length>0}).length)return lT(w,t)+" "+m[0]+" both"}for(var g in l)(s=d(l[g]))&&o.push(s);if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var ll=Math.round;function fT(r){return r&&U(r.src)}function hT(r){return r&&j(r.toDataURL)}function Kd(r,e,t,a){(function Gz(r,e,t,a){var n=null==e.opacity?1:e.opacity;if(t instanceof ue)r("opacity",n);else{if(function Vz(r){var e=r.fill;return null!=e&&e!==sl}(e)){var i=as(e.fill);r("fill",i.color);var o=null!=e.fillOpacity?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r("fill-opacity",o)}else r("fill",sl);if(function Bz(r){var e=r.stroke;return null!=e&&e!==sl}(e)){var s=as(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,h=e.strokeFirst;if((a||1!==u)&&r("stroke-width",u),(a||h)&&r("paint-order",h?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),e.lineDash){var v=$p(t),c=v[0],p=v[1];c&&(p=Nz(p||0),r("stroke-dasharray",c.join(",")),(p||a)&&r("stroke-dashoffset",p))}else a&&r("stroke-dasharray",sl);for(var d=0;d<Zd.length;d++){var g=Zd[d];if(a||e[g]!==ku[g]){var y=e[g]||ku[g];y&&r(zz[d],y)}}}else a&&r("stroke",sl)}})(function(n,i){var o="fill"===n||"stroke"===n;o&&Y0(i)?yT(e,r,n,a):o&&Zv(i)?mT(t,r,n,a):r[n]=i},e,t,!1),function r5(r,e,t){var a=r.style;if(function D2(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}(a)){var n=function L2(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,h=a.shadowOffsetY||0,v=a.shadowBlur,c=as(a.shadowColor),p=c.opacity,d=c.color,m=v/2/l+" "+v/2/u;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=oe("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[oe("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[n]=o}e.filter=pu(o)}}(t,r,a)}function vT(r){return Ra(r[0]-1)&&Ra(r[1])&&Ra(r[2])&&Ra(r[3]-1)}function jd(r,e,t){if(e&&(!function jz(r){return Ra(r[4])&&Ra(r[5])}(e)||!vT(e))){var a=t?10:1e4;r.transform=vT(e)?"translate("+ll(e[4]*a)/a+" "+ll(e[5]*a)/a+")":function C2(r){return"matrix("+cu(r[0])+","+cu(r[1])+","+cu(r[2])+","+cu(r[3])+","+Yv(r[4])+","+Yv(r[5])+")"}(e)}}function cT(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(ll(a[i][0]*t)/t),n.push(ll(a[i][1]*t)/t);e.points=n.join(" ")}function pT(r){return!r.smooth}var Jz={circle:[function Qz(r){var e=G(r,function(t){return"string"==typeof t?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];null!=s&&(a[o[1]]=ll(s*n)/n)}}}(["cx","cy","r"])],polyline:[cT,pT],polygon:[cT,pT]};function dT(r,e){var t=r.style,a=r.shape,n=Jz[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Z0(r)||4;if(!n||e.willUpdate||n[1]&&!n[1](a)||o&&function $z(r){for(var e=r.animators,t=0;t<e.length;t++)if("shape"===e[t].targetName)return!0;return!1}(r)||l<1){var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var c=v.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==c||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new rT),d.reset(u),v.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=c,p.__svgPathStrokePercent=l),i.d=d.getStr()}else{s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}return jd(i,r.transform),Kd(i,t,r,e),e.animation&&th(r,i,e),oe(s,r.id+"",i)}function gT(r,e){return r instanceof pt?dT(r,e):r instanceof ue?function t5(r,e){var t=r.style,a=t.image;if(a&&!U(a)&&(fT(a)?a=a.src:hT(a)&&(a=a.toDataURL())),a){var n=t.x||0,i=t.y||0,l={href:a,width:t.width,height:t.height};return n&&(l.x=n),i&&(l.y=i),jd(l,r.transform),Kd(l,t,r,e),e.animation&&th(r,l,e),oe("image",r.id+"",l)}}(r,e):r instanceof gs?function e5(r,e){var t=r.style,a=t.text;if(null!=a&&(a+=""),a&&!isNaN(t.x)&&!isNaN(t.y)){var n=t.font||wa,i=t.x||0,o=function M2(r,e,t){return"top"===t?r+=e/2:"bottom"===t&&(r-=e/2),r}(t.y||0,bu(n),t.textBaseline),l={"dominant-baseline":"central","text-anchor":A2[t.textAlign]||t.textAlign};if(eS(t)){var u="",f=t.fontStyle,h=$_(t.fontSize);if(!parseFloat(h))return;var c=t.fontWeight;u+="font-size:"+h+";font-family:"+(t.fontFamily||Km)+";",f&&"normal"!==f&&(u+="font-style:"+f+";"),c&&"normal"!==c&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),jd(l,r.transform),Kd(l,t,r,e),e.animation&&th(r,l,e),oe("text",r.id+"",l,void 0,a)}}(r,e):void 0}function yT(r,e,t,a){var i,n=r[t],o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(W0(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else{if(!U0(n))return;i="radialGradient",o.cx=st(n.x,.5),o.cy=st(n.y,.5),o.r=st(n.r,.5)}for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=100*Yv(s[u].offset)+"%",c=as(s[u].color),d=c.opacity,g={offset:h};g["stop-color"]=c.color,d<1&&(g["stop-opacity"]=d),l.push(oe("stop",u+"",g))}var m=Xd(oe(i,"",o,l)),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=oe(i,S,o,l)),e[t]=pu(S)}function mT(r,e,t,a){var h,n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l="no-repeat"===s,u="repeat-x"===s,f="repeat-y"===s;if(H0(n)){var v=n.imageWidth,c=n.imageHeight,p=void 0,d=n.image;if(U(d)?p=d:fT(d)?p=d.src:hT(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";de(v,g),de(c,g)}else if(null==v||null==c){var y=function(M,D){if(M){var L=M.elm,I=v||D.width,P=c||D.height;"pattern"===M.tag&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),M.attrs.width=I,M.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=Ac(p,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=oe("image","img",{href:p,width:v,height:c}),o.width=v,o.height=c}else n.svgElement&&(h=et(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",null!=_&&!isNaN(_)&&(o.width=_),null!=S&&!isNaN(S)&&(o.height=S);var b=X0(n);b&&(o.patternTransform=b);var x=oe("pattern","",o,[h]),w=Xd(x),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,x=a.defs[C]=oe("pattern",C,o,[h])),e[t]=pu(C)}}function a5(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){var o={id:i=t.zrId+"-c"+t.clipPathIdx++};a[r.id]=i,n[i]=oe("clipPath",i,o,[dT(r,t)])}e["clip-path"]=pu(i)}function _T(r){return document.createTextNode(r)}function ii(r,e,t){r.insertBefore(e,t)}function ST(r,e){r.removeChild(e)}function xT(r,e){r.appendChild(e)}function bT(r){return r.parentNode}function wT(r){return r.nextSibling}function Qd(r,e){r.textContent=e}var i5=oe("","");function Jd(r){return void 0===r}function jr(r){return void 0!==r}function o5(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;void 0!==i&&(a[i]=n)}return a}function ul(r,e){return r.tag===e.tag&&r.key===e.key}function fl(r){var e,t=r.children,a=r.tag;if(jr(a)){var n=r.elm=iT(a);if($d(i5,r),z(t))for(e=0;e<t.length;++e){var i=t[e];null!=i&&xT(n,fl(i))}else jr(r.text)&&!J(r.text)&&xT(n,_T(r.text))}else r.elm=_T(r.text);return r.elm}function CT(r,e,t,a,n){for(;a<=n;++a){var i=t[a];null!=i&&ii(r,fl(i),e)}}function eh(r,e,t,a){for(;t<=a;++t){var n=e[t];null!=n&&(jr(n.tag)?ST(bT(n.elm),n.elm):ST(r,n.elm))}}function $d(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t];n[t]!==o&&(!0===o?a.setAttribute(t,""):!1===o?a.removeAttribute(t):120!==t.charCodeAt(0)?a.setAttribute(t,o):"xmlns:xlink"===t||"xmlns"===t?a.setAttributeNS("http://www.w3.org/2000/xmlns/",t,o):58===t.charCodeAt(3)?a.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,o):58===t.charCodeAt(5)?a.setAttributeNS(nT,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function po(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&($d(r,e),Jd(e.text)?jr(a)&&jr(n)?a!==n&&function s5(r,e,t){for(var h,v,c,a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l];a<=i&&n<=l;)null==o?o=e[++a]:null==s?s=e[--i]:null==u?u=t[++n]:null==f?f=t[--l]:ul(o,u)?(po(o,u),o=e[++a],u=t[++n]):ul(s,f)?(po(s,f),s=e[--i],f=t[--l]):ul(o,f)?(po(o,f),ii(r,o.elm,wT(s.elm)),o=e[++a],f=t[--l]):ul(s,u)?(po(s,u),ii(r,s.elm,o.elm),s=e[--i],u=t[++n]):(Jd(h)&&(h=o5(e,a,i)),Jd(v=h[u.key])||(c=e[v]).tag!==u.tag?ii(r,fl(u),o.elm):(po(c,u),e[v]=void 0,ii(r,c.elm,o.elm)),u=t[++n]);(a<=i||n<=l)&&(a>i?CT(r,null==t[l+1]?null:t[l+1].elm,t,n,l):eh(r,e,a,i))}(t,a,n):jr(n)?(jr(r.text)&&Qd(t,""),CT(t,null,n,0,n.length-1)):jr(a)?eh(t,a,0,a.length-1):jr(r.text)&&Qd(t,""):r.text!==e.text&&(jr(a)&&eh(t,a,0,a.length-1),Qd(t,e.text)))}var u5=0,f5=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=t,this._opts=a=V({},a),this.root=e,this._id="zr"+u5++,this._oldVNode=oT(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=iT("svg");$d(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function l5(r,e){if(ul(r,e))po(r,e);else{var t=r.elm,a=bT(t);fl(e),null!==a&&(ii(a,e.elm,wT(t)),eh(a,[r],0,0))}}(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return gT(e,qd(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=qd(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=function h5(r,e,t,a){var n;if(t&&"none"!==t)if(n=oe("rect","bg",{width:r,height:e,x:"0",y:"0",id:"0"}),Y0(t))yT({fill:t},n.attrs,"fill",a);else if(Zv(t))mT({style:{fill:t},dirty:Xt,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=as(t),s=i.opacity;n.attrs.fill=i.color,s<1&&(n.attrs["fill-opacity"]=s)}return n}(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=oe("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(mt(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(oe("defs","defs",{},u)),e.animation){var f=function Yz(r,e,t){var a=(t=t||{}).newline?"\n":"",n=" {"+a,i=a+"}",o=G(mt(r),function(l){return l+n+G(mt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=G(mt(e),function(l){return"@keyframes "+l+n+G(mt(e[l]),function(u){return u+n+G(mt(e[l][u]),function(f){var h=e[l][u][f];return"d"===f&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return o||s?["<![CDATA[",o,s,"]]>"].join(a):""}(i.cssNodes,i.cssAnims,{newline:!0});if(f){var h=oe("style","stl",{},[],f);o.push(h)}}return oT(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return Xd(this.renderToVNode({animation:st((e=e||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:st(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var s,l,n=e.length,i=[],o=0,u=0,f=0;f<n;f++){var h=e[f];if(!h.invisible){var v=h.__clipPaths,c=v&&v.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(c-1,p-1);d>=0&&(!v||!l||v[d]!==l[d]);d--);for(var g=p-1;g>d;g--)s=i[--o-1];for(var y=d+1;y<c;y++){var m={};a5(v[y],m,t);var _=oe("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),i[o++]=_,s=_}l=v;var S=gT(h,t);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(null!=e&&(a.width=e),null!=t&&(a.height=t),n&&i&&(i.style.display="none",e=lo(n,0,a),t=lo(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Zv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=P2(t))&&a+"base64,"+t:a+"charset=UTF-8,"+encodeURIComponent(t)},r}();const v5=f5;var p5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new rt,n=Kt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s="none"===i?"circle":i,l=.8*t.itemHeight,u=Kt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);return a.add(u),u.setStyle(t.itemStyle),u.rotation=("inherit"===t.iconRotate?o:t.iconRotate||0)*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Nt);const d5=p5;function go(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(1===a){var n=ji(r,e,t[0]);return null!=n?n+"":null}if(a){for(var i=[],o=0;o<t.length;o++)i.push(ji(r,e,t[o]));return i.join(" ")}}function MT(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var g5=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return O(e,r),e.prototype._createSymbol=function(t,a,n,i,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=y5,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ua(this.childAt(0))},e.prototype.downplay=function(){fa(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,h)}else{(v=this.childAt(0)).silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Ct(v,c,s,a),br(v)}if(this._updateCommon(t,a,l,n,i),u){var v=this.childAt(0);f||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}},v.scaleX=v.scaleY=0,v.style.opacity=0,zt(v,c,s,a))}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var u,f,h,v,c,p,d,g,y,s=this.childAt(0),l=t.hostModel;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=ae(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=so(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof ue){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.useStyle(s.__isEmptyBrush?V({},x):x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;null!=C?null==M&&(this._z2=s.z2,s.z2+=C):null!=M&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;ve(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:function L(R){return D?t.getName(R):go(t,R)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=null==g||!0===g?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Ut(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=nt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&za(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();za(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Xs(t.getItemVisual(a,"symbolSize"))},e}(rt);function y5(r,e){this.parent.drift(r,e)}const hl=g5;function tg(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&"none"!==r.getItemVisual(t,"symbol")}function DT(r){return null!=r&&!J(r)&&(r={isIgnore:r}),r||{}}function LT(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ae(e),cursorStyle:e.get("cursor")}}var m5=function(){function r(e){this.group=new rt,this._SymbolCtor=e||hl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=DT(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=LT(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};i||a.removeAll(),e.diff(i).add(function(h){var v=f(h);if(tg(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),p=f(h);if(tg(e,p,h,t)){var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)a.remove(c),(c=new o(e,h,l,u)).setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):Ct(c,y,n)}a.add(c),e.setItemGraphicEl(h,c)}else a.remove(c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=LT(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],a=DT(a);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(tg(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Ya(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r}();const vl=m5;function IT(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=function _5(r,e){var t=0,a=r.scale.getExtent();return"start"===e?t=a[0]:"end"===e?t=a[1]:wt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f="x"===s||"radius"===s?1:0,h=G(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return pa(e,h[0])&&(v=!0,h[0]=c),pa(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function PT(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}var ja=Math.min,Qa=Math.max;function oi(r,e){return isNaN(r)||isNaN(e)}function eg(r,e,t,a,n,i,o,s,l){for(var u,f,h,v,c,p,d=t,g=0;g<a;g++){var y=e[2*d],m=e[2*d+1];if(d>=n||d<0)break;if(oi(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[2*b],w=e[2*b+1];x===y&&w===m&&g<a;)g++,x=e[2*(b+=i)],w=e[2*b+1],_=(y=e[2*(d+=i)])-u,S=(m=e[2*d+1])-f;var T=g+1;if(l)for(;oi(x,w)&&T<a;)T++,x=e[2*(b+=i)],w=e[2*b+1];var C=.5,M=0,D=0,L=void 0,I=void 0;if(T>=a||oi(x,w))c=y,p=m;else{M=x-u,D=w-f;var P=y-u,R=x-y,E=m-f,N=w-m,k=void 0,B=void 0;if("x"===s){var F=M>0?1:-1;c=y-F*(k=Math.abs(P))*o,p=m,L=y+F*(B=Math.abs(R))*o,I=m}else if("y"===s){var W=D>0?1:-1;c=y,p=m-W*(k=Math.abs(E))*o,L=y,I=m+W*(B=Math.abs(N))*o}else k=Math.sqrt(P*P+E*E),c=y-M*o*(1-(C=(B=Math.sqrt(R*R+N*N))/(B+k))),p=m-D*o*(1-C),I=m+D*o*C,L=ja(L=y+M*o*C,Qa(x,y)),I=ja(I,Qa(w,m)),L=Qa(L,ja(x,y)),p=m-(D=(I=Qa(I,ja(w,m)))-m)*k/B,c=ja(c=y-(M=L-y)*k/B,Qa(u,y)),p=ja(p,Qa(f,m)),L=y+(M=y-(c=Qa(c,ja(u,y))))*B/k,I=m+(D=m-(p=Qa(p,ja(f,m))))*B/k}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var RT=function r(){this.smooth=0,this.smoothConstraint=!0},b5=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RT},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&oi(n[2*o-2],n[2*o-1]);o--);for(;i<o&&oi(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=eg(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var s,l,i=this.path.data,o=Hr.CMD,u="x"===a,f=[],h=0;h<i.length;){var c=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(i[h++]){case o.M:s=i[h++],l=i[h++];break;case o.L:if(c=i[h++],p=i[h++],(_=u?(t-s)/(c-s):(t-l)/(p-l))<=1&&_>=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=i[h++],p=i[h++],d=i[h++],g=i[h++],y=i[h++],m=i[h++];var b=u?fu(s,c,d,y,t,f):fu(l,p,g,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0)return S=u?re(l,p,g,m,w):re(s,c,d,y,w),u?[t,S]:[S,t]}s=y,l=m}}},e}(pt),w5=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e}(RT),ET=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return O(e,r),e.prototype.getDefaultShape=function(){return new w5},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&oi(n[2*s-2],n[2*s-1]);s--);for(;o<s&&oi(n[2*o],n[2*o+1]);o++);}for(;o<s;){var u=eg(t,n,o,s,s,1,a.smooth,l,a.connectNulls);eg(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(pt);function kT(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new St({shape:{x:o,y:s,width:l,height:u}});if(e){var v=r.getBaseAxis(),c=v.isHorizontal(),p=v.inverse;c?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var d=j(n)?function(g){n(g,h)}:null;zt(h,{shape:{width:l,height:u,x:o,y:s}},t,null,a,d)}return h}function OT(r,e,t){var a=r.getArea(),n=Wt(a.r0,1),i=Wt(a.r,1),o=new Me({shape:{cx:Wt(r.cx,1),cy:Wt(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return e&&("angle"===r.getBaseAxis().dim?o.shape.endAngle=a.startAngle:o.shape.r=n,zt(o,{shape:{endAngle:a.endAngle,r:i}},t)),o}function rh(r,e,t,a,n){return r?"polar"===r.type?OT(r,e,t):"cartesian2d"===r.type?kT(r,e,t,a,n):null:null}function si(r,e){return r.type===e}function NT(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function VT(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function BT(r,e){var t=VT(r),a=t[0],n=t[1],i=VT(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function zT(r){return wt(r)?r:r?.5:0}function Ja(r,e,t,a){var n=e.getBaseAxis(),i="x"===n.dim||"radius"===n.dim?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(a){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var c=[];l[i]=c[i]=(u[i]+f[i])/2,l[1-i]=u[1-i],c[1-i]=f[1-i],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function L5(r,e){return isNaN(r)||isNaN(e)}function GT(r,e){return[r[2*e],r[2*e+1]]}function FT(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ae.length;e++)if(r.get([Ae[e],"endLabel","show"]))return!0;return!1}function rg(r,e,t,a){if(si(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=FT(a)?function(c,p){r._endLabelOnDuring(c,p,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=kT(e,t,a,function(){var c=r._endLabel;c&&t&&null!=s.originalX&&c.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=2*v):(h.x-=v,h.width+=2*v)}return l&&l(1,f),f}return OT(e,t,a)}var E5=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(){var t=new rt,a=new vl;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),h=l.getLayout("points")||[],v="polar"===o.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=IT(o,l,S),x=_&&function T5(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Xr(2*a),i=0;i<a;i++){var o=PT(t,r,e,i);n[2*i]=o[0],n[2*i+1]=o[1]}return n}(o,l,b),w=t.get("showSymbol"),T=t.get("connectNulls"),C=w&&!v&&function M5(r,e,t){var a=r.get("showAllSymbol"),n="auto"===a;if(!a||n){var i=t.getAxesByScale("ordinal")[0];if(i&&(!n||!function D5(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(1.5*hl.getSymbolSize(e,o)[r.isHorizontal()?1:0]>a)return!1;return!0}(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}(t,l,o),M=this._data;M&&M.eachItemGraphicEl(function(Mt,gt){Mt.__temp&&(s.remove(Mt),M.setItemGraphicEl(gt,null))}),w||p.remove(),s.add(y);var L,D=!v&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(L=o.getArea()).width?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=function A5(r,e,t){var a=r.getVisual("visualMeta");if(a&&a.length&&r.count()&&"cartesian2d"===e.type){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){i=a[o];break}}if(i){var l=e.getAxis(n),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=function C5(r,e){var n,i,t=[],a=r.length;function o(f,h,v){var c=f.coord;return{coord:v,color:Uv((v-c)/(h.coord-c),[f.color,h.color])}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}}return t}(u,"x"===n?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=v[0].coord-10,g=v[c-1].coord+10,y=g-d;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new eo(0,0,0,0,v,!0);return m[n]=d,m[n+"2"]=g,m}}}(l,o,n)||l.getVisual("style")[l.getVisual("drawType")];if(d&&c.type===o.type&&D===this._step){_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,zn(I));var P=y.getClipPath();P?zt(P,{shape:rg(this,o,!1,t).shape},t):y.setClipPath(rg(this,o,!0,t)),w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),(!NT(this._stackedOnPoints,x)||!NT(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,n,D,S,T):(D&&(h=Ja(h,o,D,T),x&&(x=Ja(x,o,D,T))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}else w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(Mt){return[h[2*Mt],h[2*Mt+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),D&&(h=Ja(h,o,D,T),x&&(x=Ja(x,o,D,T))),d=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,zn(I)),y.setClipPath(rg(this,o,!0,t));var E=t.getModel("emphasis"),N=E.get("focus"),k=E.get("blurScope"),B=E.get("disabled");d.useStyle(Q(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),he(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),nt(d).seriesIndex=t.seriesIndex,Ut(d,N,k,B);var W=zT(t.get("smooth")),X=t.get("smoothMonotone");if(d.setShape({smooth:W,smoothMonotone:X,connectNulls:T}),g){var $=l.getCalculationInfo("stackedOnSeries"),tt=0;g.useStyle(Q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),$&&(tt=zT($.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:tt,smoothMonotone:X,connectNulls:T}),he(g,t,"areaStyle"),nt(g).seriesIndex=t.seriesIndex,Ut(g,N,k,B)}var dt=function(Mt){i._changePolyState(Mt)};l.eachItemGraphicEl(function(Mt){Mt&&(Mt.onHoverStateChange=dt)}),this._polyline.onHoverStateChange=dt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,a){nt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=wn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[2*s],h=l[2*s+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;(u=new hl(o,s)).x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Et.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=wn(o,i);if(this._changePolyState("normal"),null!=s&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Et.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;zu(this._polyline,t),a&&zu(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new b5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ET({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;"cartesian2d"===a.type?(i=s.isHorizontal(),o=!1):"polar"===a.type&&(i="angle"===s.dim,o=!0);var u=t.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=j(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord([c.x,c.y]);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else i?(y=n.x,m=n.x+n.width,_=c.x):(y=n.y+n.height,m=n.y,_=c.y);var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=j(h)?h(p):f*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(FT(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new xt({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=function I5(r){for(var e=r.length/2;e>0&&L5(r[2*e-2],r[2*e-1]);e--);return e-1}(l);f>=0&&(ve(s,ae(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return null!=c?MT(o,c):go(o,h)},enableTextSetter:!0},function R5(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&null==i.originalX&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=function P5(r,e,t){for(var i,o,a=r.length/2,n="x"===t?0:1,s=0,l=-1,u=0;u<a;u++)if(o=r[2*u+n],!isNaN(o)&&!isNaN(r[2*u+1-n])){if(0===u){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=GT(h,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(D=v.getRawValue(C[0]))}else{(L=f.getPointOn(S,w))&&u.attr({x:L[0]+b,y:L[1]+x});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=M_(n,p,I,P,T.t))}i.lastFrameIndex=C[0]}else{var R=1===t||i.lastFrameIndex>0?C[0]:0;L=GT(h,R),o&&(D=v.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+x})}o&&Fi(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=function x5(r,e,t,a,n,i,o,s){for(var l=function S5(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=IT(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":var T=y[x=2*S.idx],C=y[x+1],M=m[w=2*S.idx1],D=m[w+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),f.push(M,D),h.push(t[x],t[x+1]),v.push(a[w],a[w+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=n.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);w=2*L,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var R=PT(g,n,e,L);h.push(R[0],R[1]),v.push(a[w],a[w+1]),d.push(e.getRawIndex(L));break;case"-":b=!1}b&&(c.push(S),p.push(p.length))}p.sort(function(dt,Mt){return d[dt]-d[Mt]});var E=u.length,N=Xr(E),k=Xr(E),B=Xr(E),F=Xr(E),W=[];for(_=0;_<p.length;_++){var X=p[_],$=2*_,tt=2*X;N[$]=u[tt],N[$+1]=u[tt+1],k[$]=f[tt],k[$+1]=f[tt+1],B[$]=h[tt],B[$+1]=h[tt+1],F[$]=v[tt],F[$+1]=v[tt+1],W[_]=c[X]}return{current:N,next:k,stackedOnCurrent:B,stackedOnNext:F,status:W}}(this._data,t,this._stackedOnPoints,a,this._coordSys,0,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(c=Ja(v.current,n,o,l),p=Ja(v.stackedOnCurrent,n,o,l),d=Ja(v.next,n,o,l),g=Ja(v.stackedOnNext,n,o,l)),BT(c,d)>3e3||f&&BT(p,g)>3e3)return u.stopAnimation(),u.setShape({points:d}),void(f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g})));u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Ct(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Ct(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++)if("="===_[S].cmd){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=2*m[T].ptIdx;C.x=w[M],C.y=w[M+1],C.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Et);const k5=E5;function cl(r,e){return{seriesType:r,plan:Ji(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,o=e||t.pipelineContext.large;if(n){var s=G(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");pa(a,s[0])&&(s[0]=u),pa(a,s[1])&&(s[1]=u);var f=a.getStore(),h=a.getDimensionIndex(s[0]),v=a.getDimensionIndex(s[1]);return l&&{progress:function(c,p){for(var g=o&&Xr((c.end-c.start)*l),y=[],m=[],_=c.start,S=0;_<c.end;_++){var b=void 0;if(1===l){var x=f.get(h,_);b=n.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(v,_),b=n.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(_,b.slice())}o&&p.setLayout("points",g)}}}}}}var O5={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return 0===t?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},N5=function(r){return Math.round(r.length/2)};function HT(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&"cartesian2d"===o.type&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){"lttb"===i&&e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var p=void 0;U(i)?p=O5[i]:j(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/c,p,N5))}}}}}var WT=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.dataToPoint(i.clampData(t));if(n)A(i.getAxes(),function(h,v){if("category"===h.type){var c=h.getTicksCoords(),p=i.clampData(t)[v];a&&("x1"===a[v]||"y1"===a[v])&&(p+=1),p>c.length-1&&(p=c.length-1),p<0&&(p=0),c[p]&&(o[v]=h.toGlobalCoord(c[p].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;o[f]+=l+u/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Nt);Nt.registerClass(WT);const ah=WT;var B5=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(){return Zr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ga(ah.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(ah);const z5=B5;var G5=function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},F5=function(r){function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return O(e,r),e.prototype.getDefaultShape=function(){return new G5},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=.5*(s-o),u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=2*Math.PI,p=v?h-f<c:f-h<c;p||(f=h-(v?c:-c));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);p?(t.moveTo(d*o+n,g*o+i),t.arc(d*u+n,g*u+i,l,-Math.PI+f,f,!v)):t.moveTo(d*s+n,g*s+i),t.arc(n,i,s,f,h,!v),t.arc(y*u+n,m*u+i,l,h-2*Math.PI,h-Math.PI,!v),0!==o&&t.arc(n,i,o,h,f,v)},e}(pt);const nh=F5;function ih(r,e,t){return e*Math.sin(r)*(t?-1:1)}function oh(r,e,t){return e*Math.cos(r)*(t?1:-1)}var ag=Math.max,ng=Math.min,Y5=function(r){function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return O(e,r),e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var h,o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis();"cartesian2d"===u.type?h=f.isHorizontal():"polar"===u.type&&(h="angle"===f.dim);var v=t.isAnimationEnabled()?t:null,c=function Z5(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&"category"===a.type&&"cartesian2d"===e.type)return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}(t,u);c&&this._enableRealtimeSort(c,s,n);var p=t.get("clip",!0)||c,d=function U5(r,e){var t=r.getArea&&r.getArea();if(si(r,"cartesian2d")){var a=r.getBaseAxis();if("category"!==a.type||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=2*n):(t.y-=n,t.height+=2*n)}}return t}(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function T(D){var L=sh[u.type](s,D),I=function $5(r,e,t){return new("polar"===r.type?Me:St)({shape:tC(e,t,r),silent:!0,z2:0})}(u,h,L);return I.useStyle(m.getItemStyle()),"cartesian2d"===u.type&&I.setShape("r",_),S[D]=I,I}s.diff(l).add(function(D){var L=s.getItemModel(D),I=sh[u.type](s,D,L);if(y&&T(D),s.hasValue(D)&&qT[u.type](I)){var P=!1;p&&(P=UT[u.type](d,I));var R=YT[u.type](t,s,D,I,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),jT(R,s,D,L,I,t,h,"polar"===u.type),x?R.attr({shape:I}):c?ZT(c,v,R,I,D,h,!1,!1):zt(R,{shape:I},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,L){var I=s.getItemModel(D),P=sh[u.type](s,D,I);if(y){var R=void 0;0===b.length?R=T(L):((R=b[L]).useStyle(m.getItemStyle()),"cartesian2d"===u.type&&R.setShape("r",_),S[D]=R);var E=sh[u.type](s,D);Ct(R,{shape:tC(h,E,u)},v,D)}var k=l.getItemGraphicEl(L);if(s.hasValue(D)&&qT[u.type](P)){var B=!1;if(p&&(B=UT[u.type](d,P))&&o.remove(k),k?br(k):k=YT[u.type](t,s,D,P,h,v,f.model,!!k,g),c&&(k.forceLabelAnimation=!0),w){var F=k.getTextContent();if(F){var W=Fi(F);null!=W.prevValue&&(W.prevValue=W.value)}}else jT(k,s,D,I,P,t,h,"polar"===u.type);x?k.attr({shape:P}):c?ZT(c,v,k,P,D,h,!0,w):Ct(k,{shape:P},t,D,null),s.setItemGraphicEl(D,k),k.ignore=B,o.add(k)}else o.remove(k)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&bs(L,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new rt);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),JT(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),JT(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&rh(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);i.push({dataIndex:s,mappedValue:l=l??NaN,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){bs(i,t,nt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Et),UT={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=ag(e.x,r.x),s=ng(e.x+e.width,n),l=ag(e.y,r.y),u=ng(e.y+e.height,i),f=s<o,h=u<l;return e.x=f&&o>n?s:o,e.y=h&&l>i?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=ng(e.r,r.r),i=ag(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;return t<0&&(a=e.r,e.r=e.r0,e.r0=a),o}},YT={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new St({shape:V({},a),z2:1});return u.__dataIndex=t,u.name="item",i&&(u.shape[n?"height":"width"]=0),u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?nh:Me,f=new u({shape:a,z2:1});f.name="item";var h=KT(n);if(f.calculateTextPosition=function H5(r,e){var t=(e=e||{}).isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return wu(a,n,i);var s=r(o),l=null!=n.distance?n.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,p=(v+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(d),x=h+v*S(d),w="left",T="top";switch(s){case"startArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+p*_(d)+ih(d,l+m,!1),x=h+p*S(d)+oh(d,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+p*_(d)+ih(d,-l+m,!1),x=h+p*S(d)+oh(d,-l+m,!1),w="left",T="middle";break;case"middle":b=f+p*_(y),x=h+p*S(y),w="center",T="middle";break;case"endArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w="center",T="top";break;case"endAngle":b=f+p*_(g)+ih(g,l+m,!0),x=h+p*S(g)+oh(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+p*_(g)+ih(g,-l+m,!0),x=h+p*S(g)+oh(g,-l+m,!0),w="right",T="middle";break;default:return wu(a,n,i)}return(a=a||{}).x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}(h,{isRoundCap:u===nh}),i){var c=n?"r":"endAngle",p={};f.shape[c]=n?0:a.startAngle,p[c]=a[c],(s?Ct:zt)(f,{shape:p},i)}return f}};function ZT(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Ct:zt)(t,{shape:l},e,n,null),(o?Ct:zt)(t,{shape:u},e?r.baseAxis.model:null,n)}function XT(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var X5=["x","y","width","height"],q5=["cx","cy","r","startAngle","endAngle"],qT={cartesian2d:function(r){return!XT(r,X5)},polar:function(r){return!XT(r,q5)}},sh={cartesian2d:function(r,e,t){var a=r.getItemLayout(e),n=t?function j5(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||"none"===t)return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function KT(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function jT(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=ae(a);ve(r,h,{labelFetcher:i,labelDataIndex:t,defaultText:go(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get(["label","position"]);r.textConfig.inside="middle"===c||null,function W5(r,e,t,a){if(wt(a))r.setTextConfig({rotation:a});else if(z(e))r.setTextConfig({rotation:0});else{var l,n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:return void r.setTextConfig({rotation:0})}var f=1.5*Math.PI-l;"middle"===u&&f>Math.PI/2&&f<1.5*Math.PI&&(f-=Math.PI),r.setTextConfig({rotation:f})}}(r,"outside"===c?f:c,KT(o),a.get(["label","rotate"]))}kS(v,h,i.getRawValue(t),function(d){return MT(e,d)});var p=a.getModel(["emphasis"]);Ut(r,p.get("focus"),p.get("blurScope"),p.get("disabled")),he(r,a),function K5(r){return null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle}(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(d){d.style&&(d.style.fill=d.style.stroke="none")}))}var Q5=function r(){},QT=function(r){function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return O(e,r),e.prototype.getDefaultShape=function(){return new Q5},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(pt);function JT(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new QT({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new QT({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=i,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(n.getVisual("style")),nt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",$T),h.on("mousemove",$T)),t&&t.push(h)}var $T=xf(function(r){var t=function J5(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f<h;f++){var v=3*f;if(l[a]=u,l[n]=i[v+2],s[a]=i[v+a],s[n]=i[v+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}(this,r.offsetX,r.offsetY);nt(this).dataIndex=t>=0?t:null},30,!1);function tC(r,e,t){if(si(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}return{cx:(n=t.getArea()).cx,cy:n.cy,r0:r?n.r0:e.r0,r:r?n.r:e.r,startAngle:r?e.startAngle:0,endAngle:r?e.endAngle:2*Math.PI}}const tG=Y5;var lh=2*Math.PI,eC=Math.PI/180;function rC(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function aC(r,e){var t=rC(r,e),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var f,h,i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(n[0],s/2),u=H(n[1],s/2),v=r.coordinateSystem;if(v){var c=v.dataToPoint(a);f=c[0]||0,h=c[1]||0}else z(a)||(a=[a,a]),f=H(a[0],i)+t.x,h=H(a[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function rG(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=rC(a,t),s=aC(a,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*eC,c=a.get("minAngle")*eC,p=0;n.each(i,function(M){!isNaN(M)&&p++});var d=n.getSum(i),g=Math.PI/(d||p)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var b=lh,x=0,w=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(M,D){var L;if(isNaN(M))n.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});else{(L="area"!==m?0===d&&_?g:M*g:lh/p)<c?(L=c,b-=c):x+=M;var I=w+T*L;n.setItemLayout(D,{angle:L,startAngle:w,endAngle:I,clockwise:y,cx:l,cy:u,r0:h,r:m?It(M,S,[h,f]):f}),w=I}}),b<lh&&p)if(b<=.001){var C=lh/p;n.each(i,function(M,D){if(!isNaN(M)){var L=n.getItemLayout(D);L.angle=C,L.startAngle=v+T*D*C,L.endAngle=v+T*(D+1)*C}})}else g=b/x,w=v,n.each(i,function(M,D){if(!isNaN(M)){var L=n.getItemLayout(D),I=L.angle===c?c:M*g;L.startAngle=w,L.endAngle=w+T*I,w+=T*I}})})}function pl(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(a&&a.length){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var aG=Math.PI/180;function nC(r,e,t,a,n,i,o,s,l,u){if(!(r.length<2)){for(var v=r.length,c=0;c<v;c++)"outer"===r[c].position&&"labelLine"===r[c].labelAlignTo&&(r[c].linePoints[1][0]+=r[c].label.x-u,r[c].label.x=u);Kw(r,l,l+o)&&function h(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if("none"===d[m].labelAlignTo){var _=d[m],S=_.label.y>t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}(r)}function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),b=a+_.len,x=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*x),T=e+(w+_.len2)*n;iC(_,_.targetTextWidth-(T-_.label.x)*n,!0),_.label.x=T}}}function iC(r,e,t){if(void 0===t&&(t=!1),null==r.labelStyleWidth){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){var h=i.height;if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var c=e-l;a.setStyle("width",e<f?c:t?c>r.unconstrainedWidth?null:c:null)}var d=a.getBoundingRect();i.width=d.width,i.height=d.height+((a.style.margin||0)+2.1),i.y-=(i.height-h)/2}}}function ig(r){return"center"===r.position}function yo(r,e,t){var a=r.get("borderRadius");if(null==a)return t?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(a,function(i){return Sr(i,n)})}}var oG=function(r){function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new xt;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return O(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),h=V(yo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle))o.setShape(h);else{if(i){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(zt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):"scale"===v?(o.shape.r=f.r0,zt(o,{shape:{r:f.r}},s,a)):null!=n?(o.setShape({startAngle:n,endAngle:n}),zt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Ct(o,{shape:{endAngle:f.endAngle}},s,a))}else br(o),Ct(o,{shape:h},s,a);o.useStyle(t.getItemVisual(a,"style")),he(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},yo(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:d,y:g,shape:yo(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:yo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&V(m.ensureState("select"),{x:d,y:g}),V(_.ensureState("select"),{x:d,y:g}),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;ve(i,ae(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get(["label","position"]);if("outside"!==v&&"outer"!==v)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Le,this.setTextGuideLine(c)),zd(this,Gd(o),{stroke:u,opacity:Rr(s.get(["lineStyle","opacity"]),f,1)})}},e}(Me),sG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n,i){var u,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var v=new Me({shape:aC(t,n)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(c){var p=new oG(o,c,u);o.setItemGraphicEl(c,p),l.add(p)}).update(function(c,p){var d=s.getItemGraphicEl(p);d.updateData(o,c,u),d.off("click"),l.add(d),o.setItemGraphicEl(c,d)}).remove(function(c){bs(s.getItemGraphicEl(c),t,c)}).execute(),function iG(r){var a,n,e=r.getData(),t=[],i=!1,o=(r.get("minShowLabelAngle")||0)*aG,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),I=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=H(L.get("edgeDistance"),u),N=L.get("bleedMargin"),k=D.getModel("labelLine"),B=k.get("length");B=H(B,u);var F=k.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)<o)return A(C.states,c),C.ignore=!0,void(M&&(A(M.states,c),M.ignore=!0));if(function p(x){if(!x.ignore)return!0;for(var w in x.states)if(!1===x.states[w].ignore)return!0;return!1}(C)){var tt,dt,Mt,gt,W=(T.startAngle+T.endAngle)/2,X=Math.cos(W),$=Math.sin(W);a=T.cx,n=T.cy;var at="inside"===I||"inner"===I;if("center"===I)tt=T.cx,dt=T.cy,gt="center";else{var yt=(at?(T.r+T.r0)/2*X:T.r*X)+a,vt=(at?(T.r+T.r0)/2*$:T.r*$)+n;if(tt=yt+3*X,dt=vt+3*$,!at){var K=yt+X*(B+l-T.r),ft=vt+$*(B+l-T.r),Ht=K+(X<0?-1:1)*F;tt="edge"===R?X<0?f+E:f+u-E:Ht+(X<0?-P:P),dt=ft,Mt=[[yt,vt],[K,ft],[Ht,ft]]}gt=at?"center":"edge"===R?X>0?"right":"left":X>0?"left":"right"}var qt=Math.PI,Yt=0,be=L.get("rotate");if(wt(be))Yt=be*(qt/180);else if("center"===I)Yt=0;else if("radial"===be||!0===be)Yt=X<0?-W+qt:-W;else if("tangential"===be&&"outside"!==I&&"outer"!==I){var ze=Math.atan2(X,$);ze<0&&(ze=2*qt+ze),$>0&&(ze=qt+ze),Yt=ze-qt}if(i=!!Yt,C.x=tt,C.y=dt,C.rotation=Yt,C.setStyle({verticalAlign:"middle"}),at){C.setStyle({align:gt});var Um=C.states.select;Um&&(Um.x+=C.x,Um.y+=C.y)}else{var un=C.getBoundingRect().clone();un.applyTransform(C.getComputedTransform());var fP=(C.style.margin||0)+2.1;un.y-=fP/2,un.height+=fP,t.push({label:C,labelLine:M,position:I,len:B,len2:F,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new lt(X,$),linePoints:Mt,textAlign:gt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:un,unconstrainedWidth:un.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:at})}}),!i&&r.get("avoidLabelOverlap")&&function nG(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;ig(r[v])||(c.x<e?(f=Math.min(f,c.x),l.push(r[v])):(h=Math.max(h,c.x),u.push(r[v])))}for(v=0;v<r.length;v++)if(!ig(p=r[v])&&p.linePoints){if(null!=p.labelStyleWidth)continue;c=p.label;var g,d=p.linePoints;p.targetTextWidth=g="edge"===p.labelAlignTo?c.x<e?d[2][0]-p.labelDistance-o-p.edgeDistance:o+n-p.edgeDistance-d[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?c.x<e?f-o-p.bleedMargin:o+n-h-p.bleedMargin:c.x<e?c.x-o-p.bleedMargin:o+n-c.x-p.bleedMargin,iC(p,g)}for(nC(u,e,t,a,1,0,i,0,s,h),nC(l,e,t,a,-1,0,i,0,s,f),v=0;v<r.length;v++){var p;if(!ig(p=r[v])&&p.linePoints){var m=(c=p.label).style.padding,b=p.rect.width+(c.style.backgroundColor?0:m?m[1]+m[3]:0),x=(d=p.linePoints)[1][0]-d[2][0];"edge"===p.labelAlignTo?d[2][0]=c.x<e?o+p.edgeDistance+b+p.labelDistance:o+n-p.edgeDistance-b-p.labelDistance:(d[2][0]=c.x<e?c.x+p.labelDistance:c.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=c.y}}}(t,a,n,l,u,v,f,h);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(A(m.states,c),m.ignore=!0):(Yw(b,g.minTurnAngle),_z(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new lt(b[0][0],b[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var i=a.getData().getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(Et);const lG=sG;function mo(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=ho(a,e).dimensions,i=new xe(n,r);return i.initData(a,t),i}var uG=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},r.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},r.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},r}();const dl=uG;var fG=Tt(),hG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return mo(this,{coordDimensions:["value"],encodeDefaulter:it(gp,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=fG(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=d_(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){bn(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Nt);const vG=hG;var dG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Nt);const gG=dG;var yG=function r(){},mG=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.getDefaultShape=function(){return new yG},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var h,n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,f=this.softClipShape;if(l&&i[0]<4)this._ctx=l;else{for(this._ctx=null,h=this._off;h<n.length;){var v=n[h++],c=n[h++];isNaN(v)||isNaN(c)||f&&!f.contain(v,c)||(s.x=v-i[0]/2,s.y=c-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)}},e.prototype.afterBrush=function(){var s,t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=2*u,h=i[f]-s/2,v=i[f+1]-l/2;if(t>=h&&a>=v&&t<=h+s&&a<=v+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v<n.length;){var c=n[v++],p=n[v++];l=Math.min(c,l),f=Math.max(c,f),u=Math.min(p,u),h=Math.max(p,h)}t=this._rect=new ut(l-o/2,u-s/2,f-l+o,h-u+s)}return t},e}(pt),_G=function(){function r(){this.group=new rt}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){null!=a.startIndex&&(t=new Float32Array(t.buffer,4*a.startIndex*2,2*(a.endIndex-a.startIndex))),a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new mG({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=Kt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=nt(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const SG=_G;var xG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=cl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,o=a.pipelineContext.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new SG:new vl,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Et);const bG=xG;var wG=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(_t);const TG=wG;var og=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qt).models[0]},e.type="cartesian2dAxis",e}(_t);Zt(og,co);var sC={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},CG=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},sC),sg=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},sC);const lC={category:CG,value:sg,time:ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sg),log:Q({logBase:10},sg)};var DG={value:1,category:1,time:1,log:1};function _o(r,e,t,a){A(DG,function(n,i){var o=ot(ot({},lC[i],!0),a,!0),s=function(l){function u(){var f=null!==l&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return O(u,l),u.prototype.mergeDefaultAndTheme=function(f,h){var v=Ds(this),c=v?Yi(f):{};ot(f,h.getTheme().get(i+"Axis")),ot(f,this.getDefaultOption()),f.type=uC(f),v&&Fa(f,c,v)},u.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Ad.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if("category"===h.type)return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",uC)}function uC(r){return r.type||(r.data?"category":"value")}var LG=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Lt(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),lg=["x","y"];function fC(r){return"interval"===r.type||"time"===r.type}var PG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=lg,t}return O(e,r),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(fC(t)&&fC(a)){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(l&&u){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,p=this._transform=[f,0,0,h,o[0]-n[0]*f,o[1]-i[0]*h];this._invTransform=cn([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new ut(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return se(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return(a=a||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a){var n=[];if(this._invTransform)return se(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(a[0],a[1]),o=Math.max(t[0],t[1])-n,s=Math.max(a[0],a[1])-i;return new ut(n,i,o,s)},e}(LG);const RG=PG;var EG=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return O(e,r),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(lr);const kG=EG;function ug(r,e,t){t=t||{};var a=r.coordinateSystem,n=e.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p="x"===u?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=["y"===u?p[v[l]]:h[0],"x"===u?p[v[l]]:h[3]],i.rotation=Math.PI/2*("x"===u?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],i.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),ee(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===l?-y:y,i.z2=1,i}function hC(r){return"cartesian2d"===r.get("coordinateSystem")}function vC(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Qt).models[0];e[a]=i}),e}var fg=Math.log;function cC(r,e,t){var a=Ka.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,!0),o=n.length-1,s=a.getInterval.call(t),l=Aw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if("log"===r.type){var v=fg(r.base);u=[fg(u[0])/v,fg(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=a.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Dd(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Dd(p),d=u[1]-p*o;else{r.getTicks().length-1>o&&(p=Dd(p));var m=p*o;(d=Wt((g=Math.ceil(u[1]/p)*p)-m))<0&&u[0]>=0?(d=0,g=Wt(m)):g>0&&u[1]<=0&&(g=0,d=-Wt(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+p*_,g+p*S),a.setInterval.call(r,p),(_||S)&&a.setNiceExtent.call(r,d+p,g-p)}var OG=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lg,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;function n(o){var s,l=mt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=o[+l[h]],p=c.model,d=c.scale;Md(d)&&p.get("alignTicks")&&null==p.get("interval")?f.push(c):($n(d,p),Md(d)&&(s=c))}f.length&&(s||$n((s=f.pop()).scale,s.model),A(f,function(g){cC(g.scale,g.model,s.scale)}))}}this._updateScale(e,this.model),n(a.x),n(a.y);var i={};A(a.x,function(o){pC(a,"y",o,i)}),A(a.y,function(o){pC(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=e.getBoxLayoutParams(),i=!a&&e.get("containLabel"),o=Jt(n,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),function NG(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord="x"===r.dim?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord="x"===r.dim?function(n){return n-e}:function(n){return a-n+e}}(u,f?o.x:o.y)})}l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=function GB(r){var t=r.scale;if(r.model.get(["axisLabel","show"])&&!t.isBlank()){var a,n,i=t.getExtent();n=t instanceof Ld?t.count():(a=t.getTicks()).length;var l,o=r.getLabelModel(),s=nl(r),u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=s(a?a[f]:{value:i[0]+f},f),p=FB(o.getTextRect(v),o.get("rotate")||0);l?l.union(p):l=p}return l}}(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,"top"===u.position?o.y+=f.height+v:"left"===u.position&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(null!=a)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(null!=e&&null!=t)return this._coordsMap["x"+e+"y"+t];J(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var s,l,t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",Qt).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Qt).models[0],i=e.gridModel;return t?ht(this._coordsList,s=t.coordinateSystem)<0&&(s=null):a&&n?s=this.getCartesian(a.componentIndex,n.componentIndex):a?l=this.getAxis("x",a.componentIndex):n?l=this.getAxis("y",n.componentIndex):i&&i.coordinateSystem===this&&(s=this._coordsList[0]),{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(f){return function(h,v){if(hg(h,e)){var c=h.get("position");"x"===f?"top"!==c&&"bottom"!==c&&(c=o.bottom?"top":"bottom"):"left"!==c&&"right"!==c&&(c=o.left?"right":"left"),o[c]=!0;var p=new kG(f,al(h),[0,0],h.get("type"),c);p.onBand="category"===p.type&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=i,p.index=v,i._axesList.push(p),s[f][v]=p,l[f]++}}}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(v,c){var p="x"+h+"y"+c,d=new RG(p);d.master=n,d.model=e,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(v)})})},r.prototype._updateScale=function(e,t){function a(n,i){A(qf(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),"category"===n.type){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(hC(n)){var i=vC(n),o=i.xAxisModel,s=i.yAxisModel;if(!hg(o,t)||!hg(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");a(u,f),a(u,h)}},this)},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return A(this.getCartesians(),function(n){var i=null!=e&&"auto"!==e?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);ht(t,i)<0&&t.push(i),ht(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){if(hC(n)){var i=vC(n),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();n.coordinateSystem=l.coordinateSystem.getCartesian(o.componentIndex,s.componentIndex)}}),a},r.dimensions=lg,r}();function hg(r,e){return r.getCoordSysModel()===e}function pC(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var i,n=r[e],o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)dC(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&dC(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0)}function f(h){return h.dim+"_"+h.index}}function dC(r){return r&&"category"!==r.type&&"time"!==r.type&&function zB(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}(r)}const VG=OG;var $a=Math.PI,li=function(){function r(e,t){this.group=new rt,this.opt=t,this.axisModel=e,Q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var a=new rt({x:t.position[0],y:t.position[1],rotation:t.rotation});a.updateTransform(),this._transformGroup=a}return r.prototype.hasBuilder=function(e){return!!gC[e]},r.prototype.add=function(e){gC[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,a){var i,o,n=yc(t-e);return us(n)?(o=a>0?"top":"bottom",i="center"):us(n-$a)?(o=a>0?"bottom":"top",i="center"):(o="middle",i=n>0&&n<$a?a>0?"right":"left":a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),gC={axisLine:function(r,e,t,a){var n=e.get(["axisLine","show"]);if("auto"===n&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),n){var i=e.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(se(s,s,o),se(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ie({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});ro(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(null!=v){var c=e.get(["axisLine","symbolSize"]);U(v)&&(v=[v,v]),(U(c)||wt(c))&&(c=[c,c]);var p=so(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];A([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if("none"!==v[m]&&null!=v[m]){var _=Kt(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,a){var n=function GG(r,e,t,a){var n=t.axis,i=t.getModel("axisTick"),o=i.get("show");if("auto"===o&&a.handleAutoShown&&(o=a.handleAutoShown("axisTick")),o&&!n.scale.isBlank()){for(var s=i.getModel("lineStyle"),l=a.tickDirection*i.get("length"),f=_C(n.getTicksCoords(),e.transform,l,Q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}(t,a,e,r),i=function HG(r,e,t,a){var n=t.axis;if(ee(a.axisLabelShow,t.get(["axisLabel","show"]))&&!n.scale.isBlank()){var o=t.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(ee(a.labelRotate,o.get("rotate"))||0)*$a/180,f=li.innerTextLayout(a.rotation,u,a.labelDirection),h=t.getCategories&&t.getCategories(!0),v=[],c=li.isLabelSilent(t),p=t.get("triggerEvent");return A(l,function(d,g){var y="ordinal"===n.scale.type?n.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var b=h[y];J(b)&&b.textStyle&&(S=new Rt(b.textStyle,o,t.ecModel))}var x=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(y),T=new xt({x:w,y:a.labelOffset+a.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(d.level||0),style:Ot(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:j(x)?x("category"===n.type?_:"value"===n.type?y+"":y,g):x})});if(T.anid="label_"+y,p){var C=li.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=_,C.tickIndex=g,"category"===n.type&&(C.dataIndex=y),nt(T).eventData=C}e.add(T),T.updateTransform(),v.push(T),r.add(T),T.decomposeTransform()}),v}}(t,a,e,r);(function zG(r,e,t){if(!Mw(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]),i=(e=e||[])[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=(t=t||[])[0],f=t[1],h=t[t.length-1],v=t[t.length-2];!1===a?(ur(i),ur(u)):yC(i,o)&&(a?(ur(o),ur(f)):(ur(i),ur(u))),!1===n?(ur(s),ur(h)):yC(l,s)&&(n?(ur(l),ur(v)):(ur(s),ur(h)))}})(e,i,n),function FG(r,e,t,a){var n=t.axis,i=t.getModel("minorTick");if(i.get("show")&&!n.scale.isBlank()){var o=n.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=a*i.get("length"),u=Q(s.getLineStyle(),Q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=_C(o[f],e.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}(t,a,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])&&jw(Xw(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}})))},axisName:function(r,e,t,a){var n=ee(r.axisName,e.get("name"));if(n){var v,p,i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=["start"===i?u[0]-f*l:"end"===i?u[1]+f*l:(u[0]+u[1])/2,mC(i)?r.labelOffset+o*l:0],c=e.get("nameRotate");null!=c&&(c=c*$a/180),mC(i)?v=li.innerTextLayout(r.rotation,c??r.rotation,o):(v=function BG(r,e,t,a){var i,o,n=yc(t-r),s=a[0]>a[1],l="start"===e&&!s||"start"!==e&&s;return us(n-$a/2)?(o=l?"bottom":"top",i="center"):us(n-1.5*$a)?(o=l?"top":"bottom",i="center"):(o="middle",i=n<1.5*$a&&n>$a/2?l?"left":"right":l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}(r.rotation,i,c||0,u),null!=(p=r.axisNameAvailableWidth)&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new xt({x:h[0],y:h[1],rotation:v.rotation,silent:li.isLabelSilent(e),style:Ot(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(no({el:_,componentModel:e,itemName:n}),_.__fullText=n,_.anid="name",e.get("triggerEvent")){var S=li.makeAxisEventDataBase(e);S.targetType="axisName",S.name=n,nt(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function ur(r){r&&(r.ignore=!0)}function yC(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(t&&a){var n=Uo([]);return Ma(n,n,-r.rotation),t.applyTransform(kr([],n,r.getLocalTransform())),a.applyTransform(kr([],n,e.getLocalTransform())),t.intersect(a)}}function mC(r){return"middle"===r||"center"===r}function _C(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(se(o,o,e),se(s,s,e));var f=new ie({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});ro(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f)}return i}const ga=li;function vg(r,e){return"all"===r||z(r)&&ht(r,e)>=0||r===e}function qG(r){var e=cg(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");null!=o&&(o=a.parse(o));var s=pg(t);null==i&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||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 cg(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[gl(r)]}function pg(r){return!!r.get(["handle","show"])}function gl(r){return r.type+"||"+r.id}var SC={},jG=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){this.axisPointerClass&&qG(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function KG(r){var e=cg(r);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){SC[t]=a},e.getAxisPointerClass=function(t){return t&&SC[t]},e.type="axis",e}(Gt);const ui=jG;var dg=Tt();function xC(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var f=s.length,h=dg(r).splitAreaColors,v=q(),c=0;if(h)for(var p=0;p<u.length;p++){var d=h.get(u[p].tickValue);if(null!=d){c=(d+(f-1)*p)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();for(s=z(s)?s:[s],p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(S=l.y,x=l.height,g=(_=g)+(b=m-_)):(_=l.x,b=l.width,g=(S=g)+(x=m-S));var w=u[p-1].tickValue;null!=w&&v.set(w,c),e.add(new St({anid:null!=w?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:Q({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}dg(r).splitAreaColors=v}}}function bC(r){dg(r).splitAreaColors=null}var QG=["axisLine","axisTickLabel","axisName"],JG=["splitArea","splitLine","minorSplitLine"],wC=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return O(e,r),e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),t.get("show")){var s=t.getCoordSysModel(),l=ug(s,t),u=new ga(t,V({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Md(v[c].getOtherAxis(t.axis).scale))return!0;return!1}},l));A(QG,u.add,u),this._axisGroup.add(u.getGroup()),A(JG,function(h){t.get([h,"show"])&&$G[h](this,this._axisGroup,t,s)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Fs(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){bC(this)},e.type="cartesianAxis",e}(ui),$G={splitLine:function(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=a.coordinateSystem.getRect(),u=n.isHorizontal(),f=0,h=n.getTicksCoords({tickModel:i}),v=[],c=[],p=o.getLineStyle(),d=0;d<h.length;d++){var g=n.toGlobalCoord(h[d].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=f++%s.length,_=new ie({anid:null!=h[d].tickValue?"line_"+h[d].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:Q({stroke:s[y]},p),silent:!0});ro(_.shape,p.lineWidth),e.add(_)}}},minorSplitLine:function(r,e,t,a){var n=t.axis,o=t.getModel("minorSplitLine").getModel("lineStyle"),s=a.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var p=0;p<u[c].length;p++){var d=n.toGlobalCoord(u[c][p].coord);l?(f[0]=d,f[1]=s.y,h[0]=d,h[1]=s.y+s.height):(f[0]=s.x,f[1]=d,h[0]=s.x+s.width,h[1]=d);var g=new ie({anid:"minor_line_"+u[c][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});ro(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,a){xC(r,e,t,a)}},TC=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="xAxis",e}(wC),tF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=TC.type,t}return O(e,r),e.type="yAxis",e}(wC),eF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="grid",t}return O(e,r),e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new St({shape:t.coordinateSystem.getRect(),style:Q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Gt),CC={offset:0};function AC(r){r.registerComponentView(eF),r.registerComponentModel(TG),r.registerCoordinateSystem("cartesian2d",VG),_o(r,"x",og,CC),_o(r,"y",og,CC),r.registerComponentView(TC),r.registerComponentView(tF),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function aF(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=MC(f)?f:DC(n)})}),t.each(function(o){var s=t0(a[o],function(l){return MC(l)})||DC(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function MC(r){return!isNaN(r[0])&&!isNaN(r[1])}function DC(r){return[r.cx,r.cy]}function nF(r){var e=r.polar;if(e){z(e)||(e=[e]);var t=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}A(r.series,function(a){a&&"radar"===a.type&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var iF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(v,c){var p=v.getItemVisual(c,"symbol")||"circle";if("none"!==p){var d=Xs(v.getItemVisual(c,"symbolSize")),g=Kt(p,-1,-1,2,2),y=v.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,c,p,d,g,y){p.removeAll();for(var m=0;m<c.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),fn[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},t,g)):_.setPosition(c[m]),p.add(_))}}function h(v){return G(v,function(c){return[i.cx,i.cy]})}s.diff(l).add(function(v){var c=s.getItemLayout(v);if(c){var p=new De,d=new Le,g={shape:{points:c}};p.shape.points=h(c),d.shape.points=h(c),zt(p,g,t,v),zt(d,g,t,v);var y=new rt,m=new rt;y.add(d),y.add(p),y.add(m),f(d.shape.points,c,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,c){var p=l.getItemGraphicEl(c),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(v)}};!m.shape.points||(f(d.shape.points,m.shape.points,y,s,v,!1),br(g),br(d),Ct(d,m,t),Ct(g,m,t),s.setItemGraphicEl(v,p))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,c){var p=s.getItemModel(c),d=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(v),d.useStyle(Q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),he(d,p,"lineStyle"),he(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,A(["emphasis","select","blur"],function(T){var C=p.getModel([T,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=M&&b}),g.useStyle(Q(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof ue){var C=T.style;T.useStyle(V({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;T.ensureState("emphasis").style=et(w);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),c);(null==D||isNaN(D))&&(D=""),ve(T,ae(p),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Ut(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Et);const oF=iF;var sF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return mo(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),l=this.getData().getName(t),u=""===l?this.name:l,f=ax(this,t);return ne("section",{header:u,sortBlocks:!0,blocks:G(s,function(h){var v=i.get(i.mapDimension(h.dim),t);return ne("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(G(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Nt);const lF=sF;var yl=lC.value;function uh(r,e){return Q({show:e},r)}var uF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),c=G(this.get("indicator")||[],function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=l;null!=p.color&&(d=Q({color:p.color},l));var g=ot(et(p),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);U(f)?g.name=f.replace("{value}",g.name??""):j(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return Zt(m,co.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ot({lineStyle:{color:"#bbb"}},yl.axisLine),axisLabel:uh(yl.axisLabel,!1),axisTick:uh(yl.axisTick,!1),splitLine:uh(yl.splitLine,!0),splitArea:uh(yl.splitArea,!0),indicator:[]},e}(_t);const fF=uF;var hF=["axisLine","axisTickLabel","axisName"],vF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem;A(G(a.getIndicatorAxes(),function(o){var s=o.model.get("showName")?o.name:"";return new ga(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(o){A(hF,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];if("circle"===i)for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++)f&&g[m(g,p,x)].push(new Tr({shape:{cx:S,cy:b,r:_[x].coord}})),h&&x<_.length-1&&y[m(y,d,x)].push(new Bs({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}));else{var T,C=G(n,function(R,E){var N=R.getTicksCoords();return T=null==T?N.length-1:Math.min(N.length-1,T),G(N,function(k){return a.coordToPoint(k.coord,E)})}),M=[];for(x=0;x<=T;x++){for(var D=[],L=0;L<n.length;L++)D.push(C[L][x]);D[0]&&D.push(D[0].slice()),f&&g[m(g,p,x)].push(new Le({shape:{points:D}})),h&&M&&y[m(y,d,x-1)].push(new De({shape:{points:D.concat(M)}})),M=D.slice().reverse()}}var I=l.getLineStyle(),P=u.getAreaStyle();A(y,function(R,E){this.group.add(Ye(R,{style:Q({stroke:"none",fill:d[E%d.length]},P),silent:!0}))},this),A(g,function(R,E){this.group.add(Ye(R,{style:Q({fill:"none",stroke:p[E%p.length]},I),silent:!0}))},this)}function m(R,E,N){var k=N%E.length;return R[k]=R[k]||[],k}},e.type="radar",e}(Gt);const cF=vF;var pF=function(r){function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return O(e,r),e}(lr);const dF=pF;var gF=function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new dF(o,new Ka);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){return this.coordToPoint(this._indicatorAxes[t].dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var s,i=Math.atan2(-a,t),o=1/0,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(i-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight(),o=Math.min(n,i)/2;this.cx=H(a[0],n),this.cy=H(a[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(U(s)||wt(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;A(a,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if("radar"===s.get("coordinateSystem")&&e.getComponent("radar",s.get("radarIndex"))===n){var u=s.getData();A(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new Ka;o.setExtent(0,i),o.setInterval(1),A(a,function(s,l){cC(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){"radar"===n.get("coordinateSystem")&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();const yF=gF;function mF(r){r.registerCoordinateSystem("radar",yF),r.registerComponentModel(fF),r.registerComponentView(cF),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var LC="\0_ec_interaction_mutex";function IC(r,e){return!!gg(r)[e]}function gg(r){return r[LC]||(r[LC]={})}Dr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Xt);var bF=function(r){function e(t){var a=r.call(this)||this;a._zr=t;var n=Y(a._mousedownHandler,a),i=Y(a._mousemoveHandler,a),o=Y(a._mouseupHandler,a),s=Y(a._mousewheelHandler,a),l=Y(a._pinchHandler,a);return a.enable=function(u,f){this.disable(),this._opt=Q(et(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==u&&(u=!0),(!0===u||"move"===u||"pan"===u)&&(t.on("mousedown",n),t.on("mousemove",i),t.on("mouseup",o)),(!0===u||"scale"===u||"zoom"===u)&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",n),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return O(e,r),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!d0(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&fh("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!IC(this._zr,"globalPan")){var a=t.offsetX,n=t.offsetY,i=this._x,o=this._y,s=a-i,l=n-o;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&aa(t.event),PC(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){d0(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=fh("zoomOnMouseWheel",t,this._opt),n=fh("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(0!==i&&(a||n)){if(a){var u=o>3?1.4:o>1?1.2:1.1;yg(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i);yg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){IC(this._zr,"globalPan")||yg(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(je);function yg(r,e,t,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(aa(a.event),PC(r,e,t,a,n))}function PC(r,e,t,a,n){n.isAvailableBehavior=Y(fh,null,t,a),r.trigger(e,n)}function fh(r,e,t){var a=t[r];return!r||a&&(!U(a)||e.event[a+"Key"])}const ml=bF;function mg(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function _g(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0;o=Math.max(Math.min(i.max||1/0,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(t-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var wF={axisPointer:1,tooltip:1,brush:1};function hh(r,e,t){var a=e.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==t&&!wF.hasOwnProperty(a.mainType)&&n&&n.model!==t}function RC(r){U(r)&&(r=(new DOMParser).parseFromString(r,"text/xml"));var t=r;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Sg,vh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},EC=mt(vh),ch={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kC=mt(ch),TF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=RC(e);this._defsUsePending=[];var n=new rt;this._root=n;var f,h,i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xe(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(function MF(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var v=ph(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&null!=s&&null!=l&&(h=HC(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;(n=new rt).add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&null!=s&&null!=l&&n.setClipPath(new St({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l,s=e.nodeName.toLowerCase(),u=n;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)l=t;else{if(!i){var f=Sg[s];if(f&&Z(Sg,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),"g"===s&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=OC[s];if(c&&Z(OC,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,l,a,u,i,o):3===g.nodeType&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new gs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),function CF(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;a&&"auto"!==a&&"baseline"!==a?"before-edge"===a||"text-before-edge"===a?n="top":"after-edge"===a||"text-after-edge"===a?n="bottom":("central"===a||"mathematical"===a)&&(n="middle"):n="alphabetic",r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&("middle"===o&&(s="center"),r.style.textAlign=s)}}(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=void(Sg={g:function(e,t){var a=new rt;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new St;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Tr;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new ie;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new lf;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var n,a=e.getAttribute("points");a&&(n=BC(a));var i=new De({shape:{points:n||[]},silent:!0});return fr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,a=e.getAttribute("points");a&&(n=BC(a));var i=new Le({shape:{points:n||[]},silent:!0});return fr(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new ue;return fr(t,a),Xe(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new rt;return fr(t,s),Xe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new rt;return fr(t,s),Xe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=gx(e.getAttribute("d")||"");return fr(t,n),Xe(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),r}(),OC={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new eo(e,t,a,n);return NC(r,i),VC(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Wp(e,t,a);return NC(r,n),VC(r,n),n}};function NC(r,e){"userSpaceOnUse"===r.getAttribute("gradientUnits")&&(e.global=!0)}function VC(r,e){for(var t=r.firstChild;t;){if(1===t.nodeType&&"stop"===t.nodeName.toLocaleLowerCase()){var n,a=t.getAttribute("offset");n=a&&a.indexOf("%")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};FC(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function fr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,r.__inheritedStyle))}function BC(r){for(var e=ph(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function Xe(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};1===r.nodeType&&(function IF(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(LF,function(h,v,c){return a.push(v,c),""});for(var i=a.length-1;i>0;i-=2){var s=a[i-1],l=ph(a[i]);switch(n=n||[1,0,0,1,0,0],s){case"translate":gr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ru(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ma(n,n,-parseFloat(l[0])*xg);break;case"skewX":kr(n,[1,0,Math.tan(parseFloat(l[0])*xg),1,0,0],n);break;case"skewY":kr(n,[1,Math.tan(parseFloat(l[0])*xg),0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5])}}e.setLocalTransform(n)}}(r,e),FC(r,o,s),a||function PF(r,e,t){for(var a=0;a<EC.length;a++)null!=(i=r.getAttribute(n=EC[a]))&&(e[vh[n]]=i);for(a=0;a<kC.length;a++){var n,i;null!=(i=r.getAttribute(n=kC[a]))&&(t[ch[n]]=i)}}(r,o,s)),i.style=i.style||{},null!=o.fill&&(i.style.fill=zC(i,"fill",o.fill,t)),null!=o.stroke&&(i.style.stroke=zC(i,"stroke",o.stroke,t)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){null!=o[l]&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){null!=o[l]&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=G(ph(o.lineDash),function(l){return parseFloat(l)})),("hidden"===o.visibility||"collapse"===o.visibility)&&(i.invisible=!0),"none"===o.display&&(i.ignore=!0)}var AF=/^url\(\s*#(.*?)\)/;function zC(r,e,t,a){var n=t&&t.match(AF);if(!n)return"none"===t&&(t=null),t;var i=Ke(n[1]);a.push([r,e,i])}var DF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ph(r){return r.match(DF)||[]}var LF=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xg=Math.PI/180,GC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function FC(r,e,t){var a=r.getAttribute("style");if(a){GC.lastIndex=0;for(var n;null!=(n=GC.exec(a));){var i=n[1],o=Z(vh,i)?vh[i]:null;o&&(e[o]=n[2]);var s=Z(ch,i)?ch[i]:null;s&&(t[s]=n[2])}}}function HC(r,e){var n=Math.min(e.width/r.width,e.height/r.height);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}for(var EF=q(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),kF=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=q(),this._freedGraphics=[],this._mapName=e,this._parsedXML=RC(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function NF(r){var e=[],t=q();return A(r,function(a){if(null==a.namedFrom){var n=new QB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}(e.named),n=t.regionsMap;this._regions=t.regions,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&function RF(r,e){return(new TF).parse(r,e)}(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},de(null!=(a=t.root))}catch(g){throw new Error("Invalid svg format\n"+g.message)}var n=new rt;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(null!=i?(u=0,h=i):s&&(u=s.x,h=s.width),null!=o?(f=0,v=o):s&&(f=s.y,v=s.height),null==u||null==f){var c=a.getBoundingRect();null==u&&(u=c.x,h=c.width),null==f&&(f=c.y,v=c.height)}l=this._boundingRect=new ut(u,f,h,v)}if(s){var p=HC(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new St({shape:l.plain()}));var d=[];return A(t.named,function(g){null!=EF.get(g.svgNodeTagLower)&&(d.push(g),function OF(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}(),bg=[126,25],fi=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],hi=0;hi<fi.length;hi++)for(var So=0;So<fi[hi].length;So++)fi[hi][So][0]/=10.5,fi[hi][So][1]/=-14,fi[hi][So][0]+=bg[0],fi[hi][So][1]+=bg[1];var BF={\u5357\u6d77\u8bf8\u5c9b:[32,80],\u5e7f\u4e1c:[0,-10],\u9999\u6e2f:[10,5],\u6fb3\u95e8:[-10,10],\u5929\u6d25:[5,5]},GF=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],WF=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=q(),this._mapName=e,this._specialAreas=a,this._geoJSON=function YF(r){return U(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}(t)}return r.prototype.load=function(e,t){var a=this._parsedMap.get(t=t||"name");if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:UF(n)})}var i=q(),o=[];return A(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ut(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var n,t=this._mapName,a=this._geoJSON;try{n=a?Bd(a,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return function VF(r,e){if("china"===r){for(var t=0;t<e.length;t++)if("\u5357\u6d77\u8bf8\u5c9b"===e[t].name)return;e.push(new Ew("\u5357\u6d77\u8bf8\u5c9b",G(fi,function(a){return{type:"polygon",exterior:a}}),bg))}}(t,n),A(n,function(i){var o=i.name;(function zF(r,e){if("china"===r){var t=BF[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/14,e.setCenter(a)}}})(t,i),function FF(r,e){"china"===r&&"\u53f0\u6e7e"===e.name&&e.geometries.push({type:"polygon",exterior:GF[0]})}(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function UF(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();(e=e||a.clone()).union(a)}return e}var _l=q();const ya_getGeoResource=function(r){return _l.get(r)},ya_load=function(r,e,t){var a=_l.get(r);if(a)return a.load(e,t)};var wg=["rect","circle","line","ellipse","polygon","polyline","path"],ZF=q(wg),XF=q(wg.concat(["g"])),qF=q(wg.concat(["g"])),UC=Tt();function dh(r){var e=r.getItemStyle(),t=r.get("areaColor");return null!=t&&(e.fill=t),e}function YC(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var KF=function(){function r(e){var t=new rt;this.uid=Hi("ec_map_draw"),this._controller=new ml(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new rt),t.add(this._svgGroup=new rt)}return r.prototype.draw=function(e,t,a,n,i){var o="geo"===e.mainType,s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam;!u.childAt(0)||i?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Ct(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};"geoJSON"===l.resourceType?this._buildGeoJSON(g):"geoSVG"===l.resourceType&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=q(),a=q(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}n.removeAll(),A(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new rt),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,a.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];A(c.geometries,function(w){if("polygon"===w.type){var T=[w.exterior].concat(w.interiors||[]);u&&(T=QC(T,u)),A(T,function(M){_.push(new De(v(M)))})}else{var C=w.points;u&&(C=QC(C,u,!0)),A(C,function(M){S.push(new Le(v(M)))})}});var b=f(c.getCenter(),l&&l.project);function x(w,T){if(w.length){var C=new hf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(C),ZC(e,C,y,m),XC(e,C,p,m,o,y,b),T&&(YC(C),A(C.states,YC))}}x(_),x(S,!0)}),t.each(function(c,p){var d=a.get(p),y=d.regionModel;qC(e,c,p,y,o,d.dataIdx),KC(e,c,p,y,o),jC(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=q(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);null!=ZF.get(f)&&h instanceof tr&&ZC(e,h,v,c),h instanceof tr&&(h.culling=!0),h.z2EmphasisLift=0,o.namedFrom||(null!=qF.get(f)&&XC(e,h,s,c,l,v,null),qC(e,h,s,c,l,v),KC(e,h,s,c,l),null==XF.get(f))||("self"===jC(e,h,s,c,l)&&(i=!0),(n.get(s)||n.set(s,[])).push(h))},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){On(i);var o=i.ensureState("blur").style||{};null==o.opacity&&null!=n&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var a=t.coordinateSystem;if("geoJSON"===a.resourceType){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if("geoSVG"===a.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=ya_getGeoResource(e);if(t&&"geoSVG"===t.type){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=ya_getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,mg(o,u.dx,u.dy),a.dispatchAction(V(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,_g(o,u.scale,u.originX,u.originY),a.dispatchAction(V(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,h){return n.containPoint([f,h])&&!hh(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=UC(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function ZC(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=dh(n),u=dh(i),f=dh(s),h=dh(o),v=r.data;if(v){var c=v.getItemVisual(t,"style"),p=v.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),p&&(l.decal=uo(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=h,On(e)}function XC(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var h=l?t:i,v=void 0;(!s||i>=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ve(e,ae(a),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(UC(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function qC(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):nt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function KC(r,e,t,a,n){r.data||no({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function jC(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Ut(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&function BE(r,e,t){var a=nt(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}(e,n,t),o}function QC(r,e,t){var n,a=[];function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}const JC=KF;var jF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(s=this._mapDraw)&&o.add(s.group);else if(t.needsDrawMap){var s=this._mapDraw||new JC(n);o.add(s.group),s.draw(t,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(u&&u.point){var f=u.point,h=u.offset,v=new Tr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+9*h,cy:f[1],r:3},silent:!0,z2:8+(h?0:11)});if(!h){var c=t.mainSeries.getData(),p=i.getName(l),d=c.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=c.getItemGraphicEl(d);ve(v,ae(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){zu(v,_)}}o.add(v)}}})},e.type="map",e}(Et);const QF=jF;var JF=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(null!=a){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return O(e,r),e.prototype.getInitialData=function(t){for(var a=mo(this,{coordDimensions:["value"],encodeDefaulter:it(gp,this)}),n=q(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,!0)}return A(ya_load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(f){var h=f.name;n.get(h)||i.push(h)}),a.appendValues([],i),a},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),v=i.mapDimension("value");isNaN(l[f].originalData.get(v,h))||u.push(l[f].name)}return ne("section",{header:u.join(", "),noHeader:!u.length,blocks:[ne("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=Kt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Nt);const $F=JF;function e3(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),A(e,function(t,a){for(var n=function t3(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];return 0===u?NaN:"min"===e?s:"max"===e?l:"average"===e?o/u:o})}(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function r3(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!t.getHostGeoModel()&&!e[a]){var n={};A(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),v=s.getRegion(h);if(v&&!isNaN(u)){var c=n[h]||0,p=s.dataToPoint(v.getCenter());n[h]=c+1,l.setItemLayout(f,{point:p,offset:c})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[a]=!0}})}var $C=se,a3=function(r){function e(t){var a=r.call(this)||this;return a.type="view",a.dimensions=["x","y"],a._roamTransformable=new ia,a._rawTransformable=new ia,a.name=t,a}return O(e,r),e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new ut(t,a,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new ut(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ut(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,a){!t||(this._center=[H(t[0],a.getWidth()),H(t[1],a.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var a=this.zoomLimit;a&&(null!=a.max&&(t=Math.min(a.max,t)),null!=a.min&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),a=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=se([],i,t),n=se([],n,t),a.originX=i[0],a.originY=i[1],a.x=n[0]-i[0],a.y=n[1]-i[1],a.scaleX=a.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),eu(this.transform||(this.transform=[]),a.transform||[1,0,0,1,0,0]),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],cn(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new ia;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?$C(n,t,i):ge(n,t)},e.prototype.pointToData=function(t){var a=this.invTransform;return a?$C([],t,a):[t[0],t[1]]},e.prototype.convertToPixel=function(t,a,n){var i=tA(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=tA(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ia);function tA(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Sl=a3;var n3={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eA=["lng","lat"],rA=function(r){function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=eA,i.type="geo",i._nameCoordMap=q(),i.map=a;var v,o=n.projection,s=ya_load(a,n.nameMap,n.nameProperty),l=ya_getGeoResource(a),f=(i.resourceType=l?l.type:null,i.regions=s.regions),h=n3[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o,o)for(var c=0;c<f.length;c++){var p=f[c].getBoundingRect(o);(v=v||p.clone()).union(p)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:st(n.aspectScale,h.aspectScale),i._invertLongitute=!o&&h.invertLongitute,i}return O(e,r),e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ut(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if("geoJSON"===i.type&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(U(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=aA(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=aA(a);return i===this?i.pointToData(n):null},e}(Sl);function aA(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Qt).models[0]||{}).coordinateSystem:null}Zt(rA,Sl);const nA=rA;function iA(r,e){var t=r.get("boundingCoords");if(null!=t){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(x,w,T,C){for(var M=T-x,D=C-w,L=0;L<=100;L++){var I=L/100,P=i.project([x+M*I,w+D*I]);ea(a,a,P),ra(n,n,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var m,_,S,h=this.getBoundingRect(),v=r.get("layoutCenter"),c=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1;if(v&&c&&(m=[H(v[0],p),H(v[1],d)],_=H(c,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0)),y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=Jt(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}var o3=function(){function r(){this.dimensions=eA}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new nA(l+s,l,V({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=iA,u.resize(o,t)}),e.eachSeries(function(o){if("geo"===o.get("coordinateSystem")){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new nA(s,s,V({nameMap:ql(l)},n(o[0])));u.zoomLimit=ee.apply(null,G(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=iA,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,function i3(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=q(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);return A(ya_load(t,a,n).regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}();const oA=new o3;var l3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a,n){var i=ya_getGeoResource(t.map);if(i&&"geoJSON"===i.type){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),bn(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=oA.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=qe(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Rt(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},q()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Rt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var i=this.getRegionModel(t).get("normal"===a?["label","formatter"]:["emphasis","label","formatter"]),o={name:t};return j(i)?(o.status=a,i(o)):U(i)?i.replace("{a}",t??""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;n&&("multiple"!==n&&(a.selectedMap=null),(a.selectedMap||(a.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!(!a||!a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(_t);const u3=l3;function sA(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Tg(r,e,t,a){var n=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(sA(r,s),a)),null!=o){if(t){var l=t.min||0;o=Math.max(Math.min(n*o,t.max||1/0),l)/n}r.scaleX*=o,r.scaleY*=o;var h=(e.originY-r.y)*(o-1);r.x-=(e.originX-r.x)*(o-1),r.y-=h,r.updateTransform(),r.setCenter(sA(r,s),a),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var f3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return O(e,r),e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new JC(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;qn(t.target,function(n){return null!=(a=nt(n).eventData)},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=nt(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Gt);const h3=f3;function v3(r,e,t){!function(r,e,t){if(e.svg){var a=new kF(r,e.svg);_l.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e,a=new WF(r,n,t),_l.set(r,a)}}(r,e,t)}function lA(r){function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name),A(l.coordinateSystem.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];A(o,function(h,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}r.registerCoordinateSystem("geo",oA),r.registerComponentModel(u3),r.registerComponentView(h3),r.registerImpl("registerMap",v3),r.registerImpl("getMap",function(t){return function(r){var e=_l.get(r);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)}),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if("geo"===s.type){var l=Tg(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),"series"===i&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function d3(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){!function m3(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,a+=i.hierNode.shift+(n+=i.hierNode.change)}}(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=function _3(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=Cg(s),i=Ag(i),s&&i;){n=Cg(n),o=Ag(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(x3(S3(s,r,t),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!Cg(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!Ag(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function g3(r){r.setLayout({x:r.hierNode.prelim+r.parentNode.hierNode.modifier},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function uA(r){return arguments.length?r:b3}function xl(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Cg(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Ag(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function S3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function x3(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function b3(r,e){return r.parentNode===e.parentNode?1:2}var w3=function r(){this.parentPoint=[],this.childPoints=[]},T3=function(r){function e(t){return r.call(this,t)||this}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new w3},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(s[0],s[1]);var u=a.orient,f="TB"===u||"BT"===u?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[f]=s[f],t.lineTo(c[0],c[1]),c[f]=l[f],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];t.moveTo(d[0],d[1]),c[f]=d[f],t.lineTo(c[0],c[1])}},e}(pt),C3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new rt,t}return O(e,r),e.prototype.init=function(t,a){this._controller=new ml(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup;"radial"===t.get("layout")?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,a,n);var u=this._data;i.diff(u).add(function(f){fA(i,f)&&hA(i,f,null,s,t)}).update(function(f,h){var v=u.getItemGraphicEl(h);fA(i,f)?hA(i,f,v,s,t):v&&pA(u,h,v,s,t)}).remove(function(f){var h=u.getItemGraphicEl(f);h&&pA(u,f,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl(function(f,h){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(h){var v=n.getItemLayout(h);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];Eu(i,o,s);var l=this._min,u=this._max;s[0]-o[0]==0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]==0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Sl;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),a),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!hh(u,n,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){mg(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){_g(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if("view"!==a.type)return 1;var n=this._nodeScaleRatio,i=a.scaleX||1;return((a.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Et);function fA(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function hA(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:"#fff",f=r.tree.root,h=o.parentNode===f?o:o.parentNode||o,v=r.getItemGraphicEl(h.dataIndex),c=h.getLayout(),p=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:c,d=o.getLayout();i?((t=new hl(r,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ct(t,{x:d.x,y:d.y},n);var g=t.getSymbolPath();if("radial"===n.get("layout")){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(d.x===m.x&&!0===o.isExpand&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};(S=Math.atan2(x.y-m.y,x.x-m.x))<0&&(S=2*Math.PI+S),(b=x.x<m.x)&&(S-=Math.PI)}else(S=Math.atan2(d.y-m.y,d.x-m.x))<0&&(S=2*Math.PI+S),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(b=d.x<m.x)&&(S-=Math.PI):(b=d.x>m.x)||(S-=Math.PI);var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:null==C?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I="relative"===L?Bo(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===L?o.getAncestorsIndices():"descendant"===L?o.getDescendantIndices():null;I&&(nt(t).focus=I),function A3(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if("curve"===u)e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new zs({shape:Mg(f,h,v,n,n)})),Ct(d,{shape:Mg(f,h,v,i,o)},r));else if("polyline"===u&&"orthogonal"===f&&e!==t&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}d||(d=a.__edge=new T3({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:c}})),Ct(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&("polyline"!==u||e.isExpand)&&(d.useStyle(Q({strokeNoScale:!0,fill:null},p)),he(d,l,"lineStyle"),On(d),s.add(d))}(n,o,f,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if("blur"!==P){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&1===R.hoverState||zu(t.__edge,P)}})}function vA(r,e,t,a,n){var o=cA(e.tree.root,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=u.__edge||(!1===s.isExpand||1===s.children.length?f.__edge:void 0),c=a.get("edgeShape"),p=a.get("layout"),d=a.get("orient"),g=a.get(["lineStyle","curveness"]);v&&("curve"===c?za(v,{shape:Mg(p,d,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(v)},removeOpt:n}):"polyline"===c&&"orthogonal"===a.get("layout")&&za(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(v)},removeOpt:n}))}}function cA(r,e){for(var a,t=e.parentNode===r?e:e.parentNode||e;null==(a=t.getLayout());)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function pA(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),s=cA(r.tree.root,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};za(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){vA(u,r,a,n,l)}),vA(i,r,a,n,l)}function Mg(r,e,t,a,n){var i,o,s,l,u,f,h,v;if("radial"===r){f=n.rawX,v=n.rawY;var c=xl(u=a.rawX,h=a.rawY),p=xl(u,h+(v-h)*t),d=xl(f,v+(h-v)*t),g=xl(f,v);return{x1:c.x||0,y1:c.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}return u=a.x,h=a.y,f=n.x,v=n.y,("LR"===e||"RL"===e)&&(i=u+(f-u)*t,o=h,s=f+(u-f)*t,l=v),("TB"===e||"BT"===e)&&(i=u,o=h+(v-h)*t,s=f,l=v+(h-v)*t),{x1:u,y1:h,x2:f,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const M3=C3;var hr=Tt();function L3(r,e){if(function k3(r){return hr(r).mainData===r}(this)){var t=V({},hr(this).datas);t[this.dataType]=e,dA(e,t,r)}else Dg(e,this.dataType,hr(this).mainData,r);return e}function I3(r,e){return r.struct&&r.struct.update(),e}function P3(r,e){return A(hr(e).datas,function(t,a){t!==e&&Dg(t.cloneShallow(),a,e,r)}),e}function R3(r){var e=hr(this).mainData;return null==r||null==e?e:hr(e).datas[r]}function E3(){var r=hr(this).mainData;return null==r?[{data:r}]:G(mt(hr(r).datas),function(e){return{type:e,data:hr(r).datas[e]}})}function dA(r,e,t){hr(r).datas={},A(e,function(a,n){Dg(a,n,r,t)})}function Dg(r,e,t,a){hr(t).datas[e]=r,hr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=R3,r.getLinkedDataAll=E3}const gA=function D3(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,dA(e,t,r),A(t,function(a){A(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,it(L3,r))})}),e.wrapMethod("cloneShallow",it(P3,r)),A(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,it(I3,r))}),de(t[e.dataType]===e)};var O3=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){j(e)&&(a=t,t=e,e=null),U(e=e||{})&&(e={order:e});var o,n=e.order||"preorder",i=this[e.attr||"children"];"preorder"===n&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);"postorder"===n&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),N3=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;!function s(f,h){var v=f.value;o=Math.max(o,z(v)?v.length:1),i.push(f);var c=new O3(te(f.name,""),n);h?function V3(r,e){r.parentNode!==e&&(e.children.push(r),r.parentNode=e)}(c,h):n.root=c,n._nodes.push(c);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],c)}(e),n.root.updateDepthAndHeight(0);var l=ho(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new xe(l,t);return u.initData(i),a&&a(u),gA({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();const Lg=N3;function bl(r,e,t){if(r&&ht(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(U(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function yA(r){for(var e=[];r;)(r=r.parentNode)&&e.push(r);return e.reverse()}function Ig(r,e){return ht(yA(r),e)>=0}function gh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var B3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=new Rt(t.leaves||{},this,this.ecModel),o=Lg.createTree(a,this,function s(h){h.wrapMethod("getItemModel",function(v,c){var p=o.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(v.parentModel=i),v})}),l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var f=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&null!=v.collapsed?!v.collapsed:h.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ne("nameValue",{name:u,value:l,noValue:isNaN(l)||null==l})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=gh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Nt);const z3=B3;function wl(r,e){for(var a,t=[r];a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function F3(r,e){r.eachSeriesByType("tree",function(t){!function H3(r,e){var t=function y3(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(r,e);r.layoutInfo=t;var a=r.get("layout"),n=0,i=0,o=null;"radial"===a?(n=2*Math.PI,i=Math.min(t.height,t.width)/2,o=uA(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=t.width,i=t.height,o=uA());var s=r.getData().tree.root,l=s.children[0];if(l){(function p3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,t=[e];a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}})(s),function G3(r,e,t){for(var i,a=[r],n=[];i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}(l,d3,o),s.hierNode.modifier=-l.hierNode.prelim,wl(l,g3);var u=l,f=l,h=l;wl(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if("radial"===a)p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),wl(l,function(_){var S=xl(g=(_.getLayout().x+c)*p,y=(_.depth-1)*d);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();"RL"===m||"LR"===m?(d=i/(f.getLayout().x+v+c),p=n/(h.depth-1||1),wl(l,function(_){y=(_.getLayout().x+c)*d,_.setLayout({x:g="LR"===m?(_.depth-1)*p:n-(_.depth-1)*p,y},!0)})):("TB"===m||"BT"===m)&&(p=n/(f.getLayout().x+v+c),d=i/(h.depth-1||1),wl(l,function(_){g=(_.getLayout().x+c)*p,_.setLayout({x:g,y:y="TB"===m?(_.depth-1)*d:i-(_.depth-1)*d},!0)}))}}}(t,e)})}function W3(r){r.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(n){var o=n.getModel().getModel("itemStyle").getItemStyle();V(t.ensureUniqueItemVisual(n.dataIndex,"style"),o)})})}var mA=["treemapZoomToNode","treemapRender","treemapMove"];function _A(r){var e=r.getData(),a={};e.tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Sp(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var X3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};SA(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=t.levels=function q3(r,e){var t=Pt(e.get("color")),a=Pt(e.get(["aria","decal","decals"]));if(t){var n,i;A(r=r||[],function(s){var l=new Rt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&"none"!==u)&&(n=!0),(l.get(["itemStyle","decal"])||f&&"none"!==f)&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}(i,a);var l=G(i||[],function(h){return new Rt(h,s,a)},this),u=Lg.createTree(n,this,function f(h){h.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c);return v.parentModel=(p?l[p.depth]:null)||s,v})});return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t);return ne("nameValue",{name:i.getName(t),value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=gh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=q(),this._idIndexMapCount=0);var n=a.get(t);return null==n&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){_A(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Nt);function SA(r){var e=0;A(r.children,function(a){SA(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const K3=X3;var Q3=function(){function r(e){this.group=new rt,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&a){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,h,u),this._renderContent(e,h,s,l,u,f,n),Qu(o,h.pos,h.box)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=te(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=s+8,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),h=function hk(r,e,t){var a=e.width,n=e.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),t=Bn(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}(t.pos,t.box),v=t.totalWidth,c=t.renderList,p=n.getModel("itemStyle").getItemStyle(),d=c.length-1;d>=0;d--){var g=c[d],y=g.node,m=g.width,_=g.text;v>h.width&&(v-=m-u,m=u,_=null);var S=new De({shape:{points:J3(l,0,m,f,d===c.length-1,0===d)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new xt({style:Ot(i,{text:_})}),textConfig:{position:"inside"},z2:1e5,onclick:it(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),S.ensureState("emphasis").style=p,Ut(S,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(S),$3(S,e,y),l+=m+8}},r.prototype.remove=function(){this.group.removeAll()},r}();function J3(r,e,t,a,n,i){var o=[[n?r:r-5,e],[r+t,e],[r+t,e+a],[n?r:r-5,e+a]];return!i&&o.splice(2,0,[r+t+5,e+a/2]),!n&&o.push([r,e+a/2]),o}function $3(r,e,t){nt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&gh(t,e)}}const tH=Q3;var eH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}(),Rg=rt,bA=St,CA="upperLabel",vi=Cn([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),AA=function(r){var e=vi(r);return e.stroke=e.fill=e.lineWidth=null,e},yh=Tt(),oH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage={nodeGroup:[],background:[],content:[]},t}return O(e,r),e.prototype.render=function(t,a,n,i){if(!(ht(a.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var l=bl(i,["treemapZoomToNode","treemapRootToNode"],t),u=i&&i.type,f=t.layoutInfo,h=!this._oldTree,v=this._storage,c="treemapRootToNode"===u&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=t.get("animation"),g=this._doRender(p,t,c);!d||h||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,t,c),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new Rg,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]},u=this._storage,f=[];function h(g,y,m,_){return function sH(r,e,t,a,n,i,o,s,l,u){if(o){var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),f&&f.isInView){var c=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=tt("nodeGroup",Rg);if(D){if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),yh(D).nodeWidth=c,yh(D).nodeHeight=p,f.isAboveViewRoot)return D;var L=tt("background",bA,u,20);L&&function B(gt,at,yt){var vt=nt(at);if(vt.dataIndex=o.dataIndex,vt.seriesIndex=r.seriesIndex,at.setShape({x:0,y:0,width:c,height:p,r:M}),g)W(at);else{at.invisible=!1;var K=o.getVisual("style"),ft=K.stroke,Ht=AA(x);Ht.fill=ft;var At=vi(w);At.fill=w.get("borderColor");var qt=vi(T);qt.fill=T.get("borderColor");var Yt=vi(C);Yt.fill=C.get("borderColor"),yt?X(at,ft,K.opacity,{x:d,y:0,width:c-2*d,height:S}):at.removeTextContent(),at.setStyle(Ht),at.ensureState("emphasis").style=At,at.ensureState("blur").style=qt,at.ensureState("select").style=Yt,On(at)}gt.add(at)}(D,L,b&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N="ancestor"===P?o.getAncestorsIndices():"descendant"===P?o.getDescendantIndices():P;if(b)xs(D)&&Nn(D,!1),L&&(Nn(L,!E),h.setItemGraphicEl(o.dataIndex,L),jc(L,N,R));else{var k=tt("content",bA,u,30);k&&function F(gt,at){var yt=nt(at);yt.dataIndex=o.dataIndex,yt.seriesIndex=r.seriesIndex;var vt=Math.max(c-2*d,0),K=Math.max(p-2*d,0);if(at.culling=!0,at.setShape({x:d,y:d,width:vt,height:K,r:M}),g)W(at);else{at.invisible=!1;var ft=o.getVisual("style"),Ht=ft.fill,At=AA(x);At.fill=Ht,At.decal=ft.decal;var qt=vi(w),Yt=vi(T),be=vi(C);X(at,Ht,ft.opacity,null),at.setStyle(At),at.ensureState("emphasis").style=qt,at.ensureState("blur").style=Yt,at.ensureState("select").style=be,On(at)}gt.add(at)}(D,k),L.disableMorphing=!0,L&&xs(L)&&Nn(L,!1),Nn(D,!E),h.setItemGraphicEl(o.dataIndex,D),jc(D,N,R)}return D}}}function W(gt){!gt.invisible&&i.push(gt)}function X(gt,at,yt,vt){var K=v.getModel(vt?CA:"label"),ft=te(v.get("name"),null),Ht=K.getShallow("show");ve(gt,ae(v,vt?CA:"label"),{defaultText:Ht?ft:null,inheritColor:at,defaultOpacity:yt,labelFetcher:r,labelDataIndex:o.dataIndex});var At=gt.getTextContent();if(At){var qt=At.style,Yt=Ql(qt.padding||0);vt&&(gt.setTextConfig({layoutRect:vt}),At.disableLabelLayout=!0),At.beforeUpdate=function(){var ba=Math.max((vt?vt.width:gt.shape.width)-Yt[1]-Yt[3],0),ze=Math.max((vt?vt.height:gt.shape.height)-Yt[0]-Yt[2],0);(qt.width!==ba||qt.height!==ze)&&At.setStyle({width:ba,height:ze})},qt.truncateMinChar=2,qt.lineOverflow="truncate",$(qt,vt,f);var be=At.getState("emphasis");$(be?be.style:null,vt,f)}}function $(gt,at,yt){var vt=gt?gt.text:null;if(!at&&yt.isLeafRoot&&null!=vt){var K=r.get("drillDownIcon",!0);gt.text=K?K+" "+vt:vt}}function tt(gt,at,yt,vt){var K=null!=m&&t[gt][m],ft=n[gt];return K?(t[gt][m]=null,function dt(gt,at){var yt=gt[y]={};at instanceof Rg?(yt.oldX=at.x,yt.oldY=at.y):yt.oldShape=V({},at.shape)}(ft,K)):g||((K=new at)instanceof tr&&(K.z2=function lH(r,e){return 100*r+e}(yt,vt)),function Mt(gt,at){var yt=gt[y]={},vt=o.parentNode,K=at instanceof rt;if(vt&&(!a||"drillDown"===a.direction)){var ft=0,Ht=0,At=n.background[vt.getRawIndex()];!a&&At&&At.oldShape&&(ft=At.oldShape.width,Ht=At.oldShape.height),K?(yt.oldX=0,yt.oldY=Ht):yt.oldShape={x:ft,y:Ht,width:0,height:0}}yt.fadein=!K}(ft,K)),e[gt][y]=K}}(a,l,u,n,s,f,g,y,m,_)}!function c(g,y,m,_,S){function b(w){return w.getId()}function x(w,T){var C=null!=w?g[w]:null,M=null!=T?y[T]:null,D=h(C,M,m,S);D&&c(C&&C.viewChildren||[],M&&M.viewChildren||[],D,_,S+1)}_?(y=g,A(g,function(w,T){!w.isRemoved()&&x(T,T)})):new ca(y,g,b,b).add(x).update(x).remove(it(x,null)).execute()}(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var v=function p(g){var y={nodeGroup:[],background:[],content:[]};return g&&A(g,function(m,_){var S=y[_];A(m,function(b){b&&(S.push(b),yh(b).willDelete=!0)})}),y}(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:function d(){A(v,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(f,function(g){g.invisible=!0,g.dirty()})}}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(j(o)?0:o)||0,u=(j(s)?null:s)||"cubicOut",f=function rH(){return new eH}();A(a.willDeleteEls,function(h,v){A(h,function(c,p){if(!c.invisible){var g,d=c.parent,y=yh(d);if(i&&"drillDown"===i.direction)g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g="nodeGroup"===v?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(c,g,l,0,u)}})}),A(this._storage,function(h,v){A(h,function(c,p){var d=a.lastsForAnimation[v][p],g={};!d||(c instanceof rt?null!=d.oldX&&(g.x=c.x,g.y=c.y,c.x=d.oldX,c.y=d.oldY):(d.oldShape&&(g.shape=V({},c.shape),c.setShape(d.oldShape)),d.fadein?(c.setStyle("opacity",0),g.style={opacity:1}):1!==c.style.opacity&&(g.style={opacity:1})),f.add(c,g,l,0,u))})},this),this._state="animating",f.finished(Y(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this._controller;a||((a=this._controller=new ml(t.getZr())).enable(this.seriesModel.get("roam")),a.on("pan",Y(this._onPan,this)),a.on("zoom",Y(this._onZoom,this)));var n=new ut(0,0,t.getWidth(),t.getHeight());a.setPointerChecker(function(i,o,s){return n.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ut(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo,u=[1,0,0,1,0,0];gr(u,u,[-(a-=l.x),-(n-=l.y)]),ru(u,u,[t.scale,t.scale]),gr(u,u,[a,n]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if("ready"===a._state){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if("zoomToNode"===i)a._zoomToNode(o);else if("link"===i){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Ku(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new tH(this.group))).render(t,a,n.node,function(o){"animating"!==i._state&&(Ig(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(!(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height))return!1;n={node:o,offsetX:l[0],offsetY:l[1]}}},this),n},e.type="treemap",e}(Et);const uH=oH;var Cl=A,fH=J,Eg=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=et(e);this.type=a,this.mappingMethod=t,this._normalizeData=cH[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],"piecewise"===t?(kg(n),function hH(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,null!=t.visual&&(r.hasSpecialVisual=!0)})}(n)):"category"===t?n.categories?function vH(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Cl(e,function(o,s){t[o]=s}),!z(a)){var n=[];J(a)?Cl(a,function(o,s){n[t[s]??-1]=o}):n[-1]=a,a=DA(r,n)}for(var i=e.length-1;i>=0;i--)null==a[i]&&(delete t[e[i]],e.pop())}(n):kg(n,!0):(de("linear"!==t||n.dataExtent),kg(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return mt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=z(e)?[]:J(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var a,t={};return e&&Cl(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else{if(!fH(e))return[];var t=[];Cl(e,function(a,n){t.push(n)}),e=t}return e.sort(function(a,n){return"color"===n&&"color"!==a&&0===a.indexOf("color")?1:-1}),e},r.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(null!=l){if(l===e||U(l)&&l===e+"")return o;a&&v(l,o)}}for(o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(Sh(h[1],e,f[1]))return o}else if(f[1]===1/0){if(Sh(h[0],f[0],e))return o}else if(Sh(h[0],f[0],e)&&Sh(h[1],e,f[1]))return o;a&&v(f[0],o),a&&v(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function v(c,p){var d=Math.abs(c-e);d<i&&(i=d,n=p)}},r.visualHandlers={color:{applyVisual:Al("color"),getColorMapper:function(){var e=this.option;return Y("category"===e.mappingMethod?function(t,a){return!a&&(t=this._normalizeData(t)),Ml.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=$o(t,e.parsedVisual,n),i?n:mr(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return mr($o(e,this.option.parsedVisual),"rgba")},category:Ml,piecewise:function(e,t){var a=Ng.call(this,t);return null==a&&(a=mr($o(e,this.option.parsedVisual),"rgba")),a},fixed:ci}},colorHue:_h(function(e,t){return Ii(e,t)}),colorSaturation:_h(function(e,t){return Ii(e,null,t)}),colorLightness:_h(function(e,t){return Ii(e,null,null,t)}),colorAlpha:_h(function(e,t){return ts(e,t)}),decal:{applyVisual:Al("decal"),_normalizedToVisual:{linear:null,category:Ml,piecewise:null,fixed:null}},opacity:{applyVisual:Al("opacity"),_normalizedToVisual:Og([0,1])},liftZ:{applyVisual:Al("liftZ"),_normalizedToVisual:{linear:ci,category:ci,piecewise:ci,fixed:ci}},symbol:{applyVisual:function(e,t,a){a("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:MA,category:Ml,piecewise:function(e,t){var a=Ng.call(this,t);return null==a&&(a=MA.call(this,e)),a},fixed:ci}},symbolSize:{applyVisual:Al("symbolSize"),_normalizedToVisual:Og([0,1])}},r}();function kg(r,e){var t=r.visual,a=[];J(t)?Cl(t,function(i){a.push(i)}):null!=t&&a.push(t),!e&&1===a.length&&!{color:1,symbol:1}.hasOwnProperty(r.type)&&(a[1]=a[0]),DA(r,a)}function _h(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Og([0,1])}}function MA(r){var e=this.option.visual;return e[Math.round(It(r,[0,1],[0,e.length-1],!0))]||{}}function Al(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Ml(r){var e=this.option.visual;return e[this.option.loop&&-1!==r?r%e.length:r]}function ci(){return this.option.visual[0]}function Og(r){return{linear:function(e){return It(e,r,this.option.visual,!0)},category:Ml,piecewise:function(e,t){var a=Ng.call(this,t);return null==a&&(a=It(e,r,this.option.visual,!0)),a},fixed:ci}}function Ng(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=t[Eg.findPieceIndex(r,t)];if(n&&n.visual)return n.visual[this.type]}}function DA(r,e){return r.visual=e,"color"===r.type&&(r.parsedVisual=G(e,function(t){return Te(t)||[0,0,0,1]})),e}var cH={linear:function(r){return It(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Eg.findPieceIndex(r,e,!0);if(null!=t)return It(t,[0,e.length-1],[0,1],!0)},category:function(r){return(this.option.categories?this.option.categoryMap[r]:r)??-1},fixed:Xt};function Sh(r,e,t){return r?e<=t:e<t}const pe=Eg;var LA=Tt();const dH={seriesType:"treemap",reset:function(r){var t=r.getData().tree.root;t.isRemoved()||IA(t,{},r.getViewRoot().getAncestors(),r)}};function IA(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(i&&!i.invisible&&i.isInView){var v,s=n.getModel("itemStyle"),l=function gH(r,e,t){var a=V({},e),n=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,null!=o&&(a[i]=o)}),a}(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),h=s.get("borderColorSaturation");null!=h&&(f=function yH(r,e){return null!=e?Ii(e,null,null,r):null}(h,v=PA(l))),u.stroke=f;var c=r.viewChildren;if(c&&c.length){var p=function mH(r,e,t,a,n,i){if(i&&i.length){var o=Bg(e,"color")||null!=n.color&&"none"!==n.color&&(Bg(e,"colorAlpha")||Bg(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==f&&"id"!==f?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var v=new pe(h);return LA(v).drColorMappingBy=f,v}}}(0,n,i,0,l,c);A(c,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=function _H(r,e,t,a,n,i){var o=V({},e);if(n){var s=n.type,l="color"===s&&LA(n).drColorMappingBy,u="index"===l?a:"id"===l?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}(n,l,d,g,p,a);IA(d,y,t,a)}})}else v=PA(l),u.fill=v}}function PA(r){var e=Vg(r,"color");if(e){var t=Vg(r,"colorAlpha"),a=Vg(r,"colorSaturation");return a&&(e=Ii(e,null,null,a)),t&&(e=ts(e,t)),e}}function Vg(r,e){var t=r[e];if(null!=t&&"none"!==t)return t}function Bg(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}var Dl=Math.max,xh=Math.min,RA=ee,zg=A,EA=["itemStyle","borderWidth"],SH=["itemStyle","gapWidth"],xH=["upperLabel","show"],bH=["upperLabel","height"];const wH={seriesType:"treemap",reset:function(r,e,t,a){var n=t.getWidth(),i=t.getHeight(),o=r.option,s=Jt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(RA(s.width,l[0]),n),f=H(RA(s.height,l[1]),i),h=a&&a.type,c=bl(a,["treemapZoomToNode","treemapRootToNode"],r),p="treemapRender"===h||"treemapMove"===h?a.rootRect:null,d=r.getViewRoot(),g=yA(d);if("treemapMove"!==h){var y="treemapZoomToNode"===h?function LH(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,h=s.children,v=0,c=h.length;v<c;v++)f+=h[v].getValue();var p=i.getValue();if(0===p)return o;u*=f/p;var d=s.getModel(),g=d.get(EA);(u+=4*g*g+(3*g+Math.max(g,VA(d)))*Math.pow(u,.5))>gc&&(u=gc),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,n*m]}(r,c,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),kA(d,_,!1,0),S=d.getLayout(),zg(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout(function IH(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}(s,p,c),!0),r.setLayoutInfo(s),NA(b,new ut(-s.x,-s.y,n,i),g,d,0)}};function kA(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(EA),u=s.get(SH)/2,f=VA(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0);var p=(n=Dl(n-2*v,0))*(i=Dl(i-v-c,0)),d=function TH(r,e,t,a,n,i){var o=r.children||[],s=a.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=a.leafDepth&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=Lt(o,function(c){return!c.isRemoved()}),function AH(r,e){e&&r.sort(function(t,a){var n="asc"===e?t.getValue()-a.getValue():a.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n})}(o,s);var u=function MH(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var s,o=r.get("visualDimension");return e&&e.length?"value"===o&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===t&&s.reverse()):(s=[1/0,-1/0],zg(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})):s=[NaN,NaN],{sum:a,dataExtent:s}}(e,o,s);if(0===u.sum)return r.viewChildren=[];if(u.sum=function CH(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n["asc"===a?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n.splice("asc"===a?0:s,o-s),t}(e,t,u.sum,s,o),0===u.sum)return r.viewChildren=[];for(var f=0,h=o.length;f<h;f++){var v=o[f].getValue()/u.sum*t;o[f].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}(r,s,p,e,t,a);if(d.length){var g={x:v,y:c,width:n,height:i},y=xh(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S<b;){var x=d[S];_.push(x),_.area+=x.getLayout().area;var w=DH(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,OA(_,y,g,u,!1),y=xh(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&OA(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");null!=T&&p<T&&(t=!0)}for(S=0,b=d.length;S<b;S++)kA(d[S],e,t,a+1)}}}function DH(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)(o=r[i].getLayout().area)&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Dl(u*a/l,l/(u*n)):1/0}function OA(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var h=0,v=r.length;h<v;h++){var c=r[h],p={},d=f?c.getLayout().area/f:0,g=p[l[o]]=Dl(f-2*a,0),y=t[s[i]]+t[l[i]]-u,m=h===v-1||y<d?y:d,_=p[l[i]]=Dl(m-2*a,0);p[s[o]]=t[s[o]]+xh(a,g/2),p[s[i]]=u+xh(a,_/2),u+=m,c.setLayout(p,!0)}t[s[o]]+=f,t[l[o]]-=f}function NA(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new ut(e.x-i.x,e.y-i.y,e.width,e.height);zg(r.viewChildren||[],function(u){NA(u,l,t,a,n+1)})}}function VA(r){return r.get(xH)?r.get(bH):0}function RH(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),i=t.getGraph().data,o=a.mapArray(a.getName);i.filterSelf(function(s){var u=i.getItemModel(s).getShallow("category");if(null!=u){wt(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function EH(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],h=0;h<f.length;h++){var v=l.getShallow(f[h],!0);null!=v&&a.setItemVisual(o,f[h],v)}}),a.count()&&n.each(function(o){var l=n.getItemModel(o).getShallow("category");if(null!=l){U(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style");V(n.ensureUniqueItemVisual(o,"style"),u);for(var h=["symbol","symbolSize","symbolKeepAspect"],v=0;v<h.length;v++)n.setItemVisual(o,h[v],a.getItemVisual(l,h[v]))}})})}function bh(r){return r instanceof Array||(r=[r,r]),r}function kH(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=bh(e.get("edgeSymbol")),i=bh(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=bh(s.getShallow("symbol",!0)),f=bh(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),v=a.ensureUniqueItemVisual(o,"style");switch(V(v,h),v.stroke){case"source":var c=l.node1.getVisual("style");v.stroke=c&&c.fill;break;case"target":c=l.node2.getVisual("style"),v.stroke=c&&c.fill}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var wh=function(r){return r.get("autoCurveness")||null},BA=function(r,e){var t=wh(r),a=20,n=[];if(wt(t))a=t;else if(z(t))return void(r.__curvenessList=t);e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Ll=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join("--\x3e")},zA=function(r){var e=r.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},Fg=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function Hg(r,e,t,a){var n=wh(e),i=z(n);if(!n)return null;var o=function(r,e){var t=Ll(r.node1,r.node2,e);return e.__edgeMap[t]}(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=function(r,e){return Fg(Ll(r.node1,r.node2,e),e)+Fg(Ll(r.node2,r.node1,e),e)}(r,e);BA(e,u),r.lineStyle=r.lineStyle||{};var f=Ll(r.node1,r.node2,e),h=e.__curvenessList,v=i||u%2?0:1;if(o.isForward)return h[v+s];var c=zA(f),p=Fg(c,e),d=h[s+p+v];return a?i?n&&0===n[0]?(p+v)%2?d:-d:((p%2?0:1)+v)%2?d:-d:(p+v)%2?d:-d:h[s+p+v]}function GA(r){var e=r.coordinateSystem;if(!e||"view"===e.type){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),Wg(t,r)}}function Wg(r,e){r.eachEdge(function(t,a){var n=Rr(t.getModel().get(["lineStyle","curveness"]),-Hg(t,e,a,!0),0),i=Er(t.node1.getLayout()),o=Er(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function zH(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];A(n.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var h=i.get(o[f],s);isNaN(h)||(u=!0),l.push(h)}i.setItemLayout(s,u?n.dataToPoint(l):[NaN,NaN])}Wg(i.graph,t)}else(!a||"none"===a)&&GA(t)})}function Il(r){var e=r.coordinateSystem;if("view"!==e.type)return 1;var t=r.option.nodeScaleRatio,a=e.scaleX;return((e.getZoom()-1)*t+1)/a}function Pl(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var FA=Math.PI,Ug=[];function Yg(r,e,t,a){var n=r.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),h){if(t){var v=n.pointToData(a),d=[v[0]-l,v[1]-u];vn(d,d),Ho(d,d,f),t.setLayout([l+d[0],u+d[1]],!0),HA(t,r.get(["circular","rotateLabel"]),l,u)}GH[e](r,s,o,f,l,u,h),s.eachEdge(function(y,m){var x,_=Rr(y.getModel().get(["lineStyle","curveness"]),Hg(y,r,m),0),S=Er(y.node1.getLayout()),b=Er(y.node2.getLayout());+_&&(x=[l*(_*=3)+(S[0]+b[0])/2*(1-_),u*_+(S[1]+b[1])/2*(1-_)]),y.setLayout([S,b,x])})}}}var GH={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=2*Math.PI/(l||o);e.eachNode(function(f){var h=f.getValue("value"),v=u*(l?h:1)/2;s+=v,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=v})},symbolSize:function(r,e,t,a,n,i,o){var s=0;Ug.length=o;var l=Il(r);e.eachNode(function(h){var v=Pl(h);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var c=Math.asin(v/2/a);isNaN(c)&&(c=FA/2),Ug[h.dataIndex]=c,s+=2*c});var u=(2*FA-s)/o/2,f=0;e.eachNode(function(h){var v=u+Ug[h.dataIndex];f+=v,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=v})}};function HA(r,e,t,a){var n=r.getGraphicEl();if(n){var o=r.getModel().get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=2*Math.PI+u);var f=l[0]<t;f&&(u-=Math.PI);var h=f?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var v=s.ensureState("emphasis");V(v.textConfig||(v.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function FH(r){r.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&Yg(e,"symbolSize")})}var xo=$l;function WH(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):l&&"none"!==l?"circular"===l&&Yg(e,"value"):GA(e);var u=i.getDataExtent("value"),f=o.getDataExtent("value"),h=s.get("repulsion"),v=s.get("edgeLength"),c=z(h)?h:[h,h],p=z(v)?v:[v,v];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=It(_,u,c);return isNaN(x)&&(x=(c[0]+c[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),x=It(_,f,p);isNaN(x)&&(x=(p[0]+p[1])/2);var w=b.getModel(),T=Rr(b.getModel().get(["lineStyle","curveness"]),-Hg(b,e,S,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=function HH(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=null==t.gravity?.1:t.gravity,f=0;f<a.length;f++){var h=a[f];h.p||(h.p=Ta(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Er(h.p),h.edges=null}var p,d,v=null==t.friction?.6:t.friction,c=v;return{warmUp:function(){c=.8*v},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,n);for(var y=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){Ca(y,(x=S.n2).p,(b=S.n1).p);var w=Fo(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),vn(y,y),!b.fixed&&xo(b.p,b.p,y,T*w*c),!x.fixed&&xo(x.p,x.p,y,-(1-T)*w*c)}}for(_=0;_<m;_++)(C=a[_]).fixed||(Ca(y,l,C.p),xo(C.p,C.p,y,u*c));for(_=0;_<m;_++)for(var b=a[_],M=_+1;M<m;M++){var x;Ca(y,(x=a[M]).p,b.p),0===(w=Fo(y))&&(u0(y,Math.random()-.5,Math.random()-.5),w=1);var D=(b.rep+x.rep)/w/w;!b.fixed&&xo(b.pp,b.pp,y,D),!x.fixed&&xo(x.pp,x.pp,y,-D)}var L=[];for(_=0;_<m;_++){var C;(C=a[_]).fixed||(Ca(L,C.p,C.pp),xo(C.p,C.p,L,c),ge(C.pp,C.p))}var I=(c*=.992)<.01;d&&d(a,n,I),g&&g(I)}}}(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&ge(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||n.getNodeByIndex(x).setLayout(_[x].p),a[i.getId(x)]=_[x].p;for(x=0,w=S.length;x<w;x++){var T=S[x],C=n.getEdgeByIndex(x),M=T.n1.p,D=T.n2.p,L=C.getLayout();(L=L?L.slice():[])[0]=L[0]||[],L[1]=L[1]||[],ge(L[0],M),ge(L[1],D),+T.curveness&&(L[2]=[(M[0]+D[0])/2-(M[1]-D[1])*T.curveness,(M[1]+D[1])/2-(D[0]-M[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function YH(r,e){var t=[];return r.eachSeriesByType("graph",function(a){var n=a.get("coordinateSystem");if(!n||"view"===n){var i=a.getData(),s=[],l=[];Eu(i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s,l),l[0]-s[0]==0&&(l[0]+=1,s[0]-=1),l[1]-s[1]==0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=function UH(r,e,t){return Jt(V(r.getBoxLayoutParams(),{aspect:t}),{width:e.getWidth(),height:e.getHeight()})}(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var h=l[0]-s[0],v=l[1]-s[1],c=f.width,p=f.height,d=a.coordinateSystem=new Sl;d.zoomLimit=a.get("scaleLimit"),d.setBoundingRect(s[0],s[1],h,v),d.setViewRect(f.x,f.y,c,p),d.setCenter(a.get("center"),e),d.setZoom(a.get("zoom")),t.push(d)}}),t}var WA=ie.prototype,Zg=zs.prototype,UA=function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function Xg(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}!function(r){O(function e(){return null!==r&&r.apply(this,arguments)||this},r)}(UA);var ZH=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return O(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UA},e.prototype.buildPath=function(t,a){Xg(a)?WA.buildPath.call(this,t,a):Zg.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return Xg(this.shape)?WA.pointAt.call(this,t):Zg.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=Xg(a)?[a.x2-a.x1,a.y2-a.y1]:Zg.tangentAt.call(this,t);return vn(n,n)},e}(pt);const XH=ZH;var qg=["fromSymbol","toSymbol"];function YA(r){return"_"+r+"Type"}function ZA(r,e,t){var a=e.getItemVisual(t,r);if(a&&"none"!==a){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Xs(n),u=so(o||0,l),f=Kt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function Kg(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var KH=function(r){function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return O(e,r),e.prototype._createLine=function(t,a,n){var i=t.hostModel,s=function qH(r){var e=new XH({name:"line",subPixelOptimize:!0});return Kg(e.shape,r),e}(t.getItemLayout(a));s.shape.percent=0,zt(s,{shape:{percent:1}},i,a),this.add(s),A(qg,function(l){var u=ZA(l,t,a);this.add(u),this[YA(l)]=t.getItemVisual(a,l)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};Kg(l.shape,s),Ct(o,l,i,a),A(qg,function(u){var f=t.getItemVisual(a,u),h=YA(u);if(this[h]!==f){this.remove(this.childOfName(u));var v=ZA(u,t,a);this.add(v)}this[h]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,v=n&&n.focus,c=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(a),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),h=d.get("disabled"),v=d.get("focus"),c=d.get("blurScope"),f=ae(p)}var g=t.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(qg,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Ae.length;T++){var C=Ae[T],M=o.getState(C);if(M){var D=M.style||{},L=w.ensureState(C),I=L.style||(L.style={});null!=D.stroke&&(I[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),null!=D.opacity&&(I.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);ve(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(null==m?t.getName(a):isFinite(m)?Wt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Ut(this,v,c,h)},e.prototype.highlight=function(){ua(this)},e.prototype.downplay=function(){fa(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");Kg(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(a||n||i&&!i.ignore){for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(this.__dirty||l.__dirty){var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),v=Ca([],h,f);if(vn(v,v),a&&(a.setPosition(f),c(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(h),c(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var T=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=v[0]*y+h[0],i.y=v[1]*m+h[1],p=v[0]>.8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+h[0],i.y=h[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function c(M,D){var L=M.__specifiedRotation;if(null==L){var I=l.tangentAt(D);M.attr("rotation",(1===D?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else M.attr("rotation",L)}},e}(rt);const jg=KH;var jH=function(){function r(e){this.group=new rt,this._LineCtor=e||jg}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=XA(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=XA(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!function QH(r){return r.animators&&r.animators.length>0}(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=e.start;n<e.end;n++)if(Qg(t.getItemLayout(n))){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Ya(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){if(Qg(e.getItemLayout(t))){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);Qg(t.getItemLayout(n))?(o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)):this.group.remove(o)},r}();function XA(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ae(e)}}function qA(r){return isNaN(r[0])||isNaN(r[1])}function Qg(r){return r&&!qA(r[0])&&!qA(r[1])}const Jg=jH;var $g=[],ty=[],ey=[],bo=le,ry=Aa,KA=Math.abs;function jA(r,e,t){for(var s,a=r[0],n=r[1],i=r[2],o=1/0,l=t*t,u=.1,f=.1;f<=.9;f+=.1)$g[0]=bo(a[0],n[0],i[0],f),$g[1]=bo(a[1],n[1],i[1],f),(h=KA(ry($g,e)-l))<o&&(o=h,s=f);for(var v=0;v<32;v++){var c=s+u;ty[0]=bo(a[0],n[0],i[0],s),ty[1]=bo(a[1],n[1],i[1],s),ey[0]=bo(a[0],n[0],i[0],c),ey[1]=bo(a[1],n[1],i[1],c);var h=ry(ty,e)-l;if(KA(h)<.01)break;var p=ry(ey,e)-l;u/=2,h<0?p>=0?s+=u:s-=u:p>=0?s-=u:s+=u}return s}function ay(r,e){var t=[],a=jo,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[Er(u[0]),Er(u[1])],u[2]&&u.__original.push(Er(u[2])));var v=u.__original;if(null!=u[2]){if(ge(n[0],v[0]),ge(n[1],v[2]),ge(n[2],v[1]),f&&"none"!==f){var c=Pl(s.node1),p=jA(n,v[0],c*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}h&&"none"!==h&&(c=Pl(s.node2),p=jA(n,v[1],c*e),a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]),ge(u[0],n[0]),ge(u[1],n[2]),ge(u[2],n[1])}else ge(i[0],v[0]),ge(i[1],v[1]),Ca(o,i[1],i[0]),vn(o,o),f&&"none"!==f&&(c=Pl(s.node1),$l(i[0],i[0],o,c*e)),h&&"none"!==h&&(c=Pl(s.node2),$l(i[1],i[1],o,-c*e)),ge(u[0],i[0]),ge(u[1],i[1])})}function QA(r){return"view"===r.type}var JH=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){var n=new vl,i=new Jg,o=this.group;this._controller=new ml(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QA(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Ct(u,f,t)}ay(t.getGraph(),Il(t));var h=t.getData();s.updateData(h);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");h.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(S),h.setItemLayout(S,[b.x,b.y]);break;case"circular":h.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),Yg(t,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(S,[b.x,b.y]),Wg(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){c&&c.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor")),"adjacency"===x.get(["emphasis","focus"])&&(nt(b).focus=_.getAdjacentDataIndices())}}),h.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||"adjacency"===b&&(nt(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(_){HA(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a){var n=this;!function i(){t.step(function(o){n.updateLayout(n._model),(n._layouting=!o)&&(a?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,a,n){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,h){var v=l.getBoundingRect();return v.applyTransform(l.transform),v.contain(f,h)&&!hh(u,n,t)}),QA(t.coordinateSystem)?(o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){mg(s,u.dx,u.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){_g(s,u.scale,u.originX,u.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),ay(t.getGraph(),Il(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):o.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Il(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){ay(t.getGraph(),Il(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Et);const $H=JH;function wo(r){return"_EC_"+r}var t4=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){var a=this._nodesMap;if(!a[wo(e=null==e?""+t:""+e)]){var n=new pi(e,t);return n.hostGraph=this,this.nodes.push(n),a[wo(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[wo(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(wt(e)&&(e=this.nodes[e]),wt(t)&&(t=this.nodes[t]),e instanceof pi||(e=n[wo(e)]),t instanceof pi||(t=n[wo(t)]),e&&t){var o=e.id+"-"+t.id,s=new JA(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof pi&&(e=e.id),t instanceof pi&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof pi||(t=this._nodesMap[wo(t)]),t){for(var i="out"===a?"outEdges":"in"===a?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;){var l=s.shift(),u=l[i];for(o=0;o<u.length;o++){var f=u[o],h=f.node1===l?f.node2:f.node1;if(!h.__visited){if(e.call(n,h,l))return;s.push(h),h.__visited=!0}}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;for(t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0}),i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),pi=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r}(),JA=function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r}();function $A(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Zt(pi,$A("hostGraph","data")),Zt(JA,$A("hostGraph","edgeData"));const e4=t4;function tM(r,e,t,a,n){for(var i=new e4(a),o=0;o<r.length;o++)i.addNode(ee(r[o].id,r[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var f=e[o],h=f.source,v=f.target;i.addEdge(h,v,u)&&(l.push(f),s.push(ee(te(f.id,null),h+" > "+v)),u++)}var p,c=t.get("coordinateSystem");if("cartesian2d"===c||"polar"===c)p=Zr(r,t);else{var d=Ki.get(c),g=d&&d.dimensions||[];ht(g,"value")<0&&g.concat(["value"]);var y=ho(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;(p=new xe(y,t)).initData(r)}var m=new xe(["value"],t);return m.initData(l,s),n&&n(p,m),gA({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var r4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new dl(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),bn(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){!function VH(r){!wh(r)||(r.__curvenessList=[],r.__edgeMap={},BA(r))}(this);var s=tM(i,n,this,!0,function l(u,f){u.wrapMethod("getItemModel",function(p){var y=o._categoriesModels[p.getShallow("category")];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var h=Rt.prototype.getModel;function v(p,d){var g=h.call(this,p,d);return g.resolveParentPath=c,g}function c(p){if(p&&("label"===p[0]||"label"===p[1])){var d=p.slice();return"label"===p[0]?d[0]="edgeLabel":"label"===p[1]&&(d[1]="edgeLabel"),d}return p}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p})});return A(s.edges,function(u){!function BH(r,e,t,a){if(wh(t)){var n=Ll(r,e,t),i=t.__edgeMap,o=i[zA(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}(u.node1,u.node2,this,u.dataIndex)},this),s.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),ne("nameValue",{name:f.join(" > "),value:o.value,noValue:null==o.value})}return ix({series:this,dataIndex:t,multipleSeries:a})},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(n){return null!=n.value?n:V({value:0},n)}),a=new xe(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Nt);const a4=r4;var n4={type:"graphRoam",event:"graphRoam",update:"none"},o4=function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},s4=function(r){function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return O(e,r),e.prototype.getDefaultShape=function(){return new o4},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(pt);const l4=s4;function Th(r,e){var t=null==r?"":r+"";return e&&(U(e)?t=e.replace("{value}",t):j(e)&&(t=e(r))),t}var f4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=function u4(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n);return{cx:H(t[0],e.getWidth()),cy:H(t[1],e.getHeight()),r:H(r.get("radius"),i/2)}}(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap")?nh:Me,p=h.get("show"),d=h.getModel("lineStyle"),g=d.get("width"),y=[u,f];G_(y,!l);for(var m=(f=y[1])-(u=y[0]),_=u,S=[],b=0;p&&b<i.length;b++){var w=new c({shape:{startAngle:_,endAngle:f=u+m*Math.min(Math.max(i[b][0],0),1),cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=C&&(0===M?0:i[M-1][0])<C)return i[M][1];return i[M-1][1]};this._renderTicks(t,a,n,T,o,u,f,l,g),this._renderTitleAndDetail(t,a,n,T,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,f){for(var P,R,h=this.group,v=o.cx,c=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=m.get("splitNumber"),x=H(y.get("length"),p),w=H(m.get("length"),p),T=s,C=(l-s)/S,M=C/b,D=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),E=0;E<=S;E++){if(P=Math.cos(T),R=Math.sin(T),y.get("show")){var k=new ie({shape:{x1:P*(p-(N=I?I+f:f))+v,y1:R*(p-N)+c,x2:P*(p-x-N)+v,y2:R*(p-x-N)+c},style:D,silent:!0});"auto"===D.stroke&&k.setStyle({stroke:i(E/S)}),h.add(k)}if(_.get("show")){var N=_.get("distance")+I,B=Th(Wt(E/S*(g-d)+d),_.get("formatter")),F=i(E/S),W=P*(p-x-N)+v,X=R*(p-x-N)+c,$=_.get("rotate"),tt=0;"radial"===$?(tt=-T+2*Math.PI)>Math.PI/2&&(tt+=Math.PI):"tangential"===$?tt=-T-Math.PI/2:wt($)&&(tt=$*Math.PI/180),h.add(new xt(0===tt?{style:Ot(_,{text:B,x:W,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:F}),silent:!0}:{style:Ot(_,{text:B,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:tt}))}if(m.get("show")&&E!==S){N=(N=m.get("distance"))?N+f:f;for(var dt=0;dt<=b;dt++){P=Math.cos(T),R=Math.sin(T);var Mt=new ie({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});"auto"===L.stroke&&Mt.setStyle({stroke:i((E+dt/b)/S)}),h.add(Mt),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(M,D){var W,I=m.getItemModel(M).getModel("pointer"),P=H(I.get("width"),o.r),R=H(I.get("length"),o.r),E=t.get(["pointer","icon"]),N=I.get("offsetCenter"),k=H(N[0],o.r),B=H(N[1],o.r),F=I.get("keepAspect");return(W=E?Kt(E,k-P/2,B-R,P,R,null,F):new l4({shape:{angle:-Math.PI/2,width:P,r:R,x:k,y:B}})).rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var I=g.get("roundCap")?nh:Me,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),k=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P?o.r-R:o.r-(M+1)*R,r:P?o.r:o.r-M*R}});return P&&(k.z2=b-m.get(_,M)%b),k}(y||d)&&(m.diff(v).add(function(M){var D=m.get(_,M);if(d){var L=T(M,s);zt(L,{rotation:-((isNaN(+D)?w[0]:It(D,x,w,!0))+Math.PI/2)},t),h.add(L),m.setItemGraphicEl(M,L)}if(y){var I=C(M,s),P=g.get("clip");zt(I,{shape:{endAngle:It(D,x,w,P)}},t),h.add(I),Fc(t.seriesIndex,m.dataType,M,I),p[M]=I}}).update(function(M,D){var L=m.get(_,M);if(d){var I=v.getItemGraphicEl(D),P=I?I.rotation:s,R=T(M,P);R.rotation=P,Ct(R,{rotation:-((isNaN(+L)?w[0]:It(L,x,w,!0))+Math.PI/2)},t),h.add(R),m.setItemGraphicEl(M,R)}if(y){var E=c[D],k=C(M,E?E.shape.endAngle:s),B=g.get("clip");Ct(k,{shape:{endAngle:It(L,x,w,B)}},t),h.add(k),Fc(t.seriesIndex,m.dataType,M,k),p[M]=k}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");if(d){var E=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),k=N.fill;if(E instanceof ue){var B=E.style;E.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},N))}else E.useStyle(N),"pointer"!==E.type&&E.setColor(k);E.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===E.style.fill&&E.setStyle("fill",i(It(m.get(_,M),x,[0,1],!0))),E.z2EmphasisLift=0,he(E,D),Ut(E,I,P,R)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,he(F,D),Ut(F,I,P,R)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor");if(n.get("show")){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=Kt(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),h=+t.get("max"),v=new rt,c=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new xt({silent:!0}),p[y]=new xt({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new rt,b=i(It(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r);(M=c[y]).attr({z2:g?0:2,style:Ot(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var L=D.get("offsetCenter"),I=o.cx+H(L[0],o.r),P=o.cy+H(L[1],o.r),R=H(D.get("width"),o.r),E=H(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=p[y],k=D.get("formatter");M.attr({z2:g?0:2,style:Ot(D,{x:I,y:P,text:Th(_,k),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),kS(M,{normal:D},_,function(F){return Th(F,k)}),d&&OS(M,y,l,t,{getFormattedLabel:function(F,W,X,$,tt,dt){return Th(dt?dt.interpolatedValue:_,k)}}),S.add(M)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Et);const h4=f4;var v4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return O(e,r),e.prototype.getInitialData=function(t,a){return mo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Nt);const c4=v4;var d4=["itemStyle","opacity"],g4=function(r){function e(t,a){var n=r.call(this)||this,i=n,o=new Le,s=new xt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return O(e,r),e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(d4);f=f??1,n||br(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,zt(i,{style:{opacity:f}},o,a)):Ct(i,{style:{opacity:f},shape:{points:l.points}},o,a),he(i,s),this._updateLabel(t,a),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),f=t.getItemLayout(a).label,h=t.getItemVisual(a,"style"),v=h.fill;ve(o,ae(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new lt(c[0][0],c[0][1]):null},Ct(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),zd(n,Gd(l),{stroke:v})},e}(De),y4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new g4(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){bs(o.getItemGraphicEl(l),t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Et);const m4=y4;var _4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return mo(this,{coordDimensions:["value"],encodeDefaulter:it(gp,this)})},e.prototype._defaultLabelLine=function(t){bn(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Nt);const S4=_4;function T4(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=function x4(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),s=t.get("orient"),l=o.width,u=o.height,f=function b4(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i="ascending"===e,o=0,s=r.count();o<s;o++)n[o]=o;return j(e)?n.sort(e):"none"!==e&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}(a,i),h=o.x,v=o.y,c="horizontal"===s?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],p=a.getDataExtent(n),d=t.get("min"),g=t.get("max");null==d&&(d=Math.min(p[0],0)),null==g&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),S=(("horizontal"===s?l:u)-m*(a.count()-1))/a.count(),b=function(P,R){if("horizontal"===s){var N=It(a.get(n,P)||0,[d,g],c,!0),k=void 0;switch(y){case"top":k=v;break;case"center":k=v+(u-N)/2;break;case"bottom":k=v+(u-N)}return[[R,k],[R,k+N]]}var W,F=It(a.get(n,P)||0,[d,g],c,!0);switch(y){case"left":W=h;break;case"center":W=h+(l-F)/2;break;case"right":W=h+l-F}return[[W,R],[W+F,R]]};"ascending"===i&&(S=-S,m=-m,"horizontal"===s?h+=l:v+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=a.getItemModel(w);if("horizontal"===s){var M=C.get(["itemStyle","width"]);null==M?M=S:(M=H(M,l),"ascending"===i&&(M=-M));var D=b(w,h),L=b(T,h+M);h+=M+m,a.setItemLayout(w,{points:D.concat(L.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);null==I?I=S:(I=H(I,u),"ascending"===i&&(I=-I)),D=b(w,v),L=b(T,v+I),v+=I+m,a.setItemLayout(w,{points:D.concat(L.slice().reverse())})}}!function w4(r){var t=r.hostModel.get("orient");r.each(function(a){var h,v,c,p,n=r.getItemModel(a),o=n.getModel("label").get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f="inner"===o||"inside"===o||"center"===o||"insideLeft"===o||"insideRight"===o;if(f)"insideLeft"===o?(v=(u[0][0]+u[3][0])/2+5,c=(u[0][1]+u[3][1])/2,h="left"):"insideRight"===o?(v=(u[1][0]+u[2][0])/2-5,c=(u[1][1]+u[2][1])/2,h="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,c=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),p=[[v,c],[v,c]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");"left"===o?(g=(u[3][1]+u[0][1])/2,v=(y=(d=(u[3][0]+u[0][0])/2)-_)-5,h="right"):"right"===o?(g=(u[1][1]+u[2][1])/2,v=(y=(d=(u[1][0]+u[2][0])/2)+_)+5,h="left"):"top"===o?(d=(u[3][0]+u[0][0])/2,c=(m=(g=(u[3][1]+u[0][1])/2)-_)-5,h="center"):"bottom"===o?(d=(u[1][0]+u[2][0])/2,c=(m=(g=(u[1][1]+u[2][1])/2)+_)+5,h="center"):"rightTop"===o?(d="horizontal"===t?u[3][0]:u[1][0],g="horizontal"===t?u[3][1]:u[1][1],"horizontal"===t?(c=(m=g-_)-5,h="center"):(v=(y=d+_)+5,h="top")):"rightBottom"===o?(d=u[2][0],g=u[2][1],"horizontal"===t?(c=(m=g+_)+5,h="center"):(v=(y=d+_)+5,h="bottom")):"leftTop"===o?(d=u[0][0],g="horizontal"===t?u[0][1]:u[1][1],"horizontal"===t?(c=(m=g-_)-5,h="center"):(v=(y=d-_)-5,h="right")):"leftBottom"===o?(d="horizontal"===t?u[1][0]:u[3][0],g="horizontal"===t?u[1][1]:u[2][1],"horizontal"===t?(c=(m=g+_)+5,h="center"):(v=(y=d-_)-5,h="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,"horizontal"===t?(c=(m=g+_)+5,h="center"):(v=(y=d+_)+5,h="left")),"horizontal"===t?v=y=d:c=m=g,p=[[d,g],[y,m]]}l.label={linePoints:p,x:v,y:c,verticalAlign:"middle",textAlign:h,inside:f}})}(a)})}var M4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new rt,t._initialized=!1,t}return O(e,r),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,h=aM(t);if(s.diff(l).add(function v(g){ny(rM(s,o,g,f,u),s,g,h)}).update(function c(g,y){var m=l.getItemGraphicEl(y),_=eM(s,g,f,u);s.setItemGraphicEl(g,m),Ct(m,{shape:{points:_}},t,g),br(m),ny(m,s,g,h)}).remove(function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}).execute(),!this._initialized){this._initialized=!0;var d=function D4(r,e,t){var a=r.model,n=r.getRect(),i=new St({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o="horizontal"===a.get("layout")?"width":"height";return i.setShape(o,0),zt(i,{shape:{width:n.width,height:n.height}},e,t),i}(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=aM(a),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var h=rM(i,this._dataGroup,f,s,o);h.incremental=!0,ny(h,i,f,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Et);function eM(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);L4(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function rM(r,e,t,a,n){var i=eM(r,t,a,n),o=new Le({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function aM(r){var e=r.get("smooth",!0);return!0===e&&(e=.3),Ti(e=Vr(e))&&(e=0),{smooth:e}}function ny(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");he(r,n,"lineStyle"),Ut(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function L4(r,e){return"category"===e?null==r:null==r||isNaN(r)}const I4=M4;var P4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:Y(R4,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Nt);function R4(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return A(e.dimensions,function(a){var n=function E4(r){return+r.replace("dim","")}(a);t[a]=n}),t}}const k4=P4;var O4=["lineStyle","opacity"],N4={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if("normal"===o&&i.hasItemOption){var u=i.getItemModel(s).get(O4,!0);null!=u&&(l=u)}i.ensureUniqueItemVisual(s,"style").opacity=l},n.start,n.end)}}}};const V4=N4;function B4(r){(function z4(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(r.parallel=[{}])}})(r),function G4(r){A(Pt(r.parallelAxis),function(t){if(J(t)){var a=t.parallelIndex||0,n=Pt(r.parallel)[a];n&&n.parallelAxisDefault&&ot(t,n.parallelAxisDefault,!1)}})}(r)}var H4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},A(W4,function(i,o){n.getZr().on(o,this._handlers[o]=Y(i,this))},this)),io(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){Ws(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(V({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Gt),W4={mousedown:function(r){iy(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(iy(this,"click")&&e){var t=[r.offsetX,r.offsetY];if(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!this._mouseDownPoint&&iy(this,"mousemove")){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===a?null:{duration:0}})}}};function iy(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const U4=H4;var Y4=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&ot(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return null!=n&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[];A(Lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this),function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(_t);const Z4=Y4;var X4=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return O(e,r),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(lr);const q4=X4;function di(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(null!=n&&(n=To(n,[0,o])),null!=i&&(i=Math.max(i,n??0)),"all"===a){var s=Math.abs(e[1]-e[0]);s=To(s,[0,o]),n=i=To(s,[n,i]),a=0}e[0]=To(e[0],t),e[1]=To(e[1],t);var l=oy(e,a);e[a]+=r;var h,u=n||0,f=t.slice();return l.sign<0?f[0]+=u:f[1]-=u,e[a]=To(e[a],f),h=oy(e,a),null!=n&&(h.sign!==l.sign||h.span<n)&&(e[1-a]=e[a]+l.sign*n),h=oy(e,a),null!=i&&h.span>i&&(e[1-a]=e[a]+h.sign*i),e}function oy(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function To(r,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,r))}var sy=A,nM=Math.min,iM=Math.max,oM=Math.floor,K4=Math.ceil,sM=Wt,j4=Math.PI,Q4=function(){function r(e,t,a){this.type="parallel",this._axesMap=q(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.parallelAxisIndex;sy(e.dimensions,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new q4(o,al(u),[0,0],u.get("type"),l));f.onBand="category"===f.type&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();sy(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),$n(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=Jt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var p,e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o="horizontal"===i?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Ch(e.get("axisExpandWidth"),l),h=Ch(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow");c?(p=Ch(c[1]-c[0],l),c[1]=c[0]+p):(p=Ch(f*(h-1),l),(c=[f*(e.get("axisExpandCenter")||oM(u/2))-p/2])[1]=c[0]+p);var g=(s-p)/(u-h);g<3&&(g=0);var y=[oM(sM(c[0]/f,1))+1,K4(sM(c[1]/f,1))-1];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:g/f*c[0]}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),sy(a,function(o,s){var l=(n.axisExpandable?$4:J4)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},h=[u[i].x+e.x,u[i].y+e.y],v={horizontal:j4/2,vertical:0}[i],c=[1,0,0,1,0,0];Ma(c,c,v),gr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){null==a&&(a=0),null==n&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var h=void 0;if(u){h="active";for(var v=e.getValues(s,f),c=0,p=o.length;c<p;c++)if("inactive"===l[c].getActiveState(v[c])){h="inactive";break}}else h="normal";t(h,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)"normal"!==t.get(e[n]).model.getActiveState()&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){return Ar([e,0],this._axesLayout[t].transform)},r.prototype.getAxisLayout=function(e){return et(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var l,s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,u="slide",f=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=null!=h[0];if(f)v&&f&&s<i*h[0]?(u="jump",l=s-i*h[2]):v&&f&&s>i*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),(l*=t.axisExpandWidth/f)?di(l,n,o,"all"):u="none";else{var c=n[1]-n[0];(n=[iM(0,o[1]*s/c-c/2)])[1]=nM(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Ch(r,e){return nM(iM(r,e[0]),e[1])}function J4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function $4(r,e){var s,f,a=e.axisExpandWidth,i=e.axisCollapseWidth,o=e.winInnerIndices,l=i,u=!1;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=e.layoutLength-(e.axisCount-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const tW=Q4;var rW={create:function eW(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new tW(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if("parallel"===a.get("coordinateSystem")){var n=a.getReferringComponents("parallel",Qt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const aW=rW;var lM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return O(e,r),e.prototype.getAreaSelectStyle=function(){return Cn([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=et(t);if(a)for(var n=a.length-1;n>=0;n--)We(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===a.length){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e}(_t);Zt(lM,co);const uM=lM;var gi=!0,Rl=Math.min,Co=Math.max,nW=Math.pow,fM="globalPan",lW={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},uW={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},hM={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},fW=0,hW=function(r){function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new rt,a._uid="brushController_"+fW++,A(mW,function(n,i){this._handlers[i]=Y(n,this)},a),a}return O(e,r),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||function SF(r,e,t){gg(r)[e]=t}(a,fM,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=ot(et(hM),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;(function xF(r,e,t){var a=gg(r);a[e]===t&&(a[e]=null)})(t,fM,this._uid),A(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};A(t,function(n){a[n.panelId]=et(n)})}else this._panels=null;return this},e.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=G(t,function(v){return ot(et(hM),v,!0)});var n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new ca(n,t,function u(v,c){return l(v.__brushOption,c)},l).add(f).update(f).remove(function h(v){n[v]!==s&&o.group.remove(n[v])}).execute(),this;function l(v,c){return(null!=v.id?v.id:"\0-brush-index-"+c)+"-"+v.brushType}function f(v,c){var p=t[v];if(null!=c&&n[c]===s)i[v]=n[c];else{var d=i[v]=null!=c?(n[c].__brushOption=p,n[c]):cM(o,vM(o,p));ly(o,d)}}},e.prototype.unmount=function(){return this.enableBrush(!1),hy(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(je);function vM(r,e){var t=Ah[e.brushType].createCover(r,e);return t.__brushOption=e,dM(t,e),r.group.add(t),t}function cM(r,e){var t=uy(e);return t.endCreating&&(t.endCreating(r,e),dM(e,e.__brushOption)),e}function pM(r,e){var t=e.__brushOption;uy(e).updateCoverShape(r,e,t.range,t)}function dM(r,e){var t=e.z;null==t&&(t=1e4),r.traverse(function(a){a.z=t,a.z2=t})}function ly(r,e){uy(e).updateCommon(r,e),pM(r,e)}function uy(r){return Ah[r.__brushOption.brushType]}function fy(r,e,t){var a=r._panels;if(!a)return gi;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function gM(r,e){var t=r._panels;if(!t)return gi;var a=e.__brushOption.panelId;return null!=a?t[a]:gi}function hy(r){var e=r._covers,t=e.length;return A(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function yi(r,e){var t=G(r._covers,function(a){var n=a.__brushOption,i=et(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function yM(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function mM(r,e,t,a){var n=new rt;return n.add(new St({name:"main",style:cy(t),silent:!0,draggable:!0,cursor:"move",drift:it(xM,r,e,n,["n","s","w","e"]),ondragend:it(yi,e,{isEnd:!0})})),A(a,function(i){n.add(new St({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(xM,r,e,n,i),ondragend:it(yi,e,{isEnd:!0})}))}),n}function _M(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Co(n,6),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],h=t[1][1],v=f-i+n/2,c=h-i+n/2,p=f-o,d=h-s,g=p+n,y=d+n;ma(r,e,"main",o,s,p,d),a.transformable&&(ma(r,e,"w",l,u,i,y),ma(r,e,"e",v,u,i,y),ma(r,e,"n",l,u,g,i),ma(r,e,"s",l,c,g,i),ma(r,e,"nw",l,u,i,i),ma(r,e,"ne",v,u,i,i),ma(r,e,"sw",l,c,i,i),ma(r,e,"se",v,c,i,i))}function vy(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(cy(t)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=1===i.length?py(r,i[0]):function pW(r,e){var t=[py(r,e[0]),py(r,e[1])];return("e"===t[0]||"w"===t[0])&&t.reverse(),t.join("")}(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?uW[s]+"-resize":null})})}function ma(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(function gW(r){var e=Rl(r[0][0],r[1][0]),t=Rl(r[0][1],r[1][1]);return{x:e,y:t,width:Co(r[0][0],r[1][0])-e,height:Co(r[0][1],r[1][1])-t}}(dy(r,e,[[a,n],[a+i,n+o]])))}function cy(r){return Q({strokeNoScale:!0},r.brushStyle)}function SM(r,e,t,a){var n=[Rl(r,t),Rl(e,a)],i=[Co(r,t),Co(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function py(r,e){var n=_f({w:"left",e:"right",n:"top",s:"bottom"}[e],function cW(r){return Ua(r.group)}(r));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function xM(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=bM(e,n,i);A(a,function(u){var f=lW[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(SM(s[0][0],s[1][0],s[0][1],s[1][1])),ly(e,t),yi(e,{isEnd:!1})}function dW(r,e,t,a){var n=e.__brushOption.range,i=bM(r,t,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),ly(r,e),yi(r,{isEnd:!1})}function bM(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function dy(r,e,t){var a=gM(r,e);return a&&a!==gi?a.clipPath(t,r._transform):et(t)}function gy(r){var e=r.event;e.preventDefault&&e.preventDefault()}function yy(r,e,t){return r.childOfName("main").contain(e,t)}function wM(r,e,t,a){var s,n=r._creatingCover,i=r._creatingPanel,o=r._brushOption;if(r._track.push(t.slice()),function vW(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1];return nW(n*n+i*i,.5)>6}(r)||n){if(i&&!n){"single"===o.brushMode&&hy(r);var l=et(o);l.brushType=TM(l.brushType,i),l.panelId=i===gi?null:i.panelId,n=r._creatingCover=vM(r,l),r._covers.push(n)}if(n){var u=Ah[TM(r._brushType,i)];n.__brushOption.range=u.getCreatingRange(dy(r,n,r._track)),a&&(cM(r,n),u.updateCommon(r,n)),pM(r,n),s={isEnd:a}}}else a&&"single"===o.brushMode&&o.removeOnClick&&fy(r,e,t)&&hy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function TM(r,e){return"auto"===r?e.defaultBrushType:r}var mW={mousedown:function(r){if(this._dragging)CM(this,r);else if(!r.target||!r.target.draggable){gy(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null,(this._creatingPanel=fy(this,r,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var a=this.group.transformCoordToLocal(r.offsetX,r.offsetY);if(function yW(r,e,t){if(r._brushType&&!function _W(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}(r,e.offsetX,e.offsetY)){var a=r._zr,n=r._covers,i=fy(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===gi||s.panelId===i.panelId)&&Ah[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}(this,r,a),this._dragging){gy(r);var n=wM(this,r,a,!1);n&&yi(this,n)}},mouseup:function(r){CM(this,r)}};function CM(r,e){if(r._dragging){gy(e);var n=r.group.transformCoordToLocal(e.offsetX,e.offsetY),i=wM(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&yi(r,i)}}var Ah={lineX:AM(0),lineY:AM(1),rect:{createCover:function(r,e){function t(a){return a}return mM({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=yM(r);return SM(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){_M(r,e,t,a)},updateCommon:vy,contain:yy},polygon:{createCover:function(r,e){var t=new rt;return t.add(new Le({name:"main",style:cy(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new De({name:"main",draggable:!0,drift:it(dW,r,e),ondragend:it(yi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:dy(r,e,t)})},updateCommon:vy,contain:yy}};function AM(r){return{createCover:function(e,t){return mM({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=yM(e);return[Rl(t[0][r],t[1][r]),Co(t[0][r],t[1][r])]},updateCoverShape:function(e,t,a,n){var i,o=gM(e,t);if(o!==gi&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),_M(e,t,l,n)},updateCommon:vy,contain:yy}}const my=hW;function MM(r){return r=_y(r),function(e){return Xp(e,r)}}function DM(r,e){return r=_y(r),function(t){var a=e??t,i=a?r.x:r.y;return[i,i+((a?r.width:r.height)||0)]}}function LM(r,e,t){var a=_y(r);return function(n,i){return a.contain(i[0],i[1])&&!hh(n,e,t)}}function _y(r){return ut.create(r)}var SW=["axisLine","axisTickLabel","axisName"],xW=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new my(a.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!function bW(r,e,t){return t&&"axisAreaSelect"===t.type&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),t.get("show")){var s=function TW(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=V({strokeContainThreshold:f},l.getAxisLayout(t.axis.dim)),p=new ga(t,c);A(SW,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,n),Fs(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,.1*Math.abs(u)),h=ut.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:MM(h),isTargetByCursor:LM(h,s,i),getLinearBrushOtherExtent:DM(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(function wW(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}(n))},e.prototype._onBrush=function(t){var n=this.axisModel,i=n.axis,o=G(t.areas,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Gt);const CW=xW;var AW={type:"axisAreaSelect",event:"axisAreaSelected"},DW={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function IM(r){r.registerComponentView(U4),r.registerComponentModel(Z4),r.registerCoordinateSystem("parallel",aW),r.registerPreprocessor(B4),r.registerComponentModel(uM),r.registerComponentView(CW),_o(r,"parallel",uM,DW),function MW(r){r.registerAction(AW,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}(r)}var IW=function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},PW=function(r){function e(t){return r.call(this,t)||this}return O(e,r),e.prototype.getDefaultShape=function(){return new IW},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),"vertical"===a.orient?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ua(this)},e.prototype.downplay=function(){fa(this)},e}(pt),RW=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return O(e,r),e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,h=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new PW,g=nt(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var I,P,R,E,N,k,B,F,y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout();switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,"vertical"===c?(N=I=(null!=x?x*u:S.x)+L.sy,k=(P=(null!=w?w*f:S.y)+S.dy)*(1-_)+(E=null!=D?D*f:T.y)*_,B=R=(null!=M?M*u:T.x)+L.ty,F=P*_+E*(1-_)):(N=(I=(null!=x?x*u:S.x)+S.dx)*(1-_)+(R=null!=M?M*u:T.x)*_,k=P=(null!=w?w*f:S.y)+L.sy,B=I*_+R*(1-_),F=E=(null!=D?D*f:T.y)+L.ty),d.setShape({x1:I,y1:P,x2:R,y2:E,cpx1:N,cpy1:k,cpx2:B,cpy2:F}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),X=p.node2.getVisual("color");U(W)&&U(X)&&(d.style.fill=new eo(0,0,+("horizontal"===c),+("vertical"===c),[{color:W,offset:0},{color:X,offset:1}]))}ve(d,ae(y,"edgeLabel"),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:""+y.get("value")}),d.setTextConfig({position:"inside"});var $=y.getModel("emphasis");he(d,y,"lineStyle",function(dt){return dt.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var tt=$.get("focus");Ut(d,"adjacency"===tt?p.getAdjacentDataIndices():tt,$.get("blurScope"),$.get("disabled")),nt(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new St({shape:{x:null!=y?y*u:d.x,y:null!=m?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ve(S,ae(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),he(S,g),s.add(S),h.setItemGraphicEl(p.dataIndex,S),nt(S).dataType="node";var b=_.get("focus");Ut(S,"adjacency"===b?p.getAdjacentDataIndices():b,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(p,d){h.getItemModel(d).get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(function EW(r,e,t){var a=new St({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return zt(a,{shape:{width:r.width+20}},e,t),a}(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Et);const kW=RW;var OW=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)null!=o[l].depth&&o[l].depth>=0&&(s[o[l].depth]=new Rt(o[l],this,a));if(i&&n)return tM(i,n,this,!0,function f(h,v){h.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var m=d.levelModels[g.depth];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,y=d.getGraph().getEdgeByIndex(p).node1.getLayout();if(y){var _=d.levelModels[y.depth];_&&(c.parentModel=_)}return c})}).data},e.prototype.setNodePosition=function(t,a){var i=(this.option.data||this.option.nodes)[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(c){return isNaN(c)||null==c}if("edge"===n){var o=this.getDataParams(t,n),s=o.data,l=o.value;return ne("nameValue",{name:s.source+" -- "+s.target,value:l,noValue:i(l)})}var h=this.getGraph().getNodeByIndex(t).getLayout().value,v=this.getDataParams(t,n).data.name;return ne("nameValue",{name:null!=v?v+"":null,value:h,noValue:i(h)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(null==n.value&&"node"===a){var o=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=o}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Nt);const NW=OW;function VW(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=function BW(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;!function GW(r){A(r,function(e){var t=en(e.outEdges,Mh),a=en(e.inEdges,Mh),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}(u),function zW(r,e,t,a,n,i,o,s,l){(function FW(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v<e.length;v++)s[v]=1;for(v=0;v<r.length;v++)l[v]=r[v].inEdges.length,0===l[v]&&u.push(r[v]);for(var c=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=null!=g.depth&&g.depth>=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:h},!0),d.setLayout("vertical"===i?{dy:t}:{dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m];s[e.indexOf(_)]=0;var b=_.node2;0==--l[r.indexOf(b)]&&f.indexOf(b)<0&&f.push(b)}}++h,u=f,f=[]}for(v=0;v<s.length;v++)if(1===s[v])throw new Error("Sankey is a DAG, the original data has cycle!");var w=c>h-1?c:h-1;o&&"left"!==o&&function HW(r,e,t,a){if("right"===e){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];n.indexOf(f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}A(r,function(h){PM(h)||h.setLayout({depth:Math.max(0,a-h.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function WW(r,e){A(r,function(t){!PM(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}(r,a)}(r,o,0,w),function UW(r,e,t){A(r,function(a){var n=a.getLayout().depth*e;a.setLayout("vertical"===t?{y:n}:{x:n},!0)})}(r,"vertical"===i?(n-t)/w:(a-t)/w,i)})(r,e,t,n,i,s,l),function YW(r,e,t,a,n,i,o){var s=function ZW(r,e){var t=[],a="vertical"===e?"y":"x",n=wc(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){t.push(n.buckets.get(i))}),t}(r,o);(function XW(r,e,t,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f="vertical"===i?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;"vertical"===i?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})})(s,e,t,a,n,o),Sy(s,n,t,a,o);for(var l=1;i>0;i--)qW(s,l*=.99,o),Sy(s,n,t,a,o),$W(s,l,o),Sy(s,n,t,a,o)}(r,e,i,n,a,o,s),function t6(r,e){var t="vertical"===e?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}(r,s)}(u,f,a,n,o,s,0!==Lt(u,function(d){return 0===d.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function PM(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return null!=e.depth&&e.depth>=0}function Sy(r,e,t,a,n){var i="vertical"===n?"x":"y";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,h=o.length,v="vertical"===n?"dx":"dy",c=0;c<h;c++)(u=f-(l=o[c]).getLayout()[i])>0&&(s=l.getLayout()[i]+u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+e;if((u=f-e-("vertical"===n?a:t))>0)for(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0),f=s,c=h-2;c>=0;--c)(u=(l=o[c]).getLayout()[i]+l.getLayout()[v]+e-f)>0&&(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]})}function qW(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=en(n.outEdges,KW,t)/en(n.outEdges,Mh);if(isNaN(i)){var o=n.outEdges.length;i=o?en(n.outEdges,jW,t)/o:0}if("vertical"===t){var s=n.getLayout().x+(i-tn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-tn(n,t))*e;n.setLayout({y:l},!0)}}})})}function KW(r,e){return tn(r.node2,e)*r.getValue()}function jW(r,e){return tn(r.node2,e)}function QW(r,e){return tn(r.node1,e)*r.getValue()}function JW(r,e){return tn(r.node1,e)}function tn(r,e){return"vertical"===e?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Mh(r){return r.getValue()}function en(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function $W(r,e,t){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=en(n.inEdges,QW,t)/en(n.inEdges,Mh);if(isNaN(i)){var o=n.inEdges.length;i=o?en(n.inEdges,JW,t)/o:0}if("vertical"===t){var s=n.getLayout().x+(i-tn(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-tn(n,t))*e;n.setLayout({y:l},!0)}}})})}function e6(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;A(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(a,function(s){var u=new pe({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}).mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);null!=f?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}var RM=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,l,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type");"category"===o?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!0):"category"===s?(e.layout="vertical",a=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f="horizontal"===e.layout?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],p=c[f].get("type"),d=c[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?((x=V({},S)).value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Vf(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:Vf(d),dimsDef:m.slice()}];return mo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:it(n1,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),EM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return O(e,r),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Nt);Zt(EM,RM,!0);const a6=EM;var n6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l="horizontal"===t.get("layout")?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var h=kM(i.getItemLayout(u),i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(i.hasValue(u)){var v=i.getItemLayout(u);h?(br(h),OM(v,h,i,u)):h=kM(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}else o.remove(h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Et),i6=function r(){},o6=function(r){function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return O(e,r),e.prototype.getDefaultShape=function(){return new i6},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(pt);function kM(r,e,t,a,n){var i=r.ends,o=new o6({shape:{points:n?s6(i,a,r):i}});return OM(r,o,e,t,n),o}function OM(r,e,t,a,n){(0,fn[n?"initProps":"updateProps"])(e,{shape:{points:r.ends}},t.hostModel,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");he(e,s),Ut(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function s6(r,e,t){return G(r,function(a){return(a=a.slice())[e]=t.initBaseline,a})}const l6=n6;var El=A;function u6(r){var e=function f6(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=ht(t,n);i<0&&(t[i=t.length]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}(r);El(e,function(t){var a=t.seriesModels;!a.length||(function h6(r){var s,e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[];if("category"===e.type)s=e.getBandWidth();else{var l=0;El(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}El(t,function(p){var d=p.get("boxWidth");z(d)||(d=[d,d]),o.push([H(d[0],s)||0,H(d[1],s)||0])});var f=.8*s-2,h=f/a*.3,v=(f-h*(a-1))/a,c=v/2-f/2;El(t,function(p,d){i.push(c),c+=h+v,n.push(Math.min(Math.max(v,o[d][0]),o[d][1]))})}(t),El(a,function(n,i){!function v6(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o="horizontal"===r.get("layout")?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(!(null==u||f.length<5))for(var h=0;h<n.count();h++){var v=n.get(u,h),c=_(v,f[2],h),p=_(v,f[0],h),d=_(v,f[1],h),g=_(v,f[3],h),y=_(v,f[4],h),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),b(m,p),b(m,y),b(m,c),n.setItemLayout(h,{initBaseline:c[s],ends:m})}function _(x,w,T){var D,C=n.get(w,T),M=[];return M[o]=x,M[s]=C,isNaN(x)||isNaN(C)?D=[NaN,NaN]:(D=a.dataToPoint(M))[o]+=e,D}function S(x,w,T){var C=w.slice(),M=w.slice();C[o]+=i,M[o]-=i,T?x.push(C,M):x.push(M,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}var p6={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==ye&&Dt("");var n=function c6(r,e){for(var t=[],a=[],n=(e=e||{}).boundIQR,i="none"===n||0===n,o=0;o<r.length;o++){var s=We(r[o].slice()),l=Au(s,.25),u=Au(s,.5),f=Au(s,.75),h=s[0],v=s[s.length-1],c=(n??1.5)*(f-l),p=i?h:Math.max(h,l-c),d=i?v:Math.min(v,f+c),g=e.itemNameFormatter,y=j(g)?g({value:o}):U(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];(_<p||_>d)&&a.push([y,_])}}return{boxData:t,outliers:a}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},g6=["color","borderColor"],y6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&NM(u,h))return;var v=xy(h,0,!0);zt(v,{shape:{points:h.ends}},t,f),by(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(a.hasValue(f)){var c=a.getItemLayout(f);s&&NM(u,c)?i.remove(v):(v?(Ct(v,{shape:{points:c.ends}},t,f),br(v)):v=xy(c),by(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v))}else i.remove(v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),VM(t,this.group);var a=t.get("clip",!0)?rh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var o,n=a.getData(),i=n.getLayout("isSimpleBox");null!=(o=t.next());){var l=xy(n.getItemLayout(o));by(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){VM(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Et),m6=function r(){},_6=function(r){function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return O(e,r),e.prototype.getDefaultShape=function(){return new m6},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(pt);function xy(r,e,t){var a=r.ends;return new _6({shape:{points:t?S6(a,r):a},z2:100})}function NM(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function by(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,he(r,n)}function S6(r,e){return G(r,function(t){return(t=t.slice())[1]=e.initBaseline,t})}var x6=function r(){},wy=function(r){function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return O(e,r),e.prototype.getDefaultShape=function(){return new x6},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e}(pt);function VM(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new wy({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new wy({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new wy({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),Ty(1,o,r),Ty(-1,s,r),Ty(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Ty(r,e,t,a){var n=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);0===r&&(n=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(g6);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const b6=y6;var BM=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return O(e,r),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Nt);Zt(BM,RM,!0);const w6=BM;function T6(r){!r||!z(r.series)||A(r.series,function(e){J(e)&&"k"===e.type&&(e.type="candlestick")})}var C6=["itemStyle","borderColor"],A6=["itemStyle","borderColor0"],M6=["itemStyle","borderColorDoji"],D6=["itemStyle","color"],L6=["itemStyle","color0"],I6={seriesType:"candlestick",plan:Ji(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?D6:L6)}function a(i,o){return o.get(0===i?M6:i>0?C6:A6)}if(!e.isSeriesFiltered(r))return!r.pipelineContext.large&&{progress:function(i,o){for(var s;null!=(s=i.next());){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=a(u,l)||f.fill,V(o.ensureUniqueItemVisual(s,"style"),f)}}}}};const P6=I6;var R6={seriesType:"candlestick",plan:Ji(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=function E6(r,e){var a,t=r.getBaseAxis(),n="category"===t.type?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=H(st(r.get("barMaxWidth"),n),n),o=H(st(r.get("barMinWidth"),1),n),s=r.get("barWidth");return null!=s?H(s,n):Math.max(Math.min(n/2,i),o)}(r,t),o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[0])),l=G(t.mapDimensionsAll(o[1]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(s<0||l.length<4))return{progress:r.pipelineContext.large?function p(d,g){for(var _,x,y=Xr(4*d.count),m=0,S=[],b=[],w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);null!=(x=d.next());){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),L=w.get(h,x),I=w.get(v,x);isNaN(C)||isNaN(L)||isNaN(I)?(y[m++]=NaN,m+=3):(y[m++]=zM(w,x,M,D,f,T),S[0]=C,S[1]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[1]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN)}g.setLayout("largePoints",y)}:function c(d,g){for(var y,m=g.getStore();null!=(y=d.next());){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(h,y),w=m.get(v,y),T=Math.min(S,b),C=Math.max(S,b),M=N(T,_),D=N(C,_),L=N(x,_),I=N(w,_),P=[];k(P,D,0),k(P,M,1),P.push(F(I),F(D),F(L),F(M));var E=!!g.getItemModel(y).get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:zM(m,y,S,b,f,E),initBaseline:S>b?D[1]:M[1],ends:P,brushRect:(W=x,X=w,$=_,tt=void 0,dt=void 0,tt=N(W,$),dt=N(X,$),tt[0]-=a/2,dt[0]-=a/2,{x:tt[0],y:tt[1],width:a,height:dt[1]-tt[1]})})}var W,X,$,tt,dt;function N(W,X){var $=[];return $[0]=X,$[1]=W,isNaN(X)||isNaN(W)?[NaN,NaN]:e.dataToPoint($)}function k(W,X,$){var tt=X.slice(),dt=X.slice();tt[0]=mf(tt[0]+a/2,1,!1),dt[0]=mf(dt[0]-a/2,1,!0),$?W.push(tt,dt):W.push(dt,tt)}function F(W){return W[0]=mf(W[0],1),W}}}}};function zM(r,e,t,a,n,i){return t>a?-1:t<a?1:i?0:e>0?r.get(n,e-1)<=a?1:-1:1}const k6=R6;function GM(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?t:null,fill:"fill"===e.brushType?t:null}})})}var N6=function(r){function e(t,a){var n=r.call(this)||this,i=new hl(t,a),o=new rt;return n.add(i),n.add(o),n.updateData(t,a),n}return O(e,r),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Kt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}GM(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}GM(n,t)},e.prototype.highlight=function(){ua(this)},e.prototype.downplay=function(){fa(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=Xs(t.getItemVisual(a,"symbolSize")),f=t.getItemVisual(a,"style"),h=f&&f.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",h)});var c=so(t.getItemVisual(a,"symbolOffset"),u);c&&(o.x=c[0],o.y=c[1]);var p=t.getItemVisual(a,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=1e3*s.get(["rippleEffect","period"]),d.effectOffset=a/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=h,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){"emphasis"===g?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===g&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Ut(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(rt);const V6=N6;var B6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){this._symbolDraw=new vl(V6)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=cl("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=y0(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Et);const z6=B6;var G6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Nt);const F6=G6;var W6=function(r){function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return O(e,r),e.prototype.createLine=function(t,a,n){return new jg(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var i=t.getItemModel(a).getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");z(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),(f=Kt(s,-.5,-.5,1,1,u)).z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=1e3*a.get("period"),l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),h=ee(a.get("delay"),function(c){return c/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;v=j(h)?h(n):h,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?2*a:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ta(t.__p1,t.__cp1)+ta(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=le,f=Bv;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),v=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(v,h)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*ta(l,s),1===o&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.scaleY=1===t.__lastT?2*ta(a,s):this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e}(rt);const FM=W6;var U6=function(r){function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return O(e,r),e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Le({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel;Ct(this.childAt(0),{shape:{points:t.getItemLayout(a)}},i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var h=o.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),f=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,Ut(this,l,u,f)},e.prototype.updateLayout=function(t,a){this.childAt(0).setShape("points",t.getItemLayout(a))},e}(rt);const HM=U6;var Y6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return O(e,r),e.prototype.createLine=function(t,a,n){return new HM(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++)i+=ta(a[o-1],a[o]),n.push(i);if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var l,s=this._lastFrame;if(a<this._lastFramePercent){for(l=Math.min(s+1,o-1);l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];t.x=h[0]*(1-f)+f*v[0],t.y=h[1]*(1-f)+f*v[1],t.rotation=-Math.atan2(t.__t<1?v[1]-h[1]:h[1]-v[1],t.__t<1?v[0]-h[0]:h[0]-v[0])-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(FM);const Z6=Y6;var X6=function r(){this.polyline=!1,this.curveness=0,this.segs=[]},q6=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return O(e,r),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new X6},e.prototype.buildPath=function(t,a){var o,n=a.segs,i=a.curveness;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],h=n[o++],v=n[o++];t.moveTo(u,f),i>0?t.quadraticCurveTo((u+h)/2-(f-v)*i,(f+v)/2-(h-u)*i,h,v):t.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var h=i[u++],v=i[u++],c=1;c<f;c++)if(Oa(h,v,p=i[u++],d=i[u++],s,t,a))return l;l++}else for(l=0,u=0;u<i.length;){h=i[u++],v=i[u++];var p=i[u++],d=i[u++];if(o>0){if(F_(h,v,(h+p)/2-(v-d)*o,(v+d)/2-(p-h)*o,p,d,s,t,a))return l}else if(Oa(h,v,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],h=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(h,o),l=Math.max(h,l)}t=this._rect=new ut(i,o,s,l)}return t},e}(pt),K6=function(){function r(){this.group=new rt}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new q6({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=nt(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const j6=K6;var Q6={seriesType:"lines",plan:Ji(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,v=[];for(f=n.start;f<n.end;f++){var c=r.getLineCoords(f,o);t&&(s[h++]=c);for(var p=0;p<c;p++)v=e.dataToPoint(o[p],!1,v),s[h++]=v[0],s[h++]=v[1]}i.setLayout("linesPoints",s)}else for(f=n.start;f<n.end;f++){var d=i.getItemModel(f),g=(c=r.getLineCoords(f,o),[]);if(t)for(var y=0;y<c;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}};const WM=Q6;var J6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),f="svg"===u.painter.getType();f||u.painter.getLayer(s).clear(!0),null!=this._lastZlevel&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=t.get("clip",!0)&&rh(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=WM.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),l=a.pipelineContext.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new j6:new Jg(o?i?Z6:HM:i?FM:jg),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr();"svg"!==a.painter.getType()&&null!=this._lastZlevel&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Et);const $6=J6;var tU=typeof Uint32Array>"u"?Array:Uint32Array,eU=typeof Float64Array>"u"?Array:Float64Array;function UM(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=G(e,function(t){var n={coords:[t[0].coord,t[1].coord]};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),ql([n,t[0],t[1]])}))}var rU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return O(e,r),e.prototype.init=function(t){t.data=t.data||[],UM(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(UM(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Bo(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Bo(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t);return a.option instanceof Array?a.option:a.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+2*o],a[o][1]=this._flatCoords[n+2*o+1];return i}var s=this._getCoordsFromItemModel(t);for(o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),wt(t[0])){for(var n=t.length,i=new tU(n),o=new eU(n),s=0,l=0,u=0,f=0;f<n;){u++;var h=t[f++];i[l++]=s+a,i[l++]=h;for(var v=0;v<h;v++){var c=t[f++],p=t[f++];o[s++]=c,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var i=new xe(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;return null!=f?f instanceof Array?f[u]:f:void 0}),i},e.prototype.formatTooltip=function(t,a,n){var o=this.getData().getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),ne("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Nt);const aU=rU;function Dh(r){return r instanceof Array||(r=[r,r]),r}var nU={seriesType:"lines",reset:function(r){var e=Dh(r.get("symbol")),t=Dh(r.get("symbolSize")),a=r.getData();return a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]),{dataEach:a.hasItemOption?function n(i,o){var s=i.getItemModel(o),l=Dh(s.getShallow("symbol",!0)),u=Dh(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}:null}}};const iU=nU;var lU=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=dr.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=e.length;h.width=t,h.height=a;for(var p=0;p<c;++p){var d=e[p],g=d[0],y=d[1],_=n(d[2]);v.globalAlpha=_,v.drawImage(s,g-f,y-f)}if(!h.width||!h.height)return h;for(var S=v.getImageData(0,0,h.width,h.height),b=S.data,x=0,w=b.length,T=this.minOpacity,M=this.maxOpacity-T;x<w;){_=b[x+3]/256;var D=4*Math.floor(255*_);if(_>0){var L=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=L[D],b[x++]=L[D+1],b[x++]=L[D+2],b[x++]=L[D+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=dr.createCanvas()),t=this.pointSize+this.blurSize,a=2*t;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const uU=lU;function YM(r){var e=r.dimensions;return"lng"===e[0]&&"lat"===e[1]}var vU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):YM(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(YM(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,a,n,i,o){var u,f,h,v,s=t.coordinateSystem,l=si(s,"cartesian2d");if(l){var c=s.getAxis("x"),p=s.getAxis("y");u=c.getBandWidth()+.5,f=p.getBandWidth()+.5,h=c.scale.getExtent(),v=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ae(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=n;D<i;D++){var L=void 0,I=g.getItemVisual(D,"style");if(l){var P=g.get(M[0],D),R=g.get(M[1],D);if(isNaN(g.get(M[2],D))||isNaN(P)||isNaN(R)||P<h[0]||P>h[1]||R<v[0]||R>v[1])continue;var E=s.dataToPoint([P,R]);L=new St({shape:{x:E[0]-u/2,y:E[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(M[1],D)))continue;L=new St({z2:1,shape:s.dataToRect([g.get(M[0],D)]).contentShape,style:I})}if(g.hasItemOption){var N=g.getItemModel(D),k=N.getModel("emphasis");y=k.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),w=k.get("focus"),T=k.get("blurScope"),C=k.get("disabled"),b=ae(N)}L.shape.r=S;var B=t.getRawValue(D),F="-";B&&null!=B[2]&&(F=B[2]+""),ve(L,b,{labelFetcher:t,labelDataIndex:D,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,Ut(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(D,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new uU;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),h=t.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=n.getExtent(),b="visualMap.continuous"===n.type?function hU(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}(S,n.option.range):function fU(r,e,t){var a=r[1]-r[0],n=(e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}})).length,i=0;return function(o){var s;for(s=i;s<n;s++)if((l=e[s].interval)[0]<=o&&o<=l[1]){i=s;break}if(s===n)for(s=i-1;s>=0;s--){var l;if((l=e[s].interval)[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new ue({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Et);const cU=vU;var pU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getInitialData=function(t,a){return Zr(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Ki.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Nt);const dU=pU;var yU=["itemStyle","borderWidth"],ZM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cy=new Tr,mU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,f=l.getBaseAxis().isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:ZM[+f],categoryDim:ZM[1-+f]};return o.diff(s).add(function(c){if(o.hasValue(c)){var p=$M(o,c),d=XM(o,c,p,v),g=tD(o,v,d);o.setItemGraphicEl(c,g),i.add(g),aD(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(o.hasValue(c)){var g=$M(o,c),y=XM(o,c,g,v),m=rD(o,y);d&&m!==d.__pictorialShapeStr&&(i.remove(d),o.setItemGraphicEl(c,null),d=null),d?function CU(r,e,t){Ct(r.__pictorialBundle,{x:t.bundlePosition[0],y:t.bundlePosition[1]},t.animationModel,t.dataIndex),t.symbolRepeat?KM(r,e,t,!0):jM(r,0,t,!0),QM(r,t,!0),JM(r,e,t,!0)}(d,v,y):d=tD(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,i.add(d),aD(d,v,y)}else i.remove(d)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&eD(s,c,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){eD(i,nt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Et);function XM(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",u=(t.get("symbolRotate")||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),v={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};(function _U(r,e,t,a,n){var f,i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0);if(z(o)){var h=[Ay(s,o[0])-l,Ay(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else f=null!=o?Ay(s,o)-l:e?a.coordSysExtent[i.index][u]-l:t[i.wh];n.boundingLength=f,e&&(n.repeatCutLength=t[i.wh]),n.pxSign=f>0?1:-1})(t,i,n,a,v),function SU(r,e,t,a,n,i,o,s,l,u){var p,f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize");(p=z(c)?c.slice():null==c?["100%","100%"]:[c,c])[h.index]=H(p[h.index],v),p[f.index]=H(p[f.index],a?v:Math.abs(i)),u.symbolSize=p,(u.symbolScale=[p[0]/s,p[1]/s])[f.index]*=(l.isHorizontal?-1:1)*o}(r,e,n,i,0,v.boundingLength,v.pxSign,f,a,v),function xU(r,e,t,a,n){var i=r.get(yU)||0;i&&(Cy.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Cy.updateTransform(),i/=Cy.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=so(t.get("symbolOffset"),c);return function bU(r,e,t,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ee(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[c.index]),b=Math.max(d+2*S,0),x=_?0:2*S,w=Sc(a),T=w?a:nD((y+x)/b);b=d+2*(S=(y-T*d)/2/(_?T:Math.max(T-1,1))),x=_?0:2*S,!w&&"fixed"!==a&&(T=u?nD((Math.abs(u)+x)/b):0),g=T*b-x,h.repeatTimes=T,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]="start"===o?M:"end"===o?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=h.barRectShape=V({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=h.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}(t,c,n,i,0,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function Ay(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function qM(r){var e=r.symbolPatternSize,t=Kt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function KM(r,e,t,a){var n=r.__pictorialBundle,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=t.symbolSize[e.valueDim.index]+t.valueLineWidth+2*t.symbolMargin;for(My(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?Ao(d,null,p(f),t,a):Ao(d,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(d)}),f++});f<u;f++){var v=qM(t);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,n.add(v);var c=p(f);Ao(v,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},t,a)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return("start"===t.symbolRepeatDirection?y>0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jM(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ao(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=qM(t),n.add(i),Ao(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function QM(r,e,t){var a=V({},e.barRectShape),n=r.__pictorialBarRect;n?Ao(n,null,{shape:a},e,t):((n=r.__pictorialBarRect=new St({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,r.add(n))}function JM(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Ct(n,{shape:i},s,l);else{i[o.wh]=0,n=new St({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],fn[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function $M(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=wU,t.isAnimationEnabled=TU,t}function wU(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function TU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function tD(r,e,t,a){var n=new rt,i=new rt;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?KM(n,e,t):jM(n,0,t),QM(n,t,a),JM(n,e,t,a),n.__pictorialShapeStr=rD(r,t),n.__pictorialSymbolMeta=t,n}function eD(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];My(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){za(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function rD(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function My(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Ao(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&fn[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function aD(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");My(r,function(d){if(d instanceof ue){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=1.1*d.scaleX,y.scaleY=1.1*d.scaleY),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)];ve(r.__pictorialBarRect,ae(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:go(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Ut(r,f,h,i.get("disabled"))}function nD(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const AU=mU;var MU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return O(e,r),e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ga(ah.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(ah);const DU=MU;var IU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return O(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;function v(g){return g.name}s.x=0,s.y=f.y+h[0];var c=new ca(this._layersSeries||[],l,v,v),p=[];function d(g,y,m){var _=o._layers;if("remove"!==g){for(var x,S=[],b=[],w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),M=C.x,D=C.y0,L=C.y;S.push(M,D),b.push(M,D+L),x=i.getItemVisual(w[T],"style")}var I,P=i.getItemLayout(w[0]),E=t.getModel("label").get("margin"),N=t.getModel("emphasis");if("add"===g){var k=p[y]=new rt;I=new ET({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),k.add(I),s.add(k),t.isAnimationEnabled()&&I.setClipPath(function PU(r,e,t){var a=new St({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return zt(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else I=(k=_[m]).childAt(0),s.add(k),p[y]=k,Ct(I,{shape:{points:S,stackedOnPoints:b}},t),br(I);ve(I,ae(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var B=I.getTextContent();B&&(B.x=P.x-E,B.y=P.y0+P.y/2),I.useStyle(x),i.setItemGraphicEl(y,I),he(I,t),Ut(I,N.get("focus"),N.get("blurScope"),N.get("disabled"))}else s.remove(_[y])}c.add(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(d,this,"remove")).execute(),this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(Et);const RU=IU;var EU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new dl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=wc(t,function(v){return n.hasOwnProperty(v[0]+"")||(n[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,c){o.push({name:c,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f)n[h=o[l].dataList[f][0]+""]=l;for(var h in n)n.hasOwnProperty(h)&&n[h]!==l&&(n[h]=l,t[a]=[h,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var i=this.getReferringComponents("singleAxis",Qt).models[0].get("type"),o=Lt(t.data,function(p){return void 0!==p[2]}),s=this.fixData(o||[]),l=[],u=this.nameMap=q(),f=0,h=0;h<s.length;++h)l.push(s[h][2]),u.get(s[h][2])||(u.set(s[h][2],f),f++);var v=ho(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Vf(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new xe(v,this);return c.initData(s),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=wc(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(h,v){return t.get(o,h)-t.get(o,v)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){z(t)||(t=t?[t]:[]);for(var u,i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,f=0;f<l;++f){for(var h=Number.MAX_VALUE,v=-1,c=o[f].indices.length,p=0;p<c;++p){var d=i.get(t[0],o[f].indices[p]),g=Math.abs(d-a);g<=h&&(u=d,h=g,v=o[f].indices[p])}s.push(v)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData();return ne("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Nt);const kU=EU;function OU(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();i.boundaryGap=s,"horizontal"===l.orient?(s[0]=H(s[0],o.height),s[1]=H(s[1],o.height),iD(a,t,o.height-s[0]-s[1])):(s[0]=H(s[0],o.width),s[1]=H(s[1],o.width),iD(a,t,o.width-s[0]-s[1])),a.setLayout("layoutInfo",i)})}function iD(r,e,t){if(r.count())for(var c,a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(n,function(g){return G(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=function NU(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<t;++f){var h=a[f]+n[f];h>i&&(i=h)}return{y0:n,max:i}}(s),u=l.y0,f=t/l.max,h=n.length,v=n[0].indices.length,p=0;p<v;++p){r.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:c=u[p]*f,y:s[0][p][1]*f});for(var d=1;d<h;++d)r.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:c+=s[d-1][p][1]*f,y:s[d][p][1]*f})}}var GU=function(r){function e(t,a,n,i){var o=r.call(this)||this;o.z2=2,o.textConfig={inside:!0},nt(o).seriesIndex=a.seriesIndex;var s=new xt({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return O(e,r),e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;nt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=V({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=uo(c,o));var p=yo(l.getModel("itemStyle"),h,!0);V(h,p),A(Ae,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=yo(S,h);b&&(_.shape=b)}),t?(s.setShape(h),s.shape.r=f.r0,Ct(s,{shape:{r:f.r}},n,a.dataIndex)):(Ct(s,{shape:h},n),br(s)),s.useStyle(v),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus");Ut(this,"ancestor"===g?a.getAncestorsIndices():"descendant"===g?a.getDescendantIndices():g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(null!=p&&Math.abs(s)<p);function g(y,m){return y.get(m)??i.get(m)}v.ignore=!d,A(ms,function(y){var m=n.getModel("normal"===y?"label":[y,"label"]),_="normal"===y,S=_?v:v.ensureState(y),b=t.getFormattedLabel(c,y);_&&(b=b||a.node.name),S.style=Ot(m,{},null,"normal"!==y,!0),b&&(S.style.text=b);var x=m.get("show");null!=x&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?h:h.states[y],C=T.style.fill;T.textConfig={outsideFill:"inherit"===m.get("color")?C:null,inside:"outside"!==w};var M,D=g(m,"distance")||0,L=g(m,"align");"outside"===w?(M=o.r+D,L=l>Math.PI/2?"right":"left"):L&&"center"!==L?"left"===L?(M=o.r0+D,l>Math.PI/2&&(L="right")):"right"===L&&(M=o.r-D,l>Math.PI/2&&(L="left")):(M=s===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,L="center"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var I=g(m,"rotate"),P=0;"radial"===I?(P=-l)<-Math.PI/2&&(P+=Math.PI):"tangential"===I?(P=Math.PI/2-l)>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI):wt(I)&&(P=I*Math.PI/180),S.rotation=P}),v.dirtyStyle()},e}(Me);const oD=GU;var Ly="sunburstRootToNode",sD="sunburstHighlight",WU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,h=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)}),function p(m,_){function S(x){return x.getId()}function b(x,w){!function d(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l)if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}(_);else if(m){var S=new oD(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}(null==x?null:m[x],null==w?null:_[w])}0===m.length&&0===_.length||new ca(_,m,S,S).add(b).update(b).remove(it(b,null)).execute()}(v,this._oldChildren||[]),function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new oD(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}(l,u),this._initEvents(),this._oldChildren=v},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1;t.seriesModel.getViewRoot().eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if("rootToNode"===s)t._rootToNode(o);else if("link"===s){var l=o.getModel(),u=l.get("link");u&&Ku(u,l.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ly,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData().getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Et);const UU=WU;var YU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return O(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};lD(n);var i=this._levelModels=G(t.levels||[],function(l){return new Rt(l,this,a)},this),o=Lg.createTree(n,this,function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})});return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=gh(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){_A(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Nt);function lD(r){var e=0;A(r.children,function(a){lD(a);var n=a.value;z(n)&&(n=n[0]),e+=n});var t=r.value;z(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const ZU=YU;var uD=Math.PI/180;function XU(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*uD,p=a.get("minAngle")*uD,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");null!=m&&fD(g,m);var _=0;A(g.children,function(E){!isNaN(E.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,T=(v-h)/(g.height-(x?-1:1)||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(E,N){if(E){var k=N;if(E!==d){var B=E.getValue(),F=0===S&&M?b:B*b;F<p&&(F=p),k=N+D*F;var W=E.depth-y-(x?-1:1),X=h+T*W,$=h+T*(W+1),tt=a.getLevelModel(E);if(tt){var dt=tt.get("r0",!0),Mt=tt.get("r",!0),gt=tt.get("radius",!0);null!=gt&&(dt=gt[0],Mt=gt[1]),null!=dt&&(X=H(dt,l/2)),null!=Mt&&($=H(Mt,l/2))}E.setLayout({angle:F,startAngle:N,endAngle:k,clockwise:C,cx:u,cy:f,r0:X,r:$})}if(E.children&&E.children.length){var at=0;A(E.children,function(yt){at+=L(yt,N+at)})}return k-N}};if(x){var R=2*Math.PI;d.setLayout({angle:R,startAngle:c,endAngle:c+R,clockwise:C,cx:u,cy:f,r0:h,r:h+T})}L(g,c)})}function fD(r,e){var t=r.children||[];r.children=function qU(r,e){if(j(e)){var t=G(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),G(t,function(n){return r[n.index]})}var a="asc"===e;return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return 0===o?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}(t,e),t.length&&A(r.children,function(a){fD(a,e)})}function KU(r){var e={};r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var l=o.getModel().getModel("itemStyle").getItemStyle();l.fill||(l.fill=function t(a,n,i){for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&U(s)&&(s=vu(s,(a.depth-1)/(i-1)*.5)),s}(o,a,i.root.height)),V(n.ensureUniqueItemVisual(o.dataIndex,"style"),l)})})}var hD={color:"fill",borderColor:"stroke"},QU={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},_a=Tt(),JU=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Zr(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=_a(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Nt);const $U=JU;function tY(r,e){return e=e||[0,0],G(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function rY(r,e){return e=e||[0,0],G([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function nY(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function oY(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,a){var i=this["get"+t+"Axis"](),o=e[a],s=r[a]/2,l="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return"Angle"===t&&(l=l*Math.PI/180),l},this)}function vD(r,e,t,a){return r&&(r.legacy||!1!==r.legacy&&!t&&!a&&"tspan"!==e&&("text"===e||Z(r,"text")))}function cD(r,e,t){var n,i,o,a=r;if("text"===e)o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return pD(o,r),A(o.rich,function(l){pD(l,l)}),{textConfig:n,textContent:i}}function pD(r,e){!e||(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(r.align=e.textAlign),Z(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(r.width=e.textWidth),Z(e,"textHeight")&&(r.height=e.textHeight),Z(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(r.padding=e.textPadding),Z(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function dD(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",null!=t.offset&&(a.textOffset=t.offset),null!=t.rotation&&(a.textRotation=t.rotation),null!=t.distance&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";gD(a,e);var o=null==a.textFill;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),null==a.textStrokeWidth&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){gD(s,s)}),a}function gD(r,e){!e||(Z(e,"fill")&&(r.textFill=e.fill),Z(e,"stroke")&&(r.textStroke=e.fill),Z(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Z(e,"font")&&(r.font=e.font),Z(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Z(e,"fontSize")&&(r.fontSize=e.fontSize),Z(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Z(e,"align")&&(r.textAlign=e.align),Z(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Z(e,"width")&&(r.textWidth=e.width),Z(e,"height")&&(r.textHeight=e.height),Z(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(r.textPadding=e.padding),Z(e,"borderColor")&&(r.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var yD={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},mD=mt(yD),Lh=(qe(Nr,function(r,e){return r[e]=1,r},{}),Nr.join(", "),["","style","shape","extra"]),Mo=Tt();function Iy(r,e,t,a,n){var i=r+"Animation",o=zi(r,a,n)||{},s=Mo(e).userDuring;return o.duration>0&&(o.during=s?Y(cY,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function Ih(r,e,t,a){var n=(a=a||{}).dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Mo(r),u=e.style;l.userDuring=e.during;var f={},h={};if(function dY(r,e,t){for(var a=0;a<mD.length;a++){var n=mD[a],i=yD[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(a=0;a<Nr.length;a++){var s=Nr[a];null!=e[s]&&(t[s]=e[s])}}(0,e,h),xD("shape",e,h),xD("extra",e,h),!i&&s&&(function pY(r,e,t){for(var a=e.transition,n=mi(a)?Nr:Pt(a||[]),i=0;i<n.length;i++){var o=n[i];"style"!==o&&"shape"!==o&&"extra"!==o&&(t[o]=r[o])}}(r,e,f),SD("shape",r,e,f),SD("extra",r,e,f),function gY(r,e,t,a){if(t){var i,n=r.style;if(n){var o=t.transition,s=e.transition;if(o&&!mi(o)){var l=Pt(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++)i[f=l[u]]=n[f]}else if(r.getAnimationStyleProps&&(mi(s)||mi(o)||ht(s,"style")>=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});var p=mt(t);for(u=0;u<p.length;u++){var f;c[f=p[u]]&&(i[f]=n[f])}}}}}}(r,e,u,f)),h.style=u,function uY(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];"style"===o.targetName&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}(r,h,o),function hY(r,e){Z(e,"silent")&&(r.silent=e.silent),Z(e,"ignore")&&(r.ignore=e.ignore),r instanceof tr&&Z(e,"invisible")&&(r.invisible=e.invisible),r instanceof pt&&Z(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}(r,e),s)if(i){var v={};A(Lh,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),V(p?v[p]:v,d.enterFrom))});var c=Iy("enter",r,e,t,n);c.duration>0&&r.animateFrom(v,c)}else!function fY(r,e,t,a,n){if(n){var i=Iy("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}(r,e,n||0,t,f);_D(r,e),u?r.dirty():r.markRedraw()}function _D(r,e){for(var t=Mo(r).leaveToProps,a=0;a<Lh.length;a++){var n=Lh[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Mo(r).leaveToProps={}),n&&(t[n]=t[n]||{}),V(n?t[n]:t,i.leaveTo))}}function Ph(r,e,t,a){if(r){var n=r.parent,i=Mo(r).leaveToProps;if(i){var o=Iy("update",r,e,t,0);o.done=function(){n.remove(r),a&&a()},r.animateTo(i,o)}else n.remove(r),a&&a()}}function mi(r){return"all"===r}var Qr={},vY={setTransform:function(r,e){return Qr.el[r]=e,this},getTransform:function(r){return Qr.el[r]},setShape:function(r,e){var t=Qr.el;return(t.shape||(t.shape={}))[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Qr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Qr.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Qr.el.style;if(e)return e[r]},setExtra:function(r,e){return(Qr.el.extra||(Qr.el.extra={}))[r]=e,this},getExtra:function(r){var e=Qr.el.extra;if(e)return e[r]}};function cY(){var r=this,e=r.el;if(e){var t=Mo(e).userDuring,a=r.userDuring;if(t!==a)return void(r.el=r.userDuring=null);Qr.el=e,a(vY)}}function SD(r,e,t,a){var n=t[r];if(n){var o,i=e[r];if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),mi(l))V(o,i);else for(var u=Pt(l),f=0;f<u.length;f++)o[h=u[f]]=v=i[h];else if(mi(s)||ht(s,r)>=0){!o&&(o=a[r]={});var c=mt(i);for(f=0;f<c.length;f++){var h,v;yY(n[h=c[f]],v=i[h])&&(o[h]=v)}}}}}function xD(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=mt(a),o=0;o<i.length;o++){var s=i[o];n[s]=ns(a[s])}}function yY(r,e){return fe(r)?r!==e:null!=r&&isFinite(r)}var bD=Tt(),mY=["percent","easing","shape","style","extra"];function wD(r){r.stopAnimation("keyframe"),r.attr(bD(r))}function Rh(r,e,t){if(t.isAnimationEnabled()&&e){if(z(e))return void A(e,function(s){Rh(r,s,t)});var a=e.keyframes,n=e.duration;if(t&&null==n){var i=zi("enter",t,0);n=i&&i.duration}if(a&&n){var o=bD(r);A(Lh,function(s){var l;s&&!r[s]||(a.sort(function(f,h){return f.percent-h.percent}),A(a,function(f){var h=r.animators,v=s?f[s]:f;if(v){var c=mt(v);if(s||(c=Lt(c,function(g){return ht(mY,g)<0})),c.length){l||((l=r.animate(s,e.loop,!0)).scope="keyframe");for(var p=0;p<h.length;p++)h[p]!==l&&h[p].targetName===l.targetName&&h[p].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(c,function(g){d[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*f.percent,v,c,f.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing))})}}}var Sa="emphasis",rn="normal",Py="blur",Ry="select",an=[rn,Sa,Py,Ry],Ey={normal:["itemStyle"],emphasis:[Sa,"itemStyle"],blur:[Py,"itemStyle"],select:[Ry,"itemStyle"]},ky={normal:["label"],emphasis:[Sa,"label"],blur:[Py,"label"],select:[Ry,"label"]},_Y=["x","y"],vr={normal:{},emphasis:{},blur:{},select:{}},xY={cartesian2d:function eY(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(tY,r)}}},geo:function aY(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(rY,r)}}},single:function iY(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(nY,r)}}},polar:function sY(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(oY,r)}}},calendar:function lY(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}};function Oy(r){return r instanceof pt}function Ny(r){return r instanceof tr}var wY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=CD(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(h){zy(n,null,h,u(h,i),t,l,s)}).remove(function(h){var v=o.getItemGraphicEl(h);v&&Ph(v,_a(v).option,t)}).update(function(h,v){var c=o.getItemGraphicEl(v);zy(n,c,h,u(h,i),t,l,s)}).execute();var f=t.get("clip",!0)?rh(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=CD(a,s,n,i),u=this._progressiveEls=[];function f(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var v=zy(null,null,h,l(h,o),a,this.group,s);v&&(v.traverse(f),u.push(v))}},e.prototype.eachRendered=function(t){Ya(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e}(Et);const TY=wY;function Vy(r){var t,e=r.type;if("path"===e){var a=r.shape,n=null!=a.width&&null!=a.height?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=ID(a);t=Gs(i,null,n,a.layout||"center"),_a(t).customPathData=i}else if("image"===e)t=new ue({}),_a(t).customImagePath=r.style.image;else if("text"===e)t=new xt({});else if("group"===e)t=new rt;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');var o=yf(e);o||Dt(""),t=new o}return _a(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function By(r,e,t,a,n,i,o){wD(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&null==a.transition&&(a.transition=_Y);var l=a&&a.style;if(l){if("text"===e.type){var u=l;Z(u,"textFill")&&(u.fill=u.textFill),Z(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,h=Oy(e)?l.decal:null;r&&h&&(h.dirty=!0,f=uo(h,r)),l.__decalPattern=f}Ny(e)&&l&&(f=l.__decalPattern)&&(l.decal=f),Ih(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Rh(e,a.keyframeAnimation,i)}function TD(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(!1===a){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),On(i)}}function AY(r,e,t){var a=t===rn,n=a?e:Eh(e,t),i=n?n.z2:null;null!=i&&((a?r:r.ensureState(t)).z2=i||0)}function CD(r,e,t,a){var n=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):xY[i.type](i));for(var u,f,s=Q({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:function S(P,R){return null==R&&(R=u),e.getStore().get(e.getDimensionIndex(P||0),R)},style:function x(P,R){null==R&&(R=u);var E=e.getItemVisual(R,"style"),N=E&&E.fill,k=E&&E.opacity,B=m(R,rn).getItemStyle();null!=N&&(B.fill=N),null!=k&&(B.opacity=k);var F={inheritColor:U(N)?N:"#000"},W=_(R,rn),X=Ot(W,null,F,!1,!0);X.text=W.getShallow("show")?st(r.getFormattedLabel(R,rn),go(e,R)):null;var $=Fu(W,F,!1);return C(P,B),B=dD(B,X,$),P&&T(B,P),B.legacy=!0,B},ordinalRawValue:function b(P,R){null==R&&(R=u);var E=e.getDimensionInfo(P=P||0);if(!E){var N=e.getDimensionIndex(P);return N>=0?e.getStore().get(N,R):void 0}var k=e.get(E.name,R),B=E&&E.ordinalMeta;return B?B.categories[k]:k},styleEmphasis:function w(P,R){null==R&&(R=u);var E=m(R,Sa).getItemStyle(),N=_(R,Sa),k=Ot(N,null,null,!0,!0);k.text=N.getShallow("show")?Rr(r.getFormattedLabel(R,Sa),r.getFormattedLabel(R,rn),go(e,R)):null;var B=Fu(N,null,!0);return C(P,E),E=dD(E,k,B),P&&T(E,P),E.legacy=!0,E},visual:function M(P,R){if(null==R&&(R=u),Z(hD,P)){var E=e.getItemVisual(R,"style");return E?E[hD[P]]:null}if(Z(QU,P))return e.getItemVisual(R,P)},barLayout:function D(P){if("cartesian2d"===i.type)return function _B(r){var e=[],t=r.axis,a="axis0";if("category"===t.type){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(Q({bandWidth:n,axisKey:a,stackId:Id+i},r));var o=dw(e),s=[];for(i=0;i<r.count;i++){var l=o[a][Id+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}(Q({axis:i.getBaseAxis()},P))},currentSeriesIndices:function L(){return t.getCurrentSeriesIndices()},font:function I(P){return ES(P,t)}},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:MY(r.getData())},h={},v={},c={},p={},d=0;d<an.length;d++){var g=an[d];c[g]=r.getModel(Ey[g]),p[g]=r.getModel(ky[g])}function y(P){return P===u?f||(f=e.getItemModel(P)):e.getItemModel(P)}function m(P,R){return e.hasItemOption?P===u?h[R]||(h[R]=y(P).getModel(Ey[R])):y(P).getModel(Ey[R]):c[R]}function _(P,R){return e.hasItemOption?P===u?v[R]||(v[R]=y(P).getModel(ky[R])):y(P).getModel(ky[R]):p[R]}return function(P,R){return u=P,f=null,h={},v={},n&&n(Q({dataIndexInside:P,dataIndex:e.getRawIndex(P),actionType:R?R.type:null},l),s)};function T(P,R){for(var E in R)Z(R,E)&&(P[E]=R[E])}function C(P,R){P&&(P.textFill&&(R.textFill=P.textFill),P.textPosition&&(R.textPosition=P.textPosition))}}function MY(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim;(e[n]=e[n]||[])[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function zy(r,e,t,a,n,i,o){if(a){var s=Gy(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Ut(s,a.focus,a.blurScope,a.emphasisDisabled),s}i.remove(e)}function Gy(r,e,t,a,n,i){var o=-1,s=e;e&&AD(e,a,n)&&(o=ht(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Vy(a),s&&function bY(r,e){e.copyTransform(r),Ny(e)&&Ny(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Oy(e)&&Oy(r)&&e.setShape(r.shape))}(s,u)),!1===a.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),vr.normal.cfg=vr.normal.conOpt=vr.emphasis.cfg=vr.emphasis.conOpt=vr.blur.cfg=vr.blur.conOpt=vr.select.cfg=vr.select.conOpt=null,vr.isLegacy=!1,function LY(r,e,t,a,n,i){if(!r.isGroup){MD(t,null,i),MD(t,Sa,i);var o=i.normal.conOpt;if(null!=o||null!=i.emphasis.conOpt||null!=i.select.conOpt||null!=i.blur.conOpt){var f=r.getTextContent();if(!1===o)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Vy(o),r.setTextContent(f)),By(null,f,e,o,null,a,n);for(var h=o&&o.style,v=0;v<an.length;v++){var c=an[v];if(c!==rn)TD(c,f,0,Fy(o,i[c].conOpt,c),null)}h?f.dirty():f.markRedraw()}}}}(u,t,a,n,l,vr),function DY(r,e,t,a,n){var i=t.clipPath;if(!1===i)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&AD(o,i,a)&&(o=null),o||(o=Vy(i),r.setClipPath(o)),By(null,o,e,i,null,a,n)}}(u,t,a,n,l),By(r,u,t,a,vr,n,l),Z(a,"info")&&(_a(u).info=a.info);for(var f=0;f<an.length;f++){var h=an[f];if(h!==rn)TD(h,u,0,Fy(a,Eh(a,h),h),vr)}return function CY(r,e,t){if(!r.isGroup){var a=r,i=t.currentZLevel;a.z=t.currentZ,a.zlevel=i;var o=e.z2;null!=o&&(a.z2=o||0);for(var s=0;s<an.length;s++)AY(a,e,an[s])}}(u,a,n),"group"===a.type&&function IY(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l="byName"===s||a.diffChildrenByName,u=!1===s;if(o||l||u){if(l)return void function RY(r){new ca(r.oldChildren,r.newChildren,DD,DD,r).add(LD).update(LD).remove(EY).execute()}({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});u&&e.removeAll();for(var f=0;f<o;f++){var h=i[f],v=e.childAt(f);h?(null==h.ignore&&(h.ignore=!1),Gy(r,v,t,h,n,e)):v.ignore=!0}for(var c=e.childCount()-1;c>=f;c--){var p=e.childAt(c);PY(e,p,n)}}}(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function AD(r,e,t){var a=_a(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||null!=n&&n!==a.customGraphicType||"path"===n&&function kY(r){return r&&(Z(r,"pathData")||Z(r,"d"))}(i)&&ID(i)!==a.customPathData||"image"===n&&Z(o,"image")&&o.image!==a.customImagePath}function MD(r,e,t){var a=e?Eh(r,e):r,n=e?Fy(r,a,Sa):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Eh(s,e):s:null;if(n&&(t.isLegacy||vD(n,i,!!o,!!l))){t.isLegacy=!0;var u=cD(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var h=e?t[e]:t.normal;h.cfg=o,h.conOpt=l}function Eh(r,e){return e?r?r[e]:null:r}function Fy(r,e,t){var a=e&&e.style;return null==a&&t===Sa&&r&&(a=r.styleEmphasis),a}function PY(r,e,t){e&&Ph(e,_a(r).option,t)}function DD(r,e){return(r&&r.name)??"e\0\0"+e}function LD(r,e){var t=this.context;Gy(t.api,null!=e?t.oldChildren[e]:null,t.dataIndex,null!=r?t.newChildren[r]:null,t.seriesModel,t.group)}function EY(r){var e=this.context,t=e.oldChildren[r];t&&Ph(t,_a(t).option,e.seriesModel)}function ID(r){return r&&(r.pathData||r.d)}var _i=Tt(),PD=et,Hy=Y,NY=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,n||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(s){var v=it(RD,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}else s=this._group=new rt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);OD(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i="category"===n.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===a||null==a){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=cg(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===a},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=_i(e).pointerEl=new fn[i.type](PD(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=_i(e).labelEl=new xt(PD(t.label));e.add(i),kD(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=_i(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=_i(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),kD(i,n))},r.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(s=!0,n=this._handle=ao(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){aa(u.event)},onmousedown:Hy(this._onHandleDragMove,this,0,0),drift:Hy(this._onHandleDragMove,this),ondragend:Hy(this._onHandleDragEnd,this)}),a.add(n)),OD(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,io(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){RD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Wy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Wy(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Wy(n)),_i(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Ws(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return{x:e[a=a||0],y:e[1-a],width:t[a],height:t[1-a]}},r}();function RD(r,e,t,a){ED(_i(t).lastProp,a)||(_i(t).lastProp=a,e?Ct(t,a,r):(t.stopAnimation(),t.attr(a)))}function ED(r,e){if(J(r)&&J(e)){var t=!0;return A(e,function(a,n){t=t&&ED(r[n],a)}),!!t}return r===e}function kD(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Wy(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function OD(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){"group"!==i.type&&(null!=a&&(i.z=a),null!=n&&(i.zlevel=n),i.silent=t)})}const Uy=NY;function Yy(r){var a,e=r.get("type"),t=r.getModel(e+"Style");return"line"===e?(a=t.getLineStyle()).fill=null:"shadow"===e&&((a=t.getAreaStyle()).stroke=null),a}function ND(r,e,t,a,n){var o=VD(t.get("value"),e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Bn(s.get("padding")||0),u=s.getFont(),f=ss(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=n.align;"right"===p&&(h[0]-=v),"center"===p&&(h[0]-=v/2);var d=n.verticalAlign;"bottom"===d&&(h[1]-=c),"middle"===d&&(h[1]-=c/2),function VY(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}(h,v,c,a);var g=s.get("backgroundColor");(!g||"auto"===g)&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function VD(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:kd(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=u&&u.getDataParams(l.dataIndexInside);h&&s.seriesData.push(h)}),U(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function Zy(r,e,t){var a=[1,0,0,1,0,0];return Ma(a,a,t.rotation),gr(a,a,t.position),Ar([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function BD(r,e,t,a,n,i){var o=ga.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),ND(e,a,n,i,{position:Zy(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Xy(r,e,t){return{x1:r[t=t||0],y1:r[1-t],x2:e[t],y2:e[1-t]}}function zD(r,e,t){return{x:r[t=t||0],y:r[1-t],width:e[t],height:e[1-t]}}function GD(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var BY=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=FD(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&"none"!==u){var v=Yy(i),c=zY[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}BD(a,t,ug(l.model,n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=ug(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Zy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=FD(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,h=[t.x,t.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];return c[f]=h[f],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(Uy);function FD(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var zY={line:function(r,e,t){return{type:"Line",subPixelOptimize:!0,shape:Xy([e,t[0]],[e,t[1]],HD(r))}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth());return{type:"Rect",shape:zD([e-a/2,t[0]],[a,t[1]-t[0]],HD(r))}}};function HD(r){return"x"===r.dim?0:1}const GY=BY;var FY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(_t);const HY=FY;var xa=Tt(),WY=A;function WD(r,e,t){if(!bt.node){var a=e.getZr();xa(a).records||(xa(a).records={}),function UY(r,e){function t(a,n){r.on(a,function(i){var o=function XY(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}(e);WY(xa(r).records,function(s){s&&n(s,i,o.dispatchAction)}),function YY(r,e){var n,t=r.showTip.length,a=r.hideTip.length;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,e)})}xa(r).initialized||(xa(r).initialized=!0,t("click",it(UD,"click")),t("mousemove",it(UD,"mousemove")),t("globalout",ZY))}(a,e),(xa(a).records[r]||(xa(a).records[r]={})).handler=t}}function ZY(r,e,t){r.handler("leave",null,t)}function UD(r,e,t,a){e.handler(r,t,a)}function qy(r,e){if(!bt.node){var t=e.getZr();(xa(t).records||{})[r]&&(xa(t).records[r]=null)}}var qY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";WD("axisPointer",n,function(s,l,u){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){qy("axisPointer",a)},e.prototype.dispose=function(t,a){qy("axisPointer",a)},e.type="axisPointer",e}(Gt);const KY=qY;function YD(r,e){var n,t=[],a=r.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=wn(i,r);if(null==o||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c="x"===h||"radius"===h?1:0,p=i.mapDimension(u.dim),d=[];d[c]=i.get(p,o),d[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var ZD=Tt();function jY(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){kh(n)&&(n=YD({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=kh(n),u=i.axesInfo,f=s.axesInfo,h="leave"===a||kh(n),v={},c={},p={list:[],map:{}},d={showPointer:it(JY,c),showTooltip:it($Y,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=function a8(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}(u,S);if(!h&&_&&(!u||w)){var T=w&&w.value;null==T&&!l&&(T=x.pointToData(n)),null!=T&&XD(S,T,d,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,qD(S),qD(y)))),g[y.key]=w}})}),A(g,function(y,m){XD(f[m],y,d,!0,v)}),function t8(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),"show"===o.status&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}(c,f,v),function e8(r,e,t,a){if(!kh(e)&&r.list.length){var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}else a({type:"hideTip"})}(p,n,r,o),function r8(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=ZD(a)[n]||{},o=ZD(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;"show"===h.status&&A(h.seriesDataIndices,function(v){o[v.seriesIndex+" | "+v.dataIndex]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,t),v}}function XD(r,e,t,a,n){var i=r.axis;if(!i.scale.isBlank()&&i.containData(e)){if(!r.involveSeries)return void t.showPointer(r,e);var o=function QY(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var h,v,f=l.getData().mapDimensionsAll(a);if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(!(v=l.getData().indicesOfNearest(f[0],r,"category"===t.type?.5:null)).length)return;h=l.getData().get(f[0],v[0])}if(null!=h&&isFinite(h)){var p=r-h,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=h,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==n.seriesIndex&&V(n,s[0]),!a&&r.snap&&i.containData(l)&&null!=l&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function JY(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function $Y(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&n.length){var l=e.coordSys.model,u=gl(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function qD(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function kh(r){return!r||null==r[0]||isNaN(r[0])||null==r[1]||isNaN(r[1])}function kl(r){ui.registerAxisPointerClass("CartesianAxisPointer",GY),r.registerComponentModel(HY),r.registerComponentView(KY),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function WG(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function UG(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=gl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var h=s.model.getModel("tooltip",a);if(A(s.getAxes(),it(d,!1,null)),s.getTooltipAxes&&a&&h.get("show")){var v="axis"===h.get("trigger"),c="cross"===h.get(["axisPointer","type"]),p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&A(p.baseAxes,it(d,!c||"cross",v)),c&&A(p.otherAxes,it(d,"cross",!1))}}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(S&&("auto"!==S||g||pg(_))){null==y&&(y=_.get("triggerTooltip")),_=g?function YG(r,e,t,a,n,i){var o=e.getModel("axisPointer"),l={};A(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(v){l[v]=et(o.get(v))}),l.snap="category"!==r.type&&!!i,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===n){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var h=l.lineStyle=o.get("crossStyle");h&&Q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Rt(l,t,a))}(m,h,n,e,g,y):_;var b=_.get("snap"),x=gl(m.model),w=y||b||"category"===m.type,T=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:w,snap:b,useHandle:pg(_),seriesModels:[],linkGroup:null};u[x]=T,r.seriesInvolved=r.seriesInvolved||w;var C=function XG(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(vg(i[a+"AxisId"],t.id)||vg(i[a+"AxisIndex"],t.componentIndex)||vg(i[a+"AxisName"],t.name))return n}}(i,m);if(null!=C){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[x]=T,M.mapper=i[C].mapper,T.linkGroup=M}}}})}(t,r,e),t.seriesInvolved&&function ZG(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||"none"===n||!1===n||"item"===n||!1===i||!1===t.get(["axisPointer","show"],!0)||A(r.coordSysAxesInfo[gl(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),null==o.seriesDataCount&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}(t,r),t}(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jY)}var i8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l=s.polar,f=l.getOtherAxis(s).getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&"none"!==v){var c=Yy(i),p=s8[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var g=function o8(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u,f,h,l=a.getRadiusAxis().getExtent();if("radius"===i.dim){var v=[1,0,0,1,0,0];Ma(v,v,s),gr(v,v,[a.cx,a.cy]),u=Ar([o,-n],v);var c=e.getModel("axisLabel").get("rotate")||0,p=ga.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}(a,n,0,l,i.get(["label","margin"]));ND(t,n,i,o,g)},e}(Uy),s8={line:function(r,e,t,a){return"angle"===r.dim?{type:"Line",shape:Xy(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return"angle"===r.dim?{type:"Sector",shape:GD(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(n/2-t)*i)}:{type:"Sector",shape:GD(e.cx,e.cy,t-n/2,t+n/2,0,2*Math.PI)}}};const l8=i8;var u8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.findAxisModel=function(t){var a;return this.ecModel.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(_t);const f8=u8;var Ky=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qt).models[0]},e.type="polarAxis",e}(_t);Zt(Ky,co);var h8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="angleAxis",e}(Ky),v8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="radiusAxis",e}(Ky),jy=function(r){function e(t,a){return r.call(this,"radius",t,a)||this}return O(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e}(lr);jy.prototype.dataToRadius=lr.prototype.dataToCoord,jy.prototype.radiusToData=lr.prototype.coordToData;const c8=jy;var p8=Tt(),Qy=function(r){function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return O(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=ss(null==s?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7)/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=p8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return null!=d&&null!=g&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(lr);Qy.prototype.dataToAngle=lr.prototype.dataToCoord,Qy.prototype.angleToData=lr.prototype.coordToData;const d8=Qy;var KD=["radius","angle"],g8=function(){function r(e){this.dimensions=KD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new c8,this._angleAxis=new d8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){return this["_"+e+"Axis"]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=360*f;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI;return[Math.cos(a)*t+this.cx,-Math.sin(a)*t+this.cy]},r.prototype.getArea=function(){var e=this.getAngleAxis(),a=this.getRadiusAxis().getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(e,t,a){return jD(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return jD(t)===this?this.pointToData(a):null},r}();function jD(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const y8=g8;function _8(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(qf(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(qf(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),$n(a.scale,a.model),$n(n.scale,n.model),"category"===a.type&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function QD(r,e){if(r.type=e.get("type"),r.scale=al(e),r.onBand=e.get("boundaryGap")&&"category"===r.type,r.inverse=e.get("inverse"),function S8(r){return"angleAxis"===r.mainType}(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var x8={dimensions:KD,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new y8(n+"");i.update=_8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");QD(o,l),QD(s,u),function m8(r,e,t){var a=e.get("center"),n=t.getWidth(),i=t.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=e.get("radius");null==l?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if("polar"===a.get("coordinateSystem")){var n=a.getReferringComponents("polar",Qt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const b8=x8;var w8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Oh(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Nh(r){return r.getRadiusAxis().inverse?0:1}function JD(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var T8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return O(e,r),e.prototype.render=function(t,a){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=G(n.getViewLabels(),function(f){f=et(f);var h=n.scale,v="ordinal"===h.type?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});JD(u),JD(s),A(w8,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||"axisLine"===f)&&C8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ui),C8={axisLine:function(r,e,t,a,n,i){var u,o=e.getModel(["axisLine","lineStyle"]),s=Nh(t),l=s?0:1;(u=0===i[l]?new Tr({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):new Bs({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0})).style.fill=null,r.add(u)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Nh(t)],u=G(a,function(f){return new ie({shape:Oh(t,[l,l+s],f.coord)})});r.add(Ye(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Nh(t)],f=[],h=0;h<n.length;h++)for(var v=0;v<n[h].length;v++)f.push(new ie({shape:Oh(t,[u,u+l],n[h][v].coord)}));r.add(Ye(f,{style:Q(s.getModel("lineStyle").getLineStyle(),Q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");A(o,function(h,v){var c=l,p=h.tickValue,d=i[Nh(t)],g=t.coordToPoint([d+u,h.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];J(b)&&b.textStyle&&(c=new Rt(b.textStyle,l,l.ecModel))}var x=new xt({silent:ga.isLabelSilent(e),style:Ot(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=ga.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=h.rawLabel,nt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<a.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new ie({shape:Oh(t,i,a[h].coord)}))}for(h=0;h<f.length;h++)r.add(Ye(f[h],{style:Q({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new ie({shape:Oh(t,i,n[u][f].coord)}));r.add(Ye(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,v=-a[0].coord*h,c=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Me({shape:{cx:t.cx,cy:t.cy,r0:c,r:p,startAngle:v,endAngle:-m*h,clockwise:d},silent:!0})),v=-m*h}for(g=0;g<f.length;g++)r.add(Ye(f[g],{style:Q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const A8=T8;var M8=["axisLine","axisTickLabel","axisName"],D8=["splitLine","splitArea","minorSplitLine"],L8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return O(e,r),e.prototype.render=function(t,a){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new rt;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),c=function P8(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(s,t,h),p=new ga(t,c);A(M8,p.add,p),i.add(p.getGroup()),Fs(n,i,t),A(D8,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&I8[d](this.group,t,s,h,v,u,f)},this)}},e.type="radiusAxis",e}(ui),I8={splitLine:function(r,e,t,a,n,i){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Tr({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[h].coord,0)}}))}for(h=0;h<f.length;h++)r.add(Ye(f[h],{style:Q({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var l=e.getModel("minorSplitLine").getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Tr({shape:{cx:t.cx,cy:t.cy,r:o[f][h].coord}}));r.add(Ye(u,{style:Q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=i[0].coord,v=1;v<i.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Me({shape:{cx:t.cx,cy:t.cy,r0:h,r:i[v].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=i[v].coord}for(v=0;v<f.length;v++)r.add(Ye(f[v],{style:Q({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const R8=L8;function $D(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function tL(r,e){return e.dim+r.model.componentIndex}const O8=function E8(r,e,t){var a={},n=function k8(r){var e={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=tL(o,s),u=s.getExtent(),f="category"===s.type?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=$D(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=H(a.get("barWidth"),f),d=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),null!=g&&(h.gap=g),null!=y&&(h.categoryGap=y)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,s=H(a.categoryGap,a.bandWidth),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(i,function(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c,v=0;A(i,function(d,g){d.width||(d.width=h),c=d,v+=d.width*(1+l)}),c&&(v-=c.width*l);var p=-v/2;A(i,function(d,g){t[n][g]=t[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}(Lt(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&"polar"===i.coordinateSystem.type}));e.eachSeriesByType(r,function(i){if("polar"===i.coordinateSystem.type){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=tL(s,l),f=$D(i),h=n[u][f],v=h.offset,c=h.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[f]=a[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=pa(o,_),x="radius"!==l.dim||!i.get("roundCap",!0),w=p.dataToCoord(0),T=0,C=o.count();T<C;T++){var M=o.get(_,T),D=o.get(S,T),L=M>=0?"p":"n",I=w;b&&(a[f][D]||(a[f][D]={p:w,n:w}),I=a[f][D][L]);var P=void 0,R=void 0,E=void 0,N=void 0;if("radius"===p.dim){var k=p.dataToCoord(M)-w,B=l.dataToCoord(D);Math.abs(k)<y&&(k=(k<0?-1:1)*y),P=I,R=I+k,N=(E=B-v)-c,b&&(a[f][D][L]=R)}else{var F=p.dataToCoord(M,x)-w,W=l.dataToCoord(D);Math.abs(F)<m&&(F=(F<0?-1:1)*m),R=(P=W+v)+c,E=I,N=I+F,b&&(a[f][D][L]=N)}o.setItemLayout(T,{cx:d,cy:g,r0:P,r:R,startAngle:-E*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:E>=N})}}})};var N8={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},V8={splitNumber:5},B8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="polar",e}(Gt);function Jy(r,e){e=e||{};var a=r.axis,n={},i=a.position,o=a.orient,s=r.coordinateSystem.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=["vertical"===o?u.vertical[i]:l[0],"horizontal"===o?u.horizontal[i]:l[3]],n.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,right:1,left:-1}[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ee(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var v=e.rotate;return null==v&&(v=r.get(["axisLabel","rotate"])),n.labelRotation="top"===i?-v:v,n.z2=1,n}var G8=["axisLine","axisTickLabel","axisName"],F8=["splitArea","splitLine"],H8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new rt;var l=Jy(t),u=new ga(t,l);A(G8,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),A(F8,function(f){t.get([f,"show"])&&W8[f](this,this.group,this._axisGroup,t)},this),Fs(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){bC(this)},e.type="singleAxis",e}(ui),W8={splitLine:function(r,e,t,a){var n=a.axis;if(!n.scale.isBlank()){var i=a.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=a.coordinateSystem.getRect(),f=n.isHorizontal(),h=[],v=0,c=n.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<c.length;++g){var y=n.toGlobalCoord(c[g].coord);f?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new ie({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});ro(m.shape,l);var _=v++%s.length;h[_]=h[_]||[],h[_].push(m)}var S=o.getLineStyle(["color"]);for(g=0;g<h.length;++g)e.add(Ye(h[g],{style:Q({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,a){xC(r,t,a,a)}};const U8=H8;var eL=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(_t);Zt(eL,co.prototype);const $y=eL;var Y8=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return O(e,r),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e}(lr);const Z8=Y8;var rL=["single"],X8=function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=rL,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=new Z8(this.dimension,al(e),[0,0],e.get("type"),e.get("position"));i.onBand="category"===i.type&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();A(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),$n(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=Jt({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis();return"horizontal"===a.orient?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),n=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[i]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-i]=0===i?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(e,t,a){return aL(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return aL(t)===this?this.pointToData(a):null},r}();function aL(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const q8=X8;var j8={create:function K8(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new q8(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if("singleAxis"===a.get("coordinateSystem")){var n=a.getReferringComponents("singleAxis",Qt).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t},dimensions:rL};const Q8=j8;var nL=["x","y"],J8=["width","height"],$8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=tm(l,1-Vh(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&"none"!==h){var v=Yy(i),c=t7[h](s,f,u);c.style=v,t.graphicKey=c.type,t.pointer=c}BD(a,t,Jy(n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Jy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Zy(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Vh(o),u=tm(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=tm(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(Uy),t7={line:function(r,e,t){return{type:"Line",subPixelOptimize:!0,shape:Xy([e,t[0]],[e,t[1]],Vh(r))}},shadow:function(r,e,t){var a=r.getBandWidth();return{type:"Rect",shape:zD([e-a/2,t[0]],[a,t[1]-t[0]],Vh(r))}}};function Vh(r){return r.isHorizontal()?0:1}function tm(r,e){var t=r.getRect();return[t[nL[e]],t[nL[e]]+t[J8[e]]]}const e7=$8;var r7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="single",e}(Gt),n7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a,n){var i=Yi(t);r.prototype.init.apply(this,arguments),iL(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),iL(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(_t);function iL(r,e){var a,t=r.cellSize;1===(a=z(t)?t:r.cellSize=[t,t]).length&&(a[1]=a[0]);var n=G([0,1],function(i){return function vk(r,e){return null!=r[Gn[e][0]]||null!=r[Gn[e][1]]&&null!=r[Gn[e][2]]}(e,i)&&(a[i]="auto"),null!=a[i]&&"auto"!==a[i]});Fa(r,e,{type:"box",ignoreSize:n})}const i7=n7;var o7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new St({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){p(h.formatedDate),0===v&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}p(s.getNextNDay(a.end.time,1).formatedDate),u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Le({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f["horizontal"===n?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return U(t)&&t?function lk(r,e,t){return A(e,function(a,n){r=r.replace("{"+n+"}",t?we(a):a)}),r}(t,a):j(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];"bottom"===i?(l+=o,u=["center","top"]):"left"===i?s-=o:"right"===i?(s+=o,u=["center","top"]):l-=o;var f=0;return("left"===i||"right"===i)&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l="horizontal"!==n?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v="horizontal"===n?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),y=this._formatterLabel(d,{start:a.start.y,end:a.end.y,nameMap:p}),m=new xt({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return"horizontal"===n?(f+=o,a&&(s="center"),"start"===i&&(l="bottom")):(u+=o,a&&(l="middle"),"start"===i&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(a=ip(s)||a),s=a.get(["time","monthAbbr"])||[]);var v="start"===u?0:1,c="horizontal"===n?0:1;l="start"===u?-l:l;for(var p="center"===f,d=0;d<h[v].length-1;d++){var g=h[v][d].slice(),y=this._firstDayOfMonth[d];p&&(g[c]=(this._firstDayPoints[d][c]+h[0][d+1][c])/2);var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new xt({z2:30,style:V(Ot(o,{text:x}),this._monthTextPositionControl(g,p,n,u,l))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],h="start"===n;return"horizontal"===a?(u=u+i+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+i+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();f&&!U(f)||(f&&(a=ip(f)||a),f=a.get(["time","dayOfWeekShort"])||G(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]}));var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=H(h,Math.min(d[1],d[0])),"start"===u&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var g=0;g<7;g++){var _,y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center;_=Math.abs((g+v)%7);var S=new xt({z2:30,style:V(Ot(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,h,d))});o.add(S)}}},e.type="calendar",e}(Gt);const s7=o7;var em=864e5,l7=function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){var t=(e=Ue(e)).getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return{y:t+"",m:n,d:o,day:s=Math.abs((s+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[a,7]:[7,a];A([0,1],function(h){f(i,h)&&(o[n[h]]=i[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Jt(o,l);function f(h,v){return null!=h[v]&&"auto"!==h[v]}A([0,1],function(h){f(i,h)||(i[h]=u[n[h]]/s[h])}),this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),null==t&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+em))return[NaN,NaN];var o=a.day,s=this._getRangeInfo([n.start.time,a.formatedDate]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var a=this.dataToPoint(e,t);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=oL(t);return n===this?n.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=oL(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(z(e)&&1===e.length&&(e=e[0]),z(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var a,t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/em)-Math.floor(t[0].time/em)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),h=a?1-f:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=7*(e-1)-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeries(function(n){"calendar"===n.get("coordinateSystem")&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function oL(r){var e=r.calendarModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}const u7=l7;function sL(r,e){var t;return A(e,function(a){null!=r[a]&&"auto"!==r[a]&&(t=!0)}),t}var lL=["transition","enterFrom","leaveTo"],c7=lL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bh(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),r&&e)for(var a=t?lL:c7,n=0;n<a.length;n++){var i=a[n];null==r[i]&&null!=e[i]&&(r[i]=e[i])}}var d7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return O(e,r),e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=T_(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,h){var v=f.newOption;!v||(u.push(v),function h7(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),null==e.parentId){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}(f,v),function v7(r,e,t){var a=V({},t),n=r[e],i=t.$action||"merge";"merge"===i?n?(ot(n,a,!0),Fa(n,a,{ignoreSize:!0}),$S(t,n),Bh(t,n),Bh(t,n,"shape"),Bh(t,n,"style"),Bh(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:"replace"===i?r[e]=a:"remove"===i&&n&&(r[e]=null)}(o,h,v),function p7(r,e){if(r&&(r.hv=e.hv=[sL(e,["left","right"]),sL(e,["top","bottom"])],"group"===r.type)){var t=r,a=e;null==t.width&&(t.width=a.width=0),null==t.height&&(t.height=a.height=0)}}(o[h],v))},this),n.elements=Lt(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(t,a,n){A(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(_t),uL={path:null,compoundPath:null,group:rt,image:ue,text:xt},cr=Tt(),g7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){this._elMap=q()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");A(a,function(l){var u=te(l.id,null),f=null!=u?n.get(u):null,h=te(l.parentId,null),v=null!=h?n.get(h):i,c=l.type,p=l.style;"text"===c&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&vD(p,c,!!g,!!d)){var y=cD(p,c,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=function y7(r){return r=V({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(JS),function(e){delete r[e]}),r}(l),_=l.$action||"merge",S="merge"===_,b="replace"===_;if(S){var w=f;(x=!f)?w=fL(u,v,l.type,n):(w&&(cr(w).isNew=!1),wD(w)),w&&(Ih(w,m,t,{isInit:x}),hL(w,l,o,s))}else if(b){zh(f,l,n,t);var T=fL(u,v,l.type,n);T&&(Ih(T,m,t,{isInit:!0}),hL(T,l,o,s))}else"remove"===_&&(_D(f,l),zh(f,l,n,t));var C=n.get(u);if(C&&d)if(S){var M=C.getTextContent();M?M.attr(d):C.setTextContent(new xt(d))}else b&&C.setTextContent(new xt(d));if(C){var D=l.clipPath;if(D){var L=D.type,I=void 0,x=!1;if(S){var P=C.getClipPath();I=(x=!P||cr(P).type!==L)?rm(L):P}else b&&(x=!0,I=rm(L));C.setClipPath(I),Ih(I,D,t,{isInit:x}),Rh(I,D.keyframeAnimation,t)}var R=cr(C);C.setTextConfig(g),R.option=l,function m7(r,e,t){var a=nt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}(C,t,l),no({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),Rh(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++)if((c=null!=(v=te((h=n[f]).id,null))?o.get(v):null)&&c.isGroup){var d=(p=c.parent)===i,g=cr(c),y=cr(p);g.width=H(g.option.width,d?s:y.width)||0,g.height=H(g.option.height,d?l:y.height)||0}for(f=n.length-1;f>=0;f--){var h,v,c;if(c=null!=(v=te((h=n[f]).id,null))?o.get(v):null){y=cr(p=c.parent);var p,_={},S=Qu(c,h,p===i?{width:s,height:l}:{width:y.width,height:y.height},null,{hv:h.hv,boundingMode:h.bounding},_);if(!cr(c).isNew&&S){for(var b=h.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(mi(b)||ht(b,T)>=0)?x[T]=C:c[T]=C}Ct(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){zh(n,cr(n).option,a,t._lastGraphicModel)}),this._elMap=q()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Gt);function rm(r){var t=new(Z(uL,r)?uL[r]:yf(r))({});return cr(t).type=r,t}function fL(r,e,t,a){var n=rm(t);return e.add(n),a.set(r,n),cr(n).id=r,cr(n).isNew=!0,n}function zh(r,e,t,a){r&&r.parent&&("group"===r.type&&r.traverse(function(i){zh(i,e,t,a)}),Ph(r,e,a),t.removeKey(cr(r).id))}function hL(r,e,t,a){r.isGroup||A([["cursor",tr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];Z(e,i)?r[i]=st(e[i],n[1]):null==r[i]&&(r[i]=n[1])}),A(mt(e),function(n){if(0===n.indexOf("on")){var i=e[n];r[n]=j(i)?i:null}}),Z(e,"draggable")&&(r.draggable=e.draggable),null!=e.name&&(r.name=e.name),null!=e.id&&(r.id=e.id)}var vL=["x","y","radius","angle","single"],S7=["cartesian2d","polar","singleAxis"];function nn(r){return r+"Axis"}function cL(r){var e=r.ecModel,t={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(nn(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(t.infoList.push(l={model:o,axisModels:[]}),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var am=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),w7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return O(e,r),e.prototype.init=function(t,a,n){var i=pL(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=pL(t);ot(this.option,t,!0),ot(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){"value"===this._rangePropMode[o]&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=q();this._fillSpecifiedTargetAxis(a)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(vL,function(n){var i=this.getReferringComponents(nn(n),CR);if(i.specified){a=!0;var o=new am;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o="vertical"===a?"y":"x";l(n.findComponents({mainType:o+"Axis"}),o)}function l(u,f){var h=u[0];if(h){var v=new am;if(v.add(h.componentIndex),t.set(f,v),i=!1,"x"===f||"y"===f){var c=h.getReferringComponents("grid",Qt).models[0];c&&A(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Qt).models[0]&&v.add(p.componentIndex)})}}}i&&l(n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}}),"single"),i&&A(vL,function(u){if(i){var f=n.findComponents({mainType:nn(u),filter:function(v){return"category"===v.get("type",!0)}});if(f[0]){var h=new am;h.add(f[0].componentIndex),t.set(u,h),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=null!=t[i[0]],l=null!=t[i[1]];s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){null==t&&(t=this.ecModel.getComponent(nn(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(nn(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(null!=t||null!=a)return this.getAxisProxy(t,a).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(_t);function pL(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const Ol=w7;var T7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.select",e}(Ol);const C7=T7;var A7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e}(Gt);const nm=A7;var M7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.select",e}(nm);const D7=M7;var Do=A,dL=We,L7=function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function x7(r){var e=r.get("coordinateSystem");return ht(S7,e)>=0}(t)){var a=nn(this._dimName),n=t.getReferringComponents(a,Qt).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return et(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var u,t=this._dataExtent,n=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[];Do(["start","end"],function(v,c){var p=e[v],d=e[v+"Value"];"percent"===i[c]?(null==p&&(p=o[c]),d=n.parse(It(p,o,t))):(u=!0,p=It(d=null==d?t[c]:n.parse(d),t,o)),l[c]=null==d||isNaN(d)?t[c]:d,s[c]=null==p||isNaN(p)?o[c]:p}),dL(l),dL(s);var f=this._minMaxSpan;function h(v,c,p,d,g){var y=g?"Span":"ValueSpan";di(0,v,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=It(v[m],p,d,!0),g&&(c[m]=n.parse(c[m]))}return u?h(l,s,t,o,!1):h(s,l,o,t,!0),{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function I7(r,e,t){var a=[1/0,-1/0];Do(t,function(o){!function HB(r,e,t){e&&A(qf(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}(a,o.getData(),e)});var n=r.getAxisModel(),i=Cw(n.axis.scale,n,a).calculate();return[i.min,i.max]}(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&Do(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if("weakFilter"===i){var h=u.getStore(),v=G(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var p,d,g,y=0;y<f.length;y++){var m=h.get(v[y],c),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Do(f,function(c){if("empty"===i)l.setData(u=u.map(c,function(d){return function s(l){return l>=o[0]&&l<=o[1]}(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Do(f,function(c){u.setApproximateExtent(o,c)})}})}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;Do(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=It(a[0]+o,a,[0,100],!0):null!=i&&(o=It(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=dc(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),100!==t[1]&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();const P7=L7;var R7={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(nn(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new P7(n,i,s,r),t.push(o.__dzAxisProxy))});var a=q();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const E7=R7;var gL=!1;function im(r){gL||(gL=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,E7),function k7(r){r.registerAction("dataZoom",function(e,t){A(function b7(r,e){var i,t=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});do{i=!1,r.eachComponent("dataZoom",o)}while(i);function o(f){!n.get(f.uid)&&function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}(f)}return a}(t,e),function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function O7(r){r.registerComponentModel(C7),r.registerComponentView(D7),im(r)}var pr=function r(){},yL={};function Lo(r,e){yL[r]=e}function mL(r){return yL[r]}var N7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,n){var i=mL(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ot(a,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(_t);const V7=N7;function _L(r,e){var t=Bn(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),new St({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1})}var z7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var s=+t.get("itemSize"),l="vertical"===t.get("orient"),u=t.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(p,d){h.push(d)}),new ca(this._featureNames||[],h).add(v).update(v).remove(it(v,null)).execute(),this._featureNames=h,function B7(r,e,t){var a=e.getBoxLayoutParams(),n=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=Jt(a,i,n);Fn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Qu(r,a,i,n)}(o,t,n),o.add(_L(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!j(_)&&d){var S=_.style||(_.style={}),b=ss(d,xt.makeFont(S)),x=p.x+o.x,T=!1;p.y+o.y+s+b.height>n.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})}function v(p,d){var S,g=h[p],y=h[d],m=u[g],_=new Rt(m,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(function G7(r){return 0===r.indexOf("my")}(g))S={onclick:_.option.onclick,featureName:g};else{var b=mL(g);if(!b)return;S=new b}f[g]=S}else if(!(S=f[y]))return;S.uid=Hi("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof pr;g||!y?!_.get("show")||x&&S.unusable?x&&S.remove&&S.remove(a,n):(function c(p,d,g){var b,x,y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof pr&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{};U(_)?(b={})[g]=_:b=_,U(S)?(x={})[g]=S:x=S;var w=p.iconPaths={};A(b,function(T,C){var M=ao(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle()),M.ensureState("emphasis").style=m.getItemStyle();var L=new xt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(L),no({el:M,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var I=m.getItemStyle(),P=l?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==p.get(["iconStatus",C])&&n.leaveEmphasis(this),L.hide()}),("emphasis"===p.get(["iconStatus",C])?ua:fa)(M),o.add(M),M.on("click",Y(d.onclick,d,a,n,C)),w[C]=M})}(_,S,g),_.setIconStatus=function(w,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,M[w]&&("emphasis"===T?ua:fa)(M[w])},S instanceof pr&&S.render&&S.render(_,a,n,i)):x&&S.dispose&&S.dispose(a,n)}},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o instanceof pr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){A(this._features,function(n){n instanceof pr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(n){n instanceof pr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Gt);const F7=z7;var H7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===a.getZr().painter.getType(),s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=bt.browser;if(j(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(pr);const W7=H7;var SL="__ec_magicType_stack__",U7=[["line","bar"],["stack"]],Y7=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(xL[n]){var s={series:[]};A(U7,function(h){ht(h,n)>=0&&A(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(h){var p=xL[n](h.subType,h.id,h,i);p&&(Q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&"cartesian2d"===d.type&&("line"===n||"bar"===n)){var g=d.getAxesByScale("ordinal")[0];if(g){var m=g.dim+"Axis",S=h.getReferringComponents(m,Qt).models[0].componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap="bar"===n}}});var u,f=n;"stack"===n&&(u=ot({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(pr),xL={line:function(r,e,t,a){if("bar"===r)return ot({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if("line"===r)return ot({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===SL;if("line"===r||"bar"===r)return a.setIconStatus("stack",n?"normal":"emphasis"),ot({id:e,stack:n?"":SL},a.get(["option","stack"])||{},!0)}};Dr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const Z7=Y7;var Gh=new Array(60).join("-");function q7(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,o=t.valueAxis.dim,s=[" "].concat(G(t.series,function(c){return c.name})),l=[n.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join("\t")],f=0;f<l[0].length;f++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][f]);u.push(h.join("\t"))}e.push(u.join("\n"))}),e.join("\n\n"+Gh+"\n\n")}function K7(r){return G(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+"\t":"")+n.join("\t"))}),a.join("\n")}).join("\n\n"+Gh+"\n\n")}function Fh(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var om=new RegExp("[\t]+","g");var eZ=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=function j7(r){var e=function X7(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)t.push(n);else{var o=i.getBaseAxis();if("category"===o.type){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}(r);return{value:Lt([q7(e.seriesGroupByCategoryAxis),K7(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+Gh+"\n\n"),meta:e.meta}}(t);if(j(h)){var p=h(a.getOption());U(p)?u.innerHTML=p:wi(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}Pv(_,"click",x),Pv(S,"click",function(){if(null==v&&null!=h||null!=v&&null==h)x();else{var w;try{w=j(v)?v(u,a.getOption()):function tZ(r,e){var t=r.split(new RegExp("\n*"+Gh+"\n*","g")),a={series:[]};return A(t,function(n,i){if(function Q7(r){if(r.slice(0,r.indexOf("\n")).indexOf("\t")>=0)return!0}(n)){var o=function J7(r){for(var e=r.split(/\n+/g),a=[],n=G(Fh(e.shift()).split(om),function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Fh(e[i]).split(om);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else o=function $7(r){for(var e=r.split(/\n+/g),t=Fh(e.shift()),a=[],n=0;n<e.length;n++){var i=Fh(e[n]);if(i){var o=i.split(om),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);1===l.length&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}(n),a.series.push(o)}),a}(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(pr);function rZ(r,e){return G(r,function(t,a){var n=e&&e[a];if(J(n)&&!z(n)){J(t)&&!z(t)||(t={value:t});var o=null!=n.name&&null==t.name;return t=Q(t,n),o&&delete t.name,t}return t})}Dr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(n){var i=n.get("data");t.push({name:a.name,data:rZ(a.data,i)})}else t.push(V({type:"scatter"},a))}),e.mergeOption(Q({series:t},r.newOption))});const aZ=eZ;var bL=A,wL=Tt();function sm(r){var e=wL(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var lZ=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.onclick=function(t,a){(function oZ(r){wL(r).snapshots=null})(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(pr);Dr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const uZ=lZ;var fZ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],hZ=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=TL(t,e);A(vZ,function(o,s){(!a||!a.include||ht(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=um[a.brushType](0,i,n);a.__rangeOffset={offset:DL[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&!0!==i&&A(i.coordSyses,function(o){var s=um[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&!0!==n){a.panelId=n.panelId;var i=um[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?DL[a.brushType](i.values,o.offset,function cZ(r,e){var t=IL(r),a=IL(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:MM(n),isTargetByCursor:LM(n,e,a.coordSysModel),getLinearBrushOtherExtent:DM(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return!0===n||n&&ht(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=TL(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<CL.length;l++)if(CL[l](n,o))return o}return!0},r}();function lm(r){return r[0]>r[1]&&r.reverse(),r}function TL(r,e){return vs(r,e,{includeMainTypes:fZ})}var vZ={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=q(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var f=[];A(l.coordinateSystem.getCartesians(),function(h,v){(ht(t,h.getAxis("x").model)>=0||ht(a,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:AL.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:AL.geo})})}},CL=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],AL={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Ua(r)),e}},um={lineX:it(ML,0),lineY:it(ML,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[lm([n[0],i[0]]),lm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:G(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s}),xyMinMax:n}}};function ML(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=lm(G([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var DL={lineX:it(LL,0),lineY:it(LL,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function LL(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function IL(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const fm=hZ;var hm=A,pZ=function SR(r){return"\0_ec_\0"+r}("toolbox-dataZoom_"),dZ=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new my(n.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),function mZ(r,e,t,a,n){var i=t._isZoomActive;a&&"takeGlobalCursor"===a.type&&(i="dataZoomSelect"===a.key&&a.dataZoomSelectActive),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var s=new fm(vm(r),e,{include:["grid"]}).makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()})}(t,a,this,i,n),function yZ(r,e){r.setIconStatus("back",function sZ(r){return sm(r).length}(e)>1?"emphasis":"normal")}(t,a)},e.prototype.onclick=function(t,a,n){gZ[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(t.isEnd&&a.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new fm(vm(this.model),i,{include:["grid"]}).matchOutputRanges(a,i,function(u,f,h){if("cartesian2d"===h.type){var v=u.brushType;"rect"===v?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),function nZ(r,e){var t=sm(r);bL(e,function(a,n){for(var i=t.length-1;i>=0&&!t[i][n];i--);if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}(i,n),this._dispatchZoomAction(n)}function s(u,f,h){var v=f.getAxis(u),c=v.model,p=function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){c.getAxisModel(u,f.componentIndex)&&(v=c)}),v}(u,c,i),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(null!=d.minValueSpan||null!=d.maxValueSpan)&&(h=di(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}},e.prototype._dispatchZoomAction=function(t){var a=[];hm(t,function(n,i){a.push(et(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(pr),gZ={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function iZ(r){var e=sm(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return bL(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i]){a[i]=n;break}}),a}(this.ecModel))}};function vm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}!function mk(r,e){de(null==mp.get(r)&&e),mp.set(r,e)}("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(e&&null!=e.get(t)){var a=e.getModel(t),n=[],o=vs(r,vm(a));return hm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),hm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")}),n}function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:pZ+u+h};v[f]=h,n.push(v)}});const _Z=dZ;var xZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(_t);const bZ=xZ;function PL(r){var e=r.get("confine");return null!=e?!!e:"richText"===r.get("renderMode")}function RL(r){if(bt.domSupported)for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}var EL=RL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function kL(r,e){if(!r)return e;e=hp(e,!0);var t=r.indexOf(e);return(r=-1===t?e:"-"+r.slice(0,t)+"-"+e).toLowerCase()}var CZ=kL(RL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),cm=kL(EL,"transform"),AZ="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(bt.transform3dSupported?"will-change:transform;":"");function OL(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!bt.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=bt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+cm+":"+o+";":[["top",0],["left",0],[EL,o]]}function NL(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&function FP(r,e,t,a,n){Mv(Av,e,a,n,!0)&&Mv(r,t,Av[0],Av[1])}(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var RZ=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,bt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;NL(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler;Qe(i.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=function TZ(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}(t,"position"),n=t.style;"absolute"!==n.position&&"absolute"!==a&&(n.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=AZ+function PZ(r,e,t){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=nx(r,"html");return a.push("box-shadow:"+l+"px "+u+"px "+o+"px "+s),e&&n&&a.push(function LZ(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,n="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,n+=bt.transformSupported?","+cm+a:",left"+a+",top"+a),CZ+":"+n}(n,t)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(c){var p="border-"+c,d=hp(p),g=r.get(d);null!=g&&a.push(p+":"+g+("color"===c?"":"px"))}),a.push(function IZ(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(3*t/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}(f)),null!=h&&a.push("padding:"+Bn(h).join("px ")+"px"),a.join(";")+";"}(e,!this._firstShow,this._longHide)+OL(i[0],i[1],!0)+"border-color:"+zn(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(null!=e){var s="";if(U(i)&&"item"===a.get("trigger")&&!PL(a)&&(s=function DZ(r,e,t){if(!U(t)||"inside"===t)return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=zn(e);var u,i=function MZ(r){return"left"===r?"right":"right"===r?"left":"top"===r?"bottom":"top"}(t),o=Math.max(1.5*Math.round(n),6),s="",l=cm+":";ht(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u="left"===i?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u="top"===i?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),p=e+" solid "+n+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2))/100+"px")+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"].join("")+'"></div>'}(a,n,i)),U(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)wi(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)}}}else o.innerHTML=""},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var a=this._styleCoord;if(NL(a,this._zr,this._appendToBody,e,t),null!=a[0]&&null!=a[1]){var n=this.el.style;A(OL(a[0],a[1]),function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",bt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const EZ=RZ;var kZ=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),BL(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;J(e)&&Dt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new xt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:nx(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=VL(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;BL(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=on(i.borderWidth||0),s=VL(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function on(r){return Math.max(0,r)}function VL(r){var e=on(r.shadowBlur||0),t=on(r.shadowOffsetX||0),a=on(r.shadowOffsetY||0);return{left:on(e-t),right:on(e+t),top:on(e-a),bottom:on(e+a)}}function BL(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const OZ=kZ;var NZ=new St({shape:{x:-1,y:-1,width:2,height:2}}),VZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){if(!bt.node&&a.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=function MR(r){return"auto"===r?bt.domSupported?"html":"richText":r||"html"}(n.get("renderMode"));this._tooltipContent="richText"===i?new OZ(a):new EZ(a.getDom(),a,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,a,n){if(!bt.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?io(this,"_updatePosition",50,"fixRate"):Ws(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var a=this._tooltipModel.get("triggerOn");WD("itemTooltip",this._api,Y(function(n,i,o){"none"!==a&&(a.indexOf(n)>=0?this._tryShow(i,o):"leave"===n&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(i.from!==this.uid&&!bt.node&&n.getDom()){var o=zL(i,n);this._ticket="";var s=i.dataByCoordSys,l=function FZ(r,e,t){var a=bc(r).queryOptionMap,n=a.keys()[0];if(n&&"series"!==n){var l,o=cs(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(t.getViewOfComponentModel(o).group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l))return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}(i,a,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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var f=NZ;f.x=i.x,f.y=i.y,f.update(),nt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,a,n,i))return;var h=YD(i,a),v=h.point[0],c=h.point[1];null!=v&&null!=c&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(zL(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=l){var u=a.getSeriesByIndex(o);if(u&&"axis"===Nl([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(t,a){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s,l;this._lastDataByCoordSys=null,qn(n,function(u){return null!=nt(u).dataIndex?(s=u,!0):null!=nt(u).tooltipConfig?(l=u,!0):void 0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Y(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Nl([a.tooltipOption],i),l=this._renderMode,u=[],f=ne("section",{blocks:[],noHeader:!0}),h=[],v=new Np;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(S&&null!=b){var x=VD(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=ne("section",{header:x,noHeader:!Ke(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=kd(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",zn(D.color),l);var L=V1(C.formatTooltip(M,!0,null)),I=L.frag;if(I){var P=Nl([C],i).get("valueFormatter");w.blocks.push(P?V({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,p=s.get("order"),d=ex(f,v,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var y=h.join("richText"===l?"\n\n":"<br/>");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=nt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Nl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(null==g||"item"===g){var y=u.getDataParams(f,h),m=new Np;y.marker=m.makeTooltipMarker("item",zn(y.color),c);var _=V1(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?ex(b?V({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=nt(a),s=i.tooltipConfig.option||{};U(s)&&(s={content:s,formatter:s});var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=t.positionDefault,v=Nl(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),p=Math.random()+"",d=new Np;this._showOrMove(v,function(){var g=et(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")).color;if(v)if(U(v)){var g=t.ecModel.get("useUTC"),y=z(n)?n[0]:n;c=v,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(c=As(y.axisValue,c,g)),c=pp(c,n,!0)}else if(j(v)){var _=Y(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){return"axis"===n||z(a)?{color:i||("html"===this._renderMode?"#fff":"none")}:z(a)?void 0:{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),j(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(J(a)){var d=a;d.width=h[0],d.height=h[1];var g=Jt(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(U(a)&&l){var y=function GZ(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-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-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else y=function BZ(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return null!=i&&(r+l+i+2>a?r-=l+i:r+=i),null!=o&&(e+u+o>n?e-=u+o:e+=o),[r,e]}(n,i,o,u,f,v?null:20,c?null:20),n=y[0],i=y[1];v&&(n-=GL(v)?h[0]/2:"right"===v?h[0]:0),c&&(i-=GL(c)?h[1]/2:"bottom"===c?h[1]:0),PL(t)&&(y=function zZ(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,[r=Math.max(r,0),e=Math.max(e,0)]}(n,i,o,u,f),n=y[0],i=y[1]),o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],h=(t[l]||{}).dataByAxis||[];(o=o&&u.length===h.length)&&A(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];(o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length)&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){bt.node||!a.getDom()||(Ws(this,"_updatePosition"),this._tooltipContent.dispose(),qy("itemTooltip",a))},e.type="tooltip",e}(Gt);function Nl(r,e,t){var n,a=e.ecModel;t?(n=new Rt(t,a,a),n=new Rt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),U(o)&&(o={formatter:o}),o&&(n=new Rt(o,n,a)))}return n}function zL(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function GL(r){return"center"===r||"middle"===r}const HZ=VZ;var UZ=["rect","polygon","keep","clear"];function YZ(r,e){var t=Pt(r?r.brush:[]);if(t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(r.toolbox=[n={feature:{}}]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),function ZZ(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}(s),e&&!s.length&&s.push.apply(s,UZ)}}var FL=A;function HL(r){if(r)for(var e in r)if(r.hasOwnProperty(e))return!0}function pm(r,e,t){var a={};return FL(e,function(i){var o=a[i]=function n(){var i=function(){};return i.prototype.__hidden=i.prototype,new i}();FL(r[i],function(s,l){if(pe.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new pe(u),"opacity"===l&&((u=et(u)).type="colorAlpha",o.__hidden.__alphaForOpacity=new pe(u))}})}),a}function WL(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&HL(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&HL(e[n])?r[n]=et(e[n]):delete r[n]})}var UL={lineX:YL(0),lineY:YL(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&ti(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];return!!(ti(a,n,i)||ti(a,n+o,i)||ti(a,n,i+s)||ti(a,n+o,i+s)||ut.create(r).contain(l[0],l[1])||Hs(n,i,n+o,i,a)||Hs(n,i,n,i+s,a)||Hs(n+o,i,n+o,i+s,a)||Hs(n,i+s,n+o,i+s,a))||void 0}}};function YL(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a)return Vl(a[r],i.range)},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Vl(s[0],o)||Vl(s[1],o)||Vl(o[0],s)||Vl(o[1],s)}}}}function Vl(r,e){return e[0]<=r&&r<=e[1]}var ZL=["inBrush","outOfBrush"],dm="__ecBrushSelect",gm="__ecInBrushSelectEvent";function XL(r){r.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new fm(e.option,r)).setInputRanges(e.areas,r)})}function jZ(r,e,t){var n,i,a=[];r.eachComponent({mainType:"brush"},function(o){t&&"takeGlobalCursor"===t.type&&o.setBrushOption("brush"===t.key?t.brushOption:{brushType:!1})}),XL(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:et(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,h=[],v=[],c=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=G(o.areas,function(b){var x=t9[b.brushType],w=Q({boundingRect:x?x(b):void 0},b);return w.selectors=function KZ(r){var e=r.brushType,t={point:function(a){return UL[e].point(a,t,r)},rect:function(a){return UL[e].rect(a,t,r)}};return t}(w),w}),g=pm(o.option,ZL,function(b){b.mappingMethod="fixed"});function y(b){return"all"===f||!!h[b]}function m(b){return!!b.length}z(f)&&A(f,function(b){h[b]=1}),r.eachSeries(function(b,x){var w=c[x]=[];"parallel"===b.subType?function _(b,x){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){"active"===T&&(v[C]=1)})}(b,x):function S(b,x,w){if(b.brushSelector&&!function $Z(r,e){var t=r.option.seriesIndex;return null!=t&&"all"!==t&&(z(t)?ht(t,e)<0:e!==t)}(o,x)&&(A(d,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),p=p||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){qL(b,w,T,C)&&(v[C]=1)})}}(b,x,w)}),r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=c[x],C=b.getData(),M=y(x)?function(D){return v[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return qL(b,T,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(x)?p:m(T))&&function XZ(r,e,t,a,n,i){var s,o={};function l(h){return Qp(t,s,h)}function u(h,v){nb(t,s,h,v)}function f(h,v){var c=t.getRawDataItem(s=null==i?h:v);if(!c||!1!==c.visualMap)for(var p=a.call(n,h),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(h,l,u)}}A(r,function(h){var v=pe.prepareVisualTypes(e[h]);o[h]=v}),null==i?t.each(f):t.each([i],f)}(ZL,g,C,M)})}),function QZ(r,e,t,a,n){if(n){var i=r.getZr();i[gm]||(i[dm]||(i[dm]=JZ),io(i,dm,t,e)(r,a))}}(e,n,i,a,t)}function JZ(r,e){if(!r.isDisposed()){var t=r.getZr();t[gm]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[gm]=!1}}function qL(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}var t9={rect:function(r){return KL(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){var i=t[a];i[0]<(e=e||[[1/0,-1/0],[1/0,-1/0]])[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&KL(e)}};function KL(r){return new ut(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var e9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){this.ecModel=t,this.api=a,(this._brushController=new my(a.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){XL(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:et(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:et(n),$from:a})},e.type="brush",e}(Gt);const r9=e9;var n9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return O(e,r),e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&WL(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=G(t,function(a){return jL(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=jL(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(_t);function jL(r,e){return ot({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Rt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const i9=n9;var o9=["rect","polygon","lineX","lineY","keep","clear"],s9=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return O(e,r),e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,("keep"===l?"multiple"===o:"clear"===l?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;"clear"===n?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){return{show:!0,type:o9.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(pr);const l9=s9;var f9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return O(e,r),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(_t),h9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.render=function(t,a,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=st(t.get("textBaseline"),t.get("textVerticalAlign")),f=new xt({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new xt({style:Ot(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Ku(p,"_"+t.get("target"))}),d&&c.on("click",function(){Ku(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Jt(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?_.x+=_.width:"center"===l&&(_.x+=_.width/2)),u||("center"===(u=t.get("top")||t.get("bottom"))&&(u="middle"),"bottom"===u?_.y+=_.height:"middle"===u&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new St({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Gt),c9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var o,t=this.option,a=t.data||[],n=t.axisType,i=this._names=[];"category"===n?(o=[],A(a,function(u,f){var v,h=te(Oi(u),"");J(u)?(v=et(u)).value=f:v=f,o.push(v),i.push(h)})):o=a,(this._data=new xe([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[n]||"number"}],this)).initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(_t);const QL=c9;var JL=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="timeline.slider",e.defaultOption=Ga(QL.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(QL);Zt(JL,Lp.prototype);const p9=JL;var d9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="timeline",e}(Gt);const g9=d9;var y9=function(r){function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return O(e,r),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(lr);const m9=y9;var ym=Math.PI,$L=Tt(),_9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){return ne("nameValue",{noName:!0,value:l.scale.getLabel({value:u})})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var s,n=t.get(["label","position"]),i=t.get("orient"),o=function x9(r,e){return Jt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}(t,a),l={horizontal:"center",vertical:(s=null==n||"auto"===n?"horizontal"===i?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":U(n)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:n)>=0||"+"===s?"left":"right"},u={horizontal:s>=0||"+"===s?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:ym/2},h="vertical"===i?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*ym/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=h;"left"===b||"bottom"===b?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var s=[1,0,0,1,0,0],l=o.x,u=o.y+o.height;gr(s,s,[-l,-u]),Ma(s,s,-ym/2),gr(s,s,[l,u]),(o=o.clone()).applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=f[0][0];var g,d=t.labelPosOpt;function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}null==d||U(d)?(_(c,h,f,1,g="+"===d?0:1),_(p,v,f,1,1-g)):(_(c,h,f,1,g=d>=0?0:1),p[1]=c[1]+d),n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=function S9(r,e){if(e=e||r.get("type"))switch(e){case"category":return new Ld({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new bw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Ka}}(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new m9("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new rt;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ie({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ie({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=tI(h,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Ba(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this;if(n.getLabelModel().get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new xt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,h),silent:!1,style:Ot(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(p),y.ensureState("progress").style=Ot(d),a.add(y),Ba(y),$L(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);function v(c,p,d,g){if(c){var y=Sr(st(i.get(["controlStyle",p+"BtnSize"]),o),o),_=function b9(r,e,t,a){var n=a.style,i=ao(r.get(["controlStyle",e]),a||{},new ut(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}(i,p+"Icon",[0,-y/2,y,y],{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Ba(_)}}v(t.nextBtnPosition,"next",Y(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0)},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this;this._currentPointer=tI(l,l,this._mainGroup,{},this._currentPointer,{onCreate:function(h){h.draggable=!0,h.drift=Y(u._handlePointerDrag,u),h.ondragend=Y(u._handlePointerDragend,u),eI(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){eI(h,u._progressLine,s,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],o=We(this._axis.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return Ar(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var i,a=this.model.getData(),n=1/0,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();"+"===t?t=a+1:"-"===t&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",$L(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(g9);function tI(r,e,t,a,n,i){var o=e.get("color");n?(n.setColor(o),t.add(n),i&&i.onUpdate(n)):((n=Kt(r.get("symbol"),-1,-1,2,2,o)).setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n));var l=e.getItemStyle(["color"]);n.setStyle(l),a=ot({rectHover:!0,z2:100},a,!0);var u=Xs(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=so(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var h=r.get("symbolRotate");return a.rotation=(h||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function eI(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const w9=_9;function C9(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),A(e,function(t){!t||function A9(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),rI(r),Si(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Si(a,"position")||(a.position=r.controlPosition),"none"===a.position&&!Si(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){J(n)&&!z(n)&&(!Si(n,"value")&&Si(n,"name")&&(n.value=n.name),rI(n))})}(t)})}function rI(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!Si(n,s)&&(n[s]=o)}),t.label&&!Si(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Si(r,e){return r.hasOwnProperty(e)}function mm(r,e){if(!r)return!1;for(var t=z(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function Hh(r){bn(r,"label",["show"])}var Wh=Tt(),aI=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(bt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Wh(s)[o];l&&l.data?(u?u._mergeOption(l,a,!0):(i&&Hh(l),A(l.data,function(f){f instanceof Array?(Hh(f[0]),Hh(f[1])):Hh(f)}),V(u=this.createMarkerModelFromSeries(l,this,a),{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Wh(s)[o]=u):Wh(s)[o]=null},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return ne("section",{header:this.name,blocks:[ne("nameValue",{name:s,value:o,noName:!s,noValue:null==o})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,a){return Wh(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(_t);Zt(aI,Lp.prototype);const sn=aI;var D9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(sn);const L9=D9;function _m(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Uh(r,e,t,a,n,i){var o=[],l=pa(e,a)?e.getCalculationInfo("stackResultDimension"):a,u=xm(e,l,r),f=e.indicesOfNearest(l,u)[0];o[n]=e.get(t,f),o[i]=e.get(l,f);var h=e.get(a,f),v=xr(e.get(a,f));return(v=Math.min(v,20))>=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Sm={min:it(Uh,"min"),max:it(Uh,"max"),average:it(Uh,"average"),median:it(Uh,"median")};function Bl(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a.dimensions;if(!function I9(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}(e)&&!z(e.coord)&&a){var i=nI(e,t,a,r);if((e=et(e)).type&&Sm[e.type]&&i.baseAxis&&i.valueAxis){var o=ht(n,i.baseAxis.dim),s=ht(n,i.valueAxis.dim),l=Sm[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Sm[u[f]]&&(u[f]=xm(t,t.mapDimension(n[f]),u[f]));return e}}function nI(r,e,t,a){var n={};return null!=r.valueIndex||null!=r.valueDim?(n.valueDataDim=null!=r.valueIndex?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(function P9(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function zl(r,e){return!(r&&r.containData&&e.coord&&!_m(e))||r.containData(e.coord)}function iI(r,e){return r?function(t,a,n,i){return Ha(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,a,n,i){return Ha(t.value,e[i])}}function xm(r,e,t){if("average"===t){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}return"median"===t?r.getMedian(e):r.getDataExtent(e)["max"===t?1:0]}var bm=Tt(),E9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.init=function(){this.markerGroupMap=q()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){bm(s).keep=!1}),a.eachSeries(function(s){var l=sn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!bm(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){bm(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=sn.getMarkerModelFromSeries(i,n.type);o&&o.getData().eachItemGraphicEl(function(l){l&&(a?mS(l):Zc(l))})})},e.type="marker",e}(Gt);const wm=E9;function oI(r,e,t){var a=e.coordinateSystem;r.each(function(n){var o,i=r.getItemModel(n),s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var k9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markPoint");o&&(oI(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new vl),h=function O9(r,e,t){var a;a=r?G(r&&r.dimensions,function(s){return V(V({},e.getData().getDimensionInfo(e.getData().mapDimension(s))||{}),{name:s,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new xe(a,t),i=G(t.get("data"),it(Bl,e));r&&(i=Lt(i,it(zl,r)));var o=iI(!!r,a);return n.initData(i,null,o),n}(o,t,a);a.setData(h),oI(a.getData(),t,i),h.each(function(v){var c=h.getItemModel(v),p=c.getShallow("symbol"),d=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(j(p)||j(d)||j(g)||j(y)){var _=a.getRawValue(v),S=a.getDataParams(v);j(p)&&(p=p(_,S)),j(d)&&(d=d(_,S)),j(g)&&(g=g(_,S)),j(y)&&(y=y(_,S))}var b=c.getModel("itemStyle").getItemStyle(),x=Zs(l,"color");b.fill||(b.fill=x),h.setItemVisual(v,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){nt(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(wm);const N9=k9;var B9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(sn);const z9=B9;var Yh=Tt(),G9=function(r,e,t,a){var i,n=r.getData();if(z(a))i=a;else{var o=a.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=a.xAxis||null!=a.yAxis){var s=void 0,l=void 0;if(null!=a.yAxis||null!=a.xAxis)s=e.getAxis(null!=a.yAxis?"y":"x"),l=ee(a.yAxis,a.xAxis);else{var u=nI(a,n,e,r);s=u.valueAxis,l=xm(n,Cd(n,u.valueDataDim),o)}var h="x"===s.dim?0:1,v=1-h,c=et(a),p={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,p.coord[v]=1/0;var d=t.get("precision");d>=0&&wt(l)&&(l=+l.toFixed(Math.min(d,20))),c.coord[h]=p.coord[h]=l,i=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Bl(r,i[0]),Bl(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,ot(g[2],g[0]),ot(g[2],g[1]),g};function Zh(r){return!isNaN(r)&&!isFinite(r)}function sI(r,e,t,a){var n=1-r,i=a.dimensions[r];return Zh(e[n])&&Zh(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function F9(r,e){if("cartesian2d"===r.type){var t=e[0].coord,a=e[1].coord;if(t&&a&&(sI(1,t,a,r)||sI(0,t,a,r)))return!0}return zl(r,e[0])&&zl(r,e[1])}function Tm(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var h=r.get((f=i.dimensions)[0],e),v=r.get(f[1],e);s=i.dataToPoint([h,v])}if(si(i,"cartesian2d")){var f,c=i.getAxis("x"),p=i.getAxis("y");Zh(r.get((f=i.dimensions)[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):Zh(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];r.setItemLayout(e,s)}var H9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Yh(o).from,u=Yh(o).to;l.each(function(f){Tm(l,f,!0,i,n),Tm(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Jg);this.group.add(f.group);var h=function W9(r,e,t){var a;a=r?G(r&&r.dimensions,function(u){return V(V({},e.getData().getDimensionInfo(e.getData().mapDimension(u))||{}),{name:u,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new xe(a,t),i=new xe(a,t),o=new xe([],t),s=G(t.get("data"),it(G9,e,r,t));r&&(s=Lt(s,it(F9,r)));var l=iI(!!r,a);return n.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}(o,t,a),v=h.from,c=h.to,p=h.line;Yh(a).from=v,Yh(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");function _(S,b,x){var w=S.getItemModel(b);Tm(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();null==T.fill&&(T.fill=Zs(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:st(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:st(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:st(w.get("symbolSize"),g[x?0:1]),symbol:st(w.get("symbol",!0),d[x?0:1]),style:T})}z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),null==b.stroke&&(b.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){nt(S).dataModel=a,S.traverse(function(b){nt(b).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(wm);const U9=H9;var Z9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(sn);const X9=Z9;var Xh=Tt(),q9=function(r,e,t,a){var n=a[0],i=a[1];if(n&&i){var o=Bl(r,n),s=Bl(r,i),l=o.coord,u=s.coord;l[0]=ee(l[0],-1/0),l[1]=ee(l[1],-1/0),u[0]=ee(u[0],1/0),u[1]=ee(u[1],1/0);var f=ql([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function qh(r){return!isNaN(r)&&!isFinite(r)}function lI(r,e,t,a){var n=1-r;return qh(e[n])&&qh(t[n])}function K9(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return si(r,"cartesian2d")?!(!t||!a||!lI(1,t,a)&&!lI(0,t,a))||function R9(r,e,t){return!(r&&r.containZone&&e.coord&&t.coord&&!_m(e)&&!_m(t))||r.containZone(e.coord,t.coord)}(r,n,i):zl(r,n)||zl(r,i)}function uI(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=H(o.get(t[0]),n.getWidth()),u=H(o.get(t[1]),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),h=r.getValues(["x1","y1"],e),v=i.clampData(f),c=i.clampData(h),p=[];p[0]="x0"===t[0]?v[0]>c[0]?h[0]:f[0]:v[0]>c[0]?f[0]:h[0],p[1]="y0"===t[1]?v[1]>c[1]?h[1]:f[1]:v[1]>c[1]?f[1]:h[1],s=a.getMarkerPosition(p,t,!0)}else{var y=[d=r.get(t[0],e),g=r.get(t[1],e)];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(si(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);qh(d)?s[0]=m.toGlobalCoord(m.getExtent()["x0"===t[0]?0:1]):qh(g)&&(s[1]=_.toGlobalCoord(_.getExtent()["y0"===t[1]?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];return s}var fI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],j9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=sn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(fI,function(h){return uI(s,l,h,i,n)});s.setItemLayout(l,u),s.getItemGraphicEl(l).setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new rt});this.group.add(f.group),this.markKeep(f);var h=function Q9(r,e,t){var a,n;if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData();return V(V({},f.getDimensionInfo(f.mapDimension(u))||{}),{name:u,ordinalMeta:null})});n=G(["x0","y0","x1","y1"],function(u,f){return{name:u,type:o[f%2].type}}),a=new xe(n,t)}else a=new xe(n=[{name:"value",type:"float"}],t);var s=G(t.get("data"),it(q9,e,r,t));r&&(s=Lt(s,it(K9,r)));var l=r?function(u,f,h,v){return Ha(u.coord[Math.floor(v/2)][v%2],n[v])}:function(u,f,h,v){return Ha(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}(o,t,a);a.setData(h),h.each(function(v){var c=G(fI,function(T){return uI(h,v,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(h.get("x0",v)),p.parse(h.get("x1",v))],_=[d.parse(h.get("y0",v)),d.parse(h.get("y1",v))];We(m),We(_),h.setItemLayout(v,{points:c,allClipped:!!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0])});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),w=Zs(l,"color");x.fill||(x.fill=w,U(x.fill)&&(x.fill=ts(x.fill,.4))),x.stroke||(x.stroke=w),h.setItemVisual(v,"style",x)}),h.diff(Xh(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var p=new De({shape:{points:c.points}});h.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,c){var p=Xh(f).data.getItemGraphicEl(c),d=h.getItemLayout(v);d.allClipped?p&&f.group.remove(p):(p?Ct(p,{shape:{points:d.points}},a,v):p=new De({shape:{points:d.points}}),h.setItemGraphicEl(v,p),f.group.add(p))}).remove(function(v){var c=Xh(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var p=h.getItemModel(c),d=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ve(v,ae(p),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:U(d.fill)?ts(d.fill,1):"#000"}),he(v,p),Ut(v,null,null,p.get(["emphasis","disabled"])),nt(v).dataModel=a}),Xh(f).data=h,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(wm);const J9=j9;var eX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;!0===a&&(a=t.selector=["all","inverse"]),z(a)&&A(a,function(i,o){U(i)&&(i={type:i}),a[o]=ot(i,function(r,e){return"all"===e?{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var f;if(n.push(l.name),l.legendVisualProvider){var v=l.legendVisualProvider.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(v)),v.length?a=a.concat(v):f=!0}else f=!0;f&&xc(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=q(),s=G(i,function(l){return(U(l)||wt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Rt(l,this,this.ecModel))},this);this._data=Lt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected;"single"===this.get("selectedMode")&&A(this._data,function(o){a[o.get("name")]=!1}),a[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var a=this.option.selected;A(this._data,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var a=this.option.selected;A(this._data,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&ht(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(_t);const Cm=eX;var Po=it,Am=A,Kh=rt,rX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return O(e,r),e.prototype.init=function(){this.group.add(this._contentGroup=new Kh),this.group.add(this._selectorGroup=new Kh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||"auto"===o)&&(o="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=t.get("padding"),c=Jt(f,h,v),p=this.layoutInner(t,o,c,i,l,u),d=Jt(Q({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_L(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Am(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(""===d||"\n"===d)){var g=new Kh;return g.newline=!0,void u.add(g)}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style");this._createItem(y,d,p,c,a,t,_,b,S,h,i).on("click",Po(hI,d,null,i,v)).on("mouseover",Po(Mm,y.name,null,i,v)).on("mouseout",Po(Dm,y.name,null,i,v)),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),L=Te(M.fill);L&&0===L[3]&&(L[3]=.2,M=V(V({},M),{fill:mr(L,"rgba")})),this._createItem(w,d,p,c,a,t,{},M,D,h,i).on("click",Po(hI,null,d,i,v)).on("mouseover",Po(Mm,null,d,i,v)).on("mouseout",Po(Dm,null,d,i,v)),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Am(t,function(u){var f=u.type,h=new xt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect"})}});s.add(h),ve(h,{normal:a.getModel("selectorLabel"),emphasis:a.getModel(["emphasis","selectorLabel"])},{defaultText:u.title}),Ba(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon"),S=function aX(r,e,t,a,n,i,o){function s(g,y){"auto"===g.lineWidth&&(g.lineWidth=y.lineWidth>0?2:0),Am(g,function(m,_){"inherit"===g[_]&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=0===r.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?uo(h,o):a.decal,"inherit"===u.fill&&(u.fill=a[n]),"inherit"===u.stroke&&(u.stroke=a[f]),"inherit"===u.opacity&&(u.opacity=("fill"===n?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),"auto"===u.fill&&(u.fill=a.fill),"auto"===u.stroke&&(u.stroke=a.fill),"auto"===c.stroke&&(c.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth");u.lineWidth="auto"===p?a.lineWidth>0&&u[f]?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}(f=_||f||"roundRect",i,l,u,c,g,v),b=new Kh,x=i.getModel("textStyle");if(!j(t.getLegendIcon)||_&&"inherit"!==_){var w="inherit"===_&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0;b.add(function nX(r){var e=r.icon||"roundRect",t=Kt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}else b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));var T="left"===s?p+5:-5,C=s,M=o.get("formatter"),D=a;U(M)&&M?D=M.replace("{name}",a??""):j(M)&&(D=M(a));var L=i.get("inactiveColor");b.add(new xt({style:Ot(x,{text:D,x:T,y:d/2,fill:g?x.getTextColor():L,align:C,verticalAlign:"middle"})}));var I=new St({shape:b.getBoundingRect(),invisible:!0}),P=i.getModel("tooltip");return P.get("show")&&no({el:I,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(b),Ba(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Fn(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Fn("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=0===d?"width":"height",y=0===d?"height":"width",m=0===d?"y":"x";"end"===s?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gt);function hI(r,e,t,a){Dm(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Mm(r,e,t,a)}function vI(r){for(var t,e=r.getZr().storage.getDisplayList(),a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function Mm(r,e,t,a){vI(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function Dm(r,e,t,a){vI(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}const cI=rX;function iX(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Gl(r,e,t){var i,a={},n="toggleSelected"===r;return t.eachComponent("legend",function(o){n&&null!=i?o[i?"select":"unSelect"](e.name):"allSelect"===r||"inverseSelect"===r?o[r]():(o[r](e.name),i=o.isSelected(e.name)),A(o.getData(),function(l){var u=l.get("name");if("\n"!==u&&""!==u){var f=o.isSelected(u);a[u]=a.hasOwnProperty(u)?a[u]&&f:f}})}),"allSelect"===r||"inverseSelect"===r?{selected:a}:{name:e.name,selected:a}}function pI(r){r.registerComponentModel(Cm),r.registerComponentView(cI),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,iX),r.registerSubTypeDefaulter("legend",function(){return"plain"}),function oX(r){r.registerAction("legendToggleSelect","legendselectchanged",it(Gl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",it(Gl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",it(Gl,"inverseSelect")),r.registerAction("legendSelect","legendselected",it(Gl,"select")),r.registerAction("legendUnSelect","legendunselected",it(Gl,"unSelect"))}(r)}var sX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Yi(t);r.prototype.init.call(this,t,a,n),dI(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),dI(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Ga(Cm.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Cm);function dI(r,e,t){var n=[1,1];n[r.getOrient().index]=0,Fa(e,t,{type:"box",ignoreSize:!!n})}const lX=sX;var gI=rt,Lm=["width","height"],Im=["x","y"],uX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return O(e,r),e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new gI),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new gI)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=z(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");function p(d,g){var y=d+"DataIndex",m=ao(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Y(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}f.add(new xt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Lm[u],h=Im[u],v=Lm[1-u],c=Im[1-u];o&&Fn("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=et(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if("end"===s)g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Fn(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),Fn("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[o]-p[o]:y[i]+=p[o]+_),m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new St({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&Ct(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=null!=a[f+"DataIndex"],c=n.childOfName(f);c&&(c.setStyle("fill",t.get(v?"pageIconColor":"pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=null!=s?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",U(o)?o.replace("{current}",null==l?"":l+"").replace("{total}",null==u?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Lm[o],l=Im[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)(!(_=S(f[g]))&&m.e>y.s+i||_&&!b(_,y.s))&&(y=m.i>y.i?m:_)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=y.i),++p.pageCount),m=_;for(g=u-1,y=d,m=d,_=null;g>=-1;--g)(!(_=S(f[g]))||!b(m,_.s))&&y.i<m.i&&(m=y,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(o,s){var l=o.__legendDataIndex;null==i&&null!=l&&(i=s),l===t&&(a=s)}),a??i):0;var a,i},e.type="legend.scroll",e}(cI);const fX=uX;function vX(r){ct(pI),r.registerComponentModel(lX),r.registerComponentView(fX),function hX(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;null!=a&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}(r)}var pX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.inside",e.defaultOption=Ga(Ol.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ol);const dX=pX;var Pm=Tt();function gX(r,e,t){Pm(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function yI(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function _X(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function SX(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}var wX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return O(e,r),e.prototype.render=function(t,a,n){r.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),gX(n,t,{pan:Y(Rm.pan,this),zoom:Y(Rm.zoom,this),scrollMove:Y(Rm.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){(function yX(r,e){for(var t=Pm(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var o=t.get(a[n]),s=o.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||yI(t,o))}}})(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(nm),Rm={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Em[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(di(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:mI(function(r,e,t,a,n,i){var o=Em[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:mI(function(r,e,t,a,n,i){return Em[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t).signal*(r[1]-r[0])*i.scrollDelta})};function mI(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s&&(di(r(o,s,e,t,a,n),o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1]))return o}}var Em={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],"x"===i.dim?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),"radiusAxis"===t.mainType?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],"horizontal"===i.orient?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const TX=wX;function _I(r){im(r),r.registerComponentModel(dX),r.registerComponentView(TX),function bX(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=Pm(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){A(cL(i).infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,function mX(r,e){var t={model:e,containsPoint:it(SX,e),dispatchAction:it(_X,r),dataZoomInfoMap:null,controller:null},a=t.controller=new ml(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}(t,s.model));(u.dataZoomInfoMap||(u.dataZoomInfoMap=q())).set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var s,o=i.controller,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(s=l.get(u))}if(s){var f=function xX(r){var e,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(i){var o=i.model,s=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");a[t+s]>a[t+e]&&(e=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),io(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")}else yI(n,i)})})}(r)}var CX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ga(Ol.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ol);const AX=CX;var Fl=St,Hl="horizontal",xI="vertical",IX=["line","bar","candlestick","scatter"],PX={easing:"cubicOut",duration:100,delay:0},RX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return O(e,r),e.prototype.init=function(t,a){this.api=a,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),io(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show"))return t.noTarget()?(this._clear(),void this.group.removeAll()):((!i||"dataZoom"!==i.type||i.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ws(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,i=t.get("brushSelect")?7:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===Hl?{right:s.width-o.x-o.width,top:s.height-30-7-i,width:o.width,height:30}:{right:7,top:o.y,width:30,height:o.height},u=Yi(t.option);A(["right","top","width","height"],function(h){"ph"===u[h]&&(u[h]=l[h])});var f=Jt(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===xI&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n!==Hl||o?n===Hl&&o?{scaleY:l?1:-1,scaleX:-1}:n!==xI||o?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Fl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Fl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(null!=l){var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var h=o.getDataExtent(l),v=.3*(h[1]-h[0]);h=[h[0]-v,h[1]+v];var S,c=[0,a[1]],d=[[a[0],0],[0,0]],g=[],y=a[0]/(o.count()-1),m=0,_=Math.round(o.count()/a[0]);o.each([l],function(C,M){if(_>0&&M%_)m+=y;else{var D=null==C||isNaN(C)||""===C,L=D?0:It(C,h,c,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=D}}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];for(var M,D,L,I,b=this.dataZoomModel,w=0;w<3;w++){var T=(M=void 0,D=void 0,void 0,void 0,M=b.getModel(1===w?"selectedDataBackground":"dataBackground"),D=new rt,L=new De({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Le({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),D.add(L),D.add(I),D);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(!1!==a){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){A(t.getAxisProxy(o,s).getTargetSeriesModels(),function(u){if(!(n||!0!==a&&ht(IX,u.get("type"))<0)){var v,f=i.getComponent(nn(o),s).axis,h=function EX(r){return{x:"y",y:"x",radius:"angle",angle:"radius"}[r]}(o),c=u.coordinateSystem;null!=h&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new Fl({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Fl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!Cf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Kt(S,-1,0,2,2,null,!0);b.attr({cursor:bI(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ba(b);var T=l.get("handleColor");null!=T&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle");t.add(i[_]=new xt({silent:!0,invisible:!0,style:Ot(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var p=H(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new St({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=.8*p,y=a.moveHandleIcon=Kt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));(c=a.moveZone=new St({invisible:!0,shape:{y:s[1]-m,height:p+m}})).on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:bI(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[It(t[0],[0,100],a,!0),It(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];di(a,i,o,n.get("zoomLock")?"all":t,null!=s.minSpan?It(s.minSpan,l,o,!0):null,null!=s.maxSpan?It(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=We([It(i[0],o,l,!0),It(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=We(n.slice()),o=this._size;A([0,1],function(c){var d=this._handleHeight;a.handles[c].attr({scaleX:d/2,scaleY:d/2,x:n[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new St,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=We(this._handleEnds.slice());function c(p){var d=Ua(n.handles[p].parent,this.group),g=_f(0===p?"right":"left",d),y=this._handleWidth/2+5,m=Ar([v[p]+(0===p?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Hl?"middle":g,align:o===Hl?g:"center",text:s[p]})}c.call(this,0),c.call(this,1)},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(null==o||"auto"===o)&&(o=a.getPixelPrecision());var s=null==t||isNaN(t)?"":"category"===a.type||"time"===a.type?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return j(i)?i(t,s):U(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this._displayables,n=a.handleLabels;n[0].attr("invisible",!(t=this._dragging||t)),n[1].attr("invisible",!t),a.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](a.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,aa(i.event);var s=Ar([a,n],this._displayables.sliderGroup.getLocalTransform(),!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,s=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new lt(t.offsetX,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,a){a.attr("ignore",!0);var n=a.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=We([It(n.x,o,s,!0),It(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(aa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,o=n.brushRect;o||(o=n.brushRect=new Fl({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?PX:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=cL(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(nm);function bI(r){return"vertical"===r?"ns-resize":"ew-resize"}const kX=RX;function wI(r){r.registerComponentModel(AX),r.registerComponentView(kX),im(r)}var NX={get:function(r,e,t){var a=et((VX[r]||{})[e]);return t&&z(a)?a[a.length-1]:a}},VX={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const TI=NX;var CI=pe.mapVisual,BX=pe.eachVisual,zX=z,AI=A,GX=We,FX=It,HX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return O(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){!a&&WL(this.option,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Y(t,this),this.controllerVisuals=pm(this.option.controller,a,t),this.targetVisuals=pm(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return null==t||"all"===t?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Pt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var u,i=this.option,o=i.precision,s=this.dataBound,l=i.formatter;n=n||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=a?t:u?[h(t[0]),h(t[1])]:h(t);return U(l)?l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f):j(l)?u?l(t[0],t[1]):l(t):u?t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1]:f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=GX([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(null!=a)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var s=t.getDimensionInfo(n[i]);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ot(i,n),ot(o,n);var s=this.isCategory();function l(h){zX(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}l.call(this,i),l.call(this,o),function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},AI(p,function(g,y){if(pe.isValidType(y)){var m=TI.get(y,"inactive",s);null!=m&&(d[y]=m,"color"===y&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol()||"roundRect";AI(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),null==_.symbol&&(_.symbol=v&&et(v)||(s?g:[g])),null==_.symbolSize&&(_.symbolSize=c&&et(c)||(s?m[0]:[m[0],m[0]])),_.symbol=CI(_.symbol,function(x){return"none"===x?g:x});var S=_.symbolSize;if(null!=S){var b=-1/0;BX(S,function(x){x>b&&(b=x)}),_.symbolSize=CI(S,function(x){return FX(x,[0,b],[0,m[0]],!0)})}},this)}.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(_t);const jh=HX;var MI=[20,140],WX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=MI[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=MI[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=We((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent();return(a[0]<=n[0]||a[0]<=t)&&(a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=DI(0,0,this.getExtent()),n=DI(0,0,this.option.range.slice()),i=[];function o(c,p){i.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(h=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(h&&(i.length&&o(i[i.length-1].value,"outOfRange"),h=0),o(a[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ga(jh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(jh);function DI(r,e,t){if(t[0]===t[1])return t.slice();for(var n=(t[1]-t[0])/200,i=t[0],o=[],s=0;s<=200&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}const UX=WX;var YX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return O(e,r),e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,a,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=Bn(a.get("padding")||0),i=t.getBoundingRect();t.add(new St({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){var i=(n=n||{}).forceState,o=this.visualMapModel,s={};if("color"===a){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,p){s[c]=p}var h=o.controllerVisuals[i||o.getValueState(t)];return A(pe.prepareVisualTypes(h),function(c){var p=h[c];n.convertOpacityToAlpha&&"opacity"===c&&(c="colorAlpha",p=h.__alphaForOpacity),pe.dependsOn(c,a)&&p&&p.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var n=this.api;Qu(t,this.visualMapModel.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e}(Gt);const LI=YX;var II=[["left","right","width"],["top","bottom","height"]];function PI(r,e,t){var a=r.option,n=a.align;if(null!=n&&"auto"!==n)return n;for(var i={width:e.getWidth(),height:e.getHeight()},o="horizontal"===a.orient?1:0,s=II[o],l=[0,null,10],u={},f=0;f<3;f++)u[II[1-o][f]]=l[f],u[s[f]]=2===f?t[0]:a[s[f]];var h=[["x","width",3],["y","height",0]][o],v=Jt(u,i,a.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+.5*v[h[1]]<.5*i[h[1]]?0:1]}function Qh(r,e){return A(r||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Jr=It,ZX=A,RI=Math.min,Om=Math.max,KX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return O(e,r),e.prototype.doRender=function(t,a,n,i){this._api=n,(!i||"selectDataRange"!==i.type||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,0===n?-s:l[1]+s],u),h=this._applyTransform(0===n?"bottom":"top",u),v=this._orient;this.group.add(new xt({style:Ot(this.visualMapModel.textStyleModel,{x:f[0],y:f[1],verticalAlign:"horizontal"===v?"middle":h,align:"horizontal"===v?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=PI(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new rt;u.add(f),f.add(n.outOfRange=EI()),f.add(n.inRange=EI(null,s?OI(this._orient):null,Y(this._dragHandle,this,"all",!1),Y(this._dragHandle,this,"all",!0))),f.setClipPath(new St({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=a.textStyleModel.getTextRect("\u56fd"),v=Om(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,v,o),this._createHandle(a,u,1,i,v,o)),this._createIndicator(a,u,i,v,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=Y(this._dragHandle,this,n,!1),u=Y(this._dragHandle,this,n,!0),f=Sr(t.get("handleSize"),i[0]),h=Kt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=OI(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){aa(y.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Nn(h,!0),a.add(h);var p=new xt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){aa(y.event)},ondragend:u,style:Ot(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=h,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,a,n,i,o){var s=Sr(t.get("indicatorSize"),n[0]),l=Kt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof ue){var f=l.style;l.useStyle(V({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=new xt({silent:!0,invisible:!0,style:Ot(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});this.group.add(v);var c=[("horizontal"===o?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():kI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Jr(a[0],n,i,!0),Jr(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];di(a=a||0,i,o,t,0);var s=n.getExtent();this._dataInterval=[Jr(i[0],o,s,!0),Jr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new eo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var i=[],o=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<100;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/100})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new rt("horizontal"!==a||n?"horizontal"===a&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==a||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();ZX([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=t[f];var v=Jr(t[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var p=Ar(n.handleLabelPoints[f],Ua(h,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),d=Jr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Ar(f.indicatorLabelPoint,Ua(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x="horizontal"===this._orient;_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,C),_.animateTo(T,C)}else h.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this._api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=RI(Om(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel;if(n.option.hoverLink){var o=[0,n.itemSize[1]],s=n.getExtent();t=RI(Om(o[0],t),o[1]);var l=function jX(r,e,t){var a=6,n=r.get("hoverLinkDataSize");return n&&(a=Jr(n,e,t,!0)/2),a}(n,s,o),u=[t-l,t+l],f=Jr(t,o,s,!0),h=[Jr(u[0],o,s,!0),Jr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||kI(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=function wR(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=te(o[u].seriesId,null);if(null==h)return;for(var v=Pt(o[u].dataIndex),c=l&&l[h],p=0,d=v.length;p<d;p++){var g=v[p];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&null!=o[u])if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}(v,c);this._dispatchHighDown("downplay",Qh(p[0],n)),this._dispatchHighDown("highlight",Qh(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(qn(t.target,function(l){var u=nt(l);if(null!=u.dataIndex)return a=u,!0},!0),a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this._api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Qh(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=Ua(a,i?null:this.group);return z(t)?Ar(t,o,n):_f(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(LI);function EI(r,e,t,a){return new De({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){aa(n.event)},ondragend:a})}function kI(r){return!!(r.get("hoverLinkOnHandle")??r.get("realtime"))}function OI(r){return"vertical"===r?"ns-resize":"ew-resize"}const QX=KX;var JX={type:"selectDataRange",event:"dataRangeSelected",update:"update"},$X=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},tq=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(function qZ(r,e,t,a){var n={};return A(r,function(i){var o=pe.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;function u(b){return Qp(s,h,b)}function f(b,x){nb(s,h,b,x)}null!=a&&(l=s.getDimensionIndex(a));for(var h,v=s.getStore();null!=(h=o.next());){var c=s.getRawDataItem(h);if(!c||!1!==c.visualMap)for(var p=null!=a?v.get(l,h):h,d=t(p),g=e[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}(a.stateList,a.targetVisuals,Y(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Y(eq,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function eq(r,e,t,a){for(var n=e.targetVisuals[a],i=pe.prepareVisualTypes(n),o={color:Zs(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n["opacity"===u?"__alphaForOpacity":u];f&&f.applyVisual(t,h,v)}return o.color;function h(c){return o[c]}function v(c,p){o[c]=p}}var NI=A;function rq(r){var e=r&&r.visualMap;z(e)||(e=e?[e]:[]),NI(e,function(t){if(t){Ro(t,"splitList")&&!Ro(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&z(a)&&NI(a,function(n){J(n)&&(Ro(n,"start")&&!Ro(n,"min")&&(n.min=n.start),Ro(n,"end")&&!Ro(n,"max")&&(n.max=n.end))})}})}function Ro(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var VI=!1;function BI(r){VI||(VI=!0,r.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),r.registerAction(JX,$X),A(tq,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(rq))}function zI(r){r.registerComponentModel(UX),r.registerComponentView(QX),BI(r)}var aq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return O(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],nq[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){"categories"===n?(o.mappingMethod="category",o.categories=et(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=et(l),"inRange"!==s&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=pe.listVisualTypes(),i=this.isCategory();function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=TI.get(l,"inRange"===f?"active":"inactive",i)})},this),r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),"single"===n.selectedMode){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=et(t)},e.prototype.getValueState=function(t){var a=pe.findPieceIndex(t,this._pieceList);return null!=a&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){pe.findPieceIndex(l,n)===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(null!=t.value)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var a=[],n=["",""],i=this,s=this._pieceList.slice();if(s.length){var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),(l=s[s.length-1].interval[1])!==1/0&&s.push({interval:[l,1/0]})}else s.push({interval:[-1/0,1/0]});var u=-1/0;return A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}}function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=t(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}},e.type="visualMap.piecewise",e.defaultOption=Ga(jh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(jh),nq={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++)r.push({interval:[s,o===n-1?a[1]:s+i],close:[1,1]});e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),_c(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),GI(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){J(t)||(t={value:t});var n={text:"",index:a};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&null==o[h];c++)o[h]=t[v[c]],s[h]=l[c],f[h]=2===c;null==o[h]&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=pe.retrieveVisuals(t),r.push(n)},this),GI(e,r),_c(r),A(r,function(t){var a=t.close;t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,[["<","\u2264"][a[1]],[">","\u2265"][a[0]]])},this)}};function GI(r,e){var t=r.inverse;("vertical"===r.orient?!t:t)&&e.reverse()}const iq=aq;var oq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return O(e,r),e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=ee(a.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,v,l),A(f.viewPieceList,function(c){var p=c.piece,d=new rt;d.onclick=Y(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new xt({style:{x:"right"===l?-n:u[0]+n,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:"outOfRange"===y?.5:1}}))}t.add(d)},this),h&&this._renderEndsText(t,h[1],u,v,l),Fn(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Qh(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if("vertical"===a.orient)return PI(t,this.api,t.itemSize);var n=a.align;return(!n||"auto"===n)&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new rt;s.add(new xt({style:Ot(this.visualMapModel.textStyleModel,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n){t.add(Kt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=et(n.selected),s=a.getSelectedMapKey(t);"single"===i||!0===i?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(LI);const sq=oq;function FI(r){r.registerComponentModel(iq),r.registerComponentView(sq),BI(r)}var uq={label:{enabled:!0},decal:{show:!1}},HI=Tt(),fq={};function hq(r,e){var t=r.getModel("aria");if(t.get("enabled")){var a=et(uq);ot(a.label,r.getLocaleModel().get("aria"),!1),ot(t.option,a,!1),function n(){if(t.getModel("decal").get("show")){var h=q();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||h.set(v.type,c={}),HI(v).scope=c}}),r.eachRawSeries(function(v){if(!r.isSeriesFiltered(v))if(j(v.enableAriaDecal))v.enableAriaDecal();else{var c=v.getData();if(v.isColorBySeries()){var m=Sp(v.ecModel,v.name,fq,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=HI(v).scope;c.each(function(b){var x=c.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=Sp(v.ecModel,w,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,T))})}}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}(),function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=Q(f.option,u),f.get("enabled")){var h=e.getZr().dom;if(f.get("description"))return void h.setAttribute("aria-label",f.get("description"));var g,v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(v,p);if(!(v<1)){var y=function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}();if(y)g=o(f.get(["general","withTitle"]),{title:y});else g=f.get(["general","withoutTitle"]);var _=[];g+=o(f.get(v>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:v}),r.eachSeries(function(T,C){if(C<d){var M=void 0,L=T.get("name")?"withName":"withoutName";M=o(M=f.get(v>1?["series","multiple",L]:["series","single",L]),{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();I.count()>c?M+=o(f.get(["data","partialData"]),{displayCnt:c}):M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),N=[],k=0;k<I.count();k++)if(k<c){var B=I.getName(k),F=I.getValues(k),W=f.get(["data",B?"withName":"withoutName"]);N.push(o(W,{name:B,value:F.join(R)}))}M+=N.join(R)+E,_.push(M)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,h.setAttribute("aria-label",g)}}}()}function o(u,f){if(!U(u))return u;var h=u;return A(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81ea\u5b9a\u4e49\u56fe"}}function vq(r){if(r&&r.aria){var e=r.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var WI={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pq=function(){function r(e){null==(this._condVal=U(e)?new RegExp(e):r0(e)?e:null)&&Dt("")}return r.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):!!wt(t)&&this._condVal.test(e+"")},r}(),dq=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),gq=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),yq=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),mq=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),_q=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,a=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r}();function Nm(r,e){if(!0===r||!1===r){var t=new dq;return t.value=r,t}return YI(r)||Dt(""),r.and?UI("and",r,e):r.or?UI("or",r,e):r.not?function Sq(r,e){var t=r.not;YI(t)||Dt("");var n=new mq;return n.child=Nm(t,e),n.child||Dt(""),n}(r,e):function xq(r,e){for(var a=e.prepareGetValue(r),n=[],i=mt(r),o=r.parser,s=o?G1(o):null,l=0;l<i.length;l++){var u=i[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var f=Z(WI,u)?WI[u]:u,h=r[u],v=s?s(h):h,c=oO(f,v)||"reg"===f&&new pq(v);c||Dt(""),n.push(c)}}n.length||Dt("");var p=new _q;return p.valueGetterParam=a,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}(r,e)}function UI(r,e,t){var a=e[r];z(a)||Dt(""),a.length||Dt("");var i="and"===r?new gq:new yq;return i.children=G(a,function(o){return Nm(o,t)}),i.children.length||Dt(""),i}function YI(r){return J(r)&&!fe(r)}var bq=function(){function r(e,t){this._cond=Nm(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}(),Tq={type:"echarts:filter",transform:function(r){for(var t,e=r.upstream,a=function wq(r,e){return new bq(r,e)}(r.config,{valueGetterAttrMap:q({dimension:!0}),prepareGetValue:function(s){var u=s.dimension;Z(s,"dimension")||Dt("");var f=e.getDimensionInfo(u);return f||Dt(""),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},Cq={type:"echarts:sort",transform:function(r){var e=r.upstream,a="",n=Pt(r.config);n.length||Dt(a);var i=[];A(n,function(f){var h=f.dimension,v=f.order,c=f.parser,p=f.incomparable;null==h&&Dt(a),"asc"!==v&&"desc"!==v&&Dt(a),p&&"min"!==p&&"max"!==p&&Dt(""),"asc"!==v&&"desc"!==v&&Dt("");var y=e.getDimensionInfo(h);y||Dt(a);var m=c?G1(c):null;c&&!m&&Dt(a),i.push({dimIdx:y.index,parser:m,comparator:new H1(v,p)})});var o=e.sourceFormat;o!==ye&&o!==nr&&Dt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,h){for(var v=0;v<i.length;v++){var c=i[v],p=e.retrieveValueFromItem(f,c.dimIdx),d=e.retrieveValueFromItem(h,c.dimIdx);c.parser&&(p=c.parser(p),d=c.parser(d));var g=c.comparator.evaluate(p,d);if(0!==g)return g}return 0}),{data:s}}},Mq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataset",t}return O(e,r),e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new q1(this),K1(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),K1(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ur},e}(_t),Dq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataset",t}return O(e,r),e.type="dataset",e}(Gt),$r=Hr.CMD;function Eo(r,e){return Math.abs(r-e)<1e-5}function Vm(r){var n,I,P,R,E,N,k,B,F,W,X,$,tt,dt,at,yt,vt,K,e=r.data,t=r.len(),a=[],i=0,o=0,s=0,l=0;function u(I,P){n&&n.length>2&&a.push(n),n=[I,P]}function f(I,P,R,E){Eo(I,R)&&Eo(P,E)||n.push(I,P,R,E,R,E)}for(var v,c,p,d,g=0;g<t;){var y=e[g++],m=1===g;switch(m&&(s=i=e[g],l=o=e[g+1],(y===$r.L||y===$r.C||y===$r.Q)&&(n=[s,l])),y){case $r.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case $r.L:f(i,o,v=e[g++],c=e[g++]),i=v,o=c;break;case $r.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case $r.Q:v=e[g++],c=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(v-i),o+2/3*(c-o),p+2/3*(v-p),d+2/3*(c-d),p,d),i=p,o=d;break;case $r.A:var _=e[g++],S=e[g++],b=e[g++],x=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];v=Math.cos(w)*b+_,c=Math.sin(w)*x+S,m?u(s=v,l=c):f(i,o,v,c),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var M=(C?-1:1)*Math.PI/2,D=w;C?D>T:D<T;D+=M){I=D,P=C?Math.max(D+M,T):Math.min(D+M,T),R=_,E=S,N=b,k=x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B=Math.abs(P-I),F=4*Math.tan(B/4)/3,W=P<I?-1:1,X=Math.cos(I),$=Math.sin(I),tt=Math.cos(P),dt=Math.sin(P),n.push(X*N+R-(vt=N*F*W)*$,$*k+E+(K=k*F*W)*X,(at=tt*N+R)+vt*dt,(yt=dt*k+E)-K*tt,at,yt)}break;case $r.R:s=i=e[g++],l=o=e[g++],v=s+e[g++],c=l+e[g++],u(v,l),f(v,l,v,c),f(v,c,s,c),f(s,c,s,l),f(s,l,v,l);break;case $r.Z:n&&f(i,o,s,l),i=s,o=l}}return n&&n.length>2&&a.push(n),a}function Bm(r,e,t,a,n,i,o,s,l,u){if(Eo(r,t)&&Eo(e,a)&&Eo(n,o)&&Eo(i,s))l.push(o,s);else{var f=2/u,h=f*f,v=o-r,c=s-e,p=Math.sqrt(v*v+c*c);v/=p,c/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<h&&S<h)l.push(o,s);else{var b=v*d+c*g,x=-v*y-c*m;if(_-b*b<h&&b>=0&&S-x*x<h&&x>=0)l.push(o,s);else{var C=[],M=[];Ia(r,t,n,o,.5,C),Ia(e,a,i,s,.5,M),Bm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),Bm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}}}}function ZI(r,e,t){var i=Math.abs(r[e]/r[1-e]),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);0===s&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var h=t-o*s;if(h>0)for(u=0;u<h;u++)l[u%o]+=1;return l}function XI(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,s=Math.abs(r.endAngle-i),l=s*n,u=n-a,f=l>Math.abs(u),h=ZI([l,u],f?0:1,e),v=(f?s:u)/h.length,c=0;c<h.length;c++)for(var p=(f?u:s)/h[c],d=0;d<h[c];d++){var g={};f?(g.startAngle=i+v*c,g.endAngle=i+v*(c+1),g.r0=a+p*d,g.r=a+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=a+v*c,g.r=a+v*(c+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function qI(r,e,t,a){return r*a-t*e}function Rq(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,h=s-i,v=qI(f,h,l,u);if(Math.abs(v)<1e-6)return null;var d=qI(r-n,e-i,f,h)/v;return d<0||d>1?null:new lt(d*l+r,d*u+e)}function Eq(r,e,t){var a=new lt;lt.sub(a,t,e),a.normalize();var n=new lt;return lt.sub(n,r,e),n.dot(a)}function ko(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function KI(r){var e=r.points,t=[],a=[];Eu(e,t,a);var n=new ut(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new lt,f=new lt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),function kq(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=Rq(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:Eq(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var h=u;u=f,f=h}var v=[u.pt.x,u.pt.y],c=[f.pt.x,f.pt.y],p=[v],d=[c];for(i=u.idx+1;i<=f.idx;i++)ko(p,r[i].slice());for(ko(p,c),ko(p,v),i=f.idx+1;i<=u.idx+a;i++)ko(d,r[i%a].slice());return ko(d,v),ko(d,c),[{points:p},{points:d}]}(e,u,f)}function Jh(r,e,t,a){if(1===t)a.push(e);else{var n=Math.floor(t/2),i=r(e);Jh(r,i[0],n,a),Jh(r,i[1],t-n,a)}return a}function Nq(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function zq(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,f=Math.ceil(l/((s-2)/6))+1,h=[o[0],o[1]],v=l,c=2;c<s;){var p=o[c-2],d=o[c-1],g=o[c++],y=o[c++],m=o[c++],_=o[c++],S=o[c++],b=o[c++];if(v<=0)h.push(g,y,m,_,S,b);else{for(var x=Math.min(v,f-1)+1,w=1;w<=x;w++){var T=w/x;Ia(p,g,m,S,T,n),Ia(d,y,_,b,T,i),h.push(n[1],i[1],n[2],i[2],p=n[3],d=i[3]),g=n[5],y=i[5],m=n[6],_=i[6]}v-=x-1}}return o===r?[h,e]:[r,h]}function jI(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function QI(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],h=s*f-u*l;e+=h,t+=(s+u)*h,a+=(l+f)*h}return 0===e?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function Fq(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=6*u,h=0,v=0;v<s;v+=2){var c=0===v?f:(f+v-2)%l+2,m=e[v]-a[0]-(r[c]-t[0]),_=e[v+1]-a[1]-(r[c+1]-t[1]);h+=m*m+_*_}h<i&&(i=h,o=u)}return o}function Hq(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function $h(r){return r.__isCombineMorphing}var JI="__mOriginal_";function tv(r,e,t){var a=JI+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var u,l=arguments;return s&&s.apply(this,l),u=i?i.apply(this,l):n.apply(this,l),o&&o.apply(this,l),u}}function Wl(r,e){var t=JI+e;r[t]&&(r[e]=r[t],r[t]=null)}function $I(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function tP(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=function Gq(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,h=void 0;l?u?(a=f=(t=zq(l,u))[0],n=h=t[1]):(h=jI(n||l,l),f=l):(f=jI(a||u,u),h=u),i.push(f),o.push(h)}return[i,o]}(Vm(t),Vm(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();s&&$I(i,s),l&&$I(o,l),tv(e,"updateTransform",{replace:function u(){this.transform=null}}),e.transform=null;var f=function Wq(r,e,t,a){for(var i,n=[],o=0;o<r.length;o++){var s=r[o],l=e[o],u=QI(s),f=QI(l);null==i&&(i=u[2]<0!=f[2]<0);var h=[],v=[],c=0,p=1/0,d=[],g=s.length;i&&(s=Hq(s));for(var y=6*Fq(s,l,u,f),m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-u[0],h[_+3]=s[S+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],t>0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){var w=Math.sin(x),T=Math.cos(x),C=0;for(_=0;_<s.length;_+=2){var M=h[_],D=h[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*T-I*w,R=L*w+I*T;d[_]=P,d[_+1]=R;var E=P-M,N=R-D;C+=E*E+N*N}if(C<p){p=C,c=x;for(var k=0;k<d.length;k++)v[k]=d[k]}}else for(var B=0;B<g;B+=2)v[B]=l[B]-f[0],v[B+1]=l[B+1]-f[1];n.push({from:h,to:v,fromCp:u,toCp:f,rotation:-c})}return n}(i,o,10,Math.PI),h=[];tv(e,"buildPath",{replace:function(v){for(var c=e.__morphT,p=1-c,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*c,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);Wo(d,b,x,c);for(var C=0;C<m.length;C+=2){var P=m[C]*p+(L=_[C])*c,R=m[C+1]*p+(I=_[C+1])*c;h[C]=P*T-R*w+d[0],h[C+1]=P*w+R*T+d[1]}var E=h[0],N=h[1];for(v.moveTo(E,N),C=2;C<m.length;){var L=h[C++],I=h[C++],k=h[C++],B=h[C++],F=h[C++],W=h[C++];E===L&&N===I&&k===F&&B===W?v.lineTo(F,W):v.bezierCurveTo(L,I,k,B,F,W),E=F,N=W}}}})}function zm(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;return tP(r,e),e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){(function i(){Wl(e,"buildPath"),Wl(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()})(),a&&a()}},t)),e}function Uq(r,e,t,a,n,i){r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var l,s=0,u=32768;u>0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(e&u)>0&&(h=1),s+=u*u*(3*f^h),0===h&&(1===f&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function ev(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(h,t),a=Math.max(f,a),n=Math.max(h,n),[f,h]});return G(i,function(s,l){return{cp:s,z:Uq(s[0],s[1],e,t,a,n),path:r[l]}}).sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function eP(r){return function Bq(r,e){var n,t=[],a=r.shape;switch(r.type){case"rect":(function Pq(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=ZI([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v<o.length;v++)for(var c=r[l]/o[v],p=0;p<o[v];p++){var d={};d[u]=v*h,d[f]=p*c,d[s]=h,d[l]=c,d.x+=r.x,d.y+=r.y,t.push(d)}})(a,e,t),n=St;break;case"sector":XI(a,e,t),n=Me;break;case"circle":XI({r0:0,r:a.r,startAngle:0,endAngle:2*Math.PI,cx:a.cx,cy:a.cy},e,t),n=Me;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(function Iq(r,e){var t=Vm(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],h=i[u++],v=i[u++],c=i[u++],p=i[u++],d=i[u++];Bm(s,l,f,h,v,c,p,d,o,e),s=p,l=d}a.push(o)}return a}(r.getUpdatedPathProxy(),o),function(y){return function Vq(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}(y)}),l=s.length;if(0===l)Jh(KI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,h=G(s,function(y){var m=[],_=[];Eu(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});var v=e;for(u=0;u<l;u++){var c=h[u];if(v<=0)break;var p=u===l-1?v:Math.ceil(c.area/f*e);p<0||(Jh(KI,{points:c.poly},p,t),v-=p)}}n=De}if(!n)return function Oq(r,e){for(var t=[],a=0;a<e;a++)t.push(Fp(r));return t}(r,e);var d=[];for(u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),Nq(r,g),d.push(g)}return d}(r.path,r.count)}function rP(r){return z(r[0])}function aP(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}var s=0;for(n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1){if(!s)return t;s=0}i=l.length;var u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var Xq={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Fp(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Fm(r,e,t,a,n,i){if(r.length&&e.length){var o=zi("update",a,n);if(o&&o.duration>0){var u,f,s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o);rP(r)&&(u=r,f=e),rP(e)&&(u=e,f=r);for(var v=u?u===r:r.length>e.length,c=u?aP(f,u):aP(v?e:r,[v?r:e]),p=0,d=0;d<c.length;d++)p+=c[d].many.length;var g=0;for(d=0;d<c.length;d++)h(c[d],v,g,p),g+=c[d].many.length}}function h(y,m,_,S,b){var x=y.many,w=y.one;if(1!==x.length||b)for(var D=Q({dividePath:Xq[t],individualDelay:s&&function(N,k,B,F){return s(N+_,S)}},l),L=m?function Yq(r,e,t){var a=[];!function n(b){for(var x=0;x<b.length;x++){var w=b[x];$h(w)?n(w.childrenRef()):w instanceof pt&&a.push(w)}}(r);var i=a.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var s=(t.dividePath||eP)({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};a=ev(a),s=ev(s);for(var l=t.done,u=t.during,f=t.individualDelay,h=new ia,v=0;v<i;v++){var c=a[v],p=s[v];p.parent=e,p.copyTransform(h),f||tP(c,p)}function d(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Wl(e,"addSelfToZr"),Wl(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},tv(e,"addSelfToZr",{after:function(b){d(b)}}),tv(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});var y=s.length;if(f){var m=y,_=function(){0==--m&&(g(),l&&l())};for(v=0;v<y;v++){var S=f?Q({delay:(t.delay||0)+f(v,y,a[v],s[v]),done:_},t):t;zm(a[v],s[v],S)}}else e.__morphT=0,e.animateTo({__morphT:1},Q({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)Wl(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}(x,w,D):function Zq(r,e,t){var a=e.length,n=[],i=t.dividePath||eP;if($h(r)){!function o(c){for(var p=0;p<c.length;p++){var d=c[p];$h(d)?o(d.childrenRef()):d instanceof pt&&n.push(d)}}(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Fp(n[l++%s]));n.length=a}else{n=i({path:r,count:a});var f=r.getComputedTransform();for(u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}n=ev(n),e=ev(e);var h=t.individualDelay;for(u=0;u<a;u++){var v=h?Q({delay:(t.delay||0)+h(u,a,n[u],e[u])},t):t;zm(n[u],e[u],v)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}(w,x,D),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++)M=s?Q({delay:s(E,R)},l):l,i(I[E],P[E],m?x[E]:y.one,m?y.one:x[E],M);else{var M,T=m?x[0]:w,C=m?w:x[0];$h(T)?h({many:[T],one:C},!0,_,S,!0):(zm(T,C,M=s?Q({delay:s(_,S)},l):l),i(T,C,T,C,M))}}}function xi(r){if(!r)return[];if(z(r)){for(var e=[],t=0;t<r.length;t++)e.push(xi(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof pt&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var qq=Tt();function iP(r){var e=[];return A(r,function(t){var a=t.data;if(!(a.count()>1e4))for(var n=a.getIndices(),i=function Kq(r){for(var e=r.dimensions,t=0;t<e.length;t++){var a=r.getDimensionInfo(e[t]);if(a&&0===a.otherDims.itemGroupId)return e[t]}}(a),o=0;o<n.length;o++)e.push({dataGroupId:t.dataGroupId,data:a,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function Hm(r,e,t){r.traverse(function(a){a instanceof pt&&zt(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Wm(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Oo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function oP(r,e,t){var a=iP(r),n=iP(e);function i(y,m,_,S,b){(_||y)&&m.animateFrom({style:_&&_!==y?V(V({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(a),l=o(n),u=!1;function f(y,m){return function(_){var S=_.data,b=_.dataIndex;if(m)return S.getId(b);var x=_.dataGroupId,w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),C=T&&T.ordinalMeta;if(T){var M=S.get(T.name,b);return C&&C.categories[M]||M+""}var D=S.getRawDataItem(b);return D&&D.groupId?D.groupId+"":x||S.getId(b)}}var h=function Qq(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}(a,n),v={};if(!h)for(var c=0;c<n.length;c++){var p=n[c],d=p.data.getItemGraphicEl(p.dataIndex);d&&(v[d.id]=!0)}function g(y,m){var _=a[m],S=n[y],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);x!==w?x&&v[x.id]||w&&(Oo(w),x?(Oo(x),Wm(x),u=!0,Fm(xi(x),xi(w),S.divide,b,y,i)):Hm(w,b,y)):w&&function jq(r,e,t){var a=zi("update",t,e);a&&r.traverse(function(n){if(n instanceof tr){var i=function FE(r){return AS(r).oldStyle}(n);i&&n.animateFrom({style:i},a)}})}(w,S.dataIndex,b)}new ca(a,n,f(!0,h),f(!1,h),null,"multiple").update(g).updateManyToOne(function(y,m){var _=n[y],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),w=Lt(G(m,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==x&&!v[T.id]});x&&(Oo(x),w.length?(A(w,function(T){Oo(T),Wm(T)}),u=!0,Fm(xi(w),xi(x),_.divide,b,y,i)):Hm(x,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=a[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!S||!v[S.id]){var b=Lt(G(y,function(w){return n[w].data.getItemGraphicEl(n[w].dataIndex)}),function(w){return w&&w!==S}),x=n[y[0]].data.hostModel;b.length&&(A(b,function(w){return Oo(w)}),S?(Oo(S),Wm(S),u=!0,Fm(xi(S),xi(b),_.divide,x,y[0],i)):A(b,function(w){return Hm(w,x,y[0])}))}}).updateManyToMany(function(y,m){new ca(m,y,function(_){return a[_].data.getId(a[_].dataIndex)},function(_){return n[_].data.getId(n[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&A(e,function(y){var _=y.data.hostModel,S=_&&t.getViewOfSeriesModel(_),b=zi("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof pt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function sP(r){return r.getModel("universalTransition").get("seriesKey")||r.id}function lP(r){return z(r)?r.sort().join(","):r}function ln(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function uP(r,e){for(var t=0;t<r.length;t++)if(null!=e.seriesIndex&&e.seriesIndex===r[t].seriesIndex||null!=e.seriesId&&e.seriesId===r[t].id)return t}ct([function Ez(r){r.registerPainter("canvas",Rz)}]),ct([function c5(r){r.registerPainter("svg",v5)}]),ct([function V5(r){r.registerChartView(k5),r.registerSeriesModel(d5),r.registerLayout(cl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,HT("line"))},function eG(r){r.registerChartView(tG),r.registerSeriesModel(z5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(gw,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yw("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,HT("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){t.eachComponent({mainType:e.componentType||"series",query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})},function pG(r){r.registerChartView(lG),r.registerSeriesModel(vG),ib("pie",r.registerAction),r.registerLayout(it(rG,"pie")),r.registerProcessor(pl("pie")),r.registerProcessor(function cG(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(wt(o)&&!isNaN(o)&&o<0)})}}}("pie"))},function rF(r){ct(AC),r.registerSeriesModel(gG),r.registerChartView(bG),r.registerLayout(cl("scatter"))},function _F(r){ct(mF),r.registerChartView(oF),r.registerSeriesModel(lF),r.registerLayout(aF),r.registerProcessor(pl("radar")),r.registerPreprocessor(nF)},function c3(r){ct(lA),r.registerChartView(QF),r.registerSeriesModel($F),r.registerLayout(r3),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,e3),ib("map",r.registerAction)},function Y3(r){r.registerChartView(M3),r.registerSeriesModel(z3),r.registerLayout(F3),r.registerVisual(W3),function U3(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,o=a.getData().tree.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var o=Tg(n.coordinateSystem,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})}(r)},function PH(r){r.registerSeriesModel(K3),r.registerChartView(uH),r.registerVisual(dH),r.registerLayout(wH),function Z3(r){for(var e=0;e<mA.length;e++)r.registerAction({type:mA[e],update:"updateView"},Xt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},function n(i,o){var l=bl(t,["treemapZoomToNode","treemapRootToNode"],i);if(l){var u=i.getViewRoot();u&&(t.direction=Ig(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}})})}(r)},function i4(r){r.registerChartView($H),r.registerSeriesModel(a4),r.registerProcessor(RH),r.registerVisual(EH),r.registerVisual(kH),r.registerLayout(zH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,FH),r.registerLayout(WH),r.registerCoordinateSystem("graphView",{dimensions:Sl.dimensions,create:YH}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(n4,function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var o=Tg(n.coordinateSystem,e,void 0,a);n.setCenter&&n.setCenter(o.center),n.setZoom&&n.setZoom(o.zoom)})})},function p4(r){r.registerChartView(h4),r.registerSeriesModel(c4)},function C4(r){r.registerChartView(m4),r.registerSeriesModel(S4),r.registerLayout(T4),r.registerProcessor(pl("funnel"))},function LW(r){ct(IM),r.registerChartView(I4),r.registerSeriesModel(k4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,V4)},function r6(r){r.registerChartView(kW),r.registerSeriesModel(NW),r.registerLayout(VW),r.registerVisual(e6),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function d6(r){r.registerSeriesModel(a6),r.registerChartView(l6),r.registerLayout(u6),r.registerTransform(p6)},function O6(r){r.registerChartView(b6),r.registerSeriesModel(w6),r.registerPreprocessor(T6),r.registerVisual(P6),r.registerLayout(k6)},function H6(r){r.registerChartView(z6),r.registerSeriesModel(F6),r.registerLayout(cl("effectScatter"))},function oU(r){r.registerChartView($6),r.registerSeriesModel(aU),r.registerLayout(WM),r.registerVisual(iU)},function gU(r){r.registerChartView(cU),r.registerSeriesModel(dU)},function LU(r){r.registerChartView(AU),r.registerSeriesModel(DU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it(gw,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yw("pictorialBar"))},function VU(r){r.registerChartView(RU),r.registerSeriesModel(kU),r.registerLayout(OU),r.registerProcessor(pl("themeRiver"))},function jU(r){r.registerChartView(UU),r.registerSeriesModel(ZU),r.registerLayout(it(XU,"sunburst")),r.registerProcessor(it(pl,"sunburst")),r.registerVisual(KU),function HU(r){r.registerAction({type:Ly,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function a(n,i){var o=bl(e,[Ly],n);if(o){var s=n.getViewRoot();s&&(e.direction=Ig(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}})}),r.registerAction({type:sD,update:"none"},function(e,t,a){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function n(i){var o=bl(e,[sD],i);o&&(e.dataIndex=o.node.dataIndex)}),a.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,a){e=V({},e),a.dispatchAction(V(e,{type:"downplay"}))})}(r)},function OY(r){r.registerChartView(TY),r.registerSeriesModel($U)}]),ct(function n8(r){ct(AC),ct(kl)}),ct(function z8(r){ct(kl),ui.registerAxisPointerClass("PolarAxisPointer",l8),r.registerCoordinateSystem("polar",b8),r.registerComponentModel(f8),r.registerComponentView(B8),_o(r,"angle",h8,N8),_o(r,"radius",v8,V8),r.registerComponentView(A8),r.registerComponentView(R8),r.registerLayout(it(O8,"bar"))}),ct(lA),ct(function a7(r){ct(kl),ui.registerAxisPointerClass("SingleAxisPointer",e7),r.registerComponentView(r7),r.registerComponentView(U8),r.registerComponentModel($y),_o(r,"single",$y,$y.defaultOption),r.registerCoordinateSystem("single",Q8)}),ct(IM),ct(function f7(r){r.registerComponentModel(i7),r.registerComponentView(s7),r.registerCoordinateSystem("calendar",u7)}),ct(function _7(r){r.registerComponentModel(d7),r.registerComponentView(g7),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?e.graphic=t[0]&&t[0].elements?[e.graphic[0]]:[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),ct(function SZ(r){r.registerComponentModel(V7),r.registerComponentView(F7),Lo("saveAsImage",W7),Lo("magicType",Z7),Lo("dataView",aZ),Lo("dataZoom",_Z),Lo("restore",uZ),ct(O7)}),ct(function WZ(r){ct(kl),r.registerComponentModel(bZ),r.registerComponentView(HZ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}),ct(kl),ct(function u9(r){r.registerComponentView(r9),r.registerComponentModel(i9),r.registerPreprocessor(YZ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,jZ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),Lo("brush",l9)}),ct(function v9(r){r.registerComponentModel(f9),r.registerComponentView(h9)}),ct(function M9(r){r.registerComponentModel(p9),r.registerComponentView(w9),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),function T9(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Q({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&null!=e.playState&&a.setPlayState(e.playState)})}(r),r.registerPreprocessor(C9)}),ct(function V9(r){r.registerComponentModel(L9),r.registerComponentView(N9),r.registerPreprocessor(function(e){mm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),ct(function Y9(r){r.registerComponentModel(z9),r.registerComponentView(U9),r.registerPreprocessor(function(e){mm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),ct(function $9(r){r.registerComponentModel(X9),r.registerComponentView(J9),r.registerPreprocessor(function(e){mm(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),ct(function cX(r){ct(pI),ct(vX)}),ct(function OX(r){ct(_I),ct(wI)}),ct(_I),ct(wI),ct(function lq(r){ct(zI),ct(FI)}),ct(zI),ct(FI),ct(function cq(r){r.registerPreprocessor(vq),r.registerVisual(r.PRIORITY.VISUAL.ARIA,hq)}),ct(function Aq(r){r.registerTransform(Tq),r.registerTransform(Cq)}),ct(function Lq(r){r.registerComponentModel(Mq),r.registerComponentView(Dq)}),ct(function tK(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Pt(a.seriesTransition),function(n){A(Pt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(null!=i.seriesIndex&&i.seriesIndex===o[s].seriesIndex||null!=i.seriesId&&i.seriesId===o[s].id)&&(o[s][af]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=qq(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Pt(i),function(c){!function $q(r,e,t,a){var n=[],i=[];A(Pt(r.from),function(o){var s=uP(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:ln(e.oldData[s]),dim:o.dimension})}),A(Pt(r.to),function(o){var s=uP(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:ln(l),dim:o.dimension})}}),n.length>0&&i.length>0&&oP(n,i,a)}(c,n,a,t)});else{var o=function Jq(r,e){var t=q(),a=q(),n=q();return A(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=sP(o),h=lP(f);a.set(h,{dataGroupId:l,data:u}),z(f)&&A(f,function(v){n.set(v,{key:h,dataGroupId:l,data:u})})}),A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=sP(o),f=lP(u),h=a.get(f);if(h)t.set(f,{oldSeries:[{dataGroupId:h.dataGroupId,divide:ln(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:ln(l),data:l}]});else if(z(u)){var v=[];A(u,function(d){var g=a.get(d);g.data&&v.push({dataGroupId:g.dataGroupId,divide:ln(g.data),data:g.data})}),v.length&&t.set(f,{oldSeries:v,newSeries:[{dataGroupId:s,data:l,divide:ln(l)}]})}else{var c=n.get(u);if(c){var p=t.get(c.key);p||(p={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:ln(c.data)}],newSeries:[]},t.set(c.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:ln(l)})}}}}),t}(n,a);A(o.keys(),function(c){var p=o.get(c);oP(p.oldSeries,p.newSeries,t)})}A(a.updatedSeries,function(c){c[af]&&(c[af]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],h=0;h<s.length;h++){var v=s[h].getData();v.count()<1e4&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),f.push(v))}})}),ct(Jw)}}]);