@synnaxlabs/pluto 0.39.1 → 0.40.0

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.
Files changed (45) hide show
  1. package/dist/{Provider-CCZPt2M5.js → Provider-CvqYCQ-c.js} +1 -1
  2. package/dist/{Provider-YIru1nvE.cjs → Provider-DdzMK2ly.cjs} +1 -1
  3. package/dist/{Text-B3pNXYhh.js → Text-BBAivtcq.js} +1 -1
  4. package/dist/{Text-DrXyKZwR.cjs → Text-BpgvgYm9.cjs} +1 -1
  5. package/dist/{Text-DT2rIwXL.js → Text-DKpfyuCy.js} +4 -4
  6. package/dist/{Text-Hnsb1fus.cjs → Text-Kq93-h4G.cjs} +1 -1
  7. package/dist/{aggregator-5XpEdQtr.js → aggregator-Bo5bXe2h.js} +1 -1
  8. package/dist/{aggregator-BAdXZfPY.cjs → aggregator-Dd6-VUPG.cjs} +1 -1
  9. package/dist/color.cjs +1 -1
  10. package/dist/color.js +1 -1
  11. package/dist/{eraser-DKQ5u3sz.js → eraser-B8b1ORvV.js} +1 -1
  12. package/dist/{eraser-CnbMvm7W.cjs → eraser-BsY8Ilvt.cjs} +1 -1
  13. package/dist/ether.cjs +1 -1
  14. package/dist/ether.js +7 -7
  15. package/dist/{external-CNyc2Q9k.cjs → external-BCMlN9UI.cjs} +1 -1
  16. package/dist/{external-CL_RlqOT.cjs → external-BmbDPHD3.cjs} +1 -1
  17. package/dist/{external-C710XUvC.js → external-BtHnb3Sp.js} +5 -5
  18. package/dist/{external-BhaLdMzY.js → external-CGxC3uw1.js} +2 -2
  19. package/dist/{external-Vjn4WKwt.cjs → external-CKvBpFrE.cjs} +1 -1
  20. package/dist/{external-DYUmsMj8.cjs → external-CSKJSiQJ.cjs} +1 -1
  21. package/dist/{external-DYn3iC-U.js → external-CqR7Yk0z.js} +2 -2
  22. package/dist/{external-vVwTqni5.cjs → external-D3IjVlS7.cjs} +1 -1
  23. package/dist/{external-CjZqwgDh.js → external-DNUUgDyq.js} +3 -3
  24. package/dist/{external-BOOtUi1D.js → external-cFoSk0PK.js} +3 -3
  25. package/dist/{font-CD9W5Tsh.js → font-BBeEt9tk.js} +2 -2
  26. package/dist/{font-MRTGIokZ.cjs → font-DshP3AG2.cjs} +1 -1
  27. package/dist/{fontString-MM82zgKY.cjs → fontString-CWcKYJNb.cjs} +1 -1
  28. package/dist/{fontString-p8gMjlA1.js → fontString-DKZUOJ6f.js} +1 -1
  29. package/dist/index.cjs +7 -7
  30. package/dist/index.js +179 -162
  31. package/dist/input.cjs +1 -1
  32. package/dist/input.js +1 -1
  33. package/dist/list.cjs +1 -1
  34. package/dist/list.js +1 -1
  35. package/dist/{provider-D3MPSb7n.cjs → provider-BaehOXWw.cjs} +3 -3
  36. package/dist/{provider-DfVWtUxZ.js → provider-BsPH6eua.js} +26 -25
  37. package/dist/src/hardware/device/Select.d.ts +6 -2
  38. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  39. package/dist/theming.cjs +1 -1
  40. package/dist/theming.js +2 -2
  41. package/dist/tree.cjs +1 -1
  42. package/dist/tree.js +1 -1
  43. package/dist/{value-DbcZ1sQB.js → value-C9u1Km9t.js} +4 -4
  44. package/dist/{value-DQqKhQvt.cjs → value-C_xE_NRc.cjs} +1 -1
  45. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -4,20 +4,20 @@ var it = (e, t, n) => dm(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { j as s } from "./jsx-runtime-CYK1ROHF.js";
5
5
  import ro, { useState as pe, useEffect as U, useRef as Q, useCallback as R, Children as fm, createElement as Cn, isValidElement as hm, useLayoutEffect as gs, createContext as ut, use as _n, useMemo as Se, memo as Ae, useImperativeHandle as pm, useId as Kr, createRef as gm, Fragment as Ho, useContext as io, forwardRef as Ra, cloneElement as mm } from "react";
6
6
  import { E as ce, T as Ie, f as tt, g as Va, u as Fa, M as lo, d as xm, a as Zo, h as cl, i as ym, t as wm } from "./Divider-C5m3c4pv.js";
7
- import { K as be, g as _e, C as m, M as H, L as jm, Y as tr, v as bm, y as ao, r as xt, G as ne, c as we, _ as Vn, a as Bt, h as Yo, o as vm, J as Sm, Z as Ha } from "./css-rxwBYwM1.js";
7
+ import { K as be, g as _e, C as m, M as H, L as jm, Y as tr, v as bm, y as ao, r as xt, G as ne, c as we, _ as Vn, a as zt, h as Yo, o as vm, J as Sm, Z as Ha } from "./css-rxwBYwM1.js";
8
8
  import { n as LS } from "./css-rxwBYwM1.js";
9
9
  import { H as Cm, B as _m, A as Em } from "./external-GUQ0NMxY.js";
10
10
  import { e as NS } from "./external-GUQ0NMxY.js";
11
- import { E as km, S as Go, k as Za, z as At, x as Mm, C as Lm, v as Pm, F as ul, e as ms, G as Fn, n as Nm, H as Tm, m as Hn, i as dl, l as Ur, w as Am, d as Im } from "./state-w46WTrh-.js";
11
+ import { E as km, S as Go, k as Za, z as It, x as Mm, C as Lm, v as Pm, F as ul, e as ms, G as Fn, n as Nm, H as Tm, m as Hn, i as dl, l as Ur, w as Am, d as Im } from "./state-w46WTrh-.js";
12
12
  import { J as AS, D as IS, $ as $S, Z as BS, U as zS, I as OS } from "./state-w46WTrh-.js";
13
13
  import { G as RS } from "./Pack-D50qN0Vu.js";
14
- import { p as Wo, B as $m, I as Xe, N as He } from "./external-C710XUvC.js";
15
- import { e as FS, s as HS } from "./external-C710XUvC.js";
14
+ import { p as Wo, B as $m, I as Xe, N as He } from "./external-BtHnb3Sp.js";
15
+ import { e as FS, s as HS } from "./external-BtHnb3Sp.js";
16
16
  import { S as re } from "./Space-DBmhvGQL.js";
17
17
  import { j as Bm, c as Ya, h as br, d as vr, s as Sr, a as qr, P as zm, r as Om, o as nr } from "./hooks-CwSxEEAh.js";
18
18
  import { g as Dm } from "./useVirtualCursorDragWebKit-DFC-XFfl.js";
19
- import { c as $e, d as zt, C as dt, e as Rm, f as rn, g as Ga, h as Jr, i as Vm, P as Fm, j as Hm, u as co } from "./Provider-CCZPt2M5.js";
20
- import { m as YS, k as GS } from "./Provider-CCZPt2M5.js";
19
+ import { c as $e, d as bt, C as dt, e as Rm, f as rn, g as Ga, h as Jr, i as Vm, P as Fm, j as Hm, u as co } from "./Provider-CvqYCQ-c.js";
20
+ import { m as YS, k as GS } from "./Provider-CvqYCQ-c.js";
21
21
  import { e as XS } from "./external-Dmr3e50U.js";
22
22
  import { r as Wa, a as Qr, b as Zm, T as ln, t as Ym, u as En } from "./external-DNC1e6Hi.js";
23
23
  import { I as US, e as qS } from "./external-DNC1e6Hi.js";
@@ -27,29 +27,29 @@ import { W as Xa, D as Wm } from "./WithIcon-C6COgbZq.js";
27
27
  import { a as tC } from "./WithIcon-C6COgbZq.js";
28
28
  import { A as Be, o as gn } from "./toArray-Dvn9FA_3.js";
29
29
  import { e as oC } from "./external-Bxg2-RDn.js";
30
- import { A as ei } from "./external-DYn3iC-U.js";
31
- import { a as rC, e as iC } from "./external-DYn3iC-U.js";
30
+ import { A as ei } from "./external-CqR7Yk0z.js";
31
+ import { a as rC, e as iC } from "./external-CqR7Yk0z.js";
32
32
  import { C as Ka, D as Ua, b as Xm, f as Km, u as Um, w as qm, I as Ze, B as Ot, c as uo, a as qa } from "./Toggle-DZMcFiiI.js";
33
33
  import { i as aC } from "./Toggle-DZMcFiiI.js";
34
- import { T as bt } from "./Text-B3pNXYhh.js";
35
- import { V as Jm, s as Qm, v as e0 } from "./aggregator-5XpEdQtr.js";
36
- import { v as Ja, A as Qa, T as Dt, m as ec, n as xs, o as t0, H as n0, c as or, C as o0, L as s0, S as r0, g as i0, u as tc, s as nc } from "./Text-DT2rIwXL.js";
37
- import { p as uC } from "./Text-DT2rIwXL.js";
38
- import { g as l0, j as a0, J as c0, B as u0, n as d0, M as f0 } from "./provider-DfVWtUxZ.js";
39
- import { Z as Io, P as fl, H as Wt, I as h0, J as p0, K as g0, M as m0, N as x0, O as y0, Q as w0, l as j0, L as b0, S as So, T as v0, U as S0, V as C0, X as _0, Y as E0, W as k0, _ as M0, $ as L0, a0 as P0, a1 as N0, a2 as T0, a3 as A0, a4 as I0, a5 as $0, a6 as B0, a7 as z0, a8 as O0, a9 as hl, aa as pl, ab as D0, ac as R0, ad as V0, ae as F0, af as H0, ag as Z0, ah as oc, ai as sc, aj as rc, ak as ic, s as Y0, al as G0, am as W0, an as lc, ao as ys, ap as X0, aq as ws, ar as K0, as as ac, at as cc, au as uc, av as dc, aw as kn, ax as js, ay as fc, az as U0, aA as q0, aB as gl, aC as ti, aD as ni, aE as J0, aF as Q0, aG as yt, aH as wt, aI as Xo, aJ as Zn, aK as Cr, aL as e2, aM as t2, aN as n2, aO as ml, aP as o2, aQ as xl, aR as s2, aS as r2, aT as i2, aU as l2, aV as oi, aW as a2, aX as Ko, aY as fo, aZ as si, a_ as c2, a$ as u2, b0 as d2, b1 as f2, b2 as h2, b3 as p2, b4 as g2, b5 as m2 } from "./value-DbcZ1sQB.js";
40
- import { z as fC } from "./value-DbcZ1sQB.js";
41
- import { a as hc, f as Re, c as ri, b as vt, u as Rt, P as pc, F as gc } from "./Haul-DrdXQaTq.js";
34
+ import { T as vt } from "./Text-BBAivtcq.js";
35
+ import { V as Jm, s as Qm, v as e0 } from "./aggregator-Bo5bXe2h.js";
36
+ import { v as Ja, A as Qa, T as Dt, m as ec, n as xs, o as t0, H as n0, c as or, C as o0, L as s0, S as r0, g as i0, u as tc, s as nc } from "./Text-DKpfyuCy.js";
37
+ import { p as uC } from "./Text-DKpfyuCy.js";
38
+ import { g as l0, j as a0, J as c0, B as u0, n as d0, M as f0 } from "./provider-BsPH6eua.js";
39
+ import { Z as Io, P as fl, H as Wt, I as h0, J as p0, K as g0, M as m0, N as x0, O as y0, Q as w0, l as j0, L as b0, S as So, T as v0, U as S0, V as C0, X as _0, Y as E0, W as k0, _ as M0, $ as L0, a0 as P0, a1 as N0, a2 as T0, a3 as A0, a4 as I0, a5 as $0, a6 as B0, a7 as z0, a8 as O0, a9 as hl, aa as pl, ab as D0, ac as R0, ad as V0, ae as F0, af as H0, ag as Z0, ah as oc, ai as sc, aj as rc, ak as ic, s as Y0, al as G0, am as W0, an as lc, ao as ys, ap as X0, aq as ws, ar as K0, as as ac, at as cc, au as uc, av as dc, aw as kn, ax as js, ay as fc, az as U0, aA as q0, aB as gl, aC as ti, aD as ni, aE as J0, aF as Q0, aG as yt, aH as wt, aI as Xo, aJ as Zn, aK as Cr, aL as e2, aM as t2, aN as n2, aO as ml, aP as o2, aQ as xl, aR as s2, aS as r2, aT as i2, aU as l2, aV as oi, aW as a2, aX as Ko, aY as fo, aZ as si, a_ as c2, a$ as u2, b0 as d2, b1 as f2, b2 as h2, b3 as p2, b4 as g2, b5 as m2 } from "./value-C9u1Km9t.js";
40
+ import { z as fC } from "./value-C9u1Km9t.js";
41
+ import { a as hc, f as Re, c as ri, b as St, u as Rt, P as pc, F as gc } from "./Haul-DrdXQaTq.js";
42
42
  import { H as pC } from "./Haul-DrdXQaTq.js";
43
43
  import { a as Ke, u as mc, b as xc } from "./useMemoCompare-B-Y9Ft2w.js";
44
44
  import { c as mC } from "./useMemoCompare-B-Y9Ft2w.js";
45
45
  import { d as yl } from "./dimensions-Bt1NqWz6.js";
46
- import { u as ii } from "./font-CD9W5Tsh.js";
46
+ import { u as ii } from "./font-BBeEt9tk.js";
47
47
  import { u as li, a as x2, b as ai, f as yc, g as y2 } from "./Dropdown-FSmdakic.js";
48
48
  import { c as yC, D as wC } from "./Dropdown-FSmdakic.js";
49
49
  import { I as Fe } from "./deep-ChDJVfub.js";
50
50
  import { z as ae } from "zod";
51
- import { u as ho, S as bs, P as w2, G as j2 } from "./external-BhaLdMzY.js";
52
- import { e as bC } from "./external-BhaLdMzY.js";
51
+ import { u as ho, S as bs, P as w2, G as j2 } from "./external-CGxC3uw1.js";
52
+ import { e as bC } from "./external-CGxC3uw1.js";
53
53
  import { P as vs } from "./Pack-Dlj4dZzQ.js";
54
54
  import { u as b2, b as v2, a as ci, C as ui } from "./ContextMenu-DX6j7Wwi.js";
55
55
  import { T as S2 } from "./Text-g6btwQ6E.js";
@@ -57,15 +57,15 @@ import { u as C2 } from "./external-D18IGHXh.js";
57
57
  import { e as SC } from "./external-D18IGHXh.js";
58
58
  import "./Item-CZAsnOoO.js";
59
59
  import { createPortal as di } from "react-dom";
60
- import { S as wc, F as jc } from "./external-CjZqwgDh.js";
61
- import { e as _C, c as EC, f as kC, p as MC } from "./external-CjZqwgDh.js";
60
+ import { S as wc, F as jc } from "./external-DNUUgDyq.js";
61
+ import { e as _C, c as EC, f as kC, p as MC } from "./external-DNUUgDyq.js";
62
62
  import { c as PC, u as NC } from "./units-D7qkgH-s.js";
63
63
  import { u as _2 } from "./useClickOutside-vpv_GiBw.js";
64
64
  import { u as bc } from "./useDebouncedCallback-DDLuEZa8.js";
65
65
  import { e as AC } from "./external-DK_wU08V.js";
66
- import { e as E2, E as k2 } from "./eraser-DKQ5u3sz.js";
66
+ import { e as E2, E as k2 } from "./eraser-B8b1ORvV.js";
67
67
  import { D as _r } from "./DateTime-sO15tvDD.js";
68
- import { e as $C } from "./external-BOOtUi1D.js";
68
+ import { e as $C } from "./external-cFoSk0PK.js";
69
69
  import { V as zC } from "./Video-DPIAdJ-g.js";
70
70
  const Bv = (e, t, n = 150) => {
71
71
  const [o, r] = pe(e);
@@ -656,7 +656,7 @@ const Bv = (e, t, n = 150) => {
656
656
  },
657
657
  [a]
658
658
  );
659
- return zt(async () => {
659
+ return bt(async () => {
660
660
  if (n.synnax != null && n.synnax.close(), t == null) return o(Io);
661
661
  const u = new l0({
662
662
  ...t,
@@ -710,7 +710,7 @@ const Bv = (e, t, n = 150) => {
710
710
  setAlias: null
711
711
  }), Mn = () => _n(Nc), Tc = (e) => Mn().aliases[e] ?? null, Ss = () => Mn().aliases, Cs = (e, t = "") => {
712
712
  const { getName: n } = Mn(), [o, r] = pe(t);
713
- return zt(async () => {
713
+ return bt(async () => {
714
714
  const i = await n(e);
715
715
  r(i);
716
716
  }, [e, n]), o ?? t;
@@ -743,7 +743,7 @@ const Bv = (e, t, n = 150) => {
743
743
  },
744
744
  [o, n]
745
745
  );
746
- return zt(async () => {
746
+ return bt(async () => {
747
747
  if (n == null || e == null) {
748
748
  r({});
749
749
  return;
@@ -788,7 +788,7 @@ const Bv = (e, t, n = 150) => {
788
788
  u,
789
789
  " with this label"
790
790
  ] });
791
- return /* @__PURE__ */ s.jsxs(bt, { value: t, ...r, children: [
791
+ return /* @__PURE__ */ s.jsxs(vt, { value: t, ...r, children: [
792
792
  f && /* @__PURE__ */ s.jsx(
793
793
  Ze,
794
794
  {
@@ -1726,12 +1726,12 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1726
1726
  { key: "large", label: "L" },
1727
1727
  { key: "medium", label: "M" },
1728
1728
  { key: "small", label: "S" }
1729
- ], Kc = (e) => /* @__PURE__ */ s.jsx(ft, { ...e, data: wx, entryRenderKey: "label" }), jx = /* @__PURE__ */ new Set([At.UUID, At.JSON]), Uc = At.ALL.filter(
1730
- (e) => e !== At.UNKNOWN
1729
+ ], Kc = (e) => /* @__PURE__ */ s.jsx(ft, { ...e, data: wx, entryRenderKey: "label" }), jx = /* @__PURE__ */ new Set([It.UUID, It.JSON]), Uc = It.ALL.filter(
1730
+ (e) => e !== It.UNKNOWN
1731
1731
  ).map((e) => ({
1732
1732
  key: e.toString(),
1733
1733
  name: jx.has(e) ? e.toString().toUpperCase() : ao.capitalize(e.toString())
1734
- })), bx = Uc.filter((e) => !new At(e.key).isVariable), vx = [
1734
+ })), bx = Uc.filter((e) => !new It(e.key).isVariable), vx = [
1735
1735
  { key: "name", name: "Name" }
1736
1736
  ], Sx = ({
1737
1737
  hideVariableDensity: e = !1,
@@ -1775,7 +1775,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1775
1775
  data: t === "up" ? Cx : _x,
1776
1776
  children: e
1777
1777
  }
1778
- ), Jc = (e) => /* @__PURE__ */ s.jsx(Ze, { className: m.BE("select", "clear"), variant: "outlined", ...e, children: /* @__PURE__ */ s.jsx(ce.Close, { "aria-label": "clear" }) }), St = ({
1778
+ ), Jc = (e) => /* @__PURE__ */ s.jsx(Ze, { className: m.BE("select", "clear"), variant: "outlined", ...e, children: /* @__PURE__ */ s.jsx(ce.Close, { "aria-label": "clear" }) }), Ct = ({
1779
1779
  onChange: e,
1780
1780
  value: t,
1781
1781
  entryRenderKey: n = "key",
@@ -1798,7 +1798,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1798
1798
  ...y
1799
1799
  }) => {
1800
1800
  const { visible: v, open: L, close: N, toggle: M } = ai(), [$, B] = pe(null), z = l != null;
1801
- zt(async () => {
1801
+ bt(async () => {
1802
1802
  if (nc(t)) return B(null);
1803
1803
  if (($ == null ? void 0 : $.key) === t) return;
1804
1804
  let E = null;
@@ -1899,7 +1899,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1899
1899
  };
1900
1900
  let y;
1901
1901
  return u !== "modal" && (y = /* @__PURE__ */ s.jsx(ei, { enabledLoc: "bottom", disabledLoc: "left", enabled: n })), /* @__PURE__ */ s.jsxs(
1902
- bt,
1902
+ vt,
1903
1903
  {
1904
1904
  className: m(m.BE("select", "input"), a),
1905
1905
  value: p,
@@ -2014,7 +2014,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2014
2014
  ...v
2015
2015
  }) => {
2016
2016
  const { visible: L, open: N, close: M } = ai(), [$, B] = pe([]), [z, V] = pe(!1), O = a != null;
2017
- zt(async () => {
2017
+ bt(async () => {
2018
2018
  V(!0), nc(t) && B([]);
2019
2019
  const P = $.map((D) => D.key), A = Be(t);
2020
2020
  if (ul.unorderedPrimitiveArrays(P, A) === ul.EQUAL)
@@ -2094,7 +2094,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2094
2094
  children: j
2095
2095
  }
2096
2096
  )
2097
- ] }), E = /* @__PURE__ */ s.jsx(w, { searcher: a, children: (A) => /* @__PURE__ */ s.jsx(bt, { autoFocus: !0, placeholder: "Search", ...A, children: y }) });
2097
+ ] }), E = /* @__PURE__ */ s.jsx(w, { searcher: a, children: (A) => /* @__PURE__ */ s.jsx(vt, { autoFocus: !0, placeholder: "Search", ...A, children: y }) });
2098
2098
  }
2099
2099
  return /* @__PURE__ */ s.jsx(
2100
2100
  Ci,
@@ -2148,7 +2148,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2148
2148
  };
2149
2149
  let N;
2150
2150
  return g !== "modal" && (N = /* @__PURE__ */ s.jsx(ei, { enabledLoc: "bottom", disabledLoc: "left", enabled: i })), /* @__PURE__ */ s.jsxs(
2151
- bt,
2151
+ vt,
2152
2152
  {
2153
2153
  ref: C,
2154
2154
  className: m(
@@ -2223,7 +2223,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2223
2223
  DropdownButton: _s,
2224
2224
  Multiple: Ln,
2225
2225
  MultipleTag: _i,
2226
- Single: St,
2226
+ Single: Ct,
2227
2227
  Text: Tx,
2228
2228
  TextAlignment: Es,
2229
2229
  defaultButton: Xc
@@ -2657,7 +2657,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2657
2657
  }, [])
2658
2658
  }), B = Q(null);
2659
2659
  if (n == null || b == null) return null;
2660
- const V = new Bt(a).pickByContrast("#000000", "#ffffff"), O = /* @__PURE__ */ s.jsxs(
2660
+ const V = new zt(a).pickByContrast("#000000", "#ffffff"), O = /* @__PURE__ */ s.jsxs(
2661
2661
  "div",
2662
2662
  {
2663
2663
  ref: B,
@@ -2684,7 +2684,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2684
2684
  rounded: !0,
2685
2685
  style: {
2686
2686
  borderColor: we(a),
2687
- backgroundColor: new Bt(a).setAlpha(0.7).hex,
2687
+ backgroundColor: new zt(a).setAlpha(0.7).hex,
2688
2688
  ...h
2689
2689
  },
2690
2690
  ...p,
@@ -2837,7 +2837,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2837
2837
  },
2838
2838
  [u, l]
2839
2839
  )
2840
- }), g = o == null ? void 0 : o.filter((j) => j.axis === u), x = vt();
2840
+ }), g = o == null ? void 0 : o.filter((j) => j.axis === u), x = St();
2841
2841
  return /* @__PURE__ */ s.jsxs(
2842
2842
  Dc,
2843
2843
  {
@@ -2902,7 +2902,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2902
2902
  },
2903
2903
  [i, o]
2904
2904
  )
2905
- }), d = vt();
2905
+ }), d = St();
2906
2906
  return /* @__PURE__ */ s.jsxs(
2907
2907
  Rc,
2908
2908
  {
@@ -2986,8 +2986,8 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2986
2986
  if (e == null) return /* @__PURE__ */ s.jsx(ce.Channel, {});
2987
2987
  if (c0.isCalculated(e)) return /* @__PURE__ */ s.jsx(ce.Calculation, {});
2988
2988
  if (e.isIndex) return /* @__PURE__ */ s.jsx(ce.Index, {});
2989
- const t = new At(e.dataType);
2990
- return t.isInteger ? /* @__PURE__ */ s.jsx(ce.Binary, {}) : t.isFloat ? /* @__PURE__ */ s.jsx(ce.Decimal, {}) : t.equals(At.STRING) ? /* @__PURE__ */ s.jsx(ce.String, {}) : t.equals(At.JSON) ? /* @__PURE__ */ s.jsx(ce.JSON, {}) : /* @__PURE__ */ s.jsx(ce.Channel, {});
2989
+ const t = new It(e.dataType);
2990
+ return t.isInteger ? /* @__PURE__ */ s.jsx(ce.Binary, {}) : t.isFloat ? /* @__PURE__ */ s.jsx(ce.Decimal, {}) : t.equals(It.STRING) ? /* @__PURE__ */ s.jsx(ce.String, {}) : t.equals(It.JSON) ? /* @__PURE__ */ s.jsx(ce.JSON, {}) : /* @__PURE__ */ s.jsx(ce.Channel, {});
2991
2991
  }, Qx = ({
2992
2992
  key: e,
2993
2993
  ...t
@@ -3029,7 +3029,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3029
3029
  },
3030
3030
  [t, o]
3031
3031
  )
3032
- }), j = vt(), b = R(
3032
+ }), j = St(), b = R(
3033
3033
  ({ dropped: v }) => {
3034
3034
  t(
3035
3035
  Be(o).filter((L) => !v.some((N) => N.key === L)),
@@ -3102,7 +3102,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3102
3102
  },
3103
3103
  [x, t]
3104
3104
  )
3105
- }), y = vt(), v = R(
3105
+ }), y = St(), v = R(
3106
3106
  () => n != null && j([{ type: lt, key: n }]),
3107
3107
  [j, n]
3108
3108
  ), L = R(
@@ -3110,7 +3110,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3110
3110
  [c]
3111
3111
  );
3112
3112
  return /* @__PURE__ */ s.jsx(
3113
- St,
3113
+ Ct,
3114
3114
  {
3115
3115
  data: r,
3116
3116
  className: m(o, m.dropRegion(Uo(y, gn(n)))),
@@ -3144,7 +3144,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3144
3144
  optional: t = !1,
3145
3145
  onChange: n
3146
3146
  }) => {
3147
- const o = Ct(), { get: r, bind: i, set: l, setStatus: a } = o, [c, u] = pe(r(e, { optional: t }));
3147
+ const o = _t(), { get: r, bind: i, set: l, setStatus: a } = o, [c, u] = pe(r(e, { optional: t }));
3148
3148
  U(() => (u(r(e, { optional: t })), i({
3149
3149
  path: e,
3150
3150
  onChange: u,
@@ -3166,11 +3166,11 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3166
3166
  let h;
3167
3167
  return o.mode === "preview" && (h = "preview"), { onChange: d, setStatus: f, variant: h, ...c };
3168
3168
  }, hu = (e, t = !1, n) => {
3169
- const { get: o, bind: r } = Ct(n), [, i] = pe(0);
3169
+ const { get: o, bind: r } = _t(n), [, i] = pe(0);
3170
3170
  return U(() => (i((l) => l + 1), r({ path: e, onChange: () => i((l) => l + 1) })), [e, r]), o(e, { optional: t }) ?? null;
3171
3171
  }, pu = (e, t = !1, n) => {
3172
3172
  var l;
3173
- const { get: o, bind: r } = Ct(n), [, i] = pe(0);
3173
+ const { get: o, bind: r } = _t(n), [, i] = pe(0);
3174
3174
  return U(() => (i((a) => a + 1), r({ path: e, onChange: () => i((a) => a + 1) })), [e, r]), ((l = o(e, { optional: t })) == null ? void 0 : l.value) ?? null;
3175
3175
  }, t3 = (e) => {
3176
3176
  var t, n;
@@ -3180,7 +3180,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3180
3180
  ctx: t,
3181
3181
  onChange: n
3182
3182
  }) => {
3183
- const o = Ct(t);
3183
+ const o = _t(t);
3184
3184
  U(
3185
3185
  () => o.bind({
3186
3186
  path: e,
@@ -3193,7 +3193,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3193
3193
  path: e,
3194
3194
  optional: t = !1
3195
3195
  }) => {
3196
- const { bind: n, get: o } = Ct(), [r, i] = pe(o(e, { optional: t }));
3196
+ const { bind: n, get: o } = _t(), [r, i] = pe(o(e, { optional: t }));
3197
3197
  if (U(() => (i(o(e, { optional: t })), n({
3198
3198
  path: e,
3199
3199
  onChange: (l) => i({ ...l, value: Fn(l.value) }),
@@ -3233,7 +3233,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3233
3233
  updateOnChildren: t = !1,
3234
3234
  ctx: n
3235
3235
  }) => {
3236
- const o = Ct(n), { bind: r, get: i } = o, [l, a] = pe(i(e).value);
3236
+ const o = _t(n), { bind: r, get: i } = o, [l, a] = pe(i(e).value);
3237
3237
  return U(() => (a(i(e).value), r({
3238
3238
  path: e,
3239
3239
  onChange: (c) => {
@@ -3270,7 +3270,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3270
3270
  },
3271
3271
  setCurrentStateAsInitialValues: () => {
3272
3272
  }
3273
- }), Ct = (e) => {
3273
+ }), _t = (e) => {
3274
3274
  const t = _n(mu);
3275
3275
  return e ?? t;
3276
3276
  }, Ml = (e) => ({
@@ -3482,7 +3482,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3482
3482
  }, i3 = ({
3483
3483
  children: e,
3484
3484
  ...t
3485
- }) => /* @__PURE__ */ s.jsx(mu, { value: t, children: e }), l3 = uo(bt), Ce = ({
3485
+ }) => /* @__PURE__ */ s.jsx(mu, { value: t, children: e }), l3 = uo(vt), Ce = ({
3486
3486
  path: e,
3487
3487
  children: t = l3,
3488
3488
  label: n,
@@ -3498,7 +3498,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3498
3498
  path: e,
3499
3499
  optional: l ?? i,
3500
3500
  onChange: a
3501
- }), f = Ct();
3501
+ }), f = _t();
3502
3502
  if (d == null) return null;
3503
3503
  if (e == null) throw new Error("No path provided to Form Field");
3504
3504
  if (n ?? (n = ao.capitalize(Fe.element(e, -1))), r = typeof r == "function" ? r(d, f) : r, !r) return null;
@@ -3540,9 +3540,9 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3540
3540
  }
3541
3541
  );
3542
3542
  return r.displayName = e.displayName, r;
3543
- }, yu = Ft(He), mn = yu({}), wu = Ft(bt), Mi = wu({}), ju = Ft(Jr), Ms = ju({}), a3 = Ft(St), c3 = Ft(Ln), u3 = Ft(_s), d3 = Ft(ft), Li = ({ key: e, open: t, onChange: n }) => {
3543
+ }, yu = Ft(He), mn = yu({}), wu = Ft(vt), Mi = wu({}), ju = Ft(Jr), Ms = ju({}), a3 = Ft(Ct), c3 = Ft(Ln), u3 = Ft(_s), d3 = Ft(ft), Li = ({ key: e, open: t, onChange: n }) => {
3544
3544
  const o = xc(e);
3545
- zt(async () => {
3545
+ bt(async () => {
3546
3546
  if (t == null) return;
3547
3547
  const r = await t();
3548
3548
  if (r == null) return;
@@ -3553,7 +3553,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3553
3553
  }, [t == null, o]);
3554
3554
  }, f3 = ({ fetchInitialValue: e, ...t }) => {
3555
3555
  const [n, o] = pe(void 0);
3556
- return zt(async () => {
3556
+ return bt(async () => {
3557
3557
  o(await e());
3558
3558
  }, [e]), Li({ ...t, onChange: o }), n;
3559
3559
  }, oS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3580,7 +3580,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3580
3580
  }, `Failed to apply changes for ${t}`);
3581
3581
  }
3582
3582
  });
3583
- zt(async () => {
3583
+ bt(async () => {
3584
3584
  if (c != null)
3585
3585
  try {
3586
3586
  const g = await n({ client: c });
@@ -3615,7 +3615,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3615
3615
  fieldBuilder: Ft,
3616
3616
  use: xu,
3617
3617
  useChildFieldValues: o3,
3618
- useContext: Ct,
3618
+ useContext: _t,
3619
3619
  useField: Vt,
3620
3620
  useFieldArray: s3,
3621
3621
  useFieldListener: n3,
@@ -3628,30 +3628,47 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3628
3628
  {
3629
3629
  key: "location",
3630
3630
  name: "Location",
3631
- render: ({ entry: e }) => /* @__PURE__ */ s.jsx(
3631
+ render: ({ entry: { location: e, rackName: t } }) => /* @__PURE__ */ s.jsx(
3632
3632
  _c,
3633
3633
  {
3634
3634
  level: "small",
3635
3635
  shade: 7,
3636
3636
  weight: 500,
3637
3637
  style: { marginTop: "0.25rem" },
3638
- children: e.location
3638
+ children: t ? `${t}.${e}` : e
3639
3639
  }
3640
3640
  )
3641
3641
  }
3642
3642
  ], g3 = ({
3643
3643
  searchOptions: e,
3644
- ...t
3644
+ filter: t,
3645
+ ...n
3645
3646
  }) => {
3646
- const n = Qe();
3647
- let o = n == null ? void 0 : n.hardware.devices;
3648
- return e != null && n != null && (o = n.hardware.devices.newSearcherWithOptions(e)), /* @__PURE__ */ s.jsx(
3649
- St,
3647
+ const o = Qe();
3648
+ let r = o == null ? void 0 : o.hardware.devices;
3649
+ e != null && o != null && (r = o.hardware.devices.newSearcherWithOptions(e));
3650
+ const [i, l] = pe(/* @__PURE__ */ new Map()), a = R(
3651
+ (c) => ((t == null ? void 0 : t(c)) ?? c).map((d) => ({
3652
+ ...d,
3653
+ rackName: i.get(d.rack)
3654
+ })),
3655
+ [t, i]
3656
+ );
3657
+ return bt(async () => {
3658
+ if (o == null) {
3659
+ l(/* @__PURE__ */ new Map());
3660
+ return;
3661
+ }
3662
+ const c = await o.hardware.racks.retrieve([]);
3663
+ l(new Map(c.map(({ key: u, name: d }) => [u, d])));
3664
+ }, [o == null ? void 0 : o.key]), /* @__PURE__ */ s.jsx(
3665
+ Ct,
3650
3666
  {
3651
3667
  columns: p3,
3652
- searcher: o,
3668
+ searcher: r,
3653
3669
  entryRenderKey: "name",
3654
- ...t
3670
+ filter: a,
3671
+ ...n
3655
3672
  }
3656
3673
  );
3657
3674
  }, rS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3663,7 +3680,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3663
3680
  ], x3 = (e) => {
3664
3681
  const t = Qe();
3665
3682
  return /* @__PURE__ */ s.jsx(
3666
- St,
3683
+ Ct,
3667
3684
  {
3668
3685
  columns: m3,
3669
3686
  searcher: t == null ? void 0 : t.hardware.racks,
@@ -3722,7 +3739,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3722
3739
  },
3723
3740
  [e, n]
3724
3741
  )
3725
- }), u = vt(), d = R(
3742
+ }), u = St(), d = R(
3726
3743
  ({ dropped: h }) => {
3727
3744
  e(
3728
3745
  Be(n).filter((p) => !h.some((g) => g.key === p)),
@@ -3772,7 +3789,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3772
3789
  },
3773
3790
  [i, t]
3774
3791
  )
3775
- }), a = vt(), c = R(
3792
+ }), a = St(), c = R(
3776
3793
  () => e != null && l.startDrag([{ type: xn, key: e }]),
3777
3794
  [l.startDrag, e]
3778
3795
  );
@@ -3792,7 +3809,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3792
3809
  }) => {
3793
3810
  const { dragging: i, ...l } = bu({ value: t, onChange: e });
3794
3811
  return /* @__PURE__ */ s.jsx(
3795
- St,
3812
+ Ct,
3796
3813
  {
3797
3814
  data: o,
3798
3815
  className: m(n, m.dropRegion(qo(i, gn(t)))),
@@ -3812,7 +3829,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3812
3829
  }) => {
3813
3830
  const { dragging: r, ...i } = bu({ value: t, onChange: n });
3814
3831
  return /* @__PURE__ */ s.jsx(
3815
- St,
3832
+ Ct,
3816
3833
  {
3817
3834
  data: e,
3818
3835
  value: t,
@@ -3886,7 +3903,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3886
3903
  Modal: S3
3887
3904
  }, Symbol.toStringTag, { value: "Module" })), Ls = new Error("Tab not found"), C3 = new Error("Invalid Mosaic"), Jo = (e, t, n = "center", o) => {
3888
3905
  var f;
3889
- if (e = _t(e), o === void 0) return Mr(e, t);
3906
+ if (e = Et(e), o === void 0) return Mr(e, t);
3890
3907
  const r = Lr(e, o);
3891
3908
  if (n === "center")
3892
3909
  return (f = r.tabs) == null || f.push(t), r.selected = t.tabKey, e;
@@ -3900,12 +3917,12 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3900
3917
  return r.first.key = i, r.last.key = l, r.tabs = void 0, r.size = void 0, r.selected = void 0, e;
3901
3918
  }, _3 = (e, t, n) => {
3902
3919
  var i;
3903
- e = _t(e);
3920
+ e = Et(e);
3904
3921
  const [o, r] = en(e, t);
3905
3922
  if (o == null || r == null) throw Ls;
3906
3923
  return r.tabs = (i = r.tabs) == null ? void 0 : i.map((l) => l.tabKey === t ? n(l) : l), e;
3907
- }, Mr = (e, t) => (e = _t(e), e.tabs != null ? (e.tabs.push(t), e.selected = t.tabKey, e) : (e.first != null ? e.first = Mr(e.first, t) : e.last != null && (e.last = Mr(e.last, t)), e)), Qo = (e) => {
3908
- e = _t(e);
3924
+ }, Mr = (e, t) => (e = Et(e), e.tabs != null ? (e.tabs.push(t), e.selected = t.tabKey, e) : (e.first != null ? e.first = Mr(e.first, t) : e.last != null && (e.last = Mr(e.last, t)), e)), Qo = (e) => {
3925
+ e = Et(e);
3909
3926
  const t = [];
3910
3927
  if (e.tabs != null && (e.selected = Qr(e.selected, e.tabs), e.selected != null && t.push(e.selected)), e.first != null) {
3911
3928
  const [n, o] = Qo(e.first);
@@ -3918,19 +3935,19 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3918
3935
  return [e, t];
3919
3936
  }, Ni = (e, t) => {
3920
3937
  var r;
3921
- e = _t(e);
3938
+ e = Et(e);
3922
3939
  const [, n] = en(e, t);
3923
3940
  if (n == null) return [e, null];
3924
3941
  n.tabs = (r = n.tabs) == null ? void 0 : r.filter((i) => i.tabKey !== t), n.selected = Qr(n.selected, n.tabs), e = L3(e);
3925
3942
  const o = n.selected ?? es(e);
3926
3943
  return [e, o];
3927
3944
  }, es = (e) => e.selected != null ? e.selected : e.first != null ? es(e.first) : e.last != null ? es(e.last) : null, Su = (e, t) => {
3928
- e = _t(e);
3945
+ e = Et(e);
3929
3946
  const [n, o] = en(e, t);
3930
3947
  if (n == null || o == null) throw Ls;
3931
3948
  return o.selected = t, e;
3932
3949
  }, Cu = (e, t, n, o) => {
3933
- e = _t(e);
3950
+ e = Et(e);
3934
3951
  const [r, i] = en(e, t);
3935
3952
  if (r == null || i == null) throw Ls;
3936
3953
  const [l, a] = Ni(e, t);
@@ -3951,7 +3968,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3951
3968
  if (o == null) throw new Error("Node not found");
3952
3969
  return o.size = n, e;
3953
3970
  }, E3 = (e, t, n) => {
3954
- e = _t(e);
3971
+ e = Et(e);
3955
3972
  const o = Un(e, t);
3956
3973
  if (o == null) throw new Error("Tab not found");
3957
3974
  if (o.tabs == null || o.tabs.length === 0) throw new Error("Node has no tabs");
@@ -3976,7 +3993,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3976
3993
  const n = Un(e, t);
3977
3994
  return n == null ? !1 : n.tabs != null && n.tabs.length > 1;
3978
3995
  }, Eu = (e, t, n) => {
3979
- e = _t(e);
3996
+ e = Et(e);
3980
3997
  const [, o] = en(e, t);
3981
3998
  if ((o == null ? void 0 : o.tabs) == null) throw Ls;
3982
3999
  return o.tabs = Zm(t, n, (o == null ? void 0 : o.tabs) ?? []), e;
@@ -4023,7 +4040,7 @@ const Xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4023
4040
  case "center":
4024
4041
  throw new Error("cannot split a center placed tab");
4025
4042
  }
4026
- }, _t = (e) => Fe.copy(e), ns = (e, t, n = []) => (n.push(t(e)), e.first != null && ns(e.first, t, n), e.last != null && ns(e.last, t, n), n), Nr = (e, t) => {
4043
+ }, Et = (e) => Fe.copy(e), ns = (e, t, n = []) => (n.push(t(e)), e.first != null && ns(e.first, t, n), e.last != null && ns(e.last, t, n), n), Nr = (e, t) => {
4027
4044
  t(e), e.first != null && Nr(e.first, t), e.last != null && Nr(e.last, t);
4028
4045
  };
4029
4046
  class ku {
@@ -4141,7 +4158,7 @@ const ss = "pluto-mosaic-tab-drop", Ti = "pluto-mosaic-tab-create", T3 = (e, t,
4141
4158
  canDrop: h,
4142
4159
  onDrop: p,
4143
4160
  onDragOver: g
4144
- }), b = h(vt()), C = R(() => d(null), []), y = R(
4161
+ }), b = h(St()), C = R(() => d(null), []), y = R(
4145
4162
  (L, { tabKey: N }) => {
4146
4163
  x([
4147
4164
  { key: N, type: ss, elementID: L.currentTarget.id }
@@ -4631,7 +4648,7 @@ const Y3 = ({ children: e, ...t }) => {
4631
4648
  i((c) => ({ ...c, ...n }));
4632
4649
  }, [n, i]);
4633
4650
  let l;
4634
- return ((a = r.data) == null ? void 0 : a.color) != null ? l = Bt.z.parse(r.data.color) : o != null && !o.isZero ? l = o : l = "var(--pluto-gray-l8)", /* @__PURE__ */ s.jsxs(Ua, { location: { x: "center", y: "bottom" }, children: [
4651
+ return ((a = r.data) == null ? void 0 : a.color) != null ? l = zt.z.parse(r.data.color) : o != null && !o.isZero ? l = o : l = "var(--pluto-gray-l8)", /* @__PURE__ */ s.jsxs(Ua, { location: { x: "center", y: "bottom" }, children: [
4635
4652
  /* @__PURE__ */ s.jsx(Ie, { level: "p", children: r.message }),
4636
4653
  /* @__PURE__ */ s.jsx(
4637
4654
  "div",
@@ -4733,7 +4750,7 @@ const Y3 = ({ children: e, ...t }) => {
4733
4750
  },
4734
4751
  [e, n]
4735
4752
  )
4736
- }), u = vt(), d = R(
4753
+ }), u = St(), d = R(
4737
4754
  ({ dropped: h }) => {
4738
4755
  e(
4739
4756
  Be(n).filter((p) => !h.some((g) => g.key === p)),
@@ -4786,7 +4803,7 @@ const Y3 = ({ children: e, ...t }) => {
4786
4803
  },
4787
4804
  [i, t]
4788
4805
  )
4789
- }), c = vt(), u = R(
4806
+ }), c = St(), u = R(
4790
4807
  () => e != null && l([{ type: qn, key: e }]),
4791
4808
  [l, e]
4792
4809
  );
@@ -4806,7 +4823,7 @@ const Y3 = ({ children: e, ...t }) => {
4806
4823
  }) => {
4807
4824
  const { dragging: i, ...l } = Ou({ value: t, onChange: e });
4808
4825
  return /* @__PURE__ */ s.jsx(
4809
- St,
4826
+ Ct,
4810
4827
  {
4811
4828
  data: o,
4812
4829
  className: m(n, m.dropRegion(rs(i, gn(t)))),
@@ -4826,7 +4843,7 @@ const Y3 = ({ children: e, ...t }) => {
4826
4843
  }) => {
4827
4844
  const { dragging: r, ...i } = Ou({ value: t, onChange: n });
4828
4845
  return /* @__PURE__ */ s.jsx(
4829
- St,
4846
+ Ct,
4830
4847
  {
4831
4848
  data: e,
4832
4849
  value: t,
@@ -5350,7 +5367,7 @@ const Y3 = ({ children: e, ...t }) => {
5350
5367
  });
5351
5368
  return /* @__PURE__ */ s.jsx(ln, { ...n });
5352
5369
  }, w5 = () => {
5353
- const { set: e, get: t } = Ct(), n = pu("redline.bounds"), o = xt.Scale.scale(0, 1).scale(n);
5370
+ const { set: e, get: t } = _t(), n = pu("redline.bounds"), o = xt.Scale.scale(0, 1).scale(n);
5354
5371
  return /* @__PURE__ */ s.jsxs(re, { direction: "x", grow: !0, children: [
5355
5372
  /* @__PURE__ */ s.jsx(
5356
5373
  mn,
@@ -5378,12 +5395,12 @@ const Y3 = ({ children: e, ...t }) => {
5378
5395
  h && (l[l.length - 1].position = 1, c.upper = d), p && (l[0].position = 0, c.lower = f);
5379
5396
  const g = l.map((x) => ({
5380
5397
  ...x,
5381
- color: new Bt(x.color).hex
5398
+ color: new zt(x.color).hex
5382
5399
  }));
5383
5400
  h || p ? e("redline", {
5384
5401
  bounds: c,
5385
5402
  gradient: g
5386
- }) : i(l.map((x) => ({ ...x, color: new Bt(x.color).hex })));
5403
+ }) : i(l.map((x) => ({ ...x, color: new zt(x.color).hex })));
5387
5404
  }
5388
5405
  }
5389
5406
  )
@@ -5531,7 +5548,7 @@ const Y3 = ({ children: e, ...t }) => {
5531
5548
  } catch {
5532
5549
  return [];
5533
5550
  }
5534
- }, We = 10, $l = (e) => e === "top" || e === "left" ? -1 : 1, tn = (e, t) => e === "top" || e === "left" ? -t : t, qt = (e, t) => e === "x" ? t > 0 ? "right" : "left" : t > 0 ? "bottom" : "top", Nt = (e) => qt(e.direction, e.length), k5 = ({
5551
+ }, We = 10, $l = (e) => e === "top" || e === "left" ? -1 : 1, tn = (e, t) => e === "top" || e === "left" ? -t : t, qt = (e, t) => e === "x" ? t > 0 ? "right" : "left" : t > 0 ? "bottom" : "top", Tt = (e) => qt(e.direction, e.length), k5 = ({
5535
5552
  sourcePos: e,
5536
5553
  targetPos: t,
5537
5554
  sourceOrientation: n
@@ -5575,7 +5592,7 @@ const Y3 = ({ children: e, ...t }) => {
5575
5592
  const i = t[r - 1];
5576
5593
  if (r === 0 || o.direction !== i.direction) return !1;
5577
5594
  if (r === 1) {
5578
- const l = r - 1, a = r, c = Nt(i), u = Nt(o);
5595
+ const l = r - 1, a = r, c = Tt(i), u = Tt(o);
5579
5596
  if (c === u)
5580
5597
  return t[r - 1] = {
5581
5598
  direction: t[r - 1].direction,
@@ -5586,7 +5603,7 @@ const Y3 = ({ children: e, ...t }) => {
5586
5603
  return Math.abs(h) < We ? !1 : (t[l] = { ...t[l], length: d }, t[a] = { ...t[a], length: h }, !0);
5587
5604
  }
5588
5605
  if (r === e.length - 1) {
5589
- const l = r, a = r - 1, c = Nt(o), u = Nt(i);
5606
+ const l = r, a = r - 1, c = Tt(o), u = Tt(i);
5590
5607
  if (c === u)
5591
5608
  return t[r - 1] = {
5592
5609
  direction: t[r - 1].direction,
@@ -5622,7 +5639,7 @@ const Y3 = ({ children: e, ...t }) => {
5622
5639
  targetOrientation: r,
5623
5640
  targetBox: t
5624
5641
  });
5625
- x != null && (g.push(x), u = Xt(u, x), l = Nt(x), c = x);
5642
+ x != null && (g.push(x), u = Xt(u, x), l = Tt(x), c = x);
5626
5643
  const j = Il({
5627
5644
  sourceStumpTip: f,
5628
5645
  sourceOrientation: a,
@@ -5668,7 +5685,7 @@ const Y3 = ({ children: e, ...t }) => {
5668
5685
  index: t,
5669
5686
  magnitude: n
5670
5687
  }) => {
5671
- const o = [...e], r = o[t], i = _e.swap(r.direction), l = Nt(r);
5688
+ const o = [...e], r = o[t], i = _e.swap(r.direction), l = Tt(r);
5672
5689
  if (t === 0) {
5673
5690
  o.unshift({ direction: i, length: n });
5674
5691
  const a = tn(l, We);
@@ -5699,7 +5716,7 @@ const Y3 = ({ children: e, ...t }) => {
5699
5716
  return e.x !== 0 && (o = Ol("x", e, o, n)), e.y !== 0 && (o = Ol("y", e, o, n)), o;
5700
5717
  }, zl = (e, t, n) => {
5701
5718
  if (t.direction !== e) return !1;
5702
- const o = { ...t, length: t.length - n[e] }, r = Nt(t), i = Nt(o), l = Math.abs(o.length), a = Math.abs(t.length);
5719
+ const o = { ...t, length: t.length - n[e] }, r = Tt(t), i = Tt(o), l = Math.abs(o.length), a = Math.abs(t.length);
5703
5720
  return (l > a || l > We) && r === i;
5704
5721
  }, Ol = (e, t, n, o) => {
5705
5722
  const r = _e.swap(e), i = o ? n.length - 1 : 0, l = n[i];
@@ -7586,10 +7603,10 @@ const vd = {
7586
7603
  toPosition: null,
7587
7604
  toNode: null
7588
7605
  };
7589
- var Pt;
7606
+ var Nt;
7590
7607
  (function(e) {
7591
7608
  e.Bezier = "default", e.Straight = "straight", e.Step = "step", e.SmoothStep = "smoothstep", e.SimpleBezier = "simplebezier";
7592
- })(Pt || (Pt = {}));
7609
+ })(Nt || (Nt = {}));
7593
7610
  var us;
7594
7611
  (function(e) {
7595
7612
  e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
@@ -7608,7 +7625,7 @@ function Sd(e) {
7608
7625
  return e === null ? null : e ? "valid" : "invalid";
7609
7626
  }
7610
7627
  const Cd = (e) => "id" in e && "source" in e && "target" in e, G6 = (e) => "id" in e && "position" in e && !("source" in e) && !("target" in e), Zi = (e) => "id" in e && "internals" in e && !("source" in e) && !("target" in e), xo = (e, t = [0, 0]) => {
7611
- const { width: n, height: o } = Et(e), r = e.origin ?? t, i = n * r[0], l = o * r[1];
7628
+ const { width: n, height: o } = kt(e), r = e.origin ?? t, i = n * r[0], l = o * r[1];
7612
7629
  return {
7613
7630
  x: e.position.x - i,
7614
7631
  y: e.position.y - l
@@ -7719,7 +7736,7 @@ const bn = (e, t = 0, n = 1) => Math.min(Math.max(e, t), n), sn = (e = { x: 0, y
7719
7736
  y: bn(e.y, t[0][1], t[1][1] - ((n == null ? void 0 : n.height) ?? 0))
7720
7737
  });
7721
7738
  function kd(e, t, n) {
7722
- const { width: o, height: r } = Et(n), { x: i, y: l } = n.internals.positionAbsolute;
7739
+ const { width: o, height: r } = kt(n), { x: i, y: l } = n.internals.positionAbsolute;
7723
7740
  return sn(e, [
7724
7741
  [i, l],
7725
7742
  [i + o, l + r]
@@ -7788,7 +7805,7 @@ const Wl = (e, t, n) => e < t ? bn(Math.abs(e - t), 1, t) / t : e > n ? -bn(Math
7788
7805
  function Sn(e) {
7789
7806
  return e !== void 0 && e !== "parent";
7790
7807
  }
7791
- function Et(e) {
7808
+ function kt(e) {
7792
7809
  var t, n;
7793
7810
  return {
7794
7811
  width: ((t = e.measured) == null ? void 0 : t.width) ?? e.width ?? e.initialWidth ?? 0,
@@ -8083,7 +8100,7 @@ function ta(e) {
8083
8100
  };
8084
8101
  }
8085
8102
  function no(e, t, n = K.Left, o = !1) {
8086
- const r = ((t == null ? void 0 : t.x) ?? 0) + e.internals.positionAbsolute.x, i = ((t == null ? void 0 : t.y) ?? 0) + e.internals.positionAbsolute.y, { width: l, height: a } = t ?? Et(e);
8103
+ const r = ((t == null ? void 0 : t.x) ?? 0) + e.internals.positionAbsolute.x, i = ((t == null ? void 0 : t.y) ?? 0) + e.internals.positionAbsolute.y, { width: l, height: a } = t ?? kt(e);
8087
8104
  if (o)
8088
8105
  return { x: r + l / 2, y: i + a / 2 };
8089
8106
  switch ((t == null ? void 0 : t.position) ?? n) {
@@ -8133,7 +8150,7 @@ function l9(e, t, n) {
8133
8150
  if (r.parentId)
8134
8151
  Xi(r, e, t, o);
8135
8152
  else {
8136
- const i = xo(r, o.nodeOrigin), l = Sn(r.extent) ? r.extent : o.nodeExtent, a = sn(i, l, Et(r));
8153
+ const i = xo(r, o.nodeOrigin), l = Sn(r.extent) ? r.extent : o.nodeExtent, a = sn(i, l, kt(r));
8137
8154
  r.internals.positionAbsolute = a;
8138
8155
  }
8139
8156
  }
@@ -8146,7 +8163,7 @@ function Gr(e, t, n, o) {
8146
8163
  if (r.checkEquality && u === (d == null ? void 0 : d.internals.userNode))
8147
8164
  t.set(u.id, d);
8148
8165
  else {
8149
- const f = xo(u, r.nodeOrigin), h = Sn(u.extent) ? u.extent : r.nodeExtent, p = sn(f, h, Et(u));
8166
+ const f = xo(u, r.nodeOrigin), h = Sn(u.extent) ? u.extent : r.nodeExtent, p = sn(f, h, kt(u));
8150
8167
  d = {
8151
8168
  ...r.defaults,
8152
8169
  ...u,
@@ -8193,7 +8210,7 @@ function Vd(e, t) {
8193
8210
  return (nt(e.zIndex) ? e.zIndex : 0) + (e.selected ? t : 0);
8194
8211
  }
8195
8212
  function c9(e, t, n, o, r) {
8196
- const { x: i, y: l } = t.internals.positionAbsolute, a = Et(e), c = xo(e, n), u = Sn(e.extent) ? sn(c, e.extent, a) : c;
8213
+ const { x: i, y: l } = t.internals.positionAbsolute, a = kt(e), c = xo(e, n), u = Sn(e.extent) ? sn(c, e.extent, a) : c;
8197
8214
  let d = sn({ x: i + u.x, y: l + u.y }, o, a);
8198
8215
  e.extent === "parent" && (d = kd(d, a, t));
8199
8216
  const f = Vd(e, r), h = t.internals.z ?? 0;
@@ -8215,7 +8232,7 @@ function Ki(e, t, n, o = [0, 0]) {
8215
8232
  }
8216
8233
  return i.size > 0 && i.forEach(({ expandedRect: a, parent: c }, u) => {
8217
8234
  var y;
8218
- const d = c.internals.positionAbsolute, f = Et(c), h = c.origin ?? o, p = a.x < d.x ? Math.round(Math.abs(d.x - a.x)) : 0, g = a.y < d.y ? Math.round(Math.abs(d.y - a.y)) : 0, x = Math.max(f.width, Math.round(a.width)), j = Math.max(f.height, Math.round(a.height)), b = (x - f.width) * h[0], C = (j - f.height) * h[1];
8235
+ const d = c.internals.positionAbsolute, f = kt(c), h = c.origin ?? o, p = a.x < d.x ? Math.round(Math.abs(d.x - a.x)) : 0, g = a.y < d.y ? Math.round(Math.abs(d.y - a.y)) : 0, x = Math.max(f.width, Math.round(a.width)), j = Math.max(f.height, Math.round(a.height)), b = (x - f.width) * h[0], C = (j - f.height) * h[1];
8219
8236
  (p > 0 || g > 0 || b || C) && (r.push({
8220
8237
  id: u,
8221
8238
  type: "position",
@@ -8955,10 +8972,10 @@ function L9(e) {
8955
8972
  affectsY: r
8956
8973
  };
8957
8974
  }
8958
- function Mt(e, t) {
8975
+ function Lt(e, t) {
8959
8976
  return Math.max(0, t - e);
8960
8977
  }
8961
- function Lt(e, t) {
8978
+ function Pt(e, t) {
8962
8979
  return Math.max(0, e - t);
8963
8980
  }
8964
8981
  function Lo(e, t, n) {
@@ -8975,33 +8992,33 @@ function P9(e, t, n, o, r, i, l, a) {
8975
8992
  let w = Lo(z, x, j), E = Lo(V, b, C);
8976
8993
  if (l) {
8977
8994
  let A = 0, T = 0;
8978
- c && $ < 0 ? A = Mt(y + $ + O, l[0][0]) : !c && $ > 0 && (A = Lt(y + z + O, l[1][0])), u && B < 0 ? T = Mt(v + B + k, l[0][1]) : !u && B > 0 && (T = Lt(v + V + k, l[1][1])), w = Math.max(w, A), E = Math.max(E, T);
8995
+ c && $ < 0 ? A = Lt(y + $ + O, l[0][0]) : !c && $ > 0 && (A = Pt(y + z + O, l[1][0])), u && B < 0 ? T = Lt(v + B + k, l[0][1]) : !u && B > 0 && (T = Pt(v + V + k, l[1][1])), w = Math.max(w, A), E = Math.max(E, T);
8979
8996
  }
8980
8997
  if (a) {
8981
8998
  let A = 0, T = 0;
8982
- c && $ > 0 ? A = Lt(y + $, a[0][0]) : !c && $ < 0 && (A = Mt(y + z, a[1][0])), u && B > 0 ? T = Lt(v + B, a[0][1]) : !u && B < 0 && (T = Mt(v + V, a[1][1])), w = Math.max(w, A), E = Math.max(E, T);
8999
+ c && $ > 0 ? A = Pt(y + $, a[0][0]) : !c && $ < 0 && (A = Lt(y + z, a[1][0])), u && B > 0 ? T = Pt(v + B, a[0][1]) : !u && B < 0 && (T = Lt(v + V, a[1][1])), w = Math.max(w, A), E = Math.max(E, T);
8983
9000
  }
8984
9001
  if (r) {
8985
9002
  if (d) {
8986
9003
  const A = Lo(z / M, b, C) * M;
8987
9004
  if (w = Math.max(w, A), l) {
8988
9005
  let T = 0;
8989
- !c && !u || c && !u && h ? T = Lt(v + k + z / M, l[1][1]) * M : T = Mt(v + k + (c ? $ : -$) / M, l[0][1]) * M, w = Math.max(w, T);
9006
+ !c && !u || c && !u && h ? T = Pt(v + k + z / M, l[1][1]) * M : T = Lt(v + k + (c ? $ : -$) / M, l[0][1]) * M, w = Math.max(w, T);
8990
9007
  }
8991
9008
  if (a) {
8992
9009
  let T = 0;
8993
- !c && !u || c && !u && h ? T = Mt(v + z / M, a[1][1]) * M : T = Lt(v + (c ? $ : -$) / M, a[0][1]) * M, w = Math.max(w, T);
9010
+ !c && !u || c && !u && h ? T = Lt(v + z / M, a[1][1]) * M : T = Pt(v + (c ? $ : -$) / M, a[0][1]) * M, w = Math.max(w, T);
8994
9011
  }
8995
9012
  }
8996
9013
  if (f) {
8997
9014
  const A = Lo(V * M, x, j) / M;
8998
9015
  if (E = Math.max(E, A), l) {
8999
9016
  let T = 0;
9000
- !c && !u || u && !c && h ? T = Lt(y + V * M + O, l[1][0]) / M : T = Mt(y + (u ? B : -B) * M + O, l[0][0]) / M, E = Math.max(E, T);
9017
+ !c && !u || u && !c && h ? T = Pt(y + V * M + O, l[1][0]) / M : T = Lt(y + (u ? B : -B) * M + O, l[0][0]) / M, E = Math.max(E, T);
9001
9018
  }
9002
9019
  if (a) {
9003
9020
  let T = 0;
9004
- !c && !u || u && !c && h ? T = Mt(y + V * M, a[1][0]) / M : T = Lt(y + (u ? B : -B) * M, a[0][0]) / M, E = Math.max(E, T);
9021
+ !c && !u || u && !c && h ? T = Lt(y + V * M, a[1][0]) / M : T = Pt(y + (u ? B : -B) * M, a[0][0]) / M, E = Math.max(E, T);
9005
9022
  }
9006
9023
  }
9007
9024
  }
@@ -10537,7 +10554,7 @@ function K7({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
10537
10554
  }), S = uf();
10538
10555
  if (y.hidden)
10539
10556
  return null;
10540
- const P = Et(y), A = D7(y), T = B || $ || t || n || o || r, D = n ? (J) => n(J, { ...v.userNode }) : void 0, F = o ? (J) => o(J, { ...v.userNode }) : void 0, Z = r ? (J) => r(J, { ...v.userNode }) : void 0, ee = i ? (J) => i(J, { ...v.userNode }) : void 0, te = l ? (J) => l(J, { ...v.userNode }) : void 0, oe = (J) => {
10557
+ const P = kt(y), A = D7(y), T = B || $ || t || n || o || r, D = n ? (J) => n(J, { ...v.userNode }) : void 0, F = o ? (J) => o(J, { ...v.userNode }) : void 0, Z = r ? (J) => r(J, { ...v.userNode }) : void 0, ee = i ? (J) => i(J, { ...v.userNode }) : void 0, te = l ? (J) => l(J, { ...v.userNode }) : void 0, oe = (J) => {
10541
10558
  const { selectNodesOnDrag: le, nodeDragThreshold: me } = O.getState();
10542
10559
  B && (!le || !$ || me > 0) && Xr({
10543
10560
  id: e,
@@ -10978,7 +10995,7 @@ function C8({ containerStyle: e, style: t, type: n, component: o }) {
10978
10995
  const { nodesConnectable: r, width: i, height: l, isValid: a, inProgress: c } = ve(S8, ze);
10979
10996
  return !(i && r && c) ? null : s.jsx("svg", { style: e, width: i, height: l, className: "react-flow__connectionline react-flow__container", children: s.jsx("g", { className: Oe(["react-flow__connection", Sd(a)]), children: s.jsx(Lf, { style: t, type: n, CustomComponent: o, isValid: a }) }) });
10980
10997
  }
10981
- const Lf = ({ style: e, type: t = Pt.Bezier, CustomComponent: n, isValid: o }) => {
10998
+ const Lf = ({ style: e, type: t = Nt.Bezier, CustomComponent: n, isValid: o }) => {
10982
10999
  const { inProgress: r, from: i, fromNode: l, fromHandle: a, fromPosition: c, to: u, toNode: d, toHandle: f, toPosition: h } = v8();
10983
11000
  if (!r)
10984
11001
  return;
@@ -10994,19 +11011,19 @@ const Lf = ({ style: e, type: t = Pt.Bezier, CustomComponent: n, isValid: o }) =
10994
11011
  targetPosition: h
10995
11012
  };
10996
11013
  switch (t) {
10997
- case Pt.Bezier:
11014
+ case Nt.Bezier:
10998
11015
  [p] = Bd(g);
10999
11016
  break;
11000
- case Pt.SimpleBezier:
11017
+ case Nt.SimpleBezier:
11001
11018
  [p] = mf(g);
11002
11019
  break;
11003
- case Pt.Step:
11020
+ case Nt.Step:
11004
11021
  [p] = Zr({
11005
11022
  ...g,
11006
11023
  borderRadius: 0
11007
11024
  });
11008
11025
  break;
11009
- case Pt.SmoothStep:
11026
+ case Nt.SmoothStep:
11010
11027
  [p] = Zr(g);
11011
11028
  break;
11012
11029
  default:
@@ -11333,7 +11350,7 @@ const P8 = {
11333
11350
  position: "relative",
11334
11351
  zIndex: 0
11335
11352
  };
11336
- function N8({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: l, onNodeClick: a, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: x, onClickConnectStart: j, onClickConnectEnd: b, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: L, onNodeDoubleClick: N, onNodeDragStart: M, onNodeDrag: $, onNodeDragStop: B, onNodesDelete: z, onEdgesDelete: V, onDelete: O, onSelectionChange: k, onSelectionDragStart: w, onSelectionDrag: E, onSelectionDragStop: S, onSelectionContextMenu: P, onSelectionStart: A, onSelectionEnd: T, onBeforeDelete: D, connectionMode: F, connectionLineType: Z = Pt.Bezier, connectionLineStyle: ee, connectionLineComponent: te, connectionLineContainerStyle: oe, deleteKeyCode: se = "Backspace", selectionKeyCode: J = "Shift", selectionOnDrag: le = !1, selectionMode: me = jn.Full, panActivationKeyCode: Pe = "Space", multiSelectionKeyCode: fe = hs() ? "Meta" : "Control", zoomActivationKeyCode: Y = hs() ? "Meta" : "Control", snapToGrid: ie, snapGrid: he, onlyRenderVisibleElements: Ne = !1, selectNodesOnDrag: De, nodesDraggable: Xs, nodesConnectable: Ks, nodesFocusable: Us, nodeOrigin: Tn = nf, edgesFocusable: qs, edgesReconnectable: An, elementsSelectable: In = !0, defaultViewport: Js = l7, minZoom: $n = 0.5, maxZoom: Bn = 2, translateExtent: bo = eo, preventScrolling: c1 = !0, nodeExtent: Qs, defaultMarkerColor: u1 = "#b1b1b7", zoomOnScroll: d1 = !0, zoomOnPinch: f1 = !0, panOnScroll: h1 = !1, panOnScrollSpeed: p1 = 0.5, panOnScrollMode: g1 = Jt.Free, zoomOnDoubleClick: m1 = !0, panOnDrag: x1 = !0, onPaneClick: y1, onPaneMouseEnter: w1, onPaneMouseMove: j1, onPaneMouseLeave: b1, onPaneScroll: v1, onPaneContextMenu: S1, paneClickDistance: ol = 0, nodeClickDistance: C1 = 0, children: _1, onReconnect: E1, onReconnectStart: k1, onReconnectEnd: M1, onEdgeContextMenu: L1, onEdgeDoubleClick: P1, onEdgeMouseEnter: N1, onEdgeMouseMove: T1, onEdgeMouseLeave: A1, reconnectRadius: I1 = 10, onNodesChange: $1, onEdgesChange: B1, noDragClassName: z1 = "nodrag", noWheelClassName: O1 = "nowheel", noPanClassName: sl = "nopan", fitView: rl, fitViewOptions: D1, connectOnClick: R1, attributionPosition: V1, proOptions: F1, defaultEdgeOptions: H1, elevateNodesOnSelect: Z1, elevateEdgesOnSelect: Y1, disableKeyboardA11y: il = !1, autoPanOnConnect: G1, autoPanOnNodeDrag: W1, autoPanSpeed: X1, connectionRadius: K1, isValidConnection: U1, onError: q1, style: J1, id: ll, nodeDragThreshold: Q1, viewport: em, onViewportChange: tm, width: nm, height: om, colorMode: sm = "light", debug: rm, onScroll: vo, ...im }, lm) {
11353
+ function N8({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: l, onNodeClick: a, onEdgeClick: c, onInit: u, onMove: d, onMoveStart: f, onMoveEnd: h, onConnect: p, onConnectStart: g, onConnectEnd: x, onClickConnectStart: j, onClickConnectEnd: b, onNodeMouseEnter: C, onNodeMouseMove: y, onNodeMouseLeave: v, onNodeContextMenu: L, onNodeDoubleClick: N, onNodeDragStart: M, onNodeDrag: $, onNodeDragStop: B, onNodesDelete: z, onEdgesDelete: V, onDelete: O, onSelectionChange: k, onSelectionDragStart: w, onSelectionDrag: E, onSelectionDragStop: S, onSelectionContextMenu: P, onSelectionStart: A, onSelectionEnd: T, onBeforeDelete: D, connectionMode: F, connectionLineType: Z = Nt.Bezier, connectionLineStyle: ee, connectionLineComponent: te, connectionLineContainerStyle: oe, deleteKeyCode: se = "Backspace", selectionKeyCode: J = "Shift", selectionOnDrag: le = !1, selectionMode: me = jn.Full, panActivationKeyCode: Pe = "Space", multiSelectionKeyCode: fe = hs() ? "Meta" : "Control", zoomActivationKeyCode: Y = hs() ? "Meta" : "Control", snapToGrid: ie, snapGrid: he, onlyRenderVisibleElements: Ne = !1, selectNodesOnDrag: De, nodesDraggable: Xs, nodesConnectable: Ks, nodesFocusable: Us, nodeOrigin: Tn = nf, edgesFocusable: qs, edgesReconnectable: An, elementsSelectable: In = !0, defaultViewport: Js = l7, minZoom: $n = 0.5, maxZoom: Bn = 2, translateExtent: bo = eo, preventScrolling: c1 = !0, nodeExtent: Qs, defaultMarkerColor: u1 = "#b1b1b7", zoomOnScroll: d1 = !0, zoomOnPinch: f1 = !0, panOnScroll: h1 = !1, panOnScrollSpeed: p1 = 0.5, panOnScrollMode: g1 = Jt.Free, zoomOnDoubleClick: m1 = !0, panOnDrag: x1 = !0, onPaneClick: y1, onPaneMouseEnter: w1, onPaneMouseMove: j1, onPaneMouseLeave: b1, onPaneScroll: v1, onPaneContextMenu: S1, paneClickDistance: ol = 0, nodeClickDistance: C1 = 0, children: _1, onReconnect: E1, onReconnectStart: k1, onReconnectEnd: M1, onEdgeContextMenu: L1, onEdgeDoubleClick: P1, onEdgeMouseEnter: N1, onEdgeMouseMove: T1, onEdgeMouseLeave: A1, reconnectRadius: I1 = 10, onNodesChange: $1, onEdgesChange: B1, noDragClassName: z1 = "nodrag", noWheelClassName: O1 = "nowheel", noPanClassName: sl = "nopan", fitView: rl, fitViewOptions: D1, connectOnClick: R1, attributionPosition: V1, proOptions: F1, defaultEdgeOptions: H1, elevateNodesOnSelect: Z1, elevateEdgesOnSelect: Y1, disableKeyboardA11y: il = !1, autoPanOnConnect: G1, autoPanOnNodeDrag: W1, autoPanSpeed: X1, connectionRadius: K1, isValidConnection: U1, onError: q1, style: J1, id: ll, nodeDragThreshold: Q1, viewport: em, onViewportChange: tm, width: nm, height: om, colorMode: sm = "light", debug: rm, onScroll: vo, ...im }, lm) {
11337
11354
  const er = ll || "1", am = d7(sm), cm = R((al) => {
11338
11355
  al.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), vo == null || vo(al);
11339
11356
  }, [vo]);
@@ -11366,18 +11383,18 @@ function $8({ dimensions: e, lineWidth: t, variant: n, className: o }) {
11366
11383
  function B8({ radius: e, className: t }) {
11367
11384
  return s.jsx("circle", { cx: e, cy: e, r: e, className: Oe(["react-flow__background-pattern", "dots", t]) });
11368
11385
  }
11369
- var It;
11386
+ var $t;
11370
11387
  (function(e) {
11371
11388
  e.Lines = "lines", e.Dots = "dots", e.Cross = "cross";
11372
- })(It || (It = {}));
11389
+ })($t || ($t = {}));
11373
11390
  const z8 = {
11374
- [It.Dots]: 1,
11375
- [It.Lines]: 1,
11376
- [It.Cross]: 6
11391
+ [$t.Dots]: 1,
11392
+ [$t.Lines]: 1,
11393
+ [$t.Cross]: 6
11377
11394
  }, O8 = (e) => ({ transform: e.transform, patternId: `pattern-${e.rfId}` });
11378
11395
  function Tf({
11379
11396
  id: e,
11380
- variant: t = It.Dots,
11397
+ variant: t = $t.Dots,
11381
11398
  // only used for dots and cross
11382
11399
  gap: n = 20,
11383
11400
  // only used for lines and cross
@@ -11390,7 +11407,7 @@ function Tf({
11390
11407
  className: u,
11391
11408
  patternClassName: d
11392
11409
  }) {
11393
- const f = Q(null), { transform: h, patternId: p } = ve(O8, ze), g = o || z8[t], x = t === It.Dots, j = t === It.Cross, b = Array.isArray(n) ? n : [n, n], C = [b[0] * h[2] || 1, b[1] * h[2] || 1], y = g * h[2], v = Array.isArray(i) ? i : [i, i], L = j ? [y, y] : C, N = [
11410
+ const f = Q(null), { transform: h, patternId: p } = ve(O8, ze), g = o || z8[t], x = t === $t.Dots, j = t === $t.Cross, b = Array.isArray(n) ? n : [n, n], C = [b[0] * h[2] || 1, b[1] * h[2] || 1], y = g * h[2], v = Array.isArray(i) ? i : [i, i], L = j ? [y, y] : C, N = [
11394
11411
  v[0] * h[2] || 1 + L[0] / 2,
11395
11412
  v[1] * h[2] || 1 + L[1] / 2
11396
11413
  ], M = `${p}${e || ""}`;
@@ -11480,7 +11497,7 @@ function K8({
11480
11497
  }
11481
11498
  function U8({ id: e, nodeColorFunc: t, nodeStrokeColorFunc: n, nodeClassNameFunc: o, nodeBorderRadius: r, nodeStrokeWidth: i, shapeRendering: l, NodeComponent: a, onClick: c }) {
11482
11499
  const { node: u, x: d, y: f, width: h, height: p } = ve((g) => {
11483
- const x = g.nodeLookup.get(e), { x: j, y: b } = x.internals.positionAbsolute, { width: C, height: y } = Et(x);
11500
+ const x = g.nodeLookup.get(e), { x: j, y: b } = x.internals.positionAbsolute, { width: C, height: y } = kt(x);
11484
11501
  return {
11485
11502
  node: x,
11486
11503
  x: j,
@@ -11692,7 +11709,7 @@ Ae(ow);
11692
11709
  const sw = (e, t) => e.map((n, o) => ne.translate(n, t[o])), $f = ({ points: e, color: t, ...n }) => /* @__PURE__ */ s.jsx(
11693
11710
  ot,
11694
11711
  {
11695
- path: $t(e),
11712
+ path: Bt(e),
11696
11713
  style: {
11697
11714
  stroke: we(t)
11698
11715
  },
@@ -11701,7 +11718,7 @@ const sw = (e, t) => e.map((n, o) => ne.translate(n, t[o])), $f = ({ points: e,
11701
11718
  ), rw = ({ points: e, color: t, ...n }) => /* @__PURE__ */ s.jsx(
11702
11719
  ot,
11703
11720
  {
11704
- path: $t(e),
11721
+ path: Bt(e),
11705
11722
  style: {
11706
11723
  stroke: we(t),
11707
11724
  strokeDasharray: "12,4"
@@ -11711,7 +11728,7 @@ const sw = (e, t) => e.map((n, o) => ne.translate(n, t[o])), $f = ({ points: e,
11711
11728
  ), iw = ({ points: e, color: t, ...n }) => /* @__PURE__ */ s.jsx(
11712
11729
  ot,
11713
11730
  {
11714
- path: $t(e),
11731
+ path: Bt(e),
11715
11732
  style: {
11716
11733
  stroke: we(t),
11717
11734
  strokeDasharray: "12,4,4"
@@ -11721,9 +11738,9 @@ const sw = (e, t) => e.map((n, o) => ne.translate(n, t[o])), $f = ({ points: e,
11721
11738
  ), lw = ({ points: e, color: t, ...n }) => {
11722
11739
  const o = ne.calculateMiters(e, 6), r = e.map((c, u) => ne.translate(c, o[u])), i = e.map((c, u) => ne.translate(c, ne.scale(o[u], -1))), l = we(t), a = 0.7;
11723
11740
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
11724
- /* @__PURE__ */ s.jsx(ot, { path: $t(r), style: { stroke: l, opacity: a }, ...n }),
11725
- /* @__PURE__ */ s.jsx(ot, { path: $t(e), style: { stroke: l }, ...n }),
11726
- /* @__PURE__ */ s.jsx(ot, { path: $t(i), style: { stroke: l, opacity: a }, ...n })
11741
+ /* @__PURE__ */ s.jsx(ot, { path: Bt(r), style: { stroke: l, opacity: a }, ...n }),
11742
+ /* @__PURE__ */ s.jsx(ot, { path: Bt(e), style: { stroke: l }, ...n }),
11743
+ /* @__PURE__ */ s.jsx(ot, { path: Bt(i), style: { stroke: l, opacity: a }, ...n })
11727
11744
  ] });
11728
11745
  }, Ba = 5, aw = (e, t) => {
11729
11746
  const n = [], o = [];
@@ -11807,14 +11824,14 @@ const sw = (e, t) => e.map((n, o) => ne.translate(n, t[o])), $f = ({ points: e,
11807
11824
  }
11808
11825
  ), qi = (e) => {
11809
11826
  const t = ({ points: n, color: o, ...r }) => {
11810
- const i = $t(n), l = aw(n, 40);
11827
+ const i = Bt(n), l = aw(n, 40);
11811
11828
  return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
11812
11829
  /* @__PURE__ */ s.jsx(ot, { path: i, ...r, style: { stroke: we(o) } }),
11813
11830
  l.map(({ position: a, direction: c }, u) => /* @__PURE__ */ s.jsx(e, { position: a, direction: c, color: o }, u))
11814
11831
  ] });
11815
11832
  };
11816
11833
  return t.displayName = `SymbolLine(${e.displayName})`, t;
11817
- }, fw = qi(cw), hw = qi(uw), pw = qi(dw), $t = (e) => {
11834
+ }, fw = qi(cw), hw = qi(uw), pw = qi(dw), Bt = (e) => {
11818
11835
  let t = "";
11819
11836
  const o = e.length + -1;
11820
11837
  for (let r = 0; r < o; r++) {
@@ -12376,7 +12393,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12376
12393
  SelectPathType: gw,
12377
12394
  ToggleEditControl: Lw,
12378
12395
  alignNodes: V5,
12379
- calcPath: $t,
12396
+ calcPath: Bt,
12380
12397
  edgeConverter: Oo,
12381
12398
  edgeZ: D5,
12382
12399
  nodeConverter: Uu,
@@ -12480,12 +12497,12 @@ const _w = ["Backspace", "Delete"], Ew = ({
12480
12497
  justify: "center",
12481
12498
  size: 0.5,
12482
12499
  children: [
12483
- /* @__PURE__ */ s.jsx(Tt, { selected: r === "top", onClick: i({ outer: "top" }) }),
12500
+ /* @__PURE__ */ s.jsx(At, { selected: r === "top", onClick: i({ outer: "top" }) }),
12484
12501
  /* @__PURE__ */ s.jsxs(re, { direction: "x", align: "center", justify: "center", size: 0.5, children: [
12485
- /* @__PURE__ */ s.jsx(Tt, { selected: r === "left", onClick: i({ outer: "left" }) }),
12502
+ /* @__PURE__ */ s.jsx(At, { selected: r === "left", onClick: i({ outer: "left" }) }),
12486
12503
  /* @__PURE__ */ s.jsx(za, { hideInner: n, value: e, onChange: o }),
12487
12504
  /* @__PURE__ */ s.jsx(
12488
- Tt,
12505
+ At,
12489
12506
  {
12490
12507
  selected: r === "right",
12491
12508
  onClick: i({ outer: "right" })
@@ -12493,7 +12510,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12493
12510
  )
12494
12511
  ] }),
12495
12512
  /* @__PURE__ */ s.jsx(
12496
- Tt,
12513
+ At,
12497
12514
  {
12498
12515
  selected: r === "bottom",
12499
12516
  onClick: i({ outer: "bottom" })
@@ -12522,7 +12539,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12522
12539
  ...r,
12523
12540
  children: [
12524
12541
  /* @__PURE__ */ s.jsx(
12525
- Tt,
12542
+ At,
12526
12543
  {
12527
12544
  style: a,
12528
12545
  disabled: o,
@@ -12533,7 +12550,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12533
12550
  ),
12534
12551
  /* @__PURE__ */ s.jsxs(re, { direction: "x", align: "center", justify: "center", children: [
12535
12552
  /* @__PURE__ */ s.jsx(
12536
- Tt,
12553
+ At,
12537
12554
  {
12538
12555
  style: a,
12539
12556
  disabled: o,
@@ -12542,7 +12559,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12542
12559
  }
12543
12560
  ),
12544
12561
  /* @__PURE__ */ s.jsx(
12545
- Tt,
12562
+ At,
12546
12563
  {
12547
12564
  style: a,
12548
12565
  disabled: o,
@@ -12552,7 +12569,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12552
12569
  )
12553
12570
  ] }),
12554
12571
  /* @__PURE__ */ s.jsx(
12555
- Tt,
12572
+ At,
12556
12573
  {
12557
12574
  style: a,
12558
12575
  disabled: o,
@@ -12564,7 +12581,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12564
12581
  ]
12565
12582
  }
12566
12583
  );
12567
- }, Tt = ({ selected: e, className: t, ...n }) => /* @__PURE__ */ s.jsx(
12584
+ }, At = ({ selected: e, className: t, ...n }) => /* @__PURE__ */ s.jsx(
12568
12585
  Ze,
12569
12586
  {
12570
12587
  variant: "text",
@@ -12608,7 +12625,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12608
12625
  }
12609
12626
  );
12610
12627
  } }), cn = ({ path: e, omit: t = [] }) => /* @__PURE__ */ s.jsxs(re, { direction: "x", align: "stretch", children: [
12611
- /* @__PURE__ */ s.jsx(Ce, { path: `${e}.label`, label: "Label", padHelpText: !1, grow: !0, children: (n) => /* @__PURE__ */ s.jsx(bt, { selectOnFocus: !0, ...n }) }),
12628
+ /* @__PURE__ */ s.jsx(Ce, { path: `${e}.label`, label: "Label", padHelpText: !1, grow: !0, children: (n) => /* @__PURE__ */ s.jsx(vt, { selectOnFocus: !0, ...n }) }),
12612
12629
  /* @__PURE__ */ s.jsx(
12613
12630
  mn,
12614
12631
  {
@@ -12894,7 +12911,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
12894
12911
  label: "Units",
12895
12912
  align: "start",
12896
12913
  padHelpText: !1,
12897
- children: (o) => /* @__PURE__ */ s.jsx(bt, { ...o })
12914
+ children: (o) => /* @__PURE__ */ s.jsx(vt, { ...o })
12898
12915
  }
12899
12916
  ),
12900
12917
  /* @__PURE__ */ s.jsx(
@@ -13133,7 +13150,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
13133
13150
  return /* @__PURE__ */ s.jsxs(Je, { direction: "x", align: "stretch", grow: !0, children: [
13134
13151
  /* @__PURE__ */ s.jsxs(re, { direction: "y", grow: !0, children: [
13135
13152
  /* @__PURE__ */ s.jsxs(re, { direction: "x", align: "stretch", children: [
13136
- /* @__PURE__ */ s.jsx(Ce, { path: "text", label: "Text", padHelpText: !1, grow: !0, children: (t) => /* @__PURE__ */ s.jsx(bt, { ...t }) }),
13153
+ /* @__PURE__ */ s.jsx(Ce, { path: "text", label: "Text", padHelpText: !1, grow: !0, children: (t) => /* @__PURE__ */ s.jsx(vt, { ...t }) }),
13137
13154
  /* @__PURE__ */ s.jsx(Ce, { path: "level", label: "Text Size", padHelpText: !1, children: (t) => /* @__PURE__ */ s.jsx(Pn, { ...t }) }),
13138
13155
  /* @__PURE__ */ s.jsx(
13139
13156
  Ce,
@@ -13347,7 +13364,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
13347
13364
  }) => {
13348
13365
  e = _e.construct(t) === "y" ? Vn.swap(e) : e;
13349
13366
  const u = we(r), d = co();
13350
- return r != null && (i[m.var("symbol-color")] = new Bt(r).rgbString, i[m.var("symbol-color-contrast")] = new Bt(r).pickByContrast(
13367
+ return r != null && (i[m.var("symbol-color")] = new zt(r).rgbString, i[m.var("symbol-color-contrast")] = new zt(r).pickByContrast(
13351
13368
  d.colors.gray.l0,
13352
13369
  d.colors.gray.l10
13353
13370
  ).rgbString), /* @__PURE__ */ s.jsx(
@@ -14655,7 +14672,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
14655
14672
  ...c
14656
14673
  }) => {
14657
14674
  const u = we(t), d = co(), f = t == null ? "var(--pluto-gray-l0)" : we(
14658
- new Bt(t).pickByContrast(
14675
+ new zt(t).pickByContrast(
14659
14676
  d.colors.gray.l0,
14660
14677
  d.colors.gray.l9
14661
14678
  )
@@ -17649,7 +17666,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
17649
17666
  );
17650
17667
  };
17651
17668
  return t.displayName = e.displayName, t;
17652
- }, kt = (e) => {
17669
+ }, Mt = (e) => {
17653
17670
  const t = ({
17654
17671
  symbolKey: n,
17655
17672
  label: o,
@@ -17702,11 +17719,11 @@ const _w = ["Backspace", "Delete"], Ew = ({
17702
17719
  mp
17703
17720
  ), Tg = ge(yp), Ag = ge(
17704
17721
  wp
17705
- ), Ig = ge(jp), $g = ge(bp), Bg = ge(vp), zg = kt(yh), Og = kt(Uf), Dg = kt(
17722
+ ), Ig = ge(jp), $g = ge(bp), Bg = ge(vp), zg = Mt(yh), Og = Mt(Uf), Dg = Mt(
17706
17723
  Hh
17707
- ), Rg = kt(
17724
+ ), Rg = Mt(
17708
17725
  Zh
17709
- ), Vg = kt(dh), Fg = kt(wh), Hg = kt(sh), Zg = kt(rh), Yg = ge(
17726
+ ), Vg = Mt(dh), Fg = Mt(wh), Hg = Mt(sh), Zg = Mt(rh), Yg = ge(
17710
17727
  ({
17711
17728
  backgroundColor: e,
17712
17729
  onChange: t,
@@ -19321,7 +19338,7 @@ const _w = ["Backspace", "Delete"], Ew = ({
19321
19338
  ValuePreview: Jg,
19322
19339
  Valve: Cp,
19323
19340
  Vent: ag,
19324
- createDummyToggle: kt,
19341
+ createDummyToggle: Mt,
19325
19342
  createLabeled: ge,
19326
19343
  createToggle: Me,
19327
19344
  variantZ: uj
@@ -19338,7 +19355,7 @@ export {
19338
19355
  nS as Channel,
19339
19356
  bC as Color,
19340
19357
  mS as Control,
19341
- At as DataType,
19358
+ It as DataType,
19342
19359
  AS as Density,
19343
19360
  rS as Device,
19344
19361
  CS as Diagram,
@@ -19415,7 +19432,7 @@ export {
19415
19432
  HS as stopPropagation,
19416
19433
  fC as telem,
19417
19434
  NC as unitProperty,
19418
- zt as useAsyncEffect,
19435
+ bt as useAsyncEffect,
19419
19436
  _2 as useClickOutside,
19420
19437
  Fa as useCombinedRefs,
19421
19438
  Va as useCombinedStateAndRef,