twist-aplayer 1.3.3 → 1.4.0

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