Skip to content

Instantly share code, notes, and snippets.

@andytudhope andytudhope/app.js

Created Jul 13, 2018
Embed
What would you like to do?
"use strict";
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
! function e(t, n, r) {
function i(a, u) {
if (!n[a]) {
if (!t[a]) {
var c = "function" == typeof require && require;
if (!u && c) return c(a, !0);
if (o) return o(a, !0);
var f = new Error("Cannot find module '" + a + "'");
throw f.code = "MODULE_NOT_FOUND", f
}
var l = n[a] = {
exports: {}
};
t[a][0].call(l.exports, function(e) {
var n = t[a][1][e];
return i(n ? n : e)
}, l, l.exports, e, t, n, r)
}
return n[a].exports
}
for (var o = "function" == typeof require && require, a = 0; a < r.length; a++) i(r[a]);
return i
}({
1: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return function(t, n) {
return a(e(t), n)
}
}
function n(e, t) {
return [e, t]
}
function r(e, t, n) {
var r = (t - e) / Math.max(0, n),
i = Math.floor(Math.log(r) / Math.LN10),
o = r / Math.pow(10, i);
return i >= 0 ? (o >= j ? 10 : o >= O ? 5 : o >= S ? 2 : 1) * Math.pow(10, i) : -Math.pow(10, -i) / (o >= j ? 10 : o >= O ? 5 : o >= S ? 2 : 1)
}
function i(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n),
i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)),
o = r / i;
return o >= j ? i *= 10 : o >= O ? i *= 5 : o >= S && (i *= 2), t < e ? -i : i
}
function o(e) {
return e.length
}
var a = function(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN
},
u = function(e) {
return 1 === e.length && (e = t(e)), {
left: function(t, n, r, i) {
for (null == r && (r = 0), null == i && (i = t.length); r < i;) {
var o = r + i >>> 1;
e(t[o], n) < 0 ? r = o + 1 : i = o
}
return r
},
right: function(t, n, r, i) {
for (null == r && (r = 0), null == i && (i = t.length); r < i;) {
var o = r + i >>> 1;
e(t[o], n) > 0 ? i = o : r = o + 1
}
return r
}
}
},
c = u(a),
f = c.right,
l = c.left,
s = function R(e, t) {
null == t && (t = n);
for (var r = 0, i = e.length - 1, o = e[0], R = new Array(i < 0 ? 0 : i); r < i;) R[r] = t(o, o = e[++r]);
return R
},
d = function(e, t, r) {
var i, o, a, u, c = e.length,
f = t.length,
l = new Array(c * f);
for (null == r && (r = n), i = a = 0; i < c; ++i)
for (u = e[i], o = 0; o < f; ++o, ++a) l[a] = r(u, t[o]);
return l
},
h = function(e, t) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN
},
p = function(e) {
return null === e ? NaN : +e
},
b = function(e, t) {
var n, r, i = e.length,
o = 0,
a = -1,
u = 0,
c = 0;
if (null == t)
for (; ++a < i;) isNaN(n = p(e[a])) || (r = n - u, u += r / ++o, c += r * (n - u));
else
for (; ++a < i;) isNaN(n = p(t(e[a], a, e))) || (r = n - u, u += r / ++o, c += r * (n - u));
if (o > 1) return c / (o - 1)
},
g = function(e, t) {
var n = b(e, t);
return n ? Math.sqrt(n) : n
},
y = function(e, t) {
var n, r, i, o = e.length,
a = -1;
if (null == t) {
for (; ++a < o;)
if (null != (n = e[a]) && n >= n)
for (r = i = n; ++a < o;) null != (n = e[a]) && (r > n && (r = n), i < n && (i = n))
} else
for (; ++a < o;)
if (null != (n = t(e[a], a, e)) && n >= n)
for (r = i = n; ++a < o;) null != (n = t(e[a], a, e)) && (r > n && (r = n), i < n && (i = n)); return [r, i]
},
v = Array.prototype,
m = v.slice,
w = v.map,
M = function(e) {
return function() {
return e
}
},
_ = function(e) {
return e
},
x = function B(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = 0 | Math.max(0, Math.ceil((t - e) / n)), B = new Array(i); ++r < i;) B[r] = e + r * n;
return B
},
j = Math.sqrt(50),
O = Math.sqrt(10),
S = Math.sqrt(2),
k = function W(e, t, n) {
var i, W, o, a = t < e,
u = -1;
if (a && (i = e, e = t, t = i), 0 === (o = r(e, t, n)) || !isFinite(o)) return [];
if (o > 0)
for (e = Math.ceil(e / o), t = Math.floor(t / o), W = new Array(i = Math.ceil(t - e + 1)); ++u < i;) W[u] = (e + u) * o;
else
for (e = Math.floor(e * o), t = Math.ceil(t * o), W = new Array(i = Math.ceil(e - t + 1)); ++u < i;) W[u] = (e - u) / o;
return a && W.reverse(), W
},
A = function(e) {
return Math.ceil(Math.log(e.length) / Math.LN2) + 1
},
T = function X() {
function X(r) {
var o, a, u = r.length,
c = new Array(u);
for (o = 0; o < u; ++o) c[o] = e(r[o], o, r);
var l = t(c),
s = l[0],
d = l[1],
h = n(c, s, d);
Array.isArray(h) || (h = i(s, d, h), h = x(Math.ceil(s / h) * h, Math.floor(d / h) * h, h));
for (var p = h.length; h[0] <= s;) h.shift(), --p;
for (; h[p - 1] > d;) h.pop(), --p;
var b, g = new Array(p + 1);
for (o = 0; o <= p; ++o) b = g[o] = [], b.x0 = o > 0 ? h[o - 1] : s, b.x1 = o < p ? h[o] : d;
for (o = 0; o < u; ++o) a = c[o], s <= a && a <= d && g[f(h, a, 0, p)].push(r[o]);
return g
}
var e = _,
t = y,
n = A;
return X.value = function(t) {
return arguments.length ? (e = "function" == typeof t ? t : M(t), X) : e
}, X.domain = function(e) {
return arguments.length ? (t = "function" == typeof e ? e : M([e[0], e[1]]), X) : t
}, X.thresholds = function(e) {
return arguments.length ? (n = "function" == typeof e ? e : M(Array.isArray(e) ? m.call(e) : e), X) : n
}, X
},
C = function(e, t, n) {
if (null == n && (n = p), r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
var r, i = (r - 1) * t,
o = Math.floor(i),
a = +n(e[o], o, e),
u = +n(e[o + 1], o + 1, e);
return a + (u - a) * (i - o)
}
},
N = function(e, t, n) {
return e = w.call(e, p).sort(a), Math.ceil((n - t) / (2 * (C(e, .75) - C(e, .25)) * Math.pow(e.length, -1 / 3)))
},
F = function(e, t, n) {
return Math.ceil((n - t) / (3.5 * g(e) * Math.pow(e.length, -1 / 3)))
},
D = function V(e, t) {
var n, V, r = e.length,
i = -1;
if (null == t) {
for (; ++i < r;)
if (null != (n = e[i]) && n >= n)
for (V = n; ++i < r;) null != (n = e[i]) && n > V && (V = n)
} else
for (; ++i < r;)
if (null != (n = t(e[i], i, e)) && n >= n)
for (V = n; ++i < r;) null != (n = t(e[i], i, e)) && n > V && (V = n); return V
},
Y = function(e, t) {
var n, r = e.length,
i = r,
o = -1,
a = 0;
if (null == t)
for (; ++o < r;) isNaN(n = p(e[o])) ? --i : a += n;
else
for (; ++o < r;) isNaN(n = p(t(e[o], o, e))) ? --i : a += n;
if (i) return a / i
},
U = function(e, t) {
var n, r = e.length,
i = -1,
o = [];
if (null == t)
for (; ++i < r;) isNaN(n = p(e[i])) || o.push(n);
else
for (; ++i < r;) isNaN(n = p(t(e[i], i, e))) || o.push(n);
return C(o.sort(a), .5)
},
E = function(e) {
for (var t, n, r, i = e.length, o = -1, a = 0; ++o < i;) a += e[o].length;
for (n = new Array(a); --i >= 0;)
for (r = e[i], t = r.length; --t >= 0;) n[--a] = r[t];
return n
},
I = function Q(e, t) {
var n, Q, r = e.length,
i = -1;
if (null == t) {
for (; ++i < r;)
if (null != (n = e[i]) && n >= n)
for (Q = n; ++i < r;) null != (n = e[i]) && Q > n && (Q = n)
} else
for (; ++i < r;)
if (null != (n = t(e[i], i, e)) && n >= n)
for (Q = n; ++i < r;) null != (n = t(e[i], i, e)) && Q > n && (Q = n); return Q
},
P = function(e, t) {
for (var n = t.length, r = new Array(n); n--;) r[n] = e[t[n]];
return r
},
q = function(e, t) {
if (n = e.length) {
var n, r, i = 0,
o = 0,
u = e[o];
for (null == t && (t = a); ++i < n;)(t(r = e[i], u) < 0 || 0 !== t(u, u)) && (u = r, o = i);
return 0 === t(u, u) ? o : void 0
}
},
L = function(e, t, n) {
for (var r, i, o = (null == n ? e.length : n) - (t = null == t ? 0 : +t); o;) i = Math.random() * o-- | 0, r = e[o + t], e[o + t] = e[i + t], e[i + t] = r;
return e
},
z = function Z(e, t) {
var n, r = e.length,
i = -1,
Z = 0;
if (null == t)
for (; ++i < r;)(n = +e[i]) && (Z += n);
else
for (; ++i < r;)(n = +t(e[i], i, e)) && (Z += n);
return Z
},
H = function G(e) {
if (!(r = e.length)) return [];
for (var t = -1, n = I(e, o), G = new Array(n); ++t < n;)
for (var r, i = -1, a = G[t] = new Array(r); ++i < r;) a[i] = e[i][t];
return G
},
$ = function() {
return H(arguments)
};
e.bisect = f, e.bisectRight = f, e.bisectLeft = l, e.ascending = a, e.bisector = u, e.cross = d, e.descending = h, e.deviation = g, e.extent = y, e.histogram = T, e.thresholdFreedmanDiaconis = N, e.thresholdScott = F, e.thresholdSturges = A, e.max = D, e.mean = Y, e.median = U, e.merge = E, e.min = I, e.pairs = s, e.permute = P, e.quantile = C, e.range = x, e.scan = q, e.shuffle = L, e.sum = z, e.ticks = k, e.tickIncrement = r, e.tickStep = i, e.transpose = H, e.variance = b, e.zip = $, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
2: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t() {}
function n(e, n) {
var r = new t;
if (e instanceof t) e.each(function(e, t) {
r.set(t, e)
});
else if (Array.isArray(e)) {
var i, o = -1,
a = e.length;
if (null == n)
for (; ++o < a;) r.set(o, e[o]);
else
for (; ++o < a;) r.set(n(i = e[o], o, e), i)
} else if (e)
for (var u in e) r.set(u, e[u]);
return r
}
function r() {
return {}
}
function i(e, t, n) {
e[t] = n
}
function o() {
return n()
}
function a(e, t, n) {
e.set(t, n)
}
function u() {}
function c(e, t) {
var n = new u;
if (e instanceof u) e.each(function(e) {
n.add(e)
});
else if (e) {
var r = -1,
i = e.length;
if (null == t)
for (; ++r < i;) n.add(e[r]);
else
for (; ++r < i;) n.add(t(e[r], r, e))
}
return n
}
var f = "$";
t.prototype = n.prototype = {
constructor: t,
has: function(e) {
return f + e in this
},
get: function(e) {
return this[f + e]
},
set: function(e, t) {
return this[f + e] = t, this
},
remove: function(e) {
var t = f + e;
return t in this && delete this[t]
},
clear: function() {
for (var e in this) e[0] === f && delete this[e]
},
keys: function b() {
var b = [];
for (var e in this) e[0] === f && b.push(e.slice(1));
return b
},
values: function g() {
var g = [];
for (var e in this) e[0] === f && g.push(this[e]);
return g
},
entries: function y() {
var y = [];
for (var e in this) e[0] === f && y.push({
key: e.slice(1),
value: this[e]
});
return y
},
size: function v() {
var v = 0;
for (var e in this) e[0] === f && ++v;
return v
},
empty: function() {
for (var e in this)
if (e[0] === f) return !1;
return !0
},
each: function(e) {
for (var t in this) t[0] === f && e(this[t], t.slice(1), this)
}
};
var l = function m() {
function e(t, r, i, o) {
if (r >= f.length) return null != c ? c(t) : null != u ? t.sort(u) : t;
for (var a, l, s, d = -1, h = t.length, p = f[r++], b = n(), g = i(); ++d < h;)(s = b.get(a = p(l = t[d]) + "")) ? s.push(l) : b.set(a, [l]);
return b.each(function(t, n) {
o(g, n, e(t, r, i, o))
}), g
}
function t(e, n) {
if (++n > f.length) return e;
var r, i = l[n - 1];
return null != c && n >= f.length ? r = e.entries() : (r = [], e.each(function(e, i) {
r.push({
key: i,
values: t(e, n)
})
})), null != i ? r.sort(function(e, t) {
return i(e.key, t.key)
}) : r
}
var u, c, m, f = [],
l = [];
return m = {
object: function(t) {
return e(t, 0, r, i)
},
map: function(t) {
return e(t, 0, o, a)
},
entries: function(n) {
return t(e(n, 0, o, a), 0)
},
key: function(e) {
return f.push(e), m
},
sortKeys: function(e) {
return l[f.length - 1] = e, m
},
sortValues: function(e) {
return u = e, m
},
rollup: function(e) {
return c = e, m
}
}
},
s = n.prototype;
u.prototype = c.prototype = {
constructor: u,
has: s.has,
add: function(e) {
return e += "", this[f + e] = e, this
},
remove: s.remove,
clear: s.clear,
values: s.keys,
size: s.size,
empty: s.empty,
each: s.each
};
var d = function w(e) {
var w = [];
for (var t in e) w.push(t);
return w
},
h = function M(e) {
var M = [];
for (var t in e) M.push(e[t]);
return M
},
p = function _(e) {
var _ = [];
for (var t in e) _.push({
key: t,
value: e[t]
});
return _
};
e.nest = l, e.set = c, e.map = n, e.keys = d, e.values = h, e.entries = p, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
3: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n
}
function n() {}
function r(e) {
var t;
return e = (e + "").trim().toLowerCase(), (t = D.exec(e)) ? (t = parseInt(t[1], 16), new c(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | 240 & t, (15 & t) << 4 | 15 & t, 1)) : (t = Y.exec(e)) ? i(parseInt(t[1], 16)) : (t = U.exec(e)) ? new c(t[1], t[2], t[3], 1) : (t = E.exec(e)) ? new c(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, 1) : (t = I.exec(e)) ? o(t[1], t[2], t[3], t[4]) : (t = P.exec(e)) ? o(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, t[4]) : (t = q.exec(e)) ? f(t[1], t[2] / 100, t[3] / 100, 1) : (t = L.exec(e)) ? f(t[1], t[2] / 100, t[3] / 100, t[4]) : z.hasOwnProperty(e) ? i(z[e]) : "transparent" === e ? new c(NaN, NaN, NaN, 0) : null
}
function i(e) {
return new c(e >> 16 & 255, e >> 8 & 255, 255 & e, 1)
}
function o(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new c(e, t, n, r)
}
function a(e) {
return e instanceof n || (e = r(e)), e ? (e = e.rgb(), new c(e.r, e.g, e.b, e.opacity)) : new c
}
function u(e, t, n, r) {
return 1 === arguments.length ? a(e) : new c(e, t, n, null == r ? 1 : r)
}
function c(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r
}
function f(e, t, n, r) {
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new d(e, t, n, r)
}
function l(e) {
if (e instanceof d) return new d(e.h, e.s, e.l, e.opacity);
if (e instanceof n || (e = r(e)), !e) return new d;
if (e instanceof d) return e;
e = e.rgb();
var t = e.r / 255,
i = e.g / 255,
o = e.b / 255,
a = Math.min(t, i, o),
u = Math.max(t, i, o),
c = NaN,
f = u - a,
l = (u + a) / 2;
return f ? (c = t === u ? (i - o) / f + 6 * (i < o) : i === u ? (o - t) / f + 2 : (t - i) / f + 4, f /= l < .5 ? u + a : 2 - u - a, c *= 60) : f = l > 0 && l < 1 ? 0 : c, new d(c, f, l, e.opacity)
}
function s(e, t, n, r) {
return 1 === arguments.length ? l(e) : new d(e, t, n, null == r ? 1 : r)
}
function d(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r
}
function h(e, t, n) {
return 255 * (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t)
}
function p(e) {
if (e instanceof g) return new g(e.l, e.a, e.b, e.opacity);
if (e instanceof x) {
var t = e.h * H;
return new g(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity)
}
e instanceof c || (e = a(e));
var n = w(e.r),
r = w(e.g),
i = w(e.b),
o = y((.4124564 * n + .3575761 * r + .1804375 * i) / B),
u = y((.2126729 * n + .7151522 * r + .072175 * i) / W),
f = y((.0193339 * n + .119192 * r + .9503041 * i) / X);
return new g(116 * u - 16, 500 * (o - u), 200 * (u - f), e.opacity)
}
function b(e, t, n, r) {
return 1 === arguments.length ? p(e) : new g(e, t, n, null == r ? 1 : r)
}
function g(e, t, n, r) {
this.l = +e, this.a = +t, this.b = +n, this.opacity = +r
}
function y(e) {
return e > G ? Math.pow(e, 1 / 3) : e / Z + V
}
function v(e) {
return e > Q ? e * e * e : Z * (e - V)
}
function m(e) {
return 255 * (e <= .0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - .055)
}
function w(e) {
return (e /= 255) <= .04045 ? e / 12.92 : Math.pow((e + .055) / 1.055, 2.4)
}
function M(e) {
if (e instanceof x) return new x(e.h, e.c, e.l, e.opacity);
e instanceof g || (e = p(e));
var t = Math.atan2(e.b, e.a) * $;
return new x(t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity)
}
function _(e, t, n, r) {
return 1 === arguments.length ? M(e) : new x(e, t, n, null == r ? 1 : r)
}
function x(e, t, n, r) {
this.h = +e, this.c = +t, this.l = +n, this.opacity = +r
}
function j(e) {
if (e instanceof S) return new S(e.h, e.s, e.l, e.opacity);
e instanceof c || (e = a(e));
var t = e.r / 255,
n = e.g / 255,
r = e.b / 255,
i = (oe * r + re * t - ie * n) / (oe + re - ie),
o = r - i,
u = (ne * (n - i) - ee * o) / te,
f = Math.sqrt(u * u + o * o) / (ne * i * (1 - i)),
l = f ? Math.atan2(u, o) * $ - 120 : NaN;
return new S(l < 0 ? l + 360 : l, f, i, e.opacity)
}
function O(e, t, n, r) {
return 1 === arguments.length ? j(e) : new S(e, t, n, null == r ? 1 : r)
}
function S(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r
}
var k = function(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e
},
A = .7,
T = 1 / A,
C = "\\s*([+-]?\\d+)\\s*",
N = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
F = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
D = /^#([0-9a-f]{3})$/,
Y = /^#([0-9a-f]{6})$/,
U = new RegExp("^rgb\\(" + [C, C, C] + "\\)$"),
E = new RegExp("^rgb\\(" + [F, F, F] + "\\)$"),
I = new RegExp("^rgba\\(" + [C, C, C, N] + "\\)$"),
P = new RegExp("^rgba\\(" + [F, F, F, N] + "\\)$"),
q = new RegExp("^hsl\\(" + [N, F, F] + "\\)$"),
L = new RegExp("^hsla\\(" + [N, F, F, N] + "\\)$"),
z = {
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,
lavender: 15132410,
lavenderblush: 16773365,
lawngreen: 8190976,
lemonchiffon: 16775885,
lightblue: 11393254,
lightcoral: 15761536,
lightcyan: 14745599,
lightgoldenrodyellow: 16448210,
lightgray: 13882323,
lightgreen: 9498256,
lightgrey: 13882323,
lightpink: 16758465,
lightsalmon: 16752762,
lightseagreen: 2142890,
lightskyblue: 8900346,
lightslategray: 7833753,
lightslategrey: 7833753,
lightsteelblue: 11584734,
lightyellow: 16777184,
lime: 65280,
limegreen: 3329330,
linen: 16445670,
magenta: 16711935,
maroon: 8388608,
mediumaquamarine: 6737322,
mediumblue: 205,
mediumorchid: 12211667,
mediumpurple: 9662683,
mediumseagreen: 3978097,
mediumslateblue: 8087790,
mediumspringgreen: 64154,
mediumturquoise: 4772300,
mediumvioletred: 13047173,
midnightblue: 1644912,
mintcream: 16121850,
mistyrose: 16770273,
moccasin: 16770229,
navajowhite: 16768685,
navy: 128,
oldlace: 16643558,
olive: 8421376,
olivedrab: 7048739,
orange: 16753920,
orangered: 16729344,
orchid: 14315734,
palegoldenrod: 15657130,
palegreen: 10025880,
paleturquoise: 11529966,
palevioletred: 14381203,
papayawhip: 16773077,
peachpuff: 16767673,
peru: 13468991,
pink: 16761035,
plum: 14524637,
powderblue: 11591910,
purple: 8388736,
rebeccapurple: 6697881,
red: 16711680,
rosybrown: 12357519,
royalblue: 4286945,
saddlebrown: 9127187,
salmon: 16416882,
sandybrown: 16032864,
seagreen: 3050327,
seashell: 16774638,
sienna: 10506797,
silver: 12632256,
skyblue: 8900331,
slateblue: 6970061,
slategray: 7372944,
slategrey: 7372944,
snow: 16775930,
springgreen: 65407,
steelblue: 4620980,
tan: 13808780,
teal: 32896,
thistle: 14204888,
tomato: 16737095,
turquoise: 4251856,
violet: 15631086,
wheat: 16113331,
white: 16777215,
whitesmoke: 16119285,
yellow: 16776960,
yellowgreen: 10145074
};
k(n, r, {
displayable: function() {
return this.rgb().displayable()
},
toString: function() {
return this.rgb() + ""
}
}), k(c, u, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new c(this.r * e, this.g * e, this.b * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new c(this.r * e, this.g * e, this.b * e, this.opacity)
},
rgb: function() {
return this
},
displayable: function() {
return 0 <= this.r && this.r <= 255 && 0 <= this.g && this.g <= 255 && 0 <= this.b && this.b <= 255 && 0 <= this.opacity && this.opacity <= 1
},
toString: function() {
var e = this.opacity;
return e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e)), (1 === e ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (1 === e ? ")" : ", " + e + ")")
}
})), k(d, s, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new d(this.h, this.s, this.l * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new d(this.h, this.s, this.l * e, this.opacity)
},
rgb: function() {
var e = this.h % 360 + 360 * (this.h < 0),
t = isNaN(e) || isNaN(this.s) ? 0 : this.s,
n = this.l,
r = n + (n < .5 ? n : 1 - n) * t,
i = 2 * n - r;
return new c(h(e >= 240 ? e - 240 : e + 120, i, r), h(e, i, r), h(e < 120 ? e + 240 : e - 120, i, r), this.opacity)
},
displayable: function() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1
}
}));
var H = Math.PI / 180,
$ = 180 / Math.PI,
R = 18,
B = .95047,
W = 1,
X = 1.08883,
V = 4 / 29,
Q = 6 / 29,
Z = 3 * Q * Q,
G = Q * Q * Q;
k(g, b, t(n, {
brighter: function(e) {
return new g(this.l + R * (null == e ? 1 : e), this.a, this.b, this.opacity)
},
darker: function(e) {
return new g(this.l - R * (null == e ? 1 : e), this.a, this.b, this.opacity)
},
rgb: function() {
var e = (this.l + 16) / 116,
t = isNaN(this.a) ? e : e + this.a / 500,
n = isNaN(this.b) ? e : e - this.b / 200;
return e = W * v(e), t = B * v(t), n = X * v(n), new c(m(3.2404542 * t - 1.5371385 * e - .4985314 * n), m(-.969266 * t + 1.8760108 * e + .041556 * n), m(.0556434 * t - .2040259 * e + 1.0572252 * n), this.opacity)
}
})), k(x, _, t(n, {
brighter: function(e) {
return new x(this.h, this.c, this.l + R * (null == e ? 1 : e), this.opacity)
},
darker: function(e) {
return new x(this.h, this.c, this.l - R * (null == e ? 1 : e), this.opacity)
},
rgb: function() {
return p(this).rgb()
}
}));
var J = -.14861,
K = 1.78277,
ee = -.29227,
te = -.90649,
ne = 1.97294,
re = ne * te,
ie = ne * K,
oe = K * ee - te * J;
k(S, O, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new S(this.h, this.s, this.l * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new S(this.h, this.s, this.l * e, this.opacity)
},
rgb: function() {
var e = isNaN(this.h) ? 0 : (this.h + 120) * H,
t = +this.l,
n = isNaN(this.s) ? 0 : this.s * t * (1 - t),
r = Math.cos(e),
i = Math.sin(e);
return new c(255 * (t + n * (J * r + K * i)), 255 * (t + n * (ee * r + te * i)), 255 * (t + n * (ne * r)), this.opacity)
}
})), e.color = r, e.rgb = u, e.hsl = s, e.lab = b, e.hcl = _, e.cubehelix = O, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
4: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return +e
}
function n(e) {
return e * e
}
function r(e) {
return e * (2 - e)
}
function i(e) {
return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2
}
function o(e) {
return e * e * e
}
function a(e) {
return --e * e * e + 1
}
function u(e) {
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2
}
function c(e) {
return 1 - Math.cos(e * O)
}
function f(e) {
return Math.sin(e * O)
}
function l(e) {
return (1 - Math.cos(j * e)) / 2
}
function s(e) {
return Math.pow(2, 10 * e - 10)
}
function d(e) {
return 1 - Math.pow(2, -10 * e)
}
function h(e) {
return ((e *= 2) <= 1 ? Math.pow(2, 10 * e - 10) : 2 - Math.pow(2, 10 - 10 * e)) / 2
}
function p(e) {
return 1 - Math.sqrt(1 - e * e)
}
function b(e) {
return Math.sqrt(1 - --e * e)
}
function g(e) {
return ((e *= 2) <= 1 ? 1 - Math.sqrt(1 - e * e) : Math.sqrt(1 - (e -= 2) * e) + 1) / 2
}
function y(e) {
return 1 - v(1 - e)
}
function v(e) {
return (e = +e) < S ? U * e * e : e < A ? U * (e -= k) * e + T : e < N ? U * (e -= C) * e + F : U * (e -= D) * e + Y
}
function m(e) {
return ((e *= 2) <= 1 ? 1 - v(1 - e) : v(e - 1) + 1) / 2
}
var w = 3,
M = function W(e) {
function t(t) {
return Math.pow(t, e)
}
return e = +e, t.exponent = W, t
}(w),
_ = function X(e) {
function t(t) {
return 1 - Math.pow(1 - t, e)
}
return e = +e, t.exponent = X, t
}(w),
x = function V(e) {
function t(t) {
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2
}
return e = +e, t.exponent = V, t
}(w),
j = Math.PI,
O = j / 2,
S = 4 / 11,
k = 6 / 11,
A = 8 / 11,
T = .75,
C = 9 / 11,
N = 10 / 11,
F = .9375,
D = 21 / 22,
Y = 63 / 64,
U = 1 / S / S,
E = 1.70158,
I = function Q(e) {
function t(t) {
return t * t * ((e + 1) * t - e)
}
return e = +e, t.overshoot = Q, t
}(E),
P = function Z(e) {
function t(t) {
return --t * t * ((e + 1) * t + e) + 1
}
return e = +e, t.overshoot = Z, t
}(E),
q = function G(e) {
function t(t) {
return ((t *= 2) < 1 ? t * t * ((e + 1) * t - e) : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2
}
return e = +e, t.overshoot = G, t
}(E),
L = 2 * Math.PI,
z = 1,
H = .3,
$ = function J(e, t) {
function n(n) {
return e * Math.pow(2, 10 * --n) * Math.sin((r - n) / t)
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return J(e, t * L)
}, n.period = function(t) {
return J(e, t)
}, n
}(z, H),
R = function K(e, t) {
function n(n) {
return 1 - e * Math.pow(2, -10 * (n = +n)) * Math.sin((n + r) / t)
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return K(e, t * L)
}, n.period = function(t) {
return K(e, t)
}, n
}(z, H),
B = function ee(e, t) {
function n(n) {
return ((n = 2 * n - 1) < 0 ? e * Math.pow(2, 10 * n) * Math.sin((r - n) / t) : 2 - e * Math.pow(2, -10 * n) * Math.sin((r + n) / t)) / 2
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return ee(e, t * L)
}, n.period = function(t) {
return ee(e, t)
}, n
}(z, H);
e.easeLinear = t, e.easeQuad = i, e.easeQuadIn = n, e.easeQuadOut = r, e.easeQuadInOut = i, e.easeCubic = u, e.easeCubicIn = o, e.easeCubicOut = a, e.easeCubicInOut = u, e.easePoly = x, e.easePolyIn = M, e.easePolyOut = _, e.easePolyInOut = x, e.easeSin = l, e.easeSinIn = c, e.easeSinOut = f, e.easeSinInOut = l, e.easeExp = h, e.easeExpIn = s, e.easeExpOut = d, e.easeExpInOut = h, e.easeCircle = g, e.easeCircleIn = p, e.easeCircleOut = b, e.easeCircleInOut = g, e.easeBounce = v, e.easeBounceIn = y, e.easeBounceOut = v, e.easeBounceInOut = m, e.easeBack = q, e.easeBackIn = I, e.easeBackOut = P, e.easeBackInOut = q, e.easeElastic = R, e.easeElasticIn = $, e.easeElasticOut = R, e.easeElasticInOut = B, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
5: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return new n(e)
}
function n(e) {
if (!(t = h.exec(e))) throw new Error("invalid format: " + e);
var t, n = t[1] || " ",
r = t[2] || ">",
i = t[3] || "-",
o = t[4] || "",
a = !!t[5],
u = t[6] && +t[6],
c = !!t[7],
f = t[8] && +t[8].slice(1),
l = t[9] || "";
"n" === l ? (c = !0, l = "g") : d[l] || (l = ""), (a || "0" === n && "=" === r) && (a = !0, n = "0", r = "="), this.fill = n, this.align = r, this.sign = i, this.symbol = o, this.zero = a, this.width = u, this.comma = c, this.precision = f, this.type = l
}
function r(t) {
return p = y(t), e.format = p.format, e.formatPrefix = p.formatPrefix, p
}
var i, o = function(e, t) {
if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
var n, r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)]
},
a = function(e) {
return e = o(Math.abs(e)), e ? e[1] : NaN
},
u = function(e, t) {
return function(n, r) {
for (var i = n.length, o = [], a = 0, u = e[0], c = 0; i > 0 && u > 0 && (c + u + 1 > r && (u = Math.max(1, r - c)), o.push(n.substring(i -= u, i + u)), !((c += u + 1) > r));) u = e[a = (a + 1) % e.length];
return o.reverse().join(t)
}
},
c = function(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t]
})
}
},
f = function(e, t) {
e = e.toPrecision(t);
e: for (var n, r = e.length, i = 1, o = -1; i < r; ++i) switch (e[i]) {
case ".":
o = n = i;
break;
case "0":
0 === o && (o = i), n = i;
break;
case "e":
break e;
default:
o > 0 && (o = 0)
}
return o > 0 ? e.slice(0, o) + e.slice(n + 1) : e
},
l = function(e, t) {
var n = o(e, t);
if (!n) return e + "";
var r = n[0],
a = n[1],
u = a - (i = 3 * Math.max(-8, Math.min(8, Math.floor(a / 3)))) + 1,
c = r.length;
return u === c ? r : u > c ? r + new Array(u - c + 1).join("0") : u > 0 ? r.slice(0, u) + "." + r.slice(u) : "0." + new Array(1 - u).join("0") + o(e, Math.max(0, t + u - 1))[0]
},
s = function(e, t) {
var n = o(e, t);
if (!n) return e + "";
var r = n[0],
i = n[1];
return i < 0 ? "0." + new Array((-i)).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0")
},
d = {
"": f,
"%": function(e, t) {
return (100 * e).toFixed(t)
},
b: function(e) {
return Math.round(e).toString(2)
},
c: function(e) {
return e + ""
},
d: function(e) {
return Math.round(e).toString(10)
},
e: function(e, t) {
return e.toExponential(t)
},
f: function(e, t) {
return e.toFixed(t)
},
g: function(e, t) {
return e.toPrecision(t)
},
o: function(e) {
return Math.round(e).toString(8)
},
p: function(e, t) {
return s(100 * e, t)
},
r: s,
s: l,
X: function(e) {
return Math.round(e).toString(16).toUpperCase()
},
x: function(e) {
return Math.round(e).toString(16)
}
},
h = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;
t.prototype = n.prototype, n.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (null == this.width ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (null == this.precision ? "" : "." + Math.max(0, 0 | this.precision)) + this.type
};
var p, b = function(e) {
return e
},
g = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"],
y = function(e) {
function n(e) {
function n(e) {
var t, n, c, f = w,
d = M;
if ("c" === m) d = _(e) + d, e = "";
else {
e = +e;
var h = e < 0;
if (e = _(Math.abs(e), v), h && 0 === +e && (h = !1), f = (h ? "(" === u ? u : "-" : "-" === u || "(" === u ? "" : u) + f, d = d + ("s" === m ? g[8 + i / 3] : "") + (h && "(" === u ? ")" : ""), x)
for (t = -1, n = e.length; ++t < n;)
if (c = e.charCodeAt(t), 48 > c || c > 57) {
d = (46 === c ? l + e.slice(t + 1) : e.slice(t)) + d, e = e.slice(0, t);
break
}
}
y && !p && (e = o(e, 1 / 0));
var j = f.length + e.length + d.length,
O = j < b ? new Array(b - j + 1).join(r) : "";
switch (y && p && (e = o(O + e, O.length ? b - d.length : 1 / 0), O = ""), a) {
case "<":
e = f + e + d + O;
break;
case "=":
e = f + O + e + d;
break;
case "^":
e = O.slice(0, j = O.length >> 1) + f + e + d + O.slice(j);
break;
default:
e = O + f + e + d
}
return s(e)
}
e = t(e);
var r = e.fill,
a = e.align,
u = e.sign,
c = e.symbol,
p = e.zero,
b = e.width,
y = e.comma,
v = e.precision,
m = e.type,
w = "$" === c ? f[0] : "#" === c && /[boxX]/.test(m) ? "0" + m.toLowerCase() : "",
M = "$" === c ? f[1] : /[%p]/.test(m) ? h : "",
_ = d[m],
x = !m || /[defgprs%]/.test(m);
return v = null == v ? m ? 6 : 12 : /[gprs]/.test(m) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v)), n.toString = function() {
return e + ""
}, n
}
function r(e, r) {
var i = n((e = t(e), e.type = "f", e)),
o = 3 * Math.max(-8, Math.min(8, Math.floor(a(r) / 3))),
u = Math.pow(10, -o),
c = g[8 + o / 3];
return function(e) {
return i(u * e) + c
}
}
var o = e.grouping && e.thousands ? u(e.grouping, e.thousands) : b,
f = e.currency,
l = e.decimal,
s = e.numerals ? c(e.numerals) : b,
h = e.percent || "%";
return {
format: n,
formatPrefix: r
}
};
r({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
var v = function(e) {
return Math.max(0, -a(Math.abs(e)))
},
m = function(e, t) {
return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(a(t) / 3))) - a(Math.abs(e)))
},
w = function(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, a(t) - a(e)) + 1
};
e.formatDefaultLocale = r, e.formatLocale = y, e.formatSpecifier = t, e.precisionFixed = v, e.precisionPrefix = m, e.precisionRound = w, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
6: [function(e, t, n) {
! function(r, i) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? i(n, e("d3-color")) : "function" == typeof define && define.amd ? define(["exports", "d3-color"], i) : i(r.d3 = r.d3 || {}, r.d3)
}(this, function(e, t) {
function n(e, t, n, r, i) {
var o = e * e,
a = o * e;
return ((1 - 3 * e + 3 * o - a) * t + (4 - 6 * o + 3 * a) * n + (1 + 3 * e + 3 * o - 3 * a) * r + a * i) / 6
}
function r(e, t) {
return function(n) {
return e + n * t
}
}
function i(e, t, n) {
return e = Math.pow(e, n), t = Math.pow(t, n) - e, n = 1 / n,
function(r) {
return Math.pow(e + r * t, n)
}
}
function o(e, t) {
var n = t - e;
return n ? r(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) : k(isNaN(e) ? t : e)
}
function a(e) {
return 1 === (e = +e) ? u : function(t, n) {
return n - t ? i(t, n, e) : k(isNaN(t) ? n : t)
}
}
function u(e, t) {
var n = t - e;
return n ? r(e, n) : k(isNaN(e) ? t : e)
}
function c(e) {
return function(n) {
var r, i, o = n.length,
a = new Array(o),
u = new Array(o),
c = new Array(o);
for (r = 0; r < o; ++r) i = t.rgb(n[r]), a[r] = i.r || 0, u[r] = i.g || 0, c[r] = i.b || 0;
return a = e(a), u = e(u), c = e(c), i.opacity = 1,
function(e) {
return i.r = a(e), i.g = u(e), i.b = c(e), i + ""
}
}
}
function f(e) {
return function() {
return e
}
}
function l(e) {
return function(t) {
return e(t) + ""
}
}
function s(e) {
return "none" === e ? z : (M || (M = document.createElement("DIV"), _ = document.documentElement, x = document.defaultView), M.style.transform = e, e = x.getComputedStyle(_.appendChild(M), null).getPropertyValue("transform"), _.removeChild(M), e = e.slice(7, -1).split(","), H(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5]))
}
function d(e) {
return null == e ? z : (j || (j = document.createElementNS("http://www.w3.org/2000/svg", "g")), j.setAttribute("transform", e), (e = j.transform.baseVal.consolidate()) ? (e = e.matrix, H(e.a, e.b, e.c, e.d, e.e, e.f)) : z)
}
function h(e, t, n, r) {
function i(e) {
return e.length ? e.pop() + " " : ""
}
function o(e, r, i, o, a, u) {
if (e !== i || r !== o) {
var c = a.push("translate(", null, t, null, n);
u.push({
i: c - 4,
x: D(e, i)
}, {
i: c - 2,
x: D(r, o)
})
} else(i || o) && a.push("translate(" + i + t + o + n)
}
function a(e, t, n, o) {
e !== t ? (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), o.push({
i: n.push(i(n) + "rotate(", null, r) - 2,
x: D(e, t)
})) : t && n.push(i(n) + "rotate(" + t + r)
}
function u(e, t, n, o) {
e !== t ? o.push({
i: n.push(i(n) + "skewX(", null, r) - 2,
x: D(e, t)
}) : t && n.push(i(n) + "skewX(" + t + r)
}
function c(e, t, n, r, o, a) {
if (e !== n || t !== r) {
var u = o.push(i(o) + "scale(", null, ",", null, ")");
a.push({
i: u - 4,
x: D(e, n)
}, {
i: u - 2,
x: D(t, r)
})
} else 1 === n && 1 === r || o.push(i(o) + "scale(" + n + "," + r + ")")
}
return function(t, n) {
var r = [],
i = [];
return t = e(t), n = e(n), o(t.translateX, t.translateY, n.translateX, n.translateY, r, i), a(t.rotate, n.rotate, r, i), u(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null,
function(e) {
for (var t, n = -1, o = i.length; ++n < o;) r[(t = i[n]).i] = t.x(e);
return r.join("")
}
}
}
function p(e) {
return ((e = Math.exp(e)) + 1 / e) / 2
}
function b(e) {
return ((e = Math.exp(e)) - 1 / e) / 2
}
function g(e) {
return ((e = Math.exp(2 * e)) - 1) / (e + 1)
}
function y(e) {
return function(n, r) {
var i = e((n = t.hsl(n)).h, (r = t.hsl(r)).h),
o = u(n.s, r.s),
a = u(n.l, r.l),
c = u(n.opacity, r.opacity);
return function(e) {
return n.h = i(e), n.s = o(e), n.l = a(e), n.opacity = c(e), n + ""
}
}
}
function v(e, n) {
var r = u((e = t.lab(e)).l, (n = t.lab(n)).l),
i = u(e.a, n.a),
o = u(e.b, n.b),
a = u(e.opacity, n.opacity);
return function(t) {
return e.l = r(t), e.a = i(t), e.b = o(t), e.opacity = a(t), e + ""
}
}
function m(e) {
return function(n, r) {
var i = e((n = t.hcl(n)).h, (r = t.hcl(r)).h),
o = u(n.c, r.c),
a = u(n.l, r.l),
c = u(n.opacity, r.opacity);
return function(e) {
return n.h = i(e), n.c = o(e), n.l = a(e), n.opacity = c(e), n + ""
}
}
}
function w(e) {
return function n(r) {
function i(n, i) {
var o = e((n = t.cubehelix(n)).h, (i = t.cubehelix(i)).h),
a = u(n.s, i.s),
c = u(n.l, i.l),
f = u(n.opacity, i.opacity);
return function(e) {
return n.h = o(e), n.s = a(e), n.l = c(Math.pow(e, r)), n.opacity = f(e), n + ""
}
}
return r = +r, i.gamma = n, i
}(1)
}
var M, _, x, j, O = function(e) {
var t = e.length - 1;
return function(r) {
var i = r <= 0 ? r = 0 : r >= 1 ? (r = 1, t - 1) : Math.floor(r * t),
o = e[i],
a = e[i + 1],
u = i > 0 ? e[i - 1] : 2 * o - a,
c = i < t - 1 ? e[i + 2] : 2 * a - o;
return n((r - i / t) * t, u, o, a, c)
}
},
S = function(e) {
var t = e.length;
return function(r) {
var i = Math.floor(((r %= 1) < 0 ? ++r : r) * t),
o = e[(i + t - 1) % t],
a = e[i % t],
u = e[(i + 1) % t],
c = e[(i + 2) % t];
return n((r - i / t) * t, o, a, u, c)
}
},
k = function(e) {
return function() {
return e
}
},
A = function re(e) {
function n(e, n) {
var i = r((e = t.rgb(e)).r, (n = t.rgb(n)).r),
o = r(e.g, n.g),
a = r(e.b, n.b),
c = u(e.opacity, n.opacity);
return function(t) {
return e.r = i(t), e.g = o(t), e.b = a(t), e.opacity = c(t), e + ""
}
}
var r = a(e);
return n.gamma = re, n
}(1),
T = c(O),
C = c(S),
N = function(e, t) {
var n, r = t ? t.length : 0,
i = e ? Math.min(r, e.length) : 0,
o = new Array(r),
a = new Array(r);
for (n = 0; n < i; ++n) o[n] = P(e[n], t[n]);
for (; n < r; ++n) a[n] = t[n];
return function(e) {
for (n = 0; n < i; ++n) a[n] = o[n](e);
return a
}
},
F = function(e, t) {
var n = new Date;
return e = +e, t -= e,
function(r) {
return n.setTime(e + t * r), n
}
},
D = function(e, t) {
return e = +e, t -= e,
function(n) {
return e + t * n
}
},
Y = function(e, t) {
var n, r = {},
i = {};
null !== e && "object" === ("undefined" == typeof e ? "undefined" : _typeof(e)) || (e = {}), null !== t && "object" === ("undefined" == typeof t ? "undefined" : _typeof(t)) || (t = {});
for (n in t) n in e ? r[n] = P(e[n], t[n]) : i[n] = t[n];
return function(e) {
for (n in r) i[n] = r[n](e);
return i
}
},
U = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
E = new RegExp(U.source, "g"),
I = function(e, t) {
var n, r, i, o = U.lastIndex = E.lastIndex = 0,
a = -1,
u = [],
c = [];
for (e += "", t += "";
(n = U.exec(e)) && (r = E.exec(t));)(i = r.index) > o && (i = t.slice(o, i), u[a] ? u[a] += i : u[++a] = i), (n = n[0]) === (r = r[0]) ? u[a] ? u[a] += r : u[++a] = r : (u[++a] = null, c.push({
i: a,
x: D(n, r)
})), o = E.lastIndex;
return o < t.length && (i = t.slice(o), u[a] ? u[a] += i : u[++a] = i), u.length < 2 ? c[0] ? l(c[0].x) : f(t) : (t = c.length, function(e) {
for (var n, r = 0; r < t; ++r) u[(n = c[r]).i] = n.x(e);
return u.join("")
})
},
P = function(e, n) {
var r, i = "undefined" == typeof n ? "undefined" : _typeof(n);
return null == n || "boolean" === i ? k(n) : ("number" === i ? D : "string" === i ? (r = t.color(n)) ? (n = r, A) : I : n instanceof t.color ? A : n instanceof Date ? F : Array.isArray(n) ? N : isNaN(n) ? Y : D)(e, n)
},
q = function(e, t) {
return e = +e,
t -= e,
function(n) {
return Math.round(e + t * n)
}
},
L = 180 / Math.PI,
z = {
translateX: 0,
translateY: 0,
rotate: 0,
skewX: 0,
scaleX: 1,
scaleY: 1
},
H = function(e, t, n, r, i, o) {
var a, u, c;
return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (c = e * n + t * r) && (n -= e * c, r -= t * c), (u = Math.sqrt(n * n + r * r)) && (n /= u, r /= u, c /= u), e * r < t * n && (e = -e, t = -t, c = -c, a = -a), {
translateX: i,
translateY: o,
rotate: Math.atan2(t, e) * L,
skewX: Math.atan(c) * L,
scaleX: a,
scaleY: u
}
},
$ = h(s, "px, ", "px)", "deg)"),
R = h(d, ", ", ")", ")"),
B = Math.SQRT2,
W = 2,
X = 4,
V = 1e-12,
Q = function(e, t) {
var n, r, i = e[0],
o = e[1],
a = e[2],
u = t[0],
c = t[1],
f = t[2],
l = u - i,
s = c - o,
d = l * l + s * s;
if (d < V) r = Math.log(f / a) / B, n = function(e) {
return [i + e * l, o + e * s, a * Math.exp(B * e * r)]
};
else {
var h = Math.sqrt(d),
y = (f * f - a * a + X * d) / (2 * a * W * h),
v = (f * f - a * a - X * d) / (2 * f * W * h),
m = Math.log(Math.sqrt(y * y + 1) - y),
w = Math.log(Math.sqrt(v * v + 1) - v);
r = (w - m) / B, n = function(e) {
var t = e * r,
n = p(m),
u = a / (W * h) * (n * g(B * t + m) - b(m));
return [i + u * l, o + u * s, a * n / p(B * t + m)]
}
}
return n.duration = 1e3 * r, n
},
Z = y(o),
G = y(u),
J = m(o),
K = m(u),
ee = w(o),
te = w(u),
ne = function(e, t) {
for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
return n
};
e.interpolate = P, e.interpolateArray = N, e.interpolateBasis = O, e.interpolateBasisClosed = S, e.interpolateDate = F, e.interpolateNumber = D, e.interpolateObject = Y, e.interpolateRound = q, e.interpolateString = I, e.interpolateTransformCss = $, e.interpolateTransformSvg = R, e.interpolateZoom = Q, e.interpolateRgb = A, e.interpolateRgbBasis = T, e.interpolateRgbBasisClosed = C, e.interpolateHsl = Z, e.interpolateHslLong = G, e.interpolateLab = v, e.interpolateHcl = J, e.interpolateHclLong = K, e.interpolateCubehelix = ee, e.interpolateCubehelixLong = te, e.quantize = ne, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {
"d3-color": 3
}],
7: [function(e, t, n) {
! function(r, i) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? i(n, e("d3-array"), e("d3-collection"), e("d3-interpolate"), e("d3-format"), e("d3-time"), e("d3-time-format"), e("d3-color")) : "function" == typeof define && define.amd ? define(["exports", "d3-array", "d3-collection", "d3-interpolate", "d3-format", "d3-time", "d3-time-format", "d3-color"], i) : i(r.d3 = r.d3 || {}, r.d3, r.d3, r.d3, r.d3, r.d3, r.d3, r.d3)
}(this, function(e, t, n, r, i, o, a, u) {
function c(e) {
function t(t) {
var n = t + "",
a = r.get(n);
if (!a) {
if (o !== $) return o;
r.set(n, a = i.push(t))
}
return e[(a - 1) % e.length]
}
var r = n.map(),
i = [],
o = $;
return e = null == e ? [] : H.call(e), t.domain = function(e) {
if (!arguments.length) return i.slice();
i = [], r = n.map();
for (var o, a, u = -1, c = e.length; ++u < c;) r.has(a = (o = e[u]) + "") || r.set(a, i.push(o));
return t
}, t.range = function(n) {
return arguments.length ? (e = H.call(n), t) : e.slice()
}, t.unknown = function(e) {
return arguments.length ? (o = e, t) : o
}, t.copy = function() {
return c().domain(i).range(e).unknown(o)
}, t
}
function f() {
function e() {
var e = o().length,
i = u[1] < u[0],
c = u[i - 0],
f = u[1 - i];
n = (f - c) / Math.max(1, e - s + 2 * d), l && (n = Math.floor(n)), c += (f - c - n * (e - s)) * h, r = n * (1 - s), l && (c = Math.round(c), r = Math.round(r));
var p = t.range(e).map(function(e) {
return c + n * e
});
return a(i ? p.reverse() : p)
}
var n, r, i = c().unknown(void 0),
o = i.domain,
a = i.range,
u = [0, 1],
l = !1,
s = 0,
d = 0,
h = .5;
return delete i.unknown, i.domain = function(t) {
return arguments.length ? (o(t), e()) : o()
}, i.range = function(t) {
return arguments.length ? (u = [+t[0], +t[1]], e()) : u.slice()
}, i.rangeRound = function(t) {
return u = [+t[0], +t[1]], l = !0, e()
}, i.bandwidth = function() {
return r
}, i.step = function() {
return n
}, i.round = function(t) {
return arguments.length ? (l = !!t, e()) : l
}, i.padding = function(t) {
return arguments.length ? (s = d = Math.max(0, Math.min(1, t)), e()) : s
}, i.paddingInner = function(t) {
return arguments.length ? (s = Math.max(0, Math.min(1, t)), e()) : s
}, i.paddingOuter = function(t) {
return arguments.length ? (d = Math.max(0, Math.min(1, t)), e()) : d
}, i.align = function(t) {
return arguments.length ? (h = Math.max(0, Math.min(1, t)), e()) : h
}, i.copy = function() {
return f().domain(o()).range(u).round(l).paddingInner(s).paddingOuter(d).align(h)
}, e()
}
function l(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
return l(t())
}, e
}
function s() {
return l(f().paddingInner(1))
}
function d(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t
} : R(t)
}
function h(e) {
return function(t, n) {
var r = e(t = +t, n = +n);
return function(e) {
return e <= t ? 0 : e >= n ? 1 : r(e)
}
}
}
function p(e) {
return function(t, n) {
var r = e(t = +t, n = +n);
return function(e) {
return e <= 0 ? t : e >= 1 ? n : r(e)
}
}
}
function b(e, t, n, r) {
var i = e[0],
o = e[1],
a = t[0],
u = t[1];
return o < i ? (i = n(o, i), a = r(u, a)) : (i = n(i, o), a = r(a, u)),
function(e) {
return a(i(e))
}
}
function g(e, n, r, i) {
var o = Math.min(e.length, n.length) - 1,
a = new Array(o),
u = new Array(o),
c = -1;
for (e[o] < e[0] && (e = e.slice().reverse(), n = n.slice().reverse()); ++c < o;) a[c] = r(e[c], e[c + 1]), u[c] = i(n[c], n[c + 1]);
return function(n) {
var r = t.bisect(e, n, 1, o) - 1;
return u[r](a[r](n))
}
}
function y(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())
}
function v(e, t) {
function n() {
return o = Math.min(c.length, f.length) > 2 ? g : b, a = u = null, i
}
function i(t) {
return (a || (a = o(c, f, s ? h(e) : e, l)))(+t)
}
var o, a, u, c = W,
f = W,
l = r.interpolate,
s = !1;
return i.invert = function(e) {
return (u || (u = o(f, c, d, s ? p(t) : t)))(+e)
}, i.domain = function(e) {
return arguments.length ? (c = z.call(e, B), n()) : c.slice()
}, i.range = function(e) {
return arguments.length ? (f = H.call(e), n()) : f.slice()
}, i.rangeRound = function(e) {
return f = H.call(e), l = r.interpolateRound, n()
}, i.clamp = function(e) {
return arguments.length ? (s = !!e, n()) : s
}, i.interpolate = function(e) {
return arguments.length ? (l = e, n()) : l
}, n()
}
function m(e) {
var n = e.domain;
return e.ticks = function(e) {
var r = n();
return t.ticks(r[0], r[r.length - 1], null == e ? 10 : e)
}, e.tickFormat = function(e, t) {
return X(n(), e, t)
}, e.nice = function(r) {
var i = n(),
o = i.length - 1,
a = null == r ? 10 : r,
u = i[0],
c = i[o],
f = t.tickStep(u, c, a);
return f && (f = t.tickStep(Math.floor(u / f) * f, Math.ceil(c / f) * f, a), i[0] = Math.floor(u / f) * f, i[o] = Math.ceil(c / f) * f, n(i)), e
}, e
}
function w() {
var e = v(d, r.interpolateNumber);
return e.copy = function() {
return y(e, w())
}, m(e)
}
function M() {
function e(e) {
return +e
}
var t = [0, 1];
return e.invert = e, e.domain = e.range = function(n) {
return arguments.length ? (t = z.call(n, B), e) : t.slice()
}, e.copy = function() {
return M().domain(t)
}, m(e)
}
function _(e, t) {
return (t = Math.log(t / e)) ? function(n) {
return Math.log(n / e) / t
} : R(t)
}
function x(e, t) {
return e < 0 ? function(n) {
return -Math.pow(-t, n) * Math.pow(-e, 1 - n)
} : function(n) {
return Math.pow(t, n) * Math.pow(e, 1 - n)
}
}
function j(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e
}
function O(e) {
return 10 === e ? j : e === Math.E ? Math.exp : function(t) {
return Math.pow(e, t)
}
}
function S(e) {
return e === Math.E ? Math.log : 10 === e && Math.log10 || 2 === e && Math.log2 || (e = Math.log(e), function(t) {
return Math.log(t) / e
})
}
function k(e) {
return function(t) {
return -e(-t)
}
}
function A() {
function e() {
return a = S(o), u = O(o), r()[0] < 0 && (a = k(a), u = k(u)), n
}
var n = v(_, x).domain([1, 10]),
r = n.domain,
o = 10,
a = S(10),
u = O(10);
return n.base = function(t) {
return arguments.length ? (o = +t, e()) : o
}, n.domain = function(t) {
return arguments.length ? (r(t), e()) : r()
}, n.ticks = function(e) {
var n, i = r(),
c = i[0],
f = i[i.length - 1];
(n = f < c) && (h = c, c = f, f = h);
var l, s, d, h = a(c),
p = a(f),
b = null == e ? 10 : +e,
g = [];
if (!(o % 1) && p - h < b) {
if (h = Math.round(h) - 1, p = Math.round(p) + 1, c > 0) {
for (; h < p; ++h)
for (s = 1, l = u(h); s < o; ++s)
if (d = l * s, !(d < c)) {
if (d > f) break;
g.push(d)
}
} else
for (; h < p; ++h)
for (s = o - 1, l = u(h); s >= 1; --s)
if (d = l * s, !(d < c)) {
if (d > f) break;
g.push(d)
}
} else g = t.ticks(h, p, Math.min(p - h, b)).map(u);
return n ? g.reverse() : g
}, n.tickFormat = function(e, t) {
if (null == t && (t = 10 === o ? ".0e" : ","), "function" != typeof t && (t = i.format(t)), e === 1 / 0) return t;
null == e && (e = 10);
var r = Math.max(1, o * e / n.ticks().length);
return function(e) {
var n = e / u(Math.round(a(e)));
return n * o < o - .5 && (n *= o), n <= r ? t(e) : ""
}
}, n.nice = function() {
return r(V(r(), {
floor: function(e) {
return u(Math.floor(a(e)))
},
ceil: function(e) {
return u(Math.ceil(a(e)))
}
}))
}, n.copy = function() {
return y(n, A().base(o))
}, n
}
function T(e, t) {
return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t)
}
function C() {
function e(e, t) {
return (t = T(t, n) - (e = T(e, n))) ? function(r) {
return (T(r, n) - e) / t
} : R(t)
}
function t(e, t) {
return t = T(t, n) - (e = T(e, n)),
function(r) {
return T(e + t * r, 1 / n)
}
}
var n = 1,
r = v(e, t),
i = r.domain;
return r.exponent = function(e) {
return arguments.length ? (n = +e, i(i())) : n
}, r.copy = function() {
return y(r, C().exponent(n))
}, m(r)
}
function N() {
return C().exponent(.5)
}
function F() {
function e() {