@linkdlab/funcnodes_react_flow 0.4.10 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var E2 = Object.defineProperty;
2
2
  var I2 = (e, t, n) => t in e ? E2(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var di = (e, t, n) => I2(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as k from "react";
5
- import Je, { memo as lt, forwardRef as qo, useCallback as Me, useMemo as st, useState as ie, useRef as ge, useEffect as we, useContext as xe, createContext as oo, useLayoutEffect as If, createElement as He, useId as k2, isValidElement as ya, cloneElement as ba, Children as A2, Component as R2, Fragment as Qu, useReducer as T2, useImperativeHandle as Cb } from "react";
5
+ import Je, { memo as lt, forwardRef as qo, useCallback as Me, useMemo as st, useState as ie, useRef as me, useEffect as we, useContext as xe, createContext as oo, useLayoutEffect as If, createElement as He, useId as k2, isValidElement as ya, cloneElement as ba, Children as A2, Component as R2, Fragment as Qu, useReducer as T2, useImperativeHandle as Cb } from "react";
6
6
  import * as kf from "react-dom";
7
7
  import N2, { createPortal as P2 } from "react-dom";
8
8
  function Il(e) {
@@ -1012,7 +1012,7 @@ class Q2 extends zn {
1012
1012
  return this._value === null ? "null" : this._value.toString();
1013
1013
  }
1014
1014
  }
1015
- class Br extends zn {
1015
+ class Lr extends zn {
1016
1016
  constructor({ data: t, mime: n }) {
1017
1017
  super({ data: t, mime: n }), t.length === 0 ? this._json = void 0 : (this._json = JSON.parse(new TextDecoder().decode(nt(t))), this._json === "<NoValue>" && (this._json = void 0));
1018
1018
  }
@@ -1021,7 +1021,7 @@ class Br extends zn {
1021
1021
  }
1022
1022
  static fromObject(t) {
1023
1023
  const n = t === "<NoValue>" ? new Uint8Array(0) : new TextEncoder().encode(JSON.stringify(t));
1024
- return new Br({ data: n, mime: "application/json" });
1024
+ return new Lr({ data: n, mime: "application/json" });
1025
1025
  }
1026
1026
  toString() {
1027
1027
  return JSON.stringify(this._json);
@@ -1041,7 +1041,7 @@ class eI extends zn {
1041
1041
  const Wh = ({
1042
1042
  data: e,
1043
1043
  mime: t
1044
- }) => e instanceof ArrayBuffer || e instanceof Uint8Array ? t.startsWith("application/fn.struct.") ? new Q2({ data: e, mime: t }) : t.startsWith("application/json") ? new Br({ data: e, mime: t }) : t === "text" || t.startsWith("text/") ? new eI({ data: e, mime: t }) : new q2({ data: e, mime: t }) : new zn({ data: e, mime: t }), tI = {
1044
+ }) => e instanceof ArrayBuffer || e instanceof Uint8Array ? t.startsWith("application/fn.struct.") ? new Q2({ data: e, mime: t }) : t.startsWith("application/json") ? new Lr({ data: e, mime: t }) : t === "text" || t.startsWith("text/") ? new eI({ data: e, mime: t }) : new q2({ data: e, mime: t }) : new zn({ data: e, mime: t }), tI = {
1045
1045
  id: "dummy",
1046
1046
  node_id: "dummy",
1047
1047
  node_name: "dummy",
@@ -1124,15 +1124,15 @@ const Wh = ({
1124
1124
  },
1125
1125
  valuestore: xt((o, i) => {
1126
1126
  let s = n.value;
1127
- s === "<NoValue>" && (s = void 0), !(s instanceof zn) && s !== void 0 && (s = Br.fromObject(s));
1127
+ s === "<NoValue>" && (s = void 0), !(s instanceof zn) && s !== void 0 && (s = Lr.fromObject(s));
1128
1128
  let a = n.fullvalue;
1129
- return a === "<NoValue>" && (a = void 0), !(a instanceof zn) && a !== void 0 && (a = Br.fromObject(a)), {
1129
+ return a === "<NoValue>" && (a = void 0), !(a instanceof zn) && a !== void 0 && (a = Lr.fromObject(a)), {
1130
1130
  preview: s,
1131
1131
  full: a
1132
1132
  };
1133
1133
  }),
1134
1134
  updateValueStore: (o) => {
1135
- r.valuestore.setState((i) => (i.preview && typeof i.preview.dispose == "function" && i.preview.dispose(), i.full && typeof i.full.dispose == "function" && i.full.dispose(), o.preview !== void 0 && o.full === void 0 && (o.full = void 0, i.full = void 0), o.preview !== void 0 && !(o.preview instanceof zn) && (o.preview = Br.fromObject(o.preview)), o.full !== void 0 && !(o.full instanceof zn) && (o.full = Br.fromObject(o.full)), { ...i, ...o }));
1135
+ r.valuestore.setState((i) => (i.preview && typeof i.preview.dispose == "function" && i.preview.dispose(), i.full && typeof i.full.dispose == "function" && i.full.dispose(), o.preview !== void 0 && o.full === void 0 && (o.full = void 0, i.full = void 0), o.preview !== void 0 && !(o.preview instanceof zn) && (o.preview = Lr.fromObject(o.preview)), o.full !== void 0 && !(o.full instanceof zn) && (o.full = Lr.fromObject(o.full)), { ...i, ...o }));
1136
1136
  },
1137
1137
  node: e,
1138
1138
  serialize: () => {
@@ -2246,7 +2246,7 @@ Nf(It, nd, Hb(ds, {
2246
2246
  return this;
2247
2247
  },
2248
2248
  clamp() {
2249
- return new It(Wr(this.r), Wr(this.g), Wr(this.b), Va(this.opacity));
2249
+ return new It(Hr(this.r), Hr(this.g), Hr(this.b), Va(this.opacity));
2250
2250
  },
2251
2251
  displayable() {
2252
2252
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
@@ -2259,23 +2259,23 @@ Nf(It, nd, Hb(ds, {
2259
2259
  toString: Qh
2260
2260
  }));
2261
2261
  function Kh() {
2262
- return `#${zr(this.r)}${zr(this.g)}${zr(this.b)}`;
2262
+ return `#${Br(this.r)}${Br(this.g)}${Br(this.b)}`;
2263
2263
  }
2264
2264
  function lA() {
2265
- return `#${zr(this.r)}${zr(this.g)}${zr(this.b)}${zr((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2265
+ return `#${Br(this.r)}${Br(this.g)}${Br(this.b)}${Br((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2266
2266
  }
2267
2267
  function Qh() {
2268
2268
  const e = Va(this.opacity);
2269
- return `${e === 1 ? "rgb(" : "rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2269
+ return `${e === 1 ? "rgb(" : "rgba("}${Hr(this.r)}, ${Hr(this.g)}, ${Hr(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2270
2270
  }
2271
2271
  function Va(e) {
2272
2272
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2273
2273
  }
2274
- function Wr(e) {
2274
+ function Hr(e) {
2275
2275
  return Math.max(0, Math.min(255, Math.round(e) || 0));
2276
2276
  }
2277
- function zr(e) {
2278
- return e = Wr(e), (e < 16 ? "0" : "") + e.toString(16);
2277
+ function Br(e) {
2278
+ return e = Hr(e), (e < 16 ? "0" : "") + e.toString(16);
2279
2279
  }
2280
2280
  function eg(e, t, n, r) {
2281
2281
  return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new on(e, t, n, r);
@@ -2481,14 +2481,14 @@ const _A = function e(t, n, r) {
2481
2481
  return e(s, a, l);
2482
2482
  }, o;
2483
2483
  }(Math.SQRT2, 2, 4);
2484
- var Bo = 0, Si = 0, hi = 0, Jb = 1e3, Ga, Ei, $a = 0, Ur = 0, Tl = 0, $i = typeof performance == "object" && performance.now ? performance : Date, qb = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2484
+ var Bo = 0, Si = 0, hi = 0, Jb = 1e3, Ga, Ei, $a = 0, Yr = 0, Tl = 0, $i = typeof performance == "object" && performance.now ? performance : Date, qb = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2485
2485
  setTimeout(e, 17);
2486
2486
  };
2487
2487
  function Pf() {
2488
- return Ur || (qb(SA), Ur = $i.now() + Tl);
2488
+ return Yr || (qb(SA), Yr = $i.now() + Tl);
2489
2489
  }
2490
2490
  function SA() {
2491
- Ur = 0;
2491
+ Yr = 0;
2492
2492
  }
2493
2493
  function Ha() {
2494
2494
  this._call = this._time = this._next = null;
@@ -2510,15 +2510,15 @@ function Kb(e, t, n) {
2510
2510
  function EA() {
2511
2511
  Pf(), ++Bo;
2512
2512
  for (var e = Ga, t; e; )
2513
- (t = Ur - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
2513
+ (t = Yr - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
2514
2514
  --Bo;
2515
2515
  }
2516
2516
  function ig() {
2517
- Ur = ($a = $i.now()) + Tl, Bo = Si = 0;
2517
+ Yr = ($a = $i.now()) + Tl, Bo = Si = 0;
2518
2518
  try {
2519
2519
  EA();
2520
2520
  } finally {
2521
- Bo = 0, kA(), Ur = 0;
2521
+ Bo = 0, kA(), Yr = 0;
2522
2522
  }
2523
2523
  }
2524
2524
  function IA() {
@@ -2533,7 +2533,7 @@ function kA() {
2533
2533
  function id(e) {
2534
2534
  if (!Bo) {
2535
2535
  Si && (Si = clearTimeout(Si));
2536
- var t = e - Ur;
2536
+ var t = e - Yr;
2537
2537
  t > 24 ? (e < 1 / 0 && (Si = setTimeout(ig, e - $i.now() - Tl)), hi && (hi = clearInterval(hi))) : (hi || ($a = $i.now(), hi = setInterval(IA, Jb)), Bo = 1, qb(ig));
2538
2538
  }
2539
2539
  }
@@ -3370,10 +3370,10 @@ var zo;
3370
3370
  (function(e) {
3371
3371
  e.Strict = "strict", e.Loose = "loose";
3372
3372
  })(zo || (zo = {}));
3373
- var Xr;
3373
+ var Wr;
3374
3374
  (function(e) {
3375
3375
  e.Free = "free", e.Vertical = "vertical", e.Horizontal = "horizontal";
3376
- })(Xr || (Xr = {}));
3376
+ })(Wr || (Wr = {}));
3377
3377
  var Wi;
3378
3378
  (function(e) {
3379
3379
  e.Partial = "partial", e.Full = "full";
@@ -3487,7 +3487,7 @@ function uv({ nodeId: e, nextPosition: t, nodeLookup: n, nodeOrigin: r = [0, 0],
3487
3487
  [s.extent[0][0] + l, s.extent[0][1] + c],
3488
3488
  [s.extent[1][0] + l, s.extent[1][1] + c]
3489
3489
  ]);
3490
- const f = $o(d) ? Zr(t, d, s.measured) : t;
3490
+ const f = $o(d) ? Ur(t, d, s.measured) : t;
3491
3491
  return (s.measured.width === void 0 || s.measured.height === void 0) && (i == null || i("015", $t.error015())), {
3492
3492
  position: {
3493
3493
  x: f.x - l + (s.measured.width ?? 0) * u[0],
@@ -3518,13 +3518,13 @@ async function XR({ nodesToRemove: e = [], edgesToRemove: t = [], nodes: n, edge
3518
3518
  });
3519
3519
  return typeof d == "boolean" ? d ? { edges: u, nodes: s } : { edges: [], nodes: [] } : d;
3520
3520
  }
3521
- const Vo = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), Zr = (e = { x: 0, y: 0 }, t, n) => ({
3521
+ const Vo = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), Ur = (e = { x: 0, y: 0 }, t, n) => ({
3522
3522
  x: Vo(e.x, t[0][0], t[1][0] - ((n == null ? void 0 : n.width) ?? 0)),
3523
3523
  y: Vo(e.y, t[0][1], t[1][1] - ((n == null ? void 0 : n.height) ?? 0))
3524
3524
  });
3525
3525
  function dv(e, t, n) {
3526
3526
  const { width: r, height: o } = Kn(n), { x: i, y: s } = n.internals.positionAbsolute;
3527
- return Zr(e, [
3527
+ return Ur(e, [
3528
3528
  [i, s],
3529
3529
  [i + r, s + o]
3530
3530
  ], t);
@@ -3974,7 +3974,7 @@ function aT(e, t, n) {
3974
3974
  if (o.parentId)
3975
3975
  Vf(o, e, t, r);
3976
3976
  else {
3977
- const i = fs(o, r.nodeOrigin), s = $o(o.extent) ? o.extent : r.nodeExtent, a = Zr(i, s, Kn(o));
3977
+ const i = fs(o, r.nodeOrigin), s = $o(o.extent) ? o.extent : r.nodeExtent, a = Ur(i, s, Kn(o));
3978
3978
  o.internals.positionAbsolute = a;
3979
3979
  }
3980
3980
  }
@@ -3989,7 +3989,7 @@ function dd(e, t, n, r) {
3989
3989
  if (o.checkEquality && u === (d == null ? void 0 : d.internals.userNode))
3990
3990
  t.set(u.id, d);
3991
3991
  else {
3992
- const f = fs(u, o.nodeOrigin), p = $o(u.extent) ? u.extent : o.nodeExtent, g = Zr(f, p, Kn(u));
3992
+ const f = fs(u, o.nodeOrigin), p = $o(u.extent) ? u.extent : o.nodeExtent, g = Ur(f, p, Kn(u));
3993
3993
  d = {
3994
3994
  ...o.defaults,
3995
3995
  ...u,
@@ -4037,8 +4037,8 @@ function _v(e, t) {
4037
4037
  return (an(e.zIndex) ? e.zIndex : 0) + (e.selected ? t : 0);
4038
4038
  }
4039
4039
  function cT(e, t, n, r, o) {
4040
- const { x: i, y: s } = t.internals.positionAbsolute, a = Kn(e), l = fs(e, n), c = $o(e.extent) ? Zr(l, e.extent, a) : l;
4041
- let u = Zr({ x: i + c.x, y: s + c.y }, r, a);
4040
+ const { x: i, y: s } = t.internals.positionAbsolute, a = Kn(e), l = fs(e, n), c = $o(e.extent) ? Ur(l, e.extent, a) : l;
4041
+ let u = Ur({ x: i + c.x, y: s + c.y }, r, a);
4042
4042
  e.extent === "parent" && (u = dv(u, a, t));
4043
4043
  const d = _v(e, o), f = t.internals.z ?? 0;
4044
4044
  return {
@@ -4111,7 +4111,7 @@ function uT(e, t, n, r, o, i) {
4111
4111
  if (!!(g.width && g.height && (h || !p.internals.handleBounds || f.force))) {
4112
4112
  const m = f.nodeElement.getBoundingClientRect(), x = $o(p.extent) ? p.extent : i;
4113
4113
  let { positionAbsolute: v } = p.internals;
4114
- p.parentId && p.extent === "parent" ? v = dv(v, g, t.get(p.parentId)) : x && (v = Zr(v, x, g));
4114
+ p.parentId && p.extent === "parent" ? v = dv(v, g, t.get(p.parentId)) : x && (v = Ur(v, x, g));
4115
4115
  const C = {
4116
4116
  ...p,
4117
4117
  measured: g,
@@ -4578,8 +4578,8 @@ function wT({ zoomPanValues: e, noWheelClassName: t, d3Selection: n, d3Zoom: r,
4578
4578
  return;
4579
4579
  }
4580
4580
  const f = u.deltaMode === 1 ? 20 : 1;
4581
- let p = o === Xr.Vertical ? 0 : u.deltaX * f, g = o === Xr.Horizontal ? 0 : u.deltaY * f;
4582
- !Ua() && u.shiftKey && o !== Xr.Vertical && (p = u.deltaY * f, g = 0), r.translateBy(
4581
+ let p = o === Wr.Vertical ? 0 : u.deltaX * f, g = o === Wr.Horizontal ? 0 : u.deltaY * f;
4582
+ !Ua() && u.shiftKey && o !== Wr.Vertical && (p = u.deltaY * f, g = 0), r.translateBy(
4583
4583
  n,
4584
4584
  -(p / d) * i,
4585
4585
  -(g / d) * i,
@@ -5161,7 +5161,7 @@ function tN(e) {
5161
5161
  we(() => (l(e.defaultNodes, e.defaultEdges), () => {
5162
5162
  d.current = kg, a();
5163
5163
  }), []);
5164
- const d = ge(kg);
5164
+ const d = me(kg);
5165
5165
  return we(
5166
5166
  () => {
5167
5167
  for (const f of Ig) {
@@ -5192,8 +5192,8 @@ function nN(e) {
5192
5192
  }, [e]), t !== null ? t : (r = Ag()) != null && r.matches ? "dark" : "light";
5193
5193
  }
5194
5194
  const Rg = typeof document < "u" ? document : null;
5195
- function yr(e = null, t = { target: Rg, actInsideInputWithModifier: !0 }) {
5196
- const [n, r] = ie(!1), o = ge(!1), i = ge(/* @__PURE__ */ new Set([])), [s, a] = st(() => {
5195
+ function Zr(e = null, t = { target: Rg, actInsideInputWithModifier: !0 }) {
5196
+ const [n, r] = ie(!1), o = me(!1), i = me(/* @__PURE__ */ new Set([])), [s, a] = st(() => {
5197
5197
  if (e !== null) {
5198
5198
  const c = (Array.isArray(e) ? e : [e]).filter((d) => typeof d == "string").map((d) => d.replace("+", `
5199
5199
  `).replace(`
@@ -5352,7 +5352,7 @@ function Bv(e, t) {
5352
5352
  function zv(e, t) {
5353
5353
  return Lv(e, t);
5354
5354
  }
5355
- function jr(e, t) {
5355
+ function Fr(e, t) {
5356
5356
  return {
5357
5357
  id: e,
5358
5358
  type: "select",
@@ -5363,7 +5363,7 @@ function Io(e, t = /* @__PURE__ */ new Set(), n = !1) {
5363
5363
  const r = [];
5364
5364
  for (const [o, i] of e) {
5365
5365
  const s = t.has(o);
5366
- !(i.selected === void 0 && !s) && i.selected !== s && (n && (i.selected = s), r.push(jr(i.id, s)));
5366
+ !(i.selected === void 0 && !s) && i.selected !== s && (n && (i.selected = s), r.push(Fr(i.id, s)));
5367
5367
  }
5368
5368
  return r;
5369
5369
  }
@@ -5587,7 +5587,7 @@ function gs() {
5587
5587
  }
5588
5588
  const Fg = (e) => e.selected, dN = { actInsideInputWithModifier: !1 }, fN = typeof window < "u" ? window : void 0;
5589
5589
  function pN({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
5590
- const n = Ye(), { deleteElements: r } = gs(), o = yr(e, dN), i = yr(t, { target: fN });
5590
+ const n = Ye(), { deleteElements: r } = gs(), o = Zr(e, dN), i = Zr(t, { target: fN });
5591
5591
  we(() => {
5592
5592
  if (o) {
5593
5593
  const { edges: s, nodes: a } = n.getState();
@@ -5626,8 +5626,8 @@ const Bl = {
5626
5626
  userSelectionActive: e.userSelectionActive,
5627
5627
  lib: e.lib
5628
5628
  });
5629
- function mN({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = Xr.Free, zoomOnDoubleClick: s = !0, panOnDrag: a = !0, defaultViewport: l, translateExtent: c, minZoom: u, maxZoom: d, zoomActivationKeyCode: f, preventScrolling: p = !0, children: g, noWheelClassName: h, noPanClassName: y, onViewportChange: m, isControlledViewport: x, paneClickDistance: v }) {
5630
- const C = Ye(), S = ge(null), { userSelectionActive: E, lib: I } = Ee(gN, We), N = yr(f), O = ge();
5629
+ function mN({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, panOnScroll: r = !1, panOnScrollSpeed: o = 0.5, panOnScrollMode: i = Wr.Free, zoomOnDoubleClick: s = !0, panOnDrag: a = !0, defaultViewport: l, translateExtent: c, minZoom: u, maxZoom: d, zoomActivationKeyCode: f, preventScrolling: p = !0, children: g, noWheelClassName: h, noPanClassName: y, onViewportChange: m, isControlledViewport: x, paneClickDistance: v }) {
5630
+ const C = Ye(), S = me(null), { userSelectionActive: E, lib: I } = Ee(gN, We), N = Zr(f), O = me();
5631
5631
  hN(S);
5632
5632
  const w = Me((R) => {
5633
5633
  m == null || m({ x: R[0], y: R[1], zoom: R[2] }), x || C.setState({ transform: R });
@@ -5723,7 +5723,7 @@ const Zc = (e, t) => (n) => {
5723
5723
  dragging: e.paneDragging
5724
5724
  });
5725
5725
  function xN({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Wi.Full, panOnDrag: r, selectionOnDrag: o, onSelectionStart: i, onSelectionEnd: s, onPaneClick: a, onPaneContextMenu: l, onPaneScroll: c, onPaneMouseEnter: u, onPaneMouseMove: d, onPaneMouseLeave: f, children: p }) {
5726
- const g = Ye(), { userSelectionActive: h, elementsSelectable: y, dragging: m, connectionInProgress: x } = Ee(vN, We), v = y && (e || h), C = ge(null), S = ge(), E = ge(/* @__PURE__ */ new Set()), I = ge(/* @__PURE__ */ new Set()), N = ge(!1), O = ge(!1), w = (B) => {
5726
+ const g = Ye(), { userSelectionActive: h, elementsSelectable: y, dragging: m, connectionInProgress: x } = Ee(vN, We), v = y && (e || h), C = me(null), S = me(), E = me(/* @__PURE__ */ new Set()), I = me(/* @__PURE__ */ new Set()), N = me(!1), O = me(!1), w = (B) => {
5727
5727
  if (N.current || x) {
5728
5728
  N.current = !1;
5729
5729
  return;
@@ -5814,7 +5814,7 @@ function pd({ id: e, store: t, unselect: n = !1, nodeRef: r }) {
5814
5814
  })) : o([e]);
5815
5815
  }
5816
5816
  function $v({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: r, nodeId: o, isSelectable: i, nodeClickDistance: s }) {
5817
- const a = Ye(), [l, c] = ie(!1), u = ge();
5817
+ const a = Ye(), [l, c] = ie(!1), u = me();
5818
5818
  return we(() => {
5819
5819
  u.current = pT({
5820
5820
  getStoreItems: () => a.getState(),
@@ -6036,7 +6036,7 @@ const NN = (e) => {
6036
6036
  };
6037
6037
  };
6038
6038
  function PN({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
6039
- const r = Ye(), { width: o, height: i, transformString: s, userSelectionActive: a } = Ee(NN, We), l = Hv(), c = ge(null);
6039
+ const r = Ye(), { width: o, height: i, transformString: s, userSelectionActive: a } = Ee(NN, We), l = Hv(), c = me(null);
6040
6040
  if (we(() => {
6041
6041
  var f;
6042
6042
  n || (f = c.current) == null || f.focus({
@@ -6064,7 +6064,7 @@ function PN({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
6064
6064
  }
6065
6065
  const Lg = typeof window < "u" ? window : void 0, ON = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
6066
6066
  function Xv({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, paneClickDistance: a, deleteKeyCode: l, selectionKeyCode: c, selectionOnDrag: u, selectionMode: d, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: g, panActivationKeyCode: h, zoomActivationKeyCode: y, elementsSelectable: m, zoomOnScroll: x, zoomOnPinch: v, panOnScroll: C, panOnScrollSpeed: S, panOnScrollMode: E, zoomOnDoubleClick: I, panOnDrag: N, defaultViewport: O, translateExtent: w, minZoom: R, maxZoom: P, preventScrolling: j, onSelectionContextMenu: A, noWheelClassName: F, noPanClassName: M, disableKeyboardA11y: B, onViewportChange: z, isControlledViewport: D }) {
6067
- const { nodesSelectionActive: _, userSelectionActive: V } = Ee(ON), G = yr(c, { target: Lg }), T = yr(h, { target: Lg }), $ = T || N, Z = T || C, H = u && $ !== !0, W = G || V || H;
6067
+ const { nodesSelectionActive: _, userSelectionActive: V } = Ee(ON), G = Zr(c, { target: Lg }), T = Zr(h, { target: Lg }), $ = T || N, Z = T || C, H = u && $ !== !0, W = G || V || H;
6068
6068
  return pN({ deleteKeyCode: l, multiSelectionKeyCode: g }), b.jsx(mN, { onPaneContextMenu: i, elementsSelectable: m, zoomOnScroll: x, zoomOnPinch: v, panOnScroll: Z, panOnScrollSpeed: S, panOnScrollMode: E, zoomOnDoubleClick: I, panOnDrag: !G && $, defaultViewport: O, translateExtent: w, minZoom: R, maxZoom: P, zoomActivationKeyCode: y, preventScrolling: j, noWheelClassName: F, noPanClassName: M, onViewportChange: z, isControlledViewport: D, paneClickDistance: a, children: b.jsxs(xN, { onSelectionStart: f, onSelectionEnd: p, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: r, onPaneMouseLeave: o, onPaneContextMenu: i, onPaneScroll: s, panOnDrag: $, isSelecting: !!W, selectionMode: d, selectionKeyPressed: G, selectionOnDrag: H, children: [e, _ && b.jsx(PN, { onSelectionContextMenu: A, noPanClassName: M, disableKeyboardA11y: B })] }) });
6069
6069
  }
6070
6070
  Xv.displayName = "FlowRenderer";
@@ -6090,7 +6090,7 @@ function LN() {
6090
6090
  }, [t]), t;
6091
6091
  }
6092
6092
  function BN({ node: e, nodeType: t, hasDimensions: n, resizeObserver: r }) {
6093
- const o = Ye(), i = ge(null), s = ge(null), a = ge(e.sourcePosition), l = ge(e.targetPosition), c = ge(t), u = n && !!e.internals.handleBounds;
6093
+ const o = Ye(), i = me(null), s = me(null), a = me(e.sourcePosition), l = me(e.targetPosition), c = me(t), u = n && !!e.internals.handleBounds;
6094
6094
  return we(() => {
6095
6095
  i.current && !e.hidden && (!u || s.current !== i.current) && (s.current && (r == null || r.unobserve(s.current)), r == null || r.observe(i.current), s.current = i.current);
6096
6096
  }, [u, e.hidden]), we(() => () => {
@@ -6264,7 +6264,7 @@ const YN = ({ id: e, type: t, color: n, width: r = 12.5, height: o = 12.5, marke
6264
6264
  Uv.displayName = "MarkerDefinitions";
6265
6265
  var UN = lt(Uv);
6266
6266
  function Zv({ x: e, y: t, label: n, labelStyle: r, labelShowBg: o = !0, labelBgStyle: i, labelBgPadding: s = [2, 4], labelBgBorderRadius: a = 2, children: l, className: c, ...u }) {
6267
- const [d, f] = ie({ x: 1, y: 0, width: 0, height: 0 }), p = at(["react-flow__edge-textwrapper", c]), g = ge(null);
6267
+ const [d, f] = ie({ x: 1, y: 0, width: 0, height: 0 }), p = at(["react-flow__edge-textwrapper", c]), g = me(null);
6268
6268
  return we(() => {
6269
6269
  if (g.current) {
6270
6270
  const h = g.current.getBBox();
@@ -6447,7 +6447,7 @@ function rP({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
6447
6447
  v = C ? { ...C, ...v } : v;
6448
6448
  let S = v.type || "default", E = (h == null ? void 0 : h[S]) || Vg[S];
6449
6449
  E === void 0 && (m == null || m("011", $t.error011(S)), S = "default", E = Vg.default);
6450
- const I = !!(v.focusable || t && typeof v.focusable > "u"), N = typeof d < "u" && (v.reconnectable || n && typeof v.reconnectable > "u"), O = !!(v.selectable || r && typeof v.selectable > "u"), w = ge(null), [R, P] = ie(!1), [j, A] = ie(!1), F = Ye(), { zIndex: M, sourceX: B, sourceY: z, targetX: D, targetY: _, sourcePosition: V, targetPosition: G } = Ee(Me((U) => {
6450
+ const I = !!(v.focusable || t && typeof v.focusable > "u"), N = typeof d < "u" && (v.reconnectable || n && typeof v.reconnectable > "u"), O = !!(v.selectable || r && typeof v.selectable > "u"), w = me(null), [R, P] = ie(!1), [j, A] = ie(!1), F = Ye(), { zIndex: M, sourceX: B, sourceY: z, targetX: D, targetY: _, sourcePosition: V, targetPosition: G } = Ee(Me((U) => {
6451
6451
  const ue = U.nodeLookup.get(v.source), de = U.nodeLookup.get(v.target);
6452
6452
  if (!ue || !de)
6453
6453
  return {
@@ -6529,7 +6529,7 @@ function aP({ children: e }) {
6529
6529
  return b.jsx("div", { className: "react-flow__viewport xyflow__viewport react-flow__container", style: { transform: t }, children: e });
6530
6530
  }
6531
6531
  function lP(e) {
6532
- const t = gs(), n = ge(!1);
6532
+ const t = gs(), n = me(!1);
6533
6533
  we(() => {
6534
6534
  !n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
6535
6535
  }, [e, t.viewportInitialized]);
@@ -6604,7 +6604,7 @@ const cx = ({ style: e, type: t = fr.Bezier, CustomComponent: n, isValid: r }) =
6604
6604
  cx.displayName = "ConnectionLine";
6605
6605
  const mP = {};
6606
6606
  function Wg(e = mP) {
6607
- const t = ge(e), n = Ye();
6607
+ const t = me(e), n = Ye();
6608
6608
  we(() => {
6609
6609
  var r, o;
6610
6610
  if (process.env.NODE_ENV === "development") {
@@ -6619,7 +6619,7 @@ function Wg(e = mP) {
6619
6619
  }, [e]);
6620
6620
  }
6621
6621
  function yP() {
6622
- const e = Ye(), t = ge(!1);
6622
+ const e = Ye(), t = me(!1);
6623
6623
  we(() => {
6624
6624
  var n, r;
6625
6625
  if (process.env.NODE_ENV === "development" && !t.current) {
@@ -6628,8 +6628,8 @@ function yP() {
6628
6628
  }
6629
6629
  }, []);
6630
6630
  }
6631
- function ux({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: g, connectionLineStyle: h, connectionLineComponent: y, connectionLineContainerStyle: m, selectionKeyCode: x, selectionOnDrag: v, selectionMode: C, multiSelectionKeyCode: S, panActivationKeyCode: E, zoomActivationKeyCode: I, deleteKeyCode: N, onlyRenderVisibleElements: O, elementsSelectable: w, defaultViewport: R, translateExtent: P, minZoom: j, maxZoom: A, preventScrolling: F, defaultMarkerColor: M, zoomOnScroll: B, zoomOnPinch: z, panOnScroll: D, panOnScrollSpeed: _, panOnScrollMode: V, zoomOnDoubleClick: G, panOnDrag: T, onPaneClick: $, onPaneMouseEnter: Z, onPaneMouseMove: H, onPaneMouseLeave: W, onPaneScroll: Y, onPaneContextMenu: K, paneClickDistance: te, nodeClickDistance: re, onEdgeContextMenu: U, onEdgeMouseEnter: ue, onEdgeMouseMove: de, onEdgeMouseLeave: ke, reconnectRadius: Ke, onReconnect: dt, onReconnectStart: Tt, onReconnectEnd: Nt, noDragClassName: Kt, noWheelClassName: Nr, noPanClassName: me, disableKeyboardA11y: Pr, nodeExtent: ui, rfId: Or, viewport: q, onViewportChange: ne }) {
6632
- return Wg(e), Wg(t), yP(), lP(n), uP(q), b.jsx(MN, { onPaneClick: $, onPaneMouseEnter: Z, onPaneMouseMove: H, onPaneMouseLeave: W, onPaneContextMenu: K, onPaneScroll: Y, paneClickDistance: te, deleteKeyCode: N, selectionKeyCode: x, selectionOnDrag: v, selectionMode: C, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: S, panActivationKeyCode: E, zoomActivationKeyCode: I, elementsSelectable: w, zoomOnScroll: B, zoomOnPinch: z, zoomOnDoubleClick: G, panOnScroll: D, panOnScrollSpeed: _, panOnScrollMode: V, panOnDrag: T, defaultViewport: R, translateExtent: P, minZoom: j, maxZoom: A, onSelectionContextMenu: d, preventScrolling: F, noDragClassName: Kt, noWheelClassName: Nr, noPanClassName: me, disableKeyboardA11y: Pr, onViewportChange: ne, isControlledViewport: !!q, children: b.jsxs(aP, { children: [b.jsx(iP, { edgeTypes: t, onEdgeClick: o, onEdgeDoubleClick: s, onReconnect: dt, onReconnectStart: Tt, onReconnectEnd: Nt, onlyRenderVisibleElements: O, onEdgeContextMenu: U, onEdgeMouseEnter: ue, onEdgeMouseMove: de, onEdgeMouseLeave: ke, reconnectRadius: Ke, defaultMarkerColor: M, noPanClassName: me, disableKeyboardA11y: Pr, rfId: Or }), b.jsx(gP, { style: h, type: g, component: y, containerStyle: m }), b.jsx("div", { className: "react-flow__edgelabel-renderer" }), b.jsx(GN, { nodeTypes: e, onNodeClick: r, onNodeDoubleClick: i, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: u, nodeClickDistance: re, onlyRenderVisibleElements: O, noPanClassName: me, noDragClassName: Kt, disableKeyboardA11y: Pr, nodeExtent: ui, rfId: Or }), b.jsx("div", { className: "react-flow__viewport-portal" })] }) });
6631
+ function ux({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: r, onEdgeClick: o, onNodeDoubleClick: i, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: u, onSelectionContextMenu: d, onSelectionStart: f, onSelectionEnd: p, connectionLineType: g, connectionLineStyle: h, connectionLineComponent: y, connectionLineContainerStyle: m, selectionKeyCode: x, selectionOnDrag: v, selectionMode: C, multiSelectionKeyCode: S, panActivationKeyCode: E, zoomActivationKeyCode: I, deleteKeyCode: N, onlyRenderVisibleElements: O, elementsSelectable: w, defaultViewport: R, translateExtent: P, minZoom: j, maxZoom: A, preventScrolling: F, defaultMarkerColor: M, zoomOnScroll: B, zoomOnPinch: z, panOnScroll: D, panOnScrollSpeed: _, panOnScrollMode: V, zoomOnDoubleClick: G, panOnDrag: T, onPaneClick: $, onPaneMouseEnter: Z, onPaneMouseMove: H, onPaneMouseLeave: W, onPaneScroll: Y, onPaneContextMenu: K, paneClickDistance: te, nodeClickDistance: re, onEdgeContextMenu: U, onEdgeMouseEnter: ue, onEdgeMouseMove: de, onEdgeMouseLeave: ke, reconnectRadius: Ke, onReconnect: dt, onReconnectStart: Tt, onReconnectEnd: Nt, noDragClassName: Kt, noWheelClassName: Tr, noPanClassName: ge, disableKeyboardA11y: Nr, nodeExtent: ui, rfId: Pr, viewport: q, onViewportChange: ne }) {
6632
+ return Wg(e), Wg(t), yP(), lP(n), uP(q), b.jsx(MN, { onPaneClick: $, onPaneMouseEnter: Z, onPaneMouseMove: H, onPaneMouseLeave: W, onPaneContextMenu: K, onPaneScroll: Y, paneClickDistance: te, deleteKeyCode: N, selectionKeyCode: x, selectionOnDrag: v, selectionMode: C, onSelectionStart: f, onSelectionEnd: p, multiSelectionKeyCode: S, panActivationKeyCode: E, zoomActivationKeyCode: I, elementsSelectable: w, zoomOnScroll: B, zoomOnPinch: z, zoomOnDoubleClick: G, panOnScroll: D, panOnScrollSpeed: _, panOnScrollMode: V, panOnDrag: T, defaultViewport: R, translateExtent: P, minZoom: j, maxZoom: A, onSelectionContextMenu: d, preventScrolling: F, noDragClassName: Kt, noWheelClassName: Tr, noPanClassName: ge, disableKeyboardA11y: Nr, onViewportChange: ne, isControlledViewport: !!q, children: b.jsxs(aP, { children: [b.jsx(iP, { edgeTypes: t, onEdgeClick: o, onEdgeDoubleClick: s, onReconnect: dt, onReconnectStart: Tt, onReconnectEnd: Nt, onlyRenderVisibleElements: O, onEdgeContextMenu: U, onEdgeMouseEnter: ue, onEdgeMouseMove: de, onEdgeMouseLeave: ke, reconnectRadius: Ke, defaultMarkerColor: M, noPanClassName: ge, disableKeyboardA11y: Nr, rfId: Pr }), b.jsx(gP, { style: h, type: g, component: y, containerStyle: m }), b.jsx("div", { className: "react-flow__edgelabel-renderer" }), b.jsx(GN, { nodeTypes: e, onNodeClick: r, onNodeDoubleClick: i, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: u, nodeClickDistance: re, onlyRenderVisibleElements: O, noPanClassName: ge, noDragClassName: Kt, disableKeyboardA11y: Nr, nodeExtent: ui, rfId: Pr }), b.jsx("div", { className: "react-flow__viewport-portal" })] }) });
6633
6633
  }
6634
6634
  ux.displayName = "GraphView";
6635
6635
  const bP = lt(ux), Xg = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, width: o, height: i, fitView: s, nodeOrigin: a, nodeExtent: l } = {}) => {
@@ -6801,7 +6801,7 @@ const bP = lt(ux), Xg = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
6801
6801
  addSelectedNodes: (f) => {
6802
6802
  const { multiSelectionActive: p, edgeLookup: g, nodeLookup: h, triggerNodeChanges: y, triggerEdgeChanges: m } = u();
6803
6803
  if (p) {
6804
- const x = f.map((v) => jr(v, !0));
6804
+ const x = f.map((v) => Fr(v, !0));
6805
6805
  y(x);
6806
6806
  return;
6807
6807
  }
@@ -6810,7 +6810,7 @@ const bP = lt(ux), Xg = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
6810
6810
  addSelectedEdges: (f) => {
6811
6811
  const { multiSelectionActive: p, edgeLookup: g, nodeLookup: h, triggerNodeChanges: y, triggerEdgeChanges: m } = u();
6812
6812
  if (p) {
6813
- const x = f.map((v) => jr(v, !0));
6813
+ const x = f.map((v) => Fr(v, !0));
6814
6814
  m(x);
6815
6815
  return;
6816
6816
  }
@@ -6819,8 +6819,8 @@ const bP = lt(ux), Xg = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
6819
6819
  unselectNodesAndEdges: ({ nodes: f, edges: p } = {}) => {
6820
6820
  const { edges: g, nodes: h, nodeLookup: y, triggerNodeChanges: m, triggerEdgeChanges: x } = u(), v = f || h, C = p || g, S = v.map((I) => {
6821
6821
  const N = y.get(I.id);
6822
- return N && (N.selected = !1), jr(I.id, !1);
6823
- }), E = C.map((I) => jr(I.id, !1));
6822
+ return N && (N.selected = !1), Fr(I.id, !1);
6823
+ }), E = C.map((I) => Fr(I.id, !1));
6824
6824
  m(S), x(E);
6825
6825
  },
6826
6826
  setMinZoom: (f) => {
@@ -6840,7 +6840,7 @@ const bP = lt(ux), Xg = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r,
6840
6840
  (p = u().panZoom) == null || p.setClickDistance(f);
6841
6841
  },
6842
6842
  resetSelectedElements: () => {
6843
- const { edges: f, nodes: p, triggerNodeChanges: g, triggerEdgeChanges: h } = u(), y = p.reduce((x, v) => v.selected ? [...x, jr(v.id, !1)] : x, []), m = f.reduce((x, v) => v.selected ? [...x, jr(v.id, !1)] : x, []);
6843
+ const { edges: f, nodes: p, triggerNodeChanges: g, triggerEdgeChanges: h } = u(), y = p.reduce((x, v) => v.selected ? [...x, Fr(v.id, !1)] : x, []), m = f.reduce((x, v) => v.selected ? [...x, Fr(v.id, !1)] : x, []);
6844
6844
  g(y), h(m);
6845
6845
  },
6846
6846
  setNodeExtent: (f) => {
@@ -6891,11 +6891,11 @@ const CP = {
6891
6891
  position: "relative",
6892
6892
  zIndex: 0
6893
6893
  };
6894
- function _P({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: g, onConnectEnd: h, onClickConnectStart: y, onClickConnectEnd: m, onNodeMouseEnter: x, onNodeMouseMove: v, onNodeMouseLeave: C, onNodeContextMenu: S, onNodeDoubleClick: E, onNodeDragStart: I, onNodeDrag: N, onNodeDragStop: O, onNodesDelete: w, onEdgesDelete: R, onDelete: P, onSelectionChange: j, onSelectionDragStart: A, onSelectionDrag: F, onSelectionDragStop: M, onSelectionContextMenu: B, onSelectionStart: z, onSelectionEnd: D, onBeforeDelete: _, connectionMode: V, connectionLineType: G = fr.Bezier, connectionLineStyle: T, connectionLineComponent: $, connectionLineContainerStyle: Z, deleteKeyCode: H = "Backspace", selectionKeyCode: W = "Shift", selectionOnDrag: Y = !1, selectionMode: K = Wi.Full, panActivationKeyCode: te = "Space", multiSelectionKeyCode: re = Ua() ? "Meta" : "Control", zoomActivationKeyCode: U = Ua() ? "Meta" : "Control", snapToGrid: ue, snapGrid: de, onlyRenderVisibleElements: ke = !1, selectNodesOnDrag: Ke, nodesDraggable: dt, nodesConnectable: Tt, nodesFocusable: Nt, nodeOrigin: Kt = jv, edgesFocusable: Nr, edgesReconnectable: me, elementsSelectable: Pr = !0, defaultViewport: ui = KT, minZoom: Or = 0.5, maxZoom: q = 2, translateExtent: ne = Hi, preventScrolling: ye = !0, nodeExtent: Ce, defaultMarkerColor: Oe = "#b1b1b7", zoomOnScroll: Pt = !0, zoomOnPinch: Dn = !0, panOnScroll: Qt = !1, panOnScrollSpeed: Mr = 0.5, panOnScrollMode: Dr = Xr.Free, zoomOnDoubleClick: vt = !0, panOnDrag: ir = !0, onPaneClick: en, onPaneMouseEnter: ME, onPaneMouseMove: DE, onPaneMouseLeave: FE, onPaneScroll: jE, onPaneContextMenu: LE, paneClickDistance: Ih = 0, nodeClickDistance: BE = 0, children: zE, onReconnect: VE, onReconnectStart: GE, onReconnectEnd: $E, onEdgeContextMenu: HE, onEdgeDoubleClick: WE, onEdgeMouseEnter: XE, onEdgeMouseMove: YE, onEdgeMouseLeave: UE, reconnectRadius: ZE = 10, onNodesChange: JE, onEdgesChange: qE, noDragClassName: KE = "nodrag", noWheelClassName: QE = "nowheel", noPanClassName: kh = "nopan", fitView: Ah, fitViewOptions: e2, connectOnClick: t2, attributionPosition: n2, proOptions: r2, defaultEdgeOptions: o2, elevateNodesOnSelect: i2, elevateEdgesOnSelect: s2, disableKeyboardA11y: Rh = !1, autoPanOnConnect: a2, autoPanOnNodeDrag: l2, autoPanSpeed: c2, connectionRadius: u2, isValidConnection: d2, onError: f2, style: p2, id: Th, nodeDragThreshold: h2, viewport: g2, onViewportChange: m2, width: y2, height: b2, colorMode: v2 = "light", debug: x2, onScroll: Ms, ...w2 }, C2) {
6894
+ function _P({ nodes: e, edges: t, defaultNodes: n, defaultEdges: r, className: o, nodeTypes: i, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: u, onMoveStart: d, onMoveEnd: f, onConnect: p, onConnectStart: g, onConnectEnd: h, onClickConnectStart: y, onClickConnectEnd: m, onNodeMouseEnter: x, onNodeMouseMove: v, onNodeMouseLeave: C, onNodeContextMenu: S, onNodeDoubleClick: E, onNodeDragStart: I, onNodeDrag: N, onNodeDragStop: O, onNodesDelete: w, onEdgesDelete: R, onDelete: P, onSelectionChange: j, onSelectionDragStart: A, onSelectionDrag: F, onSelectionDragStop: M, onSelectionContextMenu: B, onSelectionStart: z, onSelectionEnd: D, onBeforeDelete: _, connectionMode: V, connectionLineType: G = fr.Bezier, connectionLineStyle: T, connectionLineComponent: $, connectionLineContainerStyle: Z, deleteKeyCode: H = "Backspace", selectionKeyCode: W = "Shift", selectionOnDrag: Y = !1, selectionMode: K = Wi.Full, panActivationKeyCode: te = "Space", multiSelectionKeyCode: re = Ua() ? "Meta" : "Control", zoomActivationKeyCode: U = Ua() ? "Meta" : "Control", snapToGrid: ue, snapGrid: de, onlyRenderVisibleElements: ke = !1, selectNodesOnDrag: Ke, nodesDraggable: dt, nodesConnectable: Tt, nodesFocusable: Nt, nodeOrigin: Kt = jv, edgesFocusable: Tr, edgesReconnectable: ge, elementsSelectable: Nr = !0, defaultViewport: ui = KT, minZoom: Pr = 0.5, maxZoom: q = 2, translateExtent: ne = Hi, preventScrolling: ye = !0, nodeExtent: Ce, defaultMarkerColor: Oe = "#b1b1b7", zoomOnScroll: Pt = !0, zoomOnPinch: Dn = !0, panOnScroll: Qt = !1, panOnScrollSpeed: Or = 0.5, panOnScrollMode: Mr = Wr.Free, zoomOnDoubleClick: vt = !0, panOnDrag: ir = !0, onPaneClick: en, onPaneMouseEnter: ME, onPaneMouseMove: DE, onPaneMouseLeave: FE, onPaneScroll: jE, onPaneContextMenu: LE, paneClickDistance: Ih = 0, nodeClickDistance: BE = 0, children: zE, onReconnect: VE, onReconnectStart: GE, onReconnectEnd: $E, onEdgeContextMenu: HE, onEdgeDoubleClick: WE, onEdgeMouseEnter: XE, onEdgeMouseMove: YE, onEdgeMouseLeave: UE, reconnectRadius: ZE = 10, onNodesChange: JE, onEdgesChange: qE, noDragClassName: KE = "nodrag", noWheelClassName: QE = "nowheel", noPanClassName: kh = "nopan", fitView: Ah, fitViewOptions: e2, connectOnClick: t2, attributionPosition: n2, proOptions: r2, defaultEdgeOptions: o2, elevateNodesOnSelect: i2, elevateEdgesOnSelect: s2, disableKeyboardA11y: Rh = !1, autoPanOnConnect: a2, autoPanOnNodeDrag: l2, autoPanSpeed: c2, connectionRadius: u2, isValidConnection: d2, onError: f2, style: p2, id: Th, nodeDragThreshold: h2, viewport: g2, onViewportChange: m2, width: y2, height: b2, colorMode: v2 = "light", debug: x2, onScroll: Ms, ...w2 }, C2) {
6895
6895
  const jc = Th || "1", _2 = nN(v2), S2 = Me((Nh) => {
6896
6896
  Nh.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), Ms == null || Ms(Nh);
6897
6897
  }, [Ms]);
6898
- return b.jsx("div", { "data-testid": "rf__wrapper", ...w2, onScroll: S2, style: { ...p2, ...CP }, ref: C2, className: at(["react-flow", o, _2]), id: Th, children: b.jsxs(wP, { nodes: e, edges: t, width: y2, height: b2, fitView: Ah, nodeOrigin: Kt, nodeExtent: Ce, children: [b.jsx(bP, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: x, onNodeMouseMove: v, onNodeMouseLeave: C, onNodeContextMenu: S, onNodeDoubleClick: E, nodeTypes: i, edgeTypes: s, connectionLineType: G, connectionLineStyle: T, connectionLineComponent: $, connectionLineContainerStyle: Z, selectionKeyCode: W, selectionOnDrag: Y, selectionMode: K, deleteKeyCode: H, multiSelectionKeyCode: re, panActivationKeyCode: te, zoomActivationKeyCode: U, onlyRenderVisibleElements: ke, defaultViewport: ui, translateExtent: ne, minZoom: Or, maxZoom: q, preventScrolling: ye, zoomOnScroll: Pt, zoomOnPinch: Dn, zoomOnDoubleClick: vt, panOnScroll: Qt, panOnScrollSpeed: Mr, panOnScrollMode: Dr, panOnDrag: ir, onPaneClick: en, onPaneMouseEnter: ME, onPaneMouseMove: DE, onPaneMouseLeave: FE, onPaneScroll: jE, onPaneContextMenu: LE, paneClickDistance: Ih, nodeClickDistance: BE, onSelectionContextMenu: B, onSelectionStart: z, onSelectionEnd: D, onReconnect: VE, onReconnectStart: GE, onReconnectEnd: $E, onEdgeContextMenu: HE, onEdgeDoubleClick: WE, onEdgeMouseEnter: XE, onEdgeMouseMove: YE, onEdgeMouseLeave: UE, reconnectRadius: ZE, defaultMarkerColor: Oe, noDragClassName: KE, noWheelClassName: QE, noPanClassName: kh, rfId: jc, disableKeyboardA11y: Rh, nodeExtent: Ce, viewport: g2, onViewportChange: m2 }), b.jsx(tN, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: h, onClickConnectStart: y, onClickConnectEnd: m, nodesDraggable: dt, nodesConnectable: Tt, nodesFocusable: Nt, edgesFocusable: Nr, edgesReconnectable: me, elementsSelectable: Pr, elevateNodesOnSelect: i2, elevateEdgesOnSelect: s2, minZoom: Or, maxZoom: q, nodeExtent: Ce, onNodesChange: JE, onEdgesChange: qE, snapToGrid: ue, snapGrid: de, connectionMode: V, translateExtent: ne, connectOnClick: t2, defaultEdgeOptions: o2, fitView: Ah, fitViewOptions: e2, onNodesDelete: w, onEdgesDelete: R, onDelete: P, onNodeDragStart: I, onNodeDrag: N, onNodeDragStop: O, onSelectionDrag: F, onSelectionDragStart: A, onSelectionDragStop: M, onMove: u, onMoveStart: d, onMoveEnd: f, noPanClassName: kh, nodeOrigin: Kt, rfId: jc, autoPanOnConnect: a2, autoPanOnNodeDrag: l2, autoPanSpeed: c2, onError: f2, connectionRadius: u2, isValidConnection: d2, selectNodesOnDrag: Ke, nodeDragThreshold: h2, onBeforeDelete: _, paneClickDistance: Ih, debug: x2 }), b.jsx(qT, { onSelectionChange: j }), zE, b.jsx(XT, { proOptions: r2, position: n2 }), b.jsx(HT, { rfId: jc, disableKeyboardA11y: Rh })] }) });
6898
+ return b.jsx("div", { "data-testid": "rf__wrapper", ...w2, onScroll: S2, style: { ...p2, ...CP }, ref: C2, className: at(["react-flow", o, _2]), id: Th, children: b.jsxs(wP, { nodes: e, edges: t, width: y2, height: b2, fitView: Ah, nodeOrigin: Kt, nodeExtent: Ce, children: [b.jsx(bP, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: x, onNodeMouseMove: v, onNodeMouseLeave: C, onNodeContextMenu: S, onNodeDoubleClick: E, nodeTypes: i, edgeTypes: s, connectionLineType: G, connectionLineStyle: T, connectionLineComponent: $, connectionLineContainerStyle: Z, selectionKeyCode: W, selectionOnDrag: Y, selectionMode: K, deleteKeyCode: H, multiSelectionKeyCode: re, panActivationKeyCode: te, zoomActivationKeyCode: U, onlyRenderVisibleElements: ke, defaultViewport: ui, translateExtent: ne, minZoom: Pr, maxZoom: q, preventScrolling: ye, zoomOnScroll: Pt, zoomOnPinch: Dn, zoomOnDoubleClick: vt, panOnScroll: Qt, panOnScrollSpeed: Or, panOnScrollMode: Mr, panOnDrag: ir, onPaneClick: en, onPaneMouseEnter: ME, onPaneMouseMove: DE, onPaneMouseLeave: FE, onPaneScroll: jE, onPaneContextMenu: LE, paneClickDistance: Ih, nodeClickDistance: BE, onSelectionContextMenu: B, onSelectionStart: z, onSelectionEnd: D, onReconnect: VE, onReconnectStart: GE, onReconnectEnd: $E, onEdgeContextMenu: HE, onEdgeDoubleClick: WE, onEdgeMouseEnter: XE, onEdgeMouseMove: YE, onEdgeMouseLeave: UE, reconnectRadius: ZE, defaultMarkerColor: Oe, noDragClassName: KE, noWheelClassName: QE, noPanClassName: kh, rfId: jc, disableKeyboardA11y: Rh, nodeExtent: Ce, viewport: g2, onViewportChange: m2 }), b.jsx(tN, { nodes: e, edges: t, defaultNodes: n, defaultEdges: r, onConnect: p, onConnectStart: g, onConnectEnd: h, onClickConnectStart: y, onClickConnectEnd: m, nodesDraggable: dt, nodesConnectable: Tt, nodesFocusable: Nt, edgesFocusable: Tr, edgesReconnectable: ge, elementsSelectable: Nr, elevateNodesOnSelect: i2, elevateEdgesOnSelect: s2, minZoom: Pr, maxZoom: q, nodeExtent: Ce, onNodesChange: JE, onEdgesChange: qE, snapToGrid: ue, snapGrid: de, connectionMode: V, translateExtent: ne, connectOnClick: t2, defaultEdgeOptions: o2, fitView: Ah, fitViewOptions: e2, onNodesDelete: w, onEdgesDelete: R, onDelete: P, onNodeDragStart: I, onNodeDrag: N, onNodeDragStop: O, onSelectionDrag: F, onSelectionDragStart: A, onSelectionDragStop: M, onMove: u, onMoveStart: d, onMoveEnd: f, noPanClassName: kh, nodeOrigin: Kt, rfId: jc, autoPanOnConnect: a2, autoPanOnNodeDrag: l2, autoPanSpeed: c2, onError: f2, connectionRadius: u2, isValidConnection: d2, selectNodesOnDrag: Ke, nodeDragThreshold: h2, onBeforeDelete: _, paneClickDistance: Ih, debug: x2 }), b.jsx(qT, { onSelectionChange: j }), zE, b.jsx(XT, { proOptions: r2, position: n2 }), b.jsx(HT, { rfId: jc, disableKeyboardA11y: Rh })] }) });
6899
6899
  }
6900
6900
  var SP = Vv(_P);
6901
6901
  const EP = (e) => e.nodes;
@@ -6912,18 +6912,18 @@ function RP({ dimensions: e, lineWidth: t, variant: n, className: r }) {
6912
6912
  function TP({ radius: e, className: t }) {
6913
6913
  return b.jsx("circle", { cx: e, cy: e, r: e, className: at(["react-flow__background-pattern", "dots", t]) });
6914
6914
  }
6915
- var br;
6915
+ var yr;
6916
6916
  (function(e) {
6917
6917
  e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
6918
- })(br || (br = {}));
6918
+ })(yr || (yr = {}));
6919
6919
  const NP = {
6920
- [br.Dots]: 1,
6921
- [br.Lines]: 1,
6922
- [br.Cross]: 6
6920
+ [yr.Dots]: 1,
6921
+ [yr.Lines]: 1,
6922
+ [yr.Cross]: 6
6923
6923
  }, PP = (e) => ({ transform: e.transform, patternId: `pattern-${e.rfId}` });
6924
6924
  function dx({
6925
6925
  id: e,
6926
- variant: t = br.Dots,
6926
+ variant: t = yr.Dots,
6927
6927
  // only used for dots and cross
6928
6928
  gap: n = 20,
6929
6929
  // only used for lines and cross
@@ -6936,7 +6936,7 @@ function dx({
6936
6936
  className: c,
6937
6937
  patternClassName: u
6938
6938
  }) {
6939
- const d = ge(null), { transform: f, patternId: p } = Ee(PP, We), g = r || NP[t], h = t === br.Dots, y = t === br.Cross, m = Array.isArray(n) ? n : [n, n], x = [m[0] * f[2] || 1, m[1] * f[2] || 1], v = g * f[2], C = Array.isArray(i) ? i : [i, i], S = y ? [v, v] : x, E = [
6939
+ const d = me(null), { transform: f, patternId: p } = Ee(PP, We), g = r || NP[t], h = t === yr.Dots, y = t === yr.Cross, m = Array.isArray(n) ? n : [n, n], x = [m[0] * f[2] || 1, m[1] * f[2] || 1], v = g * f[2], C = Array.isArray(i) ? i : [i, i], S = y ? [v, v] : x, E = [
6940
6940
  C[0] * f[2] || 1 + S[0] / 2,
6941
6941
  C[1] * f[2] || 1 + S[1] / 2
6942
6942
  ], I = `${p}${e || ""}`;
@@ -7083,7 +7083,7 @@ function px({
7083
7083
  zoomStep: v = 10,
7084
7084
  offsetScale: C = 5
7085
7085
  }) {
7086
- const S = Ye(), E = ge(null), { boundingRect: I, viewBB: N, rfId: O, panZoom: w, translateExtent: R, flowWidth: P, flowHeight: j } = Ee(JP, We), A = (e == null ? void 0 : e.width) ?? YP, F = (e == null ? void 0 : e.height) ?? UP, M = I.width / A, B = I.height / F, z = Math.max(M, B), D = z * A, _ = z * F, V = C * z, G = I.x - (D - I.width) / 2 - V, T = I.y - (_ - I.height) / 2 - V, $ = D + V * 2, Z = _ + V * 2, H = `${qP}-${O}`, W = ge(0), Y = ge();
7086
+ const S = Ye(), E = me(null), { boundingRect: I, viewBB: N, rfId: O, panZoom: w, translateExtent: R, flowWidth: P, flowHeight: j } = Ee(JP, We), A = (e == null ? void 0 : e.width) ?? YP, F = (e == null ? void 0 : e.height) ?? UP, M = I.width / A, B = I.height / F, z = Math.max(M, B), D = z * A, _ = z * F, V = C * z, G = I.x - (D - I.width) / 2 - V, T = I.y - (_ - I.height) / 2 - V, $ = D + V * 2, Z = _ + V * 2, H = `${qP}-${O}`, W = me(0), Y = me();
7087
7087
  W.current = z, we(() => {
7088
7088
  if (E.current && w)
7089
7089
  return Y.current = vT({
@@ -7130,7 +7130,7 @@ function px({
7130
7130
  px.displayName = "MiniMap";
7131
7131
  const KP = lt(px);
7132
7132
  function QP({ nodeId: e, position: t, variant: n = Pi.Handle, className: r, style: o = {}, children: i, color: s, minWidth: a = 10, minHeight: l = 10, maxWidth: c = Number.MAX_VALUE, maxHeight: u = Number.MAX_VALUE, keepAspectRatio: d = !1, shouldResize: f, onResizeStart: p, onResize: g, onResizeEnd: h }) {
7133
- const y = Wv(), m = typeof e == "string" ? e : y, x = Ye(), v = ge(null), C = n === Pi.Line ? "right" : "bottom-right", S = t ?? C, E = ge(null);
7133
+ const y = Wv(), m = typeof e == "string" ? e : y, x = Ye(), v = me(null), C = n === Pi.Line ? "right" : "bottom-right", S = t ?? C, E = me(null);
7134
7134
  we(() => {
7135
7135
  if (!(!v.current || !m))
7136
7136
  return E.current || (E.current = MT({
@@ -7830,7 +7830,7 @@ function vx(e, t) {
7830
7830
  return o;
7831
7831
  return null;
7832
7832
  }
7833
- const Vr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xx = (e) => !Zi(e) && e !== Vr;
7833
+ const zr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, xx = (e) => !Zi(e) && e !== zr;
7834
7834
  function gd() {
7835
7835
  const { caseless: e } = xx(this) && this || {}, t = {}, n = (r, o) => {
7836
7836
  const i = e && vx(t, o) || o;
@@ -7937,14 +7937,14 @@ const WO = (e) => {
7937
7937
  return r;
7938
7938
  };
7939
7939
  return n(e, 0);
7940
- }, XO = fn("AsyncFunction"), YO = (e) => e && (Gl(e) || jt(e)) && jt(e.then) && jt(e.catch), Cx = ((e, t) => e ? setImmediate : t ? ((n, r) => (Vr.addEventListener("message", ({ source: o, data: i }) => {
7941
- o === Vr && i === n && r.length && r.shift()();
7940
+ }, XO = fn("AsyncFunction"), YO = (e) => e && (Gl(e) || jt(e)) && jt(e.then) && jt(e.catch), Cx = ((e, t) => e ? setImmediate : t ? ((n, r) => (zr.addEventListener("message", ({ source: o, data: i }) => {
7941
+ o === zr && i === n && r.length && r.shift()();
7942
7942
  }, !1), (o) => {
7943
- r.push(o), Vr.postMessage(n, "*");
7943
+ r.push(o), zr.postMessage(n, "*");
7944
7944
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
7945
7945
  typeof setImmediate == "function",
7946
- jt(Vr.postMessage)
7947
- ), UO = typeof queueMicrotask < "u" ? queueMicrotask.bind(Vr) : typeof process < "u" && process.nextTick || Cx, X = {
7946
+ jt(zr.postMessage)
7947
+ ), UO = typeof queueMicrotask < "u" ? queueMicrotask.bind(zr) : typeof process < "u" && process.nextTick || Cx, X = {
7948
7948
  isArray: Ko,
7949
7949
  isArrayBuffer: yx,
7950
7950
  isBuffer: fO,
@@ -7993,7 +7993,7 @@ const WO = (e) => {
7993
7993
  noop: GO,
7994
7994
  toFiniteNumber: $O,
7995
7995
  findKey: vx,
7996
- global: Vr,
7996
+ global: zr,
7997
7997
  isContextDefined: xx,
7998
7998
  isSpecCompliantForm: HO,
7999
7999
  toJSONObject: WO,
@@ -9153,7 +9153,7 @@ const Ea = {
9153
9153
  assertOptions: FM,
9154
9154
  validators: Wl
9155
9155
  }, gn = Ea.validators;
9156
- let Yr = class {
9156
+ let Xr = class {
9157
9157
  constructor(t) {
9158
9158
  this.defaults = t, this.interceptors = {
9159
9159
  request: new Kg(),
@@ -9254,7 +9254,7 @@ let Yr = class {
9254
9254
  }
9255
9255
  };
9256
9256
  X.forEach(["delete", "get", "head", "options"], function(t) {
9257
- Yr.prototype[t] = function(n, r) {
9257
+ Xr.prototype[t] = function(n, r) {
9258
9258
  return this.request(Jr(r || {}, {
9259
9259
  method: t,
9260
9260
  url: n,
@@ -9275,7 +9275,7 @@ X.forEach(["post", "put", "patch"], function(t) {
9275
9275
  }));
9276
9276
  };
9277
9277
  }
9278
- Yr.prototype[t] = n(), Yr.prototype[t + "Form"] = n(!0);
9278
+ Xr.prototype[t] = n(), Xr.prototype[t + "Form"] = n(!0);
9279
9279
  });
9280
9280
  let jM = class Lx {
9281
9281
  constructor(t) {
@@ -9427,13 +9427,13 @@ Object.entries(xd).forEach(([e, t]) => {
9427
9427
  xd[t] = e;
9428
9428
  });
9429
9429
  function Bx(e) {
9430
- const t = new Yr(e), n = mx(Yr.prototype.request, t);
9431
- return X.extend(n, Yr.prototype, t, { allOwnKeys: !0 }), X.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
9430
+ const t = new Xr(e), n = mx(Xr.prototype.request, t);
9431
+ return X.extend(n, Xr.prototype, t, { allOwnKeys: !0 }), X.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
9432
9432
  return Bx(Jr(e, o));
9433
9433
  }, n;
9434
9434
  }
9435
9435
  const Qe = Bx(bs);
9436
- Qe.Axios = Yr;
9436
+ Qe.Axios = Xr;
9437
9437
  Qe.CanceledError = Qo;
9438
9438
  Qe.CancelToken = jM;
9439
9439
  Qe.isCancel = Tx;
@@ -9453,22 +9453,22 @@ Qe.getAdapter = Fx.getAdapter;
9453
9453
  Qe.HttpStatusCode = xd;
9454
9454
  Qe.default = Qe;
9455
9455
  const {
9456
- Axios: hq,
9457
- AxiosError: gq,
9458
- CanceledError: mq,
9459
- isCancel: yq,
9460
- CancelToken: bq,
9461
- VERSION: vq,
9462
- all: xq,
9463
- Cancel: wq,
9464
- isAxiosError: Cq,
9465
- spread: _q,
9466
- toFormData: Sq,
9467
- AxiosHeaders: Eq,
9468
- HttpStatusCode: Iq,
9469
- formToJSON: kq,
9470
- getAdapter: Aq,
9471
- mergeConfig: Rq
9456
+ Axios: gq,
9457
+ AxiosError: mq,
9458
+ CanceledError: yq,
9459
+ isCancel: bq,
9460
+ CancelToken: vq,
9461
+ VERSION: xq,
9462
+ all: wq,
9463
+ Cancel: Cq,
9464
+ isAxiosError: _q,
9465
+ spread: Sq,
9466
+ toFormData: Eq,
9467
+ AxiosHeaders: Iq,
9468
+ HttpStatusCode: kq,
9469
+ formToJSON: Aq,
9470
+ getAdapter: Rq,
9471
+ mergeConfig: Tq
9472
9472
  } = Qe, ct = [];
9473
9473
  for (let e = 0; e < 256; ++e)
9474
9474
  ct.push((e + 256).toString(16).slice(1));
@@ -10766,7 +10766,7 @@ function e5(e, t) {
10766
10766
  }
10767
10767
  return [r, o];
10768
10768
  }
10769
- function kr(e, t = []) {
10769
+ function Ir(e, t = []) {
10770
10770
  let n = [];
10771
10771
  function r(i, s) {
10772
10772
  const a = k.createContext(s), l = n.length;
@@ -11787,7 +11787,7 @@ var d4 = function(e) {
11787
11787
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), p4(r, o, n, "aria-hidden")) : function() {
11788
11788
  return null;
11789
11789
  };
11790
- }, Jf = "Dialog", [e1, Tq] = kr(Jf), [h4, pn] = e1(Jf), t1 = (e) => {
11790
+ }, Jf = "Dialog", [e1, Nq] = Ir(Jf), [h4, pn] = e1(Jf), t1 = (e) => {
11791
11791
  const {
11792
11792
  __scopeDialog: t,
11793
11793
  children: n,
@@ -11991,7 +11991,7 @@ p1.displayName = f1;
11991
11991
  function Qf(e) {
11992
11992
  return e ? "open" : "closed";
11993
11993
  }
11994
- var h1 = "DialogTitleWarning", [Nq, g1] = e5(h1, {
11994
+ var h1 = "DialogTitleWarning", [Pq, g1] = e5(h1, {
11995
11995
  contentName: Kr,
11996
11996
  titleName: Kf,
11997
11997
  docsSlug: "dialog"
@@ -12072,8 +12072,8 @@ try {
12072
12072
  }
12073
12073
  const {
12074
12074
  userAgent: Em = ""
12075
- } = ep.navigator || {}, vr = ep, Ge = m1, Im = y1, Ks = b1;
12076
- vr.document;
12075
+ } = ep.navigator || {}, br = ep, Ge = m1, Im = y1, Ks = b1;
12076
+ br.document;
12077
12077
  const er = !!Ge.documentElement && !!Ge.head && typeof Ge.addEventListener == "function" && typeof Ge.createElement == "function", v1 = ~Em.indexOf("MSIE") || ~Em.indexOf("Trident/");
12078
12078
  var O4 = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, M4 = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i, x1 = {
12079
12079
  classic: {
@@ -12383,7 +12383,7 @@ Rd[yt] = Q(Q({}, Rd[yt]), H4.kit);
12383
12383
  vs(Rd);
12384
12384
  const aD = O4, A1 = "fa-layers-text", lD = M4, cD = Q({}, L4);
12385
12385
  vs(cD);
12386
- const uD = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], lu = D4, dD = [...$4, ...tD], Oi = vr.FontAwesomeConfig || {};
12386
+ const uD = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], lu = D4, dD = [...$4, ...tD], Oi = br.FontAwesomeConfig || {};
12387
12387
  function fD(e) {
12388
12388
  var t = Ge.querySelector("script[" + e + "]");
12389
12389
  if (t)
@@ -12436,7 +12436,7 @@ Object.defineProperty(se, "familyPrefix", {
12436
12436
  return Wo.cssPrefix;
12437
12437
  }
12438
12438
  });
12439
- vr.FontAwesomeConfig = se;
12439
+ br.FontAwesomeConfig = se;
12440
12440
  const Mi = [];
12441
12441
  function hD(e) {
12442
12442
  return Mi.push(e), () => {
@@ -13107,7 +13107,7 @@ var wD = {
13107
13107
  };
13108
13108
  }
13109
13109
  };
13110
- const Un = vr || {};
13110
+ const Un = br || {};
13111
13111
  Un[Yn] || (Un[Yn] = {});
13112
13112
  Un[Yn].styles || (Un[Yn].styles = {});
13113
13113
  Un[Yn].hooks || (Un[Yn].hooks = {});
@@ -13234,7 +13234,7 @@ function ap(e, t) {
13234
13234
  function RD(e, t) {
13235
13235
  return (F1[e] || {})[t];
13236
13236
  }
13237
- function Gr(e, t) {
13237
+ function Vr(e, t) {
13238
13238
  return (B1[e] || {})[t];
13239
13239
  }
13240
13240
  function V1(e) {
@@ -13253,7 +13253,7 @@ function TD(e) {
13253
13253
  iconName: null
13254
13254
  };
13255
13255
  }
13256
- function xr() {
13256
+ function vr() {
13257
13257
  return sp;
13258
13258
  }
13259
13259
  const G1 = () => ({
@@ -13321,7 +13321,7 @@ function OD(e, t, n) {
13321
13321
  prefix: r,
13322
13322
  iconName: o
13323
13323
  };
13324
- const i = t === "fa" ? V1(o) : {}, s = Gr(r, o);
13324
+ const i = t === "fa" ? V1(o) : {}, s = Vr(r, o);
13325
13325
  return o = i.iconName || s || o, r = i.prefix || r, r === "far" && !qi.far && qi.fas && !se.autoFetchSvg && (r = "fas"), {
13326
13326
  prefix: r,
13327
13327
  iconName: o
@@ -13339,9 +13339,9 @@ function FD(e) {
13339
13339
  } = e, a = n === ql, l = t.includes("fa-duotone") || t.includes("fad"), c = s.familyDefault === "duotone", u = r.prefix === "fad" || r.prefix === "fa-duotone";
13340
13340
  if (!a && (l || c || u) && (r.prefix = "fad"), (t.includes("fa-brands") || t.includes("fab")) && (r.prefix = "fab"), !r.prefix && MD.includes(n) && (Object.keys(i).find((f) => DD.includes(f)) || s.autoFetchSvg)) {
13341
13341
  const f = z4.get(n).defaultShortPrefixId;
13342
- r.prefix = f, r.iconName = Gr(r.prefix, r.iconName) || r.iconName;
13342
+ r.prefix = f, r.iconName = Vr(r.prefix, r.iconName) || r.iconName;
13343
13343
  }
13344
- return (r.prefix === "fa" || o === "fa") && (r.prefix = xr() || "fas"), r;
13344
+ return (r.prefix === "fa" || o === "fa") && (r.prefix = vr() || "fas"), r;
13345
13345
  }
13346
13346
  let jD = class {
13347
13347
  constructor() {
@@ -13412,7 +13412,7 @@ function eo(e) {
13412
13412
  i.apply(null, n);
13413
13413
  });
13414
13414
  }
13415
- function wr() {
13415
+ function xr() {
13416
13416
  const e = arguments[0], t = Array.prototype.slice.call(arguments, 1);
13417
13417
  return Po[e] ? Po[e].apply(null, t) : void 0;
13418
13418
  }
@@ -13421,16 +13421,16 @@ function Od(e) {
13421
13421
  let {
13422
13422
  iconName: t
13423
13423
  } = e;
13424
- const n = e.prefix || xr();
13424
+ const n = e.prefix || vr();
13425
13425
  if (t)
13426
- return t = Gr(n, t) || t, Pm($1.definitions, n, t) || Pm(En.styles, n, t);
13426
+ return t = Vr(n, t) || t, Pm($1.definitions, n, t) || Pm(En.styles, n, t);
13427
13427
  }
13428
13428
  const $1 = new jD(), zD = () => {
13429
13429
  se.autoReplaceSvg = !1, se.observeMutations = !1, eo("noAuto");
13430
13430
  }, VD = {
13431
13431
  i2svg: function() {
13432
13432
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13433
- return er ? (eo("beforeI2svg", e), wr("pseudoElements2svg", e), wr("i2svg", e)) : Promise.reject(new Error("Operation requires a DOM of some kind."));
13433
+ return er ? (eo("beforeI2svg", e), xr("pseudoElements2svg", e), xr("i2svg", e)) : Promise.reject(new Error("Operation requires a DOM of some kind."));
13434
13434
  },
13435
13435
  watch: function() {
13436
13436
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -13450,13 +13450,13 @@ const $1 = new jD(), zD = () => {
13450
13450
  if (typeof e == "object" && e.prefix && e.iconName)
13451
13451
  return {
13452
13452
  prefix: e.prefix,
13453
- iconName: Gr(e.prefix, e.iconName) || e.iconName
13453
+ iconName: Vr(e.prefix, e.iconName) || e.iconName
13454
13454
  };
13455
13455
  if (Array.isArray(e) && e.length === 2) {
13456
13456
  const t = e[1].indexOf("fa-") === 0 ? e[1].slice(3) : e[1], n = Ql(e[0]);
13457
13457
  return {
13458
13458
  prefix: n,
13459
- iconName: Gr(n, t) || t
13459
+ iconName: Vr(n, t) || t
13460
13460
  };
13461
13461
  }
13462
13462
  if (typeof e == "string" && (e.indexOf("".concat(se.cssPrefix, "-")) > -1 || e.match(aD))) {
@@ -13464,15 +13464,15 @@ const $1 = new jD(), zD = () => {
13464
13464
  skipLookups: !0
13465
13465
  });
13466
13466
  return {
13467
- prefix: t.prefix || xr(),
13468
- iconName: Gr(t.prefix, t.iconName) || t.iconName
13467
+ prefix: t.prefix || vr(),
13468
+ iconName: Vr(t.prefix, t.iconName) || t.iconName
13469
13469
  };
13470
13470
  }
13471
13471
  if (typeof e == "string") {
13472
- const t = xr();
13472
+ const t = vr();
13473
13473
  return {
13474
13474
  prefix: t,
13475
- iconName: Gr(t, e) || e
13475
+ iconName: Vr(t, e) || e
13476
13476
  };
13477
13477
  }
13478
13478
  }
@@ -13610,10 +13610,10 @@ function lp(e) {
13610
13610
  }), {
13611
13611
  children: v,
13612
13612
  attributes: C
13613
- } = n.found && t.found ? wr("generateAbstractMask", x) || {
13613
+ } = n.found && t.found ? xr("generateAbstractMask", x) || {
13614
13614
  children: [],
13615
13615
  attributes: {}
13616
- } : wr("generateAbstractIcon", x) || {
13616
+ } : xr("generateAbstractIcon", x) || {
13617
13617
  children: [],
13618
13618
  attributes: {}
13619
13619
  };
@@ -13729,7 +13729,7 @@ function UD(e, t) {
13729
13729
  }
13730
13730
  function Dd(e, t) {
13731
13731
  let n = t;
13732
- return t === "fa" && se.styleDefault !== null && (t = xr()), new Promise((r, o) => {
13732
+ return t === "fa" && se.styleDefault !== null && (t = vr()), new Promise((r, o) => {
13733
13733
  if (n === "fa") {
13734
13734
  const i = V1(e) || {};
13735
13735
  e = i.iconName || e, t = i.prefix || t;
@@ -13739,7 +13739,7 @@ function Dd(e, t) {
13739
13739
  return r(Md(i));
13740
13740
  }
13741
13741
  UD(e, t), r(Q(Q({}, YD), {}, {
13742
- icon: se.showMissingIcons && e ? wr("missingIconAbstract") || {} : {}
13742
+ icon: se.showMissingIcons && e ? xr("missingIconAbstract") || {} : {}
13743
13743
  }));
13744
13744
  });
13745
13745
  }
@@ -13833,7 +13833,7 @@ function X1(e, t) {
13833
13833
  n();
13834
13834
  else {
13835
13835
  let r = Bm;
13836
- se.mutateApproach === oD && (r = vr.requestAnimationFrame || Bm), r(() => {
13836
+ se.mutateApproach === oD && (r = br.requestAnimationFrame || Bm), r(() => {
13837
13837
  const o = KD(), i = cp.begin("mutate");
13838
13838
  e.map(o), i(), n();
13839
13839
  });
@@ -13858,7 +13858,7 @@ function zm(e) {
13858
13858
  } = e;
13859
13859
  el = new Im((i) => {
13860
13860
  if (up) return;
13861
- const s = xr();
13861
+ const s = vr();
13862
13862
  ti(i).forEach((a) => {
13863
13863
  if (a.type === "childList" && a.addedNodes.length > 0 && !Lm(a.addedNodes[0]) && (se.searchPseudoElements && r(a.target), t(a.target)), a.type === "attributes" && a.target.parentNode && se.searchPseudoElements && r(a.target.parentNode), a.type === "attributes" && Lm(a.target) && ~uD.indexOf(a.attributeName))
13864
13864
  if (a.attributeName === "class" && JD(a.target)) {
@@ -13890,7 +13890,7 @@ function r3(e) {
13890
13890
  function o3(e) {
13891
13891
  const t = e.getAttribute("data-prefix"), n = e.getAttribute("data-icon"), r = e.innerText !== void 0 ? e.innerText.trim() : "";
13892
13892
  let o = ec(op(e));
13893
- return o.prefix || (o.prefix = xr()), t && n && (o.prefix = t, o.iconName = n), o.iconName && o.prefix || (o.prefix && r.length > 0 && (o.iconName = RD(o.prefix, e.innerText) || ap(o.prefix, Td(e.innerText))), !o.iconName && se.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (o.iconName = e.firstChild.data)), o;
13893
+ return o.prefix || (o.prefix = vr()), t && n && (o.prefix = t, o.iconName = n), o.iconName && o.prefix || (o.prefix && r.length > 0 && (o.iconName = RD(o.prefix, e.innerText) || ap(o.prefix, Td(e.innerText))), !o.iconName && se.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (o.iconName = e.firstChild.data)), o;
13894
13894
  }
13895
13895
  function i3(e) {
13896
13896
  const t = ti(e.attributes).reduce((o, i) => (o.name !== "class" && o.name !== "style" && (o[i.name] = i.value), o), {}), n = e.getAttribute("title"), r = e.getAttribute("data-fa-title-id");
@@ -13954,7 +13954,7 @@ function U1(e) {
13954
13954
  const t = se.autoReplaceSvg === "nest" ? Vm(e, {
13955
13955
  styleParser: !1
13956
13956
  }) : Vm(e);
13957
- return ~t.extra.classes.indexOf(A1) ? wr("generateLayersText", e, t) : wr("generateSvgReplacementMutation", e, t);
13957
+ return ~t.extra.classes.indexOf(A1) ? xr("generateLayersText", e, t) : xr("generateSvgReplacementMutation", e, t);
13958
13958
  }
13959
13959
  function l3() {
13960
13960
  return [...G4, ...Sd];
@@ -14130,7 +14130,7 @@ var f3 = {
14130
14130
  const a = Kl(s);
14131
14131
  a.length > 0 && (r.style = a);
14132
14132
  let l;
14133
- return ip(i) && (l = wr("generateAbstractTransformGrouping", {
14133
+ return ip(i) && (l = xr("generateAbstractTransformGrouping", {
14134
14134
  main: o,
14135
14135
  transform: i,
14136
14136
  containerWidth: o.width,
@@ -14281,7 +14281,7 @@ function Wm(e, t) {
14281
14281
  return new Promise((r, o) => {
14282
14282
  if (e.getAttribute(n) !== null)
14283
14283
  return r();
14284
- const s = ti(e.children).filter((f) => f.getAttribute(Id) === t)[0], a = vr.getComputedStyle(e, t), l = a.getPropertyValue("font-family"), c = l.match(lD), u = a.getPropertyValue("font-weight"), d = a.getPropertyValue("content");
14284
+ const s = ti(e.children).filter((f) => f.getAttribute(Id) === t)[0], a = br.getComputedStyle(e, t), l = a.getPropertyValue("font-family"), c = l.match(lD), u = a.getPropertyValue("font-weight"), d = a.getPropertyValue("content");
14285
14285
  if (s && !c)
14286
14286
  return e.removeChild(s), r();
14287
14287
  if (c && d !== "none" && d !== "") {
@@ -14498,7 +14498,7 @@ var I3 = {
14498
14498
  return {
14499
14499
  parseNodeAttributes(e, t) {
14500
14500
  const n = t.getAttribute("data-fa-mask"), r = n ? ec(n.split(" ").map((o) => o.trim())) : G1();
14501
- return r.prefix || (r.prefix = xr()), e.mask = r, e.maskId = t.getAttribute("data-fa-mask-id"), e;
14501
+ return r.prefix || (r.prefix = vr()), e.mask = r, e.maskId = t.getAttribute("data-fa-mask-id"), e;
14502
14502
  }
14503
14503
  };
14504
14504
  },
@@ -14574,7 +14574,7 @@ var I3 = {
14574
14574
  }, k3 = {
14575
14575
  provides(e) {
14576
14576
  let t = !1;
14577
- vr.matchMedia && (t = vr.matchMedia("(prefers-reduced-motion: reduce)").matches), e.missingIconAbstract = function() {
14577
+ br.matchMedia && (t = br.matchMedia("(prefers-reduced-motion: reduce)").matches), e.missingIconAbstract = function() {
14578
14578
  const n = [], r = {
14579
14579
  fill: "currentColor"
14580
14580
  }, o = {
@@ -15700,7 +15700,7 @@ const Ct = (e) => {
15700
15700
  ] });
15701
15701
  };
15702
15702
  function hp(e) {
15703
- const t = e + "CollectionProvider", [n, r] = kr(t), [o, i] = n(
15703
+ const t = e + "CollectionProvider", [n, r] = Ir(t), [o, i] = n(
15704
15704
  t,
15705
15705
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
15706
15706
  ), s = (h) => {
@@ -15744,7 +15744,7 @@ function gp(e) {
15744
15744
  const t = k.useContext(wF);
15745
15745
  return e || t || "ltr";
15746
15746
  }
15747
- const CF = ["top", "right", "bottom", "left"], Cr = Math.min, Mt = Math.max, nl = Math.round, na = Math.floor, kn = (e) => ({
15747
+ const CF = ["top", "right", "bottom", "left"], wr = Math.min, Mt = Math.max, nl = Math.round, na = Math.floor, kn = (e) => ({
15748
15748
  x: e,
15749
15749
  y: e
15750
15750
  }), _F = {
@@ -15757,7 +15757,7 @@ const CF = ["top", "right", "bottom", "left"], Cr = Math.min, Mt = Math.max, nl
15757
15757
  end: "start"
15758
15758
  };
15759
15759
  function Hd(e, t, n) {
15760
- return Mt(e, Cr(t, n));
15760
+ return Mt(e, wr(t, n));
15761
15761
  }
15762
15762
  function Zn(e, t) {
15763
15763
  return typeof e == "function" ? e(t) : e;
@@ -15774,11 +15774,11 @@ function mp(e) {
15774
15774
  function yp(e) {
15775
15775
  return e === "y" ? "height" : "width";
15776
15776
  }
15777
- function _r(e) {
15777
+ function Cr(e) {
15778
15778
  return ["top", "bottom"].includes(Jn(e)) ? "y" : "x";
15779
15779
  }
15780
15780
  function bp(e) {
15781
- return mp(_r(e));
15781
+ return mp(Cr(e));
15782
15782
  }
15783
15783
  function EF(e, t, n) {
15784
15784
  n === void 0 && (n = !1);
@@ -15854,7 +15854,7 @@ function d0(e, t, n) {
15854
15854
  reference: r,
15855
15855
  floating: o
15856
15856
  } = e;
15857
- const i = _r(t), s = bp(t), a = yp(s), l = Jn(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[a] / 2 - o[a] / 2;
15857
+ const i = Cr(t), s = bp(t), a = yp(s), l = Jn(t), c = i === "y", u = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, f = r[a] / 2 - o[a] / 2;
15858
15858
  let p;
15859
15859
  switch (l) {
15860
15860
  case "top":
@@ -16027,7 +16027,7 @@ const NF = (e) => ({
16027
16027
  }, p = bp(o), g = yp(p), h = await s.getDimensions(c), y = p === "y", m = y ? "top" : "left", x = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[p] - f[p] - i.floating[g], S = f[p] - i.reference[p], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
16028
16028
  let I = E ? E[v] : 0;
16029
16029
  (!I || !await (s.isElement == null ? void 0 : s.isElement(E))) && (I = a.floating[v] || i.floating[g]);
16030
- const N = C / 2 - S / 2, O = I / 2 - h[g] / 2 - 1, w = Cr(d[m], O), R = Cr(d[x], O), P = w, j = I - h[g] - R, A = I / 2 - h[g] / 2 + N, F = Hd(P, A, j), M = !l.arrow && ri(o) != null && A !== F && i.reference[g] / 2 - (A < P ? w : R) - h[g] / 2 < 0, B = M ? A < P ? A - P : A - j : 0;
16030
+ const N = C / 2 - S / 2, O = I / 2 - h[g] / 2 - 1, w = wr(d[m], O), R = wr(d[x], O), P = w, j = I - h[g] - R, A = I / 2 - h[g] / 2 + N, F = Hd(P, A, j), M = !l.arrow && ri(o) != null && A !== F && i.reference[g] / 2 - (A < P ? w : R) - h[g] / 2 < 0, B = M ? A < P ? A - P : A - j : 0;
16031
16031
  return {
16032
16032
  [p]: f[p] + B,
16033
16033
  data: {
@@ -16064,7 +16064,7 @@ const NF = (e) => ({
16064
16064
  } = Zn(e, t);
16065
16065
  if ((n = i.arrow) != null && n.alignmentOffset)
16066
16066
  return {};
16067
- const m = Jn(o), x = _r(a), v = Jn(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = f || (v || !h ? [rl(a)] : IF(a)), E = g !== "none";
16067
+ const m = Jn(o), x = Cr(a), v = Jn(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = f || (v || !h ? [rl(a)] : IF(a)), E = g !== "none";
16068
16068
  !f && E && S.push(...AF(a, h, g, C));
16069
16069
  const I = [a, ...S], N = await Ki(t, y), O = [];
16070
16070
  let w = ((r = i.flip) == null ? void 0 : r.overflows) || [];
@@ -16095,7 +16095,7 @@ const NF = (e) => ({
16095
16095
  var j;
16096
16096
  const B = (j = w.filter((z) => {
16097
16097
  if (E) {
16098
- const D = _r(z.placement);
16098
+ const D = Cr(z.placement);
16099
16099
  return D === x || // Create a bias to the `y` side axis due to horizontal
16100
16100
  // reading directions favoring greater width.
16101
16101
  D === "y";
@@ -16178,7 +16178,7 @@ async function MF(e, t) {
16178
16178
  placement: n,
16179
16179
  platform: r,
16180
16180
  elements: o
16181
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Jn(n), a = ri(n), l = _r(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d = Zn(t, e);
16181
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Jn(n), a = ri(n), l = Cr(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = i && l ? -1 : 1, d = Zn(t, e);
16182
16182
  let {
16183
16183
  mainAxis: f,
16184
16184
  crossAxis: p,
@@ -16250,7 +16250,7 @@ const DF = function(e) {
16250
16250
  } = Zn(e, t), c = {
16251
16251
  x: n,
16252
16252
  y: r
16253
- }, u = await Ki(t, l), d = _r(Jn(o)), f = mp(d);
16253
+ }, u = await Ki(t, l), d = Cr(Jn(o)), f = mp(d);
16254
16254
  let p = c[f], g = c[d];
16255
16255
  if (i) {
16256
16256
  const y = f === "y" ? "top" : "left", m = f === "y" ? "bottom" : "right", x = p + u[y], v = p - u[m];
@@ -16295,7 +16295,7 @@ const DF = function(e) {
16295
16295
  } = Zn(e, t), u = {
16296
16296
  x: n,
16297
16297
  y: r
16298
- }, d = _r(o), f = mp(d);
16298
+ }, d = Cr(o), f = mp(d);
16299
16299
  let p = u[f], g = u[d];
16300
16300
  const h = Zn(a, t), y = typeof h == "number" ? {
16301
16301
  mainAxis: h,
@@ -16335,13 +16335,13 @@ const DF = function(e) {
16335
16335
  apply: l = () => {
16336
16336
  },
16337
16337
  ...c
16338
- } = Zn(e, t), u = await Ki(t, c), d = Jn(o), f = ri(o), p = _r(o) === "y", {
16338
+ } = Zn(e, t), u = await Ki(t, c), d = Jn(o), f = ri(o), p = Cr(o) === "y", {
16339
16339
  width: g,
16340
16340
  height: h
16341
16341
  } = i.floating;
16342
16342
  let y, m;
16343
16343
  d === "top" || d === "bottom" ? (y = d, m = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (m = d, y = f === "end" ? "top" : "bottom");
16344
- const x = h - u.top - u.bottom, v = g - u.left - u.right, C = Cr(h - u[y], x), S = Cr(g - u[m], v), E = !t.middlewareData.shift;
16344
+ const x = h - u.top - u.bottom, v = g - u.left - u.right, C = wr(h - u[y], x), S = wr(g - u[m], v), E = !t.middlewareData.shift;
16345
16345
  let I = C, N = S;
16346
16346
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = v), (r = t.middlewareData.shift) != null && r.enabled.y && (I = x), E && !f) {
16347
16347
  const w = Mt(u.left, 0), R = Mt(u.right, 0), P = Mt(u.top, 0), j = Mt(u.bottom, 0);
@@ -16413,13 +16413,13 @@ function vp(e) {
16413
16413
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
16414
16414
  }
16415
16415
  function zF(e) {
16416
- let t = Sr(e);
16416
+ let t = _r(e);
16417
16417
  for (; Rn(t) && !Xo(t); ) {
16418
16418
  if (vp(t))
16419
16419
  return t;
16420
16420
  if (rc(t))
16421
16421
  return null;
16422
- t = Sr(t);
16422
+ t = _r(t);
16423
16423
  }
16424
16424
  return null;
16425
16425
  }
@@ -16441,7 +16441,7 @@ function oc(e) {
16441
16441
  scrollTop: e.scrollY
16442
16442
  };
16443
16443
  }
16444
- function Sr(e) {
16444
+ function _r(e) {
16445
16445
  if (oi(e) === "html")
16446
16446
  return e;
16447
16447
  const t = (
@@ -16454,7 +16454,7 @@ function Sr(e) {
16454
16454
  return h0(t) ? t.host : t;
16455
16455
  }
16456
16456
  function ow(e) {
16457
- const t = Sr(e);
16457
+ const t = _r(e);
16458
16458
  return Xo(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Rn(t) && Cs(t) ? t : ow(t);
16459
16459
  }
16460
16460
  function Qi(e, t, n) {
@@ -16631,7 +16631,7 @@ function g0(e, t, n) {
16631
16631
  return ol(r);
16632
16632
  }
16633
16633
  function lw(e, t) {
16634
- const n = Sr(e);
16634
+ const n = _r(e);
16635
16635
  return n === t || !cn(n) || Xo(n) ? !1 : un(n).position === "fixed" || lw(n, t);
16636
16636
  }
16637
16637
  function UF(e, t) {
@@ -16640,10 +16640,10 @@ function UF(e, t) {
16640
16640
  return n;
16641
16641
  let r = Qi(e, [], !1).filter((a) => cn(a) && oi(a) !== "body"), o = null;
16642
16642
  const i = un(e).position === "fixed";
16643
- let s = i ? Sr(e) : e;
16643
+ let s = i ? _r(e) : e;
16644
16644
  for (; cn(s) && !Xo(s); ) {
16645
16645
  const a = un(s), l = vp(s);
16646
- !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Cs(s) && !l && lw(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = Sr(s);
16646
+ !l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Cs(s) && !l && lw(e, s)) ? r = r.filter((u) => u !== s) : o = a, s = _r(s);
16647
16647
  }
16648
16648
  return t.set(e, r), r;
16649
16649
  }
@@ -16656,7 +16656,7 @@ function ZF(e) {
16656
16656
  } = e;
16657
16657
  const s = [...n === "clippingAncestors" ? rc(t) ? [] : UF(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, u) => {
16658
16658
  const d = g0(t, u, o);
16659
- return c.top = Mt(d.top, c.top), c.right = Cr(d.right, c.right), c.bottom = Cr(d.bottom, c.bottom), c.left = Mt(d.left, c.left), c;
16659
+ return c.top = Mt(d.top, c.top), c.right = wr(d.right, c.right), c.bottom = wr(d.bottom, c.bottom), c.left = Mt(d.left, c.left), c;
16660
16660
  }, g0(t, a, o));
16661
16661
  return {
16662
16662
  width: l.right - l.left,
@@ -16711,11 +16711,11 @@ function cw(e, t) {
16711
16711
  if (rc(e))
16712
16712
  return n;
16713
16713
  if (!Rn(e)) {
16714
- let o = Sr(e);
16714
+ let o = _r(e);
16715
16715
  for (; o && !Xo(o); ) {
16716
16716
  if (cn(o) && !xu(o))
16717
16717
  return o;
16718
- o = Sr(o);
16718
+ o = _r(o);
16719
16719
  }
16720
16720
  return n;
16721
16721
  }
@@ -16773,7 +16773,7 @@ function tj(e, t) {
16773
16773
  return;
16774
16774
  const g = na(d), h = na(o.clientWidth - (u + f)), y = na(o.clientHeight - (d + p)), m = na(u), v = {
16775
16775
  rootMargin: -g + "px " + -h + "px " + -y + "px " + -m + "px",
16776
- threshold: Mt(0, Cr(1, l)) || 1
16776
+ threshold: Mt(0, wr(1, l)) || 1
16777
16777
  };
16778
16778
  let C = !0;
16779
16779
  function S(E) {
@@ -17077,7 +17077,7 @@ function hw(e) {
17077
17077
  n(void 0);
17078
17078
  }, [e]), t;
17079
17079
  }
17080
- var _p = "Popper", [gw, ic] = kr(_p), [xj, mw] = gw(_p), yw = (e) => {
17080
+ var _p = "Popper", [gw, ic] = Ir(_p), [xj, mw] = gw(_p), yw = (e) => {
17081
17081
  const { __scopePopper: t, children: n } = e, [r, o] = k.useState(null);
17082
17082
  return /* @__PURE__ */ b.jsx(xj, { scope: t, anchor: r, onAnchorChange: o, children: n });
17083
17083
  };
@@ -17274,7 +17274,7 @@ function _w(e) {
17274
17274
  const [t, n = "center"] = e.split("-");
17275
17275
  return [t, n];
17276
17276
  }
17277
- var Ep = yw, Ip = vw, Sw = xw, Ew = Cw, Cu = "rovingFocusGroup.onEntryFocus", Ij = { bubbles: !1, cancelable: !0 }, sc = "RovingFocusGroup", [Yd, Iw, kj] = hp(sc), [Aj, kw] = kr(
17277
+ var Ep = yw, Ip = vw, Sw = xw, Ew = Cw, Cu = "rovingFocusGroup.onEntryFocus", Ij = { bubbles: !1, cancelable: !0 }, sc = "RovingFocusGroup", [Yd, Iw, kj] = hp(sc), [Aj, kw] = Ir(
17278
17278
  sc,
17279
17279
  [kj]
17280
17280
  ), [Rj, Tj] = Aj(sc), Aw = k.forwardRef(
@@ -17441,7 +17441,7 @@ var Fj = Aw, jj = Tw, Ud = ["Enter", " "], Lj = ["ArrowDown", "PageUp", "Home"],
17441
17441
  }, Vj = {
17442
17442
  ltr: ["ArrowLeft"],
17443
17443
  rtl: ["ArrowRight"]
17444
- }, _s = "Menu", [es, Gj, $j] = hp(_s), [io, Ow] = kr(_s, [
17444
+ }, _s = "Menu", [es, Gj, $j] = hp(_s), [io, Ow] = Ir(_s, [
17445
17445
  $j,
17446
17446
  ic,
17447
17447
  kw
@@ -17484,7 +17484,7 @@ var Wj = "MenuAnchor", kp = k.forwardRef(
17484
17484
  }
17485
17485
  );
17486
17486
  kp.displayName = Wj;
17487
- var Xj = "MenuPortal", [Oq, jw] = io(Xj, {
17487
+ var Xj = "MenuPortal", [Mq, jw] = io(Xj, {
17488
17488
  forceMount: void 0
17489
17489
  }), Ut = "MenuContent", [Yj, Ap] = io(Ut), Lw = k.forwardRef(
17490
17490
  (e, t) => {
@@ -18026,7 +18026,7 @@ function uL(e, t) {
18026
18026
  function ts(e) {
18027
18027
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
18028
18028
  }
18029
- var dL = Fw, fL = kp, pL = Lw, hL = Tp, gL = Bw, mL = ac, yL = Vw, bL = $w, vL = Ww, xL = Yw, wL = Uw, CL = Zw, _L = qw, SL = Kw, EL = eC, Mp = "DropdownMenu", [IL, Mq] = kr(
18029
+ var dL = Fw, fL = kp, pL = Lw, hL = Tp, gL = Bw, mL = ac, yL = Vw, bL = $w, vL = Ww, xL = Yw, wL = Uw, CL = Zw, _L = qw, SL = Kw, EL = eC, Mp = "DropdownMenu", [IL, Dq] = Ir(
18030
18030
  Mp,
18031
18031
  [Ow]
18032
18032
  ), _t = Ow(), [kL, nC] = IL(Mp), rC = (e) => {
@@ -20466,7 +20466,7 @@ function FC(e, t) {
20466
20466
  function ln(e) {
20467
20467
  return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
20468
20468
  }
20469
- const wt = Ar(/[A-Za-z]/), gt = Ar(/[\dA-Za-z]/), e9 = Ar(/[#-'*+\--9=?A-Z^-~]/);
20469
+ const wt = kr(/[A-Za-z]/), gt = kr(/[\dA-Za-z]/), e9 = kr(/[#-'*+\--9=?A-Z^-~]/);
20470
20470
  function ll(e) {
20471
20471
  return (
20472
20472
  // Special whitespace codes (which have negative values), C0 and Control
@@ -20474,7 +20474,7 @@ function ll(e) {
20474
20474
  e !== null && (e < 32 || e === 127)
20475
20475
  );
20476
20476
  }
20477
- const Qd = Ar(/\d/), t9 = Ar(/[\dA-Fa-f]/), n9 = Ar(/[!-/:-@[-`{-~]/);
20477
+ const Qd = kr(/\d/), t9 = kr(/[\dA-Fa-f]/), n9 = kr(/[!-/:-@[-`{-~]/);
20478
20478
  function fe(e) {
20479
20479
  return e !== null && e < -2;
20480
20480
  }
@@ -20484,8 +20484,8 @@ function Be(e) {
20484
20484
  function _e(e) {
20485
20485
  return e === -2 || e === -1 || e === 32;
20486
20486
  }
20487
- const lc = Ar(new RegExp("\\p{P}|\\p{S}", "u")), no = Ar(/\s/);
20488
- function Ar(e) {
20487
+ const lc = kr(new RegExp("\\p{P}|\\p{S}", "u")), no = kr(/\s/);
20488
+ function kr(e) {
20489
20489
  return t;
20490
20490
  function t(n) {
20491
20491
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
@@ -22676,18 +22676,18 @@ function Zz(e) {
22676
22676
  image: i(Tt),
22677
22677
  label: s,
22678
22678
  link: i(Nt),
22679
- listItem: i(Nr),
22679
+ listItem: i(Tr),
22680
22680
  listItemValue: f,
22681
22681
  listOrdered: i(Kt, d),
22682
22682
  listUnordered: i(Kt),
22683
- paragraph: i(me),
22683
+ paragraph: i(ge),
22684
22684
  reference: T,
22685
22685
  referenceString: s,
22686
22686
  resourceDestinationString: s,
22687
22687
  resourceTitleString: s,
22688
22688
  setextHeading: i(ke),
22689
- strong: i(Pr),
22690
- thematicBreak: i(Or)
22689
+ strong: i(Nr),
22690
+ thematicBreak: i(Pr)
22691
22691
  },
22692
22692
  exit: {
22693
22693
  atxHeading: l(),
@@ -22794,18 +22794,18 @@ function Zz(e) {
22794
22794
  return ne;
22795
22795
  }
22796
22796
  function o(q, ne, ye) {
22797
- let Ce = ne - 1, Oe = -1, Pt = !1, Dn, Qt, Mr, Dr;
22797
+ let Ce = ne - 1, Oe = -1, Pt = !1, Dn, Qt, Or, Mr;
22798
22798
  for (; ++Ce <= ye; ) {
22799
22799
  const vt = q[Ce];
22800
22800
  switch (vt[1].type) {
22801
22801
  case "listUnordered":
22802
22802
  case "listOrdered":
22803
22803
  case "blockQuote": {
22804
- vt[0] === "enter" ? Oe++ : Oe--, Dr = void 0;
22804
+ vt[0] === "enter" ? Oe++ : Oe--, Mr = void 0;
22805
22805
  break;
22806
22806
  }
22807
22807
  case "lineEndingBlank": {
22808
- vt[0] === "enter" && (Dn && !Dr && !Oe && !Mr && (Mr = Ce), Dr = void 0);
22808
+ vt[0] === "enter" && (Dn && !Mr && !Oe && !Or && (Or = Ce), Mr = void 0);
22809
22809
  break;
22810
22810
  }
22811
22811
  case "linePrefix":
@@ -22815,7 +22815,7 @@ function Zz(e) {
22815
22815
  case "listItemPrefixWhitespace":
22816
22816
  break;
22817
22817
  default:
22818
- Dr = void 0;
22818
+ Mr = void 0;
22819
22819
  }
22820
22820
  if (!Oe && vt[0] === "enter" && vt[1].type === "listItemPrefix" || Oe === -1 && vt[0] === "exit" && (vt[1].type === "listUnordered" || vt[1].type === "listOrdered")) {
22821
22821
  if (Dn) {
@@ -22827,7 +22827,7 @@ function Zz(e) {
22827
22827
  Qt && (q[Qt][1].type = "lineEndingBlank", Pt = !0), en[1].type = "lineEnding", Qt = ir;
22828
22828
  } else if (!(en[1].type === "linePrefix" || en[1].type === "blockQuotePrefix" || en[1].type === "blockQuotePrefixWhitespace" || en[1].type === "blockQuoteMarker" || en[1].type === "listItemIndent")) break;
22829
22829
  }
22830
- Mr && (!Qt || Mr < Qt) && (Dn._spread = !0), Dn.end = Object.assign({}, Qt ? q[Qt][1].start : vt[1].end), q.splice(Qt || Ce, 0, ["exit", Dn, vt[2]]), Ce++, ye++;
22830
+ Or && (!Qt || Or < Qt) && (Dn._spread = !0), Dn.end = Object.assign({}, Qt ? q[Qt][1].start : vt[1].end), q.splice(Qt || Ce, 0, ["exit", Dn, vt[2]]), Ce++, ye++;
22831
22831
  }
22832
22832
  if (vt[1].type === "listItemPrefix") {
22833
22833
  const ir = {
@@ -22837,7 +22837,7 @@ function Zz(e) {
22837
22837
  // @ts-expect-error: we’ll add `end` in a second.
22838
22838
  end: void 0
22839
22839
  };
22840
- Dn = ir, q.splice(Ce, 0, ["enter", ir, vt[2]]), Ce++, ye++, Mr = void 0, Dr = !0;
22840
+ Dn = ir, q.splice(Ce, 0, ["enter", ir, vt[2]]), Ce++, ye++, Or = void 0, Mr = !0;
22841
22841
  }
22842
22842
  }
22843
22843
  }
@@ -23126,7 +23126,7 @@ function Zz(e) {
23126
23126
  children: []
23127
23127
  };
23128
23128
  }
23129
- function Nr(q) {
23129
+ function Tr(q) {
23130
23130
  return {
23131
23131
  type: "listItem",
23132
23132
  spread: q._spread,
@@ -23134,13 +23134,13 @@ function Zz(e) {
23134
23134
  children: []
23135
23135
  };
23136
23136
  }
23137
- function me() {
23137
+ function ge() {
23138
23138
  return {
23139
23139
  type: "paragraph",
23140
23140
  children: []
23141
23141
  };
23142
23142
  }
23143
- function Pr() {
23143
+ function Nr() {
23144
23144
  return {
23145
23145
  type: "strong",
23146
23146
  children: []
@@ -23152,7 +23152,7 @@ function Zz(e) {
23152
23152
  value: ""
23153
23153
  };
23154
23154
  }
23155
- function Or() {
23155
+ function Pr() {
23156
23156
  return {
23157
23157
  type: "thematicBreak"
23158
23158
  };
@@ -26590,9 +26590,9 @@ function K6() {
26590
26590
  text: Pn
26591
26591
  };
26592
26592
  }
26593
- let Fr = 48;
26594
- for (; Fr < 123; )
26595
- Pn[Fr] = tr, Fr++, Fr === 58 ? Fr = 65 : Fr === 91 && (Fr = 97);
26593
+ let Dr = 48;
26594
+ for (; Dr < 123; )
26595
+ Pn[Dr] = tr, Dr++, Dr === 58 ? Dr = 65 : Dr === 91 && (Dr = 97);
26596
26596
  Pn[43] = tr;
26597
26597
  Pn[45] = tr;
26598
26598
  Pn[46] = tr;
@@ -27869,9 +27869,9 @@ function G$(e) {
27869
27869
  return z$(t.current, r) ? t.current : t.current = r;
27870
27870
  };
27871
27871
  }
27872
- var rh = "Popover", [k_, Dq] = kr(rh, [
27872
+ var rh = "Popover", [k_, Fq] = Ir(rh, [
27873
27873
  ic
27874
- ]), Rs = ic(), [$$, Rr] = k_(rh), A_ = (e) => {
27874
+ ]), Rs = ic(), [$$, Ar] = k_(rh), A_ = (e) => {
27875
27875
  const {
27876
27876
  __scopePopover: t,
27877
27877
  children: n,
@@ -27904,14 +27904,14 @@ var rh = "Popover", [k_, Dq] = kr(rh, [
27904
27904
  A_.displayName = rh;
27905
27905
  var R_ = "PopoverAnchor", H$ = k.forwardRef(
27906
27906
  (e, t) => {
27907
- const { __scopePopover: n, ...r } = e, o = Rr(R_, n), i = Rs(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: a } = o;
27907
+ const { __scopePopover: n, ...r } = e, o = Ar(R_, n), i = Rs(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: a } = o;
27908
27908
  return k.useEffect(() => (s(), () => a()), [s, a]), /* @__PURE__ */ b.jsx(Ip, { ...i, ...r, ref: t });
27909
27909
  }
27910
27910
  );
27911
27911
  H$.displayName = R_;
27912
27912
  var T_ = "PopoverTrigger", N_ = k.forwardRef(
27913
27913
  (e, t) => {
27914
- const { __scopePopover: n, ...r } = e, o = Rr(T_, n), i = Rs(n), s = Xe(t, o.triggerRef), a = /* @__PURE__ */ b.jsx(
27914
+ const { __scopePopover: n, ...r } = e, o = Ar(T_, n), i = Rs(n), s = Xe(t, o.triggerRef), a = /* @__PURE__ */ b.jsx(
27915
27915
  Ve.button,
27916
27916
  {
27917
27917
  type: "button",
@@ -27931,20 +27931,20 @@ N_.displayName = T_;
27931
27931
  var oh = "PopoverPortal", [W$, X$] = k_(oh, {
27932
27932
  forceMount: void 0
27933
27933
  }), P_ = (e) => {
27934
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Rr(oh, t);
27934
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Ar(oh, t);
27935
27935
  return /* @__PURE__ */ b.jsx(W$, { scope: t, forceMount: n, children: /* @__PURE__ */ b.jsx(Qn, { present: n || i.open, children: /* @__PURE__ */ b.jsx(Yf, { asChild: !0, container: o, children: r }) }) });
27936
27936
  };
27937
27937
  P_.displayName = oh;
27938
27938
  var Uo = "PopoverContent", O_ = k.forwardRef(
27939
27939
  (e, t) => {
27940
- const n = X$(Uo, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = Rr(Uo, e.__scopePopover);
27940
+ const n = X$(Uo, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = Ar(Uo, e.__scopePopover);
27941
27941
  return /* @__PURE__ */ b.jsx(Qn, { present: r || i.open, children: i.modal ? /* @__PURE__ */ b.jsx(U$, { ...o, ref: t }) : /* @__PURE__ */ b.jsx(Z$, { ...o, ref: t }) });
27942
27942
  }
27943
27943
  );
27944
27944
  O_.displayName = Uo;
27945
27945
  var Y$ = /* @__PURE__ */ Ho("PopoverContent.RemoveScroll"), U$ = k.forwardRef(
27946
27946
  (e, t) => {
27947
- const n = Rr(Uo, e.__scopePopover), r = k.useRef(null), o = Xe(t, r), i = k.useRef(!1);
27947
+ const n = Ar(Uo, e.__scopePopover), r = k.useRef(null), o = Xe(t, r), i = k.useRef(!1);
27948
27948
  return k.useEffect(() => {
27949
27949
  const s = r.current;
27950
27950
  if (s) return Zf(s);
@@ -27977,7 +27977,7 @@ var Y$ = /* @__PURE__ */ Ho("PopoverContent.RemoveScroll"), U$ = k.forwardRef(
27977
27977
  }
27978
27978
  ), Z$ = k.forwardRef(
27979
27979
  (e, t) => {
27980
- const n = Rr(Uo, e.__scopePopover), r = k.useRef(!1), o = k.useRef(!1);
27980
+ const n = Ar(Uo, e.__scopePopover), r = k.useRef(!1), o = k.useRef(!1);
27981
27981
  return /* @__PURE__ */ b.jsx(
27982
27982
  M_,
27983
27983
  {
@@ -28011,7 +28011,7 @@ var Y$ = /* @__PURE__ */ Ho("PopoverContent.RemoveScroll"), U$ = k.forwardRef(
28011
28011
  onFocusOutside: c,
28012
28012
  onInteractOutside: u,
28013
28013
  ...d
28014
- } = e, f = Rr(Uo, n), p = Rs(n);
28014
+ } = e, f = Ar(Uo, n), p = Rs(n);
28015
28015
  return Uf(), /* @__PURE__ */ b.jsx(
28016
28016
  Ul,
28017
28017
  {
@@ -28056,7 +28056,7 @@ var Y$ = /* @__PURE__ */ Ho("PopoverContent.RemoveScroll"), U$ = k.forwardRef(
28056
28056
  }
28057
28057
  ), D_ = "PopoverClose", J$ = k.forwardRef(
28058
28058
  (e, t) => {
28059
- const { __scopePopover: n, ...r } = e, o = Rr(D_, n);
28059
+ const { __scopePopover: n, ...r } = e, o = Ar(D_, n);
28060
28060
  return /* @__PURE__ */ b.jsx(
28061
28061
  Ve.button,
28062
28062
  {
@@ -28109,7 +28109,7 @@ function H_(e) {
28109
28109
  outerRef: d,
28110
28110
  beforeExpandChange: f
28111
28111
  } = e;
28112
- const p = ge(!1), [g, h] = ie(() => c(a, n, t)), y = ge(null);
28112
+ const p = me(!1), [g, h] = ie(() => c(a, n, t)), y = me(null);
28113
28113
  we(() => {
28114
28114
  p.current ? h(c(a, n, t)) : p.current = !0;
28115
28115
  }, [c]);
@@ -28355,7 +28355,7 @@ const X_ = {
28355
28355
  beforeExpandChange: i,
28356
28356
  ...s
28357
28357
  } = e;
28358
- const a = ge(null);
28358
+ const a = me(null);
28359
28359
  return /* @__PURE__ */ He("div", Object.assign({
28360
28360
  "aria-label": "JSON view"
28361
28361
  }, s, {
@@ -28424,13 +28424,13 @@ function nr(e, t, n = void 0) {
28424
28424
  }
28425
28425
  const ih = /* @__PURE__ */ k.createContext();
28426
28426
  process.env.NODE_ENV !== "production" && (ih.displayName = "TableContext");
28427
- function Er(e, ...t) {
28427
+ function Sr(e, ...t) {
28428
28428
  const n = new URL(`https://mui.com/production-error/?code=${e}`);
28429
28429
  return t.forEach((r) => n.searchParams.append("args[]", r)), `Minified MUI error #${e}; visit ${n} for the full message.`;
28430
28430
  }
28431
28431
  function mt(e) {
28432
28432
  if (typeof e != "string")
28433
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Er(7));
28433
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Sr(7));
28434
28434
  return e.charAt(0).toUpperCase() + e.slice(1);
28435
28435
  }
28436
28436
  var aa = { exports: {} }, De = {};
@@ -28617,7 +28617,7 @@ function Li(e, t) {
28617
28617
  // No need to clone deep, it's way faster.
28618
28618
  }) : e;
28619
28619
  }
28620
- const Tr = process.env.NODE_ENV !== "production" ? L.oneOfType([L.number, L.string, L.object, L.array]) : {};
28620
+ const Rr = process.env.NODE_ENV !== "production" ? L.oneOfType([L.number, L.string, L.object, L.array]) : {};
28621
28621
  function CH(e, t) {
28622
28622
  if (!e.containerQueries)
28623
28623
  return t;
@@ -28641,7 +28641,7 @@ function SH(e, t) {
28641
28641
  if (!n) {
28642
28642
  if (process.env.NODE_ENV !== "production")
28643
28643
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
28644
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Er(18, `(${t})`));
28644
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : Sr(18, `(${t})`));
28645
28645
  return null;
28646
28646
  }
28647
28647
  const [, r, o] = n, i = Number.isNaN(+r) ? r || 0 : +r;
@@ -28754,7 +28754,7 @@ function et(e) {
28754
28754
  });
28755
28755
  };
28756
28756
  return i.propTypes = process.env.NODE_ENV !== "production" ? {
28757
- [t]: Tr
28757
+ [t]: Rr
28758
28758
  } : {}, i.filterProps = [t], i;
28759
28759
  }
28760
28760
  function RH(e) {
@@ -28822,14 +28822,14 @@ function Z_(e, t) {
28822
28822
  function Ue(e) {
28823
28823
  return Z_(e, mc);
28824
28824
  }
28825
- Ue.propTypes = process.env.NODE_ENV !== "production" ? mc.reduce((e, t) => (e[t] = Tr, e), {}) : {};
28825
+ Ue.propTypes = process.env.NODE_ENV !== "production" ? mc.reduce((e, t) => (e[t] = Rr, e), {}) : {};
28826
28826
  Ue.filterProps = mc;
28827
28827
  function Ze(e) {
28828
28828
  return Z_(e, yc);
28829
28829
  }
28830
- Ze.propTypes = process.env.NODE_ENV !== "production" ? yc.reduce((e, t) => (e[t] = Tr, e), {}) : {};
28830
+ Ze.propTypes = process.env.NODE_ENV !== "production" ? yc.reduce((e, t) => (e[t] = Rr, e), {}) : {};
28831
28831
  Ze.filterProps = yc;
28832
- process.env.NODE_ENV !== "production" && OH.reduce((e, t) => (e[t] = Tr, e), {});
28832
+ process.env.NODE_ENV !== "production" && OH.reduce((e, t) => (e[t] = Rr, e), {});
28833
28833
  function bc(...e) {
28834
28834
  const t = e.reduce((r, o) => (o.filterProps.forEach((i) => {
28835
28835
  r[i] = o;
@@ -28856,7 +28856,7 @@ const FH = Jt("border", Yt), jH = Jt("borderTop", Yt), LH = Jt("borderRight", Yt
28856
28856
  return null;
28857
28857
  };
28858
28858
  vc.propTypes = process.env.NODE_ENV !== "production" ? {
28859
- borderRadius: Tr
28859
+ borderRadius: Rr
28860
28860
  } : {};
28861
28861
  vc.filterProps = ["borderRadius"];
28862
28862
  bc(FH, jH, LH, BH, zH, VH, GH, $H, HH, WH, vc, XH, YH);
@@ -28870,7 +28870,7 @@ const xc = (e) => {
28870
28870
  return null;
28871
28871
  };
28872
28872
  xc.propTypes = process.env.NODE_ENV !== "production" ? {
28873
- gap: Tr
28873
+ gap: Rr
28874
28874
  } : {};
28875
28875
  xc.filterProps = ["gap"];
28876
28876
  const wc = (e) => {
@@ -28883,7 +28883,7 @@ const wc = (e) => {
28883
28883
  return null;
28884
28884
  };
28885
28885
  wc.propTypes = process.env.NODE_ENV !== "production" ? {
28886
- columnGap: Tr
28886
+ columnGap: Rr
28887
28887
  } : {};
28888
28888
  wc.filterProps = ["columnGap"];
28889
28889
  const Cc = (e) => {
@@ -28896,7 +28896,7 @@ const Cc = (e) => {
28896
28896
  return null;
28897
28897
  };
28898
28898
  Cc.propTypes = process.env.NODE_ENV !== "production" ? {
28899
- rowGap: Tr
28899
+ rowGap: Rr
28900
28900
  } : {};
28901
28901
  Cc.filterProps = ["rowGap"];
28902
28902
  const UH = et({
@@ -30962,20 +30962,20 @@ function TX(e) {
30962
30962
  let n = e.match(t);
30963
30963
  return n && n[0].length === 1 && (n = n.map((r) => r + r)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => o < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
30964
30964
  }
30965
- function Ir(e) {
30965
+ function Er(e) {
30966
30966
  if (e.type)
30967
30967
  return e;
30968
30968
  if (e.charAt(0) === "#")
30969
- return Ir(TX(e));
30969
+ return Er(TX(e));
30970
30970
  const t = e.indexOf("("), n = e.substring(0, t);
30971
30971
  if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(n))
30972
30972
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
30973
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Er(9, e));
30973
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Sr(9, e));
30974
30974
  let r = e.substring(t + 1, e.length - 1), o;
30975
30975
  if (n === "color") {
30976
30976
  if (r = r.split(" "), o = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
30977
30977
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
30978
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Er(10, o));
30978
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Sr(10, o));
30979
30979
  } else
30980
30980
  r = r.split(",");
30981
30981
  return r = r.map((i) => parseFloat(i)), {
@@ -30985,7 +30985,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
30985
30985
  };
30986
30986
  }
30987
30987
  const NX = (e) => {
30988
- const t = Ir(e);
30988
+ const t = Er(e);
30989
30989
  return t.values.slice(0, 3).map((n, r) => t.type.includes("hsl") && r !== 0 ? `${n}%` : n).join(" ");
30990
30990
  }, Ai = (e, t) => {
30991
30991
  try {
@@ -31005,7 +31005,7 @@ function Rc(e) {
31005
31005
  return t.includes("rgb") ? r = r.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.includes("hsl") && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), t.includes("color") ? r = `${n} ${r.join(" ")}` : r = `${r.join(", ")}`, `${t}(${r})`;
31006
31006
  }
31007
31007
  function yS(e) {
31008
- e = Ir(e);
31008
+ e = Er(e);
31009
31009
  const {
31010
31010
  values: t
31011
31011
  } = e, n = t[0], r = t[1] / 100, o = t[2] / 100, i = r * Math.min(o, 1 - o), s = (c, u = (c + n / 30) % 12) => o - i * Math.max(Math.min(u - 3, 9 - u, 1), -1);
@@ -31017,8 +31017,8 @@ function yS(e) {
31017
31017
  });
31018
31018
  }
31019
31019
  function ff(e) {
31020
- e = Ir(e);
31021
- let t = e.type === "hsl" || e.type === "hsla" ? Ir(yS(e)).values : e.values;
31020
+ e = Er(e);
31021
+ let t = e.type === "hsl" || e.type === "hsla" ? Er(yS(e)).values : e.values;
31022
31022
  return t = t.map((n) => (e.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
31023
31023
  }
31024
31024
  function Ry(e, t) {
@@ -31026,7 +31026,7 @@ function Ry(e, t) {
31026
31026
  return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05);
31027
31027
  }
31028
31028
  function as(e, t) {
31029
- return e = Ir(e), t = hh(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Rc(e);
31029
+ return e = Er(e), t = hh(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, Rc(e);
31030
31030
  }
31031
31031
  function ca(e, t, n) {
31032
31032
  try {
@@ -31036,7 +31036,7 @@ function ca(e, t, n) {
31036
31036
  }
31037
31037
  }
31038
31038
  function Tc(e, t) {
31039
- if (e = Ir(e), t = hh(t), e.type.includes("hsl"))
31039
+ if (e = Er(e), t = hh(t), e.type.includes("hsl"))
31040
31040
  e.values[2] *= 1 - t;
31041
31041
  else if (e.type.includes("rgb") || e.type.includes("color"))
31042
31042
  for (let n = 0; n < 3; n += 1)
@@ -31051,7 +31051,7 @@ function je(e, t, n) {
31051
31051
  }
31052
31052
  }
31053
31053
  function Nc(e, t) {
31054
- if (e = Ir(e), t = hh(t), e.type.includes("hsl"))
31054
+ if (e = Er(e), t = hh(t), e.type.includes("hsl"))
31055
31055
  e.values[2] += (100 - e.values[2]) * t;
31056
31056
  else if (e.type.includes("rgb"))
31057
31057
  for (let n = 0; n < 3; n += 1)
@@ -31674,7 +31674,7 @@ function mh(e) {
31674
31674
  ...h
31675
31675
  }, !h.main && h[m] && (h.main = h[m]), !h.hasOwnProperty("main"))
31676
31676
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${y ? ` (${y})` : ""} provided to augmentColor(color) is invalid.
31677
- The color object needs to have a \`main\` property or a \`${m}\` property.` : Er(11, y ? ` (${y})` : "", m));
31677
+ The color object needs to have a \`main\` property or a \`${m}\` property.` : Sr(11, y ? ` (${y})` : "", m));
31678
31678
  if (typeof h.main != "string")
31679
31679
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${y ? ` (${y})` : ""} provided to augmentColor(color) is invalid.
31680
31680
  \`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
@@ -31689,7 +31689,7 @@ const theme1 = createTheme({ palette: {
31689
31689
 
31690
31690
  const theme2 = createTheme({ palette: {
31691
31691
  primary: { main: green[500] },
31692
- } });` : Er(12, y ? ` (${y})` : "", JSON.stringify(h.main)));
31692
+ } });` : Sr(12, y ? ` (${y})` : "", JSON.stringify(h.main)));
31693
31693
  return Fy(h, "light", x, r), Fy(h, "dark", v, r), h.contrastText || (h.contrastText = d(h.main)), h;
31694
31694
  };
31695
31695
  let p;
@@ -31964,7 +31964,7 @@ function hf(e = {}, ...t) {
31964
31964
  if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
31965
31965
  // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
31966
31966
  e.generateThemeVars === void 0)
31967
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Er(20));
31967
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : Sr(20));
31968
31968
  const u = mh(i), d = fS(e);
31969
31969
  let f = zt(d, {
31970
31970
  mixins: u8(d.breakpoints, r),
@@ -32175,7 +32175,7 @@ function P8(e = {}, ...t) {
32175
32175
  };
32176
32176
  let x = p;
32177
32177
  if ((d === "dark" && !("dark" in n) || d === "light" && !("light" in n)) && (x = !0), !x)
32178
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${d}\` option is either missing or invalid.` : Er(21, d));
32178
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${d}\` option is either missing or invalid.` : Sr(21, d));
32179
32179
  const v = Hu(m, x, c, d);
32180
32180
  g && !m.light && Hu(m, g, void 0, "light"), h && !m.dark && Hu(m, h, void 0, "dark");
32181
32181
  let C = {
@@ -33070,7 +33070,7 @@ function a7(e, t) {
33070
33070
  a[o[s]] = n(o[s]);
33071
33071
  return a;
33072
33072
  }
33073
- function $r(e, t, n) {
33073
+ function Gr(e, t, n) {
33074
33074
  return n[t] != null ? n[t] : e.props[t];
33075
33075
  }
33076
33076
  function l7(e, t) {
@@ -33078,9 +33078,9 @@ function l7(e, t) {
33078
33078
  return ba(n, {
33079
33079
  onExited: t.bind(null, n),
33080
33080
  in: !0,
33081
- appear: $r(n, "appear", e),
33082
- enter: $r(n, "enter", e),
33083
- exit: $r(n, "exit", e)
33081
+ appear: Gr(n, "appear", e),
33082
+ enter: Gr(n, "enter", e),
33083
+ exit: Gr(n, "exit", e)
33084
33084
  });
33085
33085
  });
33086
33086
  }
@@ -33093,15 +33093,15 @@ function c7(e, t, n) {
33093
33093
  l && (!a || u) ? o[i] = ba(s, {
33094
33094
  onExited: n.bind(null, s),
33095
33095
  in: !0,
33096
- exit: $r(s, "exit", e),
33097
- enter: $r(s, "enter", e)
33096
+ exit: Gr(s, "exit", e),
33097
+ enter: Gr(s, "enter", e)
33098
33098
  }) : !l && a && !u ? o[i] = ba(s, {
33099
33099
  in: !1
33100
33100
  }) : l && a && ya(c) && (o[i] = ba(s, {
33101
33101
  onExited: n.bind(null, s),
33102
33102
  in: c.props.in,
33103
- exit: $r(s, "exit", e),
33104
- enter: $r(s, "enter", e)
33103
+ exit: Gr(s, "exit", e),
33104
+ enter: Gr(s, "enter", e)
33105
33105
  }));
33106
33106
  }
33107
33107
  }), o;
@@ -33611,23 +33611,23 @@ const v7 = On("MuiButtonBase", ["root", "disabled", "focusVisible"]), x7 = (e) =
33611
33611
  k.useEffect(() => {
33612
33612
  V && f && !u && D.pulsate();
33613
33613
  }, [u, f, V, D]);
33614
- const $ = Ln(D, "start", I, d), Z = Ln(D, "stop", m, d), H = Ln(D, "stop", x, d), W = Ln(D, "stop", O, d), Y = Ln(D, "stop", (me) => {
33615
- V && me.preventDefault(), N && N(me);
33616
- }, d), K = Ln(D, "start", P, d), te = Ln(D, "stop", w, d), re = Ln(D, "stop", R, d), U = Ln(D, "stop", (me) => {
33617
- Ny(me.target) || G(!1), h && h(me);
33618
- }, !1), ue = ja((me) => {
33619
- z.current || (z.current = me.currentTarget), Ny(me.target) && (G(!0), C && C(me)), v && v(me);
33614
+ const $ = Ln(D, "start", I, d), Z = Ln(D, "stop", m, d), H = Ln(D, "stop", x, d), W = Ln(D, "stop", O, d), Y = Ln(D, "stop", (ge) => {
33615
+ V && ge.preventDefault(), N && N(ge);
33616
+ }, d), K = Ln(D, "start", P, d), te = Ln(D, "stop", w, d), re = Ln(D, "stop", R, d), U = Ln(D, "stop", (ge) => {
33617
+ Ny(ge.target) || G(!1), h && h(ge);
33618
+ }, !1), ue = ja((ge) => {
33619
+ z.current || (z.current = ge.currentTarget), Ny(ge.target) && (G(!0), C && C(ge)), v && v(ge);
33620
33620
  }), de = () => {
33621
- const me = z.current;
33622
- return l && l !== "button" && !(me.tagName === "A" && me.href);
33623
- }, ke = ja((me) => {
33624
- f && !me.repeat && V && me.key === " " && D.stop(me, () => {
33625
- D.start(me);
33626
- }), me.target === me.currentTarget && de() && me.key === " " && me.preventDefault(), S && S(me), me.target === me.currentTarget && de() && me.key === "Enter" && !c && (me.preventDefault(), y && y(me));
33627
- }), Ke = ja((me) => {
33628
- f && me.key === " " && V && !me.defaultPrevented && D.stop(me, () => {
33629
- D.pulsate(me);
33630
- }), E && E(me), y && me.target === me.currentTarget && de() && me.key === " " && !me.defaultPrevented && y(me);
33621
+ const ge = z.current;
33622
+ return l && l !== "button" && !(ge.tagName === "A" && ge.href);
33623
+ }, ke = ja((ge) => {
33624
+ f && !ge.repeat && V && ge.key === " " && D.stop(ge, () => {
33625
+ D.start(ge);
33626
+ }), ge.target === ge.currentTarget && de() && ge.key === " " && ge.preventDefault(), S && S(ge), ge.target === ge.currentTarget && de() && ge.key === "Enter" && !c && (ge.preventDefault(), y && y(ge));
33627
+ }), Ke = ja((ge) => {
33628
+ f && ge.key === " " && V && !ge.defaultPrevented && D.stop(ge, () => {
33629
+ D.pulsate(ge);
33630
+ }), E && E(ge), y && ge.target === ge.currentTarget && de() && ge.key === " " && !ge.defaultPrevented && y(ge);
33631
33631
  });
33632
33632
  let dt = l;
33633
33633
  dt === "button" && (B.href || B.to) && (dt = g);
@@ -33643,10 +33643,10 @@ const v7 = On("MuiButtonBase", ["root", "disabled", "focusVisible"]), x7 = (e) =
33643
33643
  focusRipple: f,
33644
33644
  tabIndex: j,
33645
33645
  focusVisible: V
33646
- }, Nr = x7(Kt);
33646
+ }, Tr = x7(Kt);
33647
33647
  return /* @__PURE__ */ b.jsxs(w7, {
33648
33648
  as: dt,
33649
- className: ot(Nr.root, a),
33649
+ className: ot(Tr.root, a),
33650
33650
  ownerState: Kt,
33651
33651
  onBlur: U,
33652
33652
  onClick: y,
@@ -34842,7 +34842,7 @@ var VS = ["PageUp", "PageDown"], GS = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
34842
34842
  "from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
34843
34843
  "from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
34844
34844
  "from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
34845
- }, ci = "Slider", [bf, U7, Z7] = hp(ci), [HS, Fq] = kr(ci, [
34845
+ }, ci = "Slider", [bf, U7, Z7] = hp(ci), [HS, jq] = Ir(ci, [
34846
34846
  Z7
34847
34847
  ]), [J7, Oc] = HS(ci), WS = k.forwardRef(
34848
34848
  (e, t) => {
@@ -35818,7 +35818,7 @@ function bY(e) {
35818
35818
  }
35819
35819
  return n;
35820
35820
  }
35821
- const Lr = {}, vY = Object.keys(oe);
35821
+ const jr = {}, vY = Object.keys(oe);
35822
35822
  function xY(e) {
35823
35823
  const t = function(...n) {
35824
35824
  const r = n[0];
@@ -35841,21 +35841,21 @@ function wY(e) {
35841
35841
  return "conversion" in e && (t.conversion = e.conversion), t;
35842
35842
  }
35843
35843
  for (const e of vY) {
35844
- Lr[e] = {}, Object.defineProperty(Lr[e], "channels", { value: oe[e].channels }), Object.defineProperty(Lr[e], "labels", { value: oe[e].labels });
35844
+ jr[e] = {}, Object.defineProperty(jr[e], "channels", { value: oe[e].channels }), Object.defineProperty(jr[e], "labels", { value: oe[e].labels });
35845
35845
  const t = bY(e), n = Object.keys(t);
35846
35846
  for (const r of n) {
35847
35847
  const o = t[r];
35848
- Lr[e][r] = wY(o), Lr[e][r].raw = xY(o);
35848
+ jr[e][r] = wY(o), jr[e][r].raw = xY(o);
35849
35849
  }
35850
35850
  }
35851
35851
  const CY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35852
35852
  __proto__: null,
35853
- default: Lr
35853
+ default: jr
35854
35854
  }, Symbol.toStringTag, { value: "Module" })), pt = (e, t) => {
35855
35855
  const n = Array.isArray(t) ? t : [t];
35856
35856
  if (n[0] === void 0 || n[0] === null)
35857
35857
  return pt("rgb", [0, 0, 0]);
35858
- const r = Lr[e];
35858
+ const r = jr[e];
35859
35859
  if (!r)
35860
35860
  throw new Error(
35861
35861
  `Unsupported color type: ${e} allowed are ${Object.keys(CY).join(
@@ -36088,7 +36088,7 @@ const CY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
36088
36088
  let v = pt(m, x);
36089
36089
  v.rgb() === void 0 && (v = pt("rgb", [0, 0, 0])), u(v);
36090
36090
  }, [JSON.stringify(e), t]);
36091
- const d = xe(Se), f = d.local_state(() => d.reactflowRef), p = ge(null), g = Me(
36091
+ const d = xe(Se), f = d.local_state(() => d.reactflowRef), p = me(null), g = Me(
36092
36092
  (y) => {
36093
36093
  if (y === null && !n)
36094
36094
  throw new Error("Color is null");
@@ -36537,7 +36537,7 @@ var aE = function(t) {
36537
36537
  marginTop: a.menuGutter
36538
36538
  });
36539
36539
  }, lE = /* @__PURE__ */ oo(null), oU = function(t) {
36540
- var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, s = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = xe(lE) || {}, u = c.setPortalPlacement, d = ge(null), f = ie(o), p = Wn(f, 2), g = p[0], h = p[1], y = ie(null), m = Wn(y, 2), x = m[0], v = m[1], C = l.spacing.controlHeight;
36540
+ var n = t.children, r = t.minMenuHeight, o = t.maxMenuHeight, i = t.menuPlacement, s = t.menuPosition, a = t.menuShouldScrollIntoView, l = t.theme, c = xe(lE) || {}, u = c.setPortalPlacement, d = me(null), f = ie(o), p = Wn(f, 2), g = p[0], h = p[1], y = ie(null), m = Wn(y, 2), x = m[0], v = m[1], C = l.spacing.controlHeight;
36541
36541
  return Cf(function() {
36542
36542
  var S = d.current;
36543
36543
  if (S) {
@@ -36622,7 +36622,7 @@ var aE = function(t) {
36622
36622
  zIndex: 1
36623
36623
  };
36624
36624
  }, hU = function(t) {
36625
- var n = t.appendTo, r = t.children, o = t.controlElement, i = t.innerProps, s = t.menuPlacement, a = t.menuPosition, l = ge(null), c = ge(null), u = ie(aE(s)), d = Wn(u, 2), f = d[0], p = d[1], g = st(function() {
36625
+ var n = t.appendTo, r = t.children, o = t.controlElement, i = t.innerProps, s = t.menuPlacement, a = t.menuPosition, l = me(null), c = me(null), u = ie(aE(s)), d = Wn(u, 2), f = d[0], p = d[1], g = st(function() {
36626
36626
  return {
36627
36627
  setPortalPlacement: p
36628
36628
  };
@@ -37616,7 +37616,7 @@ var RZ = function(t) {
37616
37616
  t.cancelable && t.preventDefault(), t.stopPropagation();
37617
37617
  };
37618
37618
  function TZ(e) {
37619
- var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, o = e.onTopArrive, i = e.onTopLeave, s = ge(!1), a = ge(!1), l = ge(0), c = ge(null), u = Me(function(y, m) {
37619
+ var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, o = e.onTopArrive, i = e.onTopLeave, s = me(!1), a = me(!1), l = me(0), c = me(null), u = Me(function(y, m) {
37620
37620
  if (c.current !== null) {
37621
37621
  var x = c.current, v = x.scrollTop, C = x.scrollHeight, S = x.clientHeight, E = c.current, I = m > 0, N = C - S - v, O = !1;
37622
37622
  N > m && s.current && (r && r(y), s.current = !1), I && a.current && (i && i(y), a.current = !1), I && m > N ? (n && !s.current && n(y), E.scrollTop = C, O = !0, s.current = !0) : !I && -m > v && (o && !a.current && o(y), E.scrollTop = 0, O = !0, a.current = !0), O && RZ(y);
@@ -37674,7 +37674,7 @@ var gb = !!(typeof window < "u" && window.document && window.document.createElem
37674
37674
  passive: !1
37675
37675
  };
37676
37676
  function NZ(e) {
37677
- var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, o = ge({}), i = ge(null), s = Me(function(l) {
37677
+ var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, o = me({}), i = me(null), s = Me(function(l) {
37678
37678
  if (gb) {
37679
37679
  var c = document.body, u = c && c.style;
37680
37680
  if (r && cb.forEach(function(g) {
@@ -39804,7 +39804,7 @@ function ma(e, t) {
39804
39804
  return [e.toFixed(2), n[r]];
39805
39805
  }
39806
39806
  const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
39807
- const r = ge(null), o = ge(null);
39807
+ const r = me(null), o = me(null);
39808
39808
  we(() => {
39809
39809
  const s = () => {
39810
39810
  !r.current || !o.current || MJ(r.current, o.current, {
@@ -40120,107 +40120,99 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40120
40120
  onConnect: e.onConnect
40121
40121
  }), qJ = { default: $J }, KJ = {
40122
40122
  default: ZJ
40123
- }, QJ = () => {
40124
- const e = gs(), t = xe(Se);
40125
- return t.rf_instance = e, /* @__PURE__ */ b.jsx(b.Fragment, {});
40126
- }, eq = ({ onNodesChange: e }) => {
40127
- var c, u;
40128
- const t = xe(Se), n = yr("Delete"), r = yr(["Meta+c", "Control+c", "Strg+c"]), o = yr(["Meta+v", "Control+v", "Strg+v"]), i = AP(), s = IP(), a = ge(null), l = async (d) => {
40129
- var y;
40130
- const f = (y = d.clipboardData) == null ? void 0 : y.getData("text");
40131
- if (!f || (console.log("paste", f), !f)) return;
40132
- const p = JSON.parse(f);
40133
- if (console.log("copydata", p), !p || !t.worker || !p.nodes) return;
40134
- const g = [0, 0];
40135
- for (const m of p.nodes)
40136
- g[0] += m.properties["frontend:pos"][0], g[1] += m.properties["frontend:pos"][1];
40137
- g[0] /= p.nodes.length, g[1] /= p.nodes.length;
40138
- const h = [];
40139
- for (const m of p.nodes) {
40140
- const x = {
40141
- id: m.node_id,
40142
- src_id: m.id,
40123
+ }, QJ = async (e, t, n) => {
40124
+ try {
40125
+ if (!e) return;
40126
+ const r = JSON.parse(e);
40127
+ if (!r || !t.worker || !r.nodes) return;
40128
+ const o = [0, 0];
40129
+ for (const s of r.nodes)
40130
+ o[0] += s.properties["frontend:pos"][0], o[1] += s.properties["frontend:pos"][1];
40131
+ o[0] /= r.nodes.length, o[1] /= r.nodes.length;
40132
+ const i = [];
40133
+ for (const s of r.nodes) {
40134
+ const a = {
40135
+ id: s.node_id,
40136
+ src_id: s.id,
40143
40137
  position: [
40144
- m.properties["frontend:pos"][0] - g[0],
40145
- m.properties["frontend:pos"][1] - g[1]
40138
+ s.properties["frontend:pos"][0] - o[0],
40139
+ s.properties["frontend:pos"][1] - o[1]
40146
40140
  ]
40147
40141
  };
40148
- h.push(x);
40142
+ i.push(a);
40149
40143
  }
40150
- for (const m of h) {
40151
- const x = await t.worker.add_node(m.id);
40152
- console.log("new_node", x), !(!x || !t.nodespace.get_node(x.id, !1)) && (m.new_id = x.id, e([
40144
+ for (const s of i) {
40145
+ const a = await t.worker.add_node(s.id);
40146
+ !a || !t.nodespace.get_node(a.id, !1) || (s.new_id = a.id, n([
40153
40147
  {
40154
- id: x.id,
40148
+ id: a.id,
40155
40149
  type: "position",
40156
40150
  position: {
40157
- x: m.position[0] + x.properties["frontend:pos"][0],
40158
- y: m.position[1] + x.properties["frontend:pos"][1]
40151
+ x: s.position[0] + a.properties["frontend:pos"][0],
40152
+ y: s.position[1] + a.properties["frontend:pos"][1]
40159
40153
  }
40160
40154
  }
40161
40155
  ]));
40162
40156
  }
40163
- for (const m of p.edges) {
40164
- const x = h.find(
40165
- (C) => C.src_id === m.src_nid
40166
- ), v = h.find(
40167
- (C) => C.src_id === m.trg_nid
40157
+ for (const s of r.edges) {
40158
+ const a = i.find(
40159
+ (c) => c.src_id === s.src_nid
40160
+ ), l = i.find(
40161
+ (c) => c.src_id === s.trg_nid
40168
40162
  );
40169
- !x || !v || !x.new_id || !v.new_id || t.worker.add_edge({
40170
- src_nid: x.new_id,
40171
- src_ioid: m.src_ioid,
40172
- trg_nid: v.new_id,
40173
- trg_ioid: m.trg_ioid
40163
+ !a || !l || !a.new_id || !l.new_id || t.worker.add_edge({
40164
+ src_nid: a.new_id,
40165
+ src_ioid: s.src_ioid,
40166
+ trg_nid: l.new_id,
40167
+ trg_ioid: s.trg_ioid
40174
40168
  });
40175
40169
  }
40176
- };
40177
- if (n) {
40178
- for (const d of i)
40179
- if (d.selected) {
40180
- if (!t.worker) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40181
- if (!d.source || !d.target) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40182
- if (!d.sourceHandle || !d.targetHandle) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40183
- t.worker.remove_edge({
40184
- src_nid: d.source,
40185
- src_ioid: d.sourceHandle,
40186
- trg_nid: d.target,
40187
- trg_ioid: d.targetHandle
40170
+ } catch (r) {
40171
+ console.error("Failed to process pasted data:", r);
40172
+ }
40173
+ }, eq = () => {
40174
+ const e = gs(), t = xe(Se);
40175
+ return t.rf_instance = e, /* @__PURE__ */ b.jsx(b.Fragment, {});
40176
+ }, tq = () => {
40177
+ var i, s;
40178
+ const e = xe(Se), t = Zr("Delete"), n = Zr(["Meta+c", "Control+c", "Strg+c"]), r = AP(), o = IP();
40179
+ if (t) {
40180
+ for (const a of r)
40181
+ if (a.selected) {
40182
+ if (!e.worker) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40183
+ if (!a.source || !a.target) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40184
+ if (!a.sourceHandle || !a.targetHandle) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40185
+ e.worker.remove_edge({
40186
+ src_nid: a.source,
40187
+ src_ioid: a.sourceHandle,
40188
+ trg_nid: a.target,
40189
+ trg_ioid: a.targetHandle
40188
40190
  });
40189
40191
  }
40190
- for (const d of s)
40191
- if (d.selected) {
40192
- if (!t.worker) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40193
- t.worker.remove_node(d.id);
40194
- }
40195
- } else if (r) {
40196
- const d = { nodes: [], edges: [] };
40197
- for (const f of s)
40198
- if (f.selected) {
40199
- const p = t.nodespace.get_node(f.id, !1);
40200
- if (!p) continue;
40201
- d.nodes.push(p.serialize());
40202
- }
40203
- for (const f of i)
40204
- !f.source || !f.target || !f.sourceHandle || !f.targetHandle || (c = s.find((p) => p.id === f.source)) != null && c.selected && ((u = s.find((p) => p.id === f.target)) != null && u.selected) && d.edges.push({
40205
- src_nid: f.source,
40206
- src_ioid: f.sourceHandle,
40207
- trg_nid: f.target,
40208
- trg_ioid: f.targetHandle
40192
+ for (const a of o)
40193
+ if (a.selected) {
40194
+ if (!e.worker) return /* @__PURE__ */ b.jsx(b.Fragment, {});
40195
+ e.worker.remove_node(a.id);
40196
+ }
40197
+ } else if (n) {
40198
+ const a = { nodes: [], edges: [] };
40199
+ for (const l of o)
40200
+ if (l.selected) {
40201
+ const c = e.nodespace.get_node(l.id, !1);
40202
+ if (!c) continue;
40203
+ a.nodes.push(c.serialize());
40204
+ }
40205
+ for (const l of r)
40206
+ !l.source || !l.target || !l.sourceHandle || !l.targetHandle || (i = o.find((c) => c.id === l.source)) != null && i.selected && ((s = o.find((c) => c.id === l.target)) != null && s.selected) && a.edges.push({
40207
+ src_nid: l.source,
40208
+ src_ioid: l.sourceHandle,
40209
+ trg_nid: l.target,
40210
+ trg_ioid: l.targetHandle
40209
40211
  });
40210
- navigator.clipboard.writeText(JSON.stringify(d));
40211
- } else if (o) {
40212
- if (console.log("paste pressed"), !a.current) return;
40213
- a.current instanceof HTMLTextAreaElement && (a.current.focus(), a.current.select());
40212
+ navigator.clipboard.writeText(JSON.stringify(a));
40214
40213
  }
40215
- return /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsx(
40216
- "textarea",
40217
- {
40218
- ref: a,
40219
- onPaste: l,
40220
- style: { position: "absolute", opacity: 0, pointerEvents: "none" }
40221
- }
40222
- ) });
40223
- }, tq = ({
40214
+ return /* @__PURE__ */ b.jsx(b.Fragment, {});
40215
+ }, nq = ({
40224
40216
  id: e,
40225
40217
  top: t,
40226
40218
  left: n,
@@ -40254,8 +40246,8 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40254
40246
  ]
40255
40247
  }
40256
40248
  );
40257
- }, nq = (e) => {
40258
- const t = xe(Se), n = ge(null);
40249
+ }, rq = (e) => {
40250
+ const t = xe(Se), n = me(null);
40259
40251
  we(() => {
40260
40252
  t.reactflowRef = n.current;
40261
40253
  }, [n]);
@@ -40273,6 +40265,18 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40273
40265
  return /* @__PURE__ */ b.jsx("div", { className: "reactflowlayer", children: /* @__PURE__ */ b.jsxs(
40274
40266
  SP,
40275
40267
  {
40268
+ onPasteCapture: (f) => {
40269
+ const p = n.current;
40270
+ if (!p) return;
40271
+ let g = f.target, h = 0;
40272
+ for (; g && g.parentElement && g !== p; )
40273
+ h++, g = g.parentElement;
40274
+ t.logger.debug(`onPasteCapture: ${h} steps to reactflow`), h <= 2 && QJ(
40275
+ f.clipboardData.getData("text/plain"),
40276
+ t,
40277
+ c
40278
+ );
40279
+ },
40276
40280
  nodes: a,
40277
40281
  edges: l,
40278
40282
  onNodesChange: c,
@@ -40288,8 +40292,8 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40288
40292
  onPaneClick: s,
40289
40293
  panOnDrag: !e.static,
40290
40294
  children: [
40291
- /* @__PURE__ */ b.jsx(QJ, {}),
40292
- /* @__PURE__ */ b.jsx(eq, { onNodesChange: c }),
40295
+ /* @__PURE__ */ b.jsx(eq, {}),
40296
+ /* @__PURE__ */ b.jsx(tq, {}),
40293
40297
  /* @__PURE__ */ b.jsx(
40294
40298
  OP,
40295
40299
  {
@@ -40307,14 +40311,14 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40307
40311
  zoomStep: 3
40308
40312
  }
40309
40313
  ),
40310
- r && /* @__PURE__ */ b.jsx(tq, { onClick: s, ...r })
40314
+ r && /* @__PURE__ */ b.jsx(nq, { onClick: s, ...r })
40311
40315
  ]
40312
40316
  }
40313
40317
  ) });
40314
40318
  }, Dc = oo(
40315
40319
  void 0
40316
- ), Hr = qo((e, t) => {
40317
- const { asChild: n, children: r, className: o, style: i, ...s } = e, [a, l] = ie(!1), c = ge(null), [u, d] = ie(null), [f, p] = ie({}), g = e.htime || 300, h = e.vtime || 300, y = e.hdelay || 0, m = e.vdelay || 200;
40320
+ ), $r = qo((e, t) => {
40321
+ const { asChild: n, children: r, className: o, style: i, ...s } = e, [a, l] = ie(!1), c = me(null), [u, d] = ie(null), [f, p] = ie({}), g = e.htime || 300, h = e.vtime || 300, y = e.hdelay || 0, m = e.vdelay || 200;
40318
40322
  Cb(t, () => c.current, []);
40319
40323
  const x = async () => {
40320
40324
  if (!c.current) return;
@@ -40420,7 +40424,7 @@ const FJ = ({ state: e, className: t = "reacttqdm", ...n }) => {
40420
40424
  const E = /* @__PURE__ */ b.jsx(Dc.Provider, { value: { isExpanded: a, toggleExpand: C }, children: S });
40421
40425
  return a ? kf.createPortal(E, document.body) : E;
40422
40426
  });
40423
- Hr.Trigger = function({
40427
+ $r.Trigger = function({
40424
40428
  children: e
40425
40429
  }) {
40426
40430
  const t = xe(Dc);
@@ -40430,7 +40434,7 @@ Hr.Trigger = function({
40430
40434
  );
40431
40435
  return /* @__PURE__ */ b.jsx("div", { style: { cursor: "pointer" }, onClick: t.toggleExpand, children: e });
40432
40436
  };
40433
- Hr.Expanded = function({
40437
+ $r.Expanded = function({
40434
40438
  children: e
40435
40439
  }) {
40436
40440
  const t = xe(Dc);
@@ -40440,7 +40444,7 @@ Hr.Expanded = function({
40440
40444
  );
40441
40445
  return t.isExpanded ? /* @__PURE__ */ b.jsx(b.Fragment, { children: e }) : null;
40442
40446
  };
40443
- Hr.Collapsed = function({
40447
+ $r.Collapsed = function({
40444
40448
  children: e
40445
40449
  }) {
40446
40450
  const t = xe(Dc);
@@ -40451,7 +40455,7 @@ Hr.Collapsed = function({
40451
40455
  return t.isExpanded ? null : /* @__PURE__ */ b.jsx(b.Fragment, { children: e });
40452
40456
  };
40453
40457
  const Fc = k.createContext(void 0), gr = qo((e, t) => {
40454
- const { asChild: n, children: r, className: o, style: i, ...s } = e, a = ge(null);
40458
+ const { asChild: n, children: r, className: o, style: i, ...s } = e, a = me(null);
40455
40459
  Cb(
40456
40460
  t,
40457
40461
  () => a.current,
@@ -40532,7 +40536,7 @@ gr.OutFullScreen = function({
40532
40536
  );
40533
40537
  return t.isFullScreen ? null : /* @__PURE__ */ b.jsx(b.Fragment, { children: e });
40534
40538
  };
40535
- const rq = ({
40539
+ const oq = ({
40536
40540
  fnrf_zst: e,
40537
40541
  header: t,
40538
40542
  flow: n,
@@ -40547,7 +40551,7 @@ const rq = ({
40547
40551
  e.local_state.setState({ funcnodescontainerRef: s.current });
40548
40552
  }, [s]);
40549
40553
  const a = e.plugins();
40550
- return /* @__PURE__ */ b.jsx(RJ, { plugins: a, fnrf_zst: e, children: /* @__PURE__ */ b.jsx(Se.Provider, { value: e, children: /* @__PURE__ */ b.jsx(Hr, { asChild: !0, children: /* @__PURE__ */ b.jsx(gr, { asChild: !0, children: /* @__PURE__ */ b.jsx(
40554
+ return /* @__PURE__ */ b.jsx(RJ, { plugins: a, fnrf_zst: e, children: /* @__PURE__ */ b.jsx(Se.Provider, { value: e, children: /* @__PURE__ */ b.jsx($r, { asChild: !0, children: /* @__PURE__ */ b.jsx(gr, { asChild: !0, children: /* @__PURE__ */ b.jsx(
40551
40555
  JL,
40552
40556
  {
40553
40557
  style: {
@@ -40565,20 +40569,20 @@ const rq = ({
40565
40569
  children: [
40566
40570
  t.show && /* @__PURE__ */ b.jsx(iB, { ...t }),
40567
40571
  /* @__PURE__ */ b.jsxs("div", { className: "funcnodesreactflowbody", children: [
40568
- /* @__PURE__ */ b.jsx(nq, { ...n }),
40572
+ /* @__PURE__ */ b.jsx(rq, { ...n }),
40569
40573
  o && r.show && /* @__PURE__ */ b.jsx(B$, {}),
40570
40574
  o && n.showNodeSettings && /* @__PURE__ */ b.jsx(UJ, {})
40571
40575
  ] }),
40572
40576
  /* @__PURE__ */ b.jsxs("div", { className: "funcnodesflaotingmenu", children: [
40573
- /* @__PURE__ */ b.jsx(gr.OutFullScreen, { children: n.allowExpand && /* @__PURE__ */ b.jsxs(Hr.Trigger, { children: [
40574
- /* @__PURE__ */ b.jsx(Hr.Expanded, { children: /* @__PURE__ */ b.jsx(
40577
+ /* @__PURE__ */ b.jsx(gr.OutFullScreen, { children: n.allowExpand && /* @__PURE__ */ b.jsxs($r.Trigger, { children: [
40578
+ /* @__PURE__ */ b.jsx($r.Expanded, { children: /* @__PURE__ */ b.jsx(
40575
40579
  hF,
40576
40580
  {
40577
40581
  size: "xl",
40578
40582
  style: { padding: "4px" }
40579
40583
  }
40580
40584
  ) }),
40581
- /* @__PURE__ */ b.jsx(Hr.Collapsed, { children: /* @__PURE__ */ b.jsx(
40585
+ /* @__PURE__ */ b.jsx($r.Collapsed, { children: /* @__PURE__ */ b.jsx(
40582
40586
  gF,
40583
40587
  {
40584
40588
  size: "xl",
@@ -40604,12 +40608,12 @@ const rq = ({
40604
40608
  ) }) }) }) });
40605
40609
  }, Ef = {};
40606
40610
  window.fnrf_zst === void 0 && (window.fnrf_zst = Ef);
40607
- const oq = {
40611
+ const iq = {
40608
40612
  show: !0
40609
- }, iq = {
40613
+ }, sq = {
40610
40614
  show: !0,
40611
40615
  showmenu: !0
40612
- }, sq = {
40616
+ }, aq = {
40613
40617
  minimap: !0,
40614
40618
  static: !1,
40615
40619
  minZoom: 0.1,
@@ -40623,12 +40627,12 @@ const oq = {
40623
40627
  debug: !1,
40624
40628
  useWorkerManager: !0,
40625
40629
  show_library: !0,
40626
- header: iq,
40627
- flow: sq,
40628
- library: oq
40630
+ header: sq,
40631
+ flow: aq,
40632
+ library: iq
40629
40633
  }, Se = oo(
40630
40634
  gx(OE)
40631
- ), aq = (e) => {
40635
+ ), lq = (e) => {
40632
40636
  let t = kl(e, {
40633
40637
  ...OE,
40634
40638
  id: zx()
@@ -40676,7 +40680,7 @@ const oq = {
40676
40680
  s();
40677
40681
  };
40678
40682
  }, []), /* @__PURE__ */ b.jsx(
40679
- rq,
40683
+ oq,
40680
40684
  {
40681
40685
  fnrf_zst: n,
40682
40686
  header: r.header,
@@ -40684,7 +40688,7 @@ const oq = {
40684
40688
  flow: r.flow
40685
40689
  }
40686
40690
  );
40687
- }, lq = ({
40691
+ }, cq = ({
40688
40692
  nid: e,
40689
40693
  ioid: t,
40690
40694
  value: n,
@@ -40697,18 +40701,18 @@ const oq = {
40697
40701
  value: n,
40698
40702
  set_default: r
40699
40703
  });
40700
- }, jq = { set_io_value: lq }, Lq = (e) => (new hx("FuncNodes", e.debug ? "debug" : "info").debug("Initalizing FuncNodes with props:", e), /* @__PURE__ */ b.jsx("div", { className: "FuncnodesApp", children: /* @__PURE__ */ b.jsx(aq, { ...e }) }));
40704
+ }, Lq = { set_io_value: cq }, Bq = (e) => (new hx("FuncNodes", e.debug ? "debug" : "info").debug("Initalizing FuncNodes with props:", e), /* @__PURE__ */ b.jsx("div", { className: "FuncnodesApp", children: /* @__PURE__ */ b.jsx(lq, { ...e }) }));
40701
40705
  export {
40702
- Lq as FuncNodes,
40706
+ Bq as FuncNodes,
40703
40707
  Se as FuncNodesContext,
40704
40708
  gx as FuncNodesReactFlowZustand,
40705
40709
  HM as FuncNodesWorker,
40706
- aq as FuncnodesReactFlow,
40710
+ lq as FuncnodesReactFlow,
40707
40711
  PE as NodeContext,
40708
- nq as ReactFlowLayer,
40712
+ rq as ReactFlowLayer,
40709
40713
  or as RenderMappingContext,
40710
40714
  RJ as RenderMappingProvider,
40711
40715
  Vx as WebSocketWorker,
40712
40716
  kl as deep_update,
40713
- jq as helperfunctions
40717
+ Lq as helperfunctions
40714
40718
  };