twist-aplayer 1.3.1 → 1.3.2

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,6 +1,6 @@
1
1
  import * as te from "react";
2
- import je, { useMemo as J, useRef as V, useState as H, useEffect as D, useCallback as L } from "react";
3
- var Se = { exports: {} }, ce = {};
2
+ import Re, { useMemo as K, useRef as D, useState as W, useEffect as I, useCallback as L } from "react";
3
+ var Te = { exports: {} }, de = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -12,9 +12,9 @@ var Se = { exports: {} }, ce = {};
12
12
  */
13
13
  var tr;
14
14
  function Br() {
15
- if (tr) return ce;
15
+ if (tr) return de;
16
16
  tr = 1;
17
- var e = je, 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, l = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ var e = Re, 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, l = { key: !0, ref: !0, __self: !0, __source: !0 };
18
18
  function y(g, s, d) {
19
19
  var E, b = {}, f = null, c = null;
20
20
  d !== void 0 && (f = "" + d), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (c = s.ref);
@@ -22,9 +22,9 @@ function Br() {
22
22
  if (g && g.defaultProps) for (E in s = g.defaultProps, s) b[E] === void 0 && (b[E] = s[E]);
23
23
  return { $$typeof: t, type: g, key: f, ref: c, props: b, _owner: i.current };
24
24
  }
25
- return ce.Fragment = n, ce.jsx = y, ce.jsxs = y, ce;
25
+ return de.Fragment = n, de.jsx = y, de.jsxs = y, de;
26
26
  }
27
- var le = {};
27
+ var ve = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.development.js
@@ -37,11 +37,11 @@ var le = {};
37
37
  var nr;
38
38
  function zr() {
39
39
  return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = je, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), S = Symbol.iterator, u = "@@iterator";
40
+ var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), c = Symbol.for("react.offscreen"), _ = Symbol.iterator, u = "@@iterator";
41
41
  function h(r) {
42
42
  if (r === null || typeof r != "object")
43
43
  return null;
44
- var o = S && r[S] || r[u];
44
+ var o = _ && r[_] || r[u];
45
45
  return typeof o == "function" ? o : null;
46
46
  }
47
47
  var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -49,10 +49,10 @@ function zr() {
49
49
  {
50
50
  for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0), x = 1; x < o; x++)
51
51
  m[x - 1] = arguments[x];
52
- T("error", r, m);
52
+ N("error", r, m);
53
53
  }
54
54
  }
55
- function T(r, o, m) {
55
+ function N(r, o, m) {
56
56
  {
57
57
  var x = p.ReactDebugCurrentFrame, O = x.getStackAddendum();
58
58
  O !== "" && (o += "%s", m = m.concat([O]));
@@ -62,26 +62,26 @@ function zr() {
62
62
  P.unshift("Warning: " + o), Function.prototype.apply.call(console[r], console, P);
63
63
  }
64
64
  }
65
- var A = !1, ne = !1, U = !1, B = !1, ve = !1, me;
66
- me = Symbol.for("react.module.reference");
67
- function he(r) {
68
- return !!(typeof r == "string" || typeof r == "function" || r === a || r === l || ve || r === i || r === d || r === E || B || r === c || A || ne || U || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === b || r.$$typeof === y || r.$$typeof === g || r.$$typeof === s || // This needs to include all possible module reference object
65
+ var S = !1, J = !1, ne = !1, V = !1, Le = !1, ae;
66
+ ae = Symbol.for("react.module.reference");
67
+ function Pe(r) {
68
+ return !!(typeof r == "string" || typeof r == "function" || r === a || r === l || Le || r === i || r === d || r === E || V || r === c || S || J || ne || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === b || r.$$typeof === y || r.$$typeof === g || 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
- r.$$typeof === me || r.getModuleId !== void 0));
72
+ r.$$typeof === ae || r.getModuleId !== void 0));
73
73
  }
74
- function Oe(r, o, m) {
74
+ function pe(r, o, m) {
75
75
  var x = r.displayName;
76
76
  if (x)
77
77
  return x;
78
78
  var O = o.displayName || o.name || "";
79
79
  return O !== "" ? m + "(" + O + ")" : m;
80
80
  }
81
- function pe(r) {
81
+ function ye(r) {
82
82
  return r.displayName || "Context";
83
83
  }
84
- function F(r) {
84
+ function B(r) {
85
85
  if (r == null)
86
86
  return null;
87
87
  if (typeof r.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
@@ -106,19 +106,19 @@ function zr() {
106
106
  switch (r.$$typeof) {
107
107
  case g:
108
108
  var o = r;
109
- return pe(o) + ".Consumer";
109
+ return ye(o) + ".Consumer";
110
110
  case y:
111
111
  var m = r;
112
- return pe(m._context) + ".Provider";
112
+ return ye(m._context) + ".Provider";
113
113
  case s:
114
- return Oe(r, r.render, "ForwardRef");
114
+ return pe(r, r.render, "ForwardRef");
115
115
  case b:
116
116
  var x = r.displayName || null;
117
- return x !== null ? x : F(r.type) || "Memo";
117
+ return x !== null ? x : B(r.type) || "Memo";
118
118
  case f: {
119
119
  var O = r, P = O._payload, w = O._init;
120
120
  try {
121
- return F(w(P));
121
+ return B(w(P));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -126,18 +126,18 @@ function zr() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var I = Object.assign, Y = 0, X, ae, ie, oe, ue, se, R;
130
- function G() {
129
+ var F = Object.assign, z = 0, be, X, ie, oe, ue, se, ce;
130
+ function R() {
131
131
  }
132
- G.__reactDisabledLog = !0;
133
- function Re() {
132
+ R.__reactDisabledLog = !0;
133
+ function le() {
134
134
  {
135
- if (Y === 0) {
136
- X = console.log, ae = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, R = console.groupEnd;
135
+ if (z === 0) {
136
+ be = console.log, X = console.info, ie = console.warn, oe = console.error, ue = console.group, se = console.groupCollapsed, ce = console.groupEnd;
137
137
  var r = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
140
- value: G,
140
+ value: R,
141
141
  writable: !0
142
142
  };
143
143
  Object.defineProperties(console, {
@@ -150,68 +150,68 @@ function zr() {
150
150
  groupEnd: r
151
151
  });
152
152
  }
153
- Y++;
153
+ z++;
154
154
  }
155
155
  }
156
- function Le() {
156
+ function ge() {
157
157
  {
158
- if (Y--, Y === 0) {
158
+ if (z--, z === 0) {
159
159
  var r = {
160
160
  configurable: !0,
161
161
  enumerable: !0,
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: I({}, r, {
166
- value: X
165
+ log: F({}, r, {
166
+ value: be
167
167
  }),
168
- info: I({}, r, {
169
- value: ae
168
+ info: F({}, r, {
169
+ value: X
170
170
  }),
171
- warn: I({}, r, {
171
+ warn: F({}, r, {
172
172
  value: ie
173
173
  }),
174
- error: I({}, r, {
174
+ error: F({}, r, {
175
175
  value: oe
176
176
  }),
177
- group: I({}, r, {
177
+ group: F({}, r, {
178
178
  value: ue
179
179
  }),
180
- groupCollapsed: I({}, r, {
180
+ groupCollapsed: F({}, r, {
181
181
  value: se
182
182
  }),
183
- groupEnd: I({}, r, {
184
- value: R
183
+ groupEnd: F({}, r, {
184
+ value: ce
185
185
  })
186
186
  });
187
187
  }
188
- Y < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ z < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var Q = p.ReactCurrentDispatcher, Pe;
192
- function ye(r, o, m) {
191
+ var Q = p.ReactCurrentDispatcher, fe;
192
+ function Y(r, o, m) {
193
193
  {
194
- if (Pe === void 0)
194
+ if (fe === void 0)
195
195
  try {
196
196
  throw Error();
197
197
  } catch (O) {
198
198
  var x = O.stack.trim().match(/\n( *(at )?)/);
199
- Pe = x && x[1] || "";
199
+ fe = x && x[1] || "";
200
200
  }
201
201
  return `
202
- ` + Pe + r;
202
+ ` + fe + r;
203
203
  }
204
204
  }
205
- var $e = !1, be;
205
+ var $e = !1, Ee;
206
206
  {
207
207
  var gr = typeof WeakMap == "function" ? WeakMap : Map;
208
- be = new gr();
208
+ Ee = new gr();
209
209
  }
210
210
  function Fe(r, o) {
211
211
  if (!r || $e)
212
212
  return "";
213
213
  {
214
- var m = be.get(r);
214
+ var m = Ee.get(r);
215
215
  if (m !== void 0)
216
216
  return m;
217
217
  }
@@ -220,7 +220,7 @@ function zr() {
220
220
  var O = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var P;
223
- P = Q.current, Q.current = null, Re();
223
+ P = Q.current, Q.current = null, le();
224
224
  try {
225
225
  if (o) {
226
226
  var w = function() {
@@ -233,50 +233,50 @@ function zr() {
233
233
  }), typeof Reflect == "object" && Reflect.construct) {
234
234
  try {
235
235
  Reflect.construct(w, []);
236
- } catch (z) {
237
- x = z;
236
+ } catch (H) {
237
+ x = H;
238
238
  }
239
239
  Reflect.construct(r, [], w);
240
240
  } else {
241
241
  try {
242
242
  w.call();
243
- } catch (z) {
244
- x = z;
243
+ } catch (H) {
244
+ x = H;
245
245
  }
246
246
  r.call(w.prototype);
247
247
  }
248
248
  } else {
249
249
  try {
250
250
  throw Error();
251
- } catch (z) {
252
- x = z;
251
+ } catch (H) {
252
+ x = H;
253
253
  }
254
254
  r();
255
255
  }
256
- } catch (z) {
257
- if (z && x && typeof z.stack == "string") {
258
- for (var _ = z.stack.split(`
256
+ } catch (H) {
257
+ if (H && x && typeof H.stack == "string") {
258
+ for (var T = H.stack.split(`
259
259
  `), M = x.stack.split(`
260
- `), C = _.length - 1, N = M.length - 1; C >= 1 && N >= 0 && _[C] !== M[N]; )
261
- N--;
262
- for (; C >= 1 && N >= 0; C--, N--)
263
- if (_[C] !== M[N]) {
264
- if (C !== 1 || N !== 1)
260
+ `), C = T.length - 1, A = M.length - 1; C >= 1 && A >= 0 && T[C] !== M[A]; )
261
+ A--;
262
+ for (; C >= 1 && A >= 0; C--, A--)
263
+ if (T[C] !== M[A]) {
264
+ if (C !== 1 || A !== 1)
265
265
  do
266
- if (C--, N--, N < 0 || _[C] !== M[N]) {
266
+ if (C--, A--, A < 0 || T[C] !== M[A]) {
267
267
  var k = `
268
- ` + _[C].replace(" at new ", " at ");
269
- return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && be.set(r, k), k;
268
+ ` + T[C].replace(" at new ", " at ");
269
+ return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, k), k;
270
270
  }
271
- while (C >= 1 && N >= 0);
271
+ while (C >= 1 && A >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- $e = !1, Q.current = P, Le(), Error.prepareStackTrace = O;
276
+ $e = !1, Q.current = P, ge(), Error.prepareStackTrace = O;
277
277
  }
278
- var ee = r ? r.displayName || r.name : "", rr = ee ? ye(ee) : "";
279
- return typeof r == "function" && be.set(r, rr), rr;
278
+ var ee = r ? r.displayName || r.name : "", rr = ee ? Y(ee) : "";
279
+ return typeof r == "function" && Ee.set(r, rr), rr;
280
280
  }
281
281
  function Er(r, o, m) {
282
282
  return Fe(r, !1);
@@ -285,59 +285,59 @@ function zr() {
285
285
  var o = r.prototype;
286
286
  return !!(o && o.isReactComponent);
287
287
  }
288
- function ge(r, o, m) {
288
+ function xe(r, o, m) {
289
289
  if (r == null)
290
290
  return "";
291
291
  if (typeof r == "function")
292
292
  return Fe(r, xr(r));
293
293
  if (typeof r == "string")
294
- return ye(r);
294
+ return Y(r);
295
295
  switch (r) {
296
296
  case d:
297
- return ye("Suspense");
297
+ return Y("Suspense");
298
298
  case E:
299
- return ye("SuspenseList");
299
+ return Y("SuspenseList");
300
300
  }
301
301
  if (typeof r == "object")
302
302
  switch (r.$$typeof) {
303
303
  case s:
304
304
  return Er(r.render);
305
305
  case b:
306
- return ge(r.type, o, m);
306
+ return xe(r.type, o, m);
307
307
  case f: {
308
308
  var x = r, O = x._payload, P = x._init;
309
309
  try {
310
- return ge(P(O), o, m);
310
+ return xe(P(O), o, m);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var Ee = Object.prototype.hasOwnProperty, Be = {}, ze = p.ReactDebugCurrentFrame;
318
- function xe(r) {
317
+ var Se = Object.prototype.hasOwnProperty, Be = {}, ze = p.ReactDebugCurrentFrame;
318
+ function _e(r) {
319
319
  if (r) {
320
- var o = r._owner, m = ge(r.type, r._source, o ? o.type : null);
320
+ var o = r._owner, m = xe(r.type, r._source, o ? o.type : null);
321
321
  ze.setExtraStackFrame(m);
322
322
  } else
323
323
  ze.setExtraStackFrame(null);
324
324
  }
325
325
  function Sr(r, o, m, x, O) {
326
326
  {
327
- var P = Function.call.bind(Ee);
327
+ var P = Function.call.bind(Se);
328
328
  for (var w in r)
329
329
  if (P(r, w)) {
330
- var _ = void 0;
330
+ var T = void 0;
331
331
  try {
332
332
  if (typeof r[w] != "function") {
333
333
  var M = Error((x || "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`.");
334
334
  throw M.name = "Invariant Violation", M;
335
335
  }
336
- _ = r[w](o, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ T = r[w](o, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch (C) {
338
- _ = C;
338
+ T = C;
339
339
  }
340
- _ && !(_ instanceof Error) && (xe(O), j("%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).", x || "React class", m, w, typeof _), xe(null)), _ instanceof Error && !(_.message in Be) && (Be[_.message] = !0, xe(O), j("Failed %s type: %s", m, _.message), xe(null));
340
+ T && !(T instanceof Error) && (_e(O), j("%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).", x || "React class", m, w, typeof T), _e(null)), T instanceof Error && !(T.message in Be) && (Be[T.message] = !0, _e(O), j("Failed %s type: %s", m, T.message), _e(null));
341
341
  }
342
342
  }
343
343
  }
@@ -372,7 +372,7 @@ function zr() {
372
372
  __source: !0
373
373
  }, Ye, Ge;
374
374
  function Or(r) {
375
- if (Ee.call(r, "ref")) {
375
+ if (Se.call(r, "ref")) {
376
376
  var o = Object.getOwnPropertyDescriptor(r, "ref").get;
377
377
  if (o && o.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 (Ee.call(r, "key")) {
383
+ if (Se.call(r, "key")) {
384
384
  var o = Object.getOwnPropertyDescriptor(r, "key").get;
385
385
  if (o && o.isReactWarning)
386
386
  return !1;
@@ -413,7 +413,7 @@ function zr() {
413
413
  }
414
414
  }
415
415
  var Cr = function(r, o, m, x, O, P, w) {
416
- var _ = {
416
+ var T = {
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
@@ -424,45 +424,45 @@ function zr() {
424
424
  // Record the component responsible for creating this element.
425
425
  _owner: P
426
426
  };
427
- return _._store = {}, Object.defineProperty(_._store, "validated", {
427
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
428
428
  configurable: !1,
429
429
  enumerable: !1,
430
430
  writable: !0,
431
431
  value: !1
432
- }), Object.defineProperty(_, "_self", {
432
+ }), Object.defineProperty(T, "_self", {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
436
  value: x
437
- }), Object.defineProperty(_, "_source", {
437
+ }), Object.defineProperty(T, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
440
440
  writable: !1,
441
441
  value: O
442
- }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
442
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
443
443
  };
444
444
  function Ar(r, o, m, x, O) {
445
445
  {
446
- var P, w = {}, _ = null, M = null;
447
- m !== void 0 && (We(m), _ = "" + m), Rr(o) && (We(o.key), _ = "" + o.key), Or(o) && (M = o.ref, Lr(o, O));
446
+ var P, w = {}, T = null, M = null;
447
+ m !== void 0 && (We(m), T = "" + m), Rr(o) && (We(o.key), T = "" + o.key), Or(o) && (M = o.ref, Lr(o, O));
448
448
  for (P in o)
449
- Ee.call(o, P) && !jr.hasOwnProperty(P) && (w[P] = o[P]);
449
+ Se.call(o, P) && !jr.hasOwnProperty(P) && (w[P] = o[P]);
450
450
  if (r && r.defaultProps) {
451
451
  var C = r.defaultProps;
452
452
  for (P in C)
453
453
  w[P] === void 0 && (w[P] = C[P]);
454
454
  }
455
- if (_ || M) {
456
- var N = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
- _ && Pr(w, N), M && $r(w, N);
455
+ if (T || M) {
456
+ var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
457
+ T && Pr(w, A), M && $r(w, A);
458
458
  }
459
- return Cr(r, _, M, O, x, Ue.current, w);
459
+ return Cr(r, T, M, O, x, Ue.current, w);
460
460
  }
461
461
  }
462
462
  var Ae = p.ReactCurrentOwner, Ke = p.ReactDebugCurrentFrame;
463
463
  function Z(r) {
464
464
  if (r) {
465
- var o = r._owner, m = ge(r.type, r._source, o ? o.type : null);
465
+ var o = r._owner, m = xe(r.type, r._source, o ? o.type : null);
466
466
  Ke.setExtraStackFrame(m);
467
467
  } else
468
468
  Ke.setExtraStackFrame(null);
@@ -475,7 +475,7 @@ function zr() {
475
475
  function Je() {
476
476
  {
477
477
  if (Ae.current) {
478
- var r = F(Ae.current.type);
478
+ var r = B(Ae.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
  Xe[m] = !0;
512
512
  var x = "";
513
- r && r._owner && r._owner !== Ae.current && (x = " It was passed a child from " + F(r._owner.type) + "."), Z(r), j('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), Z(null);
513
+ r && r._owner && r._owner !== Ae.current && (x = " It was passed a child from " + B(r._owner.type) + "."), Z(r), j('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), Z(null);
514
514
  }
515
515
  }
516
516
  function Ze(r, o) {
@@ -547,11 +547,11 @@ Check the top-level render call using <` + m + ">.");
547
547
  else
548
548
  return;
549
549
  if (m) {
550
- var x = F(o);
550
+ var x = B(o);
551
551
  Sr(m, r.props, "prop", x, r);
552
552
  } else if (o.PropTypes !== void 0 && !Ne) {
553
553
  Ne = !0;
554
- var O = F(o);
554
+ var O = B(o);
555
555
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
556
556
  }
557
557
  typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -571,18 +571,18 @@ Check the top-level render call using <` + m + ">.");
571
571
  }
572
572
  function er(r, o, m, x, O, P) {
573
573
  {
574
- var w = he(r);
574
+ var w = Pe(r);
575
575
  if (!w) {
576
- var _ = "";
577
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
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.");
578
578
  var M = Nr();
579
- M ? _ += M : _ += Je();
579
+ M ? T += M : T += Je();
580
580
  var C;
581
- r === null ? C = "null" : Ce(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (F(r.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, _);
581
+ r === null ? C = "null" : Ce(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (B(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, T);
582
582
  }
583
- var N = Ar(r, o, m, O, P);
584
- if (N == null)
585
- return N;
583
+ var A = Ar(r, o, m, O, P);
584
+ if (A == null)
585
+ return A;
586
586
  if (w) {
587
587
  var k = o.children;
588
588
  if (k !== void 0)
@@ -596,7 +596,7 @@ Check the top-level render call using <` + m + ">.");
596
596
  else
597
597
  Ze(k, r);
598
598
  }
599
- return r === a ? kr(N) : Mr(N), N;
599
+ return r === a ? kr(A) : Mr(A), A;
600
600
  }
601
601
  }
602
602
  function Dr(r, o, m) {
@@ -606,14 +606,14 @@ Check the top-level render call using <` + m + ">.");
606
606
  return er(r, o, m, !1);
607
607
  }
608
608
  var Vr = Ir, Fr = Dr;
609
- le.Fragment = a, le.jsx = Vr, le.jsxs = Fr;
610
- }()), le;
609
+ ve.Fragment = a, ve.jsx = Vr, ve.jsxs = Fr;
610
+ }()), ve;
611
611
  }
612
612
  var ar;
613
613
  function Hr() {
614
- return ar || (ar = 1, process.env.NODE_ENV === "production" ? Se.exports = Br() : Se.exports = zr()), Se.exports;
614
+ return ar || (ar = 1, process.env.NODE_ENV === "production" ? Te.exports = Br() : Te.exports = zr()), Te.exports;
615
615
  }
616
- var v = Hr(), _e = (e) => `--${e}`, ir = (e) => `var(--${e})`, or = (e, t) => `--${e}: ${t};`;
616
+ var v = Hr(), we = (e) => `--${e}`, ir = (e) => `var(--${e})`, or = (e, t) => `--${e}: ${t};`;
617
617
  function Wr(e, t) {
618
618
  const n = (a) => t;
619
619
  return {
@@ -629,28 +629,28 @@ function Wr(e, t) {
629
629
  cbem: (a, i) => `.${n()}-${e}__${a}--${i}`,
630
630
  cbs: (a) => `.${n()}-${e}-${a}`,
631
631
  cns: (a) => `.${n()}-${a}`,
632
- cv: (a) => _e(`${n()}-${e}-${a}`),
632
+ cv: (a) => we(`${n()}-${e}-${a}`),
633
633
  cvm: (a, i = {}) => {
634
634
  const l = n();
635
635
  for (const y of Object.keys(a))
636
- i[_e(`${l}-${e}-${y}`)] = a[y];
636
+ i[we(`${l}-${e}-${y}`)] = a[y];
637
637
  return i;
638
638
  },
639
639
  gcv: (a) => ir(`${n()}-${e}-${a}`),
640
640
  scv: (a, i) => or(`${n()}-${e}-${a}`, i),
641
- nv: (a) => _e(`${n()}-${a}`),
641
+ nv: (a) => we(`${n()}-${a}`),
642
642
  nvm: (a, i = {}) => {
643
643
  const l = n();
644
644
  for (const y of Object.keys(a))
645
- i[_e(`${l}-${y}`)] = a[y];
645
+ i[we(`${l}-${y}`)] = a[y];
646
646
  return i;
647
647
  },
648
648
  gnv: (a) => ir(`${n()}-${a}`),
649
649
  snv: (a, i) => or(`${n()}-${a}`, i)
650
650
  };
651
651
  }
652
- function W(e) {
653
- return J(() => Wr(e, "twist"), [e]);
652
+ function U(e) {
653
+ return K(() => Wr(e, "twist"), [e]);
654
654
  }
655
655
  function Me(e, t) {
656
656
  if (!t.current) return 0;
@@ -670,13 +670,13 @@ var mr = {
670
670
  attrs: void 0
671
671
  }, Ve = /* @__PURE__ */ te.createContext(mr);
672
672
  Ve.Provider;
673
- function fe(e) {
673
+ function me(e) {
674
674
  "@babel/helpers - typeof";
675
- return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
675
+ return me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
676
676
  return typeof t;
677
677
  } : function(t) {
678
678
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
679
- }, fe(e);
679
+ }, me(e);
680
680
  }
681
681
  var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
682
682
  function Yr(e, t) {
@@ -751,14 +751,14 @@ function ur(e, t) {
751
751
  for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
752
752
  return a;
753
753
  }
754
- function we() {
755
- return we = Object.assign ? Object.assign.bind() : function(e) {
754
+ function Oe() {
755
+ return Oe = Object.assign ? Object.assign.bind() : function(e) {
756
756
  for (var t = 1; t < arguments.length; t++) {
757
757
  var n = arguments[t];
758
758
  for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
759
759
  }
760
760
  return e;
761
- }, we.apply(null, arguments);
761
+ }, Oe.apply(null, arguments);
762
762
  }
763
763
  function sr(e, t) {
764
764
  var n = Object.keys(e);
@@ -770,7 +770,7 @@ function sr(e, t) {
770
770
  }
771
771
  return n;
772
772
  }
773
- function de(e) {
773
+ function he(e) {
774
774
  for (var t = 1; t < arguments.length; t++) {
775
775
  var n = arguments[t] != null ? arguments[t] : {};
776
776
  t % 2 ? sr(Object(n), !0).forEach(function(a) {
@@ -786,14 +786,14 @@ function Qr(e, t, n) {
786
786
  }
787
787
  function Zr(e) {
788
788
  var t = et(e, "string");
789
- return fe(t) == "symbol" ? t : t + "";
789
+ return me(t) == "symbol" ? t : t + "";
790
790
  }
791
791
  function et(e, t) {
792
- if (fe(e) != "object" || !e) return e;
792
+ if (me(e) != "object" || !e) return e;
793
793
  var n = e[Symbol.toPrimitive];
794
794
  if (n !== void 0) {
795
795
  var a = n.call(e, t);
796
- if (fe(a) != "object") return a;
796
+ if (me(a) != "object") return a;
797
797
  throw new TypeError("@@toPrimitive must return a primitive value.");
798
798
  }
799
799
  return (t === "string" ? String : Number)(e);
@@ -818,15 +818,15 @@ function tt(e, t) {
818
818
  }
819
819
  function nt(e) {
820
820
  var t = e.attrs, n = e.size, a = e.title, i = e.spin, l = e.rotate, y = e.color, g = rt(e, Ur), s = function(E) {
821
- var b = n || E.size || "1em", f, c = "", S = "";
822
- return E.className && (f = E.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), l && (c = "rotate(".concat(l, "deg)"), S = "rotate(".concat(l, "deg)")), /* @__PURE__ */ te.createElement("svg", we({
821
+ var b = n || E.size || "1em", f, c = "", _ = "";
822
+ return E.className && (f = E.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), l && (c = "rotate(".concat(l, "deg)"), _ = "rotate(".concat(l, "deg)")), /* @__PURE__ */ te.createElement("svg", Oe({
823
823
  xmlns: "http://www.w3.org/2000/svg"
824
824
  }, E.attrs, t, g, {
825
825
  className: f,
826
- style: de(de({
826
+ style: he(he({
827
827
  color: y || E.color,
828
828
  msTransform: c,
829
- transform: S
829
+ transform: _
830
830
  }, E.style), e.style),
831
831
  width: b,
832
832
  height: b
@@ -857,7 +857,7 @@ function at(e) {
857
857
  }
858
858
  function pr(e) {
859
859
  return e && e.map(function(t, n) {
860
- return /* @__PURE__ */ te.createElement(t.tag, de(de({}, t.attrs), {}, {
860
+ return /* @__PURE__ */ te.createElement(t.tag, he(he({}, t.attrs), {}, {
861
861
  key: n,
862
862
  style: t.attrs.style ? at(t.attrs.style) : null
863
863
  }), pr(t.children));
@@ -865,8 +865,8 @@ function pr(e) {
865
865
  }
866
866
  function q(e) {
867
867
  return function(t) {
868
- return /* @__PURE__ */ te.createElement(nt, we({
869
- attrs: de({}, e.attrs)
868
+ return /* @__PURE__ */ te.createElement(nt, Oe({
869
+ attrs: he({}, e.attrs)
870
870
  }, t), pr(e.children));
871
871
  };
872
872
  }
@@ -894,8 +894,8 @@ function ut({
894
894
  playedPercentage: t,
895
895
  onSeek: n
896
896
  }) {
897
- const a = W("aplayer-bar"), i = W("aplayer-icon"), l = V(null), [y, g] = H(t), s = V(!1);
898
- D(() => {
897
+ const a = U("aplayer-bar"), i = U("aplayer-icon"), l = D(null), [y, g] = W(t), s = D(!1);
898
+ I(() => {
899
899
  s.current || g(t);
900
900
  }, [t]);
901
901
  const d = L(
@@ -903,12 +903,12 @@ function ut({
903
903
  s.current = !0;
904
904
  const b = Me(E, l);
905
905
  g(b);
906
- const f = (S) => {
907
- const u = Me(S, l);
906
+ const f = (_) => {
907
+ const u = Me(_, l);
908
908
  g(u);
909
- }, c = (S) => {
909
+ }, c = (_) => {
910
910
  document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c);
911
- const u = Me(S, l);
911
+ const u = Me(_, l);
912
912
  g(u), n == null || n(u), s.current = !1;
913
913
  };
914
914
  document.addEventListener("mousemove", f), document.addEventListener("mouseup", c);
@@ -988,7 +988,7 @@ function yt({
988
988
  onToggleMuted: n,
989
989
  onChangeVolume: a
990
990
  }) {
991
- const i = W("aplayer-volumn"), l = W("aplayer-icon"), y = V(null), [g, s] = H(!1), d = L(
991
+ const i = U("aplayer-volumn"), l = U("aplayer-icon"), y = D(null), [g, s] = W(!1), d = L(
992
992
  (E) => {
993
993
  a(ke(E, y)), s(!0);
994
994
  const b = (c) => {
@@ -1072,30 +1072,30 @@ function _t({
1072
1072
  onLoopChange: b,
1073
1073
  onSeek: f,
1074
1074
  isPlaying: c,
1075
- onTogglePlay: S,
1075
+ onTogglePlay: _,
1076
1076
  onSkipForward: u,
1077
1077
  onSkipBack: h,
1078
1078
  showLyrics: p = !0,
1079
1079
  onToggleLyrics: j
1080
1080
  }) {
1081
- const T = W("aplayer-controller"), A = W("aplayer-icon"), ne = L(() => {
1082
- const B = {
1081
+ const N = U("aplayer-controller"), S = U("aplayer-icon"), J = L(() => {
1082
+ const V = {
1083
1083
  list: "random",
1084
1084
  random: "list"
1085
1085
  }[s];
1086
- d(B);
1087
- }, [s, d]), U = L(() => {
1088
- const B = {
1086
+ d(V);
1087
+ }, [s, d]), ne = L(() => {
1088
+ const V = {
1089
1089
  all: "one",
1090
1090
  one: "none",
1091
1091
  none: "all"
1092
1092
  }[E];
1093
- b(B);
1093
+ b(V);
1094
1094
  }, [E, b]);
1095
1095
  return /* @__PURE__ */ v.jsxs(
1096
1096
  "div",
1097
1097
  {
1098
- className: $(T.b(), T.bs("vars")),
1098
+ className: $(N.b(), N.bs("vars")),
1099
1099
  role: "group",
1100
1100
  "aria-label": "Audio Controls",
1101
1101
  children: [
@@ -1104,19 +1104,19 @@ function _t({
1104
1104
  {
1105
1105
  playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
1106
1106
  bufferedPercentage: typeof l > "u" || typeof i > "u" ? void 0 : l / i,
1107
- onSeek: (B) => f == null ? void 0 : f(B * i)
1107
+ onSeek: (V) => f == null ? void 0 : f(V * i)
1108
1108
  }
1109
1109
  ),
1110
- /* @__PURE__ */ v.jsxs("div", { className: T.be("time"), children: [
1111
- /* @__PURE__ */ v.jsxs("span", { className: T.be("time-inner"), "aria-live": "polite", children: [
1112
- /* @__PURE__ */ v.jsx("span", { className: T.be("ptime"), children: cr(a) }),
1110
+ /* @__PURE__ */ v.jsxs("div", { className: N.be("time"), children: [
1111
+ /* @__PURE__ */ v.jsxs("span", { className: N.be("time-inner"), "aria-live": "polite", children: [
1112
+ /* @__PURE__ */ v.jsx("span", { className: N.be("ptime"), children: cr(a) }),
1113
1113
  " / ",
1114
- /* @__PURE__ */ v.jsx("span", { className: T.be("dtime"), children: cr(i) })
1114
+ /* @__PURE__ */ v.jsx("span", { className: N.be("dtime"), children: cr(i) })
1115
1115
  ] }),
1116
1116
  /* @__PURE__ */ v.jsx(
1117
1117
  "button",
1118
1118
  {
1119
- className: $(A.b(), A.bs("back")),
1119
+ className: $(S.b(), S.bs("back")),
1120
1120
  onClick: h,
1121
1121
  type: "button",
1122
1122
  "aria-label": "Previous track",
@@ -1126,8 +1126,8 @@ function _t({
1126
1126
  /* @__PURE__ */ v.jsx(
1127
1127
  "button",
1128
1128
  {
1129
- className: $(A.b(), A.bs("play")),
1130
- onClick: S,
1129
+ className: $(S.b(), S.bs("play")),
1130
+ onClick: _,
1131
1131
  type: "button",
1132
1132
  "aria-label": c ? "Pause audio" : "Play audio",
1133
1133
  children: c ? /* @__PURE__ */ v.jsx(lt, {}) : /* @__PURE__ */ v.jsx(ft, {})
@@ -1136,7 +1136,7 @@ function _t({
1136
1136
  /* @__PURE__ */ v.jsx(
1137
1137
  "button",
1138
1138
  {
1139
- className: $(A.b(), A.bs("forward")),
1139
+ className: $(S.b(), S.bs("forward")),
1140
1140
  onClick: u,
1141
1141
  type: "button",
1142
1142
  "aria-label": "Next track",
@@ -1155,8 +1155,8 @@ function _t({
1155
1155
  /* @__PURE__ */ v.jsx(
1156
1156
  "button",
1157
1157
  {
1158
- className: $(A.b(), A.bs("order")),
1159
- onClick: ne,
1158
+ className: $(S.b(), S.bs("order")),
1159
+ onClick: J,
1160
1160
  type: "button",
1161
1161
  "aria-label": `Playback order: ${s}`,
1162
1162
  children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(St, {}) }[s]
@@ -1165,8 +1165,8 @@ function _t({
1165
1165
  /* @__PURE__ */ v.jsx(
1166
1166
  "button",
1167
1167
  {
1168
- className: $(A.b(), A.bs("order")),
1169
- onClick: U,
1168
+ className: $(S.b(), S.bs("order")),
1169
+ onClick: ne,
1170
1170
  type: "button",
1171
1171
  "aria-label": `Loop mode: ${E}`,
1172
1172
  children: {
@@ -1180,7 +1180,7 @@ function _t({
1180
1180
  "button",
1181
1181
  {
1182
1182
  type: "button",
1183
- className: $(A.b(), A.bs("menu")),
1183
+ className: $(S.b(), S.bs("menu")),
1184
1184
  onClick: () => y == null ? void 0 : y(),
1185
1185
  "aria-label": "Toggle playlist menu",
1186
1186
  children: /* @__PURE__ */ v.jsx(Et, {})
@@ -1190,8 +1190,8 @@ function _t({
1190
1190
  "button",
1191
1191
  {
1192
1192
  type: "button",
1193
- className: $(A.b(), A.bs("lrc"), {
1194
- [A.ns("lrc-inactivity")]: !p
1193
+ className: $(S.b(), S.bs("lrc"), {
1194
+ [S.ns("lrc-inactivity")]: !p
1195
1195
  }),
1196
1196
  onClick: j,
1197
1197
  "aria-label": p ? "Hide lyrics" : "Show lyrics",
@@ -1211,8 +1211,8 @@ function Tt({
1211
1211
  onPlayAudio: a,
1212
1212
  listMaxHeight: i
1213
1213
  }) {
1214
- const l = W("aplayer-list"), y = i ? { maxHeight: i } : void 0, g = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = V(null);
1215
- return D(() => {
1214
+ const l = U("aplayer-list"), y = i ? { maxHeight: i } : void 0, g = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = D(null);
1215
+ return I(() => {
1216
1216
  if (s.current) {
1217
1217
  const d = s.current;
1218
1218
  return d.style.maxHeight = `${Math.min(
@@ -1255,14 +1255,14 @@ function Tt({
1255
1255
  );
1256
1256
  }
1257
1257
  function lr({ show: e, lrcText: t, currentTime: n }) {
1258
- const a = W("aplayer-lrc"), i = J(() => wt(t), [t]), l = J(() => {
1258
+ const a = U("aplayer-lrc"), i = K(() => wt(t), [t]), l = K(() => {
1259
1259
  for (let g = 0; g < i.length; g++) {
1260
1260
  const s = i[g], d = i[g + 1];
1261
1261
  if (n >= s[0] && (!d || n < d[0]))
1262
1262
  return g;
1263
1263
  }
1264
1264
  return 0;
1265
- }, [n, i]), y = J(() => ({
1265
+ }, [n, i]), y = K(() => ({
1266
1266
  transform: `translateY(${-l * 16}px)`,
1267
1267
  WebkitTransform: `translateY(${-l * 16}px)`
1268
1268
  }), [l]);
@@ -1305,7 +1305,7 @@ function wt(e) {
1305
1305
  } else
1306
1306
  return [];
1307
1307
  }
1308
- var Te = { exports: {} }, De = {};
1308
+ var je = { exports: {} }, De = {};
1309
1309
  /**
1310
1310
  * @license React
1311
1311
  * use-sync-external-store-shim.production.js
@@ -1319,13 +1319,13 @@ var fr;
1319
1319
  function jt() {
1320
1320
  if (fr) return De;
1321
1321
  fr = 1;
1322
- var e = je;
1322
+ var e = Re;
1323
1323
  function t(b, f) {
1324
1324
  return b === f && (b !== 0 || 1 / b === 1 / f) || b !== b && f !== f;
1325
1325
  }
1326
1326
  var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, l = e.useLayoutEffect, y = e.useDebugValue;
1327
1327
  function g(b, f) {
1328
- var c = f(), S = a({ inst: { value: c, getSnapshot: f } }), u = S[0].inst, h = S[1];
1328
+ var c = f(), _ = a({ inst: { value: c, getSnapshot: f } }), u = _[0].inst, h = _[1];
1329
1329
  return l(
1330
1330
  function() {
1331
1331
  u.value = c, u.getSnapshot = f, s(u) && h({ inst: u });
@@ -1369,29 +1369,29 @@ var Ie = {};
1369
1369
  var dr;
1370
1370
  function Ot() {
1371
1371
  return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() {
1372
- function e(c, S) {
1373
- return c === S && (c !== 0 || 1 / c === 1 / S) || c !== c && S !== S;
1372
+ function e(c, _) {
1373
+ return c === _ && (c !== 0 || 1 / c === 1 / _) || c !== c && _ !== _;
1374
1374
  }
1375
- function t(c, S) {
1375
+ function t(c, _) {
1376
1376
  E || i.startTransition === void 0 || (E = !0, console.error(
1377
1377
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1378
1378
  ));
1379
- var u = S();
1379
+ var u = _();
1380
1380
  if (!b) {
1381
- var h = S();
1381
+ var h = _();
1382
1382
  l(u, h) || (console.error(
1383
1383
  "The result of getSnapshot should be cached to avoid an infinite loop"
1384
1384
  ), b = !0);
1385
1385
  }
1386
1386
  h = y({
1387
- inst: { value: u, getSnapshot: S }
1387
+ inst: { value: u, getSnapshot: _ }
1388
1388
  });
1389
1389
  var p = h[0].inst, j = h[1];
1390
1390
  return s(
1391
1391
  function() {
1392
- p.value = u, p.getSnapshot = S, n(p) && j({ inst: p });
1392
+ p.value = u, p.getSnapshot = _, n(p) && j({ inst: p });
1393
1393
  },
1394
- [c, u, S]
1394
+ [c, u, _]
1395
1395
  ), g(
1396
1396
  function() {
1397
1397
  return n(p) && j({ inst: p }), c(function() {
@@ -1402,51 +1402,51 @@ function Ot() {
1402
1402
  ), d(u), u;
1403
1403
  }
1404
1404
  function n(c) {
1405
- var S = c.getSnapshot;
1405
+ var _ = c.getSnapshot;
1406
1406
  c = c.value;
1407
1407
  try {
1408
- var u = S();
1408
+ var u = _();
1409
1409
  return !l(c, u);
1410
1410
  } catch {
1411
1411
  return !0;
1412
1412
  }
1413
1413
  }
1414
- function a(c, S) {
1415
- return S();
1414
+ function a(c, _) {
1415
+ return _();
1416
1416
  }
1417
1417
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1418
- var i = je, l = typeof Object.is == "function" ? Object.is : e, y = i.useState, g = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, E = !1, b = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1418
+ var i = Re, l = typeof Object.is == "function" ? Object.is : e, y = i.useState, g = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, E = !1, b = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1419
1419
  Ie.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1420
1420
  }()), Ie;
1421
1421
  }
1422
1422
  var vr;
1423
1423
  function Rt() {
1424
- return vr || (vr = 1, process.env.NODE_ENV === "production" ? Te.exports = jt() : Te.exports = Ot()), Te.exports;
1424
+ return vr || (vr = 1, process.env.NODE_ENV === "production" ? je.exports = jt() : je.exports = Ot()), je.exports;
1425
1425
  }
1426
- var K = Rt();
1426
+ var G = Rt();
1427
1427
  const re = [];
1428
1428
  function Lt(e) {
1429
- const t = V();
1430
- return D(() => {
1429
+ const t = D();
1430
+ return I(() => {
1431
1431
  if (typeof window < "u" && !t.current) {
1432
1432
  const n = t.current = document.createElement("audio");
1433
1433
  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), re.includes(n) || re.push(n);
1434
1434
  }
1435
- }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), D(() => {
1435
+ }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), I(() => {
1436
1436
  if (typeof window > "u") return;
1437
1437
  const n = t.current;
1438
1438
  if (n && (e != null && e.onError))
1439
1439
  return n.addEventListener("error", e.onError), () => {
1440
1440
  n.removeEventListener("error", e.onError);
1441
1441
  };
1442
- }, [e == null ? void 0 : e.onError]), D(() => {
1442
+ }, [e == null ? void 0 : e.onError]), I(() => {
1443
1443
  if (typeof window > "u") return;
1444
1444
  const n = t.current;
1445
1445
  if (n && (e != null && e.onEnded))
1446
1446
  return n.addEventListener("ended", e.onEnded), () => {
1447
1447
  n.removeEventListener("ended", e.onEnded);
1448
1448
  };
1449
- }, [e == null ? void 0 : e.onEnded]), D(() => () => {
1449
+ }, [e == null ? void 0 : e.onEnded]), I(() => () => {
1450
1450
  const n = t.current;
1451
1451
  if (n) {
1452
1452
  n.pause(), n.currentTime = 0;
@@ -1493,7 +1493,7 @@ function Pt(e) {
1493
1493
  t.current && (t.current.volume = u);
1494
1494
  },
1495
1495
  [t]
1496
- ), s = K.useSyncExternalStore(
1496
+ ), s = G.useSyncExternalStore(
1497
1497
  L(
1498
1498
  (u) => {
1499
1499
  var h;
@@ -1516,7 +1516,7 @@ function Pt(e) {
1516
1516
  },
1517
1517
  () => {
1518
1518
  }
1519
- ), d = K.useSyncExternalStore(
1519
+ ), d = G.useSyncExternalStore(
1520
1520
  L(
1521
1521
  (u) => {
1522
1522
  var h;
@@ -1539,7 +1539,7 @@ function Pt(e) {
1539
1539
  },
1540
1540
  () => {
1541
1541
  }
1542
- ), E = K.useSyncExternalStore(
1542
+ ), E = G.useSyncExternalStore(
1543
1543
  L(
1544
1544
  (u) => {
1545
1545
  var h;
@@ -1559,7 +1559,7 @@ function Pt(e) {
1559
1559
  },
1560
1560
  () => {
1561
1561
  }
1562
- ), b = K.useSyncExternalStore(
1562
+ ), b = G.useSyncExternalStore(
1563
1563
  L(
1564
1564
  (u) => {
1565
1565
  var h;
@@ -1582,7 +1582,7 @@ function Pt(e) {
1582
1582
  },
1583
1583
  () => {
1584
1584
  }
1585
- ), f = K.useSyncExternalStore(
1585
+ ), f = G.useSyncExternalStore(
1586
1586
  L(
1587
1587
  (u) => {
1588
1588
  var h;
@@ -1602,13 +1602,13 @@ function Pt(e) {
1602
1602
  },
1603
1603
  () => {
1604
1604
  }
1605
- ), c = K.useSyncExternalStore(
1605
+ ), c = G.useSyncExternalStore(
1606
1606
  L(
1607
1607
  (u) => {
1608
1608
  var h, p;
1609
1609
  return (h = t.current) == null || h.addEventListener("play", u), (p = t.current) == null || p.addEventListener("pause", u), () => {
1610
- var j, T;
1611
- (j = t.current) == null || j.removeEventListener("play", u), (T = t.current) == null || T.removeEventListener("pause", u);
1610
+ var j, N;
1611
+ (j = t.current) == null || j.removeEventListener("play", u), (N = t.current) == null || N.removeEventListener("pause", u);
1612
1612
  };
1613
1613
  },
1614
1614
  [t]
@@ -1619,16 +1619,16 @@ function Pt(e) {
1619
1619
  },
1620
1620
  () => {
1621
1621
  }
1622
- ), S = K.useSyncExternalStore(
1622
+ ), _ = G.useSyncExternalStore(
1623
1623
  L(
1624
1624
  (u) => {
1625
1625
  var h, p;
1626
1626
  return (h = t.current) == null || h.addEventListener("playing", u), (p = t.current) == null || p.addEventListener("waiting", u), () => {
1627
- var j, T;
1627
+ var j, N;
1628
1628
  (j = t.current) == null || j.removeEventListener(
1629
1629
  "playing",
1630
1630
  u
1631
- ), (T = t.current) == null || T.removeEventListener(
1631
+ ), (N = t.current) == null || N.removeEventListener(
1632
1632
  "waiting",
1633
1633
  u
1634
1634
  );
@@ -1656,12 +1656,12 @@ function Pt(e) {
1656
1656
  duration: b,
1657
1657
  bufferedSeconds: f,
1658
1658
  isPlaying: c,
1659
- isLoading: S
1659
+ isLoading: _
1660
1660
  };
1661
1661
  }
1662
1662
  function br() {
1663
- const e = V([]);
1664
- return D(() => {
1663
+ const e = D([]);
1664
+ return I(() => {
1665
1665
  const n = e.current;
1666
1666
  return () => {
1667
1667
  for (const a of n)
@@ -1673,7 +1673,7 @@ function br() {
1673
1673
  }, []);
1674
1674
  }
1675
1675
  function $t() {
1676
- const e = V(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = br(), i = L(
1676
+ const e = D(), [t, n] = W({ text: "", style: { opacity: 0 } }), a = br(), i = L(
1677
1677
  (l, y = 2e3) => {
1678
1678
  e.current && clearTimeout(e.current), n({ text: l, style: { opacity: 1 } }), e.current = a(() => {
1679
1679
  n({ text: l, style: { opacity: 0 } });
@@ -1696,12 +1696,12 @@ function At(e) {
1696
1696
  return e;
1697
1697
  }
1698
1698
  function Nt(e, t) {
1699
- const { initialLoop: n = "all", initialOrder: a = "list" } = t, [i, l] = H(n), [y, g] = H(a), s = J(() => y === "list" ? e : Ct(e), [e, y]), [d, E] = H(s[0]), b = L((h) => h.url, []), f = J(() => s.findIndex((p) => b(p) === b(d)) < s.length - 1 || i !== "none", [s, d, i, b]), c = L(() => {
1699
+ const { initialLoop: n = "all", initialOrder: a = "list" } = t, [i, l] = W(n), [y, g] = W(a), s = K(() => y === "list" ? e : Ct(e), [e, y]), [d, E] = W(s[0]), b = L((h) => h.url, []), f = K(() => s.findIndex((p) => b(p) === b(d)) < s.length - 1 || i !== "none", [s, d, i, b]), c = L(() => {
1700
1700
  E((h) => {
1701
1701
  const p = s.findIndex((j) => b(j) === b(h));
1702
1702
  return p < s.length - 1 ? s[p + 1] : { ...s[0] };
1703
1703
  });
1704
- }, [i, s, b]), S = L(() => {
1704
+ }, [i, s, b]), _ = L(() => {
1705
1705
  E((h) => {
1706
1706
  const p = s.indexOf(h);
1707
1707
  return p > 0 ? s[p - 1] : h;
@@ -1709,16 +1709,17 @@ function Nt(e, t) {
1709
1709
  }, [s]), u = L((h) => {
1710
1710
  E(h);
1711
1711
  }, []);
1712
- return D(() => {
1712
+ return I(() => {
1713
1713
  const h = s.find(
1714
1714
  (p) => b(p) === b(d)
1715
1715
  );
1716
1716
  E(h || s[0]);
1717
1717
  }, [s, b, d]), {
1718
+ list: s,
1718
1719
  currentSong: d,
1719
1720
  hasNextSong: f,
1720
1721
  next: c,
1721
- previous: S,
1722
+ previous: _,
1722
1723
  prioritize: u,
1723
1724
  order: y,
1724
1725
  setOrder: g,
@@ -1747,62 +1748,65 @@ function Dt({
1747
1748
  theme: E = "light",
1748
1749
  border: b = !1
1749
1750
  }) {
1750
- var oe, ue, se;
1751
- const f = W("aplayer"), c = Nt(Array.isArray(e) ? e : [e], {
1751
+ var ue, se, ce;
1752
+ const f = U("aplayer"), c = Nt(Array.isArray(e) ? e : [e], {
1752
1753
  initialLoop: a,
1753
1754
  initialOrder: i
1754
- }), [S, u] = $t(), h = br(), p = V(), j = L(() => {
1755
+ }), [_, u] = $t(), h = br(), p = D(), j = L(() => {
1755
1756
  p.current && (clearTimeout(p.current), p.current = void 0);
1756
- }, []), T = Pt({
1757
+ }, []), N = D(!1), S = Pt({
1757
1758
  src: c.currentSong.url,
1758
1759
  initialVolume: n,
1759
1760
  autoPlay: l,
1760
1761
  mutex: s,
1761
1762
  onError(R) {
1762
- const { error: G } = R.target;
1763
- G && u(
1763
+ const { error: le } = R.target;
1764
+ le && u(
1764
1765
  "An audio error has occurred, player will skip forward in 2 seconds."
1765
1766
  ), c.hasNextSong && (p.current = h(() => {
1766
1767
  c.next();
1767
1768
  }, 2e3));
1768
1769
  },
1769
1770
  onEnded() {
1770
- const { currentSong: R, loop: G, prioritize: Re, hasNextSong: Le } = c;
1771
- if (G === "one") {
1772
- Re({ ...R });
1771
+ const { list: R, currentSong: le, loop: ge, prioritize: Q, hasNextSong: fe } = c, { audio: Y } = S;
1772
+ if (ge === "one") {
1773
+ Q({ ...le });
1773
1774
  return;
1774
1775
  }
1775
- if (!Le && G === "none") {
1776
- const { audio: Q } = T;
1777
- Q.currentTime = 0, Q.pause();
1776
+ if (!fe && ge === "none") {
1777
+ N.current = !0, Y.currentTime = 0, Y.pause(), Y.src = R[0].url, Q(R[0]);
1778
1778
  return;
1779
1779
  }
1780
1780
  c.next();
1781
1781
  }
1782
- }), A = L(() => {
1783
- j(), T.togglePlay(c.currentSong.url);
1784
- }, [T, j, c.currentSong.url]), ne = L((R) => R ? typeof R == "string" ? R : R.url ? /* @__PURE__ */ v.jsx("a", { href: R.url, target: "_blank", rel: "noreferrer", children: R.name ?? "Audio artist" }) : R.name ?? "Audio artist" : "Audio artist", []), U = c.length > 1, B = J(
1782
+ }), J = L(() => {
1783
+ j(), S.togglePlay(c.currentSong.url);
1784
+ }, [S, j, c.currentSong.url]), ne = L((R) => R ? typeof R == "string" ? R : R.url ? /* @__PURE__ */ v.jsx("a", { href: R.url, target: "_blank", rel: "noreferrer", children: R.name ?? "Audio artist" }) : R.name ?? "Audio artist" : "Audio artist", []), V = c.length > 1, Le = K(
1785
1785
  () => Array.isArray(e) ? e : [e],
1786
1786
  [e]
1787
- ), { prioritize: ve } = c, me = L(
1787
+ ), { prioritize: ae } = c, Pe = L(
1788
1788
  (R) => {
1789
- j(), ve(R);
1789
+ j(), ae(R);
1790
1790
  },
1791
- [j, ve]
1792
- ), [he, Oe] = H(() => U && !d), [pe, F] = H(g), [I, Y] = H(!0), X = V(null);
1793
- D(() => {
1791
+ [j, ae]
1792
+ ), [pe, ye] = W(() => V && !d), [B, F] = W(g), [z, be] = W(!0), X = D(null);
1793
+ I(() => {
1794
1794
  F(g);
1795
- }, [g]), D(() => {
1796
- l && T.playAudio(c.currentSong.url);
1795
+ }, [g]), I(() => {
1796
+ l && S.playAudio(c.currentSong.url);
1797
1797
  }, []);
1798
- const ae = V(!0), ie = V(c.currentSong);
1799
- return D(() => {
1800
- if (ae.current) {
1801
- ae.current = !1;
1798
+ const ie = D(!0), oe = D(c.currentSong);
1799
+ return I(() => {
1800
+ if (ie.current) {
1801
+ ie.current = !1;
1802
+ return;
1803
+ }
1804
+ if (N.current) {
1805
+ N.current = !1;
1802
1806
  return;
1803
1807
  }
1804
- c.currentSong && (c.loop === "one" || c.currentSong !== ie.current) && (ie.current = c.currentSong, T.playAudio(c.currentSong.url));
1805
- }, [c.currentSong]), D(() => {
1808
+ c.currentSong && (c.loop === "one" || c.currentSong !== oe.current) && (oe.current = c.currentSong, S.playAudio(c.currentSong.url));
1809
+ }, [c.currentSong]), I(() => {
1806
1810
  if (t === "fixed" && X.current) {
1807
1811
  const R = X.current;
1808
1812
  return R.style.width = `${R.offsetWidth - 18}px`, () => {
@@ -1816,11 +1820,11 @@ function Dt({
1816
1820
  [f.bs(E)]: !0,
1817
1821
  [f.bs("vars")]: !0,
1818
1822
  [f.bm(t)]: !0,
1819
- [f.bm("loading")]: T.isLoading,
1820
- [f.bm("withlist")]: U,
1821
- [f.bm("list-folded")]: !he,
1823
+ [f.bm("loading")]: S.isLoading,
1824
+ [f.bm("withlist")]: V,
1825
+ [f.bm("list-folded")]: !pe,
1822
1826
  [f.bm("withlrc")]: !!c.currentSong.lrc && t !== "fixed",
1823
- [f.bm("narrow")]: pe,
1827
+ [f.bm("narrow")]: B,
1824
1828
  [f.bm("border")]: b
1825
1829
  }),
1826
1830
  role: "region",
@@ -1836,75 +1840,75 @@ function Dt({
1836
1840
  "div",
1837
1841
  {
1838
1842
  className: f.be("pic"),
1839
- onClick: A,
1843
+ onClick: J,
1840
1844
  style: {
1841
- backgroundImage: `url("${(oe = c.currentSong) == null ? void 0 : oe.cover}")`
1845
+ backgroundImage: `url("${(ue = c.currentSong) == null ? void 0 : ue.cover}")`
1842
1846
  },
1843
1847
  role: "button",
1844
- "aria-label": T.isPlaying ? "Pause audio" : "Play audio",
1848
+ "aria-label": S.isPlaying ? "Pause audio" : "Play audio",
1845
1849
  children: /* @__PURE__ */ v.jsx(
1846
1850
  "div",
1847
1851
  {
1848
1852
  className: $(
1849
1853
  f.be("button"),
1850
- T.isPlaying ? f.bm("pause") : f.bm("play")
1854
+ S.isPlaying ? f.bm("pause") : f.bm("play")
1851
1855
  ),
1852
1856
  role: "presentation",
1853
- children: T.isPlaying ? /* @__PURE__ */ v.jsx(Mt, {}) : /* @__PURE__ */ v.jsx(ot, {})
1857
+ children: S.isPlaying ? /* @__PURE__ */ v.jsx(Mt, {}) : /* @__PURE__ */ v.jsx(ot, {})
1854
1858
  }
1855
1859
  )
1856
1860
  }
1857
1861
  ),
1858
1862
  /* @__PURE__ */ v.jsxs("div", { className: $(f.be("info")), children: [
1859
1863
  /* @__PURE__ */ v.jsxs("div", { className: $(f.be("music")), children: [
1860
- /* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((ue = c.currentSong) == null ? void 0 : ue.name) ?? "Audio name" }),
1864
+ /* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((se = c.currentSong) == null ? void 0 : se.name) ?? "Audio name" }),
1861
1865
  /* @__PURE__ */ v.jsxs("span", { className: $(f.be("author")), children: [
1862
1866
  " ",
1863
1867
  "-",
1864
1868
  " ",
1865
- ne((se = c.currentSong) == null ? void 0 : se.artist)
1869
+ ne((ce = c.currentSong) == null ? void 0 : ce.artist)
1866
1870
  ] })
1867
1871
  ] }),
1868
1872
  t === "fixed" ? null : /* @__PURE__ */ v.jsx(
1869
1873
  lr,
1870
1874
  {
1871
- show: I,
1875
+ show: z,
1872
1876
  lrcText: c.currentSong.lrc,
1873
- currentTime: T.currentTime ?? 0
1877
+ currentTime: S.currentTime ?? 0
1874
1878
  }
1875
1879
  ),
1876
1880
  /* @__PURE__ */ v.jsx(
1877
1881
  _t,
1878
1882
  {
1879
- volume: T.volume ?? n,
1880
- onChangeVolume: T.setVolume,
1881
- muted: T.muted ?? !1,
1882
- onToggleMuted: () => T.toggleMuted(),
1883
- currentTime: T.currentTime,
1884
- audioDurationSeconds: T.duration,
1885
- bufferedSeconds: T.bufferedSeconds,
1886
- onSeek: (R) => T.seek(R),
1887
- onToggleMenu: () => Oe((R) => !R),
1883
+ volume: S.volume ?? n,
1884
+ onChangeVolume: S.setVolume,
1885
+ muted: S.muted ?? !1,
1886
+ onToggleMuted: () => S.toggleMuted(),
1887
+ currentTime: S.currentTime,
1888
+ audioDurationSeconds: S.duration,
1889
+ bufferedSeconds: S.bufferedSeconds,
1890
+ onSeek: (R) => S.seek(R),
1891
+ onToggleMenu: () => ye((R) => !R),
1888
1892
  order: c.order,
1889
1893
  onOrderChange: c.setOrder,
1890
1894
  loop: c.loop,
1891
1895
  onLoopChange: c.setLoop,
1892
- isPlaying: T.isPlaying ?? !1,
1893
- onTogglePlay: A,
1896
+ isPlaying: S.isPlaying ?? !1,
1897
+ onTogglePlay: J,
1894
1898
  onSkipForward: () => {
1895
1899
  c.hasNextSong && c.next();
1896
1900
  },
1897
1901
  onSkipBack: () => {
1898
1902
  c.previous();
1899
1903
  },
1900
- showLyrics: I,
1904
+ showLyrics: z,
1901
1905
  onToggleLyrics: () => {
1902
- Y((R) => !R);
1906
+ be((R) => !R);
1903
1907
  }
1904
1908
  }
1905
1909
  )
1906
1910
  ] }),
1907
- /* @__PURE__ */ v.jsx("div", { className: f.be("notice"), style: S.style, children: S.text }),
1911
+ /* @__PURE__ */ v.jsx("div", { className: f.be("notice"), style: _.style, children: _.text }),
1908
1912
  /* @__PURE__ */ v.jsx(
1909
1913
  "div",
1910
1914
  {
@@ -1916,22 +1920,22 @@ function Dt({
1916
1920
  ]
1917
1921
  }
1918
1922
  ),
1919
- U ? /* @__PURE__ */ v.jsx(
1923
+ V ? /* @__PURE__ */ v.jsx(
1920
1924
  Tt,
1921
1925
  {
1922
- open: he,
1923
- audio: B,
1926
+ open: pe,
1927
+ audio: Le,
1924
1928
  playingAudioUrl: c.currentSong.url,
1925
- onPlayAudio: me,
1929
+ onPlayAudio: Pe,
1926
1930
  listMaxHeight: y
1927
1931
  }
1928
1932
  ) : null,
1929
1933
  t === "fixed" && /* @__PURE__ */ v.jsx(
1930
1934
  lr,
1931
1935
  {
1932
- show: I,
1936
+ show: z,
1933
1937
  lrcText: c.currentSong.lrc,
1934
- currentTime: T.currentTime ?? 0
1938
+ currentTime: S.currentTime ?? 0
1935
1939
  }
1936
1940
  )
1937
1941
  ]