You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
1.1 MiB
108 lines
1.1 MiB
6 months ago
|
!(function(){var ir=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[258],{58967:function(je,In,tt){"use strict";tt.d(In,{Z:function(){return Ght}});var Et={};tt.r(Et),tt.d(Et,{add:function(){return f6},adjoint:function(){return JD},clone:function(){return T_},copy:function(){return is},create:function(){return cn},determinant:function(){return C_},equals:function(){return v6},exactEquals:function(){return p6},frob:function(){return u6},fromQuat:function(){return q0},fromQuat2:function(){return n6},fromRotation:function(){return j_},fromRotationTranslation:function(){return D_},fromRotationTranslationScale:function(){return r6},fromRotationTranslationScaleOrigin:function(){return Nl},fromScaling:function(){return ss},fromTranslation:function(){return os},fromValues:function(){return QD},fromXRotation:function(){return R_},fromYRotation:function(){return I_},fromZRotation:function(){return X0},frustum:function(){return i6},getRotation:function(){return Uf},getScaling:function(){return cc},getTranslation:function(){return Vf},identity:function(){return as},invert:function(){return fa},lookAt:function(){return W_},mul:function(){return H_},multiply:function(){return Rr},multiplyScalar:function(){return d6},multiplyScalarAndAdd:function(){return h6},ortho:function(){return z_},orthoNO:function(){return B_},orthoZO:function(){return G_},perspective:function(){return a6},perspectiveFromFieldOfView:function(){return s6},perspectiveNO:function(){return F_},perspectiveZO:function(){return o6},rotate:function(){return t6},rotateX:function(){return L_},rotateY:function(){return N_},rotateZ:function(){return e6},scale:function(){return $f},set:function(){return U0},str:function(){return l6},sub:function(){return g6},subtract:function(){return Y_},targetTo:function(){return c6},translate:function(){return sc},transpose:function(){return k_}});var lt={};tt.r(lt),tt.d(lt,{area:function(){return N$},bottom:function(){return $a},bottomLeft:function(){return $a},bottomRight:function(){return $a},inside:function(){return $a},left:function(){return $a},outside:function(){return I$},right:function(){return $a},spider:function(){return F$},surround:function(){return z$},top:function(){return $a},topLeft:function(){return $a},topRight:function(){return $a}});var te={};tt.r(te),tt.d(te,{interpolateBlues:function(){return fU},interpolateBrBG:function(){return HV},interpolateBuGn:function(){return JV},interpolateBuPu:function(){return tU},interpolateCividis:function(){return yU},interpolateCool:function(){return wU},interpolateCubehelixDefault:function(){return xU},interpolateGnBu:function(){return eU},interpolateGreens:function(){return dU},interpolateGreys:function(){return hU},interpolateInferno:function(){return CU},interpolateMagma:function(){return kU},interpolateOrRd:function(){return nU},interpolateOranges:function(){return gU},interpolatePRGn:function(){return $V},interpolatePiYG:function(){return VV},interpolatePlasma:function(){return LU},interpolatePuBu:function(){return iU},interpolatePuBuGn:function(){return rU},interpolatePuOr:function(){return UV},interpolatePuRd:function(){return aU},interpolatePurples:function(){return pU},interpolateRainbow:function(){return SU},interpolateRdBu:function(){return XV},interpolateRdGy:function(){return qV},interpolateRdPu:function(){return oU},interpolateRdYlBu:function(){return ZV},interpolateRdYlGn:function(){return KV},interpolateReds:function(){return vU},interpolateSinebow:function(){return AU},interpolateSpectral:function(){return QV},interpolateTurbo:function(){return PU},interpolateViridis:function(){return TU},interpolateWarm:function(){return OU},interpolateYlGn:function(){return cU},interpolateYlGnBu:function(){return sU},interpolateYlOrBr:function(){return lU},interpolateYlOrRd:function(){return uU},schemeAccent:function(){return PV},schemeBlues:function(){return bM},schemeBrBG:function(){return QS},schemeBuGn:function(){return sM},schemeBuPu:function(){return cM},schemeCategory10:function(){return AV},schemeDark2:function(){return TV},schemeGnBu:f
|
||
|
display: inline-block;
|
||
|
position: relative;
|
||
|
width: 80px;
|
||
|
height: 80px;
|
||
|
}
|
||
|
.loading div {
|
||
|
position: absolute;
|
||
|
top: 33px;
|
||
|
width: 13px;
|
||
|
height: 13px;
|
||
|
border-radius: 50%;
|
||
|
background: #ccc;
|
||
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
||
|
}
|
||
|
.loading div:nth-child(1) {
|
||
|
left: 8px;
|
||
|
animation: loading1 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(2) {
|
||
|
left: 8px;
|
||
|
animation: loading2 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(3) {
|
||
|
left: 32px;
|
||
|
animation: loading2 0.6s infinite;
|
||
|
}
|
||
|
.loading div:nth-child(4) {
|
||
|
left: 56px;
|
||
|
animation: loading3 0.6s infinite;
|
||
|
}
|
||
|
@keyframes loading1 {
|
||
|
0% {
|
||
|
transform: scale(0);
|
||
|
}
|
||
|
100% {
|
||
|
transform: scale(1);
|
||
|
}
|
||
|
}
|
||
|
@keyframes loading3 {
|
||
|
0% {
|
||
|
transform: scale(1);
|
||
|
}
|
||
|
100% {
|
||
|
transform: scale(0);
|
||
|
}
|
||
|
}
|
||
|
@keyframes loading2 {
|
||
|
0% {
|
||
|
transform: translate(0, 0);
|
||
|
}
|
||
|
100% {
|
||
|
transform: translate(24px, 0);
|
||
|
}
|
||
|
}
|
||
|
`,n.classList.add("loading"),n.innerHTML="<div></div><div></div><div></div><div></div>",e.appendChild(r),e.appendChild(n)},Tr=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=bt.useRef(null);bt.useEffect(function(){!e&&i.current&&_r(i.current)},[]);var a=function(){return e||bt.createElement("div",{ref:i})};return bt.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},hr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qn=function(t){hr(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||bt.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):bt.createElement(bt.Fragment,null,this.props.children)},e}(bt.Component),pr=typeof global=="object"&&global&&global.Object===Object&&global,ei=pr,mi=typeof self=="object"&&self&&self.Object===Object&&self,Ei=ei||mi||Function("return this")(),Hn=Ei,vr=Hn.Symbol,Jn=vr,lr=Object.prototype,tn=lr.hasOwnProperty,Ai=lr.toString,Pi=Jn?Jn.toStringTag:void 0;function yl(t){var e=tn.call(t,Pi),n=t[Pi];try{t[Pi]=void 0;var r=!0}catch(a){}var i=Ai.call(t);return r&&(e?t[Pi]=n:delete t[Pi]),i}var Yo=yl,Xs=Object.prototype,Xi=Xs.toString;function ml(t){return Xi.call(t)}var bl=ml,qs="[object Null]",_l="[object Undefined]",eo=Jn?Jn.toStringTag:void 0;function Zs(t){return t==null?t===void 0?_l:qs:eo&&eo in Object(t)?Yo(t):bl(t)}var xr=Zs;function Ks(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var mn=Ks,Qs="[object AsyncFunction]",Ho="[object Function]",ee="[object GeneratorFunction]",ft="[object Proxy]";function ve(t){if(!mn(t))return!1;var e=xr(t);return e==Ho||e==ee||e==Qs||e==ft}var Wt=ve,Pe=function(t){var e=/react|\.jsx|children:\[\(|return\s+[A-Za-z0-9].createElement\((?!['"][g|circle|ellipse|image|rect|line|polyline|polygon|text|path|html|mesh]['"])([^\)])*,/i;return e.test(t)},Pn=Array.isArray,Xt=Pn;function he(){this.__data__=[],this.size=0}var Ye=he;function jn(t,e){return t===e||t!==t&&e!==e}var bn=jn;function Ce(t,e){for(var n=t.length;n--;)if(bn(t[n][0],e))return n;return-1}var ue=Ce,kr=Array.prototype,Cr=kr.splice;function aa(t){var e=this.__data__,n=ue(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Cr.call(e,n,1),--this.size,!0}var Ti=aa;function or(t){var e=this.__data__,n=ue(e,t);return n<0?void 0:e[n][1]}var ki=or;function oa(t){return ue(this.__data__,t)>-1}var Or=oa;function ni(t,e){var n=this.__data__,r=ue(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Hr=ni;function Ci(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ci.prototype.clear=Ye,Ci.prototype.delete=Ti,Ci.prototype.get=ki,Ci.prototype.has=Or,Ci.prototype.set=Hr;var sa=Ci;function $o(){this.__data__=new sa,this.size=0}var no=$o;function ro(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var ca=ro;function Vo(t){return this.__data__.get(t)}var xl=Vo;function Ol(t){return this.__data__.has(t)}var Uo=Ol,Xo=Hn["__core-js_shared__"],io=Xo,Tf=function(){var t=/[^.]+$/.exec(i
|
||
|
`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:vs.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:vs.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=dt([],D(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&M2.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!M2.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),et={},GB=function(){var t,e=new mB,n=new yB;return t={},t[st.CIRCLE]=new hB,t[st.ELLIPSE]=new pB,t[st.RECT]=e,t[st.IMAGE]=e,t[st.GROUP]=new _B,t[st.LINE]=new vB,t[st.TEXT]=new bB(et),t[st.POLYLINE]=n,t[st.POLYGON]=n,t[st.PATH]=new gB,t[st.HTML]=null,t[st.MESH]=null,t}(),WB=function(){var t,e=new A9,n=new kv;return t={},t[Tt.PERCENTAGE]=null,t[Tt.NUMBER]=new L9,t[Tt.ANGLE]=new M9,t[Tt.DEFINED_PATH]=new E9,t[Tt.PAINT]=e,t[Tt.COLOR]=e,t[Tt.FILTER]=new P9,t[Tt.LENGTH]=n,t[Tt.LENGTH_PERCENTAGE]=n,t[Tt.LENGTH_PERCENTAGE_12]=new T9,t[Tt.LENGTH_PERCENTAGE_14]=new k9,t[Tt.COORDINATE]=new kv,t[Tt.OFFSET_DISTANCE]=new N9,t[Tt.OPACITY_VALUE]=new j9,t[Tt.PATH]=new R9,t[Tt.LIST_OF_POINTS]=new I9,t[Tt.SHADOW_BLUR]=new D9,t[Tt.TEXT]=new F9,t[Tt.TEXT_TRANSFORM]=new B9,t[Tt.TRANSFORM]=new uB,t[Tt.TRANSFORM_ORIGIN]=new fB,t[Tt.Z_INDEX]=new dB,t[Tt.MARKER]=new C9,t}(),YB=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof tt.g!="undefined"?tt.g:{}};et.CameraContribution=Fx,et.AnimationTimeline=null,et.EasingFunction=null,et.offscreenCanvasCreator=new SB,et.sceneGraphSelector=new AB,et.sceneGraphService=new TB(et),et.textService=new zB(et),et.geometryUpdaterFactory=GB,et.CSSPropertySyntaxFactory=WB,et.styleValueRegistry=new S9(et),et.layoutRegistry=null,et.globalThis=YB(),et.enableCSSParsing=!1,et.enableDataset=!1,et.enableStyleSyntax=!0,et.enableAttributeDashCased=!1,et.enableSizeAttenuation=!1;var E2=0;function agt(){E2=0}var A2=new vo(re.INSERTED,null,"","","",0,"",""),P2=new vo(re.REMOVED,null,"","","",0,"",""),HB=new sn(re.DESTROY),$B=function(t){It(e,t);function e(){var n=t.call(this)||this;return n.entity=E2++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:mv.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=et.enableCSSParsing?{opacity:wn,fillOpacity:wn,strokeOpacity:wn,fill:wn,stroke:wn,transform:wn,transformOrigin:wn,visibility:wn,pointerEvents:wn,lineWidth:wn,lineCap:wn,lineJoin:wn,increasedLineWidthForHitTesting:wn,fontSize:wn,fontFamily:wn,fontStyle:wn,fontWeight:wn,fontVariant:wn,textAlign:wn,textBaseline:wn,textTransform:wn,zIndex:wn,filter:wn,shadowType:wn}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.protot
|
||
|
M ${e} ${n}
|
||
|
L ${e+r} ${n}
|
||
|
L ${e+r} ${n+i}
|
||
|
L ${e} ${n+i}
|
||
|
Z
|
||
|
`}function BJ(t,e){const[n,r,i,a]=_m(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v<h;v++){const g=n+v*p,y=r+f*u;l.push(FJ([g,y,p,u]))}d-=h,f+=1}return l}function zJ(t="pack"){return typeof t=="function"?t:BJ}function GJ(t,e,n){let{transform:r}=t.style;const{transform:i}=e.style;Dk(e,t);let a=$u;if(t.nodeName===st.GROUP){const[c,l,u,f]=_m(t),[d,h,p,v]=_m(e),g=c-d,y=l-h,m=u/p,b=f/v;r=`translate(${g}, ${y}) scale(${m}, ${b})`}else a=a.concat(DJ[t.nodeName]||[]);const o=[Object.assign({transform:r!=null?r:"none"},el(t,a,!0)),Object.assign({transform:i!=null?i:"none"},el(e,a,!0))];return e.animate(o,n)}function Dk(t,e){t.__data__=e.__data__,t.className=e.className,t.markType=e.markType,e.parentNode.replaceChild(t,e)}function WJ(t,e){const{nodeName:n}=t;if(n==="path")return t;const r=new Zr({style:Object.assign(Object.assign({},el(t,$u)),{d:e})});return Dk(r,t),r}function Fk(t,e){const n=t.indexOf(e),r=t.lastIndexOf(e);return n===r}function YJ(t){return!Fk(t,"m")||!Fk(t,"M")}function Bk(t){const e=i2(t);if(e&&!YJ(e))return e}function xm(t,e,n,r){const{nodeName:i}=e,{nodeName:a}=n,o=Bk(e),s=Bk(n);if(i===a&&i!=="path"||(o===void 0||s===void 0))return GJ(e,n,r);const u=WJ(t,o),f=[Object.assign({},el(e,$u)),Object.assign({},el(n,$u))];if(o!==s){f[0].d=o,f[1].d=s;const d=u.animate(f,r);return d.onfinish=()=>{const h=u.style.d;ig(u,n),u.style.d=h,u.style.transform="none"},u.style.transform="none",d}return null}function HJ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new Zr({style:Object.assign({d:i[o]},el(t,$u))});return xm(a,s,a,n)})}function $J(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new Zr({style:{d:i[d],fill:e.style.fill}});return xm(f,f,h,n)}),l]}const zk=t=>(e,n,r)=>{const i=zJ(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return xm(c,c,l,a)}if(o===1&&s>1){const[c]=e;return HJ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return $J(e,c,a,i)}return null};zk.props={};const Gk=(t,e)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:c}=a.getLocalBounds(),l=c[0]*2,u=c[1]*2,f=new Zr({style:{d:`M${o},${s}L${o+l},${s}L${o+l},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,bm(t,e)([f],r,i)};Gk.props={};const Wk=(t,e)=>(n,r,i)=>{const[a]=n,{min:[o,s],halfExtents:c}=a.getLocalBounds(),l=c[0]*2,u=c[1]*2,f=new Zr({style:{d:`M${o},${s}L${o+l},${s}L${o+l},${s+u}L${o},${s+u}Z`}});return a.appendChild(f),a.style.clipPath=f,Lk(t,e)([f],r,i)};Wk.props={};var VJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function UJ(t,{elements:e,datum:n,groupKey:r=f=>f,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Cn(d,r),v=Mu(d,n),[g,y]=BS(Object.assign({elements:d,valueof:v,link:i,coordinate:c},At(u.active,"link"))),[m,b,_]=GS(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},At(u.active,"background"))),x=at(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...F)=>{const R=u.active.offset(...F),[,I]=F;return zS(d[I],R,c)}})}),{setState:O,removeState:w,hasState:S}=Ua(x,v);let M;const E=F=>{const{target:R,nativeEvent:I=!0}=F;if(!h.has(R))return;M&&clearTimeout(M);const z=r(R),W=p.get(z),V=new Set(W);for(const $ of d)V.has($)?S($,"active")||O($,"active"):(O($,"inactive"),y($)),$!==R&&b($);m(R),g(W),I&&l.emit("element:highlight",{nativeEvent:I,data:{data:n(R),group:W.map(n)}})},A=()=>{M&&clearTimeout(M),M=set
|
||
|
<span class="`).concat(s.NAME,`">
|
||
|
<span class="`).concat(s.MARKER,`" style="background:{color}"></span>
|
||
|
<span class="`).concat(s.NAME_LABEL,`" title="{name}">{name}</span>
|
||
|
</span>
|
||
|
<span class="`).concat(s.VALUE,`" title="{value}">{value}</span>
|
||
|
</li>`)},style:itt(o)})||this,r.timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=On(a,["name","color","index"]),h=Q({name:c,color:u,index:f!=null?f:o},d);return Xk(rtt(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this;if(n!==void 0&&r!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=n!=null?n:i.attributes.x,i.attributes.y=r!=null?r:i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},e.prototype.hide=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=this.attributes.enterable;i&&this.isCursorEntered(n,r)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var n=this.attributes.template;this.element=Xk(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=Om(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,dt([],D(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}zG(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=D(d,2),v=p[0],g=p[1],y=D(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=D(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){var n=this.attributes.showDelay,r=n===void 0?60:n,i=Date.now();this.timestamp>0&&i-this.timestamp<r||(this.timestamp=i,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},e.prototype.autoPosition=function(n){var r=D(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=o.y,l=o.bounding,u=o.position;if(!l)return[i,a];var f=this.element,d=f.offsetWidth,h=f.offsetHeight,p=D([+s+i,+c+a],2),v=p[0],g=p[1],y={left:"right",right:"left",top:"bottom",bottom:"top"},m=l.x,b=l.y,_=l.width,x=l.height,O={left:v<m,right:v+d>m+_,top:g<b,bottom:g+h>b+x},w=[];u.split("-").forEach(function(M){O[M]?w.push(y[M]):w.push(M)});var S=w.join("-");return this.getRelativeOffsetFromCursor(S)},e.prototype.isCursorEntered=function(n,r){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.wi
|
||
|
M${x},${O}L${w},${O}L${w},${S}L${x},${S}Z
|
||
|
M${it},${nt}L${it},${yt}L${xt},${yt}L${xt},${nt}Z
|
||
|
`,m.style.x=it,m.style.y=nt,m.style.width=xt-it,m.style.height=yt-nt},N=it=>{const nt=(pe,Ge,le,ye,yn)=>pe+Ge<ye?ye-Ge:pe+le>yn?yn-le:pe,xt=it[0]-y[0],yt=it[1]-y[1],Rt=nt(xt,v[0],g[0],x,w),Yt=nt(yt,v[1],g[1],O,S),Qt=[v[0]+Rt,v[1]+Yt],Jt=[g[0]+Rt,g[1]+Yt];P(Qt,Jt)},F={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},R=it=>z(it)||I(it),I=it=>{const{id:nt}=it;return h.indexOf(nt)===-1?!1:new Set(Object.keys(F)).has(nt)},z=it=>it===m.getElementById("selection"),W=it=>{const{target:nt}=it,[xt,yt]=ty(t,it);if(!m||!R(nt)){M(xt,yt,it),_=!0;return}R(nt)&&(y=[xt,yt])},V=it=>{const{target:nt}=it,xt=ty(t,it);if(!v)return;if(!y)return P(v,xt);if(z(nt))return N(xt);const[yt,Rt]=[xt[0]-y[0],xt[1]-y[1]],{id:Yt}=nt;if(F[Yt]){const[Qt,Jt,pe,Ge]=F[Yt].vector;return P([v[0]+yt*Qt,v[1]+Rt*Jt],[g[0]+yt*pe,g[1]+Rt*Ge])}},$=it=>{if(y){y=null;const{x:Yt,y:Qt,width:Jt,height:pe}=m.style;v=[Yt,Qt],g=[Yt+Jt,Qt+pe],o(Yt,Qt,Yt+Jt,Qt+pe,it);return}g=ty(t,it);const[nt,xt,yt,Rt]=P(v,g);_=!1,i(nt,xt,yt,Rt,it)},J=it=>{const{target:nt}=it;m&&!R(nt)&&C()},ct=it=>{const{target:nt}=it;!m||!R(nt)||_?Po(t,"crosshair"):z(nt)?Po(t,"move"):I(nt)&&Po(t,F[nt.id].cursor)},pt=()=>{Po(t,"default")};return t.addEventListener("dragstart",W),t.addEventListener("drag",V),t.addEventListener("dragend",$),t.addEventListener("click",J),t.addEventListener("pointermove",ct),t.addEventListener("pointerleave",pt),{mask:m,move(it,nt,xt,yt,Rt=!0){m||M(it,nt,{}),v=[it,nt],g=[xt,yt],P([it,nt],[xt,yt],Rt)},remove(it=!0){m&&C(it)},destroy(){m&&C(!1),Po(t,"default"),t.removeEventListener("dragstart",W),t.removeEventListener("drag",V),t.removeEventListener("dragend",$),t.removeEventListener("click",J),t.removeEventListener("pointermove",ct),t.removeEventListener("pointerleave",pt)}}}function Pm(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function Ttt(t,e,n){return Pm(t,e,n).map(r=>wa(r.container))}function ktt(t,e,n){return Pm(t,e,n).map(r=>r.options)}function pC(t,e){var{elements:n,selectedHandles:r,siblings:i=V=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=V=>V,bboxOf:h=V=>{const{x:$,y:J,width:ct,height:pt}=V.style;return{x:$,y:J,width:ct,height:pt}},state:p={},emitter:v}=e,g=Hi(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),_=Mu(y,a),x=At(g,"mask"),{setState:O,removeState:w}=Ua(p,_),S=new Map,{width:M,height:E,x:A=0,y:C=0}=h(t),P=s||[0,0,M,E],T=()=>{for(const V of[...y,...b])w(V,"active","inactive")},k=(V,$,J,ct)=>{var pt;for(const nt of m)(pt=nt.brush)===null||pt===void 0||pt.remove();const it=new Set;for(const nt of y){const{min:xt,max:yt}=nt.getLocalBounds(),[Rt,Yt]=xt,[Qt,Jt]=yt;Ett([Rt,Yt,Qt,Jt],[V,$,J,ct])?(O(nt,"active"),it.add(d(nt))):O(nt,"inactive")}for(const nt of b)it.has(d(nt))?O(nt,"active"):O(nt,"inactive")},N=()=>{for(const V of y)w(V,"inactive");for(const V of S.values())V.remove();S.clear()},F=(V,$,J,ct)=>{const pt=nt=>{const xt=nt.cloneNode();return xt.__data__=nt.__data__,nt.parentNode.appendChild(xt),S.set(nt,xt),xt},it=new ys({style:{x:V+A,y:$+C,width:J-V,height:ct-$}});t.appendChild(it);for(const nt of y){const xt=S.get(nt)||pt(nt);xt.style.clipPath=it,O(nt,"inactive"),O(xt,"active")}},R=Am(t,Object.assign(Object.assign({},x),{extent:P,brushRegion:o,reverse:c,selectedHandles:r,brushended:V=>{const $=f?N:T;V&&v.emit("brush:remove",{nativeEvent:!0}),$()},brushed:(V,$,J,ct,pt)=>{const it=vh(V,$,J,ct,l,u);pt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:it}}),(f?F:k)(V,$,J,ct)},brushcreated:(V,$,J,ct,pt)=>{const it=vh(V,$,J,ct,l,u);v.emit("brush:
|
||
|
\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?qnt(g,d):w3(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===Ju&&--p,f.charCodeAt(p-1)===Qm&&--p;function _(){if(m)return Zm;if(b)return b=!1,O3;var O,w=v,S;if(f.charCodeAt(w)===Km){for(;v++<p&&f.charCodeAt(v)!==Km||f.charCodeAt(++v)===Km;);return(O=v)>=p?m=!0:(S=f.charCodeAt(v++))===Ju?b=!0:S===Qm&&(b=!0,f.charCodeAt(v)===Ju&&++v),f.slice(w+1,O-1).replace(/""/g,'"')}for(;v<p;){if((S=f.charCodeAt(O=v++))===Ju)b=!0;else if(S===Qm)b=!0,f.charCodeAt(v)===Ju&&++v;else if(S!==n)continue;return f.slice(w,O)}return m=!0,f.slice(w,p)}for(;(y=_())!==Zm;){for(var x=[];y!==O3&&y!==Zm;)x.push(y),y=_();d&&(x=d(x,g++))==null||h.push(x)}return h}function a(f,d){return f.map(function(h){return d.map(function(p){return u(h[p])}).join(t)})}function o(f,d){return d==null&&(d=S3(f)),[d.map(u).join(t)].concat(a(f,d)).join(`
|
||
|
`)}function s(f,d){return d==null&&(d=S3(f)),a(f,d).join(`
|
||
|
`)}function c(f){return f.map(l).join(`
|
||
|
`)}function l(f){return f.map(u).join(t)}function u(f){return f==null?"":f instanceof Date?Knt(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}function Jnt(t){for(var e in t){var n=t[e].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))trt&&i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;t[e]=n}return t}const trt=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var ert=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const M3=t=>{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>ert(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return Qnt(r).parse(o,i?Jnt:bs)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};M3.props={};const E3=t=>{const{value:e}=t;return()=>e};E3.props={};function nrt(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const A3=t=>{const{fields:e=[]}=t,n=nrt(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]<o[c]?-1:+(a[c]!==o[c]):a[c]>o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};A3.props={};function r1t(t){return t!=null&&!Number.isNaN(t)}const P3=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};P3.props={};function rrt(t){return t!=null&&!Number.isNaN(t)}const T3=t=>{const{callback:e=rrt}=t;return n=>n.filter(e)};T3.props={};function irt(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const k3=t=>{const{fields:e}=t;return n=>n.map(r=>irt(r,e))};k3.props={};function art(t){return Object.keys(t).length===0}const C3=t=>e=>{if(!t||art(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};C3.props={};function ort(t){return!t||Object.keys(t).length===0}const L3=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>ort(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};L3.props={};const N3=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};N3.props={};const j3=t=>{const{callback:e=bs}=t;return n=>e(n)};j3.props={};const R3=t=>{const{callback:e=bs}=t;return n=>Array.isArray(n)?n.map(e):n};R3.props={};function I3(t){return typeof t=="string"?e=>e[t]:t}const D3=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=I3(s),l=I3(o),u=tg(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};D3.props={};var srt=tt(53843),crt=tt.n(srt);function i1t(t){return t!=null&&!Number.isNaN(t)}const F3=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Cn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=crt().create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};F3.props={};const B3=()=>t=>(console.log("G2 data section:",t),t);B3.props={};var lrt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function urt(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return lrt(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield
|
||
|
M ${t} ${e-n}
|
||
|
a ${n} ${n} 0 1 0 0 ${n*2}
|
||
|
a ${n} ${n} 0 1 0 0 ${-n*2}
|
||
|
Z
|
||
|
`}function fst(t,e,n){const i=n*.618;return`
|
||
|
M ${t-i} ${e-n}
|
||
|
L ${t+i} ${e-n}
|
||
|
L ${t+i} ${e+n}
|
||
|
L ${t-i} ${e+n}
|
||
|
Z
|
||
|
`}function dst(t,e,n){return`
|
||
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e}
|
||
|
L ${t} ${e+n}
|
||
|
L ${t-n} ${e}
|
||
|
Z
|
||
|
`}function hst(t,e,n){return`
|
||
|
M ${t} ${e-n}
|
||
|
L ${t+n} ${e+n}
|
||
|
L ${t-n} ${e+n}
|
||
|
Z
|
||
|
`}function pst(t,e,n){const r=n*4/3,i=Math.max(r,n*2),a=r/2,o=t,s=a+e-i/2,c=Math.asin(a/((i-a)*.85)),l=Math.sin(c)*a,u=Math.cos(c)*a,f=o-u,d=s+l,h=t,p=s+a/Math.sin(c);return`
|
||
|
M ${f} ${d}
|
||
|
A ${a} ${a} 0 1 1 ${f+u*2} ${d}
|
||
|
Q ${h} ${p} ${t} ${e+i/2}
|
||
|
Q ${h} ${p} ${f} ${d}
|
||
|
Z
|
||
|
`}const zL={pin:pst,rect:fst,circle:ust,diamond:dst,triangle:hst};var GL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const vst=(t="circle")=>zL[t]||zL.circle,WL=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=GL(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=GL(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:_,fillOpacity:x}=m,O=Object.assign(Object.assign({fill:_},m),u),w=b.createElement("g",{}),[S,M]=n.getCenter(),E=n.getSize(),A=Math.min(...E)/2,P=(Kr(a)?a:vst(a))(S,M,A,...E);if(Object.keys(s).length){const N=b.createElement("path",{style:Object.assign({d:P,fill:"#fff"},s)});w.appendChild(N)}if(o>0){const N=b.createElement("path",{style:{d:P}});w.appendChild(N),w.style.clipPath=N,lst(S,M,1-o,v,O,w,N.getBBox().y,A*2,p,!0,b)}const T=b.createElement("path",{style:{d:P,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),k=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:P,stroke:_,strokeOpacity:x,lineWidth:f},O),h),{fill:"transparent"})});return w.appendChild(T),w.appendChild(k),w}};WL.props={};var gst=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const yst={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:WL},animate:{enter:{type:"fadeIn"}}},mst={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},YL=t=>{const{data:e={},style:n={},animate:r}=t,i=gst(t,["data","style","animate"]),a=Math.max(0,$n(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=Object.assign(Object.assign({},At(n,"text")),At(n,"content")),c=At(n,"outline"),l=At(n,"wave"),u=At(n,"background");return[at({},yst,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),at({},mst,{style:Object.assign({text:`${Yd(a*100)} %`},s),animate:r})]};YL.props={};var Qa=tt(69916);const HL=1e-10;function $L(t,e){const n=_st(t),r=n.filter(function(c){return bst(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=xst(r);for(o=0;o<r.length;++o){const u=r[o];u.angle=Math.atan2(u.x-c.x,u.y-c.y)}r.sort(function(u,f){return f.angle-u.angle});let l=r[r.length-1];for(o=0;o<r.length;++o){const u=r[o];a+=(l.x+u.x)*(u.y-l.y);const f={x:(u.x+l.x)/2,y:(u.y+l.y)/2};let d=null;for(let h=0;h<u.parentIndex.length;++h)if(l.parentIndex.indexOf(u.parentIndex[h])>-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=Of(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=X1(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;o<t.length;++o)t[o].radius<c.radius&&(c=t[o]);let l=!1;for(o=0;o<t.length;++o)if(Of(t[o],c)>Math.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-HL,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function bst(t,e){for(let n=0;n<e.length;++n)if(Of(t,e[n])>e[n].radius+HL)return!1;return!0}function _st(t){const e=[];for(let n=0;n<t.lengt
|
||
|
M`,n[0].p2.x,n[0].p2.y];for(let i=0;i<n.length;++i){const a=n[i],o=a.circle.radius,s=a.width>o;r.push(`
|
||
|
A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const qL=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Ost(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||Cst(l,p,v,i);const g=d.map(m=>u[m]);let y=Nst(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};qL.props={};function jst(){return{"data.venn":qL,"mark.boxplot":jL,"mark.gauge":DL,"mark.wordCloud":rm,"mark.liquid":YL}}function Rst(){return Object.assign(Object.assign(Object.assign(Object.assign({},Vit()),qot()),jst()),Wrt())}var Qp=function(){return Qp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Qp.apply(this,arguments)},Ist=vZ(pZ,Qp(Qp({},Rst()),JZ())),Dst="[object Boolean]";function Fst(t){return t===!0||t===!1||ii(t)&&xr(t)==Dst}var Q1=Fst,wf=function(){return wf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},wf.apply(this,arguments)},Bst=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},zst=["renderer"],ZL=["width","height","autoFit","theme","inset","insetLeft","insetRight","insetTop","insetBottom","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginTop","marginRight","marginBottom","marginLeft","depth","title","clip","children","type","data","direction"],J1="__transform__",Gst="__skipDelCustomKeys__",Ys=function(t,e){return Q1(e)?{type:t,available:e}:wf({type:t},e)},tb={xField:"encode.x",yField:"encode.y",colorField:"encode.color",angleField:"encode.y",keyField:"encode.key",sizeField:"encode.size",shapeField:"encode.shape",seriesField:"encode.series",positionField:"encode.position",textField:"encode.text",valueField:"encode.value",binField:"encode.x",srcField:"encode.src",linkColorField:"encode.linkColor",fontSizeField:"encode.fontSize",radius:"coordinate.outerRadius",innerRadius:"coordinate.innerRadius",startAngle:"coordinate.startAngle",endAngle:"coordinate.endAngle",focusX:"coordinate.focusX",focusY:"coordinate.focusY",distortionX:"coordinate.distortionX",distortionY:"coordinate.distortionY",visual:"coordinate.visual",stack:{target:"transform",value:function(t){return Ys("stackY",t)}},normalize:{target:"transform",value:function(t){return Ys("normalizeY",t)}},percent:{target:"transform",value:function(t){return Ys("normalizeY",t)}},group:{target:"transform",value:function(t){return Ys("dodgeX",t)}},sort:{target:"transform",value:function(t){return Ys("sortX",t)}},symmetry:{target:"transform",value:function(t){return Ys("symmetryY",t)}},diff:{target:"transform",value:function(t){return Ys("diffY",t)}},meta:{target:"scale",value:function(t){return t}},label:{target:"labels",value:function(t){return t}},shape:"style.shape",connectNulls:{target:"style",value:function(t){return Q1(t)?{connect:t}:t}}},eb=["xField","yField","seriesField","colorField","keyField","positionField","meta","tooltip","animate","stack","normalize","percent","group","sort","symmetry","diff"],Jp=[{key:"annotations",extend_keys:[]},{key:"line",type:"line",extend_keys:eb},{key:"point",type:"point",extend_keys:eb},{key:"area",type:"area",extend_keys:eb}],Wst=[{key:"transform",callback:function(t,e,n){var r;t[e]=t[e]||[];var i=n.available,a=i===void 0?!0:i,o=Bst(n,["available"]);if(a)t[e].push(wf((r={},r[J1]=!0,r),o));else{var s=t[e].indexOf(function(c){return c.type===n.type});s!==-1&&t[e].splice(s,1)}}},{key:"labels",callback:function(t,e,n){var r;if(!n||Xt(n)){t[e]=n||[];return}n.text||(n.text=t.yField
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pt=!0,K=!1,Nt;return{s:function(){zt=zt.call(te)},n:function(){var kt=zt.next();return Pt=kt.done,kt},e:function(kt){K=!0,Nt=kt},f:function(){try{!Pt&&zt.return!=null&&zt.return()}finally{if(K)throw Nt}}}}je.exports=lt,je.exports.__esModule=!0,je.exports.default=je.exports}}]);
|
||
|
}());
|