@cagatayfdn/flora-components 0.0.152 → 0.0.154

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.
@@ -33,9 +33,9 @@ import { S as Hn } from "./Select-nhp2PiJK.js";
33
33
  import kn from "./components/StatusTag/StatusTag.js";
34
34
  import "./components/Switch/Switch.js";
35
35
  import "./components/Textarea/Textarea.js";
36
- import { AppearanceButton as ho, NotificationAppearanceType as _n } from "./enums/appearance.js";
36
+ import { AppearanceButton as ho, NotificationAppearanceType as Rn } from "./enums/appearance.js";
37
37
  import go from "./components/Button/Button.js";
38
- import { Notification as Rn } from "./components/Notification/Notification.js";
38
+ import { Notification as _n } from "./components/Notification/Notification.js";
39
39
  import './ReactToastify.css';import './ErrorLogModal.css';/* empty css */
40
40
  import { u as En } from "./useTranslation-CnCPcxVj.js";
41
41
  import { T as zn } from "./Trans-B4ILpbwK.js";
@@ -44,7 +44,7 @@ const Bn = "_realTimeLogModalStyle_ew0yg_1", Ln = "_modalLeft_ew0yg_30", jn = "_
44
44
  modalLeft: Ln,
45
45
  buttonGroup: jn,
46
46
  iosIcon: Mn
47
- }, _t = 0, Fe = 1, nt = 2, Oo = 4;
47
+ }, Rt = 0, Ge = 1, nt = 2, Oo = 4;
48
48
  function po(e) {
49
49
  return () => e;
50
50
  }
@@ -70,7 +70,7 @@ function An(...e) {
70
70
  }
71
71
  function mt() {
72
72
  }
