@halibegic/react-video-player 0.0.0 → 0.0.2

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.
@@ -0,0 +1,2003 @@
1
+ import B, { useDebugValue as bt, createElement as Cn, useRef as xe, useContext as qt, createContext as _n, useState as ut, useEffect as $e, lazy as Ut, Suspense as jn, useCallback as An } from "react";
2
+ import { PauseIcon as Wt, PlayIcon as Bt, MinimizeIcon as On, MaximizeIcon as Nn } from "lucide-react";
3
+ var Ce = { exports: {} }, be = {};
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.production.js
7
+ *
8
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var wt;
14
+ function In() {
15
+ if (wt) return be;
16
+ wt = 1;
17
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
+ function n(r, o, s) {
19
+ var a = null;
20
+ if (s !== void 0 && (a = "" + s), o.key !== void 0 && (a = "" + o.key), "key" in o) {
21
+ s = {};
22
+ for (var c in o)
23
+ c !== "key" && (s[c] = o[c]);
24
+ } else s = o;
25
+ return o = s.ref, {
26
+ $$typeof: e,
27
+ type: r,
28
+ key: a,
29
+ ref: o !== void 0 ? o : null,
30
+ props: s
31
+ };
32
+ }
33
+ return be.Fragment = t, be.jsx = n, be.jsxs = n, be;
34
+ }
35
+ var we = {};
36
+ /**
37
+ * @license React
38
+ * react-jsx-runtime.development.js
39
+ *
40
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+ var St;
46
+ function Ln() {
47
+ return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
48
+ function e(i) {
49
+ if (i == null) return null;
50
+ if (typeof i == "function")
51
+ return i.$$typeof === Xe ? null : i.displayName || i.name || null;
52
+ if (typeof i == "string") return i;
53
+ switch (i) {
54
+ case P:
55
+ return "Fragment";
56
+ case A:
57
+ return "Profiler";
58
+ case D:
59
+ return "StrictMode";
60
+ case f:
61
+ return "Suspense";
62
+ case S:
63
+ return "SuspenseList";
64
+ case X:
65
+ return "Activity";
66
+ }
67
+ if (typeof i == "object")
68
+ switch (typeof i.tag == "number" && console.error(
69
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
+ ), i.$$typeof) {
71
+ case T:
72
+ return "Portal";
73
+ case x:
74
+ return (i.displayName || "Context") + ".Provider";
75
+ case _:
76
+ return (i._context.displayName || "Context") + ".Consumer";
77
+ case R:
78
+ var p = i.render;
79
+ return i = i.displayName, i || (i = p.displayName || p.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
80
+ case m:
81
+ return p = i.displayName || null, p !== null ? p : e(i.type) || "Memo";
82
+ case q:
83
+ p = i._payload, i = i._init;
84
+ try {
85
+ return e(i(p));
86
+ } catch {
87
+ }
88
+ }
89
+ return null;
90
+ }
91
+ function t(i) {
92
+ return "" + i;
93
+ }
94
+ function n(i) {
95
+ try {
96
+ t(i);
97
+ var p = !1;
98
+ } catch {
99
+ p = !0;
100
+ }
101
+ if (p) {
102
+ p = console;
103
+ var w = p.error, N = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
104
+ return w.call(
105
+ p,
106
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
+ N
108
+ ), t(i);
109
+ }
110
+ }
111
+ function r(i) {
112
+ if (i === P) return "<>";
113
+ if (typeof i == "object" && i !== null && i.$$typeof === q)
114
+ return "<...>";
115
+ try {
116
+ var p = e(i);
117
+ return p ? "<" + p + ">" : "<...>";
118
+ } catch {
119
+ return "<...>";
120
+ }
121
+ }
122
+ function o() {
123
+ var i = ge.A;
124
+ return i === null ? null : i.getOwner();
125
+ }
126
+ function s() {
127
+ return Error("react-stack-top-frame");
128
+ }
129
+ function a(i) {
130
+ if (Ee.call(i, "key")) {
131
+ var p = Object.getOwnPropertyDescriptor(i, "key").get;
132
+ if (p && p.isReactWarning) return !1;
133
+ }
134
+ return i.key !== void 0;
135
+ }
136
+ function c(i, p) {
137
+ function w() {
138
+ Re || (Re = !0, console.error(
139
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
140
+ p
141
+ ));
142
+ }
143
+ w.isReactWarning = !0, Object.defineProperty(i, "key", {
144
+ get: w,
145
+ configurable: !0
146
+ });
147
+ }
148
+ function u() {
149
+ var i = e(this.type);
150
+ return Te[i] || (Te[i] = !0, console.error(
151
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
+ )), i = this.props.ref, i !== void 0 ? i : null;
153
+ }
154
+ function l(i, p, w, N, V, F, G, J) {
155
+ return w = F.ref, i = {
156
+ $$typeof: b,
157
+ type: i,
158
+ key: p,
159
+ props: F,
160
+ _owner: V
161
+ }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(i, "ref", {
162
+ enumerable: !1,
163
+ get: u
164
+ }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
165
+ configurable: !1,
166
+ enumerable: !1,
167
+ writable: !0,
168
+ value: 0
169
+ }), Object.defineProperty(i, "_debugInfo", {
170
+ configurable: !1,
171
+ enumerable: !1,
172
+ writable: !0,
173
+ value: null
174
+ }), Object.defineProperty(i, "_debugStack", {
175
+ configurable: !1,
176
+ enumerable: !1,
177
+ writable: !0,
178
+ value: G
179
+ }), Object.defineProperty(i, "_debugTask", {
180
+ configurable: !1,
181
+ enumerable: !1,
182
+ writable: !0,
183
+ value: J
184
+ }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
185
+ }
186
+ function v(i, p, w, N, V, F, G, J) {
187
+ var O = p.children;
188
+ if (O !== void 0)
189
+ if (N)
190
+ if (Pe(O)) {
191
+ for (N = 0; N < O.length; N++)
192
+ h(O[N]);
193
+ Object.freeze && Object.freeze(O);
194
+ } else
195
+ console.error(
196
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
+ );
198
+ else h(O);
199
+ if (Ee.call(p, "key")) {
200
+ O = e(i);
201
+ var $ = Object.keys(p).filter(function(ae) {
202
+ return ae !== "key";
203
+ });
204
+ N = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", z[O + N] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ `A props object containing a "key" prop is being spread into JSX:
206
+ let props = %s;
207
+ <%s {...props} />
208
+ React keys must be passed directly to JSX without using spread:
209
+ let props = %s;
210
+ <%s key={someKey} {...props} />`,
211
+ N,
212
+ O,
213
+ $,
214
+ O
215
+ ), z[O + N] = !0);
216
+ }
217
+ if (O = null, w !== void 0 && (n(w), O = "" + w), a(p) && (n(p.key), O = "" + p.key), "key" in p) {
218
+ w = {};
219
+ for (var Q in p)
220
+ Q !== "key" && (w[Q] = p[Q]);
221
+ } else w = p;
222
+ return O && c(
223
+ w,
224
+ typeof i == "function" ? i.displayName || i.name || "Unknown" : i
225
+ ), l(
226
+ i,
227
+ O,
228
+ F,
229
+ V,
230
+ o(),
231
+ w,
232
+ G,
233
+ J
234
+ );
235
+ }
236
+ function h(i) {
237
+ typeof i == "object" && i !== null && i.$$typeof === b && i._store && (i._store.validated = 1);
238
+ }
239
+ var y = B, b = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), x = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), Xe = Symbol.for("react.client.reference"), ge = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ee = Object.prototype.hasOwnProperty, Pe = Array.isArray, ye = console.createTask ? console.createTask : function() {
240
+ return null;
241
+ };
242
+ y = {
243
+ react_stack_bottom_frame: function(i) {
244
+ return i();
245
+ }
246
+ };
247
+ var Re, Te = {}, ie = y.react_stack_bottom_frame.bind(
248
+ y,
249
+ s
250
+ )(), ve = ye(r(s)), z = {};
251
+ we.Fragment = P, we.jsx = function(i, p, w, N, V) {
252
+ var F = 1e4 > ge.recentlyCreatedOwnerStacks++;
253
+ return v(
254
+ i,
255
+ p,
256
+ w,
257
+ !1,
258
+ N,
259
+ V,
260
+ F ? Error("react-stack-top-frame") : ie,
261
+ F ? ye(r(i)) : ve
262
+ );
263
+ }, we.jsxs = function(i, p, w, N, V) {
264
+ var F = 1e4 > ge.recentlyCreatedOwnerStacks++;
265
+ return v(
266
+ i,
267
+ p,
268
+ w,
269
+ !0,
270
+ N,
271
+ V,
272
+ F ? Error("react-stack-top-frame") : ie,
273
+ F ? ye(r(i)) : ve
274
+ );
275
+ };
276
+ })()), we;
277
+ }
278
+ var xt;
279
+ function Dn() {
280
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? Ce.exports = In() : Ce.exports = Ln()), Ce.exports;
281
+ }
282
+ var d = Dn(), M = function() {
283
+ return M = Object.assign || function(t) {
284
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
285
+ n = arguments[r];
286
+ for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
287
+ }
288
+ return t;
289
+ }, M.apply(this, arguments);
290
+ };
291
+ function oe(e, t, n) {
292
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
293
+ (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
294
+ return e.concat(s || Array.prototype.slice.call(t));
295
+ }
296
+ function Fn(e) {
297
+ var t = /* @__PURE__ */ Object.create(null);
298
+ return function(n) {
299
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
300
+ };
301
+ }
302
+ var $n = /^((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)-.*))$/, Mn = /* @__PURE__ */ Fn(
303
+ function(e) {
304
+ return $n.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
305
+ }
306
+ /* Z+1 */
307
+ ), j = "-ms-", ke = "-moz-", k = "-webkit-", Gt = "comm", qe = "rule", dt = "decl", zn = "@import", Ht = "@keyframes", Vn = "@layer", Xt = Math.abs, ft = String.fromCharCode, et = Object.assign;
308
+ function Yn(e, t) {
309
+ return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
310
+ }
311
+ function Jt(e) {
312
+ return e.trim();
313
+ }
314
+ function H(e, t) {
315
+ return (e = t.exec(e)) ? e[0] : e;
316
+ }
317
+ function g(e, t, n) {
318
+ return e.replace(t, n);
319
+ }
320
+ function Ne(e, t, n) {
321
+ return e.indexOf(t, n);
322
+ }
323
+ function L(e, t) {
324
+ return e.charCodeAt(t) | 0;
325
+ }
326
+ function le(e, t, n) {
327
+ return e.slice(t, n);
328
+ }
329
+ function W(e) {
330
+ return e.length;
331
+ }
332
+ function Zt(e) {
333
+ return e.length;
334
+ }
335
+ function Se(e, t) {
336
+ return t.push(e), e;
337
+ }
338
+ function qn(e, t) {
339
+ return e.map(t).join("");
340
+ }
341
+ function kt(e, t) {
342
+ return e.filter(function(n) {
343
+ return !H(n, t);
344
+ });
345
+ }
346
+ var Ue = 1, ue = 1, Kt = 0, Y = 0, I = 0, he = "";
347
+ function We(e, t, n, r, o, s, a, c) {
348
+ return { value: e, root: t, parent: n, type: r, props: o, children: s, line: Ue, column: ue, length: a, return: "", siblings: c };
349
+ }
350
+ function K(e, t) {
351
+ return et(We("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
352
+ }
353
+ function ce(e) {
354
+ for (; e.root; )
355
+ e = K(e.root, { children: [e] });
356
+ Se(e, e.siblings);
357
+ }
358
+ function Un() {
359
+ return I;
360
+ }
361
+ function Wn() {
362
+ return I = Y > 0 ? L(he, --Y) : 0, ue--, I === 10 && (ue = 1, Ue--), I;
363
+ }
364
+ function U() {
365
+ return I = Y < Kt ? L(he, Y++) : 0, ue++, I === 10 && (ue = 1, Ue++), I;
366
+ }
367
+ function ne() {
368
+ return L(he, Y);
369
+ }
370
+ function Ie() {
371
+ return Y;
372
+ }
373
+ function Be(e, t) {
374
+ return le(he, e, t);
375
+ }
376
+ function tt(e) {
377
+ switch (e) {
378
+ // \0 \t \n \r \s whitespace token
379
+ case 0:
380
+ case 9:
381
+ case 10:
382
+ case 13:
383
+ case 32:
384
+ return 5;
385
+ // ! + , / > @ ~ isolate token
386
+ case 33:
387
+ case 43:
388
+ case 44:
389
+ case 47:
390
+ case 62:
391
+ case 64:
392
+ case 126:
393
+ // ; { } breakpoint token
394
+ case 59:
395
+ case 123:
396
+ case 125:
397
+ return 4;
398
+ // : accompanied token
399
+ case 58:
400
+ return 3;
401
+ // " ' ( [ opening delimit token
402
+ case 34:
403
+ case 39:
404
+ case 40:
405
+ case 91:
406
+ return 2;
407
+ // ) ] closing delimit token
408
+ case 41:
409
+ case 93:
410
+ return 1;
411
+ }
412
+ return 0;
413
+ }
414
+ function Bn(e) {
415
+ return Ue = ue = 1, Kt = W(he = e), Y = 0, [];
416
+ }
417
+ function Gn(e) {
418
+ return he = "", e;
419
+ }
420
+ function Je(e) {
421
+ return Jt(Be(Y - 1, nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
422
+ }
423
+ function Hn(e) {
424
+ for (; (I = ne()) && I < 33; )
425
+ U();
426
+ return tt(e) > 2 || tt(I) > 3 ? "" : " ";
427
+ }
428
+ function Xn(e, t) {
429
+ for (; --t && U() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
430
+ ;
431
+ return Be(e, Ie() + (t < 6 && ne() == 32 && U() == 32));
432
+ }
433
+ function nt(e) {
434
+ for (; U(); )
435
+ switch (I) {
436
+ // ] ) " '
437
+ case e:
438
+ return Y;
439
+ // " '
440
+ case 34:
441
+ case 39:
442
+ e !== 34 && e !== 39 && nt(I);
443
+ break;
444
+ // (
445
+ case 40:
446
+ e === 41 && nt(e);
447
+ break;
448
+ // \
449
+ case 92:
450
+ U();
451
+ break;
452
+ }
453
+ return Y;
454
+ }
455
+ function Jn(e, t) {
456
+ for (; U() && e + I !== 57; )
457
+ if (e + I === 84 && ne() === 47)
458
+ break;
459
+ return "/*" + Be(t, Y - 1) + "*" + ft(e === 47 ? e : U());
460
+ }
461
+ function Zn(e) {
462
+ for (; !tt(ne()); )
463
+ U();
464
+ return Be(e, Y);
465
+ }
466
+ function Kn(e) {
467
+ return Gn(Le("", null, null, null, [""], e = Bn(e), 0, [0], e));
468
+ }
469
+ function Le(e, t, n, r, o, s, a, c, u) {
470
+ for (var l = 0, v = 0, h = a, y = 0, b = 0, T = 0, P = 1, D = 1, A = 1, _ = 0, x = "", R = o, f = s, S = r, m = x; D; )
471
+ switch (T = _, _ = U()) {
472
+ // (
473
+ case 40:
474
+ if (T != 108 && L(m, h - 1) == 58) {
475
+ Ne(m += g(Je(_), "&", "&\f"), "&\f", Xt(l ? c[l - 1] : 0)) != -1 && (A = -1);
476
+ break;
477
+ }
478
+ // " ' [
479
+ case 34:
480
+ case 39:
481
+ case 91:
482
+ m += Je(_);
483
+ break;
484
+ // \t \n \r \s
485
+ case 9:
486
+ case 10:
487
+ case 13:
488
+ case 32:
489
+ m += Hn(T);
490
+ break;
491
+ // \
492
+ case 92:
493
+ m += Xn(Ie() - 1, 7);
494
+ continue;
495
+ // /
496
+ case 47:
497
+ switch (ne()) {
498
+ case 42:
499
+ case 47:
500
+ Se(Qn(Jn(U(), Ie()), t, n, u), u);
501
+ break;
502
+ default:
503
+ m += "/";
504
+ }
505
+ break;
506
+ // {
507
+ case 123 * P:
508
+ c[l++] = W(m) * A;
509
+ // } ; \0
510
+ case 125 * P:
511
+ case 59:
512
+ case 0:
513
+ switch (_) {
514
+ // \0 }
515
+ case 0:
516
+ case 125:
517
+ D = 0;
518
+ // ;
519
+ case 59 + v:
520
+ A == -1 && (m = g(m, /\f/g, "")), b > 0 && W(m) - h && Se(b > 32 ? Pt(m + ";", r, n, h - 1, u) : Pt(g(m, " ", "") + ";", r, n, h - 2, u), u);
521
+ break;
522
+ // @ ;
523
+ case 59:
524
+ m += ";";
525
+ // { rule/at-rule
526
+ default:
527
+ if (Se(S = Et(m, t, n, l, v, o, c, x, R = [], f = [], h, s), s), _ === 123)
528
+ if (v === 0)
529
+ Le(m, t, S, S, R, s, h, c, f);
530
+ else
531
+ switch (y === 99 && L(m, 3) === 110 ? 100 : y) {
532
+ // d l m s
533
+ case 100:
534
+ case 108:
535
+ case 109:
536
+ case 115:
537
+ Le(e, S, S, r && Se(Et(e, S, S, 0, 0, o, c, x, o, R = [], h, f), f), o, f, h, c, r ? R : f);
538
+ break;
539
+ default:
540
+ Le(m, S, S, S, [""], f, 0, c, f);
541
+ }
542
+ }
543
+ l = v = b = 0, P = A = 1, x = m = "", h = a;
544
+ break;
545
+ // :
546
+ case 58:
547
+ h = 1 + W(m), b = T;
548
+ default:
549
+ if (P < 1) {
550
+ if (_ == 123)
551
+ --P;
552
+ else if (_ == 125 && P++ == 0 && Wn() == 125)
553
+ continue;
554
+ }
555
+ switch (m += ft(_), _ * P) {
556
+ // &
557
+ case 38:
558
+ A = v > 0 ? 1 : (m += "\f", -1);
559
+ break;
560
+ // ,
561
+ case 44:
562
+ c[l++] = (W(m) - 1) * A, A = 1;
563
+ break;
564
+ // @
565
+ case 64:
566
+ ne() === 45 && (m += Je(U())), y = ne(), v = h = W(x = m += Zn(Ie())), _++;
567
+ break;
568
+ // -
569
+ case 45:
570
+ T === 45 && W(m) == 2 && (P = 0);
571
+ }
572
+ }
573
+ return s;
574
+ }
575
+ function Et(e, t, n, r, o, s, a, c, u, l, v, h) {
576
+ for (var y = o - 1, b = o === 0 ? s : [""], T = Zt(b), P = 0, D = 0, A = 0; P < r; ++P)
577
+ for (var _ = 0, x = le(e, y + 1, y = Xt(D = a[P])), R = e; _ < T; ++_)
578
+ (R = Jt(D > 0 ? b[_] + " " + x : g(x, /&\f/g, b[_]))) && (u[A++] = R);
579
+ return We(e, t, n, o === 0 ? qe : c, u, l, v, h);
580
+ }
581
+ function Qn(e, t, n, r) {
582
+ return We(e, t, n, Gt, ft(Un()), le(e, 2, -2), 0, r);
583
+ }
584
+ function Pt(e, t, n, r, o) {
585
+ return We(e, t, n, dt, le(e, 0, r), le(e, r + 1, -1), r, o);
586
+ }
587
+ function Qt(e, t, n) {
588
+ switch (Yn(e, t)) {
589
+ // color-adjust
590
+ case 5103:
591
+ return k + "print-" + e + e;
592
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
593
+ case 5737:
594
+ case 4201:
595
+ case 3177:
596
+ case 3433:
597
+ case 1641:
598
+ case 4457:
599
+ case 2921:
600
+ // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
601
+ case 5572:
602
+ case 6356:
603
+ case 5844:
604
+ case 3191:
605
+ case 6645:
606
+ case 3005:
607
+ // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
608
+ case 6391:
609
+ case 5879:
610
+ case 5623:
611
+ case 6135:
612
+ case 4599:
613
+ case 4855:
614
+ // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
615
+ case 4215:
616
+ case 6389:
617
+ case 5109:
618
+ case 5365:
619
+ case 5621:
620
+ case 3829:
621
+ return k + e + e;
622
+ // tab-size
623
+ case 4789:
624
+ return ke + e + e;
625
+ // appearance, user-select, transform, hyphens, text-size-adjust
626
+ case 5349:
627
+ case 4246:
628
+ case 4810:
629
+ case 6968:
630
+ case 2756:
631
+ return k + e + ke + e + j + e + e;
632
+ // writing-mode
633
+ case 5936:
634
+ switch (L(e, t + 11)) {
635
+ // vertical-l(r)
636
+ case 114:
637
+ return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
638
+ // vertical-r(l)
639
+ case 108:
640
+ return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
641
+ // horizontal(-)tb
642
+ case 45:
643
+ return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
644
+ }
645
+ // flex, flex-direction, scroll-snap-type, writing-mode
646
+ case 6828:
647
+ case 4268:
648
+ case 2903:
649
+ return k + e + j + e + e;
650
+ // order
651
+ case 6165:
652
+ return k + e + j + "flex-" + e + e;
653
+ // align-items
654
+ case 5187:
655
+ return k + e + g(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + j + "flex-$1$2") + e;
656
+ // align-self
657
+ case 5443:
658
+ return k + e + j + "flex-item-" + g(e, /flex-|-self/g, "") + (H(e, /flex-|baseline/) ? "" : j + "grid-row-" + g(e, /flex-|-self/g, "")) + e;
659
+ // align-content
660
+ case 4675:
661
+ return k + e + j + "flex-line-pack" + g(e, /align-content|flex-|-self/g, "") + e;
662
+ // flex-shrink
663
+ case 5548:
664
+ return k + e + j + g(e, "shrink", "negative") + e;
665
+ // flex-basis
666
+ case 5292:
667
+ return k + e + j + g(e, "basis", "preferred-size") + e;
668
+ // flex-grow
669
+ case 6060:
670
+ return k + "box-" + g(e, "-grow", "") + k + e + j + g(e, "grow", "positive") + e;
671
+ // transition
672
+ case 4554:
673
+ return k + g(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
674
+ // cursor
675
+ case 6187:
676
+ return g(g(g(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
677
+ // background, background-image
678
+ case 5495:
679
+ case 3959:
680
+ return g(e, /(image-set\([^]*)/, k + "$1$`$1");
681
+ // justify-content
682
+ case 4968:
683
+ return g(g(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
684
+ // justify-self
685
+ case 4200:
686
+ if (!H(e, /flex-|baseline/)) return j + "grid-column-align" + le(e, t) + e;
687
+ break;
688
+ // grid-template-(columns|rows)
689
+ case 2592:
690
+ case 3360:
691
+ return j + g(e, "template-", "") + e;
692
+ // grid-(row|column)-start
693
+ case 4384:
694
+ case 3616:
695
+ return n && n.some(function(r, o) {
696
+ return t = o, H(r.props, /grid-\w+-end/);
697
+ }) ? ~Ne(e + (n = n[t].value), "span", 0) ? e : j + g(e, "-start", "") + e + j + "grid-row-span:" + (~Ne(n, "span", 0) ? H(n, /\d+/) : +H(n, /\d+/) - +H(e, /\d+/)) + ";" : j + g(e, "-start", "") + e;
698
+ // grid-(row|column)-end
699
+ case 4896:
700
+ case 4128:
701
+ return n && n.some(function(r) {
702
+ return H(r.props, /grid-\w+-start/);
703
+ }) ? e : j + g(g(e, "-end", "-span"), "span ", "") + e;
704
+ // (margin|padding)-inline-(start|end)
705
+ case 4095:
706
+ case 3583:
707
+ case 4068:
708
+ case 2532:
709
+ return g(e, /(.+)-inline(.+)/, k + "$1$2") + e;
710
+ // (min|max)?(width|height|inline-size|block-size)
711
+ case 8116:
712
+ case 7059:
713
+ case 5753:
714
+ case 5535:
715
+ case 5445:
716
+ case 5701:
717
+ case 4933:
718
+ case 4677:
719
+ case 5533:
720
+ case 5789:
721
+ case 5021:
722
+ case 4765:
723
+ if (W(e) - 1 - t > 6)
724
+ switch (L(e, t + 1)) {
725
+ // (m)ax-content, (m)in-content
726
+ case 109:
727
+ if (L(e, t + 4) !== 45)
728
+ break;
729
+ // (f)ill-available, (f)it-content
730
+ case 102:
731
+ return g(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + ke + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
732
+ // (s)tretch
733
+ case 115:
734
+ return ~Ne(e, "stretch", 0) ? Qt(g(e, "stretch", "fill-available"), t, n) + e : e;
735
+ }
736
+ break;
737
+ // grid-(column|row)
738
+ case 5152:
739
+ case 5920:
740
+ return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, s, a, c, u, l) {
741
+ return j + o + ":" + s + l + (a ? j + o + "-span:" + (c ? u : +u - +s) + l : "") + e;
742
+ });
743
+ // position: sticky
744
+ case 4949:
745
+ if (L(e, t + 6) === 121)
746
+ return g(e, ":", ":" + k) + e;
747
+ break;
748
+ // display: (flex|inline-flex|grid|inline-grid)
749
+ case 6444:
750
+ switch (L(e, L(e, 14) === 45 ? 18 : 11)) {
751
+ // (inline-)?fle(x)
752
+ case 120:
753
+ return g(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + j + "$2box$3") + e;
754
+ // (inline-)?gri(d)
755
+ case 100:
756
+ return g(e, ":", ":" + j) + e;
757
+ }
758
+ break;
759
+ // scroll-margin, scroll-margin-(top|right|bottom|left)
760
+ case 5719:
761
+ case 2647:
762
+ case 2135:
763
+ case 3927:
764
+ case 2391:
765
+ return g(e, "scroll-", "scroll-snap-") + e;
766
+ }
767
+ return e;
768
+ }
769
+ function Me(e, t) {
770
+ for (var n = "", r = 0; r < e.length; r++)
771
+ n += t(e[r], r, e, t) || "";
772
+ return n;
773
+ }
774
+ function er(e, t, n, r) {
775
+ switch (e.type) {
776
+ case Vn:
777
+ if (e.children.length) break;
778
+ case zn:
779
+ case dt:
780
+ return e.return = e.return || e.value;
781
+ case Gt:
782
+ return "";
783
+ case Ht:
784
+ return e.return = e.value + "{" + Me(e.children, r) + "}";
785
+ case qe:
786
+ if (!W(e.value = e.props.join(","))) return "";
787
+ }
788
+ return W(n = Me(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
789
+ }
790
+ function tr(e) {
791
+ var t = Zt(e);
792
+ return function(n, r, o, s) {
793
+ for (var a = "", c = 0; c < t; c++)
794
+ a += e[c](n, r, o, s) || "";
795
+ return a;
796
+ };
797
+ }
798
+ function nr(e) {
799
+ return function(t) {
800
+ t.root || (t = t.return) && e(t);
801
+ };
802
+ }
803
+ function rr(e, t, n, r) {
804
+ if (e.length > -1 && !e.return)
805
+ switch (e.type) {
806
+ case dt:
807
+ e.return = Qt(e.value, e.length, n);
808
+ return;
809
+ case Ht:
810
+ return Me([K(e, { value: g(e.value, "@", "@" + k) })], r);
811
+ case qe:
812
+ if (e.length)
813
+ return qn(n = e.props, function(o) {
814
+ switch (H(o, r = /(::plac\w+|:read-\w+)/)) {
815
+ // :read-(only|write)
816
+ case ":read-only":
817
+ case ":read-write":
818
+ ce(K(e, { props: [g(o, /:(read-\w+)/, ":" + ke + "$1")] })), ce(K(e, { props: [o] })), et(e, { props: kt(n, r) });
819
+ break;
820
+ // :placeholder
821
+ case "::placeholder":
822
+ ce(K(e, { props: [g(o, /:(plac\w+)/, ":" + k + "input-$1")] })), ce(K(e, { props: [g(o, /:(plac\w+)/, ":" + ke + "$1")] })), ce(K(e, { props: [g(o, /:(plac\w+)/, j + "input-$1")] })), ce(K(e, { props: [o] })), et(e, { props: kt(n, r) });
823
+ break;
824
+ }
825
+ return "";
826
+ });
827
+ }
828
+ }
829
+ var or = {
830
+ animationIterationCount: 1,
831
+ aspectRatio: 1,
832
+ borderImageOutset: 1,
833
+ borderImageSlice: 1,
834
+ borderImageWidth: 1,
835
+ boxFlex: 1,
836
+ boxFlexGroup: 1,
837
+ boxOrdinalGroup: 1,
838
+ columnCount: 1,
839
+ columns: 1,
840
+ flex: 1,
841
+ flexGrow: 1,
842
+ flexPositive: 1,
843
+ flexShrink: 1,
844
+ flexNegative: 1,
845
+ flexOrder: 1,
846
+ gridRow: 1,
847
+ gridRowEnd: 1,
848
+ gridRowSpan: 1,
849
+ gridRowStart: 1,
850
+ gridColumn: 1,
851
+ gridColumnEnd: 1,
852
+ gridColumnSpan: 1,
853
+ gridColumnStart: 1,
854
+ msGridRow: 1,
855
+ msGridRowSpan: 1,
856
+ msGridColumn: 1,
857
+ msGridColumnSpan: 1,
858
+ fontWeight: 1,
859
+ lineHeight: 1,
860
+ opacity: 1,
861
+ order: 1,
862
+ orphans: 1,
863
+ tabSize: 1,
864
+ widows: 1,
865
+ zIndex: 1,
866
+ zoom: 1,
867
+ WebkitLineClamp: 1,
868
+ // SVG-related properties
869
+ fillOpacity: 1,
870
+ floodOpacity: 1,
871
+ stopOpacity: 1,
872
+ strokeDasharray: 1,
873
+ strokeDashoffset: 1,
874
+ strokeMiterlimit: 1,
875
+ strokeOpacity: 1,
876
+ strokeWidth: 1
877
+ }, se = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", en = "active", tn = "data-styled-version", Ge = "6.1.19", pt = `/*!sc*/
878
+ `, ze = typeof window < "u" && typeof document < "u", sr = !!(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"), Rt = /invalid hook call/i, _e = /* @__PURE__ */ new Set(), ir = function(e, t) {
879
+ if (process.env.NODE_ENV !== "production") {
880
+ var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
881
+ `) + `You may see this warning because you've called styled inside another component.
882
+ To resolve this only create new StyledComponents outside of any render method and function component.
883
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
884
+ `, o = console.error;
885
+ try {
886
+ var s = !0;
887
+ console.error = function(a) {
888
+ for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
889
+ Rt.test(a) ? (s = !1, _e.delete(r)) : o.apply(void 0, oe([a], c, !1));
890
+ }, xe(), s && !_e.has(r) && (console.warn(r), _e.add(r));
891
+ } catch (a) {
892
+ Rt.test(a.message) && _e.delete(r);
893
+ } finally {
894
+ console.error = o;
895
+ }
896
+ }
897
+ }, He = Object.freeze([]), de = Object.freeze({});
898
+ function ar(e, t, n) {
899
+ return n === void 0 && (n = de), e.theme !== n.theme && e.theme || t || n.theme;
900
+ }
901
+ var rt = /* @__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"]), cr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, lr = /(^-|-$)/g;
902
+ function Tt(e) {
903
+ return e.replace(cr, "-").replace(lr, "");
904
+ }
905
+ var ur = /(a)(d)/gi, je = 52, Ct = function(e) {
906
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
907
+ };
908
+ function ot(e) {
909
+ var t, n = "";
910
+ for (t = Math.abs(e); t > je; t = t / je | 0) n = Ct(t % je) + n;
911
+ return (Ct(t % je) + n).replace(ur, "$1-$2");
912
+ }
913
+ var Ze, nn = 5381, ee = function(e, t) {
914
+ for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
915
+ return e;
916
+ }, rn = function(e) {
917
+ return ee(nn, e);
918
+ };
919
+ function on(e) {
920
+ return ot(rn(e) >>> 0);
921
+ }
922
+ function sn(e) {
923
+ return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
924
+ }
925
+ function Ke(e) {
926
+ return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
927
+ }
928
+ var an = typeof Symbol == "function" && Symbol.for, cn = an ? Symbol.for("react.memo") : 60115, dr = an ? Symbol.for("react.forward_ref") : 60112, fr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, pr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ln = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, hr = ((Ze = {})[dr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ze[cn] = ln, Ze);
929
+ function _t(e) {
930
+ return ("type" in (t = e) && t.type.$$typeof) === cn ? ln : "$$typeof" in e ? hr[e.$$typeof] : fr;
931
+ var t;
932
+ }
933
+ var mr = Object.defineProperty, gr = Object.getOwnPropertyNames, jt = Object.getOwnPropertySymbols, yr = Object.getOwnPropertyDescriptor, vr = Object.getPrototypeOf, At = Object.prototype;
934
+ function un(e, t, n) {
935
+ if (typeof t != "string") {
936
+ if (At) {
937
+ var r = vr(t);
938
+ r && r !== At && un(e, r, n);
939
+ }
940
+ var o = gr(t);
941
+ jt && (o = o.concat(jt(t)));
942
+ for (var s = _t(e), a = _t(t), c = 0; c < o.length; ++c) {
943
+ var u = o[c];
944
+ if (!(u in pr || n && n[u] || a && u in a || s && u in s)) {
945
+ var l = yr(t, u);
946
+ try {
947
+ mr(e, u, l);
948
+ } catch {
949
+ }
950
+ }
951
+ }
952
+ }
953
+ return e;
954
+ }
955
+ function fe(e) {
956
+ return typeof e == "function";
957
+ }
958
+ function ht(e) {
959
+ return typeof e == "object" && "styledComponentId" in e;
960
+ }
961
+ function te(e, t) {
962
+ return e && t ? "".concat(e, " ").concat(t) : e || t || "";
963
+ }
964
+ function st(e, t) {
965
+ if (e.length === 0) return "";
966
+ for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
967
+ return n;
968
+ }
969
+ function pe(e) {
970
+ return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
971
+ }
972
+ function it(e, t, n) {
973
+ if (n === void 0 && (n = !1), !n && !pe(e) && !Array.isArray(e)) return t;
974
+ if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = it(e[r], t[r]);
975
+ else if (pe(t)) for (var r in t) e[r] = it(e[r], t[r]);
976
+ return e;
977
+ }
978
+ function mt(e, t) {
979
+ Object.defineProperty(e, "toString", { value: t });
980
+ }
981
+ var br = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
982
+
983
+ `, 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.
984
+
985
+ - Are you trying to reuse it across renders?
986
+ - Are you accidentally calling collectStyles twice?
987
+
988
+ `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
989
+
990
+ `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
991
+
992
+ - Does this error occur on the client and is your target falsy?
993
+ - Does this error occur on the server and is the sheet falsy?
994
+
995
+ `, 5: `The clone method cannot be used on the client!
996
+
997
+ - Are you running in a client-like environment on the server?
998
+ - Are you trying to run SSR on the client?
999
+
1000
+ `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
1001
+
1002
+ - Are you using a custom target that isn't mounted?
1003
+ - Does your document not have a valid head element?
1004
+ - Have you accidentally removed a style tag manually?
1005
+
1006
+ `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
1007
+
1008
+ `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
1009
+
1010
+ `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
1011
+
1012
+ `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s 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.
1013
+
1014
+ `, 14: `ThemeProvider: "theme" prop is required.
1015
+
1016
+ `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
1017
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
1018
+ as for instance in your render method then you may be running into this limitation.
1019
+
1020
+ `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1021
+ Has styled-components' style tag been unmounted or altered by another script?
1022
+ `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1023
+ function wr() {
1024
+ for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1025
+ for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1) r.push(e[o]);
1026
+ return r.forEach(function(a) {
1027
+ n = n.replace(/%[a-z]/, a);
1028
+ }), n;
1029
+ }
1030
+ function me(e) {
1031
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1032
+ 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(wr.apply(void 0, oe([br[e]], t, !1)).trim());
1033
+ }
1034
+ var Sr = (function() {
1035
+ function e(t) {
1036
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1037
+ }
1038
+ return e.prototype.indexOfGroup = function(t) {
1039
+ for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
1040
+ return n;
1041
+ }, e.prototype.insertRules = function(t, n) {
1042
+ if (t >= this.groupSizes.length) {
1043
+ for (var r = this.groupSizes, o = r.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw me(16, "".concat(t));
1044
+ this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s;
1045
+ for (var a = o; a < s; a++) this.groupSizes[a] = 0;
1046
+ }
1047
+ for (var c = this.indexOfGroup(t + 1), u = (a = 0, n.length); a < u; a++) this.tag.insertRule(c, n[a]) && (this.groupSizes[t]++, c++);
1048
+ }, e.prototype.clearGroup = function(t) {
1049
+ if (t < this.length) {
1050
+ var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
1051
+ this.groupSizes[t] = 0;
1052
+ for (var s = r; s < o; s++) this.tag.deleteRule(r);
1053
+ }
1054
+ }, e.prototype.getGroup = function(t) {
1055
+ var n = "";
1056
+ if (t >= this.length || this.groupSizes[t] === 0) return n;
1057
+ for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, a = o; a < s; a++) n += "".concat(this.tag.getRule(a)).concat(pt);
1058
+ return n;
1059
+ }, e;
1060
+ })(), xr = 1 << 30, De = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map(), Fe = 1, Ae = function(e) {
1061
+ if (De.has(e)) return De.get(e);
1062
+ for (; Ve.has(Fe); ) Fe++;
1063
+ var t = Fe++;
1064
+ if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > xr)) throw me(16, "".concat(t));
1065
+ return De.set(e, t), Ve.set(t, e), t;
1066
+ }, kr = function(e, t) {
1067
+ Fe = t + 1, De.set(e, t), Ve.set(t, e);
1068
+ }, Er = "style[".concat(se, "][").concat(tn, '="').concat(Ge, '"]'), Pr = new RegExp("^".concat(se, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Rr = function(e, t, n) {
1069
+ for (var r, o = n.split(","), s = 0, a = o.length; s < a; s++) (r = o[s]) && e.registerName(t, r);
1070
+ }, Tr = function(e, t) {
1071
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(pt), o = [], s = 0, a = r.length; s < a; s++) {
1072
+ var c = r[s].trim();
1073
+ if (c) {
1074
+ var u = c.match(Pr);
1075
+ if (u) {
1076
+ var l = 0 | parseInt(u[1], 10), v = u[2];
1077
+ l !== 0 && (kr(v, l), Rr(e, v, u[3]), e.getTag().insertRules(l, o)), o.length = 0;
1078
+ } else o.push(c);
1079
+ }
1080
+ }
1081
+ }, Ot = function(e) {
1082
+ for (var t = document.querySelectorAll(Er), n = 0, r = t.length; n < r; n++) {
1083
+ var o = t[n];
1084
+ o && o.getAttribute(se) !== en && (Tr(e, o), o.parentNode && o.parentNode.removeChild(o));
1085
+ }
1086
+ };
1087
+ function Cr() {
1088
+ return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1089
+ }
1090
+ var dn = function(e) {
1091
+ var t = document.head, n = e || t, r = document.createElement("style"), o = (function(c) {
1092
+ var u = Array.from(c.querySelectorAll("style[".concat(se, "]")));
1093
+ return u[u.length - 1];
1094
+ })(n), s = o !== void 0 ? o.nextSibling : null;
1095
+ r.setAttribute(se, en), r.setAttribute(tn, Ge);
1096
+ var a = Cr();
1097
+ return a && r.setAttribute("nonce", a), n.insertBefore(r, s), r;
1098
+ }, _r = (function() {
1099
+ function e(t) {
1100
+ this.element = dn(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
1101
+ if (n.sheet) return n.sheet;
1102
+ for (var r = document.styleSheets, o = 0, s = r.length; o < s; o++) {
1103
+ var a = r[o];
1104
+ if (a.ownerNode === n) return a;
1105
+ }
1106
+ throw me(17);
1107
+ })(this.element), this.length = 0;
1108
+ }
1109
+ return e.prototype.insertRule = function(t, n) {
1110
+ try {
1111
+ return this.sheet.insertRule(n, t), this.length++, !0;
1112
+ } catch {
1113
+ return !1;
1114
+ }
1115
+ }, e.prototype.deleteRule = function(t) {
1116
+ this.sheet.deleteRule(t), this.length--;
1117
+ }, e.prototype.getRule = function(t) {
1118
+ var n = this.sheet.cssRules[t];
1119
+ return n && n.cssText ? n.cssText : "";
1120
+ }, e;
1121
+ })(), jr = (function() {
1122
+ function e(t) {
1123
+ this.element = dn(t), this.nodes = this.element.childNodes, this.length = 0;
1124
+ }
1125
+ return e.prototype.insertRule = function(t, n) {
1126
+ if (t <= this.length && t >= 0) {
1127
+ var r = document.createTextNode(n);
1128
+ return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1129
+ }
1130
+ return !1;
1131
+ }, e.prototype.deleteRule = function(t) {
1132
+ this.element.removeChild(this.nodes[t]), this.length--;
1133
+ }, e.prototype.getRule = function(t) {
1134
+ return t < this.length ? this.nodes[t].textContent : "";
1135
+ }, e;
1136
+ })(), Ar = (function() {
1137
+ function e(t) {
1138
+ this.rules = [], this.length = 0;
1139
+ }
1140
+ return e.prototype.insertRule = function(t, n) {
1141
+ return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1142
+ }, e.prototype.deleteRule = function(t) {
1143
+ this.rules.splice(t, 1), this.length--;
1144
+ }, e.prototype.getRule = function(t) {
1145
+ return t < this.length ? this.rules[t] : "";
1146
+ }, e;
1147
+ })(), Nt = ze, Or = { isServer: !ze, useCSSOMInjection: !sr }, fn = (function() {
1148
+ function e(t, n, r) {
1149
+ t === void 0 && (t = de), n === void 0 && (n = {});
1150
+ var o = this;
1151
+ this.options = M(M({}, Or), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && ze && Nt && (Nt = !1, Ot(this)), mt(this, function() {
1152
+ return (function(s) {
1153
+ for (var a = s.getTag(), c = a.length, u = "", l = function(h) {
1154
+ var y = (function(A) {
1155
+ return Ve.get(A);
1156
+ })(h);
1157
+ if (y === void 0) return "continue";
1158
+ var b = s.names.get(y), T = a.getGroup(h);
1159
+ if (b === void 0 || !b.size || T.length === 0) return "continue";
1160
+ var P = "".concat(se, ".g").concat(h, '[id="').concat(y, '"]'), D = "";
1161
+ b !== void 0 && b.forEach(function(A) {
1162
+ A.length > 0 && (D += "".concat(A, ","));
1163
+ }), u += "".concat(T).concat(P, '{content:"').concat(D, '"}').concat(pt);
1164
+ }, v = 0; v < c; v++) l(v);
1165
+ return u;
1166
+ })(o);
1167
+ });
1168
+ }
1169
+ return e.registerId = function(t) {
1170
+ return Ae(t);
1171
+ }, e.prototype.rehydrate = function() {
1172
+ !this.server && ze && Ot(this);
1173
+ }, e.prototype.reconstructWithOptions = function(t, n) {
1174
+ return n === void 0 && (n = !0), new e(M(M({}, this.options), t), this.gs, n && this.names || void 0);
1175
+ }, e.prototype.allocateGSInstance = function(t) {
1176
+ return this.gs[t] = (this.gs[t] || 0) + 1;
1177
+ }, e.prototype.getTag = function() {
1178
+ return this.tag || (this.tag = (t = (function(n) {
1179
+ var r = n.useCSSOMInjection, o = n.target;
1180
+ return n.isServer ? new Ar(o) : r ? new _r(o) : new jr(o);
1181
+ })(this.options), new Sr(t)));
1182
+ var t;
1183
+ }, e.prototype.hasNameForId = function(t, n) {
1184
+ return this.names.has(t) && this.names.get(t).has(n);
1185
+ }, e.prototype.registerName = function(t, n) {
1186
+ if (Ae(t), this.names.has(t)) this.names.get(t).add(n);
1187
+ else {
1188
+ var r = /* @__PURE__ */ new Set();
1189
+ r.add(n), this.names.set(t, r);
1190
+ }
1191
+ }, e.prototype.insertRules = function(t, n, r) {
1192
+ this.registerName(t, n), this.getTag().insertRules(Ae(t), r);
1193
+ }, e.prototype.clearNames = function(t) {
1194
+ this.names.has(t) && this.names.get(t).clear();
1195
+ }, e.prototype.clearRules = function(t) {
1196
+ this.getTag().clearGroup(Ae(t)), this.clearNames(t);
1197
+ }, e.prototype.clearTag = function() {
1198
+ this.tag = void 0;
1199
+ }, e;
1200
+ })(), Nr = /&/g, Ir = /^\s*\/\/.*$/gm;
1201
+ function pn(e, t) {
1202
+ return e.map(function(n) {
1203
+ 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) {
1204
+ return "".concat(t, " ").concat(r);
1205
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = pn(n.children, t)), n;
1206
+ });
1207
+ }
1208
+ function Lr(e) {
1209
+ var t, n, r, o = de, s = o.options, a = s === void 0 ? de : s, c = o.plugins, u = c === void 0 ? He : c, l = function(y, b, T) {
1210
+ return T.startsWith(n) && T.endsWith(n) && T.replaceAll(n, "").length > 0 ? ".".concat(t) : y;
1211
+ }, v = u.slice();
1212
+ v.push(function(y) {
1213
+ y.type === qe && y.value.includes("&") && (y.props[0] = y.props[0].replace(Nr, n).replace(r, l));
1214
+ }), a.prefix && v.push(rr), v.push(er);
1215
+ var h = function(y, b, T, P) {
1216
+ b === void 0 && (b = ""), T === void 0 && (T = ""), P === void 0 && (P = "&"), t = P, n = b, r = new RegExp("\\".concat(n, "\\b"), "g");
1217
+ var D = y.replace(Ir, ""), A = Kn(T || b ? "".concat(T, " ").concat(b, " { ").concat(D, " }") : D);
1218
+ a.namespace && (A = pn(A, a.namespace));
1219
+ var _ = [];
1220
+ return Me(A, tr(v.concat(nr(function(x) {
1221
+ return _.push(x);
1222
+ })))), _;
1223
+ };
1224
+ return h.hash = u.length ? u.reduce(function(y, b) {
1225
+ return b.name || me(15), ee(y, b.name);
1226
+ }, nn).toString() : "", h;
1227
+ }
1228
+ var Dr = new fn(), at = Lr(), hn = B.createContext({ shouldForwardProp: void 0, styleSheet: Dr, stylis: at });
1229
+ hn.Consumer;
1230
+ B.createContext(void 0);
1231
+ function It() {
1232
+ return qt(hn);
1233
+ }
1234
+ var ct = (function() {
1235
+ function e(t, n) {
1236
+ var r = this;
1237
+ this.inject = function(o, s) {
1238
+ s === void 0 && (s = at);
1239
+ var a = r.name + s.hash;
1240
+ o.hasNameForId(r.id, a) || o.insertRules(r.id, a, s(r.rules, a, "@keyframes"));
1241
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, mt(this, function() {
1242
+ throw me(12, String(r.name));
1243
+ });
1244
+ }
1245
+ return e.prototype.getName = function(t) {
1246
+ return t === void 0 && (t = at), this.name + t.hash;
1247
+ }, e;
1248
+ })(), Fr = function(e) {
1249
+ return e >= "A" && e <= "Z";
1250
+ };
1251
+ function Lt(e) {
1252
+ for (var t = "", n = 0; n < e.length; n++) {
1253
+ var r = e[n];
1254
+ if (n === 1 && r === "-" && e[0] === "-") return e;
1255
+ Fr(r) ? t += "-" + r.toLowerCase() : t += r;
1256
+ }
1257
+ return t.startsWith("ms-") ? "-" + t : t;
1258
+ }
1259
+ var mn = function(e) {
1260
+ return e == null || e === !1 || e === "";
1261
+ }, gn = function(e) {
1262
+ var t, n, r = [];
1263
+ for (var o in e) {
1264
+ var s = e[o];
1265
+ e.hasOwnProperty(o) && !mn(s) && (Array.isArray(s) && s.isCss || fe(s) ? r.push("".concat(Lt(o), ":"), s, ";") : pe(s) ? r.push.apply(r, oe(oe(["".concat(o, " {")], gn(s), !1), ["}"], !1)) : r.push("".concat(Lt(o), ": ").concat((t = o, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in or || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1266
+ }
1267
+ return r;
1268
+ };
1269
+ function re(e, t, n, r) {
1270
+ if (mn(e)) return [];
1271
+ if (ht(e)) return [".".concat(e.styledComponentId)];
1272
+ if (fe(e)) {
1273
+ if (!fe(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
1274
+ var o = e(t);
1275
+ return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof ct || pe(o) || o === null || console.error("".concat(sn(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.")), re(o, t, n, r);
1276
+ }
1277
+ var s;
1278
+ return e instanceof ct ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : pe(e) ? gn(e) : Array.isArray(e) ? Array.prototype.concat.apply(He, e.map(function(a) {
1279
+ return re(a, t, n, r);
1280
+ })) : [e.toString()];
1281
+ }
1282
+ function $r(e) {
1283
+ for (var t = 0; t < e.length; t += 1) {
1284
+ var n = e[t];
1285
+ if (fe(n) && !ht(n)) return !1;
1286
+ }
1287
+ return !0;
1288
+ }
1289
+ var Mr = rn(Ge), zr = (function() {
1290
+ function e(t, n, r) {
1291
+ this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && $r(t), this.componentId = n, this.baseHash = ee(Mr, n), this.baseStyle = r, fn.registerId(n);
1292
+ }
1293
+ return e.prototype.generateAndInjectStyles = function(t, n, r) {
1294
+ var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1295
+ if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = te(o, this.staticRulesId);
1296
+ else {
1297
+ var s = st(re(this.rules, t, n, r)), a = ot(ee(this.baseHash, s) >>> 0);
1298
+ if (!n.hasNameForId(this.componentId, a)) {
1299
+ var c = r(s, ".".concat(a), void 0, this.componentId);
1300
+ n.insertRules(this.componentId, a, c);
1301
+ }
1302
+ o = te(o, a), this.staticRulesId = a;
1303
+ }
1304
+ else {
1305
+ for (var u = ee(this.baseHash, r.hash), l = "", v = 0; v < this.rules.length; v++) {
1306
+ var h = this.rules[v];
1307
+ if (typeof h == "string") l += h, process.env.NODE_ENV !== "production" && (u = ee(u, h));
1308
+ else if (h) {
1309
+ var y = st(re(h, t, n, r));
1310
+ u = ee(u, y + v), l += y;
1311
+ }
1312
+ }
1313
+ if (l) {
1314
+ var b = ot(u >>> 0);
1315
+ n.hasNameForId(this.componentId, b) || n.insertRules(this.componentId, b, r(l, ".".concat(b), void 0, this.componentId)), o = te(o, b);
1316
+ }
1317
+ }
1318
+ return o;
1319
+ }, e;
1320
+ })(), yn = B.createContext(void 0);
1321
+ yn.Consumer;
1322
+ var Qe = {}, Dt = /* @__PURE__ */ new Set();
1323
+ function Vr(e, t, n) {
1324
+ var r = ht(e), o = e, s = !Ke(e), a = t.attrs, c = a === void 0 ? He : a, u = t.componentId, l = u === void 0 ? (function(R, f) {
1325
+ var S = typeof R != "string" ? "sc" : Tt(R);
1326
+ Qe[S] = (Qe[S] || 0) + 1;
1327
+ var m = "".concat(S, "-").concat(on(Ge + S + Qe[S]));
1328
+ return f ? "".concat(f, "-").concat(m) : m;
1329
+ })(t.displayName, t.parentComponentId) : u, v = t.displayName, h = v === void 0 ? (function(R) {
1330
+ return Ke(R) ? "styled.".concat(R) : "Styled(".concat(sn(R), ")");
1331
+ })(e) : v, y = t.displayName && t.componentId ? "".concat(Tt(t.displayName), "-").concat(t.componentId) : t.componentId || l, b = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, T = t.shouldForwardProp;
1332
+ if (r && o.shouldForwardProp) {
1333
+ var P = o.shouldForwardProp;
1334
+ if (t.shouldForwardProp) {
1335
+ var D = t.shouldForwardProp;
1336
+ T = function(R, f) {
1337
+ return P(R, f) && D(R, f);
1338
+ };
1339
+ } else T = P;
1340
+ }
1341
+ var A = new zr(n, y, r ? o.componentStyle : void 0);
1342
+ function _(R, f) {
1343
+ return (function(S, m, q) {
1344
+ var X = S.attrs, Xe = S.componentStyle, ge = S.defaultProps, Ee = S.foldedComponentIds, Pe = S.styledComponentId, ye = S.target, Re = B.useContext(yn), Te = It(), ie = S.shouldForwardProp || Te.shouldForwardProp;
1345
+ process.env.NODE_ENV !== "production" && bt(Pe);
1346
+ var ve = ar(m, Re, ge) || de, z = (function(F, G, J) {
1347
+ for (var O, $ = M(M({}, G), { className: void 0, theme: J }), Q = 0; Q < F.length; Q += 1) {
1348
+ var ae = fe(O = F[Q]) ? O($) : O;
1349
+ for (var Z in ae) $[Z] = Z === "className" ? te($[Z], ae[Z]) : Z === "style" ? M(M({}, $[Z]), ae[Z]) : ae[Z];
1350
+ }
1351
+ return G.className && ($.className = te($.className, G.className)), $;
1352
+ })(X, m, ve), i = z.as || ye, p = {};
1353
+ for (var w in z) z[w] === void 0 || w[0] === "$" || w === "as" || w === "theme" && z.theme === ve || (w === "forwardedAs" ? p.as = z.forwardedAs : ie && !ie(w, i) || (p[w] = z[w], ie || process.env.NODE_ENV !== "development" || Mn(w) || Dt.has(w) || !rt.has(i) || (Dt.add(w), console.warn('styled-components: it looks like an unknown prop "'.concat(w, '" 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.)')))));
1354
+ var N = (function(F, G) {
1355
+ var J = It(), O = F.generateAndInjectStyles(G, J.styleSheet, J.stylis);
1356
+ return process.env.NODE_ENV !== "production" && bt(O), O;
1357
+ })(Xe, z);
1358
+ process.env.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(N);
1359
+ var V = te(Ee, Pe);
1360
+ return N && (V += " " + N), z.className && (V += " " + z.className), p[Ke(i) && !rt.has(i) ? "class" : "className"] = V, q && (p.ref = q), Cn(i, p);
1361
+ })(x, R, f);
1362
+ }
1363
+ _.displayName = h;
1364
+ var x = B.forwardRef(_);
1365
+ return x.attrs = b, x.componentStyle = A, x.displayName = h, x.shouldForwardProp = T, x.foldedComponentIds = r ? te(o.foldedComponentIds, o.styledComponentId) : "", x.styledComponentId = y, x.target = r ? o.target : e, Object.defineProperty(x, "defaultProps", { get: function() {
1366
+ return this._foldedDefaultProps;
1367
+ }, set: function(R) {
1368
+ this._foldedDefaultProps = r ? (function(f) {
1369
+ for (var S = [], m = 1; m < arguments.length; m++) S[m - 1] = arguments[m];
1370
+ for (var q = 0, X = S; q < X.length; q++) it(f, X[q], !0);
1371
+ return f;
1372
+ })({}, o.defaultProps, R) : R;
1373
+ } }), process.env.NODE_ENV !== "production" && (ir(h, y), x.warnTooManyClasses = /* @__PURE__ */ (function(R, f) {
1374
+ var S = {}, m = !1;
1375
+ return function(q) {
1376
+ if (!m && (S[q] = !0, Object.keys(S).length >= 200)) {
1377
+ var X = f ? ' with the id of "'.concat(f, '"') : "";
1378
+ console.warn("Over ".concat(200, " classes were generated for component ").concat(R).concat(X, `.
1379
+ `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1380
+ Example:
1381
+ const Component = styled.div.attrs(props => ({
1382
+ style: {
1383
+ background: props.background,
1384
+ },
1385
+ }))\`width: 100%;\`
1386
+
1387
+ <Component />`), m = !0, S = {};
1388
+ }
1389
+ };
1390
+ })(h, y)), mt(x, function() {
1391
+ return ".".concat(x.styledComponentId);
1392
+ }), s && un(x, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), x;
1393
+ }
1394
+ function Ft(e, t) {
1395
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
1396
+ return n;
1397
+ }
1398
+ var $t = function(e) {
1399
+ return Object.assign(e, { isCss: !0 });
1400
+ };
1401
+ function vn(e) {
1402
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1403
+ if (fe(e) || pe(e)) return $t(re(Ft(He, oe([e], t, !0))));
1404
+ var r = e;
1405
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? re(r) : $t(re(Ft(r, t)));
1406
+ }
1407
+ function lt(e, t, n) {
1408
+ if (n === void 0 && (n = de), !t) throw me(1, t);
1409
+ var r = function(o) {
1410
+ for (var s = [], a = 1; a < arguments.length; a++) s[a - 1] = arguments[a];
1411
+ return e(t, n, vn.apply(void 0, oe([o], s, !1)));
1412
+ };
1413
+ return r.attrs = function(o) {
1414
+ return lt(e, t, M(M({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1415
+ }, r.withConfig = function(o) {
1416
+ return lt(e, t, M(M({}, n), o));
1417
+ }, r;
1418
+ }
1419
+ var bn = function(e) {
1420
+ return lt(Vr, e);
1421
+ }, C = bn;
1422
+ rt.forEach(function(e) {
1423
+ C[e] = bn(e);
1424
+ });
1425
+ function Yr(e) {
1426
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1427
+ 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.");
1428
+ var r = st(vn.apply(void 0, oe([e], t, !1))), o = on(r);
1429
+ return new ct(o, r);
1430
+ }
1431
+ process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1432
+ Perhaps you're looking to import 'styled-components/native'?
1433
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1434
+ var Oe = "__sc-".concat(se, "__");
1435
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Oe] || (window[Oe] = 0), window[Oe] === 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.
1436
+
1437
+ See https://s-c.sh/2BAXzed for more info.`), window[Oe] += 1);
1438
+ function gt({ ...e }) {
1439
+ return /* @__PURE__ */ d.jsx(qr, { ...e });
1440
+ }
1441
+ const qr = C.button`
1442
+ display: flex;
1443
+ align-items: center;
1444
+ justify-content: center;
1445
+ margin: 0;
1446
+ padding: 0;
1447
+ width: 2.25rem;
1448
+ height: 2.25rem;
1449
+ cursor: pointer;
1450
+ color: white;
1451
+ background: none;
1452
+ border: none;
1453
+ border-radius: 50%;
1454
+ transition: background 0.2s ease-in-out;
1455
+
1456
+ svg {
1457
+ width: 1.25rem;
1458
+ height: 1.25rem;
1459
+ flex-shrink: 0;
1460
+ }
1461
+
1462
+ &:hover {
1463
+ background: rgba(0, 0, 0, 0.1);
1464
+ }
1465
+
1466
+ &:focus {
1467
+ outline: none;
1468
+ }
1469
+
1470
+ &:disabled {
1471
+ opacity: 0.5;
1472
+ cursor: not-allowed;
1473
+ }
1474
+ `, Mt = (e) => {
1475
+ let t;
1476
+ const n = /* @__PURE__ */ new Set(), r = (l, v) => {
1477
+ const h = typeof l == "function" ? l(t) : l;
1478
+ if (!Object.is(h, t)) {
1479
+ const y = t;
1480
+ t = v ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), n.forEach((b) => b(t, y));
1481
+ }
1482
+ }, o = () => t, c = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, c);
1483
+ return c;
1484
+ }, Ur = ((e) => e ? Mt(e) : Mt), Wr = (e) => e;
1485
+ function wn(e, t = Wr) {
1486
+ const n = B.useSyncExternalStore(
1487
+ e.subscribe,
1488
+ B.useCallback(() => t(e.getState()), [e, t]),
1489
+ B.useCallback(() => t(e.getInitialState()), [e, t])
1490
+ );
1491
+ return B.useDebugValue(n), n;
1492
+ }
1493
+ const zt = (e) => {
1494
+ const t = Ur(e), n = (r) => wn(t, r);
1495
+ return Object.assign(n, t), n;
1496
+ }, Br = ((e) => e ? zt(e) : zt);
1497
+ function Gr(e, t, n) {
1498
+ const r = {
1499
+ days: 86400,
1500
+ hours: 3600,
1501
+ minutes: 60,
1502
+ seconds: 1,
1503
+ milliseconds: 1e-3
1504
+ };
1505
+ return e * (r[t] / r[n]);
1506
+ }
1507
+ function Hr(e) {
1508
+ return Gr(e, "milliseconds", "seconds");
1509
+ }
1510
+ const Vt = (e) => {
1511
+ const t = Math.floor(e / 60), n = Math.floor(e % 60);
1512
+ return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
1513
+ };
1514
+ function Xr(e) {
1515
+ const t = typeof window < "u" && window.navigator?.userAgent || "";
1516
+ return e.test(t);
1517
+ }
1518
+ const Sn = Xr(/iPhone|iPad|iPod/i);
1519
+ function Jr() {
1520
+ const e = document;
1521
+ return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
1522
+ }
1523
+ function Zr(e) {
1524
+ e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
1525
+ }
1526
+ function Kr(e) {
1527
+ e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
1528
+ }
1529
+ function Qr(e, t) {
1530
+ return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
1531
+ e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
1532
+ };
1533
+ }
1534
+ const eo = (e, t) => ({
1535
+ currentTime: 0,
1536
+ duration: 0,
1537
+ isEnded: !1,
1538
+ isLoading: !1,
1539
+ isLoop: !1,
1540
+ isMetaLoaded: !1,
1541
+ isPlaying: !1,
1542
+ isReady: !1,
1543
+ isStarted: !1,
1544
+ pauseTime: 0,
1545
+ seekTime: -1,
1546
+ startTime: -1,
1547
+ volume: 100,
1548
+ destroy: () => {
1549
+ },
1550
+ handleDurationChange: () => {
1551
+ const n = t().techRef.current;
1552
+ n && e({ duration: n.duration });
1553
+ },
1554
+ handleEnd: () => {
1555
+ t().techRef.current && e({
1556
+ isEnded: !0,
1557
+ isLoading: !1,
1558
+ isMetaLoaded: !1,
1559
+ isPlaying: !1
1560
+ });
1561
+ },
1562
+ handleLoadedMetadata: () => {
1563
+ const n = t().techRef.current;
1564
+ n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
1565
+ currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
1566
+ duration: n.duration,
1567
+ startTime: -1,
1568
+ isMetaLoaded: !0,
1569
+ volume: n.muted ? 0 : 100
1570
+ }));
1571
+ },
1572
+ handleLoadStart: () => {
1573
+ const n = t().techRef.current;
1574
+ n && (e({ isReady: !0 }), n.play().then(() => {
1575
+ e({
1576
+ isEnded: !1,
1577
+ isLoading: !1,
1578
+ isPlaying: !0,
1579
+ isStarted: !0,
1580
+ pauseTime: 0
1581
+ });
1582
+ }).catch(
1583
+ (r) => e(() => (console.info("Player failed to autoplay", r), {
1584
+ isStarted: !1,
1585
+ isEnded: !1,
1586
+ isLoading: !1,
1587
+ isPlaying: !1
1588
+ }))
1589
+ ));
1590
+ },
1591
+ handlePause: () => e({
1592
+ isPlaying: !1,
1593
+ pauseTime: Date.now()
1594
+ }),
1595
+ handlePlay: () => e({
1596
+ isPlaying: !0,
1597
+ pauseTime: 0
1598
+ }),
1599
+ handlePlaying: () => e({ isLoading: !1 }),
1600
+ handleSeeked: () => e({ isLoading: !1 }),
1601
+ handleSeeking: () => e({ isLoading: !0 }),
1602
+ handleTimeUpdate: () => {
1603
+ const n = t().techRef.current;
1604
+ n && e({ currentTime: n.currentTime });
1605
+ },
1606
+ handleWaiting: () => e({ isLoading: !0 }),
1607
+ pause: () => {
1608
+ const n = t().techRef.current;
1609
+ n && (n.pause(), e({
1610
+ isEnded: !1,
1611
+ isPlaying: !1,
1612
+ pauseTime: Date.now()
1613
+ }));
1614
+ },
1615
+ pauseTimeDiff: () => Hr(Date.now() - t().pauseTime),
1616
+ play: () => {
1617
+ const n = t().techRef.current;
1618
+ n && (n.play(), e({
1619
+ isEnded: !1,
1620
+ isPlaying: !0,
1621
+ isStarted: !0,
1622
+ pauseTime: 0
1623
+ }));
1624
+ },
1625
+ seek: (n) => {
1626
+ const r = t().techRef.current;
1627
+ r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
1628
+ seekTime: -1,
1629
+ currentTime: n,
1630
+ isStarted: !0,
1631
+ isEnded: !1,
1632
+ isPlaying: !0
1633
+ }));
1634
+ },
1635
+ setIsLoading: (n) => e({ isLoading: n }),
1636
+ setIsLoop: (n) => {
1637
+ const r = t().techRef.current;
1638
+ r && (r.loop = n, e({ isLoop: n }));
1639
+ },
1640
+ setStartTime: (n) => e({ startTime: n }),
1641
+ setVolume: (n) => {
1642
+ const r = t().techRef.current;
1643
+ r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
1644
+ },
1645
+ stop: () => {
1646
+ t().techRef.current && e({
1647
+ isPlaying: !1,
1648
+ isLoading: !1
1649
+ });
1650
+ }
1651
+ }), to = (e) => ({
1652
+ idleLocks: /* @__PURE__ */ new Set(),
1653
+ addIdleLock: (t) => e((n) => ({
1654
+ idleLocks: new Set(n.idleLocks).add(t)
1655
+ })),
1656
+ removeIdleLock: (t) => e((n) => {
1657
+ const r = new Set(n.idleLocks);
1658
+ return r.delete(t), { idleLocks: r };
1659
+ })
1660
+ }), no = (e, t) => ({
1661
+ isFullscreen: !1,
1662
+ isFullscreenReady: !1,
1663
+ exitFullscreen: () => {
1664
+ Kr(document), e({ isFullscreen: !1 });
1665
+ },
1666
+ requestFullscreen: () => {
1667
+ const n = t().techRef.current, r = t().containerRef.current;
1668
+ if (!n || !r) return;
1669
+ const o = Sn ? n : r;
1670
+ o && Zr(o), e({ isFullscreen: !0 });
1671
+ },
1672
+ setIsFullscreen: (n) => e({ isFullscreen: n }),
1673
+ setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
1674
+ }), ro = (e) => ({
1675
+ url: "",
1676
+ setURL: (t) => e({ url: t })
1677
+ }), oo = (e) => () => ({
1678
+ ...e
1679
+ }), so = (e, t) => Br()((...n) => ({
1680
+ ...eo(...n),
1681
+ ...to(...n),
1682
+ ...no(...n),
1683
+ ...ro(...n),
1684
+ ...oo({ techRef: e, containerRef: t })(...n)
1685
+ })), xn = _n(null), io = ({ children: e }) => {
1686
+ const t = xe(null), n = xe(null), r = xe(null);
1687
+ return t.current || (t.current = so(n, r)), /* @__PURE__ */ d.jsx(xn.Provider, { value: t.current, children: e });
1688
+ }, E = (e) => {
1689
+ const t = qt(xn);
1690
+ if (!t)
1691
+ throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1692
+ return wn(t, e);
1693
+ };
1694
+ function ao() {
1695
+ const [e, t] = ut(!1), n = E((a) => a.isPlaying), r = E((a) => a.isStarted), o = E((a) => a.play), s = () => {
1696
+ n || o();
1697
+ };
1698
+ return $e(() => {
1699
+ t(!r && !n);
1700
+ }, [r, n]), e ? /* @__PURE__ */ d.jsx(gt, { onClick: s, children: n ? /* @__PURE__ */ d.jsx(Wt, {}) : /* @__PURE__ */ d.jsx(Bt, {}) }) : null;
1701
+ }
1702
+ function kn({ children: e }) {
1703
+ return /* @__PURE__ */ d.jsx(io, { children: e });
1704
+ }
1705
+ const Ye = {
1706
+ hls: "hls",
1707
+ dash: "dash"
1708
+ };
1709
+ function co(e) {
1710
+ return e && /\.m3u8/i.test(e) ? Ye.hls : Ye.dash;
1711
+ }
1712
+ const lo = Ut(() => import("./player-hls-tech-sXKjWi4D.js")), uo = Ut(() => import("./player-dash-tech-D7KQCWFx.js"));
1713
+ function En({ url: e, isLive: t, isMuted: n = !1 }) {
1714
+ const r = E((f) => f.handleDurationChange), o = E((f) => f.handleEnd), s = E((f) => f.handleLoadedMetadata), a = E((f) => f.handleLoadStart), c = E((f) => f.handlePause), u = E((f) => f.handlePlay), l = E((f) => f.handlePlaying), v = E((f) => f.handleSeeked), h = E((f) => f.handleSeeking), y = E((f) => f.handleTimeUpdate), b = E((f) => f.handleWaiting), T = E((f) => f.techRef), P = xe(null), D = () => t ? {} : {
1715
+ onDurationChange: r,
1716
+ onSeeked: v,
1717
+ onSeeking: h,
1718
+ onTimeUpdate: A
1719
+ }, A = () => {
1720
+ (!P.current || Date.now() - P.current >= 1e3) && (y(), P.current = Date.now());
1721
+ }, x = (() => {
1722
+ switch (co(e)) {
1723
+ case Ye.hls:
1724
+ return lo;
1725
+ case Ye.dash:
1726
+ return uo;
1727
+ }
1728
+ return null;
1729
+ })();
1730
+ if (!x) return null;
1731
+ const R = D();
1732
+ return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
1733
+ /* @__PURE__ */ d.jsx(jn, { fallback: null, children: /* @__PURE__ */ d.jsx(x, { isLive: t, url: e }) }),
1734
+ /* @__PURE__ */ d.jsx(
1735
+ fo,
1736
+ {
1737
+ ref: T,
1738
+ playsInline: !0,
1739
+ autoPlay: !0,
1740
+ controls: !1,
1741
+ muted: n,
1742
+ preload: "auto",
1743
+ crossOrigin: "anonymous",
1744
+ onEnded: o,
1745
+ onLoadedMetadata: s,
1746
+ onLoadStart: a,
1747
+ onPause: c,
1748
+ onPlay: u,
1749
+ onPlaying: l,
1750
+ onWaiting: b,
1751
+ tabIndex: -1,
1752
+ ...R
1753
+ }
1754
+ )
1755
+ ] });
1756
+ }
1757
+ const fo = C.video`
1758
+ position: relative;
1759
+ width: 100%;
1760
+ height: 100%;
1761
+
1762
+ @media (min-width: 768px) {
1763
+ pointer-events: none;
1764
+ }
1765
+ `, Pn = () => {
1766
+ const e = E((l) => l.containerRef), t = E((l) => l.exitFullscreen), n = E((l) => l.isFullscreen), r = E((l) => l.requestFullscreen), o = E((l) => l.setIsFullscreen), s = E((l) => l.setIsFullscreenReady), a = E((l) => l.techRef), c = An(
1767
+ (l) => {
1768
+ l.stopPropagation(), o(Jr());
1769
+ },
1770
+ [o]
1771
+ ), u = () => {
1772
+ n ? t() : r();
1773
+ };
1774
+ return $e(() => {
1775
+ const l = Sn ? a.current : e.current;
1776
+ if (l)
1777
+ return Qr(l, c);
1778
+ }, [e, c, a]), $e(() => {
1779
+ s(!0);
1780
+ }, [s]), /* @__PURE__ */ d.jsx(gt, { onClick: u, children: n ? /* @__PURE__ */ d.jsx(On, {}) : /* @__PURE__ */ d.jsx(Nn, {}) });
1781
+ };
1782
+ function po(e, t = 500) {
1783
+ const [n, r] = ut(e);
1784
+ return $e(() => {
1785
+ const o = window.setTimeout(() => r(e), t);
1786
+ return () => {
1787
+ window.clearTimeout(o);
1788
+ };
1789
+ }, [e, t]), n;
1790
+ }
1791
+ function Rn({ style: e, ...t }) {
1792
+ const n = E((o) => o.isLoading);
1793
+ return po(n, 50) ? /* @__PURE__ */ d.jsx(ho, { style: e, ...t, children: /* @__PURE__ */ d.jsx(go, {}) }) : null;
1794
+ }
1795
+ const ho = C.div`
1796
+ pointer-events: none;
1797
+ position: absolute;
1798
+ top: 0;
1799
+ right: 0;
1800
+ bottom: 0;
1801
+ left: 0;
1802
+ display: flex;
1803
+ width: 100%;
1804
+ height: 100%;
1805
+ align-items: center;
1806
+ justify-content: center;
1807
+ `, mo = Yr`
1808
+ from {
1809
+ transform: rotate(0deg);
1810
+ }
1811
+ to {
1812
+ transform: rotate(360deg);
1813
+ }
1814
+ `, go = C.div`
1815
+ width: 2rem;
1816
+ height: 2rem;
1817
+ border: 0.25rem solid #fff;
1818
+ border-bottom-color: transparent;
1819
+ border-radius: 50%;
1820
+ animation: ${mo} 1s linear infinite;
1821
+ `;
1822
+ function Yo(e) {
1823
+ return /* @__PURE__ */ d.jsx(kn, { children: /* @__PURE__ */ d.jsx(yo, { ...e }) });
1824
+ }
1825
+ function yo({ url: e }) {
1826
+ const t = E((n) => n.containerRef);
1827
+ return /* @__PURE__ */ d.jsxs(vo, { ref: t, children: [
1828
+ /* @__PURE__ */ d.jsx(En, { url: e, isLive: !0 }),
1829
+ /* @__PURE__ */ d.jsx(Rn, {}),
1830
+ /* @__PURE__ */ d.jsx(bo, { children: /* @__PURE__ */ d.jsx(wo, { children: /* @__PURE__ */ d.jsxs(So, { children: [
1831
+ /* @__PURE__ */ d.jsx(xo, { children: /* @__PURE__ */ d.jsx(ao, {}) }),
1832
+ /* @__PURE__ */ d.jsx(ko, {}),
1833
+ /* @__PURE__ */ d.jsx(Eo, { children: /* @__PURE__ */ d.jsx(Pn, {}) })
1834
+ ] }) }) })
1835
+ ] });
1836
+ }
1837
+ const vo = C.div`
1838
+ position: absolute;
1839
+ top: 0;
1840
+ left: 0;
1841
+ width: 100%;
1842
+ height: 100%;
1843
+ background-color: black;
1844
+ color: white;
1845
+ overflow: hidden;
1846
+ `, bo = C.div`
1847
+ position: absolute;
1848
+ left: 0;
1849
+ width: 100%;
1850
+ bottom: 0;
1851
+ z-index: 10;
1852
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
1853
+ padding-top: 1rem;
1854
+
1855
+ @media (min-width: 768px) {
1856
+ padding-top: 2rem;
1857
+ }
1858
+ `, wo = C.div`
1859
+ display: flex;
1860
+ flex-direction: column;
1861
+ padding-left: 0.5rem;
1862
+ padding-right: 0.5rem;
1863
+ line-height: 1;
1864
+ font-size: 0;
1865
+
1866
+ @media (min-width: 768px) {
1867
+ padding-left: 1rem;
1868
+ padding-right: 1rem;
1869
+ }
1870
+ `, So = C.div`
1871
+ margin: auto 0;
1872
+ display: flex;
1873
+ width: 100%;
1874
+ align-items: center;
1875
+ `, yt = C.div`
1876
+ display: flex;
1877
+ flex: 1;
1878
+ align-items: center;
1879
+ gap: 0.5rem;
1880
+
1881
+ @media (min-width: 768px) {
1882
+ gap: 1rem;
1883
+ }
1884
+ `, xo = C(yt)`
1885
+ justify-content: flex-start;
1886
+ `, ko = C(yt)`
1887
+ justify-content: center;
1888
+ `, Eo = C(yt)`
1889
+ justify-content: flex-end;
1890
+ `;
1891
+ function Po() {
1892
+ const e = E((o) => o.isPlaying), t = E((o) => o.pause), n = E((o) => o.play), r = () => {
1893
+ e ? t() : n();
1894
+ };
1895
+ return /* @__PURE__ */ d.jsx(gt, { onClick: r, children: e ? /* @__PURE__ */ d.jsx(Wt, {}) : /* @__PURE__ */ d.jsx(Bt, {}) });
1896
+ }
1897
+ function Ro(e) {
1898
+ return null;
1899
+ }
1900
+ function To() {
1901
+ const [e, t] = ut(-1), n = E((s) => s.currentTime), r = E((s) => s.duration), o = parseFloat(
1902
+ (r ? (e !== -1 ? e : n) / r * 100 : 0).toFixed(1)
1903
+ );
1904
+ return /* @__PURE__ */ d.jsxs(Co, { children: [
1905
+ /* @__PURE__ */ d.jsx(Yt, { children: /* @__PURE__ */ d.jsx(jo, { children: Vt(n) }) }),
1906
+ /* @__PURE__ */ d.jsx(_o, { children: /* @__PURE__ */ d.jsx(Ro, { value: o, step: 0.1 }) }),
1907
+ /* @__PURE__ */ d.jsx(Yt, { children: /* @__PURE__ */ d.jsx(Ao, { children: Vt(r) }) })
1908
+ ] });
1909
+ }
1910
+ const Co = C.div`
1911
+ display: flex;
1912
+ align-items: center;
1913
+ `, Yt = C.div``, _o = C.div`
1914
+ flex: 1;
1915
+ `, Tn = C.p`
1916
+ margin: 0;
1917
+ color: #fff;
1918
+ font-size: 0.875rem;
1919
+ `, jo = C(Tn)`
1920
+ padding-left: 0.25rem;
1921
+ `, Ao = C(Tn)`
1922
+ padding-right: 0.25rem;
1923
+ `;
1924
+ function qo(e) {
1925
+ return /* @__PURE__ */ d.jsx(kn, { children: /* @__PURE__ */ d.jsx(Oo, { ...e }) });
1926
+ }
1927
+ function Oo({ url: e }) {
1928
+ const t = E((n) => n.containerRef);
1929
+ return /* @__PURE__ */ d.jsxs(No, { ref: t, children: [
1930
+ /* @__PURE__ */ d.jsx(En, { url: e, isLive: !1 }),
1931
+ /* @__PURE__ */ d.jsx(Rn, {}),
1932
+ /* @__PURE__ */ d.jsx(Io, { children: /* @__PURE__ */ d.jsxs(Lo, { children: [
1933
+ /* @__PURE__ */ d.jsx(To, {}),
1934
+ /* @__PURE__ */ d.jsxs(Do, { children: [
1935
+ /* @__PURE__ */ d.jsx(Fo, { children: /* @__PURE__ */ d.jsx(Po, {}) }),
1936
+ /* @__PURE__ */ d.jsx($o, {}),
1937
+ /* @__PURE__ */ d.jsx(Mo, { children: /* @__PURE__ */ d.jsx(Pn, {}) })
1938
+ ] })
1939
+ ] }) })
1940
+ ] });
1941
+ }
1942
+ const No = C.div`
1943
+ position: absolute;
1944
+ top: 0;
1945
+ left: 0;
1946
+ width: 100%;
1947
+ height: 100%;
1948
+ background-color: black;
1949
+ color: white;
1950
+ overflow: hidden;
1951
+ `, Io = C.div`
1952
+ position: absolute;
1953
+ left: 0;
1954
+ width: 100%;
1955
+ bottom: 0;
1956
+ z-index: 10;
1957
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
1958
+ padding-top: 1rem;
1959
+
1960
+ @media (min-width: 768px) {
1961
+ padding-top: 2rem;
1962
+ }
1963
+ `, Lo = C.div`
1964
+ display: flex;
1965
+ flex-direction: column;
1966
+ padding-left: 0.5rem;
1967
+ padding-right: 0.5rem;
1968
+ line-height: 1;
1969
+ font-size: 0;
1970
+ height: 3.5rem;
1971
+
1972
+ @media (min-width: 768px) {
1973
+ padding-left: 1rem;
1974
+ padding-right: 1rem;
1975
+ height: 4rem;
1976
+ }
1977
+ `, Do = C.div`
1978
+ margin: auto 0;
1979
+ display: flex;
1980
+ width: 100%;
1981
+ align-items: center;
1982
+ `, vt = C.div`
1983
+ display: flex;
1984
+ flex: 1;
1985
+ align-items: center;
1986
+ gap: 0.5rem;
1987
+
1988
+ @media (min-width: 768px) {
1989
+ gap: 1rem;
1990
+ }
1991
+ `, Fo = C(vt)`
1992
+ justify-content: flex-start;
1993
+ `, $o = C(vt)`
1994
+ justify-content: center;
1995
+ `, Mo = C(vt)`
1996
+ justify-content: flex-end;
1997
+ `;
1998
+ export {
1999
+ Yo as L,
2000
+ qo as V,
2001
+ E as u
2002
+ };
2003
+ //# sourceMappingURL=index-DXKCbM7O.js.map