@navaramap/core 0.0.0 → 0.0.2

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/index.js CHANGED
@@ -1,19 +1,22 @@
1
1
  import { Vec3 as e } from "@navaramap/engine";
2
2
  //#region src/id.ts
3
3
  function t(e) {
4
- return `${e.ind}_${e.gen}`;
4
+ return n(e.ind, e.gen);
5
5
  }
6
- function n(e) {
6
+ function n(e, t) {
7
+ return `${e}_${t}`;
8
+ }
9
+ function r(e) {
7
10
  return !!e && typeof e == "object" && "ind" in e && "gen" in e;
8
11
  }
9
12
  //#endregion
10
13
  //#region src/event/TransactionManager.ts
11
- var r = class {
14
+ var i = class {
12
15
  record = {};
13
16
  getOrInsert(e) {
14
- return this.record[e] || (this.record[e] = new i(e)), this.record[e];
17
+ return this.record[e] || (this.record[e] = new a(e)), this.record[e];
15
18
  }
16
- }, i = class e {
19
+ }, a = class e {
17
20
  id;
18
21
  continuable;
19
22
  currentPending;
@@ -48,12 +51,12 @@ var r = class {
48
51
  for (this.continuable = !1; e.parent;) e = e.parent;
49
52
  e.continuable = !0;
50
53
  }
51
- }, a = (e) => {
52
- e && "free" in e && e.free instanceof Function && e.free();
53
54
  }, o = (e) => {
54
- let { event: r } = e;
55
- if (n(r)) return t(r);
56
- }, s = class {
55
+ e && "free" in e && e.free instanceof Function && e.free();
56
+ }, s = (e) => {
57
+ let { event: n } = e;
58
+ if (r(n)) return t(n);
59
+ }, c = class {
57
60
  stacks = {
58
61
  camera_transform_updated: [],
59
62
  camera_frustum_updated: [],
@@ -75,7 +78,7 @@ var r = class {
75
78
  hillshade_canceled: []
76
79
  };
77
80
  addedEventIds = /* @__PURE__ */ new Map();
78
- transactionManager = new r();
81
+ transactionManager = new i();
79
82
  needsUpdate() {
80
83
  return Object.values(this.stacks).some((e) => !!e.length);
81
84
  }
@@ -89,20 +92,20 @@ var r = class {
89
92
  let r = 0;
90
93
  for (let i of this.stacks[e]) {
91
94
  if (r === n) break;
92
- t(i), a(i), r++;
95
+ t(i), o(i), r++;
93
96
  }
94
97
  this.stacks[e].splice(0, r);
95
98
  }
96
99
  async forEachStackAsync(e, t, n = 100, r) {
97
- let i = [], o = 0, s = [];
98
- for (let a of this.stacks[e]) {
99
- if (o === n) break;
100
- let e = a;
100
+ let i = [], a = 0, s = [];
101
+ for (let o of this.stacks[e]) {
102
+ if (a === n) break;
103
+ let e = o;
101
104
  if (r && !r(e)) {
102
- o++;
105
+ a++;
103
106
  continue;
104
107
  }
105
- i.push(t(e)), s.push(o), o++;
108
+ i.push(t(e)), s.push(a), a++;
106
109
  }
107
110
  let c = [], l = 0;
108
111
  for (let t of s) {
@@ -111,25 +114,25 @@ var r = class {
111
114
  }
112
115
  let u = await Promise.allSettled(i);
113
116
  for (let t of u) t.status === "rejected" && console.error(`Event handler for "${e}" failed:`, t.reason);
114
- for (let e of c) a(e);
117
+ for (let e of c) o(e);
115
118
  }
116
119
  removeDuplicatedTransactionEvents(e) {
117
- let r = /* @__PURE__ */ new Map(), i = e.change ? /* @__PURE__ */ new Map() : null;
120
+ let n = /* @__PURE__ */ new Map(), i = e.change ? /* @__PURE__ */ new Map() : null;
118
121
  this.stacks[e.add.key].forEach((e, i) => {
119
- if (n(e)) {
120
- let n = t(e);
121
- r.set(n, i);
122
+ if (r(e)) {
123
+ let r = t(e);
124
+ n.set(r, i);
122
125
  }
123
- }), i && e.change && this.stacks[e.change.key].forEach((e, r) => {
124
- if (n(e)) {
125
- let n = t(e);
126
- i.set(n, r);
126
+ }), i && e.change && this.stacks[e.change.key].forEach((e, n) => {
127
+ if (r(e)) {
128
+ let r = t(e);
129
+ i.set(r, n);
127
130
  }
128
131
  });
129
132
  let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
130
133
  this.stacks[e.remove.key].forEach((c, l) => {
131
- if (!n(c)) return;
132
- let u = t(c), d = r.get(u), f = !1;
134
+ if (!r(c)) return;
135
+ let u = t(c), d = n.get(u), f = !1;
133
136
  if (d !== void 0 && (a.add(d), f = !0), i && e.change) {
134
137
  let e = i.get(u);
135
138
  e !== void 0 && o.add(e);
@@ -139,14 +142,14 @@ var r = class {
139
142
  }
140
143
  removeStacksByIndices(e, t) {
141
144
  let n = [...t].sort((e, t) => t - e);
142
- for (let t of n) a(this.stacks[e][t]), this.stacks[e].splice(t, 1);
145
+ for (let t of n) o(this.stacks[e][t]), this.stacks[e].splice(t, 1);
143
146
  }
144
147
  processTransactionEvents(e, t, n, r) {
145
- let { shouldProcess: i, generateEventId: a = o, onAbort: s } = r ?? {};
148
+ let { shouldProcess: i, generateEventId: a = s, onAbort: o } = r ?? {};
146
149
  this.removeDuplicatedTransactionEvents(t);
147
150
  let c = this.addedEventIds.get(e) ?? /* @__PURE__ */ new Set();
148
151
  this.addedEventIds.set(e, c);
149
- let l = this.transactionManager.getOrInsert(e).then(() => this.forEachStackAsync(t.add.key, (e) => (s && c.add(a({
152
+ let l = this.transactionManager.getOrInsert(e).then(() => this.forEachStackAsync(t.add.key, (e) => (o && c.add(a({
150
153
  type: "add",
151
154
  event: e
152
155
  })), n({
@@ -155,14 +158,14 @@ var r = class {
155
158
  })), t.add.max, i ? (e) => i({
156
159
  type: "add",
157
160
  event: e
158
- }) : void 0)).then(() => (s && c.clear(), this.forEachStackAsync(t.remove.key, (e) => n({
161
+ }) : void 0)).then(() => (o && c.clear(), this.forEachStackAsync(t.remove.key, (e) => n({
159
162
  type: "remove",
160
163
  event: e
161
164
  }), t.remove.max, i ? (e) => i({
162
165
  type: "remove",
163
166
  event: e
164
167
  }) : void 0)));
165
- if (s && c.size) for (let n of this.stacks[t.remove.key]) {
168
+ if (o && c.size) for (let n of this.stacks[t.remove.key]) {
166
169
  if (!n) continue;
167
170
  let t = n, r = a({
168
171
  type: "remove",
@@ -170,7 +173,7 @@ var r = class {
170
173
  });
171
174
  if (r && c.has(r)) {
172
175
  try {
173
- Promise.resolve(s(t)).catch((t) => {
176
+ Promise.resolve(o(t)).catch((t) => {
174
177
  console.error(`onAbort handler for "${e}" failed:`, t);
175
178
  });
176
179
  } catch (t) {
@@ -193,35 +196,35 @@ var r = class {
193
196
  };
194
197
  //#endregion
195
198
  //#region src/assertions.ts
196
- function c(e) {}
197
- function l(e) {
199
+ function l(e) {}
200
+ function u(e) {
198
201
  return e != null;
199
202
  }
200
- function u(e) {
203
+ function d(e) {
201
204
  return e !== void 0;
202
205
  }
203
- function d(e) {
206
+ function f(e) {
204
207
  return e !== !1;
205
208
  }
206
209
  //#endregion
207
210
  //#region src/utils/TransferableTileLike.ts
208
- var f = class {
211
+ var p = class {
209
212
  cached_mesh_handle;
210
213
  coords;
211
214
  max_height;
212
215
  min_height;
213
216
  constructor(e) {
214
- this.cached_mesh_handle = e.cached_mesh_handle ? new m(e.cached_mesh_handle) : void 0, this.coords = new p(e.coords), this.max_height = e.max_height, this.min_height = e.min_height;
217
+ this.cached_mesh_handle = e.cached_mesh_handle ? new h(e.cached_mesh_handle) : void 0, this.coords = new m(e.coords), this.max_height = e.max_height, this.min_height = e.min_height;
215
218
  }
216
219
  free() {}
217
- }, p = class {
220
+ }, m = class {
218
221
  x;
219
222
  y;
220
223
  z;
221
224
  constructor(e) {
222
225
  this.x = e.x, this.y = e.y, this.z = e.z;
223
226
  }
224
- }, m = class {
227
+ }, h = class {
225
228
  vertices;
226
229
  uvs;
227
230
  indices;
@@ -230,7 +233,7 @@ var f = class {
230
233
  this.vertices = e.vertices, this.uvs = e.uvs, this.indices = e.indices, this.heights = e.heights;
231
234
  }
232
235
  free() {}
233
- }, h = class e {
236
+ }, g = class e {
234
237
  coords;
235
238
  size;
236
239
  constructor(e, t) {
@@ -242,7 +245,7 @@ var f = class {
242
245
  clone() {
243
246
  return new e(this.coords.slice(), this.size);
244
247
  }
245
- }, g = class {
248
+ }, _ = class {
246
249
  uvs;
247
250
  indices;
248
251
  heights;
@@ -251,12 +254,12 @@ var f = class {
251
254
  constructor(e, t, n, r, i) {
252
255
  this.uvs = e, this.indices = t, this.heights = n, this.normals = r, this.watermask = i;
253
256
  }
254
- }, _ = class {
257
+ }, v = class {
255
258
  decoder;
256
259
  constructor(e) {
257
- this.decoder = new v(e);
260
+ this.decoder = new y(e);
258
261
  }
259
- }, v = class {
262
+ }, y = class {
260
263
  b_scaler;
261
264
  boundary;
262
265
  epsilon;
@@ -268,7 +271,7 @@ var f = class {
268
271
  constructor(e) {
269
272
  this.b_scaler = e.b_scaler, this.boundary = e.boundary, this.epsilon = e.epsilon, this.g_scaler = e.g_scaler, this.max_offset = e.max_offset, this.min_offset = e.min_offset, this.offset = e.offset, this.r_scaler = e.r_scaler;
270
273
  }
271
- }, y = class {
274
+ }, b = class {
272
275
  x;
273
276
  y;
274
277
  z;
@@ -290,7 +293,7 @@ var f = class {
290
293
  skirt_normals;
291
294
  watermask;
292
295
  constructor(e) {
293
- this.vertices = e.transferVertices(), this.uvs = e.transferUvs(), this.indices = e.transferIndices(), this.heights = e.transferHeights(), this.max_height = e.max_height, this.min_height = e.min_height, this.rtc_translation = e.rtc_translation ? new y(e.rtc_translation) : void 0, e.hasNormals() && (this.normals = e.transferNormals()), e.hasSkirt() && (this.skirt_vertices = e.transferSkirtVertices(), this.skirt_uvs = e.transferSkirtUvs(), this.skirt_indices = e.transferSkirtIndices(), this.skirt_normals = e.transferSkirtNormals()), e.hasWatermask() && (this.watermask = e.transferWatermask());
296
+ this.vertices = e.transferVertices(), this.uvs = e.transferUvs(), this.indices = e.transferIndices(), this.heights = e.transferHeights(), this.max_height = e.max_height, this.min_height = e.min_height, this.rtc_translation = e.rtc_translation ? new b(e.rtc_translation) : void 0, e.hasNormals() && (this.normals = e.transferNormals()), e.hasSkirt() && (this.skirt_vertices = e.transferSkirtVertices(), this.skirt_uvs = e.transferSkirtUvs(), this.skirt_indices = e.transferSkirtIndices(), this.skirt_normals = e.transferSkirtNormals()), e.hasWatermask() && (this.watermask = e.transferWatermask());
294
297
  }
295
298
  transferVertices() {
296
299
  throw Error();
@@ -399,7 +402,7 @@ var f = class {
399
402
  this.clampToGround = e.clampToGround, this.tiled = e.tiled, this.receiveShadow = e.receiveShadow, this.castShadow = e.castShadow, this.color = e.color, this.extrudedHeight = e.extrudedHeight, this.height = e.height, this.show = e.show, this.perPositionHeight = e.perPositionHeight, this.wireframe = e.wireframe, this.outline = e.outline;
400
403
  }
401
404
  free() {}
402
- }, b = class {
405
+ }, x = class {
403
406
  east;
404
407
  north;
405
408
  south;
@@ -407,7 +410,7 @@ var f = class {
407
410
  constructor(e) {
408
411
  this.east = e.east, this.north = e.north, this.south = e.south, this.west = e.west;
409
412
  }
410
- }, x = class {
413
+ }, S = class {
411
414
  extent;
412
415
  position_3d_high;
413
416
  position_3d_high_size;
@@ -434,11 +437,11 @@ var f = class {
434
437
  outline_batch_index_size;
435
438
  constructor(e) {
436
439
  let t = e.extent;
437
- this.extent = t ? new b(t) : void 0, this.position_3d_high = e.position_3d_high()?.slice(), this.position_3d_high_size = e.position_3d_high_size(), this.position_3d_low = e.position_3d_low()?.slice(), this.position_3d_low_size = e.position_3d_low_size(), this.position = e.position()?.slice(), this.position_size = e.position_size(), this.normal = e.normal()?.slice(), this.normal_size = e.normal_size(), this.scale_normal_and_cap = e.scale_normal_and_cap()?.slice(), this.scale_normal_and_cap_size = e.scale_normal_and_cap_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice(), this.rtc_translation = e.rtc_translation ? new y(e.rtc_translation) : void 0;
440
+ this.extent = t ? new x(t) : void 0, this.position_3d_high = e.position_3d_high()?.slice(), this.position_3d_high_size = e.position_3d_high_size(), this.position_3d_low = e.position_3d_low()?.slice(), this.position_3d_low_size = e.position_3d_low_size(), this.position = e.position()?.slice(), this.position_size = e.position_size(), this.normal = e.normal()?.slice(), this.normal_size = e.normal_size(), this.scale_normal_and_cap = e.scale_normal_and_cap()?.slice(), this.scale_normal_and_cap_size = e.scale_normal_and_cap_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice(), this.rtc_translation = e.rtc_translation ? new b(e.rtc_translation) : void 0;
438
441
  let n = e.outline();
439
442
  n && (this.outline_position = n.position()?.slice(), this.outline_position_size = n.position_size(), this.outline_scale_normal_and_cap = n.scale_normal_and_cap()?.slice(), this.outline_scale_normal_and_cap_size = n.scale_normal_and_cap_size(), this.outline_skip_indices = n.skip_indices()?.slice(), this.outline_batch_index = n.batch_index()?.slice(), this.outline_batch_index_size = n.batch_index_size(), n.free());
440
443
  }
441
- }, S = class {
444
+ }, C = class {
442
445
  points;
443
446
  points_sizes;
444
447
  batch_ids;
@@ -464,7 +467,7 @@ var f = class {
464
467
  transferBatchIndices() {
465
468
  throw Error();
466
469
  }
467
- }, C = class {
470
+ }, re = class {
468
471
  clampToGround;
469
472
  tiled;
470
473
  castShadow;
@@ -479,7 +482,7 @@ var f = class {
479
482
  this.clampToGround = e.clampToGround, this.tiled = e.tiled, this.receiveShadow = e.receiveShadow, this.castShadow = e.castShadow, this.color = e.color, this.width = e.width, this.maxWidth = e.maxWidth, this.height = e.height, this.show = e.show;
480
483
  }
481
484
  free() {}
482
- }, re = class {
485
+ }, ie = class {
483
486
  extent;
484
487
  position;
485
488
  position_size;
@@ -512,9 +515,9 @@ var f = class {
512
515
  indices;
513
516
  constructor(e) {
514
517
  let t = e.extent;
515
- this.extent = t ? new b(t) : void 0, this.position = e.position().slice(), this.position_size = e.position_size(), this.position_high = e.position_high()?.slice(), this.position_high_size = e.position_high_size(), this.position_low = e.position_low()?.slice(), this.position_low_size = e.position_low_size(), this.start = e.start()?.slice(), this.start_size = e.start_size(), this.start_high = e.start_high()?.slice(), this.start_high_size = e.start_high_size(), this.start_low = e.start_low()?.slice(), this.start_low_size = e.start_low_size(), this.forward_offset = e.forward_offset()?.slice(), this.forward_offset_size = e.forward_offset_size(), this.end_high = e.end_high()?.slice(), this.end_high_size = e.end_high_size(), this.end_low = e.end_low()?.slice(), this.end_low_size = e.end_low_size(), this.start_normals = e.start_normals()?.slice(), this.start_normals_size = e.start_normals_size(), this.end_normal_and_texture_coordinate_normalization_x = e.end_normal_and_texture_coordinate_normalization_x()?.slice(), this.end_normal_and_texture_coordinate_normalization_x_size = e.end_normal_and_texture_coordinate_normalization_x_size(), this.right_normal_and_texture_coordinate_normalization_y = e.right_normal_and_texture_coordinate_normalization_y().slice(), this.right_normal_and_texture_coordinate_normalization_y_size = e.right_normal_and_texture_coordinate_normalization_y_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice();
518
+ this.extent = t ? new x(t) : void 0, this.position = e.position().slice(), this.position_size = e.position_size(), this.position_high = e.position_high()?.slice(), this.position_high_size = e.position_high_size(), this.position_low = e.position_low()?.slice(), this.position_low_size = e.position_low_size(), this.start = e.start()?.slice(), this.start_size = e.start_size(), this.start_high = e.start_high()?.slice(), this.start_high_size = e.start_high_size(), this.start_low = e.start_low()?.slice(), this.start_low_size = e.start_low_size(), this.forward_offset = e.forward_offset()?.slice(), this.forward_offset_size = e.forward_offset_size(), this.end_high = e.end_high()?.slice(), this.end_high_size = e.end_high_size(), this.end_low = e.end_low()?.slice(), this.end_low_size = e.end_low_size(), this.start_normals = e.start_normals()?.slice(), this.start_normals_size = e.start_normals_size(), this.end_normal_and_texture_coordinate_normalization_x = e.end_normal_and_texture_coordinate_normalization_x()?.slice(), this.end_normal_and_texture_coordinate_normalization_x_size = e.end_normal_and_texture_coordinate_normalization_x_size(), this.right_normal_and_texture_coordinate_normalization_y = e.right_normal_and_texture_coordinate_normalization_y().slice(), this.right_normal_and_texture_coordinate_normalization_y_size = e.right_normal_and_texture_coordinate_normalization_y_size(), this.batch_id = e.batch_id()?.slice(), this.batch_id_size = e.batch_id_size(), this.batch_index = e.batch_index()?.slice(), this.batch_index_size = e.batch_index_size(), this.indices = e.indices().slice();
516
519
  }
517
- }, ie = ["png", "webp"], ae = class {
520
+ }, ae = ["png", "webp"], oe = class {
518
521
  events = {};
519
522
  onceEvents = {};
520
523
  on(e, t) {
@@ -535,18 +538,18 @@ var f = class {
535
538
  emit(e, ...t) {
536
539
  this.events[e]?.forEach((e) => e(...t)), this.onceEvents[e]?.size && (this.onceEvents[e]?.forEach((e) => e(...t)), this.onceEvents[e]?.clear());
537
540
  }
538
- }, oe = (e, t, n) => {
541
+ }, se = (e, t, n) => {
539
542
  let r = t.length;
540
543
  for (let i = 0; i < r; i++) n[i] = e[t[i]];
541
- }, se = class extends Error {
544
+ }, ce = class extends Error {
542
545
  constructor(e) {
543
546
  super(e ?? "Unimplemented");
544
547
  }
545
- }, ce = class extends Error {
548
+ }, le = class extends Error {
546
549
  constructor(e) {
547
550
  super(e ?? "Unreachable");
548
551
  }
549
- }, le = class {
552
+ }, ue = class {
550
553
  list = [];
551
554
  indexMap = {};
552
555
  add(e) {
@@ -576,7 +579,7 @@ var f = class {
576
579
  assertUnique(e) {
577
580
  if (this.indexMap[e] !== void 0) throw Error(`duplicate name: ${e}`);
578
581
  }
579
- }, ue = class extends ae {
582
+ }, de = class extends oe {
580
583
  _value;
581
584
  constructor(e) {
582
585
  super(), this._value = e;
@@ -593,7 +596,7 @@ var f = class {
593
596
  };
594
597
  this.on("changed", t);
595
598
  }
596
- }, de = class {
599
+ }, fe = class {
597
600
  value;
598
601
  constructor(t, n, r) {
599
602
  this.value = new e(t, n, r);
@@ -604,19 +607,19 @@ var f = class {
604
607
  };
605
608
  //#endregion
606
609
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
607
- function fe(e, t) {
610
+ function pe(e, t) {
608
611
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
609
612
  }
610
613
  //#endregion
611
614
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
612
- function pe(e, t) {
615
+ function me(e, t) {
613
616
  return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
614
617
  }
615
618
  //#endregion
616
619
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
617
- function me(e) {
620
+ function he(e) {
618
621
  let t, n, r;
619
- e.length === 2 ? (t = e === fe || e === pe ? e : he, n = e, r = e) : (t = fe, n = (t, n) => fe(e(t), n), r = (t, n) => e(t) - n);
622
+ e.length === 2 ? (t = e === pe || e === me ? e : ge, n = e, r = e) : (t = pe, n = (t, n) => pe(e(t), n), r = (t, n) => e(t) - n);
620
623
  function i(e, r, i = 0, a = e.length) {
621
624
  if (i < a) {
622
625
  if (t(r, r) !== 0) return a;
@@ -647,33 +650,33 @@ function me(e) {
647
650
  right: a
648
651
  };
649
652
  }
650
- function he() {
653
+ function ge() {
651
654
  return 0;
652
655
  }
653
656
  //#endregion
654
657
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
655
- function ge(e) {
658
+ function _e(e) {
656
659
  return e === null ? NaN : +e;
657
660
  }
658
661
  //#endregion
659
662
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
660
- var _e = me(fe), ve = _e.right;
661
- _e.left, me(ge).center;
663
+ var ve = he(pe), ye = ve.right;
664
+ ve.left, he(_e).center;
662
665
  //#endregion
663
666
  //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
664
- var ye = Math.sqrt(50), be = Math.sqrt(10), xe = Math.sqrt(2);
665
- function Se(e, t, n) {
666
- let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= ye ? 10 : a >= be ? 5 : a >= xe ? 2 : 1, s, c, l;
667
- return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? Se(e, t, n * 2) : [
667
+ var be = Math.sqrt(50), xe = Math.sqrt(10), Se = Math.sqrt(2);
668
+ function Ce(e, t, n) {
669
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= be ? 10 : a >= xe ? 5 : a >= Se ? 2 : 1, s, c, l;
670
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? Ce(e, t, n * 2) : [
668
671
  s,
669
672
  c,
670
673
  l
671
674
  ];
672
675
  }
673
- function Ce(e, t, n) {
676
+ function we(e, t, n) {
674
677
  if (t = +t, e = +e, n = +n, !(n > 0)) return [];
675
678
  if (e === t) return [e];
676
- let r = t < e, [i, a, o] = r ? Se(t, e, n) : Se(e, t, n);
679
+ let r = t < e, [i, a, o] = r ? Ce(t, e, n) : Ce(e, t, n);
677
680
  if (!(a >= i)) return [];
678
681
  let s = a - i + 1, c = Array(s);
679
682
  if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
@@ -682,28 +685,28 @@ function Ce(e, t, n) {
682
685
  else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
683
686
  return c;
684
687
  }
685
- function we(e, t, n) {
686
- return t = +t, e = +e, n = +n, Se(e, t, n)[2];
687
- }
688
688
  function Te(e, t, n) {
689
+ return t = +t, e = +e, n = +n, Ce(e, t, n)[2];
690
+ }
691
+ function Ee(e, t, n) {
689
692
  t = +t, e = +e, n = +n;
690
- let r = t < e, i = r ? we(t, e, n) : we(e, t, n);
693
+ let r = t < e, i = r ? Te(t, e, n) : Te(e, t, n);
691
694
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
692
695
  }
693
696
  //#endregion
694
697
  //#region ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
695
- var Ee = { value: () => {} };
696
- function De() {
698
+ var De = { value: () => {} };
699
+ function Oe() {
697
700
  for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
698
701
  if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
699
702
  n[r] = [];
700
703
  }
701
- return new Oe(n);
704
+ return new ke(n);
702
705
  }
703
- function Oe(e) {
706
+ function ke(e) {
704
707
  this._ = e;
705
708
  }
706
- function ke(e, t) {
709
+ function Ae(e, t) {
707
710
  return e.trim().split(/^|\s+/).map(function(e) {
708
711
  var n = "", r = e.indexOf(".");
709
712
  if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
@@ -713,23 +716,23 @@ function ke(e, t) {
713
716
  };
714
717
  });
715
718
  }
716
- Oe.prototype = De.prototype = {
717
- constructor: Oe,
719
+ ke.prototype = Oe.prototype = {
720
+ constructor: ke,
718
721
  on: function(e, t) {
719
- var n = this._, r = ke(e + "", n), i, a = -1, o = r.length;
722
+ var n = this._, r = Ae(e + "", n), i, a = -1, o = r.length;
720
723
  if (arguments.length < 2) {
721
- for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Ae(n[i], e.name))) return i;
724
+ for (; ++a < o;) if ((i = (e = r[a]).type) && (i = je(n[i], e.name))) return i;
722
725
  return;
723
726
  }
724
727
  if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
725
- for (; ++a < o;) if (i = (e = r[a]).type) n[i] = je(n[i], e.name, t);
726
- else if (t == null) for (i in n) n[i] = je(n[i], e.name, null);
728
+ for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Me(n[i], e.name, t);
729
+ else if (t == null) for (i in n) n[i] = Me(n[i], e.name, null);
727
730
  return this;
728
731
  },
729
732
  copy: function() {
730
733
  var e = {}, t = this._;
731
734
  for (var n in t) e[n] = t[n].slice();
732
- return new Oe(e);
735
+ return new ke(e);
733
736
  },
734
737
  call: function(e, t) {
735
738
  if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
@@ -741,12 +744,12 @@ Oe.prototype = De.prototype = {
741
744
  for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
742
745
  }
743
746
  };
744
- function Ae(e, t) {
747
+ function je(e, t) {
745
748
  for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
746
749
  }
747
- function je(e, t, n) {
750
+ function Me(e, t, n) {
748
751
  for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
749
- e[r] = Ee, e = e.slice(0, r).concat(e.slice(r + 1));
752
+ e[r] = De, e = e.slice(0, r).concat(e.slice(r + 1));
750
753
  break;
751
754
  }
752
755
  return n != null && e.push({
@@ -754,7 +757,7 @@ function je(e, t, n) {
754
757
  value: n
755
758
  }), e;
756
759
  }
757
- var Me = {
760
+ var Ne = {
758
761
  svg: "http://www.w3.org/2000/svg",
759
762
  xhtml: "http://www.w3.org/1999/xhtml",
760
763
  xlink: "http://www.w3.org/1999/xlink",
@@ -763,10 +766,10 @@ var Me = {
763
766
  };
764
767
  //#endregion
765
768
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
766
- function Ne(e) {
769
+ function w(e) {
767
770
  var t = e += "", n = t.indexOf(":");
768
- return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Me.hasOwnProperty(t) ? {
769
- space: Me[t],
771
+ return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Ne.hasOwnProperty(t) ? {
772
+ space: Ne[t],
770
773
  local: e
771
774
  } : e;
772
775
  }
@@ -784,7 +787,7 @@ function Fe(e) {
784
787
  };
785
788
  }
786
789
  function Ie(e) {
787
- var t = Ne(e);
790
+ var t = w(e);
788
791
  return (t.local ? Fe : Pe)(t);
789
792
  }
790
793
  //#endregion
@@ -800,7 +803,7 @@ function Re(e) {
800
803
  function ze(e) {
801
804
  typeof e != "function" && (e = Re(e));
802
805
  for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
803
- return new T(r, this._parents);
806
+ return new E(r, this._parents);
804
807
  }
805
808
  //#endregion
806
809
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
@@ -827,7 +830,7 @@ function Ue(e) {
827
830
  function We(e) {
828
831
  e = typeof e == "function" ? Ue(e) : He(e);
829
832
  for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
830
- return new T(r, i);
833
+ return new E(r, i);
831
834
  }
832
835
  //#endregion
833
836
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
@@ -874,7 +877,7 @@ function et(e) {
874
877
  function tt(e) {
875
878
  typeof e != "function" && (e = Ge(e));
876
879
  for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
877
- return new T(r, this._parents);
880
+ return new E(r, this._parents);
878
881
  }
879
882
  //#endregion
880
883
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
@@ -884,7 +887,7 @@ function nt(e) {
884
887
  //#endregion
885
888
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
886
889
  function rt() {
887
- return new T(this._enter || this._groups.map(nt), this._parents);
890
+ return new E(this._enter || this._groups.map(nt), this._parents);
888
891
  }
889
892
  function it(e, t) {
890
893
  this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
@@ -933,12 +936,12 @@ function lt(e, t) {
933
936
  for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
934
937
  var u = r[l], d = i[l], f = d.length, p = ut(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
935
938
  n(u, d, h, g, c[l] = Array(f), p, t);
936
- for (var _ = 0, v = 0, y, ee; _ < m; ++_) if (y = h[_]) {
937
- for (_ >= v && (v = _ + 1); !(ee = g[v]) && ++v < m;);
938
- y._next = ee || null;
939
+ for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
940
+ for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
941
+ y._next = b || null;
939
942
  }
940
943
  }
941
- return o = new T(o, r), o._enter = s, o._exit = c, o;
944
+ return o = new E(o, r), o._enter = s, o._exit = c, o;
942
945
  }
943
946
  function ut(e) {
944
947
  return typeof e == "object" && "length" in e ? e : Array.from(e);
@@ -946,7 +949,7 @@ function ut(e) {
946
949
  //#endregion
947
950
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
948
951
  function dt() {
949
- return new T(this._exit || this._groups.map(nt), this._parents);
952
+ return new E(this._exit || this._groups.map(nt), this._parents);
950
953
  }
951
954
  //#endregion
952
955
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
@@ -959,7 +962,7 @@ function ft(e, t, n) {
959
962
  function pt(e) {
960
963
  for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
961
964
  for (; c < i; ++c) s[c] = n[c];
962
- return new T(s, this._parents);
965
+ return new E(s, this._parents);
963
966
  }
964
967
  //#endregion
965
968
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
@@ -978,7 +981,7 @@ function ht(e) {
978
981
  for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
979
982
  c.sort(t);
980
983
  }
981
- return new T(i, this._parents).order();
984
+ return new E(i, this._parents).order();
982
985
  }
983
986
  function gt(e, t) {
984
987
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
@@ -1056,7 +1059,7 @@ function Ot(e, t) {
1056
1059
  };
1057
1060
  }
1058
1061
  function kt(e, t) {
1059
- var n = Ne(e);
1062
+ var n = w(e);
1060
1063
  if (arguments.length < 2) {
1061
1064
  var r = this.node();
1062
1065
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
@@ -1087,9 +1090,9 @@ function Nt(e, t, n) {
1087
1090
  };
1088
1091
  }
1089
1092
  function Pt(e, t, n) {
1090
- return arguments.length > 1 ? this.each((t == null ? jt : typeof t == "function" ? Nt : Mt)(e, t, n ?? "")) : w(this.node(), e);
1093
+ return arguments.length > 1 ? this.each((t == null ? jt : typeof t == "function" ? Nt : Mt)(e, t, n ?? "")) : T(this.node(), e);
1091
1094
  }
1092
- function w(e, t) {
1095
+ function T(e, t) {
1093
1096
  return e.style.getPropertyValue(t) || At(e).getComputedStyle(e, null).getPropertyValue(t);
1094
1097
  }
1095
1098
  //#endregion
@@ -1177,7 +1180,8 @@ function Yt(e) {
1177
1180
  }
1178
1181
  function Xt(e) {
1179
1182
  return function() {
1180
- this.textContent = e.apply(this, arguments) ?? "";
1183
+ var t = e.apply(this, arguments);
1184
+ this.textContent = t ?? "";
1181
1185
  };
1182
1186
  }
1183
1187
  function Zt(e) {
@@ -1195,7 +1199,8 @@ function $t(e) {
1195
1199
  }
1196
1200
  function en(e) {
1197
1201
  return function() {
1198
- this.innerHTML = e.apply(this, arguments) ?? "";
1202
+ var t = e.apply(this, arguments);
1203
+ this.innerHTML = t ?? "";
1199
1204
  };
1200
1205
  }
1201
1206
  function tn(e) {
@@ -1345,17 +1350,17 @@ function* Tn() {
1345
1350
  //#endregion
1346
1351
  //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
1347
1352
  var En = [null];
1348
- function T(e, t) {
1353
+ function E(e, t) {
1349
1354
  this._groups = e, this._parents = t;
1350
1355
  }
1351
- function E() {
1352
- return new T([[document.documentElement]], En);
1356
+ function D() {
1357
+ return new E([[document.documentElement]], En);
1353
1358
  }
1354
1359
  function Dn() {
1355
1360
  return this;
1356
1361
  }
1357
- T.prototype = E.prototype = {
1358
- constructor: T,
1362
+ E.prototype = D.prototype = {
1363
+ constructor: E,
1359
1364
  select: ze,
1360
1365
  selectAll: We,
1361
1366
  selectChild: Xe,
@@ -1404,8 +1409,8 @@ function kn(e, t) {
1404
1409
  }
1405
1410
  //#endregion
1406
1411
  //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
1407
- function D() {}
1408
- var O = .7, An = 1 / O, k = "\\s*([+-]?\\d+)\\s*", A = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", j = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", jn = /^#([0-9a-f]{3,8})$/, Mn = RegExp(`^rgb\\(${k},${k},${k}\\)$`), Nn = RegExp(`^rgb\\(${j},${j},${j}\\)$`), Pn = RegExp(`^rgba\\(${k},${k},${k},${A}\\)$`), Fn = RegExp(`^rgba\\(${j},${j},${j},${A}\\)$`), In = RegExp(`^hsl\\(${A},${j},${j}\\)$`), Ln = RegExp(`^hsla\\(${A},${j},${j},${A}\\)$`), Rn = {
1412
+ function O() {}
1413
+ var k = .7, An = 1 / k, A = "\\s*([+-]?\\d+)\\s*", j = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", M = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", jn = /^#([0-9a-f]{3,8})$/, Mn = RegExp(`^rgb\\(${A},${A},${A}\\)$`), Nn = RegExp(`^rgb\\(${M},${M},${M}\\)$`), Pn = RegExp(`^rgba\\(${A},${A},${A},${j}\\)$`), Fn = RegExp(`^rgba\\(${M},${M},${M},${j}\\)$`), In = RegExp(`^hsl\\(${j},${M},${M}\\)$`), Ln = RegExp(`^hsla\\(${j},${M},${M},${j}\\)$`), Rn = {
1409
1414
  aliceblue: 15792383,
1410
1415
  antiquewhite: 16444375,
1411
1416
  aqua: 65535,
@@ -1555,7 +1560,7 @@ var O = .7, An = 1 / O, k = "\\s*([+-]?\\d+)\\s*", A = "\\s*([+-]?(?:\\d*\\.)?\\
1555
1560
  yellow: 16776960,
1556
1561
  yellowgreen: 10145074
1557
1562
  };
1558
- On(D, M, {
1563
+ On(O, N, {
1559
1564
  copy(e) {
1560
1565
  return Object.assign(new this.constructor(), this, e);
1561
1566
  },
@@ -1576,42 +1581,42 @@ function Bn() {
1576
1581
  return this.rgb().formatHex8();
1577
1582
  }
1578
1583
  function Vn() {
1579
- return Zn(this).formatHsl();
1584
+ return Qn(this).formatHsl();
1580
1585
  }
1581
1586
  function Hn() {
1582
1587
  return this.rgb().formatRgb();
1583
1588
  }
1584
- function M(e) {
1589
+ function N(e) {
1585
1590
  var t, n;
1586
- return e = (e + "").trim().toLowerCase(), (t = jn.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Un(t) : n === 3 ? new N(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Wn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Wn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Mn.exec(e)) ? new N(t[1], t[2], t[3], 1) : (t = Nn.exec(e)) ? new N(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Pn.exec(e)) ? Wn(t[1], t[2], t[3], t[4]) : (t = Fn.exec(e)) ? Wn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = In.exec(e)) ? Xn(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ln.exec(e)) ? Xn(t[1], t[2] / 100, t[3] / 100, t[4]) : Rn.hasOwnProperty(e) ? Un(Rn[e]) : e === "transparent" ? new N(NaN, NaN, NaN, 0) : null;
1591
+ return e = (e + "").trim().toLowerCase(), (t = jn.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Un(t) : n === 3 ? new P(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Wn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Wn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Mn.exec(e)) ? new P(t[1], t[2], t[3], 1) : (t = Nn.exec(e)) ? new P(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Pn.exec(e)) ? Wn(t[1], t[2], t[3], t[4]) : (t = Fn.exec(e)) ? Wn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = In.exec(e)) ? Zn(t[1], t[2] / 100, t[3] / 100, 1) : (t = Ln.exec(e)) ? Zn(t[1], t[2] / 100, t[3] / 100, t[4]) : Rn.hasOwnProperty(e) ? Un(Rn[e]) : e === "transparent" ? new P(NaN, NaN, NaN, 0) : null;
1587
1592
  }
1588
1593
  function Un(e) {
1589
- return new N(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1594
+ return new P(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1590
1595
  }
1591
1596
  function Wn(e, t, n, r) {
1592
- return r <= 0 && (e = t = n = NaN), new N(e, t, n, r);
1597
+ return r <= 0 && (e = t = n = NaN), new P(e, t, n, r);
1593
1598
  }
1594
1599
  function Gn(e) {
1595
- return e instanceof D || (e = M(e)), e ? (e = e.rgb(), new N(e.r, e.g, e.b, e.opacity)) : new N();
1600
+ return e instanceof O || (e = N(e)), e ? (e = e.rgb(), new P(e.r, e.g, e.b, e.opacity)) : new P();
1596
1601
  }
1597
1602
  function Kn(e, t, n, r) {
1598
- return arguments.length === 1 ? Gn(e) : new N(e, t, n, r ?? 1);
1603
+ return arguments.length === 1 ? Gn(e) : new P(e, t, n, r ?? 1);
1599
1604
  }
1600
- function N(e, t, n, r) {
1605
+ function P(e, t, n, r) {
1601
1606
  this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
1602
1607
  }
1603
- On(N, Kn, kn(D, {
1608
+ On(P, Kn, kn(O, {
1604
1609
  brighter(e) {
1605
- return e = e == null ? An : An ** +e, new N(this.r * e, this.g * e, this.b * e, this.opacity);
1610
+ return e = e == null ? An : An ** +e, new P(this.r * e, this.g * e, this.b * e, this.opacity);
1606
1611
  },
1607
1612
  darker(e) {
1608
- return e = e == null ? O : O ** +e, new N(this.r * e, this.g * e, this.b * e, this.opacity);
1613
+ return e = e == null ? k : k ** +e, new P(this.r * e, this.g * e, this.b * e, this.opacity);
1609
1614
  },
1610
1615
  rgb() {
1611
1616
  return this;
1612
1617
  },
1613
1618
  clamp() {
1614
- return new N(F(this.r), F(this.g), F(this.b), P(this.opacity));
1619
+ return new P(F(this.r), F(this.g), F(this.b), Xn(this.opacity));
1615
1620
  },
1616
1621
  displayable() {
1617
1622
  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;
@@ -1629,10 +1634,10 @@ function Jn() {
1629
1634
  return `#${I(this.r)}${I(this.g)}${I(this.b)}${I((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1630
1635
  }
1631
1636
  function Yn() {
1632
- let e = P(this.opacity);
1637
+ let e = Xn(this.opacity);
1633
1638
  return `${e === 1 ? "rgb(" : "rgba("}${F(this.r)}, ${F(this.g)}, ${F(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1634
1639
  }
1635
- function P(e) {
1640
+ function Xn(e) {
1636
1641
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
1637
1642
  }
1638
1643
  function F(e) {
@@ -1641,84 +1646,84 @@ function F(e) {
1641
1646
  function I(e) {
1642
1647
  return e = F(e), (e < 16 ? "0" : "") + e.toString(16);
1643
1648
  }
1644
- function Xn(e, t, n, r) {
1649
+ function Zn(e, t, n, r) {
1645
1650
  return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new L(e, t, n, r);
1646
1651
  }
1647
- function Zn(e) {
1652
+ function Qn(e) {
1648
1653
  if (e instanceof L) return new L(e.h, e.s, e.l, e.opacity);
1649
- if (e instanceof D || (e = M(e)), !e) return new L();
1654
+ if (e instanceof O || (e = N(e)), !e) return new L();
1650
1655
  if (e instanceof L) return e;
1651
1656
  e = e.rgb();
1652
1657
  var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
1653
1658
  return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new L(o, s, c, e.opacity);
1654
1659
  }
1655
- function Qn(e, t, n, r) {
1656
- return arguments.length === 1 ? Zn(e) : new L(e, t, n, r ?? 1);
1660
+ function $n(e, t, n, r) {
1661
+ return arguments.length === 1 ? Qn(e) : new L(e, t, n, r ?? 1);
1657
1662
  }
1658
1663
  function L(e, t, n, r) {
1659
1664
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
1660
1665
  }
1661
- On(L, Qn, kn(D, {
1666
+ On(L, $n, kn(O, {
1662
1667
  brighter(e) {
1663
1668
  return e = e == null ? An : An ** +e, new L(this.h, this.s, this.l * e, this.opacity);
1664
1669
  },
1665
1670
  darker(e) {
1666
- return e = e == null ? O : O ** +e, new L(this.h, this.s, this.l * e, this.opacity);
1671
+ return e = e == null ? k : k ** +e, new L(this.h, this.s, this.l * e, this.opacity);
1667
1672
  },
1668
1673
  rgb() {
1669
1674
  var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
1670
- return new N(er(e >= 240 ? e - 240 : e + 120, i, r), er(e, i, r), er(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1675
+ return new P(tr(e >= 240 ? e - 240 : e + 120, i, r), tr(e, i, r), tr(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1671
1676
  },
1672
1677
  clamp() {
1673
- return new L($n(this.h), R(this.s), R(this.l), P(this.opacity));
1678
+ return new L(er(this.h), R(this.s), R(this.l), Xn(this.opacity));
1674
1679
  },
1675
1680
  displayable() {
1676
1681
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1677
1682
  },
1678
1683
  formatHsl() {
1679
- let e = P(this.opacity);
1680
- return `${e === 1 ? "hsl(" : "hsla("}${$n(this.h)}, ${R(this.s) * 100}%, ${R(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1684
+ let e = Xn(this.opacity);
1685
+ return `${e === 1 ? "hsl(" : "hsla("}${er(this.h)}, ${R(this.s) * 100}%, ${R(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1681
1686
  }
1682
1687
  }));
1683
- function $n(e) {
1688
+ function er(e) {
1684
1689
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
1685
1690
  }
1686
1691
  function R(e) {
1687
1692
  return Math.max(0, Math.min(1, e || 0));
1688
1693
  }
1689
- function er(e, t, n) {
1694
+ function tr(e, t, n) {
1690
1695
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
1691
1696
  }
1692
1697
  //#endregion
1693
1698
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
1694
- var tr = (e) => () => e;
1699
+ var nr = (e) => () => e;
1695
1700
  //#endregion
1696
1701
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
1697
- function nr(e, t) {
1702
+ function rr(e, t) {
1698
1703
  return function(n) {
1699
1704
  return e + n * t;
1700
1705
  };
1701
1706
  }
1702
- function rr(e, t, n) {
1707
+ function ir(e, t, n) {
1703
1708
  return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
1704
1709
  return (e + r * t) ** +n;
1705
1710
  };
1706
1711
  }
1707
- function ir(e) {
1708
- return (e = +e) == 1 ? ar : function(t, n) {
1709
- return n - t ? rr(t, n, e) : tr(isNaN(t) ? n : t);
1712
+ function ar(e) {
1713
+ return (e = +e) == 1 ? or : function(t, n) {
1714
+ return n - t ? ir(t, n, e) : nr(isNaN(t) ? n : t);
1710
1715
  };
1711
1716
  }
1712
- function ar(e, t) {
1717
+ function or(e, t) {
1713
1718
  var n = t - e;
1714
- return n ? nr(e, n) : tr(isNaN(e) ? t : e);
1719
+ return n ? rr(e, n) : nr(isNaN(e) ? t : e);
1715
1720
  }
1716
1721
  //#endregion
1717
1722
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
1718
1723
  var z = (function e(t) {
1719
- var n = ir(t);
1724
+ var n = ar(t);
1720
1725
  function r(e, t) {
1721
- var r = n((e = Kn(e)).r, (t = Kn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = ar(e.opacity, t.opacity);
1726
+ var r = n((e = Kn(e)).r, (t = Kn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = or(e.opacity, t.opacity);
1722
1727
  return function(t) {
1723
1728
  return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
1724
1729
  };
@@ -1727,7 +1732,7 @@ var z = (function e(t) {
1727
1732
  })(1);
1728
1733
  //#endregion
1729
1734
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
1730
- function or(e, t) {
1735
+ function sr(e, t) {
1731
1736
  t ||= [];
1732
1737
  var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
1733
1738
  return function(a) {
@@ -1735,14 +1740,14 @@ function or(e, t) {
1735
1740
  return r;
1736
1741
  };
1737
1742
  }
1738
- function sr(e) {
1743
+ function cr(e) {
1739
1744
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
1740
1745
  }
1741
1746
  //#endregion
1742
1747
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
1743
- function cr(e, t) {
1748
+ function lr(e, t) {
1744
1749
  var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
1745
- for (o = 0; o < r; ++o) i[o] = V(e[o], t[o]);
1750
+ for (o = 0; o < r; ++o) i[o] = _r(e[o], t[o]);
1746
1751
  for (; o < n; ++o) a[o] = t[o];
1747
1752
  return function(e) {
1748
1753
  for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -1751,7 +1756,7 @@ function cr(e, t) {
1751
1756
  }
1752
1757
  //#endregion
1753
1758
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
1754
- function lr(e, t) {
1759
+ function ur(e, t) {
1755
1760
  var n = /* @__PURE__ */ new Date();
1756
1761
  return e = +e, t = +t, function(r) {
1757
1762
  return n.setTime(e * (1 - r) + t * r), n;
@@ -1766,9 +1771,9 @@ function B(e, t) {
1766
1771
  }
1767
1772
  //#endregion
1768
1773
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
1769
- function ur(e, t) {
1774
+ function dr(e, t) {
1770
1775
  var n = {}, r = {}, i;
1771
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = V(e[i], t[i]) : r[i] = t[i];
1776
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = _r(e[i], t[i]) : r[i] = t[i];
1772
1777
  return function(e) {
1773
1778
  for (i in n) r[i] = n[i](e);
1774
1779
  return r;
@@ -1776,44 +1781,44 @@ function ur(e, t) {
1776
1781
  }
1777
1782
  //#endregion
1778
1783
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
1779
- var dr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, fr = new RegExp(dr.source, "g");
1780
- function pr(e) {
1784
+ var fr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pr = new RegExp(fr.source, "g");
1785
+ function mr(e) {
1781
1786
  return function() {
1782
1787
  return e;
1783
1788
  };
1784
1789
  }
1785
- function mr(e) {
1790
+ function hr(e) {
1786
1791
  return function(t) {
1787
1792
  return e(t) + "";
1788
1793
  };
1789
1794
  }
1790
- function hr(e, t) {
1791
- var n = dr.lastIndex = fr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1792
- for (e += "", t += ""; (r = dr.exec(e)) && (i = fr.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1795
+ function gr(e, t) {
1796
+ var n = fr.lastIndex = pr.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1797
+ for (e += "", t += ""; (r = fr.exec(e)) && (i = pr.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({
1793
1798
  i: o,
1794
1799
  x: B(r, i)
1795
- })), n = fr.lastIndex;
1796
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? mr(c[0].x) : pr(t) : (t = c.length, function(e) {
1800
+ })), n = pr.lastIndex;
1801
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? hr(c[0].x) : mr(t) : (t = c.length, function(e) {
1797
1802
  for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
1798
1803
  return s.join("");
1799
1804
  });
1800
1805
  }
1801
1806
  //#endregion
1802
1807
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
1803
- function V(e, t) {
1808
+ function _r(e, t) {
1804
1809
  var n = typeof t, r;
1805
- return t == null || n === "boolean" ? tr(t) : (n === "number" ? B : n === "string" ? (r = M(t)) ? (t = r, z) : hr : t instanceof M ? z : t instanceof Date ? lr : sr(t) ? or : Array.isArray(t) ? cr : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? ur : B)(e, t);
1810
+ return t == null || n === "boolean" ? nr(t) : (n === "number" ? B : n === "string" ? (r = N(t)) ? (t = r, z) : gr : t instanceof N ? z : t instanceof Date ? ur : cr(t) ? sr : Array.isArray(t) ? lr : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? dr : B)(e, t);
1806
1811
  }
1807
1812
  //#endregion
1808
1813
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
1809
- function gr(e, t) {
1814
+ function vr(e, t) {
1810
1815
  return e = +e, t = +t, function(n) {
1811
1816
  return Math.round(e * (1 - n) + t * n);
1812
1817
  };
1813
1818
  }
1814
1819
  //#endregion
1815
1820
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
1816
- var _r = 180 / Math.PI, vr = {
1821
+ var yr = 180 / Math.PI, br = {
1817
1822
  translateX: 0,
1818
1823
  translateY: 0,
1819
1824
  rotate: 0,
@@ -1821,30 +1826,30 @@ var _r = 180 / Math.PI, vr = {
1821
1826
  scaleX: 1,
1822
1827
  scaleY: 1
1823
1828
  };
1824
- function yr(e, t, n, r, i, a) {
1829
+ function xr(e, t, n, r, i, a) {
1825
1830
  var o, s, c;
1826
1831
  return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
1827
1832
  translateX: i,
1828
1833
  translateY: a,
1829
- rotate: Math.atan2(t, e) * _r,
1830
- skewX: Math.atan(c) * _r,
1834
+ rotate: Math.atan2(t, e) * yr,
1835
+ skewX: Math.atan(c) * yr,
1831
1836
  scaleX: o,
1832
1837
  scaleY: s
1833
1838
  };
1834
1839
  }
1835
1840
  //#endregion
1836
1841
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
1837
- var br;
1838
- function xr(e) {
1842
+ var Sr;
1843
+ function Cr(e) {
1839
1844
  let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
1840
- return t.isIdentity ? vr : yr(t.a, t.b, t.c, t.d, t.e, t.f);
1845
+ return t.isIdentity ? br : xr(t.a, t.b, t.c, t.d, t.e, t.f);
1841
1846
  }
1842
- function Sr(e) {
1843
- return e == null || (br ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), br.setAttribute("transform", e), !(e = br.transform.baseVal.consolidate())) ? vr : (e = e.matrix, yr(e.a, e.b, e.c, e.d, e.e, e.f));
1847
+ function wr(e) {
1848
+ return e == null || (Sr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), Sr.setAttribute("transform", e), !(e = Sr.transform.baseVal.consolidate())) ? br : (e = e.matrix, xr(e.a, e.b, e.c, e.d, e.e, e.f));
1844
1849
  }
1845
1850
  //#endregion
1846
1851
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
1847
- function Cr(e, t, n, r) {
1852
+ function Tr(e, t, n, r) {
1848
1853
  function i(e) {
1849
1854
  return e.length ? e.pop() + " " : "";
1850
1855
  }
@@ -1892,86 +1897,86 @@ function Cr(e, t, n, r) {
1892
1897
  };
1893
1898
  };
1894
1899
  }
1895
- var wr = Cr(xr, "px, ", "px)", "deg)"), Tr = Cr(Sr, ", ", ")", ")");
1900
+ var Er = Tr(Cr, "px, ", "px)", "deg)"), Dr = Tr(wr, ", ", ")", ")");
1896
1901
  //#endregion
1897
1902
  //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/quantize.js
1898
- function Er(e, t) {
1903
+ function Or(e, t) {
1899
1904
  for (var n = Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
1900
1905
  return n;
1901
1906
  }
1902
1907
  //#endregion
1903
1908
  //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
1904
- var H = 0, Dr = 0, Or = 0, kr = 1e3, Ar, U, jr = 0, W = 0, Mr = 0, G = typeof performance == "object" && performance.now ? performance : Date, Nr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1909
+ var V = 0, kr = 0, Ar = 0, jr = 1e3, H, U, Mr = 0, W = 0, Nr = 0, G = typeof performance == "object" && performance.now ? performance : Date, Pr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1905
1910
  setTimeout(e, 17);
1906
1911
  };
1907
- function Pr() {
1908
- return W ||= (Nr(Fr), G.now() + Mr);
1909
- }
1910
1912
  function Fr() {
1911
- W = 0;
1913
+ return W ||= (Pr(Ir), G.now() + Nr);
1912
1914
  }
1913
1915
  function Ir() {
1916
+ W = 0;
1917
+ }
1918
+ function Lr() {
1914
1919
  this._call = this._time = this._next = null;
1915
1920
  }
1916
- Ir.prototype = Lr.prototype = {
1917
- constructor: Ir,
1921
+ Lr.prototype = Rr.prototype = {
1922
+ constructor: Lr,
1918
1923
  restart: function(e, t, n) {
1919
1924
  if (typeof e != "function") throw TypeError("callback is not a function");
1920
- n = (n == null ? Pr() : +n) + (t == null ? 0 : +t), !this._next && U !== this && (U ? U._next = this : Ar = this, U = this), this._call = e, this._time = n, Hr();
1925
+ n = (n == null ? Fr() : +n) + (t == null ? 0 : +t), !this._next && U !== this && (U ? U._next = this : H = this, U = this), this._call = e, this._time = n, Ur();
1921
1926
  },
1922
1927
  stop: function() {
1923
- this._call && (this._call = null, this._time = Infinity, Hr());
1928
+ this._call && (this._call = null, this._time = Infinity, Ur());
1924
1929
  }
1925
1930
  };
1926
- function Lr(e, t, n) {
1927
- var r = new Ir();
1931
+ function Rr(e, t, n) {
1932
+ var r = new Lr();
1928
1933
  return r.restart(e, t, n), r;
1929
1934
  }
1930
- function Rr() {
1931
- Pr(), ++H;
1932
- for (var e = Ar, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1933
- --H;
1934
- }
1935
1935
  function zr() {
1936
- W = (jr = G.now()) + Mr, H = Dr = 0;
1936
+ Fr(), ++V;
1937
+ for (var e = H, t; e;) (t = W - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1938
+ --V;
1939
+ }
1940
+ function Br() {
1941
+ W = (Mr = G.now()) + Nr, V = kr = 0;
1937
1942
  try {
1938
- Rr();
1943
+ zr();
1939
1944
  } finally {
1940
- H = 0, Vr(), W = 0;
1945
+ V = 0, Hr(), W = 0;
1941
1946
  }
1942
1947
  }
1943
- function Br() {
1944
- var e = G.now(), t = e - jr;
1945
- t > kr && (Mr -= t, jr = e);
1946
- }
1947
1948
  function Vr() {
1948
- for (var e, t = Ar, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Ar = n);
1949
- U = e, Hr(r);
1949
+ var e = G.now(), t = e - Mr;
1950
+ t > jr && (Nr -= t, Mr = e);
1950
1951
  }
1951
- function Hr(e) {
1952
- H || (Dr &&= clearTimeout(Dr), e - W > 24 ? (e < Infinity && (Dr = setTimeout(zr, e - G.now() - Mr)), Or &&= clearInterval(Or)) : (Or ||= (jr = G.now(), setInterval(Br, kr)), H = 1, Nr(zr)));
1952
+ function Hr() {
1953
+ for (var e, t = H, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : H = n);
1954
+ U = e, Ur(r);
1955
+ }
1956
+ function Ur(e) {
1957
+ V || (kr &&= clearTimeout(kr), e - W > 24 ? (e < Infinity && (kr = setTimeout(Br, e - G.now() - Nr)), Ar &&= clearInterval(Ar)) : (Ar ||= (Mr = G.now(), setInterval(Vr, jr)), V = 1, Pr(Br)));
1953
1958
  }
1954
1959
  //#endregion
1955
1960
  //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
1956
- function Ur(e, t, n) {
1957
- var r = new Ir();
1961
+ function Wr(e, t, n) {
1962
+ var r = new Lr();
1958
1963
  return t = t == null ? 0 : +t, r.restart((n) => {
1959
1964
  r.stop(), e(n + t);
1960
1965
  }, t, n), r;
1961
1966
  }
1962
1967
  //#endregion
1963
1968
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
1964
- var Wr = De("start", "end", "cancel", "interrupt"), Gr = [];
1965
- function Kr(e, t, n, r, i, a) {
1969
+ var Gr = Oe("start", "end", "cancel", "interrupt"), Kr = [];
1970
+ function qr(e, t, n, r, i, a) {
1966
1971
  var o = e.__transition;
1967
1972
  if (!o) e.__transition = {};
1968
1973
  else if (n in o) return;
1969
- Jr(e, n, {
1974
+ Yr(e, n, {
1970
1975
  name: t,
1971
1976
  index: r,
1972
1977
  group: i,
1973
- on: Wr,
1974
- tween: Gr,
1978
+ on: Gr,
1979
+ tween: Kr,
1975
1980
  time: a.time,
1976
1981
  delay: a.delay,
1977
1982
  duration: a.duration,
@@ -1980,7 +1985,7 @@ function Kr(e, t, n, r, i, a) {
1980
1985
  state: 0
1981
1986
  });
1982
1987
  }
1983
- function qr(e, t) {
1988
+ function Jr(e, t) {
1984
1989
  var n = q(e, t);
1985
1990
  if (n.state > 0) throw Error("too late; already scheduled");
1986
1991
  return n;
@@ -1995,9 +2000,9 @@ function q(e, t) {
1995
2000
  if (!n || !(n = n[t])) throw Error("transition not found");
1996
2001
  return n;
1997
2002
  }
1998
- function Jr(e, t, n) {
2003
+ function Yr(e, t, n) {
1999
2004
  var r = e.__transition, i;
2000
- r[t] = n, n.timer = Lr(a, 0, n.time);
2005
+ r[t] = n, n.timer = Rr(a, 0, n.time);
2001
2006
  function a(e) {
2002
2007
  n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
2003
2008
  }
@@ -2005,10 +2010,10 @@ function Jr(e, t, n) {
2005
2010
  var l, u, d, f;
2006
2011
  if (n.state !== 1) return c();
2007
2012
  for (l in r) if (f = r[l], f.name === n.name) {
2008
- if (f.state === 3) return Ur(o);
2013
+ if (f.state === 3) return Wr(o);
2009
2014
  f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
2010
2015
  }
2011
- if (Ur(function() {
2016
+ if (Wr(function() {
2012
2017
  n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
2013
2018
  }), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
2014
2019
  for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
@@ -2026,7 +2031,7 @@ function Jr(e, t, n) {
2026
2031
  }
2027
2032
  //#endregion
2028
2033
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
2029
- function Yr(e, t) {
2034
+ function Xr(e, t) {
2030
2035
  var n = e.__transition, r, i, a = !0, o;
2031
2036
  if (n) {
2032
2037
  for (o in t = t == null ? null : t + "", n) {
@@ -2041,14 +2046,14 @@ function Yr(e, t) {
2041
2046
  }
2042
2047
  //#endregion
2043
2048
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
2044
- function Xr(e) {
2049
+ function Zr(e) {
2045
2050
  return this.each(function() {
2046
- Yr(this, e);
2051
+ Xr(this, e);
2047
2052
  });
2048
2053
  }
2049
2054
  //#endregion
2050
2055
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
2051
- function Zr(e, t) {
2056
+ function Qr(e, t) {
2052
2057
  var n, r;
2053
2058
  return function() {
2054
2059
  var i = K(this, e), a = i.tween;
@@ -2062,7 +2067,7 @@ function Zr(e, t) {
2062
2067
  i.tween = r;
2063
2068
  };
2064
2069
  }
2065
- function Qr(e, t, n) {
2070
+ function $r(e, t, n) {
2066
2071
  var r, i;
2067
2072
  if (typeof n != "function") throw Error();
2068
2073
  return function() {
@@ -2081,15 +2086,15 @@ function Qr(e, t, n) {
2081
2086
  a.tween = i;
2082
2087
  };
2083
2088
  }
2084
- function $r(e, t) {
2089
+ function ei(e, t) {
2085
2090
  var n = this._id;
2086
2091
  if (e += "", arguments.length < 2) {
2087
2092
  for (var r = q(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
2088
2093
  return null;
2089
2094
  }
2090
- return this.each((t == null ? Zr : Qr)(n, e, t));
2095
+ return this.each((t == null ? Qr : $r)(n, e, t));
2091
2096
  }
2092
- function ei(e, t, n) {
2097
+ function ti(e, t, n) {
2093
2098
  var r = e._id;
2094
2099
  return e.each(function() {
2095
2100
  var e = K(this, r);
@@ -2100,157 +2105,157 @@ function ei(e, t, n) {
2100
2105
  }
2101
2106
  //#endregion
2102
2107
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
2103
- function ti(e, t) {
2108
+ function ni(e, t) {
2104
2109
  var n;
2105
- return (typeof t == "number" ? B : t instanceof M ? z : (n = M(t)) ? (t = n, z) : hr)(e, t);
2110
+ return (typeof t == "number" ? B : t instanceof N ? z : (n = N(t)) ? (t = n, z) : gr)(e, t);
2106
2111
  }
2107
2112
  //#endregion
2108
2113
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
2109
- function ni(e) {
2114
+ function ri(e) {
2110
2115
  return function() {
2111
2116
  this.removeAttribute(e);
2112
2117
  };
2113
2118
  }
2114
- function ri(e) {
2119
+ function ii(e) {
2115
2120
  return function() {
2116
2121
  this.removeAttributeNS(e.space, e.local);
2117
2122
  };
2118
2123
  }
2119
- function ii(e, t, n) {
2124
+ function ai(e, t, n) {
2120
2125
  var r, i = n + "", a;
2121
2126
  return function() {
2122
2127
  var o = this.getAttribute(e);
2123
2128
  return o === i ? null : o === r ? a : a = t(r = o, n);
2124
2129
  };
2125
2130
  }
2126
- function ai(e, t, n) {
2131
+ function oi(e, t, n) {
2127
2132
  var r, i = n + "", a;
2128
2133
  return function() {
2129
2134
  var o = this.getAttributeNS(e.space, e.local);
2130
2135
  return o === i ? null : o === r ? a : a = t(r = o, n);
2131
2136
  };
2132
2137
  }
2133
- function oi(e, t, n) {
2138
+ function si(e, t, n) {
2134
2139
  var r, i, a;
2135
2140
  return function() {
2136
2141
  var o, s = n(this), c;
2137
2142
  return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
2138
2143
  };
2139
2144
  }
2140
- function si(e, t, n) {
2145
+ function ci(e, t, n) {
2141
2146
  var r, i, a;
2142
2147
  return function() {
2143
2148
  var o, s = n(this), c;
2144
2149
  return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
2145
2150
  };
2146
2151
  }
2147
- function ci(e, t) {
2148
- var n = Ne(e), r = n === "transform" ? Tr : ti;
2149
- return this.attrTween(e, typeof t == "function" ? (n.local ? si : oi)(n, r, ei(this, "attr." + e, t)) : t == null ? (n.local ? ri : ni)(n) : (n.local ? ai : ii)(n, r, t));
2152
+ function li(e, t) {
2153
+ var n = w(e), r = n === "transform" ? Dr : ni;
2154
+ return this.attrTween(e, typeof t == "function" ? (n.local ? ci : si)(n, r, ti(this, "attr." + e, t)) : t == null ? (n.local ? ii : ri)(n) : (n.local ? oi : ai)(n, r, t));
2150
2155
  }
2151
2156
  //#endregion
2152
2157
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
2153
- function li(e, t) {
2158
+ function ui(e, t) {
2154
2159
  return function(n) {
2155
2160
  this.setAttribute(e, t.call(this, n));
2156
2161
  };
2157
2162
  }
2158
- function ui(e, t) {
2163
+ function di(e, t) {
2159
2164
  return function(n) {
2160
2165
  this.setAttributeNS(e.space, e.local, t.call(this, n));
2161
2166
  };
2162
2167
  }
2163
- function di(e, t) {
2168
+ function fi(e, t) {
2164
2169
  var n, r;
2165
2170
  function i() {
2166
2171
  var i = t.apply(this, arguments);
2167
- return i !== r && (n = (r = i) && ui(e, i)), n;
2172
+ return i !== r && (n = (r = i) && di(e, i)), n;
2168
2173
  }
2169
2174
  return i._value = t, i;
2170
2175
  }
2171
- function fi(e, t) {
2176
+ function pi(e, t) {
2172
2177
  var n, r;
2173
2178
  function i() {
2174
2179
  var i = t.apply(this, arguments);
2175
- return i !== r && (n = (r = i) && li(e, i)), n;
2180
+ return i !== r && (n = (r = i) && ui(e, i)), n;
2176
2181
  }
2177
2182
  return i._value = t, i;
2178
2183
  }
2179
- function pi(e, t) {
2184
+ function mi(e, t) {
2180
2185
  var n = "attr." + e;
2181
2186
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
2182
2187
  if (t == null) return this.tween(n, null);
2183
2188
  if (typeof t != "function") throw Error();
2184
- var r = Ne(e);
2185
- return this.tween(n, (r.local ? di : fi)(r, t));
2189
+ var r = w(e);
2190
+ return this.tween(n, (r.local ? fi : pi)(r, t));
2186
2191
  }
2187
2192
  //#endregion
2188
2193
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
2189
- function mi(e, t) {
2194
+ function hi(e, t) {
2190
2195
  return function() {
2191
- qr(this, e).delay = +t.apply(this, arguments);
2196
+ Jr(this, e).delay = +t.apply(this, arguments);
2192
2197
  };
2193
2198
  }
2194
- function hi(e, t) {
2199
+ function gi(e, t) {
2195
2200
  return t = +t, function() {
2196
- qr(this, e).delay = t;
2201
+ Jr(this, e).delay = t;
2197
2202
  };
2198
2203
  }
2199
- function gi(e) {
2204
+ function _i(e) {
2200
2205
  var t = this._id;
2201
- return arguments.length ? this.each((typeof e == "function" ? mi : hi)(t, e)) : q(this.node(), t).delay;
2206
+ return arguments.length ? this.each((typeof e == "function" ? hi : gi)(t, e)) : q(this.node(), t).delay;
2202
2207
  }
2203
2208
  //#endregion
2204
2209
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
2205
- function _i(e, t) {
2210
+ function vi(e, t) {
2206
2211
  return function() {
2207
2212
  K(this, e).duration = +t.apply(this, arguments);
2208
2213
  };
2209
2214
  }
2210
- function vi(e, t) {
2215
+ function yi(e, t) {
2211
2216
  return t = +t, function() {
2212
2217
  K(this, e).duration = t;
2213
2218
  };
2214
2219
  }
2215
- function yi(e) {
2220
+ function bi(e) {
2216
2221
  var t = this._id;
2217
- return arguments.length ? this.each((typeof e == "function" ? _i : vi)(t, e)) : q(this.node(), t).duration;
2222
+ return arguments.length ? this.each((typeof e == "function" ? vi : yi)(t, e)) : q(this.node(), t).duration;
2218
2223
  }
2219
2224
  //#endregion
2220
2225
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
2221
- function bi(e, t) {
2226
+ function xi(e, t) {
2222
2227
  if (typeof t != "function") throw Error();
2223
2228
  return function() {
2224
2229
  K(this, e).ease = t;
2225
2230
  };
2226
2231
  }
2227
- function xi(e) {
2232
+ function Si(e) {
2228
2233
  var t = this._id;
2229
- return arguments.length ? this.each(bi(t, e)) : q(this.node(), t).ease;
2234
+ return arguments.length ? this.each(xi(t, e)) : q(this.node(), t).ease;
2230
2235
  }
2231
2236
  //#endregion
2232
2237
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
2233
- function Si(e, t) {
2238
+ function Ci(e, t) {
2234
2239
  return function() {
2235
2240
  var n = t.apply(this, arguments);
2236
2241
  if (typeof n != "function") throw Error();
2237
2242
  K(this, e).ease = n;
2238
2243
  };
2239
2244
  }
2240
- function Ci(e) {
2245
+ function wi(e) {
2241
2246
  if (typeof e != "function") throw Error();
2242
- return this.each(Si(this._id, e));
2247
+ return this.each(Ci(this._id, e));
2243
2248
  }
2244
2249
  //#endregion
2245
2250
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
2246
- function wi(e) {
2251
+ function Ti(e) {
2247
2252
  typeof e != "function" && (e = Ge(e));
2248
2253
  for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
2249
2254
  return new J(r, this._parents, this._name, this._id);
2250
2255
  }
2251
2256
  //#endregion
2252
2257
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
2253
- function Ti(e) {
2258
+ function Ei(e) {
2254
2259
  if (e._id !== this._id) throw Error();
2255
2260
  for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
2256
2261
  for (; s < r; ++s) o[s] = t[s];
@@ -2258,164 +2263,165 @@ function Ti(e) {
2258
2263
  }
2259
2264
  //#endregion
2260
2265
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
2261
- function Ei(e) {
2266
+ function Di(e) {
2262
2267
  return (e + "").trim().split(/^|\s+/).every(function(e) {
2263
2268
  var t = e.indexOf(".");
2264
2269
  return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
2265
2270
  });
2266
2271
  }
2267
- function Di(e, t, n) {
2268
- var r, i, a = Ei(t) ? qr : K;
2272
+ function Oi(e, t, n) {
2273
+ var r, i, a = Di(t) ? Jr : K;
2269
2274
  return function() {
2270
2275
  var o = a(this, e), s = o.on;
2271
2276
  s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
2272
2277
  };
2273
2278
  }
2274
- function Oi(e, t) {
2279
+ function ki(e, t) {
2275
2280
  var n = this._id;
2276
- return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Di(n, e, t));
2281
+ return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Oi(n, e, t));
2277
2282
  }
2278
2283
  //#endregion
2279
2284
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
2280
- function ki(e) {
2285
+ function Ai(e) {
2281
2286
  return function() {
2282
2287
  var t = this.parentNode;
2283
2288
  for (var n in this.__transition) if (+n !== e) return;
2284
2289
  t && t.removeChild(this);
2285
2290
  };
2286
2291
  }
2287
- function Ai() {
2288
- return this.on("end.remove", ki(this._id));
2292
+ function ji() {
2293
+ return this.on("end.remove", Ai(this._id));
2289
2294
  }
2290
2295
  //#endregion
2291
2296
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
2292
- function ji(e) {
2297
+ function Mi(e) {
2293
2298
  var t = this._name, n = this._id;
2294
2299
  typeof e != "function" && (e = Re(e));
2295
- for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, Kr(l[f], t, n, f, l, q(u, n)));
2300
+ for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, qr(l[f], t, n, f, l, q(u, n)));
2296
2301
  return new J(a, this._parents, t, n);
2297
2302
  }
2298
2303
  //#endregion
2299
2304
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
2300
- function Mi(e) {
2305
+ function Ni(e) {
2301
2306
  var t = this._name, n = this._id;
2302
2307
  typeof e != "function" && (e = He(e));
2303
2308
  for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
2304
- for (var f = e.call(u, u.__data__, d, c), p, m = q(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Kr(p, t, n, h, f, m);
2309
+ for (var f = e.call(u, u.__data__, d, c), p, m = q(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && qr(p, t, n, h, f, m);
2305
2310
  a.push(f), o.push(u);
2306
2311
  }
2307
2312
  return new J(a, o, t, n);
2308
2313
  }
2309
2314
  //#endregion
2310
2315
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
2311
- var Ni = E.prototype.constructor;
2312
- function Pi() {
2313
- return new Ni(this._groups, this._parents);
2316
+ var Pi = D.prototype.constructor;
2317
+ function Fi() {
2318
+ return new Pi(this._groups, this._parents);
2314
2319
  }
2315
2320
  //#endregion
2316
2321
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
2317
- function Fi(e, t) {
2322
+ function Ii(e, t) {
2318
2323
  var n, r, i;
2319
2324
  return function() {
2320
- var a = w(this, e), o = (this.style.removeProperty(e), w(this, e));
2325
+ var a = T(this, e), o = (this.style.removeProperty(e), T(this, e));
2321
2326
  return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
2322
2327
  };
2323
2328
  }
2324
- function Ii(e) {
2329
+ function Li(e) {
2325
2330
  return function() {
2326
2331
  this.style.removeProperty(e);
2327
2332
  };
2328
2333
  }
2329
- function Li(e, t, n) {
2334
+ function Ri(e, t, n) {
2330
2335
  var r, i = n + "", a;
2331
2336
  return function() {
2332
- var o = w(this, e);
2337
+ var o = T(this, e);
2333
2338
  return o === i ? null : o === r ? a : a = t(r = o, n);
2334
2339
  };
2335
2340
  }
2336
- function Ri(e, t, n) {
2341
+ function zi(e, t, n) {
2337
2342
  var r, i, a;
2338
2343
  return function() {
2339
- var o = w(this, e), s = n(this), c = s + "";
2340
- return s ?? (c = s = (this.style.removeProperty(e), w(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
2344
+ var o = T(this, e), s = n(this), c = s + "";
2345
+ return s ?? (c = s = (this.style.removeProperty(e), T(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
2341
2346
  };
2342
2347
  }
2343
- function zi(e, t) {
2348
+ function Bi(e, t) {
2344
2349
  var n, r, i, a = "style." + t, o = "end." + a, s;
2345
2350
  return function() {
2346
- var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Ii(t) : void 0;
2351
+ var c = K(this, e), l = c.on, u = c.value[a] == null ? s ||= Li(t) : void 0;
2347
2352
  (l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
2348
2353
  };
2349
2354
  }
2350
- function Bi(e, t, n) {
2351
- var r = (e += "") == "transform" ? wr : ti;
2352
- return t == null ? this.styleTween(e, Fi(e, r)).on("end.style." + e, Ii(e)) : typeof t == "function" ? this.styleTween(e, Ri(e, r, ei(this, "style." + e, t))).each(zi(this._id, e)) : this.styleTween(e, Li(e, r, t), n).on("end.style." + e, null);
2355
+ function Vi(e, t, n) {
2356
+ var r = (e += "") == "transform" ? Er : ni;
2357
+ return t == null ? this.styleTween(e, Ii(e, r)).on("end.style." + e, Li(e)) : typeof t == "function" ? this.styleTween(e, zi(e, r, ti(this, "style." + e, t))).each(Bi(this._id, e)) : this.styleTween(e, Ri(e, r, t), n).on("end.style." + e, null);
2353
2358
  }
2354
2359
  //#endregion
2355
2360
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
2356
- function Vi(e, t, n) {
2361
+ function Hi(e, t, n) {
2357
2362
  return function(r) {
2358
2363
  this.style.setProperty(e, t.call(this, r), n);
2359
2364
  };
2360
2365
  }
2361
- function Hi(e, t, n) {
2366
+ function Ui(e, t, n) {
2362
2367
  var r, i;
2363
2368
  function a() {
2364
2369
  var a = t.apply(this, arguments);
2365
- return a !== i && (r = (i = a) && Vi(e, a, n)), r;
2370
+ return a !== i && (r = (i = a) && Hi(e, a, n)), r;
2366
2371
  }
2367
2372
  return a._value = t, a;
2368
2373
  }
2369
- function Ui(e, t, n) {
2374
+ function Wi(e, t, n) {
2370
2375
  var r = "style." + (e += "");
2371
2376
  if (arguments.length < 2) return (r = this.tween(r)) && r._value;
2372
2377
  if (t == null) return this.tween(r, null);
2373
2378
  if (typeof t != "function") throw Error();
2374
- return this.tween(r, Hi(e, t, n ?? ""));
2379
+ return this.tween(r, Ui(e, t, n ?? ""));
2375
2380
  }
2376
2381
  //#endregion
2377
2382
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
2378
- function Wi(e) {
2383
+ function Gi(e) {
2379
2384
  return function() {
2380
2385
  this.textContent = e;
2381
2386
  };
2382
2387
  }
2383
- function Gi(e) {
2388
+ function Ki(e) {
2384
2389
  return function() {
2385
- this.textContent = e(this) ?? "";
2390
+ var t = e(this);
2391
+ this.textContent = t ?? "";
2386
2392
  };
2387
2393
  }
2388
- function Ki(e) {
2389
- return this.tween("text", typeof e == "function" ? Gi(ei(this, "text", e)) : Wi(e == null ? "" : e + ""));
2394
+ function qi(e) {
2395
+ return this.tween("text", typeof e == "function" ? Ki(ti(this, "text", e)) : Gi(e == null ? "" : e + ""));
2390
2396
  }
2391
2397
  //#endregion
2392
2398
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
2393
- function qi(e) {
2399
+ function Ji(e) {
2394
2400
  return function(t) {
2395
2401
  this.textContent = e.call(this, t);
2396
2402
  };
2397
2403
  }
2398
- function Ji(e) {
2404
+ function Yi(e) {
2399
2405
  var t, n;
2400
2406
  function r() {
2401
2407
  var r = e.apply(this, arguments);
2402
- return r !== n && (t = (n = r) && qi(r)), t;
2408
+ return r !== n && (t = (n = r) && Ji(r)), t;
2403
2409
  }
2404
2410
  return r._value = e, r;
2405
2411
  }
2406
- function Yi(e) {
2412
+ function Xi(e) {
2407
2413
  var t = "text";
2408
2414
  if (arguments.length < 1) return (t = this.tween(t)) && t._value;
2409
2415
  if (e == null) return this.tween(t, null);
2410
2416
  if (typeof e != "function") throw Error();
2411
- return this.tween(t, Ji(e));
2417
+ return this.tween(t, Yi(e));
2412
2418
  }
2413
2419
  //#endregion
2414
2420
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
2415
- function Xi() {
2416
- for (var e = this._name, t = this._id, n = ea(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
2421
+ function Zi() {
2422
+ for (var e = this._name, t = this._id, n = ta(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
2417
2423
  var u = q(c, t);
2418
- Kr(c, e, n, l, o, {
2424
+ qr(c, e, n, l, o, {
2419
2425
  time: u.time + u.delay + u.duration,
2420
2426
  delay: 0,
2421
2427
  duration: u.duration,
@@ -2426,7 +2432,7 @@ function Xi() {
2426
2432
  }
2427
2433
  //#endregion
2428
2434
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
2429
- function Zi() {
2435
+ function Qi() {
2430
2436
  var e, t, n = this, r = n._id, i = n.size();
2431
2437
  return new Promise(function(a, o) {
2432
2438
  var s = { value: o }, c = { value: function() {
@@ -2440,77 +2446,77 @@ function Zi() {
2440
2446
  }
2441
2447
  //#endregion
2442
2448
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
2443
- var Qi = 0;
2449
+ var $i = 0;
2444
2450
  function J(e, t, n, r) {
2445
2451
  this._groups = e, this._parents = t, this._name = n, this._id = r;
2446
2452
  }
2447
- function $i(e) {
2448
- return E().transition(e);
2453
+ function ea(e) {
2454
+ return D().transition(e);
2449
2455
  }
2450
- function ea() {
2451
- return ++Qi;
2456
+ function ta() {
2457
+ return ++$i;
2452
2458
  }
2453
- var Y = E.prototype;
2454
- J.prototype = $i.prototype = {
2459
+ var Y = D.prototype;
2460
+ J.prototype = ea.prototype = {
2455
2461
  constructor: J,
2456
- select: ji,
2457
- selectAll: Mi,
2462
+ select: Mi,
2463
+ selectAll: Ni,
2458
2464
  selectChild: Y.selectChild,
2459
2465
  selectChildren: Y.selectChildren,
2460
- filter: wi,
2461
- merge: Ti,
2462
- selection: Pi,
2463
- transition: Xi,
2466
+ filter: Ti,
2467
+ merge: Ei,
2468
+ selection: Fi,
2469
+ transition: Zi,
2464
2470
  call: Y.call,
2465
2471
  nodes: Y.nodes,
2466
2472
  node: Y.node,
2467
2473
  size: Y.size,
2468
2474
  empty: Y.empty,
2469
2475
  each: Y.each,
2470
- on: Oi,
2471
- attr: ci,
2472
- attrTween: pi,
2473
- style: Bi,
2474
- styleTween: Ui,
2475
- text: Ki,
2476
- textTween: Yi,
2477
- remove: Ai,
2478
- tween: $r,
2479
- delay: gi,
2480
- duration: yi,
2481
- ease: xi,
2482
- easeVarying: Ci,
2483
- end: Zi,
2476
+ on: ki,
2477
+ attr: li,
2478
+ attrTween: mi,
2479
+ style: Vi,
2480
+ styleTween: Wi,
2481
+ text: qi,
2482
+ textTween: Xi,
2483
+ remove: ji,
2484
+ tween: ei,
2485
+ delay: _i,
2486
+ duration: bi,
2487
+ ease: Si,
2488
+ easeVarying: wi,
2489
+ end: Qi,
2484
2490
  [Symbol.iterator]: Y[Symbol.iterator]
2485
2491
  };
2486
2492
  //#endregion
2487
2493
  //#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
2488
- function ta(e) {
2494
+ function na(e) {
2489
2495
  return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2490
2496
  }
2491
2497
  //#endregion
2492
2498
  //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
2493
- var na = {
2499
+ var ra = {
2494
2500
  time: null,
2495
2501
  delay: 0,
2496
2502
  duration: 250,
2497
- ease: ta
2503
+ ease: na
2498
2504
  };
2499
- function ra(e, t) {
2505
+ function ia(e, t) {
2500
2506
  for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
2501
2507
  return n;
2502
2508
  }
2503
- function ia(e) {
2509
+ function aa(e) {
2504
2510
  var t, n;
2505
- e instanceof J ? (t = e._id, e = e._name) : (t = ea(), (n = na).time = Pr(), e = e == null ? null : e + "");
2506
- for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && Kr(c, e, t, l, o, n || ra(c, t));
2511
+ e instanceof J ? (t = e._id, e = e._name) : (t = ta(), (n = ra).time = Fr(), e = e == null ? null : e + "");
2512
+ for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && qr(c, e, t, l, o, n || ia(c, t));
2507
2513
  return new J(r, this._parents, e, t);
2508
2514
  }
2509
- E.prototype.interrupt = Xr, E.prototype.transition = ia;
2515
+ D.prototype.interrupt = Zr, D.prototype.transition = aa;
2510
2516
  //#endregion
2511
2517
  //#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
2512
- var { abs: aa, max: oa, min: sa } = Math;
2513
- ["w", "e"].map(ca), ["n", "s"].map(ca), [
2518
+ var { abs: oa, max: sa, min: ca } = Math;
2519
+ ["w", "e"].map(la), ["n", "s"].map(la), [
2514
2520
  "n",
2515
2521
  "w",
2516
2522
  "e",
@@ -2519,36 +2525,36 @@ var { abs: aa, max: oa, min: sa } = Math;
2519
2525
  "ne",
2520
2526
  "sw",
2521
2527
  "se"
2522
- ].map(ca);
2523
- function ca(e) {
2528
+ ].map(la);
2529
+ function la(e) {
2524
2530
  return { type: e };
2525
2531
  }
2526
2532
  //#endregion
2527
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.js
2528
- function la(e) {
2533
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2534
+ function ua(e) {
2529
2535
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
2530
2536
  }
2531
- function ua(e, t) {
2532
- if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
2533
- var n, r = e.slice(0, n);
2537
+ function da(e, t) {
2538
+ if (!isFinite(e) || e === 0) return null;
2539
+ var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
2534
2540
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
2535
2541
  }
2536
2542
  //#endregion
2537
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.js
2543
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
2538
2544
  function X(e) {
2539
- return e = ua(Math.abs(e)), e ? e[1] : NaN;
2545
+ return e = da(Math.abs(e)), e ? e[1] : NaN;
2540
2546
  }
2541
2547
  //#endregion
2542
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.js
2543
- function da(e, t) {
2548
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
2549
+ function fa(e, t) {
2544
2550
  return function(n, r) {
2545
2551
  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];
2546
2552
  return a.reverse().join(t);
2547
2553
  };
2548
2554
  }
2549
2555
  //#endregion
2550
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.js
2551
- function fa(e) {
2556
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
2557
+ function pa(e) {
2552
2558
  return function(t) {
2553
2559
  return t.replace(/[0-9]/g, function(t) {
2554
2560
  return e[+t];
@@ -2556,12 +2562,12 @@ function fa(e) {
2556
2562
  };
2557
2563
  }
2558
2564
  //#endregion
2559
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.js
2560
- var pa = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2561
- function ma(e) {
2562
- if (!(t = pa.exec(e))) throw Error("invalid format: " + e);
2565
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
2566
+ var ma = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2567
+ function ha(e) {
2568
+ if (!(t = ma.exec(e))) throw Error("invalid format: " + e);
2563
2569
  var t;
2564
- return new ha({
2570
+ return new ga({
2565
2571
  fill: t[1],
2566
2572
  align: t[2],
2567
2573
  sign: t[3],
@@ -2574,16 +2580,16 @@ function ma(e) {
2574
2580
  type: t[10]
2575
2581
  });
2576
2582
  }
2577
- ma.prototype = ha.prototype;
2578
- function ha(e) {
2583
+ ha.prototype = ga.prototype;
2584
+ function ga(e) {
2579
2585
  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 + "";
2580
2586
  }
2581
- ha.prototype.toString = function() {
2587
+ ga.prototype.toString = function() {
2582
2588
  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;
2583
2589
  };
2584
2590
  //#endregion
2585
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.js
2586
- function ga(e) {
2591
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
2592
+ function _a(e) {
2587
2593
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
2588
2594
  case ".":
2589
2595
  r = i = n;
@@ -2599,47 +2605,47 @@ function ga(e) {
2599
2605
  return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
2600
2606
  }
2601
2607
  //#endregion
2602
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.js
2603
- var _a;
2604
- function va(e, t) {
2605
- var n = ua(e, t);
2606
- if (!n) return e + "";
2607
- var r = n[0], i = n[1], a = i - (_a = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2608
- 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") + ua(e, Math.max(0, t + a - 1))[0];
2608
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
2609
+ var va;
2610
+ function ya(e, t) {
2611
+ var n = da(e, t);
2612
+ if (!n) return va = void 0, e.toPrecision(t);
2613
+ var r = n[0], i = n[1], a = i - (va = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2614
+ 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") + da(e, Math.max(0, t + a - 1))[0];
2609
2615
  }
2610
2616
  //#endregion
2611
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.js
2612
- function ya(e, t) {
2613
- var n = ua(e, t);
2617
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
2618
+ function ba(e, t) {
2619
+ var n = da(e, t);
2614
2620
  if (!n) return e + "";
2615
2621
  var r = n[0], i = n[1];
2616
2622
  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");
2617
2623
  }
2618
2624
  //#endregion
2619
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.js
2620
- var ba = {
2625
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
2626
+ var xa = {
2621
2627
  "%": (e, t) => (e * 100).toFixed(t),
2622
2628
  b: (e) => Math.round(e).toString(2),
2623
2629
  c: (e) => e + "",
2624
- d: la,
2630
+ d: ua,
2625
2631
  e: (e, t) => e.toExponential(t),
2626
2632
  f: (e, t) => e.toFixed(t),
2627
2633
  g: (e, t) => e.toPrecision(t),
2628
2634
  o: (e) => Math.round(e).toString(8),
2629
- p: (e, t) => ya(e * 100, t),
2630
- r: ya,
2631
- s: va,
2635
+ p: (e, t) => ba(e * 100, t),
2636
+ r: ba,
2637
+ s: ya,
2632
2638
  X: (e) => Math.round(e).toString(16).toUpperCase(),
2633
2639
  x: (e) => Math.round(e).toString(16)
2634
2640
  };
2635
2641
  //#endregion
2636
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.js
2637
- function xa(e) {
2642
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
2643
+ function Sa(e) {
2638
2644
  return e;
2639
2645
  }
2640
2646
  //#endregion
2641
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.js
2642
- var Sa = Array.prototype.map, Ca = [
2647
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
2648
+ var Ca = Array.prototype.map, wa = [
2643
2649
  "y",
2644
2650
  "z",
2645
2651
  "a",
@@ -2658,30 +2664,30 @@ var Sa = Array.prototype.map, Ca = [
2658
2664
  "Z",
2659
2665
  "Y"
2660
2666
  ];
2661
- function wa(e) {
2662
- var t = e.grouping === void 0 || e.thousands === void 0 ? xa : da(Sa.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 ? xa : fa(Sa.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 + "";
2663
- function l(e) {
2664
- e = ma(e);
2665
- var l = e.fill, u = e.align, d = e.sign, f = e.symbol, p = e.zero, m = e.width, h = e.comma, g = e.precision, _ = e.trim, v = e.type;
2666
- v === "n" ? (h = !0, v = "g") : ba[v] || (g === void 0 && (g = 12), _ = !0, v = "g"), (p || l === "0" && u === "=") && (p = !0, l = "0", u = "=");
2667
- var y = f === "$" ? n : f === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : "", ee = f === "$" ? r : /[%p]/.test(v) ? o : "", te = ba[v], ne = /[defgprs%]/.test(v);
2668
- g = g === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
2669
- function b(e) {
2670
- var n = y, r = ee, o, f, b;
2671
- if (v === "c") r = te(e) + r, e = "";
2667
+ function Ta(e) {
2668
+ var t = e.grouping === void 0 || e.thousands === void 0 ? Sa : fa(Ca.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 ? Sa : pa(Ca.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 + "";
2669
+ function l(e, l) {
2670
+ e = ha(e);
2671
+ var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
2672
+ y === "n" ? (g = !0, y = "g") : xa[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
2673
+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), ee = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), te = xa[y], ne = /[defgprs%]/.test(y);
2674
+ _ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
2675
+ function x(e) {
2676
+ var n = b, r = ee, o, l, p;
2677
+ if (y === "c") r = te(e) + r, e = "";
2672
2678
  else {
2673
2679
  e = +e;
2674
2680
  var x = e < 0 || 1 / e < 0;
2675
- if (e = isNaN(e) ? c : te(Math.abs(e), g), _ && (e = ga(e)), x && +e == 0 && d !== "+" && (x = !1), n = (x ? d === "(" ? d : s : d === "-" || d === "(" ? "" : d) + n, r = (v === "s" ? Ca[8 + _a / 3] : "") + r + (x && d === "(" ? ")" : ""), ne) {
2676
- for (o = -1, f = e.length; ++o < f;) if (b = e.charCodeAt(o), 48 > b || b > 57) {
2677
- r = (b === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
2681
+ if (e = isNaN(e) ? c : te(Math.abs(e), _), v && (e = _a(e)), x && +e == 0 && f !== "+" && (x = !1), n = (x ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && va !== void 0 ? wa[8 + va / 3] : "") + r + (x && f === "(" ? ")" : ""), ne) {
2682
+ for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
2683
+ r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
2678
2684
  break;
2679
2685
  }
2680
2686
  }
2681
2687
  }
2682
- h && !p && (e = t(e, Infinity));
2683
- var S = n.length + e.length + r.length, C = S < m ? Array(m - S + 1).join(l) : "";
2684
- switch (h && p && (e = t(C + e, C.length ? m - r.length : Infinity), C = ""), u) {
2688
+ g && !m && (e = t(e, Infinity));
2689
+ var S = n.length + e.length + r.length, C = S < h ? Array(h - S + 1).join(u) : "";
2690
+ switch (g && m && (e = t(C + e, C.length ? h - r.length : Infinity), C = ""), d) {
2685
2691
  case "<":
2686
2692
  e = n + e + r + C;
2687
2693
  break;
@@ -2697,14 +2703,14 @@ function wa(e) {
2697
2703
  }
2698
2704
  return a(e);
2699
2705
  }
2700
- return b.toString = function() {
2706
+ return x.toString = function() {
2701
2707
  return e + "";
2702
- }, b;
2708
+ }, x;
2703
2709
  }
2704
2710
  function u(e, t) {
2705
- var n = l((e = ma(e), e.type = "f", e)), r = Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3, i = 10 ** -r, a = Ca[8 + r / 3];
2711
+ var n = Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3, r = 10 ** -n, i = l((e = ha(e), e.type = "f", e), { suffix: wa[8 + n / 3] });
2706
2712
  return function(e) {
2707
- return n(i * e) + a;
2713
+ return i(r * e);
2708
2714
  };
2709
2715
  }
2710
2716
  return {
@@ -2713,34 +2719,34 @@ function wa(e) {
2713
2719
  };
2714
2720
  }
2715
2721
  //#endregion
2716
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.js
2717
- var Ta, Ea, Da;
2718
- Oa({
2722
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
2723
+ var Ea, Da, Oa;
2724
+ ka({
2719
2725
  thousands: ",",
2720
2726
  grouping: [3],
2721
2727
  currency: ["$", ""]
2722
2728
  });
2723
- function Oa(e) {
2724
- return Ta = wa(e), Ea = Ta.format, Da = Ta.formatPrefix, Ta;
2729
+ function ka(e) {
2730
+ return Ea = Ta(e), Da = Ea.format, Oa = Ea.formatPrefix, Ea;
2725
2731
  }
2726
2732
  //#endregion
2727
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.js
2728
- function ka(e) {
2733
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
2734
+ function Aa(e) {
2729
2735
  return Math.max(0, -X(Math.abs(e)));
2730
2736
  }
2731
2737
  //#endregion
2732
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.js
2733
- function Aa(e, t) {
2738
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
2739
+ function ja(e, t) {
2734
2740
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3 - X(Math.abs(e)));
2735
2741
  }
2736
2742
  //#endregion
2737
- //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.js
2738
- function ja(e, t) {
2743
+ //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
2744
+ function Ma(e, t) {
2739
2745
  return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, X(t) - X(e)) + 1;
2740
2746
  }
2741
2747
  //#endregion
2742
2748
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
2743
- function Ma(e, t) {
2749
+ function Na(e, t) {
2744
2750
  switch (arguments.length) {
2745
2751
  case 0: break;
2746
2752
  case 1:
@@ -2754,55 +2760,55 @@ function Ma(e, t) {
2754
2760
  }
2755
2761
  //#endregion
2756
2762
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js
2757
- function Na(e) {
2763
+ function Pa(e) {
2758
2764
  return function() {
2759
2765
  return e;
2760
2766
  };
2761
2767
  }
2762
2768
  //#endregion
2763
2769
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.js
2764
- function Pa(e) {
2770
+ function Fa(e) {
2765
2771
  return +e;
2766
2772
  }
2767
2773
  //#endregion
2768
2774
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js
2769
- var Fa = [0, 1];
2775
+ var Ia = [0, 1];
2770
2776
  function Z(e) {
2771
2777
  return e;
2772
2778
  }
2773
- function Ia(e, t) {
2779
+ function La(e, t) {
2774
2780
  return (t -= e = +e) ? function(n) {
2775
2781
  return (n - e) / t;
2776
- } : Na(isNaN(t) ? NaN : .5);
2782
+ } : Pa(isNaN(t) ? NaN : .5);
2777
2783
  }
2778
- function La(e, t) {
2784
+ function Ra(e, t) {
2779
2785
  var n;
2780
2786
  return e > t && (n = e, e = t, t = n), function(n) {
2781
2787
  return Math.max(e, Math.min(t, n));
2782
2788
  };
2783
2789
  }
2784
- function Ra(e, t, n) {
2790
+ function za(e, t, n) {
2785
2791
  var r = e[0], i = e[1], a = t[0], o = t[1];
2786
- return i < r ? (r = Ia(i, r), a = n(o, a)) : (r = Ia(r, i), a = n(a, o)), function(e) {
2792
+ return i < r ? (r = La(i, r), a = n(o, a)) : (r = La(r, i), a = n(a, o)), function(e) {
2787
2793
  return a(r(e));
2788
2794
  };
2789
2795
  }
2790
- function za(e, t, n) {
2796
+ function Ba(e, t, n) {
2791
2797
  var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;
2792
- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = Ia(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
2798
+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = La(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);
2793
2799
  return function(t) {
2794
- var n = ve(e, t, 1, r) - 1;
2800
+ var n = ye(e, t, 1, r) - 1;
2795
2801
  return a[n](i[n](t));
2796
2802
  };
2797
2803
  }
2798
- function Ba(e, t) {
2804
+ function Va(e, t) {
2799
2805
  return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());
2800
2806
  }
2801
- function Va() {
2802
- var e = Fa, t = Fa, n = V, r, i, a, o = Z, s, c, l;
2807
+ function Ha() {
2808
+ var e = Ia, t = Ia, n = _r, r, i, a, o = Z, s, c, l;
2803
2809
  function u() {
2804
2810
  var n = Math.min(e.length, t.length);
2805
- return o !== Z && (o = La(e[0], e[n - 1])), s = n > 2 ? za : Ra, c = l = null, d;
2811
+ return o !== Z && (o = Ra(e[0], e[n - 1])), s = n > 2 ? Ba : za, c = l = null, d;
2806
2812
  }
2807
2813
  function d(i) {
2808
2814
  return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -2810,11 +2816,11 @@ function Va() {
2810
2816
  return d.invert = function(n) {
2811
2817
  return o(i((l ||= s(t, e.map(r), B))(n)));
2812
2818
  }, d.domain = function(t) {
2813
- return arguments.length ? (e = Array.from(t, Pa), u()) : e.slice();
2819
+ return arguments.length ? (e = Array.from(t, Fa), u()) : e.slice();
2814
2820
  }, d.range = function(e) {
2815
2821
  return arguments.length ? (t = Array.from(e), u()) : t.slice();
2816
2822
  }, d.rangeRound = function(e) {
2817
- return t = Array.from(e), n = gr, u();
2823
+ return t = Array.from(e), n = vr, u();
2818
2824
  }, d.clamp = function(e) {
2819
2825
  return arguments.length ? (o = e ? !0 : Z, u()) : o !== Z;
2820
2826
  }, d.interpolate = function(e) {
@@ -2825,46 +2831,46 @@ function Va() {
2825
2831
  return r = e, i = t, u();
2826
2832
  };
2827
2833
  }
2828
- function Ha() {
2829
- return Va()(Z, Z);
2834
+ function Ua() {
2835
+ return Ha()(Z, Z);
2830
2836
  }
2831
2837
  //#endregion
2832
2838
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js
2833
- function Ua(e, t, n, r) {
2834
- var i = Te(e, t, n), a;
2835
- switch (r = ma(r ?? ",f"), r.type) {
2839
+ function Wa(e, t, n, r) {
2840
+ var i = Ee(e, t, n), a;
2841
+ switch (r = ha(r ?? ",f"), r.type) {
2836
2842
  case "s":
2837
2843
  var o = Math.max(Math.abs(e), Math.abs(t));
2838
- return r.precision == null && !isNaN(a = Aa(i, o)) && (r.precision = a), Da(r, o);
2844
+ return r.precision == null && !isNaN(a = ja(i, o)) && (r.precision = a), Oa(r, o);
2839
2845
  case "":
2840
2846
  case "e":
2841
2847
  case "g":
2842
2848
  case "p":
2843
2849
  case "r":
2844
- r.precision == null && !isNaN(a = ja(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
2850
+ r.precision == null && !isNaN(a = Ma(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
2845
2851
  break;
2846
2852
  case "f":
2847
2853
  case "%":
2848
- r.precision == null && !isNaN(a = ka(i)) && (r.precision = a - (r.type === "%") * 2);
2854
+ r.precision == null && !isNaN(a = Aa(i)) && (r.precision = a - (r.type === "%") * 2);
2849
2855
  break;
2850
2856
  }
2851
- return Ea(r);
2857
+ return Da(r);
2852
2858
  }
2853
2859
  //#endregion
2854
2860
  //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.js
2855
- function Wa(e) {
2861
+ function Ga(e) {
2856
2862
  var t = e.domain;
2857
2863
  return e.ticks = function(e) {
2858
2864
  var n = t();
2859
- return Ce(n[0], n[n.length - 1], e ?? 10);
2865
+ return we(n[0], n[n.length - 1], e ?? 10);
2860
2866
  }, e.tickFormat = function(e, n) {
2861
2867
  var r = t();
2862
- return Ua(r[0], r[r.length - 1], e ?? 10, n);
2868
+ return Wa(r[0], r[r.length - 1], e ?? 10, n);
2863
2869
  }, e.nice = function(n) {
2864
2870
  n ??= 10;
2865
2871
  var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;
2866
2872
  for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {
2867
- if (l = we(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
2873
+ if (l = Te(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);
2868
2874
  if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
2869
2875
  else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;
2870
2876
  else break;
@@ -2873,11 +2879,11 @@ function Wa(e) {
2873
2879
  return e;
2874
2880
  }, e;
2875
2881
  }
2876
- function Ga() {
2877
- var e = Ha();
2882
+ function Ka() {
2883
+ var e = Ua();
2878
2884
  return e.copy = function() {
2879
- return Ba(e, Ga());
2880
- }, Ma.apply(e, arguments), Wa(e);
2885
+ return Va(e, Ka());
2886
+ }, Na.apply(e, arguments), Ga(e);
2881
2887
  }
2882
2888
  //#endregion
2883
2889
  //#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
@@ -2920,25 +2926,23 @@ Q.prototype = {
2920
2926
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2921
2927
  }
2922
2928
  };
2923
- var Ka = new Q(1, 0, 0);
2924
- qa.prototype = Q.prototype;
2925
- function qa(e) {
2926
- for (; !e.__zoom;) if (!(e = e.parentNode)) return Ka;
2929
+ var qa = new Q(1, 0, 0);
2930
+ Ja.prototype = Q.prototype;
2931
+ function Ja(e) {
2932
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return qa;
2927
2933
  return e.__zoom;
2928
2934
  }
2929
2935
  //#endregion
2930
2936
  //#region ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2931
- var Ja = !0, Ya = "Invariant failed";
2937
+ var Ya = "Invariant failed";
2932
2938
  function $(e, t) {
2933
- if (!e) {
2934
- if (Ja) throw Error(Ya);
2935
- var n = typeof t == "function" ? t() : t, r = n ? `${Ya}: ${n}` : Ya;
2936
- throw Error(r);
2937
- }
2939
+ if (!e) throw Error(Ya);
2938
2940
  }
2939
2941
  //#endregion
2940
2942
  //#region src/color/ColorMap.ts
2941
2943
  var Xa = class {
2944
+ type;
2945
+ name;
2942
2946
  lut;
2943
2947
  constructor(e, t, n) {
2944
2948
  this.type = e, this.name = t, $(n.length > 1), this.lut = n.map((e) => Array.isArray(e) ? e : e.srgb().toArray());
@@ -2950,13 +2954,13 @@ var Xa = class {
2950
2954
  return $(t != null), t;
2951
2955
  }
2952
2956
  buildLinear() {
2953
- this.#e ??= Ga().domain(Er(V(0, 1), this.lut.length)).range(this.lut).clamp(!0);
2957
+ this.#e ??= Ka().domain(Or(_r(0, 1), this.lut.length)).range(this.lut).clamp(!0);
2954
2958
  }
2955
2959
  get count() {
2956
2960
  return this.lut.length;
2957
2961
  }
2958
2962
  ticks(e, t) {
2959
- return Ga().domain(e).ticks(t);
2963
+ return Ka().domain(e).ticks(t);
2960
2964
  }
2961
2965
  quantize(e) {
2962
2966
  return $(e > 1), [...Array(e)].map((t, n) => this.linear(n / (e - 1)));
@@ -3039,4 +3043,4 @@ var Xa = class {
3039
3043
  }
3040
3044
  }, $a = class {};
3041
3045
  //#endregion
3042
- export { de as BaseAbstractedVec3, m as CachedMeshHandleLike, Za as Color, Xa as ColorMap, x as ConstructedPolygonGeometryLike, re as ConstructedPolylineGeometryLike, v as ElevationDecoderLike, ae as EventHandler, s as EventManager, b as ExtentRadianF32Like, Qa as Globe, ie as IMAGE_EXTENSIONS, le as NamedIndexMap, ue as Observed, $a as Plugin, ne as PolygonMaterialLike, C as PolylineMaterialLike, ee as ReturnedConstructedTerrainMeshLike, p as TileXYZLike, i as Transaction, r as TransactionManager, h as TransferableMartiniLike, te as TransferablePolygonBatchedFeatureLike, S as TransferablePolylineBatchedFeatureLike, _ as TransferableRasterDEMDataLike, f as TransferableTileLike, se as Unimplemented, ce as Unreachable, g as UpsamplableTerrainGeometryLike, y as Vec3Like, c as assertType, t as generate_id_from_entity, n as isEntityEvent, d as isNotFalse, l as isNotNullish, u as isNotUndefined, oe as setBatchedValuesToBatchedAttribute };
3046
+ export { fe as BaseAbstractedVec3, h as CachedMeshHandleLike, Za as Color, Xa as ColorMap, S as ConstructedPolygonGeometryLike, ie as ConstructedPolylineGeometryLike, y as ElevationDecoderLike, oe as EventHandler, c as EventManager, x as ExtentRadianF32Like, Qa as Globe, ae as IMAGE_EXTENSIONS, ue as NamedIndexMap, de as Observed, $a as Plugin, ne as PolygonMaterialLike, re as PolylineMaterialLike, ee as ReturnedConstructedTerrainMeshLike, m as TileXYZLike, a as Transaction, i as TransactionManager, g as TransferableMartiniLike, te as TransferablePolygonBatchedFeatureLike, C as TransferablePolylineBatchedFeatureLike, v as TransferableRasterDEMDataLike, p as TransferableTileLike, ce as Unimplemented, le as Unreachable, _ as UpsamplableTerrainGeometryLike, b as Vec3Like, l as assertType, t as generate_id_from_entity, n as generate_id_from_ind_gen, r as isEntityEvent, f as isNotFalse, u as isNotNullish, d as isNotUndefined, se as setBatchedValuesToBatchedAttribute };