@weng-lab/genomebrowser-ui 0.1.3 → 0.1.5

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.
@@ -37,19 +37,19 @@ function Ys() {
37
37
  if (je) return $;
38
38
  je = 1;
39
39
  var s = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
40
- function a(i, o, t) {
40
+ function a(i, o, l) {
41
41
  var c = null;
42
- if (t !== void 0 && (c = "" + t), o.key !== void 0 && (c = "" + o.key), "key" in o) {
43
- t = {};
42
+ if (l !== void 0 && (c = "" + l), o.key !== void 0 && (c = "" + o.key), "key" in o) {
43
+ l = {};
44
44
  for (var n in o)
45
- n !== "key" && (t[n] = o[n]);
46
- } else t = o;
47
- return o = t.ref, {
45
+ n !== "key" && (l[n] = o[n]);
46
+ } else l = o;
47
+ return o = l.ref, {
48
48
  $$typeof: s,
49
49
  type: i,
50
50
  key: c,
51
51
  ref: o !== void 0 ? o : null,
52
- props: t
52
+ props: l
53
53
  };
54
54
  }
55
55
  return $.Fragment = e, $.jsx = a, $.jsxs = a, $;
@@ -145,7 +145,7 @@ function zs() {
145
145
  var d = j.A;
146
146
  return d === null ? null : d.getOwner();
147
147
  }
148
- function t() {
148
+ function l() {
149
149
  return Error("react-stack-top-frame");
150
150
  }
151
151
  function c(d) {
@@ -167,7 +167,7 @@ function zs() {
167
167
  configurable: !0
168
168
  });
169
169
  }
170
- function l() {
170
+ function t() {
171
171
  var d = s(this.type);
172
172
  return Re[d] || (Re[d] = !0, console.error(
173
173
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
@@ -183,7 +183,7 @@ function zs() {
183
183
  _owner: b
184
184
  }, (D !== void 0 ? D : null) !== null ? Object.defineProperty(d, "ref", {
185
185
  enumerable: !1,
186
- get: l
186
+ get: t
187
187
  }) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
188
188
  configurable: !1,
189
189
  enumerable: !1,
@@ -270,8 +270,8 @@ React keys must be passed directly to JSX without using spread:
270
270
  };
271
271
  var z, Re = {}, be = m.react_stack_bottom_frame.bind(
272
272
  m,
273
- t
274
- )(), De = k(i(t)), We = {};
273
+ l
274
+ )(), De = k(i(l)), We = {};
275
275
  q.Fragment = u, q.jsx = function(d, _, A) {
276
276
  var b = 1e4 > j.recentlyCreatedOwnerStacks++;
277
277
  return F(
@@ -306,10 +306,10 @@ function qs({
306
306
  labelTooltip: a,
307
307
  toolbarSlot: i,
308
308
  toolbarStyle: o,
309
- toolbarIconColor: t,
309
+ toolbarIconColor: l,
310
310
  ...c
311
311
  }) {
312
- const [n, l] = Te.useState(!1), r = Te.useRef(null), F = t ?? "inherit";
312
+ const [n, t] = Te.useState(!1), r = Te.useRef(null), F = l ?? "inherit";
313
313
  return /* @__PURE__ */ C.jsxs(hs, { style: { ...o }, children: [
314
314
  typeof s != "string" && s,
315
315
  /* @__PURE__ */ C.jsxs(
@@ -367,7 +367,7 @@ function qs({
367
367
  "aria-controls": "export-menu",
368
368
  "aria-haspopup": "true",
369
369
  "aria-expanded": n ? "true" : void 0,
370
- onClick: () => l(!0),
370
+ onClick: () => t(!0),
371
371
  children: /* @__PURE__ */ C.jsx(Ms, { fontSize: "small", htmlColor: F })
372
372
  }
373
373
  ) }),
@@ -377,7 +377,7 @@ function qs({
377
377
  id: "export-menu",
378
378
  anchorEl: r.current,
379
379
  open: n,
380
- onClose: () => l(!1),
380
+ onClose: () => t(!1),
381
381
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
382
382
  transformOrigin: { vertical: "top", horizontal: "right" },
383
383
  slotProps: {
@@ -391,7 +391,7 @@ function qs({
391
391
  {
392
392
  options: { ...c.printOptions },
393
393
  render: /* @__PURE__ */ C.jsx(pe, {}),
394
- onClick: () => l(!1),
394
+ onClick: () => t(!1),
395
395
  children: "Print"
396
396
  }
397
397
  ),
@@ -403,7 +403,7 @@ function qs({
403
403
  ...c.csvOptions
404
404
  },
405
405
  render: /* @__PURE__ */ C.jsx(pe, {}),
406
- onClick: () => l(!1),
406
+ onClick: () => t(!1),
407
407
  children: "Download as CSV"
408
408
  }
409
409
  ),
@@ -412,7 +412,7 @@ function qs({
412
412
  {
413
413
  options: { ...c.excelOptions },
414
414
  render: /* @__PURE__ */ C.jsx(pe, {}),
415
- onClick: () => l(!1),
415
+ onClick: () => t(!1),
416
416
  children: "Download as Excel"
417
417
  }
418
418
  )
@@ -480,7 +480,7 @@ class ra {
480
480
  }
481
481
  }
482
482
  function es(s) {
483
- let e = null, a = null, i = null, o = 1, t = null;
483
+ let e = null, a = null, i = null, o = 1, l = null;
484
484
  if (M(s) || P(s))
485
485
  i = s, e = Be(s), a = ye(s);
486
486
  else {
@@ -489,9 +489,9 @@ function es(s) {
489
489
  const c = s.name;
490
490
  if (i = c, Me.call(s, "weight") && (o = s.weight, o <= 0))
491
491
  throw new Error(ca(c));
492
- e = Be(c), a = ye(c), t = s.getFn;
492
+ e = Be(c), a = ye(c), l = s.getFn;
493
493
  }
494
- return { path: e, id: a, weight: o, src: i, getFn: t };
494
+ return { path: e, id: a, weight: o, src: i, getFn: l };
495
495
  }
496
496
  function Be(s) {
497
497
  return P(s) ? s : s.split(".");
@@ -501,13 +501,13 @@ function ye(s) {
501
501
  }
502
502
  function da(s, e) {
503
503
  let a = [], i = !1;
504
- const o = (t, c, n) => {
505
- if (I(t))
504
+ const o = (l, c, n) => {
505
+ if (I(l))
506
506
  if (!c[n])
507
- a.push(t);
507
+ a.push(l);
508
508
  else {
509
- let l = c[n];
510
- const r = t[l];
509
+ let t = c[n];
510
+ const r = l[t];
511
511
  if (!I(r))
512
512
  return;
513
513
  if (n === c.length - 1 && (M(r) || ze(r) || aa(r)))
@@ -585,11 +585,11 @@ function ma(s = 1, e = 3) {
585
585
  const a = /* @__PURE__ */ new Map(), i = Math.pow(10, e);
586
586
  return {
587
587
  get(o) {
588
- const t = o.match(Na).length;
589
- if (a.has(t))
590
- return a.get(t);
591
- const c = 1 / Math.pow(t, 0.5 * s), n = parseFloat(Math.round(c * i) / i);
592
- return a.set(t, n), n;
588
+ const l = o.match(Na).length;
589
+ if (a.has(l))
590
+ return a.get(l);
591
+ const c = 1 / Math.pow(l, 0.5 * s), n = parseFloat(Math.round(c * i) / i);
592
+ return a.set(l, n), n;
593
593
  },
594
594
  clear() {
595
595
  a.clear();
@@ -650,14 +650,14 @@ class Se {
650
650
  }
651
651
  _addObject(e, a) {
652
652
  let i = { i: a, $: {} };
653
- this.keys.forEach((o, t) => {
653
+ this.keys.forEach((o, l) => {
654
654
  let c = o.getFn ? o.getFn(e) : this.getFn(e, o.path);
655
655
  if (I(c)) {
656
656
  if (P(c)) {
657
657
  let n = [];
658
- const l = [{ nestedArrIndex: -1, value: c }];
659
- for (; l.length; ) {
660
- const { nestedArrIndex: r, value: F } = l.pop();
658
+ const t = [{ nestedArrIndex: -1, value: c }];
659
+ for (; t.length; ) {
660
+ const { nestedArrIndex: r, value: F } = t.pop();
661
661
  if (I(F))
662
662
  if (M(F) && !Ne(F)) {
663
663
  let E = {
@@ -667,19 +667,19 @@ class Se {
667
667
  };
668
668
  n.push(E);
669
669
  } else P(F) && F.forEach((E, p) => {
670
- l.push({
670
+ t.push({
671
671
  nestedArrIndex: p,
672
672
  value: E
673
673
  });
674
674
  });
675
675
  }
676
- i.$[t] = n;
676
+ i.$[l] = n;
677
677
  } else if (M(c) && !Ne(c)) {
678
678
  let n = {
679
679
  v: c,
680
680
  n: this.norm.get(c)
681
681
  };
682
- i.$[t] = n;
682
+ i.$[l] = n;
683
683
  }
684
684
  }
685
685
  }), this.records.push(i);
@@ -696,45 +696,45 @@ function ss(s, e, { getFn: a = N.getFn, fieldNormWeight: i = N.fieldNormWeight }
696
696
  return o.setKeys(s.map(es)), o.setSources(e), o.create(), o;
697
697
  }
698
698
  function _a(s, { getFn: e = N.getFn, fieldNormWeight: a = N.fieldNormWeight } = {}) {
699
- const { keys: i, records: o } = s, t = new Se({ getFn: e, fieldNormWeight: a });
700
- return t.setKeys(i), t.setIndexRecords(o), t;
699
+ const { keys: i, records: o } = s, l = new Se({ getFn: e, fieldNormWeight: a });
700
+ return l.setKeys(i), l.setIndexRecords(o), l;
701
701
  }
702
702
  function le(s, {
703
703
  errors: e = 0,
704
704
  currentLocation: a = 0,
705
705
  expectedLocation: i = 0,
706
706
  distance: o = N.distance,
707
- ignoreLocation: t = N.ignoreLocation
707
+ ignoreLocation: l = N.ignoreLocation
708
708
  } = {}) {
709
709
  const c = e / s.length;
710
- if (t)
710
+ if (l)
711
711
  return c;
712
712
  const n = Math.abs(i - a);
713
713
  return o ? c + n / o : n ? 1 : c;
714
714
  }
715
715
  function ya(s = [], e = N.minMatchCharLength) {
716
- let a = [], i = -1, o = -1, t = 0;
717
- for (let c = s.length; t < c; t += 1) {
718
- let n = s[t];
719
- n && i === -1 ? i = t : !n && i !== -1 && (o = t - 1, o - i + 1 >= e && a.push([i, o]), i = -1);
716
+ let a = [], i = -1, o = -1, l = 0;
717
+ for (let c = s.length; l < c; l += 1) {
718
+ let n = s[l];
719
+ n && i === -1 ? i = l : !n && i !== -1 && (o = l - 1, o - i + 1 >= e && a.push([i, o]), i = -1);
720
720
  }
721
- return s[t - 1] && t - i >= e && a.push([i, t - 1]), a;
721
+ return s[l - 1] && l - i >= e && a.push([i, l - 1]), a;
722
722
  }
723
723
  const K = 32;
724
724
  function ga(s, e, a, {
725
725
  location: i = N.location,
726
726
  distance: o = N.distance,
727
- threshold: t = N.threshold,
727
+ threshold: l = N.threshold,
728
728
  findAllMatches: c = N.findAllMatches,
729
729
  minMatchCharLength: n = N.minMatchCharLength,
730
- includeMatches: l = N.includeMatches,
730
+ includeMatches: t = N.includeMatches,
731
731
  ignoreLocation: r = N.ignoreLocation
732
732
  } = {}) {
733
733
  if (e.length > K)
734
734
  throw new Error(ta(K));
735
735
  const F = e.length, E = s.length, p = Math.max(0, Math.min(i, E));
736
- let m = t, y = p;
737
- const w = n > 1 || l, u = w ? Array(E) : [];
736
+ let m = l, y = p;
737
+ const w = n > 1 || t, u = w ? Array(E) : [];
738
738
  let R;
739
739
  for (; (R = s.indexOf(e, y)) > -1; ) {
740
740
  let W = le(e, {
@@ -796,7 +796,7 @@ function ga(s, e, a, {
796
796
  };
797
797
  if (w) {
798
798
  const W = ya(u, n);
799
- W.length ? l && (S.indices = W) : S.isMatch = !1;
799
+ W.length ? t && (S.indices = W) : S.isMatch = !1;
800
800
  }
801
801
  return S;
802
802
  }
@@ -814,10 +814,10 @@ class as {
814
814
  location: a = N.location,
815
815
  threshold: i = N.threshold,
816
816
  distance: o = N.distance,
817
- includeMatches: t = N.includeMatches,
817
+ includeMatches: l = N.includeMatches,
818
818
  findAllMatches: c = N.findAllMatches,
819
819
  minMatchCharLength: n = N.minMatchCharLength,
820
- isCaseSensitive: l = N.isCaseSensitive,
820
+ isCaseSensitive: t = N.isCaseSensitive,
821
821
  ignoreDiacritics: r = N.ignoreDiacritics,
822
822
  ignoreLocation: F = N.ignoreLocation
823
823
  } = {}) {
@@ -825,13 +825,13 @@ class as {
825
825
  location: a,
826
826
  threshold: i,
827
827
  distance: o,
828
- includeMatches: t,
828
+ includeMatches: l,
829
829
  findAllMatches: c,
830
830
  minMatchCharLength: n,
831
- isCaseSensitive: l,
831
+ isCaseSensitive: t,
832
832
  ignoreDiacritics: r,
833
833
  ignoreLocation: F
834
- }, e = l ? e : e.toLowerCase(), e = r ? ne(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length)
834
+ }, e = t ? e : e.toLowerCase(), e = r ? ne(e) : e, this.pattern = e, this.chunks = [], !this.pattern.length)
835
835
  return;
836
836
  const E = (m, y) => {
837
837
  this.chunks.push({
@@ -862,20 +862,20 @@ class as {
862
862
  return o && (w.indices = [[0, e.length - 1]]), w;
863
863
  }
864
864
  const {
865
- location: t,
865
+ location: l,
866
866
  distance: c,
867
867
  threshold: n,
868
- findAllMatches: l,
868
+ findAllMatches: t,
869
869
  minMatchCharLength: r,
870
870
  ignoreLocation: F
871
871
  } = this.options;
872
872
  let E = [], p = 0, m = !1;
873
873
  this.chunks.forEach(({ pattern: w, alphabet: u, startIndex: R }) => {
874
874
  const { isMatch: g, score: f, indices: x } = ga(e, w, u, {
875
- location: t + R,
875
+ location: l + R,
876
876
  distance: c,
877
877
  threshold: n,
878
- findAllMatches: l,
878
+ findAllMatches: t,
879
879
  minMatchCharLength: r,
880
880
  includeMatches: o,
881
881
  ignoreLocation: F
@@ -1043,10 +1043,10 @@ class is extends v {
1043
1043
  location: a = N.location,
1044
1044
  threshold: i = N.threshold,
1045
1045
  distance: o = N.distance,
1046
- includeMatches: t = N.includeMatches,
1046
+ includeMatches: l = N.includeMatches,
1047
1047
  findAllMatches: c = N.findAllMatches,
1048
1048
  minMatchCharLength: n = N.minMatchCharLength,
1049
- isCaseSensitive: l = N.isCaseSensitive,
1049
+ isCaseSensitive: t = N.isCaseSensitive,
1050
1050
  ignoreDiacritics: r = N.ignoreDiacritics,
1051
1051
  ignoreLocation: F = N.ignoreLocation
1052
1052
  } = {}) {
@@ -1054,10 +1054,10 @@ class is extends v {
1054
1054
  location: a,
1055
1055
  threshold: i,
1056
1056
  distance: o,
1057
- includeMatches: t,
1057
+ includeMatches: l,
1058
1058
  findAllMatches: c,
1059
1059
  minMatchCharLength: n,
1060
- isCaseSensitive: l,
1060
+ isCaseSensitive: t,
1061
1061
  ignoreDiacritics: r,
1062
1062
  ignoreLocation: F
1063
1063
  });
@@ -1090,9 +1090,9 @@ class os extends v {
1090
1090
  }
1091
1091
  search(e) {
1092
1092
  let a = 0, i;
1093
- const o = [], t = this.pattern.length;
1093
+ const o = [], l = this.pattern.length;
1094
1094
  for (; (i = e.indexOf(this.pattern, a)) > -1; )
1095
- a = i + t, o.push([i, a - 1]);
1095
+ a = i + l, o.push([i, a - 1]);
1096
1096
  const c = !!o.length;
1097
1097
  return {
1098
1098
  isMatch: c,
@@ -1113,16 +1113,16 @@ const ge = [
1113
1113
  ], ke = ge.length, ba = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, Da = "|";
1114
1114
  function Wa(s, e = {}) {
1115
1115
  return s.split(Da).map((a) => {
1116
- let i = a.trim().split(ba).filter((t) => t && !!t.trim()), o = [];
1117
- for (let t = 0, c = i.length; t < c; t += 1) {
1118
- const n = i[t];
1119
- let l = !1, r = -1;
1120
- for (; !l && ++r < ke; ) {
1116
+ let i = a.trim().split(ba).filter((l) => l && !!l.trim()), o = [];
1117
+ for (let l = 0, c = i.length; l < c; l += 1) {
1118
+ const n = i[l];
1119
+ let t = !1, r = -1;
1120
+ for (; !t && ++r < ke; ) {
1121
1121
  const F = ge[r];
1122
1122
  let E = F.isMultiMatch(n);
1123
- E && (o.push(new F(E, e)), l = !0);
1123
+ E && (o.push(new F(E, e)), t = !0);
1124
1124
  }
1125
- if (!l)
1125
+ if (!t)
1126
1126
  for (r = -1; ++r < ke; ) {
1127
1127
  const F = ge[r];
1128
1128
  let E = F.isSingleMatch(n);
@@ -1141,10 +1141,10 @@ class Oa {
1141
1141
  isCaseSensitive: a = N.isCaseSensitive,
1142
1142
  ignoreDiacritics: i = N.ignoreDiacritics,
1143
1143
  includeMatches: o = N.includeMatches,
1144
- minMatchCharLength: t = N.minMatchCharLength,
1144
+ minMatchCharLength: l = N.minMatchCharLength,
1145
1145
  ignoreLocation: c = N.ignoreLocation,
1146
1146
  findAllMatches: n = N.findAllMatches,
1147
- location: l = N.location,
1147
+ location: t = N.location,
1148
1148
  threshold: r = N.threshold,
1149
1149
  distance: F = N.distance
1150
1150
  } = {}) {
@@ -1152,10 +1152,10 @@ class Oa {
1152
1152
  isCaseSensitive: a,
1153
1153
  ignoreDiacritics: i,
1154
1154
  includeMatches: o,
1155
- minMatchCharLength: t,
1155
+ minMatchCharLength: l,
1156
1156
  findAllMatches: n,
1157
1157
  ignoreLocation: c,
1158
- location: l,
1158
+ location: t,
1159
1159
  threshold: r,
1160
1160
  distance: F
1161
1161
  }, e = a ? e : e.toLowerCase(), e = i ? ne(e) : e, this.pattern = e, this.query = Wa(this.pattern, this.options);
@@ -1170,28 +1170,28 @@ class Oa {
1170
1170
  isMatch: !1,
1171
1171
  score: 1
1172
1172
  };
1173
- const { includeMatches: i, isCaseSensitive: o, ignoreDiacritics: t } = this.options;
1174
- e = o ? e : e.toLowerCase(), e = t ? ne(e) : e;
1175
- let c = 0, n = [], l = 0;
1173
+ const { includeMatches: i, isCaseSensitive: o, ignoreDiacritics: l } = this.options;
1174
+ e = o ? e : e.toLowerCase(), e = l ? ne(e) : e;
1175
+ let c = 0, n = [], t = 0;
1176
1176
  for (let r = 0, F = a.length; r < F; r += 1) {
1177
1177
  const E = a[r];
1178
1178
  n.length = 0, c = 0;
1179
1179
  for (let p = 0, m = E.length; p < m; p += 1) {
1180
1180
  const y = E[p], { isMatch: w, indices: u, score: R } = y.search(e);
1181
1181
  if (w) {
1182
- if (c += 1, l += R, i) {
1182
+ if (c += 1, t += R, i) {
1183
1183
  const g = y.constructor.type;
1184
1184
  Ta.has(g) ? n = [...n, ...u] : n.push(u);
1185
1185
  }
1186
1186
  } else {
1187
- l = 0, c = 0, n.length = 0;
1187
+ t = 0, c = 0, n.length = 0;
1188
1188
  break;
1189
1189
  }
1190
1190
  }
1191
1191
  if (c) {
1192
1192
  let p = {
1193
1193
  isMatch: !0,
1194
- score: l / c
1194
+ score: t / c
1195
1195
  };
1196
1196
  return i && (p.indices = n), p;
1197
1197
  }
@@ -1227,26 +1227,26 @@ const ce = {
1227
1227
  });
1228
1228
  function ls(s, e, { auto: a = !0 } = {}) {
1229
1229
  const i = (o) => {
1230
- let t = Object.keys(o);
1230
+ let l = Object.keys(o);
1231
1231
  const c = ja(o);
1232
- if (!c && t.length > 1 && !Ae(o))
1232
+ if (!c && l.length > 1 && !Ae(o))
1233
1233
  return i(ve(o));
1234
1234
  if (Ia(o)) {
1235
- const l = c ? o[fe.PATH] : t[0], r = c ? o[fe.PATTERN] : o[l];
1235
+ const t = c ? o[fe.PATH] : l[0], r = c ? o[fe.PATTERN] : o[t];
1236
1236
  if (!M(r))
1237
- throw new Error(la(l));
1237
+ throw new Error(la(t));
1238
1238
  const F = {
1239
- keyId: ye(l),
1239
+ keyId: ye(t),
1240
1240
  pattern: r
1241
1241
  };
1242
1242
  return a && (F.searcher = ue(r, e)), F;
1243
1243
  }
1244
1244
  let n = {
1245
1245
  children: [],
1246
- operator: t[0]
1246
+ operator: l[0]
1247
1247
  };
1248
- return t.forEach((l) => {
1249
- const r = o[l];
1248
+ return l.forEach((t) => {
1249
+ const r = o[t];
1250
1250
  P(r) && r.forEach((F) => {
1251
1251
  n.children.push(i(F));
1252
1252
  });
@@ -1257,11 +1257,11 @@ function ls(s, e, { auto: a = !0 } = {}) {
1257
1257
  function La(s, { ignoreFieldNorm: e = N.ignoreFieldNorm }) {
1258
1258
  s.forEach((a) => {
1259
1259
  let i = 1;
1260
- a.matches.forEach(({ key: o, norm: t, score: c }) => {
1260
+ a.matches.forEach(({ key: o, norm: l, score: c }) => {
1261
1261
  const n = o ? o.weight : null;
1262
1262
  i *= Math.pow(
1263
1263
  c === 0 && n ? Number.EPSILON : c,
1264
- (n || 1) * (e ? 1 : t)
1264
+ (n || 1) * (e ? 1 : l)
1265
1265
  );
1266
1266
  }), a.score = i;
1267
1267
  });
@@ -1271,10 +1271,10 @@ function Ma(s, e) {
1271
1271
  e.matches = [], I(a) && a.forEach((i) => {
1272
1272
  if (!I(i.indices) || !i.indices.length)
1273
1273
  return;
1274
- const { indices: o, value: t } = i;
1274
+ const { indices: o, value: l } = i;
1275
1275
  let c = {
1276
1276
  indices: o,
1277
- value: t
1277
+ value: l
1278
1278
  };
1279
1279
  i.key && (c.key = i.key.src), i.idx > -1 && (c.refIndex = i.idx), e.matches.push(c);
1280
1280
  });
@@ -1287,13 +1287,13 @@ function Pa(s, e, {
1287
1287
  includeScore: i = N.includeScore
1288
1288
  } = {}) {
1289
1289
  const o = [];
1290
- return a && o.push(Ma), i && o.push(Ba), s.map((t) => {
1291
- const { idx: c } = t, n = {
1290
+ return a && o.push(Ma), i && o.push(Ba), s.map((l) => {
1291
+ const { idx: c } = l, n = {
1292
1292
  item: e[c],
1293
1293
  refIndex: c
1294
1294
  };
1295
- return o.length && o.forEach((l) => {
1296
- l(t, n);
1295
+ return o.length && o.forEach((t) => {
1296
+ t(l, n);
1297
1297
  }), n;
1298
1298
  });
1299
1299
  }
@@ -1315,8 +1315,8 @@ class V {
1315
1315
  remove(e = () => !1) {
1316
1316
  const a = [];
1317
1317
  for (let i = 0, o = this._docs.length; i < o; i += 1) {
1318
- const t = this._docs[i];
1319
- e(t, i) && (this.removeAt(i), i -= 1, o -= 1, a.push(t));
1318
+ const l = this._docs[i];
1319
+ e(l, i) && (this.removeAt(i), i -= 1, o -= 1, a.push(l));
1320
1320
  }
1321
1321
  return a;
1322
1322
  }
@@ -1330,106 +1330,106 @@ class V {
1330
1330
  const {
1331
1331
  includeMatches: i,
1332
1332
  includeScore: o,
1333
- shouldSort: t,
1333
+ shouldSort: l,
1334
1334
  sortFn: c,
1335
1335
  ignoreFieldNorm: n
1336
1336
  } = this.options;
1337
- let l = M(e) ? M(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
1338
- return La(l, { ignoreFieldNorm: n }), t && l.sort(c), ze(a) && a > -1 && (l = l.slice(0, a)), Pa(l, this._docs, {
1337
+ let t = M(e) ? M(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
1338
+ return La(t, { ignoreFieldNorm: n }), l && t.sort(c), ze(a) && a > -1 && (t = t.slice(0, a)), Pa(t, this._docs, {
1339
1339
  includeMatches: i,
1340
1340
  includeScore: o
1341
1341
  });
1342
1342
  }
1343
1343
  _searchStringList(e) {
1344
1344
  const a = ue(e, this.options), { records: i } = this._myIndex, o = [];
1345
- return i.forEach(({ v: t, i: c, n }) => {
1346
- if (!I(t))
1345
+ return i.forEach(({ v: l, i: c, n }) => {
1346
+ if (!I(l))
1347
1347
  return;
1348
- const { isMatch: l, score: r, indices: F } = a.searchIn(t);
1349
- l && o.push({
1350
- item: t,
1348
+ const { isMatch: t, score: r, indices: F } = a.searchIn(l);
1349
+ t && o.push({
1350
+ item: l,
1351
1351
  idx: c,
1352
- matches: [{ score: r, value: t, norm: n, indices: F }]
1352
+ matches: [{ score: r, value: l, norm: n, indices: F }]
1353
1353
  });
1354
1354
  }), o;
1355
1355
  }
1356
1356
  _searchLogical(e) {
1357
- const a = ls(e, this.options), i = (n, l, r) => {
1357
+ const a = ls(e, this.options), i = (n, t, r) => {
1358
1358
  if (!n.children) {
1359
1359
  const { keyId: E, searcher: p } = n, m = this._findMatches({
1360
1360
  key: this._keyStore.get(E),
1361
- value: this._myIndex.getValueForItemAtKeyId(l, E),
1361
+ value: this._myIndex.getValueForItemAtKeyId(t, E),
1362
1362
  searcher: p
1363
1363
  });
1364
1364
  return m && m.length ? [
1365
1365
  {
1366
1366
  idx: r,
1367
- item: l,
1367
+ item: t,
1368
1368
  matches: m
1369
1369
  }
1370
1370
  ] : [];
1371
1371
  }
1372
1372
  const F = [];
1373
1373
  for (let E = 0, p = n.children.length; E < p; E += 1) {
1374
- const m = n.children[E], y = i(m, l, r);
1374
+ const m = n.children[E], y = i(m, t, r);
1375
1375
  if (y.length)
1376
1376
  F.push(...y);
1377
1377
  else if (n.operator === ce.AND)
1378
1378
  return [];
1379
1379
  }
1380
1380
  return F;
1381
- }, o = this._myIndex.records, t = {}, c = [];
1382
- return o.forEach(({ $: n, i: l }) => {
1381
+ }, o = this._myIndex.records, l = {}, c = [];
1382
+ return o.forEach(({ $: n, i: t }) => {
1383
1383
  if (I(n)) {
1384
- let r = i(a, n, l);
1385
- r.length && (t[l] || (t[l] = { idx: l, item: n, matches: [] }, c.push(t[l])), r.forEach(({ matches: F }) => {
1386
- t[l].matches.push(...F);
1384
+ let r = i(a, n, t);
1385
+ r.length && (l[t] || (l[t] = { idx: t, item: n, matches: [] }, c.push(l[t])), r.forEach(({ matches: F }) => {
1386
+ l[t].matches.push(...F);
1387
1387
  }));
1388
1388
  }
1389
1389
  }), c;
1390
1390
  }
1391
1391
  _searchObjectList(e) {
1392
- const a = ue(e, this.options), { keys: i, records: o } = this._myIndex, t = [];
1392
+ const a = ue(e, this.options), { keys: i, records: o } = this._myIndex, l = [];
1393
1393
  return o.forEach(({ $: c, i: n }) => {
1394
1394
  if (!I(c))
1395
1395
  return;
1396
- let l = [];
1396
+ let t = [];
1397
1397
  i.forEach((r, F) => {
1398
- l.push(
1398
+ t.push(
1399
1399
  ...this._findMatches({
1400
1400
  key: r,
1401
1401
  value: c[F],
1402
1402
  searcher: a
1403
1403
  })
1404
1404
  );
1405
- }), l.length && t.push({
1405
+ }), t.length && l.push({
1406
1406
  idx: n,
1407
1407
  item: c,
1408
- matches: l
1408
+ matches: t
1409
1409
  });
1410
- }), t;
1410
+ }), l;
1411
1411
  }
1412
1412
  _findMatches({ key: e, value: a, searcher: i }) {
1413
1413
  if (!I(a))
1414
1414
  return [];
1415
1415
  let o = [];
1416
1416
  if (P(a))
1417
- a.forEach(({ v: t, i: c, n }) => {
1418
- if (!I(t))
1417
+ a.forEach(({ v: l, i: c, n }) => {
1418
+ if (!I(l))
1419
1419
  return;
1420
- const { isMatch: l, score: r, indices: F } = i.searchIn(t);
1421
- l && o.push({
1420
+ const { isMatch: t, score: r, indices: F } = i.searchIn(l);
1421
+ t && o.push({
1422
1422
  score: r,
1423
1423
  key: e,
1424
- value: t,
1424
+ value: l,
1425
1425
  idx: c,
1426
1426
  norm: n,
1427
1427
  indices: F
1428
1428
  });
1429
1429
  });
1430
1430
  else {
1431
- const { v: t, n: c } = a, { isMatch: n, score: l, indices: r } = i.searchIn(t);
1432
- n && o.push({ score: l, key: e, value: t, norm: c, indices: r });
1431
+ const { v: l, n: c } = a, { isMatch: n, score: t, indices: r } = i.searchIn(l);
1432
+ n && o.push({ score: t, key: e, value: l, norm: c, indices: r });
1433
1433
  }
1434
1434
  return o;
1435
1435
  }
@@ -1468,24 +1468,24 @@ function Ga(s, e) {
1468
1468
  let a = [];
1469
1469
  return ns(ts, "tracks").forEach((o) => {
1470
1470
  var c;
1471
- const t = ((c = o.assays) == null ? void 0 : c.filter((n) => n.assay === s.toLowerCase())) || [];
1472
- t.length > 0 && o.ontology === e.toLowerCase() && a.push({
1471
+ const l = ((c = o.assays) == null ? void 0 : c.filter((n) => n.assay === s.toLowerCase())) || [];
1472
+ l.length > 0 && o.ontology === e.toLowerCase() && a.push({
1473
1473
  ...o,
1474
- assays: t
1474
+ assays: l
1475
1475
  });
1476
1476
  }), a;
1477
1477
  }
1478
1478
  function cs(s) {
1479
- const { ontology: e, lifeStage: a, sampleType: i, displayname: o } = s, { assay: t, experimentAccession: c, fileAccession: n, url: l } = s.assays[0];
1479
+ const { ontology: e, lifeStage: a, sampleType: i, displayname: o } = s, { assay: l, experimentAccession: c, fileAccession: n, url: t } = s.assays[0];
1480
1480
  return {
1481
1481
  ontology: U(e),
1482
1482
  lifeStage: U(a),
1483
1483
  sampleType: U(i),
1484
1484
  displayname: U(o),
1485
- assay: va(t),
1485
+ assay: va(l),
1486
1486
  experimentAccession: c,
1487
1487
  fileAccession: n,
1488
- url: l
1488
+ url: t
1489
1489
  };
1490
1490
  }
1491
1491
  function Ka({
@@ -1568,65 +1568,65 @@ const ee = [
1568
1568
  te.map((s) => [s.experimentAccession, s])
1569
1569
  );
1570
1570
  function Ge(s, e, a) {
1571
- const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
1571
+ const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
1572
1572
  let c = 1;
1573
- return s.reduce((l, r) => {
1573
+ return s.reduce((t, r) => {
1574
1574
  const F = a.get(r);
1575
- return F && l.push(F), l;
1576
- }, []).forEach((l) => {
1577
- let r = i.get(l.assay);
1575
+ return F && t.push(F), t;
1576
+ }, []).forEach((t) => {
1577
+ let r = i.get(t.assay);
1578
1578
  r || (r = {
1579
- id: l.assay,
1579
+ id: t.assay,
1580
1580
  isAssayItem: !0,
1581
- label: l.assay,
1581
+ label: t.assay,
1582
1582
  icon: "removeable",
1583
1583
  children: [],
1584
1584
  allExpAccessions: []
1585
- }, i.set(l.assay, r), e.children.push(r));
1586
- let F = o.get(l.ontology + l.assay);
1585
+ }, i.set(t.assay, r), e.children.push(r));
1586
+ let F = o.get(t.ontology + t.assay);
1587
1587
  F || (F = {
1588
- id: l.ontology + "_" + c++,
1588
+ id: t.ontology + "_" + c++,
1589
1589
  isAssayItem: !1,
1590
- label: l.ontology,
1590
+ label: t.ontology,
1591
1591
  icon: "removeable",
1592
1592
  children: [],
1593
1593
  allExpAccessions: []
1594
- }, r.children.push(F), o.set(l.ontology + l.assay, F));
1594
+ }, r.children.push(F), o.set(t.ontology + t.assay, F));
1595
1595
  const E = {
1596
- id: l.displayname + "_" + c++,
1596
+ id: t.displayname + "_" + c++,
1597
1597
  isAssayItem: !1,
1598
- label: l.displayname,
1598
+ label: t.displayname,
1599
1599
  icon: "removeable",
1600
1600
  children: [],
1601
1601
  allExpAccessions: []
1602
1602
  };
1603
1603
  F.children.push(E);
1604
- let p = t.get(l.displayname + l.experimentAccession);
1604
+ let p = l.get(t.displayname + t.experimentAccession);
1605
1605
  p || (p = {
1606
- id: l.experimentAccession,
1606
+ id: t.experimentAccession,
1607
1607
  isAssayItem: !1,
1608
- label: l.experimentAccession,
1609
- icon: l.assay,
1608
+ label: t.experimentAccession,
1609
+ icon: t.assay,
1610
1610
  children: []
1611
- }, t.set(l.displayname + l.assay, p), E.children.push(p)), r.allExpAccessions.push(l.experimentAccession), F.allExpAccessions.push(l.experimentAccession), E.allExpAccessions.push(l.experimentAccession), e.allRowInfo.push(l);
1612
- }), e.children.sort((l, r) => ee.indexOf(l.id) - ee.indexOf(r.id)), [e];
1611
+ }, l.set(t.displayname + t.assay, p), E.children.push(p)), r.allExpAccessions.push(t.experimentAccession), F.allExpAccessions.push(t.experimentAccession), E.allExpAccessions.push(t.experimentAccession), e.allRowInfo.push(t);
1612
+ }), e.children.sort((t, r) => ee.indexOf(t.id) - ee.indexOf(r.id)), [e];
1613
1613
  }
1614
1614
  function Ke(s, e, a) {
1615
- const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
1616
- return s.reduce((n, l) => {
1617
- const r = a.get(l);
1615
+ const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
1616
+ return s.reduce((n, t) => {
1617
+ const r = a.get(t);
1618
1618
  return r && n.push(r), n;
1619
1619
  }, []).forEach((n) => {
1620
1620
  if (!n)
1621
1621
  return;
1622
- let l = i.get(n.ontology);
1623
- l || (l = {
1622
+ let t = i.get(n.ontology);
1623
+ t || (t = {
1624
1624
  id: n.ontology,
1625
1625
  label: n.ontology,
1626
1626
  icon: "removeable",
1627
1627
  children: [],
1628
1628
  allExpAccessions: []
1629
- }, i.set(n.ontology, l), e.children.push(l));
1629
+ }, i.set(n.ontology, t), e.children.push(t));
1630
1630
  let r = o.get(n.displayname);
1631
1631
  r || (r = {
1632
1632
  id: n.displayname,
@@ -1634,15 +1634,15 @@ function Ke(s, e, a) {
1634
1634
  icon: "removeable",
1635
1635
  children: [],
1636
1636
  allExpAccessions: []
1637
- }, l.children.push(r), o.set(n.displayname, r));
1638
- let F = t.get(n.displayname + n.assay);
1637
+ }, t.children.push(r), o.set(n.displayname, r));
1638
+ let F = l.get(n.displayname + n.assay);
1639
1639
  F || (F = {
1640
1640
  id: n.experimentAccession,
1641
1641
  label: n.experimentAccession,
1642
1642
  icon: n.assay,
1643
1643
  children: []
1644
- }, t.set(n.displayname + n.assay, F), r.children.push(F)), l.allExpAccessions.push(n.experimentAccession), r.allExpAccessions.push(n.experimentAccession), e.allRowInfo.push(n);
1645
- }), e.children.sort((n, l) => se.indexOf(n.id) - se.indexOf(l.id)), [e];
1644
+ }, l.set(n.displayname + n.assay, F), r.children.push(F)), t.allExpAccessions.push(n.experimentAccession), r.allExpAccessions.push(n.experimentAccession), e.allRowInfo.push(n);
1645
+ }), e.children.sort((n, t) => se.indexOf(n.id) - se.indexOf(t.id)), [e];
1646
1646
  }
1647
1647
  function Ha({
1648
1648
  treeItems: s,
@@ -1651,8 +1651,8 @@ function Ha({
1651
1651
  threshold: i,
1652
1652
  limit: o = 10
1653
1653
  }) {
1654
- const t = s[0].allRowInfo ?? [];
1655
- return new V(t, {
1654
+ const l = s[0].allRowInfo ?? [];
1655
+ return new V(l, {
1656
1656
  includeScore: !0,
1657
1657
  shouldSort: !0,
1658
1658
  threshold: i,
@@ -1694,12 +1694,12 @@ const Ua = he("li")(({ theme: s }) => ({
1694
1694
  color: "black",
1695
1695
  fontFamily: "inherit"
1696
1696
  });
1697
- function Xa({ icon: s, children: e, ...a }) {
1698
- const i = a.isAssayItem ? "subtitle2" : "body2", o = a.isAssayItem ? "bold" : 500;
1697
+ function Xa({ icon: s, children: e, isAssayItem: a, ...i }) {
1698
+ const o = a ? "subtitle2" : "body2", l = a ? "bold" : 500;
1699
1699
  return /* @__PURE__ */ C.jsxs(
1700
1700
  Us,
1701
1701
  {
1702
- ...a,
1702
+ ...i,
1703
1703
  sx: {
1704
1704
  display: "flex",
1705
1705
  alignItems: "center"
@@ -1715,8 +1715,8 @@ function Xa({ icon: s, children: e, ...a }) {
1715
1715
  }
1716
1716
  ),
1717
1717
  /* @__PURE__ */ C.jsxs(re, { direction: "row", spacing: 2, alignItems: "center", children: [
1718
- a.isAssayItem && de(a.id),
1719
- /* @__PURE__ */ C.jsx(Va, { fontWeight: o, variant: i, children: e })
1718
+ a && de(i.id),
1719
+ /* @__PURE__ */ C.jsx(Va, { fontWeight: l, variant: o, children: e })
1720
1720
  ] })
1721
1721
  ]
1722
1722
  }
@@ -1764,7 +1764,7 @@ const Ja = he("div")(({ theme: s }) => ({
1764
1764
  return de(s);
1765
1765
  }
1766
1766
  }, Qa = H.forwardRef(function(e, a) {
1767
- const { id: i, itemId: o, label: t, disabled: c, children: n, onRemove: l, ...r } = e, {
1767
+ const { id: i, itemId: o, label: l, disabled: c, children: n, onRemove: t, ...r } = e, {
1768
1768
  getContextProviderProps: F,
1769
1769
  getRootProps: E,
1770
1770
  getContentProps: p,
@@ -1773,8 +1773,8 @@ const Ja = he("div")(({ theme: s }) => ({
1773
1773
  getLabelProps: w,
1774
1774
  getGroupTransitionProps: u,
1775
1775
  status: R
1776
- } = Zs({ id: i, itemId: o, children: n, label: t, disabled: c, rootRef: a }), g = Js(o), f = Za(g.icon), x = (G) => {
1777
- G.stopPropagation(), l == null || l(g);
1776
+ } = Zs({ id: i, itemId: o, children: n, label: l, disabled: c, rootRef: a }), g = Js(o), f = Za(g.icon), x = (G) => {
1777
+ G.stopPropagation(), t == null || t(g);
1778
1778
  };
1779
1779
  return /* @__PURE__ */ C.jsx(Xs, { ...F(), children: /* @__PURE__ */ C.jsxs(Ua, { ...E(r), children: [
1780
1780
  /* @__PURE__ */ C.jsxs(Ja, { ...p(), children: [
@@ -1919,10 +1919,10 @@ function ei(s) {
1919
1919
  labelTooltip: a,
1920
1920
  downloadFileName: i,
1921
1921
  toolbarSlot: o,
1922
- toolbarStyle: t,
1922
+ toolbarStyle: l,
1923
1923
  toolbarIconColor: c,
1924
1924
  sortedAssay: n,
1925
- handleSelection: l,
1925
+ handleSelection: t,
1926
1926
  rows: r,
1927
1927
  selectedTracks: F
1928
1928
  } = s, E = me(() => {
@@ -1931,7 +1931,7 @@ function ei(s) {
1931
1931
  downloadFileName: i,
1932
1932
  labelTooltip: a,
1933
1933
  toolbarSlot: o,
1934
- toolbarStyle: t,
1934
+ toolbarStyle: l,
1935
1935
  toolbarIconColor: c
1936
1936
  };
1937
1937
  return (f) => /* @__PURE__ */ C.jsx(qs, { ...f, ...g });
@@ -1956,7 +1956,7 @@ function ei(s) {
1956
1956
  rowGroupingModel: m,
1957
1957
  groupingColDef: { leafField: "displayname", display: "flex" },
1958
1958
  columnVisibilityModel: { displayname: !1 },
1959
- onRowSelectionModelChange: l,
1959
+ onRowSelectionModelChange: t,
1960
1960
  rowSelectionPropagation: { descendants: !0 },
1961
1961
  rowSelectionModel: { type: "include", ids: new Set(F.keys()) },
1962
1962
  slots: {
@@ -1990,18 +1990,18 @@ function si({
1990
1990
  activeTracks: a,
1991
1991
  isSearchResult: i
1992
1992
  }) {
1993
- const o = s((c) => c.removeIds), t = (c) => {
1993
+ const o = s((c) => c.removeIds), l = (c) => {
1994
1994
  const n = c.allExpAccessions;
1995
1995
  if (n && n.length) {
1996
- const l = new Set(n);
1996
+ const t = new Set(n);
1997
1997
  n.forEach((r) => {
1998
1998
  const F = Q.get(r);
1999
- F && (l.add(`auto-generated-row-ontology/${F.ontology}`), l.add(
1999
+ F && (t.add(`auto-generated-row-ontology/${F.ontology}`), t.add(
2000
2000
  `auto-generated-row-ontology/${F.ontology}-assay/${F.assay}`
2001
- ), l.add(`auto-generated-row-assay/${F.assay}`), l.add(
2001
+ ), t.add(`auto-generated-row-assay/${F.assay}`), t.add(
2002
2002
  `auto-generated-row-assay/${F.assay}-ontology/${F.ontology}`
2003
2003
  ));
2004
- }), o(l);
2004
+ }), o(t);
2005
2005
  }
2006
2006
  };
2007
2007
  return /* @__PURE__ */ C.jsxs(
@@ -2070,7 +2070,7 @@ function si({
2070
2070
  slots: { item: Qa },
2071
2071
  slotProps: {
2072
2072
  item: {
2073
- onRemove: t
2073
+ onRemove: l
2074
2074
  }
2075
2075
  },
2076
2076
  sx: {
@@ -2088,7 +2088,7 @@ function si({
2088
2088
  );
2089
2089
  }
2090
2090
  function Wi({ store: s }) {
2091
- const [e, a] = Z(!1), [i, o] = Z(!1), [t, c] = Z(""), [n, l] = Z(!1), r = s((S) => S.selectedTracks), F = s((S) => S.setSelected), E = s((S) => S.clear), p = s((S) => S.maxTracks), m = me(
2091
+ const [e, a] = Z(!1), [i, o] = Z(!1), [l, c] = Z(""), [n, t] = Z(!1), r = s((S) => S.selectedTracks), F = s((S) => S.setSelected), E = s((S) => S.clear), p = s((S) => S.maxTracks), m = me(
2092
2092
  () => new Set(r.keys()),
2093
2093
  [r]
2094
2094
  ), y = me(() => i ? Ge(
@@ -2124,8 +2124,8 @@ function Wi({ store: s }) {
2124
2124
  }
2125
2125
  ]);
2126
2126
  Ze(() => {
2127
- t === "" && (g(y), u(te), l(!1));
2128
- }, [y, t]);
2127
+ l === "" && (g(y), u(te), t(!1));
2128
+ }, [y, l]);
2129
2129
  const f = () => {
2130
2130
  o(!i);
2131
2131
  }, x = (S) => {
@@ -2179,7 +2179,7 @@ function Wi({ store: s }) {
2179
2179
  },
2180
2180
  Q
2181
2181
  );
2182
- u(T), l(!0), g(Y);
2182
+ u(T), t(!0), g(Y);
2183
2183
  }, G = (S) => {
2184
2184
  const W = (S && S.ids) ?? /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
2185
2185
  if (W.forEach((T) => {
@@ -2265,7 +2265,7 @@ const Xe = (s) => {
2265
2265
  const p = e;
2266
2266
  e = F ?? (typeof E != "object" || E === null) ? E : Object.assign({}, e, E), a.forEach((m) => m(e, p));
2267
2267
  }
2268
- }, o = () => e, n = { setState: i, getState: o, getInitialState: () => l, subscribe: (r) => (a.add(r), () => a.delete(r)) }, l = e = s(i, o, n);
2268
+ }, o = () => e, n = { setState: i, getState: o, getInitialState: () => t, subscribe: (r) => (a.add(r), () => a.delete(r)) }, t = e = s(i, o, n);
2269
2269
  return n;
2270
2270
  }, ai = ((s) => s ? Xe(s) : Xe), ii = (s) => s;
2271
2271
  function oi(s, e = ii) {
@@ -2280,21 +2280,21 @@ const Je = (s) => {
2280
2280
  const e = ai(s), a = (i) => oi(e, i);
2281
2281
  return Object.assign(a, e), a;
2282
2282
  }, li = ((s) => s ? Je(s) : Je);
2283
- function Ti() {
2284
- return li((s, e) => ({
2283
+ function Ti(s) {
2284
+ return li((e, a) => ({
2285
2285
  maxTracks: 30,
2286
- selectedTracks: /* @__PURE__ */ new Map(),
2287
- selectedIds: () => new Set(e().selectedTracks.keys()),
2288
- setSelected: (a) => s(() => ({
2289
- selectedTracks: new Map(a)
2286
+ selectedTracks: s ? new Map(s) : /* @__PURE__ */ new Map(),
2287
+ selectedIds: () => new Set(a().selectedTracks.keys()),
2288
+ setSelected: (i) => e(() => ({
2289
+ selectedTracks: new Map(i)
2290
2290
  })),
2291
- removeIds: (a) => s((i) => {
2292
- const o = new Map(i.selectedTracks);
2293
- return a.forEach((t) => {
2294
- o.delete(t);
2295
- }), { selectedTracks: o };
2291
+ removeIds: (i) => e((o) => {
2292
+ const l = new Map(o.selectedTracks);
2293
+ return i.forEach((c) => {
2294
+ l.delete(c);
2295
+ }), { selectedTracks: l };
2296
2296
  }),
2297
- clear: () => s(() => ({ selectedTracks: /* @__PURE__ */ new Map() }))
2297
+ clear: () => e(() => ({ selectedTracks: /* @__PURE__ */ new Map() }))
2298
2298
  }));
2299
2299
  }
2300
2300
  export {