@genome-spy/app 1.1.1 → 1.3.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.
Files changed (96) hide show
  1. package/dist/{SharedReadCache-Ey5QIiPM.js → SharedReadCache-9sT2aIxW.js} +6 -12
  2. package/dist/__vite-browser-external-Dgu_Ldik.js +7 -0
  3. package/dist/{agentApi-sPuuT0KS.js → agentApi-BclFF9zB.js} +9981 -8914
  4. package/dist/agentApi.es.js +6783 -5135
  5. package/dist/agentShared.es.js +433 -460
  6. package/dist/arrayUtils-Bm7QnzhN.js +1306 -0
  7. package/dist/{blosc-JROzDOnd.js → blosc-C-W97QwH.js} +3 -3
  8. package/dist/{canvas2d-iDK4BC5j.js → canvas2d-8MSf70d4.js} +141 -134
  9. package/dist/{canvas2d-MXaFeZnP.js → canvas2d-BwGNI_Rx.js} +147 -141
  10. package/dist/clipOptions-SrrxeAEU.js +4316 -0
  11. package/dist/clipOptions-clBEbkjv.js +4326 -0
  12. package/dist/{layoutResult-D50MSHXR.js → color-jETn8xK_.js} +29 -10
  13. package/dist/color-uTRRsy8i.js +116 -0
  14. package/dist/{componentStyles-DGtQXvwc.js → componentStyles-C7FbjS-a.js} +1 -1
  15. package/dist/{viewIdentityRegistry-BIYd4TE0.js → containerView-BItRtKqu.js} +28 -31
  16. package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CWa6ZIJW.js} +28 -31
  17. package/dist/{debug-DbigmdrK.js → debug-23s-jja_.js} +10 -9
  18. package/dist/{debug-BlqDxTw3.js → debug-CWRxvAss.js} +9 -10
  19. package/dist/dialog.es.js +1 -1
  20. package/dist/dist-CmY6iewb.js +1501 -0
  21. package/dist/dist-D6xbz5Ks.js +1501 -0
  22. package/dist/{esm-CjkeZi__.js → esm-BFwBAnbO.js} +25 -25
  23. package/dist/esm-BUkWqSr2.js +299 -0
  24. package/dist/{esm-C-6g-SkZ.js → esm-C0xXMLsR.js} +37 -41
  25. package/dist/{esm-CJeszW-t.js → esm-C2xhhXs0.js} +7 -7
  26. package/dist/esm-C6erfjPM.js +252 -0
  27. package/dist/{esm-DFHFX1sH.js → esm-CVjC7qA4.js} +34 -38
  28. package/dist/esm-CqY5ezGz.js +1249 -0
  29. package/dist/esm-DfMIJ_N2.js +1522 -0
  30. package/dist/esm-Dls41IbZ.js +787 -0
  31. package/dist/{esm-Bv7Frz7C.js → esm-DzQDfrsZ.js} +7 -10
  32. package/dist/esm-aGLCvYRP.js +238 -0
  33. package/dist/{esm-VFJeyk9i.js → esm-nzwgJFGz.js} +40 -36
  34. package/dist/figWigMetadataSourceAdapter-8Kf_vZRf.js +36 -0
  35. package/dist/figWigMetadataSourceAdapter-DdDMZpYO.js +36 -0
  36. package/dist/flowNode-BSjy0Wz3.js +1306 -0
  37. package/dist/flowOutput-D5qpxWe0.js +183 -0
  38. package/dist/index.es.js +4766 -5522
  39. package/dist/index.js +1089 -685
  40. package/dist/inflate-BdC5KvHn.js +886 -0
  41. package/dist/{lz4-CUYSbVey.js → lz4-BLPgBOlE.js} +1 -1
  42. package/dist/markUtils-RaatLEa-.js +78 -0
  43. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  44. package/dist/metadataUtils-DxEPe0vj.js +879 -0
  45. package/dist/order-BnKzKjt4.js +1151 -0
  46. package/dist/order-BpJnq_nV.js +1150 -0
  47. package/dist/{parquetRead-0hFIa3Cc.js → parquetRead-D-yY8njE.js} +3 -11
  48. package/dist/{rasterExport-B62RmAK1.js → rasterExport-B-WrX1pa.js} +5 -5
  49. package/dist/{rasterExport-DQH3hVg_.js → rasterExport-C_vx4Jwd.js} +4 -4
  50. package/dist/{rasterization-B05bDo5e.js → rasterization-QktH8Sn2.js} +26 -19
  51. package/dist/rectangle-BAdoDPXu.js +194 -0
  52. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  53. package/dist/renderCanvas2D-CsRO78Pq.js +291 -0
  54. package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Y7pkRzbC.js} +98 -92
  55. package/dist/{rolldown-runtime-DF993M8W.js → rolldown-runtime-DeIk2rA4.js} +1 -1
  56. package/dist/{indexer-DbFTKGlm.js → scaleNull-CVzag4z8.js} +2 -12
  57. package/dist/{indexer-En7gpvLN.js → scaleNull-Pbz7QGnl.js} +2 -12
  58. package/dist/{scalePosition-ByvlXaML.js → scalePosition-CRXa0rCC.js} +8 -1
  59. package/dist/schema.json +33403 -16929
  60. package/dist/style.css +1 -1
  61. package/dist/{svg-N3tj05-e.js → svg-BBMtLgtM.js} +445 -362
  62. package/dist/{svg-DHsq1RpV.js → svg-JjWL6U-T.js} +464 -381
  63. package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-6OcftuoI.js} +3 -3
  64. package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-DkNRaCPs.js} +4 -4
  65. package/dist/tableMetadataSourceAdapter-CUNwLsdi.js +291 -0
  66. package/dist/tableMetadataSourceAdapter-DQrEXCo6.js +1283 -0
  67. package/dist/url-DeOdSRrv.js +183 -0
  68. package/dist/viewError-B0TMfOpB.js +33 -0
  69. package/dist/viewError-D9aO90cI.js +33 -0
  70. package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-DkFvo33d.js} +914 -752
  71. package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-lM93fHAq.js} +942 -780
  72. package/dist/viewUtils-0SJOewM6.js +6195 -0
  73. package/dist/webgl-CXIO3OQz.js +5782 -0
  74. package/dist/webgl-Pdvfhio5.js +5783 -0
  75. package/package.json +7 -5
  76. package/src/agentApi/index.d.ts +3 -2
  77. package/src/agentShared/index.d.ts +2 -0
  78. package/src/appTypes.d.ts +1 -6
  79. package/src/embedTypes.d.ts +36 -1
  80. package/src/index.d.ts +6 -0
  81. package/src/spec/sampleView.d.ts +68 -13
  82. package/src/spec/view.d.ts +44 -5
  83. package/src/state/paramProvenanceTypes.d.ts +25 -2
  84. package/src/state.d.ts +14 -52
  85. package/dist/clipOptions-B5PibDq3.js +0 -2923
  86. package/dist/clipOptions-Cba4I0AO.js +0 -2903
  87. package/dist/esm-Dndm-NaA.js +0 -1193
  88. package/dist/order-B4uR9Q04.js +0 -1062
  89. package/dist/order-BSPy5DI8.js +0 -1062
  90. package/dist/renderCanvas2D-ChdoHGrU.js +0 -285
  91. package/dist/vega-scale-Byaw1K8O.js +0 -2446
  92. package/dist/vega-scale-Ctz_wa3z.js +0 -2443
  93. package/dist/viewError-BiR9VCgL.js +0 -29
  94. package/dist/viewUtils-JX6CMEYH.js +0 -6664
  95. package/dist/webgl-DdmOwEH0.js +0 -5544
  96. package/dist/webgl-Dw8xqZpX.js +0 -5544
