@lax-wp/design-system 0.3.71 → 0.3.72

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
@@ -1,9 +1,9 @@
1
1
  import * as de from "react";
2
2
  import a, { forwardRef as Ue, useRef as he, useState as ne, useEffect as pe, createContext as X0, useContext as Ns, useCallback as ke, createElement as Z0, useMemo as qe, useLayoutEffect as Ds, Component as kp, Fragment as _o, useSyncExternalStore as Ip, isValidElement as Nr, cloneElement as $o, memo as pr, Suspense as zp, PureComponent as Fp } from "react";
3
3
  import { AnimatePresence as Vt, motion as kt } from "framer-motion";
4
- import { Tooltip as ht, Select as Mp, Skeleton as Ac, Checkbox as Y0, Dropdown as J0, DatePicker as Wo, Modal as Sp, Upload as Ul, Popover as Ap } from "antd";
4
+ import { Tooltip as pt, Select as Mp, Skeleton as Ac, Checkbox as Y0, Dropdown as J0, DatePicker as Wo, Modal as Sp, Upload as Ul, Popover as Ap } from "antd";
5
5
  import * as ga from "@mui/icons-material";
6
- import { BoltOutlined as _n, NoteAddOutlined as gn, CloseRounded as Ls, TableChartRounded as K0, ChevronLeftRounded as Np, ChevronRightRounded as Dp, OpenInFull as Lp, DescriptionRounded as Tp } from "@mui/icons-material";
6
+ import { BoltOutlined as Gn, NoteAddOutlined as _n, CloseRounded as Ls, TableChartRounded as K0, ChevronLeftRounded as Np, ChevronRightRounded as Dp, OpenInFull as Lp, DescriptionRounded as Tp } from "@mui/icons-material";
7
7
  import * as Bp from "react-dom";
8
8
  import Hp, { createPortal as Ts, flushSync as jp } from "react-dom";
9
9
  import { FixedSizeGrid as Pp } from "react-window";
@@ -391,7 +391,7 @@ function Vp() {
391
391
  }
392
392
  return R.ref !== void 0;
393
393
  }
