teodor-new-chat-ui 4.3.324 → 4.3.325

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
@@ -285,7 +285,7 @@ function Am() {
285
285
  } finally {
286
286
  q = !1, z.current = at, W(), Error.prepareStackTrace = Xe;
287
287
  }
288
- var ke = I ? I.displayName || I.name : "", Re = ke ? D(ke) : "";
288
+ var Te = I ? I.displayName || I.name : "", Re = Te ? D(Te) : "";
289
289
  return typeof I == "function" && J.set(I, Re), Re;
290
290
  }
291
291
  function Ee(I, V, ie) {
@@ -411,7 +411,7 @@ function Am() {
411
411
  });
412
412
  }
413
413
  }
414
- function dn(I, V) {
414
+ function fn(I, V) {
415
415
  {
416
416
  var ie = function() {
417
417
  Tt || (Tt = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", V));
@@ -464,7 +464,7 @@ function Am() {
464
464
  }
465
465
  if (Le || Nt) {
466
466
  var vt = typeof I == "function" ? I.displayName || I.name || "Unknown" : I;
467
- Le && Et(Be, vt), Nt && dn(Be, vt);
467
+ Le && Et(Be, vt), Nt && fn(Be, vt);
468
468
  }
469
469
  return Ze(I, Le, Nt, Xe, Ce, pt.current, Be);
470
470
  }
@@ -599,8 +599,8 @@ Check the top-level render call using <` + ie + ">.");
599
599
  if (fe !== void 0)
600
600
  if (Ce)
601
601
  if (it(fe)) {
602
- for (var ke = 0; ke < fe.length; ke++)
603
- be(fe[ke], I);
602
+ for (var Te = 0; Te < fe.length; Te++)
603
+ be(fe[Te], I);
604
604
  Object.freeze && Object.freeze(fe);
605
605
  } else
606
606
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -644,11 +644,11 @@ function Kc(e, t) {
644
644
  const { toString: _m } = Object.prototype, { getPrototypeOf: ia } = Object, { iterator: gs, toStringTag: qc } = Symbol, xs = /* @__PURE__ */ ((e) => (t) => {
645
645
  const n = _m.call(t);
646
646
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
647
- })(/* @__PURE__ */ Object.create(null)), cn = (e) => (e = e.toLowerCase(), (t) => xs(t) === e), ys = (e) => (t) => typeof t === e, { isArray: br } = Array, xr = ys("undefined");
647
+ })(/* @__PURE__ */ Object.create(null)), un = (e) => (e = e.toLowerCase(), (t) => xs(t) === e), ys = (e) => (t) => typeof t === e, { isArray: br } = Array, xr = ys("undefined");
648
648
  function no(e) {
649
649
  return e !== null && !xr(e) && e.constructor !== null && !xr(e.constructor) && zt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
650
650
  }
651
- const Gc = cn("ArrayBuffer");
651
+ const Gc = un("ArrayBuffer");
652
652
  function jm(e) {
653
653
  let t;
654
654
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Gc(e.buffer), t;
@@ -666,11 +666,11 @@ const Pm = ys("string"), zt = ys("function"), Yc = ys("number"), ro = (e) => e !
666
666
  } catch {
667
667
  return !1;
668
668
  }
669
- }, Dm = cn("Date"), Lm = cn("File"), $m = cn("Blob"), Fm = cn("FileList"), Bm = (e) => ro(e) && zt(e.pipe), zm = (e) => {
669
+ }, Dm = un("Date"), Lm = un("File"), $m = un("Blob"), Fm = un("FileList"), Bm = (e) => ro(e) && zt(e.pipe), zm = (e) => {
670
670
  let t;
671
671
  return e && (typeof FormData == "function" && e instanceof FormData || zt(e.append) && ((t = xs(e)) === "formdata" || // detect form-data instance
672
672
  t === "object" && zt(e.toString) && e.toString() === "[object FormData]"));
673
- }, Hm = cn("URLSearchParams"), [Um, Wm, Vm, Km] = ["ReadableStream", "Request", "Response", "Headers"].map(cn), qm = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
673
+ }, Hm = un("URLSearchParams"), [Um, Wm, Vm, Km] = ["ReadableStream", "Request", "Response", "Headers"].map(un), qm = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
674
674
  function oo(e, t, { allOwnKeys: n = !1 } = {}) {
675
675
  if (e === null || typeof e > "u")
676
676
  return;
@@ -750,12 +750,12 @@ const Gm = (e, t, n, { allOwnKeys: r } = {}) => (oo(t, (o, s) => {
750
750
  for (; (n = e.exec(t)) !== null; )
751
751
  r.push(n);
752
752
  return r;
753
- }, rg = cn("HTMLFormElement"), og = (e) => e.toLowerCase().replace(
753
+ }, rg = un("HTMLFormElement"), og = (e) => e.toLowerCase().replace(
754
754
  /[-_\s]([a-z\d])(\w*)/g,
755
755
  function(n, r, o) {
756
756
  return r.toUpperCase() + o;
757
757
  }
758
- ), ll = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sg = cn("RegExp"), Zc = (e, t) => {
758
+ ), ll = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), sg = un("RegExp"), Zc = (e, t) => {
759
759
  const n = Object.getOwnPropertyDescriptors(e), r = {};
760
760
  oo(n, (o, s) => {
761
761
  let i;
@@ -807,7 +807,7 @@ const dg = (e) => {
807
807
  return r;
808
808
  };
809
809
  return n(e, 0);
810
- }, fg = cn("AsyncFunction"), pg = (e) => e && (ro(e) || zt(e)) && zt(e.then) && zt(e.catch), Qc = ((e, t) => e ? setImmediate : t ? ((n, r) => (Wn.addEventListener("message", ({ source: o, data: s }) => {
810
+ }, fg = un("AsyncFunction"), pg = (e) => e && (ro(e) || zt(e)) && zt(e.then) && zt(e.catch), Qc = ((e, t) => e ? setImmediate : t ? ((n, r) => (Wn.addEventListener("message", ({ source: o, data: s }) => {
811
811
  o === Wn && s === n && r.length && r.shift()();
812
812
  }, !1), (o) => {
813
813
  r.push(o), Wn.postMessage(n, "*");
@@ -848,7 +848,7 @@ const dg = (e) => {
848
848
  inherits: Xm,
849
849
  toFlatObject: Jm,
850
850
  kindOf: xs,
851
- kindOfTest: cn,
851
+ kindOfTest: un,
852
852
  endsWith: Zm,
853
853
  toArray: Qm,
854
854
  forEachEntry: tg,
@@ -2069,7 +2069,7 @@ function tx(e, t, n) {
2069
2069
  const Po = {
2070
2070
  assertOptions: tx,
2071
2071
  validators: ws
2072
- }, fn = Po.validators;
2072
+ }, pn = Po.validators;
2073
2073
  let Kn = class {
2074
2074
  constructor(t) {
2075
2075
  this.defaults = t || {}, this.interceptors = {
@@ -2106,17 +2106,17 @@ let Kn = class {
2106
2106
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Gn(this.defaults, n);
2107
2107
  const { transitional: r, paramsSerializer: o, headers: s } = n;
2108
2108
  r !== void 0 && Po.assertOptions(r, {
2109
- silentJSONParsing: fn.transitional(fn.boolean),
2110
- forcedJSONParsing: fn.transitional(fn.boolean),
2111
- clarifyTimeoutError: fn.transitional(fn.boolean)
2109
+ silentJSONParsing: pn.transitional(pn.boolean),
2110
+ forcedJSONParsing: pn.transitional(pn.boolean),
2111
+ clarifyTimeoutError: pn.transitional(pn.boolean)
2112
2112
  }, !1), o != null && (P.isFunction(o) ? n.paramsSerializer = {
2113
2113
  serialize: o
2114
2114
  } : Po.assertOptions(o, {
2115
- encode: fn.function,
2116
- serialize: fn.function
2115
+ encode: pn.function,
2116
+ serialize: pn.function
2117
2117
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Po.assertOptions(n, {
2118
- baseUrl: fn.spelling("baseURL"),
2119
- withXsrfToken: fn.spelling("withXSRFToken")
2118
+ baseUrl: pn.spelling("baseURL"),
2119
+ withXsrfToken: pn.spelling("withXSRFToken")
2120
2120
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2121
2121
  let i = s && P.merge(
2122
2122
  s.common,
@@ -2427,7 +2427,7 @@ Qt.interceptors.response.use(
2427
2427
  },
2428
2428
  (e) => Promise.reject(e)
2429
2429
  );
2430
- async function rn(e, t) {
2430
+ async function on(e, t) {
2431
2431
  return Qt.defaults.baseURL ? (await Qt.get(e, t)).data : Promise.reject(new Error("API base URL is not configured"));
2432
2432
  }
2433
2433
  async function Il(e, t, n) {
@@ -2463,7 +2463,7 @@ class dx {
2463
2463
  }
2464
2464
  // ---- Thread Management ----
2465
2465
  async listThreads() {
2466
- const t = await rn("/threads"), n = Gt(t);
2466
+ const t = await on("/threads"), n = Gt(t);
2467
2467
  return (n == null ? void 0 : n.items) ?? (t == null ? void 0 : t.items) ?? [];
2468
2468
  }
2469
2469
  async createThread(t) {
@@ -2479,24 +2479,24 @@ class dx {
2479
2479
  return Gt(n);
2480
2480
  }
2481
2481
  async threadInfo(t) {
2482
- const n = await rn(`/threads/${t}/info`);
2482
+ const n = await on(`/threads/${t}/info`);
2483
2483
  return Gt(n);
2484
2484
  }
2485
2485
  // ---- Agents ----
2486
2486
  async listAgents() {
2487
- const t = await rn("/agents"), n = Gt(t);
2487
+ const t = await on("/agents"), n = Gt(t);
2488
2488
  return (n == null ? void 0 : n.items) ?? [];
2489
2489
  }
2490
2490
  async getAgent(t) {
2491
- const n = await rn(`/agents/${t}`);
2491
+ const n = await on(`/agents/${t}`);
2492
2492
  return Gt(n);
2493
2493
  }
2494
2494
  async getAgentSchema(t) {
2495
- const n = await rn(`/agents/${t}/schema`);
2495
+ const n = await on(`/agents/${t}/schema`);
2496
2496
  return Gt(n);
2497
2497
  }
2498
2498
  async getState(t) {
2499
- const n = await rn(`/threads/${t.threadId}/state`, {
2499
+ const n = await on(`/threads/${t.threadId}/state`, {
2500
2500
  params: {
2501
2501
  thread_id: t.threadId,
2502
2502
  checkpoint_id: t.checkpointId,
@@ -2506,7 +2506,7 @@ class dx {
2506
2506
  return Gt(n);
2507
2507
  }
2508
2508
  async getStateHistory(t) {
2509
- const n = await rn(`/threads/${t.threadId}/state/history`, {
2509
+ const n = await on(`/threads/${t.threadId}/state/history`, {
2510
2510
  params: {
2511
2511
  thread_id: t.threadId,
2512
2512
  checkpoint_id: t.checkpointId,
@@ -2522,7 +2522,7 @@ class dx {
2522
2522
  return Gt(n);
2523
2523
  }
2524
2524
  async listCheckpointSummaries(t) {
2525
- const n = await rn(`/threads/${t}/state/checkpoints`, {
2525
+ const n = await on(`/threads/${t}/state/checkpoints`, {
2526
2526
  params: {
2527
2527
  thread_id: t
2528
2528
  }
@@ -3162,7 +3162,7 @@ function zx(e = {}) {
3162
3162
  const nt = "Stream idle timeout";
3163
3163
  d(nt), B = "error", N = nt, X.abort(), (Ze = _ == null ? void 0 : _.onError) == null || Ze.call(_, nt);
3164
3164
  }
3165
- }, 5e3), dn = 1024 * 1024;
3165
+ }, 5e3), fn = 1024 * 1024;
3166
3166
  try {
3167
3167
  const Ze = Ye.headers.get("X-Thread-Id") || Ye.headers.get("x-thread-id"), nt = Ye.headers.get("X-Thread-Created") || Ye.headers.get("x-thread-created"), ht = Ze ?? null, U = String(nt ?? "").toLowerCase() === "true";
3168
3168
  for (C.current && !C.current.threadId && (C.current = {
@@ -3171,7 +3171,7 @@ function zx(e = {}) {
3171
3171
  }), (K = _ == null ? void 0 : _.onOpen) == null || K.call(_, { threadId: ht, created: U }); ; ) {
3172
3172
  const { value: se, done: M } = await et.read();
3173
3173
  if (M) break;
3174
- pt += It.decode(se, { stream: !0 }), pt.length > dn && (pt = "", console.warn("Stream buffer reset: exceeded 1MB"));
3174
+ pt += It.decode(se, { stream: !0 }), pt.length > fn && (pt = "", console.warn("Stream buffer reset: exceeded 1MB"));
3175
3175
  let Q;
3176
3176
  for (; (Q = pt.indexOf(`
3177
3177
 
@@ -4226,7 +4226,7 @@ function Qx({
4226
4226
  }, [Me]), wt(() => {
4227
4227
  a == null || a(h);
4228
4228
  }, [h, a]);
4229
- const dn = xe(
4229
+ const fn = xe(
4230
4230
  async (U, se) => {
4231
4231
  let M = z.current;
4232
4232
  const Q = (U == null ? void 0 : U.text) ?? "";
@@ -4327,12 +4327,12 @@ function Qx({
4327
4327
  isStreaming: ze,
4328
4328
  error: it,
4329
4329
  connectionState: ze ? "connected" : "idle",
4330
- submit: dn,
4331
- send: dn,
4330
+ submit: fn,
4331
+ send: fn,
4332
4332
  stop: je,
4333
4333
  setAuthToken: qe
4334
4334
  }),
4335
- [ze, it, dn, je, qe]
4335
+ [ze, it, fn, je, qe]
4336
4336
  );
4337
4337
  return /* @__PURE__ */ u.jsx(Cu.Provider, { value: Ze, children: /* @__PURE__ */ u.jsx(Tu.Provider, { value: nt, children: /* @__PURE__ */ u.jsx(ku.Provider, { value: ht, children: e }) }) });
4338
4338
  }
@@ -5045,7 +5045,7 @@ function Tn(e) {
5045
5045
  n((r) => r ?? String(Ry++));
5046
5046
  }, [e]), t ? `radix-${t}` : "";
5047
5047
  }
5048
- const Ey = ["top", "right", "bottom", "left"], Pn = Math.min, Wt = Math.max, qo = Math.round, wo = Math.floor, xn = (e) => ({
5048
+ const Ey = ["top", "right", "bottom", "left"], Pn = Math.min, Wt = Math.max, qo = Math.round, wo = Math.floor, yn = (e) => ({
5049
5049
  x: e,
5050
5050
  y: e
5051
5051
  }), Ny = {
@@ -5076,11 +5076,11 @@ function xa(e) {
5076
5076
  return e === "y" ? "height" : "width";
5077
5077
  }
5078
5078
  const _y = /* @__PURE__ */ new Set(["top", "bottom"]);
5079
- function mn(e) {
5079
+ function gn(e) {
5080
5080
  return _y.has(Rn(e)) ? "y" : "x";
5081
5081
  }
5082
5082
  function ya(e) {
5083
- return ga(mn(e));
5083
+ return ga(gn(e));
5084
5084
  }
5085
5085
  function jy(e, t, n) {
5086
5086
  n === void 0 && (n = !1);
@@ -5156,7 +5156,7 @@ function Vl(e, t, n) {
5156
5156
  reference: r,
5157
5157
  floating: o
5158
5158
  } = e;
5159
- const s = mn(t), i = ya(t), a = xa(i), l = Rn(t), c = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, p = r[a] / 2 - o[a] / 2;
5159
+ const s = gn(t), i = ya(t), a = xa(i), l = Rn(t), c = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, p = r[a] / 2 - o[a] / 2;
5160
5160
  let h;
5161
5161
  switch (l) {
5162
5162
  case "top":
@@ -5366,7 +5366,7 @@ const By = (e) => ({
5366
5366
  } = In(e, t);
5367
5367
  if ((n = s.arrow) != null && n.alignmentOffset)
5368
5368
  return {};
5369
- const g = Rn(o), w = mn(a), b = Rn(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = p || (b || !m ? [Go(a)] : Py(a)), C = x !== "none";
5369
+ const g = Rn(o), w = gn(a), b = Rn(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = p || (b || !m ? [Go(a)] : Py(a)), C = x !== "none";
5370
5370
  !p && C && S.push(...Ly(a, m, x, T));
5371
5371
  const k = [a, ...S], R = await Wr(t, y), A = [];
5372
5372
  let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -5380,9 +5380,9 @@ const By = (e) => ({
5380
5380
  }], !A.every((E) => E <= 0)) {
5381
5381
  var j, O;
5382
5382
  const E = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, F = k[E];
5383
- if (F && (!(f === "alignment" ? w !== mn(F) : !1) || // We leave the current main axis only if every placement on that axis
5383
+ if (F && (!(f === "alignment" ? w !== gn(F) : !1) || // We leave the current main axis only if every placement on that axis
5384
5384
  // overflows the main axis.
5385
- L.every((B) => mn(B.placement) === w ? B.overflows[0] > 0 : !0)))
5385
+ L.every((B) => gn(B.placement) === w ? B.overflows[0] > 0 : !0)))
5386
5386
  return {
5387
5387
  data: {
5388
5388
  index: E,
@@ -5399,7 +5399,7 @@ const By = (e) => ({
5399
5399
  var $;
5400
5400
  const X = ($ = L.filter((B) => {
5401
5401
  if (C) {
5402
- const N = mn(B.placement);
5402
+ const N = gn(B.placement);
5403
5403
  return N === w || // Create a bias to the `y` side axis due to horizontal
5404
5404
  // reading directions favoring greater width.
5405
5405
  N === "y";
@@ -5482,7 +5482,7 @@ async function Uy(e, t) {
5482
5482
  placement: n,
5483
5483
  platform: r,
5484
5484
  elements: o
5485
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Rn(n), a = Cr(n), l = mn(n) === "y", c = ju.has(i) ? -1 : 1, d = s && l ? -1 : 1, f = In(t, e);
5485
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = Rn(n), a = Cr(n), l = gn(n) === "y", c = ju.has(i) ? -1 : 1, d = s && l ? -1 : 1, f = In(t, e);
5486
5486
  let {
5487
5487
  mainAxis: p,
5488
5488
  crossAxis: h,
@@ -5554,7 +5554,7 @@ const Wy = function(e) {
5554
5554
  } = In(e, t), c = {
5555
5555
  x: n,
5556
5556
  y: r
5557
- }, d = await Wr(t, l), f = mn(Rn(o)), p = ga(f);
5557
+ }, d = await Wr(t, l), f = gn(Rn(o)), p = ga(f);
5558
5558
  let h = c[p], x = c[f];
5559
5559
  if (s) {
5560
5560
  const y = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", w = h + d[y], b = h - d[g];
@@ -5599,7 +5599,7 @@ const Wy = function(e) {
5599
5599
  } = In(e, t), d = {
5600
5600
  x: n,
5601
5601
  y: r
5602
- }, f = mn(o), p = ga(f);
5602
+ }, f = gn(o), p = ga(f);
5603
5603
  let h = d[p], x = d[f];
5604
5604
  const m = In(a, t), y = typeof m == "number" ? {
5605
5605
  mainAxis: m,
@@ -5639,7 +5639,7 @@ const Wy = function(e) {
5639
5639
  apply: l = () => {
5640
5640
  },
5641
5641
  ...c
5642
- } = In(e, t), d = await Wr(t, c), f = Rn(o), p = Cr(o), h = mn(o) === "y", {
5642
+ } = In(e, t), d = await Wr(t, c), f = Rn(o), p = Cr(o), h = gn(o) === "y", {
5643
5643
  width: x,
5644
5644
  height: m
5645
5645
  } = s.floating;
@@ -5675,17 +5675,17 @@ function Kt(e) {
5675
5675
  var t;
5676
5676
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5677
5677
  }
5678
- function vn(e) {
5678
+ function wn(e) {
5679
5679
  var t;
5680
5680
  return (t = (Pu(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5681
5681
  }
5682
5682
  function Pu(e) {
5683
5683
  return Ts() ? e instanceof Node || e instanceof Kt(e).Node : !1;
5684
5684
  }
5685
- function sn(e) {
5685
+ function an(e) {
5686
5686
  return Ts() ? e instanceof Element || e instanceof Kt(e).Element : !1;
5687
5687
  }
5688
- function yn(e) {
5688
+ function vn(e) {
5689
5689
  return Ts() ? e instanceof HTMLElement || e instanceof Kt(e).HTMLElement : !1;
5690
5690
  }
5691
5691
  function Gl(e) {
@@ -5698,7 +5698,7 @@ function io(e) {
5698
5698
  overflowX: n,
5699
5699
  overflowY: r,
5700
5700
  display: o
5701
- } = an(e);
5701
+ } = ln(e);
5702
5702
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Gy.has(o);
5703
5703
  }
5704
5704
  const Yy = /* @__PURE__ */ new Set(["table", "td", "th"]);
@@ -5717,12 +5717,12 @@ function ks(e) {
5717
5717
  }
5718
5718
  const Zy = ["transform", "translate", "scale", "rotate", "perspective"], Qy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ev = ["paint", "layout", "strict", "content"];
5719
5719
  function va(e) {
5720
- const t = wa(), n = sn(e) ? an(e) : e;
5720
+ const t = wa(), n = an(e) ? ln(e) : e;
5721
5721
  return Zy.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) || Qy.some((r) => (n.willChange || "").includes(r)) || ev.some((r) => (n.contain || "").includes(r));
5722
5722
  }
5723
5723
  function tv(e) {
5724
5724
  let t = On(e);
5725
- for (; yn(t) && !vr(t); ) {
5725
+ for (; vn(t) && !vr(t); ) {
5726
5726
  if (va(t))
5727
5727
  return t;
5728
5728
  if (ks(t))
@@ -5738,11 +5738,11 @@ const nv = /* @__PURE__ */ new Set(["html", "body", "#document"]);
5738
5738
  function vr(e) {
5739
5739
  return nv.has(Tr(e));
5740
5740
  }
5741
- function an(e) {
5741
+ function ln(e) {
5742
5742
  return Kt(e).getComputedStyle(e);
5743
5743
  }
5744
5744
  function Is(e) {
5745
- return sn(e) ? {
5745
+ return an(e) ? {
5746
5746
  scrollLeft: e.scrollLeft,
5747
5747
  scrollTop: e.scrollTop
5748
5748
  } : {
@@ -5758,13 +5758,13 @@ function On(e) {
5758
5758
  e.assignedSlot || // DOM Element detected.
5759
5759
  e.parentNode || // ShadowRoot detected.
5760
5760
  Gl(e) && e.host || // Fallback.
5761
- vn(e)
5761
+ wn(e)
5762
5762
  );
5763
5763
  return Gl(t) ? t.host : t;
5764
5764
  }
5765
5765
  function Ou(e) {
5766
5766
  const t = On(e);
5767
- return vr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : yn(t) && io(t) ? t : Ou(t);
5767
+ return vr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : vn(t) && io(t) ? t : Ou(t);
5768
5768
  }
5769
5769
  function Vr(e, t, n) {
5770
5770
  var r;
@@ -5780,9 +5780,9 @@ function $i(e) {
5780
5780
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
5781
5781
  }
5782
5782
  function Mu(e) {
5783
- const t = an(e);
5783
+ const t = ln(e);
5784
5784
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
5785
- const o = yn(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = qo(n) !== s || qo(r) !== i;
5785
+ const o = vn(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = qo(n) !== s || qo(r) !== i;
5786
5786
  return a && (n = s, r = i), {
5787
5787
  width: n,
5788
5788
  height: r,
@@ -5790,12 +5790,12 @@ function Mu(e) {
5790
5790
  };
5791
5791
  }
5792
5792
  function ba(e) {
5793
- return sn(e) ? e : e.contextElement;
5793
+ return an(e) ? e : e.contextElement;
5794
5794
  }
5795
5795
  function fr(e) {
5796
5796
  const t = ba(e);
5797
- if (!yn(t))
5798
- return xn(1);
5797
+ if (!vn(t))
5798
+ return yn(1);
5799
5799
  const n = t.getBoundingClientRect(), {
5800
5800
  width: r,
5801
5801
  height: o,
@@ -5807,7 +5807,7 @@ function fr(e) {
5807
5807
  y: a
5808
5808
  };
5809
5809
  }
5810
- const rv = /* @__PURE__ */ xn(0);
5810
+ const rv = /* @__PURE__ */ yn(0);
5811
5811
  function Du(e) {
5812
5812
  const t = Kt(e);
5813
5813
  return !wa() || !t.visualViewport ? rv : {
@@ -5821,15 +5821,15 @@ function ov(e, t, n) {
5821
5821
  function Xn(e, t, n, r) {
5822
5822
  t === void 0 && (t = !1), n === void 0 && (n = !1);
5823
5823
  const o = e.getBoundingClientRect(), s = ba(e);
5824
- let i = xn(1);
5825
- t && (r ? sn(r) && (i = fr(r)) : i = fr(e));
5826
- const a = ov(s, n, r) ? Du(s) : xn(0);
5824
+ let i = yn(1);
5825
+ t && (r ? an(r) && (i = fr(r)) : i = fr(e));
5826
+ const a = ov(s, n, r) ? Du(s) : yn(0);
5827
5827
  let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
5828
5828
  if (s) {
5829
- const p = Kt(s), h = r && sn(r) ? Kt(r) : r;
5829
+ const p = Kt(s), h = r && an(r) ? Kt(r) : r;
5830
5830
  let x = p, m = $i(x);
5831
5831
  for (; m && r && h !== x; ) {
5832
- const y = fr(m), g = m.getBoundingClientRect(), w = an(m), b = g.left + (m.clientLeft + parseFloat(w.paddingLeft)) * y.x, T = g.top + (m.clientTop + parseFloat(w.paddingTop)) * y.y;
5832
+ const y = fr(m), g = m.getBoundingClientRect(), w = ln(m), b = g.left + (m.clientLeft + parseFloat(w.paddingLeft)) * y.x, T = g.top + (m.clientTop + parseFloat(w.paddingTop)) * y.y;
5833
5833
  l *= y.x, c *= y.y, d *= y.x, f *= y.y, l += b, c += T, x = Kt(m), m = $i(x);
5834
5834
  }
5835
5835
  }
@@ -5842,7 +5842,7 @@ function Xn(e, t, n, r) {
5842
5842
  }
5843
5843
  function Rs(e, t) {
5844
5844
  const n = Is(e).scrollLeft;
5845
- return t ? t.left + n : Xn(vn(e)).left + n;
5845
+ return t ? t.left + n : Xn(wn(e)).left + n;
5846
5846
  }
5847
5847
  function Lu(e, t) {
5848
5848
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Rs(e, n), o = n.top + t.scrollTop;
@@ -5858,19 +5858,19 @@ function sv(e) {
5858
5858
  offsetParent: r,
5859
5859
  strategy: o
5860
5860
  } = e;
5861
- const s = o === "fixed", i = vn(r), a = t ? ks(t.floating) : !1;
5861
+ const s = o === "fixed", i = wn(r), a = t ? ks(t.floating) : !1;
5862
5862
  if (r === i || a && s)
5863
5863
  return n;
5864
5864
  let l = {
5865
5865
  scrollLeft: 0,
5866
5866
  scrollTop: 0
5867
- }, c = xn(1);
5868
- const d = xn(0), f = yn(r);
5869
- if ((f || !f && !s) && ((Tr(r) !== "body" || io(i)) && (l = Is(r)), yn(r))) {
5867
+ }, c = yn(1);
5868
+ const d = yn(0), f = vn(r);
5869
+ if ((f || !f && !s) && ((Tr(r) !== "body" || io(i)) && (l = Is(r)), vn(r))) {
5870
5870
  const h = Xn(r);
5871
5871
  c = fr(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
5872
5872
  }
5873
- const p = i && !f && !s ? Lu(i, l) : xn(0);
5873
+ const p = i && !f && !s ? Lu(i, l) : yn(0);
5874
5874
  return {
5875
5875
  width: n.width * c.x,
5876
5876
  height: n.height * c.y,
@@ -5882,10 +5882,10 @@ function iv(e) {
5882
5882
  return Array.from(e.getClientRects());
5883
5883
  }
5884
5884
  function av(e) {
5885
- const t = vn(e), n = Is(e), r = e.ownerDocument.body, o = Wt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Wt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5885
+ const t = wn(e), n = Is(e), r = e.ownerDocument.body, o = Wt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Wt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5886
5886
  let i = -n.scrollLeft + Rs(e);
5887
5887
  const a = -n.scrollTop;
5888
- return an(r).direction === "rtl" && (i += Wt(t.clientWidth, r.clientWidth) - o), {
5888
+ return ln(r).direction === "rtl" && (i += Wt(t.clientWidth, r.clientWidth) - o), {
5889
5889
  width: o,
5890
5890
  height: s,
5891
5891
  x: i,
@@ -5894,7 +5894,7 @@ function av(e) {
5894
5894
  }
5895
5895
  const Yl = 25;
5896
5896
  function lv(e, t) {
5897
- const n = Kt(e), r = vn(e), o = n.visualViewport;
5897
+ const n = Kt(e), r = wn(e), o = n.visualViewport;
5898
5898
  let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
5899
5899
  if (o) {
5900
5900
  s = o.width, i = o.height;
@@ -5915,7 +5915,7 @@ function lv(e, t) {
5915
5915
  }
5916
5916
  const cv = /* @__PURE__ */ new Set(["absolute", "fixed"]);
5917
5917
  function uv(e, t) {
5918
- const n = Xn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = yn(e) ? fr(e) : xn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
5918
+ const n = Xn(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = vn(e) ? fr(e) : yn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
5919
5919
  return {
5920
5920
  width: i,
5921
5921
  height: a,
@@ -5928,8 +5928,8 @@ function Xl(e, t, n) {
5928
5928
  if (t === "viewport")
5929
5929
  r = lv(e, n);
5930
5930
  else if (t === "document")
5931
- r = av(vn(e));
5932
- else if (sn(t))
5931
+ r = av(wn(e));
5932
+ else if (an(t))
5933
5933
  r = uv(t, n);
5934
5934
  else {
5935
5935
  const o = Du(e);
@@ -5944,17 +5944,17 @@ function Xl(e, t, n) {
5944
5944
  }
5945
5945
  function $u(e, t) {
5946
5946
  const n = On(e);
5947
- return n === t || !sn(n) || vr(n) ? !1 : an(n).position === "fixed" || $u(n, t);
5947
+ return n === t || !an(n) || vr(n) ? !1 : ln(n).position === "fixed" || $u(n, t);
5948
5948
  }
5949
5949
  function dv(e, t) {
5950
5950
  const n = t.get(e);
5951
5951
  if (n)
5952
5952
  return n;
5953
- let r = Vr(e, [], !1).filter((a) => sn(a) && Tr(a) !== "body"), o = null;
5954
- const s = an(e).position === "fixed";
5953
+ let r = Vr(e, [], !1).filter((a) => an(a) && Tr(a) !== "body"), o = null;
5954
+ const s = ln(e).position === "fixed";
5955
5955
  let i = s ? On(e) : e;
5956
- for (; sn(i) && !vr(i); ) {
5957
- const a = an(i), l = va(i);
5956
+ for (; an(i) && !vr(i); ) {
5957
+ const a = ln(i), l = va(i);
5958
5958
  !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && cv.has(o.position) || io(i) && !l && $u(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = On(i);
5959
5959
  }
5960
5960
  return t.set(e, r), r;
@@ -5988,12 +5988,12 @@ function pv(e) {
5988
5988
  };
5989
5989
  }
5990
5990
  function hv(e, t, n) {
5991
- const r = yn(t), o = vn(t), s = n === "fixed", i = Xn(e, !0, s, t);
5991
+ const r = vn(t), o = wn(t), s = n === "fixed", i = Xn(e, !0, s, t);
5992
5992
  let a = {
5993
5993
  scrollLeft: 0,
5994
5994
  scrollTop: 0
5995
5995
  };
5996
- const l = xn(0);
5996
+ const l = yn(0);
5997
5997
  function c() {
5998
5998
  l.x = Rs(o);
5999
5999
  }
@@ -6003,7 +6003,7 @@ function hv(e, t, n) {
6003
6003
  l.x = h.x + t.clientLeft, l.y = h.y + t.clientTop;
6004
6004
  } else o && c();
6005
6005
  s && !r && o && c();
6006
- const d = o && !r && !s ? Lu(o, a) : xn(0), f = i.left + a.scrollLeft - l.x - d.x, p = i.top + a.scrollTop - l.y - d.y;
6006
+ const d = o && !r && !s ? Lu(o, a) : yn(0), f = i.left + a.scrollLeft - l.x - d.x, p = i.top + a.scrollTop - l.y - d.y;
6007
6007
  return {
6008
6008
  x: f,
6009
6009
  y: p,
@@ -6012,24 +6012,24 @@ function hv(e, t, n) {
6012
6012
  };
6013
6013
  }
6014
6014
  function ui(e) {
6015
- return an(e).position === "static";
6015
+ return ln(e).position === "static";
6016
6016
  }
6017
6017
  function Jl(e, t) {
6018
- if (!yn(e) || an(e).position === "fixed")
6018
+ if (!vn(e) || ln(e).position === "fixed")
6019
6019
  return null;
6020
6020
  if (t)
6021
6021
  return t(e);
6022
6022
  let n = e.offsetParent;
6023
- return vn(e) === n && (n = n.ownerDocument.body), n;
6023
+ return wn(e) === n && (n = n.ownerDocument.body), n;
6024
6024
  }
6025
6025
  function Fu(e, t) {
6026
6026
  const n = Kt(e);
6027
6027
  if (ks(e))
6028
6028
  return n;
6029
- if (!yn(e)) {
6029
+ if (!vn(e)) {
6030
6030
  let o = On(e);
6031
6031
  for (; o && !vr(o); ) {
6032
- if (sn(o) && !ui(o))
6032
+ if (an(o) && !ui(o))
6033
6033
  return o;
6034
6034
  o = On(o);
6035
6035
  }
@@ -6053,18 +6053,18 @@ const mv = async function(e) {
6053
6053
  };
6054
6054
  };
6055
6055
  function gv(e) {
6056
- return an(e).direction === "rtl";
6056
+ return ln(e).direction === "rtl";
6057
6057
  }
6058
6058
  const xv = {
6059
6059
  convertOffsetParentRelativeRectToViewportRelativeRect: sv,
6060
- getDocumentElement: vn,
6060
+ getDocumentElement: wn,
6061
6061
  getClippingRect: fv,
6062
6062
  getOffsetParent: Fu,
6063
6063
  getElementRects: mv,
6064
6064
  getClientRects: iv,
6065
6065
  getDimensions: pv,
6066
6066
  getScale: fr,
6067
- isElement: sn,
6067
+ isElement: an,
6068
6068
  isRTL: gv
6069
6069
  };
6070
6070
  function Bu(e, t) {
@@ -6072,7 +6072,7 @@ function Bu(e, t) {
6072
6072
  }
6073
6073
  function yv(e, t) {
6074
6074
  let n = null, r;
6075
- const o = vn(e);
6075
+ const o = wn(e);
6076
6076
  function s() {
6077
6077
  var a;
6078
6078
  clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
@@ -6877,14 +6877,14 @@ var iw = sd, aw = ad, lw = function(e) {
6877
6877
  return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), uw(r, o, n, "aria-hidden")) : function() {
6878
6878
  return null;
6879
6879
  };
6880
- }, hn = function() {
6881
- return hn = Object.assign || function(t) {
6880
+ }, mn = function() {
6881
+ return mn = Object.assign || function(t) {
6882
6882
  for (var n, r = 1, o = arguments.length; r < o; r++) {
6883
6883
  n = arguments[r];
6884
6884
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
6885
6885
  }
6886
6886
  return t;
6887
- }, hn.apply(this, arguments);
6887
+ }, mn.apply(this, arguments);
6888
6888
  };
6889
6889
  function ud(e, t) {
6890
6890
  var n = {};
@@ -7005,7 +7005,7 @@ function yw(e, t) {
7005
7005
  function vw(e) {
7006
7006
  e === void 0 && (e = {});
7007
7007
  var t = yw(null);
7008
- return t.options = hn({ async: !0, ssr: !1 }, e), t;
7008
+ return t.options = mn({ async: !0, ssr: !1 }, e), t;
7009
7009
  }
7010
7010
  var dd = function(e) {
7011
7011
  var t = e.sideCar, n = ud(e, ["sideCar"]);
@@ -7014,7 +7014,7 @@ var dd = function(e) {
7014
7014
  var r = t.read();
7015
7015
  if (!r)
7016
7016
  throw new Error("Sidecar medium not found");
7017
- return v.createElement(r, hn({}, n));
7017
+ return v.createElement(r, mn({}, n));
7018
7018
  };
7019
7019
  dd.isSideCarExport = !0;
7020
7020
  function ww(e, t) {
@@ -7026,12 +7026,12 @@ var fd = vw(), mi = function() {
7026
7026
  onScrollCapture: mi,
7027
7027
  onWheelCapture: mi,
7028
7028
  onTouchMoveCapture: mi
7029
- }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, x = e.noIsolation, m = e.inert, y = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, b = e.gapMode, T = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = p, C = gw([n, t]), k = hn(hn({}, T), o);
7029
+ }), o = r[0], s = r[1], i = e.forwardProps, a = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, x = e.noIsolation, m = e.inert, y = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, b = e.gapMode, T = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = p, C = gw([n, t]), k = mn(mn({}, T), o);
7030
7030
  return v.createElement(
7031
7031
  v.Fragment,
7032
7032
  null,
7033
7033
  d && v.createElement(S, { sideCar: fd, removeScrollBar: c, shards: f, noRelative: h, noIsolation: x, inert: m, setCallbacks: s, allowPinchZoom: !!y, lockRef: n, gapMode: b }),
7034
- i ? v.cloneElement(v.Children.only(a), hn(hn({}, k), { ref: C })) : v.createElement(w, hn({}, k, { className: l, ref: C }), a)
7034
+ i ? v.cloneElement(v.Children.only(a), mn(mn({}, k), { ref: C })) : v.createElement(w, mn({}, k, { className: l, ref: C }), a)
7035
7035
  );
7036
7036
  });
7037
7037
  As.defaultProps = {
@@ -7346,7 +7346,7 @@ function Vw(e) {
7346
7346
  }
7347
7347
  const Kw = ww(fd, Ww);
7348
7348
  var _s = v.forwardRef(function(e, t) {
7349
- return v.createElement(As, hn({}, e, { ref: t, sideCar: Kw }));
7349
+ return v.createElement(As, mn({}, e, { ref: t, sideCar: Kw }));
7350
7350
  });
7351
7351
  _s.classNames = As.classNames;
7352
7352
  var zi = ["Enter", " "], qw = ["ArrowDown", "PageUp", "Home"], xd = ["ArrowUp", "PageDown", "End"], Gw = [...qw, ...xd], Yw = {
@@ -8553,7 +8553,7 @@ function St(e) {
8553
8553
  function he(e, t) {
8554
8554
  return st(e, S0(t, Ms));
8555
8555
  }
8556
- function on(e, t) {
8556
+ function sn(e, t) {
8557
8557
  const n = e($n, (r) => {
8558
8558
  n(), t(r);
8559
8559
  });
@@ -8584,7 +8584,7 @@ function Ie(e) {
8584
8584
  function le(e) {
8585
8585
  return (t) => pf(t, e);
8586
8586
  }
8587
- function pn(e) {
8587
+ function hn(e) {
8588
8588
  return (t) => () => {
8589
8589
  t(e);
8590
8590
  };
@@ -8601,7 +8601,7 @@ function H(e, ...t) {
8601
8601
  }
8602
8602
  };
8603
8603
  }
8604
- function gn(e, t) {
8604
+ function xn(e, t) {
8605
8605
  return (n) => (r) => {
8606
8606
  n(t = e(t, r));
8607
8607
  };
@@ -8734,7 +8734,7 @@ function kt(...e) {
8734
8734
  }
8735
8735
  };
8736
8736
  }
8737
- function Te(e, t = hf) {
8737
+ function ke(e, t = hf) {
8738
8738
  return H(e, dt(t));
8739
8739
  }
8740
8740
  function Ui(...e) {
@@ -8940,16 +8940,16 @@ function Yr(e, t) {
8940
8940
  if (!lt(e))
8941
8941
  return t === e.k ? e.v : t < e.k ? Yr(e.l, t) : Yr(e.r, t);
8942
8942
  }
8943
- function ln(e, t, n = "k") {
8943
+ function cn(e, t, n = "k") {
8944
8944
  if (lt(e))
8945
8945
  return [-1 / 0, void 0];
8946
8946
  if (Number(e[n]) === t)
8947
8947
  return [e.k, e.v];
8948
8948
  if (Number(e[n]) < t) {
8949
- const r = ln(e.r, t, n);
8949
+ const r = cn(e.r, t, n);
8950
8950
  return r[0] === -1 / 0 ? [e.k, e.v] : r;
8951
8951
  }
8952
- return ln(e.l, t, n);
8952
+ return cn(e.l, t, n);
8953
8953
  }
8954
8954
  function Vt(e, t, n) {
8955
8955
  return lt(e) ? vf(t, n, 1) : t === e.k ? Rt(e, { k: t, v: n }) : t < e.k ? uc(Rt(e, { l: Vt(e.l, t, n) })) : uc(Rt(e, { r: Vt(e.r, t, n) }));
@@ -8960,7 +8960,7 @@ function hr() {
8960
8960
  function Ls(e, t, n) {
8961
8961
  if (lt(e))
8962
8962
  return [];
8963
- const r = ln(e, t)[0];
8963
+ const r = cn(e, t)[0];
8964
8964
  return P0(Vi(e, r, n));
8965
8965
  }
8966
8966
  function Wi(e, t) {
@@ -9200,8 +9200,8 @@ function qi(e, t, n, r) {
9200
9200
  let o = e, s = 0, i = 0, a = 0, l = 0;
9201
9201
  if (t !== 0) {
9202
9202
  l = Qo(o, t - 1, Da), a = o[l].offset;
9203
- const c = ln(n, t - 1);
9204
- s = c[0], i = c[1], o.length && o[l].size === ln(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
9203
+ const c = cn(n, t - 1);
9204
+ s = c[0], i = c[1], o.length && o[l].size === cn(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
9205
9205
  } else
9206
9206
  o = [];
9207
9207
  for (const { start: c, value: d } of Ls(n, t, 1 / 0)) {
@@ -9229,16 +9229,16 @@ function U0(e) {
9229
9229
  const W0 = {
9230
9230
  offsetHeight: "height",
9231
9231
  offsetWidth: "width"
9232
- }, wn = Je(
9232
+ }, bn = Je(
9233
9233
  ([{ log: e }, { recalcInProgress: t }]) => {
9234
9234
  const n = Ue(), r = Ue(), o = Dt(r, 0), s = Ue(), i = Ue(), a = Z(0), l = Z([]), c = Z(void 0), d = Z(void 0), f = Z((S, C) => Mn(S, W0[C])), p = Z(void 0), h = Z(0), x = M0(), m = Dt(
9235
- H(n, De(l, e, h), gn(B0, x), dt()),
9235
+ H(n, De(l, e, h), xn(B0, x), dt()),
9236
9236
  x
9237
9237
  ), y = Dt(
9238
9238
  H(
9239
9239
  l,
9240
9240
  dt(),
9241
- gn((S, C) => ({ current: C, prev: S.current }), {
9241
+ xn((S, C) => ({ current: C, prev: S.current }), {
9242
9242
  current: [],
9243
9243
  prev: []
9244
9244
  }),
@@ -9295,7 +9295,7 @@ const W0 = {
9295
9295
  H(
9296
9296
  n,
9297
9297
  De(m),
9298
- gn(
9298
+ xn(
9299
9299
  ({ sizes: S }, [C, k]) => ({
9300
9300
  changed: k !== S,
9301
9301
  sizes: k
@@ -9308,7 +9308,7 @@ const W0 = {
9308
9308
  st(
9309
9309
  H(
9310
9310
  a,
9311
- gn(
9311
+ xn(
9312
9312
  (S, C) => ({ diff: S.prev - C, prev: C }),
9313
9313
  { diff: 0, prev: 0 }
9314
9314
  ),
@@ -9421,7 +9421,7 @@ const W0 = {
9421
9421
  if (R = Vn(C.sizeTree).reduce(($, { k: E, v: F }) => Vt($, Math.max(0, E + S), F), R), L !== -S) {
9422
9422
  const $ = Yr(C.sizeTree, O);
9423
9423
  R = Vt(R, 0, $);
9424
- const E = ln(C.sizeTree, -S + 1)[1];
9424
+ const E = cn(C.sizeTree, -S + 1)[1];
9425
9425
  R = Vt(R, 1, E);
9426
9426
  }
9427
9427
  return {
@@ -9493,14 +9493,14 @@ const kf = Je(
9493
9493
  H(
9494
9494
  kt(o, t, r),
9495
9495
  Ie(([l, c]) => $s(c)),
9496
- le(([l, c, d]) => ln(c.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
9496
+ le(([l, c, d]) => cn(c.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
9497
9497
  dt(),
9498
9498
  le((l) => [l])
9499
9499
  ),
9500
9500
  i
9501
9501
  ), { groupCounts: s, topItemsIndexes: i };
9502
9502
  },
9503
- ft(wn, Bt)
9503
+ ft(bn, Bt)
9504
9504
  ), Bn = Je(
9505
9505
  ([{ log: e }]) => {
9506
9506
  const t = Z(!1), n = qt(
@@ -9555,7 +9555,7 @@ const uo = Je(
9555
9555
  ]) => {
9556
9556
  const F = If(T), { align: _, behavior: X, offset: B } = F, N = k - 1, G = Tf(F, S, N);
9557
9557
  let Y = Jr(G, S.offsetTree, O) + A;
9558
- _ === "end" ? (Y += $ + ln(S.sizeTree, G)[1] - C + E, G === N && (Y += L)) : _ === "center" ? Y += ($ + ln(S.sizeTree, G)[1] - C + E) / 2 : Y -= R, B && (Y += B);
9558
+ _ === "end" ? (Y += $ + cn(S.sizeTree, G)[1] - C + E, G === N && (Y += L)) : _ === "center" ? Y += ($ + cn(S.sizeTree, G)[1] - C + E) / 2 : Y -= R, B && (Y += B);
9559
9559
  const oe = (ve) => {
9560
9560
  b(), ve ? (j("retrying to scroll to", { location: T }, Ut.DEBUG), Oe(h, T)) : (Oe(x, !0), j("list did not change, scroll successful", {}, Ut.DEBUG));
9561
9561
  };
@@ -9563,11 +9563,11 @@ const uo = Je(
9563
9563
  let ve = !1;
9564
9564
  w = st(t, (_e) => {
9565
9565
  ve = ve || _e;
9566
- }), y = on(d, () => {
9566
+ }), y = sn(d, () => {
9567
9567
  oe(ve);
9568
9568
  });
9569
9569
  } else
9570
- y = on(H(t, q0(150)), oe);
9570
+ y = sn(H(t, q0(150)), oe);
9571
9571
  return g = setTimeout(() => {
9572
9572
  b();
9573
9573
  }, 1200), Oe(l, !0), j("scrolling from index to", { behavior: X, index: G, top: Y }, Ut.DEBUG), { behavior: X, top: Y };
@@ -9581,7 +9581,7 @@ const uo = Je(
9581
9581
  topListHeight: m
9582
9582
  };
9583
9583
  },
9584
- ft(wn, Bt, Fn),
9584
+ ft(bn, Bt, Fn),
9585
9585
  { singleton: !0 }
9586
9586
  );
9587
9587
  function q0(e) {
@@ -9611,7 +9611,7 @@ const fo = Je(
9611
9611
  i,
9612
9612
  De(l),
9613
9613
  Ie(([d, f]) => !!f),
9614
- pn(!1)
9614
+ hn(!1)
9615
9615
  ),
9616
9616
  a
9617
9617
  ), he(
@@ -9619,7 +9619,7 @@ const fo = Je(
9619
9619
  i,
9620
9620
  De(l),
9621
9621
  Ie(([d, f]) => !!f),
9622
- pn(!1)
9622
+ hn(!1)
9623
9623
  ),
9624
9624
  c
9625
9625
  ), st(
@@ -9630,10 +9630,10 @@ const fo = Je(
9630
9630
  De(l)
9631
9631
  ),
9632
9632
  ([, d]) => {
9633
- on(o, () => {
9633
+ sn(o, () => {
9634
9634
  Oe(c, !0);
9635
9635
  }), La(4, () => {
9636
- on(r, () => {
9636
+ sn(r, () => {
9637
9637
  Oe(a, !0);
9638
9638
  }), Oe(s, d);
9639
9639
  });
@@ -9644,7 +9644,7 @@ const fo = Je(
9644
9644
  scrolledToInitialItem: a
9645
9645
  };
9646
9646
  },
9647
- ft(wn, Bt, uo, Bn),
9647
+ ft(bn, Bt, uo, Bn),
9648
9648
  { singleton: !0 }
9649
9649
  );
9650
9650
  function Rf(e, t) {
@@ -9662,17 +9662,17 @@ const Zr = "up", Lr = "down", G0 = "none", Y0 = {
9662
9662
  }, X0 = 0, po = Je(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
9663
9663
  const i = Z(!1), a = Z(!0), l = Ue(), c = Ue(), d = Z(4), f = Z(X0), p = Dt(
9664
9664
  H(
9665
- Ui(H(Te(o), Jn(1), pn(!0)), H(Te(o), Jn(1), pn(!1), lc(100))),
9665
+ Ui(H(ke(o), Jn(1), hn(!0)), H(ke(o), Jn(1), hn(!1), lc(100))),
9666
9666
  dt()
9667
9667
  ),
9668
9668
  !1
9669
9669
  ), h = Dt(
9670
- H(Ui(H(n, pn(!0)), H(n, pn(!1), lc(200))), dt()),
9670
+ H(Ui(H(n, hn(!0)), H(n, hn(!1), lc(200))), dt()),
9671
9671
  !1
9672
9672
  );
9673
9673
  he(
9674
9674
  H(
9675
- kt(Te(o), Te(f)),
9675
+ kt(ke(o), ke(f)),
9676
9676
  le(([w, b]) => w <= b),
9677
9677
  dt()
9678
9678
  ),
@@ -9680,8 +9680,8 @@ const Zr = "up", Lr = "down", G0 = "none", Y0 = {
9680
9680
  ), he(H(a, Cn(50)), c);
9681
9681
  const x = qt(
9682
9682
  H(
9683
- kt(r, Te(s), Te(t), Te(e), Te(d)),
9684
- gn((w, [{ scrollHeight: b, scrollTop: T }, S, C, k, R]) => {
9683
+ kt(r, ke(s), ke(t), ke(e), ke(d)),
9684
+ xn((w, [{ scrollHeight: b, scrollTop: T }, S, C, k, R]) => {
9685
9685
  const A = T + S - b > -R, L = {
9686
9686
  scrollHeight: b,
9687
9687
  scrollTop: T,
@@ -9708,7 +9708,7 @@ const Zr = "up", Lr = "down", G0 = "none", Y0 = {
9708
9708
  ), m = Dt(
9709
9709
  H(
9710
9710
  r,
9711
- gn(
9711
+ xn(
9712
9712
  (w, { scrollHeight: b, scrollTop: T, viewportHeight: S }) => {
9713
9713
  if (Rf(w.scrollHeight, b))
9714
9714
  return {
@@ -9752,20 +9752,20 @@ const Zr = "up", Lr = "down", G0 = "none", Y0 = {
9752
9752
  r,
9753
9753
  le(({ scrollTop: w }) => w),
9754
9754
  dt(),
9755
- gn(
9755
+ xn(
9756
9756
  (w, b) => St(h) ? { direction: w.direction, prevScrollTop: b } : { direction: b < w.prevScrollTop ? Zr : Lr, prevScrollTop: b },
9757
9757
  { direction: Lr, prevScrollTop: 0 }
9758
9758
  ),
9759
9759
  le((w) => w.direction)
9760
9760
  ),
9761
9761
  y
9762
- ), he(H(r, Cn(50), pn(G0)), y);
9762
+ ), he(H(r, Cn(50), hn(G0)), y);
9763
9763
  const g = Z(0);
9764
9764
  return he(
9765
9765
  H(
9766
9766
  p,
9767
9767
  Ie((w) => !w),
9768
- pn(0)
9768
+ hn(0)
9769
9769
  ),
9770
9770
  g
9771
9771
  ), he(
@@ -9774,7 +9774,7 @@ const Zr = "up", Lr = "down", G0 = "none", Y0 = {
9774
9774
  Cn(100),
9775
9775
  De(p),
9776
9776
  Ie(([w, b]) => !!b),
9777
- gn(([w, b], [T]) => [b, T], [0, 0]),
9777
+ xn(([w, b], [T]) => [b, T], [0, 0]),
9778
9778
  le(([w, b]) => b - w)
9779
9779
  ),
9780
9780
  g
@@ -9804,15 +9804,15 @@ const Fa = Je(
9804
9804
  const s = Ue(), i = Z(0), a = Z(0), l = Z(0), c = Dt(
9805
9805
  H(
9806
9806
  kt(
9807
- Te(r),
9808
- Te(o),
9809
- Te(n),
9810
- Te(s, Xr),
9811
- Te(l),
9812
- Te(i),
9813
- Te(t),
9814
- Te(e),
9815
- Te(a)
9807
+ ke(r),
9808
+ ke(o),
9809
+ ke(n),
9810
+ ke(s, Xr),
9811
+ ke(l),
9812
+ ke(i),
9813
+ ke(t),
9814
+ ke(e),
9815
+ ke(a)
9816
9816
  ),
9817
9817
  le(
9818
9818
  ([
@@ -9857,7 +9857,7 @@ function J0(e, t, n) {
9857
9857
  if ($s(t)) {
9858
9858
  const r = Cf(e, t);
9859
9859
  return [
9860
- { index: ln(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
9860
+ { index: cn(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
9861
9861
  { data: n == null ? void 0 : n[0], index: r, offset: 0, size: 0 }
9862
9862
  ];
9863
9863
  }
@@ -9955,14 +9955,14 @@ const or = Je(
9955
9955
  kt(
9956
9956
  h,
9957
9957
  x,
9958
- Te(l, Xr),
9959
- Te(o),
9960
- Te(r),
9961
- Te(c),
9958
+ ke(l, Xr),
9959
+ ke(o),
9960
+ ke(r),
9961
+ ke(c),
9962
9962
  d,
9963
- Te(m),
9964
- Te(t),
9965
- Te(n),
9963
+ ke(m),
9964
+ ke(t),
9965
+ ke(n),
9966
9966
  e
9967
9967
  ),
9968
9968
  Ie(([C, k, , R, , , , , , , A]) => {
@@ -10102,7 +10102,7 @@ const or = Je(
10102
10102
  return { endReached: b, initialItemCount: y, itemsRendered: g, listState: w, rangeChanged: S, startReached: T, topItemsIndexes: m, ...p };
10103
10103
  },
10104
10104
  ft(
10105
- wn,
10105
+ bn,
10106
10106
  kf,
10107
10107
  Fa,
10108
10108
  fo,
@@ -10121,7 +10121,7 @@ const or = Je(
10121
10121
  ),
10122
10122
  0
10123
10123
  );
10124
- return he(Te(i), s), { totalListHeight: i, totalListHeightChanged: s };
10124
+ return he(ke(i), s), { totalListHeight: i, totalListHeightChanged: s };
10125
10125
  },
10126
10126
  ft(Bt, or),
10127
10127
  { singleton: !0 }
@@ -10162,14 +10162,14 @@ const or = Je(
10162
10162
  De(t, l, n, s, o, r, a),
10163
10163
  De(e),
10164
10164
  le(([[f, p, h, x, m, y, g, w], b]) => {
10165
- const { align: T, behavior: S, calculateViewLocation: C = Q0, done: k, ...R } = f, A = Tf(f, p, x - 1), L = Jr(A, p.offsetTree, b) + m + y, j = L + ln(p.sizeTree, A)[1], O = w + y, $ = w + h - g, E = C({
10165
+ const { align: T, behavior: S, calculateViewLocation: C = Q0, done: k, ...R } = f, A = Tf(f, p, x - 1), L = Jr(A, p.offsetTree, b) + m + y, j = L + cn(p.sizeTree, A)[1], O = w + y, $ = w + h - g, E = C({
10166
10166
  itemBottom: j,
10167
10167
  itemTop: L,
10168
10168
  locationParams: { align: T, behavior: S, ...R },
10169
10169
  viewportBottom: $,
10170
10170
  viewportTop: O
10171
10171
  });
10172
- return E ? k && on(
10172
+ return E ? k && sn(
10173
10173
  H(
10174
10174
  i,
10175
10175
  Ie((F) => !F),
@@ -10187,7 +10187,7 @@ const or = Je(
10187
10187
  scrollIntoView: d
10188
10188
  };
10189
10189
  },
10190
- ft(wn, Bt, uo, or, Fn),
10190
+ ft(bn, Bt, uo, or, Fn),
10191
10191
  { singleton: !0 }
10192
10192
  );
10193
10193
  function gc(e) {
@@ -10216,8 +10216,8 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10216
10216
  }
10217
10217
  st(
10218
10218
  H(
10219
- kt(H(Te(t), Jn(1)), l),
10220
- De(Te(x), s, a, f),
10219
+ kt(H(ke(t), Jn(1)), l),
10220
+ De(ke(x), s, a, f),
10221
10221
  le(([[S, C], k, R, A, L]) => {
10222
10222
  let j = C && A, O = "auto";
10223
10223
  return j && (O = eS(k, R || L), j = j && !!O), { followOutputBehavior: O, shouldFollow: j, totalCount: S };
@@ -10227,22 +10227,22 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10227
10227
  ({ followOutputBehavior: S, totalCount: C }) => {
10228
10228
  y && (y(), y = null), St(n) ? requestAnimationFrame(() => {
10229
10229
  St(d)("following output to ", { totalCount: C }, Ut.DEBUG), g(S);
10230
- }) : y = on(e, () => {
10230
+ }) : y = sn(e, () => {
10231
10231
  St(d)("following output to ", { totalCount: C }, Ut.DEBUG), g(S), y = null;
10232
10232
  });
10233
10233
  }
10234
10234
  );
10235
10235
  function w(S) {
10236
- const C = on(o, (k) => {
10236
+ const C = sn(o, (k) => {
10237
10237
  S && !k.atBottom && k.notAtBottomBecause === "SIZE_INCREASED" && !y && (St(d)("scrolling to bottom due to increased size", {}, Ut.DEBUG), g("auto"));
10238
10238
  });
10239
10239
  setTimeout(C, 100);
10240
10240
  }
10241
10241
  st(
10242
10242
  H(
10243
- kt(Te(x), t, c),
10243
+ kt(ke(x), t, c),
10244
10244
  Ie(([S, , C]) => S && C),
10245
- gn(
10245
+ xn(
10246
10246
  ({ value: S }, [, C]) => ({ refreshed: S === C, value: C }),
10247
10247
  { refreshed: !1, value: 0 }
10248
10248
  ),
@@ -10254,26 +10254,26 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10254
10254
  }
10255
10255
  ), st(m, () => {
10256
10256
  w(St(x) !== !1);
10257
- }), st(kt(Te(x), o), ([S, C]) => {
10257
+ }), st(kt(ke(x), o), ([S, C]) => {
10258
10258
  S && !C.atBottom && C.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && g("auto");
10259
10259
  });
10260
10260
  const b = Z(null), T = Ue();
10261
10261
  return he(
10262
10262
  Ui(
10263
10263
  H(
10264
- Te(r),
10264
+ ke(r),
10265
10265
  le((S) => {
10266
10266
  var C;
10267
10267
  return (C = S == null ? void 0 : S.length) != null ? C : 0;
10268
10268
  })
10269
10269
  ),
10270
- H(Te(t))
10270
+ H(ke(t))
10271
10271
  ),
10272
10272
  T
10273
10273
  ), st(
10274
10274
  H(
10275
10275
  kt(H(T, Jn(1)), l),
10276
- De(Te(b), a, f, p),
10276
+ De(ke(b), a, f, p),
10277
10277
  le(([[S, C], k, R, A, L]) => C && R && (k == null ? void 0 : k({ context: L, totalCount: S, scrollingInProgress: A }))),
10278
10278
  Ie((S) => !!S),
10279
10279
  Cn(0)
@@ -10281,14 +10281,14 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10281
10281
  (S) => {
10282
10282
  y && (y(), y = null), St(n) ? requestAnimationFrame(() => {
10283
10283
  St(d)("scrolling into view", {}), Oe(h, S);
10284
- }) : y = on(e, () => {
10284
+ }) : y = sn(e, () => {
10285
10285
  St(d)("scrolling into view", {}), Oe(h, S), y = null;
10286
10286
  });
10287
10287
  }
10288
10288
  ), { autoscrollToBottom: m, followOutput: x, scrollIntoViewOnChange: b };
10289
10289
  },
10290
10290
  ft(
10291
- wn,
10291
+ bn,
10292
10292
  po,
10293
10293
  uo,
10294
10294
  fo,
@@ -10309,7 +10309,7 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10309
10309
  ),
10310
10310
  i
10311
10311
  ), {}),
10312
- ft(wn, fo, or, Bn),
10312
+ ft(bn, fo, or, Bn),
10313
10313
  { singleton: !0 }
10314
10314
  ), rS = Je(
10315
10315
  ([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
@@ -10322,7 +10322,7 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10322
10322
  le(([, o]) => ({ top: o }))
10323
10323
  ),
10324
10324
  (o) => {
10325
- on(
10325
+ sn(
10326
10326
  H(
10327
10327
  n,
10328
10328
  Jn(1),
@@ -10434,7 +10434,7 @@ const eS = (e, t) => typeof e == "function" ? gc(e(t)) : t && gc(e), tS = Je(
10434
10434
  restoreStateFrom: d
10435
10435
  };
10436
10436
  },
10437
- ft(wn, Bt, fo, Bn, Ba)
10437
+ ft(bn, Bt, fo, Bn, Ba)
10438
10438
  );
10439
10439
  function sS(e) {
10440
10440
  return { align: "start", index: 0, offset: e.scrollTop };
@@ -10467,7 +10467,7 @@ const aS = Pf(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10467
10467
  H(
10468
10468
  l,
10469
10469
  De(i),
10470
- gn(
10470
+ xn(
10471
10471
  ([, g, w, b], [{ bottom: T, items: S, offsetBottom: C, totalCount: k }, R]) => {
10472
10472
  const A = T + C;
10473
10473
  let L = 0;
@@ -10532,7 +10532,7 @@ const aS = Pf(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10532
10532
  }
10533
10533
  ), { deviation: e };
10534
10534
  },
10535
- ft(Bt, po, or, wn, Fn, Ma)
10535
+ ft(Bt, po, or, bn, Fn, Ma)
10536
10536
  ), cS = Je(
10537
10537
  ([
10538
10538
  e,
@@ -10636,7 +10636,7 @@ const aS = Pf(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
10636
10636
  ...y
10637
10637
  }),
10638
10638
  ft(
10639
- wn,
10639
+ bn,
10640
10640
  fo,
10641
10641
  Bt,
10642
10642
  oS,
@@ -11208,7 +11208,7 @@ const MS = /* @__PURE__ */ Je(
11208
11208
  ([, , , , D]) => {
11209
11209
  Oe(Y, !0), La(1, () => {
11210
11210
  Oe(j, D);
11211
- }), on(H(c), () => {
11211
+ }), sn(H(c), () => {
11212
11212
  Oe(t, [0, 0]), Oe(G, !0);
11213
11213
  });
11214
11214
  }
@@ -11216,7 +11216,7 @@ const MS = /* @__PURE__ */ Je(
11216
11216
  H(
11217
11217
  X,
11218
11218
  Ie((D) => D != null && D.scrollTop > 0),
11219
- pn(0)
11219
+ hn(0)
11220
11220
  ),
11221
11221
  k
11222
11222
  ), st(
@@ -11226,7 +11226,7 @@ const MS = /* @__PURE__ */ Je(
11226
11226
  Ie(([, D]) => D != null)
11227
11227
  ),
11228
11228
  ([, D]) => {
11229
- D && (Oe(A, D.viewport), Oe(L, D.item), Oe(F, D.gap), D.scrollTop > 0 && (Oe(B, !0), on(H(c, Jn(1)), (q) => {
11229
+ D && (Oe(A, D.viewport), Oe(L, D.item), Oe(F, D.gap), D.scrollTop > 0 && (Oe(B, !0), sn(H(c, Jn(1)), (q) => {
11230
11230
  Oe(B, !1);
11231
11231
  }), Oe(l, { top: D.scrollTop })));
11232
11232
  }
@@ -11239,10 +11239,10 @@ const MS = /* @__PURE__ */ Je(
11239
11239
  ), he(
11240
11240
  H(
11241
11241
  kt(
11242
- Te(A, Ro),
11243
- Te(L, Ro),
11244
- Te(F, (D, q) => D && D.column === q.column && D.row === q.row),
11245
- Te(c)
11242
+ ke(A, Ro),
11243
+ ke(L, Ro),
11244
+ ke(F, (D, q) => D && D.column === q.column && D.row === q.row),
11245
+ ke(c)
11246
11246
  ),
11247
11247
  le(([D, q, J, ae]) => ({
11248
11248
  gap: J,
@@ -11255,16 +11255,16 @@ const MS = /* @__PURE__ */ Je(
11255
11255
  ), he(
11256
11256
  H(
11257
11257
  kt(
11258
- Te(C),
11258
+ ke(C),
11259
11259
  r,
11260
- Te(F, OS),
11261
- Te(L, Ro),
11262
- Te(A, Ro),
11263
- Te(E),
11264
- Te(k),
11265
- Te(B),
11266
- Te(G),
11267
- Te(N)
11260
+ ke(F, OS),
11261
+ ke(L, Ro),
11262
+ ke(A, Ro),
11263
+ ke(E),
11264
+ ke(k),
11265
+ ke(B),
11266
+ ke(G),
11267
+ ke(N)
11268
11268
  ),
11269
11269
  Ie(([, , , , , , , D]) => !D),
11270
11270
  le(
@@ -11338,14 +11338,14 @@ const MS = /* @__PURE__ */ Je(
11338
11338
  )
11339
11339
  ), W = qt(
11340
11340
  H(
11341
- Te(R),
11341
+ ke(R),
11342
11342
  Ie(({ items: D }) => D.length > 0 && D[0].index === 0),
11343
- pn(0),
11343
+ hn(0),
11344
11344
  dt()
11345
11345
  )
11346
11346
  ), z = qt(
11347
11347
  H(
11348
- Te(R),
11348
+ ke(R),
11349
11349
  De(B),
11350
11350
  Ie(([{ items: D }, q]) => D.length > 0 && !q),
11351
11351
  le(([{ items: D }]) => ({
@@ -11450,7 +11450,7 @@ const DS = /* @__PURE__ */ Je(() => {
11450
11450
  ),
11451
11451
  p
11452
11452
  ), c = Z(!1), d = Z(!1);
11453
- return he(Te(d), c), {
11453
+ return he(ke(d), c), {
11454
11454
  components: t,
11455
11455
  computeItemKey: s,
11456
11456
  context: n,
@@ -11626,7 +11626,7 @@ function Tc(e, t, n) {
11626
11626
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Ut.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
11627
11627
  }
11628
11628
  async function Vf(e, t) {
11629
- return await rn(e, {
11629
+ return await on(e, {
11630
11630
  responseType: "blob",
11631
11631
  onDownloadProgress: (r) => {
11632
11632
  try {
@@ -11645,7 +11645,7 @@ async function KS(e, t) {
11645
11645
  const n = await Vf(`/files/${e}/download`, t), r = URL.createObjectURL(n);
11646
11646
  let o = `file_${e}`;
11647
11647
  try {
11648
- const i = await rn(`/files/${e}`);
11648
+ const i = await on(`/files/${e}`);
11649
11649
  o = (i == null ? void 0 : i.filename) ?? o;
11650
11650
  } catch {
11651
11651
  }
@@ -11654,7 +11654,7 @@ async function KS(e, t) {
11654
11654
  }
11655
11655
  async function qS(e, t = 50, n = 0) {
11656
11656
  const r = { limit: t, offset: n };
11657
- return e && (r.thread_id = e), await rn("/files", { params: r });
11657
+ return e && (r.thread_id = e), await on("/files", { params: r });
11658
11658
  }
11659
11659
  const GS = hs(
11660
11660
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
@@ -11923,7 +11923,7 @@ function sC() {
11923
11923
  function iC() {
11924
11924
  return oC() || sC();
11925
11925
  }
11926
- var Bs = "Dialog", [Xf, Lk] = En(Bs), [aC, un] = Xf(Bs), Jf = (e) => {
11926
+ var Bs = "Dialog", [Xf, Lk] = En(Bs), [aC, dn] = Xf(Bs), Jf = (e) => {
11927
11927
  const {
11928
11928
  __scopeDialog: t,
11929
11929
  children: n,
@@ -11957,7 +11957,7 @@ var Bs = "Dialog", [Xf, Lk] = En(Bs), [aC, un] = Xf(Bs), Jf = (e) => {
11957
11957
  Jf.displayName = Bs;
11958
11958
  var Zf = "DialogTrigger", Qf = v.forwardRef(
11959
11959
  (e, t) => {
11960
- const { __scopeDialog: n, ...r } = e, o = un(Zf, n), s = We(t, o.triggerRef);
11960
+ const { __scopeDialog: n, ...r } = e, o = dn(Zf, n), s = We(t, o.triggerRef);
11961
11961
  return /* @__PURE__ */ u.jsx(
11962
11962
  Ae.button,
11963
11963
  {
@@ -11977,20 +11977,20 @@ Qf.displayName = Zf;
11977
11977
  var Ka = "DialogPortal", [lC, ep] = Xf(Ka, {
11978
11978
  forceMount: void 0
11979
11979
  }), tp = (e) => {
11980
- const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = un(Ka, t);
11980
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = dn(Ka, t);
11981
11981
  return /* @__PURE__ */ u.jsx(lC, { scope: t, forceMount: n, children: v.Children.map(r, (i) => /* @__PURE__ */ u.jsx(en, { present: n || s.open, children: /* @__PURE__ */ u.jsx(Ns, { asChild: !0, container: o, children: i }) })) });
11982
11982
  };
11983
11983
  tp.displayName = Ka;
11984
11984
  var os = "DialogOverlay", np = v.forwardRef(
11985
11985
  (e, t) => {
11986
- const n = ep(os, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(os, e.__scopeDialog);
11986
+ const n = ep(os, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = dn(os, e.__scopeDialog);
11987
11987
  return s.modal ? /* @__PURE__ */ u.jsx(en, { present: r || s.open, children: /* @__PURE__ */ u.jsx(uC, { ...o, ref: t }) }) : null;
11988
11988
  }
11989
11989
  );
11990
11990
  np.displayName = os;
11991
11991
  var cC = gr("DialogOverlay.RemoveScroll"), uC = v.forwardRef(
11992
11992
  (e, t) => {
11993
- const { __scopeDialog: n, ...r } = e, o = un(os, n);
11993
+ const { __scopeDialog: n, ...r } = e, o = dn(os, n);
11994
11994
  return (
11995
11995
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
11996
11996
  // ie. when `Overlay` and `Content` are siblings
@@ -12007,14 +12007,14 @@ var cC = gr("DialogOverlay.RemoveScroll"), uC = v.forwardRef(
12007
12007
  }
12008
12008
  ), Zn = "DialogContent", rp = v.forwardRef(
12009
12009
  (e, t) => {
12010
- const n = ep(Zn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(Zn, e.__scopeDialog);
12010
+ const n = ep(Zn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = dn(Zn, e.__scopeDialog);
12011
12011
  return /* @__PURE__ */ u.jsx(en, { present: r || s.open, children: s.modal ? /* @__PURE__ */ u.jsx(dC, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(fC, { ...o, ref: t }) });
12012
12012
  }
12013
12013
  );
12014
12014
  rp.displayName = Zn;
12015
12015
  var dC = v.forwardRef(
12016
12016
  (e, t) => {
12017
- const n = un(Zn, e.__scopeDialog), r = v.useRef(null), o = We(t, n.contentRef, r);
12017
+ const n = dn(Zn, e.__scopeDialog), r = v.useRef(null), o = We(t, n.contentRef, r);
12018
12018
  return v.useEffect(() => {
12019
12019
  const s = r.current;
12020
12020
  if (s) return Ta(s);
@@ -12042,7 +12042,7 @@ var dC = v.forwardRef(
12042
12042
  }
12043
12043
  ), fC = v.forwardRef(
12044
12044
  (e, t) => {
12045
- const n = un(Zn, e.__scopeDialog), r = v.useRef(!1), o = v.useRef(!1);
12045
+ const n = dn(Zn, e.__scopeDialog), r = v.useRef(!1), o = v.useRef(!1);
12046
12046
  return /* @__PURE__ */ u.jsx(
12047
12047
  op,
12048
12048
  {
@@ -12065,7 +12065,7 @@ var dC = v.forwardRef(
12065
12065
  }
12066
12066
  ), op = v.forwardRef(
12067
12067
  (e, t) => {
12068
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = un(Zn, n), l = v.useRef(null), c = We(t, l);
12068
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = dn(Zn, n), l = v.useRef(null), c = We(t, l);
12069
12069
  return ma(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
12070
12070
  /* @__PURE__ */ u.jsx(
12071
12071
  Cs,
@@ -12098,21 +12098,21 @@ var dC = v.forwardRef(
12098
12098
  }
12099
12099
  ), qa = "DialogTitle", sp = v.forwardRef(
12100
12100
  (e, t) => {
12101
- const { __scopeDialog: n, ...r } = e, o = un(qa, n);
12101
+ const { __scopeDialog: n, ...r } = e, o = dn(qa, n);
12102
12102
  return /* @__PURE__ */ u.jsx(Ae.h2, { id: o.titleId, ...r, ref: t });
12103
12103
  }
12104
12104
  );
12105
12105
  sp.displayName = qa;
12106
12106
  var ip = "DialogDescription", ap = v.forwardRef(
12107
12107
  (e, t) => {
12108
- const { __scopeDialog: n, ...r } = e, o = un(ip, n);
12108
+ const { __scopeDialog: n, ...r } = e, o = dn(ip, n);
12109
12109
  return /* @__PURE__ */ u.jsx(Ae.p, { id: o.descriptionId, ...r, ref: t });
12110
12110
  }
12111
12111
  );
12112
12112
  ap.displayName = ip;
12113
12113
  var lp = "DialogClose", cp = v.forwardRef(
12114
12114
  (e, t) => {
12115
- const { __scopeDialog: n, ...r } = e, o = un(lp, n);
12115
+ const { __scopeDialog: n, ...r } = e, o = dn(lp, n);
12116
12116
  return /* @__PURE__ */ u.jsx(
12117
12117
  Ae.button,
12118
12118
  {
@@ -15221,8 +15221,8 @@ function Ti({
15221
15221
  W(!0);
15222
15222
  }, []), K = xe(() => {
15223
15223
  W(!1);
15224
- }, []), D = !!ve || _e, [q, J] = ge(null), [ae, re] = ge(""), [Ee, Ve] = ge(null), [Me, Ge] = ge(null), [Ke, ue] = ge([]), [pe, je] = ge(0), [ze, it] = ge(0), [qe, Ye] = ge(!1), [et, It] = ge(null), [pt, xt] = ge(null), [bt, Tt] = ge(!1), [Lt, jt] = ge(null), tt = Fe(!1), [Et, dn] = ge(() => Dc.value), Ze = Fe(Et), nt = Fe(null), ht = xe((fe) => {
15225
- Dc.value = fe, dn(fe);
15224
+ }, []), D = !!ve || _e, [q, J] = ge(null), [ae, re] = ge(""), [Ee, Ve] = ge(null), [Me, Ge] = ge(null), [Ke, ue] = ge([]), [pe, je] = ge(0), [ze, it] = ge(0), [qe, Ye] = ge(!1), [et, It] = ge(null), [pt, xt] = ge(null), [bt, Tt] = ge(!1), [Lt, jt] = ge(null), tt = Fe(!1), [Et, fn] = ge(() => Dc.value), Ze = Fe(Et), nt = Fe(null), ht = xe((fe) => {
15225
+ Dc.value = fe, fn(fe);
15226
15226
  }, []), [U, se] = ge(!1), M = Fe(null), { checkpointMetaById: Q, checkpointIndexByKey: ne, attemptMetaById: Se, userMessageIdToAttempts: Qe } = g0(A), ye = O ?? [], ut = Fe(null), be = Fe(null), rt = xe(() => {
15227
15227
  ut.current && (ut.current.value = ""), be.current && (be.current.value = ""), je((fe) => fe + 1), it((fe) => fe + 1);
15228
15228
  }, []), Er = xe(
@@ -15237,8 +15237,8 @@ function Ti({
15237
15237
  const [ho, Xs] = ge("desktop");
15238
15238
  wt(() => {
15239
15239
  const fe = () => {
15240
- const ke = window.innerWidth;
15241
- Xs(ke < 640 ? "phone" : ke < 1024 ? "tablet" : "desktop");
15240
+ const Te = window.innerWidth;
15241
+ Xs(Te < 640 ? "phone" : Te < 1024 ? "tablet" : "desktop");
15242
15242
  };
15243
15243
  return fe(), window.addEventListener("resize", fe), () => window.removeEventListener("resize", fe);
15244
15244
  }, []), wt(() => {
@@ -15260,8 +15260,8 @@ function Ti({
15260
15260
  try {
15261
15261
  const Re = (await y.getAgent("default")).uiDefaultMessage || "";
15262
15262
  jt(Re || null);
15263
- } catch (ke) {
15264
- console.warn("Failed to fetch default message:", ke), jt(null);
15263
+ } catch (Te) {
15264
+ console.warn("Failed to fetch default message:", Te), jt(null);
15265
15265
  }
15266
15266
  })();
15267
15267
  }, [y.baseUrl]), wt(() => {
@@ -15272,14 +15272,14 @@ function Ti({
15272
15272
  return `Message too long (${fe.length}/${Fo} characters)`;
15273
15273
  try {
15274
15274
  return v0(fe), null;
15275
- } catch (ke) {
15276
- return (ke == null ? void 0 : ke.message) || "Invalid message";
15275
+ } catch (Te) {
15276
+ return (Te == null ? void 0 : Te.message) || "Invalid message";
15277
15277
  }
15278
15278
  }, Zs = async (fe) => {
15279
- const ke = fe.trim();
15280
- if (!(!ke && Ke.length === 0)) {
15281
- if (ke) {
15282
- const Re = Js(ke);
15279
+ const Te = fe.trim();
15280
+ if (!(!Te && Ke.length === 0)) {
15281
+ if (Te) {
15282
+ const Re = Js(Te);
15283
15283
  if (Re) {
15284
15284
  Ge(Re);
15285
15285
  return;
@@ -15294,7 +15294,7 @@ function Ti({
15294
15294
  } : void 0;
15295
15295
  await X(
15296
15296
  {
15297
- text: ke || "",
15297
+ text: Te || "",
15298
15298
  attachments: Ke,
15299
15299
  messageAdditionalKwargs: Nn
15300
15300
  },
@@ -15302,15 +15302,15 @@ function Ti({
15302
15302
  checkpointId: Re,
15303
15303
  checkpointNs: He
15304
15304
  }
15305
- ), h == null || h(ke), ht(""), Ge(null), ue([]), rt(), J(null), re(""), Ve(null);
15305
+ ), h == null || h(Te), ht(""), Ge(null), ue([]), rt(), J(null), re(""), Ve(null);
15306
15306
  } catch (Re) {
15307
15307
  const He = (Re == null ? void 0 : Re.message) || "Failed to send message";
15308
15308
  Ge(He), m == null || m(He);
15309
15309
  }
15310
15310
  }
15311
15311
  }, mo = ee.useCallback(
15312
- (fe, ke, Re) => {
15313
- c && (nt.current = Et, J(fe), re(ke), ht(ke), Ge(null), Ve({
15312
+ (fe, Te, Re) => {
15313
+ c && (nt.current = Et, J(fe), re(Te), ht(Te), Ge(null), Ve({
15314
15314
  checkpointId: (Re == null ? void 0 : Re.checkpointId) ?? null,
15315
15315
  checkpointNs: (Re == null ? void 0 : Re.checkpointNs) ?? null
15316
15316
  }));
@@ -15319,19 +15319,19 @@ function Ti({
15319
15319
  ), I = ee.useCallback(() => {
15320
15320
  J(null), re(""), Ve(null), Ge(null), ht(nt.current ?? Et), nt.current = null;
15321
15321
  }, [Et, ht]), V = xe(
15322
- (fe, ke, Re) => {
15323
- mo(fe, ke, Re);
15322
+ (fe, Te, Re) => {
15323
+ mo(fe, Te, Re);
15324
15324
  },
15325
15325
  [mo]
15326
15326
  ), ie = xe((fe) => {
15327
- let ke = null, Re = null;
15328
- for (let Sn = fe - 1; Sn >= 0; Sn--)
15329
- if (b[Sn].role === "user") {
15330
- ke = b[Sn], Re = b[Sn].id;
15327
+ let Te = null, Re = null;
15328
+ for (let nn = fe - 1; nn >= 0; nn--)
15329
+ if (b[nn].role === "user") {
15330
+ Te = b[nn], Re = b[nn].id;
15331
15331
  break;
15332
15332
  }
15333
- if (!ke || !Re) return;
15334
- const He = ke.content || [], go = He.filter((Sn) => Sn.type === "text").map((Sn) => Sn.text).join("") || (() => {
15333
+ if (!Te || !Re) return;
15334
+ const He = Array.isArray(Te.content) ? Te.content : [], go = He.filter((nn) => (nn == null ? void 0 : nn.type) === "text").map((nn) => nn.text).join("") || (() => {
15335
15335
  try {
15336
15336
  return JSON.stringify(He, null, 2);
15337
15337
  } catch {
@@ -15351,26 +15351,26 @@ function Ti({
15351
15351
  }
15352
15352
  );
15353
15353
  }, [b, X, A, G, Y]), Ce = (fe) => {
15354
- const ke = Array.from(fe.target.files || []);
15355
- ue((Re) => [...Re, ...ke]), fe.target.value = "";
15354
+ const Te = Array.from(fe.target.files || []);
15355
+ ue((Re) => [...Re, ...Te]), fe.target.value = "";
15356
15356
  }, Xe = (fe) => {
15357
- ue((ke) => {
15358
- const Re = ke.filter((He, Nn) => fe !== Nn);
15357
+ ue((Te) => {
15358
+ const Re = Te.filter((He, Nn) => fe !== Nn);
15359
15359
  return Re.length === 0 && rt(), Re;
15360
15360
  });
15361
15361
  }, at = async (fe) => {
15362
- const ke = (fe.target.files || [])[0];
15363
- if (ke) {
15362
+ const Te = (fe.target.files || [])[0];
15363
+ if (Te) {
15364
15364
  It(null), xt(null), Ye(!0);
15365
15365
  try {
15366
15366
  await X(
15367
- { attachments: [ke] },
15367
+ { attachments: [Te] },
15368
15368
  {
15369
15369
  checkpointId: G ?? void 0,
15370
15370
  checkpointNs: Y ?? void 0
15371
15371
  }
15372
15372
  );
15373
- const Re = `Uploaded ${ke.name} - processing through chat stream`;
15373
+ const Re = `Uploaded ${Te.name} - processing through chat stream`;
15374
15374
  xt(Re);
15375
15375
  } catch (Re) {
15376
15376
  const He = Re instanceof Error ? Re.message : "Failed to upload Excel file";
@@ -15390,7 +15390,7 @@ function Ti({
15390
15390
  });
15391
15391
  return;
15392
15392
  }
15393
- const ke = A.find((He) => He.checkpointId === fe), Re = (ke == null ? void 0 : ke.checkpointNs) ?? null;
15393
+ const Te = A.find((He) => He.checkpointId === fe), Re = (Te == null ? void 0 : Te.checkpointNs) ?? null;
15394
15394
  await C(fe, Re), requestAnimationFrame(() => {
15395
15395
  var He;
15396
15396
  (He = M.current) == null || He.scrollToTop();
@@ -15400,7 +15400,7 @@ function Ti({
15400
15400
  }
15401
15401
  }
15402
15402
  }, Le = xe(
15403
- async (fe, ke, Re) => {
15403
+ async (fe, Te, Re) => {
15404
15404
  await Be(Re ? null : fe);
15405
15405
  },
15406
15406
  [Be]
@@ -15507,7 +15507,7 @@ function Ti({
15507
15507
  },
15508
15508
  pe
15509
15509
  ),
15510
- Ke.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "flex flex-wrap gap-2", children: Ke.map((fe, ke) => /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 bg-gray-100 dark:bg-gray-800 rounded-lg px-3 py-2 text-sm text-gray-900 dark:text-gray-100", children: [
15510
+ Ke.length > 0 && /* @__PURE__ */ u.jsx("div", { className: "flex flex-wrap gap-2", children: Ke.map((fe, Te) => /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 bg-gray-100 dark:bg-gray-800 rounded-lg px-3 py-2 text-sm text-gray-900 dark:text-gray-100", children: [
15511
15511
  /* @__PURE__ */ u.jsx(ki, { size: 14 }),
15512
15512
  /* @__PURE__ */ u.jsx("span", { className: "truncate max-w-[150px]", children: fe.name }),
15513
15513
  /* @__PURE__ */ u.jsx(
@@ -15515,13 +15515,13 @@ function Ti({
15515
15515
  {
15516
15516
  variant: "ghost",
15517
15517
  size: "sm",
15518
- onClick: () => Xe(ke),
15518
+ onClick: () => Xe(Te),
15519
15519
  className: "h-4 w-4 p-0 text-gray-500 dark:text-gray-400 hover:text-red-500 dark:hover:text-red-400",
15520
15520
  "aria-label": `Remove ${fe.name}`,
15521
15521
  children: /* @__PURE__ */ u.jsx(dr, { size: 12 })
15522
15522
  }
15523
15523
  )
15524
- ] }, ke)) })
15524
+ ] }, Te)) })
15525
15525
  ] }),
15526
15526
  l && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
15527
15527
  /* @__PURE__ */ u.jsx(
@@ -15718,17 +15718,17 @@ var _p = "ScrollAreaViewport", jp = v.forwardRef(
15718
15718
  }
15719
15719
  );
15720
15720
  jp.displayName = _p;
15721
- var bn = "ScrollAreaScrollbar", Za = v.forwardRef(
15721
+ var Sn = "ScrollAreaScrollbar", Za = v.forwardRef(
15722
15722
  (e, t) => {
15723
- const { forceMount: n, ...r } = e, o = tn(bn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
15723
+ const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
15724
15724
  return v.useEffect(() => (a ? s(!0) : i(!0), () => {
15725
15725
  a ? s(!1) : i(!1);
15726
15726
  }), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u.jsx(eT, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ u.jsx(tT, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ u.jsx(Pp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ u.jsx(Qa, { ...r, ref: t }) : null;
15727
15727
  }
15728
15728
  );
15729
- Za.displayName = bn;
15729
+ Za.displayName = Sn;
15730
15730
  var eT = v.forwardRef((e, t) => {
15731
- const { forceMount: n, ...r } = e, o = tn(bn, e.__scopeScrollArea), [s, i] = v.useState(!1);
15731
+ const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), [s, i] = v.useState(!1);
15732
15732
  return v.useEffect(() => {
15733
15733
  const a = o.scrollArea;
15734
15734
  let l = 0;
@@ -15751,7 +15751,7 @@ var eT = v.forwardRef((e, t) => {
15751
15751
  }
15752
15752
  ) });
15753
15753
  }), tT = v.forwardRef((e, t) => {
15754
- const { forceMount: n, ...r } = e, o = tn(bn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Vs(() => l("SCROLL_END"), 100), [a, l] = ZC("hidden", {
15754
+ const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = Vs(() => l("SCROLL_END"), 100), [a, l] = ZC("hidden", {
15755
15755
  hidden: {
15756
15756
  SCROLL: "scrolling"
15757
15757
  },
@@ -15795,7 +15795,7 @@ var eT = v.forwardRef((e, t) => {
15795
15795
  }
15796
15796
  ) });
15797
15797
  }), Pp = v.forwardRef((e, t) => {
15798
- const n = tn(bn, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = v.useState(!1), a = e.orientation === "horizontal", l = Vs(() => {
15798
+ const n = tn(Sn, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, i] = v.useState(!1), a = e.orientation === "horizontal", l = Vs(() => {
15799
15799
  if (n.viewport) {
15800
15800
  const c = n.viewport.offsetWidth < n.viewport.scrollWidth, d = n.viewport.offsetHeight < n.viewport.scrollHeight;
15801
15801
  i(a ? c : d);
@@ -15810,7 +15810,7 @@ var eT = v.forwardRef((e, t) => {
15810
15810
  }
15811
15811
  ) });
15812
15812
  }), Qa = v.forwardRef((e, t) => {
15813
- const { orientation: n = "vertical", ...r } = e, o = tn(bn, e.__scopeScrollArea), s = v.useRef(null), i = v.useRef(0), [a, l] = v.useState({
15813
+ const { orientation: n = "vertical", ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = v.useRef(null), i = v.useRef(0), [a, l] = v.useState({
15814
15814
  content: 0,
15815
15815
  viewport: 0,
15816
15816
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
@@ -15864,7 +15864,7 @@ var eT = v.forwardRef((e, t) => {
15864
15864
  }
15865
15865
  ) : null;
15866
15866
  }), nT = v.forwardRef((e, t) => {
15867
- const { sizes: n, onSizesChange: r, ...o } = e, s = tn(bn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarXChange);
15867
+ const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarXChange);
15868
15868
  return v.useEffect(() => {
15869
15869
  l.current && a(getComputedStyle(l.current));
15870
15870
  }, [l]), /* @__PURE__ */ u.jsx(
@@ -15903,7 +15903,7 @@ var eT = v.forwardRef((e, t) => {
15903
15903
  }
15904
15904
  );
15905
15905
  }), rT = v.forwardRef((e, t) => {
15906
- const { sizes: n, onSizesChange: r, ...o } = e, s = tn(bn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarYChange);
15906
+ const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = v.useState(), l = v.useRef(null), c = We(t, l, s.onScrollbarYChange);
15907
15907
  return v.useEffect(() => {
15908
15908
  l.current && a(getComputedStyle(l.current));
15909
15909
  }, [l]), /* @__PURE__ */ u.jsx(
@@ -15942,7 +15942,7 @@ var eT = v.forwardRef((e, t) => {
15942
15942
  }
15943
15943
  }
15944
15944
  );
15945
- }), [oT, Op] = Np(bn), Mp = v.forwardRef((e, t) => {
15945
+ }), [oT, Op] = Np(Sn), Mp = v.forwardRef((e, t) => {
15946
15946
  const {
15947
15947
  __scopeScrollArea: n,
15948
15948
  sizes: r,
@@ -15955,7 +15955,7 @@ var eT = v.forwardRef((e, t) => {
15955
15955
  onWheelScroll: d,
15956
15956
  onResize: f,
15957
15957
  ...p
15958
- } = e, h = tn(bn, n), [x, m] = v.useState(null), y = We(t, (A) => m(A)), g = v.useRef(null), w = v.useRef(""), b = h.viewport, T = r.content - r.viewport, S = At(d), C = At(l), k = Vs(f, 10);
15958
+ } = e, h = tn(Sn, n), [x, m] = v.useState(null), y = We(t, (A) => m(A)), g = v.useRef(null), w = v.useRef(""), b = h.viewport, T = r.content - r.viewport, S = At(d), C = At(l), k = Vs(f, 10);
15959
15959
  function R(A) {
15960
15960
  if (g.current) {
15961
15961
  const L = A.clientX - g.current.left, j = A.clientY - g.current.top;
@@ -16655,7 +16655,7 @@ var er = "SelectContent", sh = v.forwardRef(
16655
16655
  }
16656
16656
  );
16657
16657
  sh.displayName = er;
16658
- var nn = 10, [ih, Hn] = Rr(er), ET = "SelectContentImpl", NT = gr("SelectContent.RemoveScroll"), ah = v.forwardRef(
16658
+ var rn = 10, [ih, Hn] = Rr(er), ET = "SelectContentImpl", NT = gr("SelectContent.RemoveScroll"), ah = v.forwardRef(
16659
16659
  (e, t) => {
16660
16660
  const {
16661
16661
  __scopeSelect: n,
@@ -16831,24 +16831,24 @@ var AT = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
16831
16831
  if (s.trigger && s.valueNode && a && c && m && y && g) {
16832
16832
  const k = s.trigger.getBoundingClientRect(), R = c.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), L = g.getBoundingClientRect();
16833
16833
  if (s.dir !== "rtl") {
16834
- const ae = L.left - R.left, re = A.left - ae, Ee = k.left - re, Ve = k.width + Ee, Me = Math.max(Ve, R.width), Ge = window.innerWidth - nn, Ke = Yi(re, [
16835
- nn,
16834
+ const ae = L.left - R.left, re = A.left - ae, Ee = k.left - re, Ve = k.width + Ee, Me = Math.max(Ve, R.width), Ge = window.innerWidth - rn, Ke = Yi(re, [
16835
+ rn,
16836
16836
  // Prevents the content from going off the starting edge of the
16837
16837
  // viewport. It may still go off the ending edge, but this can be
16838
16838
  // controlled by the user since they may want to manage overflow in a
16839
16839
  // specific way.
16840
16840
  // https://github.com/radix-ui/primitives/issues/2049
16841
- Math.max(nn, Ge - Me)
16841
+ Math.max(rn, Ge - Me)
16842
16842
  ]);
16843
16843
  a.style.minWidth = Ve + "px", a.style.left = Ke + "px";
16844
16844
  } else {
16845
- const ae = R.right - L.right, re = window.innerWidth - A.right - ae, Ee = window.innerWidth - k.right - re, Ve = k.width + Ee, Me = Math.max(Ve, R.width), Ge = window.innerWidth - nn, Ke = Yi(re, [
16846
- nn,
16847
- Math.max(nn, Ge - Me)
16845
+ const ae = R.right - L.right, re = window.innerWidth - A.right - ae, Ee = window.innerWidth - k.right - re, Ve = k.width + Ee, Me = Math.max(Ve, R.width), Ge = window.innerWidth - rn, Ke = Yi(re, [
16846
+ rn,
16847
+ Math.max(rn, Ge - Me)
16848
16848
  ]);
16849
16849
  a.style.minWidth = Ve + "px", a.style.right = Ke + "px";
16850
16850
  }
16851
- const j = p(), O = window.innerHeight - nn * 2, $ = m.scrollHeight, E = window.getComputedStyle(c), F = parseInt(E.borderTopWidth, 10), _ = parseInt(E.paddingTop, 10), X = parseInt(E.borderBottomWidth, 10), B = parseInt(E.paddingBottom, 10), N = F + _ + $ + B + X, G = Math.min(y.offsetHeight * 5, N), Y = window.getComputedStyle(m), oe = parseInt(Y.paddingTop, 10), ve = parseInt(Y.paddingBottom, 10), _e = k.top + k.height / 2 - nn, W = O - _e, z = y.offsetHeight / 2, K = y.offsetTop + z, D = F + _ + K, q = N - D;
16851
+ const j = p(), O = window.innerHeight - rn * 2, $ = m.scrollHeight, E = window.getComputedStyle(c), F = parseInt(E.borderTopWidth, 10), _ = parseInt(E.paddingTop, 10), X = parseInt(E.borderBottomWidth, 10), B = parseInt(E.paddingBottom, 10), N = F + _ + $ + B + X, G = Math.min(y.offsetHeight * 5, N), Y = window.getComputedStyle(m), oe = parseInt(Y.paddingTop, 10), ve = parseInt(Y.paddingBottom, 10), _e = k.top + k.height / 2 - rn, W = O - _e, z = y.offsetHeight / 2, K = y.offsetTop + z, D = F + _ + K, q = N - D;
16852
16852
  if (D <= _e) {
16853
16853
  const ae = j.length > 0 && y === j[j.length - 1].ref.current;
16854
16854
  a.style.bottom = "0px";
@@ -16868,7 +16868,7 @@ var AT = "SelectItemAlignedPosition", lh = v.forwardRef((e, t) => {
16868
16868
  ) + q;
16869
16869
  a.style.height = Ee + "px", m.scrollTop = D - _e + m.offsetTop;
16870
16870
  }
16871
- a.style.margin = `${nn}px 0`, a.style.minHeight = G + "px", a.style.maxHeight = O + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
16871
+ a.style.margin = `${rn}px 0`, a.style.minHeight = G + "px", a.style.maxHeight = O + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
16872
16872
  }
16873
16873
  }, [
16874
16874
  p,
@@ -16935,7 +16935,7 @@ var _T = "SelectPopperPosition", Xi = v.forwardRef((e, t) => {
16935
16935
  const {
16936
16936
  __scopeSelect: n,
16937
16937
  align: r = "start",
16938
- collisionPadding: o = nn,
16938
+ collisionPadding: o = rn,
16939
16939
  ...s
16940
16940
  } = e, i = Gs(n);
16941
16941
  return /* @__PURE__ */ u.jsx(
@@ -16998,7 +16998,7 @@ var [jT, tl] = Rr(er, {}), Ji = "SelectViewport", ch = v.forwardRef(
16998
16998
  if (p != null && p.current && f) {
16999
16999
  const h = Math.abs(l.current - d.scrollTop);
17000
17000
  if (h > 0) {
17001
- const x = window.innerHeight - nn * 2, m = parseFloat(f.style.minHeight), y = parseFloat(f.style.height), g = Math.max(m, y);
17001
+ const x = window.innerHeight - rn * 2, m = parseFloat(f.style.minHeight), y = parseFloat(f.style.height), g = Math.max(m, y);
17002
17002
  if (g < x) {
17003
17003
  const w = g + h, b = Math.min(x, w), T = w - b;
17004
17004
  f.style.height = b + "px", f.style.bottom === "0px" && (d.scrollTop = T > 0 ? T : 0, f.style.justifyContent = "flex-end");
@@ -18030,7 +18030,7 @@ export {
18030
18030
  Yn as chatApiClient,
18031
18031
  Vk as default,
18032
18032
  ux as del,
18033
- rn as get,
18033
+ on as get,
18034
18034
  sx as getChatToken,
18035
18035
  Bk as getCurrentSettings,
18036
18036
  fT as getDefaultApiConfig,