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