394
- function En(R) {
394
+ function wn(R) {
395
395
  if (oe.call(R, "key")) {
396
396
  var re = Object.getOwnPropertyDescriptor(R, "key").get;
397
397
  if (re && re.isReactWarning)
@@ -456,7 +456,7 @@ function Vp() {
456
456
  function Wn(R, re, me, Fe, _e) {
457
457
  {
458
458
  var Xe, He = {}, Le = null, wt = null;
459
- me !== void 0 && (X(me), Le = "" + me), En(re) && (X(re.key), Le = "" + re.key), ft(re) && (wt = re.ref, Qt(re, _e));
459
+ me !== void 0 && (X(me), Le = "" + me), wn(re) && (X(re.key), Le = "" + re.key), ft(re) && (wt = re.ref, Qt(re, _e));
460
460
  for (Xe in re)
461
461
  oe.call(re, Xe) && !Ee.hasOwnProperty(Xe) && (He[Xe] = re[Xe]);
462
462
  if (R && R.defaultProps) {
@@ -980,7 +980,7 @@ const i6 = (e, t) => {
980
980
  return pe(() => {
981
981
  n.current = e;
982
982
  }, [e, t]), n.current;
983
- }, e2 = (e, t, n, r) => e.getFixedT(t, n, r), l6 = (e, t, n, r) => ke(e2(e, t, n, r), [e, t, n, r]), bn = (e, t = {}) => {
983
+ }, e2 = (e, t, n, r) => e.getFixedT(t, n, r), l6 = (e, t, n, r) => ke(e2(e, t, n, r), [e, t, n, r]), vn = (e, t = {}) => {
984
984
  const {
985
985
  i18n: n
986
986
  } = t, {
@@ -1457,7 +1457,7 @@ var Pc = function(t) {
1457
1457
  }, []), i2 = /* @__PURE__ */ [].concat(Zi, [Bs]).reduce(function(e, t) {
1458
1458
  return e.concat([t, t + "-" + Tr, t + "-" + Ai]);
1459
1459
  }, []), m6 = "beforeRead", p6 = "read", g6 = "afterRead", v6 = "beforeMain", b6 = "main", x6 = "afterMain", y6 = "beforeWrite", w6 = "write", E6 = "afterWrite", C6 = [m6, p6, g6, v6, b6, x6, y6, w6, E6];
1460
- function vn(e) {
1460
+ function gn(e) {
1461
1461
  return e ? (e.nodeName || "").toLowerCase() : null;
1462
1462
  }
1463
1463
  function Gt(e) {
@@ -1487,7 +1487,7 @@ function k6(e) {
1487
1487
  var t = e.state;
1488
1488
  Object.keys(t.elements).forEach(function(n) {
1489
1489
  var r = t.styles[n] || {}, i = t.attributes[n] || {}, l = t.elements[n];
1490
- !Yt(l) || !vn(l) || (Object.assign(l.style, r), Object.keys(i).forEach(function(o) {
1490
+ !Yt(l) || !gn(l) || (Object.assign(l.style, r), Object.keys(i).forEach(function(o) {
1491
1491
  var s = i[o];
1492
1492
  s === !1 ? l.removeAttribute(o) : l.setAttribute(o, s === !0 ? "" : s);
1493
1493
  }));
@@ -1511,7 +1511,7 @@ function I6(e) {
1511
1511
  var i = t.elements[r], l = t.attributes[r] || {}, o = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), s = o.reduce(function(c, u) {
1512
1512
  return c[u] = "", c;
1513
1513
  }, {});
1514
- !Yt(i) || !vn(i) || (Object.assign(i.style, s), Object.keys(l).forEach(function(c) {
1514
+ !Yt(i) || !gn(i) || (Object.assign(i.style, s), Object.keys(l).forEach(function(c) {
1515
1515
  i.removeAttribute(c);
1516
1516
  }));
1517
1517
  });
@@ -1577,11 +1577,11 @@ function a2(e, t) {
1577
1577
  }
1578
1578
  return !1;
1579
1579
  }
1580
- function Vn(e) {
1580
+ function Rn(e) {
1581
1581
  return Gt(e).getComputedStyle(e);
1582
1582
  }
1583
1583
  function F6(e) {
1584
- return ["table", "td", "th"].indexOf(vn(e)) >= 0;
1584
+ return ["table", "td", "th"].indexOf(gn(e)) >= 0;
1585
1585
  }
1586
1586
  function er(e) {
1587
1587
  return ((dr(e) ? e.ownerDocument : (
@@ -1590,7 +1590,7 @@ function er(e) {
1590
1590
  )) || window.document).documentElement;
1591
1591
  }
1592
1592
  function va(e) {
1593
- return vn(e) === "html" ? e : (
1593
+ return gn(e) === "html" ? e : (
1594
1594
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
1595
1595
  // $FlowFixMe[incompatible-return]
1596
1596
  // $FlowFixMe[prop-missing]
@@ -1603,18 +1603,18 @@ function va(e) {
1603
1603
  }
1604
1604
  function Vc(e) {
1605
1605
  return !Yt(e) || // https://github.com/popperjs/popper-core/issues/837
1606
- Vn(e).position === "fixed" ? null : e.offsetParent;
1606
+ Rn(e).position === "fixed" ? null : e.offsetParent;
1607
1607
  }
1608
1608
  function M6(e) {
1609
1609
  var t = /firefox/i.test(Zo()), n = /Trident/i.test(Zo());
1610
1610
  if (n && Yt(e)) {
1611
- var r = Vn(e);
1611
+ var r = Rn(e);
1612
1612
  if (r.position === "fixed")
1613
1613
  return null;
1614
1614
  }
1615
1615
  var i = va(e);
1616
- for (Hs(i) && (i = i.host); Yt(i) && ["html", "body"].indexOf(vn(i)) < 0; ) {
1617
- var l = Vn(i);
1616
+ for (Hs(i) && (i = i.host); Yt(i) && ["html", "body"].indexOf(gn(i)) < 0; ) {
1617
+ var l = Rn(i);
1618
1618
  if (l.transform !== "none" || l.perspective !== "none" || l.contain === "paint" || ["transform", "perspective"].indexOf(l.willChange) !== -1 || t && l.willChange === "filter" || t && l.filter && l.filter !== "none")
1619
1619
  return i;
1620
1620
  i = i.parentNode;
@@ -1622,9 +1622,9 @@ function M6(e) {
1622
1622
  return null;
1623
1623
  }
1624
1624
  function Yi(e) {
1625
- for (var t = Gt(e), n = Vc(e); n && F6(n) && Vn(n).position === "static"; )
1625
+ for (var t = Gt(e), n = Vc(e); n && F6(n) && Rn(n).position === "static"; )
1626
1626
  n = Vc(n);
1627
- return n && (vn(n) === "html" || vn(n) === "body" && Vn(n).position === "static") ? t : n || M6(e) || t;
1627
+ return n && (gn(n) === "html" || gn(n) === "body" && Rn(n).position === "static") ? t : n || M6(e) || t;
1628
1628
  }
1629
1629
  function Ps(e) {
1630
1630
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
@@ -1705,7 +1705,7 @@ function Gc(e) {
1705
1705
  var x = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), C = At, M = St, E = window;
1706
1706
  if (u) {
1707
1707
  var y = Yi(n), z = "clientHeight", I = "clientWidth";
1708
- if (y === Gt(n) && (y = er(n), Vn(y).position !== "static" && s === "absolute" && (z = "scrollHeight", I = "scrollWidth")), y = y, i === St || (i === At || i === Kt) && l === Ai) {
1708
+ if (y === Gt(n) && (y = er(n), Rn(y).position !== "static" && s === "absolute" && (z = "scrollHeight", I = "scrollWidth")), y = y, i === St || (i === At || i === Kt) && l === Ai) {
1709
1709
  M = Jt;
1710
1710
  var k = h && y === E && E.visualViewport ? E.visualViewport.height : (
1711
1711
  // $FlowFixMe[prop-missing]
@@ -1835,7 +1835,7 @@ function G6(e, t) {
1835
1835
  }
1836
1836
  function _6(e) {
1837
1837
  var t, n = er(e), r = Os(e), i = (t = e.ownerDocument) == null ? void 0 : t.body, l = cr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = cr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + Rs(e), c = -r.scrollTop;
1838
- return Vn(i || n).direction === "rtl" && (s += cr(n.clientWidth, i ? i.clientWidth : 0) - l), {
1838
+ return Rn(i || n).direction === "rtl" && (s += cr(n.clientWidth, i ? i.clientWidth : 0) - l), {
1839
1839
  width: l,
1840
1840
  height: o,
1841
1841
  x: s,
@@ -1843,11 +1843,11 @@ function _6(e) {
1843
1843
  };
1844
1844
  }
1845
1845
  function Vs(e) {
1846
- var t = Vn(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
1846
+ var t = Rn(e), n = t.overflow, r = t.overflowX, i = t.overflowY;
1847
1847
  return /auto|scroll|overlay|hidden/.test(n + i + r);
1848
1848
  }
1849
1849
  function u2(e) {
1850
- return ["html", "body", "#document"].indexOf(vn(e)) >= 0 ? e.ownerDocument.body : Yt(e) && Vs(e) ? e : u2(va(e));
1850
+ return ["html", "body", "#document"].indexOf(gn(e)) >= 0 ? e.ownerDocument.body : Yt(e) && Vs(e) ? e : u2(va(e));
1851
1851
  }
1852
1852
  function yi(e, t) {
1853
1853
  var n;
@@ -1874,9 +1874,9 @@ function $c(e, t, n) {
1874
1874
  return t === r2 ? Yo(G6(e, n)) : dr(t) ? $6(t, n) : Yo(_6(er(e)));
1875
1875
  }
1876
1876
  function W6(e) {
1877
- var t = yi(va(e)), n = ["absolute", "fixed"].indexOf(Vn(e).position) >= 0, r = n && Yt(e) ? Yi(e) : e;
1877
+ var t = yi(va(e)), n = ["absolute", "fixed"].indexOf(Rn(e).position) >= 0, r = n && Yt(e) ? Yi(e) : e;
1878
1878
  return dr(r) ? t.filter(function(i) {
1879
- return dr(i) && a2(i, r) && vn(i) !== "body";
1879
+ return dr(i) && a2(i, r) && gn(i) !== "body";
1880
1880
  }) : [];
1881
1881
  }
1882
1882
  function U6(e, t, n, r) {
@@ -2182,7 +2182,7 @@ function ug(e, t, n) {
2182
2182
  x: 0,
2183
2183
  y: 0
2184
2184
  };
2185
- return (r || !r && !n) && ((vn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2185
+ return (r || !r && !n) && ((gn(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
2186
2186
  Vs(l)) && (s = sg(t)), Yt(t) ? (c = Hr(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : l && (c.x = Rs(l))), {
2187
2187
  x: o.left + s.scrollLeft - c.x,
2188
2188
  y: o.top + s.scrollTop - c.y,
@@ -2732,7 +2732,7 @@ const st = ({
2732
2732
  fill: t
2733
2733
  }
2734
2734
  )
2735
- ] }), xn = ({
2735
+ ] }), bn = ({
2736
2736
  position: e = "top",
2737
2737
  title: t = "AI Extracted Field"
2738
2738
  }) => /* @__PURE__ */ f.jsx(st, { placement: e, title: t, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(Fg, { size: 12, fill: "#016DCF", fillSecondary: "#54A4EC" }) }) }), $t = ({ isConditional: e }) => /* @__PURE__ */ f.jsx("span", { className: `${e ? "text-yellow-500" : "text-red-500"}`, children: "*" }), Mg = ({ className: e, size: t = 16 }) => /* @__PURE__ */ f.jsxs(
@@ -2839,7 +2839,7 @@ const st = ({
2839
2839
  onAddGTNToDocument: S,
2840
2840
  ...T
2841
2841
  }, V) => {
2842
- const { t: O } = bn(), [G, A] = ne(!1), [_, $] = ne(!1), D = (U) => {
2842
+ const { t: O } = vn(), [G, A] = ne(!1), [_, $] = ne(!1), D = (U) => {
2843
2843
  S && S({
2844
2844
  key: E,
2845
2845
  value: U
@@ -2900,7 +2900,7 @@ const st = ({
2900
2900
  ]
2901
2901
  }
2902
2902
  ),
2903
- v?.length > 0 && v !== T.value && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx(
2903
+ v?.length > 0 && v !== T.value && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx(
2904
2904
  "button",
2905
2905
  {
2906
2906
  className: "cursor-pointer",
@@ -2916,7 +2916,7 @@ const st = ({
2916
2916
  }
2917
2917
  ) }),
2918
2918
  F && /* @__PURE__ */ f.jsx(
2919
- _n,
2919
+ Gn,
2920
2920
  {
2921
2921
  sx: {
2922
2922
  fontSize: 16,
@@ -2925,9 +2925,9 @@ const st = ({
2925
2925
  }
2926
2926
  }
2927
2927
  ),
2928
- C && /* @__PURE__ */ f.jsx(xn, {}),
2928
+ C && /* @__PURE__ */ f.jsx(bn, {}),
2929
2929
  /* @__PURE__ */ f.jsx(_t, { labels: c }),
2930
- g && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
2930
+ g && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
2931
2931
  ] }),
2932
2932
  M && _ && S ? /* @__PURE__ */ f.jsx(
2933
2933
  "button",
@@ -2936,8 +2936,8 @@ const st = ({
2936
2936
  className: "cursor-pointer",
2937
2937
  onClick: () => D(T?.value),
2938
2938
  type: "button",
2939
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
2940
- gn,
2939
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
2940
+ _n,
2941
2941
  {
2942
2942
  className: "text-primary-600",
2943
2943
  sx: {
@@ -3237,7 +3237,7 @@ const HH = Ue(
3237
3237
  onAddGTNToDocument: B,
3238
3238
  ...H
3239
3239
  }, L) => {
3240
- const { t: S } = bn(), [T, V] = ne(!1), O = () => {
3240
+ const { t: S } = vn(), [T, V] = ne(!1), O = () => {
3241
3241
  B && B({
3242
3242
  key: w,
3243
3243
  value: n || ""
@@ -3277,7 +3277,7 @@ const HH = Ue(
3277
3277
  }
3278
3278
  ),
3279
3279
  z && /* @__PURE__ */ f.jsx(
3280
- _n,
3280
+ Gn,
3281
3281
  {
3282
3282
  sx: {
3283
3283
  fontSize: 16,
@@ -3286,9 +3286,9 @@ const HH = Ue(
3286
3286
  }
3287
3287
  }
3288
3288
  ),
3289
- v && /* @__PURE__ */ f.jsx(xn, {}),
3289
+ v && /* @__PURE__ */ f.jsx(bn, {}),
3290
3290
  /* @__PURE__ */ f.jsx(_t, { labels: u || [] }),
3291
- g && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx(
3291
+ g && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx(
3292
3292
  "div",
3293
3293
  {
3294
3294
  className: "cursor-pointer",
@@ -3308,8 +3308,8 @@ const HH = Ue(
3308
3308
  className: "cursor-pointer",
3309
3309
  onClick: O,
3310
3310
  type: "button",
3311
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: S("Add to document"), children: /* @__PURE__ */ f.jsx(
3312
- gn,
3311
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: S("Add to document"), children: /* @__PURE__ */ f.jsx(
3312
+ _n,
3313
3313
  {
3314
3314
  className: "text-primary-600",
3315
3315
  sx: { fontSize: 16 }
@@ -3479,7 +3479,7 @@ const Zl = ({
3479
3479
  MasterDataModal: V,
3480
3480
  parseMasterDataFormula: O
3481
3481
  }, G) => {
3482
- const { t: A } = bn(), [_, $] = ne(!1), [D, U] = ne(null), [J, ae] = ne(!1), [Q, ce] = ne(""), [W, Y] = ne(null), fe = he(null), ee = G || fe;
3482
+ const { t: A } = vn(), [_, $] = ne(!1), [D, U] = ne(null), [J, ae] = ne(!1), [Q, ce] = ne(""), [W, Y] = ne(null), fe = he(null), ee = G || fe;
3483
3483
  pe(() => {
3484
3484
  U(r);
3485
3485
  }, [g]), pe(() => {
@@ -3541,7 +3541,7 @@ const Zl = ({
3541
3541
  }
3542
3542
  ),
3543
3543
  I && /* @__PURE__ */ f.jsx(
3544
- _n,
3544
+ Gn,
3545
3545
  {
3546
3546
  sx: {
3547
3547
  fontSize: 16,
@@ -3550,7 +3550,7 @@ const Zl = ({
3550
3550
  }
3551
3551
  }
3552
3552
  ),
3553
- E && /* @__PURE__ */ f.jsx(xn, {}),
3553
+ E && /* @__PURE__ */ f.jsx(bn, {}),
3554
3554
  /* @__PURE__ */ f.jsx(_t, { labels: p }),
3555
3555
  b && /* @__PURE__ */ f.jsx(
3556
3556
  st,
@@ -3568,8 +3568,8 @@ const Zl = ({
3568
3568
  className: "cursor-pointer",
3569
3569
  onClick: () => ze(r?.toString() || ""),
3570
3570
  type: "button",
3571
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: A("Add to document"), children: /* @__PURE__ */ f.jsx(
3572
- gn,
3571
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: A("Add to document"), children: /* @__PURE__ */ f.jsx(
3572
+ _n,
3573
3573
  {
3574
3574
  sx: {
3575
3575
  fontSize: 16,
@@ -3971,7 +3971,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
3971
3971
  isLiveField: _ = !1,
3972
3972
  ...$
3973
3973
  }, D) => {
3974
- const { t: U } = bn(), [J, ae] = ne(!1), Q = he(null), [ce, W] = ne(!1), [Y, fe] = ne(""), ee = () => {
3974
+ const { t: U } = vn(), [J, ae] = ne(!1), Q = he(null), [ce, W] = ne(!1), [Y, fe] = ne(""), ee = () => {
3975
3975
  if (G) {
3976
3976
  let be = "";
3977
3977
  ye == null ? be = "" : typeof ye == "string" || typeof ye == "number" ? be = String(ye) : Array.isArray(ye) ? be = ye.map((X) => typeof X == "object" && X !== null && "value" in X ? X.value : X).join(", ") : typeof ye == "object" && "value" in ye && (be = String(ye.value)), G({
@@ -4099,7 +4099,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4099
4099
  }
4100
4100
  ),
4101
4101
  _ && /* @__PURE__ */ f.jsx(
4102
- _n,
4102
+ Gn,
4103
4103
  {
4104
4104
  sx: {
4105
4105
  fontSize: 16,
@@ -4108,9 +4108,9 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4108
4108
  }
4109
4109
  }
4110
4110
  ),
4111
- h && /* @__PURE__ */ f.jsx(xn, {}),
4111
+ h && /* @__PURE__ */ f.jsx(bn, {}),
4112
4112
  /* @__PURE__ */ f.jsx(_t, { labels: o }),
4113
- u && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: u, children: /* @__PURE__ */ f.jsx(
4113
+ u && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: u, children: /* @__PURE__ */ f.jsx(
4114
4114
  "div",
4115
4115
  {
4116
4116
  className: "cursor-pointer",
@@ -4130,7 +4130,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4130
4130
  className: "cursor-pointer",
4131
4131
  onClick: ee,
4132
4132
  type: "button",
4133
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: U("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
4133
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: U("Add to document"), children: /* @__PURE__ */ f.jsx(_n, { className: "text-primary-600", sx: { fontSize: 16 } }) })
4134
4134
  }
4135
4135
  ) : null
4136
4136
  ] })
@@ -4217,7 +4217,7 @@ const Xg = /* @__PURE__ */ ln(Ug), Zg = (e) => Array.isArray(e) ? e.map((t) => t
4217
4217
  onClear: () => g && g(n === "tags" || n === "multiple" ? [] : null),
4218
4218
  maxTagCount: n === "tags" && z ? void 0 : "responsive",
4219
4219
  maxTagPlaceholder: (be) => /* @__PURE__ */ f.jsx(
4220
- ht,
4220
+ pt,
4221
4221
  {
4222
4222
  styles: {
4223
4223
  root: {
@@ -4799,7 +4799,7 @@ var m7 = /* @__PURE__ */ function() {
4799
4799
  }, e;
4800
4800
  }(), gt = "-ms-", Jl = "-moz-", Re = "-webkit-", y2 = "comm", Gs = "rule", _s = "decl", p7 = "@import", w2 = "@keyframes", g7 = "@layer", v7 = Math.abs, ba = String.fromCharCode, b7 = Object.assign;
4801
4801
  function x7(e, t) {
4802
- return mt(e, 0) ^ 45 ? (((t << 2 ^ mt(e, 0)) << 2 ^ mt(e, 1)) << 2 ^ mt(e, 2)) << 2 ^ mt(e, 3) : 0;
4802
+ return ht(e, 0) ^ 45 ? (((t << 2 ^ ht(e, 0)) << 2 ^ ht(e, 1)) << 2 ^ ht(e, 2)) << 2 ^ ht(e, 3) : 0;
4803
4803
  }
4804
4804
  function E2(e) {
4805
4805
  return e.trim();
@@ -4813,7 +4813,7 @@ function Ve(e, t, n) {
4813
4813
  function qo(e, t) {
4814
4814
  return e.indexOf(t);
4815
4815
  }
4816
- function mt(e, t) {
4816
+ function ht(e, t) {
4817
4817
  return e.charCodeAt(t) | 0;
4818
4818
  }
4819
4819
  function Di(e, t, n) {
@@ -4842,13 +4842,13 @@ function E7() {
4842
4842
  return ct;
4843
4843
  }
4844
4844
  function C7() {
4845
- return ct = Nt > 0 ? mt(_r, --Nt) : 0, Pr--, ct === 10 && (Pr = 1, xa--), ct;
4845
+ return ct = Nt > 0 ? ht(_r, --Nt) : 0, Pr--, ct === 10 && (Pr = 1, xa--), ct;
4846
4846
  }
4847
4847
  function Ot() {
4848
- return ct = Nt < C2 ? mt(_r, Nt++) : 0, Pr++, ct === 10 && (Pr = 1, xa++), ct;
4848
+ return ct = Nt < C2 ? ht(_r, Nt++) : 0, Pr++, ct === 10 && (Pr = 1, xa++), ct;
4849
4849
  }
4850
4850
  function mn() {
4851
- return mt(_r, Nt);
4851
+ return ht(_r, Nt);
4852
4852
  }
4853
4853
  function Nl() {
4854
4854
  return Nt;
@@ -4954,7 +4954,7 @@ function Ll(e, t, n, r, i, l, o, s, c) {
4954
4954
  switch (g = w, w = Ot()) {
4955
4955
  // (
4956
4956
  case 40:
4957
- if (g != 108 && mt(z, h - 1) == 58) {
4957
+ if (g != 108 && ht(z, h - 1) == 58) {
4958
4958
  qo(z += Ve(Dl(w), "&", "&\f"), "&\f") != -1 && (x = -1);
4959
4959
  break;
4960
4960
  }
@@ -5011,7 +5011,7 @@ function Ll(e, t, n, r, i, l, o, s, c) {
5011
5011
  if (d === 0)
5012
5012
  Ll(z, t, y, y, M, l, h, s, E);
5013
5013
  else
5014
- switch (m === 99 && mt(z, 3) === 110 ? 100 : m) {
5014
+ switch (m === 99 && ht(z, 3) === 110 ? 100 : m) {
5015
5015
  // d l m s
5016
5016
  case 100:
5017
5017
  case 108:
@@ -5254,13 +5254,13 @@ function z2(e, t) {
5254
5254
  case 5789:
5255
5255
  case 5021:
5256
5256
  case 4765:
5257
- if (cn(e) - 1 - t > 6) switch (mt(e, t + 1)) {
5257
+ if (cn(e) - 1 - t > 6) switch (ht(e, t + 1)) {
5258
5258
  // (m)ax-content, (m)in-content
5259
5259
  case 109:
5260
- if (mt(e, t + 4) !== 45) break;
5260
+ if (ht(e, t + 4) !== 45) break;
5261
5261
  // (f)ill-available, (f)it-content
5262
5262
  case 102:
5263
- return Ve(e, /(.+:)(.+)-([^]+)/, "$1" + Re + "$2-$3$1" + Jl + (mt(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
5263
+ return Ve(e, /(.+:)(.+)-([^]+)/, "$1" + Re + "$2-$3$1" + Jl + (ht(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
5264
5264
  // (s)tretch
5265
5265
  case 115:
5266
5266
  return ~qo(e, "stretch") ? z2(Ve(e, "stretch", "fill-available"), t) + e : e;
@@ -5268,21 +5268,21 @@ function z2(e, t) {
5268
5268
  break;
5269
5269
  // position: sticky
5270
5270
  case 4949:
5271
- if (mt(e, t + 1) !== 115) break;
5271
+ if (ht(e, t + 1) !== 115) break;
5272
5272
  // display: (flex|inline-flex)
5273
5273
  case 6444:
5274
- switch (mt(e, cn(e) - 3 - (~qo(e, "!important") && 10))) {
5274
+ switch (ht(e, cn(e) - 3 - (~qo(e, "!important") && 10))) {
5275
5275
  // stic(k)y
5276
5276
  case 107:
5277
5277
  return Ve(e, ":", ":" + Re) + e;
5278
5278
  // (inline-)?fl(e)x
5279
5279
  case 101:
5280
- return Ve(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Re + (mt(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Re + "$2$3$1" + gt + "$2box$3") + e;
5280
+ return Ve(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + Re + (ht(e, 14) === 45 ? "inline-" : "") + "box$3$1" + Re + "$2$3$1" + gt + "$2box$3") + e;
5281
5281
  }
5282
5282
  break;
5283
5283
  // writing-mode
5284
5284
  case 5936:
5285
- switch (mt(e, t + 11)) {
5285
+ switch (ht(e, t + 11)) {
5286
5286
  // vertical-l(r)
5287
5287
  case 114:
5288
5288
  return Re + e + gt + Ve(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
@@ -5933,7 +5933,7 @@ function fv() {
5933
5933
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5934
5934
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
5935
5935
  }
5936
- function Rn(e, t) {
5936
+ function On(e, t) {
5937
5937
  return uv(e) || dv(e, t) || x2(e, t) || fv();
5938
5938
  }
5939
5939
  function gr(e, t) {
@@ -5980,7 +5980,7 @@ function wa() {
5980
5980
  function N2(e) {
5981
5981
  return L2(e) ? (e.nodeName || "").toLowerCase() : "#document";
5982
5982
  }
5983
- function Gn(e) {
5983
+ function Vn(e) {
5984
5984
  var t;
5985
5985
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5986
5986
  }
@@ -5989,16 +5989,16 @@ function D2(e) {
5989
5989
  return (t = (L2(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5990
5990
  }
5991
5991
  function L2(e) {
5992
- return wa() ? e instanceof Node || e instanceof Gn(e).Node : !1;
5992
+ return wa() ? e instanceof Node || e instanceof Vn(e).Node : !1;
5993
5993
  }
5994
5994
  function vv(e) {
5995
- return wa() ? e instanceof Element || e instanceof Gn(e).Element : !1;
5995
+ return wa() ? e instanceof Element || e instanceof Vn(e).Element : !1;
5996
5996
  }
5997
5997
  function Xs(e) {
5998
- return wa() ? e instanceof HTMLElement || e instanceof Gn(e).HTMLElement : !1;
5998
+ return wa() ? e instanceof HTMLElement || e instanceof Vn(e).HTMLElement : !1;
5999
5999
  }
6000
6000
  function k1(e) {
6001
- return !wa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Gn(e).ShadowRoot;
6001
+ return !wa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Vn(e).ShadowRoot;
6002
6002
  }
6003
6003
  const bv = /* @__PURE__ */ new Set(["inline", "contents"]);
6004
6004
  function T2(e) {
@@ -6018,7 +6018,7 @@ function wv(e) {
6018
6018
  return yv.has(N2(e));
6019
6019
  }
6020
6020
  function Zs(e) {
6021
- return Gn(e).getComputedStyle(e);
6021
+ return Vn(e).getComputedStyle(e);
6022
6022
  }
6023
6023
  function Ev(e) {
6024
6024
  if (N2(e) === "html")
@@ -6039,7 +6039,7 @@ function B2(e) {
6039
6039
  function Ql(e, t, n) {
6040
6040
  var r;
6041
6041
  t === void 0 && (t = []), n === void 0 && (n = !0);
6042
- const i = B2(e), l = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Gn(i);
6042
+ const i = B2(e), l = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Vn(i);
6043
6043
  if (l) {
6044
6044
  const s = ts(o);
6045
6045
  return t.concat(o, o.visualViewport || [], T2(i) ? i : [], s && n ? Ql(s) : []);
@@ -6079,7 +6079,7 @@ function I1(e) {
6079
6079
  }
6080
6080
  const kv = /* @__PURE__ */ ql(0);
6081
6081
  function Iv(e) {
6082
- const t = Gn(e);
6082
+ const t = Vn(e);
6083
6083
  return !xv() || !t.visualViewport ? kv : {
6084
6084
  x: t.visualViewport.offsetLeft,
6085
6085
  y: t.visualViewport.offsetTop
@@ -6096,11 +6096,11 @@ function z1(e, t, n, r) {
6096
6096
  const s = zv() ? Iv(l) : ql(0);
6097
6097
  let c = (i.left + s.x) / o.x, u = (i.top + s.y) / o.y, d = i.width / o.x, h = i.height / o.y;
6098
6098
  if (l) {
6099
- const m = Gn(l), p = r;
6099
+ const m = Vn(l), p = r;
6100
6100
  let g = m, b = ts(g);
6101
6101
  for (; b && r && p !== g; ) {
6102
6102
  const v = I1(b), x = b.getBoundingClientRect(), w = Zs(b), C = x.left + (b.clientLeft + parseFloat(w.paddingLeft)) * v.x, M = x.top + (b.clientTop + parseFloat(w.paddingTop)) * v.y;
6103
- c *= v.x, u *= v.y, d *= v.x, h *= v.y, c += C, u += M, g = Gn(b), b = ts(g);
6103
+ c *= v.x, u *= v.y, d *= v.x, h *= v.y, c += C, u += M, g = Vn(b), b = ts(g);
6104
6104
  }
6105
6105
  }
6106
6106
  return gv({
@@ -6311,11 +6311,11 @@ var Vv = function(t) {
6311
6311
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
6312
6312
  r[i - 1] = arguments[i];
6313
6313
  var l = Object.entries(t).filter(function(o) {
6314
- var s = Rn(o, 1), c = s[0];
6314
+ var s = On(o, 1), c = s[0];
6315
6315
  return !r.includes(c);
6316
6316
  });
6317
6317
  return l.reduce(function(o, s) {
6318
- var c = Rn(s, 2), u = c[0], d = c[1];
6318
+ var c = On(s, 2), u = c[0], d = c[1];
6319
6319
  return o[u] = d, o;
6320
6320
  }, {});
6321
6321
  };
@@ -6408,7 +6408,7 @@ var R2 = function(t) {
6408
6408
  marginTop: s.menuGutter
6409
6409
  });
6410
6410
  }, V2 = /* @__PURE__ */ X0(null), Wv = function(t) {
6411
- var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, o = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = Ns(V2) || {}, d = u.setPortalPlacement, h = he(null), m = ne(i), p = Rn(m, 2), g = p[0], b = p[1], v = ne(null), x = Rn(v, 2), w = x[0], C = x[1], M = c.spacing.controlHeight;
6411
+ var n = t.children, r = t.minMenuHeight, i = t.maxMenuHeight, l = t.menuPlacement, o = t.menuPosition, s = t.menuShouldScrollIntoView, c = t.theme, u = Ns(V2) || {}, d = u.setPortalPlacement, h = he(null), m = ne(i), p = On(m, 2), g = p[0], b = p[1], v = ne(null), x = On(v, 2), w = x[0], C = x[1], M = c.spacing.controlHeight;
6412
6412
  return ns(function() {
6413
6413
  var E = h.current;
6414
6414
  if (E) {
@@ -6495,11 +6495,11 @@ var qv = function(t) {
6495
6495
  zIndex: 1
6496
6496
  };
6497
6497
  }, Qv = function(t) {
6498
- var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = he(null), u = he(null), d = ne(R2(o)), h = Rn(d, 2), m = h[0], p = h[1], g = qe(function() {
6498
+ var n = t.appendTo, r = t.children, i = t.controlElement, l = t.innerProps, o = t.menuPlacement, s = t.menuPosition, c = he(null), u = he(null), d = ne(R2(o)), h = On(d, 2), m = h[0], p = h[1], g = qe(function() {
6499
6499
  return {
6500
6500
  setPortalPlacement: p
6501
6501
  };
6502
- }, []), b = ne(null), v = Rn(b, 2), x = v[0], w = v[1], C = ke(function() {
6502
+ }, []), b = ne(null), v = On(b, 2), x = v[0], w = v[1], C = ke(function() {
6503
6503
  if (i) {
6504
6504
  var z = Bv(i), I = s === "fixed" ? 0 : window.pageYOffset, k = z[m] + I;
6505
6505
  (k !== x?.offset || z.left !== x?.rect.left || z.width !== x?.rect.width) && w({
@@ -8707,7 +8707,7 @@ var sd = function(t) {
8707
8707
  Ks.defaultProps = A8;
8708
8708
  var B8 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
8709
8709
  function cd(e) {
8710
- var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, o = l === void 0 ? null : l, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, h = e.onMenuClose, m = e.onMenuOpen, p = e.value, g = gr(e, B8), b = ne(s !== void 0 ? s : n), v = Rn(b, 2), x = v[0], w = v[1], C = ne(c !== void 0 ? c : i), M = Rn(C, 2), E = M[0], y = M[1], z = ne(p !== void 0 ? p : o), I = Rn(z, 2), k = I[0], F = I[1], N = ke(function(O, G) {
8710
+ var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, i = r === void 0 ? !1 : r, l = e.defaultValue, o = l === void 0 ? null : l, s = e.inputValue, c = e.menuIsOpen, u = e.onChange, d = e.onInputChange, h = e.onMenuClose, m = e.onMenuOpen, p = e.value, g = gr(e, B8), b = ne(s !== void 0 ? s : n), v = On(b, 2), x = v[0], w = v[1], C = ne(c !== void 0 ? c : i), M = On(C, 2), E = M[0], y = M[1], z = ne(p !== void 0 ? p : o), I = On(z, 2), k = I[0], F = I[1], N = ke(function(O, G) {
8711
8711
  typeof u == "function" && u(O, G), F(O);
8712
8712
  }, [u]), B = ke(function(O, G) {
8713
8713
  var A;
@@ -8932,7 +8932,7 @@ const R8 = ({
8932
8932
  u && /* @__PURE__ */ f.jsx($t, {})
8933
8933
  ] }),
8934
8934
  /* @__PURE__ */ f.jsx(_t, { labels: p }),
8935
- m && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
8935
+ m && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
8936
8936
  ]
8937
8937
  }
8938
8938
  ),
@@ -10029,7 +10029,7 @@ const md = ({
10029
10029
  allowAStarSearch: v = !1,
10030
10030
  isDark: x = !1,
10031
10031
  ...w
10032
- } = e, { t: C } = bn(), [M, E] = ne(!1), [y, z] = ne("search"), I = he(null), { searchCount: k, searchPointer: F, setSearchPointer: N } = g || {}, B = () => {
10032
+ } = e, { t: C } = vn(), [M, E] = ne(!1), [y, z] = ne("search"), I = he(null), { searchCount: k, searchPointer: F, setSearchPointer: N } = g || {}, B = () => {
10033
10033
  E(!0), z(u || n || C("Search"));
10034
10034
  const L = h || I;
10035
10035
  L.current && L.current.focus();
@@ -10193,7 +10193,7 @@ const J8 = (e, t, n, r = "medium") => {
10193
10193
  onAddGTNToDocument: O,
10194
10194
  AddToDocumentIcon: G
10195
10195
  }, A) => {
10196
- const { t: _ } = bn(), $ = u === hi.TOP, D = u === hi.LEFT, U = u === hi.RIGHT, [J, ae] = ne(!1), Q = () => {
10196
+ const { t: _ } = vn(), $ = u === hi.TOP, D = u === hi.LEFT, U = u === hi.RIGHT, [J, ae] = ne(!1), Q = () => {
10197
10197
  O && O({
10198
10198
  key: C,
10199
10199
  value: t ? "Yes" : "No"
@@ -10237,23 +10237,13 @@ const J8 = (e, t, n, r = "medium") => {
10237
10237
  ]
10238
10238
  }
10239
10239
  ),
10240
- y && /* @__PURE__ */ f.jsx(_n, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
10241
- p && /* @__PURE__ */ f.jsx(xn, {}),
10240
+ y && /* @__PURE__ */ f.jsx(Gn, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
10241
+ p && /* @__PURE__ */ f.jsx(bn, {}),
10242
10242
  /* @__PURE__ */ f.jsx(_t, { labels: m || [] }),
10243
10243
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
10244
10244
  ]
10245
10245
  }
10246
10246
  ),
10247
- /* @__PURE__ */ f.jsx(
10248
- "button",
10249
- {
10250
- id: "btn-toggle-add-to-document",
10251
- className: "cursor-pointer",
10252
- onClick: Q,
10253
- type: "button",
10254
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10255
- }
10256
- ),
10257
10247
  e && J ? V ? V(Q) : /* @__PURE__ */ f.jsx(
10258
10248
  "button",
10259
10249
  {
@@ -10261,7 +10251,7 @@ const J8 = (e, t, n, r = "medium") => {
10261
10251
  className: "cursor-pointer",
10262
10252
  onClick: Q,
10263
10253
  type: "button",
10264
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(gn, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10254
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: _("Add to document"), children: /* @__PURE__ */ f.jsx(_n, { className: "text-primary-600", sx: { fontSize: 16 } }) })
10265
10255
  }
10266
10256
  ) : null
10267
10257
  ] }),
@@ -16724,7 +16714,7 @@ const VE = {
16724
16714
  RiskDetailsCard: S,
16725
16715
  ...T
16726
16716
  }, V) => {
16727
- const { t: O } = bn(), [G, A] = ne(!1), [_, $] = ne([]), [D, U] = ne(""), [J, ae] = ne(
16717
+ const { t: O } = vn(), [G, A] = ne(!1), [_, $] = ne([]), [D, U] = ne(""), [J, ae] = ne(
16728
16718
  M || "USD"
16729
16719
  ), [Q, ce] = ne(!1), W = (K) => {
16730
16720
  B && B({
@@ -16880,7 +16870,7 @@ const VE = {
16880
16870
  }
16881
16871
  ),
16882
16872
  z && /* @__PURE__ */ f.jsx(
16883
- _n,
16873
+ Gn,
16884
16874
  {
16885
16875
  sx: {
16886
16876
  fontSize: 16,
@@ -16889,7 +16879,7 @@ const VE = {
16889
16879
  }
16890
16880
  }
16891
16881
  ),
16892
- g && /* @__PURE__ */ f.jsx(xn, {}),
16882
+ g && /* @__PURE__ */ f.jsx(bn, {}),
16893
16883
  /* @__PURE__ */ f.jsx(_t, { labels: c }),
16894
16884
  h && /* @__PURE__ */ f.jsx(st, { placement: "top", title: h, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
16895
16885
  ] }),
@@ -16900,8 +16890,8 @@ const VE = {
16900
16890
  className: "cursor-pointer",
16901
16891
  onClick: () => W(Y(n)),
16902
16892
  type: "button",
16903
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
16904
- gn,
16893
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
16894
+ _n,
16905
16895
  {
16906
16896
  className: "text-primary-600",
16907
16897
  sx: {
@@ -18190,7 +18180,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18190
18180
  formatDateForGTN: N,
18191
18181
  ...B
18192
18182
  }, H) => {
18193
- const { t: L } = bn(), [S, T] = ne(!1), [V, O] = ne(null), [G, A] = ne(
18183
+ const { t: L } = vn(), [S, T] = ne(!1), [V, O] = ne(null), [G, A] = ne(
18194
18184
  null
18195
18185
  ), _ = p || (c ? ho : CC), $ = B?.id || `date-picker-${zC()}`, D = he(null);
18196
18186
  eu("paste", (W) => {
@@ -18412,7 +18402,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18412
18402
  }
18413
18403
  ) }),
18414
18404
  y && /* @__PURE__ */ f.jsx(
18415
- _n,
18405
+ Gn,
18416
18406
  {
18417
18407
  sx: {
18418
18408
  fontSize: 16,
@@ -18421,7 +18411,7 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18421
18411
  }
18422
18412
  }
18423
18413
  ),
18424
- b && /* @__PURE__ */ f.jsx(xn, {}),
18414
+ b && /* @__PURE__ */ f.jsx(bn, {}),
18425
18415
  /* @__PURE__ */ f.jsx(_t, { labels: u }),
18426
18416
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
18427
18417
  ] }),
@@ -18432,8 +18422,8 @@ const CC = "MM/DD/YYYY", ho = "MM/DD/YYYY - hh:mm A", kC = {
18432
18422
  className: "cursor-pointer",
18433
18423
  onClick: () => U(t),
18434
18424
  type: "button",
18435
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ f.jsx(
18436
- gn,
18425
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ f.jsx(
18426
+ _n,
18437
18427
  {
18438
18428
  className: "text-primary-600",
18439
18429
  sx: {
@@ -18623,7 +18613,7 @@ const SC = Ue(
18623
18613
  showDeprecatedFieldWarning: H,
18624
18614
  DynamicDataModal: L
18625
18615
  }, S) => {
18626
- const { t: T } = bn(), [V, O] = ne(!1), [G, A] = ne(r), [_, $] = ne(!1), D = he(null), U = S || D, J = () => {
18616
+ const { t: T } = vn(), [V, O] = ne(!1), [G, A] = ne(r), [_, $] = ne(!1), D = he(null), U = S || D, J = () => {
18627
18617
  B?.(!_), $(!_);
18628
18618
  }, ae = (Y) => {
18629
18619
  if (Y.keyCode === 9 || Y.key === "Enter") {
@@ -18678,7 +18668,7 @@ const SC = Ue(
18678
18668
  }
18679
18669
  ),
18680
18670
  M && /* @__PURE__ */ f.jsx(
18681
- _n,
18671
+ Gn,
18682
18672
  {
18683
18673
  sx: {
18684
18674
  fontSize: 16,
@@ -18687,7 +18677,7 @@ const SC = Ue(
18687
18677
  }
18688
18678
  }
18689
18679
  ),
18690
- x && /* @__PURE__ */ f.jsx(xn, {}),
18680
+ x && /* @__PURE__ */ f.jsx(bn, {}),
18691
18681
  /* @__PURE__ */ f.jsx(_t, { labels: h }),
18692
18682
  m && /* @__PURE__ */ f.jsx(st, { placement: "top", title: m, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
18693
18683
  ] }),
@@ -18698,8 +18688,8 @@ const SC = Ue(
18698
18688
  className: "cursor-pointer",
18699
18689
  onClick: () => ce(r?.toString() || ""),
18700
18690
  type: "button",
18701
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: T("Add to document"), children: /* @__PURE__ */ f.jsx(
18702
- gn,
18691
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: T("Add to document"), children: /* @__PURE__ */ f.jsx(
18692
+ _n,
18703
18693
  {
18704
18694
  sx: {
18705
18695
  fontSize: 16,
@@ -18817,7 +18807,7 @@ function i4(e) {
18817
18807
  } else for (n in e) e[n] && (r && (r += " "), r += n);
18818
18808
  return r;
18819
18809
  }
18820
- function zn() {
18810
+ function In() {
18821
18811
  for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = i4(e)) && (r && (r += " "), r += t);
18822
18812
  return r;
18823
18813
  }
@@ -18992,7 +18982,7 @@ function TC(e) {
18992
18982
  let { delay: t, isRunning: n, closeToast: r, type: i = "default", hide: l, className: o, style: s, controlledProgress: c, progress: u, rtl: d, isIn: h, theme: m } = e;
18993
18983
  const p = l || c && u === 0, g = { ...s, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
18994
18984
  c && (g.transform = `scaleX(${u})`);
18995
- const b = zn("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${m}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": d }), v = Pt(o) ? o({ rtl: d, type: i, defaultClassName: b }) : zn(b, o), x = { [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
18985
+ const b = In("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${m}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": d }), v = Pt(o) ? o({ rtl: d, type: i, defaultClassName: b }) : In(b, o), x = { [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
18996
18986
  h && r();
18997
18987
  } };
18998
18988
  return a.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": p }, a.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${i}` }), a.createElement("div", { role: "progressbar", "aria-hidden": p ? "true" : "false", "aria-label": "notification timer", className: v, style: g, ...x }));
@@ -19076,7 +19066,7 @@ const jC = typeof window < "u" ? Ds : pe, dl = (e) => {
19076
19066
  }, spinner: function() {
19077
19067
  return a.createElement("div", { className: "Toastify__spinner" });
19078
19068
  } }, PC = (e) => {
19079
- const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i, playToast: l } = LC(e), { closeButton: o, children: s, autoClose: c, onClick: u, type: d, hideProgressBar: h, closeToast: m, transition: p, position: g, className: b, style: v, bodyClassName: x, bodyStyle: w, progressClassName: C, progressStyle: M, updateId: E, role: y, progress: z, rtl: I, toastId: k, deleteToast: F, isIn: N, isLoading: B, closeOnClick: H, theme: L } = e, S = zn("Toastify__toast", `Toastify__toast-theme--${L}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": H }), T = Pt(b) ? b({ rtl: I, position: g, type: d, defaultClassName: S }) : zn(S, b), V = function(_) {
19069
+ const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: i, playToast: l } = LC(e), { closeButton: o, children: s, autoClose: c, onClick: u, type: d, hideProgressBar: h, closeToast: m, transition: p, position: g, className: b, style: v, bodyClassName: x, bodyStyle: w, progressClassName: C, progressStyle: M, updateId: E, role: y, progress: z, rtl: I, toastId: k, deleteToast: F, isIn: N, isLoading: B, closeOnClick: H, theme: L } = e, S = In("Toastify__toast", `Toastify__toast-theme--${L}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": H }), T = Pt(b) ? b({ rtl: I, position: g, type: d, defaultClassName: S }) : In(S, b), V = function(_) {
19080
19070
  let { theme: $, type: D, isLoading: U, icon: J } = _, ae = null;
19081
19071
  const Q = { theme: $, type: D };
19082
19072
  return J === !1 || (Pt(J) ? ae = J({ ...Q, isLoading: U }) : Nr(J) ? ae = $o(J, Q) : U ? ae = mo.spinner() : ((ce) => ce in mo)(D) && (ae = mo[D](Q))), ae;
@@ -19087,7 +19077,7 @@ const jC = typeof window < "u" ? Ds : pe, dl = (e) => {
19087
19077
  return a.createElement("button", { className: `Toastify__close-button Toastify__close-button--${D}`, type: "button", onClick: (J) => {
19088
19078
  J.stopPropagation(), $(J);
19089
19079
  }, "aria-label": U }, a.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, a.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
19090
- }(G)), a.createElement(p, { isIn: N, done: F, position: g, preventExitTransition: n, nodeRef: r, playToast: l }, a.createElement("div", { id: k, onClick: u, "data-in": N, className: T, ...i, style: v, ref: r }, a.createElement("div", { ...N && { role: y }, className: Pt(x) ? x({ type: d }) : zn("Toastify__toast-body", x), style: w }, V != null && a.createElement("div", { className: zn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, V), a.createElement("div", null, s)), A, a.createElement(TC, { ...E && !O ? { key: `pb-${E}` } : {}, rtl: I, theme: L, delay: c, isRunning: t, isIn: N, closeToast: m, hide: h, type: d, style: M, className: C, controlledProgress: O, progress: z || 0 })));
19080
+ }(G)), a.createElement(p, { isIn: N, done: F, position: g, preventExitTransition: n, nodeRef: r, playToast: l }, a.createElement("div", { id: k, onClick: u, "data-in": N, className: T, ...i, style: v, ref: r }, a.createElement("div", { ...N && { role: y }, className: Pt(x) ? x({ type: d }) : In("Toastify__toast-body", x), style: w }, V != null && a.createElement("div", { className: In("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !B }) }, V), a.createElement("div", null, s)), A, a.createElement(TC, { ...E && !O ? { key: `pb-${E}` } : {}, rtl: I, theme: L, delay: c, isRunning: t, isIn: N, closeToast: m, hide: h, type: d, style: M, className: C, controlledProgress: O, progress: z || 0 })));
19091
19081
  }, ka = function(e, t) {
19092
19082
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
19093
19083
  }, OC = Ca(ka("bounce", !0)), RC = Ca(ka("slide", !0));
@@ -19098,8 +19088,8 @@ function GC(e) {
19098
19088
  let t = { ...VC, ...e };
19099
19089
  const n = e.stacked, [r, i] = ne(!0), l = he(null), { getToastToRender: o, isToastActive: s, count: c } = DC(t), { className: u, style: d, rtl: h, containerId: m } = t;
19100
19090
  function p(b) {
19101
- const v = zn("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": h });
19102
- return Pt(u) ? u({ position: b, rtl: h, defaultClassName: v }) : zn(v, Rl(u));
19091
+ const v = In("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": h });
19092
+ return Pt(u) ? u({ position: b, rtl: h, defaultClassName: v }) : In(v, Rl(u));
19103
19093
  }
19104
19094
  function g() {
19105
19095
  n && (i(!0), Ne.play());
@@ -20468,11 +20458,11 @@ function hk() {
20468
20458
  return n.writeUnknownFields && this.writeUnknownFields(e, t), t;
20469
20459
  } });
20470
20460
  }
20471
- let In = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Ia = [];
20472
- for (let e = 0; e < In.length; e++)
20473
- Ia[In[e].charCodeAt(0)] = e;
20474
- Ia[45] = In.indexOf("+");
20475
- Ia[95] = In.indexOf("/");
20461
+ let kn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), Ia = [];
20462
+ for (let e = 0; e < kn.length; e++)
20463
+ Ia[kn[e].charCodeAt(0)] = e;
20464
+ Ia[45] = kn.indexOf("+");
20465
+ Ia[95] = kn.indexOf("/");
20476
20466
  const za = {
20477
20467
  /**
20478
20468
  * Decodes a base64 string to a byte array.
@@ -20534,16 +20524,16 @@ const za = {
20534
20524
  for (let l = 0; l < e.length; l++)
20535
20525
  switch (r = e[l], n) {
20536
20526
  case 0:
20537
- t += In[r >> 2], i = (r & 3) << 4, n = 1;
20527
+ t += kn[r >> 2], i = (r & 3) << 4, n = 1;
20538
20528
  break;
20539
20529
  case 1:
20540
- t += In[i | r >> 4], i = (r & 15) << 2, n = 2;
20530
+ t += kn[i | r >> 4], i = (r & 15) << 2, n = 2;
20541
20531
  break;
20542
20532
  case 2:
20543
- t += In[i | r >> 6], t += In[r & 63], n = 0;
20533
+ t += kn[i | r >> 6], t += kn[r & 63], n = 0;
20544
20534
  break;
20545
20535
  }
20546
- return n && (t += In[i], t += "=", n == 1 && (t += "=")), t;
20536
+ return n && (t += kn[i], t += "=", n == 1 && (t += "=")), t;
20547
20537
  }
20548
20538
  }, su = {
20549
20539
  ignoreUnknownFields: !1
@@ -21233,7 +21223,7 @@ function Sk(e) {
21233
21223
  }
21234
21224
  return hl[e];
21235
21225
  }
21236
- class pt extends Error {
21226
+ class mt extends Error {
21237
21227
  /**
21238
21228
  * Create a new ConnectError.
21239
21229
  * If no code is provided, code "unknown" is used.
@@ -21257,7 +21247,7 @@ class pt extends Error {
21257
21247
  * ConnectError.
21258
21248
  */
21259
21249
  static from(t, n = Ge.Unknown) {
21260
- return t instanceof pt ? t : t instanceof Error ? t.name == "AbortError" ? new pt(t.message, Ge.Canceled) : new pt(t.message, n, void 0, void 0, t) : new pt(String(t), n, void 0, void 0, t);
21250
+ return t instanceof mt ? t : t instanceof Error ? t.name == "AbortError" ? new mt(t.message, Ge.Canceled) : new mt(t.message, n, void 0, void 0, t) : new mt(String(t), n, void 0, void 0, t);
21261
21251
  }
21262
21252
  findDetails(t) {
21263
21253
  const n = "typeName" in t ? {
@@ -21331,7 +21321,7 @@ function Lk(e) {
21331
21321
  i.close();
21332
21322
  return;
21333
21323
  }
21334
- i.error(new pt("premature end of stream", Ge.DataLoss));
21324
+ i.error(new mt("premature end of stream", Ge.DataLoss));
21335
21325
  return;
21336
21326
  }
21337
21327
  const o = n.subarray(5, 5 + l.length);
@@ -21530,7 +21520,7 @@ function $k(e, t, n) {
21530
21520
  }
21531
21521
  }
21532
21522
  if (!m)
21533
- throw new pt("protocol error: missing response message", Ge.Internal);
21523
+ throw new mt("protocol error: missing response message", Ge.Internal);
21534
21524
  return (d = i?.onTrailer) === null || d === void 0 || d.call(i, h.trailer), m;
21535
21525
  };
21536
21526
  }
@@ -21571,7 +21561,7 @@ function Uk(...e) {
21571
21561
  }
21572
21562
  function Xk(e) {
21573
21563
  const t = new AbortController(), n = () => {
21574
- t.abort(new pt("the operation timed out", Ge.DeadlineExceeded));
21564
+ t.abort(new mt("the operation timed out", Ge.DeadlineExceeded));
21575
21565
  };
21576
21566
  let r;
21577
21567
  return e !== void 0 && (e <= 0 ? n() : r = setTimeout(n, e)), {
@@ -21639,7 +21629,7 @@ function mu(e, t) {
21639
21629
  return e.fromBinary(n, t);
21640
21630
  } catch (r) {
21641
21631
  const i = r instanceof Error ? r.message : String(r);
21642
- throw new pt(`parse binary: ${i}`, Ge.InvalidArgument);
21632
+ throw new mt(`parse binary: ${i}`, Ge.InvalidArgument);
21643
21633
  }
21644
21634
  },
21645
21635
  serialize(n) {
@@ -21647,7 +21637,7 @@ function mu(e, t) {
21647
21637
  return n.toBinary(t);
21648
21638
  } catch (r) {
21649
21639
  const i = r instanceof Error ? r.message : String(r);
21650
- throw new pt(`serialize binary: ${i}`, Ge.Internal);
21640
+ throw new mt(`serialize binary: ${i}`, Ge.Internal);
21651
21641
  }
21652
21642
  }
21653
21643
  };
@@ -21661,7 +21651,7 @@ function pu(e, t) {
21661
21651
  const c = l.decode(s);
21662
21652
  return e.fromJsonString(c, o);
21663
21653
  } catch (c) {
21664
- throw pt.from(c, Ge.InvalidArgument);
21654
+ throw mt.from(c, Ge.InvalidArgument);
21665
21655
  }
21666
21656
  },
21667
21657
  serialize(s) {
@@ -21669,7 +21659,7 @@ function pu(e, t) {
21669
21659
  const c = s.toJsonString(o);
21670
21660
  return i.encode(c);
21671
21661
  } catch (c) {
21672
- throw pt.from(c, Ge.Internal);
21662
+ throw mt.from(c, Ge.Internal);
21673
21663
  }
21674
21664
  }
21675
21665
  };
@@ -21691,7 +21681,7 @@ function M4(e, t, n) {
21691
21681
  const i = e.message;
21692
21682
  if (i != null && typeof i != "string")
21693
21683
  throw n;
21694
- const l = new pt(i ?? "", r, t);
21684
+ const l = new mt(i ?? "", r, t);
21695
21685
  if ("details" in e && Array.isArray(e.details))
21696
21686
  for (const o of e.details) {
21697
21687
  if (o === null || typeof o != "object" || Array.isArray(o) || typeof o.type != "string" || typeof o.value != "string" || "debug" in o && typeof o.debug != "object")
@@ -21710,7 +21700,7 @@ function M4(e, t, n) {
21710
21700
  }
21711
21701
  const gu = 2;
21712
21702
  function tI(e) {
21713
- const t = new pt("invalid end stream", Ge.InvalidArgument);
21703
+ const t = new mt("invalid end stream", Ge.InvalidArgument);
21714
21704
  let n;
21715
21705
  try {
21716
21706
  n = JSON.parse(typeof e == "string" ? e : new TextDecoder().decode(e));
@@ -21782,7 +21772,7 @@ function xu(e, t, n, r) {
21782
21772
  function yu(e, t, n) {
21783
21773
  const r = n.get("Content-Type"), i = eI(r);
21784
21774
  if (t !== 200) {
21785
- const l = new pt(`HTTP ${t}`, aI(t), n);
21775
+ const l = new mt(`HTTP ${t}`, aI(t), n);
21786
21776
  if (e == Zt.Unary && i && !i.binary)
21787
21777
  return { isUnaryError: !0, unaryError: l };
21788
21778
  throw l;
@@ -21842,7 +21832,7 @@ function N4(e) {
21842
21832
  return [
21843
21833
  r.signal,
21844
21834
  function(l) {
21845
- const o = pt.from(t.aborted ? I4(t) : l);
21835
+ const o = mt.from(t.aborted ? I4(t) : l);
21846
21836
  return r.abort(o), n(), Promise.reject(o);
21847
21837
  },
21848
21838
  function() {
@@ -22675,26 +22665,26 @@ le.util.setEnumType(ue, "exa.codeium_common_pb.Language", [
22675
22665
  { no: 64, name: "LANGUAGE_ADA" },
22676
22666
  { no: 65, name: "LANGUAGE_OCAML_INTERFACE" }
22677
22667
  ]);
22678
- class Fn extends Ke {
22668
+ class zn extends Ke {
22679
22669
  constructor(t) {
22680
22670
  super(), this.completionId = "", this.text = "", this.prefix = "", this.stop = "", this.score = 0, this.tokens = [], this.decodedTokens = [], this.probabilities = [], this.adjustedProbabilities = [], this.generatedLength = Ze.zero, le.util.initPartial(t, this);
22681
22671
  }
22682
22672
  static fromBinary(t, n) {
22683
- return new Fn().fromBinary(t, n);
22673
+ return new zn().fromBinary(t, n);
22684
22674
  }
22685
22675
  static fromJson(t, n) {
22686
- return new Fn().fromJson(t, n);
22676
+ return new zn().fromJson(t, n);
22687
22677
  }
22688
22678
  static fromJsonString(t, n) {
22689
- return new Fn().fromJsonString(t, n);
22679
+ return new zn().fromJsonString(t, n);
22690
22680
  }
22691
22681
  static equals(t, n) {
22692
- return le.util.equals(Fn, t, n);
22682
+ return le.util.equals(zn, t, n);
22693
22683
  }
22694
22684
  }
22695
- Fn.runtime = le;
22696
- Fn.typeName = "exa.codeium_common_pb.Completion";
22697
- Fn.fields = le.util.newFieldList(() => [
22685
+ zn.runtime = le;
22686
+ zn.typeName = "exa.codeium_common_pb.Completion";
22687
+ zn.fields = le.util.newFieldList(() => [
22698
22688
  {
22699
22689
  no: 1,
22700
22690
  name: "completion_id",
@@ -22834,26 +22824,26 @@ tn.fields = le.util.newFieldList(() => [
22834
22824
  },
22835
22825
  { no: 15, name: "auth_source", kind: "enum", T: le.getEnumType(Ri) }
22836
22826
  ]);
22837
- class Mn extends Ke {
22827
+ class Fn extends Ke {
22838
22828
  constructor(t) {
22839
22829
  super(), this.tabSize = Ze.zero, this.insertSpaces = !1, le.util.initPartial(t, this);
22840
22830
  }
22841
22831
  static fromBinary(t, n) {
22842
- return new Mn().fromBinary(t, n);
22832
+ return new Fn().fromBinary(t, n);
22843
22833
  }
22844
22834
  static fromJson(t, n) {
22845
- return new Mn().fromJson(t, n);
22835
+ return new Fn().fromJson(t, n);
22846
22836
  }
22847
22837
  static fromJsonString(t, n) {
22848
- return new Mn().fromJsonString(t, n);
22838
+ return new Fn().fromJsonString(t, n);
22849
22839
  }
22850
22840
  static equals(t, n) {
22851
- return le.util.equals(Mn, t, n);
22841
+ return le.util.equals(Fn, t, n);
22852
22842
  }
22853
22843
  }
22854
- Mn.runtime = le;
22855
- Mn.typeName = "exa.codeium_common_pb.EditorOptions";
22856
- Mn.fields = le.util.newFieldList(() => [
22844
+ Fn.runtime = le;
22845
+ Fn.typeName = "exa.codeium_common_pb.EditorOptions";
22846
+ Fn.fields = le.util.newFieldList(() => [
22857
22847
  {
22858
22848
  no: 1,
22859
22849
  name: "tab_size",
@@ -22964,31 +22954,31 @@ dn.fields = le.util.newFieldList(() => [
22964
22954
  /* ScalarType.FLOAT */
22965
22955
  }
22966
22956
  ]);
22967
- class Sn extends Ke {
22957
+ class Mn extends Ke {
22968
22958
  constructor(t) {
22969
22959
  super(), this.otherDocuments = [], this.modelName = "", le.util.initPartial(t, this);
22970
22960
  }
22971
22961
  static fromBinary(t, n) {
22972
- return new Sn().fromBinary(t, n);
22962
+ return new Mn().fromBinary(t, n);
22973
22963
  }
22974
22964
  static fromJson(t, n) {
22975
- return new Sn().fromJson(t, n);
22965
+ return new Mn().fromJson(t, n);
22976
22966
  }
22977
22967
  static fromJsonString(t, n) {
22978
- return new Sn().fromJsonString(t, n);
22968
+ return new Mn().fromJsonString(t, n);
22979
22969
  }
22980
22970
  static equals(t, n) {
22981
- return le.util.equals(Sn, t, n);
22971
+ return le.util.equals(Mn, t, n);
22982
22972
  }
22983
22973
  }
22984
- Sn.runtime = le;
22985
- Sn.typeName = "exa.language_server_pb.GetCompletionsRequest";
22986
- Sn.fields = le.util.newFieldList(() => [
22974
+ Mn.runtime = le;
22975
+ Mn.typeName = "exa.language_server_pb.GetCompletionsRequest";
22976
+ Mn.fields = le.util.newFieldList(() => [
22987
22977
  { no: 1, name: "metadata", kind: "message", T: tn },
22988
22978
  { no: 2, name: "document", kind: "message", T: Rr },
22989
- { no: 3, name: "editor_options", kind: "message", T: Mn },
22979
+ { no: 3, name: "editor_options", kind: "message", T: Fn },
22990
22980
  { no: 5, name: "other_documents", kind: "message", T: Rr, repeated: !0 },
22991
- { no: 7, name: "experiment_config", kind: "message", T: Bn },
22981
+ { no: 7, name: "experiment_config", kind: "message", T: Tn },
22992
22982
  {
22993
22983
  no: 10,
22994
22984
  name: "model_name",
@@ -22998,10 +22988,33 @@ Sn.fields = le.util.newFieldList(() => [
22998
22988
  },
22999
22989
  { no: 13, name: "multiline_config", kind: "message", T: dn }
23000
22990
  ]);
23001
- class An extends Ke {
22991
+ class Sn extends Ke {
23002
22992
  constructor(t) {
23003
22993
  super(), this.completionItems = [], le.util.initPartial(t, this);
23004
22994
  }
22995
+ static fromBinary(t, n) {
22996
+ return new Sn().fromBinary(t, n);
22997
+ }
22998
+ static fromJson(t, n) {
22999
+ return new Sn().fromJson(t, n);
23000
+ }
23001
+ static fromJsonString(t, n) {
23002
+ return new Sn().fromJsonString(t, n);
23003
+ }
23004
+ static equals(t, n) {
23005
+ return le.util.equals(Sn, t, n);
23006
+ }
23007
+ }
23008
+ Sn.runtime = le;
23009
+ Sn.typeName = "exa.language_server_pb.GetCompletionsResponse";
23010
+ Sn.fields = le.util.newFieldList(() => [
23011
+ { no: 1, name: "state", kind: "message", T: Bn },
23012
+ { no: 2, name: "completion_items", kind: "message", T: Pn, repeated: !0 }
23013
+ ]);
23014
+ class An extends Ke {
23015
+ constructor(t) {
23016
+ super(), this.completionId = "", le.util.initPartial(t, this);
23017
+ }
23005
23018
  static fromBinary(t, n) {
23006
23019
  return new An().fromBinary(t, n);
23007
23020
  }
@@ -23016,14 +23029,20 @@ class An extends Ke {
23016
23029
  }
23017
23030
  }
23018
23031
  An.runtime = le;
23019
- An.typeName = "exa.language_server_pb.GetCompletionsResponse";
23032
+ An.typeName = "exa.language_server_pb.AcceptCompletionRequest";
23020
23033
  An.fields = le.util.newFieldList(() => [
23021
- { no: 1, name: "state", kind: "message", T: Hn },
23022
- { no: 2, name: "completion_items", kind: "message", T: On, repeated: !0 }
23034
+ { no: 1, name: "metadata", kind: "message", T: tn },
23035
+ {
23036
+ no: 2,
23037
+ name: "completion_id",
23038
+ kind: "scalar",
23039
+ T: 9
23040
+ /* ScalarType.STRING */
23041
+ }
23023
23042
  ]);
23024
23043
  class Nn extends Ke {
23025
23044
  constructor(t) {
23026
- super(), this.completionId = "", le.util.initPartial(t, this);
23045
+ super(), le.util.initPartial(t, this);
23027
23046
  }
23028
23047
  static fromBinary(t, n) {
23029
23048
  return new Nn().fromBinary(t, n);
@@ -23039,17 +23058,8 @@ class Nn extends Ke {
23039
23058
  }
23040
23059
  }
23041
23060
  Nn.runtime = le;
23042
- Nn.typeName = "exa.language_server_pb.AcceptCompletionRequest";
23043
- Nn.fields = le.util.newFieldList(() => [
23044
- { no: 1, name: "metadata", kind: "message", T: tn },
23045
- {
23046
- no: 2,
23047
- name: "completion_id",
23048
- kind: "scalar",
23049
- T: 9
23050
- /* ScalarType.STRING */
23051
- }
23052
- ]);
23061
+ Nn.typeName = "exa.language_server_pb.AcceptCompletionResponse";
23062
+ Nn.fields = le.util.newFieldList(() => []);
23053
23063
  class Dn extends Ke {
23054
23064
  constructor(t) {
23055
23065
  super(), le.util.initPartial(t, this);
@@ -23068,11 +23078,11 @@ class Dn extends Ke {
23068
23078
  }
23069
23079
  }
23070
23080
  Dn.runtime = le;
23071
- Dn.typeName = "exa.language_server_pb.AcceptCompletionResponse";
23081
+ Dn.typeName = "exa.language_server_pb.GetAuthTokenRequest";
23072
23082
  Dn.fields = le.util.newFieldList(() => []);
23073
23083
  class Ln extends Ke {
23074
23084
  constructor(t) {
23075
- super(), le.util.initPartial(t, this);
23085
+ super(), this.authToken = "", this.uuid = "", le.util.initPartial(t, this);
23076
23086
  }
23077
23087
  static fromBinary(t, n) {
23078
23088
  return new Ln().fromBinary(t, n);
@@ -23088,28 +23098,8 @@ class Ln extends Ke {
23088
23098
  }
23089
23099
  }
23090
23100
  Ln.runtime = le;
23091
- Ln.typeName = "exa.language_server_pb.GetAuthTokenRequest";
23092
- Ln.fields = le.util.newFieldList(() => []);
23093
- class Tn extends Ke {
23094
- constructor(t) {
23095
- super(), this.authToken = "", this.uuid = "", le.util.initPartial(t, this);
23096
- }
23097
- static fromBinary(t, n) {
23098
- return new Tn().fromBinary(t, n);
23099
- }
23100
- static fromJson(t, n) {
23101
- return new Tn().fromJson(t, n);
23102
- }
23103
- static fromJsonString(t, n) {
23104
- return new Tn().fromJsonString(t, n);
23105
- }
23106
- static equals(t, n) {
23107
- return le.util.equals(Tn, t, n);
23108
- }
23109
- }
23110
- Tn.runtime = le;
23111
- Tn.typeName = "exa.language_server_pb.GetAuthTokenResponse";
23112
- Tn.fields = le.util.newFieldList(() => [
23101
+ Ln.typeName = "exa.language_server_pb.GetAuthTokenResponse";
23102
+ Ln.fields = le.util.newFieldList(() => [
23113
23103
  {
23114
23104
  no: 1,
23115
23105
  name: "auth_token",
@@ -23225,48 +23215,48 @@ Rr.fields = le.util.newFieldList(() => [
23225
23215
  /* ScalarType.STRING */
23226
23216
  }
23227
23217
  ]);
23228
- class Bn extends Ke {
23218
+ class Tn extends Ke {
23229
23219
  constructor(t) {
23230
23220
  super(), this.forceEnableExperiments = [], le.util.initPartial(t, this);
23231
23221
  }
23232
23222
  static fromBinary(t, n) {
23233
- return new Bn().fromBinary(t, n);
23223
+ return new Tn().fromBinary(t, n);
23234
23224
  }
23235
23225
  static fromJson(t, n) {
23236
- return new Bn().fromJson(t, n);
23226
+ return new Tn().fromJson(t, n);
23237
23227
  }
23238
23228
  static fromJsonString(t, n) {
23239
- return new Bn().fromJsonString(t, n);
23229
+ return new Tn().fromJsonString(t, n);
23240
23230
  }
23241
23231
  static equals(t, n) {
23242
- return le.util.equals(Bn, t, n);
23232
+ return le.util.equals(Tn, t, n);
23243
23233
  }
23244
23234
  }
23245
- Bn.runtime = le;
23246
- Bn.typeName = "exa.language_server_pb.ExperimentConfig";
23247
- Bn.fields = le.util.newFieldList(() => [
23235
+ Tn.runtime = le;
23236
+ Tn.typeName = "exa.language_server_pb.ExperimentConfig";
23237
+ Tn.fields = le.util.newFieldList(() => [
23248
23238
  { no: 1, name: "force_enable_experiments", kind: "enum", T: le.getEnumType(ca), repeated: !0 }
23249
23239
  ]);
23250
- class Hn extends Ke {
23240
+ class Bn extends Ke {
23251
23241
  constructor(t) {
23252
23242
  super(), this.state = _i.UNSPECIFIED, this.message = "", le.util.initPartial(t, this);
23253
23243
  }
23254
23244
  static fromBinary(t, n) {
23255
- return new Hn().fromBinary(t, n);
23245
+ return new Bn().fromBinary(t, n);
23256
23246
  }
23257
23247
  static fromJson(t, n) {
23258
- return new Hn().fromJson(t, n);
23248
+ return new Bn().fromJson(t, n);
23259
23249
  }
23260
23250
  static fromJsonString(t, n) {
23261
- return new Hn().fromJsonString(t, n);
23251
+ return new Bn().fromJsonString(t, n);
23262
23252
  }
23263
23253
  static equals(t, n) {
23264
- return le.util.equals(Hn, t, n);
23254
+ return le.util.equals(Bn, t, n);
23265
23255
  }
23266
23256
  }
23267
- Hn.runtime = le;
23268
- Hn.typeName = "exa.language_server_pb.State";
23269
- Hn.fields = le.util.newFieldList(() => [
23257
+ Bn.runtime = le;
23258
+ Bn.typeName = "exa.language_server_pb.State";
23259
+ Bn.fields = le.util.newFieldList(() => [
23270
23260
  { no: 1, name: "state", kind: "enum", T: le.getEnumType(_i) },
23271
23261
  {
23272
23262
  no: 2,
@@ -23313,26 +23303,26 @@ Ma.fields = le.util.newFieldList(() => [
23313
23303
  { no: 3, name: "start_position", kind: "message", T: nn },
23314
23304
  { no: 4, name: "end_position", kind: "message", T: nn }
23315
23305
  ]);
23316
- class jn extends Ke {
23306
+ class Hn extends Ke {
23317
23307
  constructor(t) {
23318
23308
  super(), this.text = "", this.deltaCursorOffset = Ze.zero, le.util.initPartial(t, this);
23319
23309
  }
23320
23310
  static fromBinary(t, n) {
23321
- return new jn().fromBinary(t, n);
23311
+ return new Hn().fromBinary(t, n);
23322
23312
  }
23323
23313
  static fromJson(t, n) {
23324
- return new jn().fromJson(t, n);
23314
+ return new Hn().fromJson(t, n);
23325
23315
  }
23326
23316
  static fromJsonString(t, n) {
23327
- return new jn().fromJsonString(t, n);
23317
+ return new Hn().fromJsonString(t, n);
23328
23318
  }
23329
23319
  static equals(t, n) {
23330
- return le.util.equals(jn, t, n);
23320
+ return le.util.equals(Hn, t, n);
23331
23321
  }
23332
23322
  }
23333
- jn.runtime = le;
23334
- jn.typeName = "exa.language_server_pb.Suffix";
23335
- jn.fields = le.util.newFieldList(() => [
23323
+ Hn.runtime = le;
23324
+ Hn.typeName = "exa.language_server_pb.Suffix";
23325
+ Hn.fields = le.util.newFieldList(() => [
23336
23326
  {
23337
23327
  no: 1,
23338
23328
  name: "text",
@@ -23348,26 +23338,26 @@ jn.fields = le.util.newFieldList(() => [
23348
23338
  /* ScalarType.INT64 */
23349
23339
  }
23350
23340
  ]);
23351
- class Pn extends Ke {
23341
+ class jn extends Ke {
23352
23342
  constructor(t) {
23353
23343
  super(), this.text = "", this.offset = Ze.zero, this.type = $i.UNSPECIFIED, this.prefix = "", this.line = Ze.zero, le.util.initPartial(t, this);
23354
23344
  }
23355
23345
  static fromBinary(t, n) {
23356
- return new Pn().fromBinary(t, n);
23346
+ return new jn().fromBinary(t, n);
23357
23347
  }
23358
23348
  static fromJson(t, n) {
23359
- return new Pn().fromJson(t, n);
23349
+ return new jn().fromJson(t, n);
23360
23350
  }
23361
23351
  static fromJsonString(t, n) {
23362
- return new Pn().fromJsonString(t, n);
23352
+ return new jn().fromJsonString(t, n);
23363
23353
  }
23364
23354
  static equals(t, n) {
23365
- return le.util.equals(Pn, t, n);
23355
+ return le.util.equals(jn, t, n);
23366
23356
  }
23367
23357
  }
23368
- Pn.runtime = le;
23369
- Pn.typeName = "exa.language_server_pb.CompletionPart";
23370
- Pn.fields = le.util.newFieldList(() => [
23358
+ jn.runtime = le;
23359
+ jn.typeName = "exa.language_server_pb.CompletionPart";
23360
+ jn.fields = le.util.newFieldList(() => [
23371
23361
  {
23372
23362
  no: 1,
23373
23363
  name: "text",
@@ -23398,31 +23388,31 @@ Pn.fields = le.util.newFieldList(() => [
23398
23388
  /* ScalarType.UINT64 */
23399
23389
  }
23400
23390
  ]);
23401
- class On extends Ke {
23391
+ class Pn extends Ke {
23402
23392
  constructor(t) {
23403
23393
  super(), this.source = Gi.UNSPECIFIED, this.completionParts = [], le.util.initPartial(t, this);
23404
23394
  }
23405
23395
  static fromBinary(t, n) {
23406
- return new On().fromBinary(t, n);
23396
+ return new Pn().fromBinary(t, n);
23407
23397
  }
23408
23398
  static fromJson(t, n) {
23409
- return new On().fromJson(t, n);
23399
+ return new Pn().fromJson(t, n);
23410
23400
  }
23411
23401
  static fromJsonString(t, n) {
23412
- return new On().fromJsonString(t, n);
23402
+ return new Pn().fromJsonString(t, n);
23413
23403
  }
23414
23404
  static equals(t, n) {
23415
- return le.util.equals(On, t, n);
23405
+ return le.util.equals(Pn, t, n);
23416
23406
  }
23417
23407
  }
23418
- On.runtime = le;
23419
- On.typeName = "exa.language_server_pb.CompletionItem";
23420
- On.fields = le.util.newFieldList(() => [
23421
- { no: 1, name: "completion", kind: "message", T: Fn },
23422
- { no: 5, name: "suffix", kind: "message", T: jn },
23408
+ Pn.runtime = le;
23409
+ Pn.typeName = "exa.language_server_pb.CompletionItem";
23410
+ Pn.fields = le.util.newFieldList(() => [
23411
+ { no: 1, name: "completion", kind: "message", T: zn },
23412
+ { no: 5, name: "suffix", kind: "message", T: Hn },
23423
23413
  { no: 2, name: "range", kind: "message", T: Ma },
23424
23414
  { no: 3, name: "source", kind: "enum", T: le.getEnumType(Gi) },
23425
- { no: 8, name: "completion_parts", kind: "message", T: Pn, repeated: !0 }
23415
+ { no: 8, name: "completion_parts", kind: "message", T: jn, repeated: !0 }
23426
23416
  ]);
23427
23417
  const wz = {
23428
23418
  typeName: "exa.language_server_pb.LanguageServerService",
@@ -23432,8 +23422,8 @@ const wz = {
23432
23422
  */
23433
23423
  getCompletions: {
23434
23424
  name: "GetCompletions",
23435
- I: Sn,
23436
- O: An,
23425
+ I: Mn,
23426
+ O: Sn,
23437
23427
  kind: Zt.Unary
23438
23428
  },
23439
23429
  /**
@@ -23441,8 +23431,8 @@ const wz = {
23441
23431
  */
23442
23432
  acceptCompletion: {
23443
23433
  name: "AcceptCompletion",
23444
- I: Nn,
23445
- O: Dn,
23434
+ I: An,
23435
+ O: Nn,
23446
23436
  kind: Zt.Unary
23447
23437
  },
23448
23438
  /**
@@ -23450,8 +23440,8 @@ const wz = {
23450
23440
  */
23451
23441
  getAuthToken: {
23452
23442
  name: "GetAuthToken",
23453
- I: Ln,
23454
- O: Tn,
23443
+ I: Dn,
23444
+ O: Ln,
23455
23445
  kind: Zt.Unary
23456
23446
  }
23457
23447
  }
@@ -23749,7 +23739,7 @@ class Nz {
23749
23739
  headers: this.getAuthHeader()
23750
23740
  });
23751
23741
  } catch (v) {
23752
- v instanceof pt && v.code === Ge.Canceled || (this.setStatus(or.ERROR), this.setMessage("Something went wrong; please try again."));
23742
+ v instanceof mt && v.code === Ge.Canceled || (this.setStatus(or.ERROR), this.setMessage("Something went wrong; please try again."));
23753
23743
  return;
23754
23744
  }
23755
23745
  if (!m.completionItems) {
@@ -24507,7 +24497,7 @@ var Tt = {
24507
24497
  "MSFullscreenChange",
24508
24498
  "MSFullscreenError",
24509
24499
  "-ms-fullscreen"
24510
- ], Ft = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Ut = "fullscreenEnabled" in Ft && Object.keys(Tt) || Bu[0] in Ft && Bu || Hu[0] in Ft && Hu || ju[0] in Ft && ju || [], Cn = {
24500
+ ], Ft = typeof window < "u" && typeof window.document < "u" ? window.document : {}, Ut = "fullscreenEnabled" in Ft && Object.keys(Tt) || Bu[0] in Ft && Bu || Hu[0] in Ft && Hu || ju[0] in Ft && ju || [], En = {
24511
24501
  requestFullscreen: function(e) {
24512
24502
  return e[Ut[Tt.requestFullscreen]]();
24513
24503
  },
@@ -24553,21 +24543,21 @@ function OF() {
24553
24543
  var e = ne(!1), t = e[0], n = e[1], r = he(null);
24554
24544
  pe(function() {
24555
24545
  var o = function() {
24556
- n(Cn.fullscreenElement === r.current);
24546
+ n(En.fullscreenElement === r.current);
24557
24547
  };
24558
- return Cn.addEventListener("fullscreenchange", o), function() {
24559
- return Cn.removeEventListener("fullscreenchange", o);
24548
+ return En.addEventListener("fullscreenchange", o), function() {
24549
+ return En.removeEventListener("fullscreenchange", o);
24560
24550
  };
24561
24551
  }, []);
24562
24552
  var i = ke(function() {
24563
- if (Cn.fullscreenElement)
24564
- return Cn.exitFullscreen().then(function() {
24565
- return Cn.requestFullscreen(r.current);
24553
+ if (En.fullscreenElement)
24554
+ return En.exitFullscreen().then(function() {
24555
+ return En.requestFullscreen(r.current);
24566
24556
  });
24567
24557
  if (r.current)
24568
- return Cn.requestFullscreen(r.current);
24558
+ return En.requestFullscreen(r.current);
24569
24559
  }, []), l = ke(function() {
24570
- return Cn.fullscreenElement === r.current ? Cn.exitFullscreen() : Promise.resolve();
24560
+ return En.fullscreenElement === r.current ? En.exitFullscreen() : Promise.resolve();
24571
24561
  }, []);
24572
24562
  return qe(function() {
24573
24563
  return {
@@ -25290,16 +25280,16 @@ const UF = ({
25290
25280
  ]
25291
25281
  }
25292
25282
  ) }, c);
25293
- }) }) }), yn = Z(
25283
+ }) }) }), xn = Z(
25294
25284
  "text-neutral-600 cursor-pointer hover:text-neutral-800",
25295
25285
  "dark:text-neutral-300 dark:hover:text-neutral-50"
25296
- ), ZF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }) }), YF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" }) }), JF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ f.jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }), KF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }) }), qF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.5 2c-1.82 0-3.53.5-5 1.35 2.99 1.73 5 4.95 5 8.65s-2.01 6.92-5 8.65c1.47.85 3.18 1.35 5 1.35 5.52 0 10-4.48 10-10S15.02 2 9.5 2z" }) }), QF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-5 5-5-5h3V4h4v7h3z" }) }), eM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }) }), tM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: [
25286
+ ), ZF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" }) }), YF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z" }) }), JF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ f.jsx("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }) }), KF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm7 18H5V4h2v3h10V4h2v16z" }) }), qF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M9.5 2c-1.82 0-3.53.5-5 1.35 2.99 1.73 5 4.95 5 8.65s-2.01 6.92-5 8.65c1.47.85 3.18 1.35 5 1.35 5.52 0 10-4.48 10-10S15.02 2 9.5 2z" }) }), QF = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-5 5-5-5h3V4h4v7h3z" }) }), eM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z" }) }), tM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: [
25297
25287
  /* @__PURE__ */ f.jsx("path", { d: "M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z" }),
25298
25288
  /* @__PURE__ */ f.jsx("path", { d: "m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z" })
25299
- ] }), nM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: [
25289
+ ] }), nM = ({ fontSize: e }) => /* @__PURE__ */ f.jsxs("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: [
25300
25290
  /* @__PURE__ */ f.jsx("path", { d: "M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z" }),
25301
25291
  /* @__PURE__ */ f.jsx("path", { d: "m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z" })
25302
- ] }), rM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z" }) }), iM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: yn, children: /* @__PURE__ */ f.jsx("path", { d: "M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" }) }), lM = {
25292
+ ] }), rM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z" }) }), iM = ({ fontSize: e }) => /* @__PURE__ */ f.jsx("svg", { width: e, height: e, viewBox: "0 0 24 24", fill: "currentColor", className: xn, children: /* @__PURE__ */ f.jsx("path", { d: "M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z" }) }), lM = {
25303
25293
  JSON: /* @__PURE__ */ f.jsx(ZF, { fontSize: 16 }),
25304
25294
  Grid: /* @__PURE__ */ f.jsx(YF, { fontSize: 15 })
25305
25295
  }, Pu = ["JSON", "Grid"], aM = ({
@@ -25697,7 +25687,7 @@ const UF = ({
25697
25687
  ]
25698
25688
  }
25699
25689
  ),
25700
- x && /* @__PURE__ */ f.jsx(xn, {}),
25690
+ x && /* @__PURE__ */ f.jsx(bn, {}),
25701
25691
  /* @__PURE__ */ f.jsx(_t, { labels: h }),
25702
25692
  g && /* @__PURE__ */ f.jsx(st, { placement: "top", title: g, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
25703
25693
  ]
@@ -25798,7 +25788,7 @@ const cM = Ue(
25798
25788
  placeholder: S,
25799
25789
  ...T
25800
25790
  }, V) => {
25801
- const { t: O } = bn(), [G, A] = ne(!1), _ = ($) => {
25791
+ const { t: O } = vn(), [G, A] = ne(!1), _ = ($) => {
25802
25792
  N && N({
25803
25793
  key: E,
25804
25794
  value: $
@@ -25864,7 +25854,7 @@ const cM = Ue(
25864
25854
  }
25865
25855
  ),
25866
25856
  k && /* @__PURE__ */ f.jsx(
25867
- _n,
25857
+ Gn,
25868
25858
  {
25869
25859
  sx: {
25870
25860
  fontSize: 16,
@@ -25873,7 +25863,7 @@ const cM = Ue(
25873
25863
  }
25874
25864
  }
25875
25865
  ),
25876
- C && /* @__PURE__ */ f.jsx(xn, {}),
25866
+ C && /* @__PURE__ */ f.jsx(bn, {}),
25877
25867
  /* @__PURE__ */ f.jsx(_t, { labels: m }),
25878
25868
  v && /* @__PURE__ */ f.jsx(st, { placement: "top", title: v, children: /* @__PURE__ */ f.jsx("div", { className: "cursor-pointer", children: /* @__PURE__ */ f.jsx(qt, {}) }) })
25879
25869
  ] }),
@@ -25884,8 +25874,8 @@ const cM = Ue(
25884
25874
  className: "cursor-pointer",
25885
25875
  onClick: () => _(n?.toString()),
25886
25876
  type: "button",
25887
- children: /* @__PURE__ */ f.jsx(ht, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
25888
- gn,
25877
+ children: /* @__PURE__ */ f.jsx(pt, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ f.jsx(
25878
+ _n,
25889
25879
  {
25890
25880
  className: "text-primary-600",
25891
25881
  sx: { fontSize: 16 }
@@ -30136,7 +30126,7 @@ function QA(e) {
30136
30126
  return te;
30137
30127
  }
30138
30128
  function i(X, te, Ee) {
30139
- let Me = te - 1, Be = -1, ft = !1, En, Qt, nr, rr;
30129
+ let Me = te - 1, Be = -1, ft = !1, wn, Qt, nr, rr;
30140
30130
  for (; ++Me <= Ee; ) {
30141
30131
  const yt = X[Me];
30142
30132
  switch (yt[1].type) {
@@ -30147,7 +30137,7 @@ function QA(e) {
30147
30137
  break;
30148
30138
  }
30149
30139
  case "lineEndingBlank": {
30150
- yt[0] === "enter" && (En && !rr && !Be && !nr && (nr = Me), rr = void 0);
30140
+ yt[0] === "enter" && (wn && !rr && !Be && !nr && (nr = Me), rr = void 0);
30151
30141
  break;
30152
30142
  }
30153
30143
  case "linePrefix":
@@ -30160,7 +30150,7 @@ function QA(e) {
30160
30150
  rr = void 0;
30161
30151
  }
30162
30152
  if (!Be && yt[0] === "enter" && yt[1].type === "listItemPrefix" || Be === -1 && yt[0] === "exit" && (yt[1].type === "listUnordered" || yt[1].type === "listOrdered")) {
30163
- if (En) {
30153
+ if (wn) {
30164
30154
  let Wn = Me;
30165
30155
  for (Qt = void 0; Wn--; ) {
30166
30156
  const Lt = X[Wn];
@@ -30169,7 +30159,7 @@ function QA(e) {
30169
30159
  Qt && (X[Qt][1].type = "lineEndingBlank", ft = !0), Lt[1].type = "lineEnding", Qt = Wn;
30170
30160
  } else if (!(Lt[1].type === "linePrefix" || Lt[1].type === "blockQuotePrefix" || Lt[1].type === "blockQuotePrefixWhitespace" || Lt[1].type === "blockQuoteMarker" || Lt[1].type === "listItemIndent")) break;
30171
30161
  }
30172
- nr && (!Qt || nr < Qt) && (En._spread = !0), En.end = Object.assign({}, Qt ? X[Qt][1].start : yt[1].end), X.splice(Qt || Me, 0, ["exit", En, yt[2]]), Me++, Ee++;
30162
+ nr && (!Qt || nr < Qt) && (wn._spread = !0), wn.end = Object.assign({}, Qt ? X[Qt][1].start : yt[1].end), X.splice(Qt || Me, 0, ["exit", wn, yt[2]]), Me++, Ee++;
30173
30163
  }
30174
30164
  if (yt[1].type === "listItemPrefix") {
30175
30165
  const Wn = {
@@ -30179,7 +30169,7 @@ function QA(e) {
30179
30169
  // @ts-expect-error: we’ll add `end` in a second.
30180
30170
  end: void 0
30181
30171
  };
30182
- En = Wn, X.splice(Me, 0, ["enter", Wn, yt[2]]), Me++, Ee++, nr = void 0, rr = !0;
30172
+ wn = Wn, X.splice(Me, 0, ["enter", Wn, yt[2]]), Me++, Ee++, nr = void 0, rr = !0;
30183
30173
  }
30184
30174
  }
30185
30175
  }
@@ -33933,23 +33923,23 @@ const QL = {
33933
33923
  name: "emailAutolink",
33934
33924
  tokenize: nT,
33935
33925
  previous: ep
33936
- }, wn = {};
33926
+ }, yn = {};
33937
33927
  function tT() {
33938
33928
  return {
33939
- text: wn
33929
+ text: yn
33940
33930
  };
33941
33931
  }
33942
33932
  let lr = 48;
33943
33933
  for (; lr < 123; )
33944
- wn[lr] = $n, lr++, lr === 58 ? lr = 65 : lr === 91 && (lr = 97);
33945
- wn[43] = $n;
33946
- wn[45] = $n;
33947
- wn[46] = $n;
33948
- wn[95] = $n;
33949
- wn[72] = [$n, K5];
33950
- wn[104] = [$n, K5];
33951
- wn[87] = [$n, J5];
33952
- wn[119] = [$n, J5];
33934
+ yn[lr] = $n, lr++, lr === 58 ? lr = 65 : lr === 91 && (lr = 97);
33935
+ yn[43] = $n;
33936
+ yn[45] = $n;
33937
+ yn[46] = $n;
33938
+ yn[95] = $n;
33939
+ yn[72] = [$n, K5];
33940
+ yn[104] = [$n, K5];
33941
+ yn[87] = [$n, J5];
33942
+ yn[119] = [$n, J5];
33953
33943
  function nT(e, t, n) {
33954
33944
  const r = this;
33955
33945
  let i, l;
@@ -35187,7 +35177,7 @@ const UT = Object.keys(ga).filter(
35187
35177
  height: 240,
35188
35178
  children: ({ columnIndex: s, rowIndex: c, style: u }) => {
35189
35179
  const d = c * 5 + s, h = l?.[d];
35190
- return h ? /* @__PURE__ */ f.jsx("div", { style: { ...u, padding: "4px" }, children: /* @__PURE__ */ f.jsx(ht, { title: ZT(h), children: /* @__PURE__ */ f.jsx(
35180
+ return h ? /* @__PURE__ */ f.jsx("div", { style: { ...u, padding: "4px" }, children: /* @__PURE__ */ f.jsx(pt, { title: ZT(h), children: /* @__PURE__ */ f.jsx(
35191
35181
  Op,
35192
35182
  {
35193
35183
  className: Z(
@@ -35693,7 +35683,7 @@ const N0 = (e) => e === 1 || e === "1" || typeof e == "string" && e.toLowerCase(
35693
35683
  },
35694
35684
  `${U.label}-${U.value || U.color}`
35695
35685
  )) }),
35696
- l && /* @__PURE__ */ f.jsx(ht, { placement: "top", title: l, children: /* @__PURE__ */ f.jsx(
35686
+ l && /* @__PURE__ */ f.jsx(pt, { placement: "top", title: l, children: /* @__PURE__ */ f.jsx(
35697
35687
  "div",
35698
35688
  {
35699
35689
  className: "cursor-pointer",
@@ -38454,7 +38444,7 @@ function aH(e, ...t) {
38454
38444
  const dt = (e) => {
38455
38445
  const t = (n) => n[e] || [];
38456
38446
  return t.isThemeGetter = !0, t;
38457
- }, ap = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, op = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oH = /^\d+\/\d+$/, sH = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cH = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, uH = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dH = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fH = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, zr = (e) => oH.test(e), Ae = (e) => !!e && !Number.isNaN(Number(e)), Yn = (e) => !!e && Number.isInteger(Number(e)), Vo = (e) => e.endsWith("%") && Ae(e.slice(0, -1)), kn = (e) => sH.test(e), hH = () => !0, mH = (e) => (
38447
+ }, ap = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, op = /^\((?:(\w[\w-]*):)?(.+)\)$/i, oH = /^\d+\/\d+$/, sH = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, cH = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, uH = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, dH = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fH = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, zr = (e) => oH.test(e), Ae = (e) => !!e && !Number.isNaN(Number(e)), Yn = (e) => !!e && Number.isInteger(Number(e)), Vo = (e) => e.endsWith("%") && Ae(e.slice(0, -1)), Cn = (e) => sH.test(e), hH = () => !0, mH = (e) => (
38458
38448
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
38459
38449
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
38460
38450
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
@@ -38513,22 +38503,22 @@ const dt = (e) => {
38513
38503
  theme: {
38514
38504
  animate: ["spin", "ping", "pulse", "bounce"],
38515
38505
  aspect: ["video"],
38516
- blur: [kn],
38517
- breakpoint: [kn],
38506
+ blur: [Cn],
38507
+ breakpoint: [Cn],
38518
38508
  color: [hH],
38519
- container: [kn],
38520
- "drop-shadow": [kn],
38509
+ container: [Cn],
38510
+ "drop-shadow": [Cn],
38521
38511
  ease: ["in", "out", "in-out"],
38522
38512
  font: [vH],
38523
38513
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
38524
- "inset-shadow": [kn],
38514
+ "inset-shadow": [Cn],
38525
38515
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
38526
38516
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
38527
- radius: [kn],
38528
- shadow: [kn],
38517
+ radius: [Cn],
38518
+ shadow: [Cn],
38529
38519
  spacing: ["px", Ae],
38530
- text: [kn],
38531
- "text-shadow": [kn],
38520
+ text: [Cn],
38521
+ "text-shadow": [Cn],
38532
38522
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
38533
38523
  },
38534
38524
  classGroups: {
@@ -40937,7 +40927,7 @@ const dt = (e) => {
40937
40927
  };
40938
40928
  }, zH = /* @__PURE__ */ aH(IH);
40939
40929
  function U0(...e) {
40940
- return zH(zn(e));
40930
+ return zH(In(e));
40941
40931
  }
40942
40932
  var Wl = /* @__PURE__ */ ((e) => (e.COMPARISON = "comparison", e.EDIT = "edit", e.FOCUS_EDIT = "focusEdit", e))(Wl || {});
40943
40933
  const FH = 500, MH = ({