@webitel/ui-sdk 26.4.54 → 26.4.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CXLn58Uw.js → index-DIbizsCF.js} +1 -1
- package/dist/{index-BcvKnsta.js → index-DUvxbc74.js} +1 -1
- package/dist/{install-Dy8FCdqU.js → install-b3LF2l6e.js} +37 -37
- package/dist/{isObject-D_mC0e7L.js → isObject-Df1QjwSr.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/dist/{useVidstackSrc-CFFNYX4t.js → useVidstackSrc-r5eaGiNI.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-Cm8V9-Af.js → vidstack-Bq6c3Bam-DUhOSZ5b.js} +3 -3
- package/dist/{vidstack-D2pY00kU-EswopiE4.js → vidstack-D2pY00kU--9OviSIY.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-DmfI9GYr.js → vidstack-DDXt6fpN-DAHT4IlN.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BpkY0Ewv.js → vidstack-D_-9AA6_-4NXefQZ2.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-v0UrSxgp.js → vidstack-DqAw8m9J-DykxUivk.js} +1 -1
- package/dist/{vidstack-audio-dgkmjxrA.js → vidstack-audio-CAtkbhyu.js} +2 -2
- package/dist/{vidstack-dash-BUv3XcDo.js → vidstack-dash-_VUyXBlM.js} +4 -4
- package/dist/{vidstack-google-cast-DuURcoyH.js → vidstack-google-cast-CjaT-bOh.js} +4 -4
- package/dist/{vidstack-hls-8qL6KSkp.js → vidstack-hls-BLwPZsJT.js} +4 -4
- package/dist/{vidstack-video-BVaKT-Zj.js → vidstack-video-C4Nn4Tci.js} +3 -3
- package/dist/{vidstack-vimeo-D0omUMJ4.js → vidstack-vimeo-BM6Grb7n.js} +4 -4
- package/dist/{vidstack-youtube-DMr7-35w.js → vidstack-youtube-DKIF9ZLF.js} +3 -3
- package/dist/{wt-action-bar-GWBUca8V.js → wt-action-bar-BUTecaFM.js} +1 -1
- package/dist/{wt-button-select-C00leIuO.js → wt-button-select-_sP7TEjh.js} +1 -1
- package/dist/{wt-call-media-action-BcKdNS54.js → wt-call-media-action-B754SWie.js} +1 -1
- package/dist/{wt-chat-emoji-9F6nz7-q.js → wt-chat-emoji-8kgugJp3.js} +2 -2
- package/dist/{wt-confirm-dialog-Dr9IC1Ki.js → wt-confirm-dialog-Dfn8LBqD.js} +1 -1
- package/dist/{wt-context-menu-Ci_j0i2U.js → wt-context-menu-CM6Uy8E_.js} +1 -1
- package/dist/{wt-copy-action-CzYcMx1x.js → wt-copy-action-BBCJFKTA.js} +1 -1
- package/dist/{wt-datepicker-BMdkoaTy.js → wt-datepicker-CEg7Bz8f.js} +1 -1
- package/dist/{wt-display-chip-items-Bxsy29Un.js → wt-display-chip-items-i4Sofmjw.js} +1 -1
- package/dist/{wt-dual-panel-BVmoc9hg.js → wt-dual-panel-BKHIz6GE.js} +1 -1
- package/dist/{wt-dummy-D3x4x6Fp.js → wt-dummy-CrbQHj7e.js} +1 -1
- package/dist/{wt-error-page-BEZxsYXU.js → wt-error-page-C6Ffq5UN.js} +1 -1
- package/dist/{wt-expansion-card-qWV_pUft.js → wt-expansion-card-vo-1_anD.js} +1 -1
- package/dist/{wt-expansion-panel-B7yrTgM0.js → wt-expansion-panel-MH-Ck5c9.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-Du3W-lBg.js → wt-filters-panel-wrapper-Cufdyl3l.js} +1 -1
- package/dist/{wt-galleria-B0Fvye46.js → wt-galleria-CJA4YRIH.js} +1 -1
- package/dist/{wt-inline-add-panel-CGSZPfuC.js → wt-inline-add-panel-C_YL_gEc.js} +1 -1
- package/dist/{wt-navigation-menu-CNkldxKf.js → wt-navigation-menu-Z8miYMLM.js} +1 -1
- package/dist/{wt-notifications-bar-Cl3eNbuV.js → wt-notifications-bar-Bi_GUm8d.js} +2 -2
- package/dist/{wt-pagination-qt22Mydi.js → wt-pagination-Cr5FWOMe.js} +1 -1
- package/dist/{wt-player-BgZzrNuv.js → wt-player-DTDnFI9y.js} +2 -2
- package/dist/{wt-screen-recordings-action-CJ7C7b_7.js → wt-screen-recordings-action-ByIvxs0u.js} +1 -1
- package/dist/{wt-search-bar-Dr06_Ba8.js → wt-search-bar-D9HsQwYk.js} +1 -1
- package/dist/{wt-selection-popup-crYVIT8l.js → wt-selection-popup-DIEAkxye.js} +1 -1
- package/dist/{wt-start-page-NFWbhKpZ.js → wt-start-page-Ccnkc45u.js} +1 -1
- package/dist/{wt-status-select-BM8-a_XK.js → wt-status-select-nrzAML3-.js} +1 -1
- package/dist/{wt-stepper-DYgY0DP3.js → wt-stepper-Cuuwczjp.js} +1 -1
- package/dist/{wt-table-DPbdMxgc.js → wt-table-CeV_WB5D.js} +1 -1
- package/dist/{wt-table-actions-Z1oNCBvd.js → wt-table-actions-BQVB7ALh.js} +1 -1
- package/dist/{wt-table-column-select-Ss5cVY7U.js → wt-table-column-select-C4AY_Nyy.js} +2 -2
- package/dist/{wt-tabs-BuNL61Dh.js → wt-tabs-D_6GZBjk.js} +1 -1
- package/dist/{wt-tags-input-CB2bCckC.js → wt-tags-input-BhsvaOnv.js} +2 -2
- package/dist/{wt-timepicker-CQM2ovhg.js → wt-timepicker-g4BcXrO5.js} +1 -1
- package/dist/{wt-tree-DWrN0gOU.js → wt-tree-CmvdV2AP.js} +2 -2
- package/dist/{wt-tree-table-B26tC2zw.js → wt-tree-table-Cy8Ps3Cw.js} +1 -1
- package/dist/{wt-type-extension-value-input-BMko-O7t.js → wt-type-extension-value-input-nuNyA7mx.js} +2 -2
- package/dist/{wt-vidstack-player-DuaRjf_T.js → wt-vidstack-player-CuYDziPr.js} +302 -300
- package/package.json +1 -1
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +17 -8
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +2 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +1 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as lt, inject as ye, createElementBlock as mt, openBlock as G, normalizeClass as be, unref as ot, createElementVNode as at, renderSlot as ut, createVNode as W, computed as
|
|
2
|
-
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as
|
|
3
|
-
import { T as ca, U as ua, V as pa, X as ma, _ as yt, Q as ue, C as K, Y as fa } from "./install-
|
|
1
|
+
import { defineComponent as lt, inject as ye, createElementBlock as mt, openBlock as G, normalizeClass as be, unref as ot, createElementVNode as at, renderSlot as ut, createVNode as W, computed as Ds, onMounted as Ii, onBeforeUnmount as Vi, createBlock as Ut, createCommentVNode as Kt, toDisplayString as Di, createSlots as Rs, withCtx as Qt, resolveComponent as Ri, ref as us, provide as Oi, toRefs as Ni } from "vue";
|
|
2
|
+
import { a as q, c as ft, i as B, b as Ie, d as S, e as nt, f as Ve, l as O, s as Zt, g as Os, E as Ns, D as L, h as Q, o as x, j as Hi, k as g, m as l, n as M, p as Hs, q as Fi, r as oe, t as z, V as J, v as w, C as b, S as gt, w as Vt, x as p, y as rt, z as j, I as Fs, A as Bi, B as Gi, F as tt, G as Ge, H as Bs, J as ps, K as Ue, L as Gs, M as kt, N as Ke, O as de, P as Ui, Q as xt, R as Ki, U as Qi, W as Wi, X as zi, Y as ji, Z as Yi, _ as Xi, $ as Ji, a0 as Zi, a1 as Us, a2 as T, a3 as _, a4 as ce, a5 as ta, a6 as Dt, a7 as U, a8 as ea, a9 as sa, aa as ia, ab as aa, ac as ms, ad as na, ae as ra, af as v, ag as y, ah as oa, ai as ha, T as la, u as da } from "./useVidstackSrc-r5eaGiNI.js";
|
|
3
|
+
import { T as ca, U as ua, V as pa, X as ma, _ as yt, Q as ue, C as K, Y as fa } from "./install-b3LF2l6e.js";
|
|
4
4
|
import { _ as ga } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
|
-
const
|
|
5
|
+
const Ks = ft();
|
|
6
6
|
function $() {
|
|
7
|
-
return q(
|
|
7
|
+
return q(Ks);
|
|
8
8
|
}
|
|
9
9
|
class he {
|
|
10
10
|
#t;
|
|
@@ -87,7 +87,7 @@ function De(a, t) {
|
|
|
87
87
|
return t >= a.startTime && t < a.endTime;
|
|
88
88
|
}
|
|
89
89
|
function ve(a, t, e) {
|
|
90
|
-
let s = null, i =
|
|
90
|
+
let s = null, i = Os();
|
|
91
91
|
function n() {
|
|
92
92
|
const r = S(t) ? [t] : t, o = a.toArray().find((h) => r.includes(h.kind) && h.mode === "showing");
|
|
93
93
|
if (o !== s) {
|
|
@@ -131,7 +131,7 @@ const $a = /* @__PURE__ */ Symbol(0), wa = /* @__PURE__ */ Symbol(0), Ta = /* @_
|
|
|
131
131
|
native: Pa,
|
|
132
132
|
nativeHLS: xa
|
|
133
133
|
};
|
|
134
|
-
class pe extends
|
|
134
|
+
class pe extends Ns {
|
|
135
135
|
static createId(t) {
|
|
136
136
|
return `vds-${t.type}-${t.kind}-${t.src ?? t.label ?? "?"}`;
|
|
137
137
|
}
|
|
@@ -296,7 +296,7 @@ function Ea(a, t, e) {
|
|
|
296
296
|
let i = [], n = [];
|
|
297
297
|
return s.regions && e && (i = s.regions.map((r) => Object.assign(new e(), r))), (s.cues || B(s)) && (n = (B(s) ? s : s.cues).filter((r) => Q(r.startTime) && Q(r.endTime)).map((r) => Object.assign(new t(0, 0, ""), r))), { regions: i, cues: n };
|
|
298
298
|
}
|
|
299
|
-
const Aa = /* @__PURE__ */ Symbol(0), Ma = /* @__PURE__ */ Symbol(0), La = /* @__PURE__ */ Symbol(0), qa = /* @__PURE__ */ Symbol(0), _a = /* @__PURE__ */ Symbol(0), Ia = /* @__PURE__ */ Symbol(0), Va = /* @__PURE__ */ Symbol(0), Da = /* @__PURE__ */ Symbol(0), Ra = /* @__PURE__ */ Symbol(0),
|
|
299
|
+
const Aa = /* @__PURE__ */ Symbol(0), Ma = /* @__PURE__ */ Symbol(0), La = /* @__PURE__ */ Symbol(0), qa = /* @__PURE__ */ Symbol(0), _a = /* @__PURE__ */ Symbol(0), Ia = /* @__PURE__ */ Symbol(0), Va = /* @__PURE__ */ Symbol(0), Da = /* @__PURE__ */ Symbol(0), Ra = /* @__PURE__ */ Symbol(0), C = {
|
|
300
300
|
add: Aa,
|
|
301
301
|
remove: Ma,
|
|
302
302
|
reset: La,
|
|
@@ -342,25 +342,25 @@ function E(a, t, e) {
|
|
|
342
342
|
function bt(a, t) {
|
|
343
343
|
if (a.hasAttribute("aria-label") || a.hasAttribute("data-no-label")) return;
|
|
344
344
|
if (!Hi(t)) {
|
|
345
|
-
|
|
345
|
+
g(a, "aria-label", t);
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
348
|
function e() {
|
|
349
|
-
|
|
349
|
+
g(a, "aria-label", t());
|
|
350
350
|
}
|
|
351
351
|
l(e);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Qs(a) {
|
|
354
354
|
const t = getComputedStyle(a);
|
|
355
355
|
return t.display !== "none" && parseInt(t.opacity) > 0;
|
|
356
356
|
}
|
|
357
357
|
function Fa(a) {
|
|
358
|
-
return !!a && ("checkVisibility" in a ? a.checkVisibility({ checkOpacity: !0, checkVisibilityCSS: !0 }) :
|
|
358
|
+
return !!a && ("checkVisibility" in a ? a.checkVisibility({ checkOpacity: !0, checkVisibilityCSS: !0 }) : Qs(a));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Ws(a, t) {
|
|
361
361
|
return Ha(() => t(Fa(a)));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function zs(a, t, e) {
|
|
364
364
|
for (; t; ) {
|
|
365
365
|
if (t === a)
|
|
366
366
|
return !0;
|
|
@@ -374,14 +374,14 @@ function pt(a, t) {
|
|
|
374
374
|
return new M(a).add("pointerup", (e) => {
|
|
375
375
|
e.button === 0 && !e.defaultPrevented && t(e);
|
|
376
376
|
}).add("keydown", (e) => {
|
|
377
|
-
|
|
377
|
+
Hs(e) && t(e);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
function Qe(a) {
|
|
381
381
|
return oe(a) && (a.touches.length > 1 || a.changedTouches.length > 1);
|
|
382
382
|
}
|
|
383
383
|
function ht(a) {
|
|
384
|
-
let t =
|
|
384
|
+
let t = Os(), e = window.requestAnimationFrame(() => {
|
|
385
385
|
Zt(a, t), e = -1;
|
|
386
386
|
});
|
|
387
387
|
return () => {
|
|
@@ -393,18 +393,18 @@ function We(a, t, e) {
|
|
|
393
393
|
!r && a.firstElementChild && (a.innerHTML = a.firstElementChild.outerHTML, a.firstElementChild.remove(), r = a.content.firstElementChild);
|
|
394
394
|
for (let h = 0; h < t; h++)
|
|
395
395
|
s = document.importNode(r, !0), e?.(s, h), n.insertBefore(s, i.nextSibling), o.push(s), i = s;
|
|
396
|
-
return
|
|
396
|
+
return x(() => {
|
|
397
397
|
for (let h = 0; h < o.length; h++) o[h].remove();
|
|
398
398
|
}), o;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function js(a) {
|
|
401
401
|
const t = document.createElement("template");
|
|
402
402
|
return t.innerHTML = a, t.content;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ys(a) {
|
|
405
405
|
return a.cloneNode(!0).firstElementChild;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Xs(a, t, e, {
|
|
408
408
|
offsetVarName: s,
|
|
409
409
|
xOffset: i,
|
|
410
410
|
yOffset: n,
|
|
@@ -424,11 +424,11 @@ function Ys(a, t, e, {
|
|
|
424
424
|
ma()
|
|
425
425
|
],
|
|
426
426
|
...r
|
|
427
|
-
}).then(({ x: u, y: m, middlewareData:
|
|
428
|
-
const
|
|
429
|
-
h = e.includes(
|
|
427
|
+
}).then(({ x: u, y: m, middlewareData: f }) => {
|
|
428
|
+
const P = !!f.flip?.index;
|
|
429
|
+
h = e.includes(P ? "bottom" : "top"), a.setAttribute(
|
|
430
430
|
"data-placement",
|
|
431
|
-
|
|
431
|
+
P ? e.startsWith("top") ? e.replace("top", "bottom") : e.replace("bottom", "top") : e
|
|
432
432
|
), Object.assign(a.style, {
|
|
433
433
|
top: `calc(${m + "px"} + ${c(
|
|
434
434
|
n ? n + "px" : `var(--${s}-y-offset, 0px)`
|
|
@@ -500,20 +500,20 @@ class Z extends J {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
function ne(a, t) {
|
|
503
|
-
|
|
503
|
+
g(a, "data-focus", t), g(a, "data-hocus", t);
|
|
504
504
|
}
|
|
505
505
|
function ys(a, t) {
|
|
506
|
-
|
|
506
|
+
g(a, "data-hocus", t), g(a, "data-hover", t);
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class Js extends Ns {
|
|
509
509
|
items = [];
|
|
510
510
|
/** @internal */
|
|
511
|
-
[
|
|
511
|
+
[C.readonly] = !1;
|
|
512
512
|
get length() {
|
|
513
513
|
return this.items.length;
|
|
514
514
|
}
|
|
515
515
|
get readonly() {
|
|
516
|
-
return this[
|
|
516
|
+
return this[C.readonly];
|
|
517
517
|
}
|
|
518
518
|
/**
|
|
519
519
|
* Returns the index of the first occurrence of the given item, or -1 if it is not present.
|
|
@@ -537,7 +537,7 @@ class Xs extends Os {
|
|
|
537
537
|
return this.items.values();
|
|
538
538
|
}
|
|
539
539
|
/** @internal */
|
|
540
|
-
[
|
|
540
|
+
[C.add](t, e) {
|
|
541
541
|
const s = this.items.length;
|
|
542
542
|
"" + s in this || Object.defineProperty(this, s, {
|
|
543
543
|
get() {
|
|
@@ -546,18 +546,18 @@ class Xs extends Os {
|
|
|
546
546
|
}), !this.items.includes(t) && (this.items.push(t), this.dispatchEvent(new L("add", { detail: t, trigger: e })));
|
|
547
547
|
}
|
|
548
548
|
/** @internal */
|
|
549
|
-
[
|
|
549
|
+
[C.remove](t, e) {
|
|
550
550
|
const s = this.items.indexOf(t);
|
|
551
|
-
s >= 0 && (this[
|
|
551
|
+
s >= 0 && (this[C.onRemove]?.(t, e), this.items.splice(s, 1), this.dispatchEvent(new L("remove", { detail: t, trigger: e })));
|
|
552
552
|
}
|
|
553
553
|
/** @internal */
|
|
554
|
-
[
|
|
555
|
-
for (const e of [...this.items]) this[
|
|
556
|
-
this.items = [], this[
|
|
554
|
+
[C.reset](t) {
|
|
555
|
+
for (const e of [...this.items]) this[C.remove](e, t);
|
|
556
|
+
this.items = [], this[C.setReadonly](!1, t), this[C.onReset]?.();
|
|
557
557
|
}
|
|
558
558
|
/** @internal */
|
|
559
|
-
[
|
|
560
|
-
this[
|
|
559
|
+
[C.setReadonly](t, e) {
|
|
560
|
+
this[C.readonly] !== t && (this[C.readonly] = t, this.dispatchEvent(new L("readonly-change", { detail: t, trigger: e })));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
const Oe = kt.fullscreenEnabled;
|
|
@@ -576,7 +576,7 @@ class Qa extends J {
|
|
|
576
576
|
return Oe;
|
|
577
577
|
}
|
|
578
578
|
onConnect() {
|
|
579
|
-
new M(kt).add("fullscreenchange", this.#i.bind(this)).add("fullscreenerror", this.#a.bind(this)),
|
|
579
|
+
new M(kt).add("fullscreenchange", this.#i.bind(this)).add("fullscreenerror", this.#a.bind(this)), x(this.#s.bind(this));
|
|
580
580
|
}
|
|
581
581
|
async #s() {
|
|
582
582
|
Oe && await this.exit();
|
|
@@ -660,7 +660,7 @@ class $e extends J {
|
|
|
660
660
|
/**
|
|
661
661
|
* Whether the native Screen Orientation API is available.
|
|
662
662
|
*/
|
|
663
|
-
static supported =
|
|
663
|
+
static supported = Gs();
|
|
664
664
|
/**
|
|
665
665
|
* Whether the native Screen Orientation API is available.
|
|
666
666
|
*/
|
|
@@ -672,9 +672,9 @@ class $e extends J {
|
|
|
672
672
|
O(screen.orientation, "change", this.#a.bind(this));
|
|
673
673
|
else {
|
|
674
674
|
const t = window.matchMedia("(orientation: landscape)");
|
|
675
|
-
t.onchange = this.#a.bind(this),
|
|
675
|
+
t.onchange = this.#a.bind(this), x(() => t.onchange = null);
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
x(this.#i.bind(this));
|
|
678
678
|
}
|
|
679
679
|
async #i() {
|
|
680
680
|
this.supported && this.#e() && await this.unlock();
|
|
@@ -724,7 +724,7 @@ class $e extends J {
|
|
|
724
724
|
function Ne(a) {
|
|
725
725
|
return !S(a) && "width" in a && "height" in a && Q(a.width) && Q(a.height);
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const Zs = new gt({
|
|
728
728
|
artist: "",
|
|
729
729
|
artwork: null,
|
|
730
730
|
audioTrack: null,
|
|
@@ -736,14 +736,14 @@ const Js = new gt({
|
|
|
736
736
|
canLoad: !1,
|
|
737
737
|
canLoadPoster: !1,
|
|
738
738
|
canFullscreen: !1,
|
|
739
|
-
canOrientScreen:
|
|
739
|
+
canOrientScreen: Gs(),
|
|
740
740
|
canPictureInPicture: !1,
|
|
741
741
|
canPlay: !1,
|
|
742
742
|
clipStartTime: 0,
|
|
743
743
|
clipEndTime: 0,
|
|
744
744
|
controls: !1,
|
|
745
745
|
get iOSControls() {
|
|
746
|
-
return
|
|
746
|
+
return Fs && this.mediaType === "video" && (!this.playsInline || !kt.fullscreenEnabled && this.fullscreen);
|
|
747
747
|
},
|
|
748
748
|
get nativeControls() {
|
|
749
749
|
return this.controls || this.iOSControls;
|
|
@@ -900,7 +900,7 @@ const Js = new gt({
|
|
|
900
900
|
liveSyncPosition: null,
|
|
901
901
|
inferredLiveDVRWindow: 0,
|
|
902
902
|
savedState: null
|
|
903
|
-
}),
|
|
903
|
+
}), ti = /* @__PURE__ */ new Set([
|
|
904
904
|
"autoPlayError",
|
|
905
905
|
"autoPlaying",
|
|
906
906
|
"buffered",
|
|
@@ -913,7 +913,7 @@ const Js = new gt({
|
|
|
913
913
|
"seeking",
|
|
914
914
|
"waiting"
|
|
915
915
|
]), Wa = /* @__PURE__ */ new Set([
|
|
916
|
-
...
|
|
916
|
+
...ti,
|
|
917
917
|
"ended",
|
|
918
918
|
"inferredPoster",
|
|
919
919
|
"inferredStreamType",
|
|
@@ -927,10 +927,10 @@ const Js = new gt({
|
|
|
927
927
|
"userBehindLiveEdge"
|
|
928
928
|
]);
|
|
929
929
|
function vs(a, t = !1) {
|
|
930
|
-
const e = t ?
|
|
931
|
-
|
|
930
|
+
const e = t ? ti : Wa;
|
|
931
|
+
Zs.reset(a, (s) => e.has(s)), rt();
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function ei(a, t) {
|
|
934
934
|
const e = a + t.clipStartTime(), s = Math.floor(a) === Math.floor(t.seekableStart()), i = Math.floor(e) === Math.floor(t.seekableEnd());
|
|
935
935
|
return s ? t.seekableStart() : i ? t.seekableEnd() : t.isLiveDVR() && t.liveDVRWindow() > 0 && e < t.seekableEnd() - t.liveDVRWindow() ? t.bufferedStart() : Math.min(Math.max(t.seekableStart() + 0.1, e), t.seekableEnd() - 0.1);
|
|
936
936
|
}
|
|
@@ -1429,7 +1429,7 @@ class ja {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
const Ft = /* @__PURE__ */ Symbol(0);
|
|
1432
|
-
class
|
|
1432
|
+
class si extends Js {
|
|
1433
1433
|
get selected() {
|
|
1434
1434
|
return this.items.find((t) => t.selected) ?? null;
|
|
1435
1435
|
}
|
|
@@ -1437,22 +1437,22 @@ class ei extends Xs {
|
|
|
1437
1437
|
return this.items.findIndex((t) => t.selected);
|
|
1438
1438
|
}
|
|
1439
1439
|
/** @internal */
|
|
1440
|
-
[
|
|
1441
|
-
this[
|
|
1440
|
+
[C.onRemove](t, e) {
|
|
1441
|
+
this[C.select](t, !1, e);
|
|
1442
1442
|
}
|
|
1443
1443
|
/** @internal */
|
|
1444
|
-
[
|
|
1444
|
+
[C.add](t, e) {
|
|
1445
1445
|
t[Ft] = !1, Object.defineProperty(t, "selected", {
|
|
1446
1446
|
get() {
|
|
1447
1447
|
return this[Ft];
|
|
1448
1448
|
},
|
|
1449
1449
|
set: (s) => {
|
|
1450
|
-
this.readonly || (this[
|
|
1450
|
+
this.readonly || (this[C.onUserSelect]?.(), this[C.select](t, s));
|
|
1451
1451
|
}
|
|
1452
|
-
}), super[
|
|
1452
|
+
}), super[C.add](t, e);
|
|
1453
1453
|
}
|
|
1454
1454
|
/** @internal */
|
|
1455
|
-
[
|
|
1455
|
+
[C.select](t, e, s) {
|
|
1456
1456
|
if (e === t?.[Ft]) return;
|
|
1457
1457
|
const i = this.selected;
|
|
1458
1458
|
t && (t[Ft] = e), (e ? i !== t : i === t) && (i && (i[Ft] = !1), this.dispatchEvent(
|
|
@@ -1466,7 +1466,7 @@ class ei extends Xs {
|
|
|
1466
1466
|
));
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class Ya extends
|
|
1469
|
+
class Ya extends si {
|
|
1470
1470
|
}
|
|
1471
1471
|
class Xa {
|
|
1472
1472
|
priority = 0;
|
|
@@ -1535,7 +1535,7 @@ class Ja {
|
|
|
1535
1535
|
constructor(t) {
|
|
1536
1536
|
this.#i = t;
|
|
1537
1537
|
const e = t.textTracks;
|
|
1538
|
-
this.#e = e, l(this.#o.bind(this)),
|
|
1538
|
+
this.#e = e, l(this.#o.bind(this)), x(this.#p.bind(this)), new M(e).add("add", this.#c.bind(this)).add("remove", this.#u.bind(this)).add("mode-change", this.#d.bind(this));
|
|
1539
1539
|
}
|
|
1540
1540
|
#o() {
|
|
1541
1541
|
const { nativeControls: t } = this.#i.$state;
|
|
@@ -1586,7 +1586,7 @@ class Ja {
|
|
|
1586
1586
|
this.#n?.detach(), this.#n = null, this.#r?.detach(), this.#r = null;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
class Za extends
|
|
1589
|
+
class Za extends Js {
|
|
1590
1590
|
#t = !1;
|
|
1591
1591
|
#e = {};
|
|
1592
1592
|
#s = null;
|
|
@@ -1611,11 +1611,11 @@ class Za extends Xs {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
add(t, e) {
|
|
1613
1613
|
const s = t instanceof pe, i = s ? t : new pe(t), n = t.kind === "captions" || t.kind === "subtitles" ? "captions" : t.kind;
|
|
1614
|
-
return this.#e[n] && t.default && delete t.default, i.addEventListener("mode-change", this.#r), this[
|
|
1614
|
+
return this.#e[n] && t.default && delete t.default, i.addEventListener("mode-change", this.#r), this[C.add](i, e), i[k.crossOrigin] = this[k.crossOrigin], this.#t && i[k.canLoad](), t.default && (this.#e[n] = i), this.#a(), this;
|
|
1615
1615
|
}
|
|
1616
1616
|
remove(t, e) {
|
|
1617
1617
|
if (this.#n = t, !!this.items.includes(t))
|
|
1618
|
-
return t === this.#e[t.kind] && delete this.#e[t.kind], t.mode = "disabled", t[k.onModeChange] = null, t.removeEventListener("mode-change", this.#r), this[
|
|
1618
|
+
return t === this.#e[t.kind] && delete this.#e[t.kind], t.mode = "disabled", t[k.onModeChange] = null, t.removeEventListener("mode-change", this.#r), this[C.remove](t, e), this.#n = null, this;
|
|
1619
1619
|
}
|
|
1620
1620
|
clear(t) {
|
|
1621
1621
|
for (const e of [...this.items])
|
|
@@ -1675,7 +1675,7 @@ class Za extends Xs {
|
|
|
1675
1675
|
this.#s = t;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
class tn extends
|
|
1678
|
+
class tn extends si {
|
|
1679
1679
|
#t = !1;
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Configures quality switching:
|
|
@@ -1702,11 +1702,11 @@ class tn extends ei {
|
|
|
1702
1702
|
/** @internal */
|
|
1703
1703
|
[X.enableAuto];
|
|
1704
1704
|
/** @internal */
|
|
1705
|
-
[
|
|
1705
|
+
[C.onUserSelect]() {
|
|
1706
1706
|
this[X.setAuto](!1);
|
|
1707
1707
|
}
|
|
1708
1708
|
/** @internal */
|
|
1709
|
-
[
|
|
1709
|
+
[C.onReset](t) {
|
|
1710
1710
|
this[X.enableAuto] = void 0, this[X.setAuto](!1, t);
|
|
1711
1711
|
}
|
|
1712
1712
|
/**
|
|
@@ -1798,7 +1798,7 @@ class on extends Ct {
|
|
|
1798
1798
|
#i(t) {
|
|
1799
1799
|
if (!t.key || Gt.has(t.key)) return;
|
|
1800
1800
|
const e = document.activeElement;
|
|
1801
|
-
if (e?.matches($s) ||
|
|
1801
|
+
if (e?.matches($s) || Hs(t) && e?.matches(rn))
|
|
1802
1802
|
return;
|
|
1803
1803
|
let { method: s, value: i } = this.#n(t), n = !t.metaKey && /^[0-9]$/.test(t.key);
|
|
1804
1804
|
if (!S(i) && !B(i) && !n) {
|
|
@@ -2038,7 +2038,7 @@ class cn extends Ct {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
#y(t) {
|
|
2040
2040
|
// @ts-expect-error
|
|
2041
|
-
t.MEDIA_GESTURE || this.#e || Qe(t) || (
|
|
2041
|
+
t.MEDIA_GESTURE || this.#e || Qe(t) || (Us(t) && (t.key === "Escape" ? (this.el?.focus(), this.#a = null) : this.#a && (t.preventDefault(), requestAnimationFrame(() => {
|
|
2042
2042
|
this.#a?.focus(), this.#a = null;
|
|
2043
2043
|
}))), this.show(0, t), this.hide(this.defaultDelay, t));
|
|
2044
2044
|
}
|
|
@@ -2070,7 +2070,7 @@ class un {
|
|
|
2070
2070
|
return "audio";
|
|
2071
2071
|
}
|
|
2072
2072
|
async load(t) {
|
|
2073
|
-
return new (await import("./vidstack-audio-
|
|
2073
|
+
return new (await import("./vidstack-audio-CAtkbhyu.js")).AudioProvider(this.target, t);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
class je {
|
|
@@ -2083,17 +2083,17 @@ class je {
|
|
|
2083
2083
|
return "video";
|
|
2084
2084
|
}
|
|
2085
2085
|
async load(t) {
|
|
2086
|
-
return new (await import("./vidstack-video-
|
|
2086
|
+
return new (await import("./vidstack-video-C4Nn4Tci.js")).VideoProvider(this.target, t);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
class Ye extends je {
|
|
2090
|
-
static supported =
|
|
2090
|
+
static supported = Bs();
|
|
2091
2091
|
name = "hls";
|
|
2092
2092
|
canPlay(t) {
|
|
2093
2093
|
return Ye.supported && Ge(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
async load(t) {
|
|
2096
|
-
return new (await import("./vidstack-hls-
|
|
2096
|
+
return new (await import("./vidstack-hls-BLwPZsJT.js")).HLSProvider(this.target, t);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
2099
|
class Xe extends je {
|
|
@@ -2103,7 +2103,7 @@ class Xe extends je {
|
|
|
2103
2103
|
return Xe.supported && Ue(t);
|
|
2104
2104
|
}
|
|
2105
2105
|
async load(t) {
|
|
2106
|
-
return new (await import("./vidstack-dash-
|
|
2106
|
+
return new (await import("./vidstack-dash-_VUyXBlM.js")).DASHProvider(this.target, t);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
class pn {
|
|
@@ -2125,7 +2125,7 @@ class pn {
|
|
|
2125
2125
|
return "video";
|
|
2126
2126
|
}
|
|
2127
2127
|
async load(t) {
|
|
2128
|
-
return new (await import("./vidstack-vimeo-
|
|
2128
|
+
return new (await import("./vidstack-vimeo-BM6Grb7n.js")).VimeoProvider(this.target, t);
|
|
2129
2129
|
}
|
|
2130
2130
|
async loadPoster(t, e, s) {
|
|
2131
2131
|
const { resolveVimeoVideoId: i, getVimeoVideoInfo: n } = await import("./vidstack-krOAtKMi-C50BTxmn.js");
|
|
@@ -2157,7 +2157,7 @@ class mn {
|
|
|
2157
2157
|
return "video";
|
|
2158
2158
|
}
|
|
2159
2159
|
async load(t) {
|
|
2160
|
-
return new (await import("./vidstack-youtube-
|
|
2160
|
+
return new (await import("./vidstack-youtube-DKIF9ZLF.js")).YouTubeProvider(this.target, t);
|
|
2161
2161
|
}
|
|
2162
2162
|
async loadPoster(t, e, s) {
|
|
2163
2163
|
const { findYouTubePoster: i, resolveYouTubeVideoId: n } = await import("./vidstack-Dm1xEU9Q-CXHNvShT.js"), r = S(t.src) && n(t.src);
|
|
@@ -2250,7 +2250,7 @@ class ws extends Ct {
|
|
|
2250
2250
|
let s, i = new IntersectionObserver((n) => {
|
|
2251
2251
|
this.scope && n[0].isIntersecting && (s?.(), s = void 0, this.#e());
|
|
2252
2252
|
});
|
|
2253
|
-
i.observe(t), s =
|
|
2253
|
+
i.observe(t), s = x(() => i.disconnect());
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
@@ -2280,23 +2280,23 @@ class yn {
|
|
|
2280
2280
|
remotePlaybackInfo: c,
|
|
2281
2281
|
playsInline: u,
|
|
2282
2282
|
savedState: m,
|
|
2283
|
-
source:
|
|
2283
|
+
source: f
|
|
2284
2284
|
} = this.#e.$state;
|
|
2285
2285
|
if (n()) return;
|
|
2286
|
-
const
|
|
2286
|
+
const P = {
|
|
2287
2287
|
duration: t?.duration ?? o(),
|
|
2288
2288
|
seekable: t?.seekable ?? h(),
|
|
2289
2289
|
buffered: t?.buffered ?? d(),
|
|
2290
2290
|
provider: this.#e.$provider()
|
|
2291
2291
|
};
|
|
2292
|
-
this.notify("can-play",
|
|
2293
|
-
let I = this.#e.$provider(), { storage: et, qualities: os } = this.#e, { muted:
|
|
2294
|
-
await et?.onLoad?.(
|
|
2295
|
-
const
|
|
2292
|
+
this.notify("can-play", P, e), rt();
|
|
2293
|
+
let I = this.#e.$provider(), { storage: et, qualities: os } = this.#e, { muted: Ei, volume: Ai, clipStartTime: Mi, playbackRate: Li } = this.#e.$props;
|
|
2294
|
+
await et?.onLoad?.(f());
|
|
2295
|
+
const qi = m()?.currentTime, hs = m()?.paused, Pe = await et?.getTime(), ls = qi ?? Pe ?? Mi(), _i = hs === !1 || hs !== !0 && !r() && i();
|
|
2296
2296
|
if (I) {
|
|
2297
|
-
I.setVolume(await et?.getVolume() ??
|
|
2297
|
+
I.setVolume(await et?.getVolume() ?? Ai()), I.setMuted(Ei() || !!await et?.getMuted());
|
|
2298
2298
|
const Mt = await et?.getAudioGain() ?? 1;
|
|
2299
|
-
Mt > 1 && I.audioGain?.setGain?.(Mt), I.setPlaybackRate?.(await et?.getPlaybackRate() ??
|
|
2299
|
+
Mt > 1 && I.audioGain?.setGain?.(Mt), I.setPlaybackRate?.(await et?.getPlaybackRate() ?? Li()), I.setPlaysInline?.(u()), ls > 0 && I.setCurrentTime(ls);
|
|
2300
2300
|
}
|
|
2301
2301
|
const Nt = await et?.getVideoQuality();
|
|
2302
2302
|
if (Nt && os.length) {
|
|
@@ -2307,7 +2307,7 @@ class yn {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
Mt && (Mt.selected = !0);
|
|
2309
2309
|
}
|
|
2310
|
-
n() &&
|
|
2310
|
+
n() && _i ? await this.#s(e) : Pe && Pe > 0 && this.notify("started", void 0, e), c.set(null);
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
async #s(t) {
|
|
@@ -2358,7 +2358,7 @@ class bn {
|
|
|
2358
2358
|
this.#t.clear();
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
class
|
|
2361
|
+
class ii {
|
|
2362
2362
|
#t = !1;
|
|
2363
2363
|
#e = Ve();
|
|
2364
2364
|
#s = /* @__PURE__ */ new Map();
|
|
@@ -2437,7 +2437,7 @@ class vn extends Ct {
|
|
|
2437
2437
|
#i;
|
|
2438
2438
|
#a;
|
|
2439
2439
|
#n;
|
|
2440
|
-
#r = new
|
|
2440
|
+
#r = new ii();
|
|
2441
2441
|
constructor(t, e, s) {
|
|
2442
2442
|
super(), this.#t = t, this.#e = e, this.#s = s, this.#n = s.$provider, this.controls = new cn(), this.#i = new Qa(), this.#a = new $e();
|
|
2443
2443
|
}
|
|
@@ -2625,7 +2625,7 @@ class vn extends Ct {
|
|
|
2625
2625
|
throw i.code = "CAST_NOT_AVAILABLE", i;
|
|
2626
2626
|
}
|
|
2627
2627
|
if (te("https://www.gstatic.com"), !this.#v) {
|
|
2628
|
-
const i = await import("./vidstack-D2pY00kU
|
|
2628
|
+
const i = await import("./vidstack-D2pY00kU--9OviSIY.js").then((n) => n.v);
|
|
2629
2629
|
this.#v = new i.GoogleCastLoader();
|
|
2630
2630
|
}
|
|
2631
2631
|
await this.#v.prompt(this.#s), t && this.#e.queue.enqueue("media-google-cast-request", t);
|
|
@@ -2815,7 +2815,7 @@ class vn extends Ct {
|
|
|
2815
2815
|
s() && (this.#e.replaying = !0);
|
|
2816
2816
|
const h = t.type;
|
|
2817
2817
|
this.#e.seeking = !1, this.#e.queue.delete(h);
|
|
2818
|
-
const d =
|
|
2818
|
+
const d = ei(o, this.$state);
|
|
2819
2819
|
!Number.isFinite(d) || !e() || (this.#e.queue.enqueue(h, t), this.#n().setCurrentTime(d), i() && t.isOriginTrusted && Math.abs(n() - d) >= 2 && r.set(!0));
|
|
2820
2820
|
}
|
|
2821
2821
|
"media-seeking-request"(t) {
|
|
@@ -2919,11 +2919,11 @@ class kn extends Ct {
|
|
|
2919
2919
|
t.setAttribute("aria-busy", "true"), new M(this).add("fullscreen-change", this["fullscreen-change"].bind(this)).add("fullscreen-error", this["fullscreen-error"].bind(this)).add("orientation-change", this["orientation-change"].bind(this));
|
|
2920
2920
|
}
|
|
2921
2921
|
onConnect(t) {
|
|
2922
|
-
l(this.#E.bind(this)), this.#p(), this.#m(), this.#y(), this.#l(),
|
|
2922
|
+
l(this.#E.bind(this)), this.#p(), this.#m(), this.#y(), this.#l(), x(this.#c.bind(this));
|
|
2923
2923
|
}
|
|
2924
2924
|
onDestroy() {
|
|
2925
2925
|
const { audioTracks: t, qualities: e, textTracks: s } = this.#e;
|
|
2926
|
-
t[
|
|
2926
|
+
t[C.reset](), e[C.reset](), s[C.reset](), this.#S();
|
|
2927
2927
|
}
|
|
2928
2928
|
handle(t) {
|
|
2929
2929
|
if (!this.scope) return;
|
|
@@ -3016,7 +3016,7 @@ class kn extends Ct {
|
|
|
3016
3016
|
const d = Math.abs(h.width - i) + Math.abs(h.height - n);
|
|
3017
3017
|
d < o && (o = d, r = h);
|
|
3018
3018
|
}
|
|
3019
|
-
r && t[
|
|
3019
|
+
r && t[C.select](
|
|
3020
3020
|
r,
|
|
3021
3021
|
!0,
|
|
3022
3022
|
new L("resize", { detail: { width: i, height: n } })
|
|
@@ -3101,10 +3101,10 @@ class kn extends Ct {
|
|
|
3101
3101
|
if (!Ne(o)) continue;
|
|
3102
3102
|
if (!e.some((d) => d.src === o.src)) {
|
|
3103
3103
|
const d = i.getBySrc(o.src);
|
|
3104
|
-
d && (i[
|
|
3104
|
+
d && (i[C.remove](d, s), r = !0);
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
|
-
r && !i.length && (this.$state.savedState.set(null), i[
|
|
3107
|
+
r && !i.length && (this.$state.savedState.set(null), i[C.reset](s));
|
|
3108
3108
|
for (const o of e) {
|
|
3109
3109
|
if (!Ne(o) || i.getBySrc(o.src)) continue;
|
|
3110
3110
|
const h = {
|
|
@@ -3114,7 +3114,7 @@ class kn extends Ct {
|
|
|
3114
3114
|
...o,
|
|
3115
3115
|
selected: !1
|
|
3116
3116
|
};
|
|
3117
|
-
i[
|
|
3117
|
+
i[C.add](h, s), n = !0;
|
|
3118
3118
|
}
|
|
3119
3119
|
n && !i[X.enableAuto] && (this.#k(), i[X.enableAuto] = this.#k.bind(this), i[X.setAuto](!0, s));
|
|
3120
3120
|
}
|
|
@@ -3126,7 +3126,7 @@ class kn extends Ct {
|
|
|
3126
3126
|
#C(t, e = !1) {
|
|
3127
3127
|
const { audioTracks: s, qualities: i } = this.#e;
|
|
3128
3128
|
if (!e) {
|
|
3129
|
-
this.#a = [], this.#n = [-1, -1], s[
|
|
3129
|
+
this.#a = [], this.#n = [-1, -1], s[C.reset](t), i[C.reset](t), vs(this.$state, e), this.#u();
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
3132
|
vs(this.$state, e), this.#u();
|
|
@@ -3248,8 +3248,8 @@ class kn extends Ct {
|
|
|
3248
3248
|
return;
|
|
3249
3249
|
}
|
|
3250
3250
|
if (r() && !d() && c() === 0) {
|
|
3251
|
-
const
|
|
3252
|
-
Number.isFinite(
|
|
3251
|
+
const f = o() ?? h() - 2;
|
|
3252
|
+
Number.isFinite(f) && this.#e.$provider().setCurrentTime(f);
|
|
3253
3253
|
}
|
|
3254
3254
|
this.started(t);
|
|
3255
3255
|
}
|
|
@@ -3516,7 +3516,7 @@ class Pn extends Ct {
|
|
|
3516
3516
|
const t = this.#i.bind(this);
|
|
3517
3517
|
for (const e of ks)
|
|
3518
3518
|
navigator.mediaSession.setActionHandler(e, t);
|
|
3519
|
-
|
|
3519
|
+
x(this.#t.bind(this));
|
|
3520
3520
|
}
|
|
3521
3521
|
#t() {
|
|
3522
3522
|
for (const t of ks)
|
|
@@ -3556,11 +3556,11 @@ class Pn extends Ct {
|
|
|
3556
3556
|
}
|
|
3557
3557
|
class Lt extends b {
|
|
3558
3558
|
static props = gn;
|
|
3559
|
-
static state =
|
|
3559
|
+
static state = Zs;
|
|
3560
3560
|
#t;
|
|
3561
3561
|
#e;
|
|
3562
3562
|
#s;
|
|
3563
|
-
canPlayQueue = new
|
|
3563
|
+
canPlayQueue = new ii();
|
|
3564
3564
|
remoteControl;
|
|
3565
3565
|
get #i() {
|
|
3566
3566
|
return this.#t.$provider();
|
|
@@ -3582,7 +3582,7 @@ class Lt extends b {
|
|
|
3582
3582
|
};
|
|
3583
3583
|
t.remote = this.remoteControl = new za(
|
|
3584
3584
|
void 0
|
|
3585
|
-
), t.remote.setPlayer(this), t.textTracks = new Za(), t.textTracks[k.crossOrigin] = this.$state.crossOrigin, t.textRenderers = new Ja(t), t.ariaKeys = {}, this.#t = t, j(
|
|
3585
|
+
), t.remote.setPlayer(this), t.textTracks = new Za(), t.textTracks[k.crossOrigin] = this.$state.crossOrigin, t.textRenderers = new Ja(t), t.ariaKeys = {}, this.#t = t, j(Ks, t), this.orientation = new $e(), new Z(), new on(t);
|
|
3586
3586
|
const e = new wn();
|
|
3587
3587
|
this.#e = new kn(e, t), this.#s = new vn(this.#e, e, t), t.delegate = new yn(this.#e.handle.bind(this.#e), t), t.notify = t.delegate.notify.bind(t.delegate), typeof navigator < "u" && "mediaSession" in navigator && new Pn(), new ws("load", this.startLoading.bind(this)), new ws("posterLoad", this.startLoadingPoster.bind(this));
|
|
3588
3588
|
}
|
|
@@ -3593,7 +3593,7 @@ class Lt extends b {
|
|
|
3593
3593
|
t.setAttribute("data-media-player", ""), E(t, "tabindex", "0"), E(t, "role", "region"), l(this.#S.bind(this)), l(this.#r.bind(this)), l(this.#o.bind(this)), O(t, "find-media-player", this.#c.bind(this));
|
|
3594
3594
|
}
|
|
3595
3595
|
onConnect(t) {
|
|
3596
|
-
|
|
3596
|
+
Fs && g(t, "data-iphone", "");
|
|
3597
3597
|
const e = window.matchMedia("(pointer: coarse)");
|
|
3598
3598
|
this.#d(e), e.onchange = this.#d.bind(this);
|
|
3599
3599
|
const s = new ResizeObserver(Vt(this.#u.bind(this)));
|
|
@@ -3601,7 +3601,7 @@ class Lt extends b {
|
|
|
3601
3601
|
detail: this,
|
|
3602
3602
|
bubbles: !0,
|
|
3603
3603
|
composed: !0
|
|
3604
|
-
}),
|
|
3604
|
+
}), x(() => {
|
|
3605
3605
|
s.disconnect(), e.onchange = null;
|
|
3606
3606
|
});
|
|
3607
3607
|
}
|
|
@@ -3611,7 +3611,7 @@ class Lt extends b {
|
|
|
3611
3611
|
#n = !1;
|
|
3612
3612
|
#r() {
|
|
3613
3613
|
const t = this.$el, { title: e, live: s, viewType: i, providedTitle: n } = this.$state, r = s(), o = Bi(i()), h = o !== "Unknown" ? `${r ? "Live " : ""}${o}` : r ? "Live" : "Media", d = e();
|
|
3614
|
-
|
|
3614
|
+
g(
|
|
3615
3615
|
this.el,
|
|
3616
3616
|
"aria-label",
|
|
3617
3617
|
`${h} Player` + (d ? ` - ${d}` : "")
|
|
@@ -3619,7 +3619,7 @@ class Lt extends b {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
#o() {
|
|
3621
3621
|
const t = this.orientation.landscape ? "landscape" : "portrait";
|
|
3622
|
-
this.$state.orientation.set(t),
|
|
3622
|
+
this.$state.orientation.set(t), g(this.el, "data-orientation", t), this.#u();
|
|
3623
3623
|
}
|
|
3624
3624
|
#h() {
|
|
3625
3625
|
this.$state.canPlay() && this.#i ? this.canPlayQueue.start() : this.canPlayQueue.stop();
|
|
@@ -3684,7 +3684,7 @@ class Lt extends b {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
#d(t) {
|
|
3686
3686
|
const e = t.matches ? "coarse" : "fine";
|
|
3687
|
-
|
|
3687
|
+
g(this.el, "data-pointer", e), this.$state.pointer.set(e), this.#u();
|
|
3688
3688
|
}
|
|
3689
3689
|
/**
|
|
3690
3690
|
* The current media provider.
|
|
@@ -3796,7 +3796,7 @@ class Lt extends b {
|
|
|
3796
3796
|
const { currentTime: e } = this.$state;
|
|
3797
3797
|
t !== p(e) && p(() => {
|
|
3798
3798
|
if (!this.#i) return;
|
|
3799
|
-
const s =
|
|
3799
|
+
const s = ei(t, this.$state);
|
|
3800
3800
|
Number.isFinite(s) && this.#i.setCurrentTime(s);
|
|
3801
3801
|
});
|
|
3802
3802
|
});
|
|
@@ -3844,7 +3844,7 @@ class Lt extends b {
|
|
|
3844
3844
|
const { source: s } = this.$state, i = S(t) ? t : this.el?.id, n = tt(this.#x.bind(this));
|
|
3845
3845
|
l(() => e.onChange(s(), n(), i || void 0));
|
|
3846
3846
|
}
|
|
3847
|
-
this.#t.storage = e, this.#t.textTracks.setStorage(e),
|
|
3847
|
+
this.#t.storage = e, this.#t.textTracks.setStorage(e), x(() => {
|
|
3848
3848
|
e?.onDestroy?.(), this.#t.storage = null, this.#t.textTracks.setStorage(null);
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
@@ -3991,11 +3991,11 @@ _(A, "setAudioGain");
|
|
|
3991
3991
|
function xn(a, t) {
|
|
3992
3992
|
return fetch(a, t).then((e) => e.text()).then((e) => /type="static"/.test(e) ? "on-demand" : "live");
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function ai(a, t) {
|
|
3995
3995
|
return fetch(a, t).then((e) => e.text()).then((e) => {
|
|
3996
3996
|
const s = Cn(e);
|
|
3997
3997
|
if (s)
|
|
3998
|
-
return
|
|
3998
|
+
return ai(
|
|
3999
3999
|
/^https?:/.test(s) ? s : new URL(s, a).href,
|
|
4000
4000
|
t
|
|
4001
4001
|
);
|
|
@@ -4030,16 +4030,16 @@ class An {
|
|
|
4030
4030
|
this.#s = t, this.#i = e, this.#a = s;
|
|
4031
4031
|
const n = new Xe(), r = new Ye(), o = new je(), h = new un(), d = new mn(), c = new pn(), u = [d, c];
|
|
4032
4032
|
this.#e = tt(() => {
|
|
4033
|
-
const
|
|
4034
|
-
return
|
|
4033
|
+
const f = e.$state.remotePlaybackLoader(), P = e.$props.preferNativeHLS() ? [o, h, n, r, ...u, ...i] : [r, o, h, n, ...u, ...i];
|
|
4034
|
+
return f ? [f, ...P] : P;
|
|
4035
4035
|
});
|
|
4036
4036
|
const { $state: m } = e;
|
|
4037
4037
|
m.sources.set(Ss(e.$props.src()));
|
|
4038
|
-
for (const
|
|
4039
|
-
const
|
|
4040
|
-
if (!
|
|
4041
|
-
const I =
|
|
4042
|
-
e.$state.source.set(
|
|
4038
|
+
for (const f of m.sources()) {
|
|
4039
|
+
const P = this.#e().find((et) => et.canPlay(f));
|
|
4040
|
+
if (!P) continue;
|
|
4041
|
+
const I = P.mediaType(f);
|
|
4042
|
+
e.$state.source.set(f), e.$state.mediaType.set(I), e.$state.inferredViewType.set(I), this.#a.set(P), this.#t = !0;
|
|
4043
4043
|
break;
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
@@ -4079,18 +4079,18 @@ class An {
|
|
|
4079
4079
|
#o(t, e) {
|
|
4080
4080
|
let s = { src: "", type: "" }, i = null, n = new L("sources-change", { detail: { sources: e } }), r = this.#e(), { started: o, paused: h, currentTime: d, quality: c, savedState: u } = this.#i.$state;
|
|
4081
4081
|
for (const m of e) {
|
|
4082
|
-
const
|
|
4083
|
-
if (
|
|
4084
|
-
s = m, i =
|
|
4082
|
+
const f = r.find((P) => P.canPlay(m));
|
|
4083
|
+
if (f) {
|
|
4084
|
+
s = m, i = f;
|
|
4085
4085
|
break;
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
if (Ne(s)) {
|
|
4089
|
-
const m = c(),
|
|
4089
|
+
const m = c(), f = e.find((P) => P.src === m?.src);
|
|
4090
4090
|
p(o) ? u.set({
|
|
4091
4091
|
paused: p(h),
|
|
4092
4092
|
currentTime: p(d)
|
|
4093
|
-
}) : u.set(null),
|
|
4093
|
+
}) : u.set(null), f && (s = f, n = new L("quality-change", {
|
|
4094
4094
|
detail: { quality: m }
|
|
4095
4095
|
}));
|
|
4096
4096
|
}
|
|
@@ -4118,7 +4118,7 @@ class An {
|
|
|
4118
4118
|
if (!xs(t?.currentSrc, e)) {
|
|
4119
4119
|
if (this.#i.$state.canLoad()) {
|
|
4120
4120
|
const n = new AbortController();
|
|
4121
|
-
return Ge(e) ? (i || !
|
|
4121
|
+
return Ge(e) ? (i || !Bs()) && ai(e.src, {
|
|
4122
4122
|
credentials: Wt(s),
|
|
4123
4123
|
signal: n.signal
|
|
4124
4124
|
}).then((r) => {
|
|
@@ -4183,7 +4183,7 @@ class Mn {
|
|
|
4183
4183
|
this.#s = t;
|
|
4184
4184
|
}
|
|
4185
4185
|
}
|
|
4186
|
-
class
|
|
4186
|
+
class ni extends b {
|
|
4187
4187
|
static props = {
|
|
4188
4188
|
loaders: []
|
|
4189
4189
|
};
|
|
@@ -4211,13 +4211,13 @@ class ai extends b {
|
|
|
4211
4211
|
const e = new ResizeObserver(Vt(this.#h.bind(this)));
|
|
4212
4212
|
e.observe(t);
|
|
4213
4213
|
const s = new MutationObserver(this.#l.bind(this));
|
|
4214
|
-
s.observe(t, { attributes: !0, childList: !0 }), this.#h(), this.#l(),
|
|
4214
|
+
s.observe(t, { attributes: !0, childList: !0 }), this.#h(), this.#l(), x(() => {
|
|
4215
4215
|
e.disconnect(), s.disconnect();
|
|
4216
4216
|
});
|
|
4217
4217
|
}
|
|
4218
4218
|
#n = -1;
|
|
4219
4219
|
load(t) {
|
|
4220
|
-
t?.setAttribute("aria-hidden", "true"), window.cancelAnimationFrame(this.#n), this.#n = requestAnimationFrame(() => this.#r(t)),
|
|
4220
|
+
t?.setAttribute("aria-hidden", "true"), window.cancelAnimationFrame(this.#n), this.#n = requestAnimationFrame(() => this.#r(t)), x(() => {
|
|
4221
4221
|
window.cancelAnimationFrame(this.#n);
|
|
4222
4222
|
});
|
|
4223
4223
|
}
|
|
@@ -4272,9 +4272,9 @@ class ai extends b {
|
|
|
4272
4272
|
this.#s.set(t), this.#i.set(e), rt();
|
|
4273
4273
|
}
|
|
4274
4274
|
}
|
|
4275
|
-
const Ln =
|
|
4275
|
+
const Ln = ni.prototype;
|
|
4276
4276
|
_(Ln, "load");
|
|
4277
|
-
function
|
|
4277
|
+
function ri(a, t) {
|
|
4278
4278
|
return [...a].sort(t ? _n : qn);
|
|
4279
4279
|
}
|
|
4280
4280
|
function qn(a, t) {
|
|
@@ -4291,7 +4291,7 @@ class In extends J {
|
|
|
4291
4291
|
onAttach(t) {
|
|
4292
4292
|
const { $props: e, ariaKeys: s } = $(), i = t.getAttribute("aria-keyshortcuts");
|
|
4293
4293
|
if (i) {
|
|
4294
|
-
s[this.#t] = i,
|
|
4294
|
+
s[this.#t] = i, x(() => {
|
|
4295
4295
|
delete s[this.#t];
|
|
4296
4296
|
});
|
|
4297
4297
|
return;
|
|
@@ -4311,7 +4311,7 @@ function Me(a, t) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
return e;
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4314
|
+
function oi(a) {
|
|
4315
4315
|
const t = Math.trunc(a / 3600), e = Math.trunc(a % 3600 / 60), s = Math.trunc(a % 60), i = Number((a - Math.trunc(a)).toPrecision(3));
|
|
4316
4316
|
return {
|
|
4317
4317
|
hours: t,
|
|
@@ -4321,14 +4321,14 @@ function ri(a) {
|
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
4323
|
function we(a, { padHrs: t = null, padMins: e = null, showHrs: s = !1, showMs: i = !1 } = {}) {
|
|
4324
|
-
const { hours: n, minutes: r, seconds: o, fraction: h } =
|
|
4325
|
-
return n > 0 || s ? `${d}:${
|
|
4324
|
+
const { hours: n, minutes: r, seconds: o, fraction: h } = oi(a), d = t ? Me(n, 2) : n, c = e || nt(e) && a >= 3600 ? Me(r, 2) : r, u = Me(o, 2), m = i && h > 0 ? `.${String(h).replace(/^0?\./, "")}` : "", f = `${c}:${u}${m}`;
|
|
4325
|
+
return n > 0 || s ? `${d}:${f}` : f;
|
|
4326
4326
|
}
|
|
4327
4327
|
function fe(a) {
|
|
4328
|
-
const t = [], { hours: e, minutes: s, seconds: i } =
|
|
4328
|
+
const t = [], { hours: e, minutes: s, seconds: i } = oi(a);
|
|
4329
4329
|
return e > 0 && t.push(`${e} hour`), s > 0 && t.push(`${s} min`), (i > 0 || t.length === 0) && t.push(`${i} sec`), t.join(" ");
|
|
4330
4330
|
}
|
|
4331
|
-
class
|
|
4331
|
+
class hi extends J {
|
|
4332
4332
|
#t;
|
|
4333
4333
|
constructor(t) {
|
|
4334
4334
|
super(), this.#t = t, l(this.#e.bind(this));
|
|
@@ -4725,7 +4725,7 @@ function Cs(a, t, e) {
|
|
|
4725
4725
|
const s = t - a, i = e - a;
|
|
4726
4726
|
return s > 0 ? i / s : 0;
|
|
4727
4727
|
}
|
|
4728
|
-
class
|
|
4728
|
+
class li extends J {
|
|
4729
4729
|
#t;
|
|
4730
4730
|
#e;
|
|
4731
4731
|
constructor(t) {
|
|
@@ -4734,7 +4734,7 @@ class hi extends J {
|
|
|
4734
4734
|
onConnect(t) {
|
|
4735
4735
|
this.#e = new IntersectionObserver((e) => {
|
|
4736
4736
|
this.#t.callback?.(e, this.#e);
|
|
4737
|
-
}, this.#t), this.#e.observe(t),
|
|
4737
|
+
}, this.#t), this.#e.observe(t), x(this.#s.bind(this));
|
|
4738
4738
|
}
|
|
4739
4739
|
/**
|
|
4740
4740
|
* Disconnect any active intersection observers.
|
|
@@ -4900,7 +4900,7 @@ class Kn extends J {
|
|
|
4900
4900
|
#x(t) {
|
|
4901
4901
|
const { key: e, shiftKey: s } = t;
|
|
4902
4902
|
t.preventDefault(), t.stopPropagation();
|
|
4903
|
-
const { shiftKeyMultiplier: i } = this.$props, { min: n, max: r, value: o, pointerValue: h } = this.$state, d = this.#t.getStep(), c = this.#t.getKeyStep(), u = s ? c * i() : c, m = Number(Le[e]),
|
|
4903
|
+
const { shiftKeyMultiplier: i } = this.$props, { min: n, max: r, value: o, pointerValue: h } = this.$state, d = this.#t.getStep(), c = this.#t.getKeyStep(), u = s ? c * i() : c, m = Number(Le[e]), f = u * m, P = this.#f ? h() : this.#t.getValue?.() ?? o(), I = (P + f) / d;
|
|
4904
4904
|
return Math.max(n(), Math.min(r(), Number((d * I).toFixed(3))));
|
|
4905
4905
|
}
|
|
4906
4906
|
// -------------------------------------------------------------------------------------------
|
|
@@ -4949,7 +4949,7 @@ class Y extends J {
|
|
|
4949
4949
|
orientation: this.$props.orientation,
|
|
4950
4950
|
disabled: this.#e.isDisabled,
|
|
4951
4951
|
preview: w(null)
|
|
4952
|
-
}), l(this.#r.bind(this)), l(this.#o.bind(this)), l(this.#h.bind(this)), this.#c(), new Kn(this.#e, this.#t).attach(this), new
|
|
4952
|
+
}), l(this.#r.bind(this)), l(this.#o.bind(this)), l(this.#h.bind(this)), this.#c(), new Kn(this.#e, this.#t).attach(this), new li({
|
|
4953
4953
|
callback: this.#a.bind(this)
|
|
4954
4954
|
}).attach(this);
|
|
4955
4955
|
}
|
|
@@ -4957,7 +4957,7 @@ class Y extends J {
|
|
|
4957
4957
|
E(t, "role", "slider"), E(t, "tabindex", "0"), E(t, "autocomplete", "off"), l(this.#u.bind(this));
|
|
4958
4958
|
}
|
|
4959
4959
|
onConnect(t) {
|
|
4960
|
-
|
|
4960
|
+
x(Ws(t, this.#s.set)), l(this.#n.bind(this));
|
|
4961
4961
|
}
|
|
4962
4962
|
#a(t) {
|
|
4963
4963
|
this.#i.set(t[0].isIntersecting);
|
|
@@ -5312,14 +5312,14 @@ class Qn extends b {
|
|
|
5312
5312
|
height: u
|
|
5313
5313
|
} = getComputedStyle(this.el);
|
|
5314
5314
|
h === "100%" && (h = parseFloat(c) + ""), d === "100%" && (d = parseFloat(u) + "");
|
|
5315
|
-
let m = Math.max(parseInt(h) / i, parseInt(d) / n),
|
|
5315
|
+
let m = Math.max(parseInt(h) / i, parseInt(d) / n), f = Math.min(
|
|
5316
5316
|
Math.max(parseInt(h), parseInt(r)) / i,
|
|
5317
5317
|
Math.max(parseInt(d), parseInt(o)) / n
|
|
5318
|
-
),
|
|
5319
|
-
this.#d(t, "--thumbnail-width", `${i *
|
|
5318
|
+
), P = !isNaN(f) && f < 1 ? f : m > 1 ? m : 1;
|
|
5319
|
+
this.#d(t, "--thumbnail-width", `${i * P}px`), this.#d(t, "--thumbnail-height", `${n * P}px`), this.#d(t, "--thumbnail-aspect-ratio", String(V(i / n, 5))), this.#d(e, "width", `${e.naturalWidth * P}px`), this.#d(e, "height", `${e.naturalHeight * P}px`), this.#d(
|
|
5320
5320
|
e,
|
|
5321
5321
|
"transform",
|
|
5322
|
-
s.coords ? `translate(-${s.coords.x *
|
|
5322
|
+
s.coords ? `translate(-${s.coords.x * P}px, -${s.coords.y * P}px)` : ""
|
|
5323
5323
|
), this.#d(e, "max-width", "none");
|
|
5324
5324
|
}
|
|
5325
5325
|
#d(t, e, s) {
|
|
@@ -5330,7 +5330,7 @@ class Qn extends b {
|
|
|
5330
5330
|
this.#e = [];
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
class
|
|
5333
|
+
class di extends b {
|
|
5334
5334
|
static props = {
|
|
5335
5335
|
type: "pointer",
|
|
5336
5336
|
format: null,
|
|
@@ -5358,19 +5358,19 @@ class li extends b {
|
|
|
5358
5358
|
padMinutes: n,
|
|
5359
5359
|
showHours: r,
|
|
5360
5360
|
showMs: o
|
|
5361
|
-
} = this.$props, { value: h, pointerValue: d, min: c, max: u } = this.#s, m = e?.() ?? this.#t.default,
|
|
5361
|
+
} = this.$props, { value: h, pointerValue: d, min: c, max: u } = this.#s, m = e?.() ?? this.#t.default, f = t() === "current" ? h() : d();
|
|
5362
5362
|
if (m === "percent") {
|
|
5363
|
-
const
|
|
5363
|
+
const P = u() - c(), I = f / P * 100;
|
|
5364
5364
|
return (this.#t.percent ?? V)(I, s()) + "%";
|
|
5365
|
-
} else return m === "time" ? (this.#t.time ?? we)(
|
|
5365
|
+
} else return m === "time" ? (this.#t.time ?? we)(f, {
|
|
5366
5366
|
padHrs: i(),
|
|
5367
5367
|
padMins: n(),
|
|
5368
5368
|
showHrs: r(),
|
|
5369
5369
|
showMs: o()
|
|
5370
|
-
}) : (this.#t.value?.(
|
|
5370
|
+
}) : (this.#t.value?.(f) ?? f.toFixed(2)) + "";
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
|
-
const Wn =
|
|
5373
|
+
const Wn = di.prototype;
|
|
5374
5374
|
_(Wn, "getValueText");
|
|
5375
5375
|
class zn extends b {
|
|
5376
5376
|
static props = {
|
|
@@ -5395,9 +5395,9 @@ class zn extends b {
|
|
|
5395
5395
|
}
|
|
5396
5396
|
onConnect(t) {
|
|
5397
5397
|
const { preview: e } = this.#t;
|
|
5398
|
-
e.set(t),
|
|
5398
|
+
e.set(t), x(() => e.set(null)), l(this.#e.bind(this));
|
|
5399
5399
|
const s = new ResizeObserver(this.#e.bind(this));
|
|
5400
|
-
s.observe(t),
|
|
5400
|
+
s.observe(t), x(() => s.disconnect());
|
|
5401
5401
|
}
|
|
5402
5402
|
#e = Vt(() => {
|
|
5403
5403
|
const { disabled: t, orientation: e } = this.#t;
|
|
@@ -5514,7 +5514,7 @@ class Yn extends b {
|
|
|
5514
5514
|
this.#r(t);
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
let
|
|
5517
|
+
let ci = class extends b {
|
|
5518
5518
|
static props = {
|
|
5519
5519
|
...Y.props,
|
|
5520
5520
|
step: 0.1,
|
|
@@ -5586,7 +5586,7 @@ let di = class extends b {
|
|
|
5586
5586
|
}
|
|
5587
5587
|
#o() {
|
|
5588
5588
|
const t = this.#t.player.el, { preview: e } = q(Je);
|
|
5589
|
-
t && e() &&
|
|
5589
|
+
t && e() && g(t, "data-preview", this.$state.active());
|
|
5590
5590
|
}
|
|
5591
5591
|
#h(t, e) {
|
|
5592
5592
|
this.#t.remote.seeking(t, e);
|
|
@@ -5720,12 +5720,12 @@ class er {
|
|
|
5720
5720
|
this.#i = t;
|
|
5721
5721
|
}
|
|
5722
5722
|
attachMenu(t) {
|
|
5723
|
-
O(t, "focus", this.#r.bind(this)), this.#e = t,
|
|
5723
|
+
O(t, "focus", this.#r.bind(this)), this.#e = t, x(() => {
|
|
5724
5724
|
this.#e = null;
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
5727
5727
|
listen() {
|
|
5728
|
-
this.#e && (this.update(), new M(this.#e).add("keyup", this.#h.bind(this)).add("keydown", this.#l.bind(this)),
|
|
5728
|
+
this.#e && (this.update(), new M(this.#e).add("keyup", this.#h.bind(this)).add("keydown", this.#l.bind(this)), x(() => {
|
|
5729
5729
|
this.#t = -1, this.#s = [];
|
|
5730
5730
|
}));
|
|
5731
5731
|
}
|
|
@@ -5806,7 +5806,7 @@ class er {
|
|
|
5806
5806
|
const t = this.#e.querySelectorAll(Zn), e = [], s = (i) => i.getAttribute("role") === "menu";
|
|
5807
5807
|
for (const i of t)
|
|
5808
5808
|
St(i) && i.offsetParent !== null && // does not have display: none
|
|
5809
|
-
|
|
5809
|
+
zs(this.#e, i, s) && e.push(i);
|
|
5810
5810
|
return e;
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
@@ -5847,7 +5847,7 @@ class Rt extends b {
|
|
|
5847
5847
|
constructor() {
|
|
5848
5848
|
super();
|
|
5849
5849
|
const { showDelay: t } = this.$props;
|
|
5850
|
-
this.#c = new
|
|
5850
|
+
this.#c = new hi({
|
|
5851
5851
|
trigger: this.#n,
|
|
5852
5852
|
content: this.#r,
|
|
5853
5853
|
showDelay: t,
|
|
@@ -5886,7 +5886,7 @@ class Rt extends b {
|
|
|
5886
5886
|
disableMenuButton: this.#P.bind(this),
|
|
5887
5887
|
addSubmenu: this.#I.bind(this),
|
|
5888
5888
|
onTransitionEvent: (e) => {
|
|
5889
|
-
this.#m.add(e),
|
|
5889
|
+
this.#m.add(e), x(() => {
|
|
5890
5890
|
this.#m.delete(e);
|
|
5891
5891
|
});
|
|
5892
5892
|
}
|
|
@@ -5923,15 +5923,15 @@ class Rt extends b {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
#b(t) {
|
|
5925
5925
|
const e = t.el, s = this.isSubmenu, i = N(this.#x.bind(this));
|
|
5926
|
-
E(e, "tabindex", s ? "-1" : "0"), E(e, "role", s ? "menuitem" : "button"),
|
|
5927
|
-
|
|
5928
|
-
}), this.#n.set(e),
|
|
5926
|
+
E(e, "tabindex", s ? "-1" : "0"), E(e, "role", s ? "menuitem" : "button"), g(e, "id", this.#s), g(e, "aria-haspopup", "menu"), g(e, "aria-expanded", "false"), g(e, "data-root", !this.isSubmenu), g(e, "data-submenu", this.isSubmenu), l(() => {
|
|
5927
|
+
g(e, "data-open", this.#i()), g(e, "aria-disabled", i());
|
|
5928
|
+
}), this.#n.set(e), x(() => {
|
|
5929
5929
|
this.#n.set(null);
|
|
5930
5930
|
});
|
|
5931
5931
|
}
|
|
5932
5932
|
#$(t) {
|
|
5933
5933
|
const e = t.el;
|
|
5934
|
-
e.style.setProperty("display", "none"),
|
|
5934
|
+
e.style.setProperty("display", "none"), g(e, "id", this.#e), E(e, "role", "menu"), E(e, "tabindex", "-1"), g(e, "data-root", !this.isSubmenu), g(e, "data-submenu", this.isSubmenu), this.#r.set(e), x(() => this.#r.set(null)), l(() => g(e, "data-open", this.#i())), this.#u.attachMenu(e), this.#v(!1);
|
|
5935
5935
|
const i = this.#B.bind(this);
|
|
5936
5936
|
this.isSubmenu ? this.#o?.onTransitionEvent(i) : (t.listen("transitionstart", i), t.listen("transitionend", i), t.listen("animationend", this.#O), t.listen("vds-menu-resize", this.#O));
|
|
5937
5937
|
}
|
|
@@ -5940,14 +5940,14 @@ class Rt extends b {
|
|
|
5940
5940
|
}
|
|
5941
5941
|
#v(t) {
|
|
5942
5942
|
const e = p(this.#r);
|
|
5943
|
-
e &&
|
|
5943
|
+
e && g(e, "aria-hidden", ce(!t));
|
|
5944
5944
|
}
|
|
5945
5945
|
#P(t) {
|
|
5946
5946
|
this.#p.set(t);
|
|
5947
5947
|
}
|
|
5948
5948
|
#f = !1;
|
|
5949
5949
|
#T(t, e) {
|
|
5950
|
-
if (this.#f =
|
|
5950
|
+
if (this.#f = Us(e), e?.stopPropagation(), this.#i() === t) return;
|
|
5951
5951
|
if (this.#x()) {
|
|
5952
5952
|
t && this.#c.hide(e);
|
|
5953
5953
|
return;
|
|
@@ -5959,7 +5959,7 @@ class Rt extends b {
|
|
|
5959
5959
|
})
|
|
5960
5960
|
);
|
|
5961
5961
|
const s = this.#n(), i = this.#r();
|
|
5962
|
-
if (s && (
|
|
5962
|
+
if (s && (g(s, "aria-controls", t && this.#e), g(s, "aria-expanded", ce(t))), i && g(i, "aria-labelledby", t && this.#s), this.#i.set(t), this.#q(e), rt(), this.#f) {
|
|
5963
5963
|
t ? i?.focus() : s?.focus();
|
|
5964
5964
|
for (const n of [this.el, i])
|
|
5965
5965
|
n && n.setAttribute("data-keyboard", "");
|
|
@@ -6001,13 +6001,13 @@ class Rt extends b {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
#M() {
|
|
6003
6003
|
const t = this.el?.querySelector('[data-part="close-target"]');
|
|
6004
|
-
return this.el && t &&
|
|
6004
|
+
return this.el && t && zs(this.el, t, (e) => e.getAttribute("role") === "menu") ? t : null;
|
|
6005
6005
|
}
|
|
6006
6006
|
#q(t) {
|
|
6007
6007
|
this.isSubmenu || (this.#i() ? this.#t.remote.pauseControls(t) : this.#t.remote.resumeControls(t));
|
|
6008
6008
|
}
|
|
6009
6009
|
#I(t) {
|
|
6010
|
-
this.#h.add(t), new M(t).add("open", this.#R).add("close", this.#H),
|
|
6010
|
+
this.#h.add(t), new M(t).add("open", this.#R).add("close", this.#H), x(this.#_);
|
|
6011
6011
|
}
|
|
6012
6012
|
#_ = this.#D.bind(this);
|
|
6013
6013
|
#D(t) {
|
|
@@ -6053,7 +6053,7 @@ class Rt extends b {
|
|
|
6053
6053
|
else if (n.nodeType === 3)
|
|
6054
6054
|
e += parseFloat(getComputedStyle(n).fontSize);
|
|
6055
6055
|
else if (St(n)) {
|
|
6056
|
-
if (!
|
|
6056
|
+
if (!Qs(n)) continue;
|
|
6057
6057
|
const r = getComputedStyle(n);
|
|
6058
6058
|
e += n.offsetHeight + (parseFloat(r.marginTop) || 0) + (parseFloat(r.marginBottom) || 0);
|
|
6059
6059
|
}
|
|
@@ -6062,7 +6062,7 @@ class Rt extends b {
|
|
|
6062
6062
|
#N = !1;
|
|
6063
6063
|
#B(t) {
|
|
6064
6064
|
const e = this.#r();
|
|
6065
|
-
e && t.propertyName === "height" && (this.#N = t.type === "transitionstart",
|
|
6065
|
+
e && t.propertyName === "height" && (this.#N = t.type === "transitionstart", g(e, "data-transition", this.#N ? "height" : null), this.#i() && this.#k());
|
|
6066
6066
|
for (const s of this.#m) s(t);
|
|
6067
6067
|
}
|
|
6068
6068
|
open(t) {
|
|
@@ -6108,7 +6108,7 @@ class ts extends b {
|
|
|
6108
6108
|
onConnect(t) {
|
|
6109
6109
|
l(this.#i.bind(this)), this.#a();
|
|
6110
6110
|
const e = new MutationObserver(this.#a.bind(this));
|
|
6111
|
-
e.observe(t, { attributeFilter: ["data-part"], childList: !0, subtree: !0 }),
|
|
6111
|
+
e.observe(t, { attributeFilter: ["data-part"], childList: !0, subtree: !0 }), x(() => e.disconnect()), pt(t, (s) => {
|
|
6112
6112
|
this.dispatch("select", { trigger: s });
|
|
6113
6113
|
});
|
|
6114
6114
|
}
|
|
@@ -6168,7 +6168,7 @@ class or extends b {
|
|
|
6168
6168
|
let e = this.#n(this.$props.container());
|
|
6169
6169
|
if (!e) return;
|
|
6170
6170
|
const s = this.#t.parentElement === e;
|
|
6171
|
-
|
|
6171
|
+
g(this.#t, "data-portal", t), t ? s || (this.#t.remove(), e.append(this.#t)) : s && this.#t.parentElement === e && (this.#t.remove(), this.el?.append(this.#t));
|
|
6172
6172
|
}
|
|
6173
6173
|
#n(t) {
|
|
6174
6174
|
return St(t) ? t : t ? document.querySelector(t) : document.body;
|
|
@@ -6192,7 +6192,7 @@ class hr extends b {
|
|
|
6192
6192
|
onAttach(t) {
|
|
6193
6193
|
if (this.#t = q(D), this.#t.attachMenuItems(this), U(le)) {
|
|
6194
6194
|
const e = q(le);
|
|
6195
|
-
e && (j(le, null), e.attach(t),
|
|
6195
|
+
e && (j(le, null), e.attach(t), x(() => e.attach(null)));
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
6198
6198
|
onConnect(t) {
|
|
@@ -6210,13 +6210,13 @@ class hr extends b {
|
|
|
6210
6210
|
width: "max-content"
|
|
6211
6211
|
});
|
|
6212
6212
|
const { offset: s, alignOffset: i } = this.$props;
|
|
6213
|
-
|
|
6214
|
-
|
|
6213
|
+
x(
|
|
6214
|
+
Xs(this.el, this.#i(), e, {
|
|
6215
6215
|
offsetVarName: "media-menu",
|
|
6216
6216
|
xOffset: i(),
|
|
6217
6217
|
yOffset: s()
|
|
6218
6218
|
})
|
|
6219
|
-
),
|
|
6219
|
+
), x(this.#s.bind(this));
|
|
6220
6220
|
}
|
|
6221
6221
|
#s() {
|
|
6222
6222
|
this.el && (this.el.removeAttribute("style"), this.el.style.display = "none");
|
|
@@ -6271,7 +6271,7 @@ class At extends J {
|
|
|
6271
6271
|
return null;
|
|
6272
6272
|
}
|
|
6273
6273
|
}
|
|
6274
|
-
class
|
|
6274
|
+
class ui extends b {
|
|
6275
6275
|
static props = {
|
|
6276
6276
|
value: ""
|
|
6277
6277
|
};
|
|
@@ -6302,7 +6302,7 @@ class ci extends b {
|
|
|
6302
6302
|
E(t, "tabindex", e ? "-1" : "0"), E(t, "role", e ? "menuitemradio" : "radio"), l(this.#a.bind(this));
|
|
6303
6303
|
}
|
|
6304
6304
|
onConnect(t) {
|
|
6305
|
-
this.#i(), pt(t, this.#n.bind(this)),
|
|
6305
|
+
this.#i(), pt(t, this.#n.bind(this)), x(this.#s.bind(this));
|
|
6306
6306
|
}
|
|
6307
6307
|
#s() {
|
|
6308
6308
|
Zt(() => {
|
|
@@ -6329,9 +6329,9 @@ class ci extends b {
|
|
|
6329
6329
|
this.dispatch("select", { trigger: t });
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
6332
|
-
const lr =
|
|
6332
|
+
const lr = ui.prototype;
|
|
6333
6333
|
T(lr, "checked");
|
|
6334
|
-
class
|
|
6334
|
+
class pi extends b {
|
|
6335
6335
|
static props = {
|
|
6336
6336
|
emptyLabel: "Default"
|
|
6337
6337
|
};
|
|
@@ -6385,11 +6385,11 @@ class ui extends b {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
const es =
|
|
6388
|
+
const es = pi.prototype;
|
|
6389
6389
|
T(es, "value");
|
|
6390
6390
|
T(es, "disabled");
|
|
6391
6391
|
_(es, "getOptions");
|
|
6392
|
-
class
|
|
6392
|
+
class mi extends b {
|
|
6393
6393
|
static props = {
|
|
6394
6394
|
offLabel: "Off"
|
|
6395
6395
|
};
|
|
@@ -6459,12 +6459,12 @@ class pi extends b {
|
|
|
6459
6459
|
return t.id + ":" + t.kind + "-" + t.label.toLowerCase();
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
|
-
const ss =
|
|
6462
|
+
const ss = mi.prototype;
|
|
6463
6463
|
T(ss, "value");
|
|
6464
6464
|
T(ss, "disabled");
|
|
6465
6465
|
_(ss, "getOptions");
|
|
6466
6466
|
const dr = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
|
|
6467
|
-
class
|
|
6467
|
+
class fi extends b {
|
|
6468
6468
|
static props = {
|
|
6469
6469
|
normalLabel: "Normal",
|
|
6470
6470
|
rates: dr
|
|
@@ -6515,11 +6515,11 @@ class mi extends b {
|
|
|
6515
6515
|
this.#t.remote.changePlaybackRate(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
6516
6516
|
}
|
|
6517
6517
|
}
|
|
6518
|
-
const is =
|
|
6518
|
+
const is = fi.prototype;
|
|
6519
6519
|
T(is, "value");
|
|
6520
6520
|
T(is, "disabled");
|
|
6521
6521
|
_(is, "getOptions");
|
|
6522
|
-
class
|
|
6522
|
+
class gi extends b {
|
|
6523
6523
|
static props = {
|
|
6524
6524
|
autoLabel: "Auto",
|
|
6525
6525
|
hideBitrate: !1,
|
|
@@ -6537,7 +6537,7 @@ class fi extends b {
|
|
|
6537
6537
|
}
|
|
6538
6538
|
#i = tt(() => {
|
|
6539
6539
|
const { sort: t } = this.$props, { qualities: e } = this.#t.$state;
|
|
6540
|
-
return
|
|
6540
|
+
return ri(e(), t() === "descending");
|
|
6541
6541
|
});
|
|
6542
6542
|
constructor() {
|
|
6543
6543
|
super(), this.#s = new At(), this.#s.onValueChange = this.#o.bind(this);
|
|
@@ -6597,7 +6597,7 @@ class fi extends b {
|
|
|
6597
6597
|
return t.height + "_" + t.bitrate;
|
|
6598
6598
|
}
|
|
6599
6599
|
}
|
|
6600
|
-
const as =
|
|
6600
|
+
const as = gi.prototype;
|
|
6601
6601
|
T(as, "value");
|
|
6602
6602
|
T(as, "disabled");
|
|
6603
6603
|
_(as, "getOptions");
|
|
@@ -6625,7 +6625,7 @@ class cr extends b {
|
|
|
6625
6625
|
this.setAttributes({
|
|
6626
6626
|
"data-type": t,
|
|
6627
6627
|
"data-remainder": this.#c.bind(this)
|
|
6628
|
-
}), new
|
|
6628
|
+
}), new li({
|
|
6629
6629
|
callback: this.#a.bind(this)
|
|
6630
6630
|
}).attach(this);
|
|
6631
6631
|
}
|
|
@@ -6633,7 +6633,7 @@ class cr extends b {
|
|
|
6633
6633
|
t.hasAttribute("role") || l(this.#h.bind(this)), l(this.#o.bind(this));
|
|
6634
6634
|
}
|
|
6635
6635
|
onConnect(t) {
|
|
6636
|
-
|
|
6636
|
+
x(Ws(t, this.#s.set)), l(this.#n.bind(this)), l(this.#r.bind(this));
|
|
6637
6637
|
}
|
|
6638
6638
|
#a(t) {
|
|
6639
6639
|
this.#i.set(t[0].isIntersecting);
|
|
@@ -6667,7 +6667,7 @@ class cr extends b {
|
|
|
6667
6667
|
#h() {
|
|
6668
6668
|
if (!this.el) return;
|
|
6669
6669
|
const { toggle: t } = this.$props;
|
|
6670
|
-
|
|
6670
|
+
g(this.el, "role", t() ? "timer" : null), g(this.el, "tabindex", t() ? 0 : null);
|
|
6671
6671
|
}
|
|
6672
6672
|
#l(t) {
|
|
6673
6673
|
const { bufferedEnd: e, duration: s, currentTime: i } = this.#t.$state;
|
|
@@ -6763,7 +6763,7 @@ class ur extends b {
|
|
|
6763
6763
|
const i = window.setTimeout(() => {
|
|
6764
6764
|
e.set(!1);
|
|
6765
6765
|
}, 150);
|
|
6766
|
-
return this.el &&
|
|
6766
|
+
return this.el && g(this.el, "aria-label", s), S(s) && this.dispatch("change", { detail: s }), () => window.clearTimeout(i);
|
|
6767
6767
|
}
|
|
6768
6768
|
#d(t) {
|
|
6769
6769
|
const { label: e } = this.$state;
|
|
@@ -6796,7 +6796,7 @@ class pr extends b {
|
|
|
6796
6796
|
#e() {
|
|
6797
6797
|
if (!this.el) return;
|
|
6798
6798
|
const { nativeControls: t } = this.#t.$state, e = t();
|
|
6799
|
-
|
|
6799
|
+
g(this.el, "aria-hidden", e ? "true" : null), z(this.el, "display", e ? "none" : null);
|
|
6800
6800
|
}
|
|
6801
6801
|
#s() {
|
|
6802
6802
|
const { controls: t } = this.#t.player, { hideDelay: e, hideOnMouseLeave: s } = this.$props;
|
|
@@ -6825,7 +6825,7 @@ class gr extends b {
|
|
|
6825
6825
|
constructor() {
|
|
6826
6826
|
super(), new Z();
|
|
6827
6827
|
const { showDelay: t } = this.$props;
|
|
6828
|
-
new
|
|
6828
|
+
new hi({
|
|
6829
6829
|
trigger: this.#e,
|
|
6830
6830
|
content: this.#s,
|
|
6831
6831
|
showDelay: t,
|
|
@@ -6854,7 +6854,7 @@ class gr extends b {
|
|
|
6854
6854
|
#a(t) {
|
|
6855
6855
|
this.#e.set(t);
|
|
6856
6856
|
let e = t.getAttribute("data-media-tooltip");
|
|
6857
|
-
e && this.el?.setAttribute(`data-media-${e}-tooltip`, ""),
|
|
6857
|
+
e && this.el?.setAttribute(`data-media-${e}-tooltip`, ""), g(t, "data-describedby", this.#t);
|
|
6858
6858
|
}
|
|
6859
6859
|
#n(t) {
|
|
6860
6860
|
t.removeAttribute("data-describedby"), t.removeAttribute("aria-describedby"), this.#e.set(null);
|
|
@@ -6867,9 +6867,9 @@ class gr extends b {
|
|
|
6867
6867
|
}
|
|
6868
6868
|
#h(t) {
|
|
6869
6869
|
const e = this.#e(), s = this.#s();
|
|
6870
|
-
e &&
|
|
6870
|
+
e && g(e, "aria-describedby", t ? this.#t : null);
|
|
6871
6871
|
for (const i of [this.el, e, s])
|
|
6872
|
-
i &&
|
|
6872
|
+
i && g(i, "data-visible", t);
|
|
6873
6873
|
this.#i.set(t);
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
@@ -6878,12 +6878,12 @@ class yr extends b {
|
|
|
6878
6878
|
super(), new Z();
|
|
6879
6879
|
}
|
|
6880
6880
|
onConnect(t) {
|
|
6881
|
-
|
|
6881
|
+
x(
|
|
6882
6882
|
ht(() => {
|
|
6883
6883
|
if (!this.connectScope) return;
|
|
6884
6884
|
this.#t();
|
|
6885
6885
|
const e = q(wt);
|
|
6886
|
-
|
|
6886
|
+
x(() => {
|
|
6887
6887
|
const s = this.#e();
|
|
6888
6888
|
s && e.detachTrigger(s);
|
|
6889
6889
|
});
|
|
@@ -6923,7 +6923,7 @@ class br extends b {
|
|
|
6923
6923
|
onConnect(t) {
|
|
6924
6924
|
this.#t(t);
|
|
6925
6925
|
const e = q(wt);
|
|
6926
|
-
|
|
6926
|
+
x(() => e.detachContent(t)), x(
|
|
6927
6927
|
ht(() => {
|
|
6928
6928
|
this.connectScope && l(this.#e.bind(this));
|
|
6929
6929
|
})
|
|
@@ -6936,7 +6936,7 @@ class br extends b {
|
|
|
6936
6936
|
const { showing: t } = q(wt);
|
|
6937
6937
|
if (!t()) return;
|
|
6938
6938
|
const { placement: e, offset: s, alignOffset: i } = this.$props;
|
|
6939
|
-
return
|
|
6939
|
+
return Xs(this.el, this.#s(), e(), {
|
|
6940
6940
|
offsetVarName: "media-tooltip",
|
|
6941
6941
|
xOffset: i(),
|
|
6942
6942
|
yOffset: s()
|
|
@@ -6946,7 +6946,7 @@ class br extends b {
|
|
|
6946
6946
|
return q(wt).trigger();
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
|
-
class
|
|
6949
|
+
class yi extends b {
|
|
6950
6950
|
static props = {
|
|
6951
6951
|
disabled: !1,
|
|
6952
6952
|
defaultPressed: !1
|
|
@@ -6964,7 +6964,7 @@ class gi extends b {
|
|
|
6964
6964
|
});
|
|
6965
6965
|
}
|
|
6966
6966
|
}
|
|
6967
|
-
const vr =
|
|
6967
|
+
const vr = yi.prototype;
|
|
6968
6968
|
T(vr, "pressed");
|
|
6969
6969
|
class $r extends b {
|
|
6970
6970
|
static props = F.props;
|
|
@@ -7004,7 +7004,7 @@ class $r extends b {
|
|
|
7004
7004
|
return `Google Cast ${t()}`;
|
|
7005
7005
|
}
|
|
7006
7006
|
}
|
|
7007
|
-
class
|
|
7007
|
+
class bi extends b {
|
|
7008
7008
|
static props = {
|
|
7009
7009
|
src: null,
|
|
7010
7010
|
crossOrigin: null
|
|
@@ -7074,7 +7074,7 @@ class yi extends b {
|
|
|
7074
7074
|
e() && n && Number.isFinite(s()) && Number.isFinite(i()) && (n.currentTime = i() * s());
|
|
7075
7075
|
}
|
|
7076
7076
|
}
|
|
7077
|
-
const wr =
|
|
7077
|
+
const wr = bi.prototype;
|
|
7078
7078
|
T(wr, "video");
|
|
7079
7079
|
class Tr extends b {
|
|
7080
7080
|
static props = {
|
|
@@ -7224,7 +7224,7 @@ class Sr extends b {
|
|
|
7224
7224
|
#t;
|
|
7225
7225
|
#e = tt(() => {
|
|
7226
7226
|
const { qualities: t } = this.#t.$state;
|
|
7227
|
-
return
|
|
7227
|
+
return ri(t());
|
|
7228
7228
|
});
|
|
7229
7229
|
onSetup() {
|
|
7230
7230
|
this.#t = $(), new Y({
|
|
@@ -7283,7 +7283,7 @@ class Sr extends b {
|
|
|
7283
7283
|
this.#o(t);
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
|
-
class
|
|
7286
|
+
class vi extends b {
|
|
7287
7287
|
static props = {
|
|
7288
7288
|
disabled: !1
|
|
7289
7289
|
};
|
|
@@ -7307,13 +7307,13 @@ class bi extends b {
|
|
|
7307
7307
|
return this.#r()[this.#h()] || null;
|
|
7308
7308
|
}
|
|
7309
7309
|
onSetup() {
|
|
7310
|
-
this.#t = $(), this.#e = Dt(
|
|
7310
|
+
this.#t = $(), this.#e = Dt(ci.state);
|
|
7311
7311
|
}
|
|
7312
7312
|
onAttach(t) {
|
|
7313
7313
|
ve(this.#t.textTracks, "chapters", this.#c.bind(this)), l(this.#E.bind(this));
|
|
7314
7314
|
}
|
|
7315
7315
|
onConnect() {
|
|
7316
|
-
|
|
7316
|
+
x(() => this.#u.bind(this));
|
|
7317
7317
|
}
|
|
7318
7318
|
onDestroy() {
|
|
7319
7319
|
this.#c(null);
|
|
@@ -7374,7 +7374,7 @@ class bi extends b {
|
|
|
7374
7374
|
for (let i = t; i < e; i++) this.#$(this.#a[i], s);
|
|
7375
7375
|
}
|
|
7376
7376
|
#$(t, e) {
|
|
7377
|
-
t && (t.style.setProperty("--chapter-fill", e + "%"),
|
|
7377
|
+
t && (t.style.setProperty("--chapter-fill", e + "%"), g(t, "data-active", e > 0 && e < 100), g(t, "data-ended", e === 100));
|
|
7378
7378
|
}
|
|
7379
7379
|
#w(t, e) {
|
|
7380
7380
|
let s = 0, i = this.#r();
|
|
@@ -7424,8 +7424,8 @@ class bi extends b {
|
|
|
7424
7424
|
for (let c = 0; c < t.length - 1; c++) {
|
|
7425
7425
|
const u = t[c], m = t[c + 1];
|
|
7426
7426
|
if (e.push(u), m) {
|
|
7427
|
-
const
|
|
7428
|
-
|
|
7427
|
+
const f = m.startTime - u.endTime;
|
|
7428
|
+
f > 0 && e.push(new window.VTTCue(u.endTime, u.endTime + f, ""));
|
|
7429
7429
|
}
|
|
7430
7430
|
}
|
|
7431
7431
|
const d = t[t.length - 1];
|
|
@@ -7482,12 +7482,12 @@ class bi extends b {
|
|
|
7482
7482
|
return t ? t.querySelector('[data-part="chapter-title"]') : null;
|
|
7483
7483
|
}
|
|
7484
7484
|
}
|
|
7485
|
-
const Te =
|
|
7485
|
+
const Te = vi.prototype;
|
|
7486
7486
|
T(Te, "cues");
|
|
7487
7487
|
T(Te, "activeCue");
|
|
7488
7488
|
T(Te, "activePointerCue");
|
|
7489
7489
|
_(Te, "setRefs");
|
|
7490
|
-
class
|
|
7490
|
+
class $i extends b {
|
|
7491
7491
|
static props = {
|
|
7492
7492
|
value: ""
|
|
7493
7493
|
};
|
|
@@ -7521,9 +7521,9 @@ class vi extends b {
|
|
|
7521
7521
|
this.dispatch(s);
|
|
7522
7522
|
}
|
|
7523
7523
|
}
|
|
7524
|
-
const
|
|
7525
|
-
T(
|
|
7526
|
-
T(
|
|
7524
|
+
const wi = $i.prototype;
|
|
7525
|
+
T(wi, "values");
|
|
7526
|
+
T(wi, "value");
|
|
7527
7527
|
var Pr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, ns = (a, t, e, s) => {
|
|
7528
7528
|
for (var i = xr(t, e), n = a.length - 1, r; n >= 0; n--)
|
|
7529
7529
|
(r = a[n]) && (i = r(t, e, i) || i);
|
|
@@ -7600,8 +7600,8 @@ class ke extends b {
|
|
|
7600
7600
|
const { realCurrentTime: e, seekableStart: s, seekableEnd: i } = this.#t.$state, n = s(), r = i(), o = e(), h = this.#a().findIndex((d) => De(d, o));
|
|
7601
7601
|
this.#s.value = h.toString(), h >= 0 && ht(() => {
|
|
7602
7602
|
if (!this.connectScope) return;
|
|
7603
|
-
const d = this.#a()[h], c = this.el.querySelector("[aria-checked='true']"), u = Math.max(n, d.startTime), m = Math.min(r, d.endTime) - u,
|
|
7604
|
-
c && z(c, "--progress", V(
|
|
7603
|
+
const d = this.#a()[h], c = this.el.querySelector("[aria-checked='true']"), u = Math.max(n, d.startTime), m = Math.min(r, d.endTime) - u, f = Math.max(0, o - u) / m * 100;
|
|
7604
|
+
c && z(c, "--progress", V(f, 3) + "%");
|
|
7605
7605
|
});
|
|
7606
7606
|
}
|
|
7607
7607
|
#l() {
|
|
@@ -7623,7 +7623,7 @@ ns([
|
|
|
7623
7623
|
_
|
|
7624
7624
|
], ke.prototype, "getOptions");
|
|
7625
7625
|
const Cr = [1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4];
|
|
7626
|
-
class
|
|
7626
|
+
class Ti extends b {
|
|
7627
7627
|
static props = {
|
|
7628
7628
|
normalLabel: "Disabled",
|
|
7629
7629
|
gains: Cr
|
|
@@ -7674,7 +7674,7 @@ class wi extends b {
|
|
|
7674
7674
|
this.#t.remote.changeAudioGain(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
|
-
const rs =
|
|
7677
|
+
const rs = Ti.prototype;
|
|
7678
7678
|
T(rs, "value");
|
|
7679
7679
|
T(rs, "disabled");
|
|
7680
7680
|
_(rs, "getOptions");
|
|
@@ -7878,9 +7878,9 @@ class dt extends b {
|
|
|
7878
7878
|
}
|
|
7879
7879
|
#d() {
|
|
7880
7880
|
const t = this.#g();
|
|
7881
|
-
|
|
7881
|
+
g(t, "data-example", "");
|
|
7882
7882
|
const e = this.#b();
|
|
7883
|
-
|
|
7883
|
+
g(e, "data-example", ""), e.textContent = this.$props.exampleText(), t?.append(e), this.el?.append(t), this.el?.setAttribute("data-example", ""), this.#m();
|
|
7884
7884
|
}
|
|
7885
7885
|
#p = -1;
|
|
7886
7886
|
#m() {
|
|
@@ -7891,11 +7891,11 @@ class dt extends b {
|
|
|
7891
7891
|
}
|
|
7892
7892
|
#g() {
|
|
7893
7893
|
const t = document.createElement("div");
|
|
7894
|
-
return
|
|
7894
|
+
return g(t, "data-part", "cue-display"), t;
|
|
7895
7895
|
}
|
|
7896
7896
|
#b() {
|
|
7897
7897
|
const t = document.createElement("div");
|
|
7898
|
-
return
|
|
7898
|
+
return g(t, "data-part", "cue"), t;
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
7901
|
class Mr extends b {
|
|
@@ -7940,7 +7940,7 @@ class Mr extends b {
|
|
|
7940
7940
|
}
|
|
7941
7941
|
#i() {
|
|
7942
7942
|
const { src: t } = this.$props, { poster: e, nativeControls: s } = this.#t.$state;
|
|
7943
|
-
this.el &&
|
|
7943
|
+
this.el && g(this.el, "display", s() ? "none" : null), this.$state.hidden.set(this.#e() || !(t() || e()) || s());
|
|
7944
7944
|
}
|
|
7945
7945
|
#a() {
|
|
7946
7946
|
const { loading: t, hidden: e } = this.$state;
|
|
@@ -7978,7 +7978,7 @@ class Mr extends b {
|
|
|
7978
7978
|
e.set(!1), s.set(t);
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
7981
|
-
class Lr extends v(HTMLElement,
|
|
7981
|
+
class Lr extends v(HTMLElement, ni) {
|
|
7982
7982
|
static tagName = "media-provider";
|
|
7983
7983
|
#t;
|
|
7984
7984
|
#e = null;
|
|
@@ -7996,7 +7996,7 @@ class Lr extends v(HTMLElement, ai) {
|
|
|
7996
7996
|
const o = this.#e?.parentElement ?? this;
|
|
7997
7997
|
this.#e?.remove(), this.#e = r, r && o.prepend(r), i && r && l(() => {
|
|
7998
7998
|
const { nativeControls: h, viewType: d } = this.#t.$state, c = h(), u = d() === "audio";
|
|
7999
|
-
!c && !u ? (this.#s = this.querySelector(".vds-blocker"), this.#s || (this.#s = document.createElement("div"), this.#s.classList.add("vds-blocker"), r.after(this.#s))) : (this.#s?.remove(), this.#s = null),
|
|
7999
|
+
!c && !u ? (this.#s = this.querySelector(".vds-blocker"), this.#s || (this.#s = document.createElement("div"), this.#s.classList.add("vds-blocker"), r.after(this.#s))) : (this.#s?.remove(), this.#s = null), g(r, "data-no-controls", !c);
|
|
8000
8000
|
});
|
|
8001
8001
|
}
|
|
8002
8002
|
e ? r?.classList.add("vds-youtube") : s && r?.classList.add("vds-vimeo"), i || (this.#s?.remove(), this.#s = null), this.load(r);
|
|
@@ -8005,24 +8005,24 @@ class Lr extends v(HTMLElement, ai) {
|
|
|
8005
8005
|
#i() {
|
|
8006
8006
|
const t = this.#e instanceof HTMLAudioElement ? this.#e : document.createElement("audio"), { controls: e, crossOrigin: s } = this.#t.$state;
|
|
8007
8007
|
return l(() => {
|
|
8008
|
-
|
|
8008
|
+
g(t, "controls", e()), g(t, "crossorigin", s());
|
|
8009
8009
|
}), t;
|
|
8010
8010
|
}
|
|
8011
8011
|
#a() {
|
|
8012
8012
|
const t = this.#e instanceof HTMLVideoElement ? this.#e : document.createElement("video"), { crossOrigin: e, poster: s, nativeControls: i } = this.#t.$state, n = tt(() => i() ? "true" : null), r = tt(() => s() && i() ? s() : null);
|
|
8013
8013
|
return l(() => {
|
|
8014
|
-
|
|
8014
|
+
g(t, "controls", n()), g(t, "crossorigin", e()), g(t, "poster", r());
|
|
8015
8015
|
}), t;
|
|
8016
8016
|
}
|
|
8017
8017
|
#n() {
|
|
8018
8018
|
const t = this.#e instanceof HTMLIFrameElement ? this.#e : document.createElement("iframe"), { nativeControls: e } = this.#t.$state;
|
|
8019
|
-
return l(() =>
|
|
8019
|
+
return l(() => g(t, "tabindex", e() ? null : -1)), t;
|
|
8020
8020
|
}
|
|
8021
8021
|
#r() {
|
|
8022
8022
|
if (this.#e?.classList.contains("vds-google-cast"))
|
|
8023
8023
|
return this.#e;
|
|
8024
8024
|
const t = document.createElement("div");
|
|
8025
|
-
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-
|
|
8025
|
+
return t.classList.add("vds-google-cast"), import("./vidstack-D_-9AA6_-4NXefQZ2.js").then(({ insertContent: e }) => {
|
|
8026
8026
|
e(t, this.#t.$state);
|
|
8027
8027
|
}), t;
|
|
8028
8028
|
}
|
|
@@ -8040,10 +8040,10 @@ class qr extends v(HTMLElement, Lt) {
|
|
|
8040
8040
|
y(qr);
|
|
8041
8041
|
y(Lr);
|
|
8042
8042
|
var qe;
|
|
8043
|
-
const ge = window, _t = ge.trustedTypes, Es = _t ? _t.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, Be = "$lit$", ct = `lit$${(Math.random() + "").slice(9)}$`,
|
|
8043
|
+
const ge = window, _t = ge.trustedTypes, Es = _t ? _t.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, Be = "$lit$", ct = `lit$${(Math.random() + "").slice(9)}$`, ki = "?" + ct, _r = `<${ki}>`, Pt = document, jt = () => Pt.createComment(""), Yt = (a) => a === null || typeof a != "object" && typeof a != "function", Si = Array.isArray, Ir = (a) => Si(a) || typeof a?.[Symbol.iterator] == "function", _e = `[
|
|
8044
8044
|
\f\r]`, Bt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, As = /-->/g, Ms = />/g, vt = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
8045
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ls = /'/g, qs = /"/g,
|
|
8046
|
-
function
|
|
8045
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ls = /'/g, qs = /"/g, Pi = /^(?:script|style|textarea|title)$/i, Vr = (a) => (t, ...e) => ({ _$litType$: a, strings: t, values: e }), Dr = Vr(1), Xt = /* @__PURE__ */ Symbol.for("lit-noChange"), R = /* @__PURE__ */ Symbol.for("lit-nothing"), _s = /* @__PURE__ */ new WeakMap(), Tt = Pt.createTreeWalker(Pt, 129, null, !1);
|
|
8046
|
+
function xi(a, t) {
|
|
8047
8047
|
if (!Array.isArray(a) || !a.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
8048
8048
|
return Es !== void 0 ? Es.createHTML(t) : t;
|
|
8049
8049
|
}
|
|
@@ -8053,11 +8053,11 @@ const Rr = (a, t) => {
|
|
|
8053
8053
|
for (let o = 0; o < e; o++) {
|
|
8054
8054
|
const h = a[o];
|
|
8055
8055
|
let d, c, u = -1, m = 0;
|
|
8056
|
-
for (; m < h.length && (r.lastIndex = m, c = r.exec(h), c !== null); ) m = r.lastIndex, r === Bt ? c[1] === "!--" ? r = As : c[1] !== void 0 ? r = Ms : c[2] !== void 0 ? (
|
|
8057
|
-
const
|
|
8058
|
-
n += r === Bt ? h + _r : u >= 0 ? (s.push(d), h.slice(0, u) + Be + h.slice(u) + ct +
|
|
8056
|
+
for (; m < h.length && (r.lastIndex = m, c = r.exec(h), c !== null); ) m = r.lastIndex, r === Bt ? c[1] === "!--" ? r = As : c[1] !== void 0 ? r = Ms : c[2] !== void 0 ? (Pi.test(c[2]) && (i = RegExp("</" + c[2], "g")), r = vt) : c[3] !== void 0 && (r = vt) : r === vt ? c[0] === ">" ? (r = i ?? Bt, u = -1) : c[1] === void 0 ? u = -2 : (u = r.lastIndex - c[2].length, d = c[1], r = c[3] === void 0 ? vt : c[3] === '"' ? qs : Ls) : r === qs || r === Ls ? r = vt : r === As || r === Ms ? r = Bt : (r = vt, i = void 0);
|
|
8057
|
+
const f = r === vt && a[o + 1].startsWith("/>") ? " " : "";
|
|
8058
|
+
n += r === Bt ? h + _r : u >= 0 ? (s.push(d), h.slice(0, u) + Be + h.slice(u) + ct + f) : h + ct + (u === -2 ? (s.push(void 0), o) : f);
|
|
8059
8059
|
}
|
|
8060
|
-
return [
|
|
8060
|
+
return [xi(a, n + (a[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
8061
8061
|
};
|
|
8062
8062
|
class Jt {
|
|
8063
8063
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
@@ -8074,23 +8074,23 @@ class Jt {
|
|
|
8074
8074
|
if (i.hasAttributes()) {
|
|
8075
8075
|
const u = [];
|
|
8076
8076
|
for (const m of i.getAttributeNames()) if (m.endsWith(Be) || m.startsWith(ct)) {
|
|
8077
|
-
const
|
|
8078
|
-
if (u.push(m),
|
|
8079
|
-
const
|
|
8080
|
-
h.push({ type: 1, index: n, name: I[2], strings:
|
|
8077
|
+
const f = c[r++];
|
|
8078
|
+
if (u.push(m), f !== void 0) {
|
|
8079
|
+
const P = i.getAttribute(f.toLowerCase() + Be).split(ct), I = /([.?@])?(.*)/.exec(f);
|
|
8080
|
+
h.push({ type: 1, index: n, name: I[2], strings: P, ctor: I[1] === "." ? Nr : I[1] === "?" ? Fr : I[1] === "@" ? Br : Se });
|
|
8081
8081
|
} else h.push({ type: 6, index: n });
|
|
8082
8082
|
}
|
|
8083
8083
|
for (const m of u) i.removeAttribute(m);
|
|
8084
8084
|
}
|
|
8085
|
-
if (
|
|
8085
|
+
if (Pi.test(i.tagName)) {
|
|
8086
8086
|
const u = i.textContent.split(ct), m = u.length - 1;
|
|
8087
8087
|
if (m > 0) {
|
|
8088
8088
|
i.textContent = _t ? _t.emptyScript : "";
|
|
8089
|
-
for (let
|
|
8089
|
+
for (let f = 0; f < m; f++) i.append(u[f], jt()), Tt.nextNode(), h.push({ type: 2, index: ++n });
|
|
8090
8090
|
i.append(u[m], jt());
|
|
8091
8091
|
}
|
|
8092
8092
|
}
|
|
8093
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
8093
|
+
} else if (i.nodeType === 8) if (i.data === ki) h.push({ type: 2, index: n });
|
|
8094
8094
|
else {
|
|
8095
8095
|
let u = -1;
|
|
8096
8096
|
for (; (u = i.data.indexOf(ct, u + 1)) !== -1; ) h.push({ type: 7, index: n }), u += ct.length - 1;
|
|
@@ -8173,7 +8173,7 @@ class ie {
|
|
|
8173
8173
|
}
|
|
8174
8174
|
g(t) {
|
|
8175
8175
|
var e;
|
|
8176
|
-
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Jt.createElement(
|
|
8176
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Jt.createElement(xi(i.h, i.h[0]), this.options)), i);
|
|
8177
8177
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n) this._$AH.v(s);
|
|
8178
8178
|
else {
|
|
8179
8179
|
const r = new Or(n, this), o = r.u(this.options);
|
|
@@ -8185,7 +8185,7 @@ class ie {
|
|
|
8185
8185
|
return e === void 0 && _s.set(t.strings, e = new Jt(t)), e;
|
|
8186
8186
|
}
|
|
8187
8187
|
T(t) {
|
|
8188
|
-
|
|
8188
|
+
Si(this._$AH) || (this._$AH = [], this._$AR());
|
|
8189
8189
|
const e = this._$AH;
|
|
8190
8190
|
let s, i = 0;
|
|
8191
8191
|
for (const n of t) i === e.length ? e.push(s = new ie(this.k(jt()), this.k(jt()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
@@ -8294,10 +8294,10 @@ class Ur extends HTMLElement {
|
|
|
8294
8294
|
this.rootPart?.setConnected(!1), this.rootPart = null, Vs(null, this);
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
|
-
const Kr = /* @__PURE__ */
|
|
8297
|
+
const Kr = /* @__PURE__ */ js(
|
|
8298
8298
|
'<img loading="eager" decoding="async" aria-hidden="true">'
|
|
8299
8299
|
);
|
|
8300
|
-
class
|
|
8300
|
+
class Ci extends v(HTMLElement, Qn) {
|
|
8301
8301
|
static tagName = "media-thumbnail";
|
|
8302
8302
|
static attrs = {
|
|
8303
8303
|
crossOrigin: "crossorigin"
|
|
@@ -8310,11 +8310,11 @@ class xi extends v(HTMLElement, Qn) {
|
|
|
8310
8310
|
onConnect() {
|
|
8311
8311
|
const { src: t, crossOrigin: e } = this.$state;
|
|
8312
8312
|
this.#e.parentNode !== this && this.prepend(this.#e), l(() => {
|
|
8313
|
-
|
|
8313
|
+
g(this.#e, "src", t()), g(this.#e, "crossorigin", e());
|
|
8314
8314
|
});
|
|
8315
8315
|
}
|
|
8316
8316
|
#s() {
|
|
8317
|
-
return
|
|
8317
|
+
return Ys(Kr);
|
|
8318
8318
|
}
|
|
8319
8319
|
}
|
|
8320
8320
|
class Qr extends v(HTMLElement, cr) {
|
|
@@ -8364,13 +8364,13 @@ function Ot(a, t) {
|
|
|
8364
8364
|
});
|
|
8365
8365
|
});
|
|
8366
8366
|
}
|
|
8367
|
-
class eo extends v(HTMLElement,
|
|
8367
|
+
class eo extends v(HTMLElement, pi) {
|
|
8368
8368
|
static tagName = "media-audio-radio-group";
|
|
8369
8369
|
onConnect() {
|
|
8370
8370
|
Ot(this);
|
|
8371
8371
|
}
|
|
8372
8372
|
}
|
|
8373
|
-
class so extends v(HTMLElement,
|
|
8373
|
+
class so extends v(HTMLElement, mi) {
|
|
8374
8374
|
static tagName = "media-captions-radio-group";
|
|
8375
8375
|
onConnect() {
|
|
8376
8376
|
Ot(this);
|
|
@@ -8388,13 +8388,13 @@ class no extends v(HTMLElement, rr) {
|
|
|
8388
8388
|
class ro extends v(HTMLElement, hr) {
|
|
8389
8389
|
static tagName = "media-menu-items";
|
|
8390
8390
|
}
|
|
8391
|
-
class oo extends v(HTMLElement,
|
|
8391
|
+
class oo extends v(HTMLElement, fi) {
|
|
8392
8392
|
static tagName = "media-speed-radio-group";
|
|
8393
8393
|
onConnect() {
|
|
8394
8394
|
Ot(this);
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
|
-
class ho extends v(HTMLElement,
|
|
8397
|
+
class ho extends v(HTMLElement, gi) {
|
|
8398
8398
|
static tagName = "media-quality-radio-group";
|
|
8399
8399
|
onConnect() {
|
|
8400
8400
|
Ot(this, (t, e) => {
|
|
@@ -8405,10 +8405,10 @@ class ho extends v(HTMLElement, fi) {
|
|
|
8405
8405
|
});
|
|
8406
8406
|
}
|
|
8407
8407
|
}
|
|
8408
|
-
class lo extends v(HTMLElement,
|
|
8408
|
+
class lo extends v(HTMLElement, ui) {
|
|
8409
8409
|
static tagName = "media-radio";
|
|
8410
8410
|
}
|
|
8411
|
-
class co extends
|
|
8411
|
+
class co extends Ci {
|
|
8412
8412
|
static tagName = "media-slider-thumbnail";
|
|
8413
8413
|
#t;
|
|
8414
8414
|
#e;
|
|
@@ -8423,7 +8423,7 @@ class co extends xi {
|
|
|
8423
8423
|
this.time = e() + this.#e.pointerRate() * t();
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
class uo extends v(HTMLElement,
|
|
8426
|
+
class uo extends v(HTMLElement, di) {
|
|
8427
8427
|
static tagName = "media-slider-value";
|
|
8428
8428
|
static attrs = {
|
|
8429
8429
|
padMinutes: {
|
|
@@ -8436,7 +8436,7 @@ class uo extends v(HTMLElement, li) {
|
|
|
8436
8436
|
});
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
8439
|
-
class po extends v(HTMLElement,
|
|
8439
|
+
class po extends v(HTMLElement, ci) {
|
|
8440
8440
|
static tagName = "media-time-slider";
|
|
8441
8441
|
}
|
|
8442
8442
|
class mo extends v(HTMLElement, zn) {
|
|
@@ -8512,7 +8512,7 @@ class Po extends b {
|
|
|
8512
8512
|
}
|
|
8513
8513
|
#t(t, e, s) {
|
|
8514
8514
|
const { size: i, trackWidth: n, fillPercent: r } = this.$props;
|
|
8515
|
-
|
|
8515
|
+
g(t, "width", i()), g(t, "height", i()), g(e, "stroke-width", n()), g(s, "stroke-width", n()), g(s, "stroke-dashoffset", 100 - r());
|
|
8516
8516
|
}
|
|
8517
8517
|
}
|
|
8518
8518
|
class xo extends v(Ur, Po) {
|
|
@@ -8560,7 +8560,7 @@ class Eo extends v(HTMLElement, Co) {
|
|
|
8560
8560
|
class Ao extends v(HTMLElement, $r) {
|
|
8561
8561
|
static tagName = "media-google-cast-button";
|
|
8562
8562
|
}
|
|
8563
|
-
class Mo extends v(HTMLElement,
|
|
8563
|
+
class Mo extends v(HTMLElement, yi) {
|
|
8564
8564
|
static tagName = "media-toggle-button";
|
|
8565
8565
|
}
|
|
8566
8566
|
class Lo extends v(HTMLElement, gr) {
|
|
@@ -8597,22 +8597,22 @@ class Vo extends v(HTMLElement, ke) {
|
|
|
8597
8597
|
});
|
|
8598
8598
|
}
|
|
8599
8599
|
}
|
|
8600
|
-
class Do extends v(HTMLElement,
|
|
8600
|
+
class Do extends v(HTMLElement, Ti) {
|
|
8601
8601
|
static tagName = "media-audio-gain-radio-group";
|
|
8602
8602
|
onConnect() {
|
|
8603
8603
|
Ot(this);
|
|
8604
8604
|
}
|
|
8605
8605
|
}
|
|
8606
|
-
class Ro extends v(HTMLElement,
|
|
8606
|
+
class Ro extends v(HTMLElement, $i) {
|
|
8607
8607
|
static tagName = "media-radio-group";
|
|
8608
8608
|
}
|
|
8609
8609
|
class Oo extends v(HTMLElement, ee) {
|
|
8610
8610
|
static tagName = "media-slider";
|
|
8611
8611
|
}
|
|
8612
|
-
const No = /* @__PURE__ */
|
|
8612
|
+
const No = /* @__PURE__ */ js(
|
|
8613
8613
|
'<video muted playsinline preload="none" style="max-width: unset;"></video>'
|
|
8614
8614
|
);
|
|
8615
|
-
class Ho extends v(HTMLElement,
|
|
8615
|
+
class Ho extends v(HTMLElement, bi) {
|
|
8616
8616
|
static tagName = "media-slider-video";
|
|
8617
8617
|
#t;
|
|
8618
8618
|
#e = this.#s();
|
|
@@ -8622,11 +8622,11 @@ class Ho extends v(HTMLElement, yi) {
|
|
|
8622
8622
|
onConnect() {
|
|
8623
8623
|
const { canLoad: t } = this.#t.$state, { src: e, crossOrigin: s } = this.$state;
|
|
8624
8624
|
this.#e.parentNode !== this && this.prepend(this.#e), l(() => {
|
|
8625
|
-
|
|
8625
|
+
g(this.#e, "crossorigin", s()), g(this.#e, "preload", t() ? "auto" : "none"), g(this.#e, "src", e());
|
|
8626
8626
|
});
|
|
8627
8627
|
}
|
|
8628
8628
|
#s() {
|
|
8629
|
-
return
|
|
8629
|
+
return Ys(No);
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
8632
|
class Fo extends v(HTMLElement, Tr) {
|
|
@@ -8638,7 +8638,7 @@ class Bo extends v(HTMLElement, kr) {
|
|
|
8638
8638
|
class Go extends v(HTMLElement, Sr) {
|
|
8639
8639
|
static tagName = "media-quality-slider";
|
|
8640
8640
|
}
|
|
8641
|
-
class Uo extends v(HTMLElement,
|
|
8641
|
+
class Uo extends v(HTMLElement, vi) {
|
|
8642
8642
|
static tagName = "media-slider-chapters";
|
|
8643
8643
|
#t = null;
|
|
8644
8644
|
onConnect() {
|
|
@@ -8685,7 +8685,7 @@ class Wo extends v(HTMLElement, Mr) {
|
|
|
8685
8685
|
const { loading: i, hidden: n } = this.$state;
|
|
8686
8686
|
this.#t.style.display = i() || n() ? "none" : "";
|
|
8687
8687
|
}), l(() => {
|
|
8688
|
-
|
|
8688
|
+
g(this.#t, "alt", e()), g(this.#t, "crossorigin", s()), g(this.#t, "src", t());
|
|
8689
8689
|
}), this.#t.parentNode !== this && this.prepend(this.#t);
|
|
8690
8690
|
}
|
|
8691
8691
|
}
|
|
@@ -8732,7 +8732,7 @@ y(Vo);
|
|
|
8732
8732
|
y(Ro);
|
|
8733
8733
|
y(lo);
|
|
8734
8734
|
y(yo);
|
|
8735
|
-
y(
|
|
8735
|
+
y(Ci);
|
|
8736
8736
|
y(go);
|
|
8737
8737
|
y(Yr);
|
|
8738
8738
|
y(Qr);
|
|
@@ -8806,7 +8806,7 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8806
8806
|
},
|
|
8807
8807
|
emits: ["close"],
|
|
8808
8808
|
setup(a, { emit: t }) {
|
|
8809
|
-
const { size: e, fullscreen: s, changeSize: i } = ye("size"), n =
|
|
8809
|
+
const { size: e, fullscreen: s, changeSize: i } = ye("size"), n = Ds(
|
|
8810
8810
|
() => e.value === K.SM ? "expand" : "collapse"
|
|
8811
8811
|
), r = a, o = t, h = (m) => {
|
|
8812
8812
|
m ? e.value !== K.LG && (s.value = !0, i(K.LG)) : e.value === K.LG && (c(), s.value = !1, i(K.SM));
|
|
@@ -8823,7 +8823,7 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8823
8823
|
}), Vi(() => {
|
|
8824
8824
|
document.removeEventListener("keyup", u);
|
|
8825
8825
|
});
|
|
8826
|
-
}), (m,
|
|
8826
|
+
}), (m, f) => (G(), mt("media-controls-group", {
|
|
8827
8827
|
class: be([`video-display-panel--${ot(e)}`, "video-display-panel controls-group"])
|
|
8828
8828
|
}, [
|
|
8829
8829
|
at("div", th, [
|
|
@@ -8852,7 +8852,7 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8852
8852
|
key: 1,
|
|
8853
8853
|
icon: "close",
|
|
8854
8854
|
color: "on-dark",
|
|
8855
|
-
onClick:
|
|
8855
|
+
onClick: f[0] || (f[0] = (P) => o("close"))
|
|
8856
8856
|
})) : Kt("", !0)
|
|
8857
8857
|
])
|
|
8858
8858
|
], 2));
|
|
@@ -8882,7 +8882,7 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8882
8882
|
closable: s.closable,
|
|
8883
8883
|
"hide-expand": s.hideExpand,
|
|
8884
8884
|
onClose: r[0] || (r[0] = (o) => i("close-player"))
|
|
8885
|
-
},
|
|
8885
|
+
}, Rs({ _: 2 }, [
|
|
8886
8886
|
n.$slots.avatar ? {
|
|
8887
8887
|
name: "avatar",
|
|
8888
8888
|
fn: Qt(() => [
|
|
@@ -8978,7 +8978,8 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8978
8978
|
hideBackground: { type: Boolean },
|
|
8979
8979
|
hideExpand: { type: Boolean },
|
|
8980
8980
|
stretch: { type: Boolean },
|
|
8981
|
-
videoObjectFit: { default: "contain" }
|
|
8981
|
+
videoObjectFit: { default: "contain" },
|
|
8982
|
+
mirrorVideo: { type: Boolean }
|
|
8982
8983
|
},
|
|
8983
8984
|
emits: ["close", "change-size"],
|
|
8984
8985
|
setup(a, { emit: t }) {
|
|
@@ -8986,26 +8987,27 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
8986
8987
|
Oi("size", {
|
|
8987
8988
|
size: i,
|
|
8988
8989
|
fullscreen: n,
|
|
8989
|
-
changeSize: (
|
|
8990
|
-
i.value =
|
|
8990
|
+
changeSize: (f) => {
|
|
8991
|
+
i.value = f, s("change-size", f);
|
|
8991
8992
|
}
|
|
8992
8993
|
});
|
|
8993
8994
|
const { src: o, mime: h, stream: d } = Ni(e), { normalizedSrcObject: c } = da({
|
|
8994
8995
|
src: o,
|
|
8995
8996
|
type: h,
|
|
8996
8997
|
stream: d
|
|
8997
|
-
}), u = (
|
|
8998
|
-
|
|
8998
|
+
}), u = Ds(() => [
|
|
8999
|
+
`wt-vidstack-player--${i.value}`,
|
|
9000
|
+
`wt-vidstack-player-video-object-fit--${e.videoObjectFit}`,
|
|
9001
|
+
e.mirrorVideo && "wt-vidstack-player--mirror-video",
|
|
9002
|
+
n.value && "wt-vidstack-player--fullscreen",
|
|
9003
|
+
e.stretch && "wt-vidstack-player--stretch",
|
|
9004
|
+
e.static && "wt-vidstack-player--static",
|
|
9005
|
+
e.hideBackground && "wt-vidstack-player--hide-background"
|
|
9006
|
+
]), m = (f) => {
|
|
9007
|
+
e.autoplay && f.target?.play();
|
|
8999
9008
|
};
|
|
9000
|
-
return (
|
|
9001
|
-
class: be([
|
|
9002
|
-
`wt-vidstack-player--${i.value}`,
|
|
9003
|
-
`wt-vidstack-player-video-object-fit--${e.videoObjectFit}`,
|
|
9004
|
-
n.value && "wt-vidstack-player--fullscreen",
|
|
9005
|
-
a.stretch && "wt-vidstack-player--stretch",
|
|
9006
|
-
e.static && "wt-vidstack-player--static",
|
|
9007
|
-
e.hideBackground && "wt-vidstack-player--hide-background"
|
|
9008
|
-
], "wt-vidstack-player"])
|
|
9009
|
+
return (f, P) => (G(), mt("div", {
|
|
9010
|
+
class: be([u.value, "wt-vidstack-player"])
|
|
9009
9011
|
}, [
|
|
9010
9012
|
at("media-player", {
|
|
9011
9013
|
ref: "player",
|
|
@@ -9015,10 +9017,10 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
9015
9017
|
class: "wt-vidstack-player__player",
|
|
9016
9018
|
"cross-origin": "",
|
|
9017
9019
|
playsinline: "",
|
|
9018
|
-
onClose:
|
|
9019
|
-
onCanPlay:
|
|
9020
|
+
onClose: P[1] || (P[1] = (I) => s("close")),
|
|
9021
|
+
onCanPlay: m
|
|
9020
9022
|
}, [
|
|
9021
|
-
|
|
9023
|
+
P[2] || (P[2] = at("media-provider", { class: "wt-vidstack-player__provider" }, null, -1)),
|
|
9022
9024
|
W(ot(lh), {
|
|
9023
9025
|
autoplay: e.autoplay,
|
|
9024
9026
|
closable: e.closable,
|
|
@@ -9028,20 +9030,20 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
9028
9030
|
title: e.title,
|
|
9029
9031
|
username: e.username,
|
|
9030
9032
|
"countdown-time-mode": e.countdownTimeMode,
|
|
9031
|
-
onClosePlayer:
|
|
9032
|
-
},
|
|
9033
|
+
onClosePlayer: P[0] || (P[0] = (I) => s("close"))
|
|
9034
|
+
}, Rs({
|
|
9033
9035
|
"controls-panel": Qt(() => [
|
|
9034
|
-
ut(
|
|
9036
|
+
ut(f.$slots, "controls-panel", { size: i.value }, void 0, !0)
|
|
9035
9037
|
]),
|
|
9036
9038
|
content: Qt(() => [
|
|
9037
|
-
ut(
|
|
9039
|
+
ut(f.$slots, "content", { size: i.value }, void 0, !0)
|
|
9038
9040
|
]),
|
|
9039
9041
|
_: 2
|
|
9040
9042
|
}, [
|
|
9041
|
-
|
|
9043
|
+
f.$slots.avatar ? {
|
|
9042
9044
|
name: "avatar",
|
|
9043
9045
|
fn: Qt(() => [
|
|
9044
|
-
ut(
|
|
9046
|
+
ut(f.$slots, "avatar", {}, void 0, !0)
|
|
9045
9047
|
]),
|
|
9046
9048
|
key: "0"
|
|
9047
9049
|
} : void 0
|
|
@@ -9049,17 +9051,17 @@ const zo = { class: "controls-group__actions" }, jo = /* @__PURE__ */ lt({
|
|
|
9049
9051
|
], 40, bh)
|
|
9050
9052
|
], 2));
|
|
9051
9053
|
}
|
|
9052
|
-
}), $h = /* @__PURE__ */ yt(vh, [["__scopeId", "data-v-
|
|
9054
|
+
}), $h = /* @__PURE__ */ yt(vh, [["__scopeId", "data-v-eb8362b9"]]), Lh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9053
9055
|
__proto__: null,
|
|
9054
9056
|
default: $h
|
|
9055
9057
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9056
9058
|
export {
|
|
9057
|
-
|
|
9059
|
+
C as L,
|
|
9058
9060
|
X as Q,
|
|
9059
9061
|
pe as T,
|
|
9060
|
-
|
|
9062
|
+
js as a,
|
|
9061
9063
|
k as b,
|
|
9062
|
-
|
|
9064
|
+
Ys as c,
|
|
9063
9065
|
xe as d,
|
|
9064
9066
|
he as e,
|
|
9065
9067
|
Ph as f,
|