35 lines
614 KiB
JavaScript
35 lines
614 KiB
JavaScript
|
import{a as Ze,Z as ye,n as Ur,g as Ty,D as su,m as z,k as Ct,C as Zf,e as C,b as K,c as Cy,d as Dy,f as H,h as Uf,P as tl,j as te,l as Yf,o as re,p as Dt,T as Xf,q as gn,r as Iy,s as Ly,t as My,u as Py,v as Ry,w as ky,x as Ey,y as rt,z as Vy,A as Ny,B as Oy,E as zy,F as By,G as Gy,H as Fy,I as Ft,J as yn,K as Hy,M as Wy,N as dt,O as $y,Q as B,R as St,S as lu,U as Zy,_ as k,V as ze,W as U,X as kt,Y as At,$ as uu,a0 as dr,a1 as gr,a2 as ot,a3 as pe,a4 as wt,a5 as Ht,a6 as ia,a7 as Yt,a8 as bt,a9 as tt,aa as Yr,ab as Ua,ac as na,ad as Xr,ae as pr,af as vu,ag as cu,ah as ct,ai as Ae,aj as ve,ak as Kr,al as j,am as $t,an as ss,ao as xt,ap as Ni,aq as lt,ar as Uy,as as Kf,L as mn,at as Ra,au as Yy,av as xn,aw as ar,ax as hu,ay as de,az as Oi,aA as qf,aB as Xy,aC as q,aD as jf,aE as Jf,aF as vt,aG as Bt,aH as G,aI as fe,aJ as Ky,aK as qy,aL as jy,aM as zi,aN as me,aO as Qf,aP as Ar,aQ as tp,aR as Sn,aS as Qt,aT as $,aU as el,aV as Jy,aW as Ya,aX as ep,aY as zt,aZ as It,a_ as ee,a$ as Te,b0 as Xa,b1 as ft,b2 as Qy,b3 as bn,b4 as _n,b5 as tm,b6 as rp,b7 as Ee,b8 as em,b9 as xe,ba as Ot,bb as Bi,bc as rm,bd as Hn,be as am,bf as fu,bg as im,bh as yt,bi as wn,bj as ls,bk as nm,bl as us,bm as qr,bn as Kt,bo as om,bp as sm,bq as Rt,br as Ka,bs as lm,bt as um,bu as oa,bv as Gi,bw as Pt,bx as ap,by as Fi,bz as nt,bA as Et,bB as it,bC as Lt,bD as An,bE as J,bF as vm,bG as ce,bH as qa,bI as cm,bJ as Ut,bK as br,bL as ip,bM as he,bN as Tn,bO as Ve,bP as pu,bQ as je,bR as np,bS as F,bT as hm,bU as fm,bV as pm,bW as op,bX as sp,bY as Je,bZ as Tr,b_ as dm,b$ as gm,c0 as ym,c1 as mm,c2 as lp,c3 as jr,c4 as Jr,c5 as rl,c6 as xm,c7 as ja,c8 as Sa,c9 as Sm,ca as Xt,cb as al,cc as bm,cd as _m,ce as up,cf as vp,cg as Cn,ch as wm,ci as cp,cj as Ie,ck as hp,cl as vs,cm as jt,cn as Dn,co as Am,cp as fp,cq as Qe,cr as Hi,cs as du,ct as ba,cu as gu,cv as Tm,cw as Wn,cx as Mi,cy as pp,cz as Ia,cA as Wi,cB as yu,cC as Ke,cD as Cm,cE as Gr,cF as mu,cG as In,cH as Dm,cI as cs,cJ as Im,cK as dp,cL as Lm,cM as Mm,cN as il,cO as Pm,cP as xu,cQ as Rm,cR as km,cS as gp,cT as sa,cU as ka,cV as Me,cW as ue,cX as nl,cY as Wr,cZ as Em,c_ as hs,c$ as fs,d0 as Vm,d1 as $n,d2 as yp,d3 as ge,d4 as _t,d5 as Zn,d6 as Nm,d7 as _a,d8 as Om,d9 as Su,da as zm,db as Bm,dc as bu,dd as _u,de as Gm,df as Fm,dg as wu,dh as Hm,di as Ea,dj as Wm,dk as mp,dl as Ja,dm as Au,dn as $m,dp as Zm,dq as Um,dr as xp,ds as Ln,dt as Mn,du as ol,dv as Sp,dw as qt,dx as Ym,dy as Xm,dz as Tu,dA as Km,dB as qm,dC as jm,dD as Jm,dE as Qm,dF as t0,dG as e0,dH as r0,dI as yr,dJ as bp,dK as Cu,dL as _p,dM as a0,dN as i0,dO as wp,dP as n0,dQ as Ap,dR as o0,dS as s0,dT as Un,dU as Du,dV as Iu,dW as l0,dX as u0,dY as v0,dZ as c0,d_ as Tp,d$ as Cp,e0 as ua,e1 as li,e2 as h0,e3 as Dp,e4 as $r,e5 as f0,e6 as p0,e7 as d0,e8 as $i,e9 as g0,ea as Pn,eb as y0,ec as m0,ed as x0,ee as S0,ef as b0,eg as Lu,eh as Ip,ei as _0,ej as w0,ek as A0,el as T0,em as Zi,en as sl,eo as C0,ep as Yn,eq as D0,er as I0,es as L0,et as M0}from"./install.6cb28b74.js";var Xn=Math.sin,Kn=Math.cos,Lp=Math.PI,ir=Math.PI*2,P0=180/Lp,R0=function(){function a(){}return a.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},a.prototype.moveTo=function(e,t){this._add("M",e,t)},a.prototype.lineTo=function(e,t){this._add("L",e,t)},a.prototype.bezierCurveTo=function(e,t,r,i,n,o){this._add("C",e,t,r,i,n,o)},a.prototype.quadraticCurveTo=function(e,t,r,i){this._add("Q",e,t,r,i)},a.prototype.arc=function(e,t,r,i,n,o){this.ellipse(e,t,r,r,0,i,n,o)},a.prototype.ellipse=function(e,t,r,i,n,o,s,l){var u=s-o,v=!l,c=Math.abs(u),h=Ze(c-ir)||(v?u>=ir:-u>=ir),f=u>0?u%ir:u%ir+ir,p=!1;h?p=!0:Ze(c)?p=!1:p=f>=Lp==!!v;var d=e+r*Kn(o),g=t+i*Xn(o);this._start&&this._add("M",d,g);var y=Math.round(n*P0);if(h){var m=1/this._p,x=(v?1:-1)*(ir-m);this._add("A",r,i,y,1,+v,e+r*Kn(o+x),t+i*Xn(o+x)),m>.01&&this._add("A",r,i,y,0,+v,d,g)}else{var S=e+r*Kn(s),_=t+i*Xn(s);this._add("A",r,i,y,+p,+v,S,_)}},a.prototype.rect=function(e,t,r,i){this._add("M",e,t),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},a.prot
|
||
|
`:"";function r(i){var n=i.children,o=i.tag,s=i.attrs;return G0(o,s)+(i.text||"")+(n?""+t+z(n,function(l){return r(l)}).join(t)+t:"")+F0(o)}return r(a)}function H0(a,e,t){t=t||{};var r=t.newline?`
|
||
|
`:"",i=" {"+r,n=r+"}",o=z(Ct(a),function(l){return l+i+z(Ct(a[l]),function(u){return u+":"+a[l][u]+";"}).join(r)+n}).join(r),s=z(Ct(e),function(l){return"@keyframes "+l+i+z(Ct(e[l]),function(u){return u+i+z(Ct(e[l][u]),function(v){var c=e[l][u][v];return v==="d"&&(c='path("'+c+'")'),v+":"+c+";"}).join(r)+n}).join(r)+n}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function ds(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Mu(a,e,t,r){return Nt("svg","root",{width:a,height:e,xmlns:Pp,"xmlns:xlink":Rp,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+a+" "+e:!1},t)}var Pu={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},or="transform-origin";function W0(a,e,t){var r=H({},a.shape);H(r,e),a.buildPath(t,r);var i=new Mp;return i.reset(Yf(a)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function $0(a,e){var t=e.originX,r=e.originY;(t||r)&&(a[or]=t+"px "+r+"px")}var Z0={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ep(a,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=a,t}function U0(a,e,t){var r=a.shape.paths,i={},n,o;if(C(r,function(l){var u=ds(t.zrId);u.animation=!0,Rn(l,{},u,!0);var v=u.cssAnims,c=u.cssNodes,h=Ct(v),f=h.length;if(!!f){o=h[f-1];var p=v[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){e.d=!1;var s=Ep(i,t);return n.replace(o,s)}}function Ru(a){return K(a)?Pu[a]?"cubic-bezier("+Pu[a]+")":Cy(a)?a:"":""}function Rn(a,e,t,r){var i=a.animators,n=i.length,o=[];if(a instanceof Zf){var s=U0(a,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var v=i[u],c=[v.getMaxTime()/1e3+"s"],h=Ru(v.getClip().easing),f=v.getDelay();h?c.push(h):c.push("linear"),f&&c.push(f/1e3+"s"),v.getLoop()&&c.push("infinite");var p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(v)}function d(m){var x=m[1],S=x.length,_={},b={},w={},A="animation-timing-function";function T(Y,ut,st){for(var ht=Y.getTracks(),Vt=Y.getMaxTime(),Gt=0;Gt<ht.length;Gt++){var mt=ht[Gt];if(mt.needsAnimate()){var Mt=mt.keyframes,Tt=mt.propName;if(st&&(Tt=st(Tt)),Tt)for(var Zt=0;Zt<Mt.length;Zt++){var Ce=Mt[Zt],Jt=Math.round(Ce.time/Vt*100)+"%",si=Ru(Ce.easing),Be=Ce.rawValue;(K(Be)||re(Be))&&(ut[Jt]=ut[Jt]||{},ut[Jt][Tt]=Ce.rawValue,si&&(ut[Jt][A]=si))}}}}for(var D=0;D<S;D++){var I=x[D],L=I.targetName;L?L==="shape"&&T(I,b):!r&&T(I,_)}for(var M in _){var P={};Dy(P,a),H(P,_[M]);var R=Uf(P),E=_[M][A];w[M]=R?{transform:R}:{},$0(w[M],P),E&&(w[M][A]=E)}var N,V=!0;for(var M in b){w[M]=w[M]||{};var O=!N,E=b[M][A];O&&(N=new tl);var W=N.len();N.reset(),w[M].d=W0(a,b[M],N);var Z=N.len();if(!O&&W!==Z){V=!1;break}E&&(w[M][A]=E)}if(!V)for(var M in w)delete w[M].d;if(!r)for(var D=0;D<S;D++){var I=x[D],L=I.targetName;L==="style"&&T(I,w,function(ht){return Z0[ht]})}for(var X=Ct(w),Q=!0,at,D=1;D<X.length;D++){var gt=X[D-1],pt=X[D];if(w[gt][or]!==w[pt][or]){Q=!1;break}at=w[gt][or]}if(Q&&at){for(var M in w)w[M][or]&&delete w[M][or];e[or]=at}if(te(X,function(Y){return Ct(w[Y]).length>0}).length){var et=Ep(w,t);return et+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var Va=Math.round;function Vp(a){return a&&K(a.src)}function Np(a){return a&&rt(a.toDataURL)}function ul(a,e,t,r){O0(function(i,n){var o=i==="
|
||
|
`+g.message)}var i=new U;i.add(r),i.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,v=void 0,c=void 0,h=void 0;if(n!=null?(u=0,c=n):s&&(u=s.x,c=s.width),o!=null?(v=0,h=o):s&&(v=s.y,h=s.height),u==null||v==null){var f=r.getBoundingRect();u==null&&(u=f.x,c=f.width),v==null&&(v=f.y,h=f.height)}l=this._boundingRect=new zt(u,v,c,h)}if(s){var p=dd(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}i.setClipPath(new ct({shape:l.plain()}));var d=[];return C(t.named,function(g){D1.get(g.svgNodeTagLower)!=null&&(d.push(g),L1(g.el))}),{root:i,boundingRect:l,named:d}},a.prototype.useGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,r),r)},a.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,r=t.get(e);r&&(t.removeKey(e),this._freedGraphics.push(r))},a}();function L1(a){a.silent=!1,a.isGroup&&a.traverse(function(e){e.silent=!1})}function M1(a){var e=[],t=it();return C(a,function(r){if(r.namedFrom==null){var i=new dm(r.name,r.el);e.push(i),t.set(r.name,i)}}),{regions:e,regionsMap:t}}var ws=[126,25],Iv="\u5357\u6D77\u8BF8\u5C9B",sr=[[[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 nr=0;nr<sr.length;nr++)for(var Ir=0;Ir<sr[nr].length;Ir++)sr[nr][Ir][0]/=10.5,sr[nr][Ir][1]/=-10.5/.75,sr[nr][Ir][0]+=ws[0],sr[nr][Ir][1]+=ws[1];function P1(a,e){if(a==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Iv)return;e.push(new gm(Iv,z(sr,function(r){return{type:"polygon",exterior:r}}),ws))}}var R1=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function k1(a,e){a==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:R1[0]})}var E1="name",V1=function(){function a(e,t,r){this.type="geoJSON",this._parsedMap=it(),this._mapName=e,this._specialAreas=r,this._geoJSON=O1(t)}return a.prototype.load=function(e,t){t=t||E1;var r=this._parsedMap.get(t);if(!r){var i=this._parseToRegions(t);r=this._parsedMap.set(t,{regions:i,boundingRect:N1(i)})}var n=it(),o=[];return C(r.regions,function(s){var l=s.name;e&&F(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new zt(0,0,0,0),regionsMap:n}},a.prototype._parseToRegions=function(e){var t=this._mapName,r=this._geoJSON,i;try{i=r?ym(r,e):[]}catch(n){throw new Error(`Invalid geoJson format
|
||
|
`+n.message)}return P1(t,i),C(i,function(n){var o=n.name;mm(t,n),k1(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),i},a.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a}();function N1(a){for(var e,t=0;t<a.length;t++){var r=a[t].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function O1(a){return K(a)?typeof JSON<"u"&&JSON.parse?JSON.parse(a):new Function("return ("+a+");")():a}var ca=it();const Oe={registerMap:function(a,e,t){if(e.svg){var r=new I1(a,e.svg);ca.set(a,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var r=new V1(a,i,t);ca.set(a,r)}},getGeoResource:function(a){return ca.get(a)},getMapForUser:function(a){var e=ca.get(a);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(a,e,t){var r=ca.get(a);if(!r){console.error("Map "+a+" not exists. The GeoJSON of the map must be provided.");return}return r.load(e,t)}};var yl=["rect","circle","line","ellipse","polygon","polyline","path"],z1=it(yl),B1=it(yl.concat(["g"])),G1=it(yl.concat(["g"])),gd=Lt();function pi(a){var e=a.getItemStyle(),t=a.get("areaColor");return t!=null&&(e.fill=t),e}function Lv(a){var e=a.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var F1=function(){function a(e){var t=new U;this.uid=lp("ec_map_draw"),this._controller=new ii(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new U),t.add(this._svgGroup=new U)}return a.prototype.draw=function(e,t,r,i,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,v=this.group,c=l.getTransformInfo(),h=c.raw,f=c.roam,p=!u.childAt(0)||n;p?(v.x=f.x,v.y=f.y,v.scaleX=f.scaleX,v.scaleY=f.scaleY,v.dirty()):ot(v,f,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,i)},a.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=it(),r=it(),i=this._regionsGroup,n=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function v(f,p){return p&&(f=p(f)),f&&[f[0]*n.scaleX+n.x,f[1]*n.scaleY+n.y]}function c(f){for(var p=[],d=!u&&l&&l.project,g=0;g<f.length;++g){var y=v(f[g],d);y&&p.push(y)}return p}function h(f){return{shape:{points:c(f)}}}i.removeAll(),C(e.geo.regions,function(f){var p=f.name,d=t.get(p),g=r.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new U),i.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,r.set(p,{dataIdx:y,regionModel:m}));var x=[],S=[];C(f.geometries,function(w){if(w.type==="polygon"){var A=[w.exterior].concat(w.interiors||[]);u&&(A=Vv(A,u)),C(A,function(D){x.push(new ce(h(D)))})}else{var T=w.points;u&&(T=Vv(T,u,!0)),C(T,function(D){S.push(new me(h(D)))})}});var _=v(f.getCenter(),l&&l.project);function b(w,A){if(!!w.length){var T=new Zf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(T),Mv(e,T,y,m),Pv(e,T,p,m,o,y,_),A&&(Lv(T),C(T.states,Lv))}}b(x),b(S,!0)}),t.each(function(f,p){var d=r.get(p),g=d.dataIdx,y=d.regionModel;Rv(e,f,p,y,o,g),kv(e,f,p,y,o),Ev(e,f,p,y,o)},this)},a.prototype._buildSVG=function(e){var t=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=it(),n=!1;C(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,v=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,f=l.getRegionModel(s);if(z1.get(v)!=null&&c instanceof jr&&Mv(e,c,h,f),c instanceof jr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(G1.get(v)!=null&&Pv(e,c,s,f,l,h,null),Rv(e,c,s,f,l,h),kv(e,c,s,f,l),B1.
|
||
|
`))}),e.join(`
|
||
|
|
||
|
`+Gn+`
|
||
|
|
||
|
`)}function IL(a){return z(a,function(e){var t=e.getRawData(),r=[e.name],i=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)i[l]=arguments[l];r.push((s?s+aa:"")+i.join(aa))}),r.join(`
|
||
|
`)}).join(`
|
||
|
|
||
|
`+Gn+`
|
||
|
|
||
|
`)}function LL(a){var e=CL(a);return{value:te([DL(e.seriesGroupByCategoryAxis),IL(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
|
||
|
`+Gn+`
|
||
|
|
||
|
`),meta:e.meta}}function ln(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ML(a){var e=a.slice(0,a.indexOf(`
|
||
|
`));if(e.indexOf(aa)>=0)return!0}var Fs=new RegExp("["+aa+"]+","g");function PL(a){for(var e=a.split(/\n+/g),t=ln(e.shift()).split(Fs),r=[],i=z(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=ln(e[n]).split(Fs);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[n]=o[s])}return{series:i,categories:r}}function RL(a){for(var e=a.split(/\n+/g),t=ln(e.shift()),r=[],i=0;i<e.length;i++){var n=ln(e[i]);if(!!n){var o=n.split(Fs),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var v=0;v<o.length;v++)l.push(+o[v]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:t,data:r}}function kL(a,e){var t=a.split(new RegExp(`
|
||
|
*`+Gn+`
|
||
|
*`,"g")),r={series:[]};return C(t,function(i,n){if(ML(i)){var o=PL(i),s=e[n],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=RL(i);r.series.push(o)}}),r}var EL=function(a){k(e,a);function e(){return a!==null&&a.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var i=r.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=n.get("textColor");var u=document.createElement("div"),v=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var c=n.get("optionToContent"),h=n.get("contentToOption"),f=LL(t);if(rt(c)){var p=c(r.getOption());K(p)?u.innerHTML=p:bp(p)&&u.appendChild(p)}else u.appendChild(v),v.readOnly=n.get("readOnly"),v.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",v.style.color=n.get("textColor"),v.style.borderColor=n.get("textareaBorderColor"),v.style.backgroundColor=n.get("textareaColor"),v.value=f.value;var d=f.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function _(){i.removeChild(o),S._dom=null}Cu(m,"click",_),Cu(x,"click",function(){if(h==null&&c!=null||h!=null&&c==null){console.warn("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),_();return}var b;try{rt(h)?b=h(u,r.getOption()):b=kL(v.value,d)}catch(w){throw _(),new Error("Data view format error "+w)}b&&r.dispatchAction({type:"changeDataView",newOption:b}),_()}),m.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=y,m.style.cssText=y,!n.get("readOnly")&&g.appendChild(x),g.appendChild(m),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.getDefaultOption=function(t){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(le);function VL(a,e){return z(a,function(t,r){var i=e&&e[r];if(St(i)&&!B(i)){var n=St(t)&&!B(t);n||(t={value:t});var o=i.name!=null&&t.name==null;return t=j(t,i),o&&delete t.name,t}else return t})}Tn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(a,e){var t=[];C(a.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)t.push(H({type:"scatter"},r));else{var n=i.get("data");t.push({name:r.name,data:VL(r.data,n)})}}),e.mergeOption(j({series:t},a.newOption))});const NL=EL;var Xg=C,Kg=Lt();function OL(a,e){var t=ql(a);Xg(e,function(r,i){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=a.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function zL(a){var e=ql(a),t=e[e.length-1];e.length>1&&e.pop();var r={};return Xg(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){r[n]=i;break}}),r}function BL(a){Kg(a).snapshots=null}function GL(a){return ql(a).length}function ql(a){var e=Kg(a);return e.snap
|
||
|
|
||
|
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,f,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],f,null,h)})},e.prototype._showSeriesItemTooltip=function(t,r,i){var n=this._ecModel,o=tt(r),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,v=o.dataIndex,c=o.dataType,h=u.getData(c),f=this._renderMode,p=t.positionDefault,d=da([h.getItemModel(v),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(v,c),m=new Un;y.marker=m.makeTooltipMarker("item",Kr(y.color),f);var x=Du(u.formatTooltip(v,!1,c)),S=d.get("order"),_=d.get("valueFormatter"),b=x.frag,w=b?Iu(_?H({valueFormatter:_},b):b,m,f,S,n.get("useUTC"),d.get("textStyle")):x.text,A="item_"+u.name+"_"+v;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,A,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:v,dataIndex:h.getRawIndex(v),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,i){var n=tt(r),o=n.tooltipConfig,s=o.option||{};if(K(s)){var l=s;s={content:l,formatter:l}}var u=[s],v=this._ecModel.getComponent(n.componentMainType,n.componentIndex);v&&u.push(v),u.push({formatter:s.content});var c=t.positionDefault,h=da(u,this._tooltipModel,c?{position:c}:null),f=h.get("content"),p=Math.random()+"",d=new Un;this._showOrMove(h,function(){var g=nt(h.get("formatterParams")||{});this._showTooltipContent(h,f,g,p,t.offsetX,t.offsetY,t.position,r,d)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,i,n,o,s,l,u,v){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent,h=t.get("formatter");l=l||t.get("position");var f=r,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(h)if(K(h)){var g=t.ecModel.get("useUTC"),y=B(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=h,m&&(f=l0(y.axisValue,f,g)),f=u0(f,i,!0)}else if(rt(h)){var x=$(function(S,_){S===this._ticket&&(c.setContent(_,v,t,d,l),this._updatePosition(t,l,o,s,c,i,u))},this);this._ticket=n,f=h(i,n,x)}else f=h;c.setContent(f,v,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(t,r,i,n){if(i==="axis"||B(r))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!B(r))return{color:n||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,i,n,o,s,l){var u=this._api.getWidth(),v=this._api.getHeight();r=r||t.get("position");var c=o.getSize(),h=t.get("align"),f=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),rt(r)&&(r=r([i,n],s,o.el,p,{viewSize:[u,v],contentSize:c.slice()})),B(r))i=G(r[0],u),n=G(r[1],v);else if(St(r)){var d=r;d.width=c[0],d.height=c[1];var g=Bt(d,{width:u,height:v});i=g.x,n=g.y,h=null,f=null}else if(K(r)&&l){var y=xM(r,p,c,t.get("borderWidth"));i=y[0],n=y[1]}else{var y=yM(i,n,o,u,v,h?null:20,f?null:20);i=y[0],n=y[1]}if(h&&(i-=Zh(h)?c[0]/2:h==="right"?c[0]:0),f&&(n-=Zh(f)?c[1]/2:f==="bottom"?c[1]:0),qg(t)){var y=mM(i,n,o,u,v);i=y[0],n=y[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&&C(i,function(s,l){var u=s.dataByAxis||[],v=t[l]||{},c=v.dataByAxis||[];o=o&&u.length===c.length,o&&C(u,function(h,f){var p=c[f]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&C(d,function(y,m){var x=g[m];o=o&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),n&&C(h.seriesDataIndices,function(y){var m=y.seriesIndex,x=r[m],S=n[m];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){qt.node||!r.getDom()||(ka(this,"_updatePosition"),this._tooltipContent.dispose(),zs("itemTooltip",r)
|
||
|
`)){var g=new Li;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!v.get(d)){if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),_=m.getVisual("style"),b=this._createItem(y,d,p,f,r,t,x,_,S,c);b.on("click",kr(cf,d,null,n,h)).on("mouseover",kr(Xs,y.name,null,n,h)).on("mouseout",kr(Ks,y.name,null,n,h)),v.set(d,!0)}else i.eachRawSeries(function(w){if(!v.get(d)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(d))return;var T=A.indexOfName(d),D=A.getItemVisual(T,"style"),I=A.getItemVisual(T,"legendIcon"),L=pp(D.fill);L&&L[3]===0&&(L[3]=.2,D=H(H({},D),{fill:Mi(L,"rgba")}));var M=this._createItem(w,d,p,f,r,t,{},D,I,c);M.on("click",kr(cf,null,d,n,h)).on("mouseover",kr(Xs,null,d,n,h)).on("mouseout",kr(Ks,null,d,n,h)),v.set(d,!0)}},this);v.get(d)||console.warn(d+" series not exists. Legend data should be same with series name or data name.")}},this),o&&this._createSelector(o,r,n,s,l)},e.prototype._createSelector=function(t,r,i,n,o){var s=this.getSelectorGroup();Ys(t,function(u){var v=u.type,c=new lt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:v==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=r.getModel("selectorLabel"),f=r.getModel(["emphasis","selectorLabel"]);Yt(c,{normal:h,emphasis:f},{defaultText:u.title}),$r(c)})},e.prototype._createItem=function(t,r,i,n,o,s,l,u,v,c){var h=t.visualDrawType,f=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(r),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),m=n.get("icon");v=m||v||"roundRect";var x=N2(v,n,l,u,h,d),S=new Li,_=n.getModel("textStyle");if(rt(t.getLegendIcon)&&(!m||m==="inherit"))S.add(t.getLegendIcon({itemWidth:f,itemHeight:p,icon:v,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var b=m==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(O2({itemWidth:f,itemHeight:p,icon:v,iconRotate:b,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var w=s==="left"?f+5:-5,A=s,T=o.get("formatter"),D=r;K(T)&&T?D=T.replace("{name}",r!=null?r:""):rt(T)&&(D=T(r));var I=n.get("inactiveColor");S.add(new lt({style:Rt(_,{text:D,x:w,y:p/2,fill:d?_.getTextColor():I,align:A,verticalAlign:"middle"})}));var L=new ct({shape:S.getBoundingRect(),invisible:!0}),M=n.getModel("tooltip");return M.get("show")&&Ka({el:L,componentModel:o,itemName:r,itemTooltipOption:M.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(S),$r(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,r,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();yr(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var v=l.getBoundingRect(),c=[-v.x,-v.y];if(u.markRedraw(),l.markRedraw(),o){yr("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),f=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?f[d]+=v[g]+p:c[d]+=h[g]+p,f[1-d]+=v[y]/2-h[y]/2,u.x=f[0],u.y=f[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[g]=v[g]+p+h[g],x[y]=Math.max(v[y],h[y]),x[m]=Math.min(0,h[m]+f[1-d]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Et);function N2(a,e,t,r,i,n){function o(p,d){p.lineWidth==="auto"&&(p.lineWidth=d.lineWidth>0?2:0),Ys(p,function(g,y){p[y]==="inherit"&&(p[y]=d[y])})}var s=e.getModel("itemStyle"),l=s.getItemStyle(),u=a.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=r.decal,l.fill==="inherit"&&(l.fill=r[i]),l.stroke==="inherit"&&(l.stroke=r[u]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?r:t).opacity),o(l,r);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(o(c,t),l.fill==="auto"&&(l.fill=r.fill),l.stroke==="auto"&&(l.stroke=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),!n){var h=e.get("inactiveBorderWidth"),f=l[u];l.lineWidth=h==="auto"?r.lineWidth>0&&f?2:0:l.lineWidth,l.fill=e.get("inact
|
||
|
`||u==="")){var v=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&v:r[u]=v}})}),a==="allSelect"||a==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function B2(a){a.registerAction("legendToggleSelect","legendselectchanged",q(ya,"toggleSelected")),a.registerAction("legendAllSelect","legendselectall",q(ya,"allSelect")),a.registerAction("legendInverseSelect","legendinverseselect",q(ya,"inverseSelect")),a.registerAction("legendSelect","legendselected",q(ya,"select")),a.registerAction("legendUnSelect","legendunselected",q(ya,"unSelect"))}function ly(a){a.registerComponentModel(Us),a.registerComponentView(sy),a.registerProcessor(a.PRIORITY.PROCESSOR.SERIES_FILTER,z2),a.registerSubTypeDefaulter("legend",function(){return"plain"}),B2(a)}var G2=function(a){k(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,r,i){var n=bn(t);a.prototype.init.call(this,t,r,i),hf(this,t,n)},e.prototype.mergeOption=function(t,r){a.prototype.mergeOption.call(this,t,r),hf(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ar(Us.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Us);function hf(a,e,t){var r=a.getOrient(),i=[1,1];i[r.index]=0,_n(e,t,{type:"box",ignoreSize:!!i})}const F2=G2;var ff=U,Jo=["width","height"],Qo=["x","y"],H2=function(a){k(e,a);function e(){var t=a!==null&&a.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){a.prototype.init.call(this),this.group.add(this._containerGroup=new ff),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ff)},e.prototype.resetInner=function(){a.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,r,i,n,o,s,l){var u=this;a.prototype.renderInner.call(this,t,r,i,n,o,s,l);var v=this._controllerGroup,c=r.get("pageIconSize",!0),h=B(c)?c:[c,c];p("pagePrev",0);var f=r.getModel("pageTextStyle");v.add(new lt({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Ln(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:$(u._pageGo,u,y,r,n)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,v.add(m)}},e.prototype.layoutInner=function(t,r,i,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,v=Jo[u],c=Qo[u],h=Jo[1-u],f=Qo[1-u];o&&yr("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=nt(i);o&&(y[v]=i[v]-d[v]-p);var m=this._layoutContentAndController(t,n,y,u,v,h,f,c);if(o){if(s==="end")g[u]+=m[v]+p;else{var x=d[v]+p;g[u]-=x,m[c]-=x}m[v]+=d[v]+p,g[1-u]+=m[f]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[f]=Math.min(m[f],d[f]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,r,i,n,o,s,l,u){var v=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;yr(t.get("orient"),v,t.get("itemGap"),n?i.width:null,n?null:i.height),yr("horizontal",h,t.get("pageButtonItemGap",!0));var f=v.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=f[o]>i[o],g=[-f.x,-f.y];r||(g[n]=v[u]);var y=[0,0],m=[-p.x,-p.y],x=Ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[n]+=i[o]-p[o]:y[n]+=p[o]+x}m[1-n]+=f[s]/2-p[s]/2,v.setPosition(g),c.setPosition(y),h.setPosition(m);var _={x:0,y:0};if(_[o]=d?i[o]:f[o],_[s]=Math.max(f[s],p[s]),_[l]=Math.min(0,p[l]+m[1-n]),c.__rectSize=i[o],d){var b={x:0,y:0};b[o]=Math.max(i
|
||
|
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
||
|
`,"Illegal condition:",s,`.
|
||
|
`),_t(l)),{dimIdx:v.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),i=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),r.evaluate()&&i.push(t);return{data:i}}},qs="";qs=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var iR={type:"echarts:sort",transform:function(a){var e=a.upstream,t=a.config,r="",i=jt(t);i.length||(r="Empty `config` in sort transform.",_t(r));var n=[];C(i,function(v){var c=v.dimension,h=v.order,f=v.parser,p=v.incomparable;if(c==null&&(r='Sort transform config must has "dimension" specified.'+qs,_t(r)),h!=="asc"&&h!=="desc"&&(r='Sort transform config must has "order" specified.'+qs,_t(r)),p&&p!=="min"&&p!=="max"){var d="";d='incomparable must be "min" or "max" rather than "'+p+'".',_t(d)}if(h!=="asc"&&h!=="desc"){var g="";g='order must be "asc" or "desc" rather than "'+h+'".',_t(g)}var y=e.getDimensionInfo(c);y||(r=ge("Can not find dimension info via: "+c+`.
|
||
|
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
||
|
`,"Illegal config:",v,`.
|
||
|
`),_t(r));var m=f?Ip(f):null;f&&!m&&(r=ge("Invalid parser name "+f+`.
|
||
|
`,"Illegal config:",v,`.
|
||
|
`),_t(r)),n.push({dimIdx:y.index,parser:m,comparator:new A0(h,p)})});var o=e.sourceFormat;o!==yp&&o!==T0&&(r='sourceFormat "'+o+'" is not supported yet',_t(r));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(v,c){for(var h=0;h<n.length;h++){var f=n[h],p=e.retrieveValueFromItem(v,f.dimIdx),d=e.retrieveValueFromItem(c,f.dimIdx);f.parser&&(p=f.parser(p),d=f.parser(d));var g=f.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function nR(a){a.registerTransform(aR),a.registerTransform(iR)}var Se=tl.CMD;function Hr(a,e){return Math.abs(a-e)<1e-5}function js(a){var e=a.data,t=a.len(),r=[],i,n=0,o=0,s=0,l=0;function u(M,P){i&&i.length>2&&r.push(i),i=[M,P]}function v(M,P,R,E){Hr(M,R)&&Hr(P,E)||i.push(M,P,R,E,R,E)}function c(M,P,R,E,N,V){var O=Math.abs(P-M),W=Math.tan(O/4)*4/3,Z=P<M?-1:1,X=Math.cos(M),Q=Math.sin(M),at=Math.cos(P),gt=Math.sin(P),pt=X*N+R,et=Q*V+E,Y=at*N+R,ut=gt*V+E,st=N*W*Z,ht=V*W*Z;i.push(pt-st*Q,et+ht*X,Y+st*gt,ut-ht*at,Y,ut)}for(var h,f,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(n=e[g],o=e[g+1],s=n,l=o,(y===Se.L||y===Se.C||y===Se.Q)&&(i=[s,l])),y){case Se.M:n=s=e[g++],o=l=e[g++],u(s,l);break;case Se.L:h=e[g++],f=e[g++],v(n,o,h,f),n=h,o=f;break;case Se.C:i.push(e[g++],e[g++],e[g++],e[g++],n=e[g++],o=e[g++]);break;case Se.Q:h=e[g++],f=e[g++],p=e[g++],d=e[g++],i.push(n+2/3*(h-n),o+2/3*(f-o),p+2/3*(h-p),d+2/3*(f-d),p,d),n=p,o=d;break;case Se.A:var x=e[g++],S=e[g++],_=e[g++],b=e[g++],w=e[g++],A=e[g++]+w;g+=1;var T=!e[g++];h=Math.cos(w)*_+x,f=Math.sin(w)*b+S,m?(s=h,l=f,u(s,l)):v(n,o,h,f),n=Math.cos(A)*_+x,o=Math.sin(A)*b+S;for(var D=(T?-1:1)*Math.PI/2,I=w;T?I>A:I<A;I+=D){var L=T?Math.max(I+D,A):Math.min(I+D,A);c(I,L,x,S,_,b)}break;case Se.R:s=n=e[g++],l=o=e[g++],h=s+e[g++],f=l+e[g++],u(h,l),v(h,l,h,f),v(h,f,s,f),v(s,f,s,l),v(s,l,h,l);break;case Se.Z:i&&v(n,o,s,l),n=s,o=l;break}}return i&&i.length>2&&r.push(i),r}function Js(a,e,t,r,i,n,o,s,l,u){if(Hr(a,t)&&Hr(e,r)&&Hr(i,o)&&Hr(n,s)){l.push(o,s);return}var v=2/u,c=v*v,h=o-a,f=s-e,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var d=t-a,g=r-e,y=i-o,m=n-s,x=d*d+g*g,S=y*y+m*m;if(x<c&&S<c){l.push(o,s);return}var _=h*d+f*g,b=-h*y-f*m,w=x-_*_,A=S-b*b;if(w<c&&_>=0&&A<c&&b>=0){l.push(o,s);return}var T=[],D=[];Zi(a,t,i,o,.5,T),Zi(e,r,n,s,.5,D),Js(T[0],D[0],T[1],D[1],T[2],D[2],T[3],D[3],l,u),Js(T[4],D[4],T[5],D[5],T[6],D[6],T[7],D[7],l,u)}function oR(a,e){var t=js(a),r=[];e=e||1;for(var i=0;i<t.length;i++){var n=t[i],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var v=n[u++],c=n[u++],h=n[u++],f=n[u++],p=n[u++],d=n[u++];Js(s,l,v,c,h,f,p,d,o,e),s=p,l=d}r.push(o)}return r}function xy(a,e,t){var r=a[e],i=a[1-e],n=Math.abs(r/i),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var v=o*s,c=t-v;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function kf(a,e,t){for(var r=a.r0,i=a.r,n=a.startAngle,o=a.endAngle,s=Math.abs(o-n),l=s*i,u=i-r,v=l>Math.abs(u),c=xy([l,u],v?0:1,e),h=(v?s:u)/c.length,f=0;f<c.length;f++)for(var p=(v?u:s)/c[f],d=0;d<c[f];d++){var g={};v?(g.startAngle=n+h*f,g.endAngle=n+h*(f+1),g.r0=r+p*d,g.r=r+p*(d+1)):(g.startAngle=n+p*d,g.endAngle=n+p*(d+1),g.r0=r+h*f,g.r=r+h*(f+1)),g.clockwise=a.clockwise,g.cx=a.cx,g.cy=a.cy,t.push(g)}}function sR(a,e,t){for(var r=a.width,i=a.height,n=r>i,o=xy([r,i],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",v=n?"y":"x",c=a[s]/o.length,h=0;h<o.length;h++)for(var f=a[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[v]=p*f,d[s]=c,d[l]=f,d.x+=a.x,d.y+=a.y,t.push(d)}}function Ef(a,e,t,r){return a*r-t*e}function lR(a,e,t,r,i,n,o,s){var l=t-a,u=r-e,v=o-i,c=s-n,h=Ef(v,c,l,u);if(Math.abs(h)<1e-6)return null;var f=a-i,p=e-n,d=Ef(f,p,v,c)/h;return d<0||d>1?null:new fe(d*l+a,d*u+e)}function uR(a,e,t){var r=new fe;fe.sub(r,t,e),r.normalize();var i=new fe;fe.sub(i,a,e);var n=i.dot(r);return n}function Vr(a,e){var t=a[a.length-1];t&&t[0]===e[0]&&t[1]===e[1]||a.push(e)}function vR(a,e,t){for(var r=a.length,i=[],n=0;n<r;n++){var o=a[n],s=a[(n+1)%r],l=lR(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&i.push({projPt:uR(l,e,t),pt:l,idx:n})}if(i.length<2)return
|