@banou/media-player 0.2.6 → 0.3.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/build/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as Fe from "react";
2
- import ht, { forwardRef as pt, useContext as Vt, useState as U, useEffect as pe, useRef as er, useMemo as Ir } from "react";
1
+ import * as Be from "react";
2
+ import ht, { forwardRef as pt, useContext as Vt, useState as q, useEffect as we, useRef as er, useMemo as Ir } from "react";
3
3
  import { css as kr } from "@emotion/react";
4
4
  import { makeRemuxer as Bt } from "libav-wasm";
5
5
  import zt from "jassub";
6
- import Ze from "react-tooltip";
7
6
  import { VolumeX as Jr, Volume2 as Yt, Volume1 as Ut, Volume as Wt, AlertTriangle as qt } from "react-feather";
7
+ import { Tooltip as ir } from "react-tooltip";
8
8
  import Gt from "p-queue";
9
9
  var $r = { exports: {} }, sr = {};
10
10
  /**
@@ -21,16 +21,16 @@ function Kt() {
21
21
  if (Xr)
22
22
  return sr;
23
23
  Xr = 1;
24
- var e = ht, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function l(u, d, v) {
26
- var m, h = {}, N = null, S = null;
27
- v !== void 0 && (N = "" + v), d.key !== void 0 && (N = "" + d.key), d.ref !== void 0 && (S = d.ref);
28
- for (m in d)
29
- a.call(d, m) && !o.hasOwnProperty(m) && (h[m] = d[m]);
30
- if (u && u.defaultProps)
31
- for (m in d = u.defaultProps, d)
32
- h[m] === void 0 && (h[m] = d[m]);
33
- return { $$typeof: r, type: u, key: N, ref: S, props: h, _owner: i.current };
24
+ var e = ht, r = Symbol.for("react.element"), t = 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 };
25
+ function l(c, f, g) {
26
+ var d, v = {}, k = null, x = null;
27
+ g !== void 0 && (k = "" + g), f.key !== void 0 && (k = "" + f.key), f.ref !== void 0 && (x = f.ref);
28
+ for (d in f)
29
+ a.call(f, d) && !i.hasOwnProperty(d) && (v[d] = f[d]);
30
+ if (c && c.defaultProps)
31
+ for (d in f = c.defaultProps, f)
32
+ v[d] === void 0 && (v[d] = f[d]);
33
+ return { $$typeof: r, type: c, key: k, ref: x, props: v, _owner: o.current };
34
34
  }
35
35
  return sr.Fragment = t, sr.jsx = l, sr.jsxs = l, sr;
36
36
  }
@@ -47,54 +47,54 @@ var cr = {};
47
47
  var Zr;
48
48
  function Ht() {
49
49
  return Zr || (Zr = 1, process.env.NODE_ENV !== "production" && function() {
50
- var e = ht, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), y = Symbol.iterator, b = "@@iterator";
51
- function x(n) {
50
+ var e = ht, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), y = Symbol.iterator, b = "@@iterator";
51
+ function N(n) {
52
52
  if (n === null || typeof n != "object")
53
53
  return null;
54
- var c = y && n[y] || n[b];
55
- return typeof c == "function" ? c : null;
54
+ var s = y && n[y] || n[b];
55
+ return typeof s == "function" ? s : null;
56
56
  }
57
- var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
- function k(n) {
57
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
+ function S(n) {
59
59
  {
60
- for (var c = arguments.length, g = new Array(c > 1 ? c - 1 : 0), w = 1; w < c; w++)
61
- g[w - 1] = arguments[w];
62
- O("error", n, g);
60
+ for (var s = arguments.length, m = new Array(s > 1 ? s - 1 : 0), w = 1; w < s; w++)
61
+ m[w - 1] = arguments[w];
62
+ O("error", n, m);
63
63
  }
64
64
  }
65
- function O(n, c, g) {
65
+ function O(n, s, m) {
66
66
  {
67
- var w = _.ReactDebugCurrentFrame, $ = w.getStackAddendum();
68
- $ !== "" && (c += "%s", g = g.concat([$]));
69
- var V = g.map(function(A) {
70
- return String(A);
67
+ var w = C.ReactDebugCurrentFrame, L = w.getStackAddendum();
68
+ L !== "" && (s += "%s", m = m.concat([L]));
69
+ var z = m.map(function(I) {
70
+ return String(I);
71
71
  });
72
- V.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, V);
72
+ z.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, z);
73
73
  }
74
74
  }
75
- var I = !1, f = !1, M = !1, R = !1, _e = !1, ye;
76
- ye = Symbol.for("react.module.reference");
77
- function Ie(n) {
78
- return !!(typeof n == "string" || typeof n == "function" || n === a || n === o || _e || n === i || n === v || n === m || R || n === S || I || f || M || typeof n == "object" && n !== null && (n.$$typeof === N || n.$$typeof === h || n.$$typeof === l || n.$$typeof === u || n.$$typeof === d || // This needs to include all possible module reference object
75
+ var $ = !1, u = !1, B = !1, _ = !1, $e = !1, ke;
76
+ ke = Symbol.for("react.module.reference");
77
+ function Le(n) {
78
+ return !!(typeof n == "string" || typeof n == "function" || n === a || n === i || $e || n === o || n === g || n === d || _ || n === x || $ || u || B || typeof n == "object" && n !== null && (n.$$typeof === k || n.$$typeof === v || n.$$typeof === l || n.$$typeof === c || n.$$typeof === f || // This needs to include all possible module reference object
79
79
  // types supported by any Flight configuration anywhere since
80
80
  // we don't know which Flight build this will end up being used
81
81
  // with.
82
- n.$$typeof === ye || n.getModuleId !== void 0));
82
+ n.$$typeof === ke || n.getModuleId !== void 0));
83
83
  }
84
- function $e(n, c, g) {
84
+ function Pe(n, s, m) {
85
85
  var w = n.displayName;
86
86
  if (w)
87
87
  return w;
88
- var $ = c.displayName || c.name || "";
89
- return $ !== "" ? g + "(" + $ + ")" : g;
88
+ var L = s.displayName || s.name || "";
89
+ return L !== "" ? m + "(" + L + ")" : m;
90
90
  }
91
- function Ce(n) {
91
+ function De(n) {
92
92
  return n.displayName || "Context";
93
93
  }
94
- function q(n) {
94
+ function ne(n) {
95
95
  if (n == null)
96
96
  return null;
97
- if (typeof n.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
97
+ if (typeof n.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
98
98
  return n.displayName || n.name || null;
99
99
  if (typeof n == "string")
100
100
  return n;
@@ -103,32 +103,32 @@ function Ht() {
103
103
  return "Fragment";
104
104
  case t:
105
105
  return "Portal";
106
- case o:
107
- return "Profiler";
108
106
  case i:
107
+ return "Profiler";
108
+ case o:
109
109
  return "StrictMode";
110
- case v:
110
+ case g:
111
111
  return "Suspense";
112
- case m:
112
+ case d:
113
113
  return "SuspenseList";
114
114
  }
115
115
  if (typeof n == "object")
116
116
  switch (n.$$typeof) {
117
- case u:
118
- var c = n;
119
- return Ce(c) + ".Consumer";
117
+ case c:
118
+ var s = n;
119
+ return De(s) + ".Consumer";
120
120
  case l:
121
- var g = n;
122
- return Ce(g._context) + ".Provider";
123
- case d:
124
- return $e(n, n.render, "ForwardRef");
125
- case h:
121
+ var m = n;
122
+ return De(m._context) + ".Provider";
123
+ case f:
124
+ return Pe(n, n.render, "ForwardRef");
125
+ case v:
126
126
  var w = n.displayName || null;
127
- return w !== null ? w : q(n.type) || "Memo";
128
- case N: {
129
- var $ = n, V = $._payload, A = $._init;
127
+ return w !== null ? w : ne(n.type) || "Memo";
128
+ case k: {
129
+ var L = n, z = L._payload, I = L._init;
130
130
  try {
131
- return q(A(V));
131
+ return ne(I(z));
132
132
  } catch {
133
133
  return null;
134
134
  }
@@ -136,18 +136,18 @@ function Ht() {
136
136
  }
137
137
  return null;
138
138
  }
139
- var K = Object.assign, oe = 0, ie, re, Ee, Q, we, ee, Ne;
140
- function Re() {
139
+ var X = Object.assign, ce = 0, Se, re, te, le, ae, be, K;
140
+ function ye() {
141
141
  }
142
- Re.__reactDisabledLog = !0;
143
- function Le() {
142
+ ye.__reactDisabledLog = !0;
143
+ function Me() {
144
144
  {
145
- if (oe === 0) {
146
- ie = console.log, re = console.info, Ee = console.warn, Q = console.error, we = console.group, ee = console.groupCollapsed, Ne = console.groupEnd;
145
+ if (ce === 0) {
146
+ Se = console.log, re = console.info, te = console.warn, le = console.error, ae = console.group, be = console.groupCollapsed, K = console.groupEnd;
147
147
  var n = {
148
148
  configurable: !0,
149
149
  enumerable: !0,
150
- value: Re,
150
+ value: ye,
151
151
  writable: !0
152
152
  };
153
153
  Object.defineProperties(console, {
@@ -160,336 +160,336 @@ function Ht() {
160
160
  groupEnd: n
161
161
  });
162
162
  }
163
- oe++;
163
+ ce++;
164
164
  }
165
165
  }
166
- function Te() {
166
+ function Fe() {
167
167
  {
168
- if (oe--, oe === 0) {
168
+ if (ce--, ce === 0) {
169
169
  var n = {
170
170
  configurable: !0,
171
171
  enumerable: !0,
172
172
  writable: !0
173
173
  };
174
174
  Object.defineProperties(console, {
175
- log: K({}, n, {
176
- value: ie
175
+ log: X({}, n, {
176
+ value: Se
177
177
  }),
178
- info: K({}, n, {
178
+ info: X({}, n, {
179
179
  value: re
180
180
  }),
181
- warn: K({}, n, {
182
- value: Ee
181
+ warn: X({}, n, {
182
+ value: te
183
183
  }),
184
- error: K({}, n, {
185
- value: Q
184
+ error: X({}, n, {
185
+ value: le
186
186
  }),
187
- group: K({}, n, {
188
- value: we
187
+ group: X({}, n, {
188
+ value: ae
189
189
  }),
190
- groupCollapsed: K({}, n, {
191
- value: ee
190
+ groupCollapsed: X({}, n, {
191
+ value: be
192
192
  }),
193
- groupEnd: K({}, n, {
194
- value: Ne
193
+ groupEnd: X({}, n, {
194
+ value: K
195
195
  })
196
196
  });
197
197
  }
198
- oe < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
198
+ ce < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
199
  }
200
200
  }
201
- var fe = _.ReactCurrentDispatcher, ke;
202
- function se(n, c, g) {
201
+ var ge = C.ReactCurrentDispatcher, xe;
202
+ function _e(n, s, m) {
203
203
  {
204
- if (ke === void 0)
204
+ if (xe === void 0)
205
205
  try {
206
206
  throw Error();
207
- } catch ($) {
208
- var w = $.stack.trim().match(/\n( *(at )?)/);
209
- ke = w && w[1] || "";
207
+ } catch (L) {
208
+ var w = L.stack.trim().match(/\n( *(at )?)/);
209
+ xe = w && w[1] || "";
210
210
  }
211
211
  return `
212
- ` + ke + n;
212
+ ` + xe + n;
213
213
  }
214
214
  }
215
- var z = !1, de;
215
+ var Ce = !1, Y;
216
216
  {
217
- var Oe = typeof WeakMap == "function" ? WeakMap : Map;
218
- de = new Oe();
217
+ var Ee = typeof WeakMap == "function" ? WeakMap : Map;
218
+ Y = new Ee();
219
219
  }
220
- function s(n, c) {
221
- if (!n || z)
220
+ function h(n, s) {
221
+ if (!n || Ce)
222
222
  return "";
223
223
  {
224
- var g = de.get(n);
225
- if (g !== void 0)
226
- return g;
224
+ var m = Y.get(n);
225
+ if (m !== void 0)
226
+ return m;
227
227
  }
228
228
  var w;
229
- z = !0;
230
- var $ = Error.prepareStackTrace;
229
+ Ce = !0;
230
+ var L = Error.prepareStackTrace;
231
231
  Error.prepareStackTrace = void 0;
232
- var V;
233
- V = fe.current, fe.current = null, Le();
232
+ var z;
233
+ z = ge.current, ge.current = null, Me();
234
234
  try {
235
- if (c) {
236
- var A = function() {
235
+ if (s) {
236
+ var I = function() {
237
237
  throw Error();
238
238
  };
239
- if (Object.defineProperty(A.prototype, "props", {
239
+ if (Object.defineProperty(I.prototype, "props", {
240
240
  set: function() {
241
241
  throw Error();
242
242
  }
243
243
  }), typeof Reflect == "object" && Reflect.construct) {
244
244
  try {
245
- Reflect.construct(A, []);
246
- } catch (Me) {
247
- w = Me;
245
+ Reflect.construct(I, []);
246
+ } catch (Ve) {
247
+ w = Ve;
248
248
  }
249
- Reflect.construct(n, [], A);
249
+ Reflect.construct(n, [], I);
250
250
  } else {
251
251
  try {
252
- A.call();
253
- } catch (Me) {
254
- w = Me;
252
+ I.call();
253
+ } catch (Ve) {
254
+ w = Ve;
255
255
  }
256
- n.call(A.prototype);
256
+ n.call(I.prototype);
257
257
  }
258
258
  } else {
259
259
  try {
260
260
  throw Error();
261
- } catch (Me) {
262
- w = Me;
261
+ } catch (Ve) {
262
+ w = Ve;
263
263
  }
264
264
  n();
265
265
  }
266
- } catch (Me) {
267
- if (Me && w && typeof Me.stack == "string") {
268
- for (var T = Me.stack.split(`
269
- `), ue = w.stack.split(`
270
- `), J = T.length - 1, X = ue.length - 1; J >= 1 && X >= 0 && T[J] !== ue[X]; )
271
- X--;
272
- for (; J >= 1 && X >= 0; J--, X--)
273
- if (T[J] !== ue[X]) {
274
- if (J !== 1 || X !== 1)
266
+ } catch (Ve) {
267
+ if (Ve && w && typeof Ve.stack == "string") {
268
+ for (var P = Ve.stack.split(`
269
+ `), me = w.stack.split(`
270
+ `), J = P.length - 1, Z = me.length - 1; J >= 1 && Z >= 0 && P[J] !== me[Z]; )
271
+ Z--;
272
+ for (; J >= 1 && Z >= 0; J--, Z--)
273
+ if (P[J] !== me[Z]) {
274
+ if (J !== 1 || Z !== 1)
275
275
  do
276
- if (J--, X--, X < 0 || T[J] !== ue[X]) {
277
- var Se = `
278
- ` + T[J].replace(" at new ", " at ");
279
- return n.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", n.displayName)), typeof n == "function" && de.set(n, Se), Se;
276
+ if (J--, Z--, Z < 0 || P[J] !== me[Z]) {
277
+ var Re = `
278
+ ` + P[J].replace(" at new ", " at ");
279
+ return n.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", n.displayName)), typeof n == "function" && Y.set(n, Re), Re;
280
280
  }
281
- while (J >= 1 && X >= 0);
281
+ while (J >= 1 && Z >= 0);
282
282
  break;
283
283
  }
284
284
  }
285
285
  } finally {
286
- z = !1, fe.current = V, Te(), Error.prepareStackTrace = $;
286
+ Ce = !1, ge.current = z, Fe(), Error.prepareStackTrace = L;
287
287
  }
288
- var Xe = n ? n.displayName || n.name : "", Hr = Xe ? se(Xe) : "";
289
- return typeof n == "function" && de.set(n, Hr), Hr;
288
+ var Ze = n ? n.displayName || n.name : "", Hr = Ze ? _e(Ze) : "";
289
+ return typeof n == "function" && Y.set(n, Hr), Hr;
290
290
  }
291
- function E(n, c, g) {
292
- return s(n, !1);
291
+ function V(n, s, m) {
292
+ return h(n, !1);
293
293
  }
294
- function W(n) {
295
- var c = n.prototype;
296
- return !!(c && c.isReactComponent);
294
+ function Te(n) {
295
+ var s = n.prototype;
296
+ return !!(s && s.isReactComponent);
297
297
  }
298
- function me(n, c, g) {
298
+ function ue(n, s, m) {
299
299
  if (n == null)
300
300
  return "";
301
301
  if (typeof n == "function")
302
- return s(n, W(n));
302
+ return h(n, Te(n));
303
303
  if (typeof n == "string")
304
- return se(n);
304
+ return _e(n);
305
305
  switch (n) {
306
- case v:
307
- return se("Suspense");
308
- case m:
309
- return se("SuspenseList");
306
+ case g:
307
+ return _e("Suspense");
308
+ case d:
309
+ return _e("SuspenseList");
310
310
  }
311
311
  if (typeof n == "object")
312
312
  switch (n.$$typeof) {
313
- case d:
314
- return E(n.render);
315
- case h:
316
- return me(n.type, c, g);
317
- case N: {
318
- var w = n, $ = w._payload, V = w._init;
313
+ case f:
314
+ return V(n.render);
315
+ case v:
316
+ return ue(n.type, s, m);
317
+ case k: {
318
+ var w = n, L = w._payload, z = w._init;
319
319
  try {
320
- return me(V($), c, g);
320
+ return ue(z(L), s, m);
321
321
  } catch {
322
322
  }
323
323
  }
324
324
  }
325
325
  return "";
326
326
  }
327
- var je = Object.prototype.hasOwnProperty, Ye = {}, ar = _.ReactDebugCurrentFrame;
328
- function De(n) {
327
+ var E = Object.prototype.hasOwnProperty, R = {}, ee = C.ReactDebugCurrentFrame;
328
+ function je(n) {
329
329
  if (n) {
330
- var c = n._owner, g = me(n.type, n._source, c ? c.type : null);
331
- ar.setExtraStackFrame(g);
330
+ var s = n._owner, m = ue(n.type, n._source, s ? s.type : null);
331
+ ee.setExtraStackFrame(m);
332
332
  } else
333
- ar.setExtraStackFrame(null);
333
+ ee.setExtraStackFrame(null);
334
334
  }
335
- function ge(n, c, g, w, $) {
335
+ function he(n, s, m, w, L) {
336
336
  {
337
- var V = Function.call.bind(je);
338
- for (var A in n)
339
- if (V(n, A)) {
340
- var T = void 0;
337
+ var z = Function.call.bind(E);
338
+ for (var I in n)
339
+ if (z(n, I)) {
340
+ var P = void 0;
341
341
  try {
342
- if (typeof n[A] != "function") {
343
- var ue = Error((w || "React class") + ": " + g + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
- throw ue.name = "Invariant Violation", ue;
342
+ if (typeof n[I] != "function") {
343
+ var me = Error((w || "React class") + ": " + m + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
+ throw me.name = "Invariant Violation", me;
345
345
  }
346
- T = n[A](c, A, w, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ P = n[I](s, I, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
347
  } catch (J) {
348
- T = J;
348
+ P = J;
349
349
  }
350
- T && !(T instanceof Error) && (De($), 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).", w || "React class", g, A, typeof T), De(null)), T instanceof Error && !(T.message in Ye) && (Ye[T.message] = !0, De($), k("Failed %s type: %s", g, T.message), De(null));
350
+ P && !(P instanceof Error) && (je(L), S("%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).", w || "React class", m, I, typeof P), je(null)), P instanceof Error && !(P.message in R) && (R[P.message] = !0, je(L), S("Failed %s type: %s", m, P.message), je(null));
351
351
  }
352
352
  }
353
353
  }
354
354
  var gr = Array.isArray;
355
- function Ue(n) {
355
+ function We(n) {
356
356
  return gr(n);
357
357
  }
358
- function We(n) {
358
+ function qe(n) {
359
359
  {
360
- var c = typeof Symbol == "function" && Symbol.toStringTag, g = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
361
- return g;
360
+ var s = typeof Symbol == "function" && Symbol.toStringTag, m = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
361
+ return m;
362
362
  }
363
363
  }
364
364
  function hr(n) {
365
365
  try {
366
- return or(n), !1;
366
+ return ar(n), !1;
367
367
  } catch {
368
368
  return !0;
369
369
  }
370
370
  }
371
- function or(n) {
371
+ function ar(n) {
372
372
  return "" + n;
373
373
  }
374
- function ce(n) {
374
+ function fe(n) {
375
375
  if (hr(n))
376
- return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(n)), or(n);
376
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(n)), ar(n);
377
377
  }
378
- var Ve = _.ReactCurrentOwner, Rr = {
378
+ var ze = C.ReactCurrentOwner, Rr = {
379
379
  key: !0,
380
380
  ref: !0,
381
381
  __self: !0,
382
382
  __source: !0
383
- }, qe, Ge, Be;
384
- Be = {};
385
- function Ke(n) {
386
- if (je.call(n, "ref")) {
387
- var c = Object.getOwnPropertyDescriptor(n, "ref").get;
388
- if (c && c.isReactWarning)
383
+ }, Ge, Ke, Ye;
384
+ Ye = {};
385
+ function He(n) {
386
+ if (E.call(n, "ref")) {
387
+ var s = Object.getOwnPropertyDescriptor(n, "ref").get;
388
+ if (s && s.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return n.ref !== void 0;
392
392
  }
393
- function ze(n) {
394
- if (je.call(n, "key")) {
395
- var c = Object.getOwnPropertyDescriptor(n, "key").get;
396
- if (c && c.isReactWarning)
393
+ function Ue(n) {
394
+ if (E.call(n, "key")) {
395
+ var s = Object.getOwnPropertyDescriptor(n, "key").get;
396
+ if (s && s.isReactWarning)
397
397
  return !1;
398
398
  }
399
399
  return n.key !== void 0;
400
400
  }
401
- function Tr(n, c) {
402
- if (typeof n.ref == "string" && Ve.current && c && Ve.current.stateNode !== c) {
403
- var g = q(Ve.current.type);
404
- Be[g] || (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', q(Ve.current.type), n.ref), Be[g] = !0);
401
+ function Tr(n, s) {
402
+ if (typeof n.ref == "string" && ze.current && s && ze.current.stateNode !== s) {
403
+ var m = ne(ze.current.type);
404
+ Ye[m] || (S('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', ne(ze.current.type), n.ref), Ye[m] = !0);
405
405
  }
406
406
  }
407
- function Or(n, c) {
407
+ function Or(n, s) {
408
408
  {
409
- var g = function() {
410
- qe || (qe = !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));
409
+ var m = function() {
410
+ Ge || (Ge = !0, S("%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)", s));
411
411
  };
412
- g.isReactWarning = !0, Object.defineProperty(n, "key", {
413
- get: g,
412
+ m.isReactWarning = !0, Object.defineProperty(n, "key", {
413
+ get: m,
414
414
  configurable: !0
415
415
  });
416
416
  }
417
417
  }
418
- function C(n, c) {
418
+ function T(n, s) {
419
419
  {
420
- var g = function() {
421
- Ge || (Ge = !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));
420
+ var m = function() {
421
+ Ke || (Ke = !0, S("%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)", s));
422
422
  };
423
- g.isReactWarning = !0, Object.defineProperty(n, "ref", {
424
- get: g,
423
+ m.isReactWarning = !0, Object.defineProperty(n, "ref", {
424
+ get: m,
425
425
  configurable: !0
426
426
  });
427
427
  }
428
428
  }
429
- var P = function(n, c, g, w, $, V, A) {
430
- var T = {
429
+ var A = function(n, s, m, w, L, z, I) {
430
+ var P = {
431
431
  // This tag allows us to uniquely identify this as a React Element
432
432
  $$typeof: r,
433
433
  // Built-in properties that belong on the element
434
434
  type: n,
435
- key: c,
436
- ref: g,
437
- props: A,
435
+ key: s,
436
+ ref: m,
437
+ props: I,
438
438
  // Record the component responsible for creating this element.
439
- _owner: V
439
+ _owner: z
440
440
  };
441
- return T._store = {}, Object.defineProperty(T._store, "validated", {
441
+ return P._store = {}, Object.defineProperty(P._store, "validated", {
442
442
  configurable: !1,
443
443
  enumerable: !1,
444
444
  writable: !0,
445
445
  value: !1
446
- }), Object.defineProperty(T, "_self", {
446
+ }), Object.defineProperty(P, "_self", {
447
447
  configurable: !1,
448
448
  enumerable: !1,
449
449
  writable: !1,
450
450
  value: w
451
- }), Object.defineProperty(T, "_source", {
451
+ }), Object.defineProperty(P, "_source", {
452
452
  configurable: !1,
453
453
  enumerable: !1,
454
454
  writable: !1,
455
- value: $
456
- }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
455
+ value: L
456
+ }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
457
457
  };
458
- function G(n, c, g, w, $) {
458
+ function G(n, s, m, w, L) {
459
459
  {
460
- var V, A = {}, T = null, ue = null;
461
- g !== void 0 && (ce(g), T = "" + g), ze(c) && (ce(c.key), T = "" + c.key), Ke(c) && (ue = c.ref, Tr(c, $));
462
- for (V in c)
463
- je.call(c, V) && !Rr.hasOwnProperty(V) && (A[V] = c[V]);
460
+ var z, I = {}, P = null, me = null;
461
+ m !== void 0 && (fe(m), P = "" + m), Ue(s) && (fe(s.key), P = "" + s.key), He(s) && (me = s.ref, Tr(s, L));
462
+ for (z in s)
463
+ E.call(s, z) && !Rr.hasOwnProperty(z) && (I[z] = s[z]);
464
464
  if (n && n.defaultProps) {
465
465
  var J = n.defaultProps;
466
- for (V in J)
467
- A[V] === void 0 && (A[V] = J[V]);
466
+ for (z in J)
467
+ I[z] === void 0 && (I[z] = J[z]);
468
468
  }
469
- if (T || ue) {
470
- var X = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
471
- T && Or(A, X), ue && C(A, X);
469
+ if (P || me) {
470
+ var Z = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
471
+ P && Or(I, Z), me && T(I, Z);
472
472
  }
473
- return P(n, T, ue, $, w, Ve.current, A);
473
+ return A(n, P, me, L, w, ze.current, I);
474
474
  }
475
475
  }
476
- var H = _.ReactCurrentOwner, le = _.ReactDebugCurrentFrame;
477
- function B(n) {
476
+ var H = C.ReactCurrentOwner, de = C.ReactDebugCurrentFrame;
477
+ function U(n) {
478
478
  if (n) {
479
- var c = n._owner, g = me(n.type, n._source, c ? c.type : null);
480
- le.setExtraStackFrame(g);
479
+ var s = n._owner, m = ue(n.type, n._source, s ? s.type : null);
480
+ de.setExtraStackFrame(m);
481
481
  } else
482
- le.setExtraStackFrame(null);
482
+ de.setExtraStackFrame(null);
483
483
  }
484
- var Y;
485
- Y = !1;
486
- function He(n) {
484
+ var W;
485
+ W = !1;
486
+ function Je(n) {
487
487
  return typeof n == "object" && n !== null && n.$$typeof === r;
488
488
  }
489
- function ne() {
489
+ function ie() {
490
490
  {
491
491
  if (H.current) {
492
- var n = q(H.current.type);
492
+ var n = ne(H.current.type);
493
493
  if (n)
494
494
  return `
495
495
 
@@ -498,13 +498,13 @@ Check the render method of \`` + n + "`.";
498
498
  return "";
499
499
  }
500
500
  }
501
- function Je(n) {
501
+ function Xe(n) {
502
502
  {
503
503
  if (n !== void 0) {
504
- var c = n.fileName.replace(/^.*[\\\/]/, ""), g = n.lineNumber;
504
+ var s = n.fileName.replace(/^.*[\\\/]/, ""), m = n.lineNumber;
505
505
  return `
506
506
 
507
- Check your code at ` + c + ":" + g + ".";
507
+ Check your code at ` + s + ":" + m + ".";
508
508
  }
509
509
  return "";
510
510
  }
@@ -512,120 +512,120 @@ Check your code at ` + c + ":" + g + ".";
512
512
  var Pr = {};
513
513
  function pr(n) {
514
514
  {
515
- var c = ne();
516
- if (!c) {
517
- var g = typeof n == "string" ? n : n.displayName || n.name;
518
- g && (c = `
515
+ var s = ie();
516
+ if (!s) {
517
+ var m = typeof n == "string" ? n : n.displayName || n.name;
518
+ m && (s = `
519
519
 
520
- Check the top-level render call using <` + g + ">.");
520
+ Check the top-level render call using <` + m + ">.");
521
521
  }
522
- return c;
522
+ return s;
523
523
  }
524
524
  }
525
- function ir(n, c) {
525
+ function or(n, s) {
526
526
  {
527
527
  if (!n._store || n._store.validated || n.key != null)
528
528
  return;
529
529
  n._store.validated = !0;
530
- var g = pr(c);
531
- if (Pr[g])
530
+ var m = pr(s);
531
+ if (Pr[m])
532
532
  return;
533
- Pr[g] = !0;
533
+ Pr[m] = !0;
534
534
  var w = "";
535
- n && n._owner && n._owner !== H.current && (w = " It was passed a child from " + q(n._owner.type) + "."), B(n), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, w), B(null);
535
+ n && n._owner && n._owner !== H.current && (w = " It was passed a child from " + ne(n._owner.type) + "."), U(n), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), U(null);
536
536
  }
537
537
  }
538
- function Gr(n, c) {
538
+ function Gr(n, s) {
539
539
  {
540
540
  if (typeof n != "object")
541
541
  return;
542
- if (Ue(n))
543
- for (var g = 0; g < n.length; g++) {
544
- var w = n[g];
545
- He(w) && ir(w, c);
542
+ if (We(n))
543
+ for (var m = 0; m < n.length; m++) {
544
+ var w = n[m];
545
+ Je(w) && or(w, s);
546
546
  }
547
- else if (He(n))
547
+ else if (Je(n))
548
548
  n._store && (n._store.validated = !0);
549
549
  else if (n) {
550
- var $ = x(n);
551
- if (typeof $ == "function" && $ !== n.entries)
552
- for (var V = $.call(n), A; !(A = V.next()).done; )
553
- He(A.value) && ir(A.value, c);
550
+ var L = N(n);
551
+ if (typeof L == "function" && L !== n.entries)
552
+ for (var z = L.call(n), I; !(I = z.next()).done; )
553
+ Je(I.value) && or(I.value, s);
554
554
  }
555
555
  }
556
556
  }
557
557
  function $t(n) {
558
558
  {
559
- var c = n.type;
560
- if (c == null || typeof c == "string")
559
+ var s = n.type;
560
+ if (s == null || typeof s == "string")
561
561
  return;
562
- var g;
563
- if (typeof c == "function")
564
- g = c.propTypes;
565
- else if (typeof c == "object" && (c.$$typeof === d || // Note: Memo only checks outer props here.
562
+ var m;
563
+ if (typeof s == "function")
564
+ m = s.propTypes;
565
+ else if (typeof s == "object" && (s.$$typeof === f || // Note: Memo only checks outer props here.
566
566
  // Inner props are checked in the reconciler.
567
- c.$$typeof === h))
568
- g = c.propTypes;
567
+ s.$$typeof === v))
568
+ m = s.propTypes;
569
569
  else
570
570
  return;
571
- if (g) {
572
- var w = q(c);
573
- ge(g, n.props, "prop", w, n);
574
- } else if (c.PropTypes !== void 0 && !Y) {
575
- Y = !0;
576
- var $ = q(c);
577
- k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
571
+ if (m) {
572
+ var w = ne(s);
573
+ he(m, n.props, "prop", w, n);
574
+ } else if (s.PropTypes !== void 0 && !W) {
575
+ W = !0;
576
+ var L = ne(s);
577
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", L || "Unknown");
578
578
  }
579
- typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
579
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
580
  }
581
581
  }
582
582
  function Lt(n) {
583
583
  {
584
- for (var c = Object.keys(n.props), g = 0; g < c.length; g++) {
585
- var w = c[g];
584
+ for (var s = Object.keys(n.props), m = 0; m < s.length; m++) {
585
+ var w = s[m];
586
586
  if (w !== "children" && w !== "key") {
587
- B(n), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), B(null);
587
+ U(n), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), U(null);
588
588
  break;
589
589
  }
590
590
  }
591
- n.ref !== null && (B(n), k("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
591
+ n.ref !== null && (U(n), S("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
592
592
  }
593
593
  }
594
- function Kr(n, c, g, w, $, V) {
594
+ function Kr(n, s, m, w, L, z) {
595
595
  {
596
- var A = Ie(n);
597
- if (!A) {
598
- var T = "";
599
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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.");
600
- var ue = Je($);
601
- ue ? T += ue : T += ne();
596
+ var I = Le(n);
597
+ if (!I) {
598
+ var P = "";
599
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
+ var me = Xe(L);
601
+ me ? P += me : P += ie();
602
602
  var J;
603
- n === null ? J = "null" : Ue(n) ? J = "array" : n !== void 0 && n.$$typeof === r ? (J = "<" + (q(n.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : J = typeof n, 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);
603
+ n === null ? J = "null" : We(n) ? J = "array" : n !== void 0 && n.$$typeof === r ? (J = "<" + (ne(n.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : J = typeof n, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, P);
604
604
  }
605
- var X = G(n, c, g, $, V);
606
- if (X == null)
607
- return X;
608
- if (A) {
609
- var Se = c.children;
610
- if (Se !== void 0)
605
+ var Z = G(n, s, m, L, z);
606
+ if (Z == null)
607
+ return Z;
608
+ if (I) {
609
+ var Re = s.children;
610
+ if (Re !== void 0)
611
611
  if (w)
612
- if (Ue(Se)) {
613
- for (var Xe = 0; Xe < Se.length; Xe++)
614
- Gr(Se[Xe], n);
615
- Object.freeze && Object.freeze(Se);
612
+ if (We(Re)) {
613
+ for (var Ze = 0; Ze < Re.length; Ze++)
614
+ Gr(Re[Ze], n);
615
+ Object.freeze && Object.freeze(Re);
616
616
  } else
617
- 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.");
617
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
618
  else
619
- Gr(Se, n);
619
+ Gr(Re, n);
620
620
  }
621
- return n === a ? Lt(X) : $t(X), X;
621
+ return n === a ? Lt(Z) : $t(Z), Z;
622
622
  }
623
623
  }
624
- function Dt(n, c, g) {
625
- return Kr(n, c, g, !0);
624
+ function Dt(n, s, m) {
625
+ return Kr(n, s, m, !0);
626
626
  }
627
- function Mt(n, c, g) {
628
- return Kr(n, c, g, !1);
627
+ function Mt(n, s, m) {
628
+ return Kr(n, s, m, !1);
629
629
  }
630
630
  var Ft = Mt, jt = Dt;
631
631
  cr.Fragment = a, cr.jsx = Ft, cr.jsxs = jt;
@@ -648,9 +648,9 @@ function Zt(e) {
648
648
  var Qt = /* @__PURE__ */ function() {
649
649
  function e(t) {
650
650
  var a = this;
651
- this._insertTag = function(i) {
652
- var o;
653
- a.tags.length === 0 ? a.insertionPoint ? o = a.insertionPoint.nextSibling : a.prepend ? o = a.container.firstChild : o = a.before : o = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(i, o), a.tags.push(i);
651
+ this._insertTag = function(o) {
652
+ var i;
653
+ 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);
654
654
  }, this.isSpeedy = t.speedy === void 0 ? process.env.NODE_ENV === "production" : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
655
655
  }
656
656
  var r = e.prototype;
@@ -658,30 +658,30 @@ var Qt = /* @__PURE__ */ function() {
658
658
  a.forEach(this._insertTag);
659
659
  }, r.insert = function(a) {
660
660
  this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Zt(this));
661
- var i = this.tags[this.tags.length - 1];
661
+ var o = this.tags[this.tags.length - 1];
662
662
  if (process.env.NODE_ENV !== "production") {
663
- var o = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
664
- o && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
665
- ` + 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 || !o;
663
+ var i = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
664
+ i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
665
+ ` + 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;
666
666
  }
667
667
  if (this.isSpeedy) {
668
- var l = Xt(i);
668
+ var l = Xt(o);
669
669
  try {
670
670
  l.insertRule(a, l.cssRules.length);
671
- } catch (u) {
672
- 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 + '"', u);
671
+ } catch (c) {
672
+ 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 + '"', c);
673
673
  }
