1import{L as X,e as w,ag as Gn,l as $,x as et,ah as rt,ae as q,ai as js,aj as it,T as j,j as Ve,ak as Zn,al as Js,am as Qs,an as li,ao as tl,ap as el,aq as Xr,k as J,ac as B,ar as Fe,M as Gt,as as rl,a0 as K,at as al,ad as Ct,au as Va,av as Un,aw as il,ax as ui,W as ot,ay as nl,az as ol,aA as Fa,aB as ft,a7 as ct,aC as sl,aD as ll,aE as ul,aF as fl,aG as Ie,aH as Jt,aI as cr,aJ as Wn,aK as fi,aL as Xn,a as jt,aM as dr,aN as vl,aO as Z,aP as Qt,d as st,_ as F,b as Bt,aQ as Ha,aR as Yn,aS as Ga,aT as hl,aU as $n,aV as vi,aW as cl,aX as ir,aY as dl,O as yt,aZ as pr,a_ as pl,a$ as gl,N as gr,b0 as Yr,b1 as ml,b2 as yl,b3 as gt,b4 as Kn,b5 as qn,b6 as nr,b7 as hi,b8 as pa,b9 as Za,ba as _l,bb as xl,bc as bl,bd as Sl,be as Al,bf as Ml,bg as wl,bh as Cl,bi as Tl,bj as Dl,bk as Il,bl as Ll,bm as El,bn as Ol,bo as _t,h as jn,bp as kl,bq as ue,m as Jn,br as Qn,bs as Pl,bt as ga,bu as Rl,bv as to,bw as eo,bx as Nl,by as or,bz as mr,n as Bl,bA as te,bB as He,bC as ro,bD as zl,bE as Vl,bF as Fl,bG as Hl,bH as Gl,bI as ao,bJ as Zl,bK as Ul,bL as Wl,bM as Xl,bN as Yl,bO as $l,bP as Kl,bQ as ql,Q as Rt,a4 as Zt,S as ma,F as we,bR as jl,bS as Jl,bT as Ot,bU as io,bV as tt,bW as no,bX as yr,bY as oo,bZ as Xe,b_ as ya,b$ as Ql,c0 as so,c1 as tu,c2 as sr,c3 as lo,c4 as mt,c5 as _a,c6 as uo,c7 as xa,c8 as fo,c9 as eu,ca as ru,cb as au,cc as iu,cd as Ye,ce as $r,cf as nu,cg as ou,ch as nt,J as ht,ci as su,cj as $e,ck as lu,cl as uu,G as xt,a6 as ee,t as z,cm as ci,cn as fu,co as vu,u as Le,s as hu,q as Vr,y as Ua,cp as vo,cq as cu,z as ho,B as ba,w as lt,cr as di,cs as du,o as pu,ct as gu,cu as pi,cv as co,cw as gi,P as po,cx as mu,cy as mi,R as St,H as yu,cz as re,C as yi,cA as Sa,cB as _i,Z as fe,cC as _u,v as xu,cD as bu,cE as xi,cF as Su,c as Au,cG as ae,cH as Mu,cI as ie,cJ as _r,cK as xr,cL as br,cM as go,cN as Sr,a1 as Fr,a2 as mo,cO as bi,cP as yo,cQ as wu,cR as Cu,cS as Wa,cT as _o,cU as Ar,cV as Tu,cW as Du,a9 as Xa,aa as Aa,cX as Iu,cY as Lu,cZ as xo,c_ as Eu,U as bo,V as Hr,c$ as Ou,d0 as ku,d1 as $t,d2 as Mr,d3 as Si,d4 as Pu,d5 as Ma,d6 as Ai,d7 as Ee,d8 as Wt,d9 as Ru,ab as Nu,da as Gr,db as wr,dc as Bu,dd as wa,I as So,de as zu,df as Ao,dg as Mi,dh as Vu,di as Fu,dj as Mo,dk as Hu,dl as Gu,dm as Zu,dn as Uu,dp as wi,dq as Kr,dr as Wu,ds as Ci,dt as Ti,du as Xu,dv as Yu,p as Cr,dw as $u,dx as Ku,i as wo,dy as qu,$ as ju,dz as Ju,dA as Qu,dB as tf,dC as ef}from"./D047NlnX.js";function he(a){return a==null?0:a.length||1}function Di(a){return a}var rf=function(){function a(e,t,r,i,n,o){this._old=e,this._new=t,this._oldKeyGetter=r||Di,this._newKeyGetter=i||Di,this.context=n,this._diffModeMultiple=o==="multiple"}return a.prototype.add=function(e){return this._add=e,this},a.prototype.update=function(e){return this._update=e,this},a.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},a.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},a.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},a.prototype.remove=function(e){return this._remove=e,this},a.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},a.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},i=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,r,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=r[s],u=he(l);if(u>1){var f=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(f,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,r)},a.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},i={},n=[],o=[];this._initIndexMap(e,r,n,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=r[l],f=i[l],v=he(u),h=he(f);if(v>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(v===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(v===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(v>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(v>1)for(var c=0;c<v;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},a.prototype._performRestAdd=function(e,t){for(var r=0;r<e.length;r++){var i=e[r],n=t[i],o=he(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);
1t[i]=null}},a.prototype._initIndexMap=function(e,t,r,i){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(n||(r[o]=s),!!t){var l=t[s],u=he(l);u===0?(t[s]=o,n&&r.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},a}();const af=rf;var nf=function(){function a(e,t){this._encode=e,this._schema=t}return a.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},a.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},a}();function of(a,e){var t={},r=t.encode={},i=X(),n=[],o=[],s={};w(a.dimensions,function(h){var c=a.getDimensionInfo(h),p=c.coordDim;if(p){var d=c.coordDimIndex;qr(r,p)[d]=h,c.isExtraCoord||(i.set(p,1),lf(c.type)&&(n[0]=h),qr(s,p)[d]=a.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(h)}Gn.each(function(m,g){var x=qr(r,g),_=c.otherDims[g];_!=null&&_!==!1&&(x[_]=c.name)})});var l=[],u={};i.each(function(h,c){var p=r[c];u[c]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=$(l,function(h){return a.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=r.label;f&&f.length&&(n=f.slice());var v=r.tooltip;return v&&v.length?o=v.slice():o.length||(o=n.slice()),r.defaultedLabel=n,r.defaultedTooltip=o,t.userOutput=new nf(s,e),t}function qr(a,e){return a.hasOwnProperty(e)||(a[e]=[]),a[e]}function sf(a){return a==="category"?"ordinal":a==="time"?"time":"float"}function lf(a){return!(a==="ordinal"||a==="time")}var lr=function(){function a(e){this.otherDims={},e!=null&&et(this,e)}return a}(),uf=rt(),ff={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Co=function(){function a(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return a.prototype.isDimensionOmitted=function(){return this._dimOmitted},a.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Do(this.source)))},a.prototype.getSourceDimensionIndex=function(e){return q(this._dimNameMap.get(e),-1)},a.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},a.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=js(this.source),r=!Io(e),i="",n=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}n.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=ff[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,p=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:n,hash:p}},a.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,r=0;t<this._fullDimCount;t++){var i=void 0,n=this.dimensions[r];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(i=n.name),r++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},a.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},a}();function To(a){return a instanceof Co}function Ya(a){for(var e=X(),t=0;t<(a||[]).length;t++){var r=a[t],i=it(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function Do(a){var e=uf(a);return e.dimNameMap||(e.dimNameMap=Ya(a.dimensionsDefine))}function Io(a){return a>30}var ce=it,Tt=$,vf=typeof Int32Array>"u"?Array:Int32Array,hf="e\0\0",Ii=-1,cf=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],df=["_approximateExtent"],Li,Ke,de,pe,jr,ge,Jr,pf=function(){function a(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;To(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<r.length;f++){var v=r[f],h=j(v)?new lr({name:v}):v instanceof lr?v:new lr(v),c=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=c,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};o.push(c),n[c]=h,u[c]!=null&&(l=!0),h.createInvertedIndices&&(s[c]=[]),i&&(h.storeDimIndex=f),p.itemName===0&&(this._nameDimIdx=h.storeDimIndex),p.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=X();w(o,function(m){d.set(n[m].storeDimIndex,m)})}}return a.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var r=this._dimIdxToName.get(t);if(r!=null)return r;var i=this._schema.getSourceDimension(t);if(i)return i.name},a.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},a.prototype._recognizeDimIndex=function(e){if(Ve(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},a.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},a.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},a.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(r){return t.hasOwnProperty(r)?t[r]:void 0}:function(r){return t[r]}},a.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},a.prototype.mapDimension=function(e,t){var r=this._dimSummary;if(t==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[t]:null},a.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,r=t.encode[e];return(r||[]).slice()},a.prototype.getStore=function(){return this._store},a.prototype.initData=function(e,t,r){var i=this,n;if(e instanceof li&&(n=e),!n){var o=this.dimensions,s=Zn(e)||Js(e)?new Qs(e,o.length):e;n=new li;
1var l=Tt(o,function(u){return{type:i._dimInfos[u].type,property:u}});n.initData(s,l,r)}this._store=n,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=of(this,this._schema),this.userOutput=this._dimSummary.userOutput},a.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},a.prototype.appendValues=function(e,t){var r=this._store.appendValues(e,t&&t.length),i=r.start,n=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<n;s++){var l=s-i;this._nameList[s]=t[l],o&&Jr(this,s)}},a.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,r=0;r<t.length;r++){var i=this._dimInfos[t[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},a.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==tl&&!e.fillStorage},a.prototype._doInit=function(e,t){if(!(e>=t)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Va;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var v=i.getItem(f,u);if(!this.hasItemOption&&el(v)&&(this.hasItemOption=!0),v){var h=v.name;n[f]==null&&h!=null&&(n[f]=Xr(h,null));var c=v.id;o[f]==null&&c!=null&&(o[f]=Xr(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Jr(this,f);Li(this)}},a.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},a.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},a.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},a.prototype.setCalculationInfo=function(e,t){ce(e)?et(this._calculationInfo,e):this._calculationInfo[e]=t},a.prototype.getName=function(e){var t=this.getRawIndex(e),r=this._nameList[t];return r==null&&this._nameDimIdx!=null&&(r=de(this,this._nameDimIdx,t)),r==null&&(r=""),r},a.prototype._getCategory=function(e,t){var r=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},a.prototype.getId=function(e){return Ke(this,this.getRawIndex(e))},a.prototype.count=function(){return this._store.count()},a.prototype.get=function(e,t){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,t)},a.prototype.getByRawIndex=function(e,t){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.storeDimIndex,t)},a.prototype.getIndices=function(){return this._store.getIndices()},a.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},a.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},a.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},a.prototype.getValues=function(e,t){var r=this,i=this._store;return J(e)?i.getValues(Tt(e,function(n){return r._getStoreDimIndex(n)}),t):i.getValues(e)},a.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,r=0,i=t.length;r<i;r++)if(isNaN(this._store.get(t[r],e)))return!1;return!0},a.prototype.indexOfName=function(e){for(var t=0,r=this._store.count();t<r;t++)if(this.getName(t)===e)return t;return-1},a.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},a.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},a.prototype.rawIndexOf=function(e,t){var r=e&&this._invertedIndicesMap[e],i=r&&r[t];return i==null||isNaN(i)?Ii:i},a.prototype.each=function(e,t,r){K(e)&&(r=t,t=e,e=[]);var i=r||this,n=Tt(pe(e),this._getStoreDimIndex,this);this._store.each(n,i?B(t,i):t)},a.prototype.filterSelf=function(e,t,r){K(e)&&(r=t,t=e,e=[]);var i=r||this,n=Tt(pe(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,i?B(t,i):t),this},a.prototype.selectRange=function(e){var t=this,r={},i=Fe(e);return w(i,function(n){var o=t._getStoreDimIndex(n);r[o]=e[n]}),this._store=this._store.selectRange(r),this},a.prototype.mapArray=function(e,t,r){K(e)&&(r=t,t=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},r),i},a.prototype.map=function(e,t,r,i){var n=r||i||this,o=Tt(pe(e),this._getStoreDimIndex,this),s=ge(this);return s._store=this._store.map(o,n?B(t,n):t),s},a.prototype.modify=function(e,t,r,i){var n=r||i||this,o=Tt(pe(e),this._getStoreDimIndex,this);this._store.modify(o,n?B(t,n):t)},a.prototype.downSample=function(e,t,r,i){var n=ge(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,r,i),n},a.prototype.minmaxDownSample=function(e,t){var r=ge(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),r},a.prototype.lttbDownSample=function(e,t){var r=ge(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),r},a.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},a.prototype.getItemModel=function(e){var t=this.hostModel,r=this.getRawDataItem(e);return new Gt(r,t,t&&t.ecModel)},a.prototype.diff=function(e){var t=this;
1return new af(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Ke(e,r)},function(r){return Ke(t,r)})},a.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},a.prototype.setVisual=function(e,t){this._visual=this._visual||{},ce(e)?et(this._visual,e):this._visual[e]=t},a.prototype.getItemVisual=function(e,t){var r=this._itemVisuals[e],i=r&&r[t];return i??this.getVisual(t)},a.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},a.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var n=i[t];return n==null&&(n=this.getVisual(t),J(n)?n=n.slice():ce(n)&&(n=et({},n)),i[t]=n),n},a.prototype.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ce(t)?et(i,t):i[t]=r},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(e,t){ce(e)?et(this._layout,e):this._layout[e]=t},a.prototype.getLayout=function(e){return this._layout[e]},a.prototype.getItemLayout=function(e){return this._itemLayouts[e]},a.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?et(this._itemLayouts[e]||{},t):t},a.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},a.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;rl(r,this.dataType,e,t),this._graphicEls[e]=t},a.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},a.prototype.eachItemGraphicEl=function(e,t){w(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},a.prototype.cloneShallow=function(e){return e||(e=new a(this._schema?this._schema:Tt(this.dimensions,this._getDimInfo,this),this.hostModel)),jr(e,this),e._store=this._store,e},a.prototype.wrapMethod=function(e,t){var r=this[e];K(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return t.apply(this,[i].concat(al(arguments)))})},a.internalField=function(){Li=function(e){var t=e._invertedIndicesMap;w(t,function(r,i){var n=e._dimInfos[i],o=n.ordinalMeta,s=e._store;if(o){r=t[i]=new vf(o.categories.length);for(var l=0;l<r.length;l++)r[l]=Ii;for(var l=0;l<s.count();l++)r[s.get(n.storeDimIndex,l)]=l}})},de=function(e,t,r){return Xr(e._getCategory(t,r),null)},Ke=function(e,t){var r=e._idList[t];return r==null&&e._idDimIdx!=null&&(r=de(e,e._idDimIdx,t)),r==null&&(r=hf+t),r},pe=function(e){return J(e)||(e=e!=null?[e]:[]),e},ge=function(e){var t=new a(e._schema?e._schema:Tt(e.dimensions,e._getDimInfo,e),e.hostModel);return jr(t,e),t},jr=function(e,t){w(cf.concat(t.__wrappedMethods||[]),function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e.__wrappedMethods=t.__wrappedMethods,w(df,function(r){e[r]=Ct(t[r])}),e._calculationInfo=et({},t._calculationInfo)},Jr=function(e,t){var r=e._nameList,i=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=r[t],l=i[t];if(s==null&&n!=null&&(r[t]=s=de(e,n,t)),l==null&&o!=null&&(i[t]=l=de(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[t]=l}}}(),a}();function gf(a,e){Zn(a)||(a=Un(a)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||a.dimensionsDefine||[],i=X(),n=[],o=mf(a,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Io(o),l=r===a.dimensionsDefine,u=l?Do(a):Ya(r),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(a,o));for(var v=X(f),h=new il(o),c=0;c<h.length;c++)h[c]=-1;function p(C){var M=h[C];if(M<0){var T=r[C],L=it(T)?T:{name:T},D=new lr,O=L.name;O!=null&&u.get(O)!=null&&(D.name=D.displayName=O),L.type!=null&&(D.type=L.type),L.displayName!=null&&(D.displayName=L.displayName);var E=n.length;return h[C]=E,D.storeDimIndex=C,n.push(D),D}return n[M]}if(!s)for(var c=0;c<o;c++)p(c);v.each(function(C,M){var T=ui(C).slice();if(T.length===1&&!j(T[0])&&T[0]<0){v.set(M,!1);return}var L=v.set(M,[]);w(T,function(D,O){var E=j(D)?u.get(D):D;E!=null&&E<o&&(L[O]=E,m(p(E),M,O))})});var d=0;w(t,function(C){var M,T,L,D;if(j(C))M=C,D={};else{D=C,M=D.name;var O=D.ordinalMeta;D.ordinalMeta=null,D=et({},D),D.ordinalMeta=O,T=D.dimsDef,L=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var E=v.get(M);if(E!==!1){if(E=ui(E),!E.length)for(var k=0;k<(T&&T.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&E.push(d++)}w(E,function(N,V){var R=p(N);if(l&&D.type!=null&&(R.type=D.type),m(ot(R,D),M,V),R.name==null&&T){var W=T[V];!it(W)&&(W={name:W}),R.name=R.displayName=W.name,R.defaultTooltip=W.defaultTooltip}L&&ot(R.otherDims,L)})}});function m(C,M,T){Gn.get(M)!=null?C.otherDims[M]=T:(C.coordDim=M,C.coordDimIndex=T,i.set(M,!0))}var g=e.generateCoord,x=e.generateCoordCount,_=x!=null;x=g?x||1:0;var y=g||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)w(n,function(C){b(C)}),n.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var S=0;S<o;S++){var A=p(S),I=A.coordDim;
1I==null&&(A.coordDim=yf(y,i,_),A.coordDimIndex=0,(!g||x<=0)&&(A.isExtraCoord=!0),x--),b(A),A.type==null&&(nl(a,S)===ol.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return Fa(n,function(C){return C.name},function(C,M){M>0&&(C.name=C.name+(M-1))}),new Co({source:a,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function mf(a,e,t,r){var i=Math.max(a.dimensionsDetectedCount||1,e.length,t.length,r||0);return w(e,function(n){var o;it(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function yf(a,e,t){if(t||e.hasKey(a)){for(var r=0;e.hasKey(a+r);)r++;a+=r}return e.set(a,!0),a}var _f=function(){function a(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return a}();function xf(a){var e=a.get("coordinateSystem"),t=new _f(e),r=bf[e];if(r)return r(a,t,t.axisMap,t.categoryAxisMap),t}var bf={cartesian2d:function(a,e,t,r){var i=a.getReferringComponents("xAxis",ft).models[0],n=a.getReferringComponents("yAxis",ft).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",n),Xt(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Xt(n)&&(r.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(a,e,t,r){var i=a.getReferringComponents("singleAxis",ft).models[0];e.coordSysDims=["single"],t.set("single",i),Xt(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(a,e,t,r){var i=a.getReferringComponents("polar",ft).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),Xt(n)&&(r.set("radius",n),e.firstCategoryDimIndex=0),Xt(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(a,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(a,e,t,r){var i=a.ecModel,n=i.getComponent("parallel",a.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Xt(u)&&(r.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(a,e,t,r){var i=a.getReferringComponents("matrix",ft).models[0];e.coordSysDims=["x","y"];var n=i.getDimensionModel("x"),o=i.getDimensionModel("y");t.set("x",n),t.set("y",o),r.set("x",n),r.set("y",o)}};function Xt(a){return a.get("type")==="category"}function Sf(a,e,t){t=t||{};var r=t.byIndex,i=t.stackedCoordDimension,n,o,s;Af(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(a&&a.get("stack")),u,f,v,h,c=!0;function p(y){return y.type!=="ordinal"&&y.type!=="time"}if(w(n,function(y,b){j(y)&&(n[b]=y={name:y}),p(y)||(c=!1)}),w(n,function(y,b){l&&!y.isExtraCoord&&(!r&&!u&&y.ordinalMeta&&(u=y),!f&&p(y)&&(!c||y.coordDim!=="x"&&y.coordDim!=="angle")&&(!i||i===y.coordDim)&&(f=y))}),f&&!r&&!u&&(r=!0),f){v="__\0ecstackresult_"+a.id,h="__\0ecstackedover_"+a.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;w(n,function(y){y.coordDim===d&&g++});var x={name:v,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},_={name:h,coordDim:h,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(x.storeDimIndex=s.ensureCalculationDimension(h,m),_.storeDimIndex=s.ensureCalculationDimension(v,m)),o.appendCalculationDimension(x),o.appendCalculationDimension(_)):(n.push(x),n.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:v}}function Af(a){return!To(a.schema)}function Oe(a,e){return!!e&&e===a.getCalculationInfo("stackedDimension")}function Mf(a,e){return Oe(a,e)?a.getCalculationInfo("stackResultDimension"):e}function wf(a,e){var t=a.get("coordinateSystem"),r=ul.get(t),i;return e&&e.coordSysDims&&(i=$(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=sf(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Cf(a,e,t){var r,i;return t&&w(a,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(a[r].otherDims.itemName=0),r}function Tf(a,e,t){t=t||{};var r=e.getSourceManager(),i,n=!1;a?(n=!0,i=Un(a)):(i=r.getSource(),n=i.sourceFormat===Va);var o=xf(e),s=wf(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?ct(sl,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},v=gf(i,f),h=Cf(v.dimensions,t.createInvertedIndices,o),c=n?null:r.getSharedDataStore(v),p=Sf(e,{schema:v,store:c}),d=new pf(v,e);d.setCalculationInfo(p);var m=h!=null&&Df(i)?function(g,x,_,y){return y===h?_:this.defaultDimValueGetter(g,x,_,y)}:null;return d.hasItemOption=!1,d.initData(n?i:c,null,m),d}function Df(a){if(a.sourceFormat===Va){var e=If(a.data||[]);return!J(ll(e))}}function If(a){for(var e=0;e<a.length&&a[e]==null;)e++;return a[e]}var Lo=function(){function a(){}return a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(e){this._isBlank=e},a}();fl(Lo);const At=Lo;var Lf=0,Ca=function(){function a(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Lf,this._onCollect=e.onCollect}return a.createByAxisModel=function(e){var t=e.option,r=t.data,i=r&&$(r,Ef);return new a({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},a.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},a.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!j(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,i.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},a.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},a}();function Ef(a){return it(a)&&a.value!=null?a.value:a+""}var vt=0,ke=1,Of={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},kf=Fe(Of),Tr=2,Eo=3;function $a(a,e,t){var r;return a=a||{},Rf(a,t),{brk:r,mapper:a}}function Oo(a,e){w(kf,function(t){a[t]=e[t]})}function ko(a,e){a.freeze=Ie}function Pe(a){return a.getExtentUnsafe(vt,Tr)}function Re(a,e){return a.getExtentUnsafe(ke,e)||a.getExtentUnsafe(vt,e)}function Pf(a){var e=Re(a,Eo);return e[1]-e[0]}function Zr(a){var e=a.getExtentUnsafe(vt,Eo);return e[1]-e[0]}function Rf(a,e){var t=a||{},r=[];return t._extents=r,r[vt]=e?e.slice():Jt(),et(t,Nf),t}var Nf={needTransform:function(){return!1},normalize:function(a){var e=this._extents[ke]||this._extents[vt];return e[1]===e[0]?.5:(a-e[0])/(e[1]-e[0])},scale:function(a){var e=this._extents[ke]||this._extents[vt];return a*(e[1]-e[0])+e[0]},transformIn:function(a){return a},transformOut:function(a){return a},contain:function(a){var e=Re(this,null);return a>=e[0]&&a<=e[1]},getExtent:function(){return this._extents[vt].slice()},getExtentUnsafe:function(a){return this._extents[a]},setExtent:function(a,e){Ei(this._extents,vt,a,e)},setExtent2:function(a,e,t){var r=this._extents;r[a]||(r[a]=r[vt].slice()),Ei(r,a,e,t)},freeze:function(){}};function Ei(a,e,t,r){cr(t,r)&&(a[e][0]=t,a[e][1]=r)}function Po(a){return Dr(a)||ne(a)}function Dr(a){return a.type==="interval"}function Ge(a){return a.type==="time"}function ne(a){return a.type==="log"}function ut(a){return a.type==="ordinal"}function Bf(a){var e=vl(a),t=Xn(10,e),r=Qt(a/t);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Z(r*t,-e)}function Ut(a){return Wn(a)+2}function qe(a,e){return fi(a)/fi(e)}function Qr(a,e,t){var r=t&&t.lookup;if(r){for(var i=0;i<r.from.length;
1i++)if(a===r.from[i])return r.to[i]}return Xn(e,a)}function Ro(a,e,t){var r=a.slice();if(r[0]===r[1]){var i=t&&t.ctnShp;if(r[0]!==0){var n=jt(r[0]);e[1]||(r[1]+=n/2),r[0]-=n/2}else i&&(r[0]=-1),r[1]=1}return(!dr(r[0])||!dr(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function zf(a,e){return[a[0]!==e[0],a[1]!==e[1]]}function Ka(a,e){return a=a||e,Qt(st(a,1))}function No(a,e,t){var r=Pe(a),i=r[0],n=a.count(),o=Math.max((e||0)+1,1);i!==0&&o>1&&n/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&l(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)l(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&l(r[1],!0,!0);function l(u,f,v){t({value:u,offInterval:f},v)}}var Bo=function(a){F(e,a);function e(t){var r=a.call(this)||this;r.type="ordinal",r.parse=e.parse,Oo(r,e.decoratedMethods);var i=t.ordinalMeta;i||(i=new Ca({})),J(i)&&(i=new Ca({categories:$(i,function(o){return it(o)?o.value:o})})),r._ordinalMeta=i;var n=$a(null,null,t.extent||[0,i.categories.length-1]);return r._mapper=n.mapper,ko(r),r}return e.parse=function(t){return t==null?t=NaN:j(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=Qt(t),t},e.prototype.getTicks=function(){var t=[];return No(this,0,function(r){t.push(r)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Bt(s,r.length);o<l;++o){var u=i[o]=r[o];n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;i[o]=f,n[f]=o}},e.prototype._getTickNumber=function(t){var r=this._ticksByOrdinalNumber;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getRawOrdinalNumber=function(t){var r=this._ordinalNumbersByTick;return r&&t>=0&&t<r.length?r[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var r=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},e.prototype.count=function(){var t=Pe(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Qt(this._mapper.scale(t)))},transformIn:function(t,r){return this._mapper.transformIn(this._getTickNumber(t),r)},transformOut:function(t,r){return this.getRawOrdinalNumber(this._mapper.transformOut(t,r))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,r){return this._mapper.getExtentUnsafe(t,r)},setExtent:function(t,r){return this._mapper.setExtent(t,r)},setExtent2:function(t,r,i){return this._mapper.setExtent2(t,r,i)}},e}(At);At.registerClass(Bo);const Vf=Bo;function qa(a,e,t,r){for(var i=a.getTicks({expandToNicedExtent:!0}),n=[],o=a.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var f=0,v=[],h=l.value-u.value,c=h/e,p=Ut(c);f<e-1;){var d=Z(u.value+(f+1)*c,p);d>o[0]&&d<o[1]&&v.push(d),f++}var m=Ha();m&&m.pruneTicksByBreak("auto",v,t,function(g){return g},r,o),n.push(v)}}return n}var zo=function(a){F(e,a);function e(t){var r=a.call(this)||this;r.type="interval",r.parse=e.parse,t=t||{};var i=Yn(r,t),n=$a(r,i,null);return r.brk=n.brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return Ct(this._cfg)},e.prototype.setConfig=function(t){var r=Pe(this);this._cfg=t=Ct(t),t.niceExtent==null&&(t.niceExtent=r.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Ut(t.interval))},e.prototype.getTicks=function(t){t=t||{};var r=this._cfg,i=r.interval,n=Pe(this),o=r.niceExtent,s=r.intervalPrecision,l=Ha(),u=this.brk,f=l,v=[];if(!i)return v;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(v,u.breaks,n),v;var h=3e3;n[0]<o[0]&&v.push({value:t.expandToNicedExtent?Z(o[0]-i,s):n[0]});for(var c=function(_,y){return Qt((y-_)/i)},p=r.intervalCount,d=o[0],m=0;;m++){if(p==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>p)break;d=Bt(d,o[1]),m===p&&(d=o[1])}if(v.push({value:d}),d=Z(d+i,s),u){var g=u.calcNiceTickMultiple(d,c);g>=0&&(d=Z(d+g*i,s))}if(v.length>0&&d===v[v.length-1].value)break;
1if(v.length>h)return[]}var x=v.length?v[v.length-1].value:o[1];return n[1]>x&&v.push({value:t.expandToNicedExtent?Z(x+i,s):n[1]}),v},e.prototype.getMinorTicks=function(t){return qa(this,t,Ga(this),this._cfg.interval)},e.prototype.getLabel=function(t,r){if(t==null)return"";var i=r&&r.precision;i==null?i=Wn(t.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var n=Z(t.value,i,!0);return hl(n)},e.type="interval",e}(At);At.registerClass(zo);const Ce=zo;var Ff=function(a,e,t,r){for(;t<r;){var i=t+r>>>1;a[i][1]<e?t=i+1:r=i}return t},Vo=function(a){F(e,a);function e(t){var r=a.call(this)||this;r.type="time",r.parse=e.parse,r._locale=t.locale,r._useUTC=t.useUTC,r._interval=0;var i=Yn(r,t),n=$a(r,i,null);return r.brk=n.brk,r}return e.prototype.getLabel=function(t){return $n(t.value,vi[cl(ir(this._minLevelUnit))]||vi.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,r,i){return dl(t,r,i,this._locale,this._useUTC)},e.prototype.getTicks=function(t){var r=this._interval,i=Pe(this),n=this.brk,o=[];if(!r)return o;var s=this._useUTC;o=$f(this._minLevelUnit,this._approxInterval,s,i,Zr(this),n);var l=pr.length-1,u=0;return w(o,function(f){f.time&&(l=Math.min(l,yt(pr,f.time.upperTimeUnit)),u=Math.max(u,f.time.level))}),o},e.prototype.getMinorTicks=function(t){return qa(this,t,Ga(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ve(t)?Math.round(t):+pl(t)},e.type="time",e}(At),je=[["second",Kn],["minute",qn],["hour",nr],["quarter-day",nr*6],["half-day",nr*12],["day",gt*1.2],["half-week",gt*3.5],["week",gt*7],["month",gt*31],["quarter",gt*95],["half-year",hi/2],["year",hi]];function Hf(a,e,t,r){return pa(new Date(e),a,r).getTime()===pa(new Date(t),a,r).getTime()}function Gf(a,e){return a/=gt,a>16?16:a>7.5?7:a>3.5?4:a>1.5?2:1}function Zf(a){var e=30*gt;return a/=e,a>6?6:a>3?3:a>2?2:1}function Uf(a){return a/=nr,a>12?12:a>6?6:a>3.5?4:a>2?2:1}function Oi(a,e){return a/=e?qn:Kn,a>30?30:a>20?20:a>15?15:a>10?10:a>5?5:a>2?2:1}function Wf(a){return st(Za(a,!0),1)}function Xf(a,e,t){var r=Math.max(0,yt(pr,e)-1);return pa(new Date(a),pr[r],t).getTime()}function Yf(a,e){var t=new Date(0);t[a](1);var r=t.getTime();t[a](1+e);var i=t.getTime()-r;return function(n,o){return Math.max(0,Math.round((o-n)/i))}}function $f(a,e,t,r,i,n){var o=3e3,s=yl,l=0;function u(k,N,V,R,W,H,Q){for(var G=Yf(W,k),P=N,U=new Date(P);P<V&&P<=r[1]&&(Q.push({value:P}),!(l++>o));)if(U[W](U[R]()+k),P=U.getTime(),n){var Y=n.calcNiceTickMultiple(P,G);Y>0&&(U[W](U[R]()+Y*k),P=U.getTime())}Q.push({value:P,notAdd:P>r[1]})}function f(k,N,V){var R=[],W=!N.length;if(!Hf(ir(k),r[0],r[1],t)){W&&(N=[{value:Xf(r[0],k,t)},{value:r[1]}]);for(var H=0;H<N.length-1;H++){var Q=N[H].value,G=N[H+1].value;if(Q!==G){var P=void 0,U=void 0,Y=void 0,We=!1;switch(k){case"year":P=Math.max(1,Math.round(e/gt/365)),U=El(t),Y=Ol(t);break;case"half-year":case"quarter":case"month":P=Zf(e),U=Il(t),Y=Ll(t);break;case"week":case"half-week":case"day":P=Gf(e),U=Tl(t),Y=Dl(t),We=!0;break;case"half-day":case"quarter-day":case"hour":P=Uf(e),U=wl(t),Y=Cl(t);break;case"minute":P=Oi(e,!0),U=Al(t),Y=Ml(t);break;case"second":P=Oi(e,!1),U=bl(t),Y=Sl(t);break;case"millisecond":P=Wf(e),U=_l(t),Y=xl(t);break}G>=r[0]&&Q<=r[1]&&u(P,Q,G,U,Y,We,R),k==="year"&&V.length>1&&H===0&&V.unshift({value:V[0].value-P})}}for(var H=0;H<R.length;H++)V.push(R[H])}}for(var v=[],h=[],c=0,p=0,d=0;d<s.length;++d){var m=ir(s[d]);if(gl(s[d])){f(s[d],v[v.length-1]||[],h);var g=s[d+1]?ir(s[d+1]):null;if(m!==g){if(h.length){p=c,h.sort(function(k,N){return k.value-N.value});for(var x=[],_=0;_<h.length;++_){var y=h[_].value;(_===0||h[_-1].value!==y)&&(x.push(h[_]),y>=r[0]&&y<=r[1]&&c++)}var b=i/e;if(c>b*1.5&&p>b/1.5||(v.push(x),c>b||a===s[d]))break}h=[]}}}for(var S=gr($(v,function(k){return gr(k,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(k){return k.length>0}),A=S.length-1,I=[],d=0;d<S.length;++d)for(var C=S[d],M=0;M<C.length;++M){var T=Yr(C[M].value,t);I.push({value:C[M].value,time:{level:A-d,upperTimeUnit:T,lowerTimeUnit:T}})}Fa(I,ml,null),I.sort(function(k,N){return k.value-N.value});var L=I[0],D=I[I.length-1],O=Yr(r[0],t),E=Yr(r[1],t);return(!L||L.value>r[0])&&I.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&I.push({value:r[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),I}var Kf=function(a,e){var t=a.getExtent();if(t[0]===t[1]&&(t[0]-=gt,t[1]+=gt),t[1]===-1/0&&t[0]===1/0){var r=new Date;t[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),t[0]=t[1]-gt}a.setExtent(t[0],t[1]);var i=Ka(e.splitNumber,10),n=Zr(a)/i,o=e.minInterval,s=e.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=je.length,u=Math.min(Ff(je,n,0,l),l-1),f=je[u][1],v=je[Math.max(u-1,0)][0];a.setTimeInterval({approxInterval:n,interval:f,minLevelUnit:v})};At.registerClass(Vo);const qf=Vo;var Je=0,Qe=1,Fo=function(a){F(e,a);function e(t){var r=a.call(this)||this;
1r.type="log",r.parse=Ce.parse,r.base=t.logBase||10;var i=[],n=[],o=r._lookup={from:i,to:n};i[Je]=i[Qe]=n[Je]=n[Qe]=NaN,Oo(r,e.mapperMethods),t.breakOption;var s={lookup:o};return r.powStub=new Ce({breakParsed:s.original}),r.intervalStub=new Ce({breakParsed:s.transformed}),ko(r,r.intervalStub),r}return e.prototype.getTicks=function(t){var r=this.base,i=this.powStub,n=this.intervalStub,o=n.getExtent(),s=i.getExtent(),l={lookup:{from:o,to:s}};return $(n.getTicks(t||{}),function(u){var f=u.value,v=Qr(f,r,l),h;return{value:v,break:h}},this)},e.prototype.getMinorTicks=function(t){return qa(this,t,Ga(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,r){return this.intervalStub.getLabel(t,r)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(qe(t,this.base))},scale:function(t){return Qr(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,r){return t=qe(t,this.base),r&&r.depth===Tr?t:this.intervalStub.transformIn(t,r)},transformOut:function(t,r){var i=r?r.depth:null;return ki.depth=i,Pi.lookup=this._lookup,Qr(i===Tr?t:this.intervalStub.transformOut(t,ki),this.base,Pi)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,r){this.setExtent2(vt,t,r)},setExtent2:function(t,r,i){if(!(!cr(r,i)||r<=0||i<=0)){var n=Ri,o=Ri;if(t===vt){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(t,n[Je]=r,n[Qe]=i);var l=this.base;this.intervalStub.setExtent2(t,o[Je]=qe(r,l),o[Qe]=qe(i,l))}},getFilter:function(){return{g:0}},sanitize:function(t,r){return cr(r[0],r[1])&&_t(t)&&t<=0&&(t=r[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,r){return r===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,r)}},e}(At);At.registerClass(Fo);var ki={},Pi={},Ri=[];const jf=Fo;var Ho={value:1,category:1,time:1,log:1},Go=rt();function Jf(a){var e=a.get("type");return(e==null||!jn(Ho,e)&&!At.getClass(e))&&(e="value"),e}function Qf(a,e,t){var r;switch(e){case"category":return new Vf({ordinalMeta:a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),extent:Jt()});
1case"time":return new qf({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC"),breakOption:r});case"log":return new jf({logBase:a.get("logBase"),breakOption:r});case"value":return new Ce({breakOption:r});default:return new(At.getClass(e)||Ce)({})}}function tv(a,e,t){var r=t?Re(a,null):a.getExtentUnsafe(vt,null),i=r[0],n=r[1];return cr(i,n)?i===e||n===e?rv:i<e&&n>e?ev:Ta:Ta}var ev=1,rv=2,Ta=3;function av(a){Go(a).noOnMyZero=!0}function iv(a){return Go(a).noOnMyZero}function Ur(a){var e=a.getLabelModel().get("formatter");if(a.type==="time"){var t=kl(e);return function(i,n){return a.scale.getFormattedLabel(i,n,t)}}else{if(j(e))return function(i){var n=a.scale.getLabel(i),o=e.replace("{value}",n??"");return o};if(K(e)){if(a.type==="category")return function(i,n){return e(Ir(a,i),i.value-a.scale.getExtent()[0],null)};var r=Ha();return function(i,n){var o=null;return r&&(o=r.makeAxisLabelFormatterParamBreak(o,i.break)),e(Ir(a,i),n,o)}}else return function(i){return a.scale.getLabel(i)}}}function Ir(a,e){var t=a.scale;return ut(t)?t.getLabel(e):e.value}function ja(a){var e=a.get("interval");return e??"auto"}function nv(a){return a.type==="category"&&ja(a.getLabelModel())===0}function ov(a,e){var t={};return w(a.mapDimensionsAll(e),function(r){t[Mf(a,r)]=!0}),Fe(t)}function oe(a){return a==="middle"||a==="center"}function Ne(a){return a.getShallow("show")}function sv(a,e,t){var r=a.get("breaks",!0);r==null}function Zo(a,e,t,r,i,n){var o=ne(a),s=o?a.intervalStub:a;if(s.setExtent(r[0],r[1]),o){var l=a.powStub,u={depth:Tr},f=a.transformOut(r[0],u),v=a.transformOut(r[1],u),h=zf(t,r);e[0]&&!h[0]&&(f=i[0]),e[1]&&!h[1]&&(v=i[1]),l.setExtent(f,v)}s.setConfig(n)}function Ze(a,e){return ut(a)?a.getRawOrdinalNumber(e.value):e.value}function Uo(a,e){return ut(a)&&!!e.get("boundaryGap")}var lv=function(){function a(){}return a.prototype.needIncludeZero=function(){return!this.option.scale},a.prototype.getCoordSysModel=function(){},a}(),uv=Jn(),Lr="|&",ve=rt(),Wo=-2,fv=-1,vv=rt();function Xo(a,e){var t=a.model,r=ve(ue(t.ecModel)).keyed,i=r&&r.get(e);return i&&i.get(t.uid)}function hv(a,e){return $o(Xo(a,e))}function cv(a,e){var t=[];return Yo(a.model.ecModel,function(r){for(var i=0;i<e.length;i++)e[i]&&r.serByIdx[e[i].seriesIndex]&&t.push($o(r))}),t}function Yo(a,e){var t=ve(ue(a)).keyed;t&&t.each(function(r,i){r.each(function(n,o){e(n,i,o)})})}function $o(a){return{liPosMinGap:a?a.liPosMinGap:void 0}}function dv(a,e){var t=a.model.ecModel,r=ve(ue(t)).axSer;r&&Ja(t,r.get(a.model.uid),e)}function Cp(a,e,t){var r=Xo(a,e);r&&Ja(a.model.ecModel,r.sers,t)}function Ja(a,e,t){if(e)for(var r=0;r<e.length;r++){var i=e[r];a.isSeriesFiltered(i)||t(i)}}function Tp(a,e,t){var r=ve(ue(a)).keyed,i=r&&r.get(e);i&&i.each(function(n){t(n.axis)})}function Ko(a,e){var t=a.model,r=ve(ue(t.ecModel)).keys;r&&w(r.get(t.uid),function(i){e(i)})}function pv(a){var e=vv(Qn(a)),t=e.keyed||(e.keyed=X());Yo(a,function(r,i,n){var o=t.get(i)||t.set(i,X()),s=o.get(n)||o.set(n,{});r.metrics.liPosMinGap&&qo.liPosMinGap(a,r,s)})}function gv(a,e){qo[a]=e}var qo={};function Ni(a,e,t){if(a){var r=e.ecModel,i=ve(ue(r)),n=a.model.uid,o=i.axSer||(i.axSer=X()),s=o.get(n)||o.set(n,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===a,f=Ia.get(Da(l,u,t))||Ia.get(Da(l,u,null));if(f){var v=i.keyed||(i.keyed=X()),h=i.keys||(i.keys=X()),c=f.key,p=v.get(c)||v.set(c,X()),d=p.get(n);d||(d=p.set(n,{axis:a,sers:[],serByIdx:[]}),d.metrics=f.getMetrics(a),(h.get(n)||h.set(n,[])).push(c)),d.sers.push(e),d.serByIdx[e.seriesIndex]=e}}}function Da(a,e,t){return a+Lr+q(e,!0)+Lr+(t||"")}function Dp(a,e){var t=Da(e.seriesType,e.baseAxis,e.coordSysType);Ia.set(t,e),uv(a,function(){a.registerProcessor(a.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:pv})})}var Ia=X(),mv=rt(),yv=1,_v=2,xv=3,jo=function(){function a(e,t,r,i,n){var o=ut(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=r.slice();(Dr(e)||ne(e)||Ge(e))&&(to(f,me(e,t.get("dataMin",!0))),eo(f,me(e,t.get("dataMax",!0)))),Nl(f)||(f[0]=f[1]=NaN);var v=[],h=[!1,!1],c=t.get("min",!0);c==="dataMin"?(v[0]=f[0],h[0]=!0):(v[0]=me(e,K(c)?c({min:f[0],max:f[1]}):c),h[0]=v[0]!=null);var p=t.get("max",!0);p==="dataMax"?(v[1]=f[1],h[1]=!0):(v[1]=me(e,K(p)?p({min:f[0],max:f[1]}
1):p),h[1]=v[1]!=null);var d=bv(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);v[0]==null&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),v[1]==null&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!dr(v[0])&&(v[0]=NaN),!dr(v[1])&&(v[1]=NaN);var g=l||mr(v[0])||mr(v[1])||o&&!s,x=Dr(e),_=x&&t.needIncludeZero&&t.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!h[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!h[1]&&(v[1]=0));var y=!1;v[0]>v[1]&&(v.reverse(),y=!0);var b=me(e,t.get("startValue",!0)),S=b!=null;!_t(b)&&i&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),_t(b)&&(S||!x||_)&&(b<v[0]&&!h[0]?(v[0]=b,h[0]=!0):b>v[1]&&!h[1]&&(v[1]=b,h[1]=!0));var A=this._i={scale:e,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:_,tggAxInv:y,ctnShp:n};Bi(A,v)}return a.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},a.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,r=e.noZoomEffMM,i=e.zoomFixMM,n=e.fixMM,o={fixMM:n,zoomFixMM:i,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:r.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],n[0]=i[0]=!0),t[1]!=null&&(s[1]=t[1],n[1]=i[1]=!0),Bi(e,s),o},a.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},a.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},a}();function Bi(a,e){var t=a.scale,r=a.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],r),e[1]=t.sanitize(e[1],r),or(e))}function me(a,e){return e==null?null:mr(e)?NaN:a.parse(e)}function bv(a,e){var t;if(ut(a))t=[0,0];else{var r=e.get("boundaryGap");typeof r=="boolean"&&(r=null),t=J(r)?r:[r,r]}return[zi(t[0]),zi(t[1])]}function zi(a){return Bl(typeof a=="boolean"?0:a,1)||0}function Jo(a){var e=mv(a.scale);return e.extent||(e.extent=Jt()),e}function Sv(a,e){Jo(a).dimIdxInCoord=e.get(a.dim)}function Qo(a,e){var t=a.scale,r=a.model,i=a.dim;t.rawExtentInfo||Av(t,a,i,r,e)}function Av(a,e,t,r,i){var n=Jo(e),o=n.extent,s=!1;dv(e,function(f){if(f.boxCoordinateSystem){var v=Pl(f).coord,h=n.dimIdxInCoord;if(h>=0){if(J(v)){var c=v[h];c!=null&&!J(c)&&ga(o,a.parse(c))}}}else if(f.coordinateSystem){var p=f.getData();if(p){var d=a.getFilter?a.getFilter():null;w(ov(p,t),function(m){Rl(o,p.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=wv(a,e,r),u=new jo(a,r,o,s,l);ts(a,u,i),n.extent=null}function Mv(a,e){var t=a.scale;ts(t,new jo(t,a.model,e,!1,!1),xv)}function ts(a,e,t){a.rawExtentInfo=e,e.from=t}function Ip(a,e){Qa.set(a,e)}var Qa=X();function es(a,e,t,r,i){a.rawExtentInfo||Mv({scale:a,model:e},i||Jt());var n=a.rawExtentInfo.makeFinal(),o=n.effMM;return a.setExtent(o[0],o[1]),a.setBlank(n.isBlank),r&&n.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(r.inverse=!r.inverse),n}function wv(a,e,t){var r=Uo(a,t),i=t.get("containShape",!0);if(i==null&&!r&&(i=!0),!i)return!1;var n=!1;return Ko(e,function(o){n=!!Qa.get(o)||n}),n}function Cv(a,e,t,r){if(t.ctnShp){var i;if(Ko(a,function(s){var l=Qa.get(s);if(l){var u=l(a,r);u&&(i=i||[0,0],to(i,u[0]),eo(i,u[1]),av(a))}}),!!i){var n=e.getExtent();if(ut(e))a.onBand||e.setExtent2(ke,Bt(n[0],n[0]+i[0]),st(n[1],n[1]+i[1]));else{var o=n.slice();t.zoomFixMM[0]||(o[0]=Bt(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),t.zoomFixMM[1]||(o[1]=st(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<n[0]||o[1]>n[1])&&e.setExtent2(ke,o[0],o[1])}}}}function Vi(a,e){var t=ne(a),r=t?a.intervalStub:a,i=e.fixMinMax||[],n=t?a.getExtent():null,o=r.getExtent(),s=Ro(o,i,e.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var l=t?Dv(r,e):Tv(r,e),u=l.intervalPrecision,f=l.interval,v=e.userInterval;v!=null&&(l.interval=v,l.intervalPrecision=Ut(v)),i[0]||(s[0]=Z(te(s[0]/f)*f,u)),i[1]||(s[1]=Z(He(s[1]/f)*f,u)),v!=null&&(l.niceExtent=s.slice()),Zo(a,i,o,s,n,l)}function Tv(a,e){var t=Ka(e.splitNumber,5),r=Zr(a),i=e.minInterval,n=e.maxInterval,o=Za(r/t,!0);i!=null&&o<i&&(o=i),n!=null&&o>n&&(o=n);var s=Ut(o),l=a.getExtent(),u=[Z(He(l[0]/o)*o,s),Z(te(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function Dv(a,e){var t=Ka(e.splitNumber,10),r=a.getExtent(),i=Zr(a),n=st(ro(i),1),o=t/i*n;o<=.5&&(n*=10);var s=Ut(n),l=[Z(He(r[0]/n)*n,s),Z(te(r[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function Fi(a){var e=a.scale,t=a.model,r=t.axis,i=t.ecModel;Iv(e,t,r,i,null)}function Iv(a,e,t,r,i){var n=es(a,e,r,t,i),o=Dr(a)||Ge(a);Lv(a,{splitNumber:e.get("splitNumber"),fixMinMax:n.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:n}),t&&r&&Cv(t,a,n,r)}function Lv(a,e){Ev[a.type](a,e)}var Ev={interval:Vi,log:Vi,time:Kf,ordinal:Ie},Hi=[],Ov={registerPreprocessor:zl,registerProcessor:Vl,registerPostInit:Fl,registerPostUpdate:Hl,registerUpdateLifecycle:Gl,registerAction:ao,registerCoordinateSystem:Zl,registerLayout:Ul,registerVisual:Wl,registerTransform:Xl,registerLoading:Yl,registerMap:$l,registerImpl:Kl,PRIORITY:ql,ComponentModel:Rt,ComponentView:Zt,SeriesModel:ma,ChartView:we,registerComponentModel:function(a){Rt.registerClass(a)},registerComponentView:function(a){Zt.registerClass(a)},registerSeriesModel:function(a){ma.registerClass(a)},registerChartView:function(a){we.registerClass(a)},registerCustomSeries:function(a,e){},registerSubTypeDefaulter:function(a,e){Rt.registerSubTypeDefaulter(a,e)},registerPainter:function(a,e){jl(a,e)}};function se(a){if(J(a)){w(a,function(e){se(e)});return}yt(Hi,a)>=0||(Hi.push(a),K(a)&&(a={install:a}),a.install(Ov))}var kv=rt(),Te=rt(),bt={estimate:1,determine:2};function Er(a){return{out:{noPxChangeTryDetermine:[]},kind:a}}function Pv(a,e){var t=a.getLabelModel().get("customValues");if(t){var r=a.scale;return{labels:$(rs(t,r),function(i,n){return{formattedLabel:Ur(a)(i,n),rawLabel:r.getLabel(i),tick:i}})}}return a.type==="category"?Nv(a,e):zv(a)}function Rv(a,e,t){var r=a.scale,i=a.getTickModel().get("customValues");return i?{ticks:rs(i,r)}:a.type==="category"?Bv(a,e):{ticks:r.getTicks(t)}}function rs(a,e){var t=e.getExtent(),r=[];return w(a,function(i){i=e.parse(i),i>=t[0]&&i<=t[1]&&r.push(i)}),Fa(r,Jl,null),Ot(r),$(r,function(i){return{value:i}})}function Nv(a,e){var t=a.getLabelModel(),r=as(a,t,e);return!t.get("show")||a.scale.isBlank()?{labels:[]}:r}function as(a,e,t){var r=Fv(a),i=ja(e),n=t.kind===bt.estimate;if(!n){var o=ns(r,i);if(o)return o}var s,l;K(i)?s=Or(a,i,!1):(l=i==="auto"?Hv(a,t):i,s=Or(a,l,!1));var u={labels:s,labelCategoryInterval:l};return n?t.out.noPxChangeTryDetermine.push(function(){return La(r,i,u),!0}):La(r,i,u),u}function Bv(a,e){var t=Vv(a),r=ja(e),i=ns(t,r);if(i)return i;var n,o;if((!e.get("show")||a.scale.isBlank())&&(n=[]),K(r))n=Or(a,r,!0);else if(r==="auto"){var s=as(a,a.getLabelModel(),Er(bt.determine));o=s.labelCategoryInterval,n=$(s.labels,function(l){return l.tick})}else o=r,n=Or(a,o,!0);return La(t,r,{ticks:n,tickCategoryInterval:o})}function zv(a){var e=a.scale.getTicks(),t=Ur(a);
1return{labels:$(e,function(r,i){return{formattedLabel:t(r,i),rawLabel:a.scale.getLabel(r),tick:r}})}}var Vv=is("axisTick"),Fv=is("axisLabel");function is(a){return function(t){return Te(t)[a]||(Te(t)[a]={list:[]})}}function ns(a,e){for(var t=0;t<a.list.length;t++)if(a.list[t].key===e)return a.list[t].value}function La(a,e,t){return a.list.push({key:e,value:t}),t}function Hv(a,e){if(e.kind===bt.estimate){var t=a.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Te(a).autoInterval=t,!0}),t}var r=Te(a).autoInterval;return r??(Te(a).autoInterval=a.calculateCategoryInterval(e))}function Gv(a,e){var t=e.kind,r=Uv(a),i=Ur(a),n=(r.axisRotate-r.labelRotate)/180*Math.PI,o=a.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],h=a.dataToCoord(v+1)-a.dataToCoord(v),c=Math.abs(h*Math.cos(n)),p=Math.abs(h*Math.sin(n)),d=0,m=0;v<=s[1];v+=u){var g=0,x=0,_=io(i({value:v}),r.font,"center","top");g=_.width*1.3,x=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,x,7)}var y=d/c,b=m/p;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(y,b)));if(t===bt.estimate)return e.out.noPxChangeTryDetermine.push(B(Zv,null,a,S,l)),S;var A=os(a,S,l);return A??S}function Zv(a,e,t){return os(a,e,t)==null}function os(a,e,t){var r=kv(a.model),i=a.getExtent(),n=r.lastAutoInterval,o=r.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-e)<=1&&Math.abs(o-t)<=1&&n>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return n;r.lastTickCount=t,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Uv(a){var e=a.getLabelModel();return{axisRotate:a.getRotate?a.getRotate():a.isHorizontal&&!a.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Or(a,e,t){var r=Ur(a),i=a.scale,n=[],o=K(e);return No(i,o?0:e,function(s,l){var u=i.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}n.push(t?s:{formattedLabel:r(s),rawLabel:u,tick:s})}),n}var Wv=.8;function Ue(a,e){e=e||{};var t={w:NaN,w2:NaN},r=a.scale,i=e.fromStat,n=e.min,o=Pf(r);_t(o)||(o=NaN);var s=a.getExtent(),l=jt(s[1]-s[0]);return ut(r)?Xv(t,a,o,l):i&&Yv(t,a,o,l,i),n!=null&&(t.w=_t(t.w)?st(n,t.w):n),t}function Xv(a,e,t,r){var i=e.onBand,n=t+(i?1:0);n===0&&(n=1),a.w=r/n,!i&&t&&r&&(a.w2=a.w*t/r)}function Yv(a,e,t,r,i){var n=!1,o=-1/0;w(i.key?[hv(e,i.key)]:cv(e,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===Wo&&(n=!0))}),_t(t)&&t>0&&_t(o)?(a.w=r/t*o,a.w2=o):n&&(a.w=r*Wv,a.w2=a.w*t/r)}var Gi=[0,1],$v=function(){function a(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return a.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=r&&e<=i},a.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},a.prototype.dataToCoord=function(e,t){var r=this.scale;return e=r.normalize(r.parse(e)),tt(e,Gi,Zi(this),t)},a.prototype.coordToData=function(e,t){var r=tt(e,Zi(this),Gi,t);return this.scale.scale(r)},a.prototype.pointToData=function(e,t){},a.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=Rv(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=$(r.ticks,function(s){return{coord:this.dataToCoord(Ze(this.scale,s)),tick:s}},this),n=t.get("alignWithLabel"),o=Kv(this,i,n);return $(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},a.prototype.getMinorTicksCoords=function(){if(ut(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),i=$(r,function(n){return $(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},a.prototype.getViewLabels=function(e){return e=e||Er(bt.determine),Pv(this,e).labels},a.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},a.prototype.getTickModel=function(){return this.model.getModel("axisTick")},a.prototype.getBandWidth=function(){return Ue(this,{min:1}).w},a.prototype.calculateCategoryInterval=function(e){return e=e||Er(bt.determine),Gv(this,e)},a}();function Zi(a){var e=a.getExtent();if(a.onBand){var t=e[1]-e[0],r=t/a.scale.count()/2;e[0]+=r,e[1]-=r}return e}function Kv(a,e,t){var r=e.length;if(!a.onBand||t||!r)return!1;var i=Ue(a).w;if(!i)return!1;w(e,function(s){s.coord-=i/2});var n=a.scale.getExtent(),o=e[r-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:n[1]+1}}),!0}const qv=$v;var Ui=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],jv=1,kr=2,ss=jv|kr;function Pr(a,e,t){t=t||ss,e?a.dirty|=t:a.dirty&=~t}function ls(a,e){return e=e||ss,a.dirty==null||!!(a.dirty&e)}function zt(a){if(a)return ls(a)&&Jv(a,a.label,a),a}function Jv(a,e,t){var r=e.getComputedTransform();a.transform=no(a.transform,r);
1var i=a.localRect=yr(a.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=Xe.textMargin);for(var v=0;v<4;v++)ta[v]=f===Xe.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===Xe.textMargin&&ya(i,ta,!1,!1);var h=a.rect=yr(a.rect,i);return r&&h.applyTransform(r),f===Xe.minMargin&&ya(h,ta,!1,!1),a.axisAligned=oo(r),(a.label=a.label||{}).ignore=e.ignore,Pr(a,!1),Pr(a,!0,kr),a}var ta=[0,0,0,0];function Qv(a,e,t){return a.transform=no(a.transform,t),a.localRect=yr(a.localRect,e),a.rect=yr(a.rect,e),t&&a.rect.applyTransform(t),a.axisAligned=oo(t),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a}function th(a,e){if(a){a.label.x+=e.x,a.label.y+=e.y,a.label.markRedraw();var t=a.transform;t&&(t[4]+=e.x,t[5]+=e.y);var r=a.rect;r&&(r.x+=e.x,r.y+=e.y);var i=a.obb;i&&i.fromBoundingRect(a.localRect,t)}}function Wi(a,e){for(var t=0;t<Ui.length;t++){var r=Ui[t];a[r]==null&&(a[r]=e[r])}return zt(a)}function Xi(a){var e=a.obb;return(!e||ls(a,kr))&&(a.obb=e=e||new Ql,e.fromBoundingRect(a.localRect,a.transform),Pr(a,!1,kr)),e}function eh(a){var e=[];a.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var r=0;r<a.length;r++){var i=zt(a[r]);if(!i.label.ignore){for(var n=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(ti(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(n),o&&t(o)):e.push(i)}}}function ti(a,e,t,r){return!a||!e||a.label&&a.label.ignore||e.label&&e.label.ignore||!a.rect.intersect(e.rect,t,r)?!1:a.axisAligned&&e.axisAligned?!0:Xi(a).intersect(Xi(e),t,r)}function Yi(a,e,t){var r=xa.createCanvas(),i=e.getWidth(),n=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",r.setAttribute("data-zr-dom-id",a)),r.width=i*t,r.height=n*t,r}function ea(a){return!a.__cursors.get(so)}function $i(a){var e=a.__cursors.get(so);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var rh=function(a){tu(e,a);function e(t,r,i){var n=a.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.zlevel=0,n.zlevel2=sr,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__prevIdx={startIdx:0,endIdx:0};var o;i=i||fo,typeof t=="string"?o=Yi(t,r,i):it(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(lo(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=r,n.dpr=i,n}return e.prototype.afterBrush=function(){this.__prevIdx=$i(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Yi("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,r,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new mt(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var b=new mt(0,0,0,0);b.copy(y),o.push(b)}else{for(var S=!1,A=1/0,I=0,C=0;C<o.length;++C){var M=o[C];if(M.intersect(y)){var T=new mt(0,0,0,0);T.copy(M),T.union(y),o[C]=T,S=!0;break}else if(l){u.copy(y),u.union(M);var L=y.width*y.height,D=M.width*M.height,O=u.width*u.height,E=O-L-D;E<A&&(A=E,I=C)}}if(l&&(o[I].union(y),S=!0),!S){var b=new mt(0,0,0,0);b.copy(y),o.push(b)}l||(l=o.length>=s)}}for(var v=$i(this),h=v.startIdx;h<v.endIdx;++h){var c=t[h];if(c){var p=c.shouldBePainted(i,n,!0,!0),d=c.__isRendered&&(c.__dirty&_a||!p)?c.getPrevPaintRect():null;d&&f(d);var m=p&&(c.__dirty&_a||!c.__isRendered)?c.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,h=g.startIdx;h<g.endIdx;++h){var c=r[h],p=c&&c.shouldBePainted(i,n,!0,!0);if(c&&(!p||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var x;do{x=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var _=h+1;_<o.length;)o[h].intersect(o[_])?(x=!0,o[h].union(o[_]),o.splice(_,1)):_++;h++}}while(x);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,r){var i=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=t+"px",o.height=r+"px"),n.width=t*i,n.height=r*i,s&&(s.width=t*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,r,i){var n=this.dom,o=this.ctx,s=n.width,l=n.height;r=r||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,
10,0,s/v,l/v));var c=this.domBack;function p(d,m,g,x){if(o.clearRect(d,m,g,x),r&&r!=="transparent"){var _=void 0;if(eu(r)){var y=r.global||r.__width===g&&r.__height===x;_=y&&r.__canvasGradient||ru(o,r,{x:0,y:0,width:g,height:x}),r.__canvasGradient=_,r.__width=g,r.__height=x}else au(r)&&(r.scaleX=r.scaleX||v,r.scaleY=r.scaleY||v,_=iu(o,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(d,m,g,x),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,d,m,g,x),o.restore())}!i||u?p(0,0,s,l):i.length&&w(i,function(d){p(d.x*v,d.y*v,d.width*v,d.height*v)})},e}(uo);const us=rh;var Ki=1e5,Vt=314159,ra=void 0,ah=1,aa=2;function ih(a){return a?a.__builtin__?!0:!(typeof a.resize!="function"||typeof a.refresh!="function"):!1}function nh(a,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+a+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function qi(a,e,t,r){var i=new us(a,e,e.dpr);return i.zlevel=t,i.zlevel2=r,i.__builtin__=!0,fs(i),i}function fs(a){a.__cursorStack=[],a.__cursors=X()}function oh(a){return a.startIdx=a.drawIdx=a.endIdx=a.endIdxNew=0,a.used=!1,a.first=a.last=NaN,a.notClearIdx=-1,a}function sh(a,e){var t=a.__cursors,r=+e;return t.get(r)||(a.__cursorStack.push(r),t.set(r,oh({key:r})))}function tr(a,e){for(var t=a.__cursorStack,r=0;r<t.length;r++)e(a.__cursors.get(t[r]))}function ia(a,e){var t=a.layers;return t[e]||(t[e]=new Array(3))}function at(a,e,t){for(var r=a.layerStack,i=0;i<r.length;i++){var n=r[i].zl,o=r[i].zl2,s=a.layers[n][o];(!t||(!(t&De)||s.__builtin__)&&(!(t&Ea)||!s.__builtin__)&&(!(t&vs)||s!==a.hoverlayer))&&e(s,n,o,i)}}var De=1,Ea=2,vs=4,er=De|vs,lh=function(){function a(e,t,r,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var n=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=et({},r||{}),this.dpr=r.devicePixelRatio||fo,this._singleCanvas=n,this.root=e;var o=e.style;if(o&&(lo(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],n){var l=e,u=l.width,f=l.height;r.width!=null&&(u=r.width),r.height!=null&&(f=r.height),this.dpr=r.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var v=qi(l,this,Vt,sr);v.initContext(),this._insertLayer(v,Vt,sr,!0),this._domRoot=e}else{this._width=$e(e,0,r),this._height=$e(e,1,r);var s=this._domRoot=nh(this._width,this._height);e.appendChild(s)}}return a.prototype.getType=function(){return"canvas"},a.prototype.isSingleCanvas=function(){return this._singleCanvas},a.prototype.getViewportRoot=function(){return this._domRoot},a.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},a.prototype.refresh=function(e){var t;e&&!it(e)?t={paintAll:!!e}:t=e||{};var r=q(t.refresh,!0),i=q(t.refreshHover,!1);if(i&&(this._hoverLayerDirty=aa),!r)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var n=this.storage.getDisplayList(!0);this._updateLayerStatus(n,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(n,o,this._redrawId);var s=this._backgroundColor;return at(this._i,function(l,u,f,v){l.refresh&&l.refresh(v===0?s:null)},Ea),this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},a.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,r=this._hoverLayerDirty;if(this._hoverLayerDirty=ra,r!==ra&&(!t&&r===aa&&(t=this._i.hoverlayer=this._ensureLayer(Ki)),!!t)){t.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},n,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){n||(n=t.ctx,n.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Ye(n,l,i),u&&(l.style=f)}}n&&($r(n,i),n.restore())}},a.prototype.getHoverLayer=function(){return this._ensureLayer(Ki)},a.prototype.paintOne=function(e,t){nu(e,t)},a.prototype._paintList=function(e,t,r){if(this._redrawId===r){var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),i)at(this._i,function(o){o.afterBrush&&o.afterBrush()},er),this._paintHoverList(e);else{var n=this;ou(function(){n._paintList(e,t,r)})}}},a.prototype._compositeManually=function(){var e=this._ensureLayer(Vt).ctx,t=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,t,r),at(this._i,function(i){i.virtual&&e.drawImage(i.dom,0,0,t,r)},De)},a.prototype._doPaintList=function(e,t){var r=this,i=!0;return at(this._i,function(n){var o=!1;if(tr(n,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),!(!o&&!n.__dirty)){var s=r._opts.useDirtyRect&&!ea(n)?n.createRepaintRects(e,t,r._width,r._height):null,l=r._i.layerStack[0],u=!0;if(n.__dirty){u=!1,n.__dirty=!1;var f=n.zlevel===l.zl&&n.zlevel2===l.zl2?r._backgroundColor:null;n.clear(!1,f,s)}
1tr(n,function(v){var h=r._paintPerCursor(n,v,e,s,u);i=i&&h})}},er),nt.wxa&&at(this._i,function(n){n&&n.ctx&&n.ctx.draw&&n.ctx.draw()}),i},a.prototype._paintPerCursor=function(e,t,r,i,n){var o=e.ctx;if(i)if(!i.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<i.length;++l){var u=i[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,r,u,n),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,r,null,n),o.restore();return t.drawIdx>=t.endIdx},a.prototype._paintPerCursorInRect=function(e,t,r,i,n){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:n}},s=e.ctx,l=ea(e),u=l&&xa.getTime(),f=t.drawIdx,v=t.notClearIdx,h=v>=0?Math.min(v,f):f;h<t.endIdx;h++){var c=r[h];if(!(h<f&&!c.notClear)){if(c.__inHover&&(this._hoverLayerDirty=aa),i!=null){var p=c.getPaintRect();p&&p.intersect(i)&&(Ye(s,c,o),c.setPrevPaintRect(p))}else Ye(s,c,o);if(l){var d=xa.getTime()-u;if(d>15){h++;break}}}}$r(s,o),t.drawIdx=Math.max(h,f)},a.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},a.prototype._ensureLayer=function(e,t,r){t=t||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(e=Vt,t=0);var n=ia(this._i,e)[t];return n||(n=qi("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&ht(n,this._layerConfig[e],!0),(r||i&&e!==Vt)&&(n.virtual=!0),this._insertLayer(n,e,t,!1),n.initContext()),n},a.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},a.prototype._insertLayer=function(e,t,r,i){var n=this._i,o=n.layers,s=n.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][r])&&ih(e)){for(var f=s.length,v=0;v<f&&(s[v].zl<t||s[v].zl===t&&s[v].zl2<r);)v++;if(v>0&&(u=ia(n,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:t,zl2:r}),ia(n,t)[r]=e,!i&&!e.virtual)if(u){var h=u.dom;h.nextSibling?l.insertBefore(e.dom,h.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},a.prototype.eachLayer=function(e,t){return at(this._i,function(r,i){e.call(t,r,i)})},a.prototype.eachBuiltinLayer=function(e,t){return at(this._i,function(r,i){e.call(t,r,i)},De)},a.prototype.eachOtherLayer=function(e,t){return at(this._i,function(r,i){e.call(t,r,i)},Ea)},a.prototype.getLayers=function(){var e={};return at(this._i,function(t,r,i){e[t.id]=t}),e},a.prototype._updateLayerStatus=function(e,t){var r=this;if(r._singleCanvas)for(var i=1;i<e.length;i++){var n=e[i];if(n.zlevel!==e[i-1].zlevel||n.incremental){r._needsManuallyCompositing=!0;break}}at(r._i,function(m){m.__dirty=!1,tr(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},er);for(var o,s=null,l=null,u=!1,f=0,v=e.length;f<v;f++){var n=e[f],h=n.zlevel,c=n.incremental,p=void 0;if(o!==h&&(o=h,u=!1),c?(u=!0,p=lu):p=u?uu:sr,(!s||h!==s.zlevel||p!==s.zlevel2)&&(s=r._ensureLayer(h,p),l=null,!s.__builtin__)){su("ZLevel "+h+" has been used by unknown layer "+s.id);continue}if((!l||c!==l.key)&&(l=sh(s,c),!l.used))if(l.used=!0,!t&&l.first===n.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=n.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,n.__dirty&_a&&!n.__inHover&&((!c||!n.notClear&&f<l.drawIdx)&&(s.__dirty=!0),c&&n.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}at(r._i,function(m){for(var g=m.__cursorStack,x=m.__cursors,_=g.length-1;_>=0;_--){var y=x.get(g[_]);if(!y.used)m.__dirty=!0,x.removeKey(g[_]),g.splice(_,1);else{var b=y.endIdxNew;(ea(m)?b<y.drawIdx:b!==y.endIdx||!b||e[b-1].id!==y.last)&&(m.__dirty=!0),y.endIdx=y.endIdxNew,y.last=b?e[b-1].id:NaN}}m.__dirty&&(tr(m,function(S){S.drawIdx=S.startIdx}),r._hoverLayerDirty===ra&&(r._hoverLayerDirty=ah))},er)},a.prototype.clear=function(){return at(this._i,function(e){e.clear(),fs(e)},De),this},a.prototype.setBackgroundColor=function(e){this._backgroundColor=e,at(this._i,function(t){t.setUnpainted()})},a.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?ht(r[e],t,!0):r[e]=t,at(this._i,function(i,n){ht(i,r[n],!0)})}},a.prototype.delLayer=function(e){for(var t=this._i.layerStack,r=this._i.layers,i=t.length-1;i>=0;i--){var n=t[i];if(n.zl===e){var o=r[e][n.zl2];if(o.__builtin__)continue;if(t.splice(i,1),r[e][n.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},a.prototype.resize=function(e,t){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,n=this.root;e!=null&&(i.width=e),t!=null&&(i.height=t),e=$e(n,0,i),t=$e(n,1,i),r.style.display="",(this._width!==e||t!==this._height)&&(r.style.width=e+"px",r.style.height=t+"px",at(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Vt).resize(e,t)}return this},a.prototype.clearLayer=function(e){w(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},a.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},a.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Vt][0].dom;var t=new us("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var r=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,n=t.dom.height;at(this._i,function(v){v.__builtin__?r.drawImage(v.dom,0,0,i,n):v.renderToCanvas&&(r.save(),v.renderToCanvas(r),r.restore(
1))})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ye(r,f,o)}$r(r,o)}return t.dom},a.prototype.getWidth=function(){return this._width},a.prototype.getHeight=function(){return this._height},a}();const uh=lh;function Lp(a){a.registerPainter("canvas",uh)}var fh=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return Tf(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var r=new xt,i=ee("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);r.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=ee(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);r.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=z.color.neutral00,u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(ma);const vh=fh;function hs(a,e){var t=a.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var i=ci(a,e,t[0]);return i!=null?i+"":null}else if(r){for(var n=[],o=0;o<t.length;o++)n.push(ci(a,e,t[o]));return n.join(" ")}}function hh(a,e){var t=a.mapDimensionsAll("defaultedLabel");if(!J(e))return e+"";for(var r=[],i=0;i<t.length;i++){var n=a.getDimensionIndex(t[i]);n>=0&&r.push(e[n])}return r.join(" ")}var ei=function(a){F(e,a);function e(t,r,i,n){var o=a.call(this)||this;return o.updateData(t,r,i,n),o}return e.prototype._createSymbol=function(t,r,i,n,o,s){this.removeAll();var l=ee(t,-1,-1,2,2,null,s);l.attr({z2:q(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=ch,this._symbolType=t,this.add(l)},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(){fu(this.childAt(0))},e.prototype.downplay=function(){vu(this.childAt(0))},e.prototype.setZ=function(t,r){var i=this.childAt(0);i.zlevel=t,i.z=r},e.prototype.setDraggable=function(t,r){var i=this.childAt(0);i.draggable=t,i.cursor=!r&&t?"move":i.cursor},e.prototype.updateData=function(t,r,i,n){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=e.getSymbolZ2(t,r),f=o!==this._symbolType,v=n&&n.disableAnimation;if(f){var h=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,u,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};v?c.attr(p):Le(c,p,s,r),hu(c)}if(this._updateCommon(t,r,l,i,n),f){var c=this.childAt(0);if(!v){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Vr(c,p,s,r)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,i,n,o){var s=this.childAt(0),l=t.hostModel,u,f,v,h,c,p,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,v=n.selectItemStyle,h=n.focus,c=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,p=n.emphasisDisabled),!n||t.hasItemOption){var x=n&&n.itemModel?n.itemModel:t.getItemModel(r),_=x.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=x.getModel(["select","itemStyle"]).getItemStyle(),f=x.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=Ua(x),m=_.getShallow("scale"),g=x.getShallow("cursor")}var y=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(y||0)*Math.PI/180||0);var b=vo(t.getItemVisual(r,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=t.getItemVisual(r,"style"),A=S.fill;if(s instanceof cu){var I=s.style;s.useStyle(et({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},S))}else s.__isEmptyBrush?s.useStyle(et({}
1,S)):s.useStyle(S),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(r,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var T=o&&o.useNameLabel;ho(s,d,{labelFetcher:l,labelDataIndex:r,defaultText:L,inheritColor:A,defaultOpacity:S.opacity});function L(E){return T?t.getName(E):hs(t,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),ba(this,h,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,i){var n=this.childAt(0),o=lt(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&di(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();di(n,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return du(t.getItemVisual(r,"symbolSize"))},e.getSymbolZ2=function(t,r){return t.getItemVisual(r,"z2")},e}(xt);function ch(a,e){this.parent.drift(a,e)}function rr(a,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r&&r.isIgnore&&r.isIgnore(t))&&
1!(r&&r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&a.getItemVisual(t,"symbol")!=="none"}function ji(a){return a!=null&&!it(a)&&(a={isIgnore:a}),a||{}}function Ji(a){var e=a.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:Ua(e),cursorStyle:e.get("cursor")}}function Qi(a,e,t,r,i,n,o){var s=new a(e,t,r,i);return s.setPosition(n),e.setItemGraphicEl(t,s),o.add(s),s}var dh=function(){function a(e){this.group=new xt,this._SymbolCtor=e||ei}return a.prototype.updateData=function(e,t){this._progressiveEls=null,t=ji(t);var r=this.group,i=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=Ji(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};n||r.removeAll(),e.diff(n).add(function(v){var h=f(v);rr(e,h,v,t)&&Qi(o,e,v,l,u,h,r)}).update(function(v,h){var c=n.getItemGraphicEl(h),p=f(v);if(!rr(e,p,v,t)){r.remove(c);return}var d=e.getItemVisual(v,"symbol")||"circle",m=c&&c.getSymbolType&&c.getSymbolType();if(!c||m&&m!==d)r.remove(c),c=new o(e,v,l,u),c.setPosition(p);else{c.updateData(e,v,l,u);var g={x:p[0],y:p[1]};s?c.attr(g):Le(c,g,i)}r.add(c),e.setItemGraphicEl(v,c)}).remove(function(v){var h=n.getItemGraphicEl(v);h&&h.fadeOut(function(){r.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},a.prototype.updateLayout=function(e){var t=this._data;if(t)for(var r=this,i=t.getStore(),n=0,o=i.count();n<o;n++){var s=t.getItemGraphicEl(n),l=r._getSymbolPoint(n);rr(t,l,n,e)?(s=s||Qi(r._SymbolCtor,t,n,r._seriesScope,{disableAnimation:!0},l,r.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(r.group.remove(s),t.setItemGraphicEl(n,null))}},a.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ji(e),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(e,t,r,i){this._progressiveEls=[],i=ji(i);function n(u){u.isGroup||(u.incremental=r,u.ensureState("emphasis").hoverLayer=gu)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(rr(t,s,o,i)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},a.prototype.eachRendered=function(e){pu(this._progressiveEls||this.group,e)},a.prototype.remove=function(e){var t=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},r.hostModel)}):t.removeAll()},a}();function cs(a,e,t){var r=a.getBaseAxis(),i=a.getOtherAxis(r),n=ph(i,t),o=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=$(a.dimensions,function(p){return e.mapDimension(p)}),h=!1,c=e.getCalculationInfo("stackResultDimension");return Oe(e,v[0])&&(h=!0,v[0]=c),Oe(e,v[1])&&(h=!0,v[1]=c),{dataDimsForPoint:v,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ph(a,e){var t=0,r=a.scale.getExtent();return e==="start"?t=r[0]:e==="end"?t=r[1]:Ve(e)&&!isNaN(e)?t=e:r[0]>0?t=r[0]:r[1]<0&&(t=r[1]),t}function ds(a,e,t,r){var i=NaN;a.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=a.valueStart);var n=a.baseDataOffset,o=[];return o[n]=t.get(a.baseDim,r),o[1-n]=i,e.dataToPoint(o)}function dt(a,e){return!isFinite(a)||!isFinite(e)}var gh=typeof Float32Array!==co?Float32Array:void 0,mh=typeof Float64Array!==co?Float64Array:void 0;function qt(a){return ri({ctor:gh},a).arr}function ri(a,e){var t=a.arr,r=a.ctor;if(e>pi&&(e=pi),!t||a.typed&&t.length<e){var i=void 0;if(r)try{i=new r(e),a.typed=!0,t&&i.set(t)}catch{}if(!i&&(i=[],a.typed=!1,t))for(var n=0,o=t.length;n<o;n++)i[n]=t[n];a.arr=i}return a}function yh(a,e){var t=[];return e.diff(a).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,i){t.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function _h(a,e,t,r,i,n,o,s){for(var l=yh(a,e),u=[],f=[],v=[],h=[],c=[],p=[],d=[],m=cs(i,e,o),g=a.getLayout("points")||[],x=e.getLayout("points")||[],_=0;_<l.length;_++){var y=l[_],b=!0,S=void 0,A=void 0;switch(y.cmd){case"=":S=y.idx*2,A=y.idx1*2;var I=g[S],C=g[S+1],M=x[A],T=x[A+1];
1(isNaN(I)||isNaN(C))&&(I=M,C=T),u.push(I,C),f.push(M,T),v.push(t[S],t[S+1]),h.push(r[A],r[A+1]),d.push(e.getRawIndex(y.idx1));break;case"+":var L=y.idx,D=m.dataDimsForPoint,O=i.dataToPoint([e.get(D[0],L),e.get(D[1],L)]);A=L*2,u.push(O[0],O[1]),f.push(x[A],x[A+1]);var E=ds(m,i,e,L);v.push(E[0],E[1]),h.push(r[A],r[A+1]),d.push(e.getRawIndex(L));break;case"-":b=!1}b&&(c.push(y),p.push(p.length))}p.sort(function(U,Y){return d[U]-d[Y]});for(var k=u.length,N=qt(k),V=qt(k),R=qt(k),W=qt(k),H=[],_=0;_<p.length;_++){var Q=p[_],G=_*2,P=Q*2;N[G]=u[P],N[G+1]=u[P+1],V[G]=f[P],V[G+1]=f[P+1],R[G]=v[P],R[G+1]=v[P+1],W[G]=h[P],W[G+1]=h[P+1],H[_]=c[Q]}return{current:N,next:V,stackedOnCurrent:R,stackedOnNext:W,status:H}}var Dt=Math.min,It=Math.max;function Oa(a,e,t,r,i,n,o,s,l){for(var u,f,v,h,c,p,d=t,m=0;m<r;m++){var g=e[d*2],x=e[d*2+1];if(d>=i||d<0)break;if(dt(g,x)){if(l){d+=n;continue}break}if(d===t)a[n>0?"moveTo":"lineTo"](g,x),v=g,h=x;else{var _=g-u,y=x-f;if(_*_+y*y<.5){d+=n;continue}if(o>0){for(var b=d+n,S=e[b*2],A=e[b*2+1];S===g&&A===x&&m<r;)m++,b+=n,d+=n,S=e[b*2],A=e[b*2+1],g=e[d*2],x=e[d*2+1],_=g-u,y=x-f;var I=m+1;if(l)for(;dt(S,A)&&I<r;)I++,b+=n,S=e[b*2],A=e[b*2+1];var C=.5,M=0,T=0,L=void 0,D=void 0;if(I>=r||dt(S,A))c=g,p=x;else{M=S-u,T=A-f;var O=g-u,E=S-g,k=x-f,N=A-x,V=void 0,R=void 0;if(s==="x"){V=Math.abs(O),R=Math.abs(E);var W=M>0?1:-1;c=g-W*V*o,p=x,L=g+W*R*o,D=x}else if(s==="y"){V=Math.abs(k),R=Math.abs(N);var H=T>0?1:-1;c=g,p=x-H*V*o,L=g,D=x+H*R*o}else V=Math.sqrt(O*O+k*k),R=Math.sqrt(E*E+N*N),C=R/(R+V),c=g-M*o*(1-C),p=x-T*o*(1-C),L=g+M*o*C,D=x+T*o*C,L=Dt(L,It(S,g)),D=Dt(D,It(A,x)),L=It(L,Dt(S,g)),D=It(D,Dt(A,x)),M=L-g,T=D-x,c=g-M*V/R,p=x-T*V/R,c=Dt(c,It(u,g)),p=Dt(p,It(f,x)),c=It(c,Dt(u,g)),p=It(p,Dt(f,x)),M=g-c,T=x-p,L=g+M*R/V,D=x+T*R/V}a.bezierCurveTo(v,h,c,p,g,x),v=L,h=D}else a.lineTo(g,x)}u=g,f=x,d+=n}return m}var ps=function(){function a(){this.smooth=0,this.smoothConstraint=!0}return a}(),xh=function(a){F(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ps},e.prototype.buildPath=function(t,r){var i=r.points,n=0,o=i.length/2;if(r.connectNulls){for(;o>0&&dt(i[o*2-2],i[o*2-1]);o--);for(;n<o&&dt(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=Oa(t,i,n,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(t,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=mu.CMD,s,l,u=r==="x",f=[],v=0;v<n.length;){var h=n[v++],c=void 0,p=void 0,d=void 0,m=void 0,g=void 0,x=void 0,_=void 0;switch(h){case o.M:s=n[v++],l=n[v++];break;case o.L:if(c=n[v++],p=n[v++],_=u?(t-s)/(c-s):(t-l)/(p-l),_<=1&&_>=0){var y=u?(p-l)*_+l:(c-s)*_+s;return u?[t,y]:[y,t]}s=c,l=p;break;case o.C:c=n[v++],p=n[v++],d=n[v++],m=n[v++],g=n[v++],x=n[v++];var b=u?gi(s,c,d,g,t,f):gi(l,p,m,x,t,f);if(b>0)for(var S=0;S<b;S++){var A=f[S];if(A<=1&&A>=0){var y=u?mi(l,p,m,x,A):mi(s,c,d,g,A);return u?[t,y]:[y,t]}}s=g,l=x;break}}},e}(po),bh=function(a){F(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e}(ps),Sh=function(a){F(e,a);function e(t){var r=a.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new bh},e.prototype.buildPath=function(t,r){var i=r.points,n=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&dt(i[s*2-2],i[s*2-1]);s--);for(;o<s&&dt(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Oa(t,i,o,s,s,1,r.smooth,l,r.connectNulls);Oa(t,n,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,t.closePath()}},e}(po);function gs(a,e,t,r,i){var n=a.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new St({shape:{x:o,y:s,width:l,height:u}});if(e){var h=a.getBaseAxis(),c=h.isHorizontal(),p=h.inverse;c?(p&&(v.shape.x+=l),v.shape.width=0):(p||(v.shape.y+=u),v.shape.height=0);var d=K(i)?function(m){i(m,v)}:null;Vr(v,{shape:{width:l,height:u,x:o,y:s}},t,null,r,d)}return v}function ms(a,e,t){var r=a.getArea(),i=Z(r.r0,1),n=Z(r.r,1),o=new yu({shape:{cx:Z(a.cx,1),cy:Z(a.cy,1),r0:i,r:n,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=a.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=i,Vr(o,{shape:{endAngle:r.endAngle,r:n}},t)}return o}function Ep(a,e,t,r,i){if(a){if(a.type==="polar")return ms(a,e,t);if(a.type==="cartesian2d")return gs(a,e,t,r,i)}else return null;return null}var Op=0,kp=1,Pp=2;function Rp(a,e,t){a?e.setClipPath(t):e.removeClipPath()}function Np(a){var e=a.coordinateSystem;if(a.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Ah(a,e){return a.type===e}function tn(a,e){if(a.length===e.length){for(var t=0;t<a.length;t++)if(a[t]!==e[t])return;return!0}}function en(a){for(var e=Jt(),t=Jt(),r=0;r<a.length;){var i=a[r++],n=a[r++];
1dt(i,n)||(ga(e,i),ga(t,n))}return[e,t]}function rn(a,e){var t=en(a),r=t[0],i=t[1],n=en(e),o=n[0],s=n[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function an(a){return Ve(a)?a:a?.5:0}function Mh(a,e,t){if(t.valueDim==null)return[];for(var r=e.count(),i=qt(r*2),n=0;n<r;n++){var o=ds(t,a,e,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function Lt(a,e,t,r,i){var n=t.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],h=[];if(i){for(l=0;l<a.length;l+=2){var c=e||a;dt(c[l],c[l+1])||h.push(a[l],a[l+1])}a=h}for(l=0;l<a.length-2;l+=2)switch(v[0]=a[l+2],v[1]=a[l+3],f[0]=a[l],f[1]=a[l+1],s.push(f[0],f[1]),r){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var p=(f[o]+v[o])/2,d=[];u[o]=d[o]=p,u[1-o]=f[1-o],d[1-o]=v[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(a[l++],a[l++]),s}function wh(a,e){var t=[],r=a.length,i,n;function o(f,v,h){var c=f.coord,p=(h-c)/(v.coord-c),d=Su(p,[f.color,v.color]);return{coord:h,color:d}}for(var s=0;s<r;s++){var l=a[s],u=l.coord;if(u<0)i=l;else if(u>e){n?t.push(o(n,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),n=l}return t}function Ch(a,e,t){var r=a.getVisual("visualMeta");if(!(!r||!r.length||!a.count())&&e.type==="cartesian2d"){for(var i,n,o=r.length-1;o>=0;o--){var s=a.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=r[o];break}}if(n){var l=e.getAxis(i),u=$(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var h=wh(u,i==="x"?t.getWidth():t.getHeight()),c=h.length;if(!c&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var p=10,d=h[0].coord-p,m=h[c-1].coord+p,g=m-d;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-d)/g}),h.push({offset:c?h[c-1].offset:.5,color:v[1]||"transparent"}),h.unshift({offset:c?h[0].offset:.5,color:v[0]||"transparent"});var x=new bu(0,0,0,0,h,!0);return x[i]=d,x[i+"2"]=m,x}}}function Th(a,e,t){var r=a.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(i&&Dh(n,e))){var o=e.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){l.tick.offInterval||(s[Ze(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Dh(a,e){var t=a.getExtent(),r=Math.abs(t[1]-t[0])/a.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(ei.getSymbolSize(e,o)[a.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Ih(a){for(var e=a.length/2;e>0&&dt(a[e*2-2],a[e*2-1]);e--);return e-1}function nn(a,e){return[a[e*2],a[e*2+1]]}function Lh(a,e,t){for(var r=a.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<r;u++)if(o=a[u*2+i],!dt(o,a[u*2+1-i])){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function ys(a){if(a.get(["endLabel","show"]))return!0;for(var e=0;e<xi.length;e++)if(a.get([xi[e],"endLabel","show"]))return!0;return!1}function na(a,e,t,r){if(Ah(e,"cartesian2d")){var i=r.getModel("endLabel"),n=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=ys(r)?function(c,p){a._endLabelOnDuring(c,p,o,s,n,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=gs(e,t,r,function(){var c=a._endLabel;c&&t&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var v=f.shape,h=Math.max(v.width,v.height);u?(v.y-=h,v.height+=h*2):(v.x-=h,v.width+=h*2)}return l&&l(1,f),f}else return ms(e,t,r)}function Eh(a,e){var t=e.getBaseAxis(),r=t.isHorizontal(),i=t.inverse,n=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:a.get("align")||n,verticalAlign:a.get("verticalAlign")||o}}}var Oh=function(a){F(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.init=function(){var t=new xt,r=new dh;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=t,this._changePolyState=B(this._changePolyState,this)},e.prototype.render=function(t,r,i){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v=n.type==="polar",h=this._coordSys,c=this._symbolDraw,p=this._polyline,d=this._polygon,m=this._lineGroup,g=!r.ssr&&t.get("animation"),x=!u.isEmpty(),_=u.get("origin"),y=cs(n,s,_),b=x&&Mh(n,s,y),S=t.get("showSymbol"),A=t.get("connectNulls"),I=S&&!v&&Th(t,s,n),C=this._data;C&&C.eachItemGraphicEl(function(pt,qs){pt.__temp&&(o.remove(pt),C.setItemGraphicEl(qs,null))}),S||c.remove(),o.add(m);var M=v?!1:t.get("step"),T;n&&n.getArea&&t.get("clip",!0)&&(T=n.getArea(),T.width!=null?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var L=Ch(s,n,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===n.type&&M===this._step))S&&c.updateData(s,{isIgnore:I,clipShape:T,disableAnimation:!0,get
1SymbolPoint:function(pt){return[f[pt*2],f[pt*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,T),M&&(b&&(b=Lt(b,f,n,M,A)),f=Lt(f,null,n,M,A)),p=this._newPolyline(f),x?d=this._newPolygon(f,b):d&&(m.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(t,n,re(L)),m.setClipPath(na(this,n,!0,t));else{x&&!d?d=this._newPolygon(f,b):d&&!x&&(m.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(t,n,re(L));var D=m.getClipPath();if(D){var O=na(this,n,!1,t);Vr(D,{shape:O.shape},t)}else m.setClipPath(na(this,n,!0,t));S&&c.updateData(s,{isIgnore:I,clipShape:T,disableAnimation:!0,getSymbolPoint:function(pt){return[f[pt*2],f[pt*2+1]]}}),(!tn(this._stackedOnPoints,b)||!tn(this._points,f))&&(g?this._doUpdateAnimation(s,b,n,i,M,_,A):(M&&(b&&(b=Lt(b,f,n,M,A)),f=Lt(f,null,n,M,A)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:b})))}var E=t.getModel("emphasis"),k=E.get("focus"),N=E.get("blurScope"),V=E.get("disabled");if(p.useStyle(ot(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),yi(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var R=p.getState("emphasis").style;R.lineWidth=+p.style.lineWidth+1}lt(p).seriesIndex=t.seriesIndex,ba(p,k,N,V);var W=an(t.get("smooth")),H=t.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:H,connectNulls:A}),d){var Q=s.getCalculationInfo("stackedOnSeries"),G=0;d.useStyle(ot(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Q&&(G=an(Q.get("smooth"))),d.setShape({smooth:W,stackedOnSmooth:G,smoothMonotone:H,connectNulls:A}),yi(d,t,"areaStyle"),lt(d).seriesIndex=t.seriesIndex,ba(d,k,N,V)}var P=this._changePolyState;s.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=P)}),this._polyline.onHoverStateChange=P,this._data=s,this._coordSys=n,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_;var U=t.get("triggerEvent"),Y=t.get("triggerLineEvent"),We=Y===!0||U===!0||U==="line",Ks=Y===!0||U===!0||U==="area";this.packEventData(t,p,We),d&&this.packEventData(t,d,Ks)},e.prototype.packEventData=function(t,r,i){lt(r).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:r===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,r,i,n){var o=t.getData(),s=Sa(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],v=l[s*2+1];if(dt(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var h=t.get("zlevel")||0,c=t.get("z")||0;u=new ei(o,s),u.x=f,u.y=v,u.setZ(h,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,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 we.prototype.highlight.call(this,t,r,i,n)},e.prototype.downplay=function(t,r,i,n){var o=t.getData(),s=Sa(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else we.prototype.downplay.call(this,t,r,i,n)},e.prototype._changePolyState=function(t){var r=this._polygon;_i(this._polyline,t),r&&_i(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new xh({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Sh({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,r,i){var n,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):r.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var v=u.get("animationDelay")||0,h=K(v)?v(null):v;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var m=[c.x,c.y],g=void 0,x=void 0,_=void 0;if(i)if(o){var y=i,b=r.pointToCoord(m);n?(g=y.startAngle,x=y.endAngle,_=-b[1]/180*Math.PI):(g=y.r0,x=y.r,_=b[0])}else{var S=i;n?(g=S.x,x=S.x+S.width,_=c.x):(g=S.y+S.height,x=S.y,_=c.y)}var A=x===g?0:(_-g)/(x-g);l&&(A=1-A);var I=K(v)?v(p):f*A+h,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),M&&M.animateFrom({style:{opacity:0}
1},{duration:300,delay:I}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,i){var n=t.getModel("endLabel");if(ys(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new fe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=Ih(l);f>=0&&(ho(s,Ua(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(v,h,c){return c!=null?hh(o,c):hs(o,v)},enableTextSetter:!0},Eh(n,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,i,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var v=i.getLayout("points"),h=i.hostModel,c=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),x=m.inverse,_=r.shape,y=x?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?d:0)*(x?-1:1),S=(g?0:-d)*(x?-1:1),A=g?"x":"y",I=Lh(v,y,A),C=I.range,M=C[1]-C[0],T=void 0;if(M>=1){if(M>1&&!c){var L=nn(v,C[0]);u.attr({x:L[0]+b,y:L[1]+S}),o&&(T=h.getRawValue(C[0]))}else{var L=f.getPointOn(y,A);L&&u.attr({x:L[0]+b,y:L[1]+S});var D=h.getRawValue(C[0]),O=h.getRawValue(C[1]);o&&(T=_u(i,p,D,O,I.t))}n.lastFrameIndex=C[0]}else{var E=t===1||n.lastFrameIndex>0?C[0]:0,L=nn(v,E);o&&(T=h.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+S})}if(o){var k=xu(u);typeof k.setLabelText=="function"&&k.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,r,i,n,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,h=_h(this._data,t,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,d=h.next,m=h.stackedOnNext;if(o&&(p=Lt(h.stackedOnCurrent,h.current,i,o,l),c=Lt(h.current,null,i,o,l),m=Lt(h.stackedOnNext,h.next,i,o,l),d=Lt(h.next,null,i,o,l)),rn(c,d)>3e3||f&&rn(p,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),u.stopAnimation(),Le(u,g,v),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),Le(f,{shape:{stackedOnPoints:m}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var x=[],_=h.status,y=0;y<_.length;y++){var b=_[y].cmd;if(b==="="){var S=t.getItemGraphicEl(_[y].idx1);S&&x.push({el:S,ptIdx:y})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var A=u.shape.__points,I=0;I<x.length;I++){var C=x[I].el,M=x[I].ptIdx*2;C.x=A[M],C.y=A[M+1],C.markRedraw()}})},e.prototype.remove=function(t){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(r.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(we);const kh=Oh;function Ph(a,e){return{seriesType:a,plan:Au(),reset:function(t){var r=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(i){var s=$(i.dimensions,function(c){return r.mapDimension(c)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Oe(r,s[0])&&(s[0]=u),Oe(r,s[1])&&(s[1]=u);var f=r.getStore(),v=r.getDimensionIndex(s[0]),h=r.getDimensionIndex(s[1]);return l&&{progress:function(c,p){for(var d=c.end-c.start,m=o&&qt(d*l),g=[],x=[],_=c.start,y=0;_<c.end;_++){var b=void 0;if(l===1){var S=f.get(v,_);b=i.dataToPoint(S,null,x)}else g[0]=f.get(v,_),g[1]=f.get(h,_),b=i.dataToPoint(g,null,x);o?(m[y++]=b[0],m[y++]=b[1]):p.setItemLayout(_,b.slice())}o&&(p.setLayout("points",m),p.setLayout("pointsRange",{start:c.start,end:c.end}))}}}}}}var Rh={average:function(a){for(var e=0,t=0,r=0;r<a.length;r++)isNaN(a[r])||(e+=a[r],t++);return t===0?NaN:e/t},sum:function(a){for(var e=0,t=0;t<a.length;t++)e+=a[t]||0;return e},max:function(a){for(var e=-1/0,t=0;t<a.length;t++)a[t]>e&&(e=a[t]);return isFinite(e)?e:NaN},min:function(a){for(var e=1/0,t=0;t<a.length;t++)a[t]<e&&(e=a[t]);return isFinite(e)?e:NaN},nearest:function(a){return a[0]}},Nh=function(a){return Math.round(a.length/2)};function Bh(a){return{seriesType:a,reset:function(e,t,r){var i=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=r.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(v||1),c=Math.round(s/h);if(isFinite(c)&&c>1){n==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):n==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var p=void 0;j(n)?p=Rh[n]:K(n)&&(p=n),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,Nh))}}}}}function Bp(a){a.registerChartView(kh),a.registerSeriesModel(vh),a.registerLayout(Ph("line",!0)),a.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,Bh("line"))}var zh=function(a){F(e,a);function e(t,r,i,n,o){var s=a.call(this,t,r,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)}
1,e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(qv);const Vh=zh;var Fh=null;function _s(){return Fh}var Hh="expandAxisBreak",kt=Math.PI,Gh=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Zh=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],le=rt(),xs=rt(),bs=function(){function a(e){this.recordMap={},this.resolveAxisNameOverlap=e}return a.prototype.ensureRecord=function(e){var t=e.axis.dim,r=e.componentIndex,i=this.recordMap,n=i[t]||(i[t]=[]);return n[r]||(n[r]={ready:{}})},a}();function Uh(a,e,t,r){var i=t.axis,n=e.ensureRecord(t),o=[],s,l=ai(a.axisName)&&oe(a.nameLocation);w(r,function(p){var d=zt(p);if(!(!d||d.label.ignore)){o.push(d);var m=n.transGroup;l&&(m.transform?yo(ye,m.transform):wu(ye),d.transform&&Cu(ye,ye,d.transform),mt.copy(ar,d.localRect),ar.applyTransform(ye),s?s.union(ar):mt.copy(s=new mt(0,0,0,0),ar))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(p,d){return Math.abs(p.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var v=i.getExtent(),h=Math.min(v[0],v[1]),c=Math.max(v[0],v[1])-h;s.union(new mt(h,0,c,1))}n.stOccupiedRect=s,n.labelInfoList=o}var ye=Wa(),ar=new mt(0,0,0,0),Ss=function(a,e,t,r,i,n){if(oe(a.nameLocation)){var o=n.stOccupiedRect;o&&As(Qv({},o,n.transGroup.transform),r,i)}else Ms(n.labelInfoList,n.dirVec,r,i)};function As(a,e,t){var r=new ae;ti(a,e,r,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&th(e,r)}function Ms(a,e,t,r){for(var i=ae.dot(r,e)>=0,n=0,o=a.length;n<o;n++){var s=a[i?n:o-1-n];s.label.ignore||As(s,t,r)}}var Nt=function(){function a(e,t,r,i){this.group=new xt,this._axisModel=e,this._api=t,this._local={},this._shared=i||new bs(Ss),this._resetCfgDetermined(r)}return a.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},a.prototype.__getRawCfg=function(){return this._cfg.raw},a.prototype._resetCfgDetermined=function(e){var t=this._axisModel,r=t.getDefaultOption?t.getDefaultOption():{},i=q(e.axisName,t.get("name")),n=t.get("nameMoveOverlap");(n==null||n==="auto")&&(n=q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:q(e.nameDirection,1),tickDirection:q(e.tickDirection,1),labelDirection:q(e.labelDirection,1),labelOffset:q(e.labelOffset,0),silent:q(e.silent,!0),axisName:i,nameLocation:Mu(t.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:ai(i)&&n,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new xt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ae(Math.cos(-o.rotation),Math.sin(-o.rotation))},a.prototype.build=function(e,t){var r=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(Wh,function(i){e[i]&&Xh[i](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,t||{})}),this},a.innerTextLayout=function(e,t,r){var i=_o(t-e),n,o;return Ar(i)?(o=r>0?"top":"bottom",n="center"):Ar(i-kt)?(o=r>0?"bottom":"top",n="center"):(o="middle",i>0&&i<kt?n=r>0?"right":"left":n=r>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},a.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},a.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},a}(),Wh=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Xh={axisLine:function(a,e,t,r,i,n,o){var s=r.get(["axisLine","show"]);if(s==="auto"&&(s=!0,a.raw.axisLineAutoShow!=null&&(s=!!a.raw.axisLineAutoShow)),!!s){var l=r.axis.getExtent(),u=n.transform,f=[l[0],0],v=[l[1],0],h=f[0]>v[0];u&&(ie(f,f,u),ie(v,v,u));var c=et({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:a.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(r.get(["axisLine","breakLine"])&&_r(r.axis.scale))_s().buildAxisBreakLine(r,i,n,p);else{var d=new xr(et({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},p));br(d.shape,d.style.lineWidth),d.anid="line",i.add(d)}var m=r.get(["axisLine","symbol"]);if(m!=null){var g=r.get(["axisLine","symbolSize"]);j(m)&&(m=[m,m]),(j(g)||Ve(g))&&(g=[g,g]);var x=vo(r.get(["axisLine","symbolOffset"])||0,g),_=g[0],y=g[1];w([{rotate:a.rotation+Math.PI/2,offset:x[0],r:0}
1,{rotate:a.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(b,S){if(m[S]!=="none"&&m[S]!=null){var A=ee(m[S],-_/2,-y/2,_,y,c.stroke,!0),I=b.r+b.offset,C=h?v:f;A.attr({rotation:b.rotate,x:C[0]+I*Math.cos(a.rotation),y:C[1]-I*Math.sin(a.rotation),silent:!0,z2:11}),i.add(A)}})}}},axisTickLabelEstimate:function(a,e,t,r,i,n,o,s){var l=sn(e,i,s);l&&on(a,e,t,r,i,n,o,bt.estimate)},axisTickLabelDetermine:function(a,e,t,r,i,n,o,s){var l=sn(e,i,s);l&&on(a,e,t,r,i,n,o,bt.determine);var u=qh(a,i,n,r);Kh(a,e.labelLayoutList,u),jh(a,i,n,r,a.tickDirection)},axisName:function(a,e,t,r,i,n,o,s){var l=t.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=a.axisName;if(ai(u)){var f=a.nameLocation,v=a.nameDirection,h=r.getModel("nameTextStyle"),c=r.get("nameGap")||0,p=r.axis.getExtent(),d=r.axis.inverse?-1:1,m=new ae(0,0),g=new ae(0,0);f==="start"?(m.x=p[0]-d*c,g.x=-d):f==="end"?(m.x=p[1]+d*c,g.x=d):(m.x=(p[0]+p[1])/2,m.y=a.labelOffset+v*c,g.y=v);var x=Wa();g.transform(go(x,x,a.rotation));var _=r.get("nameRotate");_!=null&&(_=_*kt/180);var y,b;oe(f)?y=Nt.innerTextLayout(a.rotation,_??a.rotation,v):(y=Yh(a.rotation,f,_||0,p),b=a.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(y.rotation)),!isFinite(b)&&(b=null)));var S=h.getFont(),A=r.get("nameTruncate",!0)||{},I=A.ellipsis,C=Sr(a.raw.nameTruncateMaxWidth,A.maxWidth,b),M=s.nameMarginLevel||0,T=new fe({x:m.x,y:m.y,rotation:y.rotation,silent:Nt.isLabelSilent(r),style:Fr(h,{text:u,font:S,overflow:"truncate",width:C,ellipsis:I,fill:h.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:h.get("align")||y.textAlign,verticalAlign:h.get("verticalAlign")||y.textVerticalAlign}),z2:1});if(mo({el:T,componentModel:r,itemName:u}),T.__fullText=u,T.anid="name",r.get("triggerEvent")){var L=Nt.makeAxisEventDataBase(r);L.targetType="axisName",L.name=u,lt(T).eventData=L}n.add(T),T.updateTransform(),e.nameEl=T;var D=l.nameLayout=zt({label:T,priority:T.z2,defaultAttr:{ignore:T.ignore},marginDefault:oe(f)?Gh[M]:Zh[M]});if(l.nameLocation=f,i.add(T),T.decomposeTransform(),a.shouldNameMoveOverlap&&D){var O=t.ensureRecord(r);t.resolveAxisNameOverlap(a,t,r,D,g,O)}}}};function on(a,e,t,r,i,n,o,s){Cs(e)||Jh(a,e,i,s,r,o);var l=e.labelLayoutList;Qh(a,r,l,n),a.rotation;var u=a.optionHideOverlap;$h(r,l,u),u&&eh(gr(l,function(f){return f&&!f.label.ignore})),Uh(a,t,r,l)}function Yh(a,e,t,r){var i=_o(t-a),n,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return Ar(i-kt/2)?(o=l?"bottom":"top",n="center"):Ar(i-kt*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<kt*1.5&&i>kt/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function $h(a,e,t){var r=a.axis,i=a.get(["axisLabel","customValues"]);if(nv(r))return;function n(u,f,v){var h=zt(e[f]),c=zt(e[v]),p=r.scale;if(!(!h||!c)){if(u==null){if(!t&&i)return;var d=le(h.label).labelInfo.tick;if(Ge(p)&&d.notNice||ut(p)&&d.offInterval){Kt(h.label);return}}if(u===!1||h.suggestIgnore){Kt(h.label);return}if(c.suggestIgnore){Kt(c.label);return}var m=.1;if(!t){var g=[0,0,0,0];h=Wi({marginForce:g},h),c=Wi({marginForce:g},c)}ti(h,c,null,{touchThreshold:m})&&Kt(u?c.label:h.label)}}var o=a.get(["axisLabel","showMinLabel"]),s=a.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function Kh(a,e,t){a.showMinorTicks||w(e,function(r){if(r&&r.label.ignore)for(var i=0;i<t.length;i++){var n=t[i],o=xs(n),s=le(r.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Kt(n);return}}})}function Kt(a){a&&(a.ignore=!0)}function ws(a,e,t,r,i){for(var n=[],o=[],s=[],l=0;l<a.length;l++){var u=a[l].coord;
1o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ie(o,o,e),ie(s,s,e));var f=new xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});br(f.shape,f.style.lineWidth),f.anid=i+"_"+a[l].tickValue,n.push(f);var v=xs(f);v.onBand=!!a[l].onBand,v.tickValue=a[l].tickValue}return n}function qh(a,e,t,r){var i=r.axis,n=r.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,a.raw.axisTickAutoShow!=null&&(o=!!a.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=a.tickDirection*n.get("length"),u=i.getTicksCoords(),f=ws(u,t.transform,l,ot(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}function jh(a,e,t,r,i){var n=r.axis,o=r.getModel("minorTick");if(!(!a.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=ot(l.getLineStyle(),ot(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var h=ws(s[v],t.transform,u,f,"minorticks_"+v),c=0;c<h.length;c++)e.add(h[c])}}function sn(a,e,t){if(Cs(a)){var r=a.axisLabelsCreationContext,i=r.out.noPxChangeTryDetermine;if(t.noPxChange){for(var n=!0,o=0;o<i.length;o++)n=n&&i[o]();if(n)return!1}i.length&&(e.remove(a.labelGroup),ka(a,null,null,null))}return!0}function Jh(a,e,t,r,i,n){var o=i.axis,s=Sr(a.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new xt;t.add(l);var u=Er(r);if(!s||o.scale.isBlank()){ka(e,[],l,u);return}var f=i.getModel("axisLabel"),v=o.getViewLabels(u),h=(Sr(a.raw.labelRotate,f.get("rotate"))||0)*kt/180,c=Nt.innerTextLayout(a.rotation,h,a.labelDirection),p=i.getCategories&&i.getCategories(!0),d=[],m=i.get("triggerEvent"),g=1/0,x=-1/0;w(v,function(y,b){var S,A=y.tick,I=y.formattedLabel,C=y.rawLabel,M=f,T=Ze(o.scale,A);if(p&&p[T]){var L=p[T];it(L)&&L.textStyle&&(M=new Gt(L.textStyle,f,i.ecModel))}var D=M.getTextColor()||i.get(["axisLine","lineStyle","color"]),O=M.getShallow("align",!0)||c.textAlign,E=q(M.getShallow("alignMinLabel",!0),O),k=q(M.getShallow("alignMaxLabel",!0),O),N=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||c.textVerticalAlign,V=q(M.getShallow("verticalAlignMinLabel",!0),N),R=q(M.getShallow("verticalAlignMaxLabel",!0),N),W=10+(((S=A.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,W),x=Math.max(x,W);var H=new fe({x:0,y:0,rotation:0,silent:Nt.isLabelSilent(i),z2:W,style:Fr(M,{text:I,align:b===0?E:b===v.length-1?k:O,verticalAlign:b===0?V:b===v.length-1?R:N,fill:K(D)?D(o.type==="category"?C:o.type==="value"?T+"":T,b):D})});H.anid="label_"+T;var Q=le(H);if(Q.labelInfo=y,Q.layoutRotation=c.rotation,mo({el:H,componentModel:i,itemName:I,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:C,tickIndex:b}}),m){var G=Nt.makeAxisEventDataBase(i);G.targetType="axisLabel",G.value=C,G.tickIndex=b;var P=y.tick.break;if(P){var U=P.parsedBreak;G.break={start:U.vmin,end:U.vmax}}o.type==="category"&&(G.dataIndex=T),lt(H).eventData=G,P&&ec(i,n,H,P)}d.push(H),l.add(H)});var _=$(d,function(y){return{label:y,priority:le(y).labelInfo.tick.break?y.z2+(x-g+1):y.z2,defaultAttr:{ignore:y.ignore}}});ka(e,_,l,u)}function Cs(a){return!!a.labelLayoutList}function ka(a,e,t,r){a.labelLayoutList=e,a.labelGroup=t,a.axisLabelsCreationContext=r}function Qh(a,e,t,r){var i=e.get(["axisLabel","margin"]);w(t,function(n,o){var s=zt(n);if(s){var l=s.label,u=le(l);s.suggestIgnore=l.ignore,l.ignore=!1,bi(Mt,tc);var f=e.axis;Mt.x=f.dataToCoord(Ze(f.scale,u.labelInfo.tick)),Mt.y=a.labelOffset+a.labelDirection*i,Mt.rotation=u.layoutRotation,r.add(Mt),Mt.updateTransform(),r.remove(Mt),Mt.decomposeTransform(),bi(l,Mt),l.markRedraw(),Pr(s,!0),zt(s)}})}var Mt=new St,tc=new St;function ai(a){return!!a}function ec(a,e,t,r){t.on("click",function(i){var n={type:Hh,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};n[a.axis.dim+"AxisIndex"]=a.componentIndex,e.dispatchAction(n)})}function Rr(a,e,t){t=t||{};var r=e.axis,i={},n=r.getAxesOnZeroOf()[0],o=r.position,s=n?"onZero":o,l=r.dim,u=[a.x,a.x+a.width,a.y,a.y+a.height],f={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,h=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(n){var c=n.toGlobalCoord(n.dataToCoord(0));h[f.onZero]=Math.max(Math.min(c,h[1]),h[0])}i.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[o],i.labelOffset=n?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Sr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-d:d,i.z2=1,i}function zp(a){return a.coordinateSystem&&a.coordinateSystem.type==="cartesian2d"}function rc(a){var e={xAxisModel:null,yAxisModel:null};return w(e,function(t,r){var i=r.replace(/Model$/,""),n=a.getReferringComponents(i,ft).models[0];e[r]=n}),e}function ac(a,e,t,r,i,n){for(var o=Rr(a,t),s=!1,l=!1,u=0;u<e.length;u++)Po(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=n,new Nt(t,r,o,i)}function ic(a,e,t){var r=Rr(e,t);a.updateCfg(r)}function nc(){gv("liPosMinGap",oc)}function oc(a,e,t){var r=X(),i=t.serUids,n=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=Tu(f);function h(_){Ja(a,e.sers,function(y){var b=y.getRawData(),S=b.getDimensionIndex(b.mapDimension(s.dim));S>=0&&_(S,y,b.getStore())})}var c=0;if(h(function(_,y,b){r.set(y.uid,1),(!i||!i.hasKey(y.uid))&&(o=!0),c+=b.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}ri(Ft,c);var p=0;h(function(_,y,b){for(var S=0,A=b.count();S<A;++S){var I=b.get(_,S);isFinite(I)&&(!f||Du(v,I))&&(u&&(I=l.transformIn(I,null)),Ft.arr[p++]=I)}});var d=Ft.typed?Ft.arr.subarray(0,p):(Ft.arr.length=p,Ft.arr);Ft.typed?d.sort():Ot(d);for(var m=1/0,g=1;g<p;++g){var x=d[g]-d[g-1];x>0&&x<m&&(m=x)}t.liPosMinGap=e.liPosMinGap=_t(m)?m:p>0?Wo:fv,t.serUids=r}var Ft=ri({ctor:mh},50);function Vp(a){return function(e,t){var r=Ue(e,{fromStat:{key:a}});if(_t(r.w2))return[-r.w2/2,r.w2/2]}}function Fp(a){return a+Lr}function Hp(a,e){return a+Lr+e}function Gp(a){return nc(),{liPosMinGap:!ut(a.scale)}
1}var Ts={left:0,right:0,top:0,bottom:0},Nr=["25%","25%"],ur="cartesian2d",sc=function(a){F(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,r){var i=Xa(t.outerBounds);a.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&t.outerBounds&&Aa(t.outerBounds,i)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Aa(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Ts,outerBoundsContain:"all",outerBoundsClampWidth:Nr[0],outerBoundsClampHeight:Nr[1],backgroundColor:z.color.transparent,borderWidth:1,borderColor:z.color.neutral30},e}(Rt);const lc=sc;var Pa=function(a){F(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ft).models[0]},e.type="cartesian2dAxis",e}(Rt);Iu(Pa,lv);var Ds={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:z.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[z.color.backgroundTint,z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:z.color.neutral00,borderColor:z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},uc=ht({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ds),ii=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:z.color.axisMinorSplitLine,width:1}}},Ds),fc=ht({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ii),vc=ot({logBase:10},ii);const hc={category:uc,value:ii,time:fc,log:vc};function ln(a,e,t,r){w(Ho,function(i,n){var o=ht(ht({},hc[n],!0),r,!0),s=function(l){F(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var h=Lu(this),c=h?Xa(f):{},p=v.getTheme();ht(f,p.get(n+"Axis")),ht(f,this.getDefaultOption()),f.type=un(f),h&&Aa(f,c,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ca.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=_s();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u}(t);a.registerComponentModel(s)}),a.registerSubTypeDefaulter(e+"Axis",un)}function un(a){return a.type||(a.data?"category":"value")}var cc=function(){function a(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return a.prototype.getAxis=function(e){return this._axes[e]},a.prototype.getAxes=function(){return $(this._dimList,function(e){return this._axes[e]},this)},a.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),gr(this.getAxes(),function(t){return t.scale.type===e})},a.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},a}();const dc=cc;var fr=["x","y"];function fn(a){return(a.type==="interval"||a.type==="time")&&!_r(a)}var pc=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=ur,t.dimensions=fr,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!fn(t)||!fn(r))){var i=Re(t,null),n=Re(r,null),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,h=o[0]-i[0]*f,c=o[1]-n[0]*v,p=this._transform=[f,0,0,v,h,c];this._invTransform=yo([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&i.contain(i.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,r){var i=this.dataToPoint(t),n=this.dataToPoint(r),o=this.getArea(),s=new mt(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,i){i=i||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ie(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(t,r){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(t[0]),u=n.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r,i){if(i=i||[],this._invTransform)return ie(i,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),r),i[1]=o.coordToData(o.toLocalCoord(t[1]),r),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(r[0],r[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(r[0],r[1])-n+t,l=Math.max(i[0],i[1])-o+t;return new mt(n,o,s,l)},e}(dc);function gc(a,e){var t=a.scale,r=a.model,i=es(t,r,r.ecModel,a,null),n=ne(t),o=ne(e)?e.intervalStub:e,s=n?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1,h,c,p;if(v===1)h=c=0,p=1;else if(v===2){var d=jt(u[0].value-u[1].value),m=jt(u[1].value-u[2].value);h=c=0,d===m?p=2:(p=1,d<m?h=d/m:c=m/d)}else{var g=o.getConfig().interval;h=(1-(u[0].value-f[0].value)/g)%1,c=(1-(f[v].value-u[v].value)/g)%1,p=v-(h?1:0)-(c?1:0)}var x=i.zoomFixMM,_=x[0]||x[1],y=[i.fixMM[0]||_,i.fixMM[1]||_],b=t.getExtent(),S=s.getExtent(),A=R
1o(S,y),I,C,M,T,L,D;function O(Q){for(var G=50,P=0;P<G&&!Q();P++)M=n?M*st(l,2):Bf(M),T=Ut(M)}function E(){I=Z(D-M*h,T)}function k(){C=Z(L+M*c,T)}function N(){D=h?Z(I+M*h,T):I}function V(){L=c?Z(C-M*c,T):C}if(y[0]&&y[1]){I=A[0],C=A[1],M=(C-I)/(p+h+c);var R=a.getExtent(),W=jt(R[1]-R[0]);T=xo([C,I],W,.5/p),N(),V(),_t(T)&&(M=Z(M,T))}else{var H=A[1]-A[0];M=n?st(ro(H),1):Za(H/p,Eu),T=Ut(M),y[0]?(I=A[0],O(function(){if(N(),L=Z(D+M*p,T),k(),C>=A[1])return!0})):y[1]?(C=A[1],O(function(){if(V(),D=Z(L-M*p,T),E(),I<=A[0])return!0})):O(function(){D=Z(He(A[0]/M)*M,T),L=Z(te(A[1]/M)*M,T);var Q=Qt((L-D)/M);if(Q<=p){var G=p-Q,P=void 0,U=i.incl0||n;if(U&&A[0]===0)P=[0,G];else if(U&&A[1]===0)P=[G,0];else{var Y=te(G/2);P=G%2===0?[Y,Y]:I+C<A[0]+A[1]?[Y,Y+1]:[Y+1,Y]}if(D=Z(D-M*P[0],T),L=Z(L+M*P[1],T),E(),k(),I<=A[0]&&C>=A[1])return!0}})}Zo(t,y,S,[I,C],b,{interval:M,intervalCount:p,intervalPrecision:T,niceExtent:[D,L]})}var vn=[[3,1],[0,2]],mc=function(){function a(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fr,this._initCartesian(e,t,r),this.model=e}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(e,t){var r=this._axesMap;w(this._axesList,function(o){Qo(o,yv);var s=o.scale;ut(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=Fe(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Fi(f)}w(l,function(v){_c(v,v.__alignTo)?Fi(v):gc(v,v.__alignTo.scale)})}i(r.x),i(r.y);var n={};w(r.x,function(o){hn(r,"y",o,n)}),w(r.y,function(o){hn(r,"x",o,n)}),this.resize(this.model,t)},a.prototype.resize=function(e,t,r){var i=bo(e,t),n=this._rect=Hr(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Ra(o,n),!r){var u=bc(n,s,o,l,t),f=void 0;if(l)gn?(gn(this._axesList,n),Ra(o,n)):f=mn(n.clone(),"axisLabel",null,n,o,u,i);else{var v=Sc(e,n,i),h=v.outerBoundsRect,c=v.parsedOuterBoundsContain,p=v.outerBoundsClamp;h&&(f=mn(h,c,p,n,o,u,i))}Is(n,o,bt.determine,null,f,i),w(this._coordsList,function(d){d.calcAffineTransform()})}},a.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},a.prototype.getAxes=function(){return this._axesList.slice()},a.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}it(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===e||n[i].getAxis("y").index===t)return n[i]},a.prototype.getCartesians=function(){return this._coordsList.slice()},a.prototype.convertToPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},a.prototype.convertFromPixel=function(e,t,r){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},a.prototype._findConvertTarget=function(e){var t=e.seriesModel,r=e.xAxisModel||t&&t.getReferringComponents("xAxis",ft).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",ft).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,yt(o,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},a.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},a.prototype._initCartesian=function(e,t,r){var i=this,n=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){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,v){w(s.y,function(h,c){var p="x"+v+"y"+c,d=new pc(p);d.master=i,d.model=e,i._coordsMap[p]=d,i._coordsList.push(d),d.addAxis(f),d.addAxis(h)})}),dn(s.x),dn(s.y);function u(f){return function(v,h){if(yc(v,e)){var c=v.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var p=Jf(v),d=new Vh(f,Qf(v,p),[0,0],p,c);d.onBand=Uo(d.scale,v),d.inverse=v.get("inverse"),v.axis=d,d.model=v,d.grid=n,d.index=h,n._axesList.push(d),s[f][h]=d,l[f]++}}}},a.prototype.getTooltipAxes=function(e){var t=[],r=[];return w(this.getCartesians(),function(i){var n=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(n);yt(t,n)<0&&t.push(n),yt(r,o)<0&&r.push(o)}),{baseAxes:t,otherAxes:r}},a.create=function(e,t){var r=[];return e.eachComponent("grid",function(i,n){var o=new a(i,e,t);o.name="grid_"+n,o.resize(i,t,!0),i.coordinateSystem=o,r.push(o),w(o._axesList,function(s){Sv(s,a.dimIdxMap)})}),e.eachSeries(function(i){var n,o;Ou({targetModel:i,coordSysType:ur,coordSysProvider:s});function s(){var l=rc(i),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var v=u.getCoordSysModel(),h=v.coordinateSystem;return h.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Ni(n,i,ur),Ni(o,i,ur))},this),r},a.dimensions=fr,a.dimIdxMap=Ya(fr),a}();function yc(a,e){return a.getCoordSysModel()===e}function hn(a,e,t,r){t.getAxesOnZeroOf=function(){return n?[n]:[]};var i=a[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)cn(s,i[l])&&(n=i[l]);
1else for(var u in i)if(jn(i,u)&&cn(s,i[u])&&!r[f(i[u])]){n=i[u];break}n&&(r[f(n)]=!0);function f(v){return v.dim+"_"+v.index}}function cn(a,e){if(!e)return!1;var t=e.scale,r=tv(t,0,!1),i=e&&e.type!=="category"&&e.type!=="time"&&r!==Ta;return i&&a==="auto"&&iv(e)&&(i=!1),i}function dn(a){for(var e=Fe(a),t,r=[],i=e.length-1;i>=0;i--){var n=a[+e[i]];Po(n.scale)&&sv(n.model,n.type)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?r.push(n):t=n)}t||(t=r.pop()),t&&w(r,function(o){o.__alignTo=t})}function _c(a,e){return _r(a.scale)||_r(e.scale)||e.scale.getTicks().length<2}function xc(a,e){var t=a.getExtent(),r=t[0]+t[1];a.toGlobalCoord=a.dim==="x"?function(i){return i+e}:function(i){return r-i+e},a.toLocalCoord=a.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}function Ra(a,e){w(a.x,function(t){return pn(t,e.x,e.width)}),w(a.y,function(t){return pn(t,e.y,e.height)})}function pn(a,e,t){var r=[0,t],i=a.inverse?1:0;a.setExtent(r[i],r[1-i]),xc(a,e)}var gn;function mn(a,e,t,r,i,n,o){Is(r,i,bt.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(r,0,NaN),f(r,1,NaN);var l=ku(s,function(h){return h>0})==null;return ya(r,s,!0,!0,t),Ra(i,r),l;function u(h){w(i[$t[h]],function(c){if(Ne(c.model)){var p=n.ensureRecord(c.model),d=p.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],x=c.scale.normalize(Ze(c.scale,le(g.label).labelInfo.tick));x=h===1?1-x:x,f(g.rect,h,x),f(g.rect,1-h,NaN)}var _=p.nameLayout;if(_){var x=oe(p.nameLocation)?.5:NaN;f(_.rect,h,x),f(_.rect,1-h,NaN)}}})}function f(h,c,p){var d=a[$t[c]]-h[$t[c]],m=h[Mr[c]]+h[$t[c]]-(a[Mr[c]]+a[$t[c]]);d=v(d,1-p),m=v(m,p);var g=vn[c][0],x=vn[c][1];s[g]=st(s[g],d),s[x]=st(s[x],m)}function v(h,c){return h>0&&!mr(c)&&c>1e-4&&(h/=c),h}}function bc(a,e,t,r,i){var n=new bs(Ac);return w(t,function(o){return w(o,function(s){if(Ne(s.model)){var l=!r;s.axisBuilder=ac(a,e,s.model,i,n,l)}})}),n}function Is(a,e,t,r,i,n){var o=t===bt.determine;w(e,function(u){return w(u,function(f){Ne(f.model)&&(ic(f.axisBuilder,a,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[$t[1-u]]=a[Mr[u]]<=n.refContainer[Mr[u]]*.5?0:1-u===1?2:1}w(e,function(u,f){return w(u,function(v){Ne(v.model)&&((r==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function Sc(a,e,t){var r,i=a.get("outerBoundsMode",!0);i==="same"?r=e.clone():(i==null||i==="auto")&&(r=Hr(a.get("outerBounds",!0)||Ts,t.refContainer));var n=a.get("outerBoundsContain",!0),o;n==null||n==="auto"||yt(["all","axisLabel"],n)<0?o="all":o=n;var s=[Si(q(a.get("outerBoundsClampWidth",!0),Nr[0]),e.width),Si(q(a.get("outerBoundsClampHeight",!0),Nr[1]),e.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Ac=function(a,e,t,r,i,n){var o=t.axis.dim==="x"?"y":"x";Ss(a,e,t,r,i,n),oe(a.nameLocation)||w(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Ms(s.labelInfoList,s.dirVec,r,i)})};const Mc=mc;function wc(a,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Cc(t,a,e),t.seriesInvolved&&Dc(t,a),t}function Cc(a,e,t){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];w(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Be(s.model),u=a.coordSysAxesInfo[l]={};a.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",r);if(w(s.getAxes(),ct(d,!1,null)),s.getTooltipAxes&&r&&v.get("show")){var h=v.get("trigger")==="axis",c=v.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(v.get(["axisPointer","axis"]));(h||c)&&w(p.baseAxes,ct(d,c?"cross":!0,h)),c&&w(p.otherAxes,ct(d,"cross",!1))}function d(m,g,x){var _=x.model.getModel("axisPointer",i),y=_.get("show");if(!(!y||y==="auto"&&!m&&!Na(_))){g==null&&(g=_.get("triggerTooltip")),_=m?Tc(x,v,i,e,m,g):_;var b=_.get("snap"),S=_.get("triggerEmphasis"),A=Be(x.model),I=g||b||x.type==="category",C=a.axesInfo[A]={key:A,axis:x,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:I,snap:b,useHandle:Na(_),seriesModels:[],linkGroup:null};u[A]=C,a.seriesInvolved=a.seriesInvolved||I;var M=Ic(n,x);if(M!=null){var T=o[M]||(o[M]={axesInfo:{}});T.axesInfo[A]=C,T.mapper=n[M].mapper,C.linkGroup=T}}}})}function Tc(a,e,t,r,i,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(h){l[h]=Ct(o.get(h))}),l.snap=a.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var v=l.lineStyle=o.get("crossStyle");v&&ot(u,v.textStyle)}}return a.model.getModel("axisPointer",new Gt(l,t,r))}function Dc(a,e){e.eachSeries(function(t){var r=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!r||!r.model||i==="none"||i===!1||i==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||w(a.coordSysAxesInfo[Be(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Ic(a,e){for(var t=e.model,r=e.dim,i=0;i<a.length;i++){var n=a[i]||{};if(oa(n[r+"AxisId"],t.id)||oa(n[r+"AxisIndex"],t.componentIndex)||oa(n[r+"AxisName"],t.name))return i}}function oa(a,e){return a==="all"||J(a)&&yt(a,e)>=0||a===e}function Lc(a){var e=ni(a);if(e){var t=e.axisPointerModel,r=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=Na(t);n==null&&(i.status=s?"show":"hide");var l=r.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function ni(a){var e=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Be(a)]}function Ec(a){var e=ni(a);return e&&e.axisPointerModel}function Na(a){return!!a.get(["handle","show"])}function Be(a){return a.type+"||"+a.id}var yn={},Ls=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this.axisPointerClass&&Lc(t),a.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,r,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(t,r){this._disposeAxisPointer(r),a.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,r,i){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=Ec(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,r){yn[t]=r},e.getAxisPointerClass=function(t){return t&&yn[t]},e.type="axis",e}(Zt),Ba=rt();function Oc(a,e,t,r){var i=t.axis;
1if(!i.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=Ba(a).splitAreaColors,h=X(),c=0;if(v)for(var p=0;p<u.length;p++){var d=v.get(u[p].tickValue);if(d!=null){c=(d+(f-1)*p)%f;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=J(s)?s:[s];for(var p=1;p<u.length;p++){var x=i.toGlobalCoord(u[p].coord),_=void 0,y=void 0,b=void 0,S=void 0;i.isHorizontal()?(_=m,y=l.y,b=x-_,S=l.height,m=_+b):(_=l.x,y=m,b=l.width,S=x-y,m=y+S);var A=u[p-1].tickValue;A!=null&&h.set(A,c),e.add(new St({anid:A!=null?"area_"+A:null,shape:{x:_,y,width:b,height:S},style:ot({fill:s[c]},g),autoBatch:!0,silent:!0})),c=(c+1)%f}Ba(a).splitAreaColors=h}}}function kc(a){Ba(a).splitAreaColors=null}var Pc=["splitArea","splitLine","minorSplitLine","breakArea"],Es=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,r,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new xt,this.group.add(this._axisGroup),!!Ne(t)){this._axisGroup.add(t.axis.axisBuilder.group),w(Pc,function(l){t.get([l,"show"])&&Rc[l](this,this._axisGroup,t,t.getCoordSysModel(),i)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||Pu(o,this._axisGroup,t),a.prototype.render.call(this,t,r,i,n)}},e.prototype.remove=function(){kc(this)},e.type="cartesianAxis",e}(Ls),Rc={splitLine:function(a,e,t,r,i){var n=t.axis;if(!n.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=J(l)?l:[l];for(var v=r.coordinateSystem.getRect(),h=n.isHorizontal(),c=0,p=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),x=0;x<p.length;x++){var _=n.toGlobalCoord(p[x].coord);if(!(x===0&&!u||x===p.length-1&&!f)){var y=p[x].tickValue;h?(d[0]=_,d[1]=v.y,m[0]=_,m[1]=v.y+v.height):(d[0]=v.x,d[1]=_,m[0]=v.x+v.width,m[1]=_);var b=c++%l.length,S=new xr({anid:y!=null?"line_"+y:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:ot({stroke:l[b]},g),silent:!0});br(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(a,e,t,r,i){var n=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=r.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var v=[],h=[],c=s.getLineStyle(),p=0;p<f.length;p++)for(var d=0;d<f[p].length;d++){var m=n.toGlobalCoord(f[p][d].coord);u?(v[0]=m,v[1]=l.y,h[0]=m,h[1]=l.y+l.height):(v[0]=l.x,v[1]=m,h[0]=l.x+l.width,h[1]=m);var g=new xr({anid:"minor_line_"+f[p][d].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:c,silent:!0});br(g.shape,c.lineWidth),e.add(g)}},splitArea:function(a,e,t,r,i){Oc(a,e,t,r)},breakArea:function(a,e,t,r,i){t.axis.scale}},Os=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(Es),Nc=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=Os.type,t}return e.type="yAxis",e}(Es),Bc=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,r){this.group.removeAll(),t.get("show")&&this.group.add(new St({shape:t.coordinateSystem.getRect(),style:ot({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Zt),_n={offset:0};function zc(a){a.registerComponentView(Bc),a.registerComponentModel(lc),a.registerCoordinateSystem("cartesian2d",Mc),ln(a,"x",Pa,_n),ln(a,"y",Pa,_n),a.registerComponentView(Os),a.registerComponentView(Nc),a.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Vc=rt();function xn(a,e){return!!Vc(a)[e]}ao({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ie);var Fc={axisPointer:1,tooltip:1,brush:1};function Hc(a,e,t){var r=e.getComponentByElement(a.topTarget);if(!r||r===t||Fc.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===t)return!1;var n=Ma(r),o=Ma(t);return!((n.zlevel-o.zlevel||n.z-o.z)<=0)}var Gc=function(a){F(e,a);function e(t){var r=a.call(this)||this;r._zr=t;var i=B(r._mousedownHandler,r),n=B(r._mousemoveHandler,r),o=B(r._mouseupHandler,r),s=B(r._mousewheelHandler,r),l=B(r._pinchHandler,r);return r.enable=function(u,f){var v=f.zInfo,h=Ma(v.component),c=h.z,p=h.zlevel,d={component:v.component,z:c,zlevel:p,z2:q(v.z2,-1/0)},m=et({},f.triggerInfo);this._opt=ot(et({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(xe(t,"mousedown",i,d),xe(t,"mousemove",n,d),xe(t,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(xe(t,"mousewheel",s,d),xe(t,"pinch",l,d)))},r.disable=function(){this._enabled&&(this._enabled=!1,be(t,"mousedown",i),be(t,"mousemove",n),be(t,"mouseup",o),be(t,"mousewheel",s),be(t,"pinch",l))},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,r,i){var n=this._opt,o=n.zInfoParsed;
1if(Hc(t,n.api,o.component))return!1;var s=n.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,r,i)),u&&s.isInClip&&!s.isInClip(t,r,i)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,r,i,n){var o=t.target;if(!o&&this._checkPointer(t,r,i))return this._opt.cursorGrab;if(n)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(Ai(t)||_e(t))){for(var r=t.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=t.offsetX,n=t.offsetY;this._checkPointer(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var r=this._zr;if(!(t.gestureEvent==="pinch"||xn(r,"globalPan")||_e(t))){var i=t.offsetX,n=t.offsetY;if(!this._dragging||!vr("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,i,n,!1);o&&r.setCursorStyle(o);return}r.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=i-s,f=n-l;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Ee(t.event),t.__ecRoamConsumed=!0,bn(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:i,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!_e(t)){var r=this._zr;if(!Ai(t)){this._dragging=!1;var i=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);i&&r.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(t){if(!_e(t)){var r=vr("zoomOnMouseWheel",t,this._opt),i=vr("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!r&&!i)){if(r){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var v=Math.abs(n),h=(n>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(xn(this._zr,"globalPan")||_e(t))){var r=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,r,i,n,o){t._checkPointer(n,o.originX,o.originY)&&(Ee(n.event),n.__ecRoamConsumed=!0,bn(t,r,i,n,o))},e}(uo);function _e(a){return a.__ecRoamConsumed}var Zc=rt();function Wr(a){var e=Zc(a);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function xe(a,e,t,r){for(var i=Wr(a),n=i.roam,o=n[e]=n[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;
1if((l.zlevel-r.zlevel||l.z-r.z||l.z2-r.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:r}),Uc(a,e)}function be(a,e,t){for(var r=Wr(a),i=r.roam[e]||[],n=0;n<i.length;n++)if(i[n].listener===t){i.splice(n,1),i.length||Wc(a,e);return}}function Uc(a,e){var t=Wr(a);t.uniform[e]||a.on(e,t.uniform[e]=function(r){var i=t.roam[e];if(i)for(var n=0;n<i.length;n++)i[n].listener(r)})}function Wc(a,e){var t=Wr(a),r=t.uniform;r[e]&&(a.off(e,r[e]),r[e]=null)}function bn(a,e,t,r,i){i.isAvailableBehavior=B(vr,null,t,r),a.trigger(e,i)}function vr(a,e,t){var r=t[a];return!a||r&&(!j(r)||e.event[r+"Key"])}const Xc=Gc;function ze(a,e,t,r,i,n){a=a||0;var o=Wt(t[1],-t[0]);if(i!=null&&(i=Yt(i,[0,o])),n!=null&&(n=Math.max(n,i??0)),r==="all"){var s=Math.abs(Wt(e[1],-e[0]));s=Yt(s,[0,o]),i=n=Yt(s,[i,n]),r=0}e[0]=Yt(e[0],t),e[1]=Yt(e[1],t);var l=sa(e,r);e[r]+=a;var u=i||0,f=t.slice();l.sign<0?f[0]=Wt(f[0],u):f[1]=Wt(f[1],-u),e[r]=Yt(e[r],f);var v;return v=sa(e,r),i!=null&&(v.sign!==l.sign||v.span<i)&&(e[1-r]=Wt(e[r],l.sign*i)),v=sa(e,r),n!=null&&v.span>n&&(e[1-r]=Wt(e[r],v.sign*n)),e}function sa(a,e){var t=a[e]-a[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yt(a,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,a))}var Ht=rt(),Sn=Ct,la=B,Yc=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(e,t,r,i){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,r);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new xt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var h=ct(An,t,v);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}wn(s,t,!0),this._renderHandle(n)}},a.prototype.remove=function(e){this.clear(e)},a.prototype.dispose=function(e){this.clear(e)},a.prototype.determineAnimation=function(e,t){var r=t.get("animation"),i=e.axis,n=i.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(n&&Ue(i).w>s)return!0;if(o){var l=ni(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},a.prototype.makeElOption=function(e,t,r,i,n){},a.prototype.createPointerEl=function(e,t,r,i){var n=t.pointer;if(n){var o=Ht(e).pointerEl=new Ru[n.type](Sn(t.pointer));e.add(o)}},a.prototype.createLabelEl=function(e,t,r,i){if(t.label){var n=Ht(e).labelEl=new fe(Sn(t.label));e.add(n),Mn(n,i)}},a.prototype.updatePointerEl=function(e,t,r){var i=Ht(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),r(i,{shape:t.pointer.shape}))},a.prototype.updateLabelEl=function(e,t,r,i){var n=Ht(e).labelEl;n&&(n.setStyle(t.label.style),r(n,{x:t.label.x,y:t.label.y}),Mn(n,i))},a.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Nu(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ee(u.event)},onmousedown:la(this._onHandleDragMove,this,0,0),drift:la(this._onHandleDragMove,this),ondragend:la(this._onHandleDragEnd,this)}),r.add(i)),wn(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");J(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Gr(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},a.prototype._moveHandleToValue=function(e,t){An(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ua(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(ua(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(ua(i)),Ht(r).lastProp=null,this._doDispat
1chAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,i=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),wr(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},a}();function An(a,e,t,r){ks(Ht(t).lastProp,r)||(Ht(t).lastProp=r,e?Le(t,r,a):(t.stopAnimation(),t.attr(r)))}function ks(a,e){if(it(a)&&it(e)){var t=!0;return w(e,function(r,i){t=t&&ks(a[i],r)}),!!t}else return a===e}function Mn(a,e){a[e.get(["label","show"])?"show":"hide"]()}function ua(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function wn(a,e,t){var r=e.get("z"),i=e.get("zlevel");a&&a.traverse(function(n){n.type!=="group"&&(r!=null&&(n.z=r),i!=null&&(n.zlevel=i),n.silent=t)})}const $c=Yc;function Kc(a){var e=a.get("type"),t=a.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function qc(a,e,t,r,i){var n=t.get("value"),o=Ps(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=So(s.get("padding")||0),u=s.getFont(),f=io(o,u),v=i.position,h=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=i.align;p==="right"&&(v[0]-=h),p==="center"&&(v[0]-=h/2);var d=i.verticalAlign;d==="bottom"&&(v[1]-=c),d==="middle"&&(v[1]-=c/2),jc(v,h,c,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),a.label={x:v[0],y:v[1],style:Fr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function jc(a,e,t,r){var i=r.getWidth(),n=r.getHeight();a[0]=Math.min(a[0]+e,i)-e,a[1]=Math.min(a[1]+t,n)-t,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}function Ps(a,e,t,r,i){a=e.scale.parse(a);var n=e.scale.getLabel({value:a},{precision:i.precision}),o=i.formatter;if(o){var s={value:Ir(e,{value:a}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),j(o)?n=o.replace("{value}",n):K(o)&&(n=o(s))}return n}function Rs(a,e,t){var r=Wa();return go(r,r,t.rotation),Bu(r,r,t.position),wa([a.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function Jc(a,e,t,r,i,n){var o=Nt.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),qc(e,r,i,n,{position:Rs(r.axis,a,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Qc(a,e,t){return t=t||0,{x1:a[t],y1:a[1-t],x2:e[t],y2:e[1-t]}}function td(a,e,t){return t=t||0,{x:a[t],y:a[1-t],width:e[t],height:e[1-t]}}function ed(a,e,t){return Ue(a,{fromStat:{sers:$(e,function(r){return t.getSeriesByIndex(r.seriesIndex)})},min:1}).w}function rd(a,e,t){return[st(Bt(e[0],e[1]),a-t/2),Bt(a+t/2,st(e[0],e[1]))]}var ad=function(a){F(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),f=s.getGlobalExtent(),v=Cn(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var c=Kc(n),p=id[u](s,h,f,v,n.get("seriesDataIndices"),n.ecModel);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=Rr(l.getRect(),i);Jc(r,t,d,i,n,o)},e.prototype.getHandleTransform=function(t,r,i){var n=Rr(r.axis.grid.getRect(),r,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Rs(r.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Cn(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=r[f],v[f]=Bt(l[1],v[f]),v[f]=st(l[0],v[f]);var h=(u[1]+u[0])/2,c=[h,h];c[f]=v[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}($c);function Cn(a,e){var t={};return t[e.dim+"AxisIndex"]=e.index,a.getCartesian(t)}
1var id={line:function(a,e,t,r){var i=Qc([e,r[0]],[e,r[1]],Tn(a));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(a,e,t,r,i,n){var o=ed(a,i,n),s=r[1]-r[0],l=rd(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:td([u,r[0]],[f-u,s],Tn(a))}}};function Tn(a){return a.dim==="x"?0:1}const nd=ad;var od=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:z.color.border,width:1,type:"dashed"},shadowStyle:{color:z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:z.color.neutral00,padding:[5,7,5,7],backgroundColor:z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:z.color.accent40,throttle:40}},e}(Rt);const sd=od;var wt=rt(),ld=w;function Ns(a,e,t){if(!nt.node){var r=e.getZr();wt(r).records||(wt(r).records={}),ud(r,e);var i=wt(r).records[a]||(wt(r).records[a]={});i.handler=t}}function ud(a,e){if(wt(a).initialized)return;wt(a).initialized=!0,t("click",ct(fa,"click")),t("mousemove",ct(fa,"mousemove")),t("mousewheel",ct(fa,"mousewheel")),t("globalout",vd);function t(r,i){a.on(r,function(n){var o=hd(e);ld(wt(a).records,function(s){s&&i(s,n,o.dispatchAction)}),fd(o.pendings,e)})}}function fd(a,e){var t=a.showTip.length,r=a.hideTip.length,i;t?i=a.showTip[t-1]:r&&(i=a.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function vd(a,e,t){a.handler("leave",null,t)}function fa(a,e,t,r){e.handler(a,t,r)}function hd(a){var e={showTip:[],hideTip:[]},t=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=t,a.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function za(a,e){if(!nt.node){var t=e.getZr(),r=(wt(t).records||{})[a];r&&(wt(t).records[a]=null)}}var cd=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i){var n=r.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";Ns("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){za("axisPointer",r)},e.prototype.dispose=function(t,r){za("axisPointer",r)},e.type="axisPointer",e}(Zt);const dd=cd;function Bs(a,e){var t=[],r=a.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var n=i.getData(),o=Sa(n,a);if(o==null||o<0||J(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(a.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,h=u.dim,c=v==="x"||v==="radius"?1:0,p=n.mapDimension(h),d=[];d[c]=n.get(p,o),d[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues($(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var Dn=rt();function pd(a,e,t){var r=a.currTrigger,i=[a.x,a.y],n=a,o=a.dispatchAction||B(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){hr(i)&&(i=Bs({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=hr(i),u=n.axesInfo,f=s.axesInfo,v=r==="leave"||hr(i),h={},c={},p={list:[],map:{}},d={showPointer:ct(md,c),showTooltip:ct(yd,p)};w(s.coordSysMap,function(g,x){var _=l||g.containPoint(i);w(s.coordSysAxesInfo[x],function(y,b){var S=y.axis,A=Sd(u,y);if(!v&&_&&(!u||A)){var I=A&&A.value;I==null&&!l&&(I=S.pointToData(i)),I!=null&&In(y,I,d,!1,h)}})});var m={};return w(f,function(g,x){var _=g.linkGroup;_&&!c[x]&&w(_.axesInfo,function(y,b){var S=c[b];
1if(y!==g&&S){var A=S.value;_.mapper&&(A=g.axis.scale.parse(_.mapper(A,Ln(y),Ln(g)))),m[g.key]=A}})}),w(m,function(g,x){In(f[x],g,d,!0,h)}),_d(c,f,h),xd(p,i,a,o),bd(f,o,t),h}}function In(a,e,t,r,i){var n=a.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!a.involveSeries){t.showPointer(a,e);return}var o=gd(e,a),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&et(i,s[0]),!r&&a.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(a,e,s),t.showTooltip(a,o,l)}}function gd(a,e){var t=e.axis,r=t.dim,i=a,n=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(r),v,h;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,a,t);h=c.dataIndices,v=c.nestestValue}else{if(h=l.indicesOfNearest(r,f[0],a,t.type==="category"?.5:null),!h.length)return;v=l.getData().get(f[0],h[0])}if(_t(v)){var p=a-v,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,i=v,n.length=0),w(h,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:i}}function md(a,e,t,r){a[e.key]={value:t,payloadBatch:r}}function yd(a,e,t,r){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Be(l),f=a.map[u];f||(f=a.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},a.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function _d(a,e,t){var r=t.axesInfo=[];w(e,function(i,n){var o=i.axisPointerModel.option,s=a[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function xd(a,e,t,r){if(hr(e)||!a.list.length){r({type:"hideTip"});return}var i=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:a.list})}function bd(a,e,t){var r=t.getZr(),i="axisPointerLastHighlights",n=Dn(r)[i]||{},o=Dn(r)[i]={};w(a,function(f,v){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&w(h.seriesDataIndices,function(c){o[c.seriesIndex+"|"+c.dataIndex]=c})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(n,function(f,v){!o[v]&&l.push(u(f))}),w(o,function(f,v){!n[v]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Sd(a,e){for(var t=0;t<(a||[]).length;t++){var r=a[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Ln(a){var e=a.axis.model,t={},r=t.axisDim=a.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function hr(a){return!a||a[0]==null||isNaN(a[0])||a[1]==null||isNaN(a[1])}function zs(a){Ls.registerAxisPointerClass("CartesianAxisPointer",nd),a.registerComponentModel(sd),a.registerComponentView(dd),a.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!J(t)&&(e.axisPointer.link=[t])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=wc(e,t)}}),a.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},pd)}function Zp(a){se(zc),se(zs)}var En=["x","y","radius","angle","single"],Ad=rt(),Md=["cartesian2d","polar","singleAxis"];function wd(a){var e=a.get("coordinateSystem");return yt(Md,e)>=0}function Pt(a){return a+"Axis"}function Cd(a,e){var t=X(),r=[],i=X();a.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var n;do n=!1,a.eachComponent("dataZoom",o);while(n);function o(f){!i.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){i.set(f.uid,!0),r.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(h,c){var p=t.get(h);p&&p[c]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,h){(t.get(v)||t.set(v,[]))[h]=!0})}return r}function Vs(a){var e=a.ecModel,t={infoList:[],infoMap:X()};return a.eachTargetAxis(function(r,i){var n=e.getComponent(Pt(r),i);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}function Fs(a){var e=Ad(Qn(a));return e.axisProxyMap||(e.axisProxyMap=X())}function Br(a){if(a)return Fs(a.ecModel).get(a.uid)}function Td(a,e){Fs(a.ecModel).set(a.uid,e)}function Hs(a,e){var t=e.getAxisModel().axis.__alignTo;return t&&a.getAxisProxy(t.dim,t.model.componentIndex)?Br(t.model):null}var va=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},a}(),zr=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,i){var n=On(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var r=On(t);ht(this.option,t,!0),ht(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(r[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=X(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return w(En,function(i){var n=this.getReferringComponents(Pt(i),zu);if(n.specified){r=!0;var o=new va;w(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var i=this.ecModel,n=!0;if(n){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===r}});l(s,"single")}function l(u,f){var v=u[0];if(v){var h=new va;if(h.add(v.componentIndex),t.set(f,h),n=!1,f==="x"||f==="y"){var c=v.getReferringComponents("grid",ft).models[0];c&&w(u,function(p){v.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",ft).models[0]&&h.add(p.componentIndex)})}}}n&&w(En,function(u){if(n){var f=i.findComponents({mainType:Pt(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var v=new va;v.add(f[0].componentIndex),t.set(u,v),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,i=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,i){t==null&&(t=this.ecModel.getComponent(Pt(r),i))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(i,n){w(i.indexList,function(o){t.call(r,n,o)})})},e.prototype.getAxisProxy=function(t,r){return Br(this.getAxisModel(t,r))},e.prototype.getAxisModel=function(t,r){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[r])return this.ecModel.getComponent(Pt(t),r)},e.prototype.setRawRange=function(t){var r=this.option,i=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(r[n[0]]=i[n[0]]=t[n[0]],r[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;w(["start","startValue","end","endValue"],function(i){r[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value}else return this.getAxisProxy(t,r).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return Br(t);for(var r,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var o=i[n],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;r||(r=u)}return r},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}(Rt);function On(a){var e={};return w(["start","end","startValue","endValue","throttle"],function(t){a.hasOwnProperty(t)&&(e[t]=a[t])}),e}var Dd=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,i,n){this.dataZoomModel=t,this.ecModel=r,this.api=i},e.type="dataZoom",e}(Zt);const Gs=Dd;var Id=function(){function a(e,t,r,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=r}return a.prototype.hostedBy=function(e){return this._dataZoomModel===e},a.prototype.getWindow=function(){return Ct(this._window)},a.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(wd(t)){var r=Pt(this._dimName),i=t.getReferringComponents(r,ft).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return Ct(this._minMaxSpan)},a.prototype.calculateDataWindow=function(e){var t=this._extent,r=this.getAxisModel().axis,i=r.scale,n=this._dataZoomModel,o=n.getRangePropMode(),s=[0,100],l=[],u=[],f,v=[!1,!1];w(["start","end"],function(_,y){var b=e[_],S=e[_+"Value"];o[y]==="percent"?(b==null&&(b=s[y]),S=tt(b,s,t),v[y]=!0):(f=!0,S==null?S=t[y]:(S=i.parse(S),i.sanitize&&(S=i.sanitize(S,t))),b=tt(S,t,s)),u[y]=S==null||isNaN(S)?t[y]:S,l[y]=b==null||isNaN(b)?s[y]:b}),Ot(u),Ot(l);var h=this._minMaxSpan;f?c(u,l,t,s,!1):c(l,u,s,t,!0);function c(_,y,b,S,A){var I=A?"Span":"ValueSpan";ze(0,_,b,"all",h["min"+I],h["max"+I]);for(var C=0;C<2;C++)y[C]=tt(_[C],b,S,!0),A&&(y[C]=y[C],v[C]=!0);or(y)}var p=ut(i)||Ge(i),d=r.getExtent(),m=jt(d[1]-d[0]),g=p?0:xo(u,m,.5);w([[0,He],[1,te]],function(_){var y=_[0],b=_[1];!v[y]||!isFinite(g)||(u[y]=Z(u[y],g),u[y]=Bt(t[1],st(t[0],u[y])),l[y]===s[y]&&(u[y]=t[y],p&&(u[y]=b(u[y]))))}),or(u);var x=[tt(u[0],t,s,!0),tt(u[1],t,s,!0)];return or(x),{value:u,percent:l,percentInverted:x,valuePrecision:g}},a.prototype.reset=function(e,t){if(this.hostedBy(e)){var r=this.getAxisModel().axis;Qo(r,_v);var i=r.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var n=e.settledOption;t&&(n=ot({start:t[0],end:t[1]},n));var o=this._window=this.calculateDataWindow(n),s=o.percent,l=o.value;s[0]!==0&&i.setZoomMM(0,l[0]),s[1]!==100&&i.setZoomMM(1,l[1])}},a.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var r=this._dimName,i=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._window.value;if(n==="none")return;w(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(r);if(f.length){if(n==="weakFilter"){var v=u.getStore(),h=$(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var p,d,m,g=0;g<f.length;g++){var x=v.get(h[g],c),_=!isNaN(x),y=x<o[0],b=x>o[1];if(_&&!y&&!b)return!0;_&&(m=!0),y&&(p=!0),b&&(d=!0)}return m&&p&&d})}else w(f,function(c){if(n==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});w(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},a.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._extent;w(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=tt(r[0]+o,r,[0,100],!0):n!=null&&(o=tt(n,[0,100],r,!0)-r[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},a}(),Ld={dirtyOnOverallProgress:!0,getTargetSeries:function(a){function e(i){a.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=a.getComponent(Pt(o),s);i(o,s,l,n)})})}var t=[];
1e(function(i,n,o,s){if(!Br(o)){var l=new Id(i,n,s,a);t.push(l),Td(o,l)}});var r=X();return w(t,function(i){w(i.getTargetSeriesModels(),function(n){r.set(n.uid,n)})}),r},overallReset:function(a,e){a.eachComponent("dataZoom",function(t){var r=[];t.eachTargetAxis(function(i,n){var o=t.getAxisProxy(i,n),s=Hs(t,o);s?r.push([o,s]):o.reset(t,null)}),w(r,function(i){i[0].reset(t,i[1].getWindow().percentInverted)}),t.eachTargetAxis(function(i,n){t.getAxisProxy(i,n).filterData(t,e)})}),a.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var i=r.getWindow(),n=i.percent,o=i.value;t.setCalculatedRange({start:n[0],end:n[1],startValue:o[0],endValue:o[1]})}})}};const Ed=Ld;function Od(a){a.registerAction("dataZoom",function(e,t){var r=Cd(t,e);w(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kd=Jn();function Zs(a){kd(a,function(){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,Ed),Od(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}var Pd=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:z.color.tertiary,fontSize:14}},e}(Rt);const Rd=Pd;function Us(a){var e=a.get("confine");return e!=null?!!e:a.get("renderMode")==="richText"}function Ws(a){if(nt.domSupported){for(var e=document.documentElement.style,t=0,r=a.length;t<r;t++)if(a[t]in e)return a[t]}}var Xs=Ws(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Nd=Ws(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Ys(a,e){if(!a)return e;e=Ao(e,!0);var t=a.indexOf(e);return a=t===-1?e:"-"+a.slice(0,t)+"-"+e,a.toLowerCase()}function Bd(a,e){var t=a.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(a);return t?e?t[e]:t:null}var zd=Ys(Nd,"transition"),oi=Ys(Xs,"transform"),Vd="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(nt.transform3dSupported?"will-change:transform;":"");function Fd(a){return a=a==="left"?"right":a==="right"?"left":a==="top"?"bottom":"top",a}function Hd(a,e,t){if(!j(t)||t==="inside")return"";var r=a.get("backgroundColor"),i=a.get("borderWidth");e=re(e);var n=Fd(t),o=Math.max(Math.round(i)*1.5,6),s="",l=oi+":",u;yt(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,v=o+i,h=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),c=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-v)/2)*100)/100;s+=";"+n+":-"+c+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+d.join("")+'"></div>'}function Gd(a,e,t){var r="cubic-bezier(0.23,1,0.32,1)",i="",n="";return t&&(i=" "+a/2+"s "+r,n="opacity"+i+",visibility"+i),e||(i=" "+a+"s "+r,n+=(n.length?",":"")+(nt.transformSupported?""+oi+i:",left"+i+",top"+i)),zd+":"+n}function kn(a,e,t){var r=a.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!nt.transformSupported)return t?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var n=nt.transform3dSupported,o="translate"+(n?"3d":"")+"("+r+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+oi+":"+o+";":[["top",0],["left",0],[Xs,o]]}function Zd(a){var e=[],t=a.get("fontSize"),r=a.getTextColor();r&&e.push("color:"+r),e.push("font:"+a.getFont());var i=q(a.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var n=a.get("textShadowColor"),o=a.get("textShadowBlur")||0,s=a.get("textShadowOffsetX")||0,l=a.get("textShadowOffsetY")||0;return n&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),w(["decoration","align"],function(u){var f=a.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Ud(a,e,t,r){var i=[],n=a.get("transitionDuration"),o=a.get("backgroundColor"),s=a.get("shadowBlur"),l=a.get("shadowColor"),u=a.get("shadowOffsetX"),f=a.get("shadowOffsetY"),v=a.getModel("textStyle"),h=Mo(a,"html"),c=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+c),e&&n>0&&i.push(Gd(n,t,r)),o&&i.push("background-color:"+o),w(["width","color","radius"],function(p){var d="border-"+p,m=Ao(d),g=a.get(m);g!=null&&i.push(d+":"+g+(p==="color"?"":"px"))}),i.push(Zd(v)),h!=null&&i.push("padding:"+So(h).join("px ")+"px"),i.join(";")+";"}function Pn(a,e,t,r,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&Hu(a,o,t,r,i)}else{a[0]=r,a[1]=i;var s=n&&n.getViewportRootOffset();s&&(a[0]+=s.offsetLeft,a[1]+=s.offsetTop)}a[2]=a[0]/e.getWidth(),a[3]=a[1]/e.getHeight()}var Wd=function(){function a(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),n=t.appendTo,o=n&&(j(n)?document.querySelector(n):Mi(n)?n:K(n)&&n(e.getDom()));Pn(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Vu(f,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return a.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),r=Bd(t,"position"),i=t.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},a.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,n=this._styleCoord;r.innerHTML?i.cssText=Vd+Ud(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+kn(n[0],n[1],!0)+("border-color:"+re(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},a.prototype.setContent=function(e,t,r,i,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(j(n)&&r.get("trigger")==="item"&&!Us(r)&&(s=Hd(r,i,n)),j(e))o.innerHTML=e+s;else if(e){o.innerHTML="",J(e)||(e=[e]);for(var l=0;l<e.length;l++)Mi(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)}}},a.prototype.setEnterable=function(e){this._enterable=e},a.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},a.prototype.moveTo=function(e,t){if(this.el){var r=this._styleCoord;if(Pn(r,this._zr,this._container,e,t),r[0]!=null&&r[1]!=null){var i=this.el.style,n=kn(r[0],r[1]);w(n,function(o){i[o[0]]=o[1]})}}},a.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},a.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",nt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},a.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),e)):this.hide())},a.prototype.isShow=function(){return this._show},a.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Fu(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var r=t.parentNode;r&&r.removeChild(t)}this.el=this._container=null},a}();const Xd=Wd;var Yd=function(){function a(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Nn(this._styleCoord,this._zr,e.getW
vendor: 1,307 bytes, line 1
1idth()/2,e.getHeight()/2)}return a.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},a.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},a.prototype.setContent=function(e,t,r,i,n){var o=this;it(e)&&Gu(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new fe({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Mo(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),w(["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})},a.prototype.setEnterable=function(e){this._enterable=e},a.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),r=Rn(e.style);return[t.width+r.left+r.right,t.height+r.top+r.bottom]}
1,a.prototype.moveTo=function(e,t){var r=this.el;if(r){var i=this._styleCoord;Nn(i,this._zr,e,t),e=i[0],t=i[1];var n=r.style,o=Et(n.borderWidth||0),s=Rn(n);r.x=e+o+s.left,r.y=t+o+s.top,r.markRedraw()}},a.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},a.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},a.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),e)):this.hide())},a.prototype.isShow=function(){return this._show},a.prototype.dispose=function(){this._zr.remove(this.el)},a}();function Et(a){return Math.max(0,a)}function Rn(a){var e=Et(a.shadowBlur||0),t=Et(a.shadowOffsetX||0),r=Et(a.shadowOffsetY||0);return{left:Et(e-t),right:Et(e+t),top:Et(e-r),bottom:Et(e+r)}}function Nn(a,e,t,r){a[0]=t,a[1]=r,a[2]=a[0]/e.getWidth(),a[3]=a[1]/e.getHeight()}var $d=new St({shape:{x:-1,y:-1,width:2,height:2}}),Kd=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){if(!(nt.node||!r.getDom())){var i=t.getComponent("tooltip"),n=this._renderMode=Zu(i.get("renderMode"));this._tooltipContent=n==="richText"?new Yd(r):new Xd(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,r,i){if(!(nt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=r,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Gr(this,"_updatePosition",50,"fixRate"):wr(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,r=t.get("triggerOn");Ns("itemTooltip",this._api,B(function(i,n,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,i=this._api,n=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,i,n){if(!(n.from===this.uid||nt.node||!i.getDom())){var o=Bn(n,i);this._ticket="";var s=n.dataByCoordSys,l=Qd(n,r,i);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=$d;f.x=n.x,f.y=n.y,f.update(),lt(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,i,n))return;var v=Bs(n,r),h=v.point[0],c=v.point[1];h!=null&&c!=null&&this._tryShow({offsetX:h,offsetY:c,target:v.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(Bn(n,i))},e.prototype._manuallyAxisShowTip=function(t,r,i,n){var o=n.seriesIndex,s=n.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var f=u.getData(),v=Se([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,r){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=lt(i);if(s.ssrType==="legend")return;
1this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Uu(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(lt(f).dataIndex!=null?l=f:lt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,r):u?this._showComponentItemTooltip(t,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var i=t.get("showDelay");r=B(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(t,r){var i=this._ecModel,n=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Se([r.tooltipOption],n),l=this._renderMode,u=[],f=wi("section",{blocks:[],noHeader:!0}),v=[],h=new Kr;w(t,function(x){w(x.dataByAxis,function(_){var y=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,S=y.axis,A=S.scale.parse(b);if(!(!y||b==null)){var I=Ps(b,S,i,_.seriesDataIndices,_.valueLabelOpt),C=wi("section",{header:I,noHeader:!Wu(I),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(M){var T=i.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,D=T.getDataParams(L);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Ir(y.axis,{value:A}),D.axisValueLabel=I,D.marker=h.makeTooltipMarker("item",re(D.color),l);var O=Ci(T.formatTooltip(L,!0,null)),E=O.frag;if(E){var k=Se([T],n).get("valueFormatter");C.blocks.push(k?et({valueFormatter:k},E):E)}O.text&&v.push(O.text),u.push(D)}})}})}),f.blocks.reverse(),v.reverse();var c=r.position,p=s.get("order"),d=Ti(f,h,l,p,i.get("useUTC"),s.get("textStyle"));d&&v.unshift(d);var m=l==="richText"?` 2 3`:"<br/>",g=v.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var n=this._ecModel,o=lt(r),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,h=u.getData(v),c=this._renderMode,p=t.positionDefault,d=Se([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,v),x=new Kr;g.marker=x.makeTooltipMarker("item",re(g.color),c);var _=Ci(u.formatTooltip(f,!1,v)),y=d.get("order"),b=d.get("valueFormatter"),S=_.frag,A=S?Ti(b?et({valueFormatter:b},S):S,x,c,y,n.get("useUTC"),d.get("textStyle")):_.text,I="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,A,g,I,t.offsetX,t.offsetY,t.position,t.target,x)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var n=this._renderMode==="html",o=lt(r),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(j(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=Ct(l),l.content=Xu(l.content));var v=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&v.push(h),v.push({formatter:l.content});var c=t.positionDefault,p=Se(v,this._tooltipModel,c?{position:c}:null),d=p.get("content"),m=Math.random()+"",g=new Kr;this._showOrMove(p,function(){var x=Ct(p.get("formatterParams")||{});this._showTooltipContent(p,d,x,m,t.offsetX,t.offsetY,t.position,r,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var c=r,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=p.color;if(h)if(j(h)){var m=t.ecModel.get("useUTC"),g=J(i)?i[0]:i,x=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,x&&(c=$n(g.axisValue,c,m)),c=Yu(c,i,!0)}else if(K(h)){var _=B(function(y,b){y===this._ticket&&(v.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,v,i,u))},this);this._ticket=n,c=h(i,n,_)}else c=h;v.setContent(c,f,t,d,l),v.show(t,d),this._updatePosition(t,l,o,s,v,i,u)}},e.prototype._getNearestPoint=function(t,r,i,n,o){if(i==="axis"||J(r))return{color:n||o};if(!J(r))return{color:n||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();r=r||t.get("position");var v=o.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect
3().clone();if(l&&p.applyTransform(l.transform),K(r)&&(r=r([i,n],s,o.el,p,{viewSize:[u,f],contentSize:v.slice()})),J(r))i=Cr(r[0],u),n=Cr(r[1],f);else if(it(r)){var d=r;d.width=v[0],d.height=v[1];var m=Hr(d,{width:u,height:f});i=m.x,n=m.y,h=null,c=null}else if(j(r)&&l){var g=Jd(r,p,v,t.get("borderWidth"));i=g[0],n=g[1]}else{var g=qd(i,n,o,u,f,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=zn(h)?v[0]/2:h==="right"?v[0]:0),c&&(n-=zn(c)?v[1]/2:c==="bottom"?v[1]:0),Us(t)){var g=jd(i,n,o,u,f);i=g[0],n=g[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===t.length;return o&&w(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&w(u,function(h,c){var p=v[c]||{},d=h.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===m.length,o&&w(d,function(g,x){var _=m[x];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),n&&w(h.seriesDataIndices,function(g){var x=g.seriesIndex,_=r[x],y=n[x];_&&y&&y.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){nt.node||!r.getDom()||(wr(this,"_updatePosition"),this._tooltipContent.dispose(),za("itemTooltip",r),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(Zt);function Se(a,e,t){var r=e.ecModel,i;t?(i=new Gt(t,r,r),i=new Gt(e.option,i,r)):i=e;for(var n=a.length-1;n>=0;n--){var o=a[n];o&&(o instanceof Gt&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(i=new Gt(o,i,r)))}return i}function Bn(a,e){return a.dispatchAction||B(e.dispatchAction,e)}function qd(a,e,t,r,i,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(a+l+n+2>r?a-=l+n:a+=n),o!=null&&(e+u+o>i?e-=u+o:e+=o),[a,e]}function jd(a,e,t,r,i){var n=t.getSize(),o=n[0],s=n[1];return a=Math.min(a+o,r)-o,e=Math.min(e+s,i)-s,a=Math.max(a,0),e=Math.max(e,0),[a,e]}function Jd(a,e,t,r){var i=t[0],n=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,f=e.height;switch(a){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-i/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function zn(a){return a==="center"||a==="middle"}function Qd(a,e,t){var r=$u(a).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var n=Ku(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=lt(u).tooltipConfig;if(f&&f.name===a.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const tp=Kd;function Up(a){se(zs),a.registerComponentModel(Rd),a.registerComponentView(tp),a.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ie),a.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ie)}var ep=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=wo(zr.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(zr);const rp=ep;var si=rt();function ap(a,e,t){si(a).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function ip(a,e){for(var t=si(a).coordSysRecordMap,r=t.keys(),i=0;i<r.length;i++){var n=r[i],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||$s(t,o))}}}function $s(a,e){if(e){a.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function np(a,e){var t={model:e,containsPoint:ct(sp,e),dispatchAction:ct(op,a),dataZoomInfoMap:null,controller:null},r=t.controller=new Xc(a.getZr());return w(["pan","zoom","scrollMove"],function(i){r.on(i,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function op(a,e){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function sp(a,e,t,r){return a.coordinateSystem.containPoint([t,r])}function lp(a,e,t){var r,i="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return a.each(function(u){var f=u.model,v=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;n[i+v]>n[i+r]&&(r=v),o=o&&f.get("preventDefaultMouseMove",!0),s=q(f.get("cursorGrab",!0),s),l=q(f.get("cursorGrabbing",!0),l)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function up(a){a.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var r=si(t),i=r.coordSysRecordMap||(r.coordSysRecordMap=X());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=Vs(n);w(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,np(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){$s(i,n);return}var f=lp(l,n,t);o.enable(f.controlType,f.opt),Gr(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var fp=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,i){if(a.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ap(i,t,{pan:B(ha.pan,this),zoom:B(ha.zoom,this),scrollMove:B(ha.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ip(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Gs),ha={zoom:function(a,e,t,r){var i=this.range,n=i.slice(),o=a.axisModels[0];if(o){var s=ca[e](null,[r.originX,r.originY],o,t,a),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/r.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ze(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:Vn(function(a,e,t,r,i,n){var o=ca[r]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(a[1]-a[0])*o.pixel/o.pixelLength}),scrollMove:Vn(function(a,e,t,r,i,n){var o=ca[r]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(a[1]-a[0])*n.scrollDelta})};function Vn(a){return function(e,t,r,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=a(o,s,e,t,r,i);if(ze(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var ca={grid:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return a=a||[0,0],n.dim==="x"?(o.pixel=e[0]-a[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(a,e,t,r,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return a=a?s.pointToCoord(a):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-a[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-a[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(a,e,t,r,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return a=a||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-a[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-a[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};const vp=fp;function hp(a){Zs(a),a.registerComponentModel(rp),a.registerComponentView(vp),up(a)}var cp=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=wo(zr.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:z.color.accent10,borderRadius:0,backgroundColor:z.color.transparent,dataBackgroun
3d:{lineStyle:{color:z.color.accent30,width:.5},areaStyle:{color:z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:z.color.accent40,width:.5},areaStyle:{color:z.color.accent20,opacity:.3}},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:z.color.neutral00,borderColor:z.color.accent20},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:z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:z.color.tertiary},brushSelect:!0,brushStyle:{color:z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(zr);const dp=cp;var Ae=St,pp=1,da=30,gp=7,Me="horizontal",Fn="vertical",mp=5,yp=["line","bar","candlestick","scatter"],_p={easing:"cubicOut",duration:100,delay:0},xp=function(a){F(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=B(this._onBrush,this),this._onBrushEnd=B(this._onBrushEnd,this)},e.prototype.render=function(t,r,i,n){if(a.prototype.render.apply(this,arguments),Gr(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){wr(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 r=this._displayables.sliderGroup=new xt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,i=t.get("brushSelect"),n=i?gp:0,o=bo(t,r).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Me?{right:o.width-s.x-s.width,top:o.height-da-l-n,width:s.width,height:da}:{right:l,top:s.y,width:da,height:s.height},f=Xa(t.option);w(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var v=Hr(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===Fn&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Me&&!o?{scaleY:l?1:-1,scaleX:1}:i===Me&&o?{scaleY:l?1:-1,scaleX:-1}:i===Fn&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,v=isNaN(u.y)?0:u.y;t.x=r.x-f,t.y=r.y-v,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new Ae({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ae({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:B(this._onClickPanel,this)}),s=this.api.getZr();n?(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)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,i=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var v=o.getDataExtent(t.thisDim),h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var p=[0,r[1]],d=[0,r[0]],m=[[r[0],0],[0,0]],g=[],x=d[1]/Math.max(1,o.count()-1),_=r[0]/(v[1]-v[0]),y=t.thisAxis.t
3ype==="time",b=-x,S=Math.round(o.count()/r[0]),A;o.each([t.thisDim,l],function(L,D,O){if(S>0&&O%S){y||(b+=x);return}b=y?(+L-v[0])*_:b+x;var E=D==null||isNaN(D)||D==="",k=E?0:tt(D,h,p,!0);E&&!A&&O?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&A&&(m.push([b,0]),g.push([b,0])),E||(m.push([b,k]),g.push([b,k])),A=E}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var I=this.dataZoomModel;function C(L){var D=I.getModel(L?"selectedDataBackground":"dataBackground"),O=new xt,E=new tf({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new ef({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return O.add(E),O.add(k),O}for(var M=0;M<3;M++){var T=C(M===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!i&&!(r!==!0&&yt(yp,u.get("type"))<0)){var f=n.getComponent(Pt(o),s).axis,v=bp(o),h,c=u.coordinateSystem;v!=null&&c.getOtherAxis&&(h=c.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var p=u.getData().mapDimension(o);i={thisAxis:f,series:u,thisDim:p,otherDim:v,otherAxisInverse:h}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,i=r.handles=[null,null],n=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),h=r.filler=new Ae({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ae({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:pp,fill:z.color.transparent}})),w([0,1],function(_){var y=l.get("handleIcon");!qu[y]&&y.indexOf("path://")<0&&y.indexOf("image://")<0&&(y="path://"+y);var b=ee(y,-1,0,2,2,null,!0);b.attr({cursor:Sp(this._orient),draggable:!0,drift:B(this._onDragMove,this,_),ondragend:B(this._onDragEnd,this),onmouseover:B(this._onOverDataInfoTriggerArea,this,!0),onmouseout:B(this._onOverDataInfoTriggerArea,this,!1),z2:5});var S=b.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Cr(A,this._size[1]),this._handleWidth=S.width/S.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(),ju(b);var I=l.get("handleColor");I!=null&&(b.style.fill=I),o.add(i[_]=b);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},T=M.show||!1;t.add(n[_]=new fe({silent:!0,invisible:!T,style:Fr(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=h;if(v){var p=Cr(l.get("moveHandleSize"),s[1]),d=r.moveHandle=new St({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,g=r.moveHandleIcon=ee(l.get("moveHandleIcon"),-m/2,-m/2,m,m,z.color.neutral00,!0);g.silent=!0,g.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(s[1]/2,Math.max(p,10));c=r.moveZone=new St({invisible:!0,shape:{y:s[1]-x,height:p+x}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(c)}c.attr({draggable:!0,cursor:"grab",drift:B(this._onActualMoveZoneDrift,this),ondragstart:B(this._onActualMoveZoneDragStart,this),ondragend:B(this._onActualMoveZoneDragEnd,this),onmouseover:B(this._onOverDataInfoTriggerArea,this,!0),onmouseout:B(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[tt(t[0],[0,100],r,!0),tt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ze(r,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?tt(s.minSpan,l,o,!0):null,s.maxSpan!=null?tt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ot([tt(n[0],o,l,!0),tt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var r=this._displayables,i=this._handleEnds,n=Ot(i.slice()),o=this._size;w([0,1],function(c){var p=r.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/2})}
3,this),r.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;f<l.length;f++){var v=l[f],h=v.getClipPath();h||(h=new St,v.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var r=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,v;if(t){var h={start:f[0],end:f[1]},c=Hs(r,l);if(c){var p=c.calculateDataWindow(h).percentInverted;h={start:p[0],end:p[1]}}v=l.calculateDataWindow(h)}else v=l.getWindow();s=[Hn(r,0,v,u),Hn(r,1,v,u)]}}var d=Ot(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var x=Ju(i.handles[g].parent,this.group),_=Qu(g===0?"right":"left",x),y=this._handleWidth/2+mp,b=wa([d[g]+(g===0?-y:y),this._size[1]/2],x);n[g].setStyle({x:b[0],y:b[1],verticalAlign:o===Me?"middle":_,align:o===Me?_:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var r=this.dataZoomModel.get("handleLabel")||{},i=r.show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=n.get("show")||!1,s=t||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,r,i){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,r,i
3)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,r,i,n){this._dragging=!0,Ee(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=wa([r,i],o,!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._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,i=t.offsetY;this._brushStart=new ae(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[i.x,i.x+i.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ze(0,l,o,0,u.minSpan!=null?tt(u.minSpan,s,o,!0):null,u.maxSpan!=null?tt(u.maxSpan,s,o,!0):null),this._range=Ot([tt(l[0],o,s,!0),tt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ee(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ae({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?_p:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=Vs(this.dataZoomModel).infoList;if(!t&&r.length){var i=r[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Gs);function Hn(a,e,t,r){var i=a.get("labelFormatter"),n=a.get("labelPrecision");(n==null||n==="auto")&&(n=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":ut(r)||Ge(r)?r.getLabel({value:Math.round(o)}):isFinite(n)?Z(o,n,!0):o+"";return K(i)?i(o,s):j(i)?i.replace("{value}",s):s}function bp(a){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[a]}function Sp(a){return a==="vertical"?"ns-resize":"ew-resize"}const Ap=xp;function Mp(a){a.registerComponentModel(dp),a.registerComponentView(Ap),Zs(a)}function Wp(a){se(hp),se(Mp)}export{Np as A,zc as B,ur as C,sf as D,Pp as E,kp as F,Op as G,Rp as H,Fp as I,ei as J,pf as S,Oe as a,qt as b,Gp as c,Cp as d,Tp as e,Ip as f,Ue as g,Vp as h,zp as i,Tf as j,Ep as k,hs as l,Hp as m,Ah as n,hh as o,Bh as p,Lp as q,Dp as r,Bp as s,Zp as t,se as u,Up as v,Wp as w,gf as x,Ph as y,dh as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.