73
- function Rt(e, t) {
73
+ function _t(e, t) {
74
74
  return t(e), e;
75
75
  }
76
76
  function On(e, t) {
@@ -80,10 +80,10 @@ function se(...e) {
80
80
  return e;
81
81
  }
82
82
  function Q(e, t) {
83
- return e(Fe, t);
83
+ return e(Ge, t);
84
84
  }
85
- function G(e, t) {
86
- e(_t, t);
85
+ function F(e, t) {
86
+ e(Rt, t);
87
87
  }
88
88
  function Kt(e) {
89
89
  e(nt);
@@ -92,10 +92,10 @@ function ce(e) {
92
92
  return e(Oo);
93
93
  }
94
94
  function M(e, t) {
95
- return Q(e, Nn(t, _t));
95
+ return Q(e, Nn(t, Rt));
96
96
  }
97
97
  function Me(e, t) {
98
- const o = e(Fe, (n) => {
98
+ const o = e(Ge, (n) => {
99
99
  o(), t(n);
100
100
  });
101
101
  return o;
@@ -117,7 +117,7 @@ function ie(e = Do) {
117
117
  e(t, n) || (t = n, o(n));
118
118
  };
119
119
  }
120
- function P(e) {
120
+ function D(e) {
121
121
  return (t) => (o) => {
122
122
  e(o) && t(o);
123
123
  };
@@ -137,7 +137,7 @@ function x(e, ...t) {
137
137
  case nt:
138
138
  Kt(e);
139
139
  return;
140
- case Fe:
140
+ case Ge:
141
141
  return Q(e, o(r));
142
142
  }
143
143
  };
@@ -160,7 +160,7 @@ function De(e) {
160
160
  }, e));
161
161
  };
162
162
  }
163
- function F(...e) {
163
+ function G(...e) {
164
164
  const t = new Array(e.length);
165
165
  let o = 0, n = null;
166
166
  const r = Math.pow(2, e.length) - 1;
@@ -185,7 +185,7 @@ function Dn(e) {
185
185
  const n = () => t == null ? void 0 : t();
186
186
  return function(r, i) {
187
187
  switch (r) {
188
- case Fe:
188
+ case Ge:
189
189
  return i ? o === i ? void 0 : (n(), o = i, t = Q(e, i), t) : (n(), mt);
190
190
  case nt:
191
191
  n(), o = null;
@@ -198,10 +198,10 @@ function H(e) {
198
198
  const o = U();
199
199
  return (n, r) => {
200
200
  switch (n) {
201
- case _t:
201
+ case Rt:
202
202
  t = r;
203
203
  break;
204
- case Fe: {
204
+ case Ge: {
205
205
  r(t);
206
206
  break;
207
207
  }
@@ -212,13 +212,13 @@ function H(e) {
212
212
  };
213
213
  }
214
214
  function pe(e, t) {
215
- return Rt(H(t), (o) => M(e, o));
215
+ return _t(H(t), (o) => M(e, o));
216
216
  }
217
217
  function U() {
218
218
  const e = [];
219
219
  return (t, o) => {
220
220
  switch (t) {
221
- case _t:
221
+ case Rt:
222
222
  e.slice().forEach((n) => {
223
223
  n(o);
224
224
  });
@@ -226,7 +226,7 @@ function U() {
226
226
  case nt:
227
227
  e.splice(0, e.length);
228
228
  return;
229
- case Fe:
229
+ case Ge:
230
230
  return e.push(o), () => {
231
231
  const n = e.indexOf(o);
232
232
  n > -1 && e.splice(n, 1);
@@ -235,7 +235,7 @@ function U() {
235
235
  };
236
236
  }
237
237
  function He(e) {
238
- return Rt(U(), (t) => M(e, t));
238
+ return _t(U(), (t) => M(e, t));
239
239
  }
240
240
  function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
241
241
  return {
@@ -246,7 +246,7 @@ function ee(e, t = [], { singleton: o } = { singleton: !0 }) {
246
246
  };
247
247
  }
248
248
  const Vn = () => Symbol();
249
- function Gn(e) {
249
+ function Fn(e) {
250
250
  const t = /* @__PURE__ */ new Map(), o = ({ constructor: n, dependencies: r, id: i, singleton: s }) => {
251
251
  if (s && t.has(i))
252
252
  return t.get(i);
@@ -262,7 +262,7 @@ function ue(...e) {
262
262
  return e.forEach((i, s) => {
263
263
  const l = Math.pow(2, s);
264
264
  Q(i, (c) => {
265
- o[s] = c, n = n | l, n === r && G(t, o);
265
+ o[s] = c, n = n | l, n === r && F(t, o);
266
266
  });
267
267
  }), function(i, s) {
268
268
  switch (i) {
@@ -270,12 +270,12 @@ function ue(...e) {
270
270
  Kt(t);
271
271
  return;
272
272
  }
273
- case Fe:
273
+ case Ge:
274
274
  return n === r && s(o), Q(t, s);
275
275
  }
276
276
  };
277
277
  }
278
- function A(e, t = Do) {
278
+ function O(e, t = Do) {
279
279
  return x(e, ie(t));
280
280
  }
281
281
  function Dt(...e) {
@@ -283,13 +283,13 @@ function Dt(...e) {
283
283
  switch (t) {
284
284
  case nt:
285
285
  return;
286
- case Fe:
286
+ case Ge:
287
287
  return An(...e.map((n) => Q(n, o)));
288
288
  }
289
289
  };
290
290
  }
291
291
  var Ie = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Ie || {});
292
- const Fn = {
292
+ const Gn = {
293
293
  0: "debug",
294
294
  3: "error",
295
295
  1: "log",
@@ -304,7 +304,7 @@ const Fn = {
304
304
  log: H((t, o, n = 1) => {
305
305
  var r;
306
306
  const i = (r = $n().VIRTUOSO_LOG_LEVEL) != null ? r : ce(e);
307
- n >= i && console[Fn[n]](
307
+ n >= i && console[Gn[n]](
308
308
  "%creact-virtuoso: %c%s %o",
309
309
  "color: #0253b3; font-weight: bold",
310
310
  "color: initial",
@@ -462,7 +462,7 @@ const xe = ee(
462
462
  [],
463
463
  { singleton: !0 }
464
464
  ), lt = { lvl: 0 };
465
- function Go(e, t) {
465
+ function Fo(e, t) {
466
466
  const o = e.length;
467
467
  if (o === 0)
468
468
  return [];
@@ -502,7 +502,7 @@ function Et(e, t, o) {
502
502
  if (ne(e))
503
503
  return [];
504
504
  const n = We(e, t)[0];
505
- return Kn(Gt(e, n, o));
505
+ return Kn(Ft(e, n, o));
506
506
  }
507
507
  function Vt(e, t) {
508
508
  if (ne(e))
@@ -515,7 +515,7 @@ function Vt(e, t) {
515
515
  return n;
516
516
  {
517
517
  const [i, s] = $o(n);
518
- return Ct(me(e, { k: i, l: Fo(n), v: s }));
518
+ return Ct(me(e, { k: i, l: Go(n), v: s }));
519
519
  }
520
520
  } else
521
521
  return t < o ? Ct(me(e, { l: Vt(n, t) })) : Ct(me(e, { r: Vt(r, t) }));
@@ -523,12 +523,12 @@ function Vt(e, t) {
523
523
  function Ke(e) {
524
524
  return ne(e) ? [] : [...Ke(e.l), { k: e.k, v: e.v }, ...Ke(e.r)];
525
525
  }
526
- function Gt(e, t, o) {
526
+ function Ft(e, t, o) {
527
527
  if (ne(e))
528
528
  return [];
529
529
  const { k: n, l: r, r: i, v: s } = e;
530
530
  let l = [];
531
- return n > t && (l = l.concat(Gt(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Gt(i, t, o))), l;
531
+ return n > t && (l = l.concat(Ft(r, t, o))), n >= t && n <= o && l.push({ k: n, v: s }), n <= o && (l = l.concat(Ft(i, t, o))), l;
532
532
  }
533
533
  function Ct(e) {
534
534
  const { l: t, lvl: o, r: n } = e;
@@ -549,7 +549,7 @@ function Ct(e) {
549
549
  throw new Error("Unexpected empty nodes");
550
550
  } else {
551
551
  if (Mt(e))
552
- return Ft(me(e, { lvl: o - 1 }));
552
+ return Gt(me(e, { lvl: o - 1 }));
553
553
  if (!ne(n) && !ne(n.l)) {
554
554
  const r = n.l, i = Mt(r) ? n.lvl - 1 : n.lvl;
555
555
  return me(r, {
@@ -558,7 +558,7 @@ function Ct(e) {
558
558
  r: r.l
559
559
  }),
560
560
  lvl: r.lvl + 1,
561
- r: Ft(me(n, { l: r.r, lvl: i }))
561
+ r: Gt(me(n, { l: r.r, lvl: i }))
562
562
  });
563
563
  } else
564
564
  throw new Error("Unexpected empty nodes");
@@ -573,8 +573,8 @@ function me(e, t) {
573
573
  t.r !== void 0 ? t.r : e.r
574
574
  );
575
575
  }
576
- function Fo(e) {
577
- return ne(e.r) ? e.l : Ct(me(e, { r: Fo(e.r) }));
576
+ function Go(e) {
577
+ return ne(e.r) ? e.l : Ct(me(e, { r: Go(e.r) }));
578
578
  }
579
579
  function Mt(e) {
580
580
  return ne(e) || e.lvl > e.r.lvl;
@@ -586,18 +586,18 @@ function qo(e, t, o, n = lt, r = lt) {
586
586
  return { k: e, l: n, lvl: o, r, v: t };
587
587
  }
588
588
  function To(e) {
589
- return Ft(Uo(e));
589
+ return Gt(Uo(e));
590
590
  }
591
591
  function Uo(e) {
592
592
  const { l: t } = e;
593
593
  return !ne(t) && t.lvl === e.lvl ? me(t, { r: me(e, { l: t.r }) }) : e;
594
594
  }
595
- function Ft(e) {
595
+ function Gt(e) {
596
596
  const { lvl: t, r: o } = e;
597
597
  return !ne(o) && !ne(o.r) && o.lvl === t && o.r.lvl === t ? me(o, { l: me(e, { r: o.l }), lvl: t + 1 }) : e;
598
598
  }
599
599
  function Kn(e) {
600
- return Go(e, ({ k: t, v: o }) => ({ index: t, value: o }));
600
+ return Fo(e, ({ k: t, v: o }) => ({ index: t, value: o }));
601
601
  }
602
602
  function Ko(e, t) {
603
603
  return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
@@ -635,7 +635,7 @@ function Yn(e, t, o, n) {
635
635
  const r = yt(e, t, n), i = yt(e, o, n, r);
636
636
  return e.slice(r, i + 1);
637
637
  }
638
- function Ge(e, t) {
638
+ function Fe(e, t) {
639
639
  return Math.round(e.getBoundingClientRect()[t]);
640
640
  }
641
641
  function zt(e) {
@@ -703,7 +703,7 @@ function Zo(e, t, o) {
703
703
  }
704
704
  }
705
705
  function er(e, t, o, n = 0) {
706
- return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)), Go(Yn(e, t, o, Qn), nr);
706
+ return n > 0 && (t = Math.max(t, Yo(e, n, Zt).offset)), Fo(Yn(e, t, o, Qn), nr);
707
707
  }
708
708
  function tr(e, [t, o, n, r]) {
709
709
  t.length > 0 && n("received item sizes", t, Ie.DEBUG);
@@ -774,8 +774,8 @@ const ir = {
774
774
  offsetWidth: "width"
775
775
  }, Oe = ee(
776
776
  ([{ log: e }, { recalcInProgress: t }]) => {
777
- const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Ge(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
778
- x(o, F(c, e, v), Ae(tr, S), ie()),
777
+ const o = U(), n = U(), r = pe(n, 0), i = U(), s = U(), l = H(0), c = H([]), a = H(void 0), h = H(void 0), w = H((m, u) => Fe(m, ir[u])), g = H(void 0), v = H(0), S = Xn(), k = pe(
778
+ x(o, G(c, e, v), Ae(tr, S), ie()),
779
779
  S
780
780
  ), p = pe(
781
781
  x(
@@ -792,14 +792,14 @@ const ir = {
792
792
  M(
793
793
  x(
794
794
  c,
795
- P((m) => m.length > 0),
796
- F(k, v),
795
+ D((m) => m.length > 0),
796
+ G(k, v),
797
797
  E(([m, u, y]) => {
798
- const _ = m.reduce((j, z, N) => be(j, z, ut(z, u.offsetTree, y) || N), ot());
798
+ const R = m.reduce((j, z, A) => be(j, z, ut(z, u.offsetTree, y) || A), ot());
799
799
  return {
800
800
  ...u,
801
801
  groupIndices: m,
802
- groupOffsetTree: _
802
+ groupOffsetTree: R
803
803
  };
804
804
  })
805
805
  ),
@@ -807,8 +807,8 @@ const ir = {
807
807
  ), M(
808
808
  x(
809
809
  n,
810
- F(k),
811
- P(([m, { lastIndex: u }]) => m < u),
810
+ G(k),
811
+ D(([m, { lastIndex: u }]) => m < u),
812
812
  E(([m, { lastIndex: u, lastSize: y }]) => [
813
813
  {
814
814
  endIndex: u,
@@ -829,7 +829,7 @@ const ir = {
829
829
  M(
830
830
  x(
831
831
  h,
832
- P((m) => m !== void 0 && ne(ce(k).sizeTree)),
832
+ D((m) => m !== void 0 && ne(ce(k).sizeTree)),
833
833
  E((m) => [{ endIndex: 0, size: m, startIndex: 0 }])
834
834
  ),
835
835
  o
@@ -837,7 +837,7 @@ const ir = {
837
837
  const d = He(
838
838
  x(
839
839
  o,
840
- F(k),
840
+ G(k),
841
841
  Ae(
842
842
  ({ sizes: m }, [u, y]) => ({
843
843
  changed: y !== m,
@@ -860,13 +860,13 @@ const ir = {
860
860
  (m) => {
861
861
  const { groupIndices: u } = ce(k);
862
862
  if (m > 0)
863
- G(t, !0), G(i, m + wo(m, u));
863
+ F(t, !0), F(i, m + wo(m, u));
864
864
  else if (m < 0) {
865
865
  const y = ce(p);
866
- y.length > 0 && (m -= wo(-m, y)), G(s, m);
866
+ y.length > 0 && (m -= wo(-m, y)), F(s, m);
867
867
  }
868
868
  }
869
- ), Q(x(l, F(e)), ([m, u]) => {
869
+ ), Q(x(l, G(e)), ([m, u]) => {
870
870
  m < 0 && u(
871
871
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
872
872
  { firstItemIndex: l },
@@ -877,37 +877,37 @@ const ir = {
877
877
  M(
878
878
  x(
879
879
  i,
880
- F(k),
880
+ G(k),
881
881
  E(([m, u]) => {
882
- const y = u.groupIndices.length > 0, _ = [], j = u.lastSize;
882
+ const y = u.groupIndices.length > 0, R = [], j = u.lastSize;
883
883
  if (y) {
884
884
  const z = ct(u.sizeTree, 0);
885
- let N = 0, $ = 0;
886
- for (; N < m; ) {
887
- const B = u.groupIndices[$], K = u.groupIndices.length === $ + 1 ? 1 / 0 : u.groupIndices[$ + 1] - B - 1;
888
- _.push({
885
+ let A = 0, $ = 0;
886
+ for (; A < m; ) {
887
+ const B = u.groupIndices[$], Y = u.groupIndices.length === $ + 1 ? 1 / 0 : u.groupIndices[$ + 1] - B - 1;
888
+ R.push({
889
889
  endIndex: B,
890
890
  size: z,
891
891
  startIndex: B
892
- }), _.push({
893
- endIndex: B + 1 + K - 1,
892
+ }), R.push({
893
+ endIndex: B + 1 + Y - 1,
894
894
  size: j,
895
895
  startIndex: B + 1
896
- }), $++, N += K + 1;
896
+ }), $++, A += Y + 1;
897
897
  }
898
898
  const te = Ke(u.sizeTree);
899
- return N !== m && te.shift(), te.reduce(
900
- (B, { k: K, v: X }) => {
899
+ return A !== m && te.shift(), te.reduce(
900
+ (B, { k: Y, v: X }) => {
901
901
  let ve = B.ranges;
902
902
  return B.prevSize !== 0 && (ve = [
903
903
  ...B.ranges,
904
904
  {
905
- endIndex: K + m - 1,
905
+ endIndex: Y + m - 1,
906
906
  size: B.prevSize,
907
907
  startIndex: B.prevIndex
908
908
  }
909
909
  ]), {
910
- prevIndex: K + m,
910
+ prevIndex: Y + m,
911
911
  prevSize: X,
912
912
  ranges: ve
913
913
  };
@@ -915,15 +915,15 @@ const ir = {
915
915
  {
916
916
  prevIndex: m,
917
917
  prevSize: 0,
918
- ranges: _
918
+ ranges: R
919
919
  }
920
920
  ).ranges;
921
921
  }
922
922
  return Ke(u.sizeTree).reduce(
923
- (z, { k: N, v: $ }) => ({
924
- prevIndex: N + m,
923
+ (z, { k: A, v: $ }) => ({
924
+ prevIndex: A + m,
925
925
  prevSize: $,
926
- ranges: [...z.ranges, { endIndex: N + m - 1, size: z.prevSize, startIndex: z.prevIndex }]
926
+ ranges: [...z.ranges, { endIndex: A + m - 1, size: z.prevSize, startIndex: z.prevIndex }]
927
927
  }),
928
928
  {
929
929
  prevIndex: 0,
@@ -935,49 +935,49 @@ const ir = {
935
935
  ),
936
936
  o
937
937
  );
938
- const R = He(
938
+ const _ = He(
939
939
  x(
940
940
  s,
941
- F(k, v),
941
+ G(k, v),
942
942
  E(([m, { offsetTree: u }, y]) => {
943
- const _ = -m;
944
- return ut(_, u, y);
943
+ const R = -m;
944
+ return ut(R, u, y);
945
945
  })
946
946
  )
947
947
  );
948
948
  return M(
949
949
  x(
950
950
  s,
951
- F(k, v),
951
+ G(k, v),
952
952
  E(([m, u, y]) => {
953
953
  if (u.groupIndices.length > 0) {
954
954
  if (ne(u.sizeTree))
955
955
  return u;
956
- let _ = ot();
956
+ let R = ot();
957
957
  const j = ce(p);
958
- let z = 0, N = 0, $ = 0;
958
+ let z = 0, A = 0, $ = 0;
959
959
  for (; z < -m; ) {
960
- $ = j[N];
961
- const te = j[N + 1] - $ - 1;
962
- N++, z += te + 1;
960
+ $ = j[A];
961
+ const te = j[A + 1] - $ - 1;
962
+ A++, z += te + 1;
963
963
  }
964
- if (_ = Ke(u.sizeTree).reduce((te, { k: B, v: K }) => be(te, Math.max(0, B + m), K), _), z !== -m) {
964
+ if (R = Ke(u.sizeTree).reduce((te, { k: B, v: Y }) => be(te, Math.max(0, B + m), Y), R), z !== -m) {
965
965
  const te = ct(u.sizeTree, $);
966
- _ = be(_, 0, te);
966
+ R = be(R, 0, te);
967
967
  const B = We(u.sizeTree, -m + 1)[1];
968
- _ = be(_, 1, B);
968
+ R = be(R, 1, B);
969
969
  }
970
970
  return {
971
971
  ...u,
972
- sizeTree: _,
973
- ...$t(u.offsetTree, 0, _, y)
972
+ sizeTree: R,
973
+ ...$t(u.offsetTree, 0, R, y)
974
974
  };
975
975
  } else {
976
- const _ = Ke(u.sizeTree).reduce((j, { k: z, v: N }) => be(j, Math.max(0, z + m), N), ot());
976
+ const R = Ke(u.sizeTree).reduce((j, { k: z, v: A }) => be(j, Math.max(0, z + m), A), ot());
977
977
  return {
978
978
  ...u,
979
- sizeTree: _,
980
- ...$t(u.offsetTree, 0, _, y)
979
+ sizeTree: R,
980
+ ...$t(u.offsetTree, 0, R, y)
981
981
  };
982
982
  }
983
983
  })
@@ -995,7 +995,7 @@ const ir = {
995
995
  itemSize: w,
996
996
  listRefresh: d,
997
997
  shiftWith: s,
998
- shiftWithOffset: R,
998
+ shiftWithOffset: _,
999
999
  sizeRanges: o,
1000
1000
  // output
1001
1001
  sizes: k,
@@ -1035,7 +1035,7 @@ const Jo = ee(
1035
1035
  ), M(
1036
1036
  x(
1037
1037
  ue(r, t, n),
1038
- P(([c, a]) => zt(a)),
1038
+ D(([c, a]) => zt(a)),
1039
1039
  E(([c, a, h]) => We(a.groupOffsetTree, Math.max(c - h, 0), "v")[0]),
1040
1040
  ie(),
1041
1041
  E((c) => [c])
@@ -1049,7 +1049,7 @@ const Jo = ee(
1049
1049
  const t = H(!1), o = He(
1050
1050
  x(
1051
1051
  t,
1052
- P((n) => n),
1052
+ D((n) => n),
1053
1053
  ie()
1054
1054
  )
1055
1055
  );
@@ -1082,25 +1082,25 @@ const ft = ee(
1082
1082
  const v = U(), S = U(), k = H(0);
1083
1083
  let p = null, f = null, d = null;
1084
1084
  function b() {
1085
- p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null), G(c, !1);
1085
+ p && (p(), p = null), d && (d(), d = null), f && (clearTimeout(f), f = null), F(c, !1);
1086
1086
  }
1087
1087
  return M(
1088
1088
  x(
1089
1089
  v,
1090
- F(o, w, n, k, l, s, g),
1091
- F(e, i, r),
1090
+ G(o, w, n, k, l, s, g),
1091
+ G(e, i, r),
1092
1092
  E(
1093
1093
  ([
1094
- [R, m, u, y, _, j, z, N],
1094
+ [_, m, u, y, R, j, z, A],
1095
1095
  $,
1096
1096
  te,
1097
1097
  B
1098
1098
  ]) => {
1099
- const K = Qo(R), { align: X, behavior: ve, offset: Te } = K, we = y - 1, he = Zo(K, m, we);
1099
+ const Y = Qo(_), { align: X, behavior: ve, offset: Te } = Y, we = y - 1, he = Zo(Y, m, we);
1100
1100
  let fe = ut(he, m.offsetTree, $) + j;
1101
- X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -= _, Te && (fe += Te);
1101
+ X === "end" ? (fe += te + We(m.sizeTree, he)[1] - u + B, he === we && (fe += z)) : X === "center" ? fe += (te + We(m.sizeTree, he)[1] - u + B) / 2 : fe -= R, Te && (fe += Te);
1102
1102
  const Le = (Ce) => {
1103
- b(), Ce ? (N("retrying to scroll to", { location: R }, Ie.DEBUG), G(v, R)) : (G(S, !0), N("list did not change, scroll successful", {}, Ie.DEBUG));
1103
+ b(), Ce ? (A("retrying to scroll to", { location: _ }, Ie.DEBUG), F(v, _)) : (F(S, !0), A("list did not change, scroll successful", {}, Ie.DEBUG));
1104
1104
  };
1105
1105
  if (b(), ve === "smooth") {
1106
1106
  let Ce = !1;
@@ -1113,7 +1113,7 @@ const ft = ee(
1113
1113
  p = Me(x(t, cr(150)), Le);
1114
1114
  return f = setTimeout(() => {
1115
1115
  b();
1116
- }, 1200), G(c, !0), N("scrolling from index to", { behavior: ve, index: he, top: fe }, Ie.DEBUG), { behavior: ve, top: fe };
1116
+ }, 1200), F(c, !0), A("scrolling from index to", { behavior: ve, index: he, top: fe }, Ie.DEBUG), { behavior: ve, top: fe };
1117
1117
  }
1118
1118
  )
1119
1119
  ),
@@ -1152,33 +1152,33 @@ const ht = ee(
1152
1152
  return M(
1153
1153
  x(
1154
1154
  s,
1155
- F(c),
1156
- P(([h, w]) => !!w),
1155
+ G(c),
1156
+ D(([h, w]) => !!w),
1157
1157
  Ne(!1)
1158
1158
  ),
1159
1159
  l
1160
1160
  ), M(
1161
1161
  x(
1162
1162
  s,
1163
- F(c),
1164
- P(([h, w]) => !!w),
1163
+ G(c),
1164
+ D(([h, w]) => !!w),
1165
1165
  Ne(!1)
1166
1166
  ),
1167
1167
  a
1168
1168
  ), Q(
1169
1169
  x(
1170
1170
  ue(t, s),
1171
- F(l, o, e, a),
1172
- P(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
1173
- F(c)
1171
+ G(l, o, e, a),
1172
+ D(([[, h], w, { sizeTree: g }, v, S]) => h && (!ne(g) || Ut(v)) && !w && !S),
1173
+ G(c)
1174
1174
  ),
1175
1175
  ([, h]) => {
1176
1176
  Me(r, () => {
1177
- G(a, !0);
1177
+ F(a, !0);
1178
1178
  }), Jt(4, () => {
1179
1179
  Me(n, () => {
1180
- G(l, !0);
1181
- }), G(i, h);
1180
+ F(l, !0);
1181
+ }), F(i, h);
1182
1182
  });
1183
1183
  }
1184
1184
  ), {
@@ -1205,7 +1205,7 @@ const dt = "up", it = "down", ar = "none", ur = {
1205
1205
  }, dr = 0, gt = ee(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
1206
1206
  const s = H(!1), l = H(!0), c = U(), a = U(), h = H(4), w = H(dr), g = pe(
1207
1207
  x(
1208
- Dt(x(A(r), Ye(1), Ne(!0)), x(A(r), Ye(1), Ne(!1), vo(100))),
1208
+ Dt(x(O(r), Ye(1), Ne(!0)), x(O(r), Ye(1), Ne(!1), vo(100))),
1209
1209
  ie()
1210
1210
  ),
1211
1211
  !1
@@ -1215,7 +1215,7 @@ const dt = "up", it = "down", ar = "none", ur = {
1215
1215
  );
1216
1216
  M(
1217
1217
  x(
1218
- ue(A(r), A(w)),
1218
+ ue(O(r), O(w)),
1219
1219
  E(([d, b]) => d <= b),
1220
1220
  ie()
1221
1221
  ),
@@ -1223,26 +1223,26 @@ const dt = "up", it = "down", ar = "none", ur = {
1223
1223
  ), M(x(l, De(50)), a);
1224
1224
  const S = He(
1225
1225
  x(
1226
- ue(n, A(i), A(t), A(e), A(h)),
1227
- Ae((d, [{ scrollHeight: b, scrollTop: R }, m, u, y, _]) => {
1228
- const j = R + m - b > -_, z = {
1226
+ ue(n, O(i), O(t), O(e), O(h)),
1227
+ Ae((d, [{ scrollHeight: b, scrollTop: _ }, m, u, y, R]) => {
1228
+ const j = _ + m - b > -R, z = {
1229
1229
  scrollHeight: b,
1230
- scrollTop: R,
1230
+ scrollTop: _,
1231
1231
  viewportHeight: m
1232
1232
  };
1233
1233
  if (j) {
1234
1234
  let $, te;
1235
- return R > d.state.scrollTop ? ($ = "SCROLLED_DOWN", te = d.state.scrollTop - R) : ($ = "SIZE_DECREASED", te = d.state.scrollTop - R || d.scrollTopDelta), {
1235
+ return _ > d.state.scrollTop ? ($ = "SCROLLED_DOWN", te = d.state.scrollTop - _) : ($ = "SIZE_DECREASED", te = d.state.scrollTop - _ || d.scrollTopDelta), {
1236
1236
  atBottom: !0,
1237
1237
  atBottomBecause: $,
1238
1238
  scrollTopDelta: te,
1239
1239
  state: z
1240
1240
  };
1241
1241
  }
1242
- let N;
1243
- return z.scrollHeight > d.state.scrollHeight ? N = "SIZE_INCREASED" : m < d.state.viewportHeight ? N = "VIEWPORT_HEIGHT_DECREASING" : R < d.state.scrollTop ? N = "SCROLLING_UPWARDS" : N = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1242
+ let A;
1243
+ return z.scrollHeight > d.state.scrollHeight ? A = "SIZE_INCREASED" : m < d.state.viewportHeight ? A = "VIEWPORT_HEIGHT_DECREASING" : _ < d.state.scrollTop ? A = "SCROLLING_UPWARDS" : A = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
1244
1244
  atBottom: !1,
1245
- notAtBottomBecause: N,
1245
+ notAtBottomBecause: A,
1246
1246
  state: z
1247
1247
  };
1248
1248
  }, ur),
@@ -1252,32 +1252,32 @@ const dt = "up", it = "down", ar = "none", ur = {
1252
1252
  x(
1253
1253
  n,
1254
1254
  Ae(
1255
- (d, { scrollHeight: b, scrollTop: R, viewportHeight: m }) => {
1255
+ (d, { scrollHeight: b, scrollTop: _, viewportHeight: m }) => {
1256
1256
  if (en(d.scrollHeight, b))
1257
1257
  return {
1258
1258
  changed: !1,
1259
1259
  jump: 0,
1260
1260
  scrollHeight: b,
1261
- scrollTop: R
1261
+ scrollTop: _
1262
1262
  };
1263
1263
  {
1264
- const u = b - (R + m) < 1;
1265
- return d.scrollTop !== R && u ? {
1264
+ const u = b - (_ + m) < 1;
1265
+ return d.scrollTop !== _ && u ? {
1266
1266
  changed: !0,
1267
- jump: d.scrollTop - R,
1267
+ jump: d.scrollTop - _,
1268
1268
  scrollHeight: b,
1269
- scrollTop: R
1269
+ scrollTop: _
1270
1270
  } : {
1271
1271
  changed: !0,
1272
1272
  jump: 0,
1273
1273
  scrollHeight: b,
1274
- scrollTop: R
1274
+ scrollTop: _
1275
1275
  };
1276
1276
  }
1277
1277
  },
1278
1278
  { changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
1279
1279
  ),
1280
- P((d) => d.changed),
1280
+ D((d) => d.changed),
1281
1281
  E((d) => d.jump)
1282
1282
  ),
1283
1283
  0
@@ -1307,7 +1307,7 @@ const dt = "up", it = "down", ar = "none", ur = {
1307
1307
  return M(
1308
1308
  x(
1309
1309
  g,
1310
- P((d) => !d),
1310
+ D((d) => !d),
1311
1311
  Ne(0)
1312
1312
  ),
1313
1313
  f
@@ -1315,9 +1315,9 @@ const dt = "up", it = "down", ar = "none", ur = {
1315
1315
  x(
1316
1316
  r,
1317
1317
  De(100),
1318
- F(g),
1319
- P(([d, b]) => !!b),
1320
- Ae(([d, b], [R]) => [b, R], [0, 0]),
1318
+ G(g),
1319
+ D(([d, b]) => !!b),
1320
+ Ae(([d, b], [_]) => [b, _], [0, 0]),
1321
1321
  E(([d, b]) => b - d)
1322
1322
  ),
1323
1323
  f
@@ -1347,15 +1347,15 @@ const eo = ee(
1347
1347
  const i = U(), s = H(0), l = H(0), c = H(0), a = pe(
1348
1348
  x(
1349
1349
  ue(
1350
- A(n),
1351
- A(r),
1352
- A(o),
1353
- A(i, at),
1354
- A(c),
1355
- A(s),
1356
- A(t),
1357
- A(e),
1358
- A(l)
1350
+ O(n),
1351
+ O(r),
1352
+ O(o),
1353
+ O(i, at),
1354
+ O(c),
1355
+ O(s),
1356
+ O(t),
1357
+ O(e),
1358
+ O(l)
1359
1359
  ),
1360
1360
  E(
1361
1361
  ([
@@ -1369,16 +1369,16 @@ const eo = ee(
1369
1369
  d,
1370
1370
  b
1371
1371
  ]) => {
1372
- const R = h - d, m = p + f, u = Math.max(g - R, 0);
1372
+ const _ = h - d, m = p + f, u = Math.max(g - _, 0);
1373
1373
  let y = Co;
1374
- const _ = yo(b, bt), j = yo(b, Ht);
1375
- return v -= d, v += g + f, S += g + f, S -= d, v > h + m - _ && (y = dt), S < h - u + w + j && (y = it), y !== Co ? [
1376
- Math.max(R - g - So(k, bt, y) - _, 0),
1377
- R - u - f + w + So(k, Ht, y) + j
1374
+ const R = yo(b, bt), j = yo(b, Ht);
1375
+ return v -= d, v += g + f, S += g + f, S -= d, v > h + m - R && (y = dt), S < h - u + w + j && (y = it), y !== Co ? [
1376
+ Math.max(_ - g - So(k, bt, y) - R, 0),
1377
+ _ - u - f + w + So(k, Ht, y) + j
1378
1378
  ] : null;
1379
1379
  }
1380
1380
  ),
1381
- P((h) => h != null),
1381
+ D((h) => h != null),
1382
1382
  ie(at)
1383
1383
  ),
1384
1384
  [0, 0]
@@ -1498,18 +1498,18 @@ const Ze = ee(
1498
1498
  ue(
1499
1499
  v,
1500
1500
  S,
1501
- A(c, at),
1502
- A(r),
1503
- A(n),
1504
- A(a),
1501
+ O(c, at),
1502
+ O(r),
1503
+ O(n),
1504
+ O(a),
1505
1505
  h,
1506
- A(k),
1507
- A(t),
1508
- A(o),
1506
+ O(k),
1507
+ O(t),
1508
+ O(o),
1509
1509
  e
1510
1510
  ),
1511
- P(([u, y, , _, , , , , , , j]) => {
1512
- const z = j && j.length !== _;
1511
+ D(([u, y, , R, , , , , , , j]) => {
1512
+ const z = j && j.length !== R;
1513
1513
  return u && !y && !z;
1514
1514
  }),
1515
1515
  E(
@@ -1517,25 +1517,25 @@ const Ze = ee(
1517
1517
  ,
1518
1518
  ,
1519
1519
  [u, y],
1520
- _,
1520
+ R,
1521
1521
  j,
1522
1522
  z,
1523
- N,
1523
+ A,
1524
1524
  $,
1525
1525
  te,
1526
1526
  B,
1527
- K
1527
+ Y
1528
1528
  ]) => {
1529
1529
  const X = j, { offsetTree: ve, sizeTree: Te } = X, we = ce(p);
1530
- if (_ === 0)
1531
- return { ...Wt, totalCount: _ };
1530
+ if (R === 0)
1531
+ return { ...Wt, totalCount: R };
1532
1532
  if (u === 0 && y === 0)
1533
- return we === 0 ? { ...Wt, totalCount: _ } : tn(we, z, j, te, B, K || []);
1533
+ return we === 0 ? { ...Wt, totalCount: R } : tn(we, z, j, te, B, Y || []);
1534
1534
  if (ne(Te))
1535
1535
  return we > 0 ? null : St(
1536
- mr(Qt(z, _), X, K),
1536
+ mr(Qt(z, R), X, Y),
1537
1537
  [],
1538
- _,
1538
+ R,
1539
1539
  B,
1540
1540
  X,
1541
1541
  te
@@ -1543,39 +1543,39 @@ const Ze = ee(
1543
1543
  const he = [];
1544
1544
  if ($.length > 0) {
1545
1545
  const je = $[0], ke = $[$.length - 1];
1546
- let _e = 0;
1546
+ let Re = 0;
1547
1547
  for (const T of Et(Te, je, ke)) {
1548
- const O = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
1548
+ const P = T.value, oe = Math.max(T.start, je), de = Math.min(T.end, ke);
1549
1549
  for (let C = oe; C <= de; C++)
1550
- he.push({ data: K == null ? void 0 : K[C], index: C, offset: _e, size: O }), _e += O;
1550
+ he.push({ data: Y == null ? void 0 : Y[C], index: C, offset: Re, size: P }), Re += P;
1551
1551
  }
1552
1552
  }
1553
- if (!N)
1554
- return St([], he, _, B, X, te);
1553
+ if (!A)
1554
+ return St([], he, R, B, X, te);
1555
1555
  const fe = $.length > 0 ? $[$.length - 1] + 1 : 0, Le = er(ve, u, y, fe);
1556
1556
  if (Le.length === 0)
1557
1557
  return null;
1558
- const Ce = _ - 1, Ve = Rt([], (je) => {
1558
+ const Ce = R - 1, Ve = _t([], (je) => {
1559
1559
  for (const ke of Le) {
1560
- const _e = ke.value;
1561
- let T = _e.offset, O = ke.start;
1562
- const oe = _e.size;
1563
- if (_e.offset < u) {
1564
- O += Math.floor((u - _e.offset + B) / (oe + B));
1565
- const C = O - ke.start;
1560
+ const Re = ke.value;
1561
+ let T = Re.offset, P = ke.start;
1562
+ const oe = Re.size;
1563
+ if (Re.offset < u) {
1564
+ P += Math.floor((u - Re.offset + B) / (oe + B));
1565
+ const C = P - ke.start;
1566
1566
  T += C * oe + C * B;
1567
1567
  }
1568
- O < fe && (T += (fe - O) * oe, O = fe);
1568
+ P < fe && (T += (fe - P) * oe, P = fe);
1569
1569
  const de = Math.min(ke.end, Ce);
1570
- for (let C = O; C <= de && !(T >= y); C++)
1571
- je.push({ data: K == null ? void 0 : K[C], index: C, offset: T, size: oe }), T += oe + B;
1570
+ for (let C = P; C <= de && !(T >= y); C++)
1571
+ je.push({ data: Y == null ? void 0 : Y[C], index: C, offset: T, size: oe }), T += oe + B;
1572
1572
  }
1573
1573
  });
1574
- return St(Ve, he, _, B, X, te);
1574
+ return St(Ve, he, R, B, X, te);
1575
1575
  }
1576
1576
  ),
1577
1577
  //@ts-expect-error filter needs to be fixed
1578
- P((u) => u !== null),
1578
+ D((u) => u !== null),
1579
1579
  ie()
1580
1580
  ),
1581
1581
  Wt
@@ -1583,7 +1583,7 @@ const Ze = ee(
1583
1583
  M(
1584
1584
  x(
1585
1585
  e,
1586
- P(Ut),
1586
+ D(Ut),
1587
1587
  E((u) => u == null ? void 0 : u.length)
1588
1588
  ),
1589
1589
  r
@@ -1609,40 +1609,40 @@ const Ze = ee(
1609
1609
  const b = He(
1610
1610
  x(
1611
1611
  d,
1612
- P(({ items: u }) => u.length > 0),
1613
- F(r, e),
1614
- P(([{ items: u }, y]) => u[u.length - 1].originalIndex === y - 1),
1612
+ D(({ items: u }) => u.length > 0),
1613
+ G(r, e),
1614
+ D(([{ items: u }, y]) => u[u.length - 1].originalIndex === y - 1),
1615
1615
  E(([, u, y]) => [u - 1, y]),
1616
1616
  ie(at),
1617
1617
  E(([u]) => u)
1618
1618
  )
1619
- ), R = He(
1619
+ ), _ = He(
1620
1620
  x(
1621
1621
  d,
1622
1622
  De(200),
1623
- P(({ items: u, topItems: y }) => u.length > 0 && u[0].originalIndex === y.length),
1623
+ D(({ items: u, topItems: y }) => u.length > 0 && u[0].originalIndex === y.length),
1624
1624
  E(({ items: u }) => u[0].index),
1625
1625
  ie()
1626
1626
  )
1627
1627
  ), m = He(
1628
1628
  x(
1629
1629
  d,
1630
- P(({ items: u }) => u.length > 0),
1630
+ D(({ items: u }) => u.length > 0),
1631
1631
  E(({ items: u }) => {
1632
- let y = 0, _ = u.length - 1;
1633
- for (; u[y].type === "group" && y < _; )
1632
+ let y = 0, R = u.length - 1;
1633
+ for (; u[y].type === "group" && y < R; )
1634
1634
  y++;
1635
- for (; u[_].type === "group" && _ > y; )
1636
- _--;
1635
+ for (; u[R].type === "group" && R > y; )
1636
+ R--;
1637
1637
  return {
1638
- endIndex: u[_].index,
1638
+ endIndex: u[R].index,
1639
1639
  startIndex: u[y].index
1640
1640
  };
1641
1641
  }),
1642
1642
  ie(Ko)
1643
1643
  )
1644
1644
  );
1645
- return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached: R, topItemsIndexes: k, ...g };
1645
+ return { endReached: b, initialItemCount: p, itemsRendered: f, listState: d, rangeChanged: m, startReached: _, topItemsIndexes: k, ...g };
1646
1646
  },
1647
1647
  se(
1648
1648
  Oe,
@@ -1664,7 +1664,7 @@ const Ze = ee(
1664
1664
  ),
1665
1665
  0
1666
1666
  );
1667
- return M(A(s), i), { totalListHeight: s, totalListHeightChanged: i };
1667
+ return M(O(s), i), { totalListHeight: s, totalListHeightChanged: i };
1668
1668
  },
1669
1669
  se(xe, Ze),
1670
1670
  { singleton: !0 }
@@ -1673,7 +1673,7 @@ const Ze = ee(
1673
1673
  const o = H(!1), n = pe(
1674
1674
  x(
1675
1675
  ue(o, e, t),
1676
- P(([r]) => r),
1676
+ D(([r]) => r),
1677
1677
  E(([, r, i]) => Math.max(0, r - i)),
1678
1678
  De(0),
1679
1679
  ie()
@@ -1702,20 +1702,20 @@ const Ze = ee(
1702
1702
  return M(
1703
1703
  x(
1704
1704
  h,
1705
- F(t, c, o, i, r, n, l),
1706
- F(e),
1705
+ G(t, c, o, i, r, n, l),
1706
+ G(e),
1707
1707
  E(([[w, g, v, S, k, p, f, d], b]) => {
1708
- const { align: R, behavior: m, calculateViewLocation: u = hr, done: y, ..._ } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, N = z + We(g.sizeTree, j)[1], $ = d + p, te = d + v - f, B = u({
1709
- itemBottom: N,
1708
+ const { align: _, behavior: m, calculateViewLocation: u = hr, done: y, ...R } = w, j = Zo(w, g, S - 1), z = ut(j, g.offsetTree, b) + k + p, A = z + We(g.sizeTree, j)[1], $ = d + p, te = d + v - f, B = u({
1709
+ itemBottom: A,
1710
1710
  itemTop: z,
1711
- locationParams: { align: R, behavior: m, ..._ },
1711
+ locationParams: { align: _, behavior: m, ...R },
1712
1712
  viewportBottom: te,
1713
1713
  viewportTop: $
1714
1714
  });
1715
1715
  return B ? y && Me(
1716
1716
  x(
1717
1717
  s,
1718
- P((K) => !K),
1718
+ D((Y) => !Y),
1719
1719
  // skips the initial publish of false, and the cleanup call.
1720
1720
  // but if scrollingInProgress is true, we skip the initial publish.
1721
1721
  Ye(ce(s) ? 1 : 2)
@@ -1723,7 +1723,7 @@ const Ze = ee(
1723
1723
  y
1724
1724
  ) : y && y(), B;
1725
1725
  }),
1726
- P((w) => w !== null)
1726
+ D((w) => w !== null)
1727
1727
  ),
1728
1728
  a
1729
1729
  ), {
@@ -1751,7 +1751,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1751
1751
  const S = H(!1), k = U();
1752
1752
  let p = null;
1753
1753
  function f(m) {
1754
- G(s, {
1754
+ F(s, {
1755
1755
  align: "end",
1756
1756
  behavior: m,
1757
1757
  index: "LAST"
@@ -1759,13 +1759,13 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1759
1759
  }
1760
1760
  Q(
1761
1761
  x(
1762
- ue(x(A(t), Ye(1)), c),
1763
- F(A(S), i, l, w),
1764
- E(([[m, u], y, _, j, z]) => {
1765
- let N = u && j, $ = "auto";
1766
- return N && ($ = gr(y, _ || z), N = N && !!$), { followOutputBehavior: $, shouldFollow: N, totalCount: m };
1762
+ ue(x(O(t), Ye(1)), c),
1763
+ G(O(S), i, l, w),
1764
+ E(([[m, u], y, R, j, z]) => {
1765
+ let A = u && j, $ = "auto";
1766
+ return A && ($ = gr(y, R || z), A = A && !!$), { followOutputBehavior: $, shouldFollow: A, totalCount: m };
1767
1767
  }),
1768
- P(({ shouldFollow: m }) => m)
1768
+ D(({ shouldFollow: m }) => m)
1769
1769
  ),
1770
1770
  ({ followOutputBehavior: m, totalCount: u }) => {
1771
1771
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
@@ -1783,49 +1783,49 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1783
1783
  }
1784
1784
  Q(
1785
1785
  x(
1786
- ue(A(S), t, a),
1787
- P(([m, , u]) => m && u),
1786
+ ue(O(S), t, a),
1787
+ D(([m, , u]) => m && u),
1788
1788
  Ae(
1789
1789
  ({ value: m }, [, u]) => ({ refreshed: m === u, value: u }),
1790
1790
  { refreshed: !1, value: 0 }
1791
1791
  ),
1792
- P(({ refreshed: m }) => m),
1793
- F(S, t)
1792
+ D(({ refreshed: m }) => m),
1793
+ G(S, t)
1794
1794
  ),
1795
1795
  ([, m]) => {
1796
1796
  ce(l) && d(m !== !1);
1797
1797
  }
1798
1798
  ), Q(k, () => {
1799
1799
  d(ce(S) !== !1);
1800
- }), Q(ue(A(S), r), ([m, u]) => {
1800
+ }), Q(ue(O(S), r), ([m, u]) => {
1801
1801
  m && !u.atBottom && u.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && f("auto");
1802
1802
  });
1803
- const b = H(null), R = U();
1803
+ const b = H(null), _ = U();
1804
1804
  return M(
1805
1805
  Dt(
1806
1806
  x(
1807
- A(n),
1807
+ O(n),
1808
1808
  E((m) => {
1809
1809
  var u;
1810
1810
  return (u = m == null ? void 0 : m.length) != null ? u : 0;
1811
1811
  })
1812
1812
  ),
1813
- x(A(t))
1813
+ x(O(t))
1814
1814
  ),
1815
- R
1815
+ _
1816
1816
  ), Q(
1817
1817
  x(
1818
- ue(x(R, Ye(1)), c),
1819
- F(A(b), l, w, g),
1820
- E(([[m, u], y, _, j, z]) => u && _ && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
1821
- P((m) => !!m),
1818
+ ue(x(_, Ye(1)), c),
1819
+ G(O(b), l, w, g),
1820
+ E(([[m, u], y, R, j, z]) => u && R && (y == null ? void 0 : y({ context: z, totalCount: m, scrollingInProgress: j }))),
1821
+ D((m) => !!m),
1822
1822
  De(0)
1823
1823
  ),
1824
1824
  (m) => {
1825
1825
  p && (p(), p = null), ce(o) ? requestAnimationFrame(() => {
1826
- ce(h)("scrolling into view", {}), G(v, m);
1826
+ ce(h)("scrolling into view", {}), F(v, m);
1827
1827
  }) : p = Me(e, () => {
1828
- ce(h)("scrolling into view", {}), G(v, m), p = null;
1828
+ ce(h)("scrolling into view", {}), F(v, m), p = null;
1829
1829
  });
1830
1830
  }
1831
1831
  ), { autoscrollToBottom: k, followOutput: S, scrollIntoViewOnChange: b };
@@ -1845,9 +1845,9 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1845
1845
  ([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (M(
1846
1846
  x(
1847
1847
  l,
1848
- F(i),
1849
- P(([, c]) => c !== 0),
1850
- F(r, n, t, o, e),
1848
+ G(i),
1849
+ D(([, c]) => c !== 0),
1850
+ G(r, n, t, o, e),
1851
1851
  E(([[, c], a, h, w, g, v = []]) => tn(c, a, h, w, g, v))
1852
1852
  ),
1853
1853
  s
@@ -1860,8 +1860,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1860
1860
  return Q(
1861
1861
  x(
1862
1862
  e,
1863
- F(n),
1864
- P(([, r]) => r !== 0),
1863
+ G(n),
1864
+ D(([, r]) => r !== 0),
1865
1865
  E(([, r]) => ({ top: r }))
1866
1866
  ),
1867
1867
  (r) => {
@@ -1869,11 +1869,11 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1869
1869
  x(
1870
1870
  o,
1871
1871
  Ye(1),
1872
- P((i) => i.items.length > 1)
1872
+ D((i) => i.items.length > 1)
1873
1873
  ),
1874
1874
  () => {
1875
1875
  requestAnimationFrame(() => {
1876
- G(t, r);
1876
+ F(t, r);
1877
1877
  });
1878
1878
  }
1879
1879
  );
@@ -1890,8 +1890,8 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1890
1890
  return M(
1891
1891
  x(
1892
1892
  e,
1893
- F(n, t, o),
1894
- P(([r, i]) => !!i),
1893
+ G(n, t, o),
1894
+ D(([r, i]) => !!i),
1895
1895
  E(([r, i, s, l]) => {
1896
1896
  const { enter: c, exit: a } = i;
1897
1897
  if (s) {
@@ -1905,7 +1905,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1905
1905
  ),
1906
1906
  t
1907
1907
  ), Q(
1908
- x(ue(t, e, o), F(n)),
1908
+ x(ue(t, e, o), G(n)),
1909
1909
  ([[r, i, s], l]) => {
1910
1910
  r && l && l.change && l.change(i, s);
1911
1911
  }
@@ -1928,7 +1928,7 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1928
1928
  ), M(
1929
1929
  x(
1930
1930
  t,
1931
- F(n),
1931
+ G(n),
1932
1932
  E(([l, { offsetTop: c }]) => ({
1933
1933
  ...l,
1934
1934
  top: l.top + c
@@ -1957,17 +1957,17 @@ const gr = (e, t) => typeof e == "function" ? Ho(e(t)) : t && Ho(e), pr = ee(
1957
1957
  return M(l, w), M(c, g), Q(
1958
1958
  x(
1959
1959
  a,
1960
- F(t, n, s, w, g, o)
1960
+ G(t, n, s, w, g, o)
1961
1961
  ),
1962
1962
  ([v, S, k, p, f, d, b]) => {
1963
- const R = or(S.sizeTree);
1964
- p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges: R, scrollTop: k });
1963
+ const _ = or(S.sizeTree);
1964
+ p && f !== null && d !== null && (k = f.scrollTop - d.offsetTop), k -= b, v({ ranges: _, scrollTop: k });
1965
1965
  }
1966
- ), M(x(h, P(Ut), E(Tr)), r), M(
1966
+ ), M(x(h, D(Ut), E(Tr)), r), M(
1967
1967
  x(
1968
1968
  i,
1969
- F(h),
1970
- P(([, v]) => v !== void 0),
1969
+ G(h),
1970
+ D(([, v]) => v !== void 0),
1971
1971
  ie(),
1972
1972
  E(([, v]) => v.ranges)
1973
1973
  ),
@@ -1987,7 +1987,7 @@ const wr = ee(([{ topItemsIndexes: e }]) => {
1987
1987
  return M(
1988
1988
  x(
1989
1989
  t,
1990
- P((o) => o >= 0),
1990
+ D((o) => o >= 0),
1991
1991
  E((o) => Array.from({ length: o }).map((n, r) => r))
1992
1992
  ),
1993
1993
  e
@@ -2009,30 +2009,30 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2009
2009
  const k = He(
2010
2010
  x(
2011
2011
  c,
2012
- F(s),
2012
+ G(s),
2013
2013
  Ae(
2014
- ([, f, d, b], [{ bottom: R, items: m, offsetBottom: u, totalCount: y }, _]) => {
2015
- const j = R + u;
2014
+ ([, f, d, b], [{ bottom: _, items: m, offsetBottom: u, totalCount: y }, R]) => {
2015
+ const j = _ + u;
2016
2016
  let z = 0;
2017
- return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z += _))), [z, m, y, j];
2017
+ return d === y && f.length > 0 && m.length > 0 && (m[0].originalIndex === 0 && f[0].originalIndex === 0 || (z = j - b, z !== 0 && (z += R))), [z, m, y, j];
2018
2018
  },
2019
2019
  [0, [], 0, 0]
2020
2020
  ),
2021
- P(([f]) => f !== 0),
2022
- F(n, l, o, r, v, S),
2023
- P(([, f, d, b, , , R]) => !R && !b && f !== 0 && d === dt),
2021
+ D(([f]) => f !== 0),
2022
+ G(n, l, o, r, v, S),
2023
+ D(([, f, d, b, , , _]) => !_ && !b && f !== 0 && d === dt),
2024
2024
  E(([[f], , , , , d]) => (d("Upward scrolling compensation", { amount: f }, Ie.DEBUG), f))
2025
2025
  )
2026
2026
  );
2027
2027
  function p(f) {
2028
- f > 0 ? (G(t, { behavior: "auto", top: -f }), G(e, 0)) : (G(e, 0), G(t, { behavior: "auto", top: -f }));
2028
+ f > 0 ? (F(t, { behavior: "auto", top: -f }), F(e, 0)) : (F(e, 0), F(t, { behavior: "auto", top: -f }));
2029
2029
  }
2030
- return Q(x(k, F(e, i)), ([f, d, b]) => {
2031
- b && Cr() ? G(e, d - f) : p(-f);
2030
+ return Q(x(k, G(e, i)), ([f, d, b]) => {
2031
+ b && Cr() ? F(e, d - f) : p(-f);
2032
2032
  }), Q(
2033
2033
  x(
2034
2034
  ue(pe(i, !1), e, S),
2035
- P(([f, d, b]) => !f && !b && d !== 0),
2035
+ D(([f, d, b]) => !f && !b && d !== 0),
2036
2036
  E(([f, d]) => d),
2037
2037
  De(1)
2038
2038
  ),
@@ -2046,8 +2046,8 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2046
2046
  ), Q(
2047
2047
  x(
2048
2048
  a,
2049
- F(g, h),
2050
- E(([f, { groupIndices: d, lastSize: b, sizeTree: R }, m]) => {
2049
+ G(g, h),
2050
+ E(([f, { groupIndices: d, lastSize: b, sizeTree: _ }, m]) => {
2051
2051
  function u(y) {
2052
2052
  return y * (b + m);
2053
2053
  }
@@ -2055,21 +2055,21 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2055
2055
  return u(f);
2056
2056
  {
2057
2057
  let y = 0;
2058
- const _ = ct(R, 0);
2058
+ const R = ct(_, 0);
2059
2059
  let j = 0, z = 0;
2060
2060
  for (; j < f; ) {
2061
- j++, y += _;
2062
- let N = d.length === z + 1 ? 1 / 0 : d[z + 1] - d[z] - 1;
2063
- j + N > f && (y -= _, N = f - j + 1), j += N, y += u(N), z++;
2061
+ j++, y += R;
2062
+ let A = d.length === z + 1 ? 1 / 0 : d[z + 1] - d[z] - 1;
2063
+ j + A > f && (y -= R, A = f - j + 1), j += A, y += u(A), z++;
2064
2064
  }
2065
2065
  return y;
2066
2066
  }
2067
2067
  })
2068
2068
  ),
2069
2069
  (f) => {
2070
- G(e, f), requestAnimationFrame(() => {
2071
- G(t, { top: f }), requestAnimationFrame(() => {
2072
- G(e, 0), G(S, !1);
2070
+ F(e, f), requestAnimationFrame(() => {
2071
+ F(t, { top: f }), requestAnimationFrame(() => {
2072
+ F(e, 0), F(S, !1);
2073
2073
  });
2074
2074
  });
2075
2075
  }
@@ -2135,13 +2135,13 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2135
2135
  k,
2136
2136
  p,
2137
2137
  f,
2138
- { listState: d, topItemsIndexes: b, ...R },
2138
+ { listState: d, topItemsIndexes: b, ..._ },
2139
2139
  { scrollToIndex: m },
2140
2140
  u,
2141
2141
  { topItemCount: y },
2142
- { groupCounts: _ },
2142
+ { groupCounts: R },
2143
2143
  j
2144
- ]) => (M(R.rangeChanged, j.scrollSeekRangeChanged), M(
2144
+ ]) => (M(_.rangeChanged, j.scrollSeekRangeChanged), M(
2145
2145
  x(
2146
2146
  j.windowViewportRect,
2147
2147
  E((z) => z.visibleHeight)
@@ -2153,7 +2153,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2153
2153
  firstItemIndex: o,
2154
2154
  fixedItemHeight: n,
2155
2155
  gap: r,
2156
- groupCounts: _,
2156
+ groupCounts: R,
2157
2157
  initialItemFinalLocationReached: g,
2158
2158
  initialTopMostItemIndex: v,
2159
2159
  scrolledToInitialItem: S,
@@ -2171,7 +2171,7 @@ const Cr = ln(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
2171
2171
  statefulTotalCount: a,
2172
2172
  trackItemSizes: w,
2173
2173
  // exported from stateFlagsSystem
2174
- ...R,
2174
+ ..._,
2175
2175
  // the bag of IO from featureGroup1System
2176
2176
  ...j,
2177
2177
  ...k,
@@ -2206,47 +2206,47 @@ const vt = typeof document < "u" ? L.useLayoutEffect : L.useEffect;
2206
2206
  function cn(e, t, o) {
2207
2207
  const n = Object.keys(t.required || {}), r = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = L.createContext({});
2208
2208
  function c(p, f) {
2209
- p.propsReady && G(p.propsReady, !1);
2209
+ p.propsReady && F(p.propsReady, !1);
2210
2210
  for (const d of n) {
2211
2211
  const b = p[t.required[d]];
2212
- G(b, f[d]);
2212
+ F(b, f[d]);
2213
2213
  }
2214
2214
  for (const d of r)
2215
2215
  if (d in f) {
2216
2216
  const b = p[t.optional[d]];
2217
- G(b, f[d]);
2217
+ F(b, f[d]);
2218
2218
  }
2219
- p.propsReady && G(p.propsReady, !0);
2219
+ p.propsReady && F(p.propsReady, !0);
2220
2220
  }
2221
2221
  function a(p) {
2222
2222
  return i.reduce((f, d) => (f[d] = (b) => {
2223
- const R = p[t.methods[d]];
2224
- G(R, b);
2223
+ const _ = p[t.methods[d]];
2224
+ F(_, b);
2225
2225
  }, f), {});
2226
2226
  }
2227
2227
  function h(p) {
2228
2228
  return s.reduce((f, d) => (f[d] = Dn(p[t.events[d]]), f), {});
2229
2229
  }
2230
2230
  const w = L.forwardRef((p, f) => {
2231
- const { children: d, ...b } = p, [R] = L.useState(() => Rt(Gn(e), (y) => {
2231
+ const { children: d, ...b } = p, [_] = L.useState(() => _t(Fn(e), (y) => {
2232
2232
  c(y, b);
2233
- })), [m] = L.useState(xo(h, R));
2233
+ })), [m] = L.useState(xo(h, _));
2234
2234
  vt(() => {
2235
2235
  for (const y of s)
2236
2236
  y in b && Q(m[y], b[y]);
2237
2237
  return () => {
2238
2238
  Object.values(m).map(Kt);
2239
2239
  };
2240
- }, [b, m, R]), vt(() => {
2241
- c(R, b);
2242
- }), L.useImperativeHandle(f, po(a(R)));
2240
+ }, [b, m, _]), vt(() => {
2241
+ c(_, b);
2242
+ }), L.useImperativeHandle(f, po(a(_)));
2243
2243
  const u = o;
2244
- return /* @__PURE__ */ I.jsx(l.Provider, { value: R, children: o ? /* @__PURE__ */ I.jsx(u, { ...Hr([...n, ...r, ...s], b), children: d }) : d });
2244
+ return /* @__PURE__ */ I.jsx(l.Provider, { value: _, children: o ? /* @__PURE__ */ I.jsx(u, { ...Hr([...n, ...r, ...s], b), children: d }) : d });
2245
2245
  }), g = (p) => {
2246
2246
  const f = L.useContext(l);
2247
2247
  return L.useCallback(
2248
2248
  (d) => {
2249
- G(f[p], d);
2249
+ F(f[p], d);
2250
2250
  },
2251
2251
  [f, p]
2252
2252
  );
@@ -2263,8 +2263,8 @@ function cn(e, t, o) {
2263
2263
  }, S = (p) => {
2264
2264
  const f = L.useContext(l)[p], [d, b] = L.useState(xo(ce, f));
2265
2265
  return vt(
2266
- () => Q(f, (R) => {
2267
- R !== d && b(po(R));
2266
+ () => Q(f, (_) => {
2267
+ _ !== d && b(po(_));
2268
2268
  }),
2269
2269
  [f, d]
2270
2270
  ), d;
@@ -2320,9 +2320,9 @@ function mn(e, t, o, n = mt, r, i) {
2320
2320
  const S = g.behavior === "smooth";
2321
2321
  let k, p, f;
2322
2322
  Nt(v) ? (p = Math.max(
2323
- Ge(v.document.documentElement, i ? "width" : "height"),
2323
+ Fe(v.document.documentElement, i ? "width" : "height"),
2324
2324
  i ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight
2325
- ), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k = Ge(v, i ? "width" : "height"), f = v[i ? "scrollLeft" : "scrollTop"]);
2325
+ ), k = i ? v.innerWidth : v.innerHeight, f = i ? window.scrollX : window.scrollY) : (p = v[i ? "scrollWidth" : "scrollHeight"], k = Fe(v, i ? "width" : "height"), f = v[i ? "scrollLeft" : "scrollTop"]);
2326
2326
  const d = p - k;
2327
2327
  if (g.top = Math.ceil(Math.max(Math.min(d, g.top), 0)), en(k, p) || g.top === f) {
2328
2328
  e({ scrollHeight: p, scrollTop: f, viewportHeight: k }), S && t(!0);
@@ -2346,7 +2346,7 @@ const At = "-webkit-sticky", ko = "sticky", oo = ln(() => {
2346
2346
  function fn(e) {
2347
2347
  return e;
2348
2348
  }
2349
- const _r = /* @__PURE__ */ ee(() => {
2349
+ const Rr = /* @__PURE__ */ ee(() => {
2350
2350
  const e = H((l) => `Item ${l}`), t = H((l) => `Group ${l}`), o = H({}), n = H(fn), r = H("div"), i = H(mt), s = (l, c = null) => pe(
2351
2351
  x(
2352
2352
  o,
@@ -2372,10 +2372,10 @@ const _r = /* @__PURE__ */ ee(() => {
2372
2372
  ScrollSeekPlaceholder: s("ScrollSeekPlaceholder"),
2373
2373
  TopItemListComponent: s("TopItemList")
2374
2374
  };
2375
- }), Rr = /* @__PURE__ */ ee(
2375
+ }), _r = /* @__PURE__ */ ee(
2376
2376
  ([e, t]) => ({ ...e, ...t }),
2377
- se(br, _r)
2378
- ), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, _o = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
2377
+ se(br, Rr)
2378
+ ), Er = ({ height: e }) => /* @__PURE__ */ I.jsx("div", { style: { height: e } }), zr = { overflowAnchor: "none", position: oo(), zIndex: 1 }, hn = { overflowAnchor: "none" }, Br = { ...hn, display: "inline-block", height: "100%" }, Ro = /* @__PURE__ */ L.memo(function({ showTopList: e = !1 }) {
2379
2379
  const t = V("listState"), o = ze("sizeRanges"), n = V("useWindowScroll"), r = V("customScrollParent"), i = ze("windowScrollContainerState"), s = ze("scrollContainerState"), l = r || n ? i : s, c = V("itemContent"), a = V("context"), h = V("groupContent"), w = V("trackItemSizes"), g = V("itemSize"), v = V("log"), S = ze("gap"), k = V("horizontalDirection"), { callbackRef: p } = qn(
2380
2380
  o,
2381
2381
  g,
@@ -2390,17 +2390,17 @@ const _r = /* @__PURE__ */ ee(() => {
2390
2390
  no("deviation", (B) => {
2391
2391
  f !== B && d(B);
2392
2392
  });
2393
- const b = V("EmptyPlaceholder"), R = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), _ = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, N = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), te = e ? {} : {
2393
+ const b = V("EmptyPlaceholder"), _ = V("ScrollSeekPlaceholder") || Er, m = V("ListComponent"), u = V("ItemComponent"), y = V("GroupComponent"), R = V("computeItemKey"), j = V("isSeeking"), z = V("groupIndices").length > 0, A = V("alignToBottom"), $ = V("initialItemFinalLocationReached"), te = e ? {} : {
2394
2394
  boxSizing: "border-box",
2395
2395
  ...k ? {
2396
2396
  display: "inline-block",
2397
2397
  height: "100%",
2398
- marginLeft: f !== 0 ? f : N ? "auto" : 0,
2398
+ marginLeft: f !== 0 ? f : A ? "auto" : 0,
2399
2399
  paddingLeft: t.offsetTop,
2400
2400
  paddingRight: t.offsetBottom,
2401
2401
  whiteSpace: "nowrap"
2402
2402
  } : {
2403
- marginTop: f !== 0 ? f : N ? "auto" : 0,
2403
+ marginTop: f !== 0 ? f : A ? "auto" : 0,
2404
2404
  paddingBottom: t.offsetBottom,
2405
2405
  paddingTop: t.offsetTop
2406
2406
  },
@@ -2414,11 +2414,11 @@ const _r = /* @__PURE__ */ ee(() => {
2414
2414
  ref: p,
2415
2415
  style: te,
2416
2416
  children: (e ? t.topItems : t.items).map((B) => {
2417
- const K = B.originalIndex, X = _(K + t.firstItemIndex, B.data, a);
2417
+ const Y = B.originalIndex, X = R(Y + t.firstItemIndex, B.data, a);
2418
2418
  return j ? /* @__PURE__ */ Tt(
2419
- R,
2419
+ _,
2420
2420
  {
2421
- ...ge(R, a),
2421
+ ...ge(_, a),
2422
2422
  height: B.size,
2423
2423
  index: B.index,
2424
2424
  key: X,
@@ -2429,7 +2429,7 @@ const _r = /* @__PURE__ */ ee(() => {
2429
2429
  y,
2430
2430
  {
2431
2431
  ...ge(y, a),
2432
- "data-index": K,
2432
+ "data-index": Y,
2433
2433
  "data-item-index": B.index,
2434
2434
  "data-known-size": B.size,
2435
2435
  key: X,
@@ -2441,7 +2441,7 @@ const _r = /* @__PURE__ */ ee(() => {
2441
2441
  {
2442
2442
  ...ge(u, a),
2443
2443
  ...Wr(u, B.data),
2444
- "data-index": K,
2444
+ "data-index": Y,
2445
2445
  "data-item-group-index": B.groupIndex,
2446
2446
  "data-item-index": B.index,
2447
2447
  "data-known-size": B.size,
@@ -2486,7 +2486,7 @@ const Nr = /* @__PURE__ */ L.memo(function() {
2486
2486
  const e = V("HeaderComponent"), t = ze("headerHeight"), o = V("HeaderFooterTag"), n = Xe(
2487
2487
  L.useMemo(
2488
2488
  () => (i) => {
2489
- t(Ge(i, "height"));
2489
+ t(Fe(i, "height"));
2490
2490
  },
2491
2491
  [t]
2492
2492
  ),
@@ -2498,7 +2498,7 @@ const Nr = /* @__PURE__ */ L.memo(function() {
2498
2498
  const e = V("FooterComponent"), t = ze("footerHeight"), o = V("HeaderFooterTag"), n = Xe(
2499
2499
  L.useMemo(
2500
2500
  () => (i) => {
2501
- t(Ge(i, "height"));
2501
+ t(Fe(i, "height"));
2502
2502
  },
2503
2503
  [t]
2504
2504
  ),
@@ -2561,7 +2561,7 @@ function pn({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
2561
2561
  }
2562
2562
  const Or = ({ children: e }) => {
2563
2563
  const t = L.useContext(an), o = ze("viewportHeight"), n = ze("fixedItemHeight"), r = V("alignToBottom"), i = V("horizontalDirection"), s = L.useMemo(
2564
- () => Po(o, (c) => Ge(c, i ? "width" : "height")),
2564
+ () => Po(o, (c) => Fe(c, i ? "width" : "height")),
2565
2565
  [o, i]
2566
2566
  ), l = Xe(s, !0, V("skipAnimationFrameInResizeObserver"));
2567
2567
  return L.useEffect(() => {
@@ -2581,21 +2581,21 @@ const Or = ({ children: e }) => {
2581
2581
  return /* @__PURE__ */ I.jsx(t, { style: n, ...ge(t, r), children: e });
2582
2582
  }, Vr = /* @__PURE__ */ L.memo(function(e) {
2583
2583
  const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
2584
- return /* @__PURE__ */ I.jsxs(n || t ? $r : Fr, { ...e, context: r, children: [
2585
- o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(_o, { showTopList: !0 }) }),
2584
+ return /* @__PURE__ */ I.jsxs(n || t ? $r : Gr, { ...e, context: r, children: [
2585
+ o && /* @__PURE__ */ I.jsx(Dr, { children: /* @__PURE__ */ I.jsx(Ro, { showTopList: !0 }) }),
2586
2586
  /* @__PURE__ */ I.jsxs(n || t ? Pr : Or, { children: [
2587
2587
  /* @__PURE__ */ I.jsx(Nr, {}),
2588
- /* @__PURE__ */ I.jsx(_o, {}),
2588
+ /* @__PURE__ */ I.jsx(Ro, {}),
2589
2589
  /* @__PURE__ */ I.jsx(Ar, {})
2590
2590
  ] })
2591
2591
  ] });
2592
2592
  }), {
2593
- Component: Gr,
2593
+ Component: Fr,
2594
2594
  useEmitter: no,
2595
2595
  useEmitterValue: V,
2596
2596
  usePublisher: ze
2597
2597
  } = /* @__PURE__ */ cn(
2598
- Rr,
2598
+ _r,
2599
2599
  {
2600
2600
  required: {},
2601
2601
  optional: {
@@ -2653,9 +2653,9 @@ const Or = ({ children: e }) => {
2653
2653
  }
2654
2654
  },
2655
2655
  Vr
2656
- ), Fr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), qr = Gr;
2656
+ ), Gr = /* @__PURE__ */ gn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), $r = /* @__PURE__ */ pn({ useEmitter: no, useEmitterValue: V, usePublisher: ze }), qr = Fr;
2657
2657
  oo();
2658
- const Ro = {
2658
+ const _o = {
2659
2659
  bottom: 0,
2660
2660
  itemHeight: 0,
2661
2661
  items: [],
@@ -2694,48 +2694,48 @@ const Xr = /* @__PURE__ */ ee(
2694
2694
  g,
2695
2695
  v,
2696
2696
  { didMount: S, propsReady: k },
2697
- { customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: R },
2697
+ { customScrollParent: p, useWindowScroll: f, windowScrollContainerState: d, windowScrollTo: b, windowViewportRect: _ },
2698
2698
  m
2699
2699
  ]) => {
2700
- const u = H(0), y = H(0), _ = H(Ro), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), N = U(), $ = U(), te = H(0), B = H(null), K = H({ column: 0, row: 0 }), X = U(), ve = U(), Te = H(!1), we = H(0), he = H(!0), fe = H(!1), Le = H(!1);
2700
+ const u = H(0), y = H(0), R = H(_o), j = H({ height: 0, width: 0 }), z = H({ height: 0, width: 0 }), A = U(), $ = U(), te = H(0), B = H(null), Y = H({ column: 0, row: 0 }), X = U(), ve = U(), Te = H(!1), we = H(0), he = H(!0), fe = H(!1), Le = H(!1);
2701
2701
  Q(
2702
2702
  x(
2703
2703
  S,
2704
- F(we),
2705
- P(([T, O]) => !!O)
2704
+ G(we),
2705
+ D(([T, P]) => !!P)
2706
2706
  ),
2707
2707
  () => {
2708
- G(he, !1);
2708
+ F(he, !1);
2709
2709
  }
2710
2710
  ), Q(
2711
2711
  x(
2712
2712
  ue(S, he, z, j, we, fe),
2713
- P(([T, O, oe, de, , C]) => T && !O && oe.height !== 0 && de.height !== 0 && !C)
2713
+ D(([T, P, oe, de, , C]) => T && !P && oe.height !== 0 && de.height !== 0 && !C)
2714
2714
  ),
2715
2715
  ([, , , , T]) => {
2716
- G(fe, !0), Jt(1, () => {
2717
- G(N, T);
2716
+ F(fe, !0), Jt(1, () => {
2717
+ F(A, T);
2718
2718
  }), Me(x(a), () => {
2719
- G(t, [0, 0]), G(he, !0);
2719
+ F(t, [0, 0]), F(he, !0);
2720
2720
  });
2721
2721
  }
2722
2722
  ), M(
2723
2723
  x(
2724
2724
  ve,
2725
- P((T) => T != null && T.scrollTop > 0),
2725
+ D((T) => T != null && T.scrollTop > 0),
2726
2726
  Ne(0)
2727
2727
  ),
2728
2728
  y
2729
2729
  ), Q(
2730
2730
  x(
2731
2731
  S,
2732
- F(ve),
2733
- P(([, T]) => T != null)
2732
+ G(ve),
2733
+ D(([, T]) => T != null)
2734
2734
  ),
2735
2735
  ([, T]) => {
2736
- T && (G(j, T.viewport), G(z, T.item), G(K, T.gap), T.scrollTop > 0 && (G(Te, !0), Me(x(a, Ye(1)), (O) => {
2737
- G(Te, !1);
2738
- }), G(c, { top: T.scrollTop })));
2736
+ T && (F(j, T.viewport), F(z, T.item), F(Y, T.gap), T.scrollTop > 0 && (F(Te, !0), Me(x(a, Ye(1)), (P) => {
2737
+ F(Te, !1);
2738
+ }), F(c, { top: T.scrollTop })));
2739
2739
  }
2740
2740
  ), M(
2741
2741
  x(
@@ -2746,14 +2746,14 @@ const Xr = /* @__PURE__ */ ee(
2746
2746
  ), M(
2747
2747
  x(
2748
2748
  ue(
2749
- A(j, It),
2750
- A(z, It),
2751
- A(K, (T, O) => T && T.column === O.column && T.row === O.row),
2752
- A(a)
2749
+ O(j, It),
2750
+ O(z, It),
2751
+ O(Y, (T, P) => T && T.column === P.column && T.row === P.row),
2752
+ O(a)
2753
2753
  ),
2754
- E(([T, O, oe, de]) => ({
2754
+ E(([T, P, oe, de]) => ({
2755
2755
  gap: oe,
2756
- item: O,
2756
+ item: P,
2757
2757
  scrollTop: de,
2758
2758
  viewport: T
2759
2759
  }))
@@ -2762,60 +2762,60 @@ const Xr = /* @__PURE__ */ ee(
2762
2762
  ), M(
2763
2763
  x(
2764
2764
  ue(
2765
- A(u),
2765
+ O(u),
2766
2766
  n,
2767
- A(K, Yr),
2768
- A(z, It),
2769
- A(j, It),
2770
- A(B),
2771
- A(y),
2772
- A(Te),
2773
- A(he),
2774
- A(we)
2767
+ O(Y, Yr),
2768
+ O(z, It),
2769
+ O(j, It),
2770
+ O(B),
2771
+ O(y),
2772
+ O(Te),
2773
+ O(he),
2774
+ O(we)
2775
2775
  ),
2776
- P(([, , , , , , , T]) => !T),
2776
+ D(([, , , , , , , T]) => !T),
2777
2777
  E(
2778
2778
  ([
2779
2779
  T,
2780
- [O, oe],
2780
+ [P, oe],
2781
2781
  de,
2782
2782
  C,
2783
2783
  W,
2784
- Z,
2785
- D,
2784
+ K,
2785
+ N,
2786
2786
  ,
2787
2787
  q,
2788
2788
  J
2789
2789
  ]) => {
2790
- const { column: Y, row: ae } = de, { height: Se, width: Pe } = C, { width: Re } = W;
2791
- if (D === 0 && (T === 0 || Re === 0))
2792
- return Ro;
2790
+ const { column: Z, row: ae } = de, { height: Se, width: Pe } = C, { width: _e } = W;
2791
+ if (N === 0 && (T === 0 || _e === 0))
2792
+ return _o;
2793
2793
  if (Pe === 0) {
2794
- const co = Qt(J, T), Tn = co + Math.max(D - 1, 0);
2795
- return Kr(Bo(co, Tn, Z));
2794
+ const co = Qt(J, T), Tn = co + Math.max(N - 1, 0);
2795
+ return Kr(Bo(co, Tn, K));
2796
2796
  }
2797
- const Ee = xn(Re, Pe, Y);
2797
+ const Ee = xn(_e, Pe, Z);
2798
2798
  let Je, Ue;
2799
- q ? O === 0 && oe === 0 && D > 0 ? (Je = 0, Ue = D - 1) : (Je = Ee * kt((O + ae) / (Se + ae)), Ue = Ee * Eo((oe + ae) / (Se + ae)) - 1, Ue = Ot(T - 1, st(Ue, Ee - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
- const ro = Bo(Je, Ue, Z), { bottom: io, top: so } = Lo(W, de, C, ro), lo = Eo(T / Ee), In = lo * Se + (lo - 1) * ae - io;
2799
+ q ? P === 0 && oe === 0 && N > 0 ? (Je = 0, Ue = N - 1) : (Je = Ee * kt((P + ae) / (Se + ae)), Ue = Ee * Eo((oe + ae) / (Se + ae)) - 1, Ue = Ot(T - 1, st(Ue, Ee - 1)), Je = Ot(Ue, st(0, Je))) : (Je = 0, Ue = -1);
2800
+ const ro = Bo(Je, Ue, K), { bottom: io, top: so } = Lo(W, de, C, ro), lo = Eo(T / Ee), In = lo * Se + (lo - 1) * ae - io;
2801
2801
  return { bottom: io, itemHeight: Se, items: ro, itemWidth: Pe, offsetBottom: In, offsetTop: so, top: so };
2802
2802
  }
2803
2803
  )
2804
2804
  ),
2805
- _
2805
+ R
2806
2806
  ), M(
2807
2807
  x(
2808
2808
  B,
2809
- P((T) => T !== null),
2809
+ D((T) => T !== null),
2810
2810
  E((T) => T.length)
2811
2811
  ),
2812
2812
  u
2813
2813
  ), M(
2814
2814
  x(
2815
- ue(j, z, _, K),
2816
- P(([T, O, { items: oe }]) => oe.length > 0 && O.height !== 0 && T.height !== 0),
2817
- E(([T, O, { items: oe }, de]) => {
2818
- const { bottom: C, top: W } = Lo(T, de, O, oe);
2815
+ ue(j, z, R, Y),
2816
+ D(([T, P, { items: oe }]) => oe.length > 0 && P.height !== 0 && T.height !== 0),
2817
+ E(([T, P, { items: oe }, de]) => {
2818
+ const { bottom: C, top: W } = Lo(T, de, P, oe);
2819
2819
  return [W, C];
2820
2820
  }),
2821
2821
  ie(at)
@@ -2826,35 +2826,35 @@ const Xr = /* @__PURE__ */ ee(
2826
2826
  M(
2827
2827
  x(
2828
2828
  a,
2829
- F(Ce),
2830
- E(([T, O]) => O || T !== 0)
2829
+ G(Ce),
2830
+ E(([T, P]) => P || T !== 0)
2831
2831
  ),
2832
2832
  Ce
2833
2833
  );
2834
2834
  const Ve = He(
2835
2835
  x(
2836
- ue(_, u),
2837
- P(([{ items: T }]) => T.length > 0),
2838
- F(Ce),
2839
- P(([[T, O], oe]) => {
2840
- const de = T.items[T.items.length - 1].index === O - 1;
2841
- return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === O) && de;
2836
+ ue(R, u),
2837
+ D(([{ items: T }]) => T.length > 0),
2838
+ G(Ce),
2839
+ D(([[T, P], oe]) => {
2840
+ const de = T.items[T.items.length - 1].index === P - 1;
2841
+ return (oe || T.bottom > 0 && T.itemHeight > 0 && T.offsetBottom === 0 && T.items.length === P) && de;
2842
2842
  }),
2843
2843
  E(([[, T]]) => T - 1),
2844
2844
  ie()
2845
2845
  )
2846
2846
  ), je = He(
2847
2847
  x(
2848
- A(_),
2849
- P(({ items: T }) => T.length > 0 && T[0].index === 0),
2848
+ O(R),
2849
+ D(({ items: T }) => T.length > 0 && T[0].index === 0),
2850
2850
  Ne(0),
2851
2851
  ie()
2852
2852
  )
2853
2853
  ), ke = He(
2854
2854
  x(
2855
- A(_),
2856
- F(Te),
2857
- P(([{ items: T }, O]) => T.length > 0 && !O),
2855
+ O(R),
2856
+ G(Te),
2857
+ D(([{ items: T }, P]) => T.length > 0 && !P),
2858
2858
  E(([{ items: T }]) => ({
2859
2859
  endIndex: T[T.length - 1].index,
2860
2860
  startIndex: T[0].index
@@ -2865,28 +2865,28 @@ const Xr = /* @__PURE__ */ ee(
2865
2865
  );
2866
2866
  M(ke, v.scrollSeekRangeChanged), M(
2867
2867
  x(
2868
- N,
2869
- F(j, z, u, K),
2870
- E(([T, O, oe, de, C]) => {
2871
- const W = Qo(T), { align: Z, behavior: D, offset: q } = W;
2868
+ A,
2869
+ G(j, z, u, Y),
2870
+ E(([T, P, oe, de, C]) => {
2871
+ const W = Qo(T), { align: K, behavior: N, offset: q } = W;
2872
2872
  let J = W.index;
2873
2873
  J === "LAST" && (J = de - 1), J = st(0, J, Ot(de - 1, J));
2874
- let Y = qt(O, C, oe, J);
2875
- return Z === "end" ? Y = zo(Y - O.height + oe.height) : Z === "center" && (Y = zo(Y - O.height / 2 + oe.height / 2)), q && (Y += q), { behavior: D, top: Y };
2874
+ let Z = qt(P, C, oe, J);
2875
+ return K === "end" ? Z = zo(Z - P.height + oe.height) : K === "center" && (Z = zo(Z - P.height / 2 + oe.height / 2)), q && (Z += q), { behavior: N, top: Z };
2876
2876
  })
2877
2877
  ),
2878
2878
  c
2879
2879
  );
2880
- const _e = pe(
2880
+ const Re = pe(
2881
2881
  x(
2882
- _,
2882
+ R,
2883
2883
  E((T) => T.offsetBottom + T.bottom)
2884
2884
  ),
2885
2885
  0
2886
2886
  );
2887
2887
  return M(
2888
2888
  x(
2889
- R,
2889
+ _,
2890
2890
  E((T) => ({ height: T.visibleHeight, width: T.visibleWidth }))
2891
2891
  ),
2892
2892
  j
@@ -2896,7 +2896,7 @@ const Xr = /* @__PURE__ */ ee(
2896
2896
  data: B,
2897
2897
  deviation: te,
2898
2898
  footerHeight: r,
2899
- gap: K,
2899
+ gap: Y,
2900
2900
  headerHeight: i,
2901
2901
  increaseViewportBy: e,
2902
2902
  initialItemCount: y,
@@ -2907,7 +2907,7 @@ const Xr = /* @__PURE__ */ ee(
2907
2907
  scrollContainerState: l,
2908
2908
  scrollHeight: $,
2909
2909
  scrollTo: c,
2910
- scrollToIndex: N,
2910
+ scrollToIndex: A,
2911
2911
  scrollTop: a,
2912
2912
  smoothScrollTargetReached: h,
2913
2913
  totalCount: u,
@@ -2915,13 +2915,13 @@ const Xr = /* @__PURE__ */ ee(
2915
2915
  viewportDimensions: j,
2916
2916
  windowScrollContainerState: d,
2917
2917
  windowScrollTo: b,
2918
- windowViewportRect: R,
2918
+ windowViewportRect: _,
2919
2919
  ...v,
2920
2920
  // output
2921
- gridState: _,
2921
+ gridState: R,
2922
2922
  horizontalDirection: Le,
2923
2923
  initialTopMostItemIndex: we,
2924
- totalListHeight: _e,
2924
+ totalListHeight: Re,
2925
2925
  ...g,
2926
2926
  endReached: Ve,
2927
2927
  propsReady: k,
@@ -2957,7 +2957,7 @@ const Zr = /* @__PURE__ */ ee(() => {
2957
2957
  ),
2958
2958
  g
2959
2959
  ), a = H(!1), h = H(!1);
2960
- return M(A(h), a), {
2960
+ return M(O(h), a), {
2961
2961
  components: t,
2962
2962
  computeItemKey: i,
2963
2963
  context: o,
@@ -2986,8 +2986,8 @@ const Zr = /* @__PURE__ */ ee(() => {
2986
2986
  s(d);
2987
2987
  const b = f.firstChild;
2988
2988
  if (b) {
2989
- const { height: R, width: m } = b.getBoundingClientRect();
2990
- w({ height: R, width: m });
2989
+ const { height: _, width: m } = b.getBoundingClientRect();
2990
+ w({ height: _, width: m });
2991
2991
  }
2992
2992
  g({
2993
2993
  column: jo("column-gap", getComputedStyle(f).columnGap, v),
@@ -3037,7 +3037,7 @@ const Zr = /* @__PURE__ */ ee(() => {
3037
3037
  const e = re("HeaderComponent"), t = Be("headerHeight"), o = re("headerFooterTag"), n = Xe(
3038
3038
  L.useMemo(
3039
3039
  () => (i) => {
3040
- t(Ge(i, "height"));
3040
+ t(Fe(i, "height"));
3041
3041
  },
3042
3042
  [t]
3043
3043
  ),
@@ -3049,7 +3049,7 @@ const Zr = /* @__PURE__ */ ee(() => {
3049
3049
  const e = re("FooterComponent"), t = Be("footerHeight"), o = re("headerFooterTag"), n = Xe(
3050
3050
  L.useMemo(
3051
3051
  () => (i) => {
3052
- t(Ge(i, "height"));
3052
+ t(Fe(i, "height"));
3053
3053
  },
3054
3054
  [t]
3055
3055
  ),
@@ -3133,7 +3133,7 @@ const Zr = /* @__PURE__ */ ee(() => {
3133
3133
  function jo(e, t, o) {
3134
3134
  return t !== "normal" && !(t != null && t.endsWith("px")) && o(`${e} was not resolved to pixel value correctly`, t, Ie.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
3135
3135
  }
3136
- const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", _i = "_copyIconBtn__disabled_1f0fd_262", Ri = "_iconGroup_1f0fd_272", Ei = "_activeIcon_1f0fd_284", le = {
3136
+ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai = "_modalHeader_1f0fd_18", ui = "_modalLeft_1f0fd_38", di = "_buttonGroup_1f0fd_45", mi = "_iosIcon_1f0fd_56", fi = "_modalLoader_1f0fd_86", hi = "_dash_1f0fd_90", gi = "_searchWrapper_1f0fd_95", pi = "_chevronIcons_1f0fd_101", xi = "_logInput_1f0fd_123", vi = "_searchResult_1f0fd_130", Ii = "_loadingWrap_1f0fd_140", Ti = "_modalRight_1f0fd_151", wi = "_inputsWrapper_1f0fd_155", Ci = "_search_1f0fd_95", Si = "_cliCommand_1f0fd_172", yi = "_buttonsWrapper_1f0fd_198", bi = "_downloadIconBtn_1f0fd_204", Hi = "_downloadIconBtn__disabled_1f0fd_228", ki = "_copyIconBtn_1f0fd_238", Ri = "_copyIconBtn__disabled_1f0fd_262", _i = "_iconGroup_1f0fd_272", Ei = "_activeIcon_1f0fd_284", le = {
3137
3137
  realTimeLogModalStyle: li,
3138
3138
  customHeader: ci,
3139
3139
  modalHeader: ai,
@@ -3155,8 +3155,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3155
3155
  downloadIconBtn: bi,
3156
3156
  downloadIconBtn__disabled: Hi,
3157
3157
  copyIconBtn: ki,
3158
- copyIconBtn__disabled: _i,
3159
- iconGroup: Ri,
3158
+ copyIconBtn__disabled: Ri,
3159
+ iconGroup: _i,
3160
3160
  activeIcon: Ei
3161
3161
  }, Cs = {
3162
3162
  status: (e) => ({
@@ -3206,81 +3206,79 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3206
3206
  onFetchLogs: w,
3207
3207
  onClearLogs: g,
3208
3208
  withoutPermission: v
3209
- } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [R, m] = Qe(""), [u, y] = Qe(), [_, j] = Qe(0), z = s || [], N = c === void 0;
3210
- console.log("isFirstRequestisFirstRequest", N);
3211
- const $ = (C, W, Z, D) => {
3209
+ } = e, S = Lt(null), [, k] = Wo(e.id), [p, f] = Qe(!1), [d, b] = Qe(), [_, m] = Qe(""), [u, y] = Qe(), [R, j] = Qe(0), z = s || [], A = c === void 0, $ = (C, W, K, N) => {
3212
3210
  const q = {
3213
3211
  applications: [W || i[0].value],
3214
3212
  scroll_mode: C || void 0
3215
3213
  };
3216
- w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
3214
+ console.group("getLogs called with params:"), console.log("direction", C), console.log("selectedApp", W), console.log("onSuccess", K), console.log("onError", N), console.log("body", q), console.groupEnd(), w({ projectPk: o, appPk: r, applications: q.applications, scroll_mode: q.scroll_mode, withoutPermission: v }).then(
3217
3215
  (J) => {
3218
- var Y, ae, Se;
3219
- if (console.log("onFetchLogs res", J, Object), J && ((Se = (ae = (Y = Object == null ? void 0 : Object.prototype) == null ? void 0 : Y.hasOwnProperty) == null ? void 0 : ae.call) != null && Se.call(ae, J, "error"))) {
3220
- D && D();
3216
+ var Z, ae, Se;
3217
+ if (J && ((Se = (ae = (Z = Object == null ? void 0 : Object.prototype) == null ? void 0 : Z.hasOwnProperty) == null ? void 0 : ae.call) != null && Se.call(ae, J, "error"))) {
3218
+ console.log("onError", J, N), N && N();
3221
3219
  return;
3222
3220
  }
3223
- Z && Z();
3221
+ K && K();
3224
3222
  }
3225
3223
  );
3226
3224
  };
3227
3225
  function te(C) {
3228
3226
  let W = 0;
3229
- const Z = {};
3230
- return C.forEach((D, q) => {
3231
- const J = D.message.match(/<mark\b[^>]*>/g);
3232
- W += J ? J.length : 0, J && (Z[q] = J);
3233
- }), { total: W, filteredLogs: Z };
3227
+ const K = {};
3228
+ return C.forEach((N, q) => {
3229
+ const J = N.message.match(/<mark\b[^>]*>/g);
3230
+ W += J ? J.length : 0, J && (K[q] = J);
3231
+ }), { total: W, filteredLogs: K };
3234
3232
  }
3235
- const B = bn($, n * 1e3), K = Lt(), X = Lt(B), ve = (C, W, Z, D) => {
3233
+ const B = bn($, n * 1e3), Y = Lt(), X = Lt(B), ve = (C, W, K, N) => {
3236
3234
  if (!W || W.length < 1)
3237
3235
  return C;
3238
3236
  let q = C;
3239
- if (D.group)
3240
- if (D.regex) {
3241
- let Y;
3237
+ if (N.group)
3238
+ if (N.regex) {
3239
+ let Z;
3242
3240
  try {
3243
- Y = new RegExp(
3241
+ Z = new RegExp(
3244
3242
  W,
3245
- D.caseSensitive ? "g" : "gi"
3243
+ N.caseSensitive ? "g" : "gi"
3246
3244
  );
3247
3245
  } catch {
3248
3246
  return C;
3249
3247
  }
3250
- q = C.filter((ae) => Y.test(ae.message));
3248
+ q = C.filter((ae) => Z.test(ae.message));
3251
3249
  } else
3252
- D.caseSensitive ? q = C.filter(
3253
- (Y) => Y.message.includes(W)
3250
+ N.caseSensitive ? q = C.filter(
3251
+ (Z) => Z.message.includes(W)
3254
3252
  ) : q = C.filter(
3255
- (Y) => Y.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
3253
+ (Z) => Z.message.toLocaleLowerCase().includes(W.toLocaleLowerCase())
3256
3254
  );
3257
- return q.map((Y, ae) => ({
3258
- ...Y,
3259
- message: Te(Y.message, W, D, ae) + `
3255
+ return q.map((Z, ae) => ({
3256
+ ...Z,
3257
+ message: Te(Z.message, W, N, ae) + `
3260
3258
  `
3261
3259
  }));
3262
- }, Te = (C, W, Z, D) => {
3260
+ }, Te = (C, W, K, N) => {
3263
3261
  if (!W)
3264
3262
  return C;
3265
3263
  try {
3266
- if (Z.regex) {
3264
+ if (K.regex) {
3267
3265
  let q;
3268
3266
  const J = W.match(/^\/(.+)\/([gimsuy]*)$/);
3269
3267
  return J ? q = new RegExp(J[1], J[2]) : q = new RegExp(
3270
3268
  W,
3271
- Z.caseSensitive ? "g" : "gi"
3269
+ K.caseSensitive ? "g" : "gi"
3272
3270
  ), C.replace(
3273
3271
  q,
3274
- (Y) => `<mark data-mark-index="${D}">${Y}</mark>`
3272
+ (Z) => `<mark data-mark-index="${N}">${Z}</mark>`
3275
3273
  );
3276
3274
  } else {
3277
- if (Z.caseSensitive)
3278
- return C.split(W).join(`<mark data-mark-index="${D}">${W}</mark>`);
3275
+ if (K.caseSensitive)
3276
+ return C.split(W).join(`<mark data-mark-index="${N}">${W}</mark>`);
3279
3277
  {
3280
3278
  const q = new RegExp(W, "gi");
3281
3279
  return C.replace(
3282
3280
  q,
3283
- (J) => `<mark data-mark-index="${D}">${J}</mark>`
3281
+ (J) => `<mark data-mark-index="${N}">${J}</mark>`
3284
3282
  );
3285
3283
  }
3286
3284
  }
@@ -3295,8 +3293,8 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3295
3293
  let C = "";
3296
3294
  z.forEach((W) => {
3297
3295
  C += W.message;
3298
- }), Rn({
3299
- type: _n.SUCCESS,
3296
+ }), _n({
3297
+ type: Rn.SUCCESS,
3300
3298
  message: pt("text.copied"),
3301
3299
  closeTime: 3e3
3302
3300
  }), navigator.clipboard.writeText(C);
@@ -3306,10 +3304,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3306
3304
  [W]: !(u != null && u[W])
3307
3305
  });
3308
3306
  }, Ce = (C) => {
3309
- var W, Z;
3310
- b(C), clearTimeout(K.current), (W = X.current) == null || W.stopInterval(), (Z = X.current) == null || Z.fetch(void 0, C), jt(() => {
3311
- var D;
3312
- (D = S.current) == null || D.scrollToIndex({ index: "LAST" });
3307
+ var W, K;
3308
+ b(C), clearTimeout(Y.current), (W = X.current) == null || W.stopInterval(), (K = X.current) == null || K.fetch(void 0, C), jt(() => {
3309
+ var N;
3310
+ (N = S.current) == null || N.scrollToIndex({ index: "LAST" });
3313
3311
  }, 300)();
3314
3312
  }, Ve = (C) => {
3315
3313
  C.classList.add(le.selectedMark);
@@ -3317,29 +3315,29 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3317
3315
  Array.from(C).forEach(
3318
3316
  (W) => W.classList.remove(le.selectedMark)
3319
3317
  );
3320
- }, ke = (C, W, Z) => {
3318
+ }, ke = (C, W, K) => {
3321
3319
  var J;
3322
- let D = C - 1;
3323
- D < 1 && (D = W), j(D);
3320
+ let N = C - 1;
3321
+ N < 1 && (N = W), j(N);
3324
3322
  let q = 0;
3325
- for (const Y in Z) {
3326
- const ae = Z[Y];
3327
- if (q + ae.length >= D) {
3328
- const Se = D - q - 1;
3329
- (J = S.current) == null || J.scrollToIndex({ index: Number(Y) });
3323
+ for (const Z in K) {
3324
+ const ae = K[Z];
3325
+ if (q + ae.length >= N) {
3326
+ const Se = N - q - 1;
3327
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
3330
3328
  const Pe = document.querySelector(
3331
- `[data-index="${Number(Y) + 1}"]`
3329
+ `[data-index="${Number(Z) + 1}"]`
3332
3330
  );
3333
3331
  if (Pe) {
3334
- const Re = Pe.getElementsByTagName("mark");
3335
- je(Re);
3332
+ const _e = Pe.getElementsByTagName("mark");
3333
+ je(_e);
3336
3334
  }
3337
3335
  jt(() => {
3338
- const Re = document.querySelector(
3339
- `[data-index="${Y}"]`
3336
+ const _e = document.querySelector(
3337
+ `[data-index="${Z}"]`
3340
3338
  );
3341
- if (Re) {
3342
- const Ee = Re.getElementsByTagName("mark");
3339
+ if (_e) {
3340
+ const Ee = _e.getElementsByTagName("mark");
3343
3341
  Ee[Se] && (je(Ee), Ve(Ee[Se]));
3344
3342
  }
3345
3343
  }, 300)();
@@ -3347,29 +3345,29 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3347
3345
  } else
3348
3346
  q += ae.length;
3349
3347
  }
3350
- }, _e = (C, W, Z) => {
3348
+ }, Re = (C, W, K) => {
3351
3349
  var J;
3352
- let D = C + 1;
3353
- D > W && (D = 1), j(D);
3350
+ let N = C + 1;
3351
+ N > W && (N = 1), j(N);
3354
3352
  let q = 0;
3355
- for (const Y in Z) {
3356
- const ae = Z[Y];
3357
- if (q + ae.length >= D) {
3358
- const Se = D - q - 1;
3359
- (J = S.current) == null || J.scrollToIndex({ index: Number(Y) });
3353
+ for (const Z in K) {
3354
+ const ae = K[Z];
3355
+ if (q + ae.length >= N) {
3356
+ const Se = N - q - 1;
3357
+ (J = S.current) == null || J.scrollToIndex({ index: Number(Z) });
3360
3358
  const Pe = document.querySelector(
3361
- `[data-index="${Number(Y) - 1}"]`
3359
+ `[data-index="${Number(Z) - 1}"]`
3362
3360
  );
3363
3361
  if (Pe) {
3364
- const Re = Pe.getElementsByTagName("mark");
3365
- je(Re);
3362
+ const _e = Pe.getElementsByTagName("mark");
3363
+ je(_e);
3366
3364
  }
3367
3365
  jt(() => {
3368
- const Re = document.querySelector(
3369
- `[data-index="${Y}"]`
3366
+ const _e = document.querySelector(
3367
+ `[data-index="${Z}"]`
3370
3368
  );
3371
- if (Re) {
3372
- const Ee = Re.getElementsByTagName("mark");
3369
+ if (_e) {
3370
+ const Ee = _e.getElementsByTagName("mark");
3373
3371
  Ee[Se] && (je(Ee), Ve(Ee[Se]));
3374
3372
  }
3375
3373
  }, 300)();
@@ -3377,15 +3375,15 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3377
3375
  } else
3378
3376
  q += ae.length;
3379
3377
  }
3380
- }, T = ve(z, R, X, {
3378
+ }, T = ve(z, _, X, {
3381
3379
  regex: u == null ? void 0 : u.regex,
3382
3380
  caseSensitive: u == null ? void 0 : u.caseSensitive,
3383
3381
  group: u == null ? void 0 : u.group
3384
- }), O = te(T), oe = (C) => {
3385
- C.key === "Enter" && _e(
3386
- _,
3387
- O.total,
3388
- O.filteredLogs
3382
+ }), P = te(T), oe = (C) => {
3383
+ C.key === "Enter" && Re(
3384
+ R,
3385
+ P.total,
3386
+ P.filteredLogs
3389
3387
  );
3390
3388
  }, de = (C, W) => /* @__PURE__ */ I.jsx(
3391
3389
  "div",
@@ -3395,13 +3393,20 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3395
3393
  }
3396
3394
  );
3397
3395
  return ao(() => {
3398
- var C, W;
3399
- return (C = X.current) == null || C.fetch(void 0, d), (W = X.current) == null || W.startInterval("newer", d), () => {
3400
- clearTimeout(K.current), X.current.stopInterval(), g();
3396
+ var K;
3397
+ const C = () => {
3398
+ var N;
3399
+ console.log("onSuccessFirstRequest"), (N = X.current) == null || N.startInterval("newer", d);
3400
+ }, W = () => {
3401
+ var N;
3402
+ console.log("onErrorFirstRequest"), (N = X.current) == null || N.startInterval(void 0, d);
3403
+ };
3404
+ return (K = X.current) == null || K.fetch(void 0, d, C, W), () => {
3405
+ clearTimeout(Y.current), X.current.stopInterval(), g();
3401
3406
  };
3402
3407
  }, []), ao(() => (window.removeEventListener("keydown", oe), window.addEventListener("keydown", oe), () => {
3403
3408
  window.removeEventListener("keydown", oe);
3404
- }), [_, O.total, O.filteredLogs]), /* @__PURE__ */ I.jsx(
3409
+ }), [R, P.total, P.filteredLogs]), /* @__PURE__ */ I.jsx(
3405
3410
  Ao,
3406
3411
  {
3407
3412
  visible: !0,
@@ -3452,7 +3457,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3452
3457
  type: "text",
3453
3458
  placeholder: pt("placeholder.search"),
3454
3459
  isFormGroup: !1,
3455
- value: R,
3460
+ value: _,
3456
3461
  className: le.logInput,
3457
3462
  prefixClickable: !0,
3458
3463
  suffixClickable: !0,
@@ -3489,14 +3494,14 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3489
3494
  }
3490
3495
  )
3491
3496
  ] }),
3492
- suffix: R.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { name: "search" }) })
3497
+ suffix: _.length > 0 ? /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { onClick: we, name: "close" }) }) : /* @__PURE__ */ I.jsx("div", { children: /* @__PURE__ */ I.jsx(ye, { name: "search" }) })
3493
3498
  }
3494
3499
  ),
3495
3500
  /* @__PURE__ */ I.jsxs("div", { className: le.searchResult, children: [
3496
- R.length > 0 ? _ : 0,
3501
+ _.length > 0 ? R : 0,
3497
3502
  /* @__PURE__ */ I.jsxs("span", { children: [
3498
3503
  "/",
3499
- R.length > 0 ? O.total : 0
3504
+ _.length > 0 ? P.total : 0
3500
3505
  ] })
3501
3506
  ] }),
3502
3507
  /* @__PURE__ */ I.jsxs("div", { className: le.chevronIcons, children: [
@@ -3505,10 +3510,10 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3505
3510
  {
3506
3511
  name: "chevron-left",
3507
3512
  onClick: () => {
3508
- _e(
3509
- _,
3510
- O.total,
3511
- O.filteredLogs
3513
+ Re(
3514
+ R,
3515
+ P.total,
3516
+ P.filteredLogs
3512
3517
  );
3513
3518
  }
3514
3519
  }
@@ -3519,9 +3524,9 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3519
3524
  name: "chevron-left",
3520
3525
  onClick: () => {
3521
3526
  ke(
3522
- _,
3523
- O.total,
3524
- O.filteredLogs
3527
+ R,
3528
+ P.total,
3529
+ P.filteredLogs
3525
3530
  );
3526
3531
  }
3527
3532
  }
@@ -3585,28 +3590,28 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3585
3590
  },
3586
3591
  atTopThreshold: zi,
3587
3592
  atTopStateChange: (C) => {
3588
- var D;
3589
- if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), R.length > 0 || N)
3593
+ var N;
3594
+ if (console.log("atTop, filteredLogs.length, responseCount, minLineLimit, atTop", T.length, c, l, C), _.length > 0 || A)
3590
3595
  return;
3591
- const W = () => T.length - a < 30 || a === 0 ? 10 : a, Z = () => {
3596
+ const W = () => T.length - a < 30 || a === 0 ? 10 : a, K = () => {
3592
3597
  var q;
3593
3598
  (q = S.current) == null || q.scrollToIndex({
3594
3599
  index: W()
3595
3600
  });
3596
3601
  };
3597
- C && !N && ((D = X.current) == null || D.fetch(
3602
+ C && !A && ((N = X.current) == null || N.fetch(
3598
3603
  "older",
3599
3604
  d,
3600
- Z
3605
+ K
3601
3606
  ));
3602
3607
  },
3603
3608
  atBottomThreshold: Mo,
3604
3609
  atBottomStateChange: (C) => {
3605
- if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 || R.length > 0 || N)
3610
+ if (console.log("atBottom, filteredLogs.length, responseCount, minLineLimit, atBottom", T.length, c, l, C), T.length <= 0 || _.length > 0 || A)
3606
3611
  return;
3607
3612
  const W = () => {
3608
- var D, q;
3609
- if (console.log("onNewerSuccess ,first", T.length), (D = S.current) == null || D.scrollToIndex({
3613
+ var N, q;
3614
+ if (console.log("onNewerSuccess ,first", T.length), (N = S.current) == null || N.scrollToIndex({
3610
3615
  index: T.length - 50
3611
3616
  }), c < l) {
3612
3617
  X.current.stopInterval(), console.log(
@@ -3618,9 +3623,9 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3618
3623
  }), X.current.startInterval("newer", d);
3619
3624
  return;
3620
3625
  }
3621
- }, Z = () => {
3622
- var D;
3623
- console.log("Error fetching newer logs"), X.current.stopInterval(), (D = S.current) == null || D.scrollToIndex({
3626
+ }, K = () => {
3627
+ var N;
3628
+ console.log("Error fetching newer logs"), X.current.stopInterval(), (N = S.current) == null || N.scrollToIndex({
3624
3629
  index: T.length - 10
3625
3630
  }), X.current.startInterval("newer", d);
3626
3631
  };
@@ -3628,7 +3633,7 @@ const li = "_realTimeLogModalStyle_1f0fd_2", ci = "_customHeader_1f0fd_10", ai =
3628
3633
  "newer",
3629
3634
  d,
3630
3635
  W,
3631
- Z
3636
+ K
3632
3637
  );
3633
3638
  }
3634
3639
  }