WokerTask/public/admin/assets/echarts.ac57a99a.js

31 lines
588 KiB
JavaScript
Raw Normal View History

2023-12-27 14:06:33 +08:00
import{i as G,r as la,m as N,c as W,e as S,a as H,b as tt,d as fe,f as Ws,g as k,h as ie,j as me,k as m0,l as O,n as Z,L as Id,o as In,p as Le,P as De,q as nc,s as _0,t as ve,u as x0,T as ra,v as Ln,w as rt,x as K,Z as zt,y as J,z as S0,A as b0,B as w0,C as T0,D as Nl,E as Ri,F as Nt,G as Ld,S as Gt,R as ro,H as fr,I as At,J as oe,K as Ze,M as Pd,N as Vl,O as A0,Q,U as ae,V as C0,W as Rd,X as zl,Y as M0,_ as ge,$ as Ei,a0 as we,a1 as Pn,a2 as j,a3 as U,a4 as Xe,a5 as D0,a6 as ee,a7 as at,a8 as pe,a9 as z,aa as Hs,ab as I0,ac as bt,ad as Us,ae as L0,af as Ed,ag as P0,ah as ma,ai as ic,aj as Eo,ak as R0,al as ua,am as $s,an as E0,ao as oc,ap as kd,aq as Od,ar as ao,as as Bd,at as sc,au as ko,av as k0,aw as O0,ax as Hn,ay as lc,az as uc,aA as B0,aB as N0,aC as ir,aD as Rn,aE as V0,aF as cc,aG as or,aH as z0,aI as G0,aJ as F0,aK as un,aL as W0,aM as En,aN as H0,aO as U0,aP as Oo,aQ as xi,aR as Bo,aS as $0,aT as Nd,aU as cn,aV as fn,aW as Y0,aX as Vd,aY as fc,aZ as Z0,a_ as X0,a$ as K0,b0 as q0,b1 as j0,b2 as J0,b3 as Q0,b4 as e_}from"./zrender.d54ce080.js";import{_ as P}from"./tslib.60310f1a.js";var hc=1e-4,zd=20;function t_(r){return r.replace(/^\s+|\s+$/g,"")}function he(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 $(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 G(r)?t_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function xe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),zd),r=(+r).toFixed(t),e?r:+r}function Rt(r){return r.sort(function(t,e){return t-e}),r}function Et(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 r_(r)}function r_(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 Gd(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 a_(r,t,e){if(!r[t])return 0;var a=la(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=N(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=N(i,function(d){return Math.floor(d)}),l=la(s,function(d,p){return d+p},0),u=N(i,function(d,p){return d-s[p]});l<o;){for(var c=Number.NEGATIVE_INFINITY,f=null,v=0,h=u.length;v<h;++v)u[v]>c&&(c=u[v],f=v);++s[f],u[f]=0,++l}return s[t]/n}function n_(r,t){var e=Math.max(Et(r),Et(t)),a=r+t;return e>zd?a:xe(a,e)}function Fd(r){var t=Math.PI*2;return(r%t+t)%t}function ki(r){return r>-hc&&r<hc}var i_=/^(?:(\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 wt(r){if(r instanceof Date)return r;if(G(r)){var t=i_.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 o_(r){return Math.pow(10,Gl(r))}function Gl(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 Wd(r,t){var e=Gl(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 vc(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]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.clo
`,`
`,`
`];function Tt(r,t){return t.type=r,t}function nl(r){return r.type==="section"}function og(r){return nl(r)?FS:WS}function sg(r){if(nl(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return S(r.blocks,function(n){var i=sg(n);i>=t&&(t=i+ +(a&&(!i||nl(n)&&!n.noHeader)))}),t}return 0}function FS(r,t,e,a){var n=t.noHeader,i=HS(sg(t)),o=[],s=t.blocks||[];tt(!s||k(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var c=new AS(u[l],null);s.sort(function(d,p){return c.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}S(s,function(d,p){var g=t.valueFormatter,y=og(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var f=r.renderMode==="richText"?o.join(i.richText):il(o.join(""),n?e:i.html);if(n)return f;var v=el(t.header,"ordinal",r.useUTC),h=ig(a,r.renderMode).nameStyle;return r.renderMode==="richText"?lg(r,v,h)+i.richText+f:il('<div style="'+h+";"+ng+';">'+Ye(v)+"</div>"+f,e)}function WS(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=k(x)?x:[x],N(x,function(w,b){return el(w,k(h)?h[b]:h,u)})};if(!(i&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":el(l,"ordinal",u),h=t.valueType,d=o?[]:c(t.value),p=!s||!i,g=!s&&i,y=ig(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":f)+(i?"":lg(r,v,m))+(o?"":YS(r,d,p,g,_)):il((s?"":f)+(i?"":US(v,!s,m))+(o?"":$S(d,p,g,_)),e)}}function cf(r,t,e,a,n,i){if(!!r){var o=og(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HS(r){return{html:zS[r],richText:GS[r]}}function il(r,t){var e='<div style="clear:both"></div>',a="margin: "+t+"px 0 0";return'<div style="'+a+";"+ng+';">'+r+e+"</div>"}function US(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ye(r)+"</span>"}function $S(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=k(r)?r:[r],'<span style="'+i+";"+a+'">'+N(r,function(o){return Ye(o)}).join("&nbsp;&nbsp;")+"</span>"}function lg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function YS(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(k(t)?t.join(" "):t,i)}function ug(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function cg(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Xo=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Ud()}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=Bx({color:e,type:t,renderMode:a,markerId:n});return G(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};k(e)?S(e,function(i){return O(a,i)}):O(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function ZS(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=k(s),u=ug(t,e),c,f,v,h;if(o>1||l&&!o){var d=XS(s,t,e,i,u);c=d.inlineValues,f=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=c=da(n,e,i[0]),f=p.type}else h=c=l?s[0]:s;var g=Fl(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return Tt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[Tt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Pn(_),value:c,valueType:f})].concat(v||[])})}function XS(r,t,e,a,n){var i=t.getData(),o=la(r,function(f,v,h){var d=i.getDimensionInfo(h);return f=f||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?S(a,function(f){c(da(i,e,f),f)}):S(r,c);function c(f,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(Tt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,v
`+g.message)}var n=new Q;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,v=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,v=o):s&&(c=s.y,v=s.height),u==null||c==null){var h=a.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,v=h.height)}l=this._boundingRect=new ge(u,c,f,v)}if(s){var d=F0(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new oe({shape:l.plain()}));var p=[];return S(e.named,function(g){jA.get(g.svgNodeTagLower)!=null&&(p.push(g),QA(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function QA(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function eC(r){var t=[],e=W();return S(r,function(a){if(a.namedFrom==null){var n=new gw(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var _l=[126,25],Ih="\u5357\u6D77\u8BF8\u5C9B",br=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Sr=0;Sr<br.length;Sr++)for(var qr=0;qr<br[Sr].length;qr++)br[Sr][qr][0]/=10.5,br[Sr][qr][1]/=-10.5/.75,br[Sr][qr][0]+=_l[0],br[Sr][qr][1]+=_l[1];function tC(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Ih)return;t.push(new fy(Ih,N(br,function(a){return{type:"polygon",exterior:a}}),_l))}}var rC={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function aC(r,t){if(r==="china"){var e=rC[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var nC=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function iC(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:nC[0]})}var oC="name",sC=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=W(),this._mapName=t,this._specialAreas=a,this._geoJSON=uC(e)}return r.prototype.load=function(t,e){e=e||oC;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:lC(n)})}var i=W(),o=[];return S(a.regions,function(s){var l=s.name;t&&J(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ge(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?mw(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return tC(e,n),S(n,function(i){var o=i.name;aC(e,i),iC(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function lC(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function uC(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ha=W();const Vt={registerMap:function(r,t,e){if(t.svg){var a=new JA(r,t.svg);Ha.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new sC(r,n,e);Ha.set(r,a)}},getGeoResource:function(r){return Ha.get(r)},getMapForUser:function(r){var t=Ha.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=Ha.get(r);if(!!a)return a.load(t,e)}};var Nu=["rect","circle","line","ellipse","polygon","polyline","path"],cC=W(Nu),fC=W(Nu.concat(["g"])),hC=W(Nu.concat(["g"])),tm=ne();function hi(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Lh(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var vC=function(){function r(t){var e=new Q;this.uid=wa("ec_map_draw"),this._controller=new Qy(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Q),e.add(this._svgGroup=new Q)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),v=f.raw,h=f.roam,d=!u.childAt(0)||i;d?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):de(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=W(),a=W(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],p);y&&d.push(y)}return d}function v(h){return{shape:{points:f(h)}}}n.removeAll(),S(t.geo.regions,function(h){var d=h.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new Q),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,a.set(d,{dataIdx:y,regionModel:m}));var _=[],x=[];S(h.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=Bh(A,u)),S(A,function(D){_.push(new fr(v(D)))})}else{var C=T.points;u&&(C=Bh(C,u,!0)),S(C,function(D){x.push(new At(v(D)))})}});var w=c(h.getCenter(),l&&l.project);function b(T,A){if(!!T.length){var C=new Rd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),Ph(t,C,y,m),Rh(t,C,d,m,o,y,w),A&&(Lh(C),S(C.states,Lh))}}b(_),b(x,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;Eh(t,h,d,y,o,g),kh(t,h,d,y,o),Oh(t,h,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=W(),i=!1;S(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,v=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(cC.get(c)!=null&&f instanceof un&&Ph(t,f,v,h),f instanceof un&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(hC.get(c)!=null&&Rh(t,f,s,h,l,v,null),Eh(t,f,s,h,l,v),kh(t,f,s,h,l),fC.get(c)!=null)){var d=Oh(t,f,s,h,l);d==="self"&&(i=!0);var p=n.get(s)||n.set(s,[]);p.push(f)}},
`))}),t.join(`
`+Po+`
`)}function YI(r){return N(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+ya:"")+n.join(ya))}),a.join(`
`)}).join(`
`+Po+`
`)}function ZI(r){var t=UI(r);return{value:pe([$I(t.seriesGroupByCategoryAxis),YI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Po+`
`),meta:t.meta}}function eo(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function XI(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(ya)>=0)return!0}var Ll=new RegExp("["+ya+"]+","g");function KI(r){for(var t=r.split(/\n+/g),e=eo(t.shift()).split(Ll),a=[],n=N(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=eo(t[i]).split(Ll);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function qI(r){for(var t=r.split(/\n+/g),e=eo(t.shift()),a=[],n=0;n<t.length;n++){var i=eo(t[n]);if(!!i){var o=i.split(Ll),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function jI(r,t){var e=r.split(new RegExp(`
*`+Po+`
*`,"g")),a={series:[]};return S(e,function(n,i){if(XI(n)){var o=KI(n),s=t[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=qI(n);a.series.push(o)}}),a}var JI=function(r){P(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),v=i.get("contentToOption"),h=ZI(e);if(Z(f)){var d=f(a.getOption());G(d)?u.innerHTML=d:Vd(d)&&u.appendChild(d)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var w=this;function b(){n.removeChild(o),w._dom=null}fc(_,"click",b),fc(x,"click",function(){if(v==null&&f!=null||v!=null&&f==null){b();return}var T;try{Z(v)?T=v(u,a.getOption()):T=jI(c.value,g)}catch(A){throw b(),new Error("Data view format error "+A)}T&&a.dispatchAction({type:"changeDataView",newOption:T}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},t}(ct);function QI(r,t){return N(r,function(e,a){var n=t&&t[a];if(H(n)&&!k(n)){var i=H(e)&&!k(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=K(e,n),o&&delete e.name,e}else return e})}Mt({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];S(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(O({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:QI(a.data,i)})}}),t.mergeOption(K({series:e},r.newOption))});const eL=JI;var Jm=S,Qm=ne();function tL(r,t){var e=Qu(r);Jm(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function rL(r){var t=Qu(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return Jm(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function aL(r){Qm(r).snapshots=null}function nL(r){return Qu(r).length}function Qu(r){var t=Qm(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var iL=function(r){P(t,r);function t()
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=q(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=Ya([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new Xo;y.marker=m.makeTooltipMarker("item",Br(y.color),h);var _=nf(u.formatTooltip(c,!1,f)),x=p.get("order"),w=p.get("valueFormatter"),b=_.frag,T=b?cf(w?O({valueFormatter:w},b):b,m,h,x,i.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,T,y,A,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=q(a),o=i.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=e.positionDefault,v=Ya(u,this._tooltipModel,f?{position:f}:null),h=v.get("content"),d=Math.random()+"",p=new Xo;this._showOrMove(v,function(){var g=U(v.get("formatterParams")||{});this._showTooltipContent(v,h,g,d,e.offsetX,e.offsetY,e.position,a,p)}),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 v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(G(v)){var g=e.ecModel.get("useUTC"),y=k(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=vo(y.axisValue,h,g)),h=Rp(h,n,!0)}else if(Z(v)){var _=z(function(x,w){x===this._ticket&&(f.setContent(w,c,e,p,l),this._updatePosition(e,l,o,s,f,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;f.setContent(h,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"||k(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!k(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(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Z(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),k(a))n=$(a[0],u),i=$(a[1],c);else if(H(a)){var p=a;p.width=f[0],p.height=f[1];var g=He(p,{width:u,height:c});n=g.x,i=g.y,v=null,h=null}else if(G(a)&&l){var y=BL(a,d,f,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=kL(n,i,o,u,c,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=Xv(v)?f[0]/2:v==="right"?f[0]:0),h&&(i-=Xv(h)?f[1]/2:h==="bottom"?f[1]:0),t0(e)){var y=OL(n,i,o,u,c);n=y[0],i=y[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&&S(n,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&S(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&S(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&S(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],x=i[m];_&&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.uid})},t.prototype.dispose=function(e,a){me.node||!a.getDom()||(_n(this,"_updatePosition"),this._tooltipCont
`)){var g=new _i;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!c.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,p,d,h,a,e,_,w,x,f,i);b.on("click",Jr(ad,p,null,i,v)).on("mouseover",Jr(Ol,y.name,null,i,v)).on("mouseout",Jr(Bl,y.name,null,i,v)),c.set(p,!0)}else n.eachRawSeries(function(T){if(!c.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),D=A.getItemVisual(C,"style"),M=A.getItemVisual(C,"legendIcon"),I=Nd(D.fill);I&&I[3]===0&&(I[3]=.2,D=O(O({},D),{fill:xi(I,"rgba")}));var L=this._createItem(T,p,d,h,a,e,{},D,M,f,i);L.on("click",Jr(ad,null,p,i,v)).on("mouseover",Jr(Ol,null,p,i,v)).on("mouseout",Jr(Bl,null,p,i,v)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();kl(e,function(u){var c=u.type,f=new ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Wt(f,{normal:v,emphasis:h},{defaultText:u.title}),Ir(f)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var x=oP(c,i,l,u,h,g,v),w=new _i,b=i.getModel("textStyle");if(Z(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(sP({itemWidth:d,itemHeight:p,icon:c,iconRotate:T,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}))}var A=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=a;G(D)&&D?M=D.replace("{name}",a!=null?a:""):Z(D)&&(M=D(a));var I=i.get("inactiveColor");w.add(new ae({style:Te(b,{text:M,x:A,y:p/2,fill:g?b.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new oe({shape:w.getBoundingRect(),invisible:!0}),R=i.getModel("tooltip");return R.get("show")&&Sa({el:L,componentModel:o,itemName:a,itemTooltipOption:R.option}),w.add(L),w.eachChild(function(E){E.silent=!0}),L.silent=!f,this.getContentGroup().add(w),Ir(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Pr(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){Pr("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+d:f[p]+=v[g]+d,h[1-p]+=c[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+d+v[g],_[y]=Math.max(c[y],v[y]),_[m]=Math.min(0,v[m]+h[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}(Ae);function oP(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),kl(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}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:$i(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,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h
`||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 uP(r){r.registerAction("legendToggleSelect","legendselectchanged",ee(Za,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ee(Za,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ee(Za,"inverseSelect")),r.registerAction("legendSelect","legendselected",ee(Za,"select")),r.registerAction("legendUnSelect","legendunselected",ee(Za,"unSelect"))}function l0(r){r.registerComponentModel(El),r.registerComponentView(s0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,lP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),uP(r)}var cP=function(r){P(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=Ta(e);r.prototype.init.call(this,e,a,n),nd(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),nd(this,this.option,e)},t.type="legend.scroll",t.defaultOption=hr(El.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}(El);function nd(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,lr(t,e,{type:"box",ignoreSize:!!n})}const fP=cP;var id=Q,Es=["width","height"],ks=["x","y"],hP=function(r){P(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 id),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new id)},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),v=k(f)?f:[f,f];d("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new ae({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=On(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:z(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,c.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Es[u],f=ks[u],v=Es[1-u],h=ks[1-u];o&&Pr("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=U(n);o&&(y[c]=n[c]-p[c]-d);var m=this._layoutContentAndController(e,i,y,u,c,v,h,f);if(o){if(s==="end")g[u]+=m[c]+d;else{var _=p[c]+d;g[u]-=_,m[f]-=_}m[c]+=p[c]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Pr(e.get("orient"),c,e.get("itemGap"),i?n.width:null,i?null:n.height),Pr("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=ve(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,c.setPosition(g),f.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:h[o],w[s]=Math.max(h[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),f.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.m