geonodes-web-render 0.3.15 → 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.css +1 -1
- package/dist/embed.js +839 -815
- package/dist/types/gn/components/GeometryNodesFlow.d.ts +13 -3
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
190
|
+
function G() {
|
|
191
191
|
return this.firstElementChild;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return this.select(e == null ?
|
|
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
|
|
199
|
-
function
|
|
198
|
+
var ne = Array.prototype.filter;
|
|
199
|
+
function re() {
|
|
200
200
|
return Array.from(this.children);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function ie(e) {
|
|
203
203
|
return function() {
|
|
204
|
-
return
|
|
204
|
+
return ne.call(this.children, e);
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
return this.selectAll(e == null ?
|
|
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
|
|
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
|
|
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
|
|
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
|
|
225
|
-
return new
|
|
224
|
+
function ce() {
|
|
225
|
+
return new K(this._enter || this._groups.map(se), this._parents);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
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
|
-
|
|
231
|
-
constructor:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
264
|
+
function pe(e) {
|
|
265
265
|
return e.__data__;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
if (!arguments.length) return Array.from(this,
|
|
269
|
-
var n = t ?
|
|
270
|
-
typeof e != "function" && (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 =
|
|
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
|
|
279
|
+
return o = new K(o, r), o._enter = s, o._exit = c, o;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
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
|
|
287
|
-
return new
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
311
|
-
e ||=
|
|
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
|
|
319
|
+
return new K(i, this._parents).order();
|
|
320
320
|
}
|
|
321
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
364
|
+
function Oe(e) {
|
|
365
365
|
return function() {
|
|
366
366
|
this.removeAttribute(e);
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function ke(e) {
|
|
370
370
|
return function() {
|
|
371
371
|
this.removeAttributeNS(e.space, e.local);
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ae(e, t) {
|
|
375
375
|
return function() {
|
|
376
376
|
this.setAttribute(e, t);
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function je(e, t) {
|
|
380
380
|
return function() {
|
|
381
381
|
this.setAttributeNS(e.space, e.local, t);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
function
|
|
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
|
|
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
|
|
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 ?
|
|
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
|
|
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
|
|
411
|
+
function Ie(e) {
|
|
412
412
|
return function() {
|
|
413
413
|
this.style.removeProperty(e);
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Le(e, t, n) {
|
|
417
417
|
return function() {
|
|
418
418
|
this.style.setProperty(e, t, n);
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
function
|
|
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
|
|
428
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
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
|
|
431
|
-
return e.style.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
|
|
435
|
+
function Ve(e) {
|
|
436
436
|
return function() {
|
|
437
437
|
delete this[e];
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function He(e, t) {
|
|
441
441
|
return function() {
|
|
442
442
|
this[e] = t;
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
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
|
|
452
|
-
return arguments.length > 1 ? this.each((t == null ?
|
|
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
|
|
456
|
+
function Ge(e) {
|
|
457
457
|
return e.trim().split(/^|\s+/);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
return e.classList || new
|
|
459
|
+
function Ke(e) {
|
|
460
|
+
return e.classList || new qe(e);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
this._node = e, this._names =
|
|
462
|
+
function qe(e) {
|
|
463
|
+
this._node = e, this._names = Ge(e.getAttribute("class") || "");
|
|
464
464
|
}
|
|
465
|
-
|
|
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 =
|
|
481
|
+
for (var n = Ke(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
479
482
|
}
|
|
480
|
-
function Xe(e
|
|
481
|
-
|
|
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
|
-
|
|
495
|
+
(t.apply(this, arguments) ? Je : Ye)(this, e);
|
|
491
496
|
};
|
|
492
497
|
}
|
|
493
498
|
function $e(e, t) {
|
|
494
|
-
|
|
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 =
|
|
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" ?
|
|
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
|
|
508
|
+
function et() {
|
|
509
509
|
this.textContent = "";
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function tt(e) {
|
|
512
512
|
return function() {
|
|
513
513
|
this.textContent = e;
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
|
-
function
|
|
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
|
|
523
|
-
return arguments.length ? this.each(e == null ?
|
|
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
|
|
527
|
+
function it() {
|
|
528
528
|
this.innerHTML = "";
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function at(e) {
|
|
531
531
|
return function() {
|
|
532
532
|
this.innerHTML = e;
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
|
-
function
|
|
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
|
|
542
|
-
return arguments.length ? this.each(e == null ?
|
|
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
|
|
546
|
+
function ct() {
|
|
547
547
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return this.each(
|
|
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
|
|
554
|
+
function ut() {
|
|
555
555
|
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
556
556
|
}
|
|
557
|
-
function
|
|
558
|
-
return this.each(
|
|
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
|
|
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
|
|
570
|
+
function pt() {
|
|
571
571
|
return null;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
var n = typeof e == "function" ? e : N(e), r = t == null ?
|
|
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
|
|
581
|
+
function ht() {
|
|
582
582
|
var e = this.parentNode;
|
|
583
583
|
e && e.removeChild(this);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return this.each(
|
|
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
|
|
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
|
|
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
|
|
599
|
-
return this.select(e ?
|
|
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
|
|
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
|
|
608
|
+
function xt(e) {
|
|
609
609
|
return function(t) {
|
|
610
610
|
e.call(this, t, this.__data__);
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
function
|
|
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
|
|
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
|
|
631
|
+
function wt(e, t, n) {
|
|
632
632
|
return function() {
|
|
633
|
-
var r = this.__on, i, a =
|
|
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
|
|
650
|
-
var r =
|
|
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 ?
|
|
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
|
|
664
|
-
var r =
|
|
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
|
|
667
|
+
function Dt(e, t) {
|
|
668
668
|
return function() {
|
|
669
|
-
return
|
|
669
|
+
return Et(this, e, t);
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ot(e, t) {
|
|
673
673
|
return function() {
|
|
674
|
-
return
|
|
674
|
+
return Et(this, e, t.apply(this, arguments));
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
return this.each((typeof t == "function" ?
|
|
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*
|
|
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
|
|
688
|
-
function
|
|
687
|
+
var jt = [null];
|
|
688
|
+
function K(e, t) {
|
|
689
689
|
this._groups = e, this._parents = t;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
return new
|
|
691
|
+
function Mt() {
|
|
692
|
+
return new K([[document.documentElement]], jt);
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Nt() {
|
|
695
695
|
return this;
|
|
696
696
|
}
|
|
697
|
-
|
|
698
|
-
constructor:
|
|
697
|
+
K.prototype = Mt.prototype = {
|
|
698
|
+
constructor: K,
|
|
699
699
|
select: I,
|
|
700
700
|
selectAll: B,
|
|
701
|
-
selectChild:
|
|
702
|
-
selectChildren:
|
|
703
|
-
filter:
|
|
704
|
-
data:
|
|
705
|
-
enter:
|
|
706
|
-
exit:
|
|
707
|
-
join:
|
|
708
|
-
merge:
|
|
709
|
-
selection:
|
|
710
|
-
order:
|
|
711
|
-
sort:
|
|
712
|
-
call:
|
|
713
|
-
nodes:
|
|
714
|
-
node:
|
|
715
|
-
size:
|
|
716
|
-
empty:
|
|
717
|
-
each:
|
|
718
|
-
attr:
|
|
719
|
-
style:
|
|
720
|
-
property:
|
|
721
|
-
classed:
|
|
722
|
-
text:
|
|
723
|
-
html:
|
|
724
|
-
raise:
|
|
725
|
-
lower:
|
|
726
|
-
append:
|
|
727
|
-
insert:
|
|
728
|
-
remove:
|
|
729
|
-
clone:
|
|
730
|
-
datum:
|
|
731
|
-
on:
|
|
732
|
-
dispatch:
|
|
733
|
-
[Symbol.iterator]:
|
|
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
|
|
738
|
-
return typeof e == "string" ? new
|
|
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
|
|
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
|
|
750
|
-
if (e =
|
|
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
|
|
765
|
+
var It = { passive: !1 }, Lt = {
|
|
766
766
|
capture: !0,
|
|
767
767
|
passive: !1
|
|
768
768
|
};
|
|
769
|
-
function
|
|
769
|
+
function Rt(e) {
|
|
770
770
|
e.stopImmediatePropagation();
|
|
771
771
|
}
|
|
772
|
-
function
|
|
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
|
|
778
|
-
var t = e.document.documentElement, n =
|
|
779
|
-
"onselectstart" in t ? n.on("selectstart.drag",
|
|
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
|
|
782
|
-
var n = e.document.documentElement, r =
|
|
783
|
-
t && (r.on("click.drag",
|
|
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
|
|
789
|
+
var Ht = (e) => () => e;
|
|
790
790
|
//#endregion
|
|
791
791
|
//#region node_modules/d3-drag/src/event.js
|
|
792
|
-
function
|
|
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
|
-
|
|
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
|
|
853
|
+
function Wt(e) {
|
|
854
854
|
return !e.ctrlKey && !e.button;
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function Gt() {
|
|
857
857
|
return this.parentNode;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
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
|
|
865
|
+
function qt() {
|
|
866
866
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
var e =
|
|
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", _,
|
|
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 && (
|
|
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 (
|
|
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
|
-
|
|
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])) && (
|
|
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]) && (
|
|
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]) && (
|
|
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 =
|
|
907
|
-
if ((h = n.call(e, new
|
|
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 =
|
|
925
|
+
d = Ft(l || a, t), _ = o;
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
|
-
u.call(r, e, new
|
|
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 :
|
|
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 :
|
|
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 :
|
|
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 :
|
|
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
|
|
959
|
+
function Yt(e, t, n) {
|
|
960
960
|
e.prototype = t.prototype = n, n.constructor = e;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
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
|
|
970
|
-
var
|
|
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
|
-
|
|
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:
|
|
1128
|
-
formatHex:
|
|
1129
|
-
formatHex8:
|
|
1130
|
-
formatHsl:
|
|
1131
|
-
formatRgb:
|
|
1132
|
-
toString:
|
|
1127
|
+
hex: fn,
|
|
1128
|
+
formatHex: fn,
|
|
1129
|
+
formatHex8: pn,
|
|
1130
|
+
formatHsl: mn,
|
|
1131
|
+
formatRgb: hn,
|
|
1132
|
+
toString: hn
|
|
1133
1133
|
});
|
|
1134
|
-
function
|
|
1134
|
+
function fn() {
|
|
1135
1135
|
return this.rgb().formatHex();
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function pn() {
|
|
1138
1138
|
return this.rgb().formatHex8();
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1140
|
+
function mn() {
|
|
1141
|
+
return On(this).formatHsl();
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function hn() {
|
|
1144
1144
|
return this.rgb().formatRgb();
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function gn(e) {
|
|
1147
1147
|
var t, n;
|
|
1148
|
-
return e = (e + "").trim().toLowerCase(), (t =
|
|
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
|
|
1151
|
-
return new
|
|
1150
|
+
function _n(e) {
|
|
1151
|
+
return new J(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return r <= 0 && (e = t = n = NaN), new
|
|
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
|
|
1157
|
-
return e instanceof
|
|
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
|
|
1160
|
-
return arguments.length === 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
|
|
1162
|
+
function J(e, t, n, r) {
|
|
1163
1163
|
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
1164
1164
|
}
|
|
1165
|
-
|
|
1165
|
+
Yt(J, bn, Xt(Zt, {
|
|
1166
1166
|
brighter(e) {
|
|
1167
|
-
return e = e == null ?
|
|
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 ?
|
|
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
|
|
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:
|
|
1182
|
-
formatHex:
|
|
1183
|
-
formatHex8:
|
|
1184
|
-
formatRgb:
|
|
1185
|
-
toString:
|
|
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 `#${
|
|
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
|
-
|
|
1192
|
-
}
|
|
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})`}`;
|
|
1194
|
+
let e = wn(this.opacity);
|
|
1195
|
+
return `${e === 1 ? "rgb(" : "rgba("}${Tn(this.r)}, ${Tn(this.g)}, ${Tn(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function wn(e) {
|
|
1198
1198
|
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Tn(e) {
|
|
1201
1201
|
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e =
|
|
1203
|
+
function En(e) {
|
|
1204
|
+
return e = Tn(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new
|
|
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
|
|
1210
|
-
if (e instanceof
|
|
1211
|
-
if (e instanceof
|
|
1212
|
-
if (e instanceof
|
|
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
|
|
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
|
|
1218
|
-
return arguments.length === 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
|
|
1220
|
+
function An(e, t, n, r) {
|
|
1221
1221
|
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
Yt(An, kn, Xt(Zt, {
|
|
1224
1224
|
brighter(e) {
|
|
1225
|
-
return e = e == null ?
|
|
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 ?
|
|
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
|
|
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(
|
|
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 =
|
|
1242
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
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
|
|
1245
|
+
function jn(e) {
|
|
1246
1246
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function Mn(e) {
|
|
1249
1249
|
return Math.max(0, Math.min(1, e || 0));
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
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
|
|
1256
|
+
var Pn = (e) => () => e;
|
|
1257
1257
|
//#endregion
|
|
1258
1258
|
//#region node_modules/d3-interpolate/src/color.js
|
|
1259
|
-
function
|
|
1259
|
+
function Fn(e, t) {
|
|
1260
1260
|
return function(n) {
|
|
1261
1261
|
return e + n * t;
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
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
|
|
1270
|
-
return (e = +e) == 1 ?
|
|
1271
|
-
return 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
|
|
1274
|
+
function Rn(e, t) {
|
|
1275
1275
|
var n = t - e;
|
|
1276
|
-
return n ?
|
|
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
|
|
1281
|
-
var n =
|
|
1280
|
+
var zn = (function e(t) {
|
|
1281
|
+
var n = Ln(t);
|
|
1282
1282
|
function r(e, t) {
|
|
1283
|
-
var r = n((e =
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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
|
|
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
|
|
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
|
|
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] =
|
|
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
|
|
1342
|
-
function
|
|
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
|
|
1347
|
+
function Yn(e) {
|
|
1348
1348
|
return function(t) {
|
|
1349
1349
|
return e(t) + "";
|
|
1350
1350
|
};
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1353
|
-
var n =
|
|
1354
|
-
for (e += "", t += ""; (r =
|
|
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:
|
|
1357
|
-
})), n =
|
|
1358
|
-
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ?
|
|
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
|
|
1365
|
+
function Zn(e, t) {
|
|
1366
1366
|
var n = typeof t, r;
|
|
1367
|
-
return t == null || n === "boolean" ?
|
|
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
|
|
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
|
|
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) *
|
|
1385
|
-
skewX: Math.atan(c) *
|
|
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
|
|
1393
|
-
function
|
|
1392
|
+
var tr;
|
|
1393
|
+
function nr(e) {
|
|
1394
1394
|
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1395
|
-
return t.isIdentity ?
|
|
1395
|
+
return t.isIdentity ? $n : er(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return e == null || (
|
|
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
|
|
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:
|
|
1411
|
+
x: Wn(e, i)
|
|
1412
1412
|
}, {
|
|
1413
1413
|
i: c - 2,
|
|
1414
|
-
x:
|
|
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:
|
|
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:
|
|
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:
|
|
1435
|
+
x: Wn(e, n)
|
|
1436
1436
|
}, {
|
|
1437
1437
|
i: s - 2,
|
|
1438
|
-
x:
|
|
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
|
|
1451
|
-
function
|
|
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
|
|
1454
|
+
function lr(e) {
|
|
1455
1455
|
return ((e = Math.exp(e)) - 1 / e) / 2;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function ur(e) {
|
|
1458
1458
|
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
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 <
|
|
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 =
|
|
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 /
|
|
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),
|
|
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
|
-
|
|
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
|
-
|
|
1500
|
-
constructor:
|
|
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 ?
|
|
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,
|
|
1506
|
+
this._call && (this._call = null, this._time = Infinity, jr());
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
function
|
|
1510
|
-
var r = new
|
|
1509
|
+
function Er(e, t, n) {
|
|
1510
|
+
var r = new Tr();
|
|
1511
1511
|
return r.restart(e, t, n), r;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
|
|
1515
|
-
for (var e =
|
|
1516
|
-
--
|
|
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
|
|
1519
|
-
|
|
1518
|
+
function Or() {
|
|
1519
|
+
yr = (vr = xr.now()) + br, fr = pr = 0;
|
|
1520
1520
|
try {
|
|
1521
|
-
|
|
1521
|
+
Dr();
|
|
1522
1522
|
} finally {
|
|
1523
|
-
|
|
1523
|
+
fr = 0, Ar(), yr = 0;
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1527
|
-
var e =
|
|
1528
|
-
t >
|
|
1526
|
+
function kr() {
|
|
1527
|
+
var e = xr.now(), t = e - vr;
|
|
1528
|
+
t > hr && (br -= t, vr = e);
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1531
|
-
for (var e, t =
|
|
1532
|
-
|
|
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
|
|
1535
|
-
|
|
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
|
|
1540
|
-
var r = new
|
|
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
|
|
1548
|
-
function
|
|
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
|
-
|
|
1552
|
+
zr(e, n, {
|
|
1553
1553
|
name: t,
|
|
1554
1554
|
index: r,
|
|
1555
1555
|
group: i,
|
|
1556
|
-
on:
|
|
1557
|
-
tween:
|
|
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
|
|
1567
|
-
var n =
|
|
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
|
|
1572
|
-
var n =
|
|
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
|
|
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
|
|
1581
|
+
function zr(e, t, n) {
|
|
1582
1582
|
var r = e.__transition, i;
|
|
1583
|
-
r[t] = n, n.timer =
|
|
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
|
|
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 (
|
|
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
|
|
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
|
|
1627
|
+
function Vr(e) {
|
|
1628
1628
|
return this.each(function() {
|
|
1629
|
-
|
|
1629
|
+
Br(this, e);
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
//#endregion
|
|
1633
1633
|
//#region node_modules/d3-transition/src/transition/tween.js
|
|
1634
|
-
function
|
|
1634
|
+
function Hr(e, t) {
|
|
1635
1635
|
var n, r;
|
|
1636
1636
|
return function() {
|
|
1637
|
-
var i =
|
|
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
|
|
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 =
|
|
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
|
|
1667
|
+
function Wr(e, t) {
|
|
1668
1668
|
var n = this._id;
|
|
1669
1669
|
if (e += "", arguments.length < 2) {
|
|
1670
|
-
for (var r =
|
|
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 ?
|
|
1673
|
+
return this.each((t == null ? Hr : Ur)(n, e, t));
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function Gr(e, t, n) {
|
|
1676
1676
|
var r = e._id;
|
|
1677
1677
|
return e.each(function() {
|
|
1678
|
-
var e =
|
|
1678
|
+
var e = Lr(this, r);
|
|
1679
1679
|
(e.value ||= {})[t] = n.apply(this, arguments);
|
|
1680
1680
|
}), function(e) {
|
|
1681
|
-
return
|
|
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
|
|
1686
|
+
function Kr(e, t) {
|
|
1687
1687
|
var n;
|
|
1688
|
-
return (typeof t == "number" ?
|
|
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
|
|
1692
|
+
function qr(e) {
|
|
1693
1693
|
return function() {
|
|
1694
1694
|
this.removeAttribute(e);
|
|
1695
1695
|
};
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1697
|
+
function Jr(e) {
|
|
1698
1698
|
return function() {
|
|
1699
1699
|
this.removeAttributeNS(e.space, e.local);
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1731
|
-
var n = A(e), r = n === "transform" ?
|
|
1732
|
-
return this.attrTween(e, typeof t == "function" ? (n.local ?
|
|
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
|
|
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
|
|
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
|
|
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) &&
|
|
1750
|
+
return i !== r && (n = (r = i) && ti(e, i)), n;
|
|
1751
1751
|
}
|
|
1752
1752
|
return i._value = t, i;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
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) &&
|
|
1758
|
+
return i !== r && (n = (r = i) && ei(e, i)), n;
|
|
1759
1759
|
}
|
|
1760
1760
|
return i._value = t, i;
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
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 ?
|
|
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
|
|
1772
|
+
function ai(e, t) {
|
|
1773
1773
|
return function() {
|
|
1774
|
-
|
|
1774
|
+
Ir(this, e).delay = +t.apply(this, arguments);
|
|
1775
1775
|
};
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function oi(e, t) {
|
|
1778
1778
|
return t = +t, function() {
|
|
1779
|
-
|
|
1779
|
+
Ir(this, e).delay = t;
|
|
1780
1780
|
};
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function si(e) {
|
|
1783
1783
|
var t = this._id;
|
|
1784
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
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
|
|
1788
|
+
function ci(e, t) {
|
|
1789
1789
|
return function() {
|
|
1790
|
-
|
|
1790
|
+
Lr(this, e).duration = +t.apply(this, arguments);
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function li(e, t) {
|
|
1794
1794
|
return t = +t, function() {
|
|
1795
|
-
|
|
1795
|
+
Lr(this, e).duration = t;
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function ui(e) {
|
|
1799
1799
|
var t = this._id;
|
|
1800
|
-
return arguments.length ? this.each((typeof e == "function" ?
|
|
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
|
|
1804
|
+
function di(e, t) {
|
|
1805
1805
|
if (typeof t != "function") throw Error();
|
|
1806
1806
|
return function() {
|
|
1807
|
-
|
|
1807
|
+
Lr(this, e).ease = t;
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function fi(e) {
|
|
1811
1811
|
var t = this._id;
|
|
1812
|
-
return arguments.length ? this.each(
|
|
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
|
|
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
|
-
|
|
1820
|
+
Lr(this, e).ease = n;
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function mi(e) {
|
|
1824
1824
|
if (typeof e != "function") throw Error();
|
|
1825
|
-
return this.each(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1851
|
-
var r, i, a =
|
|
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
|
|
1857
|
+
function yi(e, t) {
|
|
1858
1858
|
var n = this._id;
|
|
1859
|
-
return arguments.length < 2 ?
|
|
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
|
|
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
|
|
1871
|
-
return this.on("end.remove",
|
|
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
|
|
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,
|
|
1879
|
-
return new
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
1895
|
-
function
|
|
1896
|
-
return new
|
|
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
|
|
1900
|
+
function Ei(e, t) {
|
|
1901
1901
|
var n, r, i;
|
|
1902
1902
|
return function() {
|
|
1903
|
-
var a =
|
|
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
|
|
1907
|
+
function Di(e) {
|
|
1908
1908
|
return function() {
|
|
1909
1909
|
this.style.removeProperty(e);
|
|
1910
1910
|
};
|
|
1911
1911
|
}
|
|
1912
|
-
function
|
|
1912
|
+
function Oi(e, t, n) {
|
|
1913
1913
|
var r, i = n + "", a;
|
|
1914
1914
|
return function() {
|
|
1915
|
-
var o =
|
|
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
|
|
1919
|
+
function ki(e, t, n) {
|
|
1920
1920
|
var r, i, a;
|
|
1921
1921
|
return function() {
|
|
1922
|
-
var o =
|
|
1923
|
-
return s ?? (c = s = (this.style.removeProperty(e),
|
|
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
|
|
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 =
|
|
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
|
|
1934
|
-
var r = (e += "") == "transform" ?
|
|
1935
|
-
return t == null ? this.styleTween(e,
|
|
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
|
|
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
|
|
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) &&
|
|
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
|
|
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,
|
|
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
|
|
1961
|
+
function Fi(e) {
|
|
1962
1962
|
return function() {
|
|
1963
1963
|
this.textContent = e;
|
|
1964
1964
|
};
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
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
|
|
1973
|
-
return this.tween("text", typeof e == "function" ?
|
|
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
|
|
1977
|
+
function Ri(e) {
|
|
1978
1978
|
return function(t) {
|
|
1979
1979
|
this.textContent = e.call(this, t);
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
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) &&
|
|
1986
|
+
return r !== n && (t = (n = r) && Ri(r)), t;
|
|
1987
1987
|
}
|
|
1988
1988
|
return r._value = e, r;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
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,
|
|
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
|
|
2000
|
-
for (var e = this._name, t = this._id, n =
|
|
2001
|
-
var u =
|
|
2002
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
2028
|
-
function
|
|
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
|
|
2032
|
-
return
|
|
2033
|
-
}
|
|
2034
|
-
function
|
|
2035
|
-
return ++
|
|
2036
|
-
}
|
|
2037
|
-
var
|
|
2038
|
-
|
|
2039
|
-
constructor:
|
|
2040
|
-
select:
|
|
2041
|
-
selectAll:
|
|
2042
|
-
selectChild:
|
|
2043
|
-
selectChildren:
|
|
2044
|
-
filter:
|
|
2045
|
-
merge:
|
|
2046
|
-
selection:
|
|
2047
|
-
transition:
|
|
2048
|
-
call:
|
|
2049
|
-
nodes:
|
|
2050
|
-
node:
|
|
2051
|
-
size:
|
|
2052
|
-
empty:
|
|
2053
|
-
each:
|
|
2054
|
-
on:
|
|
2055
|
-
attr:
|
|
2056
|
-
attrTween:
|
|
2057
|
-
style:
|
|
2058
|
-
styleTween:
|
|
2059
|
-
text:
|
|
2060
|
-
textTween:
|
|
2061
|
-
remove:
|
|
2062
|
-
tween:
|
|
2063
|
-
delay:
|
|
2064
|
-
duration:
|
|
2065
|
-
ease:
|
|
2066
|
-
easeVarying:
|
|
2067
|
-
end:
|
|
2068
|
-
[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
|
|
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
|
|
2077
|
+
var Yi = {
|
|
2078
2078
|
time: null,
|
|
2079
2079
|
delay: 0,
|
|
2080
2080
|
duration: 250,
|
|
2081
|
-
ease:
|
|
2081
|
+
ease: Ji
|
|
2082
2082
|
};
|
|
2083
|
-
function
|
|
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
|
|
2087
|
+
function Zi(e) {
|
|
2088
2088
|
var t, n;
|
|
2089
|
-
e instanceof
|
|
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]) &&
|
|
2091
|
-
return new
|
|
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
|
-
|
|
2093
|
+
Mt.prototype.interrupt = Vr, Mt.prototype.transition = Zi;
|
|
2094
2094
|
//#endregion
|
|
2095
2095
|
//#region node_modules/d3-zoom/src/constant.js
|
|
2096
|
-
var
|
|
2096
|
+
var Qi = (e) => () => e;
|
|
2097
2097
|
//#endregion
|
|
2098
2098
|
//#region node_modules/d3-zoom/src/event.js
|
|
2099
|
-
function
|
|
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
|
|
2126
|
+
function ea(e, t, n) {
|
|
2127
2127
|
this.k = e, this.x = t, this.y = n;
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2130
|
-
constructor:
|
|
2129
|
+
ea.prototype = {
|
|
2130
|
+
constructor: ea,
|
|
2131
2131
|
scale: function(e) {
|
|
2132
|
-
return e === 1 ? this : new
|
|
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
|
|
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
|
|
2166
|
-
|
|
2167
|
-
function
|
|
2168
|
-
for (; !e.__zoom;) if (!(e = e.parentNode)) return
|
|
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
|
|
2173
|
+
function ra(e) {
|
|
2174
2174
|
e.stopImmediatePropagation();
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
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
|
|
2181
|
+
function aa(e) {
|
|
2182
2182
|
return (!e.ctrlKey || e.type === "wheel") && !e.button;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
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
|
|
2189
|
-
return this.__zoom ||
|
|
2188
|
+
function sa() {
|
|
2189
|
+
return this.__zoom || ta;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
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
|
|
2194
|
+
function la() {
|
|
2195
2195
|
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
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
|
|
2202
|
-
var e =
|
|
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",
|
|
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",
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
2278
|
-
l.call(e, this.that, new
|
|
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 =
|
|
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)],
|
|
2293
|
-
|
|
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 =
|
|
2301
|
-
|
|
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 (
|
|
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] =
|
|
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),
|
|
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 =
|
|
2316
|
-
|
|
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 (
|
|
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)),
|
|
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 (
|
|
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 (
|
|
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 =
|
|
2352
|
-
var s =
|
|
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 :
|
|
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 :
|
|
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 :
|
|
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 :
|
|
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
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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:
|
|
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 }) =>
|
|
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 =
|
|
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 =
|
|
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" ?
|
|
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 ?
|
|
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" ?
|
|
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" ?
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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",
|
|
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",
|
|
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",
|
|
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,
|
|
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: !!
|
|
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",
|
|
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",
|
|
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",
|
|
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),
|
|
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
|
|
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
|
-
},
|
|
6238
|
+
}, re = o ? (e) => {
|
|
6239
6239
|
o(e, { ...E });
|
|
6240
|
-
} : void 0,
|
|
6240
|
+
} : void 0, ie = s ? (e) => {
|
|
6241
6241
|
s(e, { ...E });
|
|
6242
|
-
} : void 0,
|
|
6242
|
+
} : void 0, ae = c ? (e) => {
|
|
6243
6243
|
c(e, { ...E });
|
|
6244
|
-
} : void 0,
|
|
6244
|
+
} : void 0, oe = l ? (e) => {
|
|
6245
6245
|
l(e, { ...E });
|
|
6246
|
-
} : void 0,
|
|
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:
|
|
6266
|
-
onDoubleClick:
|
|
6267
|
-
onContextMenu:
|
|
6268
|
-
onMouseEnter:
|
|
6269
|
-
onMouseMove:
|
|
6270
|
-
onMouseLeave:
|
|
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:
|
|
6312
|
-
markerEnd:
|
|
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",
|
|
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",
|
|
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:
|
|
6511
|
-
return ed(e), ed(t), td(), Wu(n), Ku(
|
|
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:
|
|
6516
|
-
onPaneContextMenu:
|
|
6517
|
-
onPaneScroll:
|
|
6518
|
-
paneClickDistance:
|
|
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:
|
|
6544
|
-
noWheelClassName:
|
|
6545
|
-
noPanClassName:
|
|
6546
|
-
disableKeyboardA11y:
|
|
6547
|
-
onViewportChange:
|
|
6548
|
-
isControlledViewport: !!
|
|
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:
|
|
6555
|
-
onReconnectStart:
|
|
6556
|
-
onReconnectEnd:
|
|
6554
|
+
onReconnect: ue,
|
|
6555
|
+
onReconnectStart: de,
|
|
6556
|
+
onReconnectEnd: fe,
|
|
6557
6557
|
onlyRenderVisibleElements: D,
|
|
6558
|
-
onEdgeContextMenu:
|
|
6559
|
-
onEdgeMouseEnter:
|
|
6560
|
-
onEdgeMouseMove:
|
|
6561
|
-
onEdgeMouseLeave:
|
|
6562
|
-
reconnectRadius:
|
|
6558
|
+
onEdgeContextMenu: ae,
|
|
6559
|
+
onEdgeMouseEnter: oe,
|
|
6560
|
+
onEdgeMouseMove: se,
|
|
6561
|
+
onEdgeMouseLeave: ce,
|
|
6562
|
+
reconnectRadius: le,
|
|
6563
6563
|
defaultMarkerColor: P,
|
|
6564
|
-
noPanClassName:
|
|
6565
|
-
disableKeyboardA11y:
|
|
6566
|
-
rfId:
|
|
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:
|
|
6583
|
+
nodeClickDistance: ie,
|
|
6584
6584
|
onlyRenderVisibleElements: D,
|
|
6585
|
-
noPanClassName:
|
|
6586
|
-
noDragClassName:
|
|
6587
|
-
disableKeyboardA11y:
|
|
6588
|
-
nodeExtent:
|
|
6589
|
-
rfId:
|
|
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:
|
|
6933
|
-
let
|
|
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
|
-
}),
|
|
6939
|
-
}, [
|
|
6938
|
+
}), Ot?.(e);
|
|
6939
|
+
}, [Ot]);
|
|
6940
6940
|
return g("div", {
|
|
6941
6941
|
"data-testid": "rf__wrapper",
|
|
6942
|
-
...
|
|
6943
|
-
onScroll:
|
|
6942
|
+
...jt,
|
|
6943
|
+
onScroll: q,
|
|
6944
6944
|
style: {
|
|
6945
|
-
...
|
|
6945
|
+
...vt,
|
|
6946
6946
|
...ld
|
|
6947
6947
|
},
|
|
6948
|
-
ref:
|
|
6948
|
+
ref: K,
|
|
6949
6949
|
className: S([
|
|
6950
6950
|
"react-flow",
|
|
6951
6951
|
i,
|
|
6952
|
-
|
|
6952
|
+
Nt
|
|
6953
6953
|
]),
|
|
6954
|
-
id:
|
|
6954
|
+
id: yt,
|
|
6955
6955
|
role: "application",
|
|
6956
6956
|
children: _(cd, {
|
|
6957
6957
|
nodes: e,
|
|
6958
6958
|
edges: t,
|
|
6959
|
-
width:
|
|
6960
|
-
height:
|
|
6961
|
-
fitView:
|
|
6962
|
-
fitViewOptions:
|
|
6963
|
-
minZoom:
|
|
6964
|
-
maxZoom:
|
|
6965
|
-
nodeOrigin:
|
|
6966
|
-
nodeExtent:
|
|
6967
|
-
zIndexMode:
|
|
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:
|
|
6980
|
-
autoPanOnNodeFocus:
|
|
6981
|
-
nodesConnectable:
|
|
6982
|
-
nodesFocusable:
|
|
6983
|
-
edgesFocusable:
|
|
6984
|
-
edgesReconnectable:
|
|
6985
|
-
elementsSelectable:
|
|
6986
|
-
elevateNodesOnSelect:
|
|
6987
|
-
elevateEdgesOnSelect:
|
|
6988
|
-
minZoom:
|
|
6989
|
-
maxZoom:
|
|
6990
|
-
nodeExtent:
|
|
6991
|
-
onNodesChange:
|
|
6992
|
-
onEdgesChange:
|
|
6993
|
-
snapToGrid:
|
|
6994
|
-
snapGrid:
|
|
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:
|
|
6997
|
-
connectOnClick:
|
|
6998
|
-
defaultEdgeOptions:
|
|
6999
|
-
fitView:
|
|
7000
|
-
fitViewOptions:
|
|
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:
|
|
7014
|
-
nodeOrigin:
|
|
7015
|
-
rfId:
|
|
7016
|
-
autoPanOnConnect:
|
|
7017
|
-
autoPanOnNodeDrag:
|
|
7018
|
-
autoPanSpeed:
|
|
7019
|
-
onError:
|
|
7020
|
-
connectionRadius:
|
|
7021
|
-
isValidConnection:
|
|
7022
|
-
selectNodesOnDrag:
|
|
7023
|
-
nodeDragThreshold:
|
|
7024
|
-
connectionDragThreshold:
|
|
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:
|
|
7027
|
-
ariaLabelConfig:
|
|
7028
|
-
zIndexMode:
|
|
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:
|
|
7046
|
-
selectionOnDrag:
|
|
7047
|
-
selectionMode:
|
|
7048
|
-
deleteKeyCode:
|
|
7049
|
-
multiSelectionKeyCode:
|
|
7050
|
-
panActivationKeyCode:
|
|
7051
|
-
zoomActivationKeyCode:
|
|
7052
|
-
onlyRenderVisibleElements:
|
|
7053
|
-
defaultViewport:
|
|
7054
|
-
translateExtent:
|
|
7055
|
-
minZoom:
|
|
7056
|
-
maxZoom:
|
|
7057
|
-
preventScrolling:
|
|
7058
|
-
zoomOnScroll:
|
|
7059
|
-
zoomOnPinch:
|
|
7060
|
-
zoomOnDoubleClick:
|
|
7061
|
-
panOnScroll:
|
|
7062
|
-
panOnScrollSpeed:
|
|
7063
|
-
panOnScrollMode:
|
|
7064
|
-
panOnDrag:
|
|
7065
|
-
autoPanOnSelection:
|
|
7066
|
-
onPaneClick:
|
|
7067
|
-
onPaneMouseEnter:
|
|
7068
|
-
onPaneMouseMove:
|
|
7069
|
-
onPaneMouseLeave:
|
|
7070
|
-
onPaneScroll:
|
|
7071
|
-
onPaneContextMenu:
|
|
7072
|
-
paneClickDistance:
|
|
7073
|
-
nodeClickDistance:
|
|
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:
|
|
7078
|
-
onReconnectStart:
|
|
7079
|
-
onReconnectEnd:
|
|
7080
|
-
onEdgeContextMenu:
|
|
7081
|
-
onEdgeDoubleClick:
|
|
7082
|
-
onEdgeMouseEnter:
|
|
7083
|
-
onEdgeMouseMove:
|
|
7084
|
-
onEdgeMouseLeave:
|
|
7085
|
-
reconnectRadius:
|
|
7086
|
-
defaultMarkerColor:
|
|
7087
|
-
noDragClassName:
|
|
7088
|
-
noWheelClassName:
|
|
7089
|
-
noPanClassName:
|
|
7090
|
-
rfId:
|
|
7091
|
-
disableKeyboardA11y:
|
|
7092
|
-
nodeExtent:
|
|
7093
|
-
viewport:
|
|
7094
|
-
onViewportChange:
|
|
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
|
-
|
|
7097
|
+
Ve,
|
|
7098
7098
|
g(Cc, {
|
|
7099
|
-
proOptions:
|
|
7100
|
-
position:
|
|
7099
|
+
proOptions: ot,
|
|
7100
|
+
position: at
|
|
7101
7101
|
}),
|
|
7102
7102
|
g(xc, {
|
|
7103
|
-
rfId:
|
|
7104
|
-
disableKeyboardA11y:
|
|
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
|
-
|
|
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,
|
|
7415
|
-
|
|
7416
|
-
if (O.current && M) return
|
|
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: () =>
|
|
7420
|
+
getViewScale: () => ie.current
|
|
7421
7421
|
}), () => {
|
|
7422
|
-
|
|
7422
|
+
ae.current?.destroy();
|
|
7423
7423
|
};
|
|
7424
7424
|
}, [M]), c(() => {
|
|
7425
|
-
|
|
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
|
|
7444
|
-
let [t, n] =
|
|
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,
|
|
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,
|
|
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} ${
|
|
7470
|
+
viewBox: `${W} ${G} ${te} ${ne}`,
|
|
7471
7471
|
className: "react-flow__minimap-svg",
|
|
7472
7472
|
role: "img",
|
|
7473
|
-
"aria-labelledby":
|
|
7473
|
+
"aria-labelledby": re,
|
|
7474
7474
|
ref: O,
|
|
7475
|
-
onClick:
|
|
7475
|
+
onClick: oe,
|
|
7476
7476
|
children: [
|
|
7477
|
-
|
|
7478
|
-
id:
|
|
7479
|
-
children:
|
|
7477
|
+
ce && g("title", {
|
|
7478
|
+
id: re,
|
|
7479
|
+
children: ce
|
|
7480
7480
|
}),
|
|
7481
7481
|
g(zd, {
|
|
7482
|
-
onClick:
|
|
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},${
|
|
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"
|
|
@@ -8916,26 +8916,26 @@ var _p = {
|
|
|
8916
8916
|
nodeFrame: gp
|
|
8917
8917
|
}, vp = { padding: .08 };
|
|
8918
8918
|
function yp(e) {
|
|
8919
|
-
let { nodes: t, edges: n, jsonText: r, breadcrumbs: i, onNavigate: o, onSelectionIds: s, onCopiedMagicString: l,
|
|
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);
|
|
8920
8920
|
c(() => {
|
|
8921
8921
|
if (!v) return;
|
|
8922
8922
|
let e = h(m());
|
|
8923
|
-
|
|
8923
|
+
B([[e.x, e.y], [e.x + e.width, e.y + e.height]]);
|
|
8924
8924
|
}, [
|
|
8925
8925
|
v,
|
|
8926
8926
|
t,
|
|
8927
8927
|
m,
|
|
8928
8928
|
h
|
|
8929
8929
|
]), c(() => {
|
|
8930
|
-
|
|
8930
|
+
F(t), s?.([]), b.current = !1, p(vp);
|
|
8931
8931
|
}, [
|
|
8932
8932
|
t,
|
|
8933
|
-
|
|
8933
|
+
F,
|
|
8934
8934
|
s,
|
|
8935
8935
|
p
|
|
8936
8936
|
]), c(() => {
|
|
8937
|
-
|
|
8938
|
-
}, [n,
|
|
8937
|
+
R(n);
|
|
8938
|
+
}, [n, R]), c(() => {
|
|
8939
8939
|
let e = y.current;
|
|
8940
8940
|
if (!e) return;
|
|
8941
8941
|
let t = new ResizeObserver(() => {
|
|
@@ -8943,17 +8943,19 @@ function yp(e) {
|
|
|
8943
8943
|
});
|
|
8944
8944
|
return t.observe(e), () => t.disconnect();
|
|
8945
8945
|
}, [p]);
|
|
8946
|
-
let
|
|
8946
|
+
let V = a((e) => {
|
|
8947
8947
|
e && (b.current = !0);
|
|
8948
|
-
}, []),
|
|
8948
|
+
}, []), H = a(({ nodes: e }) => {
|
|
8949
8949
|
let t = e.map((e) => e.id);
|
|
8950
8950
|
x.current = t, s?.(t);
|
|
8951
|
-
}, [s]),
|
|
8952
|
-
e.preventDefault()
|
|
8953
|
-
|
|
8954
|
-
|
|
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)
|
|
8955
8957
|
});
|
|
8956
|
-
}, []),
|
|
8958
|
+
}, []), W = a(async () => {
|
|
8957
8959
|
C(null);
|
|
8958
8960
|
try {
|
|
8959
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));
|
|
@@ -8961,12 +8963,22 @@ function yp(e) {
|
|
|
8961
8963
|
l();
|
|
8962
8964
|
return;
|
|
8963
8965
|
}
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
+
N.current.forEach(clearTimeout), M(!1), A(!0), N.current = [setTimeout(() => M(!0), 2500), setTimeout(() => {
|
|
8967
|
+
A(!1), M(!1);
|
|
8966
8968
|
}, 3e3)];
|
|
8967
8969
|
} catch {}
|
|
8968
8970
|
}, [r, l]);
|
|
8969
|
-
|
|
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(() => {
|
|
8970
8982
|
if (!S) return;
|
|
8971
8983
|
let e = () => C(null), t = (e) => {
|
|
8972
8984
|
e.key === "Escape" && C(null);
|
|
@@ -8976,38 +8988,42 @@ function yp(e) {
|
|
|
8976
8988
|
};
|
|
8977
8989
|
}, [S]), /* @__PURE__ */ _("div", {
|
|
8978
8990
|
ref: y,
|
|
8991
|
+
className: `gn-canvas-wrapper${G && w ? " gn-canvas-wrapper--engaged" : ""}`,
|
|
8979
8992
|
style: {
|
|
8980
8993
|
width: "100%",
|
|
8981
8994
|
height: "100%",
|
|
8982
8995
|
position: "relative"
|
|
8983
8996
|
},
|
|
8984
|
-
onContextMenu:
|
|
8997
|
+
onContextMenu: U,
|
|
8998
|
+
onPointerDown: ae,
|
|
8999
|
+
onPointerLeave: oe,
|
|
9000
|
+
onWheel: ie,
|
|
8985
9001
|
children: [
|
|
8986
9002
|
/* @__PURE__ */ _(dd, {
|
|
8987
|
-
nodes:
|
|
8988
|
-
edges:
|
|
8989
|
-
onNodesChange:
|
|
8990
|
-
onEdgesChange:
|
|
8991
|
-
onSelectionChange:
|
|
8992
|
-
onMoveStart:
|
|
9003
|
+
nodes: P,
|
|
9004
|
+
edges: L,
|
|
9005
|
+
onNodesChange: I,
|
|
9006
|
+
onEdgesChange: ee,
|
|
9007
|
+
onSelectionChange: H,
|
|
9008
|
+
onMoveStart: V,
|
|
8993
9009
|
nodeTypes: _p,
|
|
8994
9010
|
fitView: !0,
|
|
8995
9011
|
fitViewOptions: vp,
|
|
8996
9012
|
minZoom: .2,
|
|
8997
|
-
translateExtent:
|
|
9013
|
+
translateExtent: z,
|
|
8998
9014
|
nodesDraggable: !1,
|
|
8999
9015
|
nodesConnectable: !1,
|
|
9000
9016
|
elementsSelectable: !0,
|
|
9001
9017
|
nodesFocusable: !1,
|
|
9002
9018
|
edgesFocusable: !1,
|
|
9003
9019
|
selectNodesOnDrag: !1,
|
|
9004
|
-
selectionOnDrag:
|
|
9020
|
+
selectionOnDrag: re,
|
|
9005
9021
|
selectionMode: va.Partial,
|
|
9006
9022
|
connectOnClick: !1,
|
|
9007
|
-
panOnDrag:
|
|
9023
|
+
panOnDrag: ne,
|
|
9008
9024
|
panOnScroll: !1,
|
|
9009
|
-
zoomOnScroll:
|
|
9010
|
-
preventScrolling:
|
|
9025
|
+
zoomOnScroll: te,
|
|
9026
|
+
preventScrolling: te,
|
|
9011
9027
|
zoomOnDoubleClick: !1,
|
|
9012
9028
|
children: [
|
|
9013
9029
|
/* @__PURE__ */ g(Sd, {
|
|
@@ -9016,13 +9032,21 @@ function yp(e) {
|
|
|
9016
9032
|
color: "var(--grid-dot, #3a3a3a)"
|
|
9017
9033
|
}),
|
|
9018
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,
|
|
9019
9043
|
/* @__PURE__ */ g(Sc, {
|
|
9020
9044
|
position: "top-left",
|
|
9021
9045
|
children: /* @__PURE__ */ _("div", {
|
|
9022
9046
|
className: "gn-top-left",
|
|
9023
9047
|
children: [/* @__PURE__ */ _("span", {
|
|
9024
9048
|
className: "gn-version-badge",
|
|
9025
|
-
children: ["node-web-render v", "0.3.
|
|
9049
|
+
children: ["node-web-render v", "0.3.16"]
|
|
9026
9050
|
}), i.length > 1 ? /* @__PURE__ */ g("nav", {
|
|
9027
9051
|
className: "gn-breadcrumbs",
|
|
9028
9052
|
"aria-label": "Node group path",
|
|
@@ -9063,12 +9087,12 @@ function yp(e) {
|
|
|
9063
9087
|
type: "button",
|
|
9064
9088
|
className: "gn-context-menu__item",
|
|
9065
9089
|
role: "menuitem",
|
|
9066
|
-
onClick:
|
|
9090
|
+
onClick: W,
|
|
9067
9091
|
children: "Copy selected nodes to Tree Clipper magic string"
|
|
9068
9092
|
})
|
|
9069
9093
|
}) : null,
|
|
9070
|
-
|
|
9071
|
-
className: `gn-context-toast${
|
|
9094
|
+
k || j ? /* @__PURE__ */ g("div", {
|
|
9095
|
+
className: `gn-context-toast${j ? " gnwr-leaving" : ""}`,
|
|
9072
9096
|
role: "status",
|
|
9073
9097
|
children: "Copied Tree Clipper magic string"
|
|
9074
9098
|
}) : null
|
|
@@ -9076,7 +9100,7 @@ function yp(e) {
|
|
|
9076
9100
|
});
|
|
9077
9101
|
}
|
|
9078
9102
|
function bp(e) {
|
|
9079
|
-
let { jsonText: t, showHeader: n = !0, onSelectionChange: r, onCopiedMagicString: i,
|
|
9103
|
+
let { jsonText: t, showHeader: n = !0, onSelectionChange: r, onCopiedMagicString: i, interaction: o = "always" } = e, [s, l] = f({
|
|
9080
9104
|
json: t,
|
|
9081
9105
|
ids: []
|
|
9082
9106
|
}), d = u(() => {
|
|
@@ -9164,7 +9188,7 @@ function bp(e) {
|
|
|
9164
9188
|
}),
|
|
9165
9189
|
onSelectionIds: r,
|
|
9166
9190
|
onCopiedMagicString: i,
|
|
9167
|
-
|
|
9191
|
+
interaction: o
|
|
9168
9192
|
}) })
|
|
9169
9193
|
}) : /* @__PURE__ */ g("div", {
|
|
9170
9194
|
className: "flow-empty",
|
|
@@ -9287,7 +9311,7 @@ function Sp(e) {
|
|
|
9287
9311
|
/* @__PURE__ */ g(bp, {
|
|
9288
9312
|
jsonText: n,
|
|
9289
9313
|
showHeader: !1,
|
|
9290
|
-
|
|
9314
|
+
interaction: "hybrid",
|
|
9291
9315
|
onCopiedMagicString: T
|
|
9292
9316
|
}),
|
|
9293
9317
|
/* @__PURE__ */ g("button", {
|