@@ -0,0 +1,1306 @@
1
+ //#region ../../node_modules/d3-array/src/ticks.js
2
+ var e = Math.sqrt(50), t = Math.sqrt(10), n = Math.sqrt(2);
3
+ function r(i, a, o) {
4
+ let s = (a - i) / Math.max(0, o), c = Math.floor(Math.log10(s)), l = s / 10 ** c, u = l >= e ? 10 : l >= t ? 5 : l >= n ? 2 : 1, d, f, p;
5
+ return c < 0 ? (p = 10 ** -c / u, d = Math.round(i * p), f = Math.round(a * p), d / p < i && ++d, f / p > a && --f, p = -p) : (p = 10 ** c * u, d = Math.round(i / p), f = Math.round(a / p), d * p < i && ++d, f * p > a && --f), f < d && .5 <= o && o < 2 ? r(i, a, o * 2) : [
6
+ d,
7
+ f,
8
+ p
9
+ ];
10
+ }
11
+ function i(e, t, n) {
12
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
13
+ if (e === t) return [e];
14
+ let i = t < e, [a, o, s] = i ? r(t, e, n) : r(e, t, n);
15
+ if (!(o >= a)) return [];
16
+ let c = o - a + 1, l = Array(c);
17
+ if (i) {
18
+ if (s < 0) for (let e = 0; e < c; ++e) l[e] = (o - e) / -s;
19
+ else for (let e = 0; e < c; ++e) l[e] = (o - e) * s;
20
+ } else if (s < 0) for (let e = 0; e < c; ++e) l[e] = (a + e) / -s;
21
+ else for (let e = 0; e < c; ++e) l[e] = (a + e) * s;
22
+ return l;
23
+ }
24
+ function a(e, t, n) {
25
+ return t = +t, e = +e, n = +n, r(e, t, n)[2];
26
+ }
27
+ function o(e, t, n) {
28
+ t = +t, e = +e, n = +n;
29
+ let r = t < e, i = r ? a(t, e, n) : a(e, t, n);
30
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
31
+ }
32
+ //#endregion
33
+ //#region ../../node_modules/d3-array/src/range.js
34
+ function s(e, t, n) {
35
+ e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
36
+ for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
37
+ return a;
38
+ }
39
+ //#endregion
40
+ //#region ../../node_modules/d3-format/src/formatDecimal.js
41
+ function c(e) {
42
+ return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
43
+ }
44
+ function l(e, t) {
45
+ if (!isFinite(e) || e === 0) return null;
46
+ var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
47
+ return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
48
+ }
49
+ //#endregion
50
+ //#region ../../node_modules/d3-format/src/exponent.js
51
+ function u(e) {
52
+ return e = l(Math.abs(e)), e ? e[1] : NaN;
53
+ }
54
+ //#endregion
55
+ //#region ../../node_modules/d3-format/src/formatGroup.js
56
+ function d(e, t) {
57
+ return function(n, r) {
58
+ for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
59
+ return a.reverse().join(t);
60
+ };
61
+ }
62
+ //#endregion
63
+ //#region ../../node_modules/d3-format/src/formatNumerals.js
64
+ function f(e) {
65
+ return function(t) {
66
+ return t.replace(/[0-9]/g, function(t) {
67
+ return e[+t];
68
+ });
69
+ };
70
+ }
71
+ //#endregion
72
+ //#region ../../node_modules/d3-format/src/formatSpecifier.js
73
+ var p = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
74
+ function m(e) {
75
+ if (!(t = p.exec(e))) throw Error("invalid format: " + e);
76
+ var t;
77
+ return new h({
78
+ fill: t[1],
79
+ align: t[2],
80
+ sign: t[3],
81
+ symbol: t[4],
82
+ zero: t[5],
83
+ width: t[6],
84
+ comma: t[7],
85
+ precision: t[8] && t[8].slice(1),
86
+ trim: t[9],
87
+ type: t[10]
88
+ });
89
+ }
90
+ m.prototype = h.prototype;
91
+ function h(e) {
92
+ this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
93
+ }
94
+ h.prototype.toString = function() {
95
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
96
+ };
97
+ //#endregion
98
+ //#region ../../node_modules/d3-format/src/formatTrim.js
99
+ function ee(e) {
100
+ out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
101
+ case ".":
102
+ r = i = n;
103
+ break;
104
+ case "0":
105
+ r === 0 && (r = n), i = n;
106
+ break;
107
+ default:
108
+ if (!+e[n]) break out;
109
+ r > 0 && (r = 0);
110
+ }
111
+ return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
112
+ }
113
+ //#endregion
114
+ //#region ../../node_modules/d3-format/src/formatPrefixAuto.js
115
+ var g;
116
+ function _(e, t) {
117
+ var n = l(e, t);
118
+ if (!n) return g = void 0, e.toPrecision(t);
119
+ var r = n[0], i = n[1], a = i - (g = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
120
+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + l(e, Math.max(0, t + a - 1))[0];
121
+ }
122
+ //#endregion
123
+ //#region ../../node_modules/d3-format/src/formatRounded.js
124
+ function v(e, t) {
125
+ var n = l(e, t);
126
+ if (!n) return e + "";
127
+ var r = n[0], i = n[1];
128
+ return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
129
+ }
130
+ //#endregion
131
+ //#region ../../node_modules/d3-format/src/formatTypes.js
132
+ var y = {
133
+ "%": (e, t) => (e * 100).toFixed(t),
134
+ b: (e) => Math.round(e).toString(2),
135
+ c: (e) => e + "",
136
+ d: c,
137
+ e: (e, t) => e.toExponential(t),
138
+ f: (e, t) => e.toFixed(t),
139
+ g: (e, t) => e.toPrecision(t),
140
+ o: (e) => Math.round(e).toString(8),
141
+ p: (e, t) => v(e * 100, t),
142
+ r: v,
143
+ s: _,
144
+ X: (e) => Math.round(e).toString(16).toUpperCase(),
145
+ x: (e) => Math.round(e).toString(16)
146
+ };
147
+ //#endregion
148
+ //#region ../../node_modules/d3-format/src/identity.js
149
+ function b(e) {
150
+ return e;
151
+ }
152
+ //#endregion
153
+ //#region ../../node_modules/d3-format/src/locale.js
154
+ var x = Array.prototype.map, te = [
155
+ "y",
156
+ "z",
157
+ "a",
158
+ "f",
159
+ "p",
160
+ "n",
161
+ "µ",
162
+ "m",
163
+ "",
164
+ "k",
165
+ "M",
166
+ "G",
167
+ "T",
168
+ "P",
169
+ "E",
170
+ "Z",
171
+ "Y"
172
+ ];
173
+ function S(e) {
174
+ var t = e.grouping === void 0 || e.thousands === void 0 ? b : d(x.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? b : f(x.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
175
+ function l(e, l) {
176
+ e = m(e);
177
+ var u = e.fill, d = e.align, f = e.sign, p = e.symbol, h = e.zero, _ = e.width, v = e.comma, b = e.precision, x = e.trim, S = e.type;
178
+ S === "n" ? (v = !0, S = "g") : y[S] || (b === void 0 && (b = 12), x = !0, S = "g"), (h || u === "0" && d === "=") && (h = !0, u = "0", d = "=");
179
+ var C = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(S) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re = y[S], ie = /[defgprs%]/.test(S);
180
+ b = b === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
181
+ function w(e) {
182
+ var n = C, r = ne, o, l, p;
183
+ if (S === "c") r = re(e) + r, e = "";
184
+ else {
185
+ e = +e;
186
+ var m = e < 0 || 1 / e < 0;
187
+ if (e = isNaN(e) ? c : re(Math.abs(e), b), x && (e = ee(e)), m && +e == 0 && f !== "+" && (m = !1), n = (m ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (S === "s" && !isNaN(e) && g !== void 0 ? te[8 + g / 3] : "") + r + (m && f === "(" ? ")" : ""), ie) {
188
+ for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
189
+ r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
190
+ break;
191
+ }
192
+ }
193
+ }
194
+ v && !h && (e = t(e, Infinity));
195
+ var y = n.length + e.length + r.length, w = y < _ ? Array(_ - y + 1).join(u) : "";
196
+ switch (v && h && (e = t(w + e, w.length ? _ - r.length : Infinity), w = ""), d) {
197
+ case "<":
198
+ e = n + e + r + w;
199
+ break;
200
+ case "=":
201
+ e = n + w + e + r;
202
+ break;
203
+ case "^":
204
+ e = w.slice(0, y = w.length >> 1) + n + e + r + w.slice(y);
205
+ break;
206
+ default: e = w + n + e + r;
207
+ }
208
+ return a(e);
209
+ }
210
+ return w.toString = function() {
211
+ return e + "";
212
+ }, w;
213
+ }
214
+ function p(e, t) {
215
+ var n = Math.max(-8, Math.min(8, Math.floor(u(t) / 3))) * 3, r = 10 ** -n, i = l((e = m(e), e.type = "f", e), { suffix: te[8 + n / 3] });
216
+ return function(e) {
217
+ return i(r * e);
218
+ };
219
+ }
220
+ return {
221
+ format: l,
222
+ formatPrefix: p
223
+ };
224
+ }
225
+ //#endregion
226
+ //#region ../../node_modules/d3-format/src/defaultLocale.js
227
+ var C, ne, re;
228
+ ie({
229
+ thousands: ",",
230
+ grouping: [3],
231
+ currency: ["$", ""]
232
+ });
233
+ function ie(e) {
234
+ return C = S(e), ne = C.format, re = C.formatPrefix, C;
235
+ }
236
+ //#endregion
237
+ //#region ../../node_modules/d3-format/src/precisionFixed.js
238
+ function w(e) {
239
+ return Math.max(0, -u(Math.abs(e)));
240
+ }
241
+ //#endregion
242
+ //#region ../../node_modules/d3-format/src/precisionPrefix.js
243
+ function ae(e, t) {
244
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(u(t) / 3))) * 3 - u(Math.abs(e)));
245
+ }
246
+ //#endregion
247
+ //#region ../../node_modules/d3-format/src/precisionRound.js
248
+ function oe(e, t) {
249
+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, u(t) - u(e)) + 1;
250
+ }
251
+ //#endregion
252
+ //#region ../../node_modules/d3-time/src/interval.js
253
+ var se = /* @__PURE__ */ new Date(), ce = /* @__PURE__ */ new Date();
254
+ function T(e, t, n, r) {
255
+ function i(t) {
256
+ return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
257
+ }
258
+ return i.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), i.ceil = (n) => (e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n), i.round = (e) => {
259
+ let t = i(e), n = i.ceil(e);
260
+ return e - t < n - e ? t : n;
261
+ }, i.offset = (e, n) => (t(e = /* @__PURE__ */ new Date(+e), n == null ? 1 : Math.floor(n)), e), i.range = (n, r, a) => {
262
+ let o = [];
263
+ if (n = i.ceil(n), a = a == null ? 1 : Math.floor(a), !(n < r) || !(a > 0)) return o;
264
+ let s;
265
+ do
266
+ o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
267
+ while (s < n && n < r);
268
+ return o;
269
+ }, i.filter = (n) => T((t) => {
270
+ if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
271
+ }, (e, r) => {
272
+ if (e >= e) {
273
+ if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
274
+ else for (; --r >= 0;) for (; t(e, 1), !n(e););
275
+ }
276
+ }), n && (i.count = (t, r) => (se.setTime(+t), ce.setTime(+r), e(se), e(ce), Math.floor(n(se, ce))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
277
+ }
278
+ //#endregion
279
+ //#region ../../node_modules/d3-time/src/millisecond.js
280
+ var E = T(() => {}, (e, t) => {
281
+ e.setTime(+e + t);
282
+ }, (e, t) => t - e);
283
+ E.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? T((t) => {
284
+ t.setTime(Math.floor(t / e) * e);
285
+ }, (t, n) => {
286
+ t.setTime(+t + n * e);
287
+ }, (t, n) => (n - t) / e) : E), E.range;
288
+ //#endregion
289
+ //#region ../../node_modules/d3-time/src/duration.js
290
+ var D = 1e3, O = D * 60, k = O * 60, A = k * 24, le = A * 7, ue = A * 30, de = A * 365, fe = T((e) => {
291
+ e.setTime(e - e.getMilliseconds());
292
+ }, (e, t) => {
293
+ e.setTime(+e + t * D);
294
+ }, (e, t) => (t - e) / D, (e) => e.getUTCSeconds());
295
+ fe.range;
296
+ //#endregion
297
+ //#region ../../node_modules/d3-time/src/minute.js
298
+ var pe = T((e) => {
299
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * D);
300
+ }, (e, t) => {
301
+ e.setTime(+e + t * O);
302
+ }, (e, t) => (t - e) / O, (e) => e.getMinutes());
303
+ pe.range;
304
+ var me = T((e) => {
305
+ e.setUTCSeconds(0, 0);
306
+ }, (e, t) => {
307
+ e.setTime(+e + t * O);
308
+ }, (e, t) => (t - e) / O, (e) => e.getUTCMinutes());
309
+ me.range;
310
+ //#endregion
311
+ //#region ../../node_modules/d3-time/src/hour.js
312
+ var he = T((e) => {
313
+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * D - e.getMinutes() * O);
314
+ }, (e, t) => {
315
+ e.setTime(+e + t * k);
316
+ }, (e, t) => (t - e) / k, (e) => e.getHours());
317
+ he.range;
318
+ var ge = T((e) => {
319
+ e.setUTCMinutes(0, 0, 0);
320
+ }, (e, t) => {
321
+ e.setTime(+e + t * k);
322
+ }, (e, t) => (t - e) / k, (e) => e.getUTCHours());
323
+ ge.range;
324
+ //#endregion
325
+ //#region ../../node_modules/d3-time/src/day.js
326
+ var j = T((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * O) / A, (e) => e.getDate() - 1);
327
+ j.range;
328
+ var M = T((e) => {
329
+ e.setUTCHours(0, 0, 0, 0);
330
+ }, (e, t) => {
331
+ e.setUTCDate(e.getUTCDate() + t);
332
+ }, (e, t) => (t - e) / A, (e) => e.getUTCDate() - 1);
333
+ M.range;
334
+ var _e = T((e) => {
335
+ e.setUTCHours(0, 0, 0, 0);
336
+ }, (e, t) => {
337
+ e.setUTCDate(e.getUTCDate() + t);
338
+ }, (e, t) => (t - e) / A, (e) => Math.floor(e / A));
339
+ _e.range;
340
+ //#endregion
341
+ //#region ../../node_modules/d3-time/src/week.js
342
+ function N(e) {
343
+ return T((t) => {
344
+ t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
345
+ }, (e, t) => {
346
+ e.setDate(e.getDate() + t * 7);
347
+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * O) / le);
348
+ }
349
+ var ve = N(0), P = N(1), ye = N(2), be = N(3), F = N(4), xe = N(5), Se = N(6);
350
+ ve.range, P.range, ye.range, be.range, F.range, xe.range, Se.range;
351
+ function I(e) {
352
+ return T((t) => {
353
+ t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
354
+ }, (e, t) => {
355
+ e.setUTCDate(e.getUTCDate() + t * 7);
356
+ }, (e, t) => (t - e) / le);
357
+ }
358
+ var Ce = I(0), L = I(1), we = I(2), Te = I(3), R = I(4), Ee = I(5), De = I(6);
359
+ Ce.range, L.range, we.range, Te.range, R.range, Ee.range, De.range;
360
+ //#endregion
361
+ //#region ../../node_modules/d3-time/src/month.js
362
+ var Oe = T((e) => {
363
+ e.setDate(1), e.setHours(0, 0, 0, 0);
364
+ }, (e, t) => {
365
+ e.setMonth(e.getMonth() + t);
366
+ }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
367
+ Oe.range;
368
+ var ke = T((e) => {
369
+ e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
370
+ }, (e, t) => {
371
+ e.setUTCMonth(e.getUTCMonth() + t);
372
+ }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
373
+ ke.range;
374
+ //#endregion
375
+ //#region ../../node_modules/d3-time/src/year.js
376
+ var z = T((e) => {
377
+ e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
378
+ }, (e, t) => {
379
+ e.setFullYear(e.getFullYear() + t);
380
+ }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
381
+ z.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : T((t) => {
382
+ t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
383
+ }, (t, n) => {
384
+ t.setFullYear(t.getFullYear() + n * e);
385
+ }), z.range;
386
+ var B = T((e) => {
387
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
388
+ }, (e, t) => {
389
+ e.setUTCFullYear(e.getUTCFullYear() + t);
390
+ }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
391
+ B.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : T((t) => {
392
+ t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
393
+ }, (t, n) => {
394
+ t.setUTCFullYear(t.getUTCFullYear() + n * e);
395
+ }), B.range;
396
+ //#endregion
397
+ //#region ../../node_modules/d3-time-format/src/locale.js
398
+ function Ae(e) {
399
+ if (0 <= e.y && e.y < 100) {
400
+ var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
401
+ return t.setFullYear(e.y), t;
402
+ }
403
+ return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
404
+ }
405
+ function je(e) {
406
+ if (0 <= e.y && e.y < 100) {
407
+ var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
408
+ return t.setUTCFullYear(e.y), t;
409
+ }
410
+ return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
411
+ }
412
+ function V(e, t, n) {
413
+ return {
414
+ y: e,
415
+ m: t,
416
+ d: n,
417
+ H: 0,
418
+ M: 0,
419
+ S: 0,
420
+ L: 0
421
+ };
422
+ }
423
+ function Me(e) {
424
+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = W(i), u = G(i), d = W(a), f = G(a), p = W(o), m = G(o), h = W(s), ee = G(s), g = W(c), _ = G(c), v = {
425
+ a: ce,
426
+ A: T,
427
+ b: E,
428
+ B: D,
429
+ c: null,
430
+ d: rt,
431
+ e: rt,
432
+ f: ct,
433
+ g: yt,
434
+ G: xt,
435
+ H: it,
436
+ I: at,
437
+ j: ot,
438
+ L: st,
439
+ m: lt,
440
+ M: ut,
441
+ p: O,
442
+ q: k,
443
+ Q: Wt,
444
+ s: Gt,
445
+ S: dt,
446
+ u: ft,
447
+ U: pt,
448
+ V: ht,
449
+ w: gt,
450
+ W: _t,
451
+ x: null,
452
+ X: null,
453
+ y: vt,
454
+ Y: bt,
455
+ Z: St,
456
+ "%": Ut
457
+ }, y = {
458
+ a: A,
459
+ A: le,
460
+ b: ue,
461
+ B: de,
462
+ c: null,
463
+ d: Ct,
464
+ e: Ct,
465
+ f: Ot,
466
+ g: zt,
467
+ G: Vt,
468
+ H: wt,
469
+ I: Tt,
470
+ j: Et,
471
+ L: Dt,
472
+ m: kt,
473
+ M: At,
474
+ p: fe,
475
+ q: pe,
476
+ Q: Wt,
477
+ s: Gt,
478
+ S: jt,
479
+ u: Mt,
480
+ U: Nt,
481
+ V: Ft,
482
+ w: It,
483
+ W: Lt,
484
+ x: null,
485
+ X: null,
486
+ y: Rt,
487
+ Y: Bt,
488
+ Z: Ht,
489
+ "%": Ut
490
+ }, b = {
491
+ a: ne,
492
+ A: re,
493
+ b: ie,
494
+ B: w,
495
+ c: ae,
496
+ d: qe,
497
+ e: qe,
498
+ f: $e,
499
+ g: Ue,
500
+ G: He,
501
+ H: Ye,
502
+ I: Ye,
503
+ j: Je,
504
+ L: Qe,
505
+ m: Ke,
506
+ M: Xe,
507
+ p: C,
508
+ q: Ge,
509
+ Q: tt,
510
+ s: nt,
511
+ S: Ze,
512
+ u: Re,
513
+ U: ze,
514
+ V: Be,
515
+ w: Le,
516
+ W: Ve,
517
+ x: oe,
518
+ X: se,
519
+ y: Ue,
520
+ Y: He,
521
+ Z: We,
522
+ "%": et
523
+ };
524
+ v.x = x(n, v), v.X = x(r, v), v.c = x(t, v), y.x = x(n, y), y.X = x(r, y), y.c = x(t, y);
525
+ function x(e, t) {
526
+ return function(n) {
527
+ var r = [], i = -1, a = 0, o = e.length, s, c, l;
528
+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = Ne[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
529
+ return r.push(e.slice(a, i)), r.join("");
530
+ };
531
+ }
532
+ function te(e, t) {
533
+ return function(n) {
534
+ var r = V(1900, void 0, 1), i = S(r, e, n += "", 0), a, o;
535
+ if (i != n.length) return null;
536
+ if ("Q" in r) return new Date(r.Q);
537
+ if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
538
+ if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
539
+ if (r.V < 1 || r.V > 53) return null;
540
+ "w" in r || (r.w = 1), "Z" in r ? (a = je(V(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? L.ceil(a) : L(a), a = M.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = Ae(V(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? P.ceil(a) : P(a), a = j.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
541
+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? je(V(r.y, 0, 1)).getUTCDay() : Ae(V(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
542
+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, je(r)) : Ae(r);
543
+ };
544
+ }
545
+ function S(e, t, n, r) {
546
+ for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
547
+ if (r >= o) return -1;
548
+ if (s = t.charCodeAt(i++), s === 37) {
549
+ if (s = t.charAt(i++), c = b[s in Ne ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
550
+ } else if (s != n.charCodeAt(r++)) return -1;
551
+ }
552
+ return r;
553
+ }
554
+ function C(e, t, n) {
555
+ var r = l.exec(t.slice(n));
556
+ return r ? (e.p = u.get(r[0].toLowerCase()), n + r[0].length) : -1;
557
+ }
558
+ function ne(e, t, n) {
559
+ var r = p.exec(t.slice(n));
560
+ return r ? (e.w = m.get(r[0].toLowerCase()), n + r[0].length) : -1;
561
+ }
562
+ function re(e, t, n) {
563
+ var r = d.exec(t.slice(n));
564
+ return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
565
+ }
566
+ function ie(e, t, n) {
567
+ var r = g.exec(t.slice(n));
568
+ return r ? (e.m = _.get(r[0].toLowerCase()), n + r[0].length) : -1;
569
+ }
570
+ function w(e, t, n) {
571
+ var r = h.exec(t.slice(n));
572
+ return r ? (e.m = ee.get(r[0].toLowerCase()), n + r[0].length) : -1;
573
+ }
574
+ function ae(e, n, r) {
575
+ return S(e, t, n, r);
576
+ }
577
+ function oe(e, t, r) {
578
+ return S(e, n, t, r);
579
+ }
580
+ function se(e, t, n) {
581
+ return S(e, r, t, n);
582
+ }
583
+ function ce(e) {
584
+ return o[e.getDay()];
585
+ }
586
+ function T(e) {
587
+ return a[e.getDay()];
588
+ }
589
+ function E(e) {
590
+ return c[e.getMonth()];
591
+ }
592
+ function D(e) {
593
+ return s[e.getMonth()];
594
+ }
595
+ function O(e) {
596
+ return i[+(e.getHours() >= 12)];
597
+ }
598
+ function k(e) {
599
+ return 1 + ~~(e.getMonth() / 3);
600
+ }
601
+ function A(e) {
602
+ return o[e.getUTCDay()];
603
+ }
604
+ function le(e) {
605
+ return a[e.getUTCDay()];
606
+ }
607
+ function ue(e) {
608
+ return c[e.getUTCMonth()];
609
+ }
610
+ function de(e) {
611
+ return s[e.getUTCMonth()];
612
+ }
613
+ function fe(e) {
614
+ return i[+(e.getUTCHours() >= 12)];
615
+ }
616
+ function pe(e) {
617
+ return 1 + ~~(e.getUTCMonth() / 3);
618
+ }
619
+ return {
620
+ format: function(e) {
621
+ var t = x(e += "", v);
622
+ return t.toString = function() {
623
+ return e;
624
+ }, t;
625
+ },
626
+ parse: function(e) {
627
+ var t = te(e += "", !1);
628
+ return t.toString = function() {
629
+ return e;
630
+ }, t;
631
+ },
632
+ utcFormat: function(e) {
633
+ var t = x(e += "", y);
634
+ return t.toString = function() {
635
+ return e;
636
+ }, t;
637
+ },
638
+ utcParse: function(e) {
639
+ var t = te(e += "", !0);
640
+ return t.toString = function() {
641
+ return e;
642
+ }, t;
643
+ }
644
+ };
645
+ }
646
+ var Ne = {
647
+ "-": "",
648
+ _: " ",
649
+ 0: "0"
650
+ }, H = /^\s*\d+/, Pe = /^%/, Fe = /[\\^$*+?|[\]().{}]/g;
651
+ function U(e, t, n) {
652
+ var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
653
+ return r + (a < n ? Array(n - a + 1).join(t) + i : i);
654
+ }
655
+ function Ie(e) {
656
+ return e.replace(Fe, "\\$&");
657
+ }
658
+ function W(e) {
659
+ return RegExp("^(?:" + e.map(Ie).join("|") + ")", "i");
660
+ }
661
+ function G(e) {
662
+ return new Map(e.map((e, t) => [e.toLowerCase(), t]));
663
+ }
664
+ function Le(e, t, n) {
665
+ var r = H.exec(t.slice(n, n + 1));
666
+ return r ? (e.w = +r[0], n + r[0].length) : -1;
667
+ }
668
+ function Re(e, t, n) {
669
+ var r = H.exec(t.slice(n, n + 1));
670
+ return r ? (e.u = +r[0], n + r[0].length) : -1;
671
+ }
672
+ function ze(e, t, n) {
673
+ var r = H.exec(t.slice(n, n + 2));
674
+ return r ? (e.U = +r[0], n + r[0].length) : -1;
675
+ }
676
+ function Be(e, t, n) {
677
+ var r = H.exec(t.slice(n, n + 2));
678
+ return r ? (e.V = +r[0], n + r[0].length) : -1;
679
+ }
680
+ function Ve(e, t, n) {
681
+ var r = H.exec(t.slice(n, n + 2));
682
+ return r ? (e.W = +r[0], n + r[0].length) : -1;
683
+ }
684
+ function He(e, t, n) {
685
+ var r = H.exec(t.slice(n, n + 4));
686
+ return r ? (e.y = +r[0], n + r[0].length) : -1;
687
+ }
688
+ function Ue(e, t, n) {
689
+ var r = H.exec(t.slice(n, n + 2));
690
+ return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
691
+ }
692
+ function We(e, t, n) {
693
+ var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
694
+ return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
695
+ }
696
+ function Ge(e, t, n) {
697
+ var r = H.exec(t.slice(n, n + 1));
698
+ return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
699
+ }
700
+ function Ke(e, t, n) {
701
+ var r = H.exec(t.slice(n, n + 2));
702
+ return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
703
+ }
704
+ function qe(e, t, n) {
705
+ var r = H.exec(t.slice(n, n + 2));
706
+ return r ? (e.d = +r[0], n + r[0].length) : -1;
707
+ }
708
+ function Je(e, t, n) {
709
+ var r = H.exec(t.slice(n, n + 3));
710
+ return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
711
+ }
712
+ function Ye(e, t, n) {
713
+ var r = H.exec(t.slice(n, n + 2));
714
+ return r ? (e.H = +r[0], n + r[0].length) : -1;
715
+ }
716
+ function Xe(e, t, n) {
717
+ var r = H.exec(t.slice(n, n + 2));
718
+ return r ? (e.M = +r[0], n + r[0].length) : -1;
719
+ }
720
+ function Ze(e, t, n) {
721
+ var r = H.exec(t.slice(n, n + 2));
722
+ return r ? (e.S = +r[0], n + r[0].length) : -1;
723
+ }
724
+ function Qe(e, t, n) {
725
+ var r = H.exec(t.slice(n, n + 3));
726
+ return r ? (e.L = +r[0], n + r[0].length) : -1;
727
+ }
728
+ function $e(e, t, n) {
729
+ var r = H.exec(t.slice(n, n + 6));
730
+ return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
731
+ }
732
+ function et(e, t, n) {
733
+ var r = Pe.exec(t.slice(n, n + 1));
734
+ return r ? n + r[0].length : -1;
735
+ }
736
+ function tt(e, t, n) {
737
+ var r = H.exec(t.slice(n));
738
+ return r ? (e.Q = +r[0], n + r[0].length) : -1;
739
+ }
740
+ function nt(e, t, n) {
741
+ var r = H.exec(t.slice(n));
742
+ return r ? (e.s = +r[0], n + r[0].length) : -1;
743
+ }
744
+ function rt(e, t) {
745
+ return U(e.getDate(), t, 2);
746
+ }
747
+ function it(e, t) {
748
+ return U(e.getHours(), t, 2);
749
+ }
750
+ function at(e, t) {
751
+ return U(e.getHours() % 12 || 12, t, 2);
752
+ }
753
+ function ot(e, t) {
754
+ return U(1 + j.count(z(e), e), t, 3);
755
+ }
756
+ function st(e, t) {
757
+ return U(e.getMilliseconds(), t, 3);
758
+ }
759
+ function ct(e, t) {
760
+ return st(e, t) + "000";
761
+ }
762
+ function lt(e, t) {
763
+ return U(e.getMonth() + 1, t, 2);
764
+ }
765
+ function ut(e, t) {
766
+ return U(e.getMinutes(), t, 2);
767
+ }
768
+ function dt(e, t) {
769
+ return U(e.getSeconds(), t, 2);
770
+ }
771
+ function ft(e) {
772
+ var t = e.getDay();
773
+ return t === 0 ? 7 : t;
774
+ }
775
+ function pt(e, t) {
776
+ return U(ve.count(z(e) - 1, e), t, 2);
777
+ }
778
+ function mt(e) {
779
+ var t = e.getDay();
780
+ return t >= 4 || t === 0 ? F(e) : F.ceil(e);
781
+ }
782
+ function ht(e, t) {
783
+ return e = mt(e), U(F.count(z(e), e) + (z(e).getDay() === 4), t, 2);
784
+ }
785
+ function gt(e) {
786
+ return e.getDay();
787
+ }
788
+ function _t(e, t) {
789
+ return U(P.count(z(e) - 1, e), t, 2);
790
+ }
791
+ function vt(e, t) {
792
+ return U(e.getFullYear() % 100, t, 2);
793
+ }
794
+ function yt(e, t) {
795
+ return e = mt(e), U(e.getFullYear() % 100, t, 2);
796
+ }
797
+ function bt(e, t) {
798
+ return U(e.getFullYear() % 1e4, t, 4);
799
+ }
800
+ function xt(e, t) {
801
+ var n = e.getDay();
802
+ return e = n >= 4 || n === 0 ? F(e) : F.ceil(e), U(e.getFullYear() % 1e4, t, 4);
803
+ }
804
+ function St(e) {
805
+ var t = e.getTimezoneOffset();
806
+ return (t > 0 ? "-" : (t *= -1, "+")) + U(t / 60 | 0, "0", 2) + U(t % 60, "0", 2);
807
+ }
808
+ function Ct(e, t) {
809
+ return U(e.getUTCDate(), t, 2);
810
+ }
811
+ function wt(e, t) {
812
+ return U(e.getUTCHours(), t, 2);
813
+ }
814
+ function Tt(e, t) {
815
+ return U(e.getUTCHours() % 12 || 12, t, 2);
816
+ }
817
+ function Et(e, t) {
818
+ return U(1 + M.count(B(e), e), t, 3);
819
+ }
820
+ function Dt(e, t) {
821
+ return U(e.getUTCMilliseconds(), t, 3);
822
+ }
823
+ function Ot(e, t) {
824
+ return Dt(e, t) + "000";
825
+ }
826
+ function kt(e, t) {
827
+ return U(e.getUTCMonth() + 1, t, 2);
828
+ }
829
+ function At(e, t) {
830
+ return U(e.getUTCMinutes(), t, 2);
831
+ }
832
+ function jt(e, t) {
833
+ return U(e.getUTCSeconds(), t, 2);
834
+ }
835
+ function Mt(e) {
836
+ var t = e.getUTCDay();
837
+ return t === 0 ? 7 : t;
838
+ }
839
+ function Nt(e, t) {
840
+ return U(Ce.count(B(e) - 1, e), t, 2);
841
+ }
842
+ function Pt(e) {
843
+ var t = e.getUTCDay();
844
+ return t >= 4 || t === 0 ? R(e) : R.ceil(e);
845
+ }
846
+ function Ft(e, t) {
847
+ return e = Pt(e), U(R.count(B(e), e) + (B(e).getUTCDay() === 4), t, 2);
848
+ }
849
+ function It(e) {
850
+ return e.getUTCDay();
851
+ }
852
+ function Lt(e, t) {
853
+ return U(L.count(B(e) - 1, e), t, 2);
854
+ }
855
+ function Rt(e, t) {
856
+ return U(e.getUTCFullYear() % 100, t, 2);
857
+ }
858
+ function zt(e, t) {
859
+ return e = Pt(e), U(e.getUTCFullYear() % 100, t, 2);
860
+ }
861
+ function Bt(e, t) {
862
+ return U(e.getUTCFullYear() % 1e4, t, 4);
863
+ }
864
+ function Vt(e, t) {
865
+ var n = e.getUTCDay();
866
+ return e = n >= 4 || n === 0 ? R(e) : R.ceil(e), U(e.getUTCFullYear() % 1e4, t, 4);
867
+ }
868
+ function Ht() {
869
+ return "+0000";
870
+ }
871
+ function Ut() {
872
+ return "%";
873
+ }
874
+ function Wt(e) {
875
+ return +e;
876
+ }
877
+ function Gt(e) {
878
+ return Math.floor(e / 1e3);
879
+ }
880
+ //#endregion
881
+ //#region ../../node_modules/d3-time-format/src/defaultLocale.js
882
+ var K, Kt, qt, Jt, Yt;
883
+ Xt({
884
+ dateTime: "%x, %X",
885
+ date: "%-m/%-d/%Y",
886
+ time: "%-I:%M:%S %p",
887
+ periods: ["AM", "PM"],
888
+ days: [
889
+ "Sunday",
890
+ "Monday",
891
+ "Tuesday",
892
+ "Wednesday",
893
+ "Thursday",
894
+ "Friday",
895
+ "Saturday"
896
+ ],
897
+ shortDays: [
898
+ "Sun",
899
+ "Mon",
900
+ "Tue",
901
+ "Wed",
902
+ "Thu",
903
+ "Fri",
904
+ "Sat"
905
+ ],
906
+ months: [
907
+ "January",
908
+ "February",
909
+ "March",
910
+ "April",
911
+ "May",
912
+ "June",
913
+ "July",
914
+ "August",
915
+ "September",
916
+ "October",
917
+ "November",
918
+ "December"
919
+ ],
920
+ shortMonths: [
921
+ "Jan",
922
+ "Feb",
923
+ "Mar",
924
+ "Apr",
925
+ "May",
926
+ "Jun",
927
+ "Jul",
928
+ "Aug",
929
+ "Sep",
930
+ "Oct",
931
+ "Nov",
932
+ "Dec"
933
+ ]
934
+ });
935
+ function Xt(e) {
936
+ return K = Me(e), Kt = K.format, qt = K.parse, Jt = K.utcFormat, Yt = K.utcParse, K;
937
+ }
938
+ //#endregion
939
+ //#region ../core/src/data/sideInputBinding.js
940
+ var Zt = class {
941
+ #e;
942
+ #t;
943
+ #n = !1;
944
+ #r = !0;
945
+ #i = [];
946
+ constructor(e) {
947
+ this.#e = e, this.#t = Array.from(new Set(e.dataDependencies), (e) => ({
948
+ collector: e,
949
+ consumed: -1
950
+ }));
951
+ for (let t of this.#t) this.#i.push(t.collector.observe(() => {
952
+ e.parent && e.completed && !this.isReady() && e.areDataDependenciesAvailable() && e.requestRepropagate();
953
+ }));
954
+ }
955
+ dispose() {
956
+ for (let e of this.#i) e();
957
+ this.#i.length = 0;
958
+ }
959
+ reset() {
960
+ this.#n = !1, this.#r = !0;
961
+ for (let e of this.#t) e.consumed = -1;
962
+ }
963
+ consume() {
964
+ if (!this.#e.areDataDependenciesAvailable()) this.#r = !1;
965
+ else if (!this.#n) {
966
+ for (let e of this.#t) e.consumed = e.collector.dataRevision;
967
+ this.#n = !0;
968
+ }
969
+ }
970
+ complete() {
971
+ this.#n || this.consume();
972
+ }
973
+ isReady() {
974
+ return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
975
+ }
976
+ }, Qt = class {
977
+ output;
978
+ stats = {
979
+ count: 0,
980
+ first: null
981
+ };
982
+ #e = !1;
983
+ #t = !1;
984
+ #n = [];
985
+ #r;
986
+ #i;
987
+ paramRuntimeProvider = null;
988
+ get behavior() {
989
+ return 0;
990
+ }
991
+ get createsNewIdentity() {
992
+ return !1;
993
+ }
994
+ get domainSensitiveScaleChannels() {
995
+ return [];
996
+ }
997
+ get dataDependencies() {
998
+ return [];
999
+ }
1000
+ isDataReady() {
1001
+ return this.completed && !this.disposed && (!this.#i || this.#i.isReady());
1002
+ }
1003
+ areDataDependenciesAvailable() {
1004
+ return this.dataDependencies.every((e) => e.completed && !e.disposed);
1005
+ }
1006
+ consumeDataDependencies() {
1007
+ this.#i?.consume();
1008
+ }
1009
+ get label() {
1010
+ return `(${this.constructor.name})`;
1011
+ }
1012
+ constructor(e) {
1013
+ this.paramRuntimeProvider = e, this.children = [], this.parent = void 0, this.completed = !1;
1014
+ }
1015
+ get disposed() {
1016
+ return this.#t;
1017
+ }
1018
+ getDebugState() {
1019
+ let e = this;
1020
+ return {
1021
+ label: this.label,
1022
+ children: this.children.slice(),
1023
+ parent: this.parent,
1024
+ stats: {
1025
+ count: this.stats.count,
1026
+ first: this.stats.first
1027
+ },
1028
+ completed: this.completed,
1029
+ initialized: this.#e,
1030
+ disposed: this.#t,
1031
+ params: "params" in e ? structuredClone(e.params) : void 0,
1032
+ view: $t(e, this.paramRuntimeProvider),
1033
+ domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
1034
+ };
1035
+ }
1036
+ reset() {
1037
+ this.#i?.reset(), this.completed = !1;
1038
+ for (let e of this.children) e.reset();
1039
+ this.stats.count = 0, this.stats.first = null;
1040
+ }
1041
+ initialize() {}
1042
+ initializeOnce() {
1043
+ this.#e ||= (this.dataDependencies.length && (this.#i = new Zt(this)), this.initialize(), !0);
1044
+ }
1045
+ #a() {
1046
+ this._propagate = Function("children", "stats", s(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
1047
+ if (stats.count === 0) {
1048
+ stats.first = structuredClone(datum);
1049
+ }
1050
+ stats.count++;
1051
+ ${s(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
1052
+ };`)(this.children, this.stats);
1053
+ }
1054
+ setParent(e) {
1055
+ this.parent = e;
1056
+ }
1057
+ addChild(e) {
1058
+ if (e.parent) throw Error("Cannot add the child! It already has a parent.");
1059
+ return this.children.push(e), e.setParent(this), this.#a(), this;
1060
+ }
1061
+ adopt(e) {
1062
+ e.parent && e.parent.removeChild(e), this.addChild(e);
1063
+ }
1064
+ adoptChildrenOf(e) {
1065
+ for (let t of e.children.slice()) this.adopt(t);
1066
+ }
1067
+ insertAsParent(e) {
1068
+ if (this.isRoot()) throw Error("Cannot insert a new parent for a root node!");
1069
+ e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.parent = void 0, e.addChild(this);
1070
+ }
1071
+ removeChild(e) {
1072
+ let t = this.children.indexOf(e);
1073
+ if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#a();
1074
+ else throw Error("Trying to remove an unknown child node!");
1075
+ }
1076
+ excise() {
1077
+ if (this.isRoot()) throw Error("Cannot excise root node!");
1078
+ if (this.isTerminal()) this.parent.removeChild(this);
1079
+ else if (this.children.length == 1) {
1080
+ let e = this.children[0];
1081
+ e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.setParent(void 0), this.children.length = 0;
1082
+ } else throw Error("Cannot excise a node that has multiple children!");
1083
+ }
1084
+ isRoot() {
1085
+ return !this.parent;
1086
+ }
1087
+ isBranching() {
1088
+ return this.children.length > 1;
1089
+ }
1090
+ isTerminal() {
1091
+ return this.children.length == 0;
1092
+ }
1093
+ visit(e) {
1094
+ e(this);
1095
+ for (let t of this.children) t.visit(e);
1096
+ e.afterChildren && e.afterChildren(this);
1097
+ }
1098
+ subtreeToString(e = 0) {
1099
+ let t = this.children.map((t) => t.subtreeToString(e + 1)).join("");
1100
+ return `${" ".repeat(e * 2)}* ${this.label}${"identifier" in this && this.identifier ? ": " + this.identifier : ""} \n${t}`;
1101
+ }
1102
+ handle(e) {
1103
+ this._propagate(e);
1104
+ }
1105
+ complete() {
1106
+ this.#i?.complete(), this.completed = !0;
1107
+ for (let e of this.children) e.complete();
1108
+ }
1109
+ registerDisposer(e) {
1110
+ this.#t ? e() : this.#n.push(e);
1111
+ }
1112
+ dispose() {
1113
+ if (!this.#t) {
1114
+ this.#t = !0, this.#i?.dispose();
1115
+ for (let e of this.#n) e();
1116
+ this.#n.length = 0;
1117
+ }
1118
+ }
1119
+ disposeSubtree() {
1120
+ let e = () => void 0;
1121
+ e.afterChildren = (e) => {
1122
+ e.dispose();
1123
+ }, this.visit(e);
1124
+ }
1125
+ beginBatch(e) {
1126
+ for (let t of this.children) t.beginBatch(e);
1127
+ }
1128
+ get paramRuntime() {
1129
+ if (this.paramRuntimeProvider && this.paramRuntimeProvider.paramRuntime) return this.paramRuntimeProvider.paramRuntime;
1130
+ if (!this.parent) throw Error("Cannot find paramRuntime!");
1131
+ return this.parent.paramRuntime;
1132
+ }
1133
+ get replaySource() {
1134
+ if (!this.parent) throw Error("Cannot replay data: no upstream replay source.");
1135
+ return this.parent.replaySource;
1136
+ }
1137
+ get replaysSynchronously() {
1138
+ return !1;
1139
+ }
1140
+ requestRepropagate() {
1141
+ let e = this.replaySource, t = this.paramRuntime.updateScheduler;
1142
+ e.#r ||= () => {
1143
+ e.disposed || (e.replaysSynchronously && e.visit((e) => {
1144
+ e.#r && t.cancelUpdate(e.#r);
1145
+ }), e.repropagate());
1146
+ };
1147
+ let n = 0;
1148
+ for (let t = e.parent; t; t = t.parent) n++;
1149
+ t.requestUpdate(e.#r, n, void 0, () => e.#o());
1150
+ }
1151
+ #o() {
1152
+ let e = /* @__PURE__ */ new Set();
1153
+ return this.visit((t) => {
1154
+ for (let n of t.dataDependencies) for (let t = n.parent; t; t = t.parent) t !== this && t.#r && e.add(t.#r);
1155
+ }), e;
1156
+ }
1157
+ repropagate() {
1158
+ if (this.parent) this.parent.repropagate();
1159
+ else throw Error("Cannot repropagate data, no FlowNode with stored data found!");
1160
+ }
1161
+ _propagate(e) {}
1162
+ };
1163
+ function $t(e, t) {
1164
+ if ("view" in e) return e.view;
1165
+ if (t && "getPathString" in t) return t;
1166
+ }
1167
+ function en(e) {
1168
+ let t = /* @__PURE__ */ new Set();
1169
+ for (; e;) {
1170
+ for (let n of e.domainSensitiveScaleChannels) t.add(n);
1171
+ e = e.parent;
1172
+ }
1173
+ return t;
1174
+ }
1175
+ function tn(e) {
1176
+ return e.type == "file";
1177
+ }
1178
+ function nn(e) {
1179
+ return e.type == "facet";
1180
+ }
1181
+ //#endregion
1182
+ //#region ../../node_modules/vega-time/node_modules/vega-util/build/accessor.js
1183
+ function q(e, t, n) {
1184
+ return Object.assign(e, {
1185
+ fields: t || [],
1186
+ fname: n
1187
+ });
1188
+ }
1189
+ //#endregion
1190
+ //#region ../../node_modules/vega-time/node_modules/vega-util/build/getter.js
1191
+ function rn(e) {
1192
+ return e.length === 1 ? an(e[0]) : on(e);
1193
+ }
1194
+ var an = (e) => function(t) {
1195
+ return t[e];
1196
+ }, on = (e) => {
1197
+ let t = e.length;
1198
+ return function(n) {
1199
+ for (let r = 0; r < t; ++r) n = n[e[r]];
1200
+ return n;
1201
+ };
1202
+ };
1203
+ //#endregion
1204
+ //#region ../../node_modules/vega-time/node_modules/vega-util/build/error.js
1205
+ function sn(e) {
1206
+ throw Error(e);
1207
+ }
1208
+ //#endregion
1209
+ //#region ../../node_modules/vega-time/node_modules/vega-util/build/splitAccessPath.js
1210
+ function cn(e) {
1211
+ let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
1212
+ e += "";
1213
+ function l() {
1214
+ t.push(a + e.substring(o, s)), a = "", o = s + 1;
1215
+ }
1216
+ for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
1217
+ else if (c === r) l(), r = null, i = -1;
1218
+ else if (r) continue;
1219
+ else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || sn("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
1220
+ return i && sn("Access path missing closing bracket: " + e), r && sn("Access path missing closing quote: " + e), s > o && (s++, l()), t;
1221
+ }
1222
+ //#endregion
1223
+ //#region ../../node_modules/vega-time/node_modules/vega-util/build/field.js
1224
+ function ln(e, t, n) {
1225
+ let r = cn(e), i = r.length === 1 ? r[0] : e;
1226
+ return q((n && n.get || rn)(r), [i], t || i);
1227
+ }
1228
+ ln("id"), q((e) => e, [], "identity"), q(() => 0, [], "zero"), q(() => 1, [], "one"), q(() => !0, [], "true"), q(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")], Array.isArray;
1229
+ //#endregion
1230
+ //#region ../../node_modules/vega-time/build/vega-time.js
1231
+ var J = "year", un = "quarter", Y = "month", X = "week", Z = "isoweek", dn = "date", fn = "dayofyear", pn = "hours", mn = "minutes", Q = "seconds", $ = "milliseconds";
1232
+ [
1233
+ J,
1234
+ un,
1235
+ Y,
1236
+ X,
1237
+ Z,
1238
+ dn,
1239
+ "day",
1240
+ fn,
1241
+ pn,
1242
+ mn,
1243
+ Q,
1244
+ $
1245
+ ].reduce((e, t, n) => (e[t] = 1 + n, e), {}), X + "", J + Z, Z + "", X + "", J + Z, Z + "";
1246
+ var hn = {
1247
+ [J]: z,
1248
+ [un]: Oe.every(3),
1249
+ [Y]: Oe,
1250
+ [X]: ve,
1251
+ [Z]: P,
1252
+ [dn]: j,
1253
+ day: j,
1254
+ [fn]: j,
1255
+ [pn]: he,
1256
+ [mn]: pe,
1257
+ [Q]: fe,
1258
+ [$]: E
1259
+ }, gn = {
1260
+ [J]: B,
1261
+ [un]: ke.every(3),
1262
+ [Y]: ke,
1263
+ [X]: Ce,
1264
+ [Z]: L,
1265
+ [dn]: M,
1266
+ day: M,
1267
+ [fn]: M,
1268
+ [pn]: ge,
1269
+ [mn]: me,
1270
+ [Q]: fe,
1271
+ [$]: E
1272
+ };
1273
+ function _n(e) {
1274
+ return hn[e];
1275
+ }
1276
+ function vn(e) {
1277
+ return gn[e];
1278
+ }
1279
+ [
1280
+ J,
1281
+ Y,
1282
+ dn,
1283
+ pn,
1284
+ mn,
1285
+ Q,
1286
+ $
1287
+ ].slice(0, -1).slice(0, -1).slice(0, -1).slice(0, -1);
1288
+ //#endregion
1289
+ //#region ../core/src/utils/arrayUtils.js
1290
+ function yn(e, t) {
1291
+ return e.length == t.length && e.every((n, r) => e[r] === t[r]);
1292
+ }
1293
+ function bn(e) {
1294
+ return Array.isArray(e) ? e : e === void 0 ? [] : [e];
1295
+ }
1296
+ function xn(e) {
1297
+ return e[e.length - 1];
1298
+ }
1299
+ function Sn(e, t, n) {
1300
+ if (t < 0 || t >= e.length) throw Error("Source index out of range.");
1301
+ if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
1302
+ let [r] = e.splice(t, 1);
1303
+ e.splice(n, 0, r);
1304
+ }
1305
+ //#endregion
1306
+ export { s as $, Ce as A, k as B, Yt as C, Oe as D, B as E, ge as F, de as G, ue as H, pe as I, ae as J, E as K, me as L, _e as M, M as N, ke as O, he as P, m as Q, fe as R, Jt as S, z as T, D as U, O as V, le as W, ne as X, w as Y, re as Z, en as _, dn as a, Kt as b, mn as c, Q as d, a as et, X as f, Qt as g, vn as h, yn as i, j, ve as k, Y as l, _n as m, Sn as n, i as nt, pn as o, J as p, oe as q, xn as r, $ as s, bn as t, o as tt, un as u, nn as v, Me as w, qt as x, tn as y, A as z };