19 lines
431 KiB
JavaScript
19 lines
431 KiB
JavaScript
|
import{r as wa,m as U,i as H,e as kn,a as $,b as kp,c as Y,d as ue,f as En,g as G,h as q,j as Z,k as b,l as ye,n as le,o as Zf,p as V,q as ni,s as Xe,P as Ae,t as Ul,u as ae,v as Ep,Z as gr,w as Rp,x as Cs,y as Rn,z as j,A as Np,C as Ra,E as Ds,S as tt,R as ii,B as Ms,D as Na,F as De,L as ze,G as oi,H as si,I as Op,J as Bp,K as Gp,T as Mr,M as Oa,N as rt,O as Er,Q as Pe,U as qf,V as Se,W as Kf,X as Is,Y as Nn,_ as we,$ as jf,a0 as ge,a1 as Ba,a2 as se,a3 as ee,a4 as St,a5 as Vp,a6 as Ve,a7 as oe,a8 as He,a9 as pe,aa as Q,ab as Go,ac as Jf,ad as It,ae as Vo,af as Fp,ag as zp,ah as Qf,ai as ev,aj as Ga,ak as Fo,al as tv,am as Hp,an as Yl,ao as Vi,ap as Wp,aq as $t,ar as zo,as as Up,at as $l,au as Yp,av as $p,aw as Xp,ax as Ls,ay as rv,az as Xl,aA as Fi,aB as Zp,aC as qp,aD as la,aE as Kp,aF as jp,aG as Jp,aH as Qp,aI as eg,aJ as tg,aK as rg,aL as ag,aM as ng,aN as ig,aO as og,aP as sg,aQ as Zl,aR as ql,aS as lg,aT as av,aU as Ps,aV as ks,aW as Kl,aX as Es,aY as ug,aZ as Rs,a_ as cg,a$ as fg,b0 as nv,b1 as vg,b2 as hg,b3 as dg,b4 as pg}from"./zrender-f903d501.js";import{_ as F}from"./tslib-54e39b60.js";var jl=1e-4,iv=20;function gg(r){return r.replace(/^\s+|\s+$/g,"")}function pt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function W(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?gg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function he(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),iv),r=(+r).toFixed(t),e?r:+r}function mg(r){return r.sort(function(t,e){return t-e}),r}function yt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return On(r)}function On(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function ov(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function yg(r,t,e){if(!r[t])return 0;var a=sv(r,e);return a[t]||0}function sv(r,t){var e=wa(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=U(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=U(n,function(v){return Math.floor(v)}),s=wa(o,function(v,d){return v+d},0),l=U(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,h=l.length;f<h;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return U(o,function(v){return v/a})}function _g(r,t){var e=Math.max(yt(r),yt(t)),a=r+t;return e>iv?a:he(a,e)}var xg=9007199254740991;function Ns(r){var t=Math.PI*2;return(r%t+t)%t}function ba(r){return r>-jl&&r<jl}var Sg=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function at(r){if(r instanceof Date)return r;if(H(r)){var t=Sg.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function lv(r){return Math.pow(10,Va(r))}function Va(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Os(r,t){var e=Va(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function wg(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function bg(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<
|
||
|
yyyy`);var a=at(t),n=e?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),c=a[n+"Seconds"](),f=a[n+"Milliseconds"]();return r=r.replace("MM",Ne(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ne(i%100+"",2)).replace("dd",Ne(s,2)).replace("d",s).replace("hh",Ne(l,2)).replace("h",l).replace("mm",Ne(u,2)).replace("m",u).replace("ss",Ne(c,2)).replace("s",c).replace("SSS",Ne(f,3)),r}function qm(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function dr(r,t){return t=t||"transparent",H(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Cn=b,Km=["left","right","top","bottom","width","height"],Qa=[["width","left","right"],["height","top","bottom"]];function sl(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),v,d;if(r==="horizontal"){var p=c.width+(h?-h.x+c.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(h?-h.y+c.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var ya=sl;oe(sl,"vertical");oe(sl,"horizontal");function pr(r,t,e){e=$a(e||0);var a=t.width,n=t.height,i=W(r.left,a),o=W(r.top,n),s=W(r.right,a),l=W(r.bottom,n),u=W(r.width,a),c=W(r.height,n),f=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(c)&&(c=n-l-f-o),v!=null&&(isNaN(u)&&isNaN(c)&&(v>a/n?u=a*.8:c=n*.8),isNaN(u)&&(u=v*c),isNaN(c)&&(c=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-c-f),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-e[0];break;case"bottom":o=n-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(c)&&(c=n-f-o-(l||0));var d=new Pe(i+e[3],o+e[0],u,c);return d.margin=e,d}function Ma(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Or(r,t,e){var a=e&&e.ignoreSize;!G(a)&&(a=[a,a]);var n=o(Qa[0],0),i=o(Qa[1],1);u(Qa[0],r,n),u(Qa[1],r,i);function o(c,f){var h={},v=0,d={},p=0,g=2;if(Cn(c,function(_){d[_]=r[_]}),Cn(c,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),a[f])return l(t,c[1])?d[c[2]]=null:l(t,c[2])&&(d[c[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m<c.length;m++){var y=c[m];if(!s(h,y)&&s(r,y)){h[y]=r[y];break}}return h}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,h){Cn(c,function(v){f[v]=h[v]})}}function bi(r){return jm({},r)}function jm(r,t){return t&&r&&Cn(Km,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Jm=ie(),zr=function(r){F(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=yi("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=Ma(this),i=n?bi(e):{},o=a.getTheme();se(e,o.get(this.mainType)),se(e,this.getDefaultOption()),n&&Or(e,i,n)},t.prototype.mergeOption=function(e,a){se(this.option,e,!0);var n=Ma(this);n&&Or(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Wg(e))return e.defaultOption;var a=Jm(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=se(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return za(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(me);gv(zr,me);ui(zr);Om(zr);Bm(zr,Qm);func
|
||
|
import { `+a+` } from 'echarts/components';
|
||
|
echarts.use([`+a+"]);"),$n[a]=!0)}})}var nh=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new me(i),this._locale=new me(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){q(e!=null,"option is null/undefined"),q(e[Zi]!==Cu,"please use chart.getOption()");var i=Iu(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,Iu(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");vy(o),!this.option||e==="recreate"?Tu(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&b(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;ty(this),b(e,function(f,h){f!=null&&(te.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ee(f):se(n[h],f,!0))}),u&&u.each(function(f,h){te.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),te.topologicalTravel(s,te.getAllClassMainTypes(),c,this);function c(f){var h=oy(this,f,xe(e[f])),v=i.get(f),d=v?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=Ig(v,h,d);Og(p,f,te),n[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],y=0,_,x;b(p,function(S,w){var A=S.existing,T=S.newOption;if(!T)A&&(A.mergeOption({},this),A.optionUpdated({},!1));else{var M=f==="series",C=te.getClass(f,S.keyInfo.subType,!M);if(!C){{var D=S.keyInfo.subType,I=fy[D];$n[D]||($n[D]=!0,ke(I?"Series "+D+` is used but not imported.
|
||
|
import { `+I+` } from 'echarts/charts';
|
||
|
echarts.use([`+I+"]);":"Unknown series "+D))}return}if(f==="tooltip"){if(_){x||(Ce("Currently only one tooltip component is allowed."),x=!0);return}_=!0}if(A&&A.constructor===C)A.name=S.keyInfo.name,A.mergeOption(T,this),A.optionUpdated(T,!1);else{var L=V({componentIndex:w},S.keyInfo);A=new C(T,this,this,L),V(A,L),S.brandNew&&(A.__requireNewView=!0),A.init(T,this,this),A.optionUpdated(null,!0)}}A?(g.push(A.option),m.push(A),y++):(g.push(void 0),m.push(void 0))},this),n[f]=g,i.set(f,m),o.set(f,y),f==="series"&&en(this)}this._seriesIndices||en(this)},t.prototype.getOption=function(){var e=ee(this.option);return b(e,function(a,n){if(te.hasClass(n)){for(var i=xe(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Rr(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[Zi],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],b(xe(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=Du("id",i,s):o!=null?l=Du("name",o,s):l=pe(s,function(u){return!!u}),Mu(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):pe(this._componentsMap.get(n),function(u){return!!u});return l(Mu(o,e));function s(u){var c=n+"Index",f=n+"Id",h=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:n,index:u[c],id:u[f],name:u[h]}:null}function l(u){return e.filter?pe(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if($(e)){var o=a,s=e;i.each(function(f,h){for(var v=0;f&&v<f.length;v++){var d=f[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=H(e)?i.get(e):Y(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var c=l[u];c&&a.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=vt(e,null);return pe(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return pe(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return pe(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Zr(this),b(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){b(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Zr(this),b(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return b(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Zr(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Zr(this);var n=[];b(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=Z(n)},t.prototype.restoreData=function(e){en(this);var a=this._componentsMap,n=[];a.each(function(i,o){te.hasClass(o)&&n.push(o)}),te.topologicalTravel(n,te.getAllClassMainTypes(),function(i){b(a.get(i),function(o){o&&(i!=="series"||!hy(o,e))&&o.restoreData()})})},t.internalField=function(){en=function(e){var a=e._seriesIndices=[];b(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=Z(a)},Zr=function(
|
||
|
`)}).join(`
|
||
|
`);Cg(u)}return U(l,function(c,f){var h="";Y(c)||(h="A transform should not return some empty results.",Fe(h)),c.data||(h="Transform result data should be not be null or undefined",Fe(h));var v=uh(c.data);hl(v)||(h="Transform result data should be array rows or object rows.",Fe(h));var d,p=t[0];if(p&&f===0&&!c.dimensions){var g=p.startIndex;g&&(c.data=p.data.slice(0,g).concat(c.data)),d={seriesLayoutBy:Mt,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:Mt,sourceHeader:0,dimensions:c.dimensions};return Jo(c.data,d,null)})}function hl(r){return r===We||r===dt}var Ci="undefined",Qy=typeof Uint32Array===Ci?Array:Uint32Array,e0=typeof Uint16Array===Ci?Array:Uint16Array,gh=typeof Int32Array===Ci?Array:Int32Array,Wu=typeof Float64Array===Ci?Array:Float64Array,mh={float:Wu,int:gh,ordinal:Array,number:Array,time:Wu},Qi;function Kr(r){return r>65535?Qy:e0}function Sr(){return[1/0,-1/0]}function t0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Uu(r,t,e,a,n){var i=mh[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var r0=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(t,e,a){q($(t.getItem)&&$(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Qi[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[];var o=ch(n);this._dimensions=U(e,function(s){return o&&q(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new mh[e||"float"](this._rawCount),this._rawExtent[i]=Sr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Sr());for(var l=i[t],u=o;u<s;u++){var c=a[u]=e.parseAndCollect(a[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){q(!this._indices,"appendData can only be called on raw data.");var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var c=n[u];Uu(a,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var c=n[d],p=Qi.arrayRows.call(this,t[v]||f,c.property,v,d);a[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Sr()),Uu(i,c,f.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<
|
||
|
`,`
|
||
|
|
||
|
`,`
|
||
|
|
||
|
|
||
|
`];function Gr(r,t){return t.type=r,t}function es(r){return r.type==="section"}function xh(r){return es(r)?o0:s0}function Sh(r){if(es(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return b(r.blocks,function(n){var i=Sh(n);i>=t&&(t=i+ +(a&&(!i||es(n)&&!n.noHeader)))}),t}return 0}function o0(r,t,e,a){var n=t.noHeader,i=l0(Sh(t)),o=[],s=t.blocks||[];q(!s||G(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Er(u,l)){var c=new Wy(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}b(s,function(d,p){var g=t.valueFormatter,m=xh(d)(g?V(V({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);m!=null&&o.push(m)});var f=r.renderMode==="richText"?o.join(i.richText):ts(o.join(""),n?e:i.html);if(n)return f;var h=Ko(t.header,"ordinal",r.useUTC),v=_h(a,r.renderMode).nameStyle;return r.renderMode==="richText"?wh(r,h,v)+i.richText+f:ts('<div style="'+v+";"+yh+';">'+Ve(h)+"</div>"+f,e)}function s0(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(x){return x=G(x)?x:[x],U(x,function(S,w){return Ko(S,G(v)?v[w]:v,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),h=i?"":Ko(l,"ordinal",u),v=t.valueType,d=o?[]:c(t.value,t.dataIndex),p=!s||!i,g=!s&&i,m=_h(a,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(s?"":f)+(i?"":wh(r,h,y))+(o?"":f0(r,d,p,g,_)):ts((s?"":f)+(i?"":u0(h,!s,y))+(o?"":c0(d,p,g,_)),e)}}function $u(r,t,e,a,n,i){if(r){var o=xh(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function l0(r){return{html:n0[r],richText:i0[r]}}function ts(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+yh+';">'+r+e+"</div>"}function u0(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ve(r)+"</span>"}function c0(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=G(r)?r:[r],'<span style="'+i+";"+a+'">'+U(r,function(o){return Ve(o)}).join(" ")+"</span>"}function wh(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function f0(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(G(t)?t.join(" "):t,i)}function v0(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return dr(a)}function bh(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var eo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=uv()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=Jv({color:e,type:t,renderMode:a,markerId:n});return H(i)?i:(q(n),this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};G(e)?b(e,function(i){return V(a,i)}):V(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function h0(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=G(s),u=v0(t,e),c,f,h,v;if(o>1||l&&!o){var d=d0(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=c=Br(n,e,i[0]),f=p.type}else v=c=l?s[0]:s;var g=Gs(t),m=g&&t.name||"",y=n.getName(e),_=a?m:y;return Gr("section",{header:m,noHeader:a||!g,sortParam:v,blocks:[Gr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ba(_),value:c,valueType:f,dataIndex:e})].concat(h||[])})}function d0(r,t,e,a,n){var i=t.getData(),o=wa(r,function(f,h,v){var d=i.getDimensionInfo(v);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?b(a,function(f){c(Br(i,e,f),f)}):b(r,c);function c(f,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Gr("nameValue",{markerType:"subItem",markerColor:n,name:v
|
||
|
|
||
|
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=K(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),v=this._renderMode,d=e.positionDefault,p=oa([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new eo;m.marker=y.makeTooltipMarker("item",dr(m.color),v);var _=zu(u.formatTooltip(c,!1,f)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,A=w?$u(S?V({valueFormatter:S},w):w,y,v,x,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,m,T,e.offsetX,e.offsetY,e.position,e.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=K(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=ee(l),l.content=Ve(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var v=e.positionDefault,d=oa(f,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new eo;this._showOrMove(d,function(){var y=ee(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,e.offsetX,e.offsetY,e.position,a,m)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(h)if(H(h)){var g=e.ecModel.get("useUTC"),m=G(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=Ya(m.axisValue,v,g)),v=ol(v,n,!0)}else if($(h)){var _=Q(function(x,S){x===this._ticket&&(f.setContent(S,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;f.setContent(v,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||G(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!G(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),$(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),G(a))n=W(a[0],u),i=W(a[1],c);else if(Y(a)){var p=a;p.width=f[0],p.height=f[1];var g=pr(p,{width:u,height:c});n=g.x,i=g.y,h=null,v=null}else if(H(a)&&l){var m=$T(a,d,f,e.get("borderWidth"));n=m[0],i=m[1]}else{var m=UT(n,i,o,u,c,h?null:20,v?null:20);n=m[0],i=m[1]}if(h&&(n-=Uf(h)?f[0]/2:h==="right"?f[0]:0),v&&(i-=Uf(v)?f[1]/2:v==="bottom"?f[1]:0),bp(e)){var m=YT(n,i,o,u,c);n=m[0],i=m[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&b(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&b(u,function(h,v){var d=f[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&b(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&b(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=a[y],x=i[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.u
|
||
|
`)){var g=new wn;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(p)[0];if(!c.get(p)){if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},x=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,d,v,a,e,_,S,x,f,i);w.on("click",Dr(Yf,p,null,i,h)).on("mouseover",Dr(As,m.name,null,i,h)).on("mouseout",Dr(Ts,m.name,null,i,h)),n.ssr&&w.eachChild(function(A){var T=K(A);T.seriesIndex=m.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),c.set(p,!0)}else n.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var T=A.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),C=T.getItemVisual(M,"style"),D=T.getItemVisual(M,"legendIcon"),I=dg(C.fill);I&&I[3]===0&&(I[3]=.2,C=V(V({},C),{fill:pg(I,"rgba")}));var L=this._createItem(A,p,d,v,a,e,{},C,D,f,i);L.on("click",Dr(Yf,null,p,i,h)).on("mouseover",Dr(As,null,p,i,h)).on("mouseout",Dr(Ts,null,p,i,h)),n.ssr&&L.eachChild(function(k){var P=K(k);P.seriesIndex=A.seriesIndex,P.dataIndex=d,P.ssrType="legend"}),c.set(p,!0)}},this);c.get(p)||console.warn(p+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();bs(e,function(u){var c=u.type,f=new ge({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);Wa(f,{normal:h,emphasis:v},{defaultText:u.title}),zn(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),m=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=JT(c,i,l,u,v,g,h),S=new wn,w=i.getModel("textStyle");if($(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var A=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;S.add(QT({itemWidth:d,itemHeight:p,icon:c,iconRotate:A,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),D=a;H(C)&&C?D=C.replace("{name}",a??""):$(C)&&(D=C(a));var I=g?w.getTextColor():i.get("inactiveColor");S.add(new ge({style:Qe(w,{text:D,x:T,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new De({shape:S.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Ks({el:L,componentModel:o,itemName:a,itemTooltipOption:k.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!f,this.getContentGroup().add(S),zn(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ya(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ya("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?v[p]+=c[g]+d:f[p]+=h[g]+d,v[1-p]+=c[m]/2-h[m]/2,u.x=v[0],u.y=v[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+h[g],_[m]=Math.max(c[m],h[m]),_[y]=Math.min(0,h[y]+v[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(it);function JT(r,t,e,a,n,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),bs(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:os(f,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(
|
||
|
`||u==="")){var c=o.isSelected(u);a.hasOwnProperty(u)?a[u]=a[u]&&c:a[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:a}:{name:t.name,selected:a}}function tC(r){r.registerAction("legendToggleSelect","legendselectchanged",oe(sa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",oe(sa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",oe(sa,"inverseSelect")),r.registerAction("legendSelect","legendselected",oe(sa,"select")),r.registerAction("legendUnSelect","legendunselected",oe(sa,"unSelect"))}function Ip(r){r.registerComponentModel(ws),r.registerComponentView(Mp),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,eC),r.registerSubTypeDefaulter("legend",function(){return"plain"}),tC(r)}var rC=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=bi(e);r.prototype.init.call(this,e,a,n),$f(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),$f(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Hv(ws.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(ws);function $f(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Or(t,e,{type:"box",ignoreSize:!!n})}const aC=rC;var Xf=Se,Oo=["width","height"],Bo=["x","y"],nC=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Xf),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Xf)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),h=G(f)?f:[f,f];d("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new ge({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var m=p+"DataIndex",y=pi(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Q(u._pageGo,u,m,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Oo[u],f=Bo[u],h=Oo[1-u],v=Bo[1-u];o&&ya("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=ee(n);o&&(m[c]=n[c]-p[c]-d);var y=this._layoutContentAndController(e,i,m,u,c,h,v,f);if(o){if(s==="end")g[u]+=y[c]+d;else{var _=p[c]+d;g[u]-=_,y[f]-=_}y[c]+=p[c]+d,g[1-u]+=y[v]+y[h]/2-p[h]/2,y[h]=Math.max(y[h],p[h]),y[v]=Math.min(y[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;ya(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),ya("horizontal",h,e.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];a||(g[i]=c[u]);var m=[0,0],y=[-d.x,-d.y],_=ae(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?y[i]+=n[o]-d[o]:m[i]+=d[o]+_}y[1-i]+=v[s]/2-d[s]/2,c.setPosition(g),f.setPosition(m),h.setPosition(y);var S={x:0,y:0};if(S[o]=p?n[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+y[1-i]),f.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math
|