twist-aplayer 1.1.1 → 1.2.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/LICENSE.md +20 -20
- package/README.md +139 -139
- package/dist/index.js +11 -11
- package/dist/{index.css → index.min.css} +1 -1
- package/dist/index.mjs +275 -271
- package/dist/twist-aplayer.umd.js +11 -11
- package/package.json +75 -75
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as re from "react";
|
|
2
|
+
import we, { useMemo as K, useRef as I, useState as H, useEffect as D, useCallback as L } from "react";
|
|
3
|
+
var xe = { exports: {} }, ue = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,9 +12,9 @@ var ge = { exports: {} }, oe = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var er;
|
|
14
14
|
function Br() {
|
|
15
|
-
if (er) return
|
|
15
|
+
if (er) return ue;
|
|
16
16
|
er = 1;
|
|
17
|
-
var e =
|
|
17
|
+
var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
18
|
function h(b, s, d) {
|
|
19
19
|
var g, p = {}, f = null, l = null;
|
|
20
20
|
d !== void 0 && (f = "" + d), s.key !== void 0 && (f = "" + s.key), s.ref !== void 0 && (l = s.ref);
|
|
@@ -22,9 +22,9 @@ function Br() {
|
|
|
22
22
|
if (b && b.defaultProps) for (g in s = b.defaultProps, s) p[g] === void 0 && (p[g] = s[g]);
|
|
23
23
|
return { $$typeof: t, type: b, key: f, ref: l, props: p, _owner: i.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return ue.Fragment = n, ue.jsx = h, ue.jsxs = h, ue;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var se = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -37,7 +37,7 @@ var ue = {};
|
|
|
37
37
|
var rr;
|
|
38
38
|
function zr() {
|
|
39
39
|
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var e =
|
|
40
|
+
var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), b = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), _ = Symbol.iterator, o = "@@iterator";
|
|
41
41
|
function y(r) {
|
|
42
42
|
if (r === null || typeof r != "object")
|
|
43
43
|
return null;
|
|
@@ -45,7 +45,7 @@ function zr() {
|
|
|
45
45
|
return typeof u == "function" ? u : null;
|
|
46
46
|
}
|
|
47
47
|
var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
-
function
|
|
48
|
+
function O(r) {
|
|
49
49
|
{
|
|
50
50
|
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), x = 1; x < u; x++)
|
|
51
51
|
m[x - 1] = arguments[x];
|
|
@@ -54,37 +54,37 @@ function zr() {
|
|
|
54
54
|
}
|
|
55
55
|
function T(r, u, m) {
|
|
56
56
|
{
|
|
57
|
-
var x = E.ReactDebugCurrentFrame,
|
|
58
|
-
|
|
57
|
+
var x = E.ReactDebugCurrentFrame, R = x.getStackAddendum();
|
|
58
|
+
R !== "" && (u += "%s", m = m.concat([R]));
|
|
59
59
|
var P = m.map(function(w) {
|
|
60
60
|
return String(w);
|
|
61
61
|
});
|
|
62
62
|
P.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, P);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var A = !1,
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof r == "string" || typeof r == "function" || r === a || r === c ||
|
|
65
|
+
var A = !1, te = !1, W = !1, B = !1, fe = !1, de;
|
|
66
|
+
de = Symbol.for("react.module.reference");
|
|
67
|
+
function ve(r) {
|
|
68
|
+
return !!(typeof r == "string" || typeof r == "function" || r === a || r === c || fe || r === i || r === d || r === g || B || r === l || A || te || W || typeof r == "object" && r !== null && (r.$$typeof === f || r.$$typeof === p || r.$$typeof === h || r.$$typeof === b || r.$$typeof === s || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
|
-
r.$$typeof ===
|
|
72
|
+
r.$$typeof === de || r.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function je(r, u, m) {
|
|
75
75
|
var x = r.displayName;
|
|
76
76
|
if (x)
|
|
77
77
|
return x;
|
|
78
|
-
var
|
|
79
|
-
return
|
|
78
|
+
var R = u.displayName || u.name || "";
|
|
79
|
+
return R !== "" ? m + "(" + R + ")" : m;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function me(r) {
|
|
82
82
|
return r.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function F(r) {
|
|
85
85
|
if (r == null)
|
|
86
86
|
return null;
|
|
87
|
-
if (typeof r.tag == "number" &&
|
|
87
|
+
if (typeof r.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
88
88
|
return r.displayName || r.name || null;
|
|
89
89
|
if (typeof r == "string")
|
|
90
90
|
return r;
|
|
@@ -106,19 +106,19 @@ function zr() {
|
|
|
106
106
|
switch (r.$$typeof) {
|
|
107
107
|
case b:
|
|
108
108
|
var u = r;
|
|
109
|
-
return
|
|
109
|
+
return me(u) + ".Consumer";
|
|
110
110
|
case h:
|
|
111
111
|
var m = r;
|
|
112
|
-
return
|
|
112
|
+
return me(m._context) + ".Provider";
|
|
113
113
|
case s:
|
|
114
|
-
return
|
|
114
|
+
return je(r, r.render, "ForwardRef");
|
|
115
115
|
case p:
|
|
116
116
|
var x = r.displayName || null;
|
|
117
|
-
return x !== null ? x :
|
|
117
|
+
return x !== null ? x : F(r.type) || "Memo";
|
|
118
118
|
case f: {
|
|
119
|
-
var
|
|
119
|
+
var R = r, P = R._payload, w = R._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return F(w(P));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function zr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var V = Object.assign, Y = 0, J, X, ne, ae, ie, oe, j;
|
|
130
|
+
function he() {
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
he.__reactDisabledLog = !0;
|
|
133
133
|
function pr() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (Y === 0) {
|
|
136
|
+
J = console.log, X = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, j = console.groupEnd;
|
|
137
137
|
var r = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: he,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -150,77 +150,77 @@ function zr() {
|
|
|
150
150
|
groupEnd: r
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
Y++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function br() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (Y--, Y === 0) {
|
|
159
159
|
var r = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value: de
|
|
167
|
-
}),
|
|
168
|
-
info: I({}, r, {
|
|
165
|
+
log: V({}, r, {
|
|
169
166
|
value: J
|
|
170
167
|
}),
|
|
171
|
-
|
|
168
|
+
info: V({}, r, {
|
|
169
|
+
value: X
|
|
170
|
+
}),
|
|
171
|
+
warn: V({}, r, {
|
|
172
172
|
value: ne
|
|
173
173
|
}),
|
|
174
|
-
error:
|
|
174
|
+
error: V({}, r, {
|
|
175
175
|
value: ae
|
|
176
176
|
}),
|
|
177
|
-
group:
|
|
177
|
+
group: V({}, r, {
|
|
178
178
|
value: ie
|
|
179
179
|
}),
|
|
180
|
-
groupCollapsed:
|
|
181
|
-
value:
|
|
180
|
+
groupCollapsed: V({}, r, {
|
|
181
|
+
value: oe
|
|
182
182
|
}),
|
|
183
|
-
groupEnd:
|
|
184
|
-
value:
|
|
183
|
+
groupEnd: V({}, r, {
|
|
184
|
+
value: j
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
Y < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
191
|
+
var Oe = E.ReactCurrentDispatcher, Re;
|
|
192
|
+
function ye(r, u, m) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (Re === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var x =
|
|
199
|
-
|
|
197
|
+
} catch (R) {
|
|
198
|
+
var x = R.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
Re = x && x[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + Re + r;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var Pe = !1, pe;
|
|
206
206
|
{
|
|
207
207
|
var gr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
|
|
208
|
+
pe = new gr();
|
|
209
209
|
}
|
|
210
210
|
function Ve(r, u) {
|
|
211
|
-
if (!r ||
|
|
211
|
+
if (!r || Pe)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var m =
|
|
214
|
+
var m = pe.get(r);
|
|
215
215
|
if (m !== void 0)
|
|
216
216
|
return m;
|
|
217
217
|
}
|
|
218
218
|
var x;
|
|
219
|
-
|
|
220
|
-
var
|
|
219
|
+
Pe = !0;
|
|
220
|
+
var R = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
222
|
var P;
|
|
223
|
-
P =
|
|
223
|
+
P = Oe.current, Oe.current = null, pr();
|
|
224
224
|
try {
|
|
225
225
|
if (u) {
|
|
226
226
|
var w = function() {
|
|
@@ -233,29 +233,29 @@ function zr() {
|
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
235
|
Reflect.construct(w, []);
|
|
236
|
-
} catch (
|
|
237
|
-
x =
|
|
236
|
+
} catch (z) {
|
|
237
|
+
x = z;
|
|
238
238
|
}
|
|
239
239
|
Reflect.construct(r, [], w);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
242
|
w.call();
|
|
243
|
-
} catch (
|
|
244
|
-
x =
|
|
243
|
+
} catch (z) {
|
|
244
|
+
x = z;
|
|
245
245
|
}
|
|
246
246
|
r.call(w.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
x =
|
|
251
|
+
} catch (z) {
|
|
252
|
+
x = z;
|
|
253
253
|
}
|
|
254
254
|
r();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var S =
|
|
256
|
+
} catch (z) {
|
|
257
|
+
if (z && x && typeof z.stack == "string") {
|
|
258
|
+
for (var S = z.stack.split(`
|
|
259
259
|
`), M = x.stack.split(`
|
|
260
260
|
`), C = S.length - 1, N = M.length - 1; C >= 1 && N >= 0 && S[C] !== M[N]; )
|
|
261
261
|
N--;
|
|
@@ -266,17 +266,17 @@ function zr() {
|
|
|
266
266
|
if (C--, N--, N < 0 || S[C] !== M[N]) {
|
|
267
267
|
var k = `
|
|
268
268
|
` + S[C].replace(" at new ", " at ");
|
|
269
|
-
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" &&
|
|
269
|
+
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && pe.set(r, k), k;
|
|
270
270
|
}
|
|
271
271
|
while (C >= 1 && N >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
Pe = !1, Oe.current = P, br(), Error.prepareStackTrace = R;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
return typeof r == "function" &&
|
|
278
|
+
var Z = r ? r.displayName || r.name : "", Ze = Z ? ye(Z) : "";
|
|
279
|
+
return typeof r == "function" && pe.set(r, Ze), Ze;
|
|
280
280
|
}
|
|
281
281
|
function Er(r, u, m) {
|
|
282
282
|
return Ve(r, !1);
|
|
@@ -285,46 +285,46 @@ function zr() {
|
|
|
285
285
|
var u = r.prototype;
|
|
286
286
|
return !!(u && u.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function be(r, u, m) {
|
|
289
289
|
if (r == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof r == "function")
|
|
292
292
|
return Ve(r, xr(r));
|
|
293
293
|
if (typeof r == "string")
|
|
294
|
-
return
|
|
294
|
+
return ye(r);
|
|
295
295
|
switch (r) {
|
|
296
296
|
case d:
|
|
297
|
-
return
|
|
297
|
+
return ye("Suspense");
|
|
298
298
|
case g:
|
|
299
|
-
return
|
|
299
|
+
return ye("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof r == "object")
|
|
302
302
|
switch (r.$$typeof) {
|
|
303
303
|
case s:
|
|
304
304
|
return Er(r.render);
|
|
305
305
|
case p:
|
|
306
|
-
return
|
|
306
|
+
return be(r.type, u, m);
|
|
307
307
|
case f: {
|
|
308
|
-
var x = r,
|
|
308
|
+
var x = r, R = x._payload, P = x._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return be(P(R), u, m);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var ge = Object.prototype.hasOwnProperty, Ie = {}, Fe = E.ReactDebugCurrentFrame;
|
|
318
|
+
function Ee(r) {
|
|
319
319
|
if (r) {
|
|
320
|
-
var u = r._owner, m =
|
|
320
|
+
var u = r._owner, m = be(r.type, r._source, u ? u.type : null);
|
|
321
321
|
Fe.setExtraStackFrame(m);
|
|
322
322
|
} else
|
|
323
323
|
Fe.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function _r(r, u, m, x,
|
|
325
|
+
function _r(r, u, m, x, R) {
|
|
326
326
|
{
|
|
327
|
-
var P = Function.call.bind(
|
|
327
|
+
var P = Function.call.bind(ge);
|
|
328
328
|
for (var w in r)
|
|
329
329
|
if (P(r, w)) {
|
|
330
330
|
var S = void 0;
|
|
@@ -337,12 +337,12 @@ function zr() {
|
|
|
337
337
|
} catch (C) {
|
|
338
338
|
S = C;
|
|
339
339
|
}
|
|
340
|
-
S && !(S instanceof Error) && (
|
|
340
|
+
S && !(S instanceof Error) && (Ee(R), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", m, w, typeof S), Ee(null)), S instanceof Error && !(S.message in Ie) && (Ie[S.message] = !0, Ee(R), O("Failed %s type: %s", m, S.message), Ee(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
var Sr = Array.isArray;
|
|
345
|
-
function
|
|
345
|
+
function Le(r) {
|
|
346
346
|
return Sr(r);
|
|
347
347
|
}
|
|
348
348
|
function Tr(r) {
|
|
@@ -363,16 +363,16 @@ function zr() {
|
|
|
363
363
|
}
|
|
364
364
|
function ze(r) {
|
|
365
365
|
if (wr(r))
|
|
366
|
-
return
|
|
366
|
+
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), Be(r);
|
|
367
367
|
}
|
|
368
368
|
var He = E.ReactCurrentOwner, jr = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
373
|
+
}, Ue, We;
|
|
374
374
|
function Or(r) {
|
|
375
|
-
if (
|
|
375
|
+
if (ge.call(r, "ref")) {
|
|
376
376
|
var u = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
377
377
|
if (u && u.isReactWarning)
|
|
378
378
|
return !1;
|
|
@@ -380,7 +380,7 @@ function zr() {
|
|
|
380
380
|
return r.ref !== void 0;
|
|
381
381
|
}
|
|
382
382
|
function Rr(r) {
|
|
383
|
-
if (
|
|
383
|
+
if (ge.call(r, "key")) {
|
|
384
384
|
var u = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
385
385
|
if (u && u.isReactWarning)
|
|
386
386
|
return !1;
|
|
@@ -393,7 +393,7 @@ function zr() {
|
|
|
393
393
|
function Lr(r, u) {
|
|
394
394
|
{
|
|
395
395
|
var m = function() {
|
|
396
|
-
|
|
396
|
+
Ue || (Ue = !0, O("%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)", u));
|
|
397
397
|
};
|
|
398
398
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
399
399
|
get: m,
|
|
@@ -404,7 +404,7 @@ function zr() {
|
|
|
404
404
|
function $r(r, u) {
|
|
405
405
|
{
|
|
406
406
|
var m = function() {
|
|
407
|
-
|
|
407
|
+
We || (We = !0, O("%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)", u));
|
|
408
408
|
};
|
|
409
409
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
410
410
|
get: m,
|
|
@@ -412,7 +412,7 @@ function zr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var Cr = function(r, u, m, x,
|
|
415
|
+
var Cr = function(r, u, m, x, R, P, w) {
|
|
416
416
|
var S = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: t,
|
|
@@ -438,15 +438,15 @@ function zr() {
|
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
441
|
+
value: R
|
|
442
442
|
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
443
443
|
};
|
|
444
|
-
function Ar(r, u, m, x,
|
|
444
|
+
function Ar(r, u, m, x, R) {
|
|
445
445
|
{
|
|
446
446
|
var P, w = {}, S = null, M = null;
|
|
447
|
-
m !== void 0 && (ze(m), S = "" + m), Rr(u) && (ze(u.key), S = "" + u.key), Or(u) && (M = u.ref, Pr(u,
|
|
447
|
+
m !== void 0 && (ze(m), S = "" + m), Rr(u) && (ze(u.key), S = "" + u.key), Or(u) && (M = u.ref, Pr(u, R));
|
|
448
448
|
for (P in u)
|
|
449
|
-
|
|
449
|
+
ge.call(u, P) && !jr.hasOwnProperty(P) && (w[P] = u[P]);
|
|
450
450
|
if (r && r.defaultProps) {
|
|
451
451
|
var C = r.defaultProps;
|
|
452
452
|
for (P in C)
|
|
@@ -456,26 +456,26 @@ function zr() {
|
|
|
456
456
|
var N = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
457
457
|
S && Lr(w, N), M && $r(w, N);
|
|
458
458
|
}
|
|
459
|
-
return Cr(r, S, M,
|
|
459
|
+
return Cr(r, S, M, R, x, He.current, w);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var
|
|
463
|
-
function
|
|
462
|
+
var $e = E.ReactCurrentOwner, Ye = E.ReactDebugCurrentFrame;
|
|
463
|
+
function Q(r) {
|
|
464
464
|
if (r) {
|
|
465
|
-
var u = r._owner, m =
|
|
465
|
+
var u = r._owner, m = be(r.type, r._source, u ? u.type : null);
|
|
466
466
|
Ye.setExtraStackFrame(m);
|
|
467
467
|
} else
|
|
468
468
|
Ye.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
470
|
+
var Ce;
|
|
471
|
+
Ce = !1;
|
|
472
|
+
function Ae(r) {
|
|
473
473
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
474
474
|
}
|
|
475
475
|
function Ge() {
|
|
476
476
|
{
|
|
477
|
-
if (
|
|
478
|
-
var r =
|
|
477
|
+
if ($e.current) {
|
|
478
|
+
var r = F($e.current.type);
|
|
479
479
|
if (r)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -510,25 +510,25 @@ Check the top-level render call using <` + m + ">.");
|
|
|
510
510
|
return;
|
|
511
511
|
Ke[m] = !0;
|
|
512
512
|
var x = "";
|
|
513
|
-
r && r._owner && r._owner !==
|
|
513
|
+
r && r._owner && r._owner !== $e.current && (x = " It was passed a child from " + F(r._owner.type) + "."), Q(r), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), Q(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
function Xe(r, u) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof r != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
520
|
+
if (Le(r))
|
|
521
521
|
for (var m = 0; m < r.length; m++) {
|
|
522
522
|
var x = r[m];
|
|
523
|
-
|
|
523
|
+
Ae(x) && Je(x, u);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (Ae(r))
|
|
526
526
|
r._store && (r._store.validated = !0);
|
|
527
527
|
else if (r) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var P =
|
|
531
|
-
|
|
528
|
+
var R = y(r);
|
|
529
|
+
if (typeof R == "function" && R !== r.entries)
|
|
530
|
+
for (var P = R.call(r), w; !(w = P.next()).done; )
|
|
531
|
+
Ae(w.value) && Je(w.value, u);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -547,14 +547,14 @@ Check the top-level render call using <` + m + ">.");
|
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (m) {
|
|
550
|
-
var x =
|
|
550
|
+
var x = F(u);
|
|
551
551
|
_r(m, r.props, "prop", x, r);
|
|
552
|
-
} else if (u.PropTypes !== void 0 &&
|
|
553
|
-
|
|
554
|
-
var
|
|
555
|
-
|
|
552
|
+
} else if (u.PropTypes !== void 0 && !Ce) {
|
|
553
|
+
Ce = !0;
|
|
554
|
+
var R = F(u);
|
|
555
|
+
O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
556
556
|
}
|
|
557
|
-
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function kr(r) {
|
|
@@ -562,37 +562,37 @@ Check the top-level render call using <` + m + ">.");
|
|
|
562
562
|
for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
|
|
563
563
|
var x = u[m];
|
|
564
564
|
if (x !== "children" && x !== "key") {
|
|
565
|
-
|
|
565
|
+
Q(r), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Q(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
r.ref !== null && (
|
|
569
|
+
r.ref !== null && (Q(r), O("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function Qe(r, u, m, x,
|
|
572
|
+
function Qe(r, u, m, x, R, P) {
|
|
573
573
|
{
|
|
574
|
-
var w =
|
|
574
|
+
var w = ve(r);
|
|
575
575
|
if (!w) {
|
|
576
576
|
var S = "";
|
|
577
577
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var M = Nr();
|
|
579
579
|
M ? S += M : S += Ge();
|
|
580
580
|
var C;
|
|
581
|
-
r === null ? C = "null" :
|
|
581
|
+
r === null ? C = "null" : Le(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (F(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, S);
|
|
582
582
|
}
|
|
583
|
-
var N = Ar(r, u, m,
|
|
583
|
+
var N = Ar(r, u, m, R, P);
|
|
584
584
|
if (N == null)
|
|
585
585
|
return N;
|
|
586
586
|
if (w) {
|
|
587
587
|
var k = u.children;
|
|
588
588
|
if (k !== void 0)
|
|
589
589
|
if (x)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
Xe(k[
|
|
590
|
+
if (Le(k)) {
|
|
591
|
+
for (var Z = 0; Z < k.length; Z++)
|
|
592
|
+
Xe(k[Z], r);
|
|
593
593
|
Object.freeze && Object.freeze(k);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
597
|
Xe(k, r);
|
|
598
598
|
}
|
|
@@ -606,15 +606,15 @@ Check the top-level render call using <` + m + ">.");
|
|
|
606
606
|
return Qe(r, u, m, !1);
|
|
607
607
|
}
|
|
608
608
|
var Ir = Vr, Fr = Dr;
|
|
609
|
-
|
|
610
|
-
}()),
|
|
609
|
+
se.Fragment = a, se.jsx = Ir, se.jsxs = Fr;
|
|
610
|
+
}()), se;
|
|
611
611
|
}
|
|
612
612
|
var tr;
|
|
613
613
|
function Hr() {
|
|
614
|
-
return tr || (tr = 1, process.env.NODE_ENV === "production" ?
|
|
614
|
+
return tr || (tr = 1, process.env.NODE_ENV === "production" ? xe.exports = Br() : xe.exports = zr()), xe.exports;
|
|
615
615
|
}
|
|
616
|
-
var v = Hr(),
|
|
617
|
-
function
|
|
616
|
+
var v = Hr(), _e = (e) => `--${e}`, nr = (e) => `var(--${e})`, ar = (e, t) => `--${e}: ${t};`;
|
|
617
|
+
function Ur(e, t) {
|
|
618
618
|
const n = (a) => t;
|
|
619
619
|
return {
|
|
620
620
|
b: () => `${n()}-${e}`,
|
|
@@ -629,20 +629,20 @@ function Wr(e, t) {
|
|
|
629
629
|
cbem: (a, i) => `.${n()}-${e}__${a}--${i}`,
|
|
630
630
|
cbs: (a) => `.${n()}-${e}-${a}`,
|
|
631
631
|
cns: (a) => `.${n()}-${a}`,
|
|
632
|
-
cv: (a) =>
|
|
632
|
+
cv: (a) => _e(`${n()}-${e}-${a}`),
|
|
633
633
|
cvm: (a, i = {}) => {
|
|
634
634
|
const c = n();
|
|
635
635
|
for (const h of Object.keys(a))
|
|
636
|
-
i[
|
|
636
|
+
i[_e(`${c}-${e}-${h}`)] = a[h];
|
|
637
637
|
return i;
|
|
638
638
|
},
|
|
639
639
|
gcv: (a) => nr(`${n()}-${e}-${a}`),
|
|
640
640
|
scv: (a, i) => ar(`${n()}-${e}-${a}`, i),
|
|
641
|
-
nv: (a) =>
|
|
641
|
+
nv: (a) => _e(`${n()}-${a}`),
|
|
642
642
|
nvm: (a, i = {}) => {
|
|
643
643
|
const c = n();
|
|
644
644
|
for (const h of Object.keys(a))
|
|
645
|
-
i[
|
|
645
|
+
i[_e(`${c}-${h}`)] = a[h];
|
|
646
646
|
return i;
|
|
647
647
|
},
|
|
648
648
|
gnv: (a) => nr(`${n()}-${a}`),
|
|
@@ -650,14 +650,14 @@ function Wr(e, t) {
|
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
652
|
function U(e) {
|
|
653
|
-
return
|
|
653
|
+
return K(() => Ur(e, "twist"), [e]);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ne(e, t) {
|
|
656
656
|
if (!t.current) return 0;
|
|
657
657
|
let n = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
|
|
658
658
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function qe(e, t) {
|
|
661
661
|
if (!t.current) return 0;
|
|
662
662
|
let n = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
|
|
663
663
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
@@ -668,17 +668,17 @@ var dr = {
|
|
|
668
668
|
className: void 0,
|
|
669
669
|
style: void 0,
|
|
670
670
|
attrs: void 0
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
function
|
|
671
|
+
}, De = /* @__PURE__ */ re.createContext(dr);
|
|
672
|
+
De.Provider;
|
|
673
|
+
function le(e) {
|
|
674
674
|
"@babel/helpers - typeof";
|
|
675
|
-
return
|
|
675
|
+
return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
676
676
|
return typeof t;
|
|
677
677
|
} : function(t) {
|
|
678
678
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
679
|
-
},
|
|
679
|
+
}, le(e);
|
|
680
680
|
}
|
|
681
|
-
var
|
|
681
|
+
var Wr = ["attrs", "size", "title", "spin", "rotate", "color"];
|
|
682
682
|
function Yr(e, t) {
|
|
683
683
|
return Jr(e) || Kr(e, t) || vr(e, t) || Gr();
|
|
684
684
|
}
|
|
@@ -751,14 +751,14 @@ function ir(e, t) {
|
|
|
751
751
|
for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
|
|
752
752
|
return a;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
754
|
+
function Te() {
|
|
755
|
+
return Te = Object.assign ? Object.assign.bind() : function(e) {
|
|
756
756
|
for (var t = 1; t < arguments.length; t++) {
|
|
757
757
|
var n = arguments[t];
|
|
758
758
|
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
759
759
|
}
|
|
760
760
|
return e;
|
|
761
|
-
},
|
|
761
|
+
}, Te.apply(null, arguments);
|
|
762
762
|
}
|
|
763
763
|
function or(e, t) {
|
|
764
764
|
var n = Object.keys(e);
|
|
@@ -770,7 +770,7 @@ function or(e, t) {
|
|
|
770
770
|
}
|
|
771
771
|
return n;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function ce(e) {
|
|
774
774
|
for (var t = 1; t < arguments.length; t++) {
|
|
775
775
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
776
776
|
t % 2 ? or(Object(n), !0).forEach(function(a) {
|
|
@@ -786,14 +786,14 @@ function Qr(e, t, n) {
|
|
|
786
786
|
}
|
|
787
787
|
function Zr(e) {
|
|
788
788
|
var t = et(e, "string");
|
|
789
|
-
return
|
|
789
|
+
return le(t) == "symbol" ? t : t + "";
|
|
790
790
|
}
|
|
791
791
|
function et(e, t) {
|
|
792
|
-
if (
|
|
792
|
+
if (le(e) != "object" || !e) return e;
|
|
793
793
|
var n = e[Symbol.toPrimitive];
|
|
794
794
|
if (n !== void 0) {
|
|
795
795
|
var a = n.call(e, t);
|
|
796
|
-
if (
|
|
796
|
+
if (le(a) != "object") return a;
|
|
797
797
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
798
798
|
}
|
|
799
799
|
return (t === "string" ? String : Number)(e);
|
|
@@ -817,22 +817,22 @@ function tt(e, t) {
|
|
|
817
817
|
return n;
|
|
818
818
|
}
|
|
819
819
|
function nt(e) {
|
|
820
|
-
var t = e.attrs, n = e.size, a = e.title, i = e.spin, c = e.rotate, h = e.color, b = rt(e,
|
|
820
|
+
var t = e.attrs, n = e.size, a = e.title, i = e.spin, c = e.rotate, h = e.color, b = rt(e, Wr), s = function(g) {
|
|
821
821
|
var p = n || g.size || "1em", f, l = "", _ = "";
|
|
822
|
-
return g.className && (f = g.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), c && (l = "rotate(".concat(c, "deg)"), _ = "rotate(".concat(c, "deg)")), /* @__PURE__ */
|
|
822
|
+
return g.className && (f = g.className), e.className && (f = f ? "".concat(f, " ").concat(e.className) : e.className), i && (f ? f += " twist-icon-loading" : f = "twist-icon-loading"), c && (l = "rotate(".concat(c, "deg)"), _ = "rotate(".concat(c, "deg)")), /* @__PURE__ */ re.createElement("svg", Te({
|
|
823
823
|
xmlns: "http://www.w3.org/2000/svg"
|
|
824
824
|
}, g.attrs, t, b, {
|
|
825
825
|
className: f,
|
|
826
|
-
style:
|
|
826
|
+
style: ce(ce({
|
|
827
827
|
color: h || g.color,
|
|
828
828
|
msTransform: l,
|
|
829
829
|
transform: _
|
|
830
830
|
}, g.style), e.style),
|
|
831
831
|
width: p,
|
|
832
832
|
height: p
|
|
833
|
-
}), a && /* @__PURE__ */
|
|
833
|
+
}), a && /* @__PURE__ */ re.createElement("title", null, a), e.children);
|
|
834
834
|
};
|
|
835
|
-
return
|
|
835
|
+
return De !== void 0 ? /* @__PURE__ */ re.createElement(De.Consumer, null, function(d) {
|
|
836
836
|
return s(d);
|
|
837
837
|
}) : s(dr);
|
|
838
838
|
}
|
|
@@ -857,7 +857,7 @@ function at(e) {
|
|
|
857
857
|
}
|
|
858
858
|
function mr(e) {
|
|
859
859
|
return e && e.map(function(t, n) {
|
|
860
|
-
return /* @__PURE__ */
|
|
860
|
+
return /* @__PURE__ */ re.createElement(t.tag, ce(ce({}, t.attrs), {}, {
|
|
861
861
|
key: n,
|
|
862
862
|
style: t.attrs.style ? at(t.attrs.style) : null
|
|
863
863
|
}), mr(t.children));
|
|
@@ -865,8 +865,8 @@ function mr(e) {
|
|
|
865
865
|
}
|
|
866
866
|
function q(e) {
|
|
867
867
|
return function(t) {
|
|
868
|
-
return /* @__PURE__ */
|
|
869
|
-
attrs:
|
|
868
|
+
return /* @__PURE__ */ re.createElement(nt, Te({
|
|
869
|
+
attrs: ce({}, e.attrs)
|
|
870
870
|
}, t), mr(e.children));
|
|
871
871
|
};
|
|
872
872
|
}
|
|
@@ -894,21 +894,21 @@ function ut({
|
|
|
894
894
|
playedPercentage: t,
|
|
895
895
|
onSeek: n
|
|
896
896
|
}) {
|
|
897
|
-
const a = U("aplayer-bar"), i = U("aplayer-icon"), c =
|
|
897
|
+
const a = U("aplayer-bar"), i = U("aplayer-icon"), c = I(null), [h, b] = H(t), s = I(!1);
|
|
898
898
|
D(() => {
|
|
899
899
|
s.current || b(t);
|
|
900
900
|
}, [t]);
|
|
901
901
|
const d = L(
|
|
902
902
|
(g) => {
|
|
903
903
|
s.current = !0;
|
|
904
|
-
const p =
|
|
904
|
+
const p = Ne(g, c);
|
|
905
905
|
b(p);
|
|
906
906
|
const f = (_) => {
|
|
907
|
-
const o =
|
|
907
|
+
const o = Ne(_, c);
|
|
908
908
|
b(o);
|
|
909
909
|
}, l = (_) => {
|
|
910
910
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", l);
|
|
911
|
-
const o =
|
|
911
|
+
const o = Ne(_, c);
|
|
912
912
|
b(o), n == null || n(o), s.current = !1;
|
|
913
913
|
};
|
|
914
914
|
document.addEventListener("mousemove", f), document.addEventListener("mouseup", l);
|
|
@@ -988,13 +988,13 @@ function pt({
|
|
|
988
988
|
onToggleMuted: n,
|
|
989
989
|
onChangeVolume: a
|
|
990
990
|
}) {
|
|
991
|
-
const i = U("aplayer-volumn"), c = U("aplayer-icon"), h =
|
|
991
|
+
const i = U("aplayer-volumn"), c = U("aplayer-icon"), h = I(null), [b, s] = H(!1), d = L(
|
|
992
992
|
(g) => {
|
|
993
|
-
a(
|
|
993
|
+
a(qe(g, h)), s(!0);
|
|
994
994
|
const p = (l) => {
|
|
995
|
-
a(
|
|
995
|
+
a(qe(l, h));
|
|
996
996
|
}, f = (l) => {
|
|
997
|
-
document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", p), s(!1), a(
|
|
997
|
+
document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", p), s(!1), a(qe(l, h));
|
|
998
998
|
};
|
|
999
999
|
document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
|
|
1000
1000
|
},
|
|
@@ -1076,21 +1076,21 @@ function St({
|
|
|
1076
1076
|
onSkipForward: o,
|
|
1077
1077
|
onSkipBack: y,
|
|
1078
1078
|
showLyrics: E = !0,
|
|
1079
|
-
onToggleLyrics:
|
|
1079
|
+
onToggleLyrics: O
|
|
1080
1080
|
}) {
|
|
1081
|
-
const T = U("aplayer-controller"), A = U("aplayer-icon"),
|
|
1082
|
-
const
|
|
1081
|
+
const T = U("aplayer-controller"), A = U("aplayer-icon"), te = L(() => {
|
|
1082
|
+
const B = {
|
|
1083
1083
|
list: "random",
|
|
1084
1084
|
random: "list"
|
|
1085
1085
|
}[s];
|
|
1086
|
-
d(
|
|
1087
|
-
}, [s, d]),
|
|
1088
|
-
const
|
|
1086
|
+
d(B);
|
|
1087
|
+
}, [s, d]), W = L(() => {
|
|
1088
|
+
const B = {
|
|
1089
1089
|
all: "one",
|
|
1090
1090
|
one: "none",
|
|
1091
1091
|
none: "all"
|
|
1092
1092
|
}[g];
|
|
1093
|
-
p(
|
|
1093
|
+
p(B);
|
|
1094
1094
|
}, [g, p]);
|
|
1095
1095
|
return /* @__PURE__ */ v.jsxs(
|
|
1096
1096
|
"div",
|
|
@@ -1104,7 +1104,7 @@ function St({
|
|
|
1104
1104
|
{
|
|
1105
1105
|
playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
|
|
1106
1106
|
bufferedPercentage: typeof c > "u" || typeof i > "u" ? void 0 : c / i,
|
|
1107
|
-
onSeek: (
|
|
1107
|
+
onSeek: (B) => f == null ? void 0 : f(B * i)
|
|
1108
1108
|
}
|
|
1109
1109
|
),
|
|
1110
1110
|
/* @__PURE__ */ v.jsxs("div", { className: T.be("time"), children: [
|
|
@@ -1156,7 +1156,7 @@ function St({
|
|
|
1156
1156
|
"button",
|
|
1157
1157
|
{
|
|
1158
1158
|
className: $(A.b(), A.bs("order")),
|
|
1159
|
-
onClick:
|
|
1159
|
+
onClick: te,
|
|
1160
1160
|
type: "button",
|
|
1161
1161
|
"aria-label": `Playback order: ${s}`,
|
|
1162
1162
|
children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(_t, {}) }[s]
|
|
@@ -1166,7 +1166,7 @@ function St({
|
|
|
1166
1166
|
"button",
|
|
1167
1167
|
{
|
|
1168
1168
|
className: $(A.b(), A.bs("order")),
|
|
1169
|
-
onClick:
|
|
1169
|
+
onClick: W,
|
|
1170
1170
|
type: "button",
|
|
1171
1171
|
"aria-label": `Loop mode: ${g}`,
|
|
1172
1172
|
children: {
|
|
@@ -1193,7 +1193,7 @@ function St({
|
|
|
1193
1193
|
className: $(A.b(), A.bs("lrc"), {
|
|
1194
1194
|
[A.ns("lrc-inactivity")]: !E
|
|
1195
1195
|
}),
|
|
1196
|
-
onClick:
|
|
1196
|
+
onClick: O,
|
|
1197
1197
|
"aria-label": E ? "Hide lyrics" : "Show lyrics",
|
|
1198
1198
|
"aria-pressed": E,
|
|
1199
1199
|
children: /* @__PURE__ */ v.jsx(lt, {})
|
|
@@ -1211,7 +1211,7 @@ function Tt({
|
|
|
1211
1211
|
onPlayAudio: a,
|
|
1212
1212
|
listMaxHeight: i
|
|
1213
1213
|
}) {
|
|
1214
|
-
const c = U("aplayer-list"), h = i ? { maxHeight: i } : void 0, b = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s =
|
|
1214
|
+
const c = U("aplayer-list"), h = i ? { maxHeight: i } : void 0, b = L((d) => d ? typeof d == "string" ? d : d.name ?? "Audio artist" : "Audio artist", []), s = I(null);
|
|
1215
1215
|
return D(() => {
|
|
1216
1216
|
if (s.current) {
|
|
1217
1217
|
const d = s.current;
|
|
@@ -1255,14 +1255,14 @@ function Tt({
|
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
1257
|
function sr({ show: e, lrcText: t, currentTime: n }) {
|
|
1258
|
-
const a = U("aplayer-lrc"), i =
|
|
1258
|
+
const a = U("aplayer-lrc"), i = K(() => wt(t), [t]), c = K(() => {
|
|
1259
1259
|
for (let b = 0; b < i.length; b++) {
|
|
1260
1260
|
const s = i[b], d = i[b + 1];
|
|
1261
1261
|
if (n >= s[0] && (!d || n < d[0]))
|
|
1262
1262
|
return b;
|
|
1263
1263
|
}
|
|
1264
1264
|
return 0;
|
|
1265
|
-
}, [n, i]), h =
|
|
1265
|
+
}, [n, i]), h = K(() => ({
|
|
1266
1266
|
transform: `translateY(${-c * 16}px)`,
|
|
1267
1267
|
WebkitTransform: `translateY(${-c * 16}px)`
|
|
1268
1268
|
}), [c]);
|
|
@@ -1305,7 +1305,7 @@ function wt(e) {
|
|
|
1305
1305
|
} else
|
|
1306
1306
|
return [];
|
|
1307
1307
|
}
|
|
1308
|
-
var
|
|
1308
|
+
var Se = { exports: {} }, Me = {};
|
|
1309
1309
|
/**
|
|
1310
1310
|
* @license React
|
|
1311
1311
|
* use-sync-external-store-shim.production.js
|
|
@@ -1317,9 +1317,9 @@ var xe = { exports: {} }, qe = {};
|
|
|
1317
1317
|
*/
|
|
1318
1318
|
var lr;
|
|
1319
1319
|
function jt() {
|
|
1320
|
-
if (lr) return
|
|
1320
|
+
if (lr) return Me;
|
|
1321
1321
|
lr = 1;
|
|
1322
|
-
var e =
|
|
1322
|
+
var e = we;
|
|
1323
1323
|
function t(p, f) {
|
|
1324
1324
|
return p === f && (p !== 0 || 1 / p === 1 / f) || p !== p && f !== f;
|
|
1325
1325
|
}
|
|
@@ -1354,9 +1354,9 @@ function jt() {
|
|
|
1354
1354
|
return f();
|
|
1355
1355
|
}
|
|
1356
1356
|
var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : b;
|
|
1357
|
-
return
|
|
1357
|
+
return Me.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, Me;
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var ke = {};
|
|
1360
1360
|
/**
|
|
1361
1361
|
* @license React
|
|
1362
1362
|
* use-sync-external-store-shim.development.js
|
|
@@ -1386,16 +1386,16 @@ function Ot() {
|
|
|
1386
1386
|
y = h({
|
|
1387
1387
|
inst: { value: o, getSnapshot: _ }
|
|
1388
1388
|
});
|
|
1389
|
-
var E = y[0].inst,
|
|
1389
|
+
var E = y[0].inst, O = y[1];
|
|
1390
1390
|
return s(
|
|
1391
1391
|
function() {
|
|
1392
|
-
E.value = o, E.getSnapshot = _, n(E) &&
|
|
1392
|
+
E.value = o, E.getSnapshot = _, n(E) && O({ inst: E });
|
|
1393
1393
|
},
|
|
1394
1394
|
[l, o, _]
|
|
1395
1395
|
), b(
|
|
1396
1396
|
function() {
|
|
1397
|
-
return n(E) &&
|
|
1398
|
-
n(E) &&
|
|
1397
|
+
return n(E) && O({ inst: E }), l(function() {
|
|
1398
|
+
n(E) && O({ inst: E });
|
|
1399
1399
|
});
|
|
1400
1400
|
},
|
|
1401
1401
|
[l]
|
|
@@ -1415,22 +1415,22 @@ function Ot() {
|
|
|
1415
1415
|
return _();
|
|
1416
1416
|
}
|
|
1417
1417
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1418
|
-
var i =
|
|
1419
|
-
|
|
1420
|
-
}()),
|
|
1418
|
+
var i = we, c = typeof Object.is == "function" ? Object.is : e, h = i.useState, b = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, g = !1, p = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
|
1419
|
+
ke.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1420
|
+
}()), ke;
|
|
1421
1421
|
}
|
|
1422
1422
|
var fr;
|
|
1423
1423
|
function Rt() {
|
|
1424
|
-
return fr || (fr = 1, process.env.NODE_ENV === "production" ?
|
|
1424
|
+
return fr || (fr = 1, process.env.NODE_ENV === "production" ? Se.exports = jt() : Se.exports = Ot()), Se.exports;
|
|
1425
1425
|
}
|
|
1426
|
-
var
|
|
1427
|
-
const
|
|
1426
|
+
var G = Rt();
|
|
1427
|
+
const ee = [];
|
|
1428
1428
|
function Pt(e) {
|
|
1429
|
-
const t =
|
|
1429
|
+
const t = I();
|
|
1430
1430
|
return D(() => {
|
|
1431
1431
|
if (typeof window < "u" && !t.current) {
|
|
1432
1432
|
const n = t.current = document.createElement("audio");
|
|
1433
|
-
typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume),
|
|
1433
|
+
typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), ee.includes(n) || ee.push(n);
|
|
1434
1434
|
}
|
|
1435
1435
|
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), D(() => {
|
|
1436
1436
|
if (typeof window > "u") return;
|
|
@@ -1450,16 +1450,16 @@ function Pt(e) {
|
|
|
1450
1450
|
const n = t.current;
|
|
1451
1451
|
if (n) {
|
|
1452
1452
|
n.pause(), n.currentTime = 0;
|
|
1453
|
-
const a =
|
|
1454
|
-
a !== -1 &&
|
|
1453
|
+
const a = ee.indexOf(n);
|
|
1454
|
+
a !== -1 && ee.splice(a, 1);
|
|
1455
1455
|
}
|
|
1456
1456
|
t.current = void 0;
|
|
1457
1457
|
}, []), t;
|
|
1458
1458
|
}
|
|
1459
1459
|
function Lt(e) {
|
|
1460
1460
|
const t = Pt(e), n = L((o) => {
|
|
1461
|
-
for (let y = 0; y <
|
|
1462
|
-
const E =
|
|
1461
|
+
for (let y = 0; y < ee.length; y++) {
|
|
1462
|
+
const E = ee[y];
|
|
1463
1463
|
E !== o && !E.paused && E.pause();
|
|
1464
1464
|
}
|
|
1465
1465
|
}, []), a = L(
|
|
@@ -1493,7 +1493,7 @@ function Lt(e) {
|
|
|
1493
1493
|
t.current && (t.current.volume = o);
|
|
1494
1494
|
},
|
|
1495
1495
|
[t]
|
|
1496
|
-
), s =
|
|
1496
|
+
), s = G.useSyncExternalStore(
|
|
1497
1497
|
L(
|
|
1498
1498
|
(o) => {
|
|
1499
1499
|
var y;
|
|
@@ -1516,7 +1516,7 @@ function Lt(e) {
|
|
|
1516
1516
|
},
|
|
1517
1517
|
() => {
|
|
1518
1518
|
}
|
|
1519
|
-
), d =
|
|
1519
|
+
), d = G.useSyncExternalStore(
|
|
1520
1520
|
L(
|
|
1521
1521
|
(o) => {
|
|
1522
1522
|
var y;
|
|
@@ -1539,7 +1539,7 @@ function Lt(e) {
|
|
|
1539
1539
|
},
|
|
1540
1540
|
() => {
|
|
1541
1541
|
}
|
|
1542
|
-
), g =
|
|
1542
|
+
), g = G.useSyncExternalStore(
|
|
1543
1543
|
L(
|
|
1544
1544
|
(o) => {
|
|
1545
1545
|
var y;
|
|
@@ -1559,7 +1559,7 @@ function Lt(e) {
|
|
|
1559
1559
|
},
|
|
1560
1560
|
() => {
|
|
1561
1561
|
}
|
|
1562
|
-
), p =
|
|
1562
|
+
), p = G.useSyncExternalStore(
|
|
1563
1563
|
L(
|
|
1564
1564
|
(o) => {
|
|
1565
1565
|
var y;
|
|
@@ -1582,7 +1582,7 @@ function Lt(e) {
|
|
|
1582
1582
|
},
|
|
1583
1583
|
() => {
|
|
1584
1584
|
}
|
|
1585
|
-
), f =
|
|
1585
|
+
), f = G.useSyncExternalStore(
|
|
1586
1586
|
L(
|
|
1587
1587
|
(o) => {
|
|
1588
1588
|
var y;
|
|
@@ -1602,13 +1602,13 @@ function Lt(e) {
|
|
|
1602
1602
|
},
|
|
1603
1603
|
() => {
|
|
1604
1604
|
}
|
|
1605
|
-
), l =
|
|
1605
|
+
), l = G.useSyncExternalStore(
|
|
1606
1606
|
L(
|
|
1607
1607
|
(o) => {
|
|
1608
1608
|
var y, E;
|
|
1609
1609
|
return (y = t.current) == null || y.addEventListener("play", o), (E = t.current) == null || E.addEventListener("pause", o), () => {
|
|
1610
|
-
var
|
|
1611
|
-
(
|
|
1610
|
+
var O, T;
|
|
1611
|
+
(O = t.current) == null || O.removeEventListener("play", o), (T = t.current) == null || T.removeEventListener("pause", o);
|
|
1612
1612
|
};
|
|
1613
1613
|
},
|
|
1614
1614
|
[t]
|
|
@@ -1619,13 +1619,13 @@ function Lt(e) {
|
|
|
1619
1619
|
},
|
|
1620
1620
|
() => {
|
|
1621
1621
|
}
|
|
1622
|
-
), _ =
|
|
1622
|
+
), _ = G.useSyncExternalStore(
|
|
1623
1623
|
L(
|
|
1624
1624
|
(o) => {
|
|
1625
1625
|
var y, E;
|
|
1626
1626
|
return (y = t.current) == null || y.addEventListener("playing", o), (E = t.current) == null || E.addEventListener("waiting", o), () => {
|
|
1627
|
-
var
|
|
1628
|
-
(
|
|
1627
|
+
var O, T;
|
|
1628
|
+
(O = t.current) == null || O.removeEventListener(
|
|
1629
1629
|
"playing",
|
|
1630
1630
|
o
|
|
1631
1631
|
), (T = t.current) == null || T.removeEventListener(
|
|
@@ -1659,7 +1659,7 @@ function Lt(e) {
|
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
1661
|
function yr() {
|
|
1662
|
-
const e =
|
|
1662
|
+
const e = I([]);
|
|
1663
1663
|
return D(() => {
|
|
1664
1664
|
const n = e.current;
|
|
1665
1665
|
return () => {
|
|
@@ -1672,7 +1672,7 @@ function yr() {
|
|
|
1672
1672
|
}, []);
|
|
1673
1673
|
}
|
|
1674
1674
|
function $t() {
|
|
1675
|
-
const e =
|
|
1675
|
+
const e = I(), [t, n] = H({ text: "", style: { opacity: 0 } }), a = yr(), i = L(
|
|
1676
1676
|
(c, h = 2e3) => {
|
|
1677
1677
|
e.current && clearTimeout(e.current), n({ text: c, style: { opacity: 1 } }), e.current = a(() => {
|
|
1678
1678
|
n({ text: c, style: { opacity: 0 } });
|
|
@@ -1699,14 +1699,14 @@ function Nt(e, {
|
|
|
1699
1699
|
initialOrder: n = "list",
|
|
1700
1700
|
getSongId: a
|
|
1701
1701
|
}) {
|
|
1702
|
-
const [i, c] =
|
|
1702
|
+
const [i, c] = H(t), [h, b] = H(n), s = K(() => h === "list" ? e : Ct(e), [e, h]), [d, g] = H(s[0]);
|
|
1703
1703
|
D(() => {
|
|
1704
1704
|
const o = s.find(
|
|
1705
1705
|
(y) => a(y) === a(d)
|
|
1706
1706
|
);
|
|
1707
1707
|
g(o || s[0]);
|
|
1708
1708
|
}, [s, a, d]);
|
|
1709
|
-
const p =
|
|
1709
|
+
const p = K(() => {
|
|
1710
1710
|
if (i === "one")
|
|
1711
1711
|
return { ...d };
|
|
1712
1712
|
const o = s.indexOf(d);
|
|
@@ -1715,7 +1715,7 @@ function Nt(e, {
|
|
|
1715
1715
|
if (i !== "none") return s[0];
|
|
1716
1716
|
}, [s, d, i]), f = L(() => {
|
|
1717
1717
|
p && g(p);
|
|
1718
|
-
}, [p
|
|
1718
|
+
}, [p]), l = L(() => {
|
|
1719
1719
|
g((o) => {
|
|
1720
1720
|
const y = s.indexOf(o);
|
|
1721
1721
|
return y > 0 ? s[y - 1] : o;
|
|
@@ -1756,21 +1756,21 @@ function Dt({
|
|
|
1756
1756
|
theme: g = "light",
|
|
1757
1757
|
border: p = !1
|
|
1758
1758
|
}) {
|
|
1759
|
-
var
|
|
1759
|
+
var ae, ie, oe;
|
|
1760
1760
|
const f = U("aplayer"), l = Nt(Array.isArray(e) ? e : [e], {
|
|
1761
1761
|
initialLoop: a,
|
|
1762
1762
|
initialOrder: i,
|
|
1763
|
-
getSongId: (
|
|
1764
|
-
}), [_, o] = $t(), y = yr(), E =
|
|
1763
|
+
getSongId: (j) => j.url
|
|
1764
|
+
}), [_, o] = $t(), y = yr(), E = I(), O = L(() => {
|
|
1765
1765
|
E.current && (clearTimeout(E.current), E.current = void 0);
|
|
1766
1766
|
}, []), T = Lt({
|
|
1767
1767
|
src: l.currentSong.url,
|
|
1768
1768
|
initialVolume: n,
|
|
1769
1769
|
autoPlay: c,
|
|
1770
1770
|
mutex: s,
|
|
1771
|
-
onError(
|
|
1772
|
-
const { error:
|
|
1773
|
-
|
|
1771
|
+
onError(j) {
|
|
1772
|
+
const { error: he } = j.target;
|
|
1773
|
+
he && o(
|
|
1774
1774
|
"An audio error has occurred, player will skip forward in 2 seconds."
|
|
1775
1775
|
), l.hasNextSong && (E.current = y(() => {
|
|
1776
1776
|
l.next();
|
|
@@ -1779,32 +1779,36 @@ function Dt({
|
|
|
1779
1779
|
onEnded() {
|
|
1780
1780
|
l.hasNextSong && l.next();
|
|
1781
1781
|
}
|
|
1782
|
-
})
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
}, []);
|
|
1786
|
-
const A = F(!0);
|
|
1787
|
-
D(() => {
|
|
1788
|
-
A.current ? A.current = !1 : l.currentSong && T.playAudio(l.currentSong.url);
|
|
1789
|
-
}, [l.currentSong, T.playAudio]);
|
|
1790
|
-
const K = L(() => {
|
|
1791
|
-
j(), T.togglePlay(l.currentSong.url);
|
|
1792
|
-
}, [T, j, l.currentSong.url]), re = L((R) => R ? typeof R == "string" ? R : R.url ? /* @__PURE__ */ v.jsx("a", { href: R.url, target: "_blank", rel: "noreferrer", children: R.name ?? "Audio artist" }) : R.name ?? "Audio artist" : "Audio artist", []), V = l.length > 1, Te = G(
|
|
1782
|
+
}), A = L(() => {
|
|
1783
|
+
O(), T.togglePlay(l.currentSong.url);
|
|
1784
|
+
}, [T, O, l.currentSong.url]), te = L((j) => j ? typeof j == "string" ? j : j.url ? /* @__PURE__ */ v.jsx("a", { href: j.url, target: "_blank", rel: "noreferrer", children: j.name ?? "Audio artist" }) : j.name ?? "Audio artist" : "Audio artist", []), W = l.length > 1, B = K(
|
|
1793
1785
|
() => Array.isArray(e) ? e : [e],
|
|
1794
1786
|
[e]
|
|
1795
|
-
), { prioritize:
|
|
1796
|
-
(
|
|
1797
|
-
|
|
1787
|
+
), { prioritize: fe } = l, de = L(
|
|
1788
|
+
(j) => {
|
|
1789
|
+
O(), fe(j);
|
|
1798
1790
|
},
|
|
1799
|
-
[
|
|
1800
|
-
), [
|
|
1801
|
-
|
|
1802
|
-
|
|
1791
|
+
[O, fe]
|
|
1792
|
+
), [ve, je] = H(() => W && !d), [me, F] = H(b), [V, Y] = H(!0), J = I(null);
|
|
1793
|
+
D(() => {
|
|
1794
|
+
F(b);
|
|
1803
1795
|
}, [b]), D(() => {
|
|
1796
|
+
c && T.playAudio(l.currentSong.url);
|
|
1797
|
+
}, []);
|
|
1798
|
+
const X = I(null), ne = I(!0);
|
|
1799
|
+
return D(() => {
|
|
1800
|
+
if (!l.currentSong) return;
|
|
1801
|
+
const j = l.currentSong.url;
|
|
1802
|
+
if (ne.current) {
|
|
1803
|
+
ne.current = !1, X.current = j;
|
|
1804
|
+
return;
|
|
1805
|
+
}
|
|
1806
|
+
(l.loop === "one" || j !== X.current) && (T.playAudio(j), X.current = j);
|
|
1807
|
+
}, [l.currentSong, l.loop]), D(() => {
|
|
1804
1808
|
if (t === "fixed" && J.current) {
|
|
1805
|
-
const
|
|
1806
|
-
return
|
|
1807
|
-
|
|
1809
|
+
const j = J.current;
|
|
1810
|
+
return j.style.width = `${j.offsetWidth - 18}px`, () => {
|
|
1811
|
+
j.removeAttribute("style");
|
|
1808
1812
|
};
|
|
1809
1813
|
}
|
|
1810
1814
|
}, [t]), /* @__PURE__ */ v.jsxs(
|
|
@@ -1815,10 +1819,10 @@ function Dt({
|
|
|
1815
1819
|
[f.bs("vars")]: !0,
|
|
1816
1820
|
[f.bm(t)]: !0,
|
|
1817
1821
|
[f.bm("loading")]: T.isLoading,
|
|
1818
|
-
[f.bm("withlist")]:
|
|
1819
|
-
[f.bm("list-folded")]: !
|
|
1822
|
+
[f.bm("withlist")]: W,
|
|
1823
|
+
[f.bm("list-folded")]: !ve,
|
|
1820
1824
|
[f.bm("withlrc")]: !!l.currentSong.lrc && t !== "fixed",
|
|
1821
|
-
[f.bm("narrow")]:
|
|
1825
|
+
[f.bm("narrow")]: me,
|
|
1822
1826
|
[f.bm("border")]: p
|
|
1823
1827
|
}),
|
|
1824
1828
|
role: "region",
|
|
@@ -1834,9 +1838,9 @@ function Dt({
|
|
|
1834
1838
|
"div",
|
|
1835
1839
|
{
|
|
1836
1840
|
className: f.be("pic"),
|
|
1837
|
-
onClick:
|
|
1841
|
+
onClick: A,
|
|
1838
1842
|
style: {
|
|
1839
|
-
backgroundImage: `url("${(
|
|
1843
|
+
backgroundImage: `url("${(ae = l.currentSong) == null ? void 0 : ae.cover}")`
|
|
1840
1844
|
},
|
|
1841
1845
|
role: "button",
|
|
1842
1846
|
"aria-label": T.isPlaying ? "Pause audio" : "Play audio",
|
|
@@ -1855,18 +1859,18 @@ function Dt({
|
|
|
1855
1859
|
),
|
|
1856
1860
|
/* @__PURE__ */ v.jsxs("div", { className: $(f.be("info")), children: [
|
|
1857
1861
|
/* @__PURE__ */ v.jsxs("div", { className: $(f.be("music")), children: [
|
|
1858
|
-
/* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((
|
|
1862
|
+
/* @__PURE__ */ v.jsx("span", { className: $(f.be("title")), children: ((ie = l.currentSong) == null ? void 0 : ie.name) ?? "Audio name" }),
|
|
1859
1863
|
/* @__PURE__ */ v.jsxs("span", { className: $(f.be("author")), children: [
|
|
1860
1864
|
" ",
|
|
1861
1865
|
"-",
|
|
1862
1866
|
" ",
|
|
1863
|
-
|
|
1867
|
+
te((oe = l.currentSong) == null ? void 0 : oe.artist)
|
|
1864
1868
|
] })
|
|
1865
1869
|
] }),
|
|
1866
1870
|
t === "fixed" ? null : /* @__PURE__ */ v.jsx(
|
|
1867
1871
|
sr,
|
|
1868
1872
|
{
|
|
1869
|
-
show:
|
|
1873
|
+
show: V,
|
|
1870
1874
|
lrcText: l.currentSong.lrc,
|
|
1871
1875
|
currentTime: T.currentTime ?? 0
|
|
1872
1876
|
}
|
|
@@ -1881,23 +1885,23 @@ function Dt({
|
|
|
1881
1885
|
currentTime: T.currentTime,
|
|
1882
1886
|
audioDurationSeconds: T.duration,
|
|
1883
1887
|
bufferedSeconds: T.bufferedSeconds,
|
|
1884
|
-
onSeek: (
|
|
1885
|
-
onToggleMenu: () =>
|
|
1888
|
+
onSeek: (j) => T.seek(j),
|
|
1889
|
+
onToggleMenu: () => je((j) => !j),
|
|
1886
1890
|
order: l.order,
|
|
1887
1891
|
onOrderChange: l.setOrder,
|
|
1888
1892
|
loop: l.loop,
|
|
1889
1893
|
onLoopChange: l.setLoop,
|
|
1890
1894
|
isPlaying: T.isPlaying ?? !1,
|
|
1891
|
-
onTogglePlay:
|
|
1895
|
+
onTogglePlay: A,
|
|
1892
1896
|
onSkipForward: () => {
|
|
1893
1897
|
l.hasNextSong && l.next();
|
|
1894
1898
|
},
|
|
1895
1899
|
onSkipBack: () => {
|
|
1896
1900
|
l.previous();
|
|
1897
1901
|
},
|
|
1898
|
-
showLyrics:
|
|
1902
|
+
showLyrics: V,
|
|
1899
1903
|
onToggleLyrics: () => {
|
|
1900
|
-
|
|
1904
|
+
Y((j) => !j);
|
|
1901
1905
|
}
|
|
1902
1906
|
}
|
|
1903
1907
|
)
|
|
@@ -1907,27 +1911,27 @@ function Dt({
|
|
|
1907
1911
|
"div",
|
|
1908
1912
|
{
|
|
1909
1913
|
className: f.be("miniswitcher"),
|
|
1910
|
-
onClick: () =>
|
|
1914
|
+
onClick: () => F((j) => !j),
|
|
1911
1915
|
children: /* @__PURE__ */ v.jsx("button", { className: $(f.bs("icon"), f.bs("icon-right")), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
|
|
1912
1916
|
}
|
|
1913
1917
|
)
|
|
1914
1918
|
]
|
|
1915
1919
|
}
|
|
1916
1920
|
),
|
|
1917
|
-
|
|
1921
|
+
W ? /* @__PURE__ */ v.jsx(
|
|
1918
1922
|
Tt,
|
|
1919
1923
|
{
|
|
1920
|
-
open:
|
|
1921
|
-
audio:
|
|
1924
|
+
open: ve,
|
|
1925
|
+
audio: B,
|
|
1922
1926
|
playingAudioUrl: l.currentSong.url,
|
|
1923
|
-
onPlayAudio:
|
|
1927
|
+
onPlayAudio: de,
|
|
1924
1928
|
listMaxHeight: h
|
|
1925
1929
|
}
|
|
1926
1930
|
) : null,
|
|
1927
1931
|
t === "fixed" && /* @__PURE__ */ v.jsx(
|
|
1928
1932
|
sr,
|
|
1929
1933
|
{
|
|
1930
|
-
show:
|
|
1934
|
+
show: V,
|
|
1931
1935
|
lrcText: l.currentSong.lrc,
|
|
1932
1936
|
currentTime: T.currentTime ?? 0
|
|
1933
1937
|
}
|