work-workflow-test 0.0.31 → 0.0.32

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.
@@ -96,7 +96,7 @@ function sv() {
96
96
  }
97
97
  var S = !1, x = !1, I = !1, E = !1, C = !1, T;
98
98
  T = Symbol.for("react.module.reference");
99
- function A(N) {
99
+ function R(N) {
100
100
  return !!(typeof N == "string" || typeof N == "function" || N === r || N === i || C || N === o || N === l || N === u || E || N === m || S || x || I || typeof N == "object" && N !== null && (N.$$typeof === h || N.$$typeof === d || N.$$typeof === s || N.$$typeof === a || N.$$typeof === c || // This needs to include all possible module reference object
101
101
  // types supported by any Flight configuration anywhere since
102
102
  // we don't know which Flight build this will end up being used
@@ -158,14 +158,14 @@ function sv() {
158
158
  }
159
159
  return null;
160
160
  }
161
- var w = Object.assign, O = 0, R, F, L, M, P, k, V;
161
+ var w = Object.assign, O = 0, A, F, L, M, P, k, V;
162
162
  function W() {
163
163
  }
164
164
  W.__reactDisabledLog = !0;
165
165
  function B() {
166
166
  {
167
167
  if (O === 0) {
168
- R = console.log, F = console.info, L = console.warn, M = console.error, P = console.group, k = console.groupCollapsed, V = console.groupEnd;
168
+ A = console.log, F = console.info, L = console.warn, M = console.error, P = console.group, k = console.groupCollapsed, V = console.groupEnd;
169
169
  var N = {
170
170
  configurable: !0,
171
171
  enumerable: !0,
@@ -195,7 +195,7 @@ function sv() {
195
195
  };
196
196
  Object.defineProperties(console, {
197
197
  log: w({}, N, {
198
- value: R
198
+ value: A
199
199
  }),
200
200
  info: w({}, N, {
201
201
  value: F
@@ -604,7 +604,7 @@ Check the top-level render call using <` + Q + ">.");
604
604
  var ji = {};
605
605
  function Li(N, K, Q, re, we, Ne) {
606
606
  {
607
- var ge = A(N);
607
+ var ge = R(N);
608
608
  if (!ge) {
609
609
  var he = "";
610
610
  (N === void 0 || typeof N == "object" && N !== null && Object.keys(N).length === 0) && (he += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -1710,9 +1710,9 @@ function aw() {
1710
1710
  }
1711
1711
  function g(S, x) {
1712
1712
  if (e.call(this, S, x)) {
1713
- var I = S.changedTouches, E = t.call(this, S, x), C = I.length, T, A;
1713
+ var I = S.changedTouches, E = t.call(this, S, x), C = I.length, T, R;
1714
1714
  for (T = 0; T < C; ++T)
1715
- (A = _(this, E, S, x, I[T].identifier, I[T])) && (Qa(S), A("start", S, I[T]));
1715
+ (R = _(this, E, S, x, I[T].identifier, I[T])) && (Qa(S), R("start", S, I[T]));
1716
1716
  }
1717
1717
  }
1718
1718
  function y(S) {
@@ -1728,7 +1728,7 @@ function aw() {
1728
1728
  (C = o[x[E].identifier]) && (Qa(S), C("end", S, x[E]));
1729
1729
  }
1730
1730
  function _(S, x, I, E, C, T) {
1731
- var A = i.copy(), $ = Yt(T || I, x), H, D, w;
1731
+ var R = i.copy(), $ = Yt(T || I, x), H, D, w;
1732
1732
  if ((w = n.call(S, new Vc("beforestart", {
1733
1733
  sourceEvent: I,
1734
1734
  target: h,
@@ -1738,11 +1738,11 @@ function aw() {
1738
1738
  y: $[1],
1739
1739
  dx: 0,
1740
1740
  dy: 0,
1741
- dispatch: A
1741
+ dispatch: R
1742
1742
  }), E)) != null)
1743
- return H = w.x - $[0] || 0, D = w.y - $[1] || 0, function O(R, F, L) {
1743
+ return H = w.x - $[0] || 0, D = w.y - $[1] || 0, function O(A, F, L) {
1744
1744
  var M = $, P;
1745
- switch (R) {
1745
+ switch (A) {
1746
1746
  case "start":
1747
1747
  o[C] = O, P = s++;
1748
1748
  break;
@@ -1753,10 +1753,10 @@ function aw() {
1753
1753
  $ = Yt(L || F, x), P = s;
1754
1754
  break;
1755
1755
  }
1756
- A.call(
1757
- R,
1756
+ R.call(
1757
+ A,
1758
1758
  S,
1759
- new Vc(R, {
1759
+ new Vc(A, {
1760
1760
  sourceEvent: F,
1761
1761
  subject: w,
1762
1762
  target: h,
@@ -1766,7 +1766,7 @@ function aw() {
1766
1766
  y: $[1] + D,
1767
1767
  dx: $[0] - M[0],
1768
1768
  dy: $[1] - M[1],
1769
- dispatch: A
1769
+ dispatch: R
1770
1770
  }),
1771
1771
  E
1772
1772
  );
@@ -2224,10 +2224,10 @@ const kw = function e(t, n, r) {
2224
2224
  else {
2225
2225
  var b = Math.sqrt(f), _ = (h * h - l * l + r * f) / (2 * l * n * b), S = (h * h - l * l - r * f) / (2 * h * n * b), x = Math.log(Math.sqrt(_ * _ + 1) - _), I = Math.log(Math.sqrt(S * S + 1) - S);
2226
2226
  y = (I - x) / t, g = function(E) {
2227
- var C = E * y, T = fd(x), A = l / (n * b) * (T * Ow(t * C + x) - Pw(x));
2227
+ var C = E * y, T = fd(x), R = l / (n * b) * (T * Ow(t * C + x) - Pw(x));
2228
2228
  return [
2229
- a + A * m,
2230
- c + A * p,
2229
+ a + R * m,
2230
+ c + R * p,
2231
2231
  l * T / fd(t * C + x)
2232
2232
  ];
2233
2233
  };
@@ -2907,56 +2907,56 @@ function XE(e, t, n) {
2907
2907
  function xm() {
2908
2908
  var e = WE, t = KE, n = XE, r = YE, o = GE, i = [0, 1 / 0], s = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], a = 250, c = kw, l = na("start", "zoom", "end"), u, d, h, m = 500, p = 150, f = 0, g = 10;
2909
2909
  function y(w) {
2910
- w.property("__zoom", yd).on("wheel.zoom", C, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", A).filter(o).on("touchstart.zoom", $).on("touchmove.zoom", H).on("touchend.zoom touchcancel.zoom", D).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2910
+ w.property("__zoom", yd).on("wheel.zoom", C, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", R).filter(o).on("touchstart.zoom", $).on("touchmove.zoom", H).on("touchend.zoom touchcancel.zoom", D).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2911
2911
  }
2912
- y.transform = function(w, O, R, F) {
2912
+ y.transform = function(w, O, A, F) {
2913
2913
  var L = w.selection ? w.selection() : w;
2914
- L.property("__zoom", yd), w !== L ? x(w, O, R, F) : L.interrupt().each(function() {
2914
+ L.property("__zoom", yd), w !== L ? x(w, O, A, F) : L.interrupt().each(function() {
2915
2915
  I(this, arguments).event(F).start().zoom(null, typeof O == "function" ? O.apply(this, arguments) : O).end();
2916
2916
  });
2917
- }, y.scaleBy = function(w, O, R, F) {
2917
+ }, y.scaleBy = function(w, O, A, F) {
2918
2918
  y.scaleTo(w, function() {
2919
2919
  var L = this.__zoom.k, M = typeof O == "function" ? O.apply(this, arguments) : O;
2920
2920
  return L * M;
2921
- }, R, F);
2922
- }, y.scaleTo = function(w, O, R, F) {
2921
+ }, A, F);
2922
+ }, y.scaleTo = function(w, O, A, F) {
2923
2923
  y.transform(w, function() {
2924
- var L = t.apply(this, arguments), M = this.__zoom, P = R == null ? S(L) : typeof R == "function" ? R.apply(this, arguments) : R, k = M.invert(P), V = typeof O == "function" ? O.apply(this, arguments) : O;
2924
+ var L = t.apply(this, arguments), M = this.__zoom, P = A == null ? S(L) : typeof A == "function" ? A.apply(this, arguments) : A, k = M.invert(P), V = typeof O == "function" ? O.apply(this, arguments) : O;
2925
2925
  return n(_(b(M, V), P, k), L, s);
2926
- }, R, F);
2927
- }, y.translateBy = function(w, O, R, F) {
2926
+ }, A, F);
2927
+ }, y.translateBy = function(w, O, A, F) {
2928
2928
  y.transform(w, function() {
2929
2929
  return n(this.__zoom.translate(
2930
2930
  typeof O == "function" ? O.apply(this, arguments) : O,
2931
- typeof R == "function" ? R.apply(this, arguments) : R
2931
+ typeof A == "function" ? A.apply(this, arguments) : A
2932
2932
  ), t.apply(this, arguments), s);
2933
2933
  }, null, F);
2934
- }, y.translateTo = function(w, O, R, F, L) {
2934
+ }, y.translateTo = function(w, O, A, F, L) {
2935
2935
  y.transform(w, function() {
2936
2936
  var M = t.apply(this, arguments), P = this.__zoom, k = F == null ? S(M) : typeof F == "function" ? F.apply(this, arguments) : F;
2937
2937
  return n(Mn.translate(k[0], k[1]).scale(P.k).translate(
2938
2938
  typeof O == "function" ? -O.apply(this, arguments) : -O,
2939
- typeof R == "function" ? -R.apply(this, arguments) : -R
2939
+ typeof A == "function" ? -A.apply(this, arguments) : -A
2940
2940
  ), M, s);
2941
2941
  }, F, L);
2942
2942
  };
2943
2943
  function b(w, O) {
2944
2944
  return O = Math.max(i[0], Math.min(i[1], O)), O === w.k ? w : new Pn(O, w.x, w.y);
2945
2945
  }
2946
- function _(w, O, R) {
2947
- var F = O[0] - R[0] * w.k, L = O[1] - R[1] * w.k;
2946
+ function _(w, O, A) {
2947
+ var F = O[0] - A[0] * w.k, L = O[1] - A[1] * w.k;
2948
2948
  return F === w.x && L === w.y ? w : new Pn(w.k, F, L);
2949
2949
  }
2950
2950
  function S(w) {
2951
2951
  return [(+w[0][0] + +w[1][0]) / 2, (+w[0][1] + +w[1][1]) / 2];
2952
2952
  }
2953
- function x(w, O, R, F) {
2953
+ function x(w, O, A, F) {
2954
2954
  w.on("start.zoom", function() {
2955
2955
  I(this, arguments).event(F).start();
2956
2956
  }).on("interrupt.zoom end.zoom", function() {
2957
2957
  I(this, arguments).event(F).end();
2958
2958
  }).tween("zoom", function() {
2959
- var L = this, M = arguments, P = I(L, M).event(F), k = t.apply(L, M), V = R == null ? S(k) : typeof R == "function" ? R.apply(L, M) : R, W = Math.max(k[1][0] - k[0][0], k[1][1] - k[0][1]), B = L.__zoom, q = typeof O == "function" ? O.apply(L, M) : O, Y = c(B.invert(V).concat(W / B.k), q.invert(V).concat(W / q.k));
2959
+ var L = this, M = arguments, P = I(L, M).event(F), k = t.apply(L, M), V = A == null ? S(k) : typeof A == "function" ? A.apply(L, M) : A, W = Math.max(k[1][0] - k[0][0], k[1][1] - k[0][1]), B = L.__zoom, q = typeof O == "function" ? O.apply(L, M) : O, Y = c(B.invert(V).concat(W / B.k), q.invert(V).concat(W / q.k));
2960
2960
  return function(G) {
2961
2961
  if (G === 1) G = q;
2962
2962
  else {
@@ -2967,8 +2967,8 @@ function xm() {
2967
2967
  };
2968
2968
  });
2969
2969
  }
2970
- function I(w, O, R) {
2971
- return !R && w.__zooming || new E(w, O);
2970
+ function I(w, O, A) {
2971
+ return !A && w.__zooming || new E(w, O);
2972
2972
  }
2973
2973
  function E(w, O) {
2974
2974
  this.that = w, this.args = O, this.active = 0, this.sourceEvent = null, this.extent = t.apply(w, O), this.taps = 0;
@@ -3003,44 +3003,44 @@ function xm() {
3003
3003
  };
3004
3004
  function C(w, ...O) {
3005
3005
  if (!e.apply(this, arguments)) return;
3006
- var R = I(this, O).event(w), F = this.__zoom, L = Math.max(i[0], Math.min(i[1], F.k * Math.pow(2, r.apply(this, arguments)))), M = Yt(w);
3007
- if (R.wheel)
3008
- (R.mouse[0][0] !== M[0] || R.mouse[0][1] !== M[1]) && (R.mouse[1] = F.invert(R.mouse[0] = M)), clearTimeout(R.wheel);
3006
+ var A = I(this, O).event(w), F = this.__zoom, L = Math.max(i[0], Math.min(i[1], F.k * Math.pow(2, r.apply(this, arguments)))), M = Yt(w);
3007
+ if (A.wheel)
3008
+ (A.mouse[0][0] !== M[0] || A.mouse[0][1] !== M[1]) && (A.mouse[1] = F.invert(A.mouse[0] = M)), clearTimeout(A.wheel);
3009
3009
  else {
3010
3010
  if (F.k === L) return;
3011
- R.mouse = [M, F.invert(M)], ms(this), R.start();
3011
+ A.mouse = [M, F.invert(M)], ms(this), A.start();
3012
3012
  }
3013
- So(w), R.wheel = setTimeout(P, p), R.zoom("mouse", n(_(b(F, L), R.mouse[0], R.mouse[1]), R.extent, s));
3013
+ So(w), A.wheel = setTimeout(P, p), A.zoom("mouse", n(_(b(F, L), A.mouse[0], A.mouse[1]), A.extent, s));
3014
3014
  function P() {
3015
- R.wheel = null, R.end();
3015
+ A.wheel = null, A.end();
3016
3016
  }
3017
3017
  }
3018
3018
  function T(w, ...O) {
3019
3019
  if (h || !e.apply(this, arguments)) return;
3020
- var R = w.currentTarget, F = I(this, O, !0).event(w), L = Ut(w.view).on("mousemove.zoom", V, !0).on("mouseup.zoom", W, !0), M = Yt(w, R), P = w.clientX, k = w.clientY;
3020
+ var A = w.currentTarget, F = I(this, O, !0).event(w), L = Ut(w.view).on("mousemove.zoom", V, !0).on("mouseup.zoom", W, !0), M = Yt(w, A), P = w.clientX, k = w.clientY;
3021
3021
  om(w.view), nc(w), F.mouse = [M, this.__zoom.invert(M)], ms(this), F.start();
3022
3022
  function V(B) {
3023
3023
  if (So(B), !F.moved) {
3024
3024
  var q = B.clientX - P, Y = B.clientY - k;
3025
3025
  F.moved = q * q + Y * Y > f;
3026
3026
  }
3027
- F.event(B).zoom("mouse", n(_(F.that.__zoom, F.mouse[0] = Yt(B, R), F.mouse[1]), F.extent, s));
3027
+ F.event(B).zoom("mouse", n(_(F.that.__zoom, F.mouse[0] = Yt(B, A), F.mouse[1]), F.extent, s));
3028
3028
  }
3029
3029
  function W(B) {
3030
3030
  L.on("mousemove.zoom mouseup.zoom", null), im(B.view, F.moved), So(B), F.event(B).end();
3031
3031
  }
3032
3032
  }
3033
- function A(w, ...O) {
3033
+ function R(w, ...O) {
3034
3034
  if (e.apply(this, arguments)) {
3035
- var R = this.__zoom, F = Yt(w.changedTouches ? w.changedTouches[0] : w, this), L = R.invert(F), M = R.k * (w.shiftKey ? 0.5 : 2), P = n(_(b(R, M), F, L), t.apply(this, O), s);
3035
+ var A = this.__zoom, F = Yt(w.changedTouches ? w.changedTouches[0] : w, this), L = A.invert(F), M = A.k * (w.shiftKey ? 0.5 : 2), P = n(_(b(A, M), F, L), t.apply(this, O), s);
3036
3036
  So(w), a > 0 ? Ut(this).transition().duration(a).call(x, P, F, w) : Ut(this).call(y.transform, P, F, w);
3037
3037
  }
3038
3038
  }
3039
3039
  function $(w, ...O) {
3040
3040
  if (e.apply(this, arguments)) {
3041
- var R = w.touches, F = R.length, L = I(this, O, w.changedTouches.length === F).event(w), M, P, k, V;
3041
+ var A = w.touches, F = A.length, L = I(this, O, w.changedTouches.length === F).event(w), M, P, k, V;
3042
3042
  for (nc(w), P = 0; P < F; ++P)
3043
- k = R[P], V = Yt(k, this), V = [V, this.__zoom.invert(V), k.identifier], L.touch0 ? !L.touch1 && L.touch0[2] !== V[2] && (L.touch1 = V, L.taps = 0) : (L.touch0 = V, M = !0, L.taps = 1 + !!u);
3043
+ k = A[P], V = Yt(k, this), V = [V, this.__zoom.invert(V), k.identifier], L.touch0 ? !L.touch1 && L.touch0[2] !== V[2] && (L.touch1 = V, L.taps = 0) : (L.touch0 = V, M = !0, L.taps = 1 + !!u);
3044
3044
  u && (u = clearTimeout(u)), M && (L.taps < 2 && (d = V[0], u = setTimeout(function() {
3045
3045
  u = null;
3046
3046
  }, m)), ms(this), L.start());
@@ -3048,26 +3048,26 @@ function xm() {
3048
3048
  }
3049
3049
  function H(w, ...O) {
3050
3050
  if (this.__zooming) {
3051
- var R = I(this, O).event(w), F = w.changedTouches, L = F.length, M, P, k, V;
3051
+ var A = I(this, O).event(w), F = w.changedTouches, L = F.length, M, P, k, V;
3052
3052
  for (So(w), M = 0; M < L; ++M)
3053
- P = F[M], k = Yt(P, this), R.touch0 && R.touch0[2] === P.identifier ? R.touch0[0] = k : R.touch1 && R.touch1[2] === P.identifier && (R.touch1[0] = k);
3054
- if (P = R.that.__zoom, R.touch1) {
3055
- var W = R.touch0[0], B = R.touch0[1], q = R.touch1[0], Y = R.touch1[1], G = (G = q[0] - W[0]) * G + (G = q[1] - W[1]) * G, Z = (Z = Y[0] - B[0]) * Z + (Z = Y[1] - B[1]) * Z;
3053
+ P = F[M], k = Yt(P, this), A.touch0 && A.touch0[2] === P.identifier ? A.touch0[0] = k : A.touch1 && A.touch1[2] === P.identifier && (A.touch1[0] = k);
3054
+ if (P = A.that.__zoom, A.touch1) {
3055
+ var W = A.touch0[0], B = A.touch0[1], q = A.touch1[0], Y = A.touch1[1], G = (G = q[0] - W[0]) * G + (G = q[1] - W[1]) * G, Z = (Z = Y[0] - B[0]) * Z + (Z = Y[1] - B[1]) * Z;
3056
3056
  P = b(P, Math.sqrt(G / Z)), k = [(W[0] + q[0]) / 2, (W[1] + q[1]) / 2], V = [(B[0] + Y[0]) / 2, (B[1] + Y[1]) / 2];
3057
- } else if (R.touch0) k = R.touch0[0], V = R.touch0[1];
3057
+ } else if (A.touch0) k = A.touch0[0], V = A.touch0[1];
3058
3058
  else return;
3059
- R.zoom("touch", n(_(P, k, V), R.extent, s));
3059
+ A.zoom("touch", n(_(P, k, V), A.extent, s));
3060
3060
  }
3061
3061
  }
3062
3062
  function D(w, ...O) {
3063
3063
  if (this.__zooming) {
3064
- var R = I(this, O).event(w), F = w.changedTouches, L = F.length, M, P;
3064
+ var A = I(this, O).event(w), F = w.changedTouches, L = F.length, M, P;
3065
3065
  for (nc(w), h && clearTimeout(h), h = setTimeout(function() {
3066
3066
  h = null;
3067
3067
  }, m), M = 0; M < L; ++M)
3068
- P = F[M], R.touch0 && R.touch0[2] === P.identifier ? delete R.touch0 : R.touch1 && R.touch1[2] === P.identifier && delete R.touch1;
3069
- if (R.touch1 && !R.touch0 && (R.touch0 = R.touch1, delete R.touch1), R.touch0) R.touch0[1] = this.__zoom.invert(R.touch0[0]);
3070
- else if (R.end(), R.taps === 2 && (P = Yt(P, this), Math.hypot(d[0] - P[0], d[1] - P[1]) < g)) {
3068
+ P = F[M], A.touch0 && A.touch0[2] === P.identifier ? delete A.touch0 : A.touch1 && A.touch1[2] === P.identifier && delete A.touch1;
3069
+ if (A.touch1 && !A.touch0 && (A.touch0 = A.touch1, delete A.touch1), A.touch0) A.touch0[1] = this.__zoom.invert(A.touch0[0]);
3070
+ else if (A.end(), A.taps === 2 && (P = Yt(P, this), Math.hypot(d[0] - P[0], d[1] - P[1]) < g)) {
3071
3071
  var k = Ut(this).on("dblclick.zoom");
3072
3072
  k && k.apply(this, arguments);
3073
3073
  }
@@ -3338,11 +3338,11 @@ function sb({ source: e, sourcePosition: t = ne.Bottom, target: n, targetPositio
3338
3338
  }
3339
3339
  }
3340
3340
  if (t !== r) {
3341
- const D = d === "x" ? "y" : "x", w = s[d] === a[D], O = c[D] > l[D], R = c[D] < l[D];
3342
- (s[d] === 1 && (!w && O || w && R) || s[d] !== 1 && (!w && R || w && O)) && (m = d === "x" ? E : C);
3341
+ const D = d === "x" ? "y" : "x", w = s[d] === a[D], O = c[D] > l[D], A = c[D] < l[D];
3342
+ (s[d] === 1 && (!w && O || w && A) || s[d] !== 1 && (!w && A || w && O)) && (m = d === "x" ? E : C);
3343
3343
  }
3344
- const T = { x: c.x + g.x, y: c.y + g.y }, A = { x: l.x + y.x, y: l.y + y.y }, $ = Math.max(Math.abs(T.x - m[0].x), Math.abs(A.x - m[0].x)), H = Math.max(Math.abs(T.y - m[0].y), Math.abs(A.y - m[0].y));
3345
- $ >= H ? (p = (T.x + A.x) / 2, f = m[0].y) : (p = m[0].x, f = (T.y + A.y) / 2);
3344
+ const T = { x: c.x + g.x, y: c.y + g.y }, R = { x: l.x + y.x, y: l.y + y.y }, $ = Math.max(Math.abs(T.x - m[0].x), Math.abs(R.x - m[0].x)), H = Math.max(Math.abs(T.y - m[0].y), Math.abs(R.y - m[0].y));
3345
+ $ >= H ? (p = (T.x + R.x) / 2, f = m[0].y) : (p = m[0].x, f = (T.y + R.y) / 2);
3346
3346
  }
3347
3347
  return [[
3348
3348
  e,
@@ -3649,8 +3649,8 @@ function Lm({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
3649
3649
  const { x, y: I } = Zn(e), E = u?.elementFromPoint(x, I), C = Hl(c, E), T = h?.getBoundingClientRect();
3650
3650
  if (!T || !C)
3651
3651
  return;
3652
- let A, $ = Zn(e, T), H = !1, D = null, w = !1, O = null;
3653
- const R = gb({
3652
+ let R, $ = Zn(e, T), H = !1, D = null, w = !1, O = null;
3653
+ const A = gb({
3654
3654
  nodes: y(),
3655
3655
  nodeId: n,
3656
3656
  handleId: t,
@@ -3678,7 +3678,7 @@ function Lm({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
3678
3678
  function L(P) {
3679
3679
  const { transform: k } = i();
3680
3680
  $ = Zn(P, T);
3681
- const { handle: V, validHandleResult: W } = pb(P, u, Zc($, k, !1, [1, 1]), p, R, (B) => jm(B, d, n, t, o ? "target" : "source", a, u));
3681
+ const { handle: V, validHandleResult: W } = pb(P, u, Zc($, k, !1, [1, 1]), p, A, (B) => jm(B, d, n, t, o ? "target" : "source", a, u));
3682
3682
  if (S = V, H || (F(), H = !0), O = W.handleDomNode, D = W.connection, w = W.isValid, s({
3683
3683
  connectionPosition: S && w ? km({
3684
3684
  x: S.x,
@@ -3687,11 +3687,11 @@ function Lm({ event: e, handleId: t, nodeId: n, onConnect: r, isTarget: o, getSt
3687
3687
  connectionStatus: yb(!!S, w),
3688
3688
  connectionEndHandle: W.endHandle
3689
3689
  }), !S && !w && !O)
3690
- return rc(A);
3691
- D.source !== D.target && O && (rc(A), A = O, O.classList.add("connecting", "react-flow__handle-connecting"), O.classList.toggle("valid", w), O.classList.toggle("react-flow__handle-valid", w));
3690
+ return rc(R);
3691
+ D.source !== D.target && O && (rc(R), R = O, O.classList.add("connecting", "react-flow__handle-connecting"), O.classList.toggle("valid", w), O.classList.toggle("react-flow__handle-valid", w));
3692
3692
  }
3693
3693
  function M(P) {
3694
- (S || O) && D && w && r?.(D), i().onConnectEnd?.(P), c && l?.(P), rc(A), b(), cancelAnimationFrame(_), H = !1, w = !1, D = null, O = null, u.removeEventListener("mousemove", L), u.removeEventListener("mouseup", M), u.removeEventListener("touchmove", L), u.removeEventListener("touchend", M);
3694
+ (S || O) && D && w && r?.(D), i().onConnectEnd?.(P), c && l?.(P), rc(R), b(), cancelAnimationFrame(_), H = !1, w = !1, D = null, O = null, u.removeEventListener("mousemove", L), u.removeEventListener("mouseup", M), u.removeEventListener("touchmove", L), u.removeEventListener("touchend", M);
3695
3695
  }
3696
3696
  u.addEventListener("mousemove", L), u.addEventListener("mouseup", M), u.addEventListener("touchmove", L), u.addEventListener("touchend", M);
3697
3697
  }
@@ -3709,8 +3709,8 @@ const Cd = () => !0, vb = (e) => ({
3709
3709
  const p = s || null, f = e === "target", g = et(), y = ub(), { connectOnClick: b, noPanClassName: _ } = ke(vb, Qe), { connecting: S, clickConnecting: x } = ke(xb(y, p, e), Qe);
3710
3710
  y || g.getState().onError?.("010", Qt.error010());
3711
3711
  const I = (T) => {
3712
- const { defaultEdgeOptions: A, onConnect: $, hasDefaultEdges: H } = g.getState(), D = {
3713
- ...A,
3712
+ const { defaultEdgeOptions: R, onConnect: $, hasDefaultEdges: H } = g.getState(), D = {
3713
+ ...R,
3714
3714
  ...T
3715
3715
  };
3716
3716
  if (H) {
@@ -3721,8 +3721,8 @@ const Cd = () => !0, vb = (e) => ({
3721
3721
  }, E = (T) => {
3722
3722
  if (!y)
3723
3723
  return;
3724
- const A = Tm(T);
3725
- o && (A && T.button === 0 || !A) && Lm({
3724
+ const R = Tm(T);
3725
+ o && (R && T.button === 0 || !R) && Lm({
3726
3726
  event: T,
3727
3727
  handleId: p,
3728
3728
  nodeId: y,
@@ -3731,20 +3731,20 @@ const Cd = () => !0, vb = (e) => ({
3731
3731
  getState: g.getState,
3732
3732
  setState: g.setState,
3733
3733
  isValidConnection: n || g.getState().isValidConnection || Cd
3734
- }), A ? u?.(T) : d?.(T);
3734
+ }), R ? u?.(T) : d?.(T);
3735
3735
  }, C = (T) => {
3736
- const { onClickConnectStart: A, onClickConnectEnd: $, connectionClickStartHandle: H, connectionMode: D, isValidConnection: w } = g.getState();
3736
+ const { onClickConnectStart: R, onClickConnectEnd: $, connectionClickStartHandle: H, connectionMode: D, isValidConnection: w } = g.getState();
3737
3737
  if (!y || !H && !o)
3738
3738
  return;
3739
3739
  if (!H) {
3740
- A?.(T, { nodeId: y, handleId: p, handleType: e }), g.setState({ connectionClickStartHandle: { nodeId: y, type: e, handleId: p } });
3740
+ R?.(T, { nodeId: y, handleId: p, handleType: e }), g.setState({ connectionClickStartHandle: { nodeId: y, type: e, handleId: p } });
3741
3741
  return;
3742
3742
  }
3743
- const O = bm(T.target), R = n || w || Cd, { connection: F, isValid: L } = jm({
3743
+ const O = bm(T.target), A = n || w || Cd, { connection: F, isValid: L } = jm({
3744
3744
  nodeId: y,
3745
3745
  id: p,
3746
3746
  type: e
3747
- }, D, H.nodeId, H.handleId || null, H.type, R, O);
3747
+ }, D, H.nodeId, H.handleId || null, H.type, A, O);
3748
3748
  L && I(F), $?.(T), g.setState({ connectionClickStartHandle: null });
3749
3749
  };
3750
3750
  return z.createElement("div", { "data-handleid": p, "data-nodeid": y, "data-handlepos": t, "data-id": `${y}-${p}-${e}`, className: st([
@@ -3834,14 +3834,14 @@ function pe(e, t, n) {
3834
3834
  typeof t < "u" && n({ [e]: t });
3835
3835
  }, [t]);
3836
3836
  }
3837
- const Cb = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: s, onClickConnectStart: a, onClickConnectEnd: c, nodesDraggable: l, nodesConnectable: u, nodesFocusable: d, edgesFocusable: h, edgesUpdatable: m, elevateNodesOnSelect: p, minZoom: f, maxZoom: g, nodeExtent: y, onNodesChange: b, onEdgesChange: _, elementsSelectable: S, connectionMode: x, snapGrid: I, snapToGrid: E, translateExtent: C, connectOnClick: T, defaultEdgeOptions: A, fitView: $, fitViewOptions: H, onNodesDelete: D, onEdgesDelete: w, onNodeDrag: O, onNodeDragStart: R, onNodeDragStop: F, onSelectionDrag: L, onSelectionDragStart: M, onSelectionDragStop: P, noPanClassName: k, nodeOrigin: V, rfId: W, autoPanOnConnect: B, autoPanOnNodeDrag: q, onError: Y, connectionRadius: G, isValidConnection: Z, nodeDragThreshold: J }) => {
3837
+ const Cb = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: o, onConnectStart: i, onConnectEnd: s, onClickConnectStart: a, onClickConnectEnd: c, nodesDraggable: l, nodesConnectable: u, nodesFocusable: d, edgesFocusable: h, edgesUpdatable: m, elevateNodesOnSelect: p, minZoom: f, maxZoom: g, nodeExtent: y, onNodesChange: b, onEdgesChange: _, elementsSelectable: S, connectionMode: x, snapGrid: I, snapToGrid: E, translateExtent: C, connectOnClick: T, defaultEdgeOptions: R, fitView: $, fitViewOptions: H, onNodesDelete: D, onEdgesDelete: w, onNodeDrag: O, onNodeDragStart: A, onNodeDragStop: F, onSelectionDrag: L, onSelectionDragStart: M, onSelectionDragStop: P, noPanClassName: k, nodeOrigin: V, rfId: W, autoPanOnConnect: B, autoPanOnNodeDrag: q, onError: Y, connectionRadius: G, isValidConnection: Z, nodeDragThreshold: J }) => {
3838
3838
  const { setNodes: X, setEdges: oe, setDefaultNodesAndEdges: j, setMinZoom: fe, setMaxZoom: Ee, setTranslateExtent: me, setNodeExtent: xe, reset: ae } = ke(_b, Qe), te = et();
3839
3839
  return ye(() => {
3840
- const Me = r?.map((St) => ({ ...St, ...A }));
3840
+ const Me = r?.map((St) => ({ ...St, ...R }));
3841
3841
  return j(n, Me), () => {
3842
3842
  ae();
3843
3843
  };
3844
- }, []), pe("defaultEdgeOptions", A, te.setState), pe("connectionMode", x, te.setState), pe("onConnect", o, te.setState), pe("onConnectStart", i, te.setState), pe("onConnectEnd", s, te.setState), pe("onClickConnectStart", a, te.setState), pe("onClickConnectEnd", c, te.setState), pe("nodesDraggable", l, te.setState), pe("nodesConnectable", u, te.setState), pe("nodesFocusable", d, te.setState), pe("edgesFocusable", h, te.setState), pe("edgesUpdatable", m, te.setState), pe("elementsSelectable", S, te.setState), pe("elevateNodesOnSelect", p, te.setState), pe("snapToGrid", E, te.setState), pe("snapGrid", I, te.setState), pe("onNodesChange", b, te.setState), pe("onEdgesChange", _, te.setState), pe("connectOnClick", T, te.setState), pe("fitViewOnInit", $, te.setState), pe("fitViewOnInitOptions", H, te.setState), pe("onNodesDelete", D, te.setState), pe("onEdgesDelete", w, te.setState), pe("onNodeDrag", O, te.setState), pe("onNodeDragStart", R, te.setState), pe("onNodeDragStop", F, te.setState), pe("onSelectionDrag", L, te.setState), pe("onSelectionDragStart", M, te.setState), pe("onSelectionDragStop", P, te.setState), pe("noPanClassName", k, te.setState), pe("nodeOrigin", V, te.setState), pe("rfId", W, te.setState), pe("autoPanOnConnect", B, te.setState), pe("autoPanOnNodeDrag", q, te.setState), pe("onError", Y, te.setState), pe("connectionRadius", G, te.setState), pe("isValidConnection", Z, te.setState), pe("nodeDragThreshold", J, te.setState), Nr(e, X), Nr(t, oe), Nr(f, fe), Nr(g, Ee), Nr(C, me), Nr(y, xe), null;
3844
+ }, []), pe("defaultEdgeOptions", R, te.setState), pe("connectionMode", x, te.setState), pe("onConnect", o, te.setState), pe("onConnectStart", i, te.setState), pe("onConnectEnd", s, te.setState), pe("onClickConnectStart", a, te.setState), pe("onClickConnectEnd", c, te.setState), pe("nodesDraggable", l, te.setState), pe("nodesConnectable", u, te.setState), pe("nodesFocusable", d, te.setState), pe("edgesFocusable", h, te.setState), pe("edgesUpdatable", m, te.setState), pe("elementsSelectable", S, te.setState), pe("elevateNodesOnSelect", p, te.setState), pe("snapToGrid", E, te.setState), pe("snapGrid", I, te.setState), pe("onNodesChange", b, te.setState), pe("onEdgesChange", _, te.setState), pe("connectOnClick", T, te.setState), pe("fitViewOnInit", $, te.setState), pe("fitViewOnInitOptions", H, te.setState), pe("onNodesDelete", D, te.setState), pe("onEdgesDelete", w, te.setState), pe("onNodeDrag", O, te.setState), pe("onNodeDragStart", A, te.setState), pe("onNodeDragStop", F, te.setState), pe("onSelectionDrag", L, te.setState), pe("onSelectionDragStart", M, te.setState), pe("onSelectionDragStop", P, te.setState), pe("noPanClassName", k, te.setState), pe("nodeOrigin", V, te.setState), pe("rfId", W, te.setState), pe("autoPanOnConnect", B, te.setState), pe("autoPanOnNodeDrag", q, te.setState), pe("onError", Y, te.setState), pe("connectionRadius", G, te.setState), pe("isValidConnection", Z, te.setState), pe("nodeDragThreshold", J, te.setState), Nr(e, X), Nr(t, oe), Nr(f, fe), Nr(g, Ee), Nr(C, me), Nr(y, xe), null;
3845
3845
  }, Id = { display: "none" }, Ib = {
3846
3846
  position: "absolute",
3847
3847
  width: 1,
@@ -4114,19 +4114,19 @@ function Wl() {
4114
4114
  }
4115
4115
  };
4116
4116
  }, []), d = qe(({ nodes: f, edges: g }) => {
4117
- const { nodeInternals: y, getNodes: b, edges: _, hasDefaultNodes: S, hasDefaultEdges: x, onNodesDelete: I, onEdgesDelete: E, onNodesChange: C, onEdgesChange: T } = t.getState(), A = (f || []).map((O) => O.id), $ = (g || []).map((O) => O.id), H = b().reduce((O, R) => {
4118
- const F = R.parentNode || R.parentId, L = !A.includes(R.id) && F && O.find((P) => P.id === F);
4119
- return (typeof R.deletable == "boolean" ? R.deletable : !0) && (A.includes(R.id) || L) && O.push(R), O;
4117
+ const { nodeInternals: y, getNodes: b, edges: _, hasDefaultNodes: S, hasDefaultEdges: x, onNodesDelete: I, onEdgesDelete: E, onNodesChange: C, onEdgesChange: T } = t.getState(), R = (f || []).map((O) => O.id), $ = (g || []).map((O) => O.id), H = b().reduce((O, A) => {
4118
+ const F = A.parentNode || A.parentId, L = !R.includes(A.id) && F && O.find((P) => P.id === F);
4119
+ return (typeof A.deletable == "boolean" ? A.deletable : !0) && (R.includes(A.id) || L) && O.push(A), O;
4120
4120
  }, []), D = _.filter((O) => typeof O.deletable == "boolean" ? O.deletable : !0), w = D.filter((O) => $.includes(O.id));
4121
4121
  if (H || w) {
4122
- const O = Dm(H, D), R = [...w, ...O], F = R.reduce((L, M) => (L.includes(M.id) || L.push(M.id), L), []);
4122
+ const O = Dm(H, D), A = [...w, ...O], F = A.reduce((L, M) => (L.includes(M.id) || L.push(M.id), L), []);
4123
4123
  if ((x || S) && (x && t.setState({
4124
4124
  edges: _.filter((L) => !F.includes(L.id))
4125
4125
  }), S && (H.forEach((L) => {
4126
4126
  y.delete(L.id);
4127
4127
  }), t.setState({
4128
4128
  nodeInternals: new Map(y)
4129
- }))), F.length > 0 && (E?.(R), T && T(F.map((L) => ({
4129
+ }))), F.length > 0 && (E?.(A), T && T(F.map((L) => ({
4130
4130
  id: L,
4131
4131
  type: "remove"
4132
4132
  })))), H.length > 0 && (I?.(H), C)) {
@@ -4228,7 +4228,7 @@ const Kl = {
4228
4228
  d3ZoomHandler: e.d3ZoomHandler,
4229
4229
  userSelectionActive: e.userSelectionActive
4230
4230
  }), Bb = ({ onMove: e, onMoveStart: t, onMoveEnd: n, onPaneContextMenu: r, zoomOnScroll: o = !0, zoomOnPinch: i = !0, panOnScroll: s = !1, panOnScrollSpeed: a = 0.5, panOnScrollMode: c = gr.Free, zoomOnDoubleClick: l = !0, elementsSelectable: u, panOnDrag: d = !0, defaultViewport: h, translateExtent: m, minZoom: p, maxZoom: f, zoomActivationKeyCode: g, preventScrolling: y = !0, children: b, noWheelClassName: _, noPanClassName: S }) => {
4231
- const x = de(), I = et(), E = de(!1), C = de(!1), T = de(null), A = de({ x: 0, y: 0, zoom: 0 }), { d3Zoom: $, d3Selection: H, d3ZoomHandler: D, userSelectionActive: w } = ke(Ub, Qe), O = si(g), R = de(0), F = de(!1), L = de();
4231
+ const x = de(), I = et(), E = de(!1), C = de(!1), T = de(null), R = de({ x: 0, y: 0, zoom: 0 }), { d3Zoom: $, d3Selection: H, d3ZoomHandler: D, userSelectionActive: w } = ke(Ub, Qe), O = si(g), A = de(0), F = de(!1), L = de();
4232
4232
  return jb(T), ye(() => {
4233
4233
  if (T.current) {
4234
4234
  const M = T.current.getBoundingClientRect(), P = xm().scaleExtent([p, f]).translateExtent(m), k = Ut(T.current).call(P), V = Mn.translate(h.x, h.y).scale(Zr(h.zoom, p, f)), W = [
@@ -4291,14 +4291,14 @@ const Kl = {
4291
4291
  $ && $.on("start", (M) => {
4292
4292
  if (!M.sourceEvent || M.sourceEvent.internal)
4293
4293
  return null;
4294
- R.current = M.sourceEvent?.button;
4294
+ A.current = M.sourceEvent?.button;
4295
4295
  const { onViewportChangeStart: P } = I.getState(), k = Ji(M.transform);
4296
- E.current = !0, A.current = k, M.sourceEvent?.type === "mousedown" && I.setState({ paneDragging: !0 }), P?.(k), t?.(M.sourceEvent, k);
4296
+ E.current = !0, R.current = k, M.sourceEvent?.type === "mousedown" && I.setState({ paneDragging: !0 }), P?.(k), t?.(M.sourceEvent, k);
4297
4297
  });
4298
4298
  }, [$, t]), ye(() => {
4299
4299
  $ && (w && !E.current ? $.on("zoom", null) : w || $.on("zoom", (M) => {
4300
4300
  const { onViewportChange: P } = I.getState();
4301
- if (I.setState({ transform: [M.transform.x, M.transform.y, M.transform.k] }), C.current = !!(r && Ad(d, R.current ?? 0)), (e || P) && !M.sourceEvent?.internal) {
4301
+ if (I.setState({ transform: [M.transform.x, M.transform.y, M.transform.k] }), C.current = !!(r && Ad(d, A.current ?? 0)), (e || P) && !M.sourceEvent?.internal) {
4302
4302
  const k = Ji(M.transform);
4303
4303
  P?.(k), e?.(M.sourceEvent, k);
4304
4304
  }
@@ -4308,9 +4308,9 @@ const Kl = {
4308
4308
  if (!M.sourceEvent || M.sourceEvent.internal)
4309
4309
  return null;
4310
4310
  const { onViewportChangeEnd: P } = I.getState();
4311
- if (E.current = !1, I.setState({ paneDragging: !1 }), r && Ad(d, R.current ?? 0) && !C.current && r(M.sourceEvent), C.current = !1, (n || P) && Lb(A.current, M.transform)) {
4311
+ if (E.current = !1, I.setState({ paneDragging: !1 }), r && Ad(d, A.current ?? 0) && !C.current && r(M.sourceEvent), C.current = !1, (n || P) && Lb(R.current, M.transform)) {
4312
4312
  const k = Ji(M.transform);
4313
- A.current = k, clearTimeout(x.current), x.current = setTimeout(() => {
4313
+ R.current = k, clearTimeout(x.current), x.current = setTimeout(() => {
4314
4314
  P?.(k), n?.(M.sourceEvent, k);
4315
4315
  }, s ? 150 : 0);
4316
4316
  }
@@ -4433,19 +4433,19 @@ const ic = (e, t) => (n) => {
4433
4433
  const { resetSelectedElements: w, domNode: O } = m.getState();
4434
4434
  if (g.current = O?.getBoundingClientRect(), !b || !e || D.button !== 0 || D.target !== h.current || !g.current)
4435
4435
  return;
4436
- const { x: R, y: F } = Zn(D, g.current);
4436
+ const { x: A, y: F } = Zn(D, g.current);
4437
4437
  w(), m.setState({
4438
4438
  userSelectionRect: {
4439
4439
  width: 0,
4440
4440
  height: 0,
4441
- startX: R,
4441
+ startX: A,
4442
4442
  startY: F,
4443
- x: R,
4443
+ x: A,
4444
4444
  y: F
4445
4445
  }
4446
4446
  }), r?.(D);
4447
4447
  }, T = (D) => {
4448
- const { userSelectionRect: w, nodeInternals: O, edges: R, transform: F, onNodesChange: L, onEdgesChange: M, nodeOrigin: P, getNodes: k } = m.getState();
4448
+ const { userSelectionRect: w, nodeInternals: O, edges: A, transform: F, onNodesChange: L, onEdgesChange: M, nodeOrigin: P, getNodes: k } = m.getState();
4449
4449
  if (!e || !g.current || !w)
4450
4450
  return;
4451
4451
  m.setState({ userSelectionActive: !0, nodesSelectionActive: !1 });
@@ -4455,7 +4455,7 @@ const ic = (e, t) => (n) => {
4455
4455
  y: V.y < B ? V.y : B,
4456
4456
  width: Math.abs(V.x - W),
4457
4457
  height: Math.abs(V.y - B)
4458
- }, Y = k(), G = Mm(O, q, F, t === ii.Partial, !0, P), Z = Dm(G, R).map((X) => X.id), J = G.map((X) => X.id);
4458
+ }, Y = k(), G = Mm(O, q, F, t === ii.Partial, !0, P), Z = Dm(G, A).map((X) => X.id), J = G.map((X) => X.id);
4459
4459
  if (p.current !== J.length) {
4460
4460
  p.current = J.length;
4461
4461
  const X = zr(Y, J);
@@ -4463,13 +4463,13 @@ const ic = (e, t) => (n) => {
4463
4463
  }
4464
4464
  if (f.current !== Z.length) {
4465
4465
  f.current = Z.length;
4466
- const X = zr(R, Z);
4466
+ const X = zr(A, Z);
4467
4467
  X.length && M?.(X);
4468
4468
  }
4469
4469
  m.setState({
4470
4470
  userSelectionRect: q
4471
4471
  });
4472
- }, A = (D) => {
4472
+ }, R = (D) => {
4473
4473
  if (D.button !== 0)
4474
4474
  return;
4475
4475
  const { userSelectionRect: w } = m.getState();
@@ -4479,7 +4479,7 @@ const ic = (e, t) => (n) => {
4479
4479
  }, H = b && (e || y);
4480
4480
  return z.createElement(
4481
4481
  "div",
4482
- { className: st(["react-flow__pane", { dragging: _, selection: e }]), onClick: H ? void 0 : ic(x, h), onContextMenu: ic(I, h), onWheel: ic(E, h), onMouseEnter: H ? void 0 : c, onMouseDown: H ? C : void 0, onMouseMove: H ? T : l, onMouseUp: H ? A : void 0, onMouseLeave: H ? $ : u, ref: h, style: Kl },
4482
+ { className: st(["react-flow__pane", { dragging: _, selection: e }]), onClick: H ? void 0 : ic(x, h), onContextMenu: ic(I, h), onWheel: ic(E, h), onMouseEnter: H ? void 0 : c, onMouseDown: H ? C : void 0, onMouseMove: H ? T : l, onMouseUp: H ? R : void 0, onMouseLeave: H ? $ : u, ref: h, style: Kl },
4483
4483
  d,
4484
4484
  z.createElement(zb, null)
4485
4485
  );
@@ -4627,7 +4627,7 @@ function rg({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
4627
4627
  return ye(() => {
4628
4628
  if (e?.current) {
4629
4629
  const S = Ut(e.current), x = ({ x: C, y: T }) => {
4630
- const { nodeInternals: A, onNodeDrag: $, onSelectionDrag: H, updateNodePositions: D, nodeExtent: w, snapGrid: O, snapToGrid: R, nodeOrigin: F, onError: L } = a.getState();
4630
+ const { nodeInternals: R, onNodeDrag: $, onSelectionDrag: H, updateNodePositions: D, nodeExtent: w, snapGrid: O, snapToGrid: A, nodeOrigin: F, onError: L } = a.getState();
4631
4631
  d.current = { x: C, y: T };
4632
4632
  let M = !1, P = { x: 0, y: 0, x2: 0, y2: 0 };
4633
4633
  if (u.current.length > 1 && w) {
@@ -4636,13 +4636,13 @@ function rg({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
4636
4636
  }
4637
4637
  if (u.current = u.current.map((V) => {
4638
4638
  const W = { x: C - V.distance.x, y: T - V.distance.y };
4639
- R && (W.x = O[0] * Math.round(W.x / O[0]), W.y = O[1] * Math.round(W.y / O[1]));
4639
+ A && (W.x = O[0] * Math.round(W.x / O[0]), W.y = O[1] * Math.round(W.y / O[1]));
4640
4640
  const B = [
4641
4641
  [w[0][0], w[0][1]],
4642
4642
  [w[1][0], w[1][1]]
4643
4643
  ];
4644
4644
  u.current.length > 1 && w && !V.extent && (B[0][0] = V.positionAbsolute.x - P.x + w[0][0], B[1][0] = V.positionAbsolute.x + (V.width ?? 0) - P.x2 + w[1][0], B[0][1] = V.positionAbsolute.y - P.y + w[0][1], B[1][1] = V.positionAbsolute.y + (V.height ?? 0) - P.y2 + w[1][1]);
4645
- const q = ng(V, W, A, B, F, L);
4645
+ const q = ng(V, W, R, B, F, L);
4646
4646
  return M = M || V.position.x !== q.position.x || V.position.y !== q.position.y, V.position = q.position, V.positionAbsolute = q.positionAbsolute, V;
4647
4647
  }), !M)
4648
4648
  return;
@@ -4652,7 +4652,7 @@ function rg({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
4652
4652
  const [V, W] = sc({
4653
4653
  nodeId: o,
4654
4654
  dragItems: u.current,
4655
- nodeInternals: A
4655
+ nodeInternals: R
4656
4656
  });
4657
4657
  k(f.current, V, W);
4658
4658
  }
@@ -4661,21 +4661,21 @@ function rg({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
4661
4661
  return;
4662
4662
  const [C, T] = Em(p.current, m.current);
4663
4663
  if (C !== 0 || T !== 0) {
4664
- const { transform: A, panBy: $ } = a.getState();
4665
- d.current.x = (d.current.x ?? 0) - C / A[2], d.current.y = (d.current.y ?? 0) - T / A[2], $({ x: C, y: T }) && x(d.current);
4664
+ const { transform: R, panBy: $ } = a.getState();
4665
+ d.current.x = (d.current.x ?? 0) - C / R[2], d.current.y = (d.current.y ?? 0) - T / R[2], $({ x: C, y: T }) && x(d.current);
4666
4666
  }
4667
4667
  h.current = requestAnimationFrame(I);
4668
4668
  }, E = (C) => {
4669
- const { nodeInternals: T, multiSelectionActive: A, nodesDraggable: $, unselectNodesAndEdges: H, onNodeDragStart: D, onSelectionDragStart: w } = a.getState();
4669
+ const { nodeInternals: T, multiSelectionActive: R, nodesDraggable: $, unselectNodesAndEdges: H, onNodeDragStart: D, onSelectionDragStart: w } = a.getState();
4670
4670
  y.current = !0;
4671
4671
  const O = o ? D : ac(w);
4672
- (!s || !i) && !A && o && (T.get(o)?.selected || H()), o && i && s && el({
4672
+ (!s || !i) && !R && o && (T.get(o)?.selected || H()), o && i && s && el({
4673
4673
  id: o,
4674
4674
  store: a,
4675
4675
  nodeRef: e
4676
4676
  });
4677
- const R = _(C);
4678
- if (d.current = R, u.current = Wb(T, $, R, o), O && u.current) {
4677
+ const A = _(C);
4678
+ if (d.current = A, u.current = Wb(T, $, A, o), O && u.current) {
4679
4679
  const [F, L] = sc({
4680
4680
  nodeId: o,
4681
4681
  dragItems: u.current,
@@ -4688,34 +4688,34 @@ function rg({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
4688
4688
  S.on(".drag", null);
4689
4689
  else {
4690
4690
  const C = aw().on("start", (T) => {
4691
- const { domNode: A, nodeDragThreshold: $ } = a.getState();
4691
+ const { domNode: R, nodeDragThreshold: $ } = a.getState();
4692
4692
  $ === 0 && E(T), b.current = !1;
4693
4693
  const H = _(T);
4694
- d.current = H, m.current = A?.getBoundingClientRect() || null, p.current = Zn(T.sourceEvent, m.current);
4694
+ d.current = H, m.current = R?.getBoundingClientRect() || null, p.current = Zn(T.sourceEvent, m.current);
4695
4695
  }).on("drag", (T) => {
4696
- const A = _(T), { autoPanOnNodeDrag: $, nodeDragThreshold: H } = a.getState();
4696
+ const R = _(T), { autoPanOnNodeDrag: $, nodeDragThreshold: H } = a.getState();
4697
4697
  if (T.sourceEvent.type === "touchmove" && T.sourceEvent.touches.length > 1 && (b.current = !0), !b.current) {
4698
4698
  if (!g.current && y.current && $ && (g.current = !0, I()), !y.current) {
4699
- const D = A.xSnapped - (d?.current?.x ?? 0), w = A.ySnapped - (d?.current?.y ?? 0);
4699
+ const D = R.xSnapped - (d?.current?.x ?? 0), w = R.ySnapped - (d?.current?.y ?? 0);
4700
4700
  Math.sqrt(D * D + w * w) > H && E(T);
4701
4701
  }
4702
- (d.current.x !== A.xSnapped || d.current.y !== A.ySnapped) && u.current && y.current && (f.current = T.sourceEvent, p.current = Zn(T.sourceEvent, m.current), x(A));
4702
+ (d.current.x !== R.xSnapped || d.current.y !== R.ySnapped) && u.current && y.current && (f.current = T.sourceEvent, p.current = Zn(T.sourceEvent, m.current), x(R));
4703
4703
  }
4704
4704
  }).on("end", (T) => {
4705
4705
  if (!(!y.current || b.current) && (l(!1), g.current = !1, y.current = !1, cancelAnimationFrame(h.current), u.current)) {
4706
- const { updateNodePositions: A, nodeInternals: $, onNodeDragStop: H, onSelectionDragStop: D } = a.getState(), w = o ? H : ac(D);
4707
- if (A(u.current, !1, !1), w) {
4708
- const [O, R] = sc({
4706
+ const { updateNodePositions: R, nodeInternals: $, onNodeDragStop: H, onSelectionDragStop: D } = a.getState(), w = o ? H : ac(D);
4707
+ if (R(u.current, !1, !1), w) {
4708
+ const [O, A] = sc({
4709
4709
  nodeId: o,
4710
4710
  dragItems: u.current,
4711
4711
  nodeInternals: $
4712
4712
  });
4713
- w(T.sourceEvent, O, R);
4713
+ w(T.sourceEvent, O, A);
4714
4714
  }
4715
4715
  }
4716
4716
  }).filter((T) => {
4717
- const A = T.target;
4718
- return !T.button && (!n || !Od(A, `.${n}`, e)) && (!r || Od(A, r, e));
4717
+ const R = T.target;
4718
+ return !T.button && (!n || !Od(R, `.${n}`, e)) && (!r || Od(R, r, e));
4719
4719
  });
4720
4720
  return S.call(C), () => {
4721
4721
  S.on(".drag", null);
@@ -4756,7 +4756,7 @@ const Kr = {
4756
4756
  ArrowRight: { x: 1, y: 0 }
4757
4757
  };
4758
4758
  var Io = (e) => {
4759
- const t = ({ id: n, type: r, data: o, xPos: i, yPos: s, xPosOrigin: a, yPosOrigin: c, selected: l, onClick: u, onMouseEnter: d, onMouseMove: h, onMouseLeave: m, onContextMenu: p, onDoubleClick: f, style: g, className: y, isDraggable: b, isSelectable: _, isConnectable: S, isFocusable: x, selectNodesOnDrag: I, sourcePosition: E, targetPosition: C, hidden: T, resizeObserver: A, dragHandle: $, zIndex: H, isParent: D, noDragClassName: w, noPanClassName: O, initialized: R, disableKeyboardA11y: F, ariaLabel: L, rfId: M, hasHandleBounds: P }) => {
4759
+ const t = ({ id: n, type: r, data: o, xPos: i, yPos: s, xPosOrigin: a, yPosOrigin: c, selected: l, onClick: u, onMouseEnter: d, onMouseMove: h, onMouseLeave: m, onContextMenu: p, onDoubleClick: f, style: g, className: y, isDraggable: b, isSelectable: _, isConnectable: S, isFocusable: x, selectNodesOnDrag: I, sourcePosition: E, targetPosition: C, hidden: T, resizeObserver: R, dragHandle: $, zIndex: H, isParent: D, noDragClassName: w, noPanClassName: O, initialized: A, disableKeyboardA11y: F, ariaLabel: L, rfId: M, hasHandleBounds: P }) => {
4760
4760
  const k = et(), V = de(null), W = de(null), B = de(E), q = de(C), Y = de(r), G = _ || b || u || d || h || m, Z = og(), J = Co(n, k.getState, d), X = Co(n, k.getState, h), oe = Co(n, k.getState, m), j = Co(n, k.getState, p), fe = Co(n, k.getState, f), Ee = (ae) => {
4761
4761
  const { nodeDragThreshold: te } = k.getState();
4762
4762
  if (_ && (!I || !b || te > 0) && el({
@@ -4786,13 +4786,13 @@ var Io = (e) => {
4786
4786
  }));
4787
4787
  };
4788
4788
  ye(() => () => {
4789
- W.current && (A?.unobserve(W.current), W.current = null);
4789
+ W.current && (R?.unobserve(W.current), W.current = null);
4790
4790
  }, []), ye(() => {
4791
4791
  if (V.current && !T) {
4792
4792
  const ae = V.current;
4793
- (!R || !P || W.current !== ae) && (W.current && A?.unobserve(W.current), A?.observe(ae), W.current = ae);
4793
+ (!A || !P || W.current !== ae) && (W.current && R?.unobserve(W.current), R?.observe(ae), W.current = ae);
4794
4794
  }
4795
- }, [T, R, P]), ye(() => {
4795
+ }, [T, A, P]), ye(() => {
4796
4796
  const ae = Y.current !== r, te = B.current !== E, Me = q.current !== C;
4797
4797
  V.current && (ae || te || Me) && (ae && (Y.current = r), te && (B.current = E), Me && (q.current = C), k.getState().updateNodeDimensions([{ id: n, nodeElement: V.current, forceUpdate: !0 }]));
4798
4798
  }, [n, r, E, C]);
@@ -4825,7 +4825,7 @@ var Io = (e) => {
4825
4825
  zIndex: H,
4826
4826
  transform: `translate(${a}px,${c}px)`,
4827
4827
  pointerEvents: G ? "all" : "none",
4828
- visibility: R ? "visible" : "hidden",
4828
+ visibility: A ? "visible" : "hidden",
4829
4829
  ...g
4830
4830
  }, "data-id": n, "data-testid": `rf__node-${n}`, onMouseEnter: J, onMouseMove: X, onMouseLeave: oe, onContextMenu: j, onClick: Ee, onDoubleClick: fe, onKeyDown: x ? me : void 0, tabIndex: x ? 0 : void 0, role: x ? "button" : void 0, "aria-describedby": F ? void 0 : `${Km}-${M}`, "aria-label": L },
4831
4831
  z.createElement(
@@ -4879,8 +4879,8 @@ function Xb({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
4879
4879
  );
4880
4880
  }
4881
4881
  var Jb = $e(Xb);
4882
- const Zb = (e) => e.nodesSelectionActive, ig = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, deleteKeyCode: a, onMove: c, onMoveStart: l, onMoveEnd: u, selectionKeyCode: d, selectionOnDrag: h, selectionMode: m, onSelectionStart: p, onSelectionEnd: f, multiSelectionKeyCode: g, panActivationKeyCode: y, zoomActivationKeyCode: b, elementsSelectable: _, zoomOnScroll: S, zoomOnPinch: x, panOnScroll: I, panOnScrollSpeed: E, panOnScrollMode: C, zoomOnDoubleClick: T, panOnDrag: A, defaultViewport: $, translateExtent: H, minZoom: D, maxZoom: w, preventScrolling: O, onSelectionContextMenu: R, noWheelClassName: F, noPanClassName: L, disableKeyboardA11y: M }) => {
4883
- const P = ke(Zb), k = si(d), V = si(y), W = V || A, B = V || I, q = k || h && W !== !0;
4882
+ const Zb = (e) => e.nodesSelectionActive, ig = ({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, deleteKeyCode: a, onMove: c, onMoveStart: l, onMoveEnd: u, selectionKeyCode: d, selectionOnDrag: h, selectionMode: m, onSelectionStart: p, onSelectionEnd: f, multiSelectionKeyCode: g, panActivationKeyCode: y, zoomActivationKeyCode: b, elementsSelectable: _, zoomOnScroll: S, zoomOnPinch: x, panOnScroll: I, panOnScrollSpeed: E, panOnScrollMode: C, zoomOnDoubleClick: T, panOnDrag: R, defaultViewport: $, translateExtent: H, minZoom: D, maxZoom: w, preventScrolling: O, onSelectionContextMenu: A, noWheelClassName: F, noPanClassName: L, disableKeyboardA11y: M }) => {
4883
+ const P = ke(Zb), k = si(d), V = si(y), W = V || R, B = V || I, q = k || h && W !== !0;
4884
4884
  return Fb({ deleteKeyCode: a, multiSelectionKeyCode: g }), z.createElement(
4885
4885
  Bb,
4886
4886
  { onMove: c, onMoveStart: l, onMoveEnd: u, onPaneContextMenu: i, elementsSelectable: _, zoomOnScroll: S, zoomOnPinch: x, panOnScroll: B, panOnScrollSpeed: E, panOnScrollMode: C, zoomOnDoubleClick: T, panOnDrag: !k && W, defaultViewport: $, translateExtent: H, minZoom: D, maxZoom: w, zoomActivationKeyCode: b, preventScrolling: O, noWheelClassName: F, noPanClassName: L },
@@ -4888,7 +4888,7 @@ const Zb = (e) => e.nodesSelectionActive, ig = ({ children: e, onPaneClick: t, o
4888
4888
  eg,
4889
4889
  { onSelectionStart: p, onSelectionEnd: f, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, panOnDrag: W, isSelecting: !!q, selectionMode: m },
4890
4890
  e,
4891
- P && z.createElement(Jb, { onSelectionContextMenu: R, noPanClassName: L, disableKeyboardA11y: M })
4891
+ P && z.createElement(Jb, { onSelectionContextMenu: A, noPanClassName: L, disableKeyboardA11y: M })
4892
4892
  )
4893
4893
  );
4894
4894
  };
@@ -4952,14 +4952,14 @@ sg.displayName = "NodeRenderer";
4952
4952
  var oS = $e(sg);
4953
4953
  const iS = (e, t, n) => n === ne.Left ? e - t : n === ne.Right ? e + t : e, sS = (e, t, n) => n === ne.Top ? e - t : n === ne.Bottom ? e + t : e, Md = "react-flow__edgeupdater", Dd = ({ position: e, centerX: t, centerY: n, radius: r = 10, onMouseDown: o, onMouseEnter: i, onMouseOut: s, type: a }) => z.createElement("circle", { onMouseDown: o, onMouseEnter: i, onMouseOut: s, className: st([Md, `${Md}-${a}`]), cx: iS(t, r, e), cy: sS(n, r, e), r, stroke: "transparent", fill: "transparent" }), aS = () => !0;
4954
4954
  var kr = (e) => {
4955
- const t = ({ id: n, className: r, type: o, data: i, onClick: s, onEdgeDoubleClick: a, selected: c, animated: l, label: u, labelStyle: d, labelShowBg: h, labelBgStyle: m, labelBgPadding: p, labelBgBorderRadius: f, style: g, source: y, target: b, sourceX: _, sourceY: S, targetX: x, targetY: I, sourcePosition: E, targetPosition: C, elementsSelectable: T, hidden: A, sourceHandleId: $, targetHandleId: H, onContextMenu: D, onMouseEnter: w, onMouseMove: O, onMouseLeave: R, reconnectRadius: F, onReconnect: L, onReconnectStart: M, onReconnectEnd: P, markerEnd: k, markerStart: V, rfId: W, ariaLabel: B, isFocusable: q, isReconnectable: Y, pathOptions: G, interactionWidth: Z, disableKeyboardA11y: J }) => {
4955
+ const t = ({ id: n, className: r, type: o, data: i, onClick: s, onEdgeDoubleClick: a, selected: c, animated: l, label: u, labelStyle: d, labelShowBg: h, labelBgStyle: m, labelBgPadding: p, labelBgBorderRadius: f, style: g, source: y, target: b, sourceX: _, sourceY: S, targetX: x, targetY: I, sourcePosition: E, targetPosition: C, elementsSelectable: T, hidden: R, sourceHandleId: $, targetHandleId: H, onContextMenu: D, onMouseEnter: w, onMouseMove: O, onMouseLeave: A, reconnectRadius: F, onReconnect: L, onReconnectStart: M, onReconnectEnd: P, markerEnd: k, markerStart: V, rfId: W, ariaLabel: B, isFocusable: q, isReconnectable: Y, pathOptions: G, interactionWidth: Z, disableKeyboardA11y: J }) => {
4956
4956
  const X = de(null), [oe, j] = ve(!1), [fe, Ee] = ve(!1), me = et(), xe = Jt(() => `url('#${Jc(V, W)}')`, [V, W]), ae = Jt(() => `url('#${Jc(k, W)}')`, [k, W]);
4957
- if (A)
4957
+ if (R)
4958
4958
  return null;
4959
4959
  const te = (tt) => {
4960
4960
  const { edges: Mt, addSelectedEdges: _n, unselectNodesAndEdges: Cn, multiSelectionActive: Hn } = me.getState(), Dt = Mt.find((In) => In.id === n);
4961
4961
  Dt && (T && (me.setState({ nodesSelectionActive: !1 }), Dt.selected && Hn ? (Cn({ nodes: [], edges: [Dt] }), X.current?.blur()) : _n([n])), s && s(tt, Dt));
4962
- }, Me = _o(n, me.getState, a), St = _o(n, me.getState, D), En = _o(n, me.getState, w), on = _o(n, me.getState, O), Bn = _o(n, me.getState, R), Kt = (tt, Mt) => {
4962
+ }, Me = _o(n, me.getState, a), St = _o(n, me.getState, D), En = _o(n, me.getState, w), on = _o(n, me.getState, O), Bn = _o(n, me.getState, A), Kt = (tt, Mt) => {
4963
4963
  if (tt.button !== 0)
4964
4964
  return;
4965
4965
  const { edges: _n, isValidConnection: Cn } = me.getState(), Hn = Mt ? b : y, Dt = (Mt ? H : $) || null, In = Mt ? "target" : "source", cr = Cn || aS, Rr = Mt, $t = _n.find((cn) => cn.id === n);
@@ -5172,21 +5172,21 @@ const wS = (e) => ({
5172
5172
  nodeInternals: e.nodeInternals,
5173
5173
  onError: e.onError
5174
5174
  }), cg = ({ defaultMarkerColor: e, onlyRenderVisibleElements: t, elevateEdgesOnSelect: n, rfId: r, edgeTypes: o, noPanClassName: i, onEdgeContextMenu: s, onEdgeMouseEnter: a, onEdgeMouseMove: c, onEdgeMouseLeave: l, onEdgeClick: u, onEdgeDoubleClick: d, onReconnect: h, onReconnectStart: m, onReconnectEnd: p, reconnectRadius: f, children: g, disableKeyboardA11y: y }) => {
5175
- const { edgesFocusable: b, edgesUpdatable: _, elementsSelectable: S, width: x, height: I, connectionMode: E, nodeInternals: C, onError: T } = ke(wS, Qe), A = hS(t, C, n);
5175
+ const { edgesFocusable: b, edgesUpdatable: _, elementsSelectable: S, width: x, height: I, connectionMode: E, nodeInternals: C, onError: T } = ke(wS, Qe), R = hS(t, C, n);
5176
5176
  return x ? z.createElement(
5177
5177
  z.Fragment,
5178
5178
  null,
5179
- A.map(({ level: $, edges: H, isMaxLevel: D }) => z.createElement(
5179
+ R.map(({ level: $, edges: H, isMaxLevel: D }) => z.createElement(
5180
5180
  "svg",
5181
5181
  { key: $, style: { zIndex: $ }, width: x, height: I, className: "react-flow__edges react-flow__container" },
5182
5182
  D && z.createElement(xS, { defaultColor: e, rfId: r }),
5183
5183
  z.createElement("g", null, H.map((w) => {
5184
- const [O, R, F] = jd(C.get(w.source)), [L, M, P] = jd(C.get(w.target));
5184
+ const [O, A, F] = jd(C.get(w.source)), [L, M, P] = jd(C.get(w.target));
5185
5185
  if (!F || !P)
5186
5186
  return null;
5187
5187
  let k = w.type || "default";
5188
5188
  o[k] || (T?.("011", Qt.error011(k)), k = "default");
5189
- const V = o[k] || o.default, W = E === _r.Strict ? M.target : (M.target ?? []).concat(M.source ?? []), B = Fd(R.source, w.sourceHandle), q = Fd(W, w.targetHandle), Y = B?.position || ne.Bottom, G = q?.position || ne.Top, Z = !!(w.focusable || b && typeof w.focusable > "u"), J = w.reconnectable || w.updatable, X = typeof h < "u" && (J || _ && typeof J > "u");
5189
+ const V = o[k] || o.default, W = E === _r.Strict ? M.target : (M.target ?? []).concat(M.source ?? []), B = Fd(A.source, w.sourceHandle), q = Fd(W, w.targetHandle), Y = B?.position || ne.Bottom, G = q?.position || ne.Top, Z = !!(w.focusable || b && typeof w.focusable > "u"), J = w.reconnectable || w.updatable, X = typeof h < "u" && (J || _ && typeof J > "u");
5190
5190
  if (!B || !q)
5191
5191
  return T?.("008", Qt.error008(B, w)), null;
5192
5192
  const { sourceX: oe, sourceY: j, targetX: fe, targetY: Ee } = lS(O, B, Y, L, q, G);
@@ -5275,11 +5275,11 @@ function Ud(e, t) {
5275
5275
  return t(e);
5276
5276
  }, [e]);
5277
5277
  }
5278
- const ug = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: s, onEdgeClick: a, onNodeDoubleClick: c, onEdgeDoubleClick: l, onNodeMouseEnter: u, onNodeMouseMove: d, onNodeMouseLeave: h, onNodeContextMenu: m, onSelectionContextMenu: p, onSelectionStart: f, onSelectionEnd: g, connectionLineType: y, connectionLineStyle: b, connectionLineComponent: _, connectionLineContainerStyle: S, selectionKeyCode: x, selectionOnDrag: I, selectionMode: E, multiSelectionKeyCode: C, panActivationKeyCode: T, zoomActivationKeyCode: A, deleteKeyCode: $, onlyRenderVisibleElements: H, elementsSelectable: D, selectNodesOnDrag: w, defaultViewport: O, translateExtent: R, minZoom: F, maxZoom: L, preventScrolling: M, defaultMarkerColor: P, zoomOnScroll: k, zoomOnPinch: V, panOnScroll: W, panOnScrollSpeed: B, panOnScrollMode: q, zoomOnDoubleClick: Y, panOnDrag: G, onPaneClick: Z, onPaneMouseEnter: J, onPaneMouseMove: X, onPaneMouseLeave: oe, onPaneScroll: j, onPaneContextMenu: fe, onEdgeContextMenu: Ee, onEdgeMouseEnter: me, onEdgeMouseMove: xe, onEdgeMouseLeave: ae, onReconnect: te, onReconnectStart: Me, onReconnectEnd: St, reconnectRadius: En, noDragClassName: on, noWheelClassName: Bn, noPanClassName: Kt, elevateEdgesOnSelect: bn, disableKeyboardA11y: sn, nodeOrigin: an, nodeExtent: Vn, rfId: Sn }) => {
5278
+ const ug = ({ nodeTypes: e, edgeTypes: t, onMove: n, onMoveStart: r, onMoveEnd: o, onInit: i, onNodeClick: s, onEdgeClick: a, onNodeDoubleClick: c, onEdgeDoubleClick: l, onNodeMouseEnter: u, onNodeMouseMove: d, onNodeMouseLeave: h, onNodeContextMenu: m, onSelectionContextMenu: p, onSelectionStart: f, onSelectionEnd: g, connectionLineType: y, connectionLineStyle: b, connectionLineComponent: _, connectionLineContainerStyle: S, selectionKeyCode: x, selectionOnDrag: I, selectionMode: E, multiSelectionKeyCode: C, panActivationKeyCode: T, zoomActivationKeyCode: R, deleteKeyCode: $, onlyRenderVisibleElements: H, elementsSelectable: D, selectNodesOnDrag: w, defaultViewport: O, translateExtent: A, minZoom: F, maxZoom: L, preventScrolling: M, defaultMarkerColor: P, zoomOnScroll: k, zoomOnPinch: V, panOnScroll: W, panOnScrollSpeed: B, panOnScrollMode: q, zoomOnDoubleClick: Y, panOnDrag: G, onPaneClick: Z, onPaneMouseEnter: J, onPaneMouseMove: X, onPaneMouseLeave: oe, onPaneScroll: j, onPaneContextMenu: fe, onEdgeContextMenu: Ee, onEdgeMouseEnter: me, onEdgeMouseMove: xe, onEdgeMouseLeave: ae, onReconnect: te, onReconnectStart: Me, onReconnectEnd: St, reconnectRadius: En, noDragClassName: on, noWheelClassName: Bn, noPanClassName: Kt, elevateEdgesOnSelect: bn, disableKeyboardA11y: sn, nodeOrigin: an, nodeExtent: Vn, rfId: Sn }) => {
5279
5279
  const zn = Ud(e, tS), tt = Ud(t, cS);
5280
5280
  return _S(i), z.createElement(
5281
5281
  Qb,
5282
- { onPaneClick: Z, onPaneMouseEnter: J, onPaneMouseMove: X, onPaneMouseLeave: oe, onPaneContextMenu: fe, onPaneScroll: j, deleteKeyCode: $, selectionKeyCode: x, selectionOnDrag: I, selectionMode: E, onSelectionStart: f, onSelectionEnd: g, multiSelectionKeyCode: C, panActivationKeyCode: T, zoomActivationKeyCode: A, elementsSelectable: D, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: k, zoomOnPinch: V, zoomOnDoubleClick: Y, panOnScroll: W, panOnScrollSpeed: B, panOnScrollMode: q, panOnDrag: G, defaultViewport: O, translateExtent: R, minZoom: F, maxZoom: L, onSelectionContextMenu: p, preventScrolling: M, noDragClassName: on, noWheelClassName: Bn, noPanClassName: Kt, disableKeyboardA11y: sn },
5282
+ { onPaneClick: Z, onPaneMouseEnter: J, onPaneMouseMove: X, onPaneMouseLeave: oe, onPaneContextMenu: fe, onPaneScroll: j, deleteKeyCode: $, selectionKeyCode: x, selectionOnDrag: I, selectionMode: E, onSelectionStart: f, onSelectionEnd: g, multiSelectionKeyCode: C, panActivationKeyCode: T, zoomActivationKeyCode: R, elementsSelectable: D, onMove: n, onMoveStart: r, onMoveEnd: o, zoomOnScroll: k, zoomOnPinch: V, zoomOnDoubleClick: Y, panOnScroll: W, panOnScrollSpeed: B, panOnScrollMode: q, panOnDrag: G, defaultViewport: O, translateExtent: A, minZoom: F, maxZoom: L, onSelectionContextMenu: p, preventScrolling: M, noDragClassName: on, noWheelClassName: Bn, noPanClassName: Kt, disableKeyboardA11y: sn },
5283
5283
  z.createElement(
5284
5284
  SS,
5285
5285
  null,
@@ -5531,7 +5531,7 @@ const NS = {
5531
5531
  overflow: "hidden",
5532
5532
  position: "relative",
5533
5533
  zIndex: 0
5534
- }, Yl = Al(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = NS, edgeTypes: s = PS, onNodeClick: a, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: h, onConnect: m, onConnectStart: p, onConnectEnd: f, onClickConnectStart: g, onClickConnectEnd: y, onNodeMouseEnter: b, onNodeMouseMove: _, onNodeMouseLeave: S, onNodeContextMenu: x, onNodeDoubleClick: I, onNodeDragStart: E, onNodeDrag: C, onNodeDragStop: T, onNodesDelete: A, onEdgesDelete: $, onSelectionChange: H, onSelectionDragStart: D, onSelectionDrag: w, onSelectionDragStop: O, onSelectionContextMenu: R, onSelectionStart: F, onSelectionEnd: L, connectionMode: M = _r.Strict, connectionLineType: P = Gn.Bezier, connectionLineStyle: k, connectionLineComponent: V, connectionLineContainerStyle: W, deleteKeyCode: B = "Backspace", selectionKeyCode: q = "Shift", selectionOnDrag: Y = !1, selectionMode: G = ii.Full, panActivationKeyCode: Z = "Space", multiSelectionKeyCode: J = $s() ? "Meta" : "Control", zoomActivationKeyCode: X = $s() ? "Meta" : "Control", snapToGrid: oe = !1, snapGrid: j = kS, onlyRenderVisibleElements: fe = !1, selectNodesOnDrag: Ee = !0, nodesDraggable: me, nodesConnectable: xe, nodesFocusable: ae, nodeOrigin: te = OS, edgesFocusable: Me, edgesUpdatable: St, elementsSelectable: En, defaultViewport: on = MS, minZoom: Bn = 0.5, maxZoom: Kt = 2, translateExtent: bn = tl, preventScrolling: sn = !0, nodeExtent: an, defaultMarkerColor: Vn = "#b1b1b7", zoomOnScroll: Sn = !0, zoomOnPinch: zn = !0, panOnScroll: tt = !1, panOnScrollSpeed: Mt = 0.5, panOnScrollMode: _n = gr.Free, zoomOnDoubleClick: Cn = !0, panOnDrag: Hn = !0, onPaneClick: Dt, onPaneMouseEnter: In, onPaneMouseMove: cr, onPaneMouseLeave: Rr, onPaneScroll: $t, onPaneContextMenu: lr, children: Ar, onEdgeContextMenu: cn, onEdgeDoubleClick: ja, onEdgeMouseEnter: Di, onEdgeMouseMove: La, onEdgeMouseLeave: $i, onEdgeUpdate: Fi, onEdgeUpdateStart: Ua, onEdgeUpdateEnd: Ba, onReconnect: ji, onReconnectStart: Li, onReconnectEnd: Va, reconnectRadius: za = 10, edgeUpdaterRadius: Ha = 10, onNodesChange: qa, onEdgesChange: N, noDragClassName: K = "nodrag", noWheelClassName: Q = "nowheel", noPanClassName: re = "nopan", fitView: we = !1, fitViewOptions: Ne, connectOnClick: ge = !0, attributionPosition: he, proOptions: nt, defaultEdgeOptions: je, elevateNodesOnSelect: Be = !0, elevateEdgesOnSelect: pt = !1, disableKeyboardA11y: Tn = !1, autoPanOnConnect: Rn = !0, autoPanOnNodeDrag: at = !0, connectionRadius: xo = 20, isValidConnection: Wa, onError: Ka, style: J0, id: Bu, nodeDragThreshold: Z0, ...Q0 }, ev) => {
5534
+ }, Yl = Al(({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i = NS, edgeTypes: s = PS, onNodeClick: a, onEdgeClick: c, onInit: l, onMove: u, onMoveStart: d, onMoveEnd: h, onConnect: m, onConnectStart: p, onConnectEnd: f, onClickConnectStart: g, onClickConnectEnd: y, onNodeMouseEnter: b, onNodeMouseMove: _, onNodeMouseLeave: S, onNodeContextMenu: x, onNodeDoubleClick: I, onNodeDragStart: E, onNodeDrag: C, onNodeDragStop: T, onNodesDelete: R, onEdgesDelete: $, onSelectionChange: H, onSelectionDragStart: D, onSelectionDrag: w, onSelectionDragStop: O, onSelectionContextMenu: A, onSelectionStart: F, onSelectionEnd: L, connectionMode: M = _r.Strict, connectionLineType: P = Gn.Bezier, connectionLineStyle: k, connectionLineComponent: V, connectionLineContainerStyle: W, deleteKeyCode: B = "Backspace", selectionKeyCode: q = "Shift", selectionOnDrag: Y = !1, selectionMode: G = ii.Full, panActivationKeyCode: Z = "Space", multiSelectionKeyCode: J = $s() ? "Meta" : "Control", zoomActivationKeyCode: X = $s() ? "Meta" : "Control", snapToGrid: oe = !1, snapGrid: j = kS, onlyRenderVisibleElements: fe = !1, selectNodesOnDrag: Ee = !0, nodesDraggable: me, nodesConnectable: xe, nodesFocusable: ae, nodeOrigin: te = OS, edgesFocusable: Me, edgesUpdatable: St, elementsSelectable: En, defaultViewport: on = MS, minZoom: Bn = 0.5, maxZoom: Kt = 2, translateExtent: bn = tl, preventScrolling: sn = !0, nodeExtent: an, defaultMarkerColor: Vn = "#b1b1b7", zoomOnScroll: Sn = !0, zoomOnPinch: zn = !0, panOnScroll: tt = !1, panOnScrollSpeed: Mt = 0.5, panOnScrollMode: _n = gr.Free, zoomOnDoubleClick: Cn = !0, panOnDrag: Hn = !0, onPaneClick: Dt, onPaneMouseEnter: In, onPaneMouseMove: cr, onPaneMouseLeave: Rr, onPaneScroll: $t, onPaneContextMenu: lr, children: Ar, onEdgeContextMenu: cn, onEdgeDoubleClick: ja, onEdgeMouseEnter: Di, onEdgeMouseMove: La, onEdgeMouseLeave: $i, onEdgeUpdate: Fi, onEdgeUpdateStart: Ua, onEdgeUpdateEnd: Ba, onReconnect: ji, onReconnectStart: Li, onReconnectEnd: Va, reconnectRadius: za = 10, edgeUpdaterRadius: Ha = 10, onNodesChange: qa, onEdgesChange: N, noDragClassName: K = "nodrag", noWheelClassName: Q = "nowheel", noPanClassName: re = "nopan", fitView: we = !1, fitViewOptions: Ne, connectOnClick: ge = !0, attributionPosition: he, proOptions: nt, defaultEdgeOptions: je, elevateNodesOnSelect: Be = !0, elevateEdgesOnSelect: pt = !1, disableKeyboardA11y: Tn = !1, autoPanOnConnect: Rn = !0, autoPanOnNodeDrag: at = !0, connectionRadius: xo = 20, isValidConnection: Wa, onError: Ka, style: J0, id: Bu, nodeDragThreshold: Z0, ...Q0 }, ev) => {
5535
5535
  const Ya = Bu || "1";
5536
5536
  return z.createElement(
5537
5537
  "div",
@@ -5539,8 +5539,8 @@ const NS = {
5539
5539
  z.createElement(
5540
5540
  dg,
5541
5541
  null,
5542
- z.createElement(RS, { onInit: l, onMove: u, onMoveStart: d, onMoveEnd: h, onNodeClick: a, onEdgeClick: c, onNodeMouseEnter: b, onNodeMouseMove: _, onNodeMouseLeave: S, onNodeContextMenu: x, onNodeDoubleClick: I, nodeTypes: i, edgeTypes: s, connectionLineType: P, connectionLineStyle: k, connectionLineComponent: V, connectionLineContainerStyle: W, selectionKeyCode: q, selectionOnDrag: Y, selectionMode: G, deleteKeyCode: B, multiSelectionKeyCode: J, panActivationKeyCode: Z, zoomActivationKeyCode: X, onlyRenderVisibleElements: fe, selectNodesOnDrag: Ee, defaultViewport: on, translateExtent: bn, minZoom: Bn, maxZoom: Kt, preventScrolling: sn, zoomOnScroll: Sn, zoomOnPinch: zn, zoomOnDoubleClick: Cn, panOnScroll: tt, panOnScrollSpeed: Mt, panOnScrollMode: _n, panOnDrag: Hn, onPaneClick: Dt, onPaneMouseEnter: In, onPaneMouseMove: cr, onPaneMouseLeave: Rr, onPaneScroll: $t, onPaneContextMenu: lr, onSelectionContextMenu: R, onSelectionStart: F, onSelectionEnd: L, onEdgeContextMenu: cn, onEdgeDoubleClick: ja, onEdgeMouseEnter: Di, onEdgeMouseMove: La, onEdgeMouseLeave: $i, onReconnect: ji ?? Fi, onReconnectStart: Li ?? Ua, onReconnectEnd: Va ?? Ba, reconnectRadius: za ?? Ha, defaultMarkerColor: Vn, noDragClassName: K, noWheelClassName: Q, noPanClassName: re, elevateEdgesOnSelect: pt, rfId: Ya, disableKeyboardA11y: Tn, nodeOrigin: te, nodeExtent: an }),
5543
- z.createElement(Cb, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: m, onConnectStart: p, onConnectEnd: f, onClickConnectStart: g, onClickConnectEnd: y, nodesDraggable: me, nodesConnectable: xe, nodesFocusable: ae, edgesFocusable: Me, edgesUpdatable: St, elementsSelectable: En, elevateNodesOnSelect: Be, minZoom: Bn, maxZoom: Kt, nodeExtent: an, onNodesChange: qa, onEdgesChange: N, snapToGrid: oe, snapGrid: j, connectionMode: M, translateExtent: bn, connectOnClick: ge, defaultEdgeOptions: je, fitView: we, fitViewOptions: Ne, onNodesDelete: A, onEdgesDelete: $, onNodeDragStart: E, onNodeDrag: C, onNodeDragStop: T, onSelectionDrag: w, onSelectionDragStart: D, onSelectionDragStop: O, noPanClassName: re, nodeOrigin: te, rfId: Ya, autoPanOnConnect: Rn, autoPanOnNodeDrag: at, onError: Ka, connectionRadius: xo, isValidConnection: Wa, nodeDragThreshold: Z0 }),
5542
+ z.createElement(RS, { onInit: l, onMove: u, onMoveStart: d, onMoveEnd: h, onNodeClick: a, onEdgeClick: c, onNodeMouseEnter: b, onNodeMouseMove: _, onNodeMouseLeave: S, onNodeContextMenu: x, onNodeDoubleClick: I, nodeTypes: i, edgeTypes: s, connectionLineType: P, connectionLineStyle: k, connectionLineComponent: V, connectionLineContainerStyle: W, selectionKeyCode: q, selectionOnDrag: Y, selectionMode: G, deleteKeyCode: B, multiSelectionKeyCode: J, panActivationKeyCode: Z, zoomActivationKeyCode: X, onlyRenderVisibleElements: fe, selectNodesOnDrag: Ee, defaultViewport: on, translateExtent: bn, minZoom: Bn, maxZoom: Kt, preventScrolling: sn, zoomOnScroll: Sn, zoomOnPinch: zn, zoomOnDoubleClick: Cn, panOnScroll: tt, panOnScrollSpeed: Mt, panOnScrollMode: _n, panOnDrag: Hn, onPaneClick: Dt, onPaneMouseEnter: In, onPaneMouseMove: cr, onPaneMouseLeave: Rr, onPaneScroll: $t, onPaneContextMenu: lr, onSelectionContextMenu: A, onSelectionStart: F, onSelectionEnd: L, onEdgeContextMenu: cn, onEdgeDoubleClick: ja, onEdgeMouseEnter: Di, onEdgeMouseMove: La, onEdgeMouseLeave: $i, onReconnect: ji ?? Fi, onReconnectStart: Li ?? Ua, onReconnectEnd: Va ?? Ba, reconnectRadius: za ?? Ha, defaultMarkerColor: Vn, noDragClassName: K, noWheelClassName: Q, noPanClassName: re, elevateEdgesOnSelect: pt, rfId: Ya, disableKeyboardA11y: Tn, nodeOrigin: te, nodeExtent: an }),
5543
+ z.createElement(Cb, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: m, onConnectStart: p, onConnectEnd: f, onClickConnectStart: g, onClickConnectEnd: y, nodesDraggable: me, nodesConnectable: xe, nodesFocusable: ae, edgesFocusable: Me, edgesUpdatable: St, elementsSelectable: En, elevateNodesOnSelect: Be, minZoom: Bn, maxZoom: Kt, nodeExtent: an, onNodesChange: qa, onEdgesChange: N, snapToGrid: oe, snapGrid: j, connectionMode: M, translateExtent: bn, connectOnClick: ge, defaultEdgeOptions: je, fitView: we, fitViewOptions: Ne, onNodesDelete: R, onEdgesDelete: $, onNodeDragStart: E, onNodeDrag: C, onNodeDragStop: T, onSelectionDrag: w, onSelectionDragStart: D, onSelectionDragStop: O, noPanClassName: re, nodeOrigin: te, rfId: Ya, autoPanOnConnect: Rn, autoPanOnNodeDrag: at, onError: Ka, connectionRadius: xo, isValidConnection: Wa, nodeDragThreshold: Z0 }),
5544
5544
  z.createElement(Sb, { onSelectionChange: H }),
5545
5545
  Ar,
5546
5546
  z.createElement(QE, { proOptions: nt, position: he }),
@@ -5617,7 +5617,7 @@ function pg({
5617
5617
  zoomStep: b = 10,
5618
5618
  offsetScale: _ = 5
5619
5619
  }) {
5620
- const S = et(), x = de(null), { boundingRect: I, viewBB: E, rfId: C } = ke(qS, Qe), T = e?.width ?? zS, A = e?.height ?? HS, $ = I.width / T, H = I.height / A, D = Math.max($, H), w = D * T, O = D * A, R = _ * D, F = I.x - (w - I.width) / 2 - R, L = I.y - (O - I.height) / 2 - R, M = w + R * 2, P = O + R * 2, k = `${WS}-${C}`, V = de(0);
5620
+ const S = et(), x = de(null), { boundingRect: I, viewBB: E, rfId: C } = ke(qS, Qe), T = e?.width ?? zS, R = e?.height ?? HS, $ = I.width / T, H = I.height / R, D = Math.max($, H), w = D * T, O = D * R, A = _ * D, F = I.x - (w - I.width) / 2 - A, L = I.y - (O - I.height) / 2 - A, M = w + A * 2, P = O + A * 2, k = `${WS}-${C}`, V = de(0);
5621
5621
  V.current = D, ye(() => {
5622
5622
  if (x.current) {
5623
5623
  const q = Ut(x.current), Y = (J) => {
@@ -5656,10 +5656,10 @@ function pg({
5656
5656
  { position: d, style: e, className: st(["react-flow__minimap", t]), "data-testid": "rf__minimap" },
5657
5657
  z.createElement(
5658
5658
  "svg",
5659
- { width: T, height: A, viewBox: `${F} ${L} ${M} ${P}`, role: "img", "aria-labelledby": k, ref: x, onClick: W },
5659
+ { width: T, height: R, viewBox: `${F} ${L} ${M} ${P}`, role: "img", "aria-labelledby": k, ref: x, onClick: W },
5660
5660
  g && z.createElement("title", { id: k }, g),
5661
5661
  z.createElement(VS, { onClick: B, nodeColor: r, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: o, nodeStrokeWidth: s, nodeComponent: a }),
5662
- z.createElement("path", { className: "react-flow__minimap-mask", d: `M${F - R},${L - R}h${M + R * 2}v${P + R * 2}h${-M - R * 2}z
5662
+ z.createElement("path", { className: "react-flow__minimap-mask", d: `M${F - A},${L - A}h${M + A * 2}v${P + A * 2}h${-M - A * 2}z
5663
5663
  M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`, fill: c, fillRule: "evenodd", stroke: l, strokeWidth: u, pointerEvents: "none" })
5664
5664
  )
5665
5665
  );
@@ -5974,7 +5974,7 @@ function l1() {
5974
5974
  }
5975
5975
  }
5976
5976
  }
5977
- var x = c, I = l, E = a, C = s, T = t, A = u, $ = r, H = p, D = m, w = n, O = i, R = o, F = d, L = !1;
5977
+ var x = c, I = l, E = a, C = s, T = t, R = u, $ = r, H = p, D = m, w = n, O = i, A = o, F = d, L = !1;
5978
5978
  function M(j) {
5979
5979
  return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(j) || S(j) === c;
5980
5980
  }
@@ -6014,7 +6014,7 @@ function l1() {
6014
6014
  function oe(j) {
6015
6015
  return S(j) === d;
6016
6016
  }
6017
- Ce.AsyncMode = x, Ce.ConcurrentMode = I, Ce.ContextConsumer = E, Ce.ContextProvider = C, Ce.Element = T, Ce.ForwardRef = A, Ce.Fragment = $, Ce.Lazy = H, Ce.Memo = D, Ce.Portal = w, Ce.Profiler = O, Ce.StrictMode = R, Ce.Suspense = F, Ce.isAsyncMode = M, Ce.isConcurrentMode = P, Ce.isContextConsumer = k, Ce.isContextProvider = V, Ce.isElement = W, Ce.isForwardRef = B, Ce.isFragment = q, Ce.isLazy = Y, Ce.isMemo = G, Ce.isPortal = Z, Ce.isProfiler = J, Ce.isStrictMode = X, Ce.isSuspense = oe, Ce.isValidElementType = _, Ce.typeOf = S;
6017
+ Ce.AsyncMode = x, Ce.ConcurrentMode = I, Ce.ContextConsumer = E, Ce.ContextProvider = C, Ce.Element = T, Ce.ForwardRef = R, Ce.Fragment = $, Ce.Lazy = H, Ce.Memo = D, Ce.Portal = w, Ce.Profiler = O, Ce.StrictMode = A, Ce.Suspense = F, Ce.isAsyncMode = M, Ce.isConcurrentMode = P, Ce.isContextConsumer = k, Ce.isContextProvider = V, Ce.isElement = W, Ce.isForwardRef = B, Ce.isFragment = q, Ce.isLazy = Y, Ce.isMemo = G, Ce.isPortal = Z, Ce.isProfiler = J, Ce.isStrictMode = X, Ce.isSuspense = oe, Ce.isValidElementType = _, Ce.typeOf = S;
6018
6018
  }()), Ce;
6019
6019
  }
6020
6020
  var Hd;
@@ -6170,7 +6170,7 @@ function f1() {
6170
6170
  element: S(),
6171
6171
  elementType: x(),
6172
6172
  instanceOf: I,
6173
- node: A(),
6173
+ node: R(),
6174
6174
  objectOf: C,
6175
6175
  oneOf: E,
6176
6176
  oneOfType: T,
@@ -6209,7 +6209,7 @@ function f1() {
6209
6209
  }
6210
6210
  function y(P) {
6211
6211
  function k(V, W, B, q, Y, G) {
6212
- var Z = V[W], J = R(Z);
6212
+ var Z = V[W], J = A(Z);
6213
6213
  if (J !== P) {
6214
6214
  var X = F(Z);
6215
6215
  return new f(
@@ -6230,7 +6230,7 @@ function f1() {
6230
6230
  return new f("Property `" + Y + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
6231
6231
  var G = V[W];
6232
6232
  if (!Array.isArray(G)) {
6233
- var Z = R(G);
6233
+ var Z = A(G);
6234
6234
  return new f("Invalid " + q + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected an array."));
6235
6235
  }
6236
6236
  for (var J = 0; J < G.length; J++) {
@@ -6246,7 +6246,7 @@ function f1() {
6246
6246
  function P(k, V, W, B, q) {
6247
6247
  var Y = k[V];
6248
6248
  if (!a(Y)) {
6249
- var G = R(Y);
6249
+ var G = A(Y);
6250
6250
  return new f("Invalid " + B + " `" + q + "` of type " + ("`" + G + "` supplied to `" + W + "`, expected a single ReactElement."));
6251
6251
  }
6252
6252
  return null;
@@ -6257,7 +6257,7 @@ function f1() {
6257
6257
  function P(k, V, W, B, q) {
6258
6258
  var Y = k[V];
6259
6259
  if (!e.isValidElementType(Y)) {
6260
- var G = R(Y);
6260
+ var G = A(Y);
6261
6261
  return new f("Invalid " + B + " `" + q + "` of type " + ("`" + G + "` supplied to `" + W + "`, expected a single ReactElement type."));
6262
6262
  }
6263
6263
  return null;
@@ -6295,7 +6295,7 @@ function f1() {
6295
6295
  function k(V, W, B, q, Y) {
6296
6296
  if (typeof P != "function")
6297
6297
  return new f("Property `" + Y + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
6298
- var G = V[W], Z = R(G);
6298
+ var G = V[W], Z = A(G);
6299
6299
  if (Z !== "object")
6300
6300
  return new f("Invalid " + q + " `" + Y + "` of type " + ("`" + Z + "` supplied to `" + B + "`, expected an object."));
6301
6301
  for (var J in G)
@@ -6330,7 +6330,7 @@ function f1() {
6330
6330
  }
6331
6331
  return g(W);
6332
6332
  }
6333
- function A() {
6333
+ function R() {
6334
6334
  function P(k, V, W, B, q) {
6335
6335
  return w(k[V]) ? null : new f("Invalid " + B + " `" + q + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
6336
6336
  }
@@ -6343,7 +6343,7 @@ function f1() {
6343
6343
  }
6344
6344
  function H(P) {
6345
6345
  function k(V, W, B, q, Y) {
6346
- var G = V[W], Z = R(G);
6346
+ var G = V[W], Z = A(G);
6347
6347
  if (Z !== "object")
6348
6348
  return new f("Invalid " + q + " `" + Y + "` of type `" + Z + "` " + ("supplied to `" + B + "`, expected `object`."));
6349
6349
  for (var J in P) {
@@ -6360,7 +6360,7 @@ function f1() {
6360
6360
  }
6361
6361
  function D(P) {
6362
6362
  function k(V, W, B, q, Y) {
6363
- var G = V[W], Z = R(G);
6363
+ var G = V[W], Z = A(G);
6364
6364
  if (Z !== "object")
6365
6365
  return new f("Invalid " + q + " `" + Y + "` of type `" + Z + "` " + ("supplied to `" + B + "`, expected `object`."));
6366
6366
  var J = t({}, V[W], P);
@@ -6417,14 +6417,14 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
6417
6417
  function O(P, k) {
6418
6418
  return P === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
6419
6419
  }
6420
- function R(P) {
6420
+ function A(P) {
6421
6421
  var k = typeof P;
6422
6422
  return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : O(k, P) ? "symbol" : k;
6423
6423
  }
6424
6424
  function F(P) {
6425
6425
  if (typeof P > "u" || P === null)
6426
6426
  return "" + P;
6427
- var k = R(P);
6427
+ var k = A(P);
6428
6428
  if (k === "object") {
6429
6429
  if (P instanceof Date)
6430
6430
  return "date";
@@ -7819,7 +7819,7 @@ function O_() {
7819
7819
  }
7820
7820
  }
7821
7821
  }
7822
- var x = c, I = l, E = a, C = s, T = t, A = u, $ = r, H = p, D = m, w = n, O = i, R = o, F = d, L = !1;
7822
+ var x = c, I = l, E = a, C = s, T = t, R = u, $ = r, H = p, D = m, w = n, O = i, A = o, F = d, L = !1;
7823
7823
  function M(j) {
7824
7824
  return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(j) || S(j) === c;
7825
7825
  }
@@ -7859,7 +7859,7 @@ function O_() {
7859
7859
  function oe(j) {
7860
7860
  return S(j) === d;
7861
7861
  }
7862
- Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = E, Te.ContextProvider = C, Te.Element = T, Te.ForwardRef = A, Te.Fragment = $, Te.Lazy = H, Te.Memo = D, Te.Portal = w, Te.Profiler = O, Te.StrictMode = R, Te.Suspense = F, Te.isAsyncMode = M, Te.isConcurrentMode = P, Te.isContextConsumer = k, Te.isContextProvider = V, Te.isElement = W, Te.isForwardRef = B, Te.isFragment = q, Te.isLazy = Y, Te.isMemo = G, Te.isPortal = Z, Te.isProfiler = J, Te.isStrictMode = X, Te.isSuspense = oe, Te.isValidElementType = _, Te.typeOf = S;
7862
+ Te.AsyncMode = x, Te.ConcurrentMode = I, Te.ContextConsumer = E, Te.ContextProvider = C, Te.Element = T, Te.ForwardRef = R, Te.Fragment = $, Te.Lazy = H, Te.Memo = D, Te.Portal = w, Te.Profiler = O, Te.StrictMode = A, Te.Suspense = F, Te.isAsyncMode = M, Te.isConcurrentMode = P, Te.isContextConsumer = k, Te.isContextProvider = V, Te.isElement = W, Te.isForwardRef = B, Te.isFragment = q, Te.isLazy = Y, Te.isMemo = G, Te.isPortal = Z, Te.isProfiler = J, Te.isStrictMode = X, Te.isSuspense = oe, Te.isValidElementType = _, Te.typeOf = S;
7863
7863
  }()), Te;
7864
7864
  }
7865
7865
  var pf;
@@ -8302,14 +8302,14 @@ var G_ = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
8302
8302
  typeof g.className == "string" ? S = $g(y.registered, x, g.className) : g.className != null && (S = g.className + " ");
8303
8303
  var C = wi(d.concat(x), y.registered, I);
8304
8304
  S += y.key + "-" + C.name, s !== void 0 && (S += " " + s);
8305
- var T = l && a === void 0 ? Ef(_) : c, A = {};
8305
+ var T = l && a === void 0 ? Ef(_) : c, R = {};
8306
8306
  for (var $ in g)
8307
- l && $ === "as" || T($) && (A[$] = g[$]);
8308
- return A.className = S, b && (A.ref = b), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(Q_, {
8307
+ l && $ === "as" || T($) && (R[$] = g[$]);
8308
+ return R.className = S, b && (R.ref = b), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(Q_, {
8309
8309
  cache: y,
8310
8310
  serialized: C,
8311
8311
  isStringTag: typeof _ == "string"
8312
- }), /* @__PURE__ */ ie.createElement(_, A));
8312
+ }), /* @__PURE__ */ ie.createElement(_, R));
8313
8313
  });
8314
8314
  return f.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = o, f.__emotion_styles = d, f.__emotion_forwardProp = a, Object.defineProperty(f, "toString", {
8315
8315
  value: function() {
@@ -9398,22 +9398,22 @@ function uI() {
9398
9398
  const l = ["ownerState"], u = ["variants"], d = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
9399
9399
  function h(C) {
9400
9400
  if (typeof WeakMap != "function") return null;
9401
- var T = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
9401
+ var T = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
9402
9402
  return (h = function($) {
9403
- return $ ? A : T;
9403
+ return $ ? R : T;
9404
9404
  })(C);
9405
9405
  }
9406
9406
  function m(C, T) {
9407
9407
  if (C && C.__esModule) return C;
9408
9408
  if (C === null || typeof C != "object" && typeof C != "function") return { default: C };
9409
- var A = h(T);
9410
- if (A && A.has(C)) return A.get(C);
9409
+ var R = h(T);
9410
+ if (R && R.has(C)) return R.get(C);
9411
9411
  var $ = { __proto__: null }, H = Object.defineProperty && Object.getOwnPropertyDescriptor;
9412
9412
  for (var D in C) if (D !== "default" && Object.prototype.hasOwnProperty.call(C, D)) {
9413
9413
  var w = H ? Object.getOwnPropertyDescriptor(C, D) : null;
9414
9414
  w && (w.get || w.set) ? Object.defineProperty($, D, w) : $[D] = C[D];
9415
9415
  }
9416
- return $.default = C, A && A.set(C, $), $;
9416
+ return $.default = C, R && R.set(C, $), $;
9417
9417
  }
9418
9418
  function p(C) {
9419
9419
  return Object.keys(C).length === 0;
@@ -9434,14 +9434,14 @@ function uI() {
9434
9434
  function S({
9435
9435
  defaultTheme: C,
9436
9436
  theme: T,
9437
- themeId: A
9437
+ themeId: R
9438
9438
  }) {
9439
- return p(T) ? C : T[A] || T;
9439
+ return p(T) ? C : T[R] || T;
9440
9440
  }
9441
9441
  function x(C) {
9442
- return C ? (T, A) => A[C] : null;
9442
+ return C ? (T, R) => R[C] : null;
9443
9443
  }
9444
- function I(C, T, A) {
9444
+ function I(C, T, R) {
9445
9445
  let {
9446
9446
  ownerState: $
9447
9447
  } = T, H = (0, n.default)(T, l);
@@ -9451,12 +9451,12 @@ function uI() {
9451
9451
  if (Array.isArray(D))
9452
9452
  return D.flatMap((w) => I(w, (0, t.default)({
9453
9453
  ownerState: $
9454
- }, H), A));
9454
+ }, H), R));
9455
9455
  if (D && typeof D == "object" && Array.isArray(D.variants)) {
9456
9456
  const {
9457
9457
  variants: w = []
9458
9458
  } = D;
9459
- let R = (0, n.default)(D, u);
9459
+ let A = (0, n.default)(D, u);
9460
9460
  return w.forEach((F) => {
9461
9461
  let L = !0;
9462
9462
  if (typeof F.props == "function" ? L = F.props((0, t.default)({
@@ -9464,45 +9464,45 @@ function uI() {
9464
9464
  }, H, $)) : Object.keys(F.props).forEach((M) => {
9465
9465
  $?.[M] !== F.props[M] && H[M] !== F.props[M] && (L = !1);
9466
9466
  }), L) {
9467
- Array.isArray(R) || (R = [R]);
9467
+ Array.isArray(A) || (A = [A]);
9468
9468
  const M = typeof F.style == "function" ? F.style((0, t.default)({
9469
9469
  ownerState: $
9470
9470
  }, H, $)) : F.style;
9471
- R.push(A ? y((0, r.internal_serializeStyles)(M), A) : M);
9471
+ A.push(R ? y((0, r.internal_serializeStyles)(M), R) : M);
9472
9472
  }
9473
- }), R;
9473
+ }), A;
9474
9474
  }
9475
- return A ? y((0, r.internal_serializeStyles)(D), A) : D;
9475
+ return R ? y((0, r.internal_serializeStyles)(D), R) : D;
9476
9476
  }
9477
9477
  function E(C = {}) {
9478
9478
  const {
9479
9479
  themeId: T,
9480
- defaultTheme: A = b,
9480
+ defaultTheme: R = b,
9481
9481
  rootShouldForwardProp: $ = g,
9482
9482
  slotShouldForwardProp: H = g
9483
9483
  } = C, D = (w) => (0, c.default)((0, t.default)({}, w, {
9484
9484
  theme: S((0, t.default)({}, w, {
9485
- defaultTheme: A,
9485
+ defaultTheme: R,
9486
9486
  themeId: T
9487
9487
  }))
9488
9488
  }));
9489
9489
  return D.__mui_systemSx = !0, (w, O = {}) => {
9490
9490
  (0, r.internal_processStyles)(w, (X) => X.filter((oe) => !(oe != null && oe.__mui_systemSx)));
9491
9491
  const {
9492
- name: R,
9492
+ name: A,
9493
9493
  slot: F,
9494
9494
  skipVariantsResolver: L,
9495
9495
  skipSx: M,
9496
9496
  // TODO v6: remove `lowercaseFirstLetter()` in the next major release
9497
9497
  // For more details: https://github.com/mui/material-ui/pull/37908
9498
9498
  overridesResolver: P = x(_(F))
9499
- } = O, k = (0, n.default)(O, d), V = R && R.startsWith("Mui") || F ? "components" : "custom", W = L !== void 0 ? L : (
9499
+ } = O, k = (0, n.default)(O, d), V = A && A.startsWith("Mui") || F ? "components" : "custom", W = L !== void 0 ? L : (
9500
9500
  // TODO v6: remove `Root` in the next major release
9501
9501
  // For more details: https://github.com/mui/material-ui/pull/37908
9502
9502
  F && F !== "Root" && F !== "root" || !1
9503
9503
  ), B = M || !1;
9504
9504
  let q;
9505
- process.env.NODE_ENV !== "production" && R && (q = `${R}-${_(F || "Root")}`);
9505
+ process.env.NODE_ENV !== "production" && A && (q = `${A}-${_(F || "Root")}`);
9506
9506
  let Y = g;
9507
9507
  F === "Root" || F === "root" ? Y = $ : F ? Y = H : f(w) && (Y = void 0);
9508
9508
  const G = (0, r.default)(w, (0, t.default)({
@@ -9511,7 +9511,7 @@ function uI() {
9511
9511
  }, k)), Z = (X) => typeof X == "function" && X.__emotion_real !== X || (0, o.isPlainObject)(X) ? (oe) => {
9512
9512
  const j = S({
9513
9513
  theme: oe.theme,
9514
- defaultTheme: A,
9514
+ defaultTheme: R,
9515
9515
  themeId: T
9516
9516
  });
9517
9517
  return I(X, (0, t.default)({}, oe, {
@@ -9520,25 +9520,25 @@ function uI() {
9520
9520
  } : X, J = (X, ...oe) => {
9521
9521
  let j = Z(X);
9522
9522
  const fe = oe ? oe.map(Z) : [];
9523
- R && P && fe.push((xe) => {
9523
+ A && P && fe.push((xe) => {
9524
9524
  const ae = S((0, t.default)({}, xe, {
9525
- defaultTheme: A,
9525
+ defaultTheme: R,
9526
9526
  themeId: T
9527
9527
  }));
9528
- if (!ae.components || !ae.components[R] || !ae.components[R].styleOverrides)
9528
+ if (!ae.components || !ae.components[A] || !ae.components[A].styleOverrides)
9529
9529
  return null;
9530
- const te = ae.components[R].styleOverrides, Me = {};
9530
+ const te = ae.components[A].styleOverrides, Me = {};
9531
9531
  return Object.entries(te).forEach(([St, En]) => {
9532
9532
  Me[St] = I(En, (0, t.default)({}, xe, {
9533
9533
  theme: ae
9534
9534
  }), ae.modularCssLayers ? "theme" : void 0);
9535
9535
  }), P(xe, Me);
9536
- }), R && !W && fe.push((xe) => {
9536
+ }), A && !W && fe.push((xe) => {
9537
9537
  var ae;
9538
9538
  const te = S((0, t.default)({}, xe, {
9539
- defaultTheme: A,
9539
+ defaultTheme: R,
9540
9540
  themeId: T
9541
- })), Me = te == null || (ae = te.components) == null || (ae = ae[R]) == null ? void 0 : ae.variants;
9541
+ })), Me = te == null || (ae = te.components) == null || (ae = ae[A]) == null ? void 0 : ae.variants;
9542
9542
  return I({
9543
9543
  variants: Me
9544
9544
  }, (0, t.default)({}, xe, {
@@ -9553,7 +9553,7 @@ function uI() {
9553
9553
  const me = G(j, ...fe);
9554
9554
  if (process.env.NODE_ENV !== "production") {
9555
9555
  let xe;
9556
- R && (xe = `${R}${(0, i.default)(F || "")}`), xe === void 0 && (xe = `Styled(${(0, s.default)(w)})`), me.displayName = xe;
9556
+ A && (xe = `${A}${(0, i.default)(F || "")}`), xe === void 0 && (xe = `Styled(${(0, s.default)(w)})`), me.displayName = xe;
9557
9557
  }
9558
9558
  return w.muiName && (me.muiName = w.muiName), me;
9559
9559
  };
@@ -9597,7 +9597,7 @@ function gI() {
9597
9597
  E = E.slice(1);
9598
9598
  const C = new RegExp(`.{1,${E.length >= 6 ? 2 : 1}}`, "g");
9599
9599
  let T = E.match(C);
9600
- return T && T[0].length === 1 && (T = T.map((A) => A + A)), T ? `rgb${T.length === 4 ? "a" : ""}(${T.map((A, $) => $ < 3 ? parseInt(A, 16) : Math.round(parseInt(A, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
9600
+ return T && T[0].length === 1 && (T = T.map((R) => R + R)), T ? `rgb${T.length === 4 ? "a" : ""}(${T.map((R, $) => $ < 3 ? parseInt(R, 16) : Math.round(parseInt(R, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
9601
9601
  }
9602
9602
  function i(E) {
9603
9603
  const C = E.toString(16);
@@ -9612,22 +9612,22 @@ function gI() {
9612
9612
  if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(T) === -1)
9613
9613
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${E}\` color.
9614
9614
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, t.default)(9, E));
9615
- let A = E.substring(C + 1, E.length - 1), $;
9615
+ let R = E.substring(C + 1, E.length - 1), $;
9616
9616
  if (T === "color") {
9617
- if (A = A.split(" "), $ = A.shift(), A.length === 4 && A[3].charAt(0) === "/" && (A[3] = A[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf($) === -1)
9617
+ if (R = R.split(" "), $ = R.shift(), R.length === 4 && R[3].charAt(0) === "/" && (R[3] = R[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf($) === -1)
9618
9618
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${$}\` color space.
9619
9619
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, t.default)(10, $));
9620
9620
  } else
9621
- A = A.split(",");
9622
- return A = A.map((H) => parseFloat(H)), {
9621
+ R = R.split(",");
9622
+ return R = R.map((H) => parseFloat(H)), {
9623
9623
  type: T,
9624
- values: A,
9624
+ values: R,
9625
9625
  colorSpace: $
9626
9626
  };
9627
9627
  }
9628
9628
  const a = (E) => {
9629
9629
  const C = s(E);
9630
- return C.values.slice(0, 3).map((T, A) => C.type.indexOf("hsl") !== -1 && A !== 0 ? `${T}%` : T).join(" ");
9630
+ return C.values.slice(0, 3).map((T, R) => C.type.indexOf("hsl") !== -1 && R !== 0 ? `${T}%` : T).join(" ");
9631
9631
  };
9632
9632
  Le.colorChannel = a;
9633
9633
  const c = (E, C) => {
@@ -9644,9 +9644,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9644
9644
  colorSpace: T
9645
9645
  } = E;
9646
9646
  let {
9647
- values: A
9647
+ values: R
9648
9648
  } = E;
9649
- return C.indexOf("rgb") !== -1 ? A = A.map(($, H) => H < 3 ? parseInt($, 10) : $) : C.indexOf("hsl") !== -1 && (A[1] = `${A[1]}%`, A[2] = `${A[2]}%`), C.indexOf("color") !== -1 ? A = `${T} ${A.join(" ")}` : A = `${A.join(", ")}`, `${C}(${A})`;
9649
+ return C.indexOf("rgb") !== -1 ? R = R.map(($, H) => H < 3 ? parseInt($, 10) : $) : C.indexOf("hsl") !== -1 && (R[1] = `${R[1]}%`, R[2] = `${R[2]}%`), C.indexOf("color") !== -1 ? R = `${T} ${R.join(" ")}` : R = `${R.join(", ")}`, `${C}(${R})`;
9650
9650
  }
9651
9651
  function u(E) {
9652
9652
  if (E.indexOf("#") === 0)
@@ -9654,13 +9654,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9654
9654
  const {
9655
9655
  values: C
9656
9656
  } = s(E);
9657
- return `#${C.map((T, A) => i(A === 3 ? Math.round(255 * T) : T)).join("")}`;
9657
+ return `#${C.map((T, R) => i(R === 3 ? Math.round(255 * T) : T)).join("")}`;
9658
9658
  }
9659
9659
  function d(E) {
9660
9660
  E = s(E);
9661
9661
  const {
9662
9662
  values: C
9663
- } = E, T = C[0], A = C[1] / 100, $ = C[2] / 100, H = A * Math.min($, 1 - $), D = (R, F = (R + T / 30) % 12) => $ - H * Math.max(Math.min(F - 3, 9 - F, 1), -1);
9663
+ } = E, T = C[0], R = C[1] / 100, $ = C[2] / 100, H = R * Math.min($, 1 - $), D = (A, F = (A + T / 30) % 12) => $ - H * Math.max(Math.min(F - 3, 9 - F, 1), -1);
9664
9664
  let w = "rgb";
9665
9665
  const O = [Math.round(D(0) * 255), Math.round(D(8) * 255), Math.round(D(4) * 255)];
9666
9666
  return E.type === "hsla" && (w += "a", O.push(C[3])), l({
@@ -9674,8 +9674,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9674
9674
  return C = C.map((T) => (E.type !== "color" && (T /= 255), T <= 0.03928 ? T / 12.92 : ((T + 0.055) / 1.055) ** 2.4)), Number((0.2126 * C[0] + 0.7152 * C[1] + 0.0722 * C[2]).toFixed(3));
9675
9675
  }
9676
9676
  function m(E, C) {
9677
- const T = h(E), A = h(C);
9678
- return (Math.max(T, A) + 0.05) / (Math.min(T, A) + 0.05);
9677
+ const T = h(E), R = h(C);
9678
+ return (Math.max(T, R) + 0.05) / (Math.min(T, R) + 0.05);
9679
9679
  }
9680
9680
  function p(E, C) {
9681
9681
  return E = s(E), C = r(C), (E.type === "rgb" || E.type === "hsl") && (E.type += "a"), E.type === "color" ? E.values[3] = `/${C}` : E.values[3] = C, l(E);
@@ -9730,8 +9730,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9730
9730
  return T && process.env.NODE_ENV !== "production" && console.warn(T), E;
9731
9731
  }
9732
9732
  }
9733
- function I(E, C, T, A = 1) {
9734
- const $ = (O, R) => Math.round((O ** (1 / A) * (1 - T) + R ** (1 / A) * T) ** A), H = s(E), D = s(C), w = [$(H.values[0], D.values[0]), $(H.values[1], D.values[1]), $(H.values[2], D.values[2])];
9733
+ function I(E, C, T, R = 1) {
9734
+ const $ = (O, A) => Math.round((O ** (1 / R) * (1 - T) + A ** (1 / R) * T) ** R), H = s(E), D = s(C), w = [$(H.values[0], D.values[0]), $(H.values[1], D.values[1]), $(H.values[2], D.values[2])];
9735
9735
  return l({
9736
9736
  type: "rgb",
9737
9737
  values: w
@@ -11730,7 +11730,7 @@ const py = (e) => {
11730
11730
  responseType: E,
11731
11731
  headers: C,
11732
11732
  withCredentials: T = "same-origin",
11733
- fetchOptions: A
11733
+ fetchOptions: R
11734
11734
  } = py(p), $ = t || fetch;
11735
11735
  E = E ? (E + "").toLowerCase() : "text";
11736
11736
  let H = bR([b, _ && _.toAbortSignal()], S), D = null;
@@ -11754,17 +11754,17 @@ const py = (e) => {
11754
11754
  }
11755
11755
  }
11756
11756
  U.isString(T) || (T = T ? "include" : "omit");
11757
- const R = i && "credentials" in n.prototype, F = {
11758
- ...A,
11757
+ const A = i && "credentials" in n.prototype, F = {
11758
+ ...R,
11759
11759
  signal: H,
11760
11760
  method: g.toUpperCase(),
11761
11761
  headers: C.normalize().toJSON(),
11762
11762
  body: y,
11763
11763
  duplex: "half",
11764
- credentials: R ? T : void 0
11764
+ credentials: A ? T : void 0
11765
11765
  };
11766
11766
  D = i && new n(f, F);
11767
- let L = await (i ? $(D, A) : $(f, F));
11767
+ let L = await (i ? $(D, R) : $(f, F));
11768
11768
  const M = u && (E === "stream" || E === "response");
11769
11769
  if (u && (x || M && w)) {
11770
11770
  const k = {};
@@ -11794,13 +11794,13 @@ const py = (e) => {
11794
11794
  request: D
11795
11795
  });
11796
11796
  });
11797
- } catch (R) {
11798
- throw w && w(), R && R.name === "TypeError" && /Load failed|fetch/i.test(R.message) ? Object.assign(
11797
+ } catch (A) {
11798
+ throw w && w(), A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message) ? Object.assign(
11799
11799
  new ce("Network Error", ce.ERR_NETWORK, p, D),
11800
11800
  {
11801
- cause: R.cause || R
11801
+ cause: A.cause || A
11802
11802
  }
11803
- ) : ce.from(R, R && R.code, p, D);
11803
+ ) : ce.from(A, A && A.code, p, D);
11804
11804
  }
11805
11805
  };
11806
11806
  }, RR = /* @__PURE__ */ new Map(), my = (e) => {
@@ -12278,8 +12278,8 @@ function MR() {
12278
12278
  const x = a(h, y, b), I = c(h, b, x), E = h.slice(x, I);
12279
12279
  if (p[E] === void 0) {
12280
12280
  let C = a(h, b + 1, S), T = c(h, S, C);
12281
- const A = g(h.slice(C, T));
12282
- p[E] = A;
12281
+ const R = g(h.slice(C, T));
12282
+ p[E] = R;
12283
12283
  }
12284
12284
  y = S + 1;
12285
12285
  } while (y < f);
@@ -14360,7 +14360,7 @@ const Ly = (e) => {
14360
14360
  message: "Invalid config parameter.",
14361
14361
  recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
14362
14362
  });
14363
- const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: o, aws_bots_config: i, aws_cognito_identity_pool_id: s, aws_cognito_sign_up_verification_method: a, aws_cognito_mfa_configuration: c, aws_cognito_mfa_types: l, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: d, aws_cognito_signup_attributes: h, aws_cognito_social_providers: m, aws_cognito_username_attributes: p, aws_mandatory_sign_in: f, aws_mobile_analytics_app_id: g, aws_mobile_analytics_app_region: y, aws_user_files_s3_bucket: b, aws_user_files_s3_bucket_region: _, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: S, aws_user_pools_id: x, aws_user_pools_web_client_id: I, geo: E, oauth: C, predictions: T, aws_cloud_logic_custom: A, Notifications: $, modelIntrospection: H } = e, D = {};
14363
+ const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: o, aws_bots_config: i, aws_cognito_identity_pool_id: s, aws_cognito_sign_up_verification_method: a, aws_cognito_mfa_configuration: c, aws_cognito_mfa_types: l, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: d, aws_cognito_signup_attributes: h, aws_cognito_social_providers: m, aws_cognito_username_attributes: p, aws_mandatory_sign_in: f, aws_mobile_analytics_app_id: g, aws_mobile_analytics_app_region: y, aws_user_files_s3_bucket: b, aws_user_files_s3_bucket_region: _, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: S, aws_user_pools_id: x, aws_user_pools_web_client_id: I, geo: E, oauth: C, predictions: T, aws_cloud_logic_custom: R, Notifications: $, modelIntrospection: H } = e, D = {};
14364
14364
  g && (D.Analytics = {
14365
14365
  Pinpoint: {
14366
14366
  appId: g,
@@ -14406,7 +14406,7 @@ const Ly = (e) => {
14406
14406
  }
14407
14407
  }, H && (D.API.GraphQL.modelIntrospection = H);
14408
14408
  }
14409
- const R = c ? {
14409
+ const A = c ? {
14410
14410
  status: c && c.toLowerCase(),
14411
14411
  totpEnabled: l?.includes("TOTP") ?? !1,
14412
14412
  smsEnabled: l?.includes("SMS") ?? !1
@@ -14432,7 +14432,7 @@ const Ly = (e) => {
14432
14432
  userAttributes: M,
14433
14433
  userPoolClientId: I,
14434
14434
  userPoolId: x,
14435
- mfa: R,
14435
+ mfa: A,
14436
14436
  passwordFormat: F,
14437
14437
  loginWith: {
14438
14438
  username: !(P || k),
@@ -14467,9 +14467,9 @@ const Ly = (e) => {
14467
14467
  }
14468
14468
  };
14469
14469
  }
14470
- if (A && (D.API = {
14470
+ if (R && (D.API = {
14471
14471
  ...D.API,
14472
- REST: A.reduce((B, q) => {
14472
+ REST: R.reduce((B, q) => {
14473
14473
  const { name: Y, endpoint: G, region: Z, service: J } = q;
14474
14474
  return {
14475
14475
  ...B,
@@ -19639,7 +19639,7 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19639
19639
  switch (I) {
19640
19640
  case "drop-down":
19641
19641
  let C = (o ? VM : Lc).filter(
19642
- (A) => A.types.includes("dropdown")
19642
+ (R) => R.types.includes("dropdown")
19643
19643
  );
19644
19644
  _(
19645
19645
  C[c ? 1 : 0].conditionAuto,
@@ -19650,7 +19650,7 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19650
19650
  case "number":
19651
19651
  case "currency":
19652
19652
  let T = Lc?.filter(
19653
- (A) => A.types.includes("number")
19653
+ (R) => R.types.includes("number")
19654
19654
  );
19655
19655
  h(T);
19656
19656
  break;
@@ -19660,18 +19660,18 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19660
19660
  o && !e?.blocks?.length && y({ fieldtype: g });
19661
19661
  }, [o, JSON.stringify(e), g]);
19662
19662
  const b = (I, E, C) => {
19663
- const T = l.blocks.map((A, $) => $ !== I ? A : {
19664
- ...A,
19665
- segments: A.segments.map((H, D) => D !== E ? H : {
19663
+ const T = l.blocks.map((R, $) => $ !== I ? R : {
19664
+ ...R,
19665
+ segments: R.segments.map((H, D) => D !== E ? H : {
19666
19666
  ...H,
19667
19667
  value: C
19668
19668
  })
19669
19669
  });
19670
- u((A) => ({ ...A, blocks: T })), t({ ...l, blocks: T });
19670
+ u((R) => ({ ...R, blocks: T })), t({ ...l, blocks: T });
19671
19671
  }, _ = (I, E, C = !1) => {
19672
19672
  const T = { ...l };
19673
19673
  if (T.blocks = [...T.blocks, { ...I, key: E }], (c || o) && C) {
19674
- const A = T.blocks.map(($, H) => H !== 0 && !c ? $ : {
19674
+ const R = T.blocks.map(($, H) => H !== 0 && !c ? $ : {
19675
19675
  ...$,
19676
19676
  segments: $.segments.map((D, w) => w === 0 ? {
19677
19677
  ...D,
@@ -19681,7 +19681,7 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19681
19681
  value: "any"
19682
19682
  } : D)
19683
19683
  });
19684
- u(() => ({ ...T, blocks: A })), t({ ...T, blocks: A }), console.log("updatedBlocks", A), p(!1);
19684
+ u(() => ({ ...T, blocks: R })), t({ ...T, blocks: R }), console.log("updatedBlocks", R), p(!1);
19685
19685
  } else
19686
19686
  u(() => T), p(!1);
19687
19687
  }, S = ({
@@ -19689,18 +19689,20 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19689
19689
  valueType: E,
19690
19690
  fieldId: C
19691
19691
  }) => {
19692
- const T = r?.map((A) => A.field);
19692
+ const T = r?.map((R) => R.field);
19693
19693
  if (E === "field")
19694
19694
  return T?.filter(
19695
- (A) => I?.includes(A.dataType) && !A.isAssociated
19696
- ).map((A) => ({
19697
- id: A.id,
19698
- displayName: A.name,
19699
- internalName: A.internalName
19695
+ (R) => I?.includes(R.dataType) && !R.isAssociated
19696
+ ).map((R) => ({
19697
+ id: R.id,
19698
+ displayName: R.name,
19699
+ internalName: R.internalName
19700
19700
  }));
19701
19701
  if (E === "field-options") {
19702
- const $ = T.find((H) => H.id === C)?.value?.map((H) => ({
19703
- id: H.key,
19702
+ const R = T.find((H) => H.id === C);
19703
+ console.log("field", R);
19704
+ const $ = R?.value?.map((H) => ({
19705
+ id: H.id,
19704
19706
  displayName: H.value
19705
19707
  }));
19706
19708
  return c || o ? [{ id: "any", displayName: "any" }, ...$] : $;
@@ -19746,7 +19748,7 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19746
19748
  disabled: n,
19747
19749
  defaultValue: C.value,
19748
19750
  type: C.valueType,
19749
- onChange: (A) => b(E, T, A.target.value),
19751
+ onChange: (R) => b(E, T, R.target.value),
19750
19752
  sx: {
19751
19753
  margin: 0,
19752
19754
  maxWidth: 100,
@@ -19784,16 +19786,24 @@ const Il = /* @__PURE__ */ zt(qM), Fu = ({
19784
19786
  paddingRight: "0 !important"
19785
19787
  }
19786
19788
  },
19787
- onChange: (A) => b(
19788
- E,
19789
- T,
19790
- A.target.value
19791
- ),
19789
+ onChange: (R) => {
19790
+ console.log("value", R.target.value), console.log(
19791
+ S({
19792
+ optionType: C.optionType,
19793
+ valueType: C.valueType,
19794
+ fieldId: I?.segments?.[C.mapSegmentsId]?.value
19795
+ })
19796
+ ), b(
19797
+ E,
19798
+ T,
19799
+ R.target.value
19800
+ );
19801
+ },
19792
19802
  children: S({
19793
19803
  optionType: C.optionType,
19794
19804
  valueType: C.valueType,
19795
19805
  fieldId: I?.segments?.[C.mapSegmentsId]?.value
19796
- })?.map((A) => /* @__PURE__ */ v.jsx(br, { value: A.id, children: A.displayName }, A.id))
19806
+ })?.map((R) => /* @__PURE__ */ v.jsx(br, { value: R.id, children: R.displayName }, R.id))
19797
19807
  },
19798
19808
  `${E}_${T}`
19799
19809
  )
@@ -20436,7 +20446,7 @@ const l2 = ({
20436
20446
  }, f = (y, b, _) => {
20437
20447
  const S = l.map((x, I) => {
20438
20448
  if (I !== y) return x;
20439
- const E = x.segments[b], C = E.valueType === "field", T = C ? E.childSegments || [] : [], A = x.segments.map(($) => {
20449
+ const E = x.segments[b], C = E.valueType === "field", T = C ? E.childSegments || [] : [], R = x.segments.map(($) => {
20440
20450
  if ($.segmentsId === E.segmentsId)
20441
20451
  if (C) {
20442
20452
  const H = r.find(
@@ -20471,7 +20481,7 @@ const l2 = ({
20471
20481
  });
20472
20482
  return {
20473
20483
  ...x,
20474
- segments: A
20484
+ segments: R
20475
20485
  };
20476
20486
  });
20477
20487
  t(S), u(S);
@@ -20932,24 +20942,26 @@ const l2 = ({
20932
20942
  n.condition ?? { id: "", blocks: [] }
20933
20943
  ));
20934
20944
  }, [n.id]);
20935
- const I = S("condition"), E = () => structuredClone(f?.data).some(($) => {
20945
+ const I = S("condition");
20946
+ console.log("condition", I);
20947
+ const E = () => structuredClone(f?.data).some(($) => {
20936
20948
  const H = $?.condition?.blocks?.map(
20937
- (O, R) => ({ ...O, id: R })
20949
+ (O, A) => ({ ...O, id: A })
20938
20950
  );
20939
- let D = H?.map((O, R) => ({
20951
+ let D = H?.map((O, A) => ({
20940
20952
  ...O,
20941
- id: R
20953
+ id: A
20942
20954
  }));
20943
20955
  const w = I?.blocks;
20944
20956
  if (H.length !== w?.length)
20945
20957
  return !1;
20946
20958
  for (const O of w) {
20947
- let R = D?.filter(
20959
+ let A = D?.filter(
20948
20960
  (L) => L?.key === O.key
20949
20961
  );
20950
- if (!R.length)
20962
+ if (!A.length)
20951
20963
  return !1;
20952
- const F = R.find((L) => {
20964
+ const F = A.find((L) => {
20953
20965
  const M = O?.segments?.[0]?.value === L?.segments?.[0]?.value, P = O?.segments?.[O?.segments?.[0]?.childSegments?.[0]]?.value === L?.segments?.[L?.segments?.[0]?.childSegments?.[0]]?.value, k = O?.segments?.[O?.segments?.[0]?.childSegments?.[1]]?.value === L?.segments?.[L?.segments?.[0]?.childSegments?.[1]]?.value;
20954
20966
  return !!(M && P && k);
20955
20967
  }) ?? {};
@@ -20964,14 +20976,14 @@ const l2 = ({
20964
20976
  b(E());
20965
20977
  }, [JSON.stringify(f), JSON.stringify(I)]);
20966
20978
  const C = async () => {
20967
- const A = S();
20979
+ const R = S();
20968
20980
  let $ = !1, H = !1;
20969
- const D = A.automation?.map((w) => {
20981
+ const D = R.automation?.map((w) => {
20970
20982
  switch (w.key) {
20971
20983
  case "changes_field_value":
20972
20984
  const O = w.segments?.find(
20973
20985
  (q) => q.valueType === "field"
20974
- ), R = w.segments[O?.childSegments?.[0]];
20986
+ ), A = w.segments[O?.childSegments?.[0]];
20975
20987
  return {
20976
20988
  targetWorkspaceId: c,
20977
20989
  targetFieldId: O.value,
@@ -20984,8 +20996,8 @@ const l2 = ({
20984
20996
  isAssociate: O.isAssociate,
20985
20997
  property: O.property,
20986
20998
  fieldType: O.fieldType,
20987
- value: R.value,
20988
- setValue: R.value
20999
+ value: A.value,
21000
+ setValue: A.value
20989
21001
  }
20990
21002
  ],
20991
21003
  datasetId: O.datasetId,
@@ -21092,8 +21104,8 @@ const l2 = ({
21092
21104
  from: d ? "" : e?.source,
21093
21105
  to: e?.target,
21094
21106
  workflowSegId: d ? s : e?.id,
21095
- condition: A.condition,
21096
- automation: A.automation,
21107
+ condition: R.condition,
21108
+ automation: R.automation,
21097
21109
  automationAction: D,
21098
21110
  isAutomation: d,
21099
21111
  hasMeeting: $,
@@ -21101,8 +21113,8 @@ const l2 = ({
21101
21113
  isFieldAuto: !0
21102
21114
  });
21103
21115
  g((O) => {
21104
- const R = [w?.data?.[0], ...O.data];
21105
- return { ...O, data: R };
21116
+ const A = [w?.data?.[0], ...O.data];
21117
+ return { ...O, data: A };
21106
21118
  }), m?.({
21107
21119
  id: w?.data?.[1]?.id,
21108
21120
  automation: w?.data?.[1]?.automation
@@ -21110,9 +21122,9 @@ const l2 = ({
21110
21122
  } else {
21111
21123
  const w = await zR({
21112
21124
  id: n.id,
21113
- condition: A.condition,
21125
+ condition: R.condition,
21114
21126
  fieldId: s,
21115
- automation: A.automation,
21127
+ automation: R.automation,
21116
21128
  automationAction: D,
21117
21129
  workspaceId: c + "",
21118
21130
  isAutomation: d,
@@ -21121,8 +21133,8 @@ const l2 = ({
21121
21133
  isFieldAuto: !0
21122
21134
  });
21123
21135
  g((O) => {
21124
- const R = O?.data?.map((F) => (console.log(F.id), F?.id === n.id ? w.data[0] : F));
21125
- return { ...O, data: R };
21136
+ const A = O?.data?.map((F) => (console.log(F.id), F?.id === n.id ? w.data[0] : F));
21137
+ return { ...O, data: A };
21126
21138
  }), m?.({
21127
21139
  id: w?.data?.[0]?.id,
21128
21140
  automation: w?.data?.[0]?.automation
@@ -21178,8 +21190,8 @@ const l2 = ({
21178
21190
  Fu,
21179
21191
  {
21180
21192
  defaultValue: S("condition"),
21181
- setValue: (A) => {
21182
- _("condition", A);
21193
+ setValue: (R) => {
21194
+ _("condition", R);
21183
21195
  },
21184
21196
  col: l,
21185
21197
  isAutomation: d,
@@ -21193,8 +21205,8 @@ const l2 = ({
21193
21205
  B0,
21194
21206
  {
21195
21207
  defaultValue: S("automation"),
21196
- setValue: (A) => {
21197
- _("automation", A);
21208
+ setValue: (R) => {
21209
+ _("automation", R);
21198
21210
  },
21199
21211
  col: l,
21200
21212
  datasetId: u,
@@ -21435,7 +21447,7 @@ const l2 = ({
21435
21447
  onClose: a,
21436
21448
  callBackFunc: c
21437
21449
  }) => {
21438
- const l = t?.find((L) => L.field.id === e), u = $f(l.field.value), d = rT(u), [h, m, p] = $S([]), [f, g, y] = FS([]), [b, _] = ve({}), [S, x] = ve(!1), [I, E] = ve(!1), [C, T] = ve(0), [A, $] = ve({
21450
+ const l = t?.find((L) => L.field.id === e), u = $f(l.field.value), d = rT(u), [h, m, p] = $S([]), [f, g, y] = FS([]), [b, _] = ve({}), [S, x] = ve(!1), [I, E] = ve(!1), [C, T] = ve(0), [R, $] = ve({
21439
21451
  id: `global_${e}`,
21440
21452
  type: Ws.Auto
21441
21453
  }), H = () => {
@@ -21509,7 +21521,7 @@ const l2 = ({
21509
21521
  id: M?.id,
21510
21522
  workflow: M?.workflow
21511
21523
  });
21512
- }, R = { inputProps: { "aria-label": "Size switch demo" } }, F = {
21524
+ }, A = { inputProps: { "aria-label": "Size switch demo" } }, F = {
21513
21525
  id: `global_${e}`,
21514
21526
  source: `global_${e}`,
21515
21527
  target: `global_${e}`
@@ -21543,7 +21555,7 @@ const l2 = ({
21543
21555
  /* @__PURE__ */ v.jsx(
21544
21556
  jp,
21545
21557
  {
21546
- ...R,
21558
+ ...A,
21547
21559
  size: "medium",
21548
21560
  checked: S,
21549
21561
  onChange: (L) => {
@@ -21583,7 +21595,7 @@ const l2 = ({
21583
21595
  ju,
21584
21596
  {
21585
21597
  editEdgeData: F,
21586
- selectedId: A,
21598
+ selectedId: R,
21587
21599
  setSelectedId: $,
21588
21600
  acceptedUser: i,
21589
21601
  selectFieldId: e,