@patternslib/pat-family-tree
Version:
A pattern for family-tree
1 lines • 392 kB
JavaScript
"use strict";(self.webpackChunk_patternslib_pat_family_tree=self.webpackChunk_patternslib_pat_family_tree||[]).push([[240],{240:function(t,n,e){e.r(n),e.d(n,{default:function(){return cA}});var r={};e.r(r),e.d(r,{Adder:function(){return M},Delaunay:function(){return pu},FormatSpecifier:function(){return Rs},InternMap:function(){return S},InternSet:function(){return A},Voronoi:function(){return cu},active:function(){return ji},arc:function(){return Gw},area:function(){return nM},areaRadial:function(){return lM},ascending:function(){return o},autoType:function(){return Xu},axisBottom:function(){return rn},axisLeft:function(){return on},axisRight:function(){return en},axisTop:function(){return nn},bin:function(){return nt},bisect:function(){return h},bisectCenter:function(){return f},bisectLeft:function(){return l},bisectRight:function(){return s},bisector:function(){return a},blob:function(){return Fc},brush:function(){return bo},brushSelection:function(){return yo},brushX:function(){return mo},brushY:function(){return vo},buffer:function(){return Oc},chord:function(){return $o},chordDirected:function(){return Ro},chordTranspose:function(){return Io},cluster:function(){return Gp},color:function(){return Ge},contourDensity:function(){return Va},contours:function(){return Ha},count:function(){return d},create:function(){return ww},creator:function(){return le},cross:function(){return y},csv:function(){return jc},csvFormat:function(){return Pu},csvFormatBody:function(){return zu},csvFormatRow:function(){return Lu},csvFormatRows:function(){return Fu},csvFormatValue:function(){return Ou},csvParse:function(){return Ru},csvParseRows:function(){return Du},cubehelix:function(){return Na},cumsum:function(){return m},curveBasis:function(){return BM},curveBasisClosed:function(){return YM},curveBasisOpen:function(){return GM},curveBumpX:function(){return ZM},curveBumpY:function(){return WM},curveBundle:function(){return JM},curveCardinal:function(){return nk},curveCardinalClosed:function(){return rk},curveCardinalOpen:function(){return ok},curveCatmullRom:function(){return ck},curveCatmullRomClosed:function(){return lk},curveCatmullRomOpen:function(){return hk},curveLinear:function(){return Kw},curveLinearClosed:function(){return pk},curveMonotoneX:function(){return wk},curveMonotoneY:function(){return Mk},curveNatural:function(){return Sk},curveStep:function(){return Ek},curveStepAfter:function(){return Nk},curveStepBefore:function(){return Tk},descending:function(){return v},deviation:function(){return x},difference:function(){return Pt},disjoint:function(){return zt},dispatch:function(){return fn},drag:function(){return xu},dragDisable:function(){return Ae},dragEnable:function(){return Ee},dsv:function(){return Bc},dsvFormat:function(){return $u},easeBack:function(){return $c},easeBackIn:function(){return Tc},easeBackInOut:function(){return $c},easeBackOut:function(){return Nc},easeBounce:function(){return Sc},easeBounceIn:function(){return Cc},easeBounceInOut:function(){return Ac},easeBounceOut:function(){return Sc},easeCircle:function(){return pc},easeCircleIn:function(){return hc},easeCircleInOut:function(){return pc},easeCircleOut:function(){return dc},easeCubic:function(){return Hi},easeCubicIn:function(){return Li},easeCubicInOut:function(){return Hi},easeCubicOut:function(){return Oi},easeElastic:function(){return Dc},easeElasticIn:function(){return Rc},easeElasticInOut:function(){return Pc},easeElasticOut:function(){return Dc},easeExp:function(){return fc},easeExpIn:function(){return sc},easeExpInOut:function(){return fc},easeExpOut:function(){return lc},easeLinear:function(){return Wu},easePoly:function(){return ec},easePolyIn:function(){return tc},easePolyInOut:function(){return ec},easePolyOut:function(){return nc},easeQuad:function(){return Qu},easeQuadIn:function(){return Ku},easeQuadInOut:function(){return Qu},easeQuadOut:function(){return Ju},easeSin:function(){return uc},easeSinIn:function(){return oc},easeSinInOut:function(){return uc},easeSinOut:function(){return ac},every:function(){return Tt},extent:function(){return w},fcumsum:function(){return C},filter:function(){return $t},forceCenter:function(){return Qc},forceCollide:function(){return hs},forceLink:function(){return _s},forceManyBody:function(){return ks},forceRadial:function(){return Cs},forceSimulation:function(){return Ms},forceX:function(){return Ss},forceY:function(){return As},format:function(){return Ls},formatDefaultLocale:function(){return Bs},formatLocale:function(){return Us},formatPrefix:function(){return Os},formatSpecifier:function(){return Is},fsum:function(){return k},geoAlbers:function(){return cp},geoAlbersUsa:function(){return sp},geoArea:function(){return Gl},geoAzimuthalEqualArea:function(){return dp},geoAzimuthalEqualAreaRaw:function(){return hp},geoAzimuthalEquidistant:function(){return _p},geoAzimuthalEquidistantRaw:function(){return pp},geoBounds:function(){return Tf},geoCentroid:function(){return qf},geoCircle:function(){return Jf},geoClipAntimeridian:function(){return sh},geoClipCircle:function(){return lh},geoClipExtent:function(){return mh},geoClipRectangle:function(){return yh},geoConicConformal:function(){return xp},geoConicConformalRaw:function(){return bp},geoConicEqualArea:function(){return up},geoConicEqualAreaRaw:function(){return ap},geoConicEquidistant:function(){return Cp},geoConicEquidistantRaw:function(){return kp},geoContains:function(){return Ph},geoDistance:function(){return Sh},geoEqualEarth:function(){return Ip},geoEqualEarthRaw:function(){return $p},geoEquirectangular:function(){return Mp},geoEquirectangularRaw:function(){return wp},geoGnomonic:function(){return Dp},geoGnomonicRaw:function(){return Rp},geoGraticule:function(){return Lh},geoGraticule10:function(){return Oh},geoIdentity:function(){return Pp},geoInterpolate:function(){return Hh},geoLength:function(){return Mh},geoMercator:function(){return yp},geoMercatorRaw:function(){return gp},geoNaturalEarth1:function(){return Fp},geoNaturalEarth1Raw:function(){return zp},geoOrthographic:function(){return Op},geoOrthographicRaw:function(){return Lp},geoPath:function(){return Bd},geoProjection:function(){return rp},geoProjectionMutator:function(){return ip},geoRotation:function(){return Zf},geoStereographic:function(){return qp},geoStereographicRaw:function(){return Hp},geoStream:function(){return Ml},geoTransform:function(){return jd},geoTransverseMercator:function(){return Bp},geoTransverseMercatorRaw:function(){return Up},gray:function(){return la},greatest:function(){return bt},greatestIndex:function(){return xt},group:function(){return R},groupSort:function(){return B},groups:function(){return D},hcl:function(){return va},hierarchy:function(){return Zp},histogram:function(){return nt},hsl:function(){return ir},html:function(){return Kc},image:function(){return Vc},index:function(){return F},indexes:function(){return L},interpolate:function(){return Tr},interpolateArray:function(){return xr},interpolateBasis:function(){return cr},interpolateBasisClosed:function(){return sr},interpolateBlues:function(){return Zx},interpolateBrBG:function(){return ux},interpolateBuGn:function(){return Cx},interpolateBuPu:function(){return Ax},interpolateCividis:function(){return aw},interpolateCool:function(){return sw},interpolateCubehelix:function(){return og},interpolateCubehelixDefault:function(){return uw},interpolateCubehelixLong:function(){return ag},interpolateDate:function(){return Mr},interpolateDiscrete:function(){return V_},interpolateGnBu:function(){return Tx},interpolateGreens:function(){return Kx},interpolateGreys:function(){return Qx},interpolateHcl:function(){return eg},interpolateHclLong:function(){return rg},interpolateHsl:function(){return J_},interpolateHslLong:function(){return Q_},interpolateHue:function(){return G_},interpolateInferno:function(){return bw},interpolateLab:function(){return tg},interpolateMagma:function(){return vw},interpolateNumber:function(){return kr},interpolateNumberArray:function(){return vr},interpolateObject:function(){return Cr},interpolateOrRd:function(){return $x},interpolateOranges:function(){return ow},interpolatePRGn:function(){return sx},interpolatePiYG:function(){return fx},interpolatePlasma:function(){return xw},interpolatePuBu:function(){return Px},interpolatePuBuGn:function(){return Rx},interpolatePuOr:function(){return dx},interpolatePuRd:function(){return Fx},interpolatePurples:function(){return nw},interpolateRainbow:function(){return fw},interpolateRdBu:function(){return _x},interpolateRdGy:function(){return yx},interpolateRdPu:function(){return Ox},interpolateRdYlBu:function(){return vx},interpolateRdYlGn:function(){return xx},interpolateReds:function(){return rw},interpolateRgb:function(){return _r},interpolateRgbBasis:function(){return yr},interpolateRgbBasisClosed:function(){return mr},interpolateRound:function(){return X_},interpolateSinebow:function(){return _w},interpolateSpectral:function(){return Mx},interpolateString:function(){return Er},interpolateTransformCss:function(){return di},interpolateTransformSvg:function(){return pi},interpolateTurbo:function(){return gw},interpolateViridis:function(){return mw},interpolateWarm:function(){return cw},interpolateYlGn:function(){return Bx},interpolateYlGnBu:function(){return qx},interpolateYlOrBr:function(){return Yx},interpolateYlOrRd:function(){return Gx},interpolateZoom:function(){return W_},interrupt:function(){return ui},intersection:function(){return Lt},interval:function(){return Jk},isoFormat:function(){return Zk},isoParse:function(){return Kk},json:function(){return Xc},lab:function(){return fa},lch:function(){return ma},least:function(){return mt},leastIndex:function(){return vt},line:function(){return tM},lineRadial:function(){return sM},linkHorizontal:function(){return mM},linkRadial:function(){return bM},linkVertical:function(){return vM},local:function(){return kw},map:function(){return It},matcher:function(){return yn},max:function(){return et},maxIndex:function(){return lt},mean:function(){return ft},median:function(){return ht},merge:function(){return dt},min:function(){return rt},minIndex:function(){return pt},namespace:function(){return $n},namespaces:function(){return Nn},nice:function(){return Q},now:function(){return Ur},pack:function(){return v_},packEnclose:function(){return n_},packSiblings:function(){return p_},pairs:function(){return _t},partition:function(){return C_},path:function(){return qo},permute:function(){return q},pie:function(){return iM},piecewise:function(){return ug},pointRadial:function(){return fM},pointer:function(){return $r},pointers:function(){return Sw},polygonArea:function(){return sg},polygonCentroid:function(){return lg},polygonContains:function(){return _g},polygonHull:function(){return pg},polygonLength:function(){return gg},precisionFixed:function(){return js},precisionPrefix:function(){return Ys},precisionRound:function(){return Vs},quadtree:function(){return is},quantile:function(){return at},quantileSorted:function(){return ut},quantize:function(){return cg},quickselect:function(){return it},radialArea:function(){return lM},radialLine:function(){return sM},randomBates:function(){return Mg},randomBernoulli:function(){return Sg},randomBeta:function(){return Tg},randomBinomial:function(){return Ng},randomCauchy:function(){return Ig},randomExponential:function(){return kg},randomGamma:function(){return Eg},randomGeometric:function(){return Ag},randomInt:function(){return vg},randomIrwinHall:function(){return wg},randomLcg:function(){return Lg},randomLogNormal:function(){return xg},randomLogistic:function(){return Rg},randomNormal:function(){return bg},randomPareto:function(){return Cg},randomPoisson:function(){return Dg},randomUniform:function(){return mg},randomWeibull:function(){return $g},range:function(){return yt},reduce:function(){return Rt},reverse:function(){return Dt},rgb:function(){return Ke},ribbon:function(){return Jo},ribbonArrow:function(){return Qo},rollup:function(){return P},rollups:function(){return z},scaleBand:function(){return Bg},scaleDiverging:function(){return Bb},scaleDivergingLog:function(){return jb},scaleDivergingPow:function(){return Vb},scaleDivergingSqrt:function(){return Gb},scaleDivergingSymlog:function(){return Yb},scaleIdentity:function(){return iy},scaleImplicit:function(){return qg},scaleLinear:function(){return ry},scaleLog:function(){return dy},scaleOrdinal:function(){return Ug},scalePoint:function(){return Yg},scalePow:function(){return wy},scaleQuantile:function(){return Sy},scaleQuantize:function(){return Ay},scaleRadial:function(){return Cy},scaleSequential:function(){return zb},scaleSequentialLog:function(){return Fb},scaleSequentialPow:function(){return Ob},scaleSequentialQuantile:function(){return qb},scaleSequentialSqrt:function(){return Hb},scaleSequentialSymlog:function(){return Lb},scaleSqrt:function(){return My},scaleSymlog:function(){return yy},scaleThreshold:function(){return Ey},scaleTime:function(){return Ib},scaleUtc:function(){return Rb},scan:function(){return wt},schemeAccent:function(){return Wb},schemeBlues:function(){return Xx},schemeBrBG:function(){return ax},schemeBuGn:function(){return kx},schemeBuPu:function(){return Sx},schemeCategory10:function(){return Zb},schemeDark2:function(){return Kb},schemeGnBu:function(){return Ex},schemeGreens:function(){return Wx},schemeGreys:function(){return Jx},schemeOrRd:function(){return Nx},schemeOranges:function(){return iw},schemePRGn:function(){return cx},schemePaired:function(){return Jb},schemePastel1:function(){return Qb},schemePastel2:function(){return tx},schemePiYG:function(){return lx},schemePuBu:function(){return Dx},schemePuBuGn:function(){return Ix},schemePuOr:function(){return hx},schemePuRd:function(){return zx},schemePurples:function(){return tw},schemeRdBu:function(){return px},schemeRdGy:function(){return gx},schemeRdPu:function(){return Lx},schemeRdYlBu:function(){return mx},schemeRdYlGn:function(){return bx},schemeReds:function(){return ew},schemeSet1:function(){return nx},schemeSet2:function(){return ex},schemeSet3:function(){return rx},schemeSpectral:function(){return wx},schemeTableau10:function(){return ix},schemeYlGn:function(){return Ux},schemeYlGnBu:function(){return Hx},schemeYlOrBr:function(){return jx},schemeYlOrRd:function(){return Vx},select:function(){return ke},selectAll:function(){return Aw},selection:function(){return Me},selector:function(){return dn},selectorAll:function(){return gn},shuffle:function(){return Mt},shuffler:function(){return kt},some:function(){return Nt},sort:function(){return U},stack:function(){return Pk},stackOffsetDiverging:function(){return Fk},stackOffsetExpand:function(){return zk},stackOffsetNone:function(){return $k},stackOffsetSilhouette:function(){return Lk},stackOffsetWiggle:function(){return Ok},stackOrderAppearance:function(){return Hk},stackOrderAscending:function(){return Uk},stackOrderDescending:function(){return jk},stackOrderInsideOut:function(){return Yk},stackOrderNone:function(){return Ik},stackOrderReverse:function(){return Vk},stratify:function(){return N_},style:function(){return Un},subset:function(){return Ht},sum:function(){return Ct},superset:function(){return Ot},svg:function(){return Jc},symbol:function(){return OM},symbolCircle:function(){return xM},symbolCross:function(){return wM},symbolDiamond:function(){return CM},symbolSquare:function(){return NM},symbolStar:function(){return TM},symbolTriangle:function(){return IM},symbolWye:function(){return FM},symbols:function(){return LM},text:function(){return qc},thresholdFreedmanDiaconis:function(){return ct},thresholdScott:function(){return st},thresholdSturges:function(){return tt},tickFormat:function(){return ny},tickIncrement:function(){return K},tickStep:function(){return J},ticks:function(){return W},timeDay:function(){return Jy},timeDays:function(){return Qy},timeFormat:function(){return uv},timeFormatDefaultLocale:function(){return Eb},timeFormatLocale:function(){return ov},timeFriday:function(){return am},timeFridays:function(){return dm},timeHour:function(){return Zy},timeHours:function(){return Wy},timeInterval:function(){return Ly},timeMillisecond:function(){return Hy},timeMilliseconds:function(){return qy},timeMinute:function(){return Vy},timeMinutes:function(){return Gy},timeMonday:function(){return em},timeMondays:function(){return sm},timeMonth:function(){return gm},timeMonths:function(){return ym},timeParse:function(){return cv},timeSaturday:function(){return um},timeSaturdays:function(){return pm},timeSecond:function(){return By},timeSeconds:function(){return jy},timeSunday:function(){return nm},timeSundays:function(){return cm},timeThursday:function(){return om},timeThursdays:function(){return hm},timeTickInterval:function(){return nv},timeTicks:function(){return tv},timeTuesday:function(){return rm},timeTuesdays:function(){return lm},timeWednesday:function(){return im},timeWednesdays:function(){return fm},timeWeek:function(){return nm},timeWeeks:function(){return cm},timeYear:function(){return vm},timeYears:function(){return bm},timeout:function(){return Wr},timer:function(){return Yr},timerFlush:function(){return Vr},transition:function(){return Pi},transpose:function(){return St},tree:function(){return F_},treemap:function(){return U_},treemapBinary:function(){return B_},treemapDice:function(){return k_},treemapResquarify:function(){return Y_},treemapSlice:function(){return L_},treemapSliceDice:function(){return j_},treemapSquarify:function(){return q_},tsv:function(){return Yc},tsvFormat:function(){return Bu},tsvFormatBody:function(){return ju},tsvFormatRow:function(){return Vu},tsvFormatRows:function(){return Yu},tsvFormatValue:function(){return Gu},tsvParse:function(){return qu},tsvParseRows:function(){return Uu},union:function(){return qt},utcDay:function(){return Em},utcDays:function(){return Tm},utcFormat:function(){return sv},utcFriday:function(){return zm},utcFridays:function(){return Bm},utcHour:function(){return Cm},utcHours:function(){return Sm},utcMillisecond:function(){return Hy},utcMilliseconds:function(){return qy},utcMinute:function(){return wm},utcMinutes:function(){return Mm},utcMonday:function(){return Im},utcMondays:function(){return Om},utcMonth:function(){return Vm},utcMonths:function(){return Gm},utcParse:function(){return lv},utcSaturday:function(){return Fm},utcSaturdays:function(){return jm},utcSecond:function(){return By},utcSeconds:function(){return jy},utcSunday:function(){return $m},utcSundays:function(){return Lm},utcThursday:function(){return Pm},utcThursdays:function(){return Um},utcTickInterval:function(){return Qm},utcTicks:function(){return Jm},utcTuesday:function(){return Rm},utcTuesdays:function(){return Hm},utcWednesday:function(){return Dm},utcWednesdays:function(){return qm},utcWeek:function(){return $m},utcWeeks:function(){return Lm},utcYear:function(){return Zm},utcYears:function(){return Wm},variance:function(){return b},version:function(){return i},window:function(){return Ln},xml:function(){return Wc},zip:function(){return Et},zoom:function(){return hC},zoomIdentity:function(){return eC},zoomTransform:function(){return rC}});var i="6.7.0";function o(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function a(t){let n=t,e=t;function r(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>o(t(n),e)}(t)),{left:r,center:function(t,e,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,e,i,o-1);return a>i&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}function u(t){return null===t?NaN:+t}const c=a(o),s=c.right,l=c.left,f=a(u).center;var h=s;function d(t,n){let e=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function p(t){return 0|t.length}function _(t){return!(t>0)}function g(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function y(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),e=(t=t.map(g)).map(p),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(_))return o;for(;;){o.push(i.map(((n,e)=>t[e][n])));let a=r;for(;++i[a]===e[a];){if(0===a)return n?o.map(n):o;i[a--]=0}}}function m(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?t=>e+=+t||0:i=>e+=+n(i,r++,t)||0)}function v(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function b(t,n){let e,r=0,i=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(e=n-i,i+=e/++r,o+=e*(n-i));else{let a=-1;for(let u of t)null!=(u=n(u,++a,t))&&(u=+u)>=u&&(e=u-i,i+=e/++r,o+=e*(u-i))}if(r>1)return o/(r-1)}function x(t,n){const e=b(t,n);return e?Math.sqrt(e):e}function w(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}class M{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let e=0;for(let r=0;r<this._n&&r<32;r++){const i=n[r],o=t+i,a=Math.abs(t)<Math.abs(i)?t-(o-i):i-(o-t);a&&(n[e++]=a),t=o}return n[e]=t,this._n=e+1,this}valueOf(){const t=this._partials;let n,e,r,i=this._n,o=0;if(i>0){for(o=t[--i];i>0&&(n=o,e=t[--i],o=n+e,r=e-(o-n),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(e=2*r,n=o+e,e==n-o&&(o=n))}return o}}function k(t,n){const e=new M;if(void 0===n)for(let n of t)(n=+n)&&e.add(n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function C(t,n){const e=new M;let r=-1;return Float64Array.from(t,void 0===n?t=>e.add(+t||0):i=>e.add(+n(i,++r,t)||0))}class S extends Map{constructor(t,n=$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(E(this,t))}has(t){return super.has(E(this,t))}set(t,n){return super.set(T(this,t),n)}delete(t){return super.delete(N(this,t))}}class A extends Set{constructor(t,n=$){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(E(this,t))}add(t){return super.add(T(this,t))}delete(t){return super.delete(N(this,t))}}function E({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function T({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function N({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(e),t.delete(r)),e}function $(t){return null!==t&&"object"==typeof t?t.valueOf():t}function I(t){return t}function R(t,...n){return H(t,I,I,n)}function D(t,...n){return H(t,Array.from,I,n)}function P(t,n,...e){return H(t,I,n,e)}function z(t,n,...e){return H(t,Array.from,n,e)}function F(t,...n){return H(t,I,O,n)}function L(t,...n){return H(t,Array.from,O,n)}function O(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function H(t,n,e,r){return function t(i,o){if(o>=r.length)return e(i);const a=new S,u=r[o++];let c=-1;for(const t of i){const n=u(t,++c,i),e=a.get(n);e?e.push(t):a.set(n,[t])}for(const[n,e]of a)a.set(n,t(e,o));return n(a)}(t,0)}function q(t,n){return Array.from(n,(n=>t[n]))}function U(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e=o]=n;if(1===e.length||n.length>1){const r=Uint32Array.from(t,((t,n)=>n));return n.length>1?(n=n.map((n=>t.map(n))),r.sort(((t,e)=>{for(const r of n){const n=o(r[t],r[e]);if(n)return n}}))):(e=t.map(e),r.sort(((t,n)=>o(e[t],e[n])))),q(t,r)}return t.sort(e)}function B(t,n,e){return(1===n.length?U(P(t,n,e),(([t,n],[e,r])=>o(n,r)||o(t,e))):U(R(t,e),(([t,e],[r,i])=>n(e,i)||o(t,r)))).map((([t])=>t))}var j=Array.prototype,Y=j.slice;j.map;function V(t){return function(){return t}}var G=Math.sqrt(50),X=Math.sqrt(10),Z=Math.sqrt(2);function W(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)===(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=K(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++u<i;)o[u]=(e+u)/a}return r&&o.reverse(),o}function K(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=G?10:o>=X?5:o>=Z?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=G?10:o>=X?5:o>=Z?2:1)}function J(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=G?i*=10:o>=X?i*=5:o>=Z&&(i*=2),n<t?-i:i}function Q(t,n,e){let r;for(;;){const i=K(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function tt(t){return Math.ceil(Math.log(d(t))/Math.LN2)+1}function nt(){var t=I,n=w,e=tt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,u=new Array(a);for(i=0;i<a;++i)u[i]=t(r[i],i,r);var c=n(u),s=c[0],l=c[1],f=e(u,s,l);if(!Array.isArray(f)){const t=l,e=+f;if(n===w&&([s,l]=Q(s,l,e)),(f=W(s,l,e))[f.length-1]>=l)if(t>=l&&n===w){const t=K(s,l,e);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else f.pop()}for(var d=f.length;f[0]<=s;)f.shift(),--d;for(;f[d-1]>l;)f.pop(),--d;var p,_=new Array(d+1);for(i=0;i<=d;++i)(p=_[i]=[]).x0=i>0?f[i-1]:s,p.x1=i<d?f[i]:l;for(i=0;i<a;++i)s<=(o=u[i])&&o<=l&&_[h(f,o,0,d)].push(r[i]);return _}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:V(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:V([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?V(Y.call(t)):V(t),r):e},r}function et(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function rt(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function it(t,n,e=0,r=t.length-1,i=o){for(;r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);it(t,n,Math.max(e,Math.floor(n-a*c/o+s)),Math.min(r,Math.floor(n+(o-a)*c/o+s)),i)}const o=t[n];let a=e,u=r;for(ot(t,e,n),i(t[r],o)>0&&ot(t,e,r);a<u;){for(ot(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[e],o)?ot(t,e,u):(++u,ot(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function ot(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function at(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return rt(t);if(n>=1)return et(t);var r,i=(r-1)*n,o=Math.floor(i),a=et(it(t,o).subarray(0,o+1));return a+(rt(t.subarray(o+1))-a)*(i-o)}}function ut(t,n,e=u){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function ct(t,n,e){return Math.ceil((e-n)/(2*(at(t,.75)-at(t,.25))*Math.pow(d(t),-1/3)))}function st(t,n,e){return Math.ceil((e-n)/(3.5*x(t)*Math.pow(d(t),-1/3)))}function lt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e<n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e<o||void 0===e&&o>=o)&&(e=o,r=i);return r}function ft(t,n){let e=0,r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++e,r+=n);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function ht(t,n){return at(t,.5,n)}function dt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function pt(t,n){let e,r=-1,i=-1;if(void 0===n)for(const n of t)++i,null!=n&&(e>n||void 0===e&&n>=n)&&(e=n,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function _t(t,n=gt){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function gt(t,n){return[t,n]}function yt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function mt(t,n=o){let e,r=!1;if(1===n.length){let i;for(const a of t){const t=n(a);(r?o(t,i)<0:0===o(t,t))&&(e=a,i=t,r=!0)}}else for(const i of t)(r?n(i,e)<0:0===n(i,i))&&(e=i,r=!0);return e}function vt(t,n=o){if(1===n.length)return pt(t,n);let e,r=-1,i=-1;for(const o of t)++i,(r<0?0===n(o,o):n(o,e)<0)&&(e=o,r=i);return r}function bt(t,n=o){let e,r=!1;if(1===n.length){let i;for(const a of t){const t=n(a);(r?o(t,i)>0:0===o(t,t))&&(e=a,i=t,r=!0)}}else for(const i of t)(r?n(i,e)>0:0===n(i,i))&&(e=i,r=!0);return e}function xt(t,n=o){if(1===n.length)return lt(t,n);let e,r=-1,i=-1;for(const o of t)++i,(r<0?0===n(o,o):n(o,e)>0)&&(e=o,r=i);return r}function wt(t,n){const e=vt(t,n);return e<0?void 0:e}var Mt=kt(Math.random);function kt(t){return function(n,e=0,r=n.length){let i=r-(e=+e);for(;i;){const r=t()*i--|0,o=n[i+e];n[i+e]=n[r+e],n[r+e]=o}return n}}function Ct(t,n){let e=0;if(void 0===n)for(let n of t)(n=+n)&&(e+=n);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function St(t){if(!(i=t.length))return[];for(var n=-1,e=rt(t,At),r=new Array(e);++n<e;)for(var i,o=-1,a=r[n]=new Array(i);++o<i;)a[o]=t[o][n];return r}function At(t){return t.length}function Et(){return St(arguments)}function Tt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(!n(r,++e,t))return!1;return!0}function Nt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let e=-1;for(const r of t)if(n(r,++e,t))return!0;return!1}function $t(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const e=[];let r=-1;for(const i of t)n(i,++r,t)&&e.push(i);return e}function It(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,((e,r)=>n(e,r,t)))}function Rt(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++a}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++a,t);return e}function Dt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Pt(t,...n){t=new Set(t);for(const e of n)for(const n of e)t.delete(n);return t}function zt(t,n){const e=n[Symbol.iterator](),r=new Set;for(const n of t){if(r.has(n))return!1;let t,i;for(;({value:t,done:i}=e.next())&&!i;){if(Object.is(n,t))return!1;r.add(t)}}return!0}function Ft(t){return t instanceof Set?t:new Set(t)}function Lt(t,...n){t=new Set(t),n=n.map(Ft);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function Ot(t,n){const e=t[Symbol.iterator](),r=new Set;for(const t of n){if(r.has(t))continue;let n,i;for(;({value:n,done:i}=e.next());){if(i)return!1;if(r.add(n),Object.is(t,n))break}}return!0}function Ht(t,n){return Ot(n,t)}function qt(...t){const n=new Set;for(const e of t)for(const t of e)n.add(t);return n}var Ut=Array.prototype.slice;function Bt(t){return t}var jt=1,Yt=2,Vt=3,Gt=4,Xt=1e-6;function Zt(t){return"translate("+t+",0)"}function Wt(t){return"translate(0,"+t+")"}function Kt(t){return n=>+t(n)}function Jt(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function Qt(){return!this.__axis}function tn(t,n){var e=[],r=null,i=null,o=6,a=6,u=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,s=t===jt||t===Gt?-1:1,l=t===Gt||t===Yt?"x":"y",f=t===jt||t===Vt?Zt:Wt;function h(h){var d=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,p=null==i?n.tickFormat?n.tickFormat.apply(n,e):Bt:i,_=Math.max(o,0)+u,g=n.range(),y=+g[0]+c,m=+g[g.length-1]+c,v=(n.bandwidth?Jt:Kt)(n.copy(),c),b=h.selection?h.selection():h,x=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(d,n).order(),M=w.exit(),k=w.enter().append("g").attr("class","tick"),C=w.select("line"),S=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),C=C.merge(k.append("line").attr("stroke","currentColor").attr(l+"2",s*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(l,s*_).attr("dy",t===jt?"0em":t===Vt?"0.71em":"0.32em")),h!==b&&(x=x.transition(h),w=w.transition(h),C=C.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Xt).attr("transform",(function(t){return isFinite(t=v(t))?f(t+c):this.getAttribute("transform")})),k.attr("opacity",Xt).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:v(t))+c)}))),M.remove(),x.attr("d",t===Gt||t===Yt?a?"M"+s*a+","+y+"H"+c+"V"+m+"H"+s*a:"M"+c+","+y+"V"+m:a?"M"+y+","+s*a+"V"+c+"H"+m+"V"+s*a:"M"+y+","+c+"H"+m),w.attr("opacity",1).attr("transform",(function(t){return f(v(t)+c)})),C.attr(l+"2",s*o),S.attr(l,s*_).text(p),b.filter(Qt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===Gt?"end":"middle"),b.each((function(){this.__axis=v}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return e=Ut.call(arguments),h},h.tickArguments=function(t){return arguments.length?(e=null==t?[]:Ut.call(t),h):e.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Ut.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function nn(t){return tn(jt,t)}function en(t){return tn(Yt,t)}function rn(t){return tn(Vt,t)}function on(t){return tn(Gt,t)}var an={value:()=>{}};function un(){for(var t,n=0,e=arguments.length,r={};n<e;++n){if(!(t=arguments[n]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new cn(r)}function cn(t){this._=t}function sn(t,n){for(var e,r=0,i=t.length;r<i;++r)if((e=t[r]).name===n)return e.value}function ln(t,n,e){for(var r=0,i=t.length;r<i;++r)if(t[r].name===n){t[r]=an,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=e&&t.push({name:n,value:e}),t}cn.prototype=un.prototype={constructor:cn,on:function(t,n){var e,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");if(e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a<u;)if(e=(t=o[a]).type)i[e]=ln(i[e],t.name,n);else if(null==n)for(e in i)i[e]=ln(i[e],t.name,null);return this}for(;++a<u;)if((e=(t=o[a]).type)&&(e=sn(i[e],t.name)))return e},copy:function(){var t={},n=this._;for(var e in n)t[e]=n[e].slice();return new cn(t)},call:function(t,n){if((e=arguments.length-2)>0)for(var e,r,i=new Array(e),o=0;o<e;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,e=(r=this._[t]).length;o<e;++o)r[o].value.apply(n,i)},apply:function(t,n,e){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(n,e)}};var fn=un;function hn(){}function dn(t){return null==t?hn:function(){return this.querySelector(t)}}function pn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function _n(){return[]}function gn(t){return null==t?_n:function(){return this.querySelectorAll(t)}}function yn(t){return function(){return this.matches(t)}}function mn(t){return function(n){return n.matches(t)}}var vn=Array.prototype.find;function bn(){return this.firstElementChild}var xn=Array.prototype.filter;function wn(){return this.children}function Mn(t){return new Array(t.length)}function kn(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Cn(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;u<s;++u)(a=n[u])?(a.__data__=o[u],r[u]=a):e[u]=new kn(t,o[u]);for(;u<c;++u)(a=n[u])&&(i[u]=a)}function Sn(t,n,e,r,i,o,a){var u,c,s,l=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(c=n[u])&&(d[u]=s=a.call(c,c.__data__,u,n)+"",l.has(s)?i[u]=c:l.set(s,c));for(u=0;u<h;++u)s=a.call(t,o[u],u,o)+"",(c=l.get(s))?(r[u]=c,c.__data__=o[u],l.delete(s)):e[u]=new kn(t,o[u]);for(u=0;u<f;++u)(c=n[u])&&l.get(d[u])===c&&(i[u]=c)}function An(t){return t.__data__}function En(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}kn.prototype={constructor:kn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tn="http://www.w3.org/1999/xhtml",Nn={svg:"http://www.w3.org/2000/svg",xhtml:Tn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $n(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Nn.hasOwnProperty(n)?{space:Nn[n],local:t}:t}function In(t){return function(){this.removeAttribute(t)}}function Rn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dn(t,n){return function(){this.setAttribute(t,n)}}function Pn(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function zn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Fn(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Ln(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function On(t){return function(){this.style.removeProperty(t)}}function Hn(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qn(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Un(t,n){return t.style.getPropertyValue(n)||Ln(t).getComputedStyle(t,null).getPropertyValue(n)}function Bn(t){return function(){delete this[t]}}function jn(t,n){return function(){this[t]=n}}function Yn(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vn(t){return t.trim().split(/^|\s+/)}function Gn(t){return t.classList||new Xn(t)}function Xn(t){this._node=t,this._names=Vn(t.getAttribute("class")||"")}function Zn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Wn(t,n){for(var e=Gn(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Kn(t){return function(){Zn(this,t)}}function Jn(t){return function(){Wn(this,t)}}function Qn(t,n){return function(){(n.apply(this,arguments)?Zn:Wn)(this,t)}}function te(){this.textContent=""}function ne(t){return function(){this.textContent=t}}function ee(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function re(){this.innerHTML=""}function ie(t){return function(){this.innerHTML=t}}function oe(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ae(){this.nextSibling&&this.parentNode.appendChild(this)}function ue(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ce(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Tn&&n.documentElement.namespaceURI===Tn?n.createElement(t):n.createElementNS(e,t)}}function se(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function le(t){var n=$n(t);return(n.local?se:ce)(n)}function fe(){return null}function he(){var t=this.parentNode;t&&t.removeChild(this)}function de(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function pe(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function _e(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r<o;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function ge(t,n,e){return function(){var r,i=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=e),void(r.value=n);this.addEventListener(t.type,o,e),r={type:t.type,name:t.name,value:n,listener:o,options:e},i?i.push(r):this.__on=[r]}}function ye(t,n,e){var r=Ln(t),i=r.CustomEvent;"function"==typeof i?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function me(t,n){return function(){return ye(this,t,n)}}function ve(t,n){return function(){return ye(this,t,n.apply(this,arguments))}}Xn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var be=[null];function xe(t,n){this._groups=t,this._parents=n}function we(){return new xe([[document.documentElement]],be)}xe.prototype=we.prototype={constructor:xe,select:function(t){"function"!=typeof t&&(t=dn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a,u=n[i],c=u.length,s=r[i]=new Array(c),l=0;l<c;++l)(o=u[l])&&(a=t.call(o,o.__data__,l,u))&&("__data__"in o&&(a.__data__=o.__data__),s[l]=a);return new xe(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var n=t.apply(this,arguments);return null==n?[]:pn(n)}}(t):gn(t);for(var n=this._groups,e=n.length,r=[],i=[],o=0;o<e;++o)for(var a,u=n[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new xe(r,i)},selectChild:function(t){return this.select(null==t?bn:function(t){return function(){return vn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},selectChildren:function(t){return this.selectAll(null==t?wn:function(t){return function(){return xn.call(this.children,t)}}("function"==typeof t?t:mn(t)))},filter:function(t){"function"!=typeof t&&(t=yn(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,a=n[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new xe(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,An);var e=n?Sn:Cn,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var l=r[s],f=i[s],h=f.length,d=pn(t.call(l,l&&l.__data__,s,r)),p=d.length,_=u[s]=new Array(p),g=a[s]=new Array(p);e(l,f,_,g,c[s]=new Array(h),d,n);for(var y,m,v=0,b=0;v<p;++v)if(y=_[v]){for(v>=b&&(b=v+1);!(m=g[b])&&++b<p;);y._next=m||null}}return(a=new xe(a,r))._enter=u,a._exit=c,a},enter:function(){return new xe(this._enter||this._groups.map(Mn),this._parents)},exit:function(){return new xe(this._exit||this._groups.map(Mn),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,o=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=n&&(i=n(i)),null==e?o.remove():e(o),r&&i?r.merge(i).order():i},merge:function(t){if(!(t instanceof xe))throw new Error("invalid merge");for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=n[u],l=e[u],f=s.length,h=a[u]=new Array(f),d=0;d<f;++d)(c=s[d]||l[d])&&(h[d]=c);for(;u<r;++u)a[u]=n[u];return new xe(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=En);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,s=i[o]=new Array(c),l=0;l<c;++l)(a=u[l])&&(s[l]=a);s.sort(n)}return new xe(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,o=n[e],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,n){var e=$n(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((null==n?e.local?Rn:In:"function"==typeof n?e.local?Fn:zn:e.local?Pn:Dn)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((null==n?On:"function"==typeof n?qn:Hn)(t,n,null==e?"":e)):Un(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Bn:"function"==typeof n?Yn:jn)(t,n)):this.node()[t]},classed:function(t,n){var e=Vn(t+"");if(arguments.length<2){for(var r=Gn(this.node()),i=-1,o=e.length;++i<o;)if(!r.contains(e[i]))return!1;return!0}return this.each(("function"==typeof n?Qn:n?Kn:Jn)(e,n))},text:function(t){return arguments.length?this.each(null==t?te:("function"==typeof t?ee:ne)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?re:("function"==typeof t?oe:ie)(t)):this.node().innerHTML},raise:function(){return this.each(ae)},lower:function(){return this.each(ue)},append:function(t){var n="function"==typeof t?t:le(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var e="function"==typeof t?t:le(t),r=null==n?fe:"function"==typeof n?n:dn(n);return this.select((function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(he)},clone:function(t){return this.select(t?pe:de)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",e=t.indexOf(".");return e>=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?ge:_e,r=0;r<a;++r)this.each(u(o[r],n,e));return this}var u=this.node().__on;if(u)for(var c,s=0,l=u.length;s<l;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,n){return this.each(("function"==typeof n?ve:me)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var Me=we;function ke(t){return"string"==typeof t?new xe([[document.querySelector(t)]],[document.documentElement]):new xe([[t]],be)}function Ce(t){t.stopImmediatePropagation()}function Se(t){t.preventDefault(),t.stopImmediatePropagation()}function Ae(t){var n=t.document.documentElement,e=ke(t).on("dragstart.drag",Se,!0);"onselectstart"in n?e.on("selectstart.drag",Se,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Ee(t,n){var e=t.document.documentElement,r=ke(t).on("dragstart.drag",null);n&&(r.on("click.drag",Se,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}function Te(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Ne(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function $e(){}var Ie=.7,Re=1/Ie,De="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fe=/^#([0-9a-f]{3,8})$/,Le=new RegExp("^rgb\\("+[De,De,De]+"\\)$"),Oe=new RegExp("^rgb\\("+[ze,ze,ze]+"\\)$"),He=new RegExp("^rgba\\("+[De,De,De,Pe]+"\\)$"),qe=new RegExp("^rgba\\("+[ze,ze,ze,Pe]+"\\)$"),Ue=new RegExp("^hsl\\("+[Pe,ze,ze]+"\\)$"),Be=new RegExp("^hsla\\("+[Pe,ze,ze,Pe]+"\\)$"),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavende