@mesh.ai/rabbit 1.19.5 → 1.19.7

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.
@@ -13056,20 +13056,20 @@ function Wd(e) {
13056
13056
  function p1(e) {
13057
13057
  return Object.prototype.toString.call(e) === "[object Object]";
13058
13058
  }
13059
- function tt(e) {
13059
+ function nt(e) {
13060
13060
  return Math.abs(e);
13061
13061
  }
13062
13062
  function jd(e) {
13063
13063
  return Math.sign(e);
13064
13064
  }
13065
13065
  function Wi(e, t) {
13066
- return tt(e - t);
13066
+ return nt(e - t);
13067
13067
  }
13068
13068
  function fE(e, t) {
13069
- if (e === 0 || t === 0 || tt(e) <= tt(t))
13069
+ if (e === 0 || t === 0 || nt(e) <= nt(t))
13070
13070
  return 0;
13071
- const n = Wi(tt(e), tt(t));
13072
- return tt(n / e);
13071
+ const n = Wi(nt(e), nt(t));
13072
+ return nt(n / e);
13073
13073
  }
13074
13074
  function ya(e) {
13075
13075
  return ba(e).map(Number);
@@ -13144,7 +13144,7 @@ function hE(e, t) {
13144
13144
  };
13145
13145
  }
13146
13146
  function Fr(e, t) {
13147
- const n = tt(e - t);
13147
+ const n = nt(e - t);
13148
13148
  function r(c) {
13149
13149
  return c < e;
13150
13150
  }
@@ -13177,7 +13177,7 @@ function ev(e, t, n) {
13177
13177
  } = Fr(0, e), o = e + 1;
13178
13178
  let a = i(t);
13179
13179
  function i(p) {
13180
- return n ? tt((o + p) % o) : r(p);
13180
+ return n ? nt((o + p) % o) : r(p);
13181
13181
  }
13182
13182
  function s() {
13183
13183
  return a;
@@ -13271,7 +13271,7 @@ function gE(e, t, n, r, o, a, i, s, l, c, d, f, p, m, h, g, x, b, y, v) {
13271
13271
  }
13272
13272
  function oe(N, ue) {
13273
13273
  const fe = p.add(jd(N) * -1), ye = f.byDistance(N, !g).distance;
13274
- return g || tt(N) < M ? ye : b && ue ? ye * 0.5 : f.byIndex(fe.get(), 0).distance;
13274
+ return g || nt(N) < M ? ye : b && ue ? ye * 0.5 : f.byIndex(fe.get(), 0).distance;
13275
13275
  }
13276
13276
  function re(N) {
13277
13277
  const ue = Jg(N, o);
@@ -13320,7 +13320,7 @@ function vE(e, t) {
13320
13320
  if (!r || !o)
13321
13321
  return 0;
13322
13322
  const p = i(o) - i(r), m = a(f) - a(r), h = a(f) - a(o) > 170, g = p / m;
13323
- return m && !h && tt(g) > 0.1 ? g : 0;
13323
+ return m && !h && nt(g) > 0.1 ? g : 0;
13324
13324
  }
13325
13325
  return {
13326
13326
  pointerDown: s,
@@ -13370,7 +13370,7 @@ function xE(e, t, n, r, o, a, i) {
13370
13370
  function x(y) {
13371
13371
  for (const v of y) {
13372
13372
  const A = v.target === e, w = r.indexOf(v.target), E = A ? l : c[w], P = f(A ? e : r[w]);
13373
- if (tt(P - E) >= 0.5) {
13373
+ if (nt(P - E) >= 0.5) {
13374
13374
  n.requestAnimationFrame(() => {
13375
13375
  g.reInit(), t.emit("resize");
13376
13376
  });
@@ -13399,7 +13399,7 @@ function wE(e, t, n, r, o) {
13399
13399
  }
13400
13400
  function p() {
13401
13401
  const w = n.get() - t.get();
13402
- return tt(w) < 1e-3;
13402
+ return nt(w) < 1e-3;
13403
13403
  }
13404
13404
  function m() {
13405
13405
  return s;
@@ -13444,8 +13444,8 @@ function AE(e, t, n, r, o) {
13444
13444
  function d(m) {
13445
13445
  if (!c())
13446
13446
  return;
13447
- const h = e.reachedMin(t.get()) ? "min" : "max", g = tt(e[h] - t.get()), x = n.get() - t.get(), b = s.constrain(g / i);
13448
- n.subtract(x * b), !m && tt(x) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
13447
+ const h = e.reachedMin(t.get()) ? "min" : "max", g = nt(e[h] - t.get()), x = n.get() - t.get(), b = s.constrain(g / i);
13448
+ n.subtract(x * b), !m && nt(x) < a && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
13449
13449
  }
13450
13450
  function f(m) {
13451
13451
  l = !m;
@@ -13528,10 +13528,10 @@ function $E(e, t, n, r, o) {
13528
13528
  groupSlides: s
13529
13529
  } = o, l = f().map(t.measure), c = p(), d = m();
13530
13530
  function f() {
13531
- return s(r).map((g) => pn(g)[i] - g[0][a]).map(tt);
13531
+ return s(r).map((g) => pn(g)[i] - g[0][a]).map(nt);
13532
13532
  }
13533
13533
  function p() {
13534
- return r.map((g) => n[a] - g[a]).map((g) => -tt(g));
13534
+ return r.map((g) => n[a] - g[a]).map((g) => -nt(g));
13535
13535
  }
13536
13536
  function m() {
13537
13537
  return s(c).map((g) => g[0]).map((g, x) => g + l[x]);
@@ -13574,13 +13574,13 @@ function PE(e, t, n, r, o) {
13574
13574
  constrain: s
13575
13575
  } = r;
13576
13576
  function l(h) {
13577
- return h.concat().sort((g, x) => tt(g) - tt(x))[0];
13577
+ return h.concat().sort((g, x) => nt(g) - nt(x))[0];
13578
13578
  }
13579
13579
  function c(h) {
13580
13580
  const g = e ? i(h) : s(h), x = t.map((y) => y - g).map((y) => d(y, 0)).map((y, v) => ({
13581
13581
  diff: y,
13582
13582
  index: v
13583
- })).sort((y, v) => tt(y.diff) - tt(v.diff)), {
13583
+ })).sort((y, v) => nt(y.diff) - nt(v.diff)), {
13584
13584
  index: b
13585
13585
  } = x[0];
13586
13586
  return {
@@ -13855,7 +13855,7 @@ function _E(e, t, n, r, o, a) {
13855
13855
  if (!c)
13856
13856
  return 0;
13857
13857
  const y = n[0];
13858
- return tt(t[s] - y[s]);
13858
+ return nt(t[s] - y[s]);
13859
13859
  }
13860
13860
  function g() {
13861
13861
  if (!c)
@@ -13867,7 +13867,7 @@ function _E(e, t, n, r, o, a) {
13867
13867
  return n.map((y, v, A) => {
13868
13868
  const w = !v, E = Vd(A, v);
13869
13869
  return w ? p[v] + d : E ? p[v] + f : A[v + 1][s] - y[s];
13870
- }).map(tt);
13870
+ }).map(nt);
13871
13871
  }
13872
13872
  return {
13873
13873
  slideSizes: p,
@@ -13887,7 +13887,7 @@ function RE(e, t, n, r, o, a, i, s, l) {
13887
13887
  function m(x) {
13888
13888
  return x.length ? ya(x).reduce((b, y) => {
13889
13889
  const v = pn(b) || 0, A = v === 0, w = y === Ra(x), E = a[c] - i[v][c], P = a[c] - i[y][d], $ = !o && A ? t.apply(s) : 0, M = !o && w ? t.apply(l) : 0;
13890
- return tt(P - M - (E + $)) > n && b.push(y), w && b.push(x.length), b;
13890
+ return nt(P - M - (E + $)) > n && b.push(y), w && b.push(x.length), b;
13891
13891
  }, []).map((b, y, v) => {
13892
13892
  const A = Math.max(v[y - 1] || 0);
13893
13893
  return x.slice(A, b);
@@ -14011,7 +14011,7 @@ function LE(e) {
14011
14011
  n.forEach(({
14012
14012
  animation: h
14013
14013
  }) => h.update()), o -= t;
14014
- const m = tt(o / t);
14014
+ const m = nt(o / t);
14015
14015
  n.forEach(({
14016
14016
  animation: h
14017
14017
  }) => h.render(m)), a && e.requestAnimationFrame(i);
@@ -25011,7 +25011,7 @@ const Yn = (e, t, n) => {
25011
25011
  { name: "royal_blue", dark: "#002FDC", light: "#D7DFFF" },
25012
25012
  { name: "magenta", dark: "#B402AA", light: "#FFCEFB" }
25013
25013
  ];
25014
- function nt(e) {
25014
+ function tt(e) {
25015
25015
  return gh[e % gh.length];
25016
25016
  }
25017
25017
  const ki = (e, t) => or.map(e, (n) => da(n) && typeof n.type == "function" && n.type.displayName === t.displayName ? n : null);
@@ -25177,7 +25177,7 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25177
25177
  x: r[U],
25178
25178
  y: W,
25179
25179
  nodeId: M.id,
25180
- color: (L == null ? void 0 : L.color) ?? nt(T)
25180
+ color: (L == null ? void 0 : L.color) ?? tt(T)
25181
25181
  }))
25182
25182
  };
25183
25183
  }).slice(0, p === "mini" ? g : o.length), [o, p, g, e, r]), P = Ae(() => p === "full" ? E.filter((M) => v.includes(M.points[0].nodeId)) : E, [E, v, p]), $ = Ae(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
@@ -25218,7 +25218,6 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25218
25218
  orientation: "bottom",
25219
25219
  stroke: "#CFD7DF",
25220
25220
  strokeWidth: 1,
25221
- numTicks: 6,
25222
25221
  tickFormat: (M) => c ? vh(M, c.symbol, c.position) : M,
25223
25222
  rangePadding: { end: 10 },
25224
25223
  tickComponent: (M) => /* @__PURE__ */ u(
@@ -25326,8 +25325,8 @@ const YB = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
25326
25325
  showSideBySide: !!L,
25327
25326
  tooltipTitle: f,
25328
25327
  legendValue: (T == null ? void 0 : T.name) || "",
25329
- legendDarkColor: ((R = M == null ? void 0 : M.nearestDatum) == null ? void 0 : R.datum.color.dark) || nt(0).dark,
25330
- legendLightColor: ((H = M == null ? void 0 : M.nearestDatum) == null ? void 0 : H.datum.color.light) || nt(0).light
25328
+ legendDarkColor: ((R = M == null ? void 0 : M.nearestDatum) == null ? void 0 : R.datum.color.dark) || tt(0).dark,
25329
+ legendLightColor: ((H = M == null ? void 0 : M.nearestDatum) == null ? void 0 : H.datum.color.light) || tt(0).light
25331
25330
  }
25332
25331
  );
25333
25332
  }
@@ -25709,16 +25708,16 @@ function nz({
25709
25708
  Re.Legend,
25710
25709
  {
25711
25710
  value: a.name,
25712
- darkColor: (s = nt((a.index || 0) + 1)) == null ? void 0 : s.dark,
25713
- lightColor: (l = nt((a.index || 0) + 1)) == null ? void 0 : l.light
25711
+ darkColor: (s = tt((a.index || 0) + 1)) == null ? void 0 : s.dark,
25712
+ lightColor: (l = tt((a.index || 0) + 1)) == null ? void 0 : l.light
25714
25713
  }
25715
25714
  ),
25716
25715
  /* @__PURE__ */ u(
25717
25716
  Re.Legend,
25718
25717
  {
25719
25718
  value: i.name,
25720
- darkColor: (c = nt((i.index || 0) + 1)) == null ? void 0 : c.dark,
25721
- lightColor: (d = nt((i.index || 0) + 1)) == null ? void 0 : d.light
25719
+ darkColor: (c = tt((i.index || 0) + 1)) == null ? void 0 : c.dark,
25720
+ lightColor: (d = tt((i.index || 0) + 1)) == null ? void 0 : d.light
25722
25721
  }
25723
25722
  )
25724
25723
  ] });
@@ -25789,7 +25788,7 @@ const Ch = 80, Sh = 20, rz = 30, oz = 12, g4 = Y(
25789
25788
  pointerEvents: "stroke",
25790
25789
  onMouseLeave: () => B(),
25791
25790
  onMouseMove: (R) => U(R, S),
25792
- stroke: nt((S.source.index || 0) + 1).light,
25791
+ stroke: tt((S.source.index || 0) + 1).light,
25793
25792
  strokeWidth: S.width,
25794
25793
  strokeOpacity: W.has(S) ? 0.7 : 0.4
25795
25794
  },
@@ -25807,8 +25806,8 @@ const Ch = 80, Sh = 20, rz = 30, oz = 12, g4 = Y(
25807
25806
  onMouseEnter: () => T(S),
25808
25807
  onMouseLeave: () => L(),
25809
25808
  radius: 2,
25810
- fill: d === S.id ? (R = nt((S.index || 0) + 1)) == null ? void 0 : R.dark : (H = nt((S.index || 0) + 1)) == null ? void 0 : H.light,
25811
- stroke: (z = nt((S.index || 0) + 1)) == null ? void 0 : z.dark,
25809
+ fill: d === S.id ? (R = tt((S.index || 0) + 1)) == null ? void 0 : R.dark : (H = tt((S.index || 0) + 1)) == null ? void 0 : H.light,
25810
+ stroke: (z = tt((S.index || 0) + 1)) == null ? void 0 : z.dark,
25812
25811
  all: !0
25813
25812
  }
25814
25813
  ) }, S.index);
@@ -26129,8 +26128,8 @@ const Mh = 20, Eh = 50, wc = 80, Di = 50, lz = 10, cz = 25, e0 = Y(
26129
26128
  y: v(O.length),
26130
26129
  width: F,
26131
26130
  height: k && k - 1,
26132
- fill: nt(0).light,
26133
- stroke: nt(0).dark,
26131
+ fill: tt(0).light,
26132
+ stroke: tt(0).dark,
26134
26133
  strokeWidth: 1,
26135
26134
  onMouseMove: (Q) => H(Q, O),
26136
26135
  onMouseLeave: () => z()
@@ -26155,8 +26154,8 @@ const Mh = 20, Eh = 50, wc = 80, Di = 50, lz = 10, cz = 25, e0 = Y(
26155
26154
  yValue: E.length,
26156
26155
  tooltipTitle: e,
26157
26156
  legendValue: n,
26158
- legendDarkColor: nt(0).dark,
26159
- legendLightColor: nt(0).light
26157
+ legendDarkColor: tt(0).dark,
26158
+ legendLightColor: tt(0).light
26160
26159
  }
26161
26160
  )
26162
26161
  },
@@ -26437,7 +26436,7 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26437
26436
  {
26438
26437
  from: M,
26439
26438
  to: z[F],
26440
- stroke: "#CFD7DF",
26439
+ stroke: d.length === 1 ? tt(0).dark : "#CFD7DF",
26441
26440
  strokeWidth: 1
26442
26441
  },
26443
26442
  `radar-line-${Math.random()}`
@@ -26466,9 +26465,9 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26466
26465
  "polygon",
26467
26466
  {
26468
26467
  points: O(k.data).pointString,
26469
- fill: nt(F).light,
26468
+ fill: tt(F).light,
26470
26469
  fillOpacity: 0.2,
26471
- stroke: nt(F).dark,
26470
+ stroke: tt(F).dark,
26472
26471
  strokeWidth: 1
26473
26472
  },
26474
26473
  `polypath-${Math.random()}`
@@ -26488,8 +26487,8 @@ const Fi = { top: 60, left: 20, right: 20, bottom: 20 }, $h = {
26488
26487
  xAxisValue: d[X],
26489
26488
  yAxisValue: k.data[X],
26490
26489
  xAxisLabel: o ?? "Category",
26491
- legendDarkColor: nt(F).dark,
26492
- legendLightColor: nt(F).light
26490
+ legendDarkColor: tt(F).dark,
26491
+ legendLightColor: tt(F).light
26493
26492
  });
26494
26493
  },
26495
26494
  onMouseOut: W
@@ -26597,7 +26596,7 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26597
26596
  x: r[W],
26598
26597
  y: L,
26599
26598
  nodeId: $.id,
26600
- color: (T == null ? void 0 : T.color) ?? nt(M)
26599
+ color: (T == null ? void 0 : T.color) ?? tt(M)
26601
26600
  }))
26602
26601
  };
26603
26602
  }).slice(0, p === "mini" ? h : o.length), [o, p, h, e, r]), E = Ae(() => p === "full" ? w.filter(($) => y.includes($.points[0].nodeId)) : w, [w, y, p]), P = Ae(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
@@ -26643,7 +26642,6 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26643
26642
  orientation: "bottom",
26644
26643
  stroke: "#CFD7DF",
26645
26644
  strokeWidth: 1,
26646
- numTicks: 6,
26647
26645
  tickFormat: ($) => c ? Ph($, c.symbol, c.position) : $,
26648
26646
  rangePadding: { end: 10 },
26649
26647
  tickComponent: ($) => /* @__PURE__ */ u(
@@ -26742,8 +26740,8 @@ const fz = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ u(
26742
26740
  showSideBySide: !!T,
26743
26741
  tooltipTitle: f,
26744
26742
  legendValue: (M == null ? void 0 : M.name) || "",
26745
- legendDarkColor: ((S = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : S.datum.color.dark) || nt(0).dark,
26746
- legendLightColor: ((R = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : R.datum.color.light) || nt(0).light
26743
+ legendDarkColor: ((S = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : S.datum.color.dark) || tt(0).dark,
26744
+ legendLightColor: ((R = $ == null ? void 0 : $.nearestDatum) == null ? void 0 : R.datum.color.light) || tt(0).light
26747
26745
  }
26748
26746
  );
26749
26747
  }
@@ -27083,7 +27081,7 @@ const Ez = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
27083
27081
  return {
27084
27082
  id: W.id,
27085
27083
  name: W.name,
27086
- color: nt(L)
27084
+ color: tt(L)
27087
27085
  };
27088
27086
  }).slice(0, f === "mini" ? h : t.length), [t, f, h]), [w, E] = xe(
27089
27087
  () => A.filter((T, L) => f === "full" || L < h).map((T) => T.id)
@@ -27098,7 +27096,7 @@ const Ez = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ u(Fo, { cx: e,
27098
27096
  y: B,
27099
27097
  pointMetaData: T.pointsMetaData[U],
27100
27098
  nodeId: T.seriesMetaData.employee.id,
27101
- color: nt(L)
27099
+ color: tt(L)
27102
27100
  };
27103
27101
  })
27104
27102
  })).slice(0, f === "mini" ? h : t.length), [t, f, h, v]), $ = Ae(() => f === "full" ? P.filter(({ nodeId: T }) => w.includes(T)) : P, [P, f, w]), M = Ae(() => Math.floor((r - (f === "mini" ? 0 : 150)) / (t[0].xValues.length * 8)), [r, f, t]);