@aigamo/hydrangean-diva 0.0.1-alpha.23 → 0.0.1-alpha.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,15 +1,15 @@
1
- import { makeObservable as Nr, action as v, computed as _, observable as X, reaction as $r } from "mobx";
1
+ import { makeObservable as Nr, action as y, computed as w, observable as X, reaction as $r } from "mobx";
2
2
  import * as te from "react";
3
- import Lt, { forwardRef as jr, useContext as ct, useState as z, useEffect as Vt, memo as re, useCallback as $, useMemo as Ve, createContext as Ut, useLayoutEffect as zr } from "react";
4
- import qr from "@emotion/cache";
5
- import { EuiSelectable as Lr, EuiPopoverTitle as Vr, EuiPopoverFooter as Ur, EuiButton as Q, EuiPopover as xe, useGeneratedHtmlId as Yr, EuiModalHeaderTitle as Wr, EuiModalHeader as Hr, EuiForm as Gr, EuiFormRow as at, EuiFieldText as xt, EuiModalBody as Jr, EuiModalFooter as Qr, EuiButtonEmpty as Yt, EuiModal as Kr, useEuiTheme as Wt, EuiCheckbox as Ht, EuiTableHeaderCellCheckbox as Br, EuiTableHeader as Xr, EuiTableRowCell as st, EuiTableRowCellCheckbox as Zr, EuiLink as en, EuiTableRow as tn, EuiTable as rn, EuiButtonIcon as W, EuiIcon as Y, EuiContextMenu as ut, EuiTableHeaderCell as tt, EuiCodeBlock as nn, EuiFlyout as an, EuiFlexGroup as oe, EuiFlexItem as J, EuiSpacer as Gt, EuiEmptyPrompt as sn, EuiPageTemplate as dt, EuiRange as Jt, EuiBottomBar as on } from "@elastic/eui";
6
- import { AddRegular as Te, PlayRegular as ln, DismissRegular as ft, MoreHorizontalFilled as Qt, ArrowUploadRegular as cn, ArrowDownloadRegular as un, WindowDevToolsRegular as dn, DeleteRegular as fn, ArrowShuffleFilled as pn, ArrowShuffleOffFilled as yn, PreviousFilled as hn, SkipBack10Regular as Kt, PauseFilled as mn, PlayFilled as vn, SkipForward30Regular as Bt, NextFilled as gn, ArrowRepeat1Filled as Pn, ArrowRepeatAllFilled as bn, ArrowRepeatAllOffFilled as wn, OpenRegular as Sn, Speaker2Regular as Xt, TopSpeedRegular as En, NavigationPlayRegular as Rn } from "@fluentui/react-icons";
7
- import { useNostalgicDiva as le, findVideoService as Tn, NostalgicDivaProvider as Cn, NostalgicDiva as In, nullPlayerController as xn } from "@aigamo/nostalgic-diva";
8
- import { observer as C } from "mobx-react-lite";
3
+ import qt, { createContext as Vt, useContext as ct, forwardRef as jr, useState as z, useEffect as Ut, memo as re, useCallback as $, useMemo as Ve, useLayoutEffect as zr } from "react";
4
+ import Lr from "@emotion/cache";
5
+ import { EuiSelectable as qr, EuiPopoverTitle as Vr, EuiPopoverFooter as Ur, EuiButton as J, EuiPopover as xe, useGeneratedHtmlId as Qr, EuiModalHeaderTitle as Yr, EuiModalHeader as Wr, EuiForm as Hr, EuiFormRow as at, EuiFieldText as xt, EuiModalBody as Gr, EuiModalFooter as Jr, EuiButtonEmpty as Qt, EuiModal as Br, useEuiTheme as Yt, EuiCheckbox as Wt, EuiTableHeaderCellCheckbox as Kr, EuiTableHeader as Xr, EuiTableRowCell as st, EuiTableRowCellCheckbox as Zr, EuiLink as en, EuiTableRow as tn, EuiTable as rn, EuiButtonIcon as Y, EuiIcon as Q, EuiContextMenu as ut, EuiTableHeaderCell as tt, EuiCodeBlock as nn, EuiFlyout as an, EuiFlexGroup as oe, EuiFlexItem as G, EuiSpacer as Ht, EuiEmptyPrompt as sn, EuiPageTemplate as dt, EuiRange as Gt, EuiBottomBar as on } from "@elastic/eui";
6
+ import { AddRegular as Re, PlayRegular as ln, DismissRegular as ft, MoreHorizontalFilled as Jt, ArrowUploadRegular as cn, ArrowDownloadRegular as un, WindowDevToolsRegular as dn, DeleteRegular as fn, ArrowShuffleFilled as pn, ArrowShuffleOffFilled as hn, PreviousFilled as yn, SkipBack10Regular as Bt, PauseFilled as mn, PlayFilled as vn, SkipForward30Regular as Kt, NextFilled as gn, ArrowRepeat1Filled as Pn, ArrowRepeatAllFilled as bn, ArrowRepeatAllOffFilled as wn, OpenRegular as Sn, Speaker2Regular as Xt, TopSpeedRegular as Tn, NavigationPlayRegular as En } from "@fluentui/react-icons";
7
+ import { useNostalgicDiva as le, findVideoService as Rn, NostalgicDivaProvider as Cn, NostalgicDiva as In, nullPlayerController as xn } from "@aigamo/nostalgic-diva";
8
+ import { observer as I } from "mobx-react-lite";
9
9
  import { ReactSortable as On } from "react-sortablejs";
10
- import _n from "ajv";
10
+ import kn from "ajv";
11
11
  import { pull as Ot } from "lodash-es";
12
- import { useRouter as kn } from "@tanstack/react-router";
12
+ import { useRouter as _n } from "@tanstack/react-router";
13
13
  const Zt = 81;
