@smarttalks.ai/widget 0.9.8 → 0.9.9

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 xa(e, ...t) {
230
230
  const X = (e) => {
231
231
  const t = (n) => n[e] || [];
232
232
  return t.isThemeGetter = !0, t;
233
- }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, Sa = /^\d+\/\d+$/, Ea = /* @__PURE__ */ new Set(["px", "full", "screen"]), ka = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ca = /\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$/, Oa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _a = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => gt(e) || Ea.has(e) || Sa.test(e), We = (e) => vt(e, "length", Fa), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Aa = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), Ge = (e) => ka.test(e), Ta = /* @__PURE__ */ new Set(["length", "size", "percentage"]), La = (e) => vt(e, Ta, Ei), Ma = (e) => vt(e, "position", Ei), Da = /* @__PURE__ */ new Set(["image", "url"]), Ia = (e) => vt(e, Da, Na), Ra = (e) => vt(e, "", $a), Lt = () => !0, vt = (e, t, n) => {
233
+ }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, Sa = /^\d+\/\d+$/, ka = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ca = /\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$/, Oa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _a = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => gt(e) || ka.has(e) || Sa.test(e), We = (e) => vt(e, "length", Fa), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Aa = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), Ge = (e) => Ea.test(e), Ta = /* @__PURE__ */ new Set(["length", "size", "percentage"]), La = (e) => vt(e, Ta, ki), Ma = (e) => vt(e, "position", ki), Da = /* @__PURE__ */ new Set(["image", "url"]), Ia = (e) => vt(e, Da, Na), Ra = (e) => vt(e, "", $a), Lt = () => !0, vt = (e, t, n) => {
234
234
  const r = Si.exec(e);
235
235
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
236
236
  }, Fa = (e) => (
@@ -238,8 +238,8 @@ const X = (e) => {
238
238
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
239
239
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
240
240
  Ca.test(e) && !Oa.test(e)
241
- ), Ei = () => !1, $a = (e) => _a.test(e), Na = (e) => Pa.test(e), Ka = () => {
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"), f = X("gap"), g = X("gradientColorStops"), h = X("gradientColorStopPositions"), p = X("inset"), m = X("margin"), b = X("opacity"), w = X("padding"), v = X("saturate"), x = X("scale"), _ = X("sepia"), k = X("skew"), E = X("space"), F = X("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", N, t], D = () => [N, t], ne = () => ["", Ke, We], W = () => ["auto", gt, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", N], ut = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Ee = () => [gt, N];
241
+ ), ki = () => !1, $a = (e) => _a.test(e), Na = (e) => Pa.test(e), Ka = () => {
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"), f = X("gap"), g = X("gradientColorStops"), h = X("gradientColorStopPositions"), p = X("inset"), m = X("margin"), b = X("opacity"), w = X("padding"), v = X("saturate"), x = X("scale"), _ = X("sepia"), E = X("skew"), k = X("space"), F = X("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", N, t], D = () => [N, t], ne = () => ["", Ke, We], W = () => ["auto", gt, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", N], ut = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ke = () => [gt, N];
243
243
  return {
244
244
  cacheSize: 500,
245
245
  separator: ":",
@@ -247,26 +247,26 @@ const X = (e) => {
247
247
  colors: [Lt],
248
248
  spacing: [Ke, We],
249
249
  blur: ["none", "", Ge, N],
250
- brightness: Ee(),
250
+ brightness: ke(),
251
251
  borderColor: [e],
252
252
  borderRadius: ["none", "", "full", Ge, N],
253
253
  borderSpacing: D(),
254
254
  borderWidth: ne(),
255
- contrast: Ee(),
255
+ contrast: ke(),
256
256
  grayscale: oe(),
257
- hueRotate: Ee(),
257
+ hueRotate: ke(),
258
258
  invert: oe(),
259
259
  gap: D(),
260
260
  gradientColorStops: [e],
261
261
  gradientColorStopPositions: [Aa, We],
262
262
  inset: M(),
263
263
  margin: M(),
264
- opacity: Ee(),
264
+ opacity: ke(),
265
265
  padding: D(),
266
- saturate: Ee(),
267
- scale: Ee(),
266
+ saturate: ke(),
267
+ scale: ke(),
268
268
  sepia: oe(),
269
- skew: Ee(),
269
+ skew: ke(),
270
270
  space: D(),
271
271
  translate: D()
272
272
  },
@@ -833,7 +833,7 @@ const X = (e) => {
833
833
  * @see https://tailwindcss.com/docs/space
834
834
  */
835
835
  "space-x": [{
836
- "space-x": [E]
836
+ "space-x": [k]
837
837
  }],
838
838
  /**
839
839
  * Space Between X Reverse
@@ -845,7 +845,7 @@ const X = (e) => {
845
845
  * @see https://tailwindcss.com/docs/space
846
846
  */
847
847
  "space-y": [{
848
- "space-y": [E]
848
+ "space-y": [k]
849
849
  }],
850
850
  /**
851
851
  * Space Between Y Reverse
@@ -1841,7 +1841,7 @@ const X = (e) => {
1841
1841
  * @see https://tailwindcss.com/docs/transition-duration
1842
1842
  */
1843
1843
  duration: [{
1844
- duration: Ee()
1844
+ duration: ke()
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Transition Timing Function
@@ -1855,7 +1855,7 @@ const X = (e) => {
1855
1855
  * @see https://tailwindcss.com/docs/transition-delay
1856
1856
  */
1857
1857
  delay: [{
1858
- delay: Ee()
1858
+ delay: ke()
1859
1859
  }],
1860
1860
  /**
1861
1861
  * Animation
@@ -1919,14 +1919,14 @@ const X = (e) => {
1919
1919
  * @see https://tailwindcss.com/docs/skew
1920
1920
  */
1921
1921
  "skew-x": [{
1922
- "skew-x": [k]
1922
+ "skew-x": [E]
1923
1923
  }],
1924
1924
  /**
1925
1925
  * Skew Y
1926
1926
  * @see https://tailwindcss.com/docs/skew
1927
1927
  */
1928
1928
  "skew-y": [{
1929
- "skew-y": [k]
1929
+ "skew-y": [E]
1930
1930
  }],
1931
1931
  /**
1932
1932
  * Transform Origin
@@ -2349,17 +2349,17 @@ function pt(e) {
2349
2349
  let n = "en";
2350
2350
  return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), ja[n][e];
2351
2351
  }
2352
- const yn = "http://192.168.15.4:3333/api", qa = "ws://192.168.15.4:3333", ki = "smarttalkswidget";
2352
+ const yn = "https://heimdall.smarttalks.ai/api", qa = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
2353
2353
  function ee(e, ...t) {
2354
2354
  window.postMessage({
2355
- from: ki,
2355
+ from: Ei,
2356
2356
  command: e,
2357
2357
  args: t
2358
2358
  });
2359
2359
  }
2360
2360
  function re(e, t) {
2361
2361
  window.addEventListener("message", (n) => {
2362
- n.data?.from === ki && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
2362
+ n.data?.from === Ei && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
2363
2363
  });
2364
2364
  }
2365
2365
  function Ha() {
@@ -2636,16 +2636,16 @@ function al(e, t, n) {
2636
2636
  () => i.onHydrated(D, {
2637
2637
  value: R
2638
2638
  })
2639
- ), a = Hn, k(R, M)), R;
2639
+ ), a = Hn, E(R, M)), R;
2640
2640
  }
2641
- function k(P, R) {
2641
+ function E(P, R) {
2642
2642
  Ue(() => {
2643
2643
  R === void 0 && h(() => P), x(R !== void 0 ? "errored" : d ? "ready" : "unresolved"), m(R);
2644
2644
  for (const M of f.keys()) M.decrement();
2645
2645
  f.clear();
2646
2646
  }, !1);
2647
2647
  }
2648
- function E() {
2648
+ function k() {
2649
2649
  const P = cl, R = g(), M = p();
2650
2650
  if (M !== void 0 && !s) throw M;
2651
2651
  return Y && Y.user, R;
@@ -2671,7 +2671,7 @@ function al(e, t, n) {
2671
2671
  (D) => _(M, void 0, fr(D), R)
2672
2672
  ))) : (_(s, M, void 0, R), M);
2673
2673
  }
2674
- return Object.defineProperties(E, {
2674
+ return Object.defineProperties(k, {
2675
2675
  state: {
2676
2676
  get: () => v()
2677
2677
  },
@@ -2686,14 +2686,14 @@ function al(e, t, n) {
2686
2686
  },
2687
2687
  latest: {
2688
2688
  get() {
2689
- if (!d) return E();
2689
+ if (!d) return k();
2690
2690
  const P = p();
2691
2691
  if (P && !s) throw P;
2692
2692
  return g();
2693
2693
  }
2694
2694
  }
2695
2695
  }), u ? Mi(() => F(!1)) : F(!1), [
2696
- E,
2696
+ k,
2697
2697
  {
2698
2698
  refetch: F,
2699
2699
  mutate: h
@@ -2966,7 +2966,7 @@ function pl(e, t, n = {}) {
2966
2966
  return l[ur], H(() => {
2967
2967
  let g, h, p, m, b, w, v, x, _;
2968
2968
  if (c === 0)
2969
- s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [gl], o[0] = Ve((k) => (i[0] = k, n.fallback())), s = 1);
2969
+ s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [gl], o[0] = Ve((E) => (i[0] = E, n.fallback())), s = 1);
2970
2970
  else if (s === 0) {
2971
2971
  for (o = new Array(c), u = 0; u < c; u++)
2972
2972
  r[u] = l[u], o[u] = Ve(f);
@@ -3274,11 +3274,11 @@ const bl = [
3274
3274
  TEXTAREA: 1
3275
3275
  }
3276
3276
  });
3277
- function El(e, t) {
3277
+ function kl(e, t) {
3278
3278
  const n = Sl[e];
3279
3279
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
3280
3280
  }
3281
- const kl = /* @__PURE__ */ new Set([
3281
+ const El = /* @__PURE__ */ new Set([
3282
3282
  "beforeinput",
3283
3283
  "click",
3284
3284
  "dblclick",
@@ -3539,7 +3539,7 @@ function So(e, t, n, r, o, i, s) {
3539
3539
  const f = t.slice(10);
3540
3540
  r && e.removeEventListener(f, r, !0), n && e.addEventListener(f, n, !0);
3541
3541
  } else if (t.slice(0, 2) === "on") {
3542
- const f = t.slice(2).toLowerCase(), g = kl.has(f);
3542
+ const f = t.slice(2).toLowerCase(), g = El.has(f);
3543
3543
  if (!g && r) {
3544
3544
  const h = Array.isArray(r) ? r[0] : r;
3545
3545
  e.removeEventListener(f, h);
@@ -3549,7 +3549,7 @@ function So(e, t, n, r, o, i, s) {
3549
3549
  de(e, t.slice(5), n);
3550
3550
  else if (t.slice(0, 5) === "bool:")
3551
3551
  Tl(e, t.slice(5), n);
3552
- else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = El(t, e.tagName)) || (l = wl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3552
+ else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = kl(t, e.tagName)) || (l = wl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3553
3553
  if (u)
3554
3554
  t = t.slice(5), l = !0;
3555
3555
  else if (at(e)) return n;
@@ -3643,7 +3643,7 @@ function Bt(e, t, n, r, o) {
3643
3643
  }
3644
3644
  if (l.length === 0) {
3645
3645
  if (n = dt(e, n, r), a) return n;
3646
- } else c ? n.length === 0 ? Eo(e, l, r) : _l(e, n, l) : (n && dt(e), Eo(e, l));
3646
+ } else c ? n.length === 0 ? ko(e, l, r) : _l(e, n, l) : (n && dt(e), ko(e, l));
3647
3647
  n = l;
3648
3648
  } else if (t.nodeType) {
3649
3649
  if (i && t.parentNode) return n = a ? [t] : t;
@@ -3681,7 +3681,7 @@ function pr(e, t, n, r) {
3681
3681
  }
3682
3682
  return o;
3683
3683
  }
3684
- function Eo(e, t, n = null) {
3684
+ function ko(e, t, n = null) {
3685
3685
  for (let r = 0, o = t.length; r < o; r++) e.insertBefore(t[r], n);
3686
3686
  }
3687
3687
  function dt(e, t, n, r) {
@@ -3839,7 +3839,7 @@ function Vt(e, t = /* @__PURE__ */ new Set()) {
3839
3839
  }
3840
3840
  return e;
3841
3841
  }
3842
- function En(e, t) {
3842
+ function kn(e, t) {
3843
3843
  let n = e[t];
3844
3844
  return n || Object.defineProperty(e, t, {
3845
3845
  value: n = /* @__PURE__ */ Object.create(null)
@@ -3858,7 +3858,7 @@ function Xl(e, t) {
3858
3858
  return !n || n.get || !n.configurable || t === xe || t === mt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
3859
3859
  }
3860
3860
  function Wi(e) {
3861
- dr() && Ut(En(e, mt), qi)();
3861
+ dr() && Ut(kn(e, mt), qi)();
3862
3862
  }
3863
3863
  function Jl(e) {
3864
3864
  return Wi(e), Reflect.ownKeys(e);
@@ -3869,7 +3869,7 @@ const Zl = {
3869
3869
  if (t === xe) return n;
3870
3870
  if (t === ur)
3871
3871
  return Wi(e), n;
3872
- const r = En(e, mt), o = r[t];
3872
+ const r = kn(e, mt), o = r[t];
3873
3873
  let i = o ? o() : e[t];
3874
3874
  if (t === mt || t === ze || t === "__proto__") return i;
3875
3875
  if (!o) {
@@ -3879,7 +3879,7 @@ const Zl = {
3879
3879
  return Sn(i) ? Hi(i) : i;
3880
3880
  },
3881
3881
  has(e, t) {
3882
- return t === mr || t === xe || t === ur || t === mt || t === ze || t === "__proto__" ? !0 : (dr() && Ut(En(e, ze), t)(), t in e);
3882
+ return t === mr || t === xe || t === ur || t === mt || t === ze || t === "__proto__" ? !0 : (dr() && Ut(kn(e, ze), t)(), t in e);
3883
3883
  },
3884
3884
  set() {
3885
3885
  return !0;
@@ -3890,11 +3890,11 @@ const Zl = {
3890
3890
  ownKeys: Jl,
3891
3891
  getOwnPropertyDescriptor: Xl
3892
3892
  };
3893
- function kn(e, t, n, r = !1) {
3893
+ function En(e, t, n, r = !1) {
3894
3894
  if (!r && e[t] === n) return;
3895
3895
  const o = e[t], i = e.length;
3896
3896
  n === void 0 ? (delete e[t], e[ze] && e[ze][t] && o !== void 0 && e[ze][t].$()) : (e[t] = n, e[ze] && e[ze][t] && o === void 0 && e[ze][t].$());
3897
- let s = En(e, mt), a;
3897
+ let s = kn(e, mt), a;
3898
3898
  if ((a = Ut(s, t, o)) && a.$(() => n), Array.isArray(e) && e.length !== i) {
3899
3899
  for (let l = e.length; l < i; l++) (a = s[l]) && a.$();
3900
3900
  (a = Ut(s, "length", i)) && a.$(e.length);
@@ -3905,7 +3905,7 @@ function Gi(e, t) {
3905
3905
  const n = Object.keys(t);
3906
3906
  for (let r = 0; r < n.length; r += 1) {
3907
3907
  const o = n[r];
3908
- kn(e, o, t[o]);
3908
+ En(e, o, t[o]);
3909
3909
  }
3910
3910
  }
3911
3911
  function Ql(e, t) {
@@ -3914,9 +3914,9 @@ function Ql(e, t) {
3914
3914
  let n = 0, r = t.length;
3915
3915
  for (; n < r; n++) {
3916
3916
  const o = t[n];
3917
- e[n] !== o && kn(e, n, o);
3917
+ e[n] !== o && En(e, n, o);
3918
3918
  }
3919
- kn(e, "length", r);
3919
+ En(e, "length", r);
3920
3920
  } else Gi(e, t);
3921
3921
  }
3922
3922
  function Rt(e, t, n = []) {
@@ -3944,7 +3944,7 @@ function Rt(e, t, n = []) {
3944
3944
  o = e[r], n = [r].concat(n);
3945
3945
  }
3946
3946
  let i = t[0];
3947
- typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Vt(i), r === void 0 || Sn(o) && Sn(i) && !Array.isArray(i) ? Gi(o, i) : kn(e, r, i));
3947
+ typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Vt(i), r === void 0 || Sn(o) && Sn(i) && !Array.isArray(i) ? Gi(o, i) : En(e, r, i));
3948
3948
  }
3949
3949
  function ec(...[e, t]) {
3950
3950
  const n = Vt(e || {}), r = Array.isArray(n), o = Hi(n);
@@ -4082,13 +4082,13 @@ const se = () => ({
4082
4082
  chatWidget: sc,
4083
4083
  formWidget: ac,
4084
4084
  getSessionId: Vr
4085
- }), ko = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, lc = (e, t) => (n) => {
4085
+ }), Eo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, lc = (e, t) => (n) => {
4086
4086
  var r;
4087
4087
  if (t?.variants == null) return Co(e, n?.class, n?.className);
4088
4088
  const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((c) => {
4089
4089
  const d = n?.[c], u = i?.[c];
4090
4090
  if (d === null) return null;
4091
- const f = ko(d) || ko(u);
4091
+ const f = Eo(d) || Eo(u);
4092
4092
  return o[c][f];
4093
4093
  }), a = n && Object.entries(n).reduce((c, d) => {
4094
4094
  let [u, f] = d;
@@ -4261,7 +4261,7 @@ const xc = K;
4261
4261
  function Sc(e, t, n, r) {
4262
4262
  return e.addEventListener(t, n, r), xc(e.removeEventListener.bind(e, t, n, r));
4263
4263
  }
4264
- function Ec(e, t, n, r) {
4264
+ function kc(e, t, n, r) {
4265
4265
  const o = () => {
4266
4266
  Oo(S(e)).forEach((i) => {
4267
4267
  i && Oo(S(t)).forEach((s) => Sc(i, s, n, r));
@@ -4272,7 +4272,7 @@ function Ec(e, t, n, r) {
4272
4272
  function Zt() {
4273
4273
  return !0;
4274
4274
  }
4275
- const kc = {
4275
+ const Ec = {
4276
4276
  get(e, t, n) {
4277
4277
  return t === xe ? n : e.get(t);
4278
4278
  },
@@ -4362,7 +4362,7 @@ function _c(...e) {
4362
4362
  keys() {
4363
4363
  return Object.keys(i);
4364
4364
  }
4365
- }, kc);
4365
+ }, Ec);
4366
4366
  }
4367
4367
  function lt(...e) {
4368
4368
  return Zi(e);
@@ -5389,10 +5389,10 @@ function Su() {
5389
5389
  direction: () => n().direction
5390
5390
  };
5391
5391
  }
5392
- const Eu = fe();
5392
+ const ku = fe();
5393
5393
  function Gr() {
5394
5394
  const e = Su();
5395
- return ye(Eu) || e;
5395
+ return ye(ku) || e;
5396
5396
  }
5397
5397
  /*!
5398
5398
  * Portions of this file are based on code from react-spectrum.
@@ -5402,7 +5402,7 @@ function Gr() {
5402
5402
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
5403
5403
  */
5404
5404
  const Zn = /* @__PURE__ */ new Map();
5405
- function ku(e) {
5405
+ function Eu(e) {
5406
5406
  const { locale: t } = Gr(), n = C(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
5407
5407
  return C(() => {
5408
5408
  const r = n();
@@ -5541,7 +5541,7 @@ function Lu(e, t, n) {
5541
5541
  selectOnFocus: () => S(e.selectionManager).selectionBehavior() === "replace"
5542
5542
  }, e), i = () => t(), { direction: s } = Gr();
5543
5543
  let a = { top: 0, left: 0 };
5544
- Ec(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5544
+ kc(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5545
5545
  const p = i();
5546
5546
  p && (a = {
5547
5547
  top: p.scrollTop,
@@ -5557,70 +5557,70 @@ function Lu(e, t, n) {
5557
5557
  const m = t();
5558
5558
  if (!m?.contains(p.target))
5559
5559
  return;
5560
- const b = S(o.selectionManager), w = S(o.selectOnFocus), v = (E) => {
5561
- E != null && (b.setFocusedKey(E), p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && !us(p) && b.replaceSelection(E));
5562
- }, x = S(o.keyboardDelegate), _ = S(o.shouldFocusWrap), k = b.focusedKey();
5560
+ const b = S(o.selectionManager), w = S(o.selectOnFocus), v = (k) => {
5561
+ k != null && (b.setFocusedKey(k), p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && !us(p) && b.replaceSelection(k));
5562
+ }, x = S(o.keyboardDelegate), _ = S(o.shouldFocusWrap), E = b.focusedKey();
5563
5563
  switch (p.key) {
5564
5564
  case "ArrowDown": {
5565
5565
  if (x.getKeyBelow) {
5566
5566
  p.preventDefault();
5567
- let E;
5568
- k != null ? E = x.getKeyBelow(k) : E = x.getFirstKey?.(), E == null && _ && (E = x.getFirstKey?.(k)), v(E);
5567
+ let k;
5568
+ E != null ? k = x.getKeyBelow(E) : k = x.getFirstKey?.(), k == null && _ && (k = x.getFirstKey?.(E)), v(k);
5569
5569
  }
5570
5570
  break;
5571
5571
  }
5572
5572
  case "ArrowUp": {
5573
5573
  if (x.getKeyAbove) {
5574
5574
  p.preventDefault();
5575
- let E;
5576
- k != null ? E = x.getKeyAbove(k) : E = x.getLastKey?.(), E == null && _ && (E = x.getLastKey?.(k)), v(E);
5575
+ let k;
5576
+ E != null ? k = x.getKeyAbove(E) : k = x.getLastKey?.(), k == null && _ && (k = x.getLastKey?.(E)), v(k);
5577
5577
  }
5578
5578
  break;
5579
5579
  }
5580
5580
  case "ArrowLeft": {
5581
5581
  if (x.getKeyLeftOf) {
5582
5582
  p.preventDefault();
5583
- const E = s() === "rtl";
5583
+ const k = s() === "rtl";
5584
5584
  let F;
5585
- k != null ? F = x.getKeyLeftOf(k) : F = E ? x.getFirstKey?.() : x.getLastKey?.(), v(F);
5585
+ E != null ? F = x.getKeyLeftOf(E) : F = k ? x.getFirstKey?.() : x.getLastKey?.(), v(F);
5586
5586
  }
5587
5587
  break;
5588
5588
  }
5589
5589
  case "ArrowRight": {
5590
5590
  if (x.getKeyRightOf) {
5591
5591
  p.preventDefault();
5592
- const E = s() === "rtl";
5592
+ const k = s() === "rtl";
5593
5593
  let F;
5594
- k != null ? F = x.getKeyRightOf(k) : F = E ? x.getLastKey?.() : x.getFirstKey?.(), v(F);
5594
+ E != null ? F = x.getKeyRightOf(E) : F = k ? x.getLastKey?.() : x.getFirstKey?.(), v(F);
5595
5595
  }
5596
5596
  break;
5597
5597
  }
5598
5598
  case "Home":
5599
5599
  if (x.getFirstKey) {
5600
5600
  p.preventDefault();
5601
- const E = x.getFirstKey(k, ht(p));
5602
- E != null && (b.setFocusedKey(E), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && b.replaceSelection(E));
5601
+ const k = x.getFirstKey(E, ht(p));
5602
+ k != null && (b.setFocusedKey(k), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && b.replaceSelection(k));
5603
5603
  }
5604
5604
  break;
5605
5605
  case "End":
5606
5606
  if (x.getLastKey) {
5607
5607
  p.preventDefault();
5608
- const E = x.getLastKey(k, ht(p));
5609
- E != null && (b.setFocusedKey(E), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(E) : w && b.replaceSelection(E));
5608
+ const k = x.getLastKey(E, ht(p));
5609
+ k != null && (b.setFocusedKey(k), ht(p) && p.shiftKey && b.selectionMode() === "multiple" ? b.extendSelection(k) : w && b.replaceSelection(k));
5610
5610
  }
5611
5611
  break;
5612
5612
  case "PageDown":
5613
- if (x.getKeyPageBelow && k != null) {
5613
+ if (x.getKeyPageBelow && E != null) {
5614
5614
  p.preventDefault();
5615
- const E = x.getKeyPageBelow(k);
5616
- v(E);
5615
+ const k = x.getKeyPageBelow(E);
5616
+ v(k);
5617
5617
  }
5618
5618
  break;
5619
5619
  case "PageUp":
5620
- if (x.getKeyPageAbove && k != null) {
5620
+ if (x.getKeyPageAbove && E != null) {
5621
5621
  p.preventDefault();
5622
- const E = x.getKeyPageAbove(k);
5623
- v(E);
5622
+ const k = x.getKeyPageAbove(E);
5623
+ v(k);
5624
5624
  }
5625
5625
  break;
5626
5626
  case "a":
@@ -5634,10 +5634,10 @@ function Lu(e, t, n) {
5634
5634
  if (p.shiftKey)
5635
5635
  m.focus();
5636
5636
  else {
5637
- const E = qc(m, { tabbable: !0 });
5637
+ const k = qc(m, { tabbable: !0 });
5638
5638
  let F, P;
5639
5639
  do
5640
- P = E.lastChild(), P && (F = P);
5640
+ P = k.lastChild(), P && (F = P);
5641
5641
  while (P);
5642
5642
  F && !F.contains(document.activeElement) && ue(F);
5643
5643
  }
@@ -5742,8 +5742,8 @@ function Mu(e, t) {
5742
5742
  o,
5743
5743
  () => n().focusedKey(),
5744
5744
  () => n().isFocused()
5745
- ], ([w, v, x, _, k]) => {
5746
- w && v === _ && k && !x && document.activeElement !== w && (e.focus ? e.focus() : ue(w));
5745
+ ], ([w, v, x, _, E]) => {
5746
+ w && v === _ && E && !x && document.activeElement !== w && (e.focus ? e.focus() : ue(w));
5747
5747
  })), {
5748
5748
  isSelected: s,
5749
5749
  isDisabled: a,
@@ -6151,7 +6151,7 @@ class Ru {
6151
6151
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableList.ts
6152
6152
  */
6153
6153
  function Fu(e, t, n) {
6154
- const r = ku({ usage: "search", sensitivity: "base" }), o = C(() => {
6154
+ const r = Eu({ usage: "search", sensitivity: "base" }), o = C(() => {
6155
6155
  const i = S(e.keyboardDelegate);
6156
6156
  return i || new Ru(e.collection, t, r);
6157
6157
  });
@@ -6348,7 +6348,7 @@ function Wu(e) {
6348
6348
  K(r);
6349
6349
  });
6350
6350
  }
6351
- var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), Er = (e, t) => {
6351
+ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFrame(() => requestAnimationFrame(e)), kr = (e, t) => {
6352
6352
  if (e.contains(t)) return !0;
6353
6353
  let n = t;
6354
6354
  for (; n; ) {
@@ -6466,7 +6466,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6466
6466
  }, a = (c) => {
6467
6467
  const d = c.target, u = J(t.element), f = ed(c), g = Math.abs(f[0]) > Math.abs(f[1]) ? "x" : "y", h = g === "x" ? f[0] : f[1], p = Wo(d, g, h, u);
6468
6468
  let m;
6469
- u && Er(u, d) ? m = !p : m = !0, m && c.cancelable && c.preventDefault();
6469
+ u && kr(u, d) ? m = !p : m = !0, m && c.cancelable && c.preventDefault();
6470
6470
  }, l = (c) => {
6471
6471
  const d = J(t.element), u = c.target;
6472
6472
  let f;
@@ -6481,13 +6481,13 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6481
6481
  f = !1;
6482
6482
  else {
6483
6483
  const g = Wo(u, o, i, d);
6484
- d && Er(d, u) ? f = !g : f = !0;
6484
+ d && kr(d, u) ? f = !g : f = !0;
6485
6485
  }
6486
6486
  }
6487
6487
  f && c.cancelable && c.preventDefault();
6488
6488
  };
6489
6489
  }, ed = (e) => [e.deltaX, e.deltaY], Ho = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Wo = (e, t, n, r) => {
6490
- const o = r !== null && Er(r, e), [i, s] = Ju(e, t, o ? r : void 0);
6490
+ const o = r !== null && kr(r, e), [i, s] = Ju(e, t, o ? r : void 0);
6491
6491
  return !(n > 0 && Math.abs(i) <= 1 || n < 0 && Math.abs(s) < 1);
6492
6492
  }, td = Qu, ps = td;
6493
6493
  const ms = fe();
@@ -6593,7 +6593,7 @@ const sd = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n
6593
6593
  start: "end",
6594
6594
  end: "start"
6595
6595
  };
6596
- function kr(e, t, n) {
6596
+ function Er(e, t, n) {
6597
6597
  return ge(e, Xe(t, n));
6598
6598
  }
6599
6599
  function ct(e, t) {
@@ -6602,7 +6602,7 @@ function ct(e, t) {
6602
6602
  function Je(e) {
6603
6603
  return e.split("-")[0];
6604
6604
  }
6605
- function Et(e) {
6605
+ function kt(e) {
6606
6606
  return e.split("-")[1];
6607
6607
  }
6608
6608
  function bs(e) {
@@ -6619,7 +6619,7 @@ function Xr(e) {
6619
6619
  }
6620
6620
  function cd(e, t, n) {
6621
6621
  n === void 0 && (n = !1);
6622
- const r = Et(e), o = Xr(e), i = Yr(o);
6622
+ const r = kt(e), o = Xr(e), i = Yr(o);
6623
6623
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6624
6624
  return t.reference[i] > t.floating[i] && (s = Pn(s)), [s, Pn(s)];
6625
6625
  }
@@ -6644,7 +6644,7 @@ function dd(e, t, n) {
6644
6644
  }
6645
6645
  }
6646
6646
  function fd(e, t, n, r) {
6647
- const o = Et(e);
6647
+ const o = kt(e);
6648
6648
  let i = dd(Je(e), n === "start", r);
6649
6649
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Cr)))), i;
6650
6650
  }
@@ -6724,7 +6724,7 @@ function Go(e, t, n) {
6724
6724
  y: r.y
6725
6725
  };
6726
6726
  }
6727
- switch (Et(t)) {
6727
+ switch (kt(t)) {
6728
6728
  case "start":
6729
6729
  g[s] -= f * (n && c ? -1 : 1);
6730
6730
  break;
@@ -6861,10 +6861,10 @@ const pd = (e) => ({
6861
6861
  const u = ws(d), f = {
6862
6862
  x: n,
6863
6863
  y: r
6864
- }, g = Xr(o), h = Yr(g), p = await s.getDimensions(c), m = g === "y", b = m ? "top" : "left", w = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[g] - f[g] - i.floating[h], _ = f[g] - i.reference[g], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6865
- let E = k ? k[v] : 0;
6866
- (!E || !await (s.isElement == null ? void 0 : s.isElement(k))) && (E = a.floating[v] || i.floating[h]);
6867
- const F = x / 2 - _ / 2, P = E / 2 - p[h] / 2 - 1, R = Xe(u[b], P), M = Xe(u[w], P), D = R, ne = E - p[h] - M, W = E / 2 - p[h] / 2 + F, ce = kr(D, W, ne), $ = !l.arrow && Et(o) != null && W !== ce && i.reference[h] / 2 - (W < D ? R : M) - p[h] / 2 < 0, z = $ ? W < D ? W - D : W - ne : 0;
6864
+ }, g = Xr(o), h = Yr(g), p = await s.getDimensions(c), m = g === "y", b = m ? "top" : "left", w = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", x = i.reference[h] + i.reference[g] - f[g] - i.floating[h], _ = f[g] - i.reference[g], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
6865
+ let k = E ? E[v] : 0;
6866
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(E))) && (k = a.floating[v] || i.floating[h]);
6867
+ const F = x / 2 - _ / 2, P = k / 2 - p[h] / 2 - 1, R = Xe(u[b], P), M = Xe(u[w], P), D = R, ne = k - p[h] - M, W = k / 2 - p[h] / 2 + F, ce = Er(D, W, ne), $ = !l.arrow && kt(o) != null && W !== ce && i.reference[h] / 2 - (W < D ? R : M) - p[h] / 2 < 0, z = $ ? W < D ? W - D : W - ne : 0;
6868
6868
  return {
6869
6869
  [g]: f[g] + z,
6870
6870
  data: {
@@ -6901,9 +6901,9 @@ const pd = (e) => ({
6901
6901
  } = ct(e, t);
6902
6902
  if ((n = i.arrow) != null && n.alignmentOffset)
6903
6903
  return {};
6904
- const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : ud(a)), k = h !== "none";
6905
- !f && k && _.push(...fd(a, p, h, x));
6906
- const E = [a, ..._], F = await qt(t, m), P = [];
6904
+ const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : ud(a)), E = h !== "none";
6905
+ !f && E && _.push(...fd(a, p, h, x));
6906
+ const k = [a, ..._], F = await qt(t, m), P = [];
6907
6907
  let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6908
6908
  if (d && P.push(F[b]), u) {
6909
6909
  const W = cd(o, s, x);
@@ -6914,7 +6914,7 @@ const pd = (e) => ({
6914
6914
  overflows: P
6915
6915
  }], !P.every((W) => W <= 0)) {
6916
6916
  var M, D;
6917
- const W = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, ce = E[W];
6917
+ const W = (((M = i.flip) == null ? void 0 : M.index) || 0) + 1, ce = k[W];
6918
6918
  if (ce)
6919
6919
  return {
6920
6920
  data: {
@@ -6931,7 +6931,7 @@ const pd = (e) => ({
6931
6931
  case "bestFit": {
6932
6932
  var ne;
6933
6933
  const z = (ne = R.filter((Q) => {
6934
- if (k) {
6934
+ if (E) {
6935
6935
  const oe = ot(Q.placement);
6936
6936
  return oe === w || // Create a bias to the `y` side axis due to horizontal
6937
6937
  // reading directions favoring greater width.
@@ -7015,7 +7015,7 @@ async function bd(e, t) {
7015
7015
  placement: n,
7016
7016
  platform: r,
7017
7017
  elements: o
7018
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Je(n), a = Et(n), l = ot(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = ct(t, e);
7018
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Je(n), a = kt(n), l = ot(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, d = i && l ? -1 : 1, u = ct(t, e);
7019
7019
  let {
7020
7020
  mainAxis: f,
7021
7021
  crossAxis: g,
@@ -7091,11 +7091,11 @@ const wd = function(e) {
7091
7091
  let g = c[f], h = c[u];
7092
7092
  if (i) {
7093
7093
  const m = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", w = g + d[m], v = g - d[b];
7094
- g = kr(w, g, v);
7094
+ g = Er(w, g, v);
7095
7095
  }
7096
7096
  if (s) {
7097
7097
  const m = u === "y" ? "top" : "left", b = u === "y" ? "bottom" : "right", w = h + d[m], v = h - d[b];
7098
- h = kr(w, h, v);
7098
+ h = Er(w, h, v);
7099
7099
  }
7100
7100
  const p = a.fn({
7101
7101
  ...t,
@@ -7130,22 +7130,22 @@ const wd = function(e) {
7130
7130
  apply: l = () => {
7131
7131
  },
7132
7132
  ...c
7133
- } = ct(e, t), d = await qt(t, c), u = Je(o), f = Et(o), g = ot(o) === "y", {
7133
+ } = ct(e, t), d = await qt(t, c), u = Je(o), f = kt(o), g = ot(o) === "y", {
7134
7134
  width: h,
7135
7135
  height: p
7136
7136
  } = i.floating;
7137
7137
  let m, b;
7138
7138
  u === "top" || u === "bottom" ? (m = u, b = f === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = u, m = f === "end" ? "top" : "bottom");
7139
- const w = p - d.top - d.bottom, v = h - d.left - d.right, x = Xe(p - d[m], w), _ = Xe(h - d[b], v), k = !t.middlewareData.shift;
7140
- let E = x, F = _;
7141
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = v), (r = t.middlewareData.shift) != null && r.enabled.y && (E = w), k && !f) {
7139
+ const w = p - d.top - d.bottom, v = h - d.left - d.right, x = Xe(p - d[m], w), _ = Xe(h - d[b], v), E = !t.middlewareData.shift;
7140
+ let k = x, F = _;
7141
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = v), (r = t.middlewareData.shift) != null && r.enabled.y && (k = w), E && !f) {
7142
7142
  const R = ge(d.left, 0), M = ge(d.right, 0), D = ge(d.top, 0), ne = ge(d.bottom, 0);
7143
- g ? F = h - 2 * (R !== 0 || M !== 0 ? R + M : ge(d.left, d.right)) : E = p - 2 * (D !== 0 || ne !== 0 ? D + ne : ge(d.top, d.bottom));
7143
+ g ? F = h - 2 * (R !== 0 || M !== 0 ? R + M : ge(d.left, d.right)) : k = p - 2 * (D !== 0 || ne !== 0 ? D + ne : ge(d.top, d.bottom));
7144
7144
  }
7145
7145
  await l({
7146
7146
  ...t,
7147
7147
  availableWidth: F,
7148
- availableHeight: E
7148
+ availableHeight: k
7149
7149
  });
7150
7150
  const P = await s.getDimensions(a.floating);
7151
7151
  return h !== P.width || p !== P.height ? {
@@ -7159,7 +7159,7 @@ const wd = function(e) {
7159
7159
  function Fn() {
7160
7160
  return typeof window < "u";
7161
7161
  }
7162
- function kt(e) {
7162
+ function Et(e) {
7163
7163
  return vs(e) ? (e.nodeName || "").toLowerCase() : "#document";
7164
7164
  }
7165
7165
  function me(e) {
@@ -7192,7 +7192,7 @@ function Wt(e) {
7192
7192
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
7193
7193
  }
7194
7194
  function Sd(e) {
7195
- return ["table", "td", "th"].includes(kt(e));
7195
+ return ["table", "td", "th"].includes(Et(e));
7196
7196
  }
7197
7197
  function $n(e) {
7198
7198
  return [":popover-open", ":modal"].some((t) => {
@@ -7207,7 +7207,7 @@ function Jr(e) {
7207
7207
  const t = Zr(), n = Pe(e) ? Ae(e) : e;
7208
7208
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
7209
7209
  }
7210
- function Ed(e) {
7210
+ function kd(e) {
7211
7211
  let t = Ze(e);
7212
7212
  for (; Re(t) && !wt(t); ) {
7213
7213
  if (Jr(t))
@@ -7222,7 +7222,7 @@ function Zr() {
7222
7222
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
7223
7223
  }
7224
7224
  function wt(e) {
7225
- return ["html", "body", "#document"].includes(kt(e));
7225
+ return ["html", "body", "#document"].includes(Et(e));
7226
7226
  }
7227
7227
  function Ae(e) {
7228
7228
  return me(e).getComputedStyle(e);
@@ -7237,7 +7237,7 @@ function Nn(e) {
7237
7237
  };
7238
7238
  }
7239
7239
  function Ze(e) {
7240
- if (kt(e) === "html")
7240
+ if (Et(e) === "html")
7241
7241
  return e;
7242
7242
  const t = (
7243
7243
  // Step into the shadow DOM of the parent of a slotted node.
@@ -7293,10 +7293,10 @@ function yt(e) {
7293
7293
  y: a
7294
7294
  };
7295
7295
  }
7296
- const kd = /* @__PURE__ */ De(0);
7297
- function Es(e) {
7296
+ const Ed = /* @__PURE__ */ De(0);
7297
+ function ks(e) {
7298
7298
  const t = me(e);
7299
- return !Zr() || !t.visualViewport ? kd : {
7299
+ return !Zr() || !t.visualViewport ? Ed : {
7300
7300
  x: t.visualViewport.offsetLeft,
7301
7301
  y: t.visualViewport.offsetTop
7302
7302
  };
@@ -7309,7 +7309,7 @@ function it(e, t, n, r) {
7309
7309
  const o = e.getBoundingClientRect(), i = Qr(e);
7310
7310
  let s = De(1);
7311
7311
  t && (r ? Pe(r) && (s = yt(r)) : s = yt(e));
7312
- const a = Cd(i, n, r) ? Es(i) : De(0);
7312
+ const a = Cd(i, n, r) ? ks(i) : De(0);
7313
7313
  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;
7314
7314
  if (i) {
7315
7315
  const f = me(i), g = r && Pe(r) ? me(r) : r;
@@ -7330,7 +7330,7 @@ function eo(e, t) {
7330
7330
  const n = Nn(e).scrollLeft;
7331
7331
  return t ? t.left + n : it(Ne(e)).left + n;
7332
7332
  }
7333
- function ks(e, t, n) {
7333
+ function Es(e, t, n) {
7334
7334
  n === void 0 && (n = !1);
7335
7335
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
7336
7336
  // RTL <body> scrollbar.
@@ -7356,11 +7356,11 @@ function Od(e) {
7356
7356
  scrollTop: 0
7357
7357
  }, c = De(1);
7358
7358
  const d = De(0), u = Re(r);
7359
- if ((u || !u && !i) && ((kt(r) !== "body" || Wt(s)) && (l = Nn(r)), Re(r))) {
7359
+ if ((u || !u && !i) && ((Et(r) !== "body" || Wt(s)) && (l = Nn(r)), Re(r))) {
7360
7360
  const g = it(r);
7361
7361
  c = yt(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
7362
7362
  }
7363
- const f = s && !u && !i ? ks(s, l, !0) : De(0);
7363
+ const f = s && !u && !i ? Es(s, l, !0) : De(0);
7364
7364
  return {
7365
7365
  width: n.width * c.x,
7366
7366
  height: n.height * c.y,
@@ -7415,7 +7415,7 @@ function Zo(e, t, n) {
7415
7415
  else if (Pe(t))
7416
7416
  r = Td(t, n);
7417
7417
  else {
7418
- const o = Es(e);
7418
+ const o = ks(e);
7419
7419
  r = {
7420
7420
  x: t.x - o.x,
7421
7421
  y: t.y - o.y,
@@ -7433,7 +7433,7 @@ function Ld(e, t) {
7433
7433
  const n = t.get(e);
7434
7434
  if (n)
7435
7435
  return n;
7436
- let r = Ht(e, [], !1).filter((a) => Pe(a) && kt(a) !== "body"), o = null;
7436
+ let r = Ht(e, [], !1).filter((a) => Pe(a) && Et(a) !== "body"), o = null;
7437
7437
  const i = Ae(e).position === "fixed";
7438
7438
  let s = i ? Ze(e) : e;
7439
7439
  for (; Pe(s) && !wt(s); ) {
@@ -7478,11 +7478,11 @@ function Id(e, t, n) {
7478
7478
  };
7479
7479
  const l = De(0);
7480
7480
  if (r || !r && !i)
7481
- if ((kt(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
7481
+ if ((Et(t) !== "body" || Wt(o)) && (a = Nn(t)), r) {
7482
7482
  const f = it(t, !0, i, t);
7483
7483
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
7484
7484
  } else o && (l.x = eo(o));
7485
- const c = o && !r && !i ? ks(o, a) : De(0), d = s.left + a.scrollLeft - l.x - c.x, u = s.top + a.scrollTop - l.y - c.y;
7485
+ 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;
7486
7486
  return {
7487
7487
  x: d,
7488
7488
  y: u,
@@ -7517,7 +7517,7 @@ function Os(e, t) {
7517
7517
  let r = Qo(e, t);
7518
7518
  for (; r && Sd(r) && er(r); )
7519
7519
  r = Qo(r, t);
7520
- return r && wt(r) && er(r) && !Jr(r) ? n : r || Ed(e) || n;
7520
+ return r && wt(r) && er(r) && !Jr(r) ? n : r || kd(e) || n;
7521
7521
  }
7522
7522
  const Rd = async function(e) {
7523
7523
  const t = this.getOffsetParent || Os, n = this.getDimensions, r = await n(e.floating);
@@ -7571,16 +7571,16 @@ function $d(e, t) {
7571
7571
  threshold: ge(0, Xe(1, l)) || 1
7572
7572
  };
7573
7573
  let x = !0;
7574
- function _(k) {
7575
- const E = k[0].intersectionRatio;
7576
- if (E !== l) {
7574
+ function _(E) {
7575
+ const k = E[0].intersectionRatio;
7576
+ if (k !== l) {
7577
7577
  if (!x)
7578
7578
  return s();
7579
- E ? s(!1, E) : r = setTimeout(() => {
7579
+ k ? s(!1, k) : r = setTimeout(() => {
7580
7580
  s(!1, 1e-7);
7581
7581
  }, 1e3);
7582
7582
  }
7583
- E === 1 && !Ps(c, e.getBoundingClientRect()) && s(), x = !1;
7583
+ k === 1 && !Ps(c, e.getBoundingClientRect()) && s(), x = !1;
7584
7584
  }
7585
7585
  try {
7586
7586
  n = new IntersectionObserver(_, {
@@ -7709,23 +7709,23 @@ function Xd(e) {
7709
7709
  const b = [
7710
7710
  // https://floating-ui.com/docs/offset
7711
7711
  Kd(({
7712
- placement: k
7712
+ placement: E
7713
7713
  }) => {
7714
- const E = !!k.split("-")[1];
7714
+ const k = !!E.split("-")[1];
7715
7715
  return {
7716
7716
  mainAxis: m,
7717
- crossAxis: E ? void 0 : t.shift,
7717
+ crossAxis: k ? void 0 : t.shift,
7718
7718
  alignmentAxis: t.shift
7719
7719
  };
7720
7720
  })
7721
7721
  ];
7722
7722
  if (t.flip !== !1) {
7723
- const k = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
7724
- if (k !== void 0 && !k.every(Wd))
7723
+ const E = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
7724
+ if (E !== void 0 && !E.every(Wd))
7725
7725
  throw new Error("`flip` expects a spaced-delimited list of placements");
7726
7726
  b.push(Bd({
7727
7727
  padding: t.overflowPadding,
7728
- fallbackPlacements: k
7728
+ fallbackPlacements: E
7729
7729
  }));
7730
7730
  }
7731
7731
  (t.slide || t.overlap) && b.push(zd({
@@ -7735,12 +7735,12 @@ function Xd(e) {
7735
7735
  })), b.push(Vd({
7736
7736
  padding: t.overflowPadding,
7737
7737
  apply({
7738
- availableWidth: k,
7739
- availableHeight: E,
7738
+ availableWidth: E,
7739
+ availableHeight: k,
7740
7740
  rects: F
7741
7741
  }) {
7742
7742
  const P = Math.round(F.reference.width);
7743
- k = Math.floor(k), E = Math.floor(E), g.style.setProperty("--kb-popper-anchor-width", `${P}px`), g.style.setProperty("--kb-popper-content-available-width", `${k}px`), g.style.setProperty("--kb-popper-content-available-height", `${E}px`), t.sameWidth && (g.style.width = `${P}px`), t.fitViewport && (g.style.maxWidth = `${k}px`, g.style.maxHeight = `${E}px`);
7743
+ E = Math.floor(E), k = Math.floor(k), g.style.setProperty("--kb-popper-anchor-width", `${P}px`), g.style.setProperty("--kb-popper-content-available-width", `${E}px`), g.style.setProperty("--kb-popper-content-available-height", `${k}px`), t.sameWidth && (g.style.width = `${P}px`), t.fitViewport && (g.style.maxWidth = `${E}px`, g.style.maxHeight = `${k}px`);
7744
7744
  }
7745
7745
  })), t.hideWhenDetached && b.push(Ud({
7746
7746
  padding: t.detachedPadding
@@ -7769,12 +7769,12 @@ function Xd(e) {
7769
7769
  visibility: _
7770
7770
  }), h && w.middlewareData.arrow) {
7771
7771
  const {
7772
- x: k,
7773
- y: E
7772
+ x: E,
7773
+ y: k
7774
7774
  } = w.middlewareData.arrow, F = w.placement.split("-")[0];
7775
7775
  Object.assign(h.style, {
7776
- left: k != null ? `${k}px` : "",
7777
- top: E != null ? `${E}px` : "",
7776
+ left: E != null ? `${E}px` : "",
7777
+ top: k != null ? `${k}px` : "",
7778
7778
  [F]: "100%"
7779
7779
  });
7780
7780
  }
@@ -7839,7 +7839,7 @@ function Zd(e) {
7839
7839
  placement: "bottom-start"
7840
7840
  }, e), [i, s] = j(o, ["open", "defaultOpen", "onOpenChange"]);
7841
7841
  let a = 0, l = null, c = "right";
7842
- const [d, u] = O(), [f, g] = O(), [h, p] = O(), [m, b] = O(), [w, v] = O(!0), [x, _] = O(s.placement), [k, E] = O([]), [F, P] = O([]), {
7842
+ const [d, u] = O(), [f, g] = O(), [h, p] = O(), [m, b] = O(), [w, v] = O(!0), [x, _] = O(s.placement), [E, k] = O([]), [F, P] = O([]), {
7843
7843
  DomCollectionProvider: R
7844
7844
  } = Hu({
7845
7845
  items: F,
@@ -7861,21 +7861,21 @@ function Zd(e) {
7861
7861
  const U = m();
7862
7862
  U && (ue(U), ne.selectionManager().setFocused(!0), ne.selectionManager().setFocusedKey(void 0));
7863
7863
  }, Q = (U) => {
7864
- E((Un) => [...Un, U]);
7864
+ k((Un) => [...Un, U]);
7865
7865
  const Yt = r?.registerNestedMenu(U);
7866
7866
  return () => {
7867
- E((Un) => br(Un, U)), Yt?.();
7867
+ k((Un) => br(Un, U)), Yt?.();
7868
7868
  };
7869
7869
  }, oe = (U) => c === l?.side && Jd(U, l?.area), ut = (U) => {
7870
7870
  oe(U) && U.preventDefault();
7871
- }, Ee = (U) => {
7871
+ }, ke = (U) => {
7872
7872
  oe(U) || z();
7873
7873
  }, aa = (U) => {
7874
7874
  oe(U) && U.preventDefault();
7875
7875
  };
7876
7876
  du({
7877
7877
  isDisabled: () => !(r == null && M.isOpen() && t.isModal()),
7878
- targets: () => [m(), ...k()].filter(Boolean)
7878
+ targets: () => [m(), ...E()].filter(Boolean)
7879
7879
  }), L(() => {
7880
7880
  const U = m();
7881
7881
  if (!U || !r)
@@ -7892,7 +7892,7 @@ function Zd(e) {
7892
7892
  })),
7893
7893
  isOpen: M.isOpen,
7894
7894
  contentPresence: D,
7895
- nestedMenus: k,
7895
+ nestedMenus: E,
7896
7896
  currentPlacement: x,
7897
7897
  pointerGraceTimeoutId: () => a,
7898
7898
  autoFocus: w,
@@ -7909,7 +7909,7 @@ function Zd(e) {
7909
7909
  toggle: $,
7910
7910
  focusContent: z,
7911
7911
  onItemEnter: ut,
7912
- onItemLeave: Ee,
7912
+ onItemLeave: ke,
7913
7913
  onTriggerLeave: aa,
7914
7914
  setPointerDir: (U) => c = U,
7915
7915
  setPointerGraceTimeoutId: (U) => a = U,
@@ -7971,19 +7971,19 @@ function ef(e) {
7971
7971
  m();
7972
7972
  break;
7973
7973
  }
7974
- }, k = C(() => {
7974
+ }, E = C(() => {
7975
7975
  if (i.indeterminate)
7976
7976
  return "mixed";
7977
7977
  if (i.checked != null)
7978
7978
  return i.checked;
7979
- }), E = C(() => ({
7979
+ }), k = C(() => ({
7980
7980
  "data-indeterminate": i.indeterminate ? "" : void 0,
7981
7981
  "data-checked": i.checked && !i.indeterminate ? "" : void 0,
7982
7982
  "data-disabled": i.disabled ? "" : void 0,
7983
7983
  "data-highlighted": p() ? "" : void 0
7984
7984
  })), F = {
7985
7985
  isChecked: () => i.checked,
7986
- dataset: E,
7986
+ dataset: k,
7987
7987
  setLabelRef: f,
7988
7988
  generateId: Qi(() => s.id),
7989
7989
  registerLabel: On(l),
@@ -8002,7 +8002,7 @@ function ef(e) {
8002
8002
  return b.tabIndex();
8003
8003
  },
8004
8004
  get "aria-checked"() {
8005
- return k();
8005
+ return E();
8006
8006
  },
8007
8007
  get "aria-disabled"() {
8008
8008
  return i.disabled;
@@ -8036,7 +8036,7 @@ function ef(e) {
8036
8036
  },
8037
8037
  onPointerMove: w,
8038
8038
  onPointerLeave: v
8039
- }, E, s));
8039
+ }, k, s));
8040
8040
  }
8041
8041
  });
8042
8042
  }
@@ -8439,14 +8439,14 @@ function Sf(e, t) {
8439
8439
  const ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Nt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
8440
8440
  for (let e = 0; e < ri.length; e++)
8441
8441
  Nt[ri.charCodeAt(e)] = e;
8442
- const Ef = (e) => {
8442
+ const kf = (e) => {
8443
8443
  let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
8444
8444
  e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
8445
8445
  const c = new ArrayBuffer(t), d = new Uint8Array(c);
8446
8446
  for (r = 0; r < n; r += 4)
8447
8447
  i = Nt[e.charCodeAt(r)], s = Nt[e.charCodeAt(r + 1)], a = Nt[e.charCodeAt(r + 2)], l = Nt[e.charCodeAt(r + 3)], d[o++] = i << 2 | s >> 4, d[o++] = (s & 15) << 4 | a >> 2, d[o++] = (a & 3) << 6 | l & 63;
8448
8448
  return c;
8449
- }, kf = typeof ArrayBuffer == "function", no = (e, t) => {
8449
+ }, Ef = typeof ArrayBuffer == "function", no = (e, t) => {
8450
8450
  if (typeof e != "string")
8451
8451
  return {
8452
8452
  type: "message",
@@ -8463,8 +8463,8 @@ const Ef = (e) => {
8463
8463
  type: dn[n]
8464
8464
  } : _r;
8465
8465
  }, Cf = (e, t) => {
8466
- if (kf) {
8467
- const n = Ef(e);
8466
+ if (Ef) {
8467
+ const n = kf(e);
8468
8468
  return Fs(n, t);
8469
8469
  } else
8470
8470
  return { base64: !0, data: e };
@@ -9815,7 +9815,7 @@ const hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9815
9815
  },
9816
9816
  protocol: uh
9817
9817
  }, Symbol.toStringTag, { value: "Module" }));
9818
- function ke(e, t, n) {
9818
+ function Ee(e, t, n) {
9819
9819
  return e.on(t, n), function() {
9820
9820
  e.off(t, n);
9821
9821
  };
@@ -9863,10 +9863,10 @@ class qs extends te {
9863
9863
  return;
9864
9864
  const t = this.io;
9865
9865
  this.subs = [
9866
- ke(t, "open", this.onopen.bind(this)),
9867
- ke(t, "packet", this.onpacket.bind(this)),
9868
- ke(t, "error", this.onerror.bind(this)),
9869
- ke(t, "close", this.onclose.bind(this))
9866
+ Ee(t, "open", this.onopen.bind(this)),
9867
+ Ee(t, "packet", this.onpacket.bind(this)),
9868
+ Ee(t, "error", this.onerror.bind(this)),
9869
+ Ee(t, "close", this.onclose.bind(this))
9870
9870
  ];
9871
9871
  }
9872
9872
  /**
@@ -10498,11 +10498,11 @@ class Mr extends te {
10498
10498
  this.engine = new th(this.uri, this.opts);
10499
10499
  const n = this.engine, r = this;
10500
10500
  this._readyState = "opening", this.skipReconnect = !1;
10501
- const o = ke(n, "open", function() {
10501
+ const o = Ee(n, "open", function() {
10502
10502
  r.onopen(), t && t();
10503
10503
  }), i = (a) => {
10504
10504
  this.cleanup(), this._readyState = "closed", this.emitReserved("error", a), t ? t(a) : this.maybeReconnectOnOpen();
10505
- }, s = ke(n, "error", i);
10505
+ }, s = Ee(n, "error", i);
10506
10506
  if (this._timeout !== !1) {
10507
10507
  const a = this._timeout, l = this.setTimeoutFn(() => {
10508
10508
  o(), i(new Error("timeout")), n.close();
@@ -10531,12 +10531,12 @@ class Mr extends te {
10531
10531
  this.cleanup(), this._readyState = "open", this.emitReserved("open");
10532
10532
  const t = this.engine;
10533
10533
  this.subs.push(
10534
- ke(t, "ping", this.onping.bind(this)),
10535
- ke(t, "data", this.ondata.bind(this)),
10536
- ke(t, "error", this.onerror.bind(this)),
10537
- ke(t, "close", this.onclose.bind(this)),
10534
+ Ee(t, "ping", this.onping.bind(this)),
10535
+ Ee(t, "data", this.ondata.bind(this)),
10536
+ Ee(t, "error", this.onerror.bind(this)),
10537
+ Ee(t, "close", this.onclose.bind(this)),
10538
10538
  // @ts-ignore
10539
- ke(this.decoder, "decoded", this.ondecoded.bind(this))
10539
+ Ee(this.decoder, "decoded", this.ondecoded.bind(this))
10540
10540
  );
10541
10541
  }
10542
10542
  /**
@@ -10793,9 +10793,9 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10793
10793
  t.contactId,
10794
10794
  t.interactionId
10795
10795
  ).finally(() => {
10796
- Js({}), si(!1), Eh();
10796
+ Js({}), si(!1), kh();
10797
10797
  }), ee("onReset");
10798
- }, Eh = () => {
10798
+ }, kh = () => {
10799
10799
  const { chatWidget: e } = se();
10800
10800
  if (Gs().length === 0 && e()?.balloonMessage) {
10801
10801
  const n = e()?.balloonMessage;
@@ -10814,7 +10814,7 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10814
10814
  typing: bh,
10815
10815
  loading: wh
10816
10816
  });
10817
- var kh = /* @__PURE__ */ I("<span>");
10817
+ var Eh = /* @__PURE__ */ I("<span>");
10818
10818
  const Ch = () => {
10819
10819
  const {
10820
10820
  clearMessages: e
@@ -10849,7 +10849,7 @@ const Ch = () => {
10849
10849
  return [y(pc, {
10850
10850
  size: 14
10851
10851
  }), (() => {
10852
- var r = kh();
10852
+ var r = Eh();
10853
10853
  return A(r, () => pt("restart")), r;
10854
10854
  })()];
10855
10855
  }
@@ -11437,7 +11437,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11437
11437
  state: r,
11438
11438
  setState: o
11439
11439
  };
11440
- }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, ta = fe(), Eg = (e) => e ? Bn(`dialog-internal-${e}`) : ta, At = (e) => {
11440
+ }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, ta = fe(), kg = (e) => e ? Bn(`dialog-internal-${e}`) : ta, At = (e) => {
11441
11441
  if (!e) {
11442
11442
  const n = ye(ta);
11443
11443
  if (!n)
@@ -11448,7 +11448,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11448
11448
  if (!t)
11449
11449
  throw new Error(`[corvu]: Dialog context with id "${e}" not found. Make sure to wrap Dialog components in <Dialog.Root contextId="${e}">`);
11450
11450
  return t;
11451
- }, kg = "div", Cg = (e) => {
11451
+ }, Eg = "div", Cg = (e) => {
11452
11452
  const [t, n] = j(e, ["as", "forceMount", "contextId", "children", "ref", "style", "data-corvu-dialog-content"]), r = C(() => At(t.contextId)), o = () => lo(
11453
11453
  r().open,
11454
11454
  // eslint-disable-next-line solid/reactivity
@@ -11502,7 +11502,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11502
11502
  typeof c == "function" && c(l);
11503
11503
  },
11504
11504
  get as() {
11505
- return t.as ?? kg;
11505
+ return t.as ?? Eg;
11506
11506
  },
11507
11507
  get role() {
11508
11508
  return r().role();
@@ -11754,12 +11754,12 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11754
11754
  return a();
11755
11755
  }
11756
11756
  }, v = ea(() => t.children), x = () => {
11757
- const k = v()();
11758
- return Gt(k) ? k(w) : k;
11757
+ const E = v()();
11758
+ return Gt(E) ? E(w) : E;
11759
11759
  };
11760
11760
  return C(() => {
11761
- const k = Sg(t.contextId), E = Eg(t.contextId);
11762
- return y(k.Provider, {
11761
+ const E = Sg(t.contextId), k = kg(t.contextId);
11762
+ return y(E.Provider, {
11763
11763
  value: {
11764
11764
  role: () => t.role,
11765
11765
  open: n,
@@ -11787,7 +11787,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11787
11787
  descriptionId: a
11788
11788
  },
11789
11789
  get children() {
11790
- return y(E.Provider, {
11790
+ return y(k.Provider, {
11791
11791
  get value() {
11792
11792
  return {
11793
11793
  role: () => t.role,
@@ -12068,16 +12068,16 @@ var Vg = (e, t) => {
12068
12068
  L(() => {
12069
12069
  const $ = l()?.contentRef();
12070
12070
  if (!$) return;
12071
- E($);
12072
- const z = new ResizeObserver(k);
12071
+ k($);
12072
+ const z = new ResizeObserver(E);
12073
12073
  z.observe($), K(() => {
12074
12074
  z.disconnect();
12075
12075
  });
12076
12076
  });
12077
- const k = ($) => {
12077
+ const E = ($) => {
12078
12078
  for (const z of $)
12079
- z.target === l()?.contentRef() && E(z.target);
12080
- }, E = ($) => {
12079
+ z.target === l()?.contentRef() && k(z.target);
12080
+ }, k = ($) => {
12081
12081
  const z = H(() => x());
12082
12082
  switch (n.side) {
12083
12083
  case "top":
@@ -12287,31 +12287,31 @@ var Vg = (e, t) => {
12287
12287
  l().setIsDragging(!0), l().setTransitionState(null);
12288
12288
  });
12289
12289
  }
12290
- let k;
12290
+ let E;
12291
12291
  switch (l().side()) {
12292
12292
  case "top":
12293
- k = -(o - _);
12293
+ E = -(o - _);
12294
12294
  break;
12295
12295
  case "bottom":
12296
- k = o - _;
12296
+ E = o - _;
12297
12297
  break;
12298
12298
  case "right":
12299
- k = o - x;
12299
+ E = o - x;
12300
12300
  break;
12301
12301
  case "left":
12302
- k = -(o - x);
12302
+ E = -(o - x);
12303
12303
  break;
12304
12304
  }
12305
- k -= l().resolvedActiveSnapPoint().offset, k > 0 && (k = l().dampFunction(k));
12306
- const E = /* @__PURE__ */ new Date();
12307
- E.getTime() - s.getTime() > l().velocityCacheReset() && (s = E, a = l().translate()), l().setTranslate(-k);
12305
+ E -= l().resolvedActiveSnapPoint().offset, E > 0 && (E = l().dampFunction(E));
12306
+ const k = /* @__PURE__ */ new Date();
12307
+ k.getTime() - s.getTime() > l().velocityCacheReset() && (s = k, a = l().translate()), l().setTranslate(-E);
12308
12308
  }, w = () => {
12309
12309
  if (r = !1, !l().isDragging()) return;
12310
- const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1), _ = l().translate() * x, k = Yg(d(), l().translate(), _, l().allowSkippingSnapPoints());
12310
+ const v = /* @__PURE__ */ new Date(), x = l().velocityFunction(-(a - l().translate()), v.getTime() - s.getTime() || 1), _ = l().translate() * x, E = Yg(d(), l().translate(), _, l().allowSkippingSnapPoints());
12311
12311
  Oe(() => {
12312
12312
  l().setTransitionState("snapping"), l().setIsDragging(!1);
12313
12313
  }), Oe(() => {
12314
- l().setActiveSnapPoint(k.value), k.offset === l().drawerSize() ? c().setOpen(!1) : (l().setTranslate(k.offset), parseFloat(l().drawerStyles().transitionDuration) === 0 && l().setTransitionState(null));
12314
+ l().setActiveSnapPoint(E.value), E.offset === l().drawerSize() ? c().setOpen(!1) : (l().setTranslate(E.offset), parseFloat(l().drawerStyles().transitionDuration) === 0 && l().setTransitionState(null));
12315
12315
  });
12316
12316
  };
12317
12317
  return y(Og, T({
@@ -12550,7 +12550,7 @@ const xp = (e) => (() => {
12550
12550
  }), t;
12551
12551
  })();
12552
12552
  var Sp = /* @__PURE__ */ I('<div class="flex flex-col space-y-2"><video controls preload=auto class="size-full rounded-md"><source type=video/mp4><source type=video/ogg>Your browser does not support the video element.');
12553
- const Ep = (e) => (() => {
12553
+ const kp = (e) => (() => {
12554
12554
  var t = Sp(), n = t.firstChild, r = n.firstChild, o = r.nextSibling;
12555
12555
  return A(t, y(Pt, {
12556
12556
  get children() {
@@ -12564,8 +12564,8 @@ const Ep = (e) => (() => {
12564
12564
  t: void 0
12565
12565
  }), t;
12566
12566
  })();
12567
- var kp = /* @__PURE__ */ I("<div>Media type not supported");
12568
- const sa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(Ep, e) : kp(), Fr = ({
12567
+ var Ep = /* @__PURE__ */ I("<div>Media type not supported");
12568
+ const sa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(kp, e) : Ep(), Fr = ({
12569
12569
  text: e
12570
12570
  }) => y(Pt, {
12571
12571
  get children() {