twist-aplayer 1.0.1 → 1.0.3

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as ee from "react";
2
- import _e, { useMemo as K, useRef as F, useState as H, useEffect as I, useCallback as L } from "react";
2
+ import _e, { useMemo as K, useRef as F, useState as H, useEffect as k, useCallback as L } from "react";
3
3
  var be = { exports: {} }, ie = {};
4
4
  /**
5
5
  * @license React
@@ -15,14 +15,14 @@ function Br() {
15
15
  if (er) return ie;
16
16
  er = 1;
17
17
  var e = _e, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function p(y, s, d) {
18
+ function y(p, s, d) {
19
19
  var b, l = {}, c = null, E = null;
20
20
  d !== void 0 && (c = "" + d), s.key !== void 0 && (c = "" + s.key), s.ref !== void 0 && (E = s.ref);
21
21
  for (b in s) a.call(s, b) && !f.hasOwnProperty(b) && (l[b] = s[b]);
22
- if (y && y.defaultProps) for (b in s = y.defaultProps, s) l[b] === void 0 && (l[b] = s[b]);
23
- return { $$typeof: t, type: y, key: c, ref: E, props: l, _owner: i.current };
22
+ if (p && p.defaultProps) for (b in s = p.defaultProps, s) l[b] === void 0 && (l[b] = s[b]);
23
+ return { $$typeof: t, type: p, key: c, ref: E, props: l, _owner: i.current };
24
24
  }
25
- return ie.Fragment = n, ie.jsx = p, ie.jsxs = p, ie;
25
+ return ie.Fragment = n, ie.jsx = y, ie.jsxs = y, ie;
26
26
  }
27
27
  var oe = {};
28
28
  /**
@@ -37,7 +37,7 @@ var oe = {};
37
37
  var rr;
38
38
  function zr() {
39
39
  return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = _e, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), y = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), S = Symbol.iterator, o = "@@iterator";
40
+ var e = _e, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), p = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), S = Symbol.iterator, o = "@@iterator";
41
41
  function h(r) {
42
42
  if (r === null || typeof r != "object")
43
43
  return null;
@@ -56,8 +56,8 @@ function zr() {
56
56
  {
57
57
  var _ = g.ReactDebugCurrentFrame, j = _.getStackAddendum();
58
58
  j !== "" && (u += "%s", m = m.concat([j]));
59
- var R = m.map(function(w) {
60
- return String(w);
59
+ var R = m.map(function(T) {
60
+ return String(T);
61
61
  });
62
62
  R.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, R);
63
63
  }
@@ -65,13 +65,13 @@ function zr() {
65
65
  var C = !1, re = !1, U = !1, B = !1, ce = !1, le;
66
66
  le = Symbol.for("react.module.reference");
67
67
  function Se(r) {
68
- return !!(typeof r == "string" || typeof r == "function" || r === a || r === f || ce || r === i || r === d || r === b || B || r === E || C || re || U || typeof r == "object" && r !== null && (r.$$typeof === c || r.$$typeof === l || r.$$typeof === p || r.$$typeof === y || r.$$typeof === s || // This needs to include all possible module reference object
68
+ return !!(typeof r == "string" || typeof r == "function" || r === a || r === f || ce || r === i || r === d || r === b || B || r === E || C || re || U || typeof r == "object" && r !== null && (r.$$typeof === c || r.$$typeof === l || r.$$typeof === y || r.$$typeof === p || r.$$typeof === s || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
72
72
  r.$$typeof === le || r.getModuleId !== void 0));
73
73
  }
74
- function Te(r, u, m) {
74
+ function we(r, u, m) {
75
75
  var _ = r.displayName;
76
76
  if (_)
77
77
  return _;
@@ -81,7 +81,7 @@ function zr() {
81
81
  function fe(r) {
82
82
  return r.displayName || "Context";
83
83
  }
84
- function V(r) {
84
+ function I(r) {
85
85
  if (r == null)
86
86
  return null;
87
87
  if (typeof r.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
@@ -104,21 +104,21 @@ function zr() {
104
104
  }
105
105
  if (typeof r == "object")
106
106
  switch (r.$$typeof) {
107
- case y:
107
+ case p:
108
108
  var u = r;
109
109
  return fe(u) + ".Consumer";
110
- case p:
110
+ case y:
111
111
  var m = r;
112
112
  return fe(m._context) + ".Provider";
113
113
  case s:
114
- return Te(r, r.render, "ForwardRef");
114
+ return we(r, r.render, "ForwardRef");
115
115
  case l:
116
116
  var _ = r.displayName || null;
117
- return _ !== null ? _ : V(r.type) || "Memo";
117
+ return _ !== null ? _ : I(r.type) || "Memo";
118
118
  case c: {
119
- var j = r, R = j._payload, w = j._init;
119
+ var j = r, R = j._payload, T = j._init;
120
120
  try {
121
- return V(w(R));
121
+ return I(T(R));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -126,11 +126,11 @@ function zr() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var k = Object.assign, Y = 0, J, te, ne, ae, O, de, De;
129
+ var V = Object.assign, Y = 0, J, te, ne, ae, O, de, De;
130
130
  function ke() {
131
131
  }
132
132
  ke.__reactDisabledLog = !0;
133
- function yr() {
133
+ function pr() {
134
134
  {
135
135
  if (Y === 0) {
136
136
  J = console.log, te = console.info, ne = console.warn, ae = console.error, O = console.group, de = console.groupCollapsed, De = console.groupEnd;
@@ -162,25 +162,25 @@ function zr() {
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: k({}, r, {
165
+ log: V({}, r, {
166
166
  value: J
167
167
  }),
168
- info: k({}, r, {
168
+ info: V({}, r, {
169
169
  value: te
170
170
  }),
171
- warn: k({}, r, {
171
+ warn: V({}, r, {
172
172
  value: ne
173
173
  }),
174
- error: k({}, r, {
174
+ error: V({}, r, {
175
175
  value: ae
176
176
  }),
177
- group: k({}, r, {
177
+ group: V({}, r, {
178
178
  value: O
179
179
  }),
180
- groupCollapsed: k({}, r, {
180
+ groupCollapsed: V({}, r, {
181
181
  value: de
182
182
  }),
183
- groupEnd: k({}, r, {
183
+ groupEnd: V({}, r, {
184
184
  value: De
185
185
  })
186
186
  });
@@ -188,7 +188,7 @@ function zr() {
188
188
  Y < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var we = g.ReactCurrentDispatcher, je;
191
+ var Te = g.ReactCurrentDispatcher, je;
192
192
  function ve(r, u, m) {
193
193
  {
194
194
  if (je === void 0)
@@ -207,7 +207,7 @@ function zr() {
207
207
  var gr = typeof WeakMap == "function" ? WeakMap : Map;
208
208
  me = new gr();
209
209
  }
210
- function Ie(r, u) {
210
+ function Ve(r, u) {
211
211
  if (!r || Oe)
212
212
  return "";
213
213
  {
@@ -220,30 +220,30 @@ function zr() {
220
220
  var j = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var R;
223
- R = we.current, we.current = null, yr();
223
+ R = Te.current, Te.current = null, pr();
224
224
  try {
225
225
  if (u) {
226
- var w = function() {
226
+ var T = function() {
227
227
  throw Error();
228
228
  };
229
- if (Object.defineProperty(w.prototype, "props", {
229
+ if (Object.defineProperty(T.prototype, "props", {
230
230
  set: function() {
231
231
  throw Error();
232
232
  }
233
233
  }), typeof Reflect == "object" && Reflect.construct) {
234
234
  try {
235
- Reflect.construct(w, []);
235
+ Reflect.construct(T, []);
236
236
  } catch (z) {
237
237
  _ = z;
238
238
  }
239
- Reflect.construct(r, [], w);
239
+ Reflect.construct(r, [], T);
240
240
  } else {
241
241
  try {
242
- w.call();
242
+ T.call();
243
243
  } catch (z) {
244
244
  _ = z;
245
245
  }
246
- r.call(w.prototype);
246
+ r.call(T.prototype);
247
247
  }
248
248
  } else {
249
249
  try {
@@ -255,17 +255,17 @@ function zr() {
255
255
  }
256
256
  } catch (z) {
257
257
  if (z && _ && typeof z.stack == "string") {
258
- for (var T = z.stack.split(`
258
+ for (var w = z.stack.split(`
259
259
  `), M = _.stack.split(`
260
- `), $ = T.length - 1, A = M.length - 1; $ >= 1 && A >= 0 && T[$] !== M[A]; )
260
+ `), $ = w.length - 1, A = M.length - 1; $ >= 1 && A >= 0 && w[$] !== M[A]; )
261
261
  A--;
262
262
  for (; $ >= 1 && A >= 0; $--, A--)
263
- if (T[$] !== M[A]) {
263
+ if (w[$] !== M[A]) {
264
264
  if ($ !== 1 || A !== 1)
265
265
  do
266
- if ($--, A--, A < 0 || T[$] !== M[A]) {
266
+ if ($--, A--, A < 0 || w[$] !== M[A]) {
267
267
  var D = `
268
- ` + T[$].replace(" at new ", " at ");
268
+ ` + w[$].replace(" at new ", " at ");
269
269
  return r.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", r.displayName)), typeof r == "function" && me.set(r, D), D;
270
270
  }
271
271
  while ($ >= 1 && A >= 0);
@@ -273,13 +273,13 @@ function zr() {
273
273
  }
274
274
  }
275
275
  } finally {
276
- Oe = !1, we.current = R, br(), Error.prepareStackTrace = j;
276
+ Oe = !1, Te.current = R, br(), Error.prepareStackTrace = j;
277
277
  }
278
278
  var Q = r ? r.displayName || r.name : "", Ze = Q ? ve(Q) : "";
279
279
  return typeof r == "function" && me.set(r, Ze), Ze;
280
280
  }
281
281
  function Er(r, u, m) {
282
- return Ie(r, !1);
282
+ return Ve(r, !1);
283
283
  }
284
284
  function xr(r) {
285
285
  var u = r.prototype;
@@ -289,7 +289,7 @@ function zr() {
289
289
  if (r == null)
290
290
  return "";
291
291
  if (typeof r == "function")
292
- return Ie(r, xr(r));
292
+ return Ve(r, xr(r));
293
293
  if (typeof r == "string")
294
294
  return ve(r);
295
295
  switch (r) {
@@ -314,8 +314,8 @@ function zr() {
314
314
  }
315
315
  return "";
316
316
  }
317
- var pe = Object.prototype.hasOwnProperty, Ve = {}, Fe = g.ReactDebugCurrentFrame;
318
- function ye(r) {
317
+ var ye = Object.prototype.hasOwnProperty, Ie = {}, Fe = g.ReactDebugCurrentFrame;
318
+ function pe(r) {
319
319
  if (r) {
320
320
  var u = r._owner, m = he(r.type, r._source, u ? u.type : null);
321
321
  Fe.setExtraStackFrame(m);
@@ -324,20 +324,20 @@ function zr() {
324
324
  }
325
325
  function _r(r, u, m, _, j) {
326
326
  {
327
- var R = Function.call.bind(pe);
328
- for (var w in r)
329
- if (R(r, w)) {
330
- var T = void 0;
327
+ var R = Function.call.bind(ye);
328
+ for (var T in r)
329
+ if (R(r, T)) {
330
+ var w = void 0;
331
331
  try {
332
- if (typeof r[w] != "function") {
333
- var M = Error((_ || "React class") + ": " + m + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
332
+ if (typeof r[T] != "function") {
333
+ var M = Error((_ || "React class") + ": " + m + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw M.name = "Invariant Violation", M;
335
335
  }
336
- T = r[w](u, w, _, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ w = r[T](u, T, _, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch ($) {
338
- T = $;
338
+ w = $;
339
339
  }
340
- T && !(T instanceof Error) && (ye(j), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", m, w, typeof T), ye(null)), T instanceof Error && !(T.message in Ve) && (Ve[T.message] = !0, ye(j), x("Failed %s type: %s", m, T.message), ye(null));
340
+ w && !(w instanceof Error) && (pe(j), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", m, T, typeof w), pe(null)), w instanceof Error && !(w.message in Ie) && (Ie[w.message] = !0, pe(j), x("Failed %s type: %s", m, w.message), pe(null));
341
341
  }
342
342
  }
343
343
  }
@@ -345,13 +345,13 @@ function zr() {
345
345
  function Re(r) {
346
346
  return Sr(r);
347
347
  }
348
- function Tr(r) {
348
+ function wr(r) {
349
349
  {
350
350
  var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && r[Symbol.toStringTag] || r.constructor.name || "Object";
351
351
  return m;
352
352
  }
353
353
  }
354
- function wr(r) {
354
+ function Tr(r) {
355
355
  try {
356
356
  return Be(r), !1;
357
357
  } catch {
@@ -362,8 +362,8 @@ function zr() {
362
362
  return "" + r;
363
363
  }
364
364
  function ze(r) {
365
- if (wr(r))
366
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), Be(r);
365
+ if (Tr(r))
366
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(r)), Be(r);
367
367
  }
368
368
  var He = g.ReactCurrentOwner, jr = {
369
369
  key: !0,
@@ -372,7 +372,7 @@ function zr() {
372
372
  __source: !0
373
373
  }, We, Ue;
374
374
  function Or(r) {
375
- if (pe.call(r, "ref")) {
375
+ if (ye.call(r, "ref")) {
376
376
  var u = Object.getOwnPropertyDescriptor(r, "ref").get;
377
377
  if (u && u.isReactWarning)
378
378
  return !1;
@@ -380,7 +380,7 @@ function zr() {
380
380
  return r.ref !== void 0;
381
381
  }
382
382
  function Rr(r) {
383
- if (pe.call(r, "key")) {
383
+ if (ye.call(r, "key")) {
384
384
  var u = Object.getOwnPropertyDescriptor(r, "key").get;
385
385
  if (u && u.isReactWarning)
386
386
  return !1;
@@ -412,51 +412,51 @@ function zr() {
412
412
  });
413
413
  }
414
414
  }
415
- var Cr = function(r, u, m, _, j, R, w) {
416
- var T = {
415
+ var Cr = function(r, u, m, _, j, R, T) {
416
+ var w = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: t,
419
419
  // Built-in properties that belong on the element
420
420
  type: r,
421
421
  key: u,
422
422
  ref: m,
423
- props: w,
423
+ props: T,
424
424
  // Record the component responsible for creating this element.
425
425
  _owner: R
426
426
  };
427
- return T._store = {}, Object.defineProperty(T._store, "validated", {
427
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
428
428
  configurable: !1,
429
429
  enumerable: !1,
430
430
  writable: !0,
431
431
  value: !1
432
- }), Object.defineProperty(T, "_self", {
432
+ }), Object.defineProperty(w, "_self", {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
436
  value: _
437
- }), Object.defineProperty(T, "_source", {
437
+ }), Object.defineProperty(w, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
441
  value: j
442
- }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
442
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
443
443
  };
444
444
  function Ar(r, u, m, _, j) {
445
445
  {
446
- var R, w = {}, T = null, M = null;
447
- m !== void 0 && (ze(m), T = "" + m), Rr(u) && (ze(u.key), T = "" + u.key), Or(u) && (M = u.ref, Lr(u, j));
446
+ var R, T = {}, w = null, M = null;
447
+ m !== void 0 && (ze(m), w = "" + m), Rr(u) && (ze(u.key), w = "" + u.key), Or(u) && (M = u.ref, Lr(u, j));
448
448
  for (R in u)
449
- pe.call(u, R) && !jr.hasOwnProperty(R) && (w[R] = u[R]);
449
+ ye.call(u, R) && !jr.hasOwnProperty(R) && (T[R] = u[R]);
450
450
  if (r && r.defaultProps) {
451
451
  var $ = r.defaultProps;
452
452
  for (R in $)
453
- w[R] === void 0 && (w[R] = $[R]);
453
+ T[R] === void 0 && (T[R] = $[R]);
454
454
  }
455
- if (T || M) {
455
+ if (w || M) {
456
456
  var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
- T && Pr(w, A), M && $r(w, A);
457
+ w && Pr(T, A), M && $r(T, A);
458
458
  }
459
- return Cr(r, T, M, j, _, He.current, w);
459
+ return Cr(r, w, M, j, _, He.current, T);
460
460
  }
461
461
  }
462
462
  var Le = g.ReactCurrentOwner, Ye = g.ReactDebugCurrentFrame;
@@ -475,7 +475,7 @@ function zr() {
475
475
  function Ge() {
476
476
  {
477
477
  if (Le.current) {
478
- var r = V(Le.current.type);
478
+ var r = I(Le.current.type);
479
479
  if (r)
480
480
  return `
481
481
 
@@ -510,7 +510,7 @@ Check the top-level render call using <` + m + ">.");
510
510
  return;
511
511
  Ke[m] = !0;
512
512
  var _ = "";
513
- r && r._owner && r._owner !== Le.current && (_ = " It was passed a child from " + V(r._owner.type) + "."), X(r), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, _), X(null);
513
+ r && r._owner && r._owner !== Le.current && (_ = " It was passed a child from " + I(r._owner.type) + "."), X(r), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, _), X(null);
514
514
  }
515
515
  }
516
516
  function Xe(r, u) {
@@ -527,8 +527,8 @@ Check the top-level render call using <` + m + ">.");
527
527
  else if (r) {
528
528
  var j = h(r);
529
529
  if (typeof j == "function" && j !== r.entries)
530
- for (var R = j.call(r), w; !(w = R.next()).done; )
531
- $e(w.value) && Je(w.value, u);
530
+ for (var R = j.call(r), T; !(T = R.next()).done; )
531
+ $e(T.value) && Je(T.value, u);
532
532
  }
533
533
  }
534
534
  }
@@ -547,11 +547,11 @@ Check the top-level render call using <` + m + ">.");
547
547
  else
548
548
  return;
549
549
  if (m) {
550
- var _ = V(u);
550
+ var _ = I(u);
551
551
  _r(m, r.props, "prop", _, r);
552
552
  } else if (u.PropTypes !== void 0 && !Pe) {
553
553
  Pe = !0;
554
- var j = V(u);
554
+ var j = I(u);
555
555
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
556
556
  }
557
557
  typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -571,19 +571,19 @@ Check the top-level render call using <` + m + ">.");
571
571
  }
572
572
  function Qe(r, u, m, _, j, R) {
573
573
  {
574
- var w = Se(r);
575
- if (!w) {
576
- var T = "";
577
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
574
+ var T = Se(r);
575
+ if (!T) {
576
+ var w = "";
577
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
578
  var M = Nr();
579
- M ? T += M : T += Ge();
579
+ M ? w += M : w += Ge();
580
580
  var $;
581
- r === null ? $ = "null" : Re(r) ? $ = "array" : r !== void 0 && r.$$typeof === t ? ($ = "<" + (V(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof r, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, T);
581
+ r === null ? $ = "null" : Re(r) ? $ = "array" : r !== void 0 && r.$$typeof === t ? ($ = "<" + (I(r.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof r, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
582
582
  }
583
583
  var A = Ar(r, u, m, j, R);
584
584
  if (A == null)
585
585
  return A;
586
- if (w) {
586
+ if (T) {
587
587
  var D = u.children;
588
588
  if (D !== void 0)
589
589
  if (_)
@@ -602,11 +602,11 @@ Check the top-level render call using <` + m + ">.");
602
602
  function kr(r, u, m) {
603
603
  return Qe(r, u, m, !0);
604
604
  }
605
- function Ir(r, u, m) {
605
+ function Vr(r, u, m) {
606
606
  return Qe(r, u, m, !1);
607
607
  }
608
- var Vr = Ir, Fr = kr;
609
- oe.Fragment = a, oe.jsx = Vr, oe.jsxs = Fr;
608
+ var Ir = Vr, Fr = kr;
609
+ oe.Fragment = a, oe.jsx = Ir, oe.jsxs = Fr;
610
610
  }()), oe;
611
611
  }
612
612
  var tr;
@@ -632,8 +632,8 @@ function Wr(e, t) {
632
632
  cv: (a) => ge(`${n()}-${e}-${a}`),
633
633
  cvm: (a, i = {}) => {
634
634
  const f = n();
635
- for (const p of Object.keys(a))
636
- i[ge(`${f}-${e}-${p}`)] = a[p];
635
+ for (const y of Object.keys(a))
636
+ i[ge(`${f}-${e}-${y}`)] = a[y];
637
637
  return i;
638
638
  },
639
639
  gcv: (a) => nr(`${n()}-${e}-${a}`),
@@ -641,8 +641,8 @@ function Wr(e, t) {
641
641
  nv: (a) => ge(`${n()}-${a}`),
642
642
  nvm: (a, i = {}) => {
643
643
  const f = n();
644
- for (const p of Object.keys(a))
645
- i[ge(`${f}-${p}`)] = a[p];
644
+ for (const y of Object.keys(a))
645
+ i[ge(`${f}-${y}`)] = a[y];
646
646
  return i;
647
647
  },
648
648
  gnv: (a) => nr(`${n()}-${a}`),
@@ -689,19 +689,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
689
689
  function Kr(e, t) {
690
690
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
691
691
  if (n != null) {
692
- var a, i, f, p, y = [], s = !0, d = !1;
692
+ var a, i, f, y, p = [], s = !0, d = !1;
693
693
  try {
694
- if (f = (n = n.call(e)).next, t !== 0) for (; !(s = (a = f.call(n)).done) && (y.push(a.value), y.length !== t); s = !0) ;
694
+ if (f = (n = n.call(e)).next, t !== 0) for (; !(s = (a = f.call(n)).done) && (p.push(a.value), p.length !== t); s = !0) ;
695
695
  } catch (b) {
696
696
  d = !0, i = b;
697
697
  } finally {
698
698
  try {
699
- if (!s && n.return != null && (p = n.return(), Object(p) !== p)) return;
699
+ if (!s && n.return != null && (y = n.return(), Object(y) !== y)) return;
700
700
  } finally {
701
701
  if (d) throw i;
702
702
  }
703
703
  }
704
- return y;
704
+ return p;
705
705
  }
706
706
  }
707
707
  function Jr(e) {
@@ -723,19 +723,19 @@ function Xr(e, t) {
723
723
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
724
724
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
725
725
  }
726
- var f, p = !0, y = !1;
726
+ var f, y = !0, p = !1;
727
727
  return { s: function() {
728
728
  n = n.call(e);
729
729
  }, n: function() {
730
730
  var d = n.next();
731
- return p = d.done, d;
731
+ return y = d.done, d;
732
732
  }, e: function(d) {
733
- y = !0, f = d;
733
+ p = !0, f = d;
734
734
  }, f: function() {
735
735
  try {
736
- p || n.return == null || n.return();
736
+ y || n.return == null || n.return();
737
737
  } finally {
738
- if (y) throw f;
738
+ if (p) throw f;
739
739
  }
740
740
  } };
741
741
  }
@@ -817,14 +817,14 @@ function tt(e, t) {
817
817
  return n;
818
818
  }
819
819
  function nt(e) {
820
- var t = e.attrs, n = e.size, a = e.title, i = e.spin, f = e.rotate, p = e.color, y = rt(e, Ur), s = function(b) {
820
+ var t = e.attrs, n = e.size, a = e.title, i = e.spin, f = e.rotate, y = e.color, p = rt(e, Ur), s = function(b) {
821
821
  var l = n || b.size || "1em", c, E = "", S = "";
822
822
  return b.className && (c = b.className), e.className && (c = c ? "".concat(c, " ").concat(e.className) : e.className), i && (c ? c += " twist-icon-loading" : c = "twist-icon-loading"), f && (E = "rotate(".concat(f, "deg)"), S = "rotate(".concat(f, "deg)")), /* @__PURE__ */ ee.createElement("svg", xe({
823
823
  xmlns: "http://www.w3.org/2000/svg"
824
- }, b.attrs, t, y, {
824
+ }, b.attrs, t, p, {
825
825
  className: c,
826
826
  style: se(se({
827
- color: p || b.color,
827
+ color: y || b.color,
828
828
  msTransform: E,
829
829
  transform: S
830
830
  }, b.style), e.style),
@@ -840,7 +840,7 @@ function at(e) {
840
840
  var t = {}, n = e.split(";"), a = Xr(n), i;
841
841
  try {
842
842
  for (a.s(); !(i = a.n()).done; ) {
843
- var f = i.value, p = f.split(":"), y = Yr(p, 2), s = y[0], d = y[1];
843
+ var f = i.value, y = f.split(":"), p = Yr(y, 2), s = p[0], d = p[1];
844
844
  if (s && d) {
845
845
  var b = s.trim().replace(/-./g, function(l) {
846
846
  return l.charAt(1).toUpperCase();
@@ -894,22 +894,22 @@ function ut({
894
894
  playedPercentage: t,
895
895
  onSeek: n
896
896
  }) {
897
- const a = W("aplayer-bar"), i = W("aplayer-icon"), f = F(null), [p, y] = H(t), s = F(!1);
898
- I(() => {
899
- s.current || y(t);
897
+ const a = W("aplayer-bar"), i = W("aplayer-icon"), f = F(null), [y, p] = H(t), s = F(!1);
898
+ k(() => {
899
+ s.current || p(t);
900
900
  }, [t]);
901
901
  const d = L(
902
902
  (b) => {
903
903
  s.current = !0;
904
904
  const l = Ce(b, f);
905
- y(l);
905
+ p(l);
906
906
  const c = (S) => {
907
907
  const o = Ce(S, f);
908
- y(o);
908
+ p(o);
909
909
  }, E = (S) => {
910
910
  document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", E);
911
911
  const o = Ce(S, f);
912
- y(o), n == null || n(o), s.current = !1;
912
+ p(o), n == null || n(o), s.current = !1;
913
913
  };
914
914
  document.addEventListener("mousemove", c), document.addEventListener("mouseup", E);
915
915
  },
@@ -929,12 +929,12 @@ function ut({
929
929
  style: { width: `${e * 100}%` }
930
930
  }
931
931
  ) : null,
932
- typeof p < "u" ? /* @__PURE__ */ v.jsx(
932
+ typeof y < "u" ? /* @__PURE__ */ v.jsx(
933
933
  "div",
934
934
  {
935
935
  className: a.be("played"),
936
936
  style: {
937
- width: `${p * 100}%`
937
+ width: `${y * 100}%`
938
938
  },
939
939
  children: /* @__PURE__ */ v.jsx(
940
940
  "span",
@@ -973,22 +973,22 @@ function mt(e) {
973
973
  function ht(e) {
974
974
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
975
975
  }
976
- function pt(e) {
976
+ function yt(e) {
977
977
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M19 11.975q0-2.075-1.1-3.787t-2.95-2.563q-.375-.175-.55-.537t-.05-.738q.15-.4.538-.575t.787 0Q18.1 4.85 19.55 7.063T21 11.974t-1.45 4.913t-3.875 3.287q-.4.175-.788 0t-.537-.575q-.125-.375.05-.737t.55-.538q1.85-.85 2.95-2.562t1.1-3.788M7 15H4q-.425 0-.712-.288T3 14v-4q0-.425.288-.712T4 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T10.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.513.013T14 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
978
978
  }
979
- function yt({
979
+ function pt({
980
980
  volume: e,
981
981
  muted: t,
982
982
  onToggleMuted: n,
983
983
  onChangeVolume: a
984
984
  }) {
985
- const i = W("aplayer-volumn"), f = W("aplayer-icon"), p = F(null), [y, s] = H(!1), d = L(
985
+ const i = W("aplayer-volumn"), f = W("aplayer-icon"), y = F(null), [p, s] = H(!1), d = L(
986
986
  (b) => {
987
- a(Ae(b, p)), s(!0);
987
+ a(Ae(b, y)), s(!0);
988
988
  const l = (E) => {
989
- a(Ae(E, p));
989
+ a(Ae(E, y));
990
990
  }, c = (E) => {
991
- document.removeEventListener("mouseup", c), document.removeEventListener("mousemove", l), s(!1), a(Ae(E, p));
991
+ document.removeEventListener("mouseup", c), document.removeEventListener("mousemove", l), s(!1), a(Ae(E, y));
992
992
  };
993
993
  document.addEventListener("mousemove", l), document.addEventListener("mouseup", c);
994
994
  },
@@ -1001,16 +1001,16 @@ function yt({
1001
1001
  type: "button",
1002
1002
  className: P(f.b(), f.bs("volume-down")),
1003
1003
  onClick: () => n(),
1004
- children: t || !e ? /* @__PURE__ */ v.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ v.jsx(pt, {}) : /* @__PURE__ */ v.jsx(mt, {})
1004
+ children: t || !e ? /* @__PURE__ */ v.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ v.jsx(yt, {}) : /* @__PURE__ */ v.jsx(mt, {})
1005
1005
  }
1006
1006
  ),
1007
1007
  /* @__PURE__ */ v.jsx(
1008
1008
  "div",
1009
1009
  {
1010
1010
  className: P(i.be("bar-wrap"), {
1011
- [i.bem("bar-wrap", "active")]: y
1011
+ [i.bem("bar-wrap", "active")]: p
1012
1012
  }),
1013
- ref: p,
1013
+ ref: y,
1014
1014
  onMouseDown: d,
1015
1015
  children: /* @__PURE__ */ v.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ v.jsx(
1016
1016
  "div",
@@ -1030,7 +1030,7 @@ function ur(e) {
1030
1030
  return "--:--";
1031
1031
  if (Number.isNaN(e))
1032
1032
  return "00:00";
1033
- const t = (p) => p < 10 ? `0${p}` : `${p}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), f = Math.trunc(
1033
+ const t = (y) => y < 10 ? `0${y}` : `${y}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), f = Math.trunc(
1034
1034
  e / 60 - 60 * Math.trunc(e / 60 / 60)
1035
1035
  );
1036
1036
  return e >= 3600 ? `${t(i)}:${t(f)}:${t(a)}` : `${t(n)}:${t(a)}`;
@@ -1057,8 +1057,8 @@ function St({
1057
1057
  currentTime: a,
1058
1058
  audioDurationSeconds: i,
1059
1059
  bufferedSeconds: f,
1060
- onToggleMenu: p,
1061
- onToggleMuted: y,
1060
+ onToggleMenu: y,
1061
+ onToggleMuted: p,
1062
1062
  order: s,
1063
1063
  onOrderChange: d,
1064
1064
  loop: b,
@@ -1111,11 +1111,11 @@ function St({
1111
1111
  }
1112
1112
  ),
1113
1113
  /* @__PURE__ */ v.jsx(
1114
- yt,
1114
+ pt,
1115
1115
  {
1116
1116
  volume: e,
1117
1117
  muted: n,
1118
- onToggleMuted: y,
1118
+ onToggleMuted: p,
1119
1119
  onChangeVolume: t
1120
1120
  }
1121
1121
  ),
@@ -1146,7 +1146,7 @@ function St({
1146
1146
  {
1147
1147
  type: "button",
1148
1148
  className: P(C.b(), C.bs("menu")),
1149
- onClick: () => p == null ? void 0 : p(),
1149
+ onClick: () => y == null ? void 0 : y(),
1150
1150
  children: /* @__PURE__ */ v.jsx(Et, {})
1151
1151
  }
1152
1152
  ),
@@ -1164,15 +1164,15 @@ function St({
1164
1164
  ] })
1165
1165
  ] });
1166
1166
  }
1167
- function Tt({
1167
+ function wt({
1168
1168
  open: e,
1169
1169
  audio: t,
1170
1170
  playingAudioUrl: n,
1171
1171
  onPlayAudio: a,
1172
1172
  listMaxHeight: i
1173
1173
  }) {
1174
- const f = W("aplayer-list"), p = i ? { maxHeight: i } : void 0, y = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = F(null);
1175
- return I(() => {
1174
+ const f = W("aplayer-list"), y = i ? { maxHeight: i } : void 0, p = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = F(null);
1175
+ return k(() => {
1176
1176
  if (s.current) {
1177
1177
  const d = s.current;
1178
1178
  return d.style.maxHeight = `${Math.min(
@@ -1189,7 +1189,7 @@ function Tt({
1189
1189
  className: P(f.b(), {
1190
1190
  [f.bm("hide")]: !e
1191
1191
  }),
1192
- children: /* @__PURE__ */ v.jsx("ol", { style: p, children: t.map((d, b) => /* @__PURE__ */ v.jsxs(
1192
+ children: /* @__PURE__ */ v.jsx("ol", { style: y, children: t.map((d, b) => /* @__PURE__ */ v.jsxs(
1193
1193
  "li",
1194
1194
  {
1195
1195
  className: P({
@@ -1202,7 +1202,7 @@ function Tt({
1202
1202
  /* @__PURE__ */ v.jsx("span", { className: f.be("cur") }),
1203
1203
  /* @__PURE__ */ v.jsx("span", { className: f.be("index"), children: b + 1 }),
1204
1204
  /* @__PURE__ */ v.jsx("span", { className: f.be("title"), children: d.name ?? "Audio name" }),
1205
- /* @__PURE__ */ v.jsx("span", { className: f.be("author"), children: y(d.artist) })
1205
+ /* @__PURE__ */ v.jsx("span", { className: f.be("author"), children: p(d.artist) })
1206
1206
  ]
1207
1207
  },
1208
1208
  d.name || b
@@ -1211,14 +1211,14 @@ function Tt({
1211
1211
  );
1212
1212
  }
1213
1213
  function sr({ show: e, lrcText: t, currentTime: n }) {
1214
- const a = W("aplayer-lrc"), i = K(() => wt(t), [t]), f = K(() => {
1215
- for (let y = 0; y < i.length; y++) {
1216
- const s = i[y], d = i[y + 1];
1214
+ const a = W("aplayer-lrc"), i = K(() => Tt(t), [t]), f = K(() => {
1215
+ for (let p = 0; p < i.length; p++) {
1216
+ const s = i[p], d = i[p + 1];
1217
1217
  if (n >= s[0] && (!d || n < d[0]))
1218
- return y;
1218
+ return p;
1219
1219
  }
1220
1220
  return 0;
1221
- }, [n, i]), p = K(() => ({
1221
+ }, [n, i]), y = K(() => ({
1222
1222
  transform: `translateY(${-f * 16}px)`,
1223
1223
  WebkitTransform: `translateY(${-f * 16}px)`
1224
1224
  }), [f]);
@@ -1228,32 +1228,32 @@ function sr({ show: e, lrcText: t, currentTime: n }) {
1228
1228
  className: P(a.b(), {
1229
1229
  [a.bm("hide")]: !e
1230
1230
  }),
1231
- children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: p, children: i.map(([, y], s) => /* @__PURE__ */ v.jsx(
1231
+ children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: y, children: i.map(([, p], s) => /* @__PURE__ */ v.jsx(
1232
1232
  "p",
1233
1233
  {
1234
1234
  className: P({
1235
1235
  [a.be("current")]: s === f
1236
1236
  }),
1237
- children: y
1237
+ children: p
1238
1238
  },
1239
1239
  s
1240
1240
  )) }) : null
1241
1241
  }
1242
1242
  );
1243
1243
  }
1244
- function wt(e) {
1244
+ function Tt(e) {
1245
1245
  if (e) {
1246
1246
  e = e.replace(/([^\]^\n])\[/g, (i, f) => `${f}
1247
1247
  [`);
1248
1248
  const t = e.split(`
1249
1249
  `), n = [], a = t.length;
1250
1250
  for (let i = 0; i < a; i++) {
1251
- const f = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), p = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1251
+ const f = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), y = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1252
1252
  if (f) {
1253
- const y = f.length;
1254
- for (let s = 0; s < y; s++) {
1253
+ const p = f.length;
1254
+ for (let s = 0; s < p; s++) {
1255
1255
  const d = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(f[s]), b = d[1] * 60, l = Number.parseInt(d[2]), c = d[4] ? Number.parseInt(d[4]) / (`${d[4]}`.length === 2 ? 100 : 1e3) : 0, E = b + l + c;
1256
- n.push([E, p]);
1256
+ n.push([E, y]);
1257
1257
  }
1258
1258
  }
1259
1259
  }
@@ -1279,8 +1279,8 @@ function jt() {
1279
1279
  function t(l, c) {
1280
1280
  return l === c && (l !== 0 || 1 / l === 1 / c) || l !== l && c !== c;
1281
1281
  }
1282
- var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, f = e.useLayoutEffect, p = e.useDebugValue;
1283
- function y(l, c) {
1282
+ var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, f = e.useLayoutEffect, y = e.useDebugValue;
1283
+ function p(l, c) {
1284
1284
  var E = c(), S = a({ inst: { value: E, getSnapshot: c } }), o = S[0].inst, h = S[1];
1285
1285
  return f(
1286
1286
  function() {
@@ -1294,7 +1294,7 @@ function jt() {
1294
1294
  });
1295
1295
  },
1296
1296
  [l]
1297
- ), p(E), E;
1297
+ ), y(E), E;
1298
1298
  }
1299
1299
  function s(l) {
1300
1300
  var c = l.getSnapshot;
@@ -1309,7 +1309,7 @@ function jt() {
1309
1309
  function d(l, c) {
1310
1310
  return c();
1311
1311
  }
1312
- var b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : y;
1312
+ var b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : p;
1313
1313
  return Ne.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : b, Ne;
1314
1314
  }
1315
1315
  var qe = {};
@@ -1339,7 +1339,7 @@ function Ot() {
1339
1339
  "The result of getSnapshot should be cached to avoid an infinite loop"
1340
1340
  ), l = !0);
1341
1341
  }
1342
- h = p({
1342
+ h = y({
1343
1343
  inst: { value: o, getSnapshot: S }
1344
1344
  });
1345
1345
  var g = h[0].inst, x = h[1];
@@ -1348,7 +1348,7 @@ function Ot() {
1348
1348
  g.value = o, g.getSnapshot = S, n(g) && x({ inst: g });
1349
1349
  },
1350
1350
  [E, o, S]
1351
- ), y(
1351
+ ), p(
1352
1352
  function() {
1353
1353
  return n(g) && x({ inst: g }), E(function() {
1354
1354
  n(g) && x({ inst: g });
@@ -1371,7 +1371,7 @@ function Ot() {
1371
1371
  return S();
1372
1372
  }
1373
1373
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1374
- var i = _e, f = typeof Object.is == "function" ? Object.is : e, p = i.useState, y = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, b = !1, l = !1, c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1374
+ var i = _e, f = typeof Object.is == "function" ? Object.is : e, y = i.useState, p = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, b = !1, l = !1, c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1375
1375
  qe.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1376
1376
  }()), qe;
1377
1377
  }
@@ -1383,23 +1383,26 @@ var G = Rt();
1383
1383
  const Z = [];
1384
1384
  function Lt(e) {
1385
1385
  const t = F();
1386
- if (typeof document < "u" && !t.current) {
1387
- const n = t.current = document.createElement("audio");
1388
- typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), Z.includes(n) || Z.push(n);
1389
- }
1390
- return I(() => {
1386
+ return k(() => {
1387
+ if (typeof window < "u" && !t.current) {
1388
+ const n = t.current = document.createElement("audio");
1389
+ typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), Z.includes(n) || Z.push(n);
1390
+ }
1391
+ }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), k(() => {
1392
+ if (typeof window > "u") return;
1391
1393
  const n = t.current;
1392
1394
  if (n && (e != null && e.onError))
1393
1395
  return n.addEventListener("error", e.onError), () => {
1394
1396
  n.removeEventListener("error", e.onError);
1395
1397
  };
1396
- }, [e == null ? void 0 : e.onError]), I(() => {
1398
+ }, [e == null ? void 0 : e.onError]), k(() => {
1399
+ if (typeof window > "u") return;
1397
1400
  const n = t.current;
1398
1401
  if (n && (e != null && e.onEnded))
1399
1402
  return n.addEventListener("ended", e.onEnded), () => {
1400
1403
  n.removeEventListener("ended", e.onEnded);
1401
1404
  };
1402
- }, [e == null ? void 0 : e.onEnded]), I(() => () => {
1405
+ }, [e == null ? void 0 : e.onEnded]), k(() => () => {
1403
1406
  const n = t.current;
1404
1407
  if (n) {
1405
1408
  n.pause(), n.currentTime = 0;
@@ -1439,9 +1442,9 @@ function Pt(e) {
1439
1442
  t.current.currentTime = o;
1440
1443
  },
1441
1444
  [t]
1442
- ), p = L(() => {
1445
+ ), y = L(() => {
1443
1446
  t.current && (t.current.muted = !t.current.muted);
1444
- }, [t]), y = L(
1447
+ }, [t]), p = L(
1445
1448
  (o) => {
1446
1449
  t.current && (t.current.volume = o);
1447
1450
  },
@@ -1600,8 +1603,8 @@ function Pt(e) {
1600
1603
  playAudio: a,
1601
1604
  togglePlay: i,
1602
1605
  seek: f,
1603
- toggleMuted: p,
1604
- setVolume: y,
1606
+ toggleMuted: y,
1607
+ setVolume: p,
1605
1608
  volume: s,
1606
1609
  muted: d,
1607
1610
  currentTime: b,
@@ -1611,9 +1614,9 @@ function Pt(e) {
1611
1614
  isLoading: S
1612
1615
  };
1613
1616
  }
1614
- function pr() {
1617
+ function yr() {
1615
1618
  const e = F([]);
1616
- return I(() => {
1619
+ return k(() => {
1617
1620
  const n = e.current;
1618
1621
  return () => {
1619
1622
  for (const a of n)
@@ -1625,11 +1628,11 @@ function pr() {
1625
1628
  }, []);
1626
1629
  }
1627
1630
  function $t() {
1628
- const e = F(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = pr(), i = L(
1629
- (f, p = 2e3) => {
1631
+ const e = F(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = yr(), i = L(
1632
+ (f, y = 2e3) => {
1630
1633
  e.current && clearTimeout(e.current), n({ text: f, style: { opacity: 1 } }), e.current = a(() => {
1631
1634
  n({ text: f, style: { opacity: 0 } });
1632
- }, p);
1635
+ }, y);
1633
1636
  },
1634
1637
  [a]
1635
1638
  );
@@ -1652,8 +1655,8 @@ function Nt(e, {
1652
1655
  initialOrder: n = "list",
1653
1656
  getSongId: a
1654
1657
  }) {
1655
- const [i, f] = H(t), [p, y] = H(n), s = K(() => p === "list" ? e : Ct(e), [e, p]), [d, b] = H(s[0]);
1656
- I(() => {
1658
+ const [i, f] = H(t), [y, p] = H(n), s = K(() => y === "list" ? e : Ct(e), [e, y]), [d, b] = H(s[0]);
1659
+ k(() => {
1657
1660
  const o = s.find(
1658
1661
  (h) => a(h) === a(d)
1659
1662
  );
@@ -1682,8 +1685,8 @@ function Nt(e, {
1682
1685
  next: c,
1683
1686
  previous: E,
1684
1687
  prioritize: S,
1685
- order: p,
1686
- setOrder: y,
1688
+ order: y,
1689
+ setOrder: p,
1687
1690
  loop: i,
1688
1691
  setLoop: f,
1689
1692
  length: s.length
@@ -1702,8 +1705,8 @@ function kt({
1702
1705
  initialLoop: a,
1703
1706
  initialOrder: i,
1704
1707
  autoPlay: f = !1,
1705
- listMaxHeight: p = 250,
1706
- mini: y = !1,
1708
+ listMaxHeight: y = 250,
1709
+ mini: p = !1,
1707
1710
  mutex: s = !0,
1708
1711
  listFolded: d = !1,
1709
1712
  theme: b = "light"
@@ -1713,7 +1716,7 @@ function kt({
1713
1716
  initialLoop: a,
1714
1717
  initialOrder: i,
1715
1718
  getSongId: (O) => O.url
1716
- }), [E, S] = $t(), o = pr(), h = F(), g = L(() => {
1719
+ }), [E, S] = $t(), o = yr(), h = F(), g = L(() => {
1717
1720
  h.current && (clearTimeout(h.current), h.current = void 0);
1718
1721
  }, []), x = Pt({
1719
1722
  src: c.currentSong.url,
@@ -1732,11 +1735,11 @@ function kt({
1732
1735
  c.hasNextSong && c.next();
1733
1736
  }
1734
1737
  });
1735
- I(() => {
1738
+ k(() => {
1736
1739
  f && x.playAudio(c.currentSong.url);
1737
1740
  }, []);
1738
1741
  const q = F(!0);
1739
- I(() => {
1742
+ k(() => {
1740
1743
  q.current ? q.current = !1 : c.currentSong && x.playAudio(c.currentSong.url);
1741
1744
  }, [c.currentSong, x.playAudio]);
1742
1745
  const C = L(() => {
@@ -1749,10 +1752,10 @@ function kt({
1749
1752
  g(), ce(O);
1750
1753
  },
1751
1754
  [g, ce]
1752
- ), [Se, Te] = H(() => U && !d), [fe, V] = H(y), [k, Y] = H(!0), J = F(null);
1753
- return I(() => {
1754
- V(y);
1755
- }, [y]), I(() => {
1755
+ ), [Se, we] = H(() => U && !d), [fe, I] = H(p), [V, Y] = H(!0), J = F(null);
1756
+ return k(() => {
1757
+ I(p);
1758
+ }, [p]), k(() => {
1756
1759
  if (t === "fixed" && J.current) {
1757
1760
  const O = J.current;
1758
1761
  return O.style.width = `${O.offsetWidth - 18}px`, () => {
@@ -1806,7 +1809,7 @@ function kt({
1806
1809
  t === "fixed" ? null : /* @__PURE__ */ v.jsx(
1807
1810
  sr,
1808
1811
  {
1809
- show: k,
1812
+ show: V,
1810
1813
  lrcText: c.currentSong.lrc,
1811
1814
  currentTime: x.currentTime ?? 0
1812
1815
  }
@@ -1822,7 +1825,7 @@ function kt({
1822
1825
  audioDurationSeconds: x.duration,
1823
1826
  bufferedSeconds: x.bufferedSeconds,
1824
1827
  onSeek: (O) => x.seek(O),
1825
- onToggleMenu: () => Te((O) => !O),
1828
+ onToggleMenu: () => we((O) => !O),
1826
1829
  order: c.order,
1827
1830
  onOrderChange: c.setOrder,
1828
1831
  loop: c.loop,
@@ -1835,7 +1838,7 @@ function kt({
1835
1838
  onSkipBack: () => {
1836
1839
  c.previous();
1837
1840
  },
1838
- showLyrics: k,
1841
+ showLyrics: V,
1839
1842
  onToggleLyrics: () => {
1840
1843
  Y((O) => !O);
1841
1844
  }
@@ -1847,25 +1850,25 @@ function kt({
1847
1850
  "div",
1848
1851
  {
1849
1852
  className: l.be("miniswitcher"),
1850
- onClick: () => V((O) => !O),
1853
+ onClick: () => I((O) => !O),
1851
1854
  children: /* @__PURE__ */ v.jsx("button", { className: l.bs("icon"), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
1852
1855
  }
1853
1856
  )
1854
1857
  ] }),
1855
1858
  U ? /* @__PURE__ */ v.jsx(
1856
- Tt,
1859
+ wt,
1857
1860
  {
1858
1861
  open: Se,
1859
1862
  audio: B,
1860
1863
  playingAudioUrl: c.currentSong.url,
1861
1864
  onPlayAudio: le,
1862
- listMaxHeight: p
1865
+ listMaxHeight: y
1863
1866
  }
1864
1867
  ) : null,
1865
1868
  t === "fixed" && /* @__PURE__ */ v.jsx(
1866
1869
  sr,
1867
1870
  {
1868
- show: k,
1871
+ show: V,
1869
1872
  lrcText: c.currentSong.lrc,
1870
1873
  currentTime: x.currentTime ?? 0
1871
1874
  }