@stackone/malachite 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var B5 = (e) => {
5
5
  var N6 = (e, r, t) => r in e ? F6(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
6
6
  var N = (e, r, t) => N6(e, typeof r != "symbol" ? r + "" : r, t), J1 = (e, r, t) => r.has(e) || B5("Cannot " + t);
7
7
  var E1 = (e, r, t) => (J1(e, r, "read from private field"), t ? t.call(e) : r.get(e)), X1 = (e, r, t) => r.has(e) ? B5("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), M5 = (e, r, t, a) => (J1(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t), H = (e, r, t) => (J1(e, r, "access private method"), t);
8
- import { jsx as n, jsxs as v, Fragment as D1 } from "react/jsx-runtime";
8
+ import { jsx as n, jsxs as y, Fragment as D1 } from "react/jsx-runtime";
9
9
  import * as l from "react";
10
10
  import G1, { forwardRef as a5, createElement as H5, Fragment as J, useState as $, useMemo as H1, useRef as d1, useEffect as _, createContext as e1, useContext as a1, useReducer as k1 } from "react";
11
11
  import { Controller as I6 } from "react-hook-form";
@@ -43,7 +43,7 @@ const Z6 = (e) => {
43
43
  case "no-style":
44
44
  return `${r} btn-no-style border-none`;
45
45
  }
46
- }, Q6 = () => /* @__PURE__ */ v(
46
+ }, Q6 = () => /* @__PURE__ */ y(
47
47
  "svg",
48
48
  {
49
49
  className: "animate-spin -ml-1 mr-2 h-4 w-4",
@@ -94,13 +94,13 @@ const Z6 = (e) => {
94
94
  c ? "max-w-full" : "",
95
95
  a || t ? "cursor-not-allowed" : "",
96
96
  h
97
- ].filter(Boolean).join(" "), f = /* @__PURE__ */ n("button", { ref: u, disabled: a || t, className: b, ...g, children: t ? /* @__PURE__ */ v("span", { className: "flex items-center justify-center", children: [
97
+ ].filter(Boolean).join(" "), f = /* @__PURE__ */ n("button", { ref: u, disabled: a || t, className: b, ...g, children: t ? /* @__PURE__ */ y("span", { className: "flex items-center justify-center", children: [
98
98
  /* @__PURE__ */ n(Q6, {}),
99
99
  d
100
- ] }) : o && i === "start" ? /* @__PURE__ */ v("span", { className: "flex items-center justify-center", children: [
100
+ ] }) : o && i === "start" ? /* @__PURE__ */ y("span", { className: "flex items-center justify-center", children: [
101
101
  /* @__PURE__ */ n("span", { className: d ? "mr-2" : "", children: o }),
102
102
  d
103
- ] }) : o && i === "end" ? /* @__PURE__ */ v("span", { className: "flex items-center justify-center", children: [
103
+ ] }) : o && i === "end" ? /* @__PURE__ */ y("span", { className: "flex items-center justify-center", children: [
104
104
  d,
105
105
  /* @__PURE__ */ n("span", { className: d ? "ml-2" : "", children: o })
106
106
  ] }) : d });
@@ -2612,9 +2612,9 @@ var o8 = class {
2612
2612
  });
2613
2613
  return this.renderer.elIdList.pop(), r;
2614
2614
  }
2615
- }, l8 = o8, u1, P, K, e5, G5, n8 = (G5 = class {
2615
+ }, l8 = o8, u1, Q, K, e5, G5, n8 = (G5 = class {
2616
2616
  constructor(e = {}) {
2617
- X1(this, P);
2617
+ X1(this, Q);
2618
2618
  N(this, "elIdList", []);
2619
2619
  X1(this, u1);
2620
2620
  const { renderer: r } = e;
@@ -2622,7 +2622,7 @@ var o8 = class {
2622
2622
  const o = t, i = a;
2623
2623
  !this[o] || o === "elementId" || o === "elIdList" || typeof i != "function" || Object.defineProperty(this, o, {
2624
2624
  value(...s) {
2625
- return H(this, P, e5).call(this), i.apply(this, s);
2625
+ return H(this, Q, e5).call(this), i.apply(this, s);
2626
2626
  },
2627
2627
  writable: !0,
2628
2628
  enumerable: !0,
@@ -2634,21 +2634,21 @@ var o8 = class {
2634
2634
  return this.elIdList.join("-");
2635
2635
  }
2636
2636
  heading(e, r) {
2637
- return H(this, P, K).call(this, `h${r}`, e);
2637
+ return H(this, Q, K).call(this, `h${r}`, e);
2638
2638
  }
2639
2639
  paragraph(e) {
2640
- return H(this, P, K).call(this, "p", e);
2640
+ return H(this, Q, K).call(this, "p", e);
2641
2641
  }
2642
2642
  link(e, r) {
2643
2643
  const t = Z5(e, E1(this, u1).baseURL), a = E1(this, u1).openLinksInNewTab ? "_blank" : null;
2644
- return H(this, P, K).call(this, "a", r, {
2644
+ return H(this, Q, K).call(this, "a", r, {
2645
2645
  href: t,
2646
2646
  target: a
2647
2647
  });
2648
2648
  }
2649
2649
  image(e, r, t = null) {
2650
2650
  const a = Z5(e, E1(this, u1).baseURL);
2651
- return H(this, P, K).call(this, "img", null, {
2651
+ return H(this, Q, K).call(this, "img", null, {
2652
2652
  src: a,
2653
2653
  alt: r,
2654
2654
  title: t
@@ -2656,51 +2656,51 @@ var o8 = class {
2656
2656
  }
2657
2657
  codespan(e, r = null) {
2658
2658
  const t = r ? `${E1(this, u1).langPrefix}${r}` : null;
2659
- return H(this, P, K).call(this, "code", e, { className: t });
2659
+ return H(this, Q, K).call(this, "code", e, { className: t });
2660
2660
  }
2661
2661
  code(e, r) {
2662
- return H(this, P, K).call(this, "pre", this.codespan(e, r));
2662
+ return H(this, Q, K).call(this, "pre", this.codespan(e, r));
2663
2663
  }
2664
2664
  blockquote(e) {
2665
- return H(this, P, K).call(this, "blockquote", e);
2665
+ return H(this, Q, K).call(this, "blockquote", e);
2666
2666
  }
2667
2667
  list(e, r, t) {
2668
- return H(this, P, K).call(this, r ? "ol" : "ul", e, r && t !== 1 ? { start: t } : {});
2668
+ return H(this, Q, K).call(this, r ? "ol" : "ul", e, r && t !== 1 ? { start: t } : {});
2669
2669
  }
2670
2670
  listItem(e) {
2671
- return H(this, P, K).call(this, "li", e);
2671
+ return H(this, Q, K).call(this, "li", e);
2672
2672
  }
2673
2673
  checkbox(e) {
2674
- return H(this, P, K).call(this, "input", null, {
2674
+ return H(this, Q, K).call(this, "input", null, {
2675
2675
  type: "checkbox",
2676
2676
  disabled: !0,
2677
2677
  checked: e
2678
2678
  });
2679
2679
  }
2680
2680
  table(e) {
2681
- return H(this, P, K).call(this, "table", e);
2681
+ return H(this, Q, K).call(this, "table", e);
2682
2682
  }
2683
2683
  tableHeader(e) {
2684
- return H(this, P, K).call(this, "thead", e);
2684
+ return H(this, Q, K).call(this, "thead", e);
2685
2685
  }
2686
2686
  tableBody(e) {
2687
- return H(this, P, K).call(this, "tbody", e);
2687
+ return H(this, Q, K).call(this, "tbody", e);
2688
2688
  }
2689
2689
  tableRow(e) {
2690
- return H(this, P, K).call(this, "tr", e);
2690
+ return H(this, Q, K).call(this, "tr", e);
2691
2691
  }
2692
2692
  tableCell(e, r) {
2693
2693
  const t = r.header ? "th" : "td";
2694
- return H(this, P, K).call(this, t, e, { align: r.align });
2694
+ return H(this, Q, K).call(this, t, e, { align: r.align });
2695
2695
  }
2696
2696
  strong(e) {
2697
- return H(this, P, K).call(this, "strong", e);
2697
+ return H(this, Q, K).call(this, "strong", e);
2698
2698
  }
2699
2699
  em(e) {
2700
- return H(this, P, K).call(this, "em", e);
2700
+ return H(this, Q, K).call(this, "em", e);
2701
2701
  }
2702
2702
  del(e) {
2703
- return H(this, P, K).call(this, "del", e);
2703
+ return H(this, Q, K).call(this, "del", e);
2704
2704
  }
2705
2705
  text(e) {
2706
2706
  return e;
@@ -2709,17 +2709,17 @@ var o8 = class {
2709
2709
  return e;
2710
2710
  }
2711
2711
  hr() {
2712
- return H(this, P, K).call(this, "hr");
2712
+ return H(this, Q, K).call(this, "hr");
2713
2713
  }
2714
2714
  br() {
2715
- return H(this, P, K).call(this, "br");
2715
+ return H(this, Q, K).call(this, "br");
2716
2716
  }
2717
- }, u1 = new WeakMap(), P = new WeakSet(), K = function(e, r = null, t = {}) {
2717
+ }, u1 = new WeakMap(), Q = new WeakSet(), K = function(e, r = null, t = {}) {
2718
2718
  const a = {
2719
2719
  key: `marked-react-${this.elementId}`,
2720
2720
  suppressHydrationWarning: !0
2721
2721
  };
2722
- return H(this, P, e5).call(this), H5(e, {
2722
+ return H(this, Q, e5).call(this), H5(e, {
2723
2723
  ...t,
2724
2724
  ...a
2725
2725
  }, r);
@@ -2891,7 +2891,7 @@ const e2 = ({
2891
2891
  size: r,
2892
2892
  omitMargin: t
2893
2893
  }) => ({
2894
- blockquote: (u) => /* @__PURE__ */ v(D1, { children: [
2894
+ blockquote: (u) => /* @__PURE__ */ y(D1, { children: [
2895
2895
  /* @__PURE__ */ n("br", {}),
2896
2896
  /* @__PURE__ */ n(
2897
2897
  "div",
@@ -2916,7 +2916,7 @@ const e2 = ({
2916
2916
  `paragraph-${Math.random().toString(36).substr(2, 9)}`
2917
2917
  ),
2918
2918
  codespan: (u) => /* @__PURE__ */ n(e2, { size: r, children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
2919
- heading: (u, b) => /* @__PURE__ */ v(D1, { children: [
2919
+ heading: (u, b) => /* @__PURE__ */ y(D1, { children: [
2920
2920
  b === 1 ? /* @__PURE__ */ n(r2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`) : /* @__PURE__ */ n(t2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
2921
2921
  /* @__PURE__ */ n("br", {})
2922
2922
  ] }),
@@ -3032,9 +3032,9 @@ const e2 = ({
3032
3032
  c ? "gap-2 px-2.5 py-1" : "gap-2",
3033
3033
  c && h ? "rounded-t-[12px]" : c ? "rounded-[12px]" : ""
3034
3034
  ].filter(Boolean).join(" "), E = ["w-full", "overflow-hidden"].filter(Boolean).join(" ");
3035
- return c ? /* @__PURE__ */ v("div", { className: `${w} alert-expandable`, children: [
3036
- /* @__PURE__ */ v("div", { className: f, children: [
3037
- /* @__PURE__ */ v("div", { className: "flex-1 flex gap-2 items-center", children: [
3035
+ return c ? /* @__PURE__ */ y("div", { className: `${w} alert-expandable`, children: [
3036
+ /* @__PURE__ */ y("div", { className: f, children: [
3037
+ /* @__PURE__ */ y("div", { className: "flex-1 flex gap-2 items-center", children: [
3038
3038
  b[e],
3039
3039
  /* @__PURE__ */ n("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ n("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ n(P5, { text: r, type: e }) }) })
3040
3040
  ] }),
@@ -3063,7 +3063,7 @@ const e2 = ({
3063
3063
  ) })
3064
3064
  ] }),
3065
3065
  h && /* @__PURE__ */ n(D1, { children: /* @__PURE__ */ n("div", { className: E, children: /* @__PURE__ */ n("div", { className: "bg-white rounded-[10px] shadow-[0px_1px_0px_0px_rgba(0,0,0,0.15)] border border-[#e8e8e8] border-solid mx-2 mb-2 max-h-[553px] overflow-y-auto", children: o }) }) })
3066
- ] }) : /* @__PURE__ */ v("div", { className: w, children: [
3066
+ ] }) : /* @__PURE__ */ y("div", { className: w, children: [
3067
3067
  b[e],
3068
3068
  /* @__PURE__ */ n("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ n("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ n(P5, { text: r, type: e }) }) })
3069
3069
  ] });
@@ -3146,7 +3146,7 @@ const e2 = ({
3146
3146
  };
3147
3147
  return _(() => () => {
3148
3148
  c.current && clearTimeout(c.current);
3149
- }, []), /* @__PURE__ */ v(
3149
+ }, []), /* @__PURE__ */ y(
3150
3150
  "div",
3151
3151
  {
3152
3152
  ref: d,
@@ -3240,9 +3240,9 @@ const e2 = ({
3240
3240
  children: d
3241
3241
  }) => {
3242
3242
  const h = c ? /* @__PURE__ */ n(m8, { control: c, name: a, children: d }) : d;
3243
- return /* @__PURE__ */ v(L1, { direction: "vertical", size: 10, align: "stretch", children: [
3244
- (e ?? r ?? o) && /* @__PURE__ */ v(L1, { direction: "vertical", size: 0, align: "stretch", children: [
3245
- /* @__PURE__ */ v("div", { className: "flex justify-between items-start", children: [
3243
+ return /* @__PURE__ */ y(L1, { direction: "vertical", size: 10, align: "stretch", children: [
3244
+ (e ?? r ?? o) && /* @__PURE__ */ y(L1, { direction: "vertical", size: 0, align: "stretch", children: [
3245
+ /* @__PURE__ */ y("div", { className: "flex justify-between items-start", children: [
3246
3246
  /* @__PURE__ */ n(w8, { text: e, required: i, tooltip: t }),
3247
3247
  r && /* @__PURE__ */ n(b8, { text: r })
3248
3248
  ] }),
@@ -3254,8 +3254,8 @@ const e2 = ({
3254
3254
  text: e,
3255
3255
  required: r,
3256
3256
  tooltip: t
3257
- }) => e ? /* @__PURE__ */ v("div", { className: "flex items-center", children: [
3258
- /* @__PURE__ */ v(v1, { size: "xsmall", color: "primary", fontWeight: "semi-bold", className: "pl-2", children: [
3257
+ }) => e ? /* @__PURE__ */ y("div", { className: "flex items-center", children: [
3258
+ /* @__PURE__ */ y(v1, { size: "xsmall", color: "primary", fontWeight: "semi-bold", className: "pl-2", children: [
3259
3259
  e,
3260
3260
  !r && /* @__PURE__ */ n(v1, { size: "xsmall", color: "dimmed", className: "ml-1", children: "(Optional)" })
3261
3261
  ] }),
@@ -3326,7 +3326,7 @@ const e2 = ({
3326
3326
  overflow: "hidden",
3327
3327
  ...f
3328
3328
  };
3329
- return /* @__PURE__ */ v("div", { className: A, style: B, children: [
3329
+ return /* @__PURE__ */ y("div", { className: A, style: B, children: [
3330
3330
  e && /* @__PURE__ */ n(
3331
3331
  "div",
3332
3332
  {
@@ -3529,7 +3529,7 @@ var h2 = {
3529
3529
  className: "w-rjv-type",
3530
3530
  children: "date"
3531
3531
  }
3532
- }, u2 = /* @__PURE__ */ e1(h2), B8 = (e, r) => m({}, e, r), Q = () => a1(u2), b5 = /* @__PURE__ */ e1(() => {
3532
+ }, u2 = /* @__PURE__ */ e1(h2), B8 = (e, r) => m({}, e, r), S = () => a1(u2), b5 = /* @__PURE__ */ e1(() => {
3533
3533
  });
3534
3534
  b5.displayName = "JVR.DispatchTypes";
3535
3535
  function M8() {
@@ -3987,7 +3987,7 @@ var J8 = ["as", "render"], X8 = ["as", "render"], q8 = ["as", "render"], z8 = ["
3987
3987
  } = e, {
3988
3988
  Set: a = {},
3989
3989
  displayDataTypes: o
3990
- } = Q(), i = r instanceof Set;
3990
+ } = S(), i = r instanceof Set;
3991
3991
  if (!i || !o) return null;
3992
3992
  var {
3993
3993
  as: s,
@@ -4009,7 +4009,7 @@ var D2 = (e) => {
4009
4009
  } = e, {
4010
4010
  Map: a = {},
4011
4011
  displayDataTypes: o
4012
- } = Q(), i = r instanceof Map;
4012
+ } = S(), i = r instanceof Map;
4013
4013
  if (!i || !o) return null;
4014
4014
  var {
4015
4015
  as: s,
@@ -4035,7 +4035,7 @@ var o1 = {
4035
4035
  } = e, {
4036
4036
  Str: o = {},
4037
4037
  displayDataTypes: i
4038
- } = Q(), {
4038
+ } = S(), {
4039
4039
  shortenTextAfterLength: s = 30,
4040
4040
  stringEllipsis: c = "..."
4041
4041
  } = f1(), {
@@ -4065,10 +4065,10 @@ var o1 = {
4065
4065
  keyName: t,
4066
4066
  keys: a
4067
4067
  });
4068
- return /* @__PURE__ */ v(J, {
4068
+ return /* @__PURE__ */ y(J, {
4069
4069
  children: [i && (k || /* @__PURE__ */ n(w, m({}, h, {
4070
4070
  style: f
4071
- }))), M || /* @__PURE__ */ v(J, {
4071
+ }))), M || /* @__PURE__ */ y(J, {
4072
4072
  children: [/* @__PURE__ */ n(F1, {}), /* @__PURE__ */ n(w, m({}, h, {
4073
4073
  className: B,
4074
4074
  children: E
@@ -4085,7 +4085,7 @@ var N2 = (e) => {
4085
4085
  } = e, {
4086
4086
  True: o = {},
4087
4087
  displayDataTypes: i
4088
- } = Q(), {
4088
+ } = S(), {
4089
4089
  as: s,
4090
4090
  render: c
4091
4091
  } = o, C = V(o, z8), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4104,7 +4104,7 @@ var N2 = (e) => {
4104
4104
  keyName: t,
4105
4105
  keys: a
4106
4106
  });
4107
- return /* @__PURE__ */ v(J, {
4107
+ return /* @__PURE__ */ y(J, {
4108
4108
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4109
4109
  style: h
4110
4110
  }))), b || /* @__PURE__ */ n(d, m({}, C, {
@@ -4122,7 +4122,7 @@ var I2 = (e) => {
4122
4122
  } = e, {
4123
4123
  False: o = {},
4124
4124
  displayDataTypes: i
4125
- } = Q(), {
4125
+ } = S(), {
4126
4126
  as: s,
4127
4127
  render: c
4128
4128
  } = o, C = V(o, U8), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4141,7 +4141,7 @@ var I2 = (e) => {
4141
4141
  keyName: t,
4142
4142
  keys: a
4143
4143
  });
4144
- return /* @__PURE__ */ v(J, {
4144
+ return /* @__PURE__ */ y(J, {
4145
4145
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4146
4146
  style: h
4147
4147
  }))), b || /* @__PURE__ */ n(d, m({}, C, {
@@ -4159,7 +4159,7 @@ var Z2 = (e) => {
4159
4159
  } = e, {
4160
4160
  Float: o = {},
4161
4161
  displayDataTypes: i
4162
- } = Q(), {
4162
+ } = S(), {
4163
4163
  as: s,
4164
4164
  render: c
4165
4165
  } = o, C = V(o, $8), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4178,7 +4178,7 @@ var Z2 = (e) => {
4178
4178
  keyName: t,
4179
4179
  keys: a
4180
4180
  });
4181
- return /* @__PURE__ */ v(J, {
4181
+ return /* @__PURE__ */ y(J, {
4182
4182
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4183
4183
  style: h
4184
4184
  }))), b || /* @__PURE__ */ n(d, m({}, C, {
@@ -4196,7 +4196,7 @@ var P2 = (e) => {
4196
4196
  } = e, {
4197
4197
  Int: o = {},
4198
4198
  displayDataTypes: i
4199
- } = Q(), {
4199
+ } = S(), {
4200
4200
  as: s,
4201
4201
  render: c
4202
4202
  } = o, C = V(o, _8), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4215,7 +4215,7 @@ var P2 = (e) => {
4215
4215
  keyName: t,
4216
4216
  keys: a
4217
4217
  });
4218
- return /* @__PURE__ */ v(J, {
4218
+ return /* @__PURE__ */ y(J, {
4219
4219
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4220
4220
  style: h
4221
4221
  }))), b || /* @__PURE__ */ n(d, m({}, C, {
@@ -4233,7 +4233,7 @@ var Q2 = (e) => {
4233
4233
  } = e, {
4234
4234
  Bigint: o = {},
4235
4235
  displayDataTypes: i
4236
- } = Q(), {
4236
+ } = S(), {
4237
4237
  as: s,
4238
4238
  render: c
4239
4239
  } = o, C = V(o, ee), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4252,7 +4252,7 @@ var Q2 = (e) => {
4252
4252
  keyName: t,
4253
4253
  keys: a
4254
4254
  });
4255
- return /* @__PURE__ */ v(J, {
4255
+ return /* @__PURE__ */ y(J, {
4256
4256
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4257
4257
  style: h
4258
4258
  }))), b || /* @__PURE__ */ n(d, m({}, C, {
@@ -4270,7 +4270,7 @@ var S2 = (e) => {
4270
4270
  } = e, {
4271
4271
  Url: o = {},
4272
4272
  displayDataTypes: i
4273
- } = Q(), {
4273
+ } = S(), {
4274
4274
  as: s,
4275
4275
  render: c
4276
4276
  } = o, C = V(o, re), d = s || "span", h = m({}, o1, o.style), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4289,10 +4289,10 @@ var S2 = (e) => {
4289
4289
  keyName: t,
4290
4290
  keys: a
4291
4291
  });
4292
- return /* @__PURE__ */ v(J, {
4292
+ return /* @__PURE__ */ y(J, {
4293
4293
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4294
4294
  style: h
4295
- }))), b || /* @__PURE__ */ v("a", m({
4295
+ }))), b || /* @__PURE__ */ y("a", m({
4296
4296
  href: r == null ? void 0 : r.href,
4297
4297
  target: "_blank"
4298
4298
  }, C, {
@@ -4310,7 +4310,7 @@ var G2 = (e) => {
4310
4310
  } = e, {
4311
4311
  Date: o = {},
4312
4312
  displayDataTypes: i
4313
- } = Q(), {
4313
+ } = S(), {
4314
4314
  as: s,
4315
4315
  render: c
4316
4316
  } = o, C = V(o, te), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4329,7 +4329,7 @@ var G2 = (e) => {
4329
4329
  keyName: t,
4330
4330
  keys: a
4331
4331
  });
4332
- return /* @__PURE__ */ v(J, {
4332
+ return /* @__PURE__ */ y(J, {
4333
4333
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4334
4334
  style: h
4335
4335
  }))), w || /* @__PURE__ */ n(d, m({}, C, {
@@ -4347,7 +4347,7 @@ var H2 = (e) => {
4347
4347
  } = e, {
4348
4348
  Undefined: o = {},
4349
4349
  displayDataTypes: i
4350
- } = Q(), {
4350
+ } = S(), {
4351
4351
  as: s,
4352
4352
  render: c
4353
4353
  } = o, C = V(o, ae), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4366,7 +4366,7 @@ var H2 = (e) => {
4366
4366
  keyName: t,
4367
4367
  keys: a
4368
4368
  });
4369
- return /* @__PURE__ */ v(J, {
4369
+ return /* @__PURE__ */ y(J, {
4370
4370
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4371
4371
  style: h
4372
4372
  }))), b]
@@ -4381,7 +4381,7 @@ var R2 = (e) => {
4381
4381
  } = e, {
4382
4382
  Null: o = {},
4383
4383
  displayDataTypes: i
4384
- } = Q(), {
4384
+ } = S(), {
4385
4385
  as: s,
4386
4386
  render: c
4387
4387
  } = o, C = V(o, oe), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4400,7 +4400,7 @@ var R2 = (e) => {
4400
4400
  keyName: t,
4401
4401
  keys: a
4402
4402
  });
4403
- return /* @__PURE__ */ v(J, {
4403
+ return /* @__PURE__ */ y(J, {
4404
4404
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4405
4405
  style: h
4406
4406
  }))), b]
@@ -4415,7 +4415,7 @@ var j2 = (e) => {
4415
4415
  } = e, {
4416
4416
  Nan: o = {},
4417
4417
  displayDataTypes: i
4418
- } = Q(), {
4418
+ } = S(), {
4419
4419
  as: s,
4420
4420
  render: c
4421
4421
  } = o, C = V(o, le), d = s || "span", h = m({}, o1, o.style || {}), g = c && typeof c == "function", u = g && c(m({}, C, {
@@ -4434,7 +4434,7 @@ var j2 = (e) => {
4434
4434
  keyName: t,
4435
4435
  keys: a
4436
4436
  });
4437
- return /* @__PURE__ */ v(J, {
4437
+ return /* @__PURE__ */ y(J, {
4438
4438
  children: [i && (u || /* @__PURE__ */ n(d, m({}, C, {
4439
4439
  style: h
4440
4440
  }))), b]
@@ -4485,7 +4485,7 @@ function g1(e, r, t) {
4485
4485
  [t]: i
4486
4486
  }), [r]);
4487
4487
  }
4488
- function q(e, r, t) {
4488
+ function z(e, r, t) {
4489
4489
  var a = V8(), o = [e.className, r.className].filter(Boolean).join(" "), i = m({}, e, r, {
4490
4490
  className: o,
4491
4491
  style: m({}, e.style, r.style),
@@ -4628,9 +4628,9 @@ var he = ["keyName", "value", "parentValue", "expandKey", "keys"], ue = ["as", "
4628
4628
  typeof t == "number" && t === 1 / 0 ? D = "Infinity" : typeof t == "number" && isNaN(t) ? D = "NaN" : typeof t == "bigint" ? D = t5(t) : t instanceof Date ? D = t.toLocaleString() : D = JSON.stringify(t, (j, Y) => typeof Y == "bigint" ? t5(Y) : Y, 2), c && c(D, t), u(!0);
4629
4629
  var R = navigator.clipboard || {
4630
4630
  writeText(j) {
4631
- return new Promise((Y, y) => {
4631
+ return new Promise((Y, v) => {
4632
4632
  var x = document.createElement("textarea");
4633
- x.style.position = "absolute", x.style.opacity = "0", x.style.left = "-99999999px", x.value = j, document.body.appendChild(x), x.select(), document.execCommand("copy") ? Y() : y(), x.remove();
4633
+ x.style.position = "absolute", x.style.opacity = "0", x.style.left = "-99999999px", x.value = j, document.body.appendChild(x), x.select(), document.execCommand("copy") ? Y() : v(), x.remove();
4634
4634
  });
4635
4635
  }
4636
4636
  };
@@ -4748,8 +4748,8 @@ var k5 = (e) => {
4748
4748
  keys: a,
4749
4749
  parentValue: t
4750
4750
  };
4751
- return /* @__PURE__ */ v(J, {
4752
- children: [/* @__PURE__ */ v("span", {
4751
+ return /* @__PURE__ */ y(J, {
4752
+ children: [/* @__PURE__ */ y("span", {
4753
4753
  ref: c,
4754
4754
  children: [/* @__PURE__ */ n(r5, m({
4755
4755
  isNumber: s,
@@ -4791,7 +4791,7 @@ var q2 = (e) => {
4791
4791
  [c]: !1
4792
4792
  })
4793
4793
  };
4794
- return /* @__PURE__ */ v(W2, m({
4794
+ return /* @__PURE__ */ y(W2, m({
4795
4795
  className: "w-rjv-line",
4796
4796
  value: t,
4797
4797
  keyName: r,
@@ -4942,17 +4942,17 @@ var t6 = (e) => {
4942
4942
  style: k
4943
4943
  };
4944
4944
  j && (Y.onClick = A);
4945
- var y = {
4945
+ var v = {
4946
4946
  keyName: t,
4947
4947
  value: s,
4948
4948
  keys: o,
4949
4949
  parentValue: c
4950
4950
  };
4951
- return /* @__PURE__ */ v("span", m({}, Y, {
4951
+ return /* @__PURE__ */ y("span", m({}, Y, {
4952
4952
  children: [j && /* @__PURE__ */ n(B2, m({
4953
4953
  style: B,
4954
4954
  expandKey: a
4955
- }, y)), (t || typeof t == "number") && /* @__PURE__ */ n(k5, m({}, y)), /* @__PURE__ */ n(L2, {
4955
+ }, v)), (t || typeof t == "number") && /* @__PURE__ */ n(k5, m({}, v)), /* @__PURE__ */ n(L2, {
4956
4956
  value: i,
4957
4957
  keyName: t
4958
4958
  }), /* @__PURE__ */ n(D2, {
@@ -4960,14 +4960,14 @@ var t6 = (e) => {
4960
4960
  keyName: t
4961
4961
  }), /* @__PURE__ */ n(M2, m({
4962
4962
  isBrackets: D || R
4963
- }, y)), /* @__PURE__ */ n(r6, {
4963
+ }, v)), /* @__PURE__ */ n(r6, {
4964
4964
  keyName: t,
4965
4965
  value: s,
4966
4966
  isExpanded: f
4967
4967
  }), /* @__PURE__ */ n(y5, m({
4968
4968
  isVisiable: f || !j,
4969
4969
  isBrackets: D || R
4970
- }, y)), /* @__PURE__ */ n(_2, {
4970
+ }, v)), /* @__PURE__ */ n(_2, {
4971
4971
  value: s,
4972
4972
  keyName: t
4973
4973
  }), /* @__PURE__ */ n(U2, {
@@ -5000,7 +5000,7 @@ var we = ["className", "children", "parentValue", "keyid", "level", "value", "in
5000
5000
  [g]: !1
5001
5001
  })
5002
5002
  };
5003
- return /* @__PURE__ */ v("div", m({
5003
+ return /* @__PURE__ */ y("div", m({
5004
5004
  className: u,
5005
5005
  ref: r
5006
5006
  }, d, b, {
@@ -5089,92 +5089,92 @@ C6.displayName = "JVR.ValueQuote";
5089
5089
  var d6 = (e) => {
5090
5090
  var {
5091
5091
  Bigint: r = {}
5092
- } = Q();
5093
- return q(r, e, "Bigint"), null;
5092
+ } = S();
5093
+ return z(r, e, "Bigint"), null;
5094
5094
  };
5095
5095
  d6.displayName = "JVR.Bigint";
5096
5096
  var h6 = (e) => {
5097
5097
  var {
5098
5098
  Date: r = {}
5099
- } = Q();
5100
- return q(r, e, "Date"), null;
5099
+ } = S();
5100
+ return z(r, e, "Date"), null;
5101
5101
  };
5102
5102
  h6.displayName = "JVR.Date";
5103
5103
  var u6 = (e) => {
5104
5104
  var {
5105
5105
  False: r = {}
5106
- } = Q();
5107
- return q(r, e, "False"), null;
5106
+ } = S();
5107
+ return z(r, e, "False"), null;
5108
5108
  };
5109
5109
  u6.displayName = "JVR.False";
5110
5110
  var g6 = (e) => {
5111
5111
  var {
5112
5112
  Float: r = {}
5113
- } = Q();
5114
- return q(r, e, "Float"), null;
5113
+ } = S();
5114
+ return z(r, e, "Float"), null;
5115
5115
  };
5116
5116
  g6.displayName = "JVR.Float";
5117
5117
  var p6 = (e) => {
5118
5118
  var {
5119
5119
  Int: r = {}
5120
- } = Q();
5121
- return q(r, e, "Int"), null;
5120
+ } = S();
5121
+ return z(r, e, "Int"), null;
5122
5122
  };
5123
5123
  p6.displayName = "JVR.Int";
5124
5124
  var m6 = (e) => {
5125
5125
  var {
5126
5126
  Map: r = {}
5127
- } = Q();
5128
- return q(r, e, "Map"), null;
5127
+ } = S();
5128
+ return z(r, e, "Map"), null;
5129
5129
  };
5130
5130
  m6.displayName = "JVR.Map";
5131
5131
  var b6 = (e) => {
5132
5132
  var {
5133
5133
  Nan: r = {}
5134
- } = Q();
5135
- return q(r, e, "Nan"), null;
5134
+ } = S();
5135
+ return z(r, e, "Nan"), null;
5136
5136
  };
5137
5137
  b6.displayName = "JVR.Nan";
5138
5138
  var f6 = (e) => {
5139
5139
  var {
5140
5140
  Null: r = {}
5141
- } = Q();
5142
- return q(r, e, "Null"), null;
5141
+ } = S();
5142
+ return z(r, e, "Null"), null;
5143
5143
  };
5144
5144
  f6.displayName = "JVR.Null";
5145
5145
  var w6 = (e) => {
5146
5146
  var {
5147
5147
  Set: r = {}
5148
- } = Q();
5149
- return q(r, e, "Set"), null;
5148
+ } = S();
5149
+ return z(r, e, "Set"), null;
5150
5150
  };
5151
5151
  w6.displayName = "JVR.Set";
5152
5152
  var v6 = (e) => {
5153
5153
  var {
5154
5154
  Str: r = {}
5155
- } = Q();
5156
- return q(r, e, "Str"), null;
5155
+ } = S();
5156
+ return z(r, e, "Str"), null;
5157
5157
  };
5158
5158
  v6.displayName = "JVR.StringText";
5159
5159
  var y6 = (e) => {
5160
5160
  var {
5161
5161
  True: r = {}
5162
- } = Q();
5163
- return q(r, e, "True"), null;
5162
+ } = S();
5163
+ return z(r, e, "True"), null;
5164
5164
  };
5165
5165
  y6.displayName = "JVR.True";
5166
5166
  var x6 = (e) => {
5167
5167
  var {
5168
5168
  Undefined: r = {}
5169
- } = Q();
5170
- return q(r, e, "Undefined"), null;
5169
+ } = S();
5170
+ return z(r, e, "Undefined"), null;
5171
5171
  };
5172
5172
  x6.displayName = "JVR.Undefined";
5173
5173
  var k6 = (e) => {
5174
5174
  var {
5175
5175
  Url: r = {}
5176
- } = Q();
5177
- return q(r, e, "Url"), null;
5176
+ } = S();
5177
+ return z(r, e, "Url"), null;
5178
5178
  };
5179
5179
  k6.displayName = "JVR.Url";
5180
5180
  var A6 = (e) => {
@@ -5209,7 +5209,7 @@ var ve = ["className", "style", "value", "children", "collapsed", "shouldExpandN
5209
5209
  backgroundColor: "var(--w-rjv-background-color, #00000000)",
5210
5210
  fontSize: 13
5211
5211
  }, a), M = ["w-json-view-container", "w-rjv", t].filter(Boolean).join(" ");
5212
- return /* @__PURE__ */ v(A2, {
5212
+ return /* @__PURE__ */ y(A2, {
5213
5213
  initialState: {
5214
5214
  value: o,
5215
5215
  objectSortKeys: f,
@@ -5336,7 +5336,7 @@ const C9 = ({
5336
5336
  `);
5337
5337
  return /* @__PURE__ */ n("div", { className: "p-4 overflow-auto text-left", children: C.map((d, h) => {
5338
5338
  const g = h + 1;
5339
- return /* @__PURE__ */ v("div", { className: "flex items-start", style: { minHeight: "20px" }, children: [
5339
+ return /* @__PURE__ */ y("div", { className: "flex items-start", style: { minHeight: "20px" }, children: [
5340
5340
  t && /* @__PURE__ */ n(
5341
5341
  "span",
5342
5342
  {
@@ -5368,7 +5368,7 @@ const C9 = ({
5368
5368
  ] }, h);
5369
5369
  }) });
5370
5370
  };
5371
- return /* @__PURE__ */ v(
5371
+ return /* @__PURE__ */ y(
5372
5372
  "div",
5373
5373
  {
5374
5374
  className: `border rounded-lg overflow-hidden ${a}`,
@@ -5426,7 +5426,7 @@ const C9 = ({
5426
5426
  selectedItem: t,
5427
5427
  disabled: a = !1,
5428
5428
  error: o = !1
5429
- }) => /* @__PURE__ */ v(
5429
+ }) => /* @__PURE__ */ y(
5430
5430
  "button",
5431
5431
  {
5432
5432
  type: "button",
@@ -5472,7 +5472,7 @@ const C9 = ({
5472
5472
  children: /* @__PURE__ */ n("div", { className: "flex-1 flex items-center gap-3", children: /* @__PURE__ */ n("div", { className: "flex-1", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2.5", children: /* @__PURE__ */ n("span", { className: `text-[15px] font-normal ${o}`, children: e.label }) }) }) })
5473
5473
  }
5474
5474
  );
5475
- }, ke = ({ items: e, onItemSelected: r, selectedItem: t }) => /* @__PURE__ */ n("div", { className: "absolute top-full left-0 right-0 mt-2 bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] rounded-xl shadow-[0px_2px_5px_0px_var(--malachite-card-shadow)] z-50 max-h-[400px] overflow-hidden", children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-1 p-[6px] max-h-[400px] overflow-y-auto", children: e.map((a, o) => /* @__PURE__ */ v(G1.Fragment, { children: [
5475
+ }, ke = ({ items: e, onItemSelected: r, selectedItem: t }) => /* @__PURE__ */ n("div", { className: "absolute top-full left-0 right-0 mt-2 bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] rounded-xl shadow-[0px_2px_5px_0px_var(--malachite-card-shadow)] z-50 max-h-[400px] overflow-hidden", children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-1 p-[6px] max-h-[400px] overflow-y-auto", children: e.map((a, o) => /* @__PURE__ */ y(G1.Fragment, { children: [
5476
5476
  /* @__PURE__ */ n(
5477
5477
  xe,
5478
5478
  {
@@ -5506,7 +5506,7 @@ const C9 = ({
5506
5506
  w && k.current && !k.current.contains(G.target) && f(!1);
5507
5507
  };
5508
5508
  return document.addEventListener("click", M), () => document.removeEventListener("click", M);
5509
- }, [w]), /* @__PURE__ */ v(
5509
+ }, [w]), /* @__PURE__ */ y(
5510
5510
  g5,
5511
5511
  {
5512
5512
  label: i,
@@ -5519,7 +5519,7 @@ const C9 = ({
5519
5519
  description: u,
5520
5520
  loadingComponent: /* @__PURE__ */ n(E6, { size: "medium" }),
5521
5521
  children: [
5522
- /* @__PURE__ */ v("div", { ref: k, className: "relative w-full", children: [
5522
+ /* @__PURE__ */ y("div", { ref: k, className: "relative w-full", children: [
5523
5523
  /* @__PURE__ */ n(
5524
5524
  ye,
5525
5525
  {
@@ -5609,7 +5609,7 @@ const h9 = ({
5609
5609
  }, u9 = ({
5610
5610
  fullWidth: e = !1,
5611
5611
  showDocsSupport: r = !1
5612
- }) => /* @__PURE__ */ v(
5612
+ }) => /* @__PURE__ */ y(
5613
5613
  L1,
5614
5614
  {
5615
5615
  direction: "horizontal",
@@ -5630,7 +5630,7 @@ const h9 = ({
5630
5630
  }
5631
5631
  }
5632
5632
  ) }),
5633
- r ? /* @__PURE__ */ v(L1, { direction: "horizontal", size: 10, children: [
5633
+ r ? /* @__PURE__ */ y(L1, { direction: "horizontal", size: 10, children: [
5634
5634
  /* @__PURE__ */ n(
5635
5635
  w1,
5636
5636
  {
@@ -5656,7 +5656,7 @@ const h9 = ({
5656
5656
  children: "Support"
5657
5657
  }
5658
5658
  )
5659
- ] }) : /* @__PURE__ */ v(L1, { direction: "horizontal", size: 10, children: [
5659
+ ] }) : /* @__PURE__ */ y(L1, { direction: "horizontal", size: 10, children: [
5660
5660
  /* @__PURE__ */ n(
5661
5661
  w1,
5662
5662
  {
@@ -5868,7 +5868,7 @@ const Le = `
5868
5868
  }
5869
5869
  }
5870
5870
  }
5871
- }, [r]), t ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */ v(D1, { children: [
5871
+ }, [r]), t ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */ y(D1, { children: [
5872
5872
  /* @__PURE__ */ n("div", { ref: o, style: { display: "none" } }),
5873
5873
  R5(e, t)
5874
5874
  ] })) : (console.log("[ShadowEscape] No portal container yet, rendering marker..."), /* @__PURE__ */ n("div", { ref: o, style: { display: "none" } }));
@@ -6945,7 +6945,7 @@ const Se = ({ children: e }) => {
6945
6945
  {
6946
6946
  className: `flex items-center justify-center ${s} ${r}`,
6947
6947
  style: t,
6948
- children: /* @__PURE__ */ v(
6948
+ children: /* @__PURE__ */ y(
6949
6949
  "svg",
6950
6950
  {
6951
6951
  className: `animate-spin ${i}`,
@@ -7005,7 +7005,7 @@ const Se = ({ children: e }) => {
7005
7005
  onBlur: D,
7006
7006
  helperText: R
7007
7007
  }) => {
7008
- const [j, Y] = $(!1), [y, x] = $(w || ""), z = (O) => {
7008
+ const [j, Y] = $(!1), [v, x] = $(w || ""), q = (O) => {
7009
7009
  const U = O.target.value;
7010
7010
  x(U), G == null || G(U);
7011
7011
  }, L = (O) => {
@@ -7042,7 +7042,7 @@ const Se = ({ children: e }) => {
7042
7042
  borderRadius: "rounded-[12px]"
7043
7043
  };
7044
7044
  }
7045
- }, c1 = g === "password" ? j ? "text" : "password" : g, S = o || E || A, p1 = c || M && f && y || (B == null ? void 0 : B.length) || g === "password", h1 = l1(b, c), n1 = [
7045
+ }, c1 = g === "password" ? j ? "text" : "password" : g, P = o || E || A, p1 = c || M && f && v || (B == null ? void 0 : B.length) || g === "password", h1 = l1(b, c), n1 = [
7046
7046
  "relative",
7047
7047
  "flex items-center",
7048
7048
  "w-full",
@@ -7053,7 +7053,7 @@ const Se = ({ children: e }) => {
7053
7053
  ...f ? [] : h1.wrapper,
7054
7054
  L(u).split(" ").find((O) => O.startsWith("h-")) || "h-10"
7055
7055
  ].filter(Boolean).join(" ");
7056
- return /* @__PURE__ */ v(
7056
+ return /* @__PURE__ */ y(
7057
7057
  g5,
7058
7058
  {
7059
7059
  label: e,
@@ -7066,8 +7066,8 @@ const Se = ({ children: e }) => {
7066
7066
  description: C,
7067
7067
  loadingComponent: /* @__PURE__ */ n(E6, { size: u }),
7068
7068
  children: [
7069
- /* @__PURE__ */ v("div", { className: n1, children: [
7070
- S && /* @__PURE__ */ n("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
7069
+ /* @__PURE__ */ y("div", { className: n1, children: [
7070
+ P && /* @__PURE__ */ n("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
7071
7071
  Ge,
7072
7072
  {
7073
7073
  prefixValue: E,
@@ -7080,8 +7080,8 @@ const Se = ({ children: e }) => {
7080
7080
  {
7081
7081
  type: c1,
7082
7082
  placeholder: a,
7083
- value: y,
7084
- onChange: z,
7083
+ value: v,
7084
+ onChange: q,
7085
7085
  onBlur: D,
7086
7086
  disabled: f || h,
7087
7087
  readOnly: h,
@@ -7090,7 +7090,7 @@ const Se = ({ children: e }) => {
7090
7090
  name: i
7091
7091
  }
7092
7092
  ),
7093
- p1 && /* @__PURE__ */ v(
7093
+ p1 && /* @__PURE__ */ y(
7094
7094
  "div",
7095
7095
  {
7096
7096
  className: `flex items-center pl-1 flex-shrink-0 ${g === "password" ? "pr-0" : "pr-3"}`,
@@ -7100,7 +7100,7 @@ const Se = ({ children: e }) => {
7100
7100
  {
7101
7101
  error: c,
7102
7102
  disabled: f,
7103
- defaultValue: y,
7103
+ defaultValue: v,
7104
7104
  onCopyClick: M,
7105
7105
  type: g,
7106
7106
  showPassword: j,
@@ -7116,11 +7116,11 @@ const Se = ({ children: e }) => {
7116
7116
  ]
7117
7117
  }
7118
7118
  );
7119
- }, Ge = ({ prefixValue: e, prefixSecondaryValue: r, icon: t }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
7119
+ }, Ge = ({ prefixValue: e, prefixSecondaryValue: r, icon: t }) => /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
7120
7120
  t && /* @__PURE__ */ n("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0", children: t }),
7121
7121
  e && /* @__PURE__ */ n("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
7122
7122
  r && /* @__PURE__ */ n("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: r })
7123
- ] }), He = ({ error: e, disabled: r, defaultValue: t, onCopyClick: a, type: o, showPassword: i, onTogglePassword: s }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
7123
+ ] }), He = ({ error: e, disabled: r, defaultValue: t, onCopyClick: a, type: o, showPassword: i, onTogglePassword: s }) => /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
7124
7124
  e && /* @__PURE__ */ n("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0", children: /* @__PURE__ */ n(
7125
7125
  W.InfoIcon,
7126
7126
  {
@@ -7193,9 +7193,9 @@ const Se = ({ children: e }) => {
7193
7193
  maxLength: R,
7194
7194
  resize: j = "vertical"
7195
7195
  }) => {
7196
- const [Y, y] = $(u || ""), x = M !== void 0 ? M : Y, z = M !== void 0, L = (n1) => {
7196
+ const [Y, v] = $(u || ""), x = M !== void 0 ? M : Y, q = M !== void 0, L = (n1) => {
7197
7197
  const O = n1.target.value;
7198
- z || y(O), B == null || B(O);
7198
+ q || v(O), B == null || B(O);
7199
7199
  }, l1 = (n1) => {
7200
7200
  switch (n1) {
7201
7201
  case "small":
@@ -7218,7 +7218,7 @@ const Se = ({ children: e }) => {
7218
7218
  large: 24
7219
7219
  }[n1];
7220
7220
  return `${U * O + D6}px`;
7221
- }, S = o || w || f, p1 = c || k && b && x || (A == null ? void 0 : A.length);
7221
+ }, P = o || w || f, p1 = c || k && b && x || (A == null ? void 0 : A.length);
7222
7222
  return /* @__PURE__ */ n(
7223
7223
  g5,
7224
7224
  {
@@ -7274,8 +7274,8 @@ const Se = ({ children: e }) => {
7274
7274
  name: i
7275
7275
  }
7276
7276
  );
7277
- return /* @__PURE__ */ v("div", { className: n1, children: [
7278
- S && /* @__PURE__ */ n("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
7277
+ return /* @__PURE__ */ y("div", { className: n1, children: [
7278
+ P && /* @__PURE__ */ n("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ n(
7279
7279
  Ke,
7280
7280
  {
7281
7281
  prefixValue: w,
@@ -7284,7 +7284,7 @@ const Se = ({ children: e }) => {
7284
7284
  }
7285
7285
  ) }),
7286
7286
  U,
7287
- p1 && /* @__PURE__ */ v("div", { className: "flex pt-3 pl-1 pr-3 flex-shrink-0", children: [
7287
+ p1 && /* @__PURE__ */ y("div", { className: "flex pt-3 pl-1 pr-3 flex-shrink-0", children: [
7288
7288
  /* @__PURE__ */ n(
7289
7289
  Ye,
7290
7290
  {
@@ -7320,11 +7320,11 @@ const Se = ({ children: e }) => {
7320
7320
  return `${i * o + s}px`;
7321
7321
  })(e, r) }
7322
7322
  }
7323
- ), Ke = ({ prefixValue: e, prefixSecondaryValue: r, icon: t }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
7323
+ ), Ke = ({ prefixValue: e, prefixSecondaryValue: r, icon: t }) => /* @__PURE__ */ y("div", { className: "flex items-start gap-1", children: [
7324
7324
  t && /* @__PURE__ */ n("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0 mt-1", children: t }),
7325
7325
  e && /* @__PURE__ */ n("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
7326
7326
  r && /* @__PURE__ */ n("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: r })
7327
- ] }), Ye = ({ error: e, disabled: r, defaultValue: t, onCopyClick: a }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
7327
+ ] }), Ye = ({ error: e, disabled: r, defaultValue: t, onCopyClick: a }) => /* @__PURE__ */ y("div", { className: "flex items-start gap-1", children: [
7328
7328
  e && /* @__PURE__ */ n("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0 mt-1", children: /* @__PURE__ */ n(
7329
7329
  W.InfoIcon,
7330
7330
  {
@@ -7430,7 +7430,7 @@ const Se = ({ children: e }) => {
7430
7430
  a ? "cursor-pointer" : `cursor-${h}`,
7431
7431
  g
7432
7432
  ].filter(Boolean).join(" "), w = qe(r, t, o, c);
7433
- return /* @__PURE__ */ v(
7433
+ return /* @__PURE__ */ y(
7434
7434
  "div",
7435
7435
  {
7436
7436
  className: b,
@@ -7468,16 +7468,16 @@ const Se = ({ children: e }) => {
7468
7468
  style: A
7469
7469
  }) => {
7470
7470
  var Y;
7471
- const [k, B] = $(null), M = H1(() => k ? [...r].sort((y, x) => {
7472
- const z = y[k.key], L = x[k.key], l1 = z, c1 = L;
7471
+ const [k, B] = $(null), M = H1(() => k ? [...r].sort((v, x) => {
7472
+ const q = v[k.key], L = x[k.key], l1 = q, c1 = L;
7473
7473
  return l1 < c1 ? k.direction === "asc" ? -1 : 1 : l1 > c1 ? k.direction === "asc" ? 1 : -1 : 0;
7474
- }) : r, [r, k]), G = (y) => {
7475
- B((x) => (x == null ? void 0 : x.key) === y ? x.direction === "asc" ? { key: y, direction: "desc" } : null : { key: y, direction: "asc" });
7476
- }, D = (y, x) => typeof C == "function" ? C(y) : String(y[C] || x), R = (y, x, z) => {
7477
- const L = x[y.dataIndex];
7478
- return y.render ? y.render(L, x, z) : String(L);
7479
- }, j = (y) => {
7480
- const x = y.sorter, L = (k == null ? void 0 : k.key) === y.key ? k == null ? void 0 : k.direction : null;
7474
+ }) : r, [r, k]), G = (v) => {
7475
+ B((x) => (x == null ? void 0 : x.key) === v ? x.direction === "asc" ? { key: v, direction: "desc" } : null : { key: v, direction: "asc" });
7476
+ }, D = (v, x) => typeof C == "function" ? C(v) : String(v[C] || x), R = (v, x, q) => {
7477
+ const L = x[v.dataIndex];
7478
+ return v.render ? v.render(L, x, q) : String(L);
7479
+ }, j = (v) => {
7480
+ const x = v.sorter, L = (k == null ? void 0 : k.key) === v.key ? k == null ? void 0 : k.direction : null;
7481
7481
  return /* @__PURE__ */ n(
7482
7482
  "th",
7483
7483
  {
@@ -7485,13 +7485,14 @@ const Se = ({ children: e }) => {
7485
7485
  table-header table-cell px-4 py-4 text-left font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
7486
7486
  ${q1(h)}
7487
7487
  ${x ? "cursor-pointer hover:opacity-80" : ""}
7488
- ${y.align === "center" ? "text-center" : "text-left"}
7489
- ${y.align === "right" ? "text-right" : ""}
7488
+ ${v.align === "center" ? "text-center" : "text-left"}
7489
+ ${v.align === "right" ? "text-right" : ""}
7490
7490
  `,
7491
- onClick: x ? () => G(y.key) : void 0,
7492
- children: /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
7493
- /* @__PURE__ */ n("span", { children: y.title }),
7494
- x && /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
7491
+ style: { width: v.width },
7492
+ onClick: x ? () => G(v.key) : void 0,
7493
+ children: /* @__PURE__ */ y("div", { className: "flex items-center gap-2", children: [
7494
+ /* @__PURE__ */ n("span", { children: v.title }),
7495
+ x && /* @__PURE__ */ y("div", { className: "flex flex-col", children: [
7495
7496
  /* @__PURE__ */ n(
7496
7497
  "svg",
7497
7498
  {
@@ -7513,7 +7514,7 @@ const Se = ({ children: e }) => {
7513
7514
  ] })
7514
7515
  ] })
7515
7516
  },
7516
- y.key
7517
+ v.key
7517
7518
  );
7518
7519
  };
7519
7520
  return a ? /* @__PURE__ */ n("div", { className: "w-full", style: { ...A }, children: /* @__PURE__ */ n(
@@ -7523,33 +7524,34 @@ const Se = ({ children: e }) => {
7523
7524
  style: {
7524
7525
  ...d ? { maxHeight: d } : {}
7525
7526
  },
7526
- children: /* @__PURE__ */ v(
7527
+ children: /* @__PURE__ */ y(
7527
7528
  "table",
7528
7529
  {
7529
7530
  className: "w-full border-collapse rounded-lg overflow-hidden",
7530
7531
  children: [
7531
- c && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((y) => /* @__PURE__ */ n(
7532
+ c && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((v) => /* @__PURE__ */ n(
7532
7533
  "th",
7533
7534
  {
7534
7535
  className: `
7535
7536
  table-header table-cell px-4 py-4 text-left font-semibold border-0 first:rounded-tl-lg last:rounded-tr-lg
7536
7537
  ${s ? "table-cell-bordered table-cell-bordered-top" : ""}
7537
- ${s && y === e[0] ? "table-cell-bordered-left" : ""}
7538
- ${s && y === e[e.length - 1] ? "table-cell-bordered-right" : ""}
7538
+ ${s && v === e[0] ? "table-cell-bordered-left" : ""}
7539
+ ${s && v === e[e.length - 1] ? "table-cell-bordered-right" : ""}
7539
7540
  ${q1(h)}
7540
- ${y.align === "center" ? "text-center" : "text-left"}
7541
- ${y.align === "right" ? "text-right" : ""}
7541
+ ${v.align === "center" ? "text-center" : "text-left"}
7542
+ ${v.align === "right" ? "text-right" : ""}
7542
7543
  `,
7543
- children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ n("span", { children: y.title }) })
7544
+ style: { width: v.width },
7545
+ children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ n("span", { children: v.title }) })
7544
7546
  },
7545
- y.key
7547
+ v.key
7546
7548
  )) }) }),
7547
7549
  /* @__PURE__ */ n("tbody", { children: /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n(
7548
7550
  "td",
7549
7551
  {
7550
7552
  colSpan: e.length + (w ? 1 : 0),
7551
7553
  className: "px-4 py-12 text-center",
7552
- children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
7554
+ children: /* @__PURE__ */ y("div", { className: "flex flex-col items-center justify-center", children: [
7553
7555
  /* @__PURE__ */ n("div", { className: "table-error-icon w-12 h-12 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ n(
7554
7556
  "svg",
7555
7557
  {
@@ -7568,7 +7570,7 @@ const Se = ({ children: e }) => {
7568
7570
  }
7569
7571
  )
7570
7572
  }
7571
- ) }) : /* @__PURE__ */ v("div", { className: `w-full ${E}`, style: { ...A }, children: [
7573
+ ) }) : /* @__PURE__ */ y("div", { className: `w-full ${E}`, style: { ...A }, children: [
7572
7574
  /* @__PURE__ */ n(
7573
7575
  "div",
7574
7576
  {
@@ -7581,55 +7583,55 @@ const Se = ({ children: e }) => {
7581
7583
  style: {
7582
7584
  ...d ? { maxHeight: d } : {}
7583
7585
  },
7584
- children: /* @__PURE__ */ v(
7586
+ children: /* @__PURE__ */ y(
7585
7587
  "table",
7586
7588
  {
7587
- className: `w-full ${g === "fixed" ? "table-fixed" : "table-auto"} ${s ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
7589
+ className: `w-full ${g === "fixed" || e.some((v) => v.width) ? "table-fixed" : "table-auto"} ${s ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
7588
7590
  style: { borderSpacing: "0" },
7589
7591
  children: [
7590
- c && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((y) => j(y)) }) }),
7592
+ c && /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: e.map((v) => j(v)) }) }),
7591
7593
  /* @__PURE__ */ n("tbody", { children: t ? (
7592
7594
  // Loading skeleton
7593
- Array.from({ length: 5 }).map((y, x) => /* @__PURE__ */ n(
7595
+ Array.from({ length: 5 }).map((v, x) => /* @__PURE__ */ n(
7594
7596
  "tr",
7595
7597
  {
7596
7598
  className: `table-row ${s ? "table-row-bordered" : ""}`,
7597
- children: e.map((z) => /* @__PURE__ */ n("td", { className: "table-cell px-4 py-4 text-left", children: /* @__PURE__ */ n("div", { className: "h-4 bg-gray-200 rounded animate-pulse" }) }, z.key))
7599
+ children: e.map((q) => /* @__PURE__ */ n("td", { className: "table-cell px-4 py-4 text-left", style: { width: q.width }, children: /* @__PURE__ */ n("div", { className: "h-4 bg-gray-200 rounded animate-pulse" }) }, q.key))
7598
7600
  },
7599
7601
  x
7600
7602
  ))
7601
- ) : M.map((y, x) => {
7602
- const z = D(y, x), L = (b == null ? void 0 : b(y, x)) || {}, l1 = x === 0, c1 = x === r.length - 1;
7603
+ ) : M.map((v, x) => {
7604
+ const q = D(v, x), L = (b == null ? void 0 : b(v, x)) || {}, l1 = x === 0, c1 = x === r.length - 1;
7603
7605
  return /* @__PURE__ */ n(
7604
7606
  "tr",
7605
7607
  {
7606
7608
  className: `
7607
7609
  ${s ? "table-row-bordered" : "table-row hover:opacity-80"}
7608
- ${(u == null ? void 0 : u(y, x)) || ""}
7610
+ ${(u == null ? void 0 : u(v, x)) || ""}
7609
7611
  ${L.onClick ? "cursor-pointer" : ""}
7610
7612
  `,
7611
7613
  onClick: L.onClick ? () => {
7612
- var S;
7613
- return (S = L.onClick) == null ? void 0 : S.call(L, y, x);
7614
+ var P;
7615
+ return (P = L.onClick) == null ? void 0 : P.call(L, v, x);
7614
7616
  } : void 0,
7615
7617
  onDoubleClick: L.onDoubleClick ? () => {
7616
- var S;
7617
- return (S = L.onDoubleClick) == null ? void 0 : S.call(L, y, x);
7618
+ var P;
7619
+ return (P = L.onDoubleClick) == null ? void 0 : P.call(L, v, x);
7618
7620
  } : void 0,
7619
7621
  onContextMenu: L.onContextMenu ? () => {
7620
- var S;
7621
- return (S = L.onContextMenu) == null ? void 0 : S.call(L, y, x);
7622
+ var P;
7623
+ return (P = L.onContextMenu) == null ? void 0 : P.call(L, v, x);
7622
7624
  } : void 0,
7623
7625
  onMouseEnter: L.onMouseEnter ? () => {
7624
- var S;
7625
- return (S = L.onMouseEnter) == null ? void 0 : S.call(L, y, x);
7626
+ var P;
7627
+ return (P = L.onMouseEnter) == null ? void 0 : P.call(L, v, x);
7626
7628
  } : void 0,
7627
7629
  onMouseLeave: L.onMouseLeave ? () => {
7628
- var S;
7629
- return (S = L.onMouseLeave) == null ? void 0 : S.call(L, y, x);
7630
+ var P;
7631
+ return (P = L.onMouseLeave) == null ? void 0 : P.call(L, v, x);
7630
7632
  } : void 0,
7631
- children: e.map((S) => {
7632
- const p1 = S === e[0], h1 = S === e[e.length - 1];
7633
+ children: e.map((P) => {
7634
+ const p1 = P === e[0], h1 = P === e[e.length - 1];
7633
7635
  return /* @__PURE__ */ n(
7634
7636
  "td",
7635
7637
  {
@@ -7643,16 +7645,17 @@ const Se = ({ children: e }) => {
7643
7645
  ${s && h1 && l1 ? "rounded-tr-lg" : ""}
7644
7646
  ${s && p1 && c1 ? "rounded-bl-lg" : ""}
7645
7647
  ${s && h1 && c1 ? "rounded-br-lg" : ""}
7646
- ${S.align === "center" ? "text-center" : "text-left"}
7647
- ${S.align === "right" ? "text-right" : ""}
7648
+ ${P.align === "center" ? "text-center" : "text-left"}
7649
+ ${P.align === "right" ? "text-right" : ""}
7648
7650
  `,
7649
- children: R(S, y, x)
7651
+ style: { width: P.width },
7652
+ children: R(P, v, x)
7650
7653
  },
7651
- S.key
7654
+ P.key
7652
7655
  );
7653
7656
  })
7654
7657
  },
7655
- z
7658
+ q
7656
7659
  );
7657
7660
  }) })
7658
7661
  ]
@@ -7662,38 +7665,38 @@ const Se = ({ children: e }) => {
7662
7665
  )
7663
7666
  }
7664
7667
  ),
7665
- f && !t && /* @__PURE__ */ v("div", { className: "mt-4 flex items-center justify-between", children: [
7668
+ f && !t && /* @__PURE__ */ y("div", { className: "mt-4 flex items-center justify-between", children: [
7666
7669
  /* @__PURE__ */ n("div", { className: "table-pagination-text text-sm", children: f.showTotal && f.total && f.showTotal(f.total, [1, f.total]) }),
7667
- /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
7670
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-2", children: [
7668
7671
  f.showSizeChanger && /* @__PURE__ */ n(
7669
7672
  "select",
7670
7673
  {
7671
7674
  className: "table-pagination-select px-3 py-1 rounded-md text-sm",
7672
7675
  value: f.pageSize,
7673
- onChange: (y) => {
7676
+ onChange: (v) => {
7674
7677
  var x;
7675
- (x = f.onShowSizeChange) == null || x.call(f, f.current || 1, parseInt(y.target.value));
7678
+ (x = f.onShowSizeChange) == null || x.call(f, f.current || 1, parseInt(v.target.value));
7676
7679
  },
7677
- children: (Y = f.pageSizeOptions) == null ? void 0 : Y.map((y) => /* @__PURE__ */ v("option", { value: y, children: [
7678
- y,
7680
+ children: (Y = f.pageSizeOptions) == null ? void 0 : Y.map((v) => /* @__PURE__ */ y("option", { value: v, children: [
7681
+ v,
7679
7682
  " per page"
7680
- ] }, y))
7683
+ ] }, v))
7681
7684
  }
7682
7685
  ),
7683
- /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
7686
+ /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
7684
7687
  /* @__PURE__ */ n(
7685
7688
  "button",
7686
7689
  {
7687
7690
  className: "table-pagination-button px-3 py-1 rounded-md text-sm",
7688
7691
  disabled: !f.current || f.current <= 1,
7689
7692
  onClick: () => {
7690
- var y;
7691
- f.current && f.pageSize && ((y = f.onChange) == null || y.call(f, f.current - 1, f.pageSize));
7693
+ var v;
7694
+ f.current && f.pageSize && ((v = f.onChange) == null || v.call(f, f.current - 1, f.pageSize));
7692
7695
  },
7693
7696
  children: "Previous"
7694
7697
  }
7695
7698
  ),
7696
- /* @__PURE__ */ v("span", { className: "table-pagination-text px-3 py-1 text-sm", children: [
7699
+ /* @__PURE__ */ y("span", { className: "table-pagination-text px-3 py-1 text-sm", children: [
7697
7700
  "Page ",
7698
7701
  f.current,
7699
7702
  " of ",
@@ -7705,8 +7708,8 @@ const Se = ({ children: e }) => {
7705
7708
  className: "table-pagination-button px-3 py-1 rounded-md text-sm",
7706
7709
  disabled: !f.current || f.current >= Math.ceil((f.total || 0) / (f.pageSize || 10)),
7707
7710
  onClick: () => {
7708
- var y;
7709
- f.current && f.pageSize && ((y = f.onChange) == null || y.call(f, f.current + 1, f.pageSize));
7711
+ var v;
7712
+ f.current && f.pageSize && ((v = f.onChange) == null || v.call(f, f.current + 1, f.pageSize));
7710
7713
  },
7711
7714
  children: "Next"
7712
7715
  }