674
674
  } else
675
- i.appendChild(document.createTextNode(a));
675
+ o.appendChild(document.createTextNode(a));
676
676
  this.ctr++;
677
677
  }, r.flush = function() {
678
678
  this.tags.forEach(function(a) {
679
679
  return a.parentNode && a.parentNode.removeChild(a);
680
680
  }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
681
681
  }, e;
682
- }(), ae = "-ms-", wr = "-moz-", L = "-webkit-", Br = "comm", zr = "rule", Yr = "decl", en = "@import", vt = "@keyframes", rn = "@layer", tn = Math.abs, Sr = String.fromCharCode, nn = Object.assign;
682
+ }(), se = "-ms-", wr = "-moz-", D = "-webkit-", Br = "comm", zr = "rule", Yr = "decl", en = "@import", vt = "@keyframes", rn = "@layer", tn = Math.abs, Sr = String.fromCharCode, nn = Object.assign;
683
683
  function an(e, r) {
684
- return te(e, 0) ^ 45 ? (((r << 2 ^ te(e, 0)) << 2 ^ te(e, 1)) << 2 ^ te(e, 2)) << 2 ^ te(e, 3) : 0;
684
+ return oe(e, 0) ^ 45 ? (((r << 2 ^ oe(e, 0)) << 2 ^ oe(e, 1)) << 2 ^ oe(e, 2)) << 2 ^ oe(e, 3) : 0;
685
685
  }
