geonodes-web-render 0.3.14 → 0.3.16

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/embed.js CHANGED
@@ -138,7 +138,7 @@ function F(e) {
138
138
  function I(e) {
139
139
  typeof e != "function" && (e = F(e));
140
140
  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);
141
- return new G(r, this._parents);
141
+ return new K(r, this._parents);
142
142
  }
143
143
  //#endregion
144
144
  //#region node_modules/d3-selection/src/array.js
@@ -165,7 +165,7 @@ function z(e) {
165
165
  function B(e) {
166
166
  e = typeof e == "function" ? z(e) : ee(e);
167
167
  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));
168
- return new G(r, i);
168
+ return new K(r, i);
169
169
  }
170
170
  //#endregion
171
171
  //#region node_modules/d3-selection/src/matcher.js
@@ -187,48 +187,48 @@ function W(e) {
187
187
  return U.call(this.children, e);
188
188
  };
189
189
  }
190
- function te() {
190
+ function G() {
191
191
  return this.firstElementChild;
192
192
  }
193
- function ne(e) {
194
- return this.select(e == null ? te : W(typeof e == "function" ? e : H(e)));
193
+ function te(e) {
194
+ return this.select(e == null ? G : W(typeof e == "function" ? e : H(e)));
195
195
  }
196
196
  //#endregion
197
197
  //#region node_modules/d3-selection/src/selection/selectChildren.js
198
- var re = Array.prototype.filter;
199
- function ie() {
198
+ var ne = Array.prototype.filter;
199
+ function re() {
200
200
  return Array.from(this.children);
201
201
  }
202
- function ae(e) {
202
+ function ie(e) {
203
203
  return function() {
204
- return re.call(this.children, e);
204
+ return ne.call(this.children, e);
205
205
  };
206
206
  }
207
- function oe(e) {
208
- return this.selectAll(e == null ? ie : ae(typeof e == "function" ? e : H(e)));
207
+ function ae(e) {
208
+ return this.selectAll(e == null ? re : ie(typeof e == "function" ? e : H(e)));
209
209
  }
210
210
  //#endregion
211
211
  //#region node_modules/d3-selection/src/selection/filter.js
212
- function se(e) {
212
+ function oe(e) {
213
213
  typeof e != "function" && (e = V(e));
214
214
  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);
215
- return new G(r, this._parents);
215
+ return new K(r, this._parents);
216
216
  }
217
217
  //#endregion
218
218
  //#region node_modules/d3-selection/src/selection/sparse.js
219
- function ce(e) {
219
+ function se(e) {
220
220
  return Array(e.length);
221
221
  }
222
222
  //#endregion
223
223
  //#region node_modules/d3-selection/src/selection/enter.js
224
- function le() {
225
- return new G(this._enter || this._groups.map(ce), this._parents);
224
+ function ce() {
225
+ return new K(this._enter || this._groups.map(se), this._parents);
226
226
  }
227
- function ue(e, t) {
227
+ function le(e, t) {
228
228
  this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
229
229
  }
230
- ue.prototype = {
231
- constructor: ue,
230
+ le.prototype = {
231
+ constructor: le,
232
232
  appendChild: function(e) {
233
233
  return this._parent.insertBefore(e, this._next);
234
234
  },
@@ -244,71 +244,71 @@ ue.prototype = {
244
244
  };
245
245
  //#endregion
246
246
  //#region node_modules/d3-selection/src/constant.js
247
- function de(e) {
247
+ function ue(e) {
248
248
  return function() {
249
249
  return e;
250
250
  };
251
251
  }
252
252
  //#endregion
253
253
  //#region node_modules/d3-selection/src/selection/data.js
254
- function fe(e, t, n, r, i, a) {
255
- 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 ue(e, a[o]);
254
+ function de(e, t, n, r, i, a) {
255
+ 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 le(e, a[o]);
256
256
  for (; o < c; ++o) (s = t[o]) && (i[o] = s);
257
257
  }
258
- function pe(e, t, n, r, i, a, o) {
258
+ function fe(e, t, n, r, i, a, o) {
259
259
  var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
260
260
  for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
261
- for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new ue(e, a[s]);
261
+ for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new le(e, a[s]);
262
262
  for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
263
263
  }
264
- function me(e) {
264
+ function pe(e) {
265
265
  return e.__data__;
266
266
  }
267
- function he(e, t) {
268
- if (!arguments.length) return Array.from(this, me);
269
- var n = t ? pe : fe, r = this._parents, i = this._groups;
270
- typeof e != "function" && (e = de(e));
267
+ function me(e, t) {
268
+ if (!arguments.length) return Array.from(this, pe);
269
+ var n = t ? fe : de, r = this._parents, i = this._groups;
270
+ typeof e != "function" && (e = ue(e));
271
271
  for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
272
- var u = r[l], d = i[l], f = d.length, p = ge(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
272
+ var u = r[l], d = i[l], f = d.length, p = he(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
273
273
  n(u, d, h, g, c[l] = Array(f), p, t);
274
274
  for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
275
275
  for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
276
276
  y._next = b || null;
277
277
  }
278
278
  }
279
- return o = new G(o, r), o._enter = s, o._exit = c, o;
279
+ return o = new K(o, r), o._enter = s, o._exit = c, o;
280
280
  }
281
- function ge(e) {
281
+ function he(e) {
282
282
  return typeof e == "object" && "length" in e ? e : Array.from(e);
283
283
  }
284
284
  //#endregion
285
285
  //#region node_modules/d3-selection/src/selection/exit.js
286
- function _e() {
287
- return new G(this._exit || this._groups.map(ce), this._parents);
286
+ function ge() {
287
+ return new K(this._exit || this._groups.map(se), this._parents);
288
288
  }
289
289
  //#endregion
290
290
  //#region node_modules/d3-selection/src/selection/join.js
291
- function ve(e, t, n) {
291
+ function _e(e, t, n) {
292
292
  var r = this.enter(), i = this, a = this.exit();
293
293
  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;
294
294
  }
295
295
  //#endregion
296
296
  //#region node_modules/d3-selection/src/selection/merge.js
297
- function ye(e) {
297
+ function ve(e) {
298
298
  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);
299
299
  for (; c < i; ++c) s[c] = n[c];
300
- return new G(s, this._parents);
300
+ return new K(s, this._parents);
301
301
  }
302
302
  //#endregion
303
303
  //#region node_modules/d3-selection/src/selection/order.js
304
- function be() {
304
+ function ye() {
305
305
  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);
306
306
  return this;
307
307
  }
308
308
  //#endregion
309
309
  //#region node_modules/d3-selection/src/selection/sort.js
310
- function xe(e) {
311
- e ||= Se;
310
+ function be(e) {
311
+ e ||= xe;
312
312
  function t(t, n) {
313
313
  return t && n ? e(t.__data__, n.__data__) : !t - !n;
314
314
  }
@@ -316,25 +316,25 @@ function xe(e) {
316
316
  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);
317
317
  c.sort(t);
318
318
  }
319
- return new G(i, this._parents).order();
319
+ return new K(i, this._parents).order();
320
320
  }
321
- function Se(e, t) {
321
+ function xe(e, t) {
322
322
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
323
323
  }
324
324
  //#endregion
325
325
  //#region node_modules/d3-selection/src/selection/call.js
326
- function Ce() {
326
+ function Se() {
327
327
  var e = arguments[0];
328
328
  return arguments[0] = this, e.apply(null, arguments), this;
329
329
  }
330
330
  //#endregion
331
331
  //#region node_modules/d3-selection/src/selection/nodes.js
332
- function we() {
332
+ function Ce() {
333
333
  return Array.from(this);
334
334
  }
335
335
  //#endregion
336
336
  //#region node_modules/d3-selection/src/selection/node.js
337
- function Te() {
337
+ function we() {
338
338
  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) {
339
339
  var o = r[i];
340
340
  if (o) return o;
@@ -343,126 +343,126 @@ function Te() {
343
343
  }
344
344
  //#endregion
345
345
  //#region node_modules/d3-selection/src/selection/size.js
346
- function Ee() {
346
+ function Te() {
347
347
  let e = 0;
348
348
  for (let t of this) ++e;
349
349
  return e;
350
350
  }
351
351
  //#endregion
352
352
  //#region node_modules/d3-selection/src/selection/empty.js
353
- function De() {
353
+ function Ee() {
354
354
  return !this.node();
355
355
  }
356
356
  //#endregion
357
357
  //#region node_modules/d3-selection/src/selection/each.js
358
- function Oe(e) {
358
+ function De(e) {
359
359
  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);
360
360
  return this;
361
361
  }
362
362
  //#endregion
363
363
  //#region node_modules/d3-selection/src/selection/attr.js
364
- function ke(e) {
364
+ function Oe(e) {
365
365
  return function() {
366
366
  this.removeAttribute(e);
367
367
  };
368
368
  }
369
- function Ae(e) {
369
+ function ke(e) {
370
370
  return function() {
371
371
  this.removeAttributeNS(e.space, e.local);
372
372
  };
373
373
  }
374
- function je(e, t) {
374
+ function Ae(e, t) {
375
375
  return function() {
376
376
  this.setAttribute(e, t);
377
377
  };
378
378
  }
379
- function Me(e, t) {
379
+ function je(e, t) {
380
380
  return function() {
381
381
  this.setAttributeNS(e.space, e.local, t);
382
382
  };
383
383
  }
384
- function Ne(e, t) {
384
+ function Me(e, t) {
385
385
  return function() {
386
386
  var n = t.apply(this, arguments);
387
387
  n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
388
388
  };
389
389
  }
390
- function Pe(e, t) {
390
+ function Ne(e, t) {
391
391
  return function() {
392
392
  var n = t.apply(this, arguments);
393
393
  n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
394
394
  };
395
395
  }
396
- function Fe(e, t) {
396
+ function Pe(e, t) {
397
397
  var n = A(e);
398
398
  if (arguments.length < 2) {
399
399
  var r = this.node();
400
400
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
401
401
  }
402
- return this.each((t == null ? n.local ? Ae : ke : typeof t == "function" ? n.local ? Pe : Ne : n.local ? Me : je)(n, t));
402
+ return this.each((t == null ? n.local ? ke : Oe : typeof t == "function" ? n.local ? Ne : Me : n.local ? je : Ae)(n, t));
403
403
  }
404
404
  //#endregion
405
405
  //#region node_modules/d3-selection/src/window.js
406
- function Ie(e) {
406
+ function Fe(e) {
407
407
  return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
408
408
  }
409
409
  //#endregion
410
410
  //#region node_modules/d3-selection/src/selection/style.js
411
- function Le(e) {
411
+ function Ie(e) {
412
412
  return function() {
413
413
  this.style.removeProperty(e);
414
414
  };
415
415
  }
416
- function Re(e, t, n) {
416
+ function Le(e, t, n) {
417
417
  return function() {
418
418
  this.style.setProperty(e, t, n);
419
419
  };
420
420
  }
421
- function ze(e, t, n) {
421
+ function Re(e, t, n) {
422
422
  return function() {
423
423
  var r = t.apply(this, arguments);
424
424
  r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
425
425
  };
426
426
  }
427
- function Be(e, t, n) {
428
- return arguments.length > 1 ? this.each((t == null ? Le : typeof t == "function" ? ze : Re)(e, t, n ?? "")) : Ve(this.node(), e);
427
+ function ze(e, t, n) {
428
+ return arguments.length > 1 ? this.each((t == null ? Ie : typeof t == "function" ? Re : Le)(e, t, n ?? "")) : Be(this.node(), e);
429
429
  }
430
- function Ve(e, t) {
431
- return e.style.getPropertyValue(t) || Ie(e).getComputedStyle(e, null).getPropertyValue(t);
430
+ function Be(e, t) {
431
+ return e.style.getPropertyValue(t) || Fe(e).getComputedStyle(e, null).getPropertyValue(t);
432
432
  }
433
433
  //#endregion
434
434
  //#region node_modules/d3-selection/src/selection/property.js
435
- function He(e) {
435
+ function Ve(e) {
436
436
  return function() {
437
437
  delete this[e];
438
438
  };
439
439
  }
440
- function Ue(e, t) {
440
+ function He(e, t) {
441
441
  return function() {
442
442
  this[e] = t;
443
443
  };
444
444
  }
445
- function We(e, t) {
445
+ function Ue(e, t) {
446
446
  return function() {
447
447
  var n = t.apply(this, arguments);
448
448
  n == null ? delete this[e] : this[e] = n;
449
449
  };
450
450
  }
451
- function Ge(e, t) {
452
- return arguments.length > 1 ? this.each((t == null ? He : typeof t == "function" ? We : Ue)(e, t)) : this.node()[e];
451
+ function We(e, t) {
452
+ return arguments.length > 1 ? this.each((t == null ? Ve : typeof t == "function" ? Ue : He)(e, t)) : this.node()[e];
453
453
  }
454
454
  //#endregion
455
455
  //#region node_modules/d3-selection/src/selection/classed.js
456
- function Ke(e) {
456
+ function Ge(e) {
457
457
  return e.trim().split(/^|\s+/);
458
458
  }
459
- function qe(e) {
460
- return e.classList || new Je(e);
459
+ function Ke(e) {
460
+ return e.classList || new qe(e);
461
461
  }
462
- function Je(e) {
463
- this._node = e, this._names = Ke(e.getAttribute("class") || "");
462
+ function qe(e) {
463
+ this._node = e, this._names = Ge(e.getAttribute("class") || "");
464
464
  }
465
- Je.prototype = {
465
+ qe.prototype = {
466
466
  add: function(e) {
467
467
  this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
468
468
  },
@@ -474,92 +474,92 @@ Je.prototype = {
474
474
  return this._names.indexOf(e) >= 0;
475
475
  }
476
476
  };
477
+ function Je(e, t) {
478
+ for (var n = Ke(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
479
+ }
477
480
  function Ye(e, t) {
478
- for (var n = qe(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
481
+ for (var n = Ke(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
479
482
  }
480
- function Xe(e, t) {
481
- for (var n = qe(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
483
+ function Xe(e) {
484
+ return function() {
485
+ Je(this, e);
486
+ };
482
487
  }
483
488
  function Ze(e) {
484
489
  return function() {
485
490
  Ye(this, e);
486
491
  };
487
492
  }
488
- function Qe(e) {
493
+ function Qe(e, t) {
489
494
  return function() {
490
- Xe(this, e);
495
+ (t.apply(this, arguments) ? Je : Ye)(this, e);
491
496
  };
492
497
  }
493
498
  function $e(e, t) {
494
- return function() {
495
- (t.apply(this, arguments) ? Ye : Xe)(this, e);
496
- };
497
- }
498
- function et(e, t) {
499
- var n = Ke(e + "");
499
+ var n = Ge(e + "");
500
500
  if (arguments.length < 2) {
501
- for (var r = qe(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
501
+ for (var r = Ke(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
502
502
  return !0;
503
503
  }
504
- return this.each((typeof t == "function" ? $e : t ? Ze : Qe)(n, t));
504
+ return this.each((typeof t == "function" ? Qe : t ? Xe : Ze)(n, t));
505
505
  }
506
506
  //#endregion
507
507
  //#region node_modules/d3-selection/src/selection/text.js
508
- function tt() {
508
+ function et() {
509
509
  this.textContent = "";
510
510
  }
511
- function nt(e) {
511
+ function tt(e) {
512
512
  return function() {
513
513
  this.textContent = e;
514
514
  };
515
515
  }
516
- function rt(e) {
516
+ function nt(e) {
517
517
  return function() {
518
518
  var t = e.apply(this, arguments);
519
519
  this.textContent = t ?? "";
520
520
  };
521
521
  }
522
- function it(e) {
523
- return arguments.length ? this.each(e == null ? tt : (typeof e == "function" ? rt : nt)(e)) : this.node().textContent;
522
+ function rt(e) {
523
+ return arguments.length ? this.each(e == null ? et : (typeof e == "function" ? nt : tt)(e)) : this.node().textContent;
524
524
  }
525
525
  //#endregion
526
526
  //#region node_modules/d3-selection/src/selection/html.js
527
- function at() {
527
+ function it() {
528
528
  this.innerHTML = "";
529
529
  }
530
- function ot(e) {
530
+ function at(e) {
531
531
  return function() {
532
532
  this.innerHTML = e;
533
533
  };
534
534
  }
535
- function st(e) {
535
+ function ot(e) {
536
536
  return function() {
537
537
  var t = e.apply(this, arguments);
538
538
  this.innerHTML = t ?? "";
539
539
  };
540
540
  }
541
- function ct(e) {
542
- return arguments.length ? this.each(e == null ? at : (typeof e == "function" ? st : ot)(e)) : this.node().innerHTML;
541
+ function st(e) {
542
+ return arguments.length ? this.each(e == null ? it : (typeof e == "function" ? ot : at)(e)) : this.node().innerHTML;
543
543
  }
544
544
  //#endregion
545
545
  //#region node_modules/d3-selection/src/selection/raise.js
546
- function lt() {
546
+ function ct() {
547
547
  this.nextSibling && this.parentNode.appendChild(this);
548
548
  }
549
- function ut() {
550
- return this.each(lt);
549
+ function lt() {
550
+ return this.each(ct);
551
551
  }
552
552
  //#endregion
553
553
  //#region node_modules/d3-selection/src/selection/lower.js
554
- function dt() {
554
+ function ut() {
555
555
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
556
556
  }
557
- function ft() {
558
- return this.each(dt);
557
+ function dt() {
558
+ return this.each(ut);
559
559
  }
560
560
  //#endregion
561
561
  //#region node_modules/d3-selection/src/selection/append.js
562
- function pt(e) {
562
+ function ft(e) {
563
563
  var t = typeof e == "function" ? e : N(e);
564
564
  return this.select(function() {
565
565
  return this.appendChild(t.apply(this, arguments));
@@ -567,50 +567,50 @@ function pt(e) {
567
567
  }
568
568
  //#endregion
569
569
  //#region node_modules/d3-selection/src/selection/insert.js
570
- function mt() {
570
+ function pt() {
571
571
  return null;
572
572
  }
573
- function ht(e, t) {
574
- var n = typeof e == "function" ? e : N(e), r = t == null ? mt : typeof t == "function" ? t : F(t);
573
+ function mt(e, t) {
574
+ var n = typeof e == "function" ? e : N(e), r = t == null ? pt : typeof t == "function" ? t : F(t);
575
575
  return this.select(function() {
576
576
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
577
577
  });
578
578
  }
579
579
  //#endregion
580
580
  //#region node_modules/d3-selection/src/selection/remove.js
581
- function gt() {
581
+ function ht() {
582
582
  var e = this.parentNode;
583
583
  e && e.removeChild(this);
584
584
  }
585
- function _t() {
586
- return this.each(gt);
585
+ function gt() {
586
+ return this.each(ht);
587
587
  }
588
588
  //#endregion
589
589
  //#region node_modules/d3-selection/src/selection/clone.js
590
- function vt() {
590
+ function _t() {
591
591
  var e = this.cloneNode(!1), t = this.parentNode;
592
592
  return t ? t.insertBefore(e, this.nextSibling) : e;
593
593
  }
594
- function yt() {
594
+ function vt() {
595
595
  var e = this.cloneNode(!0), t = this.parentNode;
596
596
  return t ? t.insertBefore(e, this.nextSibling) : e;
597
597
  }
598
- function bt(e) {
599
- return this.select(e ? yt : vt);
598
+ function yt(e) {
599
+ return this.select(e ? vt : _t);
600
600
  }
601
601
  //#endregion
602
602
  //#region node_modules/d3-selection/src/selection/datum.js
603
- function xt(e) {
603
+ function bt(e) {
604
604
  return arguments.length ? this.property("__data__", e) : this.node().__data__;
605
605
  }
606
606
  //#endregion
607
607
  //#region node_modules/d3-selection/src/selection/on.js
608
- function St(e) {
608
+ function xt(e) {
609
609
  return function(t) {
610
610
  e.call(this, t, this.__data__);
611
611
  };
612
612
  }
613
- function Ct(e) {
613
+ function St(e) {
614
614
  return e.trim().split(/^|\s+/).map(function(e) {
615
615
  var t = "", n = e.indexOf(".");
616
616
  return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
@@ -619,7 +619,7 @@ function Ct(e) {
619
619
  };
620
620
  });
621
621
  }
622
- function wt(e) {
622
+ function Ct(e) {
623
623
  return function() {
624
624
  var t = this.__on;
625
625
  if (t) {
@@ -628,9 +628,9 @@ function wt(e) {
628
628
  }
629
629
  };
630
630
  }
631
- function Tt(e, t, n) {
631
+ function wt(e, t, n) {
632
632
  return function() {
633
- var r = this.__on, i, a = St(t);
633
+ var r = this.__on, i, a = xt(t);
634
634
  if (r) {
635
635
  for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
636
636
  this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
@@ -646,8 +646,8 @@ function Tt(e, t, n) {
646
646
  }, r ? r.push(i) : this.__on = [i];
647
647
  };
648
648
  }
649
- function Et(e, t, n) {
650
- var r = Ct(e + ""), i, a = r.length, o;
649
+ function Tt(e, t, n) {
650
+ var r = St(e + ""), i, a = r.length, o;
651
651
  if (arguments.length < 2) {
652
652
  var s = this.node().__on;
653
653
  if (s) {
@@ -655,99 +655,99 @@ function Et(e, t, n) {
655
655
  }
656
656
  return;
657
657
  }
658
- for (s = t ? Tt : wt, i = 0; i < a; ++i) this.each(s(r[i], t, n));
658
+ for (s = t ? wt : Ct, i = 0; i < a; ++i) this.each(s(r[i], t, n));
659
659
  return this;
660
660
  }
661
661
  //#endregion
662
662
  //#region node_modules/d3-selection/src/selection/dispatch.js
663
- function Dt(e, t, n) {
664
- var r = Ie(e), i = r.CustomEvent;
663
+ function Et(e, t, n) {
664
+ var r = Fe(e), i = r.CustomEvent;
665
665
  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);
666
666
  }
667
- function Ot(e, t) {
667
+ function Dt(e, t) {
668
668
  return function() {
669
- return Dt(this, e, t);
669
+ return Et(this, e, t);
670
670
  };
671
671
  }
672
- function kt(e, t) {
672
+ function Ot(e, t) {
673
673
  return function() {
674
- return Dt(this, e, t.apply(this, arguments));
674
+ return Et(this, e, t.apply(this, arguments));
675
675
  };
676
676
  }
677
- function At(e, t) {
678
- return this.each((typeof t == "function" ? kt : Ot)(e, t));
677
+ function kt(e, t) {
678
+ return this.each((typeof t == "function" ? Ot : Dt)(e, t));
679
679
  }
680
680
  //#endregion
681
681
  //#region node_modules/d3-selection/src/selection/iterator.js
682
- function* jt() {
682
+ function* At() {
683
683
  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);
684
684
  }
685
685
  //#endregion
686
686
  //#region node_modules/d3-selection/src/selection/index.js
687
- var Mt = [null];
688
- function G(e, t) {
687
+ var jt = [null];
688
+ function K(e, t) {
689
689
  this._groups = e, this._parents = t;
690
690
  }
691
- function Nt() {
692
- return new G([[document.documentElement]], Mt);
691
+ function Mt() {
692
+ return new K([[document.documentElement]], jt);
693
693
  }
694
- function Pt() {
694
+ function Nt() {
695
695
  return this;
696
696
  }
697
- G.prototype = Nt.prototype = {
698
- constructor: G,
697
+ K.prototype = Mt.prototype = {
698
+ constructor: K,
699
699
  select: I,
700
700
  selectAll: B,
701
- selectChild: ne,
702
- selectChildren: oe,
703
- filter: se,
704
- data: he,
705
- enter: le,
706
- exit: _e,
707
- join: ve,
708
- merge: ye,
709
- selection: Pt,
710
- order: be,
711
- sort: xe,
712
- call: Ce,
713
- nodes: we,
714
- node: Te,
715
- size: Ee,
716
- empty: De,
717
- each: Oe,
718
- attr: Fe,
719
- style: Be,
720
- property: Ge,
721
- classed: et,
722
- text: it,
723
- html: ct,
724
- raise: ut,
725
- lower: ft,
726
- append: pt,
727
- insert: ht,
728
- remove: _t,
729
- clone: bt,
730
- datum: xt,
731
- on: Et,
732
- dispatch: At,
733
- [Symbol.iterator]: jt
701
+ selectChild: te,
702
+ selectChildren: ae,
703
+ filter: oe,
704
+ data: me,
705
+ enter: ce,
706
+ exit: ge,
707
+ join: _e,
708
+ merge: ve,
709
+ selection: Nt,
710
+ order: ye,
711
+ sort: be,
712
+ call: Se,
713
+ nodes: Ce,
714
+ node: we,
715
+ size: Te,
716
+ empty: Ee,
717
+ each: De,
718
+ attr: Pe,
719
+ style: ze,
720
+ property: We,
721
+ classed: $e,
722
+ text: rt,
723
+ html: st,
724
+ raise: lt,
725
+ lower: dt,
726
+ append: ft,
727
+ insert: mt,
728
+ remove: gt,
729
+ clone: yt,
730
+ datum: bt,
731
+ on: Tt,
732
+ dispatch: kt,
733
+ [Symbol.iterator]: At
734
734
  };
735
735
  //#endregion
736
736
  //#region node_modules/d3-selection/src/select.js
737
- function K(e) {
738
- return typeof e == "string" ? new G([[document.querySelector(e)]], [document.documentElement]) : new G([[e]], Mt);
737
+ function q(e) {
738
+ return typeof e == "string" ? new K([[document.querySelector(e)]], [document.documentElement]) : new K([[e]], jt);
739
739
  }
740
740
  //#endregion
741
741
  //#region node_modules/d3-selection/src/sourceEvent.js
742
- function Ft(e) {
742
+ function Pt(e) {
743
743
  let t;
744
744
  for (; t = e.sourceEvent;) e = t;
745
745
  return e;
746
746
  }
747
747
  //#endregion
748
748
  //#region node_modules/d3-selection/src/pointer.js
749
- function It(e, t) {
750
- if (e = Ft(e), t === void 0 && (t = e.currentTarget), t) {
749
+ function Ft(e, t) {
750
+ if (e = Pt(e), t === void 0 && (t = e.currentTarget), t) {
751
751
  var n = t.ownerSVGElement || t;
752
752
  if (n.createSVGPoint) {
753
753
  var r = n.createSVGPoint();
@@ -762,34 +762,34 @@ function It(e, t) {
762
762
  }
763
763
  //#endregion
764
764
  //#region node_modules/d3-drag/src/noevent.js
765
- var Lt = { passive: !1 }, Rt = {
765
+ var It = { passive: !1 }, Lt = {
766
766
  capture: !0,
767
767
  passive: !1
768
768
  };
769
- function zt(e) {
769
+ function Rt(e) {
770
770
  e.stopImmediatePropagation();
771
771
  }
772
- function Bt(e) {
772
+ function zt(e) {
773
773
  e.preventDefault(), e.stopImmediatePropagation();
774
774
  }
775
775
  //#endregion
776
776
  //#region node_modules/d3-drag/src/nodrag.js
777
- function Vt(e) {
778
- var t = e.document.documentElement, n = K(e).on("dragstart.drag", Bt, Rt);
779
- "onselectstart" in t ? n.on("selectstart.drag", Bt, Rt) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
777
+ function Bt(e) {
778
+ var t = e.document.documentElement, n = q(e).on("dragstart.drag", zt, Lt);
779
+ "onselectstart" in t ? n.on("selectstart.drag", zt, Lt) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
780
780
  }
781
- function Ht(e, t) {
782
- var n = e.document.documentElement, r = K(e).on("dragstart.drag", null);
783
- t && (r.on("click.drag", Bt, Rt), setTimeout(function() {
781
+ function Vt(e, t) {
782
+ var n = e.document.documentElement, r = q(e).on("dragstart.drag", null);
783
+ t && (r.on("click.drag", zt, Lt), setTimeout(function() {
784
784
  r.on("click.drag", null);
785
785
  }, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
786
786
  }
787
787
  //#endregion
788
788
  //#region node_modules/d3-drag/src/constant.js
789
- var Ut = (e) => () => e;
789
+ var Ht = (e) => () => e;
790
790
  //#endregion
791
791
  //#region node_modules/d3-drag/src/event.js
792
- function Wt(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
792
+ function Ut(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
793
793
  Object.defineProperties(this, {
794
794
  type: {
795
795
  value: e,
@@ -844,67 +844,67 @@ function Wt(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a
844
844
  _: { value: u }
845
845
  });
846
846
  }
847
- Wt.prototype.on = function() {
847
+ Ut.prototype.on = function() {
848
848
  var e = this._.on.apply(this._, arguments);
849
849
  return e === this._ ? this : e;
850
850
  };
851
851
  //#endregion
852
852
  //#region node_modules/d3-drag/src/drag.js
853
- function Gt(e) {
853
+ function Wt(e) {
854
854
  return !e.ctrlKey && !e.button;
855
855
  }
856
- function Kt() {
856
+ function Gt() {
857
857
  return this.parentNode;
858
858
  }
859
- function qt(e, t) {
859
+ function Kt(e, t) {
860
860
  return t ?? {
861
861
  x: e.x,
862
862
  y: e.y
863
863
  };
864
864
  }
865
- function Jt() {
865
+ function qt() {
866
866
  return navigator.maxTouchPoints || "ontouchstart" in this;
867
867
  }
868
- function Yt() {
869
- var e = Gt, t = Kt, n = qt, r = Jt, i = {}, a = w("start", "drag", "end"), o = 0, s, c, l, u, d = 0;
868
+ function Jt() {
869
+ var e = Wt, t = Gt, n = Kt, r = qt, i = {}, a = w("start", "drag", "end"), o = 0, s, c, l, u, d = 0;
870
870
  function f(e) {
871
- e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _, Lt).on("touchend.drag touchcancel.drag", v).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
871
+ e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _, It).on("touchend.drag touchcancel.drag", v).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
872
872
  }
873
873
  function p(n, r) {
874
874
  if (!(u || !e.call(this, n, r))) {
875
875
  var i = y(this, t.call(this, n, r), n, r, "mouse");
876
- i && (K(n.view).on("mousemove.drag", m, Rt).on("mouseup.drag", h, Rt), Vt(n.view), zt(n), l = !1, s = n.clientX, c = n.clientY, i("start", n));
876
+ i && (q(n.view).on("mousemove.drag", m, Lt).on("mouseup.drag", h, Lt), Bt(n.view), Rt(n), l = !1, s = n.clientX, c = n.clientY, i("start", n));
877
877
  }
878
878
  }
879
879
  function m(e) {
880
- if (Bt(e), !l) {
880
+ if (zt(e), !l) {
881
881
  var t = e.clientX - s, n = e.clientY - c;
882
882
  l = t * t + n * n > d;
883
883
  }
884
884
  i.mouse("drag", e);
885
885
  }
886
886
  function h(e) {
887
- K(e.view).on("mousemove.drag mouseup.drag", null), Ht(e.view, l), Bt(e), i.mouse("end", e);
887
+ q(e.view).on("mousemove.drag mouseup.drag", null), Vt(e.view, l), zt(e), i.mouse("end", e);
888
888
  }
889
889
  function g(n, r) {
890
890
  if (e.call(this, n, r)) {
891
891
  var i = n.changedTouches, a = t.call(this, n, r), o = i.length, s, c;
892
- for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (zt(n), c("start", n, i[s]));
892
+ for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (Rt(n), c("start", n, i[s]));
893
893
  }
894
894
  }
895
895
  function _(e) {
896
896
  var t = e.changedTouches, n = t.length, r, a;
897
- for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (Bt(e), a("drag", e, t[r]));
897
+ for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (zt(e), a("drag", e, t[r]));
898
898
  }
899
899
  function v(e) {
900
900
  var t = e.changedTouches, n = t.length, r, a;
901
901
  for (u && clearTimeout(u), u = setTimeout(function() {
902
902
  u = null;
903
- }, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (zt(e), a("end", e, t[r]));
903
+ }, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (Rt(e), a("end", e, t[r]));
904
904
  }
905
905
  function y(e, t, r, s, c, l) {
906
- var u = a.copy(), d = It(l || r, t), p, m, h;
907
- if ((h = n.call(e, new Wt("beforestart", {
906
+ var u = a.copy(), d = Ft(l || r, t), p, m, h;
907
+ if ((h = n.call(e, new Ut("beforestart", {
908
908
  sourceEvent: r,
909
909
  target: f,
910
910
  identifier: c,
@@ -922,10 +922,10 @@ function Yt() {
922
922
  break;
923
923
  case "end": delete i[c], --o;
924
924
  case "drag":
925
- d = It(l || a, t), _ = o;
925
+ d = Ft(l || a, t), _ = o;
926
926
  break;
927
927
  }
928
- u.call(r, e, new Wt(r, {
928
+ u.call(r, e, new Ut(r, {
929
929
  sourceEvent: a,
930
930
  subject: h,
931
931
  target: f,
@@ -940,13 +940,13 @@ function Yt() {
940
940
  };
941
941
  }
942
942
  return f.filter = function(t) {
943
- return arguments.length ? (e = typeof t == "function" ? t : Ut(!!t), f) : e;
943
+ return arguments.length ? (e = typeof t == "function" ? t : Ht(!!t), f) : e;
944
944
  }, f.container = function(e) {
945
- return arguments.length ? (t = typeof e == "function" ? e : Ut(e), f) : t;
945
+ return arguments.length ? (t = typeof e == "function" ? e : Ht(e), f) : t;
946
946
  }, f.subject = function(e) {
947
- return arguments.length ? (n = typeof e == "function" ? e : Ut(e), f) : n;
947
+ return arguments.length ? (n = typeof e == "function" ? e : Ht(e), f) : n;
948
948
  }, f.touchable = function(e) {
949
- return arguments.length ? (r = typeof e == "function" ? e : Ut(!!e), f) : r;
949
+ return arguments.length ? (r = typeof e == "function" ? e : Ht(!!e), f) : r;
950
950
  }, f.on = function() {
951
951
  var e = a.on.apply(a, arguments);
952
952
  return e === a ? f : e;
@@ -956,18 +956,18 @@ function Yt() {
956
956
  }
957
957
  //#endregion
958
958
  //#region node_modules/d3-color/src/define.js
959
- function Xt(e, t, n) {
959
+ function Yt(e, t, n) {
960
960
  e.prototype = t.prototype = n, n.constructor = e;
961
961
  }
962
- function Zt(e, t) {
962
+ function Xt(e, t) {
963
963
  var n = Object.create(e.prototype);
964
964
  for (var r in t) n[r] = t[r];
965
965
  return n;
966
966
  }
967
967
  //#endregion
968
968
  //#region node_modules/d3-color/src/color.js
969
- function Qt() {}
970
- var $t = .7, en = 1 / $t, tn = "\\s*([+-]?\\d+)\\s*", nn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", rn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", an = /^#([0-9a-f]{3,8})$/, on = RegExp(`^rgb\\(${tn},${tn},${tn}\\)$`), sn = RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`), cn = RegExp(`^rgba\\(${tn},${tn},${tn},${nn}\\)$`), ln = RegExp(`^rgba\\(${rn},${rn},${rn},${nn}\\)$`), un = RegExp(`^hsl\\(${nn},${rn},${rn}\\)$`), dn = RegExp(`^hsla\\(${nn},${rn},${rn},${nn}\\)$`), fn = {
969
+ function Zt() {}
970
+ var Qt = .7, $t = 1 / Qt, en = "\\s*([+-]?\\d+)\\s*", tn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", nn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", rn = /^#([0-9a-f]{3,8})$/, an = RegExp(`^rgb\\(${en},${en},${en}\\)$`), on = RegExp(`^rgb\\(${nn},${nn},${nn}\\)$`), sn = RegExp(`^rgba\\(${en},${en},${en},${tn}\\)$`), cn = RegExp(`^rgba\\(${nn},${nn},${nn},${tn}\\)$`), ln = RegExp(`^hsl\\(${tn},${nn},${nn}\\)$`), un = RegExp(`^hsla\\(${tn},${nn},${nn},${tn}\\)$`), dn = {
971
971
  aliceblue: 15792383,
972
972
  antiquewhite: 16444375,
973
973
  aqua: 65535,
@@ -1117,170 +1117,170 @@ var $t = .7, en = 1 / $t, tn = "\\s*([+-]?\\d+)\\s*", nn = "\\s*([+-]?(?:\\d*\\.
1117
1117
  yellow: 16776960,
1118
1118
  yellowgreen: 10145074
1119
1119
  };
1120
- Xt(Qt, _n, {
1120
+ Yt(Zt, gn, {
1121
1121
  copy(e) {
1122
1122
  return Object.assign(new this.constructor(), this, e);
1123
1123
  },
1124
1124
  displayable() {
1125
1125
  return this.rgb().displayable();
1126
1126
  },
1127
- hex: pn,
1128
- formatHex: pn,
1129
- formatHex8: mn,
1130
- formatHsl: hn,
1131
- formatRgb: gn,
1132
- toString: gn
1127
+ hex: fn,
1128
+ formatHex: fn,
1129
+ formatHex8: pn,
1130
+ formatHsl: mn,
1131
+ formatRgb: hn,
1132
+ toString: hn
1133
1133
  });
1134
- function pn() {
1134
+ function fn() {
1135
1135
  return this.rgb().formatHex();
1136
1136
  }
1137
- function mn() {
1137
+ function pn() {
1138
1138
  return this.rgb().formatHex8();
1139
1139
  }
1140
- function hn() {
1141
- return kn(this).formatHsl();
1140
+ function mn() {
1141
+ return On(this).formatHsl();
1142
1142
  }
1143
- function gn() {
1143
+ function hn() {
1144
1144
  return this.rgb().formatRgb();
1145
1145
  }
1146
- function _n(e) {
1146
+ function gn(e) {
1147
1147
  var t, n;
1148
- return e = (e + "").trim().toLowerCase(), (t = an.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? vn(t) : n === 3 ? new q(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? yn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? yn(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 = on.exec(e)) ? new q(t[1], t[2], t[3], 1) : (t = sn.exec(e)) ? new q(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = cn.exec(e)) ? yn(t[1], t[2], t[3], t[4]) : (t = ln.exec(e)) ? yn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = un.exec(e)) ? On(t[1], t[2] / 100, t[3] / 100, 1) : (t = dn.exec(e)) ? On(t[1], t[2] / 100, t[3] / 100, t[4]) : fn.hasOwnProperty(e) ? vn(fn[e]) : e === "transparent" ? new q(NaN, NaN, NaN, 0) : null;
1148
+ return e = (e + "").trim().toLowerCase(), (t = rn.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? _n(t) : n === 3 ? new J(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? vn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? vn(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 = an.exec(e)) ? new J(t[1], t[2], t[3], 1) : (t = on.exec(e)) ? new J(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = sn.exec(e)) ? vn(t[1], t[2], t[3], t[4]) : (t = cn.exec(e)) ? vn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = ln.exec(e)) ? Dn(t[1], t[2] / 100, t[3] / 100, 1) : (t = un.exec(e)) ? Dn(t[1], t[2] / 100, t[3] / 100, t[4]) : dn.hasOwnProperty(e) ? _n(dn[e]) : e === "transparent" ? new J(NaN, NaN, NaN, 0) : null;
1149
1149
  }
1150
- function vn(e) {
1151
- return new q(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1150
+ function _n(e) {
1151
+ return new J(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
1152
1152
  }
1153
- function yn(e, t, n, r) {
1154
- return r <= 0 && (e = t = n = NaN), new q(e, t, n, r);
1153
+ function vn(e, t, n, r) {
1154
+ return r <= 0 && (e = t = n = NaN), new J(e, t, n, r);
1155
1155
  }
1156
- function bn(e) {
1157
- return e instanceof Qt || (e = _n(e)), e ? (e = e.rgb(), new q(e.r, e.g, e.b, e.opacity)) : new q();
1156
+ function yn(e) {
1157
+ return e instanceof Zt || (e = gn(e)), e ? (e = e.rgb(), new J(e.r, e.g, e.b, e.opacity)) : new J();
1158
1158
  }
1159
- function xn(e, t, n, r) {
1160
- return arguments.length === 1 ? bn(e) : new q(e, t, n, r ?? 1);
1159
+ function bn(e, t, n, r) {
1160
+ return arguments.length === 1 ? yn(e) : new J(e, t, n, r ?? 1);
1161
1161
  }
1162
- function q(e, t, n, r) {
1162
+ function J(e, t, n, r) {
1163
1163
  this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
1164
1164
  }
1165
- Xt(q, xn, Zt(Qt, {
1165
+ Yt(J, bn, Xt(Zt, {
1166
1166
  brighter(e) {
1167
- return e = e == null ? en : en ** +e, new q(this.r * e, this.g * e, this.b * e, this.opacity);
1167
+ return e = e == null ? $t : $t ** +e, new J(this.r * e, this.g * e, this.b * e, this.opacity);
1168
1168
  },
1169
1169
  darker(e) {
1170
- return e = e == null ? $t : $t ** +e, new q(this.r * e, this.g * e, this.b * e, this.opacity);
1170
+ return e = e == null ? Qt : Qt ** +e, new J(this.r * e, this.g * e, this.b * e, this.opacity);
1171
1171
  },
1172
1172
  rgb() {
1173
1173
  return this;
1174
1174
  },
1175
1175
  clamp() {
1176
- return new q(En(this.r), En(this.g), En(this.b), Tn(this.opacity));
1176
+ return new J(Tn(this.r), Tn(this.g), Tn(this.b), wn(this.opacity));
1177
1177
  },
1178
1178
  displayable() {
1179
1179
  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;
1180
1180
  },
1181
- hex: Sn,
1182
- formatHex: Sn,
1183
- formatHex8: Cn,
1184
- formatRgb: wn,
1185
- toString: wn
1181
+ hex: xn,
1182
+ formatHex: xn,
1183
+ formatHex8: Sn,
1184
+ formatRgb: Cn,
1185
+ toString: Cn
1186
1186
  }));
1187
+ function xn() {
1188
+ return `#${En(this.r)}${En(this.g)}${En(this.b)}`;
1189
+ }
1187
1190
  function Sn() {
1188
- return `#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}`;
1191
+ return `#${En(this.r)}${En(this.g)}${En(this.b)}${En((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1189
1192
  }
1190
1193
  function Cn() {
1191
- return `#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}${Dn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1194
+ let e = wn(this.opacity);
1195
+ return `${e === 1 ? "rgb(" : "rgba("}${Tn(this.r)}, ${Tn(this.g)}, ${Tn(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1192
1196
  }
1193
- function wn() {
1194
- let e = Tn(this.opacity);
1195
- return `${e === 1 ? "rgb(" : "rgba("}${En(this.r)}, ${En(this.g)}, ${En(this.b)}${e === 1 ? ")" : `, ${e})`}`;
1196
- }
1197
- function Tn(e) {
1197
+ function wn(e) {
1198
1198
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
1199
1199
  }
1200
- function En(e) {
1200
+ function Tn(e) {
1201
1201
  return Math.max(0, Math.min(255, Math.round(e) || 0));
1202
1202
  }
1203
- function Dn(e) {
1204
- return e = En(e), (e < 16 ? "0" : "") + e.toString(16);
1203
+ function En(e) {
1204
+ return e = Tn(e), (e < 16 ? "0" : "") + e.toString(16);
1205
1205
  }
1206
- function On(e, t, n, r) {
1207
- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new jn(e, t, n, r);
1206
+ function Dn(e, t, n, r) {
1207
+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new An(e, t, n, r);
1208
1208
  }
1209
- function kn(e) {
1210
- if (e instanceof jn) return new jn(e.h, e.s, e.l, e.opacity);
1211
- if (e instanceof Qt || (e = _n(e)), !e) return new jn();
1212
- if (e instanceof jn) return e;
1209
+ function On(e) {
1210
+ if (e instanceof An) return new An(e.h, e.s, e.l, e.opacity);
1211
+ if (e instanceof Zt || (e = gn(e)), !e) return new An();
1212
+ if (e instanceof An) return e;
1213
1213
  e = e.rgb();
1214
1214
  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;
1215
- 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 jn(o, s, c, e.opacity);
1215
+ 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 An(o, s, c, e.opacity);
1216
1216
  }
1217
- function An(e, t, n, r) {
1218
- return arguments.length === 1 ? kn(e) : new jn(e, t, n, r ?? 1);
1217
+ function kn(e, t, n, r) {
1218
+ return arguments.length === 1 ? On(e) : new An(e, t, n, r ?? 1);
1219
1219
  }
1220
- function jn(e, t, n, r) {
1220
+ function An(e, t, n, r) {
1221
1221
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
1222
1222
  }
1223
- Xt(jn, An, Zt(Qt, {
1223
+ Yt(An, kn, Xt(Zt, {
1224
1224
  brighter(e) {
1225
- return e = e == null ? en : en ** +e, new jn(this.h, this.s, this.l * e, this.opacity);
1225
+ return e = e == null ? $t : $t ** +e, new An(this.h, this.s, this.l * e, this.opacity);
1226
1226
  },
1227
1227
  darker(e) {
1228
- return e = e == null ? $t : $t ** +e, new jn(this.h, this.s, this.l * e, this.opacity);
1228
+ return e = e == null ? Qt : Qt ** +e, new An(this.h, this.s, this.l * e, this.opacity);
1229
1229
  },
1230
1230
  rgb() {
1231
1231
  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;
1232
- return new q(Pn(e >= 240 ? e - 240 : e + 120, i, r), Pn(e, i, r), Pn(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1232
+ return new J(Nn(e >= 240 ? e - 240 : e + 120, i, r), Nn(e, i, r), Nn(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
1233
1233
  },
1234
1234
  clamp() {
1235
- return new jn(Mn(this.h), Nn(this.s), Nn(this.l), Tn(this.opacity));
1235
+ return new An(jn(this.h), Mn(this.s), Mn(this.l), wn(this.opacity));
1236
1236
  },
1237
1237
  displayable() {
1238
1238
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1239
1239
  },
1240
1240
  formatHsl() {
1241
- let e = Tn(this.opacity);
1242
- return `${e === 1 ? "hsl(" : "hsla("}${Mn(this.h)}, ${Nn(this.s) * 100}%, ${Nn(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1241
+ let e = wn(this.opacity);
1242
+ return `${e === 1 ? "hsl(" : "hsla("}${jn(this.h)}, ${Mn(this.s) * 100}%, ${Mn(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
1243
1243
  }
1244
1244
  }));
1245
- function Mn(e) {
1245
+ function jn(e) {
1246
1246
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
1247
1247
  }
1248
- function Nn(e) {
1248
+ function Mn(e) {
1249
1249
  return Math.max(0, Math.min(1, e || 0));
1250
1250
  }
1251
- function Pn(e, t, n) {
1251
+ function Nn(e, t, n) {
1252
1252
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
1253
1253
  }
1254
1254
  //#endregion
1255
1255
  //#region node_modules/d3-interpolate/src/constant.js
1256
- var Fn = (e) => () => e;
1256
+ var Pn = (e) => () => e;
1257
1257
  //#endregion
1258
1258
  //#region node_modules/d3-interpolate/src/color.js
1259
- function In(e, t) {
1259
+ function Fn(e, t) {
1260
1260
  return function(n) {
1261
1261
  return e + n * t;
1262
1262
  };
1263
1263
  }
1264
- function Ln(e, t, n) {
1264
+ function In(e, t, n) {
1265
1265
  return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
1266
1266
  return (e + r * t) ** +n;
1267
1267
  };
1268
1268
  }
1269
- function Rn(e) {
1270
- return (e = +e) == 1 ? zn : function(t, n) {
1271
- return n - t ? Ln(t, n, e) : Fn(isNaN(t) ? n : t);
1269
+ function Ln(e) {
1270
+ return (e = +e) == 1 ? Rn : function(t, n) {
1271
+ return n - t ? In(t, n, e) : Pn(isNaN(t) ? n : t);
1272
1272
  };
1273
1273
  }
1274
- function zn(e, t) {
1274
+ function Rn(e, t) {
1275
1275
  var n = t - e;
1276
- return n ? In(e, n) : Fn(isNaN(e) ? t : e);
1276
+ return n ? Fn(e, n) : Pn(isNaN(e) ? t : e);
1277
1277
  }
1278
1278
  //#endregion
1279
1279
  //#region node_modules/d3-interpolate/src/rgb.js
1280
- var Bn = (function e(t) {
1281
- var n = Rn(t);
1280
+ var zn = (function e(t) {
1281
+ var n = Ln(t);
1282
1282
  function r(e, t) {
1283
- var r = n((e = xn(e)).r, (t = xn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = zn(e.opacity, t.opacity);
1283
+ var r = n((e = bn(e)).r, (t = bn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = Rn(e.opacity, t.opacity);
1284
1284
  return function(t) {
1285
1285
  return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
1286
1286
  };
@@ -1289,7 +1289,7 @@ var Bn = (function e(t) {
1289
1289
  })(1);
1290
1290
  //#endregion
1291
1291
  //#region node_modules/d3-interpolate/src/numberArray.js
1292
- function Vn(e, t) {
1292
+ function Bn(e, t) {
1293
1293
  t ||= [];
1294
1294
  var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
1295
1295
  return function(a) {
@@ -1297,14 +1297,14 @@ function Vn(e, t) {
1297
1297
  return r;
1298
1298
  };
1299
1299
  }
1300
- function Hn(e) {
1300
+ function Vn(e) {
1301
1301
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
1302
1302
  }
1303
1303
  //#endregion
1304
1304
  //#region node_modules/d3-interpolate/src/array.js
1305
- function Un(e, t) {
1305
+ function Hn(e, t) {
1306
1306
  var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;
1307
- for (o = 0; o < r; ++o) i[o] = Qn(e[o], t[o]);
1307
+ for (o = 0; o < r; ++o) i[o] = Zn(e[o], t[o]);
1308
1308
  for (; o < n; ++o) a[o] = t[o];
1309
1309
  return function(e) {
1310
1310
  for (o = 0; o < r; ++o) a[o] = i[o](e);
@@ -1313,7 +1313,7 @@ function Un(e, t) {
1313
1313
  }
1314
1314
  //#endregion
1315
1315
  //#region node_modules/d3-interpolate/src/date.js
1316
- function Wn(e, t) {
1316
+ function Un(e, t) {
1317
1317
  var n = /* @__PURE__ */ new Date();
1318
1318
  return e = +e, t = +t, function(r) {
1319
1319
  return n.setTime(e * (1 - r) + t * r), n;
@@ -1321,16 +1321,16 @@ function Wn(e, t) {
1321
1321
  }
1322
1322
  //#endregion
1323
1323
  //#region node_modules/d3-interpolate/src/number.js
1324
- function Gn(e, t) {
1324
+ function Wn(e, t) {
1325
1325
  return e = +e, t = +t, function(n) {
1326
1326
  return e * (1 - n) + t * n;
1327
1327
  };
1328
1328
  }
1329
1329
  //#endregion
1330
1330
  //#region node_modules/d3-interpolate/src/object.js
1331
- function Kn(e, t) {
1331
+ function Gn(e, t) {
1332
1332
  var n = {}, r = {}, i;
1333
- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = Qn(e[i], t[i]) : r[i] = t[i];
1333
+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = Zn(e[i], t[i]) : r[i] = t[i];
1334
1334
  return function(e) {
1335
1335
  for (i in n) r[i] = n[i](e);
1336
1336
  return r;
@@ -1338,37 +1338,37 @@ function Kn(e, t) {
1338
1338
  }
1339
1339
  //#endregion
1340
1340
  //#region node_modules/d3-interpolate/src/string.js
1341
- var qn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Jn = new RegExp(qn.source, "g");
1342
- function Yn(e) {
1341
+ var Kn = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, qn = new RegExp(Kn.source, "g");
1342
+ function Jn(e) {
1343
1343
  return function() {
1344
1344
  return e;
1345
1345
  };
1346
1346
  }
1347
- function Xn(e) {
1347
+ function Yn(e) {
1348
1348
  return function(t) {
1349
1349
  return e(t) + "";
1350
1350
  };
1351
1351
  }
1352
- function Zn(e, t) {
1353
- var n = qn.lastIndex = Jn.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1354
- for (e += "", t += ""; (r = qn.exec(e)) && (i = Jn.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({
1352
+ function Xn(e, t) {
1353
+ var n = Kn.lastIndex = qn.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
1354
+ for (e += "", t += ""; (r = Kn.exec(e)) && (i = qn.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({
1355
1355
  i: o,
1356
- x: Gn(r, i)
1357
- })), n = Jn.lastIndex;
1358
- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Xn(c[0].x) : Yn(t) : (t = c.length, function(e) {
1356
+ x: Wn(r, i)
1357
+ })), n = qn.lastIndex;
1358
+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Yn(c[0].x) : Jn(t) : (t = c.length, function(e) {
1359
1359
  for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
1360
1360
  return s.join("");
1361
1361
  });
1362
1362
  }
1363
1363
  //#endregion
1364
1364
  //#region node_modules/d3-interpolate/src/value.js
1365
- function Qn(e, t) {
1365
+ function Zn(e, t) {
1366
1366
  var n = typeof t, r;
1367
- return t == null || n === "boolean" ? Fn(t) : (n === "number" ? Gn : n === "string" ? (r = _n(t)) ? (t = r, Bn) : Zn : t instanceof _n ? Bn : t instanceof Date ? Wn : Hn(t) ? Vn : Array.isArray(t) ? Un : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Kn : Gn)(e, t);
1367
+ return t == null || n === "boolean" ? Pn(t) : (n === "number" ? Wn : n === "string" ? (r = gn(t)) ? (t = r, zn) : Xn : t instanceof gn ? zn : t instanceof Date ? Un : Vn(t) ? Bn : Array.isArray(t) ? Hn : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Gn : Wn)(e, t);
1368
1368
  }
1369
1369
  //#endregion
1370
1370
  //#region node_modules/d3-interpolate/src/transform/decompose.js
1371
- var $n = 180 / Math.PI, er = {
1371
+ var Qn = 180 / Math.PI, $n = {
1372
1372
  translateX: 0,
1373
1373
  translateY: 0,
1374
1374
  rotate: 0,
@@ -1376,30 +1376,30 @@ var $n = 180 / Math.PI, er = {
1376
1376
  scaleX: 1,
1377
1377
  scaleY: 1
1378
1378
  };
1379
- function tr(e, t, n, r, i, a) {
1379
+ function er(e, t, n, r, i, a) {
1380
1380
  var o, s, c;
1381
1381
  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), {
1382
1382
  translateX: i,
1383
1383
  translateY: a,
1384
- rotate: Math.atan2(t, e) * $n,
1385
- skewX: Math.atan(c) * $n,
1384
+ rotate: Math.atan2(t, e) * Qn,
1385
+ skewX: Math.atan(c) * Qn,
1386
1386
  scaleX: o,
1387
1387
  scaleY: s
1388
1388
  };
1389
1389
  }
1390
1390
  //#endregion
1391
1391
  //#region node_modules/d3-interpolate/src/transform/parse.js
1392
- var nr;
1393
- function rr(e) {
1392
+ var tr;
1393
+ function nr(e) {
1394
1394
  let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
1395
- return t.isIdentity ? er : tr(t.a, t.b, t.c, t.d, t.e, t.f);
1395
+ return t.isIdentity ? $n : er(t.a, t.b, t.c, t.d, t.e, t.f);
1396
1396
  }
1397
- function ir(e) {
1398
- return e == null || (nr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), nr.setAttribute("transform", e), !(e = nr.transform.baseVal.consolidate())) ? er : (e = e.matrix, tr(e.a, e.b, e.c, e.d, e.e, e.f));
1397
+ function rr(e) {
1398
+ return e == null || (tr ||= document.createElementNS("http://www.w3.org/2000/svg", "g"), tr.setAttribute("transform", e), !(e = tr.transform.baseVal.consolidate())) ? $n : (e = e.matrix, er(e.a, e.b, e.c, e.d, e.e, e.f));
1399
1399
  }
1400
1400
  //#endregion
1401
1401
  //#region node_modules/d3-interpolate/src/transform/index.js
1402
- function ar(e, t, n, r) {
1402
+ function ir(e, t, n, r) {
1403
1403
  function i(e) {
1404
1404
  return e.length ? e.pop() + " " : "";
1405
1405
  }
@@ -1408,23 +1408,23 @@ function ar(e, t, n, r) {
1408
1408
  var c = o.push("translate(", null, t, null, n);
1409
1409
  s.push({
1410
1410
  i: c - 4,
1411
- x: Gn(e, i)
1411
+ x: Wn(e, i)
1412
1412
  }, {
1413
1413
  i: c - 2,
1414
- x: Gn(r, a)
1414
+ x: Wn(r, a)
1415
1415
  });
1416
1416
  } else (i || a) && o.push("translate(" + i + t + a + n);
1417
1417
  }
1418
1418
  function o(e, t, n, a) {
1419
1419
  e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
1420
1420
  i: n.push(i(n) + "rotate(", null, r) - 2,
1421
- x: Gn(e, t)
1421
+ x: Wn(e, t)
1422
1422
  }));
1423
1423
  }
1424
1424
  function s(e, t, n, a) {
1425
1425
  e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
1426
1426
  i: n.push(i(n) + "skewX(", null, r) - 2,
1427
- x: Gn(e, t)
1427
+ x: Wn(e, t)
1428
1428
  });
1429
1429
  }
1430
1430
  function c(e, t, n, r, a, o) {
@@ -1432,10 +1432,10 @@ function ar(e, t, n, r) {
1432
1432
  var s = a.push(i(a) + "scale(", null, ",", null, ")");
1433
1433
  o.push({
1434
1434
  i: s - 4,
1435
- x: Gn(e, n)
1435
+ x: Wn(e, n)
1436
1436
  }, {
1437
1437
  i: s - 2,
1438
- x: Gn(t, r)
1438
+ x: Wn(t, r)
1439
1439
  });
1440
1440
  } else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
1441
1441
  }
@@ -1447,20 +1447,20 @@ function ar(e, t, n, r) {
1447
1447
  };
1448
1448
  };
1449
1449
  }
1450
- var or = ar(rr, "px, ", "px)", "deg)"), sr = ar(ir, ", ", ")", ")"), cr = 1e-12;
1451
- function lr(e) {
1450
+ var ar = ir(nr, "px, ", "px)", "deg)"), or = ir(rr, ", ", ")", ")"), sr = 1e-12;
1451
+ function cr(e) {
1452
1452
  return ((e = Math.exp(e)) + 1 / e) / 2;
1453
1453
  }
1454
- function ur(e) {
1454
+ function lr(e) {
1455
1455
  return ((e = Math.exp(e)) - 1 / e) / 2;
1456
1456
  }
1457
- function dr(e) {
1457
+ function ur(e) {
1458
1458
  return ((e = Math.exp(2 * e)) - 1) / (e + 1);
1459
1459
  }
1460
- var fr = (function e(t, n, r) {
1460
+ var dr = (function e(t, n, r) {
1461
1461
  function i(e, i) {
1462
1462
  var a = e[0], o = e[1], s = e[2], c = i[0], l = i[1], u = i[2], d = c - a, f = l - o, p = d * d + f * f, m, h;
1463
- if (p < cr) h = Math.log(u / s) / t, m = function(e) {
1463
+ if (p < sr) h = Math.log(u / s) / t, m = function(e) {
1464
1464
  return [
1465
1465
  a + e * d,
1466
1466
  o + e * f,
@@ -1470,11 +1470,11 @@ var fr = (function e(t, n, r) {
1470
1470
  else {
1471
1471
  var g = Math.sqrt(p), _ = (u * u - s * s + r * p) / (2 * s * n * g), v = (u * u - s * s - r * p) / (2 * u * n * g), y = Math.log(Math.sqrt(_ * _ + 1) - _);
1472
1472
  h = (Math.log(Math.sqrt(v * v + 1) - v) - y) / t, m = function(e) {
1473
- var r = e * h, i = lr(y), c = s / (n * g) * (i * dr(t * r + y) - ur(y));
1473
+ var r = e * h, i = cr(y), c = s / (n * g) * (i * ur(t * r + y) - lr(y));
1474
1474
  return [
1475
1475
  a + c * d,
1476
1476
  o + c * f,
1477
- s * i / lr(t * r + y)
1477
+ s * i / cr(t * r + y)
1478
1478
  ];
1479
1479
  };
1480
1480
  }
@@ -1484,77 +1484,77 @@ var fr = (function e(t, n, r) {
1484
1484
  var n = Math.max(.001, +t), r = n * n;
1485
1485
  return e(n, r, r * r);
1486
1486
  }, i;
1487
- })(Math.SQRT2, 2, 4), pr = 0, mr = 0, hr = 0, gr = 1e3, _r, vr, yr = 0, br = 0, xr = 0, Sr = typeof performance == "object" && performance.now ? performance : Date, Cr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1487
+ })(Math.SQRT2, 2, 4), fr = 0, pr = 0, mr = 0, hr = 1e3, gr, _r, vr = 0, yr = 0, br = 0, xr = typeof performance == "object" && performance.now ? performance : Date, Sr = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
1488
1488
  setTimeout(e, 17);
1489
1489
  };
1490
+ function Cr() {
1491
+ return yr ||= (Sr(wr), xr.now() + br);
1492
+ }
1490
1493
  function wr() {
1491
- return br ||= (Cr(Tr), Sr.now() + xr);
1494
+ yr = 0;
1492
1495
  }
1493
1496
  function Tr() {
1494
- br = 0;
1495
- }
1496
- function Er() {
1497
1497
  this._call = this._time = this._next = null;
1498
1498
  }
1499
- Er.prototype = Dr.prototype = {
1500
- constructor: Er,
1499
+ Tr.prototype = Er.prototype = {
1500
+ constructor: Tr,
1501
1501
  restart: function(e, t, n) {
1502
1502
  if (typeof e != "function") throw TypeError("callback is not a function");
1503
- n = (n == null ? wr() : +n) + (t == null ? 0 : +t), !this._next && vr !== this && (vr ? vr._next = this : _r = this, vr = this), this._call = e, this._time = n, Mr();
1503
+ n = (n == null ? Cr() : +n) + (t == null ? 0 : +t), !this._next && _r !== this && (_r ? _r._next = this : gr = this, _r = this), this._call = e, this._time = n, jr();
1504
1504
  },
1505
1505
  stop: function() {
1506
- this._call && (this._call = null, this._time = Infinity, Mr());
1506
+ this._call && (this._call = null, this._time = Infinity, jr());
1507
1507
  }
1508
1508
  };
1509
- function Dr(e, t, n) {
1510
- var r = new Er();
1509
+ function Er(e, t, n) {
1510
+ var r = new Tr();
1511
1511
  return r.restart(e, t, n), r;
1512
1512
  }
1513
- function Or() {
1514
- wr(), ++pr;
1515
- for (var e = _r, t; e;) (t = br - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1516
- --pr;
1513
+ function Dr() {
1514
+ Cr(), ++fr;
1515
+ for (var e = gr, t; e;) (t = yr - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
1516
+ --fr;
1517
1517
  }
1518
- function kr() {
1519
- br = (yr = Sr.now()) + xr, pr = mr = 0;
1518
+ function Or() {
1519
+ yr = (vr = xr.now()) + br, fr = pr = 0;
1520
1520
  try {
1521
- Or();
1521
+ Dr();
1522
1522
  } finally {
1523
- pr = 0, jr(), br = 0;
1523
+ fr = 0, Ar(), yr = 0;
1524
1524
  }
1525
1525
  }
1526
- function Ar() {
1527
- var e = Sr.now(), t = e - yr;
1528
- t > gr && (xr -= t, yr = e);
1526
+ function kr() {
1527
+ var e = xr.now(), t = e - vr;
1528
+ t > hr && (br -= t, vr = e);
1529
1529
  }
1530
- function jr() {
1531
- for (var e, t = _r, 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 : _r = n);
1532
- vr = e, Mr(r);
1530
+ function Ar() {
1531
+ for (var e, t = gr, 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 : gr = n);
1532
+ _r = e, jr(r);
1533
1533
  }
1534
- function Mr(e) {
1535
- pr || (mr &&= clearTimeout(mr), e - br > 24 ? (e < Infinity && (mr = setTimeout(kr, e - Sr.now() - xr)), hr &&= clearInterval(hr)) : (hr ||= (yr = Sr.now(), setInterval(Ar, gr)), pr = 1, Cr(kr)));
1534
+ function jr(e) {
1535
+ fr || (pr &&= clearTimeout(pr), e - yr > 24 ? (e < Infinity && (pr = setTimeout(Or, e - xr.now() - br)), mr &&= clearInterval(mr)) : (mr ||= (vr = xr.now(), setInterval(kr, hr)), fr = 1, Sr(Or)));
1536
1536
  }
1537
1537
  //#endregion
1538
1538
  //#region node_modules/d3-timer/src/timeout.js
1539
- function Nr(e, t, n) {
1540
- var r = new Er();
1539
+ function Mr(e, t, n) {
1540
+ var r = new Tr();
1541
1541
  return t = t == null ? 0 : +t, r.restart((n) => {
1542
1542
  r.stop(), e(n + t);
1543
1543
  }, t, n), r;
1544
1544
  }
1545
1545
  //#endregion
1546
1546
  //#region node_modules/d3-transition/src/transition/schedule.js
1547
- var Pr = w("start", "end", "cancel", "interrupt"), Fr = [];
1548
- function Ir(e, t, n, r, i, a) {
1547
+ var Nr = w("start", "end", "cancel", "interrupt"), Pr = [];
1548
+ function Fr(e, t, n, r, i, a) {
1549
1549
  var o = e.__transition;
1550
1550
  if (!o) e.__transition = {};
1551
1551
  else if (n in o) return;
1552
- Br(e, n, {
1552
+ zr(e, n, {
1553
1553
  name: t,
1554
1554
  index: r,
1555
1555
  group: i,
1556
- on: Pr,
1557
- tween: Fr,
1556
+ on: Nr,
1557
+ tween: Pr,
1558
1558
  time: a.time,
1559
1559
  delay: a.delay,
1560
1560
  duration: a.duration,
@@ -1563,24 +1563,24 @@ function Ir(e, t, n, r, i, a) {
1563
1563
  state: 0
1564
1564
  });
1565
1565
  }
1566
- function Lr(e, t) {
1567
- var n = zr(e, t);
1566
+ function Ir(e, t) {
1567
+ var n = Rr(e, t);
1568
1568
  if (n.state > 0) throw Error("too late; already scheduled");
1569
1569
  return n;
1570
1570
  }
1571
- function Rr(e, t) {
1572
- var n = zr(e, t);
1571
+ function Lr(e, t) {
1572
+ var n = Rr(e, t);
1573
1573
  if (n.state > 3) throw Error("too late; already running");
1574
1574
  return n;
1575
1575
  }
1576
- function zr(e, t) {
1576
+ function Rr(e, t) {
1577
1577
  var n = e.__transition;
1578
1578
  if (!n || !(n = n[t])) throw Error("transition not found");
1579
1579
  return n;
1580
1580
  }
1581
- function Br(e, t, n) {
1581
+ function zr(e, t, n) {
1582
1582
  var r = e.__transition, i;
1583
- r[t] = n, n.timer = Dr(a, 0, n.time);
1583
+ r[t] = n, n.timer = Er(a, 0, n.time);
1584
1584
  function a(e) {
1585
1585
  n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
1586
1586
  }
@@ -1588,10 +1588,10 @@ function Br(e, t, n) {
1588
1588
  var l, u, d, f;
1589
1589
  if (n.state !== 1) return c();
1590
1590
  for (l in r) if (f = r[l], f.name === n.name) {
1591
- if (f.state === 3) return Nr(o);
1591
+ if (f.state === 3) return Mr(o);
1592
1592
  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]);
1593
1593
  }
1594
- if (Nr(function() {
1594
+ if (Mr(function() {
1595
1595
  n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
1596
1596
  }), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
1597
1597
  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);
@@ -1609,7 +1609,7 @@ function Br(e, t, n) {
1609
1609
  }
1610
1610
  //#endregion
1611
1611
  //#region node_modules/d3-transition/src/interrupt.js
1612
- function Vr(e, t) {
1612
+ function Br(e, t) {
1613
1613
  var n = e.__transition, r, i, a = !0, o;
1614
1614
  if (n) {
1615
1615
  for (o in t = t == null ? null : t + "", n) {
@@ -1624,17 +1624,17 @@ function Vr(e, t) {
1624
1624
  }
1625
1625
  //#endregion
1626
1626
  //#region node_modules/d3-transition/src/selection/interrupt.js
1627
- function Hr(e) {
1627
+ function Vr(e) {
1628
1628
  return this.each(function() {
1629
- Vr(this, e);
1629
+ Br(this, e);
1630
1630
  });
1631
1631
  }
1632
1632
  //#endregion
1633
1633
  //#region node_modules/d3-transition/src/transition/tween.js
1634
- function Ur(e, t) {
1634
+ function Hr(e, t) {
1635
1635
  var n, r;
1636
1636
  return function() {
1637
- var i = Rr(this, e), a = i.tween;
1637
+ var i = Lr(this, e), a = i.tween;
1638
1638
  if (a !== n) {
1639
1639
  r = n = a;
1640
1640
  for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
@@ -1645,11 +1645,11 @@ function Ur(e, t) {
1645
1645
  i.tween = r;
1646
1646
  };
1647
1647
  }
1648
- function Wr(e, t, n) {
1648
+ function Ur(e, t, n) {
1649
1649
  var r, i;
1650
1650
  if (typeof n != "function") throw Error();
1651
1651
  return function() {
1652
- var a = Rr(this, e), o = a.tween;
1652
+ var a = Lr(this, e), o = a.tween;
1653
1653
  if (o !== r) {
1654
1654
  i = (r = o).slice();
1655
1655
  for (var s = {
@@ -1664,439 +1664,439 @@ function Wr(e, t, n) {
1664
1664
  a.tween = i;
1665
1665
  };
1666
1666
  }
1667
- function Gr(e, t) {
1667
+ function Wr(e, t) {
1668
1668
  var n = this._id;
1669
1669
  if (e += "", arguments.length < 2) {
1670
- for (var r = zr(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
1670
+ for (var r = Rr(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
1671
1671
  return null;
1672
1672
  }
1673
- return this.each((t == null ? Ur : Wr)(n, e, t));
1673
+ return this.each((t == null ? Hr : Ur)(n, e, t));
1674
1674
  }
1675
- function Kr(e, t, n) {
1675
+ function Gr(e, t, n) {
1676
1676
  var r = e._id;
1677
1677
  return e.each(function() {
1678
- var e = Rr(this, r);
1678
+ var e = Lr(this, r);
1679
1679
  (e.value ||= {})[t] = n.apply(this, arguments);
1680
1680
  }), function(e) {
1681
- return zr(e, r).value[t];
1681
+ return Rr(e, r).value[t];
1682
1682
  };
1683
1683
  }
1684
1684
  //#endregion
1685
1685
  //#region node_modules/d3-transition/src/transition/interpolate.js
1686
- function qr(e, t) {
1686
+ function Kr(e, t) {
1687
1687
  var n;
1688
- return (typeof t == "number" ? Gn : t instanceof _n ? Bn : (n = _n(t)) ? (t = n, Bn) : Zn)(e, t);
1688
+ return (typeof t == "number" ? Wn : t instanceof gn ? zn : (n = gn(t)) ? (t = n, zn) : Xn)(e, t);
1689
1689
  }
1690
1690
  //#endregion
1691
1691
  //#region node_modules/d3-transition/src/transition/attr.js
1692
- function Jr(e) {
1692
+ function qr(e) {
1693
1693
  return function() {
1694
1694
  this.removeAttribute(e);
1695
1695
  };
1696
1696
  }
1697
- function Yr(e) {
1697
+ function Jr(e) {
1698
1698
  return function() {
1699
1699
  this.removeAttributeNS(e.space, e.local);
1700
1700
  };
1701
1701
  }
1702
- function Xr(e, t, n) {
1702
+ function Yr(e, t, n) {
1703
1703
  var r, i = n + "", a;
1704
1704
  return function() {
1705
1705
  var o = this.getAttribute(e);
1706
1706
  return o === i ? null : o === r ? a : a = t(r = o, n);
1707
1707
  };
1708
1708
  }
1709
- function Zr(e, t, n) {
1709
+ function Xr(e, t, n) {
1710
1710
  var r, i = n + "", a;
1711
1711
  return function() {
1712
1712
  var o = this.getAttributeNS(e.space, e.local);
1713
1713
  return o === i ? null : o === r ? a : a = t(r = o, n);
1714
1714
  };
1715
1715
  }
1716
- function Qr(e, t, n) {
1716
+ function Zr(e, t, n) {
1717
1717
  var r, i, a;
1718
1718
  return function() {
1719
1719
  var o, s = n(this), c;
1720
1720
  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)));
1721
1721
  };
1722
1722
  }
1723
- function $r(e, t, n) {
1723
+ function Qr(e, t, n) {
1724
1724
  var r, i, a;
1725
1725
  return function() {
1726
1726
  var o, s = n(this), c;
1727
1727
  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)));
1728
1728
  };
1729
1729
  }
1730
- function ei(e, t) {
1731
- var n = A(e), r = n === "transform" ? sr : qr;
1732
- return this.attrTween(e, typeof t == "function" ? (n.local ? $r : Qr)(n, r, Kr(this, "attr." + e, t)) : t == null ? (n.local ? Yr : Jr)(n) : (n.local ? Zr : Xr)(n, r, t));
1730
+ function $r(e, t) {
1731
+ var n = A(e), r = n === "transform" ? or : Kr;
1732
+ return this.attrTween(e, typeof t == "function" ? (n.local ? Qr : Zr)(n, r, Gr(this, "attr." + e, t)) : t == null ? (n.local ? Jr : qr)(n) : (n.local ? Xr : Yr)(n, r, t));
1733
1733
  }
1734
1734
  //#endregion
1735
1735
  //#region node_modules/d3-transition/src/transition/attrTween.js
1736
- function ti(e, t) {
1736
+ function ei(e, t) {
1737
1737
  return function(n) {
1738
1738
  this.setAttribute(e, t.call(this, n));
1739
1739
  };
1740
1740
  }
1741
- function ni(e, t) {
1741
+ function ti(e, t) {
1742
1742
  return function(n) {
1743
1743
  this.setAttributeNS(e.space, e.local, t.call(this, n));
1744
1744
  };
1745
1745
  }
1746
- function ri(e, t) {
1746
+ function ni(e, t) {
1747
1747
  var n, r;
1748
1748
  function i() {
1749
1749
  var i = t.apply(this, arguments);
1750
- return i !== r && (n = (r = i) && ni(e, i)), n;
1750
+ return i !== r && (n = (r = i) && ti(e, i)), n;
1751
1751
  }
1752
1752
  return i._value = t, i;
1753
1753
  }
1754
- function ii(e, t) {
1754
+ function ri(e, t) {
1755
1755
  var n, r;
1756
1756
  function i() {
1757
1757
  var i = t.apply(this, arguments);
1758
- return i !== r && (n = (r = i) && ti(e, i)), n;
1758
+ return i !== r && (n = (r = i) && ei(e, i)), n;
1759
1759
  }
1760
1760
  return i._value = t, i;
1761
1761
  }
1762
- function ai(e, t) {
1762
+ function ii(e, t) {
1763
1763
  var n = "attr." + e;
1764
1764
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1765
1765
  if (t == null) return this.tween(n, null);
1766
1766
  if (typeof t != "function") throw Error();
1767
1767
  var r = A(e);
1768
- return this.tween(n, (r.local ? ri : ii)(r, t));
1768
+ return this.tween(n, (r.local ? ni : ri)(r, t));
1769
1769
  }
1770
1770
  //#endregion
1771
1771
  //#region node_modules/d3-transition/src/transition/delay.js
1772
- function oi(e, t) {
1772
+ function ai(e, t) {
1773
1773
  return function() {
1774
- Lr(this, e).delay = +t.apply(this, arguments);
1774
+ Ir(this, e).delay = +t.apply(this, arguments);
1775
1775
  };
1776
1776
  }
1777
- function si(e, t) {
1777
+ function oi(e, t) {
1778
1778
  return t = +t, function() {
1779
- Lr(this, e).delay = t;
1779
+ Ir(this, e).delay = t;
1780
1780
  };
1781
1781
  }
1782
- function ci(e) {
1782
+ function si(e) {
1783
1783
  var t = this._id;
1784
- return arguments.length ? this.each((typeof e == "function" ? oi : si)(t, e)) : zr(this.node(), t).delay;
1784
+ return arguments.length ? this.each((typeof e == "function" ? ai : oi)(t, e)) : Rr(this.node(), t).delay;
1785
1785
  }
1786
1786
  //#endregion
1787
1787
  //#region node_modules/d3-transition/src/transition/duration.js
1788
- function li(e, t) {
1788
+ function ci(e, t) {
1789
1789
  return function() {
1790
- Rr(this, e).duration = +t.apply(this, arguments);
1790
+ Lr(this, e).duration = +t.apply(this, arguments);
1791
1791
  };
1792
1792
  }
1793
- function ui(e, t) {
1793
+ function li(e, t) {
1794
1794
  return t = +t, function() {
1795
- Rr(this, e).duration = t;
1795
+ Lr(this, e).duration = t;
1796
1796
  };
1797
1797
  }
1798
- function di(e) {
1798
+ function ui(e) {
1799
1799
  var t = this._id;
1800
- return arguments.length ? this.each((typeof e == "function" ? li : ui)(t, e)) : zr(this.node(), t).duration;
1800
+ return arguments.length ? this.each((typeof e == "function" ? ci : li)(t, e)) : Rr(this.node(), t).duration;
1801
1801
  }
1802
1802
  //#endregion
1803
1803
  //#region node_modules/d3-transition/src/transition/ease.js
1804
- function fi(e, t) {
1804
+ function di(e, t) {
1805
1805
  if (typeof t != "function") throw Error();
1806
1806
  return function() {
1807
- Rr(this, e).ease = t;
1807
+ Lr(this, e).ease = t;
1808
1808
  };
1809
1809
  }
1810
- function pi(e) {
1810
+ function fi(e) {
1811
1811
  var t = this._id;
1812
- return arguments.length ? this.each(fi(t, e)) : zr(this.node(), t).ease;
1812
+ return arguments.length ? this.each(di(t, e)) : Rr(this.node(), t).ease;
1813
1813
  }
1814
1814
  //#endregion
1815
1815
  //#region node_modules/d3-transition/src/transition/easeVarying.js
1816
- function mi(e, t) {
1816
+ function pi(e, t) {
1817
1817
  return function() {
1818
1818
  var n = t.apply(this, arguments);
1819
1819
  if (typeof n != "function") throw Error();
1820
- Rr(this, e).ease = n;
1820
+ Lr(this, e).ease = n;
1821
1821
  };
1822
1822
  }
1823
- function hi(e) {
1823
+ function mi(e) {
1824
1824
  if (typeof e != "function") throw Error();
1825
- return this.each(mi(this._id, e));
1825
+ return this.each(pi(this._id, e));
1826
1826
  }
1827
1827
  //#endregion
1828
1828
  //#region node_modules/d3-transition/src/transition/filter.js
1829
- function gi(e) {
1829
+ function hi(e) {
1830
1830
  typeof e != "function" && (e = V(e));
1831
1831
  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);
1832
- return new Gi(r, this._parents, this._name, this._id);
1832
+ return new Wi(r, this._parents, this._name, this._id);
1833
1833
  }
1834
1834
  //#endregion
1835
1835
  //#region node_modules/d3-transition/src/transition/merge.js
1836
- function _i(e) {
1836
+ function gi(e) {
1837
1837
  if (e._id !== this._id) throw Error();
1838
1838
  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);
1839
1839
  for (; s < r; ++s) o[s] = t[s];
1840
- return new Gi(o, this._parents, this._name, this._id);
1840
+ return new Wi(o, this._parents, this._name, this._id);
1841
1841
  }
1842
1842
  //#endregion
1843
1843
  //#region node_modules/d3-transition/src/transition/on.js
1844
- function vi(e) {
1844
+ function _i(e) {
1845
1845
  return (e + "").trim().split(/^|\s+/).every(function(e) {
1846
1846
  var t = e.indexOf(".");
1847
1847
  return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
1848
1848
  });
1849
1849
  }
1850
- function yi(e, t, n) {
1851
- var r, i, a = vi(t) ? Lr : Rr;
1850
+ function vi(e, t, n) {
1851
+ var r, i, a = _i(t) ? Ir : Lr;
1852
1852
  return function() {
1853
1853
  var o = a(this, e), s = o.on;
1854
1854
  s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
1855
1855
  };
1856
1856
  }
1857
- function bi(e, t) {
1857
+ function yi(e, t) {
1858
1858
  var n = this._id;
1859
- return arguments.length < 2 ? zr(this.node(), n).on.on(e) : this.each(yi(n, e, t));
1859
+ return arguments.length < 2 ? Rr(this.node(), n).on.on(e) : this.each(vi(n, e, t));
1860
1860
  }
1861
1861
  //#endregion
1862
1862
  //#region node_modules/d3-transition/src/transition/remove.js
1863
- function xi(e) {
1863
+ function bi(e) {
1864
1864
  return function() {
1865
1865
  var t = this.parentNode;
1866
1866
  for (var n in this.__transition) if (+n !== e) return;
1867
1867
  t && t.removeChild(this);
1868
1868
  };
1869
1869
  }
1870
- function Si() {
1871
- return this.on("end.remove", xi(this._id));
1870
+ function xi() {
1871
+ return this.on("end.remove", bi(this._id));
1872
1872
  }
1873
1873
  //#endregion
1874
1874
  //#region node_modules/d3-transition/src/transition/select.js
1875
- function Ci(e) {
1875
+ function Si(e) {
1876
1876
  var t = this._name, n = this._id;
1877
1877
  typeof e != "function" && (e = F(e));
1878
- 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, Ir(l[f], t, n, f, l, zr(u, n)));
1879
- return new Gi(a, this._parents, t, n);
1878
+ 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, Fr(l[f], t, n, f, l, Rr(u, n)));
1879
+ return new Wi(a, this._parents, t, n);
1880
1880
  }
1881
1881
  //#endregion
1882
1882
  //#region node_modules/d3-transition/src/transition/selectAll.js
1883
- function wi(e) {
1883
+ function Ci(e) {
1884
1884
  var t = this._name, n = this._id;
1885
1885
  typeof e != "function" && (e = ee(e));
1886
1886
  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]) {
1887
- for (var f = e.call(u, u.__data__, d, c), p, m = zr(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Ir(p, t, n, h, f, m);
1887
+ for (var f = e.call(u, u.__data__, d, c), p, m = Rr(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Fr(p, t, n, h, f, m);
1888
1888
  a.push(f), o.push(u);
1889
1889
  }
1890
- return new Gi(a, o, t, n);
1890
+ return new Wi(a, o, t, n);
1891
1891
  }
1892
1892
  //#endregion
1893
1893
  //#region node_modules/d3-transition/src/transition/selection.js
1894
- var Ti = Nt.prototype.constructor;
1895
- function Ei() {
1896
- return new Ti(this._groups, this._parents);
1894
+ var wi = Mt.prototype.constructor;
1895
+ function Ti() {
1896
+ return new wi(this._groups, this._parents);
1897
1897
  }
1898
1898
  //#endregion
1899
1899
  //#region node_modules/d3-transition/src/transition/style.js
1900
- function Di(e, t) {
1900
+ function Ei(e, t) {
1901
1901
  var n, r, i;
1902
1902
  return function() {
1903
- var a = Ve(this, e), o = (this.style.removeProperty(e), Ve(this, e));
1903
+ var a = Be(this, e), o = (this.style.removeProperty(e), Be(this, e));
1904
1904
  return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
1905
1905
  };
1906
1906
  }
1907
- function Oi(e) {
1907
+ function Di(e) {
1908
1908
  return function() {
1909
1909
  this.style.removeProperty(e);
1910
1910
  };
1911
1911
  }
1912
- function ki(e, t, n) {
1912
+ function Oi(e, t, n) {
1913
1913
  var r, i = n + "", a;
1914
1914
  return function() {
1915
- var o = Ve(this, e);
1915
+ var o = Be(this, e);
1916
1916
  return o === i ? null : o === r ? a : a = t(r = o, n);
1917
1917
  };
1918
1918
  }
1919
- function Ai(e, t, n) {
1919
+ function ki(e, t, n) {
1920
1920
  var r, i, a;
1921
1921
  return function() {
1922
- var o = Ve(this, e), s = n(this), c = s + "";
1923
- return s ?? (c = s = (this.style.removeProperty(e), Ve(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
1922
+ var o = Be(this, e), s = n(this), c = s + "";
1923
+ return s ?? (c = s = (this.style.removeProperty(e), Be(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
1924
1924
  };
1925
1925
  }
1926
- function ji(e, t) {
1926
+ function Ai(e, t) {
1927
1927
  var n, r, i, a = "style." + t, o = "end." + a, s;
1928
1928
  return function() {
1929
- var c = Rr(this, e), l = c.on, u = c.value[a] == null ? s ||= Oi(t) : void 0;
1929
+ var c = Lr(this, e), l = c.on, u = c.value[a] == null ? s ||= Di(t) : void 0;
1930
1930
  (l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
1931
1931
  };
1932
1932
  }
1933
- function Mi(e, t, n) {
1934
- var r = (e += "") == "transform" ? or : qr;
1935
- return t == null ? this.styleTween(e, Di(e, r)).on("end.style." + e, Oi(e)) : typeof t == "function" ? this.styleTween(e, Ai(e, r, Kr(this, "style." + e, t))).each(ji(this._id, e)) : this.styleTween(e, ki(e, r, t), n).on("end.style." + e, null);
1933
+ function ji(e, t, n) {
1934
+ var r = (e += "") == "transform" ? ar : Kr;
1935
+ return t == null ? this.styleTween(e, Ei(e, r)).on("end.style." + e, Di(e)) : typeof t == "function" ? this.styleTween(e, ki(e, r, Gr(this, "style." + e, t))).each(Ai(this._id, e)) : this.styleTween(e, Oi(e, r, t), n).on("end.style." + e, null);
1936
1936
  }
1937
1937
  //#endregion
1938
1938
  //#region node_modules/d3-transition/src/transition/styleTween.js
1939
- function Ni(e, t, n) {
1939
+ function Mi(e, t, n) {
1940
1940
  return function(r) {
1941
1941
  this.style.setProperty(e, t.call(this, r), n);
1942
1942
  };
1943
1943
  }
1944
- function Pi(e, t, n) {
1944
+ function Ni(e, t, n) {
1945
1945
  var r, i;
1946
1946
  function a() {
1947
1947
  var a = t.apply(this, arguments);
1948
- return a !== i && (r = (i = a) && Ni(e, a, n)), r;
1948
+ return a !== i && (r = (i = a) && Mi(e, a, n)), r;
1949
1949
  }
1950
1950
  return a._value = t, a;
1951
1951
  }
1952
- function Fi(e, t, n) {
1952
+ function Pi(e, t, n) {
1953
1953
  var r = "style." + (e += "");
1954
1954
  if (arguments.length < 2) return (r = this.tween(r)) && r._value;
1955
1955
  if (t == null) return this.tween(r, null);
1956
1956
  if (typeof t != "function") throw Error();
1957
- return this.tween(r, Pi(e, t, n ?? ""));
1957
+ return this.tween(r, Ni(e, t, n ?? ""));
1958
1958
  }
1959
1959
  //#endregion
1960
1960
  //#region node_modules/d3-transition/src/transition/text.js
1961
- function Ii(e) {
1961
+ function Fi(e) {
1962
1962
  return function() {
1963
1963
  this.textContent = e;
1964
1964
  };
1965
1965
  }
1966
- function Li(e) {
1966
+ function Ii(e) {
1967
1967
  return function() {
1968
1968
  var t = e(this);
1969
1969
  this.textContent = t ?? "";
1970
1970
  };
1971
1971
  }
1972
- function Ri(e) {
1973
- return this.tween("text", typeof e == "function" ? Li(Kr(this, "text", e)) : Ii(e == null ? "" : e + ""));
1972
+ function Li(e) {
1973
+ return this.tween("text", typeof e == "function" ? Ii(Gr(this, "text", e)) : Fi(e == null ? "" : e + ""));
1974
1974
  }
1975
1975
  //#endregion
1976
1976
  //#region node_modules/d3-transition/src/transition/textTween.js
1977
- function zi(e) {
1977
+ function Ri(e) {
1978
1978
  return function(t) {
1979
1979
  this.textContent = e.call(this, t);
1980
1980
  };
1981
1981
  }
1982
- function Bi(e) {
1982
+ function zi(e) {
1983
1983
  var t, n;
1984
1984
  function r() {
1985
1985
  var r = e.apply(this, arguments);
1986
- return r !== n && (t = (n = r) && zi(r)), t;
1986
+ return r !== n && (t = (n = r) && Ri(r)), t;
1987
1987
  }
1988
1988
  return r._value = e, r;
1989
1989
  }
1990
- function Vi(e) {
1990
+ function Bi(e) {
1991
1991
  var t = "text";
1992
1992
  if (arguments.length < 1) return (t = this.tween(t)) && t._value;
1993
1993
  if (e == null) return this.tween(t, null);
1994
1994
  if (typeof e != "function") throw Error();
1995
- return this.tween(t, Bi(e));
1995
+ return this.tween(t, zi(e));
1996
1996
  }
1997
1997
  //#endregion
1998
1998
  //#region node_modules/d3-transition/src/transition/transition.js
1999
- function Hi() {
2000
- for (var e = this._name, t = this._id, n = qi(), 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]) {
2001
- var u = zr(c, t);
2002
- Ir(c, e, n, l, o, {
1999
+ function Vi() {
2000
+ for (var e = this._name, t = this._id, n = Ki(), 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]) {
2001
+ var u = Rr(c, t);
2002
+ Fr(c, e, n, l, o, {
2003
2003
  time: u.time + u.delay + u.duration,
2004
2004
  delay: 0,
2005
2005
  duration: u.duration,
2006
2006
  ease: u.ease
2007
2007
  });
2008
2008
  }
2009
- return new Gi(r, this._parents, e, n);
2009
+ return new Wi(r, this._parents, e, n);
2010
2010
  }
2011
2011
  //#endregion
2012
2012
  //#region node_modules/d3-transition/src/transition/end.js
2013
- function Ui() {
2013
+ function Hi() {
2014
2014
  var e, t, n = this, r = n._id, i = n.size();
2015
2015
  return new Promise(function(a, o) {
2016
2016
  var s = { value: o }, c = { value: function() {
2017
2017
  --i === 0 && a();
2018
2018
  } };
2019
2019
  n.each(function() {
2020
- var n = Rr(this, r), i = n.on;
2020
+ var n = Lr(this, r), i = n.on;
2021
2021
  i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
2022
2022
  }), i === 0 && a();
2023
2023
  });
2024
2024
  }
2025
2025
  //#endregion
2026
2026
  //#region node_modules/d3-transition/src/transition/index.js
2027
- var Wi = 0;
2028
- function Gi(e, t, n, r) {
2027
+ var Ui = 0;
2028
+ function Wi(e, t, n, r) {
2029
2029
  this._groups = e, this._parents = t, this._name = n, this._id = r;
2030
2030
  }
2031
- function Ki(e) {
2032
- return Nt().transition(e);
2033
- }
2034
- function qi() {
2035
- return ++Wi;
2036
- }
2037
- var Ji = Nt.prototype;
2038
- Gi.prototype = Ki.prototype = {
2039
- constructor: Gi,
2040
- select: Ci,
2041
- selectAll: wi,
2042
- selectChild: Ji.selectChild,
2043
- selectChildren: Ji.selectChildren,
2044
- filter: gi,
2045
- merge: _i,
2046
- selection: Ei,
2047
- transition: Hi,
2048
- call: Ji.call,
2049
- nodes: Ji.nodes,
2050
- node: Ji.node,
2051
- size: Ji.size,
2052
- empty: Ji.empty,
2053
- each: Ji.each,
2054
- on: bi,
2055
- attr: ei,
2056
- attrTween: ai,
2057
- style: Mi,
2058
- styleTween: Fi,
2059
- text: Ri,
2060
- textTween: Vi,
2061
- remove: Si,
2062
- tween: Gr,
2063
- delay: ci,
2064
- duration: di,
2065
- ease: pi,
2066
- easeVarying: hi,
2067
- end: Ui,
2068
- [Symbol.iterator]: Ji[Symbol.iterator]
2031
+ function Gi(e) {
2032
+ return Mt().transition(e);
2033
+ }
2034
+ function Ki() {
2035
+ return ++Ui;
2036
+ }
2037
+ var qi = Mt.prototype;
2038
+ Wi.prototype = Gi.prototype = {
2039
+ constructor: Wi,
2040
+ select: Si,
2041
+ selectAll: Ci,
2042
+ selectChild: qi.selectChild,
2043
+ selectChildren: qi.selectChildren,
2044
+ filter: hi,
2045
+ merge: gi,
2046
+ selection: Ti,
2047
+ transition: Vi,
2048
+ call: qi.call,
2049
+ nodes: qi.nodes,
2050
+ node: qi.node,
2051
+ size: qi.size,
2052
+ empty: qi.empty,
2053
+ each: qi.each,
2054
+ on: yi,
2055
+ attr: $r,
2056
+ attrTween: ii,
2057
+ style: ji,
2058
+ styleTween: Pi,
2059
+ text: Li,
2060
+ textTween: Bi,
2061
+ remove: xi,
2062
+ tween: Wr,
2063
+ delay: si,
2064
+ duration: ui,
2065
+ ease: fi,
2066
+ easeVarying: mi,
2067
+ end: Hi,
2068
+ [Symbol.iterator]: qi[Symbol.iterator]
2069
2069
  };
2070
2070
  //#endregion
2071
2071
  //#region node_modules/d3-ease/src/cubic.js
2072
- function Yi(e) {
2072
+ function Ji(e) {
2073
2073
  return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
2074
2074
  }
2075
2075
  //#endregion
2076
2076
  //#region node_modules/d3-transition/src/selection/transition.js
2077
- var Xi = {
2077
+ var Yi = {
2078
2078
  time: null,
2079
2079
  delay: 0,
2080
2080
  duration: 250,
2081
- ease: Yi
2081
+ ease: Ji
2082
2082
  };
2083
- function Zi(e, t) {
2083
+ function Xi(e, t) {
2084
2084
  for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
2085
2085
  return n;
2086
2086
  }
2087
- function Qi(e) {
2087
+ function Zi(e) {
2088
2088
  var t, n;
2089
- e instanceof Gi ? (t = e._id, e = e._name) : (t = qi(), (n = Xi).time = wr(), e = e == null ? null : e + "");
2090
- 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]) && Ir(c, e, t, l, o, n || Zi(c, t));
2091
- return new Gi(r, this._parents, e, t);
2089
+ e instanceof Wi ? (t = e._id, e = e._name) : (t = Ki(), (n = Yi).time = Cr(), e = e == null ? null : e + "");
2090
+ 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]) && Fr(c, e, t, l, o, n || Xi(c, t));
2091
+ return new Wi(r, this._parents, e, t);
2092
2092
  }
2093
- Nt.prototype.interrupt = Hr, Nt.prototype.transition = Qi;
2093
+ Mt.prototype.interrupt = Vr, Mt.prototype.transition = Zi;
2094
2094
  //#endregion
2095
2095
  //#region node_modules/d3-zoom/src/constant.js
2096
- var $i = (e) => () => e;
2096
+ var Qi = (e) => () => e;
2097
2097
  //#endregion
2098
2098
  //#region node_modules/d3-zoom/src/event.js
2099
- function ea(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
2099
+ function $i(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
2100
2100
  Object.defineProperties(this, {
2101
2101
  type: {
2102
2102
  value: e,
@@ -2123,16 +2123,16 @@ function ea(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
2123
2123
  }
2124
2124
  //#endregion
2125
2125
  //#region node_modules/d3-zoom/src/transform.js
2126
- function ta(e, t, n) {
2126
+ function ea(e, t, n) {
2127
2127
  this.k = e, this.x = t, this.y = n;
2128
2128
  }
2129
- ta.prototype = {
2130
- constructor: ta,
2129
+ ea.prototype = {
2130
+ constructor: ea,
2131
2131
  scale: function(e) {
2132
- return e === 1 ? this : new ta(this.k * e, this.x, this.y);
2132
+ return e === 1 ? this : new ea(this.k * e, this.x, this.y);
2133
2133
  },
2134
2134
  translate: function(e, t) {
2135
- return e === 0 & t === 0 ? this : new ta(this.k, this.x + this.k * e, this.y + this.k * t);
2135
+ return e === 0 & t === 0 ? this : new ea(this.k, this.x + this.k * e, this.y + this.k * t);
2136
2136
  },
2137
2137
  apply: function(e) {
2138
2138
  return [e[0] * this.k + this.x, e[1] * this.k + this.y];
@@ -2162,50 +2162,50 @@ ta.prototype = {
2162
2162
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2163
2163
  }
2164
2164
  };
2165
- var na = new ta(1, 0, 0);
2166
- ra.prototype = ta.prototype;
2167
- function ra(e) {
2168
- for (; !e.__zoom;) if (!(e = e.parentNode)) return na;
2165
+ var ta = new ea(1, 0, 0);
2166
+ na.prototype = ea.prototype;
2167
+ function na(e) {
2168
+ for (; !e.__zoom;) if (!(e = e.parentNode)) return ta;
2169
2169
  return e.__zoom;
2170
2170
  }
2171
2171
  //#endregion
2172
2172
  //#region node_modules/d3-zoom/src/noevent.js
2173
- function ia(e) {
2173
+ function ra(e) {
2174
2174
  e.stopImmediatePropagation();
2175
2175
  }
2176
- function aa(e) {
2176
+ function ia(e) {
2177
2177
  e.preventDefault(), e.stopImmediatePropagation();
2178
2178
  }
2179
2179
  //#endregion
2180
2180
  //#region node_modules/d3-zoom/src/zoom.js
2181
- function oa(e) {
2181
+ function aa(e) {
2182
2182
  return (!e.ctrlKey || e.type === "wheel") && !e.button;
2183
2183
  }
2184
- function sa() {
2184
+ function oa() {
2185
2185
  var e = this;
2186
2186
  return e instanceof SVGElement ? (e = e.ownerSVGElement || e, e.hasAttribute("viewBox") ? (e = e.viewBox.baseVal, [[e.x, e.y], [e.x + e.width, e.y + e.height]]) : [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]]) : [[0, 0], [e.clientWidth, e.clientHeight]];
2187
2187
  }
2188
- function ca() {
2189
- return this.__zoom || na;
2188
+ function sa() {
2189
+ return this.__zoom || ta;
2190
2190
  }
2191
- function la(e) {
2191
+ function ca(e) {
2192
2192
  return -e.deltaY * (e.deltaMode === 1 ? .05 : e.deltaMode ? 1 : .002) * (e.ctrlKey ? 10 : 1);
2193
2193
  }
2194
- function ua() {
2194
+ function la() {
2195
2195
  return navigator.maxTouchPoints || "ontouchstart" in this;
2196
2196
  }
2197
- function da(e, t, n) {
2197
+ function ua(e, t, n) {
2198
2198
  var r = e.invertX(t[0][0]) - n[0][0], i = e.invertX(t[1][0]) - n[1][0], a = e.invertY(t[0][1]) - n[0][1], o = e.invertY(t[1][1]) - n[1][1];
2199
2199
  return e.translate(i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), o > a ? (a + o) / 2 : Math.min(0, a) || Math.max(0, o));
2200
2200
  }
2201
- function fa() {
2202
- var e = oa, t = sa, n = da, r = la, i = ua, a = [0, Infinity], o = [[-Infinity, -Infinity], [Infinity, Infinity]], s = 250, c = fr, l = w("start", "zoom", "end"), u, d, f, p = 500, m = 150, h = 0, g = 10;
2201
+ function da() {
2202
+ var e = aa, t = oa, n = ua, r = ca, i = la, a = [0, Infinity], o = [[-Infinity, -Infinity], [Infinity, Infinity]], s = 250, c = dr, l = w("start", "zoom", "end"), u, d, f, p = 500, m = 150, h = 0, g = 10;
2203
2203
  function _(e) {
2204
- e.property("__zoom", ca).on("wheel.zoom", T, { passive: !1 }).on("mousedown.zoom", E).on("dblclick.zoom", D).filter(i).on("touchstart.zoom", O).on("touchmove.zoom", k).on("touchend.zoom touchcancel.zoom", A).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2204
+ e.property("__zoom", sa).on("wheel.zoom", T, { passive: !1 }).on("mousedown.zoom", E).on("dblclick.zoom", D).filter(i).on("touchstart.zoom", O).on("touchmove.zoom", k).on("touchend.zoom touchcancel.zoom", A).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2205
2205
  }
2206
2206
  _.transform = function(e, t, n, r) {
2207
2207
  var i = e.selection ? e.selection() : e;
2208
- i.property("__zoom", ca), e === i ? i.interrupt().each(function() {
2208
+ i.property("__zoom", sa), e === i ? i.interrupt().each(function() {
2209
2209
  S(this, arguments).event(r).start().zoom(null, typeof t == "function" ? t.apply(this, arguments) : t).end();
2210
2210
  }) : x(e, t, n, r);
2211
2211
  }, _.scaleBy = function(e, t, n, r) {
@@ -2224,15 +2224,15 @@ function fa() {
2224
2224
  }, _.translateTo = function(e, r, i, a, s) {
2225
2225
  _.transform(e, function() {
2226
2226
  var e = t.apply(this, arguments), s = this.__zoom, c = a == null ? b(e) : typeof a == "function" ? a.apply(this, arguments) : a;
2227
- return n(na.translate(c[0], c[1]).scale(s.k).translate(typeof r == "function" ? -r.apply(this, arguments) : -r, typeof i == "function" ? -i.apply(this, arguments) : -i), e, o);
2227
+ return n(ta.translate(c[0], c[1]).scale(s.k).translate(typeof r == "function" ? -r.apply(this, arguments) : -r, typeof i == "function" ? -i.apply(this, arguments) : -i), e, o);
2228
2228
  }, a, s);
2229
2229
  };
2230
2230
  function v(e, t) {
2231
- return t = Math.max(a[0], Math.min(a[1], t)), t === e.k ? e : new ta(t, e.x, e.y);
2231
+ return t = Math.max(a[0], Math.min(a[1], t)), t === e.k ? e : new ea(t, e.x, e.y);
2232
2232
  }
2233
2233
  function y(e, t, n) {
2234
2234
  var r = t[0] - n[0] * e.k, i = t[1] - n[1] * e.k;
2235
- return r === e.x && i === e.y ? e : new ta(e.k, r, i);
2235
+ return r === e.x && i === e.y ? e : new ea(e.k, r, i);
2236
2236
  }
2237
2237
  function b(e) {
2238
2238
  return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2];
@@ -2248,7 +2248,7 @@ function fa() {
2248
2248
  if (e === 1) e = f;
2249
2249
  else {
2250
2250
  var t = p(e), n = u / t[2];
2251
- e = new ta(n, l[0] - t[0] * n, l[1] - t[1] * n);
2251
+ e = new ea(n, l[0] - t[0] * n, l[1] - t[1] * n);
2252
2252
  }
2253
2253
  o.zoom(null, e);
2254
2254
  };
@@ -2274,8 +2274,8 @@ function fa() {
2274
2274
  return --this.active === 0 && (delete this.that.__zooming, this.emit("end")), this;
2275
2275
  },
2276
2276
  emit: function(e) {
2277
- var t = K(this.that).datum();
2278
- l.call(e, this.that, new ea(e, {
2277
+ var t = q(this.that).datum();
2278
+ l.call(e, this.that, new $i(e, {
2279
2279
  sourceEvent: this.sourceEvent,
2280
2280
  target: _,
2281
2281
  type: e,
@@ -2286,53 +2286,53 @@ function fa() {
2286
2286
  };
2287
2287
  function T(t, ...i) {
2288
2288
  if (!e.apply(this, arguments)) return;
2289
- var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u = It(t);
2289
+ var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u = Ft(t);
2290
2290
  if (s.wheel) (s.mouse[0][0] !== u[0] || s.mouse[0][1] !== u[1]) && (s.mouse[1] = c.invert(s.mouse[0] = u)), clearTimeout(s.wheel);
2291
2291
  else if (c.k === l) return;
2292
- else s.mouse = [u, c.invert(u)], Vr(this), s.start();
2293
- aa(t), s.wheel = setTimeout(d, m), s.zoom("mouse", n(y(v(c, l), s.mouse[0], s.mouse[1]), s.extent, o));
2292
+ else s.mouse = [u, c.invert(u)], Br(this), s.start();
2293
+ ia(t), s.wheel = setTimeout(d, m), s.zoom("mouse", n(y(v(c, l), s.mouse[0], s.mouse[1]), s.extent, o));
2294
2294
  function d() {
2295
2295
  s.wheel = null, s.end();
2296
2296
  }
2297
2297
  }
2298
2298
  function E(t, ...r) {
2299
2299
  if (f || !e.apply(this, arguments)) return;
2300
- var i = t.currentTarget, a = S(this, r, !0).event(t), s = K(t.view).on("mousemove.zoom", d, !0).on("mouseup.zoom", p, !0), c = It(t, i), l = t.clientX, u = t.clientY;
2301
- Vt(t.view), ia(t), a.mouse = [c, this.__zoom.invert(c)], Vr(this), a.start();
2300
+ var i = t.currentTarget, a = S(this, r, !0).event(t), s = q(t.view).on("mousemove.zoom", d, !0).on("mouseup.zoom", p, !0), c = Ft(t, i), l = t.clientX, u = t.clientY;
2301
+ Bt(t.view), ra(t), a.mouse = [c, this.__zoom.invert(c)], Br(this), a.start();
2302
2302
  function d(e) {
2303
- if (aa(e), !a.moved) {
2303
+ if (ia(e), !a.moved) {
2304
2304
  var t = e.clientX - l, r = e.clientY - u;
2305
2305
  a.moved = t * t + r * r > h;
2306
2306
  }
2307
- a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] = It(e, i), a.mouse[1]), a.extent, o));
2307
+ a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] = Ft(e, i), a.mouse[1]), a.extent, o));
2308
2308
  }
2309
2309
  function p(e) {
2310
- s.on("mousemove.zoom mouseup.zoom", null), Ht(e.view, a.moved), aa(e), a.event(e).end();
2310
+ s.on("mousemove.zoom mouseup.zoom", null), Vt(e.view, a.moved), ia(e), a.event(e).end();
2311
2311
  }
2312
2312
  }
2313
2313
  function D(r, ...i) {
2314
2314
  if (e.apply(this, arguments)) {
2315
- var a = this.__zoom, c = It(r.changedTouches ? r.changedTouches[0] : r, this), l = a.invert(c), u = a.k * (r.shiftKey ? .5 : 2), d = n(y(v(a, u), c, l), t.apply(this, i), o);
2316
- aa(r), s > 0 ? K(this).transition().duration(s).call(x, d, c, r) : K(this).call(_.transform, d, c, r);
2315
+ var a = this.__zoom, c = Ft(r.changedTouches ? r.changedTouches[0] : r, this), l = a.invert(c), u = a.k * (r.shiftKey ? .5 : 2), d = n(y(v(a, u), c, l), t.apply(this, i), o);
2316
+ ia(r), s > 0 ? q(this).transition().duration(s).call(x, d, c, r) : q(this).call(_.transform, d, c, r);
2317
2317
  }
2318
2318
  }
2319
2319
  function O(t, ...n) {
2320
2320
  if (e.apply(this, arguments)) {
2321
2321
  var r = t.touches, i = r.length, a = S(this, n, t.changedTouches.length === i).event(t), o, s, c, l;
2322
- for (ia(t), s = 0; s < i; ++s) c = r[s], l = It(c, this), l = [
2322
+ for (ra(t), s = 0; s < i; ++s) c = r[s], l = Ft(c, this), l = [
2323
2323
  l,
2324
2324
  this.__zoom.invert(l),
2325
2325
  c.identifier
2326
2326
  ], a.touch0 ? !a.touch1 && a.touch0[2] !== l[2] && (a.touch1 = l, a.taps = 0) : (a.touch0 = l, o = !0, a.taps = 1 + !!u);
2327
2327
  u &&= clearTimeout(u), o && (a.taps < 2 && (d = l[0], u = setTimeout(function() {
2328
2328
  u = null;
2329
- }, p)), Vr(this), a.start());
2329
+ }, p)), Br(this), a.start());
2330
2330
  }
2331
2331
  }
2332
2332
  function k(e, ...t) {
2333
2333
  if (this.__zooming) {
2334
2334
  var r = S(this, t).event(e), i = e.changedTouches, a = i.length, s, c, l, u;
2335
- for (aa(e), s = 0; s < a; ++s) c = i[s], l = It(c, this), r.touch0 && r.touch0[2] === c.identifier ? r.touch0[0] = l : r.touch1 && r.touch1[2] === c.identifier && (r.touch1[0] = l);
2335
+ for (ia(e), s = 0; s < a; ++s) c = i[s], l = Ft(c, this), r.touch0 && r.touch0[2] === c.identifier ? r.touch0[0] = l : r.touch1 && r.touch1[2] === c.identifier && (r.touch1[0] = l);
2336
2336
  if (c = r.that.__zoom, r.touch1) {
2337
2337
  var d = r.touch0[0], f = r.touch0[1], p = r.touch1[0], m = r.touch1[1], h = (h = p[0] - d[0]) * h + (h = p[1] - d[1]) * h, g = (g = m[0] - f[0]) * g + (g = m[1] - f[1]) * g;
2338
2338
  c = v(c, Math.sqrt(h / g)), l = [(d[0] + p[0]) / 2, (d[1] + p[1]) / 2], u = [(f[0] + m[0]) / 2, (f[1] + m[1]) / 2];
@@ -2344,24 +2344,24 @@ function fa() {
2344
2344
  function A(e, ...t) {
2345
2345
  if (this.__zooming) {
2346
2346
  var n = S(this, t).event(e), r = e.changedTouches, i = r.length, a, o;
2347
- for (ia(e), f && clearTimeout(f), f = setTimeout(function() {
2347
+ for (ra(e), f && clearTimeout(f), f = setTimeout(function() {
2348
2348
  f = null;
2349
2349
  }, p), a = 0; a < i; ++a) o = r[a], n.touch0 && n.touch0[2] === o.identifier ? delete n.touch0 : n.touch1 && n.touch1[2] === o.identifier && delete n.touch1;
2350
2350
  if (n.touch1 && !n.touch0 && (n.touch0 = n.touch1, delete n.touch1), n.touch0) n.touch0[1] = this.__zoom.invert(n.touch0[0]);
2351
- else if (n.end(), n.taps === 2 && (o = It(o, this), Math.hypot(d[0] - o[0], d[1] - o[1]) < g)) {
2352
- var s = K(this).on("dblclick.zoom");
2351
+ else if (n.end(), n.taps === 2 && (o = Ft(o, this), Math.hypot(d[0] - o[0], d[1] - o[1]) < g)) {
2352
+ var s = q(this).on("dblclick.zoom");
2353
2353
  s && s.apply(this, arguments);
2354
2354
  }
2355
2355
  }
2356
2356
  }
2357
2357
  return _.wheelDelta = function(e) {
2358
- return arguments.length ? (r = typeof e == "function" ? e : $i(+e), _) : r;
2358
+ return arguments.length ? (r = typeof e == "function" ? e : Qi(+e), _) : r;
2359
2359
  }, _.filter = function(t) {
2360
- return arguments.length ? (e = typeof t == "function" ? t : $i(!!t), _) : e;
2360
+ return arguments.length ? (e = typeof t == "function" ? t : Qi(!!t), _) : e;
2361
2361
  }, _.touchable = function(e) {
2362
- return arguments.length ? (i = typeof e == "function" ? e : $i(!!e), _) : i;
2362
+ return arguments.length ? (i = typeof e == "function" ? e : Qi(!!e), _) : i;
2363
2363
  }, _.extent = function(e) {
2364
- return arguments.length ? (t = typeof e == "function" ? e : $i([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), _) : t;
2364
+ return arguments.length ? (t = typeof e == "function" ? e : Qi([[+e[0][0], +e[0][1]], [+e[1][0], +e[1][1]]]), _) : t;
2365
2365
  }, _.scaleExtent = function(e) {
2366
2366
  return arguments.length ? (a[0] = +e[0], a[1] = +e[1], _) : [a[0], a[1]];
2367
2367
  }, _.translateExtent = function(e) {
@@ -2383,7 +2383,7 @@ function fa() {
2383
2383
  }
2384
2384
  //#endregion
2385
2385
  //#region node_modules/@xyflow/system/dist/esm/index.js
2386
- var J = {
2386
+ var fa = {
2387
2387
  error001: (e = "react") => `Seems like you have not used zustand provider as an ancestor. Help: https://${e}flow.dev/error#001`,
2388
2388
  error002: () => "It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",
2389
2389
  error003: (e) => `Node type "${e}" not found. Using fallback type "default".`,
@@ -2547,14 +2547,14 @@ function Pa({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0],
2547
2547
  x: 0,
2548
2548
  y: 0
2549
2549
  }, u = o.origin ?? r, d = o.extent || i;
2550
- if (o.extent === "parent" && !o.expandParent) if (!s) a?.("005", J.error005());
2550
+ if (o.extent === "parent" && !o.expandParent) if (!s) a?.("005", fa.error005());
2551
2551
  else {
2552
2552
  let e = s.measured.width, t = s.measured.height;
2553
2553
  e && t && (d = [[c, l], [c + e, l + t]]);
2554
2554
  }
2555
2555
  else s && ao(o.extent) && (d = [[o.extent[0][0] + c, o.extent[0][1] + l], [o.extent[1][0] + c, o.extent[1][1] + l]]);
2556
2556
  let f = ao(d) ? La(t, d, o.measured) : t;
2557
- return (o.measured.width === void 0 || o.measured.height === void 0) && a?.("015", J.error015()), {
2557
+ return (o.measured.width === void 0 || o.measured.height === void 0) && a?.("015", fa.error015()), {
2558
2558
  position: {
2559
2559
  x: f.x - c + (o.measured.width ?? 0) * u[0],
2560
2560
  y: f.y - l + (o.measured.height ?? 0) * u[1]
@@ -2887,7 +2887,7 @@ function Do({ sourceNode: e, targetNode: t, width: n, height: r, transform: i })
2887
2887
  }, Ua(a)) > 0;
2888
2888
  }
2889
2889
  var Oo = ({ source: e, sourceHandle: t, target: n, targetHandle: r }) => `xy-edge__${e}${t || ""}-${n}${r || ""}`, ko = (e, t) => t.some((t) => t.source === e.source && t.target === e.target && (t.sourceHandle === e.sourceHandle || !t.sourceHandle && !e.sourceHandle) && (t.targetHandle === e.targetHandle || !t.targetHandle && !e.targetHandle)), Ao = (e, t, n = {}) => {
2890
- if (!e.source || !e.target) return n.onError?.("006", J.error006()), t;
2890
+ if (!e.source || !e.target) return n.onError?.("006", fa.error006()), t;
2891
2891
  let r = n.getEdgeId || Oo, i;
2892
2892
  return i = wa(e) ? { ...e } : {
2893
2893
  ...e,
@@ -3072,7 +3072,7 @@ function zo(e) {
3072
3072
  let { sourceNode: t, targetNode: n } = e;
3073
3073
  if (!Ro(t) || !Ro(n)) return null;
3074
3074
  let r = t.internals.handleBounds || Bo(t.handles), i = n.internals.handleBounds || Bo(n.handles), a = Ho(r?.source ?? [], e.sourceHandle), o = Ho(e.connectionMode === ga.Strict ? i?.target ?? [] : (i?.target ?? []).concat(i?.source ?? []), e.targetHandle);
3075
- if (!a || !o) return e.onError?.("008", J.error008(a ? "target" : "source", {
3075
+ if (!a || !o) return e.onError?.("008", fa.error008(a ? "target" : "source", {
3076
3076
  id: e.id,
3077
3077
  sourceHandle: e.sourceHandle,
3078
3078
  targetHandle: e.targetHandle
@@ -3473,7 +3473,7 @@ function ms({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
3473
3473
  y: 0
3474
3474
  }, u = null, d = !1, f = null, p = !1, m = !1, h = null;
3475
3475
  function g({ noDragClassName: g, handleSelector: _, domNode: v, isSelectable: y, nodeId: b, nodeClickDistance: x = 0 }) {
3476
- f = K(v);
3476
+ f = q(v);
3477
3477
  function S({ x: e, y: n }) {
3478
3478
  let { nodeLookup: i, nodeExtent: o, snapGrid: c, snapToGrid: l, nodeOrigin: u, onNodeDrag: d, onSelectionDrag: f, onError: p, updateNodePositions: g } = t();
3479
3479
  a = {
@@ -3551,7 +3551,7 @@ function ms({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
3551
3551
  n?.(r.sourceEvent, s, e, t), h?.(r.sourceEvent, e, t), b || g?.(r.sourceEvent, t);
3552
3552
  }
3553
3553
  }
3554
- let T = Yt().clickDistance(x).on("start", (e) => {
3554
+ let T = Jt().clickDistance(x).on("start", (e) => {
3555
3555
  let { domNode: n, nodeDragThreshold: r, transform: i, snapGrid: o, snapToGrid: s } = t();
3556
3556
  u = n?.getBoundingClientRect() || null, p = !1, m = !1, h = e.sourceEvent, r === 0 && w(e), a = po(e.sourceEvent, {
3557
3557
  transform: i,
@@ -3777,13 +3777,13 @@ var ws = {
3777
3777
  isValid: Cs
3778
3778
  };
3779
3779
  function Ts({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
3780
- let i = K(e);
3780
+ let i = q(e);
3781
3781
  function a({ translateExtent: e, width: a, height: o, zoomStep: s = 1, pannable: c = !0, zoomable: l = !0, inversePan: u = !1 }) {
3782
3782
  let d = (e) => {
3783
3783
  if (e.sourceEvent.type !== "wheel" || !t) return;
3784
3784
  let r = n(), i = e.sourceEvent.ctrlKey && io() ? 10 : 1, a = -e.sourceEvent.deltaY * (e.sourceEvent.deltaMode === 1 ? .05 : e.sourceEvent.deltaMode ? 1 : .002) * s, o = r[2] * 2 ** (a * i);
3785
3785
  t.scaleTo(o);
3786
- }, f = [0, 0], p = fa().on("start", (e) => {
3786
+ }, f = [0, 0], p = da().on("start", (e) => {
3787
3787
  (e.sourceEvent.type === "mousedown" || e.sourceEvent.type === "touchstart") && (f = [e.sourceEvent.clientX ?? e.sourceEvent.touches[0].clientX, e.sourceEvent.clientY ?? e.sourceEvent.touches[0].clientY]);
3788
3788
  }).on("zoom", c ? (i) => {
3789
3789
  let s = n();
@@ -3808,14 +3808,14 @@ function Ts({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
3808
3808
  return {
3809
3809
  update: a,
3810
3810
  destroy: o,
3811
- pointer: It
3811
+ pointer: Ft
3812
3812
  };
3813
3813
  }
3814
3814
  var Es = (e) => ({
3815
3815
  x: e.x,
3816
3816
  y: e.y,
3817
3817
  zoom: e.k
3818
- }), Ds = ({ x: e, y: t, zoom: n }) => na.translate(e, t).scale(n), Os = (e, t) => e.target.closest(`.${t}`), ks = (e, t) => t === 2 && Array.isArray(e) && e.includes(2), As = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2, js = (e, t = 0, n = As, r = () => {}) => {
3818
+ }), Ds = ({ x: e, y: t, zoom: n }) => ta.translate(e, t).scale(n), Os = (e, t) => e.target.closest(`.${t}`), ks = (e, t) => t === 2 && Array.isArray(e) && e.includes(2), As = (e) => ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2, js = (e, t = 0, n = As, r = () => {}) => {
3819
3819
  let i = typeof t == "number" && t > 0;
3820
3820
  return i || r(), i ? e.transition().duration(t).ease(n).on("end", r) : e;
3821
3821
  }, Ms = (e) => {
@@ -3828,7 +3828,7 @@ function Ns({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
3828
3828
  u.preventDefault(), u.stopImmediatePropagation();
3829
3829
  let d = n.property("__zoom").k || 1;
3830
3830
  if (u.ctrlKey && o) {
3831
- let e = It(u), t = d * 2 ** Ms(u);
3831
+ let e = Ft(u), t = d * 2 ** Ms(u);
3832
3832
  r.scaleTo(n, t, e, u);
3833
3833
  return;
3834
3834
  }
@@ -3893,7 +3893,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
3893
3893
  timerId: void 0,
3894
3894
  panScrollTimeout: void 0,
3895
3895
  isPanScrolling: !1
3896
- }, u = e.getBoundingClientRect(), d = fa().scaleExtent([t, n]).translateExtent(r), f = K(e).call(d);
3896
+ }, u = e.getBoundingClientRect(), d = da().scaleExtent([t, n]).translateExtent(r), f = q(e).call(d);
3897
3897
  v({
3898
3898
  x: i.x,
3899
3899
  y: i.y,
@@ -3903,7 +3903,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
3903
3903
  d.wheelDelta(Ms);
3904
3904
  async function h(e, t) {
3905
3905
  return f ? new Promise((n) => {
3906
- d?.interpolate(t?.interpolate === "linear" ? Qn : fr).transform(js(f, t?.duration, t?.ease, () => n(!0)), e);
3906
+ d?.interpolate(t?.interpolate === "linear" ? Zn : dr).transform(js(f, t?.duration, t?.ease, () => n(!0)), e);
3907
3907
  }) : !1;
3908
3908
  }
3909
3909
  function g({ noWheelClassName: e, noPanClassName: t, onPaneContextMenu: n, userSelectionActive: r, panOnScroll: i, panOnDrag: u, panOnScrollMode: h, panOnScrollSpeed: g, preventScrolling: v, zoomOnPinch: y, zoomOnScroll: b, zoomOnDoubleClick: x, zoomActivationKeyPressed: S, lib: C, onTransformChange: w, connectionInProgress: T, paneClickDistance: E, selectionOnDrag: D }) {
@@ -3983,7 +3983,7 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
3983
3983
  }
3984
3984
  }
3985
3985
  function x() {
3986
- let e = f ? ra(f.node()) : {
3986
+ let e = f ? na(f.node()) : {
3987
3987
  x: 0,
3988
3988
  y: 0,
3989
3989
  k: 1
@@ -3996,12 +3996,12 @@ function zs({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
3996
3996
  }
3997
3997
  async function S(e, t) {
3998
3998
  return f ? new Promise((n) => {
3999
- d?.interpolate(t?.interpolate === "linear" ? Qn : fr).scaleTo(js(f, t?.duration, t?.ease, () => n(!0)), e);
3999
+ d?.interpolate(t?.interpolate === "linear" ? Zn : dr).scaleTo(js(f, t?.duration, t?.ease, () => n(!0)), e);
4000
4000
  }) : !1;
4001
4001
  }
4002
4002
  async function C(e, t) {
4003
4003
  return f ? new Promise((n) => {
4004
- d?.interpolate(t?.interpolate === "linear" ? Qn : fr).scaleBy(js(f, t?.duration, t?.ease, () => n(!0)), e);
4004
+ d?.interpolate(t?.interpolate === "linear" ? Zn : dr).scaleBy(js(f, t?.duration, t?.ease, () => n(!0)), e);
4005
4005
  }) : !1;
4006
4006
  }
4007
4007
  function w(e) {
@@ -4115,7 +4115,7 @@ function Xs(e, t, n) {
4115
4115
  return [[r - s, i - c], [r + a - s, i + o - c]];
4116
4116
  }
4117
4117
  function Zs({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: i }) {
4118
- let a = K(e), o = {
4118
+ let a = q(e), o = {
4119
4119
  controlDirection: Hs("bottom-right"),
4120
4120
  boundaries: {
4121
4121
  minWidth: 0,
@@ -4134,7 +4134,7 @@ function Zs({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: i })
4134
4134
  keepAspectRatio: c,
4135
4135
  controlDirection: Hs(e)
4136
4136
  };
4137
- let g, _ = null, v = [], y, b, x, S = !1, C = Yt().on("start", (e) => {
4137
+ let g, _ = null, v = [], y, b, x, S = !1, C = Jt().on("start", (e) => {
4138
4138
  let { nodeLookup: r, transform: i, snapGrid: a, snapToGrid: o, nodeOrigin: s, paneDomNode: c } = n();
4139
4139
  if (g = r.get(t), !g) return;
4140
4140
  _ = c?.getBoundingClientRect() ?? null;
@@ -4299,7 +4299,7 @@ function X(e, t) {
4299
4299
  }
4300
4300
  //#endregion
4301
4301
  //#region node_modules/@xyflow/react/dist/esm/index.js
4302
- var uc = t(null), dc = uc.Provider, fc = J.error001("react");
4302
+ var uc = t(null), dc = uc.Provider, fc = fa.error001("react");
4303
4303
  function Z(e, t) {
4304
4304
  let n = o(uc);
4305
4305
  if (n === null) throw Error(fc);
@@ -4902,7 +4902,7 @@ function pl(e) {
4902
4902
  let n = () => {
4903
4903
  if (!e.current || !(e.current.checkVisibility?.() ?? !0)) return !1;
4904
4904
  let n = mo(e.current);
4905
- (n.height === 0 || n.width === 0) && t.getState().onError?.("004", J.error004()), t.setState({
4905
+ (n.height === 0 || n.width === 0) && t.getState().onError?.("004", fa.error004()), t.setState({
4906
4906
  width: n.width || 500,
4907
4907
  height: n.height || 500
4908
4908
  });
@@ -5177,7 +5177,7 @@ function xl({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = va.Full
5177
5177
  function Sl({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
5178
5178
  let { addSelectedNodes: i, unselectNodesAndEdges: a, multiSelectionActive: o, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
5179
5179
  if (!l) {
5180
- c?.("012", J.error012(e));
5180
+ c?.("012", fa.error012(e));
5181
5181
  return;
5182
5182
  }
5183
5183
  t.setState({ nodesSelectionActive: !1 }), l.selected ? (n || l.selected && o) && (a({
@@ -5270,7 +5270,7 @@ var Ol = () => o(El), kl = (e) => ({
5270
5270
  };
5271
5271
  function jl({ type: e = "source", position: t = Y.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: i = !0, isConnectableEnd: a = !0, id: o, onConnect: s, children: c, className: l, onMouseDown: u, onTouchStart: d, ...f }, p) {
5272
5272
  let m = o || null, h = e === "target", _ = Q(), v = Ol(), { connectOnClick: y, noPanClassName: b, rfId: x } = Z(kl, X), { connectingFrom: C, connectingTo: w, clickConnecting: T, isPossibleEndHandle: E, connectionInProcess: D, clickConnectionInProcess: O, valid: k } = Z(Al(v, m, e), X);
5273
- v || _.getState().onError?.("010", J.error010());
5273
+ v || _.getState().onError?.("010", fa.error010());
5274
5274
  let A = (e) => {
5275
5275
  let { defaultEdgeOptions: t, onConnect: n, hasDefaultEdges: r } = _.getState(), i = {
5276
5276
  ...t,
@@ -5496,7 +5496,7 @@ var Hl = typeof window < "u" ? window : void 0, Ul = (e) => ({
5496
5496
  userSelectionActive: e.userSelectionActive
5497
5497
  });
5498
5498
  function Wl({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: i, onPaneContextMenu: a, onPaneScroll: o, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: m, panActivationKeyCode: h, zoomActivationKeyCode: v, elementsSelectable: y, zoomOnScroll: b, zoomOnPinch: x, panOnScroll: S, panOnScrollSpeed: C, panOnScrollMode: w, zoomOnDoubleClick: T, panOnDrag: E, autoPanOnSelection: D, defaultViewport: O, translateExtent: k, minZoom: A, maxZoom: j, preventScrolling: M, onSelectionContextMenu: N, noWheelClassName: P, noPanClassName: F, disableKeyboardA11y: I, onViewportChange: L, isControlledViewport: R }) {
5499
- let { nodesSelectionActive: ee, userSelectionActive: z } = Z(Ul, X), B = zc(l, { target: Hl }), V = zc(h, { target: Hl }), H = V || E, U = V || S, W = u && H !== !0, te = B || z || W;
5499
+ let { nodesSelectionActive: ee, userSelectionActive: z } = Z(Ul, X), B = zc(l, { target: Hl }), V = zc(h, { target: Hl }), H = V || E, U = V || S, W = u && H !== !0, G = B || z || W;
5500
5500
  return fl({
5501
5501
  deleteKeyCode: c,
5502
5502
  multiSelectionKeyCode: m
@@ -5533,7 +5533,7 @@ function Wl({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove:
5533
5533
  onPaneScroll: o,
5534
5534
  panOnDrag: H,
5535
5535
  autoPanOnSelection: D,
5536
- isSelecting: !!te,
5536
+ isSelecting: !!G,
5537
5537
  selectionMode: d,
5538
5538
  selectionKeyPressed: B,
5539
5539
  paneClickDistance: s,
@@ -5604,7 +5604,7 @@ function Zl({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
5604
5604
  isParent: r
5605
5605
  };
5606
5606
  }, X), w = b.type || "default", T = _?.[w] || Rl[w];
5607
- T === void 0 && (y?.("003", J.error003(w)), w = "default", T = _?.default || Rl.default);
5607
+ T === void 0 && (y?.("003", fa.error003(w)), w = "default", T = _?.default || Rl.default);
5608
5608
  let E = !!(b.draggable || s && b.draggable === void 0), D = !!(b.selectable || c && b.selectable === void 0), O = !!(b.connectable || l && b.connectable === void 0), k = !!(b.focusable || u && b.focusable === void 0), A = Q(), j = so(b), M = Xl({
5609
5609
  node: b,
5610
5610
  nodeType: w,
@@ -5804,7 +5804,7 @@ var ru = ({ color: e = "none", strokeWidth: t = 1 }) => g("polyline", {
5804
5804
  };
5805
5805
  function ou(e) {
5806
5806
  let t = Q();
5807
- return u(() => Object.prototype.hasOwnProperty.call(au, e) ? au[e] : (t.getState().onError?.("009", J.error009(e)), null), [e]);
5807
+ return u(() => Object.prototype.hasOwnProperty.call(au, e) ? au[e] : (t.getState().onError?.("009", fa.error009(e)), null), [e]);
5808
5808
  }
5809
5809
  var su = ({ id: e, type: t, color: n, width: r = 12.5, height: i = 12.5, markerUnits: a = "strokeWidth", strokeWidth: o, orient: s = "auto-start-reverse" }) => {
5810
5810
  let c = ou(t);
@@ -6193,7 +6193,7 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6193
6193
  ...E
6194
6194
  } : E;
6195
6195
  let O = E.type || "default", k = x?.[O] || Au[O];
6196
- k === void 0 && (w?.("011", J.error011(O)), O = "default", k = x?.default || Au.default);
6196
+ k === void 0 && (w?.("011", fa.error011(O)), O = "default", k = x?.default || Au.default);
6197
6197
  let A = !!(E.focusable || t && E.focusable === void 0), j = h !== void 0 && (E.reconnectable || n && E.reconnectable === void 0), M = !!(E.selectable || r && E.selectable === void 0), N = d(null), [P, F] = f(!1), [I, L] = f(!1), R = Q(), { zIndex: ee, sourceX: z, sourceY: B, targetX: V, targetY: H, sourcePosition: U, targetPosition: W } = Z(a((t) => {
6198
6198
  let n = t.nodeLookup.get(E.source), r = t.nodeLookup.get(E.target);
6199
6199
  if (!n || !r) return {
@@ -6227,23 +6227,23 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6227
6227
  E.targetHandle,
6228
6228
  E.selected,
6229
6229
  E.zIndex
6230
- ]), X), te = u(() => E.markerStart ? `url('#${Uo(E.markerStart, b)}')` : void 0, [E.markerStart, b]), ne = u(() => E.markerEnd ? `url('#${Uo(E.markerEnd, b)}')` : void 0, [E.markerEnd, b]);
6230
+ ]), X), G = u(() => E.markerStart ? `url('#${Uo(E.markerStart, b)}')` : void 0, [E.markerStart, b]), te = u(() => E.markerEnd ? `url('#${Uo(E.markerEnd, b)}')` : void 0, [E.markerEnd, b]);
6231
6231
  if (E.hidden || z === null || B === null || V === null || H === null) return null;
6232
- let re = (t) => {
6232
+ let ne = (t) => {
6233
6233
  let { addSelectedEdges: n, unselectNodesAndEdges: r, multiSelectionActive: a } = R.getState();
6234
6234
  M && (R.setState({ nodesSelectionActive: !1 }), E.selected && a ? (r({
6235
6235
  nodes: [],
6236
6236
  edges: [E]
6237
6237
  }), N.current?.blur()) : n([e])), i && i(t, E);
6238
- }, ie = o ? (e) => {
6238
+ }, re = o ? (e) => {
6239
6239
  o(e, { ...E });
6240
- } : void 0, ae = s ? (e) => {
6240
+ } : void 0, ie = s ? (e) => {
6241
6241
  s(e, { ...E });
6242
- } : void 0, oe = c ? (e) => {
6242
+ } : void 0, ae = c ? (e) => {
6243
6243
  c(e, { ...E });
6244
- } : void 0, se = l ? (e) => {
6244
+ } : void 0, oe = l ? (e) => {
6245
6245
  l(e, { ...E });
6246
- } : void 0, ce = p ? (e) => {
6246
+ } : void 0, se = p ? (e) => {
6247
6247
  p(e, { ...E });
6248
6248
  } : void 0;
6249
6249
  return g("svg", {
@@ -6262,12 +6262,12 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6262
6262
  selectable: M
6263
6263
  }
6264
6264
  ]),
6265
- onClick: re,
6266
- onDoubleClick: ie,
6267
- onContextMenu: ae,
6268
- onMouseEnter: oe,
6269
- onMouseMove: se,
6270
- onMouseLeave: ce,
6265
+ onClick: ne,
6266
+ onDoubleClick: re,
6267
+ onContextMenu: ie,
6268
+ onMouseEnter: ae,
6269
+ onMouseMove: oe,
6270
+ onMouseLeave: se,
6271
6271
  onKeyDown: A ? (t) => {
6272
6272
  if (!T && ma.includes(t.key) && M) {
6273
6273
  let { unselectNodesAndEdges: n, addSelectedEdges: r } = R.getState();
@@ -6308,8 +6308,8 @@ function Lu({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6308
6308
  style: E.style,
6309
6309
  sourceHandleId: E.sourceHandle,
6310
6310
  targetHandleId: E.targetHandle,
6311
- markerStart: te,
6312
- markerEnd: ne,
6311
+ markerStart: G,
6312
+ markerEnd: te,
6313
6313
  pathOptions: "pathOptions" in E ? E.pathOptions : void 0,
6314
6314
  interactionWidth: E.interactionWidth
6315
6315
  }), j && g(Iu, {
@@ -6491,7 +6491,7 @@ function ed(e = $u) {
6491
6491
  if (process.env.NODE_ENV === "development") {
6492
6492
  let r = new Set([...Object.keys(t.current), ...Object.keys(e)]);
6493
6493
  for (let i of r) if (t.current[i] !== e[i]) {
6494
- n.getState().onError?.("002", J.error002());
6494
+ n.getState().onError?.("002", fa.error002());
6495
6495
  break;
6496
6496
  }
6497
6497
  t.current = e;
@@ -6503,19 +6503,19 @@ function td() {
6503
6503
  c(() => {
6504
6504
  if (process.env.NODE_ENV === "development" && !t.current) {
6505
6505
  let n = document.querySelector(".react-flow__pane");
6506
- n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", J.error013("react")), t.current = !0;
6506
+ n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", fa.error013("react")), t.current = !0;
6507
6507
  }
6508
6508
  }, []);
6509
6509
  }
6510
- function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: v, connectionLineContainerStyle: y, selectionKeyCode: b, selectionOnDrag: x, selectionMode: S, multiSelectionKeyCode: C, panActivationKeyCode: w, zoomActivationKeyCode: T, deleteKeyCode: E, onlyRenderVisibleElements: D, elementsSelectable: O, defaultViewport: k, translateExtent: A, minZoom: j, maxZoom: M, preventScrolling: N, defaultMarkerColor: P, zoomOnScroll: F, zoomOnPinch: I, panOnScroll: L, panOnScrollSpeed: R, panOnScrollMode: ee, zoomOnDoubleClick: z, panOnDrag: B, autoPanOnSelection: V, onPaneClick: H, onPaneMouseEnter: U, onPaneMouseMove: W, onPaneMouseLeave: te, onPaneScroll: ne, onPaneContextMenu: re, paneClickDistance: ie, nodeClickDistance: ae, onEdgeContextMenu: oe, onEdgeMouseEnter: se, onEdgeMouseMove: ce, onEdgeMouseLeave: le, reconnectRadius: ue, onReconnect: de, onReconnectStart: fe, onReconnectEnd: pe, noDragClassName: me, noWheelClassName: he, noPanClassName: ge, disableKeyboardA11y: _e, nodeExtent: ve, rfId: ye, viewport: be, onViewportChange: xe }) {
6511
- return ed(e), ed(t), td(), Wu(n), Ku(be), g(Gl, {
6510
+ function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: i, onNodeDoubleClick: a, onEdgeDoubleClick: o, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: m, connectionLineStyle: h, connectionLineComponent: v, connectionLineContainerStyle: y, selectionKeyCode: b, selectionOnDrag: x, selectionMode: S, multiSelectionKeyCode: C, panActivationKeyCode: w, zoomActivationKeyCode: T, deleteKeyCode: E, onlyRenderVisibleElements: D, elementsSelectable: O, defaultViewport: k, translateExtent: A, minZoom: j, maxZoom: M, preventScrolling: N, defaultMarkerColor: P, zoomOnScroll: F, zoomOnPinch: I, panOnScroll: L, panOnScrollSpeed: R, panOnScrollMode: ee, zoomOnDoubleClick: z, panOnDrag: B, autoPanOnSelection: V, onPaneClick: H, onPaneMouseEnter: U, onPaneMouseMove: W, onPaneMouseLeave: G, onPaneScroll: te, onPaneContextMenu: ne, paneClickDistance: re, nodeClickDistance: ie, onEdgeContextMenu: ae, onEdgeMouseEnter: oe, onEdgeMouseMove: se, onEdgeMouseLeave: ce, reconnectRadius: le, onReconnect: ue, onReconnectStart: de, onReconnectEnd: fe, noDragClassName: pe, noWheelClassName: me, noPanClassName: he, disableKeyboardA11y: ge, nodeExtent: _e, rfId: ve, viewport: ye, onViewportChange: be }) {
6511
+ return ed(e), ed(t), td(), Wu(n), Ku(ye), g(Gl, {
6512
6512
  onPaneClick: H,
6513
6513
  onPaneMouseEnter: U,
6514
6514
  onPaneMouseMove: W,
6515
- onPaneMouseLeave: te,
6516
- onPaneContextMenu: re,
6517
- onPaneScroll: ne,
6518
- paneClickDistance: ie,
6515
+ onPaneMouseLeave: G,
6516
+ onPaneContextMenu: ne,
6517
+ onPaneScroll: te,
6518
+ paneClickDistance: re,
6519
6519
  deleteKeyCode: E,
6520
6520
  selectionKeyCode: b,
6521
6521
  selectionOnDrag: x,
@@ -6540,30 +6540,30 @@ function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick
6540
6540
  maxZoom: M,
6541
6541
  onSelectionContextMenu: d,
6542
6542
  preventScrolling: N,
6543
- noDragClassName: me,
6544
- noWheelClassName: he,
6545
- noPanClassName: ge,
6546
- disableKeyboardA11y: _e,
6547
- onViewportChange: xe,
6548
- isControlledViewport: !!be,
6543
+ noDragClassName: pe,
6544
+ noWheelClassName: me,
6545
+ noPanClassName: he,
6546
+ disableKeyboardA11y: ge,
6547
+ onViewportChange: be,
6548
+ isControlledViewport: !!ye,
6549
6549
  children: _(Uu, { children: [
6550
6550
  g(Vu, {
6551
6551
  edgeTypes: t,
6552
6552
  onEdgeClick: i,
6553
6553
  onEdgeDoubleClick: o,
6554
- onReconnect: de,
6555
- onReconnectStart: fe,
6556
- onReconnectEnd: pe,
6554
+ onReconnect: ue,
6555
+ onReconnectStart: de,
6556
+ onReconnectEnd: fe,
6557
6557
  onlyRenderVisibleElements: D,
6558
- onEdgeContextMenu: oe,
6559
- onEdgeMouseEnter: se,
6560
- onEdgeMouseMove: ce,
6561
- onEdgeMouseLeave: le,
6562
- reconnectRadius: ue,
6558
+ onEdgeContextMenu: ae,
6559
+ onEdgeMouseEnter: oe,
6560
+ onEdgeMouseMove: se,
6561
+ onEdgeMouseLeave: ce,
6562
+ reconnectRadius: le,
6563
6563
  defaultMarkerColor: P,
6564
- noPanClassName: ge,
6565
- disableKeyboardA11y: _e,
6566
- rfId: ye
6564
+ noPanClassName: he,
6565
+ disableKeyboardA11y: ge,
6566
+ rfId: ve
6567
6567
  }),
6568
6568
  g(Zu, {
6569
6569
  style: h,
@@ -6580,13 +6580,13 @@ function nd({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick
6580
6580
  onNodeMouseMove: c,
6581
6581
  onNodeMouseLeave: l,
6582
6582
  onNodeContextMenu: u,
6583
- nodeClickDistance: ae,
6583
+ nodeClickDistance: ie,
6584
6584
  onlyRenderVisibleElements: D,
6585
- noPanClassName: ge,
6586
- noDragClassName: me,
6587
- disableKeyboardA11y: _e,
6588
- nodeExtent: ve,
6589
- rfId: ye
6585
+ noPanClassName: he,
6586
+ noDragClassName: pe,
6587
+ disableKeyboardA11y: ge,
6588
+ nodeExtent: _e,
6589
+ rfId: ve
6590
6590
  }),
6591
6591
  g("div", { className: "react-flow__viewport-portal" })
6592
6592
  ] })
@@ -6929,42 +6929,42 @@ var ld = {
6929
6929
  position: "relative",
6930
6930
  zIndex: 0
6931
6931
  };
6932
- function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o, edgeTypes: s, onNodeClick: c, onEdgeClick: l, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: p, onConnect: m, onConnectStart: h, onConnectEnd: v, onClickConnectStart: y, onClickConnectEnd: b, onNodeMouseEnter: x, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: I, onSelectionContextMenu: L, onSelectionStart: R, onSelectionEnd: ee, onBeforeDelete: z, connectionMode: B, connectionLineType: V = ba.Bezier, connectionLineStyle: H, connectionLineComponent: U, connectionLineContainerStyle: W, deleteKeyCode: te = "Backspace", selectionKeyCode: ne = "Shift", selectionOnDrag: re = !1, selectionMode: ie = va.Full, panActivationKeyCode: ae = "Space", multiSelectionKeyCode: oe = io() ? "Meta" : "Control", zoomActivationKeyCode: se = io() ? "Meta" : "Control", snapToGrid: ce, snapGrid: le, onlyRenderVisibleElements: ue = !1, selectNodesOnDrag: de, nodesDraggable: fe, autoPanOnNodeFocus: pe, nodesConnectable: me, nodesFocusable: he, nodeOrigin: ge = Ac, edgesFocusable: _e, edgesReconnectable: ve, elementsSelectable: ye = !0, defaultViewport: be = jc, minZoom: xe = .5, maxZoom: Se = 2, translateExtent: Ce = pa, preventScrolling: we = !0, nodeExtent: Te, defaultMarkerColor: Ee = "#b1b1b7", zoomOnScroll: De = !0, zoomOnPinch: Oe = !0, panOnScroll: ke = !1, panOnScrollSpeed: Ae = .5, panOnScrollMode: je = _a.Free, zoomOnDoubleClick: Me = !0, panOnDrag: Ne = !0, onPaneClick: Pe, onPaneMouseEnter: Fe, onPaneMouseMove: Ie, onPaneMouseLeave: Le, onPaneScroll: Re, onPaneContextMenu: ze, paneClickDistance: Be = 1, nodeClickDistance: Ve = 0, children: He, onReconnect: Ue, onReconnectStart: We, onReconnectEnd: Ge, onEdgeContextMenu: Ke, onEdgeDoubleClick: qe, onEdgeMouseEnter: Je, onEdgeMouseMove: Ye, onEdgeMouseLeave: Xe, reconnectRadius: Ze = 10, onNodesChange: Qe, onEdgesChange: $e, noDragClassName: et = "nodrag", noWheelClassName: tt = "nowheel", noPanClassName: nt = "nopan", fitView: rt, fitViewOptions: it, connectOnClick: at, attributionPosition: ot, proOptions: st, defaultEdgeOptions: ct, elevateNodesOnSelect: lt = !0, elevateEdgesOnSelect: ut = !1, disableKeyboardA11y: dt = !1, autoPanOnConnect: ft, autoPanOnNodeDrag: pt, autoPanOnSelection: mt = !0, autoPanSpeed: ht, connectionRadius: gt, isValidConnection: _t, onError: vt, style: yt, id: bt, nodeDragThreshold: xt, connectionDragThreshold: St, viewport: Ct, onViewportChange: wt, width: Tt, height: Et, colorMode: Dt = "light", debug: Ot, onScroll: kt, ariaLabelConfig: At, zIndexMode: jt = "basic", ...Mt }, G) {
6933
- let Nt = bt || "1", Pt = Lc(Dt), K = a((e) => {
6932
+ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i, nodeTypes: o, edgeTypes: s, onNodeClick: c, onEdgeClick: l, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: p, onConnect: m, onConnectStart: h, onConnectEnd: v, onClickConnectStart: y, onClickConnectEnd: b, onNodeMouseEnter: x, onNodeMouseMove: C, onNodeMouseLeave: w, onNodeContextMenu: T, onNodeDoubleClick: E, onNodeDragStart: D, onNodeDrag: O, onNodeDragStop: k, onNodesDelete: A, onEdgesDelete: j, onDelete: M, onSelectionChange: N, onSelectionDragStart: P, onSelectionDrag: F, onSelectionDragStop: I, onSelectionContextMenu: L, onSelectionStart: R, onSelectionEnd: ee, onBeforeDelete: z, connectionMode: B, connectionLineType: V = ba.Bezier, connectionLineStyle: H, connectionLineComponent: U, connectionLineContainerStyle: W, deleteKeyCode: G = "Backspace", selectionKeyCode: te = "Shift", selectionOnDrag: ne = !1, selectionMode: re = va.Full, panActivationKeyCode: ie = "Space", multiSelectionKeyCode: ae = io() ? "Meta" : "Control", zoomActivationKeyCode: oe = io() ? "Meta" : "Control", snapToGrid: se, snapGrid: ce, onlyRenderVisibleElements: le = !1, selectNodesOnDrag: ue, nodesDraggable: de, autoPanOnNodeFocus: fe, nodesConnectable: pe, nodesFocusable: me, nodeOrigin: he = Ac, edgesFocusable: ge, edgesReconnectable: _e, elementsSelectable: ve = !0, defaultViewport: ye = jc, minZoom: be = .5, maxZoom: xe = 2, translateExtent: Se = pa, preventScrolling: Ce = !0, nodeExtent: we, defaultMarkerColor: Te = "#b1b1b7", zoomOnScroll: Ee = !0, zoomOnPinch: De = !0, panOnScroll: Oe = !1, panOnScrollSpeed: ke = .5, panOnScrollMode: Ae = _a.Free, zoomOnDoubleClick: je = !0, panOnDrag: Me = !0, onPaneClick: Ne, onPaneMouseEnter: Pe, onPaneMouseMove: Fe, onPaneMouseLeave: Ie, onPaneScroll: Le, onPaneContextMenu: Re, paneClickDistance: ze = 1, nodeClickDistance: Be = 0, children: Ve, onReconnect: He, onReconnectStart: Ue, onReconnectEnd: We, onEdgeContextMenu: Ge, onEdgeDoubleClick: Ke, onEdgeMouseEnter: qe, onEdgeMouseMove: Je, onEdgeMouseLeave: Ye, reconnectRadius: Xe = 10, onNodesChange: Ze, onEdgesChange: Qe, noDragClassName: $e = "nodrag", noWheelClassName: et = "nowheel", noPanClassName: tt = "nopan", fitView: nt, fitViewOptions: rt, connectOnClick: it, attributionPosition: at, proOptions: ot, defaultEdgeOptions: st, elevateNodesOnSelect: ct = !0, elevateEdgesOnSelect: lt = !1, disableKeyboardA11y: ut = !1, autoPanOnConnect: dt, autoPanOnNodeDrag: ft, autoPanOnSelection: pt = !0, autoPanSpeed: mt, connectionRadius: ht, isValidConnection: gt, onError: _t, style: vt, id: yt, nodeDragThreshold: bt, connectionDragThreshold: xt, viewport: St, onViewportChange: Ct, width: wt, height: Tt, colorMode: Et = "light", debug: Dt, onScroll: Ot, ariaLabelConfig: kt, zIndexMode: At = "basic", ...jt }, K) {
6933
+ let Mt = yt || "1", Nt = Lc(Et), q = a((e) => {
6934
6934
  e.currentTarget.scrollTo({
6935
6935
  top: 0,
6936
6936
  left: 0,
6937
6937
  behavior: "instant"
6938
- }), kt?.(e);
6939
- }, [kt]);
6938
+ }), Ot?.(e);
6939
+ }, [Ot]);
6940
6940
  return g("div", {
6941
6941
  "data-testid": "rf__wrapper",
6942
- ...Mt,
6943
- onScroll: K,
6942
+ ...jt,
6943
+ onScroll: q,
6944
6944
  style: {
6945
- ...yt,
6945
+ ...vt,
6946
6946
  ...ld
6947
6947
  },
6948
- ref: G,
6948
+ ref: K,
6949
6949
  className: S([
6950
6950
  "react-flow",
6951
6951
  i,
6952
- Pt
6952
+ Nt
6953
6953
  ]),
6954
- id: bt,
6954
+ id: yt,
6955
6955
  role: "application",
6956
6956
  children: _(cd, {
6957
6957
  nodes: e,
6958
6958
  edges: t,
6959
- width: Tt,
6960
- height: Et,
6961
- fitView: rt,
6962
- fitViewOptions: it,
6963
- minZoom: xe,
6964
- maxZoom: Se,
6965
- nodeOrigin: ge,
6966
- nodeExtent: Te,
6967
- zIndexMode: jt,
6959
+ width: wt,
6960
+ height: Tt,
6961
+ fitView: nt,
6962
+ fitViewOptions: rt,
6963
+ minZoom: be,
6964
+ maxZoom: xe,
6965
+ nodeOrigin: he,
6966
+ nodeExtent: we,
6967
+ zIndexMode: At,
6968
6968
  children: [
6969
6969
  g(Fc, {
6970
6970
  nodes: e,
@@ -6976,28 +6976,28 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
6976
6976
  onConnectEnd: v,
6977
6977
  onClickConnectStart: y,
6978
6978
  onClickConnectEnd: b,
6979
- nodesDraggable: fe,
6980
- autoPanOnNodeFocus: pe,
6981
- nodesConnectable: me,
6982
- nodesFocusable: he,
6983
- edgesFocusable: _e,
6984
- edgesReconnectable: ve,
6985
- elementsSelectable: ye,
6986
- elevateNodesOnSelect: lt,
6987
- elevateEdgesOnSelect: ut,
6988
- minZoom: xe,
6989
- maxZoom: Se,
6990
- nodeExtent: Te,
6991
- onNodesChange: Qe,
6992
- onEdgesChange: $e,
6993
- snapToGrid: ce,
6994
- snapGrid: le,
6979
+ nodesDraggable: de,
6980
+ autoPanOnNodeFocus: fe,
6981
+ nodesConnectable: pe,
6982
+ nodesFocusable: me,
6983
+ edgesFocusable: ge,
6984
+ edgesReconnectable: _e,
6985
+ elementsSelectable: ve,
6986
+ elevateNodesOnSelect: ct,
6987
+ elevateEdgesOnSelect: lt,
6988
+ minZoom: be,
6989
+ maxZoom: xe,
6990
+ nodeExtent: we,
6991
+ onNodesChange: Ze,
6992
+ onEdgesChange: Qe,
6993
+ snapToGrid: se,
6994
+ snapGrid: ce,
6995
6995
  connectionMode: B,
6996
- translateExtent: Ce,
6997
- connectOnClick: at,
6998
- defaultEdgeOptions: ct,
6999
- fitView: rt,
7000
- fitViewOptions: it,
6996
+ translateExtent: Se,
6997
+ connectOnClick: it,
6998
+ defaultEdgeOptions: st,
6999
+ fitView: nt,
7000
+ fitViewOptions: rt,
7001
7001
  onNodesDelete: A,
7002
7002
  onEdgesDelete: j,
7003
7003
  onDelete: M,
@@ -7010,22 +7010,22 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
7010
7010
  onMove: d,
7011
7011
  onMoveStart: f,
7012
7012
  onMoveEnd: p,
7013
- noPanClassName: nt,
7014
- nodeOrigin: ge,
7015
- rfId: Nt,
7016
- autoPanOnConnect: ft,
7017
- autoPanOnNodeDrag: pt,
7018
- autoPanSpeed: ht,
7019
- onError: vt,
7020
- connectionRadius: gt,
7021
- isValidConnection: _t,
7022
- selectNodesOnDrag: de,
7023
- nodeDragThreshold: xt,
7024
- connectionDragThreshold: St,
7013
+ noPanClassName: tt,
7014
+ nodeOrigin: he,
7015
+ rfId: Mt,
7016
+ autoPanOnConnect: dt,
7017
+ autoPanOnNodeDrag: ft,
7018
+ autoPanSpeed: mt,
7019
+ onError: _t,
7020
+ connectionRadius: ht,
7021
+ isValidConnection: gt,
7022
+ selectNodesOnDrag: ue,
7023
+ nodeDragThreshold: bt,
7024
+ connectionDragThreshold: xt,
7025
7025
  onBeforeDelete: z,
7026
- debug: Ot,
7027
- ariaLabelConfig: At,
7028
- zIndexMode: jt
7026
+ debug: Dt,
7027
+ ariaLabelConfig: kt,
7028
+ zIndexMode: At
7029
7029
  }),
7030
7030
  g(rd, {
7031
7031
  onInit: u,
@@ -7042,66 +7042,66 @@ function ud({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: i
7042
7042
  connectionLineStyle: H,
7043
7043
  connectionLineComponent: U,
7044
7044
  connectionLineContainerStyle: W,
7045
- selectionKeyCode: ne,
7046
- selectionOnDrag: re,
7047
- selectionMode: ie,
7048
- deleteKeyCode: te,
7049
- multiSelectionKeyCode: oe,
7050
- panActivationKeyCode: ae,
7051
- zoomActivationKeyCode: se,
7052
- onlyRenderVisibleElements: ue,
7053
- defaultViewport: be,
7054
- translateExtent: Ce,
7055
- minZoom: xe,
7056
- maxZoom: Se,
7057
- preventScrolling: we,
7058
- zoomOnScroll: De,
7059
- zoomOnPinch: Oe,
7060
- zoomOnDoubleClick: Me,
7061
- panOnScroll: ke,
7062
- panOnScrollSpeed: Ae,
7063
- panOnScrollMode: je,
7064
- panOnDrag: Ne,
7065
- autoPanOnSelection: mt,
7066
- onPaneClick: Pe,
7067
- onPaneMouseEnter: Fe,
7068
- onPaneMouseMove: Ie,
7069
- onPaneMouseLeave: Le,
7070
- onPaneScroll: Re,
7071
- onPaneContextMenu: ze,
7072
- paneClickDistance: Be,
7073
- nodeClickDistance: Ve,
7045
+ selectionKeyCode: te,
7046
+ selectionOnDrag: ne,
7047
+ selectionMode: re,
7048
+ deleteKeyCode: G,
7049
+ multiSelectionKeyCode: ae,
7050
+ panActivationKeyCode: ie,
7051
+ zoomActivationKeyCode: oe,
7052
+ onlyRenderVisibleElements: le,
7053
+ defaultViewport: ye,
7054
+ translateExtent: Se,
7055
+ minZoom: be,
7056
+ maxZoom: xe,
7057
+ preventScrolling: Ce,
7058
+ zoomOnScroll: Ee,
7059
+ zoomOnPinch: De,
7060
+ zoomOnDoubleClick: je,
7061
+ panOnScroll: Oe,
7062
+ panOnScrollSpeed: ke,
7063
+ panOnScrollMode: Ae,
7064
+ panOnDrag: Me,
7065
+ autoPanOnSelection: pt,
7066
+ onPaneClick: Ne,
7067
+ onPaneMouseEnter: Pe,
7068
+ onPaneMouseMove: Fe,
7069
+ onPaneMouseLeave: Ie,
7070
+ onPaneScroll: Le,
7071
+ onPaneContextMenu: Re,
7072
+ paneClickDistance: ze,
7073
+ nodeClickDistance: Be,
7074
7074
  onSelectionContextMenu: L,
7075
7075
  onSelectionStart: R,
7076
7076
  onSelectionEnd: ee,
7077
- onReconnect: Ue,
7078
- onReconnectStart: We,
7079
- onReconnectEnd: Ge,
7080
- onEdgeContextMenu: Ke,
7081
- onEdgeDoubleClick: qe,
7082
- onEdgeMouseEnter: Je,
7083
- onEdgeMouseMove: Ye,
7084
- onEdgeMouseLeave: Xe,
7085
- reconnectRadius: Ze,
7086
- defaultMarkerColor: Ee,
7087
- noDragClassName: et,
7088
- noWheelClassName: tt,
7089
- noPanClassName: nt,
7090
- rfId: Nt,
7091
- disableKeyboardA11y: dt,
7092
- nodeExtent: Te,
7093
- viewport: Ct,
7094
- onViewportChange: wt
7077
+ onReconnect: He,
7078
+ onReconnectStart: Ue,
7079
+ onReconnectEnd: We,
7080
+ onEdgeContextMenu: Ge,
7081
+ onEdgeDoubleClick: Ke,
7082
+ onEdgeMouseEnter: qe,
7083
+ onEdgeMouseMove: Je,
7084
+ onEdgeMouseLeave: Ye,
7085
+ reconnectRadius: Xe,
7086
+ defaultMarkerColor: Te,
7087
+ noDragClassName: $e,
7088
+ noWheelClassName: et,
7089
+ noPanClassName: tt,
7090
+ rfId: Mt,
7091
+ disableKeyboardA11y: ut,
7092
+ nodeExtent: we,
7093
+ viewport: St,
7094
+ onViewportChange: Ct
7095
7095
  }),
7096
7096
  g(kc, { onSelectionChange: N }),
7097
- He,
7097
+ Ve,
7098
7098
  g(Cc, {
7099
- proOptions: st,
7100
- position: ot
7099
+ proOptions: ot,
7100
+ position: at
7101
7101
  }),
7102
7102
  g(xc, {
7103
- rfId: Nt,
7104
- disableKeyboardA11y: dt
7103
+ rfId: Mt,
7104
+ disableKeyboardA11y: ut
7105
7105
  })
7106
7106
  ]
7107
7107
  })
@@ -7133,7 +7133,7 @@ var md = (e) => (t) => {
7133
7133
  function hd(e = { includeHiddenNodes: !1 }) {
7134
7134
  return Z(md(e));
7135
7135
  }
7136
- J.error014();
7136
+ fa.error014();
7137
7137
  function gd({ dimensions: e, lineWidth: t, variant: n, className: r }) {
7138
7138
  return g("path", {
7139
7139
  strokeWidth: t,
@@ -7411,18 +7411,18 @@ var Rd = i(Ld), zd = i(Id), Bd = 200, Vd = 150, Hd = (e) => !e.hidden, Ud = (e)
7411
7411
  };
7412
7412
  }, Wd = "react-flow__minimap-desc";
7413
7413
  function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClassName: i = "", nodeBorderRadius: o = 5, nodeStrokeWidth: s, nodeComponent: l, bgColor: u, maskColor: f, maskStrokeColor: p, maskStrokeWidth: m, position: h = "bottom-right", onClick: v, onNodeClick: y, pannable: b = !1, zoomable: x = !1, ariaLabel: C, inversePan: w, zoomStep: T = 1, offsetScale: E = 5 }) {
7414
- let D = Q(), O = d(null), { boundingRect: k, viewBB: A, rfId: j, panZoom: M, translateExtent: N, flowWidth: P, flowHeight: F, ariaLabelConfig: I } = Z(Ud, X), L = e?.width ?? Bd, R = e?.height ?? Vd, ee = k.width / L, z = k.height / R, B = Math.max(ee, z), V = B * L, H = B * R, U = E * B, W = k.x - (V - k.width) / 2 - U, te = k.y - (H - k.height) / 2 - U, ne = V + U * 2, re = H + U * 2, ie = `${Wd}-${j}`, ae = d(0), oe = d();
7415
- ae.current = B, c(() => {
7416
- if (O.current && M) return oe.current = Ts({
7414
+ let D = Q(), O = d(null), { boundingRect: k, viewBB: A, rfId: j, panZoom: M, translateExtent: N, flowWidth: P, flowHeight: F, ariaLabelConfig: I } = Z(Ud, X), L = e?.width ?? Bd, R = e?.height ?? Vd, ee = k.width / L, z = k.height / R, B = Math.max(ee, z), V = B * L, H = B * R, U = E * B, W = k.x - (V - k.width) / 2 - U, G = k.y - (H - k.height) / 2 - U, te = V + U * 2, ne = H + U * 2, re = `${Wd}-${j}`, ie = d(0), ae = d();
7415
+ ie.current = B, c(() => {
7416
+ if (O.current && M) return ae.current = Ts({
7417
7417
  domNode: O.current,
7418
7418
  panZoom: M,
7419
7419
  getTransform: () => D.getState().transform,
7420
- getViewScale: () => ae.current
7420
+ getViewScale: () => ie.current
7421
7421
  }), () => {
7422
- oe.current?.destroy();
7422
+ ae.current?.destroy();
7423
7423
  };
7424
7424
  }, [M]), c(() => {
7425
- oe.current?.update({
7425
+ ae.current?.update({
7426
7426
  translateExtent: N,
7427
7427
  width: P,
7428
7428
  height: F,
@@ -7440,16 +7440,16 @@ function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
7440
7440
  P,
7441
7441
  F
7442
7442
  ]);
7443
- let se = v ? (e) => {
7444
- let [t, n] = oe.current?.pointer(e) || [0, 0];
7443
+ let oe = v ? (e) => {
7444
+ let [t, n] = ae.current?.pointer(e) || [0, 0];
7445
7445
  v(e, {
7446
7446
  x: t,
7447
7447
  y: n
7448
7448
  });
7449
- } : void 0, ce = y ? a((e, t) => {
7449
+ } : void 0, se = y ? a((e, t) => {
7450
7450
  let n = D.getState().nodeLookup.get(t).internals.userNode;
7451
7451
  y(e, n);
7452
- }, []) : void 0, le = C ?? I["minimap.ariaLabel"];
7452
+ }, []) : void 0, ce = C ?? I["minimap.ariaLabel"];
7453
7453
  return g(Sc, {
7454
7454
  position: h,
7455
7455
  style: {
@@ -7467,19 +7467,19 @@ function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
7467
7467
  children: _("svg", {
7468
7468
  width: L,
7469
7469
  height: R,
7470
- viewBox: `${W} ${te} ${ne} ${re}`,
7470
+ viewBox: `${W} ${G} ${te} ${ne}`,
7471
7471
  className: "react-flow__minimap-svg",
7472
7472
  role: "img",
7473
- "aria-labelledby": ie,
7473
+ "aria-labelledby": re,
7474
7474
  ref: O,
7475
- onClick: se,
7475
+ onClick: oe,
7476
7476
  children: [
7477
- le && g("title", {
7478
- id: ie,
7479
- children: le
7477
+ ce && g("title", {
7478
+ id: re,
7479
+ children: ce
7480
7480
  }),
7481
7481
  g(zd, {
7482
- onClick: ce,
7482
+ onClick: se,
7483
7483
  nodeColor: r,
7484
7484
  nodeStrokeColor: n,
7485
7485
  nodeBorderRadius: o,
@@ -7489,7 +7489,7 @@ function Gd({ style: e, className: t, nodeStrokeColor: n, nodeColor: r, nodeClas
7489
7489
  }),
7490
7490
  g("path", {
7491
7491
  className: "react-flow__minimap-mask",
7492
- d: `M${W - U},${te - U}h${ne + U * 2}v${re + U * 2}h${-ne - U * 2}z
7492
+ d: `M${W - U},${G - U}h${te + U * 2}v${ne + U * 2}h${-te - U * 2}z
7493
7493
  M${A.x},${A.y}h${A.width}v${A.height}h${-A.width}z`,
7494
7494
  fillRule: "evenodd",
7495
7495
  pointerEvents: "none"
@@ -7824,7 +7824,29 @@ function cf(e) {
7824
7824
  points: r
7825
7825
  };
7826
7826
  }
7827
- function lf(e, t) {
7827
+ function lf(e) {
7828
+ let t = e.data.color_ramp?.data;
7829
+ if (!t) return;
7830
+ let n = (t.elements?.data?.items ?? []).map((e) => {
7831
+ let t = e.data.color;
7832
+ return {
7833
+ position: e.data.position,
7834
+ color: [
7835
+ t[0],
7836
+ t[1],
7837
+ t[2],
7838
+ e.data.alpha ?? t[3] ?? 1
7839
+ ]
7840
+ };
7841
+ });
7842
+ return {
7843
+ interpolation: t.interpolation ?? "LINEAR",
7844
+ colorMode: t.color_mode ?? "RGB",
7845
+ hueInterpolation: t.hue_interpolation ?? "NEAR",
7846
+ stops: n
7847
+ };
7848
+ }
7849
+ function uf(e, t) {
7828
7850
  let n = sf[t ?? "RGB"] ?? sf.RGB, r = sf.RGB;
7829
7851
  return e.map((e) => {
7830
7852
  let t = r.indexOf(e.name);
@@ -7834,10 +7856,10 @@ function lf(e, t) {
7834
7856
  };
7835
7857
  });
7836
7858
  }
7837
- function uf(e) {
7859
+ function df(e) {
7838
7860
  return e.replace(/\.\d{3}$/, "");
7839
7861
  }
7840
- function df(e, t) {
7862
+ function ff(e, t) {
7841
7863
  let n = of(e.data.socket_idname ?? ""), r = Zd(n), i = String(e.data.single_input ?? `${e.id}_in`), a = String(e.data.single_output ?? `${e.id}_out`), o = (e) => ({
7842
7864
  id: e,
7843
7865
  name: "",
@@ -7860,10 +7882,11 @@ function df(e, t) {
7860
7882
  width: 0,
7861
7883
  headerColor: "",
7862
7884
  inputs: [o(i)],
7863
- outputs: [o(a)]
7885
+ outputs: [o(a)],
7886
+ ...e.data.parent == null ? {} : { parentFrameId: String(e.data.parent) }
7864
7887
  };
7865
7888
  }
7866
- function ff(e) {
7889
+ function pf(e) {
7867
7890
  return e == null ? null : Array.isArray(e) && e.length >= 2 ? {
7868
7891
  kind: "vec",
7869
7892
  values: e
@@ -7872,20 +7895,20 @@ function ff(e) {
7872
7895
  value: e
7873
7896
  } : null;
7874
7897
  }
7875
- function pf(e, t) {
7898
+ function mf(e, t) {
7876
7899
  return {
7877
7900
  id: String(e.id),
7878
7901
  name: e.data.name,
7879
7902
  dataType: e.data.type,
7880
7903
  displayShape: e.data.display_shape,
7881
7904
  color: Zd(e.data.type),
7882
- defaultValue: ff(e.data.default_value),
7905
+ defaultValue: pf(e.data.default_value),
7883
7906
  hideValue: e.data.hide_value ?? !1,
7884
7907
  enabled: e.data.enabled ?? !0,
7885
7908
  index: t
7886
7909
  };
7887
7910
  }
7888
- function mf(e) {
7911
+ function hf(e) {
7889
7912
  if (e.data.bl_idname === "FunctionNodeCompare") {
7890
7913
  let t = {};
7891
7914
  return e.data.data_type && (t.data_type = e.data.data_type), e.data.operation && (t.operation = e.data.operation), Object.keys(t).length > 0 ? t : void 0;
@@ -7895,7 +7918,7 @@ function mf(e) {
7895
7918
  return e.data.operation && (t.operation = e.data.operation), e.data.use_clamp && (t.use_clamp = "true"), Object.keys(t).length > 0 ? t : void 0;
7896
7919
  }
7897
7920
  }
7898
- function hf(e, t) {
7921
+ function gf(e, t) {
7899
7922
  if (!e?.data) throw Error(`"node_trees[${t}].data" is missing.`);
7900
7923
  if (!e.data.nodes?.data?.items) throw Error(`"node_trees[${t}].data.nodes.data.items" is missing.`);
7901
7924
  if (!e.data.links?.data?.items) throw Error(`"node_trees[${t}].data.links.data.items" is missing.`);
@@ -7905,10 +7928,10 @@ function hf(e, t) {
7905
7928
  nodes: e.data.nodes.data.items.map((e, t) => {
7906
7929
  if (!e?.data) throw Error(`Node at index ${t} is missing ".data".`);
7907
7930
  let n = e.data.location_absolute ?? e.data.location ?? [0, 0];
7908
- if (e.data.bl_idname === "NodeReroute") return df(e, n);
7931
+ if (e.data.bl_idname === "NodeReroute") return ff(e, n);
7909
7932
  let r = (e.data.outputs?.data?.items ?? []).map((t, n) => {
7910
7933
  if (!t?.data) throw Error(`Node "${e.data.name}" output socket ${n} is missing ".data".`);
7911
- return pf(t, n);
7934
+ return mf(t, n);
7912
7935
  });
7913
7936
  e.data.bl_idname === "FunctionNodeInputVector" && Array.isArray(e.data.vector) && (r[0] &&= {
7914
7937
  ...r[0],
@@ -7919,14 +7942,14 @@ function hf(e, t) {
7919
7942
  });
7920
7943
  let i = (e.data.inputs?.data?.items ?? []).map((t, n) => {
7921
7944
  if (!t?.data) throw Error(`Node "${e.data.name}" input socket ${n} is missing ".data".`);
7922
- return pf(t, n);
7945
+ return mf(t, n);
7923
7946
  });
7924
- (e.data.bl_idname === "ShaderNodeCombineColor" || e.data.bl_idname === "ShaderNodeSeparateColor") && (i = lf(i, e.data.mode));
7925
- let a = e.data.bl_idname === "ShaderNodeFloatCurve" ? cf(e) : void 0, o = mf(e);
7947
+ (e.data.bl_idname === "ShaderNodeCombineColor" || e.data.bl_idname === "ShaderNodeSeparateColor") && (i = uf(i, e.data.mode));
7948
+ let a = e.data.bl_idname === "ShaderNodeFloatCurve" ? cf(e) : void 0, o = e.data.bl_idname === "ShaderNodeValToRGB" ? lf(e) : void 0, s = hf(e);
7926
7949
  return {
7927
7950
  id: String(e.id),
7928
7951
  type: e.data.bl_idname,
7929
- label: e.data.label || uf(e.data.name),
7952
+ label: e.data.label || df(e.data.name),
7930
7953
  position: {
7931
7954
  x: n[0],
7932
7955
  y: -n[1]
@@ -7936,8 +7959,10 @@ function hf(e, t) {
7936
7959
  inputs: i,
7937
7960
  outputs: r,
7938
7961
  floatCurve: a,
7939
- ...o ? { properties: o } : {},
7940
- ...e.data.node_tree == null ? {} : { groupTreeId: String(e.data.node_tree) }
7962
+ colorRamp: o,
7963
+ ...s ? { properties: s } : {},
7964
+ ...e.data.node_tree == null ? {} : { groupTreeId: String(e.data.node_tree) },
7965
+ ...e.data.parent == null ? {} : { parentFrameId: String(e.data.parent) }
7941
7966
  };
7942
7967
  }),
7943
7968
  links: e.data.links.data.items.map((e, t) => {
@@ -7950,12 +7975,12 @@ function hf(e, t) {
7950
7975
  })
7951
7976
  };
7952
7977
  }
7953
- function gf(e) {
7978
+ function _f(e) {
7954
7979
  if (!e || typeof e != "object") throw Error("JSON root must be an object.");
7955
7980
  if (!Array.isArray(e.node_trees) || e.node_trees.length === 0) throw Error("Expected \"node_trees\" array with at least one entry.");
7956
7981
  let t = {};
7957
7982
  for (let n = 0; n < e.node_trees.length; n++) {
7958
- let r = hf(e.node_trees[n], n);
7983
+ let r = gf(e.node_trees[n], n);
7959
7984
  t[r.id] = r;
7960
7985
  }
7961
7986
  let n = /* @__PURE__ */ new Set();
@@ -7974,21 +7999,21 @@ function gf(e) {
7974
7999
  trees: t
7975
8000
  };
7976
8001
  }
7977
- function _f(e, t) {
8002
+ function vf(e, t) {
7978
8003
  return {
7979
8004
  ...t,
7980
8005
  nodeId: e,
7981
8006
  direction: "input"
7982
8007
  };
7983
8008
  }
7984
- function vf(e, t) {
8009
+ function yf(e, t) {
7985
8010
  return {
7986
8011
  ...t,
7987
8012
  nodeId: e,
7988
8013
  direction: "output"
7989
8014
  };
7990
8015
  }
7991
- function yf(e) {
8016
+ function bf(e) {
7992
8017
  let t = e.nodes.map((e) => ({
7993
8018
  id: e.id,
7994
8019
  type: e.type,
@@ -7996,12 +8021,14 @@ function yf(e) {
7996
8021
  position: e.position,
7997
8022
  width: e.width,
7998
8023
  headerColor: e.headerColor,
7999
- inputs: e.inputs.map((t) => _f(e.id, t)),
8000
- outputs: e.outputs.map((t) => vf(e.id, t)),
8024
+ inputs: e.inputs.map((t) => vf(e.id, t)),
8025
+ outputs: e.outputs.map((t) => yf(e.id, t)),
8001
8026
  floatCurve: e.floatCurve,
8027
+ colorRamp: e.colorRamp,
8002
8028
  properties: e.properties,
8003
8029
  groupTreeId: e.groupTreeId,
8004
- groupTreeName: e.groupTreeName
8030
+ groupTreeName: e.groupTreeName,
8031
+ parentFrameId: e.parentFrameId
8005
8032
  })), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
8006
8033
  for (let e of t) for (let t of [...e.inputs, ...e.outputs]) n.set(t.id, e.id), r.set(t.id, t);
8007
8034
  let i = e.links.map((e) => ({
@@ -8021,11 +8048,58 @@ function yf(e) {
8021
8048
  }
8022
8049
  //#endregion
8023
8050
  //#region src/gn/xyflow/mapGraphIRToFlow.ts
8024
- function bf(e) {
8051
+ function xf(e) {
8025
8052
  let t = Math.max(e.inputs.length, e.outputs.length);
8026
8053
  return Math.max(60, 32 + t * 18 + 16);
8027
8054
  }
8028
- function xf(e, t) {
8055
+ function Sf(e) {
8056
+ return e.type === "NodeReroute" ? {
8057
+ w: 12,
8058
+ h: 12
8059
+ } : {
8060
+ w: e.width,
8061
+ h: xf(e)
8062
+ };
8063
+ }
8064
+ function Cf(e) {
8065
+ let t = e.nodes.filter((e) => e.type === "NodeFrame");
8066
+ if (t.length === 0) return [];
8067
+ let n = /* @__PURE__ */ new Map();
8068
+ for (let t of e.nodes) {
8069
+ if (!t.parentFrameId) continue;
8070
+ let e = n.get(t.parentFrameId) ?? [];
8071
+ e.push(t), n.set(t.parentFrameId, e);
8072
+ }
8073
+ let r = [];
8074
+ for (let e of t) {
8075
+ let t = n.get(e.id) ?? [];
8076
+ if (t.length === 0) continue;
8077
+ let i = Infinity, a = Infinity, o = -Infinity, s = -Infinity;
8078
+ for (let e of t) {
8079
+ let { w: t, h: n } = Sf(e);
8080
+ i = Math.min(i, e.position.x), a = Math.min(a, e.position.y), o = Math.max(o, e.position.x + t), s = Math.max(s, e.position.y + n);
8081
+ }
8082
+ Number.isFinite(i) && r.push({
8083
+ id: `frame:${e.id}`,
8084
+ type: "nodeFrame",
8085
+ position: {
8086
+ x: i - 28,
8087
+ y: a - 48
8088
+ },
8089
+ draggable: !1,
8090
+ selectable: !1,
8091
+ connectable: !1,
8092
+ data: { label: e.label },
8093
+ style: {
8094
+ width: o - i + 56,
8095
+ height: s - a + 48 + 28,
8096
+ zIndex: -8
8097
+ }
8098
+ });
8099
+ }
8100
+ return r;
8101
+ }
8102
+ function wf(e, t) {
8029
8103
  if (e.type === "NodeReroute") {
8030
8104
  let t = e.outputs[0]?.color ?? e.inputs[0]?.color ?? "#888888";
8031
8105
  return {
@@ -8059,13 +8133,14 @@ function xf(e, t) {
8059
8133
  outputs: e.outputs,
8060
8134
  connectedInputIds: e.inputs.filter((e) => t.has(e.id)).map((e) => e.id),
8061
8135
  floatCurve: e.floatCurve,
8136
+ colorRamp: e.colorRamp,
8062
8137
  properties: e.properties,
8063
8138
  groupTreeId: e.groupTreeId,
8064
8139
  groupTreeName: e.groupTreeName
8065
8140
  }
8066
8141
  };
8067
8142
  }
8068
- function Sf(e, t, n) {
8143
+ function Tf(e, t, n) {
8069
8144
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
8070
8145
  for (let e of n.nodes) r.set(e.id, []), i.set(e.id, []);
8071
8146
  for (let e of n.edges) r.has(e.sourceNodeId) || r.set(e.sourceNodeId, []), i.has(e.targetNodeId) || i.set(e.targetNodeId, []), r.get(e.sourceNodeId).push(e.targetNodeId), i.get(e.targetNodeId).push(e.sourceNodeId);
@@ -8089,26 +8164,26 @@ function Sf(e, t, n) {
8089
8164
  for (let e of a) s.has(e) && l.add(e);
8090
8165
  return l;
8091
8166
  }
8092
- function Cf(e) {
8093
- let t = new Set(e.edges.map((e) => e.targetSocketId)), n = e.nodes.map((e) => xf(e, t)), r = e.nodes.find((e) => e.type === "GeometryNodeSimulationInput"), i = e.nodes.find((e) => e.type === "GeometryNodeSimulationOutput"), a = n;
8094
- if (r && i) {
8095
- let t = Sf(r.id, i.id, e);
8167
+ function Ef(e) {
8168
+ let t = new Set(e.edges.map((e) => e.targetSocketId)), n = Cf(e), r = e.nodes.filter((e) => e.type !== "NodeFrame").map((e) => wf(e, t)), i = e.nodes.find((e) => e.type === "GeometryNodeSimulationInput"), a = e.nodes.find((e) => e.type === "GeometryNodeSimulationOutput"), o = r;
8169
+ if (i && a) {
8170
+ let t = Tf(i.id, a.id, e);
8096
8171
  if (t.size > 0) {
8097
- let i = new Map(e.nodes.map((e) => [e.id, e])), o = Infinity, s = Infinity, c = -Infinity, l = -Infinity;
8172
+ let n = new Map(e.nodes.map((e) => [e.id, e])), a = Infinity, s = Infinity, c = -Infinity, l = -Infinity;
8098
8173
  for (let e of t) {
8099
- let t = i.get(e);
8174
+ let t = n.get(e);
8100
8175
  if (!t) continue;
8101
- let n = t.width, r = bf(t);
8102
- o = Math.min(o, t.position.x), s = Math.min(s, t.position.y), c = Math.max(c, t.position.x + n), l = Math.max(l, t.position.y + r);
8176
+ let r = t.width, i = xf(t);
8177
+ a = Math.min(a, t.position.x), s = Math.min(s, t.position.y), c = Math.max(c, t.position.x + r), l = Math.max(l, t.position.y + i);
8103
8178
  }
8104
- if (Number.isFinite(o) && Number.isFinite(s) && Number.isFinite(c) && Number.isFinite(l)) {
8105
- let e = o - 64, i = s - 64, u = c - o + 128, d = l - s + 128, f = `zone:simulation:${r.id}`;
8106
- a = [{
8179
+ if (Number.isFinite(a) && Number.isFinite(s) && Number.isFinite(c) && Number.isFinite(l)) {
8180
+ let e = a - 64, n = s - 64, u = c - a + 128, d = l - s + 128, f = `zone:simulation:${i.id}`;
8181
+ o = [{
8107
8182
  id: f,
8108
8183
  type: "simulationZone",
8109
8184
  position: {
8110
8185
  x: e,
8111
- y: i
8186
+ y: n
8112
8187
  },
8113
8188
  draggable: !1,
8114
8189
  selectable: !1,
@@ -8119,20 +8194,20 @@ function Cf(e) {
8119
8194
  height: d,
8120
8195
  zIndex: -10
8121
8196
  }
8122
- }, ...n.map((n) => t.has(n.id) ? {
8123
- ...n,
8197
+ }, ...r.map((r) => t.has(r.id) ? {
8198
+ ...r,
8124
8199
  parentId: f,
8125
8200
  extent: "parent",
8126
8201
  position: {
8127
- x: n.position.x - e,
8128
- y: n.position.y - i
8202
+ x: r.position.x - e,
8203
+ y: r.position.y - n
8129
8204
  }
8130
- } : n)];
8205
+ } : r)];
8131
8206
  }
8132
8207
  }
8133
8208
  }
8134
8209
  return {
8135
- nodes: a,
8210
+ nodes: [...n, ...o],
8136
8211
  edges: e.edges.map((e) => ({
8137
8212
  id: e.id,
8138
8213
  source: e.sourceNodeId,
@@ -8146,7 +8221,7 @@ function Cf(e) {
8146
8221
  }
8147
8222
  //#endregion
8148
8223
  //#region src/gn/exporter/nodebpyExporter.ts
8149
- function wf(e, t) {
8224
+ function Df(e, t) {
8150
8225
  let n = e.node_trees;
8151
8226
  if (!Array.isArray(n) || t.size === 0) return e;
8152
8227
  let r = new Map(n.map((e) => [e.id, e])), i = /* @__PURE__ */ new Set(), a = [];
@@ -8206,25 +8281,25 @@ function wf(e, t) {
8206
8281
  }
8207
8282
  //#endregion
8208
8283
  //#region src/utils/encodeTreeClipperPayload.ts
8209
- var Tf = "TreeClipper::";
8210
- function Ef(e) {
8284
+ var Of = "TreeClipper::";
8285
+ function kf(e) {
8211
8286
  let t = "", n = 32768;
8212
8287
  for (let r = 0; r < e.length; r += n) t += String.fromCharCode(...e.subarray(r, r + n));
8213
8288
  return btoa(t);
8214
8289
  }
8215
- async function Df(e) {
8290
+ async function Af(e) {
8216
8291
  let t = new Blob([e]).stream().pipeThrough(new CompressionStream("gzip")), n = await new Response(t).arrayBuffer();
8217
8292
  return new Uint8Array(n);
8218
8293
  }
8219
- async function Of(e) {
8220
- return Tf + Ef(await Df(new TextEncoder().encode(e)));
8294
+ async function jf(e) {
8295
+ return Of + kf(await Af(new TextEncoder().encode(e)));
8221
8296
  }
8222
8297
  //#endregion
8223
8298
  //#region src/gn/ir/curvePath.ts
8224
- function kf(e, t) {
8299
+ function Mf(e, t) {
8225
8300
  return Math.sqrt(e * e + t * t);
8226
8301
  }
8227
- function Af(e) {
8302
+ function Nf(e) {
8228
8303
  let t = e.length, n = e.map(({ location: [n, r], handleType: i }, a) => {
8229
8304
  let o = a > 0 ? e[a - 1].location : null, s = a < t - 1 ? e[a + 1].location : null;
8230
8305
  if (i === "VECTOR") return {
@@ -8234,11 +8309,11 @@ function Af(e) {
8234
8309
  let c = 0, l = 0, u = 0, d = 0;
8235
8310
  if (o && s) {
8236
8311
  let e = n - o[0], t = r - o[1], i = s[0] - n, a = s[1] - r;
8237
- if (u = kf(e, t), d = kf(i, a), u > 1e-8 && d > 1e-8) {
8238
- let n = e / u + i / d, r = t / u + a / d, o = kf(n, r);
8312
+ if (u = Mf(e, t), d = Mf(i, a), u > 1e-8 && d > 1e-8) {
8313
+ let n = e / u + i / d, r = t / u + a / d, o = Mf(n, r);
8239
8314
  o > 1e-8 && (c = n / o, l = r / o);
8240
8315
  } else d > 1e-8 ? (c = (s[0] - n) / d, l = (s[1] - r) / d) : u > 1e-8 && (c = (n - o[0]) / u, l = (r - o[1]) / u);
8241
- } else s ? (d = kf(s[0] - n, s[1] - r), d > 1e-8 && (c = (s[0] - n) / d, l = (s[1] - r) / d)) : o && (u = kf(n - o[0], r - o[1]), u > 1e-8 && (c = (n - o[0]) / u, l = (r - o[1]) / u));
8316
+ } else s ? (d = Mf(s[0] - n, s[1] - r), d > 1e-8 && (c = (s[0] - n) / d, l = (s[1] - r) / d)) : o && (u = Mf(n - o[0], r - o[1]), u > 1e-8 && (c = (n - o[0]) / u, l = (r - o[1]) / u));
8242
8317
  let f = [n - c * u / 3, r - l * u / 3], p = [n + c * d / 3, r + l * d / 3];
8243
8318
  if (i === "AUTO_CLAMPED") {
8244
8319
  if (o) {
@@ -8283,7 +8358,7 @@ function Af(e) {
8283
8358
  }
8284
8359
  return n;
8285
8360
  }
8286
- function jf(e, t, n, r, i, a, o) {
8361
+ function Pf(e, t, n, r, i, a, o) {
8287
8362
  let s = r - t || 1, c = i - n || 1, l = (e) => (e - t) / s * a, u = (e) => (1 - (e - n) / c) * o;
8288
8363
  if (e.length < 2) return {
8289
8364
  strokePath: "",
@@ -8291,7 +8366,7 @@ function jf(e, t, n, r, i, a, o) {
8291
8366
  zeroLinePath: "",
8292
8367
  dotPositions: []
8293
8368
  };
8294
- let d = Af(e), [f, p] = e[0].location, m = `M ${l(f).toFixed(2)} ${u(p).toFixed(2)}`;
8369
+ let d = Nf(e), [f, p] = e[0].location, m = `M ${l(f).toFixed(2)} ${u(p).toFixed(2)}`;
8295
8370
  for (let t = 0; t < e.length - 1; t++) {
8296
8371
  let n = d[t].right, r = d[t + 1].left, [i, a] = e[t + 1].location;
8297
8372
  m += ` C ${l(n[0]).toFixed(2)} ${u(n[1]).toFixed(2)},`, m += ` ${l(r[0]).toFixed(2)} ${u(r[1]).toFixed(2)},`, m += ` ${l(i).toFixed(2)} ${u(a).toFixed(2)}`;
@@ -8305,19 +8380,217 @@ function jf(e, t, n, r, i, a, o) {
8305
8380
  };
8306
8381
  }
8307
8382
  //#endregion
8383
+ //#region src/gn/components/ColorRampViz.tsx
8384
+ function Ff([e, t, n]) {
8385
+ let r = Math.max(e, t, n), i = r - Math.min(e, t, n), a = 0;
8386
+ i !== 0 && (a = r === e ? (t - n) / i % 6 : r === t ? (n - e) / i + 2 : (e - t) / i + 4, a /= 6, a < 0 && (a += 1));
8387
+ let o = r === 0 ? 0 : i / r;
8388
+ return [
8389
+ a,
8390
+ o,
8391
+ r
8392
+ ];
8393
+ }
8394
+ function If([e, t, n]) {
8395
+ if (t === 0) return [
8396
+ n,
8397
+ n,
8398
+ n
8399
+ ];
8400
+ let r = Math.floor(e * 6), i = e * 6 - r, a = n * (1 - t), o = n * (1 - t * i), s = n * (1 - t * (1 - i));
8401
+ switch ((r % 6 + 6) % 6) {
8402
+ case 0: return [
8403
+ n,
8404
+ s,
8405
+ a
8406
+ ];
8407
+ case 1: return [
8408
+ o,
8409
+ n,
8410
+ a
8411
+ ];
8412
+ case 2: return [
8413
+ a,
8414
+ n,
8415
+ s
8416
+ ];
8417
+ case 3: return [
8418
+ a,
8419
+ o,
8420
+ n
8421
+ ];
8422
+ case 4: return [
8423
+ s,
8424
+ a,
8425
+ n
8426
+ ];
8427
+ default: return [
8428
+ n,
8429
+ a,
8430
+ o
8431
+ ];
8432
+ }
8433
+ }
8434
+ function Lf([e, t, n]) {
8435
+ let r = Math.max(e, t, n), i = Math.min(e, t, n), a = (r + i) / 2, o = r - i, s = 0, c = 0;
8436
+ return o !== 0 && (c = a > .5 ? o / (2 - r - i) : o / (r + i), s = r === e ? (t - n) / o % 6 : r === t ? (n - e) / o + 2 : (e - t) / o + 4, s /= 6, s < 0 && (s += 1)), [
8437
+ s,
8438
+ c,
8439
+ a
8440
+ ];
8441
+ }
8442
+ function Rf([e, t, n]) {
8443
+ if (t === 0) return [
8444
+ n,
8445
+ n,
8446
+ n
8447
+ ];
8448
+ let r = n < .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r, a = (e) => (e < 0 && (e += 1), e > 1 && --e, e < 1 / 6 ? i + (r - i) * 6 * e : e < 1 / 2 ? r : e < 2 / 3 ? i + (r - i) * (2 / 3 - e) * 6 : i);
8449
+ return [
8450
+ a(e + 1 / 3),
8451
+ a(e),
8452
+ a(e - 1 / 3)
8453
+ ];
8454
+ }
8455
+ var zf = (e) => e < 1 ? e : e - 1;
8456
+ function Bf(e, t, n, r, i) {
8457
+ let a = zf((r % 1 + 1) % 1), o = zf((i % 1 + 1) % 1), s = 0;
8458
+ switch (e) {
8459
+ case "NEAR":
8460
+ a < o && o - a > .5 ? s = 1 : a > o && o - a < -.5 && (s = 2);
8461
+ break;
8462
+ case "FAR":
8463
+ a === o || a < o && o - a < .5 ? s = 1 : a > o && o - a > -.5 && (s = 2);
8464
+ break;
8465
+ case "CCW":
8466
+ a > o && (s = 2);
8467
+ break;
8468
+ case "CW":
8469
+ a < o && (s = 1);
8470
+ break;
8471
+ }
8472
+ let c = (e, r) => t * e + n * r;
8473
+ return s === 1 ? zf(c(a + 1, o)) : s === 2 ? zf(c(a, o + 1)) : c(a, o);
8474
+ }
8475
+ function Vf(e, t) {
8476
+ let n = [...e.stops].sort((e, t) => e.position - t.position);
8477
+ if (n.length === 0) return [
8478
+ 0,
8479
+ 0,
8480
+ 0,
8481
+ 1
8482
+ ];
8483
+ if (n.length === 1) return n[0].color;
8484
+ let r = e.colorMode === "RGB" ? e.interpolation : "LINEAR";
8485
+ if (t <= n[0].position) return n[0].color;
8486
+ if (t >= n[n.length - 1].position) return n[n.length - 1].color;
8487
+ let i = 0;
8488
+ for (; i < n.length - 1 && n[i + 1].position <= t;) i++;
8489
+ let a = n[i], o = n[i + 1];
8490
+ if (r === "CONSTANT") return a.color;
8491
+ let s = o.position - a.position, c = s === 0 ? 0 : (t - a.position) / s;
8492
+ r === "EASE" && (c = 3 * c * c - 2 * c * c * c);
8493
+ let l = c, u = 1 - c, d = u * a.color[3] + l * o.color[3];
8494
+ if (e.colorMode === "HSV" || e.colorMode === "HSL") {
8495
+ let t = e.colorMode === "HSV" ? Ff : Lf, n = e.colorMode === "HSV" ? If : Rf, r = t([
8496
+ a.color[0],
8497
+ a.color[1],
8498
+ a.color[2]
8499
+ ]), i = t([
8500
+ o.color[0],
8501
+ o.color[1],
8502
+ o.color[2]
8503
+ ]), [s, c, f] = n([
8504
+ Bf(e.hueInterpolation, l, u, i[0], r[0]),
8505
+ u * r[1] + l * i[1],
8506
+ u * r[2] + l * i[2]
8507
+ ]);
8508
+ return [
8509
+ s,
8510
+ c,
8511
+ f,
8512
+ d
8513
+ ];
8514
+ }
8515
+ return [
8516
+ u * a.color[0] + l * o.color[0],
8517
+ u * a.color[1] + l * o.color[1],
8518
+ u * a.color[2] + l * o.color[2],
8519
+ d
8520
+ ];
8521
+ }
8522
+ function Hf(e) {
8523
+ let t = Math.min(1, Math.max(0, e));
8524
+ return t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055;
8525
+ }
8526
+ function Uf([e, t, n, r]) {
8527
+ let i = (e) => Math.round(Hf(e) * 255);
8528
+ return `rgba(${i(e)}, ${i(t)}, ${i(n)}, ${r.toFixed(3)})`;
8529
+ }
8530
+ var Wf = {
8531
+ NEAR: "Near",
8532
+ FAR: "Far",
8533
+ CW: "CW",
8534
+ CCW: "CCW"
8535
+ }, Gf = 64;
8536
+ function Kf({ data: e, width: t }) {
8537
+ let n = [];
8538
+ for (let t = 0; t <= Gf; t++) {
8539
+ let r = t / Gf;
8540
+ n.push(`${Uf(Vf(e, r))} ${(r * 100).toFixed(1)}%`);
8541
+ }
8542
+ let r = `linear-gradient(to right, ${n.join(", ")})`, i = [...e.stops].sort((e, t) => e.position - t.position), a = i[i.length - 1];
8543
+ return /* @__PURE__ */ _("div", {
8544
+ className: "gn-color-ramp",
8545
+ style: { width: t },
8546
+ children: [
8547
+ /* @__PURE__ */ _("div", {
8548
+ className: "gn-color-ramp__row",
8549
+ children: [/* @__PURE__ */ g("span", {
8550
+ className: "gn-color-ramp__select",
8551
+ children: e.colorMode
8552
+ }), /* @__PURE__ */ g("span", {
8553
+ className: "gn-color-ramp__select",
8554
+ children: Wf[e.hueInterpolation] ?? e.hueInterpolation
8555
+ })]
8556
+ }),
8557
+ /* @__PURE__ */ _("div", {
8558
+ className: "gn-color-ramp__bar-wrap",
8559
+ children: [/* @__PURE__ */ g("div", {
8560
+ className: "gn-color-ramp__checker",
8561
+ style: { backgroundImage: r }
8562
+ }), i.map((e, t) => /* @__PURE__ */ g("span", {
8563
+ className: `gn-color-ramp__stop${e === a ? " is-active" : ""}`,
8564
+ style: { left: `${e.position * 100}%` }
8565
+ }, t))]
8566
+ }),
8567
+ a && /* @__PURE__ */ _("div", {
8568
+ className: "gn-color-ramp__row gn-color-ramp__active",
8569
+ children: [/* @__PURE__ */ _("span", {
8570
+ className: "gn-color-ramp__pos",
8571
+ children: ["Pos ", a.position.toFixed(3)]
8572
+ }), /* @__PURE__ */ g("span", {
8573
+ className: "gn-color-ramp__swatch",
8574
+ style: { background: Uf(a.color) }
8575
+ })]
8576
+ })
8577
+ ]
8578
+ });
8579
+ }
8580
+ //#endregion
8308
8581
  //#region src/gn/components/groupNavContext.ts
8309
- var Mf = t(null);
8310
- function Nf() {
8311
- return o(Mf);
8582
+ var qf = t(null);
8583
+ function Jf() {
8584
+ return o(qf);
8312
8585
  }
8313
8586
  //#endregion
8314
8587
  //#region src/gn/components/GenericGNNode.tsx
8315
- var Pf = [
8588
+ var Yf = [
8316
8589
  "X",
8317
8590
  "Y",
8318
8591
  "Z",
8319
8592
  "W"
8320
- ], Ff = {
8593
+ ], Xf = {
8321
8594
  FLOAT: "Float",
8322
8595
  INT: "Integer",
8323
8596
  VECTOR: "Vector",
@@ -8325,7 +8598,7 @@ var Pf = [
8325
8598
  STRING: "String",
8326
8599
  BOOLEAN: "Boolean",
8327
8600
  ROTATION: "Rotation"
8328
- }, If = {
8601
+ }, Zf = {
8329
8602
  EQUAL: "Equal",
8330
8603
  NOT_EQUAL: "Not Equal",
8331
8604
  LESS_THAN: "Less Than",
@@ -8371,10 +8644,10 @@ var Pf = [
8371
8644
  RADIANS: "To Radians",
8372
8645
  DEGREES: "To Degrees"
8373
8646
  };
8374
- function Lf(e, t) {
8375
- return e === "data_type" ? Ff[t] ?? t : e === "operation" ? If[t] ?? t : e === "use_clamp" ? "Clamp" : t;
8647
+ function Qf(e, t) {
8648
+ return e === "data_type" ? Xf[t] ?? t : e === "operation" ? Zf[t] ?? t : e === "use_clamp" ? "Clamp" : t;
8376
8649
  }
8377
- function Rf(e) {
8650
+ function $f(e) {
8378
8651
  switch (e) {
8379
8652
  case "LINE": return "gn-socket--line";
8380
8653
  case "DIAMOND": return "gn-socket--diamond";
@@ -8383,55 +8656,55 @@ function Rf(e) {
8383
8656
  default: return "gn-socket--circle";
8384
8657
  }
8385
8658
  }
8386
- function zf(e) {
8659
+ function ep(e) {
8387
8660
  return e === "ROTATION" ? "°" : e === "FLOAT" ? " m" : "";
8388
8661
  }
8389
- function Bf(e) {
8662
+ function tp(e) {
8390
8663
  return parseFloat(e.toFixed(3)).toString();
8391
8664
  }
8392
- function Vf(e, t) {
8393
- return typeof e == "boolean" ? e ? "True" : "False" : typeof e == "string" ? e : `${Bf(e)}${zf(t)}`;
8665
+ function np(e, t) {
8666
+ return typeof e == "boolean" ? e ? "True" : "False" : typeof e == "string" ? e : `${tp(e)}${ep(t)}`;
8394
8667
  }
8395
- function Hf(e) {
8668
+ function rp(e) {
8396
8669
  return Math.round(Math.min(1, Math.max(0, e)) * 255);
8397
8670
  }
8398
- function Uf(e) {
8671
+ function ip(e) {
8399
8672
  let [t, n, r, i = 1] = e.values;
8400
8673
  return /* @__PURE__ */ g("div", {
8401
8674
  className: "gn-node__color-swatch",
8402
- style: { background: `rgba(${Hf(t)},${Hf(n)},${Hf(r)},${i.toFixed(2)})` }
8675
+ style: { background: `rgba(${rp(t)},${rp(n)},${rp(r)},${i.toFixed(2)})` }
8403
8676
  });
8404
8677
  }
8405
- function Wf(e) {
8406
- if (e.dataType === "RGBA") return /* @__PURE__ */ g(Uf, { values: e.values });
8407
- let t = zf(e.dataType);
8678
+ function ap(e) {
8679
+ if (e.dataType === "RGBA") return /* @__PURE__ */ g(ip, { values: e.values });
8680
+ let t = ep(e.dataType);
8408
8681
  return /* @__PURE__ */ g("div", {
8409
8682
  className: "gn-node__vec-block",
8410
8683
  children: e.values.slice(0, 4).map((e, n) => /* @__PURE__ */ _("div", {
8411
8684
  className: "gn-node__vec-row",
8412
8685
  children: [/* @__PURE__ */ g("span", {
8413
8686
  className: "gn-node__vec-label",
8414
- children: Pf[n]
8687
+ children: Yf[n]
8415
8688
  }), /* @__PURE__ */ _("span", {
8416
8689
  className: "gn-node__vec-value",
8417
- children: [Bf(e), t]
8690
+ children: [tp(e), t]
8418
8691
  })]
8419
8692
  }, n))
8420
8693
  });
8421
8694
  }
8422
- function Gf({ properties: e }) {
8695
+ function op({ properties: e }) {
8423
8696
  let t = Object.entries(e);
8424
8697
  return t.length === 0 ? null : /* @__PURE__ */ g("div", {
8425
8698
  className: "gn-node__props",
8426
8699
  children: t.map(([e, t]) => /* @__PURE__ */ g("div", {
8427
8700
  className: "gn-node__prop-row",
8428
- children: Lf(e, t)
8701
+ children: Qf(e, t)
8429
8702
  }, e))
8430
8703
  });
8431
8704
  }
8432
- var Kf = 120, qf = 6;
8433
- function Jf({ curve: e, width: t }) {
8434
- let n = Math.max(10, t - qf * 2), r = Kf, { strokePath: i, fillPath: a, zeroLinePath: o, dotPositions: s } = jf(e.points, e.clipMinX, e.clipMinY, e.clipMaxX, e.clipMaxY, n, r);
8705
+ var sp = 120, cp = 6;
8706
+ function lp({ curve: e, width: t }) {
8707
+ let n = Math.max(10, t - cp * 2), r = sp, { strokePath: i, fillPath: a, zeroLinePath: o, dotPositions: s } = Pf(e.points, e.clipMinX, e.clipMinY, e.clipMaxX, e.clipMaxY, n, r);
8435
8708
  return /* @__PURE__ */ g("div", {
8436
8709
  className: "gn-node__curve-wrap",
8437
8710
  children: /* @__PURE__ */ _("svg", {
@@ -8462,7 +8735,7 @@ function Jf({ curve: e, width: t }) {
8462
8735
  })
8463
8736
  });
8464
8737
  }
8465
- function Yf(e) {
8738
+ function up(e) {
8466
8739
  let { socket: t, position: n, type: r, align: i, suppressDefault: a } = e, o = t.name.trim().length === 0, s = !a && !t.hideValue && t.defaultValue?.kind === "scalar";
8467
8740
  return /* @__PURE__ */ _("div", {
8468
8741
  className: `gn-node__socket-row gn-node__socket-row--${i}`,
@@ -8471,7 +8744,7 @@ function Yf(e) {
8471
8744
  id: t.id,
8472
8745
  type: r,
8473
8746
  position: n,
8474
- className: `gn-socket ${Rf(t.displayShape)}`,
8747
+ className: `gn-socket ${$f(t.displayShape)}`,
8475
8748
  style: {
8476
8749
  top: "50%",
8477
8750
  background: t.color,
@@ -8484,15 +8757,15 @@ function Yf(e) {
8484
8757
  }),
8485
8758
  s && t.defaultValue?.kind === "scalar" ? /* @__PURE__ */ g("span", {
8486
8759
  className: "gn-node__value",
8487
- children: Vf(t.defaultValue.value, t.dataType)
8760
+ children: np(t.defaultValue.value, t.dataType)
8488
8761
  }) : null
8489
8762
  ]
8490
8763
  });
8491
8764
  }
8492
- function Xf(e, t) {
8765
+ function dp(e, t) {
8493
8766
  return !t && !e.hideValue && e.defaultValue?.kind === "vec";
8494
8767
  }
8495
- function Zf() {
8768
+ function fp() {
8496
8769
  return /* @__PURE__ */ _("div", {
8497
8770
  className: "gn-node__stack",
8498
8771
  "aria-hidden": "true",
@@ -8503,8 +8776,8 @@ function Zf() {
8503
8776
  ]
8504
8777
  });
8505
8778
  }
8506
- function Qf(e) {
8507
- let t = e.data, n = Nf(), r = new Set(t.connectedInputIds ?? []), i = t.outputs.filter((e) => e.enabled), a = t.inputs.filter((e) => e.enabled), o = t.groupTreeId, s = o !== void 0 && t.groupTreeName !== void 0 && !!n;
8779
+ function pp(e) {
8780
+ let t = e.data, n = Jf(), r = new Set(t.connectedInputIds ?? []), i = t.outputs.filter((e) => e.enabled), a = t.inputs.filter((e) => e.enabled), o = t.groupTreeId, s = o !== void 0 && t.groupTreeName !== void 0 && !!n;
8508
8781
  return /* @__PURE__ */ _("div", {
8509
8782
  className: `gn-node${s ? " gn-node--group nodrag" : ""}`,
8510
8783
  onClick: s ? () => n.openGroup(o) : void 0,
@@ -8519,40 +8792,47 @@ function Qf(e) {
8519
8792
  children: t.label
8520
8793
  })
8521
8794
  }),
8522
- s && /* @__PURE__ */ g(Zf, {}),
8523
- t.properties && /* @__PURE__ */ g(Gf, { properties: t.properties }),
8524
- t.floatCurve && /* @__PURE__ */ g(Jf, {
8795
+ s && /* @__PURE__ */ g(fp, {}),
8796
+ t.properties && /* @__PURE__ */ g(op, { properties: t.properties }),
8797
+ t.floatCurve && /* @__PURE__ */ g(lp, {
8525
8798
  curve: t.floatCurve,
8526
8799
  width: t.width
8527
8800
  }),
8528
8801
  /* @__PURE__ */ _("div", {
8529
8802
  className: "gn-node__body",
8530
- children: [i.map((e) => /* @__PURE__ */ g(Yf, {
8531
- socket: e,
8532
- position: Y.Right,
8533
- type: "source",
8534
- align: "right",
8535
- suppressDefault: !0
8536
- }, e.id)), a.map((e) => {
8537
- let t = r.has(e.id);
8538
- return /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(Yf, {
8803
+ children: [
8804
+ i.map((e) => /* @__PURE__ */ g(up, {
8539
8805
  socket: e,
8540
- position: Y.Left,
8541
- type: "target",
8542
- align: "left",
8543
- suppressDefault: t
8544
- }), Xf(e, t) ? /* @__PURE__ */ g(Wf, {
8545
- values: e.defaultValue.values,
8546
- dataType: e.dataType
8547
- }) : null] }, e.id);
8548
- })]
8806
+ position: Y.Right,
8807
+ type: "source",
8808
+ align: "right",
8809
+ suppressDefault: !0
8810
+ }, e.id)),
8811
+ t.colorRamp && /* @__PURE__ */ g(Kf, {
8812
+ data: t.colorRamp,
8813
+ width: t.width
8814
+ }),
8815
+ a.map((e) => {
8816
+ let t = r.has(e.id);
8817
+ return /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(up, {
8818
+ socket: e,
8819
+ position: Y.Left,
8820
+ type: "target",
8821
+ align: "left",
8822
+ suppressDefault: t
8823
+ }), dp(e, t) ? /* @__PURE__ */ g(ap, {
8824
+ values: e.defaultValue.values,
8825
+ dataType: e.dataType
8826
+ }) : null] }, e.id);
8827
+ })
8828
+ ]
8549
8829
  })
8550
8830
  ]
8551
8831
  });
8552
8832
  }
8553
8833
  //#endregion
8554
8834
  //#region src/gn/components/RerouteNode.tsx
8555
- function $f(e) {
8835
+ function mp(e) {
8556
8836
  let t = e.data;
8557
8837
  return /* @__PURE__ */ _("div", {
8558
8838
  className: "gn-reroute",
@@ -8572,7 +8852,7 @@ function $f(e) {
8572
8852
  }
8573
8853
  //#endregion
8574
8854
  //#region src/gn/components/SimulationZoneFrame.tsx
8575
- function ep(e) {
8855
+ function hp(e) {
8576
8856
  let t = e.data;
8577
8857
  return /* @__PURE__ */ g("div", {
8578
8858
  className: "gn-sim-zone",
@@ -8598,64 +8878,107 @@ function ep(e) {
8598
8878
  });
8599
8879
  }
8600
8880
  //#endregion
8881
+ //#region src/gn/components/NodeFrame.tsx
8882
+ function gp(e) {
8883
+ let t = e.data;
8884
+ return /* @__PURE__ */ g("div", {
8885
+ className: "gn-node-frame",
8886
+ style: {
8887
+ width: "100%",
8888
+ height: "100%",
8889
+ borderRadius: 10,
8890
+ border: "1px solid rgba(255, 255, 255, 0.09)",
8891
+ background: "rgba(255, 255, 255, 0.035)",
8892
+ pointerEvents: "none"
8893
+ },
8894
+ children: t?.label ? /* @__PURE__ */ g("div", {
8895
+ style: {
8896
+ textAlign: "center",
8897
+ padding: "10px 12px",
8898
+ fontSize: 15,
8899
+ fontWeight: 500,
8900
+ color: "rgba(235, 235, 235, 0.6)",
8901
+ userSelect: "none",
8902
+ whiteSpace: "nowrap",
8903
+ overflow: "hidden",
8904
+ textOverflow: "ellipsis"
8905
+ },
8906
+ children: t.label
8907
+ }) : null
8908
+ });
8909
+ }
8910
+ //#endregion
8601
8911
  //#region src/gn/components/GeometryNodesFlow.tsx
8602
- var tp = {
8603
- gnNode: Qf,
8604
- rerouteNode: $f,
8605
- simulationZone: ep
8606
- }, np = { padding: .08 };
8607
- function rp(e) {
8608
- let { nodes: t, edges: n, jsonText: r, breadcrumbs: i, onNavigate: o, onSelectionIds: s, onCopiedMagicString: l, zoomOnScroll: u = !0 } = e, { fitView: p, getNodes: m, getNodesBounds: h } = ll(), v = hd(), y = d(null), b = d(!1), x = d([]), [S, C] = f(null), [w, T] = f(!1), [E, D] = f(!1), O = d([]), [k, A, j] = fd(t), [M, N, P] = pd(n), [F, I] = f(void 0);
8912
+ var _p = {
8913
+ gnNode: pp,
8914
+ rerouteNode: mp,
8915
+ simulationZone: hp,
8916
+ nodeFrame: gp
8917
+ }, vp = { padding: .08 };
8918
+ function yp(e) {
8919
+ let { nodes: t, edges: n, jsonText: r, breadcrumbs: i, onNavigate: o, onSelectionIds: s, onCopiedMagicString: l, interaction: u = "always" } = e, { fitView: p, getNodes: m, getNodesBounds: h } = ll(), v = hd(), y = d(null), b = d(!1), x = d([]), [S, C] = f(null), [w, T] = f(!1), [E, D] = f(!1), O = d(null), [k, A] = f(!1), [j, M] = f(!1), N = d([]), [P, F, I] = fd(t), [L, R, ee] = pd(n), [z, B] = f(void 0);
8609
8920
  c(() => {
8610
8921
  if (!v) return;
8611
8922
  let e = h(m());
8612
- I([[e.x, e.y], [e.x + e.width, e.y + e.height]]);
8923
+ B([[e.x, e.y], [e.x + e.width, e.y + e.height]]);
8613
8924
  }, [
8614
8925
  v,
8615
8926
  t,
8616
8927
  m,
8617
8928
  h
8618
8929
  ]), c(() => {
8619
- A(t), s?.([]), b.current = !1, p(np);
8930
+ F(t), s?.([]), b.current = !1, p(vp);
8620
8931
  }, [
8621
8932
  t,
8622
- A,
8933
+ F,
8623
8934
  s,
8624
8935
  p
8625
8936
  ]), c(() => {
8626
- N(n);
8627
- }, [n, N]), c(() => {
8937
+ R(n);
8938
+ }, [n, R]), c(() => {
8628
8939
  let e = y.current;
8629
8940
  if (!e) return;
8630
8941
  let t = new ResizeObserver(() => {
8631
- b.current || p(np);
8942
+ b.current || p(vp);
8632
8943
  });
8633
8944
  return t.observe(e), () => t.disconnect();
8634
8945
  }, [p]);
8635
- let L = a((e) => {
8946
+ let V = a((e) => {
8636
8947
  e && (b.current = !0);
8637
- }, []), R = a(({ nodes: e }) => {
8948
+ }, []), H = a(({ nodes: e }) => {
8638
8949
  let t = e.map((e) => e.id);
8639
8950
  x.current = t, s?.(t);
8640
- }, [s]), ee = a((e) => {
8641
- e.preventDefault(), C({
8642
- x: e.clientX,
8643
- y: e.clientY
8951
+ }, [s]), U = a((e) => {
8952
+ e.preventDefault();
8953
+ let t = y.current?.getBoundingClientRect();
8954
+ C({
8955
+ x: e.clientX - (t?.left ?? 0),
8956
+ y: e.clientY - (t?.top ?? 0)
8644
8957
  });
8645
- }, []), z = a(async () => {
8958
+ }, []), W = a(async () => {
8646
8959
  C(null);
8647
8960
  try {
8648
- let e = JSON.parse(r), t = new Set(x.current.map(Number).filter(Number.isFinite)), n = t.size > 0 ? wf(e, t) : e, i = await Of(JSON.stringify(n));
8961
+ let e = JSON.parse(r), t = new Set(x.current.map(Number).filter(Number.isFinite)), n = t.size > 0 ? Df(e, t) : e, i = await jf(JSON.stringify(n));
8649
8962
  if (await navigator.clipboard.writeText(i), l) {
8650
8963
  l();
8651
8964
  return;
8652
8965
  }
8653
- O.current.forEach(clearTimeout), D(!1), T(!0), O.current = [setTimeout(() => D(!0), 2500), setTimeout(() => {
8654
- T(!1), D(!1);
8966
+ N.current.forEach(clearTimeout), M(!1), A(!0), N.current = [setTimeout(() => M(!0), 2500), setTimeout(() => {
8967
+ A(!1), M(!1);
8655
8968
  }, 3e3)];
8656
8969
  } catch {}
8657
8970
  }, [r, l]);
8658
- return c(() => () => O.current.forEach(clearTimeout), []), c(() => {
8971
+ c(() => () => N.current.forEach(clearTimeout), []), c(() => () => {
8972
+ O.current && clearTimeout(O.current);
8973
+ }, []);
8974
+ let G = u === "hybrid", te = u === "always" || G && w, ne = u === "always" ? [1] : [0, 1], re = u === "always", ie = a((e) => {
8975
+ !G || w || e.ctrlKey || (D(!0), O.current && clearTimeout(O.current), O.current = setTimeout(() => D(!1), 1600));
8976
+ }, [G, w]), ae = a((e) => {
8977
+ G && e.button === 0 && (T(!0), D(!1));
8978
+ }, [G]), oe = a(() => {
8979
+ G && T(!1);
8980
+ }, [G]);
8981
+ return c(() => {
8659
8982
  if (!S) return;
8660
8983
  let e = () => C(null), t = (e) => {
8661
8984
  e.key === "Escape" && C(null);
@@ -8665,38 +8988,42 @@ function rp(e) {
8665
8988
  };
8666
8989
  }, [S]), /* @__PURE__ */ _("div", {
8667
8990
  ref: y,
8991
+ className: `gn-canvas-wrapper${G && w ? " gn-canvas-wrapper--engaged" : ""}`,
8668
8992
  style: {
8669
8993
  width: "100%",
8670
8994
  height: "100%",
8671
8995
  position: "relative"
8672
8996
  },
8673
- onContextMenu: ee,
8997
+ onContextMenu: U,
8998
+ onPointerDown: ae,
8999
+ onPointerLeave: oe,
9000
+ onWheel: ie,
8674
9001
  children: [
8675
9002
  /* @__PURE__ */ _(dd, {
8676
- nodes: k,
8677
- edges: M,
8678
- onNodesChange: j,
8679
- onEdgesChange: P,
8680
- onSelectionChange: R,
8681
- onMoveStart: L,
8682
- nodeTypes: tp,
9003
+ nodes: P,
9004
+ edges: L,
9005
+ onNodesChange: I,
9006
+ onEdgesChange: ee,
9007
+ onSelectionChange: H,
9008
+ onMoveStart: V,
9009
+ nodeTypes: _p,
8683
9010
  fitView: !0,
8684
- fitViewOptions: np,
9011
+ fitViewOptions: vp,
8685
9012
  minZoom: .2,
8686
- translateExtent: F,
9013
+ translateExtent: z,
8687
9014
  nodesDraggable: !1,
8688
9015
  nodesConnectable: !1,
8689
9016
  elementsSelectable: !0,
8690
9017
  nodesFocusable: !1,
8691
9018
  edgesFocusable: !1,
8692
9019
  selectNodesOnDrag: !1,
8693
- selectionOnDrag: !0,
9020
+ selectionOnDrag: re,
8694
9021
  selectionMode: va.Partial,
8695
9022
  connectOnClick: !1,
8696
- panOnDrag: [1, 2],
9023
+ panOnDrag: ne,
8697
9024
  panOnScroll: !1,
8698
- zoomOnScroll: u,
8699
- preventScrolling: u,
9025
+ zoomOnScroll: te,
9026
+ preventScrolling: te,
8700
9027
  zoomOnDoubleClick: !1,
8701
9028
  children: [
8702
9029
  /* @__PURE__ */ g(Sd, {
@@ -8705,13 +9032,21 @@ function rp(e) {
8705
9032
  color: "var(--grid-dot, #3a3a3a)"
8706
9033
  }),
8707
9034
  /* @__PURE__ */ g(jd, { showInteractive: !1 }),
9035
+ G && E ? /* @__PURE__ */ g(Sc, {
9036
+ position: "bottom-center",
9037
+ children: /* @__PURE__ */ g("div", {
9038
+ className: "gn-zoom-hint",
9039
+ role: "status",
9040
+ children: "Click to zoom & pan"
9041
+ })
9042
+ }) : null,
8708
9043
  /* @__PURE__ */ g(Sc, {
8709
9044
  position: "top-left",
8710
9045
  children: /* @__PURE__ */ _("div", {
8711
9046
  className: "gn-top-left",
8712
9047
  children: [/* @__PURE__ */ _("span", {
8713
9048
  className: "gn-version-badge",
8714
- children: ["node-web-render v", "0.3.14"]
9049
+ children: ["node-web-render v", "0.3.16"]
8715
9050
  }), i.length > 1 ? /* @__PURE__ */ g("nav", {
8716
9051
  className: "gn-breadcrumbs",
8717
9052
  "aria-label": "Node group path",
@@ -8752,31 +9087,31 @@ function rp(e) {
8752
9087
  type: "button",
8753
9088
  className: "gn-context-menu__item",
8754
9089
  role: "menuitem",
8755
- onClick: z,
9090
+ onClick: W,
8756
9091
  children: "Copy selected nodes to Tree Clipper magic string"
8757
9092
  })
8758
9093
  }) : null,
8759
- w || E ? /* @__PURE__ */ g("div", {
8760
- className: `gn-context-toast${E ? " gnwr-leaving" : ""}`,
9094
+ k || j ? /* @__PURE__ */ g("div", {
9095
+ className: `gn-context-toast${j ? " gnwr-leaving" : ""}`,
8761
9096
  role: "status",
8762
9097
  children: "Copied Tree Clipper magic string"
8763
9098
  }) : null
8764
9099
  ]
8765
9100
  });
8766
9101
  }
8767
- function ip(e) {
8768
- let { jsonText: t, showHeader: n = !0, onSelectionChange: r, onCopiedMagicString: i, zoomOnScroll: o = !0 } = e, [s, l] = f({
9102
+ function bp(e) {
9103
+ let { jsonText: t, showHeader: n = !0, onSelectionChange: r, onCopiedMagicString: i, interaction: o = "always" } = e, [s, l] = f({
8769
9104
  json: t,
8770
9105
  ids: []
8771
9106
  }), d = u(() => {
8772
9107
  if (!t.trim()) return null;
8773
9108
  try {
8774
- let { rootId: e, trees: n } = gf(JSON.parse(t)), r = {};
9109
+ let { rootId: e, trees: n } = _f(JSON.parse(t)), r = {};
8775
9110
  for (let e of Object.values(n)) {
8776
- let t = yf(e);
9111
+ let t = bf(e);
8777
9112
  r[t.id] = {
8778
9113
  graph: t,
8779
- flow: Cf(t)
9114
+ flow: Ef(t)
8780
9115
  };
8781
9116
  }
8782
9117
  return {
@@ -8840,9 +9175,9 @@ function ip(e) {
8840
9175
  className: "flow-error",
8841
9176
  role: "alert",
8842
9177
  children: [/* @__PURE__ */ g("strong", { children: "Parse error" }), /* @__PURE__ */ g("span", { children: d.error })]
8843
- }) : m ? /* @__PURE__ */ g(Mf.Provider, {
9178
+ }) : m ? /* @__PURE__ */ g(qf.Provider, {
8844
9179
  value: v,
8845
- children: /* @__PURE__ */ g(sd, { children: /* @__PURE__ */ g(rp, {
9180
+ children: /* @__PURE__ */ g(sd, { children: /* @__PURE__ */ g(yp, {
8846
9181
  nodes: m.flow.nodes,
8847
9182
  edges: m.flow.edges,
8848
9183
  jsonText: t,
@@ -8853,7 +9188,7 @@ function ip(e) {
8853
9188
  }),
8854
9189
  onSelectionIds: r,
8855
9190
  onCopiedMagicString: i,
8856
- zoomOnScroll: o
9191
+ interaction: o
8857
9192
  }) })
8858
9193
  }) : /* @__PURE__ */ g("div", {
8859
9194
  className: "flow-empty",
@@ -8864,7 +9199,7 @@ function ip(e) {
8864
9199
  }
8865
9200
  //#endregion
8866
9201
  //#region src/components/TreeClipperLogo.tsx
8867
- function ap({ className: e }) {
9202
+ function xp({ className: e }) {
8868
9203
  return /* @__PURE__ */ _("svg", {
8869
9204
  viewBox: "0 0 256 256",
8870
9205
  className: e,
@@ -8925,7 +9260,7 @@ function ap({ className: e }) {
8925
9260
  }
8926
9261
  //#endregion
8927
9262
  //#region src/embed.tsx
8928
- function op(e) {
9263
+ function Sp(e) {
8929
9264
  let { payload: t } = e, [n, r] = f(""), [i, a] = f(null), [o, s] = f(!0), [l, u] = f(!1), [p, m] = f(!1), v = d(!1), y = d(!1), b = d(null), S = d(null), C = d(null), w = () => {
8930
9265
  !y.current || v.current || (m(!0), C.current && clearTimeout(C.current), C.current = setTimeout(() => {
8931
9266
  u(!1), m(!1);
@@ -8964,7 +9299,7 @@ function op(e) {
8964
9299
  className: "gnwr-loading",
8965
9300
  role: "status",
8966
9301
  "aria-live": "polite",
8967
- children: [/* @__PURE__ */ g(ap, { className: "gnwr-loading__logo" }), /* @__PURE__ */ g("span", {
9302
+ children: [/* @__PURE__ */ g(xp, { className: "gnwr-loading__logo" }), /* @__PURE__ */ g("span", {
8968
9303
  className: "gnwr-loading__label",
8969
9304
  children: "Loading graph…"
8970
9305
  })]
@@ -8973,10 +9308,10 @@ function op(e) {
8973
9308
  role: "alert",
8974
9309
  children: [/* @__PURE__ */ g("strong", { children: "Decode error" }), /* @__PURE__ */ g("span", { children: i })]
8975
9310
  }) : /* @__PURE__ */ _(h, { children: [
8976
- /* @__PURE__ */ g(ip, {
9311
+ /* @__PURE__ */ g(bp, {
8977
9312
  jsonText: n,
8978
9313
  showHeader: !1,
8979
- zoomOnScroll: !1,
9314
+ interaction: "hybrid",
8980
9315
  onCopiedMagicString: T
8981
9316
  }),
8982
9317
  /* @__PURE__ */ g("button", {
@@ -8998,7 +9333,7 @@ function op(e) {
8998
9333
  strokeLinecap: "round",
8999
9334
  strokeLinejoin: "round"
9000
9335
  })
9001
- }), /* @__PURE__ */ g("span", { children: "Copied!" })] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ap, { className: "gnwr-copy-button__logo" }), /* @__PURE__ */ g("span", { children: "Copy TreeClipper Magic String" })] })
9336
+ }), /* @__PURE__ */ g("span", { children: "Copied!" })] }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(xp, { className: "gnwr-copy-button__logo" }), /* @__PURE__ */ g("span", { children: "Copy TreeClipper Magic String" })] })
9002
9337
  }),
9003
9338
  (l || p) && /* @__PURE__ */ _("div", {
9004
9339
  className: `gnwr-copy-toast${p ? " gnwr-leaving" : ""}`,
@@ -9023,22 +9358,22 @@ function op(e) {
9023
9358
  })
9024
9359
  });
9025
9360
  }
9026
- var sp = /* @__PURE__ */ new Map(), cp = null;
9027
- function lp(e, t) {
9028
- sp.get(e)?.unmount();
9361
+ var Cp = /* @__PURE__ */ new Map(), wp = null;
9362
+ function Tp(e, t) {
9363
+ Cp.get(e)?.unmount();
9029
9364
  let r = m(e);
9030
- sp.set(e, r), cp = e;
9365
+ Cp.set(e, r), wp = e;
9031
9366
  let i = t.onClose;
9032
- return r.render(n(op, {
9367
+ return r.render(n(Sp, {
9033
9368
  ...t,
9034
9369
  onClose: i ? () => {
9035
- up(e), i();
9370
+ Ep(e), i();
9036
9371
  } : void 0
9037
- })), () => up(e);
9372
+ })), () => Ep(e);
9038
9373
  }
9039
- function up(e) {
9040
- let t = e ?? cp;
9041
- t && (sp.get(t)?.unmount(), sp.delete(t), t === cp && (cp = null));
9374
+ function Ep(e) {
9375
+ let t = e ?? wp;
9376
+ t && (Cp.get(t)?.unmount(), Cp.delete(t), t === wp && (wp = null));
9042
9377
  }
9043
9378
  //#endregion
9044
- export { op as GraphView, lp as mountGraphView, up as unmountGraphView };
9379
+ export { Sp as GraphView, Tp as mountGraphView, Ep as unmountGraphView };