14
14
  class er {
15
15
  makeObservable(t, r) {
@@ -21,73 +21,74 @@ class Sa {
21
21
  return t;
22
22
  }
23
23
  }
24
- var N = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(N || {}), ze = { exports: {} }, Se = {};
25
- var _t;
24
+ const tr = Vt(void 0), rr = () => ct(tr);
25
+ var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {}), ze = { exports: {} }, Se = {};
26
+ var kt;
26
27
  function An() {
27
- if (_t) return Se;
28
- _t = 1;
29
- var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
30
- function c(f, p, m) {
31
- var P, w = {}, q = null, F = null;
32
- m !== void 0 && (q = "" + m), p.key !== void 0 && (q = "" + p.key), p.ref !== void 0 && (F = p.ref);
33
- for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (w[P] = p[P]);
34
- if (f && f.defaultProps) for (P in p = f.defaultProps, p) w[P] === void 0 && (w[P] = p[P]);
35
- return { $$typeof: t, type: f, key: q, ref: F, props: w, _owner: a.current };
28
+ if (kt) return Se;
29
+ kt = 1;
30
+ var e = qt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
31
+ function c(f, p, v) {
32
+ var P, S = {}, L = null, N = null;
33
+ v !== void 0 && (L = "" + v), p.key !== void 0 && (L = "" + p.key), p.ref !== void 0 && (N = p.ref);
34
+ for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (S[P] = p[P]);
35
+ if (f && f.defaultProps) for (P in p = f.defaultProps, p) S[P] === void 0 && (S[P] = p[P]);
36
+ return { $$typeof: t, type: f, key: L, ref: N, props: S, _owner: a.current };
36
37
  }
37
38
  return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
38
39
  }
39
- var Ee = {};
40
- var kt;
41
- function Dn() {
42
- return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
43
- var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), w = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.offscreen"), k = Symbol.iterator, H = "@@iterator";
40
+ var Te = {};
41
+ var _t;
42
+ function Fn() {
43
+ return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
44
+ var e = qt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), v = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, W = "@@iterator";
44
45
  function Z(n) {
45
46
  if (n === null || typeof n != "object")
46
47
  return null;
47
- var l = k && n[k] || n[H];
48
+ var l = A && n[A] || n[W];
48
49
  return typeof l == "function" ? l : null;
49
50
  }
50
- var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function I(n) {
51
+ var q = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function x(n) {
52
53
  {
53
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
54
- d[h - 1] = arguments[h];
55
- A("error", n, d);
54
+ for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
55
+ d[m - 1] = arguments[m];
56
+ F("error", n, d);
56
57
  }
57
58
  }
58
- function A(n, l, d) {
59
+ function F(n, l, d) {
59
60
  {
60
- var h = L.ReactDebugCurrentFrame, S = h.getStackAddendum();
61
- S !== "" && (l += "%s", d = d.concat([S]));
62
- var T = d.map(function(b) {
61
+ var m = q.ReactDebugCurrentFrame, T = m.getStackAddendum();
62
+ T !== "" && (l += "%s", d = d.concat([T]));
63
+ var C = d.map(function(b) {
63
64
  return String(b);
64
65
  });
65
- T.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, T);
66
+ C.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, C);
66
67
  }
67
68
  }
68
- var x = !1, u = !1, V = !1, ye = !1, Oe = !1, _e;
69
- _e = /* @__PURE__ */ Symbol.for("react.module.reference");
70
- function We(n) {
71
- return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === m || n === P || ye || n === F || x || u || V || typeof n == "object" && n !== null && (n.$$typeof === q || n.$$typeof === w || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
69
+ var k = !1, u = !1, V = !1, he = !1, Oe = !1, ke;
70
+ ke = /* @__PURE__ */ Symbol.for("react.module.reference");
71
+ function Ye(n) {
72
+ return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === v || n === P || he || n === N || k || u || V || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === S || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
72
73
  // types supported by any Flight configuration anywhere since
73
74
  // we don't know which Flight build this will end up being used
74
75
  // with.
75
- n.$$typeof === _e || n.getModuleId !== void 0));
76
+ n.$$typeof === ke || n.getModuleId !== void 0));
76
77
  }
77
- function He(n, l, d) {
78
- var h = n.displayName;
79
- if (h)
80
- return h;
81
- var S = l.displayName || l.name || "";
82
- return S !== "" ? d + "(" + S + ")" : d;
78
+ function We(n, l, d) {
79
+ var m = n.displayName;
80
+ if (m)
81
+ return m;
82
+ var T = l.displayName || l.name || "";
83
+ return T !== "" ? d + "(" + T + ")" : d;
83
84
  }
84
- function ke(n) {
85
+ function _e(n) {
85
86
  return n.displayName || "Context";
86
87
  }
87
- function K(n) {
88
+ function B(n) {
88
89
  if (n == null)
89
90
  return null;
90
- if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
91
+ if (typeof n.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
91
92
  return n.displayName || n.name || null;
92
93
  if (typeof n == "string")
93
94
  return n;
@@ -100,7 +101,7 @@ function Dn() {
100
101
  return "Profiler";
101
102
  case a:
102
103
  return "StrictMode";
103
- case m:
104
+ case v:
104
105
  return "Suspense";
105
106
  case P:
106
107
  return "SuspenseList";
@@ -109,19 +110,19 @@ function Dn() {
109
110
  switch (n.$$typeof) {
110
111
  case f:
111
112
  var l = n;
112
- return ke(l) + ".Consumer";
113
+ return _e(l) + ".Consumer";
113
114
  case c:
114
115
  var d = n;
115
- return ke(d._context) + ".Provider";
116
+ return _e(d._context) + ".Provider";
116
117
  case p:
117
- return He(n, n.render, "ForwardRef");
118
- case w:
119
- var h = n.displayName || null;
120
- return h !== null ? h : K(n.type) || "Memo";
121
- case q: {
122
- var S = n, T = S._payload, b = S._init;
118
+ return We(n, n.render, "ForwardRef");
119
+ case S:
120
+ var m = n.displayName || null;
121
+ return m !== null ? m : B(n.type) || "Memo";
122
+ case L: {
123
+ var T = n, C = T._payload, b = T._init;
123
124
  try {
124
- return K(b(T));
125
+ return B(b(C));
125
126
  } catch {
126
127
  return null;
127
128
  }
@@ -129,14 +130,14 @@ function Dn() {
129
130
  }
130
131
  return null;
131
132
  }
132
- var ee = Object.assign, ne = 0, Ae, De, he, Me, me, Fe, Ne;
133
+ var ee = Object.assign, ne = 0, Ae, Fe, ye, Me, me, De, Ne;
133
134
  function $e() {
134
135
  }
135
136
  $e.__reactDisabledLog = !0;
136
- function Ge() {
137
+ function He() {
137
138
  {
138
139
  if (ne === 0) {
139
- Ae = console.log, De = console.info, he = console.warn, Me = console.error, me = console.group, Fe = console.groupCollapsed, Ne = console.groupEnd;
140
+ Ae = console.log, Fe = console.info, ye = console.warn, Me = console.error, me = console.group, De = console.groupCollapsed, Ne = console.groupEnd;
140
141
  var n = {
141
142
  configurable: !0,
142
143
  enumerable: !0,
@@ -156,7 +157,7 @@ function Dn() {
156
157
  ne++;
157
158
  }
158
159
  }
159
- function Je() {
160
+ function Ge() {
160
161
  {
161
162
  if (ne--, ne === 0) {
162
163
  var n = {
@@ -169,10 +170,10 @@ function Dn() {
169
170
  value: Ae
170
171
  }),
171
172
  info: ee({}, n, {
172
- value: De
173
+ value: Fe
173
174
  }),
174
175
  warn: ee({}, n, {
175
- value: he
176
+ value: ye
176
177
  }),
177
178
  error: ee({}, n, {
178
179
  value: Me
@@ -181,25 +182,25 @@ function Dn() {
181
182
  value: me
182
183
  }),
183
184
  groupCollapsed: ee({}, n, {
184
- value: Fe
185
+ value: De
185
186
  }),
186
187
  groupEnd: ee({}, n, {
187
188
  value: Ne
188
189
  })
189
190
  });
190
191
  }
191
- ne < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ ne < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
193
  }
193
194
  }
194
- var ve = L.ReactCurrentDispatcher, ge;
195
+ var ve = q.ReactCurrentDispatcher, ge;
195
196
  function ce(n, l, d) {
196
197
  {
197
198
  if (ge === void 0)
198
199
  try {
199
200
  throw Error();
200
- } catch (S) {
201
- var h = S.stack.trim().match(/\n( *(at )?)/);
202
- ge = h && h[1] || "";
201
+ } catch (T) {
202
+ var m = T.stack.trim().match(/\n( *(at )?)/);
203
+ ge = m && m[1] || "";
203
204
  }
204
205
  return `
205
206
  ` + ge + n;
@@ -207,10 +208,10 @@ function Dn() {
207
208
  }
208
209
  var Pe = !1, ue;
209
210
  {
210
- var Qe = typeof WeakMap == "function" ? WeakMap : Map;
211
- ue = new Qe();
211
+ var Je = typeof WeakMap == "function" ? WeakMap : Map;
212
+ ue = new Je();
212
213
  }
213
- function y(n, l) {
214
+ function h(n, l) {
214
215
  if (!n || Pe)
215
216
  return "";
216
217
  {
@@ -218,12 +219,12 @@ function Dn() {
218
219
  if (d !== void 0)
219
220
  return d;
220
221
  }
221
- var h;
222
+ var m;
222
223
  Pe = !0;
223
- var S = Error.prepareStackTrace;
224
+ var T = Error.prepareStackTrace;
224
225
  Error.prepareStackTrace = void 0;
225
- var T;
226
- T = ve.current, ve.current = null, Ge();
226
+ var C;
227
+ C = ve.current, ve.current = null, He();
227
228
  try {
228
229
  if (l) {
229
230
  var b = function() {
@@ -237,14 +238,14 @@ function Dn() {
237
238
  try {
238
239
  Reflect.construct(b, []);
239
240
  } catch (U) {
240
- h = U;
241
+ m = U;
241
242
  }
242
243
  Reflect.construct(n, [], b);
243
244
  } else {
244
245
  try {
245
246
  b.call();
246
247
  } catch (U) {
247
- h = U;
248
+ m = U;
248
249
  }
249
250
  n.call(b.prototype);
250
251
  }
@@ -252,37 +253,37 @@ function Dn() {
252
253
  try {
253
254
  throw Error();
254
255
  } catch (U) {
255
- h = U;
256
+ m = U;
256
257
  }
257
258
  n();
258
259
  }
259
260
  } catch (U) {
260
- if (U && h && typeof U.stack == "string") {
261
+ if (U && m && typeof U.stack == "string") {
261
262
  for (var g = U.stack.split(`
262
- `), j = h.stack.split(`
263
- `), O = g.length - 1, D = j.length - 1; O >= 1 && D >= 0 && g[O] !== j[D]; )
264
- D--;
265
- for (; O >= 1 && D >= 0; O--, D--)
266
- if (g[O] !== j[D]) {
267
- if (O !== 1 || D !== 1)
263
+ `), j = m.stack.split(`
264
+ `), _ = g.length - 1, M = j.length - 1; _ >= 1 && M >= 0 && g[_] !== j[M]; )
265
+ M--;
266
+ for (; _ >= 1 && M >= 0; _--, M--)
267
+ if (g[_] !== j[M]) {
268
+ if (_ !== 1 || M !== 1)
268
269
  do
269
- if (O--, D--, D < 0 || g[O] !== j[D]) {
270
- var G = `
271
- ` + g[O].replace(" at new ", " at ");
272
- return n.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, G), G;
270
+ if (_--, M--, M < 0 || g[_] !== j[M]) {
271
+ var H = `
272
+ ` + g[_].replace(" at new ", " at ");
273
+ return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, H), H;
273
274
  }
274
- while (O >= 1 && D >= 0);
275
+ while (_ >= 1 && M >= 0);
275
276
  break;
276
277
  }
277
278
  }
278
279
  } finally {
279
- Pe = !1, ve.current = T, Je(), Error.prepareStackTrace = S;
280
+ Pe = !1, ve.current = C, Ge(), Error.prepareStackTrace = T;
280
281
  }
281
282
  var pe = n ? n.displayName || n.name : "", ae = pe ? ce(pe) : "";
282
283
  return typeof n == "function" && ue.set(n, ae), ae;
283
284
  }
284
285
  function be(n, l, d) {
285
- return y(n, !1);
286
+ return h(n, !1);
286
287
  }
287
288
  function de(n) {
288
289
  var l = n.prototype;
@@ -292,11 +293,11 @@ function Dn() {
292
293
  if (n == null)
293
294
  return "";
294
295
  if (typeof n == "function")
295
- return y(n, de(n));
296
+ return h(n, de(n));
296
297
  if (typeof n == "string")
297
298
  return ce(n);
298
299
  switch (n) {
299
- case m:
300
+ case v:
300
301
  return ce("Suspense");
301
302
  case P:
302
303
  return ce("SuspenseList");
@@ -305,48 +306,48 @@ function Dn() {
305
306
  switch (n.$$typeof) {
306
307
  case p:
307
308
  return be(n.render);
308
- case w:
309
+ case S:
309
310
  return ie(n.type, l, d);
310
- case q: {
311
- var h = n, S = h._payload, T = h._init;
311
+ case L: {
312
+ var m = n, T = m._payload, C = m._init;
312
313
  try {
313
- return ie(T(S), l, d);
314
+ return ie(C(T), l, d);
314
315
  } catch {
315
316
  }
316
317
  }
317
318
  }
318
319
  return "";
319
320
  }
320
- var we = Object.prototype.hasOwnProperty, yt = {}, ht = L.ReactDebugCurrentFrame;
321
+ var we = Object.prototype.hasOwnProperty, ht = {}, yt = q.ReactDebugCurrentFrame;
321
322
  function je(n) {
322
323
  if (n) {
323
324
  var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
324
- ht.setExtraStackFrame(d);
325
+ yt.setExtraStackFrame(d);
325
326
  } else
326
- ht.setExtraStackFrame(null);
327
+ yt.setExtraStackFrame(null);
327
328
  }
328
- function yr(n, l, d, h, S) {
329
+ function hr(n, l, d, m, T) {
329
330
  {
330
- var T = Function.call.bind(we);
331
+ var C = Function.call.bind(we);
331
332
  for (var b in n)
332
- if (T(n, b)) {
333
+ if (C(n, b)) {
333
334
  var g = void 0;
334
335
  try {
335
336
  if (typeof n[b] != "function") {
336
- var j = Error((h || "React class") + ": " + d + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ var j = Error((m || "React class") + ": " + d + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
338
  throw j.name = "Invariant Violation", j;
338
339
  }
339
- g = n[b](l, b, h, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (O) {
341
- g = O;
340
+ g = n[b](l, b, m, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (_) {
342
+ g = _;
342
343
  }
343
- g && !(g instanceof Error) && (je(S), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", d, b, typeof g), je(null)), g instanceof Error && !(g.message in yt) && (yt[g.message] = !0, je(S), I("Failed %s type: %s", d, g.message), je(null));
344
+ g && !(g instanceof Error) && (je(T), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d, b, typeof g), je(null)), g instanceof Error && !(g.message in ht) && (ht[g.message] = !0, je(T), x("Failed %s type: %s", d, g.message), je(null));
344
345
  }
345
346
  }
346
347
  }
347
- var hr = Array.isArray;
348
- function Ke(n) {
349
- return hr(n);
348
+ var yr = Array.isArray;
349
+ function Be(n) {
350
+ return yr(n);
350
351
  }
351
352
  function mr(n) {
352
353
  {
@@ -366,9 +367,9 @@ function Dn() {
366
367
  }
367
368
  function vt(n) {
368
369
  if (vr(n))
369
- return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(n)), mt(n);
370
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(n)), mt(n);
370
371
  }
371
- var gt = L.ReactCurrentOwner, gr = {
372
+ var gt = q.ReactCurrentOwner, gr = {
372
373
  key: !0,
373
374
  ref: !0,
374
375
  __self: !0,
@@ -396,7 +397,7 @@ function Dn() {
396
397
  function Sr(n, l) {
397
398
  {
398
399
  var d = function() {
399
- Pt || (Pt = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
400
+ Pt || (Pt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
400
401
  };
401
402
  d.isReactWarning = !0, Object.defineProperty(n, "key", {
402
403
  get: d,
@@ -404,10 +405,10 @@ function Dn() {
404
405
  });
405
406
  }
406
407
  }
407
- function Er(n, l) {
408
+ function Tr(n, l) {
408
409
  {
409
410
  var d = function() {
410
- bt || (bt = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
411
+ bt || (bt = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
411
412
  };
412
413
  d.isReactWarning = !0, Object.defineProperty(n, "ref", {
413
414
  get: d,
@@ -415,7 +416,7 @@ function Dn() {
415
416
  });
416
417
  }
417
418
  }
418
- var Rr = function(n, l, d, h, S, T, b) {
419
+ var Er = function(n, l, d, m, T, C, b) {
419
420
  var g = {
420
421
  // This tag allows us to uniquely identify this as a React Element
421
422
  $$typeof: t,
@@ -425,7 +426,7 @@ function Dn() {
425
426
  ref: d,
426
427
  props: b,
427
428
  // Record the component responsible for creating this element.
428
- _owner: T
429
+ _owner: C
429
430
  };
430
431
  return g._store = {}, Object.defineProperty(g._store, "validated", {
431
432
  configurable: !1,
@@ -436,33 +437,33 @@ function Dn() {
436
437
  configurable: !1,
437
438
  enumerable: !1,
438
439
  writable: !1,
439
- value: h
440
+ value: m
440
441
  }), Object.defineProperty(g, "_source", {
441
442
  configurable: !1,
442
443
  enumerable: !1,
443
444
  writable: !1,
444
- value: S
445
+ value: T
445
446
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
446
447
  };
447
- function Tr(n, l, d, h, S) {
448
+ function Rr(n, l, d, m, T) {
448
449
  {
449
- var T, b = {}, g = null, j = null;
450
- d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, S));
451
- for (T in l)
452
- we.call(l, T) && !gr.hasOwnProperty(T) && (b[T] = l[T]);
450
+ var C, b = {}, g = null, j = null;
451
+ d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, T));
452
+ for (C in l)
453
+ we.call(l, C) && !gr.hasOwnProperty(C) && (b[C] = l[C]);
453
454
  if (n && n.defaultProps) {
454
- var O = n.defaultProps;
455
- for (T in O)
456
- b[T] === void 0 && (b[T] = O[T]);
455
+ var _ = n.defaultProps;
456
+ for (C in _)
457
+ b[C] === void 0 && (b[C] = _[C]);
457
458
  }
458
459
  if (g || j) {
459
- var D = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
460
- g && Sr(b, D), j && Er(b, D);
460
+ var M = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
461
+ g && Sr(b, M), j && Tr(b, M);
461
462
  }
462
- return Rr(n, g, j, S, h, gt.current, b);
463
+ return Er(n, g, j, T, m, gt.current, b);
463
464
  }
464
465
  }
465
- var Be = L.ReactCurrentOwner, wt = L.ReactDebugCurrentFrame;
466
+ var Ke = q.ReactCurrentOwner, wt = q.ReactDebugCurrentFrame;
466
467
  function fe(n) {
467
468
  if (n) {
468
469
  var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
@@ -477,8 +478,8 @@ function Dn() {
477
478
  }
478
479
  function St() {
479
480
  {
480
- if (Be.current) {
481
- var n = K(Be.current.type);
481
+ if (Ke.current) {
482
+ var n = B(Ke.current.type);
482
483
  if (n)
483
484
  return `
484
485
 
@@ -490,7 +491,7 @@ Check the render method of \`` + n + "`.";
490
491
  function Cr(n) {
491
492
  return "";
492
493
  }
493
- var Et = {};
494
+ var Tt = {};
494
495
  function Ir(n) {
495
496
  {
496
497
  var l = St();
@@ -503,35 +504,35 @@ Check the top-level render call using <` + d + ">.");
503
504
  return l;
504
505
  }
505
506
  }
506
- function Rt(n, l) {
507
+ function Et(n, l) {
507
508
  {
508
509
  if (!n._store || n._store.validated || n.key != null)
509
510
  return;
510
511
  n._store.validated = !0;
511
512
  var d = Ir(l);
512
- if (Et[d])
513
+ if (Tt[d])
513
514
  return;
514
- Et[d] = !0;
515
- var h = "";
516
- n && n._owner && n._owner !== Be.current && (h = " It was passed a child from " + K(n._owner.type) + "."), fe(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, h), fe(null);
515
+ Tt[d] = !0;
516
+ var m = "";
517
+ n && n._owner && n._owner !== Ke.current && (m = " It was passed a child from " + B(n._owner.type) + "."), fe(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, m), fe(null);
517
518
  }
518
519
  }
519
- function Tt(n, l) {
520
+ function Rt(n, l) {
520
521
  {
521
522
  if (typeof n != "object")
522
523
  return;
523
- if (Ke(n))
524
+ if (Be(n))
524
525
  for (var d = 0; d < n.length; d++) {
525
- var h = n[d];
526
- Ze(h) && Rt(h, l);
526
+ var m = n[d];
527
+ Ze(m) && Et(m, l);
527
528
  }
528
529
  else if (Ze(n))
529
530
  n._store && (n._store.validated = !0);
530
531
  else if (n) {
531
- var S = Z(n);
532
- if (typeof S == "function" && S !== n.entries)
533
- for (var T = S.call(n), b; !(b = T.next()).done; )
534
- Ze(b.value) && Rt(b.value, l);
532
+ var T = Z(n);
533
+ if (typeof T == "function" && T !== n.entries)
534
+ for (var C = T.call(n), b; !(b = C.next()).done; )
535
+ Ze(b.value) && Et(b.value, l);
535
536
  }
536
537
  }
537
538
  }
@@ -545,68 +546,68 @@ Check the top-level render call using <` + d + ">.");
545
546
  d = l.propTypes;
546
547
  else if (typeof l == "object" && (l.$$typeof === p || // Note: Memo only checks outer props here.
547
548
  // Inner props are checked in the reconciler.
548
- l.$$typeof === w))
549
+ l.$$typeof === S))
549
550
  d = l.propTypes;
550
551
  else
551
552
  return;
552
553
  if (d) {
553
- var h = K(l);
554
- yr(d, n.props, "prop", h, n);
554
+ var m = B(l);
555
+ hr(d, n.props, "prop", m, n);
555
556
  } else if (l.PropTypes !== void 0 && !Xe) {
556
557
  Xe = !0;
557
- var S = K(l);
558
- I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
558
+ var T = B(l);
559
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
559
560
  }
560
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
562
  }
562
563
  }
563
564
  function Or(n) {
564
565
  {
565
566
  for (var l = Object.keys(n.props), d = 0; d < l.length; d++) {
566
- var h = l[d];
567
- if (h !== "children" && h !== "key") {
568
- fe(n), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), fe(null);
567
+ var m = l[d];
568
+ if (m !== "children" && m !== "key") {
569
+ fe(n), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), fe(null);
569
570
  break;
570
571
  }
571
572
  }
572
- n.ref !== null && (fe(n), I("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
573
+ n.ref !== null && (fe(n), x("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
573
574
  }
574
575
  }
575
576
  var Ct = {};
576
- function It(n, l, d, h, S, T) {
577
+ function It(n, l, d, m, T, C) {
577
578
  {
578
- var b = We(n);
579
+ var b = Ye(n);
579
580
  if (!b) {
580
581
  var g = "";
581
582
  (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
583
  var j = Cr();
583
584
  j ? g += j : g += St();
584
- var O;
585
- n === null ? O = "null" : Ke(n) ? O = "array" : n !== void 0 && n.$$typeof === t ? (O = "<" + (K(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
585
+ var _;
586
+ n === null ? _ = "null" : Be(n) ? _ = "array" : n !== void 0 && n.$$typeof === t ? (_ = "<" + (B(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
586
587
  }
587
- var D = Tr(n, l, d, S, T);
588
- if (D == null)
589
- return D;
588
+ var M = Rr(n, l, d, T, C);
589
+ if (M == null)
590
+ return M;
590
591
  if (b) {
591
- var G = l.children;
592
- if (G !== void 0)
593
- if (h)
594
- if (Ke(G)) {
595
- for (var pe = 0; pe < G.length; pe++)
596
- Tt(G[pe], n);
597
- Object.freeze && Object.freeze(G);
592
+ var H = l.children;
593
+ if (H !== void 0)
594
+ if (m)
595
+ if (Be(H)) {
596
+ for (var pe = 0; pe < H.length; pe++)
597
+ Rt(H[pe], n);
598
+ Object.freeze && Object.freeze(H);
598
599
  } else
599
- I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
601
  else
601
- Tt(G, n);
602
+ Rt(H, n);
602
603
  }
603
604
  if (we.call(l, "key")) {
604
- var ae = K(n), U = Object.keys(l).filter(function(Fr) {
605
- return Fr !== "key";
605
+ var ae = B(n), U = Object.keys(l).filter(function(Dr) {
606
+ return Dr !== "key";
606
607
  }), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
607
608
  if (!Ct[ae + et]) {
608
609
  var Mr = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
609
- I(`A props object containing a "key" prop is being spread into JSX:
610
+ x(`A props object containing a "key" prop is being spread into JSX:
610
611
  let props = %s;
611
612
  <%s {...props} />
612
613
  React keys must be passed directly to JSX without using spread:
@@ -614,48 +615,48 @@ React keys must be passed directly to JSX without using spread:
614
615
  <%s key={someKey} {...props} />`, et, ae, Mr, ae), Ct[ae + et] = !0;
615
616
  }
616
617
  }
617
- return n === i ? Or(D) : xr(D), D;
618
+ return n === i ? Or(M) : xr(M), M;
618
619
  }
619
620
  }
620
- function _r(n, l, d) {
621
+ function kr(n, l, d) {
621
622
  return It(n, l, d, !0);
622
623
  }
623
- function kr(n, l, d) {
624
+ function _r(n, l, d) {
624
625
  return It(n, l, d, !1);
625
626
  }
626
- var Ar = kr, Dr = _r;
627
- Ee.Fragment = i, Ee.jsx = Ar, Ee.jsxs = Dr;
628
- })()), Ee;
627
+ var Ar = _r, Fr = kr;
628
+ Te.Fragment = i, Te.jsx = Ar, Te.jsxs = Fr;
629
+ })()), Te;
629
630
  }
630
631
  var At;
631
632
  function Mn() {
632
- return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports = Dn()), ze.exports;
633
+ return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports = Fn()), ze.exports;
633
634
  }
634
- var Ce = Mn(), qe = { exports: {} }, E = {};
635
- var Dt;
636
- function Fn() {
637
- if (Dt) return E;
638
- Dt = 1;
639
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
640
- function A(u) {
635
+ var Ce = Mn(), Le = { exports: {} }, E = {};
636
+ var Ft;
637
+ function Dn() {
638
+ if (Ft) return E;
639
+ Ft = 1;
640
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
641
+ function F(u) {
641
642
  if (typeof u == "object" && u !== null) {
642
643
  var V = u.$$typeof;
643
644
  switch (V) {
644
645
  case t:
645
646
  switch (u = u.type, u) {
646
647
  case p:
647
- case m:
648
+ case v:
648
649
  case i:
649
650
  case o:
650
651
  case a:
651
- case w:
652
+ case S:
652
653
  return u;
653
654
  default:
654
655
  switch (u = u && u.$$typeof, u) {
655
656
  case f:
656
657
  case P:
657
- case k:
658
- case F:
658
+ case A:
659
+ case N:
659
660
  case c:
660
661
  return u;
661
662
  default:
@@ -667,67 +668,67 @@ function Fn() {
667
668
  }
668
669
  }
669
670
  }
670
- function x(u) {
671
- return A(u) === m;
671
+ function k(u) {
672
+ return F(u) === v;
672
673
  }
673
- return E.AsyncMode = p, E.ConcurrentMode = m, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = P, E.Fragment = i, E.Lazy = k, E.Memo = F, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = w, E.isAsyncMode = function(u) {
674
- return x(u) || A(u) === p;
675
- }, E.isConcurrentMode = x, E.isContextConsumer = function(u) {
676
- return A(u) === f;
674
+ return E.AsyncMode = p, E.ConcurrentMode = v, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = P, E.Fragment = i, E.Lazy = A, E.Memo = N, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = S, E.isAsyncMode = function(u) {
675
+ return k(u) || F(u) === p;
676
+ }, E.isConcurrentMode = k, E.isContextConsumer = function(u) {
677
+ return F(u) === f;
677
678
  }, E.isContextProvider = function(u) {
678
- return A(u) === c;
679
+ return F(u) === c;
679
680
  }, E.isElement = function(u) {
680
681
  return typeof u == "object" && u !== null && u.$$typeof === t;
681
682
  }, E.isForwardRef = function(u) {
682
- return A(u) === P;
683
+ return F(u) === P;
683
684
  }, E.isFragment = function(u) {
684
- return A(u) === i;
685
+ return F(u) === i;
685
686
  }, E.isLazy = function(u) {
686
- return A(u) === k;
687
+ return F(u) === A;
687
688
  }, E.isMemo = function(u) {
688
- return A(u) === F;
689
+ return F(u) === N;
689
690
  }, E.isPortal = function(u) {
690
- return A(u) === r;
691
+ return F(u) === r;
691
692
  }, E.isProfiler = function(u) {
692
- return A(u) === o;
693
+ return F(u) === o;
693
694
  }, E.isStrictMode = function(u) {
694
- return A(u) === a;
695
+ return F(u) === a;
695
696
  }, E.isSuspense = function(u) {
696
- return A(u) === w;
697
+ return F(u) === S;
697
698
  }, E.isValidElementType = function(u) {
698
- return typeof u == "string" || typeof u == "function" || u === i || u === m || u === o || u === a || u === w || u === q || typeof u == "object" && u !== null && (u.$$typeof === k || u.$$typeof === F || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === Z || u.$$typeof === L || u.$$typeof === I || u.$$typeof === H);
699
- }, E.typeOf = A, E;
699
+ return typeof u == "string" || typeof u == "function" || u === i || u === v || u === o || u === a || u === S || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === Z || u.$$typeof === q || u.$$typeof === x || u.$$typeof === W);
700
+ }, E.typeOf = F, E;
700
701
  }
701
702
  var R = {};
702
703
  var Mt;
703
704
  function Nn() {
704
705
  return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
705
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
706
- function A(y) {
707
- return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
708
- y === i || y === m || y === o || y === a || y === w || y === q || typeof y == "object" && y !== null && (y.$$typeof === k || y.$$typeof === F || y.$$typeof === c || y.$$typeof === f || y.$$typeof === P || y.$$typeof === Z || y.$$typeof === L || y.$$typeof === I || y.$$typeof === H);
709
- }
710
- function x(y) {
711
- if (typeof y == "object" && y !== null) {
712
- var be = y.$$typeof;
706
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
707
+ function F(h) {
708
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
709
+ h === i || h === v || h === o || h === a || h === S || h === L || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === N || h.$$typeof === c || h.$$typeof === f || h.$$typeof === P || h.$$typeof === Z || h.$$typeof === q || h.$$typeof === x || h.$$typeof === W);
710
+ }
711
+ function k(h) {
712
+ if (typeof h == "object" && h !== null) {
713
+ var be = h.$$typeof;
713
714
  switch (be) {
714
715
  case t:
715
- var de = y.type;
716
+ var de = h.type;
716
717
  switch (de) {
717
718
  case p:
718
- case m:
719
+ case v:
719
720
  case i:
720
721
  case o:
721
722
  case a:
722
- case w:
723
+ case S:
723
724
  return de;
724
725
  default:
725
726
  var ie = de && de.$$typeof;
726
727
  switch (ie) {
727
728
  case f:
728
729
  case P:
729
- case k:
730
- case F:
730
+ case A:
731
+ case N:
731
732
  case c:
732
733
  return ie;
733
734
  default:
@@ -739,52 +740,52 @@ function Nn() {
739
740
  }
740
741
  }
741
742
  }
742
- var u = p, V = m, ye = f, Oe = c, _e = t, We = P, He = i, ke = k, K = F, ee = r, ne = o, Ae = a, De = w, he = !1;
743
- function Me(y) {
744
- return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(y) || x(y) === p;
743
+ var u = p, V = v, he = f, Oe = c, ke = t, Ye = P, We = i, _e = A, B = N, ee = r, ne = o, Ae = a, Fe = S, ye = !1;
744
+ function Me(h) {
745
+ return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(h) || k(h) === p;
745
746
  }
746
- function me(y) {
747
- return x(y) === m;
747
+ function me(h) {
748
+ return k(h) === v;
748
749
  }
749
- function Fe(y) {
750
- return x(y) === f;
750
+ function De(h) {
751
+ return k(h) === f;
751
752
  }
752
- function Ne(y) {
753
- return x(y) === c;
753
+ function Ne(h) {
754
+ return k(h) === c;
754
755
  }
755
- function $e(y) {
756
- return typeof y == "object" && y !== null && y.$$typeof === t;
756
+ function $e(h) {
757
+ return typeof h == "object" && h !== null && h.$$typeof === t;
757
758
  }
758
- function Ge(y) {
759
- return x(y) === P;
759
+ function He(h) {
760
+ return k(h) === P;
760
761
  }
761
- function Je(y) {
762
- return x(y) === i;
762
+ function Ge(h) {
763
+ return k(h) === i;
763
764
  }
764
- function ve(y) {
765
- return x(y) === k;
765
+ function ve(h) {
766
+ return k(h) === A;
766
767
  }
767
- function ge(y) {
768
- return x(y) === F;
768
+ function ge(h) {
769
+ return k(h) === N;
769
770
  }
770
- function ce(y) {
771
- return x(y) === r;
771
+ function ce(h) {
772
+ return k(h) === r;
772
773
  }
773
- function Pe(y) {
774
- return x(y) === o;
774
+ function Pe(h) {
775
+ return k(h) === o;
775
776
  }
776
- function ue(y) {
777
- return x(y) === a;
777
+ function ue(h) {
778
+ return k(h) === a;
778
779
  }
779
- function Qe(y) {
780
- return x(y) === w;
780
+ function Je(h) {
781
+ return k(h) === S;
781
782
  }
782
- R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer = ye, R.ContextProvider = Oe, R.Element = _e, R.ForwardRef = We, R.Fragment = He, R.Lazy = ke, R.Memo = K, R.Portal = ee, R.Profiler = ne, R.StrictMode = Ae, R.Suspense = De, R.isAsyncMode = Me, R.isConcurrentMode = me, R.isContextConsumer = Fe, R.isContextProvider = Ne, R.isElement = $e, R.isForwardRef = Ge, R.isFragment = Je, R.isLazy = ve, R.isMemo = ge, R.isPortal = ce, R.isProfiler = Pe, R.isStrictMode = ue, R.isSuspense = Qe, R.isValidElementType = A, R.typeOf = x;
783
+ R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer = he, R.ContextProvider = Oe, R.Element = ke, R.ForwardRef = Ye, R.Fragment = We, R.Lazy = _e, R.Memo = B, R.Portal = ee, R.Profiler = ne, R.StrictMode = Ae, R.Suspense = Fe, R.isAsyncMode = Me, R.isConcurrentMode = me, R.isContextConsumer = De, R.isContextProvider = Ne, R.isElement = $e, R.isForwardRef = He, R.isFragment = Ge, R.isLazy = ve, R.isMemo = ge, R.isPortal = ce, R.isProfiler = Pe, R.isStrictMode = ue, R.isSuspense = Je, R.isValidElementType = F, R.typeOf = k;
783
784
  })()), R;
784
785
  }
785
- var Ft;
786
+ var Dt;
786
787
  function $n() {
787
- return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? qe.exports = Fn() : qe.exports = Nn()), qe.exports;
788
+ return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Le.exports = Dn() : Le.exports = Nn()), Le.exports;
788
789
  }
789
790
  var rt, Nt;
790
791
  function jn() {
@@ -825,42 +826,42 @@ function jn() {
825
826
  type: !0
826
827
  }, o = {};
827
828
  o[e.ForwardRef] = i, o[e.Memo] = a;
828
- function c(k) {
829
- return e.isMemo(k) ? a : o[k.$$typeof] || t;
830
- }
831
- var f = Object.defineProperty, p = Object.getOwnPropertyNames, m = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, q = Object.prototype;
832
- function F(k, H, Z) {
833
- if (typeof H != "string") {
834
- if (q) {
835
- var L = w(H);
836
- L && L !== q && F(k, L, Z);
829
+ function c(A) {
830
+ return e.isMemo(A) ? a : o[A.$$typeof] || t;
831
+ }
832
+ var f = Object.defineProperty, p = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, L = Object.prototype;
833
+ function N(A, W, Z) {
834
+ if (typeof W != "string") {
835
+ if (L) {
836
+ var q = S(W);
837
+ q && q !== L && N(A, q, Z);
837
838
  }
838
- var I = p(H);
839
- m && (I = I.concat(m(H)));
840
- for (var A = c(k), x = c(H), u = 0; u < I.length; ++u) {
841
- var V = I[u];
842
- if (!r[V] && !(Z && Z[V]) && !(x && x[V]) && !(A && A[V])) {
843
- var ye = P(H, V);
839
+ var x = p(W);
840
+ v && (x = x.concat(v(W)));
841
+ for (var F = c(A), k = c(W), u = 0; u < x.length; ++u) {
842
+ var V = x[u];
843
+ if (!r[V] && !(Z && Z[V]) && !(k && k[V]) && !(F && F[V])) {
844
+ var he = P(W, V);
844
845
  try {
845
- f(k, V, ye);
846
+ f(A, V, he);
846
847
  } catch {
847
848
  }
848
849
  }
849
850
  }
850
851
  }
851
- return k;
852
+ return A;
852
853
  }
853
- return rt = F, rt;
854
+ return rt = N, rt;
854
855
  }
855
856
  jn();
856
857
  var zn = !0;
857
- function qn(e, t, r) {
858
+ function Ln(e, t, r) {
858
859
  var i = "";
859
860
  return r.split(" ").forEach(function(a) {
860
861
  e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
861
862
  }), i;
862
863
  }
863
- var tr = function(t, r, i) {
864
+ var nr = function(t, r, i) {
864
865
  var a = t.key + "-" + r.name;
865
866
  // we only need to add the styles to the registered cache if the
866
867
  // class name could be used further down
@@ -872,8 +873,8 @@ var tr = function(t, r, i) {
872
873
  // the registered cache to know whether a style is global or not
873
874
  // also, note that this check will be dead code eliminated in the browser
874
875
  zn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
875
- }, Ln = function(t, r, i) {
876
- tr(t, r, i);
876
+ }, qn = function(t, r, i) {
877
+ nr(t, r, i);
877
878
  var a = t.key + "-" + r.name;
878
879
  if (t.inserted[r.name] === void 0) {
879
880
  var o = r;
@@ -951,32 +952,32 @@ var Un = {
951
952
  strokeOpacity: 1,
952
953
  strokeWidth: 1
953
954
  };
954
- function Yn(e) {
955
+ function Qn(e) {
955
956
  var t = /* @__PURE__ */ Object.create(null);
956
957
  return function(r) {
957
958
  return t[r] === void 0 && (t[r] = e(r)), t[r];
958
959
  };
959
960
  }
960
- var Wn = /[A-Z]|^ms/g, Hn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, rr = function(t) {
961
+ var Yn = /[A-Z]|^ms/g, Wn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
961
962
  return t.charCodeAt(1) === 45;
962
963
  }, $t = function(t) {
963
964
  return t != null && typeof t != "boolean";
964
- }, nt = /* @__PURE__ */ Yn(function(e) {
965
- return rr(e) ? e : e.replace(Wn, "-$&").toLowerCase();
965
+ }, nt = /* @__PURE__ */ Qn(function(e) {
966
+ return ir(e) ? e : e.replace(Yn, "-$&").toLowerCase();
966
967
  }), jt = function(t, r) {
967
968
  switch (t) {
968
969
  case "animation":
969
970
  case "animationName":
970
971
  if (typeof r == "string")
971
- return r.replace(Hn, function(i, a, o) {
972
- return B = {
972
+ return r.replace(Wn, function(i, a, o) {
973
+ return K = {
973
974
  name: a,
974
975
  styles: o,
975
- next: B
976
+ next: K
976
977
  }, a;
977
978
  });
978
979
  }
979
- return Un[t] !== 1 && !rr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
980
+ return Un[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
980
981
  };
981
982
  function Ie(e, t, r) {
982
983
  if (r == null)
@@ -990,30 +991,30 @@ function Ie(e, t, r) {
990
991
  case "object": {
991
992
  var a = r;
992
993
  if (a.anim === 1)
993
- return B = {
994
+ return K = {
994
995
  name: a.name,
995
996
  styles: a.styles,
996
- next: B
997
+ next: K
997
998
  }, a.name;
998
999
  var o = r;
999
1000
  if (o.styles !== void 0) {
1000
1001
  var c = o.next;
1001
1002
  if (c !== void 0)
1002
1003
  for (; c !== void 0; )
1003
- B = {
1004
+ K = {
1004
1005
  name: c.name,
1005
1006
  styles: c.styles,
1006
- next: B
1007
+ next: K
1007
1008
  }, c = c.next;
1008
1009
  var f = o.styles + ";";
1009
1010
  return f;
1010
1011
  }
1011
- return Gn(e, t, r);
1012
+ return Hn(e, t, r);
1012
1013
  }
1013
1014
  case "function": {
1014
1015
  if (e !== void 0) {
1015
- var p = B, m = r(e);
1016
- return B = p, Ie(e, t, m);
1016
+ var p = K, v = r(e);
1017
+ return K = p, Ie(e, t, v);
1017
1018
  }
1018
1019
  break;
1019
1020
  }
@@ -1021,7 +1022,7 @@ function Ie(e, t, r) {
1021
1022
  var P = r;
1022
1023
  return P;
1023
1024
  }
1024
- function Gn(e, t, r) {
1025
+ function Hn(e, t, r) {
1025
1026
  var i = "";
1026
1027
  if (Array.isArray(r))
1027
1028
  for (var a = 0; a < r.length; a++)
@@ -1036,26 +1037,26 @@ function Gn(e, t, r) {
1036
1037
  for (var p = 0; p < c.length; p++)
1037
1038
  $t(c[p]) && (i += nt(o) + ":" + jt(o, c[p]) + ";");
1038
1039
  else {
1039
- var m = Ie(e, t, c);
1040
+ var v = Ie(e, t, c);
1040
1041
  switch (o) {
1041
1042
  case "animation":
1042
1043
  case "animationName": {
1043
- i += nt(o) + ":" + m + ";";
1044
+ i += nt(o) + ":" + v + ";";
1044
1045
  break;
1045
1046
  }
1046
1047
  default:
1047
- i += o + "{" + m + "}";
1048
+ i += o + "{" + v + "}";
1048
1049
  }
1049
1050
  }
1050
1051
  }
1051
1052
  return i;
1052
1053
  }
1053
- var zt = /label:\s*([^\s;{]+)\s*(;|$)/g, B;
1054
- function Jn(e, t, r) {
1054
+ var zt = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1055
+ function Gn(e, t, r) {
1055
1056
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1056
1057
  return e[0];
1057
1058
  var i = !0, a = "";
1058
- B = void 0;
1059
+ K = void 0;
1059
1060
  var o = e[0];
1060
1061
  if (o == null || o.raw === void 0)
1061
1062
  i = !1, a += Ie(r, t, o);
@@ -1069,70 +1070,70 @@ function Jn(e, t, r) {
1069
1070
  a += p[f];
1070
1071
  }
1071
1072
  zt.lastIndex = 0;
1072
- for (var m = "", P; (P = zt.exec(a)) !== null; )
1073
- m += "-" + P[1];
1074
- var w = Vn(a) + m;
1073
+ for (var v = "", P; (P = zt.exec(a)) !== null; )
1074
+ v += "-" + P[1];
1075
+ var S = Vn(a) + v;
1075
1076
  return {
1076
- name: w,
1077
+ name: S,
1077
1078
  styles: a,
1078
- next: B
1079
+ next: K
1079
1080
  };
1080
1081
  }
1081
- var Qn = function(t) {
1082
+ var Jn = function(t) {
1082
1083
  return t();
1083
- }, Kn = te.useInsertionEffect ? te.useInsertionEffect : !1, Bn = Kn || Qn, nr = /* @__PURE__ */ te.createContext(
1084
+ }, Bn = te.useInsertionEffect ? te.useInsertionEffect : !1, Kn = Bn || Jn, ar = /* @__PURE__ */ te.createContext(
1084
1085
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1085
1086
  // because this module is primarily intended for the browser and node
1086
1087
  // but it's also required in react native and similar environments sometimes
1087
1088
  // and we could have a special build just for that
1088
1089
  // but this is much easier and the native packages
1089
1090
  // might use a different theme context in the future anyway
1090
- typeof HTMLElement < "u" ? /* @__PURE__ */ qr({
1091
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Lr({
1091
1092
  key: "css"
1092
1093
  }) : null
1093
1094
  );
1094
- nr.Provider;
1095
+ ar.Provider;
1095
1096
  var Xn = function(t) {
1096
1097
  return /* @__PURE__ */ jr(function(r, i) {
1097
- var a = ct(nr);
1098
+ var a = ct(ar);
1098
1099
  return t(r, a, i);
1099
1100
  });
1100
- }, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ir = function(t, r) {
1101
+ }, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sr = function(t, r) {
1101
1102
  var i = {};
1102
1103
  for (var a in r)
1103
1104
  Ue.call(r, a) && (i[a] = r[a]);
1104
1105
  return i[ot] = t, i;
1105
1106
  }, ei = function(t) {
1106
1107
  var r = t.cache, i = t.serialized, a = t.isStringTag;
1107
- return tr(r, i, a), Bn(function() {
1108
- return Ln(r, i, a);
1108
+ return nr(r, i, a), Kn(function() {
1109
+ return qn(r, i, a);
1109
1110
  }), null;
1110
1111
  }, ti = /* @__PURE__ */ Xn(function(e, t, r) {
1111
1112
  var i = e.css;
1112
1113
  typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
1113
1114
  var a = e[ot], o = [i], c = "";
1114
- typeof e.className == "string" ? c = qn(t.registered, o, e.className) : e.className != null && (c = e.className + " ");
1115
- var f = Jn(o, void 0, te.useContext(Zn));
1115
+ typeof e.className == "string" ? c = Ln(t.registered, o, e.className) : e.className != null && (c = e.className + " ");
1116
+ var f = Gn(o, void 0, te.useContext(Zn));
1116
1117
  c += t.key + "-" + f.name;
1117
1118
  var p = {};
1118
- for (var m in e)
1119
- Ue.call(e, m) && m !== "css" && m !== ot && (p[m] = e[m]);
1119
+ for (var v in e)
1120
+ Ue.call(e, v) && v !== "css" && v !== ot && (p[v] = e[v]);
1120
1121
  return p.className = c, r && (p.ref = r), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ei, {
1121
1122
  cache: t,
1122
1123
  serialized: f,
1123
1124
  isStringTag: typeof a == "string"
1124
1125
  }), /* @__PURE__ */ te.createElement(a, p));
1125
- }), ar = ti, Ye = Ce.Fragment, s = function(t, r, i) {
1126
- return Ue.call(r, "css") ? Ce.jsx(ar, ir(t, r), i) : Ce.jsx(t, r, i);
1127
- }, M = function(t, r, i) {
1128
- return Ue.call(r, "css") ? Ce.jsxs(ar, ir(t, r), i) : Ce.jsxs(t, r, i);
1126
+ }), or = ti, Qe = Ce.Fragment, s = function(t, r, i) {
1127
+ return Ue.call(r, "css") ? Ce.jsx(or, sr(t, r), i) : Ce.jsx(t, r, i);
1128
+ }, D = function(t, r, i) {
1129
+ return Ue.call(r, "css") ? Ce.jsxs(or, sr(t, r), i) : Ce.jsxs(t, r, i);
1129
1130
  };
1130
1131
  const ri = {
1131
1132
  mediaPlayer: {
1132
1133
  enablePlaylists: process.env.NODE_ENV !== "production"
1133
1134
  }
1134
1135
  }, ni = "http://localhost".replace(/\/+$/, "");
1135
- class sr {
1136
+ class lr {
1136
1137
  constructor(t = {}) {
1137
1138
  this.configuration = t;
1138
1139
  }
@@ -1149,7 +1150,7 @@ class sr {
1149
1150
  return this.configuration.middleware || [];
1150
1151
  }
1151
1152
  get queryParamsStringify() {
1152
- return this.configuration.queryParamsStringify || or;
1153
+ return this.configuration.queryParamsStringify || cr;
1153
1154
  }
1154
1155
  get username() {
1155
1156
  return this.configuration.username;
@@ -1174,7 +1175,7 @@ class sr {
1174
1175
  return this.configuration.credentials;
1175
1176
  }
1176
1177
  }
1177
- const ii = new sr();
1178
+ const ii = new lr();
1178
1179
  class pt {
1179
1180
  constructor(t = ii) {
1180
1181
  this.configuration = t, this.middleware = t.middleware;
@@ -1231,11 +1232,11 @@ class pt {
1231
1232
  };
1232
1233
  let p;
1233
1234
  si(f.body) || f.body instanceof URLSearchParams || ai(f.body) ? p = f.body : this.isJsonMime(a["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
1234
- const m = {
1235
+ const v = {
1235
1236
  ...f,
1236
1237
  body: p
1237
1238
  };
1238
- return { url: i, init: m };
1239
+ return { url: i, init: v };
1239
1240
  }
1240
1241
  fetchApi = async (t, r) => {
1241
1242
  let i = { url: t, init: r };
@@ -1295,16 +1296,16 @@ class li extends Error {
1295
1296
  }
1296
1297
  name = "FetchError";
1297
1298
  }
1298
- class Re extends Error {
1299
+ class Ee extends Error {
1299
1300
  constructor(t, r) {
1300
1301
  super(r), this.field = t;
1301
1302
  }
1302
1303
  name = "RequiredError";
1303
1304
  }
1304
- function or(e, t = "") {
1305
- return Object.keys(e).map((r) => lr(r, e[r], t)).filter((r) => r.length > 0).join("&");
1305
+ function cr(e, t = "") {
1306
+ return Object.keys(e).map((r) => ur(r, e[r], t)).filter((r) => r.length > 0).join("&");
1306
1307
  }
1307
- function lr(e, t, r = "") {
1308
+ function ur(e, t, r = "") {
1308
1309
  const i = r + (r.length ? `[${e}]` : e);
1309
1310
  if (t instanceof Array) {
1310
1311
  const a = t.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);
@@ -1312,9 +1313,9 @@ function lr(e, t, r = "") {
1312
1313
  }
1313
1314
  if (t instanceof Set) {
1314
1315
  const a = Array.from(t);
1315
- return lr(e, a, r);
1316
+ return ur(e, a, r);
1316
1317
  }
1317
- return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? or(t, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`;
1318
+ return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? cr(t, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`;
1318
1319
  }
1319
1320
  class se {
1320
1321
  constructor(t, r = (i) => i) {
@@ -1324,7 +1325,7 @@ class se {
1324
1325
  return this.transformer(await this.raw.json());
1325
1326
  }
1326
1327
  }
1327
- function cr(e) {
1328
+ function dr(e) {
1328
1329
  return ci(e);
1329
1330
  }
1330
1331
  function ci(e, t) {
@@ -1338,7 +1339,7 @@ function ui(e) {
1338
1339
  }
1339
1340
  function di(e, t) {
1340
1341
  return e == null ? e : {
1341
- playlist: cr(e.playlist)
1342
+ playlist: dr(e.playlist)
1342
1343
  };
1343
1344
  }
1344
1345
  function fi(e) {
@@ -1346,13 +1347,13 @@ function fi(e) {
1346
1347
  }
1347
1348
  function pi(e, t) {
1348
1349
  return e == null ? e : {
1349
- items: e.items.map(cr)
1350
+ items: e.items.map(dr)
1350
1351
  };
1351
1352
  }
1352
- function yi(e) {
1353
- return hi(e);
1353
+ function hi(e) {
1354
+ return yi(e);
1354
1355
  }
1355
- function hi(e, t) {
1356
+ function yi(e, t) {
1356
1357
  return e == null ? e : {
1357
1358
  id: e.id,
1358
1359
  url: e.url,
@@ -1366,7 +1367,7 @@ function mi(e) {
1366
1367
  }
1367
1368
  function vi(e, t) {
1368
1369
  return e == null ? e : {
1369
- items: e.items.map(yi)
1370
+ items: e.items.map(hi)
1370
1371
  };
1371
1372
  }
1372
1373
  function gi(e) {
@@ -1406,7 +1407,7 @@ class Si extends pt {
1406
1407
  */
1407
1408
  async mediaPlayerPlaylistsIdDeleteRaw(t, r) {
1408
1409
  if (t.id == null)
1409
- throw new Re(
1410
+ throw new Ee(
1410
1411
  "id",
1411
1412
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdDelete().'
1412
1413
  );
@@ -1430,7 +1431,7 @@ class Si extends pt {
1430
1431
  */
1431
1432
  async mediaPlayerPlaylistsIdGetRaw(t, r) {
1432
1433
  if (t.id == null)
1433
- throw new Re(
1434
+ throw new Ee(
1434
1435
  "id",
1435
1436
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdGet().'
1436
1437
  );
@@ -1454,7 +1455,7 @@ class Si extends pt {
1454
1455
  */
1455
1456
  async mediaPlayerPlaylistsIdRenamePostRaw(t, r) {
1456
1457
  if (t.id == null)
1457
- throw new Re(
1458
+ throw new Ee(
1458
1459
  "id",
1459
1460
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdRenamePost().'
1460
1461
  );
@@ -1480,7 +1481,7 @@ class Si extends pt {
1480
1481
  */
1481
1482
  async mediaPlayerPlaylistsIdTracksGetRaw(t, r) {
1482
1483
  if (t.id == null)
1483
- throw new Re(
1484
+ throw new Ee(
1484
1485
  "id",
1485
1486
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksGet().'
1486
1487
  );
@@ -1504,7 +1505,7 @@ class Si extends pt {
1504
1505
  */
1505
1506
  async mediaPlayerPlaylistsIdTracksPutRaw(t, r) {
1506
1507
  if (t.id == null)
1507
- throw new Re(
1508
+ throw new Ee(
1508
1509
  "id",
1509
1510
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksPut().'
1510
1511
  );
@@ -1544,19 +1545,19 @@ class Si extends pt {
1544
1545
  return await (await this.mediaPlayerPlaylistsPostRaw(t, r)).value();
1545
1546
  }
1546
1547
  }
1547
- const Ei = new sr({
1548
+ const Ti = new lr({
1548
1549
  basePath: new URL("api", window.location.origin).toString()
1549
- }), Ri = new Si(
1550
- Ei
1551
- ), Ti = ({
1550
+ }), Ei = new Si(
1551
+ Ti
1552
+ ), Ri = ({
1552
1553
  disabled: e,
1553
1554
  onAddToPlaylist: t
1554
1555
  }) => {
1555
1556
  const [r, i] = z(!1), [a, o] = z(
1556
1557
  "loading"
1557
1558
  );
1558
- return Vt(() => {
1559
- Ri.mediaPlayerPlaylistsGet().then(
1559
+ return Ut(() => {
1560
+ Ei.mediaPlayerPlaylistsGet().then(
1560
1561
  (c) => o(
1561
1562
  c.items.map((f) => ({
1562
1563
  key: f.id,
@@ -1569,9 +1570,9 @@ const Ei = new sr({
1569
1570
  {
1570
1571
  panelPaddingSize: "none",
1571
1572
  button: /* @__PURE__ */ s(
1572
- Q,
1573
+ J,
1573
1574
  {
1574
- iconType: Te,
1575
+ iconType: Re,
1575
1576
  onClick: () => i(!r),
1576
1577
  disabled: e,
1577
1578
  children: "Add to"
@@ -1580,7 +1581,7 @@ const Ei = new sr({
1580
1581
  isOpen: r,
1581
1582
  closePopover: () => i(!1),
1582
1583
  children: /* @__PURE__ */ s(
1583
- Lr,
1584
+ qr,
1584
1585
  {
1585
1586
  searchable: !0,
1586
1587
  searchProps: {
@@ -1592,10 +1593,10 @@ const Ei = new sr({
1592
1593
  i(!1), await t(p);
1593
1594
  },
1594
1595
  singleSelection: !0,
1595
- children: (c, f) => /* @__PURE__ */ M("div", { style: { width: 240 }, children: [
1596
+ children: (c, f) => /* @__PURE__ */ D("div", { style: { width: 240 }, children: [
1596
1597
  /* @__PURE__ */ s(Vr, { paddingSize: "s", children: f }),
1597
1598
  c,
1598
- /* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(Q, { size: "s", fullWidth: !0, iconType: Te, children: "New playlist" }) })
1599
+ /* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(J, { size: "s", fullWidth: !0, iconType: Re, children: "New playlist" }) })
1599
1600
  ] })
1600
1601
  }
1601
1602
  )
@@ -1605,16 +1606,16 @@ const Ei = new sr({
1605
1606
  onCancel: e,
1606
1607
  onSave: t
1607
1608
  }) => {
1608
- const r = Yr({ prefix: "modalForm" }), [i, a] = z(""), [o, c] = z(""), [f, p] = z(!1);
1609
- return /* @__PURE__ */ M(Kr, { onClose: e, initialFocus: "[name=url]", children: [
1610
- /* @__PURE__ */ s(Hr, { children: /* @__PURE__ */ s(Wr, { children: "Add video" }) }),
1611
- /* @__PURE__ */ s(Jr, { children: /* @__PURE__ */ M(
1612
- Gr,
1609
+ const r = Qr({ prefix: "modalForm" }), [i, a] = z(""), [o, c] = z(""), [f, p] = z(!1);
1610
+ return /* @__PURE__ */ D(Br, { onClose: e, initialFocus: "[name=url]", children: [
1611
+ /* @__PURE__ */ s(Wr, { children: /* @__PURE__ */ s(Yr, { children: "Add video" }) }),
1612
+ /* @__PURE__ */ s(Gr, { children: /* @__PURE__ */ D(
1613
+ Hr,
1613
1614
  {
1614
1615
  id: r,
1615
1616
  component: "form",
1616
- onSubmit: async (m) => {
1617
- m.preventDefault();
1617
+ onSubmit: async (v) => {
1618
+ v.preventDefault();
1618
1619
  try {
1619
1620
  p(!0), await t({ url: i, title: o });
1620
1621
  } finally {
@@ -1627,7 +1628,7 @@ const Ei = new sr({
1627
1628
  {
1628
1629
  name: "url",
1629
1630
  value: i,
1630
- onChange: (m) => a(m.target.value)
1631
+ onChange: (v) => a(v.target.value)
1631
1632
  }
1632
1633
  ) }),
1633
1634
  /* @__PURE__ */ s(at, { label: "Title", children: /* @__PURE__ */ s(
@@ -1635,16 +1636,16 @@ const Ei = new sr({
1635
1636
  {
1636
1637
  name: "title",
1637
1638
  value: o,
1638
- onChange: (m) => c(m.target.value)
1639
+ onChange: (v) => c(v.target.value)
1639
1640
  }
1640
1641
  ) })
1641
1642
  ]
1642
1643
  }
1643
1644
  ) }),
1644
- /* @__PURE__ */ M(Qr, { children: [
1645
- /* @__PURE__ */ s(Yt, { onClick: e, children: "Cancel" }),
1645
+ /* @__PURE__ */ D(Jr, { children: [
1646
+ /* @__PURE__ */ s(Qt, { onClick: e, children: "Cancel" }),
1646
1647
  /* @__PURE__ */ s(
1647
- Q,
1648
+ J,
1648
1649
  {
1649
1650
  type: "submit",
1650
1651
  form: r,
@@ -1656,7 +1657,7 @@ const Ei = new sr({
1656
1657
  )
1657
1658
  ] })
1658
1659
  ] });
1659
- }, qt = re(
1660
+ }, Lt = re(
1660
1661
  ({ onSave: e }) => {
1661
1662
  const [t, r] = z(!1), i = $(
1662
1663
  async (a) => {
@@ -1664,12 +1665,12 @@ const Ei = new sr({
1664
1665
  },
1665
1666
  [e]
1666
1667
  );
1667
- return /* @__PURE__ */ M(Ye, { children: [
1668
+ return /* @__PURE__ */ D(Qe, { children: [
1668
1669
  /* @__PURE__ */ s(
1669
- Q,
1670
+ J,
1670
1671
  {
1671
1672
  onClick: () => r(!0),
1672
- iconType: Te,
1673
+ iconType: Re,
1673
1674
  color: "primary",
1674
1675
  children: "Add video"
1675
1676
  }
@@ -1683,7 +1684,7 @@ const Ei = new sr({
1683
1684
  )
1684
1685
  ] });
1685
1686
  }
1686
- ), ur = {
1687
+ ), fr = {
1687
1688
  Audio: "",
1688
1689
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
1689
1690
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -1691,10 +1692,10 @@ const Ei = new sr({
1691
1692
  Twitch: "https://www.twitch.tv/favicon.ico",
1692
1693
  Vimeo: "https://vimeo.com/favicon.ico",
1693
1694
  YouTube: "https://www.youtube.com/favicon.ico"
1694
- }, Ii = C(
1695
+ }, Ii = I(
1695
1696
  ({ playQueueStore: e }) => {
1696
- const { euiTheme: t } = Wt();
1697
- return /* @__PURE__ */ M(
1697
+ const { euiTheme: t } = Yt();
1698
+ return /* @__PURE__ */ D(
1698
1699
  Xr,
1699
1700
  {
1700
1701
  style: {
@@ -1704,8 +1705,8 @@ const Ei = new sr({
1704
1705
  background: t.colors.backgroundBasePlain
1705
1706
  },
1706
1707
  children: [
1707
- /* @__PURE__ */ s(Br, { children: /* @__PURE__ */ s(
1708
- Ht,
1708
+ /* @__PURE__ */ s(Kr, { children: /* @__PURE__ */ s(
1709
+ Wt,
1709
1710
  {
1710
1711
  id: "",
1711
1712
  checked: e.allItemsSelected,
@@ -1733,21 +1734,21 @@ const Ei = new sr({
1733
1734
  items: [
1734
1735
  {
1735
1736
  name: "Play first",
1736
- icon: /* @__PURE__ */ s(Y, { type: "" }),
1737
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
1737
1738
  onClick: async () => {
1738
1739
  t(), await e.playFirst();
1739
1740
  }
1740
1741
  },
1741
1742
  {
1742
1743
  name: "Play next",
1743
- icon: /* @__PURE__ */ s(Y, { type: "" }),
1744
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
1744
1745
  onClick: async () => {
1745
1746
  t(), await e.playNext();
1746
1747
  }
1747
1748
  },
1748
1749
  {
1749
1750
  name: "Add to play queue",
1750
- icon: /* @__PURE__ */ s(Y, { type: Te }),
1751
+ icon: /* @__PURE__ */ s(Q, { type: Re }),
1751
1752
  onClick: async () => {
1752
1753
  t(), await e.addToPlayQueue();
1753
1754
  }
@@ -1757,7 +1758,7 @@ const Ei = new sr({
1757
1758
  },
1758
1759
  {
1759
1760
  name: "Move to the top",
1760
- icon: /* @__PURE__ */ s(Y, { type: cn }),
1761
+ icon: /* @__PURE__ */ s(Q, { type: cn }),
1761
1762
  onClick: async () => {
1762
1763
  t(), e.moveToTop();
1763
1764
  },
@@ -1765,7 +1766,7 @@ const Ei = new sr({
1765
1766
  },
1766
1767
  {
1767
1768
  name: "Move to the bottom",
1768
- icon: /* @__PURE__ */ s(Y, { type: un }),
1769
+ icon: /* @__PURE__ */ s(Q, { type: un }),
1769
1770
  onClick: async () => {
1770
1771
  t(), e.moveToBottom();
1771
1772
  },
@@ -1776,7 +1777,7 @@ const Ei = new sr({
1776
1777
  },
1777
1778
  {
1778
1779
  name: "Remove to the top",
1779
- icon: /* @__PURE__ */ s(Y, { type: "" }),
1780
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
1780
1781
  onClick: async () => {
1781
1782
  t(), await e.removeToTop();
1782
1783
  },
@@ -1784,7 +1785,7 @@ const Ei = new sr({
1784
1785
  },
1785
1786
  {
1786
1787
  name: "Remove others",
1787
- icon: /* @__PURE__ */ s(Y, { type: "" }),
1788
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
1788
1789
  onClick: async () => {
1789
1790
  t(), await e.removeOthers();
1790
1791
  },
@@ -1804,11 +1805,11 @@ const Ei = new sr({
1804
1805
  xe,
1805
1806
  {
1806
1807
  button: /* @__PURE__ */ s(
1807
- W,
1808
+ Y,
1808
1809
  {
1809
1810
  title: "More options",
1810
1811
  "aria-label": "More options",
1811
- iconType: Qt,
1812
+ iconType: Jt,
1812
1813
  size: "s",
1813
1814
  color: "text",
1814
1815
  onClick: i
@@ -1828,12 +1829,12 @@ const Ei = new sr({
1828
1829
  }
1829
1830
  );
1830
1831
  }
1831
- ), _i = C(
1832
+ ), ki = I(
1832
1833
  ({ item: e }) => {
1833
1834
  const t = le();
1834
- return /* @__PURE__ */ M(st, { textOnly: !1, hasActions: !0, align: "right", children: [
1835
+ return /* @__PURE__ */ D(st, { textOnly: !1, hasActions: !0, align: "right", children: [
1835
1836
  /* @__PURE__ */ s(
1836
- Q,
1837
+ J,
1837
1838
  {
1838
1839
  iconType: ln,
1839
1840
  size: "s",
@@ -1844,7 +1845,7 @@ const Ei = new sr({
1844
1845
  }
1845
1846
  ),
1846
1847
  /* @__PURE__ */ s(
1847
- Q,
1848
+ J,
1848
1849
  {
1849
1850
  iconType: ft,
1850
1851
  size: "s",
@@ -1855,12 +1856,12 @@ const Ei = new sr({
1855
1856
  /* @__PURE__ */ s(Oi, { item: e })
1856
1857
  ] });
1857
1858
  }
1858
- ), ki = C(
1859
+ ), _i = I(
1859
1860
  ({ item: e }) => {
1860
1861
  const t = le();
1861
- return /* @__PURE__ */ M(tn, { isSelected: e.isCurrent, children: [
1862
+ return /* @__PURE__ */ D(tn, { isSelected: e.isCurrent, children: [
1862
1863
  /* @__PURE__ */ s(Zr, { children: /* @__PURE__ */ s(
1863
- Ht,
1864
+ Wt,
1864
1865
  {
1865
1866
  id: e.id.toString(),
1866
1867
  checked: e.isSelected,
@@ -1870,7 +1871,7 @@ const Ei = new sr({
1870
1871
  /* @__PURE__ */ s(st, { textOnly: !1, children: /* @__PURE__ */ s(
1871
1872
  "img",
1872
1873
  {
1873
- src: ur[e.type],
1874
+ src: fr[e.type],
1874
1875
  width: 16,
1875
1876
  height: 16,
1876
1877
  alt: e.type
@@ -1886,21 +1887,21 @@ const Ei = new sr({
1886
1887
  children: e.title
1887
1888
  }
1888
1889
  ) }),
1889
- /* @__PURE__ */ s(_i, { item: e })
1890
+ /* @__PURE__ */ s(ki, { item: e })
1890
1891
  ] }, e.id);
1891
1892
  }
1892
- ), Ai = C(
1893
+ ), Ai = I(
1893
1894
  ({ playQueueStore: e }) => /* @__PURE__ */ s(
1894
1895
  On,
1895
1896
  {
1896
1897
  tag: "tbody",
1897
1898
  list: e.items,
1898
1899
  setList: (t) => e.setItems(t),
1899
- children: e.items.map((t) => /* @__PURE__ */ s(ki, { item: t }, t.id))
1900
+ children: e.items.map((t) => /* @__PURE__ */ s(_i, { item: t }, t.id))
1900
1901
  }
1901
1902
  )
1902
- ), Di = C(
1903
- ({ playQueueStore: e }) => /* @__PURE__ */ M(rn, { children: [
1903
+ ), Fi = I(
1904
+ ({ playQueueStore: e }) => /* @__PURE__ */ D(rn, { children: [
1904
1905
  /* @__PURE__ */ s(Ii, { playQueueStore: e }),
1905
1906
  /* @__PURE__ */ s(Ai, { playQueueStore: e })
1906
1907
  ] })
@@ -1908,21 +1909,21 @@ const Ei = new sr({
1908
1909
  function Mi(e) {
1909
1910
  return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
1910
1911
  }
1911
- const Fi = C(
1912
+ const Di = I(
1912
1913
  ({ playQueueStore: e }) => /* @__PURE__ */ s(
1913
- Q,
1914
+ J,
1914
1915
  {
1915
- iconType: Te,
1916
+ iconType: Re,
1916
1917
  onClick: e.addSelectedItems,
1917
1918
  disabled: e.isEmpty || e.selectedItems.length === 0,
1918
1919
  children: "Add to play queue"
1919
1920
  }
1920
1921
  )
1921
1922
  );
1922
- C(
1923
+ I(
1923
1924
  ({ playQueueStore: e }) => {
1924
1925
  const [t, r] = z(!1);
1925
- return /* @__PURE__ */ M(Ye, { children: [
1926
+ return /* @__PURE__ */ D(Qe, { children: [
1926
1927
  t && /* @__PURE__ */ s(
1927
1928
  an,
1928
1929
  {
@@ -1946,7 +1947,7 @@ C(
1946
1947
  }
1947
1948
  ),
1948
1949
  /* @__PURE__ */ s(
1949
- Q,
1950
+ J,
1950
1951
  {
1951
1952
  onClick: () => r((i) => !i),
1952
1953
  iconType: dn,
@@ -1956,12 +1957,12 @@ C(
1956
1957
  ] });
1957
1958
  }
1958
1959
  );
1959
- const Ni = C(
1960
+ const Ni = I(
1960
1961
  ({ playQueueStore: e }) => {
1961
- const { euiTheme: t } = Wt(), r = $(async () => {
1962
+ const { euiTheme: t } = Yt(), r = $(async () => {
1962
1963
  }, []), i = $(
1963
1964
  async (a) => {
1964
- const o = Tn(a.url);
1965
+ const o = Rn(a.url);
1965
1966
  if (o !== void 0) {
1966
1967
  const c = o.extractVideoId(a.url);
1967
1968
  if (c !== void 0) {
@@ -1983,8 +1984,8 @@ const Ni = C(
1983
1984
  },
1984
1985
  [e]
1985
1986
  );
1986
- return /* @__PURE__ */ M(Ye, { children: [
1987
- /* @__PURE__ */ M(
1987
+ return /* @__PURE__ */ D(Qe, { children: [
1988
+ /* @__PURE__ */ D(
1988
1989
  oe,
1989
1990
  {
1990
1991
  alignItems: "center",
@@ -1996,24 +1997,24 @@ const Ni = C(
1996
1997
  background: t.colors.backgroundBasePlain
1997
1998
  },
1998
1999
  children: [
1999
- /* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
2000
- Q,
2000
+ /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2001
+ J,
2001
2002
  {
2002
2003
  disabled: e.isEmpty || e.selectedItems.length === 0,
2003
2004
  onClick: e.playSelectedItemsNext,
2004
2005
  children: "Play next"
2005
2006
  }
2006
2007
  ) }),
2007
- /* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(Fi, { playQueueStore: e }) }),
2008
- /* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
2009
- Ti,
2008
+ /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(Di, { playQueueStore: e }) }),
2009
+ /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2010
+ Ri,
2010
2011
  {
2011
2012
  disabled: !ri.mediaPlayer.enablePlaylists,
2012
2013
  onAddToPlaylist: r
2013
2014
  }
2014
2015
  ) }),
2015
- /* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
2016
- Q,
2016
+ /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2017
+ J,
2017
2018
  {
2018
2019
  iconType: ft,
2019
2020
  onClick: e.removeSelectedItems,
@@ -2021,8 +2022,8 @@ const Ni = C(
2021
2022
  children: "Remove"
2022
2023
  }
2023
2024
  ) }),
2024
- /* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
2025
- Q,
2025
+ /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2026
+ J,
2026
2027
  {
2027
2028
  iconType: fn,
2028
2029
  onClick: e.clear,
@@ -2030,16 +2031,16 @@ const Ni = C(
2030
2031
  children: "Clear"
2031
2032
  }
2032
2033
  ) }),
2033
- /* @__PURE__ */ s(J, { grow: !0 }),
2034
- /* @__PURE__ */ M(J, { grow: !1, children: [
2034
+ /* @__PURE__ */ s(G, { grow: !0 }),
2035
+ /* @__PURE__ */ D(G, { grow: !1, children: [
2035
2036
  !1,
2036
- /* @__PURE__ */ s(qt, { onSave: i })
2037
+ /* @__PURE__ */ s(Lt, { onSave: i })
2037
2038
  ] })
2038
2039
  ]
2039
2040
  }
2040
2041
  ),
2041
2042
  /* @__PURE__ */ s(
2042
- Gt,
2043
+ Ht,
2043
2044
  {
2044
2045
  size: "l",
2045
2046
  style: {
@@ -2055,12 +2056,12 @@ const Ni = C(
2055
2056
  {
2056
2057
  title: /* @__PURE__ */ s("h2", { children: "We couldn't find any videos" }),
2057
2058
  body: /* @__PURE__ */ s("p", { children: "Your video library doesn't contain any video content." }),
2058
- actions: /* @__PURE__ */ s(qt, { onSave: i })
2059
+ actions: /* @__PURE__ */ s(Lt, { onSave: i })
2059
2060
  }
2060
- ) : /* @__PURE__ */ s(Di, { playQueueStore: e })
2061
+ ) : /* @__PURE__ */ s(Fi, { playQueueStore: e })
2061
2062
  ] });
2062
2063
  }
2063
- ), dr = Ut(void 0), fr = () => ct(dr), it = new _n({
2064
+ ), it = new kn({
2064
2065
  coerceTypes: !0
2065
2066
  });
2066
2067
  function $i(e, t) {
@@ -2099,7 +2100,7 @@ const ji = {
2099
2100
  },
2100
2101
  repeat: {
2101
2102
  type: "string",
2102
- enum: Object.values(N),
2103
+ enum: Object.values(O),
2103
2104
  nullable: !0
2104
2105
  },
2105
2106
  shuffle: {
@@ -2117,36 +2118,36 @@ const ji = {
2117
2118
  }
2118
2119
  }
2119
2120
  };
2120
- class Le {
2121
+ class qe {
2121
2122
  constructor(t, r, i) {
2122
- this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = Le.nextId++, t.makeObservable(this, {
2123
+ this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = qe.nextId++, t.makeObservable(this, {
2123
2124
  isSelected: X,
2124
- isCurrent: _,
2125
- index: _,
2126
- isFirst: _,
2127
- isLast: _,
2128
- canMoveToTop: _,
2129
- canMoveToBottom: _,
2130
- canRemoveToTop: _,
2131
- canRemoveOthers: _,
2132
- unselect: v,
2133
- toggleSelected: v.bound,
2134
- play: v,
2135
- remove: v.bound,
2136
- playFirst: v.bound,
2137
- playNext: v.bound,
2138
- addToPlayQueue: v.bound,
2139
- moveToTop: v.bound,
2140
- moveToBottom: v.bound,
2141
- removeToTop: v.bound,
2142
- removeOthers: v.bound
2125
+ isCurrent: w,
2126
+ index: w,
2127
+ isFirst: w,
2128
+ isLast: w,
2129
+ canMoveToTop: w,
2130
+ canMoveToBottom: w,
2131
+ canRemoveToTop: w,
2132
+ canRemoveOthers: w,
2133
+ unselect: y,
2134
+ toggleSelected: y.bound,
2135
+ play: y,
2136
+ remove: y.bound,
2137
+ playFirst: y.bound,
2138
+ playNext: y.bound,
2139
+ addToPlayQueue: y.bound,
2140
+ moveToTop: y.bound,
2141
+ moveToBottom: y.bound,
2142
+ removeToTop: y.bound,
2143
+ removeOthers: y.bound
2143
2144
  });
2144
2145
  }
2145
2146
  static nextId = 1;
2146
2147
  id;
2147
2148
  isSelected = !1;
2148
2149
  static fromDto(t, r, i) {
2149
- return new Le(
2150
+ return new qe(
2150
2151
  t,
2151
2152
  r,
2152
2153
  i
@@ -2228,7 +2229,7 @@ class Le {
2228
2229
  return this.playQueueStore.removeOtherItems(this);
2229
2230
  }
2230
2231
  }
2231
- class qi {
2232
+ class Li {
2232
2233
  constructor(t) {
2233
2234
  this.observableStateProvider = t, t.makeObservable(this, {
2234
2235
  interacted: X,
@@ -2236,50 +2237,50 @@ class qi {
2236
2237
  currentId: X,
2237
2238
  repeat: X,
2238
2239
  shuffle: X,
2239
- localStorageState: _.struct,
2240
- isEmpty: _,
2241
- currentItem: _,
2242
- canPlay: _,
2243
- canPause: _,
2244
- hasMultipleItems: _,
2245
- currentIndex: _,
2246
- hasPreviousItem: _,
2247
- hasNextItem: _,
2248
- isLastItem: _,
2249
- selectedItems: _,
2250
- allItemsSelected: _,
2251
- selectedItemsOrAllItems: _,
2252
- setItems: v,
2253
- interact: v,
2254
- clear: v.bound,
2255
- unselectAll: v,
2256
- setCurrentItem: v,
2257
- setNextItems: v,
2258
- clearAndSetItems: v,
2259
- playNext: v,
2260
- playSelectedItemsNext: v.bound,
2261
- addItems: v,
2262
- addSelectedItems: v.bound,
2263
- playFirst: v,
2264
- moveItem: v,
2265
- goToFirst: v,
2266
- removeItems: v,
2267
- removeSelectedItems: v.bound,
2268
- removeOtherItems: v,
2269
- removeItemsAbove: v,
2270
- toggleRepeat: v.bound,
2271
- toggleShuffle: v.bound,
2272
- previous: v,
2273
- next: v.bound
2240
+ localStorageState: w.struct,
2241
+ isEmpty: w,
2242
+ currentItem: w,
2243
+ canPlay: w,
2244
+ canPause: w,
2245
+ hasMultipleItems: w,
2246
+ currentIndex: w,
2247
+ hasPreviousItem: w,
2248
+ hasNextItem: w,
2249
+ isLastItem: w,
2250
+ selectedItems: w,
2251
+ allItemsSelected: w,
2252
+ selectedItemsOrAllItems: w,
2253
+ setItems: y,
2254
+ interact: y,
2255
+ clear: y.bound,
2256
+ unselectAll: y,
2257
+ setCurrentItem: y,
2258
+ setNextItems: y,
2259
+ clearAndSetItems: y,
2260
+ playNext: y,
2261
+ playSelectedItemsNext: y.bound,
2262
+ addItems: y,
2263
+ addSelectedItems: y.bound,
2264
+ playFirst: y,
2265
+ moveItem: y,
2266
+ goToFirst: y,
2267
+ removeItems: y,
2268
+ removeSelectedItems: y.bound,
2269
+ removeOtherItems: y,
2270
+ removeItemsAbove: y,
2271
+ toggleRepeat: y.bound,
2272
+ toggleShuffle: y.bound,
2273
+ previous: y,
2274
+ next: y.bound
2274
2275
  });
2275
2276
  }
2276
2277
  interacted = !1;
2277
2278
  items = [];
2278
2279
  currentId;
2279
- repeat = N.Off;
2280
+ repeat = O.Off;
2280
2281
  shuffle = !1;
2281
2282
  createItem(t) {
2282
- return Le.fromDto(this.observableStateProvider, this, {
2283
+ return qe.fromDto(this.observableStateProvider, this, {
2283
2284
  url: t.url,
2284
2285
  type: t.type,
2285
2286
  videoId: t.videoId,
@@ -2296,7 +2297,7 @@ class qi {
2296
2297
  };
2297
2298
  }
2298
2299
  set localStorageState(t) {
2299
- this.repeat = t.repeat ?? N.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = t.currentIndex;
2300
+ this.repeat = t.repeat ?? O.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = t.currentIndex;
2300
2301
  }
2301
2302
  validateLocalStorageState(t) {
2302
2303
  return $i(
@@ -2434,14 +2435,14 @@ class qi {
2434
2435
  }
2435
2436
  toggleRepeat() {
2436
2437
  switch (this.repeat) {
2437
- case N.Off:
2438
- this.repeat = N.All;
2438
+ case O.Off:
2439
+ this.repeat = O.All;
2439
2440
  break;
2440
- case N.All:
2441
- this.repeat = N.One;
2441
+ case O.All:
2442
+ this.repeat = O.One;
2442
2443
  break;
2443
- case N.One:
2444
- this.repeat = N.Off;
2444
+ case O.One:
2445
+ this.repeat = O.Off;
2445
2446
  break;
2446
2447
  }
2447
2448
  }
@@ -2455,24 +2456,24 @@ class qi {
2455
2456
  this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
2456
2457
  }
2457
2458
  }
2458
- const Ea = ({
2459
+ const Ta = ({
2459
2460
  children: e
2460
2461
  }) => {
2461
2462
  const [t] = z(
2462
- () => new qi(new er())
2463
+ () => new Li(new er())
2463
2464
  ), r = le();
2464
- return Vt(() => $r(
2465
+ return Ut(() => $r(
2465
2466
  () => t.currentItem,
2466
2467
  async (i, a) => {
2467
2468
  i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await r.setCurrentTime(0);
2468
2469
  }
2469
- ), [t, r]), /* @__PURE__ */ s(dr.Provider, { value: t, children: e });
2470
- }, Li = ({
2470
+ ), [t, r]), /* @__PURE__ */ s(tr.Provider, { value: t, children: e });
2471
+ }, qi = ({
2471
2472
  breadcrumbs: e,
2472
2473
  tabs: t,
2473
2474
  ...r
2474
2475
  }) => {
2475
- const i = kn();
2476
+ const i = _n();
2476
2477
  return /* @__PURE__ */ s(
2477
2478
  dt.Header,
2478
2479
  {
@@ -2499,11 +2500,11 @@ const Ea = ({
2499
2500
  }))
2500
2501
  }
2501
2502
  );
2502
- }, Ra = () => {
2503
- const e = fr();
2504
- return /* @__PURE__ */ M(Ye, { children: [
2503
+ }, Ea = () => {
2504
+ const e = rr();
2505
+ return /* @__PURE__ */ D(Qe, { children: [
2505
2506
  /* @__PURE__ */ s(
2506
- Li,
2507
+ qi,
2507
2508
  {
2508
2509
  pageTitle: "Play queue",
2509
2510
  rightSideItems: []
@@ -2511,48 +2512,48 @@ const Ea = ({
2511
2512
  ),
2512
2513
  /* @__PURE__ */ s(dt.Section, { children: /* @__PURE__ */ s(Ni, { playQueueStore: e }) })
2513
2514
  ] });
2514
- }, Vi = C(
2515
+ }, Vi = I(
2515
2516
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2516
- W,
2517
+ Y,
2517
2518
  {
2518
2519
  title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2519
2520
  "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2520
- iconType: e.shuffle ? pn : yn,
2521
+ iconType: e.shuffle ? pn : hn,
2521
2522
  size: "s",
2522
2523
  iconSize: "l",
2523
2524
  onClick: e.toggleShuffle,
2524
2525
  disabled: !e.canToggleShuffle
2525
2526
  }
2526
2527
  )
2527
- ), Ui = C(
2528
+ ), Ui = I(
2528
2529
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2529
- W,
2530
+ Y,
2530
2531
  {
2531
2532
  title: "Previous",
2532
2533
  "aria-label": "Previous",
2533
- iconType: hn,
2534
+ iconType: yn,
2534
2535
  size: "s",
2535
2536
  iconSize: "l",
2536
2537
  onClick: e.previous,
2537
2538
  disabled: !e.canPrevious
2538
2539
  }
2539
2540
  )
2540
- ), Yi = C(
2541
+ ), Qi = I(
2541
2542
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2542
- W,
2543
+ Y,
2543
2544
  {
2544
2545
  title: "Skip back 10 seconds",
2545
2546
  "aria-label": "Skip back 10 seconds",
2546
- iconType: Kt,
2547
+ iconType: Bt,
2547
2548
  size: "s",
2548
2549
  iconSize: "l",
2549
2550
  onClick: e.skipBack10,
2550
2551
  disabled: !e.canSkipBack10
2551
2552
  }
2552
2553
  )
2553
- ), Wi = C(
2554
+ ), Yi = I(
2554
2555
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2555
- W,
2556
+ Y,
2556
2557
  {
2557
2558
  title: "Pause",
2558
2559
  "aria-label": "Pause",
@@ -2563,9 +2564,9 @@ const Ea = ({
2563
2564
  disabled: !e.canPause
2564
2565
  }
2565
2566
  )
2566
- ), Hi = C(
2567
+ ), Wi = I(
2567
2568
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2568
- W,
2569
+ Y,
2569
2570
  {
2570
2571
  title: "Play",
2571
2572
  "aria-label": "Play",
@@ -2576,22 +2577,22 @@ const Ea = ({
2576
2577
  disabled: !e.canPlay
2577
2578
  }
2578
2579
  )
2579
- ), Gi = C(
2580
+ ), Hi = I(
2580
2581
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2581
- W,
2582
+ Y,
2582
2583
  {
2583
2584
  title: "Skip forward 30 seconds",
2584
2585
  "aria-label": "Skip forward 30 seconds",
2585
- iconType: Bt,
2586
+ iconType: Kt,
2586
2587
  size: "s",
2587
2588
  iconSize: "l",
2588
2589
  onClick: e.skipForward30,
2589
2590
  disabled: !e.canSkipForward30
2590
2591
  }
2591
2592
  )
2592
- ), Ji = C(
2593
+ ), Gi = I(
2593
2594
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2594
- W,
2595
+ Y,
2595
2596
  {
2596
2597
  title: "Next",
2597
2598
  "aria-label": "Next",
@@ -2602,25 +2603,25 @@ const Ea = ({
2602
2603
  disabled: !e.canNext
2603
2604
  }
2604
2605
  )
2605
- ), Qi = {
2606
- [N.Off]: wn,
2607
- [N.All]: bn,
2608
- [N.One]: Pn
2609
- }, Ki = C(
2606
+ ), Ji = {
2607
+ [O.Off]: wn,
2608
+ [O.All]: bn,
2609
+ [O.One]: Pn
2610
+ }, Bi = I(
2610
2611
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2611
- W,
2612
+ Y,
2612
2613
  {
2613
- title: `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
2614
- "aria-label": `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
2615
- iconType: Qi[e.repeat],
2614
+ title: `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
2615
+ "aria-label": `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
2616
+ iconType: Ji[e.repeat],
2616
2617
  size: "s",
2617
2618
  iconSize: "l",
2618
2619
  onClick: e.toggleRepeat,
2619
2620
  disabled: !e.canToggleRepeat
2620
2621
  }
2621
2622
  )
2622
- ), Bi = C(
2623
- ({ bottomBarStore: e }) => /* @__PURE__ */ M(
2623
+ ), Ki = I(
2624
+ ({ bottomBarStore: e }) => /* @__PURE__ */ D(
2624
2625
  oe,
2625
2626
  {
2626
2627
  responsive: !1,
@@ -2630,11 +2631,11 @@ const Ea = ({
2630
2631
  children: [
2631
2632
  /* @__PURE__ */ s(Vi, { bottomBarStore: e }),
2632
2633
  /* @__PURE__ */ s(Ui, { bottomBarStore: e }),
2633
- /* @__PURE__ */ s(Yi, { bottomBarStore: e }),
2634
- e.playing ? /* @__PURE__ */ s(Wi, { bottomBarStore: e }) : /* @__PURE__ */ s(Hi, { bottomBarStore: e }),
2634
+ /* @__PURE__ */ s(Qi, { bottomBarStore: e }),
2635
+ e.playing ? /* @__PURE__ */ s(Yi, { bottomBarStore: e }) : /* @__PURE__ */ s(Wi, { bottomBarStore: e }),
2636
+ /* @__PURE__ */ s(Hi, { bottomBarStore: e }),
2635
2637
  /* @__PURE__ */ s(Gi, { bottomBarStore: e }),
2636
- /* @__PURE__ */ s(Ji, { bottomBarStore: e }),
2637
- /* @__PURE__ */ s(Ki, { bottomBarStore: e })
2638
+ /* @__PURE__ */ s(Bi, { bottomBarStore: e })
2638
2639
  ]
2639
2640
  }
2640
2641
  )
@@ -2647,14 +2648,14 @@ const Ea = ({
2647
2648
  items: [
2648
2649
  {
2649
2650
  name: "Open in new tab",
2650
- icon: /* @__PURE__ */ s(Y, { type: Sn }),
2651
+ icon: /* @__PURE__ */ s(Q, { type: Sn }),
2651
2652
  onClick: async () => {
2652
2653
  t(), await r.pause(), window.open(e.dto.url, "_blank");
2653
2654
  }
2654
2655
  },
2655
2656
  {
2656
2657
  name: "Copy link address",
2657
- icon: /* @__PURE__ */ s(Y, { type: "" }),
2658
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
2658
2659
  onClick: async () => {
2659
2660
  t(), await navigator.clipboard.writeText(
2660
2661
  e.dto.url
@@ -2663,7 +2664,7 @@ const Ea = ({
2663
2664
  },
2664
2665
  {
2665
2666
  name: "Copy link text",
2666
- icon: /* @__PURE__ */ s(Y, { type: "" }),
2667
+ icon: /* @__PURE__ */ s(Q, { type: "" }),
2667
2668
  onClick: async () => {
2668
2669
  t(), await navigator.clipboard.writeText(
2669
2670
  e.dto.title
@@ -2684,9 +2685,9 @@ const Ea = ({
2684
2685
  xe,
2685
2686
  {
2686
2687
  button: /* @__PURE__ */ s(
2687
- Yt,
2688
+ Qt,
2688
2689
  {
2689
- iconType: ur[e.type],
2690
+ iconType: fr[e.type],
2690
2691
  size: "s",
2691
2692
  onClick: i,
2692
2693
  children: e.title
@@ -2706,7 +2707,7 @@ const Ea = ({
2706
2707
  }
2707
2708
  );
2708
2709
  }
2709
- ), ea = C(
2710
+ ), ea = I(
2710
2711
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2711
2712
  oe,
2712
2713
  {
@@ -2717,9 +2718,9 @@ const Ea = ({
2717
2718
  children: e.currentItem && /* @__PURE__ */ s(Zi, { item: e.currentItem })
2718
2719
  }
2719
2720
  )
2720
- ), ta = C(
2721
+ ), ta = I(
2721
2722
  ({ bottomBarStore: e }) => /* @__PURE__ */ s(
2722
- W,
2723
+ Y,
2723
2724
  {
2724
2725
  title: "Mute",
2725
2726
  "aria-label": "Mute",
@@ -2729,7 +2730,7 @@ const Ea = ({
2729
2730
  disabled: !e.playerStore.controller.supports("setMuted")
2730
2731
  }
2731
2732
  )
2732
- ), ra = C(
2733
+ ), ra = I(
2733
2734
  ({
2734
2735
  bottomBarStore: e,
2735
2736
  button: t,
@@ -2755,7 +2756,7 @@ const Ea = ({
2755
2756
  isOpen: r,
2756
2757
  closePopover: i,
2757
2758
  anchorPosition: "upRight",
2758
- children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */ M(
2759
+ children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */ D(
2759
2760
  oe,
2760
2761
  {
2761
2762
  responsive: !1,
@@ -2765,7 +2766,7 @@ const Ea = ({
2765
2766
  children: [
2766
2767
  /* @__PURE__ */ s(ta, { bottomBarStore: e }),
2767
2768
  /* @__PURE__ */ s(
2768
- Jt,
2769
+ Gt,
2769
2770
  {
2770
2771
  min: 0,
2771
2772
  max: 100,
@@ -2784,7 +2785,7 @@ const Ea = ({
2784
2785
  }
2785
2786
  );
2786
2787
  }
2787
- ), na = C(
2788
+ ), na = I(
2788
2789
  ({ bottomBarStore: e }) => {
2789
2790
  const [t, r] = z(!1);
2790
2791
  return /* @__PURE__ */ s(
@@ -2792,7 +2793,7 @@ const Ea = ({
2792
2793
  {
2793
2794
  bottomBarStore: e,
2794
2795
  button: /* @__PURE__ */ s(
2795
- W,
2796
+ Y,
2796
2797
  {
2797
2798
  title: "Volume",
2798
2799
  "aria-label": "Volume",
@@ -2813,16 +2814,16 @@ const Ea = ({
2813
2814
  ), ia = ({
2814
2815
  onClickPlayQueueButton: e
2815
2816
  }) => /* @__PURE__ */ s(
2816
- W,
2817
+ Y,
2817
2818
  {
2818
2819
  title: "Play queue",
2819
2820
  "aria-label": "Play queue",
2820
- iconType: Rn,
2821
+ iconType: En,
2821
2822
  size: "s",
2822
2823
  iconSize: "l",
2823
2824
  onClick: e
2824
2825
  }
2825
- ), aa = C(
2826
+ ), aa = I(
2826
2827
  ({
2827
2828
  bottomBarStore: e,
2828
2829
  closePopover: t
@@ -2832,16 +2833,16 @@ const Ea = ({
2832
2833
  }, [e, t]), a = $(async () => {
2833
2834
  await e.skipForward30(), t();
2834
2835
  }, [e, t]), o = $(
2835
- async (w) => {
2836
- await r.setPlaybackRate(w), t();
2836
+ async (S) => {
2837
+ await r.setPlaybackRate(S), t();
2837
2838
  },
2838
2839
  [r, t]
2839
2840
  ), c = $(async () => {
2840
2841
  e.currentItem !== void 0 && await e.playQueueStore.removeItems([
2841
2842
  e.currentItem
2842
2843
  ]), t();
2843
- }, [e, t]), [f, p] = z(), m = $(async () => {
2844
- await e.playerStore.controller.getPlaybackRate().then((w) => p(w));
2844
+ }, [e, t]), [f, p] = z(), v = $(async () => {
2845
+ await e.playerStore.controller.getPlaybackRate().then((S) => p(S));
2845
2846
  }, [e]), P = Ve(
2846
2847
  () => [
2847
2848
  {
@@ -2849,22 +2850,22 @@ const Ea = ({
2849
2850
  items: [
2850
2851
  {
2851
2852
  name: "Speed",
2852
- icon: /* @__PURE__ */ s(Y, { type: En }),
2853
+ icon: /* @__PURE__ */ s(Q, { type: Tn }),
2853
2854
  panel: 1,
2854
- onClick: m,
2855
+ onClick: v,
2855
2856
  disabled: !e.playerStore.controller.supports(
2856
2857
  "getPlaybackRate"
2857
2858
  )
2858
2859
  },
2859
2860
  {
2860
2861
  name: "Skip back 10 seconds",
2861
- icon: /* @__PURE__ */ s(Y, { type: Kt }),
2862
+ icon: /* @__PURE__ */ s(Q, { type: Bt }),
2862
2863
  onClick: i,
2863
2864
  disabled: !e.canSkipBack10
2864
2865
  },
2865
2866
  {
2866
2867
  name: "Skip forward 30 seconds",
2867
- icon: /* @__PURE__ */ s(Y, { type: Bt }),
2868
+ icon: /* @__PURE__ */ s(Q, { type: Kt }),
2868
2869
  onClick: a,
2869
2870
  disabled: !e.canSkipForward30
2870
2871
  },
@@ -2873,7 +2874,7 @@ const Ea = ({
2873
2874
  },
2874
2875
  {
2875
2876
  name: "Remove from play queue",
2876
- icon: /* @__PURE__ */ s(Y, { type: ft }),
2877
+ icon: /* @__PURE__ */ s(Q, { type: ft }),
2877
2878
  onClick: c,
2878
2879
  disabled: e.playQueueStore.isEmpty
2879
2880
  }
@@ -2883,10 +2884,10 @@ const Ea = ({
2883
2884
  id: 1,
2884
2885
  title: "Speed",
2885
2886
  items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
2886
- (w) => ({
2887
- name: w.toString(),
2888
- onClick: () => o(w),
2889
- icon: w === f ? "check" : "empty",
2887
+ (S) => ({
2888
+ name: S.toString(),
2889
+ onClick: () => o(S),
2890
+ icon: S === f ? "check" : "empty",
2890
2891
  disabled: !e.playerStore.controller.supports(
2891
2892
  "setPlaybackRate"
2892
2893
  )
@@ -2896,7 +2897,7 @@ const Ea = ({
2896
2897
  ],
2897
2898
  [
2898
2899
  e,
2899
- m,
2900
+ v,
2900
2901
  i,
2901
2902
  a,
2902
2903
  c,
@@ -2937,11 +2938,11 @@ const Ea = ({
2937
2938
  {
2938
2939
  bottomBarStore: e,
2939
2940
  button: /* @__PURE__ */ s(
2940
- W,
2941
+ Y,
2941
2942
  {
2942
2943
  title: "More options",
2943
2944
  "aria-label": "More options",
2944
- iconType: Qt,
2945
+ iconType: Jt,
2945
2946
  size: "s",
2946
2947
  iconSize: "l",
2947
2948
  onClick: () => r(!t)
@@ -2956,7 +2957,7 @@ const Ea = ({
2956
2957
  ({
2957
2958
  bottomBarStore: e,
2958
2959
  onClickPlayQueueButton: t
2959
- }) => /* @__PURE__ */ M(
2960
+ }) => /* @__PURE__ */ D(
2960
2961
  oe,
2961
2962
  {
2962
2963
  responsive: !1,
@@ -2975,7 +2976,7 @@ const Ea = ({
2975
2976
  ]
2976
2977
  }
2977
2978
  )
2978
- ), ca = C(
2979
+ ), ca = I(
2979
2980
  ({ bottomBarStore: e }) => {
2980
2981
  const t = le(), r = $(
2981
2982
  (o) => {
@@ -3000,7 +3001,7 @@ const Ea = ({
3000
3001
  [e, t]
3001
3002
  );
3002
3003
  return /* @__PURE__ */ s(
3003
- Jt,
3004
+ Gt,
3004
3005
  {
3005
3006
  min: 0,
3006
3007
  max: 100,
@@ -3016,26 +3017,26 @@ const Ea = ({
3016
3017
  }
3017
3018
  );
3018
3019
  }
3019
- ), Ta = C(
3020
+ ), Ra = I(
3020
3021
  ({
3021
3022
  bottomBarStore: e,
3022
3023
  onClickPlayQueueButton: t
3023
- }) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */ M(oe, { direction: "column", gutterSize: "none", children: [
3024
- /* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(ca, { bottomBarStore: e }) }),
3025
- /* @__PURE__ */ s(J, { children: /* @__PURE__ */ M(oe, { responsive: !1, children: [
3026
- /* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3024
+ }) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */ D(oe, { direction: "column", gutterSize: "none", children: [
3025
+ /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(ca, { bottomBarStore: e }) }),
3026
+ /* @__PURE__ */ s(G, { children: /* @__PURE__ */ D(oe, { responsive: !1, children: [
3027
+ /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3027
3028
  ea,
3028
3029
  {
3029
3030
  bottomBarStore: e
3030
3031
  }
3031
3032
  ) }),
3032
- /* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3033
- Bi,
3033
+ /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3034
+ Ki,
3034
3035
  {
3035
3036
  bottomBarStore: e
3036
3037
  }
3037
3038
  ) }),
3038
- /* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3039
+ /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3039
3040
  la,
3040
3041
  {
3041
3042
  bottomBarStore: e,
@@ -3047,10 +3048,10 @@ const Ea = ({
3047
3048
  ), Ca = (e) => /* @__PURE__ */ s(Cn, { ...e }), lt = {
3048
3049
  width: 400,
3049
3050
  height: 225
3050
- }, Ia = C(
3051
+ }, Ia = I(
3051
3052
  ({ children: e }) => {
3052
- const t = fr();
3053
- return /* @__PURE__ */ M(
3053
+ const t = rr();
3054
+ return /* @__PURE__ */ D(
3054
3055
  dt,
3055
3056
  {
3056
3057
  panelled: !0,
@@ -3059,12 +3060,12 @@ const Ea = ({
3059
3060
  },
3060
3061
  children: [
3061
3062
  e,
3062
- !t.isEmpty && /* @__PURE__ */ s(Gt, { style: { blockSize: lt.height } })
3063
+ !t.isEmpty && /* @__PURE__ */ s(Ht, { style: { blockSize: lt.height } })
3063
3064
  ]
3064
3065
  }
3065
3066
  );
3066
3067
  }
3067
- ), xa = C(
3068
+ ), xa = I(
3068
3069
  ({ miniPlayerStore: e }) => {
3069
3070
  const t = Ve(
3070
3071
  () => ({
@@ -3113,14 +3114,14 @@ class ua {
3113
3114
  playing: X,
3114
3115
  percent: X,
3115
3116
  seeking: X,
3116
- setPlaying: v,
3117
- setPercent: v,
3118
- setSeeking: v,
3119
- onControllerChange: v.bound,
3120
- onPlay: v.bound,
3121
- onPause: v.bound,
3122
- onEnded: v.bound,
3123
- onTimeUpdate: v.bound
3117
+ setPlaying: y,
3118
+ setPercent: y,
3119
+ setSeeking: y,
3120
+ onControllerChange: y.bound,
3121
+ onPlay: y.bound,
3122
+ onPause: y.bound,
3123
+ onEnded: y.bound,
3124
+ onTimeUpdate: y.bound
3124
3125
  });
3125
3126
  }
3126
3127
  setPlaying(t) {
@@ -3148,27 +3149,178 @@ class ua {
3148
3149
  t !== void 0 && (this.seeking || (this.percent = t));
3149
3150
  }
3150
3151
  }
3151
- const pr = Ut(void 0), Oa = ({
3152
+ const pr = Vt(void 0), Oa = ({
3152
3153
  children: e
3153
3154
  }) => {
3154
3155
  const [t] = z(
3155
3156
  () => new ua(new er())
3156
3157
  );
3157
3158
  return /* @__PURE__ */ s(pr.Provider, { value: t, children: e });
3158
- }, _a = () => ct(pr);
3159
+ }, ka = () => ct(pr);
3160
+ class _a {
3161
+ constructor(t, r, i, a) {
3162
+ this.playerStore = r, this.playQueueStore = i, this.diva = a, t.makeObservable(this, {
3163
+ playing: w,
3164
+ currentItem: w,
3165
+ repeat: w,
3166
+ shuffle: w,
3167
+ canToggleRepeat: w,
3168
+ canToggleShuffle: w,
3169
+ canPlay: w,
3170
+ canPause: w,
3171
+ canPrevious: w,
3172
+ canNext: w,
3173
+ canSkipBack10: w,
3174
+ canSkipForward30: w,
3175
+ toggleRepeat: y.bound,
3176
+ toggleShuffle: y.bound,
3177
+ play: y.bound,
3178
+ pause: y.bound,
3179
+ previous: y.bound,
3180
+ next: y.bound,
3181
+ skipBack10: y.bound,
3182
+ skipForward30: y.bound
3183
+ });
3184
+ }
3185
+ get playing() {
3186
+ return this.playerStore.playing;
3187
+ }
3188
+ get currentItem() {
3189
+ return this.playQueueStore.currentItem;
3190
+ }
3191
+ get repeat() {
3192
+ return this.playQueueStore.repeat;
3193
+ }
3194
+ get shuffle() {
3195
+ return this.playQueueStore.shuffle;
3196
+ }
3197
+ get canToggleRepeat() {
3198
+ return !0;
3199
+ }
3200
+ get canToggleShuffle() {
3201
+ return !1;
3202
+ }
3203
+ get canPlay() {
3204
+ return this.playQueueStore.canPlay && this.playerStore.controller.supports("play");
3205
+ }
3206
+ get canPause() {
3207
+ return this.playQueueStore.canPause && this.playerStore.controller.supports("pause");
3208
+ }
3209
+ get canPrevious() {
3210
+ return !this.playQueueStore.isEmpty;
3211
+ }
3212
+ get canNext() {
3213
+ return this.playQueueStore.hasNextItem;
3214
+ }
3215
+ get canSkipBack10() {
3216
+ return !this.playQueueStore.isEmpty && this.playerStore.controller.supports("setCurrentTime");
3217
+ }
3218
+ get canSkipForward30() {
3219
+ return !this.playQueueStore.isEmpty && this.playerStore.controller.supports("setCurrentTime");
3220
+ }
3221
+ toggleRepeat() {
3222
+ this.playQueueStore.toggleRepeat();
3223
+ }
3224
+ toggleShuffle() {
3225
+ this.playQueueStore.toggleShuffle();
3226
+ }
3227
+ play() {
3228
+ return this.diva.play();
3229
+ }
3230
+ pause() {
3231
+ return this.diva.pause();
3232
+ }
3233
+ async previous() {
3234
+ if (this.playQueueStore.hasPreviousItem) {
3235
+ const t = await this.diva.getCurrentTime();
3236
+ t === void 0 || t < 5 ? await this.playQueueStore.previous() : await this.diva.setCurrentTime(0);
3237
+ } else
3238
+ await this.diva.setCurrentTime(0);
3239
+ }
3240
+ next() {
3241
+ return this.playQueueStore.next();
3242
+ }
3243
+ async skipBack10() {
3244
+ const t = await this.diva.getCurrentTime();
3245
+ t !== void 0 && await this.diva.setCurrentTime(t - 10);
3246
+ }
3247
+ async skipForward30() {
3248
+ const t = await this.diva.getCurrentTime();
3249
+ t !== void 0 && await this.diva.setCurrentTime(t + 30);
3250
+ }
3251
+ }
3252
+ class Aa {
3253
+ constructor(t, r, i, a) {
3254
+ this.playerStore = r, this.playQueueStore = i, this.diva = a, t.makeObservable(this, {
3255
+ currentItem: w,
3256
+ onLoaded: y.bound,
3257
+ onPlay: y.bound,
3258
+ onPause: y.bound,
3259
+ onEnded: y.bound,
3260
+ onTimeUpdate: y.bound,
3261
+ onControllerChange: y.bound
3262
+ });
3263
+ }
3264
+ get currentItem() {
3265
+ return this.playQueueStore.currentItem;
3266
+ }
3267
+ async onLoaded() {
3268
+ this.playQueueStore.interacted && await this.diva.play();
3269
+ }
3270
+ onPlay() {
3271
+ this.playerStore.onPlay();
3272
+ }
3273
+ onPause() {
3274
+ this.playerStore.onPause();
3275
+ }
3276
+ async onEnded() {
3277
+ switch (this.playQueueStore.repeat) {
3278
+ case O.One:
3279
+ await this.diva.setCurrentTime(0);
3280
+ break;
3281
+ case O.Off:
3282
+ case O.All:
3283
+ if (this.playQueueStore.isLastItem)
3284
+ switch (this.playQueueStore.repeat) {
3285
+ case O.Off:
3286
+ this.playerStore.onEnded();
3287
+ break;
3288
+ case O.All:
3289
+ this.playQueueStore.hasMultipleItems ? await this.playQueueStore.goToFirst() : await this.diva.setCurrentTime(0);
3290
+ break;
3291
+ }
3292
+ else
3293
+ await this.playQueueStore.next();
3294
+ break;
3295
+ }
3296
+ }
3297
+ onTimeUpdate(t) {
3298
+ this.playerStore.onTimeUpdate(t);
3299
+ }
3300
+ onControllerChange(t) {
3301
+ this.playerStore.onControllerChange(t);
3302
+ }
3303
+ }
3159
3304
  export {
3160
- Ta as BottomBar,
3305
+ Ra as BottomBar,
3306
+ _a as BottomBarStore,
3161
3307
  Ca as HydrangeanDivaProvider,
3162
3308
  Ia as MediaPlayerLayout,
3163
3309
  xa as MiniPlayer,
3310
+ Aa as MiniPlayerStore,
3164
3311
  er as MobXObservableStateProvider,
3165
3312
  Sa as ObservableStateProvider,
3166
3313
  Ni as PlayQueue,
3167
- Ra as PlayQueuePage,
3168
- Ea as PlayQueueStoreProvider,
3314
+ qe as PlayQueueItemStore,
3315
+ Ea as PlayQueuePage,
3316
+ Li as PlayQueueStore,
3317
+ tr as PlayQueueStoreContext,
3318
+ Ta as PlayQueueStoreProvider,
3319
+ ua as PlayerStore,
3169
3320
  Oa as PlayerStoreProvider,
3170
- N as RepeatMode,
3321
+ O as RepeatMode,
3171
3322
  Zt as bottomBarHeight,
3172
- _a as usePlayerStore
3323
+ rr as usePlayQueueStore,
3324
+ ka as usePlayerStore
3173
3325
  };
3174
3326
  //# sourceMappingURL=index.es.js.map