twist-aplayer 1.4.3 → 1.4.4

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
- import * as ae from "react";
2
- import je, { useMemo as K, useRef as V, useState as Y, useEffect as F, useCallback as R } from "react";
3
- var Se = { exports: {} }, ce = {};
1
+ import * as ie from "react";
2
+ import Oe, { useMemo as K, useRef as F, useState as Y, useEffect as B, useCallback as R } from "react";
3
+ var _e = { exports: {} }, de = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -10,21 +10,21 @@ var Se = { exports: {} }, ce = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var rr;
14
- function Br() {
15
- if (rr) return ce;
16
- rr = 1;
17
- var e = je, r = 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
- function h(g, s, c) {
19
- var f, p = {}, x = null, E = null;
20
- c !== void 0 && (x = "" + c), s.key !== void 0 && (x = "" + s.key), s.ref !== void 0 && (E = s.ref);
21
- for (f in s) a.call(s, f) && !l.hasOwnProperty(f) && (p[f] = s[f]);
22
- if (g && g.defaultProps) for (f in s = g.defaultProps, s) p[f] === void 0 && (p[f] = s[f]);
23
- return { $$typeof: r, type: g, key: x, ref: E, props: p, _owner: i.current };
13
+ var nr;
14
+ function Ur() {
15
+ if (nr) return de;
16
+ nr = 1;
17
+ var e = Oe, r = 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, m = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function c(g, s, y) {
19
+ var l, h = {}, x = null, E = null;
20
+ y !== void 0 && (x = "" + y), s.key !== void 0 && (x = "" + s.key), s.ref !== void 0 && (E = s.ref);
21
+ for (l in s) a.call(s, l) && !m.hasOwnProperty(l) && (h[l] = s[l]);
22
+ if (g && g.defaultProps) for (l in s = g.defaultProps, s) h[l] === void 0 && (h[l] = s[l]);
23
+ return { $$typeof: r, type: g, key: x, ref: E, props: h, _owner: i.current };
24
24
  }
25
- return ce.Fragment = n, ce.jsx = h, ce.jsxs = h, ce;
25
+ return de.Fragment = n, de.jsx = c, de.jsxs = c, de;
26
26
  }
27
- var fe = {};
27
+ var ve = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.development.js
@@ -34,57 +34,57 @@ var fe = {};
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */
37
- var tr;
38
- function zr() {
39
- return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
40
- var e = je, r = 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"), h = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), b = Symbol.iterator, u = "@@iterator";
41
- function v(t) {
37
+ var ar;
38
+ function Yr() {
39
+ return ar || (ar = 1, process.env.NODE_ENV !== "production" && function() {
40
+ var e = Oe, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), b = Symbol.iterator, u = "@@iterator";
41
+ function d(t) {
42
42
  if (t === null || typeof t != "object")
43
43
  return null;
44
44
  var o = b && t[b] || t[u];
45
45
  return typeof o == "function" ? o : null;
46
46
  }
47
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function w(t) {
47
+ var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
+ function T(t) {
49
49
  {
50
- for (var o = arguments.length, m = new Array(o > 1 ? o - 1 : 0), S = 1; S < o; S++)
51
- m[S - 1] = arguments[S];
52
- j("error", t, m);
50
+ for (var o = arguments.length, v = new Array(o > 1 ? o - 1 : 0), S = 1; S < o; S++)
51
+ v[S - 1] = arguments[S];
52
+ j("error", t, v);
53
53
  }
54
54
  }
55
- function j(t, o, m) {
55
+ function j(t, o, v) {
56
56
  {
57
- var S = y.ReactDebugCurrentFrame, O = S.getStackAddendum();
58
- O !== "" && (o += "%s", m = m.concat([O]));
59
- var P = m.map(function(T) {
60
- return String(T);
57
+ var S = p.ReactDebugCurrentFrame, O = S.getStackAddendum();
58
+ O !== "" && (o += "%s", v = v.concat([O]));
59
+ var P = v.map(function(w) {
60
+ return String(w);
61
61
  });
62
62
  P.unshift("Warning: " + o), Function.prototype.apply.call(console[t], console, P);
63
63
  }
64
64
  }
65
- var L = !1, B = !1, z = !1, q = !1, J = !1, A;
65
+ var L = !1, z = !1, H = !1, q = !1, J = !1, A;
66
66
  A = Symbol.for("react.module.reference");
67
- function me(t) {
68
- return !!(typeof t == "string" || typeof t == "function" || t === a || t === l || J || t === i || t === c || t === f || q || t === E || L || B || z || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === p || t.$$typeof === h || t.$$typeof === g || t.$$typeof === s || // This needs to include all possible module reference object
67
+ function pe(t) {
68
+ return !!(typeof t == "string" || typeof t == "function" || t === a || t === m || J || t === i || t === y || t === l || q || t === E || L || z || H || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === h || t.$$typeof === c || t.$$typeof === g || t.$$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
  t.$$typeof === A || t.getModuleId !== void 0));
73
73
  }
74
- function Oe(t, o, m) {
74
+ function Re(t, o, v) {
75
75
  var S = t.displayName;
76
76
  if (S)
77
77
  return S;
78
78
  var O = o.displayName || o.name || "";
79
- return O !== "" ? m + "(" + O + ")" : m;
79
+ return O !== "" ? v + "(" + O + ")" : v;
80
80
  }
81
- function he(t) {
81
+ function ye(t) {
82
82
  return t.displayName || "Context";
83
83
  }
84
- function H(t) {
84
+ function W(t) {
85
85
  if (t == null)
86
86
  return null;
87
- if (typeof t.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
87
+ if (typeof t.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
88
88
  return t.displayName || t.name || null;
89
89
  if (typeof t == "string")
90
90
  return t;
@@ -93,32 +93,32 @@ function zr() {
93
93
  return "Fragment";
94
94
  case n:
95
95
  return "Portal";
96
- case l:
96
+ case m:
97
97
  return "Profiler";
98
98
  case i:
99
99
  return "StrictMode";
100
- case c:
100
+ case y:
101
101
  return "Suspense";
102
- case f:
102
+ case l:
103
103
  return "SuspenseList";
104
104
  }
105
105
  if (typeof t == "object")
106
106
  switch (t.$$typeof) {
107
107
  case g:
108
108
  var o = t;
109
- return he(o) + ".Consumer";
110
- case h:
111
- var m = t;
112
- return he(m._context) + ".Provider";
109
+ return ye(o) + ".Consumer";
110
+ case c:
111
+ var v = t;
112
+ return ye(v._context) + ".Provider";
113
113
  case s:
114
- return Oe(t, t.render, "ForwardRef");
115
- case p:
114
+ return Re(t, t.render, "ForwardRef");
115
+ case h:
116
116
  var S = t.displayName || null;
117
- return S !== null ? S : H(t.type) || "Memo";
117
+ return S !== null ? S : W(t.type) || "Memo";
118
118
  case x: {
119
- var O = t, P = O._payload, T = O._init;
119
+ var O = t, P = O._payload, w = O._init;
120
120
  try {
121
- return H(T(P));
121
+ return W(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 W = Object.assign, X = 0, Z, ie, oe, D, ee, ue, se;
130
- function pe() {
129
+ var U = Object.assign, X = 0, ee, oe, ue, I, re, se, le;
130
+ function be() {
131
131
  }
132
- pe.__reactDisabledLog = !0;
133
- function le() {
132
+ be.__reactDisabledLog = !0;
133
+ function ce() {
134
134
  {
135
135
  if (X === 0) {
136
- Z = console.log, ie = console.info, oe = console.warn, D = console.error, ee = console.group, ue = console.groupCollapsed, se = console.groupEnd;
136
+ ee = console.log, oe = console.info, ue = console.warn, I = console.error, re = console.group, se = console.groupCollapsed, le = console.groupEnd;
137
137
  var t = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
140
- value: pe,
140
+ value: be,
141
141
  writable: !0
142
142
  };
143
143
  Object.defineProperties(console, {
@@ -153,7 +153,7 @@ function zr() {
153
153
  X++;
154
154
  }
155
155
  }
156
- function br() {
156
+ function Er() {
157
157
  {
158
158
  if (X--, X === 0) {
159
159
  var t = {
@@ -162,100 +162,100 @@ function zr() {
162
162
  writable: !0
163
163
  };
164
164
  Object.defineProperties(console, {
165
- log: W({}, t, {
166
- value: Z
167
- }),
168
- info: W({}, t, {
169
- value: ie
165
+ log: U({}, t, {
166
+ value: ee
170
167
  }),
171
- warn: W({}, t, {
168
+ info: U({}, t, {
172
169
  value: oe
173
170
  }),
174
- error: W({}, t, {
175
- value: D
171
+ warn: U({}, t, {
172
+ value: ue
176
173
  }),
177
- group: W({}, t, {
178
- value: ee
174
+ error: U({}, t, {
175
+ value: I
179
176
  }),
180
- groupCollapsed: W({}, t, {
181
- value: ue
177
+ group: U({}, t, {
178
+ value: re
182
179
  }),
183
- groupEnd: W({}, t, {
180
+ groupCollapsed: U({}, t, {
184
181
  value: se
182
+ }),
183
+ groupEnd: U({}, t, {
184
+ value: le
185
185
  })
186
186
  });
187
187
  }
188
- X < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var Re = y.ReactCurrentDispatcher, Pe;
192
- function ye(t, o, m) {
191
+ var Pe = p.ReactCurrentDispatcher, Le;
192
+ function ge(t, o, v) {
193
193
  {
194
- if (Pe === void 0)
194
+ if (Le === void 0)
195
195
  try {
196
196
  throw Error();
197
197
  } catch (O) {
198
198
  var S = O.stack.trim().match(/\n( *(at )?)/);
199
- Pe = S && S[1] || "";
199
+ Le = S && S[1] || "";
200
200
  }
201
201
  return `
202
- ` + Pe + t;
202
+ ` + Le + t;
203
203
  }
204
204
  }
205
- var Le = !1, be;
205
+ var Ce = !1, Ee;
206
206
  {
207
- var gr = typeof WeakMap == "function" ? WeakMap : Map;
208
- be = new gr();
207
+ var xr = typeof WeakMap == "function" ? WeakMap : Map;
208
+ Ee = new xr();
209
209
  }
210
- function Ve(t, o) {
211
- if (!t || Le)
210
+ function Be(t, o) {
211
+ if (!t || Ce)
212
212
  return "";
213
213
  {
214
- var m = be.get(t);
215
- if (m !== void 0)
216
- return m;
214
+ var v = Ee.get(t);
215
+ if (v !== void 0)
216
+ return v;
217
217
  }
218
218
  var S;
219
- Le = !0;
219
+ Ce = !0;
220
220
  var O = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var P;
223
- P = Re.current, Re.current = null, le();
223
+ P = Pe.current, Pe.current = null, ce();
224
224
  try {
225
225
  if (o) {
226
- var T = function() {
226
+ var w = function() {
227
227
  throw Error();
228
228
  };
229
- if (Object.defineProperty(T.prototype, "props", {
229
+ if (Object.defineProperty(w.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(T, []);
236
- } catch (U) {
237
- S = U;
235
+ Reflect.construct(w, []);
236
+ } catch (D) {
237
+ S = D;
238
238
  }
239
- Reflect.construct(t, [], T);
239
+ Reflect.construct(t, [], w);
240
240
  } else {
241
241
  try {
242
- T.call();
243
- } catch (U) {
244
- S = U;
242
+ w.call();
243
+ } catch (D) {
244
+ S = D;
245
245
  }
246
- t.call(T.prototype);
246
+ t.call(w.prototype);
247
247
  }
248
248
  } else {
249
249
  try {
250
250
  throw Error();
251
- } catch (U) {
252
- S = U;
251
+ } catch (D) {
252
+ S = D;
253
253
  }
254
254
  t();
255
255
  }
256
- } catch (U) {
257
- if (U && S && typeof U.stack == "string") {
258
- for (var _ = U.stack.split(`
256
+ } catch (D) {
257
+ if (D && S && typeof D.stack == "string") {
258
+ for (var _ = D.stack.split(`
259
259
  `), k = S.stack.split(`
260
260
  `), $ = _.length - 1, M = k.length - 1; $ >= 1 && M >= 0 && _[$] !== k[M]; )
261
261
  M--;
@@ -264,163 +264,163 @@ function zr() {
264
264
  if ($ !== 1 || M !== 1)
265
265
  do
266
266
  if ($--, M--, M < 0 || _[$] !== k[M]) {
267
- var I = `
267
+ var V = `
268
268
  ` + _[$].replace(" at new ", " at ");
269
- return t.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", t.displayName)), typeof t == "function" && be.set(t, I), I;
269
+ return t.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", t.displayName)), typeof t == "function" && Ee.set(t, V), V;
270
270
  }
271
271
  while ($ >= 1 && M >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- Le = !1, Re.current = P, br(), Error.prepareStackTrace = O;
276
+ Ce = !1, Pe.current = P, Er(), Error.prepareStackTrace = O;
277
277
  }
278
- var te = t ? t.displayName || t.name : "", er = te ? ye(te) : "";
279
- return typeof t == "function" && be.set(t, er), er;
278
+ var ne = t ? t.displayName || t.name : "", Q = ne ? ge(ne) : "";
279
+ return typeof t == "function" && Ee.set(t, Q), Q;
280
280
  }
281
- function Er(t, o, m) {
282
- return Ve(t, !1);
281
+ function Sr(t, o, v) {
282
+ return Be(t, !1);
283
283
  }
284
- function xr(t) {
284
+ function _r(t) {
285
285
  var o = t.prototype;
286
286
  return !!(o && o.isReactComponent);
287
287
  }
288
- function ge(t, o, m) {
288
+ function xe(t, o, v) {
289
289
  if (t == null)
290
290
  return "";
291
291
  if (typeof t == "function")
292
- return Ve(t, xr(t));
292
+ return Be(t, _r(t));
293
293
  if (typeof t == "string")
294
- return ye(t);
294
+ return ge(t);
295
295
  switch (t) {
296
- case c:
297
- return ye("Suspense");
298
- case f:
299
- return ye("SuspenseList");
296
+ case y:
297
+ return ge("Suspense");
298
+ case l:
299
+ return ge("SuspenseList");
300
300
  }
301
301
  if (typeof t == "object")
302
302
  switch (t.$$typeof) {
303
303
  case s:
304
- return Er(t.render);
305
- case p:
306
- return ge(t.type, o, m);
304
+ return Sr(t.render);
305
+ case h:
306
+ return xe(t.type, o, v);
307
307
  case x: {
308
308
  var S = t, O = S._payload, P = S._init;
309
309
  try {
310
- return ge(P(O), o, m);
310
+ return xe(P(O), o, v);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var Ee = Object.prototype.hasOwnProperty, Fe = {}, Be = y.ReactDebugCurrentFrame;
318
- function xe(t) {
317
+ var fe = Object.prototype.hasOwnProperty, ze = {}, He = p.ReactDebugCurrentFrame;
318
+ function Se(t) {
319
319
  if (t) {
320
- var o = t._owner, m = ge(t.type, t._source, o ? o.type : null);
321
- Be.setExtraStackFrame(m);
320
+ var o = t._owner, v = xe(t.type, t._source, o ? o.type : null);
321
+ He.setExtraStackFrame(v);
322
322
  } else
323
- Be.setExtraStackFrame(null);
323
+ He.setExtraStackFrame(null);
324
324
  }
325
- function Sr(t, o, m, S, O) {
325
+ function wr(t, o, v, S, O) {
326
326
  {
327
- var P = Function.call.bind(Ee);
328
- for (var T in t)
329
- if (P(t, T)) {
327
+ var P = Function.call.bind(fe);
328
+ for (var w in t)
329
+ if (P(t, w)) {
330
330
  var _ = void 0;
331
331
  try {
332
- if (typeof t[T] != "function") {
333
- var k = Error((S || "React class") + ": " + m + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
332
+ if (typeof t[w] != "function") {
333
+ var k = Error((S || "React class") + ": " + v + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw k.name = "Invariant Violation", k;
335
335
  }
336
- _ = t[T](o, T, S, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
+ _ = t[w](o, w, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
337
  } catch ($) {
338
338
  _ = $;
339
339
  }
340
- _ && !(_ instanceof Error) && (xe(O), w("%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).", S || "React class", m, T, typeof _), xe(null)), _ instanceof Error && !(_.message in Fe) && (Fe[_.message] = !0, xe(O), w("Failed %s type: %s", m, _.message), xe(null));
340
+ _ && !(_ instanceof Error) && (Se(O), T("%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).", S || "React class", v, w, typeof _), Se(null)), _ instanceof Error && !(_.message in ze) && (ze[_.message] = !0, Se(O), T("Failed %s type: %s", v, _.message), Se(null));
341
341
  }
342
342
  }
343
343
  }
344
- var _r = Array.isArray;
345
- function Ce(t) {
346
- return _r(t);
344
+ var Tr = Array.isArray;
345
+ function $e(t) {
346
+ return Tr(t);
347
347
  }
348
- function Tr(t) {
348
+ function jr(t) {
349
349
  {
350
- var o = typeof Symbol == "function" && Symbol.toStringTag, m = o && t[Symbol.toStringTag] || t.constructor.name || "Object";
351
- return m;
350
+ var o = typeof Symbol == "function" && Symbol.toStringTag, v = o && t[Symbol.toStringTag] || t.constructor.name || "Object";
351
+ return v;
352
352
  }
353
353
  }
354
- function wr(t) {
354
+ function Or(t) {
355
355
  try {
356
- return ze(t), !1;
356
+ return We(t), !1;
357
357
  } catch {
358
358
  return !0;
359
359
  }
360
360
  }
361
- function ze(t) {
361
+ function We(t) {
362
362
  return "" + t;
363
363
  }
364
- function He(t) {
365
- if (wr(t))
366
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(t)), ze(t);
364
+ function Ue(t) {
365
+ if (Or(t))
366
+ return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jr(t)), We(t);
367
367
  }
368
- var We = y.ReactCurrentOwner, jr = {
368
+ var Ye = p.ReactCurrentOwner, Rr = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
372
372
  __source: !0
373
- }, Ue, Ye;
374
- function Or(t) {
375
- if (Ee.call(t, "ref")) {
373
+ }, Ge, Ke;
374
+ function Pr(t) {
375
+ if (fe.call(t, "ref")) {
376
376
  var o = Object.getOwnPropertyDescriptor(t, "ref").get;
377
377
  if (o && o.isReactWarning)
378
378
  return !1;
379
379
  }
380
380
  return t.ref !== void 0;
381
381
  }
382
- function Rr(t) {
383
- if (Ee.call(t, "key")) {
382
+ function Lr(t) {
383
+ if (fe.call(t, "key")) {
384
384
  var o = Object.getOwnPropertyDescriptor(t, "key").get;
385
385
  if (o && o.isReactWarning)
386
386
  return !1;
387
387
  }
388
388
  return t.key !== void 0;
389
389
  }
390
- function Pr(t, o) {
391
- typeof t.ref == "string" && We.current;
390
+ function Cr(t, o) {
391
+ typeof t.ref == "string" && Ye.current;
392
392
  }
393
- function Lr(t, o) {
393
+ function $r(t, o) {
394
394
  {
395
- var m = function() {
396
- Ue || (Ue = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
395
+ var v = function() {
396
+ Ge || (Ge = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
397
397
  };
398
- m.isReactWarning = !0, Object.defineProperty(t, "key", {
399
- get: m,
398
+ v.isReactWarning = !0, Object.defineProperty(t, "key", {
399
+ get: v,
400
400
  configurable: !0
401
401
  });
402
402
  }
403
403
  }
404
- function Cr(t, o) {
404
+ function Ar(t, o) {
405
405
  {
406
- var m = function() {
407
- Ye || (Ye = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
406
+ var v = function() {
407
+ Ke || (Ke = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
408
408
  };
409
- m.isReactWarning = !0, Object.defineProperty(t, "ref", {
410
- get: m,
409
+ v.isReactWarning = !0, Object.defineProperty(t, "ref", {
410
+ get: v,
411
411
  configurable: !0
412
412
  });
413
413
  }
414
414
  }
415
- var $r = function(t, o, m, S, O, P, T) {
415
+ var Mr = function(t, o, v, S, O, P, w) {
416
416
  var _ = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: r,
419
419
  // Built-in properties that belong on the element
420
420
  type: t,
421
421
  key: o,
422
- ref: m,
423
- props: T,
422
+ ref: v,
423
+ props: w,
424
424
  // Record the component responsible for creating this element.
425
425
  _owner: P
426
426
  };
@@ -441,41 +441,41 @@ function zr() {
441
441
  value: O
442
442
  }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
443
443
  };
444
- function Ar(t, o, m, S, O) {
444
+ function Nr(t, o, v, S, O) {
445
445
  {
446
- var P, T = {}, _ = null, k = null;
447
- m !== void 0 && (He(m), _ = "" + m), Rr(o) && (He(o.key), _ = "" + o.key), Or(o) && (k = o.ref, Pr(o, O));
446
+ var P, w = {}, _ = null, k = null;
447
+ v !== void 0 && (Ue(v), _ = "" + v), Lr(o) && (Ue(o.key), _ = "" + o.key), Pr(o) && (k = o.ref, Cr(o, O));
448
448
  for (P in o)
449
- Ee.call(o, P) && !jr.hasOwnProperty(P) && (T[P] = o[P]);
449
+ fe.call(o, P) && !Rr.hasOwnProperty(P) && (w[P] = o[P]);
450
450
  if (t && t.defaultProps) {
451
451
  var $ = t.defaultProps;
452
452
  for (P in $)
453
- T[P] === void 0 && (T[P] = $[P]);
453
+ w[P] === void 0 && (w[P] = $[P]);
454
454
  }
455
455
  if (_ || k) {
456
456
  var M = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
457
- _ && Lr(T, M), k && Cr(T, M);
457
+ _ && $r(w, M), k && Ar(w, M);
458
458
  }
459
- return $r(t, _, k, O, S, We.current, T);
459
+ return Mr(t, _, k, O, S, Ye.current, w);
460
460
  }
461
461
  }
462
- var $e = y.ReactCurrentOwner, Ge = y.ReactDebugCurrentFrame;
463
- function re(t) {
462
+ var Ae = p.ReactCurrentOwner, Je = p.ReactDebugCurrentFrame;
463
+ function te(t) {
464
464
  if (t) {
465
- var o = t._owner, m = ge(t.type, t._source, o ? o.type : null);
466
- Ge.setExtraStackFrame(m);
465
+ var o = t._owner, v = xe(t.type, t._source, o ? o.type : null);
466
+ Je.setExtraStackFrame(v);
467
467
  } else
468
- Ge.setExtraStackFrame(null);
468
+ Je.setExtraStackFrame(null);
469
469
  }
470
- var Ae;
471
- Ae = !1;
472
- function Me(t) {
470
+ var Me;
471
+ Me = !1;
472
+ function Ne(t) {
473
473
  return typeof t == "object" && t !== null && t.$$typeof === r;
474
474
  }
475
- function Ke() {
475
+ function Xe() {
476
476
  {
477
- if ($e.current) {
478
- var t = H($e.current.type);
477
+ if (Ae.current) {
478
+ var t = W(Ae.current.type);
479
479
  if (t)
480
480
  return `
481
481
 
@@ -484,137 +484,152 @@ Check the render method of \`` + t + "`.";
484
484
  return "";
485
485
  }
486
486
  }
487
- function Mr(t) {
487
+ function qr(t) {
488
488
  return "";
489
489
  }
490
- var Je = {};
491
- function Nr(t) {
490
+ var Qe = {};
491
+ function kr(t) {
492
492
  {
493
- var o = Ke();
493
+ var o = Xe();
494
494
  if (!o) {
495
- var m = typeof t == "string" ? t : t.displayName || t.name;
496
- m && (o = `
495
+ var v = typeof t == "string" ? t : t.displayName || t.name;
496
+ v && (o = `
497
497
 
498
- Check the top-level render call using <` + m + ">.");
498
+ Check the top-level render call using <` + v + ">.");
499
499
  }
500
500
  return o;
501
501
  }
502
502
  }
503
- function Xe(t, o) {
503
+ function Ze(t, o) {
504
504
  {
505
505
  if (!t._store || t._store.validated || t.key != null)
506
506
  return;
507
507
  t._store.validated = !0;
508
- var m = Nr(o);
509
- if (Je[m])
508
+ var v = kr(o);
509
+ if (Qe[v])
510
510
  return;
511
- Je[m] = !0;
511
+ Qe[v] = !0;
512
512
  var S = "";
513
- t && t._owner && t._owner !== $e.current && (S = " It was passed a child from " + H(t._owner.type) + "."), re(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, S), re(null);
513
+ t && t._owner && t._owner !== Ae.current && (S = " It was passed a child from " + W(t._owner.type) + "."), te(t), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), te(null);
514
514
  }
515
515
  }
516
- function Qe(t, o) {
516
+ function er(t, o) {
517
517
  {
518
518
  if (typeof t != "object")
519
519
  return;
520
- if (Ce(t))
521
- for (var m = 0; m < t.length; m++) {
522
- var S = t[m];
523
- Me(S) && Xe(S, o);
520
+ if ($e(t))
521
+ for (var v = 0; v < t.length; v++) {
522
+ var S = t[v];
523
+ Ne(S) && Ze(S, o);
524
524
  }
525
- else if (Me(t))
525
+ else if (Ne(t))
526
526
  t._store && (t._store.validated = !0);
527
527
  else if (t) {
528
- var O = v(t);
528
+ var O = d(t);
529
529
  if (typeof O == "function" && O !== t.entries)
530
- for (var P = O.call(t), T; !(T = P.next()).done; )
531
- Me(T.value) && Xe(T.value, o);
530
+ for (var P = O.call(t), w; !(w = P.next()).done; )
531
+ Ne(w.value) && Ze(w.value, o);
532
532
  }
533
533
  }
534
534
  }
535
- function qr(t) {
535
+ function Dr(t) {
536
536
  {
537
537
  var o = t.type;
538
538
  if (o == null || typeof o == "string")
539
539
  return;
540
- var m;
540
+ var v;
541
541
  if (typeof o == "function")
542
- m = o.propTypes;
542
+ v = o.propTypes;
543
543
  else if (typeof o == "object" && (o.$$typeof === s || // Note: Memo only checks outer props here.
544
544
  // Inner props are checked in the reconciler.
545
- o.$$typeof === p))
546
- m = o.propTypes;
545
+ o.$$typeof === h))
546
+ v = o.propTypes;
547
547
  else
548
548
  return;
549
- if (m) {
550
- var S = H(o);
551
- Sr(m, t.props, "prop", S, t);
552
- } else if (o.PropTypes !== void 0 && !Ae) {
553
- Ae = !0;
554
- var O = H(o);
555
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
549
+ if (v) {
550
+ var S = W(o);
551
+ wr(v, t.props, "prop", S, t);
552
+ } else if (o.PropTypes !== void 0 && !Me) {
553
+ Me = !0;
554
+ var O = W(o);
555
+ T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
556
556
  }
557
- typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
- function kr(t) {
560
+ function Ir(t) {
561
561
  {
562
- for (var o = Object.keys(t.props), m = 0; m < o.length; m++) {
563
- var S = o[m];
562
+ for (var o = Object.keys(t.props), v = 0; v < o.length; v++) {
563
+ var S = o[v];
564
564
  if (S !== "children" && S !== "key") {
565
- re(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), re(null);
565
+ te(t), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), te(null);
566
566
  break;
567
567
  }
568
568
  }
569
- t.ref !== null && (re(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
569
+ t.ref !== null && (te(t), T("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
570
570
  }
571
571
  }
572
- function Ze(t, o, m, S, O, P) {
572
+ var rr = {};
573
+ function tr(t, o, v, S, O, P) {
573
574
  {
574
- var T = me(t);
575
- if (!T) {
575
+ var w = pe(t);
576
+ if (!w) {
576
577
  var _ = "";
577
578
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).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.");
578
- var k = Mr();
579
- k ? _ += k : _ += Ke();
579
+ var k = qr();
580
+ k ? _ += k : _ += Xe();
580
581
  var $;
581
- t === null ? $ = "null" : Ce(t) ? $ = "array" : t !== void 0 && t.$$typeof === r ? ($ = "<" + (H(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, _);
582
+ t === null ? $ = "null" : $e(t) ? $ = "array" : t !== void 0 && t.$$typeof === r ? ($ = "<" + (W(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, _);
582
583
  }
583
- var M = Ar(t, o, m, O, P);
584
+ var M = Nr(t, o, v, O, P);
584
585
  if (M == null)
585
586
  return M;
586
- if (T) {
587
- var I = o.children;
588
- if (I !== void 0)
587
+ if (w) {
588
+ var V = o.children;
589
+ if (V !== void 0)
589
590
  if (S)
590
- if (Ce(I)) {
591
- for (var te = 0; te < I.length; te++)
592
- Qe(I[te], t);
593
- Object.freeze && Object.freeze(I);
591
+ if ($e(V)) {
592
+ for (var ne = 0; ne < V.length; ne++)
593
+ er(V[ne], t);
594
+ Object.freeze && Object.freeze(V);
594
595
  } else
595
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
597
  else
597
- Qe(I, t);
598
+ er(V, t);
599
+ }
600
+ if (fe.call(o, "key")) {
601
+ var Q = W(t), D = Object.keys(o).filter(function(Wr) {
602
+ return Wr !== "key";
603
+ }), qe = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
604
+ if (!rr[Q + qe]) {
605
+ var Hr = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
606
+ T(`A props object containing a "key" prop is being spread into JSX:
607
+ let props = %s;
608
+ <%s {...props} />
609
+ React keys must be passed directly to JSX without using spread:
610
+ let props = %s;
611
+ <%s key={someKey} {...props} />`, qe, Q, Hr, Q), rr[Q + qe] = !0;
612
+ }
598
613
  }
599
- return t === a ? kr(M) : qr(M), M;
614
+ return t === a ? Ir(M) : Dr(M), M;
600
615
  }
601
616
  }
602
- function Dr(t, o, m) {
603
- return Ze(t, o, m, !0);
617
+ function Vr(t, o, v) {
618
+ return tr(t, o, v, !0);
604
619
  }
605
- function Ir(t, o, m) {
606
- return Ze(t, o, m, !1);
620
+ function Fr(t, o, v) {
621
+ return tr(t, o, v, !1);
607
622
  }
608
- var Vr = Ir, Fr = Dr;
609
- fe.Fragment = a, fe.jsx = Vr, fe.jsxs = Fr;
610
- }()), fe;
623
+ var Br = Fr, zr = Vr;
624
+ ve.Fragment = a, ve.jsx = Br, ve.jsxs = zr;
625
+ }()), ve;
611
626
  }
612
- var nr;
613
- function Hr() {
614
- return nr || (nr = 1, process.env.NODE_ENV === "production" ? Se.exports = Br() : Se.exports = zr()), Se.exports;
627
+ var ir;
628
+ function Gr() {
629
+ return ir || (ir = 1, process.env.NODE_ENV === "production" ? _e.exports = Ur() : _e.exports = Yr()), _e.exports;
615
630
  }
616
- var d = Hr(), _e = (e) => `--${e}`, ar = (e) => `var(--${e})`, ir = (e, r) => `--${e}: ${r};`;
617
- function Wr(e, r) {
631
+ var f = Gr(), we = (e) => `--${e}`, or = (e) => `var(--${e})`, ur = (e, r) => `--${e}: ${r};`;
632
+ function Kr(e, r) {
618
633
  const n = (a) => r;
619
634
  return {
620
635
  b: () => `${n()}-${e}`,
@@ -629,128 +644,128 @@ function Wr(e, r) {
629
644
  cbem: (a, i) => `.${n()}-${e}__${a}--${i}`,
630
645
  cbs: (a) => `.${n()}-${e}-${a}`,
631
646
  cns: (a) => `.${n()}-${a}`,
632
- cv: (a) => _e(`${n()}-${e}-${a}`),
647
+ cv: (a) => we(`${n()}-${e}-${a}`),
633
648
  cvm: (a, i = {}) => {
634
- const l = n();
635
- for (const h of Object.keys(a))
636
- i[_e(`${l}-${e}-${h}`)] = a[h];
649
+ const m = n();
650
+ for (const c of Object.keys(a))
651
+ i[we(`${m}-${e}-${c}`)] = a[c];
637
652
  return i;
638
653
  },
639
- gcv: (a) => ar(`${n()}-${e}-${a}`),
640
- scv: (a, i) => ir(`${n()}-${e}-${a}`, i),
641
- nv: (a) => _e(`${n()}-${a}`),
654
+ gcv: (a) => or(`${n()}-${e}-${a}`),
655
+ scv: (a, i) => ur(`${n()}-${e}-${a}`, i),
656
+ nv: (a) => we(`${n()}-${a}`),
642
657
  nvm: (a, i = {}) => {
643
- const l = n();
644
- for (const h of Object.keys(a))
645
- i[_e(`${l}-${h}`)] = a[h];
658
+ const m = n();
659
+ for (const c of Object.keys(a))
660
+ i[we(`${m}-${c}`)] = a[c];
646
661
  return i;
647
662
  },
648
- gnv: (a) => ar(`${n()}-${a}`),
649
- snv: (a, i) => ir(`${n()}-${a}`, i)
663
+ gnv: (a) => or(`${n()}-${a}`),
664
+ snv: (a, i) => ur(`${n()}-${a}`, i)
650
665
  };
651
666
  }
652
667
  function G(e) {
653
- return K(() => Wr(e, "twist"), [e]);
668
+ return K(() => Kr(e, "twist"), [e]);
654
669
  }
655
- var vr = {
670
+ var hr = {
656
671
  color: void 0,
657
672
  size: void 0,
658
673
  className: void 0,
659
674
  style: void 0,
660
675
  attrs: void 0
661
- }, Ie = /* @__PURE__ */ ae.createContext(vr);
662
- Ie.Provider;
663
- function de(e) {
676
+ }, Fe = /* @__PURE__ */ ie.createContext(hr);
677
+ Fe.Provider;
678
+ function me(e) {
664
679
  "@babel/helpers - typeof";
665
- return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
680
+ return me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
666
681
  return typeof r;
667
682
  } : function(r) {
668
683
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
669
- }, de(e);
684
+ }, me(e);
670
685
  }
671
- var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
672
- function Yr(e, r) {
673
- return Jr(e) || Kr(e, r) || mr(e, r) || Gr();
686
+ var Jr = ["attrs", "size", "title", "spin", "rotate", "color"];
687
+ function Xr(e, r) {
688
+ return et(e) || Zr(e, r) || pr(e, r) || Qr();
674
689
  }
675
- function Gr() {
690
+ function Qr() {
676
691
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
677
692
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
678
693
  }
679
- function Kr(e, r) {
694
+ function Zr(e, r) {
680
695
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
681
696
  if (n != null) {
682
- var a, i, l, h, g = [], s = !0, c = !1;
697
+ var a, i, m, c, g = [], s = !0, y = !1;
683
698
  try {
684
- if (l = (n = n.call(e)).next, r !== 0) for (; !(s = (a = l.call(n)).done) && (g.push(a.value), g.length !== r); s = !0) ;
685
- } catch (f) {
686
- c = !0, i = f;
699
+ if (m = (n = n.call(e)).next, r !== 0) for (; !(s = (a = m.call(n)).done) && (g.push(a.value), g.length !== r); s = !0) ;
700
+ } catch (l) {
701
+ y = !0, i = l;
687
702
  } finally {
688
703
  try {
689
- if (!s && n.return != null && (h = n.return(), Object(h) !== h)) return;
704
+ if (!s && n.return != null && (c = n.return(), Object(c) !== c)) return;
690
705
  } finally {
691
- if (c) throw i;
706
+ if (y) throw i;
692
707
  }
693
708
  }
694
709
  return g;
695
710
  }
696
711
  }
697
- function Jr(e) {
712
+ function et(e) {
698
713
  if (Array.isArray(e)) return e;
699
714
  }
700
- function Xr(e, r) {
715
+ function rt(e, r) {
701
716
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
702
717
  if (!n) {
703
- if (Array.isArray(e) || (n = mr(e)) || r) {
718
+ if (Array.isArray(e) || (n = pr(e)) || r) {
704
719
  n && (e = n);
705
720
  var a = 0, i = function() {
706
721
  };
707
722
  return { s: i, n: function() {
708
723
  return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
709
- }, e: function(c) {
710
- throw c;
724
+ }, e: function(y) {
725
+ throw y;
711
726
  }, f: i };
712
727
  }
713
728
  throw new TypeError(`Invalid attempt to iterate non-iterable instance.
714
729
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
715
730
  }
716
- var l, h = !0, g = !1;
731
+ var m, c = !0, g = !1;
717
732
  return { s: function() {
718
733
  n = n.call(e);
719
734
  }, n: function() {
720
- var c = n.next();
721
- return h = c.done, c;
722
- }, e: function(c) {
723
- g = !0, l = c;
735
+ var y = n.next();
736
+ return c = y.done, y;
737
+ }, e: function(y) {
738
+ g = !0, m = y;
724
739
  }, f: function() {
725
740
  try {
726
- h || n.return == null || n.return();
741
+ c || n.return == null || n.return();
727
742
  } finally {
728
- if (g) throw l;
743
+ if (g) throw m;
729
744
  }
730
745
  } };
731
746
  }
732
- function mr(e, r) {
747
+ function pr(e, r) {
733
748
  if (e) {
734
- if (typeof e == "string") return or(e, r);
749
+ if (typeof e == "string") return sr(e, r);
735
750
  var n = {}.toString.call(e).slice(8, -1);
736
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? or(e, r) : void 0;
751
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? sr(e, r) : void 0;
737
752
  }
738
753
  }
739
- function or(e, r) {
754
+ function sr(e, r) {
740
755
  (r == null || r > e.length) && (r = e.length);
741
756
  for (var n = 0, a = Array(r); n < r; n++) a[n] = e[n];
742
757
  return a;
743
758
  }
744
- function we() {
745
- return we = Object.assign ? Object.assign.bind() : function(e) {
759
+ function je() {
760
+ return je = Object.assign ? Object.assign.bind() : function(e) {
746
761
  for (var r = 1; r < arguments.length; r++) {
747
762
  var n = arguments[r];
748
763
  for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
749
764
  }
750
765
  return e;
751
- }, we.apply(null, arguments);
766
+ }, je.apply(null, arguments);
752
767
  }
753
- function ur(e, r) {
768
+ function lr(e, r) {
754
769
  var n = Object.keys(e);
755
770
  if (Object.getOwnPropertySymbols) {
756
771
  var a = Object.getOwnPropertySymbols(e);
@@ -760,44 +775,44 @@ function ur(e, r) {
760
775
  }
761
776
  return n;
762
777
  }
763
- function ve(e) {
778
+ function he(e) {
764
779
  for (var r = 1; r < arguments.length; r++) {
765
780
  var n = arguments[r] != null ? arguments[r] : {};
766
- r % 2 ? ur(Object(n), !0).forEach(function(a) {
767
- Qr(e, a, n[a]);
768
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ur(Object(n)).forEach(function(a) {
781
+ r % 2 ? lr(Object(n), !0).forEach(function(a) {
782
+ tt(e, a, n[a]);
783
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lr(Object(n)).forEach(function(a) {
769
784
  Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
770
785
  });
771
786
  }
772
787
  return e;
773
788
  }
774
- function Qr(e, r, n) {
775
- return (r = Zr(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
789
+ function tt(e, r, n) {
790
+ return (r = nt(r)) in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
776
791
  }
777
- function Zr(e) {
778
- var r = et(e, "string");
779
- return de(r) == "symbol" ? r : r + "";
792
+ function nt(e) {
793
+ var r = at(e, "string");
794
+ return me(r) == "symbol" ? r : r + "";
780
795
  }
781
- function et(e, r) {
782
- if (de(e) != "object" || !e) return e;
796
+ function at(e, r) {
797
+ if (me(e) != "object" || !e) return e;
783
798
  var n = e[Symbol.toPrimitive];
784
799
  if (n !== void 0) {
785
800
  var a = n.call(e, r);
786
- if (de(a) != "object") return a;
801
+ if (me(a) != "object") return a;
787
802
  throw new TypeError("@@toPrimitive must return a primitive value.");
788
803
  }
789
804
  return (r === "string" ? String : Number)(e);
790
805
  }
791
- function rt(e, r) {
806
+ function it(e, r) {
792
807
  if (e == null) return {};
793
- var n, a, i = tt(e, r);
808
+ var n, a, i = ot(e, r);
794
809
  if (Object.getOwnPropertySymbols) {
795
- var l = Object.getOwnPropertySymbols(e);
796
- for (a = 0; a < l.length; a++) n = l[a], r.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
810
+ var m = Object.getOwnPropertySymbols(e);
811
+ for (a = 0; a < m.length; a++) n = m[a], r.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
797
812
  }
798
813
  return i;
799
814
  }
800
- function tt(e, r) {
815
+ function ot(e, r) {
801
816
  if (e == null) return {};
802
817
  var n = {};
803
818
  for (var a in e) if ({}.hasOwnProperty.call(e, a)) {
@@ -806,195 +821,195 @@ function tt(e, r) {
806
821
  }
807
822
  return n;
808
823
  }
809
- function nt(e) {
810
- var r = e.attrs, n = e.size, a = e.title, i = e.spin, l = e.rotate, h = e.color, g = rt(e, Ur), s = function(f) {
811
- var p = n || f.size || "1em", x, E = "", b = "";
812
- return f.className && (x = f.className), e.className && (x = x ? "".concat(x, " ").concat(e.className) : e.className), i && (x ? x += " twist-icon-loading" : x = "twist-icon-loading"), l && (E = "rotate(".concat(l, "deg)"), b = "rotate(".concat(l, "deg)")), /* @__PURE__ */ ae.createElement("svg", we({
824
+ function ut(e) {
825
+ var r = e.attrs, n = e.size, a = e.title, i = e.spin, m = e.rotate, c = e.color, g = it(e, Jr), s = function(l) {
826
+ var h = n || l.size || "1em", x, E = "", b = "";
827
+ return l.className && (x = l.className), e.className && (x = x ? "".concat(x, " ").concat(e.className) : e.className), i && (x ? x += " twist-icon-loading" : x = "twist-icon-loading"), m && (E = "rotate(".concat(m, "deg)"), b = "rotate(".concat(m, "deg)")), /* @__PURE__ */ ie.createElement("svg", je({
813
828
  xmlns: "http://www.w3.org/2000/svg"
814
- }, f.attrs, r, g, {
829
+ }, l.attrs, r, g, {
815
830
  className: x,
816
- style: ve(ve({
817
- color: h || f.color,
831
+ style: he(he({
832
+ color: c || l.color,
818
833
  msTransform: E,
819
834
  transform: b
820
- }, f.style), e.style),
821
- width: p,
822
- height: p
823
- }), a && /* @__PURE__ */ ae.createElement("title", null, a), e.children);
835
+ }, l.style), e.style),
836
+ width: h,
837
+ height: h
838
+ }), a && /* @__PURE__ */ ie.createElement("title", null, a), e.children);
824
839
  };
825
- return Ie !== void 0 ? /* @__PURE__ */ ae.createElement(Ie.Consumer, null, function(c) {
826
- return s(c);
827
- }) : s(vr);
840
+ return Fe !== void 0 ? /* @__PURE__ */ ie.createElement(Fe.Consumer, null, function(y) {
841
+ return s(y);
842
+ }) : s(hr);
828
843
  }
829
- function at(e) {
830
- var r = {}, n = e.split(";"), a = Xr(n), i;
844
+ function st(e) {
845
+ var r = {}, n = e.split(";"), a = rt(n), i;
831
846
  try {
832
847
  for (a.s(); !(i = a.n()).done; ) {
833
- var l = i.value, h = l.split(":"), g = Yr(h, 2), s = g[0], c = g[1];
834
- if (s && c) {
835
- var f = s.trim().replace(/-./g, function(p) {
836
- return p.charAt(1).toUpperCase();
848
+ var m = i.value, c = m.split(":"), g = Xr(c, 2), s = g[0], y = g[1];
849
+ if (s && y) {
850
+ var l = s.trim().replace(/-./g, function(h) {
851
+ return h.charAt(1).toUpperCase();
837
852
  });
838
- r[f] = c.trim();
853
+ r[l] = y.trim();
839
854
  }
840
855
  }
841
- } catch (p) {
842
- a.e(p);
856
+ } catch (h) {
857
+ a.e(h);
843
858
  } finally {
844
859
  a.f();
845
860
  }
846
861
  return r;
847
862
  }
848
- function hr(e) {
863
+ function yr(e) {
849
864
  return e && e.map(function(r, n) {
850
- return /* @__PURE__ */ ae.createElement(r.tag, ve(ve({}, r.attrs), {}, {
865
+ return /* @__PURE__ */ ie.createElement(r.tag, he(he({}, r.attrs), {}, {
851
866
  key: n,
852
- style: r.attrs.style ? at(r.attrs.style) : null
853
- }), hr(r.children));
867
+ style: r.attrs.style ? st(r.attrs.style) : null
868
+ }), yr(r.children));
854
869
  });
855
870
  }
856
871
  function N(e) {
857
872
  return function(r) {
858
- return /* @__PURE__ */ ae.createElement(nt, we({
859
- attrs: ve({}, e.attrs)
860
- }, r), hr(e.children));
873
+ return /* @__PURE__ */ ie.createElement(ut, je({
874
+ attrs: he({}, e.attrs)
875
+ }, r), yr(e.children));
861
876
  };
862
877
  }
863
- function it(e) {
878
+ function lt(e) {
864
879
  return N({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9m320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9" } }] })(e);
865
880
  }
866
- function ot(e) {
881
+ function ct(e) {
867
882
  return N({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14" } }] })(e);
868
883
  }
869
- function ut(e) {
884
+ function ft(e) {
870
885
  return N({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874S66 772.3 40.2 711.3C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3c22.2 52.4 53.9 99.5 94.3 139.9s87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952s117-11.6 171.3-34.6c52.4-22.2 99.5-53.9 139.9-94.3s72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512s-11.6-117-34.6-171.3a440.5 440.5 0 0 0-94.3-139.9a437.7 437.7 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150s83.9 101.8 109.7 162.7c26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874s-101.8 83.9-162.7 109.7c-63.1 26.8-130.2 40.3-199.3 40.3" } }] })(e);
871
886
  }
872
- function st(e) {
887
+ function dt(e) {
873
888
  return N({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { d: "M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z", fill: "currentColor" } }] })(e);
874
889
  }
875
- function lt(e) {
890
+ function vt(e) {
876
891
  return N({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16m144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16" } }] })(e);
877
892
  }
878
- function ct(e) {
893
+ function mt(e) {
879
894
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" } }] })(e);
880
895
  }
881
- function ft(e) {
896
+ function ht(e) {
882
897
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27zM17 13h2v4.18l-2-2zm0-8V2l4 4l-4 4V7H8.82l-2-2z" } }] })(e);
883
898
  }
884
- function dt(e) {
899
+ function pt(e) {
885
900
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m17 3l5.25 4.5L17 12l5.25 4.5L17 21v-3h-2.74l-2.82-2.82l2.12-2.12L15.5 15H17V9h-1.5l-9 9H2v-3h3.26l9-9H17zM2 6h4.5l2.82 2.82l-2.12 2.12L5.26 9H2z" } }] })(e);
886
901
  }
887
- function vt(e) {
902
+ function yt(e) {
888
903
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z" } }] })(e);
889
904
  }
890
- function mt(e) {
905
+ function bt(e) {
891
906
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z" } }] })(e);
892
907
  }
893
- function ht(e) {
908
+ function gt(e) {
894
909
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
895
910
  }
896
- function pt(e) {
911
+ function Et(e) {
897
912
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712" } }] })(e);
898
913
  }
899
- function yt(e) {
914
+ function xt(e) {
900
915
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
901
916
  }
902
- function bt(e) {
917
+ function St(e) {
903
918
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
904
919
  }
905
- function gt(e) {
920
+ function _t(e) {
906
921
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
907
922
  }
908
- function Et(e) {
923
+ function wt(e) {
909
924
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
910
925
  }
911
- function xt(e) {
926
+ function Tt(e) {
912
927
  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);
913
928
  }
914
- function St(e) {
929
+ function jt(e) {
915
930
  return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M18.25 12L8.5 17.629V6.37z" } }] })(e);
916
931
  }
917
- function Ne(e, r) {
932
+ function ke(e, r) {
918
933
  if (!r.current) return 0;
919
934
  let n = (e.clientX - r.current.getBoundingClientRect().left) / r.current.clientWidth;
920
935
  return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
921
936
  }
922
- function qe(e, r) {
937
+ function De(e, r) {
923
938
  if (!r.current) return 0;
924
939
  let n = 1 - (e.clientY - r.current.getBoundingClientRect().top) / r.current.clientHeight;
925
940
  return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
926
941
  }
927
- function pr(e) {
942
+ function br(e) {
928
943
  var r, n, a = "";
929
944
  if (typeof e == "string" || typeof e == "number") a += e;
930
945
  else if (typeof e == "object") if (Array.isArray(e)) {
931
946
  var i = e.length;
932
- for (r = 0; r < i; r++) e[r] && (n = pr(e[r])) && (a && (a += " "), a += n);
947
+ for (r = 0; r < i; r++) e[r] && (n = br(e[r])) && (a && (a += " "), a += n);
933
948
  } else for (n in e) e[n] && (a && (a += " "), a += n);
934
949
  return a;
935
950
  }
936
951
  function C() {
937
- for (var e, r, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (r = pr(e)) && (a && (a += " "), a += r);
952
+ for (var e, r, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (r = br(e)) && (a && (a += " "), a += r);
938
953
  return a;
939
954
  }
940
- function _t({
955
+ function Ot({
941
956
  bufferedPercentage: e,
942
957
  playedPercentage: r,
943
958
  onSeek: n
944
959
  }) {
945
- const a = G("aplayer-bar"), i = G("aplayer-icon"), l = V(null), [h, g] = Y(r), s = V(!1);
946
- F(() => {
960
+ const a = G("aplayer-bar"), i = G("aplayer-icon"), m = F(null), [c, g] = Y(r), s = F(!1);
961
+ B(() => {
947
962
  s.current || g(r);
948
963
  }, [r]);
949
- const c = R(
950
- (f) => {
964
+ const y = R(
965
+ (l) => {
951
966
  s.current = !0;
952
- const p = Ne(f, l);
953
- g(p);
967
+ const h = ke(l, m);
968
+ g(h);
954
969
  const x = (b) => {
955
- const u = Ne(b, l);
970
+ const u = ke(b, m);
956
971
  g(u);
957
972
  }, E = (b) => {
958
973
  document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E);
959
- const u = Ne(b, l);
974
+ const u = ke(b, m);
960
975
  g(u), n == null || n(u), s.current = !1;
961
976
  };
962
977
  document.addEventListener("mousemove", x), document.addEventListener("mouseup", E);
963
978
  },
964
979
  [n]
965
980
  );
966
- return /* @__PURE__ */ d.jsx(
981
+ return /* @__PURE__ */ f.jsx(
967
982
  "div",
968
983
  {
969
- ref: l,
984
+ ref: m,
970
985
  className: C(a.b(), a.bs("vars")),
971
- onMouseDown: c,
986
+ onMouseDown: y,
972
987
  role: "slider",
973
988
  "aria-label": "Audio progress",
974
- "aria-valuenow": h ? h * 100 : 0,
989
+ "aria-valuenow": c ? c * 100 : 0,
975
990
  "aria-valuemin": 0,
976
991
  "aria-valuemax": 100,
977
992
  "aria-live": "polite",
978
- children: /* @__PURE__ */ d.jsxs("div", { className: a.be("inner"), children: [
979
- typeof e < "u" ? /* @__PURE__ */ d.jsx(
993
+ children: /* @__PURE__ */ f.jsxs("div", { className: a.be("inner"), children: [
994
+ typeof e < "u" ? /* @__PURE__ */ f.jsx(
980
995
  "div",
981
996
  {
982
997
  className: a.be("loaded"),
983
998
  style: { width: `${e * 100}%` }
984
999
  }
985
1000
  ) : null,
986
- typeof h < "u" ? /* @__PURE__ */ d.jsx(
1001
+ typeof c < "u" ? /* @__PURE__ */ f.jsx(
987
1002
  "div",
988
1003
  {
989
1004
  className: a.be("played"),
990
1005
  style: {
991
- width: `${h * 100}%`
1006
+ width: `${c * 100}%`
992
1007
  },
993
- children: /* @__PURE__ */ d.jsx(
1008
+ children: /* @__PURE__ */ f.jsx(
994
1009
  "span",
995
1010
  {
996
1011
  className: a.be("thumb"),
997
- children: /* @__PURE__ */ d.jsx("span", { className: C(i.bs("loading")), children: /* @__PURE__ */ d.jsx(ut, {}) })
1012
+ children: /* @__PURE__ */ f.jsx("span", { className: C(i.bs("loading")), children: /* @__PURE__ */ f.jsx(ft, {}) })
998
1013
  }
999
1014
  )
1000
1015
  }
@@ -1003,44 +1018,44 @@ function _t({
1003
1018
  }
1004
1019
  );
1005
1020
  }
1006
- function Tt({
1021
+ function Rt({
1007
1022
  volume: e,
1008
1023
  muted: r,
1009
1024
  onToggleMuted: n,
1010
1025
  onChangeVolume: a
1011
1026
  }) {
1012
- const i = G("aplayer-volumn"), l = G("aplayer-icon"), h = V(null), [g, s] = Y(!1), c = R(
1013
- (f) => {
1014
- a(qe(f, h)), s(!0);
1015
- const p = (E) => {
1016
- a(qe(E, h));
1027
+ const i = G("aplayer-volumn"), m = G("aplayer-icon"), c = F(null), [g, s] = Y(!1), y = R(
1028
+ (l) => {
1029
+ a(De(l, c)), s(!0);
1030
+ const h = (E) => {
1031
+ a(De(E, c));
1017
1032
  }, x = (E) => {
1018
- document.removeEventListener("mouseup", x), document.removeEventListener("mousemove", p), s(!1), a(qe(E, h));
1033
+ document.removeEventListener("mouseup", x), document.removeEventListener("mousemove", h), s(!1), a(De(E, c));
1019
1034
  };
1020
- document.addEventListener("mousemove", p), document.addEventListener("mouseup", x);
1035
+ document.addEventListener("mousemove", h), document.addEventListener("mouseup", x);
1021
1036
  },
1022
1037
  [a]
1023
1038
  );
1024
- return /* @__PURE__ */ d.jsxs("div", { className: C(i.b(), i.bs("vars")), children: [
1025
- /* @__PURE__ */ d.jsx(
1039
+ return /* @__PURE__ */ f.jsxs("div", { className: C(i.b(), i.bs("vars")), children: [
1040
+ /* @__PURE__ */ f.jsx(
1026
1041
  "button",
1027
1042
  {
1028
1043
  type: "button",
1029
- className: C(l.b(), l.bs("volume-down")),
1044
+ className: C(m.b(), m.bs("volume-down")),
1030
1045
  onClick: () => n(),
1031
1046
  "aria-label": r || !e ? "Muted" : "unMuted",
1032
- children: r || !e ? /* @__PURE__ */ d.jsx(Et, {}) : e >= 1 ? /* @__PURE__ */ d.jsx(xt, {}) : /* @__PURE__ */ d.jsx(gt, {})
1047
+ children: r || !e ? /* @__PURE__ */ f.jsx(wt, {}) : e >= 1 ? /* @__PURE__ */ f.jsx(Tt, {}) : /* @__PURE__ */ f.jsx(_t, {})
1033
1048
  }
1034
1049
  ),
1035
- /* @__PURE__ */ d.jsx(
1050
+ /* @__PURE__ */ f.jsx(
1036
1051
  "div",
1037
1052
  {
1038
1053
  className: C(i.be("bar-wrap"), {
1039
1054
  [i.bem("bar-wrap", "active")]: g
1040
1055
  }),
1041
- ref: h,
1042
- onMouseDown: c,
1043
- children: /* @__PURE__ */ d.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ d.jsx(
1056
+ ref: c,
1057
+ onMouseDown: y,
1058
+ children: /* @__PURE__ */ f.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ f.jsx(
1044
1059
  "div",
1045
1060
  {
1046
1061
  className: i.be("thumb"),
@@ -1053,104 +1068,104 @@ function Tt({
1053
1068
  )
1054
1069
  ] });
1055
1070
  }
1056
- function sr(e) {
1071
+ function cr(e) {
1057
1072
  if (typeof e > "u")
1058
1073
  return "--:--";
1059
1074
  if (Number.isNaN(e))
1060
1075
  return "00:00";
1061
- const r = (h) => h < 10 ? `0${h}` : `${h}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), l = Math.trunc(
1076
+ const r = (c) => c < 10 ? `0${c}` : `${c}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), m = Math.trunc(
1062
1077
  e / 60 - 60 * Math.trunc(e / 60 / 60)
1063
1078
  );
1064
- return e >= 3600 ? `${r(i)}:${r(l)}:${r(a)}` : `${r(n)}:${r(a)}`;
1079
+ return e >= 3600 ? `${r(i)}:${r(m)}:${r(a)}` : `${r(n)}:${r(a)}`;
1065
1080
  }
1066
- function wt({
1081
+ function Pt({
1067
1082
  volume: e,
1068
1083
  onChangeVolume: r,
1069
1084
  muted: n,
1070
1085
  currentTime: a,
1071
1086
  audioDurationSeconds: i,
1072
- bufferedSeconds: l,
1073
- onToggleMenu: h,
1087
+ bufferedSeconds: m,
1088
+ onToggleMenu: c,
1074
1089
  onToggleMuted: g,
1075
1090
  order: s,
1076
- onOrderChange: c,
1077
- loop: f,
1078
- onLoopChange: p,
1091
+ onOrderChange: y,
1092
+ loop: l,
1093
+ onLoopChange: h,
1079
1094
  onSeek: x,
1080
1095
  isPlaying: E,
1081
1096
  onTogglePlay: b,
1082
1097
  onSkipForward: u,
1083
- onSkipBack: v,
1084
- showLyrics: y = !0,
1085
- onToggleLyrics: w
1098
+ onSkipBack: d,
1099
+ showLyrics: p = !0,
1100
+ onToggleLyrics: T
1086
1101
  }) {
1087
- const j = G("aplayer-controller"), L = G("aplayer-icon"), B = R(() => {
1102
+ const j = G("aplayer-controller"), L = G("aplayer-icon"), z = R(() => {
1088
1103
  const q = {
1089
1104
  list: "random",
1090
1105
  random: "list"
1091
1106
  }[s];
1092
- c(q);
1093
- }, [s, c]), z = R(() => {
1107
+ y(q);
1108
+ }, [s, y]), H = R(() => {
1094
1109
  const q = {
1095
1110
  all: "one",
1096
1111
  one: "none",
1097
1112
  none: "all"
1098
- }[f];
1099
- p(q);
1100
- }, [f, p]);
1101
- return /* @__PURE__ */ d.jsxs(
1113
+ }[l];
1114
+ h(q);
1115
+ }, [l, h]);
1116
+ return /* @__PURE__ */ f.jsxs(
1102
1117
  "div",
1103
1118
  {
1104
1119
  className: C(j.b(), j.bs("vars")),
1105
1120
  role: "group",
1106
1121
  "aria-label": "Audio Controls",
1107
1122
  children: [
1108
- /* @__PURE__ */ d.jsx(
1109
- _t,
1123
+ /* @__PURE__ */ f.jsx(
1124
+ Ot,
1110
1125
  {
1111
1126
  playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
1112
- bufferedPercentage: typeof l > "u" || typeof i > "u" ? void 0 : l / i,
1127
+ bufferedPercentage: typeof m > "u" || typeof i > "u" ? void 0 : m / i,
1113
1128
  onSeek: (q) => x == null ? void 0 : x(q * i)
1114
1129
  }
1115
1130
  ),
1116
- /* @__PURE__ */ d.jsxs("div", { className: j.be("time"), children: [
1117
- /* @__PURE__ */ d.jsxs("span", { className: j.be("time-inner"), "aria-live": "polite", children: [
1118
- /* @__PURE__ */ d.jsx("span", { className: j.be("ptime"), children: sr(a) }),
1131
+ /* @__PURE__ */ f.jsxs("div", { className: j.be("time"), children: [
1132
+ /* @__PURE__ */ f.jsxs("span", { className: j.be("time-inner"), "aria-live": "polite", children: [
1133
+ /* @__PURE__ */ f.jsx("span", { className: j.be("ptime"), children: cr(a) }),
1119
1134
  " / ",
1120
- /* @__PURE__ */ d.jsx("span", { className: j.be("dtime"), children: sr(i) })
1135
+ /* @__PURE__ */ f.jsx("span", { className: j.be("dtime"), children: cr(i) })
1121
1136
  ] }),
1122
- /* @__PURE__ */ d.jsx(
1137
+ /* @__PURE__ */ f.jsx(
1123
1138
  "button",
1124
1139
  {
1125
1140
  className: C(L.b(), L.bs("back")),
1126
- onClick: v,
1141
+ onClick: d,
1127
1142
  type: "button",
1128
1143
  "aria-label": "Previous track",
1129
- children: /* @__PURE__ */ d.jsx(it, {})
1144
+ children: /* @__PURE__ */ f.jsx(lt, {})
1130
1145
  }
1131
1146
  ),
1132
- /* @__PURE__ */ d.jsx(
1147
+ /* @__PURE__ */ f.jsx(
1133
1148
  "button",
1134
1149
  {
1135
1150
  className: C(L.b(), L.bs("play")),
1136
1151
  onClick: b,
1137
1152
  type: "button",
1138
1153
  "aria-label": E ? "Pause audio" : "Play audio",
1139
- children: E ? /* @__PURE__ */ d.jsx(ht, {}) : /* @__PURE__ */ d.jsx(pt, {})
1154
+ children: E ? /* @__PURE__ */ f.jsx(gt, {}) : /* @__PURE__ */ f.jsx(Et, {})
1140
1155
  }
1141
1156
  ),
1142
- /* @__PURE__ */ d.jsx(
1157
+ /* @__PURE__ */ f.jsx(
1143
1158
  "button",
1144
1159
  {
1145
1160
  className: C(L.b(), L.bs("forward")),
1146
1161
  onClick: u,
1147
1162
  type: "button",
1148
1163
  "aria-label": "Next track",
1149
- children: /* @__PURE__ */ d.jsx(ot, {})
1164
+ children: /* @__PURE__ */ f.jsx(ct, {})
1150
1165
  }
1151
1166
  ),
1152
- /* @__PURE__ */ d.jsx(
1153
- Tt,
1167
+ /* @__PURE__ */ f.jsx(
1168
+ Rt,
1154
1169
  {
1155
1170
  volume: e,
1156
1171
  muted: n,
@@ -1158,51 +1173,51 @@ function wt({
1158
1173
  onChangeVolume: r
1159
1174
  }
1160
1175
  ),
1161
- /* @__PURE__ */ d.jsx(
1176
+ /* @__PURE__ */ f.jsx(
1162
1177
  "button",
1163
1178
  {
1164
1179
  className: C(L.b(), L.bs("order")),
1165
- onClick: B,
1180
+ onClick: z,
1166
1181
  type: "button",
1167
1182
  "aria-label": `Playback order: ${s}`,
1168
- children: { list: /* @__PURE__ */ d.jsx(vt, {}), random: /* @__PURE__ */ d.jsx(dt, {}) }[s]
1183
+ children: { list: /* @__PURE__ */ f.jsx(yt, {}), random: /* @__PURE__ */ f.jsx(pt, {}) }[s]
1169
1184
  }
1170
1185
  ),
1171
- /* @__PURE__ */ d.jsx(
1186
+ /* @__PURE__ */ f.jsx(
1172
1187
  "button",
1173
1188
  {
1174
1189
  className: C(L.b(), L.bs("order")),
1175
- onClick: z,
1190
+ onClick: H,
1176
1191
  type: "button",
1177
- "aria-label": `Loop mode: ${f}`,
1192
+ "aria-label": `Loop mode: ${l}`,
1178
1193
  children: {
1179
- all: /* @__PURE__ */ d.jsx(bt, {}),
1180
- one: /* @__PURE__ */ d.jsx(yt, {}),
1181
- none: /* @__PURE__ */ d.jsx(ft, {})
1182
- }[f]
1194
+ all: /* @__PURE__ */ f.jsx(St, {}),
1195
+ one: /* @__PURE__ */ f.jsx(xt, {}),
1196
+ none: /* @__PURE__ */ f.jsx(ht, {})
1197
+ }[l]
1183
1198
  }
1184
1199
  ),
1185
- /* @__PURE__ */ d.jsx(
1200
+ /* @__PURE__ */ f.jsx(
1186
1201
  "button",
1187
1202
  {
1188
1203
  type: "button",
1189
1204
  className: C(L.b(), L.bs("menu")),
1190
- onClick: () => h == null ? void 0 : h(),
1205
+ onClick: () => c == null ? void 0 : c(),
1191
1206
  "aria-label": "Toggle playlist menu",
1192
- children: /* @__PURE__ */ d.jsx(ct, {})
1207
+ children: /* @__PURE__ */ f.jsx(mt, {})
1193
1208
  }
1194
1209
  ),
1195
- /* @__PURE__ */ d.jsx(
1210
+ /* @__PURE__ */ f.jsx(
1196
1211
  "button",
1197
1212
  {
1198
1213
  type: "button",
1199
1214
  className: C(L.b(), L.bs("lrc"), {
1200
- [L.ns("lrc-inactivity")]: !y
1215
+ [L.ns("lrc-inactivity")]: !p
1201
1216
  }),
1202
- onClick: w,
1203
- "aria-label": y ? "Hide lyrics" : "Show lyrics",
1204
- "aria-pressed": y,
1205
- children: /* @__PURE__ */ d.jsx(mt, {})
1217
+ onClick: T,
1218
+ "aria-label": p ? "Hide lyrics" : "Show lyrics",
1219
+ "aria-pressed": p,
1220
+ children: /* @__PURE__ */ f.jsx(bt, {})
1206
1221
  }
1207
1222
  )
1208
1223
  ] })
@@ -1210,80 +1225,81 @@ function wt({
1210
1225
  }
1211
1226
  );
1212
1227
  }
1213
- function jt({
1228
+ function Lt({
1214
1229
  open: e,
1215
1230
  audio: r,
1216
1231
  playingAudioUrl: n,
1217
1232
  onPlayAudio: a,
1218
- listMaxHeight: i
1233
+ listMaxHeight: i,
1234
+ mini: m
1219
1235
  }) {
1220
- const l = G("aplayer-list"), h = i ? { maxHeight: i } : void 0, g = R((c) => c ? typeof c == "string" ? c : c.name ?? "Audio artist" : "Audio artist", []), s = V(null);
1221
- return F(() => {
1222
- if (s.current) {
1223
- const c = s.current;
1224
- return c.style.maxHeight = `${Math.min(
1225
- c.scrollHeight,
1236
+ const c = G("aplayer-list"), g = i ? { maxHeight: i } : void 0, s = R((l) => l ? typeof l == "string" ? l : l.name ?? "Audio artist" : "Audio artist", []), y = F(null);
1237
+ return B(() => {
1238
+ if (y.current) {
1239
+ const l = y.current;
1240
+ return l.style.maxHeight = `${Math.min(
1241
+ l.scrollHeight,
1226
1242
  i ?? 1 / 0
1227
1243
  )}px`, () => {
1228
- c.removeAttribute("style");
1244
+ l.removeAttribute("style");
1229
1245
  };
1230
1246
  }
1231
- }, [i]), /* @__PURE__ */ d.jsx(
1247
+ }, [i, m]), /* @__PURE__ */ f.jsx(
1232
1248
  "div",
1233
1249
  {
1234
- ref: s,
1235
- className: C(l.b(), {
1236
- [l.bm("hide")]: !e,
1237
- [l.bs("vars")]: !0
1250
+ ref: y,
1251
+ className: C(c.b(), {
1252
+ [c.bm("hide")]: !e,
1253
+ [c.bs("vars")]: !0
1238
1254
  }),
1239
1255
  "aria-label": "Audio playlist",
1240
1256
  "aria-live": "polite",
1241
- children: /* @__PURE__ */ d.jsx("ol", { style: h, children: r.map((c, f) => /* @__PURE__ */ d.jsxs(
1257
+ children: /* @__PURE__ */ f.jsx("ol", { style: g, children: r.map((l, h) => /* @__PURE__ */ f.jsxs(
1242
1258
  "li",
1243
1259
  {
1244
1260
  className: C({
1245
- [l.bm("active")]: c.url === n
1261
+ [c.bm("active")]: l.url === n
1246
1262
  }),
1247
1263
  onClick: () => {
1248
- c.url !== n && (a == null || a(c));
1264
+ l.url !== n && (a == null || a(l));
1249
1265
  },
1250
1266
  role: "button",
1251
- "aria-label": `${c.name ?? "Audio name"} by ${g(c.artist)}}`,
1267
+ "aria-label": `${l.name ?? "Audio name"} by ${s(l.artist)}}`,
1252
1268
  children: [
1253
- /* @__PURE__ */ d.jsx("span", { className: l.be("cur") }),
1254
- /* @__PURE__ */ d.jsx("span", { className: l.be("index"), children: f + 1 }),
1255
- /* @__PURE__ */ d.jsx("span", { className: l.be("title"), children: c.name ?? "Audio name" }),
1256
- /* @__PURE__ */ d.jsx("span", { className: l.be("author"), children: g(c.artist) })
1269
+ /* @__PURE__ */ f.jsx("span", { className: c.be("cur") }),
1270
+ /* @__PURE__ */ f.jsx("span", { className: c.be("index"), children: h + 1 }),
1271
+ /* @__PURE__ */ f.jsx("span", { className: c.be("title"), children: l.name ?? "Audio name" }),
1272
+ /* @__PURE__ */ f.jsx("span", { className: c.be("author"), children: s(l.artist) })
1257
1273
  ]
1258
1274
  },
1259
- c.name || f
1275
+ l.name || h
1260
1276
  )) })
1261
1277
  }
1262
1278
  );
1263
1279
  }
1264
- function lr({ show: e, lrcText: r, currentTime: n }) {
1265
- const a = G("aplayer-lrc"), i = K(() => Ot(r), [r]), l = K(() => {
1280
+ function fr({ show: e, lrcText: r, currentTime: n }) {
1281
+ const a = G("aplayer-lrc"), i = K(() => Ct(r), [r]), m = K(() => {
1266
1282
  for (let g = 0; g < i.length; g++) {
1267
- const s = i[g], c = i[g + 1];
1268
- if (n >= s[0] && (!c || n < c[0]))
1283
+ const s = i[g], y = i[g + 1];
1284
+ if (n >= s[0] && (!y || n < y[0]))
1269
1285
  return g;
1270
1286
  }
1271
1287
  return 0;
1272
- }, [n, i]), h = K(() => ({
1273
- transform: `translateY(${-l * 16}px)`,
1274
- WebkitTransform: `translateY(${-l * 16}px)`
1275
- }), [l]);
1276
- return /* @__PURE__ */ d.jsx(
1288
+ }, [n, i]), c = K(() => ({
1289
+ transform: `translateY(${-m * 16}px)`,
1290
+ WebkitTransform: `translateY(${-m * 16}px)`
1291
+ }), [m]);
1292
+ return /* @__PURE__ */ f.jsx(
1277
1293
  "div",
1278
1294
  {
1279
1295
  className: C(a.b(), {
1280
1296
  [a.bm("hide")]: !e
1281
1297
  }),
1282
- children: r ? /* @__PURE__ */ d.jsx("div", { className: a.be("contents"), style: h, children: i.map(([, g], s) => /* @__PURE__ */ d.jsx(
1298
+ children: r ? /* @__PURE__ */ f.jsx("div", { className: a.be("contents"), style: c, children: i.map(([, g], s) => /* @__PURE__ */ f.jsx(
1283
1299
  "p",
1284
1300
  {
1285
1301
  className: C({
1286
- [a.be("current")]: s === l
1302
+ [a.be("current")]: s === m
1287
1303
  }),
1288
1304
  children: g
1289
1305
  },
@@ -1292,27 +1308,27 @@ function lr({ show: e, lrcText: r, currentTime: n }) {
1292
1308
  }
1293
1309
  );
1294
1310
  }
1295
- function Ot(e) {
1311
+ function Ct(e) {
1296
1312
  if (e) {
1297
- e = e.replace(/([^\]^\n])\[/g, (i, l) => `${l}
1313
+ e = e.replace(/([^\]^\n])\[/g, (i, m) => `${m}
1298
1314
  [`);
1299
1315
  const r = e.split(`
1300
1316
  `), n = [], a = r.length;
1301
1317
  for (let i = 0; i < a; i++) {
1302
- const l = r[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), h = r[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1303
- if (l) {
1304
- const g = l.length;
1318
+ const m = r[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), c = r[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
1319
+ if (m) {
1320
+ const g = m.length;
1305
1321
  for (let s = 0; s < g; s++) {
1306
- const c = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(l[s]), f = c[1] * 60, p = Number.parseInt(c[2]), x = c[4] ? Number.parseInt(c[4]) / (`${c[4]}`.length === 2 ? 100 : 1e3) : 0, E = f + p + x;
1307
- n.push([E, h]);
1322
+ const y = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(m[s]), l = y[1] * 60, h = Number.parseInt(y[2]), x = y[4] ? Number.parseInt(y[4]) / (`${y[4]}`.length === 2 ? 100 : 1e3) : 0, E = l + h + x;
1323
+ n.push([E, c]);
1308
1324
  }
1309
1325
  }
1310
1326
  }
1311
- return n.sort((i, l) => i[0] - l[0]), n;
1327
+ return n.sort((i, m) => i[0] - m[0]), n;
1312
1328
  } else
1313
1329
  return [];
1314
1330
  }
1315
- var Te = { exports: {} }, ke = {};
1331
+ var Te = { exports: {} }, Ie = {};
1316
1332
  /**
1317
1333
  * @license React
1318
1334
  * use-sync-external-store-shim.production.js
@@ -1322,48 +1338,48 @@ var Te = { exports: {} }, ke = {};
1322
1338
  * This source code is licensed under the MIT license found in the
1323
1339
  * LICENSE file in the root directory of this source tree.
1324
1340
  */
1325
- var cr;
1326
- function Rt() {
1327
- if (cr) return ke;
1328
- cr = 1;
1329
- var e = je;
1330
- function r(p, x) {
1331
- return p === x && (p !== 0 || 1 / p === 1 / x) || p !== p && x !== x;
1341
+ var dr;
1342
+ function $t() {
1343
+ if (dr) return Ie;
1344
+ dr = 1;
1345
+ var e = Oe;
1346
+ function r(h, x) {
1347
+ return h === x && (h !== 0 || 1 / h === 1 / x) || h !== h && x !== x;
1332
1348
  }
1333
- var n = typeof Object.is == "function" ? Object.is : r, a = e.useState, i = e.useEffect, l = e.useLayoutEffect, h = e.useDebugValue;
1334
- function g(p, x) {
1335
- var E = x(), b = a({ inst: { value: E, getSnapshot: x } }), u = b[0].inst, v = b[1];
1336
- return l(
1349
+ var n = typeof Object.is == "function" ? Object.is : r, a = e.useState, i = e.useEffect, m = e.useLayoutEffect, c = e.useDebugValue;
1350
+ function g(h, x) {
1351
+ var E = x(), b = a({ inst: { value: E, getSnapshot: x } }), u = b[0].inst, d = b[1];
1352
+ return m(
1337
1353
  function() {
1338
- u.value = E, u.getSnapshot = x, s(u) && v({ inst: u });
1354
+ u.value = E, u.getSnapshot = x, s(u) && d({ inst: u });
1339
1355
  },
1340
- [p, E, x]
1356
+ [h, E, x]
1341
1357
  ), i(
1342
1358
  function() {
1343
- return s(u) && v({ inst: u }), p(function() {
1344
- s(u) && v({ inst: u });
1359
+ return s(u) && d({ inst: u }), h(function() {
1360
+ s(u) && d({ inst: u });
1345
1361
  });
1346
1362
  },
1347
- [p]
1348
- ), h(E), E;
1363
+ [h]
1364
+ ), c(E), E;
1349
1365
  }
1350
- function s(p) {
1351
- var x = p.getSnapshot;
1352
- p = p.value;
1366
+ function s(h) {
1367
+ var x = h.getSnapshot;
1368
+ h = h.value;
1353
1369
  try {
1354
1370
  var E = x();
1355
- return !n(p, E);
1371
+ return !n(h, E);
1356
1372
  } catch {
1357
1373
  return !0;
1358
1374
  }
1359
1375
  }
1360
- function c(p, x) {
1376
+ function y(h, x) {
1361
1377
  return x();
1362
1378
  }
1363
- var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : g;
1364
- return ke.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, ke;
1379
+ var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : g;
1380
+ return Ie.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, Ie;
1365
1381
  }
1366
- var De = {};
1382
+ var Ve = {};
1367
1383
  /**
1368
1384
  * @license React
1369
1385
  * use-sync-external-store-shim.development.js
@@ -1373,47 +1389,47 @@ var De = {};
1373
1389
  * This source code is licensed under the MIT license found in the
1374
1390
  * LICENSE file in the root directory of this source tree.
1375
1391
  */
1376
- var fr;
1377
- function Pt() {
1378
- return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
1392
+ var vr;
1393
+ function At() {
1394
+ return vr || (vr = 1, process.env.NODE_ENV !== "production" && function() {
1379
1395
  function e(E, b) {
1380
1396
  return E === b && (E !== 0 || 1 / E === 1 / b) || E !== E && b !== b;
1381
1397
  }
1382
1398
  function r(E, b) {
1383
- f || i.startTransition === void 0 || (f = !0, console.error(
1399
+ l || i.startTransition === void 0 || (l = !0, console.error(
1384
1400
  "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."
1385
1401
  ));
1386
1402
  var u = b();
1387
- if (!p) {
1388
- var v = b();
1389
- l(u, v) || (console.error(
1403
+ if (!h) {
1404
+ var d = b();
1405
+ m(u, d) || (console.error(
1390
1406
  "The result of getSnapshot should be cached to avoid an infinite loop"
1391
- ), p = !0);
1407
+ ), h = !0);
1392
1408
  }
1393
- v = h({
1409
+ d = c({
1394
1410
  inst: { value: u, getSnapshot: b }
1395
1411
  });
1396
- var y = v[0].inst, w = v[1];
1412
+ var p = d[0].inst, T = d[1];
1397
1413
  return s(
1398
1414
  function() {
1399
- y.value = u, y.getSnapshot = b, n(y) && w({ inst: y });
1415
+ p.value = u, p.getSnapshot = b, n(p) && T({ inst: p });
1400
1416
  },
1401
1417
  [E, u, b]
1402
1418
  ), g(
1403
1419
  function() {
1404
- return n(y) && w({ inst: y }), E(function() {
1405
- n(y) && w({ inst: y });
1420
+ return n(p) && T({ inst: p }), E(function() {
1421
+ n(p) && T({ inst: p });
1406
1422
  });
1407
1423
  },
1408
1424
  [E]
1409
- ), c(u), u;
1425
+ ), y(u), u;
1410
1426
  }
1411
1427
  function n(E) {
1412
1428
  var b = E.getSnapshot;
1413
1429
  E = E.value;
1414
1430
  try {
1415
1431
  var u = b();
1416
- return !l(E, u);
1432
+ return !m(E, u);
1417
1433
  } catch {
1418
1434
  return !0;
1419
1435
  }
@@ -1422,61 +1438,61 @@ function Pt() {
1422
1438
  return b();
1423
1439
  }
1424
1440
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1425
- var i = je, l = typeof Object.is == "function" ? Object.is : e, h = i.useState, g = i.useEffect, s = i.useLayoutEffect, c = i.useDebugValue, f = !1, p = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : r;
1426
- De.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1427
- }()), De;
1428
- }
1429
- var dr;
1430
- function Lt() {
1431
- return dr || (dr = 1, process.env.NODE_ENV === "production" ? Te.exports = Rt() : Te.exports = Pt()), Te.exports;
1432
- }
1433
- var Q = Lt();
1434
- const ne = [];
1435
- function Ct(e) {
1436
- const r = V();
1437
- return F(() => {
1441
+ var i = Oe, m = typeof Object.is == "function" ? Object.is : e, c = i.useState, g = i.useEffect, s = i.useLayoutEffect, y = i.useDebugValue, l = !1, h = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : r;
1442
+ Ve.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1443
+ }()), Ve;
1444
+ }
1445
+ var mr;
1446
+ function Mt() {
1447
+ return mr || (mr = 1, process.env.NODE_ENV === "production" ? Te.exports = $t() : Te.exports = At()), Te.exports;
1448
+ }
1449
+ var Z = Mt();
1450
+ const ae = [];
1451
+ function Nt(e) {
1452
+ const r = F(null);
1453
+ return B(() => {
1438
1454
  if (typeof window < "u" && !r.current) {
1439
1455
  const n = r.current = document.createElement("audio");
1440
- 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), ne.includes(n) || ne.push(n);
1456
+ 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), ae.includes(n) || ae.push(n);
1441
1457
  }
1442
- }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), F(() => {
1458
+ }, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), B(() => {
1443
1459
  if (typeof window > "u") return;
1444
1460
  const n = r.current;
1445
1461
  if (n && (e != null && e.onError))
1446
1462
  return n.addEventListener("error", e.onError), () => {
1447
1463
  n.removeEventListener("error", e.onError);
1448
1464
  };
1449
- }, [e == null ? void 0 : e.onError]), F(() => {
1465
+ }, [e == null ? void 0 : e.onError]), B(() => {
1450
1466
  if (typeof window > "u") return;
1451
1467
  const n = r.current;
1452
1468
  if (n && (e != null && e.onEnded))
1453
1469
  return n.addEventListener("ended", e.onEnded), () => {
1454
1470
  n.removeEventListener("ended", e.onEnded);
1455
1471
  };
1456
- }, [e == null ? void 0 : e.onEnded]), F(() => () => {
1472
+ }, [e == null ? void 0 : e.onEnded]), B(() => () => {
1457
1473
  const n = r.current;
1458
1474
  if (n) {
1459
1475
  n.pause(), n.currentTime = 0;
1460
- const a = ne.indexOf(n);
1461
- a !== -1 && ne.splice(a, 1);
1476
+ const a = ae.indexOf(n);
1477
+ a !== -1 && ae.splice(a, 1);
1462
1478
  }
1463
- r.current = void 0;
1479
+ r.current = null;
1464
1480
  }, []), r;
1465
1481
  }
1466
- function $t(e) {
1467
- const r = Ct(e), n = R((u) => {
1468
- for (let v = 0; v < ne.length; v++) {
1469
- const y = ne[v];
1470
- y !== u && !y.paused && y.pause();
1482
+ function qt(e) {
1483
+ const r = Nt(e), n = R((u) => {
1484
+ for (let d = 0; d < ae.length; d++) {
1485
+ const p = ae[d];
1486
+ p !== u && !p.paused && p.pause();
1471
1487
  }
1472
1488
  }, []), a = R(
1473
1489
  async (u) => {
1474
- var y;
1475
- const v = r.current;
1476
- if (v) {
1477
- e.mutex && n(v), v.src !== u && (v.pause(), v.currentTime = 0, v.src = u);
1490
+ var p;
1491
+ const d = r.current;
1492
+ if (d) {
1493
+ e.mutex && n(d), d.src !== u && (d.pause(), d.currentTime = 0, d.src = u);
1478
1494
  try {
1479
- await ((y = r.current) == null ? void 0 : y.play());
1495
+ await ((p = r.current) == null ? void 0 : p.play());
1480
1496
  } catch {
1481
1497
  }
1482
1498
  }
@@ -1484,32 +1500,32 @@ function $t(e) {
1484
1500
  [r, e.mutex, n]
1485
1501
  ), i = R(
1486
1502
  (u) => {
1487
- const v = r.current;
1488
- v && (v.paused ? a(u) : v.pause());
1503
+ const d = r.current;
1504
+ d && (d.paused ? a(u) : d.pause());
1489
1505
  },
1490
1506
  [r, a]
1491
- ), l = R(
1507
+ ), m = R(
1492
1508
  (u) => {
1493
1509
  r.current.currentTime = u;
1494
1510
  },
1495
1511
  [r]
1496
- ), h = R(() => {
1512
+ ), c = R(() => {
1497
1513
  r.current && (r.current.muted = !r.current.muted);
1498
1514
  }, [r]), g = R(
1499
1515
  (u) => {
1500
1516
  r.current && (r.current.volume = u);
1501
1517
  },
1502
1518
  [r]
1503
- ), s = Q.useSyncExternalStore(
1519
+ ), s = Z.useSyncExternalStore(
1504
1520
  R(
1505
1521
  (u) => {
1506
- var v;
1507
- return (v = r.current) == null || v.addEventListener(
1522
+ var d;
1523
+ return (d = r.current) == null || d.addEventListener(
1508
1524
  "volumechange",
1509
1525
  u
1510
1526
  ), () => {
1511
- var y;
1512
- (y = r.current) == null || y.removeEventListener(
1527
+ var p;
1528
+ (p = r.current) == null || p.removeEventListener(
1513
1529
  "volumechange",
1514
1530
  u
1515
1531
  );
@@ -1523,16 +1539,16 @@ function $t(e) {
1523
1539
  },
1524
1540
  () => {
1525
1541
  }
1526
- ), c = Q.useSyncExternalStore(
1542
+ ), y = Z.useSyncExternalStore(
1527
1543
  R(
1528
1544
  (u) => {
1529
- var v;
1530
- return (v = r.current) == null || v.addEventListener(
1545
+ var d;
1546
+ return (d = r.current) == null || d.addEventListener(
1531
1547
  "volumechange",
1532
1548
  u
1533
1549
  ), () => {
1534
- var y;
1535
- (y = r.current) == null || y.removeEventListener(
1550
+ var p;
1551
+ (p = r.current) == null || p.removeEventListener(
1536
1552
  "volumechange",
1537
1553
  u
1538
1554
  );
@@ -1546,13 +1562,13 @@ function $t(e) {
1546
1562
  },
1547
1563
  () => {
1548
1564
  }
1549
- ), f = Q.useSyncExternalStore(
1565
+ ), l = Z.useSyncExternalStore(
1550
1566
  R(
1551
1567
  (u) => {
1552
- var v;
1553
- return (v = r.current) == null || v.addEventListener("timeupdate", u), () => {
1554
- var y;
1555
- (y = r.current) == null || y.removeEventListener(
1568
+ var d;
1569
+ return (d = r.current) == null || d.addEventListener("timeupdate", u), () => {
1570
+ var p;
1571
+ (p = r.current) == null || p.removeEventListener(
1556
1572
  "timeupdate",
1557
1573
  u
1558
1574
  );
@@ -1566,16 +1582,16 @@ function $t(e) {
1566
1582
  },
1567
1583
  () => {
1568
1584
  }
1569
- ), p = Q.useSyncExternalStore(
1585
+ ), h = Z.useSyncExternalStore(
1570
1586
  R(
1571
1587
  (u) => {
1572
- var v;
1573
- return (v = r.current) == null || v.addEventListener(
1588
+ var d;
1589
+ return (d = r.current) == null || d.addEventListener(
1574
1590
  "durationchange",
1575
1591
  u
1576
1592
  ), () => {
1577
- var y;
1578
- (y = r.current) == null || y.removeEventListener(
1593
+ var p;
1594
+ (p = r.current) == null || p.removeEventListener(
1579
1595
  "durationchange",
1580
1596
  u
1581
1597
  );
@@ -1589,13 +1605,13 @@ function $t(e) {
1589
1605
  },
1590
1606
  () => {
1591
1607
  }
1592
- ), x = Q.useSyncExternalStore(
1608
+ ), x = Z.useSyncExternalStore(
1593
1609
  R(
1594
1610
  (u) => {
1595
- var v;
1596
- return (v = r.current) == null || v.addEventListener("progress", u), () => {
1597
- var y;
1598
- (y = r.current) == null || y.removeEventListener(
1611
+ var d;
1612
+ return (d = r.current) == null || d.addEventListener("progress", u), () => {
1613
+ var p;
1614
+ (p = r.current) == null || p.removeEventListener(
1599
1615
  "progress",
1600
1616
  u
1601
1617
  );
@@ -1609,13 +1625,13 @@ function $t(e) {
1609
1625
  },
1610
1626
  () => {
1611
1627
  }
1612
- ), E = Q.useSyncExternalStore(
1628
+ ), E = Z.useSyncExternalStore(
1613
1629
  R(
1614
1630
  (u) => {
1615
- var v, y;
1616
- return (v = r.current) == null || v.addEventListener("play", u), (y = r.current) == null || y.addEventListener("pause", u), () => {
1617
- var w, j;
1618
- (w = r.current) == null || w.removeEventListener("play", u), (j = r.current) == null || j.removeEventListener("pause", u);
1631
+ var d, p;
1632
+ return (d = r.current) == null || d.addEventListener("play", u), (p = r.current) == null || p.addEventListener("pause", u), () => {
1633
+ var T, j;
1634
+ (T = r.current) == null || T.removeEventListener("play", u), (j = r.current) == null || j.removeEventListener("pause", u);
1619
1635
  };
1620
1636
  },
1621
1637
  [r]
@@ -1626,13 +1642,13 @@ function $t(e) {
1626
1642
  },
1627
1643
  () => {
1628
1644
  }
1629
- ), b = Q.useSyncExternalStore(
1645
+ ), b = Z.useSyncExternalStore(
1630
1646
  R(
1631
1647
  (u) => {
1632
- var v, y;
1633
- return (v = r.current) == null || v.addEventListener("playing", u), (y = r.current) == null || y.addEventListener("waiting", u), () => {
1634
- var w, j;
1635
- (w = r.current) == null || w.removeEventListener(
1648
+ var d, p;
1649
+ return (d = r.current) == null || d.addEventListener("playing", u), (p = r.current) == null || p.addEventListener("waiting", u), () => {
1650
+ var T, j;
1651
+ (T = r.current) == null || T.removeEventListener(
1636
1652
  "playing",
1637
1653
  u
1638
1654
  ), (j = r.current) == null || j.removeEventListener(
@@ -1654,19 +1670,19 @@ function $t(e) {
1654
1670
  audio: r.current,
1655
1671
  playAudio: a,
1656
1672
  togglePlay: i,
1657
- seek: l,
1658
- toggleMuted: h,
1673
+ seek: m,
1674
+ toggleMuted: c,
1659
1675
  setVolume: g,
1660
1676
  volume: s,
1661
- muted: c,
1662
- currentTime: f,
1663
- duration: p,
1677
+ muted: y,
1678
+ currentTime: l,
1679
+ duration: h,
1664
1680
  bufferedSeconds: x,
1665
1681
  isPlaying: E,
1666
1682
  isLoading: b
1667
1683
  };
1668
1684
  }
1669
- function At(e, r) {
1685
+ function kt(e, r) {
1670
1686
  return K(() => {
1671
1687
  const n = { ...r };
1672
1688
  for (const a in e)
@@ -1674,18 +1690,18 @@ function At(e, r) {
1674
1690
  return n;
1675
1691
  }, [e, r]);
1676
1692
  }
1677
- function Mt(e) {
1693
+ function Dt(e) {
1678
1694
  const [r, n] = Y(e);
1679
- return F(() => {
1695
+ return B(() => {
1680
1696
  n(e);
1681
1697
  }, [e]), {
1682
1698
  mini: r,
1683
1699
  setMini: n
1684
1700
  };
1685
1701
  }
1686
- function yr() {
1687
- const e = V([]);
1688
- return F(() => {
1702
+ function gr() {
1703
+ const e = F([]);
1704
+ return B(() => {
1689
1705
  const n = e.current;
1690
1706
  return () => {
1691
1707
  for (const a of n)
@@ -1696,64 +1712,19 @@ function yr() {
1696
1712
  return e.current.push(i), i;
1697
1713
  }, []);
1698
1714
  }
1699
- function Nt() {
1700
- const e = V(), [r, n] = Y({ text: "", style: { opacity: 0 } }), a = yr(), i = R(
1701
- (l, h = 2e3) => {
1702
- e.current && clearTimeout(e.current), n({ text: l, style: { opacity: 1 } }), e.current = a(() => {
1703
- n({ text: l, style: { opacity: 0 } });
1704
- }, h);
1715
+ function It() {
1716
+ const e = F(null), [r, n] = Y({ text: "", style: { opacity: 0 } }), a = gr(), i = R(
1717
+ (m, c = 2e3) => {
1718
+ e.current && clearTimeout(e.current), n({ text: m, style: { opacity: 1 } }), e.current = a(() => {
1719
+ n({ text: m, style: { opacity: 0 } });
1720
+ }, c);
1705
1721
  },
1706
1722
  [a]
1707
1723
  );
1708
1724
  return [r, i];
1709
1725
  }
1710
- function qt(e) {
1711
- return kt(e.slice());
1712
- }
1713
- function kt(e) {
1714
- let r = e.length, n;
1715
- for (; r !== 0; )
1716
- n = Math.floor(Math.random() * r), r--, [e[r], e[n]] = [
1717
- e[n],
1718
- e[r]
1719
- ];
1720
- return e;
1721
- }
1722
- function Dt(e, r) {
1723
- const { initialLoop: n = "all", initialOrder: a = "list" } = r, [i, l] = Y(n), [h, g] = Y(a), s = K(() => h === "list" ? e : qt(e), [e, h]), [c, f] = Y(s[0]), p = R((v) => v.url, []), x = K(() => s.findIndex((y) => p(y) === p(c)) < s.length - 1 || i !== "none", [s, c, i, p]), E = R(() => {
1724
- f((v) => {
1725
- const y = s.findIndex((w) => p(w) === p(v));
1726
- return y < s.length - 1 ? s[y + 1] : { ...s[0] };
1727
- });
1728
- }, [i, s, p]), b = R(() => {
1729
- f((v) => {
1730
- const y = s.indexOf(v);
1731
- return y > 0 ? s[y - 1] : v;
1732
- });
1733
- }, [s]), u = R((v) => {
1734
- f(v);
1735
- }, []);
1736
- return F(() => {
1737
- const v = s.find(
1738
- (y) => p(y) === p(c)
1739
- );
1740
- f(v || s[0]);
1741
- }, [s, p, c]), {
1742
- list: s,
1743
- currentSong: c,
1744
- hasNextSong: x,
1745
- next: E,
1746
- previous: b,
1747
- prioritize: u,
1748
- order: h,
1749
- setOrder: g,
1750
- loop: i,
1751
- setLoop: l,
1752
- length: s.length
1753
- };
1754
- }
1755
- function It(e) {
1756
- const r = At(e, {
1726
+ function Vt(e) {
1727
+ const r = kt(e, {
1757
1728
  appearance: "normal",
1758
1729
  volume: 0.7,
1759
1730
  autoPlay: !1,
@@ -1767,129 +1738,174 @@ function It(e) {
1767
1738
  audio: n,
1768
1739
  appearance: a,
1769
1740
  initialLoop: i,
1770
- initialOrder: l,
1771
- volume: h,
1741
+ initialOrder: m,
1742
+ volume: c,
1772
1743
  autoPlay: g,
1773
1744
  listMaxHeight: s,
1774
- listFolded: c,
1775
- mutex: f,
1776
- theme: p,
1745
+ listFolded: y,
1746
+ mutex: l,
1747
+ theme: h,
1777
1748
  border: x
1778
1749
  } = r, E = K(
1779
1750
  () => Array.isArray(n) ? n : [n],
1780
1751
  [n]
1781
- ), b = Dt(E, {
1752
+ ), b = zt(E, {
1782
1753
  initialLoop: i,
1783
- initialOrder: l
1784
- }), [u, v] = Nt(), { mini: y, setMini: w } = Mt(r.mini), j = yr(), L = V(), B = R(() => {
1785
- L.current && (clearTimeout(L.current), L.current = void 0);
1786
- }, []), z = V(!1), q = $t({
1754
+ initialOrder: m
1755
+ }), [u, d] = It(), { mini: p, setMini: T } = Dt(r.mini), j = gr(), L = F(null), z = R(() => {
1756
+ L.current && (clearTimeout(L.current), L.current = null);
1757
+ }, []), H = F(!1), q = qt({
1787
1758
  src: b.currentSong.url,
1788
- initialVolume: h,
1759
+ initialVolume: c,
1789
1760
  autoPlay: g,
1790
- mutex: f,
1791
- onError(D) {
1792
- const { error: ee } = D.target;
1793
- ee && v(
1761
+ mutex: l,
1762
+ onError(I) {
1763
+ const { error: re } = I.target;
1764
+ re && d(
1794
1765
  "An audio error has occurred, player will skip forward in 2 seconds."
1795
1766
  ), b.hasNextSong && (L.current = j(() => {
1796
1767
  b.next();
1797
1768
  }, 2e3));
1798
1769
  },
1799
1770
  onEnded() {
1800
- const { list: D, currentSong: ee, loop: ue, prioritize: se, hasNextSong: pe } = b, { audio: le } = q;
1801
- if (ue === "one") {
1802
- se({ ...ee });
1771
+ const { list: I, currentSong: re, loop: se, prioritize: le, hasNextSong: be } = b, { audio: ce } = q;
1772
+ if (se === "one") {
1773
+ le({ ...re });
1803
1774
  return;
1804
1775
  }
1805
- if (!pe && ue === "none") {
1806
- z.current = !0, le.currentTime = 0, le.pause(), le.src = D[0].url, se(D[0]);
1776
+ if (!be && se === "none") {
1777
+ H.current = !0, ce.currentTime = 0, ce.pause(), ce.src = I[0].url, le(I[0]);
1807
1778
  return;
1808
1779
  }
1809
1780
  b.next();
1810
1781
  }
1811
1782
  }), J = b.length > 1, A = R(() => {
1812
- B(), q.togglePlay(b.currentSong.url);
1813
- }, [q, B, b.currentSong.url]), { prioritize: me } = b, Oe = R(
1814
- (D) => {
1815
- B(), me(D);
1783
+ z(), q.togglePlay(b.currentSong.url);
1784
+ }, [q, z, b.currentSong.url]), { prioritize: pe } = b, Re = R(
1785
+ (I) => {
1786
+ z(), pe(I);
1816
1787
  },
1817
- [B, me]
1818
- ), [he, H] = Y(() => J && !c), [W, X] = Y(!0), Z = V(null);
1819
- F(() => {
1788
+ [z, pe]
1789
+ ), [ye, W] = Y(() => J && !y), [U, X] = Y(!0), ee = F(null);
1790
+ B(() => {
1820
1791
  g && q.playAudio(b.currentSong.url);
1821
1792
  }, []);
1822
- const ie = V(!0), oe = V(b.currentSong);
1823
- return F(() => {
1824
- if (ie.current) {
1825
- ie.current = !1;
1793
+ const oe = F(!0), ue = F(b.currentSong);
1794
+ return B(() => {
1795
+ if (oe.current) {
1796
+ oe.current = !1;
1826
1797
  return;
1827
1798
  }
1828
- if (z.current) {
1829
- z.current = !1;
1799
+ if (H.current) {
1800
+ H.current = !1;
1830
1801
  return;
1831
1802
  }
1832
- b.currentSong && (b.loop === "one" || b.currentSong !== oe.current) && (oe.current = b.currentSong, q.playAudio(b.currentSong.url));
1833
- }, [b.currentSong]), F(() => {
1834
- if (a === "fixed" && Z.current) {
1835
- const D = Z.current;
1836
- return D.style.width = `${D.offsetWidth - 18}px`, () => {
1837
- D.removeAttribute("style");
1803
+ b.currentSong && (b.loop === "one" || b.currentSong !== ue.current) && (ue.current = b.currentSong, q.playAudio(b.currentSong.url));
1804
+ }, [b.currentSong]), B(() => {
1805
+ if (a === "fixed" && ee.current) {
1806
+ const I = ee.current;
1807
+ return I.style.width = "400px", () => {
1808
+ I.removeAttribute("style");
1838
1809
  };
1839
1810
  }
1840
1811
  }, [a]), {
1841
- bodyRef: Z,
1812
+ bodyRef: ee,
1842
1813
  appearance: a,
1843
- volume: h,
1814
+ volume: c,
1844
1815
  listMaxHeight: s,
1845
- theme: p,
1816
+ theme: h,
1846
1817
  border: x,
1847
1818
  notice: u,
1848
1819
  audioControl: q,
1849
1820
  audio: E,
1850
1821
  handlePlayButtonClick: A,
1851
- handlePlayAudioFromList: Oe,
1852
- isPlaylistOpen: he,
1853
- setPlaylistOpen: H,
1854
- mini: y,
1855
- displayLyrics: W,
1822
+ handlePlayAudioFromList: Re,
1823
+ isPlaylistOpen: ye,
1824
+ setPlaylistOpen: W,
1825
+ mini: p,
1826
+ displayLyrics: U,
1856
1827
  setDisplayLyrics: X,
1857
- setMini: w,
1828
+ setMini: T,
1858
1829
  playlist: b,
1859
1830
  hasPlaylist: J
1860
1831
  };
1861
1832
  }
1862
1833
  function Ft(e) {
1863
- var z, q, J;
1834
+ return Bt(e.slice());
1835
+ }
1836
+ function Bt(e) {
1837
+ let r = e.length, n;
1838
+ for (; r !== 0; )
1839
+ n = Math.floor(Math.random() * r), r--, [e[r], e[n]] = [
1840
+ e[n],
1841
+ e[r]
1842
+ ];
1843
+ return e;
1844
+ }
1845
+ function zt(e, r) {
1846
+ const { initialLoop: n = "all", initialOrder: a = "list" } = r, [i, m] = Y(n), [c, g] = Y(a), s = K(() => c === "list" ? e : Ft(e), [e, c]), [y, l] = Y(s[0]), h = R((d) => d.url, []), x = K(() => s.findIndex((p) => h(p) === h(y)) < s.length - 1 || i !== "none", [s, y, i, h]), E = R(() => {
1847
+ l((d) => {
1848
+ const p = s.findIndex((T) => h(T) === h(d));
1849
+ return p < s.length - 1 ? s[p + 1] : { ...s[0] };
1850
+ });
1851
+ }, [i, s, h]), b = R(() => {
1852
+ l((d) => {
1853
+ const p = s.indexOf(d);
1854
+ return p > 0 ? s[p - 1] : d;
1855
+ });
1856
+ }, [s]), u = R((d) => {
1857
+ l(d);
1858
+ }, []);
1859
+ return B(() => {
1860
+ const d = s.find(
1861
+ (p) => h(p) === h(y)
1862
+ );
1863
+ l(d || s[0]);
1864
+ }, [s, h, y]), {
1865
+ list: s,
1866
+ currentSong: y,
1867
+ hasNextSong: x,
1868
+ next: E,
1869
+ previous: b,
1870
+ prioritize: u,
1871
+ order: c,
1872
+ setOrder: g,
1873
+ loop: i,
1874
+ setLoop: m,
1875
+ length: s.length
1876
+ };
1877
+ }
1878
+ function Wt(e) {
1879
+ var H, q, J;
1864
1880
  const r = G("aplayer"), {
1865
1881
  bodyRef: n,
1866
1882
  appearance: a,
1867
1883
  volume: i,
1868
- listMaxHeight: l,
1869
- theme: h,
1884
+ listMaxHeight: m,
1885
+ theme: c,
1870
1886
  border: g,
1871
1887
  notice: s,
1872
- audio: c,
1873
- audioControl: f,
1874
- handlePlayButtonClick: p,
1888
+ audio: y,
1889
+ audioControl: l,
1890
+ handlePlayButtonClick: h,
1875
1891
  handlePlayAudioFromList: x,
1876
1892
  isPlaylistOpen: E,
1877
1893
  setPlaylistOpen: b,
1878
1894
  mini: u,
1879
- displayLyrics: v,
1880
- setDisplayLyrics: y,
1881
- setMini: w,
1895
+ displayLyrics: d,
1896
+ setDisplayLyrics: p,
1897
+ setMini: T,
1882
1898
  playlist: j,
1883
1899
  hasPlaylist: L
1884
- } = It(e), B = R((A) => A ? typeof A == "string" ? A : A.url ? /* @__PURE__ */ d.jsx("a", { href: A.url, target: "_blank", rel: "noreferrer", children: A.name ?? "Audio artist" }) : A.name ?? "Audio artist" : "Audio artist", []);
1885
- return /* @__PURE__ */ d.jsxs(
1900
+ } = Vt(e), z = R((A) => A ? typeof A == "string" ? A : A.url ? /* @__PURE__ */ f.jsx("a", { href: A.url, target: "_blank", rel: "noreferrer", children: A.name ?? "Audio artist" }) : A.name ?? "Audio artist" : "Audio artist", []);
1901
+ return /* @__PURE__ */ f.jsxs(
1886
1902
  "div",
1887
1903
  {
1888
1904
  className: C(r.b(), {
1889
- [r.bs(h)]: !0,
1905
+ [r.bs(c)]: !0,
1890
1906
  [r.bs("vars")]: !0,
1891
1907
  [r.bm(a)]: !0,
1892
- [r.bm("loading")]: f.isLoading,
1908
+ [r.bm("loading")]: l.isLoading,
1893
1909
  [r.bm("withlist")]: L,
1894
1910
  [r.bm("list-folded")]: !E,
1895
1911
  [r.bm("withlrc")]: !!j.currentSong.lrc && a !== "fixed",
@@ -1899,112 +1915,113 @@ function Ft(e) {
1899
1915
  role: "region",
1900
1916
  "aria-label": "Audio Player",
1901
1917
  children: [
1902
- /* @__PURE__ */ d.jsxs(
1918
+ /* @__PURE__ */ f.jsxs(
1903
1919
  "div",
1904
1920
  {
1905
1921
  ref: n,
1906
1922
  className: r.be("body"),
1907
1923
  children: [
1908
- /* @__PURE__ */ d.jsx(
1924
+ /* @__PURE__ */ f.jsx(
1909
1925
  "div",
1910
1926
  {
1911
1927
  className: r.be("pic"),
1912
- onClick: p,
1928
+ onClick: h,
1913
1929
  style: {
1914
- backgroundImage: `url("${(z = j.currentSong) == null ? void 0 : z.cover}")`
1930
+ backgroundImage: `url("${(H = j.currentSong) == null ? void 0 : H.cover}")`
1915
1931
  },
1916
1932
  role: "button",
1917
- "aria-label": f.isPlaying ? "Pause audio" : "Play audio",
1918
- children: /* @__PURE__ */ d.jsx(
1933
+ "aria-label": l.isPlaying ? "Pause audio" : "Play audio",
1934
+ children: /* @__PURE__ */ f.jsx(
1919
1935
  "div",
1920
1936
  {
1921
1937
  className: C(
1922
1938
  r.be("button"),
1923
- f.isPlaying ? r.bm("pause") : r.bm("play")
1939
+ l.isPlaying ? r.bm("pause") : r.bm("play")
1924
1940
  ),
1925
1941
  role: "presentation",
1926
- children: f.isPlaying ? /* @__PURE__ */ d.jsx(lt, {}) : /* @__PURE__ */ d.jsx(St, {})
1942
+ children: l.isPlaying ? /* @__PURE__ */ f.jsx(vt, {}) : /* @__PURE__ */ f.jsx(jt, {})
1927
1943
  }
1928
1944
  )
1929
1945
  }
1930
1946
  ),
1931
- /* @__PURE__ */ d.jsxs("div", { className: C(r.be("info")), children: [
1932
- /* @__PURE__ */ d.jsxs("div", { className: C(r.be("music")), children: [
1933
- /* @__PURE__ */ d.jsx("span", { className: C(r.be("title")), children: ((q = j.currentSong) == null ? void 0 : q.name) ?? "Audio name" }),
1934
- /* @__PURE__ */ d.jsxs("span", { className: C(r.be("author")), children: [
1947
+ /* @__PURE__ */ f.jsxs("div", { className: C(r.be("info")), children: [
1948
+ /* @__PURE__ */ f.jsxs("div", { className: C(r.be("music")), children: [
1949
+ /* @__PURE__ */ f.jsx("span", { className: C(r.be("title")), children: ((q = j.currentSong) == null ? void 0 : q.name) ?? "Audio name" }),
1950
+ /* @__PURE__ */ f.jsxs("span", { className: C(r.be("author")), children: [
1935
1951
  " ",
1936
1952
  "-",
1937
1953
  " ",
1938
- B((J = j.currentSong) == null ? void 0 : J.artist)
1954
+ z((J = j.currentSong) == null ? void 0 : J.artist)
1939
1955
  ] })
1940
1956
  ] }),
1941
- a === "fixed" ? null : /* @__PURE__ */ d.jsx(
1942
- lr,
1957
+ a === "fixed" ? null : /* @__PURE__ */ f.jsx(
1958
+ fr,
1943
1959
  {
1944
- show: v,
1960
+ show: d,
1945
1961
  lrcText: j.currentSong.lrc,
1946
- currentTime: f.currentTime ?? 0
1962
+ currentTime: l.currentTime ?? 0
1947
1963
  }
1948
1964
  ),
1949
- /* @__PURE__ */ d.jsx(
1950
- wt,
1965
+ /* @__PURE__ */ f.jsx(
1966
+ Pt,
1951
1967
  {
1952
- volume: f.volume ?? i,
1953
- onChangeVolume: f.setVolume,
1954
- muted: f.muted ?? !1,
1955
- onToggleMuted: () => f.toggleMuted(),
1956
- currentTime: f.currentTime,
1957
- audioDurationSeconds: f.duration,
1958
- bufferedSeconds: f.bufferedSeconds,
1959
- onSeek: (A) => f.seek(A),
1968
+ volume: l.volume ?? i,
1969
+ onChangeVolume: l.setVolume,
1970
+ muted: l.muted ?? !1,
1971
+ onToggleMuted: () => l.toggleMuted(),
1972
+ currentTime: l.currentTime,
1973
+ audioDurationSeconds: l.duration,
1974
+ bufferedSeconds: l.bufferedSeconds,
1975
+ onSeek: (A) => l.seek(A),
1960
1976
  onToggleMenu: () => b((A) => !A),
1961
1977
  order: j.order,
1962
1978
  onOrderChange: j.setOrder,
1963
1979
  loop: j.loop,
1964
1980
  onLoopChange: j.setLoop,
1965
- isPlaying: f.isPlaying ?? !1,
1966
- onTogglePlay: p,
1981
+ isPlaying: l.isPlaying ?? !1,
1982
+ onTogglePlay: h,
1967
1983
  onSkipForward: () => {
1968
1984
  j.hasNextSong && j.next();
1969
1985
  },
1970
1986
  onSkipBack: () => {
1971
1987
  j.previous();
1972
1988
  },
1973
- showLyrics: v,
1989
+ showLyrics: d,
1974
1990
  onToggleLyrics: () => {
1975
- y((A) => !A);
1991
+ p((A) => !A);
1976
1992
  }
1977
1993
  }
1978
1994
  )
1979
1995
  ] }),
1980
- /* @__PURE__ */ d.jsx("div", { className: r.be("notice"), style: s.style, children: s.text }),
1981
- /* @__PURE__ */ d.jsx(
1996
+ /* @__PURE__ */ f.jsx("div", { className: r.be("notice"), style: s.style, children: s.text }),
1997
+ /* @__PURE__ */ f.jsx(
1982
1998
  "div",
1983
1999
  {
1984
2000
  className: r.be("miniswitcher"),
1985
- onClick: () => w((A) => !A),
1986
- children: /* @__PURE__ */ d.jsx("button", { className: C(r.bs("icon"), r.bs("icon-right")), type: "button", children: /* @__PURE__ */ d.jsx(st, {}) })
2001
+ onClick: () => T((A) => !A),
2002
+ children: /* @__PURE__ */ f.jsx("button", { className: C(r.bs("icon"), r.bs("icon-right")), type: "button", children: /* @__PURE__ */ f.jsx(dt, {}) })
1987
2003
  }
1988
2004
  )
1989
2005
  ]
1990
2006
  }
1991
2007
  ),
1992
- L ? /* @__PURE__ */ d.jsx(
1993
- jt,
2008
+ L ? /* @__PURE__ */ f.jsx(
2009
+ Lt,
1994
2010
  {
1995
2011
  open: E,
1996
- audio: c,
2012
+ audio: y,
1997
2013
  playingAudioUrl: j.currentSong.url,
1998
2014
  onPlayAudio: x,
1999
- listMaxHeight: l
2015
+ listMaxHeight: m,
2016
+ mini: u
2000
2017
  }
2001
2018
  ) : null,
2002
- a === "fixed" && /* @__PURE__ */ d.jsx(
2003
- lr,
2019
+ a === "fixed" && /* @__PURE__ */ f.jsx(
2020
+ fr,
2004
2021
  {
2005
- show: v,
2022
+ show: d,
2006
2023
  lrcText: j.currentSong.lrc,
2007
- currentTime: f.currentTime ?? 0
2024
+ currentTime: l.currentTime ?? 0
2008
2025
  }
2009
2026
  )
2010
2027
  ]
@@ -2012,5 +2029,5 @@ function Ft(e) {
2012
2029
  );
2013
2030
  }
2014
2031
  export {
2015
- Ft as TwistAPlayer
2032
+ Wt as TwistAPlayer
2016
2033
  };