@aigamo/hydrangean-diva 0.0.1-alpha.17 → 0.0.1-alpha.19

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,75 +1,54 @@
1
- var wr = Object.defineProperty;
2
- var Or = (t, e, n) => e in t ? wr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var B = (t, e, n) => Or(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { makeObservable as _r, action as y, computed as A, observable as Z, reaction as Ar } from "mobx";
5
- import * as te from "react";
6
- import zt, { forwardRef as kr, useContext as at, memo as me, useState as q, useCallback as D, useMemo as st, createContext as Lt, useEffect as Mr, useLayoutEffect as Fr } from "react";
7
- import jr from "@emotion/cache";
8
- import { useNostalgicDiva as ne, findVideoService as Nr, NostalgicDivaProvider as $r, NostalgicDiva as Dr, nullPlayerController as zr } from "@aigamo/nostalgic-diva";
9
- import { EuiButton as re, useGeneratedHtmlId as Lr, EuiModalHeaderTitle as Vr, EuiModalHeader as Yr, EuiForm as Br, EuiFormRow as tt, EuiFieldText as Rt, EuiModalBody as Wr, EuiModalFooter as Ur, EuiButtonEmpty as Vt, EuiModal as qr, useEuiTheme as Yt, EuiCheckbox as Bt, EuiTableHeaderCellCheckbox as Hr, EuiTableHeader as Gr, EuiTableRowCell as rt, EuiTableRowCellCheckbox as Jr, EuiLink as Kr, EuiTableRow as Xr, EuiTable as Zr, EuiButtonIcon as G, EuiPopover as lt, EuiIcon as H, EuiContextMenu as Wt, EuiTableHeaderCell as Xe, EuiCodeBlock as Qr, EuiFlyout as en, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Ut, EuiEmptyPrompt as tn, EuiPageTemplate as ct, EuiRange as qt, EuiBottomBar as rn } from "@elastic/eui";
10
- import { AddRegular as ut, PlayRegular as nn, DismissRegular as dt, MoreHorizontalFilled as Ht, ArrowUploadRegular as on, ArrowDownloadRegular as an, WindowDevToolsRegular as sn, DeleteRegular as ln, ArrowRepeat1Filled as cn, ArrowRepeatAllFilled as un, ArrowRepeatAllOffFilled as dn, ArrowShuffleFilled as fn, ArrowShuffleOffFilled as mn, PreviousFilled as hn, PauseFilled as vn, PlayFilled as pn, NextFilled as yn, Speaker2Regular as Gt, TopSpeedRegular as gn, SkipBack10Regular as bn, SkipForward30Regular as En, NavigationPlayRegular as Tn } from "@fluentui/react-icons";
11
- import { observer as N } from "mobx-react-lite";
12
- import { ReactSortable as Cn } from "react-sortablejs";
1
+ import { makeObservable as Pr, action as y, computed as A, observable as X, reaction as Rr } from "mobx";
2
+ import * as ee from "react";
3
+ import Dt, { forwardRef as wr, useContext as at, memo as ne, useState as W, useCallback as N, useMemo as De, createContext as zt, useEffect as Or, useLayoutEffect as _r } from "react";
4
+ import Ar from "@emotion/cache";
5
+ import { useNostalgicDiva as re, findVideoService as kr, NostalgicDivaProvider as Mr, NostalgicDiva as Fr, nullPlayerController as jr } from "@aigamo/nostalgic-diva";
6
+ import { EuiButton as te, useGeneratedHtmlId as Nr, EuiModalHeaderTitle as $r, EuiModalHeader as Dr, EuiForm as zr, EuiFormRow as rt, EuiFieldText as St, EuiModalBody as Lr, EuiModalFooter as Vr, EuiButtonEmpty as Lt, EuiModal as Yr, useEuiTheme as Vt, EuiCheckbox as Yt, EuiTableHeaderCellCheckbox as Br, EuiTableHeader as Wr, EuiTableRowCell as nt, EuiTableRowCellCheckbox as Ur, EuiLink as qr, EuiTableRow as Hr, EuiTable as Gr, EuiButtonIcon as H, EuiPopover as ze, EuiIcon as B, EuiContextMenu as st, EuiTableHeaderCell as Ze, EuiCodeBlock as Jr, EuiFlyout as Kr, EuiFlexGroup as se, EuiFlexItem as G, EuiSpacer as Bt, EuiEmptyPrompt as Xr, EuiPageTemplate as lt, EuiRange as Wt, EuiBottomBar as Zr } from "@elastic/eui";
7
+ import { AddRegular as ct, PlayRegular as Qr, DismissRegular as ut, MoreHorizontalFilled as Ut, ArrowUploadRegular as en, ArrowDownloadRegular as tn, WindowDevToolsRegular as rn, DeleteRegular as nn, ArrowRepeat1Filled as on, ArrowRepeatAllFilled as an, ArrowRepeatAllOffFilled as sn, ArrowShuffleFilled as ln, ArrowShuffleOffFilled as cn, PreviousFilled as un, PauseFilled as dn, PlayFilled as fn, NextFilled as mn, OpenRegular as hn, Speaker2Regular as qt, TopSpeedRegular as vn, SkipBack10Regular as pn, SkipForward30Regular as yn, NavigationPlayRegular as gn } from "@fluentui/react-icons";
8
+ import { observer as $ } from "mobx-react-lite";
9
+ import { ReactSortable as bn } from "react-sortablejs";
13
10
  import { pull as Pt } from "lodash-es";
14
- import xn from "ajv";
15
- import { useRouter as In } from "@tanstack/react-router";
16
- const Jt = 81;
17
- class Kt {
11
+ import En from "ajv";
12
+ import { useRouter as Tn } from "@tanstack/react-router";
13
+ const Ht = 81;
14
+ class Gt {
18
15
  makeObservable(e, n) {
19
- return _r(e, n);
16
+ return Pr(e, n);
20
17
  }
21
18
  }
22
- class Ni {
19
+ class Fi {
23
20
  makeObservable(e, n) {
24
21
  return e;
25
22
  }
26
23
  }
27
- var $e = { exports: {} }, Ce = {};
28
- /**
29
- * @license React
30
- * react-jsx-runtime.production.min.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */
37
- var wt;
38
- function Sn() {
39
- if (wt) return Ce;
40
- wt = 1;
41
- var t = zt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
24
+ var je = { exports: {} }, Te = {};
25
+ var Rt;
26
+ function Cn() {
27
+ if (Rt) return Te;
28
+ Rt = 1;
29
+ var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
42
30
  function d(h, m, p) {
43
- var E, R = {}, I = null, $ = null;
44
- p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && ($ = m.ref);
45
- for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (R[E] = m[E]);
46
- if (h && h.defaultProps) for (E in m = h.defaultProps, m) R[E] === void 0 && (R[E] = m[E]);
47
- return { $$typeof: e, type: h, key: I, ref: $, props: R, _owner: a.current };
31
+ var E, P = {}, I = null, D = null;
32
+ p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && (D = m.ref);
33
+ for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (P[E] = m[E]);
34
+ if (h && h.defaultProps) for (E in m = h.defaultProps, m) P[E] === void 0 && (P[E] = m[E]);
35
+ return { $$typeof: e, type: h, key: I, ref: D, props: P, _owner: a.current };
48
36
  }
49
- return Ce.Fragment = n, Ce.jsx = d, Ce.jsxs = d, Ce;
37
+ return Te.Fragment = n, Te.jsx = d, Te.jsxs = d, Te;
50
38
  }
51
- var xe = {};
52
- /**
53
- * @license React
54
- * react-jsx-runtime.development.js
55
- *
56
- * Copyright (c) Facebook, Inc. and its affiliates.
57
- *
58
- * This source code is licensed under the MIT license found in the
59
- * LICENSE file in the root directory of this source tree.
60
- */
61
- var Ot;
62
- function Rn() {
63
- return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
64
- var t = zt, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), k = Symbol.iterator, W = "@@iterator";
65
- function Q(r) {
39
+ var Ce = {};
40
+ var wt;
41
+ function xn() {
42
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
43
+ var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), k = Symbol.iterator, U = "@@iterator";
44
+ function Z(r) {
66
45
  if (r === null || typeof r != "object")
67
46
  return null;
68
- var s = k && r[k] || r[W];
47
+ var s = k && r[k] || r[U];
69
48
  return typeof s == "function" ? s : null;
70
49
  }
71
50
  var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
72
- function P(r) {
51
+ function R(r) {
73
52
  {
74
53
  for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
75
54
  u[v - 1] = arguments[v];
@@ -86,29 +65,29 @@ function Rn() {
86
65
  S.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, S);
87
66
  }
88
67
  }
89
- var O = !1, c = !1, V = !1, he = !1, Pe = !1, we;
90
- we = Symbol.for("react.module.reference");
91
- function Ve(r) {
92
- return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r === p || r === E || he || r === $ || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === R || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
68
+ var O = !1, c = !1, V = !1, me = !1, Se = !1, Pe;
69
+ Pe = Symbol.for("react.module.reference");
70
+ function Ye(r) {
71
+ return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === E || me || r === D || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === P || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
93
72
  // types supported by any Flight configuration anywhere since
94
73
  // we don't know which Flight build this will end up being used
95
74
  // with.
96
- r.$$typeof === we || r.getModuleId !== void 0));
75
+ r.$$typeof === Pe || r.getModuleId !== void 0));
97
76
  }
98
- function Ye(r, s, u) {
77
+ function Be(r, s, u) {
99
78
  var v = r.displayName;
100
79
  if (v)
101
80
  return v;
102
81
  var T = s.displayName || s.name || "";
103
82
  return T !== "" ? u + "(" + T + ")" : u;
104
83
  }
105
- function Oe(r) {
84
+ function Re(r) {
106
85
  return r.displayName || "Context";
107
86
  }
108
- function K(r) {
87
+ function J(r) {
109
88
  if (r == null)
110
89
  return null;
111
- if (typeof r.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
90
+ if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
112
91
  return r.displayName || r.name || null;
113
92
  if (typeof r == "string")
114
93
  return r;
@@ -130,19 +109,19 @@ function Rn() {
130
109
  switch (r.$$typeof) {
131
110
  case h:
132
111
  var s = r;
133
- return Oe(s) + ".Consumer";
112
+ return Re(s) + ".Consumer";
134
113
  case d:
135
114
  var u = r;
136
- return Oe(u._context) + ".Provider";
115
+ return Re(u._context) + ".Provider";
137
116
  case m:
138
- return Ye(r, r.render, "ForwardRef");
139
- case R:
117
+ return Be(r, r.render, "ForwardRef");
118
+ case P:
140
119
  var v = r.displayName || null;
141
- return v !== null ? v : K(r.type) || "Memo";
120
+ return v !== null ? v : J(r.type) || "Memo";
142
121
  case I: {
143
122
  var T = r, S = T._payload, b = T._init;
144
123
  try {
145
- return K(b(S));
124
+ return J(b(S));
146
125
  } catch {
147
126
  return null;
148
127
  }
@@ -150,18 +129,18 @@ function Rn() {
150
129
  }
151
130
  return null;
152
131
  }
153
- var ee = Object.assign, ie = 0, _e, Ae, ve, ke, pe, Me, Fe;
154
- function je() {
132
+ var Q = Object.assign, ie = 0, we, Oe, he, _e, ve, Ae, ke;
133
+ function Me() {
155
134
  }
156
- je.__reactDisabledLog = !0;
157
- function Be() {
135
+ Me.__reactDisabledLog = !0;
136
+ function We() {
158
137
  {
159
138
  if (ie === 0) {
160
- _e = console.log, Ae = console.info, ve = console.warn, ke = console.error, pe = console.group, Me = console.groupCollapsed, Fe = console.groupEnd;
139
+ we = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group, Ae = console.groupCollapsed, ke = console.groupEnd;
161
140
  var r = {
162
141
  configurable: !0,
163
142
  enumerable: !0,
164
- value: je,
143
+ value: Me,
165
144
  writable: !0
166
145
  };
167
146
  Object.defineProperties(console, {
@@ -177,7 +156,7 @@ function Rn() {
177
156
  ie++;
178
157
  }
179
158
  }
180
- function We() {
159
+ function Ue() {
181
160
  {
182
161
  if (ie--, ie === 0) {
183
162
  var r = {
@@ -186,53 +165,53 @@ function Rn() {
186
165
  writable: !0
187
166
  };
188
167
  Object.defineProperties(console, {
189
- log: ee({}, r, {
190
- value: _e
168
+ log: Q({}, r, {
169
+ value: we
191
170
  }),
192
- info: ee({}, r, {
193
- value: Ae
171
+ info: Q({}, r, {
172
+ value: Oe
194
173
  }),
195
- warn: ee({}, r, {
196
- value: ve
174
+ warn: Q({}, r, {
175
+ value: he
197
176
  }),
198
- error: ee({}, r, {
199
- value: ke
177
+ error: Q({}, r, {
178
+ value: _e
200
179
  }),
201
- group: ee({}, r, {
202
- value: pe
180
+ group: Q({}, r, {
181
+ value: ve
203
182
  }),
204
- groupCollapsed: ee({}, r, {
205
- value: Me
183
+ groupCollapsed: Q({}, r, {
184
+ value: Ae
206
185
  }),
207
- groupEnd: ee({}, r, {
208
- value: Fe
186
+ groupEnd: Q({}, r, {
187
+ value: ke
209
188
  })
210
189
  });
211
190
  }
212
- ie < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ ie < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
213
192
  }
214
193
  }
215
- var ye = L.ReactCurrentDispatcher, ge;
194
+ var pe = L.ReactCurrentDispatcher, ye;
216
195
  function le(r, s, u) {
217
196
  {
218
- if (ge === void 0)
197
+ if (ye === void 0)
219
198
  try {
220
199
  throw Error();
221
200
  } catch (T) {
222
201
  var v = T.stack.trim().match(/\n( *(at )?)/);
223
- ge = v && v[1] || "";
202
+ ye = v && v[1] || "";
224
203
  }
225
204
  return `
226
- ` + ge + r;
205
+ ` + ye + r;
227
206
  }
228
207
  }
229
- var be = !1, ce;
208
+ var ge = !1, ce;
230
209
  {
231
- var Ue = typeof WeakMap == "function" ? WeakMap : Map;
232
- ce = new Ue();
210
+ var qe = typeof WeakMap == "function" ? WeakMap : Map;
211
+ ce = new qe();
233
212
  }
234
213
  function f(r, s) {
235
- if (!r || be)
214
+ if (!r || ge)
236
215
  return "";
237
216
  {
238
217
  var u = ce.get(r);
@@ -240,11 +219,11 @@ function Rn() {
240
219
  return u;
241
220
  }
242
221
  var v;
243
- be = !0;
222
+ ge = !0;
244
223
  var T = Error.prepareStackTrace;
245
224
  Error.prepareStackTrace = void 0;
246
225
  var S;
247
- S = ye.current, ye.current = null, Be();
226
+ S = pe.current, pe.current = null, We();
248
227
  try {
249
228
  if (s) {
250
229
  var b = function() {
@@ -288,21 +267,21 @@ function Rn() {
288
267
  if (_ !== 1 || F !== 1)
289
268
  do
290
269
  if (_--, F--, F < 0 || g[_] !== z[F]) {
291
- var U = `
270
+ var q = `
292
271
  ` + g[_].replace(" at new ", " at ");
293
- return r.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, U), U;
272
+ return r.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, q), q;
294
273
  }
295
274
  while (_ >= 1 && F >= 0);
296
275
  break;
297
276
  }
298
277
  }
299
278
  } finally {
300
- be = !1, ye.current = S, We(), Error.prepareStackTrace = T;
279
+ ge = !1, pe.current = S, Ue(), Error.prepareStackTrace = T;
301
280
  }
302
281
  var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
303
282
  return typeof r == "function" && ce.set(r, ae), ae;
304
283
  }
305
- function Ee(r, s, u) {
284
+ function be(r, s, u) {
306
285
  return f(r, !1);
307
286
  }
308
287
  function ue(r) {
@@ -325,8 +304,8 @@ function Rn() {
325
304
  if (typeof r == "object")
326
305
  switch (r.$$typeof) {
327
306
  case m:
328
- return Ee(r.render);
329
- case R:
307
+ return be(r.render);
308
+ case P:
330
309
  return oe(r.type, s, u);
331
310
  case I: {
332
311
  var v = r, T = v._payload, S = v._init;
@@ -338,17 +317,17 @@ function Rn() {
338
317
  }
339
318
  return "";
340
319
  }
341
- var Te = Object.prototype.hasOwnProperty, ft = {}, mt = L.ReactDebugCurrentFrame;
342
- function Ne(r) {
320
+ var Ee = Object.prototype.hasOwnProperty, dt = {}, ft = L.ReactDebugCurrentFrame;
321
+ function Fe(r) {
343
322
  if (r) {
344
323
  var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
345
- mt.setExtraStackFrame(u);
324
+ ft.setExtraStackFrame(u);
346
325
  } else
347
- mt.setExtraStackFrame(null);
326
+ ft.setExtraStackFrame(null);
348
327
  }
349
- function ar(r, s, u, v, T) {
328
+ function ir(r, s, u, v, T) {
350
329
  {
351
- var S = Function.call.bind(Te);
330
+ var S = Function.call.bind(Ee);
352
331
  for (var b in r)
353
332
  if (S(r, b)) {
354
333
  var g = void 0;
@@ -361,63 +340,63 @@ function Rn() {
361
340
  } catch (_) {
362
341
  g = _;
363
342
  }
364
- g && !(g instanceof Error) && (Ne(T), P("%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).", v || "React class", u, b, typeof g), Ne(null)), g instanceof Error && !(g.message in ft) && (ft[g.message] = !0, Ne(T), P("Failed %s type: %s", u, g.message), Ne(null));
343
+ g && !(g instanceof Error) && (Fe(T), R("%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).", v || "React class", u, b, typeof g), Fe(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Fe(T), R("Failed %s type: %s", u, g.message), Fe(null));
365
344
  }
366
345
  }
367
346
  }
368
- var sr = Array.isArray;
369
- function qe(r) {
370
- return sr(r);
347
+ var or = Array.isArray;
348
+ function He(r) {
349
+ return or(r);
371
350
  }
372
- function lr(r) {
351
+ function ar(r) {
373
352
  {
374
353
  var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
375
354
  return u;
376
355
  }
377
356
  }
378
- function cr(r) {
357
+ function sr(r) {
379
358
  try {
380
- return ht(r), !1;
359
+ return mt(r), !1;
381
360
  } catch {
382
361
  return !0;
383
362
  }
384
363
  }
385
- function ht(r) {
364
+ function mt(r) {
386
365
  return "" + r;
387
366
  }
388
- function vt(r) {
389
- if (cr(r))
390
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(r)), ht(r);
367
+ function ht(r) {
368
+ if (sr(r))
369
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(r)), mt(r);
391
370
  }
392
- var pt = L.ReactCurrentOwner, ur = {
371
+ var vt = L.ReactCurrentOwner, lr = {
393
372
  key: !0,
394
373
  ref: !0,
395
374
  __self: !0,
396
375
  __source: !0
397
- }, yt, gt;
398
- function dr(r) {
399
- if (Te.call(r, "ref")) {
376
+ }, pt, yt;
377
+ function cr(r) {
378
+ if (Ee.call(r, "ref")) {
400
379
  var s = Object.getOwnPropertyDescriptor(r, "ref").get;
401
380
  if (s && s.isReactWarning)
402
381
  return !1;
403
382
  }
404
383
  return r.ref !== void 0;
405
384
  }
406
- function fr(r) {
407
- if (Te.call(r, "key")) {
385
+ function ur(r) {
386
+ if (Ee.call(r, "key")) {
408
387
  var s = Object.getOwnPropertyDescriptor(r, "key").get;
409
388
  if (s && s.isReactWarning)
410
389
  return !1;
411
390
  }
412
391
  return r.key !== void 0;
413
392
  }
414
- function mr(r, s) {
415
- typeof r.ref == "string" && pt.current;
393
+ function dr(r, s) {
394
+ typeof r.ref == "string" && vt.current;
416
395
  }
417
- function hr(r, s) {
396
+ function fr(r, s) {
418
397
  {
419
398
  var u = function() {
420
- yt || (yt = !0, P("%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)", s));
399
+ pt || (pt = !0, R("%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)", s));
421
400
  };
422
401
  u.isReactWarning = !0, Object.defineProperty(r, "key", {
423
402
  get: u,
@@ -425,10 +404,10 @@ function Rn() {
425
404
  });
426
405
  }
427
406
  }
428
- function vr(r, s) {
407
+ function mr(r, s) {
429
408
  {
430
409
  var u = function() {
431
- gt || (gt = !0, P("%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)", s));
410
+ yt || (yt = !0, R("%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)", s));
432
411
  };
433
412
  u.isReactWarning = !0, Object.defineProperty(r, "ref", {
434
413
  get: u,
@@ -436,7 +415,7 @@ function Rn() {
436
415
  });
437
416
  }
438
417
  }
439
- var pr = function(r, s, u, v, T, S, b) {
418
+ var hr = function(r, s, u, v, T, S, b) {
440
419
  var g = {
441
420
  // This tag allows us to uniquely identify this as a React Element
442
421
  $$typeof: e,
@@ -465,12 +444,12 @@ function Rn() {
465
444
  value: T
466
445
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
467
446
  };
468
- function yr(r, s, u, v, T) {
447
+ function vr(r, s, u, v, T) {
469
448
  {
470
449
  var S, b = {}, g = null, z = null;
471
- u !== void 0 && (vt(u), g = "" + u), fr(s) && (vt(s.key), g = "" + s.key), dr(s) && (z = s.ref, mr(s, T));
450
+ u !== void 0 && (ht(u), g = "" + u), ur(s) && (ht(s.key), g = "" + s.key), cr(s) && (z = s.ref, dr(s, T));
472
451
  for (S in s)
473
- Te.call(s, S) && !ur.hasOwnProperty(S) && (b[S] = s[S]);
452
+ Ee.call(s, S) && !lr.hasOwnProperty(S) && (b[S] = s[S]);
474
453
  if (r && r.defaultProps) {
475
454
  var _ = r.defaultProps;
476
455
  for (S in _)
@@ -478,28 +457,28 @@ function Rn() {
478
457
  }
479
458
  if (g || z) {
480
459
  var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
481
- g && hr(b, F), z && vr(b, F);
460
+ g && fr(b, F), z && mr(b, F);
482
461
  }
483
- return pr(r, g, z, T, v, pt.current, b);
462
+ return hr(r, g, z, T, v, vt.current, b);
484
463
  }
485
464
  }
486
- var He = L.ReactCurrentOwner, bt = L.ReactDebugCurrentFrame;
465
+ var Ge = L.ReactCurrentOwner, gt = L.ReactDebugCurrentFrame;
487
466
  function de(r) {
488
467
  if (r) {
489
468
  var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
490
- bt.setExtraStackFrame(u);
469
+ gt.setExtraStackFrame(u);
491
470
  } else
492
- bt.setExtraStackFrame(null);
471
+ gt.setExtraStackFrame(null);
493
472
  }
494
- var Ge;
495
- Ge = !1;
496
- function Je(r) {
473
+ var Je;
474
+ Je = !1;
475
+ function Ke(r) {
497
476
  return typeof r == "object" && r !== null && r.$$typeof === e;
498
477
  }
499
- function Et() {
478
+ function bt() {
500
479
  {
501
- if (He.current) {
502
- var r = K(He.current.type);
480
+ if (Ge.current) {
481
+ var r = J(Ge.current.type);
503
482
  if (r)
504
483
  return `
505
484
 
@@ -508,13 +487,13 @@ Check the render method of \`` + r + "`.";
508
487
  return "";
509
488
  }
510
489
  }
511
- function gr(r) {
490
+ function pr(r) {
512
491
  return "";
513
492
  }
514
- var Tt = {};
515
- function br(r) {
493
+ var Et = {};
494
+ function yr(r) {
516
495
  {
517
- var s = Et();
496
+ var s = bt();
518
497
  if (!s) {
519
498
  var u = typeof r == "string" ? r : r.displayName || r.name;
520
499
  u && (s = `
@@ -524,39 +503,39 @@ Check the top-level render call using <` + u + ">.");
524
503
  return s;
525
504
  }
526
505
  }
527
- function Ct(r, s) {
506
+ function Tt(r, s) {
528
507
  {
529
508
  if (!r._store || r._store.validated || r.key != null)
530
509
  return;
531
510
  r._store.validated = !0;
532
- var u = br(s);
533
- if (Tt[u])
511
+ var u = yr(s);
512
+ if (Et[u])
534
513
  return;
535
- Tt[u] = !0;
514
+ Et[u] = !0;
536
515
  var v = "";
537
- r && r._owner && r._owner !== He.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
516
+ r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + J(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
538
517
  }
539
518
  }
540
- function xt(r, s) {
519
+ function Ct(r, s) {
541
520
  {
542
521
  if (typeof r != "object")
543
522
  return;
544
- if (qe(r))
523
+ if (He(r))
545
524
  for (var u = 0; u < r.length; u++) {
546
525
  var v = r[u];
547
- Je(v) && Ct(v, s);
526
+ Ke(v) && Tt(v, s);
548
527
  }
549
- else if (Je(r))
528
+ else if (Ke(r))
550
529
  r._store && (r._store.validated = !0);
551
530
  else if (r) {
552
- var T = Q(r);
531
+ var T = Z(r);
553
532
  if (typeof T == "function" && T !== r.entries)
554
533
  for (var S = T.call(r), b; !(b = S.next()).done; )
555
- Je(b.value) && Ct(b.value, s);
534
+ Ke(b.value) && Tt(b.value, s);
556
535
  }
557
536
  }
558
537
  }
559
- function Er(r) {
538
+ function gr(r) {
560
539
  {
561
540
  var s = r.type;
562
541
  if (s == null || typeof s == "string")
@@ -566,106 +545,98 @@ Check the top-level render call using <` + u + ">.");
566
545
  u = s.propTypes;
567
546
  else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
568
547
  // Inner props are checked in the reconciler.
569
- s.$$typeof === R))
548
+ s.$$typeof === P))
570
549
  u = s.propTypes;
571
550
  else
572
551
  return;
573
552
  if (u) {
574
- var v = K(s);
575
- ar(u, r.props, "prop", v, r);
576
- } else if (s.PropTypes !== void 0 && !Ge) {
577
- Ge = !0;
578
- var T = K(s);
579
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
553
+ var v = J(s);
554
+ ir(u, r.props, "prop", v, r);
555
+ } else if (s.PropTypes !== void 0 && !Je) {
556
+ Je = !0;
557
+ var T = J(s);
558
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
580
559
  }
581
- typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
582
561
  }
583
562
  }
584
- function Tr(r) {
563
+ function br(r) {
585
564
  {
586
565
  for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
587
566
  var v = s[u];
588
567
  if (v !== "children" && v !== "key") {
589
- de(r), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
568
+ de(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
590
569
  break;
591
570
  }
592
571
  }
593
- r.ref !== null && (de(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
572
+ r.ref !== null && (de(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
594
573
  }
595
574
  }
596
- var It = {};
597
- function St(r, s, u, v, T, S) {
575
+ var xt = {};
576
+ function It(r, s, u, v, T, S) {
598
577
  {
599
- var b = Ve(r);
578
+ var b = Ye(r);
600
579
  if (!b) {
601
580
  var g = "";
602
581
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).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.");
603
- var z = gr();
604
- z ? g += z : g += Et();
582
+ var z = pr();
583
+ z ? g += z : g += bt();
605
584
  var _;
606
- r === null ? _ = "null" : qe(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
585
+ r === null ? _ = "null" : He(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (J(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
607
586
  }
608
- var F = yr(r, s, u, T, S);
587
+ var F = vr(r, s, u, T, S);
609
588
  if (F == null)
610
589
  return F;
611
590
  if (b) {
612
- var U = s.children;
613
- if (U !== void 0)
591
+ var q = s.children;
592
+ if (q !== void 0)
614
593
  if (v)
615
- if (qe(U)) {
616
- for (var fe = 0; fe < U.length; fe++)
617
- xt(U[fe], r);
618
- Object.freeze && Object.freeze(U);
594
+ if (He(q)) {
595
+ for (var fe = 0; fe < q.length; fe++)
596
+ Ct(q[fe], r);
597
+ Object.freeze && Object.freeze(q);
619
598
  } else
620
- P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
621
600
  else
622
- xt(U, r);
601
+ Ct(q, r);
623
602
  }
624
- if (Te.call(s, "key")) {
625
- var ae = K(r), Y = Object.keys(s).filter(function(Pr) {
626
- return Pr !== "key";
627
- }), Ke = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
628
- if (!It[ae + Ke]) {
629
- var Rr = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
630
- P(`A props object containing a "key" prop is being spread into JSX:
603
+ if (Ee.call(s, "key")) {
604
+ var ae = J(r), Y = Object.keys(s).filter(function(Sr) {
605
+ return Sr !== "key";
606
+ }), Xe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!xt[ae + Xe]) {
608
+ var Ir = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
609
+ R(`A props object containing a "key" prop is being spread into JSX:
631
610
  let props = %s;
632
611
  <%s {...props} />
633
612
  React keys must be passed directly to JSX without using spread:
634
613
  let props = %s;
635
- <%s key={someKey} {...props} />`, Ke, ae, Rr, ae), It[ae + Ke] = !0;
614
+ <%s key={someKey} {...props} />`, Xe, ae, Ir, ae), xt[ae + Xe] = !0;
636
615
  }
637
616
  }
638
- return r === i ? Tr(F) : Er(F), F;
617
+ return r === i ? br(F) : gr(F), F;
639
618
  }
640
619
  }
641
- function Cr(r, s, u) {
642
- return St(r, s, u, !0);
620
+ function Er(r, s, u) {
621
+ return It(r, s, u, !0);
643
622
  }
644
- function xr(r, s, u) {
645
- return St(r, s, u, !1);
623
+ function Tr(r, s, u) {
624
+ return It(r, s, u, !1);
646
625
  }
647
- var Ir = xr, Sr = Cr;
648
- xe.Fragment = i, xe.jsx = Ir, xe.jsxs = Sr;
649
- })()), xe;
626
+ var Cr = Tr, xr = Er;
627
+ Ce.Fragment = i, Ce.jsx = Cr, Ce.jsxs = xr;
628
+ })()), Ce;
650
629
  }
651
- var _t;
652
- function Pn() {
653
- return _t || (_t = 1, process.env.NODE_ENV === "production" ? $e.exports = Sn() : $e.exports = Rn()), $e.exports;
630
+ var Ot;
631
+ function In() {
632
+ return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? je.exports = Cn() : je.exports = xn()), je.exports;
654
633
  }
655
- var Se = Pn(), De = { exports: {} }, C = {};
656
- /** @license React v16.13.1
657
- * react-is.production.min.js
658
- *
659
- * Copyright (c) Facebook, Inc. and its affiliates.
660
- *
661
- * This source code is licensed under the MIT license found in the
662
- * LICENSE file in the root directory of this source tree.
663
- */
664
- var At;
665
- function wn() {
666
- if (At) return C;
667
- At = 1;
668
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
634
+ var xe = In(), Ne = { exports: {} }, C = {};
635
+ var _t;
636
+ function Sn() {
637
+ if (_t) return C;
638
+ _t = 1;
639
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, D = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, U = t ? Symbol.for("react.block") : 60121, Z = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
669
640
  function M(c) {
670
641
  if (typeof c == "object" && c !== null) {
671
642
  var V = c.$$typeof;
@@ -677,14 +648,14 @@ function wn() {
677
648
  case i:
678
649
  case l:
679
650
  case a:
680
- case R:
651
+ case P:
681
652
  return c;
682
653
  default:
683
654
  switch (c = c && c.$$typeof, c) {
684
655
  case h:
685
656
  case E:
686
657
  case k:
687
- case $:
658
+ case D:
688
659
  case d:
689
660
  return c;
690
661
  default:
@@ -699,7 +670,7 @@ function wn() {
699
670
  function O(c) {
700
671
  return M(c) === p;
701
672
  }
702
- return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = e, C.ForwardRef = E, C.Fragment = i, C.Lazy = k, C.Memo = $, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = R, C.isAsyncMode = function(c) {
673
+ return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = e, C.ForwardRef = E, C.Fragment = i, C.Lazy = k, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = P, C.isAsyncMode = function(c) {
703
674
  return O(c) || M(c) === m;
704
675
  }, C.isConcurrentMode = O, C.isContextConsumer = function(c) {
705
676
  return M(c) === h;
@@ -714,7 +685,7 @@ function wn() {
714
685
  }, C.isLazy = function(c) {
715
686
  return M(c) === k;
716
687
  }, C.isMemo = function(c) {
717
- return M(c) === $;
688
+ return M(c) === D;
718
689
  }, C.isPortal = function(c) {
719
690
  return M(c) === n;
720
691
  }, C.isProfiler = function(c) {
@@ -722,32 +693,24 @@ function wn() {
722
693
  }, C.isStrictMode = function(c) {
723
694
  return M(c) === a;
724
695
  }, C.isSuspense = function(c) {
725
- return M(c) === R;
696
+ return M(c) === P;
726
697
  }, C.isValidElementType = function(c) {
727
- return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === R || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === $ || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Q || c.$$typeof === L || c.$$typeof === P || c.$$typeof === W);
698
+ return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === P || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === D || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Z || c.$$typeof === L || c.$$typeof === R || c.$$typeof === U);
728
699
  }, C.typeOf = M, C;
729
700
  }
730
701
  var x = {};
731
- /** @license React v16.13.1
732
- * react-is.development.js
733
- *
734
- * Copyright (c) Facebook, Inc. and its affiliates.
735
- *
736
- * This source code is licensed under the MIT license found in the
737
- * LICENSE file in the root directory of this source tree.
738
- */
739
- var kt;
740
- function On() {
741
- return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
742
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
702
+ var At;
703
+ function Pn() {
704
+ return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
705
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, D = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, U = t ? Symbol.for("react.block") : 60121, Z = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
743
706
  function M(f) {
744
707
  return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
745
- f === i || f === p || f === l || f === a || f === R || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === $ || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Q || f.$$typeof === L || f.$$typeof === P || f.$$typeof === W);
708
+ f === i || f === p || f === l || f === a || f === P || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === D || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Z || f.$$typeof === L || f.$$typeof === R || f.$$typeof === U);
746
709
  }
747
710
  function O(f) {
748
711
  if (typeof f == "object" && f !== null) {
749
- var Ee = f.$$typeof;
750
- switch (Ee) {
712
+ var be = f.$$typeof;
713
+ switch (be) {
751
714
  case e:
752
715
  var ue = f.type;
753
716
  switch (ue) {
@@ -756,7 +719,7 @@ function On() {
756
719
  case i:
757
720
  case l:
758
721
  case a:
759
- case R:
722
+ case P:
760
723
  return ue;
761
724
  default:
762
725
  var oe = ue && ue.$$typeof;
@@ -764,70 +727,70 @@ function On() {
764
727
  case h:
765
728
  case E:
766
729
  case k:
767
- case $:
730
+ case D:
768
731
  case d:
769
732
  return oe;
770
733
  default:
771
- return Ee;
734
+ return be;
772
735
  }
773
736
  }
774
737
  case n:
775
- return Ee;
738
+ return be;
776
739
  }
777
740
  }
778
741
  }
779
- var c = m, V = p, he = h, Pe = d, we = e, Ve = E, Ye = i, Oe = k, K = $, ee = n, ie = l, _e = a, Ae = R, ve = !1;
780
- function ke(f) {
781
- return ve || (ve = !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.")), pe(f) || O(f) === m;
742
+ var c = m, V = p, me = h, Se = d, Pe = e, Ye = E, Be = i, Re = k, J = D, Q = n, ie = l, we = a, Oe = P, he = !1;
743
+ function _e(f) {
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.")), ve(f) || O(f) === m;
782
745
  }
783
- function pe(f) {
746
+ function ve(f) {
784
747
  return O(f) === p;
785
748
  }
786
- function Me(f) {
749
+ function Ae(f) {
787
750
  return O(f) === h;
788
751
  }
789
- function Fe(f) {
752
+ function ke(f) {
790
753
  return O(f) === d;
791
754
  }
792
- function je(f) {
755
+ function Me(f) {
793
756
  return typeof f == "object" && f !== null && f.$$typeof === e;
794
757
  }
795
- function Be(f) {
758
+ function We(f) {
796
759
  return O(f) === E;
797
760
  }
798
- function We(f) {
761
+ function Ue(f) {
799
762
  return O(f) === i;
800
763
  }
801
- function ye(f) {
764
+ function pe(f) {
802
765
  return O(f) === k;
803
766
  }
804
- function ge(f) {
805
- return O(f) === $;
767
+ function ye(f) {
768
+ return O(f) === D;
806
769
  }
807
770
  function le(f) {
808
771
  return O(f) === n;
809
772
  }
810
- function be(f) {
773
+ function ge(f) {
811
774
  return O(f) === l;
812
775
  }
813
776
  function ce(f) {
814
777
  return O(f) === a;
815
778
  }
816
- function Ue(f) {
817
- return O(f) === R;
779
+ function qe(f) {
780
+ return O(f) === P;
818
781
  }
819
- x.AsyncMode = c, x.ConcurrentMode = V, x.ContextConsumer = he, x.ContextProvider = Pe, x.Element = we, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy = Oe, x.Memo = K, x.Portal = ee, x.Profiler = ie, x.StrictMode = _e, x.Suspense = Ae, x.isAsyncMode = ke, x.isConcurrentMode = pe, x.isContextConsumer = Me, x.isContextProvider = Fe, x.isElement = je, x.isForwardRef = Be, x.isFragment = We, x.isLazy = ye, x.isMemo = ge, x.isPortal = le, x.isProfiler = be, x.isStrictMode = ce, x.isSuspense = Ue, x.isValidElementType = M, x.typeOf = O;
782
+ x.AsyncMode = c, x.ConcurrentMode = V, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ye, x.Fragment = Be, x.Lazy = Re, x.Memo = J, x.Portal = Q, x.Profiler = ie, x.StrictMode = we, x.Suspense = Oe, x.isAsyncMode = _e, x.isConcurrentMode = ve, x.isContextConsumer = Ae, x.isContextProvider = ke, x.isElement = Me, x.isForwardRef = We, x.isFragment = Ue, x.isLazy = pe, x.isMemo = ye, x.isPortal = le, x.isProfiler = ge, x.isStrictMode = ce, x.isSuspense = qe, x.isValidElementType = M, x.typeOf = O;
820
783
  })()), x;
821
784
  }
822
- var Mt;
823
- function _n() {
824
- return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? De.exports = wn() : De.exports = On()), De.exports;
785
+ var kt;
786
+ function Rn() {
787
+ return kt || (kt = 1, process.env.NODE_ENV === "production" ? Ne.exports = Sn() : Ne.exports = Pn()), Ne.exports;
825
788
  }
826
- var Ze, Ft;
827
- function An() {
828
- if (Ft) return Ze;
829
- Ft = 1;
830
- var t = _n(), e = {
789
+ var Qe, Mt;
790
+ function wn() {
791
+ if (Mt) return Qe;
792
+ Mt = 1;
793
+ var t = Rn(), e = {
831
794
  childContextTypes: !0,
832
795
  contextType: !0,
833
796
  contextTypes: !0,
@@ -865,21 +828,21 @@ function An() {
865
828
  function d(k) {
866
829
  return t.isMemo(k) ? a : l[k.$$typeof] || e;
867
830
  }
868
- var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, R = Object.getPrototypeOf, I = Object.prototype;
869
- function $(k, W, Q) {
870
- if (typeof W != "string") {
831
+ var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, P = Object.getPrototypeOf, I = Object.prototype;
832
+ function D(k, U, Z) {
833
+ if (typeof U != "string") {
871
834
  if (I) {
872
- var L = R(W);
873
- L && L !== I && $(k, L, Q);
835
+ var L = P(U);
836
+ L && L !== I && D(k, L, Z);
874
837
  }
875
- var P = m(W);
876
- p && (P = P.concat(p(W)));
877
- for (var M = d(k), O = d(W), c = 0; c < P.length; ++c) {
878
- var V = P[c];
879
- if (!n[V] && !(Q && Q[V]) && !(O && O[V]) && !(M && M[V])) {
880
- var he = E(W, V);
838
+ var R = m(U);
839
+ p && (R = R.concat(p(U)));
840
+ for (var M = d(k), O = d(U), c = 0; c < R.length; ++c) {
841
+ var V = R[c];
842
+ if (!n[V] && !(Z && Z[V]) && !(O && O[V]) && !(M && M[V])) {
843
+ var me = E(U, V);
881
844
  try {
882
- h(k, V, he);
845
+ h(k, V, me);
883
846
  } catch {
884
847
  }
885
848
  }
@@ -887,17 +850,17 @@ function An() {
887
850
  }
888
851
  return k;
889
852
  }
890
- return Ze = $, Ze;
853
+ return Qe = D, Qe;
891
854
  }
892
- An();
893
- var kn = !0;
894
- function Mn(t, e, n) {
855
+ wn();
856
+ var On = !0;
857
+ function _n(t, e, n) {
895
858
  var i = "";
896
859
  return n.split(" ").forEach(function(a) {
897
860
  t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
898
861
  }), i;
899
862
  }
900
- var Xt = function(e, n, i) {
863
+ var Jt = function(e, n, i) {
901
864
  var a = e.key + "-" + n.name;
902
865
  // we only need to add the styles to the registered cache if the
903
866
  // class name could be used further down
@@ -908,9 +871,9 @@ var Xt = function(e, n, i) {
908
871
  // in node since emotion-server relies on whether a style is in
909
872
  // the registered cache to know whether a style is global or not
910
873
  // also, note that this check will be dead code eliminated in the browser
911
- kn === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
912
- }, Fn = function(e, n, i) {
913
- Xt(e, n, i);
874
+ On === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
875
+ }, An = function(e, n, i) {
876
+ Jt(e, n, i);
914
877
  var a = e.key + "-" + n.name;
915
878
  if (e.inserted[n.name] === void 0) {
916
879
  var l = n;
@@ -919,7 +882,7 @@ var Xt = function(e, n, i) {
919
882
  while (l !== void 0);
920
883
  }
921
884
  };
922
- function jn(t) {
885
+ function kn(t) {
923
886
  for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
924
887
  n = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
925
888
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
@@ -938,7 +901,7 @@ function jn(t) {
938
901
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
939
902
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
940
903
  }
941
- var Nn = {
904
+ var Mn = {
942
905
  animationIterationCount: 1,
943
906
  aspectRatio: 1,
944
907
  borderImageOutset: 1,
@@ -988,34 +951,34 @@ var Nn = {
988
951
  strokeOpacity: 1,
989
952
  strokeWidth: 1
990
953
  };
991
- function $n(t) {
954
+ function Fn(t) {
992
955
  var e = /* @__PURE__ */ Object.create(null);
993
956
  return function(n) {
994
957
  return e[n] === void 0 && (e[n] = t(n)), e[n];
995
958
  };
996
959
  }
997
- var Dn = /[A-Z]|^ms/g, zn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(e) {
960
+ var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
998
961
  return e.charCodeAt(1) === 45;
999
- }, jt = function(e) {
962
+ }, Ft = function(e) {
1000
963
  return e != null && typeof e != "boolean";
1001
- }, Qe = /* @__PURE__ */ $n(function(t) {
1002
- return Zt(t) ? t : t.replace(Dn, "-$&").toLowerCase();
1003
- }), Nt = function(e, n) {
964
+ }, et = /* @__PURE__ */ Fn(function(t) {
965
+ return Kt(t) ? t : t.replace(jn, "-$&").toLowerCase();
966
+ }), jt = function(e, n) {
1004
967
  switch (e) {
1005
968
  case "animation":
1006
969
  case "animationName":
1007
970
  if (typeof n == "string")
1008
- return n.replace(zn, function(i, a, l) {
1009
- return X = {
971
+ return n.replace(Nn, function(i, a, l) {
972
+ return K = {
1010
973
  name: a,
1011
974
  styles: l,
1012
- next: X
975
+ next: K
1013
976
  }, a;
1014
977
  });
1015
978
  }
1016
- return Nn[e] !== 1 && !Zt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
979
+ return Mn[e] !== 1 && !Kt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
1017
980
  };
1018
- function Re(t, e, n) {
981
+ function Ie(t, e, n) {
1019
982
  if (n == null)
1020
983
  return "";
1021
984
  var i = n;
@@ -1027,30 +990,30 @@ function Re(t, e, n) {
1027
990
  case "object": {
1028
991
  var a = n;
1029
992
  if (a.anim === 1)
1030
- return X = {
993
+ return K = {
1031
994
  name: a.name,
1032
995
  styles: a.styles,
1033
- next: X
996
+ next: K
1034
997
  }, a.name;
1035
998
  var l = n;
1036
999
  if (l.styles !== void 0) {
1037
1000
  var d = l.next;
1038
1001
  if (d !== void 0)
1039
1002
  for (; d !== void 0; )
1040
- X = {
1003
+ K = {
1041
1004
  name: d.name,
1042
1005
  styles: d.styles,
1043
- next: X
1006
+ next: K
1044
1007
  }, d = d.next;
1045
1008
  var h = l.styles + ";";
1046
1009
  return h;
1047
1010
  }
1048
- return Ln(t, e, n);
1011
+ return $n(t, e, n);
1049
1012
  }
1050
1013
  case "function": {
1051
1014
  if (t !== void 0) {
1052
- var m = X, p = n(t);
1053
- return X = m, Re(t, e, p);
1015
+ var m = K, p = n(t);
1016
+ return K = m, Ie(t, e, p);
1054
1017
  }
1055
1018
  break;
1056
1019
  }
@@ -1058,26 +1021,26 @@ function Re(t, e, n) {
1058
1021
  var E = n;
1059
1022
  return E;
1060
1023
  }
1061
- function Ln(t, e, n) {
1024
+ function $n(t, e, n) {
1062
1025
  var i = "";
1063
1026
  if (Array.isArray(n))
1064
1027
  for (var a = 0; a < n.length; a++)
1065
- i += Re(t, e, n[a]) + ";";
1028
+ i += Ie(t, e, n[a]) + ";";
1066
1029
  else
1067
1030
  for (var l in n) {
1068
1031
  var d = n[l];
1069
1032
  if (typeof d != "object") {
1070
1033
  var h = d;
1071
- jt(h) && (i += Qe(l) + ":" + Nt(l, h) + ";");
1034
+ Ft(h) && (i += et(l) + ":" + jt(l, h) + ";");
1072
1035
  } else if (Array.isArray(d) && typeof d[0] == "string" && e == null)
1073
1036
  for (var m = 0; m < d.length; m++)
1074
- jt(d[m]) && (i += Qe(l) + ":" + Nt(l, d[m]) + ";");
1037
+ Ft(d[m]) && (i += et(l) + ":" + jt(l, d[m]) + ";");
1075
1038
  else {
1076
- var p = Re(t, e, d);
1039
+ var p = Ie(t, e, d);
1077
1040
  switch (l) {
1078
1041
  case "animation":
1079
1042
  case "animationName": {
1080
- i += Qe(l) + ":" + p + ";";
1043
+ i += et(l) + ":" + p + ";";
1081
1044
  break;
1082
1045
  }
1083
1046
  default:
@@ -1087,92 +1050,92 @@ function Ln(t, e, n) {
1087
1050
  }
1088
1051
  return i;
1089
1052
  }
1090
- var $t = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1091
- function Vn(t, e, n) {
1053
+ var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1054
+ function Dn(t, e, n) {
1092
1055
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1093
1056
  return t[0];
1094
1057
  var i = !0, a = "";
1095
- X = void 0;
1058
+ K = void 0;
1096
1059
  var l = t[0];
1097
1060
  if (l == null || l.raw === void 0)
1098
- i = !1, a += Re(n, e, l);
1061
+ i = !1, a += Ie(n, e, l);
1099
1062
  else {
1100
1063
  var d = l;
1101
1064
  a += d[0];
1102
1065
  }
1103
1066
  for (var h = 1; h < t.length; h++)
1104
- if (a += Re(n, e, t[h]), i) {
1067
+ if (a += Ie(n, e, t[h]), i) {
1105
1068
  var m = l;
1106
1069
  a += m[h];
1107
1070
  }
1108
- $t.lastIndex = 0;
1109
- for (var p = "", E; (E = $t.exec(a)) !== null; )
1071
+ Nt.lastIndex = 0;
1072
+ for (var p = "", E; (E = Nt.exec(a)) !== null; )
1110
1073
  p += "-" + E[1];
1111
- var R = jn(a) + p;
1074
+ var P = kn(a) + p;
1112
1075
  return {
1113
- name: R,
1076
+ name: P,
1114
1077
  styles: a,
1115
- next: X
1078
+ next: K
1116
1079
  };
1117
1080
  }
1118
- var Yn = function(e) {
1081
+ var zn = function(e) {
1119
1082
  return e();
1120
- }, Bn = te.useInsertionEffect ? te.useInsertionEffect : !1, Wn = Bn || Yn, Qt = /* @__PURE__ */ te.createContext(
1083
+ }, Ln = ee.useInsertionEffect ? ee.useInsertionEffect : !1, Vn = Ln || zn, Xt = /* @__PURE__ */ ee.createContext(
1121
1084
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1122
1085
  // because this module is primarily intended for the browser and node
1123
1086
  // but it's also required in react native and similar environments sometimes
1124
1087
  // and we could have a special build just for that
1125
1088
  // but this is much easier and the native packages
1126
1089
  // might use a different theme context in the future anyway
1127
- typeof HTMLElement < "u" ? /* @__PURE__ */ jr({
1090
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Ar({
1128
1091
  key: "css"
1129
1092
  }) : null
1130
1093
  );
1131
- Qt.Provider;
1132
- var Un = function(e) {
1133
- return /* @__PURE__ */ kr(function(n, i) {
1134
- var a = at(Qt);
1094
+ Xt.Provider;
1095
+ var Yn = function(e) {
1096
+ return /* @__PURE__ */ wr(function(n, i) {
1097
+ var a = at(Xt);
1135
1098
  return e(n, a, i);
1136
1099
  });
1137
- }, qn = /* @__PURE__ */ te.createContext({}), ze = {}.hasOwnProperty, nt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", er = function(e, n) {
1100
+ }, Bn = /* @__PURE__ */ ee.createContext({}), Le = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zt = function(e, n) {
1138
1101
  var i = {};
1139
1102
  for (var a in n)
1140
- ze.call(n, a) && (i[a] = n[a]);
1141
- return i[nt] = e, i;
1142
- }, Hn = function(e) {
1103
+ Le.call(n, a) && (i[a] = n[a]);
1104
+ return i[it] = e, i;
1105
+ }, Wn = function(e) {
1143
1106
  var n = e.cache, i = e.serialized, a = e.isStringTag;
1144
- return Xt(n, i, a), Wn(function() {
1145
- return Fn(n, i, a);
1107
+ return Jt(n, i, a), Vn(function() {
1108
+ return An(n, i, a);
1146
1109
  }), null;
1147
- }, Gn = /* @__PURE__ */ Un(function(t, e, n) {
1110
+ }, Un = /* @__PURE__ */ Yn(function(t, e, n) {
1148
1111
  var i = t.css;
1149
1112
  typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1150
- var a = t[nt], l = [i], d = "";
1151
- typeof t.className == "string" ? d = Mn(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
1152
- var h = Vn(l, void 0, te.useContext(qn));
1113
+ var a = t[it], l = [i], d = "";
1114
+ typeof t.className == "string" ? d = _n(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
1115
+ var h = Dn(l, void 0, ee.useContext(Bn));
1153
1116
  d += e.key + "-" + h.name;
1154
1117
  var m = {};
1155
1118
  for (var p in t)
1156
- ze.call(t, p) && p !== "css" && p !== nt && (m[p] = t[p]);
1157
- return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Hn, {
1119
+ Le.call(t, p) && p !== "css" && p !== it && (m[p] = t[p]);
1120
+ return m.className = d, n && (m.ref = n), /* @__PURE__ */ ee.createElement(ee.Fragment, null, /* @__PURE__ */ ee.createElement(Wn, {
1158
1121
  cache: e,
1159
1122
  serialized: h,
1160
1123
  isStringTag: typeof a == "string"
1161
- }), /* @__PURE__ */ te.createElement(a, m));
1162
- }), tr = Gn, Le = Se.Fragment, o = function(e, n, i) {
1163
- return ze.call(n, "css") ? Se.jsx(tr, er(e, n), i) : Se.jsx(e, n, i);
1124
+ }), /* @__PURE__ */ ee.createElement(a, m));
1125
+ }), Qt = Un, Ve = xe.Fragment, o = function(e, n, i) {
1126
+ return Le.call(n, "css") ? xe.jsx(Qt, Zt(e, n), i) : xe.jsx(e, n, i);
1164
1127
  }, j = function(e, n, i) {
1165
- return ze.call(n, "css") ? Se.jsxs(tr, er(e, n), i) : Se.jsxs(e, n, i);
1128
+ return Le.call(n, "css") ? xe.jsxs(Qt, Zt(e, n), i) : xe.jsxs(e, n, i);
1166
1129
  };
1167
- const Jn = ({
1130
+ const qn = ({
1168
1131
  onCancel: t,
1169
1132
  onSave: e
1170
1133
  }) => {
1171
- const n = Lr({ prefix: "modalForm" }), [i, a] = q(""), [l, d] = q(""), [h, m] = q(!1);
1172
- return /* @__PURE__ */ j(qr, { onClose: t, initialFocus: "[name=url]", children: [
1173
- /* @__PURE__ */ o(Yr, { children: /* @__PURE__ */ o(Vr, { children: "Add video" }) }),
1174
- /* @__PURE__ */ o(Wr, { children: /* @__PURE__ */ j(
1175
- Br,
1134
+ const n = Nr({ prefix: "modalForm" }), [i, a] = W(""), [l, d] = W(""), [h, m] = W(!1);
1135
+ return /* @__PURE__ */ j(Yr, { onClose: t, initialFocus: "[name=url]", children: [
1136
+ /* @__PURE__ */ o(Dr, { children: /* @__PURE__ */ o($r, { children: "Add video" }) }),
1137
+ /* @__PURE__ */ o(Lr, { children: /* @__PURE__ */ j(
1138
+ zr,
1176
1139
  {
1177
1140
  id: n,
1178
1141
  component: "form",
@@ -1185,16 +1148,16 @@ const Jn = ({
1185
1148
  }
1186
1149
  },
1187
1150
  children: [
1188
- /* @__PURE__ */ o(tt, { label: "URL", children: /* @__PURE__ */ o(
1189
- Rt,
1151
+ /* @__PURE__ */ o(rt, { label: "URL", children: /* @__PURE__ */ o(
1152
+ St,
1190
1153
  {
1191
1154
  name: "url",
1192
1155
  value: i,
1193
1156
  onChange: (p) => a(p.target.value)
1194
1157
  }
1195
1158
  ) }),
1196
- /* @__PURE__ */ o(tt, { label: "Title", children: /* @__PURE__ */ o(
1197
- Rt,
1159
+ /* @__PURE__ */ o(rt, { label: "Title", children: /* @__PURE__ */ o(
1160
+ St,
1198
1161
  {
1199
1162
  name: "title",
1200
1163
  value: l,
@@ -1204,10 +1167,10 @@ const Jn = ({
1204
1167
  ]
1205
1168
  }
1206
1169
  ) }),
1207
- /* @__PURE__ */ j(Ur, { children: [
1208
- /* @__PURE__ */ o(Vt, { onClick: t, children: "Cancel" }),
1170
+ /* @__PURE__ */ j(Vr, { children: [
1171
+ /* @__PURE__ */ o(Lt, { onClick: t, children: "Cancel" }),
1209
1172
  /* @__PURE__ */ o(
1210
- re,
1173
+ te,
1211
1174
  {
1212
1175
  type: "submit",
1213
1176
  form: n,
@@ -1219,26 +1182,26 @@ const Jn = ({
1219
1182
  )
1220
1183
  ] })
1221
1184
  ] });
1222
- }, Dt = me(
1185
+ }, $t = ne(
1223
1186
  ({ onSave: t }) => {
1224
- const [e, n] = q(!1), i = D(
1187
+ const [e, n] = W(!1), i = N(
1225
1188
  async (a) => {
1226
1189
  await t(a), n(!1);
1227
1190
  },
1228
1191
  [t]
1229
1192
  );
1230
- return /* @__PURE__ */ j(Le, { children: [
1193
+ return /* @__PURE__ */ j(Ve, { children: [
1231
1194
  /* @__PURE__ */ o(
1232
- re,
1195
+ te,
1233
1196
  {
1234
1197
  onClick: () => n(!0),
1235
- iconType: ut,
1198
+ iconType: ct,
1236
1199
  color: "primary",
1237
1200
  children: "Add video"
1238
1201
  }
1239
1202
  ),
1240
1203
  e && /* @__PURE__ */ o(
1241
- Jn,
1204
+ qn,
1242
1205
  {
1243
1206
  onCancel: () => n(!1),
1244
1207
  onSave: i
@@ -1246,7 +1209,7 @@ const Jn = ({
1246
1209
  )
1247
1210
  ] });
1248
1211
  }
1249
- ), rr = {
1212
+ ), er = {
1250
1213
  Audio: "",
1251
1214
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
1252
1215
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -1254,11 +1217,11 @@ const Jn = ({
1254
1217
  Twitch: "https://www.twitch.tv/favicon.ico",
1255
1218
  Vimeo: "https://vimeo.com/favicon.ico",
1256
1219
  YouTube: "https://www.youtube.com/favicon.ico"
1257
- }, Kn = N(
1220
+ }, Hn = $(
1258
1221
  ({ playQueueStore: t }) => {
1259
- const { euiTheme: e } = Yt();
1222
+ const { euiTheme: e } = Vt();
1260
1223
  return /* @__PURE__ */ j(
1261
- Gr,
1224
+ Wr,
1262
1225
  {
1263
1226
  style: {
1264
1227
  position: "sticky",
@@ -1267,8 +1230,8 @@ const Jn = ({
1267
1230
  background: e.colors.backgroundBasePlain
1268
1231
  },
1269
1232
  children: [
1270
- /* @__PURE__ */ o(Hr, { children: /* @__PURE__ */ o(
1271
- Bt,
1233
+ /* @__PURE__ */ o(Br, { children: /* @__PURE__ */ o(
1234
+ Yt,
1272
1235
  {
1273
1236
  id: "",
1274
1237
  checked: t.allItemsSelected,
@@ -1277,40 +1240,40 @@ const Jn = ({
1277
1240
  }
1278
1241
  }
1279
1242
  ) }),
1280
- /* @__PURE__ */ o(Xe, { width: 24 }),
1281
- /* @__PURE__ */ o(Xe, { children: "Title" }),
1282
- /* @__PURE__ */ o(Xe, {})
1243
+ /* @__PURE__ */ o(Ze, { width: 24 }),
1244
+ /* @__PURE__ */ o(Ze, { children: "Title" }),
1245
+ /* @__PURE__ */ o(Ze, {})
1283
1246
  ]
1284
1247
  }
1285
1248
  );
1286
1249
  }
1287
- ), Xn = me(
1250
+ ), Gn = ne(
1288
1251
  ({
1289
1252
  item: t,
1290
1253
  closePopover: e
1291
1254
  }) => {
1292
- const n = st(
1255
+ const n = De(
1293
1256
  () => [
1294
1257
  {
1295
1258
  id: 0,
1296
1259
  items: [
1297
1260
  {
1298
1261
  name: "Play first",
1299
- icon: /* @__PURE__ */ o(H, { type: "" }),
1262
+ icon: /* @__PURE__ */ o(B, { type: "" }),
1300
1263
  onClick: async () => {
1301
1264
  e(), await t.playFirst();
1302
1265
  }
1303
1266
  },
1304
1267
  {
1305
1268
  name: "Play next",
1306
- icon: /* @__PURE__ */ o(H, { type: "" }),
1269
+ icon: /* @__PURE__ */ o(B, { type: "" }),
1307
1270
  onClick: async () => {
1308
1271
  e(), await t.playNext();
1309
1272
  }
1310
1273
  },
1311
1274
  {
1312
1275
  name: "Add to play queue",
1313
- icon: /* @__PURE__ */ o(H, { type: ut }),
1276
+ icon: /* @__PURE__ */ o(B, { type: ct }),
1314
1277
  onClick: async () => {
1315
1278
  e(), await t.addToPlayQueue();
1316
1279
  }
@@ -1320,7 +1283,7 @@ const Jn = ({
1320
1283
  },
1321
1284
  {
1322
1285
  name: "Move to the top",
1323
- icon: /* @__PURE__ */ o(H, { type: on }),
1286
+ icon: /* @__PURE__ */ o(B, { type: en }),
1324
1287
  onClick: async () => {
1325
1288
  e(), t.moveToTop();
1326
1289
  },
@@ -1328,7 +1291,7 @@ const Jn = ({
1328
1291
  },
1329
1292
  {
1330
1293
  name: "Move to the bottom",
1331
- icon: /* @__PURE__ */ o(H, { type: an }),
1294
+ icon: /* @__PURE__ */ o(B, { type: tn }),
1332
1295
  onClick: async () => {
1333
1296
  e(), t.moveToBottom();
1334
1297
  },
@@ -1339,7 +1302,7 @@ const Jn = ({
1339
1302
  },
1340
1303
  {
1341
1304
  name: "Remove to the top",
1342
- icon: /* @__PURE__ */ o(H, { type: "" }),
1305
+ icon: /* @__PURE__ */ o(B, { type: "" }),
1343
1306
  onClick: async () => {
1344
1307
  e(), await t.removeToTop();
1345
1308
  },
@@ -1347,7 +1310,7 @@ const Jn = ({
1347
1310
  },
1348
1311
  {
1349
1312
  name: "Remove others",
1350
- icon: /* @__PURE__ */ o(H, { type: "" }),
1313
+ icon: /* @__PURE__ */ o(B, { type: "" }),
1351
1314
  onClick: async () => {
1352
1315
  e(), await t.removeOthers();
1353
1316
  },
@@ -1358,20 +1321,20 @@ const Jn = ({
1358
1321
  ],
1359
1322
  [e, t]
1360
1323
  );
1361
- return /* @__PURE__ */ o(Wt, { initialPanelId: 0, panels: n });
1324
+ return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: n });
1362
1325
  }
1363
- ), Zn = me(
1326
+ ), Jn = ne(
1364
1327
  ({ item: t }) => {
1365
- const [e, n] = q(!1), i = D(() => n(!e), [e]), a = D(() => n(!1), []);
1328
+ const [e, n] = W(!1), i = N(() => n(!e), [e]), a = N(() => n(!1), []);
1366
1329
  return /* @__PURE__ */ o(
1367
- lt,
1330
+ ze,
1368
1331
  {
1369
1332
  button: /* @__PURE__ */ o(
1370
- G,
1333
+ H,
1371
1334
  {
1372
1335
  title: "More options",
1373
1336
  "aria-label": "More options",
1374
- iconType: Ht,
1337
+ iconType: Ut,
1375
1338
  size: "s",
1376
1339
  color: "text",
1377
1340
  onClick: i
@@ -1382,7 +1345,7 @@ const Jn = ({
1382
1345
  panelPaddingSize: "none",
1383
1346
  anchorPosition: "leftCenter",
1384
1347
  children: /* @__PURE__ */ o(
1385
- Xn,
1348
+ Gn,
1386
1349
  {
1387
1350
  item: t,
1388
1351
  closePopover: a
@@ -1391,14 +1354,14 @@ const Jn = ({
1391
1354
  }
1392
1355
  );
1393
1356
  }
1394
- ), Qn = N(
1357
+ ), Kn = $(
1395
1358
  ({ item: t }) => {
1396
- const e = ne();
1397
- return /* @__PURE__ */ j(rt, { textOnly: !1, hasActions: !0, align: "right", children: [
1359
+ const e = re();
1360
+ return /* @__PURE__ */ j(nt, { textOnly: !1, hasActions: !0, align: "right", children: [
1398
1361
  /* @__PURE__ */ o(
1399
- re,
1362
+ te,
1400
1363
  {
1401
- iconType: nn,
1364
+ iconType: Qr,
1402
1365
  size: "s",
1403
1366
  onClick: async () => {
1404
1367
  t.isCurrent ? await e.setCurrentTime(0) : t.play();
@@ -1407,40 +1370,40 @@ const Jn = ({
1407
1370
  }
1408
1371
  ),
1409
1372
  /* @__PURE__ */ o(
1410
- re,
1373
+ te,
1411
1374
  {
1412
- iconType: dt,
1375
+ iconType: ut,
1413
1376
  size: "s",
1414
1377
  onClick: t.remove,
1415
1378
  children: "Remove"
1416
1379
  }
1417
1380
  ),
1418
- /* @__PURE__ */ o(Zn, { item: t })
1381
+ /* @__PURE__ */ o(Jn, { item: t })
1419
1382
  ] });
1420
1383
  }
1421
- ), ei = N(
1384
+ ), Xn = $(
1422
1385
  ({ item: t }) => {
1423
- const e = ne();
1424
- return /* @__PURE__ */ j(Xr, { isSelected: t.isCurrent, children: [
1425
- /* @__PURE__ */ o(Jr, { children: /* @__PURE__ */ o(
1426
- Bt,
1386
+ const e = re();
1387
+ return /* @__PURE__ */ j(Hr, { isSelected: t.isCurrent, children: [
1388
+ /* @__PURE__ */ o(Ur, { children: /* @__PURE__ */ o(
1389
+ Yt,
1427
1390
  {
1428
1391
  id: t.id.toString(),
1429
1392
  checked: t.isSelected,
1430
1393
  onChange: t.toggleSelected
1431
1394
  }
1432
1395
  ) }),
1433
- /* @__PURE__ */ o(rt, { textOnly: !1, children: /* @__PURE__ */ o(
1396
+ /* @__PURE__ */ o(nt, { textOnly: !1, children: /* @__PURE__ */ o(
1434
1397
  "img",
1435
1398
  {
1436
- src: rr[t.type],
1399
+ src: er[t.type],
1437
1400
  width: 16,
1438
1401
  height: 16,
1439
1402
  alt: t.type
1440
1403
  }
1441
1404
  ) }),
1442
- /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ o(
1443
- Kr,
1405
+ /* @__PURE__ */ o(nt, { children: /* @__PURE__ */ o(
1406
+ qr,
1444
1407
  {
1445
1408
  href: t.url,
1446
1409
  target: "_blank",
@@ -1449,51 +1412,51 @@ const Jn = ({
1449
1412
  children: t.title
1450
1413
  }
1451
1414
  ) }),
1452
- /* @__PURE__ */ o(Qn, { item: t })
1415
+ /* @__PURE__ */ o(Kn, { item: t })
1453
1416
  ] }, t.id);
1454
1417
  }
1455
- ), ti = N(
1418
+ ), Zn = $(
1456
1419
  ({ playQueueStore: t }) => /* @__PURE__ */ o(
1457
- Cn,
1420
+ bn,
1458
1421
  {
1459
1422
  tag: "tbody",
1460
1423
  list: t.items,
1461
1424
  setList: (e) => t.setItems(e),
1462
- children: t.items.map((e) => /* @__PURE__ */ o(ei, { item: e }, e.id))
1425
+ children: t.items.map((e) => /* @__PURE__ */ o(Xn, { item: e }, e.id))
1463
1426
  }
1464
1427
  )
1465
- ), ri = N(
1466
- ({ playQueueStore: t }) => /* @__PURE__ */ j(Zr, { children: [
1467
- /* @__PURE__ */ o(Kn, { playQueueStore: t }),
1468
- /* @__PURE__ */ o(ti, { playQueueStore: t })
1428
+ ), Qn = $(
1429
+ ({ playQueueStore: t }) => /* @__PURE__ */ j(Gr, { children: [
1430
+ /* @__PURE__ */ o(Hn, { playQueueStore: t }),
1431
+ /* @__PURE__ */ o(Zn, { playQueueStore: t })
1469
1432
  ] })
1470
1433
  );
1471
- function ni(t) {
1434
+ function ei(t) {
1472
1435
  return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
1473
1436
  }
1474
- const ii = N(
1437
+ const ti = $(
1475
1438
  ({ playQueueStore: t }) => /* @__PURE__ */ o(
1476
- re,
1439
+ te,
1477
1440
  {
1478
- iconType: ut,
1441
+ iconType: ct,
1479
1442
  onClick: t.addSelectedItems,
1480
1443
  disabled: t.isEmpty || t.selectedItems.length === 0,
1481
1444
  children: "Add to play queue"
1482
1445
  }
1483
1446
  )
1484
1447
  );
1485
- N(
1448
+ $(
1486
1449
  ({ playQueueStore: t }) => {
1487
- const [e, n] = q(!1);
1488
- return /* @__PURE__ */ j(Le, { children: [
1450
+ const [e, n] = W(!1);
1451
+ return /* @__PURE__ */ j(Ve, { children: [
1489
1452
  e && /* @__PURE__ */ o(
1490
- en,
1453
+ Kr,
1491
1454
  {
1492
1455
  type: "push",
1493
1456
  size: "s",
1494
1457
  onClose: () => n(!1),
1495
1458
  children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
1496
- Qr,
1459
+ Jr,
1497
1460
  {
1498
1461
  language: "json",
1499
1462
  overflowHeight: "100%",
@@ -1509,21 +1472,21 @@ N(
1509
1472
  }
1510
1473
  ),
1511
1474
  /* @__PURE__ */ o(
1512
- re,
1475
+ te,
1513
1476
  {
1514
1477
  onClick: () => n((i) => !i),
1515
- iconType: sn,
1478
+ iconType: rn,
1516
1479
  children: "Developer tools"
1517
1480
  }
1518
1481
  )
1519
1482
  ] });
1520
1483
  }
1521
1484
  );
1522
- const oi = N(
1485
+ const ri = $(
1523
1486
  ({ playQueueStore: t }) => {
1524
- const { euiTheme: e } = Yt(), n = D(
1487
+ const { euiTheme: e } = Vt(), n = N(
1525
1488
  async (i) => {
1526
- const a = Nr(i.url);
1489
+ const a = kr(i.url);
1527
1490
  if (a !== void 0) {
1528
1491
  const l = a.extractVideoId(i.url);
1529
1492
  if (l !== void 0) {
@@ -1537,7 +1500,7 @@ const oi = N(
1537
1500
  url: i.url,
1538
1501
  type: a.type,
1539
1502
  videoId: l,
1540
- title: i.title || (ni(h) ? h.title : l)
1503
+ title: i.title || (ei(h) ? h.title : l)
1541
1504
  })
1542
1505
  ]);
1543
1506
  }
@@ -1545,7 +1508,7 @@ const oi = N(
1545
1508
  },
1546
1509
  [t]
1547
1510
  );
1548
- return /* @__PURE__ */ j(Le, { children: [
1511
+ return /* @__PURE__ */ j(Ve, { children: [
1549
1512
  /* @__PURE__ */ j(
1550
1513
  se,
1551
1514
  {
@@ -1558,43 +1521,43 @@ const oi = N(
1558
1521
  background: e.colors.backgroundBasePlain
1559
1522
  },
1560
1523
  children: [
1561
- /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1562
- re,
1524
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1525
+ te,
1563
1526
  {
1564
1527
  disabled: t.isEmpty || t.selectedItems.length === 0,
1565
1528
  onClick: t.playSelectedItemsNext,
1566
1529
  children: "Play next"
1567
1530
  }
1568
1531
  ) }),
1569
- /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ii, { playQueueStore: t }) }),
1570
- /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1571
- re,
1532
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(ti, { playQueueStore: t }) }),
1533
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1534
+ te,
1572
1535
  {
1573
- iconType: dt,
1536
+ iconType: ut,
1574
1537
  onClick: t.removeSelectedItems,
1575
1538
  disabled: t.isEmpty || t.selectedItems.length === 0,
1576
1539
  children: "Remove"
1577
1540
  }
1578
1541
  ) }),
1579
- /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1580
- re,
1542
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1543
+ te,
1581
1544
  {
1582
- iconType: ln,
1545
+ iconType: nn,
1583
1546
  onClick: t.clear,
1584
1547
  disabled: t.isEmpty,
1585
1548
  children: "Clear"
1586
1549
  }
1587
1550
  ) }),
1588
- /* @__PURE__ */ o(J, { grow: !0 }),
1589
- /* @__PURE__ */ j(J, { grow: !1, children: [
1551
+ /* @__PURE__ */ o(G, { grow: !0 }),
1552
+ /* @__PURE__ */ j(G, { grow: !1, children: [
1590
1553
  !1,
1591
- /* @__PURE__ */ o(Dt, { onSave: n })
1554
+ /* @__PURE__ */ o($t, { onSave: n })
1592
1555
  ] })
1593
1556
  ]
1594
1557
  }
1595
1558
  ),
1596
1559
  /* @__PURE__ */ o(
1597
- Ut,
1560
+ Bt,
1598
1561
  {
1599
1562
  size: "l",
1600
1563
  style: {
@@ -1606,29 +1569,29 @@ const oi = N(
1606
1569
  }
1607
1570
  ),
1608
1571
  t.isEmpty ? /* @__PURE__ */ o(
1609
- tn,
1572
+ Xr,
1610
1573
  {
1611
1574
  title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
1612
1575
  body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
1613
- actions: /* @__PURE__ */ o(Dt, { onSave: n })
1576
+ actions: /* @__PURE__ */ o($t, { onSave: n })
1614
1577
  }
1615
- ) : /* @__PURE__ */ o(ri, { playQueueStore: t })
1578
+ ) : /* @__PURE__ */ o(Qn, { playQueueStore: t })
1616
1579
  ] });
1617
1580
  }
1618
- ), et = new xn({
1581
+ ), tt = new En({
1619
1582
  coerceTypes: !0
1620
1583
  });
1621
- function ai(t, e) {
1584
+ function ni(t, e) {
1622
1585
  let n;
1623
- if (n = et.getSchema(e), n === void 0 && (et.addSchema(t, e), n = et.getSchema(e)), n === void 0 || n.schema !== t)
1586
+ if (n = tt.getSchema(e), n === void 0 && (tt.addSchema(t, e), n = tt.getSchema(e)), n === void 0 || n.schema !== t)
1624
1587
  throw new Error(
1625
1588
  `Invalid schema. Expected: '${JSON.stringify(
1626
1589
  t
1627
- )}', but got '${JSON.stringify(n == null ? void 0 : n.schema)}'.`
1590
+ )}', but got '${JSON.stringify(n?.schema)}'.`
1628
1591
  );
1629
1592
  return n;
1630
1593
  }
1631
- const si = {
1594
+ const ii = {
1632
1595
  type: "object",
1633
1596
  properties: {
1634
1597
  url: {
@@ -1647,7 +1610,7 @@ const si = {
1647
1610
  required: ["url", "type", "videoId", "title"]
1648
1611
  };
1649
1612
  var w = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(w || {});
1650
- const li = {
1613
+ const oi = {
1651
1614
  type: "object",
1652
1615
  properties: {
1653
1616
  version: {
@@ -1666,19 +1629,18 @@ const li = {
1666
1629
  items: {
1667
1630
  type: "array",
1668
1631
  nullable: !0,
1669
- items: si
1632
+ items: ii
1670
1633
  },
1671
1634
  currentIndex: {
1672
1635
  type: "integer",
1673
1636
  nullable: !0
1674
1637
  }
1675
1638
  }
1676
- }, Ie = class Ie {
1639
+ };
1640
+ class $e {
1677
1641
  constructor(e, n, i) {
1678
- B(this, "id");
1679
- B(this, "isSelected", !1);
1680
- this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = Ie.nextId++, e.makeObservable(this, {
1681
- isSelected: Z,
1642
+ this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = $e.nextId++, e.makeObservable(this, {
1643
+ isSelected: X,
1682
1644
  isCurrent: A,
1683
1645
  index: A,
1684
1646
  isFirst: A,
@@ -1700,8 +1662,11 @@ const li = {
1700
1662
  removeOthers: y.bound
1701
1663
  });
1702
1664
  }
1665
+ static nextId = 1;
1666
+ id;
1667
+ isSelected = !1;
1703
1668
  static fromDto(e, n, i) {
1704
- return new Ie(
1669
+ return new $e(
1705
1670
  e,
1706
1671
  n,
1707
1672
  i
@@ -1782,22 +1747,15 @@ const li = {
1782
1747
  removeOthers() {
1783
1748
  return this.playQueueStore.removeOtherItems(this);
1784
1749
  }
1785
- };
1786
- B(Ie, "nextId", 1);
1787
- let it = Ie;
1788
- class ci {
1750
+ }
1751
+ class ai {
1789
1752
  constructor(e) {
1790
- B(this, "interacted", !1);
1791
- B(this, "items", []);
1792
- B(this, "currentId");
1793
- B(this, "repeat", w.Off);
1794
- B(this, "shuffle", !1);
1795
1753
  this.observableStateProvider = e, e.makeObservable(this, {
1796
- interacted: Z,
1797
- items: Z,
1798
- currentId: Z,
1799
- repeat: Z,
1800
- shuffle: Z,
1754
+ interacted: X,
1755
+ items: X,
1756
+ currentId: X,
1757
+ repeat: X,
1758
+ shuffle: X,
1801
1759
  localStorageState: A.struct,
1802
1760
  isEmpty: A,
1803
1761
  currentItem: A,
@@ -1835,8 +1793,13 @@ class ci {
1835
1793
  goToFirst: y
1836
1794
  });
1837
1795
  }
1796
+ interacted = !1;
1797
+ items = [];
1798
+ currentId;
1799
+ repeat = w.Off;
1800
+ shuffle = !1;
1838
1801
  createItem(e) {
1839
- return it.fromDto(
1802
+ return $e.fromDto(
1840
1803
  this.observableStateProvider,
1841
1804
  this,
1842
1805
  e
@@ -1852,12 +1815,11 @@ class ci {
1852
1815
  };
1853
1816
  }
1854
1817
  set localStorageState(e) {
1855
- var n;
1856
- this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
1818
+ this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = e.items?.map((n) => this.createItem(n)) ?? [], this.currentIndex = e.currentIndex;
1857
1819
  }
1858
1820
  validateLocalStorageState(e) {
1859
- return ai(
1860
- li,
1821
+ return ni(
1822
+ oi,
1861
1823
  "PlayQueueDto"
1862
1824
  )(e);
1863
1825
  }
@@ -1880,8 +1842,7 @@ class ci {
1880
1842
  return this.currentId !== void 0 ? this.items.findIndex((e) => e.id === this.currentId) : void 0;
1881
1843
  }
1882
1844
  set currentIndex(e) {
1883
- var n;
1884
- this.currentId = e !== void 0 ? (n = this.items.at(e)) == null ? void 0 : n.id : void 0;
1845
+ this.currentId = e !== void 0 ? this.items.at(e)?.id : void 0;
1885
1846
  }
1886
1847
  get hasPreviousItem() {
1887
1848
  return this.hasMultipleItems && this.currentIndex !== void 0 && this.currentIndex > 0;
@@ -1919,7 +1880,7 @@ class ci {
1919
1880
  e.unselect();
1920
1881
  }
1921
1882
  setCurrentItem(e) {
1922
- this.interact(), this.currentId = e == null ? void 0 : e.id;
1883
+ this.interact(), this.currentId = e?.id;
1923
1884
  }
1924
1885
  setNextItems(e) {
1925
1886
  this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...e);
@@ -2013,29 +1974,29 @@ class ci {
2013
1974
  this.currentIndex !== void 0 && (this.currentIndex = 0);
2014
1975
  }
2015
1976
  }
2016
- const nr = Lt(void 0), $i = ({
1977
+ const tr = zt(void 0), ji = ({
2017
1978
  children: t
2018
1979
  }) => {
2019
- const [e] = q(
2020
- () => new ci(new Kt())
2021
- ), n = ne();
2022
- return Mr(() => Ar(
1980
+ const [e] = W(
1981
+ () => new ai(new Gt())
1982
+ ), n = re();
1983
+ return Or(() => Rr(
2023
1984
  () => e.currentItem,
2024
1985
  async (i, a) => {
2025
1986
  i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
2026
1987
  }
2027
- ), [e, n]), /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
2028
- }, ir = () => at(nr), ui = ({
1988
+ ), [e, n]), /* @__PURE__ */ o(tr.Provider, { value: e, children: t });
1989
+ }, rr = () => at(tr), si = ({
2029
1990
  breadcrumbs: t,
2030
1991
  tabs: e,
2031
1992
  ...n
2032
1993
  }) => {
2033
- const i = In();
1994
+ const i = Tn();
2034
1995
  return /* @__PURE__ */ o(
2035
- ct.Header,
1996
+ lt.Header,
2036
1997
  {
2037
1998
  ...n,
2038
- breadcrumbs: t == null ? void 0 : t.map(({ linkProps: a, ...l }) => ({
1999
+ breadcrumbs: t?.map(({ linkProps: a, ...l }) => ({
2039
2000
  ...l,
2040
2001
  href: a === void 0 ? void 0 : i.buildLocation(
2041
2002
  a
@@ -2045,7 +2006,7 @@ const nr = Lt(void 0), $i = ({
2045
2006
  d.preventDefault(), await i.navigate(a);
2046
2007
  }
2047
2008
  })),
2048
- tabs: e == null ? void 0 : e.map(({ linkProps: a, ...l }) => ({
2009
+ tabs: e?.map(({ linkProps: a, ...l }) => ({
2049
2010
  ...l,
2050
2011
  href: a === void 0 ? void 0 : i.buildLocation(
2051
2012
  a
@@ -2057,28 +2018,28 @@ const nr = Lt(void 0), $i = ({
2057
2018
  }))
2058
2019
  }
2059
2020
  );
2060
- }, Di = () => {
2061
- const t = ir();
2062
- return /* @__PURE__ */ j(Le, { children: [
2021
+ }, Ni = () => {
2022
+ const t = rr();
2023
+ return /* @__PURE__ */ j(Ve, { children: [
2063
2024
  /* @__PURE__ */ o(
2064
- ui,
2025
+ si,
2065
2026
  {
2066
2027
  pageTitle: "Play queue",
2067
2028
  rightSideItems: []
2068
2029
  }
2069
2030
  ),
2070
- /* @__PURE__ */ o(ct.Section, { children: /* @__PURE__ */ o(oi, { playQueueStore: t }) })
2031
+ /* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore: t }) })
2071
2032
  ] });
2072
- }, di = {
2073
- [w.Off]: dn,
2074
- [w.All]: un,
2075
- [w.One]: cn
2076
- }, fi = N(
2033
+ }, li = {
2034
+ [w.Off]: sn,
2035
+ [w.All]: an,
2036
+ [w.One]: on
2037
+ }, ci = $(
2077
2038
  ({
2078
2039
  playerStore: t,
2079
2040
  playQueueStore: e
2080
2041
  }) => {
2081
- const n = ne(), i = D(async () => {
2042
+ const n = re(), i = N(async () => {
2082
2043
  if (e.hasPreviousItem) {
2083
2044
  const a = await n.getCurrentTime();
2084
2045
  a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
@@ -2094,11 +2055,11 @@ const nr = Lt(void 0), $i = ({
2094
2055
  alignItems: "center",
2095
2056
  children: [
2096
2057
  /* @__PURE__ */ o(
2097
- G,
2058
+ H,
2098
2059
  {
2099
2060
  title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2100
2061
  "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2101
- iconType: e.shuffle ? fn : mn,
2062
+ iconType: e.shuffle ? ln : cn,
2102
2063
  size: "s",
2103
2064
  iconSize: "l",
2104
2065
  onClick: e.toggleShuffle,
@@ -2106,11 +2067,11 @@ const nr = Lt(void 0), $i = ({
2106
2067
  }
2107
2068
  ),
2108
2069
  /* @__PURE__ */ o(
2109
- G,
2070
+ H,
2110
2071
  {
2111
2072
  title: "Previous",
2112
2073
  "aria-label": "Previous",
2113
- iconType: hn,
2074
+ iconType: un,
2114
2075
  size: "s",
2115
2076
  iconSize: "l",
2116
2077
  onClick: i,
@@ -2118,22 +2079,22 @@ const nr = Lt(void 0), $i = ({
2118
2079
  }
2119
2080
  ),
2120
2081
  t.playing ? /* @__PURE__ */ o(
2121
- G,
2082
+ H,
2122
2083
  {
2123
2084
  title: "Pause",
2124
2085
  "aria-label": "Pause",
2125
- iconType: vn,
2086
+ iconType: dn,
2126
2087
  size: "s",
2127
2088
  iconSize: "l",
2128
2089
  onClick: () => n.pause(),
2129
2090
  disabled: !e.canPause || !t.controller.supports("pause")
2130
2091
  }
2131
2092
  ) : /* @__PURE__ */ o(
2132
- G,
2093
+ H,
2133
2094
  {
2134
2095
  title: "Play",
2135
2096
  "aria-label": "Play",
2136
- iconType: pn,
2097
+ iconType: fn,
2137
2098
  size: "s",
2138
2099
  iconSize: "l",
2139
2100
  onClick: () => n.play(),
@@ -2141,11 +2102,11 @@ const nr = Lt(void 0), $i = ({
2141
2102
  }
2142
2103
  ),
2143
2104
  /* @__PURE__ */ o(
2144
- G,
2105
+ H,
2145
2106
  {
2146
2107
  title: "Next",
2147
2108
  "aria-label": "Next",
2148
- iconType: yn,
2109
+ iconType: mn,
2149
2110
  size: "s",
2150
2111
  iconSize: "l",
2151
2112
  onClick: e.next,
@@ -2153,11 +2114,11 @@ const nr = Lt(void 0), $i = ({
2153
2114
  }
2154
2115
  ),
2155
2116
  /* @__PURE__ */ o(
2156
- G,
2117
+ H,
2157
2118
  {
2158
2119
  title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
2159
2120
  "aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
2160
- iconType: di[e.repeat],
2121
+ iconType: li[e.repeat],
2161
2122
  size: "s",
2162
2123
  iconSize: "l",
2163
2124
  onClick: e.toggleRepeat
@@ -2167,69 +2128,124 @@ const nr = Lt(void 0), $i = ({
2167
2128
  }
2168
2129
  );
2169
2130
  }
2170
- ), mi = N(
2171
- ({ playQueueStore: t }) => {
2172
- const e = ne();
2131
+ ), ui = ne(
2132
+ ({ item: t, closePopover: e }) => {
2133
+ const n = re(), i = De(
2134
+ () => [
2135
+ {
2136
+ id: 0,
2137
+ items: [
2138
+ {
2139
+ name: "Open in new tab",
2140
+ icon: /* @__PURE__ */ o(B, { type: hn }),
2141
+ onClick: async () => {
2142
+ e(), await n.pause(), window.open(t.dto.url, "_blank");
2143
+ }
2144
+ },
2145
+ {
2146
+ name: "Copy link address",
2147
+ icon: /* @__PURE__ */ o(B, { type: "" }),
2148
+ onClick: async () => {
2149
+ e(), await navigator.clipboard.writeText(
2150
+ t.dto.url
2151
+ );
2152
+ }
2153
+ },
2154
+ {
2155
+ name: "Copy link text",
2156
+ icon: /* @__PURE__ */ o(B, { type: "" }),
2157
+ onClick: async () => {
2158
+ e(), await navigator.clipboard.writeText(
2159
+ t.dto.title
2160
+ );
2161
+ }
2162
+ }
2163
+ ]
2164
+ }
2165
+ ],
2166
+ [e, n, t]
2167
+ );
2168
+ return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: i });
2169
+ }
2170
+ ), di = ne(
2171
+ ({ item: t }) => {
2172
+ const [e, n] = W(!1), i = N(() => n(!e), [e]), a = N(() => n(!1), []);
2173
2173
  return /* @__PURE__ */ o(
2174
- se,
2174
+ ze,
2175
2175
  {
2176
- responsive: !1,
2177
- gutterSize: "s",
2178
- justifyContent: "flexStart",
2179
- alignItems: "center",
2180
- children: t.currentItem && /* @__PURE__ */ o(
2181
- Vt,
2176
+ button: /* @__PURE__ */ o(
2177
+ Lt,
2182
2178
  {
2183
- href: t.currentItem.url,
2184
- target: "_blank",
2185
- iconType: rr[t.currentItem.type],
2179
+ iconType: er[t.type],
2186
2180
  size: "s",
2187
- onClick: () => e.pause(),
2188
- children: t.currentItem.title
2181
+ onClick: i,
2182
+ children: t.title
2183
+ }
2184
+ ),
2185
+ isOpen: e,
2186
+ closePopover: a,
2187
+ panelPaddingSize: "none",
2188
+ anchorPosition: "upLeft",
2189
+ children: /* @__PURE__ */ o(
2190
+ ui,
2191
+ {
2192
+ item: t,
2193
+ closePopover: a
2189
2194
  }
2190
2195
  )
2191
2196
  }
2192
2197
  );
2193
2198
  }
2194
- ), hi = N(
2199
+ ), fi = $(
2200
+ ({ playQueueStore: t }) => /* @__PURE__ */ o(
2201
+ se,
2202
+ {
2203
+ responsive: !1,
2204
+ gutterSize: "s",
2205
+ justifyContent: "flexStart",
2206
+ alignItems: "center",
2207
+ children: t.currentItem && /* @__PURE__ */ o(di, { item: t.currentItem })
2208
+ }
2209
+ )
2210
+ ), mi = $(
2195
2211
  ({ playerStore: t }) => /* @__PURE__ */ o(
2196
- G,
2212
+ H,
2197
2213
  {
2198
2214
  title: "Mute",
2199
2215
  "aria-label": "Mute",
2200
- iconType: Gt,
2216
+ iconType: qt,
2201
2217
  size: "s",
2202
2218
  iconSize: "l",
2203
2219
  disabled: !t.controller.supports("setMuted")
2204
2220
  }
2205
2221
  )
2206
- ), vi = N(
2222
+ ), hi = $(
2207
2223
  ({
2208
2224
  playerStore: t,
2209
2225
  button: e,
2210
2226
  isOpen: n,
2211
2227
  closePopover: i
2212
2228
  }) => {
2213
- const [a, l] = q("0"), d = ne();
2214
- Fr(() => {
2229
+ const [a, l] = W("0"), d = re();
2230
+ _r(() => {
2215
2231
  n && d.getVolume().then((m) => {
2216
2232
  m !== void 0 && l(Math.floor(m * 100).toString());
2217
2233
  });
2218
2234
  }, [n, d]);
2219
- const h = D(
2235
+ const h = N(
2220
2236
  async (m) => {
2221
2237
  l(m.currentTarget.value), await d.setVolume(Number(m.currentTarget.value) / 100);
2222
2238
  },
2223
2239
  [d]
2224
2240
  );
2225
2241
  return /* @__PURE__ */ o(
2226
- lt,
2242
+ ze,
2227
2243
  {
2228
2244
  button: e,
2229
2245
  isOpen: n,
2230
2246
  closePopover: i,
2231
2247
  anchorPosition: "upRight",
2232
- children: /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ j(
2248
+ children: /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ j(
2233
2249
  se,
2234
2250
  {
2235
2251
  responsive: !1,
@@ -2237,9 +2253,9 @@ const nr = Lt(void 0), $i = ({
2237
2253
  justifyContent: "center",
2238
2254
  alignItems: "center",
2239
2255
  children: [
2240
- /* @__PURE__ */ o(hi, { playerStore: t }),
2256
+ /* @__PURE__ */ o(mi, { playerStore: t }),
2241
2257
  /* @__PURE__ */ o(
2242
- qt,
2258
+ Wt,
2243
2259
  {
2244
2260
  min: 0,
2245
2261
  max: 100,
@@ -2256,19 +2272,19 @@ const nr = Lt(void 0), $i = ({
2256
2272
  }
2257
2273
  );
2258
2274
  }
2259
- ), pi = N(
2275
+ ), vi = $(
2260
2276
  ({ playerStore: t }) => {
2261
- const [e, n] = q(!1);
2277
+ const [e, n] = W(!1);
2262
2278
  return /* @__PURE__ */ o(
2263
- vi,
2279
+ hi,
2264
2280
  {
2265
2281
  playerStore: t,
2266
2282
  button: /* @__PURE__ */ o(
2267
- G,
2283
+ H,
2268
2284
  {
2269
2285
  title: "Volume",
2270
2286
  "aria-label": "Volume",
2271
- iconType: Gt,
2287
+ iconType: qt,
2272
2288
  size: "s",
2273
2289
  iconSize: "l",
2274
2290
  onClick: () => n(!e),
@@ -2280,49 +2296,49 @@ const nr = Lt(void 0), $i = ({
2280
2296
  }
2281
2297
  );
2282
2298
  }
2283
- ), yi = ({
2299
+ ), pi = ({
2284
2300
  onClickPlayQueueButton: t
2285
2301
  }) => /* @__PURE__ */ o(
2286
- G,
2302
+ H,
2287
2303
  {
2288
2304
  title: "Play queue",
2289
2305
  "aria-label": "Play queue",
2290
- iconType: Tn,
2306
+ iconType: gn,
2291
2307
  size: "s",
2292
2308
  iconSize: "l",
2293
2309
  onClick: t
2294
2310
  }
2295
- ), gi = N(
2311
+ ), yi = $(
2296
2312
  ({
2297
2313
  playerStore: t,
2298
2314
  playQueueStore: e,
2299
2315
  closePopover: n
2300
2316
  }) => {
2301
- const i = ne(), a = D(async () => {
2317
+ const i = re(), a = N(async () => {
2302
2318
  const I = await i.getCurrentTime();
2303
2319
  I !== void 0 && await i.setCurrentTime(I - 10), n();
2304
- }, [i, n]), l = D(async () => {
2320
+ }, [i, n]), l = N(async () => {
2305
2321
  const I = await i.getCurrentTime();
2306
2322
  I !== void 0 && await i.setCurrentTime(I + 30), n();
2307
- }, [i, n]), d = D(
2323
+ }, [i, n]), d = N(
2308
2324
  async (I) => {
2309
2325
  await i.setPlaybackRate(I), n();
2310
2326
  },
2311
2327
  [i, n]
2312
- ), h = D(async () => {
2328
+ ), h = N(async () => {
2313
2329
  e.currentItem !== void 0 && await e.removeItems([
2314
2330
  e.currentItem
2315
2331
  ]), n();
2316
- }, [e, n]), [m, p] = q(), E = D(async () => {
2332
+ }, [e, n]), [m, p] = W(), E = N(async () => {
2317
2333
  await t.controller.getPlaybackRate().then((I) => p(I));
2318
- }, [t]), R = st(
2334
+ }, [t]), P = De(
2319
2335
  () => [
2320
2336
  {
2321
2337
  id: 0,
2322
2338
  items: [
2323
2339
  {
2324
2340
  name: "Speed",
2325
- icon: /* @__PURE__ */ o(H, { type: gn }),
2341
+ icon: /* @__PURE__ */ o(B, { type: vn }),
2326
2342
  panel: 1,
2327
2343
  onClick: E,
2328
2344
  disabled: !t.controller.supports(
@@ -2331,7 +2347,7 @@ const nr = Lt(void 0), $i = ({
2331
2347
  },
2332
2348
  {
2333
2349
  name: "Skip back 10 seconds",
2334
- icon: /* @__PURE__ */ o(H, { type: bn }),
2350
+ icon: /* @__PURE__ */ o(B, { type: pn }),
2335
2351
  onClick: a,
2336
2352
  disabled: e.isEmpty || !t.controller.supports(
2337
2353
  "setCurrentTime"
@@ -2339,7 +2355,7 @@ const nr = Lt(void 0), $i = ({
2339
2355
  },
2340
2356
  {
2341
2357
  name: "Skip forward 30 seconds",
2342
- icon: /* @__PURE__ */ o(H, { type: En }),
2358
+ icon: /* @__PURE__ */ o(B, { type: yn }),
2343
2359
  onClick: l,
2344
2360
  disabled: e.isEmpty || !t.controller.supports(
2345
2361
  "setCurrentTime"
@@ -2350,7 +2366,7 @@ const nr = Lt(void 0), $i = ({
2350
2366
  },
2351
2367
  {
2352
2368
  name: "Remove from play queue",
2353
- icon: /* @__PURE__ */ o(H, { type: dt }),
2369
+ icon: /* @__PURE__ */ o(B, { type: ut }),
2354
2370
  onClick: h,
2355
2371
  disabled: e.isEmpty
2356
2372
  }
@@ -2382,9 +2398,9 @@ const nr = Lt(void 0), $i = ({
2382
2398
  m
2383
2399
  ]
2384
2400
  );
2385
- return /* @__PURE__ */ o(Wt, { initialPanelId: 0, panels: R });
2401
+ return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: P });
2386
2402
  }
2387
- ), bi = me(
2403
+ ), gi = ne(
2388
2404
  ({
2389
2405
  playerStore: t,
2390
2406
  playQueueStore: e,
@@ -2392,7 +2408,7 @@ const nr = Lt(void 0), $i = ({
2392
2408
  isOpen: i,
2393
2409
  closePopover: a
2394
2410
  }) => /* @__PURE__ */ o(
2395
- lt,
2411
+ ze,
2396
2412
  {
2397
2413
  button: n,
2398
2414
  isOpen: i,
@@ -2400,7 +2416,7 @@ const nr = Lt(void 0), $i = ({
2400
2416
  panelPaddingSize: "none",
2401
2417
  anchorPosition: "upRight",
2402
2418
  children: /* @__PURE__ */ o(
2403
- gi,
2419
+ yi,
2404
2420
  {
2405
2421
  playerStore: t,
2406
2422
  playQueueStore: e,
@@ -2409,20 +2425,20 @@ const nr = Lt(void 0), $i = ({
2409
2425
  )
2410
2426
  }
2411
2427
  )
2412
- ), Ei = me(
2428
+ ), bi = ne(
2413
2429
  ({ playerStore: t, playQueueStore: e }) => {
2414
- const [n, i] = q(!1);
2430
+ const [n, i] = W(!1);
2415
2431
  return /* @__PURE__ */ o(
2416
- bi,
2432
+ gi,
2417
2433
  {
2418
2434
  playerStore: t,
2419
2435
  playQueueStore: e,
2420
2436
  button: /* @__PURE__ */ o(
2421
- G,
2437
+ H,
2422
2438
  {
2423
2439
  title: "More options",
2424
2440
  "aria-label": "More options",
2425
- iconType: Ht,
2441
+ iconType: Ut,
2426
2442
  size: "s",
2427
2443
  iconSize: "l",
2428
2444
  onClick: () => i(!n)
@@ -2433,7 +2449,7 @@ const nr = Lt(void 0), $i = ({
2433
2449
  }
2434
2450
  );
2435
2451
  }
2436
- ), Ti = me(
2452
+ ), Ei = ne(
2437
2453
  ({
2438
2454
  playerStore: t,
2439
2455
  playQueueStore: e,
@@ -2446,15 +2462,15 @@ const nr = Lt(void 0), $i = ({
2446
2462
  justifyContent: "flexEnd",
2447
2463
  alignItems: "center",
2448
2464
  children: [
2449
- /* @__PURE__ */ o(pi, { playerStore: t }),
2465
+ /* @__PURE__ */ o(vi, { playerStore: t }),
2450
2466
  n && /* @__PURE__ */ o(
2451
- yi,
2467
+ pi,
2452
2468
  {
2453
2469
  onClickPlayQueueButton: n
2454
2470
  }
2455
2471
  ),
2456
2472
  /* @__PURE__ */ o(
2457
- Ei,
2473
+ bi,
2458
2474
  {
2459
2475
  playerStore: t,
2460
2476
  playQueueStore: e
@@ -2463,20 +2479,20 @@ const nr = Lt(void 0), $i = ({
2463
2479
  ]
2464
2480
  }
2465
2481
  )
2466
- ), Ci = N(
2482
+ ), Ti = $(
2467
2483
  ({ playerStore: t, playQueueStore: e }) => {
2468
- const n = ne(), i = D(
2484
+ const n = re(), i = N(
2469
2485
  (d) => {
2470
2486
  const h = Number(d.currentTarget.value) / 100;
2471
2487
  t.setPercent(h);
2472
2488
  },
2473
2489
  [t]
2474
- ), a = D(
2490
+ ), a = N(
2475
2491
  (d) => {
2476
2492
  d.button === 0 && t.setSeeking(!0);
2477
2493
  },
2478
2494
  [t]
2479
- ), l = D(
2495
+ ), l = N(
2480
2496
  async (d) => {
2481
2497
  if (d.button === 0) {
2482
2498
  const h = Number(d.currentTarget.value) / 100;
@@ -2488,7 +2504,7 @@ const nr = Lt(void 0), $i = ({
2488
2504
  [t, n]
2489
2505
  );
2490
2506
  return /* @__PURE__ */ o(
2491
- qt,
2507
+ Wt,
2492
2508
  {
2493
2509
  min: 0,
2494
2510
  max: 100,
@@ -2504,35 +2520,35 @@ const nr = Lt(void 0), $i = ({
2504
2520
  }
2505
2521
  );
2506
2522
  }
2507
- ), zi = N(
2523
+ ), $i = $(
2508
2524
  ({
2509
2525
  playerStore: t,
2510
2526
  playQueueStore: e,
2511
2527
  onClickPlayQueueButton: n
2512
- }) => /* @__PURE__ */ o(rn, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
2513
- /* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
2514
- Ci,
2528
+ }) => /* @__PURE__ */ o(Zr, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
2529
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(
2530
+ Ti,
2515
2531
  {
2516
2532
  playerStore: t,
2517
2533
  playQueueStore: e
2518
2534
  }
2519
2535
  ) }),
2520
- /* @__PURE__ */ o(J, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
2521
- /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2522
- mi,
2536
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
2537
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2538
+ fi,
2523
2539
  {
2524
2540
  playQueueStore: e
2525
2541
  }
2526
2542
  ) }),
2527
- /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2528
- fi,
2543
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2544
+ ci,
2529
2545
  {
2530
2546
  playerStore: t,
2531
2547
  playQueueStore: e
2532
2548
  }
2533
2549
  ) }),
2534
- /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2535
- Ti,
2550
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2551
+ Ei,
2536
2552
  {
2537
2553
  playerStore: t,
2538
2554
  playQueueStore: e,
@@ -2541,31 +2557,31 @@ const nr = Lt(void 0), $i = ({
2541
2557
  ) })
2542
2558
  ] }) })
2543
2559
  ] }) })
2544
- ), Li = (t) => /* @__PURE__ */ o($r, { ...t }), ot = {
2560
+ ), Di = (t) => /* @__PURE__ */ o(Mr, { ...t }), ot = {
2545
2561
  width: 400,
2546
2562
  height: 225
2547
- }, Vi = N(
2563
+ }, zi = $(
2548
2564
  ({ children: t }) => {
2549
- const e = ir();
2565
+ const e = rr();
2550
2566
  return /* @__PURE__ */ j(
2551
- ct,
2567
+ lt,
2552
2568
  {
2553
2569
  panelled: !0,
2554
2570
  style: {
2555
- minBlockSize: `max(460px, 100vh - ${Jt}px)`
2571
+ minBlockSize: `max(460px, 100vh - ${Ht}px)`
2556
2572
  },
2557
2573
  children: [
2558
2574
  t,
2559
- !e.isEmpty && /* @__PURE__ */ o(Ut, { style: { blockSize: ot.height } })
2575
+ !e.isEmpty && /* @__PURE__ */ o(Bt, { style: { blockSize: ot.height } })
2560
2576
  ]
2561
2577
  }
2562
2578
  );
2563
2579
  }
2564
- ), Yi = N(
2580
+ ), Li = $(
2565
2581
  ({ playerStore: t, playQueueStore: e }) => {
2566
- const n = ne(), i = D(async () => {
2582
+ const n = re(), i = N(async () => {
2567
2583
  e.interacted && await n.play();
2568
- }, [e, n]), a = D(async () => {
2584
+ }, [e, n]), a = N(async () => {
2569
2585
  switch (e.repeat) {
2570
2586
  case w.One:
2571
2587
  await n.setCurrentTime(0);
@@ -2585,7 +2601,7 @@ const nr = Lt(void 0), $i = ({
2585
2601
  await e.next();
2586
2602
  break;
2587
2603
  }
2588
- }, [e, t, n]), l = st(
2604
+ }, [e, t, n]), l = De(
2589
2605
  () => ({
2590
2606
  onLoaded: i,
2591
2607
  onPlay: t.onPlay,
@@ -2601,7 +2617,7 @@ const nr = Lt(void 0), $i = ({
2601
2617
  css: {
2602
2618
  position: "fixed",
2603
2619
  right: 0,
2604
- bottom: Jt,
2620
+ bottom: Ht,
2605
2621
  width: ot.width,
2606
2622
  height: ot.height,
2607
2623
  zIndex: 998,
@@ -2610,7 +2626,7 @@ const nr = Lt(void 0), $i = ({
2610
2626
  flexDirection: "column"
2611
2627
  },
2612
2628
  children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
2613
- Dr,
2629
+ Fr,
2614
2630
  {
2615
2631
  src: e.currentItem.url,
2616
2632
  options: l,
@@ -2621,17 +2637,17 @@ const nr = Lt(void 0), $i = ({
2621
2637
  );
2622
2638
  }
2623
2639
  );
2624
- class xi {
2640
+ class Ci {
2641
+ controller = jr;
2642
+ playing = !1;
2643
+ percent = 0;
2644
+ seeking = !1;
2625
2645
  constructor(e) {
2626
- B(this, "controller", zr);
2627
- B(this, "playing", !1);
2628
- B(this, "percent", 0);
2629
- B(this, "seeking", !1);
2630
2646
  e.makeObservable(this, {
2631
- controller: Z,
2632
- playing: Z,
2633
- percent: Z,
2634
- seeking: Z,
2647
+ controller: X,
2648
+ playing: X,
2649
+ percent: X,
2650
+ seeking: X,
2635
2651
  setPlaying: y,
2636
2652
  setPercent: y,
2637
2653
  setSeeking: y,
@@ -2667,28 +2683,28 @@ class xi {
2667
2683
  e !== void 0 && (this.seeking || (this.percent = e));
2668
2684
  }
2669
2685
  }
2670
- const or = Lt(void 0), Bi = ({
2686
+ const nr = zt(void 0), Vi = ({
2671
2687
  children: t
2672
2688
  }) => {
2673
- const [e] = q(
2674
- () => new xi(new Kt())
2689
+ const [e] = W(
2690
+ () => new Ci(new Gt())
2675
2691
  );
2676
- return /* @__PURE__ */ o(or.Provider, { value: e, children: t });
2677
- }, Wi = () => at(or);
2692
+ return /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
2693
+ }, Yi = () => at(nr);
2678
2694
  export {
2679
- zi as BottomBar,
2680
- Li as HydrangeanDivaProvider,
2681
- Vi as MediaPlayerLayout,
2682
- Yi as MiniPlayer,
2683
- Kt as MobXObservableStateProvider,
2684
- Ni as ObservableStateProvider,
2685
- oi as PlayQueue,
2686
- Di as PlayQueuePage,
2687
- $i as PlayQueueStoreProvider,
2688
- Bi as PlayerStoreProvider,
2695
+ $i as BottomBar,
2696
+ Di as HydrangeanDivaProvider,
2697
+ zi as MediaPlayerLayout,
2698
+ Li as MiniPlayer,
2699
+ Gt as MobXObservableStateProvider,
2700
+ Fi as ObservableStateProvider,
2701
+ ri as PlayQueue,
2702
+ Ni as PlayQueuePage,
2703
+ ji as PlayQueueStoreProvider,
2704
+ Vi as PlayerStoreProvider,
2689
2705
  w as RepeatMode,
2690
- Jt as bottomBarHeight,
2691
- ir as usePlayQueueStore,
2692
- Wi as usePlayerStore
2706
+ Ht as bottomBarHeight,
2707
+ rr as usePlayQueueStore,
2708
+ Yi as usePlayerStore
2693
2709
  };
2694
2710
  //# sourceMappingURL=index.es.js.map