@halibegic/react-video-player 0.0.10 → 0.0.12

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.
@@ -1,12 +1,9 @@
1
- import Ue, { useLayoutEffect as vn, useEffect as be, useRef as ve, useState as ye, createContext as or, useContext as Je, createElement as gn, forwardRef as lt, useCallback as he } from "react";
2
- import { create as ir, useStore as ar } from "zustand";
3
- import * as ut from "@radix-ui/react-slider";
4
- import De from "hls.js";
5
- import * as Ke from "@radix-ui/react-dropdown-menu";
6
- function yn(e) {
7
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
- }
9
- var Qe = { exports: {} }, qe = {};
1
+ import Re, { useLayoutEffect as vo, useEffect as te, useRef as Y, useState as X, createContext as Nn, useContext as Zt, useDebugValue as mn, createElement as wo, forwardRef as yt, useCallback as B } from "react";
2
+ import { create as $n, useStore as Hn } from "zustand";
3
+ import * as vt from "@radix-ui/react-slider";
4
+ import Ce from "hls.js";
5
+ import * as Qe from "@radix-ui/react-dropdown-menu";
6
+ var nt = { exports: {} }, Ge = {};
10
7
  /**
11
8
  * @license React
12
9
  * react-jsx-runtime.production.min.js
@@ -16,21 +13,21 @@ var Qe = { exports: {} }, qe = {};
16
13
  * This source code is licensed under the MIT license found in the
17
14
  * LICENSE file in the root directory of this source tree.
18
15
  */
