@devix-technologies/react-gjirafa-vp-player 1.0.11 → 1.0.13

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.
@@ -48,7 +48,7 @@ function bt() {
48
48
  function e(o) {
49
49
  if (o == null) return null;
50
50
  if (typeof o == "function")
51
- return o.$$typeof === R ? null : o.displayName || o.name || null;
51
+ return o.$$typeof === E ? null : o.displayName || o.name || null;
52
52
  if (typeof o == "string") return o;
53
53
  switch (o) {
54
54
  case f:
@@ -57,11 +57,11 @@ function bt() {
57
57
  return "Profiler";
58
58
  case h:
59
59
  return "StrictMode";
60
- case x:
61
- return "Suspense";
62
60
  case S:
61
+ return "Suspense";
62
+ case R:
63
63
  return "SuspenseList";
64
- case $:
64
+ case I:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof o == "object")
@@ -72,7 +72,7 @@ function bt() {
72
72
  return "Portal";
73
73
  case _:
74
74
  return (o.displayName || "Context") + ".Provider";
75
- case w:
75
+ case x:
76
76
  return (o._context.displayName || "Context") + ".Consumer";
77
77
  case T:
78
78
  var b = o.render;
@@ -120,7 +120,7 @@ function bt() {
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = I.A;
123
+ var o = O.A;
124
124
  return o === null ? null : o.getOwner();
125
125
  }
126
126
  function i() {
@@ -153,7 +153,7 @@ function bt() {
153
153
  }
154
154
  function m(o, b, C, L, K, D, _e, Se) {
155
155
  return C = D.ref, o = {
156
- $$typeof: k,
156
+ $$typeof: w,
157
157
  type: o,
158
158
  key: b,
159
159
  props: D,
@@ -234,9 +234,9 @@ React keys must be passed directly to JSX without using spread:
234
234
  );
235
235
  }
236
236
  function p(o) {
237
- typeof o == "object" && o !== null && o.$$typeof === k && o._store && (o._store.validated = 1);
237
+ typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
238
238
  }
239
- var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
239
+ var g = mt, w = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), O = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
242
  g = {
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
249
249
  i
250
250
  )(), ie = X(n(i)), oe = {};
251
251
  ce.Fragment = f, ce.jsx = function(o, b, C, L, K) {
252
- var D = 1e4 > I.recentlyCreatedOwnerStacks++;
252
+ var D = 1e4 > O.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
254
  o,
255
255
  b,
@@ -261,7 +261,7 @@ React keys must be passed directly to JSX without using spread:
261
261
  D ? X(n(o)) : ie
262
262
  );
263
263
  }, ce.jsxs = function(o, b, C, L, K) {
264
- var D = 1e4 > I.recentlyCreatedOwnerStacks++;
264
+ var D = 1e4 > O.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  o,
267
267
  b,
@@ -279,7 +279,7 @@ var We;
279
279
  function xt() {
280
280
  return We || (We = 1, process.env.NODE_ENV === "production" ? he.exports = vt() : he.exports = bt()), he.exports;
281
281
  }
282
- var j = xt();
282
+ var $ = xt();
283
283
  function Oe() {
284
284
  return Oe = Object.assign ? Object.assign.bind() : function(e) {
285
285
  for (var t = 1; t < arguments.length; t++) {
@@ -329,7 +329,7 @@ var Pt = /* @__PURE__ */ function() {
329
329
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
330
330
  }), this.tags = [], this.ctr = 0;
331
331
  }, e;
332
- }(), V = "-ms-", we = "-moz-", P = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
332
+ }(), V = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
333
333
  function Tt(e, t) {
334
334
  return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
335
335
  }
@@ -339,7 +339,7 @@ function at(e) {
339
339
  function At(e, t) {
340
340
  return (e = t.exec(e)) ? e[0] : e;
341
341
  }
342
- function E(e, t, r) {
342
+ function P(e, t, r) {
343
343
  return e.replace(t, r);
344
344
  }
345
345
  function je(e, t) {
@@ -363,7 +363,7 @@ function me(e, t) {
363
363
  function Ct(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, re = 1, it = 0, M = 0, O = 0, ae = "";
366
+ var Pe = 1, re = 1, it = 0, M = 0, j = 0, ae = "";
367
367
  function Ee(e, t, r, n, a, i, s) {
368
368
  return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
369
369
  }
@@ -371,13 +371,13 @@ function le(e, t) {
371
371
  return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
372
372
  }
373
373
  function It() {
374
- return O;
374
+ return j;
375
375
  }
376
376
  function Ot() {
377
- return O = M > 0 ? N(ae, --M) : 0, re--, O === 10 && (re = 1, Pe--), O;
377
+ return j = M > 0 ? N(ae, --M) : 0, re--, j === 10 && (re = 1, Pe--), j;
378
378
  }
379
379
  function B() {
380
- return O = M < it ? N(ae, M++) : 0, re++, O === 10 && (re = 1, Pe++), O;
380
+ return j = M < it ? N(ae, M++) : 0, re++, j === 10 && (re = 1, Pe++), j;
381
381
  }
382
382
  function q() {
383
383
  return N(ae, M);
@@ -436,25 +436,25 @@ function ve(e) {
436
436
  return at(pe(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
438
  function jt(e) {
439
- for (; (O = q()) && O < 33; )
439
+ for (; (j = q()) && j < 33; )
440
440
  B();
441
- return de(e) > 2 || de(O) > 3 ? "" : " ";
441
+ return de(e) > 2 || de(j) > 3 ? "" : " ";
442
442
  }
443
443
  function $t(e, t) {
444
- for (; --t && B() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
444
+ for (; --t && B() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
445
445
  ;
446
446
  return pe(e, ge() + (t < 6 && q() == 32 && B() == 32));
447
447
  }
448
448
  function $e(e) {
449
449
  for (; B(); )
450
- switch (O) {
450
+ switch (j) {
451
451
  // ] ) " '
452
452
  case e:
453
453
  return M;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
457
- e !== 34 && e !== 39 && $e(O);
457
+ e !== 34 && e !== 39 && $e(j);
458
458
  break;
459
459
  // (
460
460
  case 40:
@@ -468,8 +468,8 @@ function $e(e) {
468
468
  return M;
469
469
  }
470
470
  function Nt(e, t) {
471
- for (; B() && e + O !== 57; )
472
- if (e + O === 84 && q() === 47)
471
+ for (; B() && e + j !== 57; )
472
+ if (e + j === 84 && q() === 47)
473
473
  break;
474
474
  return "/*" + pe(t, M - 1) + "*" + ke(e === 47 ? e : B());
475
475
  }
@@ -482,19 +482,19 @@ function Ft(e) {
482
482
  return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
483
483
  }
484
484
  function be(e, t, r, n, a, i, s, c, d) {
485
- for (var m = 0, l = 0, p = s, g = 0, k = 0, v = 0, f = 1, h = 1, y = 1, w = 0, _ = "", T = a, x = i, S = n, u = _; h; )
486
- switch (v = w, w = B()) {
485
+ for (var m = 0, l = 0, p = s, g = 0, w = 0, v = 0, f = 1, h = 1, y = 1, x = 0, _ = "", T = a, S = i, R = n, u = _; h; )
486
+ switch (v = x, x = B()) {
487
487
  // (
488
488
  case 40:
489
489
  if (v != 108 && N(u, p - 1) == 58) {
490
- je(u += E(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
490
+ je(u += P(ve(x), "&", "&\f"), "&\f") != -1 && (y = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- u += ve(w);
497
+ u += ve(x);
498
498
  break;
499
499
  // \t \n \r \s
500
500
  case 9:
@@ -525,23 +525,23 @@ function be(e, t, r, n, a, i, s, c, d) {
525
525
  case 125 * f:
526
526
  case 59:
527
527
  case 0:
528
- switch (w) {
528
+ switch (x) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
532
  h = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- y == -1 && (u = E(u, /\f/g, "")), k > 0 && W(u) - p && me(k > 32 ? qe(u + ";", n, r, p - 1) : qe(E(u, " ", "") + ";", n, r, p - 2), d);
535
+ y == -1 && (u = P(u, /\f/g, "")), w > 0 && W(u) - p && me(w > 32 ? qe(u + ";", n, r, p - 1) : qe(P(u, " ", "") + ";", n, r, p - 2), d);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
539
  u += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (me(S = Ye(u, t, r, m, l, a, c, _, T = [], x = [], p), i), w === 123)
542
+ if (me(R = Ye(u, t, r, m, l, a, c, _, T = [], S = [], p), i), x === 123)
543
543
  if (l === 0)
544
- be(u, t, S, S, T, i, p, c, x);
544
+ be(u, t, R, R, T, i, p, c, S);
545
545
  else
546
546
  switch (g === 99 && N(u, 3) === 110 ? 100 : g) {
547
547
  // d l m s
@@ -549,25 +549,25 @@ function be(e, t, r, n, a, i, s, c, d) {
549
549
  case 108:
550
550
  case 109:
551
551
  case 115:
552
- be(e, S, S, n && me(Ye(e, S, S, 0, 0, a, c, _, a, T = [], p), x), a, x, p, c, n ? T : x);
552
+ be(e, R, R, n && me(Ye(e, R, R, 0, 0, a, c, _, a, T = [], p), S), a, S, p, c, n ? T : S);
553
553
  break;
554
554
  default:
555
- be(u, S, S, S, [""], x, 0, c, x);
555
+ be(u, R, R, R, [""], S, 0, c, S);
556
556
  }
557
557
  }
558
- m = l = k = 0, f = y = 1, _ = u = "", p = s;
558
+ m = l = w = 0, f = y = 1, _ = u = "", p = s;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- p = 1 + W(u), k = v;
562
+ p = 1 + W(u), w = v;
563
563
  default:
564
564
  if (f < 1) {
565
- if (w == 123)
565
+ if (x == 123)
566
566
  --f;
567
- else if (w == 125 && f++ == 0 && Ot() == 125)
567
+ else if (x == 125 && f++ == 0 && Ot() == 125)
568
568
  continue;
569
569
  }
570
- switch (u += ke(w), w * f) {
570
+ switch (u += ke(x), x * f) {
571
571
  // &
572
572
  case 38:
573
573
  y = l > 0 ? 1 : (u += "\f", -1);
@@ -578,7 +578,7 @@ function be(e, t, r, n, a, i, s, c, d) {
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- q() === 45 && (u += ve(B())), g = q(), l = p = W(_ = u += Lt(ge())), w++;
581
+ q() === 45 && (u += ve(B())), g = q(), l = p = W(_ = u += Lt(ge())), x++;
582
582
  break;
583
583
  // -
584
584
  case 45:
@@ -588,9 +588,9 @@ function be(e, t, r, n, a, i, s, c, d) {
588
588
  return i;
589
589
  }
590
590
  function Ye(e, t, r, n, a, i, s, c, d, m, l) {
591
- for (var p = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0, f = 0, h = 0; v < n; ++v)
592
- for (var y = 0, w = ue(e, p + 1, p = St(f = s[v])), _ = e; y < k; ++y)
593
- (_ = at(f > 0 ? g[y] + " " + w : E(w, /&\f/g, g[y]))) && (d[h++] = _);
591
+ for (var p = a - 1, g = a === 0 ? i : [""], w = Ve(g), v = 0, f = 0, h = 0; v < n; ++v)
592
+ for (var y = 0, x = ue(e, p + 1, p = St(f = s[v])), _ = e; y < w; ++y)
593
+ (_ = at(f > 0 ? g[y] + " " + x : P(x, /&\f/g, g[y]))) && (d[h++] = _);
594
594
  return Ee(e, t, r, a === 0 ? Le : c, d, m, l);
595
595
  }
596
596
  function Vt(e, t, r) {
@@ -691,7 +691,7 @@ function lt(e, t) {
691
691
  switch (Tt(e, t)) {
692
692
  // color-adjust
693
693
  case 5103:
694
- return P + "print-" + e + e;
694
+ return k + "print-" + e + e;
695
695
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
696
696
  case 5737:
697
697
  case 4201:
@@ -721,58 +721,58 @@ function lt(e, t) {
721
721
  case 5365:
722
722
  case 5621:
723
723
  case 3829:
724
- return P + e + e;
724
+ return k + e + e;
725
725
  // appearance, user-select, transform, hyphens, text-size-adjust
726
726
  case 5349:
727
727
  case 4246:
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return P + e + we + e + V + e + e;
731
+ return k + e + we + e + V + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return P + e + V + e + e;
735
+ return k + e + V + e + e;
736
736
  // order
737
737
  case 6165:
738
- return P + e + V + "flex-" + e + e;
738
+ return k + e + V + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + V + "flex-$1$2") + e;
741
+ return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + V + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return P + e + V + "flex-item-" + E(e, /flex-|-self/, "") + e;
744
+ return k + e + V + "flex-item-" + P(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return P + e + V + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
747
+ return k + e + V + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return P + e + V + E(e, "shrink", "negative") + e;
750
+ return k + e + V + P(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return P + e + V + E(e, "basis", "preferred-size") + e;
753
+ return k + e + V + P(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return P + "box-" + E(e, "-grow", "") + P + e + V + E(e, "grow", "positive") + e;
756
+ return k + "box-" + P(e, "-grow", "") + k + e + V + P(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
- return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
759
+ return k + P(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
760
760
  // cursor
761
761
  case 6187:
762
- return E(E(E(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
762
+ return P(P(P(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
763
763
  // background, background-image
764
764
  case 5495:
765
765
  case 3959:
766
- return E(e, /(image-set\([^]*)/, P + "$1$`$1");
766
+ return P(e, /(image-set\([^]*)/, k + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
769
+ return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
773
773
  case 4068:
774
774
  case 2532:
775
- return E(e, /(.+)-inline(.+)/, P + "$1$2") + e;
775
+ return P(e, /(.+)-inline(.+)/, k + "$1$2") + e;
776
776
  // (min|max)?(width|height|inline-size|block-size)
777
777
  case 8116:
778
778
  case 7059:
@@ -792,10 +792,10 @@ function lt(e, t) {
792
792
  if (N(e, t + 4) !== 45) break;
793
793
  // (f)ill-available, (f)it-content
794
794
  case 102:
795
- return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
795
+ return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
- return ~je(e, "stretch") ? lt(E(e, "stretch", "fill-available"), t) + e : e;
798
+ return ~je(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
799
799
  }
800
800
  break;
801
801
  // position: sticky
@@ -806,10 +806,10 @@ function lt(e, t) {
806
806
  switch (N(e, W(e) - 3 - (~je(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
- return E(e, ":", ":" + P) + e;
809
+ return P(e, ":", ":" + k) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + V + "$2box$3") + e;
812
+ return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + V + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
@@ -817,15 +817,15 @@ function lt(e, t) {
817
817
  switch (N(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return P + e + V + e + e;
828
+ return k + e + V + e + e;
829
829
  }
830
830
  return e;
831
831
  }
@@ -836,7 +836,7 @@ var Ht = function(t, r, n, a) {
836
836
  break;
837
837
  case nt:
838
838
  return te([le(t, {
839
- value: E(t.value, "@", "@" + P)
839
+ value: P(t.value, "@", "@" + k)
840
840
  })], a);
841
841
  case Le:
842
842
  if (t.length) return Ct(t.props, function(i) {
@@ -845,16 +845,16 @@ var Ht = function(t, r, n, a) {
845
845
  case ":read-only":
846
846
  case ":read-write":
847
847
  return te([le(t, {
848
- props: [E(i, /:(read-\w+)/, ":" + we + "$1")]
848
+ props: [P(i, /:(read-\w+)/, ":" + we + "$1")]
849
849
  })], a);
850
850
  // :placeholder
851
851
  case "::placeholder":
852
852
  return te([le(t, {
853
- props: [E(i, /:(plac\w+)/, ":" + P + "input-$1")]
853
+ props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
854
854
  }), le(t, {
855
- props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
855
+ props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
856
856
  }), le(t, {
857
- props: [E(i, /:(plac\w+)/, V + "input-$1")]
857
+ props: [P(i, /:(plac\w+)/, V + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
@@ -884,11 +884,11 @@ var Ht = function(t, r, n, a) {
884
884
  {
885
885
  var l, p = [Mt, zt(function(f) {
886
886
  l.insert(f);
887
- })], g = Bt(m.concat(a, p)), k = function(h) {
887
+ })], g = Bt(m.concat(a, p)), w = function(h) {
888
888
  return te(Ft(h), g);
889
889
  };
890
- d = function(h, y, w, _) {
891
- l = w, k(h ? h + "{" + y.styles + "}" : y.styles), _ && (v.inserted[y.name] = !0);
890
+ d = function(h, y, x, _) {
891
+ l = x, w(h ? h + "{" + y.styles + "}" : y.styles), _ && (v.inserted[y.name] = !0);
892
892
  };
893
893
  }
894
894
  var v = {
@@ -1184,38 +1184,38 @@ var cr = function(t) {
1184
1184
  else {
1185
1185
  var g = l[0];
1186
1186
  p.push(g[0]);
1187
- for (var k = l.length, v = 1; v < k; v++)
1187
+ for (var w = l.length, v = 1; v < w; v++)
1188
1188
  p.push(l[v], g[v]);
1189
1189
  }
1190
- var f = cr(function(h, y, w) {
1191
- var _ = m && h.as || a, T = "", x = [], S = h;
1190
+ var f = cr(function(h, y, x) {
1191
+ var _ = m && h.as || a, T = "", S = [], R = h;
1192
1192
  if (h.theme == null) {
1193
- S = {};
1193
+ R = {};
1194
1194
  for (var u in h)
1195
- S[u] = h[u];
1196
- S.theme = H.useContext(lr);
1195
+ R[u] = h[u];
1196
+ R.theme = H.useContext(lr);
1197
1197
  }
1198
- typeof h.className == "string" ? T = Jt(y.registered, x, h.className) : h.className != null && (T = h.className + " ");
1199
- var A = ar(p.concat(x), y.registered, S);
1198
+ typeof h.className == "string" ? T = Jt(y.registered, S, h.className) : h.className != null && (T = h.className + " ");
1199
+ var A = ar(p.concat(S), y.registered, R);
1200
1200
  T += y.key + "-" + A.name, s !== void 0 && (T += " " + s);
1201
- var $ = m && c === void 0 ? Je(_) : d, R = {};
1202
- for (var I in h)
1203
- m && I === "as" || $(I) && (R[I] = h[I]);
1204
- return R.className = T, w && (R.ref = w), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1201
+ var I = m && c === void 0 ? Je(_) : d, E = {};
1202
+ for (var O in h)
1203
+ m && O === "as" || I(O) && (E[O] = h[O]);
1204
+ return E.className = T, x && (E.ref = x), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1205
1205
  cache: y,
1206
1206
  serialized: A,
1207
1207
  isStringTag: typeof _ == "string"
1208
- }), /* @__PURE__ */ H.createElement(_, R));
1208
+ }), /* @__PURE__ */ H.createElement(_, E));
1209
1209
  });
1210
1210
  return f.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = a, f.__emotion_styles = p, f.__emotion_forwardProp = c, Object.defineProperty(f, "toString", {
1211
1211
  value: function() {
1212
1212
  return "." + s;
1213
1213
  }
1214
1214
  }), f.withComponent = function(h, y) {
1215
- var w = e(h, Oe({}, r, y, {
1215
+ var x = e(h, Oe({}, r, y, {
1216
1216
  shouldForwardProp: Ze(f, y, !0)
1217
1217
  }));
1218
- return w.apply(void 0, p);
1218
+ return x.apply(void 0, p);
1219
1219
  }, f;
1220
1220
  };
1221
1221
  }, yr = [
@@ -1399,7 +1399,7 @@ const gr = ne.div`
1399
1399
  return "";
1400
1400
  }
1401
1401
  }}
1402
- `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => j.jsxs(gr, { type: e, className: r, children: [n && j.jsx("span", { children: n }), j.jsx("span", { children: t }), a && j.jsx("span", { children: a })] }), Qe = ne.div`
1402
+ `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => $.jsxs(gr, { type: e, className: r, children: [n && $.jsx("span", { children: n }), $.jsx("span", { children: t }), a && $.jsx("span", { children: a })] }), Qe = ne.div`
1403
1403
  width: ${({ width: e }) => e || "100%"};
1404
1404
  height: ${({ height: e }) => e || "100%"};
1405
1405
  border-radius: 8px;
@@ -1441,8 +1441,8 @@ const gr = ne.div`
1441
1441
  let l;
1442
1442
  try {
1443
1443
  l = t || kr(e || "latest");
1444
- } catch (k) {
1445
- const v = k instanceof Error ? k.message : String(k);
1444
+ } catch (w) {
1445
+ const v = w instanceof Error ? w.message : String(w);
1446
1446
  i(`Failed to resolve script URL: ${v}`), n(!1);
1447
1447
  return;
1448
1448
  }
@@ -1468,14 +1468,14 @@ const gr = ne.div`
1468
1468
  };
1469
1469
  }, [e, t]), { isLoaded: r, error: a };
1470
1470
  }, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1471
- const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [p, g] = U(null), k = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1471
+ const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [p, g] = U(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1472
1472
  return xe(() => {
1473
1473
  const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
1474
1474
  if (!e || n || !t && !r) {
1475
1475
  s(n || null), d(null), l(!1), g(null);
1476
1476
  return;
1477
1477
  }
1478
- if (!k) {
1478
+ if (!w) {
1479
1479
  l(!1), g("No API key provided");
1480
1480
  return;
1481
1481
  }
@@ -1486,37 +1486,37 @@ const gr = ne.div`
1486
1486
  }
1487
1487
  let f = !0;
1488
1488
  const h = new AbortController(), y = h.signal, _ = setTimeout(async () => {
1489
- var x, S;
1489
+ var S, R;
1490
1490
  if (!f)
1491
1491
  return;
1492
1492
  l(!0), g(null);
1493
1493
  let T = 0;
1494
1494
  for (; T < Ce && f; )
1495
1495
  try {
1496
- const u = t && !r ? xr(e, t) : wr(e, r), A = setTimeout(() => h.abort(), _r), $ = await fetch(u, {
1496
+ const u = t && !r ? xr(e, t) : wr(e, r), A = setTimeout(() => h.abort(), _r), I = await fetch(u, {
1497
1497
  method: "GET",
1498
1498
  headers: {
1499
- "api-key": k,
1499
+ "api-key": w,
1500
1500
  Accept: "application/json",
1501
1501
  "Cache-Control": "no-cache"
1502
1502
  // Prevent caching issues
1503
1503
  },
1504
1504
  signal: y
1505
1505
  });
1506
- if (clearTimeout(A), !$.ok)
1507
- throw new Error(`Fetch failed with status ${$.status}`);
1508
- const R = await $.json();
1506
+ if (clearTimeout(A), !I.ok)
1507
+ throw new Error(`Fetch failed with status ${I.status}`);
1508
+ const E = await I.json();
1509
1509
  if (!f)
1510
1510
  return;
1511
1511
  if (t && !r) {
1512
- const I = (S = (x = R.result) == null ? void 0 : x.items) == null ? void 0 : S.find((G) => G.mediaId === t);
1513
- if (!(I != null && I.playbackUrl))
1512
+ const O = (R = (S = E.result) == null ? void 0 : S.items) == null ? void 0 : R.find((G) => G.mediaId === t);
1513
+ if (!(O != null && O.playbackUrl))
1514
1514
  throw new Error("Invalid video data");
1515
- s(I.playbackUrl), d(null), v && ye.set(v, { url: I.playbackUrl, playlist: null });
1515
+ s(O.playbackUrl), d(null), v && ye.set(v, { url: O.playbackUrl, playlist: null });
1516
1516
  } else {
1517
- if (!Array.isArray(R.result))
1517
+ if (!Array.isArray(E.result))
1518
1518
  throw new Error("Invalid playlist format");
1519
- d(R.result), s(null), v && ye.set(v, { url: null, playlist: R.result });
1519
+ d(E.result), s(null), v && ye.set(v, { url: null, playlist: E.result });
1520
1520
  }
1521
1521
  break;
1522
1522
  } catch (u) {
@@ -1535,7 +1535,7 @@ const gr = ne.div`
1535
1535
  return () => {
1536
1536
  f = !1, clearTimeout(_), h.abort();
1537
1537
  };
1538
- }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1538
+ }, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1539
1539
  }, Rr = {
1540
1540
  projectId: "vp-player-projectId",
1541
1541
  video: {
@@ -1599,7 +1599,7 @@ const gr = ne.div`
1599
1599
  isVerticalPlayer: i
1600
1600
  // Distinguish between VP Player types
1601
1601
  }) => {
1602
- var l, p, g, k, v, f, h, y, w, _, T;
1602
+ var l, p, g, w, v, f, h, y, x, _, T, S, R;
1603
1603
  const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
1604
1604
  if (e)
1605
1605
  return {
@@ -1622,67 +1622,59 @@ const gr = ne.div`
1622
1622
  config: c
1623
1623
  };
1624
1624
  if (r && r.length > 0) {
1625
- const x = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1626
- if (i) {
1627
- const S = Number(x), u = r[S] || r[0];
1628
- return {
1629
- ...s,
1630
- projectId: n || "vp-player-projectId",
1631
- video: {
1632
- ...s.video,
1633
- // Set target video file and metadata
1634
- file: u == null ? void 0 : u.hlsUrl,
1635
- title: u == null ? void 0 : u.title,
1636
- // Don't set thumbnail - let VP Player manage thumbnails during scrolling
1637
- // thumbnail: targetVideo?.thumbnailUrl,
1638
- playlist: {
1639
- state: !0,
1640
- playlistId: "",
1641
- // Will be set by API
1642
- // Use original playlistVideoIndex - VP Player will navigate to it
1643
- playlistVideoIndex: Number(x),
1644
- // // Remove first video from playlist to avoid duplication (already in file)
1645
- // videos: fetchedPlaylist.slice(1).map((video, index) => ({
1646
- // videoId: String(index + 1), // Keep original IDs
1647
- // Keep all videos in playlist (don't remove first video)
1648
- videos: r.map(($, R) => ({
1649
- videoId: String(R),
1650
- // Use 0-based indexing
1651
- title: $.title,
1652
- file: $.hlsUrl,
1653
- thumbnailUrl: $.thumbnailUrl,
1654
- duration: $.duration
1655
- }))
1656
- }
1657
- },
1658
- config: c
1659
- };
1660
- } else
1661
- return {
1662
- ...s,
1663
- projectId: n || "vp-player-projectId",
1664
- video: {
1665
- ...s.video,
1666
- file: ((k = r[Number(x)]) == null ? void 0 : k.hlsUrl) || ((v = r[0]) == null ? void 0 : v.hlsUrl) || "",
1667
- title: ((f = r[Number(x)]) == null ? void 0 : f.title) || ((h = r[0]) == null ? void 0 : h.title),
1668
- thumbnail: ((y = r[Number(x)]) == null ? void 0 : y.thumbnailUrl) || ((w = r[0]) == null ? void 0 : w.thumbnailUrl),
1669
- playlist: {
1670
- state: !0,
1671
- // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1672
- playlistVideoIndex: Number(x),
1673
- videos: r.map((u, A) => ({
1674
- videoId: String(A),
1675
- title: u.title,
1676
- file: u.hlsUrl,
1677
- thumbnailUrl: u.thumbnailUrl,
1678
- duration: u.duration
1679
- }))
1680
- }
1681
- },
1682
- config: c
1683
- };
1625
+ const u = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1626
+ return i ? {
1627
+ ...s,
1628
+ projectId: n || "vp-player-projectId",
1629
+ video: {
1630
+ ...s.video,
1631
+ // Set first video file (index 0) to avoid VP Player duplication
1632
+ file: (w = r[0]) == null ? void 0 : w.hlsUrl,
1633
+ title: (v = r[0]) == null ? void 0 : v.title,
1634
+ // thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
1635
+ playlist: {
1636
+ state: !0,
1637
+ playlistId: "",
1638
+ // Will be set by API
1639
+ // Use original playlistVideoIndex - VP Player will navigate to it
1640
+ playlistVideoIndex: Number(u),
1641
+ // Remove first video from playlist to avoid duplication (already in file)
1642
+ videos: r.slice(1).map((I, E) => ({
1643
+ videoId: String(E + 1),
1644
+ // Keep original IDs
1645
+ title: I.title,
1646
+ file: I.hlsUrl,
1647
+ thumbnailUrl: I.thumbnailUrl,
1648
+ duration: I.duration
1649
+ }))
1650
+ }
1651
+ },
1652
+ config: c
1653
+ } : {
1654
+ ...s,
1655
+ projectId: n || "vp-player-projectId",
1656
+ video: {
1657
+ ...s.video,
1658
+ file: ((f = r[Number(u)]) == null ? void 0 : f.hlsUrl) || ((h = r[0]) == null ? void 0 : h.hlsUrl) || "",
1659
+ title: ((y = r[Number(u)]) == null ? void 0 : y.title) || ((x = r[0]) == null ? void 0 : x.title),
1660
+ thumbnail: ((_ = r[Number(u)]) == null ? void 0 : _.thumbnailUrl) || ((T = r[0]) == null ? void 0 : T.thumbnailUrl),
1661
+ playlist: {
1662
+ state: !0,
1663
+ // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1664
+ playlistVideoIndex: Number(u),
1665
+ videos: r.map((I, E) => ({
1666
+ videoId: String(E),
1667
+ title: I.title,
1668
+ file: I.hlsUrl,
1669
+ thumbnailUrl: I.thumbnailUrl,
1670
+ duration: I.duration
1671
+ }))
1672
+ }
1673
+ },
1674
+ config: c
1675
+ };
1684
1676
  }
1685
- const d = ((_ = a == null ? void 0 : a.video) == null ? void 0 : _.playlist) || s.video.playlist, m = (T = a == null ? void 0 : a.video) == null ? void 0 : T.file;
1677
+ const d = ((S = a == null ? void 0 : a.video) == null ? void 0 : S.playlist) || s.video.playlist, m = (R = a == null ? void 0 : a.video) == null ? void 0 : R.file;
1686
1678
  if (m)
1687
1679
  return {
1688
1680
  ...s,
@@ -1695,12 +1687,12 @@ const gr = ne.div`
1695
1687
  config: c
1696
1688
  };
1697
1689
  if (d != null && d.videos && d.videos.length > 0) {
1698
- const x = d.videos[Number(d.playlistVideoIndex) || 0];
1690
+ const u = d.videos[Number(d.playlistVideoIndex) || 0];
1699
1691
  return {
1700
1692
  ...s,
1701
1693
  video: {
1702
1694
  ...s.video,
1703
- file: (x == null ? void 0 : x.file) || "",
1695
+ file: (u == null ? void 0 : u.file) || "",
1704
1696
  playlist: {
1705
1697
  ...d,
1706
1698
  state: d.state ?? !0,
@@ -1722,13 +1714,13 @@ const gr = ne.div`
1722
1714
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1723
1715
  return r ? r[2] : void 0;
1724
1716
  }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
1725
- const l = Be(null), p = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [f, h] = U(null), { fetchedPlaybackUrl: y, fetchedPlaylist: w, isLoading: _, error: T } = Sr({
1717
+ const l = Be(null), p = Be(null), { isLoaded: g, error: w } = Pr(r, s), v = t || Ar(s), [f, h] = U(null), { fetchedPlaybackUrl: y, fetchedPlaylist: x, isLoading: _, error: T } = Sr({
1726
1718
  projectId: a,
1727
1719
  videoId: v,
1728
1720
  playlistId: i,
1729
1721
  videoUrl: n,
1730
1722
  apiKey: d
1731
- }), x = Me(e, v), S = tt(() => {
1723
+ }), S = Me(e, v), R = tt(() => {
1732
1724
  const u = c.config || {}, A = m && !u.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : u.size || { sizeType: "FIXED", width: "100%" };
1733
1725
  return {
1734
1726
  ...c,
@@ -1739,29 +1731,29 @@ const gr = ne.div`
1739
1731
  };
1740
1732
  }, [c, m]);
1741
1733
  return xe(() => {
1742
- if (k) {
1743
- h(k);
1734
+ if (w) {
1735
+ h(w);
1744
1736
  return;
1745
1737
  }
1746
1738
  if (!g || _ && !n)
1747
1739
  return;
1748
1740
  let u = !0;
1749
- const $ = setTimeout(async () => {
1741
+ const I = setTimeout(async () => {
1750
1742
  try {
1751
- const R = s == null ? void 0 : s.includes("vertical-player");
1743
+ const E = s == null ? void 0 : s.includes("vertical-player");
1752
1744
  if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1753
1745
  var ie, oe;
1754
1746
  const J = Q.id;
1755
- if (J !== x)
1747
+ if (J !== S)
1756
1748
  try {
1757
- const o = R ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1749
+ const o = E ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1758
1750
  o != null && o.destroy && o.destroy();
1759
1751
  } catch (o) {
1760
1752
  console.warn(`Failed to destroy existing player ${J}:`, o);
1761
1753
  }
1762
1754
  }), await new Promise((Q) => setTimeout(Q, 100)), !u || !l.current)
1763
1755
  return;
1764
- if (!document.getElementById(x)) {
1756
+ if (!document.getElementById(S)) {
1765
1757
  h("DOM element not found after cleanup.");
1766
1758
  return;
1767
1759
  }
@@ -1769,67 +1761,67 @@ const gr = ne.div`
1769
1761
  h("VP Player script not loaded.");
1770
1762
  return;
1771
1763
  }
1772
- const z = R ? window.vpVerticalPlayer : window.vpPlayer;
1764
+ const z = E ? window.vpVerticalPlayer : window.vpPlayer;
1773
1765
  if (!z) {
1774
- h(`VP ${R ? "Vertical " : ""}Player script not loaded.`);
1766
+ h(`VP ${E ? "Vertical " : ""}Player script not loaded.`);
1775
1767
  return;
1776
1768
  }
1777
1769
  const X = Tr({
1778
1770
  videoUrl: n,
1779
1771
  fetchedPlaybackUrl: y ?? void 0,
1780
- fetchedPlaylist: w ?? void 0,
1772
+ fetchedPlaylist: x ?? void 0,
1781
1773
  projectId: a,
1782
- config: S,
1783
- isVerticalPlayer: R
1774
+ config: R,
1775
+ isVerticalPlayer: E
1784
1776
  // Pass player type to config builder
1785
- }), Z = z(x);
1777
+ }), Z = z(S);
1786
1778
  if (!Z) {
1787
- h(`Failed to create VP ${R ? "Vertical " : ""}Player instance.`);
1779
+ h(`Failed to create VP ${E ? "Vertical " : ""}Player instance.`);
1788
1780
  return;
1789
1781
  }
1790
1782
  u && l.current && (Z.setup(X), p.current = Z, h(null));
1791
- } catch (R) {
1783
+ } catch (E) {
1792
1784
  if (u) {
1793
- const I = R instanceof Error ? R.message : String(R);
1794
- h(I), console.error("VP Player initialization error:", R);
1785
+ const O = E instanceof Error ? E.message : String(E);
1786
+ h(O), console.error("VP Player initialization error:", E);
1795
1787
  }
1796
1788
  }
1797
1789
  }, 150);
1798
1790
  return () => {
1799
- u = !1, clearTimeout($);
1791
+ u = !1, clearTimeout(I);
1800
1792
  };
1801
1793
  }, [
1802
1794
  g,
1803
1795
  _,
1804
1796
  n,
1805
1797
  y,
1806
- w,
1798
+ x,
1807
1799
  a,
1800
+ R,
1808
1801
  S,
1809
- x,
1810
- k,
1802
+ w,
1811
1803
  s
1812
1804
  ]), xe(() => () => {
1813
1805
  if (p.current) {
1814
1806
  try {
1815
1807
  p.current.destroy && p.current.destroy();
1816
1808
  } catch (A) {
1817
- console.warn(`Failed to destroy player ${x}:`, A);
1809
+ console.warn(`Failed to destroy player ${S}:`, A);
1818
1810
  }
1819
1811
  p.current = null;
1820
1812
  }
1821
- const u = document.getElementById(x);
1813
+ const u = document.getElementById(S);
1822
1814
  u && (u.innerHTML = "");
1823
- }, [x]), {
1815
+ }, [S]), {
1824
1816
  playerRef: l,
1825
1817
  playerInstanceRef: p,
1826
1818
  isScriptLoaded: g,
1827
1819
  isLoading: _,
1828
- error: T || f || k
1820
+ error: T || f || w
1829
1821
  };
1830
1822
  }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: g }) => {
1831
- var $, R, I, G;
1832
- const { playerRef: k, playerInstanceRef: v, isScriptLoaded: f, isLoading: h, error: y } = Cr({
1823
+ var I, E, O, G;
1824
+ const { playerRef: w, playerInstanceRef: v, isScriptLoaded: f, isLoading: h, error: y } = Cr({
1833
1825
  playerId: e,
1834
1826
  videoId: t,
1835
1827
  version: r,
@@ -1840,11 +1832,11 @@ const gr = ne.div`
1840
1832
  config: c,
1841
1833
  apiKey: d,
1842
1834
  isReels: m
1843
- }), [w, _] = U(!0), T = () => m && _(!0), x = () => {
1835
+ }), [x, _] = U(!0), T = () => m && _(!0), S = () => {
1844
1836
  var z, X;
1845
1837
  _(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), p == null || p();
1846
- }, S = (R = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && R.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, u = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, A = Me(e, t);
1847
- return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !w ? j.jsx("div", { onClick: T }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: S || "100%", height: u || "auto", $hiddenClasses: l, className: g }) }, A), m && w && j.jsx(vr, { onClick: x, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, A) }) })] });
1838
+ }, R = (E = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && E.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, u = (G = (O = c == null ? void 0 : c.config) == null ? void 0 : O.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, A = Me(e, t);
1839
+ return y ? $.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? $.jsx(Ne, { type: "loading", children: "Loading..." }) : $.jsxs($.Fragment, { children: [m && !x ? $.jsx("div", { onClick: T }) : null, !m && $.jsx("div", { children: $.jsx(Qe, { id: A, ref: w, width: R || "100%", height: u || "auto", $hiddenClasses: l, className: g }) }, A), m && x && $.jsx(vr, { onClick: S, className: g, children: $.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: $.jsx("div", { children: $.jsx(Qe, { id: A, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, A) }) })] });
1848
1840
  }, pt = gt(void 0), jr = ({ children: e }) => {
1849
1841
  const [t, r] = U(!1), [n, a] = U(null), [i, s] = U(null), c = ze((l) => {
1850
1842
  try {
@@ -1861,7 +1853,7 @@ const gr = ne.div`
1861
1853
  isPlayerVisible: t,
1862
1854
  playerParams: n
1863
1855
  }), [c, d, t, n]);
1864
- return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1856
+ return $.jsxs(pt.Provider, { value: m, children: [e, i && $.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && $.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1865
1857
  }, $r = () => {
1866
1858
  const e = et(pt);
1867
1859
  if (!e)
@@ -1,4 +1,4 @@
1
- (function(S,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],k):(S=typeof globalThis<"u"?globalThis:S||self,k(S.ReactGjirafaVPPlayer={},S.React))})(this,function(S,k){"use strict";function bt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const H=bt(k);var me={exports:{}},oe={};/**
1
+ (function(S,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(S=typeof globalThis<"u"?globalThis:S||self,P(S.ReactGjirafaVPPlayer={},S.React))})(this,function(S,P){"use strict";function bt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const H=bt(P);var me={exports:{}},oe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var De;function wt(){return De||(De=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===T?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case f:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case C:return"SuspenseList";case V:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case b:return"Portal";case A:return(o.displayName||"Context")+".Provider";case x:return(o._context.displayName||"Context")+".Consumer";case R:var v=o.render;return o=o.displayName,o||(o=v.displayName||v.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case u:return v=o.displayName||null,v!==null?v:e(o.type)||"Memo";case I:v=o._payload,o=o._init;try{return e(o(v))}catch{}}return null}function t(o){return""+o}function r(o){try{t(o);var v=!1}catch{v=!0}if(v){v=console;var O=v.error,M=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return O.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),t(o)}}function n(o){if(o===f)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===I)return"<...>";try{var v=e(o);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function a(){var o=L.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(X.call(o,"key")){var v=Object.getOwnPropertyDescriptor(o,"key").get;if(v&&v.isReactWarning)return!1}return o.key!==void 0}function c(o,v){function O(){ne||(ne=!0,console.error("%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)",v))}O.isReactWarning=!0,Object.defineProperty(o,"key",{get:O,configurable:!0})}function d(){var o=e(this.type);return ae[o]||(ae[o]=!0,console.error("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.")),o=this.props.ref,o!==void 0?o:null}function m(o,v,O,M,J,G,Fe,Me){return O=G.ref,o={$$typeof:P,type:o,key:v,props:G,_owner:J},(O!==void 0?O:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:d}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function l(o,v,O,M,J,G,Fe,Me){var B=v.children;if(B!==void 0)if(M)if(z(B)){for(M=0;M<B.length;M++)p(B[M]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(B);if(X.call(v,"key")){B=e(o);var ie=Object.keys(v).filter(function(Vr){return Vr!=="key"});M=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",he[B+M]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var De;function wt(){return De||(De=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case f:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case j:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case b:return"Portal";case A:return(o.displayName||"Context")+".Provider";case w:return(o._context.displayName||"Context")+".Consumer";case R:var v=o.render;return o=o.displayName,o||(o=v.displayName||v.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case u:return v=o.displayName||null,v!==null?v:e(o.type)||"Memo";case I:v=o._payload,o=o._init;try{return e(o(v))}catch{}}return null}function t(o){return""+o}function r(o){try{t(o);var v=!1}catch{v=!0}if(v){v=console;var O=v.error,M=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return O.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),t(o)}}function n(o){if(o===f)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===I)return"<...>";try{var v=e(o);return v?"<"+v+">":"<...>"}catch{return"<...>"}}function a(){var o=N.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(X.call(o,"key")){var v=Object.getOwnPropertyDescriptor(o,"key").get;if(v&&v.isReactWarning)return!1}return o.key!==void 0}function c(o,v){function O(){ne||(ne=!0,console.error("%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)",v))}O.isReactWarning=!0,Object.defineProperty(o,"key",{get:O,configurable:!0})}function d(){var o=e(this.type);return ae[o]||(ae[o]=!0,console.error("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.")),o=this.props.ref,o!==void 0?o:null}function m(o,v,O,M,J,G,Fe,Me){return O=G.ref,o={$$typeof:x,type:o,key:v,props:G,_owner:J},(O!==void 0?O:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:d}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function l(o,v,O,M,J,G,Fe,Me){var B=v.children;if(B!==void 0)if(M)if(z(B)){for(M=0;M<B.length;M++)p(B[M]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(B);if(X.call(v,"key")){B=e(o);var ie=Object.keys(v).filter(function(Vr){return Vr!=="key"});M=0<ie.length?"{key: someKey, "+ie.join(": ..., ")+": ...}":"{key: someKey}",he[B+M]||(ie=0<ie.length?"{"+ie.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,M,B,ie,B),he[B+M]=!0)}if(B=null,O!==void 0&&(r(O),B=""+O),s(v)&&(r(v.key),B=""+v.key),"key"in v){O={};for(var Be in v)Be!=="key"&&(O[Be]=v[Be])}else O=v;return B&&c(O,typeof o=="function"?o.displayName||o.name||"Unknown":o),m(o,B,G,J,a(),O,Fe,Me)}function p(o){typeof o=="object"&&o!==null&&o.$$typeof===P&&o._store&&(o._store.validated=1)}var g=k,P=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),T=Symbol.for("react.client.reference"),L=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,z=Array.isArray,K=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(o){return o()}};var ne,ae={},Z=g["react-stack-bottom-frame"].bind(g,i)(),pe=K(n(i)),he={};se.Fragment=f,se.jsx=function(o,v,O,M,J){var G=1e4>L.recentlyCreatedOwnerStacks++;return l(o,v,O,!1,M,J,G?Error("react-stack-top-frame"):Z,G?K(n(o)):pe)},se.jsxs=function(o,v,O,M,J){var G=1e4>L.recentlyCreatedOwnerStacks++;return l(o,v,O,!0,M,J,G?Error("react-stack-top-frame"):Z,G?K(n(o)):pe)}}()),se}var ze;function xt(){return ze||(ze=1,process.env.NODE_ENV==="production"?me.exports=vt():me.exports=wt()),me.exports}var N=xt();function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(null,arguments)}function Pt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Et=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kt(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Pt(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),F="-ms-",ye="-moz-",E="-webkit-",We="comm",Ae="rule",Ce="decl",_t="@import",Ye="@keyframes",St="@layer",At=Math.abs,ge=String.fromCharCode,Ct=Object.assign;function Tt(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function qe(e){return e.trim()}function Rt(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,r){return e.replace(t,r)}function Te(e,t){return e.indexOf(t)}function $(e,t){return e.charCodeAt(t)|0}function ce(e,t,r){return e.slice(t,r)}function W(e){return e.length}function Re(e){return e.length}function be(e,t){return t.push(e),e}function It(e,t){return e.map(t).join("")}var ve=1,Q=1,Ge=0,U=0,j=0,ee="";function we(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:ve,column:Q,length:s,return:""}}function le(e,t){return Ct(we("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ot(){return j}function jt(){return j=U>0?$(ee,--U):0,Q--,j===10&&(Q=1,ve--),j}function D(){return j=U<Ge?$(ee,U++):0,Q++,j===10&&(Q=1,ve++),j}function Y(){return $(ee,U)}function xe(){return U}function ue(e,t){return ce(ee,e,t)}function de(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return ve=Q=1,Ge=W(ee=e),U=0,[]}function Xe(e){return ee="",e}function Pe(e){return qe(ue(U-1,Ie(e===91?e+2:e===40?e+1:e)))}function Lt(e){for(;(j=Y())&&j<33;)D();return de(e)>2||de(j)>3?"":" "}function Nt(e,t){for(;--t&&D()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return ue(e,xe()+(t<6&&Y()==32&&D()==32))}function Ie(e){for(;D();)switch(j){case e:return U;case 34:case 39:e!==34&&e!==39&&Ie(j);break;case 40:e===41&&Ie(e);break;case 92:D();break}return U}function $t(e,t){for(;D()&&e+j!==57;)if(e+j===84&&Y()===47)break;return"/*"+ue(t,U-1)+"*"+ge(e===47?e:D())}function Vt(e){for(;!de(Y());)D();return ue(e,U)}function Ft(e){return Xe(ke("",null,null,null,[""],e=He(e),0,[0],e))}function ke(e,t,r,n,a,i,s,c,d){for(var m=0,l=0,p=s,g=0,P=0,b=0,f=1,h=1,y=1,x=0,A="",R=a,w=i,C=n,u=A;h;)switch(b=x,x=D()){case 40:if(b!=108&&$(u,p-1)==58){Te(u+=_(Pe(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:u+=Pe(x);break;case 9:case 10:case 13:case 32:u+=Lt(b);break;case 92:u+=Nt(xe()-1,7);continue;case 47:switch(Y()){case 42:case 47:be(Mt($t(D(),xe()),t,r),d);break;default:u+="/"}break;case 123*f:c[m++]=W(u)*y;case 125*f:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+l:y==-1&&(u=_(u,/\f/g,"")),P>0&&W(u)-p&&be(P>32?Je(u+";",n,r,p-1):Je(_(u," ","")+";",n,r,p-2),d);break;case 59:u+=";";default:if(be(C=Ke(u,t,r,m,l,a,c,A,R=[],w=[],p),i),x===123)if(l===0)ke(u,t,C,C,R,i,p,c,w);else switch(g===99&&$(u,3)===110?100:g){case 100:case 108:case 109:case 115:ke(e,C,C,n&&be(Ke(e,C,C,0,0,a,c,A,a,R=[],p),w),a,w,p,c,n?R:w);break;default:ke(u,C,C,C,[""],w,0,c,w)}}m=l=P=0,f=y=1,A=u="",p=s;break;case 58:p=1+W(u),P=b;default:if(f<1){if(x==123)--f;else if(x==125&&f++==0&&jt()==125)continue}switch(u+=ge(x),x*f){case 38:y=l>0?1:(u+="\f",-1);break;case 44:c[m++]=(W(u)-1)*y,y=1;break;case 64:Y()===45&&(u+=Pe(D())),g=Y(),l=p=W(A=u+=Vt(xe())),x++;break;case 45:b===45&&W(u)==2&&(f=0)}}return i}function Ke(e,t,r,n,a,i,s,c,d,m,l){for(var p=a-1,g=a===0?i:[""],P=Re(g),b=0,f=0,h=0;b<n;++b)for(var y=0,x=ce(e,p+1,p=At(f=s[b])),A=e;y<P;++y)(A=qe(f>0?g[y]+" "+x:_(x,/&\f/g,g[y])))&&(d[h++]=A);return we(e,t,r,a===0?Ae:c,d,m,l)}function Mt(e,t,r){return we(e,t,r,We,ge(Ot()),ce(e,2,-2),0)}function Je(e,t,r,n){return we(e,t,r,Ce,ce(e,0,n),ce(e,n+1,-1),n)}function te(e,t){for(var r="",n=Re(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Bt(e,t,r,n){switch(e.type){case St:if(e.children.length)break;case _t:case Ce:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+te(e.children,n)+"}";case Ae:e.value=e.props.join(",")}return W(r=te(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ut(e){var t=Re(e);return function(r,n,a,i){for(var s="",c=0;c<t;c++)s+=e[c](r,n,a,i)||"";return s}}function Dt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ze(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zt=function(t,r,n){for(var a=0,i=0;a=i,i=Y(),a===38&&i===12&&(r[n]=1),!de(i);)D();return ue(t,U)},Wt=function(t,r){var n=-1,a=44;do switch(de(a)){case 0:a===38&&Y()===12&&(r[n]=1),t[n]+=zt(U-1,r,n);break;case 2:t[n]+=Pe(a);break;case 4:if(a===44){t[++n]=Y()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ge(a)}while(a=D());return t},Yt=function(t,r){return Xe(Wt(He(t),r))},Qe=new WeakMap,qt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qe.get(n))&&!a){Qe.set(t,!0);for(var i=[],s=Yt(r,i),c=n.props,d=0,m=0;d<s.length;d++)for(var l=0;l<c.length;l++,m++)t.props[m]=i[d]?s[d].replace(/&\f/g,c[l]):c[l]+" "+s[d]}}},Gt=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function et(e,t){switch(Tt(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+ye+e+F+e+e;case 6828:case 4268:return E+e+F+e+e;case 6165:return E+e+F+"flex-"+e+e;case 5187:return E+e+_(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return E+e+F+"flex-item-"+_(e,/flex-|-self/,"")+e;case 4675:return E+e+F+"flex-line-pack"+_(e,/align-content|flex-|-self/,"")+e;case 5548:return E+e+F+_(e,"shrink","negative")+e;case 5292:return E+e+F+_(e,"basis","preferred-size")+e;case 6060:return E+"box-"+_(e,"-grow","")+E+e+F+_(e,"grow","positive")+e;case 4554:return E+_(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(W(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+ye+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Te(e,"stretch")?et(_(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($(e,t+1)!==115)break;case 6444:switch($(e,W(e)-3-(~Te(e,"!important")&&10))){case 107:return _(e,":",":"+E)+e;case 101:return _(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+E+($(e,14)===45?"inline-":"")+"box$3$1"+E+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch($(e,t+11)){case 114:return E+e+F+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+F+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+F+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return E+e+F+e+e}return e}var Ht=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Ce:t.return=et(t.value,t.length);break;case Ye:return te([le(t,{value:_(t.value,"@","@"+E)})],a);case Ae:if(t.length)return It(t.props,function(i){switch(Rt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return te([le(t,{props:[_(i,/:(read-\w+)/,":"+ye+"$1")]})],a);case"::placeholder":return te([le(t,{props:[_(i,/:(plac\w+)/,":"+E+"input-$1")]}),le(t,{props:[_(i,/:(plac\w+)/,":"+ye+"$1")]}),le(t,{props:[_(i,/:(plac\w+)/,F+"input-$1")]})],a)}return""})}},Xt=[Ht],Kt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var h=f.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var a=t.stylisPlugins||Xt,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),y=1;y<h.length;y++)i[h[y]]=!0;c.push(f)});var d,m=[qt,Gt];{var l,p=[Bt,Dt(function(f){l.insert(f)})],g=Ut(m.concat(a,p)),P=function(h){return te(Ft(h),g)};d=function(h,y,x,A){l=x,P(h?h+"{"+y.styles+"}":y.styles),A&&(b.inserted[y.name]=!0)}}var b={key:r,sheet:new Et({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return b.sheet.hydrate(c),b},Jt=!0;function Zt(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tt=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Jt===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Qt=function(t,r,n){tt(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function er(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rr=/[A-Z]|^ms/g,nr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rt=function(t){return t.charCodeAt(1)===45},nt=function(t){return t!=null&&typeof t!="boolean"},Oe=Ze(function(e){return rt(e)?e:e.replace(rr,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nr,function(n,a,i){return q={name:a,styles:i,next:q},a})}return tr[t]!==1&&!rt(t)&&typeof r=="number"&&r!==0?r+"px":r};function fe(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return q={name:a.name,styles:a.styles,next:q},a.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)q={name:s.name,styles:s.styles,next:q},s=s.next;var c=i.styles+";";return c}return ar(e,t,r)}case"function":{if(e!==void 0){var d=q,m=r(e);return q=d,fe(e,t,m)}break}}var l=r;if(t==null)return l;var p=t[l];return p!==void 0?p:l}function ar(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=fe(e,t,r[a])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?n+=i+"{"+t[c]+"}":nt(c)&&(n+=Oe(i)+":"+at(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var d=0;d<s.length;d++)nt(s[d])&&(n+=Oe(i)+":"+at(i,s[d])+";");else{var m=fe(e,t,s);switch(i){case"animation":case"animationName":{n+=Oe(i)+":"+m+";";break}default:n+=i+"{"+m+"}"}}}return n}var it=/label:\s*([^\s;{]+)\s*(;|$)/g,q;function ir(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";q=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=fe(r,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=fe(r,t,e[c]),n){var d=i;a+=d[c]}it.lastIndex=0;for(var m="",l;(l=it.exec(a))!==null;)m+="-"+l[1];var p=er(a)+m;return{name:p,styles:a,next:q}}var or=function(t){return t()},sr=H.useInsertionEffect?H.useInsertionEffect:!1,cr=sr||or,ot=H.createContext(typeof HTMLElement<"u"?Kt({key:"css"}):null);ot.Provider;var lr=function(t){return k.forwardRef(function(r,n){var a=k.useContext(ot);return t(r,a,n)})},ur=H.createContext({}),dr=/^((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|fetchpriority|fetchPriority|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)-.*))$/,fr=Ze(function(e){return dr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pr=fr,hr=function(t){return t!=="theme"},st=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pr:hr},ct=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},mr=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tt(r,n,a),cr(function(){return Qt(r,n,a)}),null},yr=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var c=ct(t,r,n),d=c||st(a),m=!d("as");return function(){var l=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)p.push.apply(p,l);else{var g=l[0];p.push(g[0]);for(var P=l.length,b=1;b<P;b++)p.push(l[b],g[b])}var f=lr(function(h,y,x){var A=m&&h.as||a,R="",w=[],C=h;if(h.theme==null){C={};for(var u in h)C[u]=h[u];C.theme=H.useContext(ur)}typeof h.className=="string"?R=Zt(y.registered,w,h.className):h.className!=null&&(R=h.className+" ");var I=ir(p.concat(w),y.registered,C);R+=y.key+"-"+I.name,s!==void 0&&(R+=" "+s);var V=m&&c===void 0?st(A):d,T={};for(var L in h)m&&L==="as"||V(L)&&(T[L]=h[L]);return T.className=R,x&&(T.ref=x),H.createElement(H.Fragment,null,H.createElement(mr,{cache:y,serialized:I,isStringTag:typeof A=="string"}),H.createElement(A,T))});return f.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=p,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(h,y){var x=e(h,Se({},r,y,{shouldForwardProp:ct(f,y,!0)}));return x.apply(void 0,p)},f}},gr=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],re=yr.bind(null);gr.forEach(function(e){re[e]=re(e)});const br=re.div`
22
+ <%s key={someKey} {...props} />`,M,B,ie,B),he[B+M]=!0)}if(B=null,O!==void 0&&(r(O),B=""+O),s(v)&&(r(v.key),B=""+v.key),"key"in v){O={};for(var Be in v)Be!=="key"&&(O[Be]=v[Be])}else O=v;return B&&c(O,typeof o=="function"?o.displayName||o.name||"Unknown":o),m(o,B,G,J,a(),O,Fe,Me)}function p(o){typeof o=="object"&&o!==null&&o.$$typeof===x&&o._store&&(o._store.validated=1)}var g=P,x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),N=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,z=Array.isArray,K=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(o){return o()}};var ne,ae={},Z=g["react-stack-bottom-frame"].bind(g,i)(),pe=K(n(i)),he={};se.Fragment=f,se.jsx=function(o,v,O,M,J){var G=1e4>N.recentlyCreatedOwnerStacks++;return l(o,v,O,!1,M,J,G?Error("react-stack-top-frame"):Z,G?K(n(o)):pe)},se.jsxs=function(o,v,O,M,J){var G=1e4>N.recentlyCreatedOwnerStacks++;return l(o,v,O,!0,M,J,G?Error("react-stack-top-frame"):Z,G?K(n(o)):pe)}}()),se}var ze;function xt(){return ze||(ze=1,process.env.NODE_ENV==="production"?me.exports=vt():me.exports=wt()),me.exports}var $=xt();function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(null,arguments)}function Pt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Et=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kt(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Pt(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),F="-ms-",ye="-moz-",k="-webkit-",We="comm",Ae="rule",Ce="decl",_t="@import",Ye="@keyframes",St="@layer",At=Math.abs,ge=String.fromCharCode,Ct=Object.assign;function Tt(e,t){return V(e,0)^45?(((t<<2^V(e,0))<<2^V(e,1))<<2^V(e,2))<<2^V(e,3):0}function qe(e){return e.trim()}function Rt(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,r){return e.replace(t,r)}function Te(e,t){return e.indexOf(t)}function V(e,t){return e.charCodeAt(t)|0}function ce(e,t,r){return e.slice(t,r)}function W(e){return e.length}function Re(e){return e.length}function be(e,t){return t.push(e),e}function It(e,t){return e.map(t).join("")}var ve=1,Q=1,Ge=0,U=0,L=0,ee="";function we(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:ve,column:Q,length:s,return:""}}function le(e,t){return Ct(we("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ot(){return L}function jt(){return L=U>0?V(ee,--U):0,Q--,L===10&&(Q=1,ve--),L}function D(){return L=U<Ge?V(ee,U++):0,Q++,L===10&&(Q=1,ve++),L}function Y(){return V(ee,U)}function xe(){return U}function ue(e,t){return ce(ee,e,t)}function de(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return ve=Q=1,Ge=W(ee=e),U=0,[]}function Xe(e){return ee="",e}function Pe(e){return qe(ue(U-1,Ie(e===91?e+2:e===40?e+1:e)))}function Lt(e){for(;(L=Y())&&L<33;)D();return de(e)>2||de(L)>3?"":" "}function Nt(e,t){for(;--t&&D()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return ue(e,xe()+(t<6&&Y()==32&&D()==32))}function Ie(e){for(;D();)switch(L){case e:return U;case 34:case 39:e!==34&&e!==39&&Ie(L);break;case 40:e===41&&Ie(e);break;case 92:D();break}return U}function $t(e,t){for(;D()&&e+L!==57;)if(e+L===84&&Y()===47)break;return"/*"+ue(t,U-1)+"*"+ge(e===47?e:D())}function Vt(e){for(;!de(Y());)D();return ue(e,U)}function Ft(e){return Xe(ke("",null,null,null,[""],e=He(e),0,[0],e))}function ke(e,t,r,n,a,i,s,c,d){for(var m=0,l=0,p=s,g=0,x=0,b=0,f=1,h=1,y=1,w=0,A="",R=a,C=i,T=n,u=A;h;)switch(b=w,w=D()){case 40:if(b!=108&&V(u,p-1)==58){Te(u+=E(Pe(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:u+=Pe(w);break;case 9:case 10:case 13:case 32:u+=Lt(b);break;case 92:u+=Nt(xe()-1,7);continue;case 47:switch(Y()){case 42:case 47:be(Mt($t(D(),xe()),t,r),d);break;default:u+="/"}break;case 123*f:c[m++]=W(u)*y;case 125*f:case 59:case 0:switch(w){case 0:case 125:h=0;case 59+l:y==-1&&(u=E(u,/\f/g,"")),x>0&&W(u)-p&&be(x>32?Je(u+";",n,r,p-1):Je(E(u," ","")+";",n,r,p-2),d);break;case 59:u+=";";default:if(be(T=Ke(u,t,r,m,l,a,c,A,R=[],C=[],p),i),w===123)if(l===0)ke(u,t,T,T,R,i,p,c,C);else switch(g===99&&V(u,3)===110?100:g){case 100:case 108:case 109:case 115:ke(e,T,T,n&&be(Ke(e,T,T,0,0,a,c,A,a,R=[],p),C),a,C,p,c,n?R:C);break;default:ke(u,T,T,T,[""],C,0,c,C)}}m=l=x=0,f=y=1,A=u="",p=s;break;case 58:p=1+W(u),x=b;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&jt()==125)continue}switch(u+=ge(w),w*f){case 38:y=l>0?1:(u+="\f",-1);break;case 44:c[m++]=(W(u)-1)*y,y=1;break;case 64:Y()===45&&(u+=Pe(D())),g=Y(),l=p=W(A=u+=Vt(xe())),w++;break;case 45:b===45&&W(u)==2&&(f=0)}}return i}function Ke(e,t,r,n,a,i,s,c,d,m,l){for(var p=a-1,g=a===0?i:[""],x=Re(g),b=0,f=0,h=0;b<n;++b)for(var y=0,w=ce(e,p+1,p=At(f=s[b])),A=e;y<x;++y)(A=qe(f>0?g[y]+" "+w:E(w,/&\f/g,g[y])))&&(d[h++]=A);return we(e,t,r,a===0?Ae:c,d,m,l)}function Mt(e,t,r){return we(e,t,r,We,ge(Ot()),ce(e,2,-2),0)}function Je(e,t,r,n){return we(e,t,r,Ce,ce(e,0,n),ce(e,n+1,-1),n)}function te(e,t){for(var r="",n=Re(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Bt(e,t,r,n){switch(e.type){case St:if(e.children.length)break;case _t:case Ce:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+te(e.children,n)+"}";case Ae:e.value=e.props.join(",")}return W(r=te(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ut(e){var t=Re(e);return function(r,n,a,i){for(var s="",c=0;c<t;c++)s+=e[c](r,n,a,i)||"";return s}}function Dt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ze(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zt=function(t,r,n){for(var a=0,i=0;a=i,i=Y(),a===38&&i===12&&(r[n]=1),!de(i);)D();return ue(t,U)},Wt=function(t,r){var n=-1,a=44;do switch(de(a)){case 0:a===38&&Y()===12&&(r[n]=1),t[n]+=zt(U-1,r,n);break;case 2:t[n]+=Pe(a);break;case 4:if(a===44){t[++n]=Y()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ge(a)}while(a=D());return t},Yt=function(t,r){return Xe(Wt(He(t),r))},Qe=new WeakMap,qt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qe.get(n))&&!a){Qe.set(t,!0);for(var i=[],s=Yt(r,i),c=n.props,d=0,m=0;d<s.length;d++)for(var l=0;l<c.length;l++,m++)t.props[m]=i[d]?s[d].replace(/&\f/g,c[l]):c[l]+" "+s[d]}}},Gt=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function et(e,t){switch(Tt(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+ye+e+F+e+e;case 6828:case 4268:return k+e+F+e+e;case 6165:return k+e+F+"flex-"+e+e;case 5187:return k+e+E(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return k+e+F+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return k+e+F+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return k+e+F+E(e,"shrink","negative")+e;case 5292:return k+e+F+E(e,"basis","preferred-size")+e;case 6060:return k+"box-"+E(e,"-grow","")+k+e+F+E(e,"grow","positive")+e;case 4554:return k+E(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(W(e)-1-t>6)switch(V(e,t+1)){case 109:if(V(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+ye+(V(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Te(e,"stretch")?et(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(V(e,t+1)!==115)break;case 6444:switch(V(e,W(e)-3-(~Te(e,"!important")&&10))){case 107:return E(e,":",":"+k)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(V(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(V(e,t+11)){case 114:return k+e+F+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+F+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+F+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return k+e+F+e+e}return e}var Ht=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Ce:t.return=et(t.value,t.length);break;case Ye:return te([le(t,{value:E(t.value,"@","@"+k)})],a);case Ae:if(t.length)return It(t.props,function(i){switch(Rt(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return te([le(t,{props:[E(i,/:(read-\w+)/,":"+ye+"$1")]})],a);case"::placeholder":return te([le(t,{props:[E(i,/:(plac\w+)/,":"+k+"input-$1")]}),le(t,{props:[E(i,/:(plac\w+)/,":"+ye+"$1")]}),le(t,{props:[E(i,/:(plac\w+)/,F+"input-$1")]})],a)}return""})}},Xt=[Ht],Kt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var h=f.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var a=t.stylisPlugins||Xt,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),y=1;y<h.length;y++)i[h[y]]=!0;c.push(f)});var d,m=[qt,Gt];{var l,p=[Bt,Dt(function(f){l.insert(f)})],g=Ut(m.concat(a,p)),x=function(h){return te(Ft(h),g)};d=function(h,y,w,A){l=w,x(h?h+"{"+y.styles+"}":y.styles),A&&(b.inserted[y.name]=!0)}}var b={key:r,sheet:new Et({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return b.sheet.hydrate(c),b},Jt=!0;function Zt(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tt=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Jt===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Qt=function(t,r,n){tt(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function er(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},rr=/[A-Z]|^ms/g,nr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rt=function(t){return t.charCodeAt(1)===45},nt=function(t){return t!=null&&typeof t!="boolean"},Oe=Ze(function(e){return rt(e)?e:e.replace(rr,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nr,function(n,a,i){return q={name:a,styles:i,next:q},a})}return tr[t]!==1&&!rt(t)&&typeof r=="number"&&r!==0?r+"px":r};function fe(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return q={name:a.name,styles:a.styles,next:q},a.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)q={name:s.name,styles:s.styles,next:q},s=s.next;var c=i.styles+";";return c}return ar(e,t,r)}case"function":{if(e!==void 0){var d=q,m=r(e);return q=d,fe(e,t,m)}break}}var l=r;if(t==null)return l;var p=t[l];return p!==void 0?p:l}function ar(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=fe(e,t,r[a])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?n+=i+"{"+t[c]+"}":nt(c)&&(n+=Oe(i)+":"+at(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var d=0;d<s.length;d++)nt(s[d])&&(n+=Oe(i)+":"+at(i,s[d])+";");else{var m=fe(e,t,s);switch(i){case"animation":case"animationName":{n+=Oe(i)+":"+m+";";break}default:n+=i+"{"+m+"}"}}}return n}var it=/label:\s*([^\s;{]+)\s*(;|$)/g,q;function ir(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";q=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=fe(r,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=fe(r,t,e[c]),n){var d=i;a+=d[c]}it.lastIndex=0;for(var m="",l;(l=it.exec(a))!==null;)m+="-"+l[1];var p=er(a)+m;return{name:p,styles:a,next:q}}var or=function(t){return t()},sr=H.useInsertionEffect?H.useInsertionEffect:!1,cr=sr||or,ot=H.createContext(typeof HTMLElement<"u"?Kt({key:"css"}):null);ot.Provider;var lr=function(t){return P.forwardRef(function(r,n){var a=P.useContext(ot);return t(r,a,n)})},ur=H.createContext({}),dr=/^((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|fetchpriority|fetchPriority|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)-.*))$/,fr=Ze(function(e){return dr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),pr=fr,hr=function(t){return t!=="theme"},st=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pr:hr},ct=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},mr=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tt(r,n,a),cr(function(){return Qt(r,n,a)}),null},yr=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var c=ct(t,r,n),d=c||st(a),m=!d("as");return function(){var l=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)p.push.apply(p,l);else{var g=l[0];p.push(g[0]);for(var x=l.length,b=1;b<x;b++)p.push(l[b],g[b])}var f=lr(function(h,y,w){var A=m&&h.as||a,R="",C=[],T=h;if(h.theme==null){T={};for(var u in h)T[u]=h[u];T.theme=H.useContext(ur)}typeof h.className=="string"?R=Zt(y.registered,C,h.className):h.className!=null&&(R=h.className+" ");var I=ir(p.concat(C),y.registered,T);R+=y.key+"-"+I.name,s!==void 0&&(R+=" "+s);var j=m&&c===void 0?st(A):d,_={};for(var N in h)m&&N==="as"||j(N)&&(_[N]=h[N]);return _.className=R,w&&(_.ref=w),H.createElement(H.Fragment,null,H.createElement(mr,{cache:y,serialized:I,isStringTag:typeof A=="string"}),H.createElement(A,_))});return f.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=p,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(h,y){var w=e(h,Se({},r,y,{shouldForwardProp:ct(f,y,!0)}));return w.apply(void 0,p)},f}},gr=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],re=yr.bind(null);gr.forEach(function(e){re[e]=re(e)});const br=re.div`
23
23
  display: flex;
24
24
  align-items: center;
25
25
  justify-content: center;
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  background-color: rgba(255, 165, 0, 0.1);
48
48
  border: 1px solid orange;
49
49
  `;default:return""}}}
50
- `,je=({type:e,children:t,className:r,icon:n,action:a})=>N.jsxs(br,{type:e,className:r,children:[n&&N.jsx("span",{children:n}),N.jsx("span",{children:t}),a&&N.jsx("span",{children:a})]}),Le=re.div`
50
+ `,je=({type:e,children:t,className:r,icon:n,action:a})=>$.jsxs(br,{type:e,className:r,children:[n&&$.jsx("span",{children:n}),$.jsx("span",{children:t}),a&&$.jsx("span",{children:a})]}),Le=re.div`
51
51
  width: ${({width:e})=>e||"100%"};
52
52
  height: ${({height:e})=>e||"100%"};
53
53
  border-radius: 8px;
@@ -81,4 +81,4 @@ React keys must be passed directly to JSX without using spread:
81
81
  @media (min-width: 768px) {
82
82
  width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
83
83
  }
84
- `,vr=(e,t)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`,wr=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`,xr=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Ne=(e,t)=>`vp-player-${e||"default"}-${t||""}`,$e=new Map,dt=(e,t)=>{const[r,n]=k.useState(!1),[a,i]=k.useState(null);return k.useEffect(()=>{let s=null,c,d=0;const m=3;let l;try{l=t||xr(e||"latest")}catch(P){const b=P instanceof Error?P.message:String(P);i(`Failed to resolve script URL: ${b}`),n(!1);return}if($e.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){$e.set(l,!0),n(!0),i(null);return}const g=()=>{s=document.createElement("script"),s.src=l,s.async=!0,c=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),s.onload=()=>{clearTimeout(c),$e.set(l,!0),n(!0),i(null)},s.onerror=()=>{clearTimeout(c),d++,d<m?setTimeout(g,1e3*d):(n(!1),i(`Failed to load VP Player script after ${m} attempts: ${l}`))},document.body.appendChild(s)};return g(),()=>{clearTimeout(c),s&&document.body.contains(s)&&document.body.removeChild(s)}},[e,t]),{isLoaded:r,error:a}},Pr={},Ee=new Map,kr=3e4,Ve=5,ft=({projectId:e,videoId:t,playlistId:r,videoUrl:n,apiKey:a})=>{const[i,s]=k.useState(null),[c,d]=k.useState(null),[m,l]=k.useState(!1),[p,g]=k.useState(null),P=a||(typeof Pr<"u"?"1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E":void 0);return k.useEffect(()=>{const b=t?`video:${t}`:r?`playlist:${r}`:null;if(!e||n||!t&&!r){s(n||null),d(null),l(!1),g(null);return}if(!P){l(!1),g("No API key provided");return}if(b&&Ee.has(b)){const R=Ee.get(b);s(R.url),d(R.playlist),l(!1),g(null);return}let f=!0;const h=new AbortController,y=h.signal,A=setTimeout(async()=>{var w,C;if(!f)return;l(!0),g(null);let R=0;for(;R<Ve&&f;)try{const u=t&&!r?vr(e,t):wr(e,r),I=setTimeout(()=>h.abort(),kr),V=await fetch(u,{method:"GET",headers:{"api-key":P,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(clearTimeout(I),!V.ok)throw new Error(`Fetch failed with status ${V.status}`);const T=await V.json();if(!f)return;if(t&&!r){const L=(C=(w=T.result)==null?void 0:w.items)==null?void 0:C.find(X=>X.mediaId===t);if(!(L!=null&&L.playbackUrl))throw new Error("Invalid video data");s(L.playbackUrl),d(null),b&&Ee.set(b,{url:L.playbackUrl,playlist:null})}else{if(!Array.isArray(T.result))throw new Error("Invalid playlist format");d(T.result),s(null),b&&Ee.set(b,{url:null,playlist:T.result})}break}catch(u){if(y.aborted){f&&g("Request timed out");break}if(R++,R>=Ve){const I=u instanceof Error?u.message:String(u);f&&g(`Failed after ${Ve} attempts: ${I}`)}else await new Promise(I=>setTimeout(I,2e3))}f&&l(!1)},100);return()=>{f=!1,clearTimeout(A),h.abort()}},[P,e,t,r,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:c,isLoading:m,error:p}},Er={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},pt=({videoUrl:e,fetchedPlaybackUrl:t,fetchedPlaylist:r,projectId:n,config:a={},isVerticalPlayer:i})=>{var l,p,g,P,b,f,h,y,x,A,R;const s={...Er,...a},c={...s.config,...a.config};if(e)return{...s,video:{...s.video,file:e,playlist:void 0},config:c};if(t)return{...s,video:{...s.video,file:t,playlist:void 0},config:c};if(r&&r.length>0){const w=((p=(l=a==null?void 0:a.video)==null?void 0:l.playlist)==null?void 0:p.playlistVideoIndex)??((g=a==null?void 0:a.config)==null?void 0:g.playlistVideoIndex)??0;if(i){const C=Number(w),u=r[C]||r[0];return{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:u==null?void 0:u.hlsUrl,title:u==null?void 0:u.title,playlist:{state:!0,playlistId:"",playlistVideoIndex:Number(w),videos:r.map((V,T)=>({videoId:String(T),title:V.title,file:V.hlsUrl,thumbnailUrl:V.thumbnailUrl,duration:V.duration}))}},config:c}}else return{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:((P=r[Number(w)])==null?void 0:P.hlsUrl)||((b=r[0])==null?void 0:b.hlsUrl)||"",title:((f=r[Number(w)])==null?void 0:f.title)||((h=r[0])==null?void 0:h.title),thumbnail:((y=r[Number(w)])==null?void 0:y.thumbnailUrl)||((x=r[0])==null?void 0:x.thumbnailUrl),playlist:{state:!0,playlistVideoIndex:Number(w),videos:r.map((u,I)=>({videoId:String(I),title:u.title,file:u.hlsUrl,thumbnailUrl:u.thumbnailUrl,duration:u.duration}))}},config:c}}const d=((A=a==null?void 0:a.video)==null?void 0:A.playlist)||s.video.playlist,m=(R=a==null?void 0:a.video)==null?void 0:R.file;if(m)return{...s,video:{...s.video,file:m,playlist:void 0},config:c};if(d!=null&&d.videos&&d.videos.length>0){const w=d.videos[Number(d.playlistVideoIndex)||0];return{...s,video:{...s.video,file:(w==null?void 0:w.file)||"",playlist:{...d,state:d.state??!0,playlistVideoIndex:Number(d.playlistVideoIndex||0),videos:d.videos}},config:{...s.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},ht=e=>{if(!e)return;const t=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,r=e.match(t);return r?r[2]:void 0},mt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:d,isReels:m=!1})=>{const l=k.useRef(null),p=k.useRef(null),{isLoaded:g,error:P}=dt(r,s),b=t||ht(s),[f,h]=k.useState(null),{fetchedPlaybackUrl:y,fetchedPlaylist:x,isLoading:A,error:R}=ft({projectId:a,videoId:b,playlistId:i,videoUrl:n,apiKey:d}),w=Ne(e,b),C=k.useMemo(()=>{const u=c.config||{},I=m&&!u.size?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:u.size||{sizeType:"FIXED",width:"100%"};return{...c,config:{...u,size:I}}},[c,m]);return k.useEffect(()=>{if(P){h(P);return}if(!g||A&&!n)return;let u=!0;const V=setTimeout(async()=>{try{const T=s==null?void 0:s.includes("vertical-player");if(document.querySelectorAll('[id*="player"]').forEach(ae=>{var pe,he;const Z=ae.id;if(Z!==w)try{const o=T?(pe=window.vpVerticalPlayer)==null?void 0:pe.call(window,Z):(he=window.vpPlayer)==null?void 0:he.call(window,Z);o!=null&&o.destroy&&o.destroy()}catch(o){console.warn(`Failed to destroy existing player ${Z}:`,o)}}),await new Promise(ae=>setTimeout(ae,100)),!u||!l.current)return;if(!document.getElementById(w)){h("DOM element not found after cleanup.");return}if(!window.vpPlayer&&!window.vpVerticalPlayer){h("VP Player script not loaded.");return}const z=T?window.vpVerticalPlayer:window.vpPlayer;if(!z){h(`VP ${T?"Vertical ":""}Player script not loaded.`);return}const K=pt({videoUrl:n,fetchedPlaybackUrl:y??void 0,fetchedPlaylist:x??void 0,projectId:a,config:C,isVerticalPlayer:T}),ne=z(w);if(!ne){h(`Failed to create VP ${T?"Vertical ":""}Player instance.`);return}u&&l.current&&(ne.setup(K),p.current=ne,h(null))}catch(T){if(u){const L=T instanceof Error?T.message:String(T);h(L),console.error("VP Player initialization error:",T)}}},150);return()=>{u=!1,clearTimeout(V)}},[g,A,n,y,x,a,C,w,P,s]),k.useEffect(()=>()=>{if(p.current){try{p.current.destroy&&p.current.destroy()}catch(I){console.warn(`Failed to destroy player ${w}:`,I)}p.current=null}const u=document.getElementById(w);u&&(u.innerHTML="")},[w]),{playerRef:l,playerInstanceRef:p,isScriptLoaded:g,isLoading:A,error:R||f||P}},yt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:d,isReels:m=!1,hiddenClasses:l=[],onClose:p,className:g})=>{var V,T,L,X;const{playerRef:P,playerInstanceRef:b,isScriptLoaded:f,isLoading:h,error:y}=mt({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c,apiKey:d,isReels:m}),[x,A]=k.useState(!0),R=()=>m&&A(!0),w=()=>{var z,K;A(!1),(K=(z=b.current)==null?void 0:z.play)==null||K.call(z),p==null||p()},C=(T=(V=c==null?void 0:c.config)==null?void 0:V.size)!=null&&T.width?typeof c.config.size.width=="number"?`${c.config.size.width}px`:c.config.size.width:void 0,u=(X=(L=c==null?void 0:c.config)==null?void 0:L.size)!=null&&X.height?typeof c.config.size.height=="number"?`${c.config.size.height}px`:c.config.size.height:void 0,I=Ne(e,t);return y?N.jsxs(je,{type:"error",children:["An error occurred: ",y]}):h||!f?N.jsx(je,{type:"loading",children:"Loading..."}):N.jsxs(N.Fragment,{children:[m&&!x?N.jsx("div",{onClick:R}):null,!m&&N.jsx("div",{children:N.jsx(Le,{id:I,ref:P,width:C||"100%",height:u||"auto",$hiddenClasses:l,className:g})},I),m&&x&&N.jsx(lt,{onClick:w,className:g,children:N.jsx(ut,{className:g,onClick:z=>z.stopPropagation(),children:N.jsx("div",{children:N.jsx(Le,{id:I,ref:P,width:"100%",height:"auto",$hiddenClasses:l,className:g})},I)})})]})},gt=k.createContext(void 0),_r=({children:e})=>{const[t,r]=k.useState(!1),[n,a]=k.useState(null),[i,s]=k.useState(null),c=k.useCallback(l=>{try{const p=Ne(l.playerId,l.videoId);a({...l,playerId:p}),r(!0),s(null)}catch{s("Failed to show player.")}},[]),d=k.useCallback(()=>{r(!1),a(null),s(null)},[]),m=k.useMemo(()=>({showPlayer:c,hidePlayer:d,isPlayerVisible:t,playerParams:n}),[c,d,t,n]);return N.jsxs(gt.Provider,{value:m,children:[e,i&&N.jsx(je,{type:"error",children:i}),t&&(n==null?void 0:n.playerId)&&N.jsx(yt,{playerId:n.playerId,videoId:n.videoId,projectId:n.projectId,videoUrl:n.videoUrl,version:n.version,playlistId:n.playlistId,scriptUrl:n.scriptUrl,config:n.config,isReels:n.isReels,thumbnailUrl:n.thumbnailUrl,onClose:d,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},Sr=()=>{const e=k.useContext(gt);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e},Ar={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,pauseOtherVideos:!0,focusOnAutostart:!1,muted:!0,loop:!1,size:{width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!1,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},Cr={config:{autostartOnLoad:{state:!0,onMobile:!0,onData:!0},muted:!0}},Tr={config:{autoplay:!0,muted:!0}},_e={video:{advertising:!0,ads:{skipAd:{state:!0,skipFrom:5}}},config:{adAnnouncement:{state:!0,timeBeforeAd:5},adsRequireInteraction:!1}},Rr=(e,t,r="time",n=0)=>{var a;return{..._e,video:{..._e.video,ads:{...(a=_e.video)==null?void 0:a.ads,adBreaks:[{adTagUrl:t,breakType:e,breakTimingType:r,breakTimingValue:n}]}}}},Ir="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",Or="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",jr="https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4",Lr="https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600",Nr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",$r="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";S.AD_TAG_LINEAR_URL=Nr,S.AD_TAG_SKIPPABLE_LINEAR_URL=$r,S.BIG_BUCK_BUNNY_URL=Ir,S.ELEPHANTS_DREAM_URL=Or,S.Overlay=lt,S.PEXELS_THUMBNAIL_URL=Lr,S.PEXELS_VERTICAL_VIDEO_URL=jr,S.PlayerContainer=Le,S.PlayerWrapper=ut,S.VPPlayer=yt,S.VPPlayerProvider=_r,S.baseConfig=Cr,S.baseConfigWithAds=_e,S.baseConfigWithAutoplay=Tr,S.buildVPPlayerConfig=pt,S.defaultVPPlayerConfig=Ar,S.extractVideoId=ht,S.getAdConfig=Rr,S.useVPPlayer=Sr,S.useVPPlayerLogic=mt,S.useVPPlayerScript=dt,S.useVideoData=ft,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
84
+ `,vr=(e,t)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`,wr=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`,xr=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Ne=(e,t)=>`vp-player-${e||"default"}-${t||""}`,$e=new Map,dt=(e,t)=>{const[r,n]=P.useState(!1),[a,i]=P.useState(null);return P.useEffect(()=>{let s=null,c,d=0;const m=3;let l;try{l=t||xr(e||"latest")}catch(x){const b=x instanceof Error?x.message:String(x);i(`Failed to resolve script URL: ${b}`),n(!1);return}if($e.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){$e.set(l,!0),n(!0),i(null);return}const g=()=>{s=document.createElement("script"),s.src=l,s.async=!0,c=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),s.onload=()=>{clearTimeout(c),$e.set(l,!0),n(!0),i(null)},s.onerror=()=>{clearTimeout(c),d++,d<m?setTimeout(g,1e3*d):(n(!1),i(`Failed to load VP Player script after ${m} attempts: ${l}`))},document.body.appendChild(s)};return g(),()=>{clearTimeout(c),s&&document.body.contains(s)&&document.body.removeChild(s)}},[e,t]),{isLoaded:r,error:a}},Pr={},Ee=new Map,kr=3e4,Ve=5,ft=({projectId:e,videoId:t,playlistId:r,videoUrl:n,apiKey:a})=>{const[i,s]=P.useState(null),[c,d]=P.useState(null),[m,l]=P.useState(!1),[p,g]=P.useState(null),x=a||(typeof Pr<"u"?"1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E":void 0);return P.useEffect(()=>{const b=t?`video:${t}`:r?`playlist:${r}`:null;if(!e||n||!t&&!r){s(n||null),d(null),l(!1),g(null);return}if(!x){l(!1),g("No API key provided");return}if(b&&Ee.has(b)){const R=Ee.get(b);s(R.url),d(R.playlist),l(!1),g(null);return}let f=!0;const h=new AbortController,y=h.signal,A=setTimeout(async()=>{var C,T;if(!f)return;l(!0),g(null);let R=0;for(;R<Ve&&f;)try{const u=t&&!r?vr(e,t):wr(e,r),I=setTimeout(()=>h.abort(),kr),j=await fetch(u,{method:"GET",headers:{"api-key":x,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(clearTimeout(I),!j.ok)throw new Error(`Fetch failed with status ${j.status}`);const _=await j.json();if(!f)return;if(t&&!r){const N=(T=(C=_.result)==null?void 0:C.items)==null?void 0:T.find(X=>X.mediaId===t);if(!(N!=null&&N.playbackUrl))throw new Error("Invalid video data");s(N.playbackUrl),d(null),b&&Ee.set(b,{url:N.playbackUrl,playlist:null})}else{if(!Array.isArray(_.result))throw new Error("Invalid playlist format");d(_.result),s(null),b&&Ee.set(b,{url:null,playlist:_.result})}break}catch(u){if(y.aborted){f&&g("Request timed out");break}if(R++,R>=Ve){const I=u instanceof Error?u.message:String(u);f&&g(`Failed after ${Ve} attempts: ${I}`)}else await new Promise(I=>setTimeout(I,2e3))}f&&l(!1)},100);return()=>{f=!1,clearTimeout(A),h.abort()}},[x,e,t,r,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:c,isLoading:m,error:p}},Er={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},pt=({videoUrl:e,fetchedPlaybackUrl:t,fetchedPlaylist:r,projectId:n,config:a={},isVerticalPlayer:i})=>{var l,p,g,x,b,f,h,y,w,A,R,C,T;const s={...Er,...a},c={...s.config,...a.config};if(e)return{...s,video:{...s.video,file:e,playlist:void 0},config:c};if(t)return{...s,video:{...s.video,file:t,playlist:void 0},config:c};if(r&&r.length>0){const u=((p=(l=a==null?void 0:a.video)==null?void 0:l.playlist)==null?void 0:p.playlistVideoIndex)??((g=a==null?void 0:a.config)==null?void 0:g.playlistVideoIndex)??0;return i?{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:(x=r[0])==null?void 0:x.hlsUrl,title:(b=r[0])==null?void 0:b.title,playlist:{state:!0,playlistId:"",playlistVideoIndex:Number(u),videos:r.slice(1).map((j,_)=>({videoId:String(_+1),title:j.title,file:j.hlsUrl,thumbnailUrl:j.thumbnailUrl,duration:j.duration}))}},config:c}:{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:((f=r[Number(u)])==null?void 0:f.hlsUrl)||((h=r[0])==null?void 0:h.hlsUrl)||"",title:((y=r[Number(u)])==null?void 0:y.title)||((w=r[0])==null?void 0:w.title),thumbnail:((A=r[Number(u)])==null?void 0:A.thumbnailUrl)||((R=r[0])==null?void 0:R.thumbnailUrl),playlist:{state:!0,playlistVideoIndex:Number(u),videos:r.map((j,_)=>({videoId:String(_),title:j.title,file:j.hlsUrl,thumbnailUrl:j.thumbnailUrl,duration:j.duration}))}},config:c}}const d=((C=a==null?void 0:a.video)==null?void 0:C.playlist)||s.video.playlist,m=(T=a==null?void 0:a.video)==null?void 0:T.file;if(m)return{...s,video:{...s.video,file:m,playlist:void 0},config:c};if(d!=null&&d.videos&&d.videos.length>0){const u=d.videos[Number(d.playlistVideoIndex)||0];return{...s,video:{...s.video,file:(u==null?void 0:u.file)||"",playlist:{...d,state:d.state??!0,playlistVideoIndex:Number(d.playlistVideoIndex||0),videos:d.videos}},config:{...s.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},ht=e=>{if(!e)return;const t=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,r=e.match(t);return r?r[2]:void 0},mt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:d,isReels:m=!1})=>{const l=P.useRef(null),p=P.useRef(null),{isLoaded:g,error:x}=dt(r,s),b=t||ht(s),[f,h]=P.useState(null),{fetchedPlaybackUrl:y,fetchedPlaylist:w,isLoading:A,error:R}=ft({projectId:a,videoId:b,playlistId:i,videoUrl:n,apiKey:d}),C=Ne(e,b),T=P.useMemo(()=>{const u=c.config||{},I=m&&!u.size?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:u.size||{sizeType:"FIXED",width:"100%"};return{...c,config:{...u,size:I}}},[c,m]);return P.useEffect(()=>{if(x){h(x);return}if(!g||A&&!n)return;let u=!0;const j=setTimeout(async()=>{try{const _=s==null?void 0:s.includes("vertical-player");if(document.querySelectorAll('[id*="player"]').forEach(ae=>{var pe,he;const Z=ae.id;if(Z!==C)try{const o=_?(pe=window.vpVerticalPlayer)==null?void 0:pe.call(window,Z):(he=window.vpPlayer)==null?void 0:he.call(window,Z);o!=null&&o.destroy&&o.destroy()}catch(o){console.warn(`Failed to destroy existing player ${Z}:`,o)}}),await new Promise(ae=>setTimeout(ae,100)),!u||!l.current)return;if(!document.getElementById(C)){h("DOM element not found after cleanup.");return}if(!window.vpPlayer&&!window.vpVerticalPlayer){h("VP Player script not loaded.");return}const z=_?window.vpVerticalPlayer:window.vpPlayer;if(!z){h(`VP ${_?"Vertical ":""}Player script not loaded.`);return}const K=pt({videoUrl:n,fetchedPlaybackUrl:y??void 0,fetchedPlaylist:w??void 0,projectId:a,config:T,isVerticalPlayer:_}),ne=z(C);if(!ne){h(`Failed to create VP ${_?"Vertical ":""}Player instance.`);return}u&&l.current&&(ne.setup(K),p.current=ne,h(null))}catch(_){if(u){const N=_ instanceof Error?_.message:String(_);h(N),console.error("VP Player initialization error:",_)}}},150);return()=>{u=!1,clearTimeout(j)}},[g,A,n,y,w,a,T,C,x,s]),P.useEffect(()=>()=>{if(p.current){try{p.current.destroy&&p.current.destroy()}catch(I){console.warn(`Failed to destroy player ${C}:`,I)}p.current=null}const u=document.getElementById(C);u&&(u.innerHTML="")},[C]),{playerRef:l,playerInstanceRef:p,isScriptLoaded:g,isLoading:A,error:R||f||x}},yt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:d,isReels:m=!1,hiddenClasses:l=[],onClose:p,className:g})=>{var j,_,N,X;const{playerRef:x,playerInstanceRef:b,isScriptLoaded:f,isLoading:h,error:y}=mt({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c,apiKey:d,isReels:m}),[w,A]=P.useState(!0),R=()=>m&&A(!0),C=()=>{var z,K;A(!1),(K=(z=b.current)==null?void 0:z.play)==null||K.call(z),p==null||p()},T=(_=(j=c==null?void 0:c.config)==null?void 0:j.size)!=null&&_.width?typeof c.config.size.width=="number"?`${c.config.size.width}px`:c.config.size.width:void 0,u=(X=(N=c==null?void 0:c.config)==null?void 0:N.size)!=null&&X.height?typeof c.config.size.height=="number"?`${c.config.size.height}px`:c.config.size.height:void 0,I=Ne(e,t);return y?$.jsxs(je,{type:"error",children:["An error occurred: ",y]}):h||!f?$.jsx(je,{type:"loading",children:"Loading..."}):$.jsxs($.Fragment,{children:[m&&!w?$.jsx("div",{onClick:R}):null,!m&&$.jsx("div",{children:$.jsx(Le,{id:I,ref:x,width:T||"100%",height:u||"auto",$hiddenClasses:l,className:g})},I),m&&w&&$.jsx(lt,{onClick:C,className:g,children:$.jsx(ut,{className:g,onClick:z=>z.stopPropagation(),children:$.jsx("div",{children:$.jsx(Le,{id:I,ref:x,width:"100%",height:"auto",$hiddenClasses:l,className:g})},I)})})]})},gt=P.createContext(void 0),_r=({children:e})=>{const[t,r]=P.useState(!1),[n,a]=P.useState(null),[i,s]=P.useState(null),c=P.useCallback(l=>{try{const p=Ne(l.playerId,l.videoId);a({...l,playerId:p}),r(!0),s(null)}catch{s("Failed to show player.")}},[]),d=P.useCallback(()=>{r(!1),a(null),s(null)},[]),m=P.useMemo(()=>({showPlayer:c,hidePlayer:d,isPlayerVisible:t,playerParams:n}),[c,d,t,n]);return $.jsxs(gt.Provider,{value:m,children:[e,i&&$.jsx(je,{type:"error",children:i}),t&&(n==null?void 0:n.playerId)&&$.jsx(yt,{playerId:n.playerId,videoId:n.videoId,projectId:n.projectId,videoUrl:n.videoUrl,version:n.version,playlistId:n.playlistId,scriptUrl:n.scriptUrl,config:n.config,isReels:n.isReels,thumbnailUrl:n.thumbnailUrl,onClose:d,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},Sr=()=>{const e=P.useContext(gt);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e},Ar={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,pauseOtherVideos:!0,focusOnAutostart:!1,muted:!0,loop:!1,size:{width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!1,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},Cr={config:{autostartOnLoad:{state:!0,onMobile:!0,onData:!0},muted:!0}},Tr={config:{autoplay:!0,muted:!0}},_e={video:{advertising:!0,ads:{skipAd:{state:!0,skipFrom:5}}},config:{adAnnouncement:{state:!0,timeBeforeAd:5},adsRequireInteraction:!1}},Rr=(e,t,r="time",n=0)=>{var a;return{..._e,video:{..._e.video,ads:{...(a=_e.video)==null?void 0:a.ads,adBreaks:[{adTagUrl:t,breakType:e,breakTimingType:r,breakTimingValue:n}]}}}},Ir="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",Or="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",jr="https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4",Lr="https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600",Nr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",$r="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";S.AD_TAG_LINEAR_URL=Nr,S.AD_TAG_SKIPPABLE_LINEAR_URL=$r,S.BIG_BUCK_BUNNY_URL=Ir,S.ELEPHANTS_DREAM_URL=Or,S.Overlay=lt,S.PEXELS_THUMBNAIL_URL=Lr,S.PEXELS_VERTICAL_VIDEO_URL=jr,S.PlayerContainer=Le,S.PlayerWrapper=ut,S.VPPlayer=yt,S.VPPlayerProvider=_r,S.baseConfig=Cr,S.baseConfigWithAds=_e,S.baseConfigWithAutoplay=Tr,S.buildVPPlayerConfig=pt,S.defaultVPPlayerConfig=Ar,S.extractVideoId=ht,S.getAdConfig=Rr,S.useVPPlayer=Sr,S.useVPPlayerLogic=mt,S.useVPPlayerScript=dt,S.useVideoData=ft,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devix-technologies/react-gjirafa-vp-player",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "type": "module",
5
5
  "main": "./dist/react-gjirafa-vp-player.umd.js",
6
6
  "module": "./dist/react-gjirafa-vp-player.es.js",