@lax-wp/design-system 0.2.9 → 0.2.12

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
@@ -887,7 +887,7 @@ const h2 = Ze(
887
887
  }
888
888
  );
889
889
  h2.displayName = "InputField";
890
- const Hj = Ze(
890
+ const zj = Ze(
891
891
  ({
892
892
  label: e,
893
893
  placeholder: t,
@@ -4180,7 +4180,7 @@ const Zv = Bd(Fw), of = {
4180
4180
  getPrefixCls: jw,
4181
4181
  iconPrefixCls: gc
4182
4182
  }), {
4183
- Consumer: Wj
4183
+ Consumer: Gj
4184
4184
  } = ht, Pm = {};
4185
4185
  function pc(e) {
4186
4186
  const t = C.useContext(ht), {
@@ -27299,23 +27299,7 @@ const n$ = Ze(
27299
27299
  }
27300
27300
  );
27301
27301
  n$.displayName = "Badge";
27302
- const o$ = (e) => {
27303
- switch (e) {
27304
- case "sm":
27305
- return 384;
27306
- // 24rem
27307
- case "lg":
27308
- return 672;
27309
- // 42rem
27310
- case "xl":
27311
- return 896;
27312
- // 56rem
27313
- case "full":
27314
- return;
27315
- default:
27316
- return 512;
27317
- }
27318
- }, i$ = (e) => {
27302
+ const Hj = (e) => {
27319
27303
  const {
27320
27304
  open: t,
27321
27305
  children: r,
@@ -27330,40 +27314,20 @@ const o$ = (e) => {
27330
27314
  onSubmit: d,
27331
27315
  showCloseButton: f = !0,
27332
27316
  noPadding: p = !1,
27333
- onClose: h,
27334
- size: m = "md",
27335
- width: g,
27336
- ...b
27337
- } = e, y = (I) => {
27338
- h ? h() : b.onCancel && b.onCancel(I);
27339
- }, w = /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
27317
+ ...h
27318
+ } = e, m = /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
27340
27319
  /* @__PURE__ */ x.jsxs("div", { className: "flex justify-between items-center", children: [
27341
27320
  f ? /* @__PURE__ */ x.jsx(Ce, { size: "large", variant: "semibold", className: "tour__title", children: n }) : /* @__PURE__ */ x.jsx("div", { className: "flex flex-col w-full", children: n }),
27342
- s || f && /* @__PURE__ */ x.jsx(
27343
- "button",
27344
- {
27345
- id: "btn-modal-close",
27346
- onClick: y,
27347
- className: "",
27348
- type: "button",
27349
- children: /* @__PURE__ */ x.jsx(
27350
- E7,
27351
- {
27352
- sx: { fontSize: "20px" },
27353
- className: "cursor-pointer text-neutral-400 hover:text-neutral-600"
27354
- }
27355
- )
27356
- }
27357
- )
27321
+ s || f && /* @__PURE__ */ x.jsx("button", { id: "btn-modal-close", onClick: h.onCancel, className: "", type: "button", children: /* @__PURE__ */ x.jsx(E7, { sx: { fontSize: "20px" }, className: "cursor-pointer text-neutral-400 hover:text-neutral-600" }) })
27358
27322
  ] }),
27359
- b.addLineAfterHeader ? /* @__PURE__ */ x.jsx("hr", { className: "mt-2" }) : null
27360
- ] }), E = u ? "form" : "div", v = (I) => /* @__PURE__ */ x.jsx("div", { onClick: (N) => N.stopPropagation(), role: "presentation", children: I });
27323
+ h.addLineAfterHeader ? /* @__PURE__ */ x.jsx("hr", { className: "mt-2" }) : null
27324
+ ] }), g = u ? "form" : "div";
27361
27325
  return t ? ac(
27362
27326
  /* @__PURE__ */ x.jsx(
27363
- E,
27327
+ g,
27364
27328
  {
27365
- onSubmit: (I) => {
27366
- I.preventDefault(), d && d();
27329
+ onSubmit: (b) => {
27330
+ b.preventDefault(), d && d();
27367
27331
  },
27368
27332
  className: `fixed inset-0 flex justify-center items-center z-[${c || 1e3}] ${o ? "bg-[#101828CC] bg-opacity-80" : ""}`,
27369
27333
  children: /* @__PURE__ */ x.jsx(
@@ -27372,10 +27336,8 @@ const o$ = (e) => {
27372
27336
  open: t,
27373
27337
  centered: !0,
27374
27338
  closable: !1,
27375
- title: i ? null : w,
27376
- footer: b.footer,
27377
- width: g || o$(m),
27378
- modalRender: v,
27339
+ title: i ? null : m,
27340
+ modalRender: (b) => /* @__PURE__ */ x.jsx("div", { onClick: (y) => y.stopPropagation(), children: b }),
27379
27341
  styles: {
27380
27342
  content: {
27381
27343
  padding: p ? "0px" : "20px 0px"
@@ -27397,18 +27359,16 @@ const o$ = (e) => {
27397
27359
  }
27398
27360
  },
27399
27361
  mask: o,
27400
- ...b,
27362
+ ...h,
27401
27363
  getContainer: !1,
27402
27364
  children: r
27403
27365
  }
27404
27366
  )
27405
27367
  }
27406
27368
  ),
27407
- (typeof document < "u" ? document.getElementById(l) : null) || (typeof document < "u" ? document.body : null)
27369
+ parent.document.getElementById(l) || document.body
27408
27370
  ) : null;
27409
- };
27410
- i$.displayName = "Modal";
27411
- const gC = Ze(
27371
+ }, gC = Ze(
27412
27372
  ({ size: e = 24, fill: t = "currentColor", className: r, ...n }, o) => /* @__PURE__ */ x.jsx(
27413
27373
  "svg",
27414
27374
  {
@@ -27650,7 +27610,7 @@ const co = {
27650
27610
  950: "#252525",
27651
27611
  975: "#191919"
27652
27612
  }
27653
- }, a$ = (e) => {
27613
+ }, o$ = (e) => {
27654
27614
  let t = 0;
27655
27615
  for (let o = 0; o < e.length; o++)
27656
27616
  t = e.charCodeAt(o) + ((t << 5) - t);
@@ -27662,22 +27622,22 @@ const co = {
27662
27622
  }, th = (e, t = 30) => {
27663
27623
  let r = parseInt(e.slice(1, 3), 16), n = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16);
27664
27624
  return r = Math.max(0, r * (1 - t / 100)), n = Math.max(0, n * (1 - t / 100)), o = Math.max(0, o * (1 - t / 100)), `#${Math.round(r).toString(16).padStart(2, "0")}${Math.round(n).toString(16).padStart(2, "0")}${Math.round(o).toString(16).padStart(2, "0")}`;
27665
- }, s$ = (e, t) => ({
27625
+ }, i$ = (e, t) => ({
27666
27626
  background: t ? co[e]?.[975] : co[e]?.[50],
27667
27627
  borderColor: t ? co[e]?.[900] : co[e]?.[100],
27668
27628
  color: t ? co[e]?.[500] : co[e]?.[600]
27669
- }), l$ = (e, t) => {
27670
- const r = e.startsWith("#") ? e : a$(e);
27629
+ }), a$ = (e, t) => {
27630
+ const r = e.startsWith("#") ? e : o$(e);
27671
27631
  return {
27672
27632
  background: t ? th(r, 80) : hd(r, 90),
27673
27633
  borderColor: t ? th(r, 40) : hd(r, 50),
27674
27634
  color: t ? hd(r, 40) : r
27675
27635
  };
27676
- }, c$ = (e) => ({
27636
+ }, s$ = (e) => ({
27677
27637
  background: e ? "#2D3748" : "#F7FAFC",
27678
27638
  borderColor: e ? "#4A5568" : "#E2E8F0",
27679
27639
  color: e ? "#A0AEC0" : "#4A5568"
27680
- }), u$ = (e) => {
27640
+ }), l$ = (e) => {
27681
27641
  switch (e) {
27682
27642
  case "xs":
27683
27643
  return "text-xs px-1 py-0.5";
@@ -27688,7 +27648,7 @@ const co = {
27688
27648
  default:
27689
27649
  return "text-xs px-1.5 py-0.5";
27690
27650
  }
27691
- }, d$ = (e, t, r, n) => e ? r ? t.color : co[e]?.[500] || t.color : n ? "#A0AEC0" : "#4A5568", ql = Ze(
27651
+ }, c$ = (e, t, r, n) => e ? r ? t.color : co[e]?.[500] || t.color : n ? "#A0AEC0" : "#4A5568", ql = Ze(
27692
27652
  ({
27693
27653
  label: e,
27694
27654
  color: t,
@@ -27706,12 +27666,12 @@ const co = {
27706
27666
  theme: p = "light",
27707
27667
  "aria-label": h
27708
27668
  }, m) => {
27709
- const g = p === "dark", b = () => t ? t in co ? s$(t, g) : l$(t, g) : c$(g), y = (I) => {
27669
+ const g = p === "dark", b = () => t ? t in co ? i$(t, g) : a$(t, g) : s$(g), y = (I) => {
27710
27670
  const N = I.target.files?.[0];
27711
27671
  N && d && d(N), I.target.value = "";
27712
27672
  }, w = (I) => {
27713
27673
  (I.key === "Enter" || I.key === " ") && (o || f) && (I.preventDefault(), o && o(I));
27714
- }, E = b(), v = d$(t, E, s, g);
27674
+ }, E = b(), v = c$(t, E, s, g);
27715
27675
  return /* @__PURE__ */ x.jsx(
27716
27676
  "div",
27717
27677
  {
@@ -27720,7 +27680,7 @@ const co = {
27720
27680
  // Base styles
27721
27681
  "inline-flex items-center border rounded-md transition-colors",
27722
27682
  // Size-based styles
27723
- u$(r),
27683
+ l$(r),
27724
27684
  // Interactive styles
27725
27685
  (o || f) && "cursor-pointer hover:opacity-80",
27726
27686
  // Custom classes
@@ -27775,7 +27735,7 @@ const co = {
27775
27735
  }
27776
27736
  );
27777
27737
  ql.displayName = "Tag";
27778
- const f$ = ({
27738
+ const u$ = ({
27779
27739
  size: e = 16,
27780
27740
  className: t = "",
27781
27741
  ...r
@@ -27798,7 +27758,7 @@ const f$ = ({
27798
27758
  /* @__PURE__ */ x.jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
27799
27759
  ]
27800
27760
  }
27801
- ), m$ = ({
27761
+ ), d$ = ({
27802
27762
  size: e = 20,
27803
27763
  className: t = "",
27804
27764
  ...r
@@ -27973,7 +27933,7 @@ const f$ = ({
27973
27933
  } catch {
27974
27934
  return i;
27975
27935
  }
27976
- }, g$ = (e) => typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e), p$ = ({ labels: e = [] }) => {
27936
+ }, f$ = (e) => typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(e), m$ = ({ labels: e = [] }) => {
27977
27937
  const t = [], r = [];
27978
27938
  return e.forEach((n) => {
27979
27939
  typeof n == "string" && !t.includes(n) ? t.push(n) : typeof n != "string" && !r.some((o) => o.label === n.label) && r.push(n);
@@ -27981,7 +27941,7 @@ const f$ = ({
27981
27941
  t?.map((n) => /* @__PURE__ */ x.jsx(ql, { size: "xs", label: n, color: "primary" }, n)),
27982
27942
  r?.map((n, o) => /* @__PURE__ */ x.jsx(ql, { size: "xs", label: n?.label, color: n?.color }, n?.id || o))
27983
27943
  ] });
27984
- }, h$ = Ze(
27944
+ }, g$ = Ze(
27985
27945
  ({
27986
27946
  label: e,
27987
27947
  value: t,
@@ -28018,7 +27978,7 @@ const f$ = ({
28018
27978
  const Q = V.target.files?.[0];
28019
27979
  Q && b && b(Q), V.target.value = "";
28020
27980
  }, L = () => {
28021
- const V = typeof t == "string" && g$(t);
27981
+ const V = typeof t == "string" && f$(t);
28022
27982
  if (p && typeof t == "object")
28023
27983
  return t;
28024
27984
  if (t || n === "boolean" && t === 0 || n === "currency" && Number(t) >= 0) {
@@ -28109,7 +28069,7 @@ const f$ = ({
28109
28069
  children: [
28110
28070
  e,
28111
28071
  " ",
28112
- /* @__PURE__ */ x.jsx(p$, { labels: o?.map((V) => ({ ...V, color: V.color || "primary" })) }),
28072
+ /* @__PURE__ */ x.jsx(m$, { labels: o?.map((V) => ({ ...V, color: V.color || "primary" })) }),
28113
28073
  o && o.length > 0 && /* @__PURE__ */ x.jsx(x.Fragment, { children: o.map((V) => /* @__PURE__ */ x.jsx(
28114
28074
  ql,
28115
28075
  {
@@ -28129,7 +28089,7 @@ const f$ = ({
28129
28089
  onKeyDown: (V) => {
28130
28090
  (V.key === "Enter" || V.key === " ") && V.preventDefault();
28131
28091
  },
28132
- children: /* @__PURE__ */ x.jsx(f$, { size: 14 })
28092
+ children: /* @__PURE__ */ x.jsx(u$, { size: 14 })
28133
28093
  }
28134
28094
  ) })
28135
28095
  ]
@@ -28161,7 +28121,7 @@ const f$ = ({
28161
28121
  "aria-label": `Search master data for ${e}`,
28162
28122
  type: "button",
28163
28123
  className: "cursor-pointer",
28164
- children: /* @__PURE__ */ x.jsx(m$, { size: 20 })
28124
+ children: /* @__PURE__ */ x.jsx(d$, { size: 20 })
28165
28125
  }
28166
28126
  ),
28167
28127
  y && /* @__PURE__ */ x.jsx(
@@ -28235,8 +28195,8 @@ const f$ = ({
28235
28195
  );
28236
28196
  }
28237
28197
  );
28238
- h$.displayName = "LabelValue";
28239
- const v$ = Ze(
28198
+ g$.displayName = "LabelValue";
28199
+ const p$ = Ze(
28240
28200
  ({
28241
28201
  status: e,
28242
28202
  children: t,
@@ -28495,7 +28455,7 @@ const v$ = Ze(
28495
28455
  ] });
28496
28456
  }
28497
28457
  );
28498
- v$.displayName = "Banner";
28458
+ p$.displayName = "Banner";
28499
28459
  var Yt = function() {
28500
28460
  return Yt = Object.assign || function(e) {
28501
28461
  for (var t, r = 1, n = arguments.length; r < n; r++) {
@@ -28521,7 +28481,7 @@ var Yt = function() {
28521
28481
  height: "20px",
28522
28482
  position: "absolute",
28523
28483
  zIndex: 1
28524
- }, b$ = {
28484
+ }, h$ = {
28525
28485
  top: Yt(Yt({}, oh), { top: "-5px" }),
28526
28486
  right: Yt(Yt({}, ih), { left: void 0, right: "-5px" }),
28527
28487
  bottom: Yt(Yt({}, oh), { top: void 0, bottom: "-5px" }),
@@ -28530,16 +28490,16 @@ var Yt = function() {
28530
28490
  bottomRight: Yt(Yt({}, Us), { right: "-10px", bottom: "-10px", cursor: "se-resize" }),
28531
28491
  bottomLeft: Yt(Yt({}, Us), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
28532
28492
  topLeft: Yt(Yt({}, Us), { left: "-10px", top: "-10px", cursor: "nw-resize" })
28533
- }, y$ = Bo(function(e) {
28493
+ }, v$ = Bo(function(e) {
28534
28494
  var t = e.onResizeStart, r = e.direction, n = e.children, o = e.replaceStyles, i = e.className, a = We(function(c) {
28535
28495
  t(c, r);
28536
28496
  }, [t, r]), s = We(function(c) {
28537
28497
  t(c, r);
28538
28498
  }, [t, r]), l = Nt(function() {
28539
- return Yt(Yt({ position: "absolute", userSelect: "none" }, b$[r]), o ?? {});
28499
+ return Yt(Yt({ position: "absolute", userSelect: "none" }, h$[r]), o ?? {});
28540
28500
  }, [o, r]);
28541
28501
  return x.jsx("div", { className: i || void 0, style: l, onMouseDown: a, onTouchStart: s, children: n });
28542
- }), C$ = /* @__PURE__ */ function() {
28502
+ }), b$ = /* @__PURE__ */ function() {
28543
28503
  var e = function(t, r) {
28544
28504
  return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
28545
28505
  n.__proto__ = o;
@@ -28564,7 +28524,7 @@ var Yt = function() {
28564
28524
  }
28565
28525
  return e;
28566
28526
  }, fn.apply(this, arguments);
28567
- }, x$ = {
28527
+ }, y$ = {
28568
28528
  width: "auto",
28569
28529
  height: "auto"
28570
28530
  }, Ys = function(e, t, r) {
@@ -28576,7 +28536,7 @@ var Yt = function() {
28576
28536
  return new RegExp(e, "i").test(t);
28577
28537
  }, Js = function(e) {
28578
28538
  return !!(e.touches && e.touches.length);
28579
- }, w$ = function(e) {
28539
+ }, C$ = function(e) {
28580
28540
  return !!((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0));
28581
28541
  }, sh = function(e, t, r) {
28582
28542
  r === void 0 && (r = 0);
@@ -28604,16 +28564,16 @@ var Yt = function() {
28604
28564
  }
28605
28565
  }
28606
28566
  return e;
28607
- }, S$ = function(e, t, r, n, o, i, a) {
28567
+ }, x$ = function(e, t, r, n, o, i, a) {
28608
28568
  return n = Zs(n, e.width, t, r), o = Zs(o, e.height, t, r), i = Zs(i, e.width, t, r), a = Zs(a, e.height, t, r), {
28609
28569
  maxWidth: typeof n > "u" ? void 0 : Number(n),
28610
28570
  maxHeight: typeof o > "u" ? void 0 : Number(o),
28611
28571
  minWidth: typeof i > "u" ? void 0 : Number(i),
28612
28572
  minHeight: typeof a > "u" ? void 0 : Number(a)
28613
28573
  };
28614
- }, E$ = function(e) {
28574
+ }, w$ = function(e) {
28615
28575
  return Array.isArray(e) ? e : [e, e];
28616
- }, I$ = [
28576
+ }, S$ = [
28617
28577
  "as",
28618
28578
  "ref",
28619
28579
  "style",
@@ -28645,10 +28605,10 @@ var Yt = function() {
28645
28605
  "scale",
28646
28606
  "resizeRatio",
28647
28607
  "snapGap"
28648
- ], lh = "__resizable_base__", N$ = (
28608
+ ], lh = "__resizable_base__", E$ = (
28649
28609
  /** @class */
28650
28610
  function(e) {
28651
- C$(t, e);
28611
+ b$(t, e);
28652
28612
  function t(r) {
28653
28613
  var n, o, i, a, s = e.call(this, r) || this;
28654
28614
  return s.ratio = 1, s.resizable = null, s.parentLeft = 0, s.parentTop = 0, s.resizableLeft = 0, s.resizableRight = 0, s.resizableTop = 0, s.resizableBottom = 0, s.targetLeft = 0, s.targetTop = 0, s.delta = {
@@ -28706,7 +28666,7 @@ var Yt = function() {
28706
28666
  configurable: !0
28707
28667
  }), Object.defineProperty(t.prototype, "propsSize", {
28708
28668
  get: function() {
28709
- return this.props.size || this.props.defaultSize || x$;
28669
+ return this.props.size || this.props.defaultSize || y$;
28710
28670
  },
28711
28671
  enumerable: !1,
28712
28672
  configurable: !0
@@ -28781,7 +28741,7 @@ var Yt = function() {
28781
28741
  } else this.props.bounds === "window" ? this.window && (l = a ? this.resizableRight : this.window.innerWidth - this.resizableLeft, c = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (l = a ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), c = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
28782
28742
  return l && Number.isFinite(l) && (r = r && r < l ? r : l), c && Number.isFinite(c) && (n = n && n < c ? n : c), { maxWidth: r, maxHeight: n };
28783
28743
  }, t.prototype.calculateNewSizeFromDirection = function(r, n) {
28784
- var o = this.props.scale || 1, i = E$(this.props.resizeRatio || 1), a = i[0], s = i[1], l = this.state, c = l.direction, u = l.original, d = this.props, f = d.lockAspectRatio, p = d.lockAspectRatioExtraHeight, h = d.lockAspectRatioExtraWidth, m = u.width, g = u.height, b = p || 0, y = h || 0;
28744
+ var o = this.props.scale || 1, i = w$(this.props.resizeRatio || 1), a = i[0], s = i[1], l = this.state, c = l.direction, u = l.original, d = this.props, f = d.lockAspectRatio, p = d.lockAspectRatioExtraHeight, h = d.lockAspectRatioExtraWidth, m = u.width, g = u.height, b = p || 0, y = h || 0;
28785
28745
  return oi("right", c) && (m = u.width + (r - u.x) * a / o, f && (g = (m - y) / this.ratio + b)), oi("left", c) && (m = u.width - (r - u.x) * a / o, f && (g = (m - y) / this.ratio + b)), oi("bottom", c) && (g = u.height + (n - u.y) * s / o, f && (m = (g - b) * this.ratio + y)), oi("top", c) && (g = u.height - (n - u.y) * s / o, f && (m = (g - b) * this.ratio + y)), { newWidth: m, newHeight: g };
28786
28746
  }, t.prototype.calculateNewSizeFromAspectRatio = function(r, n, o, i) {
28787
28747
  var a = this.props, s = a.lockAspectRatio, l = a.lockAspectRatioExtraHeight, c = a.lockAspectRatioExtraWidth, u = typeof i.width > "u" ? 10 : i.width, d = typeof o.width > "u" || o.width < 0 ? r : o.width, f = typeof i.height > "u" ? 10 : i.height, p = typeof o.height > "u" || o.height < 0 ? n : o.height, h = l || 0, m = c || 0;
@@ -28811,7 +28771,7 @@ var Yt = function() {
28811
28771
  }, t.prototype.onResizeStart = function(r, n) {
28812
28772
  if (!(!this.resizable || !this.window)) {
28813
28773
  var o = 0, i = 0;
28814
- if (r.nativeEvent && w$(r.nativeEvent) ? (o = r.nativeEvent.clientX, i = r.nativeEvent.clientY) : r.nativeEvent && Js(r.nativeEvent) && (o = r.nativeEvent.touches[0].clientX, i = r.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
28774
+ if (r.nativeEvent && C$(r.nativeEvent) ? (o = r.nativeEvent.clientX, i = r.nativeEvent.clientY) : r.nativeEvent && Js(r.nativeEvent) && (o = r.nativeEvent.touches[0].clientX, i = r.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) {
28815
28775
  var a = this.props.onResizeStart(r, n, this.resizable);
28816
28776
  if (a === !1)
28817
28777
  return;
@@ -28848,7 +28808,7 @@ var Yt = function() {
28848
28808
  r.preventDefault(), r.stopPropagation();
28849
28809
  } catch {
28850
28810
  }
28851
- var o = this.props, i = o.maxWidth, a = o.maxHeight, s = o.minWidth, l = o.minHeight, c = Js(r) ? r.touches[0].clientX : r.clientX, u = Js(r) ? r.touches[0].clientY : r.clientY, d = this.state, f = d.direction, p = d.original, h = d.width, m = d.height, g = this.getParentSize(), b = S$(g, this.window.innerWidth, this.window.innerHeight, i, a, s, l);
28811
+ var o = this.props, i = o.maxWidth, a = o.maxHeight, s = o.minWidth, l = o.minHeight, c = Js(r) ? r.touches[0].clientX : r.clientX, u = Js(r) ? r.touches[0].clientY : r.clientY, d = this.state, f = d.direction, p = d.original, h = d.width, m = d.height, g = this.getParentSize(), b = x$(g, this.window.innerWidth, this.window.innerHeight, i, a, s, l);
28852
28812
  i = b.maxWidth, a = b.maxHeight, s = b.minWidth, l = b.minHeight;
28853
28813
  var y = this.calculateNewSizeFromDirection(c, u), w = y.newHeight, E = y.newWidth, v = this.calculateNewMaxFromBoundary(i, a);
28854
28814
  this.props.snap && this.props.snap.x && (E = sh(E, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (w = sh(w, this.props.snap.y, this.props.snapGap));
@@ -28909,12 +28869,12 @@ var Yt = function() {
28909
28869
  if (!o)
28910
28870
  return null;
28911
28871
  var u = Object.keys(o).map(function(d) {
28912
- return o[d] !== !1 ? x.jsx(y$, { direction: d, onResizeStart: r.onResizeStart, replaceStyles: i && i[d], className: a && a[d], children: c && c[d] ? c[d] : null }, d) : null;
28872
+ return o[d] !== !1 ? x.jsx(v$, { direction: d, onResizeStart: r.onResizeStart, replaceStyles: i && i[d], className: a && a[d], children: c && c[d] ? c[d] : null }, d) : null;
28913
28873
  });
28914
28874
  return x.jsx("div", { className: l, style: s, children: u });
28915
28875
  }, t.prototype.render = function() {
28916
28876
  var r = this, n = Object.keys(this.props).reduce(function(a, s) {
28917
- return I$.indexOf(s) !== -1 || (a[s] = r.props[s]), a;
28877
+ return S$.indexOf(s) !== -1 || (a[s] = r.props[s]), a;
28918
28878
  }, {}), o = fn(fn(fn({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 });
28919
28879
  this.state.flexBasis && (o.flexBasis = this.state.flexBasis);
28920
28880
  var i = this.props.as || "div";
@@ -28956,7 +28916,7 @@ var Yt = function() {
28956
28916
  }, t;
28957
28917
  }(c2)
28958
28918
  );
28959
- const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize flex items-center justify-center rounded-full bg-[#1018288F] bg-opacity-55 w-8 h-8 shadow-200 border-[1.5px] border-[#FFFFFF3D]", children: /* @__PURE__ */ x.jsxs(
28919
+ const I$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize flex items-center justify-center rounded-full bg-[#1018288F] bg-opacity-55 w-8 h-8 shadow-200 border-[1.5px] border-[#FFFFFF3D]", children: /* @__PURE__ */ x.jsxs(
28960
28920
  "svg",
28961
28921
  {
28962
28922
  width: "20",
@@ -28975,13 +28935,13 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
28975
28935
  ) })
28976
28936
  ]
28977
28937
  }
28978
- ) }), O$ = (e, t) => {
28938
+ ) }), N$ = (e, t) => {
28979
28939
  const r = document.getElementById(e);
28980
28940
  r ? t(r) : requestAnimationFrame(() => {
28981
28941
  const n = document.getElementById(e);
28982
28942
  n && t(n);
28983
28943
  });
28984
- }, P$ = (e, t) => {
28944
+ }, A$ = (e, t) => {
28985
28945
  if (e.current) {
28986
28946
  if (t)
28987
28947
  localStorage.setItem("resizable-sidebar-width-before-fullscreen", String(e.current.size?.width));
@@ -28997,16 +28957,16 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
28997
28957
  height: "100%"
28998
28958
  });
28999
28959
  }
29000
- }, ch = (e) => e === "dark" ? "bg-black-800 border-black-700" : "bg-white border-neutral-200", T$ = (e) => e === "dark" ? "hover:bg-neutral-700" : "hover:bg-neutral-200", $$ = (e, t, r, n, o, i) => {
28960
+ }, ch = (e) => e === "dark" ? "bg-black-800 border-black-700" : "bg-white border-neutral-200", O$ = (e) => e === "dark" ? "hover:bg-neutral-700" : "hover:bg-neutral-200", P$ = (e, t, r, n, o, i) => {
29001
28961
  const [a, s] = pe(!1), [l, c] = pe(null);
29002
28962
  return xe(() => {
29003
28963
  if (!e || typeof window > "u") {
29004
28964
  c(null);
29005
28965
  return;
29006
28966
  }
29007
- O$(e, c);
28967
+ N$(e, c);
29008
28968
  }, [e]), xe(() => {
29009
- P$(o, r);
28969
+ A$(o, r);
29010
28970
  }, [r]), xe(() => {
29011
28971
  if (e && t) {
29012
28972
  const u = requestAnimationFrame(() => {
@@ -29020,7 +28980,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29020
28980
  }, [t, e]), xe(() => {
29021
28981
  o.current?.size?.width && n && n(o.current.size.width);
29022
28982
  }, [o.current?.size?.width, n]), { shouldRenderSidebar: a, portalTarget: l };
29023
- }, R$ = ({
28983
+ }, T$ = ({
29024
28984
  isOpen: e,
29025
28985
  header: t,
29026
28986
  id: r,
@@ -29059,7 +29019,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29059
29019
  height: s
29060
29020
  },
29061
29021
  children: /* @__PURE__ */ x.jsx(
29062
- N$,
29022
+ E$,
29063
29023
  {
29064
29024
  onResize: (y) => {
29065
29025
  y.stopPropagation();
@@ -29078,7 +29038,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29078
29038
  handleClasses: {
29079
29039
  [p]: X(
29080
29040
  "relative w-6 -left-1 flex items-center justify-center bg-transparent transition-colors cursor-ew-resize group z-[9999]",
29081
- T$(h)
29041
+ O$(h)
29082
29042
  )
29083
29043
  },
29084
29044
  handleComponent: {
@@ -29089,7 +29049,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29089
29049
  "absolute -left-2.5 top-1/2 -translate-y-1/2 flex items-center justify-center w-8 h-12 cursor-ew-resize opacity-0 group-hover:opacity-100 hover:opacity-100 active:opacity-100 transition-opacity z-[9999]",
29090
29050
  p === "left" && "-right-2.5 -left-auto"
29091
29051
  ),
29092
- children: /* @__PURE__ */ x.jsx(A$, {})
29052
+ children: /* @__PURE__ */ x.jsx(I$, {})
29093
29053
  }
29094
29054
  )
29095
29055
  },
@@ -29113,7 +29073,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29113
29073
  }
29114
29074
  )
29115
29075
  }
29116
- ) }), k$ = Ze(
29076
+ ) }), $$ = Ze(
29117
29077
  ({
29118
29078
  isOpen: e,
29119
29079
  children: t,
@@ -29136,7 +29096,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29136
29096
  navbarHeight: y = 64,
29137
29097
  theme: w = "light"
29138
29098
  }, E) => {
29139
- const v = m ? g : b, I = oe(null), { shouldRenderSidebar: N, portalTarget: A } = $$(
29099
+ const v = m ? g : b, I = oe(null), { shouldRenderSidebar: N, portalTarget: A } = P$(
29140
29100
  c,
29141
29101
  e,
29142
29102
  r,
@@ -29147,7 +29107,7 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29147
29107
  animate: { x: 0 },
29148
29108
  exit: { x: k ? "100%" : "-100%" }
29149
29109
  }, $ = k ? "left" : "right", R = /* @__PURE__ */ x.jsx(
29150
- R$,
29110
+ T$,
29151
29111
  {
29152
29112
  isOpen: e,
29153
29113
  header: u,
@@ -29172,8 +29132,8 @@ const A$ = () => /* @__PURE__ */ x.jsx("div", { className: "cursor-ew-resize fle
29172
29132
  return c ? !N || !A ? null : Td.createPortal(R, A) : N ? R : null;
29173
29133
  }
29174
29134
  );
29175
- k$.displayName = "ResizableSidebar";
29176
- const F$ = Ze(
29135
+ $$.displayName = "ResizableSidebar";
29136
+ const R$ = Ze(
29177
29137
  ({
29178
29138
  pdfUrl: e,
29179
29139
  width: t = "100%",
@@ -29280,8 +29240,8 @@ const F$ = Ze(
29280
29240
  );
29281
29241
  }
29282
29242
  );
29283
- F$.displayName = "PdfViewer";
29284
- const j$ = ({
29243
+ R$.displayName = "PdfViewer";
29244
+ const k$ = ({
29285
29245
  ref: e,
29286
29246
  handler: t,
29287
29247
  enabled: r = !0
@@ -29295,7 +29255,7 @@ const j$ = ({
29295
29255
  document.removeEventListener("mousedown", n), document.removeEventListener("touchstart", n);
29296
29256
  };
29297
29257
  }, [e, t, r]);
29298
- }, M$ = Ze(
29258
+ }, F$ = Ze(
29299
29259
  ({
29300
29260
  children: e,
29301
29261
  component: t,
@@ -29314,7 +29274,7 @@ const j$ = ({
29314
29274
  disabled: h = !1
29315
29275
  }, m) => {
29316
29276
  const g = oe(null), b = oe(null);
29317
- j$({
29277
+ k$({
29318
29278
  ref: b,
29319
29279
  handler: () => {
29320
29280
  !f && n && o?.();
@@ -29473,9 +29433,9 @@ const j$ = ({
29473
29433
  ] });
29474
29434
  }
29475
29435
  );
29476
- M$.displayName = "Popper";
29436
+ F$.displayName = "Popper";
29477
29437
  const _a = (e) => typeof e == "number" && !isNaN(e), Mo = (e) => typeof e == "string", Mr = (e) => typeof e == "function", xl = (e) => Mo(e) || Mr(e) ? e : null, Hf = (e) => Ro(e) || Mo(e) || Mr(e) || _a(e);
29478
- function L$(e, t, r) {
29438
+ function j$(e, t, r) {
29479
29439
  r === void 0 && (r = 300);
29480
29440
  const { scrollHeight: n, style: o } = e;
29481
29441
  requestAnimationFrame(() => {
@@ -29496,7 +29456,7 @@ function Kc(e) {
29496
29456
  b.classList.add(...y), b.addEventListener("animationend", w), b.addEventListener("animationcancel", w);
29497
29457
  }, []), xe(() => {
29498
29458
  const b = d.current, y = () => {
29499
- b.removeEventListener("animationend", y), o ? L$(b, u, i) : u();
29459
+ b.removeEventListener("animationend", y), o ? j$(b, u, i) : u();
29500
29460
  };
29501
29461
  f || (c ? y() : (g.current = 1, b.className += ` ${m}`, b.addEventListener("animationend", y)));
29502
29462
  }, [f]), J.createElement(J.Fragment, null, s);
@@ -29507,7 +29467,7 @@ function uh(e, t) {
29507
29467
  }
29508
29468
  const br = /* @__PURE__ */ new Map();
29509
29469
  let Ba = [];
29510
- const Wf = /* @__PURE__ */ new Set(), D$ = (e) => Wf.forEach((t) => t(e)), pC = () => br.size > 0;
29470
+ const Wf = /* @__PURE__ */ new Set(), M$ = (e) => Wf.forEach((t) => t(e)), pC = () => br.size > 0;
29511
29471
  function hC(e, t) {
29512
29472
  var r;
29513
29473
  if (t) return !((r = br.get(t)) == null || !r.isToastActive(e));
@@ -29526,7 +29486,7 @@ function dh(e, t) {
29526
29486
  t != null && t != null && t.containerId ? t?.containerId === r.id && r.toggle(e, t?.id) : r.toggle(e, t?.id);
29527
29487
  });
29528
29488
  }
29529
- function _$(e) {
29489
+ function L$(e) {
29530
29490
  const { subscribe: t, getSnapshot: r, setProps: n } = oe(function(i) {
29531
29491
  const a = i.containerId || 1;
29532
29492
  return { subscribe(s) {
@@ -29576,7 +29536,7 @@ function _$(e) {
29576
29536
  }, setToggle: (A, O) => {
29577
29537
  w.get(A).toggle = O;
29578
29538
  }, isToastActive: (A) => g.some((O) => O === A), getSnapshot: () => b };
29579
- }(a, i, D$);
29539
+ }(a, i, M$);
29580
29540
  br.set(a, l);
29581
29541
  const c = l.observe(s);
29582
29542
  return Ba.forEach((u) => vC(u.content, u.options)), Ba = [], () => {
@@ -29601,7 +29561,7 @@ function _$(e) {
29601
29561
  }), Array.from(a, (s) => i(s[0], s[1]));
29602
29562
  }, isToastActive: hC, count: o?.length };
29603
29563
  }
29604
- function B$(e) {
29564
+ function D$(e) {
29605
29565
  const [t, r] = pe(!1), [n, o] = pe(!1), i = oe(null), a = oe({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: s, pauseOnHover: l, closeToast: c, onClick: u, closeOnClick: d } = e;
29606
29566
  var f, p;
29607
29567
  function h() {
@@ -29641,7 +29601,7 @@ function B$(e) {
29641
29601
  u && u(w), a.canCloseOnClick && c();
29642
29602
  }), { playToast: h, pauseToast: m, isRunning: t, preventExitTransition: n, toastRef: i, eventHandlers: y };
29643
29603
  }
29644
- function V$(e) {
29604
+ function _$(e) {
29645
29605
  let { delay: t, isRunning: r, closeToast: n, type: o = "default", hide: i, className: a, style: s, controlledProgress: l, progress: c, rtl: u, isIn: d, theme: f } = e;
29646
29606
  const p = i || l && c === 0, h = { ...s, animationDuration: `${t}ms`, animationPlayState: r ? "running" : "paused" };
29647
29607
  l && (h.transform = `scaleX(${c})`);
@@ -29650,16 +29610,16 @@ function V$(e) {
29650
29610
  } };
29651
29611
  return J.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": p }, J.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${o}` }), J.createElement("div", { role: "progressbar", "aria-hidden": p ? "true" : "false", "aria-label": "notification timer", className: g, style: h, ...b }));
29652
29612
  }
29653
- let z$ = 1;
29654
- const bC = () => "" + z$++;
29655
- function G$(e) {
29613
+ let B$ = 1;
29614
+ const bC = () => "" + B$++;
29615
+ function V$(e) {
29656
29616
  return e && (Mo(e.toastId) || _a(e.toastId)) ? e.toastId : bC();
29657
29617
  }
29658
29618
  function ya(e, t) {
29659
29619
  return vC(e, t), t.toastId;
29660
29620
  }
29661
29621
  function Ql(e, t) {
29662
- return { ...t, type: t && t.type || e, toastId: G$(t) };
29622
+ return { ...t, type: t && t.type || e, toastId: V$(t) };
29663
29623
  }
29664
29624
  function qs(e) {
29665
29625
  return (t, r) => ya(t, Ql(e, r));
@@ -29715,7 +29675,7 @@ Fe.loading = (e, t) => ya(e, Ql("default", { isLoading: !0, autoClose: !1, close
29715
29675
  Wf.delete(e);
29716
29676
  };
29717
29677
  }, Fe.play = (e) => dh(!0, e), Fe.pause = (e) => dh(!1, e);
29718
- const H$ = typeof window < "u" ? ic : xe, Qs = (e) => {
29678
+ const z$ = typeof window < "u" ? ic : xe, Qs = (e) => {
29719
29679
  let { theme: t, type: r, isLoading: n, ...o } = e;
29720
29680
  return J.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})`, ...o });
29721
29681
  }, bd = { info: function(e) {
@@ -29728,8 +29688,8 @@ const H$ = typeof window < "u" ? ic : xe, Qs = (e) => {
29728
29688
  return J.createElement(Qs, { ...e }, J.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
29729
29689
  }, spinner: function() {
29730
29690
  return J.createElement("div", { className: "Toastify__spinner" });
29731
- } }, W$ = (e) => {
29732
- const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o, playToast: i } = B$(e), { closeButton: a, children: s, autoClose: l, onClick: c, type: u, hideProgressBar: d, closeToast: f, transition: p, position: h, className: m, style: g, bodyClassName: b, bodyStyle: y, progressClassName: w, progressStyle: E, updateId: v, role: I, progress: N, rtl: A, toastId: O, deleteToast: P, isIn: k, isLoading: S, closeOnClick: T, theme: $ } = e, R = vn("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": A }, { "Toastify__toast--close-on-click": T }), F = Mr(m) ? m({ rtl: A, position: h, type: u, defaultClassName: R }) : vn(R, m), z = function(L) {
29691
+ } }, G$ = (e) => {
29692
+ const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o, playToast: i } = D$(e), { closeButton: a, children: s, autoClose: l, onClick: c, type: u, hideProgressBar: d, closeToast: f, transition: p, position: h, className: m, style: g, bodyClassName: b, bodyStyle: y, progressClassName: w, progressStyle: E, updateId: v, role: I, progress: N, rtl: A, toastId: O, deleteToast: P, isIn: k, isLoading: S, closeOnClick: T, theme: $ } = e, R = vn("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": A }, { "Toastify__toast--close-on-click": T }), F = Mr(m) ? m({ rtl: A, position: h, type: u, defaultClassName: R }) : vn(R, m), z = function(L) {
29733
29693
  let { theme: _, type: M, isLoading: V, icon: Q } = L, q = null;
29734
29694
  const W = { theme: _, type: M };
29735
29695
  return Q === !1 || (Mr(Q) ? q = Q({ ...W, isLoading: V }) : Ro(Q) ? q = Pd(Q, W) : V ? q = bd.spinner() : ((K) => K in bd)(M) && (q = bd[M](W))), q;
@@ -29740,16 +29700,16 @@ const H$ = typeof window < "u" ? ic : xe, Qs = (e) => {
29740
29700
  return J.createElement("button", { className: `Toastify__close-button Toastify__close-button--${M}`, type: "button", onClick: (Q) => {
29741
29701
  Q.stopPropagation(), _(Q);
29742
29702
  }, "aria-label": V }, J.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, J.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" })));
29743
- }(B)), J.createElement(p, { isIn: k, done: P, position: h, preventExitTransition: r, nodeRef: n, playToast: i }, J.createElement("div", { id: O, onClick: c, "data-in": k, className: F, ...o, style: g, ref: n }, J.createElement("div", { ...k && { role: I }, className: Mr(b) ? b({ type: u }) : vn("Toastify__toast-body", b), style: y }, z != null && J.createElement("div", { className: vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, z), J.createElement("div", null, s)), D, J.createElement(V$, { ...v && !H ? { key: `pb-${v}` } : {}, rtl: A, theme: $, delay: l, isRunning: t, isIn: k, closeToast: f, hide: d, type: u, style: E, className: w, controlledProgress: H, progress: N || 0 })));
29703
+ }(B)), J.createElement(p, { isIn: k, done: P, position: h, preventExitTransition: r, nodeRef: n, playToast: i }, J.createElement("div", { id: O, onClick: c, "data-in": k, className: F, ...o, style: g, ref: n }, J.createElement("div", { ...k && { role: I }, className: Mr(b) ? b({ type: u }) : vn("Toastify__toast-body", b), style: y }, z != null && J.createElement("div", { className: vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, z), J.createElement("div", null, s)), D, J.createElement(_$, { ...v && !H ? { key: `pb-${v}` } : {}, rtl: A, theme: $, delay: l, isRunning: t, isIn: k, closeToast: f, hide: d, type: u, style: E, className: w, controlledProgress: H, progress: N || 0 })));
29744
29704
  }, eu = function(e, t) {
29745
29705
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
29746
- }, X$ = Kc(eu("bounce", !0)), U$ = Kc(eu("slide", !0));
29706
+ }, H$ = Kc(eu("bounce", !0)), W$ = Kc(eu("slide", !0));
29747
29707
  Kc(eu("zoom"));
29748
29708
  Kc(eu("flip"));
29749
- const Y$ = { position: "top-right", transition: X$, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
29750
- function J$(e) {
29751
- let t = { ...Y$, ...e };
29752
- const r = e.stacked, [n, o] = pe(!0), i = oe(null), { getToastToRender: a, isToastActive: s, count: l } = _$(t), { className: c, style: u, rtl: d, containerId: f } = t;
29709
+ const X$ = { position: "top-right", transition: H$, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
29710
+ function U$(e) {
29711
+ let t = { ...X$, ...e };
29712
+ const r = e.stacked, [n, o] = pe(!0), i = oe(null), { getToastToRender: a, isToastActive: s, count: l } = L$(t), { className: c, style: u, rtl: d, containerId: f } = t;
29753
29713
  function p(m) {
29754
29714
  const g = vn("Toastify__toast-container", `Toastify__toast-container--${m}`, { "Toastify__toast-container--rtl": d });
29755
29715
  return Mr(c) ? c({ position: m, rtl: d, defaultClassName: g }) : vn(g, xl(c));
@@ -29757,7 +29717,7 @@ function J$(e) {
29757
29717
  function h() {
29758
29718
  r && (o(!0), Fe.play());
29759
29719
  }
29760
- return H$(() => {
29720
+ return z$(() => {
29761
29721
  if (r) {
29762
29722
  var m;
29763
29723
  const g = i.current.querySelectorAll('[data-in="true"]'), b = 12, y = (m = t.position) == null ? void 0 : m.includes("top");
@@ -29775,11 +29735,11 @@ function J$(e) {
29775
29735
  const b = g.length ? { ...u } : { ...u, pointerEvents: "none" };
29776
29736
  return J.createElement("div", { className: p(m), style: b, key: `container-${m}` }, g.map((y) => {
29777
29737
  let { content: w, props: E } = y;
29778
- return J.createElement(W$, { ...E, stacked: r, collapseAll: h, isIn: s(E.toastId, E.containerId), style: E.style, key: `toast-${E.key}` }, w);
29738
+ return J.createElement(G$, { ...E, stacked: r, collapseAll: h, isIn: s(E.toastId, E.containerId), style: E.style, key: `toast-${E.key}` }, w);
29779
29739
  }));
29780
29740
  }));
29781
29741
  }
29782
- const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29742
+ const Y$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29783
29743
  "svg",
29784
29744
  {
29785
29745
  width: e,
@@ -29795,7 +29755,7 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29795
29755
  }
29796
29756
  ) })
29797
29757
  }
29798
- ), q$ = ({ size: e = 24, fill: t = "#F04438" }) => /* @__PURE__ */ x.jsx(
29758
+ ), J$ = ({ size: e = 24, fill: t = "#F04438" }) => /* @__PURE__ */ x.jsx(
29799
29759
  "svg",
29800
29760
  {
29801
29761
  width: e,
@@ -29812,7 +29772,7 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29812
29772
  }
29813
29773
  ) }) })
29814
29774
  }
29815
- ), Q$ = ({ size: e = 24, fill: t = "#F79009" }) => /* @__PURE__ */ x.jsx(
29775
+ ), Z$ = ({ size: e = 24, fill: t = "#F79009" }) => /* @__PURE__ */ x.jsx(
29816
29776
  "svg",
29817
29777
  {
29818
29778
  xmlns: "http://www.w3.org/2000/svg",
@@ -29828,7 +29788,7 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29828
29788
  }
29829
29789
  )
29830
29790
  }
29831
- ), K$ = ({ size: e = 24, fill: t = "#016DCF" }) => /* @__PURE__ */ x.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: e, height: e, viewBox: "0 0 24 24", fill: "none", children: [
29791
+ ), q$ = ({ size: e = 24, fill: t = "#016DCF" }) => /* @__PURE__ */ x.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: e, height: e, viewBox: "0 0 24 24", fill: "none", children: [
29832
29792
  /* @__PURE__ */ x.jsx("mask", { id: "mask0_32271_5688", maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: /* @__PURE__ */ x.jsx("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }),
29833
29793
  /* @__PURE__ */ x.jsx("g", { mask: "url(#mask0_32271_5688)", children: /* @__PURE__ */ x.jsx(
29834
29794
  "path",
@@ -29837,7 +29797,7 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29837
29797
  fill: t
29838
29798
  }
29839
29799
  ) })
29840
- ] }), eR = ({ size: e = 24, fill: t = "#016DCF" }) => /* @__PURE__ */ x.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: e, height: e, viewBox: "0 0 24 24", fill: "none", children: [
29800
+ ] }), Q$ = ({ size: e = 24, fill: t = "#016DCF" }) => /* @__PURE__ */ x.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: e, height: e, viewBox: "0 0 24 24", fill: "none", children: [
29841
29801
  /* @__PURE__ */ x.jsx("mask", { id: "mask0_35096_2621", maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: /* @__PURE__ */ x.jsx("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }),
29842
29802
  /* @__PURE__ */ x.jsx("g", { mask: "url(#mask0_35096_2621)", children: /* @__PURE__ */ x.jsx(
29843
29803
  "path",
@@ -29846,7 +29806,7 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29846
29806
  fill: t
29847
29807
  }
29848
29808
  ) })
29849
- ] }), tR = ({ size: e = 16 }) => /* @__PURE__ */ x.jsx(
29809
+ ] }), K$ = ({ size: e = 16 }) => /* @__PURE__ */ x.jsx(
29850
29810
  "svg",
29851
29811
  {
29852
29812
  width: e,
@@ -29856,28 +29816,28 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29856
29816
  xmlns: "http://www.w3.org/2000/svg",
29857
29817
  children: /* @__PURE__ */ x.jsx("path", { d: "M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z" })
29858
29818
  }
29859
- ), rR = (e) => {
29819
+ ), eR = (e) => {
29860
29820
  switch (e) {
29861
29821
  case "success":
29862
- return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(Z$, { size: 24, fill: "#12B76A" }) });
29822
+ return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-green-50 dark:bg-green-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(Y$, { size: 24, fill: "#12B76A" }) });
29863
29823
  case "error":
29864
- return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(q$, { fill: "#F04438", size: 24 }) });
29824
+ return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-red-50 dark:bg-red-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(J$, { fill: "#F04438", size: 24 }) });
29865
29825
  case "warning":
29866
- return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(Q$, { fill: "#F79009", size: 24 }) });
29826
+ return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-yellow-50 dark:bg-yellow-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(Z$, { fill: "#F79009", size: 24 }) });
29867
29827
  case "info":
29868
- return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(K$, {}) });
29828
+ return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(q$, {}) });
29869
29829
  case "in-progress":
29870
- return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(eR, {}) });
29830
+ return /* @__PURE__ */ x.jsx("div", { className: "w-8 h-8 bg-blue-50 dark:bg-blue-900 rounded-full p-1 flex justify-center items-center", children: /* @__PURE__ */ x.jsx(Q$, {}) });
29871
29831
  default:
29872
29832
  return null;
29873
29833
  }
29874
- }, nR = {
29834
+ }, tR = {
29875
29835
  success: "border-b-[5px] !border-green-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",
29876
29836
  error: "border-b-[5px] !border-red-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",
29877
29837
  warning: "border-b-[5px] !border-yellow-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",
29878
29838
  info: "border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600",
29879
29839
  "in-progress": "border-b-[5px] !border-blue-500 dark:!border-t-[1px] dark:!border-r-[1px] dark:!border-l-[1px] dark:!border-t-neutral-600 dark:!border-r-neutral-600 dark:!border-l-neutral-600"
29880
- }, oR = ({ closeToast: e }) => /* @__PURE__ */ x.jsx("button", { onClick: e, className: "text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors", children: /* @__PURE__ */ x.jsx(tR, { size: 16 }) }), Xj = ({
29840
+ }, rR = ({ closeToast: e }) => /* @__PURE__ */ x.jsx("button", { onClick: e, className: "text-neutral-900 dark:text-white hover:text-neutral-600 dark:hover:text-neutral-300 transition-colors", children: /* @__PURE__ */ x.jsx(K$, { size: 16 }) }), Wj = ({
29881
29841
  position: e = "bottom-right",
29882
29842
  autoClose: t = 3e3,
29883
29843
  hideProgressBar: r = !0,
@@ -29891,10 +29851,10 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29891
29851
  style: u = { zIndex: 1e5 },
29892
29852
  ...d
29893
29853
  }) => /* @__PURE__ */ x.jsx(
29894
- J$,
29854
+ U$,
29895
29855
  {
29896
29856
  position: e,
29897
- transition: U$,
29857
+ transition: W$,
29898
29858
  autoClose: t,
29899
29859
  hideProgressBar: r,
29900
29860
  newestOnTop: n,
@@ -29903,19 +29863,19 @@ const Z$ = ({ size: e = 24, fill: t = "#12B76A" }) => /* @__PURE__ */ x.jsx(
29903
29863
  pauseOnFocusLoss: i,
29904
29864
  draggable: a,
29905
29865
  pauseOnHover: s,
29906
- icon: ({ type: f }) => rR(f),
29866
+ icon: ({ type: f }) => eR(f),
29907
29867
  bodyStyle: {
29908
29868
  gap: "4px"
29909
29869
  },
29910
29870
  style: u,
29911
29871
  toastClassName: (f) => {
29912
29872
  const { type: p = "", defaultClassName: h = "" } = f || {};
29913
- return `w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${nR[p]} ${c || ""}`;
29873
+ return `w-[100%] sm:w-[400px] bg-white dark:bg-neutral-800 rounded-[4px] font-medium text-sm text-neutral-900 dark:text-white shadow-lg p-[20px] min-h-0 ${h} ${tR[p]} ${c || ""}`;
29914
29874
  },
29915
- closeButton: oR,
29875
+ closeButton: rR,
29916
29876
  ...d
29917
29877
  }
29918
- ), Uj = {
29878
+ ), Xj = {
29919
29879
  success: (e, t) => Fe.success(e, t),
29920
29880
  error: (e, t) => Fe.error(e, t),
29921
29881
  warning: (e, t) => Fe.warning(e, t),
@@ -29965,27 +29925,27 @@ function Sr(e, t) {
29965
29925
  if (!e)
29966
29926
  throw new Error(t);
29967
29927
  }
29968
- const iR = 34028234663852886e22, aR = -34028234663852886e22, sR = 4294967295, lR = 2147483647, cR = -2147483648;
29928
+ const nR = 34028234663852886e22, oR = -34028234663852886e22, iR = 4294967295, aR = 2147483647, sR = -2147483648;
29969
29929
  function wl(e) {
29970
29930
  if (typeof e != "number")
29971
29931
  throw new Error("invalid int 32: " + typeof e);
29972
- if (!Number.isInteger(e) || e > lR || e < cR)
29932
+ if (!Number.isInteger(e) || e > aR || e < sR)
29973
29933
  throw new Error("invalid int 32: " + e);
29974
29934
  }
29975
29935
  function Xf(e) {
29976
29936
  if (typeof e != "number")
29977
29937
  throw new Error("invalid uint 32: " + typeof e);
29978
- if (!Number.isInteger(e) || e > sR || e < 0)
29938
+ if (!Number.isInteger(e) || e > iR || e < 0)
29979
29939
  throw new Error("invalid uint 32: " + e);
29980
29940
  }
29981
29941
  function CC(e) {
29982
29942
  if (typeof e != "number")
29983
29943
  throw new Error("invalid float 32: " + typeof e);
29984
- if (Number.isFinite(e) && (e > iR || e < aR))
29944
+ if (Number.isFinite(e) && (e > nR || e < oR))
29985
29945
  throw new Error("invalid float 32: " + e);
29986
29946
  }
29987
29947
  const xC = Symbol("@bufbuild/protobuf/enum-type");
29988
- function uR(e) {
29948
+ function lR(e) {
29989
29949
  const t = e[xC];
29990
29950
  return Sr(t, "missing enum type on enum object"), t;
29991
29951
  }
@@ -30015,7 +29975,7 @@ function SC(e, t, r) {
30015
29975
  }
30016
29976
  };
30017
29977
  }
30018
- function dR(e, t, r) {
29978
+ function cR(e, t, r) {
30019
29979
  const n = {};
30020
29980
  for (const o of t) {
30021
29981
  const i = EC(o);
@@ -30123,7 +30083,7 @@ class yt {
30123
30083
  return Object.getPrototypeOf(this).constructor;
30124
30084
  }
30125
30085
  }
30126
- function fR(e, t, r, n) {
30086
+ function uR(e, t, r, n) {
30127
30087
  var o;
30128
30088
  const i = (o = n?.localName) !== null && o !== void 0 ? o : t.substring(t.lastIndexOf(".") + 1), a = {
30129
30089
  [i]: function(s) {
@@ -30148,18 +30108,18 @@ function fR(e, t, r, n) {
30148
30108
  }
30149
30109
  }), a;
30150
30110
  }
30151
- function mR(e, t, r, n) {
30111
+ function dR(e, t, r, n) {
30152
30112
  return {
30153
30113
  syntax: e,
30154
30114
  json: t,
30155
30115
  bin: r,
30156
30116
  util: n,
30157
30117
  makeMessageType(o, i, a) {
30158
- return fR(this, o, i, a);
30118
+ return uR(this, o, i, a);
30159
30119
  },
30160
- makeEnum: dR,
30120
+ makeEnum: cR,
30161
30121
  makeEnumType: SC,
30162
- getEnumType: uR
30122
+ getEnumType: lR
30163
30123
  };
30164
30124
  }
30165
30125
  var re;
@@ -30170,7 +30130,7 @@ var _o;
30170
30130
  (function(e) {
30171
30131
  e[e.BIGINT = 0] = "BIGINT", e[e.STRING = 1] = "STRING";
30172
30132
  })(_o || (_o = {}));
30173
- function gR() {
30133
+ function fR() {
30174
30134
  let e = 0, t = 0;
30175
30135
  for (let n = 0; n < 28; n += 7) {
30176
30136
  let o = this.buf[this.pos++];
@@ -30215,7 +30175,7 @@ function fh(e) {
30215
30175
  }
30216
30176
  return i(-24, -18), i(-18, -12), i(-12, -6), i(-6), t ? NC(n, o) : J0(n, o);
30217
30177
  }
30218
- function pR(e, t) {
30178
+ function mR(e, t) {
30219
30179
  let r = J0(e, t);
30220
30180
  const n = r.hi & 2147483648;
30221
30181
  n && (r = NC(r.lo, r.hi));
@@ -30223,14 +30183,14 @@ function pR(e, t) {
30223
30183
  return n ? "-" + o : o;
30224
30184
  }
30225
30185
  function IC(e, t) {
30226
- if ({ lo: e, hi: t } = hR(e, t), t <= 2097151)
30186
+ if ({ lo: e, hi: t } = gR(e, t), t <= 2097151)
30227
30187
  return String(Sl * t + e);
30228
30188
  const r = e & 16777215, n = (e >>> 24 | t << 8) & 16777215, o = t >> 16 & 65535;
30229
30189
  let i = r + n * 6777216 + o * 6710656, a = n + o * 8147497, s = o * 2;
30230
30190
  const l = 1e7;
30231
30191
  return i >= l && (a += Math.floor(i / l), i %= l), a >= l && (s += Math.floor(a / l), a %= l), s.toString() + mh(a) + mh(i);
30232
30192
  }
30233
- function hR(e, t) {
30193
+ function gR(e, t) {
30234
30194
  return { lo: e >>> 0, hi: t >>> 0 };
30235
30195
  }
30236
30196
  function J0(e, t) {
@@ -30254,7 +30214,7 @@ function gh(e, t) {
30254
30214
  t.push(1);
30255
30215
  }
30256
30216
  }
30257
- function vR() {
30217
+ function pR() {
30258
30218
  let e = this.buf[this.pos++], t = e & 127;
30259
30219
  if ((e & 128) == 0)
30260
30220
  return this.assertBounds(), t;
@@ -30271,7 +30231,7 @@ function vR() {
30271
30231
  throw new Error("invalid varint");
30272
30232
  return this.assertBounds(), t >>> 0;
30273
30233
  }
30274
- function bR() {
30234
+ function hR() {
30275
30235
  const e = new DataView(new ArrayBuffer(8));
30276
30236
  if (typeof BigInt == "function" && typeof e.getBigInt64 == "function" && typeof e.getBigUint64 == "function" && typeof e.setBigInt64 == "function" && typeof e.setBigUint64 == "function" && (typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
30277
30237
  const o = BigInt("-9223372036854775808"), i = BigInt("9223372036854775807"), a = BigInt("0"), s = BigInt("18446744073709551615");
@@ -30327,19 +30287,19 @@ function bR() {
30327
30287
  return typeof o != "string" && (o = o.toString()), n(o), fh(o);
30328
30288
  },
30329
30289
  dec(o, i) {
30330
- return pR(o, i);
30290
+ return mR(o, i);
30331
30291
  },
30332
30292
  uDec(o, i) {
30333
30293
  return IC(o, i);
30334
30294
  }
30335
30295
  };
30336
30296
  }
30337
- const pt = bR();
30297
+ const pt = hR();
30338
30298
  var Gt;
30339
30299
  (function(e) {
30340
30300
  e[e.Varint = 0] = "Varint", e[e.Bit64 = 1] = "Bit64", e[e.LengthDelimited = 2] = "LengthDelimited", e[e.StartGroup = 3] = "StartGroup", e[e.EndGroup = 4] = "EndGroup", e[e.Bit32 = 5] = "Bit32";
30341
30301
  })(Gt || (Gt = {}));
30342
- class yR {
30302
+ class vR {
30343
30303
  constructor(t) {
30344
30304
  this.stack = [], this.textEncoder = t ?? new TextEncoder(), this.chunks = [], this.buf = [];
30345
30305
  }
@@ -30497,9 +30457,9 @@ class yR {
30497
30457
  return yd(r.lo, r.hi, this.buf), this;
30498
30458
  }
30499
30459
  }
30500
- class CR {
30460
+ class bR {
30501
30461
  constructor(t, r) {
30502
- this.varint64 = gR, this.uint32 = vR, this.buf = t, this.len = t.length, this.pos = 0, this.view = new DataView(t.buffer, t.byteOffset, t.byteLength), this.textDecoder = r ?? new TextDecoder();
30462
+ this.varint64 = fR, this.uint32 = pR, this.buf = t, this.len = t.length, this.pos = 0, this.view = new DataView(t.buffer, t.byteOffset, t.byteLength), this.textDecoder = r ?? new TextDecoder();
30503
30463
  }
30504
30464
  /**
30505
30465
  * Reads a tag - field number and wire type.
@@ -30732,21 +30692,21 @@ function AC(e, t) {
30732
30692
  }
30733
30693
  const ii = Symbol("@bufbuild/protobuf/unknown-fields"), ph = {
30734
30694
  readUnknownFields: !0,
30735
- readerFactory: (e) => new CR(e)
30695
+ readerFactory: (e) => new bR(e)
30736
30696
  }, hh = {
30737
30697
  writeUnknownFields: !0,
30738
- writerFactory: () => new yR()
30698
+ writerFactory: () => new vR()
30739
30699
  };
30740
- function xR(e) {
30700
+ function yR(e) {
30741
30701
  return e ? Object.assign(Object.assign({}, ph), e) : ph;
30742
30702
  }
30743
- function wR(e) {
30703
+ function CR(e) {
30744
30704
  return e ? Object.assign(Object.assign({}, hh), e) : hh;
30745
30705
  }
30746
- function SR() {
30706
+ function xR() {
30747
30707
  return {
30748
- makeReadOptions: xR,
30749
- makeWriteOptions: wR,
30708
+ makeReadOptions: yR,
30709
+ makeWriteOptions: CR,
30750
30710
  listUnknownFields(e) {
30751
30711
  var t;
30752
30712
  return (t = e[ii]) !== null && t !== void 0 ? t : [];
@@ -30779,7 +30739,7 @@ function SR() {
30779
30739
  case "enum":
30780
30740
  const f = l.kind == "enum" ? re.INT32 : l.T;
30781
30741
  let p = Kl;
30782
- if (l.kind == "scalar" && l.L > 0 && (p = IR), u) {
30742
+ if (l.kind == "scalar" && l.L > 0 && (p = SR), u) {
30783
30743
  let b = c[d];
30784
30744
  if (s == Gt.LengthDelimited && f != re.STRING && f != re.BYTES) {
30785
30745
  let y = t.uint32() + t.pos;
@@ -30795,7 +30755,7 @@ function SR() {
30795
30755
  u ? c[d].push(El(t, new h(), n)) : c[d] instanceof yt ? El(t, c[d], n) : (c[d] = El(t, new h(), n), h.fieldWrapper && !l.oneof && !l.repeated && (c[d] = h.fieldWrapper.unwrapField(c[d])));
30796
30756
  break;
30797
30757
  case "map":
30798
- let [m, g] = ER(l, t, n);
30758
+ let [m, g] = wR(l, t, n);
30799
30759
  c[d][m] = g;
30800
30760
  break;
30801
30761
  }
@@ -30806,7 +30766,7 @@ function SR() {
30806
30766
  function El(e, t, r) {
30807
30767
  return t.getType().runtime.bin.readMessage(t, e, e.uint32(), r), t;
30808
30768
  }
30809
- function ER(e, t, r) {
30769
+ function wR(e, t, r) {
30810
30770
  const n = t.uint32(), o = t.pos + n;
30811
30771
  let i, a;
30812
30772
  for (; t.pos < o; ) {
@@ -30848,7 +30808,7 @@ function ER(e, t, r) {
30848
30808
  }
30849
30809
  return [i, a];
30850
30810
  }
30851
- function IR(e, t) {
30811
+ function SR(e, t) {
30852
30812
  const r = Kl(e, t);
30853
30813
  return typeof r == "bigint" ? r.toString() : r;
30854
30814
  }
@@ -30886,7 +30846,7 @@ function Kl(e, t) {
30886
30846
  return e.sint32();
30887
30847
  }
30888
30848
  }
30889
- function NR(e, t, r, n, o) {
30849
+ function ER(e, t, r, n, o) {
30890
30850
  e.tag(r.no, Gt.LengthDelimited), e.fork();
30891
30851
  let i = n;
30892
30852
  switch (r.K) {
@@ -30924,7 +30884,7 @@ function Ca(e, t, r, n, o) {
30924
30884
  let [i, a, s] = AC(t, n);
30925
30885
  (!s || o) && e.tag(r, i)[a](n);
30926
30886
  }
30927
- function AR(e, t, r, n) {
30887
+ function IR(e, t, r, n) {
30928
30888
  if (!n.length)
30929
30889
  return;
30930
30890
  e.tag(r, Gt.LengthDelimited).fork();
@@ -30933,8 +30893,8 @@ function AR(e, t, r, n) {
30933
30893
  e[o](n[i]);
30934
30894
  e.join();
30935
30895
  }
30936
- function OR() {
30937
- return Object.assign(Object.assign({}, SR()), { writeMessage(e, t, r) {
30896
+ function NR() {
30897
+ return Object.assign(Object.assign({}, xR()), { writeMessage(e, t, r) {
30938
30898
  const n = e.getType();
30939
30899
  for (const o of n.fields.byNumber()) {
30940
30900
  let i, a = o.repeated, s = o.localName;
@@ -30951,7 +30911,7 @@ function OR() {
30951
30911
  let l = o.kind == "enum" ? re.INT32 : o.T;
30952
30912
  if (a)
30953
30913
  if (o.packed)
30954
- AR(t, l, o.no, i);
30914
+ IR(t, l, o.no, i);
30955
30915
  else
30956
30916
  for (const c of i)
30957
30917
  Ca(t, l, o.no, c, !0);
@@ -30967,7 +30927,7 @@ function OR() {
30967
30927
  break;
30968
30928
  case "map":
30969
30929
  for (const [c, u] of Object.entries(i))
30970
- NR(t, r, o, c, u);
30930
+ ER(t, r, o, c, u);
30971
30931
  break;
30972
30932
  }
30973
30933
  }
@@ -31059,17 +31019,17 @@ const ru = {
31059
31019
  useProtoFieldName: !1,
31060
31020
  prettySpaces: 0
31061
31021
  };
31062
- function PR(e) {
31022
+ function AR(e) {
31063
31023
  return e ? Object.assign(Object.assign({}, vh), e) : vh;
31064
31024
  }
31065
- function TR(e) {
31025
+ function OR(e) {
31066
31026
  return e ? Object.assign(Object.assign({}, bh), e) : bh;
31067
31027
  }
31068
- function $R(e) {
31069
- const t = e(RR, yh);
31028
+ function PR(e) {
31029
+ const t = e(TR, yh);
31070
31030
  return {
31071
- makeReadOptions: PR,
31072
- makeWriteOptions: TR,
31031
+ makeReadOptions: AR,
31032
+ makeWriteOptions: OR,
31073
31033
  readMessage(r, n, o, i) {
31074
31034
  if (n == null || Array.isArray(n) || typeof n != "object")
31075
31035
  throw new Error(`cannot decode message ${r.typeName} from JSON: ${this.debug(n)}`);
@@ -31317,7 +31277,7 @@ function Cd(e, t, r) {
31317
31277
  }
31318
31278
  throw new Error(`cannot decode enum ${e.typeName} from JSON: ${OC(t)}`);
31319
31279
  }
31320
- function RR(e, t, r, n) {
31280
+ function TR(e, t, r, n) {
31321
31281
  var o;
31322
31282
  if (t === void 0)
31323
31283
  return t;
@@ -31365,8 +31325,8 @@ function yh(e, t, r) {
31365
31325
  return Sr(t instanceof Uint8Array), r || t.byteLength > 0 ? ru.enc(t) : void 0;
31366
31326
  }
31367
31327
  }
31368
- function kR() {
31369
- return $R((e, t) => function(n, o, i) {
31328
+ function $R() {
31329
+ return PR((e, t) => function(n, o, i) {
31370
31330
  if (n.kind == "map") {
31371
31331
  const a = {};
31372
31332
  switch (n.V.kind) {
@@ -31418,7 +31378,7 @@ function kR() {
31418
31378
  }
31419
31379
  });
31420
31380
  }
31421
- function FR() {
31381
+ function RR() {
31422
31382
  return {
31423
31383
  setEnumType: wC,
31424
31384
  initPartial(e, t) {
@@ -31559,7 +31519,7 @@ function Ks(e) {
31559
31519
  function ta(e) {
31560
31520
  return e instanceof Uint8Array ? e : new Uint8Array(e);
31561
31521
  }
31562
- class jR {
31522
+ class kR {
31563
31523
  constructor(t, r) {
31564
31524
  this._fields = t, this._normalizer = r;
31565
31525
  }
@@ -31600,12 +31560,12 @@ class jR {
31600
31560
  }
31601
31561
  function PC(e, t) {
31602
31562
  const r = TC(e);
31603
- return t ? r : VR(BR(r));
31563
+ return t ? r : _R(DR(r));
31604
31564
  }
31605
- function MR(e) {
31565
+ function FR(e) {
31606
31566
  return PC(e, !1);
31607
31567
  }
31608
- const LR = TC;
31568
+ const jR = TC;
31609
31569
  function TC(e) {
31610
31570
  let t = !1;
31611
31571
  const r = [];
@@ -31634,13 +31594,13 @@ function TC(e) {
31634
31594
  }
31635
31595
  return r.join("");
31636
31596
  }
31637
- const DR = /* @__PURE__ */ new Set([
31597
+ const MR = /* @__PURE__ */ new Set([
31638
31598
  // names reserved by JavaScript
31639
31599
  "constructor",
31640
31600
  "toString",
31641
31601
  "toJSON",
31642
31602
  "valueOf"
31643
- ]), _R = /* @__PURE__ */ new Set([
31603
+ ]), LR = /* @__PURE__ */ new Set([
31644
31604
  // names reserved by the runtime
31645
31605
  "getType",
31646
31606
  "clone",
@@ -31653,10 +31613,10 @@ const DR = /* @__PURE__ */ new Set([
31653
31613
  "toJsonString",
31654
31614
  // names reserved by the runtime for the future
31655
31615
  "toObject"
31656
- ]), $C = (e) => `${e}$`, BR = (e) => _R.has(e) ? $C(e) : e, VR = (e) => DR.has(e) ? $C(e) : e;
31657
- class zR {
31616
+ ]), $C = (e) => `${e}$`, DR = (e) => LR.has(e) ? $C(e) : e, _R = (e) => MR.has(e) ? $C(e) : e;
31617
+ class BR {
31658
31618
  constructor(t) {
31659
- this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.default = void 0, this.fields = [], this.name = t, this.localName = MR(t);
31619
+ this.kind = "oneof", this.repeated = !1, this.packed = !1, this.opt = !1, this.default = void 0, this.fields = [], this.name = t, this.localName = FR(t);
31660
31620
  }
31661
31621
  addField(t) {
31662
31622
  Sr(t.oneof === this, `field ${t.name} not one of ${this.name}`), this.fields.push(t);
@@ -31670,9 +31630,9 @@ class zR {
31670
31630
  return this._lookup[t];
31671
31631
  }
31672
31632
  }
31673
- const ie = mR("proto3", kR(), OR(), Object.assign(Object.assign({}, FR()), {
31633
+ const ie = dR("proto3", $R(), NR(), Object.assign(Object.assign({}, RR()), {
31674
31634
  newFieldList(e) {
31675
- return new jR(e, GR);
31635
+ return new kR(e, VR);
31676
31636
  },
31677
31637
  initFields(e) {
31678
31638
  for (const t of e.getType().fields.byMember()) {
@@ -31700,15 +31660,15 @@ const ie = mR("proto3", kR(), OR(), Object.assign(Object.assign({}, FR()), {
31700
31660
  }
31701
31661
  }
31702
31662
  }));
31703
- function GR(e) {
31663
+ function VR(e) {
31704
31664
  var t, r, n, o;
31705
31665
  const i = [];
31706
31666
  let a;
31707
31667
  for (const s of typeof e == "function" ? e() : e) {
31708
31668
  const l = s;
31709
- if (l.localName = PC(s.name, s.oneof !== void 0), l.jsonName = (t = s.jsonName) !== null && t !== void 0 ? t : LR(s.name), l.repeated = (r = s.repeated) !== null && r !== void 0 ? r : !1, s.kind == "scalar" && (l.L = (n = s.L) !== null && n !== void 0 ? n : _o.BIGINT), l.packed = (o = s.packed) !== null && o !== void 0 ? o : s.kind == "enum" || s.kind == "scalar" && s.T != re.BYTES && s.T != re.STRING, s.oneof !== void 0) {
31669
+ if (l.localName = PC(s.name, s.oneof !== void 0), l.jsonName = (t = s.jsonName) !== null && t !== void 0 ? t : jR(s.name), l.repeated = (r = s.repeated) !== null && r !== void 0 ? r : !1, s.kind == "scalar" && (l.L = (n = s.L) !== null && n !== void 0 ? n : _o.BIGINT), l.packed = (o = s.packed) !== null && o !== void 0 ? o : s.kind == "enum" || s.kind == "scalar" && s.T != re.BYTES && s.T != re.STRING, s.oneof !== void 0) {
31710
31670
  const c = typeof s.oneof == "string" ? s.oneof : s.oneof.name;
31711
- (!a || a.name != c) && (a = new zR(c)), l.oneof = a, a.addField(l);
31671
+ (!a || a.name != c) && (a = new BR(c)), l.oneof = a, a.addField(l);
31712
31672
  }
31713
31673
  i.push(l);
31714
31674
  }
@@ -31731,7 +31691,7 @@ function qf(e) {
31731
31691
  return typeof t != "string" ? e.toString() : t[0].toLowerCase() + t.substring(1).replace(/[A-Z]/g, (r) => "_" + r.toLowerCase());
31732
31692
  }
31733
31693
  let el;
31734
- function HR(e) {
31694
+ function zR(e) {
31735
31695
  if (!el) {
31736
31696
  el = {};
31737
31697
  for (const t of Object.values(et))
@@ -31748,7 +31708,7 @@ class ar extends Error {
31748
31708
  * to encode and send the details along with error.
31749
31709
  */
31750
31710
  constructor(t, r = et.Unknown, n, o, i) {
31751
- super(WR(t, r)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = t, this.code = r, this.metadata = new Headers(n ?? {}), this.details = o ?? [], this.cause = i;
31711
+ super(GR(t, r)), this.name = "ConnectError", Object.setPrototypeOf(this, new.target.prototype), this.rawMessage = t, this.code = r, this.metadata = new Headers(n ?? {}), this.details = o ?? [], this.cause = i;
31752
31712
  }
31753
31713
  /**
31754
31714
  * Convert any value - typically a caught error into a ConnectError,
@@ -31784,10 +31744,10 @@ class ar extends Error {
31784
31744
  return n;
31785
31745
  }
31786
31746
  }
31787
- function WR(e, t) {
31747
+ function GR(e, t) {
31788
31748
  return e.length ? `[${qf(t)}] ${e}` : `[${qf(t)}]`;
31789
31749
  }
31790
- function XR(...e) {
31750
+ function HR(...e) {
31791
31751
  const t = new Headers();
31792
31752
  for (const r of e)
31793
31753
  r.forEach((n, o) => {
@@ -31795,7 +31755,7 @@ function XR(...e) {
31795
31755
  });
31796
31756
  return t;
31797
31757
  }
31798
- function UR(e, t) {
31758
+ function WR(e, t) {
31799
31759
  const r = {};
31800
31760
  for (const [n, o] of Object.entries(e.methods)) {
31801
31761
  const i = t(Object.assign(Object.assign({}, o), {
@@ -31806,7 +31766,7 @@ function UR(e, t) {
31806
31766
  }
31807
31767
  return r;
31808
31768
  }
31809
- function YR(e) {
31769
+ function XR(e) {
31810
31770
  let t, r = new Uint8Array(0);
31811
31771
  function n(o) {
31812
31772
  const i = new Uint8Array(r.length + o.length);
@@ -31848,13 +31808,13 @@ function YR(e) {
31848
31808
  }
31849
31809
  });
31850
31810
  }
31851
- function JR(e, t) {
31811
+ function UR(e, t) {
31852
31812
  const r = new Uint8Array(t.length + 5);
31853
31813
  r.set(t, 5);
31854
31814
  const n = new DataView(r.buffer, r.byteOffset, r.byteLength);
31855
31815
  return n.setUint8(0, e), n.setUint32(1, t.length), r;
31856
31816
  }
31857
- var ZR = function(e) {
31817
+ var YR = function(e) {
31858
31818
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
31859
31819
  var t = e[Symbol.asyncIterator], r;
31860
31820
  return t ? t.call(e) : (e = typeof __values == "function" ? __values(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
@@ -31874,7 +31834,7 @@ var ZR = function(e) {
31874
31834
  }
31875
31835
  }, Va = function(e) {
31876
31836
  return this instanceof Va ? (this.v = e, this) : new Va(e);
31877
- }, qR = function(e, t, r) {
31837
+ }, JR = function(e, t, r) {
31878
31838
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
31879
31839
  var n = r.apply(e, t || []), o, i = [];
31880
31840
  return o = {}, a("next"), a("throw"), a("return"), o[Symbol.asyncIterator] = function() {
@@ -31906,7 +31866,7 @@ var ZR = function(e) {
31906
31866
  function d(f, p) {
31907
31867
  f(p), i.shift(), i.length && s(i[0][0], i[0][1]);
31908
31868
  }
31909
- }, QR = function(e) {
31869
+ }, ZR = function(e) {
31910
31870
  var t, r;
31911
31871
  return t = {}, n("next"), n("throw", function(o) {
31912
31872
  throw o;
@@ -31919,9 +31879,9 @@ var ZR = function(e) {
31919
31879
  } : i;
31920
31880
  }
31921
31881
  };
31922
- function KR(e) {
31923
- return qR(this, arguments, function* () {
31924
- yield Va(yield* QR(ZR(e)));
31882
+ function qR(e) {
31883
+ return JR(this, arguments, function* () {
31884
+ yield Va(yield* ZR(YR(e)));
31925
31885
  });
31926
31886
  }
31927
31887
  var RC = function(e) {
@@ -31944,7 +31904,7 @@ var RC = function(e) {
31944
31904
  }
31945
31905
  }, $i = function(e) {
31946
31906
  return this instanceof $i ? (this.v = e, this) : new $i(e);
31947
- }, ek = function(e) {
31907
+ }, QR = function(e) {
31948
31908
  var t, r;
31949
31909
  return t = {}, n("next"), n("throw", function(o) {
31950
31910
  throw o;
@@ -31956,7 +31916,7 @@ var RC = function(e) {
31956
31916
  return (r = !r) ? { value: $i(e[o](a)), done: !1 } : i ? i(a) : a;
31957
31917
  } : i;
31958
31918
  }
31959
- }, tk = function(e, t, r) {
31919
+ }, KR = function(e, t, r) {
31960
31920
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
31961
31921
  var n = r.apply(e, t || []), o, i = [];
31962
31922
  return o = {}, a("next"), a("throw"), a("return"), o[Symbol.asyncIterator] = function() {
@@ -31989,35 +31949,35 @@ var RC = function(e) {
31989
31949
  f(p), i.shift(), i.length && s(i[0][0], i[0][1]);
31990
31950
  }
31991
31951
  };
31992
- function rk(e, t) {
31993
- return UR(e, (r) => {
31952
+ function ek(e, t) {
31953
+ return WR(e, (r) => {
31994
31954
  switch (r.kind) {
31995
31955
  case Ur.Unary:
31996
- return nk(t, e, r);
31956
+ return tk(t, e, r);
31997
31957
  case Ur.ServerStreaming:
31998
- return ok(t, e, r);
31958
+ return rk(t, e, r);
31999
31959
  case Ur.ClientStreaming:
32000
- return ik(t, e, r);
31960
+ return nk(t, e, r);
32001
31961
  case Ur.BiDiStreaming:
32002
- return ak(t, e, r);
31962
+ return ok(t, e, r);
32003
31963
  default:
32004
31964
  return null;
32005
31965
  }
32006
31966
  });
32007
31967
  }
32008
- function nk(e, t, r) {
31968
+ function tk(e, t, r) {
32009
31969
  return async function(n, o) {
32010
31970
  var i, a;
32011
31971
  const s = await e.unary(t, r, o?.signal, o?.timeoutMs, o?.headers, n, o?.contextValues);
32012
31972
  return (i = o?.onHeader) === null || i === void 0 || i.call(o, s.header), (a = o?.onTrailer) === null || a === void 0 || a.call(o, s.trailer), s.message;
32013
31973
  };
32014
31974
  }
32015
- function ok(e, t, r) {
31975
+ function rk(e, t, r) {
32016
31976
  return function(n, o) {
32017
- return kC(e.stream(t, r, o?.signal, o?.timeoutMs, o?.headers, KR([n]), o?.contextValues), o);
31977
+ return kC(e.stream(t, r, o?.signal, o?.timeoutMs, o?.headers, qR([n]), o?.contextValues), o);
32018
31978
  };
32019
31979
  }
32020
- function ik(e, t, r) {
31980
+ function nk(e, t, r) {
32021
31981
  return async function(n, o) {
32022
31982
  var i, a, s, l, c, u;
32023
31983
  const d = await e.stream(t, r, o?.signal, o?.timeoutMs, o?.headers, n, o?.contextValues);
@@ -32040,7 +32000,7 @@ function ik(e, t, r) {
32040
32000
  return (u = o?.onTrailer) === null || u === void 0 || u.call(o, d.trailer), f;
32041
32001
  };
32042
32002
  }
32043
- function ak(e, t, r) {
32003
+ function ok(e, t, r) {
32044
32004
  return function(n, o) {
32045
32005
  return kC(e.stream(t, r, o?.signal, o?.timeoutMs, o?.headers, n, o?.contextValues), o);
32046
32006
  };
@@ -32048,9 +32008,9 @@ function ak(e, t, r) {
32048
32008
  function kC(e, t) {
32049
32009
  const r = function() {
32050
32010
  var n, o;
32051
- return tk(this, arguments, function* () {
32011
+ return KR(this, arguments, function* () {
32052
32012
  const i = yield $i(e);
32053
- (n = t?.onHeader) === null || n === void 0 || n.call(t, i.header), yield $i(yield* ek(RC(i.message))), (o = t?.onTrailer) === null || o === void 0 || o.call(t, i.trailer);
32013
+ (n = t?.onHeader) === null || n === void 0 || n.call(t, i.header), yield $i(yield* QR(RC(i.message))), (o = t?.onTrailer) === null || o === void 0 || o.call(t, i.trailer);
32054
32014
  });
32055
32015
  }()[Symbol.asyncIterator]();
32056
32016
  return {
@@ -32059,7 +32019,7 @@ function kC(e, t) {
32059
32019
  })
32060
32020
  };
32061
32021
  }
32062
- function sk(...e) {
32022
+ function ik(...e) {
32063
32023
  const t = new AbortController(), r = e.filter((o) => o !== void 0).concat(t.signal);
32064
32024
  for (const o of r) {
32065
32025
  if (o.aborted) {
@@ -32075,7 +32035,7 @@ function sk(...e) {
32075
32035
  }
32076
32036
  return t;
32077
32037
  }
32078
- function lk(e) {
32038
+ function ak(e) {
32079
32039
  const t = new AbortController(), r = () => {
32080
32040
  t.abort(new ar("the operation timed out", et.DeadlineExceeded));
32081
32041
  };
@@ -32113,7 +32073,7 @@ function xh(e, t, r) {
32113
32073
  function jC(e, t) {
32114
32074
  return t instanceof yt ? t : new e(t);
32115
32075
  }
32116
- function ck(e, t) {
32076
+ function sk(e, t) {
32117
32077
  function r(n) {
32118
32078
  return n.done === !0 ? n : {
32119
32079
  done: n.done,
@@ -32180,9 +32140,9 @@ function Eh(e, t) {
32180
32140
  }
32181
32141
  };
32182
32142
  }
32183
- const uk = /^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i, dk = "application/proto", fk = "application/json", mk = "application/connect+proto", gk = "application/connect+json";
32184
- function pk(e) {
32185
- const t = e?.match(uk);
32143
+ const lk = /^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i, ck = "application/proto", uk = "application/json", dk = "application/connect+proto", fk = "application/connect+json";
32144
+ function mk(e) {
32145
+ const t = e?.match(lk);
32186
32146
  if (!t)
32187
32147
  return;
32188
32148
  const r = !!t[1], n = !!t[3];
@@ -32191,7 +32151,7 @@ function pk(e) {
32191
32151
  function LC(e, t, r) {
32192
32152
  if (t && new Headers(t).forEach((a, s) => r.metadata.append(s, a)), typeof e != "object" || e == null || Array.isArray(e) || !("code" in e) || typeof e.code != "string")
32193
32153
  throw r;
32194
- const n = HR(e.code);
32154
+ const n = zR(e.code);
32195
32155
  if (n === void 0)
32196
32156
  throw r;
32197
32157
  const o = e.message;
@@ -32215,7 +32175,7 @@ function LC(e, t, r) {
32215
32175
  return i;
32216
32176
  }
32217
32177
  const Ih = 2;
32218
- function hk(e) {
32178
+ function gk(e) {
32219
32179
  const t = new ar("invalid end stream", et.InvalidArgument);
32220
32180
  let r;
32221
32181
  try {
@@ -32239,8 +32199,8 @@ function hk(e) {
32239
32199
  const o = "error" in r ? LC(r.error, n, t) : void 0;
32240
32200
  return { metadata: n, error: o };
32241
32201
  }
32242
- const Qf = "Content-Type", vk = "Content-Length", Nh = "Content-Encoding", bk = "Accept-Encoding", yk = "Connect-Timeout-Ms", DC = "Connect-Protocol-Version", Ck = "User-Agent";
32243
- function xk(e) {
32202
+ const Qf = "Content-Type", pk = "Content-Length", Nh = "Content-Encoding", hk = "Accept-Encoding", vk = "Connect-Timeout-Ms", DC = "Connect-Protocol-Version", bk = "User-Agent";
32203
+ function yk(e) {
32244
32204
  switch (e) {
32245
32205
  case 400:
32246
32206
  return et.InvalidArgument;
@@ -32283,12 +32243,12 @@ function Ah(e) {
32283
32243
  const _C = "1";
32284
32244
  function Oh(e, t, r, n) {
32285
32245
  const o = new Headers(n ?? {});
32286
- return r !== void 0 && o.set(yk, `${r}`), o.set(Qf, e == Ur.Unary ? t ? dk : fk : t ? mk : gk), o.set(DC, _C), o.set(Ck, "connect-es/1.1.3"), o;
32246
+ return r !== void 0 && o.set(vk, `${r}`), o.set(Qf, e == Ur.Unary ? t ? ck : uk : t ? dk : fk), o.set(DC, _C), o.set(bk, "connect-es/1.1.3"), o;
32287
32247
  }
32288
32248
  function Ph(e, t, r) {
32289
- const n = r.get("Content-Type"), o = pk(n);
32249
+ const n = r.get("Content-Type"), o = mk(n);
32290
32250
  if (t !== 200) {
32291
- const i = new ar(`HTTP ${t}`, xk(t), r);
32251
+ const i = new ar(`HTTP ${t}`, yk(t), r);
32292
32252
  if (e == Ur.Unary && o && !o.binary)
32293
32253
  return { isUnaryError: !0, unaryError: i };
32294
32254
  throw i;
@@ -32296,34 +32256,34 @@ function Ph(e, t, r) {
32296
32256
  return { isUnaryError: !1 };
32297
32257
  }
32298
32258
  const Th = "application/";
32299
- function wk(e, t) {
32259
+ function Ck(e, t) {
32300
32260
  return t ? ru.enc(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "") : encodeURIComponent(new TextDecoder().decode(e));
32301
32261
  }
32302
- function Sk(e, t, r) {
32262
+ function xk(e, t, r) {
32303
32263
  let n = `?connect=v${_C}`;
32304
32264
  const o = e.header.get(Qf);
32305
32265
  o?.indexOf(Th) === 0 && (n += "&encoding=" + encodeURIComponent(o.slice(Th.length)));
32306
32266
  const i = e.header.get(Nh);
32307
- i !== null && i !== "identity" && (n += "&compression=" + encodeURIComponent(i), r = !0), r && (n += "&base64=1"), n += "&message=" + wk(t, r);
32267
+ i !== null && i !== "identity" && (n += "&compression=" + encodeURIComponent(i), r = !0), r && (n += "&base64=1"), n += "&message=" + Ck(t, r);
32308
32268
  const a = e.url + n, s = new Headers(e.header);
32309
32269
  return [
32310
32270
  DC,
32311
32271
  Qf,
32312
- vk,
32272
+ pk,
32313
32273
  Nh,
32314
- bk
32274
+ hk
32315
32275
  ].forEach((l) => s.delete(l)), Object.assign(Object.assign({}, e), {
32316
32276
  init: Object.assign(Object.assign({}, e.init), { method: "GET" }),
32317
32277
  url: a,
32318
32278
  header: s
32319
32279
  });
32320
32280
  }
32321
- function Ek(e) {
32281
+ function wk(e) {
32322
32282
  const t = VC(e.next, e.interceptors), [r, n, o] = BC(e), i = Object.assign(Object.assign({}, e.req), { message: jC(e.req.method.I, e.req.message), signal: r });
32323
32283
  return t(i).then((a) => (o(), a), n);
32324
32284
  }
32325
- function Ik(e) {
32326
- const t = VC(e.next, e.interceptors), [r, n, o] = BC(e), i = Object.assign(Object.assign({}, e.req), { message: ck(e.req.method.I, e.req.message), signal: r });
32285
+ function Sk(e) {
32286
+ const t = VC(e.next, e.interceptors), [r, n, o] = BC(e), i = Object.assign(Object.assign({}, e.req), { message: sk(e.req.method.I, e.req.message), signal: r });
32327
32287
  let a = !1;
32328
32288
  return r.addEventListener("abort", function() {
32329
32289
  var s, l;
@@ -32344,7 +32304,7 @@ function Ik(e) {
32344
32304
  } }), n);
32345
32305
  }
32346
32306
  function BC(e) {
32347
- const { signal: t, cleanup: r } = lk(e.timeoutMs), n = sk(e.signal, t);
32307
+ const { signal: t, cleanup: r } = ak(e.timeoutMs), n = ik(e.signal, t);
32348
32308
  return [
32349
32309
  n.signal,
32350
32310
  function(i) {
@@ -32364,7 +32324,7 @@ function VC(e, t) {
32364
32324
  e
32365
32325
  )) !== null && r !== void 0 ? r : e;
32366
32326
  }
32367
- function Nk() {
32327
+ function Ek() {
32368
32328
  try {
32369
32329
  new Headers();
32370
32330
  } catch {
@@ -32373,7 +32333,7 @@ function Nk() {
32373
32333
  }
32374
32334
  var za = function(e) {
32375
32335
  return this instanceof za ? (this.v = e, this) : new za(e);
32376
- }, Ak = function(e, t, r) {
32336
+ }, Ik = function(e, t, r) {
32377
32337
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
32378
32338
  var n = r.apply(e, t || []), o, i = [];
32379
32339
  return o = {}, a("next"), a("throw"), a("return"), o[Symbol.asyncIterator] = function() {
@@ -32406,15 +32366,15 @@ var za = function(e) {
32406
32366
  f(p), i.shift(), i.length && s(i[0][0], i[0][1]);
32407
32367
  }
32408
32368
  };
32409
- function Ok(e) {
32369
+ function Nk(e) {
32410
32370
  var t;
32411
- Nk();
32371
+ Ek();
32412
32372
  const r = (t = e.useBinaryFormat) !== null && t !== void 0 ? t : !1;
32413
32373
  return {
32414
32374
  async unary(n, o, i, a, s, l, c) {
32415
32375
  var u;
32416
32376
  const { serialize: d, parse: f } = wh(o, r, e.jsonOptions, e.binaryOptions);
32417
- return a = a === void 0 ? e.defaultTimeoutMs : a <= 0 ? void 0 : a, await Ek({
32377
+ return a = a === void 0 ? e.defaultTimeoutMs : a <= 0 ? void 0 : a, await wk({
32418
32378
  interceptors: e.interceptors,
32419
32379
  signal: i,
32420
32380
  timeoutMs: a,
@@ -32437,10 +32397,10 @@ function Ok(e) {
32437
32397
  var h;
32438
32398
  const m = e.useHttpGet === !0 && o.idempotency === Zf.NoSideEffects;
32439
32399
  let g = null;
32440
- m ? p = Sk(p, d(p.message), r) : g = d(p.message);
32400
+ m ? p = xk(p, d(p.message), r) : g = d(p.message);
32441
32401
  const y = await ((h = e.fetch) !== null && h !== void 0 ? h : globalThis.fetch)(p.url, Object.assign(Object.assign({}, p.init), { headers: p.header, signal: p.signal, body: g })), { isUnaryError: w, unaryError: E } = Ph(o.kind, y.status, y.headers);
32442
32402
  if (w)
32443
- throw LC(await y.json(), XR(...Ah(y.headers)), E);
32403
+ throw LC(await y.json(), HR(...Ah(y.headers)), E);
32444
32404
  const [v, I] = Ah(y.headers);
32445
32405
  return {
32446
32406
  stream: !1,
@@ -32457,8 +32417,8 @@ function Ok(e) {
32457
32417
  var u;
32458
32418
  const { serialize: d, parse: f } = wh(o, r, e.jsonOptions, e.binaryOptions);
32459
32419
  function p(m, g) {
32460
- return Ak(this, arguments, function* () {
32461
- const y = YR(m).getReader();
32420
+ return Ik(this, arguments, function* () {
32421
+ const y = XR(m).getReader();
32462
32422
  let w = !1;
32463
32423
  for (; ; ) {
32464
32424
  const E = yield za(y.read());
@@ -32467,7 +32427,7 @@ function Ok(e) {
32467
32427
  const { flags: v, data: I } = E.value;
32468
32428
  if ((v & Ih) === Ih) {
32469
32429
  w = !0;
32470
- const N = hk(I);
32430
+ const N = gk(I);
32471
32431
  if (N.error)
32472
32432
  throw N.error;
32473
32433
  N.metadata.forEach((A, O) => g.set(O, A));
@@ -32485,9 +32445,9 @@ function Ok(e) {
32485
32445
  const g = await m[Symbol.asyncIterator]().next();
32486
32446
  if (g.done == !0)
32487
32447
  throw "missing request message";
32488
- return JR(0, d(g.value));
32448
+ return UR(0, d(g.value));
32489
32449
  }
32490
- return a = a === void 0 ? e.defaultTimeoutMs : a <= 0 ? void 0 : a, await Ik({
32450
+ return a = a === void 0 ? e.defaultTimeoutMs : a <= 0 ? void 0 : a, await Sk({
32491
32451
  interceptors: e.interceptors,
32492
32452
  timeoutMs: a,
32493
32453
  signal: i,
@@ -32522,7 +32482,7 @@ var $o;
32522
32482
  (function(e) {
32523
32483
  e.INACTIVE = "inactive", e.PROCESSING = "processing", e.SUCCESS = "success", e.WARNING = "warning", e.ERROR = "error";
32524
32484
  })($o || ($o = {}));
32525
- function Pk(e, t, r) {
32485
+ function Ak(e, t, r) {
32526
32486
  return t in e ? Object.defineProperty(e, t, {
32527
32487
  value: r,
32528
32488
  enumerable: !0,
@@ -32544,23 +32504,23 @@ function Rh(e) {
32544
32504
  for (var t = 1; t < arguments.length; t++) {
32545
32505
  var r = arguments[t] != null ? arguments[t] : {};
32546
32506
  t % 2 ? $h(Object(r), !0).forEach(function(n) {
32547
- Pk(e, n, r[n]);
32507
+ Ak(e, n, r[n]);
32548
32508
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : $h(Object(r)).forEach(function(n) {
32549
32509
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
32550
32510
  });
32551
32511
  }
32552
32512
  return e;
32553
32513
  }
32554
- function Tk(e, t) {
32514
+ function Ok(e, t) {
32555
32515
  if (e == null) return {};
32556
32516
  var r = {}, n = Object.keys(e), o, i;
32557
32517
  for (i = 0; i < n.length; i++)
32558
32518
  o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
32559
32519
  return r;
32560
32520
  }
32561
- function $k(e, t) {
32521
+ function Pk(e, t) {
32562
32522
  if (e == null) return {};
32563
- var r = Tk(e, t), n, o;
32523
+ var r = Ok(e, t), n, o;
32564
32524
  if (Object.getOwnPropertySymbols) {
32565
32525
  var i = Object.getOwnPropertySymbols(e);
32566
32526
  for (o = 0; o < i.length; o++)
@@ -32568,13 +32528,13 @@ function $k(e, t) {
32568
32528
  }
32569
32529
  return r;
32570
32530
  }
32571
- function Rk(e, t) {
32572
- return kk(e) || Fk(e, t) || jk(e, t) || Mk();
32531
+ function Tk(e, t) {
32532
+ return $k(e) || Rk(e, t) || kk(e, t) || Fk();
32573
32533
  }
32574
- function kk(e) {
32534
+ function $k(e) {
32575
32535
  if (Array.isArray(e)) return e;
32576
32536
  }
32577
- function Fk(e, t) {
32537
+ function Rk(e, t) {
32578
32538
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
32579
32539
  var r = [], n = !0, o = !1, i = void 0;
32580
32540
  try {
@@ -32592,7 +32552,7 @@ function Fk(e, t) {
32592
32552
  return r;
32593
32553
  }
32594
32554
  }
32595
- function jk(e, t) {
32555
+ function kk(e, t) {
32596
32556
  if (e) {
32597
32557
  if (typeof e == "string") return kh(e, t);
32598
32558
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -32605,11 +32565,11 @@ function kh(e, t) {
32605
32565
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
32606
32566
  return n;
32607
32567
  }
32608
- function Mk() {
32568
+ function Fk() {
32609
32569
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
32610
32570
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
32611
32571
  }
32612
- function Lk(e, t, r) {
32572
+ function jk(e, t, r) {
32613
32573
  return t in e ? Object.defineProperty(e, t, {
32614
32574
  value: r,
32615
32575
  enumerable: !0,
@@ -32631,14 +32591,14 @@ function jh(e) {
32631
32591
  for (var t = 1; t < arguments.length; t++) {
32632
32592
  var r = arguments[t] != null ? arguments[t] : {};
32633
32593
  t % 2 ? Fh(Object(r), !0).forEach(function(n) {
32634
- Lk(e, n, r[n]);
32594
+ jk(e, n, r[n]);
32635
32595
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Fh(Object(r)).forEach(function(n) {
32636
32596
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
32637
32597
  });
32638
32598
  }
32639
32599
  return e;
32640
32600
  }
32641
- function Dk() {
32601
+ function Mk() {
32642
32602
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
32643
32603
  t[r] = arguments[r];
32644
32604
  return function(n) {
@@ -32661,35 +32621,35 @@ function da(e) {
32661
32621
  function ec(e) {
32662
32622
  return {}.toString.call(e).includes("Object");
32663
32623
  }
32664
- function _k(e) {
32624
+ function Lk(e) {
32665
32625
  return !Object.keys(e).length;
32666
32626
  }
32667
32627
  function Ga(e) {
32668
32628
  return typeof e == "function";
32669
32629
  }
32670
- function Bk(e, t) {
32630
+ function Dk(e, t) {
32671
32631
  return Object.prototype.hasOwnProperty.call(e, t);
32672
32632
  }
32673
- function Vk(e, t) {
32633
+ function _k(e, t) {
32674
32634
  return ec(t) || po("changeType"), Object.keys(t).some(function(r) {
32675
- return !Bk(e, r);
32635
+ return !Dk(e, r);
32676
32636
  }) && po("changeField"), t;
32677
32637
  }
32678
- function zk(e) {
32638
+ function Bk(e) {
32679
32639
  Ga(e) || po("selectorType");
32680
32640
  }
32681
- function Gk(e) {
32641
+ function Vk(e) {
32682
32642
  Ga(e) || ec(e) || po("handlerType"), ec(e) && Object.values(e).some(function(t) {
32683
32643
  return !Ga(t);
32684
32644
  }) && po("handlersType");
32685
32645
  }
32686
- function Hk(e) {
32687
- e || po("initialIsRequired"), ec(e) || po("initialType"), _k(e) && po("initialContent");
32646
+ function zk(e) {
32647
+ e || po("initialIsRequired"), ec(e) || po("initialType"), Lk(e) && po("initialContent");
32688
32648
  }
32689
- function Wk(e, t) {
32649
+ function Gk(e, t) {
32690
32650
  throw new Error(e[t] || e.default);
32691
32651
  }
32692
- var Xk = {
32652
+ var Hk = {
32693
32653
  initialIsRequired: "initial state is required",
32694
32654
  initialType: "initial state should be an object",
32695
32655
  initialContent: "initial state shouldn't be an empty object",
@@ -32699,18 +32659,18 @@ var Xk = {
32699
32659
  changeType: "provided value of changes should be an object",
32700
32660
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
32701
32661
  default: "an unknown error accured in `state-local` package"
32702
- }, po = da(Wk)(Xk), tl = {
32703
- changes: Vk,
32704
- selector: zk,
32705
- handler: Gk,
32706
- initial: Hk
32662
+ }, po = da(Gk)(Hk), tl = {
32663
+ changes: _k,
32664
+ selector: Bk,
32665
+ handler: Vk,
32666
+ initial: zk
32707
32667
  };
32708
- function Uk(e) {
32668
+ function Wk(e) {
32709
32669
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
32710
32670
  tl.initial(e), tl.handler(t);
32711
32671
  var r = {
32712
32672
  current: e
32713
- }, n = da(Zk)(r, t), o = da(Jk)(r), i = da(tl.changes)(e), a = da(Yk)(r);
32673
+ }, n = da(Yk)(r, t), o = da(Uk)(r), i = da(tl.changes)(e), a = da(Xk)(r);
32714
32674
  function s() {
32715
32675
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(u) {
32716
32676
  return u;
@@ -32718,30 +32678,30 @@ function Uk(e) {
32718
32678
  return tl.selector(c), c(r.current);
32719
32679
  }
32720
32680
  function l(c) {
32721
- Dk(n, o, i, a)(c);
32681
+ Mk(n, o, i, a)(c);
32722
32682
  }
32723
32683
  return [s, l];
32724
32684
  }
32725
- function Yk(e, t) {
32685
+ function Xk(e, t) {
32726
32686
  return Ga(t) ? t(e.current) : t;
32727
32687
  }
32728
- function Jk(e, t) {
32688
+ function Uk(e, t) {
32729
32689
  return e.current = jh(jh({}, e.current), t), t;
32730
32690
  }
32731
- function Zk(e, t, r) {
32691
+ function Yk(e, t, r) {
32732
32692
  return Ga(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
32733
32693
  var o;
32734
32694
  return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
32735
32695
  }), r;
32736
32696
  }
32737
- var qk = {
32738
- create: Uk
32739
- }, Qk = {
32697
+ var Jk = {
32698
+ create: Wk
32699
+ }, Zk = {
32740
32700
  paths: {
32741
32701
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"
32742
32702
  }
32743
32703
  };
32744
- function Kk(e) {
32704
+ function qk(e) {
32745
32705
  return function t() {
32746
32706
  for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
32747
32707
  o[i] = arguments[i];
@@ -32752,20 +32712,20 @@ function Kk(e) {
32752
32712
  };
32753
32713
  };
32754
32714
  }
32755
- function eF(e) {
32715
+ function Qk(e) {
32756
32716
  return {}.toString.call(e).includes("Object");
32757
32717
  }
32758
- function tF(e) {
32759
- return e || Mh("configIsRequired"), eF(e) || Mh("configType"), e.urls ? (rF(), {
32718
+ function Kk(e) {
32719
+ return e || Mh("configIsRequired"), Qk(e) || Mh("configType"), e.urls ? (eF(), {
32760
32720
  paths: {
32761
32721
  vs: e.urls.monacoBase
32762
32722
  }
32763
32723
  }) : e;
32764
32724
  }
32765
- function rF() {
32725
+ function eF() {
32766
32726
  console.warn(zC.deprecation);
32767
32727
  }
32768
- function nF(e, t) {
32728
+ function tF(e, t) {
32769
32729
  throw new Error(e[t] || e.default);
32770
32730
  }
32771
32731
  var zC = {
@@ -32782,9 +32742,9 @@ var zC = {
32782
32742
 
32783
32743
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
32784
32744
  `
32785
- }, Mh = Kk(nF)(zC), oF = {
32786
- config: tF
32787
- }, iF = function() {
32745
+ }, Mh = qk(tF)(zC), rF = {
32746
+ config: Kk
32747
+ }, nF = function() {
32788
32748
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
32789
32749
  r[n] = arguments[n];
32790
32750
  return function(o) {
@@ -32798,29 +32758,29 @@ function GC(e, t) {
32798
32758
  t[r] instanceof Object && e[r] && Object.assign(t[r], GC(e[r], t[r]));
32799
32759
  }), Rh(Rh({}, e), t);
32800
32760
  }
32801
- var aF = {
32761
+ var oF = {
32802
32762
  type: "cancelation",
32803
32763
  msg: "operation is manually canceled"
32804
32764
  };
32805
32765
  function xd(e) {
32806
32766
  var t = !1, r = new Promise(function(n, o) {
32807
32767
  e.then(function(i) {
32808
- return t ? o(aF) : n(i);
32768
+ return t ? o(oF) : n(i);
32809
32769
  }), e.catch(o);
32810
32770
  });
32811
32771
  return r.cancel = function() {
32812
32772
  return t = !0;
32813
32773
  }, r;
32814
32774
  }
32815
- var sF = qk.create({
32816
- config: Qk,
32775
+ var iF = Jk.create({
32776
+ config: Zk,
32817
32777
  isInitialized: !1,
32818
32778
  resolve: null,
32819
32779
  reject: null,
32820
32780
  monaco: null
32821
- }), HC = Rk(sF, 2), us = HC[0], nu = HC[1];
32822
- function lF(e) {
32823
- var t = oF.config(e), r = t.monaco, n = $k(t, ["monaco"]);
32781
+ }), HC = Tk(iF, 2), us = HC[0], nu = HC[1];
32782
+ function aF(e) {
32783
+ var t = rF.config(e), r = t.monaco, n = Pk(t, ["monaco"]);
32824
32784
  nu(function(o) {
32825
32785
  return {
32826
32786
  config: GC(o.config, n),
@@ -32828,7 +32788,7 @@ function lF(e) {
32828
32788
  };
32829
32789
  });
32830
32790
  }
32831
- function cF() {
32791
+ function sF() {
32832
32792
  var e = us(function(t) {
32833
32793
  var r = t.monaco, n = t.isInitialized, o = t.resolve;
32834
32794
  return {
@@ -32844,30 +32804,30 @@ function cF() {
32844
32804
  return e.resolve(e.monaco), xd(wd);
32845
32805
  if (window.monaco && window.monaco.editor)
32846
32806
  return WC(window.monaco), e.resolve(window.monaco), xd(wd);
32847
- iF(uF, fF)(mF);
32807
+ nF(lF, uF)(dF);
32848
32808
  }
32849
32809
  return xd(wd);
32850
32810
  }
32851
- function uF(e) {
32811
+ function lF(e) {
32852
32812
  return document.body.appendChild(e);
32853
32813
  }
32854
- function dF(e) {
32814
+ function cF(e) {
32855
32815
  var t = document.createElement("script");
32856
32816
  return e && (t.src = e), t;
32857
32817
  }
32858
- function fF(e) {
32818
+ function uF(e) {
32859
32819
  var t = us(function(n) {
32860
32820
  var o = n.config, i = n.reject;
32861
32821
  return {
32862
32822
  config: o,
32863
32823
  reject: i
32864
32824
  };
32865
- }), r = dF("".concat(t.config.paths.vs, "/loader.js"));
32825
+ }), r = cF("".concat(t.config.paths.vs, "/loader.js"));
32866
32826
  return r.onload = function() {
32867
32827
  return e();
32868
32828
  }, r.onerror = t.reject, r;
32869
32829
  }
32870
- function mF() {
32830
+ function dF() {
32871
32831
  var e = us(function(r) {
32872
32832
  var n = r.config, o = r.resolve, i = r.reject;
32873
32833
  return {
@@ -32887,7 +32847,7 @@ function WC(e) {
32887
32847
  monaco: e
32888
32848
  });
32889
32849
  }
32890
- function gF() {
32850
+ function fF() {
32891
32851
  return us(function(e) {
32892
32852
  var t = e.monaco;
32893
32853
  return t;
@@ -32899,44 +32859,44 @@ var wd = new Promise(function(e, t) {
32899
32859
  reject: t
32900
32860
  });
32901
32861
  }), XC = {
32902
- config: lF,
32903
- init: cF,
32904
- __getMonacoInstance: gF
32905
- }, pF = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Sd = pF, hF = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, vF = hF;
32906
- function bF({ children: e }) {
32907
- return J.createElement("div", { style: vF.container }, e);
32908
- }
32909
- var yF = bF, CF = yF;
32910
- function xF({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: a }) {
32911
- return J.createElement("section", { style: { ...Sd.wrapper, width: e, height: t }, ...a }, !r && J.createElement(CF, null, n), J.createElement("div", { ref: o, style: { ...Sd.fullWidth, ...!r && Sd.hide }, className: i }));
32912
- }
32913
- var wF = xF, UC = Bo(wF);
32914
- function SF(e) {
32862
+ config: aF,
32863
+ init: sF,
32864
+ __getMonacoInstance: fF
32865
+ }, mF = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Sd = mF, gF = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, pF = gF;
32866
+ function hF({ children: e }) {
32867
+ return J.createElement("div", { style: pF.container }, e);
32868
+ }
32869
+ var vF = hF, bF = vF;
32870
+ function yF({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: a }) {
32871
+ return J.createElement("section", { style: { ...Sd.wrapper, width: e, height: t }, ...a }, !r && J.createElement(bF, null, n), J.createElement("div", { ref: o, style: { ...Sd.fullWidth, ...!r && Sd.hide }, className: i }));
32872
+ }
32873
+ var CF = yF, UC = Bo(CF);
32874
+ function xF(e) {
32915
32875
  xe(e, []);
32916
32876
  }
32917
- var YC = SF;
32918
- function EF(e, t, r = !0) {
32877
+ var YC = xF;
32878
+ function wF(e, t, r = !0) {
32919
32879
  let n = oe(!0);
32920
32880
  xe(n.current || !r ? () => {
32921
32881
  n.current = !1;
32922
32882
  } : e, t);
32923
32883
  }
32924
- var Rr = EF;
32884
+ var Rr = wF;
32925
32885
  function xa() {
32926
32886
  }
32927
32887
  function ci(e, t, r, n) {
32928
- return IF(e, n) || NF(e, t, r, n);
32888
+ return SF(e, n) || EF(e, t, r, n);
32929
32889
  }
32930
- function IF(e, t) {
32890
+ function SF(e, t) {
32931
32891
  return e.editor.getModel(JC(e, t));
32932
32892
  }
32933
- function NF(e, t, r, n) {
32893
+ function EF(e, t, r, n) {
32934
32894
  return e.editor.createModel(t, r, n ? JC(e, n) : void 0);
32935
32895
  }
32936
32896
  function JC(e, t) {
32937
32897
  return e.Uri.parse(t);
32938
32898
  }
32939
- function AF({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: g = xa, onMount: b = xa }) {
32899
+ function IF({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: g = xa, onMount: b = xa }) {
32940
32900
  let [y, w] = pe(!1), [E, v] = pe(!0), I = oe(null), N = oe(null), A = oe(null), O = oe(b), P = oe(g), k = oe(!1);
32941
32901
  YC(() => {
32942
32902
  let R = XC.init();
@@ -32983,17 +32943,17 @@ function AF({ original: e, modified: t, language: r, originalLanguage: n, modifi
32983
32943
  }
32984
32944
  return J.createElement(UC, { width: p, height: f, isEditorReady: y, loading: u, _ref: A, className: h, wrapperProps: m });
32985
32945
  }
32986
- var OF = AF;
32987
- Bo(OF);
32988
- function PF(e) {
32946
+ var NF = IF;
32947
+ Bo(NF);
32948
+ function AF(e) {
32989
32949
  let t = oe();
32990
32950
  return xe(() => {
32991
32951
  t.current = e;
32992
32952
  }, [e]), t.current;
32993
32953
  }
32994
- var TF = PF, rl = /* @__PURE__ */ new Map();
32995
- function $F({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: g = {}, beforeMount: b = xa, onMount: y = xa, onChange: w, onValidate: E = xa }) {
32996
- let [v, I] = pe(!1), [N, A] = pe(!0), O = oe(null), P = oe(null), k = oe(null), S = oe(y), T = oe(b), $ = oe(), R = oe(n), F = TF(i), z = oe(!1), H = oe(!1);
32954
+ var OF = AF, rl = /* @__PURE__ */ new Map();
32955
+ function PF({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: g = {}, beforeMount: b = xa, onMount: y = xa, onChange: w, onValidate: E = xa }) {
32956
+ let [v, I] = pe(!1), [N, A] = pe(!0), O = oe(null), P = oe(null), k = oe(null), S = oe(y), T = oe(b), $ = oe(), R = oe(n), F = OF(i), z = oe(!1), H = oe(!1);
32997
32957
  YC(() => {
32998
32958
  let L = XC.init();
32999
32959
  return L.then((_) => (O.current = _) && A(!1)).catch((_) => _?.type !== "cancelation" && console.error("Monaco initialization: error:", _)), () => P.current ? D() : L.cancel();
@@ -33048,8 +33008,8 @@ function $F({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, lan
33048
33008
  }
33049
33009
  return J.createElement(UC, { width: p, height: h, isEditorReady: v, loading: l, _ref: k, className: m, wrapperProps: g });
33050
33010
  }
33051
- var RF = $F, kF = Bo(RF), FF = kF;
33052
- const jF = (e) => {
33011
+ var TF = PF, $F = Bo(TF), RF = $F;
33012
+ const kF = (e) => {
33053
33013
  switch (e) {
33054
33014
  case "typescript":
33055
33015
  case "tsx":
@@ -33930,7 +33890,7 @@ Hn.fields = ie.util.newFieldList(() => [
33930
33890
  { no: 3, name: "source", kind: "enum", T: ie.getEnumType(Xa) },
33931
33891
  { no: 8, name: "completion_parts", kind: "message", T: Gn, repeated: !0 }
33932
33892
  ]);
33933
- const MF = {
33893
+ const FF = {
33934
33894
  typeName: "exa.language_server_pb.LanguageServerService",
33935
33895
  methods: {
33936
33896
  /**
@@ -33984,12 +33944,12 @@ class ki {
33984
33944
  return new ki(t.start, t.end);
33985
33945
  }
33986
33946
  }
33987
- class LF {
33947
+ class jF {
33988
33948
  constructor(t, r) {
33989
33949
  this.text = t, this.range = r;
33990
33950
  }
33991
33951
  }
33992
- class DF {
33952
+ class MF {
33993
33953
  constructor(t) {
33994
33954
  this.model = t, this.uri = t.uri, this.languageId = t.getLanguageId();
33995
33955
  }
@@ -33997,7 +33957,7 @@ class DF {
33997
33957
  return this.model.getLineCount();
33998
33958
  }
33999
33959
  lineAt(t) {
34000
- return typeof t != "number" && (t = t.line), new LF(this.model.getLineContent(t + 1), new ki(new yn(t, 0), new yn(t, this.model.getLineLength(t + 1))));
33960
+ return typeof t != "number" && (t = t.line), new jF(this.model.getLineContent(t + 1), new ki(new yn(t, 0), new yn(t, this.model.getLineLength(t + 1))));
34001
33961
  }
34002
33962
  offsetAt(t) {
34003
33963
  return this.model.getOffsetAt(yn.fromPosition(t));
@@ -34012,7 +33972,7 @@ class DF {
34012
33972
  function ZC(e) {
34013
33973
  return e < 128 ? 1 : e < 2048 ? 2 : e < 65536 ? 3 : 4;
34014
33974
  }
34015
- function _F(e, t) {
33975
+ function LF(e, t) {
34016
33976
  if (t === 0)
34017
33977
  return 0;
34018
33978
  let r = 0, n = 0;
@@ -34030,22 +33990,22 @@ function Lh(e, t) {
34030
33990
  break;
34031
33991
  return r;
34032
33992
  }
34033
- const BF = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
33993
+ const DF = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
34034
33994
  const t = Math.random() * 16 | 0;
34035
33995
  return (e === "x" ? t : t & 3 | 8).toString(16);
34036
- }), VF = () => {
33996
+ }), _F = () => {
34037
33997
  try {
34038
33998
  return window.location.href;
34039
33999
  } catch {
34040
34000
  return null;
34041
34001
  }
34042
- }, zF = () => {
34002
+ }, BF = () => {
34043
34003
  try {
34044
34004
  return window.CODEIUM_REACT_CODE_VERSION ? window.CODEIUM_REACT_CODE_VERSION : null;
34045
34005
  } catch {
34046
34006
  return null;
34047
34007
  }
34048
- }, GF = (e) => {
34008
+ }, VF = (e) => {
34049
34009
  switch (e.toLowerCase()) {
34050
34010
  case "c":
34051
34011
  return fe.C;
@@ -34181,7 +34141,7 @@ const BF = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) =>
34181
34141
  return fe.UNSPECIFIED;
34182
34142
  }
34183
34143
  };
34184
- class HF {
34144
+ class zF {
34185
34145
  constructor(t, r, n) {
34186
34146
  this.insertText = t, this.text = t, this.range = r, this.command = {
34187
34147
  id: "codeium.acceptCompletion",
@@ -34190,10 +34150,10 @@ class HF {
34190
34150
  };
34191
34151
  }
34192
34152
  }
34193
- const WF = "d49954eb-cfba-4992-980f-d8fb37f0e942";
34194
- class XF {
34153
+ const GF = "d49954eb-cfba-4992-980f-d8fb37f0e942";
34154
+ class HF {
34195
34155
  constructor(t, r, n, o, i) {
34196
- this.setStatus = r, this.setMessage = n, this.apiKey = o, this.multilineModelThreshold = i, this.otherDocuments = [], this.sessionId = `react-editor-${BF()}`, this.client = t;
34156
+ this.setStatus = r, this.setMessage = n, this.apiKey = o, this.multilineModelThreshold = i, this.otherDocuments = [], this.sessionId = `react-editor-${DF()}`, this.client = t;
34197
34157
  }
34198
34158
  getAuthHeader() {
34199
34159
  const t = this.getMetadata();
@@ -34205,10 +34165,10 @@ class XF {
34205
34165
  var t, r, n;
34206
34166
  return new rn({
34207
34167
  ideName: "web",
34208
- ideVersion: (t = VF()) !== null && t !== void 0 ? t : "unknown",
34168
+ ideVersion: (t = _F()) !== null && t !== void 0 ? t : "unknown",
34209
34169
  extensionName: "@codeium/react-code-editor",
34210
- extensionVersion: (r = zF()) !== null && r !== void 0 ? r : "unknown",
34211
- apiKey: (n = this.apiKey) !== null && n !== void 0 ? n : WF,
34170
+ extensionVersion: (r = BF()) !== null && r !== void 0 ? r : "unknown",
34171
+ apiKey: (n = this.apiKey) !== null && n !== void 0 ? n : GF,
34212
34172
  sessionId: this.sessionId
34213
34173
  });
34214
34174
  }
@@ -34221,7 +34181,7 @@ class XF {
34221
34181
  */
34222
34182
  provideInlineCompletions(t, r, n) {
34223
34183
  return Y0(this, void 0, void 0, function* () {
34224
- const o = new DF(t), i = yn.fromMonaco(r);
34184
+ const o = new MF(t), i = yn.fromMonaco(r);
34225
34185
  n.onCancellationRequested(() => {
34226
34186
  var g;
34227
34187
  return (g = n.cancellationCallback) === null || g === void 0 ? void 0 : g.call(n);
@@ -34296,7 +34256,7 @@ class XF {
34296
34256
  * @returns The document info object and additional UTF-8 byte offset.
34297
34257
  */
34298
34258
  getDocumentInfo(t, r) {
34299
- const n = t.getText(), o = t.offsetAt(r), i = _F(n, o), a = GF(t.languageId);
34259
+ const n = t.getText(), o = t.offsetAt(r), i = LF(n, o), a = VF(t.languageId);
34300
34260
  return a === fe.UNSPECIFIED && console.warn(`Unknown language: ${t.languageId}`), new Ri({
34301
34261
  text: n,
34302
34262
  editorLanguage: t.languageId,
@@ -34317,12 +34277,12 @@ class XF {
34317
34277
  if (!t.completion || !t.range)
34318
34278
  return;
34319
34279
  const n = r.getText(), o = r.positionAt(Lh(n, Number(t.range.startOffset))), i = r.positionAt(Lh(n, Number(t.range.endOffset))), a = new ki(o, i);
34320
- return new HF(t.completion.text, a, t.completion.completionId);
34280
+ return new zF(t.completion.text, a, t.completion.completionId);
34321
34281
  }
34322
34282
  }
34323
- class UF {
34283
+ class WF {
34324
34284
  constructor(t, r, n, o, i, a) {
34325
- this.setCompletionCount = r, this.numCompletionsProvided = 0, this.completionProvider = new XF(t, n, o, i, a);
34285
+ this.setCompletionCount = r, this.numCompletionsProvided = 0, this.completionProvider = new HF(t, n, o, i, a);
34326
34286
  }
34327
34287
  freeInlineCompletions() {
34328
34288
  }
@@ -34339,7 +34299,7 @@ class UF {
34339
34299
  this.completionProvider.otherDocuments = t;
34340
34300
  }
34341
34301
  }
34342
- const YF = (e) => {
34302
+ const XF = (e) => {
34343
34303
  var { className: t, loading: r = !1 } = e, n = yC(e, ["className", "loading"]);
34344
34304
  return J.createElement(
34345
34305
  "svg",
@@ -34373,13 +34333,13 @@ function qC(e, t) {
34373
34333
  typeof e[n] == "object" && !Array.isArray(e[n]) ? t[n] && typeof t[n] == "object" && !Array.isArray(t[n]) ? r[n] = qC(e[n], t[n]) : r[n] = Object.assign({}, e[n]) : r[n] = e[n];
34374
34334
  return r;
34375
34335
  }
34376
- const JF = (e) => {
34336
+ const UF = (e) => {
34377
34337
  var { languageServerAddress: t = "https://web-backend.codeium.com", otherDocuments: r = [], containerClassName: n = "", containerStyle: o = {} } = e, i = yC(e, ["languageServerAddress", "otherDocuments", "containerClassName", "containerStyle"]);
34378
- const a = oe(null), s = oe(null), l = oe(null), [c, u] = pe(-1), [d, f] = pe(0), [p, h] = pe($o.INACTIVE), [m, g] = pe(""), [b, y] = pe(!1), w = Nt(() => Ok({
34338
+ const a = oe(null), s = oe(null), l = oe(null), [c, u] = pe(-1), [d, f] = pe(0), [p, h] = pe($o.INACTIVE), [m, g] = pe(""), [b, y] = pe(!1), w = Nt(() => Nk({
34379
34339
  baseUrl: t,
34380
34340
  useBinaryFormat: !0
34381
- }), [t]), E = Nt(() => rk(MF, w), [w]);
34382
- l.current = Nt(() => new UF(E, f, h, g, i.apiKey, i.multilineModelThreshold), []), xe(() => {
34341
+ }), [t]), E = Nt(() => ek(FF, w), [w]);
34342
+ l.current = Nt(() => new WF(E, f, h, g, i.apiKey, i.multilineModelThreshold), []), xe(() => {
34383
34343
  if (!a?.current || !s.current || !l.current)
34384
34344
  return;
34385
34345
  const A = s.current, O = A.languages.registerInlineCompletionsProvider({ pattern: "**" }, l.current), P = A.editor.registerCommand("codeium.acceptCompletion", (k, S, T) => {
@@ -34414,7 +34374,7 @@ const JF = (e) => {
34414
34374
  }, [r]);
34415
34375
  let I = {
34416
34376
  defaultLanguage: i.language,
34417
- defaultValue: jF(i.language)
34377
+ defaultValue: kF(i.language)
34418
34378
  };
34419
34379
  const N = {
34420
34380
  width: i.width || "100%",
@@ -34430,9 +34390,9 @@ const JF = (e) => {
34430
34390
  J.createElement(
34431
34391
  "a",
34432
34392
  { href: "https://codeium.com?referrer=codeium-editor", target: "_blank", rel: "noreferrer noopener" },
34433
- J.createElement(YF, { width: 30, height: 30, style: { position: "absolute", top: 12, right: 12, zIndex: 1 } })
34393
+ J.createElement(XF, { width: 30, height: 30, style: { position: "absolute", top: 12, right: 12, zIndex: 1 } })
34434
34394
  ),
34435
- J.createElement(FF, Object.assign({}, I, i, { width: N.width, height: N.height, onMount: v, options: qC(i.options, {
34395
+ J.createElement(RF, Object.assign({}, I, i, { width: N.width, height: N.height, onMount: v, options: qC(i.options, {
34436
34396
  scrollBeyondLastColumn: 0,
34437
34397
  scrollbar: {
34438
34398
  alwaysConsumeMouseWheel: !1
@@ -34453,7 +34413,7 @@ const JF = (e) => {
34453
34413
  }) }))
34454
34414
  );
34455
34415
  };
34456
- function ZF(e, t, r) {
34416
+ function YF(e, t, r) {
34457
34417
  return t in e ? Object.defineProperty(e, t, {
34458
34418
  value: r,
34459
34419
  enumerable: !0,
@@ -34475,23 +34435,23 @@ function _h(e) {
34475
34435
  for (var t = 1; t < arguments.length; t++) {
34476
34436
  var r = arguments[t] != null ? arguments[t] : {};
34477
34437
  t % 2 ? Dh(Object(r), !0).forEach(function(n) {
34478
- ZF(e, n, r[n]);
34438
+ YF(e, n, r[n]);
34479
34439
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Dh(Object(r)).forEach(function(n) {
34480
34440
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
34481
34441
  });
34482
34442
  }
34483
34443
  return e;
34484
34444
  }
34485
- function qF(e, t) {
34445
+ function JF(e, t) {
34486
34446
  if (e == null) return {};
34487
34447
  var r = {}, n = Object.keys(e), o, i;
34488
34448
  for (i = 0; i < n.length; i++)
34489
34449
  o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
34490
34450
  return r;
34491
34451
  }
34492
- function QF(e, t) {
34452
+ function ZF(e, t) {
34493
34453
  if (e == null) return {};
34494
- var r = qF(e, t), n, o;
34454
+ var r = JF(e, t), n, o;
34495
34455
  if (Object.getOwnPropertySymbols) {
34496
34456
  var i = Object.getOwnPropertySymbols(e);
34497
34457
  for (o = 0; o < i.length; o++)
@@ -34499,13 +34459,13 @@ function QF(e, t) {
34499
34459
  }
34500
34460
  return r;
34501
34461
  }
34502
- function KF(e, t) {
34503
- return e8(e) || t8(e, t) || r8(e, t) || n8();
34462
+ function qF(e, t) {
34463
+ return QF(e) || KF(e, t) || e8(e, t) || t8();
34504
34464
  }
34505
- function e8(e) {
34465
+ function QF(e) {
34506
34466
  if (Array.isArray(e)) return e;
34507
34467
  }
34508
- function t8(e, t) {
34468
+ function KF(e, t) {
34509
34469
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
34510
34470
  var r = [], n = !0, o = !1, i = void 0;
34511
34471
  try {
@@ -34523,7 +34483,7 @@ function t8(e, t) {
34523
34483
  return r;
34524
34484
  }
34525
34485
  }
34526
- function r8(e, t) {
34486
+ function e8(e, t) {
34527
34487
  if (e) {
34528
34488
  if (typeof e == "string") return Bh(e, t);
34529
34489
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -34536,11 +34496,11 @@ function Bh(e, t) {
34536
34496
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
34537
34497
  return n;
34538
34498
  }
34539
- function n8() {
34499
+ function t8() {
34540
34500
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34541
34501
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
34542
34502
  }
34543
- function o8(e, t, r) {
34503
+ function r8(e, t, r) {
34544
34504
  return t in e ? Object.defineProperty(e, t, {
34545
34505
  value: r,
34546
34506
  enumerable: !0,
@@ -34562,14 +34522,14 @@ function zh(e) {
34562
34522
  for (var t = 1; t < arguments.length; t++) {
34563
34523
  var r = arguments[t] != null ? arguments[t] : {};
34564
34524
  t % 2 ? Vh(Object(r), !0).forEach(function(n) {
34565
- o8(e, n, r[n]);
34525
+ r8(e, n, r[n]);
34566
34526
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Vh(Object(r)).forEach(function(n) {
34567
34527
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
34568
34528
  });
34569
34529
  }
34570
34530
  return e;
34571
34531
  }
34572
- function i8() {
34532
+ function n8() {
34573
34533
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
34574
34534
  t[r] = arguments[r];
34575
34535
  return function(n) {
@@ -34592,35 +34552,35 @@ function ga(e) {
34592
34552
  function rc(e) {
34593
34553
  return {}.toString.call(e).includes("Object");
34594
34554
  }
34595
- function a8(e) {
34555
+ function o8(e) {
34596
34556
  return !Object.keys(e).length;
34597
34557
  }
34598
34558
  function Ja(e) {
34599
34559
  return typeof e == "function";
34600
34560
  }
34601
- function s8(e, t) {
34561
+ function i8(e, t) {
34602
34562
  return Object.prototype.hasOwnProperty.call(e, t);
34603
34563
  }
34604
- function l8(e, t) {
34564
+ function a8(e, t) {
34605
34565
  return rc(t) || ho("changeType"), Object.keys(t).some(function(r) {
34606
- return !s8(e, r);
34566
+ return !i8(e, r);
34607
34567
  }) && ho("changeField"), t;
34608
34568
  }
34609
- function c8(e) {
34569
+ function s8(e) {
34610
34570
  Ja(e) || ho("selectorType");
34611
34571
  }
34612
- function u8(e) {
34572
+ function l8(e) {
34613
34573
  Ja(e) || rc(e) || ho("handlerType"), rc(e) && Object.values(e).some(function(t) {
34614
34574
  return !Ja(t);
34615
34575
  }) && ho("handlersType");
34616
34576
  }
34617
- function d8(e) {
34618
- e || ho("initialIsRequired"), rc(e) || ho("initialType"), a8(e) && ho("initialContent");
34577
+ function c8(e) {
34578
+ e || ho("initialIsRequired"), rc(e) || ho("initialType"), o8(e) && ho("initialContent");
34619
34579
  }
34620
- function f8(e, t) {
34580
+ function u8(e, t) {
34621
34581
  throw new Error(e[t] || e.default);
34622
34582
  }
34623
- var m8 = {
34583
+ var d8 = {
34624
34584
  initialIsRequired: "initial state is required",
34625
34585
  initialType: "initial state should be an object",
34626
34586
  initialContent: "initial state shouldn't be an empty object",
@@ -34630,18 +34590,18 @@ var m8 = {
34630
34590
  changeType: "provided value of changes should be an object",
34631
34591
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
34632
34592
  default: "an unknown error accured in `state-local` package"
34633
- }, ho = ga(f8)(m8), nl = {
34634
- changes: l8,
34635
- selector: c8,
34636
- handler: u8,
34637
- initial: d8
34593
+ }, ho = ga(u8)(d8), nl = {
34594
+ changes: a8,
34595
+ selector: s8,
34596
+ handler: l8,
34597
+ initial: c8
34638
34598
  };
34639
- function g8(e) {
34599
+ function f8(e) {
34640
34600
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
34641
34601
  nl.initial(e), nl.handler(t);
34642
34602
  var r = {
34643
34603
  current: e
34644
- }, n = ga(v8)(r, t), o = ga(h8)(r), i = ga(nl.changes)(e), a = ga(p8)(r);
34604
+ }, n = ga(p8)(r, t), o = ga(g8)(r), i = ga(nl.changes)(e), a = ga(m8)(r);
34645
34605
  function s() {
34646
34606
  var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(u) {
34647
34607
  return u;
@@ -34649,30 +34609,30 @@ function g8(e) {
34649
34609
  return nl.selector(c), c(r.current);
34650
34610
  }
34651
34611
  function l(c) {
34652
- i8(n, o, i, a)(c);
34612
+ n8(n, o, i, a)(c);
34653
34613
  }
34654
34614
  return [s, l];
34655
34615
  }
34656
- function p8(e, t) {
34616
+ function m8(e, t) {
34657
34617
  return Ja(t) ? t(e.current) : t;
34658
34618
  }
34659
- function h8(e, t) {
34619
+ function g8(e, t) {
34660
34620
  return e.current = zh(zh({}, e.current), t), t;
34661
34621
  }
34662
- function v8(e, t, r) {
34622
+ function p8(e, t, r) {
34663
34623
  return Ja(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
34664
34624
  var o;
34665
34625
  return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
34666
34626
  }), r;
34667
34627
  }
34668
- var b8 = {
34669
- create: g8
34670
- }, y8 = {
34628
+ var h8 = {
34629
+ create: f8
34630
+ }, v8 = {
34671
34631
  paths: {
34672
34632
  vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
34673
34633
  }
34674
34634
  };
34675
- function C8(e) {
34635
+ function b8(e) {
34676
34636
  return function t() {
34677
34637
  for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++)
34678
34638
  o[i] = arguments[i];
@@ -34683,20 +34643,20 @@ function C8(e) {
34683
34643
  };
34684
34644
  };
34685
34645
  }
34686
- function x8(e) {
34646
+ function y8(e) {
34687
34647
  return {}.toString.call(e).includes("Object");
34688
34648
  }
34689
- function w8(e) {
34690
- return e || Gh("configIsRequired"), x8(e) || Gh("configType"), e.urls ? (S8(), {
34649
+ function C8(e) {
34650
+ return e || Gh("configIsRequired"), y8(e) || Gh("configType"), e.urls ? (x8(), {
34691
34651
  paths: {
34692
34652
  vs: e.urls.monacoBase
34693
34653
  }
34694
34654
  }) : e;
34695
34655
  }
34696
- function S8() {
34656
+ function x8() {
34697
34657
  console.warn(QC.deprecation);
34698
34658
  }
34699
- function E8(e, t) {
34659
+ function w8(e, t) {
34700
34660
  throw new Error(e[t] || e.default);
34701
34661
  }
34702
34662
  var QC = {
@@ -34713,9 +34673,9 @@ var QC = {
34713
34673
 
34714
34674
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
34715
34675
  `
34716
- }, Gh = C8(E8)(QC), I8 = {
34717
- config: w8
34718
- }, N8 = function() {
34676
+ }, Gh = b8(w8)(QC), S8 = {
34677
+ config: C8
34678
+ }, E8 = function() {
34719
34679
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
34720
34680
  r[n] = arguments[n];
34721
34681
  return function(o) {
@@ -34729,29 +34689,29 @@ function KC(e, t) {
34729
34689
  t[r] instanceof Object && e[r] && Object.assign(t[r], KC(e[r], t[r]));
34730
34690
  }), _h(_h({}, e), t);
34731
34691
  }
34732
- var A8 = {
34692
+ var I8 = {
34733
34693
  type: "cancelation",
34734
34694
  msg: "operation is manually canceled"
34735
34695
  };
34736
34696
  function Ed(e) {
34737
34697
  var t = !1, r = new Promise(function(n, o) {
34738
34698
  e.then(function(i) {
34739
- return t ? o(A8) : n(i);
34699
+ return t ? o(I8) : n(i);
34740
34700
  }), e.catch(o);
34741
34701
  });
34742
34702
  return r.cancel = function() {
34743
34703
  return t = !0;
34744
34704
  }, r;
34745
34705
  }
34746
- var O8 = b8.create({
34747
- config: y8,
34706
+ var N8 = h8.create({
34707
+ config: v8,
34748
34708
  isInitialized: !1,
34749
34709
  resolve: null,
34750
34710
  reject: null,
34751
34711
  monaco: null
34752
- }), e2 = KF(O8, 2), ds = e2[0], iu = e2[1];
34753
- function P8(e) {
34754
- var t = I8.config(e), r = t.monaco, n = QF(t, ["monaco"]);
34712
+ }), e2 = qF(N8, 2), ds = e2[0], iu = e2[1];
34713
+ function A8(e) {
34714
+ var t = S8.config(e), r = t.monaco, n = ZF(t, ["monaco"]);
34755
34715
  iu(function(o) {
34756
34716
  return {
34757
34717
  config: KC(o.config, n),
@@ -34759,7 +34719,7 @@ function P8(e) {
34759
34719
  };
34760
34720
  });
34761
34721
  }
34762
- function T8() {
34722
+ function O8() {
34763
34723
  var e = ds(function(t) {
34764
34724
  var r = t.monaco, n = t.isInitialized, o = t.resolve;
34765
34725
  return {
@@ -34775,30 +34735,30 @@ function T8() {
34775
34735
  return e.resolve(e.monaco), Ed(Id);
34776
34736
  if (window.monaco && window.monaco.editor)
34777
34737
  return t2(window.monaco), e.resolve(window.monaco), Ed(Id);
34778
- N8($8, k8)(F8);
34738
+ E8(P8, $8)(R8);
34779
34739
  }
34780
34740
  return Ed(Id);
34781
34741
  }
34782
- function $8(e) {
34742
+ function P8(e) {
34783
34743
  return document.body.appendChild(e);
34784
34744
  }
34785
- function R8(e) {
34745
+ function T8(e) {
34786
34746
  var t = document.createElement("script");
34787
34747
  return e && (t.src = e), t;
34788
34748
  }
34789
- function k8(e) {
34749
+ function $8(e) {
34790
34750
  var t = ds(function(n) {
34791
34751
  var o = n.config, i = n.reject;
34792
34752
  return {
34793
34753
  config: o,
34794
34754
  reject: i
34795
34755
  };
34796
- }), r = R8("".concat(t.config.paths.vs, "/loader.js"));
34756
+ }), r = T8("".concat(t.config.paths.vs, "/loader.js"));
34797
34757
  return r.onload = function() {
34798
34758
  return e();
34799
34759
  }, r.onerror = t.reject, r;
34800
34760
  }
34801
- function F8() {
34761
+ function R8() {
34802
34762
  var e = ds(function(r) {
34803
34763
  var n = r.config, o = r.resolve, i = r.reject;
34804
34764
  return {
@@ -34818,7 +34778,7 @@ function t2(e) {
34818
34778
  monaco: e
34819
34779
  });
34820
34780
  }
34821
- function j8() {
34781
+ function k8() {
34822
34782
  return ds(function(e) {
34823
34783
  var t = e.monaco;
34824
34784
  return t;
@@ -34830,44 +34790,44 @@ var Id = new Promise(function(e, t) {
34830
34790
  reject: t
34831
34791
  });
34832
34792
  }), Z0 = {
34833
- config: P8,
34834
- init: T8,
34835
- __getMonacoInstance: j8
34836
- }, M8 = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Nd = M8, L8 = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, D8 = L8;
34837
- function _8({ children: e }) {
34838
- return J.createElement("div", { style: D8.container }, e);
34839
- }
34840
- var B8 = _8, V8 = B8;
34841
- function z8({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: a }) {
34842
- return J.createElement("section", { style: { ...Nd.wrapper, width: e, height: t }, ...a }, !r && J.createElement(V8, null, n), J.createElement("div", { ref: o, style: { ...Nd.fullWidth, ...!r && Nd.hide }, className: i }));
34843
- }
34844
- var G8 = z8, r2 = Bo(G8);
34845
- function H8(e) {
34793
+ config: A8,
34794
+ init: O8,
34795
+ __getMonacoInstance: k8
34796
+ }, F8 = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, Nd = F8, j8 = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, M8 = j8;
34797
+ function L8({ children: e }) {
34798
+ return J.createElement("div", { style: M8.container }, e);
34799
+ }
34800
+ var D8 = L8, _8 = D8;
34801
+ function B8({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: a }) {
34802
+ return J.createElement("section", { style: { ...Nd.wrapper, width: e, height: t }, ...a }, !r && J.createElement(_8, null, n), J.createElement("div", { ref: o, style: { ...Nd.fullWidth, ...!r && Nd.hide }, className: i }));
34803
+ }
34804
+ var V8 = B8, r2 = Bo(V8);
34805
+ function z8(e) {
34846
34806
  xe(e, []);
34847
34807
  }
34848
- var n2 = H8;
34849
- function W8(e, t, r = !0) {
34808
+ var n2 = z8;
34809
+ function G8(e, t, r = !0) {
34850
34810
  let n = oe(!0);
34851
34811
  xe(n.current || !r ? () => {
34852
34812
  n.current = !1;
34853
34813
  } : e, t);
34854
34814
  }
34855
- var kr = W8;
34815
+ var kr = G8;
34856
34816
  function wa() {
34857
34817
  }
34858
34818
  function ui(e, t, r, n) {
34859
- return X8(e, n) || U8(e, t, r, n);
34819
+ return H8(e, n) || W8(e, t, r, n);
34860
34820
  }
34861
- function X8(e, t) {
34821
+ function H8(e, t) {
34862
34822
  return e.editor.getModel(o2(e, t));
34863
34823
  }
34864
- function U8(e, t, r, n) {
34824
+ function W8(e, t, r, n) {
34865
34825
  return e.editor.createModel(t, r, n ? o2(e, n) : void 0);
34866
34826
  }
34867
34827
  function o2(e, t) {
34868
34828
  return e.Uri.parse(t);
34869
34829
  }
34870
- function Y8({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: g = wa, onMount: b = wa }) {
34830
+ function X8({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: c = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: g = wa, onMount: b = wa }) {
34871
34831
  let [y, w] = pe(!1), [E, v] = pe(!0), I = oe(null), N = oe(null), A = oe(null), O = oe(b), P = oe(g), k = oe(!1);
34872
34832
  n2(() => {
34873
34833
  let R = Z0.init();
@@ -34914,17 +34874,17 @@ function Y8({ original: e, modified: t, language: r, originalLanguage: n, modifi
34914
34874
  }
34915
34875
  return J.createElement(r2, { width: p, height: f, isEditorReady: y, loading: u, _ref: A, className: h, wrapperProps: m });
34916
34876
  }
34917
- var J8 = Y8;
34918
- Bo(J8);
34919
- function Z8(e) {
34877
+ var U8 = X8;
34878
+ Bo(U8);
34879
+ function Y8(e) {
34920
34880
  let t = oe();
34921
34881
  return xe(() => {
34922
34882
  t.current = e;
34923
34883
  }, [e]), t.current;
34924
34884
  }
34925
- var q8 = Z8, ol = /* @__PURE__ */ new Map();
34926
- function Q8({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: g = {}, beforeMount: b = wa, onMount: y = wa, onChange: w, onValidate: E = wa }) {
34927
- let [v, I] = pe(!1), [N, A] = pe(!0), O = oe(null), P = oe(null), k = oe(null), S = oe(y), T = oe(b), $ = oe(), R = oe(n), F = q8(i), z = oe(!1), H = oe(!1);
34885
+ var J8 = Y8, ol = /* @__PURE__ */ new Map();
34886
+ function Z8({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: g = {}, beforeMount: b = wa, onMount: y = wa, onChange: w, onValidate: E = wa }) {
34887
+ let [v, I] = pe(!1), [N, A] = pe(!0), O = oe(null), P = oe(null), k = oe(null), S = oe(y), T = oe(b), $ = oe(), R = oe(n), F = J8(i), z = oe(!1), H = oe(!1);
34928
34888
  n2(() => {
34929
34889
  let L = Z0.init();
34930
34890
  return L.then((_) => (O.current = _) && A(!1)).catch((_) => _?.type !== "cancelation" && console.error("Monaco initialization: error:", _)), () => P.current ? D() : L.cancel();
@@ -34979,8 +34939,8 @@ function Q8({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, lan
34979
34939
  }
34980
34940
  return J.createElement(r2, { width: p, height: h, isEditorReady: v, loading: l, _ref: k, className: m, wrapperProps: g });
34981
34941
  }
34982
- var K8 = Q8;
34983
- Bo(K8);
34942
+ var q8 = Z8;
34943
+ Bo(q8);
34984
34944
  var Tr = {
34985
34945
  fullscreenEnabled: 0,
34986
34946
  fullscreenElement: 1,
@@ -35055,7 +35015,7 @@ var Tr = {
35055
35015
  return wr[("on" + Wr[Tr.fullscreenerror]).toLowerCase()] = e;
35056
35016
  }
35057
35017
  };
35058
- function ej() {
35018
+ function Q8() {
35059
35019
  var e = pe(!1), t = e[0], r = e[1], n = oe(null);
35060
35020
  xe(function() {
35061
35021
  var a = function() {
@@ -35084,7 +35044,7 @@ function ej() {
35084
35044
  };
35085
35045
  }, [t, o, i]);
35086
35046
  }
35087
- var tj = function(t) {
35047
+ var K8 = function(t) {
35088
35048
  var r = t.handle, n = t.onChange, o = t.children, i = t.className, a = [];
35089
35049
  return i && a.push(i), a.push("fullscreen"), r.active && a.push("fullscreen-enabled"), xe(function() {
35090
35050
  n && n(r.active, r);
@@ -35097,7 +35057,7 @@ var tj = function(t) {
35097
35057
  } : void 0
35098
35058
  }, o);
35099
35059
  }, Ad, Uh;
35100
- function rj() {
35060
+ function ej() {
35101
35061
  if (Uh) return Ad;
35102
35062
  Uh = 1;
35103
35063
  var e = "Expected a function", t = NaN, r = "[object Symbol]", n = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, s = parseInt, l = typeof ws == "object" && ws && ws.Object === Object && ws, c = typeof self == "object" && self && self.Object === Object && self, u = l || c || Function("return this")(), d = Object.prototype, f = d.toString, p = Math.max, h = Math.min, m = function() {
@@ -35177,8 +35137,8 @@ function rj() {
35177
35137
  }
35178
35138
  return Ad = g, Ad;
35179
35139
  }
35180
- var nj = rj();
35181
- const oj = /* @__PURE__ */ n0(nj), $r = {
35140
+ var tj = ej();
35141
+ const rj = /* @__PURE__ */ n0(tj), $r = {
35182
35142
  // Common messages
35183
35143
  createSuccess: function(e) {
35184
35144
  return `${e} created successfully.`;
@@ -35213,7 +35173,7 @@ const oj = /* @__PURE__ */ n0(nj), $r = {
35213
35173
  noItemSelected: "No item selected.",
35214
35174
  invalidFileType: "Non acceptable file type.",
35215
35175
  formatFailed: "Failed to format."
35216
- }, ij = ({
35176
+ }, nj = ({
35217
35177
  monacoEditor: e,
35218
35178
  currentEditorModel: t,
35219
35179
  code: r,
@@ -35305,7 +35265,7 @@ const oj = /* @__PURE__ */ n0(nj), $r = {
35305
35265
  };
35306
35266
  return xe(() => {
35307
35267
  if (e && o && i) {
35308
- const m = oj(p, 500);
35268
+ const m = rj(p, 500);
35309
35269
  return m(), () => {
35310
35270
  m.cancel();
35311
35271
  };
@@ -35316,7 +35276,7 @@ const oj = /* @__PURE__ */ n0(nj), $r = {
35316
35276
  handleCheckSyntax: p,
35317
35277
  handleFormatCode: h
35318
35278
  };
35319
- }, aj = () => {
35279
+ }, oj = () => {
35320
35280
  const [e, t] = pe("light"), [r, n] = pe("vs"), o = We((i) => {
35321
35281
  n(i), t(i === "vs-dark" ? "dark" : "light");
35322
35282
  }, []);
@@ -35379,25 +35339,25 @@ class di {
35379
35339
  });
35380
35340
  }
35381
35341
  }
35382
- const sj = di.getInstance(), lj = (e) => {
35342
+ const ij = di.getInstance(), aj = (e) => {
35383
35343
  try {
35384
35344
  return JSON.parse(e);
35385
35345
  } catch (t) {
35386
35346
  throw new Error(`Invalid JSON: ${t.message}`);
35387
35347
  }
35388
- }, Yj = (e) => {
35348
+ }, Uj = (e) => {
35389
35349
  if (!e.length) return [];
35390
35350
  const t = [...e].sort((n, o) => n.length - o.length), r = [];
35391
35351
  for (const n of t)
35392
35352
  !r.some((i) => n.startsWith(i + ".") || n === i) && r.push(n);
35393
35353
  return r;
35394
- }, Jj = (e) => {
35354
+ }, Yj = (e) => {
35395
35355
  const t = "0123456789abcdef";
35396
35356
  let r = "";
35397
35357
  for (let n = 0; n < e; n++)
35398
35358
  r += t[Math.floor(Math.random() * t.length)];
35399
35359
  return r;
35400
- }, cj = ({
35360
+ }, sj = ({
35401
35361
  style: e,
35402
35362
  value: t,
35403
35363
  onChange: r,
@@ -35408,7 +35368,7 @@ const sj = di.getInstance(), lj = (e) => {
35408
35368
  const [a, s] = pe({}), [l, c] = pe(null);
35409
35369
  xe(() => {
35410
35370
  try {
35411
- const d = lj(t);
35371
+ const d = aj(t);
35412
35372
  s(d), c(null);
35413
35373
  } catch (d) {
35414
35374
  c("Invalid JSON: " + d.message);
@@ -35482,7 +35442,7 @@ const sj = di.getInstance(), lj = (e) => {
35482
35442
  children: l ? /* @__PURE__ */ x.jsx("div", { className: "text-red-600 font-medium", children: l }) : /* @__PURE__ */ x.jsx("div", { className: "whitespace-pre-wrap", children: u(a) })
35483
35443
  }
35484
35444
  );
35485
- }, uj = ({
35445
+ }, lj = ({
35486
35446
  variant: e = "default",
35487
35447
  tabs: t,
35488
35448
  activeTab: r,
@@ -35533,10 +35493,10 @@ const sj = di.getInstance(), lj = (e) => {
35533
35493
  ]
35534
35494
  }
35535
35495
  ) }, l);
35536
- }) }) }), dj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.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" }) }), fj = () => /* @__PURE__ */ x.jsx("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z" }) }), mj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z" }) }), gj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z" }) }), pj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" }) }), hj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" }) }), vj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12" }) }), bj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" }) }), yj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z" }) }), Cj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z" }) }), xj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" }) }), wj = {
35537
- JSON: /* @__PURE__ */ x.jsx(dj, {}),
35538
- Grid: /* @__PURE__ */ x.jsx(fj, {})
35539
- }, Sj = ["JSON", "Grid"], Zj = ({
35496
+ }) }) }), cj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.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" }) }), uj = () => /* @__PURE__ */ x.jsx("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z" }) }), dj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M17.75 4.09L15.22 6.03L16.13 9.09L13.5 7.28L10.87 9.09L11.78 6.03L9.25 4.09L12.44 4L13.5 1L14.56 4L17.75 4.09ZM21.25 11L19.61 12.25L20.2 14.23L18.5 13.06L16.8 14.23L17.39 12.25L15.75 11L17.81 10.95L18.5 9L19.19 10.95L21.25 11ZM18.97 15.95C19.8 15.87 20.69 17.05 20.16 17.8C19.84 18.25 19.5 18.67 19.08 19.07C15.17 23 8.84 23 4.94 19.07C1.03 15.17 1.03 8.83 4.94 4.93C5.34 4.53 5.76 4.17 6.21 3.85C6.96 3.32 8.14 4.21 8.06 5.04C7.79 7.9 8.75 10.87 10.95 13.06C13.14 15.26 16.1 16.22 18.97 15.95Z" }) }), fj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31L23.31,12L20,8.69Z" }) }), mj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" }) }), gj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" }) }), pj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M7,14H5V19H10V17H7V14M12,14H17V17H14V19H19V14H17V12H12V14M12,10H17V7H14V5H19V10H17V12H12V10M7,10H10V12H5V7H10V5H5V10H7V12" }) }), hj = () => /* @__PURE__ */ x.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" }) }), vj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z" }) }), bj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M16.59,8.59L12,13.17L7.41,8.59L6,10L12,16L18,10L16.59,8.59Z" }) }), yj = () => /* @__PURE__ */ x.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ x.jsx("path", { d: "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" }) }), Cj = {
35497
+ JSON: /* @__PURE__ */ x.jsx(cj, {}),
35498
+ Grid: /* @__PURE__ */ x.jsx(uj, {})
35499
+ }, xj = ["JSON", "Grid"], Jj = ({
35540
35500
  value: e,
35541
35501
  onChange: t = () => !1,
35542
35502
  withFullScreen: r = !0,
@@ -35550,11 +35510,11 @@ const sj = di.getInstance(), lj = (e) => {
35550
35510
  setIsDisableSave: u,
35551
35511
  withJsonGrid: d = !0
35552
35512
  }) => {
35553
- const f = oe(null), { editorTheme: p, setEditorTheme: h, theme: m } = aj(), [g, b] = pe(!1), [y, w] = pe(null), [E, v] = pe(null), [I, N] = pe(!1);
35513
+ const f = oe(null), { editorTheme: p, setEditorTheme: h, theme: m } = oj(), [g, b] = pe(!1), [y, w] = pe(null), [E, v] = pe(null), [I, N] = pe(!1);
35554
35514
  xe(() => {
35555
35515
  (async () => {
35556
35516
  try {
35557
- const K = await sj.initialize();
35517
+ const K = await ij.initialize();
35558
35518
  v(K), N(!0);
35559
35519
  } catch (K) {
35560
35520
  console.error("Failed to initialize Monaco Editor:", K), N(!1);
@@ -35565,13 +35525,13 @@ const sj = di.getInstance(), lj = (e) => {
35565
35525
  handleFormatCode: O,
35566
35526
  pythonError: P,
35567
35527
  pythonLoading: k
35568
- } = ij({
35528
+ } = nj({
35569
35529
  code: e,
35570
35530
  setCode: t,
35571
35531
  currentEditorModel: y,
35572
35532
  monacoEditor: A,
35573
35533
  enable: o === !0 && a === "python"
35574
- }), S = ej(), [T, $] = pe("JSON"), [R, F] = pe(!1), z = a === "json", H = () => {
35534
+ }), S = Q8(), [T, $] = pe("JSON"), [R, F] = pe(!1), z = a === "json", H = () => {
35575
35535
  S?.active ? S.exit() : S.enter();
35576
35536
  }, B = (W) => {
35577
35537
  f.current = W;
@@ -35698,7 +35658,7 @@ const sj = di.getInstance(), lj = (e) => {
35698
35658
  });
35699
35659
  }
35700
35660
  };
35701
- return /* @__PURE__ */ x.jsx(tj, { handle: S, className: "h-full", children: /* @__PURE__ */ x.jsxs("div", { className: "relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full", id: "code-editor-container-with-json-grid", children: [
35661
+ return /* @__PURE__ */ x.jsx(K8, { handle: S, className: "h-full", children: /* @__PURE__ */ x.jsxs("div", { className: "relative border border-neutral-200 dark:border-neutral-700 rounded-lg h-full", id: "code-editor-container-with-json-grid", children: [
35702
35662
  /* @__PURE__ */ x.jsxs(
35703
35663
  "div",
35704
35664
  {
@@ -35708,14 +35668,14 @@ const sj = di.getInstance(), lj = (e) => {
35708
35668
  ),
35709
35669
  children: [
35710
35670
  z && d && /* @__PURE__ */ x.jsx(
35711
- uj,
35671
+ lj,
35712
35672
  {
35713
35673
  variant: "switch",
35714
- tabs: Sj,
35674
+ tabs: xj,
35715
35675
  activeTab: T,
35716
35676
  size: "sm",
35717
35677
  onTabClick: (W) => $(W),
35718
- tabIcons: wj,
35678
+ tabIcons: Cj,
35719
35679
  height: "h-[20px]"
35720
35680
  }
35721
35681
  ),
@@ -35729,32 +35689,32 @@ const sj = di.getInstance(), lj = (e) => {
35729
35689
  "p-0.5 rounded-md flex items-center justify-center",
35730
35690
  "hover:bg-blue-100 hover:dark:bg-neutral-800 text-blue-600 dark:text-neutral-100"
35731
35691
  ),
35732
- children: /* @__PURE__ */ x.jsx(xj, {})
35692
+ children: /* @__PURE__ */ x.jsx(yj, {})
35733
35693
  }
35734
35694
  ) }) }),
35735
35695
  T === "Grid" ? /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
35736
- /* @__PURE__ */ x.jsx(An, { title: "Collapse all", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-json-grid-up", onClick: () => b(!1), className: M, children: /* @__PURE__ */ x.jsx(yj, {}) }) }),
35737
- /* @__PURE__ */ x.jsx(An, { title: "Expand all", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-json-grid-down", onClick: () => b(!0), className: M, children: /* @__PURE__ */ x.jsx(Cj, {}) }) })
35696
+ /* @__PURE__ */ x.jsx(An, { title: "Collapse all", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-json-grid-up", onClick: () => b(!1), className: M, children: /* @__PURE__ */ x.jsx(vj, {}) }) }),
35697
+ /* @__PURE__ */ x.jsx(An, { title: "Expand all", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-json-grid-down", onClick: () => b(!0), className: M, children: /* @__PURE__ */ x.jsx(bj, {}) }) })
35738
35698
  ] }) : null,
35739
- T === "JSON" && d ? /* @__PURE__ */ x.jsx(An, { title: "Format", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-format-code", onClick: L, className: M, children: /* @__PURE__ */ x.jsx(bj, {}) }) }) : null,
35699
+ T === "JSON" && d ? /* @__PURE__ */ x.jsx(An, { title: "Format", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-format-code", onClick: L, className: M, children: /* @__PURE__ */ x.jsx(hj, {}) }) }) : null,
35740
35700
  n && T === "JSON" && d ? /* @__PURE__ */ x.jsx(An, { title: p === "vs" ? "Dark mode" : "Light mode", children: /* @__PURE__ */ x.jsx(
35741
35701
  "button",
35742
35702
  {
35743
35703
  id: "btn-code-editor-with-theme",
35744
35704
  onClick: () => h(p === "vs" ? "vs-dark" : "vs"),
35745
35705
  className: M,
35746
- children: p === "vs" ? /* @__PURE__ */ x.jsx(mj, {}) : /* @__PURE__ */ x.jsx(gj, {})
35706
+ children: p === "vs" ? /* @__PURE__ */ x.jsx(dj, {}) : /* @__PURE__ */ x.jsx(fj, {})
35747
35707
  }
35748
35708
  ) }) : null,
35749
- (a === "python" || a === "json") && l ? /* @__PURE__ */ x.jsx(An, { title: "Copy", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-copy-code", onClick: V, className: M, children: /* @__PURE__ */ x.jsx(pj, {}) }) }) : null,
35750
- (a === "python" || a === "json") && c ? /* @__PURE__ */ x.jsx(An, { title: "Download", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-download-code", onClick: q, className: M, children: /* @__PURE__ */ x.jsx(hj, {}) }) }) : null,
35751
- r ? /* @__PURE__ */ x.jsx(An, { title: "Fullscreen", children: /* @__PURE__ */ x.jsx("button", { onClick: H, id: "btn-code-editor-fullscreen", className: M, children: /* @__PURE__ */ x.jsx(vj, {}) }) }) : null
35709
+ (a === "python" || a === "json") && l ? /* @__PURE__ */ x.jsx(An, { title: "Copy", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-copy-code", onClick: V, className: M, children: /* @__PURE__ */ x.jsx(mj, {}) }) }) : null,
35710
+ (a === "python" || a === "json") && c ? /* @__PURE__ */ x.jsx(An, { title: "Download", children: /* @__PURE__ */ x.jsx("button", { id: "btn-code-editor-download-code", onClick: q, className: M, children: /* @__PURE__ */ x.jsx(gj, {}) }) }) : null,
35711
+ r ? /* @__PURE__ */ x.jsx(An, { title: "Fullscreen", children: /* @__PURE__ */ x.jsx("button", { onClick: H, id: "btn-code-editor-fullscreen", className: M, children: /* @__PURE__ */ x.jsx(pj, {}) }) }) : null
35752
35712
  ] })
35753
35713
  ]
35754
35714
  }
35755
35715
  ),
35756
35716
  T === "Grid" && a === "json" ? /* @__PURE__ */ x.jsx("div", { children: /* @__PURE__ */ x.jsx(
35757
- cj,
35717
+ sj,
35758
35718
  {
35759
35719
  isFullScreen: S?.active,
35760
35720
  allExpanded: g,
@@ -35770,7 +35730,7 @@ const sj = di.getInstance(), lj = (e) => {
35770
35730
  isAddKeyModalOpen: R
35771
35731
  }
35772
35732
  ) }) : /* @__PURE__ */ x.jsx(
35773
- JF,
35733
+ UF,
35774
35734
  {
35775
35735
  height: S?.active ? "100vh" : i,
35776
35736
  containerStyle: {
@@ -35923,11 +35883,11 @@ class au {
35923
35883
  return o;
35924
35884
  }
35925
35885
  }
35926
- class Ej extends au {
35886
+ class wj extends au {
35927
35887
  }
35928
- const Ij = new Ej();
35929
- function Nj(e, t, r) {
35930
- return Ij.diff(e, t, r);
35888
+ const Sj = new wj();
35889
+ function Ej(e, t, r) {
35890
+ return Sj.diff(e, t, r);
35931
35891
  }
35932
35892
  function Yh(e, t) {
35933
35893
  let r;
@@ -35964,9 +35924,9 @@ function il(e, t) {
35964
35924
  return t0(e, t, "");
35965
35925
  }
35966
35926
  function Zh(e, t) {
35967
- return t.slice(0, Aj(e, t));
35927
+ return t.slice(0, Ij(e, t));
35968
35928
  }
35969
- function Aj(e, t) {
35929
+ function Ij(e, t) {
35970
35930
  let r = 0;
35971
35931
  e.length > t.length && (r = e.length - t.length);
35972
35932
  let n = t.length;
@@ -35997,8 +35957,8 @@ function so(e) {
35997
35957
  const t = e.match(/^\s*/);
35998
35958
  return t ? t[0] : "";
35999
35959
  }
36000
- const nc = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", Oj = new RegExp(`[${nc}]+|\\s+|[^${nc}]`, "ug");
36001
- class Pj extends au {
35960
+ const nc = "a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}", Nj = new RegExp(`[${nc}]+|\\s+|[^${nc}]`, "ug");
35961
+ class Aj extends au {
36002
35962
  equals(t, r, n) {
36003
35963
  return n.ignoreCase && (t = t.toLowerCase(), r = r.toLowerCase()), t.trim() === r.trim();
36004
35964
  }
@@ -36010,7 +35970,7 @@ class Pj extends au {
36010
35970
  throw new Error('The segmenter passed must have a granularity of "word"');
36011
35971
  n = Array.from(a.segment(t), (s) => s.segment);
36012
35972
  } else
36013
- n = t.match(Oj) || [];
35973
+ n = t.match(Nj) || [];
36014
35974
  const o = [];
36015
35975
  let i = null;
36016
35976
  return n.forEach((a) => {
@@ -36029,9 +35989,9 @@ class Pj extends au {
36029
35989
  }), (o || i) && qh(n, i, o, null), t;
36030
35990
  }
36031
35991
  }
36032
- const Tj = new Pj();
36033
- function $j(e, t, r) {
36034
- return r?.ignoreWhitespace != null && !r.ignoreWhitespace ? Fj(e, t, r) : Tj.diff(e, t, r);
35992
+ const Oj = new Aj();
35993
+ function Pj(e, t, r) {
35994
+ return r?.ignoreWhitespace != null && !r.ignoreWhitespace ? Rj(e, t, r) : Oj.diff(e, t, r);
36035
35995
  }
36036
35996
  function qh(e, t, r, n) {
36037
35997
  if (t && r) {
@@ -36066,19 +36026,19 @@ function qh(e, t, r, n) {
36066
36026
  t.value = ra(t.value, a);
36067
36027
  }
36068
36028
  }
36069
- class Rj extends au {
36029
+ class Tj extends au {
36070
36030
  tokenize(t) {
36071
36031
  const r = new RegExp(`(\\r?\\n)|[${nc}]+|[^\\S\\n\\r]+|[^${nc}]`, "ug");
36072
36032
  return t.match(r) || [];
36073
36033
  }
36074
36034
  }
36075
- const kj = new Rj();
36076
- function Fj(e, t, r) {
36077
- return kj.diff(e, t, r);
36035
+ const $j = new Tj();
36036
+ function Rj(e, t, r) {
36037
+ return $j.diff(e, t, r);
36078
36038
  }
36079
- class jj extends au {
36039
+ class kj extends au {
36080
36040
  constructor() {
36081
- super(...arguments), this.tokenize = Dj;
36041
+ super(...arguments), this.tokenize = Mj;
36082
36042
  }
36083
36043
  equals(t, r, n) {
36084
36044
  return n.ignoreWhitespace ? ((!n.newlineIsToken || !t.includes(`
@@ -36088,11 +36048,11 @@ class jj extends au {
36088
36048
  `) && (r = r.slice(0, -1))), super.equals(t, r, n);
36089
36049
  }
36090
36050
  }
36091
- const Mj = new jj();
36092
- function Lj(e, t, r) {
36093
- return Mj.diff(e, t, r);
36051
+ const Fj = new kj();
36052
+ function jj(e, t, r) {
36053
+ return Fj.diff(e, t, r);
36094
36054
  }
36095
- function Dj(e, t) {
36055
+ function Mj(e, t) {
36096
36056
  t.stripTrailingCr && (e = e.replace(/\r\n/g, `
36097
36057
  `));
36098
36058
  const r = [], n = e.split(/(\n|\r\n)/);
@@ -36126,14 +36086,14 @@ const i2 = Ze(
36126
36086
  let A = [];
36127
36087
  switch (r) {
36128
36088
  case "lines":
36129
- A = Lj(e, t, { ignoreWhitespace: f });
36089
+ A = jj(e, t, { ignoreWhitespace: f });
36130
36090
  break;
36131
36091
  case "chars":
36132
- A = Nj(e, t, { ignoreCase: d });
36092
+ A = Ej(e, t, { ignoreCase: d });
36133
36093
  break;
36134
36094
  case "words":
36135
36095
  default:
36136
- A = $j(e, t, { ignoreCase: d });
36096
+ A = Pj(e, t, { ignoreCase: d });
36137
36097
  break;
36138
36098
  }
36139
36099
  return m?.(A), A;
@@ -36241,7 +36201,7 @@ const i2 = Ze(
36241
36201
  }
36242
36202
  );
36243
36203
  i2.displayName = "DiffViewer";
36244
- const qj = i2, _j = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), a2 = Ze(
36204
+ const Zj = i2, Lj = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), a2 = Ze(
36245
36205
  ({
36246
36206
  text: e,
36247
36207
  onClick: t,
@@ -36293,7 +36253,7 @@ const qj = i2, _j = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), a2 = Ze(
36293
36253
  try {
36294
36254
  if (typeof e != "string" && typeof e != "number")
36295
36255
  return e;
36296
- const B = _j(h.trim()), D = new RegExp(`(${B})`, "gi"), L = e.toString().split(D);
36256
+ const B = Lj(h.trim()), D = new RegExp(`(${B})`, "gi"), L = e.toString().split(D);
36297
36257
  return /* @__PURE__ */ x.jsx("span", { className: "overflow-hidden text-ellipsis", children: L.map((_, M) => M % 2 === 1 && _.toLowerCase() === h.toLowerCase() ? /* @__PURE__ */ x.jsx(
36298
36258
  "span",
36299
36259
  {
@@ -36414,7 +36374,7 @@ const qj = i2, _j = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), a2 = Ze(
36414
36374
  }
36415
36375
  );
36416
36376
  a2.displayName = "OptionButton";
36417
- const Bj = Ze(
36377
+ const Dj = Ze(
36418
36378
  ({
36419
36379
  show: e = !1,
36420
36380
  onClose: t,
@@ -36758,14 +36718,14 @@ const Bj = Ze(
36758
36718
  ) });
36759
36719
  }
36760
36720
  );
36761
- Bj.displayName = "FloatingBar";
36721
+ Dj.displayName = "FloatingBar";
36762
36722
  export {
36763
36723
  n$ as Badge,
36764
- v$ as Banner,
36724
+ p$ as Banner,
36765
36725
  Qp as CURRENCIES,
36766
36726
  A7 as CURRENCY_SYMBOLS,
36767
36727
  dA as Checkbox,
36768
- Zj as CodeEditor,
36728
+ Jj as CodeEditor,
36769
36729
  fA as ColorPicker,
36770
36730
  N7 as CreatableSelectField,
36771
36731
  O7 as CurrencyInputField,
@@ -36773,36 +36733,36 @@ export {
36773
36733
  T7 as DebounceInputField,
36774
36734
  i2 as DiffViewer,
36775
36735
  t$ as FileUpload,
36776
- Bj as FloatingBar,
36777
- qj as InlineDiffHighlighter,
36736
+ Dj as FloatingBar,
36737
+ Zj as InlineDiffHighlighter,
36778
36738
  h2 as InputField,
36779
- cj as JsonGrid,
36780
- h$ as LabelValue,
36781
- i$ as Modal,
36739
+ sj as JsonGrid,
36740
+ g$ as LabelValue,
36741
+ Hj as Modal,
36782
36742
  U7 as MultiFileUpload,
36783
36743
  a2 as OptionButton,
36784
- F$ as PdfViewer,
36744
+ R$ as PdfViewer,
36785
36745
  $7 as PercentageInputField,
36786
- M$ as Popper,
36787
- k$ as ResizableSidebar,
36746
+ F$ as Popper,
36747
+ $$ as ResizableSidebar,
36788
36748
  r$ as StatusColorMapping,
36789
- uj as Tabs,
36749
+ lj as Tabs,
36790
36750
  ql as Tag,
36791
- Hj as TextField,
36792
- Xj as Toast,
36751
+ zj as TextField,
36752
+ Wj as Toast,
36793
36753
  dC as Toggle,
36794
36754
  Ce as Typography,
36795
- Yj as filterTopLevelPaths,
36755
+ Uj as filterTopLevelPaths,
36796
36756
  rh as formatBooleanValue,
36797
36757
  nh as formatCurrency,
36798
36758
  Xs as formatDate,
36799
- g$ as isISODateString,
36800
- sj as monacoManager,
36801
- lj as parseJson,
36802
- Jj as randomHexString,
36759
+ f$ as isISODateString,
36760
+ ij as monacoManager,
36761
+ aj as parseJson,
36762
+ Yj as randomHexString,
36803
36763
  $r as systemMessages,
36804
- Uj as toast,
36805
- j$ as useOutsideClick,
36806
- ij as usePythonSyntax,
36807
- aj as useTheme
36764
+ Xj as toast,
36765
+ k$ as useOutsideClick,
36766
+ nj as usePythonSyntax,
36767
+ oj as useTheme
36808
36768
  };