19
- var Vt;
20
- function wn() {
21
- if (Vt) return qe;
22
- Vt = 1;
23
- var e = Ue, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
24
- function l(d, u, f) {
25
- var v, w = {}, L = null, R = null;
26
- f !== void 0 && (L = "" + f), u.key !== void 0 && (L = "" + u.key), u.ref !== void 0 && (R = u.ref);
27
- for (v in u) n.call(u, v) && !c.hasOwnProperty(v) && (w[v] = u[v]);
28
- if (d && d.defaultProps) for (v in u = d.defaultProps, u) w[v] === void 0 && (w[v] = u[v]);
29
- return { $$typeof: r, type: d, key: L, ref: R, props: w, _owner: i.current };
16
+ var gn;
17
+ function bo() {
18
+ if (gn) return Ge;
19
+ gn = 1;
20
+ var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function l(u, s, d) {
22
+ var p, g = {}, w = null, v = null;
23
+ d !== void 0 && (w = "" + d), s.key !== void 0 && (w = "" + s.key), s.ref !== void 0 && (v = s.ref);
24
+ for (p in s) r.call(s, p) && !a.hasOwnProperty(p) && (g[p] = s[p]);
25
+ if (u && u.defaultProps) for (p in s = u.defaultProps, s) g[p] === void 0 && (g[p] = s[p]);
26
+ return { $$typeof: t, type: u, key: w, ref: v, props: g, _owner: i.current };
30
27
  }
31
- return qe.Fragment = t, qe.jsx = l, qe.jsxs = l, qe;
28
+ return Ge.Fragment = n, Ge.jsx = l, Ge.jsxs = l, Ge;
32
29
  }
33
- var Ze = {};
30
+ var Xe = {};
34
31
  /**
35
32
  * @license React
36
33
  * react-jsx-runtime.development.js
@@ -40,91 +37,91 @@ var Ze = {};
40
37
  * This source code is licensed under the MIT license found in the
41
38
  * LICENSE file in the root directory of this source tree.
42
39
  */
43
- var $t;
44
- function bn() {
45
- return $t || ($t = 1, process.env.NODE_ENV !== "production" && (function() {
46
- var e = Ue, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), E = Symbol.iterator, k = "@@iterator";
47
- function _(o) {
40
+ var yn;
41
+ function xo() {
42
+ return yn || (yn = 1, process.env.NODE_ENV !== "production" && (function() {
43
+ var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E = Symbol.iterator, T = "@@iterator";
44
+ function M(o) {
48
45
  if (o === null || typeof o != "object")
49
46
  return null;
50
- var m = E && o[E] || o[k];
51
- return typeof m == "function" ? m : null;
47
+ var f = E && o[E] || o[T];
48
+ return typeof f == "function" ? f : null;
52
49
  }
53
- var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function x(o) {
50
+ var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function b(o) {
55
52
  {
56
- for (var m = arguments.length, C = new Array(m > 1 ? m - 1 : 0), O = 1; O < m; O++)
57
- C[O - 1] = arguments[O];
58
- g("error", o, C);
53
+ for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
54
+ y[S - 1] = arguments[S];
55
+ h("error", o, y);
59
56
  }
60
57
  }
61
- function g(o, m, C) {
58
+ function h(o, f, y) {
62
59
  {
63
- var O = j.ReactDebugCurrentFrame, W = O.getStackAddendum();
64
- W !== "" && (m += "%s", C = C.concat([W]));
65
- var X = C.map(function(z) {
66
- return String(z);
60
+ var S = P.ReactDebugCurrentFrame, A = S.getStackAddendum();
61
+ A !== "" && (f += "%s", y = y.concat([A]));
62
+ var F = y.map(function(j) {
63
+ return String(j);
67
64
  });
68
- X.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, X);
65
+ F.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, F);
69
66
  }
70
67
  }
71
- var A = !1, p = !1, U = !1, de = !1, te = !1, ce;
72
- ce = Symbol.for("react.module.reference");
73
- function M(o) {
74
- return !!(typeof o == "string" || typeof o == "function" || o === n || o === c || te || o === i || o === f || o === v || de || o === R || A || p || U || typeof o == "object" && o !== null && (o.$$typeof === L || o.$$typeof === w || o.$$typeof === l || o.$$typeof === d || o.$$typeof === u || // This needs to include all possible module reference object
68
+ var L = !1, D = !1, C = !1, x = !1, W = !1, J;
69
+ J = Symbol.for("react.module.reference");
70
+ function I(o) {
71
+ return !!(typeof o == "string" || typeof o == "function" || o === r || o === a || W || o === i || o === d || o === p || x || o === v || L || D || C || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === g || o.$$typeof === l || o.$$typeof === u || o.$$typeof === s || // This needs to include all possible module reference object
75
72
  // types supported by any Flight configuration anywhere since
76
73
  // we don't know which Flight build this will end up being used
77
74
  // with.
78
- o.$$typeof === ce || o.getModuleId !== void 0));
75
+ o.$$typeof === J || o.getModuleId !== void 0));
79
76
  }
80
- function xe(o, m, C) {
81
- var O = o.displayName;
82
- if (O)
83
- return O;
84
- var W = m.displayName || m.name || "";
85
- return W !== "" ? C + "(" + W + ")" : C;
77
+ function _e(o, f, y) {
78
+ var S = o.displayName;
79
+ if (S)
80
+ return S;
81
+ var A = f.displayName || f.name || "";
82
+ return A !== "" ? y + "(" + A + ")" : y;
86
83
  }
87
- function re(o) {
84
+ function fe(o) {
88
85
  return o.displayName || "Context";
89
86
  }
90
- function J(o) {
87
+ function q(o) {
91
88
  if (o == null)
92
89
  return null;
93
- if (typeof o.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
90
+ if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
94
91
  return o.displayName || o.name || null;
95
92
  if (typeof o == "string")
96
93
  return o;
97
94
  switch (o) {
98
- case n:
95
+ case r:
99
96
  return "Fragment";
100
- case t:
97
+ case n:
101
98
  return "Portal";
102
- case c:
99
+ case a:
103
100
  return "Profiler";
104
101
  case i:
105
102
  return "StrictMode";
106
- case f:
103
+ case d:
107
104
  return "Suspense";
108
- case v:
105
+ case p:
109
106
  return "SuspenseList";
110
107
  }
111
108
  if (typeof o == "object")
112
109
  switch (o.$$typeof) {
113
- case d:
114
- var m = o;
115
- return re(m) + ".Consumer";
116
- case l:
117
- var C = o;
118
- return re(C._context) + ".Provider";
119
110
  case u:
120
- return xe(o, o.render, "ForwardRef");
121
- case w:
122
- var O = o.displayName || null;
123
- return O !== null ? O : J(o.type) || "Memo";
124
- case L: {
125
- var W = o, X = W._payload, z = W._init;
111
+ var f = o;
112
+ return fe(f) + ".Consumer";
113
+ case l:
114
+ var y = o;
115
+ return fe(y._context) + ".Provider";
116
+ case s:
117
+ return _e(o, o.render, "ForwardRef");
118
+ case g:
119
+ var S = o.displayName || null;
120
+ return S !== null ? S : q(o.type) || "Memo";
121
+ case w: {
122
+ var A = o, F = A._payload, j = A._init;
126
123
  try {
127
- return J(z(X));
124
+ return q(j(F));
128
125
  } catch {
129
126
  return null;
130
127
  }
@@ -132,18 +129,18 @@ function bn() {
132
129
  }
133
130
  return null;
134
131
  }
135
- var ne = Object.assign, K = 0, Se, Q, pe, Pe, Ee, Re, P;
136
- function S() {
132
+ var ne = Object.assign, ue = 0, xe, K, Ye, re, me, ge, Z;
133
+ function Ie() {
137
134
  }
138
- S.__reactDisabledLog = !0;
139
- function T() {
135
+ Ie.__reactDisabledLog = !0;
136
+ function qe() {
140
137
  {
141
- if (K === 0) {
142
- Se = console.log, Q = console.info, pe = console.warn, Pe = console.error, Ee = console.group, Re = console.groupCollapsed, P = console.groupEnd;
138
+ if (ue === 0) {
139
+ xe = console.log, K = console.info, Ye = console.warn, re = console.error, me = console.group, ge = console.groupCollapsed, Z = console.groupEnd;
143
140
  var o = {
144
141
  configurable: !0,
145
142
  enumerable: !0,
146
- value: S,
143
+ value: Ie,
147
144
  writable: !0
148
145
  };
149
146
  Object.defineProperties(console, {
@@ -156,12 +153,12 @@ function bn() {
156
153
  groupEnd: o
157
154
  });
158
155
  }
159
- K++;
156
+ ue++;
160
157
  }
161
158
  }
162
- function D() {
159
+ function De() {
163
160
  {
164
- if (K--, K === 0) {
161
+ if (ue--, ue === 0) {
165
162
  var o = {
166
163
  configurable: !0,
167
164
  enumerable: !0,
@@ -169,319 +166,319 @@ function bn() {
169
166
  };
170
167
  Object.defineProperties(console, {
171
168
  log: ne({}, o, {
172
- value: Se
169
+ value: xe
173
170
  }),
174
171
  info: ne({}, o, {
175
- value: Q
172
+ value: K
176
173
  }),
177
174
  warn: ne({}, o, {
178
- value: pe
175
+ value: Ye
179
176
  }),
180
177
  error: ne({}, o, {
181
- value: Pe
178
+ value: re
182
179
  }),
183
180
  group: ne({}, o, {
184
- value: Ee
181
+ value: me
185
182
  }),
186
183
  groupCollapsed: ne({}, o, {
187
- value: Re
184
+ value: ge
188
185
  }),
189
186
  groupEnd: ne({}, o, {
190
- value: P
187
+ value: Z
191
188
  })
192
189
  });
193
190
  }
194
- K < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ ue < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
192
  }
196
193
  }
197
- var s = j.ReactCurrentDispatcher, V;
198
- function y(o, m, C) {
194
+ var pe = P.ReactCurrentDispatcher, ye;
195
+ function se(o, f, y) {
199
196
  {
200
- if (V === void 0)
197
+ if (ye === void 0)
201
198
  try {
202
199
  throw Error();
203
- } catch (W) {
204
- var O = W.stack.trim().match(/\n( *(at )?)/);
205
- V = O && O[1] || "";
200
+ } catch (A) {
201
+ var S = A.stack.trim().match(/\n( *(at )?)/);
202
+ ye = S && S[1] || "";
206
203
  }
207
204
  return `
208
- ` + V + o;
205
+ ` + ye + o;
209
206
  }
210
207
  }
211
- var G = !1, N;
208
+ var ae = !1, ve;
212
209
  {
213
- var H = typeof WeakMap == "function" ? WeakMap : Map;
214
- N = new H();
210
+ var Ae = typeof WeakMap == "function" ? WeakMap : Map;
211
+ ve = new Ae();
215
212
  }
216
- function h(o, m) {
217
- if (!o || G)
213
+ function ce(o, f) {
214
+ if (!o || ae)
218
215
  return "";
219
216
  {
220
- var C = N.get(o);
221
- if (C !== void 0)
222
- return C;
217
+ var y = ve.get(o);
218
+ if (y !== void 0)
219
+ return y;
223
220
  }
224
- var O;
225
- G = !0;
226
- var W = Error.prepareStackTrace;
221
+ var S;
222
+ ae = !0;
223
+ var A = Error.prepareStackTrace;
227
224
  Error.prepareStackTrace = void 0;
228
- var X;
229
- X = s.current, s.current = null, T();
225
+ var F;
226
+ F = pe.current, pe.current = null, qe();
230
227
  try {
231
- if (m) {
232
- var z = function() {
228
+ if (f) {
229
+ var j = function() {
233
230
  throw Error();
234
231
  };
235
- if (Object.defineProperty(z.prototype, "props", {
232
+ if (Object.defineProperty(j.prototype, "props", {
236
233
  set: function() {
237
234
  throw Error();
238
235
  }
239
236
  }), typeof Reflect == "object" && Reflect.construct) {
240
237
  try {
241
- Reflect.construct(z, []);
242
- } catch (we) {
243
- O = we;
238
+ Reflect.construct(j, []);
239
+ } catch (Q) {
240
+ S = Q;
244
241
  }
245
- Reflect.construct(o, [], z);
242
+ Reflect.construct(o, [], j);
246
243
  } else {
247
244
  try {
248
- z.call();
249
- } catch (we) {
250
- O = we;
245
+ j.call();
246
+ } catch (Q) {
247
+ S = Q;
251
248
  }
252
- o.call(z.prototype);
249
+ o.call(j.prototype);
253
250
  }
254
251
  } else {
255
252
  try {
256
253
  throw Error();
257
- } catch (we) {
258
- O = we;
254
+ } catch (Q) {
255
+ S = Q;
259
256
  }
260
257
  o();
261
258
  }
262
- } catch (we) {
263
- if (we && O && typeof we.stack == "string") {
264
- for (var $ = we.stack.split(`
265
- `), ge = O.stack.split(`
266
- `), se = $.length - 1, ue = ge.length - 1; se >= 1 && ue >= 0 && $[se] !== ge[ue]; )
267
- ue--;
268
- for (; se >= 1 && ue >= 0; se--, ue--)
269
- if ($[se] !== ge[ue]) {
270
- if (se !== 1 || ue !== 1)
259
+ } catch (Q) {
260
+ if (Q && S && typeof Q.stack == "string") {
261
+ for (var R = Q.stack.split(`
262
+ `), G = S.stack.split(`
263
+ `), N = R.length - 1, $ = G.length - 1; N >= 1 && $ >= 0 && R[N] !== G[$]; )
264
+ $--;
265
+ for (; N >= 1 && $ >= 0; N--, $--)
266
+ if (R[N] !== G[$]) {
267
+ if (N !== 1 || $ !== 1)
271
268
  do
272
- if (se--, ue--, ue < 0 || $[se] !== ge[ue]) {
273
- var Te = `
274
- ` + $[se].replace(" at new ", " at ");
275
- return o.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", o.displayName)), typeof o == "function" && N.set(o, Te), Te;
269
+ if (N--, $--, $ < 0 || R[N] !== G[$]) {
270
+ var oe = `
271
+ ` + R[N].replace(" at new ", " at ");
272
+ return o.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", o.displayName)), typeof o == "function" && ve.set(o, oe), oe;
276
273
  }
277
- while (se >= 1 && ue >= 0);
274
+ while (N >= 1 && $ >= 0);
278
275
  break;
279
276
  }
280
277
  }
281
278
  } finally {
282
- G = !1, s.current = X, D(), Error.prepareStackTrace = W;
279
+ ae = !1, pe.current = F, De(), Error.prepareStackTrace = A;
283
280
  }
284
- var He = o ? o.displayName || o.name : "", Oe = He ? y(He) : "";
285
- return typeof o == "function" && N.set(o, Oe), Oe;
281
+ var Fe = o ? o.displayName || o.name : "", Se = Fe ? se(Fe) : "";
282
+ return typeof o == "function" && ve.set(o, Se), Se;
286
283
  }
287
- function oe(o, m, C) {
288
- return h(o, !1);
284
+ function qr(o, f, y) {
285
+ return ce(o, !1);
289
286
  }
290
- function ae(o) {
291
- var m = o.prototype;
292
- return !!(m && m.isReactComponent);
287
+ function Zr(o) {
288
+ var f = o.prototype;
289
+ return !!(f && f.isReactComponent);
293
290
  }
294
- function F(o, m, C) {
291
+ function et(o, f, y) {
295
292
  if (o == null)
296
293
  return "";
297
294
  if (typeof o == "function")
298
- return h(o, ae(o));
295
+ return ce(o, Zr(o));
299
296
  if (typeof o == "string")
300
- return y(o);
297
+ return se(o);
301
298
  switch (o) {
302
- case f:
303
- return y("Suspense");
304
- case v:
305
- return y("SuspenseList");
299
+ case d:
300
+ return se("Suspense");
301
+ case p:
302
+ return se("SuspenseList");
306
303
  }
307
304
  if (typeof o == "object")
308
305
  switch (o.$$typeof) {
309
- case u:
310
- return oe(o.render);
311
- case w:
312
- return F(o.type, m, C);
313
- case L: {
314
- var O = o, W = O._payload, X = O._init;
306
+ case s:
307
+ return qr(o.render);
308
+ case g:
309
+ return et(o.type, f, y);
310
+ case w: {
311
+ var S = o, A = S._payload, F = S._init;
315
312
  try {
316
- return F(X(W), m, C);
313
+ return et(F(A), f, y);
317
314
  } catch {
318
315
  }
319
316
  }
320
317
  }
321
318
  return "";
322
319
  }
323
- var ie = Object.prototype.hasOwnProperty, B = {}, le = j.ReactDebugCurrentFrame;
324
- function ke(o) {
320
+ var Ze = Object.prototype.hasOwnProperty, en = {}, tn = P.ReactDebugCurrentFrame;
321
+ function tt(o) {
325
322
  if (o) {
326
- var m = o._owner, C = F(o.type, o._source, m ? m.type : null);
327
- le.setExtraStackFrame(C);
323
+ var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
324
+ tn.setExtraStackFrame(y);
328
325
  } else
329
- le.setExtraStackFrame(null);
326
+ tn.setExtraStackFrame(null);
330
327
  }
331
- function fe(o, m, C, O, W) {
328
+ function Gr(o, f, y, S, A) {
332
329
  {
333
- var X = Function.call.bind(ie);
334
- for (var z in o)
335
- if (X(o, z)) {
336
- var $ = void 0;
330
+ var F = Function.call.bind(Ze);
331
+ for (var j in o)
332
+ if (F(o, j)) {
333
+ var R = void 0;
337
334
  try {
338
- if (typeof o[z] != "function") {
339
- var ge = Error((O || "React class") + ": " + C + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw ge.name = "Invariant Violation", ge;
335
+ if (typeof o[j] != "function") {
336
+ var G = Error((S || "React class") + ": " + y + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw G.name = "Invariant Violation", G;
341
338
  }
342
- $ = o[z](m, z, O, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (se) {
344
- $ = se;
339
+ R = o[j](f, j, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (N) {
341
+ R = N;
345
342
  }
346
- $ && !($ instanceof Error) && (ke(W), x("%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).", O || "React class", C, z, typeof $), ke(null)), $ instanceof Error && !($.message in B) && (B[$.message] = !0, ke(W), x("Failed %s type: %s", C, $.message), ke(null));
343
+ R && !(R instanceof Error) && (tt(A), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", y, j, typeof R), tt(null)), R instanceof Error && !(R.message in en) && (en[R.message] = !0, tt(A), b("Failed %s type: %s", y, R.message), tt(null));
347
344
  }
348
345
  }
349
346
  }
350
- var Fe = Array.isArray;
351
- function Ae(o) {
352
- return Fe(o);
347
+ var Xr = Array.isArray;
348
+ function Pt(o) {
349
+ return Xr(o);
353
350
  }
354
- function Ce(o) {
351
+ function Jr(o) {
355
352
  {
356
- var m = typeof Symbol == "function" && Symbol.toStringTag, C = m && o[Symbol.toStringTag] || o.constructor.name || "Object";
357
- return C;
353
+ var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
354
+ return y;
358
355
  }
359
356
  }
360
- function I(o) {
357
+ function Kr(o) {
361
358
  try {
362
- return ee(o), !1;
359
+ return nn(o), !1;
363
360
  } catch {
364
361
  return !0;
365
362
  }
366
363
  }
367
- function ee(o) {
364
+ function nn(o) {
368
365
  return "" + o;
369
366
  }
370
- function Ne(o) {
371
- if (I(o))
372
- return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ce(o)), ee(o);
367
+ function rn(o) {
368
+ if (Kr(o))
369
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(o)), nn(o);
373
370
  }
374
- var Ve = j.ReactCurrentOwner, _e = {
371
+ var on = P.ReactCurrentOwner, Qr = {
375
372
  key: !0,
376
373
  ref: !0,
377
374
  __self: !0,
378
375
  __source: !0
379
- }, At, jt;
380
- function Kr(o) {
381
- if (ie.call(o, "ref")) {
382
- var m = Object.getOwnPropertyDescriptor(o, "ref").get;
383
- if (m && m.isReactWarning)
376
+ }, sn, an;
377
+ function eo(o) {
378
+ if (Ze.call(o, "ref")) {
379
+ var f = Object.getOwnPropertyDescriptor(o, "ref").get;
380
+ if (f && f.isReactWarning)
384
381
  return !1;
385
382
  }
386
383
  return o.ref !== void 0;
387
384
  }
388
- function Qr(o) {
389
- if (ie.call(o, "key")) {
390
- var m = Object.getOwnPropertyDescriptor(o, "key").get;
391
- if (m && m.isReactWarning)
385
+ function to(o) {
386
+ if (Ze.call(o, "key")) {
387
+ var f = Object.getOwnPropertyDescriptor(o, "key").get;
388
+ if (f && f.isReactWarning)
392
389
  return !1;
393
390
  }
394
391
  return o.key !== void 0;
395
392
  }
396
- function en(o, m) {
397
- typeof o.ref == "string" && Ve.current;
393
+ function no(o, f) {
394
+ typeof o.ref == "string" && on.current;
398
395
  }
399
- function tn(o, m) {
396
+ function ro(o, f) {
400
397
  {
401
- var C = function() {
402
- At || (At = !0, x("%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)", m));
398
+ var y = function() {
399
+ sn || (sn = !0, b("%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)", f));
403
400
  };
404
- C.isReactWarning = !0, Object.defineProperty(o, "key", {
405
- get: C,
401
+ y.isReactWarning = !0, Object.defineProperty(o, "key", {
402
+ get: y,
406
403
  configurable: !0
407
404
  });
408
405
  }
409
406
  }
410
- function rn(o, m) {
407
+ function oo(o, f) {
411
408
  {
412
- var C = function() {
413
- jt || (jt = !0, x("%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)", m));
409
+ var y = function() {
410
+ an || (an = !0, b("%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)", f));
414
411
  };
415
- C.isReactWarning = !0, Object.defineProperty(o, "ref", {
416
- get: C,
412
+ y.isReactWarning = !0, Object.defineProperty(o, "ref", {
413
+ get: y,
417
414
  configurable: !0
418
415
  });
419
416
  }
420
417
  }
421
- var nn = function(o, m, C, O, W, X, z) {
422
- var $ = {
418
+ var io = function(o, f, y, S, A, F, j) {
419
+ var R = {
423
420
  // This tag allows us to uniquely identify this as a React Element
424
- $$typeof: r,
421
+ $$typeof: t,
425
422
  // Built-in properties that belong on the element
426
423
  type: o,
427
- key: m,
428
- ref: C,
429
- props: z,
424
+ key: f,
425
+ ref: y,
426
+ props: j,
430
427
  // Record the component responsible for creating this element.
431
- _owner: X
428
+ _owner: F
432
429
  };
433
- return $._store = {}, Object.defineProperty($._store, "validated", {
430
+ return R._store = {}, Object.defineProperty(R._store, "validated", {
434
431
  configurable: !1,
435
432
  enumerable: !1,
436
433
  writable: !0,
437
434
  value: !1
438
- }), Object.defineProperty($, "_self", {
435
+ }), Object.defineProperty(R, "_self", {
439
436
  configurable: !1,
440
437
  enumerable: !1,
441
438
  writable: !1,
442
- value: O
443
- }), Object.defineProperty($, "_source", {
439
+ value: S
440
+ }), Object.defineProperty(R, "_source", {
444
441
  configurable: !1,
445
442
  enumerable: !1,
446
443
  writable: !1,
447
- value: W
448
- }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
444
+ value: A
445
+ }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
449
446
  };
450
- function on(o, m, C, O, W) {
447
+ function so(o, f, y, S, A) {
451
448
  {
452
- var X, z = {}, $ = null, ge = null;
453
- C !== void 0 && (Ne(C), $ = "" + C), Qr(m) && (Ne(m.key), $ = "" + m.key), Kr(m) && (ge = m.ref, en(m, W));
454
- for (X in m)
455
- ie.call(m, X) && !_e.hasOwnProperty(X) && (z[X] = m[X]);
449
+ var F, j = {}, R = null, G = null;
450
+ y !== void 0 && (rn(y), R = "" + y), to(f) && (rn(f.key), R = "" + f.key), eo(f) && (G = f.ref, no(f, A));
451
+ for (F in f)
452
+ Ze.call(f, F) && !Qr.hasOwnProperty(F) && (j[F] = f[F]);
456
453
  if (o && o.defaultProps) {
457
- var se = o.defaultProps;
458
- for (X in se)
459
- z[X] === void 0 && (z[X] = se[X]);
454
+ var N = o.defaultProps;
455
+ for (F in N)
456
+ j[F] === void 0 && (j[F] = N[F]);
460
457
  }
461
- if ($ || ge) {
462
- var ue = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
463
- $ && tn(z, ue), ge && rn(z, ue);
458
+ if (R || G) {
459
+ var $ = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
460
+ R && ro(j, $), G && oo(j, $);
464
461
  }
465
- return nn(o, $, ge, W, O, Ve.current, z);
462
+ return io(o, R, G, A, S, on.current, j);
466
463
  }
467
464
  }
468
- var pt = j.ReactCurrentOwner, Lt = j.ReactDebugCurrentFrame;
469
- function $e(o) {
465
+ var Rt = P.ReactCurrentOwner, cn = P.ReactDebugCurrentFrame;
466
+ function Oe(o) {
470
467
  if (o) {
471
- var m = o._owner, C = F(o.type, o._source, m ? m.type : null);
472
- Lt.setExtraStackFrame(C);
468
+ var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
469
+ cn.setExtraStackFrame(y);
473
470
  } else
474
- Lt.setExtraStackFrame(null);
471
+ cn.setExtraStackFrame(null);
475
472
  }
476
- var ht;
477
- ht = !1;
478
- function mt(o) {
479
- return typeof o == "object" && o !== null && o.$$typeof === r;
473
+ var jt;
474
+ jt = !1;
475
+ function Lt(o) {
476
+ return typeof o == "object" && o !== null && o.$$typeof === t;
480
477
  }
481
- function It() {
478
+ function ln() {
482
479
  {
483
- if (pt.current) {
484
- var o = J(pt.current.type);
480
+ if (Rt.current) {
481
+ var o = q(Rt.current.type);
485
482
  if (o)
486
483
  return `
487
484
 
@@ -490,774 +487,747 @@ Check the render method of \`` + o + "`.";
490
487
  return "";
491
488
  }
492
489
  }
493
- function an(o) {
490
+ function ao(o) {
494
491
  return "";
495
492
  }
496
- var Ot = {};
497
- function sn(o) {
493
+ var un = {};
494
+ function co(o) {
498
495
  {
499
- var m = It();
500
- if (!m) {
501
- var C = typeof o == "string" ? o : o.displayName || o.name;
502
- C && (m = `
496
+ var f = ln();
497
+ if (!f) {
498
+ var y = typeof o == "string" ? o : o.displayName || o.name;
499
+ y && (f = `
503
500
 
504
- Check the top-level render call using <` + C + ">.");
501
+ Check the top-level render call using <` + y + ">.");
505
502
  }
506
- return m;
503
+ return f;
507
504
  }
508
505
  }
509
- function Dt(o, m) {
506
+ function dn(o, f) {
510
507
  {
511
508
  if (!o._store || o._store.validated || o.key != null)
512
509
  return;
513
510
  o._store.validated = !0;
514
- var C = sn(m);
515
- if (Ot[C])
511
+ var y = co(f);
512
+ if (un[y])
516
513
  return;
517
- Ot[C] = !0;
518
- var O = "";
519
- o && o._owner && o._owner !== pt.current && (O = " It was passed a child from " + J(o._owner.type) + "."), $e(o), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, O), $e(null);
514
+ un[y] = !0;
515
+ var S = "";
516
+ o && o._owner && o._owner !== Rt.current && (S = " It was passed a child from " + q(o._owner.type) + "."), Oe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), Oe(null);
520
517
  }
521
518
  }
522
- function Mt(o, m) {
519
+ function fn(o, f) {
523
520
  {
524
521
  if (typeof o != "object")
525
522
  return;
526
- if (Ae(o))
527
- for (var C = 0; C < o.length; C++) {
528
- var O = o[C];
529
- mt(O) && Dt(O, m);
523
+ if (Pt(o))
524
+ for (var y = 0; y < o.length; y++) {
525
+ var S = o[y];
526
+ Lt(S) && dn(S, f);
530
527
  }
531
- else if (mt(o))
528
+ else if (Lt(o))
532
529
  o._store && (o._store.validated = !0);
533
530
  else if (o) {
534
- var W = _(o);
535
- if (typeof W == "function" && W !== o.entries)
536
- for (var X = W.call(o), z; !(z = X.next()).done; )
537
- mt(z.value) && Dt(z.value, m);
531
+ var A = M(o);
532
+ if (typeof A == "function" && A !== o.entries)
533
+ for (var F = A.call(o), j; !(j = F.next()).done; )
534
+ Lt(j.value) && dn(j.value, f);
538
535
  }
539
536
  }
540
537
  }
541
- function cn(o) {
538
+ function lo(o) {
542
539
  {
543
- var m = o.type;
544
- if (m == null || typeof m == "string")
540
+ var f = o.type;
541
+ if (f == null || typeof f == "string")
545
542
  return;
546
- var C;
547
- if (typeof m == "function")
548
- C = m.propTypes;
549
- else if (typeof m == "object" && (m.$$typeof === u || // Note: Memo only checks outer props here.
543
+ var y;
544
+ if (typeof f == "function")
545
+ y = f.propTypes;
546
+ else if (typeof f == "object" && (f.$$typeof === s || // Note: Memo only checks outer props here.
550
547
  // Inner props are checked in the reconciler.
551
- m.$$typeof === w))
552
- C = m.propTypes;
548
+ f.$$typeof === g))
549
+ y = f.propTypes;
553
550
  else
554
551
  return;
555
- if (C) {
556
- var O = J(m);
557
- fe(C, o.props, "prop", O, o);
558
- } else if (m.PropTypes !== void 0 && !ht) {
559
- ht = !0;
560
- var W = J(m);
561
- x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
552
+ if (y) {
553
+ var S = q(f);
554
+ Gr(y, o.props, "prop", S, o);
555
+ } else if (f.PropTypes !== void 0 && !jt) {
556
+ jt = !0;
557
+ var A = q(f);
558
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
562
559
  }
563
- typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
561
  }
565
562
  }
566
- function ln(o) {
563
+ function uo(o) {
567
564
  {
568
- for (var m = Object.keys(o.props), C = 0; C < m.length; C++) {
569
- var O = m[C];
570
- if (O !== "children" && O !== "key") {
571
- $e(o), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), $e(null);
565
+ for (var f = Object.keys(o.props), y = 0; y < f.length; y++) {
566
+ var S = f[y];
567
+ if (S !== "children" && S !== "key") {
568
+ Oe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Oe(null);
572
569
  break;
573
570
  }
574
571
  }
575
- o.ref !== null && ($e(o), x("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
572
+ o.ref !== null && (Oe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
576
573
  }
577
574
  }
578
- var Ft = {};
579
- function Nt(o, m, C, O, W, X) {
575
+ var pn = {};
576
+ function hn(o, f, y, S, A, F) {
580
577
  {
581
- var z = M(o);
582
- if (!z) {
583
- var $ = "";
584
- (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
- var ge = an();
586
- ge ? $ += ge : $ += It();
587
- var se;
588
- o === null ? se = "null" : Ae(o) ? se = "array" : o !== void 0 && o.$$typeof === r ? (se = "<" + (J(o.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : se = typeof o, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, $);
578
+ var j = I(o);
579
+ if (!j) {
580
+ var R = "";
581
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
+ var G = ao();
583
+ G ? R += G : R += ln();
584
+ var N;
585
+ o === null ? N = "null" : Pt(o) ? N = "array" : o !== void 0 && o.$$typeof === t ? (N = "<" + (q(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : N = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, R);
589
586
  }
590
- var ue = on(o, m, C, W, X);
591
- if (ue == null)
592
- return ue;
593
- if (z) {
594
- var Te = m.children;
595
- if (Te !== void 0)
596
- if (O)
597
- if (Ae(Te)) {
598
- for (var He = 0; He < Te.length; He++)
599
- Mt(Te[He], o);
600
- Object.freeze && Object.freeze(Te);
587
+ var $ = so(o, f, y, A, F);
588
+ if ($ == null)
589
+ return $;
590
+ if (j) {
591
+ var oe = f.children;
592
+ if (oe !== void 0)
593
+ if (S)
594
+ if (Pt(oe)) {
595
+ for (var Fe = 0; Fe < oe.length; Fe++)
596
+ fn(oe[Fe], o);
597
+ Object.freeze && Object.freeze(oe);
601
598
  } else
602
- x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
600
  else
604
- Mt(Te, o);
601
+ fn(oe, o);
605
602
  }
606
- if (ie.call(m, "key")) {
607
- var Oe = J(o), we = Object.keys(m).filter(function(mn) {
608
- return mn !== "key";
609
- }), vt = we.length > 0 ? "{key: someKey, " + we.join(": ..., ") + ": ...}" : "{key: someKey}";
610
- if (!Ft[Oe + vt]) {
611
- var hn = we.length > 0 ? "{" + we.join(": ..., ") + ": ...}" : "{}";
612
- x(`A props object containing a "key" prop is being spread into JSX:
603
+ if (Ze.call(f, "key")) {
604
+ var Se = q(o), Q = Object.keys(f).filter(function(yo) {
605
+ return yo !== "key";
606
+ }), _t = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!pn[Se + _t]) {
608
+ var go = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
609
+ b(`A props object containing a "key" prop is being spread into JSX:
613
610
  let props = %s;
614
611
  <%s {...props} />
615
612
  React keys must be passed directly to JSX without using spread:
616
613
  let props = %s;
617
- <%s key={someKey} {...props} />`, vt, Oe, hn, Oe), Ft[Oe + vt] = !0;
614
+ <%s key={someKey} {...props} />`, _t, Se, go, Se), pn[Se + _t] = !0;
618
615
  }
619
616
  }
620
- return o === n ? ln(ue) : cn(ue), ue;
617
+ return o === r ? uo($) : lo($), $;
621
618
  }
622
619
  }
623
- function un(o, m, C) {
624
- return Nt(o, m, C, !0);
620
+ function fo(o, f, y) {
621
+ return hn(o, f, y, !0);
625
622
  }
626
- function dn(o, m, C) {
627
- return Nt(o, m, C, !1);
623
+ function po(o, f, y) {
624
+ return hn(o, f, y, !1);
628
625
  }
629
- var fn = dn, pn = un;
630
- Ze.Fragment = n, Ze.jsx = fn, Ze.jsxs = pn;
631
- })()), Ze;
626
+ var ho = po, mo = fo;
627
+ Xe.Fragment = r, Xe.jsx = ho, Xe.jsxs = mo;
628
+ })()), Xe;
632
629
  }
633
- var Ht;
634
- function xn() {
635
- return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Qe.exports = wn() : Qe.exports = bn()), Qe.exports;
636
- }
637
- var a = xn();
638
- const Sn = typeof window < "u" ? vn : be;
639
- function dt(e, r) {
640
- const t = ve(e);
641
- Sn(() => {
642
- t.current = e;
643
- }, [e]), be(() => {
644
- if (r === null)
630
+ var vn;
631
+ function So() {
632
+ return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports = bo() : nt.exports = xo()), nt.exports;
633
+ }
634
+ var c = So();
635
+ const Co = typeof window < "u" ? vo : te;
636
+ function wt(e, t) {
637
+ const n = Y(e);
638
+ Co(() => {
639
+ n.current = e;
640
+ }, [e]), te(() => {
641
+ if (t === null)
645
642
  return;
646
- const n = setInterval(() => {
647
- t.current();
648
- }, r);
643
+ const r = setInterval(() => {
644
+ n.current();
645
+ }, t);
649
646
  return () => {
650
- clearInterval(n);
647
+ clearInterval(r);
651
648
  };
652
- }, [r]);
649
+ }, [t]);
653
650
  }
654
- function Cn(e) {
655
- const [, r] = ye(0);
656
- dt(() => r((t) => t + 1), e);
651
+ function ko(e) {
652
+ const [, t] = X(0);
653
+ wt(() => t((n) => n + 1), e);
657
654
  }
658
- const En = (e, r) => ir((t) => ({
655
+ const To = (e, t) => $n((n) => ({
659
656
  delay: 0,
660
657
  startDate: e,
661
- endDate: r,
658
+ endDate: t,
662
659
  startTime: e.getTime(),
663
- endTime: r.getTime(),
664
- setDelay: (n) => t({ delay: n }),
665
- setStartDate: (n) => t({ startDate: n }),
666
- setEndDate: (n) => t({ endDate: n })
667
- })), sr = or(
660
+ endTime: t.getTime(),
661
+ setDelay: (r) => n({ delay: r }),
662
+ setStartDate: (r) => n({ startDate: r }),
663
+ setEndDate: (r) => n({ endDate: r })
664
+ })), zn = Nn(
668
665
  null
669
- ), Tn = ({
666
+ ), Eo = ({
670
667
  children: e,
671
- startDate: r,
672
- endDate: t
668
+ startDate: t,
669
+ endDate: n
673
670
  }) => {
674
- const n = ve(
671
+ const r = Y(
675
672
  null
676
673
  );
677
- return n.current || (n.current = En(r, t)), /* @__PURE__ */ a.jsx(sr.Provider, { value: n.current, children: e });
678
- }, me = (e) => {
679
- const r = Je(sr);
680
- if (!r)
674
+ return r.current || (r.current = To(t, n)), /* @__PURE__ */ c.jsx(zn.Provider, { value: r.current, children: e });
675
+ }, U = (e) => {
676
+ const t = Zt(zn);
677
+ if (!t)
681
678
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
682
- return ar(r, e);
679
+ return Hn(t, e);
683
680
  };
684
- var et = { exports: {} }, q = {};
685
- /** @license React v16.13.1
686
- * react-is.production.min.js
687
- *
688
- * Copyright (c) Facebook, Inc. and its affiliates.
689
- *
690
- * This source code is licensed under the MIT license found in the
691
- * LICENSE file in the root directory of this source tree.
692
- */
693
- var zt;
694
- function Pn() {
695
- if (zt) return q;
696
- zt = 1;
697
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, L = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
698
- function g(p) {
699
- if (typeof p == "object" && p !== null) {
700
- var U = p.$$typeof;
701
- switch (U) {
702
- case r:
703
- switch (p = p.type, p) {
704
- case u:
705
- case f:
706
- case n:
707
- case c:
708
- case i:
709
- case w:
710
- return p;
711
- default:
712
- switch (p = p && p.$$typeof, p) {
713
- case d:
714
- case v:
715
- case E:
716
- case R:
717
- case l:
718
- return p;
719
- default:
720
- return U;
721
- }
722
- }
723
- case t:
724
- return U;
725
- }
726
- }
681
+ var ee = function() {
682
+ return ee = Object.assign || function(t) {
683
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
684
+ n = arguments[r];
685
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
686
+ }
687
+ return t;
688
+ }, ee.apply(this, arguments);
689
+ };
690
+ function je(e, t, n) {
691
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
692
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
693
+ return e.concat(a || Array.prototype.slice.call(t));
694
+ }
695
+ function Po(e) {
696
+ var t = /* @__PURE__ */ Object.create(null);
697
+ return function(n) {
698
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
699
+ };
700
+ }
701
+ var Ro = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, jo = /* @__PURE__ */ Po(
702
+ function(e) {
703
+ return Ro.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
727
704
  }
728
- function A(p) {
729
- return g(p) === f;
705
+ /* Z+1 */
706
+ ), V = "-ms-", Ke = "-moz-", O = "-webkit-", Bn = "comm", bt = "rule", Gt = "decl", Lo = "@import", Un = "@keyframes", _o = "@layer", Wn = Math.abs, Xt = String.fromCharCode, Ft = Object.assign;
707
+ function Io(e, t) {
708
+ return z(e, 0) ^ 45 ? (((t << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
709
+ }
710
+ function Yn(e) {
711
+ return e.trim();
712
+ }
713
+ function he(e, t) {
714
+ return (e = t.exec(e)) ? e[0] : e;
715
+ }
716
+ function k(e, t, n) {
717
+ return e.replace(t, n);
718
+ }
719
+ function at(e, t, n) {
720
+ return e.indexOf(t, n);
721
+ }
722
+ function z(e, t) {
723
+ return e.charCodeAt(t) | 0;
724
+ }
725
+ function Ve(e, t, n) {
726
+ return e.slice(t, n);
727
+ }
728
+ function de(e) {
729
+ return e.length;
730
+ }
731
+ function qn(e) {
732
+ return e.length;
733
+ }
734
+ function Je(e, t) {
735
+ return t.push(e), e;
736
+ }
737
+ function Do(e, t) {
738
+ return e.map(t).join("");
739
+ }
740
+ function wn(e, t) {
741
+ return e.filter(function(n) {
742
+ return !he(n, t);
743
+ });
744
+ }
745
+ var xt = 1, Ne = 1, Zn = 0, ie = 0, H = 0, Ue = "";
746
+ function St(e, t, n, r, i, a, l, u) {
747
+ return { value: e, root: t, parent: n, type: r, props: i, children: a, line: xt, column: Ne, length: l, return: "", siblings: u };
748
+ }
749
+ function we(e, t) {
750
+ return Ft(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
751
+ }
752
+ function Me(e) {
753
+ for (; e.root; )
754
+ e = we(e.root, { children: [e] });
755
+ Je(e, e.siblings);
756
+ }
757
+ function Ao() {
758
+ return H;
759
+ }
760
+ function Oo() {
761
+ return H = ie > 0 ? z(Ue, --ie) : 0, Ne--, H === 10 && (Ne = 1, xt--), H;
762
+ }
763
+ function le() {
764
+ return H = ie < Zn ? z(Ue, ie++) : 0, Ne++, H === 10 && (Ne = 1, xt++), H;
765
+ }
766
+ function Ee() {
767
+ return z(Ue, ie);
768
+ }
769
+ function ct() {
770
+ return ie;
771
+ }
772
+ function Ct(e, t) {
773
+ return Ve(Ue, e, t);
774
+ }
775
+ function Mt(e) {
776
+ switch (e) {
777
+ // \0 \t \n \r \s whitespace token
778
+ case 0:
779
+ case 9:
780
+ case 10:
781
+ case 13:
782
+ case 32:
783
+ return 5;
784
+ // ! + , / > @ ~ isolate token
785
+ case 33:
786
+ case 43:
787
+ case 44:
788
+ case 47:
789
+ case 62:
790
+ case 64:
791
+ case 126:
792
+ // ; { } breakpoint token
793
+ case 59:
794
+ case 123:
795
+ case 125:
796
+ return 4;
797
+ // : accompanied token
798
+ case 58:
799
+ return 3;
800
+ // " ' ( [ opening delimit token
801
+ case 34:
802
+ case 39:
803
+ case 40:
804
+ case 91:
805
+ return 2;
806
+ // ) ] closing delimit token
807
+ case 41:
808
+ case 93:
809
+ return 1;
730
810
  }
731
- return q.AsyncMode = u, q.ConcurrentMode = f, q.ContextConsumer = d, q.ContextProvider = l, q.Element = r, q.ForwardRef = v, q.Fragment = n, q.Lazy = E, q.Memo = R, q.Portal = t, q.Profiler = c, q.StrictMode = i, q.Suspense = w, q.isAsyncMode = function(p) {
732
- return A(p) || g(p) === u;
733
- }, q.isConcurrentMode = A, q.isContextConsumer = function(p) {
734
- return g(p) === d;
735
- }, q.isContextProvider = function(p) {
736
- return g(p) === l;
737
- }, q.isElement = function(p) {
738
- return typeof p == "object" && p !== null && p.$$typeof === r;
739
- }, q.isForwardRef = function(p) {
740
- return g(p) === v;
741
- }, q.isFragment = function(p) {
742
- return g(p) === n;
743
- }, q.isLazy = function(p) {
744
- return g(p) === E;
745
- }, q.isMemo = function(p) {
746
- return g(p) === R;
747
- }, q.isPortal = function(p) {
748
- return g(p) === t;
749
- }, q.isProfiler = function(p) {
750
- return g(p) === c;
751
- }, q.isStrictMode = function(p) {
752
- return g(p) === i;
753
- }, q.isSuspense = function(p) {
754
- return g(p) === w;
755
- }, q.isValidElementType = function(p) {
756
- return typeof p == "string" || typeof p == "function" || p === n || p === f || p === c || p === i || p === w || p === L || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === R || p.$$typeof === l || p.$$typeof === d || p.$$typeof === v || p.$$typeof === _ || p.$$typeof === j || p.$$typeof === x || p.$$typeof === k);
757
- }, q.typeOf = g, q;
758
- }
759
- var Z = {};
760
- /** @license React v16.13.1
761
- * react-is.development.js
762
- *
763
- * Copyright (c) Facebook, Inc. and its affiliates.
764
- *
765
- * This source code is licensed under the MIT license found in the
766
- * LICENSE file in the root directory of this source tree.
767
- */
768
- var Yt;
769
- function Rn() {
770
- return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && (function() {
771
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, L = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
772
- function g(h) {
773
- return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
774
- h === n || h === f || h === c || h === i || h === w || h === L || typeof h == "object" && h !== null && (h.$$typeof === E || h.$$typeof === R || h.$$typeof === l || h.$$typeof === d || h.$$typeof === v || h.$$typeof === _ || h.$$typeof === j || h.$$typeof === x || h.$$typeof === k);
775
- }
776
- function A(h) {
777
- if (typeof h == "object" && h !== null) {
778
- var oe = h.$$typeof;
779
- switch (oe) {
780
- case r:
781
- var ae = h.type;
782
- switch (ae) {
783
- case u:
784
- case f:
785
- case n:
786
- case c:
787
- case i:
788
- case w:
789
- return ae;
790
- default:
791
- var F = ae && ae.$$typeof;
792
- switch (F) {
793
- case d:
794
- case v:
795
- case E:
796
- case R:
797
- case l:
798
- return F;
799
- default:
800
- return oe;
801
- }
802
- }
803
- case t:
804
- return oe;
805
- }
806
- }
807
- }
808
- var p = u, U = f, de = d, te = l, ce = r, M = v, xe = n, re = E, J = R, ne = t, K = c, Se = i, Q = w, pe = !1;
809
- function Pe(h) {
810
- return pe || (pe = !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.")), Ee(h) || A(h) === u;
811
- }
812
- function Ee(h) {
813
- return A(h) === f;
814
- }
815
- function Re(h) {
816
- return A(h) === d;
817
- }
818
- function P(h) {
819
- return A(h) === l;
820
- }
821
- function S(h) {
822
- return typeof h == "object" && h !== null && h.$$typeof === r;
823
- }
824
- function T(h) {
825
- return A(h) === v;
826
- }
827
- function D(h) {
828
- return A(h) === n;
829
- }
830
- function s(h) {
831
- return A(h) === E;
832
- }
833
- function V(h) {
834
- return A(h) === R;
835
- }
836
- function y(h) {
837
- return A(h) === t;
838
- }
839
- function G(h) {
840
- return A(h) === c;
841
- }
842
- function N(h) {
843
- return A(h) === i;
844
- }
845
- function H(h) {
846
- return A(h) === w;
811
+ return 0;
812
+ }
813
+ function Fo(e) {
814
+ return xt = Ne = 1, Zn = de(Ue = e), ie = 0, [];
815
+ }
816
+ function Mo(e) {
817
+ return Ue = "", e;
818
+ }
819
+ function It(e) {
820
+ return Yn(Ct(ie - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
821
+ }
822
+ function Vo(e) {
823
+ for (; (H = Ee()) && H < 33; )
824
+ le();
825
+ return Mt(e) > 2 || Mt(H) > 3 ? "" : " ";
826
+ }
827
+ function No(e, t) {
828
+ for (; --t && le() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
829
+ ;
830
+ return Ct(e, ct() + (t < 6 && Ee() == 32 && le() == 32));
831
+ }
832
+ function Vt(e) {
833
+ for (; le(); )
834
+ switch (H) {
835
+ // ] ) " '
836
+ case e:
837
+ return ie;
838
+ // " '
839
+ case 34:
840
+ case 39:
841
+ e !== 34 && e !== 39 && Vt(H);
842
+ break;
843
+ // (
844
+ case 40:
845
+ e === 41 && Vt(e);
846
+ break;
847
+ // \
848
+ case 92:
849
+ le();
850
+ break;
847
851
  }
848
- Z.AsyncMode = p, Z.ConcurrentMode = U, Z.ContextConsumer = de, Z.ContextProvider = te, Z.Element = ce, Z.ForwardRef = M, Z.Fragment = xe, Z.Lazy = re, Z.Memo = J, Z.Portal = ne, Z.Profiler = K, Z.StrictMode = Se, Z.Suspense = Q, Z.isAsyncMode = Pe, Z.isConcurrentMode = Ee, Z.isContextConsumer = Re, Z.isContextProvider = P, Z.isElement = S, Z.isForwardRef = T, Z.isFragment = D, Z.isLazy = s, Z.isMemo = V, Z.isPortal = y, Z.isProfiler = G, Z.isStrictMode = N, Z.isSuspense = H, Z.isValidElementType = g, Z.typeOf = A;
849
- })()), Z;
850
- }
851
- var Bt;
852
- function cr() {
853
- return Bt || (Bt = 1, process.env.NODE_ENV === "production" ? et.exports = Pn() : et.exports = Rn()), et.exports;
854
- }
855
- var Rt = cr();
856
- function kn(e) {
857
- function r(P, S, T, D, s) {
858
- for (var V = 0, y = 0, G = 0, N = 0, H, h, oe = 0, ae = 0, F, ie = F = H = 0, B = 0, le = 0, ke = 0, fe = 0, Fe = T.length, Ae = Fe - 1, Ce, I = "", ee = "", Ne = "", Ve = "", _e; B < Fe; ) {
859
- if (h = T.charCodeAt(B), B === Ae && y + N + G + V !== 0 && (y !== 0 && (h = y === 47 ? 10 : 47), N = G = V = 0, Fe++, Ae++), y + N + G + V === 0) {
860
- if (B === Ae && (0 < le && (I = I.replace(L, "")), 0 < I.trim().length)) {
861
- switch (h) {
862
- case 32:
863
- case 9:
864
- case 59:
865
- case 13:
866
- case 10:
867
- break;
868
- default:
869
- I += T.charAt(B);
870
- }
871
- h = 59;
852
+ return ie;
853
+ }
854
+ function $o(e, t) {
855
+ for (; le() && e + H !== 57; )
856
+ if (e + H === 84 && Ee() === 47)
857
+ break;
858
+ return "/*" + Ct(t, ie - 1) + "*" + Xt(e === 47 ? e : le());
859
+ }
860
+ function Ho(e) {
861
+ for (; !Mt(Ee()); )
862
+ le();
863
+ return Ct(e, ie);
864
+ }
865
+ function zo(e) {
866
+ return Mo(lt("", null, null, null, [""], e = Fo(e), 0, [0], e));
867
+ }
868
+ function lt(e, t, n, r, i, a, l, u, s) {
869
+ for (var d = 0, p = 0, g = l, w = 0, v = 0, E = 0, T = 1, M = 1, P = 1, b = 0, h = "", L = i, D = a, C = r, x = h; M; )
870
+ switch (E = b, b = le()) {
871
+ // (
872
+ case 40:
873
+ if (E != 108 && z(x, g - 1) == 58) {
874
+ at(x += k(It(b), "&", "&\f"), "&\f", Wn(d ? u[d - 1] : 0)) != -1 && (P = -1);
875
+ break;
872
876
  }
873
- switch (h) {
874
- case 123:
875
- for (I = I.trim(), H = I.charCodeAt(0), F = 1, fe = ++B; B < Fe; ) {
876
- switch (h = T.charCodeAt(B)) {
877
- case 123:
878
- F++;
879
- break;
880
- case 125:
881
- F--;
882
- break;
883
- case 47:
884
- switch (h = T.charCodeAt(B + 1)) {
885
- case 42:
886
- case 47:
887
- e: {
888
- for (ie = B + 1; ie < Ae; ++ie)
889
- switch (T.charCodeAt(ie)) {
890
- case 47:
891
- if (h === 42 && T.charCodeAt(ie - 1) === 42 && B + 2 !== ie) {
892
- B = ie + 1;
893
- break e;
894
- }
895
- break;
896
- case 10:
897
- if (h === 47) {
898
- B = ie + 1;
899
- break e;
900
- }
901
- }
902
- B = ie;
903
- }
904
- }
905
- break;
906
- case 91:
907
- h++;
908
- case 40:
909
- h++;
910
- case 34:
911
- case 39:
912
- for (; B++ < Ae && T.charCodeAt(B) !== h; )
913
- ;
914
- }
915
- if (F === 0) break;
916
- B++;
917
- }
918
- switch (F = T.substring(fe, B), H === 0 && (H = (I = I.replace(w, "").trim()).charCodeAt(0)), H) {
919
- case 64:
920
- switch (0 < le && (I = I.replace(L, "")), h = I.charCodeAt(1), h) {
921
- case 100:
922
- case 109:
923
- case 115:
924
- case 45:
925
- le = S;
926
- break;
927
- default:
928
- le = Se;
929
- }
930
- if (F = r(S, le, F, h, s + 1), fe = F.length, 0 < pe && (le = t(Se, I, ke), _e = d(3, F, le, S, J, re, fe, h, s, D), I = le.join(""), _e !== void 0 && (fe = (F = _e.trim()).length) === 0 && (h = 0, F = "")), 0 < fe) switch (h) {
931
- case 115:
932
- I = I.replace(U, l);
933
- case 100:
934
- case 109:
935
- case 45:
936
- F = I + "{" + F + "}";
937
- break;
938
- case 107:
939
- I = I.replace(x, "$1 $2"), F = I + "{" + F + "}", F = K === 1 || K === 2 && c("@" + F, 3) ? "@-webkit-" + F + "@" + F : "@" + F;
940
- break;
941
- default:
942
- F = I + F, D === 112 && (F = (ee += F, ""));
943
- }
944
- else F = "";
945
- break;
946
- default:
947
- F = r(S, t(S, I, ke), F, D, s + 1);
948
- }
949
- Ne += F, F = ke = le = ie = H = 0, I = "", h = T.charCodeAt(++B);
877
+ // " ' [
878
+ case 34:
879
+ case 39:
880
+ case 91:
881
+ x += It(b);
882
+ break;
883
+ // \t \n \r \s
884
+ case 9:
885
+ case 10:
886
+ case 13:
887
+ case 32:
888
+ x += Vo(E);
889
+ break;
890
+ // \
891
+ case 92:
892
+ x += No(ct() - 1, 7);
893
+ continue;
894
+ // /
895
+ case 47:
896
+ switch (Ee()) {
897
+ case 42:
898
+ case 47:
899
+ Je(Bo($o(le(), ct()), t, n, s), s);
950
900
  break;
951
- case 125:
952
- case 59:
953
- if (I = (0 < le ? I.replace(L, "") : I).trim(), 1 < (fe = I.length)) switch (ie === 0 && (H = I.charCodeAt(0), H === 45 || 96 < H && 123 > H) && (fe = (I = I.replace(" ", ":")).length), 0 < pe && (_e = d(1, I, S, P, J, re, ee.length, D, s, D)) !== void 0 && (fe = (I = _e.trim()).length) === 0 && (I = "\0\0"), H = I.charCodeAt(0), h = I.charCodeAt(1), H) {
954
- case 0:
955
- break;
956
- case 64:
957
- if (h === 105 || h === 99) {
958
- Ve += I + T.charAt(B);
959
- break;
960
- }
961
- default:
962
- I.charCodeAt(fe - 1) !== 58 && (ee += i(I, H, h, I.charCodeAt(2)));
963
- }
964
- ke = le = ie = H = 0, I = "", h = T.charCodeAt(++B);
901
+ default:
902
+ x += "/";
965
903
  }
966
- }
967
- switch (h) {
968
- case 13:
969
- case 10:
970
- y === 47 ? y = 0 : 1 + H === 0 && D !== 107 && 0 < I.length && (le = 1, I += "\0"), 0 < pe * Ee && d(0, I, S, P, J, re, ee.length, D, s, D), re = 1, J++;
971
- break;
972
- case 59:
973
- case 125:
974
- if (y + N + G + V === 0) {
975
- re++;
904
+ break;
905
+ // {
906
+ case 123 * T:
907
+ u[d++] = de(x) * P;
908
+ // } ; \0
909
+ case 125 * T:
910
+ case 59:
911
+ case 0:
912
+ switch (b) {
913
+ // \0 }
914
+ case 0:
915
+ case 125:
916
+ M = 0;
917
+ // ;
918
+ case 59 + p:
919
+ P == -1 && (x = k(x, /\f/g, "")), v > 0 && de(x) - g && Je(v > 32 ? xn(x + ";", r, n, g - 1, s) : xn(k(x, " ", "") + ";", r, n, g - 2, s), s);
976
920
  break;
977
- }
978
- default:
979
- switch (re++, Ce = T.charAt(B), h) {
980
- case 9:
981
- case 32:
982
- if (N + V + y === 0) switch (oe) {
983
- case 44:
984
- case 58:
985
- case 9:
986
- case 32:
987
- Ce = "";
988
- break;
989
- default:
990
- h !== 32 && (Ce = " ");
991
- }
992
- break;
993
- case 0:
994
- Ce = "\\0";
995
- break;
996
- case 12:
997
- Ce = "\\f";
998
- break;
999
- case 11:
1000
- Ce = "\\v";
1001
- break;
1002
- case 38:
1003
- N + y + V === 0 && (le = ke = 1, Ce = "\f" + Ce);
1004
- break;
1005
- case 108:
1006
- if (N + y + V + ne === 0 && 0 < ie) switch (B - ie) {
1007
- case 2:
1008
- oe === 112 && T.charCodeAt(B - 3) === 58 && (ne = oe);
1009
- case 8:
1010
- ae === 111 && (ne = ae);
1011
- }
1012
- break;
1013
- case 58:
1014
- N + y + V === 0 && (ie = B);
1015
- break;
1016
- case 44:
1017
- y + G + N + V === 0 && (le = 1, Ce += "\r");
1018
- break;
1019
- case 34:
1020
- case 39:
1021
- y === 0 && (N = N === h ? 0 : N === 0 ? h : N);
1022
- break;
1023
- case 91:
1024
- N + y + G === 0 && V++;
1025
- break;
1026
- case 93:
1027
- N + y + G === 0 && V--;
1028
- break;
1029
- case 41:
1030
- N + y + V === 0 && G--;
1031
- break;
1032
- case 40:
1033
- if (N + y + V === 0) {
1034
- if (H === 0) switch (2 * oe + 3 * ae) {
1035
- case 533:
921
+ // @ ;
922
+ case 59:
923
+ x += ";";
924
+ // { rule/at-rule
925
+ default:
926
+ if (Je(C = bn(x, t, n, d, p, i, u, h, L = [], D = [], g, a), a), b === 123)
927
+ if (p === 0)
928
+ lt(x, t, C, C, L, a, g, u, D);
929
+ else
930
+ switch (w === 99 && z(x, 3) === 110 ? 100 : w) {
931
+ // d l m s
932
+ case 100:
933
+ case 108:
934
+ case 109:
935
+ case 115:
936
+ lt(e, C, C, r && Je(bn(e, C, C, 0, 0, i, u, h, i, L = [], g, D), D), i, D, g, u, r ? L : D);
1036
937
  break;
1037
938
  default:
1038
- H = 1;
939
+ lt(x, C, C, C, [""], D, 0, u, D);
1039
940
  }
1040
- G++;
1041
- }
1042
- break;
1043
- case 64:
1044
- y + G + N + V + ie + F === 0 && (F = 1);
1045
- break;
1046
- case 42:
1047
- case 47:
1048
- if (!(0 < N + V + G)) switch (y) {
1049
- case 0:
1050
- switch (2 * h + 3 * T.charCodeAt(B + 1)) {
1051
- case 235:
1052
- y = 47;
1053
- break;
1054
- case 220:
1055
- fe = B, y = 42;
1056
- }
1057
- break;
1058
- case 42:
1059
- h === 47 && oe === 42 && fe + 2 !== B && (T.charCodeAt(fe + 2) === 33 && (ee += T.substring(fe, B + 1)), Ce = "", y = 0);
1060
- }
1061
- }
1062
- y === 0 && (I += Ce);
1063
- }
1064
- ae = oe, oe = h, B++;
1065
- }
1066
- if (fe = ee.length, 0 < fe) {
1067
- if (le = S, 0 < pe && (_e = d(2, ee, le, P, J, re, fe, D, s, D), _e !== void 0 && (ee = _e).length === 0)) return Ve + ee + Ne;
1068
- if (ee = le.join(",") + "{" + ee + "}", K * ne !== 0) {
1069
- switch (K !== 2 || c(ee, 2) || (ne = 0), ne) {
1070
- case 111:
1071
- ee = ee.replace(A, ":-moz-$1") + ee;
1072
- break;
1073
- case 112:
1074
- ee = ee.replace(g, "::-webkit-input-$1") + ee.replace(g, "::-moz-$1") + ee.replace(g, ":-ms-input-$1") + ee;
1075
941
  }
1076
- ne = 0;
1077
- }
1078
- }
1079
- return Ve + ee + Ne;
1080
- }
1081
- function t(P, S, T) {
1082
- var D = S.trim().split(_);
1083
- S = D;
1084
- var s = D.length, V = P.length;
1085
- switch (V) {
1086
- case 0:
1087
- case 1:
1088
- var y = 0;
1089
- for (P = V === 0 ? "" : P[0] + " "; y < s; ++y)
1090
- S[y] = n(P, S[y], T).trim();
942
+ d = p = v = 0, T = P = 1, h = x = "", g = l;
1091
943
  break;
1092
- default:
1093
- var G = y = 0;
1094
- for (S = []; y < s; ++y)
1095
- for (var N = 0; N < V; ++N)
1096
- S[G++] = n(P[N] + " ", D[y], T).trim();
1097
- }
1098
- return S;
1099
- }
1100
- function n(P, S, T) {
1101
- var D = S.charCodeAt(0);
1102
- switch (33 > D && (D = (S = S.trim()).charCodeAt(0)), D) {
1103
- case 38:
1104
- return S.replace(j, "$1" + P.trim());
944
+ // :
1105
945
  case 58:
1106
- return P.trim() + S.replace(j, "$1" + P.trim());
946
+ g = 1 + de(x), v = E;
1107
947
  default:
1108
- if (0 < 1 * T && 0 < S.indexOf("\f")) return S.replace(j, (P.charCodeAt(0) === 58 ? "" : "$1") + P.trim());
1109
- }
1110
- return P + S;
1111
- }
1112
- function i(P, S, T, D) {
1113
- var s = P + ";", V = 2 * S + 3 * T + 4 * D;
1114
- if (V === 944) {
1115
- P = s.indexOf(":", 9) + 1;
1116
- var y = s.substring(P, s.length - 1).trim();
1117
- return y = s.substring(0, P).trim() + y + ";", K === 1 || K === 2 && c(y, 1) ? "-webkit-" + y + y : y;
1118
- }
1119
- if (K === 0 || K === 2 && !c(s, 1)) return s;
1120
- switch (V) {
1121
- case 1015:
1122
- return s.charCodeAt(10) === 97 ? "-webkit-" + s + s : s;
1123
- case 951:
1124
- return s.charCodeAt(3) === 116 ? "-webkit-" + s + s : s;
1125
- case 963:
1126
- return s.charCodeAt(5) === 110 ? "-webkit-" + s + s : s;
1127
- case 1009:
1128
- if (s.charCodeAt(4) !== 100) break;
1129
- case 969:
1130
- case 942:
1131
- return "-webkit-" + s + s;
1132
- case 978:
1133
- return "-webkit-" + s + "-moz-" + s + s;
1134
- case 1019:
1135
- case 983:
1136
- return "-webkit-" + s + "-moz-" + s + "-ms-" + s + s;
1137
- case 883:
1138
- if (s.charCodeAt(8) === 45) return "-webkit-" + s + s;
1139
- if (0 < s.indexOf("image-set(", 11)) return s.replace(xe, "$1-webkit-$2") + s;
1140
- break;
1141
- case 932:
1142
- if (s.charCodeAt(4) === 45) switch (s.charCodeAt(5)) {
1143
- case 103:
1144
- return "-webkit-box-" + s.replace("-grow", "") + "-webkit-" + s + "-ms-" + s.replace("grow", "positive") + s;
1145
- case 115:
1146
- return "-webkit-" + s + "-ms-" + s.replace("shrink", "negative") + s;
1147
- case 98:
1148
- return "-webkit-" + s + "-ms-" + s.replace("basis", "preferred-size") + s;
948
+ if (T < 1) {
949
+ if (b == 123)
950
+ --T;
951
+ else if (b == 125 && T++ == 0 && Oo() == 125)
952
+ continue;
1149
953
  }
1150
- return "-webkit-" + s + "-ms-" + s + s;
1151
- case 964:
1152
- return "-webkit-" + s + "-ms-flex-" + s + s;
1153
- case 1023:
1154
- if (s.charCodeAt(8) !== 99) break;
1155
- return y = s.substring(s.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + y + "-webkit-" + s + "-ms-flex-pack" + y + s;
1156
- case 1005:
1157
- return E.test(s) ? s.replace(R, ":-webkit-") + s.replace(R, ":-moz-") + s : s;
1158
- case 1e3:
1159
- switch (y = s.substring(13).trim(), S = y.indexOf("-") + 1, y.charCodeAt(0) + y.charCodeAt(S)) {
1160
- case 226:
1161
- y = s.replace(p, "tb");
954
+ switch (x += Xt(b), b * T) {
955
+ // &
956
+ case 38:
957
+ P = p > 0 ? 1 : (x += "\f", -1);
1162
958
  break;
1163
- case 232:
1164
- y = s.replace(p, "tb-rl");
959
+ // ,
960
+ case 44:
961
+ u[d++] = (de(x) - 1) * P, P = 1;
1165
962
  break;
1166
- case 220:
1167
- y = s.replace(p, "lr");
963
+ // @
964
+ case 64:
965
+ Ee() === 45 && (x += It(le())), w = Ee(), p = g = de(h = x += Ho(ct())), b++;
1168
966
  break;
1169
- default:
1170
- return s;
967
+ // -
968
+ case 45:
969
+ E === 45 && de(x) == 2 && (T = 0);
1171
970
  }
1172
- return "-webkit-" + s + "-ms-" + y + s;
1173
- case 1017:
1174
- if (s.indexOf("sticky", 9) === -1) break;
1175
- case 975:
1176
- switch (S = (s = P).length - 10, y = (s.charCodeAt(S) === 33 ? s.substring(0, S) : s).substring(P.indexOf(":", 7) + 1).trim(), V = y.charCodeAt(0) + (y.charCodeAt(7) | 0)) {
1177
- case 203:
1178
- if (111 > y.charCodeAt(8)) break;
1179
- case 115:
1180
- s = s.replace(y, "-webkit-" + y) + ";" + s;
1181
- break;
1182
- case 207:
971
+ }
972
+ return a;
973
+ }
974
+ function bn(e, t, n, r, i, a, l, u, s, d, p, g) {
975
+ for (var w = i - 1, v = i === 0 ? a : [""], E = qn(v), T = 0, M = 0, P = 0; T < r; ++T)
976
+ for (var b = 0, h = Ve(e, w + 1, w = Wn(M = l[T])), L = e; b < E; ++b)
977
+ (L = Yn(M > 0 ? v[b] + " " + h : k(h, /&\f/g, v[b]))) && (s[P++] = L);
978
+ return St(e, t, n, i === 0 ? bt : u, s, d, p, g);
979
+ }
980
+ function Bo(e, t, n, r) {
981
+ return St(e, t, n, Bn, Xt(Ao()), Ve(e, 2, -2), 0, r);
982
+ }
983
+ function xn(e, t, n, r, i) {
984
+ return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r, i);
985
+ }
986
+ function Gn(e, t, n) {
987
+ switch (Io(e, t)) {
988
+ // color-adjust
989
+ case 5103:
990
+ return O + "print-" + e + e;
991
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
992
+ case 5737:
993
+ case 4201:
994
+ case 3177:
995
+ case 3433:
996
+ case 1641:
997
+ case 4457:
998
+ case 2921:
999
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1000
+ case 5572:
1001
+ case 6356:
1002
+ case 5844:
1003
+ case 3191:
1004
+ case 6645:
1005
+ case 3005:
1006
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1007
+ case 6391:
1008
+ case 5879:
1009
+ case 5623:
1010
+ case 6135:
1011
+ case 4599:
1012
+ case 4855:
1013
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1014
+ case 4215:
1015
+ case 6389:
1016
+ case 5109:
1017
+ case 5365:
1018
+ case 5621:
1019
+ case 3829:
1020
+ return O + e + e;
1021
+ // tab-size
1022
+ case 4789:
1023
+ return Ke + e + e;
1024
+ // appearance, user-select, transform, hyphens, text-size-adjust
1025
+ case 5349:
1026
+ case 4246:
1027
+ case 4810:
1028
+ case 6968:
1029
+ case 2756:
1030
+ return O + e + Ke + e + V + e + e;
1031
+ // writing-mode
1032
+ case 5936:
1033
+ switch (z(e, t + 11)) {
1034
+ // vertical-l(r)
1035
+ case 114:
1036
+ return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1037
+ // vertical-r(l)
1038
+ case 108:
1039
+ return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1040
+ // horizontal(-)tb
1041
+ case 45:
1042
+ return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1043
+ }
1044
+ // flex, flex-direction, scroll-snap-type, writing-mode
1045
+ case 6828:
1046
+ case 4268:
1047
+ case 2903:
1048
+ return O + e + V + e + e;
1049
+ // order
1050
+ case 6165:
1051
+ return O + e + V + "flex-" + e + e;
1052
+ // align-items
1053
+ case 5187:
1054
+ return O + e + k(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + V + "flex-$1$2") + e;
1055
+ // align-self
1056
+ case 5443:
1057
+ return O + e + V + "flex-item-" + k(e, /flex-|-self/g, "") + (he(e, /flex-|baseline/) ? "" : V + "grid-row-" + k(e, /flex-|-self/g, "")) + e;
1058
+ // align-content
1059
+ case 4675:
1060
+ return O + e + V + "flex-line-pack" + k(e, /align-content|flex-|-self/g, "") + e;
1061
+ // flex-shrink
1062
+ case 5548:
1063
+ return O + e + V + k(e, "shrink", "negative") + e;
1064
+ // flex-basis
1065
+ case 5292:
1066
+ return O + e + V + k(e, "basis", "preferred-size") + e;
1067
+ // flex-grow
1068
+ case 6060:
1069
+ return O + "box-" + k(e, "-grow", "") + O + e + V + k(e, "grow", "positive") + e;
1070
+ // transition
1071
+ case 4554:
1072
+ return O + k(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
1073
+ // cursor
1074
+ case 6187:
1075
+ return k(k(k(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
1076
+ // background, background-image
1077
+ case 5495:
1078
+ case 3959:
1079
+ return k(e, /(image-set\([^]*)/, O + "$1$`$1");
1080
+ // justify-content
1081
+ case 4968:
1082
+ return k(k(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
1083
+ // justify-self
1084
+ case 4200:
1085
+ if (!he(e, /flex-|baseline/)) return V + "grid-column-align" + Ve(e, t) + e;
1086
+ break;
1087
+ // grid-template-(columns|rows)
1088
+ case 2592:
1089
+ case 3360:
1090
+ return V + k(e, "template-", "") + e;
1091
+ // grid-(row|column)-start
1092
+ case 4384:
1093
+ case 3616:
1094
+ return n && n.some(function(r, i) {
1095
+ return t = i, he(r.props, /grid-\w+-end/);
1096
+ }) ? ~at(e + (n = n[t].value), "span", 0) ? e : V + k(e, "-start", "") + e + V + "grid-row-span:" + (~at(n, "span", 0) ? he(n, /\d+/) : +he(n, /\d+/) - +he(e, /\d+/)) + ";" : V + k(e, "-start", "") + e;
1097
+ // grid-(row|column)-end
1098
+ case 4896:
1099
+ case 4128:
1100
+ return n && n.some(function(r) {
1101
+ return he(r.props, /grid-\w+-start/);
1102
+ }) ? e : V + k(k(e, "-end", "-span"), "span ", "") + e;
1103
+ // (margin|padding)-inline-(start|end)
1104
+ case 4095:
1105
+ case 3583:
1106
+ case 4068:
1107
+ case 2532:
1108
+ return k(e, /(.+)-inline(.+)/, O + "$1$2") + e;
1109
+ // (min|max)?(width|height|inline-size|block-size)
1110
+ case 8116:
1111
+ case 7059:
1112
+ case 5753:
1113
+ case 5535:
1114
+ case 5445:
1115
+ case 5701:
1116
+ case 4933:
1117
+ case 4677:
1118
+ case 5533:
1119
+ case 5789:
1120
+ case 5021:
1121
+ case 4765:
1122
+ if (de(e) - 1 - t > 6)
1123
+ switch (z(e, t + 1)) {
1124
+ // (m)ax-content, (m)in-content
1125
+ case 109:
1126
+ if (z(e, t + 4) !== 45)
1127
+ break;
1128
+ // (f)ill-available, (f)it-content
1183
1129
  case 102:
1184
- s = s.replace(y, "-webkit-" + (102 < V ? "inline-" : "") + "box") + ";" + s.replace(y, "-webkit-" + y) + ";" + s.replace(y, "-ms-" + y + "box") + ";" + s;
1185
- }
1186
- return s + ";";
1187
- case 938:
1188
- if (s.charCodeAt(5) === 45) switch (s.charCodeAt(6)) {
1189
- case 105:
1190
- return y = s.replace("-items", ""), "-webkit-" + s + "-webkit-box-" + y + "-ms-flex-" + y + s;
1130
+ return k(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Ke + (z(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1131
+ // (s)tretch
1191
1132
  case 115:
1192
- return "-webkit-" + s + "-ms-flex-item-" + s.replace(te, "") + s;
1193
- default:
1194
- return "-webkit-" + s + "-ms-flex-line-pack" + s.replace("align-content", "").replace(te, "") + s;
1133
+ return ~at(e, "stretch", 0) ? Gn(k(e, "stretch", "fill-available"), t, n) + e : e;
1195
1134
  }
1196
- break;
1197
- case 973:
1198
- case 989:
1199
- if (s.charCodeAt(3) !== 45 || s.charCodeAt(4) === 122) break;
1200
- case 931:
1201
- case 953:
1202
- if (M.test(P) === !0) return (y = P.substring(P.indexOf(":") + 1)).charCodeAt(0) === 115 ? i(P.replace("stretch", "fill-available"), S, T, D).replace(":fill-available", ":stretch") : s.replace(y, "-webkit-" + y) + s.replace(y, "-moz-" + y.replace("fill-", "")) + s;
1203
- break;
1204
- case 962:
1205
- if (s = "-webkit-" + s + (s.charCodeAt(5) === 102 ? "-ms-" + s : "") + s, T + D === 211 && s.charCodeAt(13) === 105 && 0 < s.indexOf("transform", 10)) return s.substring(0, s.indexOf(";", 27) + 1).replace(k, "$1-webkit-$2") + s;
1206
- }
1207
- return s;
1208
- }
1209
- function c(P, S) {
1210
- var T = P.indexOf(S === 1 ? ":" : "{"), D = P.substring(0, S !== 3 ? T : 10);
1211
- return T = P.substring(T + 1, P.length - 1), Pe(S !== 2 ? D : D.replace(ce, "$1"), T, S);
1212
- }
1213
- function l(P, S) {
1214
- var T = i(S, S.charCodeAt(0), S.charCodeAt(1), S.charCodeAt(2));
1215
- return T !== S + ";" ? T.replace(de, " or ($1)").substring(4) : "(" + S + ")";
1216
- }
1217
- function d(P, S, T, D, s, V, y, G, N, H) {
1218
- for (var h = 0, oe = S, ae; h < pe; ++h)
1219
- switch (ae = Q[h].call(v, P, oe, T, D, s, V, y, G, N, H)) {
1220
- case void 0:
1221
- case !1:
1222
- case !0:
1223
- case null:
1224
- break;
1225
- default:
1226
- oe = ae;
1135
+ break;
1136
+ // grid-(column|row)
1137
+ case 5152:
1138
+ case 5920:
1139
+ return k(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, i, a, l, u, s, d) {
1140
+ return V + i + ":" + a + d + (l ? V + i + "-span:" + (u ? s : +s - +a) + d : "") + e;
1141
+ });
1142
+ // position: sticky
1143
+ case 4949:
1144
+ if (z(e, t + 6) === 121)
1145
+ return k(e, ":", ":" + O) + e;
1146
+ break;
1147
+ // display: (flex|inline-flex|grid|inline-grid)
1148
+ case 6444:
1149
+ switch (z(e, z(e, 14) === 45 ? 18 : 11)) {
1150
+ // (inline-)?fle(x)
1151
+ case 120:
1152
+ return k(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + V + "$2box$3") + e;
1153
+ // (inline-)?gri(d)
1154
+ case 100:
1155
+ return k(e, ":", ":" + V) + e;
1227
1156
  }
1228
- if (oe !== S) return oe;
1229
- }
1230
- function u(P) {
1231
- switch (P) {
1232
- case void 0:
1233
- case null:
1234
- pe = Q.length = 0;
1235
- break;
1236
- default:
1237
- if (typeof P == "function") Q[pe++] = P;
1238
- else if (typeof P == "object") for (var S = 0, T = P.length; S < T; ++S)
1239
- u(P[S]);
1240
- else Ee = !!P | 0;
1241
- }
1242
- return u;
1243
- }
1244
- function f(P) {
1245
- return P = P.prefix, P !== void 0 && (Pe = null, P ? typeof P != "function" ? K = 1 : (K = 2, Pe = P) : K = 0), f;
1157
+ break;
1158
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
1159
+ case 5719:
1160
+ case 2647:
1161
+ case 2135:
1162
+ case 3927:
1163
+ case 2391:
1164
+ return k(e, "scroll-", "scroll-snap-") + e;
1246
1165
  }
1247
- function v(P, S) {
1248
- var T = P;
1249
- if (33 > T.charCodeAt(0) && (T = T.trim()), Re = T, T = [Re], 0 < pe) {
1250
- var D = d(-1, S, T, T, J, re, 0, 0, 0, 0);
1251
- D !== void 0 && typeof D == "string" && (S = D);
1252
- }
1253
- var s = r(Se, T, S, 0, 0);
1254
- return 0 < pe && (D = d(-2, s, T, T, J, re, s.length, 0, 0, 0), D !== void 0 && (s = D)), Re = "", ne = 0, re = J = 1, s;
1166
+ return e;
1167
+ }
1168
+ function ft(e, t) {
1169
+ for (var n = "", r = 0; r < e.length; r++)
1170
+ n += t(e[r], r, e, t) || "";
1171
+ return n;
1172
+ }
1173
+ function Uo(e, t, n, r) {
1174
+ switch (e.type) {
1175
+ case _o:
1176
+ if (e.children.length) break;
1177
+ case Lo:
1178
+ case Gt:
1179
+ return e.return = e.return || e.value;
1180
+ case Bn:
1181
+ return "";
1182
+ case Un:
1183
+ return e.return = e.value + "{" + ft(e.children, r) + "}";
1184
+ case bt:
1185
+ if (!de(e.value = e.props.join(","))) return "";
1255
1186
  }
1256
- var w = /^\0+/g, L = /[\0\r\f]/g, R = /: */g, E = /zoo|gra/, k = /([,: ])(transform)/g, _ = /,\r+?/g, j = /([\t\r\n ])*\f?&/g, x = /@(k\w+)\s*(\S*)\s*/, g = /::(place)/g, A = /:(read-only)/g, p = /[svh]\w+-[tblr]{2}/, U = /\(\s*(.*)\s*\)/g, de = /([\s\S]*?);/g, te = /-self|flex-/g, ce = /[^]*?(:[rp][el]a[\w-]+)[^]*/, M = /stretch|:\s*\w+\-(?:conte|avail)/, xe = /([^-])(image-set\()/, re = 1, J = 1, ne = 0, K = 1, Se = [], Q = [], pe = 0, Pe = null, Ee = 0, Re = "";
1257
- return v.use = u, v.set = f, e !== void 0 && f(e), v;
1187
+ return de(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1188
+ }
1189
+ function Wo(e) {
1190
+ var t = qn(e);
1191
+ return function(n, r, i, a) {
1192
+ for (var l = "", u = 0; u < t; u++)
1193
+ l += e[u](n, r, i, a) || "";
1194
+ return l;
1195
+ };
1258
1196
  }
1259
- var _n = {
1197
+ function Yo(e) {
1198
+ return function(t) {
1199
+ t.root || (t = t.return) && e(t);
1200
+ };
1201
+ }
1202
+ function qo(e, t, n, r) {
1203
+ if (e.length > -1 && !e.return)
1204
+ switch (e.type) {
1205
+ case Gt:
1206
+ e.return = Gn(e.value, e.length, n);
1207
+ return;
1208
+ case Un:
1209
+ return ft([we(e, { value: k(e.value, "@", "@" + O) })], r);
1210
+ case bt:
1211
+ if (e.length)
1212
+ return Do(n = e.props, function(i) {
1213
+ switch (he(i, r = /(::plac\w+|:read-\w+)/)) {
1214
+ // :read-(only|write)
1215
+ case ":read-only":
1216
+ case ":read-write":
1217
+ Me(we(e, { props: [k(i, /:(read-\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
1218
+ break;
1219
+ // :placeholder
1220
+ case "::placeholder":
1221
+ Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + O + "input-$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, V + "input-$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
1222
+ break;
1223
+ }
1224
+ return "";
1225
+ });
1226
+ }
1227
+ }
1228
+ var Zo = {
1260
1229
  animationIterationCount: 1,
1230
+ aspectRatio: 1,
1261
1231
  borderImageOutset: 1,
1262
1232
  borderImageSlice: 1,
1263
1233
  borderImageWidth: 1,
@@ -1303,111 +1273,111 @@ var _n = {
1303
1273
  strokeMiterlimit: 1,
1304
1274
  strokeOpacity: 1,
1305
1275
  strokeWidth: 1
1276
+ }, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Xn = "active", Jn = "data-styled-version", kt = "6.1.19", Jt = `/*!sc*/
1277
+ `, pt = typeof window < "u" && typeof document < "u", Go = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Sn = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Xo = function(e, t) {
1278
+ if (process.env.NODE_ENV !== "production") {
1279
+ var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1280
+ `) + `You may see this warning because you've called styled inside another component.
1281
+ To resolve this only create new StyledComponents outside of any render method and function component.
1282
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
1283
+ `, i = console.error;
1284
+ try {
1285
+ var a = !0;
1286
+ console.error = function(l) {
1287
+ for (var u = [], s = 1; s < arguments.length; s++) u[s - 1] = arguments[s];
1288
+ Sn.test(l) ? (a = !1, rt.delete(r)) : i.apply(void 0, je([l], u, !1));
1289
+ }, Y(), a && !rt.has(r) && (console.warn(r), rt.add(r));
1290
+ } catch (l) {
1291
+ Sn.test(l.message) && rt.delete(r);
1292
+ } finally {
1293
+ console.error = i;
1294
+ }
1295
+ }
1296
+ }, Tt = Object.freeze([]), $e = Object.freeze({});
1297
+ function Jo(e, t, n) {
1298
+ return n === void 0 && (n = $e), e.theme !== n.theme && e.theme || t || n.theme;
1299
+ }
1300
+ var Nt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Ko = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Qo = /(^-|-$)/g;
1301
+ function Cn(e) {
1302
+ return e.replace(Ko, "-").replace(Qo, "");
1303
+ }
1304
+ var ei = /(a)(d)/gi, ot = 52, kn = function(e) {
1305
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
1306
1306
  };
1307
- function An(e) {
1308
- var r = /* @__PURE__ */ Object.create(null);
1309
- return function(t) {
1310
- return r[t] === void 0 && (r[t] = e(t)), r[t];
1311
- };
1307
+ function $t(e) {
1308
+ var t, n = "";
1309
+ for (t = Math.abs(e); t > ot; t = t / ot | 0) n = kn(t % ot) + n;
1310
+ return (kn(t % ot) + n).replace(ei, "$1-$2");
1312
1311
  }
1313
- var jn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ut = /* @__PURE__ */ An(
1314
- function(e) {
1315
- return jn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1316
- }
1317
- /* Z+1 */
1318
- ), gt, Wt;
1319
- function Ln() {
1320
- if (Wt) return gt;
1321
- Wt = 1;
1322
- var e = cr(), r = {
1323
- childContextTypes: !0,
1324
- contextType: !0,
1325
- contextTypes: !0,
1326
- defaultProps: !0,
1327
- displayName: !0,
1328
- getDefaultProps: !0,
1329
- getDerivedStateFromError: !0,
1330
- getDerivedStateFromProps: !0,
1331
- mixins: !0,
1332
- propTypes: !0,
1333
- type: !0
1334
- }, t = {
1335
- name: !0,
1336
- length: !0,
1337
- prototype: !0,
1338
- caller: !0,
1339
- callee: !0,
1340
- arguments: !0,
1341
- arity: !0
1342
- }, n = {
1343
- $$typeof: !0,
1344
- render: !0,
1345
- defaultProps: !0,
1346
- displayName: !0,
1347
- propTypes: !0
1348
- }, i = {
1349
- $$typeof: !0,
1350
- compare: !0,
1351
- defaultProps: !0,
1352
- displayName: !0,
1353
- propTypes: !0,
1354
- type: !0
1355
- }, c = {};
1356
- c[e.ForwardRef] = n, c[e.Memo] = i;
1357
- function l(E) {
1358
- return e.isMemo(E) ? i : c[E.$$typeof] || r;
1359
- }
1360
- var d = Object.defineProperty, u = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, v = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, L = Object.prototype;
1361
- function R(E, k, _) {
1362
- if (typeof k != "string") {
1363
- if (L) {
1364
- var j = w(k);
1365
- j && j !== L && R(E, j, _);
1366
- }
1367
- var x = u(k);
1368
- f && (x = x.concat(f(k)));
1369
- for (var g = l(E), A = l(k), p = 0; p < x.length; ++p) {
1370
- var U = x[p];
1371
- if (!t[U] && !(_ && _[U]) && !(A && A[U]) && !(g && g[U])) {
1372
- var de = v(k, U);
1373
- try {
1374
- d(E, U, de);
1375
- } catch {
1376
- }
1312
+ var Dt, Kn = 5381, ke = function(e, t) {
1313
+ for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1314
+ return e;
1315
+ }, Qn = function(e) {
1316
+ return ke(Kn, e);
1317
+ };
1318
+ function er(e) {
1319
+ return $t(Qn(e) >>> 0);
1320
+ }
1321
+ function tr(e) {
1322
+ return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1323
+ }
1324
+ function At(e) {
1325
+ return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1326
+ }
1327
+ var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115, ti = nr ? Symbol.for("react.forward_ref") : 60112, ni = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ri = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, or = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, oi = ((Dt = {})[ti] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[rr] = or, Dt);
1328
+ function Tn(e) {
1329
+ return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ? oi[e.$$typeof] : ni;
1330
+ var t;
1331
+ }
1332
+ var ii = Object.defineProperty, si = Object.getOwnPropertyNames, En = Object.getOwnPropertySymbols, ai = Object.getOwnPropertyDescriptor, ci = Object.getPrototypeOf, Pn = Object.prototype;
1333
+ function ir(e, t, n) {
1334
+ if (typeof t != "string") {
1335
+ if (Pn) {
1336
+ var r = ci(t);
1337
+ r && r !== Pn && ir(e, r, n);
1338
+ }
1339
+ var i = si(t);
1340
+ En && (i = i.concat(En(t)));
1341
+ for (var a = Tn(e), l = Tn(t), u = 0; u < i.length; ++u) {
1342
+ var s = i[u];
1343
+ if (!(s in ri || n && n[s] || l && s in l || a && s in a)) {
1344
+ var d = ai(t, s);
1345
+ try {
1346
+ ii(e, s, d);
1347
+ } catch {
1377
1348
  }
1378
1349
  }
1379
1350
  }
1380
- return E;
1381
1351
  }
1382
- return gt = R, gt;
1383
- }
1384
- var In = Ln();
1385
- const On = /* @__PURE__ */ yn(In);
1386
- function je() {
1387
- return (je = Object.assign || function(e) {
1388
- for (var r = 1; r < arguments.length; r++) {
1389
- var t = arguments[r];
1390
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
1391
- }
1392
- return e;
1393
- }).apply(this, arguments);
1394
- }
1395
- var qt = function(e, r) {
1396
- for (var t = [e[0]], n = 0, i = r.length; n < i; n += 1) t.push(r[n], e[n + 1]);
1397
- return t;
1398
- }, bt = function(e) {
1399
- return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !Rt.typeOf(e);
1400
- }, it = Object.freeze([]), Le = Object.freeze({});
1401
- function Xe(e) {
1352
+ return e;
1353
+ }
1354
+ function He(e) {
1402
1355
  return typeof e == "function";
1403
1356
  }
1404
- function xt(e) {
1405
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1357
+ function Kt(e) {
1358
+ return typeof e == "object" && "styledComponentId" in e;
1359
+ }
1360
+ function Te(e, t) {
1361
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1406
1362
  }
1407
- function kt(e) {
1408
- return e && typeof e.styledComponentId == "string";
1363
+ function Ht(e, t) {
1364
+ if (e.length === 0) return "";
1365
+ for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1366
+ return n;
1409
1367
  }
1410
- var ze = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", _t = typeof window < "u" && "HTMLElement" in window, Dn = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production")), Mn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1368
+ function ze(e) {
1369
+ return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1370
+ }
1371
+ function zt(e, t, n) {
1372
+ if (n === void 0 && (n = !1), !n && !ze(e) && !Array.isArray(e)) return t;
1373
+ if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = zt(e[r], t[r]);
1374
+ else if (ze(t)) for (var r in t) e[r] = zt(e[r], t[r]);
1375
+ return e;
1376
+ }
1377
+ function Qt(e, t) {
1378
+ Object.defineProperty(e, "toString", { value: t });
1379
+ }
1380
+ var li = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1411
1381
 
1412
1382
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1413
1383
 
@@ -1448,452 +1418,364 @@ as for instance in your render method then you may be running into this limitati
1448
1418
 
1449
1419
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1450
1420
  Has styled-components' style tag been unmounted or altered by another script?
1451
- ` } : {};
1452
- function Fn() {
1453
- for (var e = arguments.length <= 0 ? void 0 : arguments[0], r = [], t = 1, n = arguments.length; t < n; t += 1) r.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
1454
- return r.forEach((function(i) {
1455
- e = e.replace(/%[a-z]/, i);
1456
- })), e;
1421
+ `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1422
+ function ui() {
1423
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1424
+ for (var n = e[0], r = [], i = 1, a = e.length; i < a; i += 1) r.push(e[i]);
1425
+ return r.forEach(function(l) {
1426
+ n = n.replace(/%[a-z]/, l);
1427
+ }), n;
1457
1428
  }
1458
1429
  function We(e) {
1459
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
1460
- throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(Fn.apply(void 0, [Mn[e]].concat(t)).trim());
1430
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1431
+ return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ui.apply(void 0, je([li[e]], t, !1)).trim());
1461
1432
  }
1462
- var Nn = (function() {
1433
+ var di = (function() {
1463
1434
  function e(t) {
1464
1435
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1465
1436
  }
1466
- var r = e.prototype;
1467
- return r.indexOfGroup = function(t) {
1468
- for (var n = 0, i = 0; i < t; i++) n += this.groupSizes[i];
1437
+ return e.prototype.indexOfGroup = function(t) {
1438
+ for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
1469
1439
  return n;
1470
- }, r.insertRules = function(t, n) {
1440
+ }, e.prototype.insertRules = function(t, n) {
1471
1441
  if (t >= this.groupSizes.length) {
1472
- for (var i = this.groupSizes, c = i.length, l = c; t >= l; ) (l <<= 1) < 0 && We(16, "" + t);
1473
- this.groupSizes = new Uint32Array(l), this.groupSizes.set(i), this.length = l;
1474
- for (var d = c; d < l; d++) this.groupSizes[d] = 0;
1442
+ for (var r = this.groupSizes, i = r.length, a = i; t >= a; ) if ((a <<= 1) < 0) throw We(16, "".concat(t));
1443
+ this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
1444
+ for (var l = i; l < a; l++) this.groupSizes[l] = 0;
1475
1445
  }
1476
- for (var u = this.indexOfGroup(t + 1), f = 0, v = n.length; f < v; f++) this.tag.insertRule(u, n[f]) && (this.groupSizes[t]++, u++);
1477
- }, r.clearGroup = function(t) {
1446
+ for (var u = this.indexOfGroup(t + 1), s = (l = 0, n.length); l < s; l++) this.tag.insertRule(u, n[l]) && (this.groupSizes[t]++, u++);
1447
+ }, e.prototype.clearGroup = function(t) {
1478
1448
  if (t < this.length) {
1479
- var n = this.groupSizes[t], i = this.indexOfGroup(t), c = i + n;
1449
+ var n = this.groupSizes[t], r = this.indexOfGroup(t), i = r + n;
1480
1450
  this.groupSizes[t] = 0;
1481
- for (var l = i; l < c; l++) this.tag.deleteRule(i);
1451
+ for (var a = r; a < i; a++) this.tag.deleteRule(r);
1482
1452
  }
1483
- }, r.getGroup = function(t) {
1453
+ }, e.prototype.getGroup = function(t) {
1484
1454
  var n = "";
1485
1455
  if (t >= this.length || this.groupSizes[t] === 0) return n;
1486
- for (var i = this.groupSizes[t], c = this.indexOfGroup(t), l = c + i, d = c; d < l; d++) n += this.tag.getRule(d) + `/*!sc*/
1487
- `;
1456
+ for (var r = this.groupSizes[t], i = this.indexOfGroup(t), a = i + r, l = i; l < a; l++) n += "".concat(this.tag.getRule(l)).concat(Jt);
1488
1457
  return n;
1489
1458
  }, e;
1490
- })(), ot = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), Ge = 1, tt = function(e) {
1491
- if (ot.has(e)) return ot.get(e);
1492
- for (; at.has(Ge); ) Ge++;
1493
- var r = Ge++;
1494
- return process.env.NODE_ENV !== "production" && ((0 | r) < 0 || r > 1 << 30) && We(16, "" + r), ot.set(e, r), at.set(r, e), r;
1495
- }, Vn = function(e) {
1496
- return at.get(e);
1497
- }, $n = function(e, r) {
1498
- r >= Ge && (Ge = r + 1), ot.set(e, r), at.set(r, e);
1499
- }, Hn = "style[" + ze + '][data-styled-version="5.3.11"]', zn = new RegExp("^" + ze + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Yn = function(e, r, t) {
1500
- for (var n, i = t.split(","), c = 0, l = i.length; c < l; c++) (n = i[c]) && e.registerName(r, n);
1501
- }, Bn = function(e, r) {
1502
- for (var t = (r.textContent || "").split(`/*!sc*/
1503
- `), n = [], i = 0, c = t.length; i < c; i++) {
1504
- var l = t[i].trim();
1505
- if (l) {
1506
- var d = l.match(zn);
1507
- if (d) {
1508
- var u = 0 | parseInt(d[1], 10), f = d[2];
1509
- u !== 0 && ($n(f, u), Yn(e, f, d[3]), e.getTag().insertRules(u, n)), n.length = 0;
1510
- } else n.push(l);
1459
+ })(), fi = 1 << 30, ut = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), dt = 1, it = function(e) {
1460
+ if (ut.has(e)) return ut.get(e);
1461
+ for (; ht.has(dt); ) dt++;
1462
+ var t = dt++;
1463
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > fi)) throw We(16, "".concat(t));
1464
+ return ut.set(e, t), ht.set(t, e), t;
1465
+ }, pi = function(e, t) {
1466
+ dt = t + 1, ut.set(e, t), ht.set(t, e);
1467
+ }, hi = "style[".concat(Le, "][").concat(Jn, '="').concat(kt, '"]'), mi = new RegExp("^".concat(Le, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), gi = function(e, t, n) {
1468
+ for (var r, i = n.split(","), a = 0, l = i.length; a < l; a++) (r = i[a]) && e.registerName(t, r);
1469
+ }, yi = function(e, t) {
1470
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Jt), i = [], a = 0, l = r.length; a < l; a++) {
1471
+ var u = r[a].trim();
1472
+ if (u) {
1473
+ var s = u.match(mi);
1474
+ if (s) {
1475
+ var d = 0 | parseInt(s[1], 10), p = s[2];
1476
+ d !== 0 && (pi(p, d), gi(e, p, s[3]), e.getTag().insertRules(d, i)), i.length = 0;
1477
+ } else i.push(u);
1511
1478
  }
1512
1479
  }
1513
- }, Un = function() {
1480
+ }, Rn = function(e) {
1481
+ for (var t = document.querySelectorAll(hi), n = 0, r = t.length; n < r; n++) {
1482
+ var i = t[n];
1483
+ i && i.getAttribute(Le) !== Xn && (yi(e, i), i.parentNode && i.parentNode.removeChild(i));
1484
+ }
1485
+ };
1486
+ function vi() {
1514
1487
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1515
- }, lr = function(e) {
1516
- var r = document.head, t = e || r, n = document.createElement("style"), i = (function(d) {
1517
- for (var u = d.childNodes, f = u.length; f >= 0; f--) {
1518
- var v = u[f];
1519
- if (v && v.nodeType === 1 && v.hasAttribute(ze)) return v;
1520
- }
1521
- })(t), c = i !== void 0 ? i.nextSibling : null;
1522
- n.setAttribute(ze, "active"), n.setAttribute("data-styled-version", "5.3.11");
1523
- var l = Un();
1524
- return l && n.setAttribute("nonce", l), t.insertBefore(n, c), n;
1525
- }, Wn = (function() {
1488
+ }
1489
+ var sr = function(e) {
1490
+ var t = document.head, n = e || t, r = document.createElement("style"), i = (function(u) {
1491
+ var s = Array.from(u.querySelectorAll("style[".concat(Le, "]")));
1492
+ return s[s.length - 1];
1493
+ })(n), a = i !== void 0 ? i.nextSibling : null;
1494
+ r.setAttribute(Le, Xn), r.setAttribute(Jn, kt);
1495
+ var l = vi();
1496
+ return l && r.setAttribute("nonce", l), n.insertBefore(r, a), r;
1497
+ }, wi = (function() {
1526
1498
  function e(t) {
1527
- var n = this.element = lr(t);
1528
- n.appendChild(document.createTextNode("")), this.sheet = (function(i) {
1529
- if (i.sheet) return i.sheet;
1530
- for (var c = document.styleSheets, l = 0, d = c.length; l < d; l++) {
1531
- var u = c[l];
1532
- if (u.ownerNode === i) return u;
1499
+ this.element = sr(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
1500
+ if (n.sheet) return n.sheet;
1501
+ for (var r = document.styleSheets, i = 0, a = r.length; i < a; i++) {
1502
+ var l = r[i];
1503
+ if (l.ownerNode === n) return l;
1533
1504
  }
1534
- We(17);
1535
- })(n), this.length = 0;
1505
+ throw We(17);
1506
+ })(this.element), this.length = 0;
1536
1507
  }
1537
- var r = e.prototype;
1538
- return r.insertRule = function(t, n) {
1508
+ return e.prototype.insertRule = function(t, n) {
1539
1509
  try {
1540
1510
  return this.sheet.insertRule(n, t), this.length++, !0;
1541
1511
  } catch {
1542
1512
  return !1;
1543
1513
  }
1544
- }, r.deleteRule = function(t) {
1514
+ }, e.prototype.deleteRule = function(t) {
1545
1515
  this.sheet.deleteRule(t), this.length--;
1546
- }, r.getRule = function(t) {
1516
+ }, e.prototype.getRule = function(t) {
1547
1517
  var n = this.sheet.cssRules[t];
1548
- return n !== void 0 && typeof n.cssText == "string" ? n.cssText : "";
1518
+ return n && n.cssText ? n.cssText : "";
1549
1519
  }, e;
1550
- })(), qn = (function() {
1520
+ })(), bi = (function() {
1551
1521
  function e(t) {
1552
- var n = this.element = lr(t);
1553
- this.nodes = n.childNodes, this.length = 0;
1522
+ this.element = sr(t), this.nodes = this.element.childNodes, this.length = 0;
1554
1523
  }
1555
- var r = e.prototype;
1556
- return r.insertRule = function(t, n) {
1524
+ return e.prototype.insertRule = function(t, n) {
1557
1525
  if (t <= this.length && t >= 0) {
1558
- var i = document.createTextNode(n), c = this.nodes[t];
1559
- return this.element.insertBefore(i, c || null), this.length++, !0;
1526
+ var r = document.createTextNode(n);
1527
+ return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1560
1528
  }
1561
1529
  return !1;
1562
- }, r.deleteRule = function(t) {
1530
+ }, e.prototype.deleteRule = function(t) {
1563
1531
  this.element.removeChild(this.nodes[t]), this.length--;
1564
- }, r.getRule = function(t) {
1532
+ }, e.prototype.getRule = function(t) {
1565
1533
  return t < this.length ? this.nodes[t].textContent : "";
1566
1534
  }, e;
1567
- })(), Zn = (function() {
1535
+ })(), xi = (function() {
1568
1536
  function e(t) {
1569
1537
  this.rules = [], this.length = 0;
1570
1538
  }
1571
- var r = e.prototype;
1572
- return r.insertRule = function(t, n) {
1539
+ return e.prototype.insertRule = function(t, n) {
1573
1540
  return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1574
- }, r.deleteRule = function(t) {
1541
+ }, e.prototype.deleteRule = function(t) {
1575
1542
  this.rules.splice(t, 1), this.length--;
1576
- }, r.getRule = function(t) {
1543
+ }, e.prototype.getRule = function(t) {
1577
1544
  return t < this.length ? this.rules[t] : "";
1578
1545
  }, e;
1579
- })(), Zt = _t, Gn = { isServer: !_t, useCSSOMInjection: !Dn }, ur = (function() {
1580
- function e(t, n, i) {
1581
- t === void 0 && (t = Le), n === void 0 && (n = {}), this.options = je({}, Gn, {}, t), this.gs = n, this.names = new Map(i), this.server = !!t.isServer, !this.server && _t && Zt && (Zt = !1, (function(c) {
1582
- for (var l = document.querySelectorAll(Hn), d = 0, u = l.length; d < u; d++) {
1583
- var f = l[d];
1584
- f && f.getAttribute(ze) !== "active" && (Bn(c, f), f.parentNode && f.parentNode.removeChild(f));
1585
- }
1586
- })(this));
1546
+ })(), jn = pt, Si = { isServer: !pt, useCSSOMInjection: !Go }, ar = (function() {
1547
+ function e(t, n, r) {
1548
+ t === void 0 && (t = $e), n === void 0 && (n = {});
1549
+ var i = this;
1550
+ this.options = ee(ee({}, Si), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && pt && jn && (jn = !1, Rn(this)), Qt(this, function() {
1551
+ return (function(a) {
1552
+ for (var l = a.getTag(), u = l.length, s = "", d = function(g) {
1553
+ var w = (function(P) {
1554
+ return ht.get(P);
1555
+ })(g);
1556
+ if (w === void 0) return "continue";
1557
+ var v = a.names.get(w), E = l.getGroup(g);
1558
+ if (v === void 0 || !v.size || E.length === 0) return "continue";
1559
+ var T = "".concat(Le, ".g").concat(g, '[id="').concat(w, '"]'), M = "";
1560
+ v !== void 0 && v.forEach(function(P) {
1561
+ P.length > 0 && (M += "".concat(P, ","));
1562
+ }), s += "".concat(E).concat(T, '{content:"').concat(M, '"}').concat(Jt);
1563
+ }, p = 0; p < u; p++) d(p);
1564
+ return s;
1565
+ })(i);
1566
+ });
1587
1567
  }
1588
- e.registerId = function(t) {
1589
- return tt(t);
1590
- };
1591
- var r = e.prototype;
1592
- return r.reconstructWithOptions = function(t, n) {
1593
- return n === void 0 && (n = !0), new e(je({}, this.options, {}, t), this.gs, n && this.names || void 0);
1594
- }, r.allocateGSInstance = function(t) {
1568
+ return e.registerId = function(t) {
1569
+ return it(t);
1570
+ }, e.prototype.rehydrate = function() {
1571
+ !this.server && pt && Rn(this);
1572
+ }, e.prototype.reconstructWithOptions = function(t, n) {
1573
+ return n === void 0 && (n = !0), new e(ee(ee({}, this.options), t), this.gs, n && this.names || void 0);
1574
+ }, e.prototype.allocateGSInstance = function(t) {
1595
1575
  return this.gs[t] = (this.gs[t] || 0) + 1;
1596
- }, r.getTag = function() {
1597
- return this.tag || (this.tag = (i = (n = this.options).isServer, c = n.useCSSOMInjection, l = n.target, t = i ? new Zn(l) : c ? new Wn(l) : new qn(l), new Nn(t)));
1598
- var t, n, i, c, l;
1599
- }, r.hasNameForId = function(t, n) {
1576
+ }, e.prototype.getTag = function() {
1577
+ return this.tag || (this.tag = (t = (function(n) {
1578
+ var r = n.useCSSOMInjection, i = n.target;
1579
+ return n.isServer ? new xi(i) : r ? new wi(i) : new bi(i);
1580
+ })(this.options), new di(t)));
1581
+ var t;
1582
+ }, e.prototype.hasNameForId = function(t, n) {
1600
1583
  return this.names.has(t) && this.names.get(t).has(n);
1601
- }, r.registerName = function(t, n) {
1602
- if (tt(t), this.names.has(t)) this.names.get(t).add(n);
1584
+ }, e.prototype.registerName = function(t, n) {
1585
+ if (it(t), this.names.has(t)) this.names.get(t).add(n);
1603
1586
  else {
1604
- var i = /* @__PURE__ */ new Set();
1605
- i.add(n), this.names.set(t, i);
1587
+ var r = /* @__PURE__ */ new Set();
1588
+ r.add(n), this.names.set(t, r);
1606
1589
  }
1607
- }, r.insertRules = function(t, n, i) {
1608
- this.registerName(t, n), this.getTag().insertRules(tt(t), i);
1609
- }, r.clearNames = function(t) {
1590
+ }, e.prototype.insertRules = function(t, n, r) {
1591
+ this.registerName(t, n), this.getTag().insertRules(it(t), r);
1592
+ }, e.prototype.clearNames = function(t) {
1610
1593
  this.names.has(t) && this.names.get(t).clear();
1611
- }, r.clearRules = function(t) {
1612
- this.getTag().clearGroup(tt(t)), this.clearNames(t);
1613
- }, r.clearTag = function() {
1594
+ }, e.prototype.clearRules = function(t) {
1595
+ this.getTag().clearGroup(it(t)), this.clearNames(t);
1596
+ }, e.prototype.clearTag = function() {
1614
1597
  this.tag = void 0;
1615
- }, r.toString = function() {
1616
- return (function(t) {
1617
- for (var n = t.getTag(), i = n.length, c = "", l = 0; l < i; l++) {
1618
- var d = Vn(l);
1619
- if (d !== void 0) {
1620
- var u = t.names.get(d), f = n.getGroup(l);
1621
- if (u && f && u.size) {
1622
- var v = ze + ".g" + l + '[id="' + d + '"]', w = "";
1623
- u !== void 0 && u.forEach((function(L) {
1624
- L.length > 0 && (w += L + ",");
1625
- })), c += "" + f + v + '{content:"' + w + `"}/*!sc*/
1626
- `;
1627
- }
1628
- }
1629
- }
1630
- return c;
1631
- })(this);
1632
1598
  }, e;
1633
- })(), Xn = /(a)(d)/gi, Gt = function(e) {
1634
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
1599
+ })(), Ci = /&/g, ki = /^\s*\/\/.*$/gm;
1600
+ function cr(e, t) {
1601
+ return e.map(function(n) {
1602
+ return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1603
+ return "".concat(t, " ").concat(r);
1604
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = cr(n.children, t)), n;
1605
+ });
1606
+ }
1607
+ function Ti(e) {
1608
+ var t, n, r, i = $e, a = i.options, l = a === void 0 ? $e : a, u = i.plugins, s = u === void 0 ? Tt : u, d = function(w, v, E) {
1609
+ return E.startsWith(n) && E.endsWith(n) && E.replaceAll(n, "").length > 0 ? ".".concat(t) : w;
1610
+ }, p = s.slice();
1611
+ p.push(function(w) {
1612
+ w.type === bt && w.value.includes("&") && (w.props[0] = w.props[0].replace(Ci, n).replace(r, d));
1613
+ }), l.prefix && p.push(qo), p.push(Uo);
1614
+ var g = function(w, v, E, T) {
1615
+ v === void 0 && (v = ""), E === void 0 && (E = ""), T === void 0 && (T = "&"), t = T, n = v, r = new RegExp("\\".concat(n, "\\b"), "g");
1616
+ var M = w.replace(ki, ""), P = zo(E || v ? "".concat(E, " ").concat(v, " { ").concat(M, " }") : M);
1617
+ l.namespace && (P = cr(P, l.namespace));
1618
+ var b = [];
1619
+ return ft(P, Wo(p.concat(Yo(function(h) {
1620
+ return b.push(h);
1621
+ })))), b;
1622
+ };
1623
+ return g.hash = s.length ? s.reduce(function(w, v) {
1624
+ return v.name || We(15), ke(w, v.name);
1625
+ }, Kn).toString() : "", g;
1626
+ }
1627
+ var Ei = new ar(), Bt = Ti(), lr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Ei, stylis: Bt });
1628
+ lr.Consumer;
1629
+ Re.createContext(void 0);
1630
+ function Ln() {
1631
+ return Zt(lr);
1632
+ }
1633
+ var Ut = (function() {
1634
+ function e(t, n) {
1635
+ var r = this;
1636
+ this.inject = function(i, a) {
1637
+ a === void 0 && (a = Bt);
1638
+ var l = r.name + a.hash;
1639
+ i.hasNameForId(r.id, l) || i.insertRules(r.id, l, a(r.rules, l, "@keyframes"));
1640
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qt(this, function() {
1641
+ throw We(12, String(r.name));
1642
+ });
1643
+ }
1644
+ return e.prototype.getName = function(t) {
1645
+ return t === void 0 && (t = Bt), this.name + t.hash;
1646
+ }, e;
1647
+ })(), Pi = function(e) {
1648
+ return e >= "A" && e <= "Z";
1635
1649
  };
1636
- function St(e) {
1637
- var r, t = "";
1638
- for (r = Math.abs(e); r > 52; r = r / 52 | 0) t = Gt(r % 52) + t;
1639
- return (Gt(r % 52) + t).replace(Xn, "$1-$2");
1650
+ function _n(e) {
1651
+ for (var t = "", n = 0; n < e.length; n++) {
1652
+ var r = e[n];
1653
+ if (n === 1 && r === "-" && e[0] === "-") return e;
1654
+ Pi(r) ? t += "-" + r.toLowerCase() : t += r;
1655
+ }
1656
+ return t.startsWith("ms-") ? "-" + t : t;
1640
1657
  }
1641
- var Me = function(e, r) {
1642
- for (var t = r.length; t; ) e = 33 * e ^ r.charCodeAt(--t);
1643
- return e;
1658
+ var ur = function(e) {
1659
+ return e == null || e === !1 || e === "";
1644
1660
  }, dr = function(e) {
1645
- return Me(5381, e);
1661
+ var t, n, r = [];
1662
+ for (var i in e) {
1663
+ var a = e[i];
1664
+ e.hasOwnProperty(i) && !ur(a) && (Array.isArray(a) && a.isCss || He(a) ? r.push("".concat(_n(i), ":"), a, ";") : ze(a) ? r.push.apply(r, je(je(["".concat(i, " {")], dr(a), !1), ["}"], !1)) : r.push("".concat(_n(i), ": ").concat((t = i, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Zo || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1665
+ }
1666
+ return r;
1646
1667
  };
1647
- function Jn(e) {
1648
- for (var r = 0; r < e.length; r += 1) {
1649
- var t = e[r];
1650
- if (Xe(t) && !kt(t)) return !1;
1668
+ function Pe(e, t, n, r) {
1669
+ if (ur(e)) return [];
1670
+ if (Kt(e)) return [".".concat(e.styledComponentId)];
1671
+ if (He(e)) {
1672
+ if (!He(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
1673
+ var i = e(t);
1674
+ return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Ut || ze(i) || i === null || console.error("".concat(tr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Pe(i, t, n, r);
1675
+ }
1676
+ var a;
1677
+ return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ze(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(Tt, e.map(function(l) {
1678
+ return Pe(l, t, n, r);
1679
+ })) : [e.toString()];
1680
+ }
1681
+ function Ri(e) {
1682
+ for (var t = 0; t < e.length; t += 1) {
1683
+ var n = e[t];
1684
+ if (He(n) && !Kt(n)) return !1;
1651
1685
  }
1652
1686
  return !0;
1653
1687
  }
1654
- var Kn = dr("5.3.11"), Qn = (function() {
1655
- function e(r, t, n) {
1656
- this.rules = r, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Jn(r), this.componentId = t, this.baseHash = Me(Kn, t), this.baseStyle = n, ur.registerId(t);
1688
+ var ji = Qn(kt), Li = (function() {
1689
+ function e(t, n, r) {
1690
+ this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ri(t), this.componentId = n, this.baseHash = ke(ji, n), this.baseStyle = r, ar.registerId(n);
1657
1691
  }
1658
- return e.prototype.generateAndInjectStyles = function(r, t, n) {
1659
- var i = this.componentId, c = [];
1660
- if (this.baseStyle && c.push(this.baseStyle.generateAndInjectStyles(r, t, n)), this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(i, this.staticRulesId)) c.push(this.staticRulesId);
1692
+ return e.prototype.generateAndInjectStyles = function(t, n, r) {
1693
+ var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1694
+ if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) i = Te(i, this.staticRulesId);
1661
1695
  else {
1662
- var l = Ye(this.rules, r, t, n).join(""), d = St(Me(this.baseHash, l) >>> 0);
1663
- if (!t.hasNameForId(i, d)) {
1664
- var u = n(l, "." + d, void 0, i);
1665
- t.insertRules(i, d, u);
1696
+ var a = Ht(Pe(this.rules, t, n, r)), l = $t(ke(this.baseHash, a) >>> 0);
1697
+ if (!n.hasNameForId(this.componentId, l)) {
1698
+ var u = r(a, ".".concat(l), void 0, this.componentId);
1699
+ n.insertRules(this.componentId, l, u);
1666
1700
  }
1667
- c.push(d), this.staticRulesId = d;
1701
+ i = Te(i, l), this.staticRulesId = l;
1668
1702
  }
1669
1703
  else {
1670
- for (var f = this.rules.length, v = Me(this.baseHash, n.hash), w = "", L = 0; L < f; L++) {
1671
- var R = this.rules[L];
1672
- if (typeof R == "string") w += R, process.env.NODE_ENV !== "production" && (v = Me(v, R + L));
1673
- else if (R) {
1674
- var E = Ye(R, r, t, n), k = Array.isArray(E) ? E.join("") : E;
1675
- v = Me(v, k + L), w += k;
1704
+ for (var s = ke(this.baseHash, r.hash), d = "", p = 0; p < this.rules.length; p++) {
1705
+ var g = this.rules[p];
1706
+ if (typeof g == "string") d += g, process.env.NODE_ENV !== "production" && (s = ke(s, g));
1707
+ else if (g) {
1708
+ var w = Ht(Pe(g, t, n, r));
1709
+ s = ke(s, w + p), d += w;
1676
1710
  }
1677
1711
  }
1678
- if (w) {
1679
- var _ = St(v >>> 0);
1680
- if (!t.hasNameForId(i, _)) {
1681
- var j = n(w, "." + _, void 0, i);
1682
- t.insertRules(i, _, j);
1683
- }
1684
- c.push(_);
1712
+ if (d) {
1713
+ var v = $t(s >>> 0);
1714
+ n.hasNameForId(this.componentId, v) || n.insertRules(this.componentId, v, r(d, ".".concat(v), void 0, this.componentId)), i = Te(i, v);
1685
1715
  }
1686
1716
  }
1687
- return c.join(" ");
1717
+ return i;
1688
1718
  }, e;
1689
- })(), eo = /^\s*\/\/.*$/gm, to = [":", "[", ".", "#"];
1690
- function ro(e) {
1691
- var r, t, n, i, c = Le, l = c.options, d = l === void 0 ? Le : l, u = c.plugins, f = u === void 0 ? it : u, v = new kn(d), w = [], L = /* @__PURE__ */ (function(k) {
1692
- function _(j) {
1693
- if (j) try {
1694
- k(j + "}");
1695
- } catch {
1696
- }
1697
- }
1698
- return function(j, x, g, A, p, U, de, te, ce, M) {
1699
- switch (j) {
1700
- case 1:
1701
- if (ce === 0 && x.charCodeAt(0) === 64) return k(x + ";"), "";
1702
- break;
1703
- case 2:
1704
- if (te === 0) return x + "/*|*/";
1705
- break;
1706
- case 3:
1707
- switch (te) {
1708
- case 102:
1709
- case 112:
1710
- return k(g[0] + x), "";
1711
- default:
1712
- return x + (M === 0 ? "/*|*/" : "");
1713
- }
1714
- case -2:
1715
- x.split("/*|*/}").forEach(_);
1716
- }
1717
- };
1718
- })((function(k) {
1719
- w.push(k);
1720
- })), R = function(k, _, j) {
1721
- return _ === 0 && to.indexOf(j[t.length]) !== -1 || j.match(i) ? k : "." + r;
1722
- };
1723
- function E(k, _, j, x) {
1724
- x === void 0 && (x = "&");
1725
- var g = k.replace(eo, ""), A = _ && j ? j + " " + _ + " { " + g + " }" : g;
1726
- return r = x, t = _, n = new RegExp("\\" + t + "\\b", "g"), i = new RegExp("(\\" + t + "\\b){2,}"), v(j || !_ ? "" : _, A);
1727
- }
1728
- return v.use([].concat(f, [function(k, _, j) {
1729
- k === 2 && j.length && j[0].lastIndexOf(t) > 0 && (j[0] = j[0].replace(n, R));
1730
- }, L, function(k) {
1731
- if (k === -2) {
1732
- var _ = w;
1733
- return w = [], _;
1734
- }
1735
- }])), E.hash = f.length ? f.reduce((function(k, _) {
1736
- return _.name || We(15), Me(k, _.name);
1737
- }), 5381).toString() : "", E;
1738
- }
1739
- var fr = Ue.createContext();
1719
+ })(), fr = Re.createContext(void 0);
1740
1720
  fr.Consumer;
1741
- var pr = Ue.createContext(), no = (pr.Consumer, new ur()), Ct = ro();
1742
- function oo() {
1743
- return Je(fr) || no;
1744
- }
1745
- function io() {
1746
- return Je(pr) || Ct;
1747
- }
1748
- var hr = (function() {
1749
- function e(r, t) {
1750
- var n = this;
1751
- this.inject = function(i, c) {
1752
- c === void 0 && (c = Ct);
1753
- var l = n.name + c.hash;
1754
- i.hasNameForId(n.id, l) || i.insertRules(n.id, l, c(n.rules, l, "@keyframes"));
1755
- }, this.toString = function() {
1756
- return We(12, String(n.name));
1757
- }, this.name = r, this.id = "sc-keyframes-" + r, this.rules = t;
1758
- }
1759
- return e.prototype.getName = function(r) {
1760
- return r === void 0 && (r = Ct), this.name + r.hash;
1761
- }, e;
1762
- })(), ao = /([A-Z])/, so = /([A-Z])/g, co = /^ms-/, lo = function(e) {
1763
- return "-" + e.toLowerCase();
1764
- };
1765
- function Xt(e) {
1766
- return ao.test(e) ? e.replace(so, lo).replace(co, "-ms-") : e;
1767
- }
1768
- var Jt = function(e) {
1769
- return e == null || e === !1 || e === "";
1770
- };
1771
- function Ye(e, r, t, n) {
1772
- if (Array.isArray(e)) {
1773
- for (var i, c = [], l = 0, d = e.length; l < d; l += 1) (i = Ye(e[l], r, t, n)) !== "" && (Array.isArray(i) ? c.push.apply(c, i) : c.push(i));
1774
- return c;
1775
- }
1776
- if (Jt(e)) return "";
1777
- if (kt(e)) return "." + e.styledComponentId;
1778
- if (Xe(e)) {
1779
- if (typeof (f = e) != "function" || f.prototype && f.prototype.isReactComponent || !r) return e;
1780
- var u = e(r);
1781
- return process.env.NODE_ENV !== "production" && Rt.isElement(u) && console.warn(xt(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), Ye(u, r, t, n);
1721
+ var Ot = {}, In = /* @__PURE__ */ new Set();
1722
+ function _i(e, t, n) {
1723
+ var r = Kt(e), i = e, a = !At(e), l = t.attrs, u = l === void 0 ? Tt : l, s = t.componentId, d = s === void 0 ? (function(L, D) {
1724
+ var C = typeof L != "string" ? "sc" : Cn(L);
1725
+ Ot[C] = (Ot[C] || 0) + 1;
1726
+ var x = "".concat(C, "-").concat(er(kt + C + Ot[C]));
1727
+ return D ? "".concat(D, "-").concat(x) : x;
1728
+ })(t.displayName, t.parentComponentId) : s, p = t.displayName, g = p === void 0 ? (function(L) {
1729
+ return At(L) ? "styled.".concat(L) : "Styled(".concat(tr(L), ")");
1730
+ })(e) : p, w = t.displayName && t.componentId ? "".concat(Cn(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = r && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, E = t.shouldForwardProp;
1731
+ if (r && i.shouldForwardProp) {
1732
+ var T = i.shouldForwardProp;
1733
+ if (t.shouldForwardProp) {
1734
+ var M = t.shouldForwardProp;
1735
+ E = function(L, D) {
1736
+ return T(L, D) && M(L, D);
1737
+ };
1738
+ } else E = T;
1782
1739
  }
1783
- var f;
1784
- return e instanceof hr ? t ? (e.inject(t, n), e.getName(n)) : e : bt(e) ? (function v(w, L) {
1785
- var R, E, k = [];
1786
- for (var _ in w) w.hasOwnProperty(_) && !Jt(w[_]) && (Array.isArray(w[_]) && w[_].isCss || Xe(w[_]) ? k.push(Xt(_) + ":", w[_], ";") : bt(w[_]) ? k.push.apply(k, v(w[_], _)) : k.push(Xt(_) + ": " + (R = _, (E = w[_]) == null || typeof E == "boolean" || E === "" ? "" : typeof E != "number" || E === 0 || R in _n || R.startsWith("--") ? String(E).trim() : E + "px") + ";"));
1787
- return L ? [L + " {"].concat(k, ["}"]) : k;
1788
- })(e) : e.toString();
1789
- }
1790
- var Kt = function(e) {
1791
- return Array.isArray(e) && (e.isCss = !0), e;
1792
- };
1793
- function st(e) {
1794
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
1795
- return Xe(e) || bt(e) ? Kt(Ye(qt(it, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : Kt(Ye(qt(e, t)));
1796
- }
1797
- var Qt = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), uo = function(e, r) {
1798
- if (process.env.NODE_ENV !== "production") {
1799
- var t = "The component " + e + (r ? ' with the id of "' + r + '"' : "") + ` has been created dynamically.
1800
- You may see this warning because you've called styled inside another component.
1801
- To resolve this only create new StyledComponents outside of any render method and function component.`, n = console.error;
1802
- try {
1803
- var i = !0;
1804
- console.error = function(c) {
1805
- if (Qt.test(c)) i = !1, rt.delete(t);
1806
- else {
1807
- for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), u = 1; u < l; u++) d[u - 1] = arguments[u];
1808
- n.apply(void 0, [c].concat(d));
1740
+ var P = new Li(n, w, r ? i.componentStyle : void 0);
1741
+ function b(L, D) {
1742
+ return (function(C, x, W) {
1743
+ var J = C.attrs, I = C.componentStyle, _e = C.defaultProps, fe = C.foldedComponentIds, q = C.styledComponentId, ne = C.target, ue = Re.useContext(fr), xe = Ln(), K = C.shouldForwardProp || xe.shouldForwardProp;
1744
+ process.env.NODE_ENV !== "production" && mn(q);
1745
+ var Ye = Jo(x, ue, _e) || $e, re = (function(De, pe, ye) {
1746
+ for (var se, ae = ee(ee({}, pe), { className: void 0, theme: ye }), ve = 0; ve < De.length; ve += 1) {
1747
+ var Ae = He(se = De[ve]) ? se(ae) : se;
1748
+ for (var ce in Ae) ae[ce] = ce === "className" ? Te(ae[ce], Ae[ce]) : ce === "style" ? ee(ee({}, ae[ce]), Ae[ce]) : Ae[ce];
1809
1749
  }
1810
- }, ve(), i && !rt.has(t) && (console.warn(t), rt.add(t));
1811
- } catch (c) {
1812
- Qt.test(c.message) && rt.delete(t);
1813
- } finally {
1814
- console.error = n;
1815
- }
1816
- }
1817
- }, fo = function(e, r, t) {
1818
- return t === void 0 && (t = Le), e.theme !== t.theme && e.theme || r || t.theme;
1819
- }, po = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ho = /(^-|-$)/g;
1820
- function yt(e) {
1821
- return e.replace(po, "-").replace(ho, "");
1822
- }
1823
- var mr = function(e) {
1824
- return St(dr(e) >>> 0);
1825
- };
1826
- function nt(e) {
1827
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1828
- }
1829
- var Et = function(e) {
1830
- return typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
1831
- }, mo = function(e) {
1832
- return e !== "__proto__" && e !== "constructor" && e !== "prototype";
1833
- };
1834
- function vo(e, r, t) {
1835
- var n = e[t];
1836
- Et(r) && Et(n) ? vr(n, r) : e[t] = r;
1837
- }
1838
- function vr(e) {
1839
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
1840
- for (var i = 0, c = t; i < c.length; i++) {
1841
- var l = c[i];
1842
- if (Et(l)) for (var d in l) mo(d) && vo(e, l[d], d);
1750
+ return pe.className && (ae.className = Te(ae.className, pe.className)), ae;
1751
+ })(J, x, Ye), me = re.as || ne, ge = {};
1752
+ for (var Z in re) re[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && re.theme === Ye || (Z === "forwardedAs" ? ge.as = re.forwardedAs : K && !K(Z, me) || (ge[Z] = re[Z], K || process.env.NODE_ENV !== "development" || jo(Z) || In.has(Z) || !Nt.has(me) || (In.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1753
+ var Ie = (function(De, pe) {
1754
+ var ye = Ln(), se = De.generateAndInjectStyles(pe, ye.styleSheet, ye.stylis);
1755
+ return process.env.NODE_ENV !== "production" && mn(se), se;
1756
+ })(I, re);
1757
+ process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Ie);
1758
+ var qe = Te(fe, q);
1759
+ return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ge[At(me) && !Nt.has(me) ? "class" : "className"] = qe, W && (ge.ref = W), wo(me, ge);
1760
+ })(h, L, D);
1843
1761
  }
1844
- return e;
1845
- }
1846
- var gr = Ue.createContext();
1847
- gr.Consumer;
1848
- var wt = {};
1849
- function yr(e, r, t) {
1850
- var n = kt(e), i = !nt(e), c = r.attrs, l = c === void 0 ? it : c, d = r.componentId, u = d === void 0 ? (function(x, g) {
1851
- var A = typeof x != "string" ? "sc" : yt(x);
1852
- wt[A] = (wt[A] || 0) + 1;
1853
- var p = A + "-" + mr("5.3.11" + A + wt[A]);
1854
- return g ? g + "-" + p : p;
1855
- })(r.displayName, r.parentComponentId) : d, f = r.displayName, v = f === void 0 ? (function(x) {
1856
- return nt(x) ? "styled." + x : "Styled(" + xt(x) + ")";
1857
- })(e) : f, w = r.displayName && r.componentId ? yt(r.displayName) + "-" + r.componentId : r.componentId || u, L = n && e.attrs ? Array.prototype.concat(e.attrs, l).filter(Boolean) : l, R = r.shouldForwardProp;
1858
- n && e.shouldForwardProp && (R = r.shouldForwardProp ? function(x, g, A) {
1859
- return e.shouldForwardProp(x, g, A) && r.shouldForwardProp(x, g, A);
1860
- } : e.shouldForwardProp);
1861
- var E, k = new Qn(t, w, n ? e.componentStyle : void 0), _ = k.isStatic && l.length === 0, j = function(x, g) {
1862
- return (function(A, p, U, de) {
1863
- var te = A.attrs, ce = A.componentStyle, M = A.defaultProps, xe = A.foldedComponentIds, re = A.shouldForwardProp, J = A.styledComponentId, ne = A.target, K = (function(D, s, V) {
1864
- D === void 0 && (D = Le);
1865
- var y = je({}, s, { theme: D }), G = {};
1866
- return V.forEach((function(N) {
1867
- var H, h, oe, ae = N;
1868
- for (H in Xe(ae) && (ae = ae(y)), ae) y[H] = G[H] = H === "className" ? (h = G[H], oe = ae[H], h && oe ? h + " " + oe : h || oe) : ae[H];
1869
- })), [y, G];
1870
- })(fo(p, Je(gr), M) || Le, p, te), Se = K[0], Q = K[1], pe = (function(D, s, V, y) {
1871
- var G = oo(), N = io(), H = s ? D.generateAndInjectStyles(Le, G, N) : D.generateAndInjectStyles(V, G, N);
1872
- return process.env.NODE_ENV !== "production" && !s && y && y(H), H;
1873
- })(ce, de, Se, process.env.NODE_ENV !== "production" ? A.warnTooManyClasses : void 0), Pe = U, Ee = Q.$as || p.$as || Q.as || p.as || ne, Re = nt(Ee), P = Q !== p ? je({}, p, {}, Q) : p, S = {};
1874
- for (var T in P) T[0] !== "$" && T !== "as" && (T === "forwardedAs" ? S.as = P[T] : (re ? re(T, Ut, Ee) : !Re || Ut(T)) && (S[T] = P[T]));
1875
- return p.style && Q.style !== p.style && (S.style = je({}, p.style, {}, Q.style)), S.className = Array.prototype.concat(xe, J, pe !== J ? pe : null, p.className, Q.className).filter(Boolean).join(" "), S.ref = Pe, gn(Ee, S);
1876
- })(E, x, g, _);
1877
- };
1878
- return j.displayName = v, (E = Ue.forwardRef(j)).attrs = L, E.componentStyle = k, E.displayName = v, E.shouldForwardProp = R, E.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : it, E.styledComponentId = w, E.target = n ? e.target : e, E.withComponent = function(x) {
1879
- var g = r.componentId, A = (function(U, de) {
1880
- if (U == null) return {};
1881
- var te, ce, M = {}, xe = Object.keys(U);
1882
- for (ce = 0; ce < xe.length; ce++) te = xe[ce], de.indexOf(te) >= 0 || (M[te] = U[te]);
1883
- return M;
1884
- })(r, ["componentId"]), p = g && g + "-" + (nt(x) ? x : yt(xt(x)));
1885
- return yr(x, je({}, A, { attrs: L, componentId: p }), t);
1886
- }, Object.defineProperty(E, "defaultProps", { get: function() {
1762
+ b.displayName = g;
1763
+ var h = Re.forwardRef(b);
1764
+ return h.attrs = v, h.componentStyle = P, h.displayName = g, h.shouldForwardProp = E, h.foldedComponentIds = r ? Te(i.foldedComponentIds, i.styledComponentId) : "", h.styledComponentId = w, h.target = r ? i.target : e, Object.defineProperty(h, "defaultProps", { get: function() {
1887
1765
  return this._foldedDefaultProps;
1888
- }, set: function(x) {
1889
- this._foldedDefaultProps = n ? vr({}, e.defaultProps, x) : x;
1890
- } }), process.env.NODE_ENV !== "production" && (uo(v, w), E.warnTooManyClasses = /* @__PURE__ */ (function(x, g) {
1891
- var A = {}, p = !1;
1892
- return function(U) {
1893
- if (!p && (A[U] = !0, Object.keys(A).length >= 200)) {
1894
- var de = g ? ' with the id of "' + g + '"' : "";
1895
- console.warn("Over 200 classes were generated for component " + x + de + `.
1896
- Consider using the attrs method, together with a style object for frequently changed styles.
1766
+ }, set: function(L) {
1767
+ this._foldedDefaultProps = r ? (function(D) {
1768
+ for (var C = [], x = 1; x < arguments.length; x++) C[x - 1] = arguments[x];
1769
+ for (var W = 0, J = C; W < J.length; W++) zt(D, J[W], !0);
1770
+ return D;
1771
+ })({}, i.defaultProps, L) : L;
1772
+ } }), process.env.NODE_ENV !== "production" && (Xo(g, w), h.warnTooManyClasses = /* @__PURE__ */ (function(L, D) {
1773
+ var C = {}, x = !1;
1774
+ return function(W) {
1775
+ if (!x && (C[W] = !0, Object.keys(C).length >= 200)) {
1776
+ var J = D ? ' with the id of "'.concat(D, '"') : "";
1777
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(L).concat(J, `.
1778
+ `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1897
1779
  Example:
1898
1780
  const Component = styled.div.attrs(props => ({
1899
1781
  style: {
@@ -1901,73 +1783,90 @@ Example:
1901
1783
  },
1902
1784
  }))\`width: 100%;\`
1903
1785
 
1904
- <Component />`), p = !0, A = {};
1786
+ <Component />`), x = !0, C = {};
1905
1787
  }
1906
1788
  };
1907
- })(v, w)), Object.defineProperty(E, "toString", { value: function() {
1908
- return "." + E.styledComponentId;
1909
- } }), i && On(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), E;
1910
- }
1911
- var Y = function(e) {
1912
- return (function r(t, n, i) {
1913
- if (i === void 0 && (i = Le), !Rt.isValidElementType(n)) return We(1, String(n));
1914
- var c = function() {
1915
- return t(n, i, st.apply(void 0, arguments));
1916
- };
1917
- return c.withConfig = function(l) {
1918
- return r(t, n, je({}, i, {}, l));
1919
- }, c.attrs = function(l) {
1920
- return r(t, n, je({}, i, { attrs: Array.prototype.concat(i.attrs, l).filter(Boolean) }));
1921
- }, c;
1922
- })(yr, e);
1789
+ })(g, w)), Qt(h, function() {
1790
+ return ".".concat(h.styledComponentId);
1791
+ }), a && ir(h, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), h;
1792
+ }
1793
+ function Dn(e, t) {
1794
+ for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]);
1795
+ return n;
1796
+ }
1797
+ var An = function(e) {
1798
+ return Object.assign(e, { isCss: !0 });
1923
1799
  };
1924
- ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach((function(e) {
1925
- Y[e] = Y(e);
1926
- }));
1927
- function go(e) {
1800
+ function mt(e) {
1801
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1802
+ if (He(e) || ze(e)) return An(Pe(Dn(Tt, je([e], t, !0))));
1803
+ var r = e;
1804
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Pe(r) : An(Pe(Dn(r, t)));
1805
+ }
1806
+ function Wt(e, t, n) {
1807
+ if (n === void 0 && (n = $e), !t) throw We(1, t);
1808
+ var r = function(i) {
1809
+ for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
1810
+ return e(t, n, mt.apply(void 0, je([i], a, !1)));
1811
+ };
1812
+ return r.attrs = function(i) {
1813
+ return Wt(e, t, ee(ee({}, n), { attrs: Array.prototype.concat(n.attrs, i).filter(Boolean) }));
1814
+ }, r.withConfig = function(i) {
1815
+ return Wt(e, t, ee(ee({}, n), i));
1816
+ }, r;
1817
+ }
1818
+ var pr = function(e) {
1819
+ return Wt(_i, e);
1820
+ }, _ = pr;
1821
+ Nt.forEach(function(e) {
1822
+ _[e] = pr(e);
1823
+ });
1824
+ function Ii(e) {
1825
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1928
1826
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1929
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
1930
- var i = st.apply(void 0, [e].concat(t)).join(""), c = mr(i);
1931
- return new hr(c, i);
1827
+ var r = Ht(mt.apply(void 0, je([e], t, !1))), i = er(r);
1828
+ return new Ut(i, r);
1932
1829
  }
1933
1830
  process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1934
1831
  Perhaps you're looking to import 'styled-components/native'?
1935
- Read more about this at https://www.styled-components.com/docs/basics#react-native`), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, window["__styled-components-init__"] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1832
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1833
+ var st = "__sc-".concat(Le, "__");
1834
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[st] || (window[st] = 0), window[st] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1936
1835
 
1937
- See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"] += 1);
1938
- function yo({
1836
+ See https://s-c.sh/2BAXzed for more info.`), window[st] += 1);
1837
+ function Di({
1939
1838
  children: e,
1940
- eventFinishedMessage: r,
1941
- eventNotStartedMessage: t,
1942
- eventStartingSoonMessage: n
1839
+ eventFinishedMessage: t,
1840
+ eventNotStartedMessage: n,
1841
+ eventStartingSoonMessage: r
1943
1842
  }) {
1944
- const i = me((f) => f.startDate), c = me((f) => f.endDate), l = Date.now(), d = l < i.getTime(), u = l > c.getTime();
1945
- return Cn(5e3), d ? /* @__PURE__ */ a.jsx(
1946
- wo,
1843
+ const i = U((d) => d.startDate), a = U((d) => d.endDate), l = Date.now(), u = l < i.getTime(), s = l > a.getTime();
1844
+ return ko(5e3), u ? /* @__PURE__ */ c.jsx(
1845
+ Ai,
1947
1846
  {
1948
1847
  startDate: i,
1949
- title: t || "Event has not started yet.",
1950
- message: n || "Starting in few seconds..."
1848
+ title: n || "Event has not started yet.",
1849
+ message: r || "Starting in few seconds..."
1951
1850
  }
1952
- ) : u ? /* @__PURE__ */ a.jsx(bo, { title: r || "Event has finished." }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
1851
+ ) : s ? /* @__PURE__ */ c.jsx(Oi, { title: t || "Event has finished." }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
1953
1852
  }
1954
- function wo({ startDate: e, title: r, message: t }) {
1955
- const n = e.getTime() - Date.now(), i = Math.floor(n / (1e3 * 60 * 60)), c = Math.floor(
1956
- n % (1e3 * 60 * 60) / (1e3 * 60)
1853
+ function Ai({ startDate: e, title: t, message: n }) {
1854
+ const r = e.getTime() - Date.now(), i = Math.floor(r / (1e3 * 60 * 60)), a = Math.floor(
1855
+ r % (1e3 * 60 * 60) / (1e3 * 60)
1957
1856
  );
1958
- return i || c ? /* @__PURE__ */ a.jsxs(Tt, { children: [
1959
- /* @__PURE__ */ a.jsx(Pt, { children: r }),
1960
- /* @__PURE__ */ a.jsxs(xo, { children: [
1857
+ return i || a ? /* @__PURE__ */ c.jsxs(Yt, { children: [
1858
+ /* @__PURE__ */ c.jsx(qt, { children: t }),
1859
+ /* @__PURE__ */ c.jsxs(Fi, { children: [
1961
1860
  "(",
1962
- i > 0 ? `${i}h ${c}m` : `${c}m`,
1861
+ i > 0 ? `${i}h ${a}m` : `${a}m`,
1963
1862
  ")"
1964
1863
  ] })
1965
- ] }) : /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(Pt, { children: t }) });
1864
+ ] }) : /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: n }) });
1966
1865
  }
1967
- function bo({ title: e }) {
1968
- return /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(Pt, { children: e }) });
1866
+ function Oi({ title: e }) {
1867
+ return /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: e }) });
1969
1868
  }
1970
- const Tt = Y.div`
1869
+ const Yt = _.div`
1971
1870
  position: absolute;
1972
1871
  top: 0;
1973
1872
  left: 0;
@@ -1980,14 +1879,14 @@ const Tt = Y.div`
1980
1879
  justify-content: center;
1981
1880
  color: black;
1982
1881
  background: #f7e406;
1983
- `, Pt = Y.h3`
1882
+ `, qt = _.h3`
1984
1883
  margin: 0;
1985
1884
  padding: 0.5rem 0;
1986
1885
  font-size: 1.5rem;
1987
1886
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
1988
1887
  "Helvetica Neue", Arial, sans-serif;
1989
1888
  font-weight: 500;
1990
- `, xo = Y.p`
1889
+ `, Fi = _.p`
1991
1890
  margin: 0;
1992
1891
  height: 1.25rem;
1993
1892
  font-size: 1rem;
@@ -1995,22 +1894,22 @@ const Tt = Y.div`
1995
1894
  "Helvetica Neue", Arial, sans-serif;
1996
1895
  font-weight: 500;
1997
1896
  `;
1998
- function So() {
1999
- return /* @__PURE__ */ a.jsx(
1897
+ function Mi() {
1898
+ return /* @__PURE__ */ c.jsx(
2000
1899
  "svg",
2001
1900
  {
2002
1901
  xmlns: "http://www.w3.org/2000/svg",
2003
1902
  viewBox: "0 0 24 24",
2004
1903
  fill: "currentColor",
2005
- children: /* @__PURE__ */ a.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
1904
+ children: /* @__PURE__ */ c.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
2006
1905
  }
2007
1906
  );
2008
1907
  }
2009
- const Ie = lt(
2010
- ({ shape: e = "circle", ...r }, t) => /* @__PURE__ */ a.jsx(Co, { ref: t, $shape: e, ...r })
1908
+ const be = yt(
1909
+ ({ shape: e = "circle", ...t }, n) => /* @__PURE__ */ c.jsx(Vi, { ref: n, $shape: e, ...t })
2011
1910
  );
2012
- Ie.displayName = "PlayerButton";
2013
- const Co = Y.button`
1911
+ be.displayName = "PlayerButton";
1912
+ const Vi = _.button`
2014
1913
  margin: 0;
2015
1914
  display: flex;
2016
1915
  align-items: center;
@@ -2048,83 +1947,83 @@ const Co = Y.button`
2048
1947
  cursor: not-allowed;
2049
1948
  }
2050
1949
 
2051
- ${({ $shape: e }) => e === "circle" && st`
1950
+ ${({ $shape: e }) => e === "circle" && mt`
2052
1951
  padding: 0;
2053
1952
  width: 2rem;
2054
1953
  height: 2rem;
2055
1954
  `}
2056
1955
 
2057
- ${({ $shape: e }) => e === "square" && st`
1956
+ ${({ $shape: e }) => e === "square" && mt`
2058
1957
  padding: 0.25rem 0.5rem;
2059
1958
  `}
2060
1959
  `;
2061
- function Eo({ message: e, ...r }) {
2062
- const t = me((c) => c.delay), n = me((c) => c.setDelay), i = () => n(0);
2063
- return t ? /* @__PURE__ */ a.jsxs(Ie, { onClick: i, shape: "square", ...r, children: [
2064
- /* @__PURE__ */ a.jsx("span", { children: e || "Live" }),
2065
- /* @__PURE__ */ a.jsx(So, {})
1960
+ function Ni({ message: e, ...t }) {
1961
+ const n = U((a) => a.delay), r = U((a) => a.setDelay), i = () => r(0);
1962
+ return n ? /* @__PURE__ */ c.jsxs(be, { onClick: i, shape: "square", ...t, children: [
1963
+ /* @__PURE__ */ c.jsx("span", { children: e || "Live" }),
1964
+ /* @__PURE__ */ c.jsx(Mi, {})
2066
1965
  ] }) : null;
2067
1966
  }
2068
- function wr() {
2069
- return /* @__PURE__ */ a.jsx(
1967
+ function hr() {
1968
+ return /* @__PURE__ */ c.jsx(
2070
1969
  "svg",
2071
1970
  {
2072
1971
  xmlns: "http://www.w3.org/2000/svg",
2073
1972
  viewBox: "0 0 24 24",
2074
1973
  fill: "currentColor",
2075
- children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1974
+ children: /* @__PURE__ */ c.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
2076
1975
  }
2077
1976
  );
2078
1977
  }
2079
- function br() {
2080
- return /* @__PURE__ */ a.jsx(
1978
+ function mr() {
1979
+ return /* @__PURE__ */ c.jsx(
2081
1980
  "svg",
2082
1981
  {
2083
1982
  xmlns: "http://www.w3.org/2000/svg",
2084
1983
  viewBox: "0 0 24 24",
2085
1984
  fill: "currentColor",
2086
- children: /* @__PURE__ */ a.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
1985
+ children: /* @__PURE__ */ c.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
2087
1986
  }
2088
1987
  );
2089
1988
  }
2090
- function To(e, r, t) {
2091
- const n = {
1989
+ function $i(e, t, n) {
1990
+ const r = {
2092
1991
  days: 86400,
2093
1992
  hours: 3600,
2094
1993
  minutes: 60,
2095
1994
  seconds: 1,
2096
1995
  milliseconds: 1e-3
2097
1996
  };
2098
- return e * (n[r] / n[t]);
1997
+ return e * (r[t] / r[n]);
2099
1998
  }
2100
- function Po(e) {
2101
- return To(e, "milliseconds", "seconds");
1999
+ function Hi(e) {
2000
+ return $i(e, "milliseconds", "seconds");
2102
2001
  }
2103
2002
  const Be = (e) => {
2104
- const r = Math.floor(e / 60), t = Math.floor(e % 60);
2105
- return `${r.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
2003
+ const t = Math.floor(e / 60), n = Math.floor(e % 60);
2004
+ return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
2106
2005
  };
2107
- function Ro(e) {
2108
- const r = typeof window < "u" && window.navigator?.userAgent || "";
2109
- return e.test(r);
2006
+ function zi(e) {
2007
+ const t = typeof window < "u" && window.navigator?.userAgent || "";
2008
+ return e.test(t);
2110
2009
  }
2111
- const xr = Ro(/iPhone|iPad|iPod/i);
2112
- function ko() {
2010
+ const gr = zi(/iPhone|iPad|iPod/i);
2011
+ function Bi() {
2113
2012
  const e = document;
2114
2013
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
2115
2014
  }
2116
- function _o(e) {
2015
+ function Ui(e) {
2117
2016
  e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
2118
2017
  }
2119
- function Ao(e) {
2018
+ function Wi(e) {
2120
2019
  e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
2121
2020
  }
2122
- function jo(e, r) {
2123
- return e.addEventListener("fullscreenchange", r), e.addEventListener("webkitfullscreenchange", r), e.addEventListener("mozfullscreenchange", r), e.addEventListener("MSFullscreenChange", r), () => {
2124
- e.removeEventListener("fullscreenchange", r), e.removeEventListener("webkitfullscreenchange", r), e.removeEventListener("mozfullscreenchange", r), e.removeEventListener("MSFullscreenChange", r);
2021
+ function Yi(e, t) {
2022
+ return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
2023
+ e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
2125
2024
  };
2126
2025
  }
2127
- const Lo = (e, r) => ({
2026
+ const qi = (e, t) => ({
2128
2027
  currentTime: 0,
2129
2028
  duration: 0,
2130
2029
  isEnded: !1,
@@ -2141,11 +2040,11 @@ const Lo = (e, r) => ({
2141
2040
  destroy: () => {
2142
2041
  },
2143
2042
  handleDurationChange: () => {
2144
- const t = r().techRef.current;
2145
- t && e({ duration: t.duration });
2043
+ const n = t().techRef.current;
2044
+ n && e({ duration: n.duration });
2146
2045
  },
2147
2046
  handleEnd: () => {
2148
- r().techRef.current && e({
2047
+ t().techRef.current && e({
2149
2048
  isEnded: !0,
2150
2049
  isLoading: !1,
2151
2050
  isMetaLoaded: !1,
@@ -2153,18 +2052,18 @@ const Lo = (e, r) => ({
2153
2052
  });
2154
2053
  },
2155
2054
  handleLoadedMetadata: () => {
2156
- const t = r().techRef.current;
2157
- t && (t.loop = r().isLoop, t.volume = t.muted ? 0 : 1, r().startTime !== -1 && (t.currentTime = r().startTime), e({
2158
- currentTime: r().startTime !== -1 ? r().startTime : t.currentTime,
2159
- duration: t.duration,
2055
+ const n = t().techRef.current;
2056
+ n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
2057
+ currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
2058
+ duration: n.duration,
2160
2059
  startTime: -1,
2161
2060
  isMetaLoaded: !0,
2162
- volume: t.muted ? 0 : 100
2061
+ volume: n.muted ? 0 : 100
2163
2062
  }));
2164
2063
  },
2165
2064
  handleLoadStart: () => {
2166
- const t = r().techRef.current;
2167
- t && (e({ isReady: !0 }), t.play().then(() => {
2065
+ const n = t().techRef.current;
2066
+ n && (e({ isReady: !0 }), n.play().then(() => {
2168
2067
  e({
2169
2068
  isEnded: !1,
2170
2069
  isLoading: !1,
@@ -2173,7 +2072,7 @@ const Lo = (e, r) => ({
2173
2072
  pauseTime: 0
2174
2073
  });
2175
2074
  }).catch(
2176
- (n) => e(() => (console.info("Player failed to autoplay", n), {
2075
+ (r) => e(() => (console.info("Player failed to autoplay", r), {
2177
2076
  isStarted: !1,
2178
2077
  isEnded: !1,
2179
2078
  isLoading: !1,
@@ -2193,134 +2092,134 @@ const Lo = (e, r) => ({
2193
2092
  handleSeeked: () => e({ isLoading: !1 }),
2194
2093
  handleSeeking: () => e({ isLoading: !0 }),
2195
2094
  handleTimeUpdate: () => {
2196
- const t = r().techRef.current;
2197
- t && e({ currentTime: t.currentTime });
2095
+ const n = t().techRef.current;
2096
+ n && e({ currentTime: n.currentTime });
2198
2097
  },
2199
2098
  handleWaiting: () => e({ isLoading: !0 }),
2200
2099
  pause: () => {
2201
- const t = r().techRef.current;
2202
- t && (t.pause(), e({
2100
+ const n = t().techRef.current;
2101
+ n && (n.pause(), e({
2203
2102
  isEnded: !1,
2204
2103
  isPlaying: !1,
2205
2104
  pauseTime: Date.now()
2206
2105
  }));
2207
2106
  },
2208
- pauseTimeDiff: () => Po(Date.now() - r().pauseTime),
2107
+ pauseTimeDiff: () => parseInt(Hi(Date.now() - t().pauseTime).toFixed(0)),
2209
2108
  play: () => {
2210
- const t = r().techRef.current;
2211
- t && (t.play(), e({
2109
+ const n = t().techRef.current;
2110
+ n && (n.play(), e({
2212
2111
  isEnded: !1,
2213
2112
  isPlaying: !0,
2214
2113
  isStarted: !0,
2215
2114
  pauseTime: 0
2216
2115
  }));
2217
2116
  },
2218
- seek: (t) => {
2219
- const n = r().techRef.current;
2220
- n && (n.currentTime = t, (n.paused || n.ended) && n.play(), e({
2117
+ seek: (n) => {
2118
+ const r = t().techRef.current;
2119
+ r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
2221
2120
  seekTime: -1,
2222
- currentTime: t,
2121
+ currentTime: n,
2223
2122
  isStarted: !0,
2224
2123
  isEnded: !1,
2225
2124
  isPlaying: !0
2226
2125
  }));
2227
2126
  },
2228
- setIsLoading: (t) => e({ isLoading: t }),
2229
- setIsLoop: (t) => {
2230
- const n = r().techRef.current;
2231
- n && (n.loop = t, e({ isLoop: t }));
2127
+ setIsLoading: (n) => e({ isLoading: n }),
2128
+ setIsLoop: (n) => {
2129
+ const r = t().techRef.current;
2130
+ r && (r.loop = n, e({ isLoop: n }));
2232
2131
  },
2233
- setStartTime: (t) => e({ startTime: t }),
2234
- setVolume: (t) => {
2235
- const n = r().techRef.current;
2236
- n && (n.muted = t === 0, n.volume = t / 100, e({ volume: t }));
2132
+ setStartTime: (n) => e({ startTime: n }),
2133
+ setVolume: (n) => {
2134
+ const r = t().techRef.current;
2135
+ r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
2237
2136
  },
2238
2137
  stop: () => {
2239
- r().techRef.current && e({
2138
+ t().techRef.current && e({
2240
2139
  isPlaying: !1,
2241
2140
  isLoading: !1
2242
2141
  });
2243
2142
  }
2244
- }), Io = (e) => ({
2143
+ }), Zi = (e) => ({
2245
2144
  idleLocks: /* @__PURE__ */ new Set(),
2246
- addIdleLock: (r) => e((t) => ({
2247
- idleLocks: new Set(t.idleLocks).add(r)
2145
+ addIdleLock: (t) => e((n) => ({
2146
+ idleLocks: new Set(n.idleLocks).add(t)
2248
2147
  })),
2249
- removeIdleLock: (r) => e((t) => {
2250
- const n = new Set(t.idleLocks);
2251
- return n.delete(r), { idleLocks: n };
2148
+ removeIdleLock: (t) => e((n) => {
2149
+ const r = new Set(n.idleLocks);
2150
+ return r.delete(t), { idleLocks: r };
2252
2151
  })
2253
- }), Oo = (e) => ({
2152
+ }), Gi = (e) => ({
2254
2153
  level: null,
2255
2154
  levels: null,
2256
- setLevels: (r) => e({ levels: r }),
2257
- setLevel: (r) => e({ level: r })
2258
- }), Do = (e, r) => ({
2155
+ setLevels: (t) => e({ levels: t }),
2156
+ setLevel: (t) => e({ level: t })
2157
+ }), Xi = (e, t) => ({
2259
2158
  isFullscreen: !1,
2260
2159
  isFullscreenReady: !1,
2261
2160
  exitFullscreen: () => {
2262
- Ao(document), e({ isFullscreen: !1 });
2161
+ Wi(document), e({ isFullscreen: !1 });
2263
2162
  },
2264
2163
  requestFullscreen: () => {
2265
- const t = r().techRef.current, n = r().containerRef.current;
2266
- if (!t || !n) return;
2267
- const i = xr ? t : n;
2268
- i && _o(i), e({ isFullscreen: !0 });
2164
+ const n = t().techRef.current, r = t().containerRef.current;
2165
+ if (!n || !r) return;
2166
+ const i = gr ? n : r;
2167
+ i && Ui(i), e({ isFullscreen: !0 });
2269
2168
  },
2270
- setIsFullscreen: (t) => e({ isFullscreen: t }),
2271
- setIsFullscreenReady: (t) => e({ isFullscreenReady: t })
2272
- }), Mo = (e) => () => ({
2169
+ setIsFullscreen: (n) => e({ isFullscreen: n }),
2170
+ setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
2171
+ }), Ji = (e) => () => ({
2273
2172
  ...e
2274
- }), Fo = (e, r) => ir()((...t) => ({
2275
- ...Lo(...t),
2276
- ...Io(...t),
2277
- ...Do(...t),
2278
- ...Oo(...t),
2279
- ...Mo({ techRef: e, containerRef: r })(...t)
2280
- })), Sr = or(null);
2281
- function No({ children: e }) {
2282
- const r = ve(null), t = ve(null), n = ve(null);
2283
- return r.current || (r.current = Fo(t, n)), /* @__PURE__ */ a.jsx(Sr.Provider, { value: r.current, children: e });
2284
- }
2285
- const b = (e) => {
2286
- const r = Je(Sr);
2287
- if (!r)
2173
+ }), Ki = (e, t) => $n()((...n) => ({
2174
+ ...qi(...n),
2175
+ ...Zi(...n),
2176
+ ...Xi(...n),
2177
+ ...Gi(...n),
2178
+ ...Ji({ techRef: e, containerRef: t })(...n)
2179
+ })), yr = Nn(null);
2180
+ function Qi({ children: e }) {
2181
+ const t = Y(null), n = Y(null), r = Y(null);
2182
+ return t.current || (t.current = Ki(n, r)), /* @__PURE__ */ c.jsx(yr.Provider, { value: t.current, children: e });
2183
+ }
2184
+ const m = (e) => {
2185
+ const t = Zt(yr);
2186
+ if (!t)
2288
2187
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
2289
- return ar(r, e);
2188
+ return Hn(t, e);
2290
2189
  };
2291
- function Vo() {
2292
- const e = b((u) => u.isPlaying), r = b((u) => u.pause), t = b((u) => u.pauseTime), n = b((u) => u.pauseTimeDiff), i = b((u) => u.play), c = me((u) => u.delay), l = me((u) => u.setDelay), d = () => {
2293
- e ? r() : (t && l(c + n()), i());
2190
+ function es() {
2191
+ const e = m((s) => s.isPlaying), t = m((s) => s.pause), n = m((s) => s.pauseTime), r = m((s) => s.pauseTimeDiff), i = m((s) => s.play), a = U((s) => s.delay), l = U((s) => s.setDelay), u = () => {
2192
+ e ? t() : (n && l(a + r()), i());
2294
2193
  };
2295
- return /* @__PURE__ */ a.jsx(Ie, { onClick: d, children: e ? /* @__PURE__ */ a.jsx(wr, {}) : /* @__PURE__ */ a.jsx(br, {}) });
2194
+ return /* @__PURE__ */ c.jsx(be, { onClick: u, children: e ? /* @__PURE__ */ c.jsx(hr, {}) : /* @__PURE__ */ c.jsx(mr, {}) });
2296
2195
  }
2297
- function Cr({
2196
+ function vr({
2298
2197
  className: e,
2299
- onClick: r,
2300
- ...t
2198
+ onClick: t,
2199
+ ...n
2301
2200
  }) {
2302
- const n = ve(null), i = b((w) => w.exitFullscreen), c = b((w) => w.isFullscreen), l = b((w) => w.requestFullscreen), d = (w) => {
2303
- v() ? (f(), c ? i() : l()) : u(w);
2304
- }, u = (w) => {
2305
- n.current = window.setTimeout(() => {
2306
- r?.(w), f();
2201
+ const r = Y(null), i = m((g) => g.exitFullscreen), a = m((g) => g.isFullscreen), l = m((g) => g.requestFullscreen), u = (g) => {
2202
+ p() ? (d(), a ? i() : l()) : s(g);
2203
+ }, s = (g) => {
2204
+ r.current = window.setTimeout(() => {
2205
+ t?.(g), d();
2307
2206
  }, 200);
2308
- }, f = () => {
2309
- n.current !== null && (window.clearTimeout(n.current), n.current = null);
2310
- }, v = () => n.current !== null;
2311
- return be(() => () => {
2312
- f();
2313
- }, []), /* @__PURE__ */ a.jsx(
2314
- $o,
2207
+ }, d = () => {
2208
+ r.current !== null && (window.clearTimeout(r.current), r.current = null);
2209
+ }, p = () => r.current !== null;
2210
+ return te(() => () => {
2211
+ d();
2212
+ }, []), /* @__PURE__ */ c.jsx(
2213
+ ts,
2315
2214
  {
2316
- onClick: d,
2215
+ onClick: u,
2317
2216
  className: e,
2318
2217
  "aria-label": "Player playback indicator",
2319
- ...t
2218
+ ...n
2320
2219
  }
2321
2220
  );
2322
2221
  }
2323
- const $o = Y.button`
2222
+ const ts = _.button`
2324
2223
  position: absolute;
2325
2224
  top: 0;
2326
2225
  left: 0;
@@ -2339,17 +2238,17 @@ const $o = Y.button`
2339
2238
  outline: none;
2340
2239
  }
2341
2240
  `;
2342
- function Ho() {
2343
- const e = b((n) => n.isPlaying), r = b((n) => n.play), t = () => {
2344
- e || r();
2241
+ function ns() {
2242
+ const e = m((s) => s.isPlaying), t = m((s) => s.pause), n = m((s) => s.pauseTime), r = m((s) => s.pauseTimeDiff), i = m((s) => s.play), a = U((s) => s.delay), l = U((s) => s.setDelay), u = () => {
2243
+ e ? t() : (n && l(a + r()), i());
2345
2244
  };
2346
- return /* @__PURE__ */ a.jsx(Cr, { onClick: t });
2245
+ return /* @__PURE__ */ c.jsx(vr, { onClick: u });
2347
2246
  }
2348
- const Er = Y.div`
2247
+ const wr = _.div`
2349
2248
  position: relative;
2350
2249
  width: 100%;
2351
2250
  margin-bottom: -0.25rem;
2352
- `, Tr = Y.div`
2251
+ `, br = _.div`
2353
2252
  position: absolute;
2354
2253
  bottom: 1.75rem;
2355
2254
  left: 0;
@@ -2360,7 +2259,7 @@ const Er = Y.div`
2360
2259
  opacity: ${({ $isVisible: e }) => e ? 1 : 0};
2361
2260
  transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
2362
2261
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
2363
- `, Pr = Y.p`
2262
+ `, xr = _.p`
2364
2263
  margin: 0;
2365
2264
  padding: 0.25rem;
2366
2265
  font-variant-numeric: tabular-nums;
@@ -2372,11 +2271,11 @@ const Er = Y.div`
2372
2271
  color: white;
2373
2272
  background: rgba(0, 0, 0, 0.8);
2374
2273
  border-radius: 1rem;
2375
- `, ft = lt(({ max: e = 100, min: r = 0, ...t }, n) => /* @__PURE__ */ a.jsxs(
2376
- zo,
2274
+ `, Et = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */ c.jsxs(
2275
+ rs,
2377
2276
  {
2378
- ref: n,
2379
- min: r,
2277
+ ref: r,
2278
+ min: t,
2380
2279
  max: e,
2381
2280
  "aria-label": "Player progress",
2382
2281
  onKeyDown: (i) => (
@@ -2384,15 +2283,15 @@ const Er = Y.div`
2384
2283
  // when the slider is focused by a click
2385
2284
  i.preventDefault()
2386
2285
  ),
2387
- ...t,
2286
+ ...n,
2388
2287
  children: [
2389
- /* @__PURE__ */ a.jsx(Yo, { children: /* @__PURE__ */ a.jsx(Bo, {}) }),
2390
- /* @__PURE__ */ a.jsx(Uo, {})
2288
+ /* @__PURE__ */ c.jsx(os, { children: /* @__PURE__ */ c.jsx(is, {}) }),
2289
+ /* @__PURE__ */ c.jsx(ss, {})
2391
2290
  ]
2392
2291
  }
2393
2292
  ));
2394
- ft.displayName = "PlayerSlider";
2395
- const zo = Y(ut.Root)`
2293
+ Et.displayName = "PlayerSlider";
2294
+ const rs = _(vt.Root)`
2396
2295
  position: relative;
2397
2296
  display: flex;
2398
2297
  align-items: center;
@@ -2406,20 +2305,20 @@ const zo = Y(ut.Root)`
2406
2305
  cursor: not-allowed;
2407
2306
  opacity: 0.5;
2408
2307
  }
2409
- `, Yo = Y(ut.Track)`
2308
+ `, os = _(vt.Track)`
2410
2309
  position: relative;
2411
2310
  height: 0.25rem;
2412
2311
  flex-grow: 1;
2413
2312
  background: rgba(255, 255, 255, 0.2);
2414
2313
  border-radius: 1rem;
2415
2314
  overflow: hidden;
2416
- `, Bo = Y(ut.Range)`
2315
+ `, is = _(vt.Range)`
2417
2316
  position: absolute;
2418
2317
  height: 100%;
2419
2318
  background: #f7e406;
2420
2319
  transition: width 0.2s ease-in-out;
2421
2320
  border-radius: 1rem;
2422
- `, Uo = Y(ut.Thumb)`
2321
+ `, ss = _(vt.Thumb)`
2423
2322
  display: block;
2424
2323
  width: 0.875rem;
2425
2324
  height: 0.875rem;
@@ -2443,106 +2342,106 @@ const zo = Y(ut.Root)`
2443
2342
  opacity: 0.5;
2444
2343
  }
2445
2344
  `;
2446
- function ct(e) {
2447
- const r = e.getBoundingClientRect();
2345
+ function gt(e) {
2346
+ const t = e.getBoundingClientRect();
2448
2347
  return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
2449
- left: r.left * 100,
2450
- right: r.right * 100,
2451
- top: r.top * 100,
2452
- bottom: r.bottom * 100,
2453
- width: r.width * 100,
2454
- height: r.height * 100
2455
- } : r;
2456
- }
2457
- const Rr = (e, r = 0) => parseInt(
2458
- Math.max(0, (Date.now() - (e + r * 1e3)) / 1e3).toFixed(0)
2459
- ), kr = (e, r) => Math.max(0, (Date.now() - e - r * 1e3) / 1e3), _r = (e, r) => Math.max(0, (r - e) / 1e3), Wo = (e, r = 0) => {
2460
- const n = r < 0 ? 0 : r, i = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
2461
- return `${parseFloat((e / Math.pow(1024, c)).toFixed(n))}${i[c]}`;
2348
+ left: t.left * 100,
2349
+ right: t.right * 100,
2350
+ top: t.top * 100,
2351
+ bottom: t.bottom * 100,
2352
+ width: t.width * 100,
2353
+ height: t.height * 100
2354
+ } : t;
2355
+ }
2356
+ const Sr = (e, t = 0) => parseInt(
2357
+ Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
2358
+ ), Cr = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), kr = (e, t) => Math.max(0, (t - e) / 1e3), as = (e, t = 0) => {
2359
+ const r = t < 0 ? 0 : t, i = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], a = Math.floor(Math.log(e) / Math.log(1024));
2360
+ return `${parseFloat((e / Math.pow(1024, a)).toFixed(r))}${i[a]}`;
2462
2361
  };
2463
- function qo({
2362
+ function cs({
2464
2363
  isAuto: e,
2465
- level: r,
2466
- levels: t
2364
+ level: t,
2365
+ levels: n
2467
2366
  }) {
2468
- const n = t.length, i = [];
2469
- return n > 1 && i.push({
2367
+ const r = n.length, i = [];
2368
+ return r > 1 && i.push({
2470
2369
  sid: "quality-level-auto",
2471
2370
  label: "Auto",
2472
2371
  value: -1,
2473
- selected: e || r === -1
2474
- }), t.sort(function(c, l) {
2475
- const d = c.height || c.bitrate || 0, u = l.height || l.bitrate || 0;
2476
- return d === u ? 0 : d > u ? 1 : -1;
2477
- }), t.map((c) => {
2478
- const { bitrate: l, height: d, index: u } = c;
2372
+ selected: e || t === -1
2373
+ }), n.sort(function(a, l) {
2374
+ const u = a.height || a.bitrate || 0, s = l.height || l.bitrate || 0;
2375
+ return u === s ? 0 : u > s ? 1 : -1;
2376
+ }), n.map((a) => {
2377
+ const { bitrate: l, height: u, index: s } = a;
2479
2378
  i.push({
2480
- sid: `quality-level-${u}`,
2481
- label: d ? `${d}p` : Wo(l),
2482
- value: u,
2483
- selected: n === 1 || !e && u === r
2379
+ sid: `quality-level-${s}`,
2380
+ label: u ? `${u}p` : as(l),
2381
+ value: s,
2382
+ selected: r === 1 || !e && s === t
2484
2383
  });
2485
2384
  }), i;
2486
2385
  }
2487
- const er = "vod-player-progress-bar";
2488
- function Zo() {
2489
- const e = ve(null), r = ve(null), [t, n] = ye(0), [i, c] = ye(0), [l, d] = ye(!1), [u, f] = ye(-1), [v, w] = ye(-1), L = me((M) => M.delay), R = me((M) => M.startTime), E = me((M) => M.endTime), k = me((M) => M.setDelay), _ = b((M) => M.isPlaying), j = b((M) => M.addIdleLock), x = b((M) => M.removeIdleLock), g = he(() => {
2490
- n(kr(R, L)), c(_r(R, E));
2491
- }, [L, E, R]), A = parseFloat(
2492
- (i ? (v !== -1 ? v : t) / i * 100 : 0).toFixed(1)
2493
- ), p = (M) => {
2494
- w(i * (M[0] / 100)), j(er);
2495
- }, U = () => {
2496
- if (v !== -1) {
2497
- const M = Rr(R, v);
2498
- k(M), w(-1), x(er);
2499
- }
2500
- }, de = () => d(!0), te = () => d(!1), ce = he(
2501
- (M) => {
2502
- const xe = e.current, re = r.current;
2503
- if (xe && re) {
2504
- const J = ct(xe), ne = ct(re), K = (M.pageX || M.clientX) - J.left, Se = K / J.width;
2505
- if (Se < 0) return;
2506
- let Q = K - ne.width / 2;
2507
- Q < 0 && (Q = 0), Q > J.width - ne.width && (Q = -1), re.style.left = Q > -1 ? `${Q}px` : "auto", re.style.right = Q > -1 ? "auto" : "0px", f(Se * i);
2386
+ const On = "vod-player-progress-bar";
2387
+ function ls() {
2388
+ const e = Y(null), t = Y(null), [n, r] = X(0), [i, a] = X(0), [l, u] = X(!1), [s, d] = X(-1), [p, g] = X(-1), w = U((I) => I.delay), v = U((I) => I.startTime), E = U((I) => I.endTime), T = U((I) => I.setDelay), M = m((I) => I.isPlaying), P = m((I) => I.addIdleLock), b = m((I) => I.removeIdleLock), h = B(() => {
2389
+ r(Cr(v, w)), a(kr(v, E));
2390
+ }, [w, E, v]), L = parseFloat(
2391
+ (i ? (p !== -1 ? p : n) / i * 100 : 0).toFixed(1)
2392
+ ), D = (I) => {
2393
+ g(i * (I[0] / 100)), P(On);
2394
+ }, C = () => {
2395
+ if (p !== -1) {
2396
+ const I = Sr(v, p);
2397
+ T(I), g(-1), b(On);
2398
+ }
2399
+ }, x = () => u(!0), W = () => u(!1), J = B(
2400
+ (I) => {
2401
+ const _e = e.current, fe = t.current;
2402
+ if (_e && fe) {
2403
+ const q = gt(_e), ne = gt(fe), ue = (I.pageX || I.clientX) - q.left, xe = ue / q.width;
2404
+ if (xe < 0) return;
2405
+ let K = ue - ne.width / 2;
2406
+ K < 0 && (K = 0), K > q.width - ne.width && (K = -1), fe.style.left = K > -1 ? `${K}px` : "auto", fe.style.right = K > -1 ? "auto" : "0px", d(xe * i);
2508
2407
  }
2509
- de();
2408
+ x();
2510
2409
  },
2511
2410
  [i]
2512
2411
  );
2513
- return dt(() => g(), _ ? 1e3 : null), be(() => {
2514
- g();
2515
- }, [g]), /* @__PURE__ */ a.jsxs(Er, { children: [
2516
- /* @__PURE__ */ a.jsx(
2517
- ft,
2412
+ return wt(() => h(), M ? 1e3 : null), te(() => {
2413
+ h();
2414
+ }, [h]), /* @__PURE__ */ c.jsxs(wr, { children: [
2415
+ /* @__PURE__ */ c.jsx(
2416
+ Et,
2518
2417
  {
2519
2418
  ref: e,
2520
- value: [A],
2521
- onPointerLeave: te,
2522
- onPointerDown: te,
2523
- onPointerMove: ce,
2524
- onValueChange: p,
2525
- onValueCommit: U,
2419
+ value: [L],
2420
+ onPointerLeave: W,
2421
+ onPointerDown: W,
2422
+ onPointerMove: J,
2423
+ onValueChange: D,
2424
+ onValueCommit: C,
2526
2425
  step: 0.1
2527
2426
  }
2528
2427
  ),
2529
- /* @__PURE__ */ a.jsx(Tr, { ref: r, $isVisible: l, children: /* @__PURE__ */ a.jsx(Pr, { children: Be(u) }) })
2428
+ /* @__PURE__ */ c.jsx(br, { ref: t, $isVisible: l, children: /* @__PURE__ */ c.jsx(xr, { children: Be(s) }) })
2530
2429
  ] });
2531
2430
  }
2532
- function Ar({ children: e }) {
2533
- return /* @__PURE__ */ a.jsx(No, { children: e });
2431
+ function Tr({ children: e }) {
2432
+ return /* @__PURE__ */ c.jsx(Qi, { children: e });
2534
2433
  }
2535
- function Go({
2434
+ function us({
2536
2435
  children: e,
2537
- startDate: r,
2538
- endDate: t
2436
+ startDate: t,
2437
+ endDate: n
2539
2438
  }) {
2540
- return /* @__PURE__ */ a.jsx(Tn, { startDate: r, endDate: t, children: /* @__PURE__ */ a.jsx(Ar, { children: e }) });
2439
+ return /* @__PURE__ */ c.jsx(Eo, { startDate: t, endDate: n, children: /* @__PURE__ */ c.jsx(Tr, { children: e }) });
2541
2440
  }
2542
- const jr = Y.div`
2441
+ const Er = _.div`
2543
2442
  display: flex;
2544
2443
  align-items: center;
2545
- `, Lr = Y.p`
2444
+ `, Pr = _.p`
2546
2445
  margin: 0;
2547
2446
  padding: 0;
2548
2447
  font-variant-numeric: tabular-nums;
@@ -2550,11 +2449,11 @@ const jr = Y.div`
2550
2449
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
2551
2450
  "Helvetica Neue", Arial, sans-serif;
2552
2451
  font-weight: 500;
2553
- `, Ir = Y(Lr)`
2452
+ `, Rr = _(Pr)`
2554
2453
  margin-right: 0.5rem;
2555
- `, Or = Y(Lr)`
2454
+ `, jr = _(Pr)`
2556
2455
  margin-left: 0.5rem;
2557
- `, Dr = Y.p`
2456
+ `, Lr = _.p`
2558
2457
  margin: 0;
2559
2458
  padding: 0;
2560
2459
  font-size: 0.8125rem;
@@ -2566,69 +2465,69 @@ const jr = Y.div`
2566
2465
  content: "/";
2567
2466
  }
2568
2467
  `;
2569
- function Xo() {
2570
- const [e, r] = ye(0), [t, n] = ye(0), i = b((f) => f.isPlaying), c = me((f) => f.delay), l = me((f) => f.startTime), d = me((f) => f.endTime), u = he(() => {
2571
- r(kr(l, c)), n(_r(l, d));
2572
- }, [c, d, l]);
2573
- return dt(() => u(), i ? 1e3 : null), be(() => {
2574
- u();
2575
- }, [u]), c ? /* @__PURE__ */ a.jsxs(jr, { children: [
2576
- /* @__PURE__ */ a.jsx(Ir, { children: Be(e) }),
2577
- /* @__PURE__ */ a.jsx(Dr, {}),
2578
- /* @__PURE__ */ a.jsx(Or, { children: Be(t) })
2468
+ function ds() {
2469
+ const [e, t] = X(0), [n, r] = X(0), i = m((d) => d.isPlaying), a = U((d) => d.delay), l = U((d) => d.startTime), u = U((d) => d.endTime), s = B(() => {
2470
+ t(Cr(l, a)), r(kr(l, u));
2471
+ }, [a, u, l]);
2472
+ return wt(() => s(), i ? 1e3 : null), te(() => {
2473
+ s();
2474
+ }, [s]), a ? /* @__PURE__ */ c.jsxs(Er, { children: [
2475
+ /* @__PURE__ */ c.jsx(Rr, { children: Be(e) }),
2476
+ /* @__PURE__ */ c.jsx(Lr, {}),
2477
+ /* @__PURE__ */ c.jsx(jr, { children: Be(n) })
2579
2478
  ] }) : null;
2580
2479
  }
2581
- function Jo() {
2582
- return /* @__PURE__ */ a.jsx(
2480
+ function fs() {
2481
+ return /* @__PURE__ */ c.jsx(
2583
2482
  "svg",
2584
2483
  {
2585
2484
  xmlns: "http://www.w3.org/2000/svg",
2586
2485
  viewBox: "0 0 24 24",
2587
2486
  fill: "currentColor",
2588
- children: /* @__PURE__ */ a.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
2487
+ children: /* @__PURE__ */ c.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
2589
2488
  }
2590
2489
  );
2591
2490
  }
2592
- function Ko() {
2593
- const e = me((n) => n.startTime), r = me((n) => n.setDelay), t = () => r(Rr(e));
2594
- return /* @__PURE__ */ a.jsx(Ie, { onClick: t, children: /* @__PURE__ */ a.jsx(Jo, {}) });
2595
- }
2596
- function Qo({ url: e, isLive: r }) {
2597
- const t = ve(null), n = b((R) => R.level), i = b((R) => R.levels), c = b((R) => R.setLevel), l = b((R) => R.setLevels), d = b((R) => R.techRef), u = he(
2598
- (R) => {
2599
- if (t.current && (t.current.nextLevel = R, c(null), i)) {
2600
- const E = i.map((k) => ({
2601
- ...k,
2602
- selected: k.value === R
2491
+ function ps() {
2492
+ const e = U((r) => r.startTime), t = U((r) => r.setDelay), n = () => t(Sr(e));
2493
+ return /* @__PURE__ */ c.jsx(be, { onClick: n, children: /* @__PURE__ */ c.jsx(fs, {}) });
2494
+ }
2495
+ function hs({ url: e, isLive: t }) {
2496
+ const n = Y(null), r = m((v) => v.level), i = m((v) => v.levels), a = m((v) => v.setLevel), l = m((v) => v.setLevels), u = m((v) => v.techRef), s = B(
2497
+ (v) => {
2498
+ if (n.current && (n.current.nextLevel = v, a(null), i)) {
2499
+ const E = i.map((T) => ({
2500
+ ...T,
2501
+ selected: T.value === v
2603
2502
  }));
2604
2503
  l(E);
2605
2504
  }
2606
2505
  },
2607
- [i, c, l, t]
2608
- ), f = he(() => {
2609
- t.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), t.current.loadSource(e));
2610
- }, [e]), v = he(() => {
2611
- if (!t.current) return;
2506
+ [i, a, l, n]
2507
+ ), d = B(() => {
2508
+ n.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), n.current.loadSource(e));
2509
+ }, [e]), p = B(() => {
2510
+ if (!n.current) return;
2612
2511
  console.log("[Player][Event]", "MANIFEST_LOADED");
2613
- const R = t.current.levels, E = t.current.currentLevel, k = t.current.autoLevelEnabled;
2512
+ const v = n.current.levels, E = n.current.currentLevel, T = n.current.autoLevelEnabled;
2614
2513
  l(
2615
- qo({
2616
- levels: R.map((_, j) => {
2617
- const { bitrate: x, height: g, width: A } = _;
2514
+ cs({
2515
+ levels: v.map((M, P) => {
2516
+ const { bitrate: b, height: h, width: L } = M;
2618
2517
  return {
2619
- bitrate: x,
2620
- height: g,
2621
- index: j,
2622
- width: A
2518
+ bitrate: b,
2519
+ height: h,
2520
+ index: P,
2521
+ width: L
2623
2522
  };
2624
2523
  }),
2625
2524
  level: E,
2626
- isAuto: k
2525
+ isAuto: T
2627
2526
  })
2628
2527
  );
2629
- }, [l]), w = he(() => {
2630
- if (!d.current) return;
2631
- const k = r ? {
2528
+ }, [l]), g = B(() => {
2529
+ if (!u.current) return;
2530
+ const T = t ? {
2632
2531
  backBufferLength: 10,
2633
2532
  startLevel: -1
2634
2533
  } : {
@@ -2636,52 +2535,52 @@ function Qo({ url: e, isLive: r }) {
2636
2535
  startLevel: -1
2637
2536
  };
2638
2537
  try {
2639
- console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(k)), console.log("[Player] Version", De.version), t.current = new De(k), t.current.attachMedia(d.current), t.current.on(De.Events.MEDIA_ATTACHED, f), t.current.on(De.Events.MANIFEST_LOADED, v);
2640
- } catch (_) {
2641
- throw new Error(`Error initializing Hls: ${_}`);
2642
- }
2643
- }, [v, f, r, d, e]), L = he(() => {
2644
- t.current && (t.current.off(De.Events.MEDIA_ATTACHED, f), t.current.off(De.Events.MANIFEST_LOADED, v), t.current.destroy(), t.current = null);
2645
- }, [v, f]);
2646
- return be(() => {
2647
- n !== null && u(n);
2648
- }, [n, u]), be(() => (De.isSupported() && w(), L), [L, w]), null;
2649
- }
2650
- function Mr({ url: e, isLive: r, isMuted: t = !1 }) {
2651
- const n = b((g) => g.handleDurationChange), i = b((g) => g.handleEnd), c = b((g) => g.handleLoadedMetadata), l = b((g) => g.handleLoadStart), d = b((g) => g.handlePause), u = b((g) => g.handlePlay), f = b((g) => g.handlePlaying), v = b((g) => g.handleSeeked), w = b((g) => g.handleSeeking), L = b((g) => g.handleTimeUpdate), R = b((g) => g.handleWaiting), E = b((g) => g.techRef), k = ve(null), _ = () => r ? {} : {
2652
- onDurationChange: n,
2653
- onSeeked: v,
2654
- onSeeking: w,
2655
- onTimeUpdate: j
2656
- }, j = () => {
2657
- (!k.current || Date.now() - k.current >= 1e3) && (L(), k.current = Date.now());
2658
- }, x = _();
2659
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2660
- /* @__PURE__ */ a.jsx(Qo, { isLive: r, url: e }),
2661
- /* @__PURE__ */ a.jsx(
2662
- ei,
2538
+ console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(T)), console.log("[Player] Version", Ce.version), n.current = new Ce(T), n.current.attachMedia(u.current), n.current.on(Ce.Events.MEDIA_ATTACHED, d), n.current.on(Ce.Events.MANIFEST_LOADED, p);
2539
+ } catch (M) {
2540
+ throw new Error(`Error initializing Hls: ${M}`);
2541
+ }
2542
+ }, [p, d, t, u, e]), w = B(() => {
2543
+ n.current && (n.current.off(Ce.Events.MEDIA_ATTACHED, d), n.current.off(Ce.Events.MANIFEST_LOADED, p), n.current.destroy(), n.current = null);
2544
+ }, [p, d]);
2545
+ return te(() => {
2546
+ r !== null && s(r);
2547
+ }, [r, s]), te(() => (Ce.isSupported() && g(), w), [w, g]), null;
2548
+ }
2549
+ function _r({ url: e, isLive: t, isMuted: n = !1 }) {
2550
+ const r = m((h) => h.handleDurationChange), i = m((h) => h.handleEnd), a = m((h) => h.handleLoadedMetadata), l = m((h) => h.handleLoadStart), u = m((h) => h.handlePause), s = m((h) => h.handlePlay), d = m((h) => h.handlePlaying), p = m((h) => h.handleSeeked), g = m((h) => h.handleSeeking), w = m((h) => h.handleTimeUpdate), v = m((h) => h.handleWaiting), E = m((h) => h.techRef), T = Y(null), M = () => t ? {} : {
2551
+ onDurationChange: r,
2552
+ onSeeked: p,
2553
+ onSeeking: g,
2554
+ onTimeUpdate: P
2555
+ }, P = () => {
2556
+ (!T.current || Date.now() - T.current >= 1e3) && (w(), T.current = Date.now());
2557
+ }, b = M();
2558
+ return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2559
+ /* @__PURE__ */ c.jsx(hs, { isLive: t, url: e }),
2560
+ /* @__PURE__ */ c.jsx(
2561
+ ms,
2663
2562
  {
2664
2563
  ref: E,
2665
2564
  playsInline: !0,
2666
2565
  autoPlay: !0,
2667
2566
  controls: !1,
2668
- muted: t,
2567
+ muted: n,
2669
2568
  preload: "auto",
2670
2569
  crossOrigin: "anonymous",
2671
2570
  onEnded: i,
2672
- onLoadedMetadata: c,
2571
+ onLoadedMetadata: a,
2673
2572
  onLoadStart: l,
2674
- onPause: d,
2675
- onPlay: u,
2676
- onPlaying: f,
2677
- onWaiting: R,
2573
+ onPause: u,
2574
+ onPlay: s,
2575
+ onPlaying: d,
2576
+ onWaiting: v,
2678
2577
  tabIndex: -1,
2679
- ...x
2578
+ ...b
2680
2579
  }
2681
2580
  )
2682
2581
  ] });
2683
2582
  }
2684
- const ei = Y.video`
2583
+ const ms = _.video`
2685
2584
  position: relative;
2686
2585
  width: 100%;
2687
2586
  height: 100%;
@@ -2690,20 +2589,20 @@ const ei = Y.video`
2690
2589
  pointer-events: none;
2691
2590
  }
2692
2591
  `;
2693
- function ti({ url: e }) {
2694
- const [r, t] = ye(null), n = me((c) => c.delay), i = he(async () => {
2695
- t(
2696
- n ? e.replace(
2592
+ function gs({ url: e }) {
2593
+ const [t, n] = X(null), r = U((a) => a.delay), i = B(async () => {
2594
+ n(
2595
+ r ? e.replace(
2697
2596
  "playlist.m3u8",
2698
- `playlist_fmp4_dvr_timeshift-${n}.m3u8`
2597
+ `playlist_fmp4_dvr_timeshift-${r}.m3u8`
2699
2598
  ) : e
2700
2599
  );
2701
- }, [n, e]);
2702
- return be(() => {
2600
+ }, [r, e]);
2601
+ return te(() => {
2703
2602
  i();
2704
- }, [i]), r ? /* @__PURE__ */ a.jsx(Mr, { url: r, isLive: !0 }) : null;
2603
+ }, [i]), t ? /* @__PURE__ */ c.jsx(_r, { url: t, isLive: !0 }) : null;
2705
2604
  }
2706
- const Fr = Y.div`
2605
+ const Ir = _.div`
2707
2606
  position: absolute;
2708
2607
  top: 0;
2709
2608
  left: 0;
@@ -2712,7 +2611,7 @@ const Fr = Y.div`
2712
2611
  color: white;
2713
2612
  background: black;
2714
2613
  overflow: hidden;
2715
- `, Nr = Y.div`
2614
+ `, Dr = _.div`
2716
2615
  position: absolute;
2717
2616
  left: 0;
2718
2617
  width: 100%;
@@ -2724,7 +2623,7 @@ const Fr = Y.div`
2724
2623
  @media (min-width: 768px) {
2725
2624
  padding-top: 2rem;
2726
2625
  }
2727
- `, Vr = Y.div`
2626
+ `, Ar = _.div`
2728
2627
  display: flex;
2729
2628
  flex-direction: column;
2730
2629
  padding-left: 0.5rem;
@@ -2736,83 +2635,83 @@ const Fr = Y.div`
2736
2635
  padding-left: 1rem;
2737
2636
  padding-right: 1rem;
2738
2637
  }
2739
- `, $r = Y.div`
2638
+ `, Or = _.div`
2740
2639
  display: flex;
2741
2640
  padding: 0.5rem 0;
2742
2641
  width: 100%;
2743
2642
  align-items: center;
2744
- `, Hr = Y.div`
2643
+ `, Fr = _.div`
2745
2644
  display: flex;
2746
2645
  flex: 1;
2747
2646
  align-items: center;
2748
2647
  gap: 0.5rem;
2749
- `, zr = Y(Hr)`
2648
+ `, Mr = _(Fr)`
2750
2649
  justify-content: flex-start;
2751
- `, Yr = Y(Hr)`
2650
+ `, Vr = _(Fr)`
2752
2651
  justify-content: flex-end;
2753
2652
  `;
2754
- function ri() {
2755
- return /* @__PURE__ */ a.jsx(
2653
+ function ys() {
2654
+ return /* @__PURE__ */ c.jsx(
2756
2655
  "svg",
2757
2656
  {
2758
2657
  xmlns: "http://www.w3.org/2000/svg",
2759
2658
  viewBox: "0 0 24 24",
2760
2659
  fill: "currentColor",
2761
- children: /* @__PURE__ */ a.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
2660
+ children: /* @__PURE__ */ c.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
2762
2661
  }
2763
2662
  );
2764
2663
  }
2765
- function ni() {
2766
- return /* @__PURE__ */ a.jsx(
2664
+ function vs() {
2665
+ return /* @__PURE__ */ c.jsx(
2767
2666
  "svg",
2768
2667
  {
2769
2668
  xmlns: "http://www.w3.org/2000/svg",
2770
2669
  viewBox: "0 0 24 24",
2771
2670
  fill: "currentColor",
2772
- children: /* @__PURE__ */ a.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
2671
+ children: /* @__PURE__ */ c.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
2773
2672
  }
2774
2673
  );
2775
2674
  }
2776
- function Br() {
2777
- const e = b((f) => f.containerRef), r = b((f) => f.exitFullscreen), t = b((f) => f.isFullscreen), n = b((f) => f.requestFullscreen), i = b((f) => f.setIsFullscreen), c = b((f) => f.setIsFullscreenReady), l = b((f) => f.techRef), d = he(
2778
- (f) => {
2779
- f.stopPropagation(), i(ko());
2675
+ function Nr() {
2676
+ const e = m((d) => d.containerRef), t = m((d) => d.exitFullscreen), n = m((d) => d.isFullscreen), r = m((d) => d.requestFullscreen), i = m((d) => d.setIsFullscreen), a = m((d) => d.setIsFullscreenReady), l = m((d) => d.techRef), u = B(
2677
+ (d) => {
2678
+ d.stopPropagation(), i(Bi());
2780
2679
  },
2781
2680
  [i]
2782
- ), u = () => {
2783
- t ? r() : n();
2681
+ ), s = () => {
2682
+ n ? t() : r();
2784
2683
  };
2785
- return be(() => {
2786
- const f = xr ? l.current : e.current;
2787
- if (f)
2788
- return jo(f, d);
2789
- }, [e, d, l]), be(() => {
2790
- c(!0);
2791
- }, [c]), /* @__PURE__ */ a.jsx(Ie, { onClick: u, children: t ? /* @__PURE__ */ a.jsx(ni, {}) : /* @__PURE__ */ a.jsx(ri, {}) });
2792
- }
2793
- const oi = 5 * 1e3;
2794
- function Ur({ children: e }) {
2795
- const r = ve(null), [t, n] = ye(!1), i = ve(null), l = b((f) => f.idleLocks).size, d = he(() => {
2684
+ return te(() => {
2685
+ const d = gr ? l.current : e.current;
2686
+ if (d)
2687
+ return Yi(d, u);
2688
+ }, [e, u, l]), te(() => {
2689
+ a(!0);
2690
+ }, [a]), /* @__PURE__ */ c.jsx(be, { onClick: s, children: n ? /* @__PURE__ */ c.jsx(vs, {}) : /* @__PURE__ */ c.jsx(ys, {}) });
2691
+ }
2692
+ const ws = 5 * 1e3;
2693
+ function $r({ children: e }) {
2694
+ const t = Y(null), [n, r] = X(!1), i = Y(null), l = m((d) => d.idleLocks).size, u = B(() => {
2796
2695
  i.current !== null && (window.clearTimeout(i.current), i.current = null);
2797
- }, []), u = he(() => {
2798
- d(), i.current = window.setTimeout(() => n(!0), oi);
2799
- }, [d]);
2800
- return be(() => (n(!1), u(), () => {
2801
- d();
2802
- }), [d, u]), be(() => {
2803
- const f = r.current;
2804
- if (!f) return;
2805
- const v = (L) => {
2806
- t && (L.stopPropagation(), n(!1), u());
2807
- }, w = () => {
2808
- t && n(!1), u();
2696
+ }, []), s = B(() => {
2697
+ u(), i.current = window.setTimeout(() => r(!0), ws);
2698
+ }, [u]);
2699
+ return te(() => (r(!1), s(), () => {
2700
+ u();
2701
+ }), [u, s]), te(() => {
2702
+ const d = t.current;
2703
+ if (!d) return;
2704
+ const p = (w) => {
2705
+ n && (w.stopPropagation(), r(!1), s());
2706
+ }, g = () => {
2707
+ n && r(!1), s();
2809
2708
  };
2810
- return f.addEventListener("click", v), f.addEventListener("mousemove", w), () => {
2811
- f.removeEventListener("click", v), f.removeEventListener("mousemove", w);
2709
+ return d.addEventListener("click", p), d.addEventListener("mousemove", g), () => {
2710
+ d.removeEventListener("click", p), d.removeEventListener("mousemove", g);
2812
2711
  };
2813
- }, [r, t, n, u]), /* @__PURE__ */ a.jsx(ii, { ref: r, $isIdle: t && !l, children: e });
2712
+ }, [t, n, r, s]), /* @__PURE__ */ c.jsx(bs, { ref: t, $isIdle: n && !l, children: e });
2814
2713
  }
2815
- const ii = Y.div`
2714
+ const bs = _.div`
2816
2715
  position: absolute;
2817
2716
  top: 0;
2818
2717
  left: 0;
@@ -2822,38 +2721,38 @@ const ii = Y.div`
2822
2721
  cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
2823
2722
  opacity: ${({ $isIdle: e }) => e ? 0 : 1};
2824
2723
  `;
2825
- function ai(e) {
2826
- return /* @__PURE__ */ a.jsx(ci, { ...e });
2724
+ function xs(e) {
2725
+ return /* @__PURE__ */ c.jsx(Cs, { ...e });
2827
2726
  }
2828
- const si = go`
2727
+ const Ss = Ii`
2829
2728
  from {
2830
2729
  transform: rotate(0deg);
2831
2730
  }
2832
2731
  to {
2833
2732
  transform: rotate(360deg);
2834
2733
  }
2835
- `, ci = Y.div`
2734
+ `, Cs = _.div`
2836
2735
  width: 1.5rem;
2837
2736
  height: 1.5rem;
2838
2737
  border: 2px solid white;
2839
2738
  border-bottom-color: transparent;
2840
2739
  border-radius: 50%;
2841
- animation: ${si} 1s linear infinite;
2740
+ animation: ${Ss} 1s linear infinite;
2842
2741
  `;
2843
- function li(e, r = 500) {
2844
- const [t, n] = ye(e);
2845
- return be(() => {
2846
- const i = window.setTimeout(() => n(e), r);
2742
+ function ks(e, t = 500) {
2743
+ const [n, r] = X(e);
2744
+ return te(() => {
2745
+ const i = window.setTimeout(() => r(e), t);
2847
2746
  return () => {
2848
2747
  window.clearTimeout(i);
2849
2748
  };
2850
- }, [e, r]), t;
2749
+ }, [e, t]), n;
2851
2750
  }
2852
- function Wr({ style: e, ...r }) {
2853
- const t = b((i) => i.isLoading);
2854
- return li(t, 100) ? /* @__PURE__ */ a.jsx(ui, { style: e, ...r, children: /* @__PURE__ */ a.jsx(ai, {}) }) : null;
2751
+ function Hr({ style: e, ...t }) {
2752
+ const n = m((i) => i.isLoading);
2753
+ return ks(n, 100) ? /* @__PURE__ */ c.jsx(Ts, { style: e, ...t, children: /* @__PURE__ */ c.jsx(xs, {}) }) : null;
2855
2754
  }
2856
- const ui = Y.div`
2755
+ const Ts = _.div`
2857
2756
  pointer-events: none;
2858
2757
  position: absolute;
2859
2758
  top: 0;
@@ -2866,43 +2765,43 @@ const ui = Y.div`
2866
2765
  align-items: center;
2867
2766
  justify-content: center;
2868
2767
  `;
2869
- function di() {
2870
- return /* @__PURE__ */ a.jsx(
2768
+ function Es() {
2769
+ return /* @__PURE__ */ c.jsx(
2871
2770
  "svg",
2872
2771
  {
2873
2772
  xmlns: "http://www.w3.org/2000/svg",
2874
2773
  viewBox: "0 0 24 24",
2875
2774
  fill: "currentColor",
2876
- children: /* @__PURE__ */ a.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
2775
+ children: /* @__PURE__ */ c.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
2877
2776
  }
2878
2777
  );
2879
2778
  }
2880
- function fi() {
2881
- return /* @__PURE__ */ a.jsx(
2779
+ function Ps() {
2780
+ return /* @__PURE__ */ c.jsx(
2882
2781
  "svg",
2883
2782
  {
2884
2783
  xmlns: "http://www.w3.org/2000/svg",
2885
2784
  viewBox: "0 0 24 24",
2886
2785
  fill: "currentColor",
2887
- children: /* @__PURE__ */ a.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
2786
+ children: /* @__PURE__ */ c.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
2888
2787
  }
2889
2788
  );
2890
2789
  }
2891
- const pi = Ke.Root, hi = Ke.Trigger, mi = Ke.Portal, qr = lt(({ sideOffset: e = 4, ...r }, t) => /* @__PURE__ */ a.jsx(
2892
- vi,
2790
+ const Rs = Qe.Root, js = Qe.Trigger, Ls = Qe.Portal, zr = yt(({ sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ c.jsx(
2791
+ _s,
2893
2792
  {
2894
- ref: t,
2793
+ ref: n,
2895
2794
  sideOffset: e,
2896
- onCloseAutoFocus: (n) => {
2897
- n.preventDefault();
2795
+ onCloseAutoFocus: (r) => {
2796
+ r.preventDefault();
2898
2797
  },
2899
- ...r
2798
+ ...t
2900
2799
  }
2901
2800
  ));
2902
- qr.displayName = "PlayerDropdownMenuContent";
2903
- const Zr = lt((e, r) => /* @__PURE__ */ a.jsx(gi, { ref: r, ...e }));
2904
- Zr.displayName = "PlayerDropdownMenuItem";
2905
- const vi = Y(Ke.Content).withConfig({
2801
+ zr.displayName = "PlayerDropdownMenuContent";
2802
+ const Br = yt((e, t) => /* @__PURE__ */ c.jsx(Is, { ref: t, ...e }));
2803
+ Br.displayName = "PlayerDropdownMenuItem";
2804
+ const _s = _(Qe.Content).withConfig({
2906
2805
  shouldForwardProp: (e) => e !== "ref"
2907
2806
  })`
2908
2807
  padding: 0.25rem;
@@ -2979,7 +2878,7 @@ const vi = Y(Ke.Content).withConfig({
2979
2878
  transform: translateX(0);
2980
2879
  }
2981
2880
  }
2982
- `, gi = Y(Ke.Item)`
2881
+ `, Is = _(Qe.Item)`
2983
2882
  position: relative;
2984
2883
  display: flex;
2985
2884
  align-items: center;
@@ -3016,87 +2915,87 @@ const vi = Y(Ke.Content).withConfig({
3016
2915
  color: rgba(255, 255, 255, 0.5);
3017
2916
  pointer-events: none;
3018
2917
  }
3019
- `, tr = "settings";
3020
- function Gr() {
3021
- const [e, r] = ye(!1), t = b((u) => u.containerRef), n = b((u) => u.addIdleLock), i = b((u) => u.removeIdleLock), c = b((u) => u.levels), l = b((u) => u.setLevel), d = he(
3022
- (u) => {
3023
- r(u), u ? n(tr) : i(tr);
2918
+ `, Fn = "settings";
2919
+ function Ur() {
2920
+ const [e, t] = X(!1), n = m((s) => s.containerRef), r = m((s) => s.addIdleLock), i = m((s) => s.removeIdleLock), a = m((s) => s.levels), l = m((s) => s.setLevel), u = B(
2921
+ (s) => {
2922
+ t(s), s ? r(Fn) : i(Fn);
3024
2923
  },
3025
- [n, i]
2924
+ [r, i]
3026
2925
  );
3027
- return /* @__PURE__ */ a.jsxs(pi, { open: e, onOpenChange: d, children: [
3028
- /* @__PURE__ */ a.jsx(hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(fi, {}) }) }),
3029
- /* @__PURE__ */ a.jsx(mi, { container: t.current, children: /* @__PURE__ */ a.jsx(qr, { side: "top", align: "end", children: c?.map((u) => /* @__PURE__ */ a.jsxs(
3030
- Zr,
2926
+ return /* @__PURE__ */ c.jsxs(Rs, { open: e, onOpenChange: u, children: [
2927
+ /* @__PURE__ */ c.jsx(js, { asChild: !0, children: /* @__PURE__ */ c.jsx(be, { children: /* @__PURE__ */ c.jsx(Ps, {}) }) }),
2928
+ /* @__PURE__ */ c.jsx(Ls, { container: n.current, children: /* @__PURE__ */ c.jsx(zr, { side: "top", align: "end", children: a?.map((s) => /* @__PURE__ */ c.jsxs(
2929
+ Br,
3031
2930
  {
3032
- onClick: () => l(u.value),
2931
+ onClick: () => l(s.value),
3033
2932
  children: [
3034
- u.label,
3035
- u.selected && /* @__PURE__ */ a.jsx(di, {})
2933
+ s.label,
2934
+ s.selected && /* @__PURE__ */ c.jsx(Es, {})
3036
2935
  ]
3037
2936
  },
3038
- u.sid
2937
+ s.sid
3039
2938
  )) }) })
3040
2939
  ] });
3041
2940
  }
3042
- function yi() {
3043
- return /* @__PURE__ */ a.jsx(
2941
+ function Ds() {
2942
+ return /* @__PURE__ */ c.jsx(
3044
2943
  "svg",
3045
2944
  {
3046
2945
  xmlns: "http://www.w3.org/2000/svg",
3047
2946
  viewBox: "0 0 24 24",
3048
2947
  fill: "currentColor",
3049
- children: /* @__PURE__ */ a.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
2948
+ children: /* @__PURE__ */ c.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
3050
2949
  }
3051
2950
  );
3052
2951
  }
3053
- function wi() {
3054
- return /* @__PURE__ */ a.jsx(
2952
+ function As() {
2953
+ return /* @__PURE__ */ c.jsx(
3055
2954
  "svg",
3056
2955
  {
3057
2956
  xmlns: "http://www.w3.org/2000/svg",
3058
2957
  viewBox: "0 0 24 24",
3059
2958
  fill: "currentColor",
3060
- children: /* @__PURE__ */ a.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
2959
+ children: /* @__PURE__ */ c.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
3061
2960
  }
3062
2961
  );
3063
2962
  }
3064
- function bi() {
3065
- return /* @__PURE__ */ a.jsx(
2963
+ function Os() {
2964
+ return /* @__PURE__ */ c.jsx(
3066
2965
  "svg",
3067
2966
  {
3068
2967
  xmlns: "http://www.w3.org/2000/svg",
3069
2968
  viewBox: "0 0 24 24",
3070
2969
  fill: "currentColor",
3071
- children: /* @__PURE__ */ a.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
2970
+ children: /* @__PURE__ */ c.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
3072
2971
  }
3073
2972
  );
3074
2973
  }
3075
- const rr = "volume";
3076
- function Xr() {
3077
- b((d) => d.containerRef);
3078
- const e = b((d) => d.setVolume), r = b((d) => d.volume), t = b((d) => d.addIdleLock), n = b((d) => d.removeIdleLock), i = (d) => {
3079
- e(d[0]), t(rr);
3080
- }, c = () => {
3081
- n(rr);
3082
- }, l = () => e(r ? 0 : 100);
3083
- return /* @__PURE__ */ a.jsxs(xi, { children: [
3084
- /* @__PURE__ */ a.jsx(Ie, { onClick: l, className: "shrink-0", children: r ? r > 50 ? /* @__PURE__ */ a.jsx(yi, {}) : /* @__PURE__ */ a.jsx(wi, {}) : /* @__PURE__ */ a.jsx(bi, {}) }),
3085
- /* @__PURE__ */ a.jsx(Jr, { children: /* @__PURE__ */ a.jsx(
3086
- ft,
2974
+ const Mn = "volume";
2975
+ function Wr() {
2976
+ m((u) => u.containerRef);
2977
+ const e = m((u) => u.setVolume), t = m((u) => u.volume), n = m((u) => u.addIdleLock), r = m((u) => u.removeIdleLock), i = (u) => {
2978
+ e(u[0]), n(Mn);
2979
+ }, a = () => {
2980
+ r(Mn);
2981
+ }, l = () => e(t ? 0 : 100);
2982
+ return /* @__PURE__ */ c.jsxs(Fs, { children: [
2983
+ /* @__PURE__ */ c.jsx(be, { onClick: l, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ c.jsx(Ds, {}) : /* @__PURE__ */ c.jsx(As, {}) : /* @__PURE__ */ c.jsx(Os, {}) }),
2984
+ /* @__PURE__ */ c.jsx(Yr, { children: /* @__PURE__ */ c.jsx(
2985
+ Et,
3087
2986
  {
3088
- value: [r],
2987
+ value: [t],
3089
2988
  onValueChange: i,
3090
- onValueCommit: c
2989
+ onValueCommit: a
3091
2990
  }
3092
2991
  ) })
3093
2992
  ] });
3094
2993
  }
3095
- const Jr = Y.div`
2994
+ const Yr = _.div`
3096
2995
  width: 0;
3097
2996
  opacity: 0;
3098
2997
  transition: all 0.2s ease-in-out;
3099
- `, xi = Y.div`
2998
+ `, Fs = _.div`
3100
2999
  display: flex;
3101
3000
  align-items: center;
3102
3001
  gap: 0.25rem;
@@ -3107,49 +3006,49 @@ const Jr = Y.div`
3107
3006
  &:hover {
3108
3007
  width: 6rem;
3109
3008
 
3110
- ${Jr} {
3009
+ ${Yr} {
3111
3010
  width: 100%;
3112
3011
  opacity: 1;
3113
3012
  }
3114
3013
  }
3115
3014
  }
3116
3015
  `;
3117
- function Oi({ url: e, startDate: r, endDate: t, messages: n }) {
3118
- return /* @__PURE__ */ a.jsx(
3119
- Go,
3016
+ function Gs({ url: e, startDate: t, endDate: n, messages: r }) {
3017
+ return /* @__PURE__ */ c.jsx(
3018
+ us,
3120
3019
  {
3121
- startDate: new Date(r),
3122
- endDate: new Date(t),
3123
- children: /* @__PURE__ */ a.jsx(Si, { url: e, messages: n })
3020
+ startDate: new Date(t),
3021
+ endDate: new Date(n),
3022
+ children: /* @__PURE__ */ c.jsx(Ms, { url: e, messages: r })
3124
3023
  }
3125
3024
  );
3126
3025
  }
3127
- function Si({ url: e, messages: r }) {
3128
- const t = b((n) => n.containerRef);
3129
- return /* @__PURE__ */ a.jsx(Fr, { ref: t, children: /* @__PURE__ */ a.jsxs(
3130
- yo,
3026
+ function Ms({ url: e, messages: t }) {
3027
+ const n = m((r) => r.containerRef);
3028
+ return /* @__PURE__ */ c.jsx(Ir, { ref: n, children: /* @__PURE__ */ c.jsxs(
3029
+ Di,
3131
3030
  {
3132
- eventFinishedMessage: r?.eventFinished,
3133
- eventNotStartedMessage: r?.eventNotStarted,
3134
- eventStartingSoonMessage: r?.eventStartingSoon,
3031
+ eventFinishedMessage: t?.eventFinished,
3032
+ eventNotStartedMessage: t?.eventNotStarted,
3033
+ eventStartingSoonMessage: t?.eventStartingSoon,
3135
3034
  children: [
3136
- /* @__PURE__ */ a.jsx(ti, { url: e }),
3137
- /* @__PURE__ */ a.jsx(Wr, {}),
3138
- /* @__PURE__ */ a.jsxs(Ur, { children: [
3139
- /* @__PURE__ */ a.jsx(Ho, {}),
3140
- /* @__PURE__ */ a.jsx(Nr, { children: /* @__PURE__ */ a.jsxs(Vr, { children: [
3141
- /* @__PURE__ */ a.jsx(Zo, {}),
3142
- /* @__PURE__ */ a.jsxs($r, { children: [
3143
- /* @__PURE__ */ a.jsxs(zr, { children: [
3144
- /* @__PURE__ */ a.jsx(Vo, {}),
3145
- /* @__PURE__ */ a.jsx(Ko, {}),
3146
- /* @__PURE__ */ a.jsx(Xr, {}),
3147
- /* @__PURE__ */ a.jsx(Xo, {})
3035
+ /* @__PURE__ */ c.jsx(gs, { url: e }),
3036
+ /* @__PURE__ */ c.jsx(Hr, {}),
3037
+ /* @__PURE__ */ c.jsxs($r, { children: [
3038
+ /* @__PURE__ */ c.jsx(ns, {}),
3039
+ /* @__PURE__ */ c.jsx(Dr, { children: /* @__PURE__ */ c.jsxs(Ar, { children: [
3040
+ /* @__PURE__ */ c.jsx(ls, {}),
3041
+ /* @__PURE__ */ c.jsxs(Or, { children: [
3042
+ /* @__PURE__ */ c.jsxs(Mr, { children: [
3043
+ /* @__PURE__ */ c.jsx(es, {}),
3044
+ /* @__PURE__ */ c.jsx(ps, {}),
3045
+ /* @__PURE__ */ c.jsx(Wr, {}),
3046
+ /* @__PURE__ */ c.jsx(ds, {})
3148
3047
  ] }),
3149
- /* @__PURE__ */ a.jsxs(Yr, { children: [
3150
- /* @__PURE__ */ a.jsx(Eo, { message: r?.live }),
3151
- /* @__PURE__ */ a.jsx(Gr, {}),
3152
- /* @__PURE__ */ a.jsx(Br, {})
3048
+ /* @__PURE__ */ c.jsxs(Vr, { children: [
3049
+ /* @__PURE__ */ c.jsx(Ni, { message: t?.live }),
3050
+ /* @__PURE__ */ c.jsx(Ur, {}),
3051
+ /* @__PURE__ */ c.jsx(Nr, {})
3153
3052
  ] })
3154
3053
  ] })
3155
3054
  ] }) })
@@ -3158,119 +3057,119 @@ function Si({ url: e, messages: r }) {
3158
3057
  }
3159
3058
  ) });
3160
3059
  }
3161
- function Ci() {
3162
- const e = b((i) => i.isPlaying), r = b((i) => i.pause), t = b((i) => i.play), n = () => {
3163
- e ? r() : t();
3060
+ function Vs() {
3061
+ const e = m((i) => i.isPlaying), t = m((i) => i.pause), n = m((i) => i.play), r = () => {
3062
+ e ? t() : n();
3164
3063
  };
3165
- return /* @__PURE__ */ a.jsx(Ie, { onClick: n, children: e ? /* @__PURE__ */ a.jsx(wr, {}) : /* @__PURE__ */ a.jsx(br, {}) });
3064
+ return /* @__PURE__ */ c.jsx(be, { onClick: r, children: e ? /* @__PURE__ */ c.jsx(hr, {}) : /* @__PURE__ */ c.jsx(mr, {}) });
3166
3065
  }
3167
- function Ei() {
3168
- const e = b((i) => i.isPlaying), r = b((i) => i.pause), t = b((i) => i.play), n = () => {
3169
- e ? r() : t();
3066
+ function Ns() {
3067
+ const e = m((i) => i.isPlaying), t = m((i) => i.pause), n = m((i) => i.play), r = () => {
3068
+ e ? t() : n();
3170
3069
  };
3171
- return /* @__PURE__ */ a.jsx(Cr, { onClick: n });
3172
- }
3173
- const nr = "vod-player-progress-bar";
3174
- function Ti() {
3175
- const e = ve(null), r = ve(null), [t, n] = ye(!1), [i, c] = ye(-1), [l, d] = ye(-1), u = b((g) => g.currentTime), f = b((g) => g.duration), v = b((g) => g.seek), w = b((g) => g.addIdleLock), L = b((g) => g.removeIdleLock), R = parseFloat(
3176
- (f ? (l !== -1 ? l : u) / f * 100 : 0).toFixed(1)
3177
- ), E = (g) => {
3178
- d(f * (g[0] / 100)), w(nr);
3179
- }, k = () => {
3180
- l !== -1 && (v(l), d(-1), L(nr));
3181
- }, _ = () => n(!0), j = () => n(!1), x = he(
3182
- (g) => {
3183
- const A = e.current, p = r.current;
3184
- if (A && p) {
3185
- const U = ct(A), de = ct(p), te = (g.pageX || g.clientX) - U.left, ce = te / U.width;
3186
- if (ce < 0) return;
3187
- let M = te - de.width / 2;
3188
- M < 0 && (M = 0), M > U.width - de.width && (M = -1), p.style.left = M > -1 ? `${M}px` : "auto", p.style.right = M > -1 ? "auto" : "0px", c(ce * f);
3070
+ return /* @__PURE__ */ c.jsx(vr, { onClick: r });
3071
+ }
3072
+ const Vn = "vod-player-progress-bar";
3073
+ function $s() {
3074
+ const e = Y(null), t = Y(null), [n, r] = X(!1), [i, a] = X(-1), [l, u] = X(-1), s = m((h) => h.currentTime), d = m((h) => h.duration), p = m((h) => h.seek), g = m((h) => h.addIdleLock), w = m((h) => h.removeIdleLock), v = parseFloat(
3075
+ (d ? (l !== -1 ? l : s) / d * 100 : 0).toFixed(1)
3076
+ ), E = (h) => {
3077
+ u(d * (h[0] / 100)), g(Vn);
3078
+ }, T = () => {
3079
+ l !== -1 && (p(l), u(-1), w(Vn));
3080
+ }, M = () => r(!0), P = () => r(!1), b = B(
3081
+ (h) => {
3082
+ const L = e.current, D = t.current;
3083
+ if (L && D) {
3084
+ const C = gt(L), x = gt(D), W = (h.pageX || h.clientX) - C.left, J = W / C.width;
3085
+ if (J < 0) return;
3086
+ let I = W - x.width / 2;
3087
+ I < 0 && (I = 0), I > C.width - x.width && (I = -1), D.style.left = I > -1 ? `${I}px` : "auto", D.style.right = I > -1 ? "auto" : "0px", a(J * d);
3189
3088
  }
3190
- _();
3089
+ M();
3191
3090
  },
3192
- [f]
3091
+ [d]
3193
3092
  );
3194
- return /* @__PURE__ */ a.jsxs(Er, { children: [
3195
- /* @__PURE__ */ a.jsx(
3196
- ft,
3093
+ return /* @__PURE__ */ c.jsxs(wr, { children: [
3094
+ /* @__PURE__ */ c.jsx(
3095
+ Et,
3197
3096
  {
3198
3097
  ref: e,
3199
- value: [R],
3200
- onPointerLeave: j,
3201
- onPointerDown: j,
3202
- onPointerMove: x,
3098
+ value: [v],
3099
+ onPointerLeave: P,
3100
+ onPointerDown: P,
3101
+ onPointerMove: b,
3203
3102
  onValueChange: E,
3204
- onValueCommit: k,
3103
+ onValueCommit: T,
3205
3104
  step: 0.1
3206
3105
  }
3207
3106
  ),
3208
- /* @__PURE__ */ a.jsx(Tr, { ref: r, $isVisible: t, children: /* @__PURE__ */ a.jsx(Pr, { children: Be(i) }) })
3107
+ /* @__PURE__ */ c.jsx(br, { ref: t, $isVisible: n, children: /* @__PURE__ */ c.jsx(xr, { children: Be(i) }) })
3209
3108
  ] });
3210
3109
  }
3211
- function Pi() {
3212
- const e = b((t) => t.currentTime), r = b((t) => t.duration);
3213
- return /* @__PURE__ */ a.jsxs(jr, { children: [
3214
- /* @__PURE__ */ a.jsx(Ir, { children: Be(e) }),
3215
- /* @__PURE__ */ a.jsx(Dr, {}),
3216
- /* @__PURE__ */ a.jsx(Or, { children: Be(r) })
3110
+ function Hs() {
3111
+ const e = m((n) => n.currentTime), t = m((n) => n.duration);
3112
+ return /* @__PURE__ */ c.jsxs(Er, { children: [
3113
+ /* @__PURE__ */ c.jsx(Rr, { children: Be(e) }),
3114
+ /* @__PURE__ */ c.jsx(Lr, {}),
3115
+ /* @__PURE__ */ c.jsx(jr, { children: Be(t) })
3217
3116
  ] });
3218
3117
  }
3219
- const Ri = 60, ki = 95;
3220
- function _i({ storageKey: e }) {
3221
- const r = b((v) => v.currentTime), t = b((v) => v.duration), n = b((v) => v.isPlaying), i = b((v) => v.setStartTime), c = ve(!1), l = he(() => {
3118
+ const zs = 60, Bs = 95;
3119
+ function Us({ storageKey: e }) {
3120
+ const t = m((p) => p.currentTime), n = m((p) => p.duration), r = m((p) => p.isPlaying), i = m((p) => p.setStartTime), a = Y(!1), l = B(() => {
3222
3121
  window.localStorage.setItem(
3223
3122
  e,
3224
3123
  JSON.stringify({
3225
- currentTime: r,
3226
- duration: t
3124
+ currentTime: t,
3125
+ duration: n
3227
3126
  })
3228
3127
  );
3229
- }, [r, t, e]), d = he(() => {
3230
- const v = window.localStorage.getItem(e);
3231
- if (v) {
3232
- const w = JSON.parse(v);
3128
+ }, [t, n, e]), u = B(() => {
3129
+ const p = window.localStorage.getItem(e);
3130
+ if (p) {
3131
+ const g = JSON.parse(p);
3233
3132
  return {
3234
- startTime: w.currentTime,
3235
- progress: w.currentTime / w.duration * 100
3133
+ startTime: g.currentTime,
3134
+ progress: g.currentTime / g.duration * 100
3236
3135
  };
3237
3136
  }
3238
3137
  return { startTime: null, progress: null };
3239
- }, [e]), u = he(() => {
3240
- r < Ri || l();
3241
- }, [r, l]), f = he(() => {
3242
- if (c.current) return;
3243
- const { progress: v, startTime: w } = d();
3244
- w && v && v < ki && (i(w), c.current = !0);
3245
- }, [d, i]);
3246
- return dt(() => u(), n ? 1e3 : null), be(() => {
3247
- f();
3248
- }, [f]), null;
3249
- }
3250
- function Di({ url: e, watchHistory: r }) {
3251
- return /* @__PURE__ */ a.jsxs(Ar, { children: [
3252
- /* @__PURE__ */ a.jsx(Ai, { url: e }),
3253
- r?.enabled && /* @__PURE__ */ a.jsx(_i, { storageKey: r.storageKey })
3138
+ }, [e]), s = B(() => {
3139
+ t < zs || l();
3140
+ }, [t, l]), d = B(() => {
3141
+ if (a.current) return;
3142
+ const { progress: p, startTime: g } = u();
3143
+ g && p && p < Bs && (i(g), a.current = !0);
3144
+ }, [u, i]);
3145
+ return wt(() => s(), r ? 1e3 : null), te(() => {
3146
+ d();
3147
+ }, [d]), null;
3148
+ }
3149
+ function Xs({ url: e, watchHistory: t }) {
3150
+ return /* @__PURE__ */ c.jsxs(Tr, { children: [
3151
+ /* @__PURE__ */ c.jsx(Ws, { url: e }),
3152
+ t?.enabled && /* @__PURE__ */ c.jsx(Us, { storageKey: t.storageKey })
3254
3153
  ] });
3255
3154
  }
3256
- function Ai({ url: e }) {
3257
- const r = b((t) => t.containerRef);
3258
- return /* @__PURE__ */ a.jsxs(Fr, { ref: r, children: [
3259
- /* @__PURE__ */ a.jsx(Mr, { url: e, isLive: !1 }),
3260
- /* @__PURE__ */ a.jsx(Wr, {}),
3261
- /* @__PURE__ */ a.jsxs(Ur, { children: [
3262
- /* @__PURE__ */ a.jsx(Ei, {}),
3263
- /* @__PURE__ */ a.jsx(Nr, { children: /* @__PURE__ */ a.jsxs(Vr, { children: [
3264
- /* @__PURE__ */ a.jsx(Ti, {}),
3265
- /* @__PURE__ */ a.jsxs($r, { children: [
3266
- /* @__PURE__ */ a.jsxs(zr, { children: [
3267
- /* @__PURE__ */ a.jsx(Ci, {}),
3268
- /* @__PURE__ */ a.jsx(Xr, {}),
3269
- /* @__PURE__ */ a.jsx(Pi, {})
3155
+ function Ws({ url: e }) {
3156
+ const t = m((n) => n.containerRef);
3157
+ return /* @__PURE__ */ c.jsxs(Ir, { ref: t, children: [
3158
+ /* @__PURE__ */ c.jsx(_r, { url: e, isLive: !1 }),
3159
+ /* @__PURE__ */ c.jsx(Hr, {}),
3160
+ /* @__PURE__ */ c.jsxs($r, { children: [
3161
+ /* @__PURE__ */ c.jsx(Ns, {}),
3162
+ /* @__PURE__ */ c.jsx(Dr, { children: /* @__PURE__ */ c.jsxs(Ar, { children: [
3163
+ /* @__PURE__ */ c.jsx($s, {}),
3164
+ /* @__PURE__ */ c.jsxs(Or, { children: [
3165
+ /* @__PURE__ */ c.jsxs(Mr, { children: [
3166
+ /* @__PURE__ */ c.jsx(Vs, {}),
3167
+ /* @__PURE__ */ c.jsx(Wr, {}),
3168
+ /* @__PURE__ */ c.jsx(Hs, {})
3270
3169
  ] }),
3271
- /* @__PURE__ */ a.jsxs(Yr, { children: [
3272
- /* @__PURE__ */ a.jsx(Gr, {}),
3273
- /* @__PURE__ */ a.jsx(Br, {})
3170
+ /* @__PURE__ */ c.jsxs(Vr, { children: [
3171
+ /* @__PURE__ */ c.jsx(Ur, {}),
3172
+ /* @__PURE__ */ c.jsx(Nr, {})
3274
3173
  ] })
3275
3174
  ] })
3276
3175
  ] }) })
@@ -3278,7 +3177,7 @@ function Ai({ url: e }) {
3278
3177
  ] });
3279
3178
  }
3280
3179
  export {
3281
- Oi as LivePlayer,
3282
- Di as VodPlayer
3180
+ Gs as LivePlayer,
3181
+ Xs as VodPlayer
3283
3182
  };
3284
3183
  //# sourceMappingURL=react-video-player.es.js.map