@banou/media-player 0.0.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/README.md +13 -0
- package/build/chrome/bottom.d.ts +20 -0
- package/build/chrome/index.d.ts +26 -0
- package/build/chrome/overlay.d.ts +9 -0
- package/build/index.d.ts +48 -0
- package/build/index.js +2725 -0
- package/build/languages.d.ts +260 -0
- package/build/main.d.ts +1 -0
- package/build/mp4box.d.ts +61 -0
- package/build/use-local-storage.d.ts +6 -0
- package/build/use-scrub.d.ts +10 -0
- package/build/utils.d.ts +13 -0
- package/package.json +49 -0
- package/src/chrome/bottom.tsx +651 -0
- package/src/chrome/index.tsx +197 -0
- package/src/chrome/overlay.tsx +104 -0
- package/src/index.tsx +597 -0
- package/src/languages.ts +262 -0
- package/src/main.tsx +187 -0
- package/src/mp4box.ts +74 -0
- package/src/use-local-storage.ts +32 -0
- package/src/use-scrub.ts +39 -0
- package/src/utils.ts +385 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +26 -0
- package/tsconfig.node.json +9 -0
package/build/index.js
ADDED
|
@@ -0,0 +1,2725 @@
|
|
|
1
|
+
import * as ot from "react";
|
|
2
|
+
import Ct, { createContext as Rt, forwardRef as Tt, useContext as Pt, createElement as Ur, Fragment as Kt, useState as G, useEffect as ve, useRef as qe, useMemo as Wr } from "react";
|
|
3
|
+
import { css as Mr } from "@emotion/react";
|
|
4
|
+
import { createFile as qt } from "mp4box";
|
|
5
|
+
import { SEEK_WHENCE_FLAG as Rr, makeTransmuxer as Gt } from "libav-wasm";
|
|
6
|
+
import Ht from "jassub";
|
|
7
|
+
import rr from "react-tooltip";
|
|
8
|
+
import { VolumeX as it, Volume2 as Jt, Volume1 as Zt, Volume as Xt, AlertTriangle as Qt } from "react-feather";
|
|
9
|
+
import st from "p-queue";
|
|
10
|
+
function en(e) {
|
|
11
|
+
if (e.sheet)
|
|
12
|
+
return e.sheet;
|
|
13
|
+
for (var r = 0; r < document.styleSheets.length; r++)
|
|
14
|
+
if (document.styleSheets[r].ownerNode === e)
|
|
15
|
+
return document.styleSheets[r];
|
|
16
|
+
}
|
|
17
|
+
function rn(e) {
|
|
18
|
+
var r = document.createElement("style");
|
|
19
|
+
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
20
|
+
}
|
|
21
|
+
var tn = /* @__PURE__ */ function() {
|
|
22
|
+
function e(n) {
|
|
23
|
+
var a = this;
|
|
24
|
+
this._insertTag = function(o) {
|
|
25
|
+
var i;
|
|
26
|
+
a.tags.length === 0 ? a.insertionPoint ? i = a.insertionPoint.nextSibling : a.prepend ? i = a.container.firstChild : i = a.before : i = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(o, i), a.tags.push(o);
|
|
27
|
+
}, this.isSpeedy = n.speedy === void 0 ? process.env.NODE_ENV === "production" : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
|
|
28
|
+
}
|
|
29
|
+
var r = e.prototype;
|
|
30
|
+
return r.hydrate = function(a) {
|
|
31
|
+
a.forEach(this._insertTag);
|
|
32
|
+
}, r.insert = function(a) {
|
|
33
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(rn(this));
|
|
34
|
+
var o = this.tags[this.tags.length - 1];
|
|
35
|
+
if (process.env.NODE_ENV !== "production") {
|
|
36
|
+
var i = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
|
|
37
|
+
i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
|
|
38
|
+
` + a + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !i;
|
|
39
|
+
}
|
|
40
|
+
if (this.isSpeedy) {
|
|
41
|
+
var u = en(o);
|
|
42
|
+
try {
|
|
43
|
+
u.insertRule(a, u.cssRules.length);
|
|
44
|
+
} catch (f) {
|
|
45
|
+
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a) && console.error('There was a problem inserting the following rule: "' + a + '"', f);
|
|
46
|
+
}
|
|
47
|
+
} else
|
|
48
|
+
o.appendChild(document.createTextNode(a));
|
|
49
|
+
this.ctr++;
|
|
50
|
+
}, r.flush = function() {
|
|
51
|
+
this.tags.forEach(function(a) {
|
|
52
|
+
return a.parentNode && a.parentNode.removeChild(a);
|
|
53
|
+
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
54
|
+
}, e;
|
|
55
|
+
}(), le = "-ms-", $r = "-moz-", M = "-webkit-", Zr = "comm", Xr = "rule", Qr = "decl", nn = "@import", Ot = "@keyframes", an = Math.abs, Dr = String.fromCharCode, on = Object.assign;
|
|
56
|
+
function sn(e, r) {
|
|
57
|
+
return ie(e, 0) ^ 45 ? (((r << 2 ^ ie(e, 0)) << 2 ^ ie(e, 1)) << 2 ^ ie(e, 2)) << 2 ^ ie(e, 3) : 0;
|
|
58
|
+
}
|
|
59
|
+
function At(e) {
|
|
60
|
+
return e.trim();
|
|
61
|
+
}
|
|
62
|
+
function cn(e, r) {
|
|
63
|
+
return (e = r.exec(e)) ? e[0] : e;
|
|
64
|
+
}
|
|
65
|
+
function V(e, r, n) {
|
|
66
|
+
return e.replace(r, n);
|
|
67
|
+
}
|
|
68
|
+
function Kr(e, r) {
|
|
69
|
+
return e.indexOf(r);
|
|
70
|
+
}
|
|
71
|
+
function ie(e, r) {
|
|
72
|
+
return e.charCodeAt(r) | 0;
|
|
73
|
+
}
|
|
74
|
+
function br(e, r, n) {
|
|
75
|
+
return e.slice(r, n);
|
|
76
|
+
}
|
|
77
|
+
function Ie(e) {
|
|
78
|
+
return e.length;
|
|
79
|
+
}
|
|
80
|
+
function et(e) {
|
|
81
|
+
return e.length;
|
|
82
|
+
}
|
|
83
|
+
function Tr(e, r) {
|
|
84
|
+
return r.push(e), e;
|
|
85
|
+
}
|
|
86
|
+
function ln(e, r) {
|
|
87
|
+
return e.map(r).join("");
|
|
88
|
+
}
|
|
89
|
+
var Fr = 1, or = 1, It = 0, be = 0, re = 0, ir = "";
|
|
90
|
+
function jr(e, r, n, a, o, i, u) {
|
|
91
|
+
return { value: e, root: r, parent: n, type: a, props: o, children: i, line: Fr, column: or, length: u, return: "" };
|
|
92
|
+
}
|
|
93
|
+
function pr(e, r) {
|
|
94
|
+
return on(jr("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
95
|
+
}
|
|
96
|
+
function un() {
|
|
97
|
+
return re;
|
|
98
|
+
}
|
|
99
|
+
function fn() {
|
|
100
|
+
return re = be > 0 ? ie(ir, --be) : 0, or--, re === 10 && (or = 1, Fr--), re;
|
|
101
|
+
}
|
|
102
|
+
function we() {
|
|
103
|
+
return re = be < It ? ie(ir, be++) : 0, or++, re === 10 && (or = 1, Fr++), re;
|
|
104
|
+
}
|
|
105
|
+
function $e() {
|
|
106
|
+
return ie(ir, be);
|
|
107
|
+
}
|
|
108
|
+
function Or() {
|
|
109
|
+
return be;
|
|
110
|
+
}
|
|
111
|
+
function Nr(e, r) {
|
|
112
|
+
return br(ir, e, r);
|
|
113
|
+
}
|
|
114
|
+
function yr(e) {
|
|
115
|
+
switch (e) {
|
|
116
|
+
case 0:
|
|
117
|
+
case 9:
|
|
118
|
+
case 10:
|
|
119
|
+
case 13:
|
|
120
|
+
case 32:
|
|
121
|
+
return 5;
|
|
122
|
+
case 33:
|
|
123
|
+
case 43:
|
|
124
|
+
case 44:
|
|
125
|
+
case 47:
|
|
126
|
+
case 62:
|
|
127
|
+
case 64:
|
|
128
|
+
case 126:
|
|
129
|
+
case 59:
|
|
130
|
+
case 123:
|
|
131
|
+
case 125:
|
|
132
|
+
return 4;
|
|
133
|
+
case 58:
|
|
134
|
+
return 3;
|
|
135
|
+
case 34:
|
|
136
|
+
case 39:
|
|
137
|
+
case 40:
|
|
138
|
+
case 91:
|
|
139
|
+
return 2;
|
|
140
|
+
case 41:
|
|
141
|
+
case 93:
|
|
142
|
+
return 1;
|
|
143
|
+
}
|
|
144
|
+
return 0;
|
|
145
|
+
}
|
|
146
|
+
function $t(e) {
|
|
147
|
+
return Fr = or = 1, It = Ie(ir = e), be = 0, [];
|
|
148
|
+
}
|
|
149
|
+
function Lt(e) {
|
|
150
|
+
return ir = "", e;
|
|
151
|
+
}
|
|
152
|
+
function Ar(e) {
|
|
153
|
+
return At(Nr(be - 1, qr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
154
|
+
}
|
|
155
|
+
function dn(e) {
|
|
156
|
+
for (; (re = $e()) && re < 33; )
|
|
157
|
+
we();
|
|
158
|
+
return yr(e) > 2 || yr(re) > 3 ? "" : " ";
|
|
159
|
+
}
|
|
160
|
+
function mn(e, r) {
|
|
161
|
+
for (; --r && we() && !(re < 48 || re > 102 || re > 57 && re < 65 || re > 70 && re < 97); )
|
|
162
|
+
;
|
|
163
|
+
return Nr(e, Or() + (r < 6 && $e() == 32 && we() == 32));
|
|
164
|
+
}
|
|
165
|
+
function qr(e) {
|
|
166
|
+
for (; we(); )
|
|
167
|
+
switch (re) {
|
|
168
|
+
case e:
|
|
169
|
+
return be;
|
|
170
|
+
case 34:
|
|
171
|
+
case 39:
|
|
172
|
+
e !== 34 && e !== 39 && qr(re);
|
|
173
|
+
break;
|
|
174
|
+
case 40:
|
|
175
|
+
e === 41 && qr(e);
|
|
176
|
+
break;
|
|
177
|
+
case 92:
|
|
178
|
+
we();
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
return be;
|
|
182
|
+
}
|
|
183
|
+
function gn(e, r) {
|
|
184
|
+
for (; we() && e + re !== 47 + 10; )
|
|
185
|
+
if (e + re === 42 + 42 && $e() === 47)
|
|
186
|
+
break;
|
|
187
|
+
return "/*" + Nr(r, be - 1) + "*" + Dr(e === 47 ? e : we());
|
|
188
|
+
}
|
|
189
|
+
function pn(e) {
|
|
190
|
+
for (; !yr($e()); )
|
|
191
|
+
we();
|
|
192
|
+
return Nr(e, be);
|
|
193
|
+
}
|
|
194
|
+
function hn(e) {
|
|
195
|
+
return Lt(Ir("", null, null, null, [""], e = $t(e), 0, [0], e));
|
|
196
|
+
}
|
|
197
|
+
function Ir(e, r, n, a, o, i, u, f, g) {
|
|
198
|
+
for (var b = 0, d = 0, v = u, N = 0, S = 0, w = 0, y = 1, D = 1, x = 1, k = 0, P = "", $ = o, l = i, q = a, O = P; D; )
|
|
199
|
+
switch (w = k, k = we()) {
|
|
200
|
+
case 40:
|
|
201
|
+
if (w != 108 && ie(O, v - 1) == 58) {
|
|
202
|
+
Kr(O += V(Ar(k), "&", "&\f"), "&\f") != -1 && (x = -1);
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
case 34:
|
|
206
|
+
case 39:
|
|
207
|
+
case 91:
|
|
208
|
+
O += Ar(k);
|
|
209
|
+
break;
|
|
210
|
+
case 9:
|
|
211
|
+
case 10:
|
|
212
|
+
case 13:
|
|
213
|
+
case 32:
|
|
214
|
+
O += dn(w);
|
|
215
|
+
break;
|
|
216
|
+
case 92:
|
|
217
|
+
O += mn(Or() - 1, 7);
|
|
218
|
+
continue;
|
|
219
|
+
case 47:
|
|
220
|
+
switch ($e()) {
|
|
221
|
+
case 42:
|
|
222
|
+
case 47:
|
|
223
|
+
Tr(vn(gn(we(), Or()), r, n), g);
|
|
224
|
+
break;
|
|
225
|
+
default:
|
|
226
|
+
O += "/";
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
case 123 * y:
|
|
230
|
+
f[b++] = Ie(O) * x;
|
|
231
|
+
case 125 * y:
|
|
232
|
+
case 59:
|
|
233
|
+
case 0:
|
|
234
|
+
switch (k) {
|
|
235
|
+
case 0:
|
|
236
|
+
case 125:
|
|
237
|
+
D = 0;
|
|
238
|
+
case 59 + d:
|
|
239
|
+
S > 0 && Ie(O) - v && Tr(S > 32 ? lt(O + ";", a, n, v - 1) : lt(V(O, " ", "") + ";", a, n, v - 2), g);
|
|
240
|
+
break;
|
|
241
|
+
case 59:
|
|
242
|
+
O += ";";
|
|
243
|
+
default:
|
|
244
|
+
if (Tr(q = ct(O, r, n, b, d, o, f, P, $ = [], l = [], v), i), k === 123)
|
|
245
|
+
if (d === 0)
|
|
246
|
+
Ir(O, r, q, q, $, i, v, f, l);
|
|
247
|
+
else
|
|
248
|
+
switch (N === 99 && ie(O, 3) === 110 ? 100 : N) {
|
|
249
|
+
case 100:
|
|
250
|
+
case 109:
|
|
251
|
+
case 115:
|
|
252
|
+
Ir(e, q, q, a && Tr(ct(e, q, q, 0, 0, o, f, P, o, $ = [], v), l), o, l, v, f, a ? $ : l);
|
|
253
|
+
break;
|
|
254
|
+
default:
|
|
255
|
+
Ir(O, q, q, q, [""], l, 0, f, l);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
b = d = S = 0, y = x = 1, P = O = "", v = u;
|
|
259
|
+
break;
|
|
260
|
+
case 58:
|
|
261
|
+
v = 1 + Ie(O), S = w;
|
|
262
|
+
default:
|
|
263
|
+
if (y < 1) {
|
|
264
|
+
if (k == 123)
|
|
265
|
+
--y;
|
|
266
|
+
else if (k == 125 && y++ == 0 && fn() == 125)
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
switch (O += Dr(k), k * y) {
|
|
270
|
+
case 38:
|
|
271
|
+
x = d > 0 ? 1 : (O += "\f", -1);
|
|
272
|
+
break;
|
|
273
|
+
case 44:
|
|
274
|
+
f[b++] = (Ie(O) - 1) * x, x = 1;
|
|
275
|
+
break;
|
|
276
|
+
case 64:
|
|
277
|
+
$e() === 45 && (O += Ar(we())), N = $e(), d = v = Ie(P = O += pn(Or())), k++;
|
|
278
|
+
break;
|
|
279
|
+
case 45:
|
|
280
|
+
w === 45 && Ie(O) == 2 && (y = 0);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return i;
|
|
284
|
+
}
|
|
285
|
+
function ct(e, r, n, a, o, i, u, f, g, b, d) {
|
|
286
|
+
for (var v = o - 1, N = o === 0 ? i : [""], S = et(N), w = 0, y = 0, D = 0; w < a; ++w)
|
|
287
|
+
for (var x = 0, k = br(e, v + 1, v = an(y = u[w])), P = e; x < S; ++x)
|
|
288
|
+
(P = At(y > 0 ? N[x] + " " + k : V(k, /&\f/g, N[x]))) && (g[D++] = P);
|
|
289
|
+
return jr(e, r, n, o === 0 ? Xr : f, g, b, d);
|
|
290
|
+
}
|
|
291
|
+
function vn(e, r, n) {
|
|
292
|
+
return jr(e, r, n, Zr, Dr(un()), br(e, 2, -2), 0);
|
|
293
|
+
}
|
|
294
|
+
function lt(e, r, n, a) {
|
|
295
|
+
return jr(e, r, n, Qr, br(e, 0, a), br(e, a + 1, -1), a);
|
|
296
|
+
}
|
|
297
|
+
function ar(e, r) {
|
|
298
|
+
for (var n = "", a = et(e), o = 0; o < a; o++)
|
|
299
|
+
n += r(e[o], o, e, r) || "";
|
|
300
|
+
return n;
|
|
301
|
+
}
|
|
302
|
+
function bn(e, r, n, a) {
|
|
303
|
+
switch (e.type) {
|
|
304
|
+
case nn:
|
|
305
|
+
case Qr:
|
|
306
|
+
return e.return = e.return || e.value;
|
|
307
|
+
case Zr:
|
|
308
|
+
return "";
|
|
309
|
+
case Ot:
|
|
310
|
+
return e.return = e.value + "{" + ar(e.children, a) + "}";
|
|
311
|
+
case Xr:
|
|
312
|
+
e.value = e.props.join(",");
|
|
313
|
+
}
|
|
314
|
+
return Ie(n = ar(e.children, a)) ? e.return = e.value + "{" + n + "}" : "";
|
|
315
|
+
}
|
|
316
|
+
function yn(e) {
|
|
317
|
+
var r = et(e);
|
|
318
|
+
return function(n, a, o, i) {
|
|
319
|
+
for (var u = "", f = 0; f < r; f++)
|
|
320
|
+
u += e[f](n, a, o, i) || "";
|
|
321
|
+
return u;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
function En(e) {
|
|
325
|
+
return function(r) {
|
|
326
|
+
r.root || (r = r.return) && e(r);
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function wn(e) {
|
|
330
|
+
var r = /* @__PURE__ */ Object.create(null);
|
|
331
|
+
return function(n) {
|
|
332
|
+
return r[n] === void 0 && (r[n] = e(n)), r[n];
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
var Nn = function(r, n, a) {
|
|
336
|
+
for (var o = 0, i = 0; o = i, i = $e(), o === 38 && i === 12 && (n[a] = 1), !yr(i); )
|
|
337
|
+
we();
|
|
338
|
+
return Nr(r, be);
|
|
339
|
+
}, kn = function(r, n) {
|
|
340
|
+
var a = -1, o = 44;
|
|
341
|
+
do
|
|
342
|
+
switch (yr(o)) {
|
|
343
|
+
case 0:
|
|
344
|
+
o === 38 && $e() === 12 && (n[a] = 1), r[a] += Nn(be - 1, n, a);
|
|
345
|
+
break;
|
|
346
|
+
case 2:
|
|
347
|
+
r[a] += Ar(o);
|
|
348
|
+
break;
|
|
349
|
+
case 4:
|
|
350
|
+
if (o === 44) {
|
|
351
|
+
r[++a] = $e() === 58 ? "&\f" : "", n[a] = r[a].length;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
default:
|
|
355
|
+
r[a] += Dr(o);
|
|
356
|
+
}
|
|
357
|
+
while (o = we());
|
|
358
|
+
return r;
|
|
359
|
+
}, Sn = function(r, n) {
|
|
360
|
+
return Lt(kn($t(r), n));
|
|
361
|
+
}, ut = /* @__PURE__ */ new WeakMap(), _n = function(r) {
|
|
362
|
+
if (!(r.type !== "rule" || !r.parent || r.length < 1)) {
|
|
363
|
+
for (var n = r.value, a = r.parent, o = r.column === a.column && r.line === a.line; a.type !== "rule"; )
|
|
364
|
+
if (a = a.parent, !a)
|
|
365
|
+
return;
|
|
366
|
+
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !ut.get(a)) && !o) {
|
|
367
|
+
ut.set(r, !0);
|
|
368
|
+
for (var i = [], u = Sn(n, i), f = a.props, g = 0, b = 0; g < u.length; g++)
|
|
369
|
+
for (var d = 0; d < f.length; d++, b++)
|
|
370
|
+
r.props[b] = i[g] ? u[g].replace(/&\f/g, f[d]) : f[d] + " " + u[g];
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}, xn = function(r) {
|
|
374
|
+
if (r.type === "decl") {
|
|
375
|
+
var n = r.value;
|
|
376
|
+
n.charCodeAt(0) === 108 && n.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
377
|
+
}
|
|
378
|
+
}, Cn = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", Rn = function(r) {
|
|
379
|
+
return r.type === "comm" && r.children.indexOf(Cn) > -1;
|
|
380
|
+
}, Tn = function(r) {
|
|
381
|
+
return function(n, a, o) {
|
|
382
|
+
if (!(n.type !== "rule" || r.compat)) {
|
|
383
|
+
var i = n.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
384
|
+
if (i) {
|
|
385
|
+
for (var u = n.parent === o[0], f = u ? o[0].children : o, g = f.length - 1; g >= 0; g--) {
|
|
386
|
+
var b = f[g];
|
|
387
|
+
if (b.line < n.line)
|
|
388
|
+
break;
|
|
389
|
+
if (b.column < n.column) {
|
|
390
|
+
if (Rn(b))
|
|
391
|
+
return;
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
i.forEach(function(d) {
|
|
396
|
+
console.error('The pseudo class "' + d + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + d.split("-child")[0] + '-of-type".');
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
}, Mt = function(r) {
|
|
402
|
+
return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
|
|
403
|
+
}, Pn = function(r, n) {
|
|
404
|
+
for (var a = r - 1; a >= 0; a--)
|
|
405
|
+
if (!Mt(n[a]))
|
|
406
|
+
return !0;
|
|
407
|
+
return !1;
|
|
408
|
+
}, ft = function(r) {
|
|
409
|
+
r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
|
|
410
|
+
}, On = function(r, n, a) {
|
|
411
|
+
Mt(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), ft(r)) : Pn(n, a) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), ft(r)));
|
|
412
|
+
};
|
|
413
|
+
function Dt(e, r) {
|
|
414
|
+
switch (sn(e, r)) {
|
|
415
|
+
case 5103:
|
|
416
|
+
return M + "print-" + e + e;
|
|
417
|
+
case 5737:
|
|
418
|
+
case 4201:
|
|
419
|
+
case 3177:
|
|
420
|
+
case 3433:
|
|
421
|
+
case 1641:
|
|
422
|
+
case 4457:
|
|
423
|
+
case 2921:
|
|
424
|
+
case 5572:
|
|
425
|
+
case 6356:
|
|
426
|
+
case 5844:
|
|
427
|
+
case 3191:
|
|
428
|
+
case 6645:
|
|
429
|
+
case 3005:
|
|
430
|
+
case 6391:
|
|
431
|
+
case 5879:
|
|
432
|
+
case 5623:
|
|
433
|
+
case 6135:
|
|
434
|
+
case 4599:
|
|
435
|
+
case 4855:
|
|
436
|
+
case 4215:
|
|
437
|
+
case 6389:
|
|
438
|
+
case 5109:
|
|
439
|
+
case 5365:
|
|
440
|
+
case 5621:
|
|
441
|
+
case 3829:
|
|
442
|
+
return M + e + e;
|
|
443
|
+
case 5349:
|
|
444
|
+
case 4246:
|
|
445
|
+
case 4810:
|
|
446
|
+
case 6968:
|
|
447
|
+
case 2756:
|
|
448
|
+
return M + e + $r + e + le + e + e;
|
|
449
|
+
case 6828:
|
|
450
|
+
case 4268:
|
|
451
|
+
return M + e + le + e + e;
|
|
452
|
+
case 6165:
|
|
453
|
+
return M + e + le + "flex-" + e + e;
|
|
454
|
+
case 5187:
|
|
455
|
+
return M + e + V(e, /(\w+).+(:[^]+)/, M + "box-$1$2" + le + "flex-$1$2") + e;
|
|
456
|
+
case 5443:
|
|
457
|
+
return M + e + le + "flex-item-" + V(e, /flex-|-self/, "") + e;
|
|
458
|
+
case 4675:
|
|
459
|
+
return M + e + le + "flex-line-pack" + V(e, /align-content|flex-|-self/, "") + e;
|
|
460
|
+
case 5548:
|
|
461
|
+
return M + e + le + V(e, "shrink", "negative") + e;
|
|
462
|
+
case 5292:
|
|
463
|
+
return M + e + le + V(e, "basis", "preferred-size") + e;
|
|
464
|
+
case 6060:
|
|
465
|
+
return M + "box-" + V(e, "-grow", "") + M + e + le + V(e, "grow", "positive") + e;
|
|
466
|
+
case 4554:
|
|
467
|
+
return M + V(e, /([^-])(transform)/g, "$1" + M + "$2") + e;
|
|
468
|
+
case 6187:
|
|
469
|
+
return V(V(V(e, /(zoom-|grab)/, M + "$1"), /(image-set)/, M + "$1"), e, "") + e;
|
|
470
|
+
case 5495:
|
|
471
|
+
case 3959:
|
|
472
|
+
return V(e, /(image-set\([^]*)/, M + "$1$`$1");
|
|
473
|
+
case 4968:
|
|
474
|
+
return V(V(e, /(.+:)(flex-)?(.*)/, M + "box-pack:$3" + le + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + M + e + e;
|
|
475
|
+
case 4095:
|
|
476
|
+
case 3583:
|
|
477
|
+
case 4068:
|
|
478
|
+
case 2532:
|
|
479
|
+
return V(e, /(.+)-inline(.+)/, M + "$1$2") + e;
|
|
480
|
+
case 8116:
|
|
481
|
+
case 7059:
|
|
482
|
+
case 5753:
|
|
483
|
+
case 5535:
|
|
484
|
+
case 5445:
|
|
485
|
+
case 5701:
|
|
486
|
+
case 4933:
|
|
487
|
+
case 4677:
|
|
488
|
+
case 5533:
|
|
489
|
+
case 5789:
|
|
490
|
+
case 5021:
|
|
491
|
+
case 4765:
|
|
492
|
+
if (Ie(e) - 1 - r > 6)
|
|
493
|
+
switch (ie(e, r + 1)) {
|
|
494
|
+
case 109:
|
|
495
|
+
if (ie(e, r + 4) !== 45)
|
|
496
|
+
break;
|
|
497
|
+
case 102:
|
|
498
|
+
return V(e, /(.+:)(.+)-([^]+)/, "$1" + M + "$2-$3$1" + $r + (ie(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
499
|
+
case 115:
|
|
500
|
+
return ~Kr(e, "stretch") ? Dt(V(e, "stretch", "fill-available"), r) + e : e;
|
|
501
|
+
}
|
|
502
|
+
break;
|
|
503
|
+
case 4949:
|
|
504
|
+
if (ie(e, r + 1) !== 115)
|
|
505
|
+
break;
|
|
506
|
+
case 6444:
|
|
507
|
+
switch (ie(e, Ie(e) - 3 - (~Kr(e, "!important") && 10))) {
|
|
508
|
+
case 107:
|
|
509
|
+
return V(e, ":", ":" + M) + e;
|
|
510
|
+
case 101:
|
|
511
|
+
return V(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + M + (ie(e, 14) === 45 ? "inline-" : "") + "box$3$1" + M + "$2$3$1" + le + "$2box$3") + e;
|
|
512
|
+
}
|
|
513
|
+
break;
|
|
514
|
+
case 5936:
|
|
515
|
+
switch (ie(e, r + 11)) {
|
|
516
|
+
case 114:
|
|
517
|
+
return M + e + le + V(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
518
|
+
case 108:
|
|
519
|
+
return M + e + le + V(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
520
|
+
case 45:
|
|
521
|
+
return M + e + le + V(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
522
|
+
}
|
|
523
|
+
return M + e + le + e + e;
|
|
524
|
+
}
|
|
525
|
+
return e;
|
|
526
|
+
}
|
|
527
|
+
var An = function(r, n, a, o) {
|
|
528
|
+
if (r.length > -1 && !r.return)
|
|
529
|
+
switch (r.type) {
|
|
530
|
+
case Qr:
|
|
531
|
+
r.return = Dt(r.value, r.length);
|
|
532
|
+
break;
|
|
533
|
+
case Ot:
|
|
534
|
+
return ar([pr(r, {
|
|
535
|
+
value: V(r.value, "@", "@" + M)
|
|
536
|
+
})], o);
|
|
537
|
+
case Xr:
|
|
538
|
+
if (r.length)
|
|
539
|
+
return ln(r.props, function(i) {
|
|
540
|
+
switch (cn(i, /(::plac\w+|:read-\w+)/)) {
|
|
541
|
+
case ":read-only":
|
|
542
|
+
case ":read-write":
|
|
543
|
+
return ar([pr(r, {
|
|
544
|
+
props: [V(i, /:(read-\w+)/, ":" + $r + "$1")]
|
|
545
|
+
})], o);
|
|
546
|
+
case "::placeholder":
|
|
547
|
+
return ar([pr(r, {
|
|
548
|
+
props: [V(i, /:(plac\w+)/, ":" + M + "input-$1")]
|
|
549
|
+
}), pr(r, {
|
|
550
|
+
props: [V(i, /:(plac\w+)/, ":" + $r + "$1")]
|
|
551
|
+
}), pr(r, {
|
|
552
|
+
props: [V(i, /:(plac\w+)/, le + "input-$1")]
|
|
553
|
+
})], o);
|
|
554
|
+
}
|
|
555
|
+
return "";
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
}, In = [An], $n = function(r) {
|
|
559
|
+
var n = r.key;
|
|
560
|
+
if (process.env.NODE_ENV !== "production" && !n)
|
|
561
|
+
throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
562
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);
|
|
563
|
+
if (n === "css") {
|
|
564
|
+
var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
565
|
+
Array.prototype.forEach.call(a, function(y) {
|
|
566
|
+
var D = y.getAttribute("data-emotion");
|
|
567
|
+
D.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
var o = r.stylisPlugins || In;
|
|
571
|
+
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(n))
|
|
572
|
+
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + n + '" was passed');
|
|
573
|
+
var i = {}, u, f = [];
|
|
574
|
+
u = r.container || document.head, Array.prototype.forEach.call(
|
|
575
|
+
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
576
|
+
function(y) {
|
|
577
|
+
for (var D = y.getAttribute("data-emotion").split(" "), x = 1; x < D.length; x++)
|
|
578
|
+
i[D[x]] = !0;
|
|
579
|
+
f.push(y);
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
var g, b = [_n, xn];
|
|
583
|
+
process.env.NODE_ENV !== "production" && b.push(Tn({
|
|
584
|
+
get compat() {
|
|
585
|
+
return w.compat;
|
|
586
|
+
}
|
|
587
|
+
}), On);
|
|
588
|
+
{
|
|
589
|
+
var d, v = [bn, process.env.NODE_ENV !== "production" ? function(y) {
|
|
590
|
+
y.root || (y.return ? d.insert(y.return) : y.value && y.type !== Zr && d.insert(y.value + "{}"));
|
|
591
|
+
} : En(function(y) {
|
|
592
|
+
d.insert(y);
|
|
593
|
+
})], N = yn(b.concat(o, v)), S = function(D) {
|
|
594
|
+
return ar(hn(D), N);
|
|
595
|
+
};
|
|
596
|
+
g = function(D, x, k, P) {
|
|
597
|
+
d = k, process.env.NODE_ENV !== "production" && x.map !== void 0 && (d = {
|
|
598
|
+
insert: function(l) {
|
|
599
|
+
k.insert(l + x.map);
|
|
600
|
+
}
|
|
601
|
+
}), S(D ? D + "{" + x.styles + "}" : x.styles), P && (w.inserted[x.name] = !0);
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
var w = {
|
|
605
|
+
key: n,
|
|
606
|
+
sheet: new tn({
|
|
607
|
+
key: n,
|
|
608
|
+
container: u,
|
|
609
|
+
nonce: r.nonce,
|
|
610
|
+
speedy: r.speedy,
|
|
611
|
+
prepend: r.prepend,
|
|
612
|
+
insertionPoint: r.insertionPoint
|
|
613
|
+
}),
|
|
614
|
+
nonce: r.nonce,
|
|
615
|
+
inserted: i,
|
|
616
|
+
registered: {},
|
|
617
|
+
insert: g
|
|
618
|
+
};
|
|
619
|
+
return w.sheet.hydrate(f), w;
|
|
620
|
+
}, Gr = {}, Ln = {
|
|
621
|
+
get exports() {
|
|
622
|
+
return Gr;
|
|
623
|
+
},
|
|
624
|
+
set exports(e) {
|
|
625
|
+
Gr = e;
|
|
626
|
+
}
|
|
627
|
+
}, F = {};
|
|
628
|
+
var dt;
|
|
629
|
+
function Mn() {
|
|
630
|
+
if (dt)
|
|
631
|
+
return F;
|
|
632
|
+
dt = 1;
|
|
633
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
634
|
+
function P(l) {
|
|
635
|
+
if (typeof l == "object" && l !== null) {
|
|
636
|
+
var q = l.$$typeof;
|
|
637
|
+
switch (q) {
|
|
638
|
+
case r:
|
|
639
|
+
switch (l = l.type, l) {
|
|
640
|
+
case g:
|
|
641
|
+
case b:
|
|
642
|
+
case a:
|
|
643
|
+
case i:
|
|
644
|
+
case o:
|
|
645
|
+
case v:
|
|
646
|
+
return l;
|
|
647
|
+
default:
|
|
648
|
+
switch (l = l && l.$$typeof, l) {
|
|
649
|
+
case f:
|
|
650
|
+
case d:
|
|
651
|
+
case w:
|
|
652
|
+
case S:
|
|
653
|
+
case u:
|
|
654
|
+
return l;
|
|
655
|
+
default:
|
|
656
|
+
return q;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
case n:
|
|
660
|
+
return q;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function $(l) {
|
|
665
|
+
return P(l) === b;
|
|
666
|
+
}
|
|
667
|
+
return F.AsyncMode = g, F.ConcurrentMode = b, F.ContextConsumer = f, F.ContextProvider = u, F.Element = r, F.ForwardRef = d, F.Fragment = a, F.Lazy = w, F.Memo = S, F.Portal = n, F.Profiler = i, F.StrictMode = o, F.Suspense = v, F.isAsyncMode = function(l) {
|
|
668
|
+
return $(l) || P(l) === g;
|
|
669
|
+
}, F.isConcurrentMode = $, F.isContextConsumer = function(l) {
|
|
670
|
+
return P(l) === f;
|
|
671
|
+
}, F.isContextProvider = function(l) {
|
|
672
|
+
return P(l) === u;
|
|
673
|
+
}, F.isElement = function(l) {
|
|
674
|
+
return typeof l == "object" && l !== null && l.$$typeof === r;
|
|
675
|
+
}, F.isForwardRef = function(l) {
|
|
676
|
+
return P(l) === d;
|
|
677
|
+
}, F.isFragment = function(l) {
|
|
678
|
+
return P(l) === a;
|
|
679
|
+
}, F.isLazy = function(l) {
|
|
680
|
+
return P(l) === w;
|
|
681
|
+
}, F.isMemo = function(l) {
|
|
682
|
+
return P(l) === S;
|
|
683
|
+
}, F.isPortal = function(l) {
|
|
684
|
+
return P(l) === n;
|
|
685
|
+
}, F.isProfiler = function(l) {
|
|
686
|
+
return P(l) === i;
|
|
687
|
+
}, F.isStrictMode = function(l) {
|
|
688
|
+
return P(l) === o;
|
|
689
|
+
}, F.isSuspense = function(l) {
|
|
690
|
+
return P(l) === v;
|
|
691
|
+
}, F.isValidElementType = function(l) {
|
|
692
|
+
return typeof l == "string" || typeof l == "function" || l === a || l === b || l === i || l === o || l === v || l === N || typeof l == "object" && l !== null && (l.$$typeof === w || l.$$typeof === S || l.$$typeof === u || l.$$typeof === f || l.$$typeof === d || l.$$typeof === D || l.$$typeof === x || l.$$typeof === k || l.$$typeof === y);
|
|
693
|
+
}, F.typeOf = P, F;
|
|
694
|
+
}
|
|
695
|
+
var j = {};
|
|
696
|
+
var mt;
|
|
697
|
+
function Dn() {
|
|
698
|
+
return mt || (mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
699
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
700
|
+
function P(s) {
|
|
701
|
+
return typeof s == "string" || typeof s == "function" || s === a || s === b || s === i || s === o || s === v || s === N || typeof s == "object" && s !== null && (s.$$typeof === w || s.$$typeof === S || s.$$typeof === u || s.$$typeof === f || s.$$typeof === d || s.$$typeof === D || s.$$typeof === x || s.$$typeof === k || s.$$typeof === y);
|
|
702
|
+
}
|
|
703
|
+
function $(s) {
|
|
704
|
+
if (typeof s == "object" && s !== null) {
|
|
705
|
+
var B = s.$$typeof;
|
|
706
|
+
switch (B) {
|
|
707
|
+
case r:
|
|
708
|
+
var C = s.type;
|
|
709
|
+
switch (C) {
|
|
710
|
+
case g:
|
|
711
|
+
case b:
|
|
712
|
+
case a:
|
|
713
|
+
case i:
|
|
714
|
+
case o:
|
|
715
|
+
case v:
|
|
716
|
+
return C;
|
|
717
|
+
default:
|
|
718
|
+
var Ce = C && C.$$typeof;
|
|
719
|
+
switch (Ce) {
|
|
720
|
+
case f:
|
|
721
|
+
case d:
|
|
722
|
+
case w:
|
|
723
|
+
case S:
|
|
724
|
+
case u:
|
|
725
|
+
return Ce;
|
|
726
|
+
default:
|
|
727
|
+
return B;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
case n:
|
|
731
|
+
return B;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
var l = g, q = b, O = f, Le = u, Ne = r, Me = d, De = a, me = w, Z = S, X = n, ge = i, H = o, ke = v, se = !1;
|
|
736
|
+
function ne(s) {
|
|
737
|
+
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ae(s) || $(s) === g;
|
|
738
|
+
}
|
|
739
|
+
function ae(s) {
|
|
740
|
+
return $(s) === b;
|
|
741
|
+
}
|
|
742
|
+
function Te(s) {
|
|
743
|
+
return $(s) === f;
|
|
744
|
+
}
|
|
745
|
+
function pe(s) {
|
|
746
|
+
return $(s) === u;
|
|
747
|
+
}
|
|
748
|
+
function Pe(s) {
|
|
749
|
+
return typeof s == "object" && s !== null && s.$$typeof === r;
|
|
750
|
+
}
|
|
751
|
+
function Fe(s) {
|
|
752
|
+
return $(s) === d;
|
|
753
|
+
}
|
|
754
|
+
function xe(s) {
|
|
755
|
+
return $(s) === a;
|
|
756
|
+
}
|
|
757
|
+
function Se(s) {
|
|
758
|
+
return $(s) === w;
|
|
759
|
+
}
|
|
760
|
+
function ye(s) {
|
|
761
|
+
return $(s) === S;
|
|
762
|
+
}
|
|
763
|
+
function z(s) {
|
|
764
|
+
return $(s) === n;
|
|
765
|
+
}
|
|
766
|
+
function ue(s) {
|
|
767
|
+
return $(s) === i;
|
|
768
|
+
}
|
|
769
|
+
function Ee(s) {
|
|
770
|
+
return $(s) === o;
|
|
771
|
+
}
|
|
772
|
+
function Be(s) {
|
|
773
|
+
return $(s) === v;
|
|
774
|
+
}
|
|
775
|
+
j.AsyncMode = l, j.ConcurrentMode = q, j.ContextConsumer = O, j.ContextProvider = Le, j.Element = Ne, j.ForwardRef = Me, j.Fragment = De, j.Lazy = me, j.Memo = Z, j.Portal = X, j.Profiler = ge, j.StrictMode = H, j.Suspense = ke, j.isAsyncMode = ne, j.isConcurrentMode = ae, j.isContextConsumer = Te, j.isContextProvider = pe, j.isElement = Pe, j.isForwardRef = Fe, j.isFragment = xe, j.isLazy = Se, j.isMemo = ye, j.isPortal = z, j.isProfiler = ue, j.isStrictMode = Ee, j.isSuspense = Be, j.isValidElementType = P, j.typeOf = $;
|
|
776
|
+
}()), j;
|
|
777
|
+
}
|
|
778
|
+
(function(e) {
|
|
779
|
+
process.env.NODE_ENV === "production" ? e.exports = Mn() : e.exports = Dn();
|
|
780
|
+
})(Ln);
|
|
781
|
+
var Ft = Gr, Fn = {
|
|
782
|
+
$$typeof: !0,
|
|
783
|
+
render: !0,
|
|
784
|
+
defaultProps: !0,
|
|
785
|
+
displayName: !0,
|
|
786
|
+
propTypes: !0
|
|
787
|
+
}, jn = {
|
|
788
|
+
$$typeof: !0,
|
|
789
|
+
compare: !0,
|
|
790
|
+
defaultProps: !0,
|
|
791
|
+
displayName: !0,
|
|
792
|
+
propTypes: !0,
|
|
793
|
+
type: !0
|
|
794
|
+
}, jt = {};
|
|
795
|
+
jt[Ft.ForwardRef] = Fn;
|
|
796
|
+
jt[Ft.Memo] = jn;
|
|
797
|
+
var Vn = !0;
|
|
798
|
+
function Bn(e, r, n) {
|
|
799
|
+
var a = "";
|
|
800
|
+
return n.split(" ").forEach(function(o) {
|
|
801
|
+
e[o] !== void 0 ? r.push(e[o] + ";") : a += o + " ";
|
|
802
|
+
}), a;
|
|
803
|
+
}
|
|
804
|
+
var Vt = function(r, n, a) {
|
|
805
|
+
var o = r.key + "-" + n.name;
|
|
806
|
+
(a === !1 || Vn === !1) && r.registered[o] === void 0 && (r.registered[o] = n.styles);
|
|
807
|
+
}, zn = function(r, n, a) {
|
|
808
|
+
Vt(r, n, a);
|
|
809
|
+
var o = r.key + "-" + n.name;
|
|
810
|
+
if (r.inserted[n.name] === void 0) {
|
|
811
|
+
var i = n;
|
|
812
|
+
do
|
|
813
|
+
r.insert(n === i ? "." + o : "", i, r.sheet, !0), i = i.next;
|
|
814
|
+
while (i !== void 0);
|
|
815
|
+
}
|
|
816
|
+
};
|
|
817
|
+
function Un(e) {
|
|
818
|
+
for (var r = 0, n, a = 0, o = e.length; o >= 4; ++a, o -= 4)
|
|
819
|
+
n = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, n = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= n >>> 24, r = (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
820
|
+
switch (o) {
|
|
821
|
+
case 3:
|
|
822
|
+
r ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
823
|
+
case 2:
|
|
824
|
+
r ^= (e.charCodeAt(a + 1) & 255) << 8;
|
|
825
|
+
case 1:
|
|
826
|
+
r ^= e.charCodeAt(a) & 255, r = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
827
|
+
}
|
|
828
|
+
return r ^= r >>> 13, r = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
829
|
+
}
|
|
830
|
+
var Yn = {
|
|
831
|
+
animationIterationCount: 1,
|
|
832
|
+
borderImageOutset: 1,
|
|
833
|
+
borderImageSlice: 1,
|
|
834
|
+
borderImageWidth: 1,
|
|
835
|
+
boxFlex: 1,
|
|
836
|
+
boxFlexGroup: 1,
|
|
837
|
+
boxOrdinalGroup: 1,
|
|
838
|
+
columnCount: 1,
|
|
839
|
+
columns: 1,
|
|
840
|
+
flex: 1,
|
|
841
|
+
flexGrow: 1,
|
|
842
|
+
flexPositive: 1,
|
|
843
|
+
flexShrink: 1,
|
|
844
|
+
flexNegative: 1,
|
|
845
|
+
flexOrder: 1,
|
|
846
|
+
gridRow: 1,
|
|
847
|
+
gridRowEnd: 1,
|
|
848
|
+
gridRowSpan: 1,
|
|
849
|
+
gridRowStart: 1,
|
|
850
|
+
gridColumn: 1,
|
|
851
|
+
gridColumnEnd: 1,
|
|
852
|
+
gridColumnSpan: 1,
|
|
853
|
+
gridColumnStart: 1,
|
|
854
|
+
msGridRow: 1,
|
|
855
|
+
msGridRowSpan: 1,
|
|
856
|
+
msGridColumn: 1,
|
|
857
|
+
msGridColumnSpan: 1,
|
|
858
|
+
fontWeight: 1,
|
|
859
|
+
lineHeight: 1,
|
|
860
|
+
opacity: 1,
|
|
861
|
+
order: 1,
|
|
862
|
+
orphans: 1,
|
|
863
|
+
tabSize: 1,
|
|
864
|
+
widows: 1,
|
|
865
|
+
zIndex: 1,
|
|
866
|
+
zoom: 1,
|
|
867
|
+
WebkitLineClamp: 1,
|
|
868
|
+
fillOpacity: 1,
|
|
869
|
+
floodOpacity: 1,
|
|
870
|
+
stopOpacity: 1,
|
|
871
|
+
strokeDasharray: 1,
|
|
872
|
+
strokeDashoffset: 1,
|
|
873
|
+
strokeMiterlimit: 1,
|
|
874
|
+
strokeOpacity: 1,
|
|
875
|
+
strokeWidth: 1
|
|
876
|
+
}, gt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
877
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
878
|
+
You can read more about this here:
|
|
879
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Wn = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Kn = /[A-Z]|^ms/g, Bt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, rt = function(r) {
|
|
880
|
+
return r.charCodeAt(1) === 45;
|
|
881
|
+
}, pt = function(r) {
|
|
882
|
+
return r != null && typeof r != "boolean";
|
|
883
|
+
}, Yr = /* @__PURE__ */ wn(function(e) {
|
|
884
|
+
return rt(e) ? e : e.replace(Kn, "-$&").toLowerCase();
|
|
885
|
+
}), Lr = function(r, n) {
|
|
886
|
+
switch (r) {
|
|
887
|
+
case "animation":
|
|
888
|
+
case "animationName":
|
|
889
|
+
if (typeof n == "string")
|
|
890
|
+
return n.replace(Bt, function(a, o, i) {
|
|
891
|
+
return Re = {
|
|
892
|
+
name: o,
|
|
893
|
+
styles: i,
|
|
894
|
+
next: Re
|
|
895
|
+
}, o;
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
return Yn[r] !== 1 && !rt(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
899
|
+
};
|
|
900
|
+
if (process.env.NODE_ENV !== "production") {
|
|
901
|
+
var qn = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Gn = ["normal", "none", "initial", "inherit", "unset"], Hn = Lr, Jn = /^-ms-/, Zn = /-(.)/g, ht = {};
|
|
902
|
+
Lr = function(r, n) {
|
|
903
|
+
if (r === "content" && (typeof n != "string" || Gn.indexOf(n) === -1 && !qn.test(n) && (n.charAt(0) !== n.charAt(n.length - 1) || n.charAt(0) !== '"' && n.charAt(0) !== "'")))
|
|
904
|
+
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + n + "\"'`");
|
|
905
|
+
var a = Hn(r, n);
|
|
906
|
+
return a !== "" && !rt(r) && r.indexOf("-") !== -1 && ht[r] === void 0 && (ht[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Jn, "ms-").replace(Zn, function(o, i) {
|
|
907
|
+
return i.toUpperCase();
|
|
908
|
+
}) + "?")), a;
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
var zt = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
912
|
+
function Er(e, r, n) {
|
|
913
|
+
if (n == null)
|
|
914
|
+
return "";
|
|
915
|
+
if (n.__emotion_styles !== void 0) {
|
|
916
|
+
if (process.env.NODE_ENV !== "production" && n.toString() === "NO_COMPONENT_SELECTOR")
|
|
917
|
+
throw new Error(zt);
|
|
918
|
+
return n;
|
|
919
|
+
}
|
|
920
|
+
switch (typeof n) {
|
|
921
|
+
case "boolean":
|
|
922
|
+
return "";
|
|
923
|
+
case "object": {
|
|
924
|
+
if (n.anim === 1)
|
|
925
|
+
return Re = {
|
|
926
|
+
name: n.name,
|
|
927
|
+
styles: n.styles,
|
|
928
|
+
next: Re
|
|
929
|
+
}, n.name;
|
|
930
|
+
if (n.styles !== void 0) {
|
|
931
|
+
var a = n.next;
|
|
932
|
+
if (a !== void 0)
|
|
933
|
+
for (; a !== void 0; )
|
|
934
|
+
Re = {
|
|
935
|
+
name: a.name,
|
|
936
|
+
styles: a.styles,
|
|
937
|
+
next: Re
|
|
938
|
+
}, a = a.next;
|
|
939
|
+
var o = n.styles + ";";
|
|
940
|
+
return process.env.NODE_ENV !== "production" && n.map !== void 0 && (o += n.map), o;
|
|
941
|
+
}
|
|
942
|
+
return Xn(e, r, n);
|
|
943
|
+
}
|
|
944
|
+
case "function": {
|
|
945
|
+
if (e !== void 0) {
|
|
946
|
+
var i = Re, u = n(e);
|
|
947
|
+
return Re = i, Er(e, r, u);
|
|
948
|
+
} else
|
|
949
|
+
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
950
|
+
break;
|
|
951
|
+
}
|
|
952
|
+
case "string":
|
|
953
|
+
if (process.env.NODE_ENV !== "production") {
|
|
954
|
+
var f = [], g = n.replace(Bt, function(d, v, N) {
|
|
955
|
+
var S = "animation" + f.length;
|
|
956
|
+
return f.push("const " + S + " = keyframes`" + N.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + S + "}";
|
|
957
|
+
});
|
|
958
|
+
f.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(f, ["`" + g + "`"]).join(`
|
|
959
|
+
`) + `
|
|
960
|
+
|
|
961
|
+
You should wrap it with \`css\` like this:
|
|
962
|
+
|
|
963
|
+
` + ("css`" + g + "`"));
|
|
964
|
+
}
|
|
965
|
+
break;
|
|
966
|
+
}
|
|
967
|
+
if (r == null)
|
|
968
|
+
return n;
|
|
969
|
+
var b = r[n];
|
|
970
|
+
return b !== void 0 ? b : n;
|
|
971
|
+
}
|
|
972
|
+
function Xn(e, r, n) {
|
|
973
|
+
var a = "";
|
|
974
|
+
if (Array.isArray(n))
|
|
975
|
+
for (var o = 0; o < n.length; o++)
|
|
976
|
+
a += Er(e, r, n[o]) + ";";
|
|
977
|
+
else
|
|
978
|
+
for (var i in n) {
|
|
979
|
+
var u = n[i];
|
|
980
|
+
if (typeof u != "object")
|
|
981
|
+
r != null && r[u] !== void 0 ? a += i + "{" + r[u] + "}" : pt(u) && (a += Yr(i) + ":" + Lr(i, u) + ";");
|
|
982
|
+
else {
|
|
983
|
+
if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
984
|
+
throw new Error(zt);
|
|
985
|
+
if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
|
|
986
|
+
for (var f = 0; f < u.length; f++)
|
|
987
|
+
pt(u[f]) && (a += Yr(i) + ":" + Lr(i, u[f]) + ";");
|
|
988
|
+
else {
|
|
989
|
+
var g = Er(e, r, u);
|
|
990
|
+
switch (i) {
|
|
991
|
+
case "animation":
|
|
992
|
+
case "animationName": {
|
|
993
|
+
a += Yr(i) + ":" + g + ";";
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
default:
|
|
997
|
+
process.env.NODE_ENV !== "production" && i === "undefined" && console.error(Wn), a += i + "{" + g + "}";
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
return a;
|
|
1003
|
+
}
|
|
1004
|
+
var vt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Ut;
|
|
1005
|
+
process.env.NODE_ENV !== "production" && (Ut = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1006
|
+
var Re, bt = function(r, n, a) {
|
|
1007
|
+
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
|
|
1008
|
+
return r[0];
|
|
1009
|
+
var o = !0, i = "";
|
|
1010
|
+
Re = void 0;
|
|
1011
|
+
var u = r[0];
|
|
1012
|
+
u == null || u.raw === void 0 ? (o = !1, i += Er(a, n, u)) : (process.env.NODE_ENV !== "production" && u[0] === void 0 && console.error(gt), i += u[0]);
|
|
1013
|
+
for (var f = 1; f < r.length; f++)
|
|
1014
|
+
i += Er(a, n, r[f]), o && (process.env.NODE_ENV !== "production" && u[f] === void 0 && console.error(gt), i += u[f]);
|
|
1015
|
+
var g;
|
|
1016
|
+
process.env.NODE_ENV !== "production" && (i = i.replace(Ut, function(N) {
|
|
1017
|
+
return g = N, "";
|
|
1018
|
+
})), vt.lastIndex = 0;
|
|
1019
|
+
for (var b = "", d; (d = vt.exec(i)) !== null; )
|
|
1020
|
+
b += "-" + d[1];
|
|
1021
|
+
var v = Un(i) + b;
|
|
1022
|
+
return process.env.NODE_ENV !== "production" ? {
|
|
1023
|
+
name: v,
|
|
1024
|
+
styles: i,
|
|
1025
|
+
map: g,
|
|
1026
|
+
next: Re,
|
|
1027
|
+
toString: function() {
|
|
1028
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1029
|
+
}
|
|
1030
|
+
} : {
|
|
1031
|
+
name: v,
|
|
1032
|
+
styles: i,
|
|
1033
|
+
next: Re
|
|
1034
|
+
};
|
|
1035
|
+
}, Qn = function(r) {
|
|
1036
|
+
return r();
|
|
1037
|
+
}, ea = ot["useInsertionEffect"] ? ot["useInsertionEffect"] : !1, ra = ea || Qn, Vr = {}.hasOwnProperty, tt = /* @__PURE__ */ Rt(
|
|
1038
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ $n({
|
|
1039
|
+
key: "css"
|
|
1040
|
+
}) : null
|
|
1041
|
+
);
|
|
1042
|
+
process.env.NODE_ENV !== "production" && (tt.displayName = "EmotionCacheContext");
|
|
1043
|
+
tt.Provider;
|
|
1044
|
+
var ta = function(r) {
|
|
1045
|
+
return /* @__PURE__ */ Tt(function(n, a) {
|
|
1046
|
+
var o = Pt(tt);
|
|
1047
|
+
return r(n, o, a);
|
|
1048
|
+
});
|
|
1049
|
+
}, Yt = /* @__PURE__ */ Rt({});
|
|
1050
|
+
process.env.NODE_ENV !== "production" && (Yt.displayName = "EmotionThemeContext");
|
|
1051
|
+
var yt = function(r) {
|
|
1052
|
+
var n = r.split(".");
|
|
1053
|
+
return n[n.length - 1];
|
|
1054
|
+
}, na = function(r) {
|
|
1055
|
+
var n = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);
|
|
1056
|
+
if (n || (n = /^([A-Za-z0-9$.]+)@/.exec(r), n))
|
|
1057
|
+
return yt(n[1]);
|
|
1058
|
+
}, aa = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), oa = function(r) {
|
|
1059
|
+
return r.replace(/\$/g, "-");
|
|
1060
|
+
}, ia = function(r) {
|
|
1061
|
+
if (r)
|
|
1062
|
+
for (var n = r.split(`
|
|
1063
|
+
`), a = 0; a < n.length; a++) {
|
|
1064
|
+
var o = na(n[a]);
|
|
1065
|
+
if (o) {
|
|
1066
|
+
if (aa.has(o))
|
|
1067
|
+
break;
|
|
1068
|
+
if (/^[A-Z]/.test(o))
|
|
1069
|
+
return oa(o);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}, Hr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Jr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Wt = function(r, n) {
|
|
1073
|
+
if (process.env.NODE_ENV !== "production" && typeof n.css == "string" && n.css.indexOf(":") !== -1)
|
|
1074
|
+
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + n.css + "`");
|
|
1075
|
+
var a = {};
|
|
1076
|
+
for (var o in n)
|
|
1077
|
+
Vr.call(n, o) && (a[o] = n[o]);
|
|
1078
|
+
if (a[Hr] = r, process.env.NODE_ENV !== "production" && n.css && (typeof n.css != "object" || typeof n.css.name != "string" || n.css.name.indexOf("-") === -1)) {
|
|
1079
|
+
var i = ia(new Error().stack);
|
|
1080
|
+
i && (a[Jr] = i);
|
|
1081
|
+
}
|
|
1082
|
+
return a;
|
|
1083
|
+
}, sa = function(r) {
|
|
1084
|
+
var n = r.cache, a = r.serialized, o = r.isStringTag;
|
|
1085
|
+
return Vt(n, a, o), ra(function() {
|
|
1086
|
+
return zn(n, a, o);
|
|
1087
|
+
}), null;
|
|
1088
|
+
}, nt = /* @__PURE__ */ ta(function(e, r, n) {
|
|
1089
|
+
var a = e.css;
|
|
1090
|
+
typeof a == "string" && r.registered[a] !== void 0 && (a = r.registered[a]);
|
|
1091
|
+
var o = e[Hr], i = [a], u = "";
|
|
1092
|
+
typeof e.className == "string" ? u = Bn(r.registered, i, e.className) : e.className != null && (u = e.className + " ");
|
|
1093
|
+
var f = bt(i, void 0, Pt(Yt));
|
|
1094
|
+
if (process.env.NODE_ENV !== "production" && f.name.indexOf("-") === -1) {
|
|
1095
|
+
var g = e[Jr];
|
|
1096
|
+
g && (f = bt([f, "label:" + g + ";"]));
|
|
1097
|
+
}
|
|
1098
|
+
u += r.key + "-" + f.name;
|
|
1099
|
+
var b = {};
|
|
1100
|
+
for (var d in e)
|
|
1101
|
+
Vr.call(e, d) && d !== "css" && d !== Hr && (process.env.NODE_ENV === "production" || d !== Jr) && (b[d] = e[d]);
|
|
1102
|
+
return b.ref = n, b.className = u, /* @__PURE__ */ Ur(Kt, null, /* @__PURE__ */ Ur(sa, {
|
|
1103
|
+
cache: r,
|
|
1104
|
+
serialized: f,
|
|
1105
|
+
isStringTag: typeof o == "string"
|
|
1106
|
+
}), /* @__PURE__ */ Ur(o, b));
|
|
1107
|
+
});
|
|
1108
|
+
process.env.NODE_ENV !== "production" && (nt.displayName = "EmotionCssPropInternal");
|
|
1109
|
+
var wr = {}, ca = {
|
|
1110
|
+
get exports() {
|
|
1111
|
+
return wr;
|
|
1112
|
+
},
|
|
1113
|
+
set exports(e) {
|
|
1114
|
+
wr = e;
|
|
1115
|
+
}
|
|
1116
|
+
}, hr = {};
|
|
1117
|
+
var Et;
|
|
1118
|
+
function la() {
|
|
1119
|
+
if (Et)
|
|
1120
|
+
return hr;
|
|
1121
|
+
Et = 1;
|
|
1122
|
+
var e = Ct, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1123
|
+
function u(f, g, b) {
|
|
1124
|
+
var d, v = {}, N = null, S = null;
|
|
1125
|
+
b !== void 0 && (N = "" + b), g.key !== void 0 && (N = "" + g.key), g.ref !== void 0 && (S = g.ref);
|
|
1126
|
+
for (d in g)
|
|
1127
|
+
a.call(g, d) && !i.hasOwnProperty(d) && (v[d] = g[d]);
|
|
1128
|
+
if (f && f.defaultProps)
|
|
1129
|
+
for (d in g = f.defaultProps, g)
|
|
1130
|
+
v[d] === void 0 && (v[d] = g[d]);
|
|
1131
|
+
return { $$typeof: r, type: f, key: N, ref: S, props: v, _owner: o.current };
|
|
1132
|
+
}
|
|
1133
|
+
return hr.Fragment = n, hr.jsx = u, hr.jsxs = u, hr;
|
|
1134
|
+
}
|
|
1135
|
+
var vr = {};
|
|
1136
|
+
var wt;
|
|
1137
|
+
function ua() {
|
|
1138
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1139
|
+
var e = Ct, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), g = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), w = Symbol.iterator, y = "@@iterator";
|
|
1140
|
+
function D(t) {
|
|
1141
|
+
if (t === null || typeof t != "object")
|
|
1142
|
+
return null;
|
|
1143
|
+
var c = w && t[w] || t[y];
|
|
1144
|
+
return typeof c == "function" ? c : null;
|
|
1145
|
+
}
|
|
1146
|
+
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1147
|
+
function k(t) {
|
|
1148
|
+
{
|
|
1149
|
+
for (var c = arguments.length, m = new Array(c > 1 ? c - 1 : 0), E = 1; E < c; E++)
|
|
1150
|
+
m[E - 1] = arguments[E];
|
|
1151
|
+
P("error", t, m);
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
function P(t, c, m) {
|
|
1155
|
+
{
|
|
1156
|
+
var E = x.ReactDebugCurrentFrame, L = E.getStackAddendum();
|
|
1157
|
+
L !== "" && (c += "%s", m = m.concat([L]));
|
|
1158
|
+
var W = m.map(function(I) {
|
|
1159
|
+
return String(I);
|
|
1160
|
+
});
|
|
1161
|
+
W.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, W);
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
var $ = !1, l = !1, q = !1, O = !1, Le = !1, Ne;
|
|
1165
|
+
Ne = Symbol.for("react.module.reference");
|
|
1166
|
+
function Me(t) {
|
|
1167
|
+
return !!(typeof t == "string" || typeof t == "function" || t === a || t === i || Le || t === o || t === b || t === d || O || t === S || $ || l || q || typeof t == "object" && t !== null && (t.$$typeof === N || t.$$typeof === v || t.$$typeof === u || t.$$typeof === f || t.$$typeof === g || t.$$typeof === Ne || t.getModuleId !== void 0));
|
|
1168
|
+
}
|
|
1169
|
+
function De(t, c, m) {
|
|
1170
|
+
var E = t.displayName;
|
|
1171
|
+
if (E)
|
|
1172
|
+
return E;
|
|
1173
|
+
var L = c.displayName || c.name || "";
|
|
1174
|
+
return L !== "" ? m + "(" + L + ")" : m;
|
|
1175
|
+
}
|
|
1176
|
+
function me(t) {
|
|
1177
|
+
return t.displayName || "Context";
|
|
1178
|
+
}
|
|
1179
|
+
function Z(t) {
|
|
1180
|
+
if (t == null)
|
|
1181
|
+
return null;
|
|
1182
|
+
if (typeof t.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
1183
|
+
return t.displayName || t.name || null;
|
|
1184
|
+
if (typeof t == "string")
|
|
1185
|
+
return t;
|
|
1186
|
+
switch (t) {
|
|
1187
|
+
case a:
|
|
1188
|
+
return "Fragment";
|
|
1189
|
+
case n:
|
|
1190
|
+
return "Portal";
|
|
1191
|
+
case i:
|
|
1192
|
+
return "Profiler";
|
|
1193
|
+
case o:
|
|
1194
|
+
return "StrictMode";
|
|
1195
|
+
case b:
|
|
1196
|
+
return "Suspense";
|
|
1197
|
+
case d:
|
|
1198
|
+
return "SuspenseList";
|
|
1199
|
+
}
|
|
1200
|
+
if (typeof t == "object")
|
|
1201
|
+
switch (t.$$typeof) {
|
|
1202
|
+
case f:
|
|
1203
|
+
var c = t;
|
|
1204
|
+
return me(c) + ".Consumer";
|
|
1205
|
+
case u:
|
|
1206
|
+
var m = t;
|
|
1207
|
+
return me(m._context) + ".Provider";
|
|
1208
|
+
case g:
|
|
1209
|
+
return De(t, t.render, "ForwardRef");
|
|
1210
|
+
case v:
|
|
1211
|
+
var E = t.displayName || null;
|
|
1212
|
+
return E !== null ? E : Z(t.type) || "Memo";
|
|
1213
|
+
case N: {
|
|
1214
|
+
var L = t, W = L._payload, I = L._init;
|
|
1215
|
+
try {
|
|
1216
|
+
return Z(I(W));
|
|
1217
|
+
} catch {
|
|
1218
|
+
return null;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
return null;
|
|
1223
|
+
}
|
|
1224
|
+
var X = Object.assign, ge = 0, H, ke, se, ne, ae, Te, pe;
|
|
1225
|
+
function Pe() {
|
|
1226
|
+
}
|
|
1227
|
+
Pe.__reactDisabledLog = !0;
|
|
1228
|
+
function Fe() {
|
|
1229
|
+
{
|
|
1230
|
+
if (ge === 0) {
|
|
1231
|
+
H = console.log, ke = console.info, se = console.warn, ne = console.error, ae = console.group, Te = console.groupCollapsed, pe = console.groupEnd;
|
|
1232
|
+
var t = {
|
|
1233
|
+
configurable: !0,
|
|
1234
|
+
enumerable: !0,
|
|
1235
|
+
value: Pe,
|
|
1236
|
+
writable: !0
|
|
1237
|
+
};
|
|
1238
|
+
Object.defineProperties(console, {
|
|
1239
|
+
info: t,
|
|
1240
|
+
log: t,
|
|
1241
|
+
warn: t,
|
|
1242
|
+
error: t,
|
|
1243
|
+
group: t,
|
|
1244
|
+
groupCollapsed: t,
|
|
1245
|
+
groupEnd: t
|
|
1246
|
+
});
|
|
1247
|
+
}
|
|
1248
|
+
ge++;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
function xe() {
|
|
1252
|
+
{
|
|
1253
|
+
if (ge--, ge === 0) {
|
|
1254
|
+
var t = {
|
|
1255
|
+
configurable: !0,
|
|
1256
|
+
enumerable: !0,
|
|
1257
|
+
writable: !0
|
|
1258
|
+
};
|
|
1259
|
+
Object.defineProperties(console, {
|
|
1260
|
+
log: X({}, t, {
|
|
1261
|
+
value: H
|
|
1262
|
+
}),
|
|
1263
|
+
info: X({}, t, {
|
|
1264
|
+
value: ke
|
|
1265
|
+
}),
|
|
1266
|
+
warn: X({}, t, {
|
|
1267
|
+
value: se
|
|
1268
|
+
}),
|
|
1269
|
+
error: X({}, t, {
|
|
1270
|
+
value: ne
|
|
1271
|
+
}),
|
|
1272
|
+
group: X({}, t, {
|
|
1273
|
+
value: ae
|
|
1274
|
+
}),
|
|
1275
|
+
groupCollapsed: X({}, t, {
|
|
1276
|
+
value: Te
|
|
1277
|
+
}),
|
|
1278
|
+
groupEnd: X({}, t, {
|
|
1279
|
+
value: pe
|
|
1280
|
+
})
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
ge < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
var Se = x.ReactCurrentDispatcher, ye;
|
|
1287
|
+
function z(t, c, m) {
|
|
1288
|
+
{
|
|
1289
|
+
if (ye === void 0)
|
|
1290
|
+
try {
|
|
1291
|
+
throw Error();
|
|
1292
|
+
} catch (L) {
|
|
1293
|
+
var E = L.stack.trim().match(/\n( *(at )?)/);
|
|
1294
|
+
ye = E && E[1] || "";
|
|
1295
|
+
}
|
|
1296
|
+
return `
|
|
1297
|
+
` + ye + t;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
var ue = !1, Ee;
|
|
1301
|
+
{
|
|
1302
|
+
var Be = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1303
|
+
Ee = new Be();
|
|
1304
|
+
}
|
|
1305
|
+
function s(t, c) {
|
|
1306
|
+
if (!t || ue)
|
|
1307
|
+
return "";
|
|
1308
|
+
{
|
|
1309
|
+
var m = Ee.get(t);
|
|
1310
|
+
if (m !== void 0)
|
|
1311
|
+
return m;
|
|
1312
|
+
}
|
|
1313
|
+
var E;
|
|
1314
|
+
ue = !0;
|
|
1315
|
+
var L = Error.prepareStackTrace;
|
|
1316
|
+
Error.prepareStackTrace = void 0;
|
|
1317
|
+
var W;
|
|
1318
|
+
W = Se.current, Se.current = null, Fe();
|
|
1319
|
+
try {
|
|
1320
|
+
if (c) {
|
|
1321
|
+
var I = function() {
|
|
1322
|
+
throw Error();
|
|
1323
|
+
};
|
|
1324
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
1325
|
+
set: function() {
|
|
1326
|
+
throw Error();
|
|
1327
|
+
}
|
|
1328
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1329
|
+
try {
|
|
1330
|
+
Reflect.construct(I, []);
|
|
1331
|
+
} catch (Ve) {
|
|
1332
|
+
E = Ve;
|
|
1333
|
+
}
|
|
1334
|
+
Reflect.construct(t, [], I);
|
|
1335
|
+
} else {
|
|
1336
|
+
try {
|
|
1337
|
+
I.call();
|
|
1338
|
+
} catch (Ve) {
|
|
1339
|
+
E = Ve;
|
|
1340
|
+
}
|
|
1341
|
+
t.call(I.prototype);
|
|
1342
|
+
}
|
|
1343
|
+
} else {
|
|
1344
|
+
try {
|
|
1345
|
+
throw Error();
|
|
1346
|
+
} catch (Ve) {
|
|
1347
|
+
E = Ve;
|
|
1348
|
+
}
|
|
1349
|
+
t();
|
|
1350
|
+
}
|
|
1351
|
+
} catch (Ve) {
|
|
1352
|
+
if (Ve && E && typeof Ve.stack == "string") {
|
|
1353
|
+
for (var T = Ve.stack.split(`
|
|
1354
|
+
`), de = E.stack.split(`
|
|
1355
|
+
`), J = T.length - 1, ee = de.length - 1; J >= 1 && ee >= 0 && T[J] !== de[ee]; )
|
|
1356
|
+
ee--;
|
|
1357
|
+
for (; J >= 1 && ee >= 0; J--, ee--)
|
|
1358
|
+
if (T[J] !== de[ee]) {
|
|
1359
|
+
if (J !== 1 || ee !== 1)
|
|
1360
|
+
do
|
|
1361
|
+
if (J--, ee--, ee < 0 || T[J] !== de[ee]) {
|
|
1362
|
+
var _e = `
|
|
1363
|
+
` + T[J].replace(" at new ", " at ");
|
|
1364
|
+
return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" && Ee.set(t, _e), _e;
|
|
1365
|
+
}
|
|
1366
|
+
while (J >= 1 && ee >= 0);
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
} finally {
|
|
1371
|
+
ue = !1, Se.current = W, xe(), Error.prepareStackTrace = L;
|
|
1372
|
+
}
|
|
1373
|
+
var er = t ? t.displayName || t.name : "", at = er ? z(er) : "";
|
|
1374
|
+
return typeof t == "function" && Ee.set(t, at), at;
|
|
1375
|
+
}
|
|
1376
|
+
function B(t, c, m) {
|
|
1377
|
+
return s(t, !1);
|
|
1378
|
+
}
|
|
1379
|
+
function C(t) {
|
|
1380
|
+
var c = t.prototype;
|
|
1381
|
+
return !!(c && c.isReactComponent);
|
|
1382
|
+
}
|
|
1383
|
+
function Ce(t, c, m) {
|
|
1384
|
+
if (t == null)
|
|
1385
|
+
return "";
|
|
1386
|
+
if (typeof t == "function")
|
|
1387
|
+
return s(t, C(t));
|
|
1388
|
+
if (typeof t == "string")
|
|
1389
|
+
return z(t);
|
|
1390
|
+
switch (t) {
|
|
1391
|
+
case b:
|
|
1392
|
+
return z("Suspense");
|
|
1393
|
+
case d:
|
|
1394
|
+
return z("SuspenseList");
|
|
1395
|
+
}
|
|
1396
|
+
if (typeof t == "object")
|
|
1397
|
+
switch (t.$$typeof) {
|
|
1398
|
+
case g:
|
|
1399
|
+
return B(t.render);
|
|
1400
|
+
case v:
|
|
1401
|
+
return Ce(t.type, c, m);
|
|
1402
|
+
case N: {
|
|
1403
|
+
var E = t, L = E._payload, W = E._init;
|
|
1404
|
+
try {
|
|
1405
|
+
return Ce(W(L), c, m);
|
|
1406
|
+
} catch {
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
return "";
|
|
1411
|
+
}
|
|
1412
|
+
var Oe = Object.prototype.hasOwnProperty, sr = {}, kr = x.ReactDebugCurrentFrame;
|
|
1413
|
+
function je(t) {
|
|
1414
|
+
if (t) {
|
|
1415
|
+
var c = t._owner, m = Ce(t.type, t._source, c ? c.type : null);
|
|
1416
|
+
kr.setExtraStackFrame(m);
|
|
1417
|
+
} else
|
|
1418
|
+
kr.setExtraStackFrame(null);
|
|
1419
|
+
}
|
|
1420
|
+
function Ge(t, c, m, E, L) {
|
|
1421
|
+
{
|
|
1422
|
+
var W = Function.call.bind(Oe);
|
|
1423
|
+
for (var I in t)
|
|
1424
|
+
if (W(t, I)) {
|
|
1425
|
+
var T = void 0;
|
|
1426
|
+
try {
|
|
1427
|
+
if (typeof t[I] != "function") {
|
|
1428
|
+
var de = Error((E || "React class") + ": " + m + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1429
|
+
throw de.name = "Invariant Violation", de;
|
|
1430
|
+
}
|
|
1431
|
+
T = t[I](c, I, E, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1432
|
+
} catch (J) {
|
|
1433
|
+
T = J;
|
|
1434
|
+
}
|
|
1435
|
+
T && !(T instanceof Error) && (je(L), k("%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).", E || "React class", m, I, typeof T), je(null)), T instanceof Error && !(T.message in sr) && (sr[T.message] = !0, je(L), k("Failed %s type: %s", m, T.message), je(null));
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
var ze = Array.isArray;
|
|
1440
|
+
function ce(t) {
|
|
1441
|
+
return ze(t);
|
|
1442
|
+
}
|
|
1443
|
+
function Ae(t) {
|
|
1444
|
+
{
|
|
1445
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, m = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
1446
|
+
return m;
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
function cr(t) {
|
|
1450
|
+
try {
|
|
1451
|
+
return We(t), !1;
|
|
1452
|
+
} catch {
|
|
1453
|
+
return !0;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
function We(t) {
|
|
1457
|
+
return "" + t;
|
|
1458
|
+
}
|
|
1459
|
+
function He(t) {
|
|
1460
|
+
if (cr(t))
|
|
1461
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(t)), We(t);
|
|
1462
|
+
}
|
|
1463
|
+
var oe = x.ReactCurrentOwner, Je = {
|
|
1464
|
+
key: !0,
|
|
1465
|
+
ref: !0,
|
|
1466
|
+
__self: !0,
|
|
1467
|
+
__source: !0
|
|
1468
|
+
}, fe, lr, Ue;
|
|
1469
|
+
Ue = {};
|
|
1470
|
+
function Sr(t) {
|
|
1471
|
+
if (Oe.call(t, "ref")) {
|
|
1472
|
+
var c = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1473
|
+
if (c && c.isReactWarning)
|
|
1474
|
+
return !1;
|
|
1475
|
+
}
|
|
1476
|
+
return t.ref !== void 0;
|
|
1477
|
+
}
|
|
1478
|
+
function _r(t) {
|
|
1479
|
+
if (Oe.call(t, "key")) {
|
|
1480
|
+
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1481
|
+
if (c && c.isReactWarning)
|
|
1482
|
+
return !1;
|
|
1483
|
+
}
|
|
1484
|
+
return t.key !== void 0;
|
|
1485
|
+
}
|
|
1486
|
+
function xr(t, c) {
|
|
1487
|
+
if (typeof t.ref == "string" && oe.current && c && oe.current.stateNode !== c) {
|
|
1488
|
+
var m = Z(oe.current.type);
|
|
1489
|
+
Ue[m] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(oe.current.type), t.ref), Ue[m] = !0);
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
function Ze(t, c) {
|
|
1493
|
+
{
|
|
1494
|
+
var m = function() {
|
|
1495
|
+
fe || (fe = !0, k("%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)", c));
|
|
1496
|
+
};
|
|
1497
|
+
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
1498
|
+
get: m,
|
|
1499
|
+
configurable: !0
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
function Cr(t, c) {
|
|
1504
|
+
{
|
|
1505
|
+
var m = function() {
|
|
1506
|
+
lr || (lr = !0, k("%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)", c));
|
|
1507
|
+
};
|
|
1508
|
+
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
1509
|
+
get: m,
|
|
1510
|
+
configurable: !0
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
var Br = function(t, c, m, E, L, W, I) {
|
|
1515
|
+
var T = {
|
|
1516
|
+
$$typeof: r,
|
|
1517
|
+
type: t,
|
|
1518
|
+
key: c,
|
|
1519
|
+
ref: m,
|
|
1520
|
+
props: I,
|
|
1521
|
+
_owner: W
|
|
1522
|
+
};
|
|
1523
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
1524
|
+
configurable: !1,
|
|
1525
|
+
enumerable: !1,
|
|
1526
|
+
writable: !0,
|
|
1527
|
+
value: !1
|
|
1528
|
+
}), Object.defineProperty(T, "_self", {
|
|
1529
|
+
configurable: !1,
|
|
1530
|
+
enumerable: !1,
|
|
1531
|
+
writable: !1,
|
|
1532
|
+
value: E
|
|
1533
|
+
}), Object.defineProperty(T, "_source", {
|
|
1534
|
+
configurable: !1,
|
|
1535
|
+
enumerable: !1,
|
|
1536
|
+
writable: !1,
|
|
1537
|
+
value: L
|
|
1538
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
1539
|
+
};
|
|
1540
|
+
function Xe(t, c, m, E, L) {
|
|
1541
|
+
{
|
|
1542
|
+
var W, I = {}, T = null, de = null;
|
|
1543
|
+
m !== void 0 && (He(m), T = "" + m), _r(c) && (He(c.key), T = "" + c.key), Sr(c) && (de = c.ref, xr(c, L));
|
|
1544
|
+
for (W in c)
|
|
1545
|
+
Oe.call(c, W) && !Je.hasOwnProperty(W) && (I[W] = c[W]);
|
|
1546
|
+
if (t && t.defaultProps) {
|
|
1547
|
+
var J = t.defaultProps;
|
|
1548
|
+
for (W in J)
|
|
1549
|
+
I[W] === void 0 && (I[W] = J[W]);
|
|
1550
|
+
}
|
|
1551
|
+
if (T || de) {
|
|
1552
|
+
var ee = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
1553
|
+
T && Ze(I, ee), de && Cr(I, ee);
|
|
1554
|
+
}
|
|
1555
|
+
return Br(t, T, de, L, E, oe.current, I);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
var ur = x.ReactCurrentOwner, fr = x.ReactDebugCurrentFrame;
|
|
1559
|
+
function Ye(t) {
|
|
1560
|
+
if (t) {
|
|
1561
|
+
var c = t._owner, m = Ce(t.type, t._source, c ? c.type : null);
|
|
1562
|
+
fr.setExtraStackFrame(m);
|
|
1563
|
+
} else
|
|
1564
|
+
fr.setExtraStackFrame(null);
|
|
1565
|
+
}
|
|
1566
|
+
var dr;
|
|
1567
|
+
dr = !1;
|
|
1568
|
+
function p(t) {
|
|
1569
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
1570
|
+
}
|
|
1571
|
+
function _() {
|
|
1572
|
+
{
|
|
1573
|
+
if (ur.current) {
|
|
1574
|
+
var t = Z(ur.current.type);
|
|
1575
|
+
if (t)
|
|
1576
|
+
return `
|
|
1577
|
+
|
|
1578
|
+
Check the render method of \`` + t + "`.";
|
|
1579
|
+
}
|
|
1580
|
+
return "";
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
function R(t) {
|
|
1584
|
+
{
|
|
1585
|
+
if (t !== void 0) {
|
|
1586
|
+
var c = t.fileName.replace(/^.*[\\\/]/, ""), m = t.lineNumber;
|
|
1587
|
+
return `
|
|
1588
|
+
|
|
1589
|
+
Check your code at ` + c + ":" + m + ".";
|
|
1590
|
+
}
|
|
1591
|
+
return "";
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
var U = {};
|
|
1595
|
+
function Q(t) {
|
|
1596
|
+
{
|
|
1597
|
+
var c = _();
|
|
1598
|
+
if (!c) {
|
|
1599
|
+
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
1600
|
+
m && (c = `
|
|
1601
|
+
|
|
1602
|
+
Check the top-level render call using <` + m + ">.");
|
|
1603
|
+
}
|
|
1604
|
+
return c;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
function A(t, c) {
|
|
1608
|
+
{
|
|
1609
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
1610
|
+
return;
|
|
1611
|
+
t._store.validated = !0;
|
|
1612
|
+
var m = Q(c);
|
|
1613
|
+
if (U[m])
|
|
1614
|
+
return;
|
|
1615
|
+
U[m] = !0;
|
|
1616
|
+
var E = "";
|
|
1617
|
+
t && t._owner && t._owner !== ur.current && (E = " It was passed a child from " + Z(t._owner.type) + "."), Ye(t), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, E), Ye(null);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
function K(t, c) {
|
|
1621
|
+
{
|
|
1622
|
+
if (typeof t != "object")
|
|
1623
|
+
return;
|
|
1624
|
+
if (ce(t))
|
|
1625
|
+
for (var m = 0; m < t.length; m++) {
|
|
1626
|
+
var E = t[m];
|
|
1627
|
+
p(E) && A(E, c);
|
|
1628
|
+
}
|
|
1629
|
+
else if (p(t))
|
|
1630
|
+
t._store && (t._store.validated = !0);
|
|
1631
|
+
else if (t) {
|
|
1632
|
+
var L = D(t);
|
|
1633
|
+
if (typeof L == "function" && L !== t.entries)
|
|
1634
|
+
for (var W = L.call(t), I; !(I = W.next()).done; )
|
|
1635
|
+
p(I.value) && A(I.value, c);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
function mr(t) {
|
|
1640
|
+
{
|
|
1641
|
+
var c = t.type;
|
|
1642
|
+
if (c == null || typeof c == "string")
|
|
1643
|
+
return;
|
|
1644
|
+
var m;
|
|
1645
|
+
if (typeof c == "function")
|
|
1646
|
+
m = c.propTypes;
|
|
1647
|
+
else if (typeof c == "object" && (c.$$typeof === g || c.$$typeof === v))
|
|
1648
|
+
m = c.propTypes;
|
|
1649
|
+
else
|
|
1650
|
+
return;
|
|
1651
|
+
if (m) {
|
|
1652
|
+
var E = Z(c);
|
|
1653
|
+
Ge(m, t.props, "prop", E, t);
|
|
1654
|
+
} else if (c.PropTypes !== void 0 && !dr) {
|
|
1655
|
+
dr = !0;
|
|
1656
|
+
var L = Z(c);
|
|
1657
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
|
|
1658
|
+
}
|
|
1659
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
function Qe(t) {
|
|
1663
|
+
{
|
|
1664
|
+
for (var c = Object.keys(t.props), m = 0; m < c.length; m++) {
|
|
1665
|
+
var E = c[m];
|
|
1666
|
+
if (E !== "children" && E !== "key") {
|
|
1667
|
+
Ye(t), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Ye(null);
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
t.ref !== null && (Ye(t), k("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
function Ke(t, c, m, E, L, W) {
|
|
1675
|
+
{
|
|
1676
|
+
var I = Me(t);
|
|
1677
|
+
if (!I) {
|
|
1678
|
+
var T = "";
|
|
1679
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1680
|
+
var de = R(L);
|
|
1681
|
+
de ? T += de : T += _();
|
|
1682
|
+
var J;
|
|
1683
|
+
t === null ? J = "null" : ce(t) ? J = "array" : t !== void 0 && t.$$typeof === r ? (J = "<" + (Z(t.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : J = typeof t, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, T);
|
|
1684
|
+
}
|
|
1685
|
+
var ee = Xe(t, c, m, L, W);
|
|
1686
|
+
if (ee == null)
|
|
1687
|
+
return ee;
|
|
1688
|
+
if (I) {
|
|
1689
|
+
var _e = c.children;
|
|
1690
|
+
if (_e !== void 0)
|
|
1691
|
+
if (E)
|
|
1692
|
+
if (ce(_e)) {
|
|
1693
|
+
for (var er = 0; er < _e.length; er++)
|
|
1694
|
+
K(_e[er], t);
|
|
1695
|
+
Object.freeze && Object.freeze(_e);
|
|
1696
|
+
} else
|
|
1697
|
+
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1698
|
+
else
|
|
1699
|
+
K(_e, t);
|
|
1700
|
+
}
|
|
1701
|
+
return t === a ? Qe(ee) : mr(ee), ee;
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
function zr(t, c, m) {
|
|
1705
|
+
return Ke(t, c, m, !0);
|
|
1706
|
+
}
|
|
1707
|
+
function Y(t, c, m) {
|
|
1708
|
+
return Ke(t, c, m, !1);
|
|
1709
|
+
}
|
|
1710
|
+
var te = Y, gr = zr;
|
|
1711
|
+
vr.Fragment = a, vr.jsx = te, vr.jsxs = gr;
|
|
1712
|
+
}()), vr;
|
|
1713
|
+
}
|
|
1714
|
+
(function(e) {
|
|
1715
|
+
process.env.NODE_ENV === "production" ? e.exports = la() : e.exports = ua();
|
|
1716
|
+
})(ca);
|
|
1717
|
+
const fa = wr.Fragment, Nt = wr.jsx, kt = wr.jsxs;
|
|
1718
|
+
var tr = fa;
|
|
1719
|
+
function h(e, r, n) {
|
|
1720
|
+
return Vr.call(r, "css") ? Nt(nt, Wt(e, r), n) : Nt(e, r, n);
|
|
1721
|
+
}
|
|
1722
|
+
function he(e, r, n) {
|
|
1723
|
+
return Vr.call(r, "css") ? kt(nt, Wt(e, r), n) : kt(e, r, n);
|
|
1724
|
+
}
|
|
1725
|
+
const St = (e, r) => {
|
|
1726
|
+
let n, a, o;
|
|
1727
|
+
const i = (u, f, g) => (b) => {
|
|
1728
|
+
const d = performance.now();
|
|
1729
|
+
return setTimeout(() => {
|
|
1730
|
+
if (!o) {
|
|
1731
|
+
n = void 0, a = void 0;
|
|
1732
|
+
return;
|
|
1733
|
+
}
|
|
1734
|
+
const v = (async () => r(...o))();
|
|
1735
|
+
o = void 0, v.then(f).catch((w) => {
|
|
1736
|
+
console.error(w), g(w);
|
|
1737
|
+
});
|
|
1738
|
+
let N, S;
|
|
1739
|
+
a = new Promise((w, y) => {
|
|
1740
|
+
N = w, S = y;
|
|
1741
|
+
}), n = v.then(i(d, N, S)).catch((w) => (console.error(w), i(u, N, S)(w)));
|
|
1742
|
+
}, e - (d - u)), b;
|
|
1743
|
+
};
|
|
1744
|
+
return (...u) => {
|
|
1745
|
+
if (o = u, n)
|
|
1746
|
+
return a;
|
|
1747
|
+
{
|
|
1748
|
+
const f = performance.now(), g = (async () => r(...u))();
|
|
1749
|
+
o = void 0;
|
|
1750
|
+
let b, d;
|
|
1751
|
+
return a = new Promise((v, N) => {
|
|
1752
|
+
b = v, d = N;
|
|
1753
|
+
}), n = g.then(i(f, b, d)).catch((v) => (console.error(v), i(f, b, d)(v))), g;
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
}, da = Mr`
|
|
1757
|
+
position: relative;
|
|
1758
|
+
display: grid;
|
|
1759
|
+
grid-column: 1;
|
|
1760
|
+
grid-row: 1;
|
|
1761
|
+
display: grid;
|
|
1762
|
+
height: 100%;
|
|
1763
|
+
width: 100%;
|
|
1764
|
+
justify-items: center;
|
|
1765
|
+
align-items: center;
|
|
1766
|
+
|
|
1767
|
+
canvas {
|
|
1768
|
+
pointer-events: none;
|
|
1769
|
+
position: absolute;
|
|
1770
|
+
inset: 0;
|
|
1771
|
+
grid-column: 1;
|
|
1772
|
+
grid-row: 1;
|
|
1773
|
+
height: 100%;
|
|
1774
|
+
width: 100%;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.loading {
|
|
1778
|
+
grid-column: 1;
|
|
1779
|
+
grid-row: 1;
|
|
1780
|
+
}
|
|
1781
|
+
`, ma = ({ loading: e, needsInitialInteraction: r, togglePlay: n, setCanvasRef: a }) => /* @__PURE__ */ he("div", { css: da, onClick: n, children: [
|
|
1782
|
+
/* @__PURE__ */ h("canvas", { ref: a }),
|
|
1783
|
+
r ? /* @__PURE__ */ h(
|
|
1784
|
+
"svg",
|
|
1785
|
+
{
|
|
1786
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1787
|
+
width: "60",
|
|
1788
|
+
height: "60",
|
|
1789
|
+
viewBox: "0 0 60 60",
|
|
1790
|
+
fill: "black",
|
|
1791
|
+
stroke: "currentColor",
|
|
1792
|
+
strokeWidth: "3",
|
|
1793
|
+
strokeLinecap: "round",
|
|
1794
|
+
strokeLinejoin: "round",
|
|
1795
|
+
className: "feather feather-play",
|
|
1796
|
+
children: /* @__PURE__ */ h("polygon", { points: "12 7 45 28 12 50 12 7" })
|
|
1797
|
+
}
|
|
1798
|
+
) : e ? /* @__PURE__ */ h(
|
|
1799
|
+
"svg",
|
|
1800
|
+
{
|
|
1801
|
+
className: "loading",
|
|
1802
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1803
|
+
style: {
|
|
1804
|
+
display: "block",
|
|
1805
|
+
shapeRendering: "auto",
|
|
1806
|
+
animationPlayState: "running",
|
|
1807
|
+
animationDelay: "0s"
|
|
1808
|
+
},
|
|
1809
|
+
width: "100",
|
|
1810
|
+
height: "100",
|
|
1811
|
+
viewBox: "0 0 100 100",
|
|
1812
|
+
preserveAspectRatio: "xMidYMid",
|
|
1813
|
+
children: /* @__PURE__ */ h(
|
|
1814
|
+
"circle",
|
|
1815
|
+
{
|
|
1816
|
+
cx: "50",
|
|
1817
|
+
cy: "50",
|
|
1818
|
+
fill: "none",
|
|
1819
|
+
stroke: "currentColor",
|
|
1820
|
+
strokeWidth: "9",
|
|
1821
|
+
r: "35",
|
|
1822
|
+
strokeDasharray: "164.93361431346415 56.97787143782138",
|
|
1823
|
+
style: { animationPlayState: "running", animationDelay: "0s" },
|
|
1824
|
+
children: /* @__PURE__ */ h(
|
|
1825
|
+
"animateTransform",
|
|
1826
|
+
{
|
|
1827
|
+
attributeName: "transform",
|
|
1828
|
+
type: "rotate",
|
|
1829
|
+
repeatCount: "indefinite",
|
|
1830
|
+
dur: "1s",
|
|
1831
|
+
values: "0 50 50;360 50 50",
|
|
1832
|
+
keyTimes: "0;1",
|
|
1833
|
+
style: { animationPlayState: "running", animationDelay: "0s" }
|
|
1834
|
+
}
|
|
1835
|
+
)
|
|
1836
|
+
}
|
|
1837
|
+
)
|
|
1838
|
+
}
|
|
1839
|
+
) : null
|
|
1840
|
+
] }), _t = ({ ref: e, defaultValue: r }) => {
|
|
1841
|
+
const [n, a] = G(r), [o, i] = G(!1), u = (f) => {
|
|
1842
|
+
if (i(!0), !e.current)
|
|
1843
|
+
return;
|
|
1844
|
+
const { clientX: g } = f, { left: b, right: d } = e.current.getBoundingClientRect();
|
|
1845
|
+
a(Math.min(Math.max((g - b) / (d - b), 0), 1));
|
|
1846
|
+
};
|
|
1847
|
+
return ve(() => {
|
|
1848
|
+
if (!o)
|
|
1849
|
+
return;
|
|
1850
|
+
const f = () => i(!1), g = (b) => {
|
|
1851
|
+
if (!e.current)
|
|
1852
|
+
return;
|
|
1853
|
+
const { clientX: d } = b, { left: v, right: N } = e.current.getBoundingClientRect();
|
|
1854
|
+
a(Math.min(Math.max((d - v) / (N - v), 0), 1));
|
|
1855
|
+
};
|
|
1856
|
+
return document.addEventListener("mousemove", g), document.addEventListener("mouseup", f), () => {
|
|
1857
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", f);
|
|
1858
|
+
};
|
|
1859
|
+
}, [o]), {
|
|
1860
|
+
value: n,
|
|
1861
|
+
scrubbing: o,
|
|
1862
|
+
scrub: u
|
|
1863
|
+
};
|
|
1864
|
+
}, ga = JSON.parse(`[{"tag":"zu","name":"isiZulu","originalName":"isiZulu","locale":"zu-ZA"},{"tag":"zh","name":"Chinese","originalName":"中文","locale":"zh-CHS"},{"tag":"yo","name":"Yoruba","originalName":"Yoruba","locale":"yo-NG"},{"tag":"xh","name":"isiXhosa","originalName":"isiXhosa","locale":"xh-ZA"},{"tag":"wo","name":"Wolof","originalName":"Wolof","locale":"wo-SN"},{"tag":"vi","name":"Vietnamese","originalName":"Tiếng Việt","locale":"vi"},{"tag":"uz","name":"Uzbek","originalName":"U'zbek","locale":"uz"},{"tag":"ur","name":"Urdu","originalName":"اُردو","locale":"ur"},{"tag":"uk","name":"Ukrainian","originalName":"україньска","locale":"uk"},{"tag":"ug","name":"Uyghur","originalName":"ئۇيغۇرچە","locale":"ug-CN"},{"tag":"tzm","name":"Tamazight","originalName":"Tamazight","locale":"tzm-Latn-DZ"},{"tag":"tt","name":"Tatar","originalName":"Татар","locale":"tt"},{"tag":"tr","name":"Turkish","originalName":"Türkçe","locale":"tr"},{"tag":"tn","name":"Setswana","originalName":"Setswana","locale":"tn-ZA"},{"tag":"tk","name":"Turkmen","originalName":"türkmençe","locale":"tk-TM"},{"tag":"th","name":"Thai","originalName":"ไทย","locale":"th"},{"tag":"tg","name":"Tajik","originalName":"Тоҷикӣ","locale":"tg-Cyrl-TJ"},{"tag":"te","name":"Telugu","originalName":"తెలుగు","locale":"te"},{"tag":"ta","name":"Tamil","originalName":"தமிழ்","locale":"ta"},{"tag":"syr","name":"Syriac","originalName":"ܣܘܪܝܝܐ","locale":"syr"},{"tag":"sw","name":"Kiswahili","originalName":"Kiswahili","locale":"sw"},{"tag":"sv","name":"Swedish","originalName":"svenska","locale":"sv"},{"tag":"sr","name":"Serbian","originalName":"srpski","locale":"sr"},{"tag":"sq","name":"Albanian","originalName":"shqipe","locale":"sq"},{"tag":"sms","name":"Sami","originalName":"sääm´ǩiõll","locale":"sms-FI"},{"tag":"smn","name":"Sami","originalName":"sämikielâ","locale":"smn-FI"},{"tag":"smj","name":"Sami","originalName":"julevusámegiella","locale":"smj-NO"},{"tag":"sma","name":"Sami","originalName":"åarjelsaemiengiele","locale":"sma-NO"},{"tag":"sl","name":"Slovenian","originalName":"slovenski","locale":"sl"},{"tag":"sk","name":"Slovak","originalName":"slovenčina","locale":"sk"},{"tag":"si","name":"Sinhala","originalName":"සිංහ","locale":"si-LK"},{"tag":"se","name":"Sami","originalName":"davvisámegiella","locale":"se-FI"},{"tag":"sah","name":"Yakut","originalName":"саха","locale":"sah-RU"},{"tag":"sa","name":"Sanskrit","originalName":"संस्कृत","locale":"sa"},{"tag":"rw","name":"Kinyarwanda","originalName":"Kinyarwanda","locale":"rw-RW"},{"tag":"ru","name":"Russian","originalName":"русский","locale":"ru"},{"tag":"ro","name":"Romanian","originalName":"română","locale":"ro"},{"tag":"rm","name":"Romansh","originalName":"Rumantsch","locale":"rm-CH"},{"tag":"quz","name":"Quechua","originalName":"runasimi","locale":"quz-BO"},{"tag":"qut","name":"K'iche","originalName":"K'iche","locale":"qut-GT"},{"tag":"pt","name":"Portuguese","originalName":"Português","locale":"pt"},{"tag":"ps","name":"Pashto","originalName":"پښتو","locale":"ps-AF"},{"tag":"prs","name":"Dari","originalName":"درى","locale":"prs-AF"},{"tag":"pl","name":"Polish","originalName":"polski","locale":"pl"},{"tag":"pa","name":"Punjabi","originalName":"ਪੰਜਾਬੀ","locale":"pa"},{"tag":"or","name":"Oriya","originalName":"ଓଡ଼ିଆ","locale":"or-IN"},{"tag":"oc","name":"Occitan","originalName":"Occitan","locale":"oc-FR"},{"tag":"nso","name":"Sesotho sa Leboa","originalName":"Sesotho sa Leboa","locale":"nso-ZA"},{"tag":"no","name":"Norwegian","originalName":"norsk","locale":"no"},{"tag":"nn","name":"Norwegian, Nynorsk","originalName":"norsk, nynorsk","locale":"nn-NO"},{"tag":"nl","name":"Dutch","originalName":"Nederlands","locale":"nl"},{"tag":"ne","name":"Nepali","originalName":"नेपाली","locale":"ne-NP"},{"tag":"nb","name":"Norwegian, Bokmål","originalName":"norsk, bokmål","locale":"nb-NO"},{"tag":"mt","name":"Maltese","originalName":"Malti","locale":"mt-MT"},{"tag":"ms","name":"Malay","originalName":"Bahasa Malaysia","locale":"ms"},{"tag":"mr","name":"Marathi","originalName":"मराठी","locale":"mr"},{"tag":"moh","name":"Mohawk","originalName":"Kanien'kéha","locale":"moh-CA"},{"tag":"mn","name":"Mongolian","originalName":"Монгол хэл","locale":"mn"},{"tag":"ml","name":"Malayalam","originalName":"മലയാളം","locale":"ml-IN"},{"tag":"mk","name":"Macedonian","originalName":"македонски јазик","locale":"mk"},{"tag":"mi","name":"Maori","originalName":"Reo Māori","locale":"mi-NZ"},{"tag":"lv","name":"Latvian","originalName":"latviešu","locale":"lv"},{"tag":"lt","name":"Lithuanian","originalName":"lietuvių","locale":"lt"},{"tag":"lo","name":"Lao","originalName":"ລາວ","locale":"lo-LA"},{"tag":"lb","name":"Luxembourgish","originalName":"Lëtzebuergesch","locale":"lb-LU"},{"tag":"ky","name":"Kyrgyz","originalName":"Кыргыз","locale":"ky"},{"tag":"kok","name":"Konkani","originalName":"कोंकणी","locale":"kok"},{"tag":"ko","name":"Korean","originalName":"한국어","locale":"ko"},{"tag":"kn","name":"Kannada","originalName":"ಕನ್ನಡ","locale":"kn"},{"tag":"km","name":"Khmer","originalName":"ខ្មែរ","locale":"km-KH"},{"tag":"kl","name":"Greenlandic","originalName":"kalaallisut","locale":"kl-GL"},{"tag":"kk","name":"Kazakh","originalName":"Қазащb","locale":"kk"},{"tag":"ka","name":"Georgian","originalName":"ქართული","locale":"ka"},{"tag":"ja","name":"Japanese","originalName":"日本語","locale":"ja"},{"tag":"iu","name":"Inuktitut","originalName":"ᐃᓄᒃᑎᑐᑦ","locale":"iu-Cans-CA"},{"tag":"it","name":"Italian","originalName":"italiano","locale":"it"},{"tag":"is","name":"Icelandic","originalName":"íslenska","locale":"is"},{"tag":"ii","name":"Yi","originalName":"ꆈꌠꁱꂷ","locale":"ii-CN"},{"tag":"ig","name":"Igbo","originalName":"Igbo","locale":"ig-NG"},{"tag":"id","name":"Indonesian","originalName":"Bahasa Indonesia","locale":"id"},{"tag":"hy","name":"Armenian","originalName":"Հայերեն","locale":"hy"},{"tag":"hu","name":"Hungarian","originalName":"magyar","locale":"hu"},{"tag":"hsb","name":"Upper Sorbian","originalName":"hornjoserbšćina","locale":"hsb-DE"},{"tag":"hr","name":"Croatian","originalName":"hrvatski","locale":"hr"},{"tag":"hi","name":"Hindi","originalName":"हिंदी","locale":"hi"},{"tag":"he","name":"Hebrew","originalName":"עברית","locale":"he"},{"tag":"ha","name":"Hausa","originalName":"Hausa","locale":"ha-Latn-NG"},{"tag":"gu","name":"Gujarati","originalName":"ગુજરાતી","locale":"gu"},{"tag":"gsw","name":"Alsatian","originalName":"Elsässisch","locale":"gsw-FR"},{"tag":"gl","name":"Galician","originalName":"galego","locale":"gl"},{"tag":"gd","name":"Scottish Gaelic","originalName":"Gàidhlig","locale":"gd-GB"},{"tag":"ga","name":"Irish","originalName":"Gaeilge","locale":"ga-IE"},{"tag":"fy","name":"Frisian","originalName":"Frysk","locale":"fy-NL"},{"tag":"fr","name":"French","originalName":"français","locale":"fr"},{"tag":"fo","name":"Faroese","originalName":"føroyskt","locale":"fo"},{"tag":"fil","name":"Filipino","originalName":"Filipino","locale":"fil-PH"},{"tag":"fi","name":"Finnish","originalName":"suomi","locale":"fi"},{"tag":"fa","name":"Persian","originalName":"فارسى","locale":"fa"},{"tag":"eu","name":"Basque","originalName":"euskara","locale":"eu"},{"tag":"et","name":"Estonian","originalName":"eesti","locale":"et"},{"tag":"es","name":"Spanish","originalName":"español","locale":"es"},{"tag":"en","name":"English","originalName":"English","locale":"en"},{"tag":"el","name":"Greek","originalName":"ελληνικά","locale":"el"},{"tag":"dv","name":"Divehi","originalName":"ދިވެހިބަސް","locale":"dv"},{"tag":"dsb","name":"Lower Sorbian","originalName":"dolnoserbšćina","locale":"dsb-DE"},{"tag":"de","name":"German","originalName":"Deutsch","locale":"de"},{"tag":"da","name":"Danish","originalName":"dansk","locale":"da"},{"tag":"cy","name":"Welsh","originalName":"Cymraeg","locale":"cy-GB"},{"tag":"cs","name":"Czech","originalName":"čeština","locale":"cs"},{"tag":"co","name":"Corsican","originalName":"Corsu","locale":"co-FR"},{"tag":"ca","name":"Catalan","originalName":"català","locale":"ca"},{"tag":"bs","name":"Bosnian","originalName":"босански","locale":"bs-Cyrl-BA"},{"tag":"br","name":"Breton","originalName":"brezhoneg","locale":"br-FR"},{"tag":"bo","name":"Tibetan","originalName":"བོད་ཡིག","locale":"bo-CN"},{"tag":"bn","name":"Bengali","originalName":"বাংলা","locale":"bn-BD"},{"tag":"bg","name":"Bulgarian","originalName":"български","locale":"bg"},{"tag":"be","name":"Belarusian","originalName":"Беларускі","locale":"be"},{"tag":"ba","name":"Bashkir","originalName":"Башҡорт","locale":"ba-RU"},{"tag":"az","name":"Azeri","originalName":"Azərbaycanılı","locale":"az"},{"tag":"as","name":"Assamese","originalName":"অসমীয়া","locale":"as-IN"},{"tag":"arn","name":"Mapudungun","originalName":"Mapudungun","locale":"arn-CL"},{"tag":"ar","name":"Arabic","originalName":"العربية","locale":"ar"},{"tag":"am","name":"Amharic","originalName":"አማርኛ","locale":"am-ET"},{"tag":"af","name":"Afrikaans","originalName":"Afrikaans","locale":"af"},{"tag":"iv","name":"Invariant Language","originalName":"Invariant Language","locale":""},{"tag":"Two letter","name":"English","originalName":"Native","locale":"Culture .NET"}]`), xt = (e) => ga.find((r) => r.tag === e)?.name, pa = (e) => {
|
|
1865
|
+
const [r, n] = G(() => {
|
|
1866
|
+
const a = localStorage.getItem(e);
|
|
1867
|
+
return a ? JSON.parse(a) : {};
|
|
1868
|
+
});
|
|
1869
|
+
return ve(() => {
|
|
1870
|
+
localStorage.setItem(e, JSON.stringify(r));
|
|
1871
|
+
}, [e, r]), (a, o) => (ve(() => {
|
|
1872
|
+
n((i) => ({ ...i, [a]: o }));
|
|
1873
|
+
}, []), [
|
|
1874
|
+
r[a],
|
|
1875
|
+
(i) => n(typeof i == "function" ? (u) => ({ ...u, [a]: i(u[a]) }) : (u) => ({ ...u, [a]: i }))
|
|
1876
|
+
]);
|
|
1877
|
+
}, ha = Mr`
|
|
1878
|
+
position: relative;
|
|
1879
|
+
grid-column: 1;
|
|
1880
|
+
grid-row: 1;
|
|
1881
|
+
align-self: end;
|
|
1882
|
+
height: calc(4.8rem + var(--background-padding));
|
|
1883
|
+
width: 100%;
|
|
1884
|
+
padding: 0 2rem;
|
|
1885
|
+
margin: 0 auto;
|
|
1886
|
+
|
|
1887
|
+
/* subtle background black gradient for scenes with high brightness to properly display white progress bar */
|
|
1888
|
+
padding-top: var(--background-padding);
|
|
1889
|
+
background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) calc(100% - 1rem), rgba(0,0,0,0) 100%);
|
|
1890
|
+
|
|
1891
|
+
.progress-bar {
|
|
1892
|
+
position: relative;
|
|
1893
|
+
height: .4rem;
|
|
1894
|
+
cursor: pointer;
|
|
1895
|
+
user-select: none;
|
|
1896
|
+
transition: transform .2s ease-in-out;
|
|
1897
|
+
|
|
1898
|
+
|
|
1899
|
+
&:hover {
|
|
1900
|
+
.background-bar {
|
|
1901
|
+
transform: scaleY(1.5);
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
.background-bar {
|
|
1905
|
+
position: absolute;
|
|
1906
|
+
inset: 0;
|
|
1907
|
+
background-color: hsla(0, 100%, 100%, .2);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.cursor-time {
|
|
1911
|
+
pointer-events: none;
|
|
1912
|
+
position: absolute;
|
|
1913
|
+
top: -2rem;
|
|
1914
|
+
width: 5rem;
|
|
1915
|
+
margin-left: -2.5rem;
|
|
1916
|
+
display: flex;
|
|
1917
|
+
justify-content: center;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
.load {
|
|
1921
|
+
transform-origin: 0 0;
|
|
1922
|
+
background-color: hsla(0, 100%, 100%, .4);
|
|
1923
|
+
position: absolute;
|
|
1924
|
+
bottom: 0;
|
|
1925
|
+
height: .4rem;
|
|
1926
|
+
width: 100%;
|
|
1927
|
+
}
|
|
1928
|
+
.play {
|
|
1929
|
+
transform-origin: 0 0;
|
|
1930
|
+
background-color: hsla(0, 100%, 50%, .8);
|
|
1931
|
+
position: absolute;
|
|
1932
|
+
bottom: 0;
|
|
1933
|
+
height: .4rem;
|
|
1934
|
+
width: 100%;
|
|
1935
|
+
}
|
|
1936
|
+
.padding {
|
|
1937
|
+
position: absolute;
|
|
1938
|
+
bottom: -4px;
|
|
1939
|
+
height: 1.6rem;
|
|
1940
|
+
width: 100%;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
.controls {
|
|
1945
|
+
height: 100%;
|
|
1946
|
+
display: grid;
|
|
1947
|
+
align-items: center;
|
|
1948
|
+
grid-template-columns: 5rem fit-content(4.8rem) 20rem auto fit-content(10rem) 5rem 5rem 5rem;
|
|
1949
|
+
grid-gap: 1rem;
|
|
1950
|
+
color: #fff;
|
|
1951
|
+
user-select: none;
|
|
1952
|
+
|
|
1953
|
+
.picture-in-picture, .fullscreen, .play-button {
|
|
1954
|
+
height: 100%;
|
|
1955
|
+
color: #fff;
|
|
1956
|
+
background-color: transparent;
|
|
1957
|
+
border: none;
|
|
1958
|
+
cursor: pointer;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
.volume-area {
|
|
1962
|
+
display: flex;
|
|
1963
|
+
/* grid-template-columns: 4.8rem fit-content(0rem); */
|
|
1964
|
+
height: 100%;
|
|
1965
|
+
cursor: pointer;
|
|
1966
|
+
|
|
1967
|
+
.mute-button {
|
|
1968
|
+
color: #fff;
|
|
1969
|
+
border: none;
|
|
1970
|
+
background: none;
|
|
1971
|
+
height: 100%;
|
|
1972
|
+
width: 4.8rem;
|
|
1973
|
+
cursor: pointer;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.volume-panel {
|
|
1977
|
+
display: inline-block;
|
|
1978
|
+
width: 0;
|
|
1979
|
+
/* width: 100%; */
|
|
1980
|
+
/* width: 12rem; */
|
|
1981
|
+
height: 100%;
|
|
1982
|
+
-webkit-transition: margin .2s cubic-bezier(0.4,0,1,1),width .2s cubic-bezier(0.4,0,1,1);
|
|
1983
|
+
transition: margin .2s cubic-bezier(0.4,0,1,1),width .2s cubic-bezier(0.4,0,1,1);
|
|
1984
|
+
cursor: pointer;
|
|
1985
|
+
outline: 0;
|
|
1986
|
+
|
|
1987
|
+
&.volume-control-hover {
|
|
1988
|
+
width: 6rem;
|
|
1989
|
+
/* width: 52px; */
|
|
1990
|
+
margin-right: 3px;
|
|
1991
|
+
-webkit-transition: margin .2s cubic-bezier(0,0,0.2,1),width .2s cubic-bezier(0,0,0.2,1);
|
|
1992
|
+
transition: margin .2s cubic-bezier(0,0,0.2,1),width .2s cubic-bezier(0,0,0.2,1);
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
.slider {
|
|
1996
|
+
height: 100%;
|
|
1997
|
+
min-height: 36px;
|
|
1998
|
+
position: relative;
|
|
1999
|
+
overflow: hidden;
|
|
2000
|
+
|
|
2001
|
+
.slider-handle {
|
|
2002
|
+
/* left: 40px; */
|
|
2003
|
+
position: absolute;
|
|
2004
|
+
top: 50%;
|
|
2005
|
+
width: 12px;
|
|
2006
|
+
height: 12px;
|
|
2007
|
+
border-radius: 6px;
|
|
2008
|
+
margin-top: -6px;
|
|
2009
|
+
margin-left: -5px;
|
|
2010
|
+
/* background: #fff; */
|
|
2011
|
+
}
|
|
2012
|
+
.slider-handle::before, .slider-handle::after {
|
|
2013
|
+
content: "";
|
|
2014
|
+
position: absolute;
|
|
2015
|
+
display: block;
|
|
2016
|
+
top: 50%;
|
|
2017
|
+
left: 0;
|
|
2018
|
+
height: 3px;
|
|
2019
|
+
margin-top: -2px;
|
|
2020
|
+
width: 64px;
|
|
2021
|
+
}
|
|
2022
|
+
.slider-handle::before {
|
|
2023
|
+
left: -58px;
|
|
2024
|
+
background: #fff;
|
|
2025
|
+
}
|
|
2026
|
+
.slider-handle::after {
|
|
2027
|
+
left: 6px;
|
|
2028
|
+
background: rgba(255,255,255,.2);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
.time {
|
|
2035
|
+
font-family: Roboto;
|
|
2036
|
+
padding-bottom: .5rem;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
.custom-controls {
|
|
2040
|
+
display: flex;
|
|
2041
|
+
justify-content: end;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.error-area {
|
|
2045
|
+
position: relative;
|
|
2046
|
+
height: 3.8rem;
|
|
2047
|
+
|
|
2048
|
+
.error-menu {
|
|
2049
|
+
position: absolute;
|
|
2050
|
+
bottom: 4.8rem;
|
|
2051
|
+
left: -10rem;
|
|
2052
|
+
width: 25rem;
|
|
2053
|
+
/* background: rgba(0, 0, 0, .2); */
|
|
2054
|
+
/* background: rgb(35, 35, 35); */
|
|
2055
|
+
padding: 1rem;
|
|
2056
|
+
background-color: rgb(51, 51, 51);
|
|
2057
|
+
|
|
2058
|
+
&.hide {
|
|
2059
|
+
display: none;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
.error-menu-message {
|
|
2063
|
+
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
button {
|
|
2067
|
+
width: 100%;
|
|
2068
|
+
padding: 0.5rem 0;
|
|
2069
|
+
background: none;
|
|
2070
|
+
border: none;
|
|
2071
|
+
color: #fff;
|
|
2072
|
+
cursor: pointer;
|
|
2073
|
+
text-shadow: 2px 2px #000;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
.error-menu-button {
|
|
2078
|
+
display: grid;
|
|
2079
|
+
grid-auto-flow: column;
|
|
2080
|
+
align-items: center;
|
|
2081
|
+
height: 100%;
|
|
2082
|
+
width: 100%;
|
|
2083
|
+
cursor: pointer;
|
|
2084
|
+
color: #eb1010;
|
|
2085
|
+
font-weight: bold;
|
|
2086
|
+
background: none;
|
|
2087
|
+
border: none;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
.subtitle-area {
|
|
2092
|
+
position: relative;
|
|
2093
|
+
height: 3.8rem;
|
|
2094
|
+
|
|
2095
|
+
.subtitle-menu {
|
|
2096
|
+
position: absolute;
|
|
2097
|
+
bottom: 4.8rem;
|
|
2098
|
+
left: -1rem;
|
|
2099
|
+
/* background: rgba(0, 0, 0, .2); */
|
|
2100
|
+
/* background: rgb(35, 35, 35); */
|
|
2101
|
+
padding: 1rem 0;
|
|
2102
|
+
background-color: rgb(17, 17, 17);
|
|
2103
|
+
/* background-color: rgb(51, 51, 51); */
|
|
2104
|
+
border-radius: .3rem;
|
|
2105
|
+
|
|
2106
|
+
&.hide {
|
|
2107
|
+
display: none;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
button {
|
|
2111
|
+
width: 100%;
|
|
2112
|
+
padding: 1rem;
|
|
2113
|
+
/* padding: 0.5rem 0; */
|
|
2114
|
+
background: none;
|
|
2115
|
+
border: none;
|
|
2116
|
+
color: #fff;
|
|
2117
|
+
cursor: pointer;
|
|
2118
|
+
text-shadow: 2px 2px #000;
|
|
2119
|
+
|
|
2120
|
+
&:hover {
|
|
2121
|
+
background-color: rgb(51, 51, 51);
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
.subtitle-menu-button {
|
|
2127
|
+
height: 100%;
|
|
2128
|
+
width: 100%;
|
|
2129
|
+
cursor: pointer;
|
|
2130
|
+
color: #fff;
|
|
2131
|
+
background: none;
|
|
2132
|
+
border: none;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
`, va = ({
|
|
2137
|
+
duration: e,
|
|
2138
|
+
currentTime: r,
|
|
2139
|
+
togglePlay: n,
|
|
2140
|
+
seek: a,
|
|
2141
|
+
setVolume: o,
|
|
2142
|
+
isSubtitleMenuHidden: i,
|
|
2143
|
+
setIsSubtitleMenuHidden: u,
|
|
2144
|
+
isErrorMenuHidden: f,
|
|
2145
|
+
setIsErrorMenuHidden: g,
|
|
2146
|
+
setCurrentSubtitleTrack: b,
|
|
2147
|
+
loadedTime: d,
|
|
2148
|
+
isPlaying: v,
|
|
2149
|
+
tracks: N,
|
|
2150
|
+
isFullscreen: S,
|
|
2151
|
+
toggleFullscreen: w,
|
|
2152
|
+
subtitleTrack: y,
|
|
2153
|
+
pictureInPicture: D,
|
|
2154
|
+
errors: x,
|
|
2155
|
+
customControls: k,
|
|
2156
|
+
...P
|
|
2157
|
+
}) => {
|
|
2158
|
+
const $ = qe(null), l = qe(null), [q, O] = G(!1), { scrub: Le, value: Ne } = _t({ ref: $ }), Me = Wr(() => document.pictureInPictureEnabled, []), [De, me] = G(!1), Z = pa("fkn-media-player"), [X, ge] = Z("volume", 1), [H, ke] = Z("muted", !1), { scrub: se, value: ne } = _t({ ref: l, defaultValue: X });
|
|
2159
|
+
ve(() => {
|
|
2160
|
+
De || (me(!0), xe(void 0));
|
|
2161
|
+
}, [De, x.length]), ve(() => {
|
|
2162
|
+
Ne !== void 0 && a(Ne * (e ?? 0));
|
|
2163
|
+
}, [Ne]), ve(() => {
|
|
2164
|
+
if (H) {
|
|
2165
|
+
o(0), ke(H), ne && ge(ne);
|
|
2166
|
+
return;
|
|
2167
|
+
}
|
|
2168
|
+
ne !== void 0 && (o(ne ** 2), ge(ne), ke(H));
|
|
2169
|
+
}, [ne, H]);
|
|
2170
|
+
const ae = () => {
|
|
2171
|
+
O(!1);
|
|
2172
|
+
}, Te = (s) => {
|
|
2173
|
+
s.currentTarget !== s.relatedTarget && s.relatedTarget !== null || O(!0);
|
|
2174
|
+
}, pe = () => {
|
|
2175
|
+
ke((s) => !s);
|
|
2176
|
+
}, Pe = (s, B, C) => {
|
|
2177
|
+
b(B === void 0 ? B : C);
|
|
2178
|
+
}, Fe = (s) => {
|
|
2179
|
+
if (!i && s.relatedTarget === null) {
|
|
2180
|
+
u((C) => !C);
|
|
2181
|
+
return;
|
|
2182
|
+
}
|
|
2183
|
+
u(!1);
|
|
2184
|
+
const B = (C) => {
|
|
2185
|
+
C.stopPropagation(), u(!0), document.removeEventListener("click", B);
|
|
2186
|
+
};
|
|
2187
|
+
setTimeout(() => {
|
|
2188
|
+
document.addEventListener("click", B);
|
|
2189
|
+
}, 0);
|
|
2190
|
+
}, xe = (s) => {
|
|
2191
|
+
if (!f && s?.relatedTarget === null) {
|
|
2192
|
+
g((C) => !C);
|
|
2193
|
+
return;
|
|
2194
|
+
}
|
|
2195
|
+
g(!1);
|
|
2196
|
+
const B = (C) => {
|
|
2197
|
+
C.stopPropagation(), g(!0), document.removeEventListener("click", B);
|
|
2198
|
+
};
|
|
2199
|
+
setTimeout(() => {
|
|
2200
|
+
document.addEventListener("click", B);
|
|
2201
|
+
}, 0);
|
|
2202
|
+
}, Se = ({ subtitleTrack: s }) => {
|
|
2203
|
+
if (!s)
|
|
2204
|
+
return /* @__PURE__ */ h(tr, { children: "Disabled" });
|
|
2205
|
+
if (!s.title && !s.language)
|
|
2206
|
+
return /* @__PURE__ */ h(tr, { children: "Default" });
|
|
2207
|
+
const B = s.language === "jpn" ? "ja" : xt(s.language) ? xt(s.language) : s.language;
|
|
2208
|
+
return s.title ? /* @__PURE__ */ he(tr, { children: [
|
|
2209
|
+
s.title?.replace("subs", ""),
|
|
2210
|
+
B ? `(${B})` : ""
|
|
2211
|
+
] }) : /* @__PURE__ */ h(tr, { children: B });
|
|
2212
|
+
}, ye = Wr(
|
|
2213
|
+
() => [
|
|
2214
|
+
...new Set(
|
|
2215
|
+
x.map(
|
|
2216
|
+
(s) => s.message === "non monotonicaly increasing DTS values" ? s.count > 2 ? "The video seems malformatted and might have issues(skipped frames) during playback" : null : "An unexpected error occured while trying to play the video"
|
|
2217
|
+
)
|
|
2218
|
+
)
|
|
2219
|
+
].filter(Boolean).map((s) => /* @__PURE__ */ h("div", { className: "error-menu-message", children: s }, s)),
|
|
2220
|
+
[x]
|
|
2221
|
+
);
|
|
2222
|
+
ve(() => {
|
|
2223
|
+
rr.rebuild();
|
|
2224
|
+
}, [N.length]), ve(() => {
|
|
2225
|
+
const s = (B) => {
|
|
2226
|
+
B.key === "f" && w(), B.key === "k" && n(), B.key === "m" && pe();
|
|
2227
|
+
};
|
|
2228
|
+
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
2229
|
+
}, [w, n, pe]);
|
|
2230
|
+
const [z, ue] = G(void 0);
|
|
2231
|
+
return /* @__PURE__ */ he("div", { css: ha, onMouseOut: Te, ...P, children: [
|
|
2232
|
+
/* @__PURE__ */ h("div", { className: "preview" }),
|
|
2233
|
+
/* @__PURE__ */ he(
|
|
2234
|
+
"div",
|
|
2235
|
+
{
|
|
2236
|
+
ref: $,
|
|
2237
|
+
className: "progress-bar",
|
|
2238
|
+
onMouseMove: (s) => {
|
|
2239
|
+
const C = s.nativeEvent.offsetX / s.currentTarget.offsetWidth * (e ?? 0);
|
|
2240
|
+
ue(C);
|
|
2241
|
+
},
|
|
2242
|
+
onMouseOut: () => {
|
|
2243
|
+
$.current && ue(void 0);
|
|
2244
|
+
},
|
|
2245
|
+
children: [
|
|
2246
|
+
/* @__PURE__ */ h("div", { className: "background-bar" }),
|
|
2247
|
+
z ? /* @__PURE__ */ h("div", { className: "cursor-time", "data-tip": z, style: { left: `${1 / ((e ?? 0) / (z ?? 1)) * 100}%` }, children: new Date((z ?? 0) * 1e3).toISOString().substr(
|
|
2248
|
+
(e ?? 0) >= 3600 ? 11 : 14,
|
|
2249
|
+
(e ?? 0) >= 3600 ? 8 : 5
|
|
2250
|
+
) }) : void 0,
|
|
2251
|
+
/* @__PURE__ */ h("div", { className: "progress" }),
|
|
2252
|
+
/* @__PURE__ */ h("div", { className: "load", style: { transform: `scaleX(${1 / ((e ?? 0) / (d?.[1] ?? 0))})` } }),
|
|
2253
|
+
/* @__PURE__ */ h("div", { className: "hover" }),
|
|
2254
|
+
/* @__PURE__ */ h("div", { className: "play", style: {
|
|
2255
|
+
transform: `scaleX(${typeof e != "number" || typeof r != "number" ? 0 : 1 / ((e ?? 0) / (r ?? 0))})`
|
|
2256
|
+
} }),
|
|
2257
|
+
/* @__PURE__ */ h("div", { className: "chapters" }),
|
|
2258
|
+
/* @__PURE__ */ h("div", { className: "scrubber" }),
|
|
2259
|
+
/* @__PURE__ */ h("div", { className: "padding", onMouseDown: Le })
|
|
2260
|
+
]
|
|
2261
|
+
}
|
|
2262
|
+
),
|
|
2263
|
+
/* @__PURE__ */ he("div", { className: "controls", children: [
|
|
2264
|
+
/* @__PURE__ */ h(rr, { id: "play-button-tooltip", effect: "solid", place: "top", children: v ? "Pause (k)" : "Play (k)" }),
|
|
2265
|
+
/* @__PURE__ */ h("button", { className: "play-button", type: "button", "data-tip": !0, "data-for": "play-button-tooltip", onClick: n, children: v ? /* @__PURE__ */ he("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-pause", children: [
|
|
2266
|
+
/* @__PURE__ */ h("rect", { x: "6", y: "4", width: "4", height: "16" }),
|
|
2267
|
+
/* @__PURE__ */ h("rect", { x: "14", y: "4", width: "4", height: "16" })
|
|
2268
|
+
] }) : /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-play", children: /* @__PURE__ */ h("polygon", { points: "5 3 19 12 5 21 5 3" }) }) }),
|
|
2269
|
+
/* @__PURE__ */ he("div", { className: "volume-area", onMouseOver: ae, children: [
|
|
2270
|
+
/* @__PURE__ */ h(rr, { id: "mute-button-tooltip", effect: "solid", place: "top", children: H ? "Unmute (m)" : "Mute (m)" }),
|
|
2271
|
+
/* @__PURE__ */ h("button", { className: "mute-button", "data-tip": !0, "data-for": "mute-button-tooltip", onClick: pe, children: H ? /* @__PURE__ */ h(it, {}) : (X ?? 0) > 0.66 ? /* @__PURE__ */ h(Jt, {}) : (X ?? 0) > 0.33 ? /* @__PURE__ */ h(Zt, {}) : (X ?? 0) > 0 ? /* @__PURE__ */ h(Xt, {}) : /* @__PURE__ */ h(it, {}) }),
|
|
2272
|
+
/* @__PURE__ */ h("div", { ref: l, className: `volume-panel${q ? "" : " volume-control-hover"}`, onMouseDown: se, children: /* @__PURE__ */ h("div", { className: "slider", children: /* @__PURE__ */ h("div", { className: "slider-handle", style: { left: `${(X ?? 0) * 100}%` } }) }) })
|
|
2273
|
+
] }),
|
|
2274
|
+
/* @__PURE__ */ he("div", { className: "time", children: [
|
|
2275
|
+
/* @__PURE__ */ h("span", { children: new Date((r ?? 0) * 1e3).toISOString().substr(11, 8) }),
|
|
2276
|
+
/* @__PURE__ */ h("span", { children: " / " }),
|
|
2277
|
+
/* @__PURE__ */ h("span", { children: e ? new Date(e * 1e3).toISOString().substr(11, 8) : "" })
|
|
2278
|
+
] }),
|
|
2279
|
+
/* @__PURE__ */ h("div", { className: "custom-controls", children: k?.length ? k.map((s, B) => /* @__PURE__ */ h(s, {}, B)) : null }),
|
|
2280
|
+
/* @__PURE__ */ h("div", { className: "error-area", children: ye.length ? /* @__PURE__ */ he(tr, { children: [
|
|
2281
|
+
/* @__PURE__ */ h("div", { className: `error-menu ${f ? "hide" : ""}`, children: f ? null : ye }),
|
|
2282
|
+
/* @__PURE__ */ he("div", { className: "error-menu-button", onClick: xe, children: [
|
|
2283
|
+
/* @__PURE__ */ h(Qt, {}),
|
|
2284
|
+
"Error"
|
|
2285
|
+
] })
|
|
2286
|
+
] }) : null }),
|
|
2287
|
+
/* @__PURE__ */ h(rr, { id: "subtitle-button-tooltip", globalEventOff: "click", effect: "solid", place: "top", disable: !i, children: "Subtitles" }),
|
|
2288
|
+
/* @__PURE__ */ h("div", { className: "subtitle-area", children: N.length ? /* @__PURE__ */ he(tr, { children: [
|
|
2289
|
+
/* @__PURE__ */ h("div", { className: `subtitle-menu ${i ? "hide" : ""}`, children: i ? null : [...N, void 0].map(
|
|
2290
|
+
(s, B) => /* @__PURE__ */ h("button", { onClick: (C) => Pe(C, s, B), children: /* @__PURE__ */ h(Se, { subtitleTrack: s }) }, s ? B : "disabled")
|
|
2291
|
+
) }),
|
|
2292
|
+
/* @__PURE__ */ h("button", { className: "subtitle-menu-button", "data-tip": !0, "data-for": "subtitle-button-tooltip", onClick: Fe, children: /* @__PURE__ */ h(Se, { subtitleTrack: y }) })
|
|
2293
|
+
] }) : null }),
|
|
2294
|
+
/* @__PURE__ */ h(rr, { id: "pip-button-tooltip", effect: "solid", place: "top", children: "Picture in Picture" }),
|
|
2295
|
+
Me ? /* @__PURE__ */ h("button", { className: "picture-in-picture", "data-tip": !0, "data-for": "pip-button-tooltip", onClick: D, children: /* @__PURE__ */ he("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2296
|
+
/* @__PURE__ */ h("rect", { x: "2", y: "3", width: "21", height: "14", rx: "2", ry: "2" }),
|
|
2297
|
+
/* @__PURE__ */ h("rect", { x: "12.5", y: "8.5", width: "8", height: "6", rx: "2", ry: "2" })
|
|
2298
|
+
] }) }) : null,
|
|
2299
|
+
/* @__PURE__ */ h(rr, { id: "fullscreen-button-tooltip", effect: "solid", place: "top", children: S ? "Exit full screen (f)" : "Full screen (f)" }),
|
|
2300
|
+
/* @__PURE__ */ h("button", { className: "fullscreen", "data-tip": !0, "data-for": "fullscreen-button-tooltip", onClick: w, children: S ? /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-minimize", children: /* @__PURE__ */ h("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }) }) : /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-maximize", children: /* @__PURE__ */ h("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }) }) })
|
|
2301
|
+
] })
|
|
2302
|
+
] });
|
|
2303
|
+
}, ba = Mr`
|
|
2304
|
+
--background-padding: 2rem;
|
|
2305
|
+
display: grid;
|
|
2306
|
+
grid-template-rows: 1fr;
|
|
2307
|
+
overflow: hidden;
|
|
2308
|
+
|
|
2309
|
+
&.hide {
|
|
2310
|
+
cursor: none;
|
|
2311
|
+
|
|
2312
|
+
.bottom {
|
|
2313
|
+
opacity: 0;
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
.bottom {
|
|
2318
|
+
&.hide {
|
|
2319
|
+
opacity: 0 !important;
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
`, ya = ({
|
|
2323
|
+
customOverlay: e,
|
|
2324
|
+
isPlaying: r,
|
|
2325
|
+
loading: n,
|
|
2326
|
+
duration: a,
|
|
2327
|
+
loadedTime: o,
|
|
2328
|
+
currentTime: i,
|
|
2329
|
+
pictureInPicture: u,
|
|
2330
|
+
fullscreen: f,
|
|
2331
|
+
play: g,
|
|
2332
|
+
seek: b,
|
|
2333
|
+
getVolume: d,
|
|
2334
|
+
setVolume: v,
|
|
2335
|
+
attachments: N,
|
|
2336
|
+
tracks: S,
|
|
2337
|
+
video: w,
|
|
2338
|
+
errors: y,
|
|
2339
|
+
customControls: D,
|
|
2340
|
+
libassWorkerUrl: x,
|
|
2341
|
+
wasmUrl: k,
|
|
2342
|
+
needsInitialInteraction: P,
|
|
2343
|
+
...$
|
|
2344
|
+
}) => {
|
|
2345
|
+
const [l, q] = G(), [O, Le] = G(!1), [Ne, Me] = G(!1), [De, me] = G(!1), Z = qe(), [X, ge] = G(!0), [H, ke] = G(), [se, ne] = G(), ae = Wr(
|
|
2346
|
+
() => se !== void 0 ? S[se] : void 0,
|
|
2347
|
+
[se, se !== void 0 && S[se]?.data]
|
|
2348
|
+
), [Te, pe] = G(!0), Pe = (z) => {
|
|
2349
|
+
me(!1), Z.current && clearInterval(Z.current);
|
|
2350
|
+
const ue = setTimeout(() => {
|
|
2351
|
+
me(!0);
|
|
2352
|
+
}, 3e3);
|
|
2353
|
+
Z.current = ue;
|
|
2354
|
+
};
|
|
2355
|
+
ve(() => {
|
|
2356
|
+
setTimeout(() => {
|
|
2357
|
+
me(!0);
|
|
2358
|
+
}, 3e3);
|
|
2359
|
+
}, []);
|
|
2360
|
+
const Fe = (z) => {
|
|
2361
|
+
if (!l?.parentElement?.parentElement?.contains(z?.relatedTarget)) {
|
|
2362
|
+
me(!0);
|
|
2363
|
+
return;
|
|
2364
|
+
}
|
|
2365
|
+
z.currentTarget.parentElement !== z.relatedTarget && z.relatedTarget !== null || me(!0);
|
|
2366
|
+
}, xe = () => {
|
|
2367
|
+
X && g();
|
|
2368
|
+
}, Se = () => {
|
|
2369
|
+
!l || !H || (Me((z) => !z), f());
|
|
2370
|
+
};
|
|
2371
|
+
ve(() => {
|
|
2372
|
+
if (!w.current || !l || H || !ae?.data || !N)
|
|
2373
|
+
return;
|
|
2374
|
+
const z = N.map(({ filename: Ee, data: Be }) => [
|
|
2375
|
+
Ee.toLowerCase().replaceAll("-", " ").split(".").at(0),
|
|
2376
|
+
Be
|
|
2377
|
+
]), ue = new Ht({
|
|
2378
|
+
video: w.current,
|
|
2379
|
+
canvas: l,
|
|
2380
|
+
subContent: ae.data,
|
|
2381
|
+
fonts: z.filter(Boolean).map(([, Ee]) => Ee),
|
|
2382
|
+
availableFonts: { ...Object.fromEntries(z), "liberation sans": new URL("/build/default.woff2", new URL(window.location.toString()).origin).toString() },
|
|
2383
|
+
workerUrl: x,
|
|
2384
|
+
modernWasmUrl: k
|
|
2385
|
+
});
|
|
2386
|
+
ke(ue);
|
|
2387
|
+
}, [l, N, ae?.data]), ve(() => {
|
|
2388
|
+
S.length && ne(0);
|
|
2389
|
+
}, [S.length]), ve(() => {
|
|
2390
|
+
if (!H)
|
|
2391
|
+
return;
|
|
2392
|
+
if (!ae) {
|
|
2393
|
+
H.freeTrack();
|
|
2394
|
+
return;
|
|
2395
|
+
}
|
|
2396
|
+
H.setTrack(ae.data), !(!l?.parentElement || O) && Le(!0);
|
|
2397
|
+
}, [H, ae, O]);
|
|
2398
|
+
const ye = (z) => {
|
|
2399
|
+
z && q(z);
|
|
2400
|
+
};
|
|
2401
|
+
return /* @__PURE__ */ he("div", { ...$, css: ba, onMouseMove: Pe, onMouseOut: Fe, className: `chrome ${$.className ?? ""} ${De ? "hide" : ""}`, children: [
|
|
2402
|
+
/* @__PURE__ */ h(ma, { needsInitialInteraction: P, loading: n, togglePlay: xe, setCanvasRef: ye }),
|
|
2403
|
+
e,
|
|
2404
|
+
/* @__PURE__ */ h(
|
|
2405
|
+
va,
|
|
2406
|
+
{
|
|
2407
|
+
className: `bottom ${P ? "hide" : ""}`,
|
|
2408
|
+
toggleFullscreen: Se,
|
|
2409
|
+
togglePlay: xe,
|
|
2410
|
+
isFullscreen: Ne,
|
|
2411
|
+
pictureInPicture: u,
|
|
2412
|
+
seek: b,
|
|
2413
|
+
setCurrentSubtitleTrack: ne,
|
|
2414
|
+
isSubtitleMenuHidden: X,
|
|
2415
|
+
setIsSubtitleMenuHidden: ge,
|
|
2416
|
+
isErrorMenuHidden: Te,
|
|
2417
|
+
setIsErrorMenuHidden: pe,
|
|
2418
|
+
setVolume: v,
|
|
2419
|
+
subtitleTrack: ae,
|
|
2420
|
+
tracks: S,
|
|
2421
|
+
currentTime: i,
|
|
2422
|
+
duration: a,
|
|
2423
|
+
isPlaying: r,
|
|
2424
|
+
loadedTime: o,
|
|
2425
|
+
errors: y,
|
|
2426
|
+
customControls: D
|
|
2427
|
+
}
|
|
2428
|
+
)
|
|
2429
|
+
] });
|
|
2430
|
+
}, Ea = 5e6, Pr = 10, nr = 20, wa = 60, Na = Mr`
|
|
2431
|
+
display: grid;
|
|
2432
|
+
justify-content: center;
|
|
2433
|
+
background-color: #111;
|
|
2434
|
+
|
|
2435
|
+
video {
|
|
2436
|
+
pointer-events: none;
|
|
2437
|
+
grid-column: 1;
|
|
2438
|
+
grid-row: 1;
|
|
2439
|
+
|
|
2440
|
+
height: 100%;
|
|
2441
|
+
max-height: 100vh;
|
|
2442
|
+
max-width: 100%;
|
|
2443
|
+
background-color: black;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
.chrome {
|
|
2447
|
+
grid-column: 1;
|
|
2448
|
+
grid-row: 1;
|
|
2449
|
+
}
|
|
2450
|
+
`, Oa = Tt(({
|
|
2451
|
+
customOverlay: e,
|
|
2452
|
+
baseBufferSize: r = Ea,
|
|
2453
|
+
size: n,
|
|
2454
|
+
fetch: a,
|
|
2455
|
+
customControls: o,
|
|
2456
|
+
publicPath: i,
|
|
2457
|
+
wasmUrl: u,
|
|
2458
|
+
libavWorkerUrl: f,
|
|
2459
|
+
libavWorkerOptions: g,
|
|
2460
|
+
libassWorkerUrl: b,
|
|
2461
|
+
makeTransmuxer: d = Gt
|
|
2462
|
+
}, v) => {
|
|
2463
|
+
const [N, S] = G(!0), w = qe(null), y = qe(), [D, x] = G(), [k, P] = G(!(y?.current?.paused ?? !0)), [$, l] = G(0), [q, O] = G(void 0), [Le, Ne] = G([]), [Me, De] = G([]), [me, Z] = G(), [X, ge] = G([0, 0]), H = qe(), [ke, se] = G(!1), ne = qe(a);
|
|
2464
|
+
ve(() => {
|
|
2465
|
+
ne.current = a;
|
|
2466
|
+
}, [a]), ve(() => {
|
|
2467
|
+
if (!n || !D)
|
|
2468
|
+
return;
|
|
2469
|
+
let C, Ce;
|
|
2470
|
+
return (async () => {
|
|
2471
|
+
let Oe = qt();
|
|
2472
|
+
Oe.onError = (p) => console.error("mp4box error", p);
|
|
2473
|
+
let sr;
|
|
2474
|
+
const kr = new Promise((p) => {
|
|
2475
|
+
sr = p;
|
|
2476
|
+
});
|
|
2477
|
+
let je = 'video/mp4; codecs="', Ge;
|
|
2478
|
+
Oe.onReady = (p) => {
|
|
2479
|
+
Ge = p;
|
|
2480
|
+
for (let _ = 0; _ < Ge.tracks.length; _++)
|
|
2481
|
+
_ !== 0 && (je += ","), je += Ge.tracks[_].codec;
|
|
2482
|
+
je += '"', sr(Ge);
|
|
2483
|
+
};
|
|
2484
|
+
let ze, ce = [];
|
|
2485
|
+
C = d({
|
|
2486
|
+
publicPath: i,
|
|
2487
|
+
workerUrl: f,
|
|
2488
|
+
workerOptions: g,
|
|
2489
|
+
bufferSize: r,
|
|
2490
|
+
length: n,
|
|
2491
|
+
read: (p, _) => ne.current(p, Math.min(p + _, n) - 1).then((R) => R.arrayBuffer()),
|
|
2492
|
+
seek: async (p, _, R) => R === Rr.SEEK_CUR ? p + _ : R === Rr.SEEK_END ? -1 : R === Rr.SEEK_SET ? _ : R === Rr.AVSEEK_SIZE ? n : -1,
|
|
2493
|
+
subtitle: (p, _, R) => {
|
|
2494
|
+
Ne(
|
|
2495
|
+
(U) => U.find(({ title: Q }) => Q === p) ? U.map((Q) => Q.title === p ? { title: p, language: _, data: R } : Q) : [...U, { title: p, language: _, data: R }]
|
|
2496
|
+
);
|
|
2497
|
+
},
|
|
2498
|
+
attachment: (p, _, R) => {
|
|
2499
|
+
q?.find(({ filename: U }) => p === U) || O((U) => [
|
|
2500
|
+
...U ?? [],
|
|
2501
|
+
{ filename: p, mimetype: _, data: new Uint8Array(R) }
|
|
2502
|
+
]);
|
|
2503
|
+
},
|
|
2504
|
+
write: ({ isHeader: p, offset: _, buffer: R, pts: U, duration: Q, pos: A }) => {
|
|
2505
|
+
if (p) {
|
|
2506
|
+
ze || (ze = {
|
|
2507
|
+
offset: _,
|
|
2508
|
+
buffer: new Uint8Array(R),
|
|
2509
|
+
pts: U,
|
|
2510
|
+
duration: Q,
|
|
2511
|
+
pos: A
|
|
2512
|
+
});
|
|
2513
|
+
return;
|
|
2514
|
+
}
|
|
2515
|
+
ce = [
|
|
2516
|
+
...ce,
|
|
2517
|
+
{
|
|
2518
|
+
offset: _,
|
|
2519
|
+
buffer: new Uint8Array(R),
|
|
2520
|
+
pts: U,
|
|
2521
|
+
duration: Q,
|
|
2522
|
+
pos: A
|
|
2523
|
+
}
|
|
2524
|
+
];
|
|
2525
|
+
}
|
|
2526
|
+
});
|
|
2527
|
+
const Ae = new st({ concurrency: 1 }), cr = (p = nr) => Ae.add(
|
|
2528
|
+
() => We.process(p),
|
|
2529
|
+
{ throwOnTimeout: !0 }
|
|
2530
|
+
), We = await C;
|
|
2531
|
+
if (await We.init(), !ze)
|
|
2532
|
+
throw new Error("No header chunk found after transmuxer init");
|
|
2533
|
+
ze.buffer.buffer.fileStart = 0, Oe.appendBuffer(ze.buffer.buffer);
|
|
2534
|
+
const He = (await We.getInfo()).input.duration / 1e6;
|
|
2535
|
+
Z(He), await kr;
|
|
2536
|
+
const oe = D;
|
|
2537
|
+
oe.addEventListener("error", (p) => {
|
|
2538
|
+
console.error(p.target?.error);
|
|
2539
|
+
});
|
|
2540
|
+
const Je = new MediaSource();
|
|
2541
|
+
D.src = URL.createObjectURL(Je);
|
|
2542
|
+
const fe = await new Promise(
|
|
2543
|
+
(p) => Je.addEventListener(
|
|
2544
|
+
"sourceopen",
|
|
2545
|
+
() => p(Je.addSourceBuffer(je)),
|
|
2546
|
+
{ once: !0 }
|
|
2547
|
+
)
|
|
2548
|
+
);
|
|
2549
|
+
Je.duration = He, fe.mode = "segments";
|
|
2550
|
+
const lr = new st({ concurrency: 1 }), Ue = () => Array(fe.buffered.length).fill(void 0).map((p, _) => ({
|
|
2551
|
+
index: _,
|
|
2552
|
+
start: fe.buffered.start(_),
|
|
2553
|
+
end: fe.buffered.end(_)
|
|
2554
|
+
})), Sr = (p, _) => {
|
|
2555
|
+
const R = (K) => {
|
|
2556
|
+
p(K), A();
|
|
2557
|
+
}, U = (K) => {
|
|
2558
|
+
p(K), A();
|
|
2559
|
+
}, Q = (K) => {
|
|
2560
|
+
console.error(K), _(K), A();
|
|
2561
|
+
}, A = () => {
|
|
2562
|
+
fe.removeEventListener("updateend", R), fe.removeEventListener("abort", U), fe.removeEventListener("error", Q);
|
|
2563
|
+
};
|
|
2564
|
+
fe.addEventListener("updateend", R, { once: !0 }), fe.addEventListener("abort", U, { once: !0 }), fe.addEventListener("error", Q, { once: !0 });
|
|
2565
|
+
}, _r = (p) => lr.add(
|
|
2566
|
+
() => new Promise((_, R) => {
|
|
2567
|
+
Sr(_, R), fe.appendBuffer(p);
|
|
2568
|
+
})
|
|
2569
|
+
), xr = (p) => _r(p.buffer.buffer), Ze = async (p, _) => lr.add(
|
|
2570
|
+
() => new Promise((R, U) => {
|
|
2571
|
+
Sr(R, U), fe.remove(p, _);
|
|
2572
|
+
})
|
|
2573
|
+
), Cr = (p) => Ze(p.pts, p.pts + p.duration), Br = async (p) => {
|
|
2574
|
+
if (ce.indexOf(p) === -1)
|
|
2575
|
+
throw new RangeError("No chunk found");
|
|
2576
|
+
await Cr(p), ce = ce.filter((R) => R !== p);
|
|
2577
|
+
};
|
|
2578
|
+
let Xe = !1;
|
|
2579
|
+
const ur = St(500, async (p) => {
|
|
2580
|
+
const _ = !oe.paused;
|
|
2581
|
+
D?.pause(), Xe = !0, l(p);
|
|
2582
|
+
const R = Ue();
|
|
2583
|
+
if (R.some(({ start: A, end: K }) => p >= A && p <= K)) {
|
|
2584
|
+
oe.currentTime = p, Xe = !1, _ && oe.play();
|
|
2585
|
+
return;
|
|
2586
|
+
}
|
|
2587
|
+
const U = new Promise((A) => {
|
|
2588
|
+
Ae.size && Ae.pending ? Ae.on(
|
|
2589
|
+
"next",
|
|
2590
|
+
() => Ae.pending === 0 ? A(void 0) : void 0
|
|
2591
|
+
) : A(void 0);
|
|
2592
|
+
});
|
|
2593
|
+
Ae.pause(), Ae.clear(), await U, Ae.start();
|
|
2594
|
+
const Q = Math.max(0, p - Pr);
|
|
2595
|
+
await We.seek(Q), await cr(nr + nr);
|
|
2596
|
+
for (const A of R)
|
|
2597
|
+
await Ze(A.start, A.end);
|
|
2598
|
+
for (const A of ce)
|
|
2599
|
+
A.pts <= Q || await xr(A);
|
|
2600
|
+
oe.currentTime = p, Xe = !1, _ && oe.play();
|
|
2601
|
+
});
|
|
2602
|
+
H.current = ur;
|
|
2603
|
+
const fr = async (p) => {
|
|
2604
|
+
const _ = Ue(), R = ce.filter(
|
|
2605
|
+
({ pts: Y, duration: te }) => p - Pr < Y && p + wa > Y + te
|
|
2606
|
+
), U = R.filter(
|
|
2607
|
+
({ pts: Y, duration: te }) => p - Pr < Y && p + nr > Y + te
|
|
2608
|
+
), Q = ce.filter(({ pts: Y, duration: te }) => _.some(({ start: gr, end: t }) => gr < Y + te / 2 && Y + te / 2 < t)).filter((Y) => !U.includes(Y)), A = ce.filter((Y) => !R.includes(Y));
|
|
2609
|
+
for (const Y of Q)
|
|
2610
|
+
await Cr(Y);
|
|
2611
|
+
for (const Y of A)
|
|
2612
|
+
await Br(Y);
|
|
2613
|
+
const K = R.sort(({ pts: Y }, { pts: te }) => Y - te).at(0), mr = R.sort(({ pts: Y, duration: te }, { pts: gr, duration: t }) => Y + te - (gr + t)).at(-1);
|
|
2614
|
+
for (const Y of U)
|
|
2615
|
+
try {
|
|
2616
|
+
await xr(Y);
|
|
2617
|
+
} catch (te) {
|
|
2618
|
+
if (console.error(te), !(te instanceof Event))
|
|
2619
|
+
throw te;
|
|
2620
|
+
break;
|
|
2621
|
+
}
|
|
2622
|
+
const Qe = K ? Math.max(K?.pts - Pr, 0) : void 0, Ke = mr ? Math.min(mr.pts + mr.duration + nr, He) : void 0, zr = Ue();
|
|
2623
|
+
for (const { start: Y, end: te } of zr)
|
|
2624
|
+
!Qe || !Ke || (Qe !== void 0 && Y < Qe && await Ze(Y, Qe), Ke !== void 0 && te > Ke && await Ze(Ke, te));
|
|
2625
|
+
}, Ye = new Promise((p) => {
|
|
2626
|
+
oe.addEventListener("loadedmetadata", () => p(void 0), { once: !0 });
|
|
2627
|
+
});
|
|
2628
|
+
oe.addEventListener(
|
|
2629
|
+
"canplay",
|
|
2630
|
+
() => oe.play().catch((p) => {
|
|
2631
|
+
!(p instanceof DOMException) || p.name !== "NotAllowedError" || (se(!0), S(!1));
|
|
2632
|
+
}),
|
|
2633
|
+
{ once: !0 }
|
|
2634
|
+
), await _r(ze.buffer), await Ye, await cr(20), await fr(0);
|
|
2635
|
+
const dr = St(500, async (p) => {
|
|
2636
|
+
const _ = ce.sort(({ pts: R }, { pts: U }) => R - U).at(-1);
|
|
2637
|
+
_ && _.pts < p + nr && await cr(), await fr(p);
|
|
2638
|
+
});
|
|
2639
|
+
oe.addEventListener("timeupdate", () => {
|
|
2640
|
+
Xe || dr(oe.currentTime);
|
|
2641
|
+
}), Ce = window.setInterval(() => {
|
|
2642
|
+
const p = Ue(), _ = p.sort(({ start: A }, { start: K }) => A - K).at(0), R = p.sort(({ end: A }, { end: K }) => A - K).at(-1);
|
|
2643
|
+
if (!_ || !R)
|
|
2644
|
+
return;
|
|
2645
|
+
let U = ce.filter(({ pts: A, duration: K }) => A + K / 2 > _.start).sort(({ pts: A }, { pts: K }) => A - K).at(0)?.pts, Q = ce.filter(({ pts: A, duration: K }) => A + K / 2 < R.end).sort(({ pts: A }, { pts: K }) => A - K).at(-1)?.pts;
|
|
2646
|
+
U === void 0 || Q === void 0 || ge([U, Q]);
|
|
2647
|
+
}, 200);
|
|
2648
|
+
})(), () => {
|
|
2649
|
+
C.then((Oe) => Oe.destroy(!0)), window.clearInterval(Ce);
|
|
2650
|
+
};
|
|
2651
|
+
}, [n, D]);
|
|
2652
|
+
const ae = (C) => {
|
|
2653
|
+
S(!0);
|
|
2654
|
+
}, [Te, pe] = G(!1), Pe = (C) => {
|
|
2655
|
+
pe(!1);
|
|
2656
|
+
}, Fe = (C) => {
|
|
2657
|
+
y.current && (pe(!0), l(y.current?.currentTime ?? 0));
|
|
2658
|
+
}, xe = (C) => {
|
|
2659
|
+
pe(!0), H.current?.(C);
|
|
2660
|
+
}, Se = (C) => {
|
|
2661
|
+
Te || (l(y.current?.currentTime ?? 0), S(!1));
|
|
2662
|
+
}, ye = (C) => (Ce) => {
|
|
2663
|
+
P(C);
|
|
2664
|
+
}, z = () => {
|
|
2665
|
+
if (document.pictureInPictureElement)
|
|
2666
|
+
return document.exitPictureInPicture();
|
|
2667
|
+
y.current?.requestPictureInPicture();
|
|
2668
|
+
}, ue = () => {
|
|
2669
|
+
if (document.fullscreenElement)
|
|
2670
|
+
return document.exitFullscreen();
|
|
2671
|
+
w.current?.requestFullscreen();
|
|
2672
|
+
}, Ee = async () => {
|
|
2673
|
+
se(!1), y.current?.paused ? await y.current?.play() : await y.current?.pause();
|
|
2674
|
+
}, Be = (C) => {
|
|
2675
|
+
y.current && (y.current.volume = C);
|
|
2676
|
+
}, s = () => {
|
|
2677
|
+
if (y.current)
|
|
2678
|
+
return y.current.volume;
|
|
2679
|
+
};
|
|
2680
|
+
return /* @__PURE__ */ he("div", { css: Na, ref: w, children: [
|
|
2681
|
+
/* @__PURE__ */ h(
|
|
2682
|
+
"video",
|
|
2683
|
+
{
|
|
2684
|
+
ref: (C) => {
|
|
2685
|
+
typeof v == "function" && v(C), v && "current" in v && (v.current = C), y.current = C ?? void 0, x(y.current);
|
|
2686
|
+
},
|
|
2687
|
+
onWaiting: ae,
|
|
2688
|
+
onSeeking: Fe,
|
|
2689
|
+
onSeeked: Pe,
|
|
2690
|
+
onTimeUpdate: Se,
|
|
2691
|
+
onPlay: ye(!0),
|
|
2692
|
+
onPause: ye(!1)
|
|
2693
|
+
}
|
|
2694
|
+
),
|
|
2695
|
+
/* @__PURE__ */ h(
|
|
2696
|
+
ya,
|
|
2697
|
+
{
|
|
2698
|
+
className: "chrome",
|
|
2699
|
+
customOverlay: e,
|
|
2700
|
+
isPlaying: k,
|
|
2701
|
+
video: y,
|
|
2702
|
+
needsInitialInteraction: ke,
|
|
2703
|
+
loading: N,
|
|
2704
|
+
duration: me,
|
|
2705
|
+
currentTime: $,
|
|
2706
|
+
loadedTime: X,
|
|
2707
|
+
pictureInPicture: z,
|
|
2708
|
+
fullscreen: ue,
|
|
2709
|
+
play: Ee,
|
|
2710
|
+
seek: xe,
|
|
2711
|
+
getVolume: s,
|
|
2712
|
+
setVolume: Be,
|
|
2713
|
+
attachments: q,
|
|
2714
|
+
tracks: Le,
|
|
2715
|
+
errors: Me,
|
|
2716
|
+
customControls: o,
|
|
2717
|
+
libassWorkerUrl: b,
|
|
2718
|
+
wasmUrl: u
|
|
2719
|
+
}
|
|
2720
|
+
)
|
|
2721
|
+
] });
|
|
2722
|
+
});
|
|
2723
|
+
export {
|
|
2724
|
+
Oa as default
|
|
2725
|
+
};
|