@java-memory-playground/java-memory-playground 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +644 -639
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as x, jsxs as
|
|
1
|
+
import { jsx as x, jsxs as H, Fragment as Se } from "react/jsx-runtime";
|
|
2
2
|
import it, { useMemo as Ce, useState as ie, forwardRef as Rl, memo as xe, useContext as vt, createContext as mn, useCallback as ae, useRef as ne, useEffect as re, useLayoutEffect as uf } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
function ve(e) {
|
|
@@ -230,11 +230,11 @@ function $f(e, t) {
|
|
|
230
230
|
var n = t ? Pf : If, r = this._parents, o = this._groups;
|
|
231
231
|
typeof e != "function" && (e = Df(e));
|
|
232
232
|
for (var i = o.length, a = new Array(i), s = new Array(i), c = new Array(i), l = 0; l < i; ++l) {
|
|
233
|
-
var u = r[l], h = o[l], f = h.length, d = Rf(e.call(u, u && u.__data__, l, r)), p = d.length, w = s[l] = new Array(p),
|
|
234
|
-
n(u, h, w,
|
|
233
|
+
var u = r[l], h = o[l], f = h.length, d = Rf(e.call(u, u && u.__data__, l, r)), p = d.length, w = s[l] = new Array(p), m = a[l] = new Array(p), y = c[l] = new Array(f);
|
|
234
|
+
n(u, h, w, m, y, d, t);
|
|
235
235
|
for (var S = 0, g = 0, b, C; S < p; ++S)
|
|
236
236
|
if (b = w[S]) {
|
|
237
|
-
for (S >= g && (g = S + 1); !(C =
|
|
237
|
+
for (S >= g && (g = S + 1); !(C = m[g]) && ++g < p; ) ;
|
|
238
238
|
b._next = C || null;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -729,7 +729,7 @@ function qh() {
|
|
|
729
729
|
function Ql() {
|
|
730
730
|
var e = Kh, t = Yh, n = Zh, r = qh, o = {}, i = eo("start", "drag", "end"), a = 0, s, c, l, u, h = 0;
|
|
731
731
|
function f(b) {
|
|
732
|
-
b.on("mousedown.drag", d).filter(r).on("touchstart.drag",
|
|
732
|
+
b.on("mousedown.drag", d).filter(r).on("touchstart.drag", m).on("touchmove.drag", y, Xh).on("touchend.drag touchcancel.drag", S).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
733
733
|
}
|
|
734
734
|
function d(b, C) {
|
|
735
735
|
if (!(u || !e.call(this, b, C))) {
|
|
@@ -747,14 +747,14 @@ function Ql() {
|
|
|
747
747
|
function w(b) {
|
|
748
748
|
Re(b.view).on("mousemove.drag mouseup.drag", null), ql(b.view, l), on(b), o.mouse("end", b);
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function m(b, C) {
|
|
751
751
|
if (e.call(this, b, C)) {
|
|
752
752
|
var v = b.changedTouches, E = t.call(this, b, C), N = v.length, k, P;
|
|
753
753
|
for (k = 0; k < N; ++k)
|
|
754
754
|
(P = g(this, E, b, C, v[k].identifier, v[k])) && (So(b), P("start", b, v[k]));
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function y(b) {
|
|
758
758
|
var C = b.changedTouches, v = C.length, E, N;
|
|
759
759
|
for (E = 0; E < v; ++E)
|
|
760
760
|
(N = o[C[E].identifier]) && (on(b), N("drag", b, C[E]));
|
|
@@ -1274,7 +1274,7 @@ function oc(e, t, n, r) {
|
|
|
1274
1274
|
return function(l, u) {
|
|
1275
1275
|
var h = [], f = [];
|
|
1276
1276
|
return l = e(l), u = e(u), i(l.translateX, l.translateY, u.translateX, u.translateY, h, f), a(l.rotate, u.rotate, h, f), s(l.skewX, u.skewX, h, f), c(l.scaleX, l.scaleY, u.scaleX, u.scaleY, h, f), l = u = null, function(d) {
|
|
1277
|
-
for (var p = -1, w = f.length,
|
|
1277
|
+
for (var p = -1, w = f.length, m; ++p < w; ) h[(m = f[p]).i] = m.x(d);
|
|
1278
1278
|
return h.join("");
|
|
1279
1279
|
};
|
|
1280
1280
|
};
|
|
@@ -1291,19 +1291,19 @@ function kp(e) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
const Dr = (function e(t, n, r) {
|
|
1293
1293
|
function o(i, a) {
|
|
1294
|
-
var s = i[0], c = i[1], l = i[2], u = a[0], h = a[1], f = a[2], d = u - s, p = h - c, w = d * d + p * p,
|
|
1294
|
+
var s = i[0], c = i[1], l = i[2], u = a[0], h = a[1], f = a[2], d = u - s, p = h - c, w = d * d + p * p, m, y;
|
|
1295
1295
|
if (w < Ep)
|
|
1296
|
-
|
|
1296
|
+
y = Math.log(f / l) / t, m = function(E) {
|
|
1297
1297
|
return [
|
|
1298
1298
|
s + E * d,
|
|
1299
1299
|
c + E * p,
|
|
1300
|
-
l * Math.exp(t * E *
|
|
1300
|
+
l * Math.exp(t * E * y)
|
|
1301
1301
|
];
|
|
1302
1302
|
};
|
|
1303
1303
|
else {
|
|
1304
1304
|
var S = Math.sqrt(w), g = (f * f - l * l + r * w) / (2 * l * n * S), b = (f * f - l * l - r * w) / (2 * f * n * S), C = Math.log(Math.sqrt(g * g + 1) - g), v = Math.log(Math.sqrt(b * b + 1) - b);
|
|
1305
|
-
|
|
1306
|
-
var N = E *
|
|
1305
|
+
y = (v - C) / t, m = function(E) {
|
|
1306
|
+
var N = E * y, k = Ca(C), P = l / (n * S) * (k * kp(t * N + C) - Cp(C));
|
|
1307
1307
|
return [
|
|
1308
1308
|
s + P * d,
|
|
1309
1309
|
c + P * p,
|
|
@@ -1311,7 +1311,7 @@ const Dr = (function e(t, n, r) {
|
|
|
1311
1311
|
];
|
|
1312
1312
|
};
|
|
1313
1313
|
}
|
|
1314
|
-
return
|
|
1314
|
+
return m.duration = y * 1e3 * t / Math.SQRT2, m;
|
|
1315
1315
|
}
|
|
1316
1316
|
return o.rho = function(i) {
|
|
1317
1317
|
var a = Math.max(1e-3, +i), s = a * a, c = s * s;
|
|
@@ -1705,7 +1705,7 @@ function pg(e) {
|
|
|
1705
1705
|
for (var r = this._groups, o = r.length, i = [], a = [], s = 0; s < o; ++s)
|
|
1706
1706
|
for (var c = r[s], l = c.length, u, h = 0; h < l; ++h)
|
|
1707
1707
|
if (u = c[h]) {
|
|
1708
|
-
for (var f = e.call(u, u.__data__, h, c), d, p = et(u, n), w = 0,
|
|
1708
|
+
for (var f = e.call(u, u.__data__, h, c), d, p = et(u, n), w = 0, m = f.length; w < m; ++w)
|
|
1709
1709
|
(d = f[w]) && ro(d, t, n, w, f, p);
|
|
1710
1710
|
i.push(f), a.push(u);
|
|
1711
1711
|
}
|
|
@@ -1988,34 +1988,34 @@ function Fg(e, t, n) {
|
|
|
1988
1988
|
);
|
|
1989
1989
|
}
|
|
1990
1990
|
function hc() {
|
|
1991
|
-
var e = Hg, t = Vg, n = Fg, r = jg, o = Bg, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, c = Dr, l = eo("start", "zoom", "end"), u, h, f, d = 500, p = 150, w = 0,
|
|
1992
|
-
function
|
|
1991
|
+
var e = Hg, t = Vg, n = Fg, r = jg, o = Bg, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, c = Dr, l = eo("start", "zoom", "end"), u, h, f, d = 500, p = 150, w = 0, m = 10;
|
|
1992
|
+
function y(_) {
|
|
1993
1993
|
_.property("__zoom", Ta).on("wheel.zoom", N, { passive: !1 }).on("mousedown.zoom", k).on("dblclick.zoom", P).filter(o).on("touchstart.zoom", I).on("touchmove.zoom", L).on("touchend.zoom touchcancel.zoom", R).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
1994
1994
|
}
|
|
1995
|
-
|
|
1995
|
+
y.transform = function(_, M, A, T) {
|
|
1996
1996
|
var $ = _.selection ? _.selection() : _;
|
|
1997
1997
|
$.property("__zoom", Ta), _ !== $ ? C(_, M, A, T) : $.interrupt().each(function() {
|
|
1998
1998
|
v(this, arguments).event(T).start().zoom(null, typeof M == "function" ? M.apply(this, arguments) : M).end();
|
|
1999
1999
|
});
|
|
2000
|
-
},
|
|
2001
|
-
|
|
2000
|
+
}, y.scaleBy = function(_, M, A, T) {
|
|
2001
|
+
y.scaleTo(_, function() {
|
|
2002
2002
|
var $ = this.__zoom.k, O = typeof M == "function" ? M.apply(this, arguments) : M;
|
|
2003
2003
|
return $ * O;
|
|
2004
2004
|
}, A, T);
|
|
2005
|
-
},
|
|
2006
|
-
|
|
2007
|
-
var $ = t.apply(this, arguments), O = this.__zoom, j = A == null ? b($) : typeof A == "function" ? A.apply(this, arguments) : A, B = O.invert(j),
|
|
2008
|
-
return n(g(S(O,
|
|
2005
|
+
}, y.scaleTo = function(_, M, A, T) {
|
|
2006
|
+
y.transform(_, function() {
|
|
2007
|
+
var $ = t.apply(this, arguments), O = this.__zoom, j = A == null ? b($) : typeof A == "function" ? A.apply(this, arguments) : A, B = O.invert(j), V = typeof M == "function" ? M.apply(this, arguments) : M;
|
|
2008
|
+
return n(g(S(O, V), j, B), $, a);
|
|
2009
2009
|
}, A, T);
|
|
2010
|
-
},
|
|
2011
|
-
|
|
2010
|
+
}, y.translateBy = function(_, M, A, T) {
|
|
2011
|
+
y.transform(_, function() {
|
|
2012
2012
|
return n(this.__zoom.translate(
|
|
2013
2013
|
typeof M == "function" ? M.apply(this, arguments) : M,
|
|
2014
2014
|
typeof A == "function" ? A.apply(this, arguments) : A
|
|
2015
2015
|
), t.apply(this, arguments), a);
|
|
2016
2016
|
}, null, T);
|
|
2017
|
-
},
|
|
2018
|
-
|
|
2017
|
+
}, y.translateTo = function(_, M, A, T, $) {
|
|
2018
|
+
y.transform(_, function() {
|
|
2019
2019
|
var O = t.apply(this, arguments), j = this.__zoom, B = T == null ? b(O) : typeof T == "function" ? T.apply(this, arguments) : T;
|
|
2020
2020
|
return n(oo.translate(B[0], B[1]).scale(j.k).translate(
|
|
2021
2021
|
typeof M == "function" ? -M.apply(this, arguments) : -M,
|
|
@@ -2039,12 +2039,12 @@ function hc() {
|
|
|
2039
2039
|
}).on("interrupt.zoom end.zoom", function() {
|
|
2040
2040
|
v(this, arguments).event(T).end();
|
|
2041
2041
|
}).tween("zoom", function() {
|
|
2042
|
-
var $ = this, O = arguments, j = v($, O).event(T), B = t.apply($, O),
|
|
2042
|
+
var $ = this, O = arguments, j = v($, O).event(T), B = t.apply($, O), V = A == null ? b(B) : typeof A == "function" ? A.apply($, O) : A, X = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]), U = $.__zoom, Z = typeof M == "function" ? M.apply($, O) : M, te = c(U.invert(V).concat(X / U.k), Z.invert(V).concat(X / Z.k));
|
|
2043
2043
|
return function(z) {
|
|
2044
2044
|
if (z === 1) z = Z;
|
|
2045
2045
|
else {
|
|
2046
2046
|
var D = te(z), F = X / D[2];
|
|
2047
|
-
z = new yt(F,
|
|
2047
|
+
z = new yt(F, V[0] - D[0] * F, V[1] - D[1] * F);
|
|
2048
2048
|
}
|
|
2049
2049
|
j.zoom(null, z);
|
|
2050
2050
|
};
|
|
@@ -2076,7 +2076,7 @@ function hc() {
|
|
|
2076
2076
|
this.that,
|
|
2077
2077
|
new Lg(_, {
|
|
2078
2078
|
sourceEvent: this.sourceEvent,
|
|
2079
|
-
target:
|
|
2079
|
+
target: y,
|
|
2080
2080
|
transform: this.that.__zoom,
|
|
2081
2081
|
dispatch: l
|
|
2082
2082
|
}),
|
|
@@ -2100,9 +2100,9 @@ function hc() {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
function k(_, ...M) {
|
|
2102
2102
|
if (f || !e.apply(this, arguments)) return;
|
|
2103
|
-
var A = _.currentTarget, T = v(this, M, !0).event(_), $ = Re(_.view).on("mousemove.zoom",
|
|
2103
|
+
var A = _.currentTarget, T = v(this, M, !0).event(_), $ = Re(_.view).on("mousemove.zoom", V, !0).on("mouseup.zoom", X, !0), O = Ye(_, A), j = _.clientX, B = _.clientY;
|
|
2104
2104
|
Zl(_.view), ko(_), T.mouse = [O, this.__zoom.invert(O)], Or(this), T.start();
|
|
2105
|
-
function
|
|
2105
|
+
function V(U) {
|
|
2106
2106
|
if (Cn(U), !T.moved) {
|
|
2107
2107
|
var Z = U.clientX - j, te = U.clientY - B;
|
|
2108
2108
|
T.moved = Z * Z + te * te > w;
|
|
@@ -2116,30 +2116,30 @@ function hc() {
|
|
|
2116
2116
|
function P(_, ...M) {
|
|
2117
2117
|
if (e.apply(this, arguments)) {
|
|
2118
2118
|
var A = this.__zoom, T = Ye(_.changedTouches ? _.changedTouches[0] : _, this), $ = A.invert(T), O = A.k * (_.shiftKey ? 0.5 : 2), j = n(g(S(A, O), T, $), t.apply(this, M), a);
|
|
2119
|
-
Cn(_), s > 0 ? Re(this).transition().duration(s).call(C, j, T, _) : Re(this).call(
|
|
2119
|
+
Cn(_), s > 0 ? Re(this).transition().duration(s).call(C, j, T, _) : Re(this).call(y.transform, j, T, _);
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
function I(_, ...M) {
|
|
2123
2123
|
if (e.apply(this, arguments)) {
|
|
2124
|
-
var A = _.touches, T = A.length, $ = v(this, M, _.changedTouches.length === T).event(_), O, j, B,
|
|
2124
|
+
var A = _.touches, T = A.length, $ = v(this, M, _.changedTouches.length === T).event(_), O, j, B, V;
|
|
2125
2125
|
for (ko(_), j = 0; j < T; ++j)
|
|
2126
|
-
B = A[j],
|
|
2127
|
-
u && (u = clearTimeout(u)), O && ($.taps < 2 && (h =
|
|
2126
|
+
B = A[j], V = Ye(B, this), V = [V, this.__zoom.invert(V), B.identifier], $.touch0 ? !$.touch1 && $.touch0[2] !== V[2] && ($.touch1 = V, $.taps = 0) : ($.touch0 = V, O = !0, $.taps = 1 + !!u);
|
|
2127
|
+
u && (u = clearTimeout(u)), O && ($.taps < 2 && (h = V[0], u = setTimeout(function() {
|
|
2128
2128
|
u = null;
|
|
2129
2129
|
}, d)), Or(this), $.start());
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
function L(_, ...M) {
|
|
2133
2133
|
if (this.__zooming) {
|
|
2134
|
-
var A = v(this, M).event(_), T = _.changedTouches, $ = T.length, O, j, B,
|
|
2134
|
+
var A = v(this, M).event(_), T = _.changedTouches, $ = T.length, O, j, B, V;
|
|
2135
2135
|
for (Cn(_), O = 0; O < $; ++O)
|
|
2136
2136
|
j = T[O], B = Ye(j, this), A.touch0 && A.touch0[2] === j.identifier ? A.touch0[0] = B : A.touch1 && A.touch1[2] === j.identifier && (A.touch1[0] = B);
|
|
2137
2137
|
if (j = A.that.__zoom, A.touch1) {
|
|
2138
2138
|
var X = A.touch0[0], U = A.touch0[1], Z = A.touch1[0], te = A.touch1[1], z = (z = Z[0] - X[0]) * z + (z = Z[1] - X[1]) * z, D = (D = te[0] - U[0]) * D + (D = te[1] - U[1]) * D;
|
|
2139
|
-
j = S(j, Math.sqrt(z / D)), B = [(X[0] + Z[0]) / 2, (X[1] + Z[1]) / 2],
|
|
2140
|
-
} else if (A.touch0) B = A.touch0[0],
|
|
2139
|
+
j = S(j, Math.sqrt(z / D)), B = [(X[0] + Z[0]) / 2, (X[1] + Z[1]) / 2], V = [(U[0] + te[0]) / 2, (U[1] + te[1]) / 2];
|
|
2140
|
+
} else if (A.touch0) B = A.touch0[0], V = A.touch0[1];
|
|
2141
2141
|
else return;
|
|
2142
|
-
A.zoom("touch", n(g(j, B,
|
|
2142
|
+
A.zoom("touch", n(g(j, B, V), A.extent, a));
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
2145
|
function R(_, ...M) {
|
|
@@ -2150,38 +2150,38 @@ function hc() {
|
|
|
2150
2150
|
}, d), O = 0; O < $; ++O)
|
|
2151
2151
|
j = T[O], A.touch0 && A.touch0[2] === j.identifier ? delete A.touch0 : A.touch1 && A.touch1[2] === j.identifier && delete A.touch1;
|
|
2152
2152
|
if (A.touch1 && !A.touch0 && (A.touch0 = A.touch1, delete A.touch1), A.touch0) A.touch0[1] = this.__zoom.invert(A.touch0[0]);
|
|
2153
|
-
else if (A.end(), A.taps === 2 && (j = Ye(j, this), Math.hypot(h[0] - j[0], h[1] - j[1]) <
|
|
2153
|
+
else if (A.end(), A.taps === 2 && (j = Ye(j, this), Math.hypot(h[0] - j[0], h[1] - j[1]) < m)) {
|
|
2154
2154
|
var B = Re(this).on("dblclick.zoom");
|
|
2155
2155
|
B && B.apply(this, arguments);
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
return
|
|
2160
|
-
return arguments.length ? (r = typeof _ == "function" ? _ : gr(+_),
|
|
2161
|
-
},
|
|
2162
|
-
return arguments.length ? (e = typeof _ == "function" ? _ : gr(!!_),
|
|
2163
|
-
},
|
|
2164
|
-
return arguments.length ? (o = typeof _ == "function" ? _ : gr(!!_),
|
|
2165
|
-
},
|
|
2166
|
-
return arguments.length ? (t = typeof _ == "function" ? _ : gr([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]),
|
|
2167
|
-
},
|
|
2168
|
-
return arguments.length ? (i[0] = +_[0], i[1] = +_[1],
|
|
2169
|
-
},
|
|
2170
|
-
return arguments.length ? (a[0][0] = +_[0][0], a[1][0] = +_[1][0], a[0][1] = +_[0][1], a[1][1] = +_[1][1],
|
|
2171
|
-
},
|
|
2172
|
-
return arguments.length ? (n = _,
|
|
2173
|
-
},
|
|
2174
|
-
return arguments.length ? (s = +_,
|
|
2175
|
-
},
|
|
2176
|
-
return arguments.length ? (c = _,
|
|
2177
|
-
},
|
|
2159
|
+
return y.wheelDelta = function(_) {
|
|
2160
|
+
return arguments.length ? (r = typeof _ == "function" ? _ : gr(+_), y) : r;
|
|
2161
|
+
}, y.filter = function(_) {
|
|
2162
|
+
return arguments.length ? (e = typeof _ == "function" ? _ : gr(!!_), y) : e;
|
|
2163
|
+
}, y.touchable = function(_) {
|
|
2164
|
+
return arguments.length ? (o = typeof _ == "function" ? _ : gr(!!_), y) : o;
|
|
2165
|
+
}, y.extent = function(_) {
|
|
2166
|
+
return arguments.length ? (t = typeof _ == "function" ? _ : gr([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), y) : t;
|
|
2167
|
+
}, y.scaleExtent = function(_) {
|
|
2168
|
+
return arguments.length ? (i[0] = +_[0], i[1] = +_[1], y) : [i[0], i[1]];
|
|
2169
|
+
}, y.translateExtent = function(_) {
|
|
2170
|
+
return arguments.length ? (a[0][0] = +_[0][0], a[1][0] = +_[1][0], a[0][1] = +_[0][1], a[1][1] = +_[1][1], y) : [[a[0][0], a[0][1]], [a[1][0], a[1][1]]];
|
|
2171
|
+
}, y.constrain = function(_) {
|
|
2172
|
+
return arguments.length ? (n = _, y) : n;
|
|
2173
|
+
}, y.duration = function(_) {
|
|
2174
|
+
return arguments.length ? (s = +_, y) : s;
|
|
2175
|
+
}, y.interpolate = function(_) {
|
|
2176
|
+
return arguments.length ? (c = _, y) : c;
|
|
2177
|
+
}, y.on = function() {
|
|
2178
2178
|
var _ = l.on.apply(l, arguments);
|
|
2179
|
-
return _ === l ?
|
|
2180
|
-
},
|
|
2181
|
-
return arguments.length ? (w = (_ = +_) * _,
|
|
2182
|
-
},
|
|
2183
|
-
return arguments.length ? (
|
|
2184
|
-
},
|
|
2179
|
+
return _ === l ? y : _;
|
|
2180
|
+
}, y.clickDistance = function(_) {
|
|
2181
|
+
return arguments.length ? (w = (_ = +_) * _, y) : Math.sqrt(w);
|
|
2182
|
+
}, y.tapDistance = function(_) {
|
|
2183
|
+
return arguments.length ? (m = +_, y) : m;
|
|
2184
|
+
}, y;
|
|
2185
2185
|
}
|
|
2186
2186
|
const je = {
|
|
2187
2187
|
error001: (e = "react") => `Seems like you have not used ${e === "svelte" ? "SvelteFlowProvider" : "ReactFlowProvider"} as an ancestor. Help: https://${e}flow.dev/error#001`,
|
|
@@ -2300,7 +2300,7 @@ const bc = (e) => !!e && typeof e == "object" && "id" in e && "source" in e && "
|
|
|
2300
2300
|
const { measured: d, selectable: p = !0, hidden: w = !1 } = f;
|
|
2301
2301
|
if (a && !p || w)
|
|
2302
2302
|
continue;
|
|
2303
|
-
const
|
|
2303
|
+
const m = d.width ?? f.width ?? f.initialWidth ?? 0, y = d.height ?? f.height ?? f.initialHeight ?? 0, { x: S, y: g } = f.internals.positionAbsolute, b = Sc(s, c, l, u, S, g, m, y), C = m * y, v = i && b > 0;
|
|
2304
2304
|
(!f.internals.handleBounds || v || b >= C || f.dragging) && h.push(f);
|
|
2305
2305
|
}
|
|
2306
2306
|
return h;
|
|
@@ -2486,15 +2486,15 @@ function qg(e, t, n, r, o, i) {
|
|
|
2486
2486
|
};
|
|
2487
2487
|
}
|
|
2488
2488
|
const Li = (e, t, n, r, o, i) => {
|
|
2489
|
-
const a = Zg(i, t, n), s = (t - a.x) / e.width, c = (n - a.y) / e.height, l = Math.min(s, c), u = dn(l, r, o), h = e.x + e.width / 2, f = e.y + e.height / 2, d = t / 2 - h * u, p = n / 2 - f * u, w = qg(e, d, p, u, t, n),
|
|
2489
|
+
const a = Zg(i, t, n), s = (t - a.x) / e.width, c = (n - a.y) / e.height, l = Math.min(s, c), u = dn(l, r, o), h = e.x + e.width / 2, f = e.y + e.height / 2, d = t / 2 - h * u, p = n / 2 - f * u, w = qg(e, d, p, u, t, n), m = {
|
|
2490
2490
|
left: Math.min(w.left - a.left, 0),
|
|
2491
2491
|
top: Math.min(w.top - a.top, 0),
|
|
2492
2492
|
right: Math.min(w.right - a.right, 0),
|
|
2493
2493
|
bottom: Math.min(w.bottom - a.bottom, 0)
|
|
2494
2494
|
};
|
|
2495
2495
|
return {
|
|
2496
|
-
x: d -
|
|
2497
|
-
y: p -
|
|
2496
|
+
x: d - m.left + m.right,
|
|
2497
|
+
y: p - m.top + m.bottom,
|
|
2498
2498
|
zoom: u
|
|
2499
2499
|
};
|
|
2500
2500
|
}, Xn = () => typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0;
|
|
@@ -2676,21 +2676,21 @@ function sm({ source: e, sourcePosition: t = Y.Bottom, target: n, targetPosition
|
|
|
2676
2676
|
sourcePosition: t,
|
|
2677
2677
|
target: u
|
|
2678
2678
|
}), f = h.x !== 0 ? "x" : "y", d = h[f];
|
|
2679
|
-
let p = [], w,
|
|
2680
|
-
const
|
|
2679
|
+
let p = [], w, m;
|
|
2680
|
+
const y = { x: 0, y: 0 }, S = { x: 0, y: 0 }, [, , g, b] = Dc({
|
|
2681
2681
|
sourceX: e.x,
|
|
2682
2682
|
sourceY: e.y,
|
|
2683
2683
|
targetX: n.x,
|
|
2684
2684
|
targetY: n.y
|
|
2685
2685
|
});
|
|
2686
2686
|
if (s[f] * c[f] === -1) {
|
|
2687
|
-
f === "x" ? (w = o.x ?? l.x + (u.x - l.x) * a,
|
|
2687
|
+
f === "x" ? (w = o.x ?? l.x + (u.x - l.x) * a, m = o.y ?? (l.y + u.y) / 2) : (w = o.x ?? (l.x + u.x) / 2, m = o.y ?? l.y + (u.y - l.y) * a);
|
|
2688
2688
|
const N = [
|
|
2689
2689
|
{ x: w, y: l.y },
|
|
2690
2690
|
{ x: w, y: u.y }
|
|
2691
2691
|
], k = [
|
|
2692
|
-
{ x: l.x, y },
|
|
2693
|
-
{ x: u.x, y }
|
|
2692
|
+
{ x: l.x, y: m },
|
|
2693
|
+
{ x: u.x, y: m }
|
|
2694
2694
|
];
|
|
2695
2695
|
s[f] === d ? p = f === "x" ? N : k : p = f === "x" ? k : N;
|
|
2696
2696
|
} else {
|
|
@@ -2699,17 +2699,17 @@ function sm({ source: e, sourcePosition: t = Y.Bottom, target: n, targetPosition
|
|
|
2699
2699
|
const _ = Math.abs(e[f] - n[f]);
|
|
2700
2700
|
if (_ <= i) {
|
|
2701
2701
|
const M = Math.min(i - 1, i - _);
|
|
2702
|
-
s[f] === d ?
|
|
2702
|
+
s[f] === d ? y[f] = (l[f] > e[f] ? -1 : 1) * M : S[f] = (u[f] > n[f] ? -1 : 1) * M;
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
if (t !== r) {
|
|
2706
2706
|
const _ = f === "x" ? "y" : "x", M = s[f] === c[_], A = l[_] > u[_], T = l[_] < u[_];
|
|
2707
2707
|
(s[f] === 1 && (!M && A || M && T) || s[f] !== 1 && (!M && T || M && A)) && (p = f === "x" ? N : k);
|
|
2708
2708
|
}
|
|
2709
|
-
const P = { x: l.x +
|
|
2710
|
-
L >= R ? (w = (P.x + I.x) / 2,
|
|
2709
|
+
const P = { x: l.x + y.x, y: l.y + y.y }, I = { x: u.x + S.x, y: u.y + S.y }, L = Math.max(Math.abs(P.x - p[0].x), Math.abs(I.x - p[0].x)), R = Math.max(Math.abs(P.y - p[0].y), Math.abs(I.y - p[0].y));
|
|
2710
|
+
L >= R ? (w = (P.x + I.x) / 2, m = p[0].y) : (w = p[0].x, m = (P.y + I.y) / 2);
|
|
2711
2711
|
}
|
|
2712
|
-
const C = { x: l.x +
|
|
2712
|
+
const C = { x: l.x + y.x, y: l.y + y.y }, v = { x: u.x + S.x, y: u.y + S.y };
|
|
2713
2713
|
return [[
|
|
2714
2714
|
e,
|
|
2715
2715
|
// we only want to add the gapped source/target if they are different from the first/last point to avoid duplicates which can cause issues with the bends
|
|
@@ -2717,7 +2717,7 @@ function sm({ source: e, sourcePosition: t = Y.Bottom, target: n, targetPosition
|
|
|
2717
2717
|
...p,
|
|
2718
2718
|
...v.x !== p[p.length - 1].x || v.y !== p[p.length - 1].y ? [v] : [],
|
|
2719
2719
|
n
|
|
2720
|
-
], w,
|
|
2720
|
+
], w, m, g, b];
|
|
2721
2721
|
}
|
|
2722
2722
|
function lm(e, t, n, r) {
|
|
2723
2723
|
const o = Math.min(La(e, t) / 2, La(t, n) / 2, r), { x: i, y: a } = t;
|
|
@@ -2740,10 +2740,10 @@ function Xr({ sourceX: e, sourceY: t, sourcePosition: n = Y.Bottom, targetX: r,
|
|
|
2740
2740
|
offset: l,
|
|
2741
2741
|
stepPosition: u
|
|
2742
2742
|
});
|
|
2743
|
-
let
|
|
2744
|
-
for (let
|
|
2745
|
-
|
|
2746
|
-
return
|
|
2743
|
+
let m = `M${h[0].x} ${h[0].y}`;
|
|
2744
|
+
for (let y = 1; y < h.length - 1; y++)
|
|
2745
|
+
m += lm(h[y - 1], h[y], h[y + 1], a);
|
|
2746
|
+
return m += `L${h[h.length - 1].x} ${h[h.length - 1].y}`, [m, f, d, p, w];
|
|
2747
2747
|
}
|
|
2748
2748
|
function Ha(e) {
|
|
2749
2749
|
return e && !!(e.internals.handleBounds || e.handles?.length) && !!(e.measured.width || e.width || e.initialWidth);
|
|
@@ -2908,12 +2908,12 @@ function Fi(e, t, n, r, o) {
|
|
|
2908
2908
|
return;
|
|
2909
2909
|
}
|
|
2910
2910
|
gm(e, n), o && !u.parentId && u.internals.rootParentIndex === void 0 && c === "auto" && (u.internals.rootParentIndex = ++o.i, u.internals.z = u.internals.z + o.i * dm), o && u.internals.rootParentIndex !== void 0 && (o.i = u.internals.rootParentIndex);
|
|
2911
|
-
const h = i && !Bi(c) ? Pc : 0, { x: f, y: d, z: p } = mm(e, u, a, s, h, c), { positionAbsolute: w } = e.internals,
|
|
2912
|
-
(
|
|
2911
|
+
const h = i && !Bi(c) ? Pc : 0, { x: f, y: d, z: p } = mm(e, u, a, s, h, c), { positionAbsolute: w } = e.internals, m = f !== w.x || d !== w.y;
|
|
2912
|
+
(m || p !== e.internals.z) && t.set(e.id, {
|
|
2913
2913
|
...e,
|
|
2914
2914
|
internals: {
|
|
2915
2915
|
...e.internals,
|
|
2916
|
-
positionAbsolute:
|
|
2916
|
+
positionAbsolute: m ? { x: f, y: d } : w,
|
|
2917
2917
|
z: p
|
|
2918
2918
|
}
|
|
2919
2919
|
});
|
|
@@ -2943,13 +2943,13 @@ function Wi(e, t, n, r = [0, 0]) {
|
|
|
2943
2943
|
i.set(a.parentId, { expandedRect: l, parent: s });
|
|
2944
2944
|
}
|
|
2945
2945
|
return i.size > 0 && i.forEach(({ expandedRect: a, parent: s }, c) => {
|
|
2946
|
-
const l = s.internals.positionAbsolute, u = ct(s), h = s.origin ?? r, f = a.x < l.x ? Math.round(Math.abs(l.x - a.x)) : 0, d = a.y < l.y ? Math.round(Math.abs(l.y - a.y)) : 0, p = Math.max(u.width, Math.round(a.width)), w = Math.max(u.height, Math.round(a.height)),
|
|
2947
|
-
(f > 0 || d > 0 ||
|
|
2946
|
+
const l = s.internals.positionAbsolute, u = ct(s), h = s.origin ?? r, f = a.x < l.x ? Math.round(Math.abs(l.x - a.x)) : 0, d = a.y < l.y ? Math.round(Math.abs(l.y - a.y)) : 0, p = Math.max(u.width, Math.round(a.width)), w = Math.max(u.height, Math.round(a.height)), m = (p - u.width) * h[0], y = (w - u.height) * h[1];
|
|
2947
|
+
(f > 0 || d > 0 || m || y) && (o.push({
|
|
2948
2948
|
id: c,
|
|
2949
2949
|
type: "position",
|
|
2950
2950
|
position: {
|
|
2951
|
-
x: s.position.x - f +
|
|
2952
|
-
y: s.position.y - d +
|
|
2951
|
+
x: s.position.x - f + m,
|
|
2952
|
+
y: s.position.y - d + y
|
|
2953
2953
|
}
|
|
2954
2954
|
}), n.get(c)?.forEach((S) => {
|
|
2955
2955
|
e.some((g) => g.id === S.id) || o.push({
|
|
@@ -2965,8 +2965,8 @@ function Wi(e, t, n, r = [0, 0]) {
|
|
|
2965
2965
|
type: "dimensions",
|
|
2966
2966
|
setAttributes: !0,
|
|
2967
2967
|
dimensions: {
|
|
2968
|
-
width: p + (f ? h[0] * f -
|
|
2969
|
-
height: w + (d ? h[1] * d -
|
|
2968
|
+
width: p + (f ? h[0] * f - m : 0),
|
|
2969
|
+
height: w + (d ? h[1] * d - y : 0)
|
|
2970
2970
|
}
|
|
2971
2971
|
});
|
|
2972
2972
|
}), o;
|
|
@@ -2991,8 +2991,8 @@ function ym(e, t, n, r, o, i, a) {
|
|
|
2991
2991
|
}), c = !0;
|
|
2992
2992
|
continue;
|
|
2993
2993
|
}
|
|
2994
|
-
const w = Hi(d.nodeElement),
|
|
2995
|
-
if (!!(w.width && w.height && (
|
|
2994
|
+
const w = Hi(d.nodeElement), m = p.measured.width !== w.width || p.measured.height !== w.height;
|
|
2995
|
+
if (!!(w.width && w.height && (m || !p.internals.handleBounds || d.force))) {
|
|
2996
2996
|
const S = d.nodeElement.getBoundingClientRect(), g = Ut(p.extent) ? p.extent : i;
|
|
2997
2997
|
let { positionAbsolute: b } = p.internals;
|
|
2998
2998
|
if (p.parentId && p.extent === "parent") {
|
|
@@ -3011,7 +3011,7 @@ function ym(e, t, n, r, o, i, a) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
}
|
|
3013
3013
|
};
|
|
3014
|
-
t.set(p.id, C), p.parentId && Fi(C, t, n, { nodeOrigin: o, zIndexMode: a }), c = !0,
|
|
3014
|
+
t.set(p.id, C), p.parentId && Fi(C, t, n, { nodeOrigin: o, zIndexMode: a }), c = !0, m && (l.push({
|
|
3015
3015
|
id: p.id,
|
|
3016
3016
|
type: "dimensions",
|
|
3017
3017
|
dimensions: w
|
|
@@ -3140,10 +3140,10 @@ function xm({ dragItems: e, snapGrid: t, x: n, y: r }) {
|
|
|
3140
3140
|
}
|
|
3141
3141
|
function vm({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, onDragStop: o }) {
|
|
3142
3142
|
let i = { x: null, y: null }, a = 0, s = /* @__PURE__ */ new Map(), c = !1, l = { x: 0, y: 0 }, u = null, h = !1, f = null, d = !1, p = !1, w = null;
|
|
3143
|
-
function
|
|
3143
|
+
function m({ noDragClassName: S, handleSelector: g, domNode: b, isSelectable: C, nodeId: v, nodeClickDistance: E = 0 }) {
|
|
3144
3144
|
f = Re(b);
|
|
3145
3145
|
function N({ x: L, y: R }) {
|
|
3146
|
-
const { nodeLookup: _, nodeExtent: M, snapGrid: A, snapToGrid: T, nodeOrigin: $, onNodeDrag: O, onSelectionDrag: j, onError: B, updateNodePositions:
|
|
3146
|
+
const { nodeLookup: _, nodeExtent: M, snapGrid: A, snapToGrid: T, nodeOrigin: $, onNodeDrag: O, onSelectionDrag: j, onError: B, updateNodePositions: V } = t();
|
|
3147
3147
|
i = { x: L, y: R };
|
|
3148
3148
|
let X = !1;
|
|
3149
3149
|
const U = s.size > 1, Z = U && M ? ii(rr(s)) : null, te = U && T ? xm({
|
|
@@ -3178,7 +3178,7 @@ function vm({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3178
3178
|
});
|
|
3179
3179
|
X = X || D.position.x !== J.x || D.position.y !== J.y, D.position = J, D.internals.positionAbsolute = K;
|
|
3180
3180
|
}
|
|
3181
|
-
if (p = p || X, !!X && (
|
|
3181
|
+
if (p = p || X, !!X && (V(s, !0), w && (r || O || !v && j))) {
|
|
3182
3182
|
const [z, D] = No({
|
|
3183
3183
|
nodeId: v,
|
|
3184
3184
|
dragItems: s,
|
|
@@ -3199,8 +3199,8 @@ function vm({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3199
3199
|
(A !== 0 || T !== 0) && (i.x = (i.x ?? 0) - A / L[2], i.y = (i.y ?? 0) - T / L[2], await R({ x: A, y: T }) && N(i)), a = requestAnimationFrame(k);
|
|
3200
3200
|
}
|
|
3201
3201
|
function P(L) {
|
|
3202
|
-
const { nodeLookup: R, multiSelectionActive: _, nodesDraggable: M, transform: A, snapGrid: T, snapToGrid: $, selectNodesOnDrag: O, onNodeDragStart: j, onSelectionDragStart: B, unselectNodesAndEdges:
|
|
3203
|
-
h = !0, (!O || !C) && !_ && v && (R.get(v)?.selected ||
|
|
3202
|
+
const { nodeLookup: R, multiSelectionActive: _, nodesDraggable: M, transform: A, snapGrid: T, snapToGrid: $, selectNodesOnDrag: O, onNodeDragStart: j, onSelectionDragStart: B, unselectNodesAndEdges: V } = t();
|
|
3203
|
+
h = !0, (!O || !C) && !_ && v && (R.get(v)?.selected || V()), C && O && v && e?.(v);
|
|
3204
3204
|
const X = Pn(L.sourceEvent, { transform: A, snapGrid: T, snapToGrid: $, containerBounds: u });
|
|
3205
3205
|
if (i = X, s = wm(R, M, X, v), s.size > 0 && (n || j || !v && B)) {
|
|
3206
3206
|
const [U, Z] = No({
|
|
@@ -3219,8 +3219,8 @@ function vm({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3219
3219
|
if (w = L.sourceEvent, (L.sourceEvent.type === "touchmove" && L.sourceEvent.touches.length > 1 || // if user deletes a node while dragging, we need to abort the drag to prevent errors
|
|
3220
3220
|
v && !$.has(v)) && (d = !0), !d) {
|
|
3221
3221
|
if (!c && R && h && (c = !0, k()), !h) {
|
|
3222
|
-
const j = Je(L.sourceEvent, u), B = j.x - l.x,
|
|
3223
|
-
Math.sqrt(B * B +
|
|
3222
|
+
const j = Je(L.sourceEvent, u), B = j.x - l.x, V = j.y - l.y;
|
|
3223
|
+
Math.sqrt(B * B + V * V) > T && P(L);
|
|
3224
3224
|
}
|
|
3225
3225
|
(i.x !== O.xSnapped || i.y !== O.ySnapped) && s && h && (l = Je(L.sourceEvent, u), N(O));
|
|
3226
3226
|
}
|
|
@@ -3247,12 +3247,12 @@ function vm({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
|
|
|
3247
3247
|
});
|
|
3248
3248
|
f.call(I);
|
|
3249
3249
|
}
|
|
3250
|
-
function
|
|
3250
|
+
function y() {
|
|
3251
3251
|
f?.on(".drag", null);
|
|
3252
3252
|
}
|
|
3253
3253
|
return {
|
|
3254
|
-
update:
|
|
3255
|
-
destroy:
|
|
3254
|
+
update: m,
|
|
3255
|
+
destroy: y
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
3258
|
function _m(e, t, n) {
|
|
@@ -3302,7 +3302,7 @@ function Cm(e, t) {
|
|
|
3302
3302
|
return t ? n = !0 : e && !t && (n = !1), n;
|
|
3303
3303
|
}
|
|
3304
3304
|
const Vc = () => !0;
|
|
3305
|
-
function km(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: c, lib: l, autoPanOnConnect: u, flowId: h, panBy: f, cancelConnection: d, onConnectStart: p, onConnect: w, onConnectEnd:
|
|
3305
|
+
function km(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: c, lib: l, autoPanOnConnect: u, flowId: h, panBy: f, cancelConnection: d, onConnectStart: p, onConnect: w, onConnectEnd: m, isValidConnection: y = Vc, onReconnectEnd: S, updateConnection: g, getTransform: b, getFromHandle: C, autoPanSpeed: v, dragThreshold: E = 1, handleDomNode: N }) {
|
|
3306
3306
|
const k = Nc(e.target);
|
|
3307
3307
|
let P = 0, I;
|
|
3308
3308
|
const { x: L, y: R } = Je(e), _ = Hc(i, N), M = s?.getBoundingClientRect();
|
|
@@ -3312,7 +3312,7 @@ function km(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
|
|
|
3312
3312
|
const T = Lc(o, _, r, c, t);
|
|
3313
3313
|
if (!T)
|
|
3314
3314
|
return;
|
|
3315
|
-
let $ = Je(e, M), O = !1, j = null, B = !1,
|
|
3315
|
+
let $ = Je(e, M), O = !1, j = null, B = !1, V = null;
|
|
3316
3316
|
function X() {
|
|
3317
3317
|
if (!u || !M)
|
|
3318
3318
|
return;
|
|
@@ -3361,13 +3361,13 @@ function km(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
|
|
|
3361
3361
|
fromNodeId: o,
|
|
3362
3362
|
fromHandleId: r,
|
|
3363
3363
|
fromType: a ? "target" : "source",
|
|
3364
|
-
isValidConnection:
|
|
3364
|
+
isValidConnection: y,
|
|
3365
3365
|
doc: k,
|
|
3366
3366
|
lib: l,
|
|
3367
3367
|
flowId: h,
|
|
3368
3368
|
nodeLookup: c
|
|
3369
3369
|
});
|
|
3370
|
-
|
|
3370
|
+
V = Q.handleDomNode, j = Q.connection, B = Cm(!!I, Q.isValid);
|
|
3371
3371
|
const ee = c.get(o), le = ee ? Xt(ee, U, Y.Left, !0) : z.from, he = {
|
|
3372
3372
|
...z,
|
|
3373
3373
|
from: le,
|
|
@@ -3383,40 +3383,40 @@ function km(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
|
|
|
3383
3383
|
function q(J) {
|
|
3384
3384
|
if (!("touches" in J && J.touches.length > 0)) {
|
|
3385
3385
|
if (A) {
|
|
3386
|
-
(I ||
|
|
3386
|
+
(I || V) && j && B && w?.(j);
|
|
3387
3387
|
const { inProgress: K, ...Q } = z, ee = {
|
|
3388
3388
|
...Q,
|
|
3389
3389
|
toPosition: z.toHandle ? z.toPosition : null
|
|
3390
3390
|
};
|
|
3391
|
-
|
|
3391
|
+
m?.(J, ee), i && S?.(J, ee);
|
|
3392
3392
|
}
|
|
3393
|
-
d(), cancelAnimationFrame(P), O = !1, B = !1, j = null,
|
|
3393
|
+
d(), cancelAnimationFrame(P), O = !1, B = !1, j = null, V = null, k.removeEventListener("mousemove", F), k.removeEventListener("mouseup", q), k.removeEventListener("touchmove", F), k.removeEventListener("touchend", q);
|
|
3394
3394
|
}
|
|
3395
3395
|
}
|
|
3396
3396
|
k.addEventListener("mousemove", F), k.addEventListener("mouseup", q), k.addEventListener("touchmove", F), k.addEventListener("touchend", q);
|
|
3397
3397
|
}
|
|
3398
3398
|
function jc(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, fromType: i, doc: a, lib: s, flowId: c, isValidConnection: l = Vc, nodeLookup: u }) {
|
|
3399
|
-
const h = i === "target", f = t ? a.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: d, y: p } = Je(e), w = a.elementFromPoint(d, p),
|
|
3400
|
-
handleDomNode:
|
|
3399
|
+
const h = i === "target", f = t ? a.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`) : null, { x: d, y: p } = Je(e), w = a.elementFromPoint(d, p), m = w?.classList.contains(`${s}-flow__handle`) ? w : f, y = {
|
|
3400
|
+
handleDomNode: m,
|
|
3401
3401
|
isValid: !1,
|
|
3402
3402
|
connection: null,
|
|
3403
3403
|
toHandle: null
|
|
3404
3404
|
};
|
|
3405
|
-
if (
|
|
3406
|
-
const S = Hc(void 0,
|
|
3405
|
+
if (m) {
|
|
3406
|
+
const S = Hc(void 0, m), g = m.getAttribute("data-nodeid"), b = m.getAttribute("data-handleid"), C = m.classList.contains("connectable"), v = m.classList.contains("connectableend");
|
|
3407
3407
|
if (!g || !S)
|
|
3408
|
-
return
|
|
3408
|
+
return y;
|
|
3409
3409
|
const E = {
|
|
3410
3410
|
source: h ? g : r,
|
|
3411
3411
|
sourceHandle: h ? b : o,
|
|
3412
3412
|
target: h ? r : g,
|
|
3413
3413
|
targetHandle: h ? o : b
|
|
3414
3414
|
};
|
|
3415
|
-
|
|
3415
|
+
y.connection = E;
|
|
3416
3416
|
const k = C && v && (n === un.Strict ? h && S === "source" || !h && S === "target" : g !== r || b !== o);
|
|
3417
|
-
|
|
3417
|
+
y.isValid = k && l(E), y.toHandle = Lc(g, S, b, u, n, !0);
|
|
3418
3418
|
}
|
|
3419
|
-
return
|
|
3419
|
+
return y;
|
|
3420
3420
|
}
|
|
3421
3421
|
const li = {
|
|
3422
3422
|
onPointerDown: km,
|
|
@@ -3432,12 +3432,12 @@ function Nm({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
|
3432
3432
|
t.scaleTo(E);
|
|
3433
3433
|
};
|
|
3434
3434
|
let w = [0, 0];
|
|
3435
|
-
const
|
|
3435
|
+
const m = (g) => {
|
|
3436
3436
|
(g.sourceEvent.type === "mousedown" || g.sourceEvent.type === "touchstart") && (w = [
|
|
3437
3437
|
g.sourceEvent.clientX ?? g.sourceEvent.touches[0].clientX,
|
|
3438
3438
|
g.sourceEvent.clientY ?? g.sourceEvent.touches[0].clientY
|
|
3439
3439
|
]);
|
|
3440
|
-
},
|
|
3440
|
+
}, y = (g) => {
|
|
3441
3441
|
const b = n();
|
|
3442
3442
|
if (g.sourceEvent.type !== "mousemove" && g.sourceEvent.type !== "touchmove" || !t)
|
|
3443
3443
|
return;
|
|
@@ -3458,7 +3458,7 @@ function Nm({ domNode: e, panZoom: t, getTransform: n, getViewScale: r }) {
|
|
|
3458
3458
|
y: N.y,
|
|
3459
3459
|
zoom: b[2]
|
|
3460
3460
|
}, k, s);
|
|
3461
|
-
}, S = hc().on("start",
|
|
3461
|
+
}, S = hc().on("start", m).on("zoom", h ? y : null).on("zoom.wheel", f ? p : null);
|
|
3462
3462
|
o.call(S, {});
|
|
3463
3463
|
}
|
|
3464
3464
|
function a() {
|
|
@@ -3489,8 +3489,8 @@ function Mm({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
|
|
|
3489
3489
|
u.preventDefault(), u.stopImmediatePropagation();
|
|
3490
3490
|
const h = n.property("__zoom").k || 1;
|
|
3491
3491
|
if (u.ctrlKey && a) {
|
|
3492
|
-
const
|
|
3493
|
-
r.scaleTo(n, S,
|
|
3492
|
+
const m = Ye(u), y = Fc(u), S = h * Math.pow(2, y);
|
|
3493
|
+
r.scaleTo(n, S, m, u);
|
|
3494
3494
|
return;
|
|
3495
3495
|
}
|
|
3496
3496
|
const f = u.deltaMode === 1 ? 20 : 1;
|
|
@@ -3588,14 +3588,14 @@ function Om({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3588
3588
|
[0, 0],
|
|
3589
3589
|
[u.width, u.height]
|
|
3590
3590
|
], r);
|
|
3591
|
-
const w = p.on("wheel.zoom"),
|
|
3591
|
+
const w = p.on("wheel.zoom"), m = p.on("dblclick.zoom");
|
|
3592
3592
|
d.wheelDelta(Fc);
|
|
3593
|
-
async function
|
|
3593
|
+
async function y(R, _) {
|
|
3594
3594
|
return p ? new Promise((M) => {
|
|
3595
3595
|
d?.interpolate(_?.interpolate === "linear" ? In : Dr).transform(Mo(p, _?.duration, _?.ease, () => M(!0)), R);
|
|
3596
3596
|
}) : !1;
|
|
3597
3597
|
}
|
|
3598
|
-
function S({ noWheelClassName: R, noPanClassName: _, onPaneContextMenu: M, userSelectionActive: A, panOnScroll: T, panOnDrag: $, panOnScrollMode: O, panOnScrollSpeed: j, preventScrolling: B, zoomOnPinch:
|
|
3598
|
+
function S({ noWheelClassName: R, noPanClassName: _, onPaneContextMenu: M, userSelectionActive: A, panOnScroll: T, panOnDrag: $, panOnScrollMode: O, panOnScrollSpeed: j, preventScrolling: B, zoomOnPinch: V, zoomOnScroll: X, zoomOnDoubleClick: U, zoomActivationKeyPressed: Z, lib: te, onTransformChange: z, connectionInProgress: D, paneClickDistance: F, selectionOnDrag: q }) {
|
|
3599
3599
|
A && !l.isZoomingOrPanning && g();
|
|
3600
3600
|
const J = T && !Z && !A;
|
|
3601
3601
|
d.clickDistance(q ? 1 / 0 : !Qe(F) || F < 0 ? 0 : F);
|
|
@@ -3606,7 +3606,7 @@ function Om({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3606
3606
|
d3Zoom: d,
|
|
3607
3607
|
panOnScrollMode: O,
|
|
3608
3608
|
panOnScrollSpeed: j,
|
|
3609
|
-
zoomOnPinch:
|
|
3609
|
+
zoomOnPinch: V,
|
|
3610
3610
|
onPanZoomStart: a,
|
|
3611
3611
|
onPanZoom: i,
|
|
3612
3612
|
onPanZoomEnd: s
|
|
@@ -3645,25 +3645,25 @@ function Om({ domNode: e, minZoom: t, maxZoom: n, translateExtent: r, viewport:
|
|
|
3645
3645
|
zoomOnScroll: X,
|
|
3646
3646
|
panOnScroll: T,
|
|
3647
3647
|
zoomOnDoubleClick: U,
|
|
3648
|
-
zoomOnPinch:
|
|
3648
|
+
zoomOnPinch: V,
|
|
3649
3649
|
userSelectionActive: A,
|
|
3650
3650
|
noPanClassName: _,
|
|
3651
3651
|
noWheelClassName: R,
|
|
3652
3652
|
lib: te,
|
|
3653
3653
|
connectionInProgress: D
|
|
3654
3654
|
});
|
|
3655
|
-
d.filter(he), U ? p.on("dblclick.zoom",
|
|
3655
|
+
d.filter(he), U ? p.on("dblclick.zoom", m) : p.on("dblclick.zoom", null);
|
|
3656
3656
|
}
|
|
3657
3657
|
function g() {
|
|
3658
3658
|
d.on("zoom", null);
|
|
3659
3659
|
}
|
|
3660
3660
|
async function b(R, _, M) {
|
|
3661
3661
|
const A = Ao(R), T = d?.constrain()(A, _, M);
|
|
3662
|
-
return T && await
|
|
3662
|
+
return T && await y(T), T;
|
|
3663
3663
|
}
|
|
3664
3664
|
async function C(R, _) {
|
|
3665
3665
|
const M = Ao(R);
|
|
3666
|
-
return await
|
|
3666
|
+
return await y(M, _), M;
|
|
3667
3667
|
}
|
|
3668
3668
|
function v(R) {
|
|
3669
3669
|
if (p) {
|
|
@@ -3740,10 +3740,10 @@ function Ga(e, t) {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
function Rm(e, t, n, r, o, i, a, s) {
|
|
3742
3742
|
let { affectsX: c, affectsY: l } = t;
|
|
3743
|
-
const { isHorizontal: u, isVertical: h } = t, f = u && h, { xSnapped: d, ySnapped: p } = n, { minWidth: w, maxWidth:
|
|
3743
|
+
const { isHorizontal: u, isVertical: h } = t, f = u && h, { xSnapped: d, ySnapped: p } = n, { minWidth: w, maxWidth: m, minHeight: y, maxHeight: S } = r, { x: g, y: b, width: C, height: v, aspectRatio: E } = e;
|
|
3744
3744
|
let N = Math.floor(u ? d - e.pointerX : 0), k = Math.floor(h ? p - e.pointerY : 0);
|
|
3745
3745
|
const P = C + (c ? -N : N), I = v + (l ? -k : k), L = -i[0] * C, R = -i[1] * v;
|
|
3746
|
-
let _ = yr(P, w,
|
|
3746
|
+
let _ = yr(P, w, m), M = yr(I, y, S);
|
|
3747
3747
|
if (a) {
|
|
3748
3748
|
let $ = 0, O = 0;
|
|
3749
3749
|
c && N < 0 ? $ = Et(g + N + L, a[0][0]) : !c && N > 0 && ($ = Ct(g + P + L, a[1][0])), l && k < 0 ? O = Et(b + k + R, a[0][1]) : !l && k > 0 && (O = Ct(b + I + R, a[1][1])), _ = Math.max(_, $), M = Math.max(M, O);
|
|
@@ -3754,7 +3754,7 @@ function Rm(e, t, n, r, o, i, a, s) {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
if (o) {
|
|
3756
3756
|
if (u) {
|
|
3757
|
-
const $ = yr(P / E,
|
|
3757
|
+
const $ = yr(P / E, y, S) * E;
|
|
3758
3758
|
if (_ = Math.max(_, $), a) {
|
|
3759
3759
|
let O = 0;
|
|
3760
3760
|
!c && !l || c && !l && f ? O = Ct(b + R + P / E, a[1][1]) * E : O = Et(b + R + (c ? N : -N) / E, a[0][1]) * E, _ = Math.max(_, O);
|
|
@@ -3765,7 +3765,7 @@ function Rm(e, t, n, r, o, i, a, s) {
|
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
3767
3767
|
if (h) {
|
|
3768
|
-
const $ = yr(I * E, w,
|
|
3768
|
+
const $ = yr(I * E, w, m) / E;
|
|
3769
3769
|
if (M = Math.max(M, $), a) {
|
|
3770
3770
|
let O = 0;
|
|
3771
3771
|
!c && !l || l && !c && f ? O = Ct(g + I * E + L, a[1][0]) / E : O = Et(g + (l ? k : -k) * E + L, a[0][0]) / E, M = Math.max(M, O);
|
|
@@ -3811,8 +3811,8 @@ function Vm({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
3811
3811
|
resizeDirection: void 0,
|
|
3812
3812
|
keepAspectRatio: !1
|
|
3813
3813
|
};
|
|
3814
|
-
function s({ controlPosition: l, boundaries: u, keepAspectRatio: h, resizeDirection: f, onResizeStart: d, onResize: p, onResizeEnd: w, shouldResize:
|
|
3815
|
-
let
|
|
3814
|
+
function s({ controlPosition: l, boundaries: u, keepAspectRatio: h, resizeDirection: f, onResizeStart: d, onResize: p, onResizeEnd: w, shouldResize: m }) {
|
|
3815
|
+
let y = { ...Wc }, S = { ...Lm };
|
|
3816
3816
|
a = {
|
|
3817
3817
|
boundaries: u,
|
|
3818
3818
|
resizeDirection: f,
|
|
@@ -3831,16 +3831,16 @@ function Vm({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
3831
3831
|
snapToGrid: M,
|
|
3832
3832
|
containerBounds: b
|
|
3833
3833
|
});
|
|
3834
|
-
|
|
3834
|
+
y = {
|
|
3835
3835
|
width: g.measured.width ?? 0,
|
|
3836
3836
|
height: g.measured.height ?? 0,
|
|
3837
3837
|
x: g.position.x ?? 0,
|
|
3838
3838
|
y: g.position.y ?? 0
|
|
3839
3839
|
}, S = {
|
|
3840
|
-
...
|
|
3840
|
+
...y,
|
|
3841
3841
|
pointerX: $,
|
|
3842
3842
|
pointerY: O,
|
|
3843
|
-
aspectRatio:
|
|
3843
|
+
aspectRatio: y.width / y.height
|
|
3844
3844
|
}, v = void 0, E = Ut(g.extent) ? g.extent : void 0, g.parentId && (g.extent === "parent" || g.expandParent) && (v = L.get(g.parentId)), v && g.extent === "parent" && (E = [
|
|
3845
3845
|
[0, 0],
|
|
3846
3846
|
[v.measured.width, v.measured.height]
|
|
@@ -3851,13 +3851,13 @@ function Vm({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
3851
3851
|
position: { ...B.position },
|
|
3852
3852
|
extent: B.extent
|
|
3853
3853
|
}), B.extent === "parent" || B.expandParent)) {
|
|
3854
|
-
const
|
|
3854
|
+
const V = Hm(B, g, B.origin ?? A);
|
|
3855
3855
|
N ? N = [
|
|
3856
|
-
[Math.min(
|
|
3857
|
-
[Math.max(
|
|
3858
|
-
] : N =
|
|
3856
|
+
[Math.min(V[0][0], N[0][0]), Math.min(V[0][1], N[0][1])],
|
|
3857
|
+
[Math.max(V[1][0], N[1][0]), Math.max(V[1][1], N[1][1])]
|
|
3858
|
+
] : N = V;
|
|
3859
3859
|
}
|
|
3860
|
-
d?.(I, { ...
|
|
3860
|
+
d?.(I, { ...y });
|
|
3861
3861
|
}).on("drag", (I) => {
|
|
3862
3862
|
const { transform: L, snapGrid: R, snapToGrid: _, nodeOrigin: M } = n(), A = Pn(I.sourceEvent, {
|
|
3863
3863
|
transform: L,
|
|
@@ -3867,10 +3867,10 @@ function Vm({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
3867
3867
|
}), T = [];
|
|
3868
3868
|
if (!g)
|
|
3869
3869
|
return;
|
|
3870
|
-
const { x: $, y: O, width: j, height: B } =
|
|
3870
|
+
const { x: $, y: O, width: j, height: B } = y, V = {}, X = g.origin ?? M, { width: U, height: Z, x: te, y: z } = Rm(S, a.controlDirection, A, a.boundaries, a.keepAspectRatio, X, E, N), D = U !== j, F = Z !== B, q = te !== $ && D, J = z !== O && F;
|
|
3871
3871
|
if (!q && !J && !D && !F)
|
|
3872
3872
|
return;
|
|
3873
|
-
if ((q || J || X[0] === 1 || X[1] === 1) && (
|
|
3873
|
+
if ((q || J || X[0] === 1 || X[1] === 1) && (V.x = q ? te : y.x, V.y = J ? z : y.y, y.x = V.x, y.y = V.y, C.length > 0)) {
|
|
3874
3874
|
const le = te - $, he = z - O;
|
|
3875
3875
|
for (const de of C)
|
|
3876
3876
|
de.position = {
|
|
@@ -3878,23 +3878,23 @@ function Vm({ domNode: e, nodeId: t, getStoreItems: n, onChange: r, onEnd: o })
|
|
|
3878
3878
|
y: de.position.y - he + X[1] * (Z - B)
|
|
3879
3879
|
}, T.push(de);
|
|
3880
3880
|
}
|
|
3881
|
-
if ((D || F) && (
|
|
3882
|
-
const le = X[0] * (
|
|
3883
|
-
|
|
3884
|
-
const he = X[1] * (
|
|
3885
|
-
|
|
3881
|
+
if ((D || F) && (V.width = D && (!a.resizeDirection || a.resizeDirection === "horizontal") ? U : y.width, V.height = F && (!a.resizeDirection || a.resizeDirection === "vertical") ? Z : y.height, y.width = V.width, y.height = V.height), v && g.expandParent) {
|
|
3882
|
+
const le = X[0] * (V.width ?? 0);
|
|
3883
|
+
V.x && V.x < le && (y.x = le, S.x = S.x - (V.x - le));
|
|
3884
|
+
const he = X[1] * (V.height ?? 0);
|
|
3885
|
+
V.y && V.y < he && (y.y = he, S.y = S.y - (V.y - he));
|
|
3886
3886
|
}
|
|
3887
3887
|
const K = $m({
|
|
3888
|
-
width:
|
|
3888
|
+
width: y.width,
|
|
3889
3889
|
prevWidth: j,
|
|
3890
|
-
height:
|
|
3890
|
+
height: y.height,
|
|
3891
3891
|
prevHeight: B,
|
|
3892
3892
|
affectsX: a.controlDirection.affectsX,
|
|
3893
3893
|
affectsY: a.controlDirection.affectsY
|
|
3894
|
-
}), Q = { ...
|
|
3895
|
-
|
|
3894
|
+
}), Q = { ...y, direction: K };
|
|
3895
|
+
m?.(I, Q) !== !1 && (k = !0, p?.(I, Q), r(V, T));
|
|
3896
3896
|
}).on("end", (I) => {
|
|
3897
|
-
k && (w?.(I, { ...
|
|
3897
|
+
k && (w?.(I, { ...y }), o?.({ ...y }), k = !1);
|
|
3898
3898
|
});
|
|
3899
3899
|
i.call(P);
|
|
3900
3900
|
}
|
|
@@ -3920,16 +3920,16 @@ function jm() {
|
|
|
3920
3920
|
}
|
|
3921
3921
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
|
|
3922
3922
|
function s(h, f) {
|
|
3923
|
-
var d = f(), p = r({ inst: { value: d, getSnapshot: f } }), w = p[0].inst,
|
|
3923
|
+
var d = f(), p = r({ inst: { value: d, getSnapshot: f } }), w = p[0].inst, m = p[1];
|
|
3924
3924
|
return i(
|
|
3925
3925
|
function() {
|
|
3926
|
-
w.value = d, w.getSnapshot = f, c(w) &&
|
|
3926
|
+
w.value = d, w.getSnapshot = f, c(w) && m({ inst: w });
|
|
3927
3927
|
},
|
|
3928
3928
|
[h, d, f]
|
|
3929
3929
|
), o(
|
|
3930
3930
|
function() {
|
|
3931
|
-
return c(w) &&
|
|
3932
|
-
c(w) &&
|
|
3931
|
+
return c(w) && m({ inst: w }), h(function() {
|
|
3932
|
+
c(w) && m({ inst: w });
|
|
3933
3933
|
});
|
|
3934
3934
|
},
|
|
3935
3935
|
[h]
|
|
@@ -3964,24 +3964,24 @@ function Bm() {
|
|
|
3964
3964
|
));
|
|
3965
3965
|
var w = p();
|
|
3966
3966
|
if (!h) {
|
|
3967
|
-
var
|
|
3968
|
-
i(w,
|
|
3967
|
+
var m = p();
|
|
3968
|
+
i(w, m) || (console.error(
|
|
3969
3969
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3970
3970
|
), h = !0);
|
|
3971
3971
|
}
|
|
3972
|
-
|
|
3972
|
+
m = a({
|
|
3973
3973
|
inst: { value: w, getSnapshot: p }
|
|
3974
3974
|
});
|
|
3975
|
-
var
|
|
3975
|
+
var y = m[0].inst, S = m[1];
|
|
3976
3976
|
return c(
|
|
3977
3977
|
function() {
|
|
3978
|
-
|
|
3978
|
+
y.value = w, y.getSnapshot = p, n(y) && S({ inst: y });
|
|
3979
3979
|
},
|
|
3980
3980
|
[d, w, p]
|
|
3981
3981
|
), s(
|
|
3982
3982
|
function() {
|
|
3983
|
-
return n(
|
|
3984
|
-
n(
|
|
3983
|
+
return n(y) && S({ inst: y }), d(function() {
|
|
3984
|
+
n(y) && S({ inst: y });
|
|
3985
3985
|
});
|
|
3986
3986
|
},
|
|
3987
3987
|
[d]
|
|
@@ -4026,7 +4026,7 @@ function Fm() {
|
|
|
4026
4026
|
} else w = p.current;
|
|
4027
4027
|
p = s(
|
|
4028
4028
|
function() {
|
|
4029
|
-
function
|
|
4029
|
+
function y(v) {
|
|
4030
4030
|
if (!S) {
|
|
4031
4031
|
if (S = !0, g = v, v = f(v), d !== void 0 && w.hasValue) {
|
|
4032
4032
|
var E = w.value;
|
|
@@ -4042,22 +4042,22 @@ function Fm() {
|
|
|
4042
4042
|
var S = !1, g, b, C = h === void 0 ? null : h;
|
|
4043
4043
|
return [
|
|
4044
4044
|
function() {
|
|
4045
|
-
return
|
|
4045
|
+
return y(u());
|
|
4046
4046
|
},
|
|
4047
4047
|
C === null ? void 0 : function() {
|
|
4048
|
-
return
|
|
4048
|
+
return y(C());
|
|
4049
4049
|
}
|
|
4050
4050
|
];
|
|
4051
4051
|
},
|
|
4052
4052
|
[u, h, f, d]
|
|
4053
4053
|
);
|
|
4054
|
-
var
|
|
4054
|
+
var m = o(l, p[0], p[1]);
|
|
4055
4055
|
return a(
|
|
4056
4056
|
function() {
|
|
4057
|
-
w.hasValue = !0, w.value =
|
|
4057
|
+
w.hasValue = !0, w.value = m;
|
|
4058
4058
|
},
|
|
4059
|
-
[
|
|
4060
|
-
), c(
|
|
4059
|
+
[m]
|
|
4060
|
+
), c(m), m;
|
|
4061
4061
|
}, To;
|
|
4062
4062
|
}
|
|
4063
4063
|
var Io = {};
|
|
@@ -4077,7 +4077,7 @@ function Wm() {
|
|
|
4077
4077
|
} else w = p.current;
|
|
4078
4078
|
p = s(
|
|
4079
4079
|
function() {
|
|
4080
|
-
function
|
|
4080
|
+
function y(v) {
|
|
4081
4081
|
if (!S) {
|
|
4082
4082
|
if (S = !0, g = v, v = f(v), d !== void 0 && w.hasValue) {
|
|
4083
4083
|
var E = w.value;
|
|
@@ -4094,22 +4094,22 @@ function Wm() {
|
|
|
4094
4094
|
var S = !1, g, b, C = h === void 0 ? null : h;
|
|
4095
4095
|
return [
|
|
4096
4096
|
function() {
|
|
4097
|
-
return
|
|
4097
|
+
return y(u());
|
|
4098
4098
|
},
|
|
4099
4099
|
C === null ? void 0 : function() {
|
|
4100
|
-
return
|
|
4100
|
+
return y(C());
|
|
4101
4101
|
}
|
|
4102
4102
|
];
|
|
4103
4103
|
},
|
|
4104
4104
|
[u, h, f, d]
|
|
4105
4105
|
);
|
|
4106
|
-
var
|
|
4106
|
+
var m = o(l, p[0], p[1]);
|
|
4107
4107
|
return a(
|
|
4108
4108
|
function() {
|
|
4109
|
-
w.hasValue = !0, w.value =
|
|
4109
|
+
w.hasValue = !0, w.value = m;
|
|
4110
4110
|
},
|
|
4111
|
-
[
|
|
4112
|
-
), c(
|
|
4111
|
+
[m]
|
|
4112
|
+
), c(m), m;
|
|
4113
4113
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
4114
4114
|
})()), Io;
|
|
4115
4115
|
}
|
|
@@ -4208,7 +4208,7 @@ function i0({ rfId: e }) {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
function a0({ rfId: e, disableKeyboardA11y: t }) {
|
|
4210
4210
|
const n = se(o0);
|
|
4211
|
-
return
|
|
4211
|
+
return H(Se, { children: [x("div", { id: `${Yc}-${e}`, style: es, children: t ? n["node.a11yDescription.default"] : n["node.a11yDescription.keyboardDisabled"] }), x("div", { id: `${Zc}-${e}`, style: es, children: n["edge.a11yDescription.default"] }), !t && x(i0, { rfId: e })] });
|
|
4212
4212
|
}
|
|
4213
4213
|
const jt = Rl(({ position: e = "top-left", children: t, className: n, style: r, ...o }, i) => {
|
|
4214
4214
|
const a = `${e}`.split("-");
|
|
@@ -4380,8 +4380,8 @@ function Kn(e = null, t = { target: is, actInsideInputWithModifier: !0 }) {
|
|
|
4380
4380
|
return !1;
|
|
4381
4381
|
const w = ss(d.code, s);
|
|
4382
4382
|
if (i.current.add(d[w]), as(a, i.current, !1)) {
|
|
4383
|
-
const
|
|
4384
|
-
t.preventDefault !== !1 && (o.current || !
|
|
4383
|
+
const m = d.composedPath?.()?.[0] || d.target, y = m?.nodeName === "BUTTON" || m?.nodeName === "A";
|
|
4384
|
+
t.preventDefault !== !1 && (o.current || !y) && d.preventDefault(), r(!0);
|
|
4385
4385
|
}
|
|
4386
4386
|
}, h = (d) => {
|
|
4387
4387
|
const p = ss(d.code, s);
|
|
@@ -4584,17 +4584,17 @@ function S0({ children: e }) {
|
|
|
4584
4584
|
const t = ge(), n = ae((s) => {
|
|
4585
4585
|
const { nodes: c = [], setNodes: l, hasDefaultNodes: u, onNodesChange: h, nodeLookup: f, fitViewQueued: d, onNodesChangeMiddlewareMap: p } = t.getState();
|
|
4586
4586
|
let w = c;
|
|
4587
|
-
for (const
|
|
4588
|
-
w = typeof
|
|
4589
|
-
let
|
|
4587
|
+
for (const y of s)
|
|
4588
|
+
w = typeof y == "function" ? y(w) : y;
|
|
4589
|
+
let m = ls({
|
|
4590
4590
|
items: w,
|
|
4591
4591
|
lookup: f
|
|
4592
4592
|
});
|
|
4593
|
-
for (const
|
|
4594
|
-
|
|
4595
|
-
u && l(w),
|
|
4596
|
-
const { fitViewQueued:
|
|
4597
|
-
|
|
4593
|
+
for (const y of p.values())
|
|
4594
|
+
m = y(m);
|
|
4595
|
+
u && l(w), m.length > 0 ? h?.(m) : d && window.requestAnimationFrame(() => {
|
|
4596
|
+
const { fitViewQueued: y, nodes: S, setNodes: g } = t.getState();
|
|
4597
|
+
y && g(S);
|
|
4598
4598
|
});
|
|
4599
4599
|
}, []), r = ds(n), o = ae((s) => {
|
|
4600
4600
|
const { edges: c = [], setEdges: l, hasDefaultEdges: u, onEdgesChange: h, edgeLookup: f } = t.getState();
|
|
@@ -4622,26 +4622,26 @@ function _t() {
|
|
|
4622
4622
|
}, s = (h) => {
|
|
4623
4623
|
n.edgeQueue.push(h);
|
|
4624
4624
|
}, c = (h) => {
|
|
4625
|
-
const { nodeLookup: f, nodeOrigin: d } = t.getState(), p = us(h) ? h : f.get(h.id), w = p.parentId ? kc(p.position, p.measured, p.parentId, f, d) : p.position,
|
|
4625
|
+
const { nodeLookup: f, nodeOrigin: d } = t.getState(), p = us(h) ? h : f.get(h.id), w = p.parentId ? kc(p.position, p.measured, p.parentId, f, d) : p.position, m = {
|
|
4626
4626
|
...p,
|
|
4627
4627
|
position: w,
|
|
4628
4628
|
width: p.measured?.width ?? p.width,
|
|
4629
4629
|
height: p.measured?.height ?? p.height
|
|
4630
4630
|
};
|
|
4631
|
-
return Un(
|
|
4631
|
+
return Un(m);
|
|
4632
4632
|
}, l = (h, f, d = { replace: !1 }) => {
|
|
4633
4633
|
a((p) => p.map((w) => {
|
|
4634
4634
|
if (w.id === h) {
|
|
4635
|
-
const
|
|
4636
|
-
return d.replace && us(
|
|
4635
|
+
const m = typeof f == "function" ? f(w) : f;
|
|
4636
|
+
return d.replace && us(m) ? m : { ...w, ...m };
|
|
4637
4637
|
}
|
|
4638
4638
|
return w;
|
|
4639
4639
|
}));
|
|
4640
4640
|
}, u = (h, f, d = { replace: !1 }) => {
|
|
4641
4641
|
s((p) => p.map((w) => {
|
|
4642
4642
|
if (w.id === h) {
|
|
4643
|
-
const
|
|
4644
|
-
return d.replace && v0(
|
|
4643
|
+
const m = typeof f == "function" ? f(w) : f;
|
|
4644
|
+
return d.replace && v0(m) ? m : { ...w, ...m };
|
|
4645
4645
|
}
|
|
4646
4646
|
return w;
|
|
4647
4647
|
}));
|
|
@@ -4666,19 +4666,19 @@ function _t() {
|
|
|
4666
4666
|
n.edgeQueue.push((d) => [...d, ...f]);
|
|
4667
4667
|
},
|
|
4668
4668
|
toObject: () => {
|
|
4669
|
-
const { nodes: h = [], edges: f = [], transform: d } = t.getState(), [p, w,
|
|
4669
|
+
const { nodes: h = [], edges: f = [], transform: d } = t.getState(), [p, w, m] = d;
|
|
4670
4670
|
return {
|
|
4671
|
-
nodes: h.map((
|
|
4672
|
-
edges: f.map((
|
|
4671
|
+
nodes: h.map((y) => ({ ...y })),
|
|
4672
|
+
edges: f.map((y) => ({ ...y })),
|
|
4673
4673
|
viewport: {
|
|
4674
4674
|
x: p,
|
|
4675
4675
|
y: w,
|
|
4676
|
-
zoom:
|
|
4676
|
+
zoom: m
|
|
4677
4677
|
}
|
|
4678
4678
|
};
|
|
4679
4679
|
},
|
|
4680
4680
|
deleteElements: async ({ nodes: h = [], edges: f = [] }) => {
|
|
4681
|
-
const { nodes: d, edges: p, onNodesDelete: w, onEdgesDelete:
|
|
4681
|
+
const { nodes: d, edges: p, onNodesDelete: w, onEdgesDelete: m, triggerNodeChanges: y, triggerEdgeChanges: S, onDelete: g, onBeforeDelete: b } = t.getState(), { nodes: C, edges: v } = await Yg({
|
|
4682
4682
|
nodesToRemove: h,
|
|
4683
4683
|
edgesToRemove: f,
|
|
4684
4684
|
nodes: d,
|
|
@@ -4687,11 +4687,11 @@ function _t() {
|
|
|
4687
4687
|
}), E = v.length > 0, N = C.length > 0;
|
|
4688
4688
|
if (E) {
|
|
4689
4689
|
const k = v.map(cs);
|
|
4690
|
-
|
|
4690
|
+
m?.(v), S(k);
|
|
4691
4691
|
}
|
|
4692
4692
|
if (N) {
|
|
4693
4693
|
const k = C.map(cs);
|
|
4694
|
-
w?.(C),
|
|
4694
|
+
w?.(C), y(k);
|
|
4695
4695
|
}
|
|
4696
4696
|
return (N || E) && g?.({ nodes: C, edges: v }), { deletedNodes: C, deletedEdges: v };
|
|
4697
4697
|
},
|
|
@@ -4701,12 +4701,12 @@ function _t() {
|
|
|
4701
4701
|
* considered fully intersecting.
|
|
4702
4702
|
*/
|
|
4703
4703
|
getIntersectingNodes: (h, f = !0, d) => {
|
|
4704
|
-
const p = Ia(h), w = p ? h : c(h),
|
|
4705
|
-
return w ? (d || t.getState().nodes).filter((
|
|
4706
|
-
const S = t.getState().nodeLookup.get(
|
|
4707
|
-
if (S && !p && (
|
|
4704
|
+
const p = Ia(h), w = p ? h : c(h), m = d !== void 0;
|
|
4705
|
+
return w ? (d || t.getState().nodes).filter((y) => {
|
|
4706
|
+
const S = t.getState().nodeLookup.get(y.id);
|
|
4707
|
+
if (S && !p && (y.id === h.id || !S.internals.positionAbsolute))
|
|
4708
4708
|
return !1;
|
|
4709
|
-
const g = Un(
|
|
4709
|
+
const g = Un(m ? y : S), b = Ur(g, w);
|
|
4710
4710
|
return f && b > 0 || b >= g.width * g.height || b >= w.width * w.height;
|
|
4711
4711
|
}) : [];
|
|
4712
4712
|
},
|
|
@@ -4714,8 +4714,8 @@ function _t() {
|
|
|
4714
4714
|
const w = Ia(h) ? h : c(h);
|
|
4715
4715
|
if (!w)
|
|
4716
4716
|
return !1;
|
|
4717
|
-
const
|
|
4718
|
-
return d &&
|
|
4717
|
+
const m = Ur(w, f);
|
|
4718
|
+
return d && m > 0 || m >= f.width * f.height || m >= w.width * w.height;
|
|
4719
4719
|
},
|
|
4720
4720
|
updateNode: l,
|
|
4721
4721
|
updateNodeData: (h, f, d = { replace: !1 }) => {
|
|
@@ -4790,12 +4790,12 @@ const co = {
|
|
|
4790
4790
|
lib: e.lib,
|
|
4791
4791
|
connectionInProgress: e.connection.inProgress
|
|
4792
4792
|
});
|
|
4793
|
-
function T0({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = Vt.Free, zoomOnDoubleClick: a = !0, panOnDrag: s = !0, defaultViewport: c, translateExtent: l, minZoom: u, maxZoom: h, zoomActivationKeyCode: f, preventScrolling: d = !0, children: p, noWheelClassName: w, noPanClassName:
|
|
4793
|
+
function T0({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = Vt.Free, zoomOnDoubleClick: a = !0, panOnDrag: s = !0, defaultViewport: c, translateExtent: l, minZoom: u, maxZoom: h, zoomActivationKeyCode: f, preventScrolling: d = !0, children: p, noWheelClassName: w, noPanClassName: m, onViewportChange: y, isControlledViewport: S, paneClickDistance: g, selectionOnDrag: b }) {
|
|
4794
4794
|
const C = ge(), v = ne(null), { userSelectionActive: E, lib: N, connectionInProgress: k } = se(M0, pe), P = Kn(f), I = ne();
|
|
4795
4795
|
A0(v);
|
|
4796
4796
|
const L = ae((R) => {
|
|
4797
|
-
|
|
4798
|
-
}, [
|
|
4797
|
+
y?.({ x: R[0], y: R[1], zoom: R[2] }), S || C.setState({ transform: R });
|
|
4798
|
+
}, [y, S]);
|
|
4799
4799
|
return re(() => {
|
|
4800
4800
|
if (v.current) {
|
|
4801
4801
|
I.current = Om({
|
|
@@ -4839,7 +4839,7 @@ function T0({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
4839
4839
|
panOnDrag: s,
|
|
4840
4840
|
zoomActivationKeyPressed: P,
|
|
4841
4841
|
preventScrolling: d,
|
|
4842
|
-
noPanClassName:
|
|
4842
|
+
noPanClassName: m,
|
|
4843
4843
|
userSelectionActive: E,
|
|
4844
4844
|
noWheelClassName: w,
|
|
4845
4845
|
lib: N,
|
|
@@ -4859,7 +4859,7 @@ function T0({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
4859
4859
|
s,
|
|
4860
4860
|
P,
|
|
4861
4861
|
d,
|
|
4862
|
-
|
|
4862
|
+
m,
|
|
4863
4863
|
E,
|
|
4864
4864
|
w,
|
|
4865
4865
|
N,
|
|
@@ -4891,12 +4891,12 @@ const Po = (e, t) => (n) => {
|
|
|
4891
4891
|
autoPanSpeed: e.autoPanSpeed
|
|
4892
4892
|
});
|
|
4893
4893
|
function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full, panOnDrag: r, autoPanOnSelection: o, paneClickDistance: i, selectionOnDrag: a, onSelectionStart: s, onSelectionEnd: c, onPaneClick: l, onPaneContextMenu: u, onPaneScroll: h, onPaneMouseEnter: f, onPaneMouseMove: d, onPaneMouseLeave: p, children: w }) {
|
|
4894
|
-
const
|
|
4895
|
-
if (R.current || L.current ||
|
|
4894
|
+
const m = ne(0), y = ge(), { userSelectionActive: S, elementsSelectable: g, dragging: b, panBy: C, autoPanSpeed: v } = se(I0, pe), E = g && (e || S), N = ne(null), k = ne(), P = ne(/* @__PURE__ */ new Set()), I = ne(/* @__PURE__ */ new Set()), L = ne(!1), R = ne(!1), _ = ne({ x: 0, y: 0 }), M = ne(!1), A = (D) => {
|
|
4895
|
+
if (R.current || L.current || y.getState().connection.inProgress) {
|
|
4896
4896
|
R.current = !1, L.current = !1;
|
|
4897
4897
|
return;
|
|
4898
4898
|
}
|
|
4899
|
-
l?.(D),
|
|
4899
|
+
l?.(D), y.getState().resetSelectedElements(), y.setState({ nodesSelectionActive: !1 });
|
|
4900
4900
|
}, T = (D) => {
|
|
4901
4901
|
if (Array.isArray(r) && r?.includes(2)) {
|
|
4902
4902
|
D.preventDefault();
|
|
@@ -4906,7 +4906,7 @@ function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full
|
|
|
4906
4906
|
}, $ = h ? (D) => h(D) : void 0, O = (D) => {
|
|
4907
4907
|
R.current && (D.stopPropagation(), R.current = !1);
|
|
4908
4908
|
}, j = (D) => {
|
|
4909
|
-
const { domNode: F, transform: q } =
|
|
4909
|
+
const { domNode: F, transform: q } = y.getState();
|
|
4910
4910
|
if (k.current = F?.getBoundingClientRect(), !k.current)
|
|
4911
4911
|
return;
|
|
4912
4912
|
const J = D.target === N.current;
|
|
@@ -4914,7 +4914,7 @@ function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full
|
|
|
4914
4914
|
return;
|
|
4915
4915
|
D.target?.setPointerCapture?.(D.pointerId), R.current = !1;
|
|
4916
4916
|
const { x: ee, y: le } = Je(D.nativeEvent, k.current), he = ir({ x: ee, y: le }, q);
|
|
4917
|
-
|
|
4917
|
+
y.setState({
|
|
4918
4918
|
userSelectionRect: {
|
|
4919
4919
|
width: 0,
|
|
4920
4920
|
height: 0,
|
|
@@ -4926,10 +4926,10 @@ function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full
|
|
|
4926
4926
|
}), J || (D.stopPropagation(), D.preventDefault());
|
|
4927
4927
|
};
|
|
4928
4928
|
function B(D, F) {
|
|
4929
|
-
const { userSelectionRect: q } =
|
|
4929
|
+
const { userSelectionRect: q } = y.getState();
|
|
4930
4930
|
if (!q)
|
|
4931
4931
|
return;
|
|
4932
|
-
const { transform: J, nodeLookup: K, edgeLookup: Q, connectionLookup: ee, triggerNodeChanges: le, triggerEdgeChanges: he, defaultEdgeOptions: de } =
|
|
4932
|
+
const { transform: J, nodeLookup: K, edgeLookup: Q, connectionLookup: ee, triggerNodeChanges: le, triggerEdgeChanges: he, defaultEdgeOptions: de } = y.getState(), Be = { x: q.startX, y: q.startY }, { x: Me, y: Fe } = fn(Be, J), We = {
|
|
4933
4933
|
startX: Be.x,
|
|
4934
4934
|
startY: Be.y,
|
|
4935
4935
|
x: D < Me ? D : Me,
|
|
@@ -4955,31 +4955,31 @@ function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full
|
|
|
4955
4955
|
const Ie = rn(Q, I.current);
|
|
4956
4956
|
he(Ie);
|
|
4957
4957
|
}
|
|
4958
|
-
|
|
4958
|
+
y.setState({
|
|
4959
4959
|
userSelectionRect: We,
|
|
4960
4960
|
userSelectionActive: !0,
|
|
4961
4961
|
nodesSelectionActive: !1
|
|
4962
4962
|
});
|
|
4963
4963
|
}
|
|
4964
|
-
function
|
|
4964
|
+
function V() {
|
|
4965
4965
|
if (!o || !k.current)
|
|
4966
4966
|
return;
|
|
4967
4967
|
const [D, F] = Ri(_.current, k.current, v);
|
|
4968
4968
|
C({ x: D, y: F }).then((q) => {
|
|
4969
4969
|
if (!R.current || !q) {
|
|
4970
|
-
|
|
4970
|
+
m.current = requestAnimationFrame(V);
|
|
4971
4971
|
return;
|
|
4972
4972
|
}
|
|
4973
4973
|
const { x: J, y: K } = _.current;
|
|
4974
|
-
B(J, K),
|
|
4974
|
+
B(J, K), m.current = requestAnimationFrame(V);
|
|
4975
4975
|
});
|
|
4976
4976
|
}
|
|
4977
4977
|
const X = () => {
|
|
4978
|
-
cancelAnimationFrame(
|
|
4978
|
+
cancelAnimationFrame(m.current), m.current = 0, M.current = !1;
|
|
4979
4979
|
};
|
|
4980
4980
|
re(() => () => X(), []);
|
|
4981
4981
|
const U = (D) => {
|
|
4982
|
-
const { userSelectionRect: F, transform: q, resetSelectedElements: J } =
|
|
4982
|
+
const { userSelectionRect: F, transform: q, resetSelectedElements: J } = y.getState();
|
|
4983
4983
|
if (!k.current || !F)
|
|
4984
4984
|
return;
|
|
4985
4985
|
const { x: K, y: Q } = Je(D.nativeEvent, k.current);
|
|
@@ -4991,22 +4991,22 @@ function P0({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wn.Full
|
|
|
4991
4991
|
return;
|
|
4992
4992
|
J(), s?.(D);
|
|
4993
4993
|
}
|
|
4994
|
-
R.current = !0, M.current || (
|
|
4994
|
+
R.current = !0, M.current || (V(), M.current = !0), B(K, Q);
|
|
4995
4995
|
}, Z = (D) => {
|
|
4996
4996
|
if (!E) {
|
|
4997
|
-
D.target === N.current &&
|
|
4997
|
+
D.target === N.current && y.getState().connection.inProgress && (L.current = !0);
|
|
4998
4998
|
return;
|
|
4999
4999
|
}
|
|
5000
|
-
D.button === 0 && (D.target?.releasePointerCapture?.(D.pointerId), !S && D.target === N.current &&
|
|
5000
|
+
D.button === 0 && (D.target?.releasePointerCapture?.(D.pointerId), !S && D.target === N.current && y.getState().userSelectionRect && A?.(D), y.setState({
|
|
5001
5001
|
userSelectionActive: !1,
|
|
5002
5002
|
userSelectionRect: null
|
|
5003
|
-
}), R.current && (c?.(D),
|
|
5003
|
+
}), R.current && (c?.(D), y.setState({
|
|
5004
5004
|
nodesSelectionActive: P.current.size > 0
|
|
5005
5005
|
})), X());
|
|
5006
5006
|
}, te = (D) => {
|
|
5007
5007
|
D.target?.releasePointerCapture?.(D.pointerId), X();
|
|
5008
5008
|
}, z = r === !0 || Array.isArray(r) && r.includes(0);
|
|
5009
|
-
return
|
|
5009
|
+
return H("div", { className: ve(["react-flow__pane", { draggable: z, dragging: b, selection: e }]), onClick: E ? void 0 : Po(A, N), onContextMenu: Po(T, N), onWheel: Po($, N), onPointerEnter: E ? void 0 : f, onPointerMove: E ? U : d, onPointerUp: Z, onPointerCancel: E ? te : void 0, onPointerDownCapture: E ? j : void 0, onClickCapture: E ? O : void 0, onPointerLeave: p, ref: N, style: co, children: [w, x(D0, {})] });
|
|
5010
5010
|
}
|
|
5011
5011
|
function ci({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
|
|
5012
5012
|
const { addSelectedNodes: o, unselectNodesAndEdges: i, multiSelectionActive: a, nodeLookup: s, onError: c } = t.getState(), l = s.get(e);
|
|
@@ -5053,24 +5053,24 @@ const O0 = (e) => (t) => t.selected && (t.draggable || e && typeof t.draggable >
|
|
|
5053
5053
|
function au() {
|
|
5054
5054
|
const e = ge();
|
|
5055
5055
|
return ae((n) => {
|
|
5056
|
-
const { nodeExtent: r, snapToGrid: o, snapGrid: i, nodesDraggable: a, onError: s, updateNodePositions: c, nodeLookup: l, nodeOrigin: u } = e.getState(), h = /* @__PURE__ */ new Map(), f = O0(a), d = o ? i[0] : 5, p = o ? i[1] : 5, w = n.direction.x * d * n.factor,
|
|
5057
|
-
for (const [,
|
|
5058
|
-
if (!f(
|
|
5056
|
+
const { nodeExtent: r, snapToGrid: o, snapGrid: i, nodesDraggable: a, onError: s, updateNodePositions: c, nodeLookup: l, nodeOrigin: u } = e.getState(), h = /* @__PURE__ */ new Map(), f = O0(a), d = o ? i[0] : 5, p = o ? i[1] : 5, w = n.direction.x * d * n.factor, m = n.direction.y * p * n.factor;
|
|
5057
|
+
for (const [, y] of l) {
|
|
5058
|
+
if (!f(y))
|
|
5059
5059
|
continue;
|
|
5060
5060
|
let S = {
|
|
5061
|
-
x:
|
|
5062
|
-
y:
|
|
5061
|
+
x: y.internals.positionAbsolute.x + w,
|
|
5062
|
+
y: y.internals.positionAbsolute.y + m
|
|
5063
5063
|
};
|
|
5064
5064
|
o && (S = or(S, i));
|
|
5065
5065
|
const { position: g, positionAbsolute: b } = xc({
|
|
5066
|
-
nodeId:
|
|
5066
|
+
nodeId: y.id,
|
|
5067
5067
|
nextPosition: S,
|
|
5068
5068
|
nodeLookup: l,
|
|
5069
5069
|
nodeExtent: r,
|
|
5070
5070
|
nodeOrigin: u,
|
|
5071
5071
|
onError: s
|
|
5072
5072
|
});
|
|
5073
|
-
|
|
5073
|
+
y.position = g, y.internals.positionAbsolute = b, h.set(y.id, y);
|
|
5074
5074
|
}
|
|
5075
5075
|
c(h);
|
|
5076
5076
|
}, []);
|
|
@@ -5116,24 +5116,24 @@ const V0 = {
|
|
|
5116
5116
|
};
|
|
5117
5117
|
};
|
|
5118
5118
|
function B0({ type: e = "source", position: t = Y.Top, isValidConnection: n, isConnectable: r = !0, isConnectableStart: o = !0, isConnectableEnd: i = !0, id: a, onConnect: s, children: c, className: l, onMouseDown: u, onTouchStart: h, ...f }, d) {
|
|
5119
|
-
const p = a || null, w = e === "target",
|
|
5120
|
-
|
|
5119
|
+
const p = a || null, w = e === "target", m = ge(), y = su(), { connectOnClick: S, noPanClassName: g, rfId: b } = H0(), { connectingFrom: C, connectingTo: v, clickConnecting: E, isPossibleEndHandle: N, connectionInProcess: k, clickConnectionInProcess: P, valid: I } = se(j0(y, p, e), pe);
|
|
5120
|
+
y || m.getState().onError?.("010", je.error010());
|
|
5121
5121
|
const L = (M) => {
|
|
5122
|
-
const { defaultEdgeOptions: A, onConnect: T, hasDefaultEdges: $ } =
|
|
5122
|
+
const { defaultEdgeOptions: A, onConnect: T, hasDefaultEdges: $ } = m.getState(), O = {
|
|
5123
5123
|
...A,
|
|
5124
5124
|
...M
|
|
5125
5125
|
};
|
|
5126
5126
|
if ($) {
|
|
5127
|
-
const { edges: j, setEdges: B, onError:
|
|
5128
|
-
B(tu(O, j, { onError:
|
|
5127
|
+
const { edges: j, setEdges: B, onError: V } = m.getState();
|
|
5128
|
+
B(tu(O, j, { onError: V }));
|
|
5129
5129
|
}
|
|
5130
5130
|
T?.(O), s?.(O);
|
|
5131
5131
|
}, R = (M) => {
|
|
5132
|
-
if (!
|
|
5132
|
+
if (!y)
|
|
5133
5133
|
return;
|
|
5134
5134
|
const A = Mc(M.nativeEvent);
|
|
5135
5135
|
if (o && (A && M.button === 0 || !A)) {
|
|
5136
|
-
const T =
|
|
5136
|
+
const T = m.getState();
|
|
5137
5137
|
li.onPointerDown(M.nativeEvent, {
|
|
5138
5138
|
handleDomNode: M.currentTarget,
|
|
5139
5139
|
autoPanOnConnect: T.autoPanOnConnect,
|
|
@@ -5144,33 +5144,33 @@ function B0({ type: e = "source", position: t = Y.Top, isValidConnection: n, isC
|
|
|
5144
5144
|
lib: T.lib,
|
|
5145
5145
|
isTarget: w,
|
|
5146
5146
|
handleId: p,
|
|
5147
|
-
nodeId:
|
|
5147
|
+
nodeId: y,
|
|
5148
5148
|
flowId: T.rfId,
|
|
5149
5149
|
panBy: T.panBy,
|
|
5150
5150
|
cancelConnection: T.cancelConnection,
|
|
5151
5151
|
onConnectStart: T.onConnectStart,
|
|
5152
|
-
onConnectEnd: (...$) =>
|
|
5152
|
+
onConnectEnd: (...$) => m.getState().onConnectEnd?.(...$),
|
|
5153
5153
|
updateConnection: T.updateConnection,
|
|
5154
5154
|
onConnect: L,
|
|
5155
|
-
isValidConnection: n || ((...$) =>
|
|
5156
|
-
getTransform: () =>
|
|
5157
|
-
getFromHandle: () =>
|
|
5155
|
+
isValidConnection: n || ((...$) => m.getState().isValidConnection?.(...$) ?? !0),
|
|
5156
|
+
getTransform: () => m.getState().transform,
|
|
5157
|
+
getFromHandle: () => m.getState().connection.fromHandle,
|
|
5158
5158
|
autoPanSpeed: T.autoPanSpeed,
|
|
5159
5159
|
dragThreshold: T.connectionDragThreshold
|
|
5160
5160
|
});
|
|
5161
5161
|
}
|
|
5162
5162
|
A ? u?.(M) : h?.(M);
|
|
5163
5163
|
}, _ = (M) => {
|
|
5164
|
-
const { onClickConnectStart: A, onClickConnectEnd: T, connectionClickStartHandle: $, connectionMode: O, isValidConnection: j, lib: B, rfId:
|
|
5165
|
-
if (!
|
|
5164
|
+
const { onClickConnectStart: A, onClickConnectEnd: T, connectionClickStartHandle: $, connectionMode: O, isValidConnection: j, lib: B, rfId: V, nodeLookup: X, connection: U } = m.getState();
|
|
5165
|
+
if (!y || !$ && !o)
|
|
5166
5166
|
return;
|
|
5167
5167
|
if (!$) {
|
|
5168
|
-
A?.(M.nativeEvent, { nodeId:
|
|
5168
|
+
A?.(M.nativeEvent, { nodeId: y, handleId: p, handleType: e }), m.setState({ connectionClickStartHandle: { nodeId: y, type: e, id: p } });
|
|
5169
5169
|
return;
|
|
5170
5170
|
}
|
|
5171
5171
|
const Z = Nc(M.target), te = n || j, { connection: z, isValid: D } = li.isValid(M.nativeEvent, {
|
|
5172
5172
|
handle: {
|
|
5173
|
-
nodeId:
|
|
5173
|
+
nodeId: y,
|
|
5174
5174
|
id: p,
|
|
5175
5175
|
type: e
|
|
5176
5176
|
},
|
|
@@ -5179,16 +5179,16 @@ function B0({ type: e = "source", position: t = Y.Top, isValidConnection: n, isC
|
|
|
5179
5179
|
fromHandleId: $.id || null,
|
|
5180
5180
|
fromType: $.type,
|
|
5181
5181
|
isValidConnection: te,
|
|
5182
|
-
flowId:
|
|
5182
|
+
flowId: V,
|
|
5183
5183
|
doc: Z,
|
|
5184
5184
|
lib: B,
|
|
5185
5185
|
nodeLookup: X
|
|
5186
5186
|
});
|
|
5187
5187
|
D && z && L(z);
|
|
5188
5188
|
const F = structuredClone(U);
|
|
5189
|
-
delete F.inProgress, F.toPosition = F.toHandle ? F.toHandle.position : null, T?.(M, F),
|
|
5189
|
+
delete F.inProgress, F.toPosition = F.toHandle ? F.toHandle.position : null, T?.(M, F), m.setState({ connectionClickStartHandle: null });
|
|
5190
5190
|
};
|
|
5191
|
-
return x("div", { "data-handleid": p, "data-nodeid":
|
|
5191
|
+
return x("div", { "data-handleid": p, "data-nodeid": y, "data-handlepos": t, "data-id": `${b}-${y}-${p}-${e}`, className: ve([
|
|
5192
5192
|
"react-flow__handle",
|
|
5193
5193
|
`react-flow__handle-${t}`,
|
|
5194
5194
|
"nodrag",
|
|
@@ -5214,16 +5214,16 @@ function B0({ type: e = "source", position: t = Y.Top, isValidConnection: n, isC
|
|
|
5214
5214
|
}
|
|
5215
5215
|
const wt = xe(nu(B0));
|
|
5216
5216
|
function F0({ data: e, isConnectable: t, sourcePosition: n = Y.Bottom }) {
|
|
5217
|
-
return
|
|
5217
|
+
return H(Se, { children: [e?.label, x(wt, { type: "source", position: n, isConnectable: t })] });
|
|
5218
5218
|
}
|
|
5219
5219
|
function W0({ data: e, isConnectable: t, targetPosition: n = Y.Top, sourcePosition: r = Y.Bottom }) {
|
|
5220
|
-
return
|
|
5220
|
+
return H(Se, { children: [x(wt, { type: "target", position: n, isConnectable: t }), e?.label, x(wt, { type: "source", position: r, isConnectable: t })] });
|
|
5221
5221
|
}
|
|
5222
5222
|
function G0() {
|
|
5223
5223
|
return null;
|
|
5224
5224
|
}
|
|
5225
5225
|
function U0({ data: e, isConnectable: t, targetPosition: n = Y.Top }) {
|
|
5226
|
-
return
|
|
5226
|
+
return H(Se, { children: [x(wt, { type: "target", position: n, isConnectable: t }), e?.label] });
|
|
5227
5227
|
}
|
|
5228
5228
|
const Kr = {
|
|
5229
5229
|
ArrowUp: { x: 0, y: -1 },
|
|
@@ -5286,9 +5286,9 @@ function Y0({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
|
|
|
5286
5286
|
} }) });
|
|
5287
5287
|
}
|
|
5288
5288
|
const ps = typeof window < "u" ? window : void 0, Z0 = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
|
|
5289
|
-
function cu({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: h, onSelectionStart: f, onSelectionEnd: d, multiSelectionKeyCode: p, panActivationKeyCode: w, zoomActivationKeyCode:
|
|
5290
|
-
const { nodesSelectionActive: B, userSelectionActive:
|
|
5291
|
-
return N0({ deleteKeyCode: c, multiSelectionKeyCode: p }), x(T0, { onPaneContextMenu: i, elementsSelectable:
|
|
5289
|
+
function cu({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: c, selectionKeyCode: l, selectionOnDrag: u, selectionMode: h, onSelectionStart: f, onSelectionEnd: d, multiSelectionKeyCode: p, panActivationKeyCode: w, zoomActivationKeyCode: m, elementsSelectable: y, zoomOnScroll: S, zoomOnPinch: g, panOnScroll: b, panOnScrollSpeed: C, panOnScrollMode: v, zoomOnDoubleClick: E, panOnDrag: N, autoPanOnSelection: k, defaultViewport: P, translateExtent: I, minZoom: L, maxZoom: R, preventScrolling: _, onSelectionContextMenu: M, noWheelClassName: A, noPanClassName: T, disableKeyboardA11y: $, onViewportChange: O, isControlledViewport: j }) {
|
|
5290
|
+
const { nodesSelectionActive: B, userSelectionActive: V } = se(Z0, pe), X = Kn(l, { target: ps }), U = Kn(w, { target: ps }), Z = U || N, te = U || b, z = u && Z !== !0, D = X || V || z;
|
|
5291
|
+
return N0({ deleteKeyCode: c, multiSelectionKeyCode: p }), x(T0, { onPaneContextMenu: i, elementsSelectable: y, zoomOnScroll: S, zoomOnPinch: g, panOnScroll: te, panOnScrollSpeed: C, panOnScrollMode: v, zoomOnDoubleClick: E, panOnDrag: !X && Z, defaultViewport: P, translateExtent: I, minZoom: L, maxZoom: R, zoomActivationKeyCode: m, preventScrolling: _, noWheelClassName: A, noPanClassName: T, onViewportChange: O, isControlledViewport: j, paneClickDistance: s, selectionOnDrag: z, children: H(P0, { onSelectionStart: f, onSelectionEnd: d, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: Z, autoPanOnSelection: k, isSelecting: !!D, selectionMode: h, selectionKeyPressed: X, paneClickDistance: s, selectionOnDrag: z, children: [e, B && x(Y0, { onSelectionContextMenu: M, noPanClassName: T, disableKeyboardA11y: $ })] }) });
|
|
5292
5292
|
}
|
|
5293
5293
|
cu.displayName = "FlowRenderer";
|
|
5294
5294
|
const q0 = xe(cu), Q0 = (e) => (t) => e ? $i(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
|
|
@@ -5325,7 +5325,7 @@ function ny({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
|
|
|
5325
5325
|
}
|
|
5326
5326
|
}, [e.id, t, e.sourcePosition, e.targetPosition]), i;
|
|
5327
5327
|
}
|
|
5328
|
-
function ry({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave: o, onContextMenu: i, onDoubleClick: a, nodesDraggable: s, elementsSelectable: c, nodesConnectable: l, nodesFocusable: u, resizeObserver: h, noDragClassName: f, noPanClassName: d, disableKeyboardA11y: p, rfId: w, nodeTypes:
|
|
5328
|
+
function ry({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave: o, onContextMenu: i, onDoubleClick: a, nodesDraggable: s, elementsSelectable: c, nodesConnectable: l, nodesFocusable: u, resizeObserver: h, noDragClassName: f, noPanClassName: d, disableKeyboardA11y: p, rfId: w, nodeTypes: m, nodeClickDistance: y, onError: S }) {
|
|
5329
5329
|
const { node: g, internals: b, isParent: C } = se((D) => {
|
|
5330
5330
|
const F = D.nodeLookup.get(e), q = D.parentLookup.has(e);
|
|
5331
5331
|
return {
|
|
@@ -5334,8 +5334,8 @@ function ry({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
5334
5334
|
isParent: q
|
|
5335
5335
|
};
|
|
5336
5336
|
}, pe);
|
|
5337
|
-
let v = g.type || "default", E =
|
|
5338
|
-
E === void 0 && (S?.("003", je.error003(v)), v = "default", E =
|
|
5337
|
+
let v = g.type || "default", E = m?.[v] || hs[v];
|
|
5338
|
+
E === void 0 && (S?.("003", je.error003(v)), v = "default", E = m?.default || hs.default);
|
|
5339
5339
|
const N = !!(g.draggable || s && typeof g.draggable > "u"), k = !!(g.selectable || c && typeof g.selectable > "u"), P = !!(g.connectable || l && typeof g.connectable > "u"), I = !!(g.focusable || u && typeof g.focusable > "u"), L = ge(), R = Cc(g), _ = ny({ node: g, nodeType: v, hasDimensions: R, resizeObserver: h }), M = iu({
|
|
5340
5340
|
nodeRef: _,
|
|
5341
5341
|
disabled: g.hidden || !N,
|
|
@@ -5343,11 +5343,11 @@ function ry({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
5343
5343
|
handleSelector: g.dragHandle,
|
|
5344
5344
|
nodeId: e,
|
|
5345
5345
|
isSelectable: k,
|
|
5346
|
-
nodeClickDistance:
|
|
5346
|
+
nodeClickDistance: y
|
|
5347
5347
|
}), A = au();
|
|
5348
5348
|
if (g.hidden)
|
|
5349
5349
|
return null;
|
|
5350
|
-
const T = ct(g), $ = X0(g), O = k || N || t || n || r || o, j = n ? (D) => n(D, { ...b.userNode }) : void 0, B = r ? (D) => r(D, { ...b.userNode }) : void 0,
|
|
5350
|
+
const T = ct(g), $ = X0(g), O = k || N || t || n || r || o, j = n ? (D) => n(D, { ...b.userNode }) : void 0, B = r ? (D) => r(D, { ...b.userNode }) : void 0, V = o ? (D) => o(D, { ...b.userNode }) : void 0, X = i ? (D) => i(D, { ...b.userNode }) : void 0, U = a ? (D) => a(D, { ...b.userNode }) : void 0, Z = (D) => {
|
|
5351
5351
|
const { selectNodesOnDrag: F, nodeDragThreshold: q } = L.getState();
|
|
5352
5352
|
k && (!F || !N || q > 0) && ci({
|
|
5353
5353
|
id: e,
|
|
@@ -5411,7 +5411,7 @@ function ry({ id: e, onClick: t, onMouseEnter: n, onMouseMove: r, onMouseLeave:
|
|
|
5411
5411
|
visibility: R ? "visible" : "hidden",
|
|
5412
5412
|
...g.style,
|
|
5413
5413
|
...$
|
|
5414
|
-
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: j, onMouseMove: B, onMouseLeave:
|
|
5414
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: j, onMouseMove: B, onMouseLeave: V, onContextMenu: X, onClick: Z, onDoubleClick: U, onKeyDown: I ? te : void 0, tabIndex: I ? 0 : void 0, onFocus: I ? z : void 0, role: g.ariaRole ?? (I ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": p ? void 0 : `${Yc}-${w}`, "aria-label": g.ariaLabel, ...g.domAttributes, children: x($0, { value: e, children: x(E, { id: e, data: g.data, type: v, positionAbsoluteX: b.positionAbsolute.x, positionAbsoluteY: b.positionAbsolute.y, selected: g.selected ?? !1, selectable: k, draggable: N, deletable: g.deletable ?? !0, isConnectable: P, sourcePosition: g.sourcePosition, targetPosition: g.targetPosition, dragging: M, dragHandle: g.dragHandle, zIndex: b.z, parentId: g.parentId, ...T }) }) });
|
|
5415
5415
|
}
|
|
5416
5416
|
var oy = xe(ry);
|
|
5417
5417
|
const iy = (e) => ({
|
|
@@ -5518,12 +5518,12 @@ function fu({ x: e, y: t, label: n, labelStyle: r, labelShowBg: o = !0, labelBgS
|
|
|
5518
5518
|
height: w.height
|
|
5519
5519
|
});
|
|
5520
5520
|
}
|
|
5521
|
-
}, [n]), n ?
|
|
5521
|
+
}, [n]), n ? H("g", { transform: `translate(${e - h.width / 2} ${t - h.height / 2})`, className: d, visibility: h.width ? "visible" : "hidden", ...u, children: [o && x("rect", { width: h.width + 2 * a[0], x: -a[0], y: -a[1], height: h.height + 2 * a[1], className: "react-flow__edge-textbg", style: i, rx: s, ry: s }), x("text", { className: "react-flow__edge-text", y: h.height / 2, dy: "0.3em", ref: p, style: r, children: n }), c] }) : null;
|
|
5522
5522
|
}
|
|
5523
5523
|
fu.displayName = "EdgeText";
|
|
5524
5524
|
const hy = xe(fu);
|
|
5525
5525
|
function ar({ path: e, labelX: t, labelY: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c, interactionWidth: l = 20, ...u }) {
|
|
5526
|
-
return
|
|
5526
|
+
return H(Se, { children: [x("path", { ...u, d: e, fill: "none", className: ve(["react-flow__edge-path", u.className]) }), l ? x("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: l, className: "react-flow__edge-interaction" }) : null, r && Qe(t) && Qe(n) ? x(hy, { x: t, y: n, label: r, labelStyle: o, labelShowBg: i, labelBgStyle: a, labelBgPadding: s, labelBgBorderRadius: c }) : null] });
|
|
5527
5527
|
}
|
|
5528
5528
|
function ms({ pos: e, x1: t, y1: n, x2: r, y2: o }) {
|
|
5529
5529
|
return e === Y.Left || e === Y.Right ? [0.5 * (t + r), n] : [t, 0.5 * (n + o)];
|
|
@@ -5560,7 +5560,7 @@ function hu({ sourceX: e, sourceY: t, sourcePosition: n = Y.Bottom, targetX: r,
|
|
|
5560
5560
|
];
|
|
5561
5561
|
}
|
|
5562
5562
|
function pu(e) {
|
|
5563
|
-
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a, targetPosition: s, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart:
|
|
5563
|
+
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a, targetPosition: s, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart: m, interactionWidth: y }) => {
|
|
5564
5564
|
const [S, g, b] = hu({
|
|
5565
5565
|
sourceX: n,
|
|
5566
5566
|
sourceY: r,
|
|
@@ -5569,14 +5569,14 @@ function pu(e) {
|
|
|
5569
5569
|
targetY: i,
|
|
5570
5570
|
targetPosition: s
|
|
5571
5571
|
}), C = e.isInternal ? void 0 : t;
|
|
5572
|
-
return x(ar, { id: C, path: S, labelX: g, labelY: b, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart:
|
|
5572
|
+
return x(ar, { id: C, path: S, labelX: g, labelY: b, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart: m, interactionWidth: y });
|
|
5573
5573
|
});
|
|
5574
5574
|
}
|
|
5575
5575
|
const py = pu({ isInternal: !1 }), gu = pu({ isInternal: !0 });
|
|
5576
5576
|
py.displayName = "SimpleBezierEdge";
|
|
5577
5577
|
gu.displayName = "SimpleBezierEdgeInternal";
|
|
5578
5578
|
function mu(e) {
|
|
5579
|
-
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, sourcePosition: d = Y.Bottom, targetPosition: p = Y.Top, markerEnd: w, markerStart:
|
|
5579
|
+
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, sourcePosition: d = Y.Bottom, targetPosition: p = Y.Top, markerEnd: w, markerStart: m, pathOptions: y, interactionWidth: S }) => {
|
|
5580
5580
|
const [g, b, C] = Xr({
|
|
5581
5581
|
sourceX: n,
|
|
5582
5582
|
sourceY: r,
|
|
@@ -5584,11 +5584,11 @@ function mu(e) {
|
|
|
5584
5584
|
targetX: o,
|
|
5585
5585
|
targetY: i,
|
|
5586
5586
|
targetPosition: p,
|
|
5587
|
-
borderRadius:
|
|
5588
|
-
offset:
|
|
5589
|
-
stepPosition:
|
|
5587
|
+
borderRadius: y?.borderRadius,
|
|
5588
|
+
offset: y?.offset,
|
|
5589
|
+
stepPosition: y?.stepPosition
|
|
5590
5590
|
}), v = e.isInternal ? void 0 : t;
|
|
5591
|
-
return x(ar, { id: v, path: g, labelX: b, labelY: C, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, markerEnd: w, markerStart:
|
|
5591
|
+
return x(ar, { id: v, path: g, labelX: b, labelY: C, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, markerEnd: w, markerStart: m, interactionWidth: S });
|
|
5592
5592
|
});
|
|
5593
5593
|
}
|
|
5594
5594
|
const yu = mu({ isInternal: !1 }), bu = mu({ isInternal: !0 });
|
|
@@ -5605,15 +5605,15 @@ gy.displayName = "StepEdge";
|
|
|
5605
5605
|
xu.displayName = "StepEdgeInternal";
|
|
5606
5606
|
function vu(e) {
|
|
5607
5607
|
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, markerEnd: d, markerStart: p, interactionWidth: w }) => {
|
|
5608
|
-
const [
|
|
5609
|
-
return x(ar, { id: g, path:
|
|
5608
|
+
const [m, y, S] = Ic({ sourceX: n, sourceY: r, targetX: o, targetY: i }), g = e.isInternal ? void 0 : t;
|
|
5609
|
+
return x(ar, { id: g, path: m, labelX: y, labelY: S, label: a, labelStyle: s, labelShowBg: c, labelBgStyle: l, labelBgPadding: u, labelBgBorderRadius: h, style: f, markerEnd: d, markerStart: p, interactionWidth: w });
|
|
5610
5610
|
});
|
|
5611
5611
|
}
|
|
5612
5612
|
const my = vu({ isInternal: !1 }), _u = vu({ isInternal: !0 });
|
|
5613
5613
|
my.displayName = "StraightEdge";
|
|
5614
5614
|
_u.displayName = "StraightEdgeInternal";
|
|
5615
5615
|
function Su(e) {
|
|
5616
|
-
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a = Y.Bottom, targetPosition: s = Y.Top, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart:
|
|
5616
|
+
return xe(({ id: t, sourceX: n, sourceY: r, targetX: o, targetY: i, sourcePosition: a = Y.Bottom, targetPosition: s = Y.Top, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart: m, pathOptions: y, interactionWidth: S }) => {
|
|
5617
5617
|
const [g, b, C] = zc({
|
|
5618
5618
|
sourceX: n,
|
|
5619
5619
|
sourceY: r,
|
|
@@ -5621,9 +5621,9 @@ function Su(e) {
|
|
|
5621
5621
|
targetX: o,
|
|
5622
5622
|
targetY: i,
|
|
5623
5623
|
targetPosition: s,
|
|
5624
|
-
curvature:
|
|
5624
|
+
curvature: y?.curvature
|
|
5625
5625
|
}), v = e.isInternal ? void 0 : t;
|
|
5626
|
-
return x(ar, { id: v, path: g, labelX: b, labelY: C, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart:
|
|
5626
|
+
return x(ar, { id: v, path: g, labelX: b, labelY: C, label: c, labelStyle: l, labelShowBg: u, labelBgStyle: h, labelBgPadding: f, labelBgBorderRadius: d, style: p, markerEnd: w, markerStart: m, interactionWidth: S });
|
|
5627
5627
|
});
|
|
5628
5628
|
}
|
|
5629
5629
|
const yy = Su({ isInternal: !1 }), Eu = Su({ isInternal: !0 });
|
|
@@ -5651,10 +5651,10 @@ function xy({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourc
|
|
|
5651
5651
|
const p = ge(), w = (b, C) => {
|
|
5652
5652
|
if (b.button !== 0)
|
|
5653
5653
|
return;
|
|
5654
|
-
const { autoPanOnConnect: v, domNode: E, connectionMode: N, connectionRadius: k, lib: P, onConnectStart: I, cancelConnection: L, nodeLookup: R, rfId: _, panBy: M, updateConnection: A } = p.getState(), T = C.type === "target", $ = (B,
|
|
5655
|
-
f(!1), h?.(B, n, C.type,
|
|
5656
|
-
}, O = (B) => l?.(n, B), j = (B,
|
|
5657
|
-
f(!0), u?.(b, n, C.type), I?.(B,
|
|
5654
|
+
const { autoPanOnConnect: v, domNode: E, connectionMode: N, connectionRadius: k, lib: P, onConnectStart: I, cancelConnection: L, nodeLookup: R, rfId: _, panBy: M, updateConnection: A } = p.getState(), T = C.type === "target", $ = (B, V) => {
|
|
5655
|
+
f(!1), h?.(B, n, C.type, V);
|
|
5656
|
+
}, O = (B) => l?.(n, B), j = (B, V) => {
|
|
5657
|
+
f(!0), u?.(b, n, C.type), I?.(B, V);
|
|
5658
5658
|
};
|
|
5659
5659
|
li.onPointerDown(b.nativeEvent, {
|
|
5660
5660
|
autoPanOnConnect: v,
|
|
@@ -5681,16 +5681,16 @@ function xy({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: r, sourc
|
|
|
5681
5681
|
dragThreshold: p.getState().connectionDragThreshold,
|
|
5682
5682
|
handleDomNode: b.currentTarget
|
|
5683
5683
|
});
|
|
5684
|
-
},
|
|
5685
|
-
return
|
|
5684
|
+
}, m = (b) => w(b, { nodeId: n.target, id: n.targetHandle ?? null, type: "target" }), y = (b) => w(b, { nodeId: n.source, id: n.sourceHandle ?? null, type: "source" }), S = () => d(!0), g = () => d(!1);
|
|
5685
|
+
return H(Se, { children: [(e === !0 || e === "source") && x(xs, { position: s, centerX: r, centerY: o, radius: t, onMouseDown: m, onMouseEnter: S, onMouseOut: g, type: "source" }), (e === !0 || e === "target") && x(xs, { position: c, centerX: i, centerY: a, radius: t, onMouseDown: y, onMouseEnter: S, onMouseOut: g, type: "target" })] });
|
|
5686
5686
|
}
|
|
5687
|
-
function vy({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectable: r, onClick: o, onDoubleClick: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: l, reconnectRadius: u, onReconnect: h, onReconnectStart: f, onReconnectEnd: d, rfId: p, edgeTypes: w, noPanClassName:
|
|
5687
|
+
function vy({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectable: r, onClick: o, onDoubleClick: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: l, reconnectRadius: u, onReconnect: h, onReconnectStart: f, onReconnectEnd: d, rfId: p, edgeTypes: w, noPanClassName: m, onError: y, disableKeyboardA11y: S }) {
|
|
5688
5688
|
let g = se((K) => K.edgeLookup.get(e));
|
|
5689
5689
|
const b = se((K) => K.defaultEdgeOptions);
|
|
5690
5690
|
g = b ? { ...b, ...g } : g;
|
|
5691
5691
|
let C = g.type || "default", v = w?.[C] || ys[C];
|
|
5692
|
-
v === void 0 && (
|
|
5693
|
-
const E = !!(g.focusable || t && typeof g.focusable > "u"), N = typeof h < "u" && (g.reconnectable || n && typeof g.reconnectable > "u"), k = !!(g.selectable || r && typeof g.selectable > "u"), P = ne(null), [I, L] = ie(!1), [R, _] = ie(!1), M = ge(), { zIndex: A = g.zIndex, sourceX: T, sourceY: $, targetX: O, targetY: j, sourcePosition: B, targetPosition:
|
|
5692
|
+
v === void 0 && (y?.("011", je.error011(C)), C = "default", v = w?.default || ys.default);
|
|
5693
|
+
const E = !!(g.focusable || t && typeof g.focusable > "u"), N = typeof h < "u" && (g.reconnectable || n && typeof g.reconnectable > "u"), k = !!(g.selectable || r && typeof g.selectable > "u"), P = ne(null), [I, L] = ie(!1), [R, _] = ie(!1), M = ge(), { zIndex: A = g.zIndex, sourceX: T, sourceY: $, targetX: O, targetY: j, sourcePosition: B, targetPosition: V } = se(ae((K) => {
|
|
5694
5694
|
const Q = K.nodeLookup.get(g.source), ee = K.nodeLookup.get(g.target);
|
|
5695
5695
|
if (!Q || !ee)
|
|
5696
5696
|
return bs;
|
|
@@ -5701,7 +5701,7 @@ function vy({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5701
5701
|
sourceHandle: g.sourceHandle || null,
|
|
5702
5702
|
targetHandle: g.targetHandle || null,
|
|
5703
5703
|
connectionMode: K.connectionMode,
|
|
5704
|
-
onError:
|
|
5704
|
+
onError: y
|
|
5705
5705
|
}), he = tm({
|
|
5706
5706
|
selected: g.selected,
|
|
5707
5707
|
zIndex: g.zIndex,
|
|
@@ -5736,11 +5736,11 @@ function vy({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5736
5736
|
K.key === "Escape" ? (P.current?.blur(), Q({ edges: [g] })) : ee([e]);
|
|
5737
5737
|
}
|
|
5738
5738
|
};
|
|
5739
|
-
return x("svg", { style: { zIndex: A }, children:
|
|
5739
|
+
return x("svg", { style: { zIndex: A }, children: H("g", { className: ve([
|
|
5740
5740
|
"react-flow__edge",
|
|
5741
5741
|
`react-flow__edge-${C}`,
|
|
5742
5742
|
g.className,
|
|
5743
|
-
|
|
5743
|
+
m,
|
|
5744
5744
|
{
|
|
5745
5745
|
selected: g.selected,
|
|
5746
5746
|
animated: g.animated,
|
|
@@ -5748,7 +5748,7 @@ function vy({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
5748
5748
|
updating: I,
|
|
5749
5749
|
selectable: k
|
|
5750
5750
|
}
|
|
5751
|
-
]), onClick: Z, onDoubleClick: te, onContextMenu: z, onMouseEnter: D, onMouseMove: F, onMouseLeave: q, onKeyDown: E ? J : void 0, tabIndex: E ? 0 : void 0, role: g.ariaRole ?? (E ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": g.ariaLabel === null ? void 0 : g.ariaLabel || `Edge from ${g.source} to ${g.target}`, "aria-describedby": E ? `${Zc}-${p}` : void 0, ref: P, ...g.domAttributes, children: [!R && x(v, { id: e, source: g.source, target: g.target, type: g.type, selected: g.selected, animated: g.animated, selectable: k, deletable: g.deletable ?? !0, label: g.label, labelStyle: g.labelStyle, labelShowBg: g.labelShowBg, labelBgStyle: g.labelBgStyle, labelBgPadding: g.labelBgPadding, labelBgBorderRadius: g.labelBgBorderRadius, sourceX: T, sourceY: $, targetX: O, targetY: j, sourcePosition: B, targetPosition:
|
|
5751
|
+
]), onClick: Z, onDoubleClick: te, onContextMenu: z, onMouseEnter: D, onMouseMove: F, onMouseLeave: q, onKeyDown: E ? J : void 0, tabIndex: E ? 0 : void 0, role: g.ariaRole ?? (E ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": g.ariaLabel === null ? void 0 : g.ariaLabel || `Edge from ${g.source} to ${g.target}`, "aria-describedby": E ? `${Zc}-${p}` : void 0, ref: P, ...g.domAttributes, children: [!R && x(v, { id: e, source: g.source, target: g.target, type: g.type, selected: g.selected, animated: g.animated, selectable: k, deletable: g.deletable ?? !0, label: g.label, labelStyle: g.labelStyle, labelShowBg: g.labelShowBg, labelBgStyle: g.labelBgStyle, labelBgPadding: g.labelBgPadding, labelBgBorderRadius: g.labelBgBorderRadius, sourceX: T, sourceY: $, targetX: O, targetY: j, sourcePosition: B, targetPosition: V, data: g.data, style: g.style, sourceHandleId: g.sourceHandle, targetHandleId: g.targetHandle, markerStart: X, markerEnd: U, pathOptions: "pathOptions" in g ? g.pathOptions : void 0, interactionWidth: g.interactionWidth }), N && x(xy, { edge: g, isReconnectable: N, reconnectRadius: u, onReconnect: h, onReconnectStart: f, onReconnectEnd: d, sourceX: T, sourceY: $, targetX: O, targetY: j, sourcePosition: B, targetPosition: V, setUpdateHover: L, setReconnecting: _ })] }) });
|
|
5752
5752
|
}
|
|
5753
5753
|
var _y = xe(vy);
|
|
5754
5754
|
const Sy = (e) => ({
|
|
@@ -5759,8 +5759,8 @@ const Sy = (e) => ({
|
|
|
5759
5759
|
onError: e.onError
|
|
5760
5760
|
});
|
|
5761
5761
|
function Cu({ defaultMarkerColor: e, onlyRenderVisibleElements: t, rfId: n, edgeTypes: r, noPanClassName: o, onReconnect: i, onEdgeContextMenu: a, onEdgeMouseEnter: s, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: u, reconnectRadius: h, onEdgeDoubleClick: f, onReconnectStart: d, onReconnectEnd: p, disableKeyboardA11y: w }) {
|
|
5762
|
-
const { edgesFocusable:
|
|
5763
|
-
return
|
|
5762
|
+
const { edgesFocusable: m, edgesReconnectable: y, elementsSelectable: S, onError: g } = se(Sy, pe), b = sy(t);
|
|
5763
|
+
return H("div", { className: "react-flow__edges", children: [x(fy, { defaultColor: e, rfId: n }), b.map((C) => x(_y, { id: C, edgesFocusable: m, edgesReconnectable: y, elementsSelectable: S, noPanClassName: o, onReconnect: i, onContextMenu: a, onMouseEnter: s, onMouseMove: c, onMouseLeave: l, onClick: u, reconnectRadius: h, onDoubleClick: f, onReconnectStart: d, onReconnectEnd: p, rfId: n, onError: g, edgeTypes: r, disableKeyboardA11y: w }, C))] });
|
|
5764
5764
|
}
|
|
5765
5765
|
Cu.displayName = "EdgeRenderer";
|
|
5766
5766
|
const Ey = xe(Cu), vs = (e) => `translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;
|
|
@@ -5870,13 +5870,13 @@ function Oy() {
|
|
|
5870
5870
|
}
|
|
5871
5871
|
}, []);
|
|
5872
5872
|
}
|
|
5873
|
-
function Nu({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: h, onSelectionStart: f, onSelectionEnd: d, connectionLineType: p, connectionLineStyle: w, connectionLineComponent:
|
|
5874
|
-
return _s(e), _s(t), Oy(), ky(n), Ay(Ue), x(q0, { onPaneClick: Z, onPaneMouseEnter: te, onPaneMouseMove: z, onPaneMouseLeave: D, onPaneContextMenu: q, onPaneScroll: F, paneClickDistance: J, deleteKeyCode: N, selectionKeyCode: S, selectionOnDrag: g, selectionMode: b, onSelectionStart: f, onSelectionEnd: d, multiSelectionKeyCode: C, panActivationKeyCode: v, zoomActivationKeyCode: E, elementsSelectable: P, zoomOnScroll: T, zoomOnPinch: $, zoomOnDoubleClick:
|
|
5873
|
+
function Nu({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, onSelectionContextMenu: h, onSelectionStart: f, onSelectionEnd: d, connectionLineType: p, connectionLineStyle: w, connectionLineComponent: m, connectionLineContainerStyle: y, selectionKeyCode: S, selectionOnDrag: g, selectionMode: b, multiSelectionKeyCode: C, panActivationKeyCode: v, zoomActivationKeyCode: E, deleteKeyCode: N, onlyRenderVisibleElements: k, elementsSelectable: P, defaultViewport: I, translateExtent: L, minZoom: R, maxZoom: _, preventScrolling: M, defaultMarkerColor: A, zoomOnScroll: T, zoomOnPinch: $, panOnScroll: O, panOnScrollSpeed: j, panOnScrollMode: B, zoomOnDoubleClick: V, panOnDrag: X, autoPanOnSelection: U, onPaneClick: Z, onPaneMouseEnter: te, onPaneMouseMove: z, onPaneMouseLeave: D, onPaneScroll: F, onPaneContextMenu: q, paneClickDistance: J, nodeClickDistance: K, onEdgeContextMenu: Q, onEdgeMouseEnter: ee, onEdgeMouseMove: le, onEdgeMouseLeave: he, reconnectRadius: de, onReconnect: Be, onReconnectStart: Me, onReconnectEnd: Fe, noDragClassName: We, noWheelClassName: Dt, noPanClassName: ut, disableKeyboardA11y: dt, nodeExtent: Ie, rfId: Ge, viewport: Ue, onViewportChange: ft, nodesDraggable: _n }) {
|
|
5874
|
+
return _s(e), _s(t), Oy(), ky(n), Ay(Ue), x(q0, { onPaneClick: Z, onPaneMouseEnter: te, onPaneMouseMove: z, onPaneMouseLeave: D, onPaneContextMenu: q, onPaneScroll: F, paneClickDistance: J, deleteKeyCode: N, selectionKeyCode: S, selectionOnDrag: g, selectionMode: b, onSelectionStart: f, onSelectionEnd: d, multiSelectionKeyCode: C, panActivationKeyCode: v, zoomActivationKeyCode: E, elementsSelectable: P, zoomOnScroll: T, zoomOnPinch: $, zoomOnDoubleClick: V, panOnScroll: O, panOnScrollSpeed: j, panOnScrollMode: B, panOnDrag: X, autoPanOnSelection: U, defaultViewport: I, translateExtent: L, minZoom: R, maxZoom: _, onSelectionContextMenu: h, preventScrolling: M, noDragClassName: We, noWheelClassName: Dt, noPanClassName: ut, disableKeyboardA11y: dt, onViewportChange: ft, isControlledViewport: !!Ue, children: H(Cy, { children: [x(Ey, { edgeTypes: t, onEdgeClick: o, onEdgeDoubleClick: a, onReconnect: Be, onReconnectStart: Me, onReconnectEnd: Fe, onlyRenderVisibleElements: k, onEdgeContextMenu: Q, onEdgeMouseEnter: ee, onEdgeMouseMove: le, onEdgeMouseLeave: he, reconnectRadius: de, defaultMarkerColor: A, noPanClassName: ut, disableKeyboardA11y: dt, rfId: Ge }), x(Iy, { style: w, type: p, component: m, containerStyle: y }), x("div", { className: "react-flow__edgelabel-renderer" }), x(ay, { nodeTypes: e, onNodeClick: r, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: c, onNodeMouseLeave: l, onNodeContextMenu: u, nodeClickDistance: K, onlyRenderVisibleElements: k, noPanClassName: ut, noDragClassName: We, disableKeyboardA11y: dt, nodeExtent: Ie, rfId: Ge, nodesDraggable: _n }), x("div", { className: "react-flow__viewport-portal" })] }) });
|
|
5875
5875
|
}
|
|
5876
5876
|
Nu.displayName = "GraphView";
|
|
5877
5877
|
const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c = 0.5, maxZoom: l = 2, nodeOrigin: u, nodeExtent: h, zIndexMode: f = "basic" } = {}) => {
|
|
5878
|
-
const d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(),
|
|
5879
|
-
$c(w,
|
|
5878
|
+
const d = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), y = r ?? t ?? [], S = n ?? e ?? [], g = u ?? [0, 0], b = h ?? Fn;
|
|
5879
|
+
$c(w, m, y);
|
|
5880
5880
|
const { nodesInitialized: C } = si(S, d, p, {
|
|
5881
5881
|
nodeOrigin: g,
|
|
5882
5882
|
nodeExtent: b,
|
|
@@ -5898,8 +5898,8 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
5898
5898
|
nodesInitialized: C,
|
|
5899
5899
|
nodeLookup: d,
|
|
5900
5900
|
parentLookup: p,
|
|
5901
|
-
edges:
|
|
5902
|
-
edgeLookup:
|
|
5901
|
+
edges: y,
|
|
5902
|
+
edgeLookup: m,
|
|
5903
5903
|
connectionLookup: w,
|
|
5904
5904
|
onNodesChange: null,
|
|
5905
5905
|
onEdgesChange: null,
|
|
@@ -5956,12 +5956,12 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
5956
5956
|
};
|
|
5957
5957
|
}, Ly = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: a, fitViewOptions: s, minZoom: c, maxZoom: l, nodeOrigin: u, nodeExtent: h, zIndexMode: f }) => Jm((d, p) => {
|
|
5958
5958
|
async function w() {
|
|
5959
|
-
const { nodeLookup:
|
|
5960
|
-
|
|
5961
|
-
nodes:
|
|
5959
|
+
const { nodeLookup: m, panZoom: y, fitViewOptions: S, fitViewResolver: g, width: b, height: C, minZoom: v, maxZoom: E } = p();
|
|
5960
|
+
y && (await Kg({
|
|
5961
|
+
nodes: m,
|
|
5962
5962
|
width: b,
|
|
5963
5963
|
height: C,
|
|
5964
|
-
panZoom:
|
|
5964
|
+
panZoom: y,
|
|
5965
5965
|
minZoom: v,
|
|
5966
5966
|
maxZoom: E
|
|
5967
5967
|
}, S), g?.resolve(!0), d({ fitViewResolver: null }));
|
|
@@ -5982,8 +5982,8 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
5982
5982
|
defaultEdges: r,
|
|
5983
5983
|
zIndexMode: f
|
|
5984
5984
|
}),
|
|
5985
|
-
setNodes: (
|
|
5986
|
-
const { nodeLookup:
|
|
5985
|
+
setNodes: (m) => {
|
|
5986
|
+
const { nodeLookup: y, parentLookup: S, nodeOrigin: g, elevateNodesOnSelect: b, fitViewQueued: C, zIndexMode: v, nodesSelectionActive: E } = p(), { nodesInitialized: N, hasSelectedNodes: k } = si(m, y, S, {
|
|
5987
5987
|
nodeOrigin: g,
|
|
5988
5988
|
nodeExtent: h,
|
|
5989
5989
|
elevateNodesOnSelect: b,
|
|
@@ -5991,25 +5991,25 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
5991
5991
|
zIndexMode: v
|
|
5992
5992
|
}), P = E && k;
|
|
5993
5993
|
C && N ? (w(), d({
|
|
5994
|
-
nodes:
|
|
5994
|
+
nodes: m,
|
|
5995
5995
|
nodesInitialized: N,
|
|
5996
5996
|
fitViewQueued: !1,
|
|
5997
5997
|
fitViewOptions: void 0,
|
|
5998
5998
|
nodesSelectionActive: P
|
|
5999
|
-
})) : d({ nodes:
|
|
5999
|
+
})) : d({ nodes: m, nodesInitialized: N, nodesSelectionActive: P });
|
|
6000
6000
|
},
|
|
6001
|
-
setEdges: (
|
|
6002
|
-
const { connectionLookup:
|
|
6003
|
-
$c(
|
|
6001
|
+
setEdges: (m) => {
|
|
6002
|
+
const { connectionLookup: y, edgeLookup: S } = p();
|
|
6003
|
+
$c(y, S, m), d({ edges: m });
|
|
6004
6004
|
},
|
|
6005
|
-
setDefaultNodesAndEdges: (
|
|
6006
|
-
if (
|
|
6005
|
+
setDefaultNodesAndEdges: (m, y) => {
|
|
6006
|
+
if (m) {
|
|
6007
6007
|
const { setNodes: S } = p();
|
|
6008
|
-
S(
|
|
6008
|
+
S(m), d({ hasDefaultNodes: !0 });
|
|
6009
6009
|
}
|
|
6010
|
-
if (
|
|
6010
|
+
if (y) {
|
|
6011
6011
|
const { setEdges: S } = p();
|
|
6012
|
-
S(
|
|
6012
|
+
S(y), d({ hasDefaultEdges: !0 });
|
|
6013
6013
|
}
|
|
6014
6014
|
},
|
|
6015
6015
|
/*
|
|
@@ -6017,15 +6017,15 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
6017
6017
|
* changes its dimensions, this function is called to measure the
|
|
6018
6018
|
* new dimensions and update the nodes.
|
|
6019
6019
|
*/
|
|
6020
|
-
updateNodeInternals: (
|
|
6021
|
-
const { triggerNodeChanges:
|
|
6022
|
-
I && (hm(S, g, { nodeOrigin: C, nodeExtent: v, zIndexMode: k }), N ? (w(), d({ fitViewQueued: !1, fitViewOptions: void 0 })) : d({}), P?.length > 0 && (E && console.log("React Flow: trigger node changes", P),
|
|
6020
|
+
updateNodeInternals: (m) => {
|
|
6021
|
+
const { triggerNodeChanges: y, nodeLookup: S, parentLookup: g, domNode: b, nodeOrigin: C, nodeExtent: v, debug: E, fitViewQueued: N, zIndexMode: k } = p(), { changes: P, updatedInternals: I } = ym(m, S, g, b, C, v, k);
|
|
6022
|
+
I && (hm(S, g, { nodeOrigin: C, nodeExtent: v, zIndexMode: k }), N ? (w(), d({ fitViewQueued: !1, fitViewOptions: void 0 })) : d({}), P?.length > 0 && (E && console.log("React Flow: trigger node changes", P), y?.(P)));
|
|
6023
6023
|
},
|
|
6024
|
-
updateNodePositions: (
|
|
6024
|
+
updateNodePositions: (m, y = !1) => {
|
|
6025
6025
|
const S = [];
|
|
6026
6026
|
let g = [];
|
|
6027
6027
|
const { nodeLookup: b, triggerNodeChanges: C, connection: v, updateConnection: E, onNodesChangeMiddlewareMap: N } = p();
|
|
6028
|
-
for (const [k, P] of
|
|
6028
|
+
for (const [k, P] of m) {
|
|
6029
6029
|
const I = b.get(k), L = !!(I?.expandParent && I?.parentId && P?.position), R = {
|
|
6030
6030
|
id: k,
|
|
6031
6031
|
type: "position",
|
|
@@ -6033,7 +6033,7 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
6033
6033
|
x: Math.max(0, P.position.x),
|
|
6034
6034
|
y: Math.max(0, P.position.y)
|
|
6035
6035
|
} : P.position,
|
|
6036
|
-
dragging:
|
|
6036
|
+
dragging: y
|
|
6037
6037
|
};
|
|
6038
6038
|
if (I && v.inProgress && v.fromNode.id === I.id) {
|
|
6039
6039
|
const _ = Xt(I, v.fromHandle, Y.Left, !0);
|
|
@@ -6057,46 +6057,46 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
6057
6057
|
g = k(g);
|
|
6058
6058
|
C(g);
|
|
6059
6059
|
},
|
|
6060
|
-
triggerNodeChanges: (
|
|
6061
|
-
const { onNodesChange:
|
|
6062
|
-
if (
|
|
6060
|
+
triggerNodeChanges: (m) => {
|
|
6061
|
+
const { onNodesChange: y, setNodes: S, nodes: g, hasDefaultNodes: b, debug: C } = p();
|
|
6062
|
+
if (m?.length) {
|
|
6063
6063
|
if (b) {
|
|
6064
|
-
const v = Jc(
|
|
6064
|
+
const v = Jc(m, g);
|
|
6065
6065
|
S(v);
|
|
6066
6066
|
}
|
|
6067
|
-
C && console.log("React Flow: trigger node changes",
|
|
6067
|
+
C && console.log("React Flow: trigger node changes", m), y?.(m);
|
|
6068
6068
|
}
|
|
6069
6069
|
},
|
|
6070
|
-
triggerEdgeChanges: (
|
|
6071
|
-
const { onEdgesChange:
|
|
6072
|
-
if (
|
|
6070
|
+
triggerEdgeChanges: (m) => {
|
|
6071
|
+
const { onEdgesChange: y, setEdges: S, edges: g, hasDefaultEdges: b, debug: C } = p();
|
|
6072
|
+
if (m?.length) {
|
|
6073
6073
|
if (b) {
|
|
6074
|
-
const v = eu(
|
|
6074
|
+
const v = eu(m, g);
|
|
6075
6075
|
S(v);
|
|
6076
6076
|
}
|
|
6077
|
-
C && console.log("React Flow: trigger edge changes",
|
|
6077
|
+
C && console.log("React Flow: trigger edge changes", m), y?.(m);
|
|
6078
6078
|
}
|
|
6079
6079
|
},
|
|
6080
|
-
addSelectedNodes: (
|
|
6081
|
-
const { multiSelectionActive:
|
|
6082
|
-
if (
|
|
6083
|
-
const v =
|
|
6080
|
+
addSelectedNodes: (m) => {
|
|
6081
|
+
const { multiSelectionActive: y, edgeLookup: S, nodeLookup: g, triggerNodeChanges: b, triggerEdgeChanges: C } = p();
|
|
6082
|
+
if (y) {
|
|
6083
|
+
const v = m.map((E) => Pt(E, !0));
|
|
6084
6084
|
b(v);
|
|
6085
6085
|
return;
|
|
6086
6086
|
}
|
|
6087
|
-
b(rn(g, /* @__PURE__ */ new Set([...
|
|
6087
|
+
b(rn(g, /* @__PURE__ */ new Set([...m]), !0)), C(rn(S));
|
|
6088
6088
|
},
|
|
6089
|
-
addSelectedEdges: (
|
|
6090
|
-
const { multiSelectionActive:
|
|
6091
|
-
if (
|
|
6092
|
-
const v =
|
|
6089
|
+
addSelectedEdges: (m) => {
|
|
6090
|
+
const { multiSelectionActive: y, edgeLookup: S, nodeLookup: g, triggerNodeChanges: b, triggerEdgeChanges: C } = p();
|
|
6091
|
+
if (y) {
|
|
6092
|
+
const v = m.map((E) => Pt(E, !0));
|
|
6093
6093
|
C(v);
|
|
6094
6094
|
return;
|
|
6095
6095
|
}
|
|
6096
|
-
C(rn(S, /* @__PURE__ */ new Set([...
|
|
6096
|
+
C(rn(S, /* @__PURE__ */ new Set([...m]))), b(rn(g, /* @__PURE__ */ new Set(), !0));
|
|
6097
6097
|
},
|
|
6098
|
-
unselectNodesAndEdges: ({ nodes:
|
|
6099
|
-
const { edges: S, nodes: g, nodeLookup: b, triggerNodeChanges: C, triggerEdgeChanges: v } = p(), E =
|
|
6098
|
+
unselectNodesAndEdges: ({ nodes: m, edges: y } = {}) => {
|
|
6099
|
+
const { edges: S, nodes: g, nodeLookup: b, triggerNodeChanges: C, triggerEdgeChanges: v } = p(), E = m || g, N = y || S, k = [];
|
|
6100
6100
|
for (const I of E) {
|
|
6101
6101
|
if (!I.selected)
|
|
6102
6102
|
continue;
|
|
@@ -6108,46 +6108,46 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
6108
6108
|
I.selected && P.push(Pt(I.id, !1));
|
|
6109
6109
|
C(k), v(P);
|
|
6110
6110
|
},
|
|
6111
|
-
setMinZoom: (
|
|
6112
|
-
const { panZoom:
|
|
6113
|
-
|
|
6111
|
+
setMinZoom: (m) => {
|
|
6112
|
+
const { panZoom: y, maxZoom: S } = p();
|
|
6113
|
+
y?.setScaleExtent([m, S]), d({ minZoom: m });
|
|
6114
6114
|
},
|
|
6115
|
-
setMaxZoom: (
|
|
6116
|
-
const { panZoom:
|
|
6117
|
-
|
|
6115
|
+
setMaxZoom: (m) => {
|
|
6116
|
+
const { panZoom: y, minZoom: S } = p();
|
|
6117
|
+
y?.setScaleExtent([S, m]), d({ maxZoom: m });
|
|
6118
6118
|
},
|
|
6119
|
-
setTranslateExtent: (
|
|
6120
|
-
p().panZoom?.setTranslateExtent(
|
|
6119
|
+
setTranslateExtent: (m) => {
|
|
6120
|
+
p().panZoom?.setTranslateExtent(m), d({ translateExtent: m });
|
|
6121
6121
|
},
|
|
6122
6122
|
resetSelectedElements: () => {
|
|
6123
|
-
const { edges:
|
|
6123
|
+
const { edges: m, nodes: y, triggerNodeChanges: S, triggerEdgeChanges: g, elementsSelectable: b } = p();
|
|
6124
6124
|
if (!b)
|
|
6125
6125
|
return;
|
|
6126
|
-
const C =
|
|
6126
|
+
const C = y.reduce((E, N) => N.selected ? [...E, Pt(N.id, !1)] : E, []), v = m.reduce((E, N) => N.selected ? [...E, Pt(N.id, !1)] : E, []);
|
|
6127
6127
|
S(C), g(v);
|
|
6128
6128
|
},
|
|
6129
|
-
setNodeExtent: (
|
|
6130
|
-
const { nodes:
|
|
6131
|
-
|
|
6129
|
+
setNodeExtent: (m) => {
|
|
6130
|
+
const { nodes: y, nodeLookup: S, parentLookup: g, nodeOrigin: b, elevateNodesOnSelect: C, nodeExtent: v, zIndexMode: E } = p();
|
|
6131
|
+
m[0][0] === v[0][0] && m[0][1] === v[0][1] && m[1][0] === v[1][0] && m[1][1] === v[1][1] || (si(y, S, g, {
|
|
6132
6132
|
nodeOrigin: b,
|
|
6133
|
-
nodeExtent:
|
|
6133
|
+
nodeExtent: m,
|
|
6134
6134
|
elevateNodesOnSelect: C,
|
|
6135
6135
|
checkEquality: !1,
|
|
6136
6136
|
zIndexMode: E
|
|
6137
|
-
}), d({ nodeExtent:
|
|
6137
|
+
}), d({ nodeExtent: m }));
|
|
6138
6138
|
},
|
|
6139
|
-
panBy: (
|
|
6140
|
-
const { transform:
|
|
6141
|
-
return bm({ delta:
|
|
6139
|
+
panBy: (m) => {
|
|
6140
|
+
const { transform: y, width: S, height: g, panZoom: b, translateExtent: C } = p();
|
|
6141
|
+
return bm({ delta: m, panZoom: b, transform: y, translateExtent: C, width: S, height: g });
|
|
6142
6142
|
},
|
|
6143
|
-
setCenter: async (
|
|
6143
|
+
setCenter: async (m, y, S) => {
|
|
6144
6144
|
const { width: g, height: b, maxZoom: C, panZoom: v } = p();
|
|
6145
6145
|
if (!v)
|
|
6146
6146
|
return !1;
|
|
6147
6147
|
const E = typeof S?.zoom < "u" ? S.zoom : C;
|
|
6148
6148
|
return await v.setViewport({
|
|
6149
|
-
x: g / 2 -
|
|
6150
|
-
y: b / 2 -
|
|
6149
|
+
x: g / 2 - m * E,
|
|
6150
|
+
y: b / 2 - y * E,
|
|
6151
6151
|
zoom: E
|
|
6152
6152
|
}, { duration: S?.duration, ease: S?.ease, interpolate: S?.interpolate }), !0;
|
|
6153
6153
|
},
|
|
@@ -6156,8 +6156,8 @@ const $y = xe(Nu), Ry = Ec("React Flow", "https://reactflow.dev/"), Ss = ({ node
|
|
|
6156
6156
|
connection: { ...mc }
|
|
6157
6157
|
});
|
|
6158
6158
|
},
|
|
6159
|
-
updateConnection: (
|
|
6160
|
-
d({ connection:
|
|
6159
|
+
updateConnection: (m) => {
|
|
6160
|
+
d({ connection: m });
|
|
6161
6161
|
},
|
|
6162
6162
|
reset: () => d({ ...Ss() })
|
|
6163
6163
|
};
|
|
@@ -6190,11 +6190,11 @@ const Vy = {
|
|
|
6190
6190
|
position: "relative",
|
|
6191
6191
|
zIndex: 0
|
|
6192
6192
|
};
|
|
6193
|
-
function jy({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: h, onMoveEnd: f, onConnect: d, onConnectStart: p, onConnectEnd: w, onClickConnectStart:
|
|
6193
|
+
function jy({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: h, onMoveEnd: f, onConnect: d, onConnectStart: p, onConnectEnd: w, onClickConnectStart: m, onClickConnectEnd: y, onNodeMouseEnter: S, onNodeMouseMove: g, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: v, onNodeDragStart: E, onNodeDrag: N, onNodeDragStop: k, onNodesDelete: P, onEdgesDelete: I, onDelete: L, onSelectionChange: R, onSelectionDragStart: _, onSelectionDrag: M, onSelectionDragStop: A, onSelectionContextMenu: T, onSelectionStart: $, onSelectionEnd: O, onBeforeDelete: j, connectionMode: B, connectionLineType: V = Nt.Bezier, connectionLineStyle: X, connectionLineComponent: U, connectionLineContainerStyle: Z, deleteKeyCode: te = "Backspace", selectionKeyCode: z = "Shift", selectionOnDrag: D = !1, selectionMode: F = Wn.Full, panActivationKeyCode: q = "Space", multiSelectionKeyCode: J = Xn() ? "Meta" : "Control", zoomActivationKeyCode: K = Xn() ? "Meta" : "Control", snapToGrid: Q, snapGrid: ee, onlyRenderVisibleElements: le = !1, selectNodesOnDrag: he, nodesDraggable: de, autoPanOnNodeFocus: Be, nodesConnectable: Me, nodesFocusable: Fe, nodeOrigin: We = qc, edgesFocusable: Dt, edgesReconnectable: ut, elementsSelectable: dt = !0, defaultViewport: Ie = h0, minZoom: Ge = 0.5, maxZoom: Ue = 2, translateExtent: ft = Fn, preventScrolling: _n = !0, nodeExtent: Zt, defaultMarkerColor: go = "#b1b1b7", zoomOnScroll: lr = !0, zoomOnPinch: cr = !0, panOnScroll: Sn = !1, panOnScrollSpeed: mo = 0.5, panOnScrollMode: yo = Vt.Free, zoomOnDoubleClick: W = !0, panOnDrag: G = !0, onPaneClick: oe, onPaneMouseEnter: fe, onPaneMouseMove: we, onPaneMouseLeave: be, onPaneScroll: ke, onPaneContextMenu: _e, paneClickDistance: me = 1, nodeClickDistance: Xe = 0, children: Pe, onReconnect: bo, onReconnectStart: wo, onReconnectEnd: Ke, onEdgeContextMenu: tt, onEdgeDoubleClick: qt, onEdgeMouseEnter: ur, onEdgeMouseMove: xo, onEdgeMouseLeave: vo, reconnectRadius: ht = 10, onNodesChange: St, onEdgesChange: Id, noDragClassName: Pd = "nodrag", noWheelClassName: Od = "nowheel", noPanClassName: aa = "nopan", fitView: sa, fitViewOptions: la, connectOnClick: $d, attributionPosition: Rd, proOptions: Ld, defaultEdgeOptions: Hd, elevateNodesOnSelect: Vd = !0, elevateEdgesOnSelect: jd = !1, disableKeyboardA11y: ca = !1, autoPanOnConnect: Bd, autoPanOnNodeDrag: Fd, autoPanOnSelection: Wd = !0, autoPanSpeed: Gd, connectionRadius: Ud, isValidConnection: Xd, onError: Kd, style: Yd, id: ua, nodeDragThreshold: Zd, connectionDragThreshold: qd, viewport: Qd, onViewportChange: Jd, width: ef, height: tf, colorMode: nf = "light", debug: rf, onScroll: da, ariaLabelConfig: of, zIndexMode: fa = "basic", ...af }, sf) {
|
|
6194
6194
|
const _o = ua || "1", lf = y0(nf), cf = ae((ha) => {
|
|
6195
6195
|
ha.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), da?.(ha);
|
|
6196
6196
|
}, [da]);
|
|
6197
|
-
return x("div", { "data-testid": "rf__wrapper", ...af, onScroll: cf, style: { ...Yd, ...Vy }, ref: sf, className: ve(["react-flow", o, lf]), id: ua, role: "application", children:
|
|
6197
|
+
return x("div", { "data-testid": "rf__wrapper", ...af, onScroll: cf, style: { ...Yd, ...Vy }, ref: sf, className: ve(["react-flow", o, lf]), id: ua, role: "application", children: H(Hy, { nodes: e, edges: t, width: ef, height: tf, fitView: sa, fitViewOptions: la, minZoom: Ge, maxZoom: Ue, nodeOrigin: We, nodeExtent: Zt, zIndexMode: fa, children: [x(m0, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: d, onConnectStart: p, onConnectEnd: w, onClickConnectStart: m, onClickConnectEnd: y, nodesDraggable: de, autoPanOnNodeFocus: Be, nodesConnectable: Me, nodesFocusable: Fe, edgesFocusable: Dt, edgesReconnectable: ut, elementsSelectable: dt, elevateNodesOnSelect: Vd, elevateEdgesOnSelect: jd, minZoom: Ge, maxZoom: Ue, nodeExtent: Zt, onNodesChange: St, onEdgesChange: Id, snapToGrid: Q, snapGrid: ee, connectionMode: B, translateExtent: ft, connectOnClick: $d, defaultEdgeOptions: Hd, fitView: sa, fitViewOptions: la, onNodesDelete: P, onEdgesDelete: I, onDelete: L, onNodeDragStart: E, onNodeDrag: N, onNodeDragStop: k, onSelectionDrag: M, onSelectionDragStart: _, onSelectionDragStop: A, onMove: u, onMoveStart: h, onMoveEnd: f, noPanClassName: aa, nodeOrigin: We, rfId: _o, autoPanOnConnect: Bd, autoPanOnNodeDrag: Fd, autoPanSpeed: Gd, onError: Kd, connectionRadius: Ud, isValidConnection: Xd, selectNodesOnDrag: he, nodeDragThreshold: Zd, connectionDragThreshold: qd, onBeforeDelete: j, debug: rf, ariaLabelConfig: of, zIndexMode: fa }), x($y, { onInit: l, onNodeClick: s, onEdgeClick: c, onNodeMouseEnter: S, onNodeMouseMove: g, onNodeMouseLeave: b, onNodeContextMenu: C, onNodeDoubleClick: v, nodeTypes: i, edgeTypes: a, connectionLineType: V, connectionLineStyle: X, connectionLineComponent: U, connectionLineContainerStyle: Z, selectionKeyCode: z, selectionOnDrag: D, selectionMode: F, deleteKeyCode: te, multiSelectionKeyCode: J, panActivationKeyCode: q, zoomActivationKeyCode: K, onlyRenderVisibleElements: le, defaultViewport: Ie, translateExtent: ft, minZoom: Ge, maxZoom: Ue, preventScrolling: _n, zoomOnScroll: lr, zoomOnPinch: cr, zoomOnDoubleClick: W, panOnScroll: Sn, panOnScrollSpeed: mo, panOnScrollMode: yo, panOnDrag: G, autoPanOnSelection: Wd, onPaneClick: oe, onPaneMouseEnter: fe, onPaneMouseMove: we, onPaneMouseLeave: be, onPaneScroll: ke, onPaneContextMenu: _e, paneClickDistance: me, nodeClickDistance: Xe, onSelectionContextMenu: T, onSelectionStart: $, onSelectionEnd: O, onReconnect: bo, onReconnectStart: wo, onReconnectEnd: Ke, onEdgeContextMenu: tt, onEdgeDoubleClick: qt, onEdgeMouseEnter: ur, onEdgeMouseMove: xo, onEdgeMouseLeave: vo, reconnectRadius: ht, defaultMarkerColor: go, noDragClassName: Pd, noWheelClassName: Od, noPanClassName: aa, rfId: _o, disableKeyboardA11y: ca, nodeExtent: Zt, viewport: Qd, onViewportChange: Jd, nodesDraggable: de }), x(f0, { onSelectionChange: R }), Pe, x(s0, { proOptions: Ld, position: Rd }), x(a0, { rfId: _o, disableKeyboardA11y: ca })] }) });
|
|
6198
6198
|
}
|
|
6199
6199
|
var By = nu(jy);
|
|
6200
6200
|
const Fy = (e) => e.nodes;
|
|
@@ -6235,11 +6235,11 @@ function zu({
|
|
|
6235
6235
|
className: l,
|
|
6236
6236
|
patternClassName: u
|
|
6237
6237
|
}) {
|
|
6238
|
-
const h = ne(null), { transform: f, patternId: d } = se(Ky, pe), p = r || Xy[t], w = t === Mt.Dots,
|
|
6238
|
+
const h = ne(null), { transform: f, patternId: d } = se(Ky, pe), p = r || Xy[t], w = t === Mt.Dots, m = t === Mt.Cross, y = Array.isArray(n) ? n : [n, n], S = [y[0] * f[2] || 1, y[1] * f[2] || 1], g = p * f[2], b = Array.isArray(i) ? i : [i, i], C = m ? [g, g] : S, v = [
|
|
6239
6239
|
b[0] * f[2] || 1 + C[0] / 2,
|
|
6240
6240
|
b[1] * f[2] || 1 + C[1] / 2
|
|
6241
6241
|
], E = `${d}${e || ""}`;
|
|
6242
|
-
return
|
|
6242
|
+
return H("svg", { className: ve(["react-flow__background", l]), style: {
|
|
6243
6243
|
...c,
|
|
6244
6244
|
...co,
|
|
6245
6245
|
"--xy-background-color-props": s,
|
|
@@ -6273,7 +6273,7 @@ const tb = (e) => ({
|
|
|
6273
6273
|
ariaLabelConfig: e.ariaLabelConfig
|
|
6274
6274
|
});
|
|
6275
6275
|
function Du({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: r = !0, fitViewOptions: o, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: c, className: l, children: u, position: h = "bottom-left", orientation: f = "vertical", "aria-label": d }) {
|
|
6276
|
-
const p = ge(), { isInteractive: w, minZoomReached:
|
|
6276
|
+
const p = ge(), { isInteractive: w, minZoomReached: m, maxZoomReached: y, ariaLabelConfig: S } = se(tb, pe), { zoomIn: g, zoomOut: b, fitView: C } = _t(), v = () => {
|
|
6277
6277
|
g(), i?.();
|
|
6278
6278
|
}, E = () => {
|
|
6279
6279
|
b(), a?.();
|
|
@@ -6286,17 +6286,17 @@ function Du({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive:
|
|
|
6286
6286
|
elementsSelectable: !w
|
|
6287
6287
|
}), c?.(!w);
|
|
6288
6288
|
};
|
|
6289
|
-
return
|
|
6289
|
+
return H(jt, { className: ve(["react-flow__controls", f === "horizontal" ? "horizontal" : "vertical", l]), position: h, style: e, "data-testid": "rf__controls", "aria-label": d ?? S["controls.ariaLabel"], children: [t && H(Se, { children: [x(vr, { onClick: v, className: "react-flow__controls-zoomin", title: S["controls.zoomIn.ariaLabel"], "aria-label": S["controls.zoomIn.ariaLabel"], disabled: y, children: x(Zy, {}) }), x(vr, { onClick: E, className: "react-flow__controls-zoomout", title: S["controls.zoomOut.ariaLabel"], "aria-label": S["controls.zoomOut.ariaLabel"], disabled: m, children: x(qy, {}) })] }), n && x(vr, { className: "react-flow__controls-fitview", onClick: N, title: S["controls.fitView.ariaLabel"], "aria-label": S["controls.fitView.ariaLabel"], children: x(Qy, {}) }), r && x(vr, { className: "react-flow__controls-interactive", onClick: k, title: S["controls.interactive.ariaLabel"], "aria-label": S["controls.interactive.ariaLabel"], children: w ? x(eb, {}) : x(Jy, {}) }), u] });
|
|
6290
6290
|
}
|
|
6291
6291
|
Du.displayName = "Controls";
|
|
6292
6292
|
const nb = xe(Du);
|
|
6293
6293
|
function rb({ id: e, x: t, y: n, width: r, height: o, style: i, color: a, strokeColor: s, strokeWidth: c, className: l, borderRadius: u, shapeRendering: h, selected: f, onClick: d }) {
|
|
6294
|
-
const { background: p, backgroundColor: w } = i || {},
|
|
6294
|
+
const { background: p, backgroundColor: w } = i || {}, m = a || p || w;
|
|
6295
6295
|
return x("rect", { className: ve(["react-flow__minimap-node", { selected: f }, l]), x: t, y: n, rx: u, ry: u, width: r, height: o, style: {
|
|
6296
|
-
fill:
|
|
6296
|
+
fill: m,
|
|
6297
6297
|
stroke: s,
|
|
6298
6298
|
strokeWidth: c
|
|
6299
|
-
}, shapeRendering: h, onClick: d ? (
|
|
6299
|
+
}, shapeRendering: h, onClick: d ? (y) => d(y, e) : void 0 });
|
|
6300
6300
|
}
|
|
6301
6301
|
const ob = xe(rb), ib = (e) => e.nodes.map((t) => t.id), Oo = (e) => e instanceof Function ? e : () => e;
|
|
6302
6302
|
function ab({
|
|
@@ -6329,10 +6329,10 @@ function sb({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc
|
|
|
6329
6329
|
const w = p.nodeLookup.get(e);
|
|
6330
6330
|
if (!w)
|
|
6331
6331
|
return { node: void 0, x: 0, y: 0, width: 0, height: 0 };
|
|
6332
|
-
const
|
|
6332
|
+
const m = w.internals.userNode, { x: y, y: S } = w.internals.positionAbsolute, { width: g, height: b } = ct(m);
|
|
6333
6333
|
return {
|
|
6334
|
-
node:
|
|
6335
|
-
x:
|
|
6334
|
+
node: m,
|
|
6335
|
+
x: y,
|
|
6336
6336
|
y: S,
|
|
6337
6337
|
width: g,
|
|
6338
6338
|
height: b
|
|
@@ -6381,13 +6381,13 @@ function Iu({
|
|
|
6381
6381
|
onClick: d,
|
|
6382
6382
|
onNodeClick: p,
|
|
6383
6383
|
pannable: w = !1,
|
|
6384
|
-
zoomable:
|
|
6385
|
-
ariaLabel:
|
|
6384
|
+
zoomable: m = !1,
|
|
6385
|
+
ariaLabel: y,
|
|
6386
6386
|
inversePan: S,
|
|
6387
6387
|
zoomStep: g = 1,
|
|
6388
6388
|
offsetScale: b = 5
|
|
6389
6389
|
}) {
|
|
6390
|
-
const C = ge(), v = ne(null), { boundingRect: E, viewBB: N, rfId: k, panZoom: P, translateExtent: I, flowWidth: L, flowHeight: R, ariaLabelConfig: _ } = se(hb, pb), M = e?.width ?? ub, A = e?.height ?? db, T = E.width / M, $ = E.height / A, O = Math.max(T, $), j = O * M, B = O * A,
|
|
6390
|
+
const C = ge(), v = ne(null), { boundingRect: E, viewBB: N, rfId: k, panZoom: P, translateExtent: I, flowWidth: L, flowHeight: R, ariaLabelConfig: _ } = se(hb, pb), M = e?.width ?? ub, A = e?.height ?? db, T = E.width / M, $ = E.height / A, O = Math.max(T, $), j = O * M, B = O * A, V = b * O, X = E.x - (j - E.width) / 2 - V, U = E.y - (B - E.height) / 2 - V, Z = j + V * 2, te = B + V * 2, z = `${gb}-${k}`, D = ne(0), F = ne();
|
|
6391
6391
|
D.current = O, re(() => {
|
|
6392
6392
|
if (v.current && P)
|
|
6393
6393
|
return F.current = Nm({
|
|
@@ -6406,16 +6406,16 @@ function Iu({
|
|
|
6406
6406
|
inversePan: S,
|
|
6407
6407
|
pannable: w,
|
|
6408
6408
|
zoomStep: g,
|
|
6409
|
-
zoomable:
|
|
6409
|
+
zoomable: m
|
|
6410
6410
|
});
|
|
6411
|
-
}, [w,
|
|
6411
|
+
}, [w, m, S, g, I, L, R]);
|
|
6412
6412
|
const q = d ? (Q) => {
|
|
6413
6413
|
const [ee, le] = F.current?.pointer(Q) || [0, 0];
|
|
6414
6414
|
d(Q, { x: ee, y: le });
|
|
6415
6415
|
} : void 0, J = p ? ae((Q, ee) => {
|
|
6416
6416
|
const le = C.getState().nodeLookup.get(ee).internals.userNode;
|
|
6417
6417
|
p(Q, le);
|
|
6418
|
-
}, []) : void 0, K =
|
|
6418
|
+
}, []) : void 0, K = y ?? _["minimap.ariaLabel"];
|
|
6419
6419
|
return x(jt, { position: f, style: {
|
|
6420
6420
|
...e,
|
|
6421
6421
|
"--xy-minimap-background-color-props": typeof c == "string" ? c : void 0,
|
|
@@ -6425,7 +6425,7 @@ function Iu({
|
|
|
6425
6425
|
"--xy-minimap-node-background-color-props": typeof r == "string" ? r : void 0,
|
|
6426
6426
|
"--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
|
|
6427
6427
|
"--xy-minimap-node-stroke-width-props": typeof a == "number" ? a : void 0
|
|
6428
|
-
}, className: ve(["react-flow__minimap", t]), "data-testid": "rf__minimap", children:
|
|
6428
|
+
}, className: ve(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: H("svg", { width: M, height: A, viewBox: `${X} ${U} ${Z} ${te}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": z, ref: v, onClick: q, children: [K && x("title", { id: z, children: K }), x(cb, { onClick: J, nodeColor: r, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: o, nodeStrokeWidth: a, nodeComponent: s }), x("path", { className: "react-flow__minimap-mask", d: `M${X - V},${U - V}h${Z + V * 2}v${te + V * 2}h${-Z - V * 2}z
|
|
6429
6429
|
M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
|
|
6430
6430
|
}
|
|
6431
6431
|
Iu.displayName = "MiniMap";
|
|
@@ -6434,7 +6434,7 @@ const mb = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, yb =
|
|
|
6434
6434
|
[hn.Line]: "right",
|
|
6435
6435
|
[hn.Handle]: "bottom-right"
|
|
6436
6436
|
};
|
|
6437
|
-
function bb({ nodeId: e, position: t, variant: n = hn.Handle, className: r, style: o = void 0, children: i, color: a, minWidth: s = 10, minHeight: c = 10, maxWidth: l = Number.MAX_VALUE, maxHeight: u = Number.MAX_VALUE, keepAspectRatio: h = !1, resizeDirection: f, autoScale: d = !0, shouldResize: p, onResizeStart: w, onResize:
|
|
6437
|
+
function bb({ nodeId: e, position: t, variant: n = hn.Handle, className: r, style: o = void 0, children: i, color: a, minWidth: s = 10, minHeight: c = 10, maxWidth: l = Number.MAX_VALUE, maxHeight: u = Number.MAX_VALUE, keepAspectRatio: h = !1, resizeDirection: f, autoScale: d = !0, shouldResize: p, onResizeStart: w, onResize: m, onResizeEnd: y }) {
|
|
6438
6438
|
const S = su(), g = typeof e == "string" ? e : S, b = ge(), C = ne(null), v = n === hn.Handle, E = se(ae(mb(v && d), [v, d]), pe), N = ne(null), k = t ?? yb[n];
|
|
6439
6439
|
re(() => {
|
|
6440
6440
|
if (!(!C.current || !g))
|
|
@@ -6455,19 +6455,19 @@ function bb({ nodeId: e, position: t, variant: n = hn.Handle, className: r, styl
|
|
|
6455
6455
|
onChange: (I, L) => {
|
|
6456
6456
|
const { triggerNodeChanges: R, nodeLookup: _, parentLookup: M, nodeOrigin: A } = b.getState(), T = [], $ = { x: I.x, y: I.y }, O = _.get(g);
|
|
6457
6457
|
if (O && O.expandParent && O.parentId) {
|
|
6458
|
-
const j = O.origin ?? A, B = I.width ?? O.measured.width ?? 0,
|
|
6458
|
+
const j = O.origin ?? A, B = I.width ?? O.measured.width ?? 0, V = I.height ?? O.measured.height ?? 0, X = {
|
|
6459
6459
|
id: O.id,
|
|
6460
6460
|
parentId: O.parentId,
|
|
6461
6461
|
rect: {
|
|
6462
6462
|
width: B,
|
|
6463
|
-
height:
|
|
6463
|
+
height: V,
|
|
6464
6464
|
...kc({
|
|
6465
6465
|
x: I.x ?? O.position.x,
|
|
6466
6466
|
y: I.y ?? O.position.y
|
|
6467
|
-
}, { width: B, height:
|
|
6467
|
+
}, { width: B, height: V }, O.parentId, _, j)
|
|
6468
6468
|
}
|
|
6469
6469
|
}, U = Wi([X], _, M, A);
|
|
6470
|
-
T.push(...U), $.x = I.x ? Math.max(j[0] * B, I.x) : void 0, $.y = I.y ? Math.max(j[1] *
|
|
6470
|
+
T.push(...U), $.x = I.x ? Math.max(j[0] * B, I.x) : void 0, $.y = I.y ? Math.max(j[1] * V, I.y) : void 0;
|
|
6471
6471
|
}
|
|
6472
6472
|
if ($.x !== void 0 && $.y !== void 0) {
|
|
6473
6473
|
const j = {
|
|
@@ -6522,8 +6522,8 @@ function bb({ nodeId: e, position: t, variant: n = hn.Handle, className: r, styl
|
|
|
6522
6522
|
keepAspectRatio: h,
|
|
6523
6523
|
resizeDirection: f,
|
|
6524
6524
|
onResizeStart: w,
|
|
6525
|
-
onResize:
|
|
6526
|
-
onResizeEnd:
|
|
6525
|
+
onResize: m,
|
|
6526
|
+
onResizeEnd: y,
|
|
6527
6527
|
shouldResize: p
|
|
6528
6528
|
}), () => {
|
|
6529
6529
|
N.current?.destroy();
|
|
@@ -6536,8 +6536,8 @@ function bb({ nodeId: e, position: t, variant: n = hn.Handle, className: r, styl
|
|
|
6536
6536
|
u,
|
|
6537
6537
|
h,
|
|
6538
6538
|
w,
|
|
6539
|
-
y,
|
|
6540
6539
|
m,
|
|
6540
|
+
y,
|
|
6541
6541
|
p
|
|
6542
6542
|
]);
|
|
6543
6543
|
const P = k.split("-");
|
|
@@ -6636,18 +6636,18 @@ function Ru(e, t, n) {
|
|
|
6636
6636
|
function d() {
|
|
6637
6637
|
u && clearTimeout(u);
|
|
6638
6638
|
}
|
|
6639
|
-
function p(
|
|
6640
|
-
var
|
|
6639
|
+
function p(m) {
|
|
6640
|
+
var y = m || {}, S = y.upcomingOnly, g = S === void 0 ? !1 : S;
|
|
6641
6641
|
d(), h = !g;
|
|
6642
6642
|
}
|
|
6643
6643
|
function w() {
|
|
6644
|
-
for (var
|
|
6645
|
-
|
|
6644
|
+
for (var m = arguments.length, y = new Array(m), S = 0; S < m; S++)
|
|
6645
|
+
y[S] = arguments[S];
|
|
6646
6646
|
var g = this, b = Date.now() - f;
|
|
6647
6647
|
if (h)
|
|
6648
6648
|
return;
|
|
6649
6649
|
function C() {
|
|
6650
|
-
f = Date.now(), t.apply(g,
|
|
6650
|
+
f = Date.now(), t.apply(g, y);
|
|
6651
6651
|
}
|
|
6652
6652
|
function v() {
|
|
6653
6653
|
u = void 0;
|
|
@@ -6768,11 +6768,11 @@ const ui = (e) => (t) => {
|
|
|
6768
6768
|
}, Cb = (e, t) => (n, r, o) => {
|
|
6769
6769
|
let i = {
|
|
6770
6770
|
storage: Lu(() => window.localStorage),
|
|
6771
|
-
partialize: (
|
|
6771
|
+
partialize: (m) => m,
|
|
6772
6772
|
version: 0,
|
|
6773
|
-
merge: (
|
|
6774
|
-
...
|
|
6775
|
-
...
|
|
6773
|
+
merge: (m, y) => ({
|
|
6774
|
+
...y,
|
|
6775
|
+
...m
|
|
6776
6776
|
}),
|
|
6777
6777
|
...t
|
|
6778
6778
|
}, a = !1, s = 0;
|
|
@@ -6780,38 +6780,38 @@ const ui = (e) => (t) => {
|
|
|
6780
6780
|
let u = i.storage;
|
|
6781
6781
|
if (!u)
|
|
6782
6782
|
return e(
|
|
6783
|
-
(...
|
|
6783
|
+
(...m) => {
|
|
6784
6784
|
console.warn(
|
|
6785
6785
|
`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`
|
|
6786
|
-
), n(...
|
|
6786
|
+
), n(...m);
|
|
6787
6787
|
},
|
|
6788
6788
|
r,
|
|
6789
6789
|
o
|
|
6790
6790
|
);
|
|
6791
6791
|
const h = () => {
|
|
6792
|
-
const
|
|
6792
|
+
const m = i.partialize({ ...r() });
|
|
6793
6793
|
return u.setItem(i.name, {
|
|
6794
|
-
state:
|
|
6794
|
+
state: m,
|
|
6795
6795
|
version: i.version
|
|
6796
6796
|
});
|
|
6797
6797
|
}, f = o.setState;
|
|
6798
|
-
o.setState = (
|
|
6798
|
+
o.setState = (m, y) => (f(m, y), h());
|
|
6799
6799
|
const d = e(
|
|
6800
|
-
(...
|
|
6800
|
+
(...m) => (n(...m), h()),
|
|
6801
6801
|
r,
|
|
6802
6802
|
o
|
|
6803
6803
|
);
|
|
6804
6804
|
o.getInitialState = () => d;
|
|
6805
6805
|
let p;
|
|
6806
6806
|
const w = () => {
|
|
6807
|
-
var
|
|
6807
|
+
var m, y;
|
|
6808
6808
|
if (!u) return;
|
|
6809
6809
|
const S = ++s;
|
|
6810
6810
|
a = !1, c.forEach((b) => {
|
|
6811
6811
|
var C;
|
|
6812
6812
|
return b((C = r()) != null ? C : d);
|
|
6813
6813
|
});
|
|
6814
|
-
const g = ((
|
|
6814
|
+
const g = ((y = i.onRehydrateStorage) == null ? void 0 : y.call(i, (m = r()) != null ? m : d)) || void 0;
|
|
6815
6815
|
return ui(u.getItem.bind(u))(i.name).then((b) => {
|
|
6816
6816
|
if (b)
|
|
6817
6817
|
if (typeof b.version == "number" && b.version !== i.version) {
|
|
@@ -6845,11 +6845,11 @@ const ui = (e) => (t) => {
|
|
|
6845
6845
|
});
|
|
6846
6846
|
};
|
|
6847
6847
|
return o.persist = {
|
|
6848
|
-
setOptions: (
|
|
6848
|
+
setOptions: (m) => {
|
|
6849
6849
|
i = {
|
|
6850
6850
|
...i,
|
|
6851
|
-
...
|
|
6852
|
-
},
|
|
6851
|
+
...m
|
|
6852
|
+
}, m.storage && (u = m.storage);
|
|
6853
6853
|
},
|
|
6854
6854
|
clearStorage: () => {
|
|
6855
6855
|
u?.removeItem(i.name);
|
|
@@ -6857,11 +6857,11 @@ const ui = (e) => (t) => {
|
|
|
6857
6857
|
getOptions: () => i,
|
|
6858
6858
|
rehydrate: () => w(),
|
|
6859
6859
|
hasHydrated: () => a,
|
|
6860
|
-
onHydrate: (
|
|
6861
|
-
c.delete(
|
|
6860
|
+
onHydrate: (m) => (c.add(m), () => {
|
|
6861
|
+
c.delete(m);
|
|
6862
6862
|
}),
|
|
6863
|
-
onFinishHydration: (
|
|
6864
|
-
l.delete(
|
|
6863
|
+
onFinishHydration: (m) => (l.add(m), () => {
|
|
6864
|
+
l.delete(m);
|
|
6865
6865
|
})
|
|
6866
6866
|
}, i.skipHydration || w(), p || d;
|
|
6867
6867
|
}, kb = Cb, sr = [
|
|
@@ -7855,15 +7855,15 @@ var Lo = class {
|
|
|
7855
7855
|
return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = ue - 1, r.match_available = 0, e.next_in = a, e.input = s, e.avail_in = i, r.wrap = o, 0;
|
|
7856
7856
|
}, Sr = 16209, Ew = 16191;
|
|
7857
7857
|
function Cw(e, t) {
|
|
7858
|
-
let n, r, o, i, a, s, c, l, u, h, f, d, p, w,
|
|
7858
|
+
let n, r, o, i, a, s, c, l, u, h, f, d, p, w, m, y, S, g, b, C, v, E, N, k;
|
|
7859
7859
|
const P = e.state;
|
|
7860
|
-
n = e.next_in, N = e.input, r = n + (e.avail_in - 5), o = e.next_out, k = e.output, i = o - (t - e.avail_out), a = o + (e.avail_out - 257), s = P.dmax, c = P.wsize, l = P.whave, u = P.wnext, h = P.window, f = P.hold, d = P.bits, p = P.lencode, w = P.distcode,
|
|
7860
|
+
n = e.next_in, N = e.input, r = n + (e.avail_in - 5), o = e.next_out, k = e.output, i = o - (t - e.avail_out), a = o + (e.avail_out - 257), s = P.dmax, c = P.wsize, l = P.whave, u = P.wnext, h = P.window, f = P.hold, d = P.bits, p = P.lencode, w = P.distcode, m = (1 << P.lenbits) - 1, y = (1 << P.distbits) - 1;
|
|
7861
7861
|
e: do {
|
|
7862
|
-
d < 15 && (f += N[n++] << d, d += 8, f += N[n++] << d, d += 8), S = p[f &
|
|
7862
|
+
d < 15 && (f += N[n++] << d, d += 8, f += N[n++] << d, d += 8), S = p[f & m];
|
|
7863
7863
|
t: for (; ; ) {
|
|
7864
7864
|
if (g = S >>> 24, f >>>= g, d -= g, g = S >>> 16 & 255, g === 0) k[o++] = S & 65535;
|
|
7865
7865
|
else if (g & 16) {
|
|
7866
|
-
b = S & 65535, g &= 15, g && (d < g && (f += N[n++] << d, d += 8), b += f & (1 << g) - 1, f >>>= g, d -= g), d < 15 && (f += N[n++] << d, d += 8, f += N[n++] << d, d += 8), S = w[f &
|
|
7866
|
+
b = S & 65535, g &= 15, g && (d < g && (f += N[n++] << d, d += 8), b += f & (1 << g) - 1, f >>>= g, d -= g), d < 15 && (f += N[n++] << d, d += 8, f += N[n++] << d, d += 8), S = w[f & y];
|
|
7867
7867
|
n: for (; ; ) {
|
|
7868
7868
|
if (g = S >>> 24, f >>>= g, d -= g, g = S >>> 16 & 255, g & 16) {
|
|
7869
7869
|
if (C = S & 65535, g &= 15, d < g && (f += N[n++] << d, d += 8, d < g && (f += N[n++] << d, d += 8)), C += f & (1 << g) - 1, C > s) {
|
|
@@ -8070,7 +8070,7 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8070
8070
|
64
|
|
8071
8071
|
]), Ln = (e, t, n, r, o, i, a, s) => {
|
|
8072
8072
|
const c = s.bits;
|
|
8073
|
-
let l = 0, u = 0, h = 0, f = 0, d = 0, p = 0, w = 0,
|
|
8073
|
+
let l = 0, u = 0, h = 0, f = 0, d = 0, p = 0, w = 0, m = 0, y = 0, S = 0, g, b, C, v, E, N = null, k;
|
|
8074
8074
|
const P = /* @__PURE__ */ new Uint16Array(16), I = /* @__PURE__ */ new Uint16Array(16);
|
|
8075
8075
|
let L = null, R, _, M;
|
|
8076
8076
|
for (l = 0; l <= Er; l++) P[l] = 0;
|
|
@@ -8079,12 +8079,12 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8079
8079
|
if (d > f && (d = f), f === 0)
|
|
8080
8080
|
return o[i++] = 20971520, o[i++] = 20971520, s.bits = 1, 0;
|
|
8081
8081
|
for (h = 1; h < f && P[h] === 0; h++) ;
|
|
8082
|
-
for (d < h && (d = h),
|
|
8083
|
-
if (
|
|
8084
|
-
if (
|
|
8082
|
+
for (d < h && (d = h), m = 1, l = 1; l <= Er; l++)
|
|
8083
|
+
if (m <<= 1, m -= P[l], m < 0) return -1;
|
|
8084
|
+
if (m > 0 && (e === Fs || f !== 1)) return -1;
|
|
8085
8085
|
for (I[1] = 0, l = 1; l < Er; l++) I[l + 1] = I[l] + P[l];
|
|
8086
8086
|
for (u = 0; u < r; u++) t[n + u] !== 0 && (a[I[t[n + u]]++] = u);
|
|
8087
|
-
if (e === Fs ? (N = L = a, k = 20) : e === Bo ? (N = kw, L = Nw, k = 257) : (N = Aw, L = Mw, k = 0), S = 0, u = 0, l = h, E = i, p = d, w = 0, C = -1,
|
|
8087
|
+
if (e === Fs ? (N = L = a, k = 20) : e === Bo ? (N = kw, L = Nw, k = 257) : (N = Aw, L = Mw, k = 0), S = 0, u = 0, l = h, E = i, p = d, w = 0, C = -1, y = 1 << d, v = y - 1, e === Bo && y > js || e === Ws && y > Bs) return 1;
|
|
8088
8088
|
for (; ; ) {
|
|
8089
8089
|
R = l - w, a[u] + 1 < k ? (_ = 0, M = a[u]) : a[u] >= k ? (_ = L[a[u] - k], M = N[a[u] - k]) : (_ = 96, M = 0), g = 1 << l - w, b = 1 << p, h = b;
|
|
8090
8090
|
do
|
|
@@ -8096,9 +8096,9 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8096
8096
|
l = t[n + a[u]];
|
|
8097
8097
|
}
|
|
8098
8098
|
if (l > d && (S & v) !== C) {
|
|
8099
|
-
for (w === 0 && (w = d), E += h, p = l - w,
|
|
8100
|
-
p++,
|
|
8101
|
-
if (
|
|
8099
|
+
for (w === 0 && (w = d), E += h, p = l - w, m = 1 << p; p + w < f && (m -= P[p + w], !(m <= 0)); )
|
|
8100
|
+
p++, m <<= 1;
|
|
8101
|
+
if (y += 1 << p, e === Bo && y > js || e === Ws && y > Bs) return 1;
|
|
8102
8102
|
C = S & v, o[C] = d << 24 | p << 16 | E - i | 0;
|
|
8103
8103
|
}
|
|
8104
8104
|
}
|
|
@@ -8147,7 +8147,7 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8147
8147
|
const i = e.state;
|
|
8148
8148
|
return i.window === null && (i.window = new Uint8Array(1 << i.wbits)), i.wsize === 0 && (i.wsize = 1 << i.wbits, i.wnext = 0, i.whave = 0), r >= i.wsize ? (i.window.set(t.subarray(n - i.wsize, n), 0), i.wnext = 0, i.whave = i.wsize) : (o = i.wsize - i.wnext, o > r && (o = r), i.window.set(t.subarray(n - r, n - r + o), i.wnext), r -= o, r ? (i.window.set(t.subarray(n - r, n), 0), i.wnext = r, i.whave = i.wsize) : (i.wnext += o, i.wnext === i.wsize && (i.wnext = 0), i.whave < i.wsize && (i.whave += o))), 0;
|
|
8149
8149
|
}, Ko = (e, t) => {
|
|
8150
|
-
let n, r, o, i, a, s, c, l, u, h, f, d, p, w,
|
|
8150
|
+
let n, r, o, i, a, s, c, l, u, h, f, d, p, w, m = 0, y, S, g, b, C, v, E, N;
|
|
8151
8151
|
const k = /* @__PURE__ */ new Uint8Array(4);
|
|
8152
8152
|
let P, I;
|
|
8153
8153
|
const L = new Uint8Array([
|
|
@@ -8359,35 +8359,35 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8359
8359
|
n.have = 0, n.mode = ol;
|
|
8360
8360
|
case ol:
|
|
8361
8361
|
for (; n.have < n.nlen + n.ndist; ) {
|
|
8362
|
-
for (;
|
|
8362
|
+
for (; m = n.lencode[l & (1 << n.lenbits) - 1], y = m >>> 24, S = m >>> 16 & 255, g = m & 65535, !(y <= u); ) {
|
|
8363
8363
|
if (s === 0) break e;
|
|
8364
8364
|
s--, l += r[i++] << u, u += 8;
|
|
8365
8365
|
}
|
|
8366
8366
|
if (g < 16)
|
|
8367
|
-
l >>>=
|
|
8367
|
+
l >>>= y, u -= y, n.lens[n.have++] = g;
|
|
8368
8368
|
else {
|
|
8369
8369
|
if (g === 16) {
|
|
8370
|
-
for (I =
|
|
8370
|
+
for (I = y + 2; u < I; ) {
|
|
8371
8371
|
if (s === 0) break e;
|
|
8372
8372
|
s--, l += r[i++] << u, u += 8;
|
|
8373
8373
|
}
|
|
8374
|
-
if (l >>>=
|
|
8374
|
+
if (l >>>= y, u -= y, n.have === 0) {
|
|
8375
8375
|
e.msg = "invalid bit length repeat", n.mode = ye;
|
|
8376
8376
|
break;
|
|
8377
8377
|
}
|
|
8378
8378
|
E = n.lens[n.have - 1], d = 3 + (l & 3), l >>>= 2, u -= 2;
|
|
8379
8379
|
} else if (g === 17) {
|
|
8380
|
-
for (I =
|
|
8380
|
+
for (I = y + 3; u < I; ) {
|
|
8381
8381
|
if (s === 0) break e;
|
|
8382
8382
|
s--, l += r[i++] << u, u += 8;
|
|
8383
8383
|
}
|
|
8384
|
-
l >>>=
|
|
8384
|
+
l >>>= y, u -= y, E = 0, d = 3 + (l & 7), l >>>= 3, u -= 3;
|
|
8385
8385
|
} else {
|
|
8386
|
-
for (I =
|
|
8386
|
+
for (I = y + 7; u < I; ) {
|
|
8387
8387
|
if (s === 0) break e;
|
|
8388
8388
|
s--, l += r[i++] << u, u += 8;
|
|
8389
8389
|
}
|
|
8390
|
-
l >>>=
|
|
8390
|
+
l >>>= y, u -= y, E = 0, d = 11 + (l & 127), l >>>= 7, u -= 7;
|
|
8391
8391
|
}
|
|
8392
8392
|
if (n.have + d > n.nlen + n.ndist) {
|
|
8393
8393
|
e.msg = "invalid bit length repeat", n.mode = ye;
|
|
@@ -8417,18 +8417,18 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8417
8417
|
e.next_out = a, e.avail_out = c, e.next_in = i, e.avail_in = s, n.hold = l, n.bits = u, Cw(e, f), a = e.next_out, o = e.output, c = e.avail_out, i = e.next_in, r = e.input, s = e.avail_in, l = n.hold, u = n.bits, n.mode === gt && (n.back = -1);
|
|
8418
8418
|
break;
|
|
8419
8419
|
}
|
|
8420
|
-
for (n.back = 0;
|
|
8420
|
+
for (n.back = 0; m = n.lencode[l & (1 << n.lenbits) - 1], y = m >>> 24, S = m >>> 16 & 255, g = m & 65535, !(y <= u); ) {
|
|
8421
8421
|
if (s === 0) break e;
|
|
8422
8422
|
s--, l += r[i++] << u, u += 8;
|
|
8423
8423
|
}
|
|
8424
8424
|
if (S && (S & 240) === 0) {
|
|
8425
|
-
for (b =
|
|
8425
|
+
for (b = y, C = S, v = g; m = n.lencode[v + ((l & (1 << b + C) - 1) >> b)], y = m >>> 24, S = m >>> 16 & 255, g = m & 65535, !(b + y <= u); ) {
|
|
8426
8426
|
if (s === 0) break e;
|
|
8427
8427
|
s--, l += r[i++] << u, u += 8;
|
|
8428
8428
|
}
|
|
8429
8429
|
l >>>= b, u -= b, n.back += b;
|
|
8430
8430
|
}
|
|
8431
|
-
if (l >>>=
|
|
8431
|
+
if (l >>>= y, u -= y, n.back += y, n.length = g, S === 0) {
|
|
8432
8432
|
n.mode = cl;
|
|
8433
8433
|
break;
|
|
8434
8434
|
}
|
|
@@ -8451,18 +8451,18 @@ var Er = 15, js = 852, Bs = 592, Fs = 0, Bo = 1, Ws = 2, kw = new Uint16Array([
|
|
|
8451
8451
|
}
|
|
8452
8452
|
n.was = n.length, n.mode = al;
|
|
8453
8453
|
case al:
|
|
8454
|
-
for (;
|
|
8454
|
+
for (; m = n.distcode[l & (1 << n.distbits) - 1], y = m >>> 24, S = m >>> 16 & 255, g = m & 65535, !(y <= u); ) {
|
|
8455
8455
|
if (s === 0) break e;
|
|
8456
8456
|
s--, l += r[i++] << u, u += 8;
|
|
8457
8457
|
}
|
|
8458
8458
|
if ((S & 240) === 0) {
|
|
8459
|
-
for (b =
|
|
8459
|
+
for (b = y, C = S, v = g; m = n.distcode[v + ((l & (1 << b + C) - 1) >> b)], y = m >>> 24, S = m >>> 16 & 255, g = m & 65535, !(b + y <= u); ) {
|
|
8460
8460
|
if (s === 0) break e;
|
|
8461
8461
|
s--, l += r[i++] << u, u += 8;
|
|
8462
8462
|
}
|
|
8463
8463
|
l >>>= b, u -= b, n.back += b;
|
|
8464
8464
|
}
|
|
8465
|
-
if (l >>>=
|
|
8465
|
+
if (l >>>= y, u -= y, n.back += y, S & 64) {
|
|
8466
8466
|
e.msg = "invalid distance code", n.mode = ye;
|
|
8467
8467
|
break;
|
|
8468
8468
|
}
|
|
@@ -9526,7 +9526,7 @@ function Si({
|
|
|
9526
9526
|
zIndex: 1e3
|
|
9527
9527
|
},
|
|
9528
9528
|
onClick: i,
|
|
9529
|
-
children: /* @__PURE__ */
|
|
9529
|
+
children: /* @__PURE__ */ H(
|
|
9530
9530
|
"div",
|
|
9531
9531
|
{
|
|
9532
9532
|
style: {
|
|
@@ -9552,10 +9552,10 @@ function Si({
|
|
|
9552
9552
|
children: e
|
|
9553
9553
|
}
|
|
9554
9554
|
),
|
|
9555
|
-
/* @__PURE__ */
|
|
9555
|
+
/* @__PURE__ */ H("form", { onSubmit: (l) => {
|
|
9556
9556
|
l.preventDefault(), a.trim() && o(a.trim());
|
|
9557
9557
|
}, children: [
|
|
9558
|
-
/* @__PURE__ */
|
|
9558
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "16px" }, children: [
|
|
9559
9559
|
/* @__PURE__ */ x(
|
|
9560
9560
|
"label",
|
|
9561
9561
|
{
|
|
@@ -9588,7 +9588,7 @@ function Si({
|
|
|
9588
9588
|
}
|
|
9589
9589
|
)
|
|
9590
9590
|
] }),
|
|
9591
|
-
/* @__PURE__ */
|
|
9591
|
+
/* @__PURE__ */ H(
|
|
9592
9592
|
"div",
|
|
9593
9593
|
{
|
|
9594
9594
|
style: {
|
|
@@ -9864,7 +9864,7 @@ ${r}${r ? `
|
|
|
9864
9864
|
const u = lx(l);
|
|
9865
9865
|
a(u.problems), !(Object.keys(u.klasses).length === 0 && l.trim()) && (s.current = u.klasses, t(u.klasses));
|
|
9866
9866
|
};
|
|
9867
|
-
return /* @__PURE__ */
|
|
9867
|
+
return /* @__PURE__ */ H("div", { children: [
|
|
9868
9868
|
/* @__PURE__ */ x(
|
|
9869
9869
|
"p",
|
|
9870
9870
|
{
|
|
@@ -9940,7 +9940,7 @@ function ux({
|
|
|
9940
9940
|
zIndex: 1e3
|
|
9941
9941
|
},
|
|
9942
9942
|
onClick: i,
|
|
9943
|
-
children: /* @__PURE__ */
|
|
9943
|
+
children: /* @__PURE__ */ H(
|
|
9944
9944
|
"div",
|
|
9945
9945
|
{
|
|
9946
9946
|
role: "dialog",
|
|
@@ -9972,7 +9972,7 @@ function ux({
|
|
|
9972
9972
|
}
|
|
9973
9973
|
),
|
|
9974
9974
|
/* @__PURE__ */ x("div", { style: { fontSize: "14px", color: "var(--jmp-text-muted)", lineHeight: 1.6 }, children: a }),
|
|
9975
|
-
/* @__PURE__ */
|
|
9975
|
+
/* @__PURE__ */ H(
|
|
9976
9976
|
"div",
|
|
9977
9977
|
{
|
|
9978
9978
|
style: {
|
|
@@ -10078,7 +10078,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10078
10078
|
applyKlasses: r,
|
|
10079
10079
|
setRoute: o,
|
|
10080
10080
|
t: i
|
|
10081
|
-
} = Ne(yn(px)), [a, s] = ie(e), [c, l] = ie(t), [u, h] = ie(null), [f, d] = ie(null), [p, w] = ie(""), [
|
|
10081
|
+
} = Ne(yn(px)), [a, s] = ie(e), [c, l] = ie(t), [u, h] = ie(null), [f, d] = ie(null), [p, w] = ie(""), [m, y] = ie("String"), [S, g] = ie(!1), [b, C] = ie(!1), [v, E] = ie(!1), [N, k] = ie("source"), [P, I] = ie(null), L = [
|
|
10082
10082
|
...Ui,
|
|
10083
10083
|
"Array",
|
|
10084
10084
|
...Object.keys(a)
|
|
@@ -10121,7 +10121,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10121
10121
|
return delete F[z], F;
|
|
10122
10122
|
});
|
|
10123
10123
|
}, []), j = ae((z) => {
|
|
10124
|
-
h(z), w(""),
|
|
10124
|
+
h(z), w(""), y("String");
|
|
10125
10125
|
}, []), B = ae(() => {
|
|
10126
10126
|
u && p.trim() && (s((z) => ({
|
|
10127
10127
|
...z,
|
|
@@ -10129,12 +10129,12 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10129
10129
|
...z[u],
|
|
10130
10130
|
attributes: {
|
|
10131
10131
|
...z[u].attributes,
|
|
10132
|
-
[p.trim()]:
|
|
10132
|
+
[p.trim()]: m
|
|
10133
10133
|
}
|
|
10134
10134
|
}
|
|
10135
|
-
})), h(null), w(""),
|
|
10136
|
-
}, [u, p,
|
|
10137
|
-
h(null), w(""),
|
|
10135
|
+
})), h(null), w(""), y("String"));
|
|
10136
|
+
}, [u, p, m]), V = ae(() => {
|
|
10137
|
+
h(null), w(""), y("String");
|
|
10138
10138
|
}, []), X = ae(
|
|
10139
10139
|
(z, D) => {
|
|
10140
10140
|
window.confirm(
|
|
@@ -10150,7 +10150,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10150
10150
|
[]
|
|
10151
10151
|
), U = ae(
|
|
10152
10152
|
(z, D, F) => {
|
|
10153
|
-
d({ klassName: z, attrName: D, currentDataType: F }),
|
|
10153
|
+
d({ klassName: z, attrName: D, currentDataType: F }), y(F);
|
|
10154
10154
|
},
|
|
10155
10155
|
[]
|
|
10156
10156
|
), Z = ae(() => {
|
|
@@ -10160,19 +10160,19 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10160
10160
|
...z[f.klassName],
|
|
10161
10161
|
attributes: {
|
|
10162
10162
|
...z[f.klassName].attributes,
|
|
10163
|
-
[f.attrName]:
|
|
10163
|
+
[f.attrName]: m
|
|
10164
10164
|
}
|
|
10165
10165
|
}
|
|
10166
|
-
})), d(null),
|
|
10167
|
-
}, [f,
|
|
10168
|
-
d(null),
|
|
10166
|
+
})), d(null), y("String"));
|
|
10167
|
+
}, [f, m]), te = ae(() => {
|
|
10168
|
+
d(null), y("String");
|
|
10169
10169
|
}, []);
|
|
10170
|
-
return /* @__PURE__ */
|
|
10170
|
+
return /* @__PURE__ */ H("div", { style: {
|
|
10171
10171
|
padding: "24px",
|
|
10172
10172
|
maxWidth: "1200px",
|
|
10173
10173
|
margin: "0 auto"
|
|
10174
10174
|
}, children: [
|
|
10175
|
-
/* @__PURE__ */
|
|
10175
|
+
/* @__PURE__ */ H("div", { style: {
|
|
10176
10176
|
backgroundColor: "var(--jmp-surface)",
|
|
10177
10177
|
borderRadius: "8px",
|
|
10178
10178
|
padding: "24px",
|
|
@@ -10185,7 +10185,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10185
10185
|
fontSize: "24px",
|
|
10186
10186
|
fontWeight: "600"
|
|
10187
10187
|
}, children: i.configuration }),
|
|
10188
|
-
/* @__PURE__ */
|
|
10188
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", gap: "8px", alignItems: "center" }, children: [
|
|
10189
10189
|
/* @__PURE__ */ x(
|
|
10190
10190
|
"button",
|
|
10191
10191
|
{
|
|
@@ -10228,7 +10228,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10228
10228
|
}, children: "✓ Changes saved successfully" })
|
|
10229
10229
|
] })
|
|
10230
10230
|
] }),
|
|
10231
|
-
/* @__PURE__ */
|
|
10231
|
+
/* @__PURE__ */ H("div", { style: {
|
|
10232
10232
|
backgroundColor: "var(--jmp-surface)",
|
|
10233
10233
|
borderRadius: "8px",
|
|
10234
10234
|
padding: "24px",
|
|
@@ -10241,8 +10241,8 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10241
10241
|
fontSize: "18px",
|
|
10242
10242
|
fontWeight: "600"
|
|
10243
10243
|
}, children: i.options }),
|
|
10244
|
-
/* @__PURE__ */
|
|
10245
|
-
/* @__PURE__ */
|
|
10244
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", gap: "8px", alignItems: "center", marginBottom: "12px" }, children: [
|
|
10245
|
+
/* @__PURE__ */ H("span", { style: { fontSize: "14px", color: "var(--jmp-text-muted)" }, children: [
|
|
10246
10246
|
i.presets,
|
|
10247
10247
|
":"
|
|
10248
10248
|
] }),
|
|
@@ -10252,12 +10252,12 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10252
10252
|
["everything", i.presetEverything]
|
|
10253
10253
|
].map(([z, D]) => /* @__PURE__ */ x("button", { onClick: () => l({ ...ex[z] }), children: D }, z))
|
|
10254
10254
|
] }),
|
|
10255
|
-
/* @__PURE__ */
|
|
10255
|
+
/* @__PURE__ */ H("div", { style: {
|
|
10256
10256
|
display: "grid",
|
|
10257
10257
|
gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))",
|
|
10258
10258
|
gap: "12px"
|
|
10259
10259
|
}, children: [
|
|
10260
|
-
/* @__PURE__ */
|
|
10260
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10261
10261
|
display: "flex",
|
|
10262
10262
|
alignItems: "center",
|
|
10263
10263
|
gap: "8px",
|
|
@@ -10280,7 +10280,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10280
10280
|
),
|
|
10281
10281
|
i.optionLabels.disableGarbageCollector
|
|
10282
10282
|
] }),
|
|
10283
|
-
/* @__PURE__ */
|
|
10283
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10284
10284
|
display: "flex",
|
|
10285
10285
|
alignItems: "center",
|
|
10286
10286
|
gap: "8px",
|
|
@@ -10303,7 +10303,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10303
10303
|
),
|
|
10304
10304
|
i.optionLabels.hideSidebar
|
|
10305
10305
|
] }),
|
|
10306
|
-
/* @__PURE__ */
|
|
10306
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10307
10307
|
display: "flex",
|
|
10308
10308
|
alignItems: "center",
|
|
10309
10309
|
gap: "8px",
|
|
@@ -10326,7 +10326,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10326
10326
|
),
|
|
10327
10327
|
i.optionLabels.hideCallMethod
|
|
10328
10328
|
] }),
|
|
10329
|
-
/* @__PURE__ */
|
|
10329
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10330
10330
|
display: "flex",
|
|
10331
10331
|
alignItems: "center",
|
|
10332
10332
|
gap: "8px",
|
|
@@ -10349,7 +10349,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10349
10349
|
),
|
|
10350
10350
|
i.optionLabels.hideDeclareGlobalVariable
|
|
10351
10351
|
] }),
|
|
10352
|
-
/* @__PURE__ */
|
|
10352
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10353
10353
|
display: "flex",
|
|
10354
10354
|
alignItems: "center",
|
|
10355
10355
|
gap: "8px",
|
|
@@ -10372,7 +10372,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10372
10372
|
),
|
|
10373
10373
|
i.optionLabels.hideNewArray
|
|
10374
10374
|
] }),
|
|
10375
|
-
/* @__PURE__ */
|
|
10375
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10376
10376
|
display: "flex",
|
|
10377
10377
|
alignItems: "center",
|
|
10378
10378
|
gap: "8px",
|
|
@@ -10395,7 +10395,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10395
10395
|
),
|
|
10396
10396
|
i.optionLabels.createNewOnEdgeDrop
|
|
10397
10397
|
] }),
|
|
10398
|
-
/* @__PURE__ */
|
|
10398
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10399
10399
|
display: "flex",
|
|
10400
10400
|
alignItems: "center",
|
|
10401
10401
|
gap: "8px",
|
|
@@ -10418,7 +10418,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10418
10418
|
),
|
|
10419
10419
|
i.optionLabels.inlineStrings
|
|
10420
10420
|
] }),
|
|
10421
|
-
/* @__PURE__ */
|
|
10421
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10422
10422
|
display: "flex",
|
|
10423
10423
|
alignItems: "center",
|
|
10424
10424
|
gap: "8px",
|
|
@@ -10441,7 +10441,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10441
10441
|
),
|
|
10442
10442
|
i.optionLabels.hideStepChanges
|
|
10443
10443
|
] }),
|
|
10444
|
-
/* @__PURE__ */
|
|
10444
|
+
/* @__PURE__ */ H("label", { style: {
|
|
10445
10445
|
display: "flex",
|
|
10446
10446
|
alignItems: "center",
|
|
10447
10447
|
gap: "8px",
|
|
@@ -10466,13 +10466,13 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10466
10466
|
] })
|
|
10467
10467
|
] })
|
|
10468
10468
|
] }),
|
|
10469
|
-
/* @__PURE__ */
|
|
10469
|
+
/* @__PURE__ */ H("div", { style: {
|
|
10470
10470
|
backgroundColor: "var(--jmp-surface)",
|
|
10471
10471
|
borderRadius: "8px",
|
|
10472
10472
|
padding: "24px",
|
|
10473
10473
|
border: "1px solid var(--jmp-border)"
|
|
10474
10474
|
}, children: [
|
|
10475
|
-
/* @__PURE__ */
|
|
10475
|
+
/* @__PURE__ */ H(
|
|
10476
10476
|
"div",
|
|
10477
10477
|
{
|
|
10478
10478
|
style: {
|
|
@@ -10482,7 +10482,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10482
10482
|
marginBottom: "16px"
|
|
10483
10483
|
},
|
|
10484
10484
|
children: [
|
|
10485
|
-
/* @__PURE__ */
|
|
10485
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", alignItems: "center", gap: "16px" }, children: [
|
|
10486
10486
|
/* @__PURE__ */ x("h2", { style: {
|
|
10487
10487
|
margin: "0",
|
|
10488
10488
|
color: "var(--jmp-text)",
|
|
@@ -10537,7 +10537,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10537
10537
|
display: N === "list" ? "flex" : "none",
|
|
10538
10538
|
flexDirection: "column",
|
|
10539
10539
|
gap: "16px"
|
|
10540
|
-
}, children: Object.entries(a).map(([z, D]) => /* @__PURE__ */
|
|
10540
|
+
}, children: Object.entries(a).map(([z, D]) => /* @__PURE__ */ H(
|
|
10541
10541
|
"div",
|
|
10542
10542
|
{
|
|
10543
10543
|
style: {
|
|
@@ -10547,7 +10547,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10547
10547
|
backgroundColor: "var(--jmp-surface-sunken)"
|
|
10548
10548
|
},
|
|
10549
10549
|
children: [
|
|
10550
|
-
/* @__PURE__ */
|
|
10550
|
+
/* @__PURE__ */ H(
|
|
10551
10551
|
"div",
|
|
10552
10552
|
{
|
|
10553
10553
|
style: {
|
|
@@ -10565,7 +10565,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10565
10565
|
fontWeight: "600",
|
|
10566
10566
|
color: "var(--jmp-text)"
|
|
10567
10567
|
}, children: z }),
|
|
10568
|
-
/* @__PURE__ */
|
|
10568
|
+
/* @__PURE__ */ H("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
10569
10569
|
/* @__PURE__ */ x(
|
|
10570
10570
|
"button",
|
|
10571
10571
|
{
|
|
@@ -10611,7 +10611,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10611
10611
|
padding: "16px",
|
|
10612
10612
|
margin: 0,
|
|
10613
10613
|
fontSize: "14px"
|
|
10614
|
-
}, children: "No attributes defined" }) : /* @__PURE__ */
|
|
10614
|
+
}, children: "No attributes defined" }) : /* @__PURE__ */ H(
|
|
10615
10615
|
"table",
|
|
10616
10616
|
{
|
|
10617
10617
|
style: {
|
|
@@ -10623,7 +10623,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10623
10623
|
border: "1px solid var(--jmp-border)"
|
|
10624
10624
|
},
|
|
10625
10625
|
children: [
|
|
10626
|
-
/* @__PURE__ */ x("thead", { children: /* @__PURE__ */
|
|
10626
|
+
/* @__PURE__ */ x("thead", { children: /* @__PURE__ */ H("tr", { style: {
|
|
10627
10627
|
backgroundColor: "var(--jmp-surface-sunken)",
|
|
10628
10628
|
borderBottom: "1px solid var(--jmp-border)"
|
|
10629
10629
|
}, children: [
|
|
@@ -10650,7 +10650,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10650
10650
|
}, children: "Actions" })
|
|
10651
10651
|
] }) }),
|
|
10652
10652
|
/* @__PURE__ */ x("tbody", { children: Object.entries(D.attributes).map(
|
|
10653
|
-
([F, q]) => /* @__PURE__ */
|
|
10653
|
+
([F, q]) => /* @__PURE__ */ H(
|
|
10654
10654
|
"tr",
|
|
10655
10655
|
{
|
|
10656
10656
|
style: {
|
|
@@ -10667,7 +10667,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10667
10667
|
color: "var(--jmp-text-muted)",
|
|
10668
10668
|
fontSize: "14px"
|
|
10669
10669
|
}, children: q }),
|
|
10670
|
-
/* @__PURE__ */
|
|
10670
|
+
/* @__PURE__ */ H(
|
|
10671
10671
|
"td",
|
|
10672
10672
|
{
|
|
10673
10673
|
style: {
|
|
@@ -10745,8 +10745,8 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10745
10745
|
justifyContent: "center",
|
|
10746
10746
|
zIndex: 1e3
|
|
10747
10747
|
},
|
|
10748
|
-
onClick:
|
|
10749
|
-
children: /* @__PURE__ */
|
|
10748
|
+
onClick: V,
|
|
10749
|
+
children: /* @__PURE__ */ H(
|
|
10750
10750
|
"div",
|
|
10751
10751
|
{
|
|
10752
10752
|
style: {
|
|
@@ -10759,7 +10759,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10759
10759
|
},
|
|
10760
10760
|
onClick: (z) => z.stopPropagation(),
|
|
10761
10761
|
children: [
|
|
10762
|
-
/* @__PURE__ */
|
|
10762
|
+
/* @__PURE__ */ H("h3", { style: {
|
|
10763
10763
|
margin: "0 0 16px 0",
|
|
10764
10764
|
fontSize: "18px",
|
|
10765
10765
|
fontWeight: "600",
|
|
@@ -10768,7 +10768,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10768
10768
|
"Add Attribute to ",
|
|
10769
10769
|
u
|
|
10770
10770
|
] }),
|
|
10771
|
-
/* @__PURE__ */
|
|
10771
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "16px" }, children: [
|
|
10772
10772
|
/* @__PURE__ */ x("label", { style: {
|
|
10773
10773
|
display: "block",
|
|
10774
10774
|
marginBottom: "6px",
|
|
@@ -10795,7 +10795,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10795
10795
|
}
|
|
10796
10796
|
)
|
|
10797
10797
|
] }),
|
|
10798
|
-
/* @__PURE__ */
|
|
10798
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "20px" }, children: [
|
|
10799
10799
|
/* @__PURE__ */ x("label", { style: {
|
|
10800
10800
|
display: "block",
|
|
10801
10801
|
marginBottom: "6px",
|
|
@@ -10806,8 +10806,8 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10806
10806
|
/* @__PURE__ */ x(
|
|
10807
10807
|
"select",
|
|
10808
10808
|
{
|
|
10809
|
-
value:
|
|
10810
|
-
onChange: (z) =>
|
|
10809
|
+
value: m,
|
|
10810
|
+
onChange: (z) => y(z.target.value),
|
|
10811
10811
|
style: {
|
|
10812
10812
|
width: "100%",
|
|
10813
10813
|
padding: "8px 12px",
|
|
@@ -10822,7 +10822,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10822
10822
|
}
|
|
10823
10823
|
)
|
|
10824
10824
|
] }),
|
|
10825
|
-
/* @__PURE__ */
|
|
10825
|
+
/* @__PURE__ */ H(
|
|
10826
10826
|
"div",
|
|
10827
10827
|
{
|
|
10828
10828
|
style: {
|
|
@@ -10834,7 +10834,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10834
10834
|
/* @__PURE__ */ x(
|
|
10835
10835
|
"button",
|
|
10836
10836
|
{
|
|
10837
|
-
onClick:
|
|
10837
|
+
onClick: V,
|
|
10838
10838
|
style: {
|
|
10839
10839
|
backgroundColor: "var(--jmp-surface)",
|
|
10840
10840
|
color: "var(--jmp-text-muted)",
|
|
@@ -10889,7 +10889,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10889
10889
|
zIndex: 1e3
|
|
10890
10890
|
},
|
|
10891
10891
|
onClick: te,
|
|
10892
|
-
children: /* @__PURE__ */
|
|
10892
|
+
children: /* @__PURE__ */ H(
|
|
10893
10893
|
"div",
|
|
10894
10894
|
{
|
|
10895
10895
|
style: {
|
|
@@ -10902,7 +10902,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10902
10902
|
},
|
|
10903
10903
|
onClick: (z) => z.stopPropagation(),
|
|
10904
10904
|
children: [
|
|
10905
|
-
/* @__PURE__ */
|
|
10905
|
+
/* @__PURE__ */ H("h3", { style: {
|
|
10906
10906
|
margin: "0 0 16px 0",
|
|
10907
10907
|
fontSize: "18px",
|
|
10908
10908
|
fontWeight: "600",
|
|
@@ -10911,7 +10911,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10911
10911
|
"Edit Attribute: ",
|
|
10912
10912
|
f.attrName
|
|
10913
10913
|
] }),
|
|
10914
|
-
/* @__PURE__ */
|
|
10914
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "20px" }, children: [
|
|
10915
10915
|
/* @__PURE__ */ x("label", { style: {
|
|
10916
10916
|
display: "block",
|
|
10917
10917
|
marginBottom: "6px",
|
|
@@ -10922,8 +10922,8 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10922
10922
|
/* @__PURE__ */ x(
|
|
10923
10923
|
"select",
|
|
10924
10924
|
{
|
|
10925
|
-
value:
|
|
10926
|
-
onChange: (z) =>
|
|
10925
|
+
value: m,
|
|
10926
|
+
onChange: (z) => y(z.target.value),
|
|
10927
10927
|
style: {
|
|
10928
10928
|
width: "100%",
|
|
10929
10929
|
padding: "8px 12px",
|
|
@@ -10938,7 +10938,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10938
10938
|
}
|
|
10939
10939
|
)
|
|
10940
10940
|
] }),
|
|
10941
|
-
/* @__PURE__ */
|
|
10941
|
+
/* @__PURE__ */ H(
|
|
10942
10942
|
"div",
|
|
10943
10943
|
{
|
|
10944
10944
|
style: {
|
|
@@ -10989,7 +10989,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
10989
10989
|
)
|
|
10990
10990
|
}
|
|
10991
10991
|
),
|
|
10992
|
-
P && /* @__PURE__ */
|
|
10992
|
+
P && /* @__PURE__ */ H(
|
|
10993
10993
|
ux,
|
|
10994
10994
|
{
|
|
10995
10995
|
title: i.applyClassesTitle,
|
|
@@ -11009,7 +11009,7 @@ const dx = /* @__PURE__ */ new Set([...Ui, "Array"]), Nr = "\0", Sl = (e, t, n)
|
|
|
11009
11009
|
({ klass: F, field: q, count: J }) => i.applyClassesDropped(F, q, J)
|
|
11010
11010
|
)
|
|
11011
11011
|
], D = z.slice(0, gx);
|
|
11012
|
-
return /* @__PURE__ */
|
|
11012
|
+
return /* @__PURE__ */ H(
|
|
11013
11013
|
"ul",
|
|
11014
11014
|
{
|
|
11015
11015
|
style: {
|
|
@@ -11652,7 +11652,7 @@ function zd({
|
|
|
11652
11652
|
const { nodes: r, edges: o, setNodes: i, setEdges: a } = Ne(yn(Cv)), s = o.find(
|
|
11653
11653
|
(h) => h.source === e && h.sourceHandle === t
|
|
11654
11654
|
), c = s ? r.find((h) => h.id === s.target) : void 0, l = c?.type === "object" && c.data.klass === He ? c.data.literal ?? "" : "";
|
|
11655
|
-
return /* @__PURE__ */
|
|
11655
|
+
return /* @__PURE__ */ H("span", { className: "inline-string", children: [
|
|
11656
11656
|
/* @__PURE__ */ x("span", { className: "inline-string__quote", children: '"' }),
|
|
11657
11657
|
n ? /* @__PURE__ */ x("span", { className: "inline-string__value", children: l }) : /* @__PURE__ */ x(
|
|
11658
11658
|
"input",
|
|
@@ -11663,18 +11663,18 @@ function zd({
|
|
|
11663
11663
|
const f = h.target.value;
|
|
11664
11664
|
if (c) {
|
|
11665
11665
|
i(
|
|
11666
|
-
(
|
|
11667
|
-
(
|
|
11666
|
+
(m) => m.map(
|
|
11667
|
+
(y) => y.id === c.id && y.type === "object" ? { ...y, data: { ...y.data, literal: f } } : y
|
|
11668
11668
|
)
|
|
11669
11669
|
);
|
|
11670
11670
|
return;
|
|
11671
11671
|
}
|
|
11672
|
-
const d = r.find((
|
|
11672
|
+
const d = r.find((m) => m.id === e), p = {
|
|
11673
11673
|
x: (d?.position.x ?? 0) + 220,
|
|
11674
11674
|
y: (d?.position.y ?? 0) + 40
|
|
11675
|
-
}, w = vi(16, new Set(r.map((
|
|
11675
|
+
}, w = vi(16, new Set(r.map((m) => m.id)));
|
|
11676
11676
|
i(
|
|
11677
|
-
(
|
|
11677
|
+
(m) => m.concat({
|
|
11678
11678
|
id: w,
|
|
11679
11679
|
type: "object",
|
|
11680
11680
|
position: p,
|
|
@@ -11686,7 +11686,7 @@ function zd({
|
|
|
11686
11686
|
}
|
|
11687
11687
|
})
|
|
11688
11688
|
), a(
|
|
11689
|
-
(
|
|
11689
|
+
(m) => m.concat({
|
|
11690
11690
|
id: `${e}+${t}`,
|
|
11691
11691
|
source: e,
|
|
11692
11692
|
sourceHandle: t,
|
|
@@ -11728,14 +11728,14 @@ function kv({
|
|
|
11728
11728
|
} : h)
|
|
11729
11729
|
);
|
|
11730
11730
|
};
|
|
11731
|
-
return t.dataType === He && n ? /* @__PURE__ */
|
|
11731
|
+
return t.dataType === He && n ? /* @__PURE__ */ H("div", { className: "object-node__attribute", children: [
|
|
11732
11732
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-name", children: e }),
|
|
11733
11733
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-equals", children: "=" }),
|
|
11734
11734
|
/* @__PURE__ */ x(zd, { nodeId: i, handleId: e, readOnly: r })
|
|
11735
|
-
] }) : xt.includes(t.dataType) ? /* @__PURE__ */
|
|
11735
|
+
] }) : xt.includes(t.dataType) ? /* @__PURE__ */ H("div", { className: "object-node__attribute", children: [
|
|
11736
11736
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-name", children: e }),
|
|
11737
11737
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-equals", children: "=" }),
|
|
11738
|
-
r ? /* @__PURE__ */ x("span", { className: "object-node__attribute-value", children: t.value }) : /* @__PURE__ */
|
|
11738
|
+
r ? /* @__PURE__ */ x("span", { className: "object-node__attribute-value", children: t.value }) : /* @__PURE__ */ H(Se, { children: [
|
|
11739
11739
|
t.dataType === "boolean" && /* @__PURE__ */ x(
|
|
11740
11740
|
"input",
|
|
11741
11741
|
{
|
|
@@ -11755,7 +11755,7 @@ function kv({
|
|
|
11755
11755
|
}
|
|
11756
11756
|
)
|
|
11757
11757
|
] })
|
|
11758
|
-
] }) : /* @__PURE__ */
|
|
11758
|
+
] }) : /* @__PURE__ */ H("div", { className: "object-node__attribute", children: [
|
|
11759
11759
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-name", children: e }),
|
|
11760
11760
|
/* @__PURE__ */ x("div", { className: "object-node__attribute-equals", children: "=" }),
|
|
11761
11761
|
/* @__PURE__ */ x(
|
|
@@ -11776,8 +11776,8 @@ function Av({ id: e, data: t }) {
|
|
|
11776
11776
|
const { disableGarbageCollector: n, inlineStrings: r } = Ne(
|
|
11777
11777
|
yn(Nv)
|
|
11778
11778
|
), o = Mu(), i = Tu(), a = !n && !ea(e, o, i) && !gd(e, o, i), s = i.filter((l) => l.source == e), c = t.klass === "Array" && t.arrayElementType ? `:${t.arrayElementType}[]` : `:${t.klass}`;
|
|
11779
|
-
return t.klass === He ? /* @__PURE__ */
|
|
11780
|
-
/* @__PURE__ */
|
|
11779
|
+
return t.klass === He ? /* @__PURE__ */ H(Se, { children: [
|
|
11780
|
+
/* @__PURE__ */ H("div", { className: `object-node__header ${a ? "gc" : ""}`, children: [
|
|
11781
11781
|
/* @__PURE__ */ x(
|
|
11782
11782
|
wt,
|
|
11783
11783
|
{
|
|
@@ -11790,13 +11790,13 @@ function Av({ id: e, data: t }) {
|
|
|
11790
11790
|
/* @__PURE__ */ x("div", { className: "object-node__name", children: c }),
|
|
11791
11791
|
/* @__PURE__ */ x("div", { className: "node-header-spacer" })
|
|
11792
11792
|
] }),
|
|
11793
|
-
/* @__PURE__ */ x("div", { className: `object-node__body ${a ? "gc" : ""}`, children: /* @__PURE__ */
|
|
11793
|
+
/* @__PURE__ */ x("div", { className: `object-node__body ${a ? "gc" : ""}`, children: /* @__PURE__ */ H("div", { className: "object-node__attribute object-node__attribute--literal", children: [
|
|
11794
11794
|
/* @__PURE__ */ x("span", { className: "inline-string__quote", children: '"' }),
|
|
11795
11795
|
/* @__PURE__ */ x("span", { className: "inline-string__value", children: t.literal ?? "" }),
|
|
11796
11796
|
/* @__PURE__ */ x("span", { className: "inline-string__quote", children: '"' })
|
|
11797
11797
|
] }) })
|
|
11798
|
-
] }) : /* @__PURE__ */
|
|
11799
|
-
/* @__PURE__ */
|
|
11798
|
+
] }) : /* @__PURE__ */ H(Se, { children: [
|
|
11799
|
+
/* @__PURE__ */ H("div", { className: `object-node__header ${a ? "gc" : ""}`, children: [
|
|
11800
11800
|
/* @__PURE__ */ x(
|
|
11801
11801
|
wt,
|
|
11802
11802
|
{
|
|
@@ -11825,8 +11825,8 @@ function Av({ id: e, data: t }) {
|
|
|
11825
11825
|
] });
|
|
11826
11826
|
}
|
|
11827
11827
|
function Mv({ id: e, data: t }) {
|
|
11828
|
-
return /* @__PURE__ */
|
|
11829
|
-
/* @__PURE__ */
|
|
11828
|
+
return /* @__PURE__ */ H("div", { id: e, className: "variable-node", children: [
|
|
11829
|
+
/* @__PURE__ */ H("div", { className: "variable-node__name", children: [
|
|
11830
11830
|
t.name,
|
|
11831
11831
|
" ="
|
|
11832
11832
|
] }),
|
|
@@ -11918,9 +11918,9 @@ const Pv = ({
|
|
|
11918
11918
|
},
|
|
11919
11919
|
[n]
|
|
11920
11920
|
);
|
|
11921
|
-
return /* @__PURE__ */
|
|
11921
|
+
return /* @__PURE__ */ H(Se, { children: [
|
|
11922
11922
|
o && /* @__PURE__ */ x(Iv, { type: a }),
|
|
11923
|
-
/* @__PURE__ */
|
|
11923
|
+
/* @__PURE__ */ H("aside", { className: "sidebar", children: [
|
|
11924
11924
|
Object.entries(e).map(([l]) => /* @__PURE__ */ x(
|
|
11925
11925
|
"div",
|
|
11926
11926
|
{
|
|
@@ -11994,72 +11994,77 @@ function $v({ editable: e = !0 }) {
|
|
|
11994
11994
|
t: f
|
|
11995
11995
|
} = Ne(yn(Ov)), d = t.length === 1;
|
|
11996
11996
|
if (d && !e && !c) return null;
|
|
11997
|
-
const p = t[n];
|
|
11998
|
-
return /* @__PURE__ */
|
|
11999
|
-
/* @__PURE__ */
|
|
12000
|
-
"
|
|
12001
|
-
{
|
|
12002
|
-
className: "button-icon",
|
|
12003
|
-
onClick: () => r(n - 1),
|
|
12004
|
-
disabled: n === 0,
|
|
12005
|
-
title: f.previousStep,
|
|
12006
|
-
"aria-label": f.previousStep,
|
|
12007
|
-
children: "◀"
|
|
12008
|
-
}
|
|
12009
|
-
),
|
|
12010
|
-
/* @__PURE__ */ V("span", { className: "step-bar__count", children: [
|
|
12011
|
-
n + 1,
|
|
12012
|
-
" / ",
|
|
12013
|
-
t.length
|
|
11997
|
+
const p = t[n], w = e ? void 0 : p?.label;
|
|
11998
|
+
return /* @__PURE__ */ H("div", { className: "step-bar", children: [
|
|
11999
|
+
(c || w) && /* @__PURE__ */ H("div", { className: "step-bar__intro", children: [
|
|
12000
|
+
c && /* @__PURE__ */ x("div", { className: "step-bar__header", children: f.yourTurn }),
|
|
12001
|
+
w && /* @__PURE__ */ x("span", { className: "step-bar__label-text", children: w })
|
|
12014
12002
|
] }),
|
|
12015
|
-
/* @__PURE__ */
|
|
12016
|
-
"button",
|
|
12017
|
-
{
|
|
12018
|
-
className: "button-icon",
|
|
12019
|
-
onClick: () => r(n + 1),
|
|
12020
|
-
disabled: n === t.length - 1,
|
|
12021
|
-
title: f.nextStep,
|
|
12022
|
-
"aria-label": f.nextStep,
|
|
12023
|
-
children: "▶"
|
|
12024
|
-
}
|
|
12025
|
-
),
|
|
12026
|
-
e ? /* @__PURE__ */ V(Se, { children: [
|
|
12027
|
-
/* @__PURE__ */ V("label", { className: "step-bar__exercise", title: f.exerciseStepHint, children: [
|
|
12028
|
-
/* @__PURE__ */ x(
|
|
12029
|
-
"input",
|
|
12030
|
-
{
|
|
12031
|
-
type: "checkbox",
|
|
12032
|
-
checked: p?.exercise ?? !1,
|
|
12033
|
-
onChange: (w) => s(n, w.target.checked)
|
|
12034
|
-
}
|
|
12035
|
-
),
|
|
12036
|
-
f.exerciseStep
|
|
12037
|
-
] }),
|
|
12003
|
+
/* @__PURE__ */ H("div", { className: "step-bar__controls", children: [
|
|
12038
12004
|
/* @__PURE__ */ x(
|
|
12039
|
-
"
|
|
12005
|
+
"button",
|
|
12040
12006
|
{
|
|
12041
|
-
className: "
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12007
|
+
className: "button-icon",
|
|
12008
|
+
onClick: () => r(n - 1),
|
|
12009
|
+
disabled: n === 0,
|
|
12010
|
+
title: f.previousStep,
|
|
12011
|
+
"aria-label": f.previousStep,
|
|
12012
|
+
children: "◀"
|
|
12046
12013
|
}
|
|
12047
12014
|
),
|
|
12048
|
-
/* @__PURE__ */
|
|
12015
|
+
/* @__PURE__ */ H("span", { className: "step-bar__count", children: [
|
|
12016
|
+
n + 1,
|
|
12017
|
+
" / ",
|
|
12018
|
+
t.length
|
|
12019
|
+
] }),
|
|
12049
12020
|
/* @__PURE__ */ x(
|
|
12050
12021
|
"button",
|
|
12051
12022
|
{
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12023
|
+
className: "button-icon",
|
|
12024
|
+
onClick: () => r(n + 1),
|
|
12025
|
+
disabled: n === t.length - 1,
|
|
12026
|
+
title: f.nextStep,
|
|
12027
|
+
"aria-label": f.nextStep,
|
|
12028
|
+
children: "▶"
|
|
12056
12029
|
}
|
|
12057
|
-
)
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12030
|
+
),
|
|
12031
|
+
e && /* @__PURE__ */ H(Se, { children: [
|
|
12032
|
+
/* @__PURE__ */ H("label", { className: "step-bar__exercise", title: f.exerciseStepHint, children: [
|
|
12033
|
+
/* @__PURE__ */ x(
|
|
12034
|
+
"input",
|
|
12035
|
+
{
|
|
12036
|
+
type: "checkbox",
|
|
12037
|
+
checked: p?.exercise ?? !1,
|
|
12038
|
+
onChange: (m) => s(n, m.target.checked)
|
|
12039
|
+
}
|
|
12040
|
+
),
|
|
12041
|
+
f.exerciseStep
|
|
12042
|
+
] }),
|
|
12043
|
+
/* @__PURE__ */ x(
|
|
12044
|
+
"input",
|
|
12045
|
+
{
|
|
12046
|
+
className: "step-bar__label",
|
|
12047
|
+
value: p?.label ?? "",
|
|
12048
|
+
placeholder: f.stepLabelPlaceholder,
|
|
12049
|
+
"aria-label": f.stepLabel,
|
|
12050
|
+
onChange: (m) => a(n, m.target.value)
|
|
12051
|
+
}
|
|
12052
|
+
),
|
|
12053
|
+
/* @__PURE__ */ x("button", { onClick: o, title: f.addStepHint, children: f.addStep }),
|
|
12054
|
+
/* @__PURE__ */ x(
|
|
12055
|
+
"button",
|
|
12056
|
+
{
|
|
12057
|
+
onClick: () => i(n),
|
|
12058
|
+
disabled: d,
|
|
12059
|
+
title: f.deleteStep,
|
|
12060
|
+
children: f.deleteStep
|
|
12061
|
+
}
|
|
12062
|
+
)
|
|
12063
|
+
] }),
|
|
12064
|
+
c && /* @__PURE__ */ H(Se, { children: [
|
|
12065
|
+
/* @__PURE__ */ x("button", { onClick: u, children: f.checkAnswer }),
|
|
12066
|
+
/* @__PURE__ */ x("button", { onClick: h, children: f.showSolution })
|
|
12067
|
+
] })
|
|
12063
12068
|
] }),
|
|
12064
12069
|
l && /* @__PURE__ */ x(
|
|
12065
12070
|
"span",
|
|
@@ -12139,14 +12144,14 @@ function Hv({
|
|
|
12139
12144
|
(u) => u.filter((h) => !(h.source == o && h.sourceHandle == e))
|
|
12140
12145
|
);
|
|
12141
12146
|
};
|
|
12142
|
-
return t.dataType === He && i ? /* @__PURE__ */
|
|
12147
|
+
return t.dataType === He && i ? /* @__PURE__ */ H("div", { className: "method-call-node__variable", children: [
|
|
12143
12148
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-name", children: e }),
|
|
12144
12149
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-equals", children: "=" }),
|
|
12145
12150
|
/* @__PURE__ */ x(zd, { nodeId: o, handleId: e, readOnly: n })
|
|
12146
|
-
] }) : xt.includes(t.dataType) ? /* @__PURE__ */
|
|
12151
|
+
] }) : xt.includes(t.dataType) ? /* @__PURE__ */ H("div", { className: "method-call-node__variable", children: [
|
|
12147
12152
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-name", children: e }),
|
|
12148
12153
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-equals", children: "=" }),
|
|
12149
|
-
n ? /* @__PURE__ */ x("span", { className: "method-call-node__variable-value", children: t.value }) : /* @__PURE__ */
|
|
12154
|
+
n ? /* @__PURE__ */ x("span", { className: "method-call-node__variable-value", children: t.value }) : /* @__PURE__ */ H(Se, { children: [
|
|
12150
12155
|
t.dataType === "boolean" && /* @__PURE__ */ x(
|
|
12151
12156
|
"input",
|
|
12152
12157
|
{
|
|
@@ -12166,7 +12171,7 @@ function Hv({
|
|
|
12166
12171
|
}
|
|
12167
12172
|
)
|
|
12168
12173
|
] })
|
|
12169
|
-
] }) : /* @__PURE__ */
|
|
12174
|
+
] }) : /* @__PURE__ */ H("div", { className: "method-call-node__variable", children: [
|
|
12170
12175
|
/* @__PURE__ */ x("button", { onClick: l, className: "method-call-node__delete nodrag", children: "X" }),
|
|
12171
12176
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-name", children: e }),
|
|
12172
12177
|
/* @__PURE__ */ x("div", { className: "method-call-node__variable-equals", children: "=" }),
|
|
@@ -12196,9 +12201,9 @@ function Vv({
|
|
|
12196
12201
|
}, f = () => {
|
|
12197
12202
|
n && n(e);
|
|
12198
12203
|
};
|
|
12199
|
-
return /* @__PURE__ */
|
|
12200
|
-
/* @__PURE__ */
|
|
12201
|
-
/* @__PURE__ */
|
|
12204
|
+
return /* @__PURE__ */ H(Se, { children: [
|
|
12205
|
+
/* @__PURE__ */ H("div", { className: "method-call-node__header", children: [
|
|
12206
|
+
/* @__PURE__ */ H("div", { className: "method-call-node__name", children: [
|
|
12202
12207
|
t.index,
|
|
12203
12208
|
": ",
|
|
12204
12209
|
t.name,
|
|
@@ -12206,7 +12211,7 @@ function Vv({
|
|
|
12206
12211
|
] }),
|
|
12207
12212
|
/* @__PURE__ */ x("div", { className: "node-header-spacer" })
|
|
12208
12213
|
] }),
|
|
12209
|
-
/* @__PURE__ */
|
|
12214
|
+
/* @__PURE__ */ H("div", { className: "method-call-node__body", children: [
|
|
12210
12215
|
Object.entries(t.localVariables).map(([d, p]) => /* @__PURE__ */ x(
|
|
12211
12216
|
Hv,
|
|
12212
12217
|
{
|
|
@@ -12220,7 +12225,7 @@ function Vv({
|
|
|
12220
12225
|
},
|
|
12221
12226
|
`${e}+${d}`
|
|
12222
12227
|
)),
|
|
12223
|
-
/* @__PURE__ */
|
|
12228
|
+
/* @__PURE__ */ H("div", { className: "method-call-node__buttons", children: [
|
|
12224
12229
|
/* @__PURE__ */ x(
|
|
12225
12230
|
"button",
|
|
12226
12231
|
{
|
|
@@ -12283,7 +12288,7 @@ const Bv = ({
|
|
|
12283
12288
|
zIndex: 1e3
|
|
12284
12289
|
},
|
|
12285
12290
|
onClick: t,
|
|
12286
|
-
children: /* @__PURE__ */
|
|
12291
|
+
children: /* @__PURE__ */ H(
|
|
12287
12292
|
"div",
|
|
12288
12293
|
{
|
|
12289
12294
|
style: {
|
|
@@ -12309,12 +12314,12 @@ const Bv = ({
|
|
|
12309
12314
|
children: "Create New Array"
|
|
12310
12315
|
}
|
|
12311
12316
|
),
|
|
12312
|
-
/* @__PURE__ */
|
|
12317
|
+
/* @__PURE__ */ H("form", { onSubmit: (o) => {
|
|
12313
12318
|
o.preventDefault();
|
|
12314
12319
|
const i = new FormData(o.currentTarget), a = i.get("name"), s = parseInt(i.get("length"), 10), c = i.get("elementType");
|
|
12315
12320
|
a && !isNaN(s) && s > 0 && c && e(a, s, c);
|
|
12316
12321
|
}, children: [
|
|
12317
|
-
/* @__PURE__ */
|
|
12322
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "16px" }, children: [
|
|
12318
12323
|
/* @__PURE__ */ x(
|
|
12319
12324
|
"label",
|
|
12320
12325
|
{
|
|
@@ -12346,7 +12351,7 @@ const Bv = ({
|
|
|
12346
12351
|
}
|
|
12347
12352
|
)
|
|
12348
12353
|
] }),
|
|
12349
|
-
/* @__PURE__ */
|
|
12354
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "16px" }, children: [
|
|
12350
12355
|
/* @__PURE__ */ x(
|
|
12351
12356
|
"label",
|
|
12352
12357
|
{
|
|
@@ -12379,7 +12384,7 @@ const Bv = ({
|
|
|
12379
12384
|
}
|
|
12380
12385
|
)
|
|
12381
12386
|
] }),
|
|
12382
|
-
/* @__PURE__ */
|
|
12387
|
+
/* @__PURE__ */ H("div", { style: { marginBottom: "20px" }, children: [
|
|
12383
12388
|
/* @__PURE__ */ x(
|
|
12384
12389
|
"label",
|
|
12385
12390
|
{
|
|
@@ -12412,7 +12417,7 @@ const Bv = ({
|
|
|
12412
12417
|
}
|
|
12413
12418
|
)
|
|
12414
12419
|
] }),
|
|
12415
|
-
/* @__PURE__ */
|
|
12420
|
+
/* @__PURE__ */ H(
|
|
12416
12421
|
"div",
|
|
12417
12422
|
{
|
|
12418
12423
|
style: {
|
|
@@ -12517,14 +12522,14 @@ const Bv = ({
|
|
|
12517
12522
|
steps: d,
|
|
12518
12523
|
currentStep: p,
|
|
12519
12524
|
goToStep: w,
|
|
12520
|
-
gcPrediction:
|
|
12521
|
-
gcResult:
|
|
12525
|
+
gcPrediction: m,
|
|
12526
|
+
gcResult: y,
|
|
12522
12527
|
startGcPrediction: S,
|
|
12523
12528
|
toggleGcPrediction: g,
|
|
12524
12529
|
cancelGcPrediction: b,
|
|
12525
12530
|
collectGarbage: C,
|
|
12526
12531
|
t: v
|
|
12527
|
-
} = Ne(yn(Wv)), { screenToFlowPosition: E, getViewport: N, setViewport: k, fitView: P } = _t(), I = ra(), L = ne(null), R = ne(null), [_, M] = ie(!1), { undo: A, redo: T, canUndo: $, canRedo: O } = xd(), j = o.map((W) => W.id), [B,
|
|
12532
|
+
} = Ne(yn(Wv)), { screenToFlowPosition: E, getViewport: N, setViewport: k, fitView: P } = _t(), I = ra(), L = ne(null), R = ne(null), [_, M] = ie(!1), { undo: A, redo: T, canUndo: $, canRedo: O } = xd(), j = o.map((W) => W.id), [B, V] = ie(!1), [X, U] = ie(null), [Z, te] = ie(!1), [z, D] = ie(null), [F, q] = ie(!1), [J, K] = ie(null), { previousMethodCall: Q, lastMethodCall: ee } = Ce(() => {
|
|
12528
12533
|
const W = o.filter(Ni);
|
|
12529
12534
|
if (W.length === 0)
|
|
12530
12535
|
return { previousMethodCall: void 0, lastMethodCall: void 0 };
|
|
@@ -12552,7 +12557,7 @@ const Bv = ({
|
|
|
12552
12557
|
W = vi(16);
|
|
12553
12558
|
return j.push(W), W;
|
|
12554
12559
|
}, Be = (W) => {
|
|
12555
|
-
U(() => W),
|
|
12560
|
+
U(() => W), V(!0);
|
|
12556
12561
|
}, Me = (W, G, oe, fe) => {
|
|
12557
12562
|
D({ title: W, label: G, placeholder: fe, onConfirm: oe }), te(!0);
|
|
12558
12563
|
}, Fe = () => [...Ui, ...Object.keys(e)], We = ae((W) => {
|
|
@@ -12891,15 +12896,15 @@ const Bv = ({
|
|
|
12891
12896
|
visibleEdges: i.filter((G) => !W.has(G.target))
|
|
12892
12897
|
};
|
|
12893
12898
|
}, [o, i, t.inlineStrings]);
|
|
12894
|
-
return /* @__PURE__ */
|
|
12895
|
-
/* @__PURE__ */
|
|
12899
|
+
return /* @__PURE__ */ H("div", { className: "memory-view", children: [
|
|
12900
|
+
/* @__PURE__ */ H(
|
|
12896
12901
|
By,
|
|
12897
12902
|
{
|
|
12898
12903
|
ref: R,
|
|
12899
12904
|
className: `memory${t.hideSidebar ? "" : " with-palette"}${_ ? " jmp-print" : ""}`,
|
|
12900
12905
|
nodes: mo.map((W) => {
|
|
12901
12906
|
const G = [lr.get(W.id) ?? ""];
|
|
12902
|
-
return cr && (Sn.added.has(W.id) ? G.push("step-added") : Sn.changed.has(W.id) && G.push("step-changed")),
|
|
12907
|
+
return cr && (Sn.added.has(W.id) ? G.push("step-added") : Sn.changed.has(W.id) && G.push("step-changed")), m?.includes(W.id) && G.push("gc-predicted"), {
|
|
12903
12908
|
...W,
|
|
12904
12909
|
className: G.filter(Boolean).join(" "),
|
|
12905
12910
|
deletable: W.type === "variable" ? !0 : t.disableGarbageCollector
|
|
@@ -12940,7 +12945,7 @@ const Bv = ({
|
|
|
12940
12945
|
}
|
|
12941
12946
|
},
|
|
12942
12947
|
onNodeClick: (W, G) => {
|
|
12943
|
-
|
|
12948
|
+
m !== null && G.type === "object" && g(G.id);
|
|
12944
12949
|
},
|
|
12945
12950
|
onConnect: le,
|
|
12946
12951
|
onConnectStart: he,
|
|
@@ -12965,7 +12970,7 @@ const Bv = ({
|
|
|
12965
12970
|
onNodeDrop: go
|
|
12966
12971
|
}
|
|
12967
12972
|
) }),
|
|
12968
|
-
/* @__PURE__ */ x(jt, { position: "top-right", children: /* @__PURE__ */
|
|
12973
|
+
/* @__PURE__ */ x(jt, { position: "top-right", children: /* @__PURE__ */ H("div", { className: "button-group", children: [
|
|
12969
12974
|
/* @__PURE__ */ x(
|
|
12970
12975
|
"button",
|
|
12971
12976
|
{
|
|
@@ -13015,20 +13020,20 @@ const Bv = ({
|
|
|
13015
13020
|
}
|
|
13016
13021
|
)
|
|
13017
13022
|
] }) }),
|
|
13018
|
-
(!t.hideSteps || !t.disableGarbageCollector) && /* @__PURE__ */ x(jt, { position: "bottom-center", children: /* @__PURE__ */
|
|
13023
|
+
(!t.hideSteps || !t.disableGarbageCollector) && /* @__PURE__ */ x(jt, { position: "bottom-center", children: /* @__PURE__ */ H("div", { className: "bottom-bar", children: [
|
|
13019
13024
|
!t.hideSteps && /* @__PURE__ */ x($v, { editable: h === "edit" }),
|
|
13020
|
-
!t.disableGarbageCollector && /* @__PURE__ */
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
+
!t.disableGarbageCollector && /* @__PURE__ */ H("div", { className: "button-group gc-panel", children: [
|
|
13026
|
+
y && /* @__PURE__ */ x("span", { className: "gc-result", children: v.gcScore(
|
|
13027
|
+
y.found,
|
|
13028
|
+
y.missed,
|
|
13029
|
+
y.wrong
|
|
13025
13030
|
) }),
|
|
13026
|
-
t.gcPrediction &&
|
|
13027
|
-
|
|
13028
|
-
/* @__PURE__ */ x("span", { className: "gc-hint", children: v.predictGarbageHint(
|
|
13031
|
+
t.gcPrediction && m === null && /* @__PURE__ */ x("button", { className: "button-gc", onClick: S, children: v.predictGarbage }),
|
|
13032
|
+
m !== null && /* @__PURE__ */ H(Se, { children: [
|
|
13033
|
+
/* @__PURE__ */ x("span", { className: "gc-hint", children: v.predictGarbageHint(m.length) }),
|
|
13029
13034
|
/* @__PURE__ */ x("button", { onClick: b, children: v.cancel })
|
|
13030
13035
|
] }),
|
|
13031
|
-
(!t.gcPrediction ||
|
|
13036
|
+
(!t.gcPrediction || m !== null) && /* @__PURE__ */ x("button", { className: "button-gc", onClick: C, children: m !== null ? v.checkAndCollect : v.runGarbageCollector })
|
|
13032
13037
|
] })
|
|
13033
13038
|
] }) }),
|
|
13034
13039
|
/* @__PURE__ */ x(nb, {}),
|
|
@@ -13040,10 +13045,10 @@ const Bv = ({
|
|
|
13040
13045
|
Bv,
|
|
13041
13046
|
{
|
|
13042
13047
|
onConfirm: (W, G, oe) => {
|
|
13043
|
-
X(W, G, oe),
|
|
13048
|
+
X(W, G, oe), V(!1), U(null);
|
|
13044
13049
|
},
|
|
13045
13050
|
onCancel: () => {
|
|
13046
|
-
|
|
13051
|
+
V(!1), U(null);
|
|
13047
13052
|
},
|
|
13048
13053
|
availableTypes: Fe()
|
|
13049
13054
|
}
|
|
@@ -13104,15 +13109,15 @@ function Kv({
|
|
|
13104
13109
|
loadMemory: d,
|
|
13105
13110
|
getMemory: p,
|
|
13106
13111
|
setDefaultLanguage: w
|
|
13107
|
-
} = Ne(yn(Xv)),
|
|
13112
|
+
} = Ne(yn(Xv)), m = ra(), y = ne(!1), S = ne(null), g = ne(a);
|
|
13108
13113
|
g.current = a, re(
|
|
13109
|
-
() =>
|
|
13110
|
-
if (
|
|
13114
|
+
() => m.subscribe((E, N) => {
|
|
13115
|
+
if (y.current || E.steps === N.steps && E.klasses === N.klasses && E.options === N.options)
|
|
13111
13116
|
return;
|
|
13112
13117
|
const k = p(), P = JSON.stringify(k);
|
|
13113
13118
|
P !== S.current && (S.current = P, g.current?.(k));
|
|
13114
13119
|
}),
|
|
13115
|
-
[
|
|
13120
|
+
[m, p]
|
|
13116
13121
|
);
|
|
13117
13122
|
const b = Ce(
|
|
13118
13123
|
() => typeof e == "string" ? e : JSON.stringify(e ?? null),
|
|
@@ -13124,13 +13129,13 @@ function Kv({
|
|
|
13124
13129
|
const E = Hu(e);
|
|
13125
13130
|
if (!E && !t) return;
|
|
13126
13131
|
const N = E ?? p();
|
|
13127
|
-
|
|
13132
|
+
y.current = !0;
|
|
13128
13133
|
try {
|
|
13129
13134
|
d(
|
|
13130
13135
|
t ? { ...N, options: { ...N.options, ...t } } : N
|
|
13131
13136
|
), S.current = JSON.stringify(p());
|
|
13132
13137
|
} finally {
|
|
13133
|
-
|
|
13138
|
+
y.current = !1;
|
|
13134
13139
|
}
|
|
13135
13140
|
}, [b, C, d]), re(() => {
|
|
13136
13141
|
o !== void 0 && f(o);
|
|
@@ -13140,7 +13145,7 @@ function Kv({
|
|
|
13140
13145
|
v.current !== u && (v.current = u, s?.(u));
|
|
13141
13146
|
}, [u, s]), re(() => {
|
|
13142
13147
|
l !== 0 && i?.(p());
|
|
13143
|
-
}, [l, i]), /* @__PURE__ */ x("div", { className: "java-memory-playground", children: /* @__PURE__ */
|
|
13148
|
+
}, [l, i]), /* @__PURE__ */ x("div", { className: "java-memory-playground", children: /* @__PURE__ */ H(Tv, { children: [
|
|
13144
13149
|
/* @__PURE__ */ x(xx, { keyBindings: r }),
|
|
13145
13150
|
c === "view" && /* @__PURE__ */ x(Uv, {}),
|
|
13146
13151
|
c === "config" && // The configuration is a form, not a canvas: it is as tall as its
|