@navaramap/core 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Vec3 as e } from "@navaramap/engine";
2
- //#region src/id.ts
2
+ // src/id.ts
3
3
  function t(e) {
4
4
  return n(e.ind, e.gen);
5
5
  }
@@ -9,217 +9,139 @@ function n(e, t) {
9
9
  function r(e) {
10
10
  return !!e && typeof e == "object" && "ind" in e && "gen" in e;
11
11
  }
12
- //#endregion
13
- //#region src/event/TransactionManager.ts
14
- var i = class {
15
- record = {};
16
- getOrInsert(e) {
17
- return this.record[e] || (this.record[e] = new a(e)), this.record[e];
18
- }
19
- }, a = class e {
20
- id;
21
- continuable;
22
- currentPending;
23
- next;
24
- parent;
25
- constructor(e, t = !0) {
26
- this.id = e, this.continuable = t;
27
- }
28
- then(t) {
29
- if (this.next || (this.next = new e(this.id, !1), this.next.parent = this), !this.currentPending && this.continuable) {
30
- this.continuable = !1, this.next.continuable = !1;
31
- let e = () => {
32
- this.currentPending = void 0, this.next && (this.next.continuable = !0);
33
- }, n = (t) => {
34
- console.error(`Transaction "${this.id}" callback failed:`, t), e();
35
- };
36
- try {
37
- this.currentPending = t().then(e, n);
12
+ // src/event/JobDispatcher.ts
13
+ var i = (e) => {
14
+ e && typeof e == "object" && "free" in e && typeof e.free == "function" && e.free();
15
+ }, a = (e) => typeof e?.then == "function", o = (e) => r(e) ? t(e) : void 0, s = (e, t) => {
16
+ let n = e[`take_${t}`].call(e);
17
+ return n == null ? [] : Array.isArray(n) ? n : [n];
18
+ }, c = class {
19
+ sync = [];
20
+ registered = [];
21
+ onSettled;
22
+ disposed = !1;
23
+ inFlightJobs = 0;
24
+ constructor(e) {
25
+ this.onSettled = e?.onSettled;
26
+ }
27
+ register(e) {
28
+ let t = {
29
+ handler: e,
30
+ jobs: /* @__PURE__ */ new Map(),
31
+ inFlight: 0
32
+ };
33
+ return this.registered.push(t), { inFlight: () => t.inFlight };
34
+ }
35
+ registerSync(e, t) {
36
+ this.sync.push({
37
+ key: e,
38
+ handle: t
39
+ });
40
+ }
41
+ inFlight() {
42
+ return this.inFlightJobs;
43
+ }
44
+ tick(e) {
45
+ if (e && !this.disposed) {
46
+ for (let { key: t, handle: n } of this.sync) for (let r of s(e, t)) try {
47
+ n(r);
38
48
  } catch (e) {
39
- n(e);
49
+ console.error(`Event handler for "${t}" failed:`, e);
50
+ } finally {
51
+ i(r);
52
+ }
53
+ for (let t of this.registered) {
54
+ let { events: n } = t.handler, r = s(e, n.removed), a = s(e, n.requested), c = n.changed ? s(e, n.changed) : [], l = /* @__PURE__ */ new Set();
55
+ for (let e of r) {
56
+ let t = o(e);
57
+ t !== void 0 && l.add(t);
58
+ }
59
+ for (let e of a) {
60
+ let n = o(e);
61
+ n === void 0 || l.has(n) || t.jobs.has(n) ? i(e) : this.start(t, n, e);
62
+ }
63
+ for (let e of r) this.remove(t, o(e), e);
64
+ for (let e of c) this.change(t, o(e), e);
40
65
  }
41
66
  }
42
- return this.next;
43
67
  }
44
- end() {
45
- if (!this.continuable) return;
46
- let e = this.parent;
47
- if (!e) {
48
- this.continuable = !0;
49
- return;
50
- }
51
- for (this.continuable = !1; e.parent;) e = e.parent;
52
- e.continuable = !0;
53
- }
54
- }, o = (e) => {
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 {
60
- stacks = {
61
- camera_transform_updated: [],
62
- camera_frustum_updated: [],
63
- camera_flight_ended: [],
64
- data_requested: [],
65
- data_requester_removed: [],
66
- mesh_added: [],
67
- mesh_updated: [],
68
- mesh_geometry_replaced: [],
69
- mesh_removed: [],
70
- object_transform_updated: [],
71
- renderable_feature_added: [],
72
- renderable_feature_changed: [],
73
- renderable_feature_removed: [],
74
- texture_fragment_removed: [],
75
- texture_fragment_requested: [],
76
- update_sample_terrain_height: [],
77
- update_terrain_height_range: [],
78
- worker_task_delegated: [],
79
- worker_task_removed: [],
80
- hillshade_backfilled: [],
81
- hillshade_canceled: []
82
- };
83
- addedEventIds = /* @__PURE__ */ new Map();
84
- sortedLengths = {};
85
- transactionManager = new i();
86
- needsUpdate() {
87
- return Object.values(this.stacks).some((e) => !!e.length);
88
- }
89
- pushEvents(e) {
90
- if (e) for (let t of Object.keys(this.stacks)) {
91
- let n = e[`take_${t}`].call(e);
92
- n && (Array.isArray(n) ? this.stacks[t].push(...n) : this.stacks[t].push(n));
68
+ dispose() {
69
+ this.disposed = !0;
70
+ for (let e of this.registered) {
71
+ for (let t of e.jobs.values()) t.abort.abort();
72
+ e.jobs.clear(), e.inFlight = 0;
93
73
  }
74
+ this.inFlightJobs = 0;
94
75
  }
95
- forEachStack(e, t, n = 100) {
96
- let r = 0;
97
- for (let i of this.stacks[e]) {
98
- if (r === n) break;
99
- t(i), o(i), r++;
100
- }
101
- this.stacks[e].splice(0, r);
102
- let i = this.sortedLengths[e];
103
- i !== void 0 && (this.sortedLengths[e] = Math.max(0, i - r));
104
- }
105
- sortPending(e, t) {
106
- let n = this.stacks[e], r = Math.min(this.sortedLengths[e] ?? 0, n.length);
107
- if (r < n.length) {
108
- let i = n.splice(r).sort(t), a = [], o = 0, s = 0;
109
- for (; o < n.length && s < i.length;) a.push(t(n[o], i[s]) <= 0 ? n[o++] : i[s++]);
110
- for (; o < n.length; o++) a.push(n[o]);
111
- for (; s < i.length; s++) a.push(i[s]);
112
- this.stacks[e] = a;
113
- }
114
- this.sortedLengths[e] = this.stacks[e].length;
115
- }
116
- removeAt(e, t) {
117
- this.stacks[e].splice(t, 1);
118
- let n = this.sortedLengths[e];
119
- n !== void 0 && t < n && (this.sortedLengths[e] = n - 1);
120
- }
121
- async forEachStackAsync(e, t, n = 100, r, i) {
122
- let a = [];
123
- i && this.sortPending(e, i);
124
- let s = 0, c = [];
125
- for (let i of this.stacks[e]) {
126
- if (s === n) break;
127
- let e = i;
128
- if (r && !r(e)) {
129
- s++;
130
- continue;
131
- }
132
- a.push(t(e)), c.push(s), s++;
133
- }
134
- let l = [], u = 0;
135
- for (let t of c) {
136
- let n = t - u;
137
- l.push(this.stacks[e][n]), this.removeAt(e, n), u++;
76
+ start(e, t, n) {
77
+ let r = {
78
+ abort: new AbortController(),
79
+ inFlight: !0
80
+ };
81
+ this.inFlightJobs++, e.inFlight++, e.jobs.set(t, r);
82
+ let i;
83
+ try {
84
+ i = Promise.resolve(e.handler.start(n, r.abort));
85
+ } catch (e) {
86
+ i = Promise.reject(e);
138
87
  }
139
- let d = await Promise.allSettled(a);
140
- for (let t of d) t.status === "rejected" && console.error(`Event handler for "${e}" failed:`, t.reason);
141
- for (let e of l) o(e);
142
- }
143
- removeDuplicatedTransactionEvents(e) {
144
- let n = /* @__PURE__ */ new Map(), i = e.change ? /* @__PURE__ */ new Map() : null;
145
- this.stacks[e.add.key].forEach((e, i) => {
146
- if (r(e)) {
147
- let r = t(e);
148
- n.set(r, i);
149
- }
150
- }), i && e.change && this.stacks[e.change.key].forEach((e, n) => {
151
- if (r(e)) {
152
- let r = t(e);
153
- i.set(r, n);
154
- }
155
- });
156
- let a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
157
- this.stacks[e.remove.key].forEach((c, l) => {
158
- if (!r(c)) return;
159
- let u = t(c), d = n.get(u), f = !1;
160
- if (d !== void 0 && (a.add(d), f = !0), i && e.change) {
161
- let e = i.get(u);
162
- e !== void 0 && o.add(e);
163
- }
164
- f && s.add(l);
165
- }), a.size > 0 && this.removeStacksByIndices(e.add.key, a), o.size > 0 && e.change && this.removeStacksByIndices(e.change.key, o), s.size > 0 && this.removeStacksByIndices(e.remove.key, s);
166
- }
167
- removeStacksByIndices(e, t) {
168
- let n = [...t].sort((e, t) => t - e);
169
- for (let t of n) o(this.stacks[e][t]), this.removeAt(e, t);
170
- }
171
- processTransactionEvents(e, t, n, r) {
172
- let { shouldProcess: i, generateEventId: a = s, onAbort: o } = r ?? {};
173
- this.removeDuplicatedTransactionEvents(t);
174
- let c = this.addedEventIds.get(e) ?? /* @__PURE__ */ new Set();
175
- this.addedEventIds.set(e, c);
176
- let l = this.transactionManager.getOrInsert(e).then(() => this.forEachStackAsync(t.add.key, (e) => (o && c.add(a({
177
- type: "add",
178
- event: e
179
- })), n({
180
- type: "add",
181
- event: e
182
- })), t.add.max, i ? (e) => i({
183
- type: "add",
184
- event: e
185
- }) : void 0, t.add.order)).then(() => (o && c.clear(), this.forEachStackAsync(t.remove.key, (e) => n({
186
- type: "remove",
187
- event: e
188
- }), t.remove.max, i ? (e) => i({
189
- type: "remove",
190
- event: e
191
- }) : void 0)));
192
- if (o && c.size) for (let n of this.stacks[t.remove.key]) {
193
- if (!n) continue;
194
- let t = n, r = a({
195
- type: "remove",
196
- event: t
197
- });
198
- if (r && c.has(r)) {
199
- try {
200
- Promise.resolve(o(t)).catch((t) => {
201
- console.error(`onAbort handler for "${e}" failed:`, t);
202
- });
88
+ i.then((i) => {
89
+ r.product = i, this.settleStart(e, t, r, n);
90
+ }, (i) => {
91
+ if (r.removedEv === void 0 && !this.disposed) {
92
+ if (e.handler.failed) try {
93
+ e.handler.failed(n, i);
203
94
  } catch (t) {
204
- console.error(`onAbort handler for "${e}" failed:`, t);
95
+ console.error(`Job "${e.handler.name}" failed handler threw:`, t);
205
96
  }
206
- c.delete(r);
97
+ else console.error(`Job "${e.handler.name}" failed to start:`, i);
207
98
  }
99
+ this.settleStart(e, t, r, n);
100
+ });
101
+ }
102
+ settleStart(e, t, n, r) {
103
+ i(r);
104
+ let a = n.product;
105
+ this.finish(e, t, n) || a !== void 0 && this.onSettled?.();
106
+ }
107
+ remove(e, t, n) {
108
+ let r = t === void 0 ? void 0 : e.jobs.get(t);
109
+ r ? (r.abort.abort(), r.inFlight ? (i(r.removedEv), r.removedEv = n) : (e.jobs.delete(t), this.teardown(e, r.product, n), i(n))) : (this.teardown(e, void 0, n), i(n));
110
+ }
111
+ change(e, t, n) {
112
+ let r = t === void 0 ? void 0 : e.jobs.get(t);
113
+ !r || !e.handler.change || r.removedEv !== void 0 ? i(n) : r.inFlight ? (i(r.pendingChange), r.pendingChange = n) : r.product === void 0 ? i(n) : this.applyChange(e, t, r, n);
114
+ }
115
+ applyChange(e, t, n, r) {
116
+ let o;
117
+ try {
118
+ o = e.handler.change?.(n.product, r);
119
+ } catch (t) {
120
+ console.error(`Job "${e.handler.name}" failed to change:`, t), i(r);
121
+ return;
122
+ }
123
+ a(o) ? (n.inFlight = !0, this.inFlightJobs++, e.inFlight++, o.catch((t) => {
124
+ console.error(`Job "${e.handler.name}" failed to change:`, t);
125
+ }).finally(() => {
126
+ i(r), this.finish(e, t, n);
127
+ })) : i(r);
128
+ }
129
+ finish(e, t, n) {
130
+ if (n.inFlight = !1, this.disposed || (this.inFlightJobs--, e.inFlight--), n.removedEv === void 0 && !this.disposed) {
131
+ let r = n.pendingChange;
132
+ return n.pendingChange = void 0, n.product === void 0 ? (i(r), e.jobs.delete(t)) : r !== void 0 && this.applyChange(e, t, n, r), !1;
133
+ }
134
+ return e.jobs.get(t) === n && e.jobs.delete(t), i(n.pendingChange), n.pendingChange = void 0, this.teardown(e, n.product, n.removedEv), i(n.removedEv), n.removedEv = void 0, !0;
135
+ }
136
+ teardown(e, t, n) {
137
+ try {
138
+ e.handler.teardown(t, n);
139
+ } catch (t) {
140
+ console.error(`Job "${e.handler.name}" failed to tear down:`, t);
208
141
  }
209
- if (t.change) {
210
- let e = t.change;
211
- l.then(() => this.forEachStackAsync(e.key, (e) => n({
212
- type: "change",
213
- event: e
214
- }), e.max, i ? (e) => i({
215
- type: "change",
216
- event: e
217
- }) : void 0)).end();
218
- } else l.end();
219
142
  }
220
143
  };
221
- //#endregion
222
- //#region src/assertions.ts
144
+ // src/assertions.ts
223
145
  function l(e) {}
224
146
  function u(e) {
225
147
  return e != null;
@@ -230,8 +152,7 @@ function d(e) {
230
152
  function f(e) {
231
153
  return e !== !1;
232
154
  }
233
- //#endregion
234
- //#region src/utils/TransferableTileLike.ts
155
+ // src/utils/TransferableTileLike.ts
235
156
  var p = class {
236
157
  cached_mesh_handle;
237
158
  coords;
@@ -320,9 +241,10 @@ var p = class {
320
241
  skirt_uvs;
321
242
  skirt_indices;
322
243
  skirt_normals;
244
+ skirt_heights;
323
245
  watermask;
324
246
  constructor(e) {
325
- 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());
247
+ 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(), this.skirt_heights = e.transferSkirtHeights()), e.hasWatermask() && (this.watermask = e.transferWatermask());
326
248
  }
327
249
  transferVertices() {
328
250
  throw Error();
@@ -351,6 +273,9 @@ var p = class {
351
273
  transferSkirtNormals() {
352
274
  throw Error();
353
275
  }
276
+ transferSkirtHeights() {
277
+ throw Error();
278
+ }
354
279
  transferWatermask() {
355
280
  throw Error();
356
281
  }
@@ -540,20 +465,22 @@ var p = class {
540
465
  end_high_size;
541
466
  end_low;
542
467
  end_low_size;
543
- start_normals;
544
- start_normals_size;
545
- end_normal_and_texture_coordinate_normalization_x;
546
- end_normal_and_texture_coordinate_normalization_x_size;
547
- right_normal_and_texture_coordinate_normalization_y;
548
- right_normal_and_texture_coordinate_normalization_y_size;
468
+ start_normal_and_length_high;
469
+ start_normal_and_length_high_size;
470
+ end_normal_and_segment_length;
471
+ end_normal_and_segment_length_size;
472
+ right_normal_and_line_length;
473
+ right_normal_and_line_length_size;
549
474
  batch_id;
550
475
  batch_id_size;
551
476
  batch_index;
552
477
  batch_index_size;
553
478
  indices;
479
+ line_segments;
480
+ line_distance_and_ends;
554
481
  constructor(e) {
555
482
  let t = e.extent;
556
- 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();
483
+ 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_normal_and_length_high = e.start_normal_and_length_high()?.slice(), this.start_normal_and_length_high_size = e.start_normal_and_length_high_size(), this.end_normal_and_segment_length = e.end_normal_and_segment_length()?.slice(), this.end_normal_and_segment_length_size = e.end_normal_and_segment_length_size(), this.right_normal_and_line_length = e.right_normal_and_line_length().slice(), this.right_normal_and_line_length_size = e.right_normal_and_line_length_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.line_segments = e.line_segments()?.slice(), this.line_distance_and_ends = e.line_distance_and_ends()?.slice();
557
484
  }
558
485
  }, ae = ["png", "webp"], oe = class {
559
486
  events = {};
@@ -646,18 +573,15 @@ var p = class {
646
573
  this.value.x = e, this.value.y = t, this.value.z = n;
647
574
  }
648
575
  };
649
- //#endregion
650
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
576
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
651
577
  function pe(e, t) {
652
578
  return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
653
579
  }
654
- //#endregion
655
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
580
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.js
656
581
  function me(e, t) {
657
582
  return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
658
583
  }
659
- //#endregion
660
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
584
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.js
661
585
  function he(e) {
662
586
  let t, n, r;
663
587
  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);
@@ -694,17 +618,14 @@ function he(e) {
694
618
  function ge() {
695
619
  return 0;
696
620
  }
697
- //#endregion
698
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
621
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.js
699
622
  function _e(e) {
700
623
  return e === null ? NaN : +e;
701
624
  }
702
- //#endregion
703
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
625
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js
704
626
  var ve = he(pe), ye = ve.right;
705
627
  ve.left, he(_e).center;
706
- //#endregion
707
- //#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
628
+ // ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js
708
629
  var be = Math.sqrt(50), xe = Math.sqrt(10), Se = Math.sqrt(2);
709
630
  function Ce(e, t, n) {
710
631
  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;
@@ -735,8 +656,7 @@ function Ee(e, t, n) {
735
656
  let r = t < e, i = r ? Te(t, e, n) : Te(e, t, n);
736
657
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
737
658
  }
738
- //#endregion
739
- //#region ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
659
+ // ../../node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js
740
660
  var De = { value: () => {} };
741
661
  function Oe() {
742
662
  for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
@@ -764,12 +684,12 @@ ke.prototype = Oe.prototype = {
764
684
  var n = this._, r = Ae(e + "", n), i, a = -1, o = r.length;
765
685
  if (arguments.length < 2) {
766
686
  for (; ++a < o;) if ((i = (e = r[a]).type) && (i = je(n[i], e.name))) return i;
767
- return;
687
+ } else {
688
+ if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
689
+ for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Me(n[i], e.name, t);
690
+ else if (t == null) for (i in n) n[i] = Me(n[i], e.name, null);
691
+ return this;
768
692
  }
769
- if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
770
- for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Me(n[i], e.name, t);
771
- else if (t == null) for (i in n) n[i] = Me(n[i], e.name, null);
772
- return this;
773
693
  },
774
694
  copy: function() {
775
695
  var e = {}, t = this._;
@@ -806,8 +726,7 @@ var Ne = {
806
726
  xml: "http://www.w3.org/XML/1998/namespace",
807
727
  xmlns: "http://www.w3.org/2000/xmlns/"
808
728
  };
809
- //#endregion
810
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
729
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
811
730
  function w(e) {
812
731
  var t = e += "", n = t.indexOf(":");
813
732
  return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Ne.hasOwnProperty(t) ? {
@@ -815,8 +734,7 @@ function w(e) {
815
734
  local: e
816
735
  } : e;
817
736
  }
818
- //#endregion
819
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
737
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
820
738
  function Pe(e) {
821
739
  return function() {
822
740
  var t = this.ownerDocument, n = this.namespaceURI;
@@ -832,28 +750,24 @@ function Ie(e) {
832
750
  var t = w(e);
833
751
  return (t.local ? Fe : Pe)(t);
834
752
  }
835
- //#endregion
836
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
753
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
837
754
  function Le() {}
838
755
  function Re(e) {
839
756
  return e == null ? Le : function() {
840
757
  return this.querySelector(e);
841
758
  };
842
759
  }
843
- //#endregion
844
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
760
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
845
761
  function ze(e) {
846
762
  typeof e != "function" && (e = Re(e));
847
763
  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);
848
764
  return new E(r, this._parents);
849
765
  }
850
- //#endregion
851
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
766
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
852
767
  function Be(e) {
853
768
  return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
854
769
  }
855
- //#endregion
856
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
770
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
857
771
  function Ve() {
858
772
  return [];
859
773
  }
@@ -862,8 +776,7 @@ function He(e) {
862
776
  return this.querySelectorAll(e);
863
777
  };
864
778
  }
865
- //#endregion
866
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
779
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
867
780
  function Ue(e) {
868
781
  return function() {
869
782
  return Be(e.apply(this, arguments));
@@ -874,8 +787,7 @@ function We(e) {
874
787
  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));
875
788
  return new E(r, i);
876
789
  }
877
- //#endregion
878
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
790
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
879
791
  function Ge(e) {
880
792
  return function() {
881
793
  return this.matches(e);
@@ -886,8 +798,7 @@ function Ke(e) {
886
798
  return t.matches(e);
887
799
  };
888
800
  }
889
- //#endregion
890
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
801
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
891
802
  var qe = Array.prototype.find;
892
803
  function Je(e) {
893
804
  return function() {
@@ -900,8 +811,7 @@ function Ye() {
900
811
  function Xe(e) {
901
812
  return this.select(e == null ? Ye : Je(typeof e == "function" ? e : Ke(e)));
902
813
  }
903
- //#endregion
904
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
814
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
905
815
  var Ze = Array.prototype.filter;
906
816
  function Qe() {
907
817
  return Array.from(this.children);
@@ -914,20 +824,17 @@ function $e(e) {
914
824
  function et(e) {
915
825
  return this.selectAll(e == null ? Qe : $e(typeof e == "function" ? e : Ke(e)));
916
826
  }
917
- //#endregion
918
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
827
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
919
828
  function tt(e) {
920
829
  typeof e != "function" && (e = Ge(e));
921
830
  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);
922
831
  return new E(r, this._parents);
923
832
  }
924
- //#endregion
925
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
833
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
926
834
  function nt(e) {
927
835
  return Array(e.length);
928
836
  }
929
- //#endregion
930
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
837
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
931
838
  function rt() {
932
839
  return new E(this._enter || this._groups.map(nt), this._parents);
933
840
  }
@@ -949,15 +856,13 @@ it.prototype = {
949
856
  return this._parent.querySelectorAll(e);
950
857
  }
951
858
  };
952
- //#endregion
953
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
859
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
954
860
  function at(e) {
955
861
  return function() {
956
862
  return e;
957
863
  };
958
864
  }
959
- //#endregion
960
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
865
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
961
866
  function ot(e, t, n, r, i, a) {
962
867
  for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new it(e, a[o]);
963
868
  for (; o < c; ++o) (s = t[o]) && (i[o] = s);
@@ -988,32 +893,27 @@ function lt(e, t) {
988
893
  function ut(e) {
989
894
  return typeof e == "object" && "length" in e ? e : Array.from(e);
990
895
  }
991
- //#endregion
992
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
896
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
993
897
  function dt() {
994
898
  return new E(this._exit || this._groups.map(nt), this._parents);
995
899
  }
996
- //#endregion
997
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
900
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
998
901
  function ft(e, t, n) {
999
902
  var r = this.enter(), i = this, a = this.exit();
1000
903
  return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (i = t(i), i &&= i.selection()), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
1001
904
  }
1002
- //#endregion
1003
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
905
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
1004
906
  function pt(e) {
1005
907
  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);
1006
908
  for (; c < i; ++c) s[c] = n[c];
1007
909
  return new E(s, this._parents);
1008
910
  }
1009
- //#endregion
1010
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
911
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
1011
912
  function mt() {
1012
913
  for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
1013
914
  return this;
1014
915
  }
1015
- //#endregion
1016
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
916
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
1017
917
  function ht(e) {
1018
918
  e ||= gt;
1019
919
  function t(t, n) {
@@ -1028,19 +928,16 @@ function ht(e) {
1028
928
  function gt(e, t) {
1029
929
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
1030
930
  }
1031
- //#endregion
1032
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
931
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
1033
932
  function _t() {
1034
933
  var e = arguments[0];
1035
934
  return arguments[0] = this, e.apply(null, arguments), this;
1036
935
  }
1037
- //#endregion
1038
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
936
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
1039
937
  function vt() {
1040
938
  return Array.from(this);
1041
939
  }
1042
- //#endregion
1043
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
940
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
1044
941
  function yt() {
1045
942
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
1046
943
  var o = r[i];
@@ -1048,26 +945,22 @@ function yt() {
1048
945
  }
1049
946
  return null;
1050
947
  }
1051
- //#endregion
1052
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
948
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
1053
949
  function bt() {
1054
950
  let e = 0;
1055
951
  for (let t of this) ++e;
1056
952
  return e;
1057
953
  }
1058
- //#endregion
1059
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
954
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
1060
955
  function xt() {
1061
956
  return !this.node();
1062
957
  }
1063
- //#endregion
1064
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
958
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
1065
959
  function St(e) {
1066
960
  for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
1067
961
  return this;
1068
962
  }
1069
- //#endregion
1070
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
963
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
1071
964
  function Ct(e) {
1072
965
  return function() {
1073
966
  this.removeAttribute(e);
@@ -1108,13 +1001,11 @@ function kt(e, t) {
1108
1001
  }
1109
1002
  return this.each((t == null ? n.local ? wt : Ct : typeof t == "function" ? n.local ? Ot : Dt : n.local ? Et : Tt)(n, t));
1110
1003
  }
1111
- //#endregion
1112
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
1004
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
1113
1005
  function At(e) {
1114
1006
  return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
1115
1007
  }
1116
- //#endregion
1117
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
1008
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
1118
1009
  function jt(e) {
1119
1010
  return function() {
1120
1011
  this.style.removeProperty(e);
@@ -1137,8 +1028,7 @@ function Pt(e, t, n) {
1137
1028
  function T(e, t) {
1138
1029
  return e.style.getPropertyValue(t) || At(e).getComputedStyle(e, null).getPropertyValue(t);
1139
1030
  }
1140
- //#endregion
1141
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
1031
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
1142
1032
  function Ft(e) {
1143
1033
  return function() {
1144
1034
  delete this[e];
@@ -1158,8 +1048,7 @@ function Lt(e, t) {
1158
1048
  function Rt(e, t) {
1159
1049
  return arguments.length > 1 ? this.each((t == null ? Ft : typeof t == "function" ? Lt : It)(e, t)) : this.node()[e];
1160
1050
  }
1161
- //#endregion
1162
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
1051
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
1163
1052
  function zt(e) {
1164
1053
  return e.trim().split(/^|\s+/);
1165
1054
  }
@@ -1210,8 +1099,7 @@ function qt(e, t) {
1210
1099
  }
1211
1100
  return this.each((typeof t == "function" ? Kt : t ? Wt : Gt)(n, t));
1212
1101
  }
1213
- //#endregion
1214
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
1102
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
1215
1103
  function Jt() {
1216
1104
  this.textContent = "";
1217
1105
  }
@@ -1229,8 +1117,7 @@ function Xt(e) {
1229
1117
  function Zt(e) {
1230
1118
  return arguments.length ? this.each(e == null ? Jt : (typeof e == "function" ? Xt : Yt)(e)) : this.node().textContent;
1231
1119
  }
1232
- //#endregion
1233
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
1120
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
1234
1121
  function Qt() {
1235
1122
  this.innerHTML = "";
1236
1123
  }
@@ -1248,32 +1135,28 @@ function en(e) {
1248
1135
  function tn(e) {
1249
1136
  return arguments.length ? this.each(e == null ? Qt : (typeof e == "function" ? en : $t)(e)) : this.node().innerHTML;
1250
1137
  }
1251
- //#endregion
1252
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
1138
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
1253
1139
  function nn() {
1254
1140
  this.nextSibling && this.parentNode.appendChild(this);
1255
1141
  }
1256
1142
  function rn() {
1257
1143
  return this.each(nn);
1258
1144
  }
1259
- //#endregion
1260
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
1145
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
1261
1146
  function an() {
1262
1147
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
1263
1148
  }
1264
1149
  function on() {
1265
1150
  return this.each(an);
1266
1151
  }
1267
- //#endregion
1268
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
1152
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
1269
1153
  function sn(e) {
1270
1154
  var t = typeof e == "function" ? e : Ie(e);
1271
1155
  return this.select(function() {
1272
1156
  return this.appendChild(t.apply(this, arguments));
1273
1157
  });
1274
1158
  }
1275
- //#endregion
1276
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
1159
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
1277
1160
  function cn() {
1278
1161
  return null;
1279
1162
  }
@@ -1283,8 +1166,7 @@ function ln(e, t) {
1283
1166
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
1284
1167
  });
1285
1168
  }
1286
- //#endregion
1287
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
1169
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
1288
1170
  function un() {
1289
1171
  var e = this.parentNode;
1290
1172
  e && e.removeChild(this);
@@ -1292,8 +1174,7 @@ function un() {
1292
1174
  function dn() {
1293
1175
  return this.each(un);
1294
1176
  }
1295
- //#endregion
1296
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
1177
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
1297
1178
  function fn() {
1298
1179
  var e = this.cloneNode(!1), t = this.parentNode;
1299
1180
  return t ? t.insertBefore(e, this.nextSibling) : e;
@@ -1305,13 +1186,11 @@ function pn() {
1305
1186
  function mn(e) {
1306
1187
  return this.select(e ? pn : fn);
1307
1188
  }
1308
- //#endregion
1309
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
1189
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
1310
1190
  function hn(e) {
1311
1191
  return arguments.length ? this.property("__data__", e) : this.node().__data__;
1312
1192
  }
1313
- //#endregion
1314
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
1193
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
1315
1194
  function gn(e) {
1316
1195
  return function(t) {
1317
1196
  e.call(this, t, this.__data__);
@@ -1360,13 +1239,12 @@ function bn(e, t, n) {
1360
1239
  if (s) {
1361
1240
  for (var c = 0, l = s.length, u; c < l; ++c) for (i = 0, u = s[c]; i < a; ++i) if ((o = r[i]).type === u.type && o.name === u.name) return u.value;
1362
1241
  }
1363
- return;
1242
+ } else {
1243
+ for (s = t ? yn : vn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
1244
+ return this;
1364
1245
  }
1365
- for (s = t ? yn : vn, i = 0; i < a; ++i) this.each(s(r[i], t, n));
1366
- return this;
1367
1246
  }
1368
- //#endregion
1369
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
1247
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
1370
1248
  function xn(e, t, n) {
1371
1249
  var r = At(e), i = r.CustomEvent;
1372
1250
  typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
@@ -1384,13 +1262,11 @@ function Cn(e, t) {
1384
1262
  function wn(e, t) {
1385
1263
  return this.each((typeof t == "function" ? Cn : Sn)(e, t));
1386
1264
  }
1387
- //#endregion
1388
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
1265
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
1389
1266
  function* Tn() {
1390
1267
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
1391
1268
  }
1392
- //#endregion
1393
- //#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
1269
+ // ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
1394
1270
  var En = [null];
1395
1271
  function E(e, t) {
1396
1272
  this._groups = e, this._parents = t;
@@ -1439,8 +1315,7 @@ E.prototype = D.prototype = {
1439
1315
  dispatch: wn,
1440
1316
  [Symbol.iterator]: Tn
1441
1317
  };
1442
- //#endregion
1443
- //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
1318
+ // ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
1444
1319
  function On(e, t, n) {
1445
1320
  e.prototype = t.prototype = n, n.constructor = e;
1446
1321
  }
@@ -1449,8 +1324,7 @@ function kn(e, t) {
1449
1324
  for (var r in t) n[r] = t[r];
1450
1325
  return n;
1451
1326
  }
1452
- //#endregion
1453
- //#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
1327
+ // ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
1454
1328
  function O() {}
1455
1329
  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 = {
1456
1330
  aliceblue: 15792383,
@@ -1736,11 +1610,9 @@ function R(e) {
1736
1610
  function tr(e, t, n) {
1737
1611
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
1738
1612
  }
1739
- //#endregion
1740
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
1613
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js
1741
1614
  var nr = (e) => () => e;
1742
- //#endregion
1743
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
1615
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js
1744
1616
  function rr(e, t) {
1745
1617
  return function(n) {
1746
1618
  return e + n * t;
@@ -1760,8 +1632,7 @@ function or(e, t) {
1760
1632
  var n = t - e;
1761
1633
  return n ? rr(e, n) : nr(isNaN(e) ? t : e);
1762
1634
  }
1763
- //#endregion
1764
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
1635
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js
1765
1636
  var z = (function e(t) {
1766
1637
  var n = ar(t);
1767
1638
  function r(e, t) {
@@ -1772,8 +1643,7 @@ var z = (function e(t) {
1772
1643
  }
1773
1644
  return r.gamma = e, r;
1774
1645
  })(1);
1775
- //#endregion
1776
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
1646
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.js
1777
1647
  function sr(e, t) {
1778
1648
  t ||= [];
1779
1649
  var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
@@ -1785,44 +1655,38 @@ function sr(e, t) {
1785
1655
  function cr(e) {
1786
1656
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
1787
1657
  }
1788
- //#endregion
1789
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
1658
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.js
1790
1659
  function lr(e, t) {
1791
- var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
1792
- for (o = 0; o < r; ++o) i[o] = _r(e[o], t[o]);
1660
+ for (var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o = 0; o < r; ++o) i[o] = _r(e[o], t[o]);
1793
1661
  for (; o < n; ++o) a[o] = t[o];
1794
1662
  return function(e) {
1795
1663
  for (o = 0; o < r; ++o) a[o] = i[o](e);
1796
1664
  return a;
1797
1665
  };
1798
1666
  }
1799
- //#endregion
1800
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
1667
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.js
1801
1668
  function ur(e, t) {
1802
1669
  var n = /* @__PURE__ */ new Date();
1803
1670
  return e = +e, t = +t, function(r) {
1804
1671
  return n.setTime(e * (1 - r) + t * r), n;
1805
1672
  };
1806
1673
  }
1807
- //#endregion
1808
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
1674
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js
1809
1675
  function B(e, t) {
1810
1676
  return e = +e, t = +t, function(n) {
1811
1677
  return e * (1 - n) + t * n;
1812
1678
  };
1813
1679
  }
1814
- //#endregion
1815
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
1680
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.js
1816
1681
  function dr(e, t) {
1817
1682
  var n = {}, r = {}, i;
1818
- 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];
1683
+ 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];
1819
1684
  return function(e) {
1820
1685
  for (i in n) r[i] = n[i](e);
1821
1686
  return r;
1822
1687
  };
1823
1688
  }
1824
- //#endregion
1825
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
1689
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js
1826
1690
  var fr = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pr = new RegExp(fr.source, "g");
1827
1691
  function mr(e) {
1828
1692
  return function() {
@@ -1845,21 +1709,18 @@ function gr(e, t) {
1845
1709
  return s.join("");
1846
1710
  });
1847
1711
  }
1848
- //#endregion
1849
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
1712
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js
1850
1713
  function _r(e, t) {
1851
1714
  var n = typeof t, r;
1852
1715
  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);
1853
1716
  }
1854
- //#endregion
1855
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
1717
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.js
1856
1718
  function vr(e, t) {
1857
1719
  return e = +e, t = +t, function(n) {
1858
1720
  return Math.round(e * (1 - n) + t * n);
1859
1721
  };
1860
1722
  }
1861
- //#endregion
1862
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
1723
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js
1863
1724
  var yr = 180 / Math.PI, br = {
1864
1725
  translateX: 0,
1865
1726
  translateY: 0,
@@ -1879,8 +1740,7 @@ function xr(e, t, n, r, i, a) {
1879
1740
  scaleY: s
1880
1741
  };
1881
1742
  }
1882
- //#endregion
1883
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
1743
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js
1884
1744
  var Sr;
1885
1745
  function Cr(e) {
1886
1746
  let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
@@ -1889,8 +1749,7 @@ function Cr(e) {
1889
1749
  function wr(e) {
1890
1750
  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));
1891
1751
  }
1892
- //#endregion
1893
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
1752
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js
1894
1753
  function Tr(e, t, n, r) {
1895
1754
  function i(e) {
1896
1755
  return e.length ? e.pop() + " " : "";
@@ -1940,14 +1799,12 @@ function Tr(e, t, n, r) {
1940
1799
  };
1941
1800
  }
1942
1801
  var Er = Tr(Cr, "px, ", "px)", "deg)"), Dr = Tr(wr, ", ", ")", ")");
1943
- //#endregion
1944
- //#region ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/quantize.js
1802
+ // ../../node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/quantize.js
1945
1803
  function Or(e, t) {
1946
1804
  for (var n = Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
1947
1805
  return n;
1948
1806
  }
1949
- //#endregion
1950
- //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
1807
+ // ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
1951
1808
  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) {
1952
1809
  setTimeout(e, 17);
1953
1810
  };
@@ -1998,16 +1855,14 @@ function Hr() {
1998
1855
  function Ur(e) {
1999
1856
  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)));
2000
1857
  }
2001
- //#endregion
2002
- //#region ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
1858
+ // ../../node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
2003
1859
  function Wr(e, t, n) {
2004
1860
  var r = new Lr();
2005
1861
  return t = t == null ? 0 : +t, r.restart((n) => {
2006
1862
  r.stop(), e(n + t);
2007
1863
  }, t, n), r;
2008
1864
  }
2009
- //#endregion
2010
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
1865
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
2011
1866
  var Gr = Oe("start", "end", "cancel", "interrupt"), Kr = [];
2012
1867
  function qr(e, t, n, r, i, a) {
2013
1868
  var o = e.__transition;
@@ -2071,30 +1926,21 @@ function Yr(e, t, n) {
2071
1926
  delete e.__transition;
2072
1927
  }
2073
1928
  }
2074
- //#endregion
2075
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
1929
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
2076
1930
  function Xr(e, t) {
2077
1931
  var n = e.__transition, r, i, a = !0, o;
2078
1932
  if (n) {
2079
- for (o in t = t == null ? null : t + "", n) {
2080
- if ((r = n[o]).name !== t) {
2081
- a = !1;
2082
- continue;
2083
- }
2084
- i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
2085
- }
1933
+ for (o in t = t == null ? null : t + "", n) (r = n[o]).name === t ? (i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o]) : a = !1;
2086
1934
  a && delete e.__transition;
2087
1935
  }
2088
1936
  }
2089
- //#endregion
2090
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
1937
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
2091
1938
  function Zr(e) {
2092
1939
  return this.each(function() {
2093
1940
  Xr(this, e);
2094
1941
  });
2095
1942
  }
2096
- //#endregion
2097
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
1943
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
2098
1944
  function Qr(e, t) {
2099
1945
  var n, r;
2100
1946
  return function() {
@@ -2145,14 +1991,12 @@ function ti(e, t, n) {
2145
1991
  return q(e, r).value[t];
2146
1992
  };
2147
1993
  }
2148
- //#endregion
2149
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
1994
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
2150
1995
  function ni(e, t) {
2151
1996
  var n;
2152
1997
  return (typeof t == "number" ? B : t instanceof N ? z : (n = N(t)) ? (t = n, z) : gr)(e, t);
2153
1998
  }
2154
- //#endregion
2155
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
1999
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
2156
2000
  function ri(e) {
2157
2001
  return function() {
2158
2002
  this.removeAttribute(e);
@@ -2195,8 +2039,7 @@ function li(e, t) {
2195
2039
  var n = w(e), r = n === "transform" ? Dr : ni;
2196
2040
  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));
2197
2041
  }
2198
- //#endregion
2199
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
2042
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
2200
2043
  function ui(e, t) {
2201
2044
  return function(n) {
2202
2045
  this.setAttribute(e, t.call(this, n));
@@ -2231,8 +2074,7 @@ function mi(e, t) {
2231
2074
  var r = w(e);
2232
2075
  return this.tween(n, (r.local ? fi : pi)(r, t));
2233
2076
  }
2234
- //#endregion
2235
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
2077
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
2236
2078
  function hi(e, t) {
2237
2079
  return function() {
2238
2080
  Jr(this, e).delay = +t.apply(this, arguments);
@@ -2247,8 +2089,7 @@ function _i(e) {
2247
2089
  var t = this._id;
2248
2090
  return arguments.length ? this.each((typeof e == "function" ? hi : gi)(t, e)) : q(this.node(), t).delay;
2249
2091
  }
2250
- //#endregion
2251
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
2092
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
2252
2093
  function vi(e, t) {
2253
2094
  return function() {
2254
2095
  K(this, e).duration = +t.apply(this, arguments);
@@ -2263,8 +2104,7 @@ function bi(e) {
2263
2104
  var t = this._id;
2264
2105
  return arguments.length ? this.each((typeof e == "function" ? vi : yi)(t, e)) : q(this.node(), t).duration;
2265
2106
  }
2266
- //#endregion
2267
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
2107
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
2268
2108
  function xi(e, t) {
2269
2109
  if (typeof t != "function") throw Error();
2270
2110
  return function() {
@@ -2275,8 +2115,7 @@ function Si(e) {
2275
2115
  var t = this._id;
2276
2116
  return arguments.length ? this.each(xi(t, e)) : q(this.node(), t).ease;
2277
2117
  }
2278
- //#endregion
2279
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
2118
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
2280
2119
  function Ci(e, t) {
2281
2120
  return function() {
2282
2121
  var n = t.apply(this, arguments);
@@ -2288,23 +2127,20 @@ function wi(e) {
2288
2127
  if (typeof e != "function") throw Error();
2289
2128
  return this.each(Ci(this._id, e));
2290
2129
  }
2291
- //#endregion
2292
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
2130
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
2293
2131
  function Ti(e) {
2294
2132
  typeof e != "function" && (e = Ge(e));
2295
2133
  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);
2296
2134
  return new J(r, this._parents, this._name, this._id);
2297
2135
  }
2298
- //#endregion
2299
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
2136
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
2300
2137
  function Ei(e) {
2301
2138
  if (e._id !== this._id) throw Error();
2302
2139
  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);
2303
2140
  for (; s < r; ++s) o[s] = t[s];
2304
2141
  return new J(o, this._parents, this._name, this._id);
2305
2142
  }
2306
- //#endregion
2307
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
2143
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
2308
2144
  function Di(e) {
2309
2145
  return (e + "").trim().split(/^|\s+/).every(function(e) {
2310
2146
  var t = e.indexOf(".");
@@ -2322,8 +2158,7 @@ function ki(e, t) {
2322
2158
  var n = this._id;
2323
2159
  return arguments.length < 2 ? q(this.node(), n).on.on(e) : this.each(Oi(n, e, t));
2324
2160
  }
2325
- //#endregion
2326
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
2161
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
2327
2162
  function Ai(e) {
2328
2163
  return function() {
2329
2164
  var t = this.parentNode;
@@ -2334,16 +2169,14 @@ function Ai(e) {
2334
2169
  function ji() {
2335
2170
  return this.on("end.remove", Ai(this._id));
2336
2171
  }
2337
- //#endregion
2338
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
2172
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
2339
2173
  function Mi(e) {
2340
2174
  var t = this._name, n = this._id;
2341
2175
  typeof e != "function" && (e = Re(e));
2342
2176
  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)));
2343
2177
  return new J(a, this._parents, t, n);
2344
2178
  }
2345
- //#endregion
2346
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
2179
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
2347
2180
  function Ni(e) {
2348
2181
  var t = this._name, n = this._id;
2349
2182
  typeof e != "function" && (e = He(e));
@@ -2353,14 +2186,12 @@ function Ni(e) {
2353
2186
  }
2354
2187
  return new J(a, o, t, n);
2355
2188
  }
2356
- //#endregion
2357
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
2189
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
2358
2190
  var Pi = D.prototype.constructor;
2359
2191
  function Fi() {
2360
2192
  return new Pi(this._groups, this._parents);
2361
2193
  }
2362
- //#endregion
2363
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
2194
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
2364
2195
  function Ii(e, t) {
2365
2196
  var n, r, i;
2366
2197
  return function() {
@@ -2398,8 +2229,7 @@ function Vi(e, t, n) {
2398
2229
  var r = (e += "") == "transform" ? Er : ni;
2399
2230
  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);
2400
2231
  }
2401
- //#endregion
2402
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
2232
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
2403
2233
  function Hi(e, t, n) {
2404
2234
  return function(r) {
2405
2235
  this.style.setProperty(e, t.call(this, r), n);
@@ -2420,8 +2250,7 @@ function Wi(e, t, n) {
2420
2250
  if (typeof t != "function") throw Error();
2421
2251
  return this.tween(r, Ui(e, t, n ?? ""));
2422
2252
  }
2423
- //#endregion
2424
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
2253
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
2425
2254
  function Gi(e) {
2426
2255
  return function() {
2427
2256
  this.textContent = e;
@@ -2436,8 +2265,7 @@ function Ki(e) {
2436
2265
  function qi(e) {
2437
2266
  return this.tween("text", typeof e == "function" ? Ki(ti(this, "text", e)) : Gi(e == null ? "" : e + ""));
2438
2267
  }
2439
- //#endregion
2440
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
2268
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
2441
2269
  function Ji(e) {
2442
2270
  return function(t) {
2443
2271
  this.textContent = e.call(this, t);
@@ -2458,8 +2286,7 @@ function Xi(e) {
2458
2286
  if (typeof e != "function") throw Error();
2459
2287
  return this.tween(t, Yi(e));
2460
2288
  }
2461
- //#endregion
2462
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
2289
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
2463
2290
  function Zi() {
2464
2291
  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]) {
2465
2292
  var u = q(c, t);
@@ -2472,8 +2299,7 @@ function Zi() {
2472
2299
  }
2473
2300
  return new J(r, this._parents, e, n);
2474
2301
  }
2475
- //#endregion
2476
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
2302
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
2477
2303
  function Qi() {
2478
2304
  var e, t, n = this, r = n._id, i = n.size();
2479
2305
  return new Promise(function(a, o) {
@@ -2486,8 +2312,7 @@ function Qi() {
2486
2312
  }), i === 0 && a();
2487
2313
  });
2488
2314
  }
2489
- //#endregion
2490
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
2315
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
2491
2316
  var $i = 0;
2492
2317
  function J(e, t, n, r) {
2493
2318
  this._groups = e, this._parents = t, this._name = n, this._id = r;
@@ -2528,13 +2353,11 @@ J.prototype = {
2528
2353
  end: Qi,
2529
2354
  [Symbol.iterator]: Y[Symbol.iterator]
2530
2355
  };
2531
- //#endregion
2532
- //#region ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
2356
+ // ../../node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
2533
2357
  function ta(e) {
2534
2358
  return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2535
2359
  }
2536
- //#endregion
2537
- //#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
2360
+ // ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
2538
2361
  var na = {
2539
2362
  time: null,
2540
2363
  delay: 0,
@@ -2552,8 +2375,7 @@ function ia(e) {
2552
2375
  return new J(r, this._parents, e, t);
2553
2376
  }
2554
2377
  D.prototype.interrupt = Zr, D.prototype.transition = ia;
2555
- //#endregion
2556
- //#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
2378
+ // ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
2557
2379
  var { abs: aa, max: oa, min: sa } = Math;
2558
2380
  ["w", "e"].map(ca), ["n", "s"].map(ca), [
2559
2381
  "n",
@@ -2568,8 +2390,7 @@ var { abs: aa, max: oa, min: sa } = Math;
2568
2390
  function ca(e) {
2569
2391
  return { type: e };
2570
2392
  }
2571
- //#endregion
2572
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2393
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatDecimal.js
2573
2394
  function la(e) {
2574
2395
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
2575
2396
  }
@@ -2578,21 +2399,18 @@ function ua(e, t) {
2578
2399
  var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
2579
2400
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
2580
2401
  }
2581
- //#endregion
2582
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
2402
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js
2583
2403
  function X(e) {
2584
2404
  return e = ua(Math.abs(e)), e ? e[1] : NaN;
2585
2405
  }
2586
- //#endregion
2587
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
2406
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatGroup.js
2588
2407
  function da(e, t) {
2589
2408
  return function(n, r) {
2590
2409
  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];
2591
2410
  return a.reverse().join(t);
2592
2411
  };
2593
2412
  }
2594
- //#endregion
2595
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
2413
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatNumerals.js
2596
2414
  function fa(e) {
2597
2415
  return function(t) {
2598
2416
  return t.replace(/[0-9]/g, function(t) {
@@ -2600,8 +2418,7 @@ function fa(e) {
2600
2418
  });
2601
2419
  };
2602
2420
  }
2603
- //#endregion
2604
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
2421
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js
2605
2422
  var pa = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2606
2423
  function ma(e) {
2607
2424
  if (!(t = pa.exec(e))) throw Error("invalid format: " + e);
@@ -2626,8 +2443,7 @@ function ha(e) {
2626
2443
  ha.prototype.toString = function() {
2627
2444
  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;
2628
2445
  };
2629
- //#endregion
2630
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
2446
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTrim.js
2631
2447
  function ga(e) {
2632
2448
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
2633
2449
  case ".":
@@ -2642,8 +2458,7 @@ function ga(e) {
2642
2458
  }
2643
2459
  return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
2644
2460
  }
2645
- //#endregion
2646
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
2461
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatPrefixAuto.js
2647
2462
  var _a;
2648
2463
  function va(e, t) {
2649
2464
  var n = ua(e, t);
@@ -2651,16 +2466,14 @@ function va(e, t) {
2651
2466
  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;
2652
2467
  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];
2653
2468
  }
2654
- //#endregion
2655
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
2469
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatRounded.js
2656
2470
  function ya(e, t) {
2657
2471
  var n = ua(e, t);
2658
2472
  if (!n) return e + "";
2659
2473
  var r = n[0], i = n[1];
2660
2474
  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");
2661
2475
  }
2662
- //#endregion
2663
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
2476
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatTypes.js
2664
2477
  var ba = {
2665
2478
  "%": (e, t) => (e * 100).toFixed(t),
2666
2479
  b: (e) => Math.round(e).toString(2),
@@ -2676,13 +2489,11 @@ var ba = {
2676
2489
  X: (e) => Math.round(e).toString(16).toUpperCase(),
2677
2490
  x: (e) => Math.round(e).toString(16)
2678
2491
  };
2679
- //#endregion
2680
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
2492
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/identity.js
2681
2493
  function xa(e) {
2682
2494
  return e;
2683
2495
  }
2684
- //#endregion
2685
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
2496
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/locale.js
2686
2497
  var Sa = Array.prototype.map, Ca = [
2687
2498
  "y",
2688
2499
  "z",
@@ -2754,8 +2565,7 @@ function wa(e) {
2754
2565
  formatPrefix: u
2755
2566
  };
2756
2567
  }
2757
- //#endregion
2758
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
2568
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js
2759
2569
  var Ta, Ea, Da;
2760
2570
  Oa({
2761
2571
  thousands: ",",
@@ -2765,23 +2575,19 @@ Oa({
2765
2575
  function Oa(e) {
2766
2576
  return Ta = wa(e), Ea = Ta.format, Da = Ta.formatPrefix, Ta;
2767
2577
  }
2768
- //#endregion
2769
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
2578
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionFixed.js
2770
2579
  function ka(e) {
2771
2580
  return Math.max(0, -X(Math.abs(e)));
2772
2581
  }
2773
- //#endregion
2774
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
2582
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionPrefix.js
2775
2583
  function Aa(e, t) {
2776
2584
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(X(t) / 3))) * 3 - X(Math.abs(e)));
2777
2585
  }
2778
- //#endregion
2779
- //#region ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
2586
+ // ../../node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/precisionRound.js
2780
2587
  function ja(e, t) {
2781
2588
  return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, X(t) - X(e)) + 1;
2782
2589
  }
2783
- //#endregion
2784
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
2590
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
2785
2591
  function Ma(e, t) {
2786
2592
  switch (arguments.length) {
2787
2593
  case 0: break;
@@ -2792,20 +2598,17 @@ function Ma(e, t) {
2792
2598
  }
2793
2599
  return this;
2794
2600
  }
2795
- //#endregion
2796
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js
2601
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.js
2797
2602
  function Na(e) {
2798
2603
  return function() {
2799
2604
  return e;
2800
2605
  };
2801
2606
  }
2802
- //#endregion
2803
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.js
2607
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.js
2804
2608
  function Pa(e) {
2805
2609
  return +e;
2806
2610
  }
2807
- //#endregion
2808
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js
2611
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.js
2809
2612
  var Fa = [0, 1];
2810
2613
  function Z(e) {
2811
2614
  return e;
@@ -2868,8 +2671,7 @@ function Va() {
2868
2671
  function Ha() {
2869
2672
  return Va()(Z, Z);
2870
2673
  }
2871
- //#endregion
2872
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js
2674
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js
2873
2675
  function Ua(e, t, n, r) {
2874
2676
  var i = Ee(e, t, n), a;
2875
2677
  switch (r = ma(r ?? ",f"), r.type) {
@@ -2888,8 +2690,7 @@ function Ua(e, t, n, r) {
2888
2690
  }
2889
2691
  return Ea(r);
2890
2692
  }
2891
- //#endregion
2892
- //#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.js
2693
+ // ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.js
2893
2694
  function Wa(e) {
2894
2695
  var t = e.domain;
2895
2696
  return e.ticks = function(e) {
@@ -2917,8 +2718,7 @@ function Ga() {
2917
2718
  return Ba(e, Ga());
2918
2719
  }, Ma.apply(e, arguments), Wa(e);
2919
2720
  }
2920
- //#endregion
2921
- //#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
2721
+ // ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
2922
2722
  function Q(e, t, n) {
2923
2723
  this.k = e, this.x = t, this.y = n;
2924
2724
  }
@@ -2964,14 +2764,12 @@ function qa(e) {
2964
2764
  for (; !e.__zoom;) if (!(e = e.parentNode)) return Ka;
2965
2765
  return e.__zoom;
2966
2766
  }
2967
- //#endregion
2968
- //#region ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2767
+ // ../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/esm/tiny-invariant.js
2969
2768
  var Ja = "Invariant failed";
2970
2769
  function $(e, t) {
2971
2770
  if (!e) throw Error(Ja);
2972
2771
  }
2973
- //#endregion
2974
- //#region src/color/ColorMap.ts
2772
+ // src/color/ColorMap.ts
2975
2773
  var Ya = class {
2976
2774
  type;
2977
2775
  name;
@@ -3006,18 +2804,17 @@ var Ya = class {
3006
2804
  }), e;
3007
2805
  }
3008
2806
  flatten() {
3009
- let e = new Float32Array(this.lut.length * 3);
3010
- for (let t = 0; t < this.lut.length; t++) e[t * 3] = this.lut[t][0], e[t * 3 + 1] = this.lut[t][1], e[t * 3 + 2] = this.lut[t][2];
2807
+ let e = new Float32Array(this.lut.length * 4);
2808
+ for (let t = 0; t < this.lut.length; t++) e[t * 4] = this.lut[t][0], e[t * 4 + 1] = this.lut[t][1], e[t * 4 + 2] = this.lut[t][2], e[t * 4 + 3] = 1;
3011
2809
  return e;
3012
2810
  }
3013
2811
  }, Xa = class {}, Za = class {
3014
2812
  handler;
3015
- _elevationColormap;
3016
2813
  constructor(e, t) {
3017
2814
  this.handler = e, this.setOptions(t);
3018
2815
  }
3019
2816
  setOptions(e) {
3020
- e?.maxSse != null && (this.maxSse = e.maxSse), e?.segments != null && (this.segments = e.segments), e?.color != null && (this.color = e.color), e?.hideUnderground != null && (this.hideUnderground = e.hideUnderground), e?.useNormal != null && (this.useNormal = e.useNormal), e?.transparent != null && (this.transparent = e.transparent), e?.opacity != null && (this.opacity = e.opacity), e?.wireframe != null && (this.wireframe = e.wireframe), e?.elevationColormap != null && (this.elevationColormap = e.elevationColormap);
2817
+ e?.maxSse != null && (this.maxSse = e.maxSse), e?.segments != null && (this.segments = e.segments), e?.color != null && (this.color = e.color), e?.hideUnderground != null && (this.hideUnderground = e.hideUnderground), e?.useNormal != null && (this.useNormal = e.useNormal), e?.transparent != null && (this.transparent = e.transparent), e?.opacity != null && (this.opacity = e.opacity), e?.wireframe != null && (this.wireframe = e.wireframe);
3021
2818
  }
3022
2819
  get maxSse() {
3023
2820
  return this.handler.getMaxSse() ?? 2;
@@ -3067,12 +2864,5 @@ var Ya = class {
3067
2864
  set wireframe(e) {
3068
2865
  this.handler.setWireframe(e);
3069
2866
  }
3070
- get elevationColormap() {
3071
- return this._elevationColormap;
3072
- }
3073
- set elevationColormap(e) {
3074
- this._elevationColormap = e, this.handler.setElevationColormap(e);
3075
- }
3076
2867
  }, Qa = class {};
3077
- //#endregion
3078
- export { fe as BaseAbstractedVec3, h as CachedMeshHandleLike, Xa as Color, Ya as ColorMap, S as ConstructedPolygonGeometryLike, ie as ConstructedPolylineGeometryLike, y as ElevationDecoderLike, oe as EventHandler, c as EventManager, x as ExtentRadianF32Like, Za as Globe, ae as IMAGE_EXTENSIONS, ue as NamedIndexMap, de as Observed, Qa 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 };
2868
+ export { fe as BaseAbstractedVec3, h as CachedMeshHandleLike, Xa as Color, Ya as ColorMap, S as ConstructedPolygonGeometryLike, ie as ConstructedPolylineGeometryLike, y as ElevationDecoderLike, oe as EventHandler, x as ExtentRadianF32Like, Za as Globe, ae as IMAGE_EXTENSIONS, c as JobDispatcher, ue as NamedIndexMap, de as Observed, Qa as Plugin, ne as PolygonMaterialLike, re as PolylineMaterialLike, ee as ReturnedConstructedTerrainMeshLike, m as TileXYZLike, 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 };