@webskill/sdk 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +1012 -130
- package/dist/{approval-DwN2o2QG.js → approval-DWQlDPbY.js} +102 -16
- package/dist/arc-8U_6NQWm.js +130 -0
- package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
- package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
- package/dist/array-DQfpQNY8.js +8 -0
- package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
- package/dist/browser.d.ts +444 -48
- package/dist/browser.js +1771 -91
- package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
- package/dist/channel-CZxxLrG7.js +9 -0
- package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
- package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
- package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
- package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
- package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
- package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
- package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
- package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
- package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
- package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
- package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
- package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
- package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
- package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
- package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
- package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
- package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
- package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
- package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
- package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
- package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
- package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
- package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
- package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
- package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
- package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
- package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
- package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
- package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
- package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
- package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
- package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
- package/dist/defaultLocale-B_EoOkSF.js +249 -0
- package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
- package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
- package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
- package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
- package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
- package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
- package/dist/dist-UajCDt3n.js +92 -0
- package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
- package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
- package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
- package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/{toolSource-C9oNuKmr.js → geometry-wx5ZTYzi.js} +162 -12
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +3 -3
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-B8Tgmpwh.d.ts → index-BiO9_XRk.d.ts} +2 -2
- package/dist/{index-CYLt5u4L.d.ts → index-CjwdZQOS.d.ts} +700 -12
- package/dist/{index-DHopiH_m.d.ts → index-YPd8ZSEa.d.ts} +156 -9
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
- package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
- package/dist/init-CMOIWdg-.js +16 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
- package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
- package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
- package/dist/katex-BcRRvyh_.js +26465 -0
- package/dist/{kind-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
- package/dist/line-LgV8iVMV.js +48 -0
- package/dist/linear-BWKR0Tqd.js +393 -0
- package/dist/linkedDocument-CIuh_Yp0.js +416 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
- package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
- package/dist/mermaid.core-DMtwGCHy.js +1756 -0
- package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
- package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
- package/dist/ordinal-CxA6GHQS.js +84 -0
- package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
- package/dist/path-C27Z2Bjv.js +106 -0
- package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
- package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
- package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
- package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
- package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
- package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
- package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
- package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
- package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
- package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
- package/dist/rough.cjs-AmDd_NQk.js +1395 -0
- package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
- package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
- package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
- package/dist/{skillVersionStore-B24Jjjry-BkOk9wI_.d.ts → skillVersionStore-B24Jjjry-BY1H7Krp.d.ts} +1 -1
- package/dist/src-NkhI3UMl.js +2653 -0
- package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
- package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
- package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +1 -1
- package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
- package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
- package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
- package/dist/{types-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BM5FI9oN.d.ts} +59 -8
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +3718 -77
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
- package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
- package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
- package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
- package/dist/{webSkillApi-Cib6G-94.js → webSkillApi-Dy-Zjv0y.js} +1 -1
- package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
- package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
- package/package.json +1 -1
- package/dist/linkedDocument-C0gj1sMq.js +0 -245
|
@@ -0,0 +1,2653 @@
|
|
|
1
|
+
import { o as __toESM, t as __commonJSMin } from "./rolldown-runtime-BHkdefai.js";
|
|
2
|
+
import { n as __name } from "./chunk-Y2CYZVJY-U3QOMqrW.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/dayjs.min.js
|
|
5
|
+
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
(function(t, e) {
|
|
7
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
8
|
+
})(exports, (function() {
|
|
9
|
+
"use strict";
|
|
10
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
|
|
11
|
+
name: "en",
|
|
12
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
13
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
14
|
+
ordinal: function(t) {
|
|
15
|
+
var e = [
|
|
16
|
+
"th",
|
|
17
|
+
"st",
|
|
18
|
+
"nd",
|
|
19
|
+
"rd"
|
|
20
|
+
], n = t % 100;
|
|
21
|
+
return "[" + t + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
|
|
22
|
+
}
|
|
23
|
+
}, m = function(t, e, n) {
|
|
24
|
+
var r = String(t);
|
|
25
|
+
return !r || r.length >= e ? t : "" + Array(e + 1 - r.length).join(n) + t;
|
|
26
|
+
}, v = {
|
|
27
|
+
s: m,
|
|
28
|
+
z: function(t) {
|
|
29
|
+
var e = -t.utcOffset(), n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
|
|
30
|
+
return (e <= 0 ? "+" : "-") + m(r, 2, "0") + ":" + m(i, 2, "0");
|
|
31
|
+
},
|
|
32
|
+
m: function t(e, n) {
|
|
33
|
+
if (e.date() < n.date()) return -t(n, e);
|
|
34
|
+
var r = 12 * (n.year() - e.year()) + (n.month() - e.month()), i = e.clone().add(r, c), s = n - i < 0, u = e.clone().add(r + (s ? -1 : 1), c);
|
|
35
|
+
return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
|
|
36
|
+
},
|
|
37
|
+
a: function(t) {
|
|
38
|
+
return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
|
|
39
|
+
},
|
|
40
|
+
p: function(t) {
|
|
41
|
+
return {
|
|
42
|
+
M: c,
|
|
43
|
+
y: h,
|
|
44
|
+
w: o,
|
|
45
|
+
d: a,
|
|
46
|
+
D: d,
|
|
47
|
+
h: u,
|
|
48
|
+
m: s,
|
|
49
|
+
s: i,
|
|
50
|
+
ms: r,
|
|
51
|
+
Q: f
|
|
52
|
+
}[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
53
|
+
},
|
|
54
|
+
u: function(t) {
|
|
55
|
+
return void 0 === t;
|
|
56
|
+
}
|
|
57
|
+
}, g = "en", D = {};
|
|
58
|
+
D[g] = M;
|
|
59
|
+
var p = "$isDayjsObject", S = function(t) {
|
|
60
|
+
return t instanceof _ || !(!t || !t[p]);
|
|
61
|
+
}, w = function t(e, n, r) {
|
|
62
|
+
var i;
|
|
63
|
+
if (!e) return g;
|
|
64
|
+
if ("string" == typeof e) {
|
|
65
|
+
var s = e.toLowerCase();
|
|
66
|
+
D[s] && (i = s), n && (D[s] = n, i = s);
|
|
67
|
+
var u = e.split("-");
|
|
68
|
+
if (!i && u.length > 1) return t(u[0]);
|
|
69
|
+
} else {
|
|
70
|
+
var a = e.name;
|
|
71
|
+
D[a] = e, i = a;
|
|
72
|
+
}
|
|
73
|
+
return !r && i && (g = i), i || !r && g;
|
|
74
|
+
}, O = function(t, e) {
|
|
75
|
+
if (S(t)) return t.clone();
|
|
76
|
+
var n = "object" == typeof e ? e : {};
|
|
77
|
+
return n.date = t, n.args = arguments, new _(n);
|
|
78
|
+
}, b = v;
|
|
79
|
+
b.l = w, b.i = S, b.w = function(t, e) {
|
|
80
|
+
return O(t, {
|
|
81
|
+
locale: e.$L,
|
|
82
|
+
utc: e.$u,
|
|
83
|
+
x: e.$x,
|
|
84
|
+
$offset: e.$offset
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
var _ = function() {
|
|
88
|
+
function M(t) {
|
|
89
|
+
this.$L = w(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[p] = !0;
|
|
90
|
+
}
|
|
91
|
+
var m = M.prototype;
|
|
92
|
+
return m.parse = function(t) {
|
|
93
|
+
this.$d = function(t) {
|
|
94
|
+
var e = t.date, n = t.utc;
|
|
95
|
+
if (null === e) return /* @__PURE__ */ new Date(NaN);
|
|
96
|
+
if (b.u(e)) return /* @__PURE__ */ new Date();
|
|
97
|
+
if (e instanceof Date) return new Date(e);
|
|
98
|
+
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
99
|
+
var r = e.match($);
|
|
100
|
+
if (r) {
|
|
101
|
+
var i = r[2] - 1 || 0, s = (r[7] || "0").substring(0, 3);
|
|
102
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return new Date(e);
|
|
106
|
+
}(t), this.init();
|
|
107
|
+
}, m.init = function() {
|
|
108
|
+
var t = this.$d;
|
|
109
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
110
|
+
}, m.$utils = function() {
|
|
111
|
+
return b;
|
|
112
|
+
}, m.isValid = function() {
|
|
113
|
+
return !(this.$d.toString() === l);
|
|
114
|
+
}, m.isSame = function(t, e) {
|
|
115
|
+
var n = O(t);
|
|
116
|
+
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
117
|
+
}, m.isAfter = function(t, e) {
|
|
118
|
+
return O(t) < this.startOf(e);
|
|
119
|
+
}, m.isBefore = function(t, e) {
|
|
120
|
+
return this.endOf(e) < O(t);
|
|
121
|
+
}, m.$g = function(t, e, n) {
|
|
122
|
+
return b.u(t) ? this[e] : this.set(n, t);
|
|
123
|
+
}, m.unix = function() {
|
|
124
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
125
|
+
}, m.valueOf = function() {
|
|
126
|
+
return this.$d.getTime();
|
|
127
|
+
}, m.startOf = function(t, e) {
|
|
128
|
+
var n = this, r = !!b.u(e) || e, f = b.p(t), l = function(t, e) {
|
|
129
|
+
var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
130
|
+
return r ? i : i.endOf(a);
|
|
131
|
+
}, $ = function(t, e) {
|
|
132
|
+
return b.w(n.toDate()[t].apply(n.toDate("s"), (r ? [
|
|
133
|
+
0,
|
|
134
|
+
0,
|
|
135
|
+
0,
|
|
136
|
+
0
|
|
137
|
+
] : [
|
|
138
|
+
23,
|
|
139
|
+
59,
|
|
140
|
+
59,
|
|
141
|
+
999
|
|
142
|
+
]).slice(e)), n);
|
|
143
|
+
}, y = this.$W, M = this.$M, m = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
144
|
+
switch (f) {
|
|
145
|
+
case h: return r ? l(1, 0) : l(31, 11);
|
|
146
|
+
case c: return r ? l(1, M) : l(0, M + 1);
|
|
147
|
+
case o:
|
|
148
|
+
var g = this.$locale().weekStart || 0, D = (y < g ? y + 7 : y) - g;
|
|
149
|
+
return l(r ? m - D : m + (6 - D), M);
|
|
150
|
+
case a:
|
|
151
|
+
case d: return $(v + "Hours", 0);
|
|
152
|
+
case u: return $(v + "Minutes", 1);
|
|
153
|
+
case s: return $(v + "Seconds", 2);
|
|
154
|
+
case i: return $(v + "Milliseconds", 3);
|
|
155
|
+
default: return this.clone();
|
|
156
|
+
}
|
|
157
|
+
}, m.endOf = function(t) {
|
|
158
|
+
return this.startOf(t, !1);
|
|
159
|
+
}, m.$set = function(t, e) {
|
|
160
|
+
var n, o = b.p(t), f = "set" + (this.$u ? "UTC" : ""), l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o], $ = o === a ? this.$D + (e - this.$W) : e;
|
|
161
|
+
if (o === c || o === h) {
|
|
162
|
+
var y = this.clone().set(d, 1);
|
|
163
|
+
y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
|
|
164
|
+
} else l && this.$d[l]($);
|
|
165
|
+
return this.init(), this;
|
|
166
|
+
}, m.set = function(t, e) {
|
|
167
|
+
return this.clone().$set(t, e);
|
|
168
|
+
}, m.get = function(t) {
|
|
169
|
+
return this[b.p(t)]();
|
|
170
|
+
}, m.add = function(r, f) {
|
|
171
|
+
var d, l = this;
|
|
172
|
+
r = Number(r);
|
|
173
|
+
var $ = b.p(f), y = function(t) {
|
|
174
|
+
var e = O(l);
|
|
175
|
+
return b.w(e.date(e.date() + Math.round(t * r)), l);
|
|
176
|
+
};
|
|
177
|
+
if ($ === c) return this.set(c, this.$M + r);
|
|
178
|
+
if ($ === h) return this.set(h, this.$y + r);
|
|
179
|
+
if ($ === a) return y(1);
|
|
180
|
+
if ($ === o) return y(7);
|
|
181
|
+
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1, m = this.$d.getTime() + r * M;
|
|
182
|
+
return b.w(m, this);
|
|
183
|
+
}, m.subtract = function(t, e) {
|
|
184
|
+
return this.add(-1 * t, e);
|
|
185
|
+
}, m.format = function(t) {
|
|
186
|
+
var e = this, n = this.$locale();
|
|
187
|
+
if (!this.isValid()) return n.invalidDate || l;
|
|
188
|
+
var r = t || "YYYY-MM-DDTHH:mm:ssZ", i = b.z(this), s = this.$H, u = this.$m, a = this.$M, o = n.weekdays, c = n.months, f = n.meridiem, h = function(t, n, i, s) {
|
|
189
|
+
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
190
|
+
}, d = function(t) {
|
|
191
|
+
return b.s(s % 12 || 12, t, "0");
|
|
192
|
+
}, $ = f || function(t, e, n) {
|
|
193
|
+
var r = t < 12 ? "AM" : "PM";
|
|
194
|
+
return n ? r.toLowerCase() : r;
|
|
195
|
+
};
|
|
196
|
+
return r.replace(y, (function(t, r) {
|
|
197
|
+
return r || function(t) {
|
|
198
|
+
switch (t) {
|
|
199
|
+
case "YY": return String(e.$y).slice(-2);
|
|
200
|
+
case "YYYY": return b.s(e.$y, 4, "0");
|
|
201
|
+
case "M": return a + 1;
|
|
202
|
+
case "MM": return b.s(a + 1, 2, "0");
|
|
203
|
+
case "MMM": return h(n.monthsShort, a, c, 3);
|
|
204
|
+
case "MMMM": return h(c, a);
|
|
205
|
+
case "D": return e.$D;
|
|
206
|
+
case "DD": return b.s(e.$D, 2, "0");
|
|
207
|
+
case "d": return String(e.$W);
|
|
208
|
+
case "dd": return h(n.weekdaysMin, e.$W, o, 2);
|
|
209
|
+
case "ddd": return h(n.weekdaysShort, e.$W, o, 3);
|
|
210
|
+
case "dddd": return o[e.$W];
|
|
211
|
+
case "H": return String(s);
|
|
212
|
+
case "HH": return b.s(s, 2, "0");
|
|
213
|
+
case "h": return d(1);
|
|
214
|
+
case "hh": return d(2);
|
|
215
|
+
case "a": return $(s, u, !0);
|
|
216
|
+
case "A": return $(s, u, !1);
|
|
217
|
+
case "m": return String(u);
|
|
218
|
+
case "mm": return b.s(u, 2, "0");
|
|
219
|
+
case "s": return String(e.$s);
|
|
220
|
+
case "ss": return b.s(e.$s, 2, "0");
|
|
221
|
+
case "SSS": return b.s(e.$ms, 3, "0");
|
|
222
|
+
case "Z": return i;
|
|
223
|
+
}
|
|
224
|
+
return null;
|
|
225
|
+
}(t) || i.replace(":", "");
|
|
226
|
+
}));
|
|
227
|
+
}, m.utcOffset = function() {
|
|
228
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
229
|
+
}, m.diff = function(r, d, l) {
|
|
230
|
+
var $, y = this, M = b.p(d), m = O(r), v = (m.utcOffset() - this.utcOffset()) * e, g = this - m, D = function() {
|
|
231
|
+
return b.m(y, m);
|
|
232
|
+
};
|
|
233
|
+
switch (M) {
|
|
234
|
+
case h:
|
|
235
|
+
$ = D() / 12;
|
|
236
|
+
break;
|
|
237
|
+
case c:
|
|
238
|
+
$ = D();
|
|
239
|
+
break;
|
|
240
|
+
case f:
|
|
241
|
+
$ = D() / 3;
|
|
242
|
+
break;
|
|
243
|
+
case o:
|
|
244
|
+
$ = (g - v) / 6048e5;
|
|
245
|
+
break;
|
|
246
|
+
case a:
|
|
247
|
+
$ = (g - v) / 864e5;
|
|
248
|
+
break;
|
|
249
|
+
case u:
|
|
250
|
+
$ = g / n;
|
|
251
|
+
break;
|
|
252
|
+
case s:
|
|
253
|
+
$ = g / e;
|
|
254
|
+
break;
|
|
255
|
+
case i:
|
|
256
|
+
$ = g / t;
|
|
257
|
+
break;
|
|
258
|
+
default: $ = g;
|
|
259
|
+
}
|
|
260
|
+
return l ? $ : b.a($);
|
|
261
|
+
}, m.daysInMonth = function() {
|
|
262
|
+
return this.endOf(c).$D;
|
|
263
|
+
}, m.$locale = function() {
|
|
264
|
+
return D[this.$L];
|
|
265
|
+
}, m.locale = function(t, e) {
|
|
266
|
+
if (!t) return this.$L;
|
|
267
|
+
var n = this.clone(), r = w(t, e, !0);
|
|
268
|
+
return r && (n.$L = r), n;
|
|
269
|
+
}, m.clone = function() {
|
|
270
|
+
return b.w(this.$d, this);
|
|
271
|
+
}, m.toDate = function() {
|
|
272
|
+
return new Date(this.valueOf());
|
|
273
|
+
}, m.toJSON = function() {
|
|
274
|
+
return this.isValid() ? this.toISOString() : null;
|
|
275
|
+
}, m.toISOString = function() {
|
|
276
|
+
return this.$d.toISOString();
|
|
277
|
+
}, m.toString = function() {
|
|
278
|
+
return this.$d.toUTCString();
|
|
279
|
+
}, M;
|
|
280
|
+
}(), Y = _.prototype;
|
|
281
|
+
return O.prototype = Y, [
|
|
282
|
+
["$ms", r],
|
|
283
|
+
["$s", i],
|
|
284
|
+
["$m", s],
|
|
285
|
+
["$H", u],
|
|
286
|
+
["$W", a],
|
|
287
|
+
["$M", c],
|
|
288
|
+
["$y", h],
|
|
289
|
+
["$D", d]
|
|
290
|
+
].forEach((function(t) {
|
|
291
|
+
Y[t[1]] = function(e) {
|
|
292
|
+
return this.$g(e, t[0], t[1]);
|
|
293
|
+
};
|
|
294
|
+
})), O.extend = function(t, e) {
|
|
295
|
+
return t.$i || (t(e, _, O), t.$i = !0), O;
|
|
296
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t) {
|
|
297
|
+
return O(1e3 * t);
|
|
298
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
299
|
+
}));
|
|
300
|
+
}));
|
|
301
|
+
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region ../../node_modules/.pnpm/mermaid@12.0.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.mjs
|
|
304
|
+
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
|
|
305
|
+
var LEVELS = {
|
|
306
|
+
trace: 0,
|
|
307
|
+
debug: 1,
|
|
308
|
+
info: 2,
|
|
309
|
+
warn: 3,
|
|
310
|
+
error: 4,
|
|
311
|
+
fatal: 5
|
|
312
|
+
};
|
|
313
|
+
var log = {
|
|
314
|
+
trace: /* @__PURE__ */ __name((..._args) => {}, "trace"),
|
|
315
|
+
debug: /* @__PURE__ */ __name((..._args) => {}, "debug"),
|
|
316
|
+
info: /* @__PURE__ */ __name((..._args) => {}, "info"),
|
|
317
|
+
warn: /* @__PURE__ */ __name((..._args) => {}, "warn"),
|
|
318
|
+
error: /* @__PURE__ */ __name((..._args) => {}, "error"),
|
|
319
|
+
fatal: /* @__PURE__ */ __name((..._args) => {}, "fatal")
|
|
320
|
+
};
|
|
321
|
+
var setLogLevel = /* @__PURE__ */ __name(function(level = "fatal") {
|
|
322
|
+
let numericLevel = LEVELS.fatal;
|
|
323
|
+
if (typeof level === "string") {
|
|
324
|
+
if (level.toLowerCase() in LEVELS) numericLevel = LEVELS[level];
|
|
325
|
+
} else if (typeof level === "number") numericLevel = level;
|
|
326
|
+
log.trace = () => {};
|
|
327
|
+
log.debug = () => {};
|
|
328
|
+
log.info = () => {};
|
|
329
|
+
log.warn = () => {};
|
|
330
|
+
log.error = () => {};
|
|
331
|
+
log.fatal = () => {};
|
|
332
|
+
if (numericLevel <= LEVELS.fatal) log.fatal = console.error ? console.error.bind(console, format("FATAL"), "color: orange") : console.log.bind(console, "\x1B[35m", format("FATAL"));
|
|
333
|
+
if (numericLevel <= LEVELS.error) log.error = console.error ? console.error.bind(console, format("ERROR"), "color: orange") : console.log.bind(console, "\x1B[31m", format("ERROR"));
|
|
334
|
+
if (numericLevel <= LEVELS.warn) log.warn = console.warn ? console.warn.bind(console, format("WARN"), "color: orange") : console.log.bind(console, `\x1B[33m`, format("WARN"));
|
|
335
|
+
if (numericLevel <= LEVELS.info) log.info = console.info ? console.info.bind(console, format("INFO"), "color: lightblue") : console.log.bind(console, "\x1B[34m", format("INFO"));
|
|
336
|
+
if (numericLevel <= LEVELS.debug) log.debug = console.debug ? console.debug.bind(console, format("DEBUG"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("DEBUG"));
|
|
337
|
+
if (numericLevel <= LEVELS.trace) log.trace = console.debug ? console.debug.bind(console, format("TRACE"), "color: lightgreen") : console.log.bind(console, "\x1B[32m", format("TRACE"));
|
|
338
|
+
}, "setLogLevel");
|
|
339
|
+
var format = /* @__PURE__ */ __name((level) => {
|
|
340
|
+
return `%c${(0, import_dayjs_min.default)().format("ss.SSS")} : ${level} : `;
|
|
341
|
+
}, "format");
|
|
342
|
+
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
|
|
345
|
+
var noop = { value: () => {} };
|
|
346
|
+
function dispatch() {
|
|
347
|
+
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
|
|
348
|
+
if (!(t = arguments[i] + "") || t in _ || /[\s.]/.test(t)) throw new Error("illegal type: " + t);
|
|
349
|
+
_[t] = [];
|
|
350
|
+
}
|
|
351
|
+
return new Dispatch(_);
|
|
352
|
+
}
|
|
353
|
+
function Dispatch(_) {
|
|
354
|
+
this._ = _;
|
|
355
|
+
}
|
|
356
|
+
function parseTypenames$1(typenames, types) {
|
|
357
|
+
return typenames.trim().split(/^|\s+/).map(function(t) {
|
|
358
|
+
var name = "", i = t.indexOf(".");
|
|
359
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
|
360
|
+
if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t);
|
|
361
|
+
return {
|
|
362
|
+
type: t,
|
|
363
|
+
name
|
|
364
|
+
};
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
Dispatch.prototype = dispatch.prototype = {
|
|
368
|
+
constructor: Dispatch,
|
|
369
|
+
on: function(typename, callback) {
|
|
370
|
+
var _ = this._, T = parseTypenames$1(typename + "", _), t, i = -1, n = T.length;
|
|
371
|
+
if (arguments.length < 2) {
|
|
372
|
+
while (++i < n) if ((t = (typename = T[i]).type) && (t = get$1(_[t], typename.name))) return t;
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback);
|
|
376
|
+
while (++i < n) if (t = (typename = T[i]).type) _[t] = set$1(_[t], typename.name, callback);
|
|
377
|
+
else if (callback == null) for (t in _) _[t] = set$1(_[t], typename.name, null);
|
|
378
|
+
return this;
|
|
379
|
+
},
|
|
380
|
+
copy: function() {
|
|
381
|
+
var copy = {}, _ = this._;
|
|
382
|
+
for (var t in _) copy[t] = _[t].slice();
|
|
383
|
+
return new Dispatch(copy);
|
|
384
|
+
},
|
|
385
|
+
call: function(type, that) {
|
|
386
|
+
if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2];
|
|
387
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
|
388
|
+
for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
|
389
|
+
},
|
|
390
|
+
apply: function(type, that, args) {
|
|
391
|
+
if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type);
|
|
392
|
+
for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args);
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
function get$1(type, name) {
|
|
396
|
+
for (var i = 0, n = type.length, c; i < n; ++i) if ((c = type[i]).name === name) return c.value;
|
|
397
|
+
}
|
|
398
|
+
function set$1(type, name, callback) {
|
|
399
|
+
for (var i = 0, n = type.length; i < n; ++i) if (type[i].name === name) {
|
|
400
|
+
type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
if (callback != null) type.push({
|
|
404
|
+
name,
|
|
405
|
+
value: callback
|
|
406
|
+
});
|
|
407
|
+
return type;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.js
|
|
412
|
+
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
413
|
+
var namespaces_default = {
|
|
414
|
+
svg: "http://www.w3.org/2000/svg",
|
|
415
|
+
xhtml,
|
|
416
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
417
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
418
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
|
|
423
|
+
function namespace_default(name) {
|
|
424
|
+
var prefix = name += "", i = prefix.indexOf(":");
|
|
425
|
+
if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
|
|
426
|
+
return namespaces_default.hasOwnProperty(prefix) ? {
|
|
427
|
+
space: namespaces_default[prefix],
|
|
428
|
+
local: name
|
|
429
|
+
} : name;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
|
|
434
|
+
function creatorInherit(name) {
|
|
435
|
+
return function() {
|
|
436
|
+
var document = this.ownerDocument, uri = this.namespaceURI;
|
|
437
|
+
return uri === "http://www.w3.org/1999/xhtml" && document.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? document.createElement(name) : document.createElementNS(uri, name);
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
function creatorFixed(fullname) {
|
|
441
|
+
return function() {
|
|
442
|
+
return this.ownerDocument.createElementNS(fullname.space, fullname.local);
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
function creator_default(name) {
|
|
446
|
+
var fullname = namespace_default(name);
|
|
447
|
+
return (fullname.local ? creatorFixed : creatorInherit)(fullname);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
|
|
452
|
+
function none() {}
|
|
453
|
+
function selector_default(selector) {
|
|
454
|
+
return selector == null ? none : function() {
|
|
455
|
+
return this.querySelector(selector);
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
|
|
461
|
+
function select_default$2(select) {
|
|
462
|
+
if (typeof select !== "function") select = selector_default(select);
|
|
463
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
464
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
|
465
|
+
subgroup[i] = subnode;
|
|
466
|
+
}
|
|
467
|
+
return new Selection$1(subgroups, this._parents);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
|
|
472
|
+
function array(x) {
|
|
473
|
+
return x == null ? [] : Array.isArray(x) ? x : Array.from(x);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
|
|
478
|
+
function empty() {
|
|
479
|
+
return [];
|
|
480
|
+
}
|
|
481
|
+
function selectorAll_default(selector) {
|
|
482
|
+
return selector == null ? empty : function() {
|
|
483
|
+
return this.querySelectorAll(selector);
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
|
|
489
|
+
function arrayAll(select) {
|
|
490
|
+
return function() {
|
|
491
|
+
return array(select.apply(this, arguments));
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
function selectAll_default$1(select) {
|
|
495
|
+
if (typeof select === "function") select = arrayAll(select);
|
|
496
|
+
else select = selectorAll_default(select);
|
|
497
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) if (node = group[i]) {
|
|
498
|
+
subgroups.push(select.call(node, node.__data__, i, group));
|
|
499
|
+
parents.push(node);
|
|
500
|
+
}
|
|
501
|
+
return new Selection$1(subgroups, parents);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
|
|
506
|
+
function matcher_default(selector) {
|
|
507
|
+
return function() {
|
|
508
|
+
return this.matches(selector);
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
function childMatcher(selector) {
|
|
512
|
+
return function(node) {
|
|
513
|
+
return node.matches(selector);
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
|
|
519
|
+
var find = Array.prototype.find;
|
|
520
|
+
function childFind(match) {
|
|
521
|
+
return function() {
|
|
522
|
+
return find.call(this.children, match);
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function childFirst() {
|
|
526
|
+
return this.firstElementChild;
|
|
527
|
+
}
|
|
528
|
+
function selectChild_default(match) {
|
|
529
|
+
return this.select(match == null ? childFirst : childFind(typeof match === "function" ? match : childMatcher(match)));
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
|
|
534
|
+
var filter = Array.prototype.filter;
|
|
535
|
+
function children() {
|
|
536
|
+
return Array.from(this.children);
|
|
537
|
+
}
|
|
538
|
+
function childrenFilter(match) {
|
|
539
|
+
return function() {
|
|
540
|
+
return filter.call(this.children, match);
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
function selectChildren_default(match) {
|
|
544
|
+
return this.selectAll(match == null ? children : childrenFilter(typeof match === "function" ? match : childMatcher(match)));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
|
|
549
|
+
function filter_default$1(match) {
|
|
550
|
+
if (typeof match !== "function") match = matcher_default(match);
|
|
551
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) if ((node = group[i]) && match.call(node, node.__data__, i, group)) subgroup.push(node);
|
|
552
|
+
return new Selection$1(subgroups, this._parents);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
|
|
557
|
+
function sparse_default(update) {
|
|
558
|
+
return new Array(update.length);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
|
|
563
|
+
function enter_default() {
|
|
564
|
+
return new Selection$1(this._enter || this._groups.map(sparse_default), this._parents);
|
|
565
|
+
}
|
|
566
|
+
function EnterNode(parent, datum) {
|
|
567
|
+
this.ownerDocument = parent.ownerDocument;
|
|
568
|
+
this.namespaceURI = parent.namespaceURI;
|
|
569
|
+
this._next = null;
|
|
570
|
+
this._parent = parent;
|
|
571
|
+
this.__data__ = datum;
|
|
572
|
+
}
|
|
573
|
+
EnterNode.prototype = {
|
|
574
|
+
constructor: EnterNode,
|
|
575
|
+
appendChild: function(child) {
|
|
576
|
+
return this._parent.insertBefore(child, this._next);
|
|
577
|
+
},
|
|
578
|
+
insertBefore: function(child, next) {
|
|
579
|
+
return this._parent.insertBefore(child, next);
|
|
580
|
+
},
|
|
581
|
+
querySelector: function(selector) {
|
|
582
|
+
return this._parent.querySelector(selector);
|
|
583
|
+
},
|
|
584
|
+
querySelectorAll: function(selector) {
|
|
585
|
+
return this._parent.querySelectorAll(selector);
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
|
|
591
|
+
function constant_default$1(x) {
|
|
592
|
+
return function() {
|
|
593
|
+
return x;
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
|
|
599
|
+
function bindIndex(parent, group, enter, update, exit, data) {
|
|
600
|
+
var i = 0, node, groupLength = group.length, dataLength = data.length;
|
|
601
|
+
for (; i < dataLength; ++i) if (node = group[i]) {
|
|
602
|
+
node.__data__ = data[i];
|
|
603
|
+
update[i] = node;
|
|
604
|
+
} else enter[i] = new EnterNode(parent, data[i]);
|
|
605
|
+
for (; i < groupLength; ++i) if (node = group[i]) exit[i] = node;
|
|
606
|
+
}
|
|
607
|
+
function bindKey(parent, group, enter, update, exit, data, key) {
|
|
608
|
+
var i, node, nodeByKeyValue = /* @__PURE__ */ new Map(), groupLength = group.length, dataLength = data.length, keyValues = new Array(groupLength), keyValue;
|
|
609
|
+
for (i = 0; i < groupLength; ++i) if (node = group[i]) {
|
|
610
|
+
keyValues[i] = keyValue = key.call(node, node.__data__, i, group) + "";
|
|
611
|
+
if (nodeByKeyValue.has(keyValue)) exit[i] = node;
|
|
612
|
+
else nodeByKeyValue.set(keyValue, node);
|
|
613
|
+
}
|
|
614
|
+
for (i = 0; i < dataLength; ++i) {
|
|
615
|
+
keyValue = key.call(parent, data[i], i, data) + "";
|
|
616
|
+
if (node = nodeByKeyValue.get(keyValue)) {
|
|
617
|
+
update[i] = node;
|
|
618
|
+
node.__data__ = data[i];
|
|
619
|
+
nodeByKeyValue.delete(keyValue);
|
|
620
|
+
} else enter[i] = new EnterNode(parent, data[i]);
|
|
621
|
+
}
|
|
622
|
+
for (i = 0; i < groupLength; ++i) if ((node = group[i]) && nodeByKeyValue.get(keyValues[i]) === node) exit[i] = node;
|
|
623
|
+
}
|
|
624
|
+
function datum(node) {
|
|
625
|
+
return node.__data__;
|
|
626
|
+
}
|
|
627
|
+
function data_default(value, key) {
|
|
628
|
+
if (!arguments.length) return Array.from(this, datum);
|
|
629
|
+
var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
|
|
630
|
+
if (typeof value !== "function") value = constant_default$1(value);
|
|
631
|
+
for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
|
|
632
|
+
var parent = parents[j], group = groups[j], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j, parents)), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength);
|
|
633
|
+
bind(parent, group, enterGroup, updateGroup, exit[j] = new Array(groupLength), data, key);
|
|
634
|
+
for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) if (previous = enterGroup[i0]) {
|
|
635
|
+
if (i0 >= i1) i1 = i0 + 1;
|
|
636
|
+
while (!(next = updateGroup[i1]) && ++i1 < dataLength);
|
|
637
|
+
previous._next = next || null;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
update = new Selection$1(update, parents);
|
|
641
|
+
update._enter = enter;
|
|
642
|
+
update._exit = exit;
|
|
643
|
+
return update;
|
|
644
|
+
}
|
|
645
|
+
function arraylike(data) {
|
|
646
|
+
return typeof data === "object" && "length" in data ? data : Array.from(data);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
//#endregion
|
|
650
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
|
|
651
|
+
function exit_default() {
|
|
652
|
+
return new Selection$1(this._exit || this._groups.map(sparse_default), this._parents);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
|
|
657
|
+
function join_default(onenter, onupdate, onexit) {
|
|
658
|
+
var enter = this.enter(), update = this, exit = this.exit();
|
|
659
|
+
if (typeof onenter === "function") {
|
|
660
|
+
enter = onenter(enter);
|
|
661
|
+
if (enter) enter = enter.selection();
|
|
662
|
+
} else enter = enter.append(onenter + "");
|
|
663
|
+
if (onupdate != null) {
|
|
664
|
+
update = onupdate(update);
|
|
665
|
+
if (update) update = update.selection();
|
|
666
|
+
}
|
|
667
|
+
if (onexit == null) exit.remove();
|
|
668
|
+
else onexit(exit);
|
|
669
|
+
return enter && update ? enter.merge(update).order() : update;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
|
|
674
|
+
function merge_default$1(context) {
|
|
675
|
+
var selection = context.selection ? context.selection() : context;
|
|
676
|
+
for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) if (node = group0[i] || group1[i]) merge[i] = node;
|
|
677
|
+
for (; j < m0; ++j) merges[j] = groups0[j];
|
|
678
|
+
return new Selection$1(merges, this._parents);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
|
|
683
|
+
function order_default() {
|
|
684
|
+
for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) if (node = group[i]) {
|
|
685
|
+
if (next && node.compareDocumentPosition(next) ^ 4) next.parentNode.insertBefore(node, next);
|
|
686
|
+
next = node;
|
|
687
|
+
}
|
|
688
|
+
return this;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
|
|
693
|
+
function sort_default(compare) {
|
|
694
|
+
if (!compare) compare = ascending;
|
|
695
|
+
function compareNode(a, b) {
|
|
696
|
+
return a && b ? compare(a.__data__, b.__data__) : !a - !b;
|
|
697
|
+
}
|
|
698
|
+
for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) {
|
|
699
|
+
for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) if (node = group[i]) sortgroup[i] = node;
|
|
700
|
+
sortgroup.sort(compareNode);
|
|
701
|
+
}
|
|
702
|
+
return new Selection$1(sortgroups, this._parents).order();
|
|
703
|
+
}
|
|
704
|
+
function ascending(a, b) {
|
|
705
|
+
return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
//#endregion
|
|
709
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
|
|
710
|
+
function call_default() {
|
|
711
|
+
var callback = arguments[0];
|
|
712
|
+
arguments[0] = this;
|
|
713
|
+
callback.apply(null, arguments);
|
|
714
|
+
return this;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
|
|
719
|
+
function nodes_default() {
|
|
720
|
+
return Array.from(this);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
|
|
725
|
+
function node_default() {
|
|
726
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) for (var group = groups[j], i = 0, n = group.length; i < n; ++i) {
|
|
727
|
+
var node = group[i];
|
|
728
|
+
if (node) return node;
|
|
729
|
+
}
|
|
730
|
+
return null;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
|
|
735
|
+
function size_default() {
|
|
736
|
+
let size = 0;
|
|
737
|
+
for (const node of this) ++size;
|
|
738
|
+
return size;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
|
|
743
|
+
function empty_default() {
|
|
744
|
+
return !this.node();
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
|
|
749
|
+
function each_default(callback) {
|
|
750
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) if (node = group[i]) callback.call(node, node.__data__, i, group);
|
|
751
|
+
return this;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
//#endregion
|
|
755
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
|
|
756
|
+
function attrRemove$1(name) {
|
|
757
|
+
return function() {
|
|
758
|
+
this.removeAttribute(name);
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
function attrRemoveNS$1(fullname) {
|
|
762
|
+
return function() {
|
|
763
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
function attrConstant$1(name, value) {
|
|
767
|
+
return function() {
|
|
768
|
+
this.setAttribute(name, value);
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function attrConstantNS$1(fullname, value) {
|
|
772
|
+
return function() {
|
|
773
|
+
this.setAttributeNS(fullname.space, fullname.local, value);
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
function attrFunction$1(name, value) {
|
|
777
|
+
return function() {
|
|
778
|
+
var v = value.apply(this, arguments);
|
|
779
|
+
if (v == null) this.removeAttribute(name);
|
|
780
|
+
else this.setAttribute(name, v);
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
function attrFunctionNS$1(fullname, value) {
|
|
784
|
+
return function() {
|
|
785
|
+
var v = value.apply(this, arguments);
|
|
786
|
+
if (v == null) this.removeAttributeNS(fullname.space, fullname.local);
|
|
787
|
+
else this.setAttributeNS(fullname.space, fullname.local, v);
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
function attr_default$1(name, value) {
|
|
791
|
+
var fullname = namespace_default(name);
|
|
792
|
+
if (arguments.length < 2) {
|
|
793
|
+
var node = this.node();
|
|
794
|
+
return fullname.local ? node.getAttributeNS(fullname.space, fullname.local) : node.getAttribute(fullname);
|
|
795
|
+
}
|
|
796
|
+
return this.each((value == null ? fullname.local ? attrRemoveNS$1 : attrRemove$1 : typeof value === "function" ? fullname.local ? attrFunctionNS$1 : attrFunction$1 : fullname.local ? attrConstantNS$1 : attrConstant$1)(fullname, value));
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
|
|
801
|
+
function window_default(node) {
|
|
802
|
+
return node.ownerDocument && node.ownerDocument.defaultView || node.document && node || node.defaultView;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
|
|
807
|
+
function styleRemove$1(name) {
|
|
808
|
+
return function() {
|
|
809
|
+
this.style.removeProperty(name);
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
function styleConstant$1(name, value, priority) {
|
|
813
|
+
return function() {
|
|
814
|
+
this.style.setProperty(name, value, priority);
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function styleFunction$1(name, value, priority) {
|
|
818
|
+
return function() {
|
|
819
|
+
var v = value.apply(this, arguments);
|
|
820
|
+
if (v == null) this.style.removeProperty(name);
|
|
821
|
+
else this.style.setProperty(name, v, priority);
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function style_default$1(name, value, priority) {
|
|
825
|
+
return arguments.length > 1 ? this.each((value == null ? styleRemove$1 : typeof value === "function" ? styleFunction$1 : styleConstant$1)(name, value, priority == null ? "" : priority)) : styleValue(this.node(), name);
|
|
826
|
+
}
|
|
827
|
+
function styleValue(node, name) {
|
|
828
|
+
return node.style.getPropertyValue(name) || window_default(node).getComputedStyle(node, null).getPropertyValue(name);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
|
|
833
|
+
function propertyRemove(name) {
|
|
834
|
+
return function() {
|
|
835
|
+
delete this[name];
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function propertyConstant(name, value) {
|
|
839
|
+
return function() {
|
|
840
|
+
this[name] = value;
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
function propertyFunction(name, value) {
|
|
844
|
+
return function() {
|
|
845
|
+
var v = value.apply(this, arguments);
|
|
846
|
+
if (v == null) delete this[name];
|
|
847
|
+
else this[name] = v;
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
function property_default(name, value) {
|
|
851
|
+
return arguments.length > 1 ? this.each((value == null ? propertyRemove : typeof value === "function" ? propertyFunction : propertyConstant)(name, value)) : this.node()[name];
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
|
|
856
|
+
function classArray(string) {
|
|
857
|
+
return string.trim().split(/^|\s+/);
|
|
858
|
+
}
|
|
859
|
+
function classList(node) {
|
|
860
|
+
return node.classList || new ClassList(node);
|
|
861
|
+
}
|
|
862
|
+
function ClassList(node) {
|
|
863
|
+
this._node = node;
|
|
864
|
+
this._names = classArray(node.getAttribute("class") || "");
|
|
865
|
+
}
|
|
866
|
+
ClassList.prototype = {
|
|
867
|
+
add: function(name) {
|
|
868
|
+
if (this._names.indexOf(name) < 0) {
|
|
869
|
+
this._names.push(name);
|
|
870
|
+
this._node.setAttribute("class", this._names.join(" "));
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
remove: function(name) {
|
|
874
|
+
var i = this._names.indexOf(name);
|
|
875
|
+
if (i >= 0) {
|
|
876
|
+
this._names.splice(i, 1);
|
|
877
|
+
this._node.setAttribute("class", this._names.join(" "));
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
contains: function(name) {
|
|
881
|
+
return this._names.indexOf(name) >= 0;
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
function classedAdd(node, names) {
|
|
885
|
+
var list = classList(node), i = -1, n = names.length;
|
|
886
|
+
while (++i < n) list.add(names[i]);
|
|
887
|
+
}
|
|
888
|
+
function classedRemove(node, names) {
|
|
889
|
+
var list = classList(node), i = -1, n = names.length;
|
|
890
|
+
while (++i < n) list.remove(names[i]);
|
|
891
|
+
}
|
|
892
|
+
function classedTrue(names) {
|
|
893
|
+
return function() {
|
|
894
|
+
classedAdd(this, names);
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
function classedFalse(names) {
|
|
898
|
+
return function() {
|
|
899
|
+
classedRemove(this, names);
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
function classedFunction(names, value) {
|
|
903
|
+
return function() {
|
|
904
|
+
(value.apply(this, arguments) ? classedAdd : classedRemove)(this, names);
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
function classed_default(name, value) {
|
|
908
|
+
var names = classArray(name + "");
|
|
909
|
+
if (arguments.length < 2) {
|
|
910
|
+
var list = classList(this.node()), i = -1, n = names.length;
|
|
911
|
+
while (++i < n) if (!list.contains(names[i])) return false;
|
|
912
|
+
return true;
|
|
913
|
+
}
|
|
914
|
+
return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value));
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
//#endregion
|
|
918
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
|
|
919
|
+
function textRemove() {
|
|
920
|
+
this.textContent = "";
|
|
921
|
+
}
|
|
922
|
+
function textConstant$1(value) {
|
|
923
|
+
return function() {
|
|
924
|
+
this.textContent = value;
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
function textFunction$1(value) {
|
|
928
|
+
return function() {
|
|
929
|
+
var v = value.apply(this, arguments);
|
|
930
|
+
this.textContent = v == null ? "" : v;
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
function text_default$1(value) {
|
|
934
|
+
return arguments.length ? this.each(value == null ? textRemove : (typeof value === "function" ? textFunction$1 : textConstant$1)(value)) : this.node().textContent;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
|
|
939
|
+
function htmlRemove() {
|
|
940
|
+
this.innerHTML = "";
|
|
941
|
+
}
|
|
942
|
+
function htmlConstant(value) {
|
|
943
|
+
return function() {
|
|
944
|
+
this.innerHTML = value;
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
function htmlFunction(value) {
|
|
948
|
+
return function() {
|
|
949
|
+
var v = value.apply(this, arguments);
|
|
950
|
+
this.innerHTML = v == null ? "" : v;
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
function html_default(value) {
|
|
954
|
+
return arguments.length ? this.each(value == null ? htmlRemove : (typeof value === "function" ? htmlFunction : htmlConstant)(value)) : this.node().innerHTML;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
|
|
959
|
+
function raise() {
|
|
960
|
+
if (this.nextSibling) this.parentNode.appendChild(this);
|
|
961
|
+
}
|
|
962
|
+
function raise_default() {
|
|
963
|
+
return this.each(raise);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
//#endregion
|
|
967
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
|
|
968
|
+
function lower() {
|
|
969
|
+
if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
970
|
+
}
|
|
971
|
+
function lower_default() {
|
|
972
|
+
return this.each(lower);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
|
|
977
|
+
function append_default(name) {
|
|
978
|
+
var create = typeof name === "function" ? name : creator_default(name);
|
|
979
|
+
return this.select(function() {
|
|
980
|
+
return this.appendChild(create.apply(this, arguments));
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
//#endregion
|
|
985
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
|
|
986
|
+
function constantNull() {
|
|
987
|
+
return null;
|
|
988
|
+
}
|
|
989
|
+
function insert_default(name, before) {
|
|
990
|
+
var create = typeof name === "function" ? name : creator_default(name), select = before == null ? constantNull : typeof before === "function" ? before : selector_default(before);
|
|
991
|
+
return this.select(function() {
|
|
992
|
+
return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
//#endregion
|
|
997
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
|
|
998
|
+
function remove() {
|
|
999
|
+
var parent = this.parentNode;
|
|
1000
|
+
if (parent) parent.removeChild(this);
|
|
1001
|
+
}
|
|
1002
|
+
function remove_default$1() {
|
|
1003
|
+
return this.each(remove);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
|
|
1008
|
+
function selection_cloneShallow() {
|
|
1009
|
+
var clone = this.cloneNode(false), parent = this.parentNode;
|
|
1010
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
|
1011
|
+
}
|
|
1012
|
+
function selection_cloneDeep() {
|
|
1013
|
+
var clone = this.cloneNode(true), parent = this.parentNode;
|
|
1014
|
+
return parent ? parent.insertBefore(clone, this.nextSibling) : clone;
|
|
1015
|
+
}
|
|
1016
|
+
function clone_default(deep) {
|
|
1017
|
+
return this.select(deep ? selection_cloneDeep : selection_cloneShallow);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
|
|
1022
|
+
function datum_default(value) {
|
|
1023
|
+
return arguments.length ? this.property("__data__", value) : this.node().__data__;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
//#endregion
|
|
1027
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
|
|
1028
|
+
function contextListener(listener) {
|
|
1029
|
+
return function(event) {
|
|
1030
|
+
listener.call(this, event, this.__data__);
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
function parseTypenames(typenames) {
|
|
1034
|
+
return typenames.trim().split(/^|\s+/).map(function(t) {
|
|
1035
|
+
var name = "", i = t.indexOf(".");
|
|
1036
|
+
if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
|
|
1037
|
+
return {
|
|
1038
|
+
type: t,
|
|
1039
|
+
name
|
|
1040
|
+
};
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
function onRemove(typename) {
|
|
1044
|
+
return function() {
|
|
1045
|
+
var on = this.__on;
|
|
1046
|
+
if (!on) return;
|
|
1047
|
+
for (var j = 0, i = -1, m = on.length, o; j < m; ++j) if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) this.removeEventListener(o.type, o.listener, o.options);
|
|
1048
|
+
else on[++i] = o;
|
|
1049
|
+
if (++i) on.length = i;
|
|
1050
|
+
else delete this.__on;
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
function onAdd(typename, value, options) {
|
|
1054
|
+
return function() {
|
|
1055
|
+
var on = this.__on, o, listener = contextListener(value);
|
|
1056
|
+
if (on) {
|
|
1057
|
+
for (var j = 0, m = on.length; j < m; ++j) if ((o = on[j]).type === typename.type && o.name === typename.name) {
|
|
1058
|
+
this.removeEventListener(o.type, o.listener, o.options);
|
|
1059
|
+
this.addEventListener(o.type, o.listener = listener, o.options = options);
|
|
1060
|
+
o.value = value;
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
this.addEventListener(typename.type, listener, options);
|
|
1065
|
+
o = {
|
|
1066
|
+
type: typename.type,
|
|
1067
|
+
name: typename.name,
|
|
1068
|
+
value,
|
|
1069
|
+
listener,
|
|
1070
|
+
options
|
|
1071
|
+
};
|
|
1072
|
+
if (!on) this.__on = [o];
|
|
1073
|
+
else on.push(o);
|
|
1074
|
+
};
|
|
1075
|
+
}
|
|
1076
|
+
function on_default$1(typename, value, options) {
|
|
1077
|
+
var typenames = parseTypenames(typename + ""), i, n = typenames.length, t;
|
|
1078
|
+
if (arguments.length < 2) {
|
|
1079
|
+
var on = this.node().__on;
|
|
1080
|
+
if (on) {
|
|
1081
|
+
for (var j = 0, m = on.length, o; j < m; ++j) for (i = 0, o = on[j]; i < n; ++i) if ((t = typenames[i]).type === o.type && t.name === o.name) return o.value;
|
|
1082
|
+
}
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
on = value ? onAdd : onRemove;
|
|
1086
|
+
for (i = 0; i < n; ++i) this.each(on(typenames[i], value, options));
|
|
1087
|
+
return this;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
//#endregion
|
|
1091
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
|
|
1092
|
+
function dispatchEvent(node, type, params) {
|
|
1093
|
+
var window = window_default(node), event = window.CustomEvent;
|
|
1094
|
+
if (typeof event === "function") event = new event(type, params);
|
|
1095
|
+
else {
|
|
1096
|
+
event = window.document.createEvent("Event");
|
|
1097
|
+
if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail;
|
|
1098
|
+
else event.initEvent(type, false, false);
|
|
1099
|
+
}
|
|
1100
|
+
node.dispatchEvent(event);
|
|
1101
|
+
}
|
|
1102
|
+
function dispatchConstant(type, params) {
|
|
1103
|
+
return function() {
|
|
1104
|
+
return dispatchEvent(this, type, params);
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
function dispatchFunction(type, params) {
|
|
1108
|
+
return function() {
|
|
1109
|
+
return dispatchEvent(this, type, params.apply(this, arguments));
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
function dispatch_default(type, params) {
|
|
1113
|
+
return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params));
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
|
|
1118
|
+
function* iterator_default() {
|
|
1119
|
+
for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) if (node = group[i]) yield node;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
//#endregion
|
|
1123
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
|
|
1124
|
+
var root = [null];
|
|
1125
|
+
function Selection$1(groups, parents) {
|
|
1126
|
+
this._groups = groups;
|
|
1127
|
+
this._parents = parents;
|
|
1128
|
+
}
|
|
1129
|
+
function selection() {
|
|
1130
|
+
return new Selection$1([[document.documentElement]], root);
|
|
1131
|
+
}
|
|
1132
|
+
function selection_selection() {
|
|
1133
|
+
return this;
|
|
1134
|
+
}
|
|
1135
|
+
Selection$1.prototype = selection.prototype = {
|
|
1136
|
+
constructor: Selection$1,
|
|
1137
|
+
select: select_default$2,
|
|
1138
|
+
selectAll: selectAll_default$1,
|
|
1139
|
+
selectChild: selectChild_default,
|
|
1140
|
+
selectChildren: selectChildren_default,
|
|
1141
|
+
filter: filter_default$1,
|
|
1142
|
+
data: data_default,
|
|
1143
|
+
enter: enter_default,
|
|
1144
|
+
exit: exit_default,
|
|
1145
|
+
join: join_default,
|
|
1146
|
+
merge: merge_default$1,
|
|
1147
|
+
selection: selection_selection,
|
|
1148
|
+
order: order_default,
|
|
1149
|
+
sort: sort_default,
|
|
1150
|
+
call: call_default,
|
|
1151
|
+
nodes: nodes_default,
|
|
1152
|
+
node: node_default,
|
|
1153
|
+
size: size_default,
|
|
1154
|
+
empty: empty_default,
|
|
1155
|
+
each: each_default,
|
|
1156
|
+
attr: attr_default$1,
|
|
1157
|
+
style: style_default$1,
|
|
1158
|
+
property: property_default,
|
|
1159
|
+
classed: classed_default,
|
|
1160
|
+
text: text_default$1,
|
|
1161
|
+
html: html_default,
|
|
1162
|
+
raise: raise_default,
|
|
1163
|
+
lower: lower_default,
|
|
1164
|
+
append: append_default,
|
|
1165
|
+
insert: insert_default,
|
|
1166
|
+
remove: remove_default$1,
|
|
1167
|
+
clone: clone_default,
|
|
1168
|
+
datum: datum_default,
|
|
1169
|
+
on: on_default$1,
|
|
1170
|
+
dispatch: dispatch_default,
|
|
1171
|
+
[Symbol.iterator]: iterator_default
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.js
|
|
1176
|
+
function select_default$1(selector) {
|
|
1177
|
+
return typeof selector === "string" ? new Selection$1([[document.querySelector(selector)]], [document.documentElement]) : new Selection$1([[selector]], root);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
//#endregion
|
|
1181
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
|
|
1182
|
+
function define_default(constructor, factory, prototype) {
|
|
1183
|
+
constructor.prototype = factory.prototype = prototype;
|
|
1184
|
+
prototype.constructor = constructor;
|
|
1185
|
+
}
|
|
1186
|
+
function extend(parent, definition) {
|
|
1187
|
+
var prototype = Object.create(parent.prototype);
|
|
1188
|
+
for (var key in definition) prototype[key] = definition[key];
|
|
1189
|
+
return prototype;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
|
|
1194
|
+
function Color() {}
|
|
1195
|
+
var darker = .7;
|
|
1196
|
+
var brighter = 1 / darker;
|
|
1197
|
+
var reI = "\\s*([+-]?\\d+)\\s*";
|
|
1198
|
+
var reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*";
|
|
1199
|
+
var reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*";
|
|
1200
|
+
var reHex = /^#([0-9a-f]{3,8})$/;
|
|
1201
|
+
var reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`);
|
|
1202
|
+
var reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`);
|
|
1203
|
+
var reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`);
|
|
1204
|
+
var reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`);
|
|
1205
|
+
var reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`);
|
|
1206
|
+
var reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
|
1207
|
+
var named = {
|
|
1208
|
+
aliceblue: 15792383,
|
|
1209
|
+
antiquewhite: 16444375,
|
|
1210
|
+
aqua: 65535,
|
|
1211
|
+
aquamarine: 8388564,
|
|
1212
|
+
azure: 15794175,
|
|
1213
|
+
beige: 16119260,
|
|
1214
|
+
bisque: 16770244,
|
|
1215
|
+
black: 0,
|
|
1216
|
+
blanchedalmond: 16772045,
|
|
1217
|
+
blue: 255,
|
|
1218
|
+
blueviolet: 9055202,
|
|
1219
|
+
brown: 10824234,
|
|
1220
|
+
burlywood: 14596231,
|
|
1221
|
+
cadetblue: 6266528,
|
|
1222
|
+
chartreuse: 8388352,
|
|
1223
|
+
chocolate: 13789470,
|
|
1224
|
+
coral: 16744272,
|
|
1225
|
+
cornflowerblue: 6591981,
|
|
1226
|
+
cornsilk: 16775388,
|
|
1227
|
+
crimson: 14423100,
|
|
1228
|
+
cyan: 65535,
|
|
1229
|
+
darkblue: 139,
|
|
1230
|
+
darkcyan: 35723,
|
|
1231
|
+
darkgoldenrod: 12092939,
|
|
1232
|
+
darkgray: 11119017,
|
|
1233
|
+
darkgreen: 25600,
|
|
1234
|
+
darkgrey: 11119017,
|
|
1235
|
+
darkkhaki: 12433259,
|
|
1236
|
+
darkmagenta: 9109643,
|
|
1237
|
+
darkolivegreen: 5597999,
|
|
1238
|
+
darkorange: 16747520,
|
|
1239
|
+
darkorchid: 10040012,
|
|
1240
|
+
darkred: 9109504,
|
|
1241
|
+
darksalmon: 15308410,
|
|
1242
|
+
darkseagreen: 9419919,
|
|
1243
|
+
darkslateblue: 4734347,
|
|
1244
|
+
darkslategray: 3100495,
|
|
1245
|
+
darkslategrey: 3100495,
|
|
1246
|
+
darkturquoise: 52945,
|
|
1247
|
+
darkviolet: 9699539,
|
|
1248
|
+
deeppink: 16716947,
|
|
1249
|
+
deepskyblue: 49151,
|
|
1250
|
+
dimgray: 6908265,
|
|
1251
|
+
dimgrey: 6908265,
|
|
1252
|
+
dodgerblue: 2003199,
|
|
1253
|
+
firebrick: 11674146,
|
|
1254
|
+
floralwhite: 16775920,
|
|
1255
|
+
forestgreen: 2263842,
|
|
1256
|
+
fuchsia: 16711935,
|
|
1257
|
+
gainsboro: 14474460,
|
|
1258
|
+
ghostwhite: 16316671,
|
|
1259
|
+
gold: 16766720,
|
|
1260
|
+
goldenrod: 14329120,
|
|
1261
|
+
gray: 8421504,
|
|
1262
|
+
green: 32768,
|
|
1263
|
+
greenyellow: 11403055,
|
|
1264
|
+
grey: 8421504,
|
|
1265
|
+
honeydew: 15794160,
|
|
1266
|
+
hotpink: 16738740,
|
|
1267
|
+
indianred: 13458524,
|
|
1268
|
+
indigo: 4915330,
|
|
1269
|
+
ivory: 16777200,
|
|
1270
|
+
khaki: 15787660,
|
|
1271
|
+
lavender: 15132410,
|
|
1272
|
+
lavenderblush: 16773365,
|
|
1273
|
+
lawngreen: 8190976,
|
|
1274
|
+
lemonchiffon: 16775885,
|
|
1275
|
+
lightblue: 11393254,
|
|
1276
|
+
lightcoral: 15761536,
|
|
1277
|
+
lightcyan: 14745599,
|
|
1278
|
+
lightgoldenrodyellow: 16448210,
|
|
1279
|
+
lightgray: 13882323,
|
|
1280
|
+
lightgreen: 9498256,
|
|
1281
|
+
lightgrey: 13882323,
|
|
1282
|
+
lightpink: 16758465,
|
|
1283
|
+
lightsalmon: 16752762,
|
|
1284
|
+
lightseagreen: 2142890,
|
|
1285
|
+
lightskyblue: 8900346,
|
|
1286
|
+
lightslategray: 7833753,
|
|
1287
|
+
lightslategrey: 7833753,
|
|
1288
|
+
lightsteelblue: 11584734,
|
|
1289
|
+
lightyellow: 16777184,
|
|
1290
|
+
lime: 65280,
|
|
1291
|
+
limegreen: 3329330,
|
|
1292
|
+
linen: 16445670,
|
|
1293
|
+
magenta: 16711935,
|
|
1294
|
+
maroon: 8388608,
|
|
1295
|
+
mediumaquamarine: 6737322,
|
|
1296
|
+
mediumblue: 205,
|
|
1297
|
+
mediumorchid: 12211667,
|
|
1298
|
+
mediumpurple: 9662683,
|
|
1299
|
+
mediumseagreen: 3978097,
|
|
1300
|
+
mediumslateblue: 8087790,
|
|
1301
|
+
mediumspringgreen: 64154,
|
|
1302
|
+
mediumturquoise: 4772300,
|
|
1303
|
+
mediumvioletred: 13047173,
|
|
1304
|
+
midnightblue: 1644912,
|
|
1305
|
+
mintcream: 16121850,
|
|
1306
|
+
mistyrose: 16770273,
|
|
1307
|
+
moccasin: 16770229,
|
|
1308
|
+
navajowhite: 16768685,
|
|
1309
|
+
navy: 128,
|
|
1310
|
+
oldlace: 16643558,
|
|
1311
|
+
olive: 8421376,
|
|
1312
|
+
olivedrab: 7048739,
|
|
1313
|
+
orange: 16753920,
|
|
1314
|
+
orangered: 16729344,
|
|
1315
|
+
orchid: 14315734,
|
|
1316
|
+
palegoldenrod: 15657130,
|
|
1317
|
+
palegreen: 10025880,
|
|
1318
|
+
paleturquoise: 11529966,
|
|
1319
|
+
palevioletred: 14381203,
|
|
1320
|
+
papayawhip: 16773077,
|
|
1321
|
+
peachpuff: 16767673,
|
|
1322
|
+
peru: 13468991,
|
|
1323
|
+
pink: 16761035,
|
|
1324
|
+
plum: 14524637,
|
|
1325
|
+
powderblue: 11591910,
|
|
1326
|
+
purple: 8388736,
|
|
1327
|
+
rebeccapurple: 6697881,
|
|
1328
|
+
red: 16711680,
|
|
1329
|
+
rosybrown: 12357519,
|
|
1330
|
+
royalblue: 4286945,
|
|
1331
|
+
saddlebrown: 9127187,
|
|
1332
|
+
salmon: 16416882,
|
|
1333
|
+
sandybrown: 16032864,
|
|
1334
|
+
seagreen: 3050327,
|
|
1335
|
+
seashell: 16774638,
|
|
1336
|
+
sienna: 10506797,
|
|
1337
|
+
silver: 12632256,
|
|
1338
|
+
skyblue: 8900331,
|
|
1339
|
+
slateblue: 6970061,
|
|
1340
|
+
slategray: 7372944,
|
|
1341
|
+
slategrey: 7372944,
|
|
1342
|
+
snow: 16775930,
|
|
1343
|
+
springgreen: 65407,
|
|
1344
|
+
steelblue: 4620980,
|
|
1345
|
+
tan: 13808780,
|
|
1346
|
+
teal: 32896,
|
|
1347
|
+
thistle: 14204888,
|
|
1348
|
+
tomato: 16737095,
|
|
1349
|
+
turquoise: 4251856,
|
|
1350
|
+
violet: 15631086,
|
|
1351
|
+
wheat: 16113331,
|
|
1352
|
+
white: 16777215,
|
|
1353
|
+
whitesmoke: 16119285,
|
|
1354
|
+
yellow: 16776960,
|
|
1355
|
+
yellowgreen: 10145074
|
|
1356
|
+
};
|
|
1357
|
+
define_default(Color, color, {
|
|
1358
|
+
copy(channels) {
|
|
1359
|
+
return Object.assign(new this.constructor(), this, channels);
|
|
1360
|
+
},
|
|
1361
|
+
displayable() {
|
|
1362
|
+
return this.rgb().displayable();
|
|
1363
|
+
},
|
|
1364
|
+
hex: color_formatHex,
|
|
1365
|
+
formatHex: color_formatHex,
|
|
1366
|
+
formatHex8: color_formatHex8,
|
|
1367
|
+
formatHsl: color_formatHsl,
|
|
1368
|
+
formatRgb: color_formatRgb,
|
|
1369
|
+
toString: color_formatRgb
|
|
1370
|
+
});
|
|
1371
|
+
function color_formatHex() {
|
|
1372
|
+
return this.rgb().formatHex();
|
|
1373
|
+
}
|
|
1374
|
+
function color_formatHex8() {
|
|
1375
|
+
return this.rgb().formatHex8();
|
|
1376
|
+
}
|
|
1377
|
+
function color_formatHsl() {
|
|
1378
|
+
return hslConvert(this).formatHsl();
|
|
1379
|
+
}
|
|
1380
|
+
function color_formatRgb() {
|
|
1381
|
+
return this.rgb().formatRgb();
|
|
1382
|
+
}
|
|
1383
|
+
function color(format) {
|
|
1384
|
+
var m, l;
|
|
1385
|
+
format = (format + "").trim().toLowerCase();
|
|
1386
|
+
return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) : l === 3 ? new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l === 8 ? rgba(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l === 4 ? rgba(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
1387
|
+
}
|
|
1388
|
+
function rgbn(n) {
|
|
1389
|
+
return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
|
|
1390
|
+
}
|
|
1391
|
+
function rgba(r, g, b, a) {
|
|
1392
|
+
if (a <= 0) r = g = b = NaN;
|
|
1393
|
+
return new Rgb(r, g, b, a);
|
|
1394
|
+
}
|
|
1395
|
+
function rgbConvert(o) {
|
|
1396
|
+
if (!(o instanceof Color)) o = color(o);
|
|
1397
|
+
if (!o) return new Rgb();
|
|
1398
|
+
o = o.rgb();
|
|
1399
|
+
return new Rgb(o.r, o.g, o.b, o.opacity);
|
|
1400
|
+
}
|
|
1401
|
+
function rgb(r, g, b, opacity) {
|
|
1402
|
+
return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
|
|
1403
|
+
}
|
|
1404
|
+
function Rgb(r, g, b, opacity) {
|
|
1405
|
+
this.r = +r;
|
|
1406
|
+
this.g = +g;
|
|
1407
|
+
this.b = +b;
|
|
1408
|
+
this.opacity = +opacity;
|
|
1409
|
+
}
|
|
1410
|
+
define_default(Rgb, rgb, extend(Color, {
|
|
1411
|
+
brighter(k) {
|
|
1412
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
1413
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1414
|
+
},
|
|
1415
|
+
darker(k) {
|
|
1416
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
1417
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
1418
|
+
},
|
|
1419
|
+
rgb() {
|
|
1420
|
+
return this;
|
|
1421
|
+
},
|
|
1422
|
+
clamp() {
|
|
1423
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
1424
|
+
},
|
|
1425
|
+
displayable() {
|
|
1426
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1427
|
+
},
|
|
1428
|
+
hex: rgb_formatHex,
|
|
1429
|
+
formatHex: rgb_formatHex,
|
|
1430
|
+
formatHex8: rgb_formatHex8,
|
|
1431
|
+
formatRgb: rgb_formatRgb,
|
|
1432
|
+
toString: rgb_formatRgb
|
|
1433
|
+
}));
|
|
1434
|
+
function rgb_formatHex() {
|
|
1435
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
1436
|
+
}
|
|
1437
|
+
function rgb_formatHex8() {
|
|
1438
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1439
|
+
}
|
|
1440
|
+
function rgb_formatRgb() {
|
|
1441
|
+
const a = clampa(this.opacity);
|
|
1442
|
+
return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
|
|
1443
|
+
}
|
|
1444
|
+
function clampa(opacity) {
|
|
1445
|
+
return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
|
|
1446
|
+
}
|
|
1447
|
+
function clampi(value) {
|
|
1448
|
+
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
1449
|
+
}
|
|
1450
|
+
function hex(value) {
|
|
1451
|
+
value = clampi(value);
|
|
1452
|
+
return (value < 16 ? "0" : "") + value.toString(16);
|
|
1453
|
+
}
|
|
1454
|
+
function hsla(h, s, l, a) {
|
|
1455
|
+
if (a <= 0) h = s = l = NaN;
|
|
1456
|
+
else if (l <= 0 || l >= 1) h = s = NaN;
|
|
1457
|
+
else if (s <= 0) h = NaN;
|
|
1458
|
+
return new Hsl(h, s, l, a);
|
|
1459
|
+
}
|
|
1460
|
+
function hslConvert(o) {
|
|
1461
|
+
if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
|
|
1462
|
+
if (!(o instanceof Color)) o = color(o);
|
|
1463
|
+
if (!o) return new Hsl();
|
|
1464
|
+
if (o instanceof Hsl) return o;
|
|
1465
|
+
o = o.rgb();
|
|
1466
|
+
var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2;
|
|
1467
|
+
if (s) {
|
|
1468
|
+
if (r === max) h = (g - b) / s + (g < b) * 6;
|
|
1469
|
+
else if (g === max) h = (b - r) / s + 2;
|
|
1470
|
+
else h = (r - g) / s + 4;
|
|
1471
|
+
s /= l < .5 ? max + min : 2 - max - min;
|
|
1472
|
+
h *= 60;
|
|
1473
|
+
} else s = l > 0 && l < 1 ? 0 : h;
|
|
1474
|
+
return new Hsl(h, s, l, o.opacity);
|
|
1475
|
+
}
|
|
1476
|
+
function hsl(h, s, l, opacity) {
|
|
1477
|
+
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
|
|
1478
|
+
}
|
|
1479
|
+
function Hsl(h, s, l, opacity) {
|
|
1480
|
+
this.h = +h;
|
|
1481
|
+
this.s = +s;
|
|
1482
|
+
this.l = +l;
|
|
1483
|
+
this.opacity = +opacity;
|
|
1484
|
+
}
|
|
1485
|
+
define_default(Hsl, hsl, extend(Color, {
|
|
1486
|
+
brighter(k) {
|
|
1487
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
1488
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
1489
|
+
},
|
|
1490
|
+
darker(k) {
|
|
1491
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
1492
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
1493
|
+
},
|
|
1494
|
+
rgb() {
|
|
1495
|
+
var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < .5 ? l : 1 - l) * s, m1 = 2 * l - m2;
|
|
1496
|
+
return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
|
|
1497
|
+
},
|
|
1498
|
+
clamp() {
|
|
1499
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
1500
|
+
},
|
|
1501
|
+
displayable() {
|
|
1502
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1503
|
+
},
|
|
1504
|
+
formatHsl() {
|
|
1505
|
+
const a = clampa(this.opacity);
|
|
1506
|
+
return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
|
|
1507
|
+
}
|
|
1508
|
+
}));
|
|
1509
|
+
function clamph(value) {
|
|
1510
|
+
value = (value || 0) % 360;
|
|
1511
|
+
return value < 0 ? value + 360 : value;
|
|
1512
|
+
}
|
|
1513
|
+
function clampt(value) {
|
|
1514
|
+
return Math.max(0, Math.min(1, value || 0));
|
|
1515
|
+
}
|
|
1516
|
+
function hsl2rgb(h, m1, m2) {
|
|
1517
|
+
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
//#endregion
|
|
1521
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basis.js
|
|
1522
|
+
function basis(t1, v0, v1, v2, v3) {
|
|
1523
|
+
var t2 = t1 * t1, t3 = t2 * t1;
|
|
1524
|
+
return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
|
|
1525
|
+
}
|
|
1526
|
+
function basis_default(values) {
|
|
1527
|
+
var n = values.length - 1;
|
|
1528
|
+
return function(t) {
|
|
1529
|
+
var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
|
|
1530
|
+
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/basisClosed.js
|
|
1536
|
+
function basisClosed_default(values) {
|
|
1537
|
+
var n = values.length;
|
|
1538
|
+
return function(t) {
|
|
1539
|
+
var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n];
|
|
1540
|
+
return basis((t - i / n) * n, v0, v1, v2, v3);
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
//#endregion
|
|
1545
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
|
|
1546
|
+
var constant_default = (x) => () => x;
|
|
1547
|
+
|
|
1548
|
+
//#endregion
|
|
1549
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
|
|
1550
|
+
function linear(a, d) {
|
|
1551
|
+
return function(t) {
|
|
1552
|
+
return a + t * d;
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
function exponential(a, b, y) {
|
|
1556
|
+
return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
|
|
1557
|
+
return Math.pow(a + t * b, y);
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
function hue(a, b) {
|
|
1561
|
+
var d = b - a;
|
|
1562
|
+
return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant_default(isNaN(a) ? b : a);
|
|
1563
|
+
}
|
|
1564
|
+
function gamma(y) {
|
|
1565
|
+
return (y = +y) === 1 ? nogamma : function(a, b) {
|
|
1566
|
+
return b - a ? exponential(a, b, y) : constant_default(isNaN(a) ? b : a);
|
|
1567
|
+
};
|
|
1568
|
+
}
|
|
1569
|
+
function nogamma(a, b) {
|
|
1570
|
+
var d = b - a;
|
|
1571
|
+
return d ? linear(a, d) : constant_default(isNaN(a) ? b : a);
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
//#endregion
|
|
1575
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
|
|
1576
|
+
var rgb_default = (function rgbGamma(y) {
|
|
1577
|
+
var color = gamma(y);
|
|
1578
|
+
function rgb$1(start, end) {
|
|
1579
|
+
var r = color((start = rgb(start)).r, (end = rgb(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = nogamma(start.opacity, end.opacity);
|
|
1580
|
+
return function(t) {
|
|
1581
|
+
start.r = r(t);
|
|
1582
|
+
start.g = g(t);
|
|
1583
|
+
start.b = b(t);
|
|
1584
|
+
start.opacity = opacity(t);
|
|
1585
|
+
return start + "";
|
|
1586
|
+
};
|
|
1587
|
+
}
|
|
1588
|
+
rgb$1.gamma = rgbGamma;
|
|
1589
|
+
return rgb$1;
|
|
1590
|
+
})(1);
|
|
1591
|
+
function rgbSpline(spline) {
|
|
1592
|
+
return function(colors) {
|
|
1593
|
+
var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color;
|
|
1594
|
+
for (i = 0; i < n; ++i) {
|
|
1595
|
+
color = rgb(colors[i]);
|
|
1596
|
+
r[i] = color.r || 0;
|
|
1597
|
+
g[i] = color.g || 0;
|
|
1598
|
+
b[i] = color.b || 0;
|
|
1599
|
+
}
|
|
1600
|
+
r = spline(r);
|
|
1601
|
+
g = spline(g);
|
|
1602
|
+
b = spline(b);
|
|
1603
|
+
color.opacity = 1;
|
|
1604
|
+
return function(t) {
|
|
1605
|
+
color.r = r(t);
|
|
1606
|
+
color.g = g(t);
|
|
1607
|
+
color.b = b(t);
|
|
1608
|
+
return color + "";
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
var rgbBasis = rgbSpline(basis_default);
|
|
1613
|
+
var rgbBasisClosed = rgbSpline(basisClosed_default);
|
|
1614
|
+
|
|
1615
|
+
//#endregion
|
|
1616
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
|
|
1617
|
+
function number_default(a, b) {
|
|
1618
|
+
return a = +a, b = +b, function(t) {
|
|
1619
|
+
return a * (1 - t) + b * t;
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
//#endregion
|
|
1624
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
|
|
1625
|
+
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g;
|
|
1626
|
+
var reB = new RegExp(reA.source, "g");
|
|
1627
|
+
function zero(b) {
|
|
1628
|
+
return function() {
|
|
1629
|
+
return b;
|
|
1630
|
+
};
|
|
1631
|
+
}
|
|
1632
|
+
function one(b) {
|
|
1633
|
+
return function(t) {
|
|
1634
|
+
return b(t) + "";
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
function string_default(a, b) {
|
|
1638
|
+
var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
|
|
1639
|
+
a = a + "", b = b + "";
|
|
1640
|
+
while ((am = reA.exec(a)) && (bm = reB.exec(b))) {
|
|
1641
|
+
if ((bs = bm.index) > bi) {
|
|
1642
|
+
bs = b.slice(bi, bs);
|
|
1643
|
+
if (s[i]) s[i] += bs;
|
|
1644
|
+
else s[++i] = bs;
|
|
1645
|
+
}
|
|
1646
|
+
if ((am = am[0]) === (bm = bm[0])) if (s[i]) s[i] += bm;
|
|
1647
|
+
else s[++i] = bm;
|
|
1648
|
+
else {
|
|
1649
|
+
s[++i] = null;
|
|
1650
|
+
q.push({
|
|
1651
|
+
i,
|
|
1652
|
+
x: number_default(am, bm)
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
bi = reB.lastIndex;
|
|
1656
|
+
}
|
|
1657
|
+
if (bi < b.length) {
|
|
1658
|
+
bs = b.slice(bi);
|
|
1659
|
+
if (s[i]) s[i] += bs;
|
|
1660
|
+
else s[++i] = bs;
|
|
1661
|
+
}
|
|
1662
|
+
return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) {
|
|
1663
|
+
for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
|
|
1664
|
+
return s.join("");
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
//#endregion
|
|
1669
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
|
|
1670
|
+
var degrees = 180 / Math.PI;
|
|
1671
|
+
var identity$1 = {
|
|
1672
|
+
translateX: 0,
|
|
1673
|
+
translateY: 0,
|
|
1674
|
+
rotate: 0,
|
|
1675
|
+
skewX: 0,
|
|
1676
|
+
scaleX: 1,
|
|
1677
|
+
scaleY: 1
|
|
1678
|
+
};
|
|
1679
|
+
function decompose_default(a, b, c, d, e, f) {
|
|
1680
|
+
var scaleX, scaleY, skewX;
|
|
1681
|
+
if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
|
|
1682
|
+
if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
|
|
1683
|
+
if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
|
|
1684
|
+
if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
|
|
1685
|
+
return {
|
|
1686
|
+
translateX: e,
|
|
1687
|
+
translateY: f,
|
|
1688
|
+
rotate: Math.atan2(b, a) * degrees,
|
|
1689
|
+
skewX: Math.atan(skewX) * degrees,
|
|
1690
|
+
scaleX,
|
|
1691
|
+
scaleY
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
//#endregion
|
|
1696
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
|
|
1697
|
+
var svgNode;
|
|
1698
|
+
function parseCss(value) {
|
|
1699
|
+
const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + "");
|
|
1700
|
+
return m.isIdentity ? identity$1 : decompose_default(m.a, m.b, m.c, m.d, m.e, m.f);
|
|
1701
|
+
}
|
|
1702
|
+
function parseSvg(value) {
|
|
1703
|
+
if (value == null) return identity$1;
|
|
1704
|
+
if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
1705
|
+
svgNode.setAttribute("transform", value);
|
|
1706
|
+
if (!(value = svgNode.transform.baseVal.consolidate())) return identity$1;
|
|
1707
|
+
value = value.matrix;
|
|
1708
|
+
return decompose_default(value.a, value.b, value.c, value.d, value.e, value.f);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
//#endregion
|
|
1712
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
|
|
1713
|
+
function interpolateTransform(parse, pxComma, pxParen, degParen) {
|
|
1714
|
+
function pop(s) {
|
|
1715
|
+
return s.length ? s.pop() + " " : "";
|
|
1716
|
+
}
|
|
1717
|
+
function translate(xa, ya, xb, yb, s, q) {
|
|
1718
|
+
if (xa !== xb || ya !== yb) {
|
|
1719
|
+
var i = s.push("translate(", null, pxComma, null, pxParen);
|
|
1720
|
+
q.push({
|
|
1721
|
+
i: i - 4,
|
|
1722
|
+
x: number_default(xa, xb)
|
|
1723
|
+
}, {
|
|
1724
|
+
i: i - 2,
|
|
1725
|
+
x: number_default(ya, yb)
|
|
1726
|
+
});
|
|
1727
|
+
} else if (xb || yb) s.push("translate(" + xb + pxComma + yb + pxParen);
|
|
1728
|
+
}
|
|
1729
|
+
function rotate(a, b, s, q) {
|
|
1730
|
+
if (a !== b) {
|
|
1731
|
+
if (a - b > 180) b += 360;
|
|
1732
|
+
else if (b - a > 180) a += 360;
|
|
1733
|
+
q.push({
|
|
1734
|
+
i: s.push(pop(s) + "rotate(", null, degParen) - 2,
|
|
1735
|
+
x: number_default(a, b)
|
|
1736
|
+
});
|
|
1737
|
+
} else if (b) s.push(pop(s) + "rotate(" + b + degParen);
|
|
1738
|
+
}
|
|
1739
|
+
function skewX(a, b, s, q) {
|
|
1740
|
+
if (a !== b) q.push({
|
|
1741
|
+
i: s.push(pop(s) + "skewX(", null, degParen) - 2,
|
|
1742
|
+
x: number_default(a, b)
|
|
1743
|
+
});
|
|
1744
|
+
else if (b) s.push(pop(s) + "skewX(" + b + degParen);
|
|
1745
|
+
}
|
|
1746
|
+
function scale(xa, ya, xb, yb, s, q) {
|
|
1747
|
+
if (xa !== xb || ya !== yb) {
|
|
1748
|
+
var i = s.push(pop(s) + "scale(", null, ",", null, ")");
|
|
1749
|
+
q.push({
|
|
1750
|
+
i: i - 4,
|
|
1751
|
+
x: number_default(xa, xb)
|
|
1752
|
+
}, {
|
|
1753
|
+
i: i - 2,
|
|
1754
|
+
x: number_default(ya, yb)
|
|
1755
|
+
});
|
|
1756
|
+
} else if (xb !== 1 || yb !== 1) s.push(pop(s) + "scale(" + xb + "," + yb + ")");
|
|
1757
|
+
}
|
|
1758
|
+
return function(a, b) {
|
|
1759
|
+
var s = [], q = [];
|
|
1760
|
+
a = parse(a), b = parse(b);
|
|
1761
|
+
translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
|
|
1762
|
+
rotate(a.rotate, b.rotate, s, q);
|
|
1763
|
+
skewX(a.skewX, b.skewX, s, q);
|
|
1764
|
+
scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
|
|
1765
|
+
a = b = null;
|
|
1766
|
+
return function(t) {
|
|
1767
|
+
var i = -1, n = q.length, o;
|
|
1768
|
+
while (++i < n) s[(o = q[i]).i] = o.x(t);
|
|
1769
|
+
return s.join("");
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)");
|
|
1774
|
+
var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")");
|
|
1775
|
+
|
|
1776
|
+
//#endregion
|
|
1777
|
+
//#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
|
|
1778
|
+
var frame = 0;
|
|
1779
|
+
var timeout = 0;
|
|
1780
|
+
var interval = 0;
|
|
1781
|
+
var pokeDelay = 1e3;
|
|
1782
|
+
var taskHead;
|
|
1783
|
+
var taskTail;
|
|
1784
|
+
var clockLast = 0;
|
|
1785
|
+
var clockNow = 0;
|
|
1786
|
+
var clockSkew = 0;
|
|
1787
|
+
var clock = typeof performance === "object" && performance.now ? performance : Date;
|
|
1788
|
+
var setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) {
|
|
1789
|
+
setTimeout(f, 17);
|
|
1790
|
+
};
|
|
1791
|
+
function now() {
|
|
1792
|
+
return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
|
|
1793
|
+
}
|
|
1794
|
+
function clearNow() {
|
|
1795
|
+
clockNow = 0;
|
|
1796
|
+
}
|
|
1797
|
+
function Timer() {
|
|
1798
|
+
this._call = this._time = this._next = null;
|
|
1799
|
+
}
|
|
1800
|
+
Timer.prototype = timer.prototype = {
|
|
1801
|
+
constructor: Timer,
|
|
1802
|
+
restart: function(callback, delay, time) {
|
|
1803
|
+
if (typeof callback !== "function") throw new TypeError("callback is not a function");
|
|
1804
|
+
time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
|
|
1805
|
+
if (!this._next && taskTail !== this) {
|
|
1806
|
+
if (taskTail) taskTail._next = this;
|
|
1807
|
+
else taskHead = this;
|
|
1808
|
+
taskTail = this;
|
|
1809
|
+
}
|
|
1810
|
+
this._call = callback;
|
|
1811
|
+
this._time = time;
|
|
1812
|
+
sleep();
|
|
1813
|
+
},
|
|
1814
|
+
stop: function() {
|
|
1815
|
+
if (this._call) {
|
|
1816
|
+
this._call = null;
|
|
1817
|
+
this._time = Infinity;
|
|
1818
|
+
sleep();
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
};
|
|
1822
|
+
function timer(callback, delay, time) {
|
|
1823
|
+
var t = new Timer();
|
|
1824
|
+
t.restart(callback, delay, time);
|
|
1825
|
+
return t;
|
|
1826
|
+
}
|
|
1827
|
+
function timerFlush() {
|
|
1828
|
+
now();
|
|
1829
|
+
++frame;
|
|
1830
|
+
var t = taskHead, e;
|
|
1831
|
+
while (t) {
|
|
1832
|
+
if ((e = clockNow - t._time) >= 0) t._call.call(void 0, e);
|
|
1833
|
+
t = t._next;
|
|
1834
|
+
}
|
|
1835
|
+
--frame;
|
|
1836
|
+
}
|
|
1837
|
+
function wake() {
|
|
1838
|
+
clockNow = (clockLast = clock.now()) + clockSkew;
|
|
1839
|
+
frame = timeout = 0;
|
|
1840
|
+
try {
|
|
1841
|
+
timerFlush();
|
|
1842
|
+
} finally {
|
|
1843
|
+
frame = 0;
|
|
1844
|
+
nap();
|
|
1845
|
+
clockNow = 0;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
function poke() {
|
|
1849
|
+
var now = clock.now(), delay = now - clockLast;
|
|
1850
|
+
if (delay > pokeDelay) clockSkew -= delay, clockLast = now;
|
|
1851
|
+
}
|
|
1852
|
+
function nap() {
|
|
1853
|
+
var t0, t1 = taskHead, t2, time = Infinity;
|
|
1854
|
+
while (t1) if (t1._call) {
|
|
1855
|
+
if (time > t1._time) time = t1._time;
|
|
1856
|
+
t0 = t1, t1 = t1._next;
|
|
1857
|
+
} else {
|
|
1858
|
+
t2 = t1._next, t1._next = null;
|
|
1859
|
+
t1 = t0 ? t0._next = t2 : taskHead = t2;
|
|
1860
|
+
}
|
|
1861
|
+
taskTail = t0;
|
|
1862
|
+
sleep(time);
|
|
1863
|
+
}
|
|
1864
|
+
function sleep(time) {
|
|
1865
|
+
if (frame) return;
|
|
1866
|
+
if (timeout) timeout = clearTimeout(timeout);
|
|
1867
|
+
if (time - clockNow > 24) {
|
|
1868
|
+
if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);
|
|
1869
|
+
if (interval) interval = clearInterval(interval);
|
|
1870
|
+
} else {
|
|
1871
|
+
if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);
|
|
1872
|
+
frame = 1, setFrame(wake);
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
//#endregion
|
|
1877
|
+
//#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
|
|
1878
|
+
function timeout_default(callback, delay, time) {
|
|
1879
|
+
var t = new Timer();
|
|
1880
|
+
delay = delay == null ? 0 : +delay;
|
|
1881
|
+
t.restart((elapsed) => {
|
|
1882
|
+
t.stop();
|
|
1883
|
+
callback(elapsed + delay);
|
|
1884
|
+
}, delay, time);
|
|
1885
|
+
return t;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
//#endregion
|
|
1889
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
|
|
1890
|
+
var emptyOn = dispatch("start", "end", "cancel", "interrupt");
|
|
1891
|
+
var emptyTween = [];
|
|
1892
|
+
var CREATED = 0;
|
|
1893
|
+
var SCHEDULED = 1;
|
|
1894
|
+
var STARTING = 2;
|
|
1895
|
+
var STARTED = 3;
|
|
1896
|
+
var RUNNING = 4;
|
|
1897
|
+
var ENDING = 5;
|
|
1898
|
+
var ENDED = 6;
|
|
1899
|
+
function schedule_default(node, name, id, index, group, timing) {
|
|
1900
|
+
var schedules = node.__transition;
|
|
1901
|
+
if (!schedules) node.__transition = {};
|
|
1902
|
+
else if (id in schedules) return;
|
|
1903
|
+
create(node, id, {
|
|
1904
|
+
name,
|
|
1905
|
+
index,
|
|
1906
|
+
group,
|
|
1907
|
+
on: emptyOn,
|
|
1908
|
+
tween: emptyTween,
|
|
1909
|
+
time: timing.time,
|
|
1910
|
+
delay: timing.delay,
|
|
1911
|
+
duration: timing.duration,
|
|
1912
|
+
ease: timing.ease,
|
|
1913
|
+
timer: null,
|
|
1914
|
+
state: 0
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1917
|
+
function init(node, id) {
|
|
1918
|
+
var schedule = get(node, id);
|
|
1919
|
+
if (schedule.state > 0) throw new Error("too late; already scheduled");
|
|
1920
|
+
return schedule;
|
|
1921
|
+
}
|
|
1922
|
+
function set(node, id) {
|
|
1923
|
+
var schedule = get(node, id);
|
|
1924
|
+
if (schedule.state > 3) throw new Error("too late; already running");
|
|
1925
|
+
return schedule;
|
|
1926
|
+
}
|
|
1927
|
+
function get(node, id) {
|
|
1928
|
+
var schedule = node.__transition;
|
|
1929
|
+
if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found");
|
|
1930
|
+
return schedule;
|
|
1931
|
+
}
|
|
1932
|
+
function create(node, id, self) {
|
|
1933
|
+
var schedules = node.__transition, tween;
|
|
1934
|
+
schedules[id] = self;
|
|
1935
|
+
self.timer = timer(schedule, 0, self.time);
|
|
1936
|
+
function schedule(elapsed) {
|
|
1937
|
+
self.state = 1;
|
|
1938
|
+
self.timer.restart(start, self.delay, self.time);
|
|
1939
|
+
if (self.delay <= elapsed) start(elapsed - self.delay);
|
|
1940
|
+
}
|
|
1941
|
+
function start(elapsed) {
|
|
1942
|
+
var i, j, n, o;
|
|
1943
|
+
if (self.state !== 1) return stop();
|
|
1944
|
+
for (i in schedules) {
|
|
1945
|
+
o = schedules[i];
|
|
1946
|
+
if (o.name !== self.name) continue;
|
|
1947
|
+
if (o.state === 3) return timeout_default(start);
|
|
1948
|
+
if (o.state === 4) {
|
|
1949
|
+
o.state = 6;
|
|
1950
|
+
o.timer.stop();
|
|
1951
|
+
o.on.call("interrupt", node, node.__data__, o.index, o.group);
|
|
1952
|
+
delete schedules[i];
|
|
1953
|
+
} else if (+i < id) {
|
|
1954
|
+
o.state = 6;
|
|
1955
|
+
o.timer.stop();
|
|
1956
|
+
o.on.call("cancel", node, node.__data__, o.index, o.group);
|
|
1957
|
+
delete schedules[i];
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
timeout_default(function() {
|
|
1961
|
+
if (self.state === 3) {
|
|
1962
|
+
self.state = 4;
|
|
1963
|
+
self.timer.restart(tick, self.delay, self.time);
|
|
1964
|
+
tick(elapsed);
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
self.state = 2;
|
|
1968
|
+
self.on.call("start", node, node.__data__, self.index, self.group);
|
|
1969
|
+
if (self.state !== 2) return;
|
|
1970
|
+
self.state = 3;
|
|
1971
|
+
tween = new Array(n = self.tween.length);
|
|
1972
|
+
for (i = 0, j = -1; i < n; ++i) if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) tween[++j] = o;
|
|
1973
|
+
tween.length = j + 1;
|
|
1974
|
+
}
|
|
1975
|
+
function tick(elapsed) {
|
|
1976
|
+
var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = 5, 1), i = -1, n = tween.length;
|
|
1977
|
+
while (++i < n) tween[i].call(node, t);
|
|
1978
|
+
if (self.state === 5) {
|
|
1979
|
+
self.on.call("end", node, node.__data__, self.index, self.group);
|
|
1980
|
+
stop();
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
function stop() {
|
|
1984
|
+
self.state = 6;
|
|
1985
|
+
self.timer.stop();
|
|
1986
|
+
delete schedules[id];
|
|
1987
|
+
for (var i in schedules) return;
|
|
1988
|
+
delete node.__transition;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
//#endregion
|
|
1993
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
|
|
1994
|
+
function interrupt_default$1(node, name) {
|
|
1995
|
+
var schedules = node.__transition, schedule, active, empty = true, i;
|
|
1996
|
+
if (!schedules) return;
|
|
1997
|
+
name = name == null ? null : name + "";
|
|
1998
|
+
for (i in schedules) {
|
|
1999
|
+
if ((schedule = schedules[i]).name !== name) {
|
|
2000
|
+
empty = false;
|
|
2001
|
+
continue;
|
|
2002
|
+
}
|
|
2003
|
+
active = schedule.state > 2 && schedule.state < 5;
|
|
2004
|
+
schedule.state = 6;
|
|
2005
|
+
schedule.timer.stop();
|
|
2006
|
+
schedule.on.call(active ? "interrupt" : "cancel", node, node.__data__, schedule.index, schedule.group);
|
|
2007
|
+
delete schedules[i];
|
|
2008
|
+
}
|
|
2009
|
+
if (empty) delete node.__transition;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
//#endregion
|
|
2013
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
|
|
2014
|
+
function interrupt_default(name) {
|
|
2015
|
+
return this.each(function() {
|
|
2016
|
+
interrupt_default$1(this, name);
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
//#endregion
|
|
2021
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
|
|
2022
|
+
function tweenRemove(id, name) {
|
|
2023
|
+
var tween0, tween1;
|
|
2024
|
+
return function() {
|
|
2025
|
+
var schedule = set(this, id), tween = schedule.tween;
|
|
2026
|
+
if (tween !== tween0) {
|
|
2027
|
+
tween1 = tween0 = tween;
|
|
2028
|
+
for (var i = 0, n = tween1.length; i < n; ++i) if (tween1[i].name === name) {
|
|
2029
|
+
tween1 = tween1.slice();
|
|
2030
|
+
tween1.splice(i, 1);
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
schedule.tween = tween1;
|
|
2035
|
+
};
|
|
2036
|
+
}
|
|
2037
|
+
function tweenFunction(id, name, value) {
|
|
2038
|
+
var tween0, tween1;
|
|
2039
|
+
if (typeof value !== "function") throw new Error();
|
|
2040
|
+
return function() {
|
|
2041
|
+
var schedule = set(this, id), tween = schedule.tween;
|
|
2042
|
+
if (tween !== tween0) {
|
|
2043
|
+
tween1 = (tween0 = tween).slice();
|
|
2044
|
+
for (var t = {
|
|
2045
|
+
name,
|
|
2046
|
+
value
|
|
2047
|
+
}, i = 0, n = tween1.length; i < n; ++i) if (tween1[i].name === name) {
|
|
2048
|
+
tween1[i] = t;
|
|
2049
|
+
break;
|
|
2050
|
+
}
|
|
2051
|
+
if (i === n) tween1.push(t);
|
|
2052
|
+
}
|
|
2053
|
+
schedule.tween = tween1;
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
function tween_default(name, value) {
|
|
2057
|
+
var id = this._id;
|
|
2058
|
+
name += "";
|
|
2059
|
+
if (arguments.length < 2) {
|
|
2060
|
+
var tween = get(this.node(), id).tween;
|
|
2061
|
+
for (var i = 0, n = tween.length, t; i < n; ++i) if ((t = tween[i]).name === name) return t.value;
|
|
2062
|
+
return null;
|
|
2063
|
+
}
|
|
2064
|
+
return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value));
|
|
2065
|
+
}
|
|
2066
|
+
function tweenValue(transition, name, value) {
|
|
2067
|
+
var id = transition._id;
|
|
2068
|
+
transition.each(function() {
|
|
2069
|
+
var schedule = set(this, id);
|
|
2070
|
+
(schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments);
|
|
2071
|
+
});
|
|
2072
|
+
return function(node) {
|
|
2073
|
+
return get(node, id).value[name];
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
//#endregion
|
|
2078
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
|
|
2079
|
+
function interpolate_default(a, b) {
|
|
2080
|
+
var c;
|
|
2081
|
+
return (typeof b === "number" ? number_default : b instanceof color ? rgb_default : (c = color(b)) ? (b = c, rgb_default) : string_default)(a, b);
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
//#endregion
|
|
2085
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
|
|
2086
|
+
function attrRemove(name) {
|
|
2087
|
+
return function() {
|
|
2088
|
+
this.removeAttribute(name);
|
|
2089
|
+
};
|
|
2090
|
+
}
|
|
2091
|
+
function attrRemoveNS(fullname) {
|
|
2092
|
+
return function() {
|
|
2093
|
+
this.removeAttributeNS(fullname.space, fullname.local);
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
function attrConstant(name, interpolate, value1) {
|
|
2097
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
2098
|
+
return function() {
|
|
2099
|
+
var string0 = this.getAttribute(name);
|
|
2100
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
function attrConstantNS(fullname, interpolate, value1) {
|
|
2104
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
2105
|
+
return function() {
|
|
2106
|
+
var string0 = this.getAttributeNS(fullname.space, fullname.local);
|
|
2107
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
function attrFunction(name, interpolate, value) {
|
|
2111
|
+
var string00, string10, interpolate0;
|
|
2112
|
+
return function() {
|
|
2113
|
+
var string0, value1 = value(this), string1;
|
|
2114
|
+
if (value1 == null) return void this.removeAttribute(name);
|
|
2115
|
+
string0 = this.getAttribute(name);
|
|
2116
|
+
string1 = value1 + "";
|
|
2117
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
function attrFunctionNS(fullname, interpolate, value) {
|
|
2121
|
+
var string00, string10, interpolate0;
|
|
2122
|
+
return function() {
|
|
2123
|
+
var string0, value1 = value(this), string1;
|
|
2124
|
+
if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local);
|
|
2125
|
+
string0 = this.getAttributeNS(fullname.space, fullname.local);
|
|
2126
|
+
string1 = value1 + "";
|
|
2127
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
2128
|
+
};
|
|
2129
|
+
}
|
|
2130
|
+
function attr_default(name, value) {
|
|
2131
|
+
var fullname = namespace_default(name), i = fullname === "transform" ? interpolateTransformSvg : interpolate_default;
|
|
2132
|
+
return this.attrTween(name, typeof value === "function" ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, tweenValue(this, "attr." + name, value)) : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname) : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value));
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
//#endregion
|
|
2136
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
|
|
2137
|
+
function attrInterpolate(name, i) {
|
|
2138
|
+
return function(t) {
|
|
2139
|
+
this.setAttribute(name, i.call(this, t));
|
|
2140
|
+
};
|
|
2141
|
+
}
|
|
2142
|
+
function attrInterpolateNS(fullname, i) {
|
|
2143
|
+
return function(t) {
|
|
2144
|
+
this.setAttributeNS(fullname.space, fullname.local, i.call(this, t));
|
|
2145
|
+
};
|
|
2146
|
+
}
|
|
2147
|
+
function attrTweenNS(fullname, value) {
|
|
2148
|
+
var t0, i0;
|
|
2149
|
+
function tween() {
|
|
2150
|
+
var i = value.apply(this, arguments);
|
|
2151
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolateNS(fullname, i);
|
|
2152
|
+
return t0;
|
|
2153
|
+
}
|
|
2154
|
+
tween._value = value;
|
|
2155
|
+
return tween;
|
|
2156
|
+
}
|
|
2157
|
+
function attrTween(name, value) {
|
|
2158
|
+
var t0, i0;
|
|
2159
|
+
function tween() {
|
|
2160
|
+
var i = value.apply(this, arguments);
|
|
2161
|
+
if (i !== i0) t0 = (i0 = i) && attrInterpolate(name, i);
|
|
2162
|
+
return t0;
|
|
2163
|
+
}
|
|
2164
|
+
tween._value = value;
|
|
2165
|
+
return tween;
|
|
2166
|
+
}
|
|
2167
|
+
function attrTween_default(name, value) {
|
|
2168
|
+
var key = "attr." + name;
|
|
2169
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
|
2170
|
+
if (value == null) return this.tween(key, null);
|
|
2171
|
+
if (typeof value !== "function") throw new Error();
|
|
2172
|
+
var fullname = namespace_default(name);
|
|
2173
|
+
return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value));
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2176
|
+
//#endregion
|
|
2177
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
|
|
2178
|
+
function delayFunction(id, value) {
|
|
2179
|
+
return function() {
|
|
2180
|
+
init(this, id).delay = +value.apply(this, arguments);
|
|
2181
|
+
};
|
|
2182
|
+
}
|
|
2183
|
+
function delayConstant(id, value) {
|
|
2184
|
+
return value = +value, function() {
|
|
2185
|
+
init(this, id).delay = value;
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2188
|
+
function delay_default(value) {
|
|
2189
|
+
var id = this._id;
|
|
2190
|
+
return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id, value)) : get(this.node(), id).delay;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
//#endregion
|
|
2194
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
|
|
2195
|
+
function durationFunction(id, value) {
|
|
2196
|
+
return function() {
|
|
2197
|
+
set(this, id).duration = +value.apply(this, arguments);
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
function durationConstant(id, value) {
|
|
2201
|
+
return value = +value, function() {
|
|
2202
|
+
set(this, id).duration = value;
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
function duration_default(value) {
|
|
2206
|
+
var id = this._id;
|
|
2207
|
+
return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : get(this.node(), id).duration;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
//#endregion
|
|
2211
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
|
|
2212
|
+
function easeConstant(id, value) {
|
|
2213
|
+
if (typeof value !== "function") throw new Error();
|
|
2214
|
+
return function() {
|
|
2215
|
+
set(this, id).ease = value;
|
|
2216
|
+
};
|
|
2217
|
+
}
|
|
2218
|
+
function ease_default(value) {
|
|
2219
|
+
var id = this._id;
|
|
2220
|
+
return arguments.length ? this.each(easeConstant(id, value)) : get(this.node(), id).ease;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
//#endregion
|
|
2224
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
|
|
2225
|
+
function easeVarying(id, value) {
|
|
2226
|
+
return function() {
|
|
2227
|
+
var v = value.apply(this, arguments);
|
|
2228
|
+
if (typeof v !== "function") throw new Error();
|
|
2229
|
+
set(this, id).ease = v;
|
|
2230
|
+
};
|
|
2231
|
+
}
|
|
2232
|
+
function easeVarying_default(value) {
|
|
2233
|
+
if (typeof value !== "function") throw new Error();
|
|
2234
|
+
return this.each(easeVarying(this._id, value));
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
//#endregion
|
|
2238
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
|
|
2239
|
+
function filter_default(match) {
|
|
2240
|
+
if (typeof match !== "function") match = matcher_default(match);
|
|
2241
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) if ((node = group[i]) && match.call(node, node.__data__, i, group)) subgroup.push(node);
|
|
2242
|
+
return new Transition(subgroups, this._parents, this._name, this._id);
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
//#endregion
|
|
2246
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
|
|
2247
|
+
function merge_default(transition) {
|
|
2248
|
+
if (transition._id !== this._id) throw new Error();
|
|
2249
|
+
for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) if (node = group0[i] || group1[i]) merge[i] = node;
|
|
2250
|
+
for (; j < m0; ++j) merges[j] = groups0[j];
|
|
2251
|
+
return new Transition(merges, this._parents, this._name, this._id);
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
//#endregion
|
|
2255
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
|
|
2256
|
+
function start(name) {
|
|
2257
|
+
return (name + "").trim().split(/^|\s+/).every(function(t) {
|
|
2258
|
+
var i = t.indexOf(".");
|
|
2259
|
+
if (i >= 0) t = t.slice(0, i);
|
|
2260
|
+
return !t || t === "start";
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
function onFunction(id, name, listener) {
|
|
2264
|
+
var on0, on1, sit = start(name) ? init : set;
|
|
2265
|
+
return function() {
|
|
2266
|
+
var schedule = sit(this, id), on = schedule.on;
|
|
2267
|
+
if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener);
|
|
2268
|
+
schedule.on = on1;
|
|
2269
|
+
};
|
|
2270
|
+
}
|
|
2271
|
+
function on_default(name, listener) {
|
|
2272
|
+
var id = this._id;
|
|
2273
|
+
return arguments.length < 2 ? get(this.node(), id).on.on(name) : this.each(onFunction(id, name, listener));
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
//#endregion
|
|
2277
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
|
|
2278
|
+
function removeFunction(id) {
|
|
2279
|
+
return function() {
|
|
2280
|
+
var parent = this.parentNode;
|
|
2281
|
+
for (var i in this.__transition) if (+i !== id) return;
|
|
2282
|
+
if (parent) parent.removeChild(this);
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
function remove_default() {
|
|
2286
|
+
return this.on("end.remove", removeFunction(this._id));
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
//#endregion
|
|
2290
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
|
|
2291
|
+
function select_default(select) {
|
|
2292
|
+
var name = this._name, id = this._id;
|
|
2293
|
+
if (typeof select !== "function") select = selector_default(select);
|
|
2294
|
+
for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) {
|
|
2295
|
+
if ("__data__" in node) subnode.__data__ = node.__data__;
|
|
2296
|
+
subgroup[i] = subnode;
|
|
2297
|
+
schedule_default(subgroup[i], name, id, i, subgroup, get(node, id));
|
|
2298
|
+
}
|
|
2299
|
+
return new Transition(subgroups, this._parents, name, id);
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
//#endregion
|
|
2303
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
|
|
2304
|
+
function selectAll_default(select) {
|
|
2305
|
+
var name = this._name, id = this._id;
|
|
2306
|
+
if (typeof select !== "function") select = selectorAll_default(select);
|
|
2307
|
+
for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) if (node = group[i]) {
|
|
2308
|
+
for (var children = select.call(node, node.__data__, i, group), child, inherit = get(node, id), k = 0, l = children.length; k < l; ++k) if (child = children[k]) schedule_default(child, name, id, k, children, inherit);
|
|
2309
|
+
subgroups.push(children);
|
|
2310
|
+
parents.push(node);
|
|
2311
|
+
}
|
|
2312
|
+
return new Transition(subgroups, parents, name, id);
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
//#endregion
|
|
2316
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
|
|
2317
|
+
var Selection = selection.prototype.constructor;
|
|
2318
|
+
function selection_default() {
|
|
2319
|
+
return new Selection(this._groups, this._parents);
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
//#endregion
|
|
2323
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
|
|
2324
|
+
function styleNull(name, interpolate) {
|
|
2325
|
+
var string00, string10, interpolate0;
|
|
2326
|
+
return function() {
|
|
2327
|
+
var string0 = styleValue(this, name), string1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
2328
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : interpolate0 = interpolate(string00 = string0, string10 = string1);
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
function styleRemove(name) {
|
|
2332
|
+
return function() {
|
|
2333
|
+
this.style.removeProperty(name);
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
function styleConstant(name, interpolate, value1) {
|
|
2337
|
+
var string00, string1 = value1 + "", interpolate0;
|
|
2338
|
+
return function() {
|
|
2339
|
+
var string0 = styleValue(this, name);
|
|
2340
|
+
return string0 === string1 ? null : string0 === string00 ? interpolate0 : interpolate0 = interpolate(string00 = string0, value1);
|
|
2341
|
+
};
|
|
2342
|
+
}
|
|
2343
|
+
function styleFunction(name, interpolate, value) {
|
|
2344
|
+
var string00, string10, interpolate0;
|
|
2345
|
+
return function() {
|
|
2346
|
+
var string0 = styleValue(this, name), value1 = value(this), string1 = value1 + "";
|
|
2347
|
+
if (value1 == null) string1 = value1 = (this.style.removeProperty(name), styleValue(this, name));
|
|
2348
|
+
return string0 === string1 ? null : string0 === string00 && string1 === string10 ? interpolate0 : (string10 = string1, interpolate0 = interpolate(string00 = string0, value1));
|
|
2349
|
+
};
|
|
2350
|
+
}
|
|
2351
|
+
function styleMaybeRemove(id, name) {
|
|
2352
|
+
var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
|
|
2353
|
+
return function() {
|
|
2354
|
+
var schedule = set(this, id), on = schedule.on, listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : void 0;
|
|
2355
|
+
if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
|
|
2356
|
+
schedule.on = on1;
|
|
2357
|
+
};
|
|
2358
|
+
}
|
|
2359
|
+
function style_default(name, value, priority) {
|
|
2360
|
+
var i = (name += "") === "transform" ? interpolateTransformCss : interpolate_default;
|
|
2361
|
+
return value == null ? this.styleTween(name, styleNull(name, i)).on("end.style." + name, styleRemove(name)) : typeof value === "function" ? this.styleTween(name, styleFunction(name, i, tweenValue(this, "style." + name, value))).each(styleMaybeRemove(this._id, name)) : this.styleTween(name, styleConstant(name, i, value), priority).on("end.style." + name, null);
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
//#endregion
|
|
2365
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
|
|
2366
|
+
function styleInterpolate(name, i, priority) {
|
|
2367
|
+
return function(t) {
|
|
2368
|
+
this.style.setProperty(name, i.call(this, t), priority);
|
|
2369
|
+
};
|
|
2370
|
+
}
|
|
2371
|
+
function styleTween(name, value, priority) {
|
|
2372
|
+
var t, i0;
|
|
2373
|
+
function tween() {
|
|
2374
|
+
var i = value.apply(this, arguments);
|
|
2375
|
+
if (i !== i0) t = (i0 = i) && styleInterpolate(name, i, priority);
|
|
2376
|
+
return t;
|
|
2377
|
+
}
|
|
2378
|
+
tween._value = value;
|
|
2379
|
+
return tween;
|
|
2380
|
+
}
|
|
2381
|
+
function styleTween_default(name, value, priority) {
|
|
2382
|
+
var key = "style." + (name += "");
|
|
2383
|
+
if (arguments.length < 2) return (key = this.tween(key)) && key._value;
|
|
2384
|
+
if (value == null) return this.tween(key, null);
|
|
2385
|
+
if (typeof value !== "function") throw new Error();
|
|
2386
|
+
return this.tween(key, styleTween(name, value, priority == null ? "" : priority));
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
//#endregion
|
|
2390
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
|
|
2391
|
+
function textConstant(value) {
|
|
2392
|
+
return function() {
|
|
2393
|
+
this.textContent = value;
|
|
2394
|
+
};
|
|
2395
|
+
}
|
|
2396
|
+
function textFunction(value) {
|
|
2397
|
+
return function() {
|
|
2398
|
+
var value1 = value(this);
|
|
2399
|
+
this.textContent = value1 == null ? "" : value1;
|
|
2400
|
+
};
|
|
2401
|
+
}
|
|
2402
|
+
function text_default(value) {
|
|
2403
|
+
return this.tween("text", typeof value === "function" ? textFunction(tweenValue(this, "text", value)) : textConstant(value == null ? "" : value + ""));
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
//#endregion
|
|
2407
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
|
|
2408
|
+
function textInterpolate(i) {
|
|
2409
|
+
return function(t) {
|
|
2410
|
+
this.textContent = i.call(this, t);
|
|
2411
|
+
};
|
|
2412
|
+
}
|
|
2413
|
+
function textTween(value) {
|
|
2414
|
+
var t0, i0;
|
|
2415
|
+
function tween() {
|
|
2416
|
+
var i = value.apply(this, arguments);
|
|
2417
|
+
if (i !== i0) t0 = (i0 = i) && textInterpolate(i);
|
|
2418
|
+
return t0;
|
|
2419
|
+
}
|
|
2420
|
+
tween._value = value;
|
|
2421
|
+
return tween;
|
|
2422
|
+
}
|
|
2423
|
+
function textTween_default(value) {
|
|
2424
|
+
var key = "text";
|
|
2425
|
+
if (arguments.length < 1) return (key = this.tween(key)) && key._value;
|
|
2426
|
+
if (value == null) return this.tween(key, null);
|
|
2427
|
+
if (typeof value !== "function") throw new Error();
|
|
2428
|
+
return this.tween(key, textTween(value));
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
//#endregion
|
|
2432
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
|
|
2433
|
+
function transition_default$1() {
|
|
2434
|
+
var name = this._name, id0 = this._id, id1 = newId();
|
|
2435
|
+
for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) if (node = group[i]) {
|
|
2436
|
+
var inherit = get(node, id0);
|
|
2437
|
+
schedule_default(node, name, id1, i, group, {
|
|
2438
|
+
time: inherit.time + inherit.delay + inherit.duration,
|
|
2439
|
+
delay: 0,
|
|
2440
|
+
duration: inherit.duration,
|
|
2441
|
+
ease: inherit.ease
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
return new Transition(groups, this._parents, name, id1);
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
//#endregion
|
|
2448
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
|
|
2449
|
+
function end_default() {
|
|
2450
|
+
var on0, on1, that = this, id = that._id, size = that.size();
|
|
2451
|
+
return new Promise(function(resolve, reject) {
|
|
2452
|
+
var cancel = { value: reject }, end = { value: function() {
|
|
2453
|
+
if (--size === 0) resolve();
|
|
2454
|
+
} };
|
|
2455
|
+
that.each(function() {
|
|
2456
|
+
var schedule = set(this, id), on = schedule.on;
|
|
2457
|
+
if (on !== on0) {
|
|
2458
|
+
on1 = (on0 = on).copy();
|
|
2459
|
+
on1._.cancel.push(cancel);
|
|
2460
|
+
on1._.interrupt.push(cancel);
|
|
2461
|
+
on1._.end.push(end);
|
|
2462
|
+
}
|
|
2463
|
+
schedule.on = on1;
|
|
2464
|
+
});
|
|
2465
|
+
if (size === 0) resolve();
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
//#endregion
|
|
2470
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
|
|
2471
|
+
var id = 0;
|
|
2472
|
+
function Transition(groups, parents, name, id) {
|
|
2473
|
+
this._groups = groups;
|
|
2474
|
+
this._parents = parents;
|
|
2475
|
+
this._name = name;
|
|
2476
|
+
this._id = id;
|
|
2477
|
+
}
|
|
2478
|
+
function transition(name) {
|
|
2479
|
+
return selection().transition(name);
|
|
2480
|
+
}
|
|
2481
|
+
function newId() {
|
|
2482
|
+
return ++id;
|
|
2483
|
+
}
|
|
2484
|
+
var selection_prototype = selection.prototype;
|
|
2485
|
+
Transition.prototype = transition.prototype = {
|
|
2486
|
+
constructor: Transition,
|
|
2487
|
+
select: select_default,
|
|
2488
|
+
selectAll: selectAll_default,
|
|
2489
|
+
selectChild: selection_prototype.selectChild,
|
|
2490
|
+
selectChildren: selection_prototype.selectChildren,
|
|
2491
|
+
filter: filter_default,
|
|
2492
|
+
merge: merge_default,
|
|
2493
|
+
selection: selection_default,
|
|
2494
|
+
transition: transition_default$1,
|
|
2495
|
+
call: selection_prototype.call,
|
|
2496
|
+
nodes: selection_prototype.nodes,
|
|
2497
|
+
node: selection_prototype.node,
|
|
2498
|
+
size: selection_prototype.size,
|
|
2499
|
+
empty: selection_prototype.empty,
|
|
2500
|
+
each: selection_prototype.each,
|
|
2501
|
+
on: on_default,
|
|
2502
|
+
attr: attr_default,
|
|
2503
|
+
attrTween: attrTween_default,
|
|
2504
|
+
style: style_default,
|
|
2505
|
+
styleTween: styleTween_default,
|
|
2506
|
+
text: text_default,
|
|
2507
|
+
textTween: textTween_default,
|
|
2508
|
+
remove: remove_default,
|
|
2509
|
+
tween: tween_default,
|
|
2510
|
+
delay: delay_default,
|
|
2511
|
+
duration: duration_default,
|
|
2512
|
+
ease: ease_default,
|
|
2513
|
+
easeVarying: easeVarying_default,
|
|
2514
|
+
end: end_default,
|
|
2515
|
+
[Symbol.iterator]: selection_prototype[Symbol.iterator]
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2518
|
+
//#endregion
|
|
2519
|
+
//#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
|
|
2520
|
+
function cubicInOut(t) {
|
|
2521
|
+
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
//#endregion
|
|
2525
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
|
|
2526
|
+
var defaultTiming = {
|
|
2527
|
+
time: null,
|
|
2528
|
+
delay: 0,
|
|
2529
|
+
duration: 250,
|
|
2530
|
+
ease: cubicInOut
|
|
2531
|
+
};
|
|
2532
|
+
function inherit(node, id) {
|
|
2533
|
+
var timing;
|
|
2534
|
+
while (!(timing = node.__transition) || !(timing = timing[id])) if (!(node = node.parentNode)) throw new Error(`transition ${id} not found`);
|
|
2535
|
+
return timing;
|
|
2536
|
+
}
|
|
2537
|
+
function transition_default(name) {
|
|
2538
|
+
var id, timing;
|
|
2539
|
+
if (name instanceof Transition) id = name._id, name = name._name;
|
|
2540
|
+
else id = newId(), (timing = defaultTiming).time = now(), name = name == null ? null : name + "";
|
|
2541
|
+
for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) if (node = group[i]) schedule_default(node, name, id, i, group, timing || inherit(node, id));
|
|
2542
|
+
return new Transition(groups, this._parents, name, id);
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2545
|
+
//#endregion
|
|
2546
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js
|
|
2547
|
+
selection.prototype.interrupt = interrupt_default;
|
|
2548
|
+
selection.prototype.transition = transition_default;
|
|
2549
|
+
|
|
2550
|
+
//#endregion
|
|
2551
|
+
//#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
|
|
2552
|
+
const { abs, max, min } = Math;
|
|
2553
|
+
function number1(e) {
|
|
2554
|
+
return [+e[0], +e[1]];
|
|
2555
|
+
}
|
|
2556
|
+
function number2(e) {
|
|
2557
|
+
return [number1(e[0]), number1(e[1])];
|
|
2558
|
+
}
|
|
2559
|
+
var X = {
|
|
2560
|
+
name: "x",
|
|
2561
|
+
handles: ["w", "e"].map(type),
|
|
2562
|
+
input: function(x, e) {
|
|
2563
|
+
return x == null ? null : [[+x[0], e[0][1]], [+x[1], e[1][1]]];
|
|
2564
|
+
},
|
|
2565
|
+
output: function(xy) {
|
|
2566
|
+
return xy && [xy[0][0], xy[1][0]];
|
|
2567
|
+
}
|
|
2568
|
+
};
|
|
2569
|
+
var Y = {
|
|
2570
|
+
name: "y",
|
|
2571
|
+
handles: ["n", "s"].map(type),
|
|
2572
|
+
input: function(y, e) {
|
|
2573
|
+
return y == null ? null : [[e[0][0], +y[0]], [e[1][0], +y[1]]];
|
|
2574
|
+
},
|
|
2575
|
+
output: function(xy) {
|
|
2576
|
+
return xy && [xy[0][1], xy[1][1]];
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
var XY = {
|
|
2580
|
+
name: "xy",
|
|
2581
|
+
handles: [
|
|
2582
|
+
"n",
|
|
2583
|
+
"w",
|
|
2584
|
+
"e",
|
|
2585
|
+
"s",
|
|
2586
|
+
"nw",
|
|
2587
|
+
"ne",
|
|
2588
|
+
"sw",
|
|
2589
|
+
"se"
|
|
2590
|
+
].map(type),
|
|
2591
|
+
input: function(xy) {
|
|
2592
|
+
return xy == null ? null : number2(xy);
|
|
2593
|
+
},
|
|
2594
|
+
output: function(xy) {
|
|
2595
|
+
return xy;
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
function type(t) {
|
|
2599
|
+
return { type: t };
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
//#endregion
|
|
2603
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
|
|
2604
|
+
function Transform(k, x, y) {
|
|
2605
|
+
this.k = k;
|
|
2606
|
+
this.x = x;
|
|
2607
|
+
this.y = y;
|
|
2608
|
+
}
|
|
2609
|
+
Transform.prototype = {
|
|
2610
|
+
constructor: Transform,
|
|
2611
|
+
scale: function(k) {
|
|
2612
|
+
return k === 1 ? this : new Transform(this.k * k, this.x, this.y);
|
|
2613
|
+
},
|
|
2614
|
+
translate: function(x, y) {
|
|
2615
|
+
return x === 0 & y === 0 ? this : new Transform(this.k, this.x + this.k * x, this.y + this.k * y);
|
|
2616
|
+
},
|
|
2617
|
+
apply: function(point) {
|
|
2618
|
+
return [point[0] * this.k + this.x, point[1] * this.k + this.y];
|
|
2619
|
+
},
|
|
2620
|
+
applyX: function(x) {
|
|
2621
|
+
return x * this.k + this.x;
|
|
2622
|
+
},
|
|
2623
|
+
applyY: function(y) {
|
|
2624
|
+
return y * this.k + this.y;
|
|
2625
|
+
},
|
|
2626
|
+
invert: function(location) {
|
|
2627
|
+
return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
|
|
2628
|
+
},
|
|
2629
|
+
invertX: function(x) {
|
|
2630
|
+
return (x - this.x) / this.k;
|
|
2631
|
+
},
|
|
2632
|
+
invertY: function(y) {
|
|
2633
|
+
return (y - this.y) / this.k;
|
|
2634
|
+
},
|
|
2635
|
+
rescaleX: function(x) {
|
|
2636
|
+
return x.copy().domain(x.range().map(this.invertX, this).map(x.invert, x));
|
|
2637
|
+
},
|
|
2638
|
+
rescaleY: function(y) {
|
|
2639
|
+
return y.copy().domain(y.range().map(this.invertY, this).map(y.invert, y));
|
|
2640
|
+
},
|
|
2641
|
+
toString: function() {
|
|
2642
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
var identity = new Transform(1, 0, 0);
|
|
2646
|
+
transform.prototype = Transform.prototype;
|
|
2647
|
+
function transform(node) {
|
|
2648
|
+
while (!node.__zoom) if (!(node = node.parentNode)) return identity;
|
|
2649
|
+
return node.__zoom;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
//#endregion
|
|
2653
|
+
export { nogamma as a, Rgb as c, define_default as d, extend as f, require_dayjs_min as g, setLogLevel as h, hue as i, color as l, log as m, number_default as n, constant_default as o, select_default$1 as p, rgb_default as r, Color as s, string_default as t, rgbConvert as u };
|