@vindral/web-sdk 4.1.5 → 4.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/player.js CHANGED
@@ -1,11 +1,11 @@
1
- var Mo = Object.defineProperty;
2
- var Do = Object.getPrototypeOf;
3
- var Fo = Reflect.get;
1
+ var Fo = Object.defineProperty;
2
+ var Ho = Object.getPrototypeOf;
3
+ var Oo = Reflect.get;
4
4
  var vr = (c) => {
5
5
  throw TypeError(c);
6
6
  };
7
- var Ho = (c, a, t) => a in c ? Mo(c, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[a] = t;
8
- var m = (c, a, t) => Ho(c, typeof a != "symbol" ? a + "" : a, t), sn = (c, a, t) => a.has(c) || vr("Cannot " + t);
7
+ var zo = (c, a, t) => a in c ? Fo(c, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[a] = t;
8
+ var m = (c, a, t) => zo(c, typeof a != "symbol" ? a + "" : a, t), sn = (c, a, t) => a.has(c) || vr("Cannot " + t);
9
9
  var e = (c, a, t) => (sn(c, a, "read from private field"), t ? t.call(c) : a.get(c)), l = (c, a, t) => a.has(c) ? vr("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(c) : a.set(c, t), d = (c, a, t, i) => (sn(c, a, "write to private field"), i ? i.call(c, t) : a.set(c, t), t), n = (c, a, t) => (sn(c, a, "access private method"), t);
10
10
  var fr = (c, a, t, i) => ({
11
11
  set _(s) {
@@ -14,7 +14,7 @@ var fr = (c, a, t, i) => ({
14
14
  get _() {
15
15
  return e(c, a, i);
16
16
  }
17
- }), J = (c, a, t) => Fo(Do(c), t, a);
17
+ }), J = (c, a, t) => Oo(Ho(c), t, a);
18
18
  var $ = (c, a, t) => new Promise((i, s) => {
19
19
  var o = (v) => {
20
20
  try {
@@ -31,11 +31,11 @@ var $ = (c, a, t) => new Promise((i, s) => {
31
31
  }, p = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(o, u);
32
32
  p((t = t.apply(c, a)).next());
33
33
  });
34
- import { L as Lr, V as Oo, i as zo, C as $o, A as Bo, a as Go, b as Ko } from "./DROC3QN7.js";
34
+ import { L as Lr, V as $o, i as Bo, C as Go, A as Ko, a as qo, b as Vo } from "./D1E3hbbb.js";
35
35
  import { E as ds } from "./Bx7s5QdT.js";
36
- import { CastSender as qo } from "./cast-sender.js";
37
- import { A as Xo, d as Vo } from "./CPEMXA01.js";
38
- const on = 1e3, ln = on * 1e3, gr = ln * 1e3, nn = (c, a, t) => c % a === 0 ? c / a : (c / a).toFixed(t), jo = (c, a = 1) => c >= gr ? `${nn(c, gr, a)} Gbit/s` : c >= ln ? `${nn(c, ln, a)} Mbit/s` : c >= on ? `${nn(c, on, a)} Kbit/s` : `${c} bit/s`, Yo = ({ width: c, height: a }) => `${c}x${a}`, Jo = ({
36
+ import { CastSender as Xo } from "./cast-sender.js";
37
+ import { A as jo, d as Yo } from "./CPEMXA01.js";
38
+ const on = 1e3, ln = on * 1e3, gr = ln * 1e3, nn = (c, a, t) => c % a === 0 ? c / a : (c / a).toFixed(t), Jo = (c, a = 1) => c >= gr ? `${nn(c, gr, a)} Gbit/s` : c >= ln ? `${nn(c, ln, a)} Mbit/s` : c >= on ? `${nn(c, on, a)} Kbit/s` : `${c} bit/s`, Wo = ({ width: c, height: a }) => `${c}x${a}`, Qo = ({
39
39
  title: c,
40
40
  subTitle: a = "Live stream",
41
41
  poster: t
@@ -114,14 +114,14 @@ function Tr(c) {
114
114
  function rn(c) {
115
115
  return c === "trace" || c === "debug" || c === "info" || c === "warn" || c === "error" || c === "off" ? c : "off";
116
116
  }
117
- function Wo(c) {
117
+ function Zo(c) {
118
118
  if (c === null)
119
119
  return;
120
120
  const a = c.split(",").map((t) => t.trim()).filter((t) => t === "h264" || t === "av1");
121
121
  if (a.length !== 0)
122
122
  return a;
123
123
  }
124
- function Qo(c) {
124
+ function tl(c) {
125
125
  if (c !== null)
126
126
  try {
127
127
  const a = JSON.parse(c);
@@ -134,7 +134,7 @@ function Qo(c) {
134
134
  return;
135
135
  }
136
136
  }
137
- function Zo(c) {
137
+ function el(c) {
138
138
  if (c !== null)
139
139
  try {
140
140
  const a = JSON.parse(c);
@@ -151,10 +151,10 @@ function Zo(c) {
151
151
  return;
152
152
  }
153
153
  }
154
- function ve(c) {
154
+ function Wt(c) {
155
155
  if (c === null)
156
156
  return;
157
- const a = parseInt(c, 10);
157
+ const a = parseFloat(c);
158
158
  return isNaN(a) ? void 0 : a;
159
159
  }
160
160
  function x(c) {
@@ -234,7 +234,7 @@ Cr.innerHTML = /* HTML */
234
234
  }
235
235
  </style>
236
236
  `;
237
- var ge, ai, ee, oi;
237
+ var ge, ai, ie, oi;
238
238
  class rt extends HTMLElement {
239
239
  constructor() {
240
240
  super();
@@ -242,10 +242,10 @@ class rt extends HTMLElement {
242
242
  l(this, ai, (t) => {
243
243
  this.handleClick(t);
244
244
  });
245
- l(this, ee, (t) => {
245
+ l(this, ie, (t) => {
246
246
  const { key: i } = t;
247
247
  if (!this.keysUsed.includes(i)) {
248
- this.removeEventListener("keyup", e(this, ee));
248
+ this.removeEventListener("keyup", e(this, ie));
249
249
  return;
250
250
  }
251
251
  this.handleClick(t);
@@ -253,10 +253,10 @@ class rt extends HTMLElement {
253
253
  l(this, oi, (t) => {
254
254
  const { metaKey: i, altKey: s, key: o } = t;
255
255
  if (i || s || !this.keysUsed.includes(o)) {
256
- this.removeEventListener("keyup", e(this, ee));
256
+ this.removeEventListener("keyup", e(this, ie));
257
257
  return;
258
258
  }
259
- this.addEventListener("keyup", e(this, ee), { once: !0 });
259
+ this.addEventListener("keyup", e(this, ie), { once: !0 });
260
260
  });
261
261
  this.attachShadow({ mode: "open" }).appendChild(Cr.content.cloneNode(!0));
262
262
  }
@@ -271,7 +271,7 @@ class rt extends HTMLElement {
271
271
  this.addEventListener("click", e(this, ai)), this.addEventListener("keydown", e(this, oi)), this.tabIndex = 0;
272
272
  }
273
273
  disable() {
274
- this.removeEventListener("click", e(this, ai)), this.removeEventListener("keydown", e(this, oi)), this.removeEventListener("keyup", e(this, ee)), this.tabIndex = -1;
274
+ this.removeEventListener("click", e(this, ai)), this.removeEventListener("keydown", e(this, oi)), this.removeEventListener("keyup", e(this, ie)), this.tabIndex = -1;
275
275
  }
276
276
  disconnectedCallback() {
277
277
  var t;
@@ -281,7 +281,7 @@ class rt extends HTMLElement {
281
281
  t === "disabled" && (x(s) ? this.disable() : this.enable());
282
282
  }
283
283
  }
284
- ge = new WeakMap(), ai = new WeakMap(), ee = new WeakMap(), oi = new WeakMap(), m(rt, "observedAttributes", ["disabled"]);
284
+ ge = new WeakMap(), ai = new WeakMap(), ie = new WeakMap(), oi = new WeakMap(), m(rt, "observedAttributes", ["disabled"]);
285
285
  const xr = document.createElement("template"), Er = (
286
286
  /* SVG */
287
287
  `
@@ -314,7 +314,7 @@ xr.innerHTML = /* HTML */
314
314
  </slot>
315
315
  `;
316
316
  var li, dn;
317
- const Xe = class Xe extends rt {
317
+ const Ve = class Ve extends rt {
318
318
  constructor() {
319
319
  var t;
320
320
  super();
@@ -342,13 +342,13 @@ const Xe = class Xe extends rt {
342
342
  };
343
343
  li = new WeakSet(), dn = function() {
344
344
  this.setAttribute("aria-label", this.isAirPlaying ? "Exit airplay" : "Enter airplay");
345
- }, m(Xe, "observedAttributes", [
346
- ...J(Xe, Xe, "observedAttributes"),
345
+ }, m(Ve, "observedAttributes", [
346
+ ...J(Ve, Ve, "observedAttributes"),
347
347
  r.AIRPLAY_AVAILABLE,
348
348
  r.IS_AIRPLAYING
349
349
  ]);
350
- let hn = Xe;
351
- const Nr = document.createElement("template"), tl = (
350
+ let hn = Ve;
351
+ const Nr = document.createElement("template"), il = (
352
352
  /* SVG */
353
353
  `
354
354
  <svg width="24" height="24" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
@@ -403,7 +403,7 @@ Nr.innerHTML = /* HTML */
403
403
  }
404
404
  </style>
405
405
 
406
- <slot name="icon">${tl}</slot>
406
+ <slot name="icon">${il}</slot>
407
407
  `;
408
408
  var Ee;
409
409
  class Rr extends HTMLElement {
@@ -524,22 +524,22 @@ _r.innerHTML = /* HTML */
524
524
  }
525
525
  </style>
526
526
  `;
527
- var me, un, Mr;
528
- const Ve = class Ve extends rt {
527
+ var ve, un, Mr;
528
+ const Xe = class Xe extends rt {
529
529
  constructor() {
530
530
  var t;
531
531
  super();
532
- l(this, me);
532
+ l(this, ve);
533
533
  (t = this.shadowRoot) == null || t.appendChild(_r.content.cloneNode(!0));
534
534
  }
535
535
  connectedCallback() {
536
- super.connectedCallback(), n(this, me, un).call(this);
536
+ super.connectedCallback(), n(this, ve, un).call(this);
537
537
  }
538
538
  disconnectedCallback() {
539
539
  super.disconnectedCallback();
540
540
  }
541
541
  attributeChangedCallback(t, i, s) {
542
- super.attributeChangedCallback(t, i, s), t === r.CAST_AVAILABLE && n(this, me, Mr).call(this), t === r.IS_CASTING && n(this, me, un).call(this);
542
+ super.attributeChangedCallback(t, i, s), t === r.CAST_AVAILABLE && n(this, ve, Mr).call(this), t === r.IS_CASTING && n(this, ve, un).call(this);
543
543
  }
544
544
  set isCasting(t) {
545
545
  t ? this.setAttribute(r.IS_CASTING, "") : this.removeAttribute(r.IS_CASTING);
@@ -550,7 +550,7 @@ const Ve = class Ve extends rt {
550
550
  handleClick(t) {
551
551
  }
552
552
  };
553
- me = new WeakSet(), un = function() {
553
+ ve = new WeakSet(), un = function() {
554
554
  this.setAttribute("aria-label", this.isCasting ? "Exit cast" : "Enter cast");
555
555
  }, Mr = function() {
556
556
  var t, i;
@@ -558,12 +558,12 @@ me = new WeakSet(), un = function() {
558
558
  const s = document.createElement("google-cast-launcher");
559
559
  (i = this.shadowRoot) == null || i.appendChild(s);
560
560
  }
561
- }, m(Ve, "observedAttributes", [
562
- ...J(Ve, Ve, "observedAttributes"),
561
+ }, m(Xe, "observedAttributes", [
562
+ ...J(Xe, Xe, "observedAttributes"),
563
563
  r.CAST_AVAILABLE,
564
564
  r.IS_CASTING
565
565
  ]);
566
- let cn = Ve;
566
+ let cn = Xe;
567
567
  const Dr = document.createElement("template");
568
568
  Dr.innerHTML = /* HTML */
569
569
  `
@@ -699,14 +699,14 @@ Or.innerHTML = /* HTML */
699
699
  </style>
700
700
  <slot></slot>
701
701
  `;
702
- var ie;
702
+ var se;
703
703
  class hr extends HTMLElement {
704
704
  constructor() {
705
705
  super();
706
- l(this, ie);
706
+ l(this, se);
707
707
  m(this, "lastThumbnailUpdate");
708
708
  const t = this.attachShadow({ mode: "open" });
709
- d(this, ie, document.createElement("span")), e(this, ie).className = "channel-title", t.appendChild(e(this, ie)), t.appendChild(Or.content.cloneNode(!0));
709
+ d(this, se, document.createElement("span")), e(this, se).className = "channel-title", t.appendChild(e(this, se)), t.appendChild(Or.content.cloneNode(!0));
710
710
  }
711
711
  attributeChangedCallback(t, i, s) {
712
712
  if (i !== s)
@@ -715,7 +715,7 @@ class hr extends HTMLElement {
715
715
  this.updateThumbnail();
716
716
  break;
717
717
  case "title":
718
- e(this, ie).textContent = s;
718
+ e(this, se).textContent = s;
719
719
  break;
720
720
  }
721
721
  }
@@ -726,7 +726,7 @@ class hr extends HTMLElement {
726
726
  p && o.searchParams.set("auth.token", p), o.searchParams.set("t", Date.now().toString()), u.src = o.toString(), u.onload = () => this.style.backgroundImage = `url(${o.toString()})`;
727
727
  }
728
728
  }
729
- ie = new WeakMap(), m(hr, "observedAttributes", ["url", "title", "offline", "authentication-token", "visible"]);
729
+ se = new WeakMap(), m(hr, "observedAttributes", ["url", "title", "offline", "authentication-token", "visible"]);
730
730
  const zr = document.createElement("template");
731
731
  zr.innerHTML = /* HTML */
732
732
  `
@@ -796,7 +796,7 @@ zr.innerHTML = /* HTML */
796
796
  <slot name="grid" id="grid"></slot>
797
797
  </div>
798
798
  `;
799
- var Rt, Ut, Ie, V, _, Le, hi, di, ci, S, Br, Gr, Kr, pn, qr, Xr, Vr, jr, Yr, Jr, Wr, Be;
799
+ var Rt, Ut, Ie, X, _, Le, hi, di, ci, S, Br, Gr, Kr, pn, qr, Vr, Xr, jr, Yr, Jr, Wr, Be;
800
800
  class $r extends HTMLElement {
801
801
  constructor() {
802
802
  super();
@@ -804,7 +804,7 @@ class $r extends HTMLElement {
804
804
  l(this, Rt, null);
805
805
  l(this, Ut, null);
806
806
  l(this, Ie, []);
807
- l(this, V, []);
807
+ l(this, X, []);
808
808
  l(this, _);
809
809
  l(this, Le);
810
810
  l(this, hi);
@@ -833,7 +833,7 @@ class $r extends HTMLElement {
833
833
  if (i !== s)
834
834
  switch (t) {
835
835
  case r.CHANNEL_ID: {
836
- n(this, S, Vr).call(this, s);
836
+ n(this, S, Xr).call(this, s);
837
837
  break;
838
838
  }
839
839
  case r.CHANNELS:
@@ -852,7 +852,7 @@ class $r extends HTMLElement {
852
852
  d(this, di, Hr()), (t = e(this, _)) == null || t.focus();
853
853
  }
854
854
  }
855
- Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), V = new WeakMap(), _ = new WeakMap(), Le = new WeakMap(), hi = new WeakMap(), di = new WeakMap(), ci = new WeakMap(), S = new WeakSet(), Br = function() {
855
+ Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), X = new WeakMap(), _ = new WeakMap(), Le = new WeakMap(), hi = new WeakMap(), di = new WeakMap(), ci = new WeakMap(), S = new WeakSet(), Br = function() {
856
856
  d(this, Rt, new IntersectionObserver(
857
857
  (t) => {
858
858
  t.forEach((i) => {
@@ -881,31 +881,31 @@ Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), V = new WeakMap(), _
881
881
  i ? (t.setAttribute("visible", ""), (!t.lastThumbnailUpdate || Date.now() - t.lastThumbnailUpdate >= 1e4) && (t.updateThumbnail(), t.lastThumbnailUpdate = Date.now())) : t.removeAttribute("visible");
882
882
  }, pn = function() {
883
883
  var o;
884
- const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot[name=grid]"), i = new Map(e(this, V).map((u) => [u.id, u])), s = this.getAttribute("channel-id");
885
- d(this, V, e(this, Ie).map((u) => {
884
+ const t = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot[name=grid]"), i = new Map(e(this, X).map((u) => [u.id, u])), s = this.getAttribute("channel-id");
885
+ d(this, X, e(this, Ie).map((u) => {
886
886
  var A;
887
887
  const p = i.get(u.channelId);
888
888
  if (p)
889
889
  return n(this, S, qr).call(this, p.element, u), p;
890
- const v = n(this, S, Xr).call(this, u, s);
890
+ const v = n(this, S, Vr).call(this, u, s);
891
891
  return (A = e(this, Rt)) == null || A.observe(v.element), t.contains(v.element) || t.appendChild(v.element), v;
892
892
  })), i.forEach((u, p) => {
893
893
  var v;
894
894
  e(this, Ie).some((A) => A.channelId === p) || ((v = e(this, Rt)) == null || v.unobserve(u.element), u.element.remove());
895
- }), e(this, V).sort((u, p) => u.element.hasAttribute("offline") && !p.element.hasAttribute("offline") ? 1 : -1).forEach((u) => {
895
+ }), e(this, X).sort((u, p) => u.element.hasAttribute("offline") && !p.element.hasAttribute("offline") ? 1 : -1).forEach((u) => {
896
896
  t.contains(u.element) || t.appendChild(u.element);
897
897
  });
898
898
  }, qr = function(t, i) {
899
899
  i.isLive ? t.removeAttribute("offline") : t.setAttribute("offline", ""), t.setAttribute("url", i.thumbnailUrls[0] || ""), t.setAttribute("title", i.name);
900
- }, Xr = function(t, i) {
900
+ }, Vr = function(t, i) {
901
901
  const s = document.createElement("vindral-channel-grid-item");
902
902
  return s.setAttribute("url", t.thumbnailUrls[0] || ""), s.setAttribute("title", t.name), e(this, Le) && s.setAttribute("authentication-token", e(this, Le)), t.isLive || s.setAttribute("offline", ""), t.channelId === i && (s.setAttribute("aria-selected", "true"), d(this, _, s)), s.tabIndex = -1, s.onclick = () => n(this, S, Yr).call(this, t), { element: s, thumbnail: t.thumbnailUrls[0] || "", id: t.channelId };
903
- }, Vr = function(t) {
904
- e(this, V).forEach((i) => {
903
+ }, Xr = function(t) {
904
+ e(this, X).forEach((i) => {
905
905
  i.id === t ? (i.element.setAttribute("aria-selected", "true"), i.element.tabIndex = 0, d(this, _, i.element)) : (i.element.tabIndex = -1, i.element.setAttribute("aria-selected", "false"));
906
906
  });
907
907
  }, jr = function() {
908
- this.hasAttribute("hidden") || e(this, V).forEach((t) => t.element.updateThumbnail());
908
+ this.hasAttribute("hidden") || e(this, X).forEach((t) => t.element.updateThumbnail());
909
909
  }, Yr = function(t) {
910
910
  var i;
911
911
  (i = e(this, Ut)) == null || i.setAttribute("channel-id", t.channelId);
@@ -917,7 +917,7 @@ Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), V = new WeakMap(), _
917
917
  var p;
918
918
  if (!e(this, _)) return;
919
919
  const { key: i } = t;
920
- let o = e(this, V).findIndex((v) => v.element === e(this, _));
920
+ let o = e(this, X).findIndex((v) => v.element === e(this, _));
921
921
  const u = e(this, _).getBoundingClientRect();
922
922
  switch (i) {
923
923
  case "ArrowUp":
@@ -939,17 +939,17 @@ Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), V = new WeakMap(), _
939
939
  o = 0;
940
940
  break;
941
941
  case "End":
942
- o = e(this, V).length - 1;
942
+ o = e(this, X).length - 1;
943
943
  break;
944
944
  }
945
- if (o >= 0 && o < e(this, V).length) {
946
- const v = e(this, V)[o];
945
+ if (o >= 0 && o < e(this, X).length) {
946
+ const v = e(this, X)[o];
947
947
  if (!v) return;
948
948
  e(this, _).setAttribute("aria-selected", "false"), e(this, _).tabIndex = -1, d(this, _, v.element), e(this, _).setAttribute("aria-selected", "true"), e(this, _).tabIndex = 0, e(this, _).focus();
949
949
  }
950
950
  }, Be = function(t, i, s) {
951
951
  let o = -1, u = 1 / 0;
952
- return e(this, V).filter((p) => p.element.getBoundingClientRect().width > 0).forEach((p, v) => {
952
+ return e(this, X).filter((p) => p.element.getBoundingClientRect().width > 0).forEach((p, v) => {
953
953
  const A = p.element.getBoundingClientRect(), z = i === 0 || i < 0 && A.top < t.top || i > 0 && A.top > t.top, ut = s === 0 || s < 0 && A.left < t.left || s > 0 && A.left > t.left;
954
954
  if (z && ut) {
955
955
  const at = Math.sqrt((A.top - t.top) ** 2 + (A.left - t.left) ** 2);
@@ -963,7 +963,7 @@ Rt = new WeakMap(), Ut = new WeakMap(), Ie = new WeakMap(), V = new WeakMap(), _
963
963
  "mode",
964
964
  "hidden"
965
965
  ]);
966
- const el = (
966
+ const sl = (
967
967
  /* SVG */
968
968
  `
969
969
  <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="currentColor" stroke-linecap="round" stroke-linejoin="round">
@@ -989,7 +989,7 @@ Qr.innerHTML = /* HTML */
989
989
  display: none;
990
990
  }
991
991
  </style>
992
- <slot name="button">${el}</slot>
992
+ <slot name="button">${sl}</slot>
993
993
  `;
994
994
  var we, G, tt, xs, B, Zr, mn, fs, vn, fn;
995
995
  const je = class je extends rt {
@@ -1098,7 +1098,7 @@ class ea extends HTMLElement {
1098
1098
  }
1099
1099
  }
1100
1100
  m(ea, "observedAttributes", []);
1101
- class il extends ds {
1101
+ class nl extends ds {
1102
1102
  constructor(t) {
1103
1103
  super();
1104
1104
  m(this, "config");
@@ -1176,7 +1176,7 @@ class il extends ds {
1176
1176
  });
1177
1177
  }
1178
1178
  }
1179
- const te = class te extends ds {
1179
+ const ee = class ee extends ds {
1180
1180
  constructor(t) {
1181
1181
  super();
1182
1182
  m(this, "container");
@@ -1200,18 +1200,18 @@ const te = class te extends ds {
1200
1200
  m(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen()));
1201
1201
  // into the yolo zone
1202
1202
  m(this, "isFullscreen", () => !!(document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen));
1203
- m(this, "isSupported", () => te.isFullscreenApiSupported(this.container) || !this.isInIframe());
1204
- m(this, "isFullscreenApiSupported", () => te.isFullscreenApiSupported(this.container));
1203
+ m(this, "isSupported", () => ee.isFullscreenApiSupported(this.container) || !this.isInIframe());
1204
+ m(this, "isFullscreenApiSupported", () => ee.isFullscreenApiSupported(this.container));
1205
1205
  m(this, "isInIframe", () => window.location !== window.parent.location);
1206
1206
  this.container = t, document.addEventListener("webkitfullscreenchange", this.onChange), document.addEventListener("mozfullscreenchange", this.onChange), document.addEventListener("fullscreenchange", this.onChange), this.container.addEventListener("webkitendfullscreen", this.onChange);
1207
1207
  }
1208
1208
  get requestFn() {
1209
- return te.isFullscreenApiSupported(this.container) ? (this.container.requestFullscreen || this.container.webkitRequestFullscreen || this.container.webkitEnterFullscreen || this.container.mozRequestFullScreen).bind(this.container) : () => new Promise((t) => {
1209
+ return ee.isFullscreenApiSupported(this.container) ? (this.container.requestFullscreen || this.container.webkitRequestFullscreen || this.container.webkitEnterFullscreen || this.container.mozRequestFullScreen).bind(this.container) : () => new Promise((t) => {
1210
1210
  t();
1211
1211
  });
1212
1212
  }
1213
1213
  get exitFn() {
1214
- if (te.isFullscreenApiSupported(this.container) && this.isFullscreen()) {
1214
+ if (ee.isFullscreenApiSupported(this.container) && this.isFullscreen()) {
1215
1215
  const t = document.exitFullscreen, i = document.webkitFullscreenElement && document.webkitExitFullscreen, s = document.mozFullscreenElement && document.mozCancelFullScreen, o = t || i || s;
1216
1216
  return o ? o.bind(document) : this.container.webkitExitFullscreen.bind(this.container);
1217
1217
  }
@@ -1220,8 +1220,8 @@ const te = class te extends ds {
1220
1220
  });
1221
1221
  }
1222
1222
  };
1223
- m(te, "isFullscreenApiSupported", (t) => (t.requestFullscreen || t.webkitRequestFullscreen || t.webkitEnterFullscreen || t.mozRequestFullScreen) !== void 0);
1224
- let pt = te;
1223
+ m(ee, "isFullscreenApiSupported", (t) => (t.requestFullscreen || t.webkitRequestFullscreen || t.webkitEnterFullscreen || t.mozRequestFullScreen) !== void 0);
1224
+ let pt = ee;
1225
1225
  var Ns, Rs, Us, Ps, Te, _s, Ms, ui, Se;
1226
1226
  class Ar extends ds {
1227
1227
  constructor(t) {
@@ -1405,8 +1405,8 @@ Ce = new WeakMap(), xe = new WeakMap(), W = new WeakMap(), pi = new WeakMap(), D
1405
1405
  var t, i, s;
1406
1406
  (t = e(this, W)) != null && t.hidden && (e(this, W).hidden = !1, (i = e(this, Ce)) == null || i.setAttribute("aria-expanded", "true"), (s = e(this, xe)) == null || s.focus(), this.dispatchEvent(new CustomEvent(k.LOCK_UI, { bubbles: !0, composed: !0 })));
1407
1407
  };
1408
- var f, M, T, Ne, bt, mt, Pt, se, _t, et, bi, Re, C, L, ra, gn, aa, En, An, oa, la, ha, da, ca, ua, Hs, Os, Ge, Wt;
1409
- class sl {
1408
+ var f, M, T, Ne, bt, mt, Pt, ne, _t, et, bi, Re, C, L, ra, gn, aa, En, An, oa, la, ha, da, ca, ua, Hs, Os, Ge, Qt;
1409
+ class rl {
1410
1410
  constructor(a, t) {
1411
1411
  l(this, L);
1412
1412
  l(this, f);
@@ -1417,7 +1417,7 @@ class sl {
1417
1417
  m(this, "userPaused", !0);
1418
1418
  l(this, mt);
1419
1419
  l(this, Pt);
1420
- l(this, se, !1);
1420
+ l(this, ne, !1);
1421
1421
  l(this, _t, !1);
1422
1422
  l(this, et, null);
1423
1423
  l(this, bi, 0);
@@ -1434,7 +1434,7 @@ class sl {
1434
1434
  d(this, f, i), a.appendChild(e(this, f)), e(this, f).style.width = "100%", e(this, f).style.height = "100%", e(this, f).setAttribute("playsinline", ""), e(this, f).setAttribute("webkit-playsinline", ""), e(this, f).setAttribute("preload", "metadata"), n(this, L, ua).call(this), d(this, Re, e(this, f).muted), (t == null ? void 0 : t.volume) !== void 0 && (this.volume = t.volume), (t == null ? void 0 : t.muted) !== void 0 && (this.muted = t.muted);
1435
1435
  }
1436
1436
  hide() {
1437
- d(this, se, !0), d(this, _t, !1), e(this, M).classList.remove("active"), e(this, M).style.opacity = "0", e(this, M).style.pointerEvents = "none", d(this, et, null);
1437
+ d(this, ne, !0), d(this, _t, !1), e(this, M).classList.remove("active"), e(this, M).style.opacity = "0", e(this, M).style.pointerEvents = "none", d(this, et, null);
1438
1438
  }
1439
1439
  play() {
1440
1440
  return $(this, null, function* () {
@@ -1529,7 +1529,7 @@ class sl {
1529
1529
  d(this, Pt, a), a !== void 0 && e(this, T) && n(this, L, gn).call(this, a);
1530
1530
  }
1531
1531
  }
1532
- f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt = new WeakMap(), mt = new WeakMap(), Pt = new WeakMap(), se = new WeakMap(), _t = new WeakMap(), et = new WeakMap(), bi = new WeakMap(), Re = new WeakMap(), C = new WeakMap(), L = new WeakSet(), ra = function() {
1532
+ f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt = new WeakMap(), mt = new WeakMap(), Pt = new WeakMap(), ne = new WeakMap(), _t = new WeakMap(), et = new WeakMap(), bi = new WeakMap(), Re = new WeakMap(), C = new WeakMap(), L = new WeakSet(), ra = function() {
1533
1533
  return $(this, null, function* () {
1534
1534
  const { default: a } = yield import("./CZNJPKf5.js");
1535
1535
  if (d(this, Ne, a), !a.isSupported()) {
@@ -1621,11 +1621,11 @@ f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt
1621
1621
  e(this, C).warn("No timeshift URL");
1622
1622
  return;
1623
1623
  }
1624
- if (!e(this, T) && (yield n(this, L, ra).call(this), !n(this, L, Wt).call(this, s)))
1624
+ if (!e(this, T) && (yield n(this, L, ra).call(this), !n(this, L, Qt).call(this, s)))
1625
1625
  return;
1626
- d(this, se, !1), d(this, _t, !1), e(this, T) && (!e(this, T).url || e(this, T).url !== e(this, bt)) && (e(this, C).debug("Loading timeshift URL", e(this, bt)), e(this, T).loadSource(e(this, bt)));
1626
+ d(this, ne, !1), d(this, _t, !1), e(this, T) && (!e(this, T).url || e(this, T).url !== e(this, bt)) && (e(this, C).debug("Loading timeshift URL", e(this, bt)), e(this, T).loadSource(e(this, bt)));
1627
1627
  const o = this.muted;
1628
- e(this, f).muted = !0, yield n(this, L, la).call(this), n(this, L, Wt).call(this, s) && (n(this, L, An).call(this, t), !(i && (yield this.play(), !n(this, L, Wt).call(this, s))) && n(this, L, ha).call(this, o, s));
1628
+ e(this, f).muted = !0, yield n(this, L, la).call(this), n(this, L, Qt).call(this, s) && (n(this, L, An).call(this, t), !(i && (yield this.play(), !n(this, L, Qt).call(this, s))) && n(this, L, ha).call(this, o, s));
1629
1629
  });
1630
1630
  }, la = function() {
1631
1631
  return e(this, f).duration && !isNaN(e(this, f).duration) ? Promise.resolve() : new Promise((a) => {
@@ -1639,13 +1639,13 @@ f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt
1639
1639
  });
1640
1640
  }, ha = function(a, t) {
1641
1641
  const i = HTMLMediaElement.HAVE_CURRENT_DATA, s = () => e(this, f).readyState >= i && e(this, f).videoWidth > 0 && e(this, f).videoHeight > 0, o = () => {
1642
- e(this, se) || e(this, _t) || !n(this, L, Wt).call(this, t) || (d(this, _t, !0), e(this, C).debug("Revealing timeshift video"), e(this, M).classList.add("active"), e(this, M).style.opacity = "1", e(this, M).style.pointerEvents = "auto", e(this, f).dispatchEvent(
1642
+ e(this, ne) || e(this, _t) || !n(this, L, Qt).call(this, t) || (d(this, _t, !0), e(this, C).debug("Revealing timeshift video"), e(this, M).classList.add("active"), e(this, M).style.opacity = "1", e(this, M).style.pointerEvents = "auto", e(this, f).dispatchEvent(
1643
1643
  new CustomEvent("timeshiftready", {
1644
1644
  detail: { activationId: t }
1645
1645
  })
1646
1646
  ), a || n(this, L, da).call(this, t));
1647
1647
  }, u = () => {
1648
- e(this, se) || e(this, _t) || !n(this, L, Wt).call(this, t) || s() && (v(), o());
1648
+ e(this, ne) || e(this, _t) || !n(this, L, Qt).call(this, t) || s() && (v(), o());
1649
1649
  };
1650
1650
  let p = !1;
1651
1651
  const v = () => {
@@ -1661,7 +1661,7 @@ f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt
1661
1661
  }, 2e3);
1662
1662
  }, da = function(a) {
1663
1663
  const t = () => {
1664
- n(this, L, Wt).call(this, a) && (e(this, f).muted = !1);
1664
+ n(this, L, Qt).call(this, a) && (e(this, f).muted = !1);
1665
1665
  };
1666
1666
  "requestVideoFrameCallback" in e(this, f) ? e(this, f).requestVideoFrameCallback(() => {
1667
1667
  setTimeout(() => {
@@ -1686,10 +1686,10 @@ f = new WeakMap(), M = new WeakMap(), T = new WeakMap(), Ne = new WeakMap(), bt
1686
1686
  composed: !0
1687
1687
  })
1688
1688
  );
1689
- }, Wt = function(a) {
1689
+ }, Qt = function(a) {
1690
1690
  return e(this, bi) === a;
1691
1691
  };
1692
- class nl {
1692
+ class al {
1693
1693
  constructor(a) {
1694
1694
  this.vindral = a;
1695
1695
  }
@@ -1880,7 +1880,7 @@ class ni extends HTMLElement {
1880
1880
  }
1881
1881
  }
1882
1882
  Ue = new WeakMap(), Pe = new WeakMap(), m(ni, "observedAttributes", ["disabled"]);
1883
- function rl(c) {
1883
+ function ol(c) {
1884
1884
  if (typeof c != "string") return NaN;
1885
1885
  const a = /(\d+(?:\.\d+)?)([hms])/gi, t = [...c.matchAll(a)];
1886
1886
  return t.length === 0 ? NaN : t.reduce((i, [, s, o]) => {
@@ -2090,7 +2090,7 @@ ba.innerHTML = /* HTML */
2090
2090
  </div>
2091
2091
  `;
2092
2092
  const an = ["ArrowDown", "ArrowLeft", "ArrowRight", "Tab", "Enter", " ", "f", "m"];
2093
- var zs, vt, mi, Mt, Dt, vi, b, O, ne, g, fi, ot, ft, Ft, $s, K, gt, re, it, j, Et, gi, Ei, D, Ht, Ot, h, yn, Bs, Gs, Ai, yi, ki, Ii, Li, wi, Ti, Si, Ci, Ks, kn, In, xi, Ni, Ri, qs, Ui, Pi, _i, Mi, ma, Ln, Di, wn, va, gs, fa, ga, Es, Ea, Tn, Aa, ya, ka, Fi, Ia, La, wa, Ta, Hi, Xs, Vs, Sa, Oi, js, Ys, ae, Sn, Cn, As, xt, ys, ks, Ca, xn, Js, Ws, Nn, E, w;
2093
+ var zs, vt, mi, Mt, Dt, vi, b, O, re, g, fi, ot, ft, Ft, $s, K, gt, ae, it, j, Et, gi, Ei, D, Ht, Ot, h, yn, Bs, Gs, Ai, yi, ki, Ii, Li, wi, Ti, Si, Ci, Ks, kn, In, xi, Ni, Ri, qs, Ui, Pi, _i, Mi, ma, Ln, Di, wn, va, gs, fa, ga, Es, Ea, Tn, Aa, ya, ka, Fi, Ia, La, wa, Ta, Hi, Vs, Xs, Sa, Oi, js, Ys, oe, Sn, Cn, As, xt, ys, ks, Ca, xn, Js, Ws, Nn, E, w;
2094
2094
  const Ye = class Ye extends HTMLElement {
2095
2095
  constructor() {
2096
2096
  var s;
@@ -2103,7 +2103,7 @@ const Ye = class Ye extends HTMLElement {
2103
2103
  l(this, vi);
2104
2104
  l(this, b);
2105
2105
  l(this, O);
2106
- l(this, ne);
2106
+ l(this, re);
2107
2107
  l(this, g);
2108
2108
  l(this, fi, e(Ye, zs));
2109
2109
  l(this, ot);
@@ -2112,7 +2112,7 @@ const Ye = class Ye extends HTMLElement {
2112
2112
  l(this, $s);
2113
2113
  l(this, K);
2114
2114
  l(this, gt);
2115
- l(this, re);
2115
+ l(this, ae);
2116
2116
  l(this, it);
2117
2117
  l(this, j);
2118
2118
  l(this, Et);
@@ -2157,7 +2157,7 @@ const Ye = class Ye extends HTMLElement {
2157
2157
  e(this, ot) !== t && this.setAttribute(r.CHANNEL_ID, t), ((i = e(this, b)) == null ? void 0 : i.playbackState) !== "buffering" && n(this, h, w).call(this, r.BUFFERING);
2158
2158
  });
2159
2159
  l(this, Li, (t) => {
2160
- d(this, ae, Date.now()), n(this, h, E).call(this, r.CHANNELS, JSON.stringify(t));
2160
+ d(this, oe, Date.now()), n(this, h, E).call(this, r.CHANNELS, JSON.stringify(t));
2161
2161
  });
2162
2162
  l(this, wi, (t) => {
2163
2163
  var i;
@@ -2181,7 +2181,7 @@ const Ye = class Ye extends HTMLElement {
2181
2181
  o.searchParams.set("channelId", (z = e(this, ot)) != null ? z : "");
2182
2182
  const u = this.getAttribute("authentication-token");
2183
2183
  u && o.searchParams.set("authenticationToken", u);
2184
- const p = rl(s);
2184
+ const p = ol(s);
2185
2185
  if (isNaN(p)) {
2186
2186
  e(this, D).error(`Invalid duration format: ${s}`);
2187
2187
  return;
@@ -2250,10 +2250,10 @@ const Ye = class Ye extends HTMLElement {
2250
2250
  n(this, h, Ta).call(this, t);
2251
2251
  break;
2252
2252
  case "keydown":
2253
- e(this, Vs).call(this, t);
2253
+ e(this, Xs).call(this, t);
2254
2254
  break;
2255
2255
  case "keyup":
2256
- n(this, h, xt).call(this), e(this, Xs).call(this, t);
2256
+ n(this, h, xt).call(this), e(this, Vs).call(this, t);
2257
2257
  break;
2258
2258
  }
2259
2259
  });
@@ -2331,7 +2331,7 @@ const Ye = class Ye extends HTMLElement {
2331
2331
  break;
2332
2332
  }
2333
2333
  });
2334
- l(this, Xs, (t) => {
2334
+ l(this, Vs, (t) => {
2335
2335
  const { key: i } = t;
2336
2336
  if (!an.includes(i)) {
2337
2337
  this.removeEventListener("keyup", this);
@@ -2339,7 +2339,7 @@ const Ye = class Ye extends HTMLElement {
2339
2339
  }
2340
2340
  n(this, h, Sa).call(this, t);
2341
2341
  });
2342
- l(this, Vs, (t) => {
2342
+ l(this, Xs, (t) => {
2343
2343
  const { metaKey: i, altKey: s, key: o } = t;
2344
2344
  i || s || !an.includes(o) || this.addEventListener("keyup", this, { once: !0 });
2345
2345
  });
@@ -2352,7 +2352,7 @@ const Ye = class Ye extends HTMLElement {
2352
2352
  });
2353
2353
  l(this, Ys, (t) => {
2354
2354
  var i, s, o, u;
2355
- t && n(this, h, ks).call(this), (i = e(this, g)) == null || i.hide(), d(this, O, e(this, ne)), n(this, h, gs).call(this), this.hasAttribute(r.PAUSED) ? (s = e(this, O)) == null || s.pause() : (o = e(this, O)) == null || o.play(), n(this, h, wn).call(this), n(this, h, kn).call(this), (u = e(this, g)) == null || u.pause(), t && (d(this, Ot, !1), setTimeout(() => {
2355
+ t && n(this, h, ks).call(this), (i = e(this, g)) == null || i.hide(), d(this, O, e(this, re)), n(this, h, gs).call(this), this.hasAttribute(r.PAUSED) ? (s = e(this, O)) == null || s.pause() : (o = e(this, O)) == null || o.play(), n(this, h, wn).call(this), n(this, h, kn).call(this), (u = e(this, g)) == null || u.pause(), t && (d(this, Ot, !1), setTimeout(() => {
2356
2356
  n(this, h, ys).call(this);
2357
2357
  }, 100));
2358
2358
  });
@@ -2366,9 +2366,9 @@ const Ye = class Ye extends HTMLElement {
2366
2366
  });
2367
2367
  return;
2368
2368
  }
2369
- e(this, O) !== e(this, ne) && e(this, Ys).call(this, i);
2369
+ e(this, O) !== e(this, re) && e(this, Ys).call(this, i);
2370
2370
  });
2371
- l(this, ae, null);
2371
+ l(this, oe, null);
2372
2372
  l(this, Js, () => {
2373
2373
  var i, s, o;
2374
2374
  if (!("orientation" in screen) || !screen.orientation.lock)
@@ -2394,7 +2394,7 @@ const Ye = class Ye extends HTMLElement {
2394
2394
  }
2395
2395
  disconnectedCallback() {
2396
2396
  var t, i, s, o, u, p;
2397
- (t = e(this, b)) == null || t.unload(), (i = e(this, K)) == null || i.unload(), (s = e(this, gt)) == null || s.unload(), (o = e(this, re)) == null || o.unload(), (u = e(this, j)) == null || u.unload(), (p = e(this, g)) == null || p.cleanup();
2397
+ (t = e(this, b)) == null || t.unload(), (i = e(this, K)) == null || i.unload(), (s = e(this, gt)) == null || s.unload(), (o = e(this, ae)) == null || o.unload(), (u = e(this, j)) == null || u.unload(), (p = e(this, g)) == null || p.cleanup();
2398
2398
  for (const v of Object.values(k))
2399
2399
  this.removeEventListener(v, e(this, Hi));
2400
2400
  n(this, h, wn).call(this), n(this, h, In).call(this), this.disconnectListener(this);
@@ -2417,8 +2417,8 @@ const Ye = class Ye extends HTMLElement {
2417
2417
  break;
2418
2418
  case "target-buffer-time":
2419
2419
  if (e(this, b) && s) {
2420
- const X = parseInt(s, 10);
2421
- Number.isNaN(X) || (e(this, b).targetBufferTime = X);
2420
+ const V = parseInt(s, 10);
2421
+ Number.isNaN(V) || (e(this, b).targetBufferTime = V);
2422
2422
  }
2423
2423
  break;
2424
2424
  case "user-interacting":
@@ -2434,7 +2434,7 @@ const Ye = class Ye extends HTMLElement {
2434
2434
  x(s) ? n(this, h, Ca).call(this) : n(this, h, xn).call(this);
2435
2435
  break;
2436
2436
  case "max-video-bit-rate":
2437
- d(this, Ft, s), x(s) ? n(this, h, E).call(this, r.MAX_VIDEO_BITRATE, s) : n(this, h, w).call(this, r.MAX_VIDEO_BITRATE), e(this, g) && (e(this, g).maxVideoBitRate = s ? ve(s) : void 0);
2437
+ d(this, Ft, s), x(s) ? n(this, h, E).call(this, r.MAX_VIDEO_BITRATE, s) : n(this, h, w).call(this, r.MAX_VIDEO_BITRATE), e(this, g) && (e(this, g).maxVideoBitRate = s ? Wt(s) : void 0);
2438
2438
  break;
2439
2439
  case "max-initial-bit-rate":
2440
2440
  d(this, $s, s), x(s) ? n(this, h, E).call(this, r.MAX_INITIAL_BITRATE, s) : n(this, h, w).call(this, r.MAX_INITIAL_BITRATE);
@@ -2468,8 +2468,8 @@ const Ye = class Ye extends HTMLElement {
2468
2468
  break;
2469
2469
  case "volume":
2470
2470
  if (x(s)) {
2471
- const X = parseFloat(s);
2472
- e(this, g) && (e(this, g).volume = X), e(this, b) && (e(this, b).volume = X);
2471
+ const V = parseFloat(s);
2472
+ e(this, g) && (e(this, g).volume = V), e(this, b) && (e(this, b).volume = V);
2473
2473
  }
2474
2474
  break;
2475
2475
  case "timeshift":
@@ -2477,14 +2477,14 @@ const Ye = class Ye extends HTMLElement {
2477
2477
  break;
2478
2478
  case "drm-headers":
2479
2479
  if (x(s)) {
2480
- const X = ms(s);
2481
- X ? (ps = e(this, b)) == null || ps.drm.setHeaders(X) : e(this, D).warn("Invalid DRM headers format:", s);
2480
+ const V = ms(s);
2481
+ V ? (ps = e(this, b)) == null || ps.drm.setHeaders(V) : e(this, D).warn("Invalid DRM headers format:", s);
2482
2482
  }
2483
2483
  break;
2484
2484
  case "drm-queryparams":
2485
2485
  if (x(s)) {
2486
- const X = ms(s);
2487
- X ? (bs = e(this, b)) == null || bs.drm.setQueryParams(X) : e(this, D).warn("Invalid DRM query parameters format:", s);
2486
+ const V = ms(s);
2487
+ V ? (bs = e(this, b)) == null || bs.drm.setQueryParams(V) : e(this, D).warn("Invalid DRM query parameters format:", s);
2488
2488
  }
2489
2489
  break;
2490
2490
  }
@@ -2539,12 +2539,12 @@ const Ye = class Ye extends HTMLElement {
2539
2539
  n(this, h, yn).call(this);
2540
2540
  }
2541
2541
  };
2542
- zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(), Dt = new WeakMap(), vi = new WeakMap(), b = new WeakMap(), O = new WeakMap(), ne = new WeakMap(), g = new WeakMap(), fi = new WeakMap(), ot = new WeakMap(), ft = new WeakMap(), Ft = new WeakMap(), $s = new WeakMap(), K = new WeakMap(), gt = new WeakMap(), re = new WeakMap(), it = new WeakMap(), j = new WeakMap(), Et = new WeakMap(), gi = new WeakMap(), Ei = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), Ot = new WeakMap(), h = new WeakSet(), yn = function() {
2542
+ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(), Dt = new WeakMap(), vi = new WeakMap(), b = new WeakMap(), O = new WeakMap(), re = new WeakMap(), g = new WeakMap(), fi = new WeakMap(), ot = new WeakMap(), ft = new WeakMap(), Ft = new WeakMap(), $s = new WeakMap(), K = new WeakMap(), gt = new WeakMap(), ae = new WeakMap(), it = new WeakMap(), j = new WeakMap(), Et = new WeakMap(), gi = new WeakMap(), Ei = new WeakMap(), D = new WeakMap(), Ht = new WeakMap(), Ot = new WeakMap(), h = new WeakSet(), yn = function() {
2543
2543
  return $(this, null, function* () {
2544
2544
  var br, mr;
2545
2545
  if (!e(this, ot)) return;
2546
2546
  yield (br = e(this, b)) == null ? void 0 : br.unload();
2547
- const t = this.hasAttribute(r.PAUSED), i = this.hasAttribute(r.MUTED), s = Tr(this.getAttribute(r.MEDIA)), o = this.getAttribute(r.TEXT_TRACK) || void 0, u = this.getAttribute("edge-url") || void 0, p = this.getAttribute("authentication-token") || void 0, v = ve(this.getAttribute("max-video-bit-rate")), A = ve(this.getAttribute("max-initial-bit-rate")), z = Qo(this.getAttribute("max-size")), ut = ve(this.getAttribute("min-buffer-time")), at = ve(this.getAttribute("max-buffer-time")), jt = H(this.getAttribute("burst-enabled")), Yt = H(this.getAttribute("mse-enabled")), Jt = H(this.getAttribute("mse-opus-enabled")), cs = H(this.getAttribute("ios-background-play-enabled")), us = H(this.getAttribute("ios-wake-lock-enabled")), ps = H(this.getAttribute("ios-media-element-enabled")), bs = H(this.getAttribute("abr-enabled")), X = H(this.getAttribute("size-based-resolution-cap-enabled")), ko = H(this.getAttribute("telemetry-enabled")), Io = Wo(this.getAttribute("video-codecs")), cr = Sr(this.getAttribute("poster")), Lo = Zo(this.getAttribute("advanced")), wo = rn(this.getAttribute("log-level")), To = {
2547
+ const t = this.hasAttribute(r.PAUSED), i = this.hasAttribute(r.MUTED), s = Wt(this.getAttribute(r.VOLUME)), o = typeof s == "number" ? Math.max(0, Math.min(1, s)) : s, u = Tr(this.getAttribute(r.MEDIA)), p = this.getAttribute(r.TEXT_TRACK) || void 0, v = this.getAttribute("edge-url") || void 0, A = this.getAttribute("authentication-token") || void 0, z = Wt(this.getAttribute("max-video-bit-rate")), ut = Wt(this.getAttribute("max-initial-bit-rate")), at = tl(this.getAttribute("max-size")), jt = Wt(this.getAttribute("min-buffer-time")), Yt = Wt(this.getAttribute("max-buffer-time")), Jt = H(this.getAttribute("burst-enabled")), cs = H(this.getAttribute("mse-enabled")), us = H(this.getAttribute("mse-opus-enabled")), ps = H(this.getAttribute("ios-background-play-enabled")), bs = H(this.getAttribute("ios-wake-lock-enabled")), V = H(this.getAttribute("ios-media-element-enabled")), ko = H(this.getAttribute("abr-enabled")), Io = H(this.getAttribute("size-based-resolution-cap-enabled")), Lo = H(this.getAttribute("telemetry-enabled")), wo = Zo(this.getAttribute("video-codecs")), cr = Sr(this.getAttribute("poster")), To = el(this.getAttribute("advanced")), So = rn(this.getAttribute("log-level")), Co = {
2548
2548
  headers: ms(this.getAttribute("drm-headers")),
2549
2549
  queryParams: ms(this.getAttribute("drm-queryparams")),
2550
2550
  widevine: {
@@ -2555,41 +2555,42 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2555
2555
  videoRobustness: vs(this.getAttribute("drm-playready-video-robustness")),
2556
2556
  audioRobustness: vs(this.getAttribute("drm-playready-audio-robustness"))
2557
2557
  }
2558
- }, So = H(this.getAttribute("webtransport-enabled")), ur = ve(this.getAttribute("reconnect-retries")), Co = ur !== void 0 ? (_o) => _o.reconnectRetries < ur : void 0, xo = this.getAttribute("language") || void 0;
2559
- d(this, b, new Oo({
2558
+ }, xo = H(this.getAttribute("webtransport-enabled")), ur = Wt(this.getAttribute("reconnect-retries")), No = ur !== void 0 ? (Do) => Do.reconnectRetries < ur : void 0, Ro = this.getAttribute("language") || void 0;
2559
+ d(this, b, new $o({
2560
2560
  url: e(this, fi),
2561
2561
  channelId: e(this, ot),
2562
2562
  channelGroupId: e(this, ft),
2563
- edgeUrl: u,
2564
- authenticationToken: p,
2563
+ edgeUrl: v,
2564
+ authenticationToken: A,
2565
2565
  muted: i,
2566
- media: s,
2567
- maxSize: z,
2568
- maxVideoBitRate: v,
2569
- maxInitialBitRate: A,
2570
- minBufferTime: ut,
2571
- maxBufferTime: at,
2572
- burstEnabled: jt,
2573
- mseEnabled: Yt,
2574
- mseOpusEnabled: Jt,
2575
- iosBackgroundPlayEnabled: cs,
2576
- iosWakeLockEnabled: us,
2577
- iosMediaElementEnabled: ps,
2578
- abrEnabled: bs,
2579
- sizeBasedResolutionCapEnabled: X,
2580
- telemetryEnabled: ko,
2581
- videoCodecs: Io,
2566
+ volume: o,
2567
+ media: u,
2568
+ maxSize: at,
2569
+ maxVideoBitRate: z,
2570
+ maxInitialBitRate: ut,
2571
+ minBufferTime: jt,
2572
+ maxBufferTime: Yt,
2573
+ burstEnabled: Jt,
2574
+ mseEnabled: cs,
2575
+ mseOpusEnabled: us,
2576
+ iosBackgroundPlayEnabled: ps,
2577
+ iosWakeLockEnabled: bs,
2578
+ iosMediaElementEnabled: V,
2579
+ abrEnabled: ko,
2580
+ sizeBasedResolutionCapEnabled: Io,
2581
+ telemetryEnabled: Lo,
2582
+ videoCodecs: wo,
2582
2583
  poster: cr,
2583
- textTrack: o,
2584
- advanced: Lo,
2585
- logLevel: wo,
2586
- language: xo,
2587
- drm: To,
2588
- webtransportEnabled: So,
2589
- reconnectHandler: Co
2590
- })), d(this, ne, new nl(e(this, b))), e(this, O) || d(this, O, e(this, ne)), n(this, h, kn).call(this), d(this, Dt, (mr = this.shadowRoot) == null ? void 0 : mr.querySelector("#video")), e(this, Dt) && e(this, b).attach(e(this, Dt)), this.setAttribute(r.MEDIA, e(this, b).media), e(this, b).muted && n(this, h, E).call(this, r.MUTED, ""), n(this, h, E).call(this, r.VOLUME, e(this, b).volume.toString()), x(cr) || n(this, h, E).call(this, r.POSTER_SRC, e(this, b).getThumbnailUrl());
2591
- const No = H(this.getAttribute(r.AIRPLAY_ENABLED), !1), Ro = H(this.getAttribute(r.CAST_ENABLED), !0), pr = H(this.getAttribute(r.FULLSCREEN_ENABLED), !0), Uo = H(this.getAttribute(r.PIP_ENABLED), !0), Po = H(this.getAttribute(r.VU_METER_ENABLED), !1);
2592
- No && n(this, h, ya).call(this, e(this, b)), Ro && n(this, h, Ea).call(this, e(this, b)), pr && n(this, h, fa).call(this, e(this, b)), Uo && n(this, h, va).call(this, e(this, b)), t || e(this, b).play(), Po && n(this, h, ka).call(this, e(this, b)), this.dispatchEvent(
2584
+ textTrack: p,
2585
+ advanced: To,
2586
+ logLevel: So,
2587
+ language: Ro,
2588
+ drm: Co,
2589
+ webtransportEnabled: xo,
2590
+ reconnectHandler: No
2591
+ })), d(this, re, new al(e(this, b))), e(this, O) || d(this, O, e(this, re)), n(this, h, kn).call(this), d(this, Dt, (mr = this.shadowRoot) == null ? void 0 : mr.querySelector("#video")), e(this, Dt) && e(this, b).attach(e(this, Dt)), this.setAttribute(r.MEDIA, e(this, b).media), e(this, b).muted && n(this, h, E).call(this, r.MUTED, ""), n(this, h, E).call(this, r.VOLUME, e(this, b).volume.toString()), x(cr) || n(this, h, E).call(this, r.POSTER_SRC, e(this, b).getThumbnailUrl());
2592
+ const Uo = H(this.getAttribute(r.AIRPLAY_ENABLED), !1), Po = H(this.getAttribute(r.CAST_ENABLED), !0), pr = H(this.getAttribute(r.FULLSCREEN_ENABLED), !0), _o = H(this.getAttribute(r.PIP_ENABLED), !0), Mo = H(this.getAttribute(r.VU_METER_ENABLED), !1);
2593
+ Uo && n(this, h, ya).call(this, e(this, b)), Po && n(this, h, Ea).call(this, e(this, b)), pr && n(this, h, fa).call(this, e(this, b)), _o && n(this, h, va).call(this, e(this, b)), t || e(this, b).play(), Mo && n(this, h, ka).call(this, e(this, b)), this.dispatchEvent(
2593
2594
  new CustomEvent("vindral-instance-ready", { bubbles: !0, composed: !0, detail: e(this, b) })
2594
2595
  ), n(this, h, Ln).call(this), pr && n(this, h, ga).call(this);
2595
2596
  });
@@ -2601,7 +2602,7 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2601
2602
  e(this, g) && (e(this, g).addEventListener("playing", e(this, xi)), e(this, g).addEventListener("pause", e(this, Ni)), e(this, g).addEventListener("ended", e(this, Ri)), e(this, g).addEventListener("timeupdate", e(this, Ui)), e(this, g).addEventListener("volumechange", e(this, Pi)), e(this, g).addEventListener("hlsbuffering", e(this, _i)), e(this, g).addEventListener("hlsnotbuffering", e(this, Mi)), e(this, g).addEventListener("timeshiftready", e(this, Di)));
2602
2603
  }, Ln = function() {
2603
2604
  var t, i, s, o;
2604
- d(this, g, new sl(e(this, vi), {
2605
+ d(this, g, new rl(e(this, vi), {
2605
2606
  volume: (i = (t = e(this, O)) == null ? void 0 : t.volume) != null ? i : 1,
2606
2607
  muted: (o = (s = e(this, O)) == null ? void 0 : s.muted) != null ? o : !1,
2607
2608
  maxVideoBitRate: e(this, Ft) ? parseInt(e(this, Ft), 10) : void 0
@@ -2626,13 +2627,13 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2626
2627
  });
2627
2628
  }, ga = function() {
2628
2629
  var t;
2629
- e(this, g) && (d(this, re, !pt.isFullscreenApiSupported(this) && pt.isFullscreenApiSupported((t = e(this, g)) == null ? void 0 : t.videoElement) ? new pt(e(this, g).videoElement) : new pt(this)), e(this, re).on("on fullscreen change", (i) => {
2630
+ e(this, g) && (d(this, ae, !pt.isFullscreenApiSupported(this) && pt.isFullscreenApiSupported((t = e(this, g)) == null ? void 0 : t.videoElement) ? new pt(e(this, g).videoElement) : new pt(this)), e(this, ae).on("on fullscreen change", (i) => {
2630
2631
  i ? n(this, h, E).call(this, r.FULLSCREEN, "") : n(this, h, w).call(this, r.FULLSCREEN);
2631
2632
  }));
2632
2633
  }, Es = function() {
2633
- return this.hasAttribute(r.TIMESHIFT) ? e(this, re) : e(this, gt);
2634
+ return this.hasAttribute(r.TIMESHIFT) ? e(this, ae) : e(this, gt);
2634
2635
  }, Ea = function(t) {
2635
- d(this, Et, new qo({
2636
+ d(this, Et, new Xo({
2636
2637
  background: e(this, Ei),
2637
2638
  receiverApplicationId: e(this, gi),
2638
2639
  options: t.getCastOptions()
@@ -2653,7 +2654,7 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2653
2654
  var s;
2654
2655
  (s = e(this, it)) == null || s.unload();
2655
2656
  const i = t.getCastOptions();
2656
- d(this, it, new il({
2657
+ d(this, it, new nl({
2657
2658
  url: i.url,
2658
2659
  channelId: i.channelId,
2659
2660
  authenticationToken: i.authenticationToken,
@@ -2667,7 +2668,7 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2667
2668
  });
2668
2669
  }, ka = function(t) {
2669
2670
  var i;
2670
- if ((i = e(this, j)) == null || i.unload(), !zo()) {
2671
+ if ((i = e(this, j)) == null || i.unload(), !Bo()) {
2671
2672
  if (t.audioNode)
2672
2673
  d(this, j, new kr(t.audioNode));
2673
2674
  else if (t.mediaElement instanceof HTMLMediaElement)
@@ -2687,7 +2688,7 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2687
2688
  !e(this, gt) || t.target instanceof rt || t.target instanceof dr || t.target instanceof ni || (this.hasAttribute(r.FULLSCREEN) ? this.removeAttribute(r.FULLSCREEN) : this.setAttribute(r.FULLSCREEN, ""));
2688
2689
  }, Ta = function(t) {
2689
2690
  this.hasAttribute(r.USER_INTERACTING) || n(this, h, xt).call(this);
2690
- }, Hi = new WeakMap(), Xs = new WeakMap(), Vs = new WeakMap(), Sa = function(t) {
2691
+ }, Hi = new WeakMap(), Vs = new WeakMap(), Xs = new WeakMap(), Sa = function(t) {
2691
2692
  var p, v;
2692
2693
  const { metaKey: i, altKey: s, key: o } = t;
2693
2694
  if (!(i || s || !an.includes(o) || (((p = t.target) == null ? void 0 : p.keysUsed) || []).includes(o)))
@@ -2702,15 +2703,15 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2702
2703
  (v = this.querySelector("vindral-scroll-overlay")) == null || v.setAttribute("open", "");
2703
2704
  break;
2704
2705
  }
2705
- }, Oi = new WeakMap(), js = new WeakMap(), Ys = new WeakMap(), ae = new WeakMap(), Sn = function() {
2706
+ }, Oi = new WeakMap(), js = new WeakMap(), Ys = new WeakMap(), oe = new WeakMap(), Sn = function() {
2706
2707
  return $(this, null, function* () {
2707
2708
  if (!e(this, b) || !e(this, ft))
2708
2709
  return;
2709
2710
  const t = Date.now();
2710
- if (e(this, ae) && t - e(this, ae) < 1e4)
2711
+ if (e(this, oe) && t - e(this, oe) < 1e4)
2711
2712
  e(this, D).debug("Skipping channel update, last update was less than 10 seconds ago.");
2712
2713
  else {
2713
- d(this, ae, t);
2714
+ d(this, oe, t);
2714
2715
  const i = yield e(this, b).getApiClient().getChannels(e(this, ft));
2715
2716
  n(this, h, E).call(this, r.CHANNELS, JSON.stringify(i));
2716
2717
  }
@@ -2804,12 +2805,12 @@ zs = new WeakMap(), vt = new WeakMap(), mi = new WeakMap(), Mt = new WeakMap(),
2804
2805
  "language"
2805
2806
  ]), l(Ye, zs, "https://lb.cdn.vindral.com");
2806
2807
  let ri = Ye;
2807
- const xa = document.createElement("template"), al = (
2808
+ const xa = document.createElement("template"), ll = (
2808
2809
  /* SVG */
2809
2810
  `
2810
2811
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-maximize"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /></svg>
2811
2812
  `
2812
- ), ol = (
2813
+ ), hl = (
2813
2814
  /* SVG */
2814
2815
  `
2815
2816
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-minimize"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M15 19v-2a2 2 0 0 1 2 -2h2" /><path d="M15 5v2a2 2 0 0 0 2 2h2" /><path d="M5 15h2a2 2 0 0 1 2 2v2" /><path d="M5 9h2a2 2 0 0 0 2 -2v-2" /></svg>
@@ -2832,8 +2833,8 @@ xa.innerHTML = /* HTML */
2832
2833
  </style>
2833
2834
 
2834
2835
  <slot name="icon">
2835
- <slot name="enter">${al}</slot>
2836
- <slot name="exit">${ol}</slot>
2836
+ <slot name="enter">${ll}</slot>
2837
+ <slot name="exit">${hl}</slot>
2837
2838
  </slot>
2838
2839
  `;
2839
2840
  const Je = class Je extends rt {
@@ -2863,7 +2864,7 @@ const Je = class Je extends rt {
2863
2864
  };
2864
2865
  m(Je, "observedAttributes", [...J(Je, Je, "observedAttributes"), r.FULLSCREEN]);
2865
2866
  let Rn = Je;
2866
- const ll = (
2867
+ const dl = (
2867
2868
  /* SVG */
2868
2869
  `
2869
2870
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 5h7" /><path d="M9 3v2c0 4.418 -2.239 8 -5 8" /><path d="M5 9c0 2.144 2.952 3.908 6.7 4" /><path d="M12 20l4 -9l4 9" /><path d="M19.1 18h-6.2" /></svg>
@@ -2877,7 +2878,7 @@ Na.innerHTML = /* HTML */
2877
2878
  }
2878
2879
  </style>
2879
2880
 
2880
- <slot name="button">${ll}</slot>
2881
+ <slot name="button">${dl}</slot>
2881
2882
  <slot name="listbox" hidden>
2882
2883
  <vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
2883
2884
  </slot>
@@ -2902,7 +2903,7 @@ zi = new WeakSet(), Pn = function() {
2902
2903
  i && s ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
2903
2904
  }, m(We, "observedAttributes", [...J(We, We, "observedAttributes"), r.LANGUAGES, r.TEXT_TRACKS]);
2904
2905
  let Un = We;
2905
- const Ra = document.createElement("template"), hl = (
2906
+ const Ra = document.createElement("template"), cl = (
2906
2907
  /* SVG */
2907
2908
  `
2908
2909
  <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="#fff" viewBox="0 0 78.369 78.369" xml:space="preserve"><path d="M78.049 19.015 29.458 67.606a1.094 1.094 0 0 1-1.548 0L.32 40.015a1.094 1.094 0 0 1 0-1.547l6.704-6.704a1.095 1.095 0 0 1 1.548 0l20.113 20.112 41.113-41.113a1.095 1.095 0 0 1 1.548 0l6.703 6.704a1.094 1.094 0 0 1 0 1.548z"/></svg>
@@ -2984,7 +2985,7 @@ Ra.innerHTML = /* HTML */
2984
2985
  }
2985
2986
 
2986
2987
  [role="menuitem"][aria-selected="true"]::before {
2987
- content: url("data:image/svg+xml,${encodeURIComponent(hl)}");
2988
+ content: url("data:image/svg+xml,${encodeURIComponent(cl)}");
2988
2989
  position: absolute;
2989
2990
  left: var(--padding-3);
2990
2991
  top: calc(50% - 8px);
@@ -3023,7 +3024,7 @@ Ra.innerHTML = /* HTML */
3023
3024
  <div class="menu"></div>
3024
3025
  </div>
3025
3026
  `;
3026
- var $i, Bi, Gi, Ki, lt, Q, oe, zt, _e, qi, At, ht, I, Pa, _a, _n, Mn, Is, Ke, qe, Ma, Da, Fa, Dn, Fn, Ha;
3027
+ var $i, Bi, Gi, Ki, lt, Q, le, zt, _e, qi, At, ht, I, Pa, _a, _n, Mn, Is, Ke, qe, Ma, Da, Fa, Dn, Fn, Ha;
3027
3028
  class Ua extends HTMLElement {
3028
3029
  constructor() {
3029
3030
  super();
@@ -3034,7 +3035,7 @@ class Ua extends HTMLElement {
3034
3035
  l(this, Ki);
3035
3036
  l(this, lt, []);
3036
3037
  l(this, Q, []);
3037
- l(this, oe, null);
3038
+ l(this, le, null);
3038
3039
  l(this, zt, null);
3039
3040
  l(this, _e, null);
3040
3041
  l(this, qi, null);
@@ -3052,7 +3053,7 @@ class Ua extends HTMLElement {
3052
3053
  connectedCallback() {
3053
3054
  var i, s, o;
3054
3055
  const t = this.getRootNode();
3055
- t instanceof ShadowRoot && (d(this, _e, t.host.closest("vindral-controller")), (i = e(this, _e)) == null || i.connectListener(this), d(this, oe, (s = this.shadowRoot) == null ? void 0 : s.querySelector("#languages .menu")), d(this, zt, (o = this.shadowRoot) == null ? void 0 : o.querySelector("#text-tracks .menu")), n(this, I, Pa).call(this), n(this, I, _a).call(this), d(this, qi, t.host), this.addEventListener("keydown", this));
3056
+ t instanceof ShadowRoot && (d(this, _e, t.host.closest("vindral-controller")), (i = e(this, _e)) == null || i.connectListener(this), d(this, le, (s = this.shadowRoot) == null ? void 0 : s.querySelector("#languages .menu")), d(this, zt, (o = this.shadowRoot) == null ? void 0 : o.querySelector("#text-tracks .menu")), n(this, I, Pa).call(this), n(this, I, _a).call(this), d(this, qi, t.host), this.addEventListener("keydown", this));
3056
3057
  }
3057
3058
  disconnectedCallback() {
3058
3059
  this.removeEventListener("keydown", this);
@@ -3079,7 +3080,7 @@ class Ua extends HTMLElement {
3079
3080
  e(this, At) ? e(this, At).focus() : e(this, ht) && e(this, ht).focus();
3080
3081
  }
3081
3082
  }
3082
- $i = new WeakMap(), Bi = new WeakMap(), Gi = new WeakMap(), Ki = new WeakMap(), lt = new WeakMap(), Q = new WeakMap(), oe = new WeakMap(), zt = new WeakMap(), _e = new WeakMap(), qi = new WeakMap(), At = new WeakMap(), ht = new WeakMap(), I = new WeakSet(), Pa = function() {
3083
+ $i = new WeakMap(), Bi = new WeakMap(), Gi = new WeakMap(), Ki = new WeakMap(), lt = new WeakMap(), Q = new WeakMap(), le = new WeakMap(), zt = new WeakMap(), _e = new WeakMap(), qi = new WeakMap(), At = new WeakMap(), ht = new WeakMap(), I = new WeakSet(), Pa = function() {
3083
3084
  const t = (s) => {
3084
3085
  s.forEach((o) => {
3085
3086
  if (o.intersectionRatio !== 1)
@@ -3097,7 +3098,7 @@ $i = new WeakMap(), Bi = new WeakMap(), Gi = new WeakMap(), Ki = new WeakMap(),
3097
3098
  // 0 means any intersection is enough to be considered "inside"
3098
3099
  }).observe(this);
3099
3100
  }, _a = function() {
3100
- e(this, oe) && (n(this, I, Mn).call(this), n(this, I, Ke).call(this)), e(this, zt) && (n(this, I, _n).call(this), n(this, I, qe).call(this));
3101
+ e(this, le) && (n(this, I, Mn).call(this), n(this, I, Ke).call(this)), e(this, zt) && (n(this, I, _n).call(this), n(this, I, qe).call(this));
3101
3102
  }, _n = function() {
3102
3103
  e(this, zt).innerHTML = "", d(this, Q, []);
3103
3104
  const t = n(this, I, Is).call(this, "Off", "textTrack", void 0);
@@ -3106,9 +3107,9 @@ $i = new WeakMap(), Bi = new WeakMap(), Gi = new WeakMap(), Ki = new WeakMap(),
3106
3107
  e(this, zt).appendChild(s), e(this, Q).push({ element: s, value: i });
3107
3108
  }), n(this, I, qe).call(this);
3108
3109
  }, Mn = function() {
3109
- e(this, oe).innerHTML = "", d(this, lt, []), e(this, $i).forEach((t) => {
3110
+ e(this, le).innerHTML = "", d(this, lt, []), e(this, $i).forEach((t) => {
3110
3111
  const i = n(this, I, Is).call(this, t, "language", t);
3111
- e(this, oe).appendChild(i), e(this, lt).push({ element: i, value: t });
3112
+ e(this, le).appendChild(i), e(this, lt).push({ element: i, value: t });
3112
3113
  }), n(this, I, Ke).call(this);
3113
3114
  }, Is = function(t, i, s) {
3114
3115
  const o = document.createElement("div");
@@ -3157,7 +3158,7 @@ $i = new WeakMap(), Bi = new WeakMap(), Gi = new WeakMap(), Ki = new WeakMap(),
3157
3158
  r.LANGUAGE,
3158
3159
  r.TEXT_TRACK
3159
3160
  ]);
3160
- const Oa = document.createElement("template"), dl = (
3161
+ const Oa = document.createElement("template"), ul = (
3161
3162
  /* SVG */
3162
3163
  `
3163
3164
  <svg xmlns="http://www.w3.org/2000/svg" width="5" height="5" viewBox="0 0 5 5" fill="currentColor">
@@ -3227,7 +3228,7 @@ Oa.innerHTML = /* HTML */
3227
3228
  }
3228
3229
  </style>
3229
3230
 
3230
- <slot name="icon">${dl}</slot>
3231
+ <slot name="icon">${ul}</slot>
3231
3232
  <span class="live-text">LIVE</span>
3232
3233
  `;
3233
3234
  const Qe = class Qe extends rt {
@@ -3263,7 +3264,7 @@ const Qe = class Qe extends rt {
3263
3264
  };
3264
3265
  m(Qe, "observedAttributes", [...J(Qe, Qe, "observedAttributes"), r.TIMESHIFT, r.DURATION]);
3265
3266
  let Hn = Qe;
3266
- const za = document.createElement("template"), cl = (
3267
+ const za = document.createElement("template"), pl = (
3267
3268
  /* SVG */
3268
3269
  `
3269
3270
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <g fill="none" stroke="currentColor">
@@ -3271,7 +3272,7 @@ const za = document.createElement("template"), cl = (
3271
3272
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" />
3272
3273
  </g></svg>
3273
3274
  `
3274
- ), ul = (
3275
+ ), bl = (
3275
3276
  /* SVG */
3276
3277
  `
3277
3278
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" <g fill="none" stroke="currentColor">
@@ -3295,8 +3296,8 @@ za.innerHTML = /* HTML */
3295
3296
  </style>
3296
3297
 
3297
3298
  <slot name="icon">
3298
- <slot name="mute">${cl}</slot>
3299
- <slot name="unmute">${ul}</slot>
3299
+ <slot name="mute">${pl}</slot>
3300
+ <slot name="unmute">${bl}</slot>
3300
3301
  </slot>
3301
3302
  `;
3302
3303
  const Ze = class Ze extends rt {
@@ -3326,7 +3327,7 @@ const Ze = class Ze extends rt {
3326
3327
  };
3327
3328
  m(Ze, "observedAttributes", [...J(Ze, Ze, "observedAttributes"), r.MUTED]);
3328
3329
  let On = Ze;
3329
- const $a = document.createElement("template"), pl = (
3330
+ const $a = document.createElement("template"), ml = (
3330
3331
  /* SVG */
3331
3332
  `
3332
3333
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
@@ -3343,7 +3344,7 @@ $a.innerHTML = /* HTML */
3343
3344
  display: none !important;
3344
3345
  }
3345
3346
  </style>
3346
- <slot name="icon">${pl}</slot>
3347
+ <slot name="icon">${ml}</slot>
3347
3348
  `;
3348
3349
  const ti = class ti extends rt {
3349
3350
  constructor() {
@@ -3378,12 +3379,12 @@ const ti = class ti extends rt {
3378
3379
  };
3379
3380
  m(ti, "observedAttributes", [...J(ti, ti, "observedAttributes"), r.IS_PIP, r.PIP_AVAILABLE]);
3380
3381
  let zn = ti;
3381
- const Ba = document.createElement("template"), bl = (
3382
+ const Ba = document.createElement("template"), vl = (
3382
3383
  /* SVG */
3383
3384
  `
3384
3385
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
3385
3386
  `
3386
- ), ml = (
3387
+ ), fl = (
3387
3388
  /* SVG */
3388
3389
  `
3389
3390
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M9 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z" /><path d="M17 4h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h2a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2z" /></svg>
@@ -3406,8 +3407,8 @@ Ba.innerHTML = /* HTML */
3406
3407
  </style>
3407
3408
 
3408
3409
  <slot name="icon">
3409
- <slot name="play">${bl}</slot>
3410
- <slot name="pause">${ml}</slot>
3410
+ <slot name="play">${vl}</slot>
3411
+ <slot name="pause">${fl}</slot>
3411
3412
  </slot>
3412
3413
  `;
3413
3414
  const ei = class ei extends rt {
@@ -3442,47 +3443,47 @@ const Z = {
3442
3443
  OFFLINE: "offline",
3443
3444
  REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
3444
3445
  STREAM_POLL_ENABLED: "stream-poll-enabled"
3445
- }, vl = Object.values(Z);
3446
- var Xi, Me, $t, le, Bt, Gt, yt, Y, Bn, Ga, Gn, Kn;
3447
- class fl extends ds {
3446
+ }, gl = Object.values(Z);
3447
+ var Vi, Me, $t, he, Bt, Gt, yt, Y, Bn, Ga, Gn, Kn;
3448
+ class El extends ds {
3448
3449
  constructor(t) {
3449
3450
  super();
3450
3451
  l(this, Y);
3451
- l(this, Xi);
3452
+ l(this, Vi);
3452
3453
  l(this, Me);
3453
3454
  l(this, $t, !1);
3454
- l(this, le, !1);
3455
+ l(this, he, !1);
3455
3456
  l(this, Bt, !0);
3456
3457
  l(this, Gt, null);
3457
3458
  l(this, yt, null);
3458
- d(this, Me, t), d(this, Xi, new Xo({
3459
+ d(this, Me, t), d(this, Vi, new jo({
3459
3460
  publicEndpoint: t.url,
3460
3461
  tokenFactory: () => t.authenticationToken
3461
3462
  }));
3462
3463
  }
3463
3464
  start(t = 5e3) {
3464
- e(this, yt) && clearInterval(e(this, yt)), d(this, $t, !1), d(this, le, !1), n(this, Y, Kn).call(this), n(this, Y, Bn).call(this), d(this, yt, window.setInterval(() => {
3465
- !e(this, le) && !e(this, Me).infiniteReconnect && !e(this, Gt) && e(this, Bt) && d(this, Gt, window.setTimeout(() => n(this, Y, Ga).call(this), 300 * 1e3)), !e(this, le) && e(this, Bt) && n(this, Y, Bn).call(this);
3465
+ e(this, yt) && clearInterval(e(this, yt)), d(this, $t, !1), d(this, he, !1), n(this, Y, Kn).call(this), n(this, Y, Bn).call(this), d(this, yt, window.setInterval(() => {
3466
+ !e(this, he) && !e(this, Me).infiniteReconnect && !e(this, Gt) && e(this, Bt) && d(this, Gt, window.setTimeout(() => n(this, Y, Ga).call(this), 300 * 1e3)), !e(this, he) && e(this, Bt) && n(this, Y, Bn).call(this);
3466
3467
  }, t));
3467
3468
  }
3468
3469
  stop() {
3469
3470
  n(this, Y, Gn).call(this), e(this, yt) && (window.clearInterval(e(this, yt)), d(this, yt, null));
3470
3471
  }
3471
3472
  }
3472
- Xi = new WeakMap(), Me = new WeakMap(), $t = new WeakMap(), le = new WeakMap(), Bt = new WeakMap(), Gt = new WeakMap(), yt = new WeakMap(), Y = new WeakSet(), Bn = function() {
3473
+ Vi = new WeakMap(), Me = new WeakMap(), $t = new WeakMap(), he = new WeakMap(), Bt = new WeakMap(), Gt = new WeakMap(), yt = new WeakMap(), Y = new WeakSet(), Bn = function() {
3473
3474
  return $(this, null, function* () {
3474
3475
  if (e(this, $t))
3475
3476
  return;
3476
3477
  d(this, $t, !0);
3477
3478
  let t = "Stream is offline", i = "Please stand by";
3478
3479
  try {
3479
- const s = yield e(this, Xi).getChannel(e(this, Me).channelId);
3480
+ const s = yield e(this, Vi).getChannel(e(this, Me).channelId);
3480
3481
  if (s.isLive) {
3481
- d(this, le, !0), n(this, Y, Kn).call(this), this.emit("live", s), d(this, $t, !1);
3482
+ d(this, he, !0), n(this, Y, Kn).call(this), this.emit("live", s), d(this, $t, !1);
3482
3483
  return;
3483
3484
  }
3484
3485
  } catch (s) {
3485
- Vo(s) && (s.status === 403 || s.status === 401) && (t = "Forbidden", i = "You do not have permission to view this stream");
3486
+ Yo(s) && (s.status === 403 || s.status === 401) && (t = "Forbidden", i = "You do not have permission to view this stream");
3486
3487
  }
3487
3488
  e(this, Bt) && this.emit("error", { title: t, message: i }), d(this, $t, !1);
3488
3489
  });
@@ -3493,7 +3494,7 @@ Xi = new WeakMap(), Me = new WeakMap(), $t = new WeakMap(), le = new WeakMap(),
3493
3494
  }, Kn = function() {
3494
3495
  n(this, Y, Gn).call(this), d(this, Bt, !0);
3495
3496
  };
3496
- const gl = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, El = navigator.userAgent.toLowerCase(), Al = gl.test(El), yl = (c) => ri.observedAttributes.includes(c), Ka = (
3497
+ const Al = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, yl = navigator.userAgent.toLowerCase(), kl = Al.test(yl), Il = (c) => ri.observedAttributes.includes(c), Ka = (
3497
3498
  /* HTML */
3498
3499
  `
3499
3500
  <style>
@@ -3505,7 +3506,7 @@ const gl = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
3505
3506
  display: flex;
3506
3507
  justify-content: center;
3507
3508
 
3508
- --vindral-volume-range-display: ${Al ? "none" : "flex"};
3509
+ --vindral-volume-range-display: ${kl ? "none" : "flex"};
3509
3510
  --vindral-airplay-button-display: none;
3510
3511
  --vindral-play-overlay-display: none;
3511
3512
  --vindral-grid-item-offline-display: none;
@@ -3573,7 +3574,7 @@ const gl = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
3573
3574
  }
3574
3575
  </style>
3575
3576
  `
3576
- ), kl = (
3577
+ ), Ll = (
3577
3578
  /* HTML */
3578
3579
  `
3579
3580
  ${Ka}
@@ -3610,7 +3611,7 @@ const gl = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
3610
3611
  <vindral-message id="vindral-message" slot="overlay" hidden></vindral-message>
3611
3612
  </vindral-controller>
3612
3613
  `
3613
- ), Il = (
3614
+ ), wl = (
3614
3615
  /* HTML */
3615
3616
  `
3616
3617
  ${Ka}
@@ -3637,7 +3638,7 @@ const gl = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|
3637
3638
  </vindral-controller>
3638
3639
  `
3639
3640
  ), Ir = document.createElement("template");
3640
- var dt, F, q, kt, It, Qs, Vi, P, Xa, qn, Va, ji, Ls, Nt;
3641
+ var dt, F, q, kt, It, Qs, Xi, P, Va, qn, Xa, ji, Ls, Nt;
3641
3642
  class qa extends HTMLElement {
3642
3643
  constructor() {
3643
3644
  super();
@@ -3649,11 +3650,11 @@ class qa extends HTMLElement {
3649
3650
  l(this, It);
3650
3651
  l(this, Qs, () => {
3651
3652
  Array.from(this.attributes).forEach((t) => {
3652
- e(this, Vi).call(this, t.name, t.value);
3653
+ e(this, Xi).call(this, t.name, t.value);
3653
3654
  });
3654
3655
  });
3655
- l(this, Vi, (t, i) => {
3656
- yl(t) && (x(i) ? e(this, F).setAttribute(t, i) : e(this, F).removeAttribute(t));
3656
+ l(this, Xi, (t, i) => {
3657
+ Il(t) && (x(i) ? e(this, F).setAttribute(t, i) : e(this, F).removeAttribute(t));
3657
3658
  });
3658
3659
  l(this, ji, () => {
3659
3660
  const t = e(this, F).instance;
@@ -3666,17 +3667,17 @@ class qa extends HTMLElement {
3666
3667
  const s = t.channels.find((o) => o.channelId === i);
3667
3668
  s && n(this, P, Ls).call(this, s);
3668
3669
  }), t.on("error", (i) => {
3669
- if (i.code() === $o) {
3670
+ if (i.code() === Go) {
3670
3671
  n(this, P, Nt).call(this, "Stream is offline", "Please stand by");
3671
3672
  return;
3672
3673
  }
3673
- i.isFatal() && (i.code() === Bo ? n(this, P, Nt).call(this, "Forbidden", "You do not have permission to view this stream") : i.code() === Go ? n(this, P, Nt).call(this, "Stream is offline", "Please stand by") : n(this, P, Nt).call(this, "An error occurred", i.message), e(this, kt).removeAttribute("hidden"), this.setAttribute(Z.OFFLINE, ""), e(this, F).dispatchEvent(new CustomEvent(k.EXIT_FULLSCREEN)), e(this, F).dispatchEvent(new CustomEvent(k.EXIT_PIP)));
3674
+ i.isFatal() && (i.code() === Ko ? n(this, P, Nt).call(this, "Forbidden", "You do not have permission to view this stream") : i.code() === qo ? n(this, P, Nt).call(this, "Stream is offline", "Please stand by") : n(this, P, Nt).call(this, "An error occurred", i.message), e(this, kt).removeAttribute("hidden"), this.setAttribute(Z.OFFLINE, ""), e(this, F).dispatchEvent(new CustomEvent(k.EXIT_FULLSCREEN)), e(this, F).dispatchEvent(new CustomEvent(k.EXIT_PIP)));
3674
3675
  }));
3675
3676
  });
3676
3677
  d(this, dt, this.attachShadow({ mode: "open" })), n(this, P, qn).call(this), d(this, F, e(this, dt).querySelector("vindral-controller")), d(this, q, e(this, dt).querySelector("#vindral-message")), d(this, kt, e(this, dt).querySelector("#play-overlay"));
3677
3678
  }
3678
3679
  connectedCallback() {
3679
- this.setAttribute(Z.OFFLINE, ""), e(this, F).addEventListener("vindral-instance-ready", e(this, ji)), n(this, P, Va).call(this);
3680
+ this.setAttribute(Z.OFFLINE, ""), e(this, F).addEventListener("vindral-instance-ready", e(this, ji)), n(this, P, Xa).call(this);
3680
3681
  }
3681
3682
  disconnectedCallback() {
3682
3683
  var t;
@@ -3690,7 +3691,7 @@ class qa extends HTMLElement {
3690
3691
  const o = e(this, dt).querySelector("vindral-poster-overlay");
3691
3692
  o && (o.disabled = H(this.getAttribute(Z.REFRESH_POSTER_ENABLED), !1) === !1);
3692
3693
  } else
3693
- e(this, Vi).call(this, t, s);
3694
+ e(this, Xi).call(this, t, s);
3694
3695
  }
3695
3696
  get instance() {
3696
3697
  return e(this, F).instance;
@@ -3699,15 +3700,15 @@ class qa extends HTMLElement {
3699
3700
  return e(this, F).airPlay;
3700
3701
  }
3701
3702
  }
3702
- dt = new WeakMap(), F = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), It = new WeakMap(), Qs = new WeakMap(), Vi = new WeakMap(), P = new WeakSet(), Xa = function() {
3703
- return Tr(this.getAttribute(r.MEDIA)) === "audio" ? Il : kl;
3703
+ dt = new WeakMap(), F = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), It = new WeakMap(), Qs = new WeakMap(), Xi = new WeakMap(), P = new WeakSet(), Va = function() {
3704
+ return Tr(this.getAttribute(r.MEDIA)) === "audio" ? wl : Ll;
3704
3705
  }, qn = function() {
3705
- Ir.innerHTML = n(this, P, Xa).call(this);
3706
+ Ir.innerHTML = n(this, P, Va).call(this);
3706
3707
  const t = Ir.content.cloneNode(!0);
3707
3708
  d(this, F, t.querySelector("vindral-controller")), d(this, q, t.querySelector("#vindral-message")), d(this, kt, t.querySelector("#play-overlay")), this.children.length > 0 && Array.from(this.children).forEach((i) => {
3708
3709
  e(this, F).appendChild(i);
3709
3710
  }), e(this, Qs).call(this), e(this, dt).innerHTML = "", e(this, dt).appendChild(t);
3710
- }, Va = function() {
3711
+ }, Xa = function() {
3711
3712
  var u;
3712
3713
  if (H(this.getAttribute(Z.STREAM_POLL_ENABLED), !0) === !1)
3713
3714
  return;
@@ -3716,7 +3717,7 @@ dt = new WeakMap(), F = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), It
3716
3717
  this.setAttribute(Z.OFFLINE, ""), n(this, P, Nt).call(this, "Invalid options", "Please enter at least a channel id and url to start the stream");
3717
3718
  return;
3718
3719
  }
3719
- d(this, It, new fl({
3720
+ d(this, It, new El({
3720
3721
  url: t,
3721
3722
  channelId: i,
3722
3723
  authenticationToken: s,
@@ -3736,7 +3737,7 @@ dt = new WeakMap(), F = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), It
3736
3737
  if (!i) return;
3737
3738
  const s = this.getAttribute("poster"), o = typeof i == "string" ? i : t.name;
3738
3739
  let u;
3739
- typeof s == "string" ? u = s : u = (v = (p = this.instance) == null ? void 0 : p.getThumbnailUrl()) != null ? v : t.thumbnailUrls.length ? t.thumbnailUrls[0] : void 0, Jo({
3740
+ typeof s == "string" ? u = s : u = (v = (p = this.instance) == null ? void 0 : p.getThumbnailUrl()) != null ? v : t.thumbnailUrls.length ? t.thumbnailUrls[0] : void 0, Qo({
3740
3741
  title: o,
3741
3742
  poster: u
3742
3743
  });
@@ -3744,7 +3745,7 @@ dt = new WeakMap(), F = new WeakMap(), q = new WeakMap(), kt = new WeakMap(), It
3744
3745
  e(this, q).setAttribute("title", t), e(this, q).setAttribute("description", i);
3745
3746
  const s = this.getAttribute("poster");
3746
3747
  s && e(this, q).setAttribute("background-image", s), e(this, q).removeAttribute("hidden");
3747
- }, m(qa, "observedAttributes", [...ri.observedAttributes, ...vl]);
3748
+ }, m(qa, "observedAttributes", [...ri.observedAttributes, ...gl]);
3748
3749
  const ja = document.createElement("template");
3749
3750
  ja.innerHTML = /* HTML */
3750
3751
  `
@@ -3782,15 +3783,15 @@ ja.innerHTML = /* HTML */
3782
3783
  }
3783
3784
  </style>
3784
3785
  `;
3785
- const Ll = 6e3;
3786
- var De, Kt, he, Fe, nt, Ja, ws, Xn, Zs;
3786
+ const Tl = 6e3;
3787
+ var De, Kt, de, Fe, nt, Ja, ws, Vn, Zs;
3787
3788
  class Ya extends HTMLElement {
3788
3789
  constructor() {
3789
3790
  super();
3790
3791
  l(this, nt);
3791
3792
  l(this, De, null);
3792
3793
  l(this, Kt, null);
3793
- l(this, he, null);
3794
+ l(this, de, null);
3794
3795
  l(this, Fe, () => {
3795
3796
  !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? n(this, nt, Ja).call(this) : n(this, nt, ws).call(this);
3796
3797
  });
@@ -3803,14 +3804,14 @@ class Ya extends HTMLElement {
3803
3804
  }
3804
3805
  connectedCallback() {
3805
3806
  var t;
3806
- d(this, De, this.closest("vindral-controller")), (t = e(this, De)) == null || t.connectListener(this), document.addEventListener("visibilitychange", e(this, Fe)), d(this, he, new IntersectionObserver(e(this, Zs))), e(this, he).observe(this);
3807
+ d(this, De, this.closest("vindral-controller")), (t = e(this, De)) == null || t.connectListener(this), document.addEventListener("visibilitychange", e(this, Fe)), d(this, de, new IntersectionObserver(e(this, Zs))), e(this, de).observe(this);
3807
3808
  }
3808
3809
  disconnectedCallback() {
3809
3810
  var t, i;
3810
- (t = e(this, De)) == null || t.disconnectListener(this), document.removeEventListener("visibilitychange", e(this, Fe)), (i = e(this, he)) == null || i.disconnect(), d(this, he, null), n(this, nt, ws).call(this);
3811
+ (t = e(this, De)) == null || t.disconnectListener(this), document.removeEventListener("visibilitychange", e(this, Fe)), (i = e(this, de)) == null || i.disconnect(), d(this, de, null), n(this, nt, ws).call(this);
3811
3812
  }
3812
3813
  attributeChangedCallback(t, i, s) {
3813
- i !== s && (t === r.POSTER_SRC && this.paused && !this.disabled && n(this, nt, Xn).call(this), (t === r.PAUSED || t === "disabled" || t === "intersecting") && e(this, Fe).call(this));
3814
+ i !== s && (t === r.POSTER_SRC && this.paused && !this.disabled && n(this, nt, Vn).call(this), (t === r.PAUSED || t === "disabled" || t === "intersecting") && e(this, Fe).call(this));
3814
3815
  }
3815
3816
  get disabled() {
3816
3817
  return this.hasAttribute("disabled");
@@ -3825,11 +3826,11 @@ class Ya extends HTMLElement {
3825
3826
  return this.hasAttribute(r.PAUSED);
3826
3827
  }
3827
3828
  }
3828
- De = new WeakMap(), Kt = new WeakMap(), he = new WeakMap(), Fe = new WeakMap(), nt = new WeakSet(), Ja = function() {
3829
- e(this, Kt) === null && (n(this, nt, ws).call(this), d(this, Kt, window.setInterval(() => n(this, nt, Xn).call(this), Ll)));
3829
+ De = new WeakMap(), Kt = new WeakMap(), de = new WeakMap(), Fe = new WeakMap(), nt = new WeakSet(), Ja = function() {
3830
+ e(this, Kt) === null && (n(this, nt, ws).call(this), d(this, Kt, window.setInterval(() => n(this, nt, Vn).call(this), Tl)));
3830
3831
  }, ws = function() {
3831
3832
  e(this, Kt) !== null && (clearInterval(e(this, Kt)), d(this, Kt, null)), this.style.backgroundImage = "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAQAAACRI2S5AAAAEElEQVR42mNkIAAYRxWAAQAG9gAKqv6+AwAAAABJRU5ErkJggg==')";
3832
- }, Xn = function() {
3833
+ }, Vn = function() {
3833
3834
  if (!this.posterSrc) return;
3834
3835
  const t = new URL(this.posterSrc), i = new Image();
3835
3836
  t.searchParams.set("t", Date.now().toString()), i.src = t.toString(), i.onload = () => this.style.backgroundImage = `url(${t.toString()})`;
@@ -3839,7 +3840,7 @@ De = new WeakMap(), Kt = new WeakMap(), he = new WeakMap(), Fe = new WeakMap(),
3839
3840
  "disabled",
3840
3841
  "intersecting"
3841
3842
  ]);
3842
- const wl = (
3843
+ const Sl = (
3843
3844
  /* SVG */
3844
3845
  `
3845
3846
  <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round">
@@ -3856,7 +3857,7 @@ Wa.innerHTML = /* HTML */
3856
3857
  }
3857
3858
  </style>
3858
3859
 
3859
- <slot name="button">${wl}</slot>
3860
+ <slot name="button">${Sl}</slot>
3860
3861
  <slot name="listbox" hidden>
3861
3862
  <vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
3862
3863
  </slot>
@@ -3880,8 +3881,8 @@ Yi = new WeakSet(), jn = function() {
3880
3881
  const t = this.getAttribute(r.RENDITION_LEVELS);
3881
3882
  !t || t === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3882
3883
  }, m(ii, "observedAttributes", [...J(ii, ii, "observedAttributes"), r.RENDITION_LEVELS]);
3883
- let Vn = ii;
3884
- const Qa = document.createElement("template"), Tl = (
3884
+ let Xn = ii;
3885
+ const Qa = document.createElement("template"), Cl = (
3885
3886
  /* SVG */
3886
3887
  `
3887
3888
  <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="#fff" viewBox="0 0 78.369 78.369" xml:space="preserve"><path d="M78.049 19.015 29.458 67.606a1.094 1.094 0 0 1-1.548 0L.32 40.015a1.094 1.094 0 0 1 0-1.547l6.704-6.704a1.095 1.095 0 0 1 1.548 0l20.113 20.112 41.113-41.113a1.095 1.095 0 0 1 1.548 0l6.703 6.704a1.094 1.094 0 0 1 0 1.548z"/></svg>
@@ -3960,7 +3961,7 @@ Qa.innerHTML = /* HTML */
3960
3961
  }
3961
3962
 
3962
3963
  [role="menuitem"][aria-selected="true"]::before {
3963
- content: url("data:image/svg+xml,${encodeURIComponent(Tl)}");
3964
+ content: url("data:image/svg+xml,${encodeURIComponent(Cl)}");
3964
3965
  position: absolute;
3965
3966
  left: calc(var(--padding-3) - var(--padding-1));
3966
3967
  top: calc(50% - 8px);
@@ -3990,16 +3991,16 @@ Qa.innerHTML = /* HTML */
3990
3991
  <div class="menu"></div>
3991
3992
  </slot>
3992
3993
  `;
3993
- var de, Ji, qt, Lt, ce, Wi, U, to, Yn, eo, Jn, io, so, no, Wn, ro;
3994
+ var ce, Ji, qt, Lt, ue, Wi, U, to, Yn, eo, Jn, io, so, no, Wn, ro;
3994
3995
  class Za extends HTMLElement {
3995
3996
  constructor() {
3996
3997
  super();
3997
3998
  l(this, U);
3998
- l(this, de, []);
3999
+ l(this, ce, []);
3999
4000
  l(this, Ji, Number.MAX_SAFE_INTEGER);
4000
4001
  l(this, qt, null);
4001
4002
  l(this, Lt, []);
4002
- l(this, ce, null);
4003
+ l(this, ue, null);
4003
4004
  l(this, Wi, null);
4004
4005
  m(this, "handleEvent", (t) => {
4005
4006
  switch (t.type) {
@@ -4013,17 +4014,17 @@ class Za extends HTMLElement {
4013
4014
  connectedCallback() {
4014
4015
  var i;
4015
4016
  const t = this.getRootNode();
4016
- t instanceof ShadowRoot && (d(this, ce, t.host.closest("vindral-controller")), (i = e(this, ce)) == null || i.connectListener(this), n(this, U, to).call(this), n(this, U, Yn).call(this), d(this, Wi, t.host), this.addEventListener("keydown", this));
4017
+ t instanceof ShadowRoot && (d(this, ue, t.host.closest("vindral-controller")), (i = e(this, ue)) == null || i.connectListener(this), n(this, U, to).call(this), n(this, U, Yn).call(this), d(this, Wi, t.host), this.addEventListener("keydown", this));
4017
4018
  }
4018
4019
  disconnectedCallback() {
4019
4020
  var t;
4020
- (t = e(this, ce)) == null || t.disconnectListener(this), this.removeEventListener("keydown", this);
4021
+ (t = e(this, ue)) == null || t.disconnectListener(this), this.removeEventListener("keydown", this);
4021
4022
  }
4022
4023
  attributeChangedCallback(t, i, s) {
4023
4024
  i !== s && (t === r.RENDITION_LEVELS && s && (this.list = JSON.parse(s)), t === r.MAX_VIDEO_BITRATE && s && (this.maxVideoBitrate = s ? parseInt(s) : Number.MAX_SAFE_INTEGER));
4024
4025
  }
4025
4026
  set list(t) {
4026
- d(this, de, t), n(this, U, Yn).call(this);
4027
+ d(this, ce, t), n(this, U, Yn).call(this);
4027
4028
  }
4028
4029
  set maxVideoBitrate(t) {
4029
4030
  d(this, Ji, t), n(this, U, Jn).call(this);
@@ -4036,7 +4037,7 @@ class Za extends HTMLElement {
4036
4037
  (t = e(this, qt)) == null || t.focus();
4037
4038
  }
4038
4039
  }
4039
- de = new WeakMap(), Ji = new WeakMap(), qt = new WeakMap(), Lt = new WeakMap(), ce = new WeakMap(), Wi = new WeakMap(), U = new WeakSet(), to = function() {
4040
+ ce = new WeakMap(), Ji = new WeakMap(), qt = new WeakMap(), Lt = new WeakMap(), ue = new WeakMap(), Wi = new WeakMap(), U = new WeakSet(), to = function() {
4040
4041
  const t = (s) => {
4041
4042
  s.forEach((o) => {
4042
4043
  if (o.intersectionRatio !== 1)
@@ -4048,7 +4049,7 @@ de = new WeakMap(), Ji = new WeakMap(), qt = new WeakMap(), Lt = new WeakMap(),
4048
4049
  });
4049
4050
  };
4050
4051
  new IntersectionObserver(t, {
4051
- root: e(this, ce),
4052
+ root: e(this, ue),
4052
4053
  // The parent element to use as the viewport
4053
4054
  threshold: 0
4054
4055
  // 0 means any intersection is enough to be considered "inside"
@@ -4056,7 +4057,7 @@ de = new WeakMap(), Ji = new WeakMap(), qt = new WeakMap(), Lt = new WeakMap(),
4056
4057
  }, Yn = function() {
4057
4058
  var i;
4058
4059
  const t = (i = this.shadowRoot) == null ? void 0 : i.querySelector(".menu");
4059
- t && (d(this, Lt, []), t.innerHTML = "", e(this, de).sort((s, o) => {
4060
+ t && (d(this, Lt, []), t.innerHTML = "", e(this, ce).sort((s, o) => {
4060
4061
  var u, p;
4061
4062
  return (u = s.video) != null && u.bitRate && ((p = o.video) != null && p.bitRate) ? o.video.bitRate - s.video.bitRate : 0;
4062
4063
  }).forEach((s) => {
@@ -4064,20 +4065,20 @@ de = new WeakMap(), Ji = new WeakMap(), qt = new WeakMap(), Lt = new WeakMap(),
4064
4065
  const o = document.createElement("div");
4065
4066
  o.setAttribute("role", "menuitem"), o.setAttribute("value", String((v = s.video) == null ? void 0 : v.height)), o.classList.add("menu-item"), o.tabIndex = -1;
4066
4067
  const u = n(this, U, eo).call(this, (A = s.video) == null ? void 0 : A.frameRate);
4067
- o.textContent = s.video ? Yo(s.video) : "";
4068
+ o.textContent = s.video ? Wo(s.video) : "";
4068
4069
  const p = document.createElement("span");
4069
- p.classList.add("menu-item-subtitle"), p.textContent = `${jo(((ut = (z = s.video) == null ? void 0 : z.bitRate) != null ? ut : 0) + ((jt = (at = s.audio) == null ? void 0 : at.bitRate) != null ? jt : 0))}, ${u}p`, o.appendChild(p), o.addEventListener("click", () => n(this, U, io).call(this, s)), e(this, Lt).push({ el: o, id: (Jt = (Yt = s.video) == null ? void 0 : Yt.id) != null ? Jt : -1 }), t.appendChild(o);
4070
+ p.classList.add("menu-item-subtitle"), p.textContent = `${Jo(((ut = (z = s.video) == null ? void 0 : z.bitRate) != null ? ut : 0) + ((jt = (at = s.audio) == null ? void 0 : at.bitRate) != null ? jt : 0))}, ${u}p`, o.appendChild(p), o.addEventListener("click", () => n(this, U, io).call(this, s)), e(this, Lt).push({ el: o, id: (Jt = (Yt = s.video) == null ? void 0 : Yt.id) != null ? Jt : -1 }), t.appendChild(o);
4070
4071
  }), n(this, U, Jn).call(this));
4071
4072
  }, eo = function(t) {
4072
4073
  return t ? t[0] % t[1] === 0 ? (t[0] / t[1]).toString() : (t[0] / t[1]).toFixed(2) : "";
4073
4074
  }, Jn = function() {
4074
4075
  e(this, qt) && (e(this, qt).removeAttribute("aria-selected"), e(this, qt).tabIndex = -1);
4075
- const t = e(this, de).sort(
4076
+ const t = e(this, ce).sort(
4076
4077
  (s, o) => {
4077
4078
  var u, p;
4078
4079
  return (u = s.video) != null && u.bitRate && ((p = o.video) != null && p.bitRate) ? o.video.bitRate - s.video.bitRate : 0;
4079
4080
  }
4080
- ), i = e(this, de).filter(
4081
+ ), i = e(this, ce).filter(
4081
4082
  (s) => {
4082
4083
  var o;
4083
4084
  return ((o = s.video) == null ? void 0 : o.bitRate) && s.video.bitRate <= e(this, Ji);
@@ -4183,13 +4184,13 @@ ao.innerHTML = /* HTML */
4183
4184
  <div id="scroll-area"></div>
4184
4185
  <slot id="content"></slot>
4185
4186
  `;
4186
- var wt, ue, He, Qi, R, lo, ho, co, tn, en, Ts, Qn, Zn, tr, er;
4187
+ var wt, pe, He, Qi, R, lo, ho, co, tn, en, Ts, Qn, Zn, tr, er;
4187
4188
  class oo extends HTMLElement {
4188
4189
  constructor() {
4189
4190
  super();
4190
4191
  l(this, R);
4191
4192
  l(this, wt, null);
4192
- l(this, ue, null);
4193
+ l(this, pe, null);
4193
4194
  l(this, He, null);
4194
4195
  l(this, Qi, 0);
4195
4196
  m(this, "handleEvent", (t) => {
@@ -4225,11 +4226,11 @@ class oo extends HTMLElement {
4225
4226
  var i, s, o, u, p, v;
4226
4227
  const t = this.getRootNode();
4227
4228
  if (t instanceof Document || t instanceof ShadowRoot) {
4228
- d(this, wt, t.querySelector("vindral-controller")), (i = e(this, wt)) == null || i.connectListener(this), d(this, ue, (s = this.shadowRoot) == null ? void 0 : s.querySelector("#scroll-area")), (o = e(this, ue)) == null || o.addEventListener("click", () => {
4229
+ d(this, wt, t.querySelector("vindral-controller")), (i = e(this, wt)) == null || i.connectListener(this), d(this, pe, (s = this.shadowRoot) == null ? void 0 : s.querySelector("#scroll-area")), (o = e(this, pe)) == null || o.addEventListener("click", () => {
4229
4230
  this.open && (this.open = !1);
4230
4231
  });
4231
4232
  const A = this.hasAttribute("touch-enabled");
4232
- if (!Ko() || !A) {
4233
+ if (!Vo() || !A) {
4233
4234
  this.setAttribute("snap", ""), this.addEventListener("scroll", e(this, en));
4234
4235
  return;
4235
4236
  }
@@ -4244,7 +4245,7 @@ class oo extends HTMLElement {
4244
4245
  var o;
4245
4246
  i !== s && (t === r.USER_INTERACTING && s === null && n(this, R, Qn).call(this) && setTimeout(() => {
4246
4247
  this.open = !1;
4247
- }, 300), t === "open" && this.scrollTo({ top: s === null ? 0 : (o = e(this, ue)) == null ? void 0 : o.clientHeight, behavior: "smooth" }));
4248
+ }, 300), t === "open" && this.scrollTo({ top: s === null ? 0 : (o = e(this, pe)) == null ? void 0 : o.clientHeight, behavior: "smooth" }));
4248
4249
  }
4249
4250
  set open(t) {
4250
4251
  t ? this.setAttribute("open", "") : this.removeAttribute("open");
@@ -4259,7 +4260,7 @@ class oo extends HTMLElement {
4259
4260
  return this.hasAttribute("visible");
4260
4261
  }
4261
4262
  }
4262
- wt = new WeakMap(), ue = new WeakMap(), He = new WeakMap(), Qi = new WeakMap(), R = new WeakSet(), lo = function(t) {
4263
+ wt = new WeakMap(), pe = new WeakMap(), He = new WeakMap(), Qi = new WeakMap(), R = new WeakSet(), lo = function(t) {
4263
4264
  n(this, R, Ts).call(this) && t.touches[0] && d(this, He, t.touches[0].clientY);
4264
4265
  }, ho = function(t) {
4265
4266
  if (!(!n(this, R, Ts).call(this) || !e(this, He) || this.hasAttribute("snap-touch")) && (t.preventDefault(), t.touches[0])) {
@@ -4274,7 +4275,7 @@ wt = new WeakMap(), ue = new WeakMap(), He = new WeakMap(), Qi = new WeakMap(),
4274
4275
  return this.scrollTop > 0;
4275
4276
  }, Zn = function() {
4276
4277
  var t;
4277
- return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((t = e(this, ue)) == null ? void 0 : t.clientHeight);
4278
+ return Math.round(this.scrollTop) === this.scrollHeight - this.clientHeight || Math.round(this.scrollTop) === ((t = e(this, pe)) == null ? void 0 : t.clientHeight);
4278
4279
  }, tr = function() {
4279
4280
  this.visible = !0, this.dispatchEvent(new CustomEvent(k.LOCK_UI, { bubbles: !0, composed: !0 }));
4280
4281
  }, er = function() {
@@ -4340,7 +4341,7 @@ uo.innerHTML = /* HTML */
4340
4341
  <div id="hover-preview"></div>
4341
4342
  <div id="time-tooltip"></div>
4342
4343
  `;
4343
- var N, ct, Tt, st, St, Xt, Vt, Ct, y, Ss, ir, Qt, fe, Zi, ts, pe, es, is, sr, nr, rr, ar, bo, or, Zt, Cs, ss;
4344
+ var N, ct, Tt, st, St, Vt, Xt, Ct, y, Ss, ir, Zt, fe, Zi, ts, be, es, is, sr, nr, rr, ar, bo, or, te, Cs, ss;
4344
4345
  class po extends ni {
4345
4346
  constructor() {
4346
4347
  var t, i, s;
@@ -4351,15 +4352,15 @@ class po extends ni {
4351
4352
  l(this, Tt);
4352
4353
  l(this, st, !1);
4353
4354
  l(this, St, null);
4354
- l(this, Xt, null);
4355
- l(this, Vt, !1);
4355
+ l(this, Vt, null);
4356
+ l(this, Xt, !1);
4356
4357
  l(this, Ct, !1);
4357
4358
  l(this, Zi, (t) => {
4358
- if (!n(this, y, ir).call(this) || n(this, y, Qt).call(this)) {
4359
+ if (!n(this, y, ir).call(this) || n(this, y, Zt).call(this)) {
4359
4360
  t.preventDefault();
4360
4361
  return;
4361
4362
  }
4362
- d(this, st, !0), d(this, Xt, t.pointerId);
4363
+ d(this, st, !0), d(this, Vt, t.pointerId);
4363
4364
  try {
4364
4365
  this.setPointerCapture(t.pointerId);
4365
4366
  } catch (i) {
@@ -4367,8 +4368,8 @@ class po extends ni {
4367
4368
  n(this, y, nr).call(this, t);
4368
4369
  });
4369
4370
  l(this, ts, (t) => {
4370
- if (!(!n(this, y, ir).call(this) || n(this, y, Qt).call(this))) {
4371
- if (e(this, St) && (cancelAnimationFrame(e(this, St)), d(this, St, null)), e(this, st) && t.pointerId === e(this, Xt)) {
4371
+ if (!(!n(this, y, ir).call(this) || n(this, y, Zt).call(this))) {
4372
+ if (e(this, St) && (cancelAnimationFrame(e(this, St)), d(this, St, null)), e(this, st) && t.pointerId === e(this, Vt)) {
4372
4373
  t.preventDefault(), n(this, y, nr).call(this, t);
4373
4374
  return;
4374
4375
  }
@@ -4387,23 +4388,23 @@ class po extends ni {
4387
4388
  }));
4388
4389
  }
4389
4390
  });
4390
- l(this, pe, (t) => {
4391
- if (t.pointerId === e(this, Xt)) {
4391
+ l(this, be, (t) => {
4392
+ if (t.pointerId === e(this, Vt)) {
4392
4393
  try {
4393
4394
  this.releasePointerCapture(t.pointerId);
4394
4395
  } catch (i) {
4395
4396
  }
4396
- d(this, st, !1), d(this, Xt, null), t.pointerType !== "mouse" && (e(this, ct).style.opacity = "0"), e(this, Ct) && n(this, y, Zt).call(this) && (d(this, Vt, !1), d(this, Ct, !1));
4397
+ d(this, st, !1), d(this, Vt, null), t.pointerType !== "mouse" && (e(this, ct).style.opacity = "0"), e(this, Ct) && n(this, y, te).call(this) && (d(this, Xt, !1), d(this, Ct, !1));
4397
4398
  }
4398
4399
  });
4399
4400
  l(this, es, () => {
4400
- this.duration && !n(this, y, Qt).call(this) && (e(this, ct).style.opacity = "1");
4401
+ this.duration && !n(this, y, Zt).call(this) && (e(this, ct).style.opacity = "1");
4401
4402
  });
4402
4403
  l(this, is, () => {
4403
4404
  e(this, ct).style.opacity = "0", e(this, Tt).style.opacity = "0";
4404
4405
  });
4405
4406
  l(this, ss, (t) => {
4406
- if (n(this, y, Qt).call(this) || !e(this, N) || e(this, N) <= 0 || !isFinite(e(this, N)))
4407
+ if (n(this, y, Zt).call(this) || !e(this, N) || e(this, N) <= 0 || !isFinite(e(this, N)))
4407
4408
  return;
4408
4409
  const i = n(this, y, Ss).call(this);
4409
4410
  if (i <= 0) return;
@@ -4415,7 +4416,7 @@ class po extends ni {
4415
4416
  o = Math.max(0, s - u);
4416
4417
  break;
4417
4418
  case "ArrowRight":
4418
- if (n(this, y, Zt).call(this))
4419
+ if (n(this, y, te).call(this))
4419
4420
  return;
4420
4421
  o = Math.min(i, s + u);
4421
4422
  break;
@@ -4423,7 +4424,7 @@ class po extends ni {
4423
4424
  o = 0;
4424
4425
  break;
4425
4426
  case "End":
4426
- if (n(this, y, Zt).call(this))
4427
+ if (n(this, y, te).call(this))
4427
4428
  return;
4428
4429
  o = i;
4429
4430
  break;
@@ -4433,20 +4434,20 @@ class po extends ni {
4433
4434
  const p = Math.min(o / i, 1);
4434
4435
  n(this, y, rr).call(this, p);
4435
4436
  });
4436
- (t = this.shadowRoot) == null || t.appendChild(uo.content.cloneNode(!0)), d(this, ct, (i = this.shadowRoot) == null ? void 0 : i.getElementById("time-tooltip")), d(this, Tt, (s = this.shadowRoot) == null ? void 0 : s.getElementById("hover-preview")), this.addEventListener("pointerdown", e(this, Zi)), this.addEventListener("pointermove", e(this, ts)), this.addEventListener("pointerup", e(this, pe)), this.addEventListener("pointercancel", e(this, pe)), this.addEventListener("mouseenter", e(this, es)), this.addEventListener("mouseleave", e(this, is));
4437
+ (t = this.shadowRoot) == null || t.appendChild(uo.content.cloneNode(!0)), d(this, ct, (i = this.shadowRoot) == null ? void 0 : i.getElementById("time-tooltip")), d(this, Tt, (s = this.shadowRoot) == null ? void 0 : s.getElementById("hover-preview")), this.addEventListener("pointerdown", e(this, Zi)), this.addEventListener("pointermove", e(this, ts)), this.addEventListener("pointerup", e(this, be)), this.addEventListener("pointercancel", e(this, be)), this.addEventListener("mouseenter", e(this, es)), this.addEventListener("mouseleave", e(this, is));
4437
4438
  }
4438
4439
  connectedCallback() {
4439
- super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), n(this, y, fe).call(this), this.addEventListener("keydown", e(this, ss)), n(this, y, Zt).call(this) && (this.range.value = "1", n(this, y, fe).call(this));
4440
+ super.connectedCallback(), this.setAttribute("aria-label", "Seek video position"), this.setAttribute("role", "slider"), n(this, y, fe).call(this), this.addEventListener("keydown", e(this, ss)), n(this, y, te).call(this) && (this.range.value = "1", n(this, y, fe).call(this));
4440
4441
  }
4441
4442
  disconnectedCallback() {
4442
- super.disconnectedCallback(), this.removeEventListener("pointerdown", e(this, Zi)), this.removeEventListener("pointermove", e(this, ts)), this.removeEventListener("pointerup", e(this, pe)), this.removeEventListener("pointercancel", e(this, pe)), this.removeEventListener("mouseenter", e(this, es)), this.removeEventListener("mouseleave", e(this, is)), this.removeEventListener("keydown", e(this, ss)), d(this, Xt, null);
4443
+ super.disconnectedCallback(), this.removeEventListener("pointerdown", e(this, Zi)), this.removeEventListener("pointermove", e(this, ts)), this.removeEventListener("pointerup", e(this, be)), this.removeEventListener("pointercancel", e(this, be)), this.removeEventListener("mouseenter", e(this, es)), this.removeEventListener("mouseleave", e(this, is)), this.removeEventListener("keydown", e(this, ss)), d(this, Vt, null);
4443
4444
  }
4444
4445
  attributeChangedCallback(t, i, s) {
4445
4446
  if (super.attributeChangedCallback(t, i, s), i !== s)
4446
4447
  switch (t) {
4447
4448
  case r.TIMESHIFT:
4448
- if (n(this, y, Zt).call(this)) {
4449
- e(this, st) ? d(this, Ct, !0) : (d(this, Vt, !1), d(this, Ct, !1)), this.range.value = "1", n(this, y, fe).call(this);
4449
+ if (n(this, y, te).call(this)) {
4450
+ e(this, st) ? d(this, Ct, !0) : (d(this, Xt, !1), d(this, Ct, !1)), this.range.value = "1", n(this, y, fe).call(this);
4450
4451
  return;
4451
4452
  }
4452
4453
  if (e(this, N)) {
@@ -4472,26 +4473,26 @@ class po extends ni {
4472
4473
  this.setAttribute(r.DURATION, t.toString());
4473
4474
  }
4474
4475
  }
4475
- N = new WeakMap(), ct = new WeakMap(), Tt = new WeakMap(), st = new WeakMap(), St = new WeakMap(), Xt = new WeakMap(), Vt = new WeakMap(), Ct = new WeakMap(), y = new WeakSet(), Ss = function() {
4476
+ N = new WeakMap(), ct = new WeakMap(), Tt = new WeakMap(), st = new WeakMap(), St = new WeakMap(), Vt = new WeakMap(), Xt = new WeakMap(), Ct = new WeakMap(), y = new WeakSet(), Ss = function() {
4476
4477
  return e(this, N) ? e(this, N) : 1;
4477
4478
  }, ir = function() {
4478
4479
  return !!e(this, N) && e(this, N) > 0 && isFinite(e(this, N));
4479
- }, Qt = function() {
4480
- return e(this, Vt);
4480
+ }, Zt = function() {
4481
+ return e(this, Xt);
4481
4482
  }, fe = function() {
4482
4483
  const t = n(this, y, Ss).call(this);
4483
4484
  !e(this, N) || e(this, N) <= 0 || !isFinite(e(this, N)) ? this.setAttribute("data-no-duration", "") : this.removeAttribute("data-no-duration"), e(this, st) || (this.updateBar(), this.setAttribute(
4484
4485
  "aria-valuetext",
4485
4486
  `${n(this, y, Cs).call(this, this.range.valueAsNumber * t)} of ${n(this, y, Cs).call(this, t)}`
4486
- ), !e(this, st) && !n(this, y, Qt).call(this) && n(this, y, or).call(this, this.range.valueAsNumber));
4487
- }, Zi = new WeakMap(), ts = new WeakMap(), pe = new WeakMap(), es = new WeakMap(), is = new WeakMap(), sr = function(t) {
4487
+ ), !e(this, st) && !n(this, y, Zt).call(this) && n(this, y, or).call(this, this.range.valueAsNumber));
4488
+ }, Zi = new WeakMap(), ts = new WeakMap(), be = new WeakMap(), es = new WeakMap(), is = new WeakMap(), sr = function(t) {
4488
4489
  const i = this.getBoundingClientRect(), s = (t - i.left) / i.width;
4489
4490
  return Math.max(0, Math.min(1, s));
4490
4491
  }, nr = function(t) {
4491
4492
  const i = n(this, y, sr).call(this, t.clientX);
4492
4493
  n(this, y, ar).call(this, i, t.clientX), e(this, st) || (e(this, ct).style.opacity = "1"), n(this, y, rr).call(this, i);
4493
4494
  }, rr = function(t) {
4494
- if (n(this, y, Qt).call(this) || n(this, y, or).call(this, t))
4495
+ if (n(this, y, Zt).call(this) || n(this, y, or).call(this, t))
4495
4496
  return;
4496
4497
  const i = n(this, y, Ss).call(this), s = t * i;
4497
4498
  this.range.value = t.toString(), this.updateBar(), n(this, y, bo).call(this, s);
@@ -4511,8 +4512,8 @@ N = new WeakMap(), ct = new WeakMap(), Tt = new WeakMap(), st = new WeakMap(), S
4511
4512
  })
4512
4513
  );
4513
4514
  }, or = function(t) {
4514
- return e(this, Vt) || n(this, y, Zt).call(this) || t < 0.999 ? !1 : (d(this, Vt, !0), d(this, Ct, !1), this.dispatchEvent(new CustomEvent(k.GO_LIVE, { bubbles: !0, composed: !0 })), !0);
4515
- }, Zt = function() {
4515
+ return e(this, Xt) || n(this, y, te).call(this) || t < 0.999 ? !1 : (d(this, Xt, !0), d(this, Ct, !1), this.dispatchEvent(new CustomEvent(k.GO_LIVE, { bubbles: !0, composed: !0 })), !0);
4516
+ }, te = function() {
4516
4517
  return !this.hasAttribute(r.TIMESHIFT);
4517
4518
  }, Cs = function(t) {
4518
4519
  const i = Math.floor(t / 3600), s = Math.floor(t % 3600 / 60), o = Math.floor(t % 60);
@@ -4522,12 +4523,12 @@ N = new WeakMap(), ct = new WeakMap(), Tt = new WeakMap(), st = new WeakMap(), S
4522
4523
  r.TIMESHIFT,
4523
4524
  r.DURATION
4524
4525
  ]);
4525
- const mo = document.createElement("template"), Sl = (
4526
+ const mo = document.createElement("template"), xl = (
4526
4527
  /* SVG */
4527
4528
  `
4528
4529
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
4529
4530
  `
4530
- ), Cl = (
4531
+ ), Nl = (
4531
4532
  /* SVG */
4532
4533
  `
4533
4534
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" clip-rule="evenodd" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" /></g></svg>
@@ -4586,11 +4587,11 @@ mo.innerHTML = /* HTML */
4586
4587
  </style>
4587
4588
 
4588
4589
  <slot name="icon">
4589
- <slot name="play">${Sl}</slot>
4590
- <slot name="unmute">${Cl}</slot>
4590
+ <slot name="play">${xl}</slot>
4591
+ <slot name="unmute">${Nl}</slot>
4591
4592
  </slot>
4592
4593
  `;
4593
- var Oe, ns, be, rs;
4594
+ var Oe, ns, me, rs;
4594
4595
  class vo extends HTMLElement {
4595
4596
  constructor() {
4596
4597
  super();
@@ -4598,10 +4599,10 @@ class vo extends HTMLElement {
4598
4599
  l(this, ns, () => {
4599
4600
  this.dispatchEvent(new CustomEvent(k.REQUEST_USER_INPUT, { bubbles: !0, composed: !0 }));
4600
4601
  });
4601
- l(this, be, (t) => {
4602
+ l(this, me, (t) => {
4602
4603
  const { key: i } = t;
4603
4604
  if (!this.keysUsed.includes(i)) {
4604
- this.removeEventListener("keyup", e(this, be));
4605
+ this.removeEventListener("keyup", e(this, me));
4605
4606
  return;
4606
4607
  }
4607
4608
  this.dispatchEvent(new CustomEvent(k.REQUEST_USER_INPUT, { bubbles: !0, composed: !0 }));
@@ -4609,10 +4610,10 @@ class vo extends HTMLElement {
4609
4610
  l(this, rs, (t) => {
4610
4611
  const { metaKey: i, altKey: s, key: o } = t;
4611
4612
  if (i || s || !this.keysUsed.includes(o)) {
4612
- this.removeEventListener("keyup", e(this, be));
4613
+ this.removeEventListener("keyup", e(this, me));
4613
4614
  return;
4614
4615
  }
4615
- this.addEventListener("keyup", e(this, be), { once: !0 });
4616
+ this.addEventListener("keyup", e(this, me), { once: !0 });
4616
4617
  });
4617
4618
  this.attachShadow({ mode: "open" }).appendChild(mo.content.cloneNode(!0));
4618
4619
  }
@@ -4627,14 +4628,14 @@ class vo extends HTMLElement {
4627
4628
  this.addEventListener("click", e(this, ns)), this.addEventListener("keydown", e(this, rs)), this.tabIndex = 0;
4628
4629
  }
4629
4630
  disable() {
4630
- this.removeEventListener("click", e(this, ns)), this.removeEventListener("keydown", e(this, rs)), this.removeEventListener("keyup", e(this, be)), this.tabIndex = -1;
4631
+ this.removeEventListener("click", e(this, ns)), this.removeEventListener("keydown", e(this, rs)), this.removeEventListener("keyup", e(this, me)), this.tabIndex = -1;
4631
4632
  }
4632
4633
  disconnectedCallback() {
4633
4634
  var t;
4634
4635
  (t = e(this, Oe)) == null || t.disconnectListener(this), this.disable();
4635
4636
  }
4636
4637
  }
4637
- Oe = new WeakMap(), ns = new WeakMap(), be = new WeakMap(), rs = new WeakMap(), m(vo, "observedAttributes", [
4638
+ Oe = new WeakMap(), ns = new WeakMap(), me = new WeakMap(), rs = new WeakMap(), m(vo, "observedAttributes", [
4638
4639
  "hidden",
4639
4640
  r.NEEDS_USER_INPUT_VIDEO,
4640
4641
  r.NEEDS_USER_INPUT_AUDIO,
@@ -4748,7 +4749,7 @@ class go extends HTMLElement {
4748
4749
  }
4749
4750
  }
4750
4751
  as = new WeakMap(), os = new WeakMap(), ls = new WeakMap(), m(go, "observedAttributes", ["title", "description", "background-image", "hidden"]);
4751
- const Eo = document.createElement("template"), xl = (
4752
+ const Eo = document.createElement("template"), Rl = (
4752
4753
  /* SVG */
4753
4754
  `
4754
4755
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z" /></svg>
@@ -4804,7 +4805,7 @@ Eo.innerHTML = /* HTML */
4804
4805
  }
4805
4806
  </style>
4806
4807
 
4807
- <slot id="play" name="icon">${xl}</slot>
4808
+ <slot id="play" name="icon">${Rl}</slot>
4808
4809
  `;
4809
4810
  var ze;
4810
4811
  class Ao extends HTMLElement {
@@ -4846,7 +4847,7 @@ yo.innerHTML = /* HTML */
4846
4847
  }
4847
4848
  </style>
4848
4849
  `;
4849
- const Nl = (c) => `${Math.round(c * 100)}%`;
4850
+ const Ul = (c) => `${Math.round(c * 100)}%`;
4850
4851
  var hs;
4851
4852
  const si = class si extends ni {
4852
4853
  constructor() {
@@ -4865,7 +4866,7 @@ const si = class si extends ni {
4865
4866
  super.disconnectedCallback(), this.range.removeEventListener("input", e(this, hs));
4866
4867
  }
4867
4868
  attributeChangedCallback(t, i, s) {
4868
- super.attributeChangedCallback(t, i, s), (t === r.MUTED || t === r.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", Nl(this.range.valueAsNumber)), this.updateBar());
4869
+ super.attributeChangedCallback(t, i, s), (t === r.MUTED || t === r.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", Ul(this.range.valueAsNumber)), this.updateBar());
4869
4870
  }
4870
4871
  get volume() {
4871
4872
  var t;
@@ -4877,9 +4878,9 @@ const si = class si extends ni {
4877
4878
  };
4878
4879
  hs = new WeakMap(), m(si, "observedAttributes", [...J(si, si, "observedAttributes"), r.MUTED, r.VOLUME]);
4879
4880
  let lr = si;
4880
- function Dl() {
4881
- customElements.define("vindral-controller", ri), customElements.define("vindral-control-bar", ea), customElements.define("vindral-play-button", $n), customElements.define("vindral-mute-button", On), customElements.define("vindral-buffering-overlay", Pr), customElements.define("vindral-scroll-overlay", oo), customElements.define("vindral-play-overlay", Ao), customElements.define("vindral-user-input-play-overlay", vo), customElements.define("vindral-fullscreen-button", Rn), customElements.define("vindral-rendition-levels-menu", Vn), customElements.define("vindral-rendition-levels-menu-list", Za), customElements.define("vindral-channel-grid-button", bn), customElements.define("vindral-channel-grid", $r), customElements.define("vindral-channel-grid-item", hr), customElements.define("vindral-pip-button", zn), customElements.define("vindral-airplay-button", hn), customElements.define("vindral-cast-button", cn), customElements.define("vindral-cast-overlay", Fr), customElements.define("vindral-buffering-icon", Rr), customElements.define("vindral-language-menu", Un), customElements.define("vindral-language-menu-list", Ua), customElements.define("vindral-message", go), customElements.define("vindral-volume-range", lr), customElements.define("vindral-poster-overlay", Ya), customElements.define("vindral-player", qa), customElements.define("vindral-seek-bar", po), customElements.define("vindral-live-button", Hn);
4881
+ function Hl() {
4882
+ customElements.define("vindral-controller", ri), customElements.define("vindral-control-bar", ea), customElements.define("vindral-play-button", $n), customElements.define("vindral-mute-button", On), customElements.define("vindral-buffering-overlay", Pr), customElements.define("vindral-scroll-overlay", oo), customElements.define("vindral-play-overlay", Ao), customElements.define("vindral-user-input-play-overlay", vo), customElements.define("vindral-fullscreen-button", Rn), customElements.define("vindral-rendition-levels-menu", Xn), customElements.define("vindral-rendition-levels-menu-list", Za), customElements.define("vindral-channel-grid-button", bn), customElements.define("vindral-channel-grid", $r), customElements.define("vindral-channel-grid-item", hr), customElements.define("vindral-pip-button", zn), customElements.define("vindral-airplay-button", hn), customElements.define("vindral-cast-button", cn), customElements.define("vindral-cast-overlay", Fr), customElements.define("vindral-buffering-icon", Rr), customElements.define("vindral-language-menu", Un), customElements.define("vindral-language-menu-list", Ua), customElements.define("vindral-message", go), customElements.define("vindral-volume-range", lr), customElements.define("vindral-poster-overlay", Ya), customElements.define("vindral-player", qa), customElements.define("vindral-seek-bar", po), customElements.define("vindral-live-button", Hn);
4882
4883
  }
4883
4884
  export {
4884
- Dl as registerComponents
4885
+ Hl as registerComponents
4885
4886
  };