@selectwin/kit 0.1.161 → 0.1.163

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
@@ -501,22 +501,22 @@ var A = (e) => {
501
501
  w(),
502
502
  w(),
503
503
  w()
504
- ], E = T[0], D = null, O = null, k = null, A = null, j = /* @__PURE__ */ new Float32Array(), M = 0, N = 0, P = 0, R = 0, V = 0, H = 0;
505
- function ne() {
504
+ ], E = T[0], D = null, O = null, k = null, A = null, j = /* @__PURE__ */ new Float32Array(), M = 0, N = 0, P = 0, R = 0, V = 0, ne = 0;
505
+ function re() {
506
506
  let t = Math.max(e.w(), 1), n = Math.max(e.h(), 1);
507
- P = (t * Math.abs(m) + n * Math.abs(h)) / 2, R = (t * Math.abs(h) + n * Math.abs(m)) / 2, V = Math.min(1, Math.sqrt(42e4 / (4 * P * R))), M = Math.max(2, Math.round(2 * P * V)), N = Math.max(2, Math.round(2 * R * V)), H = Math.min(2.6, Math.max(.7, .62 / V)), D || (D = document.createElement("canvas")), D.width = M, D.height = N, O = D.getContext("2d"), k = (O == null ? void 0 : O.createImageData(M, N)) ?? null, A = k ? new Uint32Array(k.data.buffer) : null, j = new Float32Array(M);
507
+ P = (t * Math.abs(m) + n * Math.abs(h)) / 2, R = (t * Math.abs(h) + n * Math.abs(m)) / 2, V = Math.min(1, Math.sqrt(42e4 / (4 * P * R))), M = Math.max(2, Math.round(2 * P * V)), N = Math.max(2, Math.round(2 * R * V)), ne = Math.min(2.6, Math.max(.7, .62 / V)), D || (D = document.createElement("canvas")), D.width = M, D.height = N, O = D.getContext("2d"), k = (O == null ? void 0 : O.createImageData(M, N)) ?? null, A = k ? new Uint32Array(k.data.buffer) : null, j = new Float32Array(M);
508
508
  }
509
- let U = 1, re = 0, ie = 0, W = 0, G = 0, K = 1, q = 0, ae = 0, oe = 0, se = 0, J = I.TENSION, ce = (e, t, r, i, a) => {
510
- let o = e * U + t * re, s = -e * re + t * U - ie, c = r * U + i * re, l = -r * re + i * U;
509
+ let H = 1, ie = 0, ae = 0, U = 0, W = 0, G = 1, K = 0, q = 0, oe = 0, se = 0, J = I.TENSION, ce = (e, t, r, i, a) => {
510
+ let o = e * H + t * ie, s = -e * ie + t * H - ae, c = r * H + i * ie, l = -r * ie + i * H;
511
511
  l < 0 && (c = -c, l = -l);
512
512
  let p = I.CAM - s;
513
513
  if (p < n) {
514
- E.x[q] = NaN, E.z[q] = -1e9, E.a[q] = 0, E.lift[q] = 0, q++;
514
+ E.x[K] = NaN, E.z[K] = -1e9, E.a[K] = 0, E.lift[K] = 0, K++;
515
515
  return;
516
516
  }
517
517
  let g = (p - n) * .5263157894736842;
518
518
  g > 1 && (g = 1);
519
- let y = g * g * (3 - 2 * g), b = o * I.FOCAL / p * se + M * .5, x = -o, S = -W, C = p, w = 1 / Math.sqrt(x * x + S * S + C * C);
519
+ let y = g * g * (3 - 2 * g), b = o * I.FOCAL / p * se + M * .5, x = -o, S = -U, C = p, w = 1 / Math.sqrt(x * x + S * S + C * C);
520
520
  x *= w, S *= w, C *= w;
521
521
  let T = c * x + l * C;
522
522
  T < 0 && (T = 0);
@@ -528,10 +528,10 @@ var A = (e) => {
528
528
  A = v[0] + x, j = v[1] + S, N = v[2] + C, P = 1 / Math.sqrt(A * A + j * j + N * N), F = (c * A + l * N) * P, F < 0 && (F = 0);
529
529
  let B = F * F, ee = B * B, te = ee * ee, V = (-(-x + 2 * T * c) * h - S * m + .2) * .8333333333333334;
530
530
  V < 0 ? V = 0 : V > 1 && (V = 1);
531
- let H = V * V * (3 - 2 * V), ne = z * .9 + te * .45, G = k * .55 + ne;
532
- G > 1 && (G = 1), E.lift[q] = G, E.a[q] = (u + d * k + f * ne + H * .06) * a * K * y, E.x[q] = b, E.z[q] = s, b < ae && (ae = b), b > oe && (oe = b), q++;
531
+ let ne = V * V * (3 - 2 * V), re = z * .9 + te * .45, W = k * .55 + re;
532
+ W > 1 && (W = 1), E.lift[K] = W, E.a[K] = (u + d * k + f * re + ne * .06) * a * G * y, E.x[K] = b, E.z[K] = s, b < q && (q = b), b > oe && (oe = b), K++;
533
533
  }, le = (e, t) => {
534
- let n = e * G, r = Math.cos(n), i = -Math.sin(n) * J, a = 1 / Math.sqrt(J * J * r * r + 1), o = J * r * a, s = a;
534
+ let n = e * W, r = Math.cos(n), i = -Math.sin(n) * J, a = 1 / Math.sqrt(J * J * r * r + 1), o = J * r * a, s = a;
535
535
  for (let r = 0; r < 14; r++) {
536
536
  let a = t ? 13 - r : r, c = y[a], l = b[a], u = o * c + e * s * l, d = -e * o * l + s * c;
537
537
  ce(n + I.ROUND * (u - o), i + I.ROUND * (d - s), u, d, x[a]);
@@ -539,19 +539,19 @@ var A = (e) => {
539
539
  };
540
540
  function ue(t, n, r) {
541
541
  let i = Math.max(e.h(), 1), a = r * I.TWIST_SPEED * .15, o = r * I.TWIST_SPEED * .2, s = -((t + .5) / N * 2 * R - R) / (i * I.ZOOM);
542
- W = s * I.CAM / I.FOCAL;
543
- for (let e = 0; e < 2; e++) W = s * (I.CAM + Math.sin(W * 1.2 + a) * I.BILLOW) / I.FOCAL;
544
- ie = Math.sin(W * 1.2 + a) * I.BILLOW;
545
- let c = W < 0 ? -W : W, l = F(7, 1, c), u = W * S.twist * F(8, 0, c) - o;
546
- U = Math.cos(u), re = Math.sin(u), G = I.WIDTH * l, K = F(.06, .46, U < 0 ? -U : U) * F(0, .06, l), E = n, q = 0, ae = 1e9, oe = -1e9, le(-1, !0);
547
- let d = 2 * G / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-G), h = Math.sin(-G);
542
+ U = s * I.CAM / I.FOCAL;
543
+ for (let e = 0; e < 2; e++) U = s * (I.CAM + Math.sin(U * 1.2 + a) * I.BILLOW) / I.FOCAL;
544
+ ae = Math.sin(U * 1.2 + a) * I.BILLOW;
545
+ let c = U < 0 ? -U : U, l = F(7, 1, c), u = U * S.twist * F(8, 0, c) - o;
546
+ H = Math.cos(u), ie = Math.sin(u), W = I.WIDTH * l, G = F(.06, .46, H < 0 ? -H : H) * F(0, .06, l), E = n, K = 0, q = 1e9, oe = -1e9, le(-1, !0);
547
+ let d = 2 * W / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-W), h = Math.sin(-W);
548
548
  for (let e = 0; e < 108; e++) {
549
549
  let t = 1 / Math.sqrt(J * J * m * m + 1);
550
- ce(-G + e * d, -h * J, J * m * t, t, 1);
550
+ ce(-W + e * d, -h * J, J * m * t, t, 1);
551
551
  let n = m * f - h * p;
552
552
  h = h * f + m * p, m = n;
553
553
  }
554
- le(1, !1), n.minx = ae, n.maxx = oe;
554
+ le(1, !1), n.minx = q, n.maxx = oe;
555
555
  }
556
556
  function de(e, n, r, u, d, f) {
557
557
  let p = A, m = n.minx < r.minx ? n.minx : r.minx, h = u.minx < d.minx ? u.minx : d.minx;
@@ -561,29 +561,29 @@ var A = (e) => {
561
561
  let v = Math.floor(m), y = Math.ceil(g);
562
562
  if (y < 0 || v > M - 1) return;
563
563
  v < 0 && (v = 0), y > M - 1 && (y = M - 1), j.fill(-1e9, v, y + 1);
564
- let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, I = u.z, R = d.z, V = n.lift, H = r.lift, ne = u.lift, U = d.lift, re = n.a, ie = r.a, W = u.a, G = d.a, K = C * D[0] + w * O[0] + T * k[0] + E * N[0], q = C * P[0] + w * F[0] + T * I[0] + E * R[0], ae = C * V[0] + w * H[0] + T * ne[0] + E * U[0], oe = C * re[0] + w * ie[0] + T * W[0] + E * G[0];
564
+ let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, I = u.z, R = d.z, V = n.lift, ne = r.lift, re = u.lift, H = d.lift, ie = n.a, ae = r.a, U = u.a, W = d.a, G = C * D[0] + w * O[0] + T * k[0] + E * N[0], K = C * P[0] + w * F[0] + T * I[0] + E * R[0], q = C * V[0] + w * ne[0] + T * re[0] + E * H[0], oe = C * ie[0] + w * ae[0] + T * U[0] + E * W[0];
565
565
  for (let e = 1; e < 136; e++) {
566
- let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * I[e] + E * R[e], r = C * V[e] + w * H[e] + T * ne[e] + E * U[e], u = C * re[e] + w * ie[e] + T * W[e] + E * G[e];
567
- if (!Number.isNaN(K) && !Number.isNaN(t)) {
568
- let e = Math.max(v, Math.ceil((K < t ? K : t) - .5)), d = Math.min(y, Math.floor((K > t ? K : t) - .5));
566
+ let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * I[e] + E * R[e], r = C * V[e] + w * ne[e] + T * re[e] + E * H[e], u = C * ie[e] + w * ae[e] + T * U[e] + E * W[e];
567
+ if (!Number.isNaN(G) && !Number.isNaN(t)) {
568
+ let e = Math.max(v, Math.ceil((G < t ? G : t) - .5)), d = Math.min(y, Math.floor((G > t ? G : t) - .5));
569
569
  if (d < e) {
570
- let n = Math.floor((K + t) * .5);
570
+ let n = Math.floor((G + t) * .5);
571
571
  n >= v && n <= y && (e = n, d = n);
572
572
  }
573
573
  if (d >= e) {
574
- let f = t - K, m = f === 0 ? 0 : 1 / f, h = n - q, g = r - ae, _ = u - oe;
574
+ let f = t - G, m = f === 0 ? 0 : 1 / f, h = n - K, g = r - q, _ = u - oe;
575
575
  for (let t = e; t <= d; t++) {
576
- let e = (t + .5 - K) * m;
576
+ let e = (t + .5 - G) * m;
577
577
  e < 0 ? e = 0 : e > 1 && (e = 1);
578
- let n = q + h * e;
578
+ let n = K + h * e;
579
579
  if (n <= j[t]) continue;
580
580
  j[t] = n;
581
- let r = ae + g * e;
581
+ let r = q + g * e;
582
582
  p[b + t] = L(i + s * r) << z | L(a + c * r) << B | L(o + l * r) << ee | L(oe + _ * e) << te;
583
583
  }
584
584
  }
585
585
  }
586
- K = t, q = n, ae = r, oe = u;
586
+ G = t, K = n, q = r, oe = u;
587
587
  }
588
588
  let se = -1, J = -1;
589
589
  for (let e = v; e <= y; e++) if ((p[b + e] >>> te & 255) > 0) {
@@ -621,10 +621,10 @@ var A = (e) => {
621
621
  }
622
622
  function pe(t) {
623
623
  let { ctx: n } = e, r = e.w(), i = e.h();
624
- n.clearRect(0, 0, r, i), !(!D || M < 2) && (fe(t), n.save(), n.translate(r / 2, i / 2), n.rotate(I.ROT), n.imageSmoothingEnabled = !0, n.imageSmoothingQuality = "high", n.filter = `blur(${H.toFixed(2)}px)`, n.drawImage(D, -P, -R, 2 * P, 2 * R), n.restore());
624
+ n.clearRect(0, 0, r, i), !(!D || M < 2) && (fe(t), n.save(), n.translate(r / 2, i / 2), n.rotate(I.ROT), n.imageSmoothingEnabled = !0, n.imageSmoothingQuality = "high", n.filter = `blur(${ne.toFixed(2)}px)`, n.drawImage(D, -P, -R, 2 * P, 2 * R), n.restore());
625
625
  }
626
626
  return {
627
- build: ne,
627
+ build: re,
628
628
  interactive: !1,
629
629
  frame(t) {
630
630
  C || (C = p.timeline({
@@ -648,7 +648,7 @@ var A = (e) => {
648
648
  };
649
649
  }
650
650
  };
651
- function H({ className: e, theme: t, glowTarget: n, variant: r }) {
651
+ function ne({ className: e, theme: t, glowTarget: n, variant: r }) {
652
652
  let i = d(null);
653
653
  return o(() => {
654
654
  var e, a;
@@ -752,7 +752,7 @@ function H({ className: e, theme: t, glowTarget: n, variant: r }) {
752
752
  }
753
753
  //#endregion
754
754
  //#region src/SelectCard.tsx
755
- var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, children: a, footer: o, className: s, ...c }, l) {
755
+ var re = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, children: a, footer: o, className: s, ...c }, l) {
756
756
  return /* @__PURE__ */ g("div", {
757
757
  ref: l,
758
758
  ...c,
@@ -795,7 +795,7 @@ var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, childr
795
795
  })
796
796
  ]
797
797
  });
798
- }), U = r(function({ variant: e = "primary", type: t = "button", size: n = "md", loading: r = !1, icon: i, trailingIcon: a, inline: o = !1, tone: s, disabled: c, onPointerDown: l, children: u, ...p }, m) {
798
+ }), H = r(function({ variant: e = "primary", type: t = "button", size: n = "md", loading: r = !1, icon: i, trailingIcon: a, inline: o = !1, tone: s, disabled: c, onPointerDown: l, children: u, ...p }, m) {
799
799
  let [_, v] = f([]), y = d(0), b = (e) => {
800
800
  var t, n;
801
801
  if (l == null || l(e), c || r || typeof window < "u" && (t = (n = window).matchMedia) != null && t.call(n, "(prefers-reduced-motion: reduce)").matches) return;
@@ -841,7 +841,7 @@ var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, childr
841
841
  });
842
842
  //#endregion
843
843
  //#region src/icons.tsx
844
- function re() {
844
+ function ie() {
845
845
  return /* @__PURE__ */ g("svg", {
846
846
  viewBox: "0 0 24 24",
847
847
  "aria-hidden": "true",
@@ -865,7 +865,7 @@ function re() {
865
865
  ]
866
866
  });
867
867
  }
868
- function ie() {
868
+ function ae() {
869
869
  return /* @__PURE__ */ h("svg", {
870
870
  viewBox: "0 0 24 24",
871
871
  "aria-hidden": "true",
@@ -875,7 +875,7 @@ function ie() {
875
875
  })
876
876
  });
877
877
  }
878
- function W() {
878
+ function U() {
879
879
  return /* @__PURE__ */ h("svg", {
880
880
  viewBox: "0 0 24 24",
881
881
  fill: "none",
@@ -887,7 +887,7 @@ function W() {
887
887
  children: /* @__PURE__ */ h("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" })
888
888
  });
889
889
  }
890
- function G() {
890
+ function W() {
891
891
  return /* @__PURE__ */ h("svg", {
892
892
  viewBox: "0 0 24 24",
893
893
  fill: "none",
@@ -899,7 +899,7 @@ function G() {
899
899
  children: /* @__PURE__ */ h("path", { d: "M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08" })
900
900
  });
901
901
  }
902
- function K() {
902
+ function G() {
903
903
  return /* @__PURE__ */ h("svg", {
904
904
  viewBox: "0 0 24 24",
905
905
  fill: "none",
@@ -911,7 +911,7 @@ function K() {
911
911
  children: /* @__PURE__ */ h("path", { d: "M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" })
912
912
  });
913
913
  }
914
- function q() {
914
+ function K() {
915
915
  return /* @__PURE__ */ h("svg", {
916
916
  viewBox: "0 0 24 24",
917
917
  fill: "none",
@@ -923,7 +923,7 @@ function q() {
923
923
  children: /* @__PURE__ */ h("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" })
924
924
  });
925
925
  }
926
- function ae() {
926
+ function q() {
927
927
  return /* @__PURE__ */ h("svg", {
928
928
  viewBox: "0 0 24 24",
929
929
  fill: "none",
@@ -2178,8 +2178,16 @@ function Lt() {
2178
2178
  function Rt() {
2179
2179
  return kt(["M6.09 13.28h3.09v7.2c0 1.68.91 2.02 2.02.76l7.57-8.6c.93-1.05.54-1.92-.87-1.92h-3.09v-7.2c0-1.68-.91-2.02-2.02-.76l-7.57 8.6c-.92 1.06-.53 1.92.87 1.92Z"]);
2180
2180
  }
2181
- function zt() {
2182
- return kt(["M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z", "M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8"]);
2181
+ function zt({ solid: e = !1 } = {}) {
2182
+ return e ? /* @__PURE__ */ h("svg", {
2183
+ viewBox: "0 0 24 24",
2184
+ fill: "currentColor",
2185
+ "aria-hidden": "true",
2186
+ children: /* @__PURE__ */ h("path", {
2187
+ fillRule: "evenodd",
2188
+ d: "M16 2H8C4.5 2 3 4 3 7v10c0 3 1.5 5 5 5h8c3.5 0 5-2 5-5V7c0-3-1.5-5-5-5ZM8 8.25h3a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5Zm0 4h4a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5Zm0 4h8a.75.75 0 0 1 0 1.5H8a.75.75 0 0 1 0-1.5Z"
2189
+ })
2190
+ }) : kt(["M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z", "M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8"]);
2183
2191
  }
2184
2192
  function Bt() {
2185
2193
  return /* @__PURE__ */ g("svg", {
@@ -2243,8 +2251,16 @@ function Ut() {
2243
2251
  function Wt() {
2244
2252
  return kt(["M6.76 22h10.48c2.76 0 3.86-1.69 3.99-3.75l.52-8.26A3.753 3.753 0 0 0 17.5 6c-.61 0-1.17-.35-1.45-.89l-.72-1.45C14.87 2.75 13.67 2 12.65 2h-2.29c-1.03 0-2.23.75-2.69 1.66l-.72 1.45C6.67 5.65 6.11 6 5.5 6 3.33 6 1.61 7.83 1.75 9.99l.52 8.26C2.39 20.31 3.5 22 6.26 22ZM10.5 8h3", "M12 18a3.25 3.25 0 1 0 0-6.5 3.25 3.25 0 0 0 0 6.5Z"]);
2245
2253
  }
2246
- function Gt() {
2247
- return kt(["M17 21H7c-4 0-5-1-5-5V8c0-4 1-5 5-5h10c4 0 5 1 5 5v8c0 4-1 5-5 5ZM14 8h5M15 12h4M17 16h2", "M8.5 11.29a1.79 1.79 0 1 0 0-3.58 1.79 1.79 0 0 0 0 3.58ZM12 16.33a3.8 3.8 0 0 0-3.4-3.35 9.8 9.8 0 0 0-2.4 0 3.8 3.8 0 0 0-3.4 3.35"]);
2254
+ function Gt({ solid: e = !1 } = {}) {
2255
+ return e ? /* @__PURE__ */ h("svg", {
2256
+ viewBox: "0 0 24 24",
2257
+ fill: "currentColor",
2258
+ "aria-hidden": "true",
2259
+ children: /* @__PURE__ */ h("path", {
2260
+ fillRule: "evenodd",
2261
+ d: "M17 3H7C3 3 2 4 2 8v8c0 4 1 5 5 5h10c4 0 5-1 5-5V8c0-4-1-5-5-5ZM14 7.25h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1 0-1.5Zm1 4h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1 0-1.5Zm2 4h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5ZM8.5 7.71a1.79 1.79 0 1 1 0 3.58 1.79 1.79 0 0 1 0-3.58Zm-3.3 8.89c.3-1.7 1.6-2.9 3.3-2.9s3 1.2 3.3 2.9H5.2Z"
2262
+ })
2263
+ }) : kt(["M17 21H7c-4 0-5-1-5-5V8c0-4 1-5 5-5h10c4 0 5 1 5 5v8c0 4-1 5-5 5ZM14 8h5M15 12h4M17 16h2", "M8.5 11.29a1.79 1.79 0 1 0 0-3.58 1.79 1.79 0 0 0 0 3.58ZM12 16.33a3.8 3.8 0 0 0-3.4-3.35 9.8 9.8 0 0 0-2.4 0 3.8 3.8 0 0 0-3.4 3.35"]);
2248
2264
  }
2249
2265
  function Kt() {
2250
2266
  return kt(["M10.49 2.23 5.5 4.11c-1.15.43-2.09 1.79-2.09 3.01v7.43c0 1.18.78 2.73 1.73 3.44l4.3 3.21c1.41 1.06 3.73 1.06 5.14 0l4.3-3.21c.95-.71 1.73-2.26 1.73-3.44V7.12c0-1.23-.94-2.59-2.09-3.02l-4.99-1.87c-.85-.31-2.21-.31-3.04 0Z", "m9.05 11.87 1.61 1.61 4.3-4.3"]);
@@ -2682,11 +2698,11 @@ function wn(e, t) {
2682
2698
  });
2683
2699
  }
2684
2700
  var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAction: i, help: a, info: o, description: c, hint: l, error: u, prefix: d, suffix: p, trailingAction: m, mono: _, autoComplete: v, placeholder: y, required: b, disabled: x, readOnly: S, name: C, id: w, minLength: T, maxLength: E, showCount: D = !1, min: O, max: k, step: A, inputMode: j, autoFocus: M, onBlur: N, onKeyDown: P, size: F = "md", className: I, ...L }, R) {
2685
- let z = s(), B = w ?? z, [ee, te] = f(!1), V = r === "password", H = V && ee ? "text" : r, ne = u ? `${B}-err` : l ? `${B}-hint` : void 0, U = d != null || p != null, re = r === "number" && !U && !S, ie = t === "" ? null : Number(t), W = (e) => {
2686
- let t = Number(A ?? 1) || 1, r = (ie != null && Number.isFinite(ie) ? ie : 0) + e * t;
2701
+ let z = s(), B = w ?? z, [ee, te] = f(!1), V = r === "password", ne = V && ee ? "text" : r, re = u ? `${B}-err` : l ? `${B}-hint` : void 0, H = d != null || p != null, ie = r === "number" && !H && !S, ae = t === "" ? null : Number(t), U = (e) => {
2702
+ let t = Number(A ?? 1) || 1, r = (ae != null && Number.isFinite(ae) ? ae : 0) + e * t;
2687
2703
  O != null && (r = Math.max(Number(O), r)), k != null && (r = Math.min(Number(k), r)), n(String(r));
2688
- }, G = O != null && ie != null && ie <= Number(O), q = k != null && ie != null && ie >= Number(k), ae = /* @__PURE__ */ g("div", {
2689
- className: `select-input-wrap${U ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
2704
+ }, W = O != null && ae != null && ae <= Number(O), K = k != null && ae != null && ae >= Number(k), q = /* @__PURE__ */ g("div", {
2705
+ className: `select-input-wrap${H ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
2690
2706
  children: [
2691
2707
  d != null && /* @__PURE__ */ h("span", {
2692
2708
  className: "select-input__affix select-input__affix--prefix",
@@ -2694,8 +2710,8 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
2694
2710
  }),
2695
2711
  /* @__PURE__ */ h("input", {
2696
2712
  id: B,
2697
- className: `select-input${V ? " select-input--has-suffix" : ""}${re ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
2698
- type: H,
2713
+ className: `select-input${V ? " select-input--has-suffix" : ""}${ie ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
2714
+ type: ne,
2699
2715
  value: t,
2700
2716
  onChange: (e) => n(e.target.value),
2701
2717
  onBlur: N,
@@ -2714,7 +2730,7 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
2714
2730
  inputMode: j,
2715
2731
  autoFocus: M,
2716
2732
  "aria-invalid": u ? !0 : void 0,
2717
- "aria-describedby": ne
2733
+ "aria-describedby": re
2718
2734
  }),
2719
2735
  p != null && /* @__PURE__ */ h("span", {
2720
2736
  className: "select-input__affix select-input__affix--suffix",
@@ -2727,24 +2743,24 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
2727
2743
  "aria-label": ee ? "Ocultar senha" : "Mostrar senha",
2728
2744
  children: h(ee ? Ue : He, {})
2729
2745
  }),
2730
- re && /* @__PURE__ */ g("span", {
2746
+ ie && /* @__PURE__ */ g("span", {
2731
2747
  className: "select-stepper",
2732
2748
  children: [/* @__PURE__ */ h("button", {
2733
2749
  type: "button",
2734
2750
  tabIndex: -1,
2735
2751
  className: "select-stepper__btn",
2736
2752
  "aria-label": "Aumentar",
2737
- disabled: x || q,
2738
- onClick: () => W(1),
2753
+ disabled: x || K,
2754
+ onClick: () => U(1),
2739
2755
  children: /* @__PURE__ */ h(it, {})
2740
2756
  }), /* @__PURE__ */ h("button", {
2741
2757
  type: "button",
2742
2758
  tabIndex: -1,
2743
2759
  className: "select-stepper__btn",
2744
2760
  "aria-label": "Diminuir",
2745
- disabled: x || G,
2746
- onClick: () => W(-1),
2747
- children: /* @__PURE__ */ h(K, {})
2761
+ disabled: x || W,
2762
+ onClick: () => U(-1),
2763
+ children: /* @__PURE__ */ h(G, {})
2748
2764
  })]
2749
2765
  })
2750
2766
  ]
@@ -2765,9 +2781,9 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
2765
2781
  className: "select-field__desc",
2766
2782
  children: c
2767
2783
  }),
2768
- m == null ? ae : /* @__PURE__ */ g("div", {
2784
+ m == null ? q : /* @__PURE__ */ g("div", {
2769
2785
  className: "select-field__control",
2770
- children: [ae, /* @__PURE__ */ h("span", {
2786
+ children: [q, /* @__PURE__ */ h("span", {
2771
2787
  className: "select-field__trailing",
2772
2788
  children: m
2773
2789
  })]
@@ -3163,13 +3179,13 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3163
3179
  }, z = () => {
3164
3180
  var e;
3165
3181
  return (e = w.current ?? C.current) == null ? void 0 : e.click();
3166
- }, B = j ? "Preparando o arquivo…" : c ?? `Selecionar arquivo · até ${r} MB`, ee = (n) => t(e.filter((e, t) => t !== n)), te = s != null && e.length >= s, V = (a || e.length === 0) && !te, H = e.length > 0;
3182
+ }, B = j ? "Preparando o arquivo…" : c ?? `Selecionar arquivo · até ${r} MB`, ee = (n) => t(e.filter((e, t) => t !== n)), te = s != null && e.length >= s, V = (a || e.length === 0) && !te, ne = e.length > 0;
3167
3183
  return /* @__PURE__ */ g("div", {
3168
3184
  ref: S,
3169
3185
  ...x,
3170
3186
  className: `select-dropzone-wrap${b ? " " + b : ""}`,
3171
3187
  children: [
3172
- H && /* @__PURE__ */ g("div", {
3188
+ ne && /* @__PURE__ */ g("div", {
3173
3189
  className: "select-filetile-grid",
3174
3190
  children: [e.map((e, t) => /* @__PURE__ */ h(zn, {
3175
3191
  src: F[t] ?? void 0,
@@ -3185,18 +3201,18 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3185
3201
  children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: "Adicionar" })]
3186
3202
  })]
3187
3203
  }),
3188
- !H && V && l && N && /* @__PURE__ */ g("div", {
3204
+ !ne && V && l && N && /* @__PURE__ */ g("div", {
3189
3205
  className: "select-dropzone-capture",
3190
3206
  children: [/* @__PURE__ */ g("div", {
3191
3207
  className: "select-dropzone-capture__buttons",
3192
- children: [/* @__PURE__ */ h(U, {
3208
+ children: [/* @__PURE__ */ h(H, {
3193
3209
  variant: "primary",
3194
3210
  inline: !0,
3195
3211
  icon: /* @__PURE__ */ h(Wt, {}),
3196
3212
  onClick: z,
3197
3213
  loading: j,
3198
3214
  children: p
3199
- }), /* @__PURE__ */ h(U, {
3215
+ }), /* @__PURE__ */ h(H, {
3200
3216
  variant: "secondary",
3201
3217
  inline: !0,
3202
3218
  icon: /* @__PURE__ */ h(se, {}),
@@ -3209,7 +3225,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3209
3225
  children: c
3210
3226
  })]
3211
3227
  }),
3212
- !H && V && !(l && N) && /* @__PURE__ */ g("button", {
3228
+ !ne && V && !(l && N) && /* @__PURE__ */ g("button", {
3213
3229
  type: "button",
3214
3230
  className: `select-dropzone${v === "vertical" ? " select-dropzone--vertical" : ""}${T ? " is-over" : ""}`,
3215
3231
  onClick: R,
@@ -3362,10 +3378,10 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3362
3378
  }
3363
3379
  }, te = (e) => {
3364
3380
  e.key === "Enter" && (e.preventDefault(), ee());
3365
- }, V = (e) => r(n.filter((t, n) => n !== e)), H = (e) => a(i.filter((t, n) => n !== e)), ne = () => {
3381
+ }, V = (e) => r(n.filter((t, n) => n !== e)), ne = (e) => a(i.filter((t, n) => n !== e)), re = () => {
3366
3382
  var e;
3367
3383
  return (e = C.current) == null ? void 0 : e.click();
3368
- }, re = {
3384
+ }, ie = {
3369
3385
  onDragOver: (e) => {
3370
3386
  e.preventDefault(), T(!0);
3371
3387
  },
@@ -3385,7 +3401,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3385
3401
  }),
3386
3402
  /* @__PURE__ */ g("div", {
3387
3403
  className: `select-uploadzone${w ? " is-over" : ""}`,
3388
- ...re,
3404
+ ...ie,
3389
3405
  children: [
3390
3406
  L ? /* @__PURE__ */ g("div", {
3391
3407
  className: `select-filetile-grid${P === 1 ? " select-filetile-grid--single" : ""}`,
@@ -3400,19 +3416,19 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3400
3416
  i.map((e, t) => /* @__PURE__ */ h(zn, {
3401
3417
  src: e,
3402
3418
  name: Gn(e),
3403
- onRemove: () => H(t)
3419
+ onRemove: () => ne(t)
3404
3420
  }, `u-${e}-${t}`)),
3405
3421
  F && /* @__PURE__ */ g("button", {
3406
3422
  type: "button",
3407
3423
  className: "select-dropzone select-dropzone--tile",
3408
- onClick: ne,
3424
+ onClick: re,
3409
3425
  children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: "Adicionar" })]
3410
3426
  })
3411
3427
  ]
3412
3428
  }) : /* @__PURE__ */ g("button", {
3413
3429
  type: "button",
3414
3430
  className: "select-uploadzone__prompt",
3415
- onClick: ne,
3431
+ onClick: re,
3416
3432
  children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: m ?? `Arraste ou selecione um arquivo · até ${c} MB` })]
3417
3433
  }),
3418
3434
  I && /* @__PURE__ */ g("div", {
@@ -3435,7 +3451,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
3435
3451
  autoComplete: "off"
3436
3452
  })
3437
3453
  }),
3438
- /* @__PURE__ */ h(U, {
3454
+ /* @__PURE__ */ h(H, {
3439
3455
  variant: "secondary",
3440
3456
  size: "sm",
3441
3457
  inline: !0,
@@ -3494,44 +3510,44 @@ var er = (e) => {
3494
3510
  var t;
3495
3511
  return Array.from(((t = e.dataTransfer) == null ? void 0 : t.types) ?? []).includes("Files");
3496
3512
  }, tr = r(function({ label: e, help: t, items: n, onChange: r, max: i = 10, accept: a = ".jpg,.jpeg,.png,.webp", maxSizeMB: c, hint: l, error: u, allowUrl: p = !0, tileSize: m = 88, addLabel: _ = "Adicionar", coverLabel: v = "Capa", disabled: y = !1, className: b, style: x, ...S }, C) {
3497
- let w = s(), T = d(null), E = d(/* @__PURE__ */ new Map()), D = d(null), [O, k] = f(null), [A, j] = f(null), [M, N] = f(null), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(!1), [B, ee] = f(""), [te, V] = f(), H = d(/* @__PURE__ */ new Map()), ne = (e) => {
3513
+ let w = s(), T = d(null), E = d(/* @__PURE__ */ new Map()), D = d(null), [O, k] = f(null), [A, j] = f(null), [M, N] = f(null), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(!1), [B, ee] = f(""), [te, V] = f(), ne = d(/* @__PURE__ */ new Map()), re = (e) => {
3498
3514
  if (e.url) return e.url;
3499
3515
  if (!e.file) return;
3500
- let t = H.current.get(e.file);
3501
- return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file), H.current.set(e.file, t)), t;
3516
+ let t = ne.current.get(e.file);
3517
+ return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file), ne.current.set(e.file, t)), t;
3502
3518
  };
3503
3519
  o(() => {
3504
3520
  let e = new Set(n.map((e) => e.file).filter(Boolean));
3505
- for (let [t, n] of H.current) e.has(t) || (URL.revokeObjectURL(n), H.current.delete(t));
3521
+ for (let [t, n] of ne.current) e.has(t) || (URL.revokeObjectURL(n), ne.current.delete(t));
3506
3522
  }, [n]), o(() => () => {
3507
- for (let e of H.current.values()) URL.revokeObjectURL(e);
3508
- H.current.clear();
3523
+ for (let e of ne.current.values()) URL.revokeObjectURL(e);
3524
+ ne.current.clear();
3509
3525
  }, []), o(() => {
3510
3526
  if (!O) return;
3511
3527
  let e = O === "__add" ? D.current : E.current.get(O);
3512
3528
  e == null || e.focus(), k(null);
3513
3529
  }, [O, n]);
3514
- let re = Math.max(0, i - n.length), ie = re === 0, W = c == null ? Infinity : c * 1024 * 1024, G = (e) => {
3530
+ let ie = Math.max(0, i - n.length), ae = ie === 0, U = c == null ? Infinity : c * 1024 * 1024, W = (e) => {
3515
3531
  if (y || !e.length) return;
3516
3532
  let t = [], o = [];
3517
- for (let n of e) Vn(n, a) ? n.size > W ? t.push(`${n.name}: maior que ${c} MB`) : o.push(n) : t.push(`${n.name}: formato não aceito`);
3518
- let s = o.slice(0, re);
3533
+ for (let n of e) Vn(n, a) ? n.size > U ? t.push(`${n.name}: maior que ${c} MB`) : o.push(n) : t.push(`${n.name}: formato não aceito`);
3534
+ let s = o.slice(0, ie);
3519
3535
  if (o.length > s.length) {
3520
3536
  let e = o.length - s.length;
3521
3537
  t.push(`Limite de ${i} ${i === 1 ? "foto" : "fotos"} — ${e} ${e === 1 ? "ficou" : "ficaram"} de fora`);
3522
3538
  }
3523
3539
  L(t.length ? t.join(" · ") : null), s.length && r([...n, ...s.map(Zn)]);
3524
- }, K = (e) => {
3540
+ }, G = (e) => {
3525
3541
  let t = n.filter((t, n) => n !== e);
3526
3542
  r(t), L(null);
3527
3543
  let i = t[Math.min(e, t.length - 1)];
3528
3544
  k(i ? i.key : "__add");
3529
- }, q = (e, t) => {
3545
+ }, K = (e, t) => {
3530
3546
  var i;
3531
3547
  let a = $n(n, e, t);
3532
3548
  a !== n && (r(a), k(((i = n[e]) == null ? void 0 : i.key) ?? null));
3533
- }, ae = (e, t) => {
3534
- y || e.target !== e.currentTarget || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(), q(t, t - 1)) : e.key === "ArrowRight" || e.key === "ArrowDown" ? (e.preventDefault(), q(t, t + 1)) : (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), K(t)));
3549
+ }, q = (e, t) => {
3550
+ y || e.target !== e.currentTarget || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(), K(t, t - 1)) : e.key === "ArrowRight" || e.key === "ArrowDown" ? (e.preventDefault(), K(t, t + 1)) : (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), G(t)));
3535
3551
  }, oe = () => {
3536
3552
  let e = B.trim();
3537
3553
  if (!Wn.test(e) || !/^https:\/\//i.test(e)) {
@@ -3545,13 +3561,13 @@ var er = (e) => {
3545
3561
  r([...n, Qn(e)]), ee(""), V(void 0), z(!1);
3546
3562
  }, se = {
3547
3563
  onDragOver: (e) => {
3548
- y || A || !er(e) || (e.preventDefault(), e.dataTransfer.dropEffect = ie ? "none" : "copy", F(!0));
3564
+ y || A || !er(e) || (e.preventDefault(), e.dataTransfer.dropEffect = ae ? "none" : "copy", F(!0));
3549
3565
  },
3550
3566
  onDragLeave: (e) => {
3551
3567
  e.currentTarget.contains(e.relatedTarget) || F(!1);
3552
3568
  },
3553
3569
  onDrop: (e) => {
3554
- y || A || !er(e) || (e.preventDefault(), F(!1), G(Array.from(e.dataTransfer.files)));
3570
+ y || A || !er(e) || (e.preventDefault(), F(!1), W(Array.from(e.dataTransfer.files)));
3555
3571
  }
3556
3572
  }, J = u ?? I ?? void 0;
3557
3573
  return /* @__PURE__ */ g("div", {
@@ -3588,7 +3604,7 @@ var er = (e) => {
3588
3604
  ...se,
3589
3605
  children: [n.map((e, t) => {
3590
3606
  var i;
3591
- let a = ne(e), o = t === 0 && v != null, s = ((i = e.file) == null ? void 0 : i.name) ?? (e.url ? Gn(e.url) : "foto");
3607
+ let a = re(e), o = t === 0 && v != null, s = ((i = e.file) == null ? void 0 : i.name) ?? (e.url ? Gn(e.url) : "foto");
3592
3608
  return /* @__PURE__ */ g("div", {
3593
3609
  ref: (t) => {
3594
3610
  t ? E.current.set(e.key, t) : E.current.delete(e.key);
@@ -3598,7 +3614,7 @@ var er = (e) => {
3598
3614
  "aria-label": `Foto ${t + 1} de ${n.length}${o ? ` (${v == null ? void 0 : v.toLowerCase()})` : ""}: ${s}.${n.length > 1 ? " Setas movem a foto." : ""} Delete remove.`,
3599
3615
  className: `select-gallery__tile${A === e.key ? " is-dragging" : ""}${M === t && A && A !== e.key ? " is-target" : ""}`,
3600
3616
  draggable: !y && n.length > 1,
3601
- onKeyDown: (e) => ae(e, t),
3617
+ onKeyDown: (e) => q(e, t),
3602
3618
  onDragStart: (t) => {
3603
3619
  j(e.key), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e.key);
3604
3620
  },
@@ -3632,20 +3648,20 @@ var er = (e) => {
3632
3648
  className: "select-gallery__tool",
3633
3649
  "aria-label": `Tornar ${v.toLowerCase()}`,
3634
3650
  title: `Tornar ${v.toLowerCase()}`,
3635
- onClick: () => q(t, 0),
3651
+ onClick: () => K(t, 0),
3636
3652
  children: /* @__PURE__ */ h(he, {})
3637
3653
  }), /* @__PURE__ */ h("button", {
3638
3654
  type: "button",
3639
3655
  className: "select-gallery__tool",
3640
3656
  "aria-label": "Remover foto",
3641
3657
  title: "Remover foto",
3642
- onClick: () => K(t),
3658
+ onClick: () => G(t),
3643
3659
  children: /* @__PURE__ */ h(le, {})
3644
3660
  })]
3645
3661
  })
3646
3662
  ]
3647
3663
  }, e.key);
3648
- }), !ie && !y && /* @__PURE__ */ g("button", {
3664
+ }), !ae && !y && /* @__PURE__ */ g("button", {
3649
3665
  ref: D,
3650
3666
  type: "button",
3651
3667
  className: `select-gallery__add${P ? " is-over" : ""}`,
@@ -3660,13 +3676,13 @@ var er = (e) => {
3660
3676
  ref: T,
3661
3677
  type: "file",
3662
3678
  accept: a,
3663
- multiple: re > 1,
3679
+ multiple: ie > 1,
3664
3680
  hidden: !0,
3665
3681
  onChange: (e) => {
3666
- G(Array.from(e.target.files ?? [])), e.target.value = "";
3682
+ W(Array.from(e.target.files ?? [])), e.target.value = "";
3667
3683
  }
3668
3684
  }),
3669
- p && !ie && !y && (R ? /* @__PURE__ */ h(Tn, {
3685
+ p && !ae && !y && (R ? /* @__PURE__ */ h(Tn, {
3670
3686
  size: "sm",
3671
3687
  value: B,
3672
3688
  onChange: (e) => {
@@ -3679,7 +3695,7 @@ var er = (e) => {
3679
3695
  onKeyDown: (e) => {
3680
3696
  e.key === "Enter" ? (e.preventDefault(), oe()) : e.key === "Escape" && (z(!1), ee(""), V(void 0));
3681
3697
  },
3682
- trailingAction: /* @__PURE__ */ h(U, {
3698
+ trailingAction: /* @__PURE__ */ h(H, {
3683
3699
  variant: "secondary",
3684
3700
  size: "sm",
3685
3701
  inline: !0,
@@ -3754,7 +3770,7 @@ var er = (e) => {
3754
3770
  }), /* @__PURE__ */ h("span", {
3755
3771
  className: "select-select-caret",
3756
3772
  "aria-hidden": "true",
3757
- children: /* @__PURE__ */ h(K, {})
3773
+ children: /* @__PURE__ */ h(G, {})
3758
3774
  })]
3759
3775
  }),
3760
3776
  u ? /* @__PURE__ */ h("p", {
@@ -4030,7 +4046,7 @@ var mr = r(function({ label: e, value: t, onChange: n, options: r, placeholder:
4030
4046
  }), /* @__PURE__ */ h("span", {
4031
4047
  className: "select-combobox__caret",
4032
4048
  "aria-hidden": "true",
4033
- children: /* @__PURE__ */ h(K, {})
4049
+ children: /* @__PURE__ */ h(G, {})
4034
4050
  })]
4035
4051
  }),
4036
4052
  children: /* @__PURE__ */ g("div", {
@@ -4605,7 +4621,7 @@ var Ir = r(function({ label: e, value: t, onChange: n, labelAction: r, hint: i,
4605
4621
  /* @__PURE__ */ h("span", {
4606
4622
  className: "select-select-caret",
4607
4623
  "aria-hidden": "true",
4608
- children: /* @__PURE__ */ h(K, {})
4624
+ children: /* @__PURE__ */ h(G, {})
4609
4625
  }),
4610
4626
  /* @__PURE__ */ h("select", {
4611
4627
  className: "select-phone__select",
@@ -4929,11 +4945,11 @@ function Ur({ items: e, label: t = "Ações", disabled: n }) {
4929
4945
  active: r,
4930
4946
  onClose: () => i(!1),
4931
4947
  placement: "bottom-end",
4932
- activator: /* @__PURE__ */ h(U, {
4948
+ activator: /* @__PURE__ */ h(H, {
4933
4949
  variant: "secondary",
4934
4950
  size: "sm",
4935
4951
  inline: !0,
4936
- trailingIcon: /* @__PURE__ */ h(K, {}),
4952
+ trailingIcon: /* @__PURE__ */ h(G, {}),
4937
4953
  disabled: n,
4938
4954
  onClick: () => i((e) => !e),
4939
4955
  children: t
@@ -5314,13 +5330,13 @@ var Y = r(function({ icon: e, label: t, onClick: n, disabled: r = !1, size: i =
5314
5330
  //#endregion
5315
5331
  //#region src/SelectDisclosureButton.tsx
5316
5332
  function hi({ open: e, onToggle: t, children: n, openLabel: r, disabled: i = !1, size: a = "sm", variant: o = "secondary" }) {
5317
- return /* @__PURE__ */ h(U, {
5333
+ return /* @__PURE__ */ h(H, {
5318
5334
  variant: o,
5319
5335
  size: a,
5320
5336
  inline: !0,
5321
5337
  trailingIcon: /* @__PURE__ */ h("span", {
5322
5338
  className: `select-disclosure-caret${e ? " is-open" : ""}`,
5323
- children: /* @__PURE__ */ h(K, {})
5339
+ children: /* @__PURE__ */ h(G, {})
5324
5340
  }),
5325
5341
  disabled: i,
5326
5342
  "aria-expanded": e,
@@ -5569,7 +5585,7 @@ function Gi({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
5569
5585
  "aria-expanded": p,
5570
5586
  "aria-label": `${p ? "Recolher" : "Expandir"} ${e}`,
5571
5587
  onClick: () => a.toggle(l),
5572
- children: /* @__PURE__ */ h(W, {})
5588
+ children: /* @__PURE__ */ h(U, {})
5573
5589
  }) : /* @__PURE__ */ h("span", {
5574
5590
  className: "select-json__caret select-json__caret--empty",
5575
5591
  "aria-hidden": "true"
@@ -6027,7 +6043,7 @@ function ra({ children: e, className: t, ...n }) {
6027
6043
  });
6028
6044
  }
6029
6045
  function ia({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
6030
- let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ h(W, {}) : null : r, c = /* @__PURE__ */ g(m, { children: [
6046
+ let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ h(U, {}) : null : r, c = /* @__PURE__ */ g(m, { children: [
6031
6047
  n && /* @__PURE__ */ h("span", {
6032
6048
  className: "select-optionrow__leading",
6033
6049
  children: n
@@ -6152,7 +6168,7 @@ function ca(e) {
6152
6168
  //#endregion
6153
6169
  //#region src/SelectBackLink.tsx
6154
6170
  function la({ children: e = "Voltar", onClick: t, href: n }) {
6155
- let r = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(q, {}), /* @__PURE__ */ h("span", { children: e })] }), i = ca(n);
6171
+ let r = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(K, {}), /* @__PURE__ */ h("span", { children: e })] }), i = ca(n);
6156
6172
  return i ? /* @__PURE__ */ h("a", {
6157
6173
  className: "select-backlink",
6158
6174
  href: i,
@@ -6383,7 +6399,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
6383
6399
  return /* @__PURE__ */ g(t, { children: [i > 0 && /* @__PURE__ */ h("li", {
6384
6400
  className: "select-breadcrumb__sep",
6385
6401
  "aria-hidden": "true",
6386
- children: /* @__PURE__ */ h(W, {})
6402
+ children: /* @__PURE__ */ h(U, {})
6387
6403
  }), /* @__PURE__ */ h("li", {
6388
6404
  className: `select-breadcrumb__item${a ? " is-current" : ""}`,
6389
6405
  children: o ? /* @__PURE__ */ h(v, {
@@ -6419,7 +6435,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
6419
6435
  className: "select-page__back",
6420
6436
  onClick: a.onAction,
6421
6437
  "aria-label": a.content ?? "Voltar",
6422
- children: /* @__PURE__ */ h(q, {})
6438
+ children: /* @__PURE__ */ h(K, {})
6423
6439
  }), /* @__PURE__ */ g("div", {
6424
6440
  className: "select-page__head",
6425
6441
  children: [
@@ -6440,7 +6456,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
6440
6456
  }), d && /* @__PURE__ */ g("div", {
6441
6457
  className: "select-page__actions",
6442
6458
  children: [
6443
- r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ h(U, {
6459
+ r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ h(H, {
6444
6460
  variant: "secondary",
6445
6461
  size: "sm",
6446
6462
  inline: !0,
@@ -6450,7 +6466,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
6450
6466
  onClick: e.onAction,
6451
6467
  children: e.content
6452
6468
  }, t)),
6453
- n && /* @__PURE__ */ h(U, {
6469
+ n && /* @__PURE__ */ h(H, {
6454
6470
  variant: "primary",
6455
6471
  size: "sm",
6456
6472
  inline: !0,
@@ -6666,7 +6682,7 @@ var Na = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
6666
6682
  }), /* @__PURE__ */ h("span", {
6667
6683
  className: "select-section__chevron",
6668
6684
  "aria-hidden": "true",
6669
- children: /* @__PURE__ */ h(K, {})
6685
+ children: /* @__PURE__ */ h(G, {})
6670
6686
  })]
6671
6687
  }), /* @__PURE__ */ h("div", {
6672
6688
  className: "select-section__collapse",
@@ -6869,7 +6885,7 @@ var Ga = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
6869
6885
  children: [/* @__PURE__ */ h("span", { children: e }), /* @__PURE__ */ h("span", {
6870
6886
  className: "select-menubtn__caret",
6871
6887
  "aria-hidden": "true",
6872
- children: /* @__PURE__ */ h(K, {})
6888
+ children: /* @__PURE__ */ h(G, {})
6873
6889
  })]
6874
6890
  });
6875
6891
  });
@@ -6913,7 +6929,7 @@ function qa({ item: e, active: t, onSelect: n }) {
6913
6929
  !r && /* @__PURE__ */ h("span", {
6914
6930
  className: "select-sidenav__chevron",
6915
6931
  "aria-hidden": "true",
6916
- children: /* @__PURE__ */ h(K, {})
6932
+ children: /* @__PURE__ */ h(G, {})
6917
6933
  })
6918
6934
  ]
6919
6935
  }), /* @__PURE__ */ h("div", {
@@ -6988,7 +7004,7 @@ function Ya({ item: e, active: t, onSelect: n, tabbable: r }) {
6988
7004
  /* @__PURE__ */ h("span", {
6989
7005
  className: "select-sidenav__chevron",
6990
7006
  "aria-hidden": "true",
6991
- children: /* @__PURE__ */ h(K, {})
7007
+ children: /* @__PURE__ */ h(G, {})
6992
7008
  })
6993
7009
  ]
6994
7010
  }), /* @__PURE__ */ h("div", {
@@ -7190,7 +7206,7 @@ var no = (e) => e.toLocaleString("pt-BR"), ro = r(function({ page: e, pageCount:
7190
7206
  onClick: _,
7191
7207
  disabled: !p || !_,
7192
7208
  "aria-label": "Página anterior",
7193
- children: /* @__PURE__ */ h(G, {})
7209
+ children: /* @__PURE__ */ h(W, {})
7194
7210
  }),
7195
7211
  y ? b.map((t, n) => t === "gap" ? /* @__PURE__ */ h("span", {
7196
7212
  className: "select-pagination__gap",
@@ -7212,7 +7228,7 @@ var no = (e) => e.toLocaleString("pt-BR"), ro = r(function({ page: e, pageCount:
7212
7228
  onClick: v,
7213
7229
  disabled: !m || !v,
7214
7230
  "aria-label": "Próxima página",
7215
- children: /* @__PURE__ */ h(W, {})
7231
+ children: /* @__PURE__ */ h(U, {})
7216
7232
  })
7217
7233
  ]
7218
7234
  }), x.length > 0 && /* @__PURE__ */ h("p", {
@@ -7263,7 +7279,7 @@ function ao({ title: e, help: t, description: n, action: r, filters: i, tools: a
7263
7279
  }), /* @__PURE__ */ h("span", {
7264
7280
  className: "select-table__chevron",
7265
7281
  "aria-hidden": "true",
7266
- children: /* @__PURE__ */ h(K, {})
7282
+ children: /* @__PURE__ */ h(G, {})
7267
7283
  })]
7268
7284
  }) : l && /* @__PURE__ */ g("div", {
7269
7285
  className: "select-table__heading",
@@ -7321,7 +7337,7 @@ function so({ pagination: e }) {
7321
7337
  }), /* @__PURE__ */ h("span", {
7322
7338
  className: `select-facet__caret${t ? " is-open" : ""}`,
7323
7339
  "aria-hidden": "true",
7324
- children: /* @__PURE__ */ h(K, {})
7340
+ children: /* @__PURE__ */ h(G, {})
7325
7341
  })]
7326
7342
  }),
7327
7343
  children: /* @__PURE__ */ h("div", {
@@ -7463,7 +7479,7 @@ var po = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
7463
7479
  type: "button",
7464
7480
  className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
7465
7481
  onClick: e.onSort,
7466
- children: [e.label, /* @__PURE__ */ h(K, {})]
7482
+ children: [e.label, /* @__PURE__ */ h(G, {})]
7467
7483
  }) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ h("span", {
7468
7484
  role: "separator",
7469
7485
  "aria-orientation": "vertical",
@@ -7569,7 +7585,7 @@ var yo = r(function({ children: e, align: t = "start", disclosure: n, className:
7569
7585
  children: [n ? /* @__PURE__ */ h("span", {
7570
7586
  className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
7571
7587
  "aria-hidden": "true",
7572
- children: n !== "none" && /* @__PURE__ */ h(W, {})
7588
+ children: n !== "none" && /* @__PURE__ */ h(U, {})
7573
7589
  }) : null, e]
7574
7590
  });
7575
7591
  }), bo = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
@@ -7649,7 +7665,7 @@ var yo = r(function({ children: e, align: t = "start", disclosure: n, className:
7649
7665
  "aria-label": "Abrir",
7650
7666
  title: "Abrir",
7651
7667
  children: /* @__PURE__ */ h(ce, {})
7652
- }), i ? /* @__PURE__ */ h(U, {
7668
+ }), i ? /* @__PURE__ */ h(H, {
7653
7669
  variant: "secondary",
7654
7670
  size: "sm",
7655
7671
  inline: !0,
@@ -7761,7 +7777,7 @@ var Eo = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
7761
7777
  }), /* @__PURE__ */ h("span", {
7762
7778
  className: "select-collapsible__chevron",
7763
7779
  "aria-hidden": "true",
7764
- children: /* @__PURE__ */ h(K, {})
7780
+ children: /* @__PURE__ */ h(G, {})
7765
7781
  })]
7766
7782
  }), /* @__PURE__ */ h("div", {
7767
7783
  className: "select-collapsible__bodywrap",
@@ -8236,20 +8252,20 @@ function fs({ view: e, date: t, events: n, onViewChange: r, onDateChange: i, onE
8236
8252
  className: "select-calendar__nav",
8237
8253
  children: [i ? /* @__PURE__ */ g(m, { children: [
8238
8254
  /* @__PURE__ */ h(Y, {
8239
- icon: /* @__PURE__ */ h(G, {}),
8255
+ icon: /* @__PURE__ */ h(W, {}),
8240
8256
  label: e === "week" ? "Semana anterior" : "Mês anterior",
8241
8257
  variant: "outline",
8242
8258
  size: "sm",
8243
8259
  onClick: () => x(-1)
8244
8260
  }),
8245
8261
  /* @__PURE__ */ h(Y, {
8246
- icon: /* @__PURE__ */ h(W, {}),
8262
+ icon: /* @__PURE__ */ h(U, {}),
8247
8263
  label: e === "week" ? "Próxima semana" : "Próximo mês",
8248
8264
  variant: "outline",
8249
8265
  size: "sm",
8250
8266
  onClick: () => x(1)
8251
8267
  }),
8252
- /* @__PURE__ */ h(U, {
8268
+ /* @__PURE__ */ h(H, {
8253
8269
  variant: "secondary",
8254
8270
  size: "sm",
8255
8271
  inline: !0,
@@ -8727,7 +8743,7 @@ function ks({ title: e, meta: t, actions: n, tools: r, onBack: i, children: a, f
8727
8743
  i ? /* @__PURE__ */ h("span", {
8728
8744
  className: "select-mailreader__back",
8729
8745
  children: /* @__PURE__ */ h(Y, {
8730
- icon: /* @__PURE__ */ h(q, {}),
8746
+ icon: /* @__PURE__ */ h(K, {}),
8731
8747
  label: "Voltar para a lista",
8732
8748
  size: "sm",
8733
8749
  onClick: i
@@ -8999,7 +9015,7 @@ function zs({ variant: e = "inline", title: t, minimized: n = !1, onToggleMinimi
8999
9015
  children: t
9000
9016
  }),
9001
9017
  r ? /* @__PURE__ */ h(Y, {
9002
- icon: h(n ? it : K, {}),
9018
+ icon: h(n ? it : G, {}),
9003
9019
  label: n ? "Abrir a janela" : "Minimizar",
9004
9020
  size: "sm",
9005
9021
  onClick: r
@@ -9705,14 +9721,14 @@ function gc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
9705
9721
  theme: l ?? ur(),
9706
9722
  footer: /* @__PURE__ */ g("div", {
9707
9723
  className: "select-modal__actions",
9708
- children: [/* @__PURE__ */ h(U, {
9724
+ children: [/* @__PURE__ */ h(H, {
9709
9725
  variant: "secondary",
9710
9726
  size: "sm",
9711
9727
  inline: !0,
9712
9728
  onClick: t,
9713
9729
  disabled: c,
9714
9730
  children: o
9715
- }), /* @__PURE__ */ h(U, {
9731
+ }), /* @__PURE__ */ h(H, {
9716
9732
  variant: s ? "danger" : "primary",
9717
9733
  size: "sm",
9718
9734
  inline: !0,
@@ -9739,14 +9755,14 @@ function _c({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
9739
9755
  theme: p ?? ur(),
9740
9756
  footer: /* @__PURE__ */ g("div", {
9741
9757
  className: "select-modal__actions",
9742
- children: [/* @__PURE__ */ h(U, {
9758
+ children: [/* @__PURE__ */ h(H, {
9743
9759
  variant: "secondary",
9744
9760
  size: "sm",
9745
9761
  inline: !0,
9746
9762
  onClick: t,
9747
9763
  disabled: c,
9748
9764
  children: s
9749
- }), /* @__PURE__ */ h(U, {
9765
+ }), /* @__PURE__ */ h(H, {
9750
9766
  variant: u,
9751
9767
  size: "sm",
9752
9768
  inline: !0,
@@ -9838,15 +9854,15 @@ function Ac(e, t, n) {
9838
9854
  });
9839
9855
  }
9840
9856
  function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: l, action: d, filters: p, columnsKey: m, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x, listRow: S, footer: C }) {
9841
- let [w, T] = f(() => m ? Sc(m) : []), [E, D] = f(!1), O = Ln(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ec(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(wc), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && wc(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()), H = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== te.has(n(e)), ne = (e) => V((t) => {
9857
+ let [w, T] = f(() => m ? Sc(m) : []), [E, D] = f(!1), O = Ln(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ec(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(wc), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && wc(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()), ne = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== te.has(n(e)), re = (e) => V((t) => {
9842
9858
  let r = new Set(t), i = n(e);
9843
9859
  return r.delete(i) || r.add(i), r;
9844
- }), U = (e) => {
9860
+ }), H = (e) => {
9845
9861
  T((t) => {
9846
9862
  let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
9847
9863
  return m && Cc(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
9848
9864
  });
9849
- }, re = (e) => {
9865
+ }, ie = (e) => {
9850
9866
  ee((t) => {
9851
9867
  let n = e.sortDefault ?? "asc";
9852
9868
  return !t || t.key !== e.key ? {
@@ -9857,12 +9873,12 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9857
9873
  dir: n === "asc" ? "desc" : "asc"
9858
9874
  } : null;
9859
9875
  });
9860
- }, ie = B ? e.find((e) => e.key === B.key) : void 0, W = u(() => {
9861
- let e = ie == null ? void 0 : ie.sortValue;
9876
+ }, ae = B ? e.find((e) => e.key === B.key) : void 0, U = u(() => {
9877
+ let e = ae == null ? void 0 : ae.sortValue;
9862
9878
  if (!B || !e) return (e) => e;
9863
9879
  let t = B.dir === "asc" ? 1 : -1;
9864
9880
  return (n) => [...n].sort((n, r) => Ac(e(n), e(r), t));
9865
- }, [B, ie]), G = u(() => W(t), [t, W]), K = (e) => (_ == null ? void 0 : _(e)) ?? [], q = !!_ && t.some((e) => K(e).length > 0), ae = k ? [{
9881
+ }, [B, ae]), W = u(() => U(t), [t, U]), G = (e) => (_ == null ? void 0 : _(e)) ?? [], K = !!_ && t.some((e) => G(e).length > 0), q = k ? [{
9866
9882
  label: "",
9867
9883
  grow: 1
9868
9884
  }] : R.map((e) => ({
@@ -9873,7 +9889,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9873
9889
  grow: e.grow,
9874
9890
  sortable: !!e.sortValue,
9875
9891
  sortDir: (B == null ? void 0 : B.key) === e.key ? B.dir : null,
9876
- onSort: e.sortValue ? () => re(e) : void 0,
9892
+ onSort: e.sortValue ? () => ie(e) : void 0,
9877
9893
  resizable: !!e.title,
9878
9894
  tone: e.tone
9879
9895
  })), oe = (e, t) => {
@@ -9915,7 +9931,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9915
9931
  "aria-checked": t,
9916
9932
  disabled: n,
9917
9933
  className: "select-facet__opt",
9918
- onClick: () => U(e),
9934
+ onClick: () => H(e),
9919
9935
  children: [/* @__PURE__ */ h("span", { children: e.title }), t && /* @__PURE__ */ h("span", {
9920
9936
  className: "select-facet__check",
9921
9937
  "aria-hidden": "true",
@@ -9941,7 +9957,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9941
9957
  return /* @__PURE__ */ g("div", {
9942
9958
  className: "select-datatable",
9943
9959
  children: [/* @__PURE__ */ h(po, {
9944
- columns: ae,
9960
+ columns: q,
9945
9961
  empty: ce,
9946
9962
  footer: C,
9947
9963
  title: s,
@@ -9953,7 +9969,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9953
9969
  className: k ? "select-table--compact" : void 0,
9954
9970
  onColumnResize: k ? void 0 : (e, t) => oe(e, t),
9955
9971
  onColumnResizeReset: k ? void 0 : (e) => oe(e, null),
9956
- children: k && A ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ h(go, { children: /* @__PURE__ */ h(yo, { children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) : G.map((e) => /* @__PURE__ */ h(go, {
9972
+ children: k && A ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ h(go, { children: /* @__PURE__ */ h(yo, { children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) : W.map((e) => /* @__PURE__ */ h(go, {
9957
9973
  onClick: x ?? o ? () => (x ?? o)(e) : void 0,
9958
9974
  children: /* @__PURE__ */ h(yo, {
9959
9975
  className: j ? "select-table__td--wrap" : void 0,
@@ -9963,21 +9979,21 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9963
9979
  align: e.align,
9964
9980
  width: e.width,
9965
9981
  children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" })
9966
- }, t)) }, `skeleton-${t}`)) : G.flatMap((e) => {
9967
- let t = K(e);
9982
+ }, t)) }, `skeleton-${t}`)) : W.flatMap((e) => {
9983
+ let t = G(e);
9968
9984
  if (t.length === 0) return [/* @__PURE__ */ h(go, {
9969
9985
  onClick: o ? () => o(e) : void 0,
9970
9986
  children: R.map((t, n) => /* @__PURE__ */ h(yo, {
9971
9987
  align: t.align,
9972
9988
  width: t.width,
9973
9989
  className: bc(t),
9974
- disclosure: q && n === 0 ? "none" : void 0,
9990
+ disclosure: K && n === 0 ? "none" : void 0,
9975
9991
  children: t.render(e)
9976
9992
  }, n))
9977
9993
  }, n(e))];
9978
- let r = H(e);
9994
+ let r = ne(e);
9979
9995
  return [/* @__PURE__ */ h(go, {
9980
- onClick: () => ne(e),
9996
+ onClick: () => re(e),
9981
9997
  expanded: r,
9982
9998
  children: R.map((t, n) => /* @__PURE__ */ h(yo, {
9983
9999
  align: t.align,
@@ -9986,7 +10002,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
9986
10002
  disclosure: n === 0 ? r ? "open" : "closed" : void 0,
9987
10003
  children: t.render(e)
9988
10004
  }, n))
9989
- }, n(e)), ...r ? W(t).map((t) => /* @__PURE__ */ h(go, {
10005
+ }, n(e)), ...r ? U(t).map((t) => /* @__PURE__ */ h(go, {
9990
10006
  nested: !0,
9991
10007
  onClick: o ? () => o(t) : void 0,
9992
10008
  children: R.map((e, n) => /* @__PURE__ */ h(yo, {
@@ -10567,7 +10583,7 @@ function $c({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
10567
10583
  }), /* @__PURE__ */ h("span", {
10568
10584
  className: "select-iconpicker__chevron",
10569
10585
  "aria-hidden": "true",
10570
- children: /* @__PURE__ */ h(K, {})
10586
+ children: /* @__PURE__ */ h(G, {})
10571
10587
  })]
10572
10588
  });
10573
10589
  return /* @__PURE__ */ g("div", {
@@ -10960,12 +10976,12 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
10960
10976
  if (O(e)) return;
10961
10977
  let t = new Date(e);
10962
10978
  r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(Pl(t, r)), r || w(!1);
10963
- }, H = (e) => {
10979
+ }, ne = (e) => {
10964
10980
  let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
10965
10981
  o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Pl(o, !0));
10966
- }, ne = () => {
10982
+ }, re = () => {
10967
10983
  n(""), w(!1);
10968
- }, re = /* @__PURE__ */ g("div", {
10984
+ }, ie = /* @__PURE__ */ g("div", {
10969
10985
  className: `select-input-wrap${c ? " select-input-wrap--error" : ""}`,
10970
10986
  children: [/* @__PURE__ */ h("button", {
10971
10987
  id: S,
@@ -11002,7 +11018,7 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
11002
11018
  onClose: () => w(!1),
11003
11019
  placement: "bottom-start",
11004
11020
  role: "dialog",
11005
- activator: re,
11021
+ activator: ie,
11006
11022
  children: /* @__PURE__ */ g("div", {
11007
11023
  className: "select-datefield__pop",
11008
11024
  children: [
@@ -11014,7 +11030,7 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
11014
11030
  className: "select-datepicker__nav",
11015
11031
  "aria-label": te[0],
11016
11032
  onClick: () => ee(-1),
11017
- children: /* @__PURE__ */ h(G, {})
11033
+ children: /* @__PURE__ */ h(W, {})
11018
11034
  }),
11019
11035
  M === "year" ? /* @__PURE__ */ g("span", {
11020
11036
  className: "select-datepicker__monthlabel",
@@ -11028,14 +11044,14 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
11028
11044
  className: "select-datepicker__monthlabel select-datefield__modebtn",
11029
11045
  "aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
11030
11046
  onClick: () => N("year"),
11031
- children: [M === "day" ? `${wl[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(K, {})]
11047
+ children: [M === "day" ? `${wl[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(G, {})]
11032
11048
  }),
11033
11049
  /* @__PURE__ */ h("button", {
11034
11050
  type: "button",
11035
11051
  className: "select-datepicker__nav",
11036
11052
  "aria-label": te[1],
11037
11053
  onClick: () => ee(1),
11038
- children: /* @__PURE__ */ h(W, {})
11054
+ children: /* @__PURE__ */ h(U, {})
11039
11055
  })
11040
11056
  ]
11041
11057
  }),
@@ -11104,24 +11120,24 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
11104
11120
  className: "select-input select-datefield__time-input",
11105
11121
  "aria-label": "Horário",
11106
11122
  value: T ? `${Dl(T.getHours())}:${Dl(T.getMinutes())}` : "",
11107
- onChange: (e) => H(e.target.value)
11123
+ onChange: (e) => ne(e.target.value)
11108
11124
  })]
11109
11125
  }),
11110
11126
  /* @__PURE__ */ g("div", {
11111
11127
  className: "select-datefield__footer",
11112
- children: [p && T ? /* @__PURE__ */ h(U, {
11128
+ children: [p && T ? /* @__PURE__ */ h(H, {
11113
11129
  variant: "secondary",
11114
11130
  inline: !0,
11115
- onClick: ne,
11131
+ onClick: re,
11116
11132
  children: "Limpar"
11117
11133
  }) : /* @__PURE__ */ h("span", {}), /* @__PURE__ */ g("div", {
11118
11134
  className: "select-datefield__footer-right",
11119
- children: [!O(z) && /* @__PURE__ */ h(U, {
11135
+ children: [!O(z) && /* @__PURE__ */ h(H, {
11120
11136
  variant: "secondary",
11121
11137
  inline: !0,
11122
11138
  onClick: () => V(z),
11123
11139
  children: "Hoje"
11124
- }), r && /* @__PURE__ */ h(U, {
11140
+ }), r && /* @__PURE__ */ h(H, {
11125
11141
  variant: "primary",
11126
11142
  inline: !0,
11127
11143
  onClick: () => w(!1),
@@ -11181,7 +11197,7 @@ function Bl({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
11181
11197
  }), /* @__PURE__ */ h("span", {
11182
11198
  className: `select-facet__caret${r ? " is-open" : ""}`,
11183
11199
  "aria-hidden": "true",
11184
- children: /* @__PURE__ */ h(K, {})
11200
+ children: /* @__PURE__ */ h(G, {})
11185
11201
  })]
11186
11202
  }),
11187
11203
  children: [
@@ -11431,7 +11447,7 @@ var Vl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
11431
11447
  }, e.value)), /* @__PURE__ */ h("span", {
11432
11448
  className: "select-tagselect__caret",
11433
11449
  "aria-hidden": "true",
11434
- children: /* @__PURE__ */ h(K, {})
11450
+ children: /* @__PURE__ */ h(G, {})
11435
11451
  })]
11436
11452
  }),
11437
11453
  children: /* @__PURE__ */ g("div", {
@@ -11523,53 +11539,98 @@ var Vl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
11523
11539
  })
11524
11540
  ]
11525
11541
  });
11526
- }), Wl = n(null), Gl = 220, Kl = 4e3, ql = 8, Jl = .04, Yl = 5;
11527
- function Xl({ children: e }) {
11528
- let [t, n] = f([]), r = d(0), a = d(/* @__PURE__ */ new Map()), s = i((e) => {
11529
- n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
11530
- }, []), c = i((e) => {
11531
- let t = a.current.get(e);
11532
- t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
11542
+ }), Wl = n(null), Gl = 220, Kl = 6e3, ql = 8, Jl = .04, Yl = 5;
11543
+ function Xl({ variant: e }) {
11544
+ return e === "neutral" ? null : /* @__PURE__ */ g("svg", {
11545
+ className: "select-toast__icon",
11546
+ viewBox: "0 0 20 20",
11547
+ fill: "none",
11548
+ stroke: "currentColor",
11549
+ strokeWidth: "1.8",
11550
+ strokeLinecap: "round",
11551
+ strokeLinejoin: "round",
11552
+ "aria-hidden": "true",
11553
+ children: [
11554
+ /* @__PURE__ */ h("circle", {
11555
+ cx: "10",
11556
+ cy: "10",
11557
+ r: "8"
11558
+ }),
11559
+ e === "success" && /* @__PURE__ */ h("path", { d: "M6.5 10.2l2.3 2.3 4.7-4.9" }),
11560
+ e === "error" && /* @__PURE__ */ h("path", { d: "M10 6v4.6M10 13.6v.1" }),
11561
+ e === "info" && /* @__PURE__ */ h("path", { d: "M10 9v5M10 6.2v.1" })
11562
+ ]
11563
+ });
11564
+ }
11565
+ function Zl({ children: e }) {
11566
+ let [t, n] = f([]), [r, a] = f(!1), s = d(0), c = d(/* @__PURE__ */ new Map()), l = i((e) => {
11567
+ n((t) => t.filter((t) => t.id !== e)), c.current.delete(e);
11568
+ }, []), p = i((e) => {
11569
+ let t = c.current.get(e);
11570
+ t != null && t.timer && clearTimeout(t.timer), n((t) => t.map((t) => t.id === e ? {
11533
11571
  ...t,
11534
11572
  exiting: !0
11535
- } : t)), a.current.set(e, setTimeout(() => s(e), Gl));
11536
- }, [s]), l = i((e, t) => {
11537
- let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? Kl;
11573
+ } : t)), c.current.set(e, {
11574
+ remaining: 0,
11575
+ startedAt: null,
11576
+ timer: setTimeout(() => l(e), Gl)
11577
+ });
11578
+ }, [l]), m = i((e) => {
11579
+ let t = c.current.get(e);
11580
+ !t || t.startedAt !== null || t.remaining <= 0 || (t.startedAt = Date.now(), t.timer = setTimeout(() => p(e), t.remaining));
11581
+ }, [p]), v = i((e, t) => {
11582
+ let r = ++s.current, i = (t == null ? void 0 : t.duration) ?? Kl;
11538
11583
  n((n) => [...n, {
11539
- id: i,
11584
+ id: r,
11540
11585
  content: e,
11541
11586
  variant: (t == null ? void 0 : t.variant) ?? "neutral",
11542
- action: t == null ? void 0 : t.action
11543
- }]), o > 0 && a.current.set(i, setTimeout(() => c(i), o));
11544
- }, [c]);
11587
+ action: t == null ? void 0 : t.action,
11588
+ duration: i
11589
+ }]), i > 0 && (c.current.set(r, {
11590
+ remaining: i,
11591
+ startedAt: null
11592
+ }), m(r));
11593
+ }, [m]), y = i(() => {
11594
+ a(!0), c.current.forEach((e) => {
11595
+ e.startedAt !== null && e.timer && (clearTimeout(e.timer), e.remaining -= Date.now() - e.startedAt, e.startedAt = null);
11596
+ });
11597
+ }, []), b = i(() => {
11598
+ a(!1), t.forEach((e) => !e.exiting && m(e.id));
11599
+ }, [t, m]);
11545
11600
  o(() => {
11546
- let e = a.current;
11601
+ let e = c.current;
11547
11602
  return () => {
11548
- e.forEach((e) => clearTimeout(e)), e.clear();
11603
+ e.forEach((e) => e.timer && clearTimeout(e.timer)), e.clear();
11549
11604
  };
11550
11605
  }, []);
11551
- let p = u(() => ({
11552
- show: l,
11553
- success: (e, t) => l(e, {
11606
+ let x = u(() => ({
11607
+ show: v,
11608
+ success: (e, t) => v(e, {
11554
11609
  variant: "success",
11555
11610
  duration: t
11556
11611
  }),
11557
- error: (e, t) => l(e, {
11612
+ error: (e, t) => v(e, {
11558
11613
  variant: "error",
11559
11614
  duration: t
11560
11615
  }),
11561
- info: (e, t) => l(e, {
11616
+ info: (e, t) => v(e, {
11562
11617
  variant: "info",
11563
11618
  duration: t
11564
11619
  })
11565
- }), [l]);
11620
+ }), [v]);
11566
11621
  return /* @__PURE__ */ g(Wl.Provider, {
11567
- value: p,
11622
+ value: x,
11568
11623
  children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
11569
- className: "select select-toasts",
11624
+ className: `select select-toasts${r ? " is-paused" : ""}`,
11570
11625
  role: "region",
11571
11626
  "aria-live": "polite",
11572
11627
  "aria-label": "Notificações",
11628
+ onMouseEnter: y,
11629
+ onMouseLeave: b,
11630
+ onFocus: y,
11631
+ onBlur: (e) => {
11632
+ e.currentTarget.contains(e.relatedTarget) || b();
11633
+ },
11573
11634
  children: t.map((e, n) => {
11574
11635
  let r = t.length - 1 - n, i = e.exiting || r >= Yl, a = {
11575
11636
  transform: `translate(-50%, ${-r * ql}px) scale(${1 - r * Jl})`,
@@ -11582,25 +11643,37 @@ function Xl({ children: e }) {
11582
11643
  role: "status",
11583
11644
  style: a,
11584
11645
  children: [
11585
- /* @__PURE__ */ h("span", {
11646
+ /* @__PURE__ */ h(Xl, { variant: e.variant }),
11647
+ /* @__PURE__ */ g("span", {
11586
11648
  className: "select-toast__content",
11587
- children: e.content
11649
+ children: [/* @__PURE__ */ h("span", {
11650
+ className: "select-toast__text",
11651
+ children: e.content
11652
+ }), e.action ? /* @__PURE__ */ h("span", {
11653
+ className: "select-toast__actions",
11654
+ children: /* @__PURE__ */ h(H, {
11655
+ variant: "secondary",
11656
+ size: "sm",
11657
+ inline: !0,
11658
+ onClick: () => {
11659
+ var t;
11660
+ (t = e.action) == null || t.onAction(), p(e.id);
11661
+ },
11662
+ children: e.action.label
11663
+ })
11664
+ }) : null]
11588
11665
  }),
11589
- e.action ? /* @__PURE__ */ h("button", {
11590
- type: "button",
11591
- className: "select-toast__action",
11592
- onClick: () => {
11593
- var t;
11594
- (t = e.action) == null || t.onAction(), c(e.id);
11595
- },
11596
- children: e.action.label
11597
- }) : null,
11598
11666
  /* @__PURE__ */ h("button", {
11599
11667
  type: "button",
11600
11668
  className: "select-toast__close",
11601
11669
  "aria-label": "Fechar",
11602
- onClick: () => c(e.id),
11670
+ onClick: () => p(e.id),
11603
11671
  children: /* @__PURE__ */ h(le, {})
11672
+ }),
11673
+ e.duration > 0 && !e.exiting && /* @__PURE__ */ h("span", {
11674
+ className: "select-toast__time",
11675
+ "aria-hidden": "true",
11676
+ style: { animationDuration: `${e.duration}ms` }
11604
11677
  })
11605
11678
  ]
11606
11679
  }, e.id);
@@ -11608,14 +11681,14 @@ function Xl({ children: e }) {
11608
11681
  }), document.body)]
11609
11682
  });
11610
11683
  }
11611
- function Zl() {
11684
+ function Ql() {
11612
11685
  let e = a(Wl);
11613
11686
  if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
11614
11687
  return e;
11615
11688
  }
11616
11689
  //#endregion
11617
11690
  //#region src/SelectPreviewFrame.tsx
11618
- var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu = r(function({ src: e, sandbox: t = Ql, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: u, notice: p, iframeRef: _, desktopWidth: v = eu, className: y, ...b }, x) {
11691
+ var $l = "allow-scripts allow-same-origin allow-forms", eu = 390, tu = 1280, nu = r(function({ src: e, sandbox: t = $l, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: u, notice: p, iframeRef: _, desktopWidth: v = tu, className: y, ...b }, x) {
11619
11692
  let S = ca(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
11620
11693
  w: 0,
11621
11694
  h: 0
@@ -11633,7 +11706,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11633
11706
  });
11634
11707
  return t.observe(e), () => t.disconnect();
11635
11708
  }, []);
11636
- let M = C === "mobile" ? $l : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
11709
+ let M = C === "mobile" ? eu : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
11637
11710
  if (O(!0), u) {
11638
11711
  u();
11639
11712
  return;
@@ -11722,7 +11795,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11722
11795
  })
11723
11796
  })]
11724
11797
  });
11725
- }), nu = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
11798
+ }), ru = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
11726
11799
  if (a === "hero") {
11727
11800
  let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
11728
11801
  className: "select-skeleton select-balance__skel",
@@ -11822,7 +11895,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11822
11895
  children: [/* @__PURE__ */ h("h3", {
11823
11896
  className: "select-balance__title",
11824
11897
  children: t
11825
- }), i && /* @__PURE__ */ h(U, {
11898
+ }), i && /* @__PURE__ */ h(H, {
11826
11899
  variant: "primary",
11827
11900
  size: "sm",
11828
11901
  inline: !0,
@@ -11864,7 +11937,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11864
11937
  })]
11865
11938
  })]
11866
11939
  });
11867
- }), ru = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
11940
+ }), iu = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
11868
11941
  let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, p = e > 0 ? d / e * 100 : 0;
11869
11942
  return /* @__PURE__ */ g("div", {
11870
11943
  ref: l,
@@ -11943,7 +12016,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11943
12016
  })
11944
12017
  ]
11945
12018
  });
11946
- }), iu = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
12019
+ }), au = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
11947
12020
  let p = s != null, _ = p ? {
11948
12021
  role: "button",
11949
12022
  tabIndex: 0,
@@ -11988,7 +12061,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
11988
12061
  })
11989
12062
  ] })]
11990
12063
  });
11991
- }), au = {
12064
+ }), ou = {
11992
12065
  "pt-BR": {
11993
12066
  severity: {
11994
12067
  info: "Para saber",
@@ -12137,42 +12210,42 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
12137
12210
  unread: "Nuevo"
12138
12211
  }
12139
12212
  };
12140
- function ou(e) {
12213
+ function su(e) {
12141
12214
  return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
12142
12215
  }
12143
- function su(e, t) {
12144
- let n = ou(e);
12216
+ function cu(e, t) {
12217
+ let n = su(e);
12145
12218
  return {
12146
12219
  lang: n,
12147
12220
  labels: {
12148
- ...au[n],
12221
+ ...ou[n],
12149
12222
  ...t
12150
12223
  }
12151
12224
  };
12152
12225
  }
12153
- var cu = {
12226
+ var lu = {
12154
12227
  info: "info",
12155
12228
  opportunity: "success",
12156
12229
  warning: "warning",
12157
12230
  critical: "critical"
12158
12231
  };
12159
- function lu(e, t, n) {
12232
+ function uu(e, t, n) {
12160
12233
  return new Intl.NumberFormat(n, {
12161
12234
  style: "currency",
12162
12235
  currency: t,
12163
12236
  maximumFractionDigits: 0
12164
12237
  }).format(e / 100);
12165
12238
  }
12166
- function uu(e, t, n) {
12167
- let r = lu(e.minCents, e.currency, t), i = lu(e.maxCents, e.currency, t);
12239
+ function du(e, t, n) {
12240
+ let r = uu(e.minCents, e.currency, t), i = uu(e.maxCents, e.currency, t);
12168
12241
  return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
12169
12242
  }
12170
- function du(e, t = "pt-BR", n = au[ou(t)]) {
12171
- let r = ou(t), i = lu(e.minCents, e.currency, r), a = lu(e.maxCents, e.currency, r);
12243
+ function fu(e, t = "pt-BR", n = ou[su(t)]) {
12244
+ let r = su(t), i = uu(e.minCents, e.currency, r), a = uu(e.maxCents, e.currency, r);
12172
12245
  return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
12173
12246
  }
12174
- var fu = 864e5;
12175
- function pu(e, t, n, r) {
12247
+ var pu = 864e5;
12248
+ function mu(e, t, n, r) {
12176
12249
  let i = new Date(e.start), a = new Date(e.end);
12177
12250
  if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
12178
12251
  let o = new Intl.DateTimeFormat("en", {
@@ -12184,7 +12257,7 @@ function pu(e, t, n, r) {
12184
12257
  ...s ? {} : { year: "numeric" },
12185
12258
  timeZone: n
12186
12259
  });
12187
- if (a.getTime() - i.getTime() < fu) {
12260
+ if (a.getTime() - i.getTime() < pu) {
12188
12261
  let e = new Intl.DateTimeFormat(t, {
12189
12262
  hour: "2-digit",
12190
12263
  minute: "2-digit",
@@ -12195,8 +12268,8 @@ function pu(e, t, n, r) {
12195
12268
  }
12196
12269
  return r.periodRange(c.format(i), c.format(a));
12197
12270
  }
12198
- function mu({ severity: e, labels: t }) {
12199
- let n = cu[e] ?? "info";
12271
+ function hu({ severity: e, labels: t }) {
12272
+ let n = lu[e] ?? "info";
12200
12273
  return /* @__PURE__ */ g("span", {
12201
12274
  className: `select-insight__sev select-insight__sev--${n}`,
12202
12275
  children: [/* @__PURE__ */ h("span", {
@@ -12205,7 +12278,7 @@ function mu({ severity: e, labels: t }) {
12205
12278
  }), t.severity[e] ?? e]
12206
12279
  });
12207
12280
  }
12208
- function hu({ label: e }) {
12281
+ function gu({ label: e }) {
12209
12282
  return /* @__PURE__ */ g("span", {
12210
12283
  className: "select-insight__new",
12211
12284
  children: [/* @__PURE__ */ h("span", {
@@ -12214,10 +12287,10 @@ function hu({ label: e }) {
12214
12287
  }), e]
12215
12288
  });
12216
12289
  }
12217
- function gu(e) {
12290
+ function _u(e) {
12218
12291
  return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
12219
12292
  }
12220
- function _u({ fraction: e, tone: t = "value", size: n = "md" }) {
12293
+ function vu({ fraction: e, tone: t = "value", size: n = "md" }) {
12221
12294
  let r = Math.max(0, Math.min(1, e)) * 100;
12222
12295
  return /* @__PURE__ */ h("span", {
12223
12296
  className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
@@ -12228,18 +12301,18 @@ function _u({ fraction: e, tone: t = "value", size: n = "md" }) {
12228
12301
  })
12229
12302
  });
12230
12303
  }
12231
- var vu = /* @__PURE__ */ new Set([
12304
+ var yu = /* @__PURE__ */ new Set([
12232
12305
  "metric",
12233
12306
  "comparison",
12234
12307
  "table",
12235
12308
  "items",
12236
12309
  "text"
12237
12310
  ]);
12238
- function yu(e) {
12239
- return vu.has(e.type);
12311
+ function bu(e) {
12312
+ return yu.has(e.type);
12240
12313
  }
12241
- function bu({ block: e }) {
12242
- let t = gu(e.value), n = gu(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
12314
+ function xu({ block: e }) {
12315
+ let t = _u(e.value), n = _u(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
12243
12316
  return /* @__PURE__ */ g("div", {
12244
12317
  className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
12245
12318
  children: [
@@ -12256,7 +12329,7 @@ function bu({ block: e }) {
12256
12329
  className: "select-insight__cmpname",
12257
12330
  children: i ? e.valueLabel : e.label
12258
12331
  }),
12259
- r == null ? null : /* @__PURE__ */ h(_u, {
12332
+ r == null ? null : /* @__PURE__ */ h(vu, {
12260
12333
  fraction: (t ?? 0) / r,
12261
12334
  tone: "own"
12262
12335
  }),
@@ -12272,7 +12345,7 @@ function bu({ block: e }) {
12272
12345
  className: "select-insight__cmpname",
12273
12346
  children: e.baselineLabel
12274
12347
  }),
12275
- r == null ? null : /* @__PURE__ */ h(_u, {
12348
+ r == null ? null : /* @__PURE__ */ h(vu, {
12276
12349
  fraction: (n ?? 0) / r,
12277
12350
  tone: "reference"
12278
12351
  }),
@@ -12290,8 +12363,8 @@ function bu({ block: e }) {
12290
12363
  ]
12291
12364
  });
12292
12365
  }
12293
- function xu({ block: e, renderItem: t }) {
12294
- let n = e.items.map((e) => gu(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
12366
+ function Su({ block: e, renderItem: t }) {
12367
+ let n = e.items.map((e) => _u(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
12295
12368
  return /* @__PURE__ */ g("div", {
12296
12369
  className: "select-insight__box",
12297
12370
  children: [/* @__PURE__ */ h("h5", {
@@ -12304,7 +12377,7 @@ function xu({ block: e, renderItem: t }) {
12304
12377
  className: "select-insight__itemlabel",
12305
12378
  children: (t == null ? void 0 : t(e)) ?? e.label
12306
12379
  }),
12307
- i ? /* @__PURE__ */ h(_u, {
12380
+ i ? /* @__PURE__ */ h(vu, {
12308
12381
  fraction: (n[a] ?? 0) / r,
12309
12382
  size: "sm"
12310
12383
  }) : null,
@@ -12316,14 +12389,14 @@ function xu({ block: e, renderItem: t }) {
12316
12389
  })]
12317
12390
  });
12318
12391
  }
12319
- function Su({ block: e }) {
12392
+ function Cu({ block: e }) {
12320
12393
  let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
12321
12394
  var n;
12322
- return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (gu(e[t.key]) ?? 2) <= 1;
12395
+ return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (_u(e[t.key]) ?? 2) <= 1;
12323
12396
  })).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
12324
12397
  className: "select-insight__share",
12325
- children: [/* @__PURE__ */ h(_u, {
12326
- fraction: gu(n) ?? 0,
12398
+ children: [/* @__PURE__ */ h(vu, {
12399
+ fraction: _u(n) ?? 0,
12327
12400
  size: "sm"
12328
12401
  }), /* @__PURE__ */ h("span", {
12329
12402
  className: "select-insight__sharevalue",
@@ -12352,10 +12425,10 @@ function Su({ block: e }) {
12352
12425
  })]
12353
12426
  }) : null] });
12354
12427
  }
12355
- function Cu({ link: e, primary: t }) {
12428
+ function wu({ link: e, primary: t }) {
12356
12429
  let n = ca(e.href);
12357
12430
  if (!n && !e.onClick) return null;
12358
- let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(W, {})] });
12431
+ let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(U, {})] });
12359
12432
  if (!n) return /* @__PURE__ */ h("button", {
12360
12433
  type: "button",
12361
12434
  className: r,
@@ -12377,8 +12450,8 @@ function Cu({ link: e, primary: t }) {
12377
12450
  children: i
12378
12451
  });
12379
12452
  }
12380
- function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: _, renderItem: v, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
12381
- let { lang: w, labels: T } = su(t, n), E = cu[e.severity] ?? "info", D = e.period ? pu(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(yu), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
12453
+ function Tu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: _, renderItem: v, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
12454
+ let { lang: w, labels: T } = cu(t, n), E = lu[e.severity] ?? "info", D = e.period ? mu(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(bu), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
12382
12455
  className: "select-insight__head",
12383
12456
  children: [/* @__PURE__ */ g("div", {
12384
12457
  className: "select-insight__meta",
@@ -12387,12 +12460,12 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12387
12460
  className: "select-insight__position",
12388
12461
  children: o
12389
12462
  }) : null,
12390
- /* @__PURE__ */ h(mu, {
12463
+ /* @__PURE__ */ h(hu, {
12391
12464
  severity: e.severity,
12392
12465
  labels: T
12393
12466
  }),
12394
12467
  e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
12395
- s && !i ? /* @__PURE__ */ h(hu, { label: T.unread }) : null,
12468
+ s && !i ? /* @__PURE__ */ h(gu, { label: T.unread }) : null,
12396
12469
  i ? /* @__PURE__ */ h(zr, {
12397
12470
  tone: "pro",
12398
12471
  size: "sm",
@@ -12429,7 +12502,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12429
12502
  }),
12430
12503
  /* @__PURE__ */ h("strong", {
12431
12504
  className: "select-insight__stakevalue",
12432
- children: uu(e.impact, w, T)
12505
+ children: du(e.impact, w, T)
12433
12506
  }),
12434
12507
  /* @__PURE__ */ h("span", {
12435
12508
  className: "select-insight__stakenote",
@@ -12478,7 +12551,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12478
12551
  I || u ? /* @__PURE__ */ g("div", {
12479
12552
  className: "select-insight__nowactions",
12480
12553
  children: [
12481
- I ? /* @__PURE__ */ h(Cu, {
12554
+ I ? /* @__PURE__ */ h(wu, {
12482
12555
  link: I,
12483
12556
  primary: !0
12484
12557
  }) : null,
@@ -12504,7 +12577,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12504
12577
  return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
12505
12578
  className: "select-insight__moretext",
12506
12579
  children: e.label
12507
- }), r ? /* @__PURE__ */ h(Cu, {
12580
+ }), r ? /* @__PURE__ */ h(wu, {
12508
12581
  link: r,
12509
12582
  primary: !1
12510
12583
  }) : null] }) }, `${e.target ?? "text"}:${t}`);
@@ -12542,7 +12615,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12542
12615
  }),
12543
12616
  /* @__PURE__ */ h("div", {
12544
12617
  className: "select-insight__tilevalue",
12545
- children: uu(e.impact, w, T)
12618
+ children: du(e.impact, w, T)
12546
12619
  }),
12547
12620
  /* @__PURE__ */ h("div", {
12548
12621
  className: "select-insight__tilenote",
@@ -12553,7 +12626,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12553
12626
  children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
12554
12627
  }) : null
12555
12628
  ]
12556
- }) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(bu, { block: e }, t) : /* @__PURE__ */ g("div", {
12629
+ }) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(xu, { block: e }, t) : /* @__PURE__ */ g("div", {
12557
12630
  className: "select-insight__tile",
12558
12631
  children: [
12559
12632
  /* @__PURE__ */ h("div", {
@@ -12585,10 +12658,10 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12585
12658
  p.content
12586
12659
  ]
12587
12660
  }) : null,
12588
- ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(xu, {
12661
+ ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(Su, {
12589
12662
  block: e,
12590
12663
  renderItem: v
12591
- }, t) : e.type === "table" ? /* @__PURE__ */ h(Su, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
12664
+ }, t) : e.type === "table" ? /* @__PURE__ */ h(Cu, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
12592
12665
  className: "select-insight__text",
12593
12666
  children: [/* @__PURE__ */ h(ye, {}), /* @__PURE__ */ h("span", { children: e.text })]
12594
12667
  }, t) : null)
@@ -12597,7 +12670,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12597
12670
  e.confidence ? T.confidence[e.confidence] ?? e.confidence : null,
12598
12671
  e.sampleLabel ? e.sampleLabel : e.sampleSize == null ? null : T.sample(e.sampleSize.toLocaleString(w)),
12599
12672
  D
12600
- ].filter((e) => !!e), H = /* @__PURE__ */ g("span", {
12673
+ ].filter((e) => !!e), ne = /* @__PURE__ */ g("span", {
12601
12674
  className: "select-insight__methodhead",
12602
12675
  children: [/* @__PURE__ */ h("span", {
12603
12676
  className: "select-insight__methodtitle",
@@ -12606,8 +12679,8 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12606
12679
  className: "select-insight__methodsub",
12607
12680
  children: V.join(" · ")
12608
12681
  }) : null]
12609
- }), ne = e.methodology ? /* @__PURE__ */ h(Eo, {
12610
- title: H,
12682
+ }), re = e.methodology ? /* @__PURE__ */ h(Eo, {
12683
+ title: ne,
12611
12684
  defaultOpen: x,
12612
12685
  className: "select-insight__method",
12613
12686
  children: /* @__PURE__ */ h("p", {
@@ -12616,8 +12689,8 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12616
12689
  })
12617
12690
  }) : V.length ? /* @__PURE__ */ h("div", {
12618
12691
  className: "select-insight__method select-insight__method--static",
12619
- children: H
12620
- }) : null, U = _ ? /* @__PURE__ */ g("div", {
12692
+ children: ne
12693
+ }) : null, H = _ ? /* @__PURE__ */ g("div", {
12621
12694
  className: `select-insight__outcome select-insight__outcome--${_.tone}`,
12622
12695
  children: [
12623
12696
  /* @__PURE__ */ h("span", {
@@ -12653,10 +12726,10 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12653
12726
  children: [
12654
12727
  j,
12655
12728
  M,
12656
- U,
12729
+ H,
12657
12730
  L,
12658
12731
  te,
12659
- ne,
12732
+ re,
12660
12733
  u ? /* @__PURE__ */ g("div", {
12661
12734
  className: "select-insight__foot",
12662
12735
  children: [/* @__PURE__ */ h("div", {
@@ -12671,25 +12744,25 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
12671
12744
  ]
12672
12745
  });
12673
12746
  }
12674
- function Tu({ layout: e = "rows", children: t, className: n, ...r }) {
12747
+ function Eu({ layout: e = "rows", children: t, className: n, ...r }) {
12675
12748
  return /* @__PURE__ */ h("div", {
12676
12749
  ...r,
12677
12750
  className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
12678
12751
  children: t
12679
12752
  });
12680
12753
  }
12681
- function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
12682
- let { lang: _, labels: v } = su(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? lu(e.impact.maxCents, e.impact.currency, _) : null, x = e.impact && e.impact.minCents === e.impact.maxCents ? v.about("").trim() : v.upTo, S = s === "card", C = "select-insightrow" + (S ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), w = i ? /* @__PURE__ */ h("span", {
12754
+ function Du({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
12755
+ let { lang: _, labels: v } = cu(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? uu(e.impact.maxCents, e.impact.currency, _) : null, x = e.impact && e.impact.minCents === e.impact.maxCents ? v.about("").trim() : v.upTo, S = s === "card", C = "select-insightrow" + (S ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), w = i ? /* @__PURE__ */ h("span", {
12683
12756
  className: "select-insightrow__index select-insightrow__index--lock",
12684
12757
  "aria-hidden": "true",
12685
12758
  children: /* @__PURE__ */ h(nt, {})
12686
12759
  }) : r == null ? null : /* @__PURE__ */ h("span", {
12687
12760
  className: `select-insightrow__index${o || S && r === 1 ? " select-insightrow__index--strong" : ""}`,
12688
12761
  children: r
12689
- }), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(mu, {
12762
+ }), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(hu, {
12690
12763
  severity: e.severity,
12691
12764
  labels: v
12692
- }), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(hu, { label: v.unread }) : null, D = S ? /* @__PURE__ */ g(m, { children: [
12765
+ }), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(gu, { label: v.unread }) : null, D = S ? /* @__PURE__ */ g(m, { children: [
12693
12766
  /* @__PURE__ */ g("span", {
12694
12767
  className: "select-insightrow__top",
12695
12768
  children: [
@@ -12717,7 +12790,7 @@ function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
12717
12790
  ]
12718
12791
  }) : null, c ? /* @__PURE__ */ g("span", {
12719
12792
  className: "select-insightrow__cta",
12720
- children: [c, /* @__PURE__ */ h(W, {})]
12793
+ children: [c, /* @__PURE__ */ h(U, {})]
12721
12794
  }) : null]
12722
12795
  }) : null
12723
12796
  ] }) : /* @__PURE__ */ g(m, { children: [
@@ -12755,8 +12828,8 @@ function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
12755
12828
  }
12756
12829
  //#endregion
12757
12830
  //#region src/SelectAssistant.tsx
12758
- var Du = 240;
12759
- function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: c, children: l, scrollKey: u, suggestions: p, onSuggestion: m, onSend: _, placeholder: v, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
12831
+ var Ou = 240;
12832
+ function ku({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: c, children: l, scrollKey: u, suggestions: p, onSuggestion: m, onSend: _, placeholder: v, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
12760
12833
  let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
12761
12834
  o(() => {
12762
12835
  let t = O.current;
@@ -12774,7 +12847,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
12774
12847
  let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
12775
12848
  n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
12776
12849
  top: s,
12777
- behavior: Mu() ? "auto" : "smooth"
12850
+ behavior: Nu() ? "auto" : "smooth"
12778
12851
  }) : t.scrollTop = s);
12779
12852
  }, [
12780
12853
  e,
@@ -12838,7 +12911,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
12838
12911
  className: "select-assistant__body",
12839
12912
  role: "log",
12840
12913
  "aria-live": "polite",
12841
- children: [l, P ? /* @__PURE__ */ h(ju, { label: typeof b == "string" ? b : void 0 }) : null]
12914
+ children: [l, P ? /* @__PURE__ */ h(Mu, { label: typeof b == "string" ? b : void 0 }) : null]
12842
12915
  }),
12843
12916
  (_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
12844
12917
  className: "select-assistant__foot",
@@ -12862,7 +12935,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
12862
12935
  onChange: (e) => M(e.target.value),
12863
12936
  placeholder: v,
12864
12937
  "aria-label": T,
12865
- maxLength: Du,
12938
+ maxLength: Ou,
12866
12939
  autoComplete: "off",
12867
12940
  enterKeyHint: "send",
12868
12941
  disabled: y
@@ -12894,7 +12967,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
12894
12967
  })]
12895
12968
  });
12896
12969
  }
12897
- function ku({ from: e, bare: t = !1, children: n }) {
12970
+ function Au({ from: e, bare: t = !1, children: n }) {
12898
12971
  return /* @__PURE__ */ h("div", {
12899
12972
  className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
12900
12973
  children: /* @__PURE__ */ h("div", {
@@ -12903,13 +12976,13 @@ function ku({ from: e, bare: t = !1, children: n }) {
12903
12976
  })
12904
12977
  });
12905
12978
  }
12906
- function Au({ children: e }) {
12979
+ function ju({ children: e }) {
12907
12980
  return /* @__PURE__ */ h("div", {
12908
12981
  className: "select-chat__turn",
12909
12982
  children: e
12910
12983
  });
12911
12984
  }
12912
- function ju({ label: e = "Escrevendo…" }) {
12985
+ function Mu({ label: e = "Escrevendo…" }) {
12913
12986
  return /* @__PURE__ */ h("div", {
12914
12987
  className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
12915
12988
  role: "status",
@@ -12925,19 +12998,19 @@ function ju({ label: e = "Escrevendo…" }) {
12925
12998
  })
12926
12999
  });
12927
13000
  }
12928
- function Mu() {
13001
+ function Nu() {
12929
13002
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
12930
13003
  }
12931
13004
  //#endregion
12932
13005
  //#region src/SelectNumberedList.tsx
12933
- function Nu({ children: e, className: t, ...n }) {
13006
+ function Pu({ children: e, className: t, ...n }) {
12934
13007
  return /* @__PURE__ */ h("ol", {
12935
13008
  ...n,
12936
13009
  className: `select-numlist${t ? " " + t : ""}`,
12937
13010
  children: e
12938
13011
  });
12939
13012
  }
12940
- function Pu({ title: e, children: t, className: n, ...r }) {
13013
+ function Fu({ title: e, children: t, className: n, ...r }) {
12941
13014
  return /* @__PURE__ */ h("li", {
12942
13015
  ...r,
12943
13016
  className: `select-numlist__item${n ? " " + n : ""}`,
@@ -12955,7 +13028,7 @@ function Pu({ title: e, children: t, className: n, ...r }) {
12955
13028
  }
12956
13029
  //#endregion
12957
13030
  //#region src/SelectChartCard.tsx
12958
- var Fu = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
13031
+ var Iu = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
12959
13032
  let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
12960
13033
  return /* @__PURE__ */ g("div", {
12961
13034
  ref: p,
@@ -12998,7 +13071,7 @@ var Fu = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
12998
13071
  });
12999
13072
  //#endregion
13000
13073
  //#region src/chartUtils.ts
13001
- function Iu() {
13074
+ function Lu() {
13002
13075
  let [e, t] = f(1);
13003
13076
  return l(() => {
13004
13077
  let e = () => {
@@ -13008,8 +13081,8 @@ function Iu() {
13008
13081
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
13009
13082
  }, []), e;
13010
13083
  }
13011
- function Lu(e) {
13012
- let t = d(null), [n, r] = f(0), i = Iu();
13084
+ function Ru(e) {
13085
+ let t = d(null), [n, r] = f(0), i = Lu();
13013
13086
  return l(() => {
13014
13087
  let e = t.current;
13015
13088
  if (!e) return;
@@ -13026,7 +13099,7 @@ function Lu(e) {
13026
13099
  height: Math.round(e * i)
13027
13100
  };
13028
13101
  }
13029
- function Ru(e, t) {
13102
+ function zu(e, t) {
13030
13103
  let [n, r] = f(t);
13031
13104
  return l(() => {
13032
13105
  let t = e.current;
@@ -13040,15 +13113,15 @@ function Ru(e, t) {
13040
13113
  return i.observe(t), () => i.disconnect();
13041
13114
  }, [e]), n;
13042
13115
  }
13043
- function zu(e) {
13116
+ function Bu(e) {
13044
13117
  if (e <= 0) return 1;
13045
13118
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
13046
13119
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
13047
13120
  }
13048
- function Bu(e, t = 4) {
13121
+ function Vu(e, t = 4) {
13049
13122
  return Array.from({ length: t + 1 }, (n, r) => e / t * r);
13050
13123
  }
13051
- function Vu(e, t = 5) {
13124
+ function Hu(e, t = 5) {
13052
13125
  if (!(e > 0)) return {
13053
13126
  max: 1,
13054
13127
  values: [0, 1]
@@ -13060,10 +13133,10 @@ function Vu(e, t = 5) {
13060
13133
  values: s
13061
13134
  };
13062
13135
  }
13063
- function Hu(e) {
13136
+ function Uu(e) {
13064
13137
  return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
13065
13138
  }
13066
- function Uu(e) {
13139
+ function Wu(e) {
13067
13140
  let t = e.length;
13068
13141
  if (t === 0) return "";
13069
13142
  if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
@@ -13087,23 +13160,23 @@ function Uu(e) {
13087
13160
  }
13088
13161
  return s;
13089
13162
  }
13090
- function Wu(e, t) {
13163
+ function Gu(e, t) {
13091
13164
  if (e.length === 0) return "";
13092
13165
  let n = e[0], r = e[e.length - 1];
13093
- return `${Uu(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
13166
+ return `${Wu(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
13094
13167
  }
13095
- function Gu(e, t) {
13096
- return e.length === 0 || t.length === 0 ? "" : `${Uu(e)} ${Uu([...t].reverse()).replace(/^M/, "L")} Z`;
13168
+ function Ku(e, t) {
13169
+ return e.length === 0 || t.length === 0 ? "" : `${Wu(e)} ${Wu([...t].reverse()).replace(/^M/, "L")} Z`;
13097
13170
  }
13098
- function Ku(e, t, n, r) {
13171
+ function qu(e, t, n, r) {
13099
13172
  let i = (r - 90) * Math.PI / 180;
13100
13173
  return [e + n * Math.cos(i), t + n * Math.sin(i)];
13101
13174
  }
13102
- function qu(e, t, n, r, i, a) {
13103
- let [o, s] = Ku(e, t, n, i), [c, l] = Ku(e, t, n, a), [u, d] = Ku(e, t, r, a), [f, p] = Ku(e, t, r, i), m = +(a - i > 180);
13175
+ function Ju(e, t, n, r, i, a) {
13176
+ let [o, s] = qu(e, t, n, i), [c, l] = qu(e, t, n, a), [u, d] = qu(e, t, r, a), [f, p] = qu(e, t, r, i), m = +(a - i > 180);
13104
13177
  return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
13105
13178
  }
13106
- var Ju = [
13179
+ var Yu = [
13107
13180
  "var(--select-chart-1)",
13108
13181
  "var(--select-chart-2)",
13109
13182
  "var(--select-chart-3)",
@@ -13111,13 +13184,13 @@ var Ju = [
13111
13184
  "var(--select-chart-5)"
13112
13185
  ];
13113
13186
  function X(e) {
13114
- return Ju[e % Ju.length];
13187
+ return Yu[e % Yu.length];
13115
13188
  }
13116
13189
  function Z(e) {
13117
13190
  let t = Math.abs(e);
13118
13191
  return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
13119
13192
  }
13120
- var Yu = {
13193
+ var Xu = {
13121
13194
  top: 16,
13122
13195
  right: 22,
13123
13196
  bottom: 32,
@@ -13125,8 +13198,8 @@ var Yu = {
13125
13198
  };
13126
13199
  //#endregion
13127
13200
  //#region src/SelectSparkline.tsx
13128
- function Xu({ data: e, color: t, height: n = 40, className: r, ...i }) {
13129
- let { ref: a, width: o } = Lu(n), c = t ?? X(0), l = s(), u = null;
13201
+ function Zu({ data: e, color: t, height: n = 40, className: r, ...i }) {
13202
+ let { ref: a, width: o } = Ru(n), c = t ?? X(0), l = s(), u = null;
13130
13203
  if (o > 0 && e.length > 1) {
13131
13204
  let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
13132
13205
  u = /* @__PURE__ */ g("svg", {
@@ -13152,11 +13225,11 @@ function Xu({ data: e, color: t, height: n = 40, className: r, ...i }) {
13152
13225
  })]
13153
13226
  }) }),
13154
13227
  /* @__PURE__ */ h("path", {
13155
- d: Wu(a, n - 4),
13228
+ d: Gu(a, n - 4),
13156
13229
  fill: `url(#${l}-sa)`
13157
13230
  }),
13158
13231
  /* @__PURE__ */ h("path", {
13159
- d: Uu(a),
13232
+ d: Wu(a),
13160
13233
  fill: "none",
13161
13234
  stroke: c,
13162
13235
  strokeWidth: 2,
@@ -13235,7 +13308,7 @@ function $({ tip: e, className: t, ...n }) {
13235
13308
  }, t))]
13236
13309
  });
13237
13310
  }
13238
- function Zu({ tip: e, onDismiss: t }) {
13311
+ function Qu({ tip: e, onDismiss: t }) {
13239
13312
  return o(() => {
13240
13313
  if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
13241
13314
  window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
@@ -13248,8 +13321,8 @@ function Zu({ tip: e, onDismiss: t }) {
13248
13321
  }
13249
13322
  //#endregion
13250
13323
  //#region src/SelectBarChart.tsx
13251
- function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
13252
- let { ref: o, width: c } = Lu(t), l = Q(), u = s(), d = n ?? X(0), f = zu(Math.max(0, ...e.map((e) => e.value))), p = Yu, m = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? m / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
13324
+ function $u({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
13325
+ let { ref: o, width: c } = Ru(t), l = Q(), u = s(), d = n ?? X(0), f = Bu(Math.max(0, ...e.map((e) => e.value))), p = Xu, m = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? m / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
13253
13326
  return /* @__PURE__ */ g("div", {
13254
13327
  ...a,
13255
13328
  className: `select-chart-wrap${i ? " " + i : ""}`,
@@ -13275,7 +13348,7 @@ function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
13275
13348
  stopOpacity: .62
13276
13349
  })]
13277
13350
  }) }),
13278
- Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13351
+ Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13279
13352
  x1: p.left,
13280
13353
  x2: c - p.right,
13281
13354
  y1: x(e),
@@ -13325,14 +13398,14 @@ function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
13325
13398
  }
13326
13399
  //#endregion
13327
13400
  //#region src/SelectLineChart.tsx
13328
- var $u = (e) => e != null && Number.isFinite(e), ed = 64;
13329
- function td(e, t) {
13401
+ var ed = (e) => e != null && Number.isFinite(e), td = 64;
13402
+ function nd(e, t) {
13330
13403
  let n = [], r = [];
13331
- for (let i = 0; i < t; i++) $u(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
13404
+ for (let i = 0; i < t; i++) ed(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
13332
13405
  return r.length && n.push(r), n;
13333
13406
  }
13334
- function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
13335
- let { ref: l, width: u } = Lu(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = Vu(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = Yu, x = Math.max(0, u - b.left - b.right), S = r - b.top - b.bottom, C = n.length, w = (e) => b.left + (C <= 1 ? x / 2 : e / (C - 1) * x), T = (e) => b.top + S - e / v * S, E = C > 1 ? x / (C - 1) : x, D = Math.max(1, Math.ceil(C / 7), Math.ceil(ed / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= ed, k = b.top + S;
13407
+ function rd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
13408
+ let { ref: l, width: u } = Ru(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = Hu(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = Xu, x = Math.max(0, u - b.left - b.right), S = r - b.top - b.bottom, C = n.length, w = (e) => b.left + (C <= 1 ? x / 2 : e / (C - 1) * x), T = (e) => b.top + S - e / v * S, E = C > 1 ? x / (C - 1) : x, D = Math.max(1, Math.ceil(C / 7), Math.ceil(td / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= td, k = b.top + S;
13336
13409
  return /* @__PURE__ */ g("div", {
13337
13410
  ...c,
13338
13411
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -13387,7 +13460,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
13387
13460
  si: t
13388
13461
  })).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
13389
13462
  let r = e.color ?? X(n);
13390
- return /* @__PURE__ */ h("g", { children: td(e.data, C).map((i, o) => {
13463
+ return /* @__PURE__ */ h("g", { children: nd(e.data, C).map((i, o) => {
13391
13464
  let s = i.map((t) => [w(t), T(e.data[t])]);
13392
13465
  return s.length === 1 ? /* @__PURE__ */ h("circle", {
13393
13466
  cx: s[0][0],
@@ -13396,11 +13469,11 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
13396
13469
  fill: r,
13397
13470
  className: "select-chart__dot select-chart__dot--lone"
13398
13471
  }, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
13399
- d: Wu(s, k),
13472
+ d: Gu(s, k),
13400
13473
  fill: `url(#${p}-a${n})`,
13401
13474
  className: "select-chart__area"
13402
13475
  }), /* @__PURE__ */ h("path", {
13403
- d: Uu(s),
13476
+ d: Wu(s),
13404
13477
  fill: "none",
13405
13478
  stroke: r,
13406
13479
  strokeWidth: e.dashed ? 1.75 : 2.25,
@@ -13413,7 +13486,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
13413
13486
  })] }, o);
13414
13487
  }) }, n);
13415
13488
  }),
13416
- m != null && e.map((e, t) => $u(e.data[m]) ? /* @__PURE__ */ h("circle", {
13489
+ m != null && e.map((e, t) => ed(e.data[m]) ? /* @__PURE__ */ h("circle", {
13417
13490
  cx: w(m),
13418
13491
  cy: T(e.data[m] ?? 0),
13419
13492
  r: 3.5,
@@ -13440,7 +13513,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
13440
13513
  let r = e.map((e, t) => ({
13441
13514
  s: e,
13442
13515
  si: t
13443
- })).filter(({ s: e }) => $u(e.data[n]));
13516
+ })).filter(({ s: e }) => ed(e.data[n]));
13444
13517
  if (!r.length) {
13445
13518
  d.hide();
13446
13519
  return;
@@ -13471,8 +13544,8 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
13471
13544
  }
13472
13545
  //#endregion
13473
13546
  //#region src/SelectStackedArea.tsx
13474
- function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
13475
- let { ref: o, width: c } = Lu(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = Array(m).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = zu(Math.max(0, ..._)), b = Yu, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = v[v.length - 1];
13547
+ function id({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
13548
+ let { ref: o, width: c } = Ru(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = Array(m).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Bu(Math.max(0, ..._)), b = Xu, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = v[v.length - 1];
13476
13549
  return /* @__PURE__ */ g("div", {
13477
13550
  ...a,
13478
13551
  className: `select-chart-wrap${i ? " " + i : ""}`,
@@ -13501,7 +13574,7 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
13501
13574
  })]
13502
13575
  }, t);
13503
13576
  }) }),
13504
- Bu(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13577
+ Vu(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13505
13578
  x1: b.left,
13506
13579
  x2: c - b.right,
13507
13580
  y1: w(e),
@@ -13520,10 +13593,10 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
13520
13593
  return /* @__PURE__ */ g("g", {
13521
13594
  className: "select-chart__area",
13522
13595
  children: [/* @__PURE__ */ h("path", {
13523
- d: Gu(i, a),
13596
+ d: Ku(i, a),
13524
13597
  fill: `url(#${u}-b${n})`
13525
13598
  }), /* @__PURE__ */ h("path", {
13526
- d: Uu(i),
13599
+ d: Wu(i),
13527
13600
  fill: "none",
13528
13601
  stroke: r,
13529
13602
  strokeWidth: 1.5,
@@ -13577,11 +13650,11 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
13577
13650
  }
13578
13651
  //#endregion
13579
13652
  //#region src/SelectComboChart.tsx
13580
- function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
13581
- let { ref: l, width: u } = Lu(r), d = Q(), p = s(), [m, _] = f(null), v = {
13582
- ...Yu,
13653
+ function ad({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
13654
+ let { ref: l, width: u } = Ru(r), d = Q(), p = s(), [m, _] = f(null), v = {
13655
+ ...Xu,
13583
13656
  right: 58
13584
- }, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = zu(Math.max(0, ...t.data)), C = zu(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
13657
+ }, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Bu(Math.max(0, ...t.data)), C = Bu(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
13585
13658
  return /* @__PURE__ */ g("div", {
13586
13659
  ...c,
13587
13660
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -13607,7 +13680,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
13607
13680
  stopOpacity: .55
13608
13681
  })]
13609
13682
  }) }),
13610
- Bu(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13683
+ Vu(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
13611
13684
  x1: v.left,
13612
13685
  x2: u - v.right,
13613
13686
  y1: A(e),
@@ -13621,7 +13694,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
13621
13694
  textAnchor: "end",
13622
13695
  children: i(e)
13623
13696
  })] }, t)),
13624
- Bu(C).map((e, t) => /* @__PURE__ */ h("text", {
13697
+ Vu(C).map((e, t) => /* @__PURE__ */ h("text", {
13625
13698
  x: u - 4,
13626
13699
  y: j(e),
13627
13700
  className: "select-chart__ylabel",
@@ -13650,7 +13723,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
13650
13723
  className: "select-chart__crosshair"
13651
13724
  }),
13652
13725
  /* @__PURE__ */ h("path", {
13653
- d: Uu(N),
13726
+ d: Wu(N),
13654
13727
  fill: "none",
13655
13728
  stroke: O,
13656
13729
  strokeWidth: 2.5,
@@ -13708,8 +13781,8 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
13708
13781
  }
13709
13782
  //#endregion
13710
13783
  //#region src/SelectDonut.tsx
13711
- var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...u }, f) {
13712
- let p = Q(), m = s(), _ = d(null), v = Ru(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
13784
+ var od = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...u }, f) {
13785
+ let p = Q(), m = s(), _ = d(null), v = zu(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
13713
13786
  return /* @__PURE__ */ g("div", {
13714
13787
  ref: f,
13715
13788
  ...u,
@@ -13752,7 +13825,7 @@ var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
13752
13825
  w += e.value;
13753
13826
  let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
13754
13827
  return /* @__PURE__ */ h("path", {
13755
- d: qu(b, x, S, C, c, l),
13828
+ d: Ju(b, x, S, C, c, l),
13756
13829
  fill: `url(#${m}-s${t})`,
13757
13830
  className: "select-chart__seg",
13758
13831
  onMouseEnter: () => {
@@ -13800,9 +13873,9 @@ var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
13800
13873
  /* @__PURE__ */ h($, { tip: p.tip })
13801
13874
  ]
13802
13875
  });
13803
- }), od = 6.4, sd = 12;
13804
- function cd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
13805
- let { ref: u, width: d } = Lu(n), f = Q(), p = s(), m = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Vu(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Yu, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, _ * 40), O = i ? Math.min(T * .5, 44) : D / _, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * od + sd) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
13876
+ }), sd = 6.4, cd = 12;
13877
+ function ld({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
13878
+ let { ref: u, width: d } = Ru(n), f = Q(), p = s(), m = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Hu(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Xu, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, _ * 40), O = i ? Math.min(T * .5, 44) : D / _, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * sd + cd) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
13806
13879
  if (o) {
13807
13880
  let e = o(t);
13808
13881
  return e ? {
@@ -13969,7 +14042,7 @@ function cd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
13969
14042
  }
13970
14043
  //#endregion
13971
14044
  //#region src/SelectChartLegend.tsx
13972
- function ld({ items: e, className: t, ...n }) {
14045
+ function ud({ items: e, className: t, ...n }) {
13973
14046
  return /* @__PURE__ */ h("div", {
13974
14047
  ...n,
13975
14048
  className: `select-chartlegend${t ? " " + t : ""}`,
@@ -13998,7 +14071,7 @@ function ld({ items: e, className: t, ...n }) {
13998
14071
  }
13999
14072
  //#endregion
14000
14073
  //#region src/SelectShareBar.tsx
14001
- function ud({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
14074
+ function dd({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
14002
14075
  let u = e.map((e, t) => ({
14003
14076
  ...e,
14004
14077
  key: e.key ?? e.label,
@@ -14103,7 +14176,7 @@ function ud({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
14103
14176
  }
14104
14177
  //#endregion
14105
14178
  //#region src/SelectRing.tsx
14106
- var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone: i = "brand", label: a, caption: o, inverse: s = !1, ariaLabel: c, className: l, style: u, ...d }, f) {
14179
+ var fd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone: i = "brand", label: a, caption: o, inverse: s = !1, ariaLabel: c, className: l, style: u, ...d }, f) {
14107
14180
  let p = t > 0 ? t : 100, m = Math.max(0, Math.min(1, (Number.isFinite(e) ? e : 0) / p)), _ = (r ?? Math.max(4, Math.round(n * .11))) / n * 100, v = 50 - _ / 2, y = 2 * Math.PI * v, b = {
14108
14181
  "--select-ring-size": `${n / 16}rem`,
14109
14182
  ...u
@@ -14147,7 +14220,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14147
14220
  })]
14148
14221
  })]
14149
14222
  });
14150
- }), fd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
14223
+ }), pd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
14151
14224
  let l = (t) => {
14152
14225
  let n = e[t];
14153
14226
  return n != null && n.state !== "upcoming";
@@ -14205,7 +14278,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14205
14278
  })
14206
14279
  })
14207
14280
  });
14208
- }), pd = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
14281
+ }), md = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
14209
14282
  let s = Math.max(0, Math.floor(e)), c = Math.max(0, Math.min(s, Math.floor(t))), l = n === void 0 ? `${c} de ${s}` : n;
14210
14283
  return /* @__PURE__ */ g("span", {
14211
14284
  ref: o,
@@ -14221,7 +14294,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14221
14294
  children: l
14222
14295
  })]
14223
14296
  });
14224
- }), md = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
14297
+ }), hd = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
14225
14298
  return /* @__PURE__ */ h("span", {
14226
14299
  ref: a,
14227
14300
  "aria-hidden": "true",
@@ -14229,7 +14302,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14229
14302
  className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
14230
14303
  children: e
14231
14304
  });
14232
- }), hd = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, _) {
14305
+ }), gd = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, _) {
14233
14306
  let v = a != null && o === "end";
14234
14307
  return /* @__PURE__ */ h("section", {
14235
14308
  ref: _,
@@ -14301,7 +14374,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14301
14374
  ]
14302
14375
  })
14303
14376
  });
14304
- }), gd = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
14377
+ }), _d = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
14305
14378
  return /* @__PURE__ */ g("article", {
14306
14379
  ref: l,
14307
14380
  ...c,
@@ -14336,7 +14409,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14336
14409
  })]
14337
14410
  })]
14338
14411
  });
14339
- }), _d = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
14412
+ }), vd = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
14340
14413
  return /* @__PURE__ */ h("dl", {
14341
14414
  ref: s,
14342
14415
  "aria-busy": i || void 0,
@@ -14363,7 +14436,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14363
14436
  ]
14364
14437
  }, e.key ?? t))
14365
14438
  });
14366
- }), vd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
14439
+ }), yd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
14367
14440
  let o = (t ?? "").replace(/\D/g, "").slice(-4);
14368
14441
  return /* @__PURE__ */ g("div", {
14369
14442
  ref: a,
@@ -14406,7 +14479,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14406
14479
  })
14407
14480
  ]
14408
14481
  });
14409
- }), yd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
14482
+ }), bd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
14410
14483
  let s = Math.max(1, ...e.map((e) => e.value));
14411
14484
  return /* @__PURE__ */ h("div", {
14412
14485
  ref: o,
@@ -14448,19 +14521,19 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
14448
14521
  });
14449
14522
  //#endregion
14450
14523
  //#region src/SelectGauge.tsx
14451
- function bd(e) {
14524
+ function xd(e) {
14452
14525
  return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
14453
14526
  }
14454
- function xd(e, t, n, r) {
14527
+ function Sd(e, t, n, r) {
14455
14528
  let i = Math.PI + r * Math.PI;
14456
14529
  return [e + n * Math.cos(i), t + n * Math.sin(i)];
14457
14530
  }
14458
- function Sd(e, t, n, r, i) {
14459
- let [a, o] = xd(e, t, n, r), [s, c] = xd(e, t, n, i);
14531
+ function Cd(e, t, n, r, i) {
14532
+ let [a, o] = Sd(e, t, n, r), [s, c] = Sd(e, t, n, i);
14460
14533
  return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
14461
14534
  }
14462
- var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, wd = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Cd, className: s, ...c }, l) {
14463
- let u = bd(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, _ = r / 2, v = _ + f, y = or({
14535
+ var wd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Td = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = wd, className: s, ...c }, l) {
14536
+ let u = xd(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, _ = r / 2, v = _ + f, y = or({
14464
14537
  value: u,
14465
14538
  format: o
14466
14539
  });
@@ -14483,13 +14556,13 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
14483
14556
  "aria-hidden": "true",
14484
14557
  children: [/* @__PURE__ */ h("path", {
14485
14558
  className: "select-gauge__track",
14486
- d: Sd(m, _, p, 0, 1),
14559
+ d: Cd(m, _, p, 0, 1),
14487
14560
  fill: "none",
14488
14561
  strokeWidth: d,
14489
14562
  strokeLinecap: "round"
14490
14563
  }), u > 0 && /* @__PURE__ */ h("path", {
14491
14564
  className: "select-gauge__arc",
14492
- d: Sd(m, _, p, 0, u / 100),
14565
+ d: Cd(m, _, p, 0, u / 100),
14493
14566
  fill: "none",
14494
14567
  stroke: a ?? "var(--select-chart-1)",
14495
14568
  strokeWidth: d,
@@ -14512,7 +14585,7 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
14512
14585
  children: n
14513
14586
  })]
14514
14587
  });
14515
- }), Td = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, m) {
14588
+ }), Ed = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, m) {
14516
14589
  let _ = Q(), v = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (v.length ? Math.min(...v) : 0), b = (c ?? (v.length ? Math.max(...v) : 1)) - y || 1, x = { "--heat-color": a }, S = {
14517
14590
  gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
14518
14591
  width: "fit-content",
@@ -14572,12 +14645,12 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
14572
14645
  }, c);
14573
14646
  })] }, n.label))
14574
14647
  ]
14575
- }), /* @__PURE__ */ h(Zu, {
14648
+ }), /* @__PURE__ */ h(Qu, {
14576
14649
  tip: _.tip,
14577
14650
  onDismiss: _.hide
14578
14651
  })]
14579
14652
  });
14580
- }), Ed = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
14653
+ }), Dd = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
14581
14654
  let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, m = n + r, _ = {
14582
14655
  width: f * m - r,
14583
14656
  height: p * m - r
@@ -14639,13 +14712,13 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
14639
14712
  /* @__PURE__ */ h("span", { children: "mais" })
14640
14713
  ]
14641
14714
  }),
14642
- /* @__PURE__ */ h(Zu, {
14715
+ /* @__PURE__ */ h(Qu, {
14643
14716
  tip: u.tip,
14644
14717
  onDismiss: u.hide
14645
14718
  })
14646
14719
  ]
14647
14720
  });
14648
- }), Dd = [
14721
+ }), Od = [
14649
14722
  {
14650
14723
  key: "RR",
14651
14724
  label: "RR",
@@ -14838,7 +14911,7 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
14838
14911
  ];
14839
14912
  //#endregion
14840
14913
  //#region src/SelectProgressList.tsx
14841
- function Od({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
14914
+ function kd({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
14842
14915
  if (e.length === 0) return /* @__PURE__ */ h("div", {
14843
14916
  className: "select-progresslist__empty",
14844
14917
  children: r
@@ -14889,7 +14962,7 @@ function Od({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
14889
14962
  }
14890
14963
  //#endregion
14891
14964
  //#region src/SelectRadialBar.tsx
14892
- var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
14965
+ var Ad = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, jd = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
14893
14966
  let d = s(), f = t / 2, p = t / 2;
14894
14967
  return /* @__PURE__ */ g("div", {
14895
14968
  ref: u,
@@ -14929,7 +15002,7 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
14929
15002
  }) }), e.map((e, i) => {
14930
15003
  let a = t / 2 - 2 - n / 2 - i * (n + r);
14931
15004
  if (a <= n / 2) return null;
14932
- let o = kd(e.value);
15005
+ let o = Ad(e.value);
14933
15006
  return /* @__PURE__ */ g("g", {
14934
15007
  transform: `rotate(-90 ${f} ${p})`,
14935
15008
  children: [/* @__PURE__ */ h("circle", {
@@ -14958,7 +15031,7 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
14958
15031
  className: "select-radial__center",
14959
15032
  children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
14960
15033
  className: "select-radial__value",
14961
- children: i(kd(e[0].value))
15034
+ children: i(Ad(e[0].value))
14962
15035
  }) : null)
14963
15036
  })]
14964
15037
  }), o && /* @__PURE__ */ h("ul", {
@@ -14976,15 +15049,15 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
14976
15049
  }),
14977
15050
  /* @__PURE__ */ h("span", {
14978
15051
  className: "select-donut__legval",
14979
- children: i(kd(e.value))
15052
+ children: i(Ad(e.value))
14980
15053
  })
14981
15054
  ]
14982
15055
  }, t))
14983
15056
  })]
14984
15057
  });
14985
- }), jd = 6.1, Md = 12, Nd = 56, Pd = .4;
14986
- function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
14987
- let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Lu(d), m = Q(), _ = s(), v = c && c > 0 ? c : zu(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(Nd, y * jd + Md), Math.max(Nd, p * Pd)), x = o ?? b, S = Math.max(3, Math.floor((x - Md) / jd)), C = (e) => e.length <= S ? e : `${e.slice(0, S - 1).trimEnd()}…`, w = Math.max(0, p - x - 28), T = d - 6 - 26, E = e.length ? T / e.length : 0, D = Math.min(E * .62, 22), O = (e) => x + e / v * w, k = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
15058
+ }), Md = 6.1, Nd = 12, Pd = 56, Fd = .4;
15059
+ function Id({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
15060
+ let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Ru(d), m = Q(), _ = s(), v = c && c > 0 ? c : Bu(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(Pd, y * Md + Nd), Math.max(Pd, p * Fd)), x = o ?? b, S = Math.max(3, Math.floor((x - Nd) / Md)), C = (e) => e.length <= S ? e : `${e.slice(0, S - 1).trimEnd()}…`, w = Math.max(0, p - x - 28), T = d - 6 - 26, E = e.length ? T / e.length : 0, D = Math.min(E * .62, 22), O = (e) => x + e / v * w, k = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
14988
15061
  return /* @__PURE__ */ g("div", {
14989
15062
  ...u,
14990
15063
  className: `select-chart-wrap${l ? " " + l : ""}`,
@@ -15013,7 +15086,7 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
15013
15086
  })]
15014
15087
  }, t);
15015
15088
  }) }),
15016
- Bu(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15089
+ Vu(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15017
15090
  x1: O(e),
15018
15091
  x2: O(e),
15019
15092
  y1: 6,
@@ -15059,7 +15132,7 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
15059
15132
  onMouseLeave: m.hide
15060
15133
  }),
15061
15134
  /* @__PURE__ */ g("text", {
15062
- x: x - Md / 2,
15135
+ x: x - Nd / 2,
15063
15136
  y: n,
15064
15137
  className: "select-chart__ylabel",
15065
15138
  dominantBaseline: "middle",
@@ -15074,8 +15147,8 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
15074
15147
  }
15075
15148
  //#endregion
15076
15149
  //#region src/SelectWaterfall.tsx
15077
- function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15078
- let { ref: a, width: o } = Lu(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
15150
+ function Ld({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15151
+ let { ref: a, width: o } = Ru(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
15079
15152
  if (e.total) return u = e.value, {
15080
15153
  ...e,
15081
15154
  start: 0,
@@ -15087,7 +15160,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15087
15160
  start: t,
15088
15161
  end: u
15089
15162
  };
15090
- }), f = zu(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Yu, m = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
15163
+ }), f = Bu(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Xu, m = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
15091
15164
  total: "var(--select-chart-1)",
15092
15165
  inc: "var(--select-chart-4)",
15093
15166
  dec: "var(--select-chart-3)"
@@ -15121,7 +15194,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15121
15194
  stopOpacity: .62
15122
15195
  })]
15123
15196
  }, e)) }),
15124
- Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15197
+ Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15125
15198
  x1: p.left,
15126
15199
  x2: o - p.right,
15127
15200
  y1: S(e),
@@ -15189,7 +15262,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15189
15262
  }
15190
15263
  //#endregion
15191
15264
  //#region src/SelectBullet.tsx
15192
- var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
15265
+ var Rd = (e) => Math.max(0, Math.min(100, e)), zd = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
15193
15266
  return /* @__PURE__ */ h("div", {
15194
15267
  ref: i,
15195
15268
  ...r,
@@ -15227,12 +15300,12 @@ var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, forma
15227
15300
  children: [/* @__PURE__ */ h("span", {
15228
15301
  className: "select-bullet__fill",
15229
15302
  style: {
15230
- width: `${Ld(e.value / i * 100)}%`,
15303
+ width: `${Rd(e.value / i * 100)}%`,
15231
15304
  background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
15232
15305
  }
15233
15306
  }), /* @__PURE__ */ h("span", {
15234
15307
  className: "select-bullet__tick",
15235
- style: { left: `${Ld(e.target / i * 100)}%` }
15308
+ style: { left: `${Rd(e.target / i * 100)}%` }
15236
15309
  })]
15237
15310
  })]
15238
15311
  }, `${e.label}-${n}`);
@@ -15241,7 +15314,7 @@ var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, forma
15241
15314
  });
15242
15315
  //#endregion
15243
15316
  //#region src/SelectTreemap.tsx
15244
- function zd(e, t, n) {
15317
+ function Bd(e, t, n) {
15245
15318
  let r = [], i = (e, t) => {
15246
15319
  let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
15247
15320
  return Math.max(t * t * r / (n * n), n * n / (t * t * i));
@@ -15292,8 +15365,8 @@ function zd(e, t, n) {
15292
15365
  };
15293
15366
  return a(e.map((e, t) => t), 0, 0, t, n), r;
15294
15367
  }
15295
- function Bd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15296
- let { ref: a, width: o } = Lu(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? zd(u.map((t) => e[t].value), o, t) : [];
15368
+ function Vd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15369
+ let { ref: a, width: o } = Ru(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? Bd(u.map((t) => e[t].value), o, t) : [];
15297
15370
  return /* @__PURE__ */ g("div", {
15298
15371
  ...i,
15299
15372
  className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
@@ -15363,8 +15436,8 @@ function Bd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15363
15436
  }
15364
15437
  //#endregion
15365
15438
  //#region src/SelectScatter.tsx
15366
- function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
15367
- let { ref: l, width: u } = Lu(t), d = Q(), f = e.flatMap((e) => e.points), p = zu(i ?? Math.max(0, ...f.map((e) => e.x))), m = zu(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Yu, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
15439
+ function Hd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
15440
+ let { ref: l, width: u } = Ru(t), d = Q(), f = e.flatMap((e) => e.points), p = Bu(i ?? Math.max(0, ...f.map((e) => e.x))), m = Bu(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Xu, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
15368
15441
  return /* @__PURE__ */ g("div", {
15369
15442
  ...c,
15370
15443
  className: `select-chart-wrap${s ? " " + s : ""}`,
@@ -15374,7 +15447,7 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
15374
15447
  height: t,
15375
15448
  className: "select-chart",
15376
15449
  children: [
15377
- Bu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15450
+ Vu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15378
15451
  x1: v.left,
15379
15452
  x2: u - v.right,
15380
15453
  y1: C(e),
@@ -15388,7 +15461,7 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
15388
15461
  textAnchor: "end",
15389
15462
  children: r(e)
15390
15463
  })] }, `y${t}`)),
15391
- Bu(p).map((e, r, i) => /* @__PURE__ */ h("text", {
15464
+ Vu(p).map((e, r, i) => /* @__PURE__ */ h("text", {
15392
15465
  x: S(e),
15393
15466
  y: t - v.bottom + 16,
15394
15467
  className: "select-chart__xlabel",
@@ -15435,8 +15508,8 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
15435
15508
  }
15436
15509
  //#endregion
15437
15510
  //#region src/SelectRadar.tsx
15438
- var Hd = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
15439
- let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? zu(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
15511
+ var Ud = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
15512
+ let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Bu(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
15440
15513
  return /* @__PURE__ */ g("div", {
15441
15514
  ref: u,
15442
15515
  ...l,
@@ -15545,8 +15618,8 @@ var Hd = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
15545
15618
  });
15546
15619
  //#endregion
15547
15620
  //#region src/SelectSankey.tsx
15548
- function Ud({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
15549
- let { ref: s, width: c } = Lu(t), l = Q(), u = [], d = [];
15621
+ function Wd({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
15622
+ let { ref: s, width: c } = Ru(t), l = Q(), u = [], d = [];
15550
15623
  for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
15551
15624
  let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), m = t - 12, _ = Math.max(u.length, d.length), v = (m - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
15552
15625
  let r = /* @__PURE__ */ new Map(), a = 6;
@@ -15630,8 +15703,8 @@ function Ud({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
15630
15703
  }
15631
15704
  //#endregion
15632
15705
  //#region src/SelectCandlestick.tsx
15633
- function Wd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
15634
- let { ref: s, width: c } = Lu(t), l = Q(), u = Yu, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(m, ...e.map((e) => e.low)), v = (m - _) * .08 || 1, y = _ - v, b = m + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
15706
+ function Gd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
15707
+ let { ref: s, width: c } = Ru(t), l = Q(), u = Xu, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(m, ...e.map((e) => e.low)), v = (m - _) * .08 || 1, y = _ - v, b = m + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
15635
15708
  return /* @__PURE__ */ g("div", {
15636
15709
  ...o,
15637
15710
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -15720,8 +15793,8 @@ function Wd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
15720
15793
  }
15721
15794
  //#endregion
15722
15795
  //#region src/SelectBoxPlot.tsx
15723
- function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15724
- let { ref: a, width: o } = Lu(t), s = Q(), c = Yu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = zu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .5, 40);
15796
+ function Kd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15797
+ let { ref: a, width: o } = Ru(t), s = Q(), c = Xu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Bu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .5, 40);
15725
15798
  return /* @__PURE__ */ g("div", {
15726
15799
  ...i,
15727
15800
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -15730,7 +15803,7 @@ function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15730
15803
  width: o,
15731
15804
  height: t,
15732
15805
  className: "select-chart",
15733
- children: [Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15806
+ children: [Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
15734
15807
  x1: c.left,
15735
15808
  x2: o - c.right,
15736
15809
  y1: p(e),
@@ -15840,8 +15913,8 @@ function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
15840
15913
  }
15841
15914
  //#endregion
15842
15915
  //#region src/SelectRangeBar.tsx
15843
- function Kd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
15844
- let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Lu(l), f = Q(), p = s(), m = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - m) / _ * y, w = Array.from({ length: 5 }, (e, t) => m + _ * t / 4);
15916
+ function qd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
15917
+ let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Ru(l), f = Q(), p = s(), m = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - m) / _ * y, w = Array.from({ length: 5 }, (e, t) => m + _ * t / 4);
15845
15918
  return /* @__PURE__ */ g("div", {
15846
15919
  ...c,
15847
15920
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -15921,7 +15994,7 @@ function Kd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
15921
15994
  }
15922
15995
  //#endregion
15923
15996
  //#region src/SelectCalendarHeatmap.tsx
15924
- var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
15997
+ var Jd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
15925
15998
  "Seg",
15926
15999
  "",
15927
16000
  "Qua",
@@ -15994,8 +16067,8 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
15994
16067
  ]
15995
16068
  }), /* @__PURE__ */ h($, { tip: p.tip })]
15996
16069
  });
15997
- }), Jd = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
15998
- let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = zu(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
16070
+ }), Yd = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
16071
+ let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Bu(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
15999
16072
  return /* @__PURE__ */ g("div", {
16000
16073
  ref: s,
16001
16074
  ...o,
@@ -16025,7 +16098,7 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
16025
16098
  }, t)), e.map((e, t) => {
16026
16099
  let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, m(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
16027
16100
  return /* @__PURE__ */ h("path", {
16028
- d: qu(l, u, o, 0, r, i),
16101
+ d: Ju(l, u, o, 0, r, i),
16029
16102
  fill: a,
16030
16103
  fillOpacity: .8,
16031
16104
  className: "select-chart__seg",
@@ -16068,13 +16141,13 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
16068
16141
  });
16069
16142
  //#endregion
16070
16143
  //#region src/SelectSlope.tsx
16071
- function Yd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
16072
- let { ref: s, width: c } = Lu(r), l = Q(), u = {
16144
+ function Xd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
16145
+ let { ref: s, width: c } = Ru(r), l = Q(), u = {
16073
16146
  top: 24,
16074
16147
  right: 64,
16075
16148
  bottom: 12,
16076
16149
  left: 132
16077
- }, d = zu(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, _ = c - u.right;
16150
+ }, d = Bu(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, _ = c - u.right;
16078
16151
  return /* @__PURE__ */ g("div", {
16079
16152
  ...o,
16080
16153
  className: `select-chart-wrap${a ? " " + a : ""}`,
@@ -16190,8 +16263,8 @@ function Yd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
16190
16263
  }
16191
16264
  //#endregion
16192
16265
  //#region src/SelectDumbbell.tsx
16193
- function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
16194
- let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Lu(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = zu(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / m * v;
16266
+ function Zd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
16267
+ let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Ru(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = Bu(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / m * v;
16195
16268
  return /* @__PURE__ */ g("div", {
16196
16269
  ...s,
16197
16270
  className: `select-chart-wrap${o ? " " + o : ""}`,
@@ -16200,7 +16273,7 @@ function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
16200
16273
  width: u,
16201
16274
  height: c,
16202
16275
  className: "select-chart",
16203
- children: [Bu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
16276
+ children: [Vu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
16204
16277
  x1: x(e),
16205
16278
  x2: x(e),
16206
16279
  y1: 6,
@@ -16283,8 +16356,8 @@ function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
16283
16356
  }
16284
16357
  //#endregion
16285
16358
  //#region src/SelectMarimekko.tsx
16286
- function Zd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
16287
- let { ref: o, width: s } = Lu(t), c = Q(), l = {
16359
+ function Qd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
16360
+ let { ref: o, width: s } = Ru(t), c = Q(), l = {
16288
16361
  top: 6,
16289
16362
  right: 6,
16290
16363
  bottom: 24,
@@ -16363,7 +16436,7 @@ function Zd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
16363
16436
  }
16364
16437
  //#endregion
16365
16438
  //#region src/SelectGaugeBands.tsx
16366
- var Qd = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
16439
+ var $d = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
16367
16440
  let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, m = r / 2, _ = m + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
16368
16441
  let t = Math.PI + e * Math.PI;
16369
16442
  return [p + f * Math.cos(t), m + f * Math.sin(t)];
@@ -16435,8 +16508,8 @@ var Qd = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
16435
16508
  });
16436
16509
  //#endregion
16437
16510
  //#region src/SelectStreamGraph.tsx
16438
- function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
16439
- let { ref: o, width: c } = Lu(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
16511
+ function ef({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
16512
+ let { ref: o, width: c } = Ru(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
16440
16513
  top: 14,
16441
16514
  right: 14,
16442
16515
  bottom: 28,
@@ -16479,7 +16552,7 @@ function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i
16479
16552
  })]
16480
16553
  }, t)) }),
16481
16554
  w.map((e, t) => /* @__PURE__ */ h("path", {
16482
- d: Gu(e.upper, e.lower),
16555
+ d: Ku(e.upper, e.lower),
16483
16556
  fill: `url(#${u}-st${t})`,
16484
16557
  className: "select-chart__area"
16485
16558
  }, t)),
@@ -16526,7 +16599,7 @@ function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i
16526
16599
  }
16527
16600
  //#endregion
16528
16601
  //#region src/SelectSunburst.tsx
16529
- var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
16602
+ var tf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
16530
16603
  let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
16531
16604
  var t;
16532
16605
  return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
@@ -16552,7 +16625,7 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
16552
16625
  _ += r;
16553
16626
  let a = _ / m * 360, o = e.color ?? X(t), v = i;
16554
16627
  return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
16555
- d: qu(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
16628
+ d: Ju(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
16556
16629
  fill: o,
16557
16630
  className: "select-chart__seg",
16558
16631
  onMouseEnter: () => s.show({
@@ -16572,7 +16645,7 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
16572
16645
  v += t.value / m * 360;
16573
16646
  let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
16574
16647
  return /* @__PURE__ */ h("path", {
16575
- d: qu(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
16648
+ d: Ju(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
16576
16649
  fill: p,
16577
16650
  fillOpacity: g,
16578
16651
  className: "select-chart__seg",
@@ -16619,8 +16692,8 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
16619
16692
  });
16620
16693
  //#endregion
16621
16694
  //#region src/SelectViolin.tsx
16622
- function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
16623
- let { ref: a, width: o } = Lu(t), s = Q(), c = Yu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = zu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
16695
+ function nf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
16696
+ let { ref: a, width: o } = Ru(t), s = Q(), c = Xu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Bu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
16624
16697
  return /* @__PURE__ */ g("div", {
16625
16698
  ...i,
16626
16699
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -16629,7 +16702,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
16629
16702
  width: o,
16630
16703
  height: t,
16631
16704
  className: "select-chart",
16632
- children: [Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
16705
+ children: [Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
16633
16706
  x1: c.left,
16634
16707
  x2: o - c.right,
16635
16708
  y1: p(e),
@@ -16646,7 +16719,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
16646
16719
  let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], m = [];
16647
16720
  for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
16648
16721
  for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
16649
- let b = `${Hu(f)} ${Hu(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
16722
+ let b = `${Uu(f)} ${Uu(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
16650
16723
  return /* @__PURE__ */ g("g", { children: [
16651
16724
  /* @__PURE__ */ h("path", {
16652
16725
  d: b,
@@ -16707,7 +16780,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
16707
16780
  }
16708
16781
  //#endregion
16709
16782
  //#region src/SelectChord.tsx
16710
- var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
16783
+ var rf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
16711
16784
  let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, m = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = m.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
16712
16785
  for (let e = 0; e < l; e++) {
16713
16786
  let t = b, n = b + m[e] * v;
@@ -16774,7 +16847,7 @@ var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
16774
16847
  }, n)), y.map((e, n) => {
16775
16848
  let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
16776
16849
  return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
16777
- d: qu(u, d, f, p, w(e.a0), w(e.a1)),
16850
+ d: Ju(u, d, f, p, w(e.a0), w(e.a1)),
16778
16851
  fill: X(n),
16779
16852
  className: "select-chord__arc"
16780
16853
  }), /* @__PURE__ */ h("text", {
@@ -16792,8 +16865,8 @@ var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
16792
16865
  });
16793
16866
  //#endregion
16794
16867
  //#region src/SelectHexbin.tsx
16795
- function rf({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
16796
- let { ref: l, width: u } = Lu(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / m * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
16868
+ function af({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
16869
+ let { ref: l, width: u } = Ru(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / m * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
16797
16870
  let n = e, r = t, i = -n - r, a = Math.round(n), o = Math.round(i), s = Math.round(r), c = Math.abs(a - n), l = Math.abs(o - i), u = Math.abs(s - r);
16798
16871
  return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
16799
16872
  }, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
@@ -16844,7 +16917,7 @@ function rf({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
16844
16917
  }
16845
16918
  //#endregion
16846
16919
  //#region src/SelectWordCloud.tsx
16847
- var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
16920
+ var of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
16848
16921
  let o = e.map((e) => e.value), s = Math.max(1, ...o), c = Math.min(...o), l = s - c || 1, u = (e) => t + (e - c) / l * (n - t);
16849
16922
  return /* @__PURE__ */ h("div", {
16850
16923
  ref: a,
@@ -16861,7 +16934,7 @@ var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
16861
16934
  children: e.text
16862
16935
  }, `${e.text}-${t}`))
16863
16936
  });
16864
- }), of = [
16937
+ }), sf = [
16865
16938
  [
16866
16939
  -59.6,
16867
16940
  -80,
@@ -27256,24 +27329,24 @@ var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
27256
27329
  -27.1,
27257
27330
  83.5
27258
27331
  ]
27259
- ], sf = Math.PI / 180;
27260
- function cf(e, t) {
27261
- let n = e * sf, r = t * sf;
27332
+ ], cf = Math.PI / 180;
27333
+ function lf(e, t) {
27334
+ let n = e * cf, r = t * cf;
27262
27335
  return [
27263
27336
  Math.cos(n) * Math.sin(r),
27264
27337
  Math.sin(n),
27265
27338
  Math.cos(n) * Math.cos(r)
27266
27339
  ];
27267
27340
  }
27268
- function lf([e, t, n], r, i) {
27269
- let a = r * sf, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * sf;
27341
+ function uf([e, t, n], r, i) {
27342
+ let a = r * cf, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * cf;
27270
27343
  return [
27271
27344
  o,
27272
27345
  t * Math.cos(c) - s * Math.sin(c),
27273
27346
  t * Math.sin(c) + s * Math.cos(c)
27274
27347
  ];
27275
27348
  }
27276
- function uf(e, t, n) {
27349
+ function df(e, t, n) {
27277
27350
  let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
27278
27351
  r = Math.max(-1, Math.min(1, r));
27279
27352
  let i = Math.acos(r);
@@ -27285,18 +27358,18 @@ function uf(e, t, n) {
27285
27358
  e[2] * o + t[2] * s
27286
27359
  ];
27287
27360
  }
27288
- var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, ff = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: l = Z, legend: p = !0, map: m = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
27361
+ var ff = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, pf = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: l = Z, legend: p = !0, map: m = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
27289
27362
  var S, C;
27290
- let w = s(), T = Q(), E = d(null), D = Ru(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = d(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = d({
27363
+ let w = s(), T = Q(), E = d(null), D = zu(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = d(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = d({
27291
27364
  lng: -O,
27292
27365
  lat: r
27293
27366
  }), j = d({
27294
27367
  lng: 0,
27295
27368
  lat: 0
27296
- }), M = d(1), N = d(null), P = d(null), F = d(!1), I = d(0), L = d(0), R = d(0), [, z] = f(0), [B, ee] = f(!1), [te, V] = f(null), H = () => {
27297
- L.current || (R.current = performance.now(), L.current = requestAnimationFrame(ne));
27369
+ }), M = d(1), N = d(null), P = d(null), F = d(!1), I = d(0), L = d(0), R = d(0), [, z] = f(0), [B, ee] = f(!1), [te, V] = f(null), ne = () => {
27370
+ L.current || (R.current = performance.now(), L.current = requestAnimationFrame(re));
27298
27371
  };
27299
- function ne(e) {
27372
+ function re(e) {
27300
27373
  let t = Math.min(.05, (e - R.current) / 1e3);
27301
27374
  R.current = e, I.current += t;
27302
27375
  let n = j.current, r = Math.abs(n.lng) + Math.abs(n.lat) > .02;
@@ -27306,24 +27379,24 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27306
27379
  A.current.lng += (N.current.lng - A.current.lng) * e, A.current.lat += (N.current.lat - A.current.lat) * e, Math.abs(N.current.lng - A.current.lng) < .2 && Math.abs(N.current.lat - A.current.lat) < .2 && (N.current = null);
27307
27380
  } else r ? (A.current.lng += n.lng * t * 60, A.current.lat = Math.max(-85, Math.min(85, A.current.lat + n.lat * t * 60)), n.lng *= .94, n.lat *= .94) : (n.lng = 0, n.lat = 0, i && !k.current && !F.current && (A.current.lng += a * t));
27308
27381
  }
27309
- z((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(ne) : L.current = 0;
27382
+ z((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(re) : L.current = 0;
27310
27383
  }
27311
- o(() => (k.current || H(), () => {
27384
+ o(() => (k.current || ne(), () => {
27312
27385
  L.current && cancelAnimationFrame(L.current), L.current = 0;
27313
27386
  }), []);
27314
- let U = d(v);
27315
- U.current = v, o(() => {
27387
+ let H = d(v);
27388
+ H.current = v, o(() => {
27316
27389
  let e = E.current;
27317
27390
  if (!e) return;
27318
27391
  let t = (e) => {
27319
27392
  var t;
27320
27393
  e.preventDefault();
27321
27394
  let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
27322
- M.current = Math.max(.8, Math.min(1.8, r)), (t = U.current) == null || t.call(U, M.current), H(), z((e) => (e + 1) % 1e6);
27395
+ M.current = Math.max(.8, Math.min(1.8, r)), (t = H.current) == null || t.call(H, M.current), ne(), z((e) => (e + 1) % 1e6);
27323
27396
  };
27324
27397
  return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
27325
27398
  }, []);
27326
- let re = (e) => {
27399
+ let ie = (e) => {
27327
27400
  var t, n;
27328
27401
  (t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
27329
27402
  x: e.clientX,
@@ -27331,8 +27404,8 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27331
27404
  }, j.current = {
27332
27405
  lng: 0,
27333
27406
  lat: 0
27334
- }, N.current = null, ee(!0), H();
27335
- }, ie = (e) => {
27407
+ }, N.current = null, ee(!0), ne();
27408
+ }, ae = (e) => {
27336
27409
  if (!P.current) return;
27337
27410
  let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
27338
27411
  P.current = {
@@ -27342,39 +27415,39 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27342
27415
  lng: n * t,
27343
27416
  lat: r * t
27344
27417
  };
27345
- }, W = (e) => {
27418
+ }, U = (e) => {
27346
27419
  var t, n;
27347
- P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), H());
27348
- }, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
27349
- let t = lf(e, A.current.lng, A.current.lat);
27420
+ P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), ne());
27421
+ }, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, q = (e) => {
27422
+ let t = uf(e, A.current.lng, A.current.lat);
27350
27423
  return {
27351
- x: K + G * t[0],
27352
- y: q - G * t[1],
27424
+ x: G + W * t[0],
27425
+ y: K - W * t[1],
27353
27426
  z: t[2]
27354
27427
  };
27355
27428
  }, oe = u(() => {
27356
27429
  let e = [];
27357
27430
  for (let t = -180; t < 180; t += 30) {
27358
27431
  let n = [];
27359
- for (let e = 0; e <= 48; e++) n.push(cf(-90 + 180 * e / 48, t));
27432
+ for (let e = 0; e <= 48; e++) n.push(lf(-90 + 180 * e / 48, t));
27360
27433
  e.push(n);
27361
27434
  }
27362
27435
  for (let t = -60; t <= 60; t += 30) {
27363
27436
  let n = [];
27364
- for (let e = 0; e <= 48; e++) n.push(cf(t, -180 + 360 * e / 48));
27437
+ for (let e = 0; e <= 48; e++) n.push(lf(t, -180 + 360 * e / 48));
27365
27438
  e.push(n);
27366
27439
  }
27367
27440
  return e;
27368
- }, []), se = u(() => of.map((e) => {
27441
+ }, []), se = u(() => sf.map((e) => {
27369
27442
  let t = [];
27370
- for (let n = 0; n < e.length; n += 2) t.push(cf(e[n + 1], e[n]));
27443
+ for (let n = 0; n < e.length; n += 2) t.push(lf(e[n + 1], e[n]));
27371
27444
  return t;
27372
27445
  }), []), J = (e) => ({
27373
- x: K + G * e[0],
27374
- y: q - G * e[1]
27446
+ x: G + W * e[0],
27447
+ y: K - W * e[1]
27375
27448
  }), ce = "", le = "";
27376
27449
  if (m) for (let e of se) {
27377
- let t = e.map((e) => lf(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
27450
+ let t = e.map((e) => uf(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
27378
27451
  for (let e of t) if (e[2] > 0) {
27379
27452
  let t = J(e);
27380
27453
  le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
@@ -27401,11 +27474,11 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27401
27474
  let e = (e, t) => {
27402
27475
  let n = J(t.v);
27403
27476
  if (e.edge && t.edge) {
27404
- let t = Math.atan2(J(e.v).y - q, J(e.v).x - K), r = Math.atan2(n.y - q, n.x - K) - t;
27477
+ let t = Math.atan2(J(e.v).y - K, J(e.v).x - G), r = Math.atan2(n.y - K, n.x - G) - t;
27405
27478
  for (; r > Math.PI;) r -= 2 * Math.PI;
27406
27479
  for (; r < -Math.PI;) r += 2 * Math.PI;
27407
27480
  let i = +(r > 0);
27408
- return `A${G.toFixed(1)},${G.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
27481
+ return `A${W.toFixed(1)},${W.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
27409
27482
  }
27410
27483
  return `L${n.x.toFixed(1)},${n.y.toFixed(1)}`;
27411
27484
  }, t = J(i[0].v);
@@ -27417,12 +27490,12 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27417
27490
  let ue = (e) => {
27418
27491
  let t = "", n = !1;
27419
27492
  for (let r of e) {
27420
- let e = ae(r);
27493
+ let e = q(r);
27421
27494
  e.z > 0 ? (t += `${n ? "L" : "M"}${e.x.toFixed(1)},${e.y.toFixed(1)}`, n = !0) : n = !1;
27422
27495
  }
27423
27496
  return t;
27424
27497
  }, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
27425
- let n = ae(cf(e.lat, e.lng));
27498
+ let n = q(lf(e.lat, e.lng));
27426
27499
  return {
27427
27500
  ...e,
27428
27501
  i: t,
@@ -27432,20 +27505,20 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27432
27505
  col: e.color ?? c
27433
27506
  };
27434
27507
  }), pe = te == null ? null : e[te], me = t.map((e, t) => {
27435
- let n = cf(e.from.lat, e.from.lng), r = cf(e.to.lat, e.to.lng), i = "", a = !1;
27508
+ let n = lf(e.from.lat, e.from.lng), r = lf(e.to.lat, e.to.lng), i = "", a = !1;
27436
27509
  for (let e = 0; e <= 40; e++) {
27437
- let t = e / 40, o = uf(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = lf(o, A.current.lng, A.current.lat), l = ae([
27510
+ let t = e / 40, o = df(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = uf(o, A.current.lng, A.current.lat), l = q([
27438
27511
  o[0] * s,
27439
27512
  o[1] * s,
27440
27513
  o[2] * s
27441
27514
  ]);
27442
27515
  c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
27443
27516
  }
27444
- let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = uf(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = lf(s, A.current.lng, A.current.lat), d = ae([
27517
+ let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = df(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = uf(s, A.current.lng, A.current.lat), d = q([
27445
27518
  s[0] * l,
27446
27519
  s[1] * l,
27447
27520
  s[2] * l
27448
- ]), f = pe != null && (df(e.from, pe) || df(e.to, pe));
27521
+ ]), f = pe != null && (ff(e.from, pe) || ff(e.to, pe));
27449
27522
  return {
27450
27523
  d: i,
27451
27524
  col: e.color ?? c,
@@ -27472,11 +27545,11 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27472
27545
  F.current = !0;
27473
27546
  },
27474
27547
  onPointerLeave: (e) => {
27475
- F.current = !1, W(e), V(null), T.hide(), H();
27548
+ F.current = !1, U(e), V(null), T.hide(), ne();
27476
27549
  },
27477
- onPointerDown: re,
27478
- onPointerMove: ie,
27479
- onPointerUp: W,
27550
+ onPointerDown: ie,
27551
+ onPointerMove: ae,
27552
+ onPointerUp: U,
27480
27553
  children: [/* @__PURE__ */ g("svg", {
27481
27554
  width: D,
27482
27555
  height: D,
@@ -27571,36 +27644,36 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27571
27644
  /* @__PURE__ */ h("clipPath", {
27572
27645
  id: `${w}-clip`,
27573
27646
  children: /* @__PURE__ */ h("circle", {
27574
- cx: K,
27575
- cy: q,
27576
- r: G
27647
+ cx: G,
27648
+ cy: K,
27649
+ r: W
27577
27650
  })
27578
27651
  })
27579
27652
  ] }),
27580
27653
  /* @__PURE__ */ h("circle", {
27581
- cx: K,
27582
- cy: q,
27583
- r: G + 24,
27654
+ cx: G,
27655
+ cy: K,
27656
+ r: W + 24,
27584
27657
  fill: `url(#${w}-atmo)`
27585
27658
  }),
27586
27659
  /* @__PURE__ */ h("circle", {
27587
- cx: K,
27588
- cy: q,
27589
- r: G,
27660
+ cx: G,
27661
+ cy: K,
27662
+ r: W,
27590
27663
  fill: `url(#${w}-sphere)`,
27591
27664
  stroke: `color-mix(in srgb, ${c} 40%, transparent)`,
27592
27665
  strokeWidth: 1
27593
27666
  }),
27594
27667
  /* @__PURE__ */ h("circle", {
27595
- cx: K,
27596
- cy: q,
27597
- r: G,
27668
+ cx: G,
27669
+ cy: K,
27670
+ r: W,
27598
27671
  fill: `url(#${w}-glow)`
27599
27672
  }),
27600
27673
  /* @__PURE__ */ h("circle", {
27601
- cx: K,
27602
- cy: q,
27603
- r: G,
27674
+ cx: G,
27675
+ cy: K,
27676
+ r: W,
27604
27677
  fill: `url(#${w}-spec)`
27605
27678
  }),
27606
27679
  /* @__PURE__ */ g("g", {
@@ -27671,7 +27744,7 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27671
27744
  V(e.i), T.show({
27672
27745
  x: e.p.x,
27673
27746
  y: e.p.y - e.r - 4,
27674
- place: e.p.y < q ? "bottom" : "top",
27747
+ place: e.p.y < K ? "bottom" : "top",
27675
27748
  title: e.label,
27676
27749
  rows: e.value == null ? [] : [{
27677
27750
  label: "Volume",
@@ -27687,7 +27760,7 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27687
27760
  N.current = {
27688
27761
  lng: -e.lng,
27689
27762
  lat: r
27690
- }, H();
27763
+ }, ne();
27691
27764
  }
27692
27765
  })
27693
27766
  ]
@@ -27719,8 +27792,8 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
27719
27792
  });
27720
27793
  //#endregion
27721
27794
  //#region src/SelectTicker.tsx
27722
- function pf({ children: e, speed: t = 28, className: n, ...r }) {
27723
- let i = d(null), a = d(null), s = d(null), c = Ru(i, 0), l = Ru(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
27795
+ function mf({ children: e, speed: t = 28, className: n, ...r }) {
27796
+ let i = d(null), a = d(null), s = d(null), c = zu(i, 0), l = zu(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
27724
27797
  o(() => {
27725
27798
  var e, n;
27726
27799
  let r = a.current;
@@ -27781,12 +27854,12 @@ function pf({ children: e, speed: t = 28, className: n, ...r }) {
27781
27854
  }
27782
27855
  //#endregion
27783
27856
  //#region src/SelectPareto.tsx
27784
- function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
27857
+ function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
27785
27858
  var a;
27786
- let { ref: o, width: c } = Lu(t), l = Q(), u = s(), [d, p] = f(null), m = {
27787
- ...Yu,
27859
+ let { ref: o, width: c } = Ru(t), l = Q(), u = s(), [d, p] = f(null), m = {
27860
+ ...Xu,
27788
27861
  right: 44
27789
- }, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w = zu(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
27862
+ }, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w = Bu(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
27790
27863
  return /* @__PURE__ */ g("div", {
27791
27864
  ...i,
27792
27865
  className: `select-chart-wrap${r ? " " + r : ""}`,
@@ -27815,7 +27888,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
27815
27888
  stopOpacity: .55
27816
27889
  })]
27817
27890
  }) }),
27818
- Bu(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
27891
+ Vu(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
27819
27892
  x1: m.left,
27820
27893
  x2: c - m.right,
27821
27894
  y1: O(e),
@@ -27879,7 +27952,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
27879
27952
  }, t);
27880
27953
  }),
27881
27954
  /* @__PURE__ */ h("path", {
27882
- d: Uu(j),
27955
+ d: Wu(j),
27883
27956
  fill: "none",
27884
27957
  stroke: N,
27885
27958
  strokeWidth: 2,
@@ -27907,7 +27980,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
27907
27980
  }
27908
27981
  //#endregion
27909
27982
  //#region src/SelectWaffle.tsx
27910
- var hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
27983
+ var gf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
27911
27984
  let s = e.reduce((e, t) => e + t.value, 0) || 1, c = t * n, l = e.map((e) => e.value / s * c), u = l.map(Math.floor), d = u.reduce((e, t) => e + t, 0), f = l.map((e, t) => ({
27912
27985
  i: t,
27913
27986
  frac: e - u[t]
@@ -27956,8 +28029,8 @@ var hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
27956
28029
  });
27957
28030
  //#endregion
27958
28031
  //#region src/SelectPyramid.tsx
27959
- function gf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
27960
- let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = Lu(u), m = Q(), [_, v] = f(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
28032
+ function _f({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
28033
+ let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = Ru(u), m = Q(), [_, v] = f(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
27961
28034
  return /* @__PURE__ */ g("div", {
27962
28035
  ...l,
27963
28036
  className: `select-chart-wrap${c ? " " + c : ""}`,
@@ -28064,8 +28137,8 @@ function gf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
28064
28137
  }
28065
28138
  //#endregion
28066
28139
  //#region src/SelectBump.tsx
28067
- function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
28068
- let { ref: o, width: s } = Lu(n), c = Q(), [l, u] = f(null), d = {
28140
+ function vf({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
28141
+ let { ref: o, width: s } = Ru(n), c = Q(), [l, u] = f(null), d = {
28069
28142
  top: 16,
28070
28143
  right: 78,
28071
28144
  bottom: 28,
@@ -28101,7 +28174,7 @@ function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i
28101
28174
  style: { opacity: l === null || l === n ? 1 : .22 },
28102
28175
  children: [
28103
28176
  /* @__PURE__ */ h("path", {
28104
- d: Uu(a),
28177
+ d: Wu(a),
28105
28178
  fill: "none",
28106
28179
  stroke: i,
28107
28180
  strokeWidth: l === n ? 3.5 : 2.5,
@@ -28149,8 +28222,8 @@ function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i
28149
28222
  }
28150
28223
  //#endregion
28151
28224
  //#region src/SelectParallel.tsx
28152
- function vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
28153
- let { ref: o, width: s } = Lu(n), c = Q(), [l, u] = f(null), d = {
28225
+ function yf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
28226
+ let { ref: o, width: s } = Ru(n), c = Q(), [l, u] = f(null), d = {
28154
28227
  top: 30,
28155
28228
  right: 28,
28156
28229
  bottom: 26,
@@ -28241,25 +28314,25 @@ function vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
28241
28314
  }
28242
28315
  //#endregion
28243
28316
  //#region src/SelectIcicle.tsx
28244
- function yf(e) {
28245
- return e.children && e.children.length ? e.children.reduce((e, t) => e + yf(t), 0) : e.value ?? 0;
28317
+ function bf(e) {
28318
+ return e.children && e.children.length ? e.children.reduce((e, t) => e + bf(t), 0) : e.value ?? 0;
28246
28319
  }
28247
- function bf(e, t = 0) {
28248
- return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => bf(e, t + 1)));
28320
+ function xf(e, t = 0) {
28321
+ return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => xf(e, t + 1)));
28249
28322
  }
28250
- function xf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
28251
- let { ref: a, width: o } = Lu(t), s = Q(), [c, l] = f(null), u = bf(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
28323
+ function Sf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
28324
+ let { ref: a, width: o } = Ru(t), s = Q(), [c, l] = f(null), u = xf(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
28252
28325
  if (p.push({
28253
28326
  node: e,
28254
28327
  x0: t,
28255
28328
  x1: n,
28256
28329
  depth: r,
28257
28330
  color: e.color ?? X(i),
28258
- value: yf(e)
28331
+ value: bf(e)
28259
28332
  }), e.children && e.children.length) {
28260
- let a = e.children.reduce((e, t) => e + yf(t), 0) || 1, o = t;
28333
+ let a = e.children.reduce((e, t) => e + bf(t), 0) || 1, o = t;
28261
28334
  e.children.forEach((e, s) => {
28262
- let c = (n - t) * yf(e) / a;
28335
+ let c = (n - t) * bf(e) / a;
28263
28336
  m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
28264
28337
  });
28265
28338
  }
@@ -28320,8 +28393,8 @@ function xf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
28320
28393
  }
28321
28394
  //#endregion
28322
28395
  //#region src/SelectTree.tsx
28323
- function Sf({ data: e, height: t = 260, className: n, ...r }) {
28324
- let { ref: i, width: a } = Lu(t), o = Q(), [s, c] = f(null), l = {
28396
+ function Cf({ data: e, height: t = 260, className: n, ...r }) {
28397
+ let { ref: i, width: a } = Ru(t), o = Q(), [s, c] = f(null), l = {
28325
28398
  top: 14,
28326
28399
  right: 96,
28327
28400
  bottom: 14,
@@ -28398,7 +28471,7 @@ function Sf({ data: e, height: t = 260, className: n, ...r }) {
28398
28471
  }
28399
28472
  //#endregion
28400
28473
  //#region src/SelectVenn.tsx
28401
- var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
28474
+ var wf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
28402
28475
  let a = Math.min(3, e.length), o = t / 2, s = t / 2, c = Math.max(1, ...e.slice(0, a).map((e) => e.size)), l = t * .26, u = (e) => l * .45 + l * .55 * Math.sqrt(e.size / c), d = a <= 2 ? [[o - l * .42, s], [o + l * .42, s]] : [
28403
28476
  [o, s - l * .5],
28404
28477
  [o - l * .5, s + l * .36],
@@ -28463,7 +28536,7 @@ var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
28463
28536
  }, t))
28464
28537
  })]
28465
28538
  });
28466
- }), wf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
28539
+ }), Tf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
28467
28540
  let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
28468
28541
  d: e,
28469
28542
  i: t,
@@ -28566,8 +28639,8 @@ var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
28566
28639
  });
28567
28640
  //#endregion
28568
28641
  //#region src/SelectNetwork.tsx
28569
- function Tf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
28570
- let { ref: o, width: s } = Lu(n), c = Q(), [l, d] = f(null), p = u(() => {
28642
+ function Ef({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
28643
+ let { ref: o, width: s } = Ru(n), c = Q(), [l, d] = f(null), p = u(() => {
28571
28644
  let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
28572
28645
  if (!a) return o;
28573
28646
  let c = e.map((e, t) => ({
@@ -28680,8 +28753,8 @@ function Tf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
28680
28753
  }
28681
28754
  //#endregion
28682
28755
  //#region src/SelectSearchMenu.tsx
28683
- var Ef = "[role=\"option\"]:not([disabled])";
28684
- function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: s = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
28756
+ var Df = "[role=\"option\"]:not([disabled])";
28757
+ function Of({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: s = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
28685
28758
  let f = d(null);
28686
28759
  return o(() => {
28687
28760
  if (!s) return;
@@ -28697,7 +28770,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
28697
28770
  onKeyDown: (e) => {
28698
28771
  let t = f.current;
28699
28772
  if (!t) return;
28700
- let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(Ef)), i = r.indexOf(document.activeElement);
28773
+ let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(Df)), i = r.indexOf(document.activeElement);
28701
28774
  if (e.key === "ArrowDown") {
28702
28775
  var a;
28703
28776
  if (r.length === 0) return;
@@ -28728,7 +28801,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
28728
28801
  className: "select-combobox__empty",
28729
28802
  role: "status",
28730
28803
  children: r
28731
- }) : /* @__PURE__ */ h(Of, {
28804
+ }) : /* @__PURE__ */ h(kf, {
28732
28805
  maxHeight: l,
28733
28806
  children: u
28734
28807
  }),
@@ -28739,7 +28812,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
28739
28812
  ]
28740
28813
  });
28741
28814
  }
28742
- function Of({ children: e, maxHeight: t }) {
28815
+ function kf({ children: e, maxHeight: t }) {
28743
28816
  let n = ar({
28744
28817
  selector: ".select-combobox__option",
28745
28818
  y: 6,
@@ -28754,7 +28827,7 @@ function Of({ children: e, maxHeight: t }) {
28754
28827
  children: e
28755
28828
  });
28756
28829
  }
28757
- function kf({ label: e, children: t }) {
28830
+ function Af({ label: e, children: t }) {
28758
28831
  return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
28759
28832
  role: "group",
28760
28833
  className: "select-searchmenu__group",
@@ -28766,7 +28839,7 @@ function kf({ label: e, children: t }) {
28766
28839
  }), t]
28767
28840
  }) : null;
28768
28841
  }
28769
- function Af({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
28842
+ function jf({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
28770
28843
  return /* @__PURE__ */ g("button", {
28771
28844
  type: "button",
28772
28845
  role: "option",
@@ -28799,14 +28872,14 @@ function Af({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
28799
28872
  }
28800
28873
  //#endregion
28801
28874
  //#region src/SelectKbd.tsx
28802
- var jf = r(function({ children: e, className: t, ...n }, r) {
28875
+ var Mf = r(function({ children: e, className: t, ...n }, r) {
28803
28876
  return /* @__PURE__ */ h("kbd", {
28804
28877
  ref: r,
28805
28878
  ...n,
28806
28879
  className: `select-kbd${t ? " " + t : ""}`,
28807
28880
  children: e
28808
28881
  });
28809
- }), Mf = [
28882
+ }), Nf = [
28810
28883
  {
28811
28884
  value: "light",
28812
28885
  label: "Claro",
@@ -28823,15 +28896,15 @@ var jf = r(function({ children: e, className: t, ...n }, r) {
28823
28896
  icon: /* @__PURE__ */ h(ke, {})
28824
28897
  }
28825
28898
  ];
28826
- function Nf(e) {
28899
+ function Pf(e) {
28827
28900
  if (e === "system") {
28828
28901
  var t, n;
28829
28902
  return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
28830
28903
  }
28831
28904
  return e;
28832
28905
  }
28833
- function Pf({ value: e, onChange: t, className: n, ...r }) {
28834
- let [i, a] = f(!1), s = d(null), c = Mf.find((t) => t.value === e) ?? Mf[2];
28906
+ function Ff({ value: e, onChange: t, className: n, ...r }) {
28907
+ let [i, a] = f(!1), s = d(null), c = Nf.find((t) => t.value === e) ?? Nf[2];
28835
28908
  return o(() => {
28836
28909
  if (!i) return;
28837
28910
  let e = (e) => {
@@ -28851,7 +28924,7 @@ function Pf({ value: e, onChange: t, className: n, ...r }) {
28851
28924
  })
28852
28925
  }), i && /* @__PURE__ */ h("div", {
28853
28926
  className: "select-themeswitcher__popover",
28854
- children: /* @__PURE__ */ h(za, { children: Mf.map((n) => /* @__PURE__ */ h(Va, {
28927
+ children: /* @__PURE__ */ h(za, { children: Nf.map((n) => /* @__PURE__ */ h(Va, {
28855
28928
  icon: n.icon,
28856
28929
  active: n.value === e,
28857
28930
  trailing: n.value === e ? /* @__PURE__ */ h(Ve, {}) : null,
@@ -28865,8 +28938,8 @@ function Pf({ value: e, onChange: t, className: n, ...r }) {
28865
28938
  }
28866
28939
  //#endregion
28867
28940
  //#region src/SelectDetail.tsx
28868
- var Ff = n(!1);
28869
- function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
28941
+ var If = n(!1);
28942
+ function Lf({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
28870
28943
  let i = ar({
28871
28944
  selector: ".select-detail",
28872
28945
  y: 8,
@@ -28874,7 +28947,7 @@ function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
28874
28947
  stagger: .05,
28875
28948
  scroll: !0
28876
28949
  });
28877
- return /* @__PURE__ */ h(Ff.Provider, {
28950
+ return /* @__PURE__ */ h(If.Provider, {
28878
28951
  value: r,
28879
28952
  children: /* @__PURE__ */ h("div", {
28880
28953
  className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
@@ -28883,8 +28956,8 @@ function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
28883
28956
  })
28884
28957
  });
28885
28958
  }
28886
- var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
28887
- let l = a(Ff), u = i ?? l;
28959
+ var Rf = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
28960
+ let l = a(If), u = i ?? l;
28888
28961
  return /* @__PURE__ */ g("div", {
28889
28962
  ref: c,
28890
28963
  ...s,
@@ -28904,7 +28977,7 @@ var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loa
28904
28977
  })
28905
28978
  ]
28906
28979
  });
28907
- }), Rf = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
28980
+ }), zf = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
28908
28981
  let c = r === "vertical";
28909
28982
  return /* @__PURE__ */ h("ol", {
28910
28983
  ref: s,
@@ -28947,7 +29020,7 @@ var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loa
28947
29020
  });
28948
29021
  //#endregion
28949
29022
  //#region src/SelectSetupGuide.tsx
28950
- function zf({ status: e }) {
29023
+ function Bf({ status: e }) {
28951
29024
  return /* @__PURE__ */ h("span", {
28952
29025
  className: `select-setupguide__icon select-setupguide__icon--${e}`,
28953
29026
  "aria-hidden": "true",
@@ -28966,18 +29039,92 @@ function zf({ status: e }) {
28966
29039
  })
28967
29040
  });
28968
29041
  }
28969
- var Bf = {
29042
+ var Vf = /* @__PURE__ */ h("svg", {
29043
+ viewBox: "0 0 20 20",
29044
+ width: "16",
29045
+ height: "16",
29046
+ fill: "none",
29047
+ stroke: "currentColor",
29048
+ strokeWidth: "1.8",
29049
+ strokeLinecap: "round",
29050
+ strokeLinejoin: "round",
29051
+ "aria-hidden": "true",
29052
+ children: /* @__PURE__ */ h("path", { d: "M8 5l5 5-5 5" })
29053
+ });
29054
+ function Hf({ group: e, justDone: t }) {
29055
+ let [n, r] = f(!!(e.collapsible && e.defaultCollapsed)), i = !e.collapsible || !n;
29056
+ return /* @__PURE__ */ g("div", {
29057
+ className: `select-setupguide__group${i ? "" : " is-collapsed"}`,
29058
+ children: [e.collapsible ? /* @__PURE__ */ g("button", {
29059
+ type: "button",
29060
+ className: "select-setupguide__grouptitle select-setupguide__grouptoggle",
29061
+ "aria-expanded": i,
29062
+ onClick: () => r((e) => !e),
29063
+ children: [/* @__PURE__ */ h("span", { children: e.title }), Vf]
29064
+ }) : /* @__PURE__ */ h("div", {
29065
+ className: "select-setupguide__grouptitle",
29066
+ children: e.title
29067
+ }), /* @__PURE__ */ h("div", {
29068
+ className: "select-setupguide__collapse",
29069
+ ...i ? {} : {
29070
+ inert: "",
29071
+ "aria-hidden": !0
29072
+ },
29073
+ children: /* @__PURE__ */ h("ul", {
29074
+ className: "select-setupguide__list",
29075
+ children: e.steps.map((e) => /* @__PURE__ */ g("li", {
29076
+ className: `select-setupguide__step is-${e.status}${e.onSelect ? " is-link" : ""}${t.has(e.id) ? " is-just-done" : ""}`,
29077
+ children: [
29078
+ /* @__PURE__ */ h(Bf, { status: e.status }),
29079
+ /* @__PURE__ */ g("span", {
29080
+ className: "select-setupguide__text",
29081
+ children: [e.onSelect ? /* @__PURE__ */ g("button", {
29082
+ type: "button",
29083
+ className: "select-setupguide__steptitle select-setupguide__go",
29084
+ onClick: e.onSelect,
29085
+ children: [e.title, /* @__PURE__ */ g("span", {
29086
+ className: "select-setupguide__sr",
29087
+ children: [" — ", Uf[e.status]]
29088
+ })]
29089
+ }) : /* @__PURE__ */ g("span", {
29090
+ className: "select-setupguide__steptitle",
29091
+ children: [e.title, /* @__PURE__ */ g("span", {
29092
+ className: "select-setupguide__sr",
29093
+ children: [" — ", Uf[e.status]]
29094
+ })]
29095
+ }), e.description && /* @__PURE__ */ h("span", {
29096
+ className: "select-setupguide__stepdesc",
29097
+ children: e.description
29098
+ })]
29099
+ }),
29100
+ e.trailing ? /* @__PURE__ */ h("span", {
29101
+ className: "select-setupguide__trailing",
29102
+ children: e.trailing
29103
+ }) : e.onSelect && e.status !== "done" ? /* @__PURE__ */ h("span", {
29104
+ className: "select-setupguide__chevron",
29105
+ children: Vf
29106
+ }) : null
29107
+ ]
29108
+ }, e.id))
29109
+ })
29110
+ })]
29111
+ });
29112
+ }
29113
+ var Uf = {
28970
29114
  done: "feito",
28971
29115
  todo: "a fazer",
28972
29116
  next: "próximo passo",
28973
29117
  skipped: "pulado",
28974
29118
  waiting: "aguardando"
28975
- }, Vf = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
28976
- let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, f = pi();
28977
- return /* @__PURE__ */ g("section", {
28978
- ref: u,
28979
- ...l,
28980
- className: `select-setupguide${f ? " select-setupguide--nested" : ""}${o ? " is-minimized" : ""}${s === "sandbox" ? " select-setupguide--sandbox" : ""}${c ? " " + c : ""}`,
29119
+ }, Wf = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: s = !1, tone: c = "default", className: l, ...u }, f) {
29120
+ let p = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, m = pi(), _ = d(null), v = /* @__PURE__ */ new Set(), y = a.flatMap((e) => e.steps);
29121
+ if (_.current) for (let e of y) e.status === "done" && _.current.get(e.id) !== "done" && v.add(e.id);
29122
+ return o(() => {
29123
+ _.current = new Map(y.map((e) => [e.id, e.status]));
29124
+ }), /* @__PURE__ */ g("section", {
29125
+ ref: f,
29126
+ ...u,
29127
+ className: `select-setupguide${m ? " select-setupguide--nested" : ""}${s ? " is-minimized" : ""}${c === "sandbox" ? " select-setupguide--sandbox" : ""}${l ? " " + l : ""}`,
28981
29128
  children: [/* @__PURE__ */ g("div", {
28982
29129
  className: "select-setupguide__head",
28983
29130
  children: [
@@ -29002,15 +29149,11 @@ var Bf = {
29002
29149
  "aria-label": "Progresso",
29003
29150
  children: /* @__PURE__ */ h("span", {
29004
29151
  className: "select-setupguide__fill",
29005
- style: { width: `${d}%` }
29152
+ style: { width: `${Math.max(p, 3)}%` }
29006
29153
  })
29007
- }), /* @__PURE__ */ g("span", {
29154
+ }), /* @__PURE__ */ h("span", {
29008
29155
  className: "select-setupguide__count",
29009
- children: [
29010
- n.done,
29011
- " de ",
29012
- n.total
29013
- ]
29156
+ children: n.label ?? `${n.done} de ${n.total}`
29014
29157
  })]
29015
29158
  }),
29016
29159
  r && /* @__PURE__ */ h("div", {
@@ -29018,123 +29161,153 @@ var Bf = {
29018
29161
  children: r
29019
29162
  })
29020
29163
  ]
29021
- }), !o && /* @__PURE__ */ g("div", {
29022
- className: `select-setupguide__body${i ? "" : " select-setupguide__body--list"}`,
29023
- children: [i && /* @__PURE__ */ h("div", {
29024
- className: "select-setupguide__next",
29025
- children: i
29026
- }), /* @__PURE__ */ h("div", {
29027
- className: "select-setupguide__steps",
29028
- children: a.map((e, t) => /* @__PURE__ */ g("div", {
29029
- className: "select-setupguide__group",
29030
- children: [/* @__PURE__ */ h("div", {
29031
- className: "select-setupguide__grouptitle",
29032
- children: e.title
29033
- }), /* @__PURE__ */ h("ul", {
29034
- className: "select-setupguide__list",
29035
- children: e.steps.map((e) => /* @__PURE__ */ g("li", {
29036
- className: `select-setupguide__step is-${e.status}`,
29037
- children: [
29038
- /* @__PURE__ */ h(zf, { status: e.status }),
29039
- /* @__PURE__ */ g("span", {
29040
- className: "select-setupguide__text",
29041
- children: [/* @__PURE__ */ g("span", {
29042
- className: "select-setupguide__steptitle",
29043
- children: [e.title, /* @__PURE__ */ g("span", {
29044
- className: "select-setupguide__sr",
29045
- children: [" — ", Bf[e.status]]
29046
- })]
29047
- }), e.description && /* @__PURE__ */ h("span", {
29048
- className: "select-setupguide__stepdesc",
29049
- children: e.description
29050
- })]
29051
- }),
29052
- e.trailing && /* @__PURE__ */ h("span", {
29053
- className: "select-setupguide__trailing",
29054
- children: e.trailing
29055
- })
29056
- ]
29057
- }, e.id))
29058
- })]
29059
- }, t))
29060
- })]
29164
+ }), /* @__PURE__ */ h("div", {
29165
+ className: "select-setupguide__fold",
29166
+ ...s ? {
29167
+ inert: "",
29168
+ "aria-hidden": !0
29169
+ } : {},
29170
+ children: /* @__PURE__ */ g("div", {
29171
+ className: "select-setupguide__body",
29172
+ children: [i && /* @__PURE__ */ h("div", {
29173
+ className: "select-setupguide__next",
29174
+ children: i
29175
+ }), /* @__PURE__ */ h("div", {
29176
+ className: "select-setupguide__steps",
29177
+ children: a.map((e, t) => /* @__PURE__ */ h(Hf, {
29178
+ group: e,
29179
+ justDone: v
29180
+ }, t))
29181
+ })]
29182
+ })
29061
29183
  })]
29062
29184
  });
29063
29185
  });
29064
- function Hf({ eyebrow: e, title: t, children: n, actions: r }) {
29186
+ function Gf({ eyebrow: e, title: t, children: n, actions: r }) {
29065
29187
  return /* @__PURE__ */ g("div", {
29066
29188
  className: "select-setupnext",
29067
- children: [
29068
- e && /* @__PURE__ */ h("div", {
29069
- className: "select-setupnext__eyebrow",
29070
- children: e
29071
- }),
29072
- /* @__PURE__ */ h("h3", {
29073
- className: "select-setupnext__title",
29074
- children: t
29075
- }),
29076
- n && /* @__PURE__ */ h("div", {
29077
- className: "select-setupnext__body",
29078
- children: n
29079
- }),
29080
- r && /* @__PURE__ */ h("div", {
29081
- className: "select-setupnext__actions",
29082
- children: r
29083
- })
29084
- ]
29189
+ children: [/* @__PURE__ */ g("div", {
29190
+ className: "select-setupnext__text",
29191
+ children: [
29192
+ e && /* @__PURE__ */ h("div", {
29193
+ className: "select-setupnext__eyebrow",
29194
+ children: e
29195
+ }),
29196
+ /* @__PURE__ */ h("h3", {
29197
+ className: "select-setupnext__title",
29198
+ children: t
29199
+ }),
29200
+ n && /* @__PURE__ */ h("div", {
29201
+ className: "select-setupnext__body",
29202
+ children: n
29203
+ })
29204
+ ]
29205
+ }), r && /* @__PURE__ */ h("div", {
29206
+ className: "select-setupnext__actions",
29207
+ children: r
29208
+ })]
29085
29209
  });
29086
29210
  }
29087
29211
  //#endregion
29088
29212
  //#region src/SelectTour.tsx
29089
- var Uf = 6, Wf = 12;
29090
- function Gf(e) {
29213
+ var Kf = 6, qf = 14, Jf = 8, Yf = 640;
29214
+ function Xf(e) {
29091
29215
  let t = document.querySelector(e);
29092
29216
  if (!t) return null;
29093
29217
  let n = t.getBoundingClientRect();
29094
- return n.width === 0 && n.height === 0 ? null : {
29095
- top: n.top - Uf,
29096
- left: n.left - Uf,
29218
+ if (n.width === 0 && n.height === 0) return null;
29219
+ let r = Math.min(parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, Math.min(n.width, n.height) / 2);
29220
+ return {
29221
+ top: n.top - Kf,
29222
+ left: n.left - Kf,
29097
29223
  width: n.width + 12,
29098
- height: n.height + 12
29224
+ height: n.height + 12,
29225
+ radius: r + Kf
29099
29226
  };
29100
29227
  }
29101
- function Kf(e) {
29228
+ var Zf = (e, t, n) => Math.min(Math.max(e, t), Math.max(t, n));
29229
+ function Qf(e, t, n, r, i) {
29230
+ if (r < Yf) return {
29231
+ side: "sheet",
29232
+ left: Jf,
29233
+ top: e.top + e.height / 2 > i / 2 ? Jf : i - n - Jf
29234
+ };
29235
+ let a = e.top + e.height / 2, o = e.left + e.width / 2, s = (e) => e >= Jf && e + n <= i - Jf, c = (e) => e >= Jf && e + t <= r - Jf, l = Zf(a - n / 2, Jf, i - n - Jf), u = Zf(o - t / 2, Jf, r - t - Jf), d = [
29236
+ {
29237
+ side: "right",
29238
+ left: e.left + e.width + qf,
29239
+ top: l,
29240
+ arrow: a - l
29241
+ },
29242
+ {
29243
+ side: "left",
29244
+ left: e.left - qf - t,
29245
+ top: l,
29246
+ arrow: a - l
29247
+ },
29248
+ {
29249
+ side: "bottom",
29250
+ left: u,
29251
+ top: e.top + e.height + qf,
29252
+ arrow: o - u
29253
+ },
29254
+ {
29255
+ side: "top",
29256
+ left: u,
29257
+ top: e.top - qf - n,
29258
+ arrow: o - u
29259
+ }
29260
+ ];
29261
+ for (let r of d) {
29262
+ let o = r.side === "right" || r.side === "left";
29263
+ if (!(o && (e.height > i * .6 || a < Jf || a > i - Jf)) && c(r.left) && s(r.top)) return {
29264
+ ...r,
29265
+ arrow: Zf(r.arrow ?? 0, 16, (o ? n : t) - 16)
29266
+ };
29267
+ }
29268
+ return {
29269
+ side: "sheet",
29270
+ left: u,
29271
+ top: i - n - Jf
29272
+ };
29273
+ }
29274
+ function $f(e) {
29102
29275
  let t = document.querySelector(e);
29103
29276
  if (!t) return !1;
29104
29277
  let n = t.getBoundingClientRect();
29105
29278
  return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
29106
29279
  }
29107
- function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
29108
- let s = u(() => e ? t.filter((e) => Kf(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
29280
+ function ep({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
29281
+ let s = u(() => e ? t.filter((e) => $f(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
29109
29282
  o(() => {
29110
29283
  e && p(0);
29111
29284
  }, [e]);
29112
29285
  let C = s[c], w = c === s.length - 1, T = i(() => {
29113
29286
  if (!C) return;
29114
- let e = Gf(C.target);
29287
+ let e = Xf(C.target);
29115
29288
  v(e);
29116
29289
  let t = x.current;
29117
- if (!e || !t) return;
29118
- let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Wf, s = e.top;
29119
- o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Wf, s + r > a - 8 && (s = e.top - r - Wf)), s = Math.min(Math.max(8, s), a - r - 8), b({
29120
- top: s,
29121
- left: o
29122
- });
29290
+ e && t && b(Qf(e, t.offsetWidth, t.offsetHeight, window.innerWidth, window.innerHeight));
29123
29291
  }, [C]);
29124
29292
  return l(() => {
29125
29293
  var t, n;
29126
- e && C && ((t = document.querySelector(C.target)) == null || t.scrollIntoView({
29294
+ if (!e || !C) return;
29295
+ (t = document.querySelector(C.target)) == null || t.scrollIntoView({
29127
29296
  block: "nearest",
29128
29297
  inline: "nearest"
29129
- }), T(), (n = S.current) == null || n.focus({ preventScroll: !0 }));
29298
+ }), T();
29299
+ let r = requestAnimationFrame(T);
29300
+ return (n = S.current) == null || n.focus({ preventScroll: !0 }), () => cancelAnimationFrame(r);
29130
29301
  }, [
29131
29302
  e,
29132
29303
  C,
29133
29304
  T
29134
29305
  ]), o(() => {
29306
+ if (e) return document.body.classList.add("select-tour-open"), () => document.body.classList.remove("select-tour-open");
29307
+ }, [e]), o(() => {
29135
29308
  if (!e) return;
29136
29309
  let t = (e) => {
29137
- e.key === "Escape" && n("skip");
29310
+ e.key === "Escape" && n("skip"), e.key === "ArrowRight" && p((e) => Math.min(e + 1, s.length - 1)), e.key === "ArrowLeft" && p((e) => Math.max(e - 1, 0));
29138
29311
  };
29139
29312
  return window.addEventListener("keydown", t), window.addEventListener("resize", T), window.addEventListener("scroll", T, !0), () => {
29140
29313
  window.removeEventListener("keydown", t), window.removeEventListener("resize", T), window.removeEventListener("scroll", T, !0);
@@ -29142,7 +29315,8 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
29142
29315
  }, [
29143
29316
  e,
29144
29317
  n,
29145
- T
29318
+ T,
29319
+ s.length
29146
29320
  ]), !e || !C ? null : _(/* @__PURE__ */ g("div", {
29147
29321
  className: "select select-tour",
29148
29322
  "data-theme": a,
@@ -29158,12 +29332,13 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
29158
29332
  top: m.top,
29159
29333
  left: m.left,
29160
29334
  width: m.width,
29161
- height: m.height
29335
+ height: m.height,
29336
+ borderRadius: m.radius
29162
29337
  }
29163
29338
  }),
29164
29339
  /* @__PURE__ */ g("div", {
29165
29340
  ref: x,
29166
- className: "select-tour__pop",
29341
+ className: `select-tour__pop${y ? ` select-tour__pop--${y.side}` : ""}`,
29167
29342
  role: "dialog",
29168
29343
  "aria-modal": "true",
29169
29344
  "aria-labelledby": "select-tour-title",
@@ -29172,44 +29347,62 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
29172
29347
  left: y.left
29173
29348
  } : { visibility: "hidden" },
29174
29349
  children: [
29175
- /* @__PURE__ */ g("span", {
29176
- className: "select-tour__count",
29350
+ (y == null ? void 0 : y.arrow) !== void 0 && /* @__PURE__ */ h("span", {
29351
+ className: "select-tour__arrow",
29352
+ "aria-hidden": "true",
29353
+ style: y.side === "right" || y.side === "left" ? { top: y.arrow } : { left: y.arrow }
29354
+ }),
29355
+ /* @__PURE__ */ g("div", {
29356
+ className: "select-tour__content",
29177
29357
  children: [
29178
- c + 1,
29179
- " de ",
29180
- s.length
29358
+ /* @__PURE__ */ g("span", {
29359
+ className: "select-tour__count",
29360
+ children: [
29361
+ c + 1,
29362
+ " de ",
29363
+ s.length
29364
+ ]
29365
+ }),
29366
+ /* @__PURE__ */ h("h2", {
29367
+ id: "select-tour-title",
29368
+ className: "select-tour__title",
29369
+ children: C.title
29370
+ }),
29371
+ /* @__PURE__ */ h("div", {
29372
+ className: "select-tour__body",
29373
+ children: C.body
29374
+ })
29181
29375
  ]
29182
- }),
29183
- /* @__PURE__ */ h("h2", {
29184
- id: "select-tour-title",
29185
- className: "select-tour__title",
29186
- children: C.title
29187
- }),
29188
- /* @__PURE__ */ h("div", {
29189
- className: "select-tour__body",
29190
- children: C.body
29191
- }),
29376
+ }, c),
29192
29377
  /* @__PURE__ */ g("div", {
29193
29378
  className: "select-tour__foot",
29194
- children: [/* @__PURE__ */ h(Zi, {
29195
- onClick: () => n("skip"),
29196
- children: r.skip ?? "Pular tour"
29197
- }), /* @__PURE__ */ g("span", {
29198
- className: "select-tour__nav",
29199
- children: [c > 0 && /* @__PURE__ */ h(U, {
29200
- variant: "secondary",
29201
- size: "sm",
29202
- inline: !0,
29203
- onClick: () => p((e) => e - 1),
29204
- children: r.prev ?? "Anterior"
29205
- }), /* @__PURE__ */ h(U, {
29206
- ref: S,
29207
- size: "sm",
29208
- inline: !0,
29209
- onClick: () => w ? n("done") : p((e) => e + 1),
29210
- children: w ? r.done ?? "Concluir" : r.next ?? "Próximo"
29211
- })]
29212
- })]
29379
+ children: [
29380
+ /* @__PURE__ */ h("span", {
29381
+ className: "select-tour__dots",
29382
+ "aria-hidden": "true",
29383
+ children: s.map((e, t) => /* @__PURE__ */ h("i", { className: t === c ? "is-on" : void 0 }, t))
29384
+ }),
29385
+ /* @__PURE__ */ h(Zi, {
29386
+ onClick: () => n("skip"),
29387
+ children: r.skip ?? "Pular tour"
29388
+ }),
29389
+ /* @__PURE__ */ g("span", {
29390
+ className: "select-tour__nav",
29391
+ children: [c > 0 && /* @__PURE__ */ h(H, {
29392
+ variant: "secondary",
29393
+ size: "sm",
29394
+ inline: !0,
29395
+ onClick: () => p((e) => e - 1),
29396
+ children: r.prev ?? "Anterior"
29397
+ }), /* @__PURE__ */ h(H, {
29398
+ ref: S,
29399
+ size: "sm",
29400
+ inline: !0,
29401
+ onClick: () => w ? n("done") : p((e) => e + 1),
29402
+ children: w ? r.done ?? "Concluir" : r.next ?? "Próximo"
29403
+ })]
29404
+ })
29405
+ ]
29213
29406
  })
29214
29407
  ]
29215
29408
  })
@@ -29218,7 +29411,7 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
29218
29411
  }
29219
29412
  //#endregion
29220
29413
  //#region src/SelectPlanCard.tsx
29221
- var Jf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
29414
+ var tp = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
29222
29415
  return /* @__PURE__ */ g("div", {
29223
29416
  ref: d,
29224
29417
  ...u,
@@ -29273,7 +29466,7 @@ var Jf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
29273
29466
  })]
29274
29467
  })]
29275
29468
  });
29276
- }), Yf = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
29469
+ }), np = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
29277
29470
  return /* @__PURE__ */ g("div", {
29278
29471
  ref: l,
29279
29472
  ...c,
@@ -29309,7 +29502,7 @@ var Jf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
29309
29502
  ]
29310
29503
  });
29311
29504
  });
29312
- function Xf({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
29505
+ function rp({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
29313
29506
  let c = /* @__PURE__ */ g(m, { children: [
29314
29507
  e && /* @__PURE__ */ h("span", {
29315
29508
  className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
@@ -29341,7 +29534,7 @@ function Xf({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
29341
29534
  children: c
29342
29535
  });
29343
29536
  }
29344
- function Zf({ children: e }) {
29537
+ function ip({ children: e }) {
29345
29538
  return /* @__PURE__ */ h("div", {
29346
29539
  className: "select-listlabel",
29347
29540
  children: e
@@ -29349,7 +29542,7 @@ function Zf({ children: e }) {
29349
29542
  }
29350
29543
  //#endregion
29351
29544
  //#region src/SelectThumbnail.tsx
29352
- var Qf = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
29545
+ var ap = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
29353
29546
  let [c, l] = f(!1);
29354
29547
  o(() => l(!1), [e]);
29355
29548
  let u = /* @__PURE__ */ h("span", {
@@ -29383,7 +29576,7 @@ var Qf = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
29383
29576
  });
29384
29577
  //#endregion
29385
29578
  //#region src/SelectImageZoomModal.tsx
29386
- function $f({ open: e, onClose: t, src: n, alt: r, title: i }) {
29579
+ function op({ open: e, onClose: t, src: n, alt: r, title: i }) {
29387
29580
  return /* @__PURE__ */ h(mc, {
29388
29581
  open: e,
29389
29582
  onClose: t,
@@ -29402,7 +29595,7 @@ function $f({ open: e, onClose: t, src: n, alt: r, title: i }) {
29402
29595
  }
29403
29596
  //#endregion
29404
29597
  //#region src/SelectZoomThumbnail.tsx
29405
- function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
29598
+ function sp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
29406
29599
  let [a, o] = f(!1);
29407
29600
  return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
29408
29601
  type: "button",
@@ -29415,19 +29608,19 @@ function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
29415
29608
  cursor: "zoom-in",
29416
29609
  display: "inline-flex"
29417
29610
  },
29418
- children: /* @__PURE__ */ h(Qf, {
29611
+ children: /* @__PURE__ */ h(ap, {
29419
29612
  src: e,
29420
29613
  size: n,
29421
29614
  alt: t,
29422
29615
  count: i
29423
29616
  })
29424
- }), a && /* @__PURE__ */ h($f, {
29617
+ }), a && /* @__PURE__ */ h(op, {
29425
29618
  open: !0,
29426
29619
  onClose: () => o(!1),
29427
29620
  src: e,
29428
29621
  alt: t,
29429
29622
  title: r ?? t
29430
- })] }) : /* @__PURE__ */ h(Qf, {
29623
+ })] }) : /* @__PURE__ */ h(ap, {
29431
29624
  size: n,
29432
29625
  alt: t,
29433
29626
  count: i
@@ -29435,7 +29628,7 @@ function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
29435
29628
  }
29436
29629
  //#endregion
29437
29630
  //#region src/SelectMediaCell.tsx
29438
- var tp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
29631
+ var cp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
29439
29632
  return /* @__PURE__ */ g("span", {
29440
29633
  ref: a,
29441
29634
  ...i,
@@ -29457,7 +29650,7 @@ var tp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
29457
29650
  });
29458
29651
  //#endregion
29459
29652
  //#region src/SelectOfflineModal.tsx
29460
- function np() {
29653
+ function lp() {
29461
29654
  let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
29462
29655
  return o(() => {
29463
29656
  let e = () => t(!1), n = () => t(!0);
@@ -29480,7 +29673,7 @@ function np() {
29480
29673
  }
29481
29674
  //#endregion
29482
29675
  //#region src/SelectKeyValueEditor.tsx
29483
- function rp(e) {
29676
+ function up(e) {
29484
29677
  return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
29485
29678
  name: String(e.name ?? e.key ?? ""),
29486
29679
  value: e.value == null ? "" : String(e.value)
@@ -29489,8 +29682,8 @@ function rp(e) {
29489
29682
  value: t == null ? "" : String(t)
29490
29683
  })) : [];
29491
29684
  }
29492
- var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
29493
- let d = rp(e), f = (e, n) => t(d.map((t, r) => r === e ? {
29685
+ var dp = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
29686
+ let d = up(e), f = (e, n) => t(d.map((t, r) => r === e ? {
29494
29687
  ...t,
29495
29688
  ...n
29496
29689
  } : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
@@ -29554,7 +29747,7 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
29554
29747
  })
29555
29748
  ]
29556
29749
  });
29557
- }), ap = (e) => String(e).padStart(2, "0"), op = {
29750
+ }), fp = (e) => String(e).padStart(2, "0"), pp = {
29558
29751
  "en-US": {
29559
29752
  weekdays: [
29560
29753
  "Su",
@@ -29613,34 +29806,34 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
29613
29806
  to: "Até",
29614
29807
  cancel: "Cancelar",
29615
29808
  apply: "Aplicar",
29616
- formatDate: (e) => `${ap(e.getDate())} / ${ap(e.getMonth() + 1)} / ${e.getFullYear()}`
29809
+ formatDate: (e) => `${fp(e.getDate())} / ${fp(e.getMonth() + 1)} / ${e.getFullYear()}`
29617
29810
  }
29618
- }, sp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), cp = (e) => new Date(e.getFullYear(), e.getMonth(), 1), lp = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), up = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), dp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), fp = (e) => {
29811
+ }, mp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), hp = (e) => new Date(e.getFullYear(), e.getMonth(), 1), gp = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), _p = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), vp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), yp = (e) => {
29619
29812
  let t = /* @__PURE__ */ new Date();
29620
29813
  return {
29621
29814
  from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
29622
29815
  to: t
29623
29816
  };
29624
- }, pp = [
29817
+ }, bp = [
29625
29818
  {
29626
29819
  id: "15m",
29627
29820
  label: "Last 15 minutes",
29628
- range: () => fp(15)
29821
+ range: () => yp(15)
29629
29822
  },
29630
29823
  {
29631
29824
  id: "1h",
29632
29825
  label: "Last 1 hour",
29633
- range: () => fp(60)
29826
+ range: () => yp(60)
29634
29827
  },
29635
29828
  {
29636
29829
  id: "3h",
29637
29830
  label: "Last 3 hours",
29638
- range: () => fp(180)
29831
+ range: () => yp(180)
29639
29832
  },
29640
29833
  {
29641
29834
  id: "24h",
29642
29835
  label: "Last 24 hours",
29643
- range: () => fp(1440)
29836
+ range: () => yp(1440)
29644
29837
  },
29645
29838
  {
29646
29839
  id: "3d",
@@ -29656,78 +29849,78 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
29656
29849
  id: "all",
29657
29850
  label: "All",
29658
29851
  range: () => ({
29659
- from: sp(/* @__PURE__ */ new Date()),
29660
- to: sp(/* @__PURE__ */ new Date())
29852
+ from: mp(/* @__PURE__ */ new Date()),
29853
+ to: mp(/* @__PURE__ */ new Date())
29661
29854
  })
29662
29855
  }
29663
- ], mp = (e) => {
29664
- let t = sp(/* @__PURE__ */ new Date());
29856
+ ], xp = (e) => {
29857
+ let t = mp(/* @__PURE__ */ new Date());
29665
29858
  return {
29666
- from: lp(t, -e),
29859
+ from: gp(t, -e),
29667
29860
  to: t
29668
29861
  };
29669
- }, hp = (e) => {
29670
- let t = lp(sp(/* @__PURE__ */ new Date()), -e);
29862
+ }, Sp = (e) => {
29863
+ let t = gp(mp(/* @__PURE__ */ new Date()), -e);
29671
29864
  return {
29672
29865
  from: t,
29673
29866
  to: t
29674
29867
  };
29675
- }, gp = [
29868
+ }, Cp = [
29676
29869
  {
29677
29870
  id: "today",
29678
29871
  label: "Hoje",
29679
- range: () => mp(0)
29872
+ range: () => xp(0)
29680
29873
  },
29681
29874
  {
29682
29875
  id: "yesterday",
29683
29876
  label: "Ontem",
29684
- range: () => hp(1)
29877
+ range: () => Sp(1)
29685
29878
  },
29686
29879
  {
29687
29880
  id: "7d",
29688
29881
  label: "Últimos 7 dias",
29689
- range: () => mp(6)
29882
+ range: () => xp(6)
29690
29883
  },
29691
29884
  {
29692
29885
  id: "10d",
29693
29886
  label: "Últimos 10 dias",
29694
- range: () => mp(9)
29887
+ range: () => xp(9)
29695
29888
  },
29696
29889
  {
29697
29890
  id: "15d",
29698
29891
  label: "Últimos 15 dias",
29699
- range: () => mp(14)
29892
+ range: () => xp(14)
29700
29893
  },
29701
29894
  {
29702
29895
  id: "20d",
29703
29896
  label: "Últimos 20 dias",
29704
- range: () => mp(19)
29897
+ range: () => xp(19)
29705
29898
  },
29706
29899
  {
29707
29900
  id: "30d",
29708
29901
  label: "Últimos 30 dias",
29709
- range: () => mp(29)
29902
+ range: () => xp(29)
29710
29903
  },
29711
29904
  {
29712
29905
  id: "90d",
29713
29906
  label: "Últimos 90 dias",
29714
- range: () => mp(89)
29907
+ range: () => xp(89)
29715
29908
  }
29716
29909
  ];
29717
- function _p(e) {
29910
+ function wp(e) {
29718
29911
  if (!e) return "—";
29719
29912
  let t = e.getHours(), n = t < 12 ? "AM" : "PM";
29720
29913
  return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
29721
29914
  }
29722
- var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
29723
- let p = op[a], m = sp(/* @__PURE__ */ new Date()), _ = s ? sp(s) : null, [v, y] = f(e ?? {
29915
+ var Tp = r(function({ value: e, presets: t = bp, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
29916
+ let p = pp[a], m = mp(/* @__PURE__ */ new Date()), _ = s ? mp(s) : null, [v, y] = f(e ?? {
29724
29917
  from: m,
29725
29918
  to: m
29726
- }), [b, x] = f(cp((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = lp(cp(b), -cp(b).getDay()), T = Array.from({ length: 42 }, (e, t) => lp(w, t)), E = (e) => _ ? sp(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
29919
+ }), [b, x] = f(hp((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = gp(hp(b), -hp(b).getDay()), T = Array.from({ length: 42 }, (e, t) => gp(w, t)), E = (e) => _ ? mp(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
29727
29920
  className: "select-datepicker__placeholder",
29728
29921
  children: "— / — / ——"
29729
29922
  }), O = (e) => {
29730
- E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < sp(t.from) ? {
29923
+ E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < mp(t.from) ? {
29731
29924
  from: e,
29732
29925
  to: null
29733
29926
  } : {
@@ -29737,7 +29930,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29737
29930
  }, k = (e) => {
29738
29931
  if (e.disabled || !e.range) return;
29739
29932
  let t = e.range();
29740
- y(t), C(e.id), t.from && x(cp(t.from));
29933
+ y(t), C(e.id), t.from && x(hp(t.from));
29741
29934
  }, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
29742
29935
  return /* @__PURE__ */ h("div", {
29743
29936
  ref: d,
@@ -29783,7 +29976,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29783
29976
  }),
29784
29977
  o && /* @__PURE__ */ h("span", {
29785
29978
  className: "select-datepicker__pill select-datepicker__pill--time",
29786
- children: _p(v[e])
29979
+ children: wp(v[e])
29787
29980
  })
29788
29981
  ]
29789
29982
  }, e))
@@ -29795,8 +29988,8 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29795
29988
  type: "button",
29796
29989
  className: "select-datepicker__nav",
29797
29990
  "aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
29798
- onClick: () => x((e) => up(e, -1)),
29799
- children: /* @__PURE__ */ h(G, {})
29991
+ onClick: () => x((e) => _p(e, -1)),
29992
+ children: /* @__PURE__ */ h(W, {})
29800
29993
  }),
29801
29994
  /* @__PURE__ */ g("span", {
29802
29995
  className: "select-datepicker__monthlabel",
@@ -29810,8 +30003,8 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29810
30003
  type: "button",
29811
30004
  className: "select-datepicker__nav",
29812
30005
  "aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
29813
- onClick: () => x((e) => up(e, 1)),
29814
- children: /* @__PURE__ */ h(W, {})
30006
+ onClick: () => x((e) => _p(e, 1)),
30007
+ children: /* @__PURE__ */ h(U, {})
29815
30008
  })
29816
30009
  ]
29817
30010
  }),
@@ -29822,7 +30015,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29822
30015
  className: "select-datepicker__weekday",
29823
30016
  children: e
29824
30017
  }, t)), T.map((e) => {
29825
- let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && dp(e, v.from), i = !!v.to && dp(e, v.to), a = r || i, o = !!v.from && !!v.to && !dp(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > sp(v.from) && e < sp(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (dp(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
30018
+ let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && vp(e, v.from), i = !!v.to && vp(e, v.to), a = r || i, o = !!v.from && !!v.to && !vp(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > mp(v.from) && e < mp(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (vp(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
29826
30019
  return /* @__PURE__ */ h("div", {
29827
30020
  className: s,
29828
30021
  children: /* @__PURE__ */ h("button", {
@@ -29837,12 +30030,12 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29837
30030
  }),
29838
30031
  /* @__PURE__ */ g("div", {
29839
30032
  className: "select-datepicker__footer",
29840
- children: [/* @__PURE__ */ h(U, {
30033
+ children: [/* @__PURE__ */ h(H, {
29841
30034
  variant: "secondary",
29842
30035
  inline: !0,
29843
30036
  onClick: r,
29844
30037
  children: p.cancel
29845
- }), /* @__PURE__ */ h(U, {
30038
+ }), /* @__PURE__ */ h(H, {
29846
30039
  variant: "primary",
29847
30040
  inline: !0,
29848
30041
  onClick: () => n == null ? void 0 : n(v),
@@ -29853,33 +30046,33 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
29853
30046
  })]
29854
30047
  })
29855
30048
  });
29856
- }), yp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), bp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), xp = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
29857
- function Sp(e, t) {
30049
+ }), Ep = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Dp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Op = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
30050
+ function kp(e, t) {
29858
30051
  for (let r of t) {
29859
30052
  var n;
29860
30053
  let t = (n = r.range) == null ? void 0 : n.call(r);
29861
- if (t != null && t.from && t != null && t.to && bp(t.from, e.start) && bp(t.to, e.end)) return r.label;
30054
+ if (t != null && t.from && t != null && t.to && Dp(t.from, e.start) && Dp(t.to, e.end)) return r.label;
29862
30055
  }
29863
- return bp(e.start, e.end) ? xp(e.start) : `${xp(e.start)} – ${xp(e.end)}`;
30056
+ return Dp(e.start, e.end) ? Op(e.start) : `${Op(e.start)} – ${Op(e.end)}`;
29864
30057
  }
29865
- function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
29866
- let [c, l] = f(!1), u = r === null ? null : r ?? yp(/* @__PURE__ */ new Date());
30058
+ function Ap({ value: e, onChange: t, presets: n = Cp, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
30059
+ let [c, l] = f(!1), u = r === null ? null : r ?? Ep(/* @__PURE__ */ new Date());
29867
30060
  return /* @__PURE__ */ h(fr, {
29868
30061
  active: c,
29869
30062
  onClose: () => l(!1),
29870
30063
  placement: i,
29871
30064
  role: "dialog",
29872
- activator: /* @__PURE__ */ h(U, {
30065
+ activator: /* @__PURE__ */ h(H, {
29873
30066
  variant: "secondary",
29874
30067
  size: a,
29875
30068
  inline: !s,
29876
30069
  disabled: o,
29877
30070
  icon: /* @__PURE__ */ h(rt, {}),
29878
- trailingIcon: /* @__PURE__ */ h(K, {}),
30071
+ trailingIcon: /* @__PURE__ */ h(G, {}),
29879
30072
  onClick: () => l((e) => !e),
29880
- children: Sp(e, n)
30073
+ children: kp(e, n)
29881
30074
  }),
29882
- children: /* @__PURE__ */ h(vp, {
30075
+ children: /* @__PURE__ */ h(Tp, {
29883
30076
  embedded: !0,
29884
30077
  locale: "pt-BR",
29885
30078
  showTime: !1,
@@ -29892,8 +30085,8 @@ function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i =
29892
30085
  onCancel: () => l(!1),
29893
30086
  onApply: (e) => {
29894
30087
  e.from && t({
29895
- start: yp(e.from),
29896
- end: yp(e.to ?? e.from)
30088
+ start: Ep(e.from),
30089
+ end: Ep(e.to ?? e.from)
29897
30090
  }), l(!1);
29898
30091
  }
29899
30092
  })
@@ -29901,7 +30094,7 @@ function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i =
29901
30094
  }
29902
30095
  //#endregion
29903
30096
  //#region src/SelectNumberField.tsx
29904
- var wp = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: d, placeholder: p, size: m = "md", ariaLabel: _, className: v, ...y }, b) {
30097
+ var jp = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: d, placeholder: p, size: m = "md", ariaLabel: _, className: v, ...y }, b) {
29905
30098
  let x = s(), S = u ? `${x}-err` : l ? `${x}-hint` : void 0, C = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), w = (e) => Math.round(e * 1e6) / 1e6, T = t ?? 0, E = r != null && T <= r, D = i != null && T >= i, [O, k] = f(!1), [A, j] = f(""), M = o && O ? A : t == null ? "" : String(t), N = (e) => {
29906
30099
  let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
29907
30100
  if (o && j(t), t === "" || t === "-" || t === ".") return n(null);
@@ -29979,7 +30172,7 @@ var wp = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
29979
30172
  });
29980
30173
  //#endregion
29981
30174
  //#region src/SelectRepeatingFieldArray.tsx
29982
- function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
30175
+ function Mp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
29983
30176
  let p = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
29984
30177
  let i = n + r;
29985
30178
  if (i < 0 || i >= e.length) return;
@@ -30034,7 +30227,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
30034
30227
  onClick: r.moveUp
30035
30228
  }), /* @__PURE__ */ h(Y, {
30036
30229
  size: "sm",
30037
- icon: /* @__PURE__ */ h(K, {}),
30230
+ icon: /* @__PURE__ */ h(G, {}),
30038
30231
  label: "Mover para baixo",
30039
30232
  disabled: r.isLast,
30040
30233
  onClick: r.moveDown
@@ -30054,7 +30247,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
30054
30247
  align: "space-between",
30055
30248
  blockAlign: "center",
30056
30249
  gap: "200",
30057
- children: [/* @__PURE__ */ h(U, {
30250
+ children: [/* @__PURE__ */ h(H, {
30058
30251
  variant: "secondary",
30059
30252
  size: "sm",
30060
30253
  inline: !0,
@@ -30074,7 +30267,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
30074
30267
  }
30075
30268
  //#endregion
30076
30269
  //#region src/SelectBuilderLayout.tsx
30077
- function Ep({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
30270
+ function Np({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
30078
30271
  let d = y();
30079
30272
  return /* @__PURE__ */ h(ba, {
30080
30273
  title: e,
@@ -30114,11 +30307,11 @@ function Ep({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
30114
30307
  }
30115
30308
  //#endregion
30116
30309
  //#region src/SelectBuilderWorkspace.tsx
30117
- function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: d = "Descartar", error: p, sections: _ = [], activeId: v, onActiveChange: b, searchable: x = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
30310
+ function Pp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: d = "Descartar", error: p, sections: _ = [], activeId: v, onActiveChange: b, searchable: x = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
30118
30311
  var L;
30119
- let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [H, ne] = f("panel"), re = P ?? H, ie = (e) => {
30120
- P === void 0 && ne(e), F == null || F(e);
30121
- }, K = v === void 0 ? B : v, ae = z ? K == null ? void 0 : _.find((e) => e.id === K) : _.find((e) => e.id === K) ?? _[0], oe = (e) => {
30312
+ let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [ne, re] = f("panel"), ie = P ?? ne, ae = (e) => {
30313
+ P === void 0 && re(e), F == null || F(e);
30314
+ }, G = v === void 0 ? B : v, q = z ? G == null ? void 0 : _.find((e) => e.id === G) : _.find((e) => e.id === G) ?? _[0], oe = (e) => {
30122
30315
  v === void 0 && ee(e), b == null || b(e);
30123
30316
  }, se = te.trim().toLowerCase(), J = u(() => {
30124
30317
  let e = se ? _.filter((e) => (e.title + " " + (e.keywords ?? "") + " " + (e.group ?? "")).toLowerCase().includes(se)) : _, t = [];
@@ -30152,27 +30345,27 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30152
30345
  onChange: V,
30153
30346
  placeholder: S
30154
30347
  })
30155
- }) : null, ue = ae ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
30348
+ }) : null, ue = q ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
30156
30349
  className: "select-bwork__panelhead",
30157
30350
  children: [
30158
30351
  z && /* @__PURE__ */ g("button", {
30159
30352
  type: "button",
30160
30353
  className: "select-bwork__backlink",
30161
30354
  onClick: () => oe(null),
30162
- children: [/* @__PURE__ */ h(G, {}), "Todas as seções"]
30355
+ children: [/* @__PURE__ */ h(W, {}), "Todas as seções"]
30163
30356
  }),
30164
30357
  /* @__PURE__ */ h("h2", {
30165
30358
  className: "select-bwork__paneltitle",
30166
- children: ae.title
30359
+ children: q.title
30167
30360
  }),
30168
- ae.description && /* @__PURE__ */ h("p", {
30361
+ q.description && /* @__PURE__ */ h("p", {
30169
30362
  className: "select-bwork__paneldesc",
30170
- children: ae.description
30363
+ children: q.description
30171
30364
  })
30172
30365
  ]
30173
30366
  }), /* @__PURE__ */ h("div", {
30174
30367
  className: "select-bwork__panelbody",
30175
- children: ae.content
30368
+ children: q.content
30176
30369
  })] }) : null, de = /* @__PURE__ */ g("div", {
30177
30370
  className: "select-bwork__seclist",
30178
30371
  children: [
@@ -30211,7 +30404,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30211
30404
  /* @__PURE__ */ h("span", {
30212
30405
  className: "select-bwork__secchev",
30213
30406
  "aria-hidden": "true",
30214
- children: /* @__PURE__ */ h(W, {})
30407
+ children: /* @__PURE__ */ h(U, {})
30215
30408
  })
30216
30409
  ]
30217
30410
  }, e.id))]
@@ -30230,14 +30423,14 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30230
30423
  }) : /* @__PURE__ */ h("div", {
30231
30424
  className: "select-bwork__stage",
30232
30425
  children: C
30233
- }), pe = "select-bwork" + (A === "rail" ? "" : " select-bwork--split") + (N ? ` select-bwork--tabs select-bwork--tab-${re}` : ""), me = M ? typeof M == "string" ? { "--select-bwork-left": M } : {
30426
+ }), pe = "select-bwork" + (A === "rail" ? "" : " select-bwork--split") + (N ? ` select-bwork--tabs select-bwork--tab-${ie}` : ""), me = M ? typeof M == "string" ? { "--select-bwork-left": M } : {
30234
30427
  "--select-bwork-left": M.narrow,
30235
30428
  "--select-bwork-left-wide": M.wide
30236
30429
  } : void 0, he;
30237
30430
  return he = A === "single" ? /* @__PURE__ */ h("div", {
30238
30431
  className: "select-bwork__panelbody",
30239
30432
  children: j
30240
- }) : z && !ae ? de : ue, /* @__PURE__ */ g("div", {
30433
+ }) : z && !q ? de : ue, /* @__PURE__ */ g("div", {
30241
30434
  className: pe,
30242
30435
  style: me,
30243
30436
  children: [
@@ -30249,7 +30442,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30249
30442
  className: "select-page__back",
30250
30443
  onClick: () => r ? r() : R(n || -1),
30251
30444
  "aria-label": "Voltar",
30252
- children: /* @__PURE__ */ h(q, {})
30445
+ children: /* @__PURE__ */ h(K, {})
30253
30446
  }),
30254
30447
  /* @__PURE__ */ g("div", {
30255
30448
  className: "select-bwork__ident",
@@ -30269,14 +30462,14 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30269
30462
  className: "select-bwork__actions",
30270
30463
  children: [
30271
30464
  ce,
30272
- I ? null : l ? E && /* @__PURE__ */ h(U, {
30465
+ I ? null : l ? E && /* @__PURE__ */ h(H, {
30273
30466
  inline: !0,
30274
30467
  size: "sm",
30275
30468
  variant: "secondary",
30276
30469
  onClick: l,
30277
30470
  disabled: a,
30278
30471
  children: d
30279
- }) : c && /* @__PURE__ */ h(U, {
30472
+ }) : c && /* @__PURE__ */ h(H, {
30280
30473
  inline: !0,
30281
30474
  size: "sm",
30282
30475
  variant: "secondary",
@@ -30284,7 +30477,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30284
30477
  disabled: a,
30285
30478
  children: "Cancelar"
30286
30479
  }),
30287
- !I && /* @__PURE__ */ h(U, {
30480
+ !I && /* @__PURE__ */ h(H, {
30288
30481
  inline: !0,
30289
30482
  size: "sm",
30290
30483
  onClick: i,
@@ -30308,8 +30501,8 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30308
30501
  children: /* @__PURE__ */ h(Rr, {
30309
30502
  fullWidth: !0,
30310
30503
  ariaLabel: "O que ver",
30311
- value: re,
30312
- onChange: (e) => ie(e),
30504
+ value: ie,
30505
+ onChange: (e) => ae(e),
30313
30506
  options: [{
30314
30507
  value: "panel",
30315
30508
  label: N[0]
@@ -30334,9 +30527,9 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30334
30527
  children: e.label
30335
30528
  }), e.items.map((e) => /* @__PURE__ */ g("button", {
30336
30529
  type: "button",
30337
- className: "select-bwork__navitem" + (e.id === (ae == null ? void 0 : ae.id) ? " is-active" : "") + (e.tone === "critical" ? " is-critical" : ""),
30530
+ className: "select-bwork__navitem" + (e.id === (q == null ? void 0 : q.id) ? " is-active" : "") + (e.tone === "critical" ? " is-critical" : ""),
30338
30531
  onClick: () => oe(e.id),
30339
- "aria-current": e.id === (ae == null ? void 0 : ae.id) ? "true" : void 0,
30532
+ "aria-current": e.id === (q == null ? void 0 : q.id) ? "true" : void 0,
30340
30533
  children: [
30341
30534
  e.icon && /* @__PURE__ */ h("span", {
30342
30535
  className: "select-bwork__navicon",
@@ -30363,7 +30556,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30363
30556
  }),
30364
30557
  /* @__PURE__ */ h("section", {
30365
30558
  className: "select-bwork__panel",
30366
- "aria-label": A === "single" ? e : (ae == null ? void 0 : ae.title) ?? "Seções",
30559
+ "aria-label": A === "single" ? e : (q == null ? void 0 : q.title) ?? "Seções",
30367
30560
  children: he
30368
30561
  }),
30369
30562
  fe
@@ -30374,10 +30567,10 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
30374
30567
  }
30375
30568
  //#endregion
30376
30569
  //#region src/SelectFlowCanvas.tsx
30377
- var Op = (e) => Math.round(e * 100) / 100;
30378
- function kp({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: p, ariaLabel: m }) {
30570
+ var Fp = (e) => Math.round(e * 100) / 100;
30571
+ function Ip({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: p, ariaLabel: m }) {
30379
30572
  let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
30380
- let t = Op(Math.min(d, Math.max(u, e)));
30573
+ let t = Fp(Math.min(d, Math.max(u, e)));
30381
30574
  o === void 0 && y(t), l == null || l(t);
30382
30575
  }, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
30383
30576
  return /* @__PURE__ */ g("div", {
@@ -30493,7 +30686,7 @@ function kp({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
30493
30686
  })]
30494
30687
  });
30495
30688
  }
30496
- function Ap({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: m = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
30689
+ function Lp({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: m = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
30497
30690
  let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
30498
30691
  left: e,
30499
30692
  top: t,
@@ -30569,7 +30762,7 @@ function Ap({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
30569
30762
  })]
30570
30763
  });
30571
30764
  }
30572
- function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
30765
+ function Rp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
30573
30766
  return /* @__PURE__ */ g("div", {
30574
30767
  className: "select-flowpage",
30575
30768
  children: [
@@ -30577,7 +30770,7 @@ function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
30577
30770
  className: "select-flowpage__bar",
30578
30771
  children: [
30579
30772
  n && /* @__PURE__ */ h(Y, {
30580
- icon: /* @__PURE__ */ h(q, {}),
30773
+ icon: /* @__PURE__ */ h(K, {}),
30581
30774
  label: r,
30582
30775
  variant: "outline",
30583
30776
  onClick: n
@@ -30631,7 +30824,7 @@ function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
30631
30824
  }
30632
30825
  //#endregion
30633
30826
  //#region src/SelectSwitchField.tsx
30634
- var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
30827
+ var zp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
30635
30828
  return /* @__PURE__ */ g("div", {
30636
30829
  ref: c,
30637
30830
  ...s,
@@ -30659,7 +30852,7 @@ var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
30659
30852
  children: i
30660
30853
  })]
30661
30854
  });
30662
- }), Np = [
30855
+ }), Bp = [
30663
30856
  "#212529",
30664
30857
  "#495057",
30665
30858
  "#868E96",
@@ -30676,13 +30869,13 @@ var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
30676
30869
  "#DB2777",
30677
30870
  "#9333EA",
30678
30871
  "#6D28D9"
30679
- ], Pp = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
30680
- function Fp(e) {
30681
- let t = Pp.exec((e ?? "").trim());
30872
+ ], Vp = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
30873
+ function Hp(e) {
30874
+ let t = Vp.exec((e ?? "").trim());
30682
30875
  return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
30683
30876
  }
30684
- function Ip(e) {
30685
- let t = Fp(e);
30877
+ function Up(e) {
30878
+ let t = Hp(e);
30686
30879
  if (!t) return 0;
30687
30880
  let [n, r, i] = [
30688
30881
  1,
@@ -30691,13 +30884,13 @@ function Ip(e) {
30691
30884
  ].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
30692
30885
  return .2126 * n + .7152 * r + .0722 * i;
30693
30886
  }
30694
- function Lp(e, t) {
30695
- let [n, r] = [Ip(e), Ip(t)].sort((e, t) => t - e);
30887
+ function Wp(e, t) {
30888
+ let [n, r] = [Up(e), Up(t)].sort((e, t) => t - e);
30696
30889
  return (n + .05) / (r + .05);
30697
30890
  }
30698
- var Rp = (e) => Math.min(1, Math.max(0, e));
30699
- function zp(e) {
30700
- let t = Fp(e) ?? "#000000", [n, r, i] = [
30891
+ var Gp = (e) => Math.min(1, Math.max(0, e));
30892
+ function Kp(e) {
30893
+ let t = Hp(e) ?? "#000000", [n, r, i] = [
30701
30894
  1,
30702
30895
  3,
30703
30896
  5
@@ -30708,7 +30901,7 @@ function zp(e) {
30708
30901
  v: a
30709
30902
  };
30710
30903
  }
30711
- function Bp({ h: e, s: t, v: n }) {
30904
+ function qp({ h: e, s: t, v: n }) {
30712
30905
  let r = (r) => {
30713
30906
  let i = (r + e / 60) % 6;
30714
30907
  return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
@@ -30719,26 +30912,26 @@ function Bp({ h: e, s: t, v: n }) {
30719
30912
  r(1)
30720
30913
  ].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
30721
30914
  }
30722
- function Vp({ hex: e, onPick: t }) {
30723
- let [n, r] = f(() => zp(e ?? "#1D4ED8")), i = d(n), a = (e) => {
30915
+ function Jp({ hex: e, onPick: t }) {
30916
+ let [n, r] = f(() => Kp(e ?? "#1D4ED8")), i = d(n), a = (e) => {
30724
30917
  i.current = e, r(e);
30725
30918
  };
30726
30919
  o(() => {
30727
- if (!e || Bp(i.current) === e) return;
30728
- let t = zp(e);
30920
+ if (!e || qp(i.current) === e) return;
30921
+ let t = Kp(e);
30729
30922
  a(t.s === 0 || t.v === 0 ? {
30730
30923
  ...t,
30731
30924
  h: i.current.h
30732
30925
  } : t);
30733
30926
  }, [e]);
30734
30927
  let s = (e) => {
30735
- a(e), t(Bp(e));
30928
+ a(e), t(qp(e));
30736
30929
  }, c = (e, t, n) => {
30737
30930
  var r;
30738
30931
  (r = e.setPointerCapture) == null || r.call(e, t.pointerId);
30739
30932
  let i = (t) => {
30740
30933
  let r = e.getBoundingClientRect();
30741
- n(Rp((t.clientX - r.left) / (r.width || 1)), Rp((t.clientY - r.top) / (r.height || 1)));
30934
+ n(Gp((t.clientX - r.left) / (r.width || 1)), Gp((t.clientY - r.top) / (r.height || 1)));
30742
30935
  };
30743
30936
  i(t);
30744
30937
  let a = (e) => i(e), o = () => {
@@ -30748,20 +30941,20 @@ function Vp({ hex: e, onPick: t }) {
30748
30941
  }, l = (e) => {
30749
30942
  let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
30750
30943
  h: n,
30751
- s: Rp(r - t),
30944
+ s: Gp(r - t),
30752
30945
  v: a
30753
30946
  } : e.key === "ArrowRight" ? {
30754
30947
  h: n,
30755
- s: Rp(r + t),
30948
+ s: Gp(r + t),
30756
30949
  v: a
30757
30950
  } : e.key === "ArrowUp" ? {
30758
30951
  h: n,
30759
30952
  s: r,
30760
- v: Rp(a + t)
30953
+ v: Gp(a + t)
30761
30954
  } : e.key === "ArrowDown" ? {
30762
30955
  h: n,
30763
30956
  s: r,
30764
- v: Rp(a - t)
30957
+ v: Gp(a - t)
30765
30958
  } : null;
30766
30959
  o && (e.preventDefault(), s(o));
30767
30960
  }, u = (e) => {
@@ -30771,11 +30964,11 @@ function Vp({ hex: e, onPick: t }) {
30771
30964
  s: r,
30772
30965
  v: a
30773
30966
  }));
30774
- }, p = Bp({
30967
+ }, p = qp({
30775
30968
  h: n.h,
30776
30969
  s: 1,
30777
30970
  v: 1
30778
- }), _ = Bp(n);
30971
+ }), _ = qp(n);
30779
30972
  return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
30780
30973
  className: "select-colorfield__sv",
30781
30974
  style: { backgroundColor: p },
@@ -30819,24 +31012,24 @@ function Vp({ hex: e, onPick: t }) {
30819
31012
  })
30820
31013
  })] });
30821
31014
  }
30822
- var Hp = (e) => e.toFixed(1).replace(".", ",");
30823
- function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Np, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
31015
+ var Yp = (e) => e.toFixed(1).replace(".", ",");
31016
+ function Xp({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Bp, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
30824
31017
  let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
30825
31018
  o(() => {
30826
31019
  C(i ?? ""), T(null);
30827
31020
  }, [i]);
30828
- let E = Fp(i ?? ""), D = (e) => {
31021
+ let E = Hp(i ?? ""), D = (e) => {
30829
31022
  if (!e.trim()) {
30830
31023
  u ? (T(null), a("")) : C(i ?? "");
30831
31024
  return;
30832
31025
  }
30833
- let t = Fp(e);
31026
+ let t = Hp(e);
30834
31027
  if (!t) {
30835
31028
  T("Use o formato #RRGGBB (ex.: #1D4ED8).");
30836
31029
  return;
30837
31030
  }
30838
31031
  T(null), C(t), t !== E && a(t);
30839
- }, O = d ? Fp(d) : null, k = E && O ? Lp(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
31032
+ }, O = d ? Hp(d) : null, k = E && O ? Wp(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
30840
31033
  return /* @__PURE__ */ g("div", {
30841
31034
  className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
30842
31035
  children: [
@@ -30864,7 +31057,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
30864
31057
  children: /* @__PURE__ */ g("div", {
30865
31058
  className: "select-colorfield__panel",
30866
31059
  children: [
30867
- /* @__PURE__ */ h(Vp, {
31060
+ /* @__PURE__ */ h(Jp, {
30868
31061
  hex: E,
30869
31062
  onPick: D
30870
31063
  }),
@@ -30873,7 +31066,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
30873
31066
  role: "group",
30874
31067
  "aria-label": "Cores prontas",
30875
31068
  children: c.map((e) => {
30876
- let t = Fp(e) ?? e, n = t === E;
31069
+ let t = Hp(e) ?? e, n = t === E;
30877
31070
  return /* @__PURE__ */ h("button", {
30878
31071
  type: "button",
30879
31072
  className: `select-colorfield__preset${n ? " is-selected" : ""}`,
@@ -30904,7 +31097,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
30904
31097
  className: "select-input select-input--mono select-colorfield__hex",
30905
31098
  value: S,
30906
31099
  onChange: (e) => {
30907
- C(e.target.value), e.target.value.replace("#", "").length === 6 && Fp(e.target.value) && D(e.target.value);
31100
+ C(e.target.value), e.target.value.replace("#", "").length === 6 && Hp(e.target.value) && D(e.target.value);
30908
31101
  },
30909
31102
  onBlur: () => D(S),
30910
31103
  placeholder: u ? "Padrão" : "#000000",
@@ -30927,14 +31120,14 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
30927
31120
  }) : null : /* @__PURE__ */ g("p", {
30928
31121
  id: `${y}-hint`,
30929
31122
  className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
30930
- children: [k >= 4.5 ? `Contraste com ${p}: ${Hp(k)}:1 — legível.` : `Contraste com ${p}: ${Hp(k)}:1 — difícil de ler. Escolha uma cor ${Ip(E) < Ip(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
31123
+ children: [k >= 4.5 ? `Contraste com ${p}: ${Yp(k)}:1 — legível.` : `Contraste com ${p}: ${Yp(k)}:1 — difícil de ler. Escolha uma cor ${Up(E) < Up(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
30931
31124
  })
30932
31125
  ]
30933
31126
  });
30934
31127
  }
30935
31128
  //#endregion
30936
31129
  //#region src/SelectProgressBar.tsx
30937
- var Wp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "md", label: i, valueLabel: a, caption: o, indeterminate: s = !1, ariaLabel: c, loading: l = !1, className: u, ...d }, f) {
31130
+ var Zp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "md", label: i, valueLabel: a, caption: o, indeterminate: s = !1, ariaLabel: c, loading: l = !1, className: u, ...d }, f) {
30938
31131
  if (l) return /* @__PURE__ */ g("div", {
30939
31132
  ref: f,
30940
31133
  ...d,
@@ -30979,7 +31172,7 @@ var Wp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
30979
31172
  })
30980
31173
  ]
30981
31174
  });
30982
- }), Gp = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, _) {
31175
+ }), Qp = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, _) {
30983
31176
  let y = `select-choicecard${u ? " is-selected" : ""}${d ? " is-disabled" : ""}${f ? " " + f : ""}`, b = n ? { "--select-choice-accent": n } : void 0, x = /* @__PURE__ */ g(m, { children: [
30984
31177
  t == null ? /* @__PURE__ */ g("span", {
30985
31178
  className: "select-choicecard__top",
@@ -31047,7 +31240,7 @@ var Wp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
31047
31240
  children: x
31048
31241
  });
31049
31242
  });
31050
- function Kp({ badge: e = !0 }) {
31243
+ function $p({ badge: e = !0 }) {
31051
31244
  return /* @__PURE__ */ g("div", {
31052
31245
  className: "select-choicecard select-choicecard--skeleton",
31053
31246
  "aria-hidden": "true",
@@ -31068,7 +31261,7 @@ function Kp({ badge: e = !0 }) {
31068
31261
  ]
31069
31262
  });
31070
31263
  }
31071
- var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
31264
+ var em = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
31072
31265
  return /* @__PURE__ */ h("div", {
31073
31266
  ref: c,
31074
31267
  ...s,
@@ -31078,16 +31271,16 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
31078
31271
  "--select-choice-min": t,
31079
31272
  ...o
31080
31273
  },
31081
- children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(Kp, {}, t)) : e
31274
+ children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h($p, {}, t)) : e
31082
31275
  });
31083
- }), Jp = 960, Yp = Math.round(Jp * 210 / 297), Xp = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: u, className: p }, _) {
31276
+ }), tm = 960, nm = Math.round(tm * 210 / 297), rm = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: u, className: p }, _) {
31084
31277
  let v = d(null), [y, b] = f(.5);
31085
31278
  o(() => {
31086
31279
  let e = v.current;
31087
31280
  if (!e) return;
31088
31281
  let t = () => {
31089
31282
  let t = e.clientWidth;
31090
- t > 0 && b(Math.min(1, t / Jp));
31283
+ t > 0 && b(Math.min(1, t / tm));
31091
31284
  };
31092
31285
  if (t(), typeof ResizeObserver > "u") return;
31093
31286
  let n = new ResizeObserver(t);
@@ -31095,7 +31288,7 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
31095
31288
  }, []);
31096
31289
  let x = e === "front", S = {
31097
31290
  "--select-cert-accent": t || void 0,
31098
- height: Yp * y + 2
31291
+ height: nm * y + 2
31099
31292
  };
31100
31293
  return /* @__PURE__ */ h("div", {
31101
31294
  ref: (e) => {
@@ -31108,8 +31301,8 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
31108
31301
  children: /* @__PURE__ */ h("div", {
31109
31302
  className: "select-certpreview__sheet",
31110
31303
  style: {
31111
- width: Jp,
31112
- height: Yp,
31304
+ width: tm,
31305
+ height: nm,
31113
31306
  transform: `scale(${y})`
31114
31307
  },
31115
31308
  children: /* @__PURE__ */ g("div", {
@@ -31182,13 +31375,13 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
31182
31375
  });
31183
31376
  //#endregion
31184
31377
  //#region src/SelectImageField.tsx
31185
- function Zp(e) {
31378
+ function im(e) {
31186
31379
  return new Promise((t, n) => {
31187
31380
  let r = new FileReader();
31188
31381
  r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
31189
31382
  });
31190
31383
  }
31191
- var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
31384
+ var am = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
31192
31385
  let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
31193
31386
  let t = e[0];
31194
31387
  if (!t) {
@@ -31196,7 +31389,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
31196
31389
  return;
31197
31390
  }
31198
31391
  if (_(null), !s) {
31199
- n(await Zp(t)), p([]);
31392
+ n(await im(t)), p([]);
31200
31393
  return;
31201
31394
  }
31202
31395
  p([t]);
@@ -31228,7 +31421,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
31228
31421
  children: m
31229
31422
  })]
31230
31423
  });
31231
- }), $p = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
31424
+ }), om = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
31232
31425
  let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
31233
31426
  let r = n.has(e), i = new Set(t ? n : []);
31234
31427
  return r ? i.delete(e) : i.add(e), i;
@@ -31254,7 +31447,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
31254
31447
  }), /* @__PURE__ */ h("span", {
31255
31448
  className: `select-accordion__chevron${t ? " is-open" : ""}`,
31256
31449
  "aria-hidden": "true",
31257
- children: /* @__PURE__ */ h(K, {})
31450
+ children: /* @__PURE__ */ h(G, {})
31258
31451
  })]
31259
31452
  }), /* @__PURE__ */ h("div", {
31260
31453
  id: `select-acc-${e.id}`,
@@ -31274,6 +31467,6 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
31274
31467
  });
31275
31468
  });
31276
31469
  //#endregion
31277
- export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon, q as ArrowLeftIcon, ze as ArrowRightIcon, qt as ArrowUpRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, Jt as BagIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, Wt as CameraIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, it as ChevronUpIcon, gn as ClearFormatIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, J as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, Ut as DatabaseIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, ce as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, ae as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, Zt as GiftIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, tn as GripIcon, Qt as HeadsetIcon, be as HelpIcon, Xe as HomeIcon, Gt as IdCardIcon, en as ImageIcon, ye as InfoIcon, Je as KeyIcon, Ht as LampIcon, Yt as LayoutIcon, Bt as LinceIcon, ht as LinkIcon, pn as ListBulletIcon, mn as ListNumberIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, cn as MailUnreadIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, an as PaperclipIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, rn as ReplyAllIcon, nn as ReplyIcon, Te as RocketIcon, Dd as SELECT_BR_UF_TILES, ti as SELECT_CARD_BRANDS, Np as SELECT_COLOR_PRESETS, vc as SELECT_COL_DATETIME, yc as SELECT_COL_ID, Pr as SELECT_COUNTRIES, gp as SELECT_DAILY_PRESETS, pp as SELECT_DATE_PRESETS, Wr as SELECT_SPACE, Vc as SELECT_TOKEN_PATTERN, Br as SELECT_TRANSACTION_STATUS, oe as SearchIcon, $p as SelectAccordion, Do as SelectActionCard, Hr as SelectActionList, Ur as SelectActionMenu, qn as SelectAddButton, Mc as SelectAddCard, Rn as SelectAlert, Oo as SelectAppTile, Ou as SelectAssistant, H as SelectAuthFx, $i as SelectAvatar, la as SelectBackLink, zr as SelectBadge, nu as SelectBalanceCard, vr as SelectBankAccountField, Qu as SelectBarChart, Qr as SelectBox, Gd as SelectBoxPlot, ya as SelectBreadcrumb, Ep as SelectBuilderLayout, Dp as SelectBuilderWorkspace, Rd as SelectBullet, _f as SelectBump, U as SelectButton, fs as SelectCalendar, qd as SelectCalendarHeatmap, Wd as SelectCandlestick, ne as SelectCard, Nc as SelectCardGrid, Xp as SelectCertificatePreview, Fu as SelectChartCard, ld as SelectChartLegend, ku as SelectChatMessage, Au as SelectChatTurn, ju as SelectChatTyping, En as SelectCheckbox, na as SelectChipInput, Gp as SelectChoiceCard, Kp as SelectChoiceCardSkeleton, qp as SelectChoiceGrid, nf as SelectChord, wf as SelectCirclePack, wo as SelectCodeBlock, Eo as SelectCollapsible, Up as SelectColorField, cd as SelectColumnChart, id as SelectComboChart, mr as SelectCombobox, gc as SelectConfirmModal, tc as SelectConversation, ic as SelectConversationBubble, nc as SelectConversationDay, rc as SelectConversationEvent, So as SelectCopyRow, To as SelectCopyableId, ko as SelectCreateTile, jc as SelectDataTable, Il as SelectDateField, vp as SelectDatePicker, Cp as SelectDateRangeField, If as SelectDetailList, Lf as SelectDetailRow, Yc as SelectDeviceFrame, hi as SelectDisclosureButton, Qi as SelectDivider, In as SelectDocumentField, ad as SelectDonut, C as SelectDotField, zc as SelectDragHandle, Bc as SelectDragPreview, Xd as SelectDumbbell, Fc as SelectFactList, ru as SelectFeeBreakdown, Tn as SelectField, hr as SelectFieldGrid, Kn as SelectFileDropzone, zn as SelectFileTile, Vl as SelectFilterBar, xo as SelectFilterChip, kp as SelectFlowCanvas, jp as SelectFlowLayout, Ap as SelectFlowNode, Ca as SelectFormLayout, _c as SelectFormModal, yd as SelectFunnel, wd as SelectGauge, Qd as SelectGaugeBands, ff as SelectGlobe, Yr as SelectGrid, Td as SelectHeatmap, rf as SelectHexbin, _l as SelectHideMoneyToggle, Fd as SelectHorizontalBar, gs as SelectHtmlFrame, xf as SelectIcicle, Ma as SelectIcon, Y as SelectIconButton, $c as SelectIconPicker, md as SelectIconTile, aa as SelectIdentityFooter, Qp as SelectImageField, tr as SelectImageGalleryField, Yn as SelectImageUploadField, Jn as SelectImageUrlsField, $f as SelectImageZoomModal, ys as SelectInbox, bs as SelectInboxBanner, Cs as SelectInboxEmpty, xs as SelectInboxToolbar, xn as SelectInfoTip, Jr as SelectInline, wu as SelectInsight, Tu as SelectInsightList, Eu as SelectInsightRow, fd as SelectJourney, qi as SelectJsonViewer, No as SelectKanban, Po as SelectKanbanCard, jf as SelectKbd, ip as SelectKeyValueEditor, iu as SelectKpiCard, Sn as SelectLabelRow, Lc as SelectLayoutThumb, Ls as SelectLeadChip, nd as SelectLineChart, Zi as SelectLinkButton, Yf as SelectListCard, Zf as SelectListLabel, Xf as SelectListRow, va as SelectLoader, Us as SelectMailAttachButton, Is as SelectMailAttachment, zs as SelectMailComposer, Ws as SelectMailComposerAttachments, Hs as SelectMailComposerBody, Ks as SelectMailComposerFooter, Vs as SelectMailComposerInput, Bs as SelectMailComposerRow, fc as SelectMailEditor, ws as SelectMailList, Ts as SelectMailListGroup, Es as SelectMailListItem, Os as SelectMailListNote, Ds as SelectMailListSkeleton, As as SelectMailMessage, js as SelectMailNotice, Zc as SelectMailPreview, ks as SelectMailReader, Gs as SelectMailUpload, Ss as SelectMailboxStatus, Zd as SelectMarimekko, Sl as SelectMarkStack, tp as SelectMediaCell, za as SelectMenu, Ga as SelectMenuButton, Wa as SelectMenuDivider, Ua as SelectMenuHeading, Va as SelectMenuItem, Ha as SelectMenuLink, Xc as SelectMessageBubble, gl as SelectMetricDelta, _d as SelectMiniStats, mc as SelectModal, ml as SelectMoney, Mn as SelectMoneyField, Tf as SelectNetwork, Na as SelectNote, wp as SelectNumberField, Pu as SelectNumberedItem, Nu as SelectNumberedList, vl as SelectOfferPrice, np as SelectOfflineModal, ra as SelectOptionList, ia as SelectOptionRow, oa as SelectOtpInput, ba as SelectPage, ro as SelectPagination, Ia as SelectPanel, vf as SelectParallel, mf as SelectPareto, _a as SelectPasswordStrength, di as SelectPaymentBrand, vd as SelectPaymentCard, Ir as SelectPhoneField, pd as SelectPips, Jf as SelectPlanCard, Jd as SelectPolarArea, fr as SelectPopover, tu as SelectPreviewFrame, qc as SelectPreviewStage, Wp as SelectProgressBar, Od as SelectProgressList, gf as SelectPyramid, Hd as SelectRadar, Ad as SelectRadialBar, Lr as SelectRadioGroup, Kd as SelectRangeBar, bl as SelectRating, xl as SelectRatingQuote, Xs as SelectRecipientInput, Pc as SelectRecordCard, Tp as SelectRepeatingFieldArray, da as SelectResendButton, pa as SelectRetryStatus, dd as SelectRing, hc as SelectRowActions, Ud as SelectSankey, Vd as SelectScatter, $a as SelectSearchInput, Df as SelectSearchMenu, kf as SelectSearchMenuGroup, Af as SelectSearchMenuOption, La as SelectSection, Rr as SelectSegmented, nr as SelectSelect, pl as SelectSensitiveValue, Pa as SelectSettingList, Fa as SelectSettingRow, Vf as SelectSetupGuide, Hf as SelectSetupNext, ud as SelectShareBar, Qa as SelectSideNav, Aa as SelectSkeleton, Yd as SelectSlope, Rc as SelectSortableItem, Xu as SelectSparkline, nl as SelectSplitChain, hd as SelectSpotlight, qr as SelectStack, rd as SelectStackedArea, Vr as SelectStatusBadge, Rf as SelectSteps, $d as SelectStreamGraph, ef as SelectSunburst, Ul as SelectSurface, yr as SelectSwitch, Mp as SelectSwitchField, po as SelectTable, yo as SelectTableCell, bo as SelectTableEmpty, go as SelectTableRow, Ra as SelectTabs, Hl as SelectTagSelect, gd as SelectTaskCard, Zs as SelectTemplateMenu, $r as SelectText, Dn as SelectTextarea, Pf as SelectThemeSwitcher, Qf as SelectThumbnail, pf as SelectTicker, Ed as SelectTileMap, Xi as SelectTimeline, Xl as SelectToastProvider, br as SelectToggleList, Sr as SelectTogglePanel, xr as SelectToggleRow, Kc as SelectTokenTextarea, bn as SelectTooltip, qf as SelectTour, Sf as SelectTree, Bd as SelectTreemap, On as SelectUnitInput, ho as SelectUserCell, dl as SelectValueVisibilityProvider, Cf as SelectVenn, tf as SelectViolin, hf as SelectWaffle, Id as SelectWaterfall, af as SelectWordCloud, Ao as SelectWorkspaceSwitcher, ep as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, Kt as ShieldTickIcon, on as SidebarIcon, Pt as SparkleIcon, ge as SplitIcon, he as StarIcon, _t as StoreIcon, St as StorefrontIcon, De as SunIcon, Xt as TargetIcon, we as TerminalIcon, ln as TextBoldIcon, un as TextItalicIcon, hn as TextQuoteIcon, fn as TextStrikeIcon, dn as TextUnderlineIcon, ft as TicketDiscountIcon, Ye as TrashIcon, Vt as TrendUpIcon, mt as TruckIcon, se as UploadIcon, Se as UserIcon, Dt as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, $t as WhatsAppIcon, Ps as attachmentExt, ea as avatarInitials, es as calendarRange, Qo as calendarToday, Lp as contrastRatio, ur as detectSelectTheme, Fr as dialCodeOf, du as formatInsightImpact, ua as formatResendWait, Zn as galleryItemFromFile, Qn as galleryItemFromUrl, zp as hexToHsv, Bp as hsvToHex, Ys as isMailAddress, sc as mailLinkHref, _s as mailName, oc as mailTextToHtml, Fp as normalizeHex, ga as passwordScore, Co as prettyCode, Gc as readTokenText, Nf as resolveSelectTheme, ii as selectCardBrand, ai as selectCardBrandLabel, kc as useSelectPageSize, Zl as useSelectToast, fl as useSelectValueVisibility };
31470
+ export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon, K as ArrowLeftIcon, ze as ArrowRightIcon, qt as ArrowUpRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, Jt as BagIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, Wt as CameraIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, it as ChevronUpIcon, gn as ClearFormatIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, J as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, Ut as DatabaseIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, ce as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, q as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, Zt as GiftIcon, ae as GithubIcon, _e as GlobeIcon, ie as GoogleIcon, tn as GripIcon, Qt as HeadsetIcon, be as HelpIcon, Xe as HomeIcon, Gt as IdCardIcon, en as ImageIcon, ye as InfoIcon, Je as KeyIcon, Ht as LampIcon, Yt as LayoutIcon, Bt as LinceIcon, ht as LinkIcon, pn as ListBulletIcon, mn as ListNumberIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, cn as MailUnreadIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, an as PaperclipIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, rn as ReplyAllIcon, nn as ReplyIcon, Te as RocketIcon, Od as SELECT_BR_UF_TILES, ti as SELECT_CARD_BRANDS, Bp as SELECT_COLOR_PRESETS, vc as SELECT_COL_DATETIME, yc as SELECT_COL_ID, Pr as SELECT_COUNTRIES, Cp as SELECT_DAILY_PRESETS, bp as SELECT_DATE_PRESETS, Wr as SELECT_SPACE, Vc as SELECT_TOKEN_PATTERN, Br as SELECT_TRANSACTION_STATUS, oe as SearchIcon, om as SelectAccordion, Do as SelectActionCard, Hr as SelectActionList, Ur as SelectActionMenu, qn as SelectAddButton, Mc as SelectAddCard, Rn as SelectAlert, Oo as SelectAppTile, ku as SelectAssistant, ne as SelectAuthFx, $i as SelectAvatar, la as SelectBackLink, zr as SelectBadge, ru as SelectBalanceCard, vr as SelectBankAccountField, $u as SelectBarChart, Qr as SelectBox, Kd as SelectBoxPlot, ya as SelectBreadcrumb, Np as SelectBuilderLayout, Pp as SelectBuilderWorkspace, zd as SelectBullet, vf as SelectBump, H as SelectButton, fs as SelectCalendar, Jd as SelectCalendarHeatmap, Gd as SelectCandlestick, re as SelectCard, Nc as SelectCardGrid, rm as SelectCertificatePreview, Iu as SelectChartCard, ud as SelectChartLegend, Au as SelectChatMessage, ju as SelectChatTurn, Mu as SelectChatTyping, En as SelectCheckbox, na as SelectChipInput, Qp as SelectChoiceCard, $p as SelectChoiceCardSkeleton, em as SelectChoiceGrid, rf as SelectChord, Tf as SelectCirclePack, wo as SelectCodeBlock, Eo as SelectCollapsible, Xp as SelectColorField, ld as SelectColumnChart, ad as SelectComboChart, mr as SelectCombobox, gc as SelectConfirmModal, tc as SelectConversation, ic as SelectConversationBubble, nc as SelectConversationDay, rc as SelectConversationEvent, So as SelectCopyRow, To as SelectCopyableId, ko as SelectCreateTile, jc as SelectDataTable, Il as SelectDateField, Tp as SelectDatePicker, Ap as SelectDateRangeField, Lf as SelectDetailList, Rf as SelectDetailRow, Yc as SelectDeviceFrame, hi as SelectDisclosureButton, Qi as SelectDivider, In as SelectDocumentField, od as SelectDonut, C as SelectDotField, zc as SelectDragHandle, Bc as SelectDragPreview, Zd as SelectDumbbell, Fc as SelectFactList, iu as SelectFeeBreakdown, Tn as SelectField, hr as SelectFieldGrid, Kn as SelectFileDropzone, zn as SelectFileTile, Vl as SelectFilterBar, xo as SelectFilterChip, Ip as SelectFlowCanvas, Rp as SelectFlowLayout, Lp as SelectFlowNode, Ca as SelectFormLayout, _c as SelectFormModal, bd as SelectFunnel, Td as SelectGauge, $d as SelectGaugeBands, pf as SelectGlobe, Yr as SelectGrid, Ed as SelectHeatmap, af as SelectHexbin, _l as SelectHideMoneyToggle, Id as SelectHorizontalBar, gs as SelectHtmlFrame, Sf as SelectIcicle, Ma as SelectIcon, Y as SelectIconButton, $c as SelectIconPicker, hd as SelectIconTile, aa as SelectIdentityFooter, am as SelectImageField, tr as SelectImageGalleryField, Yn as SelectImageUploadField, Jn as SelectImageUrlsField, op as SelectImageZoomModal, ys as SelectInbox, bs as SelectInboxBanner, Cs as SelectInboxEmpty, xs as SelectInboxToolbar, xn as SelectInfoTip, Jr as SelectInline, Tu as SelectInsight, Eu as SelectInsightList, Du as SelectInsightRow, pd as SelectJourney, qi as SelectJsonViewer, No as SelectKanban, Po as SelectKanbanCard, Mf as SelectKbd, dp as SelectKeyValueEditor, au as SelectKpiCard, Sn as SelectLabelRow, Lc as SelectLayoutThumb, Ls as SelectLeadChip, rd as SelectLineChart, Zi as SelectLinkButton, np as SelectListCard, ip as SelectListLabel, rp as SelectListRow, va as SelectLoader, Us as SelectMailAttachButton, Is as SelectMailAttachment, zs as SelectMailComposer, Ws as SelectMailComposerAttachments, Hs as SelectMailComposerBody, Ks as SelectMailComposerFooter, Vs as SelectMailComposerInput, Bs as SelectMailComposerRow, fc as SelectMailEditor, ws as SelectMailList, Ts as SelectMailListGroup, Es as SelectMailListItem, Os as SelectMailListNote, Ds as SelectMailListSkeleton, As as SelectMailMessage, js as SelectMailNotice, Zc as SelectMailPreview, ks as SelectMailReader, Gs as SelectMailUpload, Ss as SelectMailboxStatus, Qd as SelectMarimekko, Sl as SelectMarkStack, cp as SelectMediaCell, za as SelectMenu, Ga as SelectMenuButton, Wa as SelectMenuDivider, Ua as SelectMenuHeading, Va as SelectMenuItem, Ha as SelectMenuLink, Xc as SelectMessageBubble, gl as SelectMetricDelta, vd as SelectMiniStats, mc as SelectModal, ml as SelectMoney, Mn as SelectMoneyField, Ef as SelectNetwork, Na as SelectNote, jp as SelectNumberField, Fu as SelectNumberedItem, Pu as SelectNumberedList, vl as SelectOfferPrice, lp as SelectOfflineModal, ra as SelectOptionList, ia as SelectOptionRow, oa as SelectOtpInput, ba as SelectPage, ro as SelectPagination, Ia as SelectPanel, yf as SelectParallel, hf as SelectPareto, _a as SelectPasswordStrength, di as SelectPaymentBrand, yd as SelectPaymentCard, Ir as SelectPhoneField, md as SelectPips, tp as SelectPlanCard, Yd as SelectPolarArea, fr as SelectPopover, nu as SelectPreviewFrame, qc as SelectPreviewStage, Zp as SelectProgressBar, kd as SelectProgressList, _f as SelectPyramid, Ud as SelectRadar, jd as SelectRadialBar, Lr as SelectRadioGroup, qd as SelectRangeBar, bl as SelectRating, xl as SelectRatingQuote, Xs as SelectRecipientInput, Pc as SelectRecordCard, Mp as SelectRepeatingFieldArray, da as SelectResendButton, pa as SelectRetryStatus, fd as SelectRing, hc as SelectRowActions, Wd as SelectSankey, Hd as SelectScatter, $a as SelectSearchInput, Of as SelectSearchMenu, Af as SelectSearchMenuGroup, jf as SelectSearchMenuOption, La as SelectSection, Rr as SelectSegmented, nr as SelectSelect, pl as SelectSensitiveValue, Pa as SelectSettingList, Fa as SelectSettingRow, Wf as SelectSetupGuide, Gf as SelectSetupNext, dd as SelectShareBar, Qa as SelectSideNav, Aa as SelectSkeleton, Xd as SelectSlope, Rc as SelectSortableItem, Zu as SelectSparkline, nl as SelectSplitChain, gd as SelectSpotlight, qr as SelectStack, id as SelectStackedArea, Vr as SelectStatusBadge, zf as SelectSteps, ef as SelectStreamGraph, tf as SelectSunburst, Ul as SelectSurface, yr as SelectSwitch, zp as SelectSwitchField, po as SelectTable, yo as SelectTableCell, bo as SelectTableEmpty, go as SelectTableRow, Ra as SelectTabs, Hl as SelectTagSelect, _d as SelectTaskCard, Zs as SelectTemplateMenu, $r as SelectText, Dn as SelectTextarea, Ff as SelectThemeSwitcher, ap as SelectThumbnail, mf as SelectTicker, Dd as SelectTileMap, Xi as SelectTimeline, Zl as SelectToastProvider, br as SelectToggleList, Sr as SelectTogglePanel, xr as SelectToggleRow, Kc as SelectTokenTextarea, bn as SelectTooltip, ep as SelectTour, Cf as SelectTree, Vd as SelectTreemap, On as SelectUnitInput, ho as SelectUserCell, dl as SelectValueVisibilityProvider, wf as SelectVenn, nf as SelectViolin, gf as SelectWaffle, Ld as SelectWaterfall, of as SelectWordCloud, Ao as SelectWorkspaceSwitcher, sp as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, Kt as ShieldTickIcon, on as SidebarIcon, Pt as SparkleIcon, ge as SplitIcon, he as StarIcon, _t as StoreIcon, St as StorefrontIcon, De as SunIcon, Xt as TargetIcon, we as TerminalIcon, ln as TextBoldIcon, un as TextItalicIcon, hn as TextQuoteIcon, fn as TextStrikeIcon, dn as TextUnderlineIcon, ft as TicketDiscountIcon, Ye as TrashIcon, Vt as TrendUpIcon, mt as TruckIcon, se as UploadIcon, Se as UserIcon, Dt as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, $t as WhatsAppIcon, Ps as attachmentExt, ea as avatarInitials, es as calendarRange, Qo as calendarToday, Wp as contrastRatio, ur as detectSelectTheme, Fr as dialCodeOf, fu as formatInsightImpact, ua as formatResendWait, Zn as galleryItemFromFile, Qn as galleryItemFromUrl, Kp as hexToHsv, qp as hsvToHex, Ys as isMailAddress, sc as mailLinkHref, _s as mailName, oc as mailTextToHtml, Hp as normalizeHex, ga as passwordScore, Co as prettyCode, Gc as readTokenText, Pf as resolveSelectTheme, ii as selectCardBrand, ai as selectCardBrandLabel, kc as useSelectPageSize, Ql as useSelectToast, fl as useSelectValueVisibility };
31278
31471
 
31279
31472
  //# sourceMappingURL=index.js.map