@smarttalks.ai/widget 0.8.7 → 0.8.8

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/lib/index.js CHANGED
@@ -230,7 +230,7 @@ function wa(e, ...t) {
230
230
  const X = (e) => {
231
231
  const t = (n) => n[e] || [];
232
232
  return t.isThemeGetter = !0, t;
233
- }, xi = /^\[(?:([a-z-]+):)?(.+)\]$/i, xa = /^\d+\/\d+$/, Sa = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ca = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _a = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => ft(e) || Sa.has(e) || xa.test(e), qe = (e) => xt(e, "length", Ra), ft = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => xt(e, "number", ft), Tt = (e) => !!e && Number.isInteger(Number(e)), Pa = (e) => e.endsWith("%") && ft(e.slice(0, -1)), N = (e) => xi.test(e), We = (e) => Ea.test(e), Aa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ta = (e) => xt(e, Aa, Si), Da = (e) => xt(e, "position", Si), La = /* @__PURE__ */ new Set(["image", "url"]), Ma = (e) => xt(e, La, Fa), Ia = (e) => xt(e, "", $a), Dt = () => !0, xt = (e, t, n) => {
233
+ }, xi = /^\[(?:([a-z-]+):)?(.+)\]$/i, xa = /^\d+\/\d+$/, Sa = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ka = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ca = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Oa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _a = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => ht(e) || Sa.has(e) || xa.test(e), qe = (e) => xt(e, "length", Ra), ht = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => xt(e, "number", ht), Tt = (e) => !!e && Number.isInteger(Number(e)), Pa = (e) => e.endsWith("%") && ht(e.slice(0, -1)), N = (e) => xi.test(e), We = (e) => Ea.test(e), Aa = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ta = (e) => xt(e, Aa, Si), La = (e) => xt(e, "position", Si), Da = /* @__PURE__ */ new Set(["image", "url"]), Ma = (e) => xt(e, Da, Fa), Ia = (e) => xt(e, "", $a), Lt = () => !0, xt = (e, t, n) => {
234
234
  const r = xi.exec(e);
235
235
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
236
236
  }, Ra = (e) => (
@@ -239,19 +239,19 @@ const X = (e) => {
239
239
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
240
240
  ka.test(e) && !Ca.test(e)
241
241
  ), Si = () => !1, $a = (e) => Oa.test(e), Fa = (e) => _a.test(e), Na = () => {
242
- const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), h = X("gap"), m = X("gradientColorStops"), f = X("gradientColorStopPositions"), g = X("inset"), p = X("margin"), b = X("opacity"), v = X("padding"), w = X("saturate"), x = X("scale"), O = X("sepia"), k = X("skew"), E = X("space"), $ = X("translate"), _ = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", N, t], M = () => [N, t], te = () => ["", Ne, qe], W = () => ["auto", ft, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", N], lt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Ee = () => [ft, N];
242
+ const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), h = X("gap"), m = X("gradientColorStops"), f = X("gradientColorStopPositions"), g = X("inset"), p = X("margin"), b = X("opacity"), v = X("padding"), w = X("saturate"), x = X("scale"), O = X("sepia"), k = X("skew"), E = X("space"), $ = X("translate"), _ = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", N, t], M = () => [N, t], ne = () => ["", Ne, qe], W = () => ["auto", ht, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", N], ct = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Ee = () => [ht, N];
243
243
  return {
244
244
  cacheSize: 500,
245
245
  separator: ":",
246
246
  theme: {
247
- colors: [Dt],
247
+ colors: [Lt],
248
248
  spacing: [Ne, qe],
249
249
  blur: ["none", "", We, N],
250
250
  brightness: Ee(),
251
251
  borderColor: [e],
252
252
  borderRadius: ["none", "", "full", We, N],
253
253
  borderSpacing: M(),
254
- borderWidth: te(),
254
+ borderWidth: ne(),
255
255
  contrast: Ee(),
256
256
  grayscale: re(),
257
257
  hueRotate: Ee(),
@@ -259,8 +259,8 @@ const X = (e) => {
259
259
  gap: M(),
260
260
  gradientColorStops: [e],
261
261
  gradientColorStopPositions: [Pa, qe],
262
- inset: L(),
263
- margin: L(),
262
+ inset: D(),
263
+ margin: D(),
264
264
  opacity: Ee(),
265
265
  padding: M(),
266
266
  saturate: Ee(),
@@ -296,14 +296,14 @@ const X = (e) => {
296
296
  * @see https://tailwindcss.com/docs/break-after
297
297
  */
298
298
  "break-after": [{
299
- "break-after": lt()
299
+ "break-after": ct()
300
300
  }],
301
301
  /**
302
302
  * Break Before
303
303
  * @see https://tailwindcss.com/docs/break-before
304
304
  */
305
305
  "break-before": [{
306
- "break-before": lt()
306
+ "break-before": ct()
307
307
  }],
308
308
  /**
309
309
  * Break Inside
@@ -492,7 +492,7 @@ const X = (e) => {
492
492
  * @see https://tailwindcss.com/docs/flex-basis
493
493
  */
494
494
  basis: [{
495
- basis: L()
495
+ basis: D()
496
496
  }],
497
497
  /**
498
498
  * Flex Direction
@@ -541,7 +541,7 @@ const X = (e) => {
541
541
  * @see https://tailwindcss.com/docs/grid-template-columns
542
542
  */
543
543
  "grid-cols": [{
544
- "grid-cols": [Dt]
544
+ "grid-cols": [Lt]
545
545
  }],
546
546
  /**
547
547
  * Grid Column Start / End
@@ -571,7 +571,7 @@ const X = (e) => {
571
571
  * @see https://tailwindcss.com/docs/grid-template-rows
572
572
  */
573
573
  "grid-rows": [{
574
- "grid-rows": [Dt]
574
+ "grid-rows": [Lt]
575
575
  }],
576
576
  /**
577
577
  * Grid Row Start / End
@@ -934,7 +934,7 @@ const X = (e) => {
934
934
  * @see https://tailwindcss.com/docs/font-family
935
935
  */
936
936
  "font-family": [{
937
- font: [Dt]
937
+ font: [Lt]
938
938
  }],
939
939
  /**
940
940
  * Font Variant Numeric
@@ -978,7 +978,7 @@ const X = (e) => {
978
978
  * @see https://tailwindcss.com/docs/line-clamp
979
979
  */
980
980
  "line-clamp": [{
981
- "line-clamp": ["none", ft, jn]
981
+ "line-clamp": ["none", ht, jn]
982
982
  }],
983
983
  /**
984
984
  * Line Height
@@ -1171,7 +1171,7 @@ const X = (e) => {
1171
1171
  * @see https://tailwindcss.com/docs/background-position
1172
1172
  */
1173
1173
  "bg-position": [{
1174
- bg: [...ce(), Da]
1174
+ bg: [...ce(), La]
1175
1175
  }],
1176
1176
  /**
1177
1177
  * Background Repeat
@@ -1571,7 +1571,7 @@ const X = (e) => {
1571
1571
  * @see https://tailwindcss.com/docs/ring-width
1572
1572
  */
1573
1573
  "ring-w": [{
1574
- ring: te()
1574
+ ring: ne()
1575
1575
  }],
1576
1576
  /**
1577
1577
  * Ring Width Inset
@@ -1619,7 +1619,7 @@ const X = (e) => {
1619
1619
  * @see https://tailwindcss.com/docs/box-shadow-color
1620
1620
  */
1621
1621
  "shadow-color": [{
1622
- shadow: [Dt]
1622
+ shadow: [Lt]
1623
1623
  }],
1624
1624
  /**
1625
1625
  * Opacity
@@ -2344,13 +2344,13 @@ const Ua = {
2344
2344
  restart: "Reiniciar"
2345
2345
  }
2346
2346
  };
2347
- function ht(e) {
2347
+ function gt(e) {
2348
2348
  const t = navigator.language?.toLowerCase();
2349
2349
  let n = "en";
2350
2350
  return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), Ua[n][e];
2351
2351
  }
2352
2352
  const mn = "https://heimdall.smarttalks.ai/api", ja = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
2353
- function ne(e, ...t) {
2353
+ function ee(e, ...t) {
2354
2354
  window.postMessage({
2355
2355
  from: Ei,
2356
2356
  command: e,
@@ -2365,22 +2365,22 @@ function se(e, t) {
2365
2365
  function Ha() {
2366
2366
  typeof window < "u" && (window.SmartTalksWidget = {
2367
2367
  registerContactData: (e) => {
2368
- ne("registerContactData", e);
2368
+ ee("registerContactData", e);
2369
2369
  },
2370
2370
  open: (e) => {
2371
- ne("open"), e && ne("setInput", e);
2371
+ ee("open"), e && ee("setInput", e);
2372
2372
  },
2373
2373
  close: () => {
2374
- ne("close");
2374
+ ee("close");
2375
2375
  },
2376
2376
  toggle: () => {
2377
- ne("toggle");
2377
+ ee("toggle");
2378
2378
  },
2379
2379
  toggleFullscreen: () => {
2380
- ne("toggleFullscreen");
2380
+ ee("toggleFullscreen");
2381
2381
  },
2382
2382
  reset: () => {
2383
- ne("reset");
2383
+ ee("reset");
2384
2384
  },
2385
2385
  // Callbacks
2386
2386
  onOpen: (e) => {
@@ -2400,6 +2400,9 @@ function Ha() {
2400
2400
  },
2401
2401
  onAnswer: (e) => {
2402
2402
  se("onAnswer", e);
2403
+ },
2404
+ onLoad: (e) => {
2405
+ se("onLoad", e);
2403
2406
  }
2404
2407
  });
2405
2408
  }
@@ -2597,25 +2600,25 @@ function P(e, t) {
2597
2600
  observerSlots: null,
2598
2601
  comparator: t.equals || void 0
2599
2602
  }, r = (o) => (typeof o == "function" && (o = o(n.value)), Mi(n, o));
2600
- return [Li.bind(n), r];
2603
+ return [Di.bind(n), r];
2601
2604
  }
2602
- function Di(e, t, n) {
2603
- const r = Ln(e, t, !0, He);
2605
+ function Li(e, t, n) {
2606
+ const r = Dn(e, t, !0, He);
2604
2607
  St(r);
2605
2608
  }
2606
2609
  function oe(e, t, n) {
2607
- const r = Ln(e, t, !1, He);
2610
+ const r = Dn(e, t, !1, He);
2608
2611
  St(r);
2609
2612
  }
2610
- function D(e, t, n) {
2613
+ function L(e, t, n) {
2611
2614
  Ai = dl;
2612
- const r = Ln(e, t, !1, He);
2615
+ const r = Dn(e, t, !1, He);
2613
2616
  (!n || !n.render) && (r.user = !0), Be ? Be.push(r) : St(r);
2614
2617
  }
2615
2618
  function C(e, t, n) {
2616
2619
  n = n ? Object.assign({}, yn, n) : yn;
2617
- const r = Ln(e, t, !0, 0);
2618
- return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, St(r), Li.bind(r);
2620
+ const r = Dn(e, t, !0, 0);
2621
+ return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, St(r), Di.bind(r);
2619
2622
  }
2620
2623
  function il(e) {
2621
2624
  return e && typeof e == "object" && "then" in e;
@@ -2628,23 +2631,23 @@ function sl(e, t, n) {
2628
2631
  equals: !1
2629
2632
  }), [w, x] = P(d ? "ready" : "unresolved");
2630
2633
  V.context && (l = V.getNextContextId(), i.ssrLoadFrom === "initial" ? a = i.initialValue : V.load && V.has(l) && (a = V.load(l)));
2631
- function O(_, R, L, M) {
2634
+ function O(_, R, D, M) {
2632
2635
  return s === _ && (s = null, M !== void 0 && (d = !0), (_ === a || R === a) && i.onHydrated && queueMicrotask(
2633
2636
  () => i.onHydrated(M, {
2634
2637
  value: R
2635
2638
  })
2636
- ), a = qn, k(R, L)), R;
2639
+ ), a = qn, k(R, D)), R;
2637
2640
  }
2638
2641
  function k(_, R) {
2639
2642
  Ve(() => {
2640
2643
  R === void 0 && f(() => _), x(R !== void 0 ? "errored" : d ? "ready" : "unresolved"), p(R);
2641
- for (const L of h.keys()) L.decrement();
2644
+ for (const D of h.keys()) D.decrement();
2642
2645
  h.clear();
2643
2646
  }, !1);
2644
2647
  }
2645
2648
  function E() {
2646
- const _ = ll, R = m(), L = g();
2647
- if (L !== void 0 && !s) throw L;
2649
+ const _ = ll, R = m(), D = g();
2650
+ if (D !== void 0 && !s) throw D;
2648
2651
  return Y && Y.user, R;
2649
2652
  }
2650
2653
  function $(_ = !0) {
@@ -2655,18 +2658,18 @@ function sl(e, t, n) {
2655
2658
  O(s, q(m));
2656
2659
  return;
2657
2660
  }
2658
- const L = a !== qn ? a : q(
2661
+ const D = a !== qn ? a : q(
2659
2662
  () => o(R, {
2660
2663
  value: m(),
2661
2664
  refetching: _
2662
2665
  })
2663
2666
  );
2664
- return il(L) ? (s = L, "value" in L ? (L.status === "success" ? O(s, L.value, void 0, R) : O(s, void 0, dr(L.value), R), L) : (c = !0, queueMicrotask(() => c = !1), Ve(() => {
2667
+ return il(D) ? (s = D, "value" in D ? (D.status === "success" ? O(s, D.value, void 0, R) : O(s, void 0, dr(D.value), R), D) : (c = !0, queueMicrotask(() => c = !1), Ve(() => {
2665
2668
  x(d ? "refreshing" : "pending"), v();
2666
- }, !1), L.then(
2667
- (M) => O(L, M, void 0, R),
2668
- (M) => O(L, void 0, dr(M), R)
2669
- ))) : (O(s, L, void 0, R), L);
2669
+ }, !1), D.then(
2670
+ (M) => O(D, M, void 0, R),
2671
+ (M) => O(D, void 0, dr(M), R)
2672
+ ))) : (O(s, D, void 0, R), D);
2670
2673
  }
2671
2674
  return Object.defineProperties(E, {
2672
2675
  state: {
@@ -2689,7 +2692,7 @@ function sl(e, t, n) {
2689
2692
  return m();
2690
2693
  }
2691
2694
  }
2692
- }), u ? Di(() => $(!1)) : $(!1), [
2695
+ }), u ? Li(() => $(!1)) : $(!1), [
2693
2696
  E,
2694
2697
  {
2695
2698
  refetch: $,
@@ -2725,8 +2728,8 @@ function tt(e, t, n) {
2725
2728
  return o = a, l;
2726
2729
  };
2727
2730
  }
2728
- function Dn(e) {
2729
- D(() => q(e));
2731
+ function Ln(e) {
2732
+ L(() => q(e));
2730
2733
  }
2731
2734
  function K(e) {
2732
2735
  return H === null || (H.cleanups === null ? H.cleanups = [e] : H.cleanups.push(e)), e;
@@ -2768,7 +2771,7 @@ function Nr(e) {
2768
2771
  }, n;
2769
2772
  }
2770
2773
  let ll;
2771
- function Li() {
2774
+ function Di() {
2772
2775
  if (this.sources && this.state)
2773
2776
  if (this.state === He) St(this);
2774
2777
  else {
@@ -2815,7 +2818,7 @@ function cl(e, t, n) {
2815
2818
  }
2816
2819
  (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Mi(e, r) : e.value = r, e.updatedAt = n);
2817
2820
  }
2818
- function Ln(e, t, n, r = He, o) {
2821
+ function Dn(e, t, n, r = He, o) {
2819
2822
  const i = {
2820
2823
  fn: e,
2821
2824
  state: r,
@@ -3135,7 +3138,7 @@ function Te() {
3135
3138
  return V.context ? V.getNextContextId() : `cl-${ml++}`;
3136
3139
  }
3137
3140
  const $i = (e) => `Stale read from <${e}>.`;
3138
- function yt(e) {
3141
+ function bt(e) {
3139
3142
  const t = "fallback" in e && {
3140
3143
  fallback: () => e.fallback
3141
3144
  };
@@ -3436,16 +3439,16 @@ function _l(e, t = window.document) {
3436
3439
  }
3437
3440
  }
3438
3441
  function de(e, t, n) {
3439
- it(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
3442
+ st(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
3440
3443
  }
3441
3444
  function Pl(e, t, n, r) {
3442
- it(e) || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
3445
+ st(e) || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
3443
3446
  }
3444
3447
  function Al(e, t, n) {
3445
- it(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
3448
+ st(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
3446
3449
  }
3447
- function bt(e, t) {
3448
- it(e) || (t == null ? e.removeAttribute("class") : e.className = t);
3450
+ function vt(e, t) {
3451
+ st(e) || (t == null ? e.removeAttribute("class") : e.className = t);
3449
3452
  }
3450
3453
  function Tl(e, t, n, r) {
3451
3454
  if (r)
@@ -3455,7 +3458,7 @@ function Tl(e, t, n, r) {
3455
3458
  e.addEventListener(t, n[0] = (i) => o.call(e, n[1], i));
3456
3459
  } else e.addEventListener(t, n, typeof n != "function" && n);
3457
3460
  }
3458
- function Dl(e, t, n = {}) {
3461
+ function Ll(e, t, n = {}) {
3459
3462
  const r = Object.keys(t || {}), o = Object.keys(n);
3460
3463
  let i, s;
3461
3464
  for (i = 0, s = o.length; i < s; i++) {
@@ -3480,11 +3483,11 @@ function Mn(e, t, n) {
3480
3483
  o = t[i], o !== n[i] && (r.setProperty(i, o), n[i] = o);
3481
3484
  return n;
3482
3485
  }
3483
- function ot(e, t = {}, n, r) {
3486
+ function it(e, t = {}, n, r) {
3484
3487
  const o = {};
3485
3488
  return r || oe(
3486
3489
  () => o.children = zt(e, t.children, o.children)
3487
- ), oe(() => typeof t.ref == "function" && Br(t.ref, e)), oe(() => Ll(e, t, n, !0, o, !0)), o;
3490
+ ), oe(() => typeof t.ref == "function" && Br(t.ref, e)), oe(() => Dl(e, t, n, !0, o, !0)), o;
3488
3491
  }
3489
3492
  function Br(e, t, n) {
3490
3493
  return q(() => e(t, n));
@@ -3493,7 +3496,7 @@ function A(e, t, n, r) {
3493
3496
  if (n !== void 0 && !r && (r = []), typeof t != "function") return zt(e, t, r, n);
3494
3497
  oe((o) => zt(e, t(), o, n), r);
3495
3498
  }
3496
- function Ll(e, t, n, r, o = {}, i = !1) {
3499
+ function Dl(e, t, n, r, o = {}, i = !1) {
3497
3500
  t || (t = {});
3498
3501
  for (const s in o)
3499
3502
  if (!(s in t)) {
@@ -3509,9 +3512,9 @@ function Ll(e, t, n, r, o = {}, i = !1) {
3509
3512
  }
3510
3513
  function Ml(e) {
3511
3514
  let t, n;
3512
- return !it() || !(t = V.registry.get(n = $l())) ? e() : (V.completed && V.completed.add(t), V.registry.delete(n), t);
3515
+ return !st() || !(t = V.registry.get(n = $l())) ? e() : (V.completed && V.completed.add(t), V.registry.delete(n), t);
3513
3516
  }
3514
- function it(e) {
3517
+ function st(e) {
3515
3518
  return !!V.context && !V.done && (!e || e.isConnected);
3516
3519
  }
3517
3520
  function Il(e) {
@@ -3525,7 +3528,7 @@ function wo(e, t, n) {
3525
3528
  function xo(e, t, n, r, o, i, s) {
3526
3529
  let a, l, c, d, u;
3527
3530
  if (t === "style") return Mn(e, n, r);
3528
- if (t === "classList") return Dl(e, n, r);
3531
+ if (t === "classList") return Ll(e, n, r);
3529
3532
  if (n === r) return r;
3530
3533
  if (t === "ref")
3531
3534
  i || n(e);
@@ -3549,8 +3552,8 @@ function xo(e, t, n, r, o, i, s) {
3549
3552
  else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = Sl(t, e.tagName)) || (l = bl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3550
3553
  if (u)
3551
3554
  t = t.slice(5), l = !0;
3552
- else if (it(e)) return n;
3553
- t === "class" || t === "className" ? bt(e, n) : a && !l && !c ? e[Il(t)] = n : e[d || t] = n;
3555
+ else if (st(e)) return n;
3556
+ t === "class" || t === "className" ? vt(e, n) : a && !l && !c ? e[Il(t)] = n : e[d || t] = n;
3554
3557
  } else {
3555
3558
  const h = o && t.indexOf(":") > -1 && Cl[t.split(":")[0]];
3556
3559
  h ? Pl(e, h, t, n) : de(e, wl[t] || t, n);
@@ -3594,7 +3597,7 @@ function Rl(e) {
3594
3597
  i(r);
3595
3598
  }
3596
3599
  function zt(e, t, n, r, o) {
3597
- const i = it(e);
3600
+ const i = st(e);
3598
3601
  if (i) {
3599
3602
  !n && (n = [...e.childNodes]);
3600
3603
  let l = [];
@@ -3612,12 +3615,12 @@ function zt(e, t, n, r, o) {
3612
3615
  return n;
3613
3616
  if (a) {
3614
3617
  let l = n[0];
3615
- l && l.nodeType === 3 ? l.data !== t && (l.data = t) : l = document.createTextNode(t), n = ct(e, n, r, l);
3618
+ l && l.nodeType === 3 ? l.data !== t && (l.data = t) : l = document.createTextNode(t), n = ut(e, n, r, l);
3616
3619
  } else
3617
3620
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
3618
3621
  } else if (t == null || s === "boolean") {
3619
3622
  if (i) return n;
3620
- n = ct(e, n, r);
3623
+ n = ut(e, n, r);
3621
3624
  } else {
3622
3625
  if (s === "function")
3623
3626
  return oe(() => {
@@ -3639,14 +3642,14 @@ function zt(e, t, n, r, o) {
3639
3642
  return n = u;
3640
3643
  }
3641
3644
  if (l.length === 0) {
3642
- if (n = ct(e, n, r), a) return n;
3643
- } else c ? n.length === 0 ? So(e, l, r) : Ol(e, n, l) : (n && ct(e), So(e, l));
3645
+ if (n = ut(e, n, r), a) return n;
3646
+ } else c ? n.length === 0 ? So(e, l, r) : Ol(e, n, l) : (n && ut(e), So(e, l));
3644
3647
  n = l;
3645
3648
  } else if (t.nodeType) {
3646
3649
  if (i && t.parentNode) return n = a ? [t] : t;
3647
3650
  if (Array.isArray(n)) {
3648
- if (a) return n = ct(e, n, r, t);
3649
- ct(e, n, null, t);
3651
+ if (a) return n = ut(e, n, r, t);
3652
+ ut(e, n, null, t);
3650
3653
  } else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
3651
3654
  n = t;
3652
3655
  }
@@ -3681,7 +3684,7 @@ function gr(e, t, n, r) {
3681
3684
  function So(e, t, n = null) {
3682
3685
  for (let r = 0, o = t.length; r < o; r++) e.insertBefore(t[r], n);
3683
3686
  }
3684
- function ct(e, t, n, r) {
3687
+ function ut(e, t, n, r) {
3685
3688
  if (n === void 0) return e.textContent = "";
3686
3689
  const o = r || document.createTextNode("");
3687
3690
  if (t.length) {
@@ -3706,7 +3709,7 @@ function Ni(e, t = !1) {
3706
3709
  function Ki(e) {
3707
3710
  const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, o = yo();
3708
3711
  let i, s = !!V.context;
3709
- return D(
3712
+ return L(
3710
3713
  () => {
3711
3714
  s && (yo().user = s = !1), i || (i = al(o, () => C(() => e.children)));
3712
3715
  const a = r();
@@ -3740,7 +3743,7 @@ function Kl(e, t) {
3740
3743
  return q(() => r(t));
3741
3744
  case "string":
3742
3745
  const o = kl.has(r), i = V.context ? Ml() : Ni(r, o);
3743
- return ot(i, t, o), i;
3746
+ return it(i, t, o), i;
3744
3747
  }
3745
3748
  });
3746
3749
  }
@@ -3788,18 +3791,18 @@ const jl = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
3788
3791
  zi.forEach((e) => e());
3789
3792
  }, ql = () => {
3790
3793
  const e = !Bi();
3791
- zr(e), ne("onToggle"), ne(e ? "onOpen" : "onClose"), Vi();
3794
+ zr(e), ee("onToggle"), ee(e ? "onOpen" : "onClose"), Vi();
3792
3795
  }, Wl = () => {
3793
- zr(!1), ne("onClose");
3796
+ zr(!1), ee("onClose");
3794
3797
  }, Gl = () => {
3795
- zr(!0), ne("onOpen"), Vi();
3798
+ zr(!0), ee("onOpen"), Vi();
3796
3799
  }, Ui = () => ({
3797
3800
  bubble: Bi,
3798
3801
  show: Gl,
3799
3802
  hide: Wl,
3800
3803
  toggle: ql,
3801
3804
  onOpen: Hl
3802
- }), pr = Symbol("store-raw"), gt = Symbol("store-node"), Ke = Symbol("store-has"), ji = Symbol("store-self");
3805
+ }), pr = Symbol("store-raw"), pt = Symbol("store-node"), Ke = Symbol("store-has"), ji = Symbol("store-self");
3803
3806
  function Hi(e) {
3804
3807
  let t = e[xe];
3805
3808
  if (!t && (Object.defineProperty(e, xe, {
@@ -3852,10 +3855,10 @@ function Ut(e, t, n) {
3852
3855
  }
3853
3856
  function Yl(e, t) {
3854
3857
  const n = Reflect.getOwnPropertyDescriptor(e, t);
3855
- return !n || n.get || !n.configurable || t === xe || t === gt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
3858
+ return !n || n.get || !n.configurable || t === xe || t === pt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
3856
3859
  }
3857
3860
  function qi(e) {
3858
- ur() && Ut(Sn(e, gt), ji)();
3861
+ ur() && Ut(Sn(e, pt), ji)();
3859
3862
  }
3860
3863
  function Xl(e) {
3861
3864
  return qi(e), Reflect.ownKeys(e);
@@ -3866,9 +3869,9 @@ const Jl = {
3866
3869
  if (t === xe) return n;
3867
3870
  if (t === cr)
3868
3871
  return qi(e), n;
3869
- const r = Sn(e, gt), o = r[t];
3872
+ const r = Sn(e, pt), o = r[t];
3870
3873
  let i = o ? o() : e[t];
3871
- if (t === gt || t === Ke || t === "__proto__") return i;
3874
+ if (t === pt || t === Ke || t === "__proto__") return i;
3872
3875
  if (!o) {
3873
3876
  const s = Object.getOwnPropertyDescriptor(e, t);
3874
3877
  ur() && (typeof i != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (i = Ut(r, t, i)());
@@ -3876,7 +3879,7 @@ const Jl = {
3876
3879
  return xn(i) ? Hi(i) : i;
3877
3880
  },
3878
3881
  has(e, t) {
3879
- return t === pr || t === xe || t === cr || t === gt || t === Ke || t === "__proto__" ? !0 : (ur() && Ut(Sn(e, Ke), t)(), t in e);
3882
+ return t === pr || t === xe || t === cr || t === pt || t === Ke || t === "__proto__" ? !0 : (ur() && Ut(Sn(e, Ke), t)(), t in e);
3880
3883
  },
3881
3884
  set() {
3882
3885
  return !0;
@@ -3891,7 +3894,7 @@ function En(e, t, n, r = !1) {
3891
3894
  if (!r && e[t] === n) return;
3892
3895
  const o = e[t], i = e.length;
3893
3896
  n === void 0 ? (delete e[t], e[Ke] && e[Ke][t] && o !== void 0 && e[Ke][t].$()) : (e[t] = n, e[Ke] && e[Ke][t] && o === void 0 && e[Ke][t].$());
3894
- let s = Sn(e, gt), a;
3897
+ let s = Sn(e, pt), a;
3895
3898
  if ((a = Ut(s, t, o)) && a.$(() => n), Array.isArray(e) && e.length !== i) {
3896
3899
  for (let l = e.length; l < i; l++) (a = s[l]) && a.$();
3897
3900
  (a = Ut(s, "length", i)) && a.$(e.length);
@@ -3957,7 +3960,7 @@ function Gi(e, t, n) {
3957
3960
  const r = Ci(e), [o, i] = Ql(
3958
3961
  r ? JSON.parse(r) : t
3959
3962
  );
3960
- return D(() => ki(e, JSON.stringify(o), n)), [o, i];
3963
+ return L(() => ki(e, JSON.stringify(o), n)), [o, i];
3961
3964
  });
3962
3965
  }
3963
3966
  function ec(e, t, n) {
@@ -3965,7 +3968,7 @@ function ec(e, t, n) {
3965
3968
  const r = Ci(e), [o, i] = P(
3966
3969
  r ? JSON.parse(r) : t
3967
3970
  );
3968
- return D(() => ki(e, JSON.stringify(o()), n)), [o, i];
3971
+ return L(() => ki(e, JSON.stringify(o()), n)), [o, i];
3969
3972
  });
3970
3973
  }
3971
3974
  const [ym, bm] = ec("lang", "en");
@@ -4056,16 +4059,20 @@ const rc = async (e) => {
4056
4059
  }).catch(console.error);
4057
4060
  }
4058
4061
  ), i._id = n, i;
4059
- }, [Yi, oc] = P(""), [vt] = ze(() => sl(Yi, rc)), ic = () => {
4060
- if (vt()?.type === "chat") return vt();
4062
+ }, [Yi, oc] = P(""), [nt] = ze(() => sl(Yi, rc)), ic = () => {
4063
+ if (nt()?.type === "chat") return nt();
4061
4064
  }, sc = () => {
4062
- if (vt()?.type === "form") return vt();
4065
+ if (nt()?.type === "form") return nt();
4063
4066
  };
4064
- ze(() => D(() => Ba(vt())));
4067
+ ze(
4068
+ () => L(() => {
4069
+ Ba(nt()), nt() && ee("onLoad");
4070
+ })
4071
+ );
4065
4072
  const ie = () => ({
4066
4073
  widgetId: Yi,
4067
4074
  setWidgetId: oc,
4068
- widget: vt,
4075
+ widget: nt,
4069
4076
  chatWidget: ic,
4070
4077
  formWidget: sc
4071
4078
  }), Eo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ko = yi, ac = (e, t) => (n) => {
@@ -4120,11 +4127,11 @@ const cc = ac("inline-flex items-center justify-center rounded-md text-sm font-m
4120
4127
  variant: "default",
4121
4128
  size: "default"
4122
4129
  }
4123
- }), De = (e) => {
4130
+ }), Le = (e) => {
4124
4131
  const [, t] = j(e, ["variant", "size", "class"]);
4125
4132
  return (() => {
4126
4133
  var n = lc();
4127
- return ot(n, T({
4134
+ return it(n, T({
4128
4135
  get class() {
4129
4136
  return Ze(cc({
4130
4137
  variant: e.variant,
@@ -4139,7 +4146,7 @@ const Xi = (e) => {
4139
4146
  const [, t] = j(e, ["class", "src"]);
4140
4147
  return (() => {
4141
4148
  var n = uc();
4142
- return ot(n, T({
4149
+ return it(n, T({
4143
4150
  get src() {
4144
4151
  return e.src ?? "/src/assets/izi.jpeg";
4145
4152
  },
@@ -4166,11 +4173,11 @@ const fc = () => {
4166
4173
  var hc = /* @__PURE__ */ I("<svg stroke-width=0>");
4167
4174
  function Se(e, t) {
4168
4175
  const n = T(e.a, t), [r, o] = j(n, ["src"]), [i, s] = P(""), a = C(() => t.title ? `${e.c}<title>${t.title}</title>` : e.c);
4169
- return D(() => s(a())), K(() => {
4176
+ return L(() => s(a())), K(() => {
4170
4177
  s("");
4171
4178
  }), (() => {
4172
4179
  var l = hc();
4173
- return ot(l, T({
4180
+ return it(l, T({
4174
4181
  get stroke() {
4175
4182
  return e.a?.stroke;
4176
4183
  },
@@ -4253,7 +4260,7 @@ function Sc(e, t, n, r) {
4253
4260
  i && Co(S(t)).forEach((s) => xc(i, s, n, r));
4254
4261
  });
4255
4262
  };
4256
- typeof e == "function" ? D(o) : oe(o);
4263
+ typeof e == "function" ? L(o) : oe(o);
4257
4264
  }
4258
4265
  function Zt() {
4259
4266
  return !0;
@@ -4350,7 +4357,7 @@ function Oc(...e) {
4350
4357
  }
4351
4358
  }, Ec);
4352
4359
  }
4353
- function st(...e) {
4360
+ function at(...e) {
4354
4361
  return Ji(e);
4355
4362
  }
4356
4363
  function _c(e, t, n = -1) {
@@ -4366,7 +4373,7 @@ function Pc(e) {
4366
4373
  function Ac(e) {
4367
4374
  return Array.isArray(e);
4368
4375
  }
4369
- function ut(e) {
4376
+ function dt(e) {
4370
4377
  return Object.prototype.toString.call(e) === "[object String]";
4371
4378
  }
4372
4379
  function Tc(e) {
@@ -4413,15 +4420,15 @@ function Vr(e) {
4413
4420
  function In() {
4414
4421
  return Vr(/^Mac/i);
4415
4422
  }
4416
- function Dc() {
4423
+ function Lc() {
4417
4424
  return Vr(/^iPhone/i);
4418
4425
  }
4419
- function Lc() {
4426
+ function Dc() {
4420
4427
  return Vr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
4421
4428
  In() && navigator.maxTouchPoints > 1;
4422
4429
  }
4423
4430
  function Mc() {
4424
- return Dc() || Lc();
4431
+ return Lc() || Dc();
4425
4432
  }
4426
4433
  function Ic() {
4427
4434
  return In() || Mc();
@@ -4590,26 +4597,26 @@ function Wc(e, t) {
4590
4597
  function $e(e, t) {
4591
4598
  return T(e, t);
4592
4599
  }
4593
- var Lt = /* @__PURE__ */ new Map(), Ao = /* @__PURE__ */ new Set();
4600
+ var Dt = /* @__PURE__ */ new Map(), Ao = /* @__PURE__ */ new Set();
4594
4601
  function To() {
4595
4602
  if (typeof window > "u")
4596
4603
  return;
4597
4604
  const e = (n) => {
4598
4605
  if (!n.target)
4599
4606
  return;
4600
- let r = Lt.get(n.target);
4601
- r || (r = /* @__PURE__ */ new Set(), Lt.set(n.target, r), n.target.addEventListener(
4607
+ let r = Dt.get(n.target);
4608
+ r || (r = /* @__PURE__ */ new Set(), Dt.set(n.target, r), n.target.addEventListener(
4602
4609
  "transitioncancel",
4603
4610
  t
4604
4611
  )), r.add(n.propertyName);
4605
4612
  }, t = (n) => {
4606
4613
  if (!n.target)
4607
4614
  return;
4608
- const r = Lt.get(n.target);
4615
+ const r = Dt.get(n.target);
4609
4616
  if (r && (r.delete(n.propertyName), r.size === 0 && (n.target.removeEventListener(
4610
4617
  "transitioncancel",
4611
4618
  t
4612
- ), Lt.delete(n.target)), Lt.size === 0)) {
4619
+ ), Dt.delete(n.target)), Dt.size === 0)) {
4613
4620
  for (const o of Ao)
4614
4621
  o();
4615
4622
  Ao.clear();
@@ -4619,12 +4626,12 @@ function To() {
4619
4626
  }
4620
4627
  typeof document < "u" && (document.readyState !== "loading" ? To() : document.addEventListener("DOMContentLoaded", To));
4621
4628
  function br(e, t) {
4622
- const n = Do(e, t, "left"), r = Do(e, t, "top"), o = t.offsetWidth, i = t.offsetHeight;
4629
+ const n = Lo(e, t, "left"), r = Lo(e, t, "top"), o = t.offsetWidth, i = t.offsetHeight;
4623
4630
  let s = e.scrollLeft, a = e.scrollTop;
4624
4631
  const l = s + e.offsetWidth, c = a + e.offsetHeight;
4625
4632
  n <= s ? s = n : n + o > l && (s += n + o - l), r <= a ? a = r : r + i > c && (a += r + i - c), e.scrollLeft = s, e.scrollTop = a;
4626
4633
  }
4627
- function Do(e, t, n) {
4634
+ function Lo(e, t, n) {
4628
4635
  const r = n === "left" ? "offsetLeft" : "offsetTop";
4629
4636
  let o = 0;
4630
4637
  for (; t.offsetParent && (o += t[r], t.offsetParent !== e); ) {
@@ -4671,24 +4678,24 @@ function vr(e) {
4671
4678
  const n = e.startLevel ?? 0, r = [], o = (l) => {
4672
4679
  if (l == null)
4673
4680
  return "";
4674
- const c = e.getKey ?? "key", d = ut(c) ? l[c] : c(l);
4681
+ const c = e.getKey ?? "key", d = dt(c) ? l[c] : c(l);
4675
4682
  return d != null ? String(d) : "";
4676
4683
  }, i = (l) => {
4677
4684
  if (l == null)
4678
4685
  return "";
4679
- const c = e.getTextValue ?? "textValue", d = ut(c) ? l[c] : c(l);
4686
+ const c = e.getTextValue ?? "textValue", d = dt(c) ? l[c] : c(l);
4680
4687
  return d != null ? String(d) : "";
4681
4688
  }, s = (l) => {
4682
4689
  if (l == null)
4683
4690
  return !1;
4684
4691
  const c = e.getDisabled ?? "disabled";
4685
- return (ut(c) ? l[c] : c(l)) ?? !1;
4692
+ return (dt(c) ? l[c] : c(l)) ?? !1;
4686
4693
  }, a = (l) => {
4687
4694
  if (l != null)
4688
- return ut(e.getSectionChildren) ? l[e.getSectionChildren] : e.getSectionChildren?.(l);
4695
+ return dt(e.getSectionChildren) ? l[e.getSectionChildren] : e.getSectionChildren?.(l);
4689
4696
  };
4690
4697
  for (const l of e.dataSource) {
4691
- if (ut(l) || Pc(l)) {
4698
+ if (dt(l) || Pc(l)) {
4692
4699
  r.push({
4693
4700
  type: "item",
4694
4701
  rawValue: l,
@@ -4751,7 +4758,7 @@ function Xc(e, t = []) {
4751
4758
  getDisabled: S(e.getDisabled),
4752
4759
  getSectionChildren: S(e.getSectionChildren)
4753
4760
  }), [r, o] = P(e.factory(n));
4754
- return D(tt([
4761
+ return L(tt([
4755
4762
  () => S(e.dataSource),
4756
4763
  () => S(e.getKey),
4757
4764
  () => S(e.getTextValue),
@@ -4813,7 +4820,7 @@ function Qc(e) {
4813
4820
  const t = (n) => {
4814
4821
  n.key === es.Escape && e.onEscapeKeyDown?.(n);
4815
4822
  };
4816
- D(() => {
4823
+ L(() => {
4817
4824
  if (S(e.isDisabled))
4818
4825
  return;
4819
4826
  const n = e.ownerDocument?.() ?? Ue();
@@ -4912,7 +4919,7 @@ const he = {
4912
4919
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-on-child-unmount.ts
4913
4920
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/focus-scope/src/focus-containment.ts
4914
4921
  */
4915
- const Xn = "focusScope.autoFocusOnMount", Jn = "focusScope.autoFocusOnUnmount", Lo = {
4922
+ const Xn = "focusScope.autoFocusOnMount", Jn = "focusScope.autoFocusOnUnmount", Do = {
4916
4923
  bubbles: !1,
4917
4924
  cancelable: !0
4918
4925
  }, Mo = {
@@ -4957,25 +4964,25 @@ function lu(e, t) {
4957
4964
  const g = $t(f);
4958
4965
  return !g || Ae(f, g) ? !1 : rs(g);
4959
4966
  };
4960
- D(() => {
4967
+ L(() => {
4961
4968
  const f = t();
4962
4969
  if (!f)
4963
4970
  return;
4964
4971
  Mo.add(o);
4965
4972
  const g = $t(f);
4966
4973
  if (!Ae(f, g)) {
4967
- const b = new CustomEvent(Xn, Lo);
4974
+ const b = new CustomEvent(Xn, Do);
4968
4975
  f.addEventListener(Xn, s), f.dispatchEvent(b), b.defaultPrevented || setTimeout(() => {
4969
4976
  ue(u()), $t(f) === g && ue(f);
4970
4977
  }, 0);
4971
4978
  }
4972
4979
  K(() => {
4973
4980
  f.removeEventListener(Xn, s), setTimeout(() => {
4974
- const b = new CustomEvent(Jn, Lo);
4981
+ const b = new CustomEvent(Jn, Do);
4975
4982
  m() && b.preventDefault(), f.addEventListener(Jn, a), f.dispatchEvent(b), b.defaultPrevented || ue(g ?? l().body), f.removeEventListener(Jn, a), Mo.remove(o);
4976
4983
  }, 0);
4977
4984
  });
4978
- }), D(() => {
4985
+ }), L(() => {
4979
4986
  const f = t();
4980
4987
  if (!f || !S(e.trapFocus) || n())
4981
4988
  return;
@@ -4989,7 +4996,7 @@ function lu(e, t) {
4989
4996
  l().addEventListener("focusin", g), l().addEventListener("focusout", p), K(() => {
4990
4997
  l().removeEventListener("focusin", g), l().removeEventListener("focusout", p);
4991
4998
  });
4992
- }), D(() => {
4999
+ }), L(() => {
4993
5000
  const f = t();
4994
5001
  if (!f || !S(e.trapFocus) || n())
4995
5002
  return;
@@ -5030,7 +5037,7 @@ const cu = "data-live-announcer";
5030
5037
  * https://github.com/adobe/react-spectrum/blob/810579b671791f1593108f62cdc1893de3a220e3/packages/@react-aria/overlays/src/ariaHideOutside.ts
5031
5038
  */
5032
5039
  function uu(e) {
5033
- D(() => {
5040
+ L(() => {
5034
5041
  S(e.isDisabled) || K(du(S(e.targets), S(e.root)));
5035
5042
  });
5036
5043
  }
@@ -5149,7 +5156,7 @@ function fu(e, t) {
5149
5156
  });
5150
5157
  m.dispatchEvent(g);
5151
5158
  };
5152
- D(() => {
5159
+ L(() => {
5153
5160
  S(e.isDisabled) || (n = window.setTimeout(() => {
5154
5161
  o().addEventListener("pointerdown", c, !0);
5155
5162
  }, 0), o().addEventListener("focusin", d, !0), K(() => {
@@ -5181,15 +5188,15 @@ function hu(e) {
5181
5188
  MOUNT: "mounted"
5182
5189
  }
5183
5190
  });
5184
- return D(tt(s, (l) => {
5191
+ return L(tt(s, (l) => {
5185
5192
  const c = en(r);
5186
5193
  i = l === "mounted" ? c : "none";
5187
- })), D(tt(e, (l) => {
5194
+ })), L(tt(e, (l) => {
5188
5195
  if (o === l)
5189
5196
  return;
5190
5197
  const c = en(r);
5191
5198
  l ? a("MOUNT") : r?.display === "none" ? a("UNMOUNT") : a(o && i !== c ? "ANIMATION_OUT" : "UNMOUNT"), o = l;
5192
- })), D(tt(t, (l) => {
5199
+ })), L(tt(t, (l) => {
5193
5200
  if (l) {
5194
5201
  const c = (u) => {
5195
5202
  const m = en(r).includes(u.animationName);
@@ -5230,12 +5237,12 @@ function Cn(e) {
5230
5237
  */
5231
5238
  function pu(e, t) {
5232
5239
  const [n, r] = P($o(t?.()));
5233
- return D(() => {
5240
+ return L(() => {
5234
5241
  r(e()?.tagName.toLowerCase() || $o(t?.()));
5235
5242
  }), n;
5236
5243
  }
5237
5244
  function $o(e) {
5238
- return ut(e) ? e : void 0;
5245
+ return dt(e) ? e : void 0;
5239
5246
  }
5240
5247
  function Rn(e) {
5241
5248
  const [t, n] = j(e, ["asChild", "as", "children"]);
@@ -5257,7 +5264,7 @@ function Rn(e) {
5257
5264
  if (Ac(r())) {
5258
5265
  const o = r().find(Fo);
5259
5266
  if (o) {
5260
- const i = () => y(yt, {
5267
+ const i = () => y(bt, {
5261
5268
  get each() {
5262
5269
  return r();
5263
5270
  },
@@ -5366,7 +5373,7 @@ function Ko() {
5366
5373
  }
5367
5374
  function xu() {
5368
5375
  const [e, t] = P(xr), n = C(() => e());
5369
- return Dn(() => {
5376
+ return Ln(() => {
5370
5377
  Ft.size === 0 && window.addEventListener("languagechange", Ko), Ft.add(t), K(() => {
5371
5378
  Ft.delete(t), Ft.size === 0 && window.removeEventListener("languagechange", Ko);
5372
5379
  });
@@ -5426,7 +5433,7 @@ function ku(e) {
5426
5433
  function cs(e) {
5427
5434
  return Ic() ? e.altKey : e.ctrlKey;
5428
5435
  }
5429
- function dt(e) {
5436
+ function ft(e) {
5430
5437
  return In() ? e.metaKey : e.ctrlKey;
5431
5438
  }
5432
5439
  function Bo(e) {
@@ -5464,10 +5471,10 @@ function Ou(e) {
5464
5471
  }), [d, u] = P(S(t.selectionBehavior)), h = () => S(t.selectionMode), m = () => S(t.disallowEmptySelection) ?? !1, f = (g) => {
5465
5472
  (S(t.allowDuplicateSelectionEvents) || !Cu(g, l())) && c(g);
5466
5473
  };
5467
- return D(() => {
5474
+ return L(() => {
5468
5475
  const g = l();
5469
5476
  S(t.selectionBehavior) === "replace" && d() === "toggle" && typeof g == "object" && g.size === 0 && u("replace");
5470
- }), D(() => {
5477
+ }), L(() => {
5471
5478
  u(S(t.selectionBehavior) ?? "toggle");
5472
5479
  }), {
5473
5480
  selectionMode: h,
@@ -5584,15 +5591,15 @@ function Tu(e, t, n) {
5584
5591
  case "Home":
5585
5592
  if (x.getFirstKey) {
5586
5593
  g.preventDefault();
5587
- const E = x.getFirstKey(k, dt(g));
5588
- E != null && (b.setFocusedKey(E), dt(g) && g.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : v && b.replaceSelection(E));
5594
+ const E = x.getFirstKey(k, ft(g));
5595
+ E != null && (b.setFocusedKey(E), ft(g) && g.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : v && b.replaceSelection(E));
5589
5596
  }
5590
5597
  break;
5591
5598
  case "End":
5592
5599
  if (x.getLastKey) {
5593
5600
  g.preventDefault();
5594
- const E = x.getLastKey(k, dt(g));
5595
- E != null && (b.setFocusedKey(E), dt(g) && g.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : v && b.replaceSelection(E));
5601
+ const E = x.getLastKey(k, ft(g));
5602
+ E != null && (b.setFocusedKey(E), ft(g) && g.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : v && b.replaceSelection(E));
5596
5603
  }
5597
5604
  break;
5598
5605
  case "PageDown":
@@ -5610,7 +5617,7 @@ function Tu(e, t, n) {
5610
5617
  }
5611
5618
  break;
5612
5619
  case "a":
5613
- dt(g) && b.selectionMode() === "multiple" && S(o.disallowSelectAll) !== !0 && (g.preventDefault(), b.selectAll());
5620
+ ft(g) && b.selectionMode() === "multiple" && S(o.disallowSelectAll) !== !0 && (g.preventDefault(), b.selectAll());
5614
5621
  break;
5615
5622
  case "Escape":
5616
5623
  g.defaultPrevented || (g.preventDefault(), S(o.disallowEmptySelection) || b.clearSelection());
@@ -5668,9 +5675,9 @@ function Tu(e, t, n) {
5668
5675
  const x = t();
5669
5676
  x && v == null && !S(o.shouldUseVirtualFocus) && ue(x);
5670
5677
  };
5671
- return Dn(() => {
5678
+ return Ln(() => {
5672
5679
  o.deferAutoFocus ? setTimeout(m, 0) : m();
5673
- }), D(tt([
5680
+ }), L(tt([
5674
5681
  i,
5675
5682
  () => S(o.isVirtualized),
5676
5683
  () => S(o.selectionManager).focusedKey()
@@ -5700,9 +5707,9 @@ function Tu(e, t, n) {
5700
5707
  * Credits to the React Spectrum team:
5701
5708
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableItem.ts
5702
5709
  */
5703
- function Du(e, t) {
5710
+ function Lu(e, t) {
5704
5711
  const n = () => S(e.selectionManager), r = () => S(e.key), o = () => S(e.shouldUseVirtualFocus), i = (v) => {
5705
- n().selectionMode() !== "none" && (n().selectionMode() === "single" ? n().isSelected(r()) && !n().disallowEmptySelection() ? n().toggleSelection(r()) : n().replaceSelection(r()) : v?.shiftKey ? n().extendSelection(r()) : n().selectionBehavior() === "toggle" || dt(v) || "pointerType" in v && v.pointerType === "touch" ? n().toggleSelection(r()) : n().replaceSelection(r()));
5712
+ n().selectionMode() !== "none" && (n().selectionMode() === "single" ? n().isSelected(r()) && !n().disallowEmptySelection() ? n().toggleSelection(r()) : n().replaceSelection(r()) : v?.shiftKey ? n().extendSelection(r()) : n().selectionBehavior() === "toggle" || ft(v) || "pointerType" in v && v.pointerType === "touch" ? n().toggleSelection(r()) : n().replaceSelection(r()));
5706
5713
  }, s = () => n().isSelected(r()), a = () => S(e.disabled) || n().isDisabled(r()), l = () => !a() && n().canSelectItem(r());
5707
5714
  let c = null;
5708
5715
  const d = (v) => {
@@ -5722,7 +5729,7 @@ function Du(e, t) {
5722
5729
  if (!(o() || a()))
5723
5730
  return r() === n().focusedKey() ? 0 : -1;
5724
5731
  }), b = C(() => S(e.virtualized) ? void 0 : r());
5725
- return D(tt([
5732
+ return L(tt([
5726
5733
  t,
5727
5734
  r,
5728
5735
  o,
@@ -5751,7 +5758,7 @@ function Du(e, t) {
5751
5758
  * Credits to the React Spectrum team:
5752
5759
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/SelectionManager.ts
5753
5760
  */
5754
- class Lu {
5761
+ class Du {
5755
5762
  collection;
5756
5763
  state;
5757
5764
  constructor(t, n) {
@@ -6027,8 +6034,8 @@ function Mu(e) {
6027
6034
  getDisabled: () => S(e.getDisabled),
6028
6035
  getSectionChildren: () => S(e.getSectionChildren),
6029
6036
  factory: (i) => e.filter ? new zo(e.filter(i)) : new zo(i)
6030
- }, [() => e.filter]), o = new Lu(r, t);
6031
- return Di(() => {
6037
+ }, [() => e.filter]), o = new Du(r, t);
6038
+ return Li(() => {
6032
6039
  const i = t.focusedKey();
6033
6040
  i != null && !r().getItem(i) && t.setFocusedKey(void 0);
6034
6041
  }), {
@@ -6189,7 +6196,7 @@ function Nu(e) {
6189
6196
  return y(Rn, T({
6190
6197
  as: "button",
6191
6198
  ref(c) {
6192
- var d = st((u) => t = u, r.ref);
6199
+ var d = at((u) => t = u, r.ref);
6193
6200
  typeof d == "function" && d(c);
6194
6201
  },
6195
6202
  get type() {
@@ -6269,7 +6276,7 @@ function Vu(e) {
6269
6276
  return Ue(r).body;
6270
6277
  }
6271
6278
  function Uu(e, t) {
6272
- D(() => {
6279
+ L(() => {
6273
6280
  const n = setTimeout(() => {
6274
6281
  hs(e(), t);
6275
6282
  });
@@ -6282,7 +6289,7 @@ function ju(e, t) {
6282
6289
  return;
6283
6290
  }
6284
6291
  let n = [];
6285
- D(() => {
6292
+ L(() => {
6286
6293
  const r = () => {
6287
6294
  const s = !!n.length;
6288
6295
  n = e(), s && hs(e(), t);
@@ -6327,7 +6334,7 @@ function Hu(e = {}) {
6327
6334
  }
6328
6335
  function qu(e) {
6329
6336
  const t = Ku(), n = $e({ shouldRegisterItem: !0 }, e);
6330
- D(() => {
6337
+ L(() => {
6331
6338
  if (!n.shouldRegisterItem)
6332
6339
  return;
6333
6340
  const r = t.registerItem(n.getItem());
@@ -6343,7 +6350,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6343
6350
  }
6344
6351
  return !1;
6345
6352
  }, tn = /* @__PURE__ */ new Map(), Wu = (e) => {
6346
- D(() => {
6353
+ L(() => {
6347
6354
  const t = J(e.style) ?? {}, n = J(e.properties) ?? [], r = {};
6348
6355
  for (const i in t)
6349
6356
  r[i] = e.element.style[i];
@@ -6401,11 +6408,11 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6401
6408
  allowPinchZoom: !1
6402
6409
  }, e), n = Te();
6403
6410
  let r = [0, 0], o = null, i = null;
6404
- D(() => {
6411
+ L(() => {
6405
6412
  J(t.enabled) && (jo((c) => [...c, n]), K(() => {
6406
6413
  jo((c) => c.filter((d) => d !== n));
6407
6414
  }));
6408
- }), D(() => {
6415
+ }), L(() => {
6409
6416
  if (!J(t.enabled) || !J(t.hideScrollbar)) return;
6410
6417
  const {
6411
6418
  body: c
@@ -6436,7 +6443,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6436
6443
  overflow: "hidden"
6437
6444
  }
6438
6445
  });
6439
- }), D(() => {
6446
+ }), L(() => {
6440
6447
  !Ju(n) || !J(t.enabled) || (document.addEventListener("wheel", a, {
6441
6448
  passive: !1
6442
6449
  }), document.addEventListener("touchstart", s, {
@@ -6502,7 +6509,7 @@ function nd(e) {
6502
6509
  onEscapeKeyDown: (u) => {
6503
6510
  !t || !he.isTopMostLayer(t) || (r.onEscapeKeyDown?.(u), !u.defaultPrevented && r.onDismiss && (u.preventDefault(), r.onDismiss()));
6504
6511
  }
6505
- }), Dn(() => {
6512
+ }), Ln(() => {
6506
6513
  if (!t)
6507
6514
  return;
6508
6515
  he.addLayer({
@@ -6514,7 +6521,7 @@ function nd(e) {
6514
6521
  he.assignPointerEventToLayers(), he.disableBodyPointerEvents(t), K(() => {
6515
6522
  t && (he.removeLayer(t), u?.(), he.assignPointerEventToLayers(), he.restoreBodyPointerEvents(t));
6516
6523
  });
6517
- }), D(tt([() => t, () => r.disableOutsidePointerEvents], ([u, h]) => {
6524
+ }), L(tt([() => t, () => r.disableOutsidePointerEvents], ([u, h]) => {
6518
6525
  if (!u)
6519
6526
  return;
6520
6527
  const m = he.find(u);
@@ -6533,7 +6540,7 @@ function nd(e) {
6533
6540
  return y(Rn, T({
6534
6541
  as: "div",
6535
6542
  ref(u) {
6536
- var h = st((m) => t = m, r.ref);
6543
+ var h = at((m) => t = m, r.ref);
6537
6544
  typeof h == "function" && h(u);
6538
6545
  }
6539
6546
  }, o));
@@ -6552,7 +6559,7 @@ function od(e) {
6552
6559
  return y(Rn, T({
6553
6560
  as: "div",
6554
6561
  ref(o) {
6555
- var i = st(t.setPositionerRef, n.ref);
6562
+ var i = at(t.setPositionerRef, n.ref);
6556
6563
  typeof i == "function" && i(o);
6557
6564
  },
6558
6565
  "data-popper-positioner": "",
@@ -6567,7 +6574,7 @@ function od(e) {
6567
6574
  }
6568
6575
  }, r));
6569
6576
  }
6570
- const id = ["top", "right", "bottom", "left"], Ye = Math.min, ge = Math.max, On = Math.round, nn = Math.floor, Le = (e) => ({
6577
+ const id = ["top", "right", "bottom", "left"], Ye = Math.min, ge = Math.max, On = Math.round, nn = Math.floor, De = (e) => ({
6571
6578
  x: e,
6572
6579
  y: e
6573
6580
  }), sd = {
@@ -6582,7 +6589,7 @@ const id = ["top", "right", "bottom", "left"], Ye = Math.min, ge = Math.max, On
6582
6589
  function Er(e, t, n) {
6583
6590
  return ge(e, Ye(t, n));
6584
6591
  }
6585
- function at(e, t) {
6592
+ function lt(e, t) {
6586
6593
  return typeof e == "function" ? e(t) : e;
6587
6594
  }
6588
6595
  function Xe(e) {
@@ -6597,11 +6604,11 @@ function ys(e) {
6597
6604
  function Gr(e) {
6598
6605
  return e === "y" ? "height" : "width";
6599
6606
  }
6600
- function nt(e) {
6607
+ function rt(e) {
6601
6608
  return ["top", "bottom"].includes(Xe(e)) ? "y" : "x";
6602
6609
  }
6603
6610
  function Yr(e) {
6604
- return ys(nt(e));
6611
+ return ys(rt(e));
6605
6612
  }
6606
6613
  function ld(e, t, n) {
6607
6614
  n === void 0 && (n = !1);
@@ -6677,7 +6684,7 @@ function Wo(e, t, n) {
6677
6684
  reference: r,
6678
6685
  floating: o
6679
6686
  } = e;
6680
- const i = nt(t), s = Yr(t), a = Gr(s), l = Xe(t), c = i === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
6687
+ const i = rt(t), s = Yr(t), a = Gr(s), l = Xe(t), c = i === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
6681
6688
  let m;
6682
6689
  switch (l) {
6683
6690
  case "top":
@@ -6797,7 +6804,7 @@ async function Ht(e, t) {
6797
6804
  elementContext: u = "floating",
6798
6805
  altBoundary: h = !1,
6799
6806
  padding: m = 0
6800
- } = at(t, e), f = bs(m), p = a[h ? u === "floating" ? "reference" : "floating" : u], b = Pn(await i.getClippingRect({
6807
+ } = lt(t, e), f = bs(m), p = a[h ? u === "floating" ? "reference" : "floating" : u], b = Pn(await i.getClippingRect({
6801
6808
  element: (n = await (i.isElement == null ? void 0 : i.isElement(p))) == null || n ? p : p.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
6802
6809
  boundary: c,
6803
6810
  rootBoundary: d,
@@ -6841,7 +6848,7 @@ const gd = (e) => ({
6841
6848
  } = t, {
6842
6849
  element: c,
6843
6850
  padding: d = 0
6844
- } = at(e, t) || {};
6851
+ } = lt(e, t) || {};
6845
6852
  if (c == null)
6846
6853
  return {};
6847
6854
  const u = bs(d), h = {
@@ -6850,7 +6857,7 @@ const gd = (e) => ({
6850
6857
  }, m = Yr(o), f = Gr(m), g = await s.getDimensions(c), p = m === "y", b = p ? "top" : "left", v = p ? "bottom" : "right", w = p ? "clientHeight" : "clientWidth", x = i.reference[f] + i.reference[m] - h[m] - i.floating[f], O = h[m] - i.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6851
6858
  let E = k ? k[w] : 0;
6852
6859
  (!E || !await (s.isElement == null ? void 0 : s.isElement(k))) && (E = a.floating[w] || i.floating[f]);
6853
- const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), L = Ye(u[v], _), M = R, te = E - g[f] - L, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, te), F = !l.arrow && Et(o) != null && W !== ce && i.reference[f] / 2 - (W < M ? R : L) - g[f] / 2 < 0, B = F ? W < M ? W - M : W - te : 0;
6860
+ const $ = x / 2 - O / 2, _ = E / 2 - g[f] / 2 - 1, R = Ye(u[b], _), D = Ye(u[v], _), M = R, ne = E - g[f] - D, W = E / 2 - g[f] / 2 + $, ce = Er(M, W, ne), F = !l.arrow && Et(o) != null && W !== ce && i.reference[f] / 2 - (W < M ? R : D) - g[f] / 2 < 0, B = F ? W < M ? W - M : W - ne : 0;
6854
6861
  return {
6855
6862
  [m]: h[m] + B,
6856
6863
  data: {
@@ -6884,10 +6891,10 @@ const gd = (e) => ({
6884
6891
  fallbackAxisSideDirection: f = "none",
6885
6892
  flipAlignment: g = !0,
6886
6893
  ...p
6887
- } = at(e, t);
6894
+ } = lt(e, t);
6888
6895
  if ((n = i.arrow) != null && n.alignmentOffset)
6889
6896
  return {};
6890
- const b = Xe(o), v = nt(a), w = Xe(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (w || !g ? [_n(a)] : cd(a)), k = f !== "none";
6897
+ const b = Xe(o), v = rt(a), w = Xe(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), O = h || (w || !g ? [_n(a)] : cd(a)), k = f !== "none";
6891
6898
  !h && k && O.push(...dd(a, g, f, x));
6892
6899
  const E = [a, ...O], $ = await Ht(t, p), _ = [];
6893
6900
  let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
@@ -6899,8 +6906,8 @@ const gd = (e) => ({
6899
6906
  placement: o,
6900
6907
  overflows: _
6901
6908
  }], !_.every((W) => W <= 0)) {
6902
- var L, M;
6903
- const W = (((L = i.flip) == null ? void 0 : L.index) || 0) + 1, ce = E[W];
6909
+ var D, M;
6910
+ const W = (((D = i.flip) == null ? void 0 : D.index) || 0) + 1, ce = E[W];
6904
6911
  if (ce)
6905
6912
  return {
6906
6913
  data: {
@@ -6915,16 +6922,16 @@ const gd = (e) => ({
6915
6922
  if (!F)
6916
6923
  switch (m) {
6917
6924
  case "bestFit": {
6918
- var te;
6919
- const B = (te = R.filter((Z) => {
6925
+ var ne;
6926
+ const B = (ne = R.filter((Z) => {
6920
6927
  if (k) {
6921
- const re = nt(Z.placement);
6928
+ const re = rt(Z.placement);
6922
6929
  return re === v || // Create a bias to the `y` side axis due to horizontal
6923
6930
  // reading directions favoring greater width.
6924
6931
  re === "y";
6925
6932
  }
6926
6933
  return !0;
6927
- }).map((Z) => [Z.placement, Z.overflows.filter((re) => re > 0).reduce((re, lt) => re + lt, 0)]).sort((Z, re) => Z[1] - re[1])[0]) == null ? void 0 : te[0];
6934
+ }).map((Z) => [Z.placement, Z.overflows.filter((re) => re > 0).reduce((re, ct) => re + ct, 0)]).sort((Z, re) => Z[1] - re[1])[0]) == null ? void 0 : ne[0];
6928
6935
  B && (F = B);
6929
6936
  break;
6930
6937
  }
@@ -6964,7 +6971,7 @@ const md = function(e) {
6964
6971
  } = t, {
6965
6972
  strategy: r = "referenceHidden",
6966
6973
  ...o
6967
- } = at(e, t);
6974
+ } = lt(e, t);
6968
6975
  switch (r) {
6969
6976
  case "referenceHidden": {
6970
6977
  const i = await Ht(t, {
@@ -7001,7 +7008,7 @@ async function yd(e, t) {
7001
7008
  placement: n,
7002
7009
  platform: r,
7003
7010
  elements: o
7004
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Xe(n), a = Et(n), l = nt(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = at(t, e);
7011
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Xe(n), a = Et(n), l = rt(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = lt(t, e);
7005
7012
  let {
7006
7013
  mainAxis: h,
7007
7014
  crossAxis: m,
@@ -7070,10 +7077,10 @@ const bd = function(e) {
7070
7077
  }
7071
7078
  },
7072
7079
  ...l
7073
- } = at(e, t), c = {
7080
+ } = lt(e, t), c = {
7074
7081
  x: n,
7075
7082
  y: r
7076
- }, d = await Ht(t, l), u = nt(Xe(o)), h = ys(u);
7083
+ }, d = await Ht(t, l), u = rt(Xe(o)), h = ys(u);
7077
7084
  let m = c[h], f = c[u];
7078
7085
  if (i) {
7079
7086
  const p = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + d[p], w = m - d[b];
@@ -7116,7 +7123,7 @@ const bd = function(e) {
7116
7123
  apply: l = () => {
7117
7124
  },
7118
7125
  ...c
7119
- } = at(e, t), d = await Ht(t, c), u = Xe(o), h = Et(o), m = nt(o) === "y", {
7126
+ } = lt(e, t), d = await Ht(t, c), u = Xe(o), h = Et(o), m = rt(o) === "y", {
7120
7127
  width: f,
7121
7128
  height: g
7122
7129
  } = i.floating;
@@ -7125,8 +7132,8 @@ const bd = function(e) {
7125
7132
  const v = g - d.top - d.bottom, w = f - d.left - d.right, x = Ye(g - d[p], v), O = Ye(f - d[b], w), k = !t.middlewareData.shift;
7126
7133
  let E = x, $ = O;
7127
7134
  if ((n = t.middlewareData.shift) != null && n.enabled.x && ($ = w), (r = t.middlewareData.shift) != null && r.enabled.y && (E = v), k && !h) {
7128
- const R = ge(d.left, 0), L = ge(d.right, 0), M = ge(d.top, 0), te = ge(d.bottom, 0);
7129
- m ? $ = f - 2 * (R !== 0 || L !== 0 ? R + L : ge(d.left, d.right)) : E = g - 2 * (M !== 0 || te !== 0 ? M + te : ge(d.top, d.bottom));
7135
+ const R = ge(d.left, 0), D = ge(d.right, 0), M = ge(d.top, 0), ne = ge(d.bottom, 0);
7136
+ m ? $ = f - 2 * (R !== 0 || D !== 0 ? R + D : ge(d.left, d.right)) : E = g - 2 * (M !== 0 || ne !== 0 ? M + ne : ge(d.top, d.bottom));
7130
7137
  }
7131
7138
  await l({
7132
7139
  ...t,
@@ -7264,10 +7271,10 @@ function xs(e) {
7264
7271
  function Zr(e) {
7265
7272
  return _e(e) ? e : e.contextElement;
7266
7273
  }
7267
- function pt(e) {
7274
+ function mt(e) {
7268
7275
  const t = Zr(e);
7269
7276
  if (!Ie(t))
7270
- return Le(1);
7277
+ return De(1);
7271
7278
  const n = t.getBoundingClientRect(), {
7272
7279
  width: r,
7273
7280
  height: o,
@@ -7279,7 +7286,7 @@ function pt(e) {
7279
7286
  y: a
7280
7287
  };
7281
7288
  }
7282
- const Ed = /* @__PURE__ */ Le(0);
7289
+ const Ed = /* @__PURE__ */ De(0);
7283
7290
  function Ss(e) {
7284
7291
  const t = me(e);
7285
7292
  return !Jr() || !t.visualViewport ? Ed : {
@@ -7290,18 +7297,18 @@ function Ss(e) {
7290
7297
  function kd(e, t, n) {
7291
7298
  return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
7292
7299
  }
7293
- function rt(e, t, n, r) {
7300
+ function ot(e, t, n, r) {
7294
7301
  t === void 0 && (t = !1), n === void 0 && (n = !1);
7295
7302
  const o = e.getBoundingClientRect(), i = Zr(e);
7296
- let s = Le(1);
7297
- t && (r ? _e(r) && (s = pt(r)) : s = pt(e));
7298
- const a = kd(i, n, r) ? Ss(i) : Le(0);
7303
+ let s = De(1);
7304
+ t && (r ? _e(r) && (s = mt(r)) : s = mt(e));
7305
+ const a = kd(i, n, r) ? Ss(i) : De(0);
7299
7306
  let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, d = o.width / s.x, u = o.height / s.y;
7300
7307
  if (i) {
7301
7308
  const h = me(i), m = r && _e(r) ? me(r) : r;
7302
7309
  let f = h, g = Cr(f);
7303
7310
  for (; g && r && m !== f; ) {
7304
- const p = pt(g), b = g.getBoundingClientRect(), v = Pe(g), w = b.left + (g.clientLeft + parseFloat(v.paddingLeft)) * p.x, x = b.top + (g.clientTop + parseFloat(v.paddingTop)) * p.y;
7311
+ const p = mt(g), b = g.getBoundingClientRect(), v = Pe(g), w = b.left + (g.clientLeft + parseFloat(v.paddingLeft)) * p.x, x = b.top + (g.clientTop + parseFloat(v.paddingTop)) * p.y;
7305
7312
  l *= p.x, c *= p.y, d *= p.x, u *= p.y, l += w, c += x, f = me(g), g = Cr(f);
7306
7313
  }
7307
7314
  }
@@ -7314,7 +7321,7 @@ function rt(e, t, n, r) {
7314
7321
  }
7315
7322
  function Qr(e, t) {
7316
7323
  const n = Nn(e).scrollLeft;
7317
- return t ? t.left + n : rt(Fe(e)).left + n;
7324
+ return t ? t.left + n : ot(Fe(e)).left + n;
7318
7325
  }
7319
7326
  function Es(e, t, n) {
7320
7327
  n === void 0 && (n = !1);
@@ -7340,13 +7347,13 @@ function Cd(e) {
7340
7347
  let l = {
7341
7348
  scrollLeft: 0,
7342
7349
  scrollTop: 0
7343
- }, c = Le(1);
7344
- const d = Le(0), u = Ie(r);
7350
+ }, c = De(1);
7351
+ const d = De(0), u = Ie(r);
7345
7352
  if ((u || !u && !i) && ((kt(r) !== "body" || Wt(s)) && (l = Nn(r)), Ie(r))) {
7346
- const m = rt(r);
7347
- c = pt(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
7353
+ const m = ot(r);
7354
+ c = mt(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
7348
7355
  }
7349
- const h = s && !u && !i ? Es(s, l, !0) : Le(0);
7356
+ const h = s && !u && !i ? Es(s, l, !0) : De(0);
7350
7357
  return {
7351
7358
  width: n.width * c.x,
7352
7359
  height: n.height * c.y,
@@ -7384,7 +7391,7 @@ function Pd(e, t) {
7384
7391
  };
7385
7392
  }
7386
7393
  function Ad(e, t) {
7387
- const n = rt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ie(e) ? pt(e) : Le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
7394
+ const n = ot(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ie(e) ? mt(e) : De(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
7388
7395
  return {
7389
7396
  width: s,
7390
7397
  height: a,
@@ -7428,7 +7435,7 @@ function Td(e, t) {
7428
7435
  }
7429
7436
  return t.set(e, r), r;
7430
7437
  }
7431
- function Dd(e) {
7438
+ function Ld(e) {
7432
7439
  let {
7433
7440
  element: t,
7434
7441
  boundary: n,
@@ -7446,7 +7453,7 @@ function Dd(e) {
7446
7453
  y: l.top
7447
7454
  };
7448
7455
  }
7449
- function Ld(e) {
7456
+ function Dd(e) {
7450
7457
  const {
7451
7458
  width: t,
7452
7459
  height: n
@@ -7457,18 +7464,18 @@ function Ld(e) {
7457
7464
  };
7458
7465
  }
7459
7466
  function Md(e, t, n) {
7460
- const r = Ie(t), o = Fe(t), i = n === "fixed", s = rt(e, !0, i, t);
7467
+ const r = Ie(t), o = Fe(t), i = n === "fixed", s = ot(e, !0, i, t);
7461
7468
  let a = {
7462
7469
  scrollLeft: 0,
7463
7470
  scrollTop: 0
7464
7471
  };
7465
- const l = Le(0);
7472
+ const l = De(0);
7466
7473
  if (r || !r && !i)
7467
7474
  if ((kt(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
7468
- const h = rt(t, !0, i, t);
7475
+ const h = ot(t, !0, i, t);
7469
7476
  l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
7470
7477
  } else o && (l.x = Qr(o));
7471
- const c = o && !r && !i ? Es(o, a) : Le(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
7478
+ const c = o && !r && !i ? Es(o, a) : De(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
7472
7479
  return {
7473
7480
  x: d,
7474
7481
  y: u,
@@ -7523,12 +7530,12 @@ function Rd(e) {
7523
7530
  const Os = {
7524
7531
  convertOffsetParentRelativeRectToViewportRelativeRect: Cd,
7525
7532
  getDocumentElement: Fe,
7526
- getClippingRect: Dd,
7533
+ getClippingRect: Ld,
7527
7534
  getOffsetParent: Cs,
7528
7535
  getElementRects: Id,
7529
7536
  getClientRects: Od,
7530
- getDimensions: Ld,
7531
- getScale: pt,
7537
+ getDimensions: Dd,
7538
+ getScale: mt,
7532
7539
  isElement: _e,
7533
7540
  isRTL: Rd
7534
7541
  };
@@ -7604,10 +7611,10 @@ function Fd(e, t, n, r) {
7604
7611
  (w = m) == null || w.observe(t);
7605
7612
  })), n();
7606
7613
  }), c && !l && m.observe(c), m.observe(t));
7607
- let f, g = l ? rt(e) : null;
7614
+ let f, g = l ? ot(e) : null;
7608
7615
  l && p();
7609
7616
  function p() {
7610
- const b = rt(e);
7617
+ const b = ot(e);
7611
7618
  g && !_s(g, b) && n(), g = b, f = requestAnimationFrame(p);
7612
7619
  }
7613
7620
  return n(), () => {
@@ -7765,7 +7772,7 @@ function Yd(e) {
7765
7772
  });
7766
7773
  }
7767
7774
  }
7768
- D(() => {
7775
+ L(() => {
7769
7776
  const h = l(), m = n();
7770
7777
  if (!h || !m)
7771
7778
  return;
@@ -7774,7 +7781,7 @@ function Yd(e) {
7774
7781
  elementResize: typeof ResizeObserver == "function"
7775
7782
  });
7776
7783
  K(f);
7777
- }), D(() => {
7784
+ }), L(() => {
7778
7785
  const h = n(), m = t.contentRef();
7779
7786
  !h || !m || queueMicrotask(() => {
7780
7787
  h.style.zIndex = getComputedStyle(m).zIndex;
@@ -7830,29 +7837,29 @@ function Jd(e) {
7830
7837
  } = Hu({
7831
7838
  items: $,
7832
7839
  onItemsChange: _
7833
- }), L = os({
7840
+ }), D = os({
7834
7841
  open: () => i.open,
7835
7842
  defaultOpen: () => i.defaultOpen,
7836
7843
  onOpenChange: (U) => i.onOpenChange?.(U)
7837
- }), M = hu(() => t.forceMount() || L.isOpen()), te = Mu({
7844
+ }), M = hu(() => t.forceMount() || D.isOpen()), ne = Mu({
7838
7845
  selectionMode: "none",
7839
7846
  dataSource: $
7840
7847
  }), W = (U) => {
7841
- w(U), L.open();
7848
+ w(U), D.open();
7842
7849
  }, ce = (U = !1) => {
7843
- L.close(), U && r && r.close(!0);
7850
+ D.close(), U && r && r.close(!0);
7844
7851
  }, F = (U) => {
7845
- w(U), L.toggle();
7852
+ w(U), D.toggle();
7846
7853
  }, B = () => {
7847
7854
  const U = p();
7848
- U && (ue(U), te.selectionManager().setFocused(!0), te.selectionManager().setFocusedKey(void 0));
7855
+ U && (ue(U), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
7849
7856
  }, Z = (U) => {
7850
7857
  E((Un) => [...Un, U]);
7851
7858
  const Yt = r?.registerNestedMenu(U);
7852
7859
  return () => {
7853
7860
  E((Un) => yr(Un, U)), Yt?.();
7854
7861
  };
7855
- }, re = (U) => c === l?.side && Xd(U, l?.area), lt = (U) => {
7862
+ }, re = (U) => c === l?.side && Xd(U, l?.area), ct = (U) => {
7856
7863
  re(U) && U.preventDefault();
7857
7864
  }, Ee = (U) => {
7858
7865
  re(U) || B();
@@ -7860,9 +7867,9 @@ function Jd(e) {
7860
7867
  re(U) && U.preventDefault();
7861
7868
  };
7862
7869
  uu({
7863
- isDisabled: () => !(r == null && L.isOpen() && t.isModal()),
7870
+ isDisabled: () => !(r == null && D.isOpen() && t.isModal()),
7864
7871
  targets: () => [p(), ...k()].filter(Boolean)
7865
- }), D(() => {
7872
+ }), L(() => {
7866
7873
  const U = p();
7867
7874
  if (!U || !r)
7868
7875
  return;
@@ -7873,16 +7880,16 @@ function Jd(e) {
7873
7880
  });
7874
7881
  const aa = {
7875
7882
  dataset: C(() => ({
7876
- "data-expanded": L.isOpen() ? "" : void 0,
7877
- "data-closed": L.isOpen() ? void 0 : ""
7883
+ "data-expanded": D.isOpen() ? "" : void 0,
7884
+ "data-closed": D.isOpen() ? void 0 : ""
7878
7885
  })),
7879
- isOpen: L.isOpen,
7886
+ isOpen: D.isOpen,
7880
7887
  contentPresence: M,
7881
7888
  nestedMenus: k,
7882
7889
  currentPlacement: x,
7883
7890
  pointerGraceTimeoutId: () => a,
7884
7891
  autoFocus: v,
7885
- listState: () => te,
7892
+ listState: () => ne,
7886
7893
  parentMenuContext: () => r,
7887
7894
  triggerRef: f,
7888
7895
  contentRef: p,
@@ -7894,7 +7901,7 @@ function Jd(e) {
7894
7901
  close: ce,
7895
7902
  toggle: F,
7896
7903
  focusContent: B,
7897
- onItemEnter: lt,
7904
+ onItemEnter: ct,
7898
7905
  onItemLeave: Ee,
7899
7906
  onTriggerLeave: sa,
7900
7907
  setPointerDir: (U) => c = U,
@@ -7937,7 +7944,7 @@ function Qd(e) {
7937
7944
  disabled: i.disabled ?? !1
7938
7945
  })
7939
7946
  });
7940
- const b = Du({
7947
+ const b = Lu({
7941
7948
  key: f,
7942
7949
  selectionManager: m,
7943
7950
  shouldSelectOnPressUp: !0,
@@ -7981,7 +7988,7 @@ function Qd(e) {
7981
7988
  return y(Rn, T({
7982
7989
  as: "div",
7983
7990
  ref(_) {
7984
- var R = st((L) => t = L, i.ref);
7991
+ var R = at((D) => t = D, i.ref);
7985
7992
  typeof R == "function" && R(_);
7986
7993
  },
7987
7994
  get tabIndex() {
@@ -8027,12 +8034,12 @@ function Qd(e) {
8027
8034
  });
8028
8035
  }
8029
8036
  const ef = fe();
8030
- function Ds() {
8037
+ function Ls() {
8031
8038
  return ye(ef);
8032
8039
  }
8033
8040
  function tf(e) {
8034
8041
  let t;
8035
- const n = Ot(), r = Ct(), o = Ds(), i = $e({
8042
+ const n = Ot(), r = Ct(), o = Ls(), i = $e({
8036
8043
  id: n.generateId(`content-${Te()}`)
8037
8044
  }, e), [s, a] = j(i, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
8038
8045
  let l = 0;
@@ -8074,7 +8081,7 @@ function tf(e) {
8074
8081
  const b = p.target, v = l !== p.clientX;
8075
8082
  Ae(p.currentTarget, b) && v && (r.setPointerDir(p.clientX > l ? "right" : "left"), l = p.clientX);
8076
8083
  };
8077
- return D(() => K(r.registerContentId(s.id))), y(Q, {
8084
+ return L(() => K(r.registerContentId(s.id))), y(Q, {
8078
8085
  get when() {
8079
8086
  return r.contentPresence.isPresent();
8080
8087
  },
@@ -8083,7 +8090,7 @@ function tf(e) {
8083
8090
  get children() {
8084
8091
  return y(nd, T({
8085
8092
  ref(p) {
8086
- var b = st((v) => {
8093
+ var b = at((v) => {
8087
8094
  r.setContentRef(v), r.contentPresence.setRef(v), t = v;
8088
8095
  }, s.ref);
8089
8096
  typeof b == "function" && b(p);
@@ -8145,7 +8152,7 @@ function nf(e) {
8145
8152
  enabled: () => r.isOpen() && n.preventScroll()
8146
8153
  }), y(tf, T({
8147
8154
  ref(s) {
8148
- var a = st((l) => {
8155
+ var a = at((l) => {
8149
8156
  t = l;
8150
8157
  }, o.ref);
8151
8158
  typeof a == "function" && a(s);
@@ -8199,15 +8206,15 @@ function sf(e) {
8199
8206
  });
8200
8207
  }
8201
8208
  function af(e) {
8202
- const t = Ot(), n = Ct(), r = Ds(), o = $e({
8209
+ const t = Ot(), n = Ct(), r = Ls(), o = $e({
8203
8210
  id: t.generateId("trigger")
8204
8211
  }, e), [i, s] = j(o, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
8205
8212
  let a;
8206
- r !== void 0 && (a = t.value() ?? i.id, D(() => {
8213
+ r !== void 0 && (a = t.value() ?? i.id, L(() => {
8207
8214
  r.registerMenu(a, [n.contentRef(), ...n.nestedMenus()]);
8208
- }), D(() => {
8215
+ }), L(() => {
8209
8216
  r.value() === a ? (n.triggerRef()?.focus(), r.autoFocusMenu() && n.open(!0)) : n.close(!0);
8210
- }), D(() => {
8217
+ }), L(() => {
8211
8218
  n.isOpen() && r.setValue(a);
8212
8219
  }), K(() => {
8213
8220
  r.unregisterMenu(a);
@@ -8243,9 +8250,9 @@ function af(e) {
8243
8250
  }, m = (f) => {
8244
8251
  pe(f, i.onFocus), r !== void 0 && r.setValue(a);
8245
8252
  };
8246
- return D(() => K(n.registerTriggerId(i.id))), y(Nu, T({
8253
+ return L(() => K(n.registerTriggerId(i.id))), y(Nu, T({
8247
8254
  ref(f) {
8248
- var g = st(n.setTriggerRef, i.ref);
8255
+ var g = at(n.setTriggerRef, i.ref);
8249
8256
  typeof g == "function" && g(f);
8250
8257
  },
8251
8258
  get id() {
@@ -8400,7 +8407,7 @@ const dn = /* @__PURE__ */ Object.create(null);
8400
8407
  Object.keys(Re).forEach((e) => {
8401
8408
  dn[Re[e]] = e;
8402
8409
  });
8403
- const Or = { type: "error", data: "parser error" }, Ls = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ms = typeof ArrayBuffer == "function", Is = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, eo = ({ type: e, data: t }, n, r) => Ls && t instanceof Blob ? n ? r(t) : ei(t, r) : Ms && (t instanceof ArrayBuffer || Is(t)) ? n ? r(t) : ei(new Blob([t]), r) : r(Re[e] + (t || "")), ei = (e, t) => {
8410
+ const Or = { type: "error", data: "parser error" }, Ds = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Ms = typeof ArrayBuffer == "function", Is = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e && e.buffer instanceof ArrayBuffer, eo = ({ type: e, data: t }, n, r) => Ds && t instanceof Blob ? n ? r(t) : ei(t, r) : Ms && (t instanceof ArrayBuffer || Is(t)) ? n ? r(t) : ei(new Blob([t]), r) : r(Re[e] + (t || "")), ei = (e, t) => {
8404
8411
  const n = new FileReader();
8405
8412
  return n.onload = function() {
8406
8413
  const r = n.result.split(",")[1];
@@ -8412,7 +8419,7 @@ function ti(e) {
8412
8419
  }
8413
8420
  let tr;
8414
8421
  function xf(e, t) {
8415
- if (Ls && e.data instanceof Blob)
8422
+ if (Ds && e.data instanceof Blob)
8416
8423
  return e.data.arrayBuffer().then(ti).then(t);
8417
8424
  if (Ms && (e.data instanceof ArrayBuffer || Is(e.data)))
8418
8425
  return t(ti(e.data));
@@ -8553,24 +8560,24 @@ function Pf(e, t) {
8553
8560
  });
8554
8561
  }
8555
8562
  const Fs = 4;
8556
- function ee(e) {
8563
+ function te(e) {
8557
8564
  if (e) return Af(e);
8558
8565
  }
8559
8566
  function Af(e) {
8560
- for (var t in ee.prototype)
8561
- e[t] = ee.prototype[t];
8567
+ for (var t in te.prototype)
8568
+ e[t] = te.prototype[t];
8562
8569
  return e;
8563
8570
  }
8564
- ee.prototype.on = ee.prototype.addEventListener = function(e, t) {
8571
+ te.prototype.on = te.prototype.addEventListener = function(e, t) {
8565
8572
  return this._callbacks = this._callbacks || {}, (this._callbacks["$" + e] = this._callbacks["$" + e] || []).push(t), this;
8566
8573
  };
8567
- ee.prototype.once = function(e, t) {
8574
+ te.prototype.once = function(e, t) {
8568
8575
  function n() {
8569
8576
  this.off(e, n), t.apply(this, arguments);
8570
8577
  }
8571
8578
  return n.fn = t, this.on(e, n), this;
8572
8579
  };
8573
- ee.prototype.off = ee.prototype.removeListener = ee.prototype.removeAllListeners = ee.prototype.removeEventListener = function(e, t) {
8580
+ te.prototype.off = te.prototype.removeListener = te.prototype.removeAllListeners = te.prototype.removeEventListener = function(e, t) {
8574
8581
  if (this._callbacks = this._callbacks || {}, arguments.length == 0)
8575
8582
  return this._callbacks = {}, this;
8576
8583
  var n = this._callbacks["$" + e];
@@ -8584,7 +8591,7 @@ ee.prototype.off = ee.prototype.removeListener = ee.prototype.removeAllListeners
8584
8591
  }
8585
8592
  return n.length === 0 && delete this._callbacks["$" + e], this;
8586
8593
  };
8587
- ee.prototype.emit = function(e) {
8594
+ te.prototype.emit = function(e) {
8588
8595
  this._callbacks = this._callbacks || {};
8589
8596
  for (var t = new Array(arguments.length - 1), n = this._callbacks["$" + e], r = 1; r < arguments.length; r++)
8590
8597
  t[r - 1] = arguments[r];
@@ -8595,20 +8602,20 @@ ee.prototype.emit = function(e) {
8595
8602
  }
8596
8603
  return this;
8597
8604
  };
8598
- ee.prototype.emitReserved = ee.prototype.emit;
8599
- ee.prototype.listeners = function(e) {
8605
+ te.prototype.emitReserved = te.prototype.emit;
8606
+ te.prototype.listeners = function(e) {
8600
8607
  return this._callbacks = this._callbacks || {}, this._callbacks["$" + e] || [];
8601
8608
  };
8602
- ee.prototype.hasListeners = function(e) {
8609
+ te.prototype.hasListeners = function(e) {
8603
8610
  return !!this.listeners(e).length;
8604
8611
  };
8605
8612
  const Kn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (t) => Promise.resolve().then(t) : (t, n) => n(t, 0), we = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), Tf = "arraybuffer";
8606
8613
  function Ns(e, ...t) {
8607
8614
  return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
8608
8615
  }
8609
- const Df = we.setTimeout, Lf = we.clearTimeout;
8616
+ const Lf = we.setTimeout, Df = we.clearTimeout;
8610
8617
  function Bn(e, t) {
8611
- t.useNativeTimers ? (e.setTimeoutFn = Df.bind(we), e.clearTimeoutFn = Lf.bind(we)) : (e.setTimeoutFn = we.setTimeout.bind(we), e.clearTimeoutFn = we.clearTimeout.bind(we));
8618
+ t.useNativeTimers ? (e.setTimeoutFn = Lf.bind(we), e.clearTimeoutFn = Df.bind(we)) : (e.setTimeoutFn = we.setTimeout.bind(we), e.clearTimeoutFn = we.clearTimeout.bind(we));
8612
8619
  }
8613
8620
  const Mf = 1.33;
8614
8621
  function If(e) {
@@ -8642,7 +8649,7 @@ class Nf extends Error {
8642
8649
  super(t), this.description = n, this.context = r, this.type = "TransportError";
8643
8650
  }
8644
8651
  }
8645
- class no extends ee {
8652
+ class no extends te {
8646
8653
  /**
8647
8654
  * Transport abstract constructor.
8648
8655
  *
@@ -8882,7 +8889,7 @@ class Vf extends Kf {
8882
8889
  }), this.pollXhr = t;
8883
8890
  }
8884
8891
  }
8885
- class Me extends ee {
8892
+ class Me extends te {
8886
8893
  /**
8887
8894
  * Request constructor
8888
8895
  *
@@ -9178,7 +9185,7 @@ const Pr = typeof addEventListener == "function" && typeof removeEventListener =
9178
9185
  Pr && addEventListener("offline", () => {
9179
9186
  fn.forEach((e) => e());
9180
9187
  }, !1);
9181
- class Ge extends ee {
9188
+ class Ge extends te {
9182
9189
  /**
9183
9190
  * Socket constructor.
9184
9191
  *
@@ -9652,7 +9659,7 @@ class uh {
9652
9659
  function oi(e) {
9653
9660
  return Object.prototype.toString.call(e) === "[object Object]";
9654
9661
  }
9655
- class oo extends ee {
9662
+ class oo extends te {
9656
9663
  /**
9657
9664
  * Decoder constructor
9658
9665
  *
@@ -9813,7 +9820,7 @@ const hh = Object.freeze({
9813
9820
  newListener: 1,
9814
9821
  removeListener: 1
9815
9822
  });
9816
- class js extends ee {
9823
+ class js extends te {
9817
9824
  /**
9818
9825
  * `Socket` constructor.
9819
9826
  */
@@ -10428,7 +10435,7 @@ _t.prototype.setMax = function(e) {
10428
10435
  _t.prototype.setJitter = function(e) {
10429
10436
  this.jitter = e;
10430
10437
  };
10431
- class Dr extends ee {
10438
+ class Lr extends te {
10432
10439
  constructor(t, n) {
10433
10440
  var r;
10434
10441
  super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (n = t, t = void 0), n = n || {}, n.path = n.path || "/socket.io", this.opts = n, Bn(this, n), this.reconnection(n.reconnection !== !1), this.reconnectionAttempts(n.reconnectionAttempts || 1 / 0), this.reconnectionDelay(n.reconnectionDelay || 1e3), this.reconnectionDelayMax(n.reconnectionDelayMax || 5e3), this.randomizationFactor((r = n.randomizationFactor) !== null && r !== void 0 ? r : 0.5), this.backoff = new _t({
@@ -10671,10 +10678,10 @@ function gn(e, t) {
10671
10678
  typeof e == "object" && (t = e, e = void 0), t = t || {};
10672
10679
  const n = th(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s = It[o] && i in It[o].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || s;
10673
10680
  let l;
10674
- return a ? l = new Dr(r, t) : (It[o] || (It[o] = new Dr(r, t)), l = It[o]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
10681
+ return a ? l = new Lr(r, t) : (It[o] || (It[o] = new Lr(r, t)), l = It[o]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
10675
10682
  }
10676
10683
  Object.assign(gn, {
10677
- Manager: Dr,
10684
+ Manager: Lr,
10678
10685
  Socket: js,
10679
10686
  io: gn,
10680
10687
  connect: gn
@@ -10729,7 +10736,7 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
10729
10736
  });
10730
10737
  }, [yh, or] = P(!1), [bh, ii] = P(!1), Js = [], si = () => {
10731
10738
  Js.forEach((e) => e());
10732
- }, vh = (e) => Js.push(e), Lr = (e) => {
10739
+ }, vh = (e) => Js.push(e), Dr = (e) => {
10733
10740
  const t = yf(e);
10734
10741
  if (gh(t), t.type === "media") {
10735
10742
  setTimeout(si, 200);
@@ -10738,18 +10745,18 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
10738
10745
  si();
10739
10746
  }, wh = (e, t) => {
10740
10747
  const { chatWidget: n } = ie(), r = Ys();
10741
- e.trim() && (Lr({
10748
+ e.trim() && (Dr({
10742
10749
  text: e,
10743
10750
  type: "text",
10744
10751
  origin: "user",
10745
10752
  createdAt: (/* @__PURE__ */ new Date()).toString()
10746
- }), ne("onInput", e), et.on("message", (o) => {
10753
+ }), ee("onInput", e), et.on("message", (o) => {
10747
10754
  (o.contactId !== r.contactId || o.interactionId !== r.interactionId) && Xs({
10748
10755
  contactId: o.contactId,
10749
10756
  interactionId: o.interactionId
10750
10757
  });
10751
10758
  for (const i of o.messages)
10752
- Lr(i), ne("onAnswer", i);
10759
+ Dr(i), ee("onAnswer", i);
10753
10760
  or(!1), bf(o.debug);
10754
10761
  }), or(!0), vf(e, t, n()?._id).catch((o) => {
10755
10762
  console.error(o), or(!1);
@@ -10762,12 +10769,12 @@ const Hs = 1e3 * 60 * 60 * 24, [An, qs] = Gi(
10762
10769
  t.interactionId
10763
10770
  ).finally(() => {
10764
10771
  Xs({}), ii(!1), Sh();
10765
- }), ne("onReset");
10772
+ }), ee("onReset");
10766
10773
  }, Sh = () => {
10767
10774
  const { chatWidget: e } = ie();
10768
10775
  if (Ws().length === 0 && e()?.balloonMessage) {
10769
10776
  const n = e()?.balloonMessage;
10770
- n && Lr({
10777
+ n && Dr({
10771
10778
  text: n,
10772
10779
  type: "text",
10773
10780
  origin: "bot",
@@ -10797,7 +10804,7 @@ const kh = () => {
10797
10804
  get children() {
10798
10805
  return [y(gf, {
10799
10806
  get children() {
10800
- return y(De, {
10807
+ return y(Le, {
10801
10808
  variant: "ghost",
10802
10809
  size: "icon",
10803
10810
  class: "hover:bg-accent/10 hover:text-primary-foreground",
@@ -10818,7 +10825,7 @@ const kh = () => {
10818
10825
  size: 14
10819
10826
  }), (() => {
10820
10827
  var r = Eh();
10821
- return A(r, () => ht("restart")), r;
10828
+ return A(r, () => gt("restart")), r;
10822
10829
  })()];
10823
10830
  }
10824
10831
  });
@@ -10861,13 +10868,13 @@ const io = () => {
10861
10868
  document.fullscreenElement || n(!1);
10862
10869
  });
10863
10870
  const o = () => {
10864
- e()?.mode === "popup" && ne("close");
10871
+ e()?.mode === "popup" && ee("close");
10865
10872
  };
10866
10873
  return se("toggleFullscreen", () => {
10867
10874
  r();
10868
10875
  }), (() => {
10869
10876
  var i = Ph(), s = i.firstChild;
10870
- return A(i, y(fc, {}), s), A(s, y(De, {
10877
+ return A(i, y(fc, {}), s), A(s, y(Le, {
10871
10878
  size: "icon",
10872
10879
  variant: "ghost",
10873
10880
  class: "hover:bg-accent/10 hover:text-primary-foreground",
@@ -10901,7 +10908,7 @@ const io = () => {
10901
10908
  return e()?.mode === "popup";
10902
10909
  },
10903
10910
  get children() {
10904
- return y(De, {
10911
+ return y(Le, {
10905
10912
  size: "icon",
10906
10913
  variant: "ghost",
10907
10914
  class: "hover:bg-accent/10 hover:text-primary-foreground",
@@ -10922,13 +10929,13 @@ const Zs = ({
10922
10929
  anchor: t = "end"
10923
10930
  }) => (() => {
10924
10931
  var n = Ah();
10925
- return bt(n, `${t === "end" ? "self-end" : "self-start"} pt-1 text-[10px] italic font-light text-slate-600`), A(n, () => new Date(e).toLocaleString([], {
10932
+ return vt(n, `${t === "end" ? "self-end" : "self-start"} pt-1 text-[10px] italic font-light text-slate-600`), A(n, () => new Date(e).toLocaleString([], {
10926
10933
  hour: "2-digit",
10927
10934
  minute: "2-digit"
10928
10935
  })), n;
10929
10936
  })();
10930
10937
  var Th = /* @__PURE__ */ I('<div class="place-self-start py-1 flex flex-col"><div class="bg-white shadow-md py-2 px-4 rounded-r-xl rounded-tl-xl">');
10931
- const Dh = ({
10938
+ const Lh = ({
10932
10939
  children: e,
10933
10940
  createdAt: t
10934
10941
  }) => (() => {
@@ -10938,13 +10945,13 @@ const Dh = ({
10938
10945
  anchor: "start"
10939
10946
  }), null), n;
10940
10947
  })();
10941
- var Lh = /* @__PURE__ */ I("<span>");
10948
+ var Dh = /* @__PURE__ */ I("<span>");
10942
10949
  const Pt = (e) => {
10943
10950
  const [, t] = j(e, ["class", "children"]);
10944
10951
  let n = e.children?.toString();
10945
10952
  return n && (n = za(Va(n))), (() => {
10946
- var r = Lh();
10947
- return r.innerHTML = n, ot(r, T({
10953
+ var r = Dh();
10954
+ return r.innerHTML = n, it(r, T({
10948
10955
  get class() {
10949
10956
  return Ze("whitespace-pre-line", e.class);
10950
10957
  }
@@ -10970,9 +10977,9 @@ const Ih = ({
10970
10977
  }
10971
10978
  }), l);
10972
10979
  var d = n;
10973
- return typeof d == "function" ? Br(d, c) : n = c, A(c, y(yt, {
10980
+ return typeof d == "function" ? Br(d, c) : n = c, A(c, y(bt, {
10974
10981
  each: e,
10975
- children: (u) => y(De, {
10982
+ children: (u) => y(Le, {
10976
10983
  variant: "outline",
10977
10984
  get disabled() {
10978
10985
  return o();
@@ -10983,7 +10990,7 @@ const Ih = ({
10983
10990
  return u.label?.trim();
10984
10991
  }
10985
10992
  })
10986
- })), oe(() => bt(l, `flex items-center justify-center max-w-80 mx-[-1rem] ${o() && "opacity-50"}`)), a;
10993
+ })), oe(() => vt(l, `flex items-center justify-center max-w-80 mx-[-1rem] ${o() && "opacity-50"}`)), a;
10987
10994
  })();
10988
10995
  };
10989
10996
  var Rh = /* @__PURE__ */ I('<div class="flex flex-col"><span>'), $h = /* @__PURE__ */ I("<a target=_blank><img><span></span><span>");
@@ -10992,7 +10999,7 @@ const Fh = ({
10992
10999
  text: t
10993
11000
  }) => (() => {
10994
11001
  var n = Rh(), r = n.firstChild;
10995
- return A(r, () => t?.trim()), A(n, y(yt, {
11002
+ return A(r, () => t?.trim()), A(n, y(bt, {
10996
11003
  each: e,
10997
11004
  children: (o) => (() => {
10998
11005
  var i = $h(), s = i.firstChild, a = s.nextSibling, l = a.nextSibling;
@@ -11044,7 +11051,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11044
11051
  if (t)
11045
11052
  return ye(t);
11046
11053
  }, sn = /* @__PURE__ */ new Map(), jh = (e) => {
11047
- D(() => {
11054
+ L(() => {
11048
11055
  const t = G(e.style) ?? {}, n = G(e.properties) ?? [], r = {};
11049
11056
  for (const i in t)
11050
11057
  r[i] = e.element.style[i];
@@ -11076,7 +11083,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11076
11083
  const t = T({
11077
11084
  enabled: !0
11078
11085
  }, e);
11079
- D(() => {
11086
+ L(() => {
11080
11087
  G(t.enabled) && (document.addEventListener("keydown", n), K(() => {
11081
11088
  document.removeEventListener("keydown", n);
11082
11089
  }));
@@ -11088,7 +11095,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11088
11095
  const t = T({
11089
11096
  enabled: !0
11090
11097
  }, e);
11091
- D(() => {
11098
+ L(() => {
11092
11099
  const {
11093
11100
  body: n
11094
11101
  } = document;
@@ -11105,7 +11112,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11105
11112
  enabled: !0,
11106
11113
  strategy: "pointerup"
11107
11114
  }, e);
11108
- D(() => {
11115
+ L(() => {
11109
11116
  if (!G(t.enabled))
11110
11117
  return;
11111
11118
  const r = G(t.strategy);
@@ -11170,7 +11177,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11170
11177
  dismissOnOutsidePointerStrategy: "pointerup",
11171
11178
  noOutsidePointerEvents: !0
11172
11179
  }, e), [n, r] = j(t, ["enabled", "children", "dismissOnEscapeKeyDown", "dismissOnOutsidePointer", "dismissOnOutsidePointerStrategy", "dismissOnOutsidePointerIgnore", "noOutsidePointerEvents", "onDismiss"]), o = ye(Ir), i = Te();
11173
- D(() => {
11180
+ L(() => {
11174
11181
  n.enabled ? o.onLayerShow(i) : o.onLayerDismiss(i);
11175
11182
  });
11176
11183
  const s = () => o.layers()[o.layers().length - 1] === i;
@@ -11196,7 +11203,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11196
11203
  return q(() => l());
11197
11204
  }, tg = eg, ng = () => {
11198
11205
  const [e, t] = P(!1);
11199
- return D(() => t(!0)), e;
11206
+ return L(() => t(!0)), e;
11200
11207
  }, rg = ng, og = (e, t) => (e && (Gt(e) ? e(t) : e[0](e[1], t)), t.defaultPrevented), ao = (...e) => e.some((t) => !!t()), ig = (e) => (...t) => {
11201
11208
  for (const n of e) n && n(...t);
11202
11209
  }, Vn = (...e) => ig(e), ae = (e) => e ? "" : void 0, sg = "div", ag = (e) => {
@@ -11256,7 +11263,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11256
11263
  l(J(t.element)), (document.activeElement === null || document.activeElement === document.body) && c(J(t.element));
11257
11264
  });
11258
11265
  };
11259
- D(() => {
11266
+ L(() => {
11260
11267
  const f = J(t.element);
11261
11268
  if (f && J(t.enabled)) {
11262
11269
  s = document.activeElement, q(() => {
@@ -11272,17 +11279,17 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11272
11279
  J(t.observeChanges) && g.disconnect(), r(null), m(f);
11273
11280
  });
11274
11281
  }
11275
- }), D(() => {
11282
+ }), L(() => {
11276
11283
  const f = n();
11277
11284
  f === null || f.length !== 0 || (document.addEventListener("keydown", h), K(() => {
11278
11285
  document.removeEventListener("keydown", h);
11279
11286
  }));
11280
- }), D(() => {
11287
+ }), L(() => {
11281
11288
  const f = o();
11282
11289
  f && (f.addEventListener("keydown", d), K(() => {
11283
11290
  f.removeEventListener("keydown", d);
11284
11291
  }));
11285
- }), D(() => {
11292
+ }), L(() => {
11286
11293
  const f = i();
11287
11294
  f && (f.addEventListener("keydown", u), K(() => {
11288
11295
  f.removeEventListener("keydown", u);
@@ -11327,14 +11334,14 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11327
11334
  return getComputedStyle(s);
11328
11335
  }), n = () => t()?.animationName ?? "none", [r, o] = P(J(e.show) ? "present" : "hidden");
11329
11336
  let i = "none";
11330
- return D((s) => {
11337
+ return L((s) => {
11331
11338
  const a = J(e.show);
11332
11339
  return q(() => {
11333
11340
  if (s === a) return a;
11334
11341
  const l = i, c = n();
11335
11342
  a ? o("present") : c === "none" || t()?.display === "none" ? o("hidden") : o(s === !0 && l !== c ? "hiding" : "hidden");
11336
11343
  }), a;
11337
- }), D(() => {
11344
+ }), L(() => {
11338
11345
  const s = J(e.element);
11339
11346
  if (!s) return;
11340
11347
  const a = (c) => {
@@ -11747,7 +11754,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11747
11754
  }
11748
11755
  });
11749
11756
  });
11750
- }, Dg = Tg, Lg = "button", Mg = (e) => {
11757
+ }, Lg = Tg, Dg = "button", Mg = (e) => {
11751
11758
  const [t, n] = j(e, ["as", "contextId", "ref", "onClick", "data-corvu-dialog-trigger"]), r = C(() => At(t.contextId));
11752
11759
  return y(fg, T({
11753
11760
  ref(i) {
@@ -11755,7 +11762,7 @@ var Mr = Uh, pn = /* @__PURE__ */ new Map(), zn = (e, t) => {
11755
11762
  typeof s == "function" && s(i);
11756
11763
  },
11757
11764
  get as() {
11758
- return t.as ?? Lg;
11765
+ return t.as ?? Dg;
11759
11766
  },
11760
11767
  onClick: (i) => {
11761
11768
  !og(t.onClick, i) && r().setOpen((s) => !s);
@@ -11784,7 +11791,7 @@ function Rg(e) {
11784
11791
  dimension: "both"
11785
11792
  }, e), [n, r] = P(!1), [o, i] = P(null);
11786
11793
  let s = null;
11787
- D(() => {
11794
+ L(() => {
11788
11795
  const c = an(t.element), d = an(t.enabled);
11789
11796
  if (!c || !d) return;
11790
11797
  const u = new ResizeObserver(a);
@@ -11960,7 +11967,7 @@ var Bg = (e, t) => {
11960
11967
  if (F)
11961
11968
  return getComputedStyle(F);
11962
11969
  }), [b, v] = P(!1);
11963
- D(() => {
11970
+ L(() => {
11964
11971
  const F = o();
11965
11972
  q(() => {
11966
11973
  b() !== F && (F ? (v(!0), ai(() => {
@@ -11979,7 +11986,7 @@ var Bg = (e, t) => {
11979
11986
  v(!1), g(null);
11980
11987
  });
11981
11988
  }, [x, O] = P(0);
11982
- D(() => {
11989
+ L(() => {
11983
11990
  const F = l()?.contentRef();
11984
11991
  if (!F) return;
11985
11992
  E(F);
@@ -12005,7 +12012,7 @@ var Bg = (e, t) => {
12005
12012
  O(F.offsetWidth);
12006
12013
  break;
12007
12014
  }
12008
- }, $ = C(() => oa(s(), x())), [_, R] = gi(() => $().offset), L = C(() => x() ? (x() - _()) / x() : 0), M = {
12015
+ }, $ = C(() => oa(s(), x())), [_, R] = gi(() => $().offset), D = C(() => x() ? (x() - _()) / x() : 0), M = {
12009
12016
  get snapPoints() {
12010
12017
  return n.snapPoints;
12011
12018
  },
@@ -12032,7 +12039,7 @@ var Bg = (e, t) => {
12032
12039
  return f();
12033
12040
  },
12034
12041
  get openPercentage() {
12035
- return L();
12042
+ return D();
12036
12043
  },
12037
12044
  get translate() {
12038
12045
  return _();
@@ -12049,9 +12056,9 @@ var Bg = (e, t) => {
12049
12056
  get transitionResize() {
12050
12057
  return n.transitionResize;
12051
12058
  }
12052
- }, te = Qs(() => n.children), W = (F) => {
12059
+ }, ne = Qs(() => n.children), W = (F) => {
12053
12060
  c(At(n.contextId));
12054
- const B = te()();
12061
+ const B = ne()();
12055
12062
  if (Gt(B)) {
12056
12063
  const Z = T(F, M);
12057
12064
  return B(Z);
@@ -12071,7 +12078,7 @@ var Bg = (e, t) => {
12071
12078
  isDragging: h,
12072
12079
  isTransitioning: () => f() !== null,
12073
12080
  transitionState: f,
12074
- openPercentage: L,
12081
+ openPercentage: D,
12075
12082
  translate: _,
12076
12083
  velocityCacheReset: () => n.velocityCacheReset,
12077
12084
  allowSkippingSnapPoints: () => n.allowSkippingSnapPoints,
@@ -12091,7 +12098,7 @@ var Bg = (e, t) => {
12091
12098
  isDragging: h,
12092
12099
  isTransitioning: () => f() !== null,
12093
12100
  transitionState: f,
12094
- openPercentage: L,
12101
+ openPercentage: D,
12095
12102
  translate: _,
12096
12103
  velocityCacheReset: () => n.velocityCacheReset,
12097
12104
  allowSkippingSnapPoints: () => n.allowSkippingSnapPoints,
@@ -12110,7 +12117,7 @@ var Bg = (e, t) => {
12110
12117
  };
12111
12118
  },
12112
12119
  get children() {
12113
- return y(Dg, T({
12120
+ return y(Lg, T({
12114
12121
  get open() {
12115
12122
  return b();
12116
12123
  },
@@ -12160,7 +12167,7 @@ var Bg = (e, t) => {
12160
12167
  return `${w}px`;
12161
12168
  }
12162
12169
  });
12163
- D(() => {
12170
+ L(() => {
12164
12171
  c().open() && (document.addEventListener("pointermove", g), document.addEventListener("touchmove", p), document.addEventListener("pointerup", v), document.addEventListener("touchend", v), K(() => {
12165
12172
  document.removeEventListener("pointermove", g), document.removeEventListener("touchmove", p), document.removeEventListener("pointerup", v), document.removeEventListener("touchend", v);
12166
12173
  }));
@@ -12180,10 +12187,10 @@ var Bg = (e, t) => {
12180
12187
  return;
12181
12188
  }
12182
12189
  if (l().handleScrollableElements()) {
12183
- const _ = [x, O].map((ce, F) => i[F] - ce), R = Math.abs(_[0]) > Math.abs(_[1]) ? "x" : "y", L = R === "x" ? _[0] : _[1];
12184
- if (Math.abs(L) < 0.3) return;
12185
- const M = c().contentRef(), [te, W] = Vg(w, R, M);
12186
- if (L > 0 && Math.abs(te) > 1 || L < 0 && Math.abs(W) > 0) {
12190
+ const _ = [x, O].map((ce, F) => i[F] - ce), R = Math.abs(_[0]) > Math.abs(_[1]) ? "x" : "y", D = R === "x" ? _[0] : _[1];
12191
+ if (Math.abs(D) < 0.3) return;
12192
+ const M = c().contentRef(), [ne, W] = Vg(w, R, M);
12193
+ if (D > 0 && Math.abs(ne) > 1 || D < 0 && Math.abs(W) > 0) {
12187
12194
  v();
12188
12195
  return;
12189
12196
  }
@@ -12354,29 +12361,29 @@ const hp = ({
12354
12361
  onOutsidePointer: u,
12355
12362
  get children() {
12356
12363
  return [y(op, {
12357
- as: De,
12364
+ as: Le,
12358
12365
  variant: "outline",
12359
12366
  class: "w-full text-nowrap",
12360
12367
  get children() {
12361
- return n?.trim() ?? ht("selectOption");
12368
+ return n?.trim() ?? gt("selectOption");
12362
12369
  }
12363
12370
  }), y(ap, {
12364
12371
  class: "pb-2 px-2 flex flex-col items-center justify-center",
12365
12372
  get children() {
12366
12373
  return [(() => {
12367
12374
  var f = lp();
12368
- return A(f, () => n?.trim() ?? ht("selectOption")), f;
12375
+ return A(f, () => n?.trim() ?? gt("selectOption")), f;
12369
12376
  })(), (() => {
12370
12377
  var f = cp();
12371
- return A(f, y(yt, {
12378
+ return A(f, y(bt, {
12372
12379
  each: e,
12373
12380
  children: (g) => (() => {
12374
12381
  var p = dp(), b = p.firstChild;
12375
- return A(b, () => g.label?.trim() ?? ""), A(p, y(yt, {
12382
+ return A(b, () => g.label?.trim() ?? ""), A(p, y(bt, {
12376
12383
  get each() {
12377
12384
  return g.items;
12378
12385
  },
12379
- children: (v) => y(De, {
12386
+ children: (v) => y(Le, {
12380
12387
  variant: "outline",
12381
12388
  get disabled() {
12382
12389
  return o();
@@ -12409,20 +12416,20 @@ const hp = ({
12409
12416
  }), null), p;
12410
12417
  })()
12411
12418
  })), f;
12412
- })(), y(De, {
12419
+ })(), y(Le, {
12413
12420
  get disabled() {
12414
12421
  return o() || !l();
12415
12422
  },
12416
12423
  onClick: () => d(l().label, l().value),
12417
12424
  class: "w-11/12 mt-4 hover:bg-primary shadow-sm hover:shadow-primary transition-shadow",
12418
12425
  get children() {
12419
- return ht("send");
12426
+ return gt("send");
12420
12427
  }
12421
12428
  })];
12422
12429
  }
12423
12430
  })];
12424
12431
  }
12425
- })), oe(() => bt(m, o() ? "opacity-50" : "")), h;
12432
+ })), oe(() => vt(m, o() ? "opacity-50" : "")), h;
12426
12433
  })();
12427
12434
  };
12428
12435
  var gp = /* @__PURE__ */ I("<audio controls preload=auto class=h-8><source type=audio/mpeg><source type=audio/ogg>Your browser does not support the audio element.");
@@ -12487,7 +12494,7 @@ const ia = (e) => e.type === "image" ? y(vp, e) : e.type === "audio" ? y(pp, e)
12487
12494
  }
12488
12495
  });
12489
12496
  var Ep = /* @__PURE__ */ I("<div>Unknown bot message type");
12490
- const kp = (e) => y(Dh, {
12497
+ const kp = (e) => y(Lh, {
12491
12498
  get createdAt() {
12492
12499
  return e.createdAt;
12493
12500
  },
@@ -12532,15 +12539,15 @@ const Tp = (e) => y(Pp, {
12532
12539
  }) : e.type === "media" ? y(ia, T(() => e.media)) : Ap();
12533
12540
  }
12534
12541
  });
12535
- var Dp = /* @__PURE__ */ I("<div>Unknown message origin");
12536
- const Lp = (e) => e.origin === "bot" ? y(kp, e) : e.origin === "user" ? y(Tp, e) : e.origin === "service" ? y(Op, e) : Dp();
12542
+ var Lp = /* @__PURE__ */ I("<div>Unknown message origin");
12543
+ const Dp = (e) => e.origin === "bot" ? y(kp, e) : e.origin === "user" ? y(Tp, e) : e.origin === "service" ? y(Op, e) : Lp();
12537
12544
  function Mp(e) {
12538
12545
  return Se({
12539
12546
  a: { viewBox: "0 0 512 512" },
12540
12547
  c: '<path d="m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34Z"/>'
12541
12548
  }, e);
12542
12549
  }
12543
- function mt(e) {
12550
+ function yt(e) {
12544
12551
  return Se({
12545
12552
  a: { viewBox: "0 0 512 512" },
12546
12553
  c: '<path d="M256 464c-114.69 0-208-93.31-208-208S141.31 48 256 48s208 93.31 208 208-93.31 208-208 208Z"/>'
@@ -12549,11 +12556,11 @@ function mt(e) {
12549
12556
  var Ip = /* @__PURE__ */ I('<div class="place-self-start py-1"><div class="animate-pulse bg-white flex space-x-1 shadow-md py-2 px-4 rounded-r-xl rounded-tl-xl text-slate-400">');
12550
12557
  const Rp = () => (() => {
12551
12558
  var e = Ip(), t = e.firstChild;
12552
- return A(t, y(mt, {
12559
+ return A(t, y(yt, {
12553
12560
  class: "size-2 animate-bounce"
12554
- }), null), A(t, y(mt, {
12561
+ }), null), A(t, y(yt, {
12555
12562
  class: "size-2 animate-bounce delay-150"
12556
- }), null), A(t, y(mt, {
12563
+ }), null), A(t, y(yt, {
12557
12564
  class: "size-2 animate-bounce delay-300"
12558
12565
  }), null), e;
12559
12566
  })();
@@ -12574,21 +12581,21 @@ const co = () => {
12574
12581
  };
12575
12582
  return se("reset", () => {
12576
12583
  o();
12577
- }), Dn(() => {
12584
+ }), Ln(() => {
12578
12585
  s(200);
12579
12586
  }), n(s), i(() => s(200)), (() => {
12580
12587
  var a = $p(), l = e;
12581
- return typeof l == "function" ? Br(l, a) : e = a, A(a, y(yt, {
12588
+ return typeof l == "function" ? Br(l, a) : e = a, A(a, y(bt, {
12582
12589
  get each() {
12583
12590
  return t();
12584
12591
  },
12585
12592
  get fallback() {
12586
12593
  return (() => {
12587
12594
  var c = Fp();
12588
- return A(c, () => ht("emptyMessages")), c;
12595
+ return A(c, () => gt("emptyMessages")), c;
12589
12596
  })();
12590
12597
  },
12591
- children: (c) => y(Lp, c)
12598
+ children: (c) => y(Dp, c)
12592
12599
  }), null), A(a, y(Q, {
12593
12600
  get when() {
12594
12601
  return r();
@@ -12604,7 +12611,7 @@ const Kp = (e) => {
12604
12611
  const [, t] = j(e, ["class"]);
12605
12612
  return (() => {
12606
12613
  var n = Np();
12607
- return ot(n, T({
12614
+ return it(n, T({
12608
12615
  get class() {
12609
12616
  return Ze("flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", e.class);
12610
12617
  }
@@ -12614,7 +12621,7 @@ const Kp = (e) => {
12614
12621
  var Bp = /* @__PURE__ */ I('<svg viewBox="0 0 72 72"fill=none xmlns=http://www.w3.org/2000/svg><path d="M50.3241 0H21.6759C9.69907 0 0 9.68892 0 21.6519V50.3481C0 62.3111 9.69907 72 21.6759 72H67.9815C70.2546 72 72 70.1845 72 67.9105V21.6519C72 9.68892 62.3009 0 50.3241 0Z"fill=#212431></path><path d="M28.9868 56.1046H24.7249C21.9596 56.1046 19.7217 53.8671 19.7217 51.1129V45.9126C19.7217 44.244 18.3676 42.8929 16.6952 42.8929H13.6924C11.8108 42.8929 10.2857 41.3712 10.2857 39.494V37.0622C10.2857 35.185 11.8108 33.6633 13.6924 33.6633H25.3758C27.3713 33.6633 28.9868 35.275 28.9868 37.2613V56.1046Z"fill=white></path><path d="M61.7142 26.3227C61.7142 28.1782 60.2059 29.6992 58.3661 29.6992H46.2955V56.1042H37.629C34.9627 56.1042 32.8054 53.9238 32.8054 51.2395V36.1839C32.8054 32.6002 29.9243 29.6992 26.3755 29.6992H20.1791C18.3393 29.6992 16.8311 28.1782 16.8311 26.3227V19.2729C16.8311 17.408 18.33 15.8964 20.1791 15.8964H58.3661C60.2153 15.8964 61.7142 17.408 61.7142 19.2729V26.3227Z"fill=white>');
12615
12622
  const zp = (e) => (() => {
12616
12623
  var t = Bp();
12617
- return ot(t, e, !0, !0), t;
12624
+ return it(t, e, !0, !0), t;
12618
12625
  })();
12619
12626
  var Vp = /* @__PURE__ */ I('<div class="absolute flex items-center justify-center left-1/2 transform -translate-x-1/2 bottom-0 pb-1"><span class="font-semibold text-xs text-gray-600 ml-1">SmartTalks.ai');
12620
12627
  const Up = () => (() => {
@@ -12638,7 +12645,7 @@ const uo = () => {
12638
12645
  var i = jp();
12639
12646
  return A(i, y(Kp, {
12640
12647
  get placeholder() {
12641
- return ht("inputPlaceholder");
12648
+ return gt("inputPlaceholder");
12642
12649
  },
12643
12650
  get value() {
12644
12651
  return t();
@@ -12648,7 +12655,7 @@ const uo = () => {
12648
12655
  class: "focus-visible:ring-primary h-10",
12649
12656
  style: "resize: none;",
12650
12657
  autofocus: !0
12651
- }), null), A(i, y(De, {
12658
+ }), null), A(i, y(Le, {
12652
12659
  variant: "outline",
12653
12660
  class: "p-2",
12654
12661
  "aria-label": "Send",
@@ -12704,7 +12711,7 @@ const Jp = ({
12704
12711
  return n();
12705
12712
  },
12706
12713
  get fallback() {
12707
- return y(De, {
12714
+ return y(Le, {
12708
12715
  onclick: r,
12709
12716
  class: "rounded-full py-6 px-0 hover:shadow-primary shadow-md border border-primary transition-shadow duration-300",
12710
12717
  "aria-label": "Open",
@@ -12723,11 +12730,11 @@ const Jp = ({
12723
12730
  get fallback() {
12724
12731
  return (() => {
12725
12732
  var m = Xp();
12726
- return A(m, y(mt, {
12733
+ return A(m, y(yt, {
12727
12734
  class: "size-2 animate-bounce"
12728
- }), null), A(m, y(mt, {
12735
+ }), null), A(m, y(yt, {
12729
12736
  class: "size-2 animate-bounce delay-150"
12730
- }), null), A(m, y(mt, {
12737
+ }), null), A(m, y(yt, {
12731
12738
  class: "size-2 animate-bounce delay-300"
12732
12739
  }), null), m;
12733
12740
  })();
@@ -12735,14 +12742,14 @@ const Jp = ({
12735
12742
  get children() {
12736
12743
  return s()?.balloonMessage;
12737
12744
  }
12738
- })), oe(() => bt(h, "absolute -top-2 bg-primary text-primary-foreground px-1 py-0.5 pointer-events-none rounded truncate" + (s()?.style.position === "left" ? " left-9" : " right-9"))), h;
12745
+ })), oe(() => vt(h, "absolute -top-2 bg-primary text-primary-foreground px-1 py-0.5 pointer-events-none rounded truncate" + (s()?.style.position === "left" ? " left-9" : " right-9"))), h;
12739
12746
  }
12740
12747
  })];
12741
12748
  }
12742
12749
  });
12743
12750
  },
12744
12751
  get children() {
12745
- return y(De, {
12752
+ return y(Le, {
12746
12753
  onclick: r,
12747
12754
  class: "rounded-full py-6 px-2 hover:bg-primary hover:shadow-primary shadow-md transition-shadow duration-300",
12748
12755
  "aria-label": "Close",
@@ -12756,7 +12763,7 @@ const Jp = ({
12756
12763
  }
12757
12764
  }), null), oe((h) => {
12758
12765
  var m = "max-h-full max-w-full md:max-h-[90%] md:max-w-[90%] fixed bottom-5 flex flex-col space-y-2" + (s()?.style.position === "left" ? " items-start" : " items-end"), f = d();
12759
- return m !== h.e && bt(u, h.e = m), h.t = Mn(u, f, h.t), h;
12766
+ return m !== h.e && vt(u, h.e = m), h.t = Mn(u, f, h.t), h;
12760
12767
  }, {
12761
12768
  e: void 0,
12762
12769
  t: void 0
@@ -12786,13 +12793,13 @@ const tm = ({
12786
12793
  return t()?.fullscreen ? (s.height = "100%", s["max-height"] = "100%", s.width = "100%", s["max-width"] = "100%", s.bottom = 0, s.left = 0) : t()?.style.position && (s[t()?.style.position || "right"] = `${o()}rem`), s;
12787
12794
  };
12788
12795
  return se("open", () => {
12789
- r(!0), ne("onOpen");
12796
+ r(!0), ee("onOpen");
12790
12797
  }), se("close", () => {
12791
- r(!1), ne("onClose");
12798
+ r(!1), ee("onClose");
12792
12799
  }), se("toggle", () => {
12793
- r(!n()), ne("onToggle");
12800
+ r(!n()), ee("onToggle");
12794
12801
  }), setTimeout(() => {
12795
- r(!0), ne("onOpen");
12802
+ r(!0), ee("onOpen");
12796
12803
  }, (t()?.openDelay || 0) * 1e3), y(Q, {
12797
12804
  get when() {
12798
12805
  return n();