teodor-new-chat-ui 4.3.757 → 4.3.758

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -514,8 +514,8 @@ function zh() {
514
514
  } else
515
515
  ot.setExtraStackFrame(null);
516
516
  }
517
- var rn;
518
- rn = !1;
517
+ var nn;
518
+ nn = !1;
519
519
  function Wt(E) {
520
520
  return typeof E == "object" && E !== null && E.$$typeof === t;
521
521
  }
@@ -596,8 +596,8 @@ Check the top-level render call using <` + Q + ">.");
596
596
  if (Q) {
597
597
  var L = $(q);
598
598
  mt(Q, E.props, "prop", L, E);
599
- } else if (q.PropTypes !== void 0 && !rn) {
600
- rn = !0;
599
+ } else if (q.PropTypes !== void 0 && !nn) {
600
+ nn = !0;
601
601
  var X = $(q);
602
602
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", X || "Unknown");
603
603
  }
@@ -649,13 +649,13 @@ Check the top-level render call using <` + Q + ">.");
649
649
  return Kn !== "key";
650
650
  }), xt = Le.length > 0 ? "{key: someKey, " + Le.join(": ..., ") + ": ...}" : "{key: someKey}";
651
651
  if (!Tt[Pe + xt]) {
652
- var on = Le.length > 0 ? "{" + Le.join(": ..., ") + ": ...}" : "{}";
652
+ var rn = Le.length > 0 ? "{" + Le.join(": ..., ") + ": ...}" : "{}";
653
653
  y(`A props object containing a "key" prop is being spread into JSX:
654
654
  let props = %s;
655
655
  <%s {...props} />
656
656
  React keys must be passed directly to JSX without using spread:
657
657
  let props = %s;
658
- <%s key={someKey} {...props} />`, xt, Pe, on, Pe), Tt[Pe + xt] = !0;
658
+ <%s key={someKey} {...props} />`, xt, Pe, rn, Pe), Tt[Pe + xt] = !0;
659
659
  }
660
660
  }
661
661
  return E === r ? kn(Ae) : Vn(Ae), Ae;
@@ -753,25 +753,25 @@ async function Uh(e = []) {
753
753
  }
754
754
  return { contentParts: t, filesInfo: n };
755
755
  }
756
- function Kt(e) {
756
+ function an(e) {
757
757
  if (e == null) return e;
758
758
  if (typeof e == "string") {
759
759
  const t = e.trim();
760
760
  if (t.startsWith("{") || t.startsWith("[")) {
761
761
  const n = hs(t);
762
762
  if (n !== null)
763
- return Kt(n);
763
+ return an(n);
764
764
  }
765
765
  return e;
766
766
  }
767
767
  if (typeof e == "object" && !Array.isArray(e)) {
768
768
  if (e.content !== void 0)
769
- return Array.isArray(e.content) ? e.content.map((t) => Kt(t)).filter(Boolean).join(`
770
- `) : Kt(e.content);
769
+ return Array.isArray(e.content) ? e.content.map((t) => an(t)).filter(Boolean).join(`
770
+ `) : an(e.content);
771
771
  if (e.value !== void 0)
772
- return Kt(e.value);
772
+ return an(e.value);
773
773
  }
774
- return typeof e == "object" && !Array.isArray(e) && (e.type === "text" && typeof e.text == "string" || typeof e.text == "string") ? e.text : Array.isArray(e) && e.length > 0 ? Kt(e[0]) : e;
774
+ return typeof e == "object" && !Array.isArray(e) && (e.type === "text" && typeof e.text == "string" || typeof e.text == "string") ? e.text : Array.isArray(e) && e.length > 0 ? an(e[0]) : e;
775
775
  }
776
776
  function Wh(e) {
777
777
  return e.replace(/[_-](\w)/g, (t, n) => n ? n.toUpperCase() : "").replace(/^\w/, (t) => t.toLowerCase());
@@ -816,24 +816,17 @@ function Vh(e) {
816
816
  return t;
817
817
  }
818
818
  function Hi(e) {
819
- const t = Rn(e), n = t.content ?? void 0, r = Kt(n), o = typeof r == "string" ? r : typeof n == "string" ? n : n ? JSON.stringify(n) : void 0;
819
+ const t = Rn(e), n = t.content ?? t.output ?? void 0;
820
820
  return {
821
821
  ...t,
822
822
  type: "tool_call",
823
823
  id: t.id ?? t.callId,
824
824
  name: t.name ?? t.tool ?? void 0,
825
825
  args: t.args ?? t.arguments ?? void 0,
826
- content: o
826
+ content: typeof n == "string" ? n : n ? JSON.stringify(n) : void 0
827
827
  };
828
828
  }
829
829
  function Kh(e, t) {
830
- if (typeof e == "string")
831
- return [{ type: "text", text: e }];
832
- if (e && typeof e == "object" && !Array.isArray(e)) {
833
- const n = e.text || e.content;
834
- if (typeof n == "string")
835
- return [{ type: "text", text: n }];
836
- }
837
830
  return Array.isArray(e) ? e.map((n) => n.type === "tool_call" || n.type === "tool" ? t ? null : Hi(Rn(n)) : n).filter(
838
831
  (n) => !!(n && typeof n == "object" && typeof n.type == "string")
839
832
  ) : [];
@@ -852,8 +845,8 @@ function Yh(e) {
852
845
  return e.type === "file";
853
846
  }
854
847
  function Xh(e) {
855
- const t = Kt(e);
856
- return typeof t == "string" ? t.trim() : "";
848
+ return Array.isArray(e.content) ? e.content.filter((t) => t.type === "text").map((t) => t.text).join(`
849
+ `).trim() : "";
857
850
  }
858
851
  function Jh(e) {
859
852
  return e.content.filter(Gh);
@@ -1018,7 +1011,7 @@ function rm(e, t = []) {
1018
1011
  var f, p, h;
1019
1012
  const a = Vs(i.id, e) || Vs(i.id, t), c = Array.isArray((f = a == null ? void 0 : a.additionalKwargs) == null ? void 0 : f.toolProgress) ? (p = a == null ? void 0 : a.additionalKwargs) == null ? void 0 : p.toolProgress : void 0, l = (a == null ? void 0 : a.artifact) ?? i.artifact, u = Xa(i.status) ?? ((h = a == null ? void 0 : a.additionalKwargs) != null && h.toolStreaming ? "pending" : null) ?? (a ? "completed" : "pending");
1020
1013
  if (a && !i.content && u === "completed") {
1021
- const m = Kt(a);
1014
+ const m = an(a);
1022
1015
  typeof m == "string" && (i.content = m);
1023
1016
  }
1024
1017
  return {
@@ -1036,7 +1029,7 @@ function rm(e, t = []) {
1036
1029
  var c, l, u;
1037
1030
  const o = Vs(r.id, t) ?? nm(e, r), s = Array.isArray((c = o == null ? void 0 : o.additionalKwargs) == null ? void 0 : c.toolProgress) ? (l = o == null ? void 0 : o.additionalKwargs) == null ? void 0 : l.toolProgress : void 0, i = (o == null ? void 0 : o.artifact) ?? r.artifact, a = Xa(r.status) ?? ((u = o == null ? void 0 : o.additionalKwargs) != null && u.toolStreaming ? "pending" : null) ?? (o ? "completed" : "pending");
1038
1031
  if (o && !r.content && a === "completed") {
1039
- const f = Kt(o);
1032
+ const f = an(o);
1040
1033
  typeof f == "string" && (r.content = f);
1041
1034
  }
1042
1035
  return {
@@ -1056,11 +1049,11 @@ function Mc(e, t) {
1056
1049
  const { toString: om } = Object.prototype, { getPrototypeOf: Ui } = Object, { iterator: ms, toStringTag: Dc } = Symbol, gs = /* @__PURE__ */ ((e) => (t) => {
1057
1050
  const n = om.call(t);
1058
1051
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1059
- })(/* @__PURE__ */ Object.create(null)), tn = (e) => (e = e.toLowerCase(), (t) => gs(t) === e), xs = (e) => (t) => typeof t === e, { isArray: Er } = Array, Sr = xs("undefined");
1052
+ })(/* @__PURE__ */ Object.create(null)), en = (e) => (e = e.toLowerCase(), (t) => gs(t) === e), xs = (e) => (t) => typeof t === e, { isArray: Er } = Array, Sr = xs("undefined");
1060
1053
  function ro(e) {
1061
1054
  return e !== null && !Sr(e) && e.constructor !== null && !Sr(e.constructor) && At(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1062
1055
  }
1063
- const Lc = tn("ArrayBuffer");
1056
+ const Lc = en("ArrayBuffer");
1064
1057
  function sm(e) {
1065
1058
  let t;
1066
1059
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lc(e.buffer), t;
@@ -1078,11 +1071,11 @@ const im = xs("string"), At = xs("function"), $c = xs("number"), oo = (e) => e !
1078
1071
  } catch {
1079
1072
  return !1;
1080
1073
  }
1081
- }, cm = tn("Date"), um = tn("File"), dm = tn("Blob"), fm = tn("FileList"), pm = (e) => oo(e) && At(e.pipe), hm = (e) => {
1074
+ }, cm = en("Date"), um = en("File"), dm = en("Blob"), fm = en("FileList"), pm = (e) => oo(e) && At(e.pipe), hm = (e) => {
1082
1075
  let t;
1083
1076
  return e && (typeof FormData == "function" && e instanceof FormData || At(e.append) && ((t = gs(e)) === "formdata" || // detect form-data instance
1084
1077
  t === "object" && At(e.toString) && e.toString() === "[object FormData]"));
1085
- }, mm = tn("URLSearchParams"), [gm, xm, vm, wm] = ["ReadableStream", "Request", "Response", "Headers"].map(tn), ym = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1078
+ }, mm = en("URLSearchParams"), [gm, xm, vm, wm] = ["ReadableStream", "Request", "Response", "Headers"].map(en), ym = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1086
1079
  function so(e, t, { allOwnKeys: n = !1 } = {}) {
1087
1080
  if (e === null || typeof e > "u")
1088
1081
  return;
@@ -1162,12 +1155,12 @@ const bm = (e, t, n, { allOwnKeys: r } = {}) => (so(t, (o, s) => {
1162
1155
  for (; (n = e.exec(t)) !== null; )
1163
1156
  r.push(n);
1164
1157
  return r;
1165
- }, Nm = tn("HTMLFormElement"), jm = (e) => e.toLowerCase().replace(
1158
+ }, Nm = en("HTMLFormElement"), jm = (e) => e.toLowerCase().replace(
1166
1159
  /[-_\s]([a-z\d])(\w*)/g,
1167
1160
  function(n, r, o) {
1168
1161
  return r.toUpperCase() + o;
1169
1162
  }
1170
- ), Za = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _m = tn("RegExp"), Bc = (e, t) => {
1163
+ ), Za = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _m = en("RegExp"), Bc = (e, t) => {
1171
1164
  const n = Object.getOwnPropertyDescriptors(e), r = {};
1172
1165
  so(n, (o, s) => {
1173
1166
  let i;
@@ -1219,7 +1212,7 @@ const $m = (e) => {
1219
1212
  return r;
1220
1213
  };
1221
1214
  return n(e, 0);
1222
- }, Fm = tn("AsyncFunction"), zm = (e) => e && (oo(e) || At(e)) && At(e.then) && At(e.catch), Hc = ((e, t) => e ? setImmediate : t ? ((n, r) => (qn.addEventListener("message", ({ source: o, data: s }) => {
1215
+ }, Fm = en("AsyncFunction"), zm = (e) => e && (oo(e) || At(e)) && At(e.then) && At(e.catch), Hc = ((e, t) => e ? setImmediate : t ? ((n, r) => (qn.addEventListener("message", ({ source: o, data: s }) => {
1223
1216
  o === qn && s === n && r.length && r.shift()();
1224
1217
  }, !1), (o) => {
1225
1218
  r.push(o), qn.postMessage(n, "*");
@@ -1260,7 +1253,7 @@ const $m = (e) => {
1260
1253
  inherits: Cm,
1261
1254
  toFlatObject: Tm,
1262
1255
  kindOf: gs,
1263
- kindOfTest: tn,
1256
+ kindOfTest: en,
1264
1257
  endsWith: km,
1265
1258
  toArray: Em,
1266
1259
  forEachEntry: Rm,
@@ -2481,7 +2474,7 @@ function Rg(e, t, n) {
2481
2474
  const Po = {
2482
2475
  assertOptions: Rg,
2483
2476
  validators: ws
2484
- }, sn = Po.validators;
2477
+ }, on = Po.validators;
2485
2478
  let Xn = class {
2486
2479
  constructor(t) {
2487
2480
  this.defaults = t || {}, this.interceptors = {
@@ -2518,17 +2511,17 @@ let Xn = class {
2518
2511
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = er(this.defaults, n);
2519
2512
  const { transitional: r, paramsSerializer: o, headers: s } = n;
2520
2513
  r !== void 0 && Po.assertOptions(r, {
2521
- silentJSONParsing: sn.transitional(sn.boolean),
2522
- forcedJSONParsing: sn.transitional(sn.boolean),
2523
- clarifyTimeoutError: sn.transitional(sn.boolean)
2514
+ silentJSONParsing: on.transitional(on.boolean),
2515
+ forcedJSONParsing: on.transitional(on.boolean),
2516
+ clarifyTimeoutError: on.transitional(on.boolean)
2524
2517
  }, !1), o != null && (F.isFunction(o) ? n.paramsSerializer = {
2525
2518
  serialize: o
2526
2519
  } : Po.assertOptions(o, {
2527
- encode: sn.function,
2528
- serialize: sn.function
2520
+ encode: on.function,
2521
+ serialize: on.function
2529
2522
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Po.assertOptions(n, {
2530
- baseUrl: sn.spelling("baseURL"),
2531
- withXsrfToken: sn.spelling("withXSRFToken")
2523
+ baseUrl: on.spelling("baseURL"),
2524
+ withXsrfToken: on.spelling("withXSRFToken")
2532
2525
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2533
2526
  let i = s && F.merge(
2534
2527
  s.common,
@@ -3658,7 +3651,7 @@ function rx(e, t) {
3658
3651
  let o = e.messages;
3659
3652
  const s = bs(o, n);
3660
3653
  if (s !== -1) {
3661
- const i = o[s], a = r ?? null, c = typeof a == "string" ? a : JSON.stringify(a), l = Kt(a), u = typeof l == "string" ? l : c, f = (i.toolCalls ?? []).map(
3654
+ const i = o[s], a = r ?? null, c = typeof a == "string" ? a : JSON.stringify(a), l = an(a), u = typeof l == "string" ? l : c, f = (i.toolCalls ?? []).map(
3662
3655
  (p) => p.id === n ? { ...p, content: u } : p
3663
3656
  );
3664
3657
  o = lo(o, s, { ...i, toolCalls: f });
@@ -3668,7 +3661,7 @@ function rx(e, t) {
3668
3661
  function ox(e, t) {
3669
3662
  const n = uu(t);
3670
3663
  let r = e.messages;
3671
- const o = t.content ?? t.error ?? null, s = typeof o == "string" ? o : JSON.stringify(o), i = Kt(o), a = typeof i == "string" ? i : s;
3664
+ const o = t.content ?? t.error ?? null, s = typeof o == "string" ? o : JSON.stringify(o), i = an(o), a = typeof i == "string" ? i : s;
3672
3665
  n && bs(r, n) !== -1 && (r = tx(r, n, {
3673
3666
  status: "completed",
3674
3667
  content: a,
@@ -4436,14 +4429,14 @@ function gu(e = {}) {
4436
4429
  if (r)
4437
4430
  Ze = { Authorization: `Bearer ${r}` };
4438
4431
  else if (typeof window < "u") {
4439
- const Xe = window.__AUTH_TOKEN__, rn = ((ue = window.localStorage) == null ? void 0 : ue.getItem(vr.authToken)) || null;
4432
+ const Xe = window.__AUTH_TOKEN__, nn = ((ue = window.localStorage) == null ? void 0 : ue.getItem(vr.authToken)) || null;
4440
4433
  let Wt = null;
4441
4434
  try {
4442
4435
  const Sn = (de = window.localStorage) == null ? void 0 : de.getItem(vr.chatSettings);
4443
4436
  Sn && (Wt = ((xe = JSON.parse(Sn)) == null ? void 0 : xe.apiKey) || null);
4444
4437
  } catch {
4445
4438
  }
4446
- const Vt = Xe || rn || Wt || null;
4439
+ const Vt = Xe || nn || Wt || null;
4447
4440
  Vt && (Ze = { Authorization: `Bearer ${Vt}` });
4448
4441
  }
4449
4442
  } catch {
@@ -4500,10 +4493,10 @@ function gu(e = {}) {
4500
4493
  Date.now() - Bn > 18e5 && (p("Stream idle timeout"), K = "error", U.abort());
4501
4494
  }, 5e3), Un = 1024 * 1024;
4502
4495
  try {
4503
- const ot = Ye.headers.get("X-Thread-Id") || Ye.headers.get("x-thread-id"), Xe = Ye.headers.get("X-Thread-Created") || Ye.headers.get("x-thread-created"), rn = ot ?? null, Wt = String(Xe ?? "").toLowerCase() === "true";
4496
+ const ot = Ye.headers.get("X-Thread-Id") || Ye.headers.get("x-thread-id"), Xe = Ye.headers.get("X-Thread-Created") || Ye.headers.get("x-thread-created"), nn = ot ?? null, Wt = String(Xe ?? "").toLowerCase() === "true";
4504
4497
  for (N.current && !N.current.threadId && (N.current = {
4505
4498
  ...N.current,
4506
- threadId: rn
4499
+ threadId: nn
4507
4500
  }); ; ) {
4508
4501
  const { value: Vt, done: Sn } = await He.read();
4509
4502
  if (Sn) break;
@@ -5078,7 +5071,7 @@ function lt(e) {
5078
5071
  function fe(e, t) {
5079
5072
  return $e(e, Ax(t, Ss));
5080
5073
  }
5081
- function Jt(e, t) {
5074
+ function Xt(e, t) {
5082
5075
  const n = e(Dn, (r) => {
5083
5076
  n(), t(r);
5084
5077
  });
@@ -5109,7 +5102,7 @@ function ye(e) {
5109
5102
  function ae(e) {
5110
5103
  return (t) => yu(t, e);
5111
5104
  }
5112
- function an(e) {
5105
+ function sn(e) {
5113
5106
  return (t) => () => {
5114
5107
  t(e);
5115
5108
  };
@@ -5465,16 +5458,16 @@ function qr(e, t) {
5465
5458
  if (!Ke(e))
5466
5459
  return t === e.k ? e.v : t < e.k ? qr(e.l, t) : qr(e.r, t);
5467
5460
  }
5468
- function Zt(e, t, n = "k") {
5461
+ function Jt(e, t, n = "k") {
5469
5462
  if (Ke(e))
5470
5463
  return [-1 / 0, void 0];
5471
5464
  if (Number(e[n]) === t)
5472
5465
  return [e.k, e.v];
5473
5466
  if (Number(e[n]) < t) {
5474
- const r = Zt(e.r, t, n);
5467
+ const r = Jt(e.r, t, n);
5475
5468
  return r[0] === -1 / 0 ? [e.k, e.v] : r;
5476
5469
  }
5477
- return Zt(e.l, t, n);
5470
+ return Jt(e.l, t, n);
5478
5471
  }
5479
5472
  function Ft(e, t, n) {
5480
5473
  return Ke(e) ? Eu(t, n, 1) : t === e.k ? pt(e, { k: t, v: n }) : t < e.k ? El(pt(e, { l: Ft(e.l, t, n) })) : El(pt(e, { r: Ft(e.r, t, n) }));
@@ -5485,7 +5478,7 @@ function wr() {
5485
5478
  function Ts(e, t, n) {
5486
5479
  if (Ke(e))
5487
5480
  return [];
5488
- const r = Zt(e, t)[0];
5481
+ const r = Jt(e, t)[0];
5489
5482
  return zx(Ei(e, r, n));
5490
5483
  }
5491
5484
  function ki(e, t) {
@@ -5725,8 +5718,8 @@ function Ri(e, t, n, r) {
5725
5718
  let o = e, s = 0, i = 0, a = 0, c = 0;
5726
5719
  if (t !== 0) {
5727
5720
  c = Qo(o, t - 1, Ji), a = o[c].offset;
5728
- const l = Zt(n, t - 1);
5729
- s = l[0], i = l[1], o.length && o[c].size === Zt(n, t)[1] && (c -= 1), o = o.slice(0, c + 1);
5721
+ const l = Jt(n, t - 1);
5722
+ s = l[0], i = l[1], o.length && o[c].size === Jt(n, t)[1] && (c -= 1), o = o.slice(0, c + 1);
5730
5723
  } else
5731
5724
  o = [];
5732
5725
  for (const { start: l, value: u } of Ts(n, t, 1 / 0)) {
@@ -5946,7 +5939,7 @@ const Jx = {
5946
5939
  if (I = Gn(b.sizeTree).reduce(($, { k: N, v: G }) => Ft($, Math.max(0, N + S), G), I), j !== -S) {
5947
5940
  const $ = qr(b.sizeTree, B);
5948
5941
  I = Ft(I, 0, $);
5949
- const N = Zt(b.sizeTree, -S + 1)[1];
5942
+ const N = Jt(b.sizeTree, -S + 1)[1];
5950
5943
  I = Ft(I, 1, N);
5951
5944
  }
5952
5945
  return {
@@ -6018,7 +6011,7 @@ const _u = Oe(
6018
6011
  J(
6019
6012
  dt(o, t, r),
6020
6013
  ye(([c, l]) => ks(l)),
6021
- ae(([c, l, u]) => Zt(l.groupOffsetTree, Math.max(c - u, 0), "v")[0]),
6014
+ ae(([c, l, u]) => Jt(l.groupOffsetTree, Math.max(c - u, 0), "v")[0]),
6022
6015
  tt(),
6023
6016
  ae((c) => [c])
6024
6017
  ),
@@ -6080,7 +6073,7 @@ const fo = Oe(
6080
6073
  ]) => {
6081
6074
  const G = Pu(k), { align: Y, behavior: te, offset: z } = G, H = T - 1, ne = ju(G, S, H);
6082
6075
  let V = Yr(ne, S.offsetTree, B) + _;
6083
- Y === "end" ? (V += $ + Zt(S.sizeTree, ne)[1] - b + N, ne === H && (V += j)) : Y === "center" ? V += ($ + Zt(S.sizeTree, ne)[1] - b + N) / 2 : V -= I, z && (V += z);
6076
+ Y === "end" ? (V += $ + Jt(S.sizeTree, ne)[1] - b + N, ne === H && (V += j)) : Y === "center" ? V += ($ + Jt(S.sizeTree, ne)[1] - b + N) / 2 : V -= I, z && (V += z);
6084
6077
  const R = (P) => {
6085
6078
  C(), P ? (D("retrying to scroll to", { location: k }, jt.DEBUG), Ie(h, k)) : (Ie(m, !0), D("list did not change, scroll successful", {}, jt.DEBUG));
6086
6079
  };
@@ -6088,11 +6081,11 @@ const fo = Oe(
6088
6081
  let P = !1;
6089
6082
  y = $e(t, (A) => {
6090
6083
  P = P || A;
6091
- }), g = Jt(u, () => {
6084
+ }), g = Xt(u, () => {
6092
6085
  R(P);
6093
6086
  });
6094
6087
  } else
6095
- g = Jt(J(t, ev(150)), R);
6088
+ g = Xt(J(t, ev(150)), R);
6096
6089
  return w = setTimeout(() => {
6097
6090
  C();
6098
6091
  }, 1200), Ie(c, !0), D("scrolling from index to", { behavior: te, index: ne, top: V }, jt.DEBUG), { behavior: te, top: V };
@@ -6136,7 +6129,7 @@ const po = Oe(
6136
6129
  i,
6137
6130
  Re(c),
6138
6131
  ye(([u, f]) => !!f),
6139
- an(!1)
6132
+ sn(!1)
6140
6133
  ),
6141
6134
  a
6142
6135
  ), fe(
@@ -6144,7 +6137,7 @@ const po = Oe(
6144
6137
  i,
6145
6138
  Re(c),
6146
6139
  ye(([u, f]) => !!f),
6147
- an(!1)
6140
+ sn(!1)
6148
6141
  ),
6149
6142
  l
6150
6143
  ), $e(
@@ -6155,10 +6148,10 @@ const po = Oe(
6155
6148
  Re(c)
6156
6149
  ),
6157
6150
  ([, u]) => {
6158
- Jt(o, () => {
6151
+ Xt(o, () => {
6159
6152
  Ie(l, !0);
6160
6153
  }), Zi(4, () => {
6161
- Jt(r, () => {
6154
+ Xt(r, () => {
6162
6155
  Ie(a, !0);
6163
6156
  }), Ie(s, u);
6164
6157
  });
@@ -6187,12 +6180,12 @@ const Xr = "up", zr = "down", tv = "none", nv = {
6187
6180
  }, rv = 0, ho = Oe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
6188
6181
  const i = ee(!1), a = ee(!0), c = _e(), l = _e(), u = ee(4), f = ee(rv), p = St(
6189
6182
  J(
6190
- Ti(J(ve(o), tr(1), an(!0)), J(ve(o), tr(1), an(!1), Tl(100))),
6183
+ Ti(J(ve(o), tr(1), sn(!0)), J(ve(o), tr(1), sn(!1), Tl(100))),
6191
6184
  tt()
6192
6185
  ),
6193
6186
  !1
6194
6187
  ), h = St(
6195
- J(Ti(J(n, an(!0)), J(n, an(!1), Tl(200))), tt()),
6188
+ J(Ti(J(n, sn(!0)), J(n, sn(!1), Tl(200))), tt()),
6196
6189
  !1
6197
6190
  );
6198
6191
  fe(
@@ -6284,13 +6277,13 @@ const Xr = "up", zr = "down", tv = "none", nv = {
6284
6277
  ae((y) => y.direction)
6285
6278
  ),
6286
6279
  g
6287
- ), fe(J(r, wn(50), an(tv)), g);
6280
+ ), fe(J(r, wn(50), sn(tv)), g);
6288
6281
  const w = ee(0);
6289
6282
  return fe(
6290
6283
  J(
6291
6284
  p,
6292
6285
  ye((y) => !y),
6293
- an(0)
6286
+ sn(0)
6294
6287
  ),
6295
6288
  w
6296
6289
  ), fe(
@@ -6382,7 +6375,7 @@ function ov(e, t, n) {
6382
6375
  if (ks(t)) {
6383
6376
  const r = Nu(e, t);
6384
6377
  return [
6385
- { index: Zt(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
6378
+ { index: Jt(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
6386
6379
  { data: n == null ? void 0 : n[0], index: r, offset: 0, size: 0 }
6387
6380
  ];
6388
6381
  }
@@ -6687,14 +6680,14 @@ const ar = Oe(
6687
6680
  Re(t, c, n, s, o, r, a),
6688
6681
  Re(e),
6689
6682
  ae(([[f, p, h, m, v, g, w, y], C]) => {
6690
- const { align: k, behavior: S, calculateViewLocation: b = iv, done: T, ...I } = f, _ = ju(f, p, m - 1), j = Yr(_, p.offsetTree, C) + v + g, D = j + Zt(p.sizeTree, _)[1], B = y + g, $ = y + h - w, N = b({
6683
+ const { align: k, behavior: S, calculateViewLocation: b = iv, done: T, ...I } = f, _ = ju(f, p, m - 1), j = Yr(_, p.offsetTree, C) + v + g, D = j + Jt(p.sizeTree, _)[1], B = y + g, $ = y + h - w, N = b({
6691
6684
  itemBottom: D,
6692
6685
  itemTop: j,
6693
6686
  locationParams: { align: k, behavior: S, ...I },
6694
6687
  viewportBottom: $,
6695
6688
  viewportTop: B
6696
6689
  });
6697
- return N ? T && Jt(
6690
+ return N ? T && Xt(
6698
6691
  J(
6699
6692
  i,
6700
6693
  ye((G) => !G),
@@ -6752,13 +6745,13 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
6752
6745
  ({ followOutputBehavior: S, totalCount: b }) => {
6753
6746
  g && (g(), g = null), lt(n) ? requestAnimationFrame(() => {
6754
6747
  lt(u)("following output to ", { totalCount: b }, jt.DEBUG), w(S);
6755
- }) : g = Jt(e, () => {
6748
+ }) : g = Xt(e, () => {
6756
6749
  lt(u)("following output to ", { totalCount: b }, jt.DEBUG), w(S), g = null;
6757
6750
  });
6758
6751
  }
6759
6752
  );
6760
6753
  function y(S) {
6761
- const b = Jt(o, (T) => {
6754
+ const b = Xt(o, (T) => {
6762
6755
  S && !T.atBottom && T.notAtBottomBecause === "SIZE_INCREASED" && !g && (lt(u)("scrolling to bottom due to increased size", {}, jt.DEBUG), w("auto"));
6763
6756
  });
6764
6757
  setTimeout(b, 100);
@@ -6806,7 +6799,7 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
6806
6799
  (S) => {
6807
6800
  g && (g(), g = null), lt(n) ? requestAnimationFrame(() => {
6808
6801
  lt(u)("scrolling into view", {}), Ie(h, S);
6809
- }) : g = Jt(e, () => {
6802
+ }) : g = Xt(e, () => {
6810
6803
  lt(u)("scrolling into view", {}), Ie(h, S), g = null;
6811
6804
  });
6812
6805
  }
@@ -6847,7 +6840,7 @@ const av = (e, t) => typeof e == "function" ? _l(e(t)) : t && _l(e), lv = Oe(
6847
6840
  ae(([, o]) => ({ top: o }))
6848
6841
  ),
6849
6842
  (o) => {
6850
- Jt(
6843
+ Xt(
6851
6844
  J(
6852
6845
  n,
6853
6846
  tr(1),
@@ -7358,7 +7351,7 @@ const wv = /* @__PURE__ */ Oe(() => {
7358
7351
  ([e, t]) => ({ ...e, ...t }),
7359
7352
  nt(Bu, wv)
7360
7353
  ), bv = ({ height: e }) => /* @__PURE__ */ d.jsx("div", { style: { height: e } }), Sv = { overflowAnchor: "none", position: na(), zIndex: 1 }, qu = { overflowAnchor: "none" }, Cv = { ...qu, display: "inline-block", height: "100%" }, Ol = /* @__PURE__ */ Z.memo(function({ showTopList: e = !1 }) {
7361
- const t = Te("listState"), n = qt("sizeRanges"), r = Te("useWindowScroll"), o = Te("customScrollParent"), s = qt("windowScrollContainerState"), i = qt("scrollContainerState"), a = o || r ? s : i, c = Te("itemContent"), l = Te("context"), u = Te("groupContent"), f = Te("trackItemSizes"), p = Te("itemSize"), h = Te("log"), m = qt("gap"), v = Te("horizontalDirection"), { callbackRef: g } = $x(
7354
+ const t = Te("listState"), n = Kt("sizeRanges"), r = Te("useWindowScroll"), o = Te("customScrollParent"), s = Kt("windowScrollContainerState"), i = Kt("scrollContainerState"), a = o || r ? s : i, c = Te("itemContent"), l = Te("context"), u = Te("groupContent"), f = Te("trackItemSizes"), p = Te("itemSize"), h = Te("log"), m = Kt("gap"), v = Te("horizontalDirection"), { callbackRef: g } = $x(
7362
7355
  n,
7363
7356
  p,
7364
7357
  f,
@@ -7465,7 +7458,7 @@ function Iv(e, t) {
7465
7458
  return { item: typeof e == "string" ? void 0 : t };
7466
7459
  }
7467
7460
  const Rv = /* @__PURE__ */ Z.memo(function() {
7468
- const e = Te("HeaderComponent"), t = qt("headerHeight"), n = Te("HeaderFooterTag"), r = ir(
7461
+ const e = Te("HeaderComponent"), t = Kt("headerHeight"), n = Te("HeaderFooterTag"), r = ir(
7469
7462
  Z.useMemo(
7470
7463
  () => (s) => {
7471
7464
  t(An(s, "height"));
@@ -7477,7 +7470,7 @@ const Rv = /* @__PURE__ */ Z.memo(function() {
7477
7470
  ), o = Te("context");
7478
7471
  return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
7479
7472
  }), Av = /* @__PURE__ */ Z.memo(function() {
7480
- const e = Te("FooterComponent"), t = qt("footerHeight"), n = Te("HeaderFooterTag"), r = ir(
7473
+ const e = Te("FooterComponent"), t = Kt("footerHeight"), n = Te("HeaderFooterTag"), r = ir(
7481
7474
  Z.useMemo(
7482
7475
  () => (s) => {
7483
7476
  t(An(s, "height"));
@@ -7542,7 +7535,7 @@ function Yu({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
7542
7535
  });
7543
7536
  }
7544
7537
  const Nv = ({ children: e }) => {
7545
- const t = Z.useContext(Uu), n = qt("viewportHeight"), r = qt("fixedItemHeight"), o = Te("alignToBottom"), s = Te("horizontalDirection"), i = Z.useMemo(
7538
+ const t = Z.useContext(Uu), n = Kt("viewportHeight"), r = Kt("fixedItemHeight"), o = Te("alignToBottom"), s = Te("horizontalDirection"), i = Z.useMemo(
7546
7539
  () => yu(n, (c) => An(c, s ? "width" : "height")),
7547
7540
  [n, s]
7548
7541
  ), a = ir(i, !0, Te("skipAnimationFrameInResizeObserver"));
@@ -7550,7 +7543,7 @@ const Nv = ({ children: e }) => {
7550
7543
  t && (n(t.viewportHeight), r(t.itemHeight));
7551
7544
  }, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "element", ref: a, style: Es(o), children: e });
7552
7545
  }, jv = ({ children: e }) => {
7553
- const t = Z.useContext(Uu), n = qt("windowViewportRect"), r = qt("fixedItemHeight"), o = Te("customScrollParent"), s = Su(
7546
+ const t = Z.useContext(Uu), n = Kt("windowViewportRect"), r = Kt("fixedItemHeight"), o = Te("customScrollParent"), s = Su(
7554
7547
  n,
7555
7548
  o,
7556
7549
  Te("skipAnimationFrameInResizeObserver")
@@ -7575,7 +7568,7 @@ const Nv = ({ children: e }) => {
7575
7568
  Component: Ov,
7576
7569
  useEmitter: oa,
7577
7570
  useEmitterValue: Te,
7578
- usePublisher: qt
7571
+ usePublisher: Kt
7579
7572
  } = /* @__PURE__ */ Hu(
7580
7573
  yv,
7581
7574
  {
@@ -7635,7 +7628,7 @@ const Nv = ({ children: e }) => {
7635
7628
  }
7636
7629
  },
7637
7630
  Pv
7638
- ), Mv = /* @__PURE__ */ Gu({ useEmitter: oa, useEmitterValue: Te, usePublisher: qt }), Dv = /* @__PURE__ */ Yu({ useEmitter: oa, useEmitterValue: Te, usePublisher: qt }), Lv = Ov, $v = /* @__PURE__ */ Oe(() => {
7631
+ ), Mv = /* @__PURE__ */ Gu({ useEmitter: oa, useEmitterValue: Te, usePublisher: Kt }), Dv = /* @__PURE__ */ Yu({ useEmitter: oa, useEmitterValue: Te, usePublisher: Kt }), Lv = Ov, $v = /* @__PURE__ */ Oe(() => {
7639
7632
  const e = ee((l) => /* @__PURE__ */ d.jsxs("td", { children: [
7640
7633
  "Item $",
7641
7634
  l
@@ -7733,7 +7726,7 @@ const Hv = /* @__PURE__ */ Oe(
7733
7726
  ([, , , , O]) => {
7734
7727
  Ie(V, !0), Zi(1, () => {
7735
7728
  Ie(D, O);
7736
- }), Jt(J(l), () => {
7729
+ }), Xt(J(l), () => {
7737
7730
  Ie(t, [0, 0]), Ie(ne, !0);
7738
7731
  });
7739
7732
  }
@@ -7741,7 +7734,7 @@ const Hv = /* @__PURE__ */ Oe(
7741
7734
  J(
7742
7735
  te,
7743
7736
  ye((O) => O != null && O.scrollTop > 0),
7744
- an(0)
7737
+ sn(0)
7745
7738
  ),
7746
7739
  T
7747
7740
  ), $e(
@@ -7751,7 +7744,7 @@ const Hv = /* @__PURE__ */ Oe(
7751
7744
  ye(([, O]) => O != null)
7752
7745
  ),
7753
7746
  ([, O]) => {
7754
- O && (Ie(_, O.viewport), Ie(j, O.item), Ie(G, O.gap), O.scrollTop > 0 && (Ie(z, !0), Jt(J(l, tr(1)), (W) => {
7747
+ O && (Ie(_, O.viewport), Ie(j, O.item), Ie(G, O.gap), O.scrollTop > 0 && (Ie(z, !0), Xt(J(l, tr(1)), (W) => {
7755
7748
  Ie(z, !1);
7756
7749
  }), Ie(c, { top: O.scrollTop })));
7757
7750
  }
@@ -7865,7 +7858,7 @@ const Hv = /* @__PURE__ */ Oe(
7865
7858
  J(
7866
7859
  ve(I),
7867
7860
  ye(({ items: O }) => O.length > 0 && O[0].index === 0),
7868
- an(0),
7861
+ sn(0),
7869
7862
  tt()
7870
7863
  )
7871
7864
  ), U = zt(
@@ -7997,7 +7990,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
7997
7990
  ([e, t]) => ({ ...e, ...t }),
7998
7991
  nt(Hv, Uv)
7999
7992
  ), Vv = /* @__PURE__ */ Z.memo(function() {
8000
- const e = st("gridState"), t = st("listClassName"), n = st("itemClassName"), r = st("itemContent"), o = st("computeItemKey"), s = st("isSeeking"), i = Gt("scrollHeight"), a = st("ItemComponent"), c = st("ListComponent"), l = st("ScrollSeekPlaceholder"), u = st("context"), f = Gt("itemDimensions"), p = Gt("gap"), h = st("log"), m = st("stateRestoreInProgress"), v = Gt("reportReadyState"), g = ir(
7993
+ const e = st("gridState"), t = st("listClassName"), n = st("itemClassName"), r = st("itemContent"), o = st("computeItemKey"), s = st("isSeeking"), i = qt("scrollHeight"), a = st("ItemComponent"), c = st("ListComponent"), l = st("ScrollSeekPlaceholder"), u = st("context"), f = qt("itemDimensions"), p = qt("gap"), h = st("log"), m = st("stateRestoreInProgress"), v = qt("reportReadyState"), g = ir(
8001
7994
  Z.useMemo(
8002
7995
  () => (w) => {
8003
7996
  const y = w.parentElement.parentElement.scrollHeight;
@@ -8052,7 +8045,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8052
8045
  }
8053
8046
  );
8054
8047
  }), Kv = Z.memo(function() {
8055
- const e = st("HeaderComponent"), t = Gt("headerHeight"), n = st("headerFooterTag"), r = ir(
8048
+ const e = st("HeaderComponent"), t = qt("headerHeight"), n = st("headerFooterTag"), r = ir(
8056
8049
  Z.useMemo(
8057
8050
  () => (s) => {
8058
8051
  t(An(s, "height"));
@@ -8064,7 +8057,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8064
8057
  ), o = st("context");
8065
8058
  return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
8066
8059
  }), qv = Z.memo(function() {
8067
- const e = st("FooterComponent"), t = Gt("footerHeight"), n = st("headerFooterTag"), r = ir(
8060
+ const e = st("FooterComponent"), t = qt("footerHeight"), n = st("headerFooterTag"), r = ir(
8068
8061
  Z.useMemo(
8069
8062
  () => (s) => {
8070
8063
  t(An(s, "height"));
@@ -8076,7 +8069,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8076
8069
  ), o = st("context");
8077
8070
  return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...yt(e, o) }) }) : null;
8078
8071
  }), Gv = ({ children: e }) => {
8079
- const t = Z.useContext(Wu), n = Gt("itemDimensions"), r = Gt("viewportDimensions"), o = ir(
8072
+ const t = Z.useContext(Wu), n = qt("itemDimensions"), r = qt("viewportDimensions"), o = ir(
8080
8073
  Z.useMemo(
8081
8074
  () => (s) => {
8082
8075
  r(s.getBoundingClientRect());
@@ -8090,7 +8083,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8090
8083
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
8091
8084
  }, [t, r, n]), /* @__PURE__ */ d.jsx("div", { ref: o, style: Es(!1), children: e });
8092
8085
  }, Yv = ({ children: e }) => {
8093
- const t = Z.useContext(Wu), n = Gt("windowViewportRect"), r = Gt("itemDimensions"), o = st("customScrollParent"), s = Su(n, o, !1);
8086
+ const t = Z.useContext(Wu), n = qt("windowViewportRect"), r = qt("itemDimensions"), o = st("customScrollParent"), s = Su(n, o, !1);
8094
8087
  return Z.useEffect(() => {
8095
8088
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
8096
8089
  }, [t, n, r]), /* @__PURE__ */ d.jsx("div", { ref: s, style: Es(!1), children: e });
@@ -8104,7 +8097,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8104
8097
  }), {
8105
8098
  useEmitter: Ju,
8106
8099
  useEmitterValue: st,
8107
- usePublisher: Gt
8100
+ usePublisher: qt
8108
8101
  } = /* @__PURE__ */ Hu(
8109
8102
  Wv,
8110
8103
  {
@@ -8146,7 +8139,7 @@ const Uv = /* @__PURE__ */ Oe(() => {
8146
8139
  }
8147
8140
  },
8148
8141
  Xv
8149
- ), Jv = /* @__PURE__ */ Gu({ useEmitter: Ju, useEmitterValue: st, usePublisher: Gt }), Zv = /* @__PURE__ */ Yu({ useEmitter: Ju, useEmitterValue: st, usePublisher: Gt });
8142
+ ), Jv = /* @__PURE__ */ Gu({ useEmitter: Ju, useEmitterValue: st, usePublisher: qt }), Zv = /* @__PURE__ */ Yu({ useEmitter: Ju, useEmitterValue: st, usePublisher: qt });
8150
8143
  function zl(e, t, n) {
8151
8144
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, jt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
8152
8145
  }
@@ -8252,7 +8245,7 @@ function ow(e) {
8252
8245
  const s = rw(r) ?? r[r.length - 1];
8253
8246
  if (!s)
8254
8247
  return null;
8255
- const i = s.output ?? s.payload ?? s, a = Kt(i);
8248
+ const i = s.output ?? s.payload ?? s, a = an(i);
8256
8249
  return a && typeof a == "object" && !Array.isArray(a) ? {
8257
8250
  kind: "dict",
8258
8251
  value: a,
@@ -12106,7 +12099,7 @@ function mn(e) {
12106
12099
  function Ed(e) {
12107
12100
  return Ns() ? e instanceof Node || e instanceof Ht(e).Node : !1;
12108
12101
  }
12109
- function Qt(e) {
12102
+ function Zt(e) {
12110
12103
  return Ns() ? e instanceof Element || e instanceof Ht(e).Element : !1;
12111
12104
  }
12112
12105
  function pn(e) {
@@ -12122,7 +12115,7 @@ function mo(e) {
12122
12115
  overflowX: n,
12123
12116
  overflowY: r,
12124
12117
  display: o
12125
- } = en(e);
12118
+ } = Qt(e);
12126
12119
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !wy.has(o);
12127
12120
  }
12128
12121
  const yy = /* @__PURE__ */ new Set(["table", "td", "th"]);
@@ -12141,7 +12134,7 @@ function js(e) {
12141
12134
  }
12142
12135
  const Cy = ["transform", "translate", "scale", "rotate", "perspective"], Ty = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ky = ["paint", "layout", "strict", "content"];
12143
12136
  function ha(e) {
12144
- const t = ma(), n = Qt(e) ? en(e) : e;
12137
+ const t = ma(), n = Zt(e) ? Qt(e) : e;
12145
12138
  return Cy.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) || Ty.some((r) => (n.willChange || "").includes(r)) || ky.some((r) => (n.contain || "").includes(r));
12146
12139
  }
12147
12140
  function Ey(e) {
@@ -12162,11 +12155,11 @@ const Iy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
12162
12155
  function Cr(e) {
12163
12156
  return Iy.has(jr(e));
12164
12157
  }
12165
- function en(e) {
12158
+ function Qt(e) {
12166
12159
  return Ht(e).getComputedStyle(e);
12167
12160
  }
12168
12161
  function _s(e) {
12169
- return Qt(e) ? {
12162
+ return Zt(e) ? {
12170
12163
  scrollLeft: e.scrollLeft,
12171
12164
  scrollTop: e.scrollTop
12172
12165
  } : {
@@ -12204,7 +12197,7 @@ function Oi(e) {
12204
12197
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
12205
12198
  }
12206
12199
  function Rd(e) {
12207
- const t = en(e);
12200
+ const t = Qt(e);
12208
12201
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
12209
12202
  const o = pn(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = ss(n) !== s || ss(r) !== i;
12210
12203
  return a && (n = s, r = i), {
@@ -12214,7 +12207,7 @@ function Rd(e) {
12214
12207
  };
12215
12208
  }
12216
12209
  function ga(e) {
12217
- return Qt(e) ? e : e.contextElement;
12210
+ return Zt(e) ? e : e.contextElement;
12218
12211
  }
12219
12212
  function yr(e) {
12220
12213
  const t = ga(e);
@@ -12246,14 +12239,14 @@ function nr(e, t, n, r) {
12246
12239
  t === void 0 && (t = !1), n === void 0 && (n = !1);
12247
12240
  const o = e.getBoundingClientRect(), s = ga(e);
12248
12241
  let i = dn(1);
12249
- t && (r ? Qt(r) && (i = yr(r)) : i = yr(e));
12242
+ t && (r ? Zt(r) && (i = yr(r)) : i = yr(e));
12250
12243
  const a = Ay(s, n, r) ? Ad(s) : dn(0);
12251
12244
  let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
12252
12245
  if (s) {
12253
- const p = Ht(s), h = r && Qt(r) ? Ht(r) : r;
12246
+ const p = Ht(s), h = r && Zt(r) ? Ht(r) : r;
12254
12247
  let m = p, v = Oi(m);
12255
12248
  for (; v && r && h !== m; ) {
12256
- const g = yr(v), w = v.getBoundingClientRect(), y = en(v), C = w.left + (v.clientLeft + parseFloat(y.paddingLeft)) * g.x, k = w.top + (v.clientTop + parseFloat(y.paddingTop)) * g.y;
12249
+ const g = yr(v), w = v.getBoundingClientRect(), y = Qt(v), C = w.left + (v.clientLeft + parseFloat(y.paddingLeft)) * g.x, k = w.top + (v.clientTop + parseFloat(y.paddingTop)) * g.y;
12257
12250
  c *= g.x, l *= g.y, u *= g.x, f *= g.y, c += C, l += k, m = Ht(v), v = Oi(m);
12258
12251
  }
12259
12252
  }
@@ -12309,7 +12302,7 @@ function _y(e) {
12309
12302
  const t = mn(e), n = _s(e), r = e.ownerDocument.body, o = $t(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = $t(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
12310
12303
  let i = -n.scrollLeft + Ps(e);
12311
12304
  const a = -n.scrollTop;
12312
- return en(r).direction === "rtl" && (i += $t(t.clientWidth, r.clientWidth) - o), {
12305
+ return Qt(r).direction === "rtl" && (i += $t(t.clientWidth, r.clientWidth) - o), {
12313
12306
  width: o,
12314
12307
  height: s,
12315
12308
  x: i,
@@ -12353,7 +12346,7 @@ function cc(e, t, n) {
12353
12346
  r = Py(e, n);
12354
12347
  else if (t === "document")
12355
12348
  r = _y(mn(e));
12356
- else if (Qt(t))
12349
+ else if (Zt(t))
12357
12350
  r = My(t, n);
12358
12351
  else {
12359
12352
  const o = Ad(e);
@@ -12368,17 +12361,17 @@ function cc(e, t, n) {
12368
12361
  }
12369
12362
  function jd(e, t) {
12370
12363
  const n = On(e);
12371
- return n === t || !Qt(n) || Cr(n) ? !1 : en(n).position === "fixed" || jd(n, t);
12364
+ return n === t || !Zt(n) || Cr(n) ? !1 : Qt(n).position === "fixed" || jd(n, t);
12372
12365
  }
12373
12366
  function Dy(e, t) {
12374
12367
  const n = t.get(e);
12375
12368
  if (n)
12376
12369
  return n;
12377
- let r = Zr(e, [], !1).filter((a) => Qt(a) && jr(a) !== "body"), o = null;
12378
- const s = en(e).position === "fixed";
12370
+ let r = Zr(e, [], !1).filter((a) => Zt(a) && jr(a) !== "body"), o = null;
12371
+ const s = Qt(e).position === "fixed";
12379
12372
  let i = s ? On(e) : e;
12380
- for (; Qt(i) && !Cr(i); ) {
12381
- const a = en(i), c = ha(i);
12373
+ for (; Zt(i) && !Cr(i); ) {
12374
+ const a = Qt(i), c = ha(i);
12382
12375
  !c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && Oy.has(o.position) || mo(i) && !c && jd(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = On(i);
12383
12376
  }
12384
12377
  return t.set(e, r), r;
@@ -12436,10 +12429,10 @@ function Fy(e, t, n) {
12436
12429
  };
12437
12430
  }
12438
12431
  function si(e) {
12439
- return en(e).position === "static";
12432
+ return Qt(e).position === "static";
12440
12433
  }
12441
12434
  function uc(e, t) {
12442
- if (!pn(e) || en(e).position === "fixed")
12435
+ if (!pn(e) || Qt(e).position === "fixed")
12443
12436
  return null;
12444
12437
  if (t)
12445
12438
  return t(e);
@@ -12453,7 +12446,7 @@ function _d(e, t) {
12453
12446
  if (!pn(e)) {
12454
12447
  let o = On(e);
12455
12448
  for (; o && !Cr(o); ) {
12456
- if (Qt(o) && !si(o))
12449
+ if (Zt(o) && !si(o))
12457
12450
  return o;
12458
12451
  o = On(o);
12459
12452
  }
@@ -12477,7 +12470,7 @@ const zy = async function(e) {
12477
12470
  };
12478
12471
  };
12479
12472
  function By(e) {
12480
- return en(e).direction === "rtl";
12473
+ return Qt(e).direction === "rtl";
12481
12474
  }
12482
12475
  const Hy = {
12483
12476
  convertOffsetParentRelativeRectToViewportRelativeRect: Ny,
@@ -12488,7 +12481,7 @@ const Hy = {
12488
12481
  getClientRects: jy,
12489
12482
  getDimensions: $y,
12490
12483
  getScale: yr,
12491
- isElement: Qt,
12484
+ isElement: Zt,
12492
12485
  isRTL: By
12493
12486
  };
12494
12487
  function Pd(e, t) {
@@ -13829,14 +13822,14 @@ var Sa = "MenuPortal", [_0, ff] = cr(Sa, {
13829
13822
  return /* @__PURE__ */ d.jsx(_0, { scope: t, forceMount: n, children: /* @__PURE__ */ d.jsx(Ut, { present: n || s.open, children: /* @__PURE__ */ d.jsx(wa, { asChild: !0, container: o, children: r }) }) });
13830
13823
  };
13831
13824
  pf.displayName = Sa;
13832
- var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
13825
+ var Gt = "MenuContent", [P0, Ca] = cr(Gt), hf = x.forwardRef(
13833
13826
  (e, t) => {
13834
- const n = ff(Yt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Yt, e.__scopeMenu), i = vo(Yt, e.__scopeMenu);
13827
+ const n = ff(Gt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Gt, e.__scopeMenu), i = vo(Gt, e.__scopeMenu);
13835
13828
  return /* @__PURE__ */ d.jsx(Qr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(Qr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(O0, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(M0, { ...o, ref: t }) }) }) });
13836
13829
  }
13837
13830
  ), O0 = x.forwardRef(
13838
13831
  (e, t) => {
13839
- const n = ur(Yt, e.__scopeMenu), r = x.useRef(null), o = it(t, r);
13832
+ const n = ur(Gt, e.__scopeMenu), r = x.useRef(null), o = it(t, r);
13840
13833
  return x.useEffect(() => {
13841
13834
  const s = r.current;
13842
13835
  if (s) return Qd(s);
@@ -13858,7 +13851,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
13858
13851
  );
13859
13852
  }
13860
13853
  ), M0 = x.forwardRef((e, t) => {
13861
- const n = ur(Yt, e.__scopeMenu);
13854
+ const n = ur(Gt, e.__scopeMenu);
13862
13855
  return /* @__PURE__ */ d.jsx(
13863
13856
  Ta,
13864
13857
  {
@@ -13887,7 +13880,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
13887
13880
  onDismiss: h,
13888
13881
  disableOutsideScroll: m,
13889
13882
  ...v
13890
- } = e, g = ur(Yt, n), w = vo(Yt, n), y = Ms(n), C = uf(n), k = I0(n), [S, b] = x.useState(null), T = x.useRef(null), I = it(t, T, g.onContentChange), _ = x.useRef(0), j = x.useRef(""), D = x.useRef(0), B = x.useRef(null), $ = x.useRef("right"), N = x.useRef(0), G = m ? ya : x.Fragment, Y = m ? { as: D0, allowPinchZoom: !0 } : void 0, te = (H) => {
13883
+ } = e, g = ur(Gt, n), w = vo(Gt, n), y = Ms(n), C = uf(n), k = I0(n), [S, b] = x.useState(null), T = x.useRef(null), I = it(t, T, g.onContentChange), _ = x.useRef(0), j = x.useRef(""), D = x.useRef(0), B = x.useRef(null), $ = x.useRef("right"), N = x.useRef(0), G = m ? ya : x.Fragment, Y = m ? { as: D0, allowPinchZoom: !0 } : void 0, te = (H) => {
13891
13884
  var K, O;
13892
13885
  const ne = j.current + H, V = k().filter((W) => !W.disabled), R = document.activeElement, P = (K = V.find((W) => W.ref.current === R)) == null ? void 0 : K.textValue, A = V.map((W) => W.textValue), M = G0(A, ne, P), U = (O = V.find((W) => W.textValue === M)) == null ? void 0 : O.ref.current;
13893
13886
  (function W(re) {
@@ -14007,7 +14000,7 @@ var Yt = "MenuContent", [P0, Ca] = cr(Yt), hf = x.forwardRef(
14007
14000
  );
14008
14001
  }
14009
14002
  );
14010
- hf.displayName = Yt;
14003
+ hf.displayName = Gt;
14011
14004
  var L0 = "MenuGroup", ka = x.forwardRef(
14012
14005
  (e, t) => {
14013
14006
  const { __scopeMenu: n, ...r } = e;
@@ -14267,7 +14260,7 @@ var V0 = "MenuSub", [DT, Ef] = cr(V0), Fr = "MenuSubTrigger", If = x.forwardRef(
14267
14260
  If.displayName = Fr;
14268
14261
  var Rf = "MenuSubContent", Af = x.forwardRef(
14269
14262
  (e, t) => {
14270
- const n = ff(Yt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Yt, e.__scopeMenu), i = vo(Yt, e.__scopeMenu), a = Ef(Rf, e.__scopeMenu), c = x.useRef(null), l = it(t, c);
14263
+ const n = ff(Gt, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ur(Gt, e.__scopeMenu), i = vo(Gt, e.__scopeMenu), a = Ef(Rf, e.__scopeMenu), c = x.useRef(null), l = it(t, c);
14271
14264
  return /* @__PURE__ */ d.jsx(Qr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(Qr.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(
14272
14265
  Ta,
14273
14266
  {
@@ -15139,7 +15132,7 @@ function BS({
15139
15132
  displayMessages: h
15140
15133
  };
15141
15134
  }
15142
- var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS, nn] = rp(Fs), op = (e) => {
15135
+ var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS, tn] = rp(Fs), op = (e) => {
15143
15136
  const {
15144
15137
  __scopeDialog: t,
15145
15138
  children: n,
@@ -15173,7 +15166,7 @@ var Fs = "Dialog", [rp, $T] = Fn(Fs), [HS, nn] = rp(Fs), op = (e) => {
15173
15166
  op.displayName = Fs;
15174
15167
  var sp = "DialogTrigger", US = x.forwardRef(
15175
15168
  (e, t) => {
15176
- const { __scopeDialog: n, ...r } = e, o = nn(sp, n), s = it(t, o.triggerRef);
15169
+ const { __scopeDialog: n, ...r } = e, o = tn(sp, n), s = it(t, o.triggerRef);
15177
15170
  return /* @__PURE__ */ d.jsx(
15178
15171
  je.button,
15179
15172
  {
@@ -15193,20 +15186,20 @@ US.displayName = sp;
15193
15186
  var Na = "DialogPortal", [WS, ip] = rp(Na, {
15194
15187
  forceMount: void 0
15195
15188
  }), ap = (e) => {
15196
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = nn(Na, t);
15189
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = tn(Na, t);
15197
15190
  return /* @__PURE__ */ d.jsx(WS, { scope: t, forceMount: n, children: x.Children.map(r, (i) => /* @__PURE__ */ d.jsx(Ut, { present: n || s.open, children: /* @__PURE__ */ d.jsx(wa, { asChild: !0, container: o, children: i }) })) });
15198
15191
  };
15199
15192
  ap.displayName = Na;
15200
15193
  var ds = "DialogOverlay", lp = x.forwardRef(
15201
15194
  (e, t) => {
15202
- const n = ip(ds, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = nn(ds, e.__scopeDialog);
15195
+ const n = ip(ds, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = tn(ds, e.__scopeDialog);
15203
15196
  return s.modal ? /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: /* @__PURE__ */ d.jsx(KS, { ...o, ref: t }) }) : null;
15204
15197
  }
15205
15198
  );
15206
15199
  lp.displayName = ds;
15207
15200
  var VS = Wr("DialogOverlay.RemoveScroll"), KS = x.forwardRef(
15208
15201
  (e, t) => {
15209
- const { __scopeDialog: n, ...r } = e, o = nn(ds, n);
15202
+ const { __scopeDialog: n, ...r } = e, o = tn(ds, n);
15210
15203
  return (
15211
15204
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
15212
15205
  // ie. when `Overlay` and `Content` are siblings
@@ -15223,14 +15216,14 @@ var VS = Wr("DialogOverlay.RemoveScroll"), KS = x.forwardRef(
15223
15216
  }
15224
15217
  ), rr = "DialogContent", cp = x.forwardRef(
15225
15218
  (e, t) => {
15226
- const n = ip(rr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = nn(rr, e.__scopeDialog);
15219
+ const n = ip(rr, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = tn(rr, e.__scopeDialog);
15227
15220
  return /* @__PURE__ */ d.jsx(Ut, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(qS, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(GS, { ...o, ref: t }) });
15228
15221
  }
15229
15222
  );
15230
15223
  cp.displayName = rr;
15231
15224
  var qS = x.forwardRef(
15232
15225
  (e, t) => {
15233
- const n = nn(rr, e.__scopeDialog), r = x.useRef(null), o = it(t, n.contentRef, r);
15226
+ const n = tn(rr, e.__scopeDialog), r = x.useRef(null), o = it(t, n.contentRef, r);
15234
15227
  return x.useEffect(() => {
15235
15228
  const s = r.current;
15236
15229
  if (s) return Qd(s);
@@ -15258,7 +15251,7 @@ var qS = x.forwardRef(
15258
15251
  }
15259
15252
  ), GS = x.forwardRef(
15260
15253
  (e, t) => {
15261
- const n = nn(rr, e.__scopeDialog), r = x.useRef(!1), o = x.useRef(!1);
15254
+ const n = tn(rr, e.__scopeDialog), r = x.useRef(!1), o = x.useRef(!1);
15262
15255
  return /* @__PURE__ */ d.jsx(
15263
15256
  up,
15264
15257
  {
@@ -15281,7 +15274,7 @@ var qS = x.forwardRef(
15281
15274
  }
15282
15275
  ), up = x.forwardRef(
15283
15276
  (e, t) => {
15284
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = nn(rr, n), c = x.useRef(null), l = it(t, c);
15277
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = tn(rr, n), c = x.useRef(null), l = it(t, c);
15285
15278
  return Sd(), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
15286
15279
  /* @__PURE__ */ d.jsx(
15287
15280
  ua,
@@ -15314,21 +15307,21 @@ var qS = x.forwardRef(
15314
15307
  }
15315
15308
  ), ja = "DialogTitle", dp = x.forwardRef(
15316
15309
  (e, t) => {
15317
- const { __scopeDialog: n, ...r } = e, o = nn(ja, n);
15310
+ const { __scopeDialog: n, ...r } = e, o = tn(ja, n);
15318
15311
  return /* @__PURE__ */ d.jsx(je.h2, { id: o.titleId, ...r, ref: t });
15319
15312
  }
15320
15313
  );
15321
15314
  dp.displayName = ja;
15322
15315
  var fp = "DialogDescription", pp = x.forwardRef(
15323
15316
  (e, t) => {
15324
- const { __scopeDialog: n, ...r } = e, o = nn(fp, n);
15317
+ const { __scopeDialog: n, ...r } = e, o = tn(fp, n);
15325
15318
  return /* @__PURE__ */ d.jsx(je.p, { id: o.descriptionId, ...r, ref: t });
15326
15319
  }
15327
15320
  );
15328
15321
  pp.displayName = fp;
15329
15322
  var hp = "DialogClose", mp = x.forwardRef(
15330
15323
  (e, t) => {
15331
- const { __scopeDialog: n, ...r } = e, o = nn(hp, n);
15324
+ const { __scopeDialog: n, ...r } = e, o = tn(hp, n);
15332
15325
  return /* @__PURE__ */ d.jsx(
15333
15326
  je.button,
15334
15327
  {
@@ -15458,7 +15451,7 @@ function eC(e, [t, n]) {
15458
15451
  function tC(e, t) {
15459
15452
  return x.useReducer((n, r) => t[n][r] ?? n, e);
15460
15453
  }
15461
- var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC, Xt] = Tp($a), kp = x.forwardRef(
15454
+ var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC, Yt] = Tp($a), kp = x.forwardRef(
15462
15455
  (e, t) => {
15463
15456
  const {
15464
15457
  __scopeScrollArea: n,
@@ -15511,7 +15504,7 @@ var $a = "ScrollArea", [Tp, zT] = Fn($a), [nC, Xt] = Tp($a), kp = x.forwardRef(
15511
15504
  kp.displayName = $a;
15512
15505
  var Ep = "ScrollAreaViewport", Ip = x.forwardRef(
15513
15506
  (e, t) => {
15514
- const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = Xt(Ep, n), a = x.useRef(null), c = it(t, a, i.onViewportChange);
15507
+ const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = Yt(Ep, n), a = x.useRef(null), c = it(t, a, i.onViewportChange);
15515
15508
  return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
15516
15509
  /* @__PURE__ */ d.jsx(
15517
15510
  "style",
@@ -15553,7 +15546,7 @@ var Ep = "ScrollAreaViewport", Ip = x.forwardRef(
15553
15546
  Ip.displayName = Ep;
15554
15547
  var gn = "ScrollAreaScrollbar", Fa = x.forwardRef(
15555
15548
  (e, t) => {
15556
- const { forceMount: n, ...r } = e, o = Xt(gn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
15549
+ const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
15557
15550
  return x.useEffect(() => (a ? s(!0) : i(!0), () => {
15558
15551
  a ? s(!1) : i(!1);
15559
15552
  }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(rC, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ d.jsx(oC, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ d.jsx(Rp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ d.jsx(za, { ...r, ref: t }) : null;
@@ -15561,7 +15554,7 @@ var gn = "ScrollAreaScrollbar", Fa = x.forwardRef(
15561
15554
  );
15562
15555
  Fa.displayName = gn;
15563
15556
  var rC = x.forwardRef((e, t) => {
15564
- const { forceMount: n, ...r } = e, o = Xt(gn, e.__scopeScrollArea), [s, i] = x.useState(!1);
15557
+ const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), [s, i] = x.useState(!1);
15565
15558
  return x.useEffect(() => {
15566
15559
  const a = o.scrollArea;
15567
15560
  let c = 0;
@@ -15584,7 +15577,7 @@ var rC = x.forwardRef((e, t) => {
15584
15577
  }
15585
15578
  ) });
15586
15579
  }), oC = x.forwardRef((e, t) => {
15587
- const { forceMount: n, ...r } = e, o = Xt(gn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Bs(() => c("SCROLL_END"), 100), [a, c] = tC("hidden", {
15580
+ const { forceMount: n, ...r } = e, o = Yt(gn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Bs(() => c("SCROLL_END"), 100), [a, c] = tC("hidden", {
15588
15581
  hidden: {
15589
15582
  SCROLL: "scrolling"
15590
15583
  },
@@ -15628,7 +15621,7 @@ var rC = x.forwardRef((e, t) => {
15628
15621
  }
15629
15622
  ) });
15630
15623
  }), Rp = x.forwardRef((e, t) => {
15631
- const n = Xt(gn, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = x.useState(!1), a = e.orientation === "horizontal", c = Bs(() => {
15624
+ const n = Yt(gn, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = x.useState(!1), a = e.orientation === "horizontal", c = Bs(() => {
15632
15625
  if (n.viewport) {
15633
15626
  const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
15634
15627
  i(a ? l : u);
@@ -15643,7 +15636,7 @@ var rC = x.forwardRef((e, t) => {
15643
15636
  }
15644
15637
  ) });
15645
15638
  }), za = x.forwardRef((e, t) => {
15646
- const { orientation: n = "vertical", ...r } = e, o = Xt(gn, e.__scopeScrollArea), s = x.useRef(null), i = x.useRef(0), [a, c] = x.useState({
15639
+ const { orientation: n = "vertical", ...r } = e, o = Yt(gn, e.__scopeScrollArea), s = x.useRef(null), i = x.useRef(0), [a, c] = x.useState({
15647
15640
  content: 0,
15648
15641
  viewport: 0,
15649
15642
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
@@ -15697,7 +15690,7 @@ var rC = x.forwardRef((e, t) => {
15697
15690
  }
15698
15691
  ) : null;
15699
15692
  }), sC = x.forwardRef((e, t) => {
15700
- const { sizes: n, onSizesChange: r, ...o } = e, s = Xt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarXChange);
15693
+ const { sizes: n, onSizesChange: r, ...o } = e, s = Yt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarXChange);
15701
15694
  return x.useEffect(() => {
15702
15695
  c.current && a(getComputedStyle(c.current));
15703
15696
  }, [c]), /* @__PURE__ */ d.jsx(
@@ -15736,7 +15729,7 @@ var rC = x.forwardRef((e, t) => {
15736
15729
  }
15737
15730
  );
15738
15731
  }), iC = x.forwardRef((e, t) => {
15739
- const { sizes: n, onSizesChange: r, ...o } = e, s = Xt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarYChange);
15732
+ const { sizes: n, onSizesChange: r, ...o } = e, s = Yt(gn, e.__scopeScrollArea), [i, a] = x.useState(), c = x.useRef(null), l = it(t, c, s.onScrollbarYChange);
15740
15733
  return x.useEffect(() => {
15741
15734
  c.current && a(getComputedStyle(c.current));
15742
15735
  }, [c]), /* @__PURE__ */ d.jsx(
@@ -15788,7 +15781,7 @@ var rC = x.forwardRef((e, t) => {
15788
15781
  onWheelScroll: u,
15789
15782
  onResize: f,
15790
15783
  ...p
15791
- } = e, h = Xt(gn, n), [m, v] = x.useState(null), g = it(t, (_) => v(_)), w = x.useRef(null), y = x.useRef(""), C = h.viewport, k = r.content - r.viewport, S = bt(u), b = bt(c), T = Bs(f, 10);
15784
+ } = e, h = Yt(gn, n), [m, v] = x.useState(null), g = it(t, (_) => v(_)), w = x.useRef(null), y = x.useRef(""), C = h.viewport, k = r.content - r.viewport, S = bt(u), b = bt(c), T = Bs(f, 10);
15792
15785
  function I(_) {
15793
15786
  if (w.current) {
15794
15787
  const j = _.clientX - w.current.left, D = _.clientY - w.current.top;
@@ -15836,7 +15829,7 @@ var rC = x.forwardRef((e, t) => {
15836
15829
  }
15837
15830
  ), lC = x.forwardRef(
15838
15831
  (e, t) => {
15839
- const { __scopeScrollArea: n, style: r, ...o } = e, s = Xt(fs, n), i = Ap(fs, n), { onThumbPositionChange: a } = i, c = it(
15832
+ const { __scopeScrollArea: n, style: r, ...o } = e, s = Yt(fs, n), i = Ap(fs, n), { onThumbPositionChange: a } = i, c = it(
15840
15833
  t,
15841
15834
  (f) => i.onThumbChange(f)
15842
15835
  ), l = x.useRef(void 0), u = Bs(() => {
@@ -15876,13 +15869,13 @@ var rC = x.forwardRef((e, t) => {
15876
15869
  jp.displayName = fs;
15877
15870
  var Ba = "ScrollAreaCorner", _p = x.forwardRef(
15878
15871
  (e, t) => {
15879
- const n = Xt(Ba, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
15872
+ const n = Yt(Ba, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
15880
15873
  return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(cC, { ...e, ref: t }) : null;
15881
15874
  }
15882
15875
  );
15883
15876
  _p.displayName = Ba;
15884
15877
  var cC = x.forwardRef((e, t) => {
15885
- const { __scopeScrollArea: n, ...r } = e, o = Xt(Ba, n), [s, i] = x.useState(0), [a, c] = x.useState(0), l = !!(s && a);
15878
+ const { __scopeScrollArea: n, ...r } = e, o = Yt(Ba, n), [s, i] = x.useState(0), [a, c] = x.useState(0), l = !!(s && a);
15886
15879
  return Tr(o.scrollbarX, () => {
15887
15880
  var f;
15888
15881
  const u = ((f = o.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
@@ -16919,14 +16912,14 @@ function zi({
16919
16912
  ), ot = ze(() => {
16920
16913
  const L = He, X = ft.trim().toLowerCase();
16921
16914
  return X ? S ? L.filter((oe) => S(oe, X)) : L.filter((oe) => `${oe.label} ${oe.secondaryLabel ?? ""}`.toLowerCase().includes(X)) : L;
16922
- }, [C, ft, S]), Xe = Mt === "shared", rn = Xe ? D : U, Wt = T ? rn.filter(T) : rn, Vt = ze(() => {
16915
+ }, [C, ft, S]), Xe = Mt === "shared", nn = Xe ? D : U, Wt = T ? nn.filter(T) : nn, Vt = ze(() => {
16923
16916
  const L = Array.isArray(b) ? b : [];
16924
16917
  if (L.length === 0 || Xe) return null;
16925
16918
  const X = "Default", oe = (ge) => {
16926
16919
  if (!ge) return "Older";
16927
16920
  try {
16928
- const Fe = ge.endsWith("Z") || ge.includes("+") ? ge : `${ge}Z`, Pe = new Date(Fe), Le = /* @__PURE__ */ new Date(), xt = new Date(Le.getFullYear(), Le.getMonth(), Le.getDate()), on = new Date(Pe.getFullYear(), Pe.getMonth(), Pe.getDate()), Kn = Math.floor(
16929
- (xt.getTime() - on.getTime()) / (1e3 * 60 * 60 * 24)
16921
+ const Fe = ge.endsWith("Z") || ge.includes("+") ? ge : `${ge}Z`, Pe = new Date(Fe), Le = /* @__PURE__ */ new Date(), xt = new Date(Le.getFullYear(), Le.getMonth(), Le.getDate()), rn = new Date(Pe.getFullYear(), Pe.getMonth(), Pe.getDate()), Kn = Math.floor(
16922
+ (xt.getTime() - rn.getTime()) / (1e3 * 60 * 60 * 24)
16930
16923
  );
16931
16924
  return Kn === 0 ? "Today" : Kn === 1 ? "Yesterday" : Kn <= 7 ? "Last 7 Days" : "Older";
16932
16925
  } catch {
@@ -16939,8 +16932,8 @@ function zi({
16939
16932
  if (Fe === "menuItem")
16940
16933
  return ge.menuItem || X;
16941
16934
  if (Fe === "updatedAt" || Fe === "createdAt") {
16942
- const on = Fe === "updatedAt" ? ge.updatedAt : ge.createdAt;
16943
- return oe(on);
16935
+ const rn = Fe === "updatedAt" ? ge.updatedAt : ge.createdAt;
16936
+ return oe(rn);
16944
16937
  }
16945
16938
  const Pe = ge[Fe];
16946
16939
  return typeof Pe == "string" ? Pe || X : typeof Pe == "number" ? String(Pe) : Pe == null ? X : String(Pe);
@@ -16954,10 +16947,10 @@ function zi({
16954
16947
  if (Fe.length === 0) return ge;
16955
16948
  const [Pe, ...Le] = Fe, xt = we(ge, Pe);
16956
16949
  if (Le.length === 0) return xt;
16957
- const on = {};
16950
+ const rn = {};
16958
16951
  return Object.entries(xt).forEach(([Kn, rh]) => {
16959
- on[Kn] = et(rh, Le);
16960
- }), on;
16952
+ rn[Kn] = et(rh, Le);
16953
+ }), rn;
16961
16954
  }, Ue = (ge) => {
16962
16955
  if (Array.isArray(ge)) {
16963
16956
  ge.sort(
@@ -17096,8 +17089,8 @@ function zi({
17096
17089
  if (ge === Fe) return -1;
17097
17090
  const Pe = q(Ae), Le = q(ge);
17098
17091
  if (Pe !== null || Le !== null) {
17099
- const xt = Pe ?? Number.MAX_SAFE_INTEGER, on = Le ?? Number.MAX_SAFE_INTEGER;
17100
- return xt - on;
17092
+ const xt = Pe ?? Number.MAX_SAFE_INTEGER, rn = Le ?? Number.MAX_SAFE_INTEGER;
17093
+ return xt - rn;
17101
17094
  }
17102
17095
  return Ae.localeCompare(ge);
17103
17096
  }).map(([Ae, ge]) => {