686
686
  function bt(e) {
687
687
  return e.trim();
@@ -689,19 +689,19 @@ function bt(e) {
689
689
  function on(e, r) {
690
690
  return (e = r.exec(e)) ? e[0] : e;
691
691
  }
692
- function D(e, r, t) {
692
+ function M(e, r, t) {
693
693
  return e.replace(r, t);
694
694
  }
695
695
  function Lr(e, r) {
696
696
  return e.indexOf(r);
697
697
  }
698
- function te(e, r) {
698
+ function oe(e, r) {
699
699
  return e.charCodeAt(r) | 0;
700
700
  }
701
701
  function ur(e, r, t) {
702
702
  return e.slice(r, t);
703
703
  }
704
- function Pe(e) {
704
+ function Ae(e) {
705
705
  return e.length;
706
706
  }
707
707
  function Ur(e) {
@@ -713,24 +713,24 @@ function vr(e, r) {
713
713
  function sn(e, r) {
714
714
  return e.map(r).join("");
715
715
  }
716
- var xr = 1, tr = 1, yt = 0, ve = 0, Z = 0, nr = "";
717
- function _r(e, r, t, a, i, o, l) {
718
- return { value: e, root: r, parent: t, type: a, props: i, children: o, line: xr, column: tr, length: l, return: "" };
716
+ var xr = 1, tr = 1, yt = 0, ve = 0, Q = 0, nr = "";
717
+ function _r(e, r, t, a, o, i, l) {
718
+ return { value: e, root: r, parent: t, type: a, props: o, children: i, line: xr, column: tr, length: l, return: "" };
719
719
  }
720
720
  function lr(e, r) {
721
721
  return nn(_r("", null, null, "", null, null, 0), e, { length: -e.length }, r);
722
722
  }
723
723
  function cn() {
724
- return Z;
724
+ return Q;
725
725
  }
726
726
  function ln() {
727
- return Z = ve > 0 ? te(nr, --ve) : 0, tr--, Z === 10 && (tr = 1, xr--), Z;
727
+ return Q = ve > 0 ? oe(nr, --ve) : 0, tr--, Q === 10 && (tr = 1, xr--), Q;
728
728
  }
729
- function be() {
730
- return Z = ve < yt ? te(nr, ve++) : 0, tr++, Z === 10 && (tr = 1, xr++), Z;
729
+ function Ne() {
730
+ return Q = ve < yt ? oe(nr, ve++) : 0, tr++, Q === 10 && (tr = 1, xr++), Q;
731
731
  }
732
- function Ae() {
733
- return te(nr, ve);
732
+ function Ie() {
733
+ return oe(nr, ve);
734
734
  }
735
735
  function br() {
736
736
  return ve;
@@ -771,7 +771,7 @@ function fr(e) {
771
771
  return 0;
772
772
  }
773
773
  function Et(e) {
774
- return xr = tr = 1, yt = Pe(nr = e), ve = 0, [];
774
+ return xr = tr = 1, yt = Ae(nr = e), ve = 0, [];
775
775
  }
776
776
  function wt(e) {
777
777
  return nr = "", e;
@@ -780,141 +780,141 @@ function yr(e) {
780
780
  return bt(mr(ve - 1, Dr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
781
781
  }
782
782
  function un(e) {
783
- for (; (Z = Ae()) && Z < 33; )
784
- be();
785
- return fr(e) > 2 || fr(Z) > 3 ? "" : " ";
783
+ for (; (Q = Ie()) && Q < 33; )
784
+ Ne();
785
+ return fr(e) > 2 || fr(Q) > 3 ? "" : " ";
786
786
  }
787
787
  function fn(e, r) {
788
- for (; --r && be() && !(Z < 48 || Z > 102 || Z > 57 && Z < 65 || Z > 70 && Z < 97); )
788
+ for (; --r && Ne() && !(Q < 48 || Q > 102 || Q > 57 && Q < 65 || Q > 70 && Q < 97); )
789
789
  ;
790
- return mr(e, br() + (r < 6 && Ae() == 32 && be() == 32));
790
+ return mr(e, br() + (r < 6 && Ie() == 32 && Ne() == 32));
791
791
  }
792
792
  function Dr(e) {
793
- for (; be(); )
794
- switch (Z) {
793
+ for (; Ne(); )
794
+ switch (Q) {
795
795
  case e:
796
796
  return ve;
797
797
  case 34:
798
798
  case 39:
799
- e !== 34 && e !== 39 && Dr(Z);
799
+ e !== 34 && e !== 39 && Dr(Q);
800
800
  break;
801
801
  case 40:
802
802
  e === 41 && Dr(e);
803
803
  break;
804
804
  case 92:
805
- be();
805
+ Ne();
806
806
  break;
807
807
  }
808
808
  return ve;
809
809
  }
810
810
  function dn(e, r) {
811
- for (; be() && e + Z !== 47 + 10; )
812
- if (e + Z === 42 + 42 && Ae() === 47)
811
+ for (; Ne() && e + Q !== 47 + 10; )
812
+ if (e + Q === 42 + 42 && Ie() === 47)
813
813
  break;
814
- return "/*" + mr(r, ve - 1) + "*" + Sr(e === 47 ? e : be());
814
+ return "/*" + mr(r, ve - 1) + "*" + Sr(e === 47 ? e : Ne());
815
815
  }
816
816
  function mn(e) {
817
- for (; !fr(Ae()); )
818
- be();
817
+ for (; !fr(Ie()); )
818
+ Ne();
819
819
  return mr(e, ve);
820
820
  }
821
821
  function gn(e) {
822
822
  return wt(Er("", null, null, null, [""], e = Et(e), 0, [0], e));
823
823
  }
824
- function Er(e, r, t, a, i, o, l, u, d) {
825
- for (var v = 0, m = 0, h = l, N = 0, S = 0, y = 0, b = 1, x = 1, _ = 1, k = 0, O = "", I = i, f = o, M = a, R = O; x; )
826
- switch (y = k, k = be()) {
824
+ function Er(e, r, t, a, o, i, l, c, f) {
825
+ for (var g = 0, d = 0, v = l, k = 0, x = 0, y = 0, b = 1, N = 1, C = 1, S = 0, O = "", $ = o, u = i, B = a, _ = O; N; )
826
+ switch (y = S, S = Ne()) {
827
827
  case 40:
828
- if (y != 108 && te(R, h - 1) == 58) {
829
- Lr(R += D(yr(k), "&", "&\f"), "&\f") != -1 && (_ = -1);
828
+ if (y != 108 && oe(_, v - 1) == 58) {
829
+ Lr(_ += M(yr(S), "&", "&\f"), "&\f") != -1 && (C = -1);
830
830
  break;
831
831
  }
832
832
  case 34:
833
833
  case 39:
834
834
  case 91:
835
- R += yr(k);
835
+ _ += yr(S);
836
836
  break;
837
837
  case 9:
838
838
  case 10:
839
839
  case 13:
840
840
  case 32:
841
- R += un(y);
841
+ _ += un(y);
842
842
  break;
843
843
  case 92:
844
- R += fn(br() - 1, 7);
844
+ _ += fn(br() - 1, 7);
845
845
  continue;
846
846
  case 47:
847
- switch (Ae()) {
847
+ switch (Ie()) {
848
848
  case 42:
849
849
  case 47:
850
- vr(hn(dn(be(), br()), r, t), d);
850
+ vr(hn(dn(Ne(), br()), r, t), f);
851
851
  break;
852
852
  default:
853
- R += "/";
853
+ _ += "/";
854
854
  }
855
855
  break;
856
856
  case 123 * b:
857
- u[v++] = Pe(R) * _;
857
+ c[g++] = Ae(_) * C;
858
858
  case 125 * b:
859
859
  case 59:
860
860
  case 0:
861
- switch (k) {
861
+ switch (S) {
862
862
  case 0:
863
863
  case 125:
864
- x = 0;
865
- case 59 + m:
866
- _ == -1 && (R = D(R, /\f/g, "")), S > 0 && Pe(R) - h && vr(S > 32 ? tt(R + ";", a, t, h - 1) : tt(D(R, " ", "") + ";", a, t, h - 2), d);
864
+ N = 0;
865
+ case 59 + d:
866
+ C == -1 && (_ = M(_, /\f/g, "")), x > 0 && Ae(_) - v && vr(x > 32 ? tt(_ + ";", a, t, v - 1) : tt(M(_, " ", "") + ";", a, t, v - 2), f);
867
867
  break;
868
868
  case 59:
869
- R += ";";
869
+ _ += ";";
870
870
  default:
871
- if (vr(M = rt(R, r, t, v, m, i, u, O, I = [], f = [], h), o), k === 123)
872
- if (m === 0)
873
- Er(R, r, M, M, I, o, h, u, f);
871
+ if (vr(B = rt(_, r, t, g, d, o, c, O, $ = [], u = [], v), i), S === 123)
872
+ if (d === 0)
873
+ Er(_, r, B, B, $, i, v, c, u);
874
874
  else
875
- switch (N === 99 && te(R, 3) === 110 ? 100 : N) {
875
+ switch (k === 99 && oe(_, 3) === 110 ? 100 : k) {
876
876
  case 100:
877
877
  case 108:
878
878
  case 109:
879
879
  case 115:
880
- Er(e, M, M, a && vr(rt(e, M, M, 0, 0, i, u, O, i, I = [], h), f), i, f, h, u, a ? I : f);
880
+ Er(e, B, B, a && vr(rt(e, B, B, 0, 0, o, c, O, o, $ = [], v), u), o, u, v, c, a ? $ : u);
881
881
  break;
882
882
  default:
883
- Er(R, M, M, M, [""], f, 0, u, f);
883
+ Er(_, B, B, B, [""], u, 0, c, u);
884
884
  }
885
885
  }
886
- v = m = S = 0, b = _ = 1, O = R = "", h = l;
886
+ g = d = x = 0, b = C = 1, O = _ = "", v = l;
887
887
  break;
888
888
  case 58:
889
- h = 1 + Pe(R), S = y;
889
+ v = 1 + Ae(_), x = y;
890
890
  default:
891
891
  if (b < 1) {
892
- if (k == 123)
892
+ if (S == 123)
893
893
  --b;
894
- else if (k == 125 && b++ == 0 && ln() == 125)
894
+ else if (S == 125 && b++ == 0 && ln() == 125)
895
895
  continue;
896
896
  }
897
- switch (R += Sr(k), k * b) {
897
+ switch (_ += Sr(S), S * b) {
898
898
  case 38:
899
- _ = m > 0 ? 1 : (R += "\f", -1);
899
+ C = d > 0 ? 1 : (_ += "\f", -1);
900
900
  break;
901
901
  case 44:
902
- u[v++] = (Pe(R) - 1) * _, _ = 1;
902
+ c[g++] = (Ae(_) - 1) * C, C = 1;
903
903
  break;
904
904
  case 64:
905
- Ae() === 45 && (R += yr(be())), N = Ae(), m = h = Pe(O = R += mn(br())), k++;
905
+ Ie() === 45 && (_ += yr(Ne())), k = Ie(), d = v = Ae(O = _ += mn(br())), S++;
906
906
  break;
907
907
  case 45:
908
- y === 45 && Pe(R) == 2 && (b = 0);
908
+ y === 45 && Ae(_) == 2 && (b = 0);
909
909
  }
910
910
  }
911
- return o;
911
+ return i;
912
912
  }
913
- function rt(e, r, t, a, i, o, l, u, d, v, m) {
914
- for (var h = i - 1, N = i === 0 ? o : [""], S = Ur(N), y = 0, b = 0, x = 0; y < a; ++y)
915
- for (var _ = 0, k = ur(e, h + 1, h = tn(b = l[y])), O = e; _ < S; ++_)
916
- (O = bt(b > 0 ? N[_] + " " + k : D(k, /&\f/g, N[_]))) && (d[x++] = O);
917
- return _r(e, r, t, i === 0 ? zr : u, d, v, m);
913
+ function rt(e, r, t, a, o, i, l, c, f, g, d) {
914
+ for (var v = o - 1, k = o === 0 ? i : [""], x = Ur(k), y = 0, b = 0, N = 0; y < a; ++y)
915
+ for (var C = 0, S = ur(e, v + 1, v = tn(b = l[y])), O = e; C < x; ++C)
916
+ (O = bt(b > 0 ? k[C] + " " + S : M(S, /&\f/g, k[C]))) && (f[N++] = O);
917
+ return _r(e, r, t, o === 0 ? zr : c, f, g, d);
918
918
  }
919
919
  function hn(e, r, t) {
920
920
  return _r(e, r, t, Br, Sr(cn()), ur(e, 2, -2), 0);
@@ -923,8 +923,8 @@ function tt(e, r, t, a) {
923
923
  return _r(e, r, t, Yr, ur(e, 0, a), ur(e, a + 1, -1), a);
924
924
  }
925
925
  function rr(e, r) {
926
- for (var t = "", a = Ur(e), i = 0; i < a; i++)
927
- t += r(e[i], i, e, r) || "";
926
+ for (var t = "", a = Ur(e), o = 0; o < a; o++)
927
+ t += r(e[o], o, e, r) || "";
928
928
  return t;
929
929
  }
930
930
  function pn(e, r, t, a) {
@@ -942,13 +942,13 @@ function pn(e, r, t, a) {
942
942
  case zr:
943
943
  e.value = e.props.join(",");
944
944
  }
945
- return Pe(t = rr(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
945
+ return Ae(t = rr(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
946
946
  }
947
947
  function vn(e) {
948
948
  var r = Ur(e);
949
- return function(t, a, i, o) {
950
- for (var l = "", u = 0; u < r; u++)
951
- l += e[u](t, a, i, o) || "";
949
+ return function(t, a, o, i) {
950
+ for (var l = "", c = 0; c < r; c++)
951
+ l += e[c](t, a, o, i) || "";
952
952
  return l;
953
953
  };
954
954
  }
@@ -964,28 +964,28 @@ function yn(e) {
964
964
  };
965
965
  }
966
966
  var En = function(r, t, a) {
967
- for (var i = 0, o = 0; i = o, o = Ae(), i === 38 && o === 12 && (t[a] = 1), !fr(o); )
968
- be();
967
+ for (var o = 0, i = 0; o = i, i = Ie(), o === 38 && i === 12 && (t[a] = 1), !fr(i); )
968
+ Ne();
969
969
  return mr(r, ve);
970
970
  }, wn = function(r, t) {
971
- var a = -1, i = 44;
971
+ var a = -1, o = 44;
972
972
  do
973
- switch (fr(i)) {
973
+ switch (fr(o)) {
974
974
  case 0:
975
- i === 38 && Ae() === 12 && (t[a] = 1), r[a] += En(ve - 1, t, a);
975
+ o === 38 && Ie() === 12 && (t[a] = 1), r[a] += En(ve - 1, t, a);
976
976
  break;
977
977
  case 2:
978
- r[a] += yr(i);
978
+ r[a] += yr(o);
979
979
  break;
980
980
  case 4:
981
- if (i === 44) {
982
- r[++a] = Ae() === 58 ? "&\f" : "", t[a] = r[a].length;
981
+ if (o === 44) {
982
+ r[++a] = Ie() === 58 ? "&\f" : "", t[a] = r[a].length;
983
983
  break;
984
984
  }
985
985
  default:
986
- r[a] += Sr(i);
986
+ r[a] += Sr(o);
987
987
  }
988
- while (i = be());
988
+ while (o = Ne());
989
989
  return r;
990
990
  }, Nn = function(r, t) {
991
991
  return wt(wn(Et(r), t));
@@ -993,14 +993,14 @@ var En = function(r, t, a) {
993
993
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
994
994
  // negative .length indicates that this rule has been already prefixed
995
995
  r.length < 1)) {
996
- for (var t = r.value, a = r.parent, i = r.column === a.column && r.line === a.line; a.type !== "rule"; )
996
+ for (var t = r.value, a = r.parent, o = r.column === a.column && r.line === a.line; a.type !== "rule"; )
997
997
  if (a = a.parent, !a)
998
998
  return;
999
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !nt.get(a)) && !i) {
999
+ if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !nt.get(a)) && !o) {
1000
1000
  nt.set(r, !0);
1001
- for (var o = [], l = Nn(t, o), u = a.props, d = 0, v = 0; d < l.length; d++)
1002
- for (var m = 0; m < u.length; m++, v++)
1003
- r.props[v] = o[d] ? l[d].replace(/&\f/g, u[m]) : u[m] + " " + l[d];
1001
+ for (var i = [], l = Nn(t, i), c = a.props, f = 0, g = 0; f < l.length; f++)
1002
+ for (var d = 0; d < c.length; d++, g++)
1003
+ r.props[g] = i[f] ? l[f].replace(/&\f/g, c[d]) : c[d] + " " + l[f];
1004
1004
  }
1005
1005
  }
1006
1006
  }, Sn = function(r) {
@@ -1013,25 +1013,25 @@ var En = function(r, t, a) {
1013
1013
  }, xn = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", _n = function(r) {
1014
1014
  return r.type === "comm" && r.children.indexOf(xn) > -1;
1015
1015
  }, Cn = function(r) {
1016
- return function(t, a, i) {
1016
+ return function(t, a, o) {
1017
1017
  if (!(t.type !== "rule" || r.compat)) {
1018
- var o = t.value.match(/(:first|:nth|:nth-last)-child/g);
1019
- if (o) {
1020
- for (var l = !!t.parent, u = l ? t.parent.children : (
1018
+ var i = t.value.match(/(:first|:nth|:nth-last)-child/g);
1019
+ if (i) {
1020
+ for (var l = !!t.parent, c = l ? t.parent.children : (
1021
1021
  // global rule at the root level
1022
- i
1023
- ), d = u.length - 1; d >= 0; d--) {
1024
- var v = u[d];
1025
- if (v.line < t.line)
1022
+ o
1023
+ ), f = c.length - 1; f >= 0; f--) {
1024
+ var g = c[f];
1025
+ if (g.line < t.line)
1026
1026
  break;
1027
- if (v.column < t.column) {
1028
- if (_n(v))
1027
+ if (g.column < t.column) {
1028
+ if (_n(g))
1029
1029
  return;
1030
1030
  break;
1031
1031
  }
1032
1032
  }
1033
- o.forEach(function(m) {
1034
- console.error('The pseudo class "' + m + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + m.split("-child")[0] + '-of-type".');
1033
+ i.forEach(function(d) {
1034
+ console.error('The pseudo class "' + d + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + d.split("-child")[0] + '-of-type".');
1035
1035
  });
1036
1036
  }
1037
1037
  }
@@ -1051,7 +1051,7 @@ var En = function(r, t, a) {
1051
1051
  function kt(e, r) {
1052
1052
  switch (an(e, r)) {
1053
1053
  case 5103:
1054
- return L + "print-" + e + e;
1054
+ return D + "print-" + e + e;
1055
1055
  case 5737:
1056
1056
  case 4201:
1057
1057
  case 3177:
@@ -1077,44 +1077,44 @@ function kt(e, r) {
1077
1077
  case 5365:
1078
1078
  case 5621:
1079
1079
  case 3829:
1080
- return L + e + e;
1080
+ return D + e + e;
1081
1081
  case 5349:
1082
1082
  case 4246:
1083
1083
  case 4810:
1084
1084
  case 6968:
1085
1085
  case 2756:
1086
- return L + e + wr + e + ae + e + e;
1086
+ return D + e + wr + e + se + e + e;
1087
1087
  case 6828:
1088
1088
  case 4268:
1089
- return L + e + ae + e + e;
1089
+ return D + e + se + e + e;
1090
1090
  case 6165:
1091
- return L + e + ae + "flex-" + e + e;
1091
+ return D + e + se + "flex-" + e + e;
1092
1092
  case 5187:
1093
- return L + e + D(e, /(\w+).+(:[^]+)/, L + "box-$1$2" + ae + "flex-$1$2") + e;
1093
+ return D + e + M(e, /(\w+).+(:[^]+)/, D + "box-$1$2" + se + "flex-$1$2") + e;
1094
1094
  case 5443:
1095
- return L + e + ae + "flex-item-" + D(e, /flex-|-self/, "") + e;
1095
+ return D + e + se + "flex-item-" + M(e, /flex-|-self/, "") + e;
1096
1096
  case 4675:
1097
- return L + e + ae + "flex-line-pack" + D(e, /align-content|flex-|-self/, "") + e;
1097
+ return D + e + se + "flex-line-pack" + M(e, /align-content|flex-|-self/, "") + e;
1098
1098
  case 5548:
1099
- return L + e + ae + D(e, "shrink", "negative") + e;
1099
+ return D + e + se + M(e, "shrink", "negative") + e;
1100
1100
  case 5292:
1101
- return L + e + ae + D(e, "basis", "preferred-size") + e;
1101
+ return D + e + se + M(e, "basis", "preferred-size") + e;
1102
1102
  case 6060:
1103
- return L + "box-" + D(e, "-grow", "") + L + e + ae + D(e, "grow", "positive") + e;
1103
+ return D + "box-" + M(e, "-grow", "") + D + e + se + M(e, "grow", "positive") + e;
1104
1104
  case 4554:
1105
- return L + D(e, /([^-])(transform)/g, "$1" + L + "$2") + e;
1105
+ return D + M(e, /([^-])(transform)/g, "$1" + D + "$2") + e;
1106
1106
  case 6187:
1107
- return D(D(D(e, /(zoom-|grab)/, L + "$1"), /(image-set)/, L + "$1"), e, "") + e;
1107
+ return M(M(M(e, /(zoom-|grab)/, D + "$1"), /(image-set)/, D + "$1"), e, "") + e;
1108
1108
  case 5495:
1109
1109
  case 3959:
1110
- return D(e, /(image-set\([^]*)/, L + "$1$`$1");
1110
+ return M(e, /(image-set\([^]*)/, D + "$1$`$1");
1111
1111
  case 4968:
1112
- return D(D(e, /(.+:)(flex-)?(.*)/, L + "box-pack:$3" + ae + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + L + e + e;
1112
+ return M(M(e, /(.+:)(flex-)?(.*)/, D + "box-pack:$3" + se + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + D + e + e;
1113
1113
  case 4095:
1114
1114
  case 3583:
1115
1115
  case 4068:
1116
1116
  case 2532:
1117
- return D(e, /(.+)-inline(.+)/, L + "$1$2") + e;
1117
+ return M(e, /(.+)-inline(.+)/, D + "$1$2") + e;
1118
1118
  case 8116:
1119
1119
  case 7059:
1120
1120
  case 5753:
@@ -1127,42 +1127,42 @@ function kt(e, r) {
1127
1127
  case 5789:
1128
1128
  case 5021:
1129
1129
  case 4765:
1130
- if (Pe(e) - 1 - r > 6)
1131
- switch (te(e, r + 1)) {
1130
+ if (Ae(e) - 1 - r > 6)
1131
+ switch (oe(e, r + 1)) {
1132
1132
  case 109:
1133
- if (te(e, r + 4) !== 45)
1133
+ if (oe(e, r + 4) !== 45)
1134
1134
  break;
1135
1135
  case 102:
1136
- return D(e, /(.+:)(.+)-([^]+)/, "$1" + L + "$2-$3$1" + wr + (te(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1136
+ return M(e, /(.+:)(.+)-([^]+)/, "$1" + D + "$2-$3$1" + wr + (oe(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1137
1137
  case 115:
1138
- return ~Lr(e, "stretch") ? kt(D(e, "stretch", "fill-available"), r) + e : e;
1138
+ return ~Lr(e, "stretch") ? kt(M(e, "stretch", "fill-available"), r) + e : e;
1139
1139
  }
1140
1140
  break;
1141
1141
  case 4949:
1142
- if (te(e, r + 1) !== 115)
1142
+ if (oe(e, r + 1) !== 115)
1143
1143
  break;
1144
1144
  case 6444:
1145
- switch (te(e, Pe(e) - 3 - (~Lr(e, "!important") && 10))) {
1145
+ switch (oe(e, Ae(e) - 3 - (~Lr(e, "!important") && 10))) {
1146
1146
  case 107:
1147
- return D(e, ":", ":" + L) + e;
1147
+ return M(e, ":", ":" + D) + e;
1148
1148
  case 101:
1149
- return D(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + L + (te(e, 14) === 45 ? "inline-" : "") + "box$3$1" + L + "$2$3$1" + ae + "$2box$3") + e;
1149
+ return M(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + D + (oe(e, 14) === 45 ? "inline-" : "") + "box$3$1" + D + "$2$3$1" + se + "$2box$3") + e;
1150
1150
  }
1151
1151
  break;
1152
1152
  case 5936:
1153
- switch (te(e, r + 11)) {
1153
+ switch (oe(e, r + 11)) {
1154
1154
  case 114:
1155
- return L + e + ae + D(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1155
+ return D + e + se + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1156
1156
  case 108:
1157
- return L + e + ae + D(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1157
+ return D + e + se + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1158
1158
  case 45:
1159
- return L + e + ae + D(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1159
+ return D + e + se + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1160
1160
  }
1161
- return L + e + ae + e + e;
1161
+ return D + e + se + e + e;
1162
1162
  }
1163
1163
  return e;
1164
1164
  }
1165
- var On = function(r, t, a, i) {
1165
+ var On = function(r, t, a, o) {
1166
1166
  if (r.length > -1 && !r.return)
1167
1167
  switch (r.type) {
1168
1168
  case Yr:
@@ -1170,25 +1170,25 @@ var On = function(r, t, a, i) {
1170
1170
  break;
1171
1171
  case vt:
1172
1172
  return rr([lr(r, {
1173
- value: D(r.value, "@", "@" + L)
1174
- })], i);
1173
+ value: M(r.value, "@", "@" + D)
1174
+ })], o);
1175
1175
  case zr:
1176
1176
  if (r.length)
1177
- return sn(r.props, function(o) {
1178
- switch (on(o, /(::plac\w+|:read-\w+)/)) {
1177
+ return sn(r.props, function(i) {
1178
+ switch (on(i, /(::plac\w+|:read-\w+)/)) {
1179
1179
  case ":read-only":
1180
1180
  case ":read-write":
1181
1181
  return rr([lr(r, {
1182
- props: [D(o, /:(read-\w+)/, ":" + wr + "$1")]
1183
- })], i);
1182
+ props: [M(i, /:(read-\w+)/, ":" + wr + "$1")]
1183
+ })], o);
1184
1184
  case "::placeholder":
1185
1185
  return rr([lr(r, {
1186
- props: [D(o, /:(plac\w+)/, ":" + L + "input-$1")]
1186
+ props: [M(i, /:(plac\w+)/, ":" + D + "input-$1")]
1187
1187
  }), lr(r, {
1188
- props: [D(o, /:(plac\w+)/, ":" + wr + "$1")]
1188
+ props: [M(i, /:(plac\w+)/, ":" + wr + "$1")]
1189
1189
  }), lr(r, {
1190
- props: [D(o, /:(plac\w+)/, ae + "input-$1")]
1191
- })], i);
1190
+ props: [M(i, /:(plac\w+)/, se + "input-$1")]
1191
+ })], o);
1192
1192
  }
1193
1193
  return "";
1194
1194
  });
@@ -1201,44 +1201,44 @@ If multiple caches share the same key they might "fight" for each other's style
1201
1201
  if (t === "css") {
1202
1202
  var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
1203
1203
  Array.prototype.forEach.call(a, function(b) {
1204
- var x = b.getAttribute("data-emotion");
1205
- x.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
1204
+ var N = b.getAttribute("data-emotion");
1205
+ N.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
1206
1206
  });
1207
1207
  }
1208
- var i = r.stylisPlugins || Pn;
1208
+ var o = r.stylisPlugins || Pn;
1209
1209
  if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
1210
1210
  throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
1211
- var o = {}, l, u = [];
1211
+ var i = {}, l, c = [];
1212
1212
  l = r.container || document.head, Array.prototype.forEach.call(
1213
1213
  // this means we will ignore elements which don't have a space in them which
1214
1214
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1215
1215
  document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
1216
1216
  function(b) {
1217
- for (var x = b.getAttribute("data-emotion").split(" "), _ = 1; _ < x.length; _++)
1218
- o[x[_]] = !0;
1219
- u.push(b);
1217
+ for (var N = b.getAttribute("data-emotion").split(" "), C = 1; C < N.length; C++)
1218
+ i[N[C]] = !0;
1219
+ c.push(b);
1220
1220
  }
1221
1221
  );
1222
- var d, v = [kn, Sn];
1223
- process.env.NODE_ENV !== "production" && v.push(Cn({
1222
+ var f, g = [kn, Sn];
1223
+ process.env.NODE_ENV !== "production" && g.push(Cn({
1224
1224
  get compat() {
1225
1225
  return y.compat;
1226
1226
  }
1227
1227
  }), Tn);
1228
1228
  {
1229
- var m, h = [pn, process.env.NODE_ENV !== "production" ? function(b) {
1230
- b.root || (b.return ? m.insert(b.return) : b.value && b.type !== Br && m.insert(b.value + "{}"));
1229
+ var d, v = [pn, process.env.NODE_ENV !== "production" ? function(b) {
1230
+ b.root || (b.return ? d.insert(b.return) : b.value && b.type !== Br && d.insert(b.value + "{}"));
1231
1231
  } : bn(function(b) {
1232
- m.insert(b);
1233
- })], N = vn(v.concat(i, h)), S = function(x) {
1234
- return rr(gn(x), N);
1232
+ d.insert(b);
1233
+ })], k = vn(g.concat(o, v)), x = function(N) {
1234
+ return rr(gn(N), k);
1235
1235
  };
1236
- d = function(x, _, k, O) {
1237
- m = k, process.env.NODE_ENV !== "production" && _.map !== void 0 && (m = {
1238
- insert: function(f) {
1239
- k.insert(f + _.map);
1236
+ f = function(N, C, S, O) {
1237
+ d = S, process.env.NODE_ENV !== "production" && C.map !== void 0 && (d = {
1238
+ insert: function(u) {
1239
+ S.insert(u + C.map);
1240
1240
  }
1241
- }), S(x ? x + "{" + _.styles + "}" : _.styles), O && (y.inserted[_.name] = !0);
1241
+ }), x(N ? N + "{" + C.styles + "}" : C.styles), O && (y.inserted[C.name] = !0);
1242
1242
  };
1243
1243
  }
1244
1244
  var y = {
@@ -1252,11 +1252,11 @@ If multiple caches share the same key they might "fight" for each other's style
1252
1252
  insertionPoint: r.insertionPoint
1253
1253
  }),
1254
1254
  nonce: r.nonce,
1255
- inserted: o,
1255
+ inserted: i,
1256
1256
  registered: {},
1257
- insert: d
1257
+ insert: f
1258
1258
  };
1259
- return y.sheet.hydrate(u), y;
1259
+ return y.sheet.hydrate(c), y;
1260
1260
  }, Mr = { exports: {} }, F = {};
1261
1261
  /** @license React v16.13.1
1262
1262
  * react-is.production.min.js
@@ -1271,66 +1271,66 @@ function In() {
1271
1271
  if (ot)
1272
1272
  return F;
1273
1273
  ot = 1;
1274
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
1275
- function O(f) {
1276
- if (typeof f == "object" && f !== null) {
1277
- var M = f.$$typeof;
1278
- switch (M) {
1274
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = 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, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
1275
+ function O(u) {
1276
+ if (typeof u == "object" && u !== null) {
1277
+ var B = u.$$typeof;
1278
+ switch (B) {
1279
1279
  case r:
1280
- switch (f = f.type, f) {
1281
- case d:
1282
- case v:
1280
+ switch (u = u.type, u) {
1281
+ case f:
1282
+ case g:
1283
1283
  case a:
1284
- case o:
1285
1284
  case i:
1286
- case h:
1287
- return f;
1285
+ case o:
1286
+ case v:
1287
+ return u;
1288
1288
  default:
1289
- switch (f = f && f.$$typeof, f) {
1290
- case u:
1291
- case m:
1289
+ switch (u = u && u.$$typeof, u) {
1290
+ case c:
1291
+ case d:
1292
1292
  case y:
1293
- case S:
1293
+ case x:
1294
1294
  case l:
1295
- return f;
1295
+ return u;
1296
1296
  default:
1297
- return M;
1297
+ return B;
1298
1298
  }
1299
1299
  }
1300
1300
  case t:
1301
- return M;
1301
+ return B;
1302
1302
  }
1303
1303
  }
1304
1304
  }
1305
- function I(f) {
1306
- return O(f) === v;
1305
+ function $(u) {
1306
+ return O(u) === g;
1307
1307
  }
1308
- return F.AsyncMode = d, F.ConcurrentMode = v, F.ContextConsumer = u, F.ContextProvider = l, F.Element = r, F.ForwardRef = m, F.Fragment = a, F.Lazy = y, F.Memo = S, F.Portal = t, F.Profiler = o, F.StrictMode = i, F.Suspense = h, F.isAsyncMode = function(f) {
1309
- return I(f) || O(f) === d;
1310
- }, F.isConcurrentMode = I, F.isContextConsumer = function(f) {
1311
- return O(f) === u;
1312
- }, F.isContextProvider = function(f) {
1313
- return O(f) === l;
1314
- }, F.isElement = function(f) {
1315
- return typeof f == "object" && f !== null && f.$$typeof === r;
1316
- }, F.isForwardRef = function(f) {
1317
- return O(f) === m;
1318
- }, F.isFragment = function(f) {
1319
- return O(f) === a;
1320
- }, F.isLazy = function(f) {
1321
- return O(f) === y;
1322
- }, F.isMemo = function(f) {
1323
- return O(f) === S;
1324
- }, F.isPortal = function(f) {
1325
- return O(f) === t;
1326
- }, F.isProfiler = function(f) {
1327
- return O(f) === o;
1328
- }, F.isStrictMode = function(f) {
1329
- return O(f) === i;
1330
- }, F.isSuspense = function(f) {
1331
- return O(f) === h;
1332
- }, F.isValidElementType = function(f) {
1333
- return typeof f == "string" || typeof f == "function" || f === a || f === v || f === o || f === i || f === h || f === N || typeof f == "object" && f !== null && (f.$$typeof === y || f.$$typeof === S || f.$$typeof === l || f.$$typeof === u || f.$$typeof === m || f.$$typeof === x || f.$$typeof === _ || f.$$typeof === k || f.$$typeof === b);
1308
+ return F.AsyncMode = f, F.ConcurrentMode = g, F.ContextConsumer = c, F.ContextProvider = l, F.Element = r, F.ForwardRef = d, F.Fragment = a, F.Lazy = y, F.Memo = x, F.Portal = t, F.Profiler = i, F.StrictMode = o, F.Suspense = v, F.isAsyncMode = function(u) {
1309
+ return $(u) || O(u) === f;
1310
+ }, F.isConcurrentMode = $, F.isContextConsumer = function(u) {
1311
+ return O(u) === c;
1312
+ }, F.isContextProvider = function(u) {
1313
+ return O(u) === l;
1314
+ }, F.isElement = function(u) {
1315
+ return typeof u == "object" && u !== null && u.$$typeof === r;
1316
+ }, F.isForwardRef = function(u) {
1317
+ return O(u) === d;
1318
+ }, F.isFragment = function(u) {
1319
+ return O(u) === a;
1320
+ }, F.isLazy = function(u) {
1321
+ return O(u) === y;
1322
+ }, F.isMemo = function(u) {
1323
+ return O(u) === x;
1324
+ }, F.isPortal = function(u) {
1325
+ return O(u) === t;
1326
+ }, F.isProfiler = function(u) {
1327
+ return O(u) === i;
1328
+ }, F.isStrictMode = function(u) {
1329
+ return O(u) === o;
1330
+ }, F.isSuspense = function(u) {
1331
+ return O(u) === v;
1332
+ }, F.isValidElementType = function(u) {
1333
+ return typeof u == "string" || typeof u == "function" || u === a || u === g || u === i || u === o || u === v || u === k || typeof u == "object" && u !== null && (u.$$typeof === y || u.$$typeof === x || u.$$typeof === l || u.$$typeof === c || u.$$typeof === d || u.$$typeof === N || u.$$typeof === C || u.$$typeof === S || u.$$typeof === b);
1334
1334
  }, F.typeOf = O, F;
1335
1335
  }
1336
1336
  var j = {};
@@ -1345,84 +1345,84 @@ var j = {};
1345
1345
  var it;
1346
1346
  function $n() {
1347
1347
  return it || (it = 1, process.env.NODE_ENV !== "production" && function() {
1348
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, N = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
1349
- function O(s) {
1350
- return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1351
- s === a || s === v || s === o || s === i || s === h || s === N || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === S || s.$$typeof === l || s.$$typeof === u || s.$$typeof === m || s.$$typeof === x || s.$$typeof === _ || s.$$typeof === k || s.$$typeof === b);
1352
- }
1353
- function I(s) {
1354
- if (typeof s == "object" && s !== null) {
1355
- var E = s.$$typeof;
1356
- switch (E) {
1348
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = 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, l = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, k = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
1349
+ function O(h) {
1350
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1351
+ h === a || h === g || h === i || h === o || h === v || h === k || typeof h == "object" && h !== null && (h.$$typeof === y || h.$$typeof === x || h.$$typeof === l || h.$$typeof === c || h.$$typeof === d || h.$$typeof === N || h.$$typeof === C || h.$$typeof === S || h.$$typeof === b);
1352
+ }
1353
+ function $(h) {
1354
+ if (typeof h == "object" && h !== null) {
1355
+ var V = h.$$typeof;
1356
+ switch (V) {
1357
1357
  case r:
1358
- var W = s.type;
1359
- switch (W) {
1360
- case d:
1361
- case v:
1358
+ var Te = h.type;
1359
+ switch (Te) {
1360
+ case f:
1361
+ case g:
1362
1362
  case a:
1363
- case o:
1364
1363
  case i:
1365
- case h:
1366
- return W;
1364
+ case o:
1365
+ case v:
1366
+ return Te;
1367
1367
  default:
1368
- var me = W && W.$$typeof;
1369
- switch (me) {
1370
- case u:
1371
- case m:
1368
+ var ue = Te && Te.$$typeof;
1369
+ switch (ue) {
1370
+ case c:
1371
+ case d:
1372
1372
  case y:
1373
- case S:
1373
+ case x:
1374
1374
  case l:
1375
- return me;
1375
+ return ue;
1376
1376
  default:
1377
- return E;
1377
+ return V;
1378
1378
  }
1379
1379
  }
1380
1380
  case t:
1381
- return E;
1381
+ return V;
1382
1382
  }
1383
1383
  }
1384
1384
  }
1385
- var f = d, M = v, R = u, _e = l, ye = r, Ie = m, $e = a, Ce = y, q = S, K = t, oe = o, ie = i, re = h, Ee = !1;
1386
- function Q(s) {
1387
- return Ee || (Ee = !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.")), we(s) || I(s) === d;
1385
+ var u = f, B = g, _ = c, $e = l, ke = r, Le = d, Pe = a, De = y, ne = x, X = t, ce = i, Se = o, re = v, te = !1;
1386
+ function le(h) {
1387
+ return te || (te = !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(h) || $(h) === f;
1388
1388
  }
1389
- function we(s) {
1390
- return I(s) === v;
1389
+ function ae(h) {
1390
+ return $(h) === g;
1391
1391
  }
1392
- function ee(s) {
1393
- return I(s) === u;
1392
+ function be(h) {
1393
+ return $(h) === c;
1394
1394
  }
1395
- function Ne(s) {
1396
- return I(s) === l;
1395
+ function K(h) {
1396
+ return $(h) === l;
1397
1397
  }
1398
- function Re(s) {
1399
- return typeof s == "object" && s !== null && s.$$typeof === r;
1398
+ function ye(h) {
1399
+ return typeof h == "object" && h !== null && h.$$typeof === r;
1400
1400
  }
1401
- function Le(s) {
1402
- return I(s) === m;
1401
+ function Me(h) {
1402
+ return $(h) === d;
1403
1403
  }
1404
- function Te(s) {
1405
- return I(s) === a;
1404
+ function Fe(h) {
1405
+ return $(h) === a;
1406
1406
  }
1407
- function fe(s) {
1408
- return I(s) === y;
1407
+ function ge(h) {
1408
+ return $(h) === y;
1409
1409
  }
1410
- function ke(s) {
1411
- return I(s) === S;
1410
+ function xe(h) {
1411
+ return $(h) === x;
1412
1412
  }
1413
- function se(s) {
1414
- return I(s) === t;
1413
+ function _e(h) {
1414
+ return $(h) === t;
1415
1415
  }
1416
- function z(s) {
1417
- return I(s) === o;
1416
+ function Ce(h) {
1417
+ return $(h) === i;
1418
1418
  }
1419
- function de(s) {
1420
- return I(s) === i;
1419
+ function Y(h) {
1420
+ return $(h) === o;
1421
1421
  }
1422
- function Oe(s) {
1423
- return I(s) === h;
1422
+ function Ee(h) {
1423
+ return $(h) === v;
1424
1424
  }
1425
- j.AsyncMode = f, j.ConcurrentMode = M, j.ContextConsumer = R, j.ContextProvider = _e, j.Element = ye, j.ForwardRef = Ie, j.Fragment = $e, j.Lazy = Ce, j.Memo = q, j.Portal = K, j.Profiler = oe, j.StrictMode = ie, j.Suspense = re, j.isAsyncMode = Q, j.isConcurrentMode = we, j.isContextConsumer = ee, j.isContextProvider = Ne, j.isElement = Re, j.isForwardRef = Le, j.isFragment = Te, j.isLazy = fe, j.isMemo = ke, j.isPortal = se, j.isProfiler = z, j.isStrictMode = de, j.isSuspense = Oe, j.isValidElementType = O, j.typeOf = I;
1425
+ j.AsyncMode = u, j.ConcurrentMode = B, j.ContextConsumer = _, j.ContextProvider = $e, j.Element = ke, j.ForwardRef = Le, j.Fragment = Pe, j.Lazy = De, j.Memo = ne, j.Portal = X, j.Profiler = ce, j.StrictMode = Se, j.Suspense = re, j.isAsyncMode = le, j.isConcurrentMode = ae, j.isContextConsumer = be, j.isContextProvider = K, j.isElement = ye, j.isForwardRef = Me, j.isFragment = Fe, j.isLazy = ge, j.isMemo = xe, j.isPortal = _e, j.isProfiler = Ce, j.isStrictMode = Y, j.isSuspense = Ee, j.isValidElementType = O, j.typeOf = $;
1426
1426
  }()), j;
1427
1427
  }
1428
1428
  process.env.NODE_ENV === "production" ? Mr.exports = In() : Mr.exports = $n();
@@ -1445,12 +1445,12 @@ xt[St.Memo] = Mn;
1445
1445
  var Fn = !0;
1446
1446
  function jn(e, r, t) {
1447
1447
  var a = "";
1448
- return t.split(" ").forEach(function(i) {
1449
- e[i] !== void 0 ? r.push(e[i] + ";") : a += i + " ";
1448
+ return t.split(" ").forEach(function(o) {
1449
+ e[o] !== void 0 ? r.push(e[o] + ";") : a += o + " ";
1450
1450
  }), a;
1451
1451
  }
1452
1452
  var _t = function(r, t, a) {
1453
- var i = r.key + "-" + t.name;
1453
+ var o = r.key + "-" + t.name;
1454
1454
  // we only need to add the styles to the registered cache if the
1455
1455
  // class name could be used further down
1456
1456
  // the tree but if it's a string tag, we know it won't
@@ -1460,25 +1460,25 @@ var _t = function(r, t, a) {
1460
1460
  // in node since emotion-server relies on whether a style is in
1461
1461
  // the registered cache to know whether a style is global or not
1462
1462
  // also, note that this check will be dead code eliminated in the browser
1463
- Fn === !1) && r.registered[i] === void 0 && (r.registered[i] = t.styles);
1463
+ Fn === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles);
1464
1464
  }, Vn = function(r, t, a) {
1465
1465
  _t(r, t, a);
1466
- var i = r.key + "-" + t.name;
1466
+ var o = r.key + "-" + t.name;
1467
1467
  if (r.inserted[t.name] === void 0) {
1468
- var o = t;
1468
+ var i = t;
1469
1469
  do
1470
- r.insert(t === o ? "." + i : "", o, r.sheet, !0), o = o.next;
1471
- while (o !== void 0);
1470
+ r.insert(t === i ? "." + o : "", i, r.sheet, !0), i = i.next;
1471
+ while (i !== void 0);
1472
1472
  }
1473
1473
  };
1474
1474
  function Bn(e) {
1475
- for (var r = 0, t, a = 0, i = e.length; i >= 4; ++a, i -= 4)
1475
+ for (var r = 0, t, a = 0, o = e.length; o >= 4; ++a, o -= 4)
1476
1476
  t = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, t = /* Math.imul(k, m): */
1477
1477
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
1478
1478
  t >>> 24, r = /* Math.imul(k, m): */
1479
1479
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1480
1480
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
1481
- switch (i) {
1481
+ switch (o) {
1482
1482
  case 3:
1483
1483
  r ^= (e.charCodeAt(a + 2) & 255) << 16;
1484
1484
  case 2:
@@ -1552,12 +1552,12 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
1552
1552
  case "animation":
1553
1553
  case "animationName":
1554
1554
  if (typeof t == "string")
1555
- return t.replace(Ct, function(a, i, o) {
1556
- return xe = {
1557
- name: i,
1558
- styles: o,
1559
- next: xe
1560
- }, i;
1555
+ return t.replace(Ct, function(a, o, i) {
1556
+ return Oe = {
1557
+ name: o,
1558
+ styles: i,
1559
+ next: Oe
1560
+ }, o;
1561
1561
  });
1562
1562
  }
1563
1563
  return zn[r] !== 1 && !Wr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
@@ -1568,8 +1568,8 @@ if (process.env.NODE_ENV !== "production") {
1568
1568
  if (r === "content" && (typeof t != "string" || qn.indexOf(t) === -1 && !Wn.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
1569
1569
  throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
1570
1570
  var a = Gn(r, t);
1571
- return a !== "" && !Wr(r) && r.indexOf("-") !== -1 && lt[r] === void 0 && (lt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Kn, "ms-").replace(Hn, function(i, o) {
1572
- return o.toUpperCase();
1571
+ return a !== "" && !Wr(r) && r.indexOf("-") !== -1 && lt[r] === void 0 && (lt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Kn, "ms-").replace(Hn, function(o, i) {
1572
+ return i.toUpperCase();
1573
1573
  }) + "?")), a;
1574
1574
  };
1575
1575
  }
@@ -1587,79 +1587,79 @@ function dr(e, r, t) {
1587
1587
  return "";
1588
1588
  case "object": {
1589
1589
  if (t.anim === 1)
1590
- return xe = {
1590
+ return Oe = {
1591
1591
  name: t.name,
1592
1592
  styles: t.styles,
1593
- next: xe
1593
+ next: Oe
1594
1594
  }, t.name;
1595
1595
  if (t.styles !== void 0) {
1596
1596
  var a = t.next;
1597
1597
  if (a !== void 0)
1598
1598
  for (; a !== void 0; )
1599
- xe = {
1599
+ Oe = {
1600
1600
  name: a.name,
1601
1601
  styles: a.styles,
1602
- next: xe
1602
+ next: Oe
1603
1603
  }, a = a.next;
1604
- var i = t.styles + ";";
1605
- return process.env.NODE_ENV !== "production" && t.map !== void 0 && (i += t.map), i;
1604
+ var o = t.styles + ";";
1605
+ return process.env.NODE_ENV !== "production" && t.map !== void 0 && (o += t.map), o;
1606
1606
  }
1607
1607
  return Jn(e, r, t);
1608
1608
  }
1609
1609
  case "function": {
1610
1610
  if (e !== void 0) {
1611
- var o = xe, l = t(e);
1612
- return xe = o, dr(e, r, l);
1611
+ var i = Oe, l = t(e);
1612
+ return Oe = i, dr(e, r, l);
1613
1613
  } else
1614
1614
  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}`");
1615
1615
  break;
1616
1616
  }
1617
1617
  case "string":
1618
1618
  if (process.env.NODE_ENV !== "production") {
1619
- var u = [], d = t.replace(Ct, function(m, h, N) {
1620
- var S = "animation" + u.length;
1621
- return u.push("const " + S + " = keyframes`" + N.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + S + "}";
1619
+ var c = [], f = t.replace(Ct, function(d, v, k) {
1620
+ var x = "animation" + c.length;
1621
+ return c.push("const " + x + " = keyframes`" + k.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + x + "}";
1622
1622
  });
1623
- u.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(u, ["`" + d + "`"]).join(`
1623
+ c.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(c, ["`" + f + "`"]).join(`
1624
1624
  `) + `
1625
1625
 
1626
1626
  You should wrap it with \`css\` like this:
1627
1627
 
1628
- ` + ("css`" + d + "`"));
1628
+ ` + ("css`" + f + "`"));
1629
1629
  }
1630
1630
  break;
1631
1631
  }
1632
1632
  if (r == null)
1633
1633
  return t;
1634
- var v = r[t];
1635
- return v !== void 0 ? v : t;
1634
+ var g = r[t];
1635
+ return g !== void 0 ? g : t;
1636
1636
  }
1637
1637
  function Jn(e, r, t) {
1638
1638
  var a = "";
1639
1639
  if (Array.isArray(t))
1640
- for (var i = 0; i < t.length; i++)
1641
- a += dr(e, r, t[i]) + ";";
1640
+ for (var o = 0; o < t.length; o++)
1641
+ a += dr(e, r, t[o]) + ";";
1642
1642
  else
1643
- for (var o in t) {
1644
- var l = t[o];
1643
+ for (var i in t) {
1644
+ var l = t[i];
1645
1645
  if (typeof l != "object")
1646
- r != null && r[l] !== void 0 ? a += o + "{" + r[l] + "}" : ct(l) && (a += Ar(o) + ":" + Nr(o, l) + ";");
1646
+ r != null && r[l] !== void 0 ? a += i + "{" + r[l] + "}" : ct(l) && (a += Ar(i) + ":" + Nr(i, l) + ";");
1647
1647
  else {
1648
- if (o === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
1648
+ if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
1649
1649
  throw new Error(Rt);
1650
1650
  if (Array.isArray(l) && typeof l[0] == "string" && (r == null || r[l[0]] === void 0))
1651
- for (var u = 0; u < l.length; u++)
1652
- ct(l[u]) && (a += Ar(o) + ":" + Nr(o, l[u]) + ";");
1651
+ for (var c = 0; c < l.length; c++)
1652
+ ct(l[c]) && (a += Ar(i) + ":" + Nr(i, l[c]) + ";");
1653
1653
  else {
1654
- var d = dr(e, r, l);
1655
- switch (o) {
1654
+ var f = dr(e, r, l);
1655
+ switch (i) {
1656
1656
  case "animation":
1657
1657
  case "animationName": {
1658
- a += Ar(o) + ":" + d + ";";
1658
+ a += Ar(i) + ":" + f + ";";
1659
1659
  break;
1660
1660
  }
1661
1661
  default:
1662
- process.env.NODE_ENV !== "production" && o === "undefined" && console.error(Yn), a += o + "{" + d + "}";
1662
+ process.env.NODE_ENV !== "production" && i === "undefined" && console.error(Yn), a += i + "{" + f + "}";
1663
1663
  }
1664
1664
  }
1665
1665
  }
@@ -1668,39 +1668,39 @@ function Jn(e, r, t) {
1668
1668
  }
1669
1669
  var ut = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Tt;
1670
1670
  process.env.NODE_ENV !== "production" && (Tt = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
1671
- var xe, ft = function(r, t, a) {
1671
+ var Oe, ft = function(r, t, a) {
1672
1672
  if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
1673
1673
  return r[0];
1674
- var i = !0, o = "";
1675
- xe = void 0;
1674
+ var o = !0, i = "";
1675
+ Oe = void 0;
1676
1676
  var l = r[0];
1677
- l == null || l.raw === void 0 ? (i = !1, o += dr(a, t, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(st), o += l[0]);
1678
- for (var u = 1; u < r.length; u++)
1679
- o += dr(a, t, r[u]), i && (process.env.NODE_ENV !== "production" && l[u] === void 0 && console.error(st), o += l[u]);
1680
- var d;
1681
- process.env.NODE_ENV !== "production" && (o = o.replace(Tt, function(N) {
1682
- return d = N, "";
1677
+ l == null || l.raw === void 0 ? (o = !1, i += dr(a, t, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(st), i += l[0]);
1678
+ for (var c = 1; c < r.length; c++)
1679
+ i += dr(a, t, r[c]), o && (process.env.NODE_ENV !== "production" && l[c] === void 0 && console.error(st), i += l[c]);
1680
+ var f;
1681
+ process.env.NODE_ENV !== "production" && (i = i.replace(Tt, function(k) {
1682
+ return f = k, "";
1683
1683
  })), ut.lastIndex = 0;
1684
- for (var v = "", m; (m = ut.exec(o)) !== null; )
1685
- v += "-" + // $FlowFixMe we know it's not null
1686
- m[1];
1687
- var h = Bn(o) + v;
1684
+ for (var g = "", d; (d = ut.exec(i)) !== null; )
1685
+ g += "-" + // $FlowFixMe we know it's not null
1686
+ d[1];
1687
+ var v = Bn(i) + g;
1688
1688
  return process.env.NODE_ENV !== "production" ? {
1689
- name: h,
1690
- styles: o,
1691
- map: d,
1692
- next: xe,
1689
+ name: v,
1690
+ styles: i,
1691
+ map: f,
1692
+ next: Oe,
1693
1693
  toString: function() {
1694
1694
  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).";
1695
1695
  }
1696
1696
  } : {
1697
- name: h,
1698
- styles: o,
1699
- next: xe
1697
+ name: v,
1698
+ styles: i,
1699
+ next: Oe
1700
1700
  };
1701
1701
  }, Xn = function(r) {
1702
1702
  return r();
1703
- }, Zn = Fe["useInsertionEffect"] ? Fe["useInsertionEffect"] : !1, Qn = Zn || Xn, Cr = {}.hasOwnProperty, qr = /* @__PURE__ */ Fe.createContext(
1703
+ }, Zn = Be["useInsertionEffect"] ? Be["useInsertionEffect"] : !1, Qn = Zn || Xn, Cr = {}.hasOwnProperty, qr = /* @__PURE__ */ Be.createContext(
1704
1704
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1705
1705
  // because this module is primarily intended for the browser and node
1706
1706
  // but it's also required in react native and similar environments sometimes
@@ -1715,10 +1715,10 @@ process.env.NODE_ENV !== "production" && (qr.displayName = "EmotionCacheContext"
1715
1715
  qr.Provider;
1716
1716
  var ea = function(r) {
1717
1717
  return /* @__PURE__ */ pt(function(t, a) {
1718
- var i = Vt(qr);
1719
- return r(t, i, a);
1718
+ var o = Vt(qr);
1719
+ return r(t, o, a);
1720
1720
  });
1721
- }, Ot = /* @__PURE__ */ Fe.createContext({});
1721
+ }, Ot = /* @__PURE__ */ Be.createContext({});
1722
1722
  process.env.NODE_ENV !== "production" && (Ot.displayName = "EmotionThemeContext");
1723
1723
  var dt = function(r) {
1724
1724
  var t = r.split(".");
@@ -1733,12 +1733,12 @@ var dt = function(r) {
1733
1733
  if (r)
1734
1734
  for (var t = r.split(`
1735
1735
  `), a = 0; a < t.length; a++) {
1736
- var i = ra(t[a]);
1737
- if (i) {
1738
- if (ta.has(i))
1736
+ var o = ra(t[a]);
1737
+ if (o) {
1738
+ if (ta.has(o))
1739
1739
  break;
1740
- if (/^[A-Z]/.test(i))
1741
- return na(i);
1740
+ if (/^[A-Z]/.test(o))
1741
+ return na(o);
1742
1742
  }
1743
1743
  }
1744
1744
  }, Fr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", jr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Pt = function(r, t) {
@@ -1746,84 +1746,84 @@ var dt = function(r) {
1746
1746
  t.css.indexOf(":") !== -1)
1747
1747
  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`" + t.css + "`");
1748
1748
  var a = {};
1749
- for (var i in t)
1750
- Cr.call(t, i) && (a[i] = t[i]);
1749
+ for (var o in t)
1750
+ Cr.call(t, o) && (a[o] = t[o]);
1751
1751
  if (a[Fr] = r, process.env.NODE_ENV !== "production" && t.css && (typeof t.css != "object" || typeof t.css.name != "string" || t.css.name.indexOf("-") === -1)) {
1752
- var o = aa(new Error().stack);
1753
- o && (a[jr] = o);
1752
+ var i = aa(new Error().stack);
1753
+ i && (a[jr] = i);
1754
1754
  }
1755
1755
  return a;
1756
1756
  }, oa = function(r) {
1757
- var t = r.cache, a = r.serialized, i = r.isStringTag;
1758
- return _t(t, a, i), Qn(function() {
1759
- return Vn(t, a, i);
1757
+ var t = r.cache, a = r.serialized, o = r.isStringTag;
1758
+ return _t(t, a, o), Qn(function() {
1759
+ return Vn(t, a, o);
1760
1760
  }), null;
1761
1761
  }, At = /* @__PURE__ */ ea(function(e, r, t) {
1762
1762
  var a = e.css;
1763
1763
  typeof a == "string" && r.registered[a] !== void 0 && (a = r.registered[a]);
1764
- var i = e[Fr], o = [a], l = "";
1765
- typeof e.className == "string" ? l = jn(r.registered, o, e.className) : e.className != null && (l = e.className + " ");
1766
- var u = ft(o, void 0, Fe.useContext(Ot));
1767
- if (process.env.NODE_ENV !== "production" && u.name.indexOf("-") === -1) {
1768
- var d = e[jr];
1769
- d && (u = ft([u, "label:" + d + ";"]));
1764
+ var o = e[Fr], i = [a], l = "";
1765
+ typeof e.className == "string" ? l = jn(r.registered, i, e.className) : e.className != null && (l = e.className + " ");
1766
+ var c = ft(i, void 0, Be.useContext(Ot));
1767
+ if (process.env.NODE_ENV !== "production" && c.name.indexOf("-") === -1) {
1768
+ var f = e[jr];
1769
+ f && (c = ft([c, "label:" + f + ";"]));
1770
1770
  }
1771
- l += r.key + "-" + u.name;
1772
- var v = {};
1773
- for (var m in e)
1774
- Cr.call(e, m) && m !== "css" && m !== Fr && (process.env.NODE_ENV === "production" || m !== jr) && (v[m] = e[m]);
1775
- return v.ref = t, v.className = l, /* @__PURE__ */ Fe.createElement(Fe.Fragment, null, /* @__PURE__ */ Fe.createElement(oa, {
1771
+ l += r.key + "-" + c.name;
1772
+ var g = {};
1773
+ for (var d in e)
1774
+ Cr.call(e, d) && d !== "css" && d !== Fr && (process.env.NODE_ENV === "production" || d !== jr) && (g[d] = e[d]);
1775
+ return g.ref = t, g.className = l, /* @__PURE__ */ Be.createElement(Be.Fragment, null, /* @__PURE__ */ Be.createElement(oa, {
1776
1776
  cache: r,
1777
- serialized: u,
1778
- isStringTag: typeof i == "string"
1779
- }), /* @__PURE__ */ Fe.createElement(i, v));
1777
+ serialized: c,
1778
+ isStringTag: typeof o == "string"
1779
+ }), /* @__PURE__ */ Be.createElement(o, g));
1780
1780
  });
1781
1781
  process.env.NODE_ENV !== "production" && (At.displayName = "EmotionCssPropInternal");
1782
1782
  var It = At, Qe = Jt;
1783
1783
  function p(e, r, t) {
1784
1784
  return Cr.call(r, "css") ? Qr(It, Pt(e, r), t) : Qr(e, r, t);
1785
1785
  }
1786
- function he(e, r, t) {
1786
+ function pe(e, r, t) {
1787
1787
  return Cr.call(r, "css") ? et(It, Pt(e, r), t) : et(e, r, t);
1788
1788
  }
1789
1789
  function ia(e, r) {
1790
1790
  let t = null, a = null;
1791
- return function(...o) {
1791
+ return function(...i) {
1792
1792
  const l = this;
1793
- t === null ? r.apply(l, o) : a = o, clearTimeout(t), t = setTimeout(() => {
1793
+ t === null ? r.apply(l, i) : a = i, clearTimeout(t), t = setTimeout(() => {
1794
1794
  a && (r.apply(l, a), a = null), t = null;
1795
1795
  }, e);
1796
1796
  };
1797
1797
  }
1798
1798
  const sa = (e, r) => {
1799
- let t, a, i;
1800
- const o = (l, u, d) => (v) => {
1801
- const m = performance.now();
1799
+ let t, a, o;
1800
+ const i = (l, c, f) => (g) => {
1801
+ const d = performance.now();
1802
1802
  return setTimeout(() => {
1803
- if (!i) {
1803
+ if (!o) {
1804
1804
  t = void 0, a = void 0;
1805
1805
  return;
1806
1806
  }
1807
- const h = (async () => r(...i))();
1808
- i = void 0, h.then(u).catch((y) => {
1809
- console.error(y), d(y);
1807
+ const v = (async () => r(...o))();
1808
+ o = void 0, v.then(c).catch((y) => {
1809
+ console.error(y), f(y);
1810
1810
  });
1811
- let N, S;
1811
+ let k, x;
1812
1812
  a = new Promise((y, b) => {
1813
- N = y, S = b;
1814
- }), t = h.then(o(m, N, S)).catch((y) => (console.error(y), o(l, N, S)(y)));
1815
- }, e - (m - l)), v;
1813
+ k = y, x = b;
1814
+ }), t = v.then(i(d, k, x)).catch((y) => (console.error(y), i(l, k, x)(y)));
1815
+ }, e - (d - l)), g;
1816
1816
  };
1817
1817
  return (...l) => {
1818
- if (i = l, t)
1818
+ if (o = l, t)
1819
1819
  return a;
1820
1820
  {
1821
- const u = performance.now(), d = (async () => r(...l))();
1822
- i = void 0;
1823
- let v, m;
1824
- return a = new Promise((h, N) => {
1825
- v = h, m = N;
1826
- }), t = d.then(o(u, v, m)).catch((h) => (console.error(h), o(u, v, m)(h))), d;
1821
+ const c = performance.now(), f = (async () => r(...l))();
1822
+ o = void 0;
1823
+ let g, d;
1824
+ return a = new Promise((v, k) => {
1825
+ g = v, d = k;
1826
+ }), t = f.then(i(c, g, d)).catch((v) => (console.error(v), i(c, g, d)(v))), f;
1827
1827
  }
1828
1828
  };
1829
1829
  }, ca = (e) => (r) => new ReadableStream({
@@ -1833,17 +1833,17 @@ const sa = (e, r) => {
1833
1833
  this.reader = r.getReader();
1834
1834
  },
1835
1835
  async pull(t) {
1836
- const { leftOverData: a } = this, i = async ({ buffer: u = new Uint8Array(e), currentSize: d = 0 } = {}) => {
1837
- const { value: v, done: m } = await this.reader.read();
1838
- if (d === 0 && a && (u.set(a), d += a.byteLength, this.leftOverData = void 0), m) {
1839
- const S = { buffer: u.slice(0, d), currentSize: d, done: m };
1840
- return this.reader = void 0, this.leftOverData = void 0, S;
1836
+ const { leftOverData: a } = this, o = async ({ buffer: c = new Uint8Array(e), currentSize: f = 0 } = {}) => {
1837
+ const { value: g, done: d } = await this.reader.read();
1838
+ if (f === 0 && a && (c.set(a), f += a.byteLength, this.leftOverData = void 0), d) {
1839
+ const x = { buffer: c.slice(0, f), currentSize: f, done: d };
1840
+ return this.reader = void 0, this.leftOverData = void 0, x;
1841
1841
  }
1842
- let h;
1843
- const N = v.slice(0, e - d);
1844
- return h = d + N.byteLength, u.set(N, d), h === e ? (this.leftOverData = v.slice(e - d), { buffer: u, currentSize: h, done: !1 }) : i({ buffer: u, currentSize: h });
1845
- }, { buffer: o, done: l } = await i();
1846
- o?.byteLength && t.enqueue(o), l && t.close();
1842
+ let v;
1843
+ const k = g.slice(0, e - f);
1844
+ return v = f + k.byteLength, c.set(k, f), v === e ? (this.leftOverData = g.slice(e - f), { buffer: c, currentSize: v, done: !1 }) : o({ buffer: c, currentSize: v });
1845
+ }, { buffer: i, done: l } = await o();
1846
+ i?.byteLength && t.enqueue(i), l && t.close();
1847
1847
  },
1848
1848
  cancel() {
1849
1849
  this.reader.cancel(), this.leftOverData = void 0;
@@ -1861,32 +1861,32 @@ const sa = (e, r) => {
1861
1861
  if (this.buffers.length >= e)
1862
1862
  return;
1863
1863
  this.currentPullPromise = this.reader.read();
1864
- const { value: o, done: l } = await this.currentPullPromise;
1864
+ const { value: i, done: l } = await this.currentPullPromise;
1865
1865
  if (this.currentPullPromise = void 0, l) {
1866
1866
  try {
1867
- for (const u of this.buffers)
1868
- t.enqueue(u);
1867
+ for (const c of this.buffers)
1868
+ t.enqueue(c);
1869
1869
  t.close();
1870
1870
  } catch {
1871
1871
  }
1872
1872
  return;
1873
1873
  }
1874
- return this.buffers.push(o), o;
1875
- }, i = async () => {
1874
+ return this.buffers.push(i), i;
1875
+ }, o = async () => {
1876
1876
  if (!(this.buffers.length >= e)) {
1877
1877
  if (this.buffers.length === 0)
1878
- return await a() ? i() : void 0;
1879
- a().then((o) => {
1880
- o && i();
1878
+ return await a() ? o() : void 0;
1879
+ a().then((i) => {
1880
+ i && o();
1881
1881
  });
1882
1882
  }
1883
1883
  };
1884
- await i();
1884
+ await o();
1885
1885
  try {
1886
- t.enqueue(this.buffers.shift()), i();
1887
- } catch (o) {
1888
- if (!(o instanceof TypeError && (o.message === "ReadableStreamDefaultController.enqueue: Cannot enqueue into a stream that has already been requested to close." || o.message === "Failed to execute 'enqueue' on 'ReadableStreamDefaultController': Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed")))
1889
- throw o;
1886
+ t.enqueue(this.buffers.shift()), o();
1887
+ } catch (i) {
1888
+ if (!(i instanceof TypeError && (i.message === "ReadableStreamDefaultController.enqueue: Cannot enqueue into a stream that has already been requested to close." || i.message === "Failed to execute 'enqueue' on 'ReadableStreamDefaultController': Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed")))
1889
+ throw i;
1890
1890
  }
1891
1891
  },
1892
1892
  cancel() {
@@ -1917,7 +1917,7 @@ const sa = (e, r) => {
1917
1917
  grid-column: 1;
1918
1918
  grid-row: 1;
1919
1919
  }
1920
- `, fa = ({ loading: e, needsInitialInteraction: r, togglePlay: t, setCanvasRef: a }) => /* @__PURE__ */ he("div", { css: ua, onClick: t, children: [
1920
+ `, fa = ({ loading: e, needsInitialInteraction: r, togglePlay: t, setCanvasRef: a }) => /* @__PURE__ */ pe("div", { css: ua, onClick: t, children: [
1921
1921
  /* @__PURE__ */ p("canvas", { ref: a }),
1922
1922
  r ? /* @__PURE__ */ p(
1923
1923
  "svg",
@@ -1977,41 +1977,42 @@ const sa = (e, r) => {
1977
1977
  }
1978
1978
  ) : null
1979
1979
  ] }), mt = ({ ref: e, defaultValue: r }) => {
1980
- const [t, a] = U(r), [i, o] = U(!1), l = (u) => {
1981
- if (o(!0), !e.current)
1980
+ const [t, a] = q(r), [o, i] = q(!1), l = (c) => {
1981
+ if (i(!0), !e.current)
1982
1982
  return;
1983
- const { clientX: d } = u, { left: v, right: m } = e.current.getBoundingClientRect();
1984
- a(Math.min(Math.max((d - v) / (m - v), 0), 1));
1983
+ const { clientX: f } = c, { left: g, right: d } = e.current.getBoundingClientRect();
1984
+ a(Math.min(Math.max((f - g) / (d - g), 0), 1));
1985
1985
  };
1986
- return pe(() => {
1987
- if (!i)
1986
+ return we(() => {
1987
+ if (!o)
1988
1988
  return;
1989
- const u = () => o(!1), d = (v) => {
1989
+ const c = () => i(!1), f = (g) => {
1990
1990
  if (!e.current)
1991
1991
  return;
1992
- const { clientX: m } = v, { left: h, right: N } = e.current.getBoundingClientRect();
1993
- a(Math.min(Math.max((m - h) / (N - h), 0), 1));
1992
+ const { clientX: d } = g, { left: v, right: k } = e.current.getBoundingClientRect();
1993
+ a(Math.min(Math.max((d - v) / (k - v), 0), 1));
1994
1994
  };
1995
- return document.addEventListener("mousemove", d), document.addEventListener("mouseup", u), () => {
1996
- document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
1995
+ return document.addEventListener("mousemove", f), document.addEventListener("mouseup", c), () => {
1996
+ document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c);
1997
1997
  };
1998
- }, [i]), {
1998
+ }, [o]), {
1999
1999
  value: t,
2000
- scrubbing: i,
2001
- scrub: l
2000
+ scrubbing: o,
2001
+ scrub: l,
2002
+ setValue: a
2002
2003
  };
2003
2004
  }, da = 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"}]`), gt = (e) => da.find((r) => r.tag === e)?.name, ma = (e) => {
2004
- const [r, t] = U(() => {
2005
+ const [r, t] = q(() => {
2005
2006
  const a = localStorage.getItem(e);
2006
2007
  return a ? JSON.parse(a) : {};
2007
2008
  });
2008
- return pe(() => {
2009
+ return we(() => {
2009
2010
  localStorage.setItem(e, JSON.stringify(r));
2010
- }, [e, r]), (a, i) => (pe(() => {
2011
- t((o) => ({ ...o, [a]: i }));
2011
+ }, [e, r]), (a, o) => (we(() => {
2012
+ t((i) => ({ ...i, [a]: o }));
2012
2013
  }, []), [
2013
2014
  r[a],
2014
- (o) => t(typeof o == "function" ? (l) => ({ ...l, [a]: o(l[a]) }) : (l) => ({ ...l, [a]: o }))
2015
+ (i) => t(typeof i == "function" ? (l) => ({ ...l, [a]: i(l[a]) }) : (l) => ({ ...l, [a]: i }))
2015
2016
  ]);
2016
2017
  }, ga = kr`
2017
2018
  position: relative;
@@ -2273,170 +2274,202 @@ const sa = (e, r) => {
2273
2274
  }
2274
2275
  }
2275
2276
  `, ha = ({
2276
- duration: e,
2277
- currentTime: r,
2278
- togglePlay: t,
2279
- seek: a,
2280
- setVolume: i,
2281
- isSubtitleMenuHidden: o,
2282
- setIsSubtitleMenuHidden: l,
2283
- isErrorMenuHidden: u,
2277
+ video: e,
2278
+ videoReactive: r,
2279
+ duration: t,
2280
+ currentTime: a,
2281
+ togglePlay: o,
2282
+ seek: i,
2283
+ setVolume: l,
2284
+ isSubtitleMenuHidden: c,
2285
+ setIsSubtitleMenuHidden: f,
2286
+ isErrorMenuHidden: g,
2284
2287
  setIsErrorMenuHidden: d,
2285
2288
  setCurrentSubtitleTrack: v,
2286
- loadedTime: m,
2287
- isPlaying: h,
2288
- tracks: N,
2289
- isFullscreen: S,
2290
- toggleFullscreen: y,
2291
- subtitleTrack: b,
2292
- pictureInPicture: x,
2293
- errors: _,
2294
- customControls: k,
2295
- ...O
2289
+ loadedTime: k,
2290
+ isPlaying: x,
2291
+ tracks: y,
2292
+ isFullscreen: b,
2293
+ toggleFullscreen: N,
2294
+ subtitleTrack: C,
2295
+ pictureInPicture: S,
2296
+ errors: O,
2297
+ customControls: $,
2298
+ ...u
2296
2299
  }) => {
2297
- const I = er(null), f = er(null), [M, R] = U(!1), { scrub: _e, value: ye } = mt({ ref: I }), Ie = Ir(() => document.pictureInPictureEnabled, []), [$e, Ce] = U(!1), q = ma("fkn-media-player"), [K, oe] = q("volume", 1), [ie, re] = q("muted", !1), { scrub: Ee, value: Q } = mt({ ref: f, defaultValue: K });
2298
- pe(() => {
2299
- $e || (Ce(!0), Te(void 0));
2300
- }, [$e, _.length]), pe(() => {
2301
- ye !== void 0 && a(ye * (e ?? 0));
2302
- }, [ye]), pe(() => {
2303
- if (ie) {
2304
- i(0), re(ie), Q && oe(Q);
2300
+ const B = er(null), _ = er(null), [$e, ke] = q(!1), { scrub: Le, value: Pe, setValue: De } = mt({ ref: B }), ne = Ir(() => document.pictureInPictureEnabled, []), [X, ce] = q(!1), Se = ma("fkn-media-player"), [re, te] = Se("volume", 1), [le, ae] = Se("muted", !1), { scrub: be, value: K, setValue: ye } = mt({ ref: _, defaultValue: re });
2301
+ we(() => {
2302
+ X || (ce(!0), Ce(void 0));
2303
+ }, [X, O.length]), we(() => {
2304
+ Pe !== void 0 && i(Pe * (t ?? 0));
2305
+ }, [Pe]), we(() => {
2306
+ if (le) {
2307
+ l(0), ae(le), K && te(K);
2305
2308
  return;
2306
2309
  }
2307
- Q !== void 0 && (i(Q ** 2), oe(Q), re(ie));
2308
- }, [Q, ie]);
2309
- const we = () => {
2310
- R(!1);
2311
- }, ee = (s) => {
2312
- s.currentTarget !== s.relatedTarget && s.relatedTarget !== null || R(!0);
2313
- }, Ne = () => {
2314
- re((s) => !s);
2315
- }, Re = (s, E, W) => {
2316
- v(E === void 0 ? E : W);
2317
- }, Le = (s) => {
2318
- if (!o && s.relatedTarget === null) {
2319
- l((W) => !W);
2310
+ K !== void 0 && (l(K ** 2), te(K), ae(le));
2311
+ }, [K, le]);
2312
+ const Me = () => {
2313
+ ke(!1);
2314
+ }, Fe = (E) => {
2315
+ E.currentTarget !== E.relatedTarget && E.relatedTarget !== null || ke(!0);
2316
+ }, ge = () => {
2317
+ ae((E) => !E);
2318
+ }, xe = (E, R, ee) => {
2319
+ v(R === void 0 ? R : ee);
2320
+ }, _e = (E) => {
2321
+ if (!c && E.relatedTarget === null) {
2322
+ f((ee) => !ee);
2320
2323
  return;
2321
2324
  }
2322
- l(!1);
2323
- const E = (W) => {
2324
- W.stopPropagation(), l(!0), document.removeEventListener("click", E);
2325
+ f(!1);
2326
+ const R = (ee) => {
2327
+ ee.stopPropagation(), f(!0), document.removeEventListener("click", R);
2325
2328
  };
2326
2329
  setTimeout(() => {
2327
- document.addEventListener("click", E);
2330
+ document.addEventListener("click", R);
2328
2331
  }, 0);
2329
- }, Te = (s) => {
2330
- if (!u && s?.relatedTarget === null) {
2331
- d((W) => !W);
2332
+ }, Ce = (E) => {
2333
+ if (!g && E?.relatedTarget === null) {
2334
+ d((ee) => !ee);
2332
2335
  return;
2333
2336
  }
2334
2337
  d(!1);
2335
- const E = (W) => {
2336
- W.stopPropagation(), d(!0), document.removeEventListener("click", E);
2338
+ const R = (ee) => {
2339
+ ee.stopPropagation(), d(!0), document.removeEventListener("click", R);
2337
2340
  };
2338
2341
  setTimeout(() => {
2339
- document.addEventListener("click", E);
2342
+ document.addEventListener("click", R);
2340
2343
  }, 0);
2341
- }, fe = ({ subtitleTrack: s }) => {
2342
- if (!s)
2344
+ }, Y = ({ subtitleTrack: E }) => {
2345
+ if (!E)
2343
2346
  return /* @__PURE__ */ p(Qe, { children: "Disabled" });
2344
- if (!s.title && !s.language)
2347
+ if (!E.title && !E.language)
2345
2348
  return /* @__PURE__ */ p(Qe, { children: "Default" });
2346
- const E = s.language === "jpn" ? "ja" : gt(s.language) ? gt(s.language) : s.language;
2347
- return s.title ? /* @__PURE__ */ he(Qe, { children: [
2348
- s.title?.replace("subs", ""),
2349
- E ? `(${E})` : ""
2350
- ] }) : /* @__PURE__ */ p(Qe, { children: E });
2351
- }, ke = Ir(
2349
+ const R = E.language === "jpn" ? "ja" : gt(E.language) ? gt(E.language) : E.language;
2350
+ return E.title ? /* @__PURE__ */ pe(Qe, { children: [
2351
+ E.title?.replace("subs", ""),
2352
+ R ? `(${R})` : ""
2353
+ ] }) : /* @__PURE__ */ p(Qe, { children: R });
2354
+ }, Ee = Ir(
2352
2355
  () => [
2353
2356
  ...new Set(
2354
- _.map(
2355
- (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"
2357
+ O.map(
2358
+ (E) => E.message === "non monotonicaly increasing DTS values" ? E.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"
2356
2359
  )
2357
2360
  )
2358
- ].filter(Boolean).map((s) => /* @__PURE__ */ p("div", { className: "error-menu-message", children: s }, s)),
2359
- [_]
2361
+ ].filter(Boolean).map((E) => /* @__PURE__ */ p("div", { className: "error-menu-message", children: E }, E)),
2362
+ [O]
2360
2363
  );
2361
- pe(() => {
2362
- Ze.rebuild();
2363
- }, [N.length]), pe(() => {
2364
- const s = (E) => {
2365
- E.key === "f" && y(), E.key === "k" && t(), E.key === "m" && Ne();
2364
+ we(() => {
2365
+ const E = (R) => {
2366
+ if (R.key === "f" && N(), R.key === "k" && o(), R.key === " " && o(), R.key === "m" && ge(), R.key === "ArrowUp" && (re <= 0.95 ? ye(re + 0.05) : ye(1)), R.key === "ArrowDown" && (re >= 0.05 ? ye(re - 0.05) : ye(0)), R.key === "ArrowLeft") {
2367
+ if (!r)
2368
+ return;
2369
+ r.currentTime -= R.shiftKey ? 20 : R.ctrlKey ? 2 : 5;
2370
+ }
2371
+ if (R.key === "ArrowRight") {
2372
+ if (!r)
2373
+ return;
2374
+ r.currentTime += R.shiftKey ? 20 : R.ctrlKey ? 2 : 5;
2375
+ }
2366
2376
  };
2367
- return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
2368
- }, [y, t, Ne]);
2369
- const [se, z] = U(void 0);
2370
- return /* @__PURE__ */ he("div", { css: ga, onMouseOut: ee, ...O, children: [
2377
+ return window.addEventListener("keydown", E), () => window.removeEventListener("keydown", E);
2378
+ }, [r, N, o, ge]);
2379
+ const [h, V] = q(void 0);
2380
+ return /* @__PURE__ */ pe("div", { css: ga, onMouseOut: Fe, ...u, children: [
2371
2381
  /* @__PURE__ */ p("div", { className: "preview" }),
2372
- /* @__PURE__ */ he(
2382
+ /* @__PURE__ */ pe(
2373
2383
  "div",
2374
2384
  {
2375
- ref: I,
2385
+ ref: B,
2376
2386
  className: "progress-bar",
2377
- onMouseMove: (s) => {
2378
- const W = s.nativeEvent.offsetX / s.currentTarget.offsetWidth * (e ?? 0);
2379
- z(W);
2387
+ onMouseMove: (E) => {
2388
+ const ee = E.nativeEvent.offsetX / E.currentTarget.offsetWidth * (t ?? 0);
2389
+ V(ee);
2380
2390
  },
2381
2391
  onMouseOut: () => {
2382
- I.current && z(void 0);
2392
+ B.current && V(void 0);
2383
2393
  },
2384
2394
  children: [
2385
2395
  /* @__PURE__ */ p("div", { className: "background-bar" }),
2386
- se ? /* @__PURE__ */ p("div", { className: "cursor-time", "data-tip": se, style: { left: `${1 / ((e ?? 0) / (se ?? 1)) * 100}%` }, children: new Date((se ?? 0) * 1e3).toISOString().substr(
2387
- (e ?? 0) >= 3600 ? 11 : 14,
2388
- (e ?? 0) >= 3600 ? 8 : 5
2396
+ h ? /* @__PURE__ */ p("div", { className: "cursor-time", "data-tip": h, style: { left: `${1 / ((t ?? 0) / (h ?? 1)) * 100}%` }, children: new Date((h ?? 0) * 1e3).toISOString().substr(
2397
+ (t ?? 0) >= 3600 ? 11 : 14,
2398
+ (t ?? 0) >= 3600 ? 8 : 5
2389
2399
  ) }) : void 0,
2390
2400
  /* @__PURE__ */ p("div", { className: "progress" }),
2391
- /* @__PURE__ */ p("div", { className: "load", style: { transform: `scaleX(${1 / ((e ?? 0) / (m?.[1] ?? 0))})` } }),
2401
+ /* @__PURE__ */ p("div", { className: "load", style: { transform: `scaleX(${1 / ((t ?? 0) / (k?.[1] ?? 0))})` } }),
2392
2402
  /* @__PURE__ */ p("div", { className: "hover" }),
2393
2403
  /* @__PURE__ */ p("div", { className: "play", style: {
2394
- transform: `scaleX(${typeof e != "number" || typeof r != "number" ? 0 : 1 / ((e ?? 0) / (r ?? 0))})`
2404
+ transform: `scaleX(${typeof t != "number" || typeof a != "number" ? 0 : 1 / ((t ?? 0) / (a ?? 0))})`
2395
2405
  } }),
2396
2406
  /* @__PURE__ */ p("div", { className: "chapters" }),
2397
2407
  /* @__PURE__ */ p("div", { className: "scrubber" }),
2398
- /* @__PURE__ */ p("div", { className: "padding", onMouseDown: _e })
2408
+ /* @__PURE__ */ p("div", { className: "padding", onMouseDown: Le })
2399
2409
  ]
2400
2410
  }
2401
2411
  ),
2402
- /* @__PURE__ */ he("div", { className: "controls", children: [
2403
- /* @__PURE__ */ p(Ze, { id: "play-button-tooltip", effect: "solid", place: "top", children: h ? "Pause (k)" : "Play (k)" }),
2404
- /* @__PURE__ */ p("button", { className: "play-button", type: "button", "data-tip": !0, "data-for": "play-button-tooltip", onClick: t, children: h ? /* @__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: [
2412
+ /* @__PURE__ */ pe("div", { className: "controls", children: [
2413
+ /* @__PURE__ */ p(ir, { id: "play-button-tooltip", place: "top-start", children: x ? "Pause (k)" : "Play (k)" }),
2414
+ /* @__PURE__ */ p("button", { className: "play-button", type: "button", "data-tip": !0, "data-tooltip-id": "play-button-tooltip", onClick: o, children: x ? /* @__PURE__ */ pe("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: [
2405
2415
  /* @__PURE__ */ p("rect", { x: "6", y: "4", width: "4", height: "16" }),
2406
2416
  /* @__PURE__ */ p("rect", { x: "14", y: "4", width: "4", height: "16" })
2407
2417
  ] }) : /* @__PURE__ */ p("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__ */ p("polygon", { points: "5 3 19 12 5 21 5 3" }) }) }),
2408
- /* @__PURE__ */ he("div", { className: "volume-area", onMouseOver: we, children: [
2409
- /* @__PURE__ */ p(Ze, { id: "mute-button-tooltip", effect: "solid", place: "top", children: ie ? "Unmute (m)" : "Mute (m)" }),
2410
- /* @__PURE__ */ p("button", { className: "mute-button", "data-tip": !0, "data-for": "mute-button-tooltip", onClick: Ne, children: ie ? /* @__PURE__ */ p(Jr, {}) : (K ?? 0) > 0.66 ? /* @__PURE__ */ p(Yt, {}) : (K ?? 0) > 0.33 ? /* @__PURE__ */ p(Ut, {}) : (K ?? 0) > 0 ? /* @__PURE__ */ p(Wt, {}) : /* @__PURE__ */ p(Jr, {}) }),
2411
- /* @__PURE__ */ p("div", { ref: f, className: `volume-panel${M ? "" : " volume-control-hover"}`, onMouseDown: Ee, children: /* @__PURE__ */ p("div", { className: "slider", children: /* @__PURE__ */ p("div", { className: "slider-handle", style: { left: `${(K ?? 0) * 100}%` } }) }) })
2418
+ /* @__PURE__ */ pe("div", { className: "volume-area", onMouseOver: Me, children: [
2419
+ /* @__PURE__ */ p(
2420
+ ir,
2421
+ {
2422
+ id: "mute-button-tooltip",
2423
+ place: "top",
2424
+ children: le ? "Unmute (m)" : "Mute (m)"
2425
+ }
2426
+ ),
2427
+ /* @__PURE__ */ p("button", { className: "mute-button", "data-tip": !0, "data-tooltip-id": "mute-button-tooltip", onClick: ge, children: le ? /* @__PURE__ */ p(Jr, {}) : (re ?? 0) > 0.66 ? /* @__PURE__ */ p(Yt, {}) : (re ?? 0) > 0.33 ? /* @__PURE__ */ p(Ut, {}) : (re ?? 0) > 0 ? /* @__PURE__ */ p(Wt, {}) : /* @__PURE__ */ p(Jr, {}) }),
2428
+ /* @__PURE__ */ p("div", { ref: _, className: `volume-panel${$e ? "" : " volume-control-hover"}`, onMouseDown: be, children: /* @__PURE__ */ p("div", { className: "slider", children: /* @__PURE__ */ p("div", { className: "slider-handle", style: { left: `${(re ?? 0) * 100}%` } }) }) })
2412
2429
  ] }),
2413
- /* @__PURE__ */ he("div", { className: "time", children: [
2414
- /* @__PURE__ */ p("span", { children: new Date((r ?? 0) * 1e3).toISOString().substr(11, 8) }),
2430
+ /* @__PURE__ */ pe("div", { className: "time", children: [
2431
+ /* @__PURE__ */ p("span", { children: new Date((a ?? 0) * 1e3).toISOString().substr(11, 8) }),
2415
2432
  /* @__PURE__ */ p("span", { children: " / " }),
2416
- /* @__PURE__ */ p("span", { children: e ? new Date(e * 1e3).toISOString().substr(11, 8) : "" })
2433
+ /* @__PURE__ */ p("span", { children: t ? new Date(t * 1e3).toISOString().substr(11, 8) : "" })
2417
2434
  ] }),
2418
- /* @__PURE__ */ p("div", { className: "custom-controls", children: k?.length ? k.map((s, E) => /* @__PURE__ */ p(s, {}, E)) : null }),
2419
- /* @__PURE__ */ p("div", { className: "error-area", children: ke.length ? /* @__PURE__ */ he(Qe, { children: [
2420
- /* @__PURE__ */ p("div", { className: `error-menu ${u ? "hide" : ""}`, children: u ? null : ke }),
2421
- /* @__PURE__ */ he("div", { className: "error-menu-button", onClick: Te, children: [
2435
+ /* @__PURE__ */ p("div", { className: "custom-controls", children: $?.length ? $.map((E, R) => /* @__PURE__ */ p(E, {}, R)) : null }),
2436
+ /* @__PURE__ */ p("div", { className: "error-area", children: Ee.length ? /* @__PURE__ */ pe(Qe, { children: [
2437
+ /* @__PURE__ */ p("div", { className: `error-menu ${g ? "hide" : ""}`, children: g ? null : Ee }),
2438
+ /* @__PURE__ */ pe("div", { className: "error-menu-button", onClick: Ce, children: [
2422
2439
  /* @__PURE__ */ p(qt, {}),
2423
2440
  "Error"
2424
2441
  ] })
2425
2442
  ] }) : null }),
2426
- /* @__PURE__ */ p(Ze, { id: "subtitle-button-tooltip", globalEventOff: "click", effect: "solid", place: "top", disable: !o, children: "Subtitles" }),
2427
- /* @__PURE__ */ p("div", { className: "subtitle-area", children: N.length ? /* @__PURE__ */ he(Qe, { children: [
2428
- /* @__PURE__ */ p("div", { className: `subtitle-menu ${o ? "hide" : ""}`, children: o ? null : [...N, void 0].map(
2429
- (s, E) => /* @__PURE__ */ p("button", { onClick: (W) => Re(W, s, E), children: /* @__PURE__ */ p(fe, { subtitleTrack: s }) }, s ? E : "disabled")
2443
+ /* @__PURE__ */ p(
2444
+ ir,
2445
+ {
2446
+ id: "subtitle-button-tooltip",
2447
+ globalEventOff: "click",
2448
+ disable: !c,
2449
+ class: "tooltip",
2450
+ children: /* @__PURE__ */ p("span", { children: "Subtitles" })
2451
+ }
2452
+ ),
2453
+ /* @__PURE__ */ p("div", { className: "subtitle-area", children: y.length ? /* @__PURE__ */ pe(Qe, { children: [
2454
+ /* @__PURE__ */ p("div", { className: `subtitle-menu ${c ? "hide" : ""}`, children: c ? null : [...y, void 0].map(
2455
+ (E, R) => /* @__PURE__ */ p("button", { onClick: (ee) => xe(ee, E, R), children: /* @__PURE__ */ p(Y, { subtitleTrack: E }) }, E ? R : "disabled")
2430
2456
  ) }),
2431
- /* @__PURE__ */ p("button", { className: "subtitle-menu-button", "data-tip": !0, "data-for": "subtitle-button-tooltip", onClick: Le, children: /* @__PURE__ */ p(fe, { subtitleTrack: b }) })
2457
+ /* @__PURE__ */ p("button", { className: "subtitle-menu-button", "data-tip": !0, "data-tooltip-id": "subtitle-button-tooltip", onClick: _e, children: /* @__PURE__ */ p(Y, { subtitleTrack: C }) })
2432
2458
  ] }) : null }),
2433
- /* @__PURE__ */ p(Ze, { id: "pip-button-tooltip", effect: "solid", place: "top", children: "Picture in Picture" }),
2434
- Ie ? /* @__PURE__ */ p("button", { className: "picture-in-picture", "data-tip": !0, "data-for": "pip-button-tooltip", onClick: x, 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: [
2459
+ /* @__PURE__ */ p(
2460
+ ir,
2461
+ {
2462
+ id: "pip-button-tooltip",
2463
+ place: "top",
2464
+ children: "Picture in Picture"
2465
+ }
2466
+ ),
2467
+ ne ? /* @__PURE__ */ p("button", { className: "picture-in-picture", "data-tip": !0, "data-tooltip-id": "pip-button-tooltip", onClick: S, children: /* @__PURE__ */ pe("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: [
2435
2468
  /* @__PURE__ */ p("rect", { x: "2", y: "3", width: "21", height: "14", rx: "2", ry: "2" }),
2436
2469
  /* @__PURE__ */ p("rect", { x: "12.5", y: "8.5", width: "8", height: "6", rx: "2", ry: "2" })
2437
2470
  ] }) }) : null,
2438
- /* @__PURE__ */ p(Ze, { id: "fullscreen-button-tooltip", effect: "solid", place: "top", children: S ? "Exit full screen (f)" : "Full screen (f)" }),
2439
- /* @__PURE__ */ p("button", { className: "fullscreen", "data-tip": !0, "data-for": "fullscreen-button-tooltip", onClick: y, children: S ? /* @__PURE__ */ p("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__ */ p("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__ */ p("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__ */ p("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" }) }) })
2471
+ /* @__PURE__ */ p(ir, { id: "fullscreen-button-tooltip", place: "top-end", children: b ? "Exit full screen (f)" : "Full screen (f)" }),
2472
+ /* @__PURE__ */ p("button", { className: "fullscreen", "data-tip": !0, "data-tooltip-id": "fullscreen-button-tooltip", onClick: N, children: b ? /* @__PURE__ */ p("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__ */ p("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__ */ p("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__ */ p("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" }) }) })
2440
2473
  ] })
2441
2474
  ] });
2442
2475
  }, pa = kr`
@@ -2463,108 +2496,111 @@ overflow: hidden;
2463
2496
  publicPath: r,
2464
2497
  isPlaying: t,
2465
2498
  loading: a,
2466
- duration: i,
2467
- loadedTime: o,
2499
+ duration: o,
2500
+ loadedTime: i,
2468
2501
  currentTime: l,
2469
- pictureInPicture: u,
2470
- fullscreen: d,
2471
- play: v,
2472
- seek: m,
2473
- getVolume: h,
2474
- setVolume: N,
2475
- attachments: S,
2502
+ pictureInPicture: c,
2503
+ fullscreen: f,
2504
+ play: g,
2505
+ seek: d,
2506
+ getVolume: v,
2507
+ setVolume: k,
2508
+ attachments: x,
2476
2509
  tracks: y,
2477
2510
  video: b,
2478
- errors: x,
2479
- customControls: _,
2480
- libassWorkerUrl: k,
2481
- wasmUrl: O,
2482
- needsInitialInteraction: I,
2483
- ...f
2511
+ videoReactive: N,
2512
+ errors: C,
2513
+ customControls: S,
2514
+ libassWorkerUrl: O,
2515
+ wasmUrl: $,
2516
+ needsInitialInteraction: u,
2517
+ ...B
2484
2518
  }) => {
2485
- const [M, R] = U(), [_e, ye] = U(!1), [Ie, $e] = U(!1), [Ce, q] = U(!1), K = er(), [oe, ie] = U(!0), [re, Ee] = U(), [Q, we] = U(), ee = Ir(
2486
- () => Q !== void 0 ? y[Q] : void 0,
2487
- [Q, Q !== void 0 && y[Q]?.data]
2488
- ), [Ne, Re] = U(!0), Le = (z) => {
2489
- q(!1), K.current && clearInterval(K.current);
2490
- const de = setTimeout(() => {
2491
- q(!0);
2519
+ const [_, $e] = q(), [ke, Le] = q(!1), [Pe, De] = q(!1), [ne, X] = q(!1), ce = er(), [Se, re] = q(!0), [te, le] = q(), [ae, be] = q(), K = Ir(
2520
+ () => ae !== void 0 ? y[ae] : void 0,
2521
+ [ae, ae !== void 0 && y[ae]?.data]
2522
+ ), [ye, Me] = q(!0), Fe = (Y) => {
2523
+ X(!1), ce.current && clearInterval(ce.current);
2524
+ const Ee = setTimeout(() => {
2525
+ X(!0);
2492
2526
  }, 3e3);
2493
- K.current = de;
2527
+ ce.current = Ee;
2494
2528
  };
2495
- pe(() => {
2529
+ we(() => {
2496
2530
  setTimeout(() => {
2497
- q(!0);
2531
+ X(!0);
2498
2532
  }, 3e3);
2499
2533
  }, []);
2500
- const Te = (z) => {
2501
- if (!M?.parentElement?.parentElement?.contains(z?.relatedTarget)) {
2502
- q(!0);
2534
+ const ge = (Y) => {
2535
+ if (!_?.parentElement?.parentElement?.contains(Y?.relatedTarget)) {
2536
+ X(!0);
2503
2537
  return;
2504
2538
  }
2505
- z.currentTarget.parentElement !== z.relatedTarget && z.relatedTarget !== null || q(!0);
2506
- }, fe = () => {
2507
- oe && v();
2508
- }, ke = () => {
2509
- !M || !re || ($e((z) => !z), d());
2539
+ Y.currentTarget.parentElement !== Y.relatedTarget && Y.relatedTarget !== null || X(!0);
2540
+ }, xe = () => {
2541
+ Se && g();
2542
+ }, _e = () => {
2543
+ !_ || !te || (De((Y) => !Y), f());
2510
2544
  };
2511
- pe(() => {
2512
- if (!b.current || !M || re || !ee?.data || !S)
2545
+ we(() => {
2546
+ if (!b.current || !_ || te || !K?.data || !x)
2513
2547
  return;
2514
- const z = S.map(({ filename: Oe, data: s }) => [
2515
- Oe.toLowerCase().replaceAll("-", " ").split(".").at(0),
2516
- s
2517
- ]), de = new zt({
2548
+ const Y = x.map(({ filename: h, data: V }) => [
2549
+ h.toLowerCase().replaceAll("-", " ").split(".").at(0),
2550
+ V
2551
+ ]), Ee = new zt({
2518
2552
  video: b.current,
2519
- canvas: M,
2520
- subContent: ee.data,
2521
- fonts: z.filter(Boolean).map(([, Oe]) => Oe),
2522
- availableFonts: { ...Object.fromEntries(z), "liberation sans": `${r}default.woff2` },
2523
- workerUrl: k,
2553
+ canvas: _,
2554
+ subContent: K.data,
2555
+ fonts: Y.filter(Boolean).map(([, h]) => h),
2556
+ availableFonts: { ...Object.fromEntries(Y), "liberation sans": `${r}default.woff2` },
2557
+ workerUrl: O,
2524
2558
  // Link to WebAssembly-based file "libassjs-worker.js",
2525
- modernWasmUrl: O
2559
+ modernWasmUrl: $
2526
2560
  });
2527
- Ee(de);
2528
- }, [M, S, ee?.data]), pe(() => {
2529
- y.length && we(0);
2530
- }, [y.length]), pe(() => {
2531
- if (!re)
2561
+ le(Ee);
2562
+ }, [_, x, K?.data]), we(() => {
2563
+ y.length && be(0);
2564
+ }, [y.length]), we(() => {
2565
+ if (!te)
2532
2566
  return;
2533
- if (!ee) {
2534
- re.freeTrack();
2567
+ if (!K) {
2568
+ te.freeTrack();
2535
2569
  return;
2536
2570
  }
2537
- re.setTrack(ee.data), !(!M?.parentElement || _e) && ye(!0);
2538
- }, [re, ee, _e]);
2539
- const se = (z) => {
2540
- z && R(z);
2571
+ te.setTrack(K.data), !(!_?.parentElement || ke) && Le(!0);
2572
+ }, [te, K, ke]);
2573
+ const Ce = (Y) => {
2574
+ Y && $e(Y);
2541
2575
  };
2542
- return /* @__PURE__ */ he("div", { ...f, css: pa, onMouseMove: Le, onMouseOut: Te, className: `chrome ${f.className ?? ""} ${Ce ? "hide" : ""}`, children: [
2543
- /* @__PURE__ */ p(fa, { needsInitialInteraction: I, loading: a, togglePlay: fe, setCanvasRef: se }),
2576
+ return /* @__PURE__ */ pe("div", { ...B, css: pa, onMouseMove: Fe, onMouseOut: ge, className: `chrome ${B.className ?? ""} ${ne ? "hide" : ""}`, children: [
2577
+ /* @__PURE__ */ p(fa, { needsInitialInteraction: u, loading: a, togglePlay: xe, setCanvasRef: Ce }),
2544
2578
  e,
2545
2579
  /* @__PURE__ */ p(
2546
2580
  ha,
2547
2581
  {
2548
- className: `bottom ${I ? "hide" : ""}`,
2549
- toggleFullscreen: ke,
2550
- togglePlay: fe,
2551
- isFullscreen: Ie,
2552
- pictureInPicture: u,
2553
- seek: m,
2554
- setCurrentSubtitleTrack: we,
2555
- isSubtitleMenuHidden: oe,
2556
- setIsSubtitleMenuHidden: ie,
2557
- isErrorMenuHidden: Ne,
2558
- setIsErrorMenuHidden: Re,
2559
- setVolume: N,
2560
- subtitleTrack: ee,
2582
+ className: `bottom ${u ? "hide" : ""}`,
2583
+ toggleFullscreen: _e,
2584
+ togglePlay: xe,
2585
+ isFullscreen: Pe,
2586
+ pictureInPicture: c,
2587
+ video: b,
2588
+ videoReactive: N,
2589
+ seek: d,
2590
+ setCurrentSubtitleTrack: be,
2591
+ isSubtitleMenuHidden: Se,
2592
+ setIsSubtitleMenuHidden: re,
2593
+ isErrorMenuHidden: ye,
2594
+ setIsErrorMenuHidden: Me,
2595
+ setVolume: k,
2596
+ subtitleTrack: K,
2561
2597
  tracks: y,
2562
2598
  currentTime: l,
2563
- duration: i,
2599
+ duration: o,
2564
2600
  isPlaying: t,
2565
- loadedTime: o,
2566
- errors: x,
2567
- customControls: _
2601
+ loadedTime: i,
2602
+ errors: C,
2603
+ customControls: S
2568
2604
  }
2569
2605
  )
2570
2606
  ] });
@@ -2593,194 +2629,194 @@ overflow: hidden;
2593
2629
  baseBufferSize: r = ba,
2594
2630
  size: t,
2595
2631
  fetch: a,
2596
- customControls: i,
2597
- publicPath: o,
2632
+ customControls: o,
2633
+ publicPath: i,
2598
2634
  wasmUrl: l,
2599
- libavWorkerUrl: u,
2600
- libavWorkerOptions: d,
2601
- libassWorkerUrl: v,
2602
- makeTransmuxer: m = Bt
2603
- }, h) => {
2604
- const [N, S] = U(!0), y = er(null), b = er(), [x, _] = U(), [k, O] = U(!(b?.current?.paused ?? !0)), [I, f] = U(0), [M, R] = U(void 0), [_e, ye] = U([]), [Ie, $e] = U([]), [Ce, q] = U(), [K, oe] = U([0, 0]), [ie, re] = U(!1), Ee = er(a);
2605
- pe(() => {
2606
- Ee.current = a;
2607
- }, [a]), pe(() => {
2608
- if (!t || !x)
2635
+ libavWorkerUrl: c,
2636
+ libavWorkerOptions: f,
2637
+ libassWorkerUrl: g,
2638
+ makeTransmuxer: d = Bt
2639
+ }, v) => {
2640
+ const [k, x] = q(!0), y = er(null), b = er(), [N, C] = q(), [S, O] = q(!(b?.current?.paused ?? !0)), [$, u] = q(0), [B, _] = q(void 0), [$e, ke] = q([]), [Le, Pe] = q([]), [De, ne] = q(), [X, ce] = q([0, 0]), [Se, re] = q(!1), te = er(a);
2641
+ we(() => {
2642
+ te.current = a;
2643
+ }, [a]), we(() => {
2644
+ if (!t || !N)
2609
2645
  return;
2610
- let E, W;
2646
+ let V, Te;
2611
2647
  return (async () => {
2612
- E = m({
2613
- publicPath: o,
2614
- workerUrl: u,
2615
- workerOptions: d,
2648
+ V = d({
2649
+ publicPath: i,
2650
+ workerUrl: c,
2651
+ workerOptions: f,
2616
2652
  bufferSize: r,
2617
2653
  length: t,
2618
- getStream: (C, P) => Ee.current(C, P ? Math.min(C + P, t) - 1 : void 0).then(
2619
- (G) => P ? G.body : la(3)(
2654
+ getStream: (T, A) => te.current(T, A ? Math.min(T + A, t) - 1 : void 0).then(
2655
+ (G) => A ? G.body : la(3)(
2620
2656
  ca(r)(
2621
2657
  G.body
2622
2658
  )
2623
2659
  )
2624
2660
  ),
2625
- subtitle: (C, P, G) => {
2626
- ye(
2627
- (H) => H.find(({ title: le }) => le === C) ? H.map((le) => le.title === C ? { title: C, language: P, data: G } : le) : [...H, { title: C, language: P, data: G }]
2661
+ subtitle: (T, A, G) => {
2662
+ ke(
2663
+ (H) => H.find(({ title: de }) => de === T) ? H.map((de) => de.title === T ? { title: T, language: A, data: G } : de) : [...H, { title: T, language: A, data: G }]
2628
2664
  );
2629
2665
  },
2630
- attachment: (C, P, G) => {
2631
- M?.find(({ filename: H }) => C === H) || R((H) => [
2666
+ attachment: (T, A, G) => {
2667
+ B?.find(({ filename: H }) => T === H) || _((H) => [
2632
2668
  ...H ?? [],
2633
- { filename: C, mimetype: P, data: new Uint8Array(G) }
2669
+ { filename: T, mimetype: A, data: new Uint8Array(G) }
2634
2670
  ]);
2635
2671
  }
2636
2672
  });
2637
- const me = await E, je = await me.init();
2638
- if (!je)
2673
+ const ue = await V, E = await ue.init();
2674
+ if (!E)
2639
2675
  throw new Error("No header chunk found after remuxer init");
2640
- const Ye = await me.getInfo(), ar = Ye.input.duration / 1e6;
2641
- q(ar), x.addEventListener("error", (C) => {
2642
- console.error(C.target?.error);
2676
+ const R = await ue.getInfo(), ee = R.input.duration / 1e6;
2677
+ ne(ee), N.addEventListener("error", (T) => {
2678
+ console.error(T.target?.error);
2643
2679
  });
2644
- const De = new MediaSource();
2645
- x.src = URL.createObjectURL(De);
2646
- const ge = await new Promise(
2647
- (C) => De.addEventListener(
2680
+ const je = new MediaSource();
2681
+ N.src = URL.createObjectURL(je);
2682
+ const he = await new Promise(
2683
+ (T) => je.addEventListener(
2648
2684
  "sourceopen",
2649
2685
  () => {
2650
- const P = De.addSourceBuffer(`video/mp4; codecs="${Ye.input.video_mime_type},${Ye.input.audio_mime_type}"`);
2651
- De.duration = ar, P.mode = "segments", C(P);
2686
+ const A = je.addSourceBuffer(`video/mp4; codecs="${R.input.video_mime_type},${R.input.audio_mime_type}"`);
2687
+ je.duration = ee, A.mode = "segments", T(A);
2652
2688
  },
2653
2689
  { once: !0 }
2654
2690
  )
2655
- ), gr = new Gt({ concurrency: 1 }), Ue = (C, P) => {
2656
- const G = (Y) => {
2657
- C(Y), B();
2658
- }, H = (Y) => {
2659
- C(Y), B();
2660
- }, le = (Y) => {
2661
- console.error(Y), P(Y), B();
2662
- }, B = () => {
2663
- ge.removeEventListener("updateend", G), ge.removeEventListener("abort", H), ge.removeEventListener("error", le);
2691
+ ), gr = new Gt({ concurrency: 1 }), We = (T, A) => {
2692
+ const G = (W) => {
2693
+ T(W), U();
2694
+ }, H = (W) => {
2695
+ T(W), U();
2696
+ }, de = (W) => {
2697
+ console.error(W), A(W), U();
2698
+ }, U = () => {
2699
+ he.removeEventListener("updateend", G), he.removeEventListener("abort", H), he.removeEventListener("error", de);
2664
2700
  };
2665
- ge.addEventListener("updateend", G, { once: !0 }), ge.addEventListener("abort", H, { once: !0 }), ge.addEventListener("error", le, { once: !0 });
2666
- }, We = (C) => gr.add(
2667
- () => new Promise((P, G) => {
2668
- Ue(P, G), ge.appendBuffer(C);
2701
+ he.addEventListener("updateend", G, { once: !0 }), he.addEventListener("abort", H, { once: !0 }), he.addEventListener("error", de, { once: !0 });
2702
+ }, qe = (T) => gr.add(
2703
+ () => new Promise((A, G) => {
2704
+ We(A, G), he.appendBuffer(T);
2669
2705
  })
2670
- ), hr = async (C, P) => gr.add(
2706
+ ), hr = async (T, A) => gr.add(
2671
2707
  () => new Promise((G, H) => {
2672
- Ue(G, H), ge.remove(C, P);
2708
+ We(G, H), he.remove(T, A);
2673
2709
  })
2674
- ), or = () => Array(ge.buffered.length).fill(void 0).map((C, P) => ({
2675
- index: P,
2676
- start: ge.buffered.start(P),
2677
- end: ge.buffered.end(P)
2710
+ ), ar = () => Array(he.buffered.length).fill(void 0).map((T, A) => ({
2711
+ index: A,
2712
+ start: he.buffered.start(A),
2713
+ end: he.buffered.end(A)
2678
2714
  }));
2679
- x.addEventListener("canplaythrough", () => {
2680
- x.playbackRate = 1, x.play();
2715
+ N.addEventListener("canplaythrough", () => {
2716
+ N.playbackRate = 1, N.play();
2681
2717
  }, { once: !0 });
2682
- let ce = [];
2683
- const Ve = 1, Rr = 15;
2684
- await We(je.buffer);
2685
- let qe = !1;
2686
- const Ge = async () => {
2687
- if (qe)
2718
+ let fe = [];
2719
+ const ze = 1, Rr = 15;
2720
+ await qe(E.buffer);
2721
+ let Ge = !1;
2722
+ const Ke = async () => {
2723
+ if (Ge)
2688
2724
  throw new Error("end");
2689
- const C = await me.read();
2690
- return C.isTrailer && (qe = !0), ce = [...ce, C], C;
2725
+ const T = await ue.read();
2726
+ return T.isTrailer && (Ge = !0), fe = [...fe, T], T;
2691
2727
  };
2692
- let Be = !1;
2693
- const Ke = sa(250, async () => {
2694
- if (Be)
2728
+ let Ye = !1;
2729
+ const He = sa(250, async () => {
2730
+ if (Ye)
2695
2731
  return;
2696
- const { currentTime: C } = x, P = ce.findIndex(({ pts: ne, duration: Je }) => ne <= C && ne + Je >= C), G = Math.max(0, P - Ve), H = () => {
2697
- const ne = ce.at(-1);
2698
- return ne ? ne.pts + ne.duration : 0;
2732
+ const { currentTime: T } = N, A = fe.findIndex(({ pts: ie, duration: Xe }) => ie <= T && ie + Xe >= T), G = Math.max(0, A - ze), H = () => {
2733
+ const ie = fe.at(-1);
2734
+ return ie ? ie.pts + ie.duration : 0;
2699
2735
  };
2700
- for (; H() < C + Rr; ) {
2701
- const ne = await Ge();
2702
- await We(ne.buffer);
2736
+ for (; H() < T + Rr; ) {
2737
+ const ie = await Ke();
2738
+ await qe(ie.buffer);
2703
2739
  }
2704
- G && (ce = ce.slice(G));
2705
- const le = or(), B = ce.at(0), Y = ce.at(-1);
2706
- if (!B || !Y || B === Y)
2740
+ G && (fe = fe.slice(G));
2741
+ const de = ar(), U = fe.at(0), W = fe.at(-1);
2742
+ if (!U || !W || U === W)
2707
2743
  return;
2708
- const He = B.pts;
2709
- for (const { start: ne, end: Je } of le)
2710
- ce.findIndex(({ pts: pr, duration: ir }) => ne <= pr + ir / 2 && pr + ir / 2 <= Je) === -1 ? await hr(ne, Je) : ne < He && await hr(
2711
- ne,
2712
- He
2744
+ const Je = U.pts;
2745
+ for (const { start: ie, end: Xe } of de)
2746
+ fe.findIndex(({ pts: pr, duration: or }) => ie <= pr + or / 2 && pr + or / 2 <= Xe) === -1 ? await hr(ie, Xe) : ie < Je && await hr(
2747
+ ie,
2748
+ Je
2713
2749
  );
2714
2750
  });
2715
- let ze;
2716
- const Tr = ia(250, async (C) => {
2751
+ let Ue;
2752
+ const Tr = ia(250, async (T) => {
2717
2753
  try {
2718
- qe = !1, ze === void 0 && (ze = x.paused), Be = !0, ce = [], await me.seek(C);
2719
- const P = await Ge();
2720
- ge.timestampOffset = P.pts, await We(P.buffer), ze === !1 && await x.play(), Be = !1, await Ke(), ze === !1 && await x.play(), ze = void 0;
2721
- } catch (P) {
2722
- if (P.message !== "exit")
2723
- throw P;
2754
+ Ge = !1, Ue === void 0 && (Ue = N.paused), Ye = !0, fe = [], await ue.seek(T);
2755
+ const A = await Ke();
2756
+ he.timestampOffset = A.pts, await qe(A.buffer), Ue === !1 && await N.play(), Ye = !1, await He(), Ue === !1 && await N.play(), Ue = void 0;
2757
+ } catch (A) {
2758
+ if (A.message !== "exit")
2759
+ throw A;
2724
2760
  }
2725
- }), Or = await Ge();
2726
- We(Or.buffer), x.addEventListener("timeupdate", () => {
2727
- Ke();
2728
- }), x.addEventListener("waiting", () => {
2729
- Ke();
2730
- }), x.addEventListener("seeking", (C) => {
2731
- Tr(x.currentTime);
2732
- }), Ke(), W = window.setInterval(() => {
2733
- const C = or(), P = C.sort(({ start: B }, { start: Y }) => B - Y).at(0), G = C.sort(({ end: B }, { end: Y }) => B - Y).at(-1);
2734
- if (!P || !G)
2761
+ }), Or = await Ke();
2762
+ qe(Or.buffer), N.addEventListener("timeupdate", () => {
2763
+ He();
2764
+ }), N.addEventListener("waiting", () => {
2765
+ He();
2766
+ }), N.addEventListener("seeking", (T) => {
2767
+ Tr(N.currentTime);
2768
+ }), He(), Te = window.setInterval(() => {
2769
+ const T = ar(), A = T.sort(({ start: U }, { start: W }) => U - W).at(0), G = T.sort(({ end: U }, { end: W }) => U - W).at(-1);
2770
+ if (!A || !G)
2735
2771
  return;
2736
- let H = ce.filter(({ pts: B, duration: Y }) => B + Y / 2 > P.start).sort(({ pts: B }, { pts: Y }) => B - Y).at(0)?.pts, le = ce.filter(({ pts: B, duration: Y }) => B + Y / 2 < G.end).sort(({ pts: B }, { pts: Y }) => B - Y).at(-1)?.pts;
2737
- H === void 0 || le === void 0 || oe([H, le]);
2772
+ let H = fe.filter(({ pts: U, duration: W }) => U + W / 2 > A.start).sort(({ pts: U }, { pts: W }) => U - W).at(0)?.pts, de = fe.filter(({ pts: U, duration: W }) => U + W / 2 < G.end).sort(({ pts: U }, { pts: W }) => U - W).at(-1)?.pts;
2773
+ H === void 0 || de === void 0 || ce([H, de]);
2738
2774
  }, 200);
2739
2775
  })(), () => {
2740
- E.then((me) => me.destroy(!0)), window.clearInterval(W);
2776
+ V.then((ue) => ue.destroy(!0)), window.clearInterval(Te);
2741
2777
  };
2742
- }, [t, x]);
2743
- const Q = (E) => {
2744
- S(!0);
2745
- }, [we, ee] = U(!1), Ne = (E) => {
2746
- ee(!1);
2747
- }, Re = (E) => {
2748
- b.current && (ee(!0), f(b.current?.currentTime ?? 0));
2749
- }, Le = (E) => {
2750
- x && (x.currentTime = E, ee(!0));
2751
- }, Te = (E) => {
2752
- we || (f(b.current?.currentTime ?? 0), S(!1));
2753
- }, fe = (E) => (W) => {
2754
- O(E);
2755
- }, ke = () => {
2778
+ }, [t, N]);
2779
+ const le = (V) => {
2780
+ x(!0);
2781
+ }, [ae, be] = q(!1), K = (V) => {
2782
+ be(!1);
2783
+ }, ye = (V) => {
2784
+ b.current && (be(!0), u(b.current?.currentTime ?? 0));
2785
+ }, Me = (V) => {
2786
+ N && (N.currentTime = V, be(!0));
2787
+ }, Fe = (V) => {
2788
+ ae || (u(b.current?.currentTime ?? 0), x(!1));
2789
+ }, ge = (V) => (Te) => {
2790
+ O(V);
2791
+ }, xe = () => {
2756
2792
  if (document.pictureInPictureElement)
2757
2793
  return document.exitPictureInPicture();
2758
2794
  b.current?.requestPictureInPicture();
2759
- }, se = () => {
2795
+ }, _e = () => {
2760
2796
  if (document.fullscreenElement)
2761
2797
  return document.exitFullscreen();
2762
2798
  y.current?.requestFullscreen();
2763
- }, z = async () => {
2799
+ }, Ce = async () => {
2764
2800
  re(!1), b.current?.paused ? await b.current?.play() : await b.current?.pause();
2765
- }, de = (E) => {
2766
- b.current && (b.current.volume = E);
2767
- }, Oe = () => {
2801
+ }, Y = (V) => {
2802
+ b.current && (b.current.volume = V);
2803
+ }, Ee = () => {
2768
2804
  if (b.current)
2769
2805
  return b.current.volume;
2770
2806
  };
2771
- return /* @__PURE__ */ he("div", { css: ya, ref: y, children: [
2807
+ return /* @__PURE__ */ pe("div", { css: ya, ref: y, children: [
2772
2808
  /* @__PURE__ */ p(
2773
2809
  "video",
2774
2810
  {
2775
- ref: (E) => {
2776
- typeof h == "function" && h(E), h && "current" in h && (h.current = E), b.current = E ?? void 0, _(b.current);
2811
+ ref: (V) => {
2812
+ typeof v == "function" && v(V), v && "current" in v && (v.current = V), b.current = V ?? void 0, C(b.current);
2777
2813
  },
2778
- onWaiting: Q,
2779
- onSeeking: Re,
2780
- onSeeked: Ne,
2781
- onTimeUpdate: Te,
2782
- onPlay: fe(!0),
2783
- onPause: fe(!1)
2814
+ onWaiting: le,
2815
+ onSeeking: ye,
2816
+ onSeeked: K,
2817
+ onTimeUpdate: Fe,
2818
+ onPlay: ge(!0),
2819
+ onPause: ge(!1)
2784
2820
  }
2785
2821
  ),
2786
2822
  /* @__PURE__ */ p(
@@ -2788,25 +2824,26 @@ overflow: hidden;
2788
2824
  {
2789
2825
  className: "chrome",
2790
2826
  customOverlay: e,
2791
- publicPath: o,
2792
- isPlaying: k,
2827
+ publicPath: i,
2828
+ isPlaying: S,
2793
2829
  video: b,
2794
- needsInitialInteraction: ie,
2795
- loading: N,
2796
- duration: Ce,
2797
- currentTime: I,
2798
- loadedTime: K,
2799
- pictureInPicture: ke,
2800
- fullscreen: se,
2801
- play: z,
2802
- seek: Le,
2803
- getVolume: Oe,
2804
- setVolume: de,
2805
- attachments: M,
2806
- tracks: _e,
2807
- errors: Ie,
2808
- customControls: i,
2809
- libassWorkerUrl: v,
2830
+ videoReactive: N,
2831
+ needsInitialInteraction: Se,
2832
+ loading: k,
2833
+ duration: De,
2834
+ currentTime: $,
2835
+ loadedTime: X,
2836
+ pictureInPicture: xe,
2837
+ fullscreen: _e,
2838
+ play: Ce,
2839
+ seek: Me,
2840
+ getVolume: Ee,
2841
+ setVolume: Y,
2842
+ attachments: B,
2843
+ tracks: $e,
2844
+ errors: Le,
2845
+ customControls: o,
2846
+ libassWorkerUrl: g,
2810
2847
  wasmUrl: l
2811
2848
  }
2812
2849
  )