@vindral/web-sdk 4.8.2-4-gf1691d4a → 4.8.2-5-gd35674f2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,15 @@
1
- import { n as e, t } from "./BsfwXDui.js";
2
- import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as d, k as f, m as ee, p as te, t as ne, v as re, w as ie, x as ae, y as oe } from "./DfSvr6bR.js";
3
- import { t as se } from "./CuYn2z5X.js";
1
+ import { t as e } from "./CFqytvUK.js";
2
+ import { C as t, D as n, E as r, O as i, S as a, T as o, _ as s, b as c, g as l, h as u, k as d, m as f, p as ee, t as te, v as ne, w as re, x as ie, y as ae } from "./CKobxU84.js";
3
+ import { t as oe } from "./CuYn2z5X.js";
4
4
  import { i as p, n as m, r as h, t as g } from "./DSw1XhvD.js";
5
- import { c as ce, n as le, t as ue } from "./D40eQS8l.js";
6
- import { n as de, r as fe } from "./Bg5VLlmK.js";
7
- import { C as pe, S as me, _ as he, a as ge, b as _, c as v, d as _e, f as ve, g as ye, h as be, i as y, l as xe, m as Se, n as Ce, o as we, p as Te, r as b, s as Ee, t as De, u as x, v as Oe, x as ke, y as S } from "./CoLAnqGB.js";
8
- import { t as C } from "./Tj9xPXja.js";
9
- import { t as Ae } from "./CLvW8aae.js";
5
+ import { t as _ } from "./CXMDq12B.js";
6
+ import { c as se, n as ce, t as le } from "./BylishAR.js";
7
+ import { n as ue, r as de } from "./Wh46-8RX.js";
8
+ import { C as fe, S as pe, _ as me, a as he, b as v, c as y, d as ge, f as _e, g as ve, h as ye, i as b, l as be, m as xe, n as Se, o as Ce, p as we, r as x, s as Te, t as Ee, u as S, v as De, x as Oe, y as C } from "./c9cSjfkk.js";
9
+ import { t as w } from "./DZ6JmYgs.js";
10
+ import { t as ke } from "./daJ21AEO.js";
10
11
  //#region ../../libs/utils/src/mediaMetadata.ts
11
- var je = ({ title: e, subTitle: t = "Live stream", poster: n }) => {
12
+ var Ae = ({ title: e, subTitle: t = "Live stream", poster: n }) => {
12
13
  if (document.title = e, "mediaSession" in navigator) try {
13
14
  navigator.mediaSession.metadata = new MediaMetadata({
14
15
  title: e,
@@ -21,138 +22,138 @@ var je = ({ title: e, subTitle: t = "Live stream", poster: n }) => {
21
22
  artist: t
22
23
  });
23
24
  }
24
- }, Me = (e) => e === "mse" || e === "webcodecs" || e === "wasm";
25
- function Ne(e) {
25
+ }, je = (e) => e === "mse" || e === "webcodecs" || e === "wasm";
26
+ function Me(e) {
26
27
  if (e === null || e === "auto") return;
27
- let t = e.split(",").filter(Me);
28
+ let t = e.split(",").filter(je);
28
29
  return t.length > 0 ? t : void 0;
29
30
  }
30
- function Pe(e) {
31
+ function Ne(e) {
31
32
  if (e === "no-preference" || e === "prefer-hardware" || e === "prefer-software") return e;
32
33
  }
33
34
  //#endregion
34
35
  //#region ../../libs/player-next/src/components/VindralMenuButton.ts
35
- var Fe = document.createElement("template");
36
- Fe.innerHTML = "\n <style>\n :host([hidden]) {\n display: none;\n }\n </style>\n";
37
- var Ie = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakSet(), Ve = class extends y {
36
+ var Pe = document.createElement("template");
37
+ Pe.innerHTML = "\n <style>\n :host([hidden]) {\n display: none;\n }\n </style>\n";
38
+ var Fe = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakSet(), Be = class extends b {
38
39
  constructor() {
39
40
  var e;
40
- super(), C(this, Be), p(this, Ie, void 0), p(this, w, void 0), p(this, Le, null), p(this, Re, (e) => {
41
+ super(), w(this, ze), p(this, Fe, void 0), p(this, T, void 0), p(this, Ie, null), p(this, Le, (e) => {
41
42
  e.composedPath().includes(this) || this.hide();
42
- }), p(this, ze, () => {
43
+ }), p(this, Re, () => {
43
44
  this.hide();
44
- }), (e = this.shadowRoot) == null || e.appendChild(Fe.content.cloneNode(!0));
45
+ }), (e = this.shadowRoot) == null || e.appendChild(Pe.content.cloneNode(!0));
45
46
  }
46
47
  connectedCallback() {
47
48
  var e, t, n, r, i;
48
- super.connectedCallback(), this.setAttribute("role", "button"), this.setAttribute("aria-haspopup", "listbox"), this.setAttribute("aria-expanded", String(((e = g(w, this)) == null ? void 0 : e.hidden) === !1));
49
+ super.connectedCallback(), this.setAttribute("role", "button"), this.setAttribute("aria-haspopup", "listbox"), this.setAttribute("aria-expanded", String(((e = g(T, this)) == null ? void 0 : e.hidden) === !1));
49
50
  let a = (t = this.getAttribute("list-position")) == null ? "top" : t;
50
- (n = g(Ie, this)) == null || n.setAttribute("list-position", a);
51
+ (n = g(Fe, this)) == null || n.setAttribute("list-position", a);
51
52
  let o = this.getRootNode(), s = [...(r = (i = this.shadowRoot) == null ? void 0 : i.querySelectorAll(":not(:defined)")) == null ? [] : r].filter((e) => e.localName.includes("-")).map((e) => customElements.whenDefined(e.localName));
52
53
  Promise.all(s).then(() => {
53
54
  if (o instanceof Document || o instanceof ShadowRoot) {
54
55
  var e;
55
- m(Le, this, o.querySelector("vindral-controller")), (e = g(Le, this)) == null || e.connectListener(this);
56
+ m(Ie, this, o.querySelector("vindral-controller")), (e = g(Ie, this)) == null || e.connectListener(this);
56
57
  }
57
58
  });
58
59
  }
59
60
  set listbox(e) {
60
- m(Ie, this, e);
61
+ m(Fe, this, e);
61
62
  }
62
63
  set listboxSlot(e) {
63
- m(w, this, e);
64
+ m(T, this, e);
64
65
  }
65
66
  enable() {
66
- super.enable(), this.addEventListener("change", g(ze, this)), document.addEventListener("click", g(Re, this));
67
+ super.enable(), this.addEventListener("change", g(Re, this)), document.addEventListener("click", g(Le, this));
67
68
  }
68
69
  hide() {
69
70
  var e;
70
- !g(w, this) || (e = g(w, this)) != null && e.hidden || (g(w, this).hidden = !0, this.setAttribute("aria-expanded", "false"), this.dispatchEvent(new CustomEvent(S.UNLOCK_UI, {
71
+ !g(T, this) || (e = g(T, this)) != null && e.hidden || (g(T, this).hidden = !0, this.setAttribute("aria-expanded", "false"), this.dispatchEvent(new CustomEvent(C.UNLOCK_UI, {
71
72
  bubbles: !0,
72
73
  composed: !0
73
74
  })), this.focus());
74
75
  }
75
76
  handleClick(e) {
76
- g(w, this) && !e.composedPath().includes(g(w, this)) && h(Be, this, He).call(this);
77
+ g(T, this) && !e.composedPath().includes(g(T, this)) && h(ze, this, Ve).call(this);
77
78
  }
78
79
  };
79
- function He() {
80
+ function Ve() {
80
81
  var e;
81
- (e = g(w, this)) != null && e.hidden ? h(Be, this, Ue).call(this) : this.hide();
82
+ (e = g(T, this)) != null && e.hidden ? h(ze, this, He).call(this) : this.hide();
82
83
  }
83
- function Ue() {
84
+ function He() {
84
85
  var e, t;
85
- (e = g(w, this)) != null && e.hidden && (g(w, this).hidden = !1, this.setAttribute("aria-expanded", "true"), (t = g(Ie, this)) == null || t.focus(), this.dispatchEvent(new CustomEvent(S.LOCK_UI, {
86
+ (e = g(T, this)) != null && e.hidden && (g(T, this).hidden = !1, this.setAttribute("aria-expanded", "true"), (t = g(Fe, this)) == null || t.focus(), this.dispatchEvent(new CustomEvent(C.LOCK_UI, {
86
87
  bubbles: !0,
87
88
  composed: !0
88
89
  })));
89
90
  }
90
91
  //#endregion
91
92
  //#region ../../libs/player-next/src/components/AdvancedRenditionMenu.ts
92
- var We, Ge = "\n<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\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\" stroke-width=\"0\" fill=\"currentColor\" />\n</svg>\n", Ke = document.createElement("template");
93
- Ke.innerHTML = `
93
+ var Ue, We = "\n<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\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\" stroke-width=\"0\" fill=\"currentColor\" />\n</svg>\n", Ge = document.createElement("template");
94
+ Ge.innerHTML = `
94
95
  <style>
95
96
  :host {
96
97
  display: var(--rendition-menu-display);
97
98
  }
98
99
  </style>
99
100
 
100
- <slot name="button">${Ge}</slot>
101
+ <slot name="button">${We}</slot>
101
102
  <slot name="listbox" hidden>
102
103
  <vindral-advanced-rendition-menu-list id="listbox" part="listbox"></vindral-advanced-rendition-menu-list>
103
104
  </slot>
104
105
  `;
105
- var qe = /* @__PURE__ */ new WeakSet(), Je = class extends Ve {
106
+ var Ke = /* @__PURE__ */ new WeakSet(), qe = class extends Be {
106
107
  constructor() {
107
108
  var e, t, n;
108
- super(), C(this, qe), (e = this.shadowRoot) == null || e.appendChild(Ke.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
109
+ super(), w(this, Ke), (e = this.shadowRoot) == null || e.appendChild(Ge.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
109
110
  }
110
111
  connectedCallback() {
111
- super.connectedCallback(), h(qe, this, Ye).call(this), this.setAttribute("aria-label", "Quality");
112
+ super.connectedCallback(), h(Ke, this, Je).call(this), this.setAttribute("aria-label", "Quality");
112
113
  }
113
114
  attributeChangedCallback(e, t, n) {
114
- super.attributeChangedCallback(e, t, n), e === _.RENDITION_LEVELS && h(qe, this, Ye).call(this);
115
+ super.attributeChangedCallback(e, t, n), e === v.RENDITION_LEVELS && h(Ke, this, Je).call(this);
115
116
  }
116
117
  };
117
- We = Je;
118
- function Ye() {
119
- let e = this.getAttribute(_.RENDITION_LEVELS);
118
+ Ue = qe;
119
+ function Je() {
120
+ let e = this.getAttribute(v.RENDITION_LEVELS);
120
121
  !e || e === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
121
122
  }
122
- e(Je, "observedAttributes", [...b(We, "observedAttributes", We), _.RENDITION_LEVELS]);
123
+ e(qe, "observedAttributes", [...x(Ue, "observedAttributes", Ue), v.RENDITION_LEVELS]);
123
124
  //#endregion
124
125
  //#region ../../libs/player-next/src/components/AdvancedRenditionMenuList.ts
125
- var Xe = document.createElement("template");
126
- Xe.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 220px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .mode-toggle {\n display: flex;\n gap: var(--padding-1);\n margin-bottom: var(--padding-2);\n }\n\n .mode-btn {\n flex: 1;\n padding: var(--padding-1) var(--padding-2);\n border: none;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n background: var(--bg-component);\n color: var(--fg-default);\n transition: background 0.15s;\n }\n\n .mode-btn:hover {\n background: var(--bg-component-hover);\n }\n\n .mode-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--padding-2);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n }\n\n .setting-label {\n font-size: 10px;\n color: var(--fg-subtle);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n .setting-toggle-btn {\n border: none;\n border-radius: 999px;\n background: var(--bg-component);\n color: var(--fg-default);\n font-size: 10px;\n font-weight: 600;\n min-width: 44px;\n padding: 4px 10px;\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .setting-toggle-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-toggle-btn:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n .quality-status-text {\n font-size: 10px;\n color: var(--fg-subtle);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n font-style: italic;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: var(--padding-2);\n padding: var(--padding-2);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n position: relative;\n }\n\n .menu-item:hover {\n background: var(--bg-component-hover);\n }\n\n .menu-item[data-selected=\"true\"] {\n background: var(--bg-component-active);\n border: 1px solid var(--fg-extra-subtle);\n }\n\n .menu-item[data-capped=\"true\"] {\n opacity: 0.5;\n }\n\n .menu-item:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .menu-item-title {\n font-weight: 500;\n }\n\n .menu-item-subtitle {\n font-size: 10px;\n opacity: 0.6;\n }\n\n .current-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--accent);\n margin-left: auto;\n display: none;\n }\n\n .menu-item[data-playing=\"true\"] .current-label {\n display: block;\n }\n </style>\n\n <slot>\n <div class=\"mode-toggle\">\n <button class=\"mode-btn\" data-mode=\"auto\">Auto (ABR)</button>\n <button class=\"mode-btn\" data-mode=\"fixed\">Fixed</button>\n </div>\n <div class=\"setting-row\">\n <span class=\"setting-label\">Size cap</span>\n <button id=\"size-cap-toggle\" class=\"setting-toggle-btn\" type=\"button\"></button>\n </div>\n <div class=\"quality-status-text\" id=\"quality-status-text\"></div>\n <div class=\"menu\" role=\"menu\" aria-label=\"Quality options\"></div>\n </slot>\n";
127
- var Ze = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), T = /* @__PURE__ */ new WeakSet(), st = class extends HTMLElement {
126
+ var Ye = document.createElement("template");
127
+ Ye.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 220px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .mode-toggle {\n display: flex;\n gap: var(--padding-1);\n margin-bottom: var(--padding-2);\n }\n\n .mode-btn {\n flex: 1;\n padding: var(--padding-1) var(--padding-2);\n border: none;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 500;\n cursor: pointer;\n background: var(--bg-component);\n color: var(--fg-default);\n transition: background 0.15s;\n }\n\n .mode-btn:hover {\n background: var(--bg-component-hover);\n }\n\n .mode-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--padding-2);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n }\n\n .setting-label {\n font-size: 10px;\n color: var(--fg-subtle);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n\n .setting-toggle-btn {\n border: none;\n border-radius: 999px;\n background: var(--bg-component);\n color: var(--fg-default);\n font-size: 10px;\n font-weight: 600;\n min-width: 44px;\n padding: 4px 10px;\n cursor: pointer;\n transition: background 0.15s;\n }\n\n .setting-toggle-btn[data-active=\"true\"] {\n background: var(--accent);\n color: #ffffff;\n }\n\n .setting-toggle-btn:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n .quality-status-text {\n font-size: 10px;\n color: var(--fg-subtle);\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-1);\n font-style: italic;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n gap: var(--padding-2);\n padding: var(--padding-2);\n border-radius: 4px;\n cursor: pointer;\n font-size: 13px;\n position: relative;\n }\n\n .menu-item:hover {\n background: var(--bg-component-hover);\n }\n\n .menu-item[data-selected=\"true\"] {\n background: var(--bg-component-active);\n border: 1px solid var(--fg-extra-subtle);\n }\n\n .menu-item[data-capped=\"true\"] {\n opacity: 0.5;\n }\n\n .menu-item:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .menu-item-title {\n font-weight: 500;\n }\n\n .menu-item-subtitle {\n font-size: 10px;\n opacity: 0.6;\n }\n\n .current-label {\n font-size: 10px;\n font-weight: 600;\n text-transform: uppercase;\n color: var(--accent);\n margin-left: auto;\n display: none;\n }\n\n .menu-item[data-playing=\"true\"] .current-label {\n display: block;\n }\n </style>\n\n <slot>\n <div class=\"mode-toggle\">\n <button class=\"mode-btn\" data-mode=\"auto\">Auto (ABR)</button>\n <button class=\"mode-btn\" data-mode=\"fixed\">Fixed</button>\n </div>\n <div class=\"setting-row\">\n <span class=\"setting-label\">Size cap</span>\n <button id=\"size-cap-toggle\" class=\"setting-toggle-btn\" type=\"button\"></button>\n </div>\n <div class=\"quality-status-text\" id=\"quality-status-text\"></div>\n <div class=\"menu\" role=\"menu\" aria-label=\"Quality options\"></div>\n </slot>\n";
128
+ var Xe = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakSet(), ot = class extends HTMLElement {
128
129
  constructor() {
129
- super(), C(this, T), p(this, Ze, []), p(this, Qe, 2 ** 53 - 1), p(this, $e, !1), p(this, et, !0), p(this, tt, null), p(this, nt, null), p(this, rt, []), p(this, it, null), p(this, at, null), p(this, ot, null), e(this, "handleEvent", (e) => {
130
+ super(), w(this, E), p(this, Xe, []), p(this, Ze, 2 ** 53 - 1), p(this, Qe, !1), p(this, $e, !0), p(this, et, null), p(this, tt, null), p(this, nt, []), p(this, rt, null), p(this, it, null), p(this, at, null), e(this, "handleEvent", (e) => {
130
131
  switch (e.type) {
131
132
  case "keydown":
132
- h(T, this, yt).call(this, e);
133
+ h(E, this, vt).call(this, e);
133
134
  break;
134
135
  }
135
- }), this.attachShadow({ mode: "open" }).appendChild(Xe.content.cloneNode(!0));
136
+ }), this.attachShadow({ mode: "open" }).appendChild(Ye.content.cloneNode(!0));
136
137
  }
137
138
  connectedCallback() {
138
139
  let e = this.getRootNode();
139
140
  if (e instanceof ShadowRoot) {
140
141
  var t;
141
- m(it, this, e.host.closest("vindral-controller")), (t = g(it, this)) == null || t.connectListener(this), h(T, this, pt).call(this), h(T, this, ct).call(this), h(T, this, lt).call(this), h(T, this, mt).call(this), m(at, this, e.host), this.addEventListener("keydown", this);
142
+ m(rt, this, e.host.closest("vindral-controller")), (t = g(rt, this)) == null || t.connectListener(this), h(E, this, ft).call(this), h(E, this, st).call(this), h(E, this, ct).call(this), h(E, this, pt).call(this), m(it, this, e.host), this.addEventListener("keydown", this);
142
143
  }
143
144
  }
144
145
  disconnectedCallback() {
145
146
  var e, t;
146
- (e = g(it, this)) == null || e.disconnectListener(this), (t = g(ot, this)) == null || t.disconnect(), m(ot, this, null), this.removeEventListener("keydown", this);
147
+ (e = g(rt, this)) == null || e.disconnectListener(this), (t = g(at, this)) == null || t.disconnect(), m(at, this, null), this.removeEventListener("keydown", this);
147
148
  }
148
149
  attributeChangedCallback(e, t, n) {
149
- t !== n && (e === _.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === _.MAX_VIDEO_BITRATE && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1), e === _.ABR_ENABLED && (m($e, this, x(n, !1)), h(T, this, dt).call(this), h(T, this, gt).call(this)), e === _.RENDITION_LEVEL && n && (m(tt, this, JSON.parse(n)), h(T, this, gt).call(this)), e === _.SIZE_BASED_RESOLUTION_CAP_ENABLED && (m(et, this, x(n, !0)), h(T, this, ft).call(this)));
150
+ t !== n && (e === v.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === v.MAX_VIDEO_BITRATE && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1), e === v.ABR_ENABLED && (m(Qe, this, S(n, !1)), h(E, this, ut).call(this), h(E, this, ht).call(this)), e === v.RENDITION_LEVEL && n && (m(et, this, JSON.parse(n)), h(E, this, ht).call(this)), e === v.SIZE_BASED_RESOLUTION_CAP_ENABLED && (m($e, this, S(n, !0)), h(E, this, dt).call(this)));
150
151
  }
151
152
  set list(e) {
152
- m(Ze, this, e), h(T, this, mt).call(this);
153
+ m(Xe, this, e), h(E, this, pt).call(this);
153
154
  }
154
155
  set maxVideoBitrate(e) {
155
- m(Qe, this, e), h(T, this, gt).call(this);
156
+ m(Ze, this, e), h(E, this, ht).call(this);
156
157
  }
157
158
  get keysUsed() {
158
159
  return [
@@ -168,66 +169,66 @@ var Ze = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), $e =
168
169
  }
169
170
  focus() {
170
171
  var e;
171
- (e = g(nt, this)) == null || e.focus();
172
+ (e = g(tt, this)) == null || e.focus();
172
173
  }
173
174
  };
174
- function ct() {
175
+ function st() {
175
176
  var e, t;
176
177
  let n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("[data-mode=\"auto\"]"), r = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[data-mode=\"fixed\"]");
177
178
  n == null || n.addEventListener("click", () => {
178
- m($e, this, !0), h(T, this, dt).call(this), h(T, this, gt).call(this), this.dispatchEvent(new CustomEvent(S.SET_ABR_MODE, {
179
+ m(Qe, this, !0), h(E, this, ut).call(this), h(E, this, ht).call(this), this.dispatchEvent(new CustomEvent(C.SET_ABR_MODE, {
179
180
  bubbles: !0,
180
181
  composed: !0,
181
182
  detail: !0
182
183
  }));
183
184
  }), r == null || r.addEventListener("click", () => {
184
- let e = h(T, this, ut).call(this);
185
- e && this.dispatchEvent(new CustomEvent(S.SET_RENDITION, {
185
+ let e = h(E, this, lt).call(this);
186
+ e && this.dispatchEvent(new CustomEvent(C.SET_RENDITION, {
186
187
  bubbles: !0,
187
188
  composed: !0,
188
189
  detail: e
189
- })), m($e, this, !1), h(T, this, dt).call(this), h(T, this, gt).call(this), this.dispatchEvent(new CustomEvent(S.SET_ABR_MODE, {
190
+ })), m(Qe, this, !1), h(E, this, ut).call(this), h(E, this, ht).call(this), this.dispatchEvent(new CustomEvent(C.SET_ABR_MODE, {
190
191
  bubbles: !0,
191
192
  composed: !0,
192
193
  detail: !1
193
194
  }));
194
- }), h(T, this, dt).call(this);
195
+ }), h(E, this, ut).call(this);
195
196
  }
196
- function lt() {
197
+ function ct() {
197
198
  var e;
198
199
  let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("#size-cap-toggle");
199
200
  t == null || t.addEventListener("click", () => {
200
- let e = !g(et, this);
201
- m(et, this, e), h(T, this, ft).call(this), this.dispatchEvent(new CustomEvent(S.SET_SIZE_BASED_RESOLUTION_CAP_MODE, {
201
+ let e = !g($e, this);
202
+ m($e, this, e), h(E, this, dt).call(this), this.dispatchEvent(new CustomEvent(C.SET_SIZE_BASED_RESOLUTION_CAP_MODE, {
202
203
  bubbles: !0,
203
204
  composed: !0,
204
205
  detail: e
205
206
  }));
206
- }), h(T, this, ft).call(this);
207
+ }), h(E, this, dt).call(this);
207
208
  }
208
- function ut() {
209
- let e = [...g(Ze, this)].sort((e, t) => {
209
+ function lt() {
210
+ let e = [...g(Xe, this)].sort((e, t) => {
210
211
  var n, r;
211
212
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
212
213
  });
213
214
  return e.find((e) => {
214
215
  var t;
215
- return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= g(Qe, this);
216
+ return ((t = e.video) == null ? void 0 : t.bitRate) && e.video.bitRate <= g(Ze, this);
216
217
  }) || e[e.length - 1] || null;
217
218
  }
218
- function dt() {
219
+ function ut() {
219
220
  var e, t, n;
220
221
  let r = (e = this.shadowRoot) == null ? void 0 : e.querySelector("[data-mode=\"auto\"]"), i = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[data-mode=\"fixed\"]"), a = (n = this.shadowRoot) == null ? void 0 : n.querySelector("#quality-status-text");
221
- r && i && (r.setAttribute("data-active", String(g($e, this))), i.setAttribute("data-active", String(!g($e, this)))), a && (a.textContent = g($e, this) ? "Select maximum allowed quality" : "Select specific quality (may cause buffering)"), h(T, this, ft).call(this);
222
+ r && i && (r.setAttribute("data-active", String(g(Qe, this))), i.setAttribute("data-active", String(!g(Qe, this)))), a && (a.textContent = g(Qe, this) ? "Select maximum allowed quality" : "Select specific quality (may cause buffering)"), h(E, this, dt).call(this);
222
223
  }
223
- function ft() {
224
+ function dt() {
224
225
  var e;
225
226
  let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("#size-cap-toggle");
226
- t && (t.textContent = g(et, this) ? "On" : "Off", t.setAttribute("aria-pressed", String(g(et, this))), t.setAttribute("data-active", String(g(et, this))), t.disabled = !g($e, this), t.title = g($e, this) ? "Toggle size-based resolution cap" : "Only available in Auto (ABR) mode");
227
+ t && (t.textContent = g($e, this) ? "On" : "Off", t.setAttribute("aria-pressed", String(g($e, this))), t.setAttribute("data-active", String(g($e, this))), t.disabled = !g(Qe, this), t.title = g(Qe, this) ? "Toggle size-based resolution cap" : "Only available in Auto (ABR) mode");
227
228
  }
228
- function pt() {
229
+ function ft() {
229
230
  var e;
230
- (e = g(ot, this)) == null || e.disconnect(), m(ot, this, new IntersectionObserver((e) => {
231
+ (e = g(at, this)) == null || e.disconnect(), m(at, this, new IntersectionObserver((e) => {
231
232
  e.forEach((e) => {
232
233
  if (e.intersectionRatio === 1) {
233
234
  this.style.height = "auto";
@@ -238,14 +239,14 @@ function pt() {
238
239
  } else this.style.height = "auto";
239
240
  });
240
241
  }, {
241
- root: g(it, this),
242
+ root: g(rt, this),
242
243
  threshold: 0
243
- })), g(ot, this).observe(this);
244
+ })), g(at, this).observe(this);
244
245
  }
245
- function mt() {
246
+ function pt() {
246
247
  var e;
247
248
  let t = (e = this.shadowRoot) == null ? void 0 : e.querySelector(".menu");
248
- t && (m(rt, this, []), t.innerHTML = "", g(Ze, this).sort((e, t) => {
249
+ t && (m(nt, this, []), t.innerHTML = "", g(Xe, this).sort((e, t) => {
249
250
  var n, r;
250
251
  return (n = e.video) != null && n.bitRate && (r = t.video) != null && r.bitRate ? t.video.bitRate - e.video.bitRate : 0;
251
252
  }).forEach((e) => {
@@ -255,148 +256,148 @@ function mt() {
255
256
  let ee = document.createElement("div");
256
257
  ee.className = "menu-item-info";
257
258
  let te = document.createElement("span");
258
- te.className = "menu-item-title", te.textContent = e.video ? pe(e.video) : "";
259
+ te.className = "menu-item-title", te.textContent = e.video ? fe(e.video) : "";
259
260
  let ne = document.createElement("span");
260
261
  ne.classList.add("menu-item-subtitle");
261
- let re = h(T, this, ht).call(this, (r = e.video) == null ? void 0 : r.frameRate);
262
- ne.textContent = `${me(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${re}fps`, ee.appendChild(te), ee.appendChild(ne), f.appendChild(ee);
262
+ let re = h(E, this, mt).call(this, (r = e.video) == null ? void 0 : r.frameRate);
263
+ ne.textContent = `${pe(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${re}fps`, ee.appendChild(te), ee.appendChild(ne), f.appendChild(ee);
263
264
  let ie = document.createElement("span");
264
- ie.className = "current-label", ie.textContent = "Current", f.appendChild(ie), f.addEventListener("click", () => h(T, this, vt).call(this, e)), g(rt, this).push({
265
+ ie.className = "current-label", ie.textContent = "Current", f.appendChild(ie), f.addEventListener("click", () => h(E, this, _t).call(this, e)), g(nt, this).push({
265
266
  el: f,
266
267
  id: (c = (l = e.video) == null ? void 0 : l.id) == null ? -1 : c,
267
268
  bitrate: (u = (d = e.video) == null ? void 0 : d.bitRate) == null ? 0 : u
268
269
  }), t.appendChild(f);
269
- }), h(T, this, gt).call(this));
270
+ }), h(E, this, ht).call(this));
270
271
  }
271
- function ht(e) {
272
+ function mt(e) {
272
273
  return e ? e[0] % e[1] === 0 ? (e[0] / e[1]).toString() : (e[0] / e[1]).toFixed(2) : "";
273
274
  }
274
- function gt() {
275
+ function ht() {
275
276
  var e;
276
- let t = (e = g(tt, this)) == null || (e = e.video) == null ? void 0 : e.id, n = h(T, this, _t).call(this), r = n == null ? void 0 : n.id;
277
- m(nt, this, null), g(rt, this).forEach((e) => {
277
+ let t = (e = g(et, this)) == null || (e = e.video) == null ? void 0 : e.id, n = h(E, this, gt).call(this), r = n == null ? void 0 : n.id;
278
+ m(tt, this, null), g(nt, this).forEach((e) => {
278
279
  let n = e.id, i = e.bitrate;
279
280
  e.el.setAttribute("data-playing", String(n === t));
280
281
  let a = n === r;
281
- if (e.el.setAttribute("data-selected", String(a)), a ? (e.el.setAttribute("aria-selected", "true"), e.el.tabIndex = 0, m(nt, this, e.el)) : (e.el.removeAttribute("aria-selected"), e.el.tabIndex = -1), g($e, this)) {
282
- let t = i > g(Qe, this);
282
+ if (e.el.setAttribute("data-selected", String(a)), a ? (e.el.setAttribute("aria-selected", "true"), e.el.tabIndex = 0, m(tt, this, e.el)) : (e.el.removeAttribute("aria-selected"), e.el.tabIndex = -1), g(Qe, this)) {
283
+ let t = i > g(Ze, this);
283
284
  e.el.setAttribute("data-capped", String(t));
284
285
  } else e.el.removeAttribute("data-capped");
285
286
  });
286
287
  }
287
- function _t() {
288
- let e = [...g(rt, this)].sort((e, t) => t.bitrate - e.bitrate);
289
- return e.find((e) => e.bitrate <= g(Qe, this)) || e[e.length - 1];
288
+ function gt() {
289
+ let e = [...g(nt, this)].sort((e, t) => t.bitrate - e.bitrate);
290
+ return e.find((e) => e.bitrate <= g(Ze, this)) || e[e.length - 1];
290
291
  }
291
- function vt(e) {
292
+ function _t(e) {
292
293
  this.dispatchEvent(new Event("change", {
293
294
  bubbles: !0,
294
295
  composed: !0
295
- })), this.dispatchEvent(new CustomEvent(S.SET_RENDITION, {
296
+ })), this.dispatchEvent(new CustomEvent(C.SET_RENDITION, {
296
297
  bubbles: !0,
297
298
  composed: !0,
298
299
  detail: e
299
300
  }));
300
301
  }
301
- function yt(e) {
302
+ function vt(e) {
302
303
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
303
304
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
304
305
  var a;
305
- (a = g(at, this)) == null || a.hide();
306
+ (a = g(it, this)) == null || a.hide();
306
307
  } else if (t === "Enter" || t === " ") {
307
308
  var o;
308
- (o = h(T, this, xt).call(this)) == null || (o = o.el) == null || o.click();
309
- } else h(T, this, bt).call(this, e);
309
+ (o = h(E, this, bt).call(this)) == null || (o = o.el) == null || o.click();
310
+ } else h(E, this, yt).call(this, e);
310
311
  }
311
- function bt(e) {
312
+ function yt(e) {
312
313
  var t;
313
- let { key: n } = e, r = g(rt, this), i = (t = h(T, this, xt).call(this)) == null ? r[0] : t;
314
+ let { key: n } = e, r = g(nt, this), i = (t = h(E, this, bt).call(this)) == null ? r[0] : t;
314
315
  if (!i) return;
315
316
  let a = r.indexOf(i), o = Math.max(0, a);
316
317
  n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
317
318
  let s = r[o];
318
- s && (h(T, this, St).call(this, s.id), s.el.focus());
319
+ s && (h(E, this, xt).call(this, s.id), s.el.focus());
319
320
  }
320
- function xt() {
321
- return g(rt, this).find((e) => e.el.tabIndex === 0);
321
+ function bt() {
322
+ return g(nt, this).find((e) => e.el.tabIndex === 0);
322
323
  }
323
- function St(e) {
324
- for (let t of g(rt, this)) t.el.tabIndex = t.id === e ? 0 : -1;
324
+ function xt(e) {
325
+ for (let t of g(nt, this)) t.el.tabIndex = t.id === e ? 0 : -1;
325
326
  }
326
- e(st, "observedAttributes", [
327
- _.RENDITION_LEVELS,
328
- _.MAX_VIDEO_BITRATE,
329
- _.ABR_ENABLED,
330
- _.RENDITION_LEVEL,
331
- _.SIZE_BASED_RESOLUTION_CAP_ENABLED
327
+ e(ot, "observedAttributes", [
328
+ v.RENDITION_LEVELS,
329
+ v.MAX_VIDEO_BITRATE,
330
+ v.ABR_ENABLED,
331
+ v.RENDITION_LEVEL,
332
+ v.SIZE_BASED_RESOLUTION_CAP_ENABLED
332
333
  ]);
333
334
  //#endregion
334
335
  //#region ../../libs/player-next/src/components/AirPlayButton.ts
335
- var Ct, wt = document.createElement("template"), Tt = "\n <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=\"M18 18a3 3 0 0 0 3 -3v-8a3 3 0 0 0 -3 -3h-12a3 3 0 0 0 -3 3v8a3 3 0 0 0 3 3\" /><path d=\"M9 20h6l-3 -5z\" /></svg>\n";
336
- wt.innerHTML = `
336
+ var St, Ct = document.createElement("template"), wt = "\n <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=\"M18 18a3 3 0 0 0 3 -3v-8a3 3 0 0 0 -3 -3h-12a3 3 0 0 0 -3 3v8a3 3 0 0 0 3 3\" /><path d=\"M9 20h6l-3 -5z\" /></svg>\n";
337
+ Ct.innerHTML = `
337
338
  <style>
338
339
  :host {
339
340
  display: var(--airplay-button-display);
340
341
  }
341
342
 
342
- :host(:not([${_.AIRPLAY_AVAILABLE}])) {
343
+ :host(:not([${v.AIRPLAY_AVAILABLE}])) {
343
344
  display: none !important;
344
345
  }
345
346
 
346
- :host([${_.IS_AIRPLAYING}]) slot[name="exit"] {
347
+ :host([${v.IS_AIRPLAYING}]) slot[name="exit"] {
347
348
  display: none !important;
348
349
  }
349
350
 
350
- :host(:not([${_.IS_AIRPLAYING}])) slot[name="enter"] {
351
+ :host(:not([${v.IS_AIRPLAYING}])) slot[name="enter"] {
351
352
  display: none !important;
352
353
  }
353
354
  </style>
354
355
 
355
356
  <slot name="icon">
356
- <slot name="enter">${Tt}</slot>
357
- <slot name="exit">${Tt}</slot>
357
+ <slot name="enter">${wt}</slot>
358
+ <slot name="exit">${wt}</slot>
358
359
  </slot>
359
360
  `;
360
- var Et = /* @__PURE__ */ new WeakSet(), Dt = class extends y {
361
+ var Tt = /* @__PURE__ */ new WeakSet(), Et = class extends b {
361
362
  constructor() {
362
363
  var e;
363
- super(), C(this, Et), (e = this.shadowRoot) == null || e.appendChild(wt.content.cloneNode(!0));
364
+ super(), w(this, Tt), (e = this.shadowRoot) == null || e.appendChild(Ct.content.cloneNode(!0));
364
365
  }
365
366
  connectedCallback() {
366
- super.connectedCallback(), h(Et, this, Ot).call(this);
367
+ super.connectedCallback(), h(Tt, this, Dt).call(this);
367
368
  }
368
369
  disconnectedCallback() {
369
370
  super.disconnectedCallback();
370
371
  }
371
372
  attributeChangedCallback(e, t, n) {
372
- super.attributeChangedCallback(e, t, n), e === _.IS_AIRPLAYING && h(Et, this, Ot).call(this);
373
+ super.attributeChangedCallback(e, t, n), e === v.IS_AIRPLAYING && h(Tt, this, Dt).call(this);
373
374
  }
374
375
  set isAirPlaying(e) {
375
- e ? this.setAttribute(_.IS_AIRPLAYING, "") : this.removeAttribute(_.IS_AIRPLAYING);
376
+ e ? this.setAttribute(v.IS_AIRPLAYING, "") : this.removeAttribute(v.IS_AIRPLAYING);
376
377
  }
377
378
  get isAirPlaying() {
378
- return this.hasAttribute(_.IS_AIRPLAYING);
379
+ return this.hasAttribute(v.IS_AIRPLAYING);
379
380
  }
380
381
  handleClick(e) {
381
- this.dispatchEvent(new CustomEvent(S.REQUEST_AIRPLAY, {
382
+ this.dispatchEvent(new CustomEvent(C.REQUEST_AIRPLAY, {
382
383
  bubbles: !0,
383
384
  composed: !0
384
385
  }));
385
386
  }
386
387
  };
387
- Ct = Dt;
388
- function Ot() {
388
+ St = Et;
389
+ function Dt() {
389
390
  this.setAttribute("aria-label", this.isAirPlaying ? "Stop AirPlay" : "AirPlay");
390
391
  }
391
- e(Dt, "observedAttributes", [
392
- ...b(Ct, "observedAttributes", Ct),
393
- _.AIRPLAY_AVAILABLE,
394
- _.IS_AIRPLAYING
392
+ e(Et, "observedAttributes", [
393
+ ...x(St, "observedAttributes", St),
394
+ v.AIRPLAY_AVAILABLE,
395
+ v.IS_AIRPLAYING
395
396
  ]);
396
397
  //#endregion
397
398
  //#region ../../libs/player-next/src/components/BufferingIcon.ts
398
- var kt = document.createElement("template");
399
- kt.innerHTML = `
399
+ var Ot = document.createElement("template");
400
+ Ot.innerHTML = `
400
401
  <style>
401
402
  :host {
402
403
  color: var(--fg-strong);
@@ -406,12 +407,12 @@ kt.innerHTML = `
406
407
  display: block;
407
408
  }
408
409
 
409
- :host(:not([${_.BUFFERING}])) {
410
+ :host(:not([${v.BUFFERING}])) {
410
411
  visibility: hidden !important;
411
412
  }
412
413
 
413
414
  /* Hidden SVG animations still restyle every frame. */
414
- :host(:not([${_.BUFFERING}])) svg * {
415
+ :host(:not([${v.BUFFERING}])) svg * {
415
416
  animation-play-state: paused;
416
417
  }
417
418
  </style>
@@ -453,24 +454,24 @@ kt.innerHTML = `
453
454
  </svg>
454
455
  </slot>
455
456
  `;
456
- var At = /* @__PURE__ */ new WeakMap(), jt = class extends HTMLElement {
457
+ var kt = /* @__PURE__ */ new WeakMap(), At = class extends HTMLElement {
457
458
  constructor() {
458
- super(), p(this, At, null), this.attachShadow({ mode: "open" }).appendChild(kt.content.cloneNode(!0));
459
+ super(), p(this, kt, null), this.attachShadow({ mode: "open" }).appendChild(Ot.content.cloneNode(!0));
459
460
  }
460
461
  connectedCallback() {
461
462
  var e;
462
- m(At, this, this.closest("vindral-controller")), (e = g(At, this)) == null || e.connectListener(this);
463
+ m(kt, this, this.closest("vindral-controller")), (e = g(kt, this)) == null || e.connectListener(this);
463
464
  }
464
465
  disconnectedCallback() {
465
466
  var e;
466
- (e = g(At, this)) == null || e.disconnectListener(this);
467
+ (e = g(kt, this)) == null || e.disconnectListener(this);
467
468
  }
468
469
  };
469
- e(jt, "observedAttributes", [_.BUFFERING]);
470
+ e(At, "observedAttributes", [v.BUFFERING]);
470
471
  //#endregion
471
472
  //#region ../../libs/player-next/src/components/BufferingOverlay.ts
472
- var Mt = document.createElement("template");
473
- Mt.innerHTML = `
473
+ var jt = document.createElement("template");
474
+ jt.innerHTML = `
474
475
  <style>
475
476
  :host {
476
477
  display: var(--buffering-overlay-display);
@@ -519,37 +520,37 @@ Mt.innerHTML = `
519
520
  }
520
521
  }
521
522
 
522
- :host(:not([${_.BUFFERING}])) {
523
+ :host(:not([${v.BUFFERING}])) {
523
524
  transition-delay: 0s;
524
525
  opacity: 0 !important;
525
526
  }
526
527
 
527
528
  /* A running animation keeps the compositor ticking every frame even at opacity 0. */
528
- :host(:not([${_.BUFFERING}])) #buffering-indicator {
529
+ :host(:not([${v.BUFFERING}])) #buffering-indicator {
529
530
  animation-play-state: paused;
530
531
  }
531
532
  </style>
532
533
 
533
534
  <div id="buffering-indicator"></div>
534
535
  `;
535
- var Nt = /* @__PURE__ */ new WeakMap(), Pt = class extends HTMLElement {
536
+ var Mt = /* @__PURE__ */ new WeakMap(), Nt = class extends HTMLElement {
536
537
  constructor() {
537
- super(), p(this, Nt, null), this.attachShadow({ mode: "open" }).appendChild(Mt.content.cloneNode(!0));
538
+ super(), p(this, Mt, null), this.attachShadow({ mode: "open" }).appendChild(jt.content.cloneNode(!0));
538
539
  }
539
540
  connectedCallback() {
540
541
  var e;
541
- m(Nt, this, this.closest("vindral-controller")), (e = g(Nt, this)) == null || e.connectListener(this);
542
+ m(Mt, this, this.closest("vindral-controller")), (e = g(Mt, this)) == null || e.connectListener(this);
542
543
  }
543
544
  disconnectedCallback() {
544
545
  var e;
545
- (e = g(Nt, this)) == null || e.disconnectListener(this);
546
+ (e = g(Mt, this)) == null || e.disconnectListener(this);
546
547
  }
547
548
  };
548
- e(Pt, "observedAttributes", [_.BUFFERING]);
549
+ e(Nt, "observedAttributes", [v.BUFFERING]);
549
550
  //#endregion
550
551
  //#region ../../libs/player-next/src/components/CastButton.ts
551
- var Ft, It = document.createElement("template");
552
- It.innerHTML = `
552
+ var Pt, Ft = document.createElement("template");
553
+ Ft.innerHTML = `
553
554
  <style>
554
555
  :host {
555
556
  display: var(--cast-button-display);
@@ -568,38 +569,38 @@ It.innerHTML = `
568
569
  transform: scale(0.9);
569
570
  }
570
571
 
571
- :host(:not([${_.CAST_AVAILABLE}])) {
572
+ :host(:not([${v.CAST_AVAILABLE}])) {
572
573
  display: none !important;
573
574
  }
574
575
  </style>
575
576
  `;
576
- var Lt = /* @__PURE__ */ new WeakSet(), Rt = class extends y {
577
+ var It = /* @__PURE__ */ new WeakSet(), Lt = class extends b {
577
578
  constructor() {
578
579
  var e;
579
- super(), C(this, Lt), (e = this.shadowRoot) == null || e.appendChild(It.content.cloneNode(!0));
580
+ super(), w(this, It), (e = this.shadowRoot) == null || e.appendChild(Ft.content.cloneNode(!0));
580
581
  }
581
582
  connectedCallback() {
582
- super.connectedCallback(), h(Lt, this, zt).call(this);
583
+ super.connectedCallback(), h(It, this, Rt).call(this);
583
584
  }
584
585
  disconnectedCallback() {
585
586
  super.disconnectedCallback();
586
587
  }
587
588
  attributeChangedCallback(e, t, n) {
588
- super.attributeChangedCallback(e, t, n), e === _.CAST_AVAILABLE && h(Lt, this, Bt).call(this), e === _.IS_CASTING && h(Lt, this, zt).call(this);
589
+ super.attributeChangedCallback(e, t, n), e === v.CAST_AVAILABLE && h(It, this, zt).call(this), e === v.IS_CASTING && h(It, this, Rt).call(this);
589
590
  }
590
591
  set isCasting(e) {
591
- e ? this.setAttribute(_.IS_CASTING, "") : this.removeAttribute(_.IS_CASTING);
592
+ e ? this.setAttribute(v.IS_CASTING, "") : this.removeAttribute(v.IS_CASTING);
592
593
  }
593
594
  get isCasting() {
594
- return this.hasAttribute(_.IS_CASTING);
595
+ return this.hasAttribute(v.IS_CASTING);
595
596
  }
596
597
  handleClick(e) {}
597
598
  };
598
- Ft = Rt;
599
- function zt() {
599
+ Pt = Lt;
600
+ function Rt() {
600
601
  this.setAttribute("aria-label", this.isCasting ? "Stop casting" : "Cast");
601
602
  }
602
- function Bt() {
603
+ function zt() {
603
604
  var e;
604
605
  if (!((e = this.shadowRoot) != null && e.querySelector("google-cast-launcher"))) {
605
606
  var t;
@@ -607,15 +608,15 @@ function Bt() {
607
608
  (t = this.shadowRoot) == null || t.appendChild(e);
608
609
  }
609
610
  }
610
- e(Rt, "observedAttributes", [
611
- ...b(Ft, "observedAttributes", Ft),
612
- _.CAST_AVAILABLE,
613
- _.IS_CASTING
611
+ e(Lt, "observedAttributes", [
612
+ ...x(Pt, "observedAttributes", Pt),
613
+ v.CAST_AVAILABLE,
614
+ v.IS_CASTING
614
615
  ]);
615
616
  //#endregion
616
617
  //#region ../../libs/player-next/src/components/CastOverlay.ts
617
- var Vt = document.createElement("template");
618
- Vt.innerHTML = `
618
+ var Bt = document.createElement("template");
619
+ Bt.innerHTML = `
619
620
  <style>
620
621
  :host {
621
622
  position: absolute;
@@ -639,7 +640,7 @@ Vt.innerHTML = `
639
640
  }
640
641
  }
641
642
 
642
- :host(:not([${_.IS_CASTING}])) {
643
+ :host(:not([${v.IS_CASTING}])) {
643
644
  display: none;
644
645
  }
645
646
 
@@ -650,43 +651,43 @@ Vt.innerHTML = `
650
651
  </style>
651
652
  <span id="text"></span>
652
653
  `;
653
- var Ht = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Wt = class extends HTMLElement {
654
+ var Vt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Ut = class extends HTMLElement {
654
655
  constructor() {
655
- super(), p(this, Ht, null), p(this, Ut, null), this.attachShadow({ mode: "open" }).appendChild(Vt.content.cloneNode(!0));
656
+ super(), p(this, Vt, null), p(this, Ht, null), this.attachShadow({ mode: "open" }).appendChild(Bt.content.cloneNode(!0));
656
657
  }
657
658
  connectedCallback() {
658
659
  var e, t;
659
- m(Ht, this, this.closest("vindral-controller")), (e = g(Ht, this)) == null || e.connectListener(this), m(Ut, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#text"));
660
+ m(Vt, this, this.closest("vindral-controller")), (e = g(Vt, this)) == null || e.connectListener(this), m(Ht, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#text"));
660
661
  }
661
662
  disconnectedCallback() {
662
663
  var e;
663
- (e = g(Ht, this)) == null || e.disconnectListener(this);
664
+ (e = g(Vt, this)) == null || e.disconnectListener(this);
664
665
  }
665
666
  attributeChangedCallback(e, t, n) {
666
- t === n || !g(Ut, this) || e === "cast-receiver-name" && typeof n == "string" && (g(Ut, this).innerText = `Casting to ${n || "device"}`);
667
+ t === n || !g(Ht, this) || e === "cast-receiver-name" && typeof n == "string" && (g(Ht, this).innerText = `Casting to ${n || "device"}`);
667
668
  }
668
669
  };
669
- e(Wt, "observedAttributes", [_.IS_CASTING, _.CAST_RECEIVER_NAME]);
670
+ e(Ut, "observedAttributes", [v.IS_CASTING, v.CAST_RECEIVER_NAME]);
670
671
  //#endregion
671
672
  //#region ../../libs/player-next/src/utils/elementUtils.ts
672
- function Gt(e = document) {
673
+ function Wt(e = document) {
673
674
  let t = e == null ? void 0 : e.activeElement;
674
675
  if (!t) return null;
675
676
  if (t.shadowRoot) {
676
- let e = Gt(t.shadowRoot);
677
+ let e = Wt(t.shadowRoot);
677
678
  return e == null ? t : e;
678
679
  }
679
680
  return t;
680
681
  }
681
682
  //#endregion
682
683
  //#region ../../libs/player-next/src/components/ChannelGridItem.ts
683
- var Kt = document.createElement("template");
684
- Kt.innerHTML = "\n <style>\n :host {\n position: relative;\n aspect-ratio: 16 / 9;\n object-fit: cover;\n cursor: pointer;\n border-radius: 6px;\n box-sizing: border-box !important;\n\n background-size: cover;\n background-position: center;\n\n transition-property: background-image;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 200ms;\n\n background-color: rgba(0, 0, 0, 0.5);\n background-blend-mode: multiply;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([aria-selected=\"true\"]) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n background-color: rgba(0, 0, 0, 0);\n }\n\n :host(:focus),\n :host(:focus-visible) {\n outline: none;\n }\n\n :host([offline]) {\n display: var(--grid-item-offline-display);\n background-image: repeating-linear-gradient(-45deg, #3d3d3d 0, #3d3d3d 4px, #1c2024 4px, #1c2024 8px) !important;\n pointer-events: none;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(255, 255, 255, 0);\n transition: background 0.2s ease;\n }\n\n :host(:hover)::before {\n background: rgba(255, 255, 255, 0.1);\n }\n\n .channel-title {\n position: absolute;\n bottom: var(--padding-2);\n left: var(--padding-2);\n padding: var(--padding-1) var(--padding-2);\n color: white;\n font-size: 15px;\n font-weight: 500;\n text-overflow: ellipsis;\n border-radius: 4px;\n\n @container (max-width: 480px) {\n font-size: 13px;\n }\n }\n </style>\n <slot></slot>\n";
685
- var qt = /* @__PURE__ */ new WeakMap(), Jt = class extends HTMLElement {
684
+ var Gt = document.createElement("template");
685
+ Gt.innerHTML = "\n <style>\n :host {\n position: relative;\n aspect-ratio: 16 / 9;\n object-fit: cover;\n cursor: pointer;\n border-radius: 6px;\n box-sizing: border-box !important;\n\n background-size: cover;\n background-position: center;\n\n transition-property: background-image;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 200ms;\n\n background-color: rgba(0, 0, 0, 0.5);\n background-blend-mode: multiply;\n -webkit-tap-highlight-color: transparent;\n }\n\n :host([aria-selected=\"true\"]) {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n background-color: rgba(0, 0, 0, 0);\n }\n\n :host(:focus),\n :host(:focus-visible) {\n outline: none;\n }\n\n :host([offline]) {\n display: var(--grid-item-offline-display);\n background-image: repeating-linear-gradient(-45deg, #3d3d3d 0, #3d3d3d 4px, #1c2024 4px, #1c2024 8px) !important;\n pointer-events: none;\n }\n\n :host::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(255, 255, 255, 0);\n transition: background 0.2s ease;\n }\n\n :host(:hover)::before {\n background: rgba(255, 255, 255, 0.1);\n }\n\n .channel-title {\n position: absolute;\n bottom: var(--padding-2);\n left: var(--padding-2);\n padding: var(--padding-1) var(--padding-2);\n color: white;\n font-size: 15px;\n font-weight: 500;\n text-overflow: ellipsis;\n border-radius: 4px;\n\n @container (max-width: 480px) {\n font-size: 13px;\n }\n }\n </style>\n <slot></slot>\n";
686
+ var Kt = /* @__PURE__ */ new WeakMap(), qt = class extends HTMLElement {
686
687
  constructor() {
687
- super(), p(this, qt, void 0), e(this, "lastThumbnailUpdate", void 0);
688
+ super(), p(this, Kt, void 0), e(this, "lastThumbnailUpdate", void 0);
688
689
  let t = this.attachShadow({ mode: "open" });
689
- m(qt, this, document.createElement("span")), g(qt, this).className = "channel-title", t.appendChild(g(qt, this)), t.appendChild(Kt.content.cloneNode(!0));
690
+ m(Kt, this, document.createElement("span")), g(Kt, this).className = "channel-title", t.appendChild(g(Kt, this)), t.appendChild(Gt.content.cloneNode(!0));
690
691
  }
691
692
  attributeChangedCallback(e, t, n) {
692
693
  if (t !== n) switch (e) {
@@ -694,7 +695,7 @@ var qt = /* @__PURE__ */ new WeakMap(), Jt = class extends HTMLElement {
694
695
  this.updateThumbnail();
695
696
  break;
696
697
  case "title":
697
- g(qt, this).textContent = n;
698
+ g(Kt, this).textContent = n;
698
699
  break;
699
700
  }
700
701
  }
@@ -705,7 +706,7 @@ var qt = /* @__PURE__ */ new WeakMap(), Jt = class extends HTMLElement {
705
706
  a && r.searchParams.set("auth.token", a), r.searchParams.set("t", Date.now().toString()), i.src = r.toString(), i.onload = () => this.style.backgroundImage = `url(${r.toString()})`;
706
707
  }
707
708
  };
708
- e(Jt, "observedAttributes", [
709
+ e(qt, "observedAttributes", [
709
710
  "url",
710
711
  "title",
711
712
  "offline",
@@ -714,41 +715,41 @@ e(Jt, "observedAttributes", [
714
715
  ]);
715
716
  //#endregion
716
717
  //#region ../../libs/player-next/src/components/ChannelGrid.ts
717
- var Yt, Xt = document.createElement("template");
718
- Xt.innerHTML = "\n <style>\n :host {\n cursor: default;\n display: flex;\n flex-direction: column;\n box-sizing: border-box !important;\n border-radius: 4px;\n background-color: var(--bg-subtle);\n padding: var(--padding-2) !important;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n z-index: 5;\n width: 100%;\n max-height: 75%;\n\n @container (width < 768px) {\n padding: var(--padding-1) !important;\n }\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .wrapper {\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n height: 100%;\n }\n\n .wrapper::-webkit-scrollbar {\n display: none;\n }\n\n slot#grid {\n display: grid;\n gap: var(--padding-2);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n\n @container (width < 768px) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: var(--padding-1);\n }\n @container (width < 1024px) and (width >= 768px) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n @container (width >= 1024px) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n /* Smart TV */\n @media (width < 1024px) and (width >= 768px) and (-webkit-min-device-pixel-ratio: 2) {\n slot#grid {\n grid-template-columns: repeat(4, minmax(0, 1fr)) !important;\n }\n }\n\n :host([mode=\"list\"]) slot#grid {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n }\n </style>\n\n <div class=\"wrapper\">\n <slot name=\"grid\" id=\"grid\"></slot>\n </div>\n";
719
- var Zt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), ln = class extends HTMLElement {
718
+ var Jt, Yt = document.createElement("template");
719
+ Yt.innerHTML = "\n <style>\n :host {\n cursor: default;\n display: flex;\n flex-direction: column;\n box-sizing: border-box !important;\n border-radius: 4px;\n background-color: var(--bg-subtle);\n padding: var(--padding-2) !important;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n z-index: 5;\n width: 100%;\n max-height: 75%;\n\n @container (width < 768px) {\n padding: var(--padding-1) !important;\n }\n }\n\n :host([hidden]) {\n display: none;\n }\n\n .wrapper {\n overflow: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n height: 100%;\n }\n\n .wrapper::-webkit-scrollbar {\n display: none;\n }\n\n slot#grid {\n display: grid;\n gap: var(--padding-2);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n\n @container (width < 768px) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: var(--padding-1);\n }\n @container (width < 1024px) and (width >= 768px) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n @container (width >= 1024px) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n /* Smart TV */\n @media (width < 1024px) and (width >= 768px) and (-webkit-min-device-pixel-ratio: 2) {\n slot#grid {\n grid-template-columns: repeat(4, minmax(0, 1fr)) !important;\n }\n }\n\n :host([mode=\"list\"]) slot#grid {\n grid-template-columns: repeat(1, minmax(0, 1fr));\n }\n </style>\n\n <div class=\"wrapper\">\n <slot name=\"grid\" id=\"grid\"></slot>\n </div>\n";
720
+ var Xt = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakSet(), cn = class extends HTMLElement {
720
721
  constructor() {
721
- super(), C(this, D), p(this, Zt, null), p(this, Qt, null), p(this, $t, []), p(this, en, []), p(this, E, void 0), p(this, tn, void 0), p(this, nn, void 0), p(this, rn, void 0), p(this, an, !1), p(this, on, !1), p(this, sn, void 0), p(this, cn, void 0), e(this, "handleEvent", (e) => {
722
+ super(), w(this, O), p(this, Xt, null), p(this, Zt, null), p(this, Qt, []), p(this, $t, []), p(this, D, void 0), p(this, en, void 0), p(this, tn, void 0), p(this, nn, void 0), p(this, rn, !1), p(this, an, !1), p(this, on, void 0), p(this, sn, void 0), e(this, "handleEvent", (e) => {
722
723
  switch (e.type) {
723
724
  case "keydown":
724
- h(D, this, Sn).call(this, e);
725
+ h(O, this, xn).call(this, e);
725
726
  break;
726
727
  }
727
- }), this.attachShadow({ mode: "open" }).appendChild(Xt.content.cloneNode(!0));
728
+ }), this.attachShadow({ mode: "open" }).appendChild(Yt.content.cloneNode(!0));
728
729
  }
729
730
  connectedCallback() {
730
731
  var e, t, n;
731
- this.tabIndex = -1, m(Qt, this, this.closest("vindral-controller")), (e = g(Qt, this)) == null || e.connectListener(this), h(D, this, un).call(this), (t = g(Zt, this)) == null || t.observe((n = this.shadowRoot) == null ? void 0 : n.querySelector(".wrapper")), h(D, this, gn).call(this), m(nn, this, window.setInterval(() => {
732
- h(D, this, bn).call(this);
732
+ this.tabIndex = -1, m(Zt, this, this.closest("vindral-controller")), (e = g(Zt, this)) == null || e.connectListener(this), h(O, this, ln).call(this), (t = g(Xt, this)) == null || t.observe((n = this.shadowRoot) == null ? void 0 : n.querySelector(".wrapper")), h(O, this, hn).call(this), m(tn, this, window.setInterval(() => {
733
+ h(O, this, yn).call(this);
733
734
  }, 1e4));
734
735
  }
735
736
  disconnectedCallback() {
736
737
  var e, t;
737
- clearInterval(g(nn, this)), h(D, this, An).call(this), this.removeEventListener("keydown", this), (e = g(Zt, this)) == null || e.disconnect(), (t = g(Qt, this)) == null || t.disconnectListener(this);
738
+ clearInterval(g(tn, this)), h(O, this, kn).call(this), this.removeEventListener("keydown", this), (e = g(Xt, this)) == null || e.disconnect(), (t = g(Zt, this)) == null || t.disconnectListener(this);
738
739
  }
739
740
  attributeChangedCallback(e, t, n) {
740
741
  if (t !== n) switch (e) {
741
- case _.CHANNEL_ID:
742
- h(D, this, yn).call(this, n);
742
+ case v.CHANNEL_ID:
743
+ h(O, this, vn).call(this, n);
743
744
  break;
744
- case _.CHANNELS:
745
- m($t, this, JSON.parse(n)), h(D, this, gn).call(this);
745
+ case v.CHANNELS:
746
+ m(Qt, this, JSON.parse(n)), h(O, this, hn).call(this);
746
747
  break;
747
748
  case "authentication-token":
748
- m(tn, this, n);
749
+ m(en, this, n);
749
750
  break;
750
751
  case "hidden":
751
- n === null && m(on, this, !0);
752
+ n === null && m(an, this, !0);
752
753
  break;
753
754
  }
754
755
  }
@@ -767,130 +768,130 @@ var Zt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), $t =
767
768
  ];
768
769
  }
769
770
  focus() {
770
- let e = Gt();
771
- e && e !== document.body && !this.matches(":focus-within") && m(rn, this, e), h(D, this, En).call(this);
771
+ let e = Wt();
772
+ e && e !== document.body && !this.matches(":focus-within") && m(nn, this, e), h(O, this, Tn).call(this);
772
773
  }
773
774
  };
774
- Yt = ln;
775
- function un() {
776
- m(Zt, this, new IntersectionObserver((e) => {
775
+ Jt = cn;
776
+ function ln() {
777
+ m(Xt, this, new IntersectionObserver((e) => {
777
778
  e.forEach((e) => {
778
779
  let { target: t, isIntersecting: n } = e;
779
- t instanceof Jt ? h(D, this, hn).call(this, t, n) : h(D, this, dn).call(this, n);
780
+ t instanceof qt ? h(O, this, mn).call(this, t, n) : h(O, this, un).call(this, n);
780
781
  });
781
- }, { root: g(Qt, this) }));
782
+ }, { root: g(Zt, this) }));
782
783
  }
783
- function dn(e) {
784
- e ? h(D, this, fn).call(this) : h(D, this, pn).call(this), m(on, this, !1);
784
+ function un(e) {
785
+ e ? h(O, this, dn).call(this) : h(O, this, fn).call(this), m(an, this, !1);
785
786
  }
786
- function fn() {
787
- m(an, this, !0), this.dispatchEvent(new CustomEvent(S.CHANNEL_GRID_OPENED, {
787
+ function dn() {
788
+ m(rn, this, !0), this.dispatchEvent(new CustomEvent(C.CHANNEL_GRID_OPENED, {
788
789
  bubbles: !0,
789
790
  composed: !0
790
- })), h(D, this, mn).call(this, h(D, this, On).call(this, this.parentElement) || g(on, this)), this.addEventListener("keydown", this), g(E, this) && (g(E, this).tabIndex = 0);
791
+ })), h(O, this, pn).call(this, h(O, this, Dn).call(this, this.parentElement) || g(an, this)), this.addEventListener("keydown", this), g(D, this) && (g(D, this).tabIndex = 0);
791
792
  }
792
- function pn() {
793
- h(D, this, An).call(this), g(E, this) && (g(E, this).tabIndex = -1), this.dispatchEvent(new CustomEvent(S.CHANNEL_GRID_CLOSED, {
793
+ function fn() {
794
+ h(O, this, kn).call(this), g(D, this) && (g(D, this).tabIndex = -1), this.dispatchEvent(new CustomEvent(C.CHANNEL_GRID_CLOSED, {
794
795
  bubbles: !0,
795
796
  composed: !0
796
- })), g(an, this) && h(D, this, Dn).call(this), m(an, this, !1), this.removeEventListener("keydown", this);
797
+ })), g(rn, this) && h(O, this, En).call(this), m(rn, this, !1), this.removeEventListener("keydown", this);
797
798
  }
798
- function mn(e) {
799
+ function pn(e) {
799
800
  var t;
800
- h(D, this, An).call(this), m(cn, this, () => {
801
- clearTimeout(g(sn, this)), m(sn, this, window.setTimeout(() => {
802
- h(D, this, kn).call(this) && this.focus(), h(D, this, An).call(this);
801
+ h(O, this, kn).call(this), m(sn, this, () => {
802
+ clearTimeout(g(on, this)), m(on, this, window.setTimeout(() => {
803
+ h(O, this, On).call(this) && this.focus(), h(O, this, kn).call(this);
803
804
  }, 100));
804
- }), (t = this.parentElement) == null || t.addEventListener("scroll", g(cn, this)), e && g(cn, this).call(this);
805
+ }), (t = this.parentElement) == null || t.addEventListener("scroll", g(sn, this)), e && g(sn, this).call(this);
805
806
  }
806
- function hn(e, t) {
807
+ function mn(e, t) {
807
808
  t ? (e.setAttribute("visible", ""), (!e.lastThumbnailUpdate || Date.now() - e.lastThumbnailUpdate >= 1e4) && (e.updateThumbnail(), e.lastThumbnailUpdate = Date.now())) : e.removeAttribute("visible");
808
809
  }
809
- function gn() {
810
+ function hn() {
810
811
  var e;
811
- let t = this.matches(":focus-within") ? Gt() : null, n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot[name=grid]"), r = new Map(g(en, this).map((e) => [e.id, e])), i = this.getAttribute("channel-id");
812
- m(en, this, g($t, this).map((e) => {
812
+ let t = this.matches(":focus-within") ? Wt() : null, n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot[name=grid]"), r = new Map(g($t, this).map((e) => [e.id, e])), i = this.getAttribute("channel-id");
813
+ m($t, this, g(Qt, this).map((e) => {
813
814
  var t;
814
815
  let a = r.get(e.channelId);
815
- if (a) return h(D, this, _n).call(this, a.element, e), a;
816
- let o = h(D, this, vn).call(this, e, i);
817
- return (t = g(Zt, this)) == null || t.observe(o.element), n.contains(o.element) || n.appendChild(o.element), o;
816
+ if (a) return h(O, this, gn).call(this, a.element, e), a;
817
+ let o = h(O, this, _n).call(this, e, i);
818
+ return (t = g(Xt, this)) == null || t.observe(o.element), n.contains(o.element) || n.appendChild(o.element), o;
818
819
  })), r.forEach((e, t) => {
819
- if (!g($t, this).some((e) => e.channelId === t)) {
820
+ if (!g(Qt, this).some((e) => e.channelId === t)) {
820
821
  var n;
821
- (n = g(Zt, this)) == null || n.unobserve(e.element), e.element.remove();
822
+ (n = g(Xt, this)) == null || n.unobserve(e.element), e.element.remove();
822
823
  }
823
- }), g(en, this).sort((e, t) => e.element.hasAttribute("offline") && !t.element.hasAttribute("offline") ? 1 : -1).forEach((e) => {
824
+ }), g($t, this).sort((e, t) => e.element.hasAttribute("offline") && !t.element.hasAttribute("offline") ? 1 : -1).forEach((e) => {
824
825
  n.contains(e.element) || n.appendChild(e.element);
825
- }), t && h(D, this, kn).call(this) && (m(E, this, t instanceof Jt ? t : void 0), h(D, this, En).call(this));
826
+ }), t && h(O, this, On).call(this) && (m(D, this, t instanceof qt ? t : void 0), h(O, this, Tn).call(this));
826
827
  }
827
- function _n(e, t) {
828
+ function gn(e, t) {
828
829
  t.isLive ? e.removeAttribute("offline") : e.setAttribute("offline", ""), e.setAttribute("url", t.thumbnailUrls[0] || ""), e.setAttribute("title", t.name);
829
830
  }
830
- function vn(e, t) {
831
+ function _n(e, t) {
831
832
  let n = document.createElement("vindral-channel-grid-item");
832
- return n.setAttribute("url", e.thumbnailUrls[0] || ""), n.setAttribute("title", e.name), g(tn, this) && n.setAttribute("authentication-token", g(tn, this)), e.isLive || n.setAttribute("offline", ""), e.channelId === t && (n.setAttribute("aria-selected", "true"), m(E, this, n)), n.tabIndex = -1, n.onclick = () => h(D, this, xn).call(this, e), {
833
+ return n.setAttribute("url", e.thumbnailUrls[0] || ""), n.setAttribute("title", e.name), g(en, this) && n.setAttribute("authentication-token", g(en, this)), e.isLive || n.setAttribute("offline", ""), e.channelId === t && (n.setAttribute("aria-selected", "true"), m(D, this, n)), n.tabIndex = -1, n.onclick = () => h(O, this, bn).call(this, e), {
833
834
  element: n,
834
835
  thumbnail: e.thumbnailUrls[0] || "",
835
836
  id: e.channelId
836
837
  };
837
838
  }
838
- function yn(e) {
839
- g(en, this).forEach((t) => {
840
- t.id === e ? (t.element.setAttribute("aria-selected", "true"), t.element.tabIndex = 0, m(E, this, t.element)) : (t.element.tabIndex = -1, t.element.setAttribute("aria-selected", "false"));
839
+ function vn(e) {
840
+ g($t, this).forEach((t) => {
841
+ t.id === e ? (t.element.setAttribute("aria-selected", "true"), t.element.tabIndex = 0, m(D, this, t.element)) : (t.element.tabIndex = -1, t.element.setAttribute("aria-selected", "false"));
841
842
  });
842
843
  }
843
- function bn() {
844
- this.hasAttribute("hidden") || g(en, this).forEach((e) => e.element.updateThumbnail());
844
+ function yn() {
845
+ this.hasAttribute("hidden") || g($t, this).forEach((e) => e.element.updateThumbnail());
845
846
  }
846
- function xn(e) {
847
+ function bn(e) {
847
848
  var t;
848
- h(D, this, Mn).call(this), (t = g(Qt, this)) == null || t.setAttribute("channel-id", e.channelId);
849
+ h(O, this, jn).call(this), (t = g(Zt, this)) == null || t.setAttribute("channel-id", e.channelId);
849
850
  }
850
- function Sn(e) {
851
+ function xn(e) {
851
852
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
852
853
  if (!(n || r || i) && this.keysUsed.includes(t)) {
853
- if ((t === "Tab" || t === "Escape") && !h(D, this, jn).call(this)) {
854
- h(D, this, An).call(this);
854
+ if ((t === "Tab" || t === "Escape") && !h(O, this, An).call(this)) {
855
+ h(O, this, kn).call(this);
855
856
  return;
856
857
  }
857
- if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") h(D, this, Mn).call(this);
858
+ if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") h(O, this, jn).call(this);
858
859
  else if (t === "Enter" || t === " ") {
859
860
  var a;
860
- (a = g(E, this)) == null || a.click();
861
- } else h(D, this, wn).call(this, e);
861
+ (a = g(D, this)) == null || a.click();
862
+ } else h(O, this, Cn).call(this, e);
862
863
  }
863
864
  }
864
- function Cn() {
865
+ function Sn() {
865
866
  var e, t;
866
867
  let n = (e = this.shadowRoot) == null ? void 0 : e.querySelector("slot[name=grid]");
867
868
  return Array.from((t = n == null ? void 0 : n.children) == null ? [] : t).flatMap((e) => {
868
- let t = g(en, this).find((t) => t.element === e);
869
+ let t = g($t, this).find((t) => t.element === e);
869
870
  return !t || e.hasAttribute("offline") || e.getBoundingClientRect().width <= 0 ? [] : [t];
870
871
  });
871
872
  }
872
- function wn(e) {
873
+ function Cn(e) {
873
874
  let { key: t } = e;
874
- if (!g(E, this)) {
875
- t === "ArrowUp" && h(D, this, Mn).call(this);
875
+ if (!g(D, this)) {
876
+ t === "ArrowUp" && h(O, this, jn).call(this);
876
877
  return;
877
878
  }
878
- let n = h(D, this, Cn).call(this), r = n.findIndex((e) => e.element === g(E, this)), i = g(E, this).getBoundingClientRect();
879
+ let n = h(O, this, Sn).call(this), r = n.findIndex((e) => e.element === g(D, this)), i = g(D, this).getBoundingClientRect();
879
880
  switch (t) {
880
881
  case "ArrowUp":
881
- if (r = h(D, this, Tn).call(this, n, i, -1, 0), r < 0) {
882
- h(D, this, Mn).call(this);
882
+ if (r = h(O, this, wn).call(this, n, i, -1, 0), r < 0) {
883
+ h(O, this, jn).call(this);
883
884
  return;
884
885
  }
885
886
  break;
886
887
  case "ArrowDown":
887
- r = h(D, this, Tn).call(this, n, i, 1, 0);
888
+ r = h(O, this, wn).call(this, n, i, 1, 0);
888
889
  break;
889
890
  case "ArrowLeft":
890
- r = h(D, this, Tn).call(this, n, i, 0, -1);
891
+ r = h(O, this, wn).call(this, n, i, 0, -1);
891
892
  break;
892
893
  case "ArrowRight":
893
- r = h(D, this, Tn).call(this, n, i, 0, 1);
894
+ r = h(O, this, wn).call(this, n, i, 0, 1);
894
895
  break;
895
896
  case "Home":
896
897
  r = 0;
@@ -900,9 +901,9 @@ function wn(e) {
900
901
  break;
901
902
  }
902
903
  let a = n[r];
903
- a && (m(E, this, a.element), h(D, this, En).call(this));
904
+ a && (m(D, this, a.element), h(O, this, Tn).call(this));
904
905
  }
905
- function Tn(e, t, n, r) {
906
+ function wn(e, t, n, r) {
906
907
  let i = -1, a = Infinity;
907
908
  return e.forEach((e, o) => {
908
909
  let s = e.element.getBoundingClientRect(), c = n === 0 || n < 0 && s.top < t.top || n > 0 && s.top > t.top, l = r === 0 || r < 0 && s.left < t.left || r > 0 && s.left > t.left;
@@ -912,60 +913,60 @@ function Tn(e, t, n, r) {
912
913
  }
913
914
  }), i;
914
915
  }
915
- function En() {
916
+ function Tn() {
916
917
  var e, t, n;
917
- let r = h(D, this, Cn).call(this);
918
- m(E, this, (e = (t = (n = r.find((e) => e.element === g(E, this))) == null ? r.find((e) => e.id === this.getAttribute("channel-id")) : n) == null ? r[0] : t) == null ? void 0 : e.element), g(en, this).forEach(({ element: e }) => {
919
- let t = e === g(E, this);
920
- e.setAttribute("aria-selected", String(t)), e.tabIndex = g(an, this) && t ? 0 : -1;
921
- }), g(E, this) ? g(E, this).focus() : b(Yt.prototype, "focus", this, 2)([{ preventScroll: !0 }]);
918
+ let r = h(O, this, Sn).call(this);
919
+ m(D, this, (e = (t = (n = r.find((e) => e.element === g(D, this))) == null ? r.find((e) => e.id === this.getAttribute("channel-id")) : n) == null ? r[0] : t) == null ? void 0 : e.element), g($t, this).forEach(({ element: e }) => {
920
+ let t = e === g(D, this);
921
+ e.setAttribute("aria-selected", String(t)), e.tabIndex = g(rn, this) && t ? 0 : -1;
922
+ }), g(D, this) ? g(D, this).focus() : x(Jt.prototype, "focus", this, 2)([{ preventScroll: !0 }]);
922
923
  }
923
- function Dn() {
924
+ function En() {
924
925
  var e, t;
925
926
  if (!(document.activeElement !== document.body && !this.matches(":focus-within"))) {
926
- if ((e = g(rn, this)) != null && e.isConnected) {
927
- g(rn, this).focus({ preventScroll: !0 });
927
+ if ((e = g(nn, this)) != null && e.isConnected) {
928
+ g(nn, this).focus({ preventScroll: !0 });
928
929
  return;
929
930
  }
930
- (t = g(Qt, this)) == null || t.focus({ preventScroll: !0 });
931
+ (t = g(Zt, this)) == null || t.focus({ preventScroll: !0 });
931
932
  }
932
933
  }
933
- function On(e) {
934
+ function Dn(e) {
934
935
  return (e == null ? void 0 : e.localName) === "vindral-scroll-overlay";
935
936
  }
936
- function kn() {
937
+ function On() {
937
938
  let e = this.parentElement;
938
- return e ? h(D, this, On).call(this, e) ? e.hasAttribute("open") : !this.hasAttribute("hidden") : !1;
939
+ return e ? h(O, this, Dn).call(this, e) ? e.hasAttribute("open") : !this.hasAttribute("hidden") : !1;
939
940
  }
940
- function An() {
941
- if (g(sn, this) && (clearTimeout(g(sn, this)), m(sn, this, void 0)), g(cn, this)) {
941
+ function kn() {
942
+ if (g(on, this) && (clearTimeout(g(on, this)), m(on, this, void 0)), g(sn, this)) {
942
943
  var e;
943
- (e = this.parentElement) == null || e.removeEventListener("scroll", g(cn, this)), m(cn, this, void 0);
944
+ (e = this.parentElement) == null || e.removeEventListener("scroll", g(sn, this)), m(sn, this, void 0);
944
945
  }
945
946
  }
946
- function jn() {
947
+ function An() {
947
948
  let e = this.parentElement;
948
- return h(D, this, On).call(this, e) || (e == null ? void 0 : e.hasAttribute("open")) === !0;
949
+ return h(O, this, Dn).call(this, e) || (e == null ? void 0 : e.hasAttribute("open")) === !0;
949
950
  }
950
- function Mn() {
951
+ function jn() {
951
952
  let e = this.parentElement;
952
- if (h(D, this, On).call(this, e)) {
953
+ if (h(O, this, Dn).call(this, e)) {
953
954
  e.open = !1;
954
955
  return;
955
956
  }
956
957
  e == null || e.removeAttribute("open");
957
958
  }
958
- e(ln, "observedAttributes", [
959
- _.CHANNELS,
960
- _.CHANNEL_ID,
961
- _.AUTHENTICATION_TOKEN,
959
+ e(cn, "observedAttributes", [
960
+ v.CHANNELS,
961
+ v.CHANNEL_ID,
962
+ v.AUTHENTICATION_TOKEN,
962
963
  "mode",
963
964
  "hidden"
964
965
  ]);
965
966
  //#endregion
966
967
  //#region ../../libs/player-next/src/components/ChannelGridButton.ts
967
- var Nn, Pn = "\n<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\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n</svg>\n", Fn = document.createElement("template");
968
- Fn.innerHTML = `
968
+ var Mn, Nn = "\n<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\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/>\n <path d=\"M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n <path d=\"M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z\" />\n</svg>\n", Pn = document.createElement("template");
969
+ Pn.innerHTML = `
969
970
  <style>
970
971
  :host {
971
972
  display: var(--grid-button-display);
@@ -978,88 +979,88 @@ Fn.innerHTML = `
978
979
  display: none;
979
980
  }
980
981
  </style>
981
- <slot name="button">${Pn}</slot>
982
+ <slot name="button">${Nn}</slot>
982
983
  `;
983
- var O = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakSet(), Rn = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Bn = class extends y {
984
+ var k = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), Ln = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), zn = class extends b {
984
985
  constructor() {
985
986
  var e;
986
- super(), C(this, k), p(this, O, void 0), p(this, In, void 0), p(this, Ln, (e) => {
987
- e.composedPath().includes(this) || h(k, this, Un).call(this);
988
- }), p(this, Rn, () => h(k, this, Gn).call(this, !0)), p(this, zn, () => h(k, this, Gn).call(this, !1)), (e = this.shadowRoot) == null || e.appendChild(Fn.content.cloneNode(!0));
987
+ super(), w(this, A), p(this, k, void 0), p(this, Fn, void 0), p(this, In, (e) => {
988
+ e.composedPath().includes(this) || h(A, this, Hn).call(this);
989
+ }), p(this, Ln, () => h(A, this, Wn).call(this, !0)), p(this, Rn, () => h(A, this, Wn).call(this, !1)), (e = this.shadowRoot) == null || e.appendChild(Pn.content.cloneNode(!0));
989
990
  }
990
991
  connectedCallback() {
991
- super.connectedCallback(), this.setAttribute("aria-haspopup", "listbox"), this.enable(), h(k, this, Wn).call(this);
992
+ super.connectedCallback(), this.setAttribute("aria-haspopup", "listbox"), this.enable(), h(A, this, Un).call(this);
992
993
  let e = this.getRootNode();
993
994
  if (e instanceof Document || e instanceof ShadowRoot) {
994
995
  var t;
995
- m(O, this, e.querySelector("vindral-channel-grid")), ((t = g(O, this).parentElement) == null ? void 0 : t.localName) === "vindral-scroll-overlay" && (g(O, this).hidden = !1, g(O, this).style.position = "relative", m(In, this, g(O, this).parentElement)), g(O, this).addEventListener(S.CHANNEL_GRID_OPENED, g(Rn, this)), g(O, this).addEventListener(S.CHANNEL_GRID_CLOSED, g(zn, this));
996
+ m(k, this, e.querySelector("vindral-channel-grid")), ((t = g(k, this).parentElement) == null ? void 0 : t.localName) === "vindral-scroll-overlay" && (g(k, this).hidden = !1, g(k, this).style.position = "relative", m(Fn, this, g(k, this).parentElement)), g(k, this).addEventListener(C.CHANNEL_GRID_OPENED, g(Ln, this)), g(k, this).addEventListener(C.CHANNEL_GRID_CLOSED, g(Rn, this));
996
997
  }
997
- h(k, this, Gn).call(this);
998
+ h(A, this, Wn).call(this);
998
999
  }
999
1000
  disconnectedCallback() {
1000
1001
  var e, t;
1001
- super.disconnectedCallback(), (e = g(O, this)) == null || e.removeEventListener(S.CHANNEL_GRID_OPENED, g(Rn, this)), (t = g(O, this)) == null || t.removeEventListener(S.CHANNEL_GRID_CLOSED, g(zn, this));
1002
+ super.disconnectedCallback(), (e = g(k, this)) == null || e.removeEventListener(C.CHANNEL_GRID_OPENED, g(Ln, this)), (t = g(k, this)) == null || t.removeEventListener(C.CHANNEL_GRID_CLOSED, g(Rn, this));
1002
1003
  }
1003
1004
  attributeChangedCallback(e, t, n) {
1004
- super.attributeChangedCallback(e, t, n), (e === _.CHANNEL_GROUP_ID || e === _.CHANNELS) && h(k, this, Wn).call(this);
1005
+ super.attributeChangedCallback(e, t, n), (e === v.CHANNEL_GROUP_ID || e === v.CHANNELS) && h(A, this, Un).call(this);
1005
1006
  }
1006
1007
  enable() {
1007
- super.enable(), document.addEventListener("click", g(Ln, this));
1008
+ super.enable(), document.addEventListener("click", g(In, this));
1008
1009
  }
1009
1010
  handleClick(e) {
1010
- h(k, this, Vn).call(this);
1011
+ h(A, this, Bn).call(this);
1011
1012
  }
1012
1013
  get isOpen() {
1013
1014
  var e;
1014
- return g(In, this) ? g(In, this).hasAttribute("open") : !((e = g(O, this)) != null && e.hidden);
1015
+ return g(Fn, this) ? g(Fn, this).hasAttribute("open") : !((e = g(k, this)) != null && e.hidden);
1015
1016
  }
1016
1017
  };
1017
- Nn = Bn;
1018
- function Vn() {
1019
- this.getAttribute("aria-expanded") === "true" ? h(k, this, Un).call(this) : h(k, this, Hn).call(this), h(k, this, Gn).call(this);
1018
+ Mn = zn;
1019
+ function Bn() {
1020
+ this.getAttribute("aria-expanded") === "true" ? h(A, this, Hn).call(this) : h(A, this, Vn).call(this), h(A, this, Wn).call(this);
1020
1021
  }
1021
- function Hn() {
1022
- if (g(In, this)) g(In, this).setAttribute("open", "");
1022
+ function Vn() {
1023
+ if (g(Fn, this)) g(Fn, this).setAttribute("open", "");
1023
1024
  else {
1024
1025
  var e;
1025
- if (!((e = g(O, this)) != null && e.hidden)) return;
1026
- g(O, this).hidden = !1, g(O, this).focus();
1026
+ if (!((e = g(k, this)) != null && e.hidden)) return;
1027
+ g(k, this).hidden = !1, g(k, this).focus();
1027
1028
  }
1028
1029
  }
1029
- function Un() {
1030
- if (g(In, this)) g(In, this).open = !1;
1030
+ function Hn() {
1031
+ if (g(Fn, this)) g(Fn, this).open = !1;
1031
1032
  else {
1032
- if (!g(O, this) || g(O, this).hidden) return;
1033
- g(O, this).hidden = !0;
1033
+ if (!g(k, this) || g(k, this).hidden) return;
1034
+ g(k, this).hidden = !0;
1034
1035
  }
1035
1036
  }
1036
- function Wn() {
1037
- this.getAttribute(_.CHANNEL_GROUP_ID) ? this.removeAttribute("hidden") : this.setAttribute("hidden", ""), this.hasAttribute(_.CHANNELS) ? this.removeAttribute("disabled") : this.setAttribute("disabled", "");
1037
+ function Un() {
1038
+ this.getAttribute(v.CHANNEL_GROUP_ID) ? this.removeAttribute("hidden") : this.setAttribute("hidden", ""), this.hasAttribute(v.CHANNELS) ? this.removeAttribute("disabled") : this.setAttribute("disabled", "");
1038
1039
  }
1039
- function Gn(e = this.isOpen) {
1040
+ function Wn(e = this.isOpen) {
1040
1041
  this.setAttribute("aria-expanded", String(e)), this.setAttribute("aria-label", e ? "Close channels" : "Channels");
1041
1042
  }
1042
- e(Bn, "observedAttributes", [
1043
- ...b(Nn, "observedAttributes", Nn),
1044
- _.CHANNEL_GROUP_ID,
1045
- _.CHANNELS,
1043
+ e(zn, "observedAttributes", [
1044
+ ...x(Mn, "observedAttributes", Mn),
1045
+ v.CHANNEL_GROUP_ID,
1046
+ v.CHANNELS,
1046
1047
  "hidden"
1047
1048
  ]);
1048
1049
  //#endregion
1049
1050
  //#region ../../libs/player-next/src/components/ControlBar.ts
1050
- var Kn = document.createElement("template");
1051
- Kn.innerHTML = "\n <style>\n :host {\n display: flex;\n width: 100%;\n align-items: center;\n }\n\n slot {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n :host([content-center]) slot {\n justify-content: center;\n }\n\n slot[name=\"right\"] {\n justify-content: flex-end;\n }\n </style>\n\n <slot name=\"bar\">\n <slot></slot>\n <slot name=\"right\"></slot>\n </slot>\n";
1052
- var qn = class extends HTMLElement {
1051
+ var Gn = document.createElement("template");
1052
+ Gn.innerHTML = "\n <style>\n :host {\n display: flex;\n width: 100%;\n align-items: center;\n }\n\n slot {\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n\n :host([content-center]) slot {\n justify-content: center;\n }\n\n slot[name=\"right\"] {\n justify-content: flex-end;\n }\n </style>\n\n <slot name=\"bar\">\n <slot></slot>\n <slot name=\"right\"></slot>\n </slot>\n";
1053
+ var Kn = class extends HTMLElement {
1053
1054
  constructor() {
1054
- super(), this.attachShadow({ mode: "open" }).appendChild(Kn.content.cloneNode(!0));
1055
+ super(), this.attachShadow({ mode: "open" }).appendChild(Gn.content.cloneNode(!0));
1055
1056
  }
1056
1057
  connectedCallback() {}
1057
1058
  disconnectedCallback() {}
1058
1059
  };
1059
- e(qn, "observedAttributes", []);
1060
+ e(Kn, "observedAttributes", []);
1060
1061
  //#endregion
1061
1062
  //#region ../../libs/airplay-sender/src/AirPlaySender.ts
1062
- var Jn = class extends fe {
1063
+ var qn = class extends de {
1063
1064
  constructor(t) {
1064
1065
  super(), e(this, "config", void 0), e(this, "hlsUrl", void 0), e(this, "element", void 0), e(this, "connectingTimeout", void 0), e(this, "castingAvailable", !1), e(this, "updateAuthenticationToken", (e) => {
1065
1066
  this.config.authenticationToken = e, this.hlsUrl = this.getHlsUrl(), this.castingAvailable && (this.element.src = this.hlsUrl);
@@ -1078,7 +1079,7 @@ var Jn = class extends fe {
1078
1079
  default: break;
1079
1080
  }
1080
1081
  }), e(this, "onAirPlayPlaybackChanged", () => {
1081
- window.clearTimeout(this.connectingTimeout), this.element.webkitCurrentPlaybackTargetIsWireless ? (this.emit("connected"), this.element.style.display = "block", this.element.paused && this.element.play().catch(se)) : (this.emit("disconnected"), this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl, this.element.style.display = "none");
1082
+ window.clearTimeout(this.connectingTimeout), this.element.webkitCurrentPlaybackTargetIsWireless ? (this.emit("connected"), this.element.style.display = "block", this.element.paused && this.element.play().catch(oe)) : (this.emit("disconnected"), this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl, this.element.style.display = "none");
1082
1083
  }), this.config = t, this.hlsUrl = this.getHlsUrl(), this.element = document.createElement("video"), this.element.style.position = "absolute", this.element.style.top = "0", this.element.style.bottom = "0", this.element.style.left = "0", this.element.style.right = "0", this.element.style.width = "100%", this.element.style.height = "100%", this.element.style.zIndex = "1001", this.element.style.display = "none", this.element.id = "vindral-airplay-element", this.element.slot = "overlay", this.element.playsInline = !0, this.element.controls = !0, this.element.preload = "metadata", this.element.addEventListener("webkitplaybacktargetavailabilitychanged", this.onAirPlayAvailable), this.element.addEventListener("webkitcurrentplaybacktargetiswirelesschanged", this.onAirPlayPlaybackChanged), this.config.container.appendChild(this.element);
1083
1084
  }
1084
1085
  get casting() {
@@ -1086,7 +1087,7 @@ var Jn = class extends fe {
1086
1087
  }
1087
1088
  set channelId(e) {}
1088
1089
  showPlaybackTargetPicker() {
1089
- "webkitShowPlaybackTargetPicker" in this.element && this.castingAvailable && (this.element.paused && (this.element.play().catch(se), this.connectingTimeout = window.setTimeout(() => {
1090
+ "webkitShowPlaybackTargetPicker" in this.element && this.castingAvailable && (this.element.paused && (this.element.play().catch(oe), this.connectingTimeout = window.setTimeout(() => {
1090
1091
  this.casting || (this.element.pause(), this.element.src = "", this.element.src = this.hlsUrl);
1091
1092
  }, 3e4)), this.element.webkitShowPlaybackTargetPicker());
1092
1093
  }
@@ -1098,7 +1099,7 @@ var Jn = class extends fe {
1098
1099
  return this.config.authenticationToken && e.searchParams.set("authenticationToken", this.config.authenticationToken), e.toString();
1099
1100
  }
1100
1101
  checkHlsUrl(e) {
1101
- return t(function* () {
1102
+ return _(function* () {
1102
1103
  try {
1103
1104
  return (yield fetch(e, { method: "HEAD" })).ok;
1104
1105
  } catch (e) {
@@ -1106,105 +1107,105 @@ var Jn = class extends fe {
1106
1107
  }
1107
1108
  })();
1108
1109
  }
1109
- }, Yn = 28, Xn = ["::cue", "::-webkit-media-text-track-display"];
1110
- function Zn(e) {
1110
+ }, Jn = 28, Yn = ["::cue", "::-webkit-media-text-track-display"];
1111
+ function Xn(e) {
1111
1112
  let t = e.styleSheets[0];
1112
1113
  if (!t) return [];
1113
1114
  try {
1114
- return Array.from(t.cssRules).filter((e) => e instanceof CSSStyleRule && Xn.some((t) => e.selectorText.endsWith(t)));
1115
+ return Array.from(t.cssRules).filter((e) => e instanceof CSSStyleRule && Yn.some((t) => e.selectorText.endsWith(t)));
1115
1116
  } catch (e) {
1116
1117
  return [];
1117
1118
  }
1118
1119
  }
1119
- var Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = class {
1120
+ var Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = class {
1120
1121
  constructor(t) {
1121
- p(this, Qn, void 0), p(this, $n, null), p(this, er, null), p(this, tr, null), p(this, nr, !0), e(this, "observe", (e) => {
1122
- g(tr, this) || (m(tr, this, e), e.addEventListener("webkitpresentationmodechanged", g(rr, this), !0), window.ResizeObserver && (m($n, this, new ResizeObserver(() => g(ar, this).call(this))), g($n, this).observe(e)));
1123
- }), p(this, rr, (e) => {
1122
+ p(this, Zn, void 0), p(this, Qn, null), p(this, $n, null), p(this, er, null), p(this, tr, !0), e(this, "observe", (e) => {
1123
+ g(er, this) || (m(er, this, e), e.addEventListener("webkitpresentationmodechanged", g(nr, this), !0), window.ResizeObserver && (m(Qn, this, new ResizeObserver(() => g(ir, this).call(this))), g(Qn, this).observe(e)));
1124
+ }), p(this, nr, (e) => {
1124
1125
  var t;
1125
- e.target instanceof HTMLMediaElement && g(ir, this).call(this, ((t = re(e.target)) == null ? "inline" : t) === "inline");
1126
- }), p(this, ir, (e) => {
1127
- if (g(nr, this) !== e) {
1128
- if (m(nr, this, e), m(er, this, null), e) {
1129
- g(ar, this).call(this);
1126
+ e.target instanceof HTMLMediaElement && g(rr, this).call(this, ((t = ne(e.target)) == null ? "inline" : t) === "inline");
1127
+ }), p(this, rr, (e) => {
1128
+ if (g(tr, this) !== e) {
1129
+ if (m(tr, this, e), m($n, this, null), e) {
1130
+ g(ir, this).call(this);
1130
1131
  return;
1131
1132
  }
1132
- for (let e of g(Qn, this)) e.style.removeProperty("font-size");
1133
+ for (let e of g(Zn, this)) e.style.removeProperty("font-size");
1133
1134
  }
1134
1135
  }), e(this, "unload", () => {
1135
1136
  var e, t;
1136
- (e = g(tr, this)) == null || e.removeEventListener("webkitpresentationmodechanged", g(rr, this), !0), (t = g($n, this)) == null || t.disconnect(), m($n, this, null), m(tr, this, null), m(nr, this, !0);
1137
- }), p(this, ar, () => {
1138
- if (!g(nr, this) || g(Qn, this).length === 0 || !g(tr, this)) return;
1139
- let { clientWidth: e, clientHeight: t } = g(tr, this);
1137
+ (e = g(er, this)) == null || e.removeEventListener("webkitpresentationmodechanged", g(nr, this), !0), (t = g(Qn, this)) == null || t.disconnect(), m(Qn, this, null), m(er, this, null), m(tr, this, !0);
1138
+ }), p(this, ir, () => {
1139
+ if (!g(tr, this) || g(Zn, this).length === 0 || !g(er, this)) return;
1140
+ let { clientWidth: e, clientHeight: t } = g(er, this);
1140
1141
  if (e <= 0 || t <= 0) return;
1141
- let n = te(e, t, { max: Yn });
1142
- if (n !== g(er, this)) {
1143
- m(er, this, n);
1144
- for (let e of g(Qn, this)) e.style.fontSize = n;
1142
+ let n = ee(e, t, { max: Jn });
1143
+ if (n !== g($n, this)) {
1144
+ m($n, this, n);
1145
+ for (let e of g(Zn, this)) e.style.fontSize = n;
1145
1146
  }
1146
- }), m(Qn, this, Zn(t));
1147
+ }), m(Zn, this, Xn(t));
1147
1148
  }
1148
- }, sr = class n extends fe {
1149
- constructor(r) {
1150
- var i;
1151
- super(), i = this, e(this, "container", void 0), e(this, "unload", () => {
1149
+ }, or = class t extends de {
1150
+ constructor(n) {
1151
+ var r;
1152
+ super(), r = this, e(this, "container", void 0), e(this, "unload", () => {
1152
1153
  document.removeEventListener("webkitfullscreenchange", this.onChange), document.removeEventListener("mozfullscreenchange", this.onChange), document.removeEventListener("fullscreenchange", this.onChange), this.container.removeEventListener("webkitendfullscreen", this.onChange);
1153
- }), e(this, "request", t(function* () {
1154
+ }), e(this, "request", _(function* () {
1154
1155
  try {
1155
- yield i.requestFn();
1156
+ yield r.requestFn();
1156
1157
  } catch (e) {
1157
- throw i.onChange(), e;
1158
+ throw r.onChange(), e;
1158
1159
  }
1159
- })), e(this, "exit", t(function* () {
1160
+ })), e(this, "exit", _(function* () {
1160
1161
  try {
1161
- yield i.exitFn();
1162
+ yield r.exitFn();
1162
1163
  } catch (e) {
1163
- throw i.onChange(), e;
1164
+ throw r.onChange(), e;
1164
1165
  }
1165
- })), e(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen())), e(this, "isFullscreen", () => oe()), e(this, "isSupported", () => n.isFullscreenApiSupported(this.container) || !this.isInIframe()), e(this, "isFullscreenApiSupported", () => n.isFullscreenApiSupported(this.container)), e(this, "isInIframe", () => window.location !== window.parent.location), this.container = r, document.addEventListener("webkitfullscreenchange", this.onChange), document.addEventListener("mozfullscreenchange", this.onChange), document.addEventListener("fullscreenchange", this.onChange), this.container.addEventListener("webkitendfullscreen", this.onChange);
1166
+ })), e(this, "onChange", () => this.emit("on fullscreen change", this.isFullscreen())), e(this, "isFullscreen", () => ae()), e(this, "isSupported", () => t.isFullscreenApiSupported(this.container) || !this.isInIframe()), e(this, "isFullscreenApiSupported", () => t.isFullscreenApiSupported(this.container)), e(this, "isInIframe", () => window.location !== window.parent.location), this.container = n, document.addEventListener("webkitfullscreenchange", this.onChange), document.addEventListener("mozfullscreenchange", this.onChange), document.addEventListener("fullscreenchange", this.onChange), this.container.addEventListener("webkitendfullscreen", this.onChange);
1166
1167
  }
1167
1168
  get requestFn() {
1168
1169
  var e;
1169
- return (e = u(this.container)) == null ? (() => Promise.resolve()) : e;
1170
+ return (e = l(this.container)) == null ? (() => Promise.resolve()) : e;
1170
1171
  }
1171
1172
  get exitFn() {
1172
- if (n.isFullscreenApiSupported(this.container) && this.isFullscreen()) {
1173
+ if (t.isFullscreenApiSupported(this.container) && this.isFullscreen()) {
1173
1174
  var e;
1174
- return (e = ee(this.container)) == null ? (() => Promise.resolve()) : e;
1175
+ return (e = f(this.container)) == null ? (() => Promise.resolve()) : e;
1175
1176
  }
1176
1177
  return () => Promise.resolve();
1177
1178
  }
1178
1179
  };
1179
- e(sr, "isFullscreenApiSupported", (e) => l(e));
1180
+ e(or, "isFullscreenApiSupported", (e) => c(e));
1180
1181
  //#endregion
1181
1182
  //#region ../../libs/player-next/src/PictureInPicture.ts
1182
- var cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = class extends fe {
1183
- constructor(r) {
1184
- var a;
1185
- super(), a = this, e(this, "unload", () => {
1186
- this.element.removeEventListener("enterpictureinpicture", this.onChange), this.element.removeEventListener("leavepictureinpicture", this.onChange), this.element.removeEventListener("webkitpresentationmodechanged", this.onChange), n(this.element, !1);
1187
- }), e(this, "request", t(function* () {
1183
+ var sr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = class extends de {
1184
+ constructor(n) {
1185
+ var i;
1186
+ super(), i = this, e(this, "unload", () => {
1187
+ this.element.removeEventListener("enterpictureinpicture", this.onChange), this.element.removeEventListener("leavepictureinpicture", this.onChange), this.element.removeEventListener("webkitpresentationmodechanged", this.onChange), t(this.element, !1);
1188
+ }), e(this, "request", _(function* () {
1188
1189
  try {
1189
- return yield g(cr, a).call(a);
1190
+ return yield g(sr, i).call(i);
1190
1191
  } catch (e) {
1191
- throw a.onChange(), e;
1192
+ throw i.onChange(), e;
1192
1193
  }
1193
- })), e(this, "exit", t(function* () {
1194
+ })), e(this, "exit", _(function* () {
1194
1195
  try {
1195
- return yield g(lr, a).call(a);
1196
+ return yield g(cr, i).call(i);
1196
1197
  } catch (e) {
1197
- throw a.onChange(), e;
1198
+ throw i.onChange(), e;
1198
1199
  }
1199
1200
  })), e(this, "onChange", () => {
1200
1201
  this.emit("on picture in picture change", this.isPictureInPictureActive());
1201
- }), e(this, "isPictureInPictureActive", () => g(mr, this).call(this) || g(pr, this).call(this)), e(this, "isSupported", () => g(gr, this).call(this) || g(fr, this).call(this)), p(this, cr, () => g(fr, this).call(this) ? g(ur, this).call(this) : g(gr, this).call(this) ? g(hr, this).call(this, "picture-in-picture") : Promise.resolve()), p(this, lr, () => this.isPictureInPictureActive() ? g(fr, this).call(this) ? g(dr, this).call(this) : g(gr, this).call(this) ? g(hr, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), p(this, ur, t(function* () {
1202
- let e = c(a.element);
1202
+ }), e(this, "isPictureInPictureActive", () => g(pr, this).call(this) || g(fr, this).call(this)), e(this, "isSupported", () => g(hr, this).call(this) || g(dr, this).call(this)), p(this, sr, () => g(dr, this).call(this) ? g(lr, this).call(this) : g(hr, this).call(this) ? g(mr, this).call(this, "picture-in-picture") : Promise.resolve()), p(this, cr, () => this.isPictureInPictureActive() ? g(dr, this).call(this) ? g(ur, this).call(this) : g(hr, this).call(this) ? g(mr, this).call(this, "inline") : Promise.resolve() : Promise.resolve()), p(this, lr, _(function* () {
1203
+ let e = s(i.element);
1203
1204
  e && (yield e());
1204
- })), p(this, dr, t(function* () {
1205
- let e = d();
1205
+ })), p(this, ur, _(function* () {
1206
+ let e = u();
1206
1207
  e && (yield e());
1207
- })), p(this, fr, () => s(this.element)), p(this, pr, () => ae()), p(this, mr, () => re(this.element) === "picture-in-picture"), p(this, hr, (e) => (i(this.element) && ie(this.element, e), Promise.resolve())), p(this, gr, () => i(this.element)), this.element = r, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), this.element.addEventListener("webkitpresentationmodechanged", this.onChange), n(this.element, !0);
1208
+ })), p(this, dr, () => o(this.element)), p(this, fr, () => ie()), p(this, pr, () => ne(this.element) === "picture-in-picture"), p(this, mr, (e) => (r(this.element) && re(this.element, e), Promise.resolve())), p(this, hr, () => r(this.element)), this.element = n, this.element.addEventListener("enterpictureinpicture", this.onChange), this.element.addEventListener("leavepictureinpicture", this.onChange), this.element.addEventListener("webkitpresentationmodechanged", this.onChange), t(this.element, !0);
1208
1209
  }
1209
1210
  get videoElement() {
1210
1211
  return this.element;
@@ -1212,7 +1213,7 @@ var cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur =
1212
1213
  };
1213
1214
  //#endregion
1214
1215
  //#region ../../libs/player-next/src/timeshift/firstMediaPlaylistUrl.ts
1215
- function vr(e, t) {
1216
+ function _r(e, t) {
1216
1217
  let n = e.split("\n").map((e) => e.trim());
1217
1218
  for (let e = 0; e < n.length; e++) {
1218
1219
  var r;
@@ -1224,7 +1225,7 @@ function vr(e, t) {
1224
1225
  }
1225
1226
  //#endregion
1226
1227
  //#region ../../libs/player-next/src/timeshift/parseMediaPlaylistDuration.ts
1227
- function yr(e) {
1228
+ function vr(e) {
1228
1229
  let t = 0;
1229
1230
  for (let n of e.split("\n")) {
1230
1231
  let e = n.trim().match(/^#EXTINF:([\d.]+)/), r = e != null && e[1] ? Number.parseFloat(e[1]) : NaN;
@@ -1234,86 +1235,86 @@ function yr(e) {
1234
1235
  }
1235
1236
  //#endregion
1236
1237
  //#region ../../libs/player-next/src/timeshift/probeTimeshiftDuration.ts
1237
- var br = 5e3;
1238
- function xr(e, t) {
1239
- return Sr.apply(this, arguments);
1238
+ var yr = 5e3;
1239
+ function br(e, t) {
1240
+ return xr.apply(this, arguments);
1240
1241
  }
1241
- function Sr() {
1242
- return Sr = t(function* (e, t, n = {}) {
1243
- let { signal: r, timeoutMs: i = br } = n, a = new AbortController(), o = () => a.abort();
1242
+ function xr() {
1243
+ return xr = _(function* (e, t, n = {}) {
1244
+ let { signal: r, timeoutMs: i = yr } = n, a = new AbortController(), o = () => a.abort();
1244
1245
  r && (r.aborted ? a.abort() : r.addEventListener("abort", o, { once: !0 }));
1245
1246
  let s = setTimeout(o, i);
1246
1247
  try {
1247
1248
  let n = yield fetch(e, { signal: a.signal });
1248
1249
  if (!n.ok) return;
1249
- let r = vr(yield n.text(), e);
1250
+ let r = _r(yield n.text(), e);
1250
1251
  if (!r) return;
1251
1252
  let i = new URL(r);
1252
1253
  i.searchParams.set("channelId", t.channelId), i.searchParams.set("from", t.from), t.authToken && i.searchParams.set("authToken", t.authToken);
1253
1254
  let o = yield fetch(i.toString(), { signal: a.signal });
1254
- return o.ok ? yr(yield o.text()) : void 0;
1255
+ return o.ok ? vr(yield o.text()) : void 0;
1255
1256
  } catch (e) {
1256
1257
  return;
1257
1258
  } finally {
1258
1259
  clearTimeout(s), r == null || r.removeEventListener("abort", o);
1259
1260
  }
1260
- }), Sr.apply(this, arguments);
1261
+ }), xr.apply(this, arguments);
1261
1262
  }
1262
1263
  //#endregion
1263
1264
  //#region ../../libs/player-next/src/timeshift/TimeshiftDurationSource.ts
1264
- var Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakSet(), Nr = class {
1265
- constructor({ onChange: e, probe: t = xr, now: n = () => performance.now() }) {
1266
- C(this, A), p(this, Cr, void 0), p(this, wr, void 0), p(this, Tr, void 0), p(this, Er, void 0), p(this, Dr, !0), p(this, Or, !1), p(this, kr, 0), p(this, Ar, 0), p(this, jr, 0), p(this, Mr, null), m(Cr, this, e), m(wr, this, t), m(Tr, this, n);
1265
+ var Sr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakSet(), Nr = class {
1266
+ constructor({ onChange: e, probe: t = br, now: n = () => performance.now() }) {
1267
+ w(this, Mr), p(this, Sr, void 0), p(this, Cr, void 0), p(this, wr, void 0), p(this, Tr, void 0), p(this, Er, !0), p(this, Dr, !1), p(this, Or, 0), p(this, kr, 0), p(this, Ar, 0), p(this, jr, null), m(Sr, this, e), m(Cr, this, t), m(wr, this, n);
1267
1268
  }
1268
1269
  start({ multivariantUrl: e, params: t, windowCapSeconds: n }) {
1269
- if (h(A, this, Pr).call(this), !(n > 0)) {
1270
- g(Cr, this).call(this, n);
1270
+ if (h(Mr, this, Pr).call(this), !(n > 0)) {
1271
+ g(Sr, this).call(this, n);
1271
1272
  return;
1272
1273
  }
1273
1274
  let r = new AbortController();
1274
- m(Er, this, r);
1275
+ m(Tr, this, r);
1275
1276
  let { signal: i } = r;
1276
- g(wr, this).call(this, e, t, { signal: i }).then((e) => {
1277
+ g(Cr, this).call(this, e, t, { signal: i }).then((e) => {
1277
1278
  if (!i.aborted) {
1278
1279
  if (e === void 0) {
1279
- g(Cr, this).call(this, n);
1280
+ g(Sr, this).call(this, n);
1280
1281
  return;
1281
1282
  }
1282
- m(Ar, this, n), m(kr, this, Math.min(Math.max(e, 0), n)), m(jr, this, g(Tr, this).call(this)), m(Or, this, !0), h(A, this, Fr).call(this), g(Dr, this) && h(A, this, Ir).call(this);
1283
+ m(kr, this, n), m(Or, this, Math.min(Math.max(e, 0), n)), m(Ar, this, g(wr, this).call(this)), m(Dr, this, !0), h(Mr, this, Fr).call(this), g(Er, this) && h(Mr, this, Ir).call(this);
1283
1284
  }
1284
1285
  });
1285
1286
  }
1286
1287
  setLive(e) {
1287
- m(Dr, this, e), !(!g(Er, this) || e) && (h(A, this, Lr).call(this), h(A, this, Fr).call(this));
1288
+ m(Er, this, e), !(!g(Tr, this) || e) && (h(Mr, this, Lr).call(this), h(Mr, this, Fr).call(this));
1288
1289
  }
1289
1290
  applyLoadedDuration(e) {
1290
- h(A, this, Pr).call(this), g(Cr, this).call(this, Number.isNaN(e) ? 0 : e);
1291
+ h(Mr, this, Pr).call(this), g(Sr, this).call(this, Number.isNaN(e) ? 0 : e);
1291
1292
  }
1292
1293
  stop() {
1293
- h(A, this, Pr).call(this);
1294
+ h(Mr, this, Pr).call(this);
1294
1295
  }
1295
1296
  };
1296
1297
  function Pr() {
1297
1298
  var e;
1298
- (e = g(Er, this)) == null || e.abort(), m(Er, this, void 0), h(A, this, Lr).call(this), m(Or, this, !1);
1299
+ (e = g(Tr, this)) == null || e.abort(), m(Tr, this, void 0), h(Mr, this, Lr).call(this), m(Dr, this, !1);
1299
1300
  }
1300
1301
  function Fr() {
1301
- if (!g(Or, this)) return;
1302
- let e = g(kr, this) + Math.max(0, (g(Tr, this).call(this) - g(jr, this)) / 1e3), t = Math.min(g(Ar, this), e);
1303
- g(Cr, this).call(this, t), t >= g(Ar, this) && h(A, this, Lr).call(this);
1302
+ if (!g(Dr, this)) return;
1303
+ let e = g(Or, this) + Math.max(0, (g(wr, this).call(this) - g(Ar, this)) / 1e3), t = Math.min(g(kr, this), e);
1304
+ g(Sr, this).call(this, t), t >= g(kr, this) && h(Mr, this, Lr).call(this);
1304
1305
  }
1305
1306
  function Ir() {
1306
- g(Mr, this) === null && m(Mr, this, window.setInterval(() => h(A, this, Fr).call(this), 1e3));
1307
+ g(jr, this) === null && m(jr, this, window.setInterval(() => h(Mr, this, Fr).call(this), 1e3));
1307
1308
  }
1308
1309
  function Lr() {
1309
- g(Mr, this) !== null && (clearInterval(g(Mr, this)), m(Mr, this, null));
1310
+ g(jr, this) !== null && (clearInterval(g(jr, this)), m(jr, this, null));
1310
1311
  }
1311
1312
  //#endregion
1312
1313
  //#region ../../libs/player-next/src/utils/getVindralAttributes.ts
1313
1314
  var Rr = (e) => {
1314
1315
  var t;
1315
1316
  let n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0;
1316
- return !n && (t = e.nodeName) != null && t.includes("-") && (globalThis.customElements.upgrade(e), n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0), Array.isArray(n) ? n.filter((e) => ke.includes(e)) : [];
1317
+ return !n && (t = e.nodeName) != null && t.includes("-") && (globalThis.customElements.upgrade(e), n = "observedAttributes" in e.constructor ? e.constructor.observedAttributes : void 0), Array.isArray(n) ? n.filter((e) => Oe.includes(e)) : [];
1317
1318
  };
1318
1319
  //#endregion
1319
1320
  //#region ../../libs/player-next/src/utils/humanReadableTimeToSeconds.ts
@@ -1333,7 +1334,7 @@ function zr(e) {
1333
1334
  }
1334
1335
  //#endregion
1335
1336
  //#region ../../libs/player-next/src/utils/timelineMarkers.ts
1336
- var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Hr = (e) => {
1337
+ var Br = ue.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?$/, Hr = (e) => {
1337
1338
  Br.warn(`Timeline marker time "${e}" has no timezone and is interpreted in the viewer's local timezone, so it can land at a different position for viewers in other timezones. Provide an ISO 8601 time with an offset (e.g. "${e}Z") or epoch milliseconds.`);
1338
1339
  }, Ur = (e) => {
1339
1340
  if (typeof e == "number" && Number.isFinite(e)) return e;
@@ -1359,11 +1360,11 @@ var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
1359
1360
  if (!Array.isArray(e)) return [];
1360
1361
  let t = e.map(Wr).filter((e) => e !== null), n = e.length - t.length;
1361
1362
  return n > 0 && Br.warn(`Dropped ${n} invalid timeline marker(s). Each marker needs a non-empty "label" and a valid "time" (epoch milliseconds, a Date, or an ISO 8601 string).`), t;
1362
- }, Kr = (e) => e ? Gr(ce(e)) : [], qr = (e, t, n) => {
1363
+ }, Kr = (e) => e ? Gr(se(e)) : [], qr = (e, t, n) => {
1363
1364
  if (!Number.isFinite(n) || n <= 0) return null;
1364
1365
  let r = 1 - (t - e) / (n * 1e3);
1365
1366
  return r < 0 || r > 1 ? null : r;
1366
- }, Jr = class extends fe {
1367
+ }, Jr = class extends de {
1367
1368
  constructor(t) {
1368
1369
  if (super(), e(this, "audioContext", void 0), e(this, "audioNode", void 0), e(this, "bufferLength", void 0), e(this, "animationFrameId", null), e(this, "canUseFloatTimeDomainData", void 0), e(this, "byteSampleBuffer", null), e(this, "floatSampleBuffer", null), e(this, "leftAnalyser", void 0), e(this, "rightAnalyser", void 0), e(this, "mediaElementSource", null), e(this, "update", () => {
1369
1370
  let e = this.getDecibel(this.leftAnalyser, this.floatSampleBuffer || this.byteSampleBuffer), t = this.getDecibel(this.rightAnalyser, this.floatSampleBuffer || this.byteSampleBuffer);
@@ -1417,7 +1418,7 @@ var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
1417
1418
  }
1418
1419
  }, j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), ei = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), ni = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), ii = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ai = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), li = class {
1419
1420
  constructor(t, n) {
1420
- C(this, F), p(this, j, void 0), p(this, M, void 0), p(this, N, void 0), p(this, Yr, void 0), p(this, Xr, void 0), e(this, "userPaused", !0), p(this, Zr, void 0), p(this, Qr, void 0), p(this, $r, !1), p(this, ei, !1), p(this, ti, null), p(this, ni, 0), p(this, ri, null), p(this, ii, !1), p(this, P, de.get().createContext("HlsPlayer")), p(this, ai, () => h(F, this, Ci).call(this, !0)), p(this, oi, () => h(F, this, Ci).call(this, !1)), p(this, si, () => {
1421
+ w(this, F), p(this, j, void 0), p(this, M, void 0), p(this, N, void 0), p(this, Yr, void 0), p(this, Xr, void 0), e(this, "userPaused", !0), p(this, Zr, void 0), p(this, Qr, void 0), p(this, $r, !1), p(this, ei, !1), p(this, ti, null), p(this, ni, 0), p(this, ri, null), p(this, ii, !1), p(this, P, ue.get().createContext("HlsPlayer")), p(this, ai, () => h(F, this, Ci).call(this, !0)), p(this, oi, () => h(F, this, Ci).call(this, !1)), p(this, si, () => {
1421
1422
  g(j, this).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !g(j, this).paused && h(F, this, Ci).call(this, !1);
1422
1423
  }), p(this, ci, () => {
1423
1424
  g(j, this).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA && h(F, this, Ci).call(this, !1);
@@ -1430,7 +1431,7 @@ var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
1430
1431
  }
1431
1432
  play() {
1432
1433
  var e = this;
1433
- return t(function* () {
1434
+ return _(function* () {
1434
1435
  if (g(ri, e) !== null) {
1435
1436
  e.userPaused = !1, m(ri, e, !0);
1436
1437
  return;
@@ -1439,14 +1440,14 @@ var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
1439
1440
  })();
1440
1441
  }
1441
1442
  seek(e) {
1442
- var n = this;
1443
- return t(function* () {
1444
- if (g(P, n).debug("HlsPlayer seek to", e.time), !Number.isFinite(e.time)) {
1445
- m(ti, n, null);
1443
+ var t = this;
1444
+ return _(function* () {
1445
+ if (g(P, t).debug("HlsPlayer seek to", e.time), !Number.isFinite(e.time)) {
1446
+ m(ti, t, null);
1446
1447
  return;
1447
1448
  }
1448
- if (m(ti, n, e.time > .1 ? e.time : null), n.isActive() && g(N, n)) h(F, n, hi).call(n, e.time);
1449
- else return h(F, n, gi).call(n, e);
1449
+ if (m(ti, t, e.time > .1 ? e.time : null), t.isActive() && g(N, t)) h(F, t, hi).call(t, e.time);
1450
+ else return h(F, t, gi).call(t, e);
1450
1451
  })();
1451
1452
  }
1452
1453
  shouldIgnoreTimeupdate() {
@@ -1523,8 +1524,8 @@ var Br = de.get().createContext("TimelineMarkers"), Vr = /^\d{4}-\d{2}-\d{2}[T ]
1523
1524
  };
1524
1525
  function ui() {
1525
1526
  var e = this;
1526
- return t(function* () {
1527
- let { default: t } = yield import("./Ct8GqCxq.js");
1527
+ return _(function* () {
1528
+ let { default: t } = yield import("./DiWlRJyv.js");
1528
1529
  if (m(Yr, e, t), !t.isSupported()) {
1529
1530
  g(P, e).warn("HLS not supported");
1530
1531
  return;
@@ -1600,7 +1601,7 @@ function pi() {
1600
1601
  }
1601
1602
  function mi() {
1602
1603
  var e = this;
1603
- return t(function* () {
1604
+ return _(function* () {
1604
1605
  try {
1605
1606
  return g(N, e) ? (e.userPaused = !1, yield g(j, e).play()) : Promise.reject("HLS not initialized");
1606
1607
  } catch (t) {
@@ -1619,21 +1620,21 @@ function hi(e) {
1619
1620
  }));
1620
1621
  }
1621
1622
  function gi(e) {
1622
- var n = this;
1623
- return t(function* () {
1624
- var t;
1625
- let { time: r, playWhenReady: i = !0 } = e || {}, a = m(ni, n, (t = g(ni, n), ++t));
1626
- if (m(ri, n, i), !g(Xr, n)) {
1627
- g(P, n).warn("No timeshift URL"), m(ri, n, null);
1623
+ var t = this;
1624
+ return _(function* () {
1625
+ var n;
1626
+ let { time: r, playWhenReady: i = !0 } = e || {}, a = m(ni, t, (n = g(ni, t), ++n));
1627
+ if (m(ri, t, i), !g(Xr, t)) {
1628
+ g(P, t).warn("No timeshift URL"), m(ri, t, null);
1628
1629
  return;
1629
1630
  }
1630
- if (!g(N, n) && (yield h(F, n, ui).call(n), !h(F, n, wi).call(n, a))) return;
1631
- m($r, n, !1), m(ei, n, !1), g(N, n) && (!g(N, n).url || g(N, n).url !== g(Xr, n)) && (g(P, n).debug("Loading timeshift URL", g(Xr, n)), g(N, n).loadSource(g(Xr, n)));
1632
- let o = n.muted;
1633
- if (g(j, n).muted = !0, yield h(F, n, _i).call(n), !h(F, n, wi).call(n, a)) return;
1634
- h(F, n, hi).call(n, r);
1635
- let s = g(ri, n);
1636
- m(ri, n, null), !(s && (yield h(F, n, mi).call(n), !h(F, n, wi).call(n, a))) && h(F, n, vi).call(n, o, a);
1631
+ if (!g(N, t) && (yield h(F, t, ui).call(t), !h(F, t, wi).call(t, a))) return;
1632
+ m($r, t, !1), m(ei, t, !1), g(N, t) && (!g(N, t).url || g(N, t).url !== g(Xr, t)) && (g(P, t).debug("Loading timeshift URL", g(Xr, t)), g(N, t).loadSource(g(Xr, t)));
1633
+ let o = t.muted;
1634
+ if (g(j, t).muted = !0, yield h(F, t, _i).call(t), !h(F, t, wi).call(t, a)) return;
1635
+ h(F, t, hi).call(t, r);
1636
+ let s = g(ri, t);
1637
+ m(ri, t, null), !(s && (yield h(F, t, mi).call(t), !h(F, t, wi).call(t, a))) && h(F, t, vi).call(t, o, a);
1637
1638
  })();
1638
1639
  }
1639
1640
  function _i() {
@@ -1724,7 +1725,7 @@ var Ti = { _: [
1724
1725
  }
1725
1726
  play() {
1726
1727
  var e = this;
1727
- return t(function* () {
1728
+ return _(function* () {
1728
1729
  var t;
1729
1730
  return (t = e.vindral) == null || t.play(), Promise.resolve();
1730
1731
  })();
@@ -1925,10 +1926,10 @@ Mi.innerHTML = `
1925
1926
  }
1926
1927
 
1927
1928
  :host(
1928
- :not([${_.USER_INTERACTING}]
1929
- ):not([${_.PAUSED}]:not([${_.HIDE_UI_ON_PAUSE}])
1930
- ):not([${_.IS_CASTING}]
1931
- ):not([${_.MEDIA}="audio"])
1929
+ :not([${v.USER_INTERACTING}]
1930
+ ):not([${v.PAUSED}]:not([${v.HIDE_UI_ON_PAUSE}])
1931
+ ):not([${v.IS_CASTING}]
1932
+ ):not([${v.MEDIA}="audio"])
1932
1933
  )
1933
1934
  #ui {
1934
1935
  opacity: 0;
@@ -1937,16 +1938,16 @@ Mi.innerHTML = `
1937
1938
  }
1938
1939
 
1939
1940
  :host(
1940
- :not([${_.USER_INTERACTING}]
1941
- ):not([${_.PAUSED}]:not([${_.HIDE_UI_ON_PAUSE}])
1942
- ):not([${_.IS_CASTING}]
1943
- ):not([${_.MEDIA}="audio"])
1941
+ :not([${v.USER_INTERACTING}]
1942
+ ):not([${v.PAUSED}]:not([${v.HIDE_UI_ON_PAUSE}])
1943
+ ):not([${v.IS_CASTING}]
1944
+ ):not([${v.MEDIA}="audio"])
1944
1945
  )
1945
1946
  #ui > slot::slotted(*) {
1946
1947
  pointer-events: none;
1947
1948
  }
1948
1949
 
1949
- :host([${_.FULLSCREEN}][${_.FULLSCREEN_FALLBACK}]) {
1950
+ :host([${v.FULLSCREEN}][${v.FULLSCREEN_FALLBACK}]) {
1950
1951
  position: fixed !important;
1951
1952
  inset: 0 !important;
1952
1953
  margin: 0 !important;
@@ -1969,7 +1970,7 @@ Mi.innerHTML = `
1969
1970
  object-fit: contain;
1970
1971
  }
1971
1972
 
1972
- :host([${_.MEDIA}="audio"]) {
1973
+ :host([${v.MEDIA}="audio"]) {
1973
1974
  min-height: 100px;
1974
1975
  overflow: visible;
1975
1976
  }
@@ -1999,14 +2000,14 @@ var Ni = [
1999
2000
  ], Pi, Fi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Ri = /* @__PURE__ */ new WeakMap(), zi = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Ui = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), qi = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), Ji = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Qi = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), V = /* @__PURE__ */ new WeakMap(), ea = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakMap(), ra = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap(), aa = /* @__PURE__ */ new WeakMap(), H = /* @__PURE__ */ new WeakSet(), oa = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), ha = /* @__PURE__ */ new WeakMap(), ga = /* @__PURE__ */ new WeakMap(), _a = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), ba = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Sa = /* @__PURE__ */ new WeakMap(), Ca = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Ta = /* @__PURE__ */ new WeakMap(), Ea = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Oa = /* @__PURE__ */ new WeakMap(), ka = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), ja = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), Fa = /* @__PURE__ */ new WeakMap(), Ia = /* @__PURE__ */ new WeakMap(), La = /* @__PURE__ */ new WeakMap(), Ra = /* @__PURE__ */ new WeakMap(), za = /* @__PURE__ */ new WeakMap(), Ba = class extends HTMLElement {
2000
2001
  constructor() {
2001
2002
  var t;
2002
- super(), C(this, H), p(this, Fi, /* @__PURE__ */ new Map()), p(this, Ii, 2e3), p(this, Li, null), p(this, Ri, new Nr({ onChange: (e) => h(H, this, U).call(this, _.DURATION, e.toString()) })), p(this, zi, null), p(this, Bi, void 0), p(this, I, void 0), p(this, L, void 0), p(this, Vi, void 0), p(this, R, void 0), p(this, Hi, void 0), p(this, Ui, Ce), p(this, Wi, void 0), p(this, Gi, void 0), p(this, Ki, void 0), p(this, qi, void 0), p(this, z, void 0), p(this, Ji, void 0), p(this, Yi, void 0), p(this, Xi, void 0), p(this, B, void 0), p(this, Zi, void 0), p(this, Qi, void 0), p(this, $i, void 0), p(this, V, void 0), p(this, ea, null), p(this, ta, !1), p(this, na, null), p(this, ra, void 0), p(this, ia, void 0), p(this, aa, void 0), p(this, oa, (e) => {
2003
+ super(), w(this, H), p(this, Fi, /* @__PURE__ */ new Map()), p(this, Ii, 2e3), p(this, Li, null), p(this, Ri, new Nr({ onChange: (e) => h(H, this, U).call(this, v.DURATION, e.toString()) })), p(this, zi, null), p(this, Bi, void 0), p(this, I, void 0), p(this, L, void 0), p(this, Vi, void 0), p(this, R, void 0), p(this, Hi, void 0), p(this, Ui, Se), p(this, Wi, void 0), p(this, Gi, void 0), p(this, Ki, void 0), p(this, qi, void 0), p(this, z, void 0), p(this, Ji, void 0), p(this, Yi, void 0), p(this, Xi, void 0), p(this, B, void 0), p(this, Zi, void 0), p(this, Qi, void 0), p(this, $i, void 0), p(this, V, void 0), p(this, ea, null), p(this, ta, !1), p(this, na, null), p(this, ra, void 0), p(this, ia, void 0), p(this, aa, void 0), p(this, oa, (e) => {
2003
2004
  let t = e.filter((e) => {
2004
2005
  var t;
2005
2006
  return (t = e.video) == null ? void 0 : t.width;
2006
2007
  });
2007
- h(H, this, U).call(this, _.RENDITION_LEVELS, JSON.stringify(t));
2008
+ h(H, this, U).call(this, v.RENDITION_LEVELS, JSON.stringify(t));
2008
2009
  }), p(this, sa, (e) => {
2009
- h(H, this, U).call(this, _.RENDITION_LEVEL, JSON.stringify(e));
2010
+ h(H, this, U).call(this, v.RENDITION_LEVEL, JSON.stringify(e));
2010
2011
  }), p(this, ca, !1), p(this, la, (e) => {
2011
2012
  let t = g(ca, this);
2012
2013
  m(ca, this, !0);
@@ -2019,42 +2020,42 @@ var Ni = [
2019
2020
  g(la, this).call(this, () => {
2020
2021
  switch (e) {
2021
2022
  case "playing":
2022
- h(H, this, W).call(this, _.PAUSED), h(H, this, W).call(this, _.BUFFERING);
2023
+ h(H, this, W).call(this, v.PAUSED), h(H, this, W).call(this, v.BUFFERING);
2023
2024
  break;
2024
2025
  case "paused":
2025
- h(H, this, U).call(this, _.PAUSED, ""), h(H, this, W).call(this, _.BUFFERING);
2026
+ h(H, this, U).call(this, v.PAUSED, ""), h(H, this, W).call(this, v.BUFFERING);
2026
2027
  break;
2027
2028
  case "buffering":
2028
- h(H, this, W).call(this, _.PAUSED), h(H, this, U).call(this, _.BUFFERING, "");
2029
+ h(H, this, W).call(this, v.PAUSED), h(H, this, U).call(this, v.BUFFERING, "");
2029
2030
  break;
2030
2031
  default: break;
2031
2032
  }
2032
2033
  });
2033
2034
  }), p(this, da, (e) => {
2034
2035
  g(la, this).call(this, () => {
2035
- h(H, this, U).call(this, _.VOLUME, e.volume.toString()), e.isMuted ? h(H, this, U).call(this, _.MUTED, "") : h(H, this, W).call(this, _.MUTED);
2036
+ h(H, this, U).call(this, v.VOLUME, e.volume.toString()), e.isMuted ? h(H, this, U).call(this, v.MUTED, "") : h(H, this, W).call(this, v.MUTED);
2036
2037
  });
2037
2038
  }), p(this, fa, ({ channelId: e }) => {
2038
2039
  var t;
2039
- this.setAttribute(_.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, _.BUFFERING);
2040
+ this.setAttribute(v.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, v.BUFFERING);
2040
2041
  }), p(this, pa, ({ channelId: e }) => {
2041
2042
  var t;
2042
- g(Wi, this) !== e && this.setAttribute(_.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, _.BUFFERING);
2043
+ g(Wi, this) !== e && this.setAttribute(v.CHANNEL_ID, e), ((t = g(I, this)) == null ? void 0 : t.playbackState) !== "buffering" && h(H, this, W).call(this, v.BUFFERING);
2043
2044
  }), p(this, ma, (e) => {
2044
- m(Ia, this, Date.now()), h(H, this, U).call(this, _.CHANNELS, JSON.stringify(e));
2045
+ m(Ia, this, Date.now()), h(H, this, U).call(this, v.CHANNELS, JSON.stringify(e));
2045
2046
  }), p(this, ha, (e) => {
2046
2047
  var t;
2047
- h(H, this, U).call(this, _.LANGUAGES, JSON.stringify(e)), (t = g(I, this)) != null && t.language && h(H, this, U).call(this, _.LANGUAGE, g(I, this).language);
2048
+ h(H, this, U).call(this, v.LANGUAGES, JSON.stringify(e)), (t = g(I, this)) != null && t.language && h(H, this, U).call(this, v.LANGUAGE, g(I, this).language);
2048
2049
  }), p(this, ga, (e) => {
2049
2050
  var t;
2050
- if (h(H, this, U).call(this, _.TEXT_TRACKS, JSON.stringify(e)), (t = g(I, this)) != null && t.textTrack) {
2051
+ if (h(H, this, U).call(this, v.TEXT_TRACKS, JSON.stringify(e)), (t = g(I, this)) != null && t.textTrack) {
2051
2052
  var n, r;
2052
- h(H, this, U).call(this, _.TEXT_TRACK, (n = (r = g(I, this)) == null ? void 0 : r.textTrack) == null ? "" : n);
2053
+ h(H, this, U).call(this, v.TEXT_TRACK, (n = (r = g(I, this)) == null ? void 0 : r.textTrack) == null ? "" : n);
2053
2054
  }
2054
2055
  }), p(this, _a, (e) => {
2055
- e != null && e.forVideo ? (h(H, this, U).call(this, _.NEEDS_USER_INPUT_VIDEO, ""), h(H, this, W).call(this, _.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (h(H, this, U).call(this, _.NEEDS_USER_INPUT_AUDIO, ""), h(H, this, W).call(this, _.NEEDS_USER_INPUT_VIDEO));
2056
+ e != null && e.forVideo ? (h(H, this, U).call(this, v.NEEDS_USER_INPUT_VIDEO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_AUDIO)) : e != null && e.forAudio && (h(H, this, U).call(this, v.NEEDS_USER_INPUT_AUDIO, ""), h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO));
2056
2057
  }), p(this, va, (e) => {
2057
- e || h(H, this, W).call(this, _.BUFFERING), g(Ri, this).setLive(e);
2058
+ e || h(H, this, W).call(this, v.BUFFERING), g(Ri, this).setLive(e);
2058
2059
  }), p(this, ya, (e) => {
2059
2060
  var t, n;
2060
2061
  let { urls: r, duration: i } = e;
@@ -2073,7 +2074,7 @@ var Ni = [
2073
2074
  let u = a.toString();
2074
2075
  g(R, this).setTimeshiftUrl(u);
2075
2076
  let d = new URL(a);
2076
- d.pathname = d.pathname.replace(/[^/]*$/, "thumbs/playlist.m3u8"), m(Hi, this, d.toString()), h(H, this, U).call(this, _.TIMESHIFT_THUMBNAIL_URL, g(Hi, this)), g(Ri, this).start({
2077
+ d.pathname = d.pathname.replace(/[^/]*$/, "thumbs/playlist.m3u8"), m(Hi, this, d.toString()), h(H, this, U).call(this, v.TIMESHIFT_THUMBNAIL_URL, g(Hi, this)), g(Ri, this).start({
2077
2078
  multivariantUrl: u,
2078
2079
  params: {
2079
2080
  channelId: (n = g(Wi, this)) == null ? "" : n,
@@ -2083,24 +2084,24 @@ var Ni = [
2083
2084
  windowCapSeconds: s
2084
2085
  });
2085
2086
  }), p(this, ba, () => {
2086
- h(H, this, W).call(this, _.PAUSED), h(H, this, W).call(this, _.BUFFERING);
2087
+ h(H, this, W).call(this, v.PAUSED), h(H, this, W).call(this, v.BUFFERING);
2087
2088
  }), p(this, xa, () => {
2088
- h(H, this, U).call(this, _.PAUSED, ""), h(H, this, W).call(this, _.BUFFERING);
2089
+ h(H, this, U).call(this, v.PAUSED, ""), h(H, this, W).call(this, v.BUFFERING);
2089
2090
  }), p(this, Sa, () => {
2090
- g(Na, this).call(this), h(H, this, W).call(this, _.BUFFERING);
2091
+ g(Na, this).call(this), h(H, this, W).call(this, v.BUFFERING);
2091
2092
  }), p(this, Ca, () => {
2092
2093
  g(R, this) && g(Ri, this).applyLoadedDuration(g(R, this).duration);
2093
2094
  }), p(this, wa, () => {
2094
2095
  var e, t;
2095
2096
  if (!g(R, this) || g(R, this).seeking || (e = (t = g(R, this)).shouldIgnoreTimeupdate) != null && e.call(t)) return;
2096
2097
  let n = g(R, this).currentTime;
2097
- n !== void 0 && h(H, this, U).call(this, _.TIMESHIFT_POSITION, n.toString());
2098
+ n !== void 0 && h(H, this, U).call(this, v.TIMESHIFT_POSITION, n.toString());
2098
2099
  }), p(this, Ta, () => {
2099
- g(R, this) && (h(H, this, U).call(this, _.VOLUME, g(R, this).volume.toString()), g(R, this).muted ? h(H, this, U).call(this, _.MUTED, "") : h(H, this, W).call(this, _.MUTED));
2100
+ g(R, this) && (h(H, this, U).call(this, v.VOLUME, g(R, this).volume.toString()), g(R, this).muted ? h(H, this, U).call(this, v.MUTED, "") : h(H, this, W).call(this, v.MUTED));
2100
2101
  }), p(this, Ea, () => {
2101
- h(H, this, U).call(this, _.BUFFERING, "");
2102
+ h(H, this, U).call(this, v.BUFFERING, "");
2102
2103
  }), p(this, Da, () => {
2103
- h(H, this, W).call(this, _.BUFFERING);
2104
+ h(H, this, W).call(this, v.BUFFERING);
2104
2105
  }), p(this, Oa, () => {
2105
2106
  if (g(ta, this)) {
2106
2107
  if (g(L, this) !== g(R, this)) {
@@ -2138,96 +2139,96 @@ var Ni = [
2138
2139
  }
2139
2140
  }), p(this, Aa, (e) => {
2140
2141
  if (g(I, this) && (g(V, this).debug("Vindral event", { type: e.type }), e instanceof CustomEvent)) switch (e.type) {
2141
- case S.PLAY:
2142
- this.removeAttribute(_.PAUSED);
2142
+ case C.PLAY:
2143
+ this.removeAttribute(v.PAUSED);
2143
2144
  break;
2144
- case S.PAUSE:
2145
- this.setAttribute(_.PAUSED, "");
2145
+ case C.PAUSE:
2146
+ this.setAttribute(v.PAUSED, "");
2146
2147
  break;
2147
- case S.MUTE:
2148
- this.setAttribute(_.MUTED, "");
2148
+ case C.MUTE:
2149
+ this.setAttribute(v.MUTED, "");
2149
2150
  break;
2150
- case S.UNMUTE:
2151
- this.removeAttribute(_.MUTED);
2151
+ case C.UNMUTE:
2152
+ this.removeAttribute(v.MUTED);
2152
2153
  break;
2153
- case S.LOCK_UI:
2154
- this.setAttribute(_.UI_LOCKED, "");
2154
+ case C.LOCK_UI:
2155
+ this.setAttribute(v.UI_LOCKED, "");
2155
2156
  break;
2156
- case S.UNLOCK_UI:
2157
- this.removeAttribute(_.UI_LOCKED);
2157
+ case C.UNLOCK_UI:
2158
+ this.removeAttribute(v.UI_LOCKED);
2158
2159
  break;
2159
- case S.ENTER_FULLSCREEN:
2160
- this.setAttribute(_.FULLSCREEN, "");
2160
+ case C.ENTER_FULLSCREEN:
2161
+ this.setAttribute(v.FULLSCREEN, "");
2161
2162
  break;
2162
- case S.EXIT_FULLSCREEN:
2163
- this.removeAttribute(_.FULLSCREEN);
2163
+ case C.EXIT_FULLSCREEN:
2164
+ this.removeAttribute(v.FULLSCREEN);
2164
2165
  break;
2165
- case S.SET_RENDITION:
2166
+ case C.SET_RENDITION:
2166
2167
  {
2167
2168
  let t = e.detail;
2168
- t.audio && (g(I, this).maxAudioBitRate = t.audio.bitRate), t.video && (g(I, this).maxVideoBitRate = t.video.bitRate, g(I, this).maxSize = t.video, this.setAttribute(_.MAX_VIDEO_BITRATE, String(t.video.bitRate)));
2169
+ t.audio && (g(I, this).maxAudioBitRate = t.audio.bitRate), t.video && (g(I, this).maxVideoBitRate = t.video.bitRate, g(I, this).maxSize = t.video, this.setAttribute(v.MAX_VIDEO_BITRATE, String(t.video.bitRate)));
2169
2170
  }
2170
2171
  break;
2171
- case S.SET_ABR_MODE:
2172
+ case C.SET_ABR_MODE:
2172
2173
  {
2173
2174
  let t = e.detail;
2174
- t ? (g(I, this).abrEnabled = !0, this.setAttribute(_.ABR_ENABLED, "")) : (g(I, this).abrEnabled = !1, this.removeAttribute(_.ABR_ENABLED)), h(H, this, U).call(this, _.ABR_ENABLED, String(t));
2175
+ t ? (g(I, this).abrEnabled = !0, this.setAttribute(v.ABR_ENABLED, "")) : (g(I, this).abrEnabled = !1, this.removeAttribute(v.ABR_ENABLED)), h(H, this, U).call(this, v.ABR_ENABLED, String(t));
2175
2176
  }
2176
2177
  break;
2177
- case S.SET_SIZE_BASED_RESOLUTION_CAP_MODE:
2178
+ case C.SET_SIZE_BASED_RESOLUTION_CAP_MODE:
2178
2179
  {
2179
2180
  let t = e.detail;
2180
- this.setAttribute(_.SIZE_BASED_RESOLUTION_CAP_ENABLED, t ? "true" : "false");
2181
+ this.setAttribute(v.SIZE_BASED_RESOLUTION_CAP_ENABLED, t ? "true" : "false");
2181
2182
  }
2182
2183
  break;
2183
- case S.CHANNEL_GRID_OPENED:
2184
+ case C.CHANNEL_GRID_OPENED:
2184
2185
  g(ea, this) === null && h(H, this, go).call(this);
2185
2186
  break;
2186
- case S.CHANNEL_GRID_CLOSED:
2187
+ case C.CHANNEL_GRID_CLOSED:
2187
2188
  g(ea, this) !== null && (clearTimeout(g(ea, this)), m(ea, this, null));
2188
2189
  break;
2189
- case S.ENTER_PIP:
2190
- this.setAttribute(_.IS_PIP, "");
2190
+ case C.ENTER_PIP:
2191
+ this.setAttribute(v.IS_PIP, "");
2191
2192
  break;
2192
- case S.EXIT_PIP:
2193
- this.removeAttribute(_.IS_PIP);
2193
+ case C.EXIT_PIP:
2194
+ this.removeAttribute(v.IS_PIP);
2194
2195
  break;
2195
- case S.REQUEST_AIRPLAY:
2196
+ case C.REQUEST_AIRPLAY:
2196
2197
  var t;
2197
2198
  (t = g(Xi, this)) == null || t.showPlaybackTargetPicker();
2198
2199
  break;
2199
- case S.SET_LANGUAGE:
2200
- v(e.detail) ? this.setAttribute(_.LANGUAGE, e.detail) : this.removeAttribute(_.LANGUAGE);
2200
+ case C.SET_LANGUAGE:
2201
+ y(e.detail) ? this.setAttribute(v.LANGUAGE, e.detail) : this.removeAttribute(v.LANGUAGE);
2201
2202
  break;
2202
- case S.SET_TEXT_TRACK:
2203
- v(e.detail) ? this.setAttribute(_.TEXT_TRACK, e.detail) : this.removeAttribute(_.TEXT_TRACK);
2203
+ case C.SET_TEXT_TRACK:
2204
+ y(e.detail) ? this.setAttribute(v.TEXT_TRACK, e.detail) : this.removeAttribute(v.TEXT_TRACK);
2204
2205
  break;
2205
- case S.REQUEST_USER_INPUT:
2206
+ case C.REQUEST_USER_INPUT:
2206
2207
  g(I, this).play(), g(I, this).muted = !1;
2207
2208
  break;
2208
- case S.SET_VOLUME:
2209
+ case C.SET_VOLUME:
2209
2210
  {
2210
2211
  let t = e.detail;
2211
- g(I, this).muted && t > 0 ? (g(I, this).muted = !1, g(R, this) && (g(R, this).muted = !1)) : t === 0 && (g(I, this).muted = !0, g(R, this) && (g(R, this).muted = !0)), this.setAttribute(_.VOLUME, t.toString());
2212
+ g(I, this).muted && t > 0 ? (g(I, this).muted = !1, g(R, this) && (g(R, this).muted = !1)) : t === 0 && (g(I, this).muted = !0, g(R, this) && (g(R, this).muted = !0)), this.setAttribute(v.VOLUME, t.toString());
2212
2213
  }
2213
2214
  break;
2214
- case S.SEEK:
2215
+ case C.SEEK:
2215
2216
  this.handleTimeShiftUpdate(String(e.detail));
2216
2217
  break;
2217
- case S.SEEK_PREVIEW: {
2218
+ case C.SEEK_PREVIEW: {
2218
2219
  let t = e.detail;
2219
- t ? h(H, this, U).call(this, _.SEEK_PREVIEW, JSON.stringify(t)) : h(H, this, W).call(this, _.SEEK_PREVIEW);
2220
+ t ? h(H, this, U).call(this, v.SEEK_PREVIEW, JSON.stringify(t)) : h(H, this, W).call(this, v.SEEK_PREVIEW);
2220
2221
  break;
2221
2222
  }
2222
- case S.GO_LIVE:
2223
+ case C.GO_LIVE:
2223
2224
  g(Na, this).call(this);
2224
2225
  break;
2225
- case S.TOGGLE_DEBUG_PANEL:
2226
- this.hasAttribute(_.DEBUG_PANEL_OPEN) ? this.removeAttribute(_.DEBUG_PANEL_OPEN) : this.setAttribute(_.DEBUG_PANEL_OPEN, "");
2226
+ case C.TOGGLE_DEBUG_PANEL:
2227
+ this.hasAttribute(v.DEBUG_PANEL_OPEN) ? this.removeAttribute(v.DEBUG_PANEL_OPEN) : this.setAttribute(v.DEBUG_PANEL_OPEN, "");
2227
2228
  break;
2228
- case S.SET_TARGET_BUFFER_TIME:
2229
+ case C.SET_TARGET_BUFFER_TIME:
2229
2230
  {
2230
- let t = Math.max(50, Math.min(De, e.detail));
2231
+ let t = Math.max(50, Math.min(Ee, e.detail));
2231
2232
  this.setAttribute("target-buffer-time", String(t));
2232
2233
  }
2233
2234
  break;
@@ -2243,22 +2244,22 @@ var Ni = [
2243
2244
  let { metaKey: t, altKey: n, key: r } = e;
2244
2245
  t || n || !Ni.includes(r) || this.addEventListener("keyup", this, { once: !0 });
2245
2246
  }), p(this, Na, () => {
2246
- this.removeAttribute(_.TIMESHIFT_POSITION), this.handleTimeShiftUpdate(!1);
2247
+ this.removeAttribute(v.TIMESHIFT_POSITION), this.handleTimeShiftUpdate(!1);
2247
2248
  }), p(this, Pa, (e) => {
2248
2249
  var t;
2249
2250
  g(R, this) || h(H, this, Ka).call(this), g(L, this) !== g(R, this) && (e && h(H, this, So).call(this), m(L, this, g(R, this)), h(H, this, Wa).call(this), h(H, this, Ga).call(this), h(H, this, Xa).call(this), (t = g(I, this)) == null || t.pause(), m(ta, this, e));
2250
2251
  }), p(this, Fa, (e) => {
2251
2252
  var t, n, r, i;
2252
- e && h(H, this, So).call(this), (t = g(R, this)) == null || t.hide(), m(L, this, g(Vi, this)), h(H, this, Xa).call(this), this.hasAttribute(_.PAUSED) ? (n = g(L, this)) == null || n.pause() : (r = g(L, this)) == null || r.play(), h(H, this, Ja).call(this), h(H, this, Ua).call(this), (i = g(R, this)) == null || i.pause(), e && (m(ta, this, !1), setTimeout(() => {
2253
+ e && h(H, this, So).call(this), (t = g(R, this)) == null || t.hide(), m(L, this, g(Vi, this)), h(H, this, Xa).call(this), this.hasAttribute(v.PAUSED) ? (n = g(L, this)) == null || n.pause() : (r = g(L, this)) == null || r.play(), h(H, this, Ja).call(this), h(H, this, Ua).call(this), (i = g(R, this)) == null || i.pause(), e && (m(ta, this, !1), setTimeout(() => {
2253
2254
  h(H, this, xo).call(this);
2254
2255
  }, 100));
2255
2256
  }), e(this, "handleTimeShiftUpdate", (e) => {
2256
- let t = this.hasAttribute(_.IS_PIP);
2257
+ let t = this.hasAttribute(v.IS_PIP);
2257
2258
  if (e !== !1) {
2258
2259
  var n;
2259
2260
  g(Pa, this).call(this, t), (n = g(R, this)) == null || n.seek({
2260
2261
  time: parseFloat(e),
2261
- playWhenReady: !this.hasAttribute(_.PAUSED)
2262
+ playWhenReady: !this.hasAttribute(v.PAUSED)
2262
2263
  });
2263
2264
  return;
2264
2265
  }
@@ -2267,21 +2268,21 @@ var Ni = [
2267
2268
  var e;
2268
2269
  let t = (e = g(I, this)) == null ? void 0 : e.currentRenditionLevel;
2269
2270
  if (!(t != null && t.video)) return;
2270
- let n = o(t.video.width > t.video.height ? "landscape-primary" : "portrait-primary");
2271
+ let n = a(t.video.width > t.video.height ? "landscape-primary" : "portrait-primary");
2271
2272
  n && n.catch(() => {});
2272
2273
  }), p(this, Ra, () => {
2273
- r();
2274
+ n();
2274
2275
  }), p(this, za, null);
2275
- let n = this.attachShadow({ mode: "open" });
2276
- n.appendChild(Mi.content.cloneNode(!0));
2277
- let i = ve(this.getAttribute("log-level"));
2278
- m(V, this, de.get().createContext("VindralController")), g(V, this).setLevel(i), m(Bi, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), m(ra, this, new or(n)), this.addEventListener("focusin", (e) => {
2276
+ let r = this.attachShadow({ mode: "open" });
2277
+ r.appendChild(Mi.content.cloneNode(!0));
2278
+ let i = _e(this.getAttribute("log-level"));
2279
+ m(V, this, ue.get().createContext("VindralController")), g(V, this).setLevel(i), m(Bi, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector("#time-shift-video")), m(ra, this, new ar(r)), this.addEventListener("focusin", (e) => {
2279
2280
  Pi = this, m(aa, this, e.composedPath()[0]);
2280
2281
  });
2281
2282
  }
2282
2283
  connectedCallback() {
2283
2284
  var e = this;
2284
- return t(function* () {
2285
+ return _(function* () {
2285
2286
  if (g(ia, e) !== void 0) {
2286
2287
  if (clearTimeout(g(ia, e)), m(ia, e, void 0), document.activeElement === document.body && Pi === e) {
2287
2288
  var t;
@@ -2289,8 +2290,8 @@ var Ni = [
2289
2290
  }
2290
2291
  return;
2291
2292
  }
2292
- x(e.getAttribute("auto-instance-enabled"), !0) && (yield h(H, e, Ha).call(e));
2293
- for (let t of Object.values(S)) e.addEventListener(t, g(Aa, e));
2293
+ S(e.getAttribute("auto-instance-enabled"), !0) && (yield h(H, e, Ha).call(e));
2294
+ for (let t of Object.values(C)) e.addEventListener(t, g(Aa, e));
2294
2295
  window.PointerEvent ? (e.addEventListener("pointerdown", e), e.addEventListener("pointermove", e), e.addEventListener("pointerup", e)) : e.addEventListener("mousemove", e), e.addEventListener("mouseleave", e), e.addEventListener("keydown", e), e.addEventListener("resize", e), e.addEventListener("dblclick", e), g(la, e).call(e, () => e.connectListener(e)), h(H, e, so).call(e), e.tabIndex = 0, e.focus({ preventScroll: !0 });
2295
2296
  })();
2296
2297
  }
@@ -2307,7 +2308,7 @@ var Ni = [
2307
2308
  newValue: n
2308
2309
  }), e) {
2309
2310
  case "channel-id":
2310
- m(Wi, this, n), h(H, this, Va).call(this), g(I, this) && n && (g(I, this).channelId = n, g(I, this).play(), h(H, this, U).call(this, _.BUFFERING, ""), h(H, this, U).call(this, _.CHANNEL_ID, n), h(H, this, U).call(this, _.POSTER_SRC, g(I, this).getThumbnailUrl()));
2311
+ m(Wi, this, n), h(H, this, Va).call(this), g(I, this) && n && (g(I, this).channelId = n, g(I, this).play(), h(H, this, U).call(this, v.BUFFERING, ""), h(H, this, U).call(this, v.CHANNEL_ID, n), h(H, this, U).call(this, v.POSTER_SRC, g(I, this).getThumbnailUrl()));
2311
2312
  break;
2312
2313
  case "channel-group-id":
2313
2314
  m(Gi, this, n);
@@ -2316,13 +2317,13 @@ var Ni = [
2316
2317
  n && m(Ui, this, n);
2317
2318
  break;
2318
2319
  case "paused":
2319
- if (v(n)) {
2320
+ if (y(n)) {
2320
2321
  if (!g(ca, this)) {
2321
2322
  var r;
2322
2323
  (r = g(L, this)) == null || r.pause();
2323
2324
  }
2324
- h(H, this, U).call(this, _.PAUSED, "");
2325
- } else if (h(H, this, W).call(this, _.NEEDS_USER_INPUT_VIDEO), h(H, this, W).call(this, _.PAUSED), !g(ca, this)) {
2325
+ h(H, this, U).call(this, v.PAUSED, "");
2326
+ } else if (h(H, this, W).call(this, v.NEEDS_USER_INPUT_VIDEO), h(H, this, W).call(this, v.PAUSED), !g(ca, this)) {
2326
2327
  var i;
2327
2328
  (i = g(L, this)) == null || i.play();
2328
2329
  }
@@ -2330,71 +2331,71 @@ var Ni = [
2330
2331
  case "target-buffer-time":
2331
2332
  if (n) {
2332
2333
  let e = parseInt(n, 10);
2333
- Number.isNaN(e) || (g(I, this) && (g(I, this).targetBufferTime = e), h(H, this, U).call(this, _.TARGET_BUFFER_TIME, String(e)));
2334
+ Number.isNaN(e) || (g(I, this) && (g(I, this).targetBufferTime = e), h(H, this, U).call(this, v.TARGET_BUFFER_TIME, String(e)));
2334
2335
  }
2335
2336
  break;
2336
2337
  case "min-buffer-time":
2337
- if (g(I, this) && v(n)) {
2338
- let e = ye(n);
2338
+ if (g(I, this) && y(n)) {
2339
+ let e = ve(n);
2339
2340
  e !== void 0 && g(I, this).updateBufferTimeConfig({ minBufferTime: e });
2340
2341
  }
2341
2342
  break;
2342
2343
  case "max-buffer-time":
2343
- if (g(I, this) && v(n)) {
2344
- let e = ye(n);
2344
+ if (g(I, this) && y(n)) {
2345
+ let e = ve(n);
2345
2346
  e !== void 0 && g(I, this).updateBufferTimeConfig({ maxBufferTime: e });
2346
2347
  }
2347
2348
  break;
2348
- case _.DEBUG_PANEL_OPEN:
2349
- v(n) ? h(H, this, U).call(this, _.DEBUG_PANEL_OPEN, "") : h(H, this, W).call(this, _.DEBUG_PANEL_OPEN), h(H, this, Do).call(this);
2349
+ case v.DEBUG_PANEL_OPEN:
2350
+ y(n) ? h(H, this, U).call(this, v.DEBUG_PANEL_OPEN, "") : h(H, this, W).call(this, v.DEBUG_PANEL_OPEN), h(H, this, Do).call(this);
2350
2351
  break;
2351
2352
  case "user-interacting":
2352
- v(n) ? h(H, this, U).call(this, _.USER_INTERACTING, "") : h(H, this, W).call(this, _.USER_INTERACTING);
2353
+ y(n) ? h(H, this, U).call(this, v.USER_INTERACTING, "") : h(H, this, W).call(this, v.USER_INTERACTING);
2353
2354
  break;
2354
2355
  case "muted":
2355
- if (g(I, this)) if (v(n)) {
2356
+ if (g(I, this)) if (y(n)) {
2356
2357
  var a;
2357
- if (g(ca, this) || (g(I, this).muted = !0, g(R, this) && (g(R, this).muted = !0)), h(H, this, U).call(this, _.MUTED, ""), (a = g(B, this)) != null && a.isMediaElementSource) {
2358
+ if (g(ca, this) || (g(I, this).muted = !0, g(R, this) && (g(R, this).muted = !0)), h(H, this, U).call(this, v.MUTED, ""), (a = g(B, this)) != null && a.isMediaElementSource) {
2358
2359
  var o;
2359
- (o = g(B, this)) == null || o.stop(), h(H, this, U).call(this, _.VOLUME_LEVEL, JSON.stringify({
2360
+ (o = g(B, this)) == null || o.stop(), h(H, this, U).call(this, v.VOLUME_LEVEL, JSON.stringify({
2360
2361
  left: null,
2361
2362
  right: null
2362
2363
  }));
2363
2364
  }
2364
2365
  } else {
2365
2366
  var s;
2366
- g(ca, this) || (g(I, this).muted = !1, g(R, this) && (g(R, this).muted = !1), g(I, this).volume === 0 && (g(I, this).volume = .3)), h(H, this, W).call(this, _.MUTED), h(H, this, W).call(this, _.NEEDS_USER_INPUT_AUDIO), (s = g(B, this)) == null || s.start();
2367
+ g(ca, this) || (g(I, this).muted = !1, g(R, this) && (g(R, this).muted = !1), g(I, this).volume === 0 && (g(I, this).volume = .3)), h(H, this, W).call(this, v.MUTED), h(H, this, W).call(this, v.NEEDS_USER_INPUT_AUDIO), (s = g(B, this)) == null || s.start();
2367
2368
  }
2368
2369
  break;
2369
2370
  case "ui-locked":
2370
- v(n) ? h(H, this, vo).call(this) : h(H, this, yo).call(this);
2371
+ y(n) ? h(H, this, vo).call(this) : h(H, this, yo).call(this);
2371
2372
  break;
2372
2373
  case "is-fullscreen":
2373
- v(n) ? h(H, this, Co).call(this) : h(H, this, wo).call(this);
2374
+ y(n) ? h(H, this, Co).call(this) : h(H, this, wo).call(this);
2374
2375
  break;
2375
2376
  case "abr-enabled":
2376
2377
  {
2377
- let e = x(n == null ? null : n, !1);
2378
- g(I, this) && (g(I, this).abrEnabled = e, e && (g(I, this).sizeBasedResolutionCapEnabled = x(this.getAttribute(_.SIZE_BASED_RESOLUTION_CAP_ENABLED), !0))), e ? h(H, this, U).call(this, _.ABR_ENABLED, "") : h(H, this, W).call(this, _.ABR_ENABLED);
2378
+ let e = S(n == null ? null : n, !1);
2379
+ g(I, this) && (g(I, this).abrEnabled = e, e && (g(I, this).sizeBasedResolutionCapEnabled = S(this.getAttribute(v.SIZE_BASED_RESOLUTION_CAP_ENABLED), !0))), e ? h(H, this, U).call(this, v.ABR_ENABLED, "") : h(H, this, W).call(this, v.ABR_ENABLED);
2379
2380
  }
2380
2381
  break;
2381
2382
  case "size-based-resolution-cap-enabled":
2382
2383
  {
2383
- let e = x(n == null ? null : n, !0);
2384
- g(I, this) && (g(I, this).sizeBasedResolutionCapEnabled = e), h(H, this, U).call(this, _.SIZE_BASED_RESOLUTION_CAP_ENABLED, e ? "true" : "false");
2384
+ let e = S(n == null ? null : n, !0);
2385
+ g(I, this) && (g(I, this).sizeBasedResolutionCapEnabled = e), h(H, this, U).call(this, v.SIZE_BASED_RESOLUTION_CAP_ENABLED, e ? "true" : "false");
2385
2386
  }
2386
2387
  break;
2387
2388
  case "max-video-bit-rate":
2388
- m(Ki, this, n), v(n) ? h(H, this, U).call(this, _.MAX_VIDEO_BITRATE, n) : h(H, this, W).call(this, _.MAX_VIDEO_BITRATE), g(R, this) && (g(R, this).maxVideoBitRate = n ? ye(n) : void 0);
2389
+ m(Ki, this, n), y(n) ? h(H, this, U).call(this, v.MAX_VIDEO_BITRATE, n) : h(H, this, W).call(this, v.MAX_VIDEO_BITRATE), g(R, this) && (g(R, this).maxVideoBitRate = n ? ve(n) : void 0);
2389
2390
  break;
2390
2391
  case "max-initial-bit-rate":
2391
- m(qi, this, n), v(n) ? h(H, this, U).call(this, _.MAX_INITIAL_BITRATE, n) : h(H, this, W).call(this, _.MAX_INITIAL_BITRATE);
2392
+ m(qi, this, n), y(n) ? h(H, this, U).call(this, v.MAX_INITIAL_BITRATE, n) : h(H, this, W).call(this, v.MAX_INITIAL_BITRATE);
2392
2393
  break;
2393
2394
  case "is-pip":
2394
- v(n) ? h(H, this, xo).call(this) : h(H, this, So).call(this);
2395
+ y(n) ? h(H, this, xo).call(this) : h(H, this, So).call(this);
2395
2396
  break;
2396
2397
  case "is-airplaying":
2397
- if (v(n)) {
2398
+ if (y(n)) {
2398
2399
  var c, l;
2399
2400
  (c = g(I, this)) != null && c.mediaElement && (g(I, this).mediaElement.style.display = "hidden"), (l = g(I, this)) == null || l.pause();
2400
2401
  } else {
@@ -2403,7 +2404,7 @@ var Ni = [
2403
2404
  }
2404
2405
  break;
2405
2406
  case "is-casting":
2406
- if (v(n)) {
2407
+ if (y(n)) {
2407
2408
  var d, f;
2408
2409
  (d = g(Ji, this)) != null && d.isFullscreen() && h(H, this, wo).call(this), (f = g(I, this)) == null || f.pause();
2409
2410
  } else if (!document.hidden) {
@@ -2418,35 +2419,35 @@ var Ni = [
2418
2419
  m($i, this, n);
2419
2420
  break;
2420
2421
  case "language":
2421
- g(I, this) && (g(I, this).language = n, v(n) ? h(H, this, U).call(this, _.LANGUAGE, n) : h(H, this, W).call(this, _.LANGUAGE));
2422
+ g(I, this) && (g(I, this).language = n, y(n) ? h(H, this, U).call(this, v.LANGUAGE, n) : h(H, this, W).call(this, v.LANGUAGE));
2422
2423
  break;
2423
2424
  case "text-track":
2424
- g(I, this) && (g(I, this).textTrack = n, v(n) ? h(H, this, U).call(this, _.TEXT_TRACK, n) : h(H, this, W).call(this, _.TEXT_TRACK));
2425
+ g(I, this) && (g(I, this).textTrack = n, y(n) ? h(H, this, U).call(this, v.TEXT_TRACK, n) : h(H, this, W).call(this, v.TEXT_TRACK));
2425
2426
  break;
2426
2427
  case "log-level":
2427
- v(n) && g(V, this).setLevel(ve(n));
2428
+ y(n) && g(V, this).setLevel(_e(n));
2428
2429
  break;
2429
2430
  case "authentication-token":
2430
- if (v(n)) {
2431
+ if (y(n)) {
2431
2432
  var te, ne;
2432
- (te = g(I, this)) == null || te.updateAuthenticationToken(n), (ne = g(Xi, this)) == null || ne.updateAuthenticationToken(n), h(H, this, U).call(this, _.AUTHENTICATION_TOKEN, n);
2433
- } else h(H, this, W).call(this, _.AUTHENTICATION_TOKEN);
2433
+ (te = g(I, this)) == null || te.updateAuthenticationToken(n), (ne = g(Xi, this)) == null || ne.updateAuthenticationToken(n), h(H, this, U).call(this, v.AUTHENTICATION_TOKEN, n);
2434
+ } else h(H, this, W).call(this, v.AUTHENTICATION_TOKEN);
2434
2435
  break;
2435
2436
  case "volume":
2436
- if (v(n)) {
2437
+ if (y(n)) {
2437
2438
  let e = parseFloat(n);
2438
2439
  g(R, this) && (g(R, this).volume = e), g(I, this) && (g(I, this).volume = e);
2439
2440
  }
2440
2441
  break;
2441
2442
  case "timeshift-position":
2442
- v(n) ? h(H, this, U).call(this, _.TIMESHIFT_POSITION, n) : h(H, this, W).call(this, _.TIMESHIFT_POSITION);
2443
+ y(n) ? h(H, this, U).call(this, v.TIMESHIFT_POSITION, n) : h(H, this, W).call(this, v.TIMESHIFT_POSITION);
2443
2444
  break;
2444
2445
  case "timeline-markers":
2445
- v(n) ? h(H, this, U).call(this, _.TIMELINE_MARKERS, n) : h(H, this, W).call(this, _.TIMELINE_MARKERS);
2446
+ y(n) ? h(H, this, U).call(this, v.TIMELINE_MARKERS, n) : h(H, this, W).call(this, v.TIMELINE_MARKERS);
2446
2447
  break;
2447
2448
  case "drm-headers":
2448
- if (v(n)) {
2449
- let e = Te(n);
2449
+ if (y(n)) {
2450
+ let e = we(n);
2450
2451
  if (e) {
2451
2452
  var re;
2452
2453
  (re = g(I, this)) == null || re.drm.setHeaders(e);
@@ -2454,8 +2455,8 @@ var Ni = [
2454
2455
  }
2455
2456
  break;
2456
2457
  case "drm-queryparams":
2457
- if (v(n)) {
2458
- let e = Te(n);
2458
+ if (y(n)) {
2459
+ let e = we(n);
2459
2460
  if (e) {
2460
2461
  var ie;
2461
2462
  (ie = g(I, this)) == null || ie.drm.setQueryParams(e);
@@ -2464,9 +2465,9 @@ var Ni = [
2464
2465
  break;
2465
2466
  }
2466
2467
  [
2467
- _.USER_INTERACTING,
2468
- _.PAUSED,
2469
- _.HIDE_UI_ON_PAUSE
2468
+ v.USER_INTERACTING,
2469
+ v.PAUSED,
2470
+ v.HIDE_UI_ON_PAUSE
2470
2471
  ].includes(e) && h(H, this, bo).call(this);
2471
2472
  }
2472
2473
  }
@@ -2474,62 +2475,62 @@ var Ni = [
2474
2475
  Rr(e).forEach((t) => {
2475
2476
  let n = g(Fi, this).get(t);
2476
2477
  switch (n ? n.push(e) : g(Fi, this).set(t, [e]), t) {
2477
- case _.PAUSED:
2478
+ case v.PAUSED:
2478
2479
  var r;
2479
- (((r = g(I, this)) == null ? void 0 : r.playbackState) === "paused" || this.hasAttribute(_.PAUSED)) && e.setAttribute(_.PAUSED, "");
2480
+ (((r = g(I, this)) == null ? void 0 : r.playbackState) === "paused" || this.hasAttribute(v.PAUSED)) && e.setAttribute(v.PAUSED, "");
2480
2481
  break;
2481
- case _.MUTED:
2482
+ case v.MUTED:
2482
2483
  var i;
2483
- ((i = g(I, this)) != null && i.muted || this.hasAttribute(_.MUTED)) && e.setAttribute(_.MUTED, "");
2484
+ ((i = g(I, this)) != null && i.muted || this.hasAttribute(v.MUTED)) && e.setAttribute(v.MUTED, "");
2484
2485
  break;
2485
- case _.MAX_VIDEO_BITRATE:
2486
- g(Ki, this) && e.setAttribute(_.MAX_VIDEO_BITRATE, g(Ki, this));
2486
+ case v.MAX_VIDEO_BITRATE:
2487
+ g(Ki, this) && e.setAttribute(v.MAX_VIDEO_BITRATE, g(Ki, this));
2487
2488
  break;
2488
- case _.SIZE_BASED_RESOLUTION_CAP_ENABLED:
2489
+ case v.SIZE_BASED_RESOLUTION_CAP_ENABLED:
2489
2490
  {
2490
2491
  var a, o;
2491
- let t = (a = (o = g(I, this)) == null ? void 0 : o.sizeBasedResolutionCapEnabled) == null ? x(this.getAttribute(_.SIZE_BASED_RESOLUTION_CAP_ENABLED), !0) : a;
2492
- e.setAttribute(_.SIZE_BASED_RESOLUTION_CAP_ENABLED, t ? "true" : "false");
2492
+ let t = (a = (o = g(I, this)) == null ? void 0 : o.sizeBasedResolutionCapEnabled) == null ? S(this.getAttribute(v.SIZE_BASED_RESOLUTION_CAP_ENABLED), !0) : a;
2493
+ e.setAttribute(v.SIZE_BASED_RESOLUTION_CAP_ENABLED, t ? "true" : "false");
2493
2494
  }
2494
2495
  break;
2495
- case _.CHANNEL_ID:
2496
- g(Wi, this) && e.setAttribute(_.CHANNEL_ID, g(Wi, this));
2496
+ case v.CHANNEL_ID:
2497
+ g(Wi, this) && e.setAttribute(v.CHANNEL_ID, g(Wi, this));
2497
2498
  break;
2498
- case _.CHANNEL_GROUP_ID:
2499
- g(Gi, this) && e.setAttribute(_.CHANNEL_GROUP_ID, g(Gi, this));
2499
+ case v.CHANNEL_GROUP_ID:
2500
+ g(Gi, this) && e.setAttribute(v.CHANNEL_GROUP_ID, g(Gi, this));
2500
2501
  break;
2501
- case _.AUTHENTICATION_TOKEN: {
2502
+ case v.AUTHENTICATION_TOKEN: {
2502
2503
  let t = this.getAttribute("authentication-token");
2503
- t && e.setAttribute(_.AUTHENTICATION_TOKEN, t);
2504
+ t && e.setAttribute(v.AUTHENTICATION_TOKEN, t);
2504
2505
  break;
2505
2506
  }
2506
- case _.TIMELINE_MARKERS: {
2507
- let t = this.getAttribute(_.TIMELINE_MARKERS);
2508
- v(t) && e.setAttribute(_.TIMELINE_MARKERS, t);
2507
+ case v.TIMELINE_MARKERS: {
2508
+ let t = this.getAttribute(v.TIMELINE_MARKERS);
2509
+ y(t) && e.setAttribute(v.TIMELINE_MARKERS, t);
2509
2510
  break;
2510
2511
  }
2511
- case _.TIMESHIFT_THUMBNAIL_URL:
2512
- g(Hi, this) && e.setAttribute(_.TIMESHIFT_THUMBNAIL_URL, g(Hi, this));
2512
+ case v.TIMESHIFT_THUMBNAIL_URL:
2513
+ g(Hi, this) && e.setAttribute(v.TIMESHIFT_THUMBNAIL_URL, g(Hi, this));
2513
2514
  break;
2514
- case _.DEBUG_PANEL_OPEN:
2515
- this.hasAttribute(_.DEBUG_PANEL_OPEN) && e.setAttribute(_.DEBUG_PANEL_OPEN, "");
2515
+ case v.DEBUG_PANEL_OPEN:
2516
+ this.hasAttribute(v.DEBUG_PANEL_OPEN) && e.setAttribute(v.DEBUG_PANEL_OPEN, "");
2516
2517
  break;
2517
- case _.TARGET_BUFFER_TIME: {
2518
+ case v.TARGET_BUFFER_TIME: {
2518
2519
  let t = this.getAttribute("target-buffer-time");
2519
- t && e.setAttribute(_.TARGET_BUFFER_TIME, t);
2520
+ t && e.setAttribute(v.TARGET_BUFFER_TIME, t);
2520
2521
  break;
2521
2522
  }
2522
- case _.PLAYBACK_LATENCY: {
2523
+ case v.PLAYBACK_LATENCY: {
2523
2524
  var s;
2524
2525
  let t = (s = g(I, this)) == null ? void 0 : s.playbackLatency;
2525
- typeof t == "number" && e.setAttribute(_.PLAYBACK_LATENCY, String(t));
2526
+ typeof t == "number" && e.setAttribute(v.PLAYBACK_LATENCY, String(t));
2526
2527
  break;
2527
2528
  }
2528
- case _.CONNECTION_STATE:
2529
- g(I, this) && e.setAttribute(_.CONNECTION_STATE, g(I, this).connectionState);
2529
+ case v.CONNECTION_STATE:
2530
+ g(I, this) && e.setAttribute(v.CONNECTION_STATE, g(I, this).connectionState);
2530
2531
  break;
2531
- case _.ABR_ENABLED:
2532
- g(I, this) ? e.setAttribute(_.ABR_ENABLED, String(g(I, this).abrEnabled)) : v(this.getAttribute(_.ABR_ENABLED)) ? e.setAttribute(_.ABR_ENABLED, this.getAttribute(_.ABR_ENABLED) || "") : e.removeAttribute(_.ABR_ENABLED);
2532
+ case v.ABR_ENABLED:
2533
+ g(I, this) ? e.setAttribute(v.ABR_ENABLED, String(g(I, this).abrEnabled)) : y(this.getAttribute(v.ABR_ENABLED)) ? e.setAttribute(v.ABR_ENABLED, this.getAttribute(v.ABR_ENABLED) || "") : e.removeAttribute(v.ABR_ENABLED);
2533
2534
  break;
2534
2535
  }
2535
2536
  });
@@ -2550,40 +2551,40 @@ var Ni = [
2550
2551
  return g(Xi, this);
2551
2552
  }
2552
2553
  get timelineMarkers() {
2553
- return Kr(this.getAttribute(_.TIMELINE_MARKERS));
2554
+ return Kr(this.getAttribute(v.TIMELINE_MARKERS));
2554
2555
  }
2555
2556
  set timelineMarkers(e) {
2556
2557
  let t = Gr(e);
2557
- t.length === 0 ? this.removeAttribute(_.TIMELINE_MARKERS) : this.setAttribute(_.TIMELINE_MARKERS, JSON.stringify(t));
2558
+ t.length === 0 ? this.removeAttribute(v.TIMELINE_MARKERS) : this.setAttribute(v.TIMELINE_MARKERS, JSON.stringify(t));
2558
2559
  }
2559
2560
  connect() {
2560
2561
  h(H, this, Ha).call(this);
2561
2562
  }
2562
2563
  };
2563
2564
  function Va() {
2564
- g(Hi, this) && (m(Hi, this, void 0), h(H, this, W).call(this, _.TIMESHIFT_THUMBNAIL_URL), h(H, this, W).call(this, _.SEEK_PREVIEW));
2565
+ g(Hi, this) && (m(Hi, this, void 0), h(H, this, W).call(this, v.TIMESHIFT_THUMBNAIL_URL), h(H, this, W).call(this, v.SEEK_PREVIEW));
2565
2566
  }
2566
2567
  function Ha() {
2567
2568
  var e = this;
2568
- return t(function* () {
2569
+ return _(function* () {
2569
2570
  var t, n;
2570
2571
  if (!g(Wi, e)) return;
2571
2572
  h(H, e, Va).call(e);
2572
2573
  let r = g(L, e) === g(Vi, e);
2573
2574
  g(Ri, e).stop(), yield (t = g(I, e)) == null ? void 0 : t.unload(), r && m(L, e, void 0);
2574
- let i = e.hasAttribute(_.PAUSED), a = e.hasAttribute(_.MUTED), o = ye(e.getAttribute(_.VOLUME)), s = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = be(e.getAttribute(_.MEDIA)), l = e.getAttribute(_.TEXT_TRACK) || void 0, u = e.getAttribute("edge-url") || void 0, d = e.getAttribute("authentication-token") || void 0, f = ye(e.getAttribute("max-video-bit-rate")), ee = ye(e.getAttribute("max-initial-bit-rate")), te = Se(e.getAttribute("max-size")), re = ye(e.getAttribute("min-buffer-time")), ie = ye(e.getAttribute("max-buffer-time")), ae = x(e.getAttribute("burst-enabled")), oe = x(e.getAttribute("mse-enabled")), se = x(e.getAttribute("mse-opus-enabled")), p = x(e.getAttribute("background-play-enabled")), ce = x(e.getAttribute("ios-background-play-enabled")), le = x(e.getAttribute("media-session-enabled")), ue = x(e.getAttribute("ios-wake-lock-enabled")), de = x(e.getAttribute("stream-to-media-element-enabled")), fe = x(e.getAttribute("ios-media-element-enabled")), pe = x(e.getAttribute("abr-enabled"), !0), me = x(e.getAttribute("size-based-resolution-cap-enabled")), ge = x(e.getAttribute("telemetry-enabled")), y = Oe(e.getAttribute("video-codecs")), Ce = _e(e.getAttribute("poster")), we = xe(e.getAttribute("advanced")), b = ve(e.getAttribute("log-level")), Ee = {
2575
- headers: Te(e.getAttribute("drm-headers")),
2576
- queryParams: Te(e.getAttribute("drm-queryparams")),
2575
+ let i = e.hasAttribute(v.PAUSED), a = e.hasAttribute(v.MUTED), o = ve(e.getAttribute(v.VOLUME)), s = typeof o == "number" ? Math.max(0, Math.min(1, o)) : o, c = ye(e.getAttribute(v.MEDIA)), l = e.getAttribute(v.TEXT_TRACK) || void 0, u = e.getAttribute("edge-url") || void 0, d = e.getAttribute("authentication-token") || void 0, f = ve(e.getAttribute("max-video-bit-rate")), ee = ve(e.getAttribute("max-initial-bit-rate")), ne = xe(e.getAttribute("max-size")), re = ve(e.getAttribute("min-buffer-time")), ie = ve(e.getAttribute("max-buffer-time")), ae = S(e.getAttribute("burst-enabled")), oe = S(e.getAttribute("mse-enabled")), p = S(e.getAttribute("mse-opus-enabled")), _ = S(e.getAttribute("background-play-enabled")), se = S(e.getAttribute("ios-background-play-enabled")), ce = S(e.getAttribute("media-session-enabled")), le = S(e.getAttribute("ios-wake-lock-enabled")), ue = S(e.getAttribute("stream-to-media-element-enabled")), de = S(e.getAttribute("ios-media-element-enabled")), fe = S(e.getAttribute("abr-enabled"), !0), pe = S(e.getAttribute("size-based-resolution-cap-enabled")), he = S(e.getAttribute("telemetry-enabled")), b = De(e.getAttribute("video-codecs")), Se = ge(e.getAttribute("poster")), Ce = be(e.getAttribute("advanced")), x = _e(e.getAttribute("log-level")), Te = {
2576
+ headers: we(e.getAttribute("drm-headers")),
2577
+ queryParams: we(e.getAttribute("drm-queryparams")),
2577
2578
  widevine: {
2578
- videoRobustness: he(e.getAttribute("drm-widevine-video-robustness")),
2579
- audioRobustness: he(e.getAttribute("drm-widevine-audio-robustness"))
2579
+ videoRobustness: me(e.getAttribute("drm-widevine-video-robustness")),
2580
+ audioRobustness: me(e.getAttribute("drm-widevine-audio-robustness"))
2580
2581
  },
2581
2582
  playready: {
2582
- videoRobustness: he(e.getAttribute("drm-playready-video-robustness")),
2583
- audioRobustness: he(e.getAttribute("drm-playready-audio-robustness"))
2583
+ videoRobustness: me(e.getAttribute("drm-playready-video-robustness")),
2584
+ audioRobustness: me(e.getAttribute("drm-playready-audio-robustness"))
2584
2585
  }
2585
- }, De = Pe(e.getAttribute("webcodecs-hardware-acceleration")), ke = Ne(e.getAttribute("decoders")), S = x(e.getAttribute("offscreen-canvas-enabled")), C = x(e.getAttribute("webtransport-enabled")), Ae = x(e.getAttribute("unstable-webtransport-enabled")), je = ye(e.getAttribute("reconnect-retries")), Me = je === void 0 ? void 0 : (e) => e.reconnectRetries < je, Fe = e.getAttribute("language") || void 0;
2586
- m(I, e, new ne({
2586
+ }, Ee = Ne(e.getAttribute("webcodecs-hardware-acceleration")), Oe = Me(e.getAttribute("decoders")), C = S(e.getAttribute("offscreen-canvas-enabled")), w = S(e.getAttribute("webtransport-enabled")), ke = S(e.getAttribute("unstable-webtransport-enabled")), Ae = ve(e.getAttribute("reconnect-retries")), je = Ae === void 0 ? void 0 : (e) => e.reconnectRetries < Ae, Pe = e.getAttribute("language") || void 0;
2587
+ m(I, e, new te({
2587
2588
  url: g(Ui, e),
2588
2589
  channelId: g(Wi, e),
2589
2590
  channelGroupId: g(Gi, e),
@@ -2592,47 +2593,47 @@ function Ha() {
2592
2593
  muted: a,
2593
2594
  volume: s,
2594
2595
  media: c,
2595
- maxSize: te,
2596
+ maxSize: ne,
2596
2597
  maxVideoBitRate: f,
2597
2598
  maxInitialBitRate: ee,
2598
2599
  minBufferTime: re,
2599
2600
  maxBufferTime: ie,
2600
2601
  burstEnabled: ae,
2601
2602
  mseEnabled: oe,
2602
- mseOpusEnabled: se,
2603
- backgroundPlayEnabled: p,
2604
- iosBackgroundPlayEnabled: ce,
2605
- mediaSessionEnabled: le,
2606
- iosWakeLockEnabled: ue,
2607
- streamToMediaElementEnabled: de,
2608
- iosMediaElementEnabled: fe,
2609
- abrEnabled: pe,
2610
- sizeBasedResolutionCapEnabled: me,
2611
- telemetryEnabled: ge,
2612
- videoCodecs: y,
2613
- poster: Ce,
2603
+ mseOpusEnabled: p,
2604
+ backgroundPlayEnabled: _,
2605
+ iosBackgroundPlayEnabled: se,
2606
+ mediaSessionEnabled: ce,
2607
+ iosWakeLockEnabled: le,
2608
+ streamToMediaElementEnabled: ue,
2609
+ iosMediaElementEnabled: de,
2610
+ abrEnabled: fe,
2611
+ sizeBasedResolutionCapEnabled: pe,
2612
+ telemetryEnabled: he,
2613
+ videoCodecs: b,
2614
+ poster: Se,
2614
2615
  textTrack: l,
2615
- advanced: we,
2616
- logLevel: b,
2617
- language: Fe,
2618
- drm: Ee,
2619
- webtransportEnabled: C,
2620
- unstableWebtransportEnabled: Ae,
2621
- webcodecsHardwareAcceleration: De,
2622
- decoders: ke,
2623
- offscreenCanvasEnabled: S,
2624
- reconnectHandler: Me
2625
- })), m(Vi, e, new Di(g(I, e))), g(L, e) || m(L, e, g(Vi, e)), h(H, e, Ua).call(e), m(zi, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), g(zi, e) && (g(I, e).attach(g(zi, e)), g(ra, e).observe(g(zi, e))), e.setAttribute(_.MEDIA, g(I, e).media);
2626
- let Ie = g(I, e);
2616
+ advanced: Ce,
2617
+ logLevel: x,
2618
+ language: Pe,
2619
+ drm: Te,
2620
+ webtransportEnabled: w,
2621
+ unstableWebtransportEnabled: ke,
2622
+ webcodecsHardwareAcceleration: Ee,
2623
+ decoders: Oe,
2624
+ offscreenCanvasEnabled: C,
2625
+ reconnectHandler: je
2626
+ })), m(Vi, e, new Di(g(I, e))), g(L, e) || m(L, e, g(Vi, e)), h(H, e, Ua).call(e), m(zi, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), g(zi, e) && (g(I, e).attach(g(zi, e)), g(ra, e).observe(g(zi, e))), e.setAttribute(v.MEDIA, g(I, e).media);
2627
+ let Fe = g(I, e);
2627
2628
  g(la, e).call(e, () => {
2628
- Ie.muted && h(H, e, U).call(e, _.MUTED, ""), Ie.abrEnabled ? h(H, e, U).call(e, _.ABR_ENABLED, "") : h(H, e, W).call(e, _.ABR_ENABLED), h(H, e, U).call(e, _.SIZE_BASED_RESOLUTION_CAP_ENABLED, Ie.sizeBasedResolutionCapEnabled ? "true" : "false"), h(H, e, U).call(e, _.VOLUME, Ie.volume.toString());
2629
- }), v(Ce) || h(H, e, U).call(e, _.POSTER_SRC, g(I, e).getThumbnailUrl());
2630
- let w = x(e.getAttribute(_.AIRPLAY_ENABLED), !1), Le = x(e.getAttribute(_.CAST_ENABLED), !0), Re = x(e.getAttribute(_.FULLSCREEN_ENABLED), !0), ze = x(e.getAttribute(_.PIP_ENABLED), !0), Be = x(e.getAttribute(_.VU_METER_ENABLED), !1), Ve = x(e.getAttribute(_.TIMESHIFT_ENABLED), !1);
2631
- w && h(H, e, io).call(e, g(I, e)), Le && h(H, e, eo).call(e, g(I, e)), Re && h(H, e, Za).call(e, g(I, e)), ze && h(H, e, Ya).call(e, g(I, e)), i || g(I, e).play(), Be && h(H, e, ao).call(e, g(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2629
+ Fe.muted && h(H, e, U).call(e, v.MUTED, ""), Fe.abrEnabled ? h(H, e, U).call(e, v.ABR_ENABLED, "") : h(H, e, W).call(e, v.ABR_ENABLED), h(H, e, U).call(e, v.SIZE_BASED_RESOLUTION_CAP_ENABLED, Fe.sizeBasedResolutionCapEnabled ? "true" : "false"), h(H, e, U).call(e, v.VOLUME, Fe.volume.toString());
2630
+ }), y(Se) || h(H, e, U).call(e, v.POSTER_SRC, g(I, e).getThumbnailUrl());
2631
+ let T = S(e.getAttribute(v.AIRPLAY_ENABLED), !1), Ie = S(e.getAttribute(v.CAST_ENABLED), !0), Le = S(e.getAttribute(v.FULLSCREEN_ENABLED), !0), Re = S(e.getAttribute(v.PIP_ENABLED), !0), ze = S(e.getAttribute(v.VU_METER_ENABLED), !1), Be = S(e.getAttribute(v.TIMESHIFT_ENABLED), !1);
2632
+ T && h(H, e, io).call(e, g(I, e)), Ie && h(H, e, eo).call(e, g(I, e)), Le && h(H, e, Za).call(e, g(I, e)), Re && h(H, e, Ya).call(e, g(I, e)), i || g(I, e).play(), ze && h(H, e, ao).call(e, g(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2632
2633
  bubbles: !0,
2633
2634
  composed: !0,
2634
2635
  detail: g(I, e)
2635
- })), Ve && (h(H, e, Ka).call(e), Re && h(H, e, Qa).call(e));
2636
+ })), Be && (h(H, e, Ka).call(e), Le && h(H, e, Qa).call(e));
2636
2637
  })();
2637
2638
  }
2638
2639
  function Ua() {
@@ -2646,7 +2647,7 @@ function Ga() {
2646
2647
  }
2647
2648
  function Ka() {
2648
2649
  var e, t, n, r;
2649
- let i = ye(this.getAttribute(_.VOLUME)), a = i === void 0 ? (e = (t = g(L, this)) == null ? void 0 : t.volume) == null ? 1 : e : Math.max(0, Math.min(1, i)), o = x(this.getAttribute(_.MUTED), (n = (r = g(L, this)) == null ? void 0 : r.muted) == null ? !1 : n);
2650
+ let i = ve(this.getAttribute(v.VOLUME)), a = i === void 0 ? (e = (t = g(L, this)) == null ? void 0 : t.volume) == null ? 1 : e : Math.max(0, Math.min(1, i)), o = S(this.getAttribute(v.MUTED), (n = (r = g(L, this)) == null ? void 0 : r.muted) == null ? !1 : n);
2650
2651
  h(H, this, qa).call(this), m(R, this, new li(g(Bi, this), {
2651
2652
  volume: a,
2652
2653
  muted: o,
@@ -2660,35 +2661,35 @@ function Ja() {
2660
2661
  g(R, this) && (g(R, this).removeEventListener("playing", g(ba, this)), g(R, this).removeEventListener("pause", g(xa, this)), g(R, this).removeEventListener("ended", g(Sa, this)), g(R, this).removeEventListener("timeupdate", g(wa, this)), g(R, this).removeEventListener("volumechange", g(Ta, this)), g(R, this).removeEventListener("hlsbuffering", g(Ea, this)), g(R, this).removeEventListener("hlsnotbuffering", g(Da, this)), g(R, this).removeEventListener("timeshiftready", g(Oa, this)));
2661
2662
  }
2662
2663
  function Ya(e) {
2663
- e.mediaElement instanceof HTMLVideoElement && (m(z, this, new _r(e.mediaElement)), g(z, this).isSupported() && (g(V, this).debug("PIP is supported"), h(H, this, U).call(this, _.PIP_AVAILABLE, "")), g(z, this).on("on picture in picture change", (e) => {
2664
- e ? h(H, this, U).call(this, _.IS_PIP, "") : h(H, this, W).call(this, _.IS_PIP);
2664
+ e.mediaElement instanceof HTMLVideoElement && (m(z, this, new gr(e.mediaElement)), g(z, this).isSupported() && (g(V, this).debug("PIP is supported"), h(H, this, U).call(this, v.PIP_AVAILABLE, "")), g(z, this).on("on picture in picture change", (e) => {
2665
+ e ? h(H, this, U).call(this, v.IS_PIP, "") : h(H, this, W).call(this, v.IS_PIP);
2665
2666
  }));
2666
2667
  }
2667
2668
  function Xa() {
2668
2669
  var e;
2669
2670
  if (!g(z, this)) return;
2670
2671
  let t = null;
2671
- g(L, this) === g(R, this) && g(R, this) ? t = g(R, this).videoElement : ((e = g(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = g(I, this).mediaElement), t && t !== g(z, this).videoElement && (g(V, this).debug("Updating PIP target to", g(L, this) === g(R, this) ? "HLS" : "Vindral"), g(z, this).unload(), m(z, this, new _r(t)), g(z, this).on("on picture in picture change", (e) => {
2672
- e ? h(H, this, U).call(this, _.IS_PIP, "") : h(H, this, W).call(this, _.IS_PIP);
2672
+ g(L, this) === g(R, this) && g(R, this) ? t = g(R, this).videoElement : ((e = g(I, this)) == null ? void 0 : e.mediaElement) instanceof HTMLVideoElement && (t = g(I, this).mediaElement), t && t !== g(z, this).videoElement && (g(V, this).debug("Updating PIP target to", g(L, this) === g(R, this) ? "HLS" : "Vindral"), g(z, this).unload(), m(z, this, new gr(t)), g(z, this).on("on picture in picture change", (e) => {
2673
+ e ? h(H, this, U).call(this, v.IS_PIP, "") : h(H, this, W).call(this, v.IS_PIP);
2673
2674
  }));
2674
2675
  }
2675
2676
  function Za(e) {
2676
- let t = !sr.isFullscreenApiSupported(this) && sr.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2677
- m(Ji, this, new sr(t)), g(Ji, this).on("on fullscreen change", (e) => {
2678
- e ? h(H, this, U).call(this, _.FULLSCREEN, "") : h(H, this, W).call(this, _.FULLSCREEN);
2677
+ let t = !or.isFullscreenApiSupported(this) && or.isFullscreenApiSupported(e.mediaElement) ? e.mediaElement : this;
2678
+ m(Ji, this, new or(t)), g(Ji, this).on("on fullscreen change", (e) => {
2679
+ e ? h(H, this, U).call(this, v.FULLSCREEN, "") : h(H, this, W).call(this, v.FULLSCREEN);
2679
2680
  });
2680
2681
  }
2681
2682
  function Qa() {
2682
2683
  var e;
2683
- g(R, this) && (m(Yi, this, !sr.isFullscreenApiSupported(this) && sr.isFullscreenApiSupported((e = g(R, this)) == null ? void 0 : e.videoElement) ? new sr(g(R, this).videoElement) : new sr(this)), g(Yi, this).on("on fullscreen change", (e) => {
2684
- e ? h(H, this, U).call(this, _.FULLSCREEN, "") : h(H, this, W).call(this, _.FULLSCREEN);
2684
+ g(R, this) && (m(Yi, this, !or.isFullscreenApiSupported(this) && or.isFullscreenApiSupported((e = g(R, this)) == null ? void 0 : e.videoElement) ? new or(g(R, this).videoElement) : new or(this)), g(Yi, this).on("on fullscreen change", (e) => {
2685
+ e ? h(H, this, U).call(this, v.FULLSCREEN, "") : h(H, this, W).call(this, v.FULLSCREEN);
2685
2686
  }));
2686
2687
  }
2687
2688
  function $a() {
2688
- return this.hasAttribute(_.TIMESHIFT_POSITION) ? g(Yi, this) : g(Ji, this);
2689
+ return this.hasAttribute(v.TIMESHIFT_POSITION) ? g(Yi, this) : g(Ji, this);
2689
2690
  }
2690
2691
  function eo(e) {
2691
- m(Zi, this, new Ae({
2692
+ m(Zi, this, new ke({
2692
2693
  background: g($i, this),
2693
2694
  receiverApplicationId: g(Qi, this),
2694
2695
  options: e.getCastOptions()
@@ -2697,56 +2698,56 @@ function eo(e) {
2697
2698
  });
2698
2699
  }
2699
2700
  function to(e) {
2700
- e ? h(H, this, U).call(this, _.CAST_AVAILABLE, "") : h(H, this, W).call(this, _.CAST_AVAILABLE);
2701
+ e ? h(H, this, U).call(this, v.CAST_AVAILABLE, "") : h(H, this, W).call(this, v.CAST_AVAILABLE);
2701
2702
  }
2702
2703
  function no() {
2703
2704
  var e, t;
2704
- h(H, this, U).call(this, _.IS_CASTING, "");
2705
+ h(H, this, U).call(this, v.IS_CASTING, "");
2705
2706
  let n = (e = (t = g(Zi, this)) == null ? void 0 : t.getReceiverName()) == null ? "device" : e;
2706
- h(H, this, U).call(this, _.CAST_RECEIVER_NAME, n);
2707
+ h(H, this, U).call(this, v.CAST_RECEIVER_NAME, n);
2707
2708
  }
2708
2709
  function ro() {
2709
- h(H, this, W).call(this, _.IS_CASTING), h(H, this, W).call(this, _.CAST_RECEIVER_NAME);
2710
+ h(H, this, W).call(this, v.IS_CASTING), h(H, this, W).call(this, v.CAST_RECEIVER_NAME);
2710
2711
  }
2711
2712
  function io(e) {
2712
2713
  var t;
2713
2714
  (t = g(Xi, this)) == null || t.unload();
2714
2715
  let n = e.getCastOptions();
2715
- m(Xi, this, new Jn({
2716
+ m(Xi, this, new qn({
2716
2717
  url: n.url,
2717
2718
  channelId: n.channelId,
2718
2719
  authenticationToken: n.authenticationToken,
2719
2720
  container: this
2720
2721
  })), g(Xi, this).once("available", () => {
2721
- h(H, this, U).call(this, _.AIRPLAY_AVAILABLE, "");
2722
+ h(H, this, U).call(this, v.AIRPLAY_AVAILABLE, "");
2722
2723
  }), g(Xi, this).on("connected", () => {
2723
- h(H, this, U).call(this, _.IS_AIRPLAYING, "");
2724
+ h(H, this, U).call(this, v.IS_AIRPLAYING, "");
2724
2725
  }), g(Xi, this).on("disconnected", () => {
2725
- h(H, this, W).call(this, _.IS_AIRPLAYING);
2726
+ h(H, this, W).call(this, v.IS_AIRPLAYING);
2726
2727
  });
2727
2728
  }
2728
2729
  function ao(e) {
2729
2730
  var t;
2730
- if ((t = g(B, this)) == null || t.unload(), !a()) {
2731
+ if ((t = g(B, this)) == null || t.unload(), !i()) {
2731
2732
  if (e.audioNode) m(B, this, new Jr(e.audioNode));
2732
2733
  else if (e.mediaElement instanceof HTMLMediaElement) m(B, this, new Jr(e.mediaElement));
2733
2734
  else return;
2734
2735
  g(B, this).on("on decibel change", (e) => {
2735
- h(H, this, U).call(this, _.VOLUME_LEVEL, JSON.stringify(e));
2736
- }), h(H, this, U).call(this, _.VOLUME_LEVEL, JSON.stringify({
2736
+ h(H, this, U).call(this, v.VOLUME_LEVEL, JSON.stringify(e));
2737
+ }), h(H, this, U).call(this, v.VOLUME_LEVEL, JSON.stringify({
2737
2738
  left: null,
2738
2739
  right: null
2739
- })), (!g(B, this).isMediaElementSource || !this.hasAttribute(_.MUTED)) && g(B, this).start();
2740
+ })), (!g(B, this).isMediaElementSource || !this.hasAttribute(v.MUTED)) && g(B, this).start();
2740
2741
  }
2741
2742
  }
2742
2743
  function oo() {
2743
2744
  var e, t, n, r, i;
2744
2745
  Pi === this && (Pi = void 0), h(H, this, co).call(this), h(H, this, ko).call(this), g(ra, this).unload(), (e = g(I, this)) == null || e.unload(), (t = g(z, this)) == null || t.unload(), (n = g(Ji, this)) == null || n.unload(), (r = g(Yi, this)) == null || r.unload(), (i = g(B, this)) == null || i.unload(), h(H, this, qa).call(this);
2745
- for (let e of Object.values(S)) this.removeEventListener(e, g(Aa, this));
2746
+ for (let e of Object.values(C)) this.removeEventListener(e, g(Aa, this));
2746
2747
  h(H, this, Wa).call(this), g(Li, this) && (clearTimeout(g(Li, this)), m(Li, this, null)), g(Ri, this).stop(), this.disconnectListener(this);
2747
2748
  }
2748
2749
  function so() {
2749
- let e = () => (customElements.get("vindral-debug-panel") || import("./DyoeX7Rz.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(_.DEBUG_PANEL_OPEN, ""), g(I, this));
2750
+ let e = () => (customElements.get("vindral-debug-panel") || import("./B_i2EMYc.js").then((e) => e.n).then(({ registerDebugComponents: e }) => e()), this.setAttribute(v.DEBUG_PANEL_OPEN, ""), g(I, this));
2750
2751
  window._vindralDebug = e, m(na, this, e);
2751
2752
  }
2752
2753
  function co() {
@@ -2757,20 +2758,20 @@ function lo(e) {
2757
2758
  e.pointerType !== "mouse" && e.timeStamp - g(ka, this) < 250 || (h(H, this, vo).call(this), g(Li, this) && clearTimeout(g(Li, this)), e.target instanceof HTMLElement && ([this, g(zi, this)].includes(e.target) || e.target.localName === "vindral-scroll-overlay") && h(H, this, yo).call(this));
2758
2759
  }
2759
2760
  function uo(e) {
2760
- let t = this.hasAttribute(_.USER_INTERACTING);
2761
+ let t = this.hasAttribute(v.USER_INTERACTING);
2761
2762
  e.pointerType === "touch" && e.target instanceof HTMLElement ? [this, g(zi, this)].includes(e.target) && t ? h(H, this, _o).call(this) : h(H, this, yo).call(this) : e.composedPath().some((e) => e instanceof HTMLElement && ["vindral-play-button"].includes(e == null ? void 0 : e.localName)) && h(H, this, yo).call(this);
2762
2763
  }
2763
2764
  function fo(e) {
2764
2765
  switch (e) {
2765
- case "dblclick-fullscreen": return x(this.getAttribute(_.DOUBLE_CLICK_FULLSCREEN_ENABLED), !0);
2766
+ case "dblclick-fullscreen": return S(this.getAttribute(v.DOUBLE_CLICK_FULLSCREEN_ENABLED), !0);
2766
2767
  default: return !0;
2767
2768
  }
2768
2769
  }
2769
2770
  function po(e) {
2770
- h(H, this, fo).call(this, "dblclick-fullscreen") && (!g(Ji, this) || e.target instanceof y || e.target instanceof Ve || e.target instanceof ji || (this.hasAttribute(_.FULLSCREEN) ? this.removeAttribute(_.FULLSCREEN) : this.setAttribute(_.FULLSCREEN, "")));
2771
+ h(H, this, fo).call(this, "dblclick-fullscreen") && (!g(Ji, this) || e.target instanceof b || e.target instanceof Be || e.target instanceof ji || (this.hasAttribute(v.FULLSCREEN) ? this.removeAttribute(v.FULLSCREEN) : this.setAttribute(v.FULLSCREEN, "")));
2771
2772
  }
2772
2773
  function mo(e) {
2773
- this.hasAttribute(_.USER_INTERACTING) || h(H, this, yo).call(this);
2774
+ this.hasAttribute(v.USER_INTERACTING) || h(H, this, yo).call(this);
2774
2775
  }
2775
2776
  function ho(e) {
2776
2777
  var t;
@@ -2782,10 +2783,10 @@ function ho(e) {
2782
2783
  return Array.isArray(t) && t.includes(i);
2783
2784
  })) switch (i) {
2784
2785
  case "f":
2785
- this.hasAttribute(_.FULLSCREEN) ? this.removeAttribute(_.FULLSCREEN) : this.setAttribute(_.FULLSCREEN, "");
2786
+ this.hasAttribute(v.FULLSCREEN) ? this.removeAttribute(v.FULLSCREEN) : this.setAttribute(v.FULLSCREEN, "");
2786
2787
  break;
2787
2788
  case "m":
2788
- this.hasAttribute(_.MUTED) ? this.removeAttribute(_.MUTED) : this.setAttribute(_.MUTED, "");
2789
+ this.hasAttribute(v.MUTED) ? this.removeAttribute(v.MUTED) : this.setAttribute(v.MUTED, "");
2789
2790
  break;
2790
2791
  case "ArrowDown":
2791
2792
  var o;
@@ -2795,28 +2796,28 @@ function ho(e) {
2795
2796
  }
2796
2797
  function go() {
2797
2798
  var e = this;
2798
- return t(function* () {
2799
+ return _(function* () {
2799
2800
  if (!g(I, e) || !g(Gi, e)) return;
2800
2801
  let t = Date.now();
2801
2802
  if (g(Ia, e) && t - g(Ia, e) < 1e4) g(V, e).debug("Skipping channel update, last update was less than 10 seconds ago.");
2802
2803
  else {
2803
2804
  m(Ia, e, t);
2804
2805
  let n = yield g(I, e).getApiClient().getChannels(g(Gi, e));
2805
- h(H, e, U).call(e, _.CHANNELS, JSON.stringify(n));
2806
+ h(H, e, U).call(e, v.CHANNELS, JSON.stringify(n));
2806
2807
  }
2807
2808
  m(ea, e, window.setTimeout(() => void h(H, e, go).call(e), 1e4));
2808
2809
  })();
2809
2810
  }
2810
2811
  function _o() {
2811
- !this.hasAttribute(_.USER_INTERACTING) || this.hasAttribute(_.UI_LOCKED) || (this.dispatchEvent(new CustomEvent("user-interacting", {
2812
+ !this.hasAttribute(v.USER_INTERACTING) || this.hasAttribute(v.UI_LOCKED) || (this.dispatchEvent(new CustomEvent("user-interacting", {
2812
2813
  bubbles: !0,
2813
2814
  composed: !0,
2814
2815
  detail: { active: !1 }
2815
- })), this.removeAttribute(_.USER_INTERACTING));
2816
+ })), this.removeAttribute(v.USER_INTERACTING));
2816
2817
  }
2817
2818
  function vo() {
2818
- this.hasAttribute(_.USER_INTERACTING) || requestAnimationFrame(() => {
2819
- this.setAttribute(_.USER_INTERACTING, ""), this.dispatchEvent(new CustomEvent("user-interacting", {
2819
+ this.hasAttribute(v.USER_INTERACTING) || requestAnimationFrame(() => {
2820
+ this.setAttribute(v.USER_INTERACTING, ""), this.dispatchEvent(new CustomEvent("user-interacting", {
2820
2821
  bubbles: !0,
2821
2822
  composed: !0,
2822
2823
  detail: { active: !0 }
@@ -2848,14 +2849,14 @@ function So() {
2848
2849
  function Co() {
2849
2850
  let e = h(H, this, $a).call(this);
2850
2851
  if (!e) {
2851
- console.warn("No fullscreen target available"), this.setAttribute(_.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, _.FULLSCREEN, "");
2852
+ console.warn("No fullscreen target available"), this.setAttribute(v.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, v.FULLSCREEN, "");
2852
2853
  return;
2853
2854
  }
2854
2855
  e != null && e.isFullscreenApiSupported() ? (h(H, this, To).call(this), e == null || e.request().then(() => {
2855
2856
  g(La, this).call(this);
2856
2857
  }).catch((e) => {
2857
2858
  g(V, this).warn("Failed to enter fullscreen:", e);
2858
- })) : (this.setAttribute(_.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, _.FULLSCREEN, ""));
2859
+ })) : (this.setAttribute(v.FULLSCREEN_FALLBACK, ""), h(H, this, U).call(this, v.FULLSCREEN, ""));
2859
2860
  }
2860
2861
  function wo() {
2861
2862
  let e = h(H, this, $a).call(this);
@@ -2863,13 +2864,13 @@ function wo() {
2863
2864
  g(Ra, this).call(this);
2864
2865
  }).catch((e) => {
2865
2866
  g(V, this).warn("Failed to exit fullscreen:", e);
2866
- }) : (this.removeAttribute(_.FULLSCREEN_FALLBACK), h(H, this, W).call(this, _.FULLSCREEN));
2867
+ }) : (this.removeAttribute(v.FULLSCREEN_FALLBACK), h(H, this, W).call(this, v.FULLSCREEN));
2867
2868
  }
2868
2869
  function To() {
2869
2870
  g(I, this) && g(I, this).emitter.emit("ios-hack: reset size");
2870
2871
  }
2871
2872
  function Eo() {
2872
- return this.hasAttribute(_.DEBUG_PANEL_OPEN);
2873
+ return this.hasAttribute(v.DEBUG_PANEL_OPEN);
2873
2874
  }
2874
2875
  function Do() {
2875
2876
  h(H, this, Eo).call(this) ? h(H, this, Oo).call(this) : h(H, this, ko).call(this);
@@ -2878,7 +2879,7 @@ function Oo() {
2878
2879
  g(za, this) === null && (h(H, this, Ao).call(this), m(za, this, window.setInterval(() => h(H, this, Ao).call(this), 1e3)));
2879
2880
  }
2880
2881
  function ko() {
2881
- g(za, this) && (clearInterval(g(za, this)), m(za, this, null)), this.removeAttribute(_.DRIFT), h(H, this, W).call(this, _.DRIFT), h(H, this, W).call(this, _.PLAYBACK_LATENCY), h(H, this, W).call(this, _.CONNECTION_STATE);
2882
+ g(za, this) && (clearInterval(g(za, this)), m(za, this, null)), this.removeAttribute(v.DRIFT), h(H, this, W).call(this, v.DRIFT), h(H, this, W).call(this, v.PLAYBACK_LATENCY), h(H, this, W).call(this, v.CONNECTION_STATE);
2882
2883
  }
2883
2884
  function Ao() {
2884
2885
  if (!g(I, this)) return;
@@ -2886,13 +2887,13 @@ function Ao() {
2886
2887
  let e = g(I, this).getStatistics().drift;
2887
2888
  if (typeof e == "number") {
2888
2889
  let t = Math.round(e * 10) / 10;
2889
- h(H, this, U).call(this, _.DRIFT, String(t));
2890
+ h(H, this, U).call(this, v.DRIFT, String(t));
2890
2891
  }
2891
2892
  } catch (e) {}
2892
2893
  let e = g(I, this).targetBufferTime;
2893
- typeof e == "number" && h(H, this, U).call(this, _.TARGET_BUFFER_TIME, String(e));
2894
+ typeof e == "number" && h(H, this, U).call(this, v.TARGET_BUFFER_TIME, String(e));
2894
2895
  let t = g(I, this).playbackLatency;
2895
- typeof t == "number" ? h(H, this, U).call(this, _.PLAYBACK_LATENCY, String(t)) : h(H, this, W).call(this, _.PLAYBACK_LATENCY), h(H, this, U).call(this, _.CONNECTION_STATE, g(I, this).connectionState);
2896
+ typeof t == "number" ? h(H, this, U).call(this, v.PLAYBACK_LATENCY, String(t)) : h(H, this, W).call(this, v.PLAYBACK_LATENCY), h(H, this, U).call(this, v.CONNECTION_STATE, g(I, this).connectionState);
2896
2897
  }
2897
2898
  function U(e, t) {
2898
2899
  var n;
@@ -2903,7 +2904,7 @@ function W(e) {
2903
2904
  (t = g(Fi, this).get(e)) == null || t.forEach((t) => t.removeAttribute(e));
2904
2905
  }
2905
2906
  e(Ba, "observedAttributes", [
2906
- ...ke,
2907
+ ...Oe,
2907
2908
  "url",
2908
2909
  "edge-url",
2909
2910
  "target-buffer-time",
@@ -2954,11 +2955,11 @@ Mo.innerHTML = `
2954
2955
  display: var(--fullscreen-button-display);
2955
2956
  }
2956
2957
 
2957
- :host([${_.FULLSCREEN}]) slot[name="enter"] {
2958
+ :host([${v.FULLSCREEN}]) slot[name="enter"] {
2958
2959
  display: none !important;
2959
2960
  }
2960
2961
 
2961
- :host(:not([${_.FULLSCREEN}])) slot[name="exit"] {
2962
+ :host(:not([${v.FULLSCREEN}])) slot[name="exit"] {
2962
2963
  display: none !important;
2963
2964
  }
2964
2965
  </style>
@@ -2972,7 +2973,7 @@ Mo.innerHTML = `
2972
2973
  </slot>
2973
2974
  </slot>
2974
2975
  `;
2975
- var No = class extends y {
2976
+ var No = class extends b {
2976
2977
  constructor() {
2977
2978
  var e;
2978
2979
  super(), (e = this.shadowRoot) == null || e.appendChild(Mo.content.cloneNode(!0));
@@ -2984,23 +2985,23 @@ var No = class extends y {
2984
2985
  super.disconnectedCallback();
2985
2986
  }
2986
2987
  attributeChangedCallback(e, t, n) {
2987
- super.attributeChangedCallback(e, t, n), e === _.FULLSCREEN && this.setAttribute("aria-label", this.isFullscreen ? "Exit fullscreen" : "Fullscreen");
2988
+ super.attributeChangedCallback(e, t, n), e === v.FULLSCREEN && this.setAttribute("aria-label", this.isFullscreen ? "Exit fullscreen" : "Fullscreen");
2988
2989
  }
2989
2990
  set isFullscreen(e) {
2990
- e ? this.setAttribute(_.FULLSCREEN, "") : this.removeAttribute(_.FULLSCREEN);
2991
+ e ? this.setAttribute(v.FULLSCREEN, "") : this.removeAttribute(v.FULLSCREEN);
2991
2992
  }
2992
2993
  get isFullscreen() {
2993
- return this.hasAttribute(_.FULLSCREEN);
2994
+ return this.hasAttribute(v.FULLSCREEN);
2994
2995
  }
2995
2996
  handleClick(e) {
2996
- let t = this.isFullscreen ? S.EXIT_FULLSCREEN : S.ENTER_FULLSCREEN;
2997
+ let t = this.isFullscreen ? C.EXIT_FULLSCREEN : C.ENTER_FULLSCREEN;
2997
2998
  this.dispatchEvent(new CustomEvent(t, {
2998
2999
  bubbles: !0,
2999
3000
  composed: !0
3000
3001
  }));
3001
3002
  }
3002
3003
  };
3003
- jo = No, e(No, "observedAttributes", [...b(jo, "observedAttributes", jo), _.FULLSCREEN]);
3004
+ jo = No, e(No, "observedAttributes", [...x(jo, "observedAttributes", jo), v.FULLSCREEN]);
3004
3005
  //#endregion
3005
3006
  //#region ../../libs/player-next/src/components/LanguageMenu.ts
3006
3007
  var Po, Fo = "\n <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>\n", Io = document.createElement("template");
@@ -3016,27 +3017,27 @@ Io.innerHTML = `
3016
3017
  <vindral-language-menu-list id="listbox" part="listbox"></vindral-language-menu-list>
3017
3018
  </slot>
3018
3019
  `;
3019
- var Lo = /* @__PURE__ */ new WeakSet(), Ro = class extends Ve {
3020
+ var Lo = /* @__PURE__ */ new WeakSet(), Ro = class extends Be {
3020
3021
  constructor() {
3021
3022
  var e, t, n;
3022
- super(), C(this, Lo), (e = this.shadowRoot) == null || e.appendChild(Io.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3023
+ super(), w(this, Lo), (e = this.shadowRoot) == null || e.appendChild(Io.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3023
3024
  }
3024
3025
  connectedCallback() {
3025
3026
  super.connectedCallback(), h(Lo, this, zo).call(this), this.setAttribute("aria-label", "Audio & Subtitles");
3026
3027
  }
3027
3028
  attributeChangedCallback(e, t, n) {
3028
- super.attributeChangedCallback(e, t, n), (e === _.LANGUAGES || e === _.TEXT_TRACKS) && h(Lo, this, zo).call(this);
3029
+ super.attributeChangedCallback(e, t, n), (e === v.LANGUAGES || e === v.TEXT_TRACKS) && h(Lo, this, zo).call(this);
3029
3030
  }
3030
3031
  };
3031
3032
  Po = Ro;
3032
3033
  function zo() {
3033
- let e = (e) => (e ? JSON.parse(e) : []).length < 2, t = e(this.getAttribute(_.LANGUAGES)), n = e(this.getAttribute(_.TEXT_TRACKS));
3034
+ let e = (e) => (e ? JSON.parse(e) : []).length < 2, t = e(this.getAttribute(v.LANGUAGES)), n = e(this.getAttribute(v.TEXT_TRACKS));
3034
3035
  t && n ? this.setAttribute("hidden", "") : this.removeAttribute("hidden");
3035
3036
  }
3036
3037
  e(Ro, "observedAttributes", [
3037
- ...b(Po, "observedAttributes", Po),
3038
- _.LANGUAGES,
3039
- _.TEXT_TRACKS
3038
+ ...x(Po, "observedAttributes", Po),
3039
+ v.LANGUAGES,
3040
+ v.TEXT_TRACKS
3040
3041
  ]);
3041
3042
  //#endregion
3042
3043
  //#region ../../libs/player-next/src/components/LanguageMenuList.ts
@@ -3135,13 +3136,13 @@ Bo.innerHTML = `
3135
3136
  font-weight: bold;
3136
3137
  }
3137
3138
 
3138
- :host([${_.LANGUAGES}="[]"]) #languages,
3139
- :host(:not([${_.LANGUAGES}])) #languages {
3139
+ :host([${v.LANGUAGES}="[]"]) #languages,
3140
+ :host(:not([${v.LANGUAGES}])) #languages {
3140
3141
  display: none;
3141
3142
  }
3142
3143
 
3143
- :host([${_.TEXT_TRACKS}="[]"]) #text-tracks,
3144
- :host(:not([${_.TEXT_TRACKS}])) #text-tracks {
3144
+ :host([${v.TEXT_TRACKS}="[]"]) #text-tracks,
3145
+ :host(:not([${v.TEXT_TRACKS}])) #text-tracks {
3145
3146
  display: none;
3146
3147
  }
3147
3148
  </style>
@@ -3157,7 +3158,7 @@ Bo.innerHTML = `
3157
3158
  `;
3158
3159
  var Vo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Go = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), qo = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap(), Xo = /* @__PURE__ */ new WeakMap(), Zo = /* @__PURE__ */ new WeakMap(), Qo = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), $o = class extends HTMLElement {
3159
3160
  constructor() {
3160
- super(), C(this, G), p(this, Vo, []), p(this, Ho, []), p(this, Uo, void 0), p(this, Wo, void 0), p(this, Go, []), p(this, Ko, []), p(this, qo, null), p(this, Jo, null), p(this, Yo, null), p(this, Xo, null), p(this, Zo, null), p(this, Qo, null), e(this, "handleEvent", (e) => {
3161
+ super(), w(this, G), p(this, Vo, []), p(this, Ho, []), p(this, Uo, void 0), p(this, Wo, void 0), p(this, Go, []), p(this, Ko, []), p(this, qo, null), p(this, Jo, null), p(this, Yo, null), p(this, Xo, null), p(this, Zo, null), p(this, Qo, null), e(this, "handleEvent", (e) => {
3161
3162
  switch (e.type) {
3162
3163
  case "keydown":
3163
3164
  h(G, this, cs).call(this, e);
@@ -3176,7 +3177,7 @@ var Vo = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo =
3176
3177
  this.removeEventListener("keydown", this);
3177
3178
  }
3178
3179
  attributeChangedCallback(e, t, n) {
3179
- t !== n && (e === _.LANGUAGES && n && (this.languages = JSON.parse(n)), e === _.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === _.LANGUAGE && (this.language = n), e === _.TEXT_TRACK && (this.textTrack = n));
3180
+ t !== n && (e === v.LANGUAGES && n && (this.languages = JSON.parse(n)), e === v.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === v.LANGUAGE && (this.language = n), e === v.TEXT_TRACK && (this.textTrack = n));
3180
3181
  }
3181
3182
  set languages(e) {
3182
3183
  m(Vo, this, e), h(G, this, rs).call(this), h(G, this, as).call(this);
@@ -3270,7 +3271,7 @@ function ss(e, t) {
3270
3271
  bubbles: !0,
3271
3272
  composed: !0
3272
3273
  }));
3273
- let n = t === "language" ? S.SET_LANGUAGE : S.SET_TEXT_TRACK;
3274
+ let n = t === "language" ? C.SET_LANGUAGE : C.SET_TEXT_TRACK;
3274
3275
  this.dispatchEvent(new CustomEvent(n, {
3275
3276
  bubbles: !0,
3276
3277
  composed: !0,
@@ -3307,16 +3308,16 @@ function fs(e) {
3307
3308
  for (let t of [...g(Go, this), ...g(Ko, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3308
3309
  }
3309
3310
  e($o, "observedAttributes", [
3310
- _.LANGUAGES,
3311
- _.TEXT_TRACKS,
3312
- _.LANGUAGE,
3313
- _.TEXT_TRACK
3311
+ v.LANGUAGES,
3312
+ v.TEXT_TRACKS,
3313
+ v.LANGUAGE,
3314
+ v.TEXT_TRACK
3314
3315
  ]);
3315
3316
  //#endregion
3316
3317
  //#region ../../libs/player-next/src/components/LiveButton.ts
3317
3318
  var ps, ms = document.createElement("template");
3318
3319
  ms.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3319
- var hs = class extends y {
3320
+ var hs = class extends b {
3320
3321
  constructor() {
3321
3322
  var e;
3322
3323
  super(), (e = this.shadowRoot) == null || e.appendChild(ms.content.cloneNode(!0));
@@ -3328,32 +3329,32 @@ var hs = class extends y {
3328
3329
  super.disconnectedCallback();
3329
3330
  }
3330
3331
  attributeChangedCallback(e, t, n) {
3331
- super.attributeChangedCallback(e, t, n), (e === _.TIMESHIFT_POSITION || e === _.DURATION) && this.updateState();
3332
+ super.attributeChangedCallback(e, t, n), (e === v.TIMESHIFT_POSITION || e === v.DURATION) && this.updateState();
3332
3333
  }
3333
3334
  updateState() {
3334
- if (!this.hasAttribute(_.DURATION)) {
3335
+ if (!this.hasAttribute(v.DURATION)) {
3335
3336
  this.setAttribute("hidden", ""), this.removeAttribute("aria-label"), this.removeAttribute("disabled");
3336
3337
  return;
3337
3338
  }
3338
3339
  this.removeAttribute("hidden"), this.isLive ? (this.setAttribute("aria-label", "Currently live"), this.setAttribute("disabled", "")) : (this.setAttribute("aria-label", "Go live"), this.removeAttribute("disabled"));
3339
3340
  }
3340
3341
  get isLive() {
3341
- return !this.hasAttribute(_.TIMESHIFT_POSITION);
3342
+ return !this.hasAttribute(v.TIMESHIFT_POSITION);
3342
3343
  }
3343
3344
  set isLive(e) {
3344
- e ? this.removeAttribute(_.TIMESHIFT_POSITION) : this.setAttribute(_.TIMESHIFT_POSITION, "");
3345
+ e ? this.removeAttribute(v.TIMESHIFT_POSITION) : this.setAttribute(v.TIMESHIFT_POSITION, "");
3345
3346
  }
3346
3347
  handleClick(e) {
3347
- this.isLive || this.dispatchEvent(new CustomEvent(S.GO_LIVE, {
3348
+ this.isLive || this.dispatchEvent(new CustomEvent(C.GO_LIVE, {
3348
3349
  bubbles: !0,
3349
3350
  composed: !0
3350
3351
  }));
3351
3352
  }
3352
3353
  };
3353
3354
  ps = hs, e(hs, "observedAttributes", [
3354
- ...b(ps, "observedAttributes", ps),
3355
- _.TIMESHIFT_POSITION,
3356
- _.DURATION
3355
+ ...x(ps, "observedAttributes", ps),
3356
+ v.TIMESHIFT_POSITION,
3357
+ v.DURATION
3357
3358
  ]);
3358
3359
  //#endregion
3359
3360
  //#region ../../libs/player-next/src/components/MuteButton.ts
@@ -3364,11 +3365,11 @@ _s.innerHTML = `
3364
3365
  display: var(--mute-button-display);
3365
3366
  }
3366
3367
 
3367
- :host([${_.MUTED}]) slot[name="unmute"] {
3368
+ :host([${v.MUTED}]) slot[name="unmute"] {
3368
3369
  display: none !important;
3369
3370
  }
3370
3371
 
3371
- :host(:not([${_.MUTED}])) slot[name="mute"] {
3372
+ :host(:not([${v.MUTED}])) slot[name="mute"] {
3372
3373
  display: none !important;
3373
3374
  }
3374
3375
  </style>
@@ -3386,7 +3387,7 @@ _s.innerHTML = `
3386
3387
  </slot>
3387
3388
  </slot>
3388
3389
  `;
3389
- var vs = class extends y {
3390
+ var vs = class extends b {
3390
3391
  constructor() {
3391
3392
  var e;
3392
3393
  super(), (e = this.shadowRoot) == null || e.appendChild(_s.content.cloneNode(!0));
@@ -3398,23 +3399,23 @@ var vs = class extends y {
3398
3399
  super.disconnectedCallback();
3399
3400
  }
3400
3401
  attributeChangedCallback(e, t, n) {
3401
- super.attributeChangedCallback(e, t, n), e === _.MUTED && this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
3402
+ super.attributeChangedCallback(e, t, n), e === v.MUTED && this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
3402
3403
  }
3403
3404
  set muted(e) {
3404
- e ? this.setAttribute(_.MUTED, "") : this.removeAttribute(_.MUTED);
3405
+ e ? this.setAttribute(v.MUTED, "") : this.removeAttribute(v.MUTED);
3405
3406
  }
3406
3407
  get muted() {
3407
- return this.hasAttribute(_.MUTED);
3408
+ return this.hasAttribute(v.MUTED);
3408
3409
  }
3409
3410
  handleClick(e) {
3410
- let t = this.muted ? S.UNMUTE : S.MUTE;
3411
+ let t = this.muted ? C.UNMUTE : C.MUTE;
3411
3412
  this.dispatchEvent(new CustomEvent(t, {
3412
3413
  bubbles: !0,
3413
3414
  composed: !0
3414
3415
  }));
3415
3416
  }
3416
3417
  };
3417
- gs = vs, e(vs, "observedAttributes", [...b(gs, "observedAttributes", gs), _.MUTED]);
3418
+ gs = vs, e(vs, "observedAttributes", [...x(gs, "observedAttributes", gs), v.MUTED]);
3418
3419
  //#endregion
3419
3420
  //#region ../../libs/player-next/src/components/PictureInPictureButton.ts
3420
3421
  var ys, bs = document.createElement("template");
@@ -3424,7 +3425,7 @@ bs.innerHTML = `
3424
3425
  display: var(--pip-button-display);
3425
3426
  }
3426
3427
 
3427
- :host(:not([${_.PIP_AVAILABLE}])) {
3428
+ :host(:not([${v.PIP_AVAILABLE}])) {
3428
3429
  display: none !important;
3429
3430
  }
3430
3431
  </style>
@@ -3432,7 +3433,7 @@ bs.innerHTML = `
3432
3433
  <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>
3433
3434
  </slot>
3434
3435
  `;
3435
- var xs = class extends y {
3436
+ var xs = class extends b {
3436
3437
  constructor() {
3437
3438
  var e;
3438
3439
  super(), (e = this.shadowRoot) == null || e.appendChild(bs.content.cloneNode(!0));
@@ -3444,16 +3445,16 @@ var xs = class extends y {
3444
3445
  super.disconnectedCallback();
3445
3446
  }
3446
3447
  attributeChangedCallback(e, t, n) {
3447
- super.attributeChangedCallback(e, t, n), e === _.IS_PIP && this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
3448
+ super.attributeChangedCallback(e, t, n), e === v.IS_PIP && this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
3448
3449
  }
3449
3450
  set isPictureInPictureActive(e) {
3450
- e ? this.setAttribute(_.IS_PIP, "") : this.removeAttribute(_.IS_PIP);
3451
+ e ? this.setAttribute(v.IS_PIP, "") : this.removeAttribute(v.IS_PIP);
3451
3452
  }
3452
3453
  get isPictureInPictureActive() {
3453
- return this.hasAttribute(_.IS_PIP);
3454
+ return this.hasAttribute(v.IS_PIP);
3454
3455
  }
3455
3456
  handleClick(e) {
3456
- let t = this.isPictureInPictureActive ? S.EXIT_PIP : S.ENTER_PIP;
3457
+ let t = this.isPictureInPictureActive ? C.EXIT_PIP : C.ENTER_PIP;
3457
3458
  this.dispatchEvent(new CustomEvent(t, {
3458
3459
  bubbles: !0,
3459
3460
  composed: !0
@@ -3461,9 +3462,9 @@ var xs = class extends y {
3461
3462
  }
3462
3463
  };
3463
3464
  ys = xs, e(xs, "observedAttributes", [
3464
- ...b(ys, "observedAttributes", ys),
3465
- _.IS_PIP,
3466
- _.PIP_AVAILABLE
3465
+ ...x(ys, "observedAttributes", ys),
3466
+ v.IS_PIP,
3467
+ v.PIP_AVAILABLE
3467
3468
  ]);
3468
3469
  //#endregion
3469
3470
  //#region ../../libs/player-next/src/components/PlayButton.ts
@@ -3474,11 +3475,11 @@ Cs.innerHTML = `
3474
3475
  display: var(--play-button-display);
3475
3476
  }
3476
3477
 
3477
- :host([${_.PAUSED}]) slot[name="pause"] {
3478
+ :host([${v.PAUSED}]) slot[name="pause"] {
3478
3479
  display: none !important;
3479
3480
  }
3480
3481
 
3481
- :host(:not([${_.PAUSED}])) slot[name="play"] {
3482
+ :host(:not([${v.PAUSED}])) slot[name="play"] {
3482
3483
  display: none !important;
3483
3484
  }
3484
3485
  </style>
@@ -3492,7 +3493,7 @@ Cs.innerHTML = `
3492
3493
  </slot>
3493
3494
  </slot>
3494
3495
  `;
3495
- var ws = class extends y {
3496
+ var ws = class extends b {
3496
3497
  constructor() {
3497
3498
  var e;
3498
3499
  super(), (e = this.shadowRoot) == null || e.appendChild(Cs.content.cloneNode(!0));
@@ -3504,23 +3505,23 @@ var ws = class extends y {
3504
3505
  super.disconnectedCallback();
3505
3506
  }
3506
3507
  attributeChangedCallback(e, t, n) {
3507
- super.attributeChangedCallback(e, t, n), e === _.PAUSED && this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
3508
+ super.attributeChangedCallback(e, t, n), e === v.PAUSED && this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
3508
3509
  }
3509
3510
  set paused(e) {
3510
- e ? this.setAttribute(_.PAUSED, "") : this.removeAttribute(_.PAUSED);
3511
+ e ? this.setAttribute(v.PAUSED, "") : this.removeAttribute(v.PAUSED);
3511
3512
  }
3512
3513
  get paused() {
3513
- return this.hasAttribute(_.PAUSED);
3514
+ return this.hasAttribute(v.PAUSED);
3514
3515
  }
3515
3516
  handleClick(e) {
3516
- let t = this.paused ? S.PLAY : S.PAUSE;
3517
+ let t = this.paused ? C.PLAY : C.PAUSE;
3517
3518
  this.dispatchEvent(new CustomEvent(t, {
3518
3519
  bubbles: !0,
3519
3520
  composed: !0
3520
3521
  }));
3521
3522
  }
3522
3523
  };
3523
- Ss = ws, e(ws, "observedAttributes", [...b(Ss, "observedAttributes", Ss), _.PAUSED]);
3524
+ Ss = ws, e(ws, "observedAttributes", [...x(Ss, "observedAttributes", Ss), v.PAUSED]);
3524
3525
  //#endregion
3525
3526
  //#region ../../libs/player-next/src/PlayerAttributes.ts
3526
3527
  var K = {
@@ -3529,9 +3530,9 @@ var K = {
3529
3530
  ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
3530
3531
  REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
3531
3532
  STREAM_POLL_ENABLED: "stream-poll-enabled"
3532
- }, Ts = Object.values(K), Es = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakSet(), Ps = class extends fe {
3533
+ }, Ts = Object.values(K), Es = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakSet(), Ps = class extends de {
3533
3534
  constructor(e) {
3534
- super(), C(this, Ns), p(this, Es, void 0), p(this, Ds, void 0), p(this, Os, !1), p(this, ks, !1), p(this, As, !0), p(this, js, null), p(this, Ms, null), m(Ds, this, e), m(Es, this, new ue({
3535
+ super(), w(this, Ns), p(this, Es, void 0), p(this, Ds, void 0), p(this, Os, !1), p(this, ks, !1), p(this, As, !0), p(this, js, null), p(this, Ms, null), m(Ds, this, e), m(Es, this, new le({
3535
3536
  publicEndpoint: e.url,
3536
3537
  tokenFactory: () => e.authenticationToken
3537
3538
  }));
@@ -3547,7 +3548,7 @@ var K = {
3547
3548
  };
3548
3549
  function Fs() {
3549
3550
  var e = this;
3550
- return t(function* () {
3551
+ return _(function* () {
3551
3552
  if (g(Os, e)) return;
3552
3553
  m(Os, e, !0);
3553
3554
  let t = "Stream is offline", n = "Please stand by";
@@ -3558,7 +3559,7 @@ function Fs() {
3558
3559
  return;
3559
3560
  }
3560
3561
  } catch (e) {
3561
- le(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
3562
+ ce(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
3562
3563
  }
3563
3564
  g(As, e) && e.emit("error", {
3564
3565
  title: t,
@@ -3631,33 +3632,33 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3631
3632
  }
3632
3633
  }
3633
3634
 
3634
- :host([${_.AIRPLAY_ENABLED}="false"]) {
3635
+ :host([${v.AIRPLAY_ENABLED}="false"]) {
3635
3636
  --vindral-airplay-button-display: none;
3636
3637
  }
3637
3638
 
3638
- :host([${_.CAST_ENABLED}="false"]) {
3639
+ :host([${v.CAST_ENABLED}="false"]) {
3639
3640
  --vindral-cast-button-display: none;
3640
3641
  }
3641
3642
 
3642
- :host([${_.FULLSCREEN_ENABLED}="false"]) {
3643
+ :host([${v.FULLSCREEN_ENABLED}="false"]) {
3643
3644
  --vindral-fullscreen-button-display: none;
3644
3645
  }
3645
3646
 
3646
- :host([${_.PIP_ENABLED}="false"]) {
3647
+ :host([${v.PIP_ENABLED}="false"]) {
3647
3648
  --vindral-pip-button-display: none;
3648
3649
  }
3649
3650
 
3650
- :host([${_.TIMESHIFT_ENABLED}="false"]) {
3651
+ :host([${v.TIMESHIFT_ENABLED}="false"]) {
3651
3652
  --vindral-seek-bar-display: none;
3652
3653
  --vindral-live-button-display: none;
3653
3654
  }
3654
3655
 
3655
- :host(:not([${_.CHANNEL_GROUP_ID}])) vindral-scroll-overlay {
3656
+ :host(:not([${v.CHANNEL_GROUP_ID}])) vindral-scroll-overlay {
3656
3657
  display: none;
3657
3658
  }
3658
3659
 
3659
- :host([${_.MEDIA}="video"]) vindral-mute-button,
3660
- :host([${_.MEDIA}="video"]) vindral-volume-range {
3660
+ :host([${v.MEDIA}="video"]) vindral-mute-button,
3661
+ :host([${v.MEDIA}="video"]) vindral-volume-range {
3661
3662
  display: none;
3662
3663
  }
3663
3664
 
@@ -3737,12 +3738,12 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3737
3738
  </vindral-controller>
3738
3739
  `, Ks = document.createElement("template"), qs = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), ec = /* @__PURE__ */ new WeakMap(), tc = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakSet(), nc = /* @__PURE__ */ new WeakMap(), rc = /* @__PURE__ */ new WeakMap(), ic = /* @__PURE__ */ new WeakMap(), ac = class extends HTMLElement {
3739
3740
  constructor() {
3740
- super(), C(this, J), p(this, qs, void 0), p(this, q, void 0), p(this, Js, void 0), p(this, Ys, void 0), p(this, Xs, void 0), p(this, Zs, void 0), p(this, Qs, /* @__PURE__ */ new Set()), p(this, $s, void 0), p(this, ec, () => {
3741
+ super(), w(this, J), p(this, qs, void 0), p(this, q, void 0), p(this, Js, void 0), p(this, Ys, void 0), p(this, Xs, void 0), p(this, Zs, void 0), p(this, Qs, /* @__PURE__ */ new Set()), p(this, $s, void 0), p(this, ec, () => {
3741
3742
  Array.from(this.attributes).forEach((e) => {
3742
3743
  g(tc, this).call(this, e.name, e.value);
3743
3744
  });
3744
3745
  }), p(this, tc, (e, t) => {
3745
- Hs(e) && (v(t) ? g(q, this).setAttribute(e, t) : g(q, this).removeAttribute(e));
3746
+ Hs(e) && (y(t) ? g(q, this).setAttribute(e, t) : g(q, this).removeAttribute(e));
3746
3747
  }), p(this, nc, () => {
3747
3748
  Array.from(this.children).forEach((e) => {
3748
3749
  g(Qs, this).add(e);
@@ -3762,7 +3763,7 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3762
3763
  h(J, this, fc).call(this, "Stream is offline", "Please stand by");
3763
3764
  return;
3764
3765
  }
3765
- e.isFatal() && (e.code() === "access_forbidden" ? h(J, this, fc).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? h(J, this, fc).call(this, "Stream is offline", "Please stand by") : h(J, this, fc).call(this, "An error occurred", e.message), g(Ys, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), g(q, this).dispatchEvent(new CustomEvent(S.EXIT_FULLSCREEN)), g(q, this).dispatchEvent(new CustomEvent(S.EXIT_PIP)));
3766
+ e.isFatal() && (e.code() === "access_forbidden" ? h(J, this, fc).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? h(J, this, fc).call(this, "Stream is offline", "Please stand by") : h(J, this, fc).call(this, "An error occurred", e.message), g(Ys, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), g(q, this).dispatchEvent(new CustomEvent(C.EXIT_FULLSCREEN)), g(q, this).dispatchEvent(new CustomEvent(C.EXIT_PIP)));
3766
3767
  }));
3767
3768
  }), p(this, ic, () => {
3768
3769
  g(q, this).connect(), g(Ys, this).setAttribute("hidden", ""), h(J, this, pc).call(this), g(q, this).focus();
@@ -3782,10 +3783,10 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3782
3783
  }));
3783
3784
  }
3784
3785
  attributeChangedCallback(e, t, n) {
3785
- if (t !== n) if (e === _.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) h(J, this, cc).call(this);
3786
+ if (t !== n) if (e === v.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) h(J, this, cc).call(this);
3786
3787
  else if (e === K.REFRESH_POSTER_ENABLED) {
3787
3788
  let e = g(qs, this).querySelector("vindral-poster-overlay");
3788
- e && (e.disabled = x(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3789
+ e && (e.disabled = S(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3789
3790
  } else g(tc, this).call(this, e, n);
3790
3791
  }
3791
3792
  get instance() {
@@ -3802,7 +3803,7 @@ var zs = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3802
3803
  }
3803
3804
  };
3804
3805
  function oc() {
3805
- let e = be(this.getAttribute(_.MEDIA)), t = x(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3806
+ let e = ye(this.getAttribute(v.MEDIA)), t = S(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3806
3807
  return e === "audio" ? Gs : Ws(t);
3807
3808
  }
3808
3809
  function sc() {
@@ -3818,7 +3819,7 @@ function cc() {
3818
3819
  }
3819
3820
  function lc() {
3820
3821
  var e;
3821
- if (x(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3822
+ if (S(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3822
3823
  let t = this.getAttribute("url") || "https://lb.cdn.vindral.com", n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
3823
3824
  if (!n) {
3824
3825
  this.setAttribute(K.OFFLINE, ""), h(J, this, fc).call(this, "Invalid options", "Please enter a channel id to start the stream");
@@ -3839,15 +3840,15 @@ function lc() {
3839
3840
  }
3840
3841
  function uc(e) {
3841
3842
  var t, n, r;
3842
- let i = _e(this.getAttribute("title"), !1);
3843
- i && je({
3843
+ let i = ge(this.getAttribute("title"), !1);
3844
+ i && Ae({
3844
3845
  title: typeof i == "string" ? i : e.name,
3845
3846
  poster: (t = (n = h(J, this, dc).call(this)) == null ? (r = this.instance) == null ? void 0 : r.getThumbnailUrl() : n) == null ? e.thumbnailUrls[0] : t
3846
3847
  });
3847
3848
  }
3848
3849
  function dc() {
3849
- let e = _e(this.getAttribute("poster"));
3850
- return v(e) ? e : void 0;
3850
+ let e = ge(this.getAttribute("poster"));
3851
+ return y(e) ? e : void 0;
3851
3852
  }
3852
3853
  function fc(e, t) {
3853
3854
  g(Js, this).setAttribute("title", e), g(Js, this).setAttribute("description", t), g(Js, this).removeAttribute("hidden");
@@ -3891,14 +3892,14 @@ mc.innerHTML = `
3891
3892
  transition: background 0.2s ease;
3892
3893
  }
3893
3894
 
3894
- :host(:not([${_.PAUSED}])) {
3895
+ :host(:not([${v.PAUSED}])) {
3895
3896
  display: none;
3896
3897
  }
3897
3898
  </style>
3898
3899
  `;
3899
3900
  var hc = 6e3, gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), yc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakSet(), xc = /* @__PURE__ */ new WeakMap(), Sc = class extends HTMLElement {
3900
3901
  constructor() {
3901
- super(), C(this, bc), p(this, gc, null), p(this, _c, null), p(this, vc, null), p(this, yc, () => {
3902
+ super(), w(this, bc), p(this, gc, null), p(this, _c, null), p(this, vc, null), p(this, yc, () => {
3902
3903
  !document.hidden && this.hasAttribute("intersecting") && this.paused && !this.disabled ? h(bc, this, Cc).call(this) : h(bc, this, wc).call(this);
3903
3904
  }), p(this, xc, (e) => {
3904
3905
  e.forEach((e) => {
@@ -3915,7 +3916,7 @@ var hc = 6e3, gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakM
3915
3916
  (e = g(gc, this)) == null || e.disconnectListener(this), document.removeEventListener("visibilitychange", g(yc, this)), (t = g(vc, this)) == null || t.disconnect(), m(vc, this, null), h(bc, this, wc).call(this);
3916
3917
  }
3917
3918
  attributeChangedCallback(e, t, n) {
3918
- t !== n && (e === _.POSTER_SRC && this.paused && !this.disabled && h(bc, this, Tc).call(this), (e === _.PAUSED || e === "disabled" || e === "intersecting") && g(yc, this).call(this));
3919
+ t !== n && (e === v.POSTER_SRC && this.paused && !this.disabled && h(bc, this, Tc).call(this), (e === v.PAUSED || e === "disabled" || e === "intersecting") && g(yc, this).call(this));
3919
3920
  }
3920
3921
  get disabled() {
3921
3922
  return this.hasAttribute("disabled");
@@ -3924,10 +3925,10 @@ var hc = 6e3, gc = /* @__PURE__ */ new WeakMap(), _c = /* @__PURE__ */ new WeakM
3924
3925
  e ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3925
3926
  }
3926
3927
  get posterSrc() {
3927
- return this.getAttribute(_.POSTER_SRC);
3928
+ return this.getAttribute(v.POSTER_SRC);
3928
3929
  }
3929
3930
  get paused() {
3930
- return this.hasAttribute(_.PAUSED);
3931
+ return this.hasAttribute(v.PAUSED);
3931
3932
  }
3932
3933
  };
3933
3934
  function Cc() {
@@ -3942,8 +3943,8 @@ function Tc() {
3942
3943
  e.searchParams.set("t", Date.now().toString()), t.src = e.toString(), t.onload = () => this.style.backgroundImage = `url(${e.toString()})`;
3943
3944
  }
3944
3945
  e(Sc, "observedAttributes", [
3945
- _.POSTER_SRC,
3946
- _.PAUSED,
3946
+ v.POSTER_SRC,
3947
+ v.PAUSED,
3947
3948
  "disabled",
3948
3949
  "intersecting"
3949
3950
  ]);
@@ -3962,31 +3963,31 @@ Oc.innerHTML = `
3962
3963
  <vindral-rendition-levels-menu-list id="listbox" part="listbox"></vindral-rendition-levels-menu-list>
3963
3964
  </slot>
3964
3965
  `;
3965
- var kc = /* @__PURE__ */ new WeakSet(), Ac = class extends Ve {
3966
+ var kc = /* @__PURE__ */ new WeakSet(), Ac = class extends Be {
3966
3967
  constructor() {
3967
3968
  var e, t, n;
3968
- super(), C(this, kc), (e = this.shadowRoot) == null || e.appendChild(Oc.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3969
+ super(), w(this, kc), (e = this.shadowRoot) == null || e.appendChild(Oc.content.cloneNode(!0)), this.listbox = (t = this.shadowRoot) == null ? void 0 : t.querySelector("[part=listbox]"), this.listboxSlot = (n = this.shadowRoot) == null ? void 0 : n.querySelector("slot[name=listbox]");
3969
3970
  }
3970
3971
  connectedCallback() {
3971
3972
  super.connectedCallback(), h(kc, this, jc).call(this), this.setAttribute("aria-label", "Quality");
3972
3973
  }
3973
3974
  attributeChangedCallback(e, t, n) {
3974
- super.attributeChangedCallback(e, t, n), e === _.RENDITION_LEVELS && h(kc, this, jc).call(this);
3975
+ super.attributeChangedCallback(e, t, n), e === v.RENDITION_LEVELS && h(kc, this, jc).call(this);
3975
3976
  }
3976
3977
  };
3977
3978
  Ec = Ac;
3978
3979
  function jc() {
3979
- let e = this.getAttribute(_.RENDITION_LEVELS);
3980
+ let e = this.getAttribute(v.RENDITION_LEVELS);
3980
3981
  !e || e === "[]" ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
3981
3982
  }
3982
- e(Ac, "observedAttributes", [...b(Ec, "observedAttributes", Ec), _.RENDITION_LEVELS]);
3983
+ e(Ac, "observedAttributes", [...x(Ec, "observedAttributes", Ec), v.RENDITION_LEVELS]);
3983
3984
  //#endregion
3984
3985
  //#region ../../libs/player-next/src/components/RenditionLevelsMenuList.ts
3985
3986
  var Mc = document.createElement("template");
3986
3987
  Mc.innerHTML = "\n <style>\n :host {\n font: inherit;\n cursor: default;\n padding: var(--padding-2) !important;\n padding-top: var(--padding-3) !important;\n border-radius: 0.25em;\n position: absolute;\n min-width: 140px !important;\n background: var(--bg-subtle);\n z-index: 1;\n overflow: auto;\n }\n\n :host([list-position=\"top\"]) {\n bottom: calc(100% + 0.5em);\n transform: translate(-50%);\n }\n\n :host([list-position=\"bottom\"]) {\n top: calc(100% + 0.5em);\n }\n\n :host::-webkit-scrollbar {\n width: 5px;\n padding-right: 5px;\n }\n\n :host::-webkit-scrollbar-thumb {\n background-color: var(--fg-extra-subtle);\n border-radius: 10px;\n border: 0;\n }\n\n :host::-webkit-scrollbar-track {\n border-radius: 10px;\n background-color: transparent;\n }\n\n .menu {\n display: grid;\n gap: var(--padding-1);\n }\n\n [role=\"menuitem\"] {\n flex: 1;\n position: relative;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 44px;\n padding: 0 var(--padding-5);\n border-radius: 4px;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: normal;\n white-space: nowrap;\n text-align: left;\n }\n\n [role=\"menuitem\"]:hover {\n background: var(--bg-component-hover);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"] {\n background: var(--bg-component-active);\n }\n\n [role=\"menuitem\"][aria-selected=\"true\"]::before {\n content: url(\"data:image/svg+xml,%0A%20%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2078.369%2078.369%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20d%3D%22M78.049%2019.015%2029.458%2067.606a1.094%201.094%200%200%201-1.548%200L.32%2040.015a1.094%201.094%200%200%201%200-1.547l6.704-6.704a1.095%201.095%200%200%201%201.548%200l20.113%2020.112%2041.113-41.113a1.095%201.095%200%200%201%201.548%200l6.703%206.704a1.094%201.094%200%200%201%200%201.548z%22%2F%3E%3C%2Fsvg%3E%0A\");\n position: absolute;\n left: calc(var(--padding-3) - var(--padding-1));\n top: calc(50% - 8px);\n }\n\n [role=\"menuitem\"]:focus-visible {\n box-shadow: inset 0 0 0 2px var(--fg-strong);\n outline: 0;\n }\n\n .menu-item-subtitle {\n font-size: 11px;\n opacity: 0.6;\n }\n\n .heading {\n text-transform: uppercase;\n margin-bottom: var(--padding-2);\n padding: 0 var(--padding-3);\n font-size: 11px;\n font-weight: bold;\n }\n </style>\n\n <slot>\n <div class=\"heading\">Max quality</div>\n <div class=\"menu\"></div>\n </slot>\n";
3987
3988
  var Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc = /* @__PURE__ */ new WeakMap(), Ic = /* @__PURE__ */ new WeakMap(), Lc = /* @__PURE__ */ new WeakMap(), Rc = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), zc = class extends HTMLElement {
3988
3989
  constructor() {
3989
- super(), C(this, Y), p(this, Nc, []), p(this, Pc, 2 ** 53 - 1), p(this, Fc, null), p(this, Ic, []), p(this, Lc, null), p(this, Rc, null), e(this, "handleEvent", (e) => {
3990
+ super(), w(this, Y), p(this, Nc, []), p(this, Pc, 2 ** 53 - 1), p(this, Fc, null), p(this, Ic, []), p(this, Lc, null), p(this, Rc, null), e(this, "handleEvent", (e) => {
3990
3991
  switch (e.type) {
3991
3992
  case "keydown":
3992
3993
  h(Y, this, Gc).call(this, e);
@@ -4006,7 +4007,7 @@ var Nc = /* @__PURE__ */ new WeakMap(), Pc = /* @__PURE__ */ new WeakMap(), Fc =
4006
4007
  (e = g(Lc, this)) == null || e.disconnectListener(this), this.removeEventListener("keydown", this);
4007
4008
  }
4008
4009
  attributeChangedCallback(e, t, n) {
4009
- t !== n && (e === _.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === _.MAX_VIDEO_BITRATE && n && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1));
4010
+ t !== n && (e === v.RENDITION_LEVELS && n && (this.list = JSON.parse(n)), e === v.MAX_VIDEO_BITRATE && n && (this.maxVideoBitrate = n ? parseInt(n, 10) : 2 ** 53 - 1));
4010
4011
  }
4011
4012
  set list(e) {
4012
4013
  m(Nc, this, e), h(Y, this, Vc).call(this);
@@ -4055,9 +4056,9 @@ function Vc() {
4055
4056
  let u = document.createElement("div");
4056
4057
  u.setAttribute("role", "menuitem"), u.setAttribute("value", String((n = e.video) == null ? void 0 : n.height)), u.classList.add("menu-item"), u.tabIndex = -1;
4057
4058
  let d = h(Y, this, Hc).call(this, (r = e.video) == null ? void 0 : r.frameRate);
4058
- u.textContent = e.video ? pe(e.video) : "";
4059
+ u.textContent = e.video ? fe(e.video) : "";
4059
4060
  let f = document.createElement("span");
4060
- f.classList.add("menu-item-subtitle"), f.textContent = `${me(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${d}p`, u.appendChild(f), u.addEventListener("click", () => h(Y, this, Wc).call(this, e)), g(Ic, this).push({
4061
+ f.classList.add("menu-item-subtitle"), f.textContent = `${pe(((i = (a = e.video) == null ? void 0 : a.bitRate) == null ? 0 : i) + ((o = (s = e.audio) == null ? void 0 : s.bitRate) == null ? 0 : o))}, ${d}p`, u.appendChild(f), u.addEventListener("click", () => h(Y, this, Wc).call(this, e)), g(Ic, this).push({
4061
4062
  el: u,
4062
4063
  id: (c = (l = e.video) == null ? void 0 : l.id) == null ? -1 : c
4063
4064
  }), t.appendChild(u);
@@ -4087,7 +4088,7 @@ function Wc(e) {
4087
4088
  this.dispatchEvent(new Event("change", {
4088
4089
  bubbles: !0,
4089
4090
  composed: !0
4090
- })), this.dispatchEvent(new CustomEvent(S.SET_RENDITION, {
4091
+ })), this.dispatchEvent(new CustomEvent(C.SET_RENDITION, {
4091
4092
  bubbles: !0,
4092
4093
  composed: !0,
4093
4094
  detail: e
@@ -4118,7 +4119,7 @@ function qc() {
4118
4119
  function Jc(e) {
4119
4120
  for (let t of g(Ic, this)) t.el.tabIndex = t.id === e ? 0 : -1;
4120
4121
  }
4121
- e(zc, "observedAttributes", [_.RENDITION_LEVELS, _.MAX_VIDEO_BITRATE]);
4122
+ e(zc, "observedAttributes", [v.RENDITION_LEVELS, v.MAX_VIDEO_BITRATE]);
4122
4123
  //#endregion
4123
4124
  //#region ../../libs/player-next/src/components/ScrollOverlay.ts
4124
4125
  var Yc = document.createElement("template");
@@ -4182,7 +4183,7 @@ Yc.innerHTML = `
4182
4183
  flex-direction: column;
4183
4184
  }
4184
4185
 
4185
- :host(:not([${_.USER_INTERACTING}])) {
4186
+ :host(:not([${v.USER_INTERACTING}])) {
4186
4187
  overflow: hidden !important;
4187
4188
  }
4188
4189
  </style>
@@ -4192,7 +4193,7 @@ Yc.innerHTML = `
4192
4193
  `;
4193
4194
  var Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), el = /* @__PURE__ */ new WeakMap(), tl = /* @__PURE__ */ new WeakMap(), nl = /* @__PURE__ */ new WeakMap(), rl = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakSet(), il = /* @__PURE__ */ new WeakMap(), al = class extends HTMLElement {
4194
4195
  constructor() {
4195
- super(), C(this, X), p(this, Xc, null), p(this, Zc, null), p(this, Qc, !1), p(this, $c, !1), p(this, el, !1), p(this, tl, () => {
4196
+ super(), w(this, X), p(this, Xc, null), p(this, Zc, null), p(this, Qc, !1), p(this, $c, !1), p(this, el, !1), p(this, tl, () => {
4196
4197
  this.open && (this.open = !1);
4197
4198
  }), p(this, nl, null), p(this, rl, window.ResizeObserver ? new ResizeObserver(() => {
4198
4199
  if (this.open && !g(Qc, this)) {
@@ -4235,7 +4236,7 @@ var Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc =
4235
4236
  let l = (r = this.shadowRoot) == null ? void 0 : r.querySelector("#content");
4236
4237
  l && ((i = g(rl, this)) == null || i.observe(l)), (a = g(Zc, this)) == null || a.addEventListener("click", g(tl, this));
4237
4238
  let u = this.hasAttribute("touch-enabled");
4238
- if (m(el, this, f() && u), !g(el, this)) this.setAttribute("snap", "");
4239
+ if (m(el, this, d() && u), !g(el, this)) this.setAttribute("snap", "");
4239
4240
  else {
4240
4241
  var o, s, c;
4241
4242
  (o = g(Xc, this)) == null || o.addEventListener("touchstart", this, { passive: !0 }), (s = g(Xc, this)) == null || s.addEventListener("touchmove", this, { passive: !1 }), (c = g(Xc, this)) == null || c.addEventListener("touchend", this, { passive: !0 });
@@ -4248,7 +4249,7 @@ var Xc = /* @__PURE__ */ new WeakMap(), Zc = /* @__PURE__ */ new WeakMap(), Qc =
4248
4249
  (e = g(rl, this)) == null || e.disconnect(), (t = g(Zc, this)) == null || t.removeEventListener("click", g(tl, this)), this.removeEventListener("scroll", g(il, this)), (n = g(Xc, this)) == null || n.removeEventListener("touchstart", this), (r = g(Xc, this)) == null || r.removeEventListener("touchmove", this), (i = g(Xc, this)) == null || i.removeEventListener("touchend", this), (a = g(Xc, this)) == null || a.disconnectListener(this);
4249
4250
  }
4250
4251
  attributeChangedCallback(e, t, n) {
4251
- if (t !== n && (e === _.USER_INTERACTING && n === null && h(X, this, dl).call(this) && setTimeout(() => {
4252
+ if (t !== n && (e === v.USER_INTERACTING && n === null && h(X, this, dl).call(this) && setTimeout(() => {
4252
4253
  this.open = !1;
4253
4254
  }, 300), e === "open")) if (n !== null) {
4254
4255
  var r;
@@ -4293,7 +4294,7 @@ function ll(e) {
4293
4294
  g($c, this) && !g(Qc, this) && h(X, this, dl).call(this) && (!this.hasAttribute("snap-touch") || !this.open) && (this.open = !0), m(nl, this, null), m($c, this, !1);
4294
4295
  }
4295
4296
  function ul() {
4296
- return this.hasAttribute(_.USER_INTERACTING);
4297
+ return this.hasAttribute(v.USER_INTERACTING);
4297
4298
  }
4298
4299
  function dl() {
4299
4300
  return this.scrollTop > 0;
@@ -4328,19 +4329,19 @@ function _l(e = !1) {
4328
4329
  this.open = !1, e && this.removeAttribute("snap-touch"), m(Qc, this, !1), h(X, this, yl).call(this);
4329
4330
  }
4330
4331
  function vl() {
4331
- this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(S.LOCK_UI, {
4332
+ this.visible || (this.visible = !0, this.dispatchEvent(new CustomEvent(C.LOCK_UI, {
4332
4333
  bubbles: !0,
4333
4334
  composed: !0
4334
4335
  })));
4335
4336
  }
4336
4337
  function yl() {
4337
- this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(S.UNLOCK_UI, {
4338
+ this.visible && (this.visible = !1, this.dispatchEvent(new CustomEvent(C.UNLOCK_UI, {
4338
4339
  bubbles: !0,
4339
4340
  composed: !0
4340
4341
  })));
4341
4342
  }
4342
4343
  e(al, "observedAttributes", [
4343
- _.USER_INTERACTING,
4344
+ v.USER_INTERACTING,
4344
4345
  "open",
4345
4346
  "touch-enabled"
4346
4347
  ]);
@@ -4400,7 +4401,7 @@ var bl = "#EXT-X-TILES:", xl = "#EXT-X-PROGRAM-DATE-TIME:", Sl = "#EXTINF:", Cl
4400
4401
  };
4401
4402
  }, Dl = /* @__PURE__ */ new WeakMap(), Ol = /* @__PURE__ */ new WeakMap(), kl = /* @__PURE__ */ new WeakMap(), Al = /* @__PURE__ */ new WeakMap(), jl = /* @__PURE__ */ new WeakMap(), Ml = /* @__PURE__ */ new WeakSet(), Nl = class {
4402
4403
  constructor(e, t = () => {}) {
4403
- C(this, Ml), p(this, Dl, void 0), p(this, Ol, void 0), p(this, kl, null), p(this, Al, null), p(this, jl, null), m(Dl, this, e), m(Ol, this, t);
4404
+ w(this, Ml), p(this, Dl, void 0), p(this, Ol, void 0), p(this, kl, null), p(this, Al, null), p(this, jl, null), m(Dl, this, e), m(Ol, this, t);
4404
4405
  }
4405
4406
  get hasFrame() {
4406
4407
  return g(kl, this) !== null;
@@ -4470,7 +4471,7 @@ Hl.innerHTML = `
4470
4471
  }
4471
4472
 
4472
4473
  #time-tooltip {
4473
- ${ge}
4474
+ ${he}
4474
4475
  position: absolute;
4475
4476
  bottom: 100%;
4476
4477
  left: 50%;
@@ -4534,12 +4535,12 @@ Hl.innerHTML = `
4534
4535
  var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl = /* @__PURE__ */ new WeakMap(), Gl = /* @__PURE__ */ new WeakMap(), Kl = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Jl = /* @__PURE__ */ new WeakMap(), Yl = /* @__PURE__ */ new WeakMap(), Xl = /* @__PURE__ */ new WeakMap(), Zl = /* @__PURE__ */ new WeakMap(), Ql = /* @__PURE__ */ new WeakMap(), $l = /* @__PURE__ */ new WeakMap(), eu = /* @__PURE__ */ new WeakMap(), tu = /* @__PURE__ */ new WeakMap(), nu = /* @__PURE__ */ new WeakMap(), ru = /* @__PURE__ */ new WeakMap(), iu = /* @__PURE__ */ new WeakMap(), au = /* @__PURE__ */ new WeakMap(), ou = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), su = /* @__PURE__ */ new WeakMap(), cu = /* @__PURE__ */ new WeakMap(), lu = /* @__PURE__ */ new WeakMap(), uu = /* @__PURE__ */ new WeakMap(), du = /* @__PURE__ */ new WeakMap(), fu = /* @__PURE__ */ new WeakMap(), pu = /* @__PURE__ */ new WeakMap(), mu = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakSet(), hu = /* @__PURE__ */ new WeakMap(), gu = /* @__PURE__ */ new WeakMap(), _u = /* @__PURE__ */ new WeakMap(), vu = /* @__PURE__ */ new WeakMap(), yu = /* @__PURE__ */ new WeakMap(), bu = /* @__PURE__ */ new WeakMap(), xu = /* @__PURE__ */ new WeakMap(), Su = class extends ji {
4535
4536
  constructor() {
4536
4537
  var e, t, n, r, i;
4537
- super(), C(this, $), p(this, Z, void 0), p(this, Ul, void 0), p(this, Wl, null), p(this, Gl, null), p(this, Kl, 0), p(this, ql, null), p(this, Jl, void 0), p(this, Yl, !1), p(this, Xl, !1), p(this, Zl, /* @__PURE__ */ new Set()), p(this, Ql, /* @__PURE__ */ new Set()), p(this, $l, /* @__PURE__ */ new Set()), p(this, eu, null), p(this, tu, !1), p(this, nu, void 0), p(this, ru, void 0), p(this, iu, void 0), p(this, au, []), p(this, ou, null), p(this, Q, !1), p(this, su, null), p(this, cu, null), p(this, lu, null), p(this, uu, !1), p(this, du, null), p(this, fu, null), p(this, pu, !1), p(this, mu, !1), p(this, hu, (e) => {
4538
+ super(), w(this, $), p(this, Z, void 0), p(this, Ul, void 0), p(this, Wl, null), p(this, Gl, null), p(this, Kl, 0), p(this, ql, null), p(this, Jl, void 0), p(this, Yl, !1), p(this, Xl, !1), p(this, Zl, /* @__PURE__ */ new Set()), p(this, Ql, /* @__PURE__ */ new Set()), p(this, $l, /* @__PURE__ */ new Set()), p(this, eu, null), p(this, tu, !1), p(this, nu, void 0), p(this, ru, void 0), p(this, iu, void 0), p(this, au, []), p(this, ou, null), p(this, Q, !1), p(this, su, null), p(this, cu, null), p(this, lu, null), p(this, uu, !1), p(this, du, null), p(this, fu, null), p(this, pu, !1), p(this, mu, !1), p(this, hu, (e) => {
4538
4539
  if (!h($, this, Tu).call(this) || h($, this, Eu).call(this)) {
4539
4540
  e.preventDefault();
4540
4541
  return;
4541
4542
  }
4542
- m(Q, this, !0), m(fu, this, e.pointerId), m(su, this, e.pointerType), m(cu, this, this.range.value), m(uu, this, !this.hasAttribute(_.PAUSED)), g(uu, this) && h($, this, Bu).call(this, S.PAUSE);
4543
+ m(Q, this, !0), m(fu, this, e.pointerId), m(su, this, e.pointerType), m(cu, this, this.range.value), m(uu, this, !this.hasAttribute(v.PAUSED)), g(uu, this) && h($, this, Bu).call(this, C.PAUSE);
4543
4544
  try {
4544
4545
  this.setPointerCapture(e.pointerId);
4545
4546
  } catch (e) {}
@@ -4571,7 +4572,7 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
4571
4572
  } catch (e) {}
4572
4573
  m(Q, this, !1), m(fu, this, null), m(su, this, null), h($, this, Vu).call(this, null);
4573
4574
  let t = g(lu, this), n = g(cu, this);
4574
- m(lu, this, null), m(cu, this, null), e.type === "pointerup" && t !== null ? h($, this, Hu).call(this, t) : n !== null && (this.range.value = n, this.updateBar()), g(uu, this) && h($, this, Bu).call(this, S.PLAY), m(uu, this, !1), e.pointerType !== "mouse" && (g(nu, this).style.opacity = "0", g(bu, this).call(this)), g(mu, this) && h($, this, Ku).call(this) && (m(pu, this, !1), m(mu, this, !1));
4575
+ m(lu, this, null), m(cu, this, null), e.type === "pointerup" && t !== null ? h($, this, Hu).call(this, t) : n !== null && (this.range.value = n, this.updateBar()), g(uu, this) && h($, this, Bu).call(this, C.PLAY), m(uu, this, !1), e.pointerType !== "mouse" && (g(nu, this).style.opacity = "0", g(bu, this).call(this)), g(mu, this) && h($, this, Ku).call(this) && (m(pu, this, !1), m(mu, this, !1));
4575
4576
  }), p(this, vu, () => {
4576
4577
  this.duration && !h($, this, Eu).call(this) && (g(nu, this).style.opacity = "1"), m(Xl, this, !0), h($, this, Nu).call(this);
4577
4578
  }), p(this, yu, () => {
@@ -4614,7 +4615,7 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
4614
4615
  }
4615
4616
  attributeChangedCallback(e, t, n) {
4616
4617
  if (super.attributeChangedCallback(e, t, n), t !== n) switch (e) {
4617
- case _.TIMESHIFT_POSITION:
4618
+ case v.TIMESHIFT_POSITION:
4618
4619
  if (h($, this, Ku).call(this)) {
4619
4620
  if (g(Q, this)) {
4620
4621
  m(mu, this, !0);
@@ -4629,13 +4630,13 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
4629
4630
  this.range.value = e.toString(), h($, this, Mu).call(this);
4630
4631
  }
4631
4632
  break;
4632
- case _.DURATION:
4633
+ case v.DURATION:
4633
4634
  m(Z, this, parseFloat(n) || 0), h($, this, Mu).call(this), h($, this, Du).call(this), h($, this, ku).call(this);
4634
4635
  break;
4635
- case _.TIMELINE_MARKERS:
4636
+ case v.TIMELINE_MARKERS:
4636
4637
  m(au, this, Kr(n)), h($, this, Du).call(this), h($, this, ku).call(this);
4637
4638
  break;
4638
- case _.TIMESHIFT_THUMBNAIL_URL:
4639
+ case v.TIMESHIFT_THUMBNAIL_URL:
4639
4640
  m(Wl, this, n || null), m(Gl, this, null), m(Kl, this, 0), g(Jl, this).reset(), g(Zl, this).clear(), g(Ql, this).clear(), g($l, this).clear(), g(bu, this).call(this), g(ql, this) ? m(tu, this, !0) : (g(Xl, this) || g(Q, this)) && h($, this, Nu).call(this);
4640
4641
  break;
4641
4642
  }
@@ -4651,7 +4652,7 @@ var Z = /* @__PURE__ */ new WeakMap(), Ul = /* @__PURE__ */ new WeakMap(), Wl =
4651
4652
  return g(Z, this);
4652
4653
  }
4653
4654
  set duration(e) {
4654
- this.setAttribute(_.DURATION, e.toString());
4655
+ this.setAttribute(v.DURATION, e.toString());
4655
4656
  }
4656
4657
  };
4657
4658
  function Cu() {
@@ -4717,15 +4718,15 @@ function Mu() {
4717
4718
  }
4718
4719
  function Nu() {
4719
4720
  var e = this;
4720
- return t(function* () {
4721
- let n = g(Wl, e);
4722
- if (!(!n || g(ql, e)) && !(Date.now() - g(Kl, e) < Rl)) return m(ql, e, t(function* () {
4723
- let t = new AbortController(), r = setTimeout(() => t.abort(), zl);
4721
+ return _(function* () {
4722
+ let t = g(Wl, e);
4723
+ if (!(!t || g(ql, e)) && !(Date.now() - g(Kl, e) < Rl)) return m(ql, e, _(function* () {
4724
+ let n = new AbortController(), r = setTimeout(() => n.abort(), zl);
4724
4725
  try {
4725
- let r = yield fetch(n, { signal: t.signal });
4726
- if (g(Wl, e) !== n || (m(Kl, e, Date.now()), !r.ok)) return;
4727
- let i = Tl(yield r.text(), n);
4728
- if (!i || g(Wl, e) !== n) return;
4726
+ let r = yield fetch(t, { signal: n.signal });
4727
+ if (g(Wl, e) !== t || (m(Kl, e, Date.now()), !r.ok)) return;
4728
+ let i = Tl(yield r.text(), t);
4729
+ if (!i || g(Wl, e) !== t) return;
4729
4730
  m(Gl, e, i);
4730
4731
  for (let t of i.sheets.slice(-Bl)) h($, e, Fu).call(e, t.url);
4731
4732
  h($, e, Lu).call(e);
@@ -4792,7 +4793,7 @@ function Bu(e) {
4792
4793
  }));
4793
4794
  }
4794
4795
  function Vu(e) {
4795
- this.dispatchEvent(new CustomEvent(S.SEEK_PREVIEW, {
4796
+ this.dispatchEvent(new CustomEvent(C.SEEK_PREVIEW, {
4796
4797
  bubbles: !0,
4797
4798
  composed: !0,
4798
4799
  detail: e
@@ -4816,13 +4817,13 @@ function Wu(e) {
4816
4817
  }));
4817
4818
  }
4818
4819
  function Gu(e) {
4819
- return g(pu, this) || h($, this, Ku).call(this) || e < .999 ? !1 : (m(pu, this, !0), m(mu, this, !1), this.dispatchEvent(new CustomEvent(S.GO_LIVE, {
4820
+ return g(pu, this) || h($, this, Ku).call(this) || e < .999 ? !1 : (m(pu, this, !0), m(mu, this, !1), this.dispatchEvent(new CustomEvent(C.GO_LIVE, {
4820
4821
  bubbles: !0,
4821
4822
  composed: !0
4822
4823
  })), !0);
4823
4824
  }
4824
4825
  function Ku() {
4825
- return !this.hasAttribute(_.TIMESHIFT_POSITION);
4826
+ return !this.hasAttribute(v.TIMESHIFT_POSITION);
4826
4827
  }
4827
4828
  function qu(e) {
4828
4829
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
@@ -4830,11 +4831,11 @@ function qu(e) {
4830
4831
  }
4831
4832
  e(Su, "observedAttributes", [
4832
4833
  ...ji.observedAttributes,
4833
- _.TIMESHIFT_POSITION,
4834
- _.DURATION,
4835
- _.TIMELINE_MARKERS,
4836
- _.TIMESHIFT_THUMBNAIL_URL,
4837
- _.PAUSED
4834
+ v.TIMESHIFT_POSITION,
4835
+ v.DURATION,
4836
+ v.TIMELINE_MARKERS,
4837
+ v.TIMESHIFT_THUMBNAIL_URL,
4838
+ v.PAUSED
4838
4839
  ]);
4839
4840
  //#endregion
4840
4841
  //#region ../../libs/player-next/src/components/SeekPreviewOverlay.ts
@@ -4865,7 +4866,7 @@ var Yu = (e) => {
4865
4866
  (e = g(Xu, this)) == null || e.disconnectListener(this);
4866
4867
  }
4867
4868
  attributeChangedCallback(e, t, n) {
4868
- if (e !== _.SEEK_PREVIEW) return;
4869
+ if (e !== v.SEEK_PREVIEW) return;
4869
4870
  let r = Yu(n);
4870
4871
  if (m($u, this, r !== null), !r) {
4871
4872
  this.removeAttribute("data-active");
@@ -4879,7 +4880,7 @@ var Yu = (e) => {
4879
4880
  });
4880
4881
  }
4881
4882
  };
4882
- e(ed, "observedAttributes", [_.SEEK_PREVIEW]);
4883
+ e(ed, "observedAttributes", [v.SEEK_PREVIEW]);
4883
4884
  //#endregion
4884
4885
  //#region ../../libs/player-next/src/components/UserInputPlayOverlay.ts
4885
4886
  var td = document.createElement("template");
@@ -4924,12 +4925,12 @@ td.innerHTML = `
4924
4925
  height: var(--play-overlay-icon-size);
4925
4926
  }
4926
4927
 
4927
- :host(:not([${_.NEEDS_USER_INPUT_VIDEO}]):not([${_.PAUSED}])) slot[name="play"] {
4928
+ :host(:not([${v.NEEDS_USER_INPUT_VIDEO}]):not([${v.PAUSED}])) slot[name="play"] {
4928
4929
  display: none !important;
4929
4930
  }
4930
4931
 
4931
- :host([${_.PAUSED}]) slot[name="unmute"],
4932
- :host(:not([${_.NEEDS_USER_INPUT_AUDIO}])) slot[name="unmute"] {
4932
+ :host([${v.PAUSED}]) slot[name="unmute"],
4933
+ :host(:not([${v.NEEDS_USER_INPUT_AUDIO}])) slot[name="unmute"] {
4933
4934
  display: none !important;
4934
4935
  }
4935
4936
  </style>
@@ -4946,7 +4947,7 @@ td.innerHTML = `
4946
4947
  var nd = /* @__PURE__ */ new WeakMap(), rd = /* @__PURE__ */ new WeakMap(), id = /* @__PURE__ */ new WeakMap(), ad = /* @__PURE__ */ new WeakMap(), od = class extends HTMLElement {
4947
4948
  constructor() {
4948
4949
  super(), p(this, nd, null), p(this, rd, () => {
4949
- this.dispatchEvent(new CustomEvent(S.REQUEST_USER_INPUT, {
4950
+ this.dispatchEvent(new CustomEvent(C.REQUEST_USER_INPUT, {
4950
4951
  bubbles: !0,
4951
4952
  composed: !0
4952
4953
  }));
@@ -4956,7 +4957,7 @@ var nd = /* @__PURE__ */ new WeakMap(), rd = /* @__PURE__ */ new WeakMap(), id =
4956
4957
  this.removeEventListener("keyup", g(id, this));
4957
4958
  return;
4958
4959
  }
4959
- this.dispatchEvent(new CustomEvent(S.REQUEST_USER_INPUT, {
4960
+ this.dispatchEvent(new CustomEvent(C.REQUEST_USER_INPUT, {
4960
4961
  bubbles: !0,
4961
4962
  composed: !0
4962
4963
  }));
@@ -4989,9 +4990,9 @@ var nd = /* @__PURE__ */ new WeakMap(), rd = /* @__PURE__ */ new WeakMap(), id =
4989
4990
  };
4990
4991
  e(od, "observedAttributes", [
4991
4992
  "hidden",
4992
- _.NEEDS_USER_INPUT_VIDEO,
4993
- _.NEEDS_USER_INPUT_AUDIO,
4994
- _.PAUSED
4993
+ v.NEEDS_USER_INPUT_VIDEO,
4994
+ v.NEEDS_USER_INPUT_AUDIO,
4995
+ v.PAUSED
4995
4996
  ]);
4996
4997
  //#endregion
4997
4998
  //#region ../../libs/player-next/src/components/VindralCenterOverlay.ts
@@ -5049,7 +5050,7 @@ var md = /* @__PURE__ */ new WeakMap(), hd = class extends HTMLElement {
5049
5050
  (e = g(md, this)) == null || e.disconnectListener(this);
5050
5051
  }
5051
5052
  attributeChangedCallback(e, t, n) {
5052
- t !== n && e === "hidden" && !v(n) && this.focus();
5053
+ t !== n && e === "hidden" && !y(n) && this.focus();
5053
5054
  }
5054
5055
  };
5055
5056
  e(hd, "observedAttributes", ["hidden"]);
@@ -5073,7 +5074,7 @@ vd.innerHTML = `
5073
5074
  background: rgba(255, 255, 255, 0.25);
5074
5075
  }
5075
5076
 
5076
- ${we}
5077
+ ${Ce}
5077
5078
 
5078
5079
  #range:focus-visible ~ .tooltip {
5079
5080
  opacity: 1;
@@ -5088,7 +5089,7 @@ var yd = (e) => `${Math.round(e * 100)}%`, bd = /* @__PURE__ */ new WeakMap(), x
5088
5089
  var e, t;
5089
5090
  super(), p(this, bd, void 0), p(this, xd, void 0), p(this, Sd, () => {
5090
5091
  let e = this.range.valueAsNumber;
5091
- this.dispatchEvent(new CustomEvent(S.SET_VOLUME, {
5092
+ this.dispatchEvent(new CustomEvent(C.SET_VOLUME, {
5092
5093
  bubbles: !0,
5093
5094
  composed: !0,
5094
5095
  detail: e
@@ -5096,32 +5097,32 @@ var yd = (e) => `${Math.round(e * 100)}%`, bd = /* @__PURE__ */ new WeakMap(), x
5096
5097
  }), (e = this.shadowRoot) == null || e.appendChild(vd.content.cloneNode(!0)), m(bd, this, (t = this.shadowRoot) == null ? void 0 : t.querySelector(".tooltip"));
5097
5098
  }
5098
5099
  connectedCallback() {
5099
- super.connectedCallback(), this.range.addEventListener("input", g(Sd, this)), this.range.setAttribute("aria-label", _d), m(xd, this, Ee(this, g(bd, this)));
5100
+ super.connectedCallback(), this.range.addEventListener("input", g(Sd, this)), this.range.setAttribute("aria-label", _d), m(xd, this, Te(this, g(bd, this)));
5100
5101
  }
5101
5102
  disconnectedCallback() {
5102
5103
  var e;
5103
5104
  super.disconnectedCallback(), this.range.removeEventListener("input", g(Sd, this)), (e = g(xd, this)) == null || e.call(this);
5104
5105
  }
5105
5106
  attributeChangedCallback(e, t, n) {
5106
- super.attributeChangedCallback(e, t, n), (e === _.MUTED || e === _.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", yd(this.range.valueAsNumber)), this.updateBar());
5107
+ super.attributeChangedCallback(e, t, n), (e === v.MUTED || e === v.VOLUME) && (this.range.valueAsNumber = this.muted ? 0 : parseFloat(this.volume), this.range.setAttribute("aria-valuetext", yd(this.range.valueAsNumber)), this.updateBar());
5107
5108
  }
5108
5109
  get volume() {
5109
5110
  var e;
5110
- return (e = this.getAttribute(_.VOLUME)) == null ? "1" : e;
5111
+ return (e = this.getAttribute(v.VOLUME)) == null ? "1" : e;
5111
5112
  }
5112
5113
  get muted() {
5113
- return this.hasAttribute(_.MUTED);
5114
+ return this.hasAttribute(v.MUTED);
5114
5115
  }
5115
5116
  };
5116
5117
  gd = Cd, e(Cd, "observedAttributes", [
5117
- ...b(gd, "observedAttributes", gd),
5118
- _.MUTED,
5119
- _.VOLUME
5118
+ ...x(gd, "observedAttributes", gd),
5119
+ v.MUTED,
5120
+ v.VOLUME
5120
5121
  ]);
5121
5122
  //#endregion
5122
5123
  //#region ../../libs/player-next/src/registerComponents.ts
5123
5124
  function wd() {
5124
- customElements.define("vindral-controller", Ba), customElements.define("vindral-control-bar", qn), customElements.define("vindral-advanced-rendition-menu", Je), customElements.define("vindral-advanced-rendition-menu-list", st), customElements.define("vindral-play-button", ws), customElements.define("vindral-mute-button", vs), customElements.define("vindral-buffering-overlay", Pt), customElements.define("vindral-seek-preview-overlay", ed), customElements.define("vindral-scroll-overlay", al), customElements.define("vindral-play-overlay", hd), customElements.define("vindral-user-input-play-overlay", od), customElements.define("vindral-fullscreen-button", No), customElements.define("vindral-rendition-levels-menu", Ac), customElements.define("vindral-rendition-levels-menu-list", zc), customElements.define("vindral-channel-grid-button", Bn), customElements.define("vindral-channel-grid", ln), customElements.define("vindral-channel-grid-item", Jt), customElements.define("vindral-pip-button", xs), customElements.define("vindral-airplay-button", Dt), customElements.define("vindral-cast-button", Rt), customElements.define("vindral-cast-overlay", Wt), customElements.define("vindral-buffering-icon", jt), customElements.define("vindral-language-menu", Ro), customElements.define("vindral-language-menu-list", $o), customElements.define("vindral-center-overlay", cd), customElements.define("vindral-message", fd), customElements.define("vindral-volume-range", Cd), customElements.define("vindral-poster-overlay", Sc), customElements.define("vindral-player", ac), customElements.define("vindral-seek-bar", Su), customElements.define("vindral-live-button", hs);
5125
+ customElements.define("vindral-controller", Ba), customElements.define("vindral-control-bar", Kn), customElements.define("vindral-advanced-rendition-menu", qe), customElements.define("vindral-advanced-rendition-menu-list", ot), customElements.define("vindral-play-button", ws), customElements.define("vindral-mute-button", vs), customElements.define("vindral-buffering-overlay", Nt), customElements.define("vindral-seek-preview-overlay", ed), customElements.define("vindral-scroll-overlay", al), customElements.define("vindral-play-overlay", hd), customElements.define("vindral-user-input-play-overlay", od), customElements.define("vindral-fullscreen-button", No), customElements.define("vindral-rendition-levels-menu", Ac), customElements.define("vindral-rendition-levels-menu-list", zc), customElements.define("vindral-channel-grid-button", zn), customElements.define("vindral-channel-grid", cn), customElements.define("vindral-channel-grid-item", qt), customElements.define("vindral-pip-button", xs), customElements.define("vindral-airplay-button", Et), customElements.define("vindral-cast-button", Lt), customElements.define("vindral-cast-overlay", Ut), customElements.define("vindral-buffering-icon", At), customElements.define("vindral-language-menu", Ro), customElements.define("vindral-language-menu-list", $o), customElements.define("vindral-center-overlay", cd), customElements.define("vindral-message", fd), customElements.define("vindral-volume-range", Cd), customElements.define("vindral-poster-overlay", Sc), customElements.define("vindral-player", ac), customElements.define("vindral-seek-bar", Su), customElements.define("vindral-live-button", hs);
5125
5126
  }
5126
5127
  //#endregion
5127
5128
  export { wd as t };