@webitel/ui-sdk 26.6.1 → 26.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{contacts-_qmCBw3x.js → contacts-DuiejYmg.js} +834 -373
- package/dist/{index-CFJvgwFr.js → index-D_Bvqjjy.js} +1 -1
- package/dist/{index-BoAr0FkY.js → index-ofJZWfBt.js} +1 -1
- package/dist/{install-PDJJDxnH.js → install-rysuPEjF.js} +38 -38
- package/dist/{isObject-DPhlkqvG.js → isObject-C5JdCKnH.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +133 -133
- package/dist/{useVidstackSrc-BhJoOoEq.js → useVidstackSrc-C6hUWIuE.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-CanlLRKk.js → vidstack-Bq6c3Bam-D6M5GPTI.js} +3 -3
- package/dist/{vidstack-D2pY00kU-CSB1KdRb.js → vidstack-D2pY00kU-CRo5Kvyt.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-DO4Y-JcH.js → vidstack-DDXt6fpN-QgRuASyL.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-BCtNJifs.js → vidstack-D_-9AA6_-BQB6UUD-.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-CR1v9UBt.js → vidstack-DqAw8m9J-0B90hhJB.js} +1 -1
- package/dist/{vidstack-audio-BSLWAfpl.js → vidstack-audio-BML-tyCz.js} +2 -2
- package/dist/{vidstack-dash-v38IQp6A.js → vidstack-dash-BwVTHD5j.js} +4 -4
- package/dist/{vidstack-google-cast-DOkWGOXY.js → vidstack-google-cast-CvoUE_Qj.js} +4 -4
- package/dist/{vidstack-hls-Da7XyV8o.js → vidstack-hls-BgbWYqKl.js} +4 -4
- package/dist/{vidstack-video-MlBxjeJm.js → vidstack-video-D6tVAa-p.js} +3 -3
- package/dist/{vidstack-vimeo-C08ll0Oc.js → vidstack-vimeo-CMino7JB.js} +4 -4
- package/dist/{vidstack-youtube-DAs-oRRy.js → vidstack-youtube-DLE3pyNu.js} +3 -3
- package/dist/{wt-action-bar-B-gnbrSN.js → wt-action-bar-BwAQUnPp.js} +1 -1
- package/dist/{wt-button-select-CkqeW_-6.js → wt-button-select-D8-D18E4.js} +1 -1
- package/dist/{wt-call-media-action-D6CkWTmq.js → wt-call-media-action-B-AEoxjt.js} +1 -1
- package/dist/{wt-chat-emoji-DlCyrANh.js → wt-chat-emoji-D_4QMhH7.js} +2 -2
- package/dist/{wt-confirm-dialog-D8tcppiC.js → wt-confirm-dialog-BQVImEga.js} +1 -1
- package/dist/{wt-context-menu-DCigRSmp.js → wt-context-menu-CfvdB5Xl.js} +1 -1
- package/dist/{wt-copy-action-D_Z6jFtf.js → wt-copy-action-CIa3ImHz.js} +1 -1
- package/dist/{wt-datepicker-pS9H0oR1.js → wt-datepicker-CEoYduIo.js} +1 -1
- package/dist/{wt-display-chip-items-bzwYwkxN.js → wt-display-chip-items-CD6E8917.js} +1 -1
- package/dist/{wt-dual-panel-zN8czo6-.js → wt-dual-panel-Cm2oe8sF.js} +1 -1
- package/dist/{wt-dummy-CQ2r3NMw.js → wt-dummy-DHdJccrG.js} +1 -1
- package/dist/{wt-error-page-DamPrF3N.js → wt-error-page-Rt-F9oVv.js} +1 -1
- package/dist/{wt-expansion-card-C3S1YUq-.js → wt-expansion-card-v7GFQBoJ.js} +1 -1
- package/dist/{wt-expansion-panel-DTyYil5D.js → wt-expansion-panel-DSsY-KFR.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-BklLdi6h.js → wt-filters-panel-wrapper-Cr9dYYnT.js} +1 -1
- package/dist/{wt-galleria-DojNGdRA.js → wt-galleria-C2aburQk.js} +1 -1
- package/dist/{wt-inline-add-panel-CU5tPYmv.js → wt-inline-add-panel-BaDP2TC1.js} +1 -1
- package/dist/{wt-navigation-menu-DMak2JPd.js → wt-navigation-menu-B_R8-_Bk.js} +1 -1
- package/dist/{wt-notifications-bar-DrTcFD94.js → wt-notifications-bar-CfoCOojR.js} +2 -2
- package/dist/{wt-pagination-DRFIwl6z.js → wt-pagination-DW7KL87c.js} +1 -1
- package/dist/{wt-player-DXEv_Fho.js → wt-player-Be2YAJcQ.js} +2 -2
- package/dist/{wt-screen-recordings-action-CZMGLcgF.js → wt-screen-recordings-action-BJBx9KXM.js} +1 -1
- package/dist/{wt-search-bar-DvazKoF3.js → wt-search-bar-BT5d_LDB.js} +1 -1
- package/dist/{wt-selection-popup-CaQ5h7Kd.js → wt-selection-popup-DK6oLjfk.js} +1 -1
- package/dist/{wt-send-message-popup--MgNAzGF.js → wt-send-message-popup-C8oG1Kxc.js} +3 -3
- package/dist/{wt-start-page-X9LQJcFp.js → wt-start-page-BcV-IdG_.js} +1 -1
- package/dist/{wt-status-select-DNjNPOdw.js → wt-status-select-BcrdWJ9m.js} +1 -1
- package/dist/{wt-stepper-DuZTsQpa.js → wt-stepper-B_ny-IQN.js} +1 -1
- package/dist/{wt-table-BucoCc3s.js → wt-table-BX5kDXje.js} +1 -1
- package/dist/{wt-table-actions-D6_4T0-v.js → wt-table-actions-Cvk2_NUG.js} +1 -1
- package/dist/{wt-table-column-select-B3gopWBB.js → wt-table-column-select-CPacgsbN.js} +2 -2
- package/dist/{wt-tabs-B_Uw8dui.js → wt-tabs-wcnQfMfj.js} +1 -1
- package/dist/{wt-tags-input-B-yNXShn.js → wt-tags-input-CPO80nnI.js} +2 -2
- package/dist/{wt-timepicker-C0hhMn9W.js → wt-timepicker-DbdcOXYa.js} +1 -1
- package/dist/{wt-tree-fxzTZJnC.js → wt-tree-CLs3S4Av.js} +2 -2
- package/dist/{wt-tree-table-Dc3ItaFu.js → wt-tree-table-DtNIE08B.js} +1 -1
- package/dist/{wt-type-extension-value-input-DFCd1Tyn.js → wt-type-extension-value-input-CjJ8_xRU.js} +3 -3
- package/dist/{wt-vidstack-player-iT3S0wnv.js → wt-vidstack-player-DmD7s58v.js} +900 -882
- package/package.json +1 -1
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +47 -3
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/bridgeCustomElements.ts +32 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/copyStyles.ts +18 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.ts +16 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/index.ts +1 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaCollection.ts +13 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaPlayback.ts +22 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaSnapshot.ts +43 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/playbackRetry.ts +81 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/useDocumentPiP.ts +146 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/usePiPResizeObserver.ts +30 -0
- package/src/modules/CallSession/modules/VideoCall/composables/useReceiverLiveStream.ts +64 -0
- package/src/modules/CallSession/modules/VideoCall/types/types.ts +17 -0
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +170 -18
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +3 -1
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/bridgeCustomElements.d.ts +1 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/copyStyles.d.ts +1 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/domTraversal.d.ts +1 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/index.d.ts +1 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaCollection.d.ts +2 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaPlayback.d.ts +3 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/mediaSnapshot.d.ts +16 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/playbackRetry.d.ts +24 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/useDocumentPiP.d.ts +8 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useDocumentPiP/usePiPResizeObserver.d.ts +6 -0
- package/types/modules/CallSession/modules/VideoCall/composables/useReceiverLiveStream.d.ts +49 -0
- package/types/modules/CallSession/modules/VideoCall/types/types.d.ts +14 -0
- package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +6 -4
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
3
|
-
import { T as ua, U as pa, V as ma, X as fa, _ as
|
|
1
|
+
import { defineComponent as ut, inject as se, createElementBlock as yt, openBlock as U, normalizeClass as ie, unref as et, createElementVNode as ht, renderSlot as ft, createVNode as W, computed as Hs, onMounted as Ii, onBeforeUnmount as Vi, createBlock as zt, createCommentVNode as Wt, toDisplayString as Di, createSlots as Fs, withCtx as jt, resolveComponent as Ri, useTemplateRef as Oi, ref as gs, provide as Ni, toRefs as Hi } from "vue";
|
|
2
|
+
import { a as q, c as bt, i as G, b as Ne, d as S, e as lt, f as He, l as N, s as ae, g as Bs, E as Gs, D as L, h as z, o as P, j as Fi, k as f, m as l, n as M, p as Us, q as Bi, r as pe, t as j, V as st, v as w, C as b, S as vt, w as Ot, x as p, y as dt, z as Y, I as Ks, A as Gi, B as Ui, F as at, G as We, H as Qs, J as ys, K as je, L as zs, M as Ct, N as Ye, O as ge, P as Ki, Q as At, R as Qi, U as zi, W as Wi, X as ji, Y as Yi, Z as Xi, _ as Ji, $ as Zi, a0 as ta, a1 as Ws, a2 as T, a3 as I, a4 as ye, a5 as ea, a6 as Nt, a7 as K, a8 as sa, a9 as ia, aa, ab as na, ac as bs, ad as ra, ae as oa, af as v, ag as y, ah as ha, ai as la, T as da, u as ca } from "./useVidstackSrc-C6hUWIuE.js";
|
|
3
|
+
import { T as ua, U as pa, V as ma, X as fa, _ as $t, Q as be, C as Q, Y as ga } from "./install-rysuPEjF.js";
|
|
4
4
|
import { _ as ya } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
|
|
5
|
-
const
|
|
5
|
+
const js = bt();
|
|
6
6
|
function $() {
|
|
7
|
-
return
|
|
7
|
+
return q(js);
|
|
8
8
|
}
|
|
9
|
-
class
|
|
9
|
+
class me {
|
|
10
10
|
#t;
|
|
11
11
|
get length() {
|
|
12
12
|
return this.#t.length;
|
|
13
13
|
}
|
|
14
14
|
constructor(t, e) {
|
|
15
|
-
G(t) ? this.#t = t : !
|
|
15
|
+
G(t) ? this.#t = t : !Ne(t) && !Ne(e) ? this.#t = [[t, e]] : this.#t = [];
|
|
16
16
|
}
|
|
17
17
|
start(t) {
|
|
18
18
|
return this.#t[t][0] ?? 1 / 0;
|
|
@@ -21,7 +21,7 @@ class ce {
|
|
|
21
21
|
return this.#t[t][1] ?? 1 / 0;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function vs(a) {
|
|
25
25
|
if (!a.length) return null;
|
|
26
26
|
let t = a.start(0);
|
|
27
27
|
for (let e = 1; e < a.length; e++) {
|
|
@@ -30,7 +30,7 @@ function fs(a) {
|
|
|
30
30
|
}
|
|
31
31
|
return t;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function kt(a) {
|
|
34
34
|
if (!a.length) return null;
|
|
35
35
|
let t = a.end(0);
|
|
36
36
|
for (let e = 1; e < a.length; e++) {
|
|
@@ -60,34 +60,34 @@ function Ch(a, t) {
|
|
|
60
60
|
e.searchParams.set(s, t[s] + "");
|
|
61
61
|
return e.toString();
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function ne(a, t = "preconnect") {
|
|
64
64
|
const e = document.querySelector(`link[href="${a}"]`);
|
|
65
|
-
if (!
|
|
65
|
+
if (!lt(e)) return !0;
|
|
66
66
|
const s = document.createElement("link");
|
|
67
67
|
return s.rel = t, s.href = a, s.crossOrigin = "true", document.head.append(s), !0;
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const Gt = {};
|
|
70
70
|
function xh(a) {
|
|
71
|
-
if (
|
|
72
|
-
const t =
|
|
73
|
-
if (!
|
|
71
|
+
if (Gt[a]) return Gt[a].promise;
|
|
72
|
+
const t = He(), e = document.querySelector(`script[src="${a}"]`);
|
|
73
|
+
if (!lt(e))
|
|
74
74
|
return t.resolve(), t.promise;
|
|
75
|
-
|
|
75
|
+
Gt[a] = t;
|
|
76
76
|
const s = document.createElement("script");
|
|
77
77
|
return s.src = a, s.onload = () => {
|
|
78
|
-
t.resolve(), delete
|
|
78
|
+
t.resolve(), delete Gt[a];
|
|
79
79
|
}, s.onerror = () => {
|
|
80
|
-
t.reject(), delete
|
|
80
|
+
t.reject(), delete Gt[a];
|
|
81
81
|
}, setTimeout(() => document.head.append(s), 0), t.promise;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Yt(a) {
|
|
84
84
|
return a === "use-credentials" ? "include" : S(a) ? "same-origin" : void 0;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Fe(a, t) {
|
|
87
87
|
return t >= a.startTime && t < a.endTime;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
let s = null, i =
|
|
89
|
+
function ke(a, t, e) {
|
|
90
|
+
let s = null, i = Bs();
|
|
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) {
|
|
@@ -95,8 +95,8 @@ function $e(a, t, e) {
|
|
|
95
95
|
e(null), s = null;
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
o.readyState == 2 ? e(o) : (e(null),
|
|
99
|
-
const h =
|
|
98
|
+
o.readyState == 2 ? e(o) : (e(null), ae(() => {
|
|
99
|
+
const h = N(
|
|
100
100
|
o,
|
|
101
101
|
"load",
|
|
102
102
|
() => {
|
|
@@ -107,10 +107,10 @@ function $e(a, t, e) {
|
|
|
107
107
|
}, i)), s = o;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
return n(),
|
|
110
|
+
return n(), N(a, "mode-change", n);
|
|
111
111
|
}
|
|
112
112
|
function $a(a, t, e) {
|
|
113
|
-
|
|
113
|
+
ke(a, t, (s) => {
|
|
114
114
|
if (!s) {
|
|
115
115
|
e("");
|
|
116
116
|
return;
|
|
@@ -119,7 +119,7 @@ function $a(a, t, e) {
|
|
|
119
119
|
const n = s?.activeCues[0];
|
|
120
120
|
e(n?.text || "");
|
|
121
121
|
};
|
|
122
|
-
i(),
|
|
122
|
+
i(), N(s, "cue-change", i);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
const wa = /* @__PURE__ */ Symbol(0), Ta = /* @__PURE__ */ Symbol(0), ka = /* @__PURE__ */ Symbol(0), Sa = /* @__PURE__ */ Symbol(0), Pa = /* @__PURE__ */ Symbol(0), Ca = /* @__PURE__ */ Symbol(0), xa = /* @__PURE__ */ Symbol(0), k = {
|
|
@@ -131,7 +131,7 @@ const wa = /* @__PURE__ */ Symbol(0), Ta = /* @__PURE__ */ Symbol(0), ka = /* @_
|
|
|
131
131
|
native: Ca,
|
|
132
132
|
nativeHLS: xa
|
|
133
133
|
};
|
|
134
|
-
class
|
|
134
|
+
class ve extends Gs {
|
|
135
135
|
static createId(t) {
|
|
136
136
|
return `vds-${t.type}-${t.kind}-${t.src ?? t.label ?? "?"}`;
|
|
137
137
|
}
|
|
@@ -194,17 +194,17 @@ class ge extends Ns {
|
|
|
194
194
|
addCue(t, e) {
|
|
195
195
|
let s = 0, i = this.#n.length;
|
|
196
196
|
for (s = 0; s < i && !(t.endTime <= this.#n[s].startTime); s++) ;
|
|
197
|
-
s === i ? this.#n.push(t) : this.#n.splice(s, 0, t), t instanceof TextTrackCue || this[k.native]?.track.addCue(t), this.dispatchEvent(new
|
|
197
|
+
s === i ? this.#n.push(t) : this.#n.splice(s, 0, t), t instanceof TextTrackCue || this[k.native]?.track.addCue(t), this.dispatchEvent(new L("add-cue", { detail: t, trigger: e })), Fe(t, this.#e) && this[k.updateActiveCues](this.#e, e);
|
|
198
198
|
}
|
|
199
199
|
removeCue(t, e) {
|
|
200
200
|
const s = this.#n.indexOf(t);
|
|
201
201
|
if (s >= 0) {
|
|
202
202
|
const i = this.#r.includes(t);
|
|
203
|
-
this.#n.splice(s, 1), this[k.native]?.track.removeCue(t), this.dispatchEvent(new
|
|
203
|
+
this.#n.splice(s, 1), this[k.native]?.track.removeCue(t), this.dispatchEvent(new L("remove-cue", { detail: t, trigger: e })), i && this[k.updateActiveCues](this.#e, e);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
setMode(t, e) {
|
|
207
|
-
this.#s !== t && (this.#s = t, t === "disabled" ? (this.#r = [], this.#d()) : this.readyState === 2 ? this[k.updateActiveCues](this.#e, e) : this.#h(), this.dispatchEvent(new
|
|
207
|
+
this.#s !== t && (this.#s = t, t === "disabled" ? (this.#r = [], this.#d()) : this.readyState === 2 ? this[k.updateActiveCues](this.#e, e) : this.#h(), this.dispatchEvent(new L("mode-change", { detail: this, trigger: e })), this[k.onModeChange]?.());
|
|
208
208
|
}
|
|
209
209
|
/** @internal */
|
|
210
210
|
[k.updateActiveCues](t, e) {
|
|
@@ -212,7 +212,7 @@ class ge extends Ns {
|
|
|
212
212
|
const s = [];
|
|
213
213
|
for (let n = 0, r = this.#n.length; n < r; n++) {
|
|
214
214
|
const o = this.#n[n];
|
|
215
|
-
|
|
215
|
+
Fe(o, t) && s.push(o);
|
|
216
216
|
}
|
|
217
217
|
let i = s.length !== this.#r.length;
|
|
218
218
|
if (!i) {
|
|
@@ -237,14 +237,14 @@ class ge extends Ns {
|
|
|
237
237
|
}
|
|
238
238
|
async #h() {
|
|
239
239
|
if (!(!this.#t || this[k.readyState] > 0)) {
|
|
240
|
-
if (this[k.readyState] = 1, this.dispatchEvent(new
|
|
240
|
+
if (this[k.readyState] = 1, this.dispatchEvent(new L("load-start")), !this.src) {
|
|
241
241
|
this.#l();
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
try {
|
|
245
245
|
const { parseResponse: t, VTTCue: e, VTTRegion: s } = await import("./prod-BoQuiIB3.js").then((r) => r.d), i = this[k.crossOrigin]?.(), n = fetch(this.src, {
|
|
246
246
|
headers: this.type === "json" ? { "Content-Type": "application/json" } : void 0,
|
|
247
|
-
credentials:
|
|
247
|
+
credentials: Yt(i)
|
|
248
248
|
});
|
|
249
249
|
if (this.type === "json")
|
|
250
250
|
this.#u(await (await n).text(), e, s);
|
|
@@ -269,11 +269,11 @@ class ge extends Ns {
|
|
|
269
269
|
if (e && !e.managed)
|
|
270
270
|
for (const s of this.#n) e.track.addCue(s);
|
|
271
271
|
}
|
|
272
|
-
const t = new
|
|
272
|
+
const t = new L("load");
|
|
273
273
|
this[k.updateActiveCues](this.#e, t), this.dispatchEvent(t);
|
|
274
274
|
}
|
|
275
275
|
#c(t) {
|
|
276
|
-
this[k.readyState] = 3, this.dispatchEvent(new
|
|
276
|
+
this[k.readyState] = 3, this.dispatchEvent(new L("error", { detail: t }));
|
|
277
277
|
}
|
|
278
278
|
#u(t, e, s) {
|
|
279
279
|
try {
|
|
@@ -284,7 +284,7 @@ class ge extends Ns {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
#d(t) {
|
|
287
|
-
this.dispatchEvent(new
|
|
287
|
+
this.dispatchEvent(new L("cue-change", { trigger: t }));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
const Ea = /captions|subtitles/;
|
|
@@ -306,25 +306,25 @@ const Ma = /* @__PURE__ */ Symbol(0), La = /* @__PURE__ */ Symbol(0), qa = /* @_
|
|
|
306
306
|
onReset: Da,
|
|
307
307
|
onRemove: Ra,
|
|
308
308
|
onUserSelect: Oa
|
|
309
|
-
}, Na = /* @__PURE__ */ Symbol(0), Ha = /* @__PURE__ */ Symbol(0),
|
|
309
|
+
}, Na = /* @__PURE__ */ Symbol(0), Ha = /* @__PURE__ */ Symbol(0), tt = {
|
|
310
310
|
setAuto: Na,
|
|
311
311
|
enableAuto: Ha
|
|
312
312
|
};
|
|
313
|
-
function
|
|
313
|
+
function Le(a) {
|
|
314
314
|
return a instanceof Error ? a : Error(typeof a == "string" ? a : JSON.stringify(a));
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function rt(a, t) {
|
|
317
317
|
if (!a)
|
|
318
318
|
throw Error("Assertion failed.");
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function $s(a, t) {
|
|
321
321
|
const e = t.composedPath()[0];
|
|
322
322
|
return Bi(e) && a.contains(e);
|
|
323
323
|
}
|
|
324
|
-
const
|
|
324
|
+
const Be = /* @__PURE__ */ new Set();
|
|
325
325
|
{
|
|
326
326
|
let a = function() {
|
|
327
|
-
for (const t of
|
|
327
|
+
for (const t of Be)
|
|
328
328
|
try {
|
|
329
329
|
t();
|
|
330
330
|
} catch {
|
|
@@ -334,12 +334,12 @@ const Oe = /* @__PURE__ */ new Set();
|
|
|
334
334
|
a();
|
|
335
335
|
}
|
|
336
336
|
function Fa(a) {
|
|
337
|
-
return
|
|
337
|
+
return Be.add(a), () => Be.delete(a);
|
|
338
338
|
}
|
|
339
339
|
function E(a, t, e) {
|
|
340
340
|
a.hasAttribute(t) || a.setAttribute(t, e);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function wt(a, t) {
|
|
343
343
|
if (a.hasAttribute("aria-label") || a.hasAttribute("data-no-label")) return;
|
|
344
344
|
if (!Fi(t)) {
|
|
345
345
|
f(a, "aria-label", t);
|
|
@@ -350,17 +350,17 @@ function bt(a, t) {
|
|
|
350
350
|
}
|
|
351
351
|
l(e);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ys(a) {
|
|
354
354
|
const t = getComputedStyle(a);
|
|
355
355
|
return t.display !== "none" && parseInt(t.opacity) > 0;
|
|
356
356
|
}
|
|
357
357
|
function Ba(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 }) : Ys(a));
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Xs(a, t) {
|
|
361
361
|
return Fa(() => t(Ba(a)));
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Js(a, t, e) {
|
|
364
364
|
for (; t; ) {
|
|
365
365
|
if (t === a)
|
|
366
366
|
return !0;
|
|
@@ -370,25 +370,25 @@ function Ws(a, t, e) {
|
|
|
370
370
|
}
|
|
371
371
|
return !1;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return new
|
|
373
|
+
function gt(a, t) {
|
|
374
|
+
return new M(a).add("pointerup", (e) => {
|
|
375
375
|
e.button === 0 && !e.defaultPrevented && t(e);
|
|
376
376
|
}).add("keydown", (e) => {
|
|
377
|
-
|
|
377
|
+
Us(e) && t(e);
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function Xe(a) {
|
|
381
|
+
return pe(a) && (a.touches.length > 1 || a.changedTouches.length > 1);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
let t =
|
|
385
|
-
|
|
383
|
+
function ct(a) {
|
|
384
|
+
let t = Bs(), e = window.requestAnimationFrame(() => {
|
|
385
|
+
ae(a, t), e = -1;
|
|
386
386
|
});
|
|
387
387
|
return () => {
|
|
388
388
|
window.cancelAnimationFrame(e);
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Je(a, t, e) {
|
|
392
392
|
let s, i = a, n = a.parentElement, r = a.content.firstElementChild, o = [];
|
|
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++)
|
|
@@ -397,14 +397,14 @@ function We(a, t, e) {
|
|
|
397
397
|
for (let h = 0; h < o.length; h++) o[h].remove();
|
|
398
398
|
}), o;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Zs(a) {
|
|
401
401
|
const t = document.createElement("template");
|
|
402
402
|
return t.innerHTML = a, t.content;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ti(a) {
|
|
405
405
|
return a.cloneNode(!0).firstElementChild;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ei(a, t, e, {
|
|
408
408
|
offsetVarName: s,
|
|
409
409
|
xOffset: i,
|
|
410
410
|
yOffset: n,
|
|
@@ -443,69 +443,69 @@ function Xs(a, t, e, {
|
|
|
443
443
|
function Ga(a) {
|
|
444
444
|
return getComputedStyle(a).animationName !== "none";
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function xt(a) {
|
|
447
447
|
return a instanceof HTMLElement;
|
|
448
448
|
}
|
|
449
449
|
function Ua(a) {
|
|
450
450
|
return a ? "true" : "false";
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function H(a) {
|
|
453
453
|
return () => Ua(a());
|
|
454
454
|
}
|
|
455
455
|
function Ka() {
|
|
456
456
|
return typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function D(a, t = 2) {
|
|
459
459
|
return Number(a.toFixed(t));
|
|
460
460
|
}
|
|
461
461
|
function Qa(a) {
|
|
462
462
|
return String(a).split(".")[1]?.length ?? 0;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Ze(a, t, e) {
|
|
465
465
|
return Math.max(a, Math.min(e, t));
|
|
466
466
|
}
|
|
467
|
-
let
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}),
|
|
471
|
-
a.metaKey || a.altKey || a.ctrlKey ||
|
|
467
|
+
let $e = w(!1);
|
|
468
|
+
N(document, "pointerdown", () => {
|
|
469
|
+
$e.set(!1);
|
|
470
|
+
}), N(document, "keydown", (a) => {
|
|
471
|
+
a.metaKey || a.altKey || a.ctrlKey || $e.set(!0);
|
|
472
472
|
});
|
|
473
|
-
class
|
|
473
|
+
class it extends st {
|
|
474
474
|
#t = w(!1);
|
|
475
475
|
onConnect(t) {
|
|
476
476
|
l(() => {
|
|
477
|
-
const e = new
|
|
478
|
-
if (
|
|
479
|
-
this.#t.set(!1),
|
|
477
|
+
const e = new M(t);
|
|
478
|
+
if (!$e()) {
|
|
479
|
+
this.#t.set(!1), ce(t, !1), e.add("pointerenter", this.#i.bind(this)).add("pointerleave", this.#a.bind(this));
|
|
480
480
|
return;
|
|
481
481
|
}
|
|
482
482
|
const s = document.activeElement === t;
|
|
483
|
-
this.#t.set(s),
|
|
483
|
+
this.#t.set(s), ce(t, s), e.add("focus", this.#e.bind(this)).add("blur", this.#s.bind(this));
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
focused() {
|
|
487
487
|
return this.#t();
|
|
488
488
|
}
|
|
489
489
|
#e() {
|
|
490
|
-
this.#t.set(!0),
|
|
490
|
+
this.#t.set(!0), ce(this.el, !0);
|
|
491
491
|
}
|
|
492
492
|
#s() {
|
|
493
|
-
this.#t.set(!1),
|
|
493
|
+
this.#t.set(!1), ce(this.el, !1);
|
|
494
494
|
}
|
|
495
495
|
#i() {
|
|
496
|
-
|
|
496
|
+
ws(this.el, !0);
|
|
497
497
|
}
|
|
498
498
|
#a() {
|
|
499
|
-
|
|
499
|
+
ws(this.el, !1);
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function ce(a, t) {
|
|
503
503
|
f(a, "data-focus", t), f(a, "data-hocus", t);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function ws(a, t) {
|
|
506
506
|
f(a, "data-hocus", t), f(a, "data-hover", t);
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class si extends Gs {
|
|
509
509
|
items = [];
|
|
510
510
|
/** @internal */
|
|
511
511
|
[x.readonly] = !1;
|
|
@@ -543,12 +543,12 @@ class Js extends Ns {
|
|
|
543
543
|
get() {
|
|
544
544
|
return this.items[s];
|
|
545
545
|
}
|
|
546
|
-
}), !this.items.includes(t) && (this.items.push(t), this.dispatchEvent(new
|
|
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
|
[x.remove](t, e) {
|
|
550
550
|
const s = this.items.indexOf(t);
|
|
551
|
-
s >= 0 && (this[x.onRemove]?.(t, e), this.items.splice(s, 1), this.dispatchEvent(new
|
|
551
|
+
s >= 0 && (this[x.onRemove]?.(t, e), this.items.splice(s, 1), this.dispatchEvent(new L("remove", { detail: t, trigger: e })));
|
|
552
552
|
}
|
|
553
553
|
/** @internal */
|
|
554
554
|
[x.reset](t) {
|
|
@@ -557,11 +557,11 @@ class Js extends Ns {
|
|
|
557
557
|
}
|
|
558
558
|
/** @internal */
|
|
559
559
|
[x.setReadonly](t, e) {
|
|
560
|
-
this[x.readonly] !== t && (this[x.readonly] = t, this.dispatchEvent(new
|
|
560
|
+
this[x.readonly] !== t && (this[x.readonly] = t, this.dispatchEvent(new L("readonly-change", { detail: t, trigger: e })));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
const
|
|
564
|
-
class za extends
|
|
563
|
+
const Ge = Ct.fullscreenEnabled;
|
|
564
|
+
class za extends st {
|
|
565
565
|
/**
|
|
566
566
|
* Tracks whether we're the active fullscreen event listener. Fullscreen events can only be
|
|
567
567
|
* listened to globally on the document so we need to know if they relate to the current host
|
|
@@ -573,16 +573,16 @@ class za extends tt {
|
|
|
573
573
|
return this.#e;
|
|
574
574
|
}
|
|
575
575
|
get supported() {
|
|
576
|
-
return
|
|
576
|
+
return Ge;
|
|
577
577
|
}
|
|
578
578
|
onConnect() {
|
|
579
|
-
new
|
|
579
|
+
new M(Ct).add("fullscreenchange", this.#i.bind(this)).add("fullscreenerror", this.#a.bind(this)), P(this.#s.bind(this));
|
|
580
580
|
}
|
|
581
581
|
async #s() {
|
|
582
|
-
|
|
582
|
+
Ge && await this.exit();
|
|
583
583
|
}
|
|
584
584
|
#i(t) {
|
|
585
|
-
const e =
|
|
585
|
+
const e = qe(this.el);
|
|
586
586
|
e !== this.#e && (e || (this.#t = !1), this.#e = e, this.dispatch("fullscreen-change", { detail: e, trigger: t }));
|
|
587
587
|
}
|
|
588
588
|
#a(t) {
|
|
@@ -590,34 +590,34 @@ class za extends tt {
|
|
|
590
590
|
}
|
|
591
591
|
async enter() {
|
|
592
592
|
try {
|
|
593
|
-
return this.#t = !0, !this.el ||
|
|
593
|
+
return this.#t = !0, !this.el || qe(this.el) ? void 0 : (Ts(), Ct.requestFullscreen(this.el));
|
|
594
594
|
} catch (t) {
|
|
595
595
|
throw this.#t = !1, t;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
async exit() {
|
|
599
|
-
if (!(!this.el || !
|
|
600
|
-
return
|
|
599
|
+
if (!(!this.el || !qe(this.el)))
|
|
600
|
+
return Ts(), Ct.exitFullscreen();
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
if (
|
|
603
|
+
function qe(a) {
|
|
604
|
+
if (Ct.fullscreenElement === a) return !0;
|
|
605
605
|
try {
|
|
606
606
|
return a.matches(
|
|
607
607
|
// @ts-expect-error - `fullscreenPseudoClass` is missing from `@types/fscreen`.
|
|
608
|
-
|
|
608
|
+
Ct.fullscreenPseudoClass
|
|
609
609
|
);
|
|
610
610
|
} catch {
|
|
611
611
|
return !1;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
if (!
|
|
614
|
+
function Ts() {
|
|
615
|
+
if (!Ge)
|
|
616
616
|
throw Error(
|
|
617
617
|
"[vidstack] no fullscreen API"
|
|
618
618
|
);
|
|
619
619
|
}
|
|
620
|
-
class
|
|
620
|
+
class Se extends st {
|
|
621
621
|
#t = w(this.#r());
|
|
622
622
|
#e = w(!1);
|
|
623
623
|
#s;
|
|
@@ -660,16 +660,16 @@ class we extends tt {
|
|
|
660
660
|
/**
|
|
661
661
|
* Whether the native Screen Orientation API is available.
|
|
662
662
|
*/
|
|
663
|
-
static supported =
|
|
663
|
+
static supported = zs();
|
|
664
664
|
/**
|
|
665
665
|
* Whether the native Screen Orientation API is available.
|
|
666
666
|
*/
|
|
667
667
|
get supported() {
|
|
668
|
-
return
|
|
668
|
+
return Se.supported;
|
|
669
669
|
}
|
|
670
670
|
onConnect() {
|
|
671
671
|
if (this.supported)
|
|
672
|
-
|
|
672
|
+
N(screen.orientation, "change", this.#a.bind(this));
|
|
673
673
|
else {
|
|
674
674
|
const t = window.matchMedia("(orientation: landscape)");
|
|
675
675
|
t.onchange = this.#a.bind(this), P(() => t.onchange = null);
|
|
@@ -721,10 +721,10 @@ class we extends tt {
|
|
|
721
721
|
return this.supported ? window.screen.orientation.type : window.innerWidth >= window.innerHeight ? "landscape-primary" : "portrait-primary";
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Ue(a) {
|
|
725
725
|
return !S(a) && "width" in a && "height" in a && z(a.width) && z(a.height);
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const ii = new vt({
|
|
728
728
|
artist: "",
|
|
729
729
|
artwork: null,
|
|
730
730
|
audioTrack: null,
|
|
@@ -732,18 +732,18 @@ const Zs = new gt({
|
|
|
732
732
|
autoPlay: !1,
|
|
733
733
|
autoPlayError: null,
|
|
734
734
|
audioGain: null,
|
|
735
|
-
buffered: new
|
|
735
|
+
buffered: new me(),
|
|
736
736
|
canLoad: !1,
|
|
737
737
|
canLoadPoster: !1,
|
|
738
738
|
canFullscreen: !1,
|
|
739
|
-
canOrientScreen:
|
|
739
|
+
canOrientScreen: zs(),
|
|
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 Ks && this.mediaType === "video" && (!this.playsInline || !Ct.fullscreenEnabled && this.fullscreen);
|
|
747
747
|
},
|
|
748
748
|
get nativeControls() {
|
|
749
749
|
return this.controls || this.iOSControls;
|
|
@@ -763,7 +763,7 @@ const Zs = new gt({
|
|
|
763
763
|
mediaType: "unknown",
|
|
764
764
|
muted: !1,
|
|
765
765
|
paused: !0,
|
|
766
|
-
played: new
|
|
766
|
+
played: new me(),
|
|
767
767
|
playing: !1,
|
|
768
768
|
playsInline: !1,
|
|
769
769
|
pictureInPicture: !1,
|
|
@@ -776,7 +776,7 @@ const Zs = new gt({
|
|
|
776
776
|
canSetPlaybackRate: !0,
|
|
777
777
|
canSetVolume: !1,
|
|
778
778
|
canSetAudioGain: !1,
|
|
779
|
-
seekable: new
|
|
779
|
+
seekable: new me(),
|
|
780
780
|
seeking: !1,
|
|
781
781
|
source: { src: "", type: "" },
|
|
782
782
|
sources: [],
|
|
@@ -813,11 +813,11 @@ const Zs = new gt({
|
|
|
813
813
|
return this.source;
|
|
814
814
|
},
|
|
815
815
|
get bufferedStart() {
|
|
816
|
-
const a =
|
|
816
|
+
const a = vs(this.buffered) ?? 0;
|
|
817
817
|
return Math.max(a, this.clipStartTime);
|
|
818
818
|
},
|
|
819
819
|
get bufferedEnd() {
|
|
820
|
-
const a =
|
|
820
|
+
const a = kt(this.buffered) ?? 0;
|
|
821
821
|
return Math.min(this.seekableEnd, Math.max(0, a - this.clipStartTime));
|
|
822
822
|
},
|
|
823
823
|
get bufferedWindow() {
|
|
@@ -826,12 +826,12 @@ const Zs = new gt({
|
|
|
826
826
|
get seekableStart() {
|
|
827
827
|
if (this.isLiveDVR && this.liveDVRWindow > 0)
|
|
828
828
|
return Math.max(0, this.seekableEnd - this.liveDVRWindow);
|
|
829
|
-
const a =
|
|
829
|
+
const a = vs(this.seekable) ?? 0;
|
|
830
830
|
return Math.max(a, this.clipStartTime);
|
|
831
831
|
},
|
|
832
832
|
get seekableEnd() {
|
|
833
833
|
if (this.providedDuration > 0) return this.providedDuration;
|
|
834
|
-
const a = this.liveSyncPosition > 0 ? this.liveSyncPosition : this.canPlay ?
|
|
834
|
+
const a = this.liveSyncPosition > 0 ? this.liveSyncPosition : this.canPlay ? kt(this.seekable) ?? 1 / 0 : 0;
|
|
835
835
|
return this.clipEndTime > 0 ? Math.min(this.clipEndTime, a) : a;
|
|
836
836
|
},
|
|
837
837
|
get seekableWindow() {
|
|
@@ -900,7 +900,7 @@ const Zs = new gt({
|
|
|
900
900
|
liveSyncPosition: null,
|
|
901
901
|
inferredLiveDVRWindow: 0,
|
|
902
902
|
savedState: null
|
|
903
|
-
}),
|
|
903
|
+
}), ai = /* @__PURE__ */ new Set([
|
|
904
904
|
"autoPlayError",
|
|
905
905
|
"autoPlaying",
|
|
906
906
|
"buffered",
|
|
@@ -913,7 +913,7 @@ const Zs = new gt({
|
|
|
913
913
|
"seeking",
|
|
914
914
|
"waiting"
|
|
915
915
|
]), Wa = /* @__PURE__ */ new Set([
|
|
916
|
-
...
|
|
916
|
+
...ai,
|
|
917
917
|
"ended",
|
|
918
918
|
"inferredPoster",
|
|
919
919
|
"inferredStreamType",
|
|
@@ -926,11 +926,11 @@ const Zs = new gt({
|
|
|
926
926
|
"started",
|
|
927
927
|
"userBehindLiveEdge"
|
|
928
928
|
]);
|
|
929
|
-
function
|
|
930
|
-
const e = t ?
|
|
931
|
-
|
|
929
|
+
function ks(a, t = !1) {
|
|
930
|
+
const e = t ? ai : Wa;
|
|
931
|
+
ii.reset(a, (s) => e.has(s)), dt();
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function ni(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
|
}
|
|
@@ -966,7 +966,7 @@ class ja {
|
|
|
966
966
|
*/
|
|
967
967
|
getPlayer(t) {
|
|
968
968
|
return this.#e ? this.#e : ((t ?? this.#t)?.dispatchEvent(
|
|
969
|
-
new
|
|
969
|
+
new L("find-media-player", {
|
|
970
970
|
detail: (e) => {
|
|
971
971
|
this.#e = e;
|
|
972
972
|
},
|
|
@@ -1327,7 +1327,7 @@ class ja {
|
|
|
1327
1327
|
this.#a("media-user-loop-change-request", e, t);
|
|
1328
1328
|
}
|
|
1329
1329
|
#a(t, e, s) {
|
|
1330
|
-
const i = new
|
|
1330
|
+
const i = new L(t, {
|
|
1331
1331
|
bubbles: !0,
|
|
1332
1332
|
composed: !0,
|
|
1333
1333
|
cancelable: !0,
|
|
@@ -1421,15 +1421,15 @@ class Ya {
|
|
|
1421
1421
|
const t = JSON.stringify({ ...this.#t, time: void 0 });
|
|
1422
1422
|
localStorage.setItem(this.playerId, t);
|
|
1423
1423
|
}
|
|
1424
|
-
saveTimeThrottled =
|
|
1424
|
+
saveTimeThrottled = At(this.saveTime.bind(this), 1e3);
|
|
1425
1425
|
saveTime() {
|
|
1426
1426
|
if (!this.mediaId) return;
|
|
1427
1427
|
const t = (this.#t.time ?? 0).toString();
|
|
1428
1428
|
localStorage.setItem(this.mediaId, t);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
const
|
|
1432
|
-
class
|
|
1431
|
+
const Ut = /* @__PURE__ */ Symbol(0);
|
|
1432
|
+
class ri extends si {
|
|
1433
1433
|
get selected() {
|
|
1434
1434
|
return this.items.find((t) => t.selected) ?? null;
|
|
1435
1435
|
}
|
|
@@ -1442,9 +1442,9 @@ class si extends Js {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
/** @internal */
|
|
1444
1444
|
[x.add](t, e) {
|
|
1445
|
-
t[
|
|
1445
|
+
t[Ut] = !1, Object.defineProperty(t, "selected", {
|
|
1446
1446
|
get() {
|
|
1447
|
-
return this[
|
|
1447
|
+
return this[Ut];
|
|
1448
1448
|
},
|
|
1449
1449
|
set: (s) => {
|
|
1450
1450
|
this.readonly || (this[x.onUserSelect]?.(), this[x.select](t, s));
|
|
@@ -1453,10 +1453,10 @@ class si extends Js {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
/** @internal */
|
|
1455
1455
|
[x.select](t, e, s) {
|
|
1456
|
-
if (e === t?.[
|
|
1456
|
+
if (e === t?.[Ut]) return;
|
|
1457
1457
|
const i = this.selected;
|
|
1458
|
-
t && (t[
|
|
1459
|
-
new
|
|
1458
|
+
t && (t[Ut] = e), (e ? i !== t : i === t) && (i && (i[Ut] = !1), this.dispatchEvent(
|
|
1459
|
+
new L("change", {
|
|
1460
1460
|
detail: {
|
|
1461
1461
|
prev: i,
|
|
1462
1462
|
current: this.selected
|
|
@@ -1466,7 +1466,7 @@ class si extends Js {
|
|
|
1466
1466
|
));
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class Xa extends
|
|
1469
|
+
class Xa extends ri {
|
|
1470
1470
|
}
|
|
1471
1471
|
class Ja {
|
|
1472
1472
|
priority = 0;
|
|
@@ -1501,7 +1501,7 @@ class Ja {
|
|
|
1501
1501
|
#a(t) {
|
|
1502
1502
|
if (!this.#e) return;
|
|
1503
1503
|
const e = t[k.native] ??= this.#n(t);
|
|
1504
|
-
|
|
1504
|
+
xt(e) && (this.#e.append(e), e.track.mode = e.default ? "showing" : "disabled");
|
|
1505
1505
|
}
|
|
1506
1506
|
#n(t) {
|
|
1507
1507
|
const e = document.createElement("track"), s = t.default || t.mode === "showing", i = t.src && t.type === "vtt";
|
|
@@ -1535,17 +1535,17 @@ class Za {
|
|
|
1535
1535
|
constructor(t) {
|
|
1536
1536
|
this.#i = t;
|
|
1537
1537
|
const e = t.textTracks;
|
|
1538
|
-
this.#e = e, l(this.#o.bind(this)), P(this.#p.bind(this)), new
|
|
1538
|
+
this.#e = e, l(this.#o.bind(this)), P(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;
|
|
1542
1542
|
this.#a = t(), this.#d();
|
|
1543
1543
|
}
|
|
1544
1544
|
add(t) {
|
|
1545
|
-
this.#s.push(t),
|
|
1545
|
+
this.#s.push(t), ge(this.#d.bind(this));
|
|
1546
1546
|
}
|
|
1547
1547
|
remove(t) {
|
|
1548
|
-
t.detach(), this.#s.splice(this.#s.indexOf(t), 1),
|
|
1548
|
+
t.detach(), this.#s.splice(this.#s.indexOf(t), 1), ge(this.#d.bind(this));
|
|
1549
1549
|
}
|
|
1550
1550
|
/** @internal */
|
|
1551
1551
|
attachVideo(t) {
|
|
@@ -1586,7 +1586,7 @@ class Za {
|
|
|
1586
1586
|
this.#n?.detach(), this.#n = null, this.#r?.detach(), this.#r = null;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
class tn extends
|
|
1589
|
+
class tn extends si {
|
|
1590
1590
|
#t = !1;
|
|
1591
1591
|
#e = {};
|
|
1592
1592
|
#s = null;
|
|
@@ -1610,7 +1610,7 @@ class tn extends Js {
|
|
|
1610
1610
|
this.#i = t, this.#l(t);
|
|
1611
1611
|
}
|
|
1612
1612
|
add(t, e) {
|
|
1613
|
-
const s = t instanceof
|
|
1613
|
+
const s = t instanceof ve, i = s ? t : new ve(t), n = t.kind === "captions" || t.kind === "subtitles" ? "captions" : t.kind;
|
|
1614
1614
|
return this.#e[n] && t.default && delete t.default, i.addEventListener("mode-change", this.#r), this[x.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) {
|
|
@@ -1633,7 +1633,7 @@ class tn extends Js {
|
|
|
1633
1633
|
this.#t = !0, this.#a();
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
|
-
#a =
|
|
1636
|
+
#a = Ye(async () => {
|
|
1637
1637
|
if (!this.#t) return;
|
|
1638
1638
|
!this.#i && this.#s && (this.#i = await this.#s.getLang());
|
|
1639
1639
|
const t = await this.#s?.getCaptions(), e = [
|
|
@@ -1659,7 +1659,7 @@ class tn extends Js {
|
|
|
1659
1659
|
i.mode === "showing" && i != e && s.includes(i.kind) && (i.mode = "disabled");
|
|
1660
1660
|
}
|
|
1661
1661
|
this.dispatchEvent(
|
|
1662
|
-
new
|
|
1662
|
+
new L("mode-change", {
|
|
1663
1663
|
detail: t.detail,
|
|
1664
1664
|
trigger: t
|
|
1665
1665
|
})
|
|
@@ -1675,7 +1675,7 @@ class tn extends Js {
|
|
|
1675
1675
|
this.#s = t;
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
class en extends
|
|
1678
|
+
class en extends ri {
|
|
1679
1679
|
#t = !1;
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Configures quality switching:
|
|
@@ -1700,29 +1700,29 @@ class en extends si {
|
|
|
1700
1700
|
return this.#t || this.readonly;
|
|
1701
1701
|
}
|
|
1702
1702
|
/** @internal */
|
|
1703
|
-
[
|
|
1703
|
+
[tt.enableAuto];
|
|
1704
1704
|
/** @internal */
|
|
1705
1705
|
[x.onUserSelect]() {
|
|
1706
|
-
this[
|
|
1706
|
+
this[tt.setAuto](!1);
|
|
1707
1707
|
}
|
|
1708
1708
|
/** @internal */
|
|
1709
1709
|
[x.onReset](t) {
|
|
1710
|
-
this[
|
|
1710
|
+
this[tt.enableAuto] = void 0, this[tt.setAuto](!1, t);
|
|
1711
1711
|
}
|
|
1712
1712
|
/**
|
|
1713
1713
|
* Request automatic quality selection (if supported). This will be a no-op if the list is
|
|
1714
1714
|
* `readonly` as that already implies auto-selection.
|
|
1715
1715
|
*/
|
|
1716
1716
|
autoSelect(t) {
|
|
1717
|
-
this.readonly || this.#t || !this[
|
|
1717
|
+
this.readonly || this.#t || !this[tt.enableAuto] || (this[tt.enableAuto]?.(t), this[tt.setAuto](!0, t));
|
|
1718
1718
|
}
|
|
1719
1719
|
getBySrc(t) {
|
|
1720
1720
|
return this.items.find((e) => e.src === t);
|
|
1721
1721
|
}
|
|
1722
1722
|
/** @internal */
|
|
1723
|
-
[
|
|
1723
|
+
[tt.setAuto](t, e) {
|
|
1724
1724
|
this.#t !== t && (this.#t = t, this.dispatchEvent(
|
|
1725
|
-
new
|
|
1725
|
+
new L("auto-change", {
|
|
1726
1726
|
detail: t,
|
|
1727
1727
|
trigger: e
|
|
1728
1728
|
})
|
|
@@ -1738,7 +1738,7 @@ function an(a) {
|
|
|
1738
1738
|
function nn(a) {
|
|
1739
1739
|
return sn(a) || an(a);
|
|
1740
1740
|
}
|
|
1741
|
-
class
|
|
1741
|
+
class Mt extends st {
|
|
1742
1742
|
}
|
|
1743
1743
|
const rn = {
|
|
1744
1744
|
togglePaused: "k Space",
|
|
@@ -1752,8 +1752,8 @@ const rn = {
|
|
|
1752
1752
|
volumeDown: "ArrowDown",
|
|
1753
1753
|
speedUp: ">",
|
|
1754
1754
|
slowDown: "<"
|
|
1755
|
-
},
|
|
1756
|
-
class hn extends
|
|
1755
|
+
}, Qt = /* @__PURE__ */ new Set(["Shift", "Alt", "Meta", "Ctrl"]), on = 'button, [role="button"]', Ss = 'input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]';
|
|
1756
|
+
class hn extends Mt {
|
|
1757
1757
|
#t;
|
|
1758
1758
|
constructor(t) {
|
|
1759
1759
|
super(), this.#t = t;
|
|
@@ -1765,18 +1765,18 @@ class hn extends xt {
|
|
|
1765
1765
|
const { keyDisabled: t, keyTarget: e } = this.$props;
|
|
1766
1766
|
if (t()) return;
|
|
1767
1767
|
const s = e() === "player" ? this.el : document, i = w(!1);
|
|
1768
|
-
s === this.el ? new
|
|
1768
|
+
s === this.el ? new M(this.el).add("focusin", () => i.set(!0)).add("focusout", (n) => {
|
|
1769
1769
|
this.el.contains(n.target) || i.set(!1);
|
|
1770
|
-
}) : (p(i) || i.set(document.querySelector("[data-media-player]") === this.el),
|
|
1770
|
+
}) : (p(i) || i.set(document.querySelector("[data-media-player]") === this.el), N(document, "focusin", (n) => {
|
|
1771
1771
|
const r = n.composedPath().find((o) => o instanceof Element && o.localName === "media-player");
|
|
1772
1772
|
r !== void 0 && i.set(this.el === r);
|
|
1773
1773
|
})), l(() => {
|
|
1774
|
-
i() && new
|
|
1774
|
+
i() && new M(s).add("keyup", this.#s.bind(this)).add("keydown", this.#i.bind(this)).add("keydown", this.#a.bind(this), { capture: !0 });
|
|
1775
1775
|
});
|
|
1776
1776
|
}
|
|
1777
1777
|
#s(t) {
|
|
1778
1778
|
const e = document.activeElement;
|
|
1779
|
-
if (!t.key || !this.$state.canSeek() || e?.matches(
|
|
1779
|
+
if (!t.key || !this.$state.canSeek() || e?.matches(Ss))
|
|
1780
1780
|
return;
|
|
1781
1781
|
let { method: s, value: i } = this.#n(t);
|
|
1782
1782
|
if (!S(i) && !G(i)) {
|
|
@@ -1796,9 +1796,9 @@ class hn extends xt {
|
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
1798
|
#i(t) {
|
|
1799
|
-
if (!t.key ||
|
|
1799
|
+
if (!t.key || Qt.has(t.key)) return;
|
|
1800
1800
|
const e = document.activeElement;
|
|
1801
|
-
if (e?.matches(
|
|
1801
|
+
if (e?.matches(Ss) || Us(t) && e?.matches(on))
|
|
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) && !G(i) && !n) {
|
|
@@ -1870,13 +1870,13 @@ class hn extends xt {
|
|
|
1870
1870
|
return (G(r) ? r : r?.split(" "))?.map(
|
|
1871
1871
|
(h) => dn(h).replace(/Control/g, "Ctrl").split("+")
|
|
1872
1872
|
)?.some((h) => {
|
|
1873
|
-
const d = new Set(h.filter((c) =>
|
|
1874
|
-
for (const c of
|
|
1873
|
+
const d = new Set(h.filter((c) => Qt.has(c)));
|
|
1874
|
+
for (const c of Qt) {
|
|
1875
1875
|
const u = c.toLowerCase() + "Key";
|
|
1876
1876
|
if (!d.has(c) && t[u])
|
|
1877
1877
|
return !1;
|
|
1878
1878
|
}
|
|
1879
|
-
return h.every((c) =>
|
|
1879
|
+
return h.every((c) => Qt.has(c) ? t[c.toLowerCase() + "Key"] : t.key === c.replace("Space", " "));
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
1882
|
return {
|
|
@@ -1914,12 +1914,12 @@ function dn(a) {
|
|
|
1914
1914
|
return a.replace(/Shift\+(\d)/g, (t, e) => ln[e - 1]);
|
|
1915
1915
|
}
|
|
1916
1916
|
function cn(a) {
|
|
1917
|
-
for (const t of
|
|
1917
|
+
for (const t of Qt)
|
|
1918
1918
|
if (a[t.toLowerCase() + "Key"])
|
|
1919
1919
|
return !0;
|
|
1920
1920
|
return !1;
|
|
1921
1921
|
}
|
|
1922
|
-
class un extends
|
|
1922
|
+
class un extends Mt {
|
|
1923
1923
|
#t = -2;
|
|
1924
1924
|
#e = !1;
|
|
1925
1925
|
#s = w(!1);
|
|
@@ -1995,13 +1995,13 @@ class un extends xt {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
l(this.#o.bind(this)), l(this.#h.bind(this));
|
|
1997
1997
|
const e = this.#l.bind(this), s = this.#c.bind(this), i = this.#u.bind(this);
|
|
1998
|
-
new
|
|
1998
|
+
new M(this.el).add("can-play", (n) => this.show(0, n)).add("play", e).add("pause", s).add("end", i).add("auto-play-fail", s);
|
|
1999
1999
|
}
|
|
2000
2000
|
#o() {
|
|
2001
2001
|
if (!this.el) return;
|
|
2002
2002
|
const { started: t, pointer: e, paused: s } = this.$state;
|
|
2003
2003
|
if (!t() || e() !== "fine") return;
|
|
2004
|
-
const i = new
|
|
2004
|
+
const i = new M(this.el), n = this.hideOnMouseLeave;
|
|
2005
2005
|
(!n || !this.#i()) && l(() => {
|
|
2006
2006
|
s() || i.add("pointermove", this.#y.bind(this));
|
|
2007
2007
|
}), n && i.add("mouseenter", this.#d.bind(this)).add("mouseleave", this.#p.bind(this));
|
|
@@ -2012,7 +2012,7 @@ class un extends xt {
|
|
|
2012
2012
|
const i = this.#y.bind(this);
|
|
2013
2013
|
l(() => {
|
|
2014
2014
|
if (!this.el) return;
|
|
2015
|
-
const n = this.$state.pointer(), r = n === "coarse", o = new
|
|
2015
|
+
const n = this.$state.pointer(), r = n === "coarse", o = new M(this.el), h = [r ? "touchend" : "pointerup", "keydown"];
|
|
2016
2016
|
for (const d of h)
|
|
2017
2017
|
o.add(d, i, { passive: !1 });
|
|
2018
2018
|
});
|
|
@@ -2038,7 +2038,7 @@ class un extends xt {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
#y(t) {
|
|
2040
2040
|
// @ts-expect-error
|
|
2041
|
-
t.MEDIA_GESTURE || this.#e ||
|
|
2041
|
+
t.MEDIA_GESTURE || this.#e || Xe(t) || (Ws(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,10 +2070,10 @@ class pn {
|
|
|
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-BML-tyCz.js")).AudioProvider(this.target, t);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
|
-
class
|
|
2076
|
+
class ts {
|
|
2077
2077
|
name = "video";
|
|
2078
2078
|
target;
|
|
2079
2079
|
canPlay(t) {
|
|
@@ -2083,27 +2083,27 @@ class Ye {
|
|
|
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-D6tVAa-p.js")).VideoProvider(this.target, t);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
|
-
class
|
|
2090
|
-
static supported =
|
|
2089
|
+
class es extends ts {
|
|
2090
|
+
static supported = Qs();
|
|
2091
2091
|
name = "hls";
|
|
2092
2092
|
canPlay(t) {
|
|
2093
|
-
return
|
|
2093
|
+
return es.supported && We(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
async load(t) {
|
|
2096
|
-
return new (await import("./vidstack-hls-
|
|
2096
|
+
return new (await import("./vidstack-hls-BgbWYqKl.js")).HLSProvider(this.target, t);
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
class
|
|
2099
|
+
class ss extends ts {
|
|
2100
2100
|
static supported = ta();
|
|
2101
2101
|
name = "dash";
|
|
2102
2102
|
canPlay(t) {
|
|
2103
|
-
return
|
|
2103
|
+
return ss.supported && je(t);
|
|
2104
2104
|
}
|
|
2105
2105
|
async load(t) {
|
|
2106
|
-
return new (await import("./vidstack-dash-
|
|
2106
|
+
return new (await import("./vidstack-dash-BwVTHD5j.js")).DASHProvider(this.target, t);
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
class mn {
|
|
@@ -2116,7 +2116,7 @@ class mn {
|
|
|
2116
2116
|
"https://fresnel.vimeocdn.com"
|
|
2117
2117
|
];
|
|
2118
2118
|
for (const e of t)
|
|
2119
|
-
|
|
2119
|
+
ne(e);
|
|
2120
2120
|
}
|
|
2121
2121
|
canPlay(t) {
|
|
2122
2122
|
return S(t.src) && t.type === "video/vimeo";
|
|
@@ -2125,7 +2125,7 @@ class mn {
|
|
|
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-CMino7JB.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");
|
|
@@ -2148,7 +2148,7 @@ class fn {
|
|
|
2148
2148
|
"https://static.doubleclick.net"
|
|
2149
2149
|
];
|
|
2150
2150
|
for (const e of t)
|
|
2151
|
-
|
|
2151
|
+
ne(e);
|
|
2152
2152
|
}
|
|
2153
2153
|
canPlay(t) {
|
|
2154
2154
|
return S(t.src) && t.type === "video/youtube";
|
|
@@ -2157,14 +2157,14 @@ class fn {
|
|
|
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-DLE3pyNu.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);
|
|
2164
2164
|
return r ? i(r, s) : null;
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
|
-
const
|
|
2167
|
+
const _e = /* @__PURE__ */ Symbol(0), gn = [
|
|
2168
2168
|
"autoPlay",
|
|
2169
2169
|
"canAirPlay",
|
|
2170
2170
|
"canFullscreen",
|
|
@@ -2234,7 +2234,7 @@ const Ae = /* @__PURE__ */ Symbol(0), gn = [
|
|
|
2234
2234
|
keyShortcuts: rn,
|
|
2235
2235
|
storage: null
|
|
2236
2236
|
};
|
|
2237
|
-
class
|
|
2237
|
+
class Ps extends Mt {
|
|
2238
2238
|
#t;
|
|
2239
2239
|
#e;
|
|
2240
2240
|
constructor(t, e) {
|
|
@@ -2262,14 +2262,14 @@ class bn {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
notify(t, ...e) {
|
|
2264
2264
|
this.#t(
|
|
2265
|
-
new
|
|
2265
|
+
new L(t, {
|
|
2266
2266
|
detail: e?.[0],
|
|
2267
2267
|
trigger: e?.[1]
|
|
2268
2268
|
})
|
|
2269
2269
|
);
|
|
2270
2270
|
}
|
|
2271
2271
|
async ready(t, e) {
|
|
2272
|
-
return
|
|
2272
|
+
return ge(async () => {
|
|
2273
2273
|
const { logger: s } = this.#e, {
|
|
2274
2274
|
autoPlay: i,
|
|
2275
2275
|
canPlay: n,
|
|
@@ -2289,25 +2289,25 @@ class bn {
|
|
|
2289
2289
|
buffered: t?.buffered ?? d(),
|
|
2290
2290
|
provider: this.#e.$provider()
|
|
2291
2291
|
};
|
|
2292
|
-
this.notify("can-play", C, e),
|
|
2293
|
-
let
|
|
2294
|
-
await
|
|
2295
|
-
const qi = m()?.currentTime,
|
|
2296
|
-
if (
|
|
2297
|
-
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2292
|
+
this.notify("can-play", C, e), dt();
|
|
2293
|
+
let _ = this.#e.$provider(), { storage: J, qualities: V } = this.#e, { muted: Z, volume: nt, clipStartTime: Ae, playbackRate: le } = this.#e.$props;
|
|
2294
|
+
await J?.onLoad?.(g());
|
|
2295
|
+
const qi = m()?.currentTime, us = m()?.paused, Me = await J?.getTime(), ps = qi ?? Me ?? Ae(), _i = us === !1 || us !== !0 && !r() && i();
|
|
2296
|
+
if (_) {
|
|
2297
|
+
_.setVolume(await J?.getVolume() ?? nt()), _.setMuted(Z() || !!await J?.getMuted());
|
|
2298
|
+
const _t = await J?.getAudioGain() ?? 1;
|
|
2299
|
+
_t > 1 && _.audioGain?.setGain?.(_t), _.setPlaybackRate?.(await J?.getPlaybackRate() ?? le()), _.setPlaysInline?.(u()), ps > 0 && _.setCurrentTime(ps);
|
|
2300
2300
|
}
|
|
2301
|
-
const
|
|
2302
|
-
if (
|
|
2303
|
-
let
|
|
2304
|
-
for (const
|
|
2305
|
-
const
|
|
2306
|
-
|
|
2301
|
+
const Bt = await J?.getVideoQuality();
|
|
2302
|
+
if (Bt && V.length) {
|
|
2303
|
+
let _t = null, ms = 1 / 0;
|
|
2304
|
+
for (const de of V) {
|
|
2305
|
+
const fs = Math.abs(Bt.width - de.width) + Math.abs(Bt.height - de.height) + (Bt.bitrate ? Math.abs(Bt.bitrate - (de.bitrate ?? 0)) : 0);
|
|
2306
|
+
fs < ms && (_t = de, ms = fs);
|
|
2307
2307
|
}
|
|
2308
|
-
|
|
2308
|
+
_t && (_t.selected = !0);
|
|
2309
2309
|
}
|
|
2310
|
-
n() && _i ? await this.#s(e) :
|
|
2310
|
+
n() && _i ? await this.#s(e) : Me && Me > 0 && this.notify("started", void 0, e), c.set(null);
|
|
2311
2311
|
});
|
|
2312
2312
|
}
|
|
2313
2313
|
async #s(t) {
|
|
@@ -2316,7 +2316,7 @@ class bn {
|
|
|
2316
2316
|
$state: { autoPlaying: s, muted: i }
|
|
2317
2317
|
} = this.#e;
|
|
2318
2318
|
s.set(!0);
|
|
2319
|
-
const n = new
|
|
2319
|
+
const n = new L("auto-play-attempt", { trigger: t });
|
|
2320
2320
|
try {
|
|
2321
2321
|
await e.play(n);
|
|
2322
2322
|
} catch {
|
|
@@ -2358,9 +2358,9 @@ class vn {
|
|
|
2358
2358
|
this.#t.clear();
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
class
|
|
2361
|
+
class oi {
|
|
2362
2362
|
#t = !1;
|
|
2363
|
-
#e =
|
|
2363
|
+
#e = He();
|
|
2364
2364
|
#s = /* @__PURE__ */ new Map();
|
|
2365
2365
|
/**
|
|
2366
2366
|
* The number of callbacks that are currently in queue.
|
|
@@ -2426,10 +2426,10 @@ class ii {
|
|
|
2426
2426
|
this.#a();
|
|
2427
2427
|
}
|
|
2428
2428
|
#a() {
|
|
2429
|
-
this.#e.resolve(), this.#e =
|
|
2429
|
+
this.#e.resolve(), this.#e = He();
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
class $n extends
|
|
2432
|
+
class $n extends Mt {
|
|
2433
2433
|
#t;
|
|
2434
2434
|
#e;
|
|
2435
2435
|
#s;
|
|
@@ -2437,15 +2437,15 @@ class $n extends xt {
|
|
|
2437
2437
|
#i;
|
|
2438
2438
|
#a;
|
|
2439
2439
|
#n;
|
|
2440
|
-
#r = new
|
|
2440
|
+
#r = new oi();
|
|
2441
2441
|
constructor(t, e, s) {
|
|
2442
|
-
super(), this.#t = t, this.#e = e, this.#s = s, this.#n = s.$provider, this.controls = new un(), this.#i = new za(), this.#a = new
|
|
2442
|
+
super(), this.#t = t, this.#e = e, this.#s = s, this.#n = s.$provider, this.controls = new un(), this.#i = new za(), this.#a = new Se();
|
|
2443
2443
|
}
|
|
2444
2444
|
onAttach() {
|
|
2445
2445
|
this.listen("fullscreen-change", this.#P.bind(this));
|
|
2446
2446
|
}
|
|
2447
2447
|
onConnect(t) {
|
|
2448
|
-
const e = Object.getOwnPropertyNames(Object.getPrototypeOf(this)), s = new
|
|
2448
|
+
const e = Object.getOwnPropertyNames(Object.getPrototypeOf(this)), s = new M(t), i = this.#l.bind(this);
|
|
2449
2449
|
for (const n of e)
|
|
2450
2450
|
n.startsWith("media-") && s.add(n, i);
|
|
2451
2451
|
this.#o(), l(this.#h.bind(this)), l(this.#m.bind(this)), l(this.#y.bind(this)), l(this.#g.bind(this)), l(this.#b.bind(this)), l(this.#$.bind(this)), l(this.#w.bind(this));
|
|
@@ -2483,10 +2483,10 @@ class $n extends xt {
|
|
|
2483
2483
|
const n = p(i);
|
|
2484
2484
|
try {
|
|
2485
2485
|
const r = p(this.#n);
|
|
2486
|
-
return
|
|
2486
|
+
return Ie(r, p(e)), wn(n), await r.play();
|
|
2487
2487
|
} catch (r) {
|
|
2488
2488
|
const o = this.createEvent("play-fail", {
|
|
2489
|
-
detail:
|
|
2489
|
+
detail: Le(r),
|
|
2490
2490
|
trigger: t
|
|
2491
2491
|
});
|
|
2492
2492
|
throw o.autoPlay = n, this.#t.handle(o), r;
|
|
@@ -2511,7 +2511,7 @@ class $n extends xt {
|
|
|
2511
2511
|
t && this.#e.queue.enqueue("media-pause-request", t);
|
|
2512
2512
|
try {
|
|
2513
2513
|
const i = p(this.#n);
|
|
2514
|
-
return
|
|
2514
|
+
return Ie(i, p(e)), await i.pause();
|
|
2515
2515
|
} catch (i) {
|
|
2516
2516
|
throw this.#e.queue.delete("media-pause-request"), i;
|
|
2517
2517
|
}
|
|
@@ -2529,19 +2529,19 @@ class $n extends xt {
|
|
|
2529
2529
|
const { canPlay: e, live: s, liveEdge: i, canSeek: n, liveSyncPosition: r, seekableEnd: o, userBehindLiveEdge: h } = this.$state;
|
|
2530
2530
|
if (h.set(!1), p(() => !s() || i() || !n())) return;
|
|
2531
2531
|
const d = p(this.#n);
|
|
2532
|
-
|
|
2532
|
+
Ie(d, p(e)), t && this.#e.queue.enqueue("media-seek-request", t);
|
|
2533
2533
|
const c = o() - 2;
|
|
2534
2534
|
d.setCurrentTime(Math.min(c, r() ?? c));
|
|
2535
2535
|
}
|
|
2536
2536
|
#u = !1;
|
|
2537
2537
|
async enterFullscreen(t = "prefer-media", e) {
|
|
2538
2538
|
const s = this.#d(t);
|
|
2539
|
-
if (
|
|
2539
|
+
if (Cs(t, s), !s.active)
|
|
2540
2540
|
return p(this.$state.pictureInPicture) && (this.#u = !0, await this.exitPictureInPicture(e)), e && this.#e.queue.enqueue("media-enter-fullscreen-request", e), s.enter();
|
|
2541
2541
|
}
|
|
2542
2542
|
async exitFullscreen(t = "prefer-media", e) {
|
|
2543
2543
|
const s = this.#d(t);
|
|
2544
|
-
if (
|
|
2544
|
+
if (Cs(t, s), !!s.active) {
|
|
2545
2545
|
e && this.#e.queue.enqueue("media-exit-fullscreen-request", e);
|
|
2546
2546
|
try {
|
|
2547
2547
|
const i = await s.exit();
|
|
@@ -2624,8 +2624,8 @@ class $n extends xt {
|
|
|
2624
2624
|
);
|
|
2625
2625
|
throw i.code = "CAST_NOT_AVAILABLE", i;
|
|
2626
2626
|
}
|
|
2627
|
-
if (
|
|
2628
|
-
const i = await import("./vidstack-D2pY00kU-
|
|
2627
|
+
if (ne("https://www.gstatic.com"), !this.#v) {
|
|
2628
|
+
const i = await import("./vidstack-D2pY00kU-CRo5Kvyt.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);
|
|
@@ -2682,7 +2682,7 @@ class $n extends xt {
|
|
|
2682
2682
|
}
|
|
2683
2683
|
async #P(t) {
|
|
2684
2684
|
const e = p(this.$props.fullscreenOrientation), s = t.detail;
|
|
2685
|
-
if (!(
|
|
2685
|
+
if (!(Ne(e) || e === "none" || !this.#a.supported))
|
|
2686
2686
|
if (s) {
|
|
2687
2687
|
if (this.#a.locked) return;
|
|
2688
2688
|
this.dispatch("media-orientation-lock-request", {
|
|
@@ -2696,7 +2696,7 @@ class $n extends xt {
|
|
|
2696
2696
|
#f(t, e) {
|
|
2697
2697
|
this.#t.handle(
|
|
2698
2698
|
this.createEvent("fullscreen-error", {
|
|
2699
|
-
detail:
|
|
2699
|
+
detail: Le(t)
|
|
2700
2700
|
})
|
|
2701
2701
|
);
|
|
2702
2702
|
}
|
|
@@ -2733,7 +2733,7 @@ class $n extends xt {
|
|
|
2733
2733
|
#T(t, e) {
|
|
2734
2734
|
this.#t.handle(
|
|
2735
2735
|
this.createEvent("picture-in-picture-error", {
|
|
2736
|
-
detail:
|
|
2736
|
+
detail: Le(t)
|
|
2737
2737
|
})
|
|
2738
2738
|
);
|
|
2739
2739
|
}
|
|
@@ -2815,7 +2815,7 @@ class $n extends xt {
|
|
|
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 = ni(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) {
|
|
@@ -2859,13 +2859,13 @@ class $n extends xt {
|
|
|
2859
2859
|
#k(t, e, s) {
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2862
|
+
function Ie(a, t) {
|
|
2863
2863
|
if (!(a && t))
|
|
2864
2864
|
throw Error(
|
|
2865
2865
|
"[vidstack] media not ready"
|
|
2866
2866
|
);
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Cs(a, t) {
|
|
2869
2869
|
if (!t?.supported)
|
|
2870
2870
|
throw Error(
|
|
2871
2871
|
"[vidstack] no fullscreen support"
|
|
@@ -2903,7 +2903,7 @@ const kn = /* @__PURE__ */ new Set([
|
|
|
2903
2903
|
"seeked",
|
|
2904
2904
|
"waiting"
|
|
2905
2905
|
]);
|
|
2906
|
-
class Sn extends
|
|
2906
|
+
class Sn extends Mt {
|
|
2907
2907
|
#t;
|
|
2908
2908
|
#e;
|
|
2909
2909
|
#s = /* @__PURE__ */ new Map();
|
|
@@ -2916,7 +2916,7 @@ class Sn extends xt {
|
|
|
2916
2916
|
super(), this.#t = t, this.#e = e;
|
|
2917
2917
|
}
|
|
2918
2918
|
onAttach(t) {
|
|
2919
|
-
t.setAttribute("aria-busy", "true"), new
|
|
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
2922
|
l(this.#E.bind(this)), this.#p(), this.#m(), this.#y(), this.#l(), P(this.#c.bind(this));
|
|
@@ -2928,12 +2928,12 @@ class Sn extends xt {
|
|
|
2928
2928
|
handle(t) {
|
|
2929
2929
|
if (!this.scope) return;
|
|
2930
2930
|
const e = t.type;
|
|
2931
|
-
|
|
2931
|
+
ge(() => this[t.type]?.(t)), kn.has(e) && this.#s.set(e, t), this.dispatch(t);
|
|
2932
2932
|
}
|
|
2933
2933
|
#h = !1;
|
|
2934
2934
|
#l() {
|
|
2935
2935
|
this.#h && (requestAnimationFrame(() => {
|
|
2936
|
-
this.scope && this.#e.remote.play(new
|
|
2936
|
+
this.scope && this.#e.remote.play(new L("dom-connect"));
|
|
2937
2937
|
}), this.#h = !1);
|
|
2938
2938
|
}
|
|
2939
2939
|
#c() {
|
|
@@ -2949,15 +2949,15 @@ class Sn extends xt {
|
|
|
2949
2949
|
#p() {
|
|
2950
2950
|
this.#g(), this.#b();
|
|
2951
2951
|
const t = this.#e.textTracks;
|
|
2952
|
-
new
|
|
2952
|
+
new M(t).add("add", this.#g.bind(this)).add("remove", this.#g.bind(this)).add("mode-change", this.#b.bind(this));
|
|
2953
2953
|
}
|
|
2954
2954
|
#m() {
|
|
2955
2955
|
const t = this.#e.qualities;
|
|
2956
|
-
new
|
|
2956
|
+
new M(t).add("add", this.#v.bind(this)).add("remove", this.#v.bind(this)).add("change", this.#P.bind(this)).add("auto-change", this.#f.bind(this)).add("readonly-change", this.#C.bind(this));
|
|
2957
2957
|
}
|
|
2958
2958
|
#y() {
|
|
2959
2959
|
const t = this.#e.audioTracks;
|
|
2960
|
-
new
|
|
2960
|
+
new M(t).add("add", this.#$.bind(this)).add("remove", this.#$.bind(this)).add("change", this.#w.bind(this));
|
|
2961
2961
|
}
|
|
2962
2962
|
#g(t) {
|
|
2963
2963
|
const { textTracks: e } = this.$state;
|
|
@@ -3019,7 +3019,7 @@ class Sn extends xt {
|
|
|
3019
3019
|
r && t[x.select](
|
|
3020
3020
|
r,
|
|
3021
3021
|
!0,
|
|
3022
|
-
new
|
|
3022
|
+
new L("resize", { detail: { width: i, height: n } })
|
|
3023
3023
|
);
|
|
3024
3024
|
});
|
|
3025
3025
|
}
|
|
@@ -3098,7 +3098,7 @@ class Sn extends xt {
|
|
|
3098
3098
|
#A(t, e, s) {
|
|
3099
3099
|
let { qualities: i } = this.#e, n = !1, r = !1;
|
|
3100
3100
|
for (const o of t) {
|
|
3101
|
-
if (!
|
|
3101
|
+
if (!Ue(o)) continue;
|
|
3102
3102
|
if (!e.some((d) => d.src === o.src)) {
|
|
3103
3103
|
const d = i.getBySrc(o.src);
|
|
3104
3104
|
d && (i[x.remove](d, s), r = !0);
|
|
@@ -3106,7 +3106,7 @@ class Sn extends xt {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
r && !i.length && (this.$state.savedState.set(null), i[x.reset](s));
|
|
3108
3108
|
for (const o of e) {
|
|
3109
|
-
if (!
|
|
3109
|
+
if (!Ue(o) || i.getBySrc(o.src)) continue;
|
|
3110
3110
|
const h = {
|
|
3111
3111
|
id: o.id ?? o.height + "p",
|
|
3112
3112
|
bitrate: null,
|
|
@@ -3116,7 +3116,7 @@ class Sn extends xt {
|
|
|
3116
3116
|
};
|
|
3117
3117
|
i[x.add](h, s), n = !0;
|
|
3118
3118
|
}
|
|
3119
|
-
n && !i[
|
|
3119
|
+
n && !i[tt.enableAuto] && (this.#k(), i[tt.enableAuto] = this.#k.bind(this), i[tt.setAuto](!0, s));
|
|
3120
3120
|
}
|
|
3121
3121
|
"source-change"(t) {
|
|
3122
3122
|
t.isQualityChange = t.originEvent?.type === "quality-change";
|
|
@@ -3126,10 +3126,10 @@ class Sn extends xt {
|
|
|
3126
3126
|
#x(t, e = !1) {
|
|
3127
3127
|
const { audioTracks: s, qualities: i } = this.#e;
|
|
3128
3128
|
if (!e) {
|
|
3129
|
-
this.#a = [], this.#n = [-1, -1], s[x.reset](t), i[x.reset](t),
|
|
3129
|
+
this.#a = [], this.#n = [-1, -1], s[x.reset](t), i[x.reset](t), ks(this.$state, e), this.#u();
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
|
-
|
|
3132
|
+
ks(this.$state, e), this.#u();
|
|
3133
3133
|
}
|
|
3134
3134
|
abort(t) {
|
|
3135
3135
|
const e = this.#s.get("source-change");
|
|
@@ -3166,7 +3166,7 @@ class Sn extends xt {
|
|
|
3166
3166
|
#M(t) {
|
|
3167
3167
|
const { seekable: e, buffered: s, intrinsicDuration: i, canPlay: n } = this.$state;
|
|
3168
3168
|
n.set(!0), s.set(t.buffered), e.set(t.seekable);
|
|
3169
|
-
const r =
|
|
3169
|
+
const r = kt(t.seekable) ?? 1 / 0;
|
|
3170
3170
|
i.set(r);
|
|
3171
3171
|
}
|
|
3172
3172
|
"duration-change"(t) {
|
|
@@ -3178,7 +3178,7 @@ class Sn extends xt {
|
|
|
3178
3178
|
(i() > 0 || n() > 0) && t.stopImmediatePropagation();
|
|
3179
3179
|
}
|
|
3180
3180
|
progress(t) {
|
|
3181
|
-
const { buffered: e, seekable: s } = this.$state, { buffered: i, seekable: n } = t.detail, r =
|
|
3181
|
+
const { buffered: e, seekable: s } = this.$state, { buffered: i, seekable: n } = t.detail, r = kt(i), o = i.length !== e().length, h = r !== kt(e()), d = kt(n), c = n.length !== s().length, u = d !== kt(s());
|
|
3182
3182
|
(o || h) && e.set(i), (c || u) && s.set(n);
|
|
3183
3183
|
}
|
|
3184
3184
|
play(t) {
|
|
@@ -3286,7 +3286,7 @@ class Sn extends xt {
|
|
|
3286
3286
|
this.#a,
|
|
3287
3287
|
this.#n,
|
|
3288
3288
|
t()
|
|
3289
|
-
), e.set(new
|
|
3289
|
+
), e.set(new me(this.#a)));
|
|
3290
3290
|
}
|
|
3291
3291
|
// Called to update time again incase duration precision has changed.
|
|
3292
3292
|
#_(t) {
|
|
@@ -3310,7 +3310,7 @@ class Sn extends xt {
|
|
|
3310
3310
|
const { storage: e } = this.#e, { volume: s, muted: i, canPlay: n } = this.$state, r = t.detail;
|
|
3311
3311
|
s.set(r.volume), i.set(r.muted || r.volume === 0), this.#d("media-volume-change-request", t), this.#d(r.muted ? "media-mute-request" : "media-unmute-request", t), n() && (e?.setVolume?.(s()), e?.setMuted?.(i()));
|
|
3312
3312
|
}
|
|
3313
|
-
seeking =
|
|
3313
|
+
seeking = At(
|
|
3314
3314
|
(t) => {
|
|
3315
3315
|
const { seeking: e, realCurrentTime: s, paused: i } = this.$state;
|
|
3316
3316
|
e.set(!0), s.set(t.detail), this.#d("media-seeking-request", t), i() && (this.#o = t, this.#L()), this.#n = [-1, -1];
|
|
@@ -3335,7 +3335,7 @@ class Sn extends xt {
|
|
|
3335
3335
|
waiting(t) {
|
|
3336
3336
|
this.#r || this.#t.seeking || (t.stopImmediatePropagation(), this.#o = t, this.#L());
|
|
3337
3337
|
}
|
|
3338
|
-
#L =
|
|
3338
|
+
#L = Ye(() => {
|
|
3339
3339
|
if (!this.#o) return;
|
|
3340
3340
|
this.#r = !0;
|
|
3341
3341
|
const { waiting: t, playing: e } = this.$state;
|
|
@@ -3400,7 +3400,7 @@ class Sn extends xt {
|
|
|
3400
3400
|
t.trigger && (t.stopImmediatePropagation(), this.$state.inferredPoster.set(t.detail));
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
|
-
class Pn extends
|
|
3403
|
+
class Pn extends Mt {
|
|
3404
3404
|
onSetup() {
|
|
3405
3405
|
this.#t();
|
|
3406
3406
|
const t = [
|
|
@@ -3509,17 +3509,17 @@ class Pn extends xt {
|
|
|
3509
3509
|
this.dispatch("live-edge-change", { detail: this.$state.liveEdge() });
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
|
-
const
|
|
3513
|
-
class Cn extends
|
|
3512
|
+
const xs = ["play", "pause", "seekforward", "seekbackward", "seekto"];
|
|
3513
|
+
class Cn extends Mt {
|
|
3514
3514
|
onConnect() {
|
|
3515
3515
|
l(this.#e.bind(this)), l(this.#s.bind(this));
|
|
3516
3516
|
const t = this.#i.bind(this);
|
|
3517
|
-
for (const e of
|
|
3517
|
+
for (const e of xs)
|
|
3518
3518
|
navigator.mediaSession.setActionHandler(e, t);
|
|
3519
3519
|
P(this.#t.bind(this));
|
|
3520
3520
|
}
|
|
3521
3521
|
#t() {
|
|
3522
|
-
for (const t of
|
|
3522
|
+
for (const t of xs)
|
|
3523
3523
|
navigator.mediaSession.setActionHandler(t, null);
|
|
3524
3524
|
}
|
|
3525
3525
|
#e() {
|
|
@@ -3535,7 +3535,7 @@ class Cn extends xt {
|
|
|
3535
3535
|
navigator.mediaSession.playbackState = t() ? e() ? "paused" : "playing" : "none";
|
|
3536
3536
|
}
|
|
3537
3537
|
#i(t) {
|
|
3538
|
-
const e = new
|
|
3538
|
+
const e = new L("media-session-action", { detail: t });
|
|
3539
3539
|
switch (t.action) {
|
|
3540
3540
|
case "play":
|
|
3541
3541
|
this.dispatch("media-play-request", { trigger: e });
|
|
@@ -3554,13 +3554,13 @@ class Cn extends xt {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
|
-
class
|
|
3557
|
+
class It extends b {
|
|
3558
3558
|
static props = yn;
|
|
3559
|
-
static state =
|
|
3559
|
+
static state = ii;
|
|
3560
3560
|
#t;
|
|
3561
3561
|
#e;
|
|
3562
3562
|
#s;
|
|
3563
|
-
canPlayQueue = new
|
|
3563
|
+
canPlayQueue = new oi();
|
|
3564
3564
|
remoteControl;
|
|
3565
3565
|
get #i() {
|
|
3566
3566
|
return this.#t.$provider();
|
|
@@ -3582,21 +3582,21 @@ class Lt extends b {
|
|
|
3582
3582
|
};
|
|
3583
3583
|
t.remote = this.remoteControl = new ja(
|
|
3584
3584
|
void 0
|
|
3585
|
-
), t.remote.setPlayer(this), t.textTracks = new tn(), t.textTracks[k.crossOrigin] = this.$state.crossOrigin, t.textRenderers = new Za(t), t.ariaKeys = {}, this.#t = t, Y(
|
|
3585
|
+
), t.remote.setPlayer(this), t.textTracks = new tn(), t.textTracks[k.crossOrigin] = this.$state.crossOrigin, t.textRenderers = new Za(t), t.ariaKeys = {}, this.#t = t, Y(js, t), this.orientation = new Se(), new it(), new hn(t);
|
|
3586
3586
|
const e = new Tn();
|
|
3587
|
-
this.#e = new Sn(e, t), this.#s = new $n(this.#e, e, t), t.delegate = new bn(this.#e.handle.bind(this.#e), t), t.notify = t.delegate.notify.bind(t.delegate), typeof navigator < "u" && "mediaSession" in navigator && new Cn(), new
|
|
3587
|
+
this.#e = new Sn(e, t), this.#s = new $n(this.#e, e, t), t.delegate = new bn(this.#e.handle.bind(this.#e), t), t.notify = t.delegate.notify.bind(t.delegate), typeof navigator < "u" && "mediaSession" in navigator && new Cn(), new Ps("load", this.startLoading.bind(this)), new Ps("posterLoad", this.startLoadingPoster.bind(this));
|
|
3588
3588
|
}
|
|
3589
3589
|
onSetup() {
|
|
3590
3590
|
this.#l(), l(this.#h.bind(this)), l(this.#y.bind(this)), l(this.#p.bind(this)), l(this.#w.bind(this)), l(this.#b.bind(this)), l(this.#T.bind(this)), l(this.#P.bind(this));
|
|
3591
3591
|
}
|
|
3592
3592
|
onAttach(t) {
|
|
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)),
|
|
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)), N(t, "find-media-player", this.#c.bind(this));
|
|
3594
3594
|
}
|
|
3595
3595
|
onConnect(t) {
|
|
3596
|
-
|
|
3596
|
+
Ks && f(t, "data-iphone", "");
|
|
3597
3597
|
const e = window.matchMedia("(pointer: coarse)");
|
|
3598
3598
|
this.#d(e), e.onchange = this.#d.bind(this);
|
|
3599
|
-
const s = new ResizeObserver(
|
|
3599
|
+
const s = new ResizeObserver(Ot(this.#u.bind(this)));
|
|
3600
3600
|
s.observe(t), l(this.#u.bind(this)), this.dispatch("media-player-connect", {
|
|
3601
3601
|
detail: this,
|
|
3602
3602
|
bubbles: !0,
|
|
@@ -3625,8 +3625,8 @@ class Lt extends b {
|
|
|
3625
3625
|
this.$state.canPlay() && this.#i ? this.canPlayQueue.start() : this.canPlayQueue.stop();
|
|
3626
3626
|
}
|
|
3627
3627
|
#l() {
|
|
3628
|
-
if (
|
|
3629
|
-
this.setAttributes(
|
|
3628
|
+
if (It[_e]) {
|
|
3629
|
+
this.setAttributes(It[_e]);
|
|
3630
3630
|
return;
|
|
3631
3631
|
}
|
|
3632
3632
|
const t = {
|
|
@@ -3672,7 +3672,7 @@ class Lt extends b {
|
|
|
3672
3672
|
return this.$state[s]();
|
|
3673
3673
|
};
|
|
3674
3674
|
}
|
|
3675
|
-
delete t.title,
|
|
3675
|
+
delete t.title, It[_e] = t, this.setAttributes(t);
|
|
3676
3676
|
}
|
|
3677
3677
|
#c(t) {
|
|
3678
3678
|
t.detail(this);
|
|
@@ -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 = ni(t, this.$state);
|
|
3800
3800
|
Number.isFinite(s) && this.#i.setCurrentTime(s);
|
|
3801
3801
|
});
|
|
3802
3802
|
});
|
|
@@ -3811,7 +3811,7 @@ class Lt extends b {
|
|
|
3811
3811
|
this.#v(this.$props.volume());
|
|
3812
3812
|
}
|
|
3813
3813
|
#v(t) {
|
|
3814
|
-
const e =
|
|
3814
|
+
const e = Ze(0, t, 1);
|
|
3815
3815
|
this.canPlayQueue.enqueue("volume", () => {
|
|
3816
3816
|
this.#i && this.#i.setVolume(e);
|
|
3817
3817
|
});
|
|
@@ -3841,7 +3841,7 @@ class Lt extends b {
|
|
|
3841
3841
|
#S() {
|
|
3842
3842
|
let t = this.$props.storage(), e = S(t) ? new Ya() : t;
|
|
3843
3843
|
if (e?.onChange) {
|
|
3844
|
-
const { source: s } = this.$state, i = S(t) ? t : this.el?.id, n =
|
|
3844
|
+
const { source: s } = this.$state, i = S(t) ? t : this.el?.id, n = at(this.#C.bind(this));
|
|
3845
3845
|
l(() => e.onChange(s(), n(), i || void 0));
|
|
3846
3846
|
}
|
|
3847
3847
|
this.#t.storage = e, this.#t.textTracks.setStorage(e), P(() => {
|
|
@@ -3959,43 +3959,43 @@ class Lt extends b {
|
|
|
3959
3959
|
super.destroy(), this.#t.remote.setPlayer(null), this.dispatch("destroy");
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
3962
|
-
const
|
|
3963
|
-
T(
|
|
3964
|
-
T(
|
|
3965
|
-
T(
|
|
3966
|
-
T(
|
|
3967
|
-
T(
|
|
3968
|
-
T(
|
|
3969
|
-
T(
|
|
3970
|
-
T(
|
|
3971
|
-
T(
|
|
3972
|
-
T(
|
|
3973
|
-
T(
|
|
3974
|
-
T(
|
|
3975
|
-
T(
|
|
3976
|
-
T(
|
|
3977
|
-
T(
|
|
3978
|
-
T(
|
|
3979
|
-
I(
|
|
3980
|
-
I(
|
|
3981
|
-
I(
|
|
3982
|
-
I(
|
|
3983
|
-
I(
|
|
3984
|
-
I(
|
|
3985
|
-
I(
|
|
3986
|
-
I(
|
|
3987
|
-
I(
|
|
3988
|
-
I(
|
|
3989
|
-
I(
|
|
3990
|
-
I(
|
|
3962
|
+
const A = It.prototype;
|
|
3963
|
+
T(A, "canPlayQueue");
|
|
3964
|
+
T(A, "remoteControl");
|
|
3965
|
+
T(A, "provider");
|
|
3966
|
+
T(A, "controls");
|
|
3967
|
+
T(A, "orientation");
|
|
3968
|
+
T(A, "title");
|
|
3969
|
+
T(A, "qualities");
|
|
3970
|
+
T(A, "audioTracks");
|
|
3971
|
+
T(A, "textTracks");
|
|
3972
|
+
T(A, "textRenderers");
|
|
3973
|
+
T(A, "duration");
|
|
3974
|
+
T(A, "paused");
|
|
3975
|
+
T(A, "muted");
|
|
3976
|
+
T(A, "currentTime");
|
|
3977
|
+
T(A, "volume");
|
|
3978
|
+
T(A, "playbackRate");
|
|
3979
|
+
I(A, "play");
|
|
3980
|
+
I(A, "pause");
|
|
3981
|
+
I(A, "enterFullscreen");
|
|
3982
|
+
I(A, "exitFullscreen");
|
|
3983
|
+
I(A, "enterPictureInPicture");
|
|
3984
|
+
I(A, "exitPictureInPicture");
|
|
3985
|
+
I(A, "seekToLiveEdge");
|
|
3986
|
+
I(A, "startLoading");
|
|
3987
|
+
I(A, "startLoadingPoster");
|
|
3988
|
+
I(A, "requestAirPlay");
|
|
3989
|
+
I(A, "requestGoogleCast");
|
|
3990
|
+
I(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 hi(a, t) {
|
|
3995
3995
|
return fetch(a, t).then((e) => e.text()).then((e) => {
|
|
3996
3996
|
const s = En(e);
|
|
3997
3997
|
if (s)
|
|
3998
|
-
return
|
|
3998
|
+
return hi(
|
|
3999
3999
|
/^https?:/.test(s) ? s : new URL(s, a).href,
|
|
4000
4000
|
t
|
|
4001
4001
|
);
|
|
@@ -4019,7 +4019,7 @@ function An(a) {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
return -1;
|
|
4021
4021
|
}
|
|
4022
|
-
const
|
|
4022
|
+
const Ke = /* @__PURE__ */ new Map();
|
|
4023
4023
|
class Mn {
|
|
4024
4024
|
#t = !1;
|
|
4025
4025
|
#e;
|
|
@@ -4028,18 +4028,18 @@ class Mn {
|
|
|
4028
4028
|
#a;
|
|
4029
4029
|
constructor(t, e, s, i = []) {
|
|
4030
4030
|
this.#s = t, this.#i = e, this.#a = s;
|
|
4031
|
-
const n = new
|
|
4032
|
-
this.#e =
|
|
4031
|
+
const n = new ss(), r = new es(), o = new ts(), h = new pn(), d = new fn(), c = new mn(), u = [d, c];
|
|
4032
|
+
this.#e = at(() => {
|
|
4033
4033
|
const g = e.$state.remotePlaybackLoader(), C = e.$props.preferNativeHLS() ? [o, h, n, r, ...u, ...i] : [r, o, h, n, ...u, ...i];
|
|
4034
4034
|
return g ? [g, ...C] : C;
|
|
4035
4035
|
});
|
|
4036
4036
|
const { $state: m } = e;
|
|
4037
|
-
m.sources.set(
|
|
4037
|
+
m.sources.set(Es(e.$props.src()));
|
|
4038
4038
|
for (const g of m.sources()) {
|
|
4039
|
-
const C = this.#e().find((
|
|
4039
|
+
const C = this.#e().find((J) => J.canPlay(g));
|
|
4040
4040
|
if (!C) continue;
|
|
4041
|
-
const
|
|
4042
|
-
e.$state.source.set(g), e.$state.mediaType.set(
|
|
4041
|
+
const _ = C.mediaType(g);
|
|
4042
|
+
e.$state.source.set(g), e.$state.mediaType.set(_), e.$state.inferredViewType.set(_), this.#a.set(C), this.#t = !0;
|
|
4043
4043
|
break;
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
@@ -4049,35 +4049,35 @@ class Mn {
|
|
|
4049
4049
|
}
|
|
4050
4050
|
#n() {
|
|
4051
4051
|
this.#i.notify("sources-change", [
|
|
4052
|
-
...
|
|
4052
|
+
...Es(this.#i.$props.src()),
|
|
4053
4053
|
...this.#s()
|
|
4054
4054
|
]);
|
|
4055
4055
|
}
|
|
4056
4056
|
#r() {
|
|
4057
4057
|
const { $state: t } = this.#i, e = t.sources(), s = p(t.source), i = this.#o(s, e);
|
|
4058
4058
|
if (e[0]?.src && !i.src && !i.type) {
|
|
4059
|
-
const { crossOrigin: r } = t, o =
|
|
4059
|
+
const { crossOrigin: r } = t, o = Yt(r()), h = new AbortController();
|
|
4060
4060
|
return Promise.all(
|
|
4061
4061
|
e.map(
|
|
4062
4062
|
(d) => S(d.src) && d.type === "?" ? fetch(d.src, {
|
|
4063
4063
|
method: "HEAD",
|
|
4064
4064
|
credentials: o,
|
|
4065
4065
|
signal: h.signal
|
|
4066
|
-
}).then((c) => (d.type = c.headers.get("content-type") || "??",
|
|
4066
|
+
}).then((c) => (d.type = c.headers.get("content-type") || "??", Ke.set(d.src, d.type), d)).catch(() => d) : d
|
|
4067
4067
|
)
|
|
4068
4068
|
).then((d) => {
|
|
4069
4069
|
if (h.signal.aborted) return;
|
|
4070
4070
|
const c = this.#o(p(t.source), d);
|
|
4071
|
-
|
|
4071
|
+
dt(), c.src || this.#i.notify("error", {
|
|
4072
4072
|
message: "Failed to load resource.",
|
|
4073
4073
|
code: 4
|
|
4074
4074
|
});
|
|
4075
4075
|
}), () => h.abort();
|
|
4076
4076
|
}
|
|
4077
|
-
|
|
4077
|
+
dt();
|
|
4078
4078
|
}
|
|
4079
4079
|
#o(t, e) {
|
|
4080
|
-
let s = { src: "", type: "" }, i = null, n = new
|
|
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
4082
|
const g = r.find((C) => C.canPlay(m));
|
|
4083
4083
|
if (g) {
|
|
@@ -4085,16 +4085,16 @@ class Mn {
|
|
|
4085
4085
|
break;
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
|
-
if (
|
|
4088
|
+
if (Ue(s)) {
|
|
4089
4089
|
const m = c(), g = e.find((C) => C.src === m?.src);
|
|
4090
4090
|
p(o) ? u.set({
|
|
4091
4091
|
paused: p(h),
|
|
4092
4092
|
currentTime: p(d)
|
|
4093
|
-
}) : u.set(null), g && (s = g, n = new
|
|
4093
|
+
}) : u.set(null), g && (s = g, n = new L("quality-change", {
|
|
4094
4094
|
detail: { quality: m }
|
|
4095
4095
|
}));
|
|
4096
4096
|
}
|
|
4097
|
-
return
|
|
4097
|
+
return Ms(t, s) || this.#h(s, i, n), i !== p(this.#a) && this.#l(i, n), s;
|
|
4098
4098
|
}
|
|
4099
4099
|
#h(t, e, s) {
|
|
4100
4100
|
this.#i.notify("source-change", t, s), this.#i.notify("media-type-change", e?.mediaType(t) || "unknown", s);
|
|
@@ -4106,7 +4106,7 @@ class Mn {
|
|
|
4106
4106
|
const t = this.#i.$provider();
|
|
4107
4107
|
if (!(!t || p(this.#i.$providerSetup))) {
|
|
4108
4108
|
if (this.#i.$state.canLoad()) {
|
|
4109
|
-
|
|
4109
|
+
ae(() => t.setup(), t.scope), this.#i.$providerSetup.set(!0);
|
|
4110
4110
|
return;
|
|
4111
4111
|
}
|
|
4112
4112
|
p(() => t.preconnect?.());
|
|
@@ -4115,27 +4115,27 @@ class Mn {
|
|
|
4115
4115
|
#u() {
|
|
4116
4116
|
if (!this.#i.$providerSetup()) return;
|
|
4117
4117
|
const t = this.#i.$provider(), e = this.#i.$state.source(), s = p(this.#i.$state.crossOrigin), i = p(this.#i.$props.preferNativeHLS);
|
|
4118
|
-
if (!
|
|
4118
|
+
if (!Ms(t?.currentSrc, e)) {
|
|
4119
4119
|
if (this.#i.$state.canLoad()) {
|
|
4120
4120
|
const n = new AbortController();
|
|
4121
|
-
return
|
|
4122
|
-
credentials:
|
|
4121
|
+
return We(e) ? (i || !Qs()) && hi(e.src, {
|
|
4122
|
+
credentials: Yt(s),
|
|
4123
4123
|
signal: n.signal
|
|
4124
4124
|
}).then((r) => {
|
|
4125
4125
|
this.#i.notify("stream-type-change", r);
|
|
4126
|
-
}).catch(
|
|
4127
|
-
credentials:
|
|
4126
|
+
}).catch(ys) : je(e) ? xn(e.src, {
|
|
4127
|
+
credentials: Yt(s),
|
|
4128
4128
|
signal: n.signal
|
|
4129
4129
|
}).then((r) => {
|
|
4130
4130
|
this.#i.notify("stream-type-change", r);
|
|
4131
|
-
}).catch(
|
|
4131
|
+
}).catch(ys) : this.#i.notify("stream-type-change", "on-demand"), p(() => {
|
|
4132
4132
|
const r = p(this.#i.$state.preload);
|
|
4133
4133
|
return t?.loadSource(e, r).catch((o) => {
|
|
4134
4134
|
});
|
|
4135
4135
|
}), () => n.abort();
|
|
4136
4136
|
}
|
|
4137
4137
|
try {
|
|
4138
|
-
S(e.src) &&
|
|
4138
|
+
S(e.src) && ne(new URL(e.src).origin);
|
|
4139
4139
|
} catch {
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
@@ -4143,7 +4143,7 @@ class Mn {
|
|
|
4143
4143
|
#d() {
|
|
4144
4144
|
const t = this.#a(), { providedPoster: e, source: s, canLoadPoster: i } = this.#i.$state;
|
|
4145
4145
|
if (!t || !t.loadPoster || !s() || !i() || e()) return;
|
|
4146
|
-
const n = new AbortController(), r = new
|
|
4146
|
+
const n = new AbortController(), r = new L("source-change", { detail: s });
|
|
4147
4147
|
return t.loadPoster(s(), this.#i, n).then((o) => {
|
|
4148
4148
|
this.#i.notify("poster-change", o || "", r);
|
|
4149
4149
|
}).catch(() => {
|
|
@@ -4153,13 +4153,13 @@ class Mn {
|
|
|
4153
4153
|
};
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
return (G(a) ? a : [a]).map((t) => S(t) ? { src: t, type:
|
|
4156
|
+
function Es(a) {
|
|
4157
|
+
return (G(a) ? a : [a]).map((t) => S(t) ? { src: t, type: As(t) } : { ...t, type: As(t.src, t.type) });
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4160
|
-
return S(t) && t.length ? t : S(a) &&
|
|
4159
|
+
function As(a, t) {
|
|
4160
|
+
return S(t) && t.length ? t : S(a) && Ke.has(a) ? Ke.get(a) : !t && We({ src: a, type: "" }) ? "application/x-mpegurl" : !t && je({ src: a, type: "" }) ? "application/dash+xml" : !S(a) || a.startsWith("blob:") ? "video/object" : a.includes("youtube") || a.includes("youtu.be") ? "video/youtube" : a.includes("vimeo") && !a.includes("progressive_redirect") && !a.includes(".m3u8") ? "video/vimeo" : "?";
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function Ms(a, t) {
|
|
4163
4163
|
return a?.src === t?.src && a?.type === t?.type;
|
|
4164
4164
|
}
|
|
4165
4165
|
class Ln {
|
|
@@ -4177,17 +4177,17 @@ class Ln {
|
|
|
4177
4177
|
s && this.#e.textTracks.remove(s);
|
|
4178
4178
|
}
|
|
4179
4179
|
for (const e of t) {
|
|
4180
|
-
const s = e.id ||
|
|
4180
|
+
const s = e.id || ve.createId(e);
|
|
4181
4181
|
this.#e.textTracks.getById(s) || (e.id = s, this.#e.textTracks.add(e));
|
|
4182
4182
|
}
|
|
4183
4183
|
this.#s = t;
|
|
4184
4184
|
}
|
|
4185
4185
|
}
|
|
4186
|
-
class
|
|
4186
|
+
class li extends b {
|
|
4187
4187
|
static props = {
|
|
4188
4188
|
loaders: []
|
|
4189
4189
|
};
|
|
4190
|
-
static state = new
|
|
4190
|
+
static state = new vt({
|
|
4191
4191
|
loader: null
|
|
4192
4192
|
});
|
|
4193
4193
|
#t;
|
|
@@ -4208,7 +4208,7 @@ class ni extends b {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
onConnect(t) {
|
|
4210
4210
|
this.#e.connect(), new Ln(this.#i, this.#t);
|
|
4211
|
-
const e = new ResizeObserver(
|
|
4211
|
+
const e = new ResizeObserver(Ot(this.#h.bind(this)));
|
|
4212
4212
|
e.observe(t);
|
|
4213
4213
|
const s = new MutationObserver(this.#l.bind(this));
|
|
4214
4214
|
s.observe(t, { attributes: !0, childList: !0 }), this.#h(), this.#l(), P(() => {
|
|
@@ -4264,17 +4264,17 @@ class ni extends b {
|
|
|
4264
4264
|
type: i.getAttribute("data-type")
|
|
4265
4265
|
};
|
|
4266
4266
|
e.push({
|
|
4267
|
-
id: i.id ||
|
|
4267
|
+
id: i.id || ve.createId(n),
|
|
4268
4268
|
...n
|
|
4269
4269
|
});
|
|
4270
4270
|
}
|
|
4271
4271
|
}
|
|
4272
|
-
this.#s.set(t), this.#i.set(e),
|
|
4272
|
+
this.#s.set(t), this.#i.set(e), dt();
|
|
4273
4273
|
}
|
|
4274
4274
|
}
|
|
4275
|
-
const qn =
|
|
4275
|
+
const qn = li.prototype;
|
|
4276
4276
|
I(qn, "load");
|
|
4277
|
-
function
|
|
4277
|
+
function di(a, t) {
|
|
4278
4278
|
return [...a].sort(t ? In : _n);
|
|
4279
4279
|
}
|
|
4280
4280
|
function _n(a, t) {
|
|
@@ -4283,7 +4283,7 @@ function _n(a, t) {
|
|
|
4283
4283
|
function In(a, t) {
|
|
4284
4284
|
return t.height === a.height ? (t.bitrate ?? 0) - (a.bitrate ?? 0) : t.height - a.height;
|
|
4285
4285
|
}
|
|
4286
|
-
class Vn extends
|
|
4286
|
+
class Vn extends st {
|
|
4287
4287
|
#t;
|
|
4288
4288
|
constructor(t) {
|
|
4289
4289
|
super(), this.#t = t;
|
|
@@ -4303,7 +4303,7 @@ class Vn extends tt {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4306
|
+
function Ve(a, t) {
|
|
4307
4307
|
const e = String(a), s = e.length;
|
|
4308
4308
|
if (s < t) {
|
|
4309
4309
|
const n = t - s;
|
|
@@ -4311,7 +4311,7 @@ function Le(a, t) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
return e;
|
|
4313
4313
|
}
|
|
4314
|
-
function
|
|
4314
|
+
function ci(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,
|
|
@@ -4320,15 +4320,15 @@ function oi(a) {
|
|
|
4320
4320
|
fraction: i
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
|
-
function
|
|
4324
|
-
const { hours: n, minutes: r, seconds: o, fraction: h } =
|
|
4323
|
+
function Pe(a, { padHrs: t = null, padMins: e = null, showHrs: s = !1, showMs: i = !1 } = {}) {
|
|
4324
|
+
const { hours: n, minutes: r, seconds: o, fraction: h } = ci(a), d = t ? Ve(n, 2) : n, c = e || lt(e) && a >= 3600 ? Ve(r, 2) : r, u = Ve(o, 2), m = i && h > 0 ? `.${String(h).replace(/^0?\./, "")}` : "", g = `${c}:${u}${m}`;
|
|
4325
4325
|
return n > 0 || s ? `${d}:${g}` : g;
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
const t = [], { hours: e, minutes: s, seconds: i } =
|
|
4327
|
+
function we(a) {
|
|
4328
|
+
const t = [], { hours: e, minutes: s, seconds: i } = ci(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 ui extends st {
|
|
4332
4332
|
#t;
|
|
4333
4333
|
constructor(t) {
|
|
4334
4334
|
super(), this.#t = t, l(this.#e.bind(this));
|
|
@@ -4365,7 +4365,7 @@ class hi extends tt {
|
|
|
4365
4365
|
};
|
|
4366
4366
|
if (Ga(e)) {
|
|
4367
4367
|
this.#a?.();
|
|
4368
|
-
const n =
|
|
4368
|
+
const n = N(e, "animationend", s, { once: !0 });
|
|
4369
4369
|
this.#a = n;
|
|
4370
4370
|
} else
|
|
4371
4371
|
s();
|
|
@@ -4376,13 +4376,13 @@ class hi extends tt {
|
|
|
4376
4376
|
window.clearTimeout(this.#s), this.#s = -1;
|
|
4377
4377
|
}
|
|
4378
4378
|
}
|
|
4379
|
-
class B extends
|
|
4379
|
+
class B extends st {
|
|
4380
4380
|
static props = {
|
|
4381
4381
|
disabled: !1
|
|
4382
4382
|
};
|
|
4383
4383
|
#t;
|
|
4384
4384
|
constructor(t) {
|
|
4385
|
-
super(), this.#t = t, new
|
|
4385
|
+
super(), this.#t = t, new it(), t.keyShortcut && new Vn(t.keyShortcut);
|
|
4386
4386
|
}
|
|
4387
4387
|
onSetup() {
|
|
4388
4388
|
const { disabled: t } = this.$props;
|
|
@@ -4396,14 +4396,14 @@ class B extends tt {
|
|
|
4396
4396
|
E(t, "tabindex", "0"), E(t, "role", "button"), E(t, "type", "button");
|
|
4397
4397
|
}
|
|
4398
4398
|
onConnect(t) {
|
|
4399
|
-
const e =
|
|
4399
|
+
const e = gt(t, this.#i.bind(this));
|
|
4400
4400
|
for (const s of ["click", "touchstart"])
|
|
4401
4401
|
e.add(s, this.#a.bind(this), {
|
|
4402
4402
|
passive: !0
|
|
4403
4403
|
});
|
|
4404
4404
|
}
|
|
4405
4405
|
#e() {
|
|
4406
|
-
return
|
|
4406
|
+
return ye(this.#t.isPresssed());
|
|
4407
4407
|
}
|
|
4408
4408
|
#s(t) {
|
|
4409
4409
|
ea(this.#t.isPresssed) && this.#t.isPresssed.set((e) => !e);
|
|
@@ -4435,11 +4435,11 @@ class Dn extends b {
|
|
|
4435
4435
|
"data-active": e,
|
|
4436
4436
|
"data-supported": t,
|
|
4437
4437
|
"data-state": this.#i.bind(this),
|
|
4438
|
-
"aria-hidden":
|
|
4438
|
+
"aria-hidden": H(() => !t())
|
|
4439
4439
|
});
|
|
4440
4440
|
}
|
|
4441
4441
|
onAttach(t) {
|
|
4442
|
-
t.setAttribute("data-media-tooltip", "airplay"),
|
|
4442
|
+
t.setAttribute("data-media-tooltip", "airplay"), wt(t, this.#a.bind(this));
|
|
4443
4443
|
}
|
|
4444
4444
|
#e(t) {
|
|
4445
4445
|
this.#t.remote.requestAirPlay(t);
|
|
@@ -4476,7 +4476,7 @@ let Rn = class extends b {
|
|
|
4476
4476
|
});
|
|
4477
4477
|
}
|
|
4478
4478
|
onAttach(t) {
|
|
4479
|
-
t.setAttribute("data-media-tooltip", "play"),
|
|
4479
|
+
t.setAttribute("data-media-tooltip", "play"), wt(t, "Play");
|
|
4480
4480
|
}
|
|
4481
4481
|
#e(t) {
|
|
4482
4482
|
const e = this.#t.remote;
|
|
@@ -4501,11 +4501,11 @@ class On extends b {
|
|
|
4501
4501
|
this.#t = $(), this.setAttributes({
|
|
4502
4502
|
"data-active": this.#s.bind(this),
|
|
4503
4503
|
"data-supported": () => !this.#i(),
|
|
4504
|
-
"aria-hidden":
|
|
4504
|
+
"aria-hidden": H(this.#i.bind(this))
|
|
4505
4505
|
});
|
|
4506
4506
|
}
|
|
4507
4507
|
onAttach(t) {
|
|
4508
|
-
t.setAttribute("data-media-tooltip", "caption"),
|
|
4508
|
+
t.setAttribute("data-media-tooltip", "caption"), wt(t, "Captions");
|
|
4509
4509
|
}
|
|
4510
4510
|
#e(t) {
|
|
4511
4511
|
this.#t.remote.toggleCaptions(t);
|
|
@@ -4538,11 +4538,11 @@ let Nn = class extends b {
|
|
|
4538
4538
|
this.setAttributes({
|
|
4539
4539
|
"data-active": t,
|
|
4540
4540
|
"data-supported": e,
|
|
4541
|
-
"aria-hidden":
|
|
4541
|
+
"aria-hidden": H(() => !e())
|
|
4542
4542
|
});
|
|
4543
4543
|
}
|
|
4544
4544
|
onAttach(t) {
|
|
4545
|
-
t.setAttribute("data-media-tooltip", "fullscreen"),
|
|
4545
|
+
t.setAttribute("data-media-tooltip", "fullscreen"), wt(t, "Fullscreen");
|
|
4546
4546
|
}
|
|
4547
4547
|
#e(t) {
|
|
4548
4548
|
const e = this.#t.remote, s = this.$props.target();
|
|
@@ -4574,7 +4574,7 @@ class Hn extends b {
|
|
|
4574
4574
|
});
|
|
4575
4575
|
}
|
|
4576
4576
|
onAttach(t) {
|
|
4577
|
-
t.setAttribute("data-media-mute-button", ""), t.setAttribute("data-media-tooltip", "mute"),
|
|
4577
|
+
t.setAttribute("data-media-mute-button", ""), t.setAttribute("data-media-tooltip", "mute"), wt(t, "Mute");
|
|
4578
4578
|
}
|
|
4579
4579
|
#e(t) {
|
|
4580
4580
|
const e = this.#t.remote;
|
|
@@ -4607,11 +4607,11 @@ class Fn extends b {
|
|
|
4607
4607
|
this.setAttributes({
|
|
4608
4608
|
"data-active": t,
|
|
4609
4609
|
"data-supported": e,
|
|
4610
|
-
"aria-hidden":
|
|
4610
|
+
"aria-hidden": H(() => !e())
|
|
4611
4611
|
});
|
|
4612
4612
|
}
|
|
4613
4613
|
onAttach(t) {
|
|
4614
|
-
t.setAttribute("data-media-tooltip", "pip"),
|
|
4614
|
+
t.setAttribute("data-media-tooltip", "pip"), wt(t, "PiP");
|
|
4615
4615
|
}
|
|
4616
4616
|
#e(t) {
|
|
4617
4617
|
const e = this.#t.remote;
|
|
@@ -4633,7 +4633,7 @@ class Bn extends b {
|
|
|
4633
4633
|
};
|
|
4634
4634
|
#t;
|
|
4635
4635
|
constructor() {
|
|
4636
|
-
super(), new
|
|
4636
|
+
super(), new it();
|
|
4637
4637
|
}
|
|
4638
4638
|
onSetup() {
|
|
4639
4639
|
this.#t = $();
|
|
@@ -4642,14 +4642,14 @@ class Bn extends b {
|
|
|
4642
4642
|
seconds: e,
|
|
4643
4643
|
"data-seeking": t,
|
|
4644
4644
|
"data-supported": s,
|
|
4645
|
-
"aria-hidden":
|
|
4645
|
+
"aria-hidden": H(() => !s())
|
|
4646
4646
|
});
|
|
4647
4647
|
}
|
|
4648
4648
|
onAttach(t) {
|
|
4649
|
-
E(t, "tabindex", "0"), E(t, "role", "button"), E(t, "type", "button"), t.setAttribute("data-media-tooltip", "seek"),
|
|
4649
|
+
E(t, "tabindex", "0"), E(t, "role", "button"), E(t, "type", "button"), t.setAttribute("data-media-tooltip", "seek"), wt(t, this.#s.bind(this));
|
|
4650
4650
|
}
|
|
4651
4651
|
onConnect(t) {
|
|
4652
|
-
|
|
4652
|
+
gt(t, this.#i.bind(this));
|
|
4653
4653
|
}
|
|
4654
4654
|
#e() {
|
|
4655
4655
|
const { canSeek: t } = this.#t.$state;
|
|
@@ -4672,7 +4672,7 @@ class Gn extends b {
|
|
|
4672
4672
|
};
|
|
4673
4673
|
#t;
|
|
4674
4674
|
constructor() {
|
|
4675
|
-
super(), new
|
|
4675
|
+
super(), new it();
|
|
4676
4676
|
}
|
|
4677
4677
|
onSetup() {
|
|
4678
4678
|
this.#t = $();
|
|
@@ -4680,22 +4680,22 @@ class Gn extends b {
|
|
|
4680
4680
|
this.setAttributes({
|
|
4681
4681
|
"data-edge": s,
|
|
4682
4682
|
"data-hidden": i,
|
|
4683
|
-
"aria-disabled":
|
|
4684
|
-
"aria-hidden":
|
|
4683
|
+
"aria-disabled": H(() => t() || s()),
|
|
4684
|
+
"aria-hidden": H(i)
|
|
4685
4685
|
});
|
|
4686
4686
|
}
|
|
4687
4687
|
onAttach(t) {
|
|
4688
4688
|
E(t, "tabindex", "0"), E(t, "role", "button"), E(t, "type", "button"), t.setAttribute("data-media-tooltip", "live");
|
|
4689
4689
|
}
|
|
4690
4690
|
onConnect(t) {
|
|
4691
|
-
|
|
4691
|
+
gt(t, this.#e.bind(this));
|
|
4692
4692
|
}
|
|
4693
4693
|
#e(t) {
|
|
4694
4694
|
const { disabled: e } = this.$props, { liveEdge: s } = this.#t.$state;
|
|
4695
4695
|
e() || s() || this.#t.remote.seekToLiveEdge(t);
|
|
4696
4696
|
}
|
|
4697
4697
|
}
|
|
4698
|
-
const
|
|
4698
|
+
const Lt = new vt({
|
|
4699
4699
|
min: 0,
|
|
4700
4700
|
max: 100,
|
|
4701
4701
|
value: 0,
|
|
@@ -4709,23 +4709,23 @@ const Et = new gt({
|
|
|
4709
4709
|
return this.dragging || this.focused || this.pointing;
|
|
4710
4710
|
},
|
|
4711
4711
|
get fillRate() {
|
|
4712
|
-
return
|
|
4712
|
+
return Ls(this.min, this.max, this.value);
|
|
4713
4713
|
},
|
|
4714
4714
|
get fillPercent() {
|
|
4715
4715
|
return this.fillRate * 100;
|
|
4716
4716
|
},
|
|
4717
4717
|
get pointerRate() {
|
|
4718
|
-
return
|
|
4718
|
+
return Ls(this.min, this.max, this.pointerValue);
|
|
4719
4719
|
},
|
|
4720
4720
|
get pointerPercent() {
|
|
4721
4721
|
return this.pointerRate * 100;
|
|
4722
4722
|
}
|
|
4723
4723
|
});
|
|
4724
|
-
function
|
|
4724
|
+
function Ls(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 pi extends st {
|
|
4729
4729
|
#t;
|
|
4730
4730
|
#e;
|
|
4731
4731
|
constructor(t) {
|
|
@@ -4743,15 +4743,15 @@ class li extends tt {
|
|
|
4743
4743
|
this.#e?.disconnect(), this.#e = void 0;
|
|
4744
4744
|
}
|
|
4745
4745
|
}
|
|
4746
|
-
const
|
|
4746
|
+
const is = bt(), Xt = bt();
|
|
4747
4747
|
function Un(a, t, e, s) {
|
|
4748
|
-
return
|
|
4748
|
+
return Ze(a, D(e, Qa(s)), t);
|
|
4749
4749
|
}
|
|
4750
4750
|
function Kn(a, t, e, s) {
|
|
4751
|
-
const i =
|
|
4751
|
+
const i = Ze(0, e, 1), n = t - a, r = n * i, o = r / s, h = s * Math.round(o);
|
|
4752
4752
|
return a + h;
|
|
4753
4753
|
}
|
|
4754
|
-
const
|
|
4754
|
+
const De = {
|
|
4755
4755
|
Left: -1,
|
|
4756
4756
|
ArrowLeft: -1,
|
|
4757
4757
|
Up: 1,
|
|
@@ -4761,7 +4761,7 @@ const qe = {
|
|
|
4761
4761
|
Down: -1,
|
|
4762
4762
|
ArrowDown: -1
|
|
4763
4763
|
};
|
|
4764
|
-
class Qn extends
|
|
4764
|
+
class Qn extends st {
|
|
4765
4765
|
#t;
|
|
4766
4766
|
#e;
|
|
4767
4767
|
#s;
|
|
@@ -4769,7 +4769,7 @@ class Qn extends tt {
|
|
|
4769
4769
|
super(), this.#t = t, this.#e = e;
|
|
4770
4770
|
}
|
|
4771
4771
|
onSetup() {
|
|
4772
|
-
K(
|
|
4772
|
+
K(Xt) && (this.#s = q(Xt));
|
|
4773
4773
|
}
|
|
4774
4774
|
onConnect(t) {
|
|
4775
4775
|
l(this.#l.bind(this, t)), l(this.#c.bind(this, t)), this.#t.swipeGesture && l(this.#i.bind(this));
|
|
@@ -4782,7 +4782,7 @@ class Qn extends tt {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
this.#a = this.#e.player.el?.querySelector(
|
|
4784
4784
|
"media-provider,[data-media-provider]"
|
|
4785
|
-
), this.#a && new
|
|
4785
|
+
), this.#a && new M(this.#a).add("touchstart", this.#o.bind(this), {
|
|
4786
4786
|
passive: !0
|
|
4787
4787
|
}).add("touchmove", this.#h.bind(this), { passive: !1 });
|
|
4788
4788
|
}
|
|
@@ -4793,16 +4793,16 @@ class Qn extends tt {
|
|
|
4793
4793
|
this.#n = t.touches[0];
|
|
4794
4794
|
}
|
|
4795
4795
|
#h(t) {
|
|
4796
|
-
if (
|
|
4796
|
+
if (lt(this.#n) || Xe(t)) return;
|
|
4797
4797
|
const e = t.touches[0], s = e.clientX - this.#n.clientX, i = e.clientY - this.#n.clientY, n = this.$state.dragging();
|
|
4798
4798
|
!n && Math.abs(i) > 5 || n || (t.preventDefault(), Math.abs(s) > 20 && (this.#n = e, this.#r = this.$state.value(), this.#w(this.#r, t)));
|
|
4799
4799
|
}
|
|
4800
4800
|
#l(t) {
|
|
4801
4801
|
const { hidden: e } = this.$props;
|
|
4802
|
-
|
|
4802
|
+
N(t, "focus", this.#u.bind(this)), !(e() || this.#t.isDisabled()) && new M(t).add("keyup", this.#k.bind(this)).add("keydown", this.#T.bind(this)).add("pointerenter", this.#y.bind(this)).add("pointermove", this.#g.bind(this)).add("pointerleave", this.#b.bind(this)).add("pointerdown", this.#$.bind(this));
|
|
4803
4803
|
}
|
|
4804
4804
|
#c(t) {
|
|
4805
|
-
this.#t.isDisabled() || !this.$state.dragging() || new
|
|
4805
|
+
this.#t.isDisabled() || !this.$state.dragging() || new M(document).add("pointerup", this.#E.bind(this), { capture: !0 }).add("pointermove", this.#x.bind(this)).add("touchmove", this.#A.bind(this), {
|
|
4806
4806
|
passive: !1
|
|
4807
4807
|
});
|
|
4808
4808
|
}
|
|
@@ -4879,9 +4879,9 @@ class Qn extends tt {
|
|
|
4879
4879
|
#P;
|
|
4880
4880
|
#f = !1;
|
|
4881
4881
|
#T(t) {
|
|
4882
|
-
if (!Object.keys(
|
|
4882
|
+
if (!Object.keys(De).includes(t.key)) return;
|
|
4883
4883
|
const { key: s } = t, i = this.#S(t);
|
|
4884
|
-
if (!
|
|
4884
|
+
if (!lt(i)) {
|
|
4885
4885
|
this.#p(i, t), this.#d(i, t);
|
|
4886
4886
|
return;
|
|
4887
4887
|
}
|
|
@@ -4889,7 +4889,7 @@ class Qn extends tt {
|
|
|
4889
4889
|
this.#f || (this.#f = s === this.#P, !this.$state.dragging() && this.#f && this.#w(n, t)), this.#p(n, t), this.#P = s;
|
|
4890
4890
|
}
|
|
4891
4891
|
#k(t) {
|
|
4892
|
-
if (!Object.keys(
|
|
4892
|
+
if (!Object.keys(De).includes(t.key) || !lt(this.#S(t))) return;
|
|
4893
4893
|
const s = this.#f ? this.$state.pointerValue() : this.#C(t);
|
|
4894
4894
|
this.#d(s, t), this.#v(s, t), this.#P = "", this.#f = !1;
|
|
4895
4895
|
}
|
|
@@ -4900,8 +4900,8 @@ class Qn extends tt {
|
|
|
4900
4900
|
#C(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(
|
|
4904
|
-
return Math.max(n(), Math.min(r(), Number((d *
|
|
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(De[e]), g = u * m, C = this.#f ? h() : this.#t.getValue?.() ?? o(), _ = (C + g) / d;
|
|
4904
|
+
return Math.max(n(), Math.min(r(), Number((d * _).toFixed(3))));
|
|
4905
4905
|
}
|
|
4906
4906
|
// -------------------------------------------------------------------------------------------
|
|
4907
4907
|
// Document (Pointer Events)
|
|
@@ -4915,7 +4915,7 @@ class Qn extends tt {
|
|
|
4915
4915
|
#A(t) {
|
|
4916
4916
|
t.preventDefault();
|
|
4917
4917
|
}
|
|
4918
|
-
#x =
|
|
4918
|
+
#x = At(
|
|
4919
4919
|
(t) => {
|
|
4920
4920
|
this.#p(this.#m(t), t);
|
|
4921
4921
|
},
|
|
@@ -4923,8 +4923,8 @@ class Qn extends tt {
|
|
|
4923
4923
|
{ leading: !0 }
|
|
4924
4924
|
);
|
|
4925
4925
|
}
|
|
4926
|
-
const
|
|
4927
|
-
class X extends
|
|
4926
|
+
const Vt = bt(() => ({}));
|
|
4927
|
+
class X extends st {
|
|
4928
4928
|
static props = {
|
|
4929
4929
|
hidden: !1,
|
|
4930
4930
|
disabled: !1,
|
|
@@ -4942,14 +4942,14 @@ class X extends tt {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
onSetup() {
|
|
4944
4944
|
this.#t = $();
|
|
4945
|
-
const t = new
|
|
4946
|
-
t.attach(this), this.$state.focused = t.focused.bind(t), K(
|
|
4945
|
+
const t = new it();
|
|
4946
|
+
t.attach(this), this.$state.focused = t.focused.bind(t), K(Vt) || Y(Vt, {
|
|
4947
4947
|
default: "value"
|
|
4948
|
-
}), Y(
|
|
4948
|
+
}), Y(is, {
|
|
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 Qn(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 Qn(this.#e, this.#t).attach(this), new pi({
|
|
4953
4953
|
callback: this.#a.bind(this)
|
|
4954
4954
|
}).attach(this);
|
|
4955
4955
|
}
|
|
@@ -4957,7 +4957,7 @@ class X extends tt {
|
|
|
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
|
-
P(
|
|
4960
|
+
P(Xs(t, this.#s.set)), l(this.#n.bind(this));
|
|
4961
4961
|
}
|
|
4962
4962
|
#a(t) {
|
|
4963
4963
|
this.#i.set(t[0].isIntersecting);
|
|
@@ -4985,7 +4985,7 @@ class X extends tt {
|
|
|
4985
4985
|
// ARIA
|
|
4986
4986
|
// -------------------------------------------------------------------------------------------
|
|
4987
4987
|
#l() {
|
|
4988
|
-
return
|
|
4988
|
+
return ye(this.#e.isDisabled());
|
|
4989
4989
|
}
|
|
4990
4990
|
// -------------------------------------------------------------------------------------------
|
|
4991
4991
|
// Attributes
|
|
@@ -5006,20 +5006,20 @@ class X extends tt {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
#u() {
|
|
5008
5008
|
const { fillPercent: t, pointerPercent: e } = this.$state;
|
|
5009
|
-
this.#d(
|
|
5009
|
+
this.#d(D(t(), 3), D(e(), 3));
|
|
5010
5010
|
}
|
|
5011
|
-
#d =
|
|
5011
|
+
#d = Ot((t, e) => {
|
|
5012
5012
|
this.el?.style.setProperty("--slider-fill", t + "%"), this.el?.style.setProperty("--slider-pointer", e + "%");
|
|
5013
5013
|
});
|
|
5014
5014
|
}
|
|
5015
|
-
class
|
|
5015
|
+
class re extends b {
|
|
5016
5016
|
static props = {
|
|
5017
5017
|
...X.props,
|
|
5018
5018
|
min: 0,
|
|
5019
5019
|
max: 100,
|
|
5020
5020
|
value: 0
|
|
5021
5021
|
};
|
|
5022
|
-
static state =
|
|
5022
|
+
static state = Lt;
|
|
5023
5023
|
constructor() {
|
|
5024
5024
|
super(), new X({
|
|
5025
5025
|
getStep: this.$props.step,
|
|
@@ -5044,7 +5044,7 @@ class ie extends b {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
#e() {
|
|
5046
5046
|
const { value: t, max: e } = this.$state;
|
|
5047
|
-
return
|
|
5047
|
+
return D(t() / e() * 100, 2) + "%";
|
|
5048
5048
|
}
|
|
5049
5049
|
// -------------------------------------------------------------------------------------------
|
|
5050
5050
|
// Watch
|
|
@@ -5058,15 +5058,15 @@ class ie extends b {
|
|
|
5058
5058
|
this.$state.min.set(t()), this.$state.max.set(e());
|
|
5059
5059
|
}
|
|
5060
5060
|
}
|
|
5061
|
-
const
|
|
5062
|
-
class
|
|
5061
|
+
const ot = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
|
|
5062
|
+
class as {
|
|
5063
5063
|
#t;
|
|
5064
5064
|
#e;
|
|
5065
5065
|
#s;
|
|
5066
5066
|
$images = w([]);
|
|
5067
5067
|
static create(t, e) {
|
|
5068
5068
|
const s = $();
|
|
5069
|
-
return new
|
|
5069
|
+
return new as(t, e, s);
|
|
5070
5070
|
}
|
|
5071
5071
|
constructor(t, e, s) {
|
|
5072
5072
|
this.#e = t, this.#s = e, this.#t = s, l(this.#i.bind(this));
|
|
@@ -5076,20 +5076,20 @@ class ts {
|
|
|
5076
5076
|
if (!t()) return;
|
|
5077
5077
|
const e = this.#e();
|
|
5078
5078
|
if (e) {
|
|
5079
|
-
if (S(e) &&
|
|
5080
|
-
const s =
|
|
5081
|
-
if (
|
|
5082
|
-
const i =
|
|
5083
|
-
|
|
5079
|
+
if (S(e) && ot.has(e)) {
|
|
5080
|
+
const s = ot.get(e);
|
|
5081
|
+
if (ot.delete(e), ot.set(e, s), ot.size > 99) {
|
|
5082
|
+
const i = ot.keys().next().value;
|
|
5083
|
+
ot.delete(i);
|
|
5084
5084
|
}
|
|
5085
|
-
this.$images.set(
|
|
5085
|
+
this.$images.set(ot.get(e));
|
|
5086
5086
|
} else if (S(e)) {
|
|
5087
5087
|
const s = this.#s(), i = e + "::" + s;
|
|
5088
|
-
if (!
|
|
5088
|
+
if (!ue.has(i)) {
|
|
5089
5089
|
const n = new Promise(async (r, o) => {
|
|
5090
5090
|
try {
|
|
5091
5091
|
const h = await fetch(e, {
|
|
5092
|
-
credentials:
|
|
5092
|
+
credentials: Yt(s)
|
|
5093
5093
|
});
|
|
5094
5094
|
if (h.headers.get("content-type") === "application/json") {
|
|
5095
5095
|
const c = await h.json();
|
|
@@ -5099,10 +5099,10 @@ class ts {
|
|
|
5099
5099
|
else {
|
|
5100
5100
|
for (let u = 0; u < c.length; u++) {
|
|
5101
5101
|
const m = c[u];
|
|
5102
|
-
|
|
5102
|
+
rt(aa(m), !1), rt(
|
|
5103
5103
|
"url" in m && S(m.url),
|
|
5104
5104
|
!1
|
|
5105
|
-
),
|
|
5105
|
+
), rt(
|
|
5106
5106
|
"startTime" in m && z(m.startTime),
|
|
5107
5107
|
!1
|
|
5108
5108
|
);
|
|
@@ -5124,14 +5124,14 @@ class ts {
|
|
|
5124
5124
|
} catch (h) {
|
|
5125
5125
|
o(h);
|
|
5126
5126
|
}
|
|
5127
|
-
}).then((r) => (
|
|
5127
|
+
}).then((r) => (ot.set(i, r), r)).catch((r) => {
|
|
5128
5128
|
this.#c(e, r);
|
|
5129
5129
|
}).finally(() => {
|
|
5130
|
-
S(i) &&
|
|
5130
|
+
S(i) && ue.delete(i);
|
|
5131
5131
|
});
|
|
5132
|
-
|
|
5132
|
+
ue.set(i, n);
|
|
5133
5133
|
}
|
|
5134
|
-
|
|
5134
|
+
ue.get(i)?.then((n) => {
|
|
5135
5135
|
this.$images.set(n || []);
|
|
5136
5136
|
});
|
|
5137
5137
|
} else if (G(e))
|
|
@@ -5153,9 +5153,9 @@ class ts {
|
|
|
5153
5153
|
}
|
|
5154
5154
|
#a(t) {
|
|
5155
5155
|
const e = this.#o();
|
|
5156
|
-
return t.map((s, i) => (
|
|
5156
|
+
return t.map((s, i) => (rt(
|
|
5157
5157
|
s.url && S(s.url)
|
|
5158
|
-
),
|
|
5158
|
+
), rt(
|
|
5159
5159
|
"startTime" in s && z(s.startTime)
|
|
5160
5160
|
), {
|
|
5161
5161
|
...s,
|
|
@@ -5163,7 +5163,7 @@ class ts {
|
|
|
5163
5163
|
}));
|
|
5164
5164
|
}
|
|
5165
5165
|
#n(t) {
|
|
5166
|
-
|
|
5166
|
+
rt(S(t.url)), rt(G(t.tiles) && t.tiles?.length);
|
|
5167
5167
|
const e = new URL(t.url), s = [], i = "tile_width" in t ? t.tile_width : t.tileWidth, n = "tile_height" in t ? t.tile_height : t.tileHeight;
|
|
5168
5168
|
for (const r of t.tiles)
|
|
5169
5169
|
s.push({
|
|
@@ -5178,9 +5178,9 @@ class ts {
|
|
|
5178
5178
|
#r(t) {
|
|
5179
5179
|
for (let i = 0; i < t.length; i++) {
|
|
5180
5180
|
const n = t[i];
|
|
5181
|
-
|
|
5181
|
+
rt(
|
|
5182
5182
|
"startTime" in n && z(n.startTime)
|
|
5183
|
-
),
|
|
5183
|
+
), rt(
|
|
5184
5184
|
"text" in n && S(n.text)
|
|
5185
5185
|
);
|
|
5186
5186
|
}
|
|
@@ -5225,7 +5225,7 @@ class zn extends b {
|
|
|
5225
5225
|
time: 0,
|
|
5226
5226
|
crossOrigin: null
|
|
5227
5227
|
};
|
|
5228
|
-
static state = new
|
|
5228
|
+
static state = new vt({
|
|
5229
5229
|
src: "",
|
|
5230
5230
|
img: null,
|
|
5231
5231
|
thumbnails: [],
|
|
@@ -5239,11 +5239,11 @@ class zn extends b {
|
|
|
5239
5239
|
#t;
|
|
5240
5240
|
#e = [];
|
|
5241
5241
|
onSetup() {
|
|
5242
|
-
this.media = $(), this.#t =
|
|
5242
|
+
this.media = $(), this.#t = as.create(this.$props.src, this.$state.crossOrigin), this.#i(), this.setAttributes({
|
|
5243
5243
|
"data-loading": this.#o.bind(this),
|
|
5244
5244
|
"data-error": this.#h.bind(this),
|
|
5245
5245
|
"data-hidden": this.$state.hidden,
|
|
5246
|
-
"aria-hidden":
|
|
5246
|
+
"aria-hidden": H(this.$state.hidden)
|
|
5247
5247
|
});
|
|
5248
5248
|
}
|
|
5249
5249
|
onConnect(t) {
|
|
@@ -5251,7 +5251,7 @@ class zn extends b {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
#s() {
|
|
5253
5253
|
const t = this.$state.img();
|
|
5254
|
-
t && new
|
|
5254
|
+
t && new M(t).add("load", this.#n.bind(this)).add("error", this.#r.bind(this));
|
|
5255
5255
|
}
|
|
5256
5256
|
#i() {
|
|
5257
5257
|
const { crossOrigin: t } = this.$props, { crossOrigin: e } = this.$state, { crossOrigin: s } = this.media.$state, i = t() !== null ? t() : s();
|
|
@@ -5277,7 +5277,7 @@ class zn extends b {
|
|
|
5277
5277
|
}
|
|
5278
5278
|
#h() {
|
|
5279
5279
|
const { error: t } = this.$state;
|
|
5280
|
-
return !
|
|
5280
|
+
return !lt(t());
|
|
5281
5281
|
}
|
|
5282
5282
|
#l() {
|
|
5283
5283
|
const { hidden: t } = this.$state, { duration: e } = this.media.$state, s = this.#t.$images();
|
|
@@ -5316,7 +5316,7 @@ class zn extends b {
|
|
|
5316
5316
|
Math.max(parseInt(h), parseInt(r)) / i,
|
|
5317
5317
|
Math.max(parseInt(d), parseInt(o)) / n
|
|
5318
5318
|
), C = !isNaN(g) && g < 1 ? g : m > 1 ? m : 1;
|
|
5319
|
-
this.#d(t, "--thumbnail-width", `${i * C}px`), this.#d(t, "--thumbnail-height", `${n * C}px`), this.#d(t, "--thumbnail-aspect-ratio", String(
|
|
5319
|
+
this.#d(t, "--thumbnail-width", `${i * C}px`), this.#d(t, "--thumbnail-height", `${n * C}px`), this.#d(t, "--thumbnail-aspect-ratio", String(D(i / n, 5))), this.#d(e, "width", `${e.naturalWidth * C}px`), this.#d(e, "height", `${e.naturalHeight * C}px`), this.#d(
|
|
5320
5320
|
e,
|
|
5321
5321
|
"transform",
|
|
5322
5322
|
s.coords ? `translate(-${s.coords.x * C}px, -${s.coords.y * C}px)` : ""
|
|
@@ -5330,7 +5330,7 @@ class zn extends b {
|
|
|
5330
5330
|
this.#e = [];
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
|
-
class
|
|
5333
|
+
class mi extends b {
|
|
5334
5334
|
static props = {
|
|
5335
5335
|
type: "pointer",
|
|
5336
5336
|
format: null,
|
|
@@ -5344,7 +5344,7 @@ class di extends b {
|
|
|
5344
5344
|
#e;
|
|
5345
5345
|
#s;
|
|
5346
5346
|
onSetup() {
|
|
5347
|
-
this.#s =
|
|
5347
|
+
this.#s = Nt(re.state), this.#t = q(Vt), this.#e = at(this.getValueText.bind(this));
|
|
5348
5348
|
}
|
|
5349
5349
|
/**
|
|
5350
5350
|
* Returns the current value formatted as text based on prop settings.
|
|
@@ -5360,9 +5360,9 @@ class di extends b {
|
|
|
5360
5360
|
showMs: o
|
|
5361
5361
|
} = this.$props, { value: h, pointerValue: d, min: c, max: u } = this.#s, m = e?.() ?? this.#t.default, g = t() === "current" ? h() : d();
|
|
5362
5362
|
if (m === "percent") {
|
|
5363
|
-
const C = u() - c(),
|
|
5364
|
-
return (this.#t.percent ??
|
|
5365
|
-
} else return m === "time" ? (this.#t.time ??
|
|
5363
|
+
const C = u() - c(), _ = g / C * 100;
|
|
5364
|
+
return (this.#t.percent ?? D)(_, s()) + "%";
|
|
5365
|
+
} else return m === "time" ? (this.#t.time ?? Pe)(g, {
|
|
5366
5366
|
padHrs: i(),
|
|
5367
5367
|
padMins: n(),
|
|
5368
5368
|
showHrs: r(),
|
|
@@ -5370,7 +5370,7 @@ class di extends b {
|
|
|
5370
5370
|
}) : (this.#t.value?.(g) ?? g.toFixed(2)) + "";
|
|
5371
5371
|
}
|
|
5372
5372
|
}
|
|
5373
|
-
const Wn =
|
|
5373
|
+
const Wn = mi.prototype;
|
|
5374
5374
|
I(Wn, "getValueText");
|
|
5375
5375
|
class jn extends b {
|
|
5376
5376
|
static props = {
|
|
@@ -5379,8 +5379,8 @@ class jn extends b {
|
|
|
5379
5379
|
};
|
|
5380
5380
|
#t;
|
|
5381
5381
|
onSetup() {
|
|
5382
|
-
this.#t =
|
|
5383
|
-
const { active: t } =
|
|
5382
|
+
this.#t = q(is);
|
|
5383
|
+
const { active: t } = Nt(re.state);
|
|
5384
5384
|
this.setAttributes({
|
|
5385
5385
|
"data-visible": t
|
|
5386
5386
|
});
|
|
@@ -5399,7 +5399,7 @@ class jn extends b {
|
|
|
5399
5399
|
const s = new ResizeObserver(this.#e.bind(this));
|
|
5400
5400
|
s.observe(t), P(() => s.disconnect());
|
|
5401
5401
|
}
|
|
5402
|
-
#e =
|
|
5402
|
+
#e = Ot(() => {
|
|
5403
5403
|
const { disabled: t, orientation: e } = this.#t;
|
|
5404
5404
|
if (t()) return;
|
|
5405
5405
|
const s = this.el, { offset: i, noClamp: n } = this.$props;
|
|
@@ -5446,12 +5446,12 @@ class Xn extends b {
|
|
|
5446
5446
|
keyStep: 5,
|
|
5447
5447
|
shiftKeyMultiplier: 2
|
|
5448
5448
|
};
|
|
5449
|
-
static state =
|
|
5449
|
+
static state = Lt;
|
|
5450
5450
|
#t;
|
|
5451
5451
|
onSetup() {
|
|
5452
5452
|
this.#t = $();
|
|
5453
5453
|
const { audioGain: t } = this.#t.$state;
|
|
5454
|
-
Y(
|
|
5454
|
+
Y(Vt, {
|
|
5455
5455
|
default: "percent",
|
|
5456
5456
|
value(e) {
|
|
5457
5457
|
return (e * (t() ?? 1)).toFixed(2);
|
|
@@ -5478,7 +5478,7 @@ class Xn extends b {
|
|
|
5478
5478
|
const { canSetVolume: e } = this.#t.$state;
|
|
5479
5479
|
this.setAttributes({
|
|
5480
5480
|
"data-supported": e,
|
|
5481
|
-
"aria-hidden":
|
|
5481
|
+
"aria-hidden": H(() => !e())
|
|
5482
5482
|
});
|
|
5483
5483
|
}
|
|
5484
5484
|
#e() {
|
|
@@ -5487,7 +5487,7 @@ class Xn extends b {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
#s() {
|
|
5489
5489
|
const { value: t, max: e } = this.$state, { audioGain: s } = this.#t.$state;
|
|
5490
|
-
return
|
|
5490
|
+
return D(t() / e() * (s() ?? 1) * 100, 2) + "%";
|
|
5491
5491
|
}
|
|
5492
5492
|
#i() {
|
|
5493
5493
|
const { audioGain: t } = this.#t.$state;
|
|
@@ -5501,10 +5501,10 @@ class Xn extends b {
|
|
|
5501
5501
|
const { muted: t, volume: e } = this.#t.$state, s = t() ? 0 : e() * 100;
|
|
5502
5502
|
this.$state.value.set(s), this.dispatch("value-change", { detail: s });
|
|
5503
5503
|
}
|
|
5504
|
-
#r =
|
|
5504
|
+
#r = At(this.#o.bind(this), 25);
|
|
5505
5505
|
#o(t) {
|
|
5506
5506
|
if (!t.trigger) return;
|
|
5507
|
-
const e =
|
|
5507
|
+
const e = D(t.detail / 100, 3);
|
|
5508
5508
|
this.#t.remote.changeVolume(e, t);
|
|
5509
5509
|
}
|
|
5510
5510
|
#h(t) {
|
|
@@ -5514,7 +5514,7 @@ class Xn extends b {
|
|
|
5514
5514
|
this.#r(t);
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
let
|
|
5517
|
+
let fi = class extends b {
|
|
5518
5518
|
static props = {
|
|
5519
5519
|
...X.props,
|
|
5520
5520
|
step: 0.1,
|
|
@@ -5524,7 +5524,7 @@ let ci = class extends b {
|
|
|
5524
5524
|
noSwipeGesture: !1,
|
|
5525
5525
|
seekingRequestThrottle: 100
|
|
5526
5526
|
};
|
|
5527
|
-
static state =
|
|
5527
|
+
static state = Lt;
|
|
5528
5528
|
#t;
|
|
5529
5529
|
#e;
|
|
5530
5530
|
#s = w(null);
|
|
@@ -5549,7 +5549,7 @@ let ci = class extends b {
|
|
|
5549
5549
|
});
|
|
5550
5550
|
}
|
|
5551
5551
|
onSetup() {
|
|
5552
|
-
this.#t = $(), Y(
|
|
5552
|
+
this.#t = $(), Y(Vt, {
|
|
5553
5553
|
default: "time",
|
|
5554
5554
|
value: this.#k.bind(this),
|
|
5555
5555
|
time: this.#S.bind(this)
|
|
@@ -5563,18 +5563,18 @@ let ci = class extends b {
|
|
|
5563
5563
|
t.setAttribute("data-media-time-slider", ""), E(t, "aria-label", "Seek");
|
|
5564
5564
|
}
|
|
5565
5565
|
onConnect(t) {
|
|
5566
|
-
l(this.#o.bind(this)),
|
|
5566
|
+
l(this.#o.bind(this)), ke(this.#t.textTracks, "chapters", this.#s.set);
|
|
5567
5567
|
}
|
|
5568
5568
|
#i() {
|
|
5569
5569
|
const { bufferedEnd: t, duration: e } = this.#t.$state;
|
|
5570
|
-
return
|
|
5570
|
+
return D(Math.min(t() / Math.max(e(), 1), 1) * 100, 3) + "%";
|
|
5571
5571
|
}
|
|
5572
5572
|
#a() {
|
|
5573
5573
|
const { duration: t } = this.#t.$state;
|
|
5574
5574
|
return this.#s()?.cues.length && Number.isFinite(t()) && t() > 0;
|
|
5575
5575
|
}
|
|
5576
5576
|
#n() {
|
|
5577
|
-
this.#e =
|
|
5577
|
+
this.#e = At(
|
|
5578
5578
|
this.#h.bind(this),
|
|
5579
5579
|
this.$props.seekingRequestThrottle()
|
|
5580
5580
|
);
|
|
@@ -5585,7 +5585,7 @@ let ci = class extends b {
|
|
|
5585
5585
|
p(e) || (t.set(s), this.dispatch("value-change", { detail: s }));
|
|
5586
5586
|
}
|
|
5587
5587
|
#o() {
|
|
5588
|
-
const t = this.#t.player.el, { preview: e } =
|
|
5588
|
+
const t = this.#t.player.el, { preview: e } = q(is);
|
|
5589
5589
|
t && e() && f(t, "data-preview", this.$state.active());
|
|
5590
5590
|
}
|
|
5591
5591
|
#h(t, e) {
|
|
@@ -5639,7 +5639,7 @@ let ci = class extends b {
|
|
|
5639
5639
|
return Number.isFinite(t) ? t : 1;
|
|
5640
5640
|
}
|
|
5641
5641
|
#$(t) {
|
|
5642
|
-
return
|
|
5642
|
+
return D(t, 3);
|
|
5643
5643
|
}
|
|
5644
5644
|
#w() {
|
|
5645
5645
|
const { disabled: t } = this.$props, { canSeek: e } = this.#t.$state;
|
|
@@ -5654,14 +5654,14 @@ let ci = class extends b {
|
|
|
5654
5654
|
}
|
|
5655
5655
|
#P() {
|
|
5656
5656
|
const t = this.#f(this.$state.value()), { duration: e } = this.#t.$state;
|
|
5657
|
-
return Number.isFinite(t) ? `${
|
|
5657
|
+
return Number.isFinite(t) ? `${we(t)} out of ${we(e())}` : "live";
|
|
5658
5658
|
}
|
|
5659
5659
|
// -------------------------------------------------------------------------------------------
|
|
5660
5660
|
// Format
|
|
5661
5661
|
// -------------------------------------------------------------------------------------------
|
|
5662
5662
|
#f(t) {
|
|
5663
5663
|
const { duration: e } = this.#t.$state;
|
|
5664
|
-
return
|
|
5664
|
+
return D(t / 100 * e(), 5);
|
|
5665
5665
|
}
|
|
5666
5666
|
#T(t) {
|
|
5667
5667
|
const { liveEdge: e, duration: s } = this.#t.$state, i = Math.max(0, Math.min(1, e() ? 1 : Math.min(t, s()) / s()));
|
|
@@ -5673,10 +5673,10 @@ let ci = class extends b {
|
|
|
5673
5673
|
}
|
|
5674
5674
|
#S(t, e) {
|
|
5675
5675
|
const s = this.#f(t), { live: i, duration: n } = this.#t.$state, r = i() ? s - n() : s;
|
|
5676
|
-
return Number.isFinite(s) ? `${r < 0 ? "-" : ""}${
|
|
5676
|
+
return Number.isFinite(s) ? `${r < 0 ? "-" : ""}${Pe(Math.abs(r), e)}` : "LIVE";
|
|
5677
5677
|
}
|
|
5678
5678
|
};
|
|
5679
|
-
const
|
|
5679
|
+
const R = bt();
|
|
5680
5680
|
function Jn(a, t) {
|
|
5681
5681
|
const e = ia(a, t);
|
|
5682
5682
|
for (const { el: s, top: i, left: n } of e)
|
|
@@ -5720,12 +5720,12 @@ class sr {
|
|
|
5720
5720
|
this.#i = t;
|
|
5721
5721
|
}
|
|
5722
5722
|
attachMenu(t) {
|
|
5723
|
-
|
|
5723
|
+
N(t, "focus", this.#r.bind(this)), this.#e = t, P(() => {
|
|
5724
5724
|
this.#e = null;
|
|
5725
5725
|
});
|
|
5726
5726
|
}
|
|
5727
5727
|
listen() {
|
|
5728
|
-
this.#e && (this.update(), new
|
|
5728
|
+
this.#e && (this.update(), new M(this.#e).add("keyup", this.#h.bind(this)).add("keydown", this.#l.bind(this)), P(() => {
|
|
5729
5729
|
this.#t = -1, this.#s = [];
|
|
5730
5730
|
}));
|
|
5731
5731
|
}
|
|
@@ -5805,18 +5805,18 @@ class sr {
|
|
|
5805
5805
|
if (!this.#e) return [];
|
|
5806
5806
|
const t = this.#e.querySelectorAll(tr), e = [], s = (i) => i.getAttribute("role") === "menu";
|
|
5807
5807
|
for (const i of t)
|
|
5808
|
-
|
|
5809
|
-
|
|
5808
|
+
xt(i) && i.offsetParent !== null && // does not have display: none
|
|
5809
|
+
Js(this.#e, i, s) && e.push(i);
|
|
5810
5810
|
return e;
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
5813
|
-
var ir = Object.defineProperty, ar = Object.getOwnPropertyDescriptor,
|
|
5813
|
+
var ir = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, oe = (a, t, e, s) => {
|
|
5814
5814
|
for (var i = ar(t, e), n = a.length - 1, r; n >= 0; n--)
|
|
5815
5815
|
(r = a[n]) && (i = r(t, e, i) || i);
|
|
5816
5816
|
return i && ir(t, e, i), i;
|
|
5817
5817
|
};
|
|
5818
5818
|
let nr = 0;
|
|
5819
|
-
class
|
|
5819
|
+
class Ht extends b {
|
|
5820
5820
|
static props = {
|
|
5821
5821
|
showDelay: 0
|
|
5822
5822
|
};
|
|
@@ -5847,16 +5847,16 @@ 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 ui({
|
|
5851
5851
|
trigger: this.#n,
|
|
5852
5852
|
content: this.#r,
|
|
5853
5853
|
showDelay: t,
|
|
5854
5854
|
listen: (e, s, i) => {
|
|
5855
|
-
|
|
5855
|
+
gt(e, (r) => {
|
|
5856
5856
|
this.#i() ? i(r) : s(r);
|
|
5857
5857
|
});
|
|
5858
5858
|
const n = this.#M();
|
|
5859
|
-
n &&
|
|
5859
|
+
n && gt(n, (r) => {
|
|
5860
5860
|
r.stopPropagation(), i(r);
|
|
5861
5861
|
});
|
|
5862
5862
|
},
|
|
@@ -5868,12 +5868,12 @@ class Rt extends b {
|
|
|
5868
5868
|
const t = ++nr;
|
|
5869
5869
|
this.#e = `media-menu-${t}`, this.#s = `media-menu-button-${t}`, this.#u = new sr({
|
|
5870
5870
|
closeMenu: this.close.bind(this)
|
|
5871
|
-
}), K(
|
|
5871
|
+
}), K(R) && (this.#o = q(R)), this.#y(), this.setAttributes({
|
|
5872
5872
|
"data-open": this.#i,
|
|
5873
5873
|
"data-root": !this.isSubmenu,
|
|
5874
5874
|
"data-submenu": this.isSubmenu,
|
|
5875
5875
|
"data-disabled": this.#C.bind(this)
|
|
5876
|
-
}), Y(
|
|
5876
|
+
}), Y(R, {
|
|
5877
5877
|
button: this.#n,
|
|
5878
5878
|
content: this.#r,
|
|
5879
5879
|
expanded: this.#i,
|
|
@@ -5902,8 +5902,8 @@ class Rt extends b {
|
|
|
5902
5902
|
this.#n.set(null), this.#r.set(null), this.#l = null, this.#m.clear();
|
|
5903
5903
|
}
|
|
5904
5904
|
#y() {
|
|
5905
|
-
let t = -1, e = K(
|
|
5906
|
-
Y(
|
|
5905
|
+
let t = -1, e = K(Xt) ? q(Xt) : null;
|
|
5906
|
+
Y(Xt, {
|
|
5907
5907
|
onDragStart: () => {
|
|
5908
5908
|
e?.onDragStart?.(), window.clearTimeout(t), t = -1, this.#d = !0;
|
|
5909
5909
|
},
|
|
@@ -5919,10 +5919,10 @@ class Rt extends b {
|
|
|
5919
5919
|
this.isSubmenu || this.#O(), this.#v(t), t && (l(() => {
|
|
5920
5920
|
const { height: e } = this.#t.$state, s = this.#r();
|
|
5921
5921
|
s && j(s, "--player-height", e() + "px");
|
|
5922
|
-
}), this.#u.listen(), this.listen("pointerup", this.#A.bind(this)),
|
|
5922
|
+
}), this.#u.listen(), this.listen("pointerup", this.#A.bind(this)), N(window, "pointerup", this.#x.bind(this)));
|
|
5923
5923
|
}
|
|
5924
5924
|
#b(t) {
|
|
5925
|
-
const e = t.el, s = this.isSubmenu, i =
|
|
5925
|
+
const e = t.el, s = this.isSubmenu, i = H(this.#C.bind(this));
|
|
5926
5926
|
E(e, "tabindex", s ? "-1" : "0"), E(e, "role", s ? "menuitem" : "button"), f(e, "id", this.#s), f(e, "aria-haspopup", "menu"), f(e, "aria-expanded", "false"), f(e, "data-root", !this.isSubmenu), f(e, "data-submenu", this.isSubmenu), l(() => {
|
|
5927
5927
|
f(e, "data-open", this.#i()), f(e, "aria-disabled", i());
|
|
5928
5928
|
}), this.#n.set(e), P(() => {
|
|
@@ -5940,14 +5940,14 @@ class Rt extends b {
|
|
|
5940
5940
|
}
|
|
5941
5941
|
#v(t) {
|
|
5942
5942
|
const e = p(this.#r);
|
|
5943
|
-
e && f(e, "aria-hidden",
|
|
5943
|
+
e && f(e, "aria-hidden", ye(!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 = Ws(e), e?.stopPropagation(), this.#i() === t) return;
|
|
5951
5951
|
if (this.#C()) {
|
|
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 && (f(s, "aria-controls", t && this.#e), f(s, "aria-expanded",
|
|
5962
|
+
if (s && (f(s, "aria-controls", t && this.#e), f(s, "aria-expanded", ye(t))), i && f(i, "aria-labelledby", t && this.#s), this.#i.set(t), this.#q(e), dt(), 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", "");
|
|
@@ -5993,21 +5993,21 @@ class Rt extends b {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
#A(t) {
|
|
5995
5995
|
const e = this.#r();
|
|
5996
|
-
this.#d || e &&
|
|
5996
|
+
this.#d || e && $s(e, t) || t.stopPropagation();
|
|
5997
5997
|
}
|
|
5998
5998
|
#x(t) {
|
|
5999
5999
|
const e = this.#r();
|
|
6000
|
-
this.#d || e &&
|
|
6000
|
+
this.#d || e && $s(e, t) || this.close(t);
|
|
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 && Js(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
|
|
6010
|
+
this.#h.add(t), new M(t).add("open", this.#R).add("close", this.#H), P(this.#_);
|
|
6011
6011
|
}
|
|
6012
6012
|
#_ = this.#D.bind(this);
|
|
6013
6013
|
#D(t) {
|
|
@@ -6041,19 +6041,19 @@ class Rt extends b {
|
|
|
6041
6041
|
for (const s of e.children)
|
|
6042
6042
|
s.removeAttribute("data-open"), s.removeAttribute("data-hidden");
|
|
6043
6043
|
}
|
|
6044
|
-
#O =
|
|
6044
|
+
#O = Ot(() => {
|
|
6045
6045
|
const t = p(this.#r);
|
|
6046
6046
|
if (!t) return;
|
|
6047
6047
|
let e = 0, s = getComputedStyle(t), i = [...t.children];
|
|
6048
6048
|
for (const n of ["paddingTop", "paddingBottom", "borderTopWidth", "borderBottomWidth"])
|
|
6049
6049
|
e += parseFloat(s[n]) || 0;
|
|
6050
6050
|
for (const n of i)
|
|
6051
|
-
if (
|
|
6051
|
+
if (xt(n) && n.style.display === "contents")
|
|
6052
6052
|
i.push(...n.children);
|
|
6053
6053
|
else if (n.nodeType === 3)
|
|
6054
6054
|
e += parseFloat(getComputedStyle(n).fontSize);
|
|
6055
|
-
else if (
|
|
6056
|
-
if (!
|
|
6055
|
+
else if (xt(n)) {
|
|
6056
|
+
if (!Ys(n)) continue;
|
|
6057
6057
|
const r = getComputedStyle(n);
|
|
6058
6058
|
e += n.offsetHeight + (parseFloat(r.marginTop) || 0) + (parseFloat(r.marginBottom) || 0);
|
|
6059
6059
|
}
|
|
@@ -6066,28 +6066,28 @@ class Rt extends b {
|
|
|
6066
6066
|
for (const s of this.#m) s(t);
|
|
6067
6067
|
}
|
|
6068
6068
|
open(t) {
|
|
6069
|
-
p(this.#i) || (this.#c.show(t),
|
|
6069
|
+
p(this.#i) || (this.#c.show(t), dt());
|
|
6070
6070
|
}
|
|
6071
6071
|
close(t) {
|
|
6072
|
-
p(this.#i) && (this.#c.hide(t),
|
|
6072
|
+
p(this.#i) && (this.#c.hide(t), dt());
|
|
6073
6073
|
}
|
|
6074
6074
|
}
|
|
6075
|
-
|
|
6075
|
+
oe([
|
|
6076
6076
|
T
|
|
6077
|
-
],
|
|
6078
|
-
|
|
6077
|
+
], Ht.prototype, "triggerElement");
|
|
6078
|
+
oe([
|
|
6079
6079
|
T
|
|
6080
|
-
],
|
|
6081
|
-
|
|
6080
|
+
], Ht.prototype, "contentElement");
|
|
6081
|
+
oe([
|
|
6082
6082
|
T
|
|
6083
|
-
],
|
|
6084
|
-
|
|
6083
|
+
], Ht.prototype, "isSubmenu");
|
|
6084
|
+
oe([
|
|
6085
6085
|
I
|
|
6086
|
-
],
|
|
6087
|
-
|
|
6086
|
+
], Ht.prototype, "open");
|
|
6087
|
+
oe([
|
|
6088
6088
|
I
|
|
6089
|
-
],
|
|
6090
|
-
class
|
|
6089
|
+
], Ht.prototype, "close");
|
|
6090
|
+
class ns extends b {
|
|
6091
6091
|
static props = {
|
|
6092
6092
|
disabled: !1
|
|
6093
6093
|
};
|
|
@@ -6097,10 +6097,10 @@ class es extends b {
|
|
|
6097
6097
|
return this.#t?.expanded() ?? !1;
|
|
6098
6098
|
}
|
|
6099
6099
|
constructor() {
|
|
6100
|
-
super(), new
|
|
6100
|
+
super(), new it();
|
|
6101
6101
|
}
|
|
6102
6102
|
onSetup() {
|
|
6103
|
-
this.#t =
|
|
6103
|
+
this.#t = q(R);
|
|
6104
6104
|
}
|
|
6105
6105
|
onAttach(t) {
|
|
6106
6106
|
this.#t.attachMenuButton(this), l(this.#s.bind(this)), E(t, "type", "button");
|
|
@@ -6108,7 +6108,7 @@ class es 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 }), P(() => e.disconnect()),
|
|
6111
|
+
e.observe(t, { attributeFilter: ["data-part"], childList: !0, subtree: !0 }), P(() => e.disconnect()), gt(t, (s) => {
|
|
6112
6112
|
this.dispatch("select", { trigger: s });
|
|
6113
6113
|
});
|
|
6114
6114
|
}
|
|
@@ -6127,9 +6127,9 @@ class es extends b {
|
|
|
6127
6127
|
this.#e.set(t ?? null);
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
6130
|
-
const rr =
|
|
6130
|
+
const rr = ns.prototype;
|
|
6131
6131
|
T(rr, "expanded");
|
|
6132
|
-
class or extends
|
|
6132
|
+
class or extends ns {
|
|
6133
6133
|
}
|
|
6134
6134
|
class hr extends b {
|
|
6135
6135
|
static props = {
|
|
@@ -6139,7 +6139,7 @@ class hr extends b {
|
|
|
6139
6139
|
#t = null;
|
|
6140
6140
|
#e;
|
|
6141
6141
|
onSetup() {
|
|
6142
|
-
this.#e = $(), Y(
|
|
6142
|
+
this.#e = $(), Y(fe, {
|
|
6143
6143
|
attach: this.#s.bind(this)
|
|
6144
6144
|
});
|
|
6145
6145
|
}
|
|
@@ -6153,8 +6153,8 @@ class hr extends b {
|
|
|
6153
6153
|
this.#t?.remove(), this.#t = null;
|
|
6154
6154
|
}
|
|
6155
6155
|
#s(t) {
|
|
6156
|
-
this.#a(!1), this.#t = t,
|
|
6157
|
-
|
|
6156
|
+
this.#a(!1), this.#t = t, ct(() => {
|
|
6157
|
+
ct(() => {
|
|
6158
6158
|
this.connectScope && l(this.#i.bind(this));
|
|
6159
6159
|
});
|
|
6160
6160
|
});
|
|
@@ -6171,10 +6171,10 @@ class hr extends b {
|
|
|
6171
6171
|
f(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
|
-
return
|
|
6174
|
+
return xt(t) ? t : t ? document.querySelector(t) : document.body;
|
|
6175
6175
|
}
|
|
6176
6176
|
}
|
|
6177
|
-
const
|
|
6177
|
+
const fe = bt();
|
|
6178
6178
|
class lr extends b {
|
|
6179
6179
|
static props = {
|
|
6180
6180
|
placement: null,
|
|
@@ -6183,16 +6183,16 @@ class lr extends b {
|
|
|
6183
6183
|
};
|
|
6184
6184
|
#t;
|
|
6185
6185
|
constructor() {
|
|
6186
|
-
super(), new
|
|
6186
|
+
super(), new it();
|
|
6187
6187
|
const { placement: t } = this.$props;
|
|
6188
6188
|
this.setAttributes({
|
|
6189
6189
|
"data-placement": t
|
|
6190
6190
|
});
|
|
6191
6191
|
}
|
|
6192
6192
|
onAttach(t) {
|
|
6193
|
-
if (this.#t =
|
|
6194
|
-
const e =
|
|
6195
|
-
e && (Y(
|
|
6193
|
+
if (this.#t = q(R), this.#t.attachMenuItems(this), K(fe)) {
|
|
6194
|
+
const e = q(fe);
|
|
6195
|
+
e && (Y(fe, null), e.attach(t), P(() => e.attach(null)));
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
6198
6198
|
onConnect(t) {
|
|
@@ -6211,7 +6211,7 @@ class lr extends b {
|
|
|
6211
6211
|
});
|
|
6212
6212
|
const { offset: s, alignOffset: i } = this.$props;
|
|
6213
6213
|
P(
|
|
6214
|
-
|
|
6214
|
+
ei(this.el, this.#i(), e, {
|
|
6215
6215
|
offsetVarName: "media-menu",
|
|
6216
6216
|
xOffset: i(),
|
|
6217
6217
|
yOffset: s()
|
|
@@ -6225,8 +6225,8 @@ class lr extends b {
|
|
|
6225
6225
|
return this.#t.button();
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
|
-
const
|
|
6229
|
-
class
|
|
6228
|
+
const Qe = bt();
|
|
6229
|
+
class qt extends st {
|
|
6230
6230
|
#t = /* @__PURE__ */ new Set();
|
|
6231
6231
|
#e = w("");
|
|
6232
6232
|
#s = null;
|
|
@@ -6241,13 +6241,13 @@ class At extends tt {
|
|
|
6241
6241
|
this.#r(t);
|
|
6242
6242
|
}
|
|
6243
6243
|
onSetup() {
|
|
6244
|
-
Y(
|
|
6244
|
+
Y(Qe, {
|
|
6245
6245
|
add: this.#i.bind(this),
|
|
6246
6246
|
remove: this.#a.bind(this)
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
onAttach(t) {
|
|
6250
|
-
K(
|
|
6250
|
+
K(R) || E(t, "role", "radiogroup"), this.setAttributes({ value: this.#e });
|
|
6251
6251
|
}
|
|
6252
6252
|
onDestroy() {
|
|
6253
6253
|
this.#t.clear();
|
|
@@ -6271,7 +6271,7 @@ class At extends tt {
|
|
|
6271
6271
|
return null;
|
|
6272
6272
|
}
|
|
6273
6273
|
}
|
|
6274
|
-
class
|
|
6274
|
+
class gi extends b {
|
|
6275
6275
|
static props = {
|
|
6276
6276
|
value: ""
|
|
6277
6277
|
};
|
|
@@ -6288,29 +6288,29 @@ class ui extends b {
|
|
|
6288
6288
|
return this.#t();
|
|
6289
6289
|
}
|
|
6290
6290
|
constructor() {
|
|
6291
|
-
super(), new
|
|
6291
|
+
super(), new it();
|
|
6292
6292
|
}
|
|
6293
6293
|
onSetup() {
|
|
6294
6294
|
this.setAttributes({
|
|
6295
6295
|
value: this.$props.value,
|
|
6296
6296
|
"data-checked": this.#t,
|
|
6297
|
-
"aria-checked":
|
|
6297
|
+
"aria-checked": H(this.#t)
|
|
6298
6298
|
});
|
|
6299
6299
|
}
|
|
6300
6300
|
onAttach(t) {
|
|
6301
|
-
const e = K(
|
|
6301
|
+
const e = K(R);
|
|
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(),
|
|
6305
|
+
this.#i(), gt(t, this.#n.bind(this)), P(this.#s.bind(this));
|
|
6306
6306
|
}
|
|
6307
6307
|
#s() {
|
|
6308
|
-
|
|
6309
|
-
|
|
6308
|
+
ae(() => {
|
|
6309
|
+
q(Qe).remove(this.#e);
|
|
6310
6310
|
}, this.connectScope);
|
|
6311
6311
|
}
|
|
6312
6312
|
#i() {
|
|
6313
|
-
|
|
6313
|
+
q(Qe).add(this.#e);
|
|
6314
6314
|
}
|
|
6315
6315
|
#a() {
|
|
6316
6316
|
const { value: t } = this.$props, e = t();
|
|
@@ -6329,9 +6329,9 @@ class ui extends b {
|
|
|
6329
6329
|
this.dispatch("select", { trigger: t });
|
|
6330
6330
|
}
|
|
6331
6331
|
}
|
|
6332
|
-
const dr =
|
|
6332
|
+
const dr = gi.prototype;
|
|
6333
6333
|
T(dr, "checked");
|
|
6334
|
-
class
|
|
6334
|
+
class yi extends b {
|
|
6335
6335
|
static props = {
|
|
6336
6336
|
emptyLabel: "Default"
|
|
6337
6337
|
};
|
|
@@ -6346,10 +6346,10 @@ class pi extends b {
|
|
|
6346
6346
|
return t().length <= 1;
|
|
6347
6347
|
}
|
|
6348
6348
|
constructor() {
|
|
6349
|
-
super(), this.#s = new
|
|
6349
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#o.bind(this);
|
|
6350
6350
|
}
|
|
6351
6351
|
onSetup() {
|
|
6352
|
-
this.#e = $(), K(
|
|
6352
|
+
this.#e = $(), K(R) && (this.#t = q(R));
|
|
6353
6353
|
}
|
|
6354
6354
|
onConnect(t) {
|
|
6355
6355
|
l(this.#i.bind(this)), l(this.#n.bind(this)), l(this.#a.bind(this));
|
|
@@ -6385,11 +6385,11 @@ class pi extends b {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
const
|
|
6389
|
-
T(
|
|
6390
|
-
T(
|
|
6391
|
-
I(
|
|
6392
|
-
class
|
|
6388
|
+
const rs = yi.prototype;
|
|
6389
|
+
T(rs, "value");
|
|
6390
|
+
T(rs, "disabled");
|
|
6391
|
+
I(rs, "getOptions");
|
|
6392
|
+
class bi extends b {
|
|
6393
6393
|
static props = {
|
|
6394
6394
|
offLabel: "Off"
|
|
6395
6395
|
};
|
|
@@ -6404,10 +6404,10 @@ class mi extends b {
|
|
|
6404
6404
|
return !t();
|
|
6405
6405
|
}
|
|
6406
6406
|
constructor() {
|
|
6407
|
-
super(), this.#s = new
|
|
6407
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#o.bind(this);
|
|
6408
6408
|
}
|
|
6409
6409
|
onSetup() {
|
|
6410
|
-
this.#t = $(), K(
|
|
6410
|
+
this.#t = $(), K(R) && (this.#e = q(R));
|
|
6411
6411
|
}
|
|
6412
6412
|
onConnect(t) {
|
|
6413
6413
|
super.onConnect?.(t), l(this.#i.bind(this)), l(this.#n.bind(this)), l(this.#a.bind(this));
|
|
@@ -6459,12 +6459,12 @@ class mi extends b {
|
|
|
6459
6459
|
return t.id + ":" + t.kind + "-" + t.label.toLowerCase();
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
|
-
const
|
|
6463
|
-
T(
|
|
6464
|
-
T(
|
|
6465
|
-
I(
|
|
6462
|
+
const os = bi.prototype;
|
|
6463
|
+
T(os, "value");
|
|
6464
|
+
T(os, "disabled");
|
|
6465
|
+
I(os, "getOptions");
|
|
6466
6466
|
const cr = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];
|
|
6467
|
-
class
|
|
6467
|
+
class vi extends b {
|
|
6468
6468
|
static props = {
|
|
6469
6469
|
normalLabel: "Normal",
|
|
6470
6470
|
rates: cr
|
|
@@ -6480,10 +6480,10 @@ class fi extends b {
|
|
|
6480
6480
|
return !e() || t().length === 0;
|
|
6481
6481
|
}
|
|
6482
6482
|
constructor() {
|
|
6483
|
-
super(), this.#s = new
|
|
6483
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#o.bind(this);
|
|
6484
6484
|
}
|
|
6485
6485
|
onSetup() {
|
|
6486
|
-
this.#t = $(), K(
|
|
6486
|
+
this.#t = $(), K(R) && (this.#e = q(R));
|
|
6487
6487
|
}
|
|
6488
6488
|
onConnect(t) {
|
|
6489
6489
|
l(this.#i.bind(this)), l(this.#a.bind(this)), l(this.#n.bind(this));
|
|
@@ -6515,11 +6515,11 @@ class fi extends b {
|
|
|
6515
6515
|
this.#t.remote.changePlaybackRate(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
6516
6516
|
}
|
|
6517
6517
|
}
|
|
6518
|
-
const
|
|
6519
|
-
T(
|
|
6520
|
-
T(
|
|
6521
|
-
I(
|
|
6522
|
-
class
|
|
6518
|
+
const hs = vi.prototype;
|
|
6519
|
+
T(hs, "value");
|
|
6520
|
+
T(hs, "disabled");
|
|
6521
|
+
I(hs, "getOptions");
|
|
6522
|
+
class $i extends b {
|
|
6523
6523
|
static props = {
|
|
6524
6524
|
autoLabel: "Auto",
|
|
6525
6525
|
hideBitrate: !1,
|
|
@@ -6535,15 +6535,15 @@ class gi extends b {
|
|
|
6535
6535
|
const { canSetQuality: t, qualities: e } = this.#t.$state;
|
|
6536
6536
|
return !t() || e().length <= 1;
|
|
6537
6537
|
}
|
|
6538
|
-
#i =
|
|
6538
|
+
#i = at(() => {
|
|
6539
6539
|
const { sort: t } = this.$props, { qualities: e } = this.#t.$state;
|
|
6540
|
-
return
|
|
6540
|
+
return di(e(), t() === "descending");
|
|
6541
6541
|
});
|
|
6542
6542
|
constructor() {
|
|
6543
|
-
super(), this.#s = new
|
|
6543
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#o.bind(this);
|
|
6544
6544
|
}
|
|
6545
6545
|
onSetup() {
|
|
6546
|
-
this.#t = $(), K(
|
|
6546
|
+
this.#t = $(), K(R) && (this.#e = q(R));
|
|
6547
6547
|
}
|
|
6548
6548
|
onConnect(t) {
|
|
6549
6549
|
l(this.#a.bind(this)), l(this.#r.bind(this)), l(this.#n.bind(this));
|
|
@@ -6553,7 +6553,7 @@ class gi extends b {
|
|
|
6553
6553
|
return [
|
|
6554
6554
|
{ value: "auto", label: t },
|
|
6555
6555
|
...this.#i().map((s) => {
|
|
6556
|
-
const i = s.bitrate && s.bitrate >= 0 ? `${
|
|
6556
|
+
const i = s.bitrate && s.bitrate >= 0 ? `${D(s.bitrate / 1e6, 2)} Mbps` : null;
|
|
6557
6557
|
return {
|
|
6558
6558
|
quality: s,
|
|
6559
6559
|
label: s.height + "p",
|
|
@@ -6597,10 +6597,10 @@ class gi extends b {
|
|
|
6597
6597
|
return t.height + "_" + t.bitrate;
|
|
6598
6598
|
}
|
|
6599
6599
|
}
|
|
6600
|
-
const
|
|
6601
|
-
T(
|
|
6602
|
-
T(
|
|
6603
|
-
I(
|
|
6600
|
+
const ls = $i.prototype;
|
|
6601
|
+
T(ls, "value");
|
|
6602
|
+
T(ls, "disabled");
|
|
6603
|
+
I(ls, "getOptions");
|
|
6604
6604
|
class ur extends b {
|
|
6605
6605
|
static props = {
|
|
6606
6606
|
type: "current",
|
|
@@ -6611,7 +6611,7 @@ class ur extends b {
|
|
|
6611
6611
|
toggle: !1,
|
|
6612
6612
|
hidden: !1
|
|
6613
6613
|
};
|
|
6614
|
-
static state = new
|
|
6614
|
+
static state = new vt({
|
|
6615
6615
|
timeText: "",
|
|
6616
6616
|
hidden: !1
|
|
6617
6617
|
});
|
|
@@ -6625,7 +6625,7 @@ class ur extends b {
|
|
|
6625
6625
|
this.setAttributes({
|
|
6626
6626
|
"data-type": t,
|
|
6627
6627
|
"data-remainder": this.#c.bind(this)
|
|
6628
|
-
}), new
|
|
6628
|
+
}), new pi({
|
|
6629
6629
|
callback: this.#a.bind(this)
|
|
6630
6630
|
}).attach(this);
|
|
6631
6631
|
}
|
|
@@ -6633,7 +6633,7 @@ class ur extends b {
|
|
|
6633
6633
|
t.hasAttribute("role") || l(this.#h.bind(this)), l(this.#o.bind(this));
|
|
6634
6634
|
}
|
|
6635
6635
|
onConnect(t) {
|
|
6636
|
-
P(
|
|
6636
|
+
P(Xs(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);
|
|
@@ -6647,7 +6647,7 @@ class ur extends b {
|
|
|
6647
6647
|
this.#e.set(null);
|
|
6648
6648
|
return;
|
|
6649
6649
|
}
|
|
6650
|
-
this.el &&
|
|
6650
|
+
this.el && gt(this.el, this.#u.bind(this));
|
|
6651
6651
|
}
|
|
6652
6652
|
#o() {
|
|
6653
6653
|
const { hidden: t, timeText: e } = this.$state, { duration: s } = this.#t.$state;
|
|
@@ -6657,7 +6657,7 @@ class ur extends b {
|
|
|
6657
6657
|
e.set("LIVE");
|
|
6658
6658
|
return;
|
|
6659
6659
|
}
|
|
6660
|
-
const u = c ? Math.max(0, d - h) : h, m =
|
|
6660
|
+
const u = c ? Math.max(0, d - h) : h, m = Pe(u, {
|
|
6661
6661
|
padHrs: n(),
|
|
6662
6662
|
padMins: r(),
|
|
6663
6663
|
showHrs: o()
|
|
@@ -6695,7 +6695,7 @@ class pr extends b {
|
|
|
6695
6695
|
static props = {
|
|
6696
6696
|
translations: null
|
|
6697
6697
|
};
|
|
6698
|
-
static state = new
|
|
6698
|
+
static state = new vt({
|
|
6699
6699
|
label: null,
|
|
6700
6700
|
busy: !1
|
|
6701
6701
|
});
|
|
@@ -6712,7 +6712,7 @@ class pr extends b {
|
|
|
6712
6712
|
const { busy: e } = this.$state;
|
|
6713
6713
|
this.setAttributes({
|
|
6714
6714
|
"aria-busy": () => e() ? "true" : null
|
|
6715
|
-
}), this.#e = !0, l(this.#s.bind(this)), l(this.#r.bind(this)), l(this.#n.bind(this)), l(this.#i.bind(this)), l(this.#a.bind(this)), l(this.#l.bind(this)), l(this.#u.bind(this)),
|
|
6715
|
+
}), this.#e = !0, l(this.#s.bind(this)), l(this.#r.bind(this)), l(this.#n.bind(this)), l(this.#i.bind(this)), l(this.#a.bind(this)), l(this.#l.bind(this)), l(this.#u.bind(this)), dt(), this.#e = !1;
|
|
6716
6716
|
}
|
|
6717
6717
|
#s() {
|
|
6718
6718
|
const { paused: t } = this.#t.$state;
|
|
@@ -6744,7 +6744,7 @@ class pr extends b {
|
|
|
6744
6744
|
if (!this.scope) return;
|
|
6745
6745
|
const i = p(e), n = Math.abs(i - this.#o);
|
|
6746
6746
|
if (n >= 1) {
|
|
6747
|
-
const r = i >= this.#o, o =
|
|
6747
|
+
const r = i >= this.#o, o = we(n);
|
|
6748
6748
|
this.#d(
|
|
6749
6749
|
`${this.#c(r ? "Seek Forward" : "Seek Backward")} ${o}`
|
|
6750
6750
|
);
|
|
@@ -6812,7 +6812,7 @@ let fr = class extends b {
|
|
|
6812
6812
|
t.style.pointerEvents || j(t, "pointer-events", "auto");
|
|
6813
6813
|
}
|
|
6814
6814
|
};
|
|
6815
|
-
const
|
|
6815
|
+
const St = bt();
|
|
6816
6816
|
let gr = 0;
|
|
6817
6817
|
class yr extends b {
|
|
6818
6818
|
static props = {
|
|
@@ -6823,16 +6823,16 @@ class yr extends b {
|
|
|
6823
6823
|
#s = w(null);
|
|
6824
6824
|
#i = w(!1);
|
|
6825
6825
|
constructor() {
|
|
6826
|
-
super(), new
|
|
6826
|
+
super(), new it();
|
|
6827
6827
|
const { showDelay: t } = this.$props;
|
|
6828
|
-
new
|
|
6828
|
+
new ui({
|
|
6829
6829
|
trigger: this.#e,
|
|
6830
6830
|
content: this.#s,
|
|
6831
6831
|
showDelay: t,
|
|
6832
6832
|
listen(e, s, i) {
|
|
6833
6833
|
l(() => {
|
|
6834
|
-
|
|
6835
|
-
}), new
|
|
6834
|
+
$e() && N(e, "focus", s), N(e, "blur", i);
|
|
6835
|
+
}), new M(e).add("touchstart", (n) => n.preventDefault(), { passive: !1 }).add("mouseenter", s).add("mouseleave", i);
|
|
6836
6836
|
},
|
|
6837
6837
|
onChange: this.#h.bind(this)
|
|
6838
6838
|
});
|
|
@@ -6841,7 +6841,7 @@ class yr extends b {
|
|
|
6841
6841
|
t.style.setProperty("display", "contents");
|
|
6842
6842
|
}
|
|
6843
6843
|
onSetup() {
|
|
6844
|
-
Y(
|
|
6844
|
+
Y(St, {
|
|
6845
6845
|
trigger: this.#e,
|
|
6846
6846
|
content: this.#s,
|
|
6847
6847
|
showing: this.#i,
|
|
@@ -6875,14 +6875,14 @@ class yr extends b {
|
|
|
6875
6875
|
}
|
|
6876
6876
|
class br extends b {
|
|
6877
6877
|
constructor() {
|
|
6878
|
-
super(), new
|
|
6878
|
+
super(), new it();
|
|
6879
6879
|
}
|
|
6880
6880
|
onConnect(t) {
|
|
6881
6881
|
P(
|
|
6882
|
-
|
|
6882
|
+
ct(() => {
|
|
6883
6883
|
if (!this.connectScope) return;
|
|
6884
6884
|
this.#t();
|
|
6885
|
-
const e =
|
|
6885
|
+
const e = q(St);
|
|
6886
6886
|
P(() => {
|
|
6887
6887
|
const s = this.#e();
|
|
6888
6888
|
s && e.detachTrigger(s);
|
|
@@ -6891,7 +6891,7 @@ class br extends b {
|
|
|
6891
6891
|
);
|
|
6892
6892
|
}
|
|
6893
6893
|
#t() {
|
|
6894
|
-
const t = this.#e(), e =
|
|
6894
|
+
const t = this.#e(), e = q(St);
|
|
6895
6895
|
t && e.attachTrigger(t);
|
|
6896
6896
|
}
|
|
6897
6897
|
#e() {
|
|
@@ -6906,7 +6906,7 @@ class vr extends b {
|
|
|
6906
6906
|
alignOffset: 0
|
|
6907
6907
|
};
|
|
6908
6908
|
constructor() {
|
|
6909
|
-
super(), new
|
|
6909
|
+
super(), new it();
|
|
6910
6910
|
const { placement: t } = this.$props;
|
|
6911
6911
|
this.setAttributes({
|
|
6912
6912
|
"data-placement": t
|
|
@@ -6922,31 +6922,31 @@ class vr extends b {
|
|
|
6922
6922
|
}
|
|
6923
6923
|
onConnect(t) {
|
|
6924
6924
|
this.#t(t);
|
|
6925
|
-
const e =
|
|
6925
|
+
const e = q(St);
|
|
6926
6926
|
P(() => e.detachContent(t)), P(
|
|
6927
|
-
|
|
6927
|
+
ct(() => {
|
|
6928
6928
|
this.connectScope && l(this.#e.bind(this));
|
|
6929
6929
|
})
|
|
6930
6930
|
);
|
|
6931
6931
|
}
|
|
6932
6932
|
#t(t) {
|
|
6933
|
-
|
|
6933
|
+
q(St).attachContent(t);
|
|
6934
6934
|
}
|
|
6935
6935
|
#e() {
|
|
6936
|
-
const { showing: t } =
|
|
6936
|
+
const { showing: t } = q(St);
|
|
6937
6937
|
if (!t()) return;
|
|
6938
6938
|
const { placement: e, offset: s, alignOffset: i } = this.$props;
|
|
6939
|
-
return
|
|
6939
|
+
return ei(this.el, this.#s(), e(), {
|
|
6940
6940
|
offsetVarName: "media-tooltip",
|
|
6941
6941
|
xOffset: i(),
|
|
6942
6942
|
yOffset: s()
|
|
6943
6943
|
});
|
|
6944
6944
|
}
|
|
6945
6945
|
#s() {
|
|
6946
|
-
return
|
|
6946
|
+
return q(St).trigger();
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
|
-
class
|
|
6949
|
+
class wi extends b {
|
|
6950
6950
|
static props = {
|
|
6951
6951
|
disabled: !1,
|
|
6952
6952
|
defaultPressed: !1
|
|
@@ -6964,7 +6964,7 @@ class yi extends b {
|
|
|
6964
6964
|
});
|
|
6965
6965
|
}
|
|
6966
6966
|
}
|
|
6967
|
-
const $r =
|
|
6967
|
+
const $r = wi.prototype;
|
|
6968
6968
|
T($r, "pressed");
|
|
6969
6969
|
class wr extends b {
|
|
6970
6970
|
static props = B.props;
|
|
@@ -6982,11 +6982,11 @@ class wr extends b {
|
|
|
6982
6982
|
"data-active": e,
|
|
6983
6983
|
"data-supported": t,
|
|
6984
6984
|
"data-state": this.#i.bind(this),
|
|
6985
|
-
"aria-hidden":
|
|
6985
|
+
"aria-hidden": H(() => !t())
|
|
6986
6986
|
});
|
|
6987
6987
|
}
|
|
6988
6988
|
onAttach(t) {
|
|
6989
|
-
t.setAttribute("data-media-tooltip", "google-cast"),
|
|
6989
|
+
t.setAttribute("data-media-tooltip", "google-cast"), wt(t, this.#a.bind(this));
|
|
6990
6990
|
}
|
|
6991
6991
|
#e(t) {
|
|
6992
6992
|
this.#t.remote.requestGoogleCast(t);
|
|
@@ -7004,12 +7004,12 @@ class wr extends b {
|
|
|
7004
7004
|
return `Google Cast ${t()}`;
|
|
7005
7005
|
}
|
|
7006
7006
|
}
|
|
7007
|
-
class
|
|
7007
|
+
class Ti extends b {
|
|
7008
7008
|
static props = {
|
|
7009
7009
|
src: null,
|
|
7010
7010
|
crossOrigin: null
|
|
7011
7011
|
};
|
|
7012
|
-
static state = new
|
|
7012
|
+
static state = new vt({
|
|
7013
7013
|
video: null,
|
|
7014
7014
|
src: null,
|
|
7015
7015
|
crossOrigin: null,
|
|
@@ -7023,11 +7023,11 @@ class bi extends b {
|
|
|
7023
7023
|
return this.$state.video();
|
|
7024
7024
|
}
|
|
7025
7025
|
onSetup() {
|
|
7026
|
-
this.#t = $(), this.#e =
|
|
7026
|
+
this.#t = $(), this.#e = Nt(re.state), this.#a(), this.setAttributes({
|
|
7027
7027
|
"data-loading": this.#n.bind(this),
|
|
7028
7028
|
"data-hidden": this.$state.hidden,
|
|
7029
7029
|
"data-error": this.#r.bind(this),
|
|
7030
|
-
"aria-hidden":
|
|
7030
|
+
"aria-hidden": H(this.$state.hidden)
|
|
7031
7031
|
});
|
|
7032
7032
|
}
|
|
7033
7033
|
onAttach(t) {
|
|
@@ -7035,7 +7035,7 @@ class bi extends b {
|
|
|
7035
7035
|
}
|
|
7036
7036
|
#s() {
|
|
7037
7037
|
const t = this.$state.video();
|
|
7038
|
-
t && (t.readyState >= 2 && this.#l(), new
|
|
7038
|
+
t && (t.readyState >= 2 && this.#l(), new M(t).add("canplay", this.#l.bind(this)).add("error", this.#c.bind(this)));
|
|
7039
7039
|
}
|
|
7040
7040
|
#i() {
|
|
7041
7041
|
const { src: t } = this.$state, { canLoad: e } = this.#t.$state;
|
|
@@ -7051,7 +7051,7 @@ class bi extends b {
|
|
|
7051
7051
|
}
|
|
7052
7052
|
#r() {
|
|
7053
7053
|
const { error: t } = this.$state;
|
|
7054
|
-
return !
|
|
7054
|
+
return !lt(t);
|
|
7055
7055
|
}
|
|
7056
7056
|
#o() {
|
|
7057
7057
|
const { src: t, hidden: e } = this.$state, { canLoad: s, duration: i } = this.#t.$state;
|
|
@@ -7074,7 +7074,7 @@ class bi extends b {
|
|
|
7074
7074
|
e() && n && Number.isFinite(s()) && Number.isFinite(i()) && (n.currentTime = i() * s());
|
|
7075
7075
|
}
|
|
7076
7076
|
}
|
|
7077
|
-
const Tr =
|
|
7077
|
+
const Tr = Ti.prototype;
|
|
7078
7078
|
T(Tr, "video");
|
|
7079
7079
|
class kr extends b {
|
|
7080
7080
|
static props = {
|
|
@@ -7085,12 +7085,12 @@ class kr extends b {
|
|
|
7085
7085
|
min: 0,
|
|
7086
7086
|
max: 300
|
|
7087
7087
|
};
|
|
7088
|
-
static state =
|
|
7088
|
+
static state = Lt;
|
|
7089
7089
|
#t;
|
|
7090
7090
|
onSetup() {
|
|
7091
|
-
this.#t = $(), Y(
|
|
7091
|
+
this.#t = $(), Y(Vt, {
|
|
7092
7092
|
default: "percent",
|
|
7093
|
-
percent: (t, e) =>
|
|
7093
|
+
percent: (t, e) => D(this.$state.value(), e) + "%"
|
|
7094
7094
|
}), new X({
|
|
7095
7095
|
getStep: this.$props.step,
|
|
7096
7096
|
getKeyStep: this.$props.keyStep,
|
|
@@ -7109,7 +7109,7 @@ class kr extends b {
|
|
|
7109
7109
|
const { canSetAudioGain: e } = this.#t.$state;
|
|
7110
7110
|
this.setAttributes({
|
|
7111
7111
|
"data-supported": e,
|
|
7112
|
-
"aria-hidden":
|
|
7112
|
+
"aria-hidden": H(() => !e())
|
|
7113
7113
|
});
|
|
7114
7114
|
}
|
|
7115
7115
|
#e() {
|
|
@@ -7134,7 +7134,7 @@ class kr extends b {
|
|
|
7134
7134
|
}
|
|
7135
7135
|
#r(t) {
|
|
7136
7136
|
if (!t.trigger) return;
|
|
7137
|
-
const e =
|
|
7137
|
+
const e = D(1 + t.detail / 100, 2);
|
|
7138
7138
|
this.#t.remote.changeAudioGain(e, t);
|
|
7139
7139
|
}
|
|
7140
7140
|
#o(t) {
|
|
@@ -7153,7 +7153,7 @@ class Sr extends b {
|
|
|
7153
7153
|
min: 0,
|
|
7154
7154
|
max: 2
|
|
7155
7155
|
};
|
|
7156
|
-
static state =
|
|
7156
|
+
static state = Lt;
|
|
7157
7157
|
#t;
|
|
7158
7158
|
onSetup() {
|
|
7159
7159
|
this.#t = $(), new X({
|
|
@@ -7174,7 +7174,7 @@ class Sr extends b {
|
|
|
7174
7174
|
const { canSetPlaybackRate: e } = this.#t.$state;
|
|
7175
7175
|
this.setAttributes({
|
|
7176
7176
|
"data-supported": e,
|
|
7177
|
-
"aria-hidden":
|
|
7177
|
+
"aria-hidden": H(() => !e())
|
|
7178
7178
|
});
|
|
7179
7179
|
}
|
|
7180
7180
|
#e() {
|
|
@@ -7194,13 +7194,13 @@ class Sr extends b {
|
|
|
7194
7194
|
this.$state.value.set(e), this.dispatch("value-change", { detail: e });
|
|
7195
7195
|
}
|
|
7196
7196
|
#n(t) {
|
|
7197
|
-
return
|
|
7197
|
+
return D(t, 2);
|
|
7198
7198
|
}
|
|
7199
7199
|
#r() {
|
|
7200
7200
|
const { disabled: t } = this.$props, { canSetPlaybackRate: e } = this.#t.$state;
|
|
7201
7201
|
return t() || !e();
|
|
7202
7202
|
}
|
|
7203
|
-
#o =
|
|
7203
|
+
#o = At(this.#h.bind(this), 25);
|
|
7204
7204
|
#h(t) {
|
|
7205
7205
|
if (!t.trigger) return;
|
|
7206
7206
|
const e = t.detail;
|
|
@@ -7220,11 +7220,11 @@ class Pr extends b {
|
|
|
7220
7220
|
keyStep: 1,
|
|
7221
7221
|
shiftKeyMultiplier: 1
|
|
7222
7222
|
};
|
|
7223
|
-
static state =
|
|
7223
|
+
static state = Lt;
|
|
7224
7224
|
#t;
|
|
7225
|
-
#e =
|
|
7225
|
+
#e = at(() => {
|
|
7226
7226
|
const { qualities: t } = this.#t.$state;
|
|
7227
|
-
return
|
|
7227
|
+
return di(t());
|
|
7228
7228
|
});
|
|
7229
7229
|
onSetup() {
|
|
7230
7230
|
this.#t = $(), new X({
|
|
@@ -7242,10 +7242,10 @@ class Pr extends b {
|
|
|
7242
7242
|
}
|
|
7243
7243
|
onAttach(t) {
|
|
7244
7244
|
t.setAttribute("data-media-quality-slider", ""), E(t, "aria-label", "Video Quality");
|
|
7245
|
-
const { qualities: e, canSetQuality: s } = this.#t.$state, i =
|
|
7245
|
+
const { qualities: e, canSetQuality: s } = this.#t.$state, i = at(() => s() && e().length > 0);
|
|
7246
7246
|
this.setAttributes({
|
|
7247
7247
|
"data-supported": i,
|
|
7248
|
-
"aria-hidden":
|
|
7248
|
+
"aria-hidden": H(() => !i())
|
|
7249
7249
|
});
|
|
7250
7250
|
}
|
|
7251
7251
|
#s() {
|
|
@@ -7270,7 +7270,7 @@ class Pr extends b {
|
|
|
7270
7270
|
const { disabled: t } = this.$props, { canSetQuality: e, qualities: s } = this.#t.$state;
|
|
7271
7271
|
return t() || s().length <= 1 || !e();
|
|
7272
7272
|
}
|
|
7273
|
-
#o =
|
|
7273
|
+
#o = At(this.#h.bind(this), 25);
|
|
7274
7274
|
#h(t) {
|
|
7275
7275
|
if (!t.trigger) return;
|
|
7276
7276
|
const { qualities: e } = this.#t, s = p(this.#e)[t.detail];
|
|
@@ -7283,7 +7283,7 @@ class Pr extends b {
|
|
|
7283
7283
|
this.#o(t);
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
|
-
class
|
|
7286
|
+
class ki extends b {
|
|
7287
7287
|
static props = {
|
|
7288
7288
|
disabled: !1
|
|
7289
7289
|
};
|
|
@@ -7307,10 +7307,10 @@ class vi extends b {
|
|
|
7307
7307
|
return this.#r()[this.#h()] || null;
|
|
7308
7308
|
}
|
|
7309
7309
|
onSetup() {
|
|
7310
|
-
this.#t = $(), this.#e =
|
|
7310
|
+
this.#t = $(), this.#e = Nt(fi.state);
|
|
7311
7311
|
}
|
|
7312
7312
|
onAttach(t) {
|
|
7313
|
-
|
|
7313
|
+
ke(this.#t.textTracks, "chapters", this.#c.bind(this)), l(this.#E.bind(this));
|
|
7314
7314
|
}
|
|
7315
7315
|
onConnect() {
|
|
7316
7316
|
P(() => this.#u.bind(this));
|
|
@@ -7322,7 +7322,7 @@ class vi extends b {
|
|
|
7322
7322
|
if (this.#a = t, this.#s?.dispose(), this.#a.length === 1) {
|
|
7323
7323
|
const e = this.#a[0];
|
|
7324
7324
|
e.style.width = "100%", e.style.setProperty("--chapter-fill", "var(--slider-fill)"), e.style.setProperty("--chapter-progress", "var(--slider-progress)");
|
|
7325
|
-
} else this.#a.length > 0 &&
|
|
7325
|
+
} else this.#a.length > 0 && ae(() => this.#d(), this.#s = na());
|
|
7326
7326
|
}
|
|
7327
7327
|
#c(t) {
|
|
7328
7328
|
p(this.#n) !== t && (this.#u(), this.#n.set(t));
|
|
@@ -7343,7 +7343,7 @@ class vi extends b {
|
|
|
7343
7343
|
let e, { seekableStart: s, seekableEnd: i } = this.#t.$state, n = s(), r = i() || t[t.length - 1].endTime, o = r - n, h = 100;
|
|
7344
7344
|
for (let d = 0; d < t.length; d++)
|
|
7345
7345
|
if (e = t[d], this.#a[d]) {
|
|
7346
|
-
const c = d === t.length - 1 ? h :
|
|
7346
|
+
const c = d === t.length - 1 ? h : D((e.endTime - Math.max(n, e.startTime)) / o * 100, 3);
|
|
7347
7347
|
this.#a[d].style.width = c + "%", h -= c;
|
|
7348
7348
|
}
|
|
7349
7349
|
}
|
|
@@ -7388,7 +7388,7 @@ class vi extends b {
|
|
|
7388
7388
|
#v() {
|
|
7389
7389
|
this.#P(this.#f());
|
|
7390
7390
|
}
|
|
7391
|
-
#P =
|
|
7391
|
+
#P = Ot((t) => {
|
|
7392
7392
|
let e, s = this.#r(), { seekableStart: i } = this.#t.$state, n = i(), r = this.#k(s);
|
|
7393
7393
|
for (let o = this.#l; o < this.#a.length; o++)
|
|
7394
7394
|
if (e = this.#S(s[o], t, n, r), this.#a[o]?.style.setProperty("--chapter-progress", e + "%"), e < 100) {
|
|
@@ -7396,10 +7396,10 @@ class vi extends b {
|
|
|
7396
7396
|
break;
|
|
7397
7397
|
}
|
|
7398
7398
|
});
|
|
7399
|
-
#f =
|
|
7399
|
+
#f = at(this.#T.bind(this));
|
|
7400
7400
|
#T() {
|
|
7401
7401
|
const { bufferedEnd: t, duration: e } = this.#t.$state;
|
|
7402
|
-
return
|
|
7402
|
+
return D(Math.min(t() / Math.max(e(), 1), 1), 3) * 100;
|
|
7403
7403
|
}
|
|
7404
7404
|
#k(t) {
|
|
7405
7405
|
const { seekableEnd: e } = this.#t.$state, s = e();
|
|
@@ -7410,7 +7410,7 @@ class vi extends b {
|
|
|
7410
7410
|
const r = i - s, o = Math.max(0, t.startTime - s), h = Math.min(i, t.endTime) - s, d = o / r, c = d * 100, u = Math.min(1, d + (h - o) / r) * 100;
|
|
7411
7411
|
return Math.max(
|
|
7412
7412
|
0,
|
|
7413
|
-
|
|
7413
|
+
D(
|
|
7414
7414
|
e >= u ? 100 : (e - c) / (u - c) * 100,
|
|
7415
7415
|
3
|
|
7416
7416
|
)
|
|
@@ -7450,7 +7450,7 @@ class vi extends b {
|
|
|
7450
7450
|
const e = this.#n();
|
|
7451
7451
|
if (e) {
|
|
7452
7452
|
const s = this.#M.bind(this);
|
|
7453
|
-
s(), new
|
|
7453
|
+
s(), new M(e).add("add-cue", s).add("remove-cue", s), l(this.#x.bind(this));
|
|
7454
7454
|
}
|
|
7455
7455
|
return this.#i = this.#_(), this.#i && l(this.#q.bind(this)), () => {
|
|
7456
7456
|
this.#i && (this.#i.textContent = "", this.#i = null);
|
|
@@ -7459,7 +7459,7 @@ class vi extends b {
|
|
|
7459
7459
|
#x() {
|
|
7460
7460
|
this.#t.$state.duration(), this.#M();
|
|
7461
7461
|
}
|
|
7462
|
-
#M =
|
|
7462
|
+
#M = Ye(
|
|
7463
7463
|
() => {
|
|
7464
7464
|
const t = p(this.#n);
|
|
7465
7465
|
!this.scope || !t || !t.cues.length || (this.#r.set(this.#C(t.cues)), this.#o.set(0), this.#l = 0);
|
|
@@ -7482,12 +7482,12 @@ class vi extends b {
|
|
|
7482
7482
|
return t ? t.querySelector('[data-part="chapter-title"]') : null;
|
|
7483
7483
|
}
|
|
7484
7484
|
}
|
|
7485
|
-
const
|
|
7486
|
-
T(
|
|
7487
|
-
T(
|
|
7488
|
-
T(
|
|
7489
|
-
I(
|
|
7490
|
-
class
|
|
7485
|
+
const Ce = ki.prototype;
|
|
7486
|
+
T(Ce, "cues");
|
|
7487
|
+
T(Ce, "activeCue");
|
|
7488
|
+
T(Ce, "activePointerCue");
|
|
7489
|
+
I(Ce, "setRefs");
|
|
7490
|
+
class Si extends b {
|
|
7491
7491
|
static props = {
|
|
7492
7492
|
value: ""
|
|
7493
7493
|
};
|
|
@@ -7508,7 +7508,7 @@ class $i extends b {
|
|
|
7508
7508
|
this.#t.value = t;
|
|
7509
7509
|
}
|
|
7510
7510
|
constructor() {
|
|
7511
|
-
super(), this.#t = new
|
|
7511
|
+
super(), this.#t = new qt(), this.#t.onValueChange = this.#s.bind(this);
|
|
7512
7512
|
}
|
|
7513
7513
|
onSetup() {
|
|
7514
7514
|
l(this.#e.bind(this));
|
|
@@ -7521,15 +7521,15 @@ class $i extends b {
|
|
|
7521
7521
|
this.dispatch(s);
|
|
7522
7522
|
}
|
|
7523
7523
|
}
|
|
7524
|
-
const
|
|
7525
|
-
T(
|
|
7526
|
-
T(
|
|
7527
|
-
var Cr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor,
|
|
7524
|
+
const Pi = Si.prototype;
|
|
7525
|
+
T(Pi, "values");
|
|
7526
|
+
T(Pi, "value");
|
|
7527
|
+
var Cr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, ds = (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);
|
|
7530
7530
|
return i && Cr(t, e, i), i;
|
|
7531
7531
|
};
|
|
7532
|
-
class
|
|
7532
|
+
class xe extends b {
|
|
7533
7533
|
static props = {
|
|
7534
7534
|
thumbnails: null
|
|
7535
7535
|
};
|
|
@@ -7545,10 +7545,10 @@ class Se extends b {
|
|
|
7545
7545
|
return !this.#a()?.length;
|
|
7546
7546
|
}
|
|
7547
7547
|
constructor() {
|
|
7548
|
-
super(), this.#s = new
|
|
7548
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#c.bind(this);
|
|
7549
7549
|
}
|
|
7550
7550
|
onSetup() {
|
|
7551
|
-
this.#t = $(), K(
|
|
7551
|
+
this.#t = $(), K(R) && (this.#e = q(R));
|
|
7552
7552
|
const { thumbnails: t } = this.$props;
|
|
7553
7553
|
this.setAttributes({
|
|
7554
7554
|
"data-thumbnails": () => !!t()
|
|
@@ -7565,8 +7565,8 @@ class Se extends b {
|
|
|
7565
7565
|
cue: n,
|
|
7566
7566
|
value: r.toString(),
|
|
7567
7567
|
label: n.text,
|
|
7568
|
-
startTime:
|
|
7569
|
-
duration:
|
|
7568
|
+
startTime: Pe(Math.max(0, n.startTime - s)),
|
|
7569
|
+
duration: we(
|
|
7570
7570
|
Math.min(i, n.endTime) - Math.max(s, n.startTime)
|
|
7571
7571
|
)
|
|
7572
7572
|
}));
|
|
@@ -7575,13 +7575,13 @@ class Se extends b {
|
|
|
7575
7575
|
p(() => this.#h());
|
|
7576
7576
|
}
|
|
7577
7577
|
onConnect(t) {
|
|
7578
|
-
l(this.#h.bind(this)), l(this.#l.bind(this)), l(this.#r.bind(this)),
|
|
7578
|
+
l(this.#h.bind(this)), l(this.#l.bind(this)), l(this.#r.bind(this)), ke(this.#t.textTracks, "chapters", this.#i.set);
|
|
7579
7579
|
}
|
|
7580
7580
|
#r() {
|
|
7581
7581
|
const t = this.#i();
|
|
7582
7582
|
if (!t) return;
|
|
7583
7583
|
const e = this.#o.bind(this, t);
|
|
7584
|
-
return e(), new
|
|
7584
|
+
return e(), new M(t).add("add-cue", e).add("remove-cue", e), () => {
|
|
7585
7585
|
this.#a.set([]);
|
|
7586
7586
|
};
|
|
7587
7587
|
}
|
|
@@ -7597,11 +7597,11 @@ class Se extends b {
|
|
|
7597
7597
|
this.#s.value = "-1";
|
|
7598
7598
|
return;
|
|
7599
7599
|
}
|
|
7600
|
-
const { realCurrentTime: e, seekableStart: s, seekableEnd: i } = this.#t.$state, n = s(), r = i(), o = e(), h = this.#a().findIndex((d) =>
|
|
7601
|
-
this.#s.value = h.toString(), h >= 0 &&
|
|
7600
|
+
const { realCurrentTime: e, seekableStart: s, seekableEnd: i } = this.#t.$state, n = s(), r = i(), o = e(), h = this.#a().findIndex((d) => Fe(d, o));
|
|
7601
|
+
this.#s.value = h.toString(), h >= 0 && ct(() => {
|
|
7602
7602
|
if (!this.connectScope) return;
|
|
7603
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, g = Math.max(0, o - u) / m * 100;
|
|
7604
|
-
c && j(c, "--progress",
|
|
7604
|
+
c && j(c, "--progress", D(g, 3) + "%");
|
|
7605
7605
|
});
|
|
7606
7606
|
}
|
|
7607
7607
|
#l() {
|
|
@@ -7613,17 +7613,17 @@ class Se extends b {
|
|
|
7613
7613
|
z(s) && i?.[s] && (this.#s.value = s.toString(), this.#t.remote.seek(i[s].startTime - n(), e), this.dispatch("change", { detail: i[s], trigger: e }));
|
|
7614
7614
|
}
|
|
7615
7615
|
}
|
|
7616
|
-
|
|
7616
|
+
ds([
|
|
7617
7617
|
T
|
|
7618
|
-
],
|
|
7619
|
-
|
|
7618
|
+
], xe.prototype, "value");
|
|
7619
|
+
ds([
|
|
7620
7620
|
T
|
|
7621
|
-
],
|
|
7622
|
-
|
|
7621
|
+
], xe.prototype, "disabled");
|
|
7622
|
+
ds([
|
|
7623
7623
|
I
|
|
7624
|
-
],
|
|
7624
|
+
], xe.prototype, "getOptions");
|
|
7625
7625
|
const Er = [1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4];
|
|
7626
|
-
class
|
|
7626
|
+
class Ci extends b {
|
|
7627
7627
|
static props = {
|
|
7628
7628
|
normalLabel: "Disabled",
|
|
7629
7629
|
gains: Er
|
|
@@ -7639,10 +7639,10 @@ class Ti extends b {
|
|
|
7639
7639
|
return !e() || t().length === 0;
|
|
7640
7640
|
}
|
|
7641
7641
|
constructor() {
|
|
7642
|
-
super(), this.#s = new
|
|
7642
|
+
super(), this.#s = new qt(), this.#s.onValueChange = this.#o.bind(this);
|
|
7643
7643
|
}
|
|
7644
7644
|
onSetup() {
|
|
7645
|
-
this.#t = $(), K(
|
|
7645
|
+
this.#t = $(), K(R) && (this.#e = q(R));
|
|
7646
7646
|
}
|
|
7647
7647
|
onConnect(t) {
|
|
7648
7648
|
l(this.#i.bind(this)), l(this.#a.bind(this)), l(this.#n.bind(this));
|
|
@@ -7674,10 +7674,10 @@ class Ti extends b {
|
|
|
7674
7674
|
this.#t.remote.changeAudioGain(s, e), this.dispatch("change", { detail: s, trigger: e });
|
|
7675
7675
|
}
|
|
7676
7676
|
}
|
|
7677
|
-
const
|
|
7678
|
-
T(
|
|
7679
|
-
T(
|
|
7680
|
-
I(
|
|
7677
|
+
const cs = Ci.prototype;
|
|
7678
|
+
T(cs, "value");
|
|
7679
|
+
T(cs, "disabled");
|
|
7680
|
+
I(cs, "getOptions");
|
|
7681
7681
|
class Ar extends b {
|
|
7682
7682
|
static props = {
|
|
7683
7683
|
disabled: !1,
|
|
@@ -7704,7 +7704,7 @@ class Ar extends b {
|
|
|
7704
7704
|
}
|
|
7705
7705
|
#s() {
|
|
7706
7706
|
let t = this.$props.event(), e = this.$props.disabled();
|
|
7707
|
-
!this.#e || !t || e || (/^dbl/.test(t) && (t = t.split(/^dbl/)[1]), (t === "pointerup" || t === "pointerdown") && this.#t.$state.pointer() === "coarse" && (t = t === "pointerup" ? "touchend" : "touchstart"),
|
|
7707
|
+
!this.#e || !t || e || (/^dbl/.test(t) && (t = t.split(/^dbl/)[1]), (t === "pointerup" || t === "pointerdown") && this.#t.$state.pointer() === "coarse" && (t = t === "pointerup" ? "touchend" : "touchstart"), N(
|
|
7708
7708
|
this.#e,
|
|
7709
7709
|
t,
|
|
7710
7710
|
this.#n.bind(this),
|
|
@@ -7714,7 +7714,7 @@ class Ar extends b {
|
|
|
7714
7714
|
#i = 0;
|
|
7715
7715
|
#a = -1;
|
|
7716
7716
|
#n(t) {
|
|
7717
|
-
if (this.$props.disabled() ||
|
|
7717
|
+
if (this.$props.disabled() || bs(t) && (t.button !== 0 || this.#t.activeMenu) || pe(t) && this.#t.activeMenu || Xe(t) || !this.#o(t))
|
|
7718
7718
|
return;
|
|
7719
7719
|
if (t.MEDIA_GESTURE = !0, t.preventDefault(), !p(this.$props.event)?.startsWith("dbl"))
|
|
7720
7720
|
this.#i === 0 && setTimeout(() => {
|
|
@@ -7738,8 +7738,8 @@ class Ar extends b {
|
|
|
7738
7738
|
/** Validate event occurred in gesture bounds. */
|
|
7739
7739
|
#o(t) {
|
|
7740
7740
|
if (!this.el) return !1;
|
|
7741
|
-
if (
|
|
7742
|
-
const e =
|
|
7741
|
+
if (bs(t) || ra(t) || pe(t)) {
|
|
7742
|
+
const e = pe(t) ? t.changedTouches[0] ?? t.touches[0] : void 0, s = e?.clientX ?? t.clientX, i = e?.clientY ?? t.clientY, n = this.el.getBoundingClientRect(), r = i >= n.top && i <= n.bottom && s >= n.left && s <= n.right;
|
|
7743
7743
|
return t.type.includes("leave") ? !r : r;
|
|
7744
7744
|
}
|
|
7745
7745
|
return !0;
|
|
@@ -7755,7 +7755,7 @@ class Ar extends b {
|
|
|
7755
7755
|
}
|
|
7756
7756
|
#l(t, e) {
|
|
7757
7757
|
if (!t) return;
|
|
7758
|
-
const s = new
|
|
7758
|
+
const s = new L("will-trigger", {
|
|
7759
7759
|
detail: t,
|
|
7760
7760
|
cancelable: !0,
|
|
7761
7761
|
trigger: e
|
|
@@ -7785,7 +7785,7 @@ class Mr {
|
|
|
7785
7785
|
this.#s?.abort(), this.#s = void 0, this.#e.reset(), this.#t = null;
|
|
7786
7786
|
}
|
|
7787
7787
|
changeTrack(t) {
|
|
7788
|
-
!t || this.#t === t || (this.#s?.abort(), this.#s = new
|
|
7788
|
+
!t || this.#t === t || (this.#s?.abort(), this.#s = new M(t), t.readyState < 2 ? (this.#e.reset(), this.#s.add("load", () => this.#i(t), { once: !0 })) : this.#i(t), this.#s.add("add-cue", (e) => {
|
|
7789
7789
|
this.#e.addCue(e.detail);
|
|
7790
7790
|
}).add("remove-cue", (e) => {
|
|
7791
7791
|
this.#e.removeCue(e.detail);
|
|
@@ -7798,7 +7798,7 @@ class Mr {
|
|
|
7798
7798
|
});
|
|
7799
7799
|
}
|
|
7800
7800
|
}
|
|
7801
|
-
class
|
|
7801
|
+
class pt extends b {
|
|
7802
7802
|
static props = {
|
|
7803
7803
|
textDir: "ltr",
|
|
7804
7804
|
exampleText: "Captions look like this."
|
|
@@ -7807,21 +7807,21 @@ class dt extends b {
|
|
|
7807
7807
|
static lib = w(null);
|
|
7808
7808
|
onSetup() {
|
|
7809
7809
|
this.#t = $(), this.setAttributes({
|
|
7810
|
-
"aria-hidden":
|
|
7810
|
+
"aria-hidden": H(this.#e.bind(this))
|
|
7811
7811
|
});
|
|
7812
7812
|
}
|
|
7813
7813
|
onAttach(t) {
|
|
7814
7814
|
t.style.setProperty("pointer-events", "none");
|
|
7815
7815
|
}
|
|
7816
7816
|
onConnect(t) {
|
|
7817
|
-
|
|
7817
|
+
pt.lib() || import("./prod-BoQuiIB3.js").then((e) => e.d).then((e) => pt.lib.set(e)), l(this.#s.bind(this));
|
|
7818
7818
|
}
|
|
7819
7819
|
#e() {
|
|
7820
7820
|
const { textTrack: t, remotePlaybackState: e, iOSControls: s } = this.#t.$state, i = t();
|
|
7821
7821
|
return s() || e() === "connected" || !i || !F(i);
|
|
7822
7822
|
}
|
|
7823
7823
|
#s() {
|
|
7824
|
-
if (!
|
|
7824
|
+
if (!pt.lib()) return;
|
|
7825
7825
|
const { viewType: t } = this.#t.$state;
|
|
7826
7826
|
return t() === "audio" ? this.#i() : this.#o();
|
|
7827
7827
|
}
|
|
@@ -7834,22 +7834,22 @@ class dt extends b {
|
|
|
7834
7834
|
if (this.#e()) return;
|
|
7835
7835
|
this.#n();
|
|
7836
7836
|
const { textTrack: t } = this.#t.$state;
|
|
7837
|
-
|
|
7837
|
+
N(t(), "cue-change", this.#n.bind(this)), l(this.#r.bind(this));
|
|
7838
7838
|
}
|
|
7839
7839
|
#n() {
|
|
7840
7840
|
this.el.textContent = "", this.#p >= 0 && this.#y();
|
|
7841
|
-
const { realCurrentTime: t, textTrack: e } = this.#t.$state, { renderVTTCueString: s } =
|
|
7841
|
+
const { realCurrentTime: t, textTrack: e } = this.#t.$state, { renderVTTCueString: s } = pt.lib(), i = p(t), n = p(e).activeCues;
|
|
7842
7842
|
for (const r of n) {
|
|
7843
7843
|
const o = this.#g(), h = this.#b();
|
|
7844
7844
|
h.innerHTML = s(r, i), o.append(h), this.el.append(h);
|
|
7845
7845
|
}
|
|
7846
7846
|
}
|
|
7847
7847
|
#r() {
|
|
7848
|
-
const { realCurrentTime: t } = this.#t.$state, { updateTimedVTTCueNodes: e } =
|
|
7848
|
+
const { realCurrentTime: t } = this.#t.$state, { updateTimedVTTCueNodes: e } = pt.lib();
|
|
7849
7849
|
e(this.el, t());
|
|
7850
7850
|
}
|
|
7851
7851
|
#o() {
|
|
7852
|
-
const { CaptionsRenderer: t } =
|
|
7852
|
+
const { CaptionsRenderer: t } = pt.lib(), e = new t(this.el), s = new Mr(e);
|
|
7853
7853
|
return this.#t.textRenderers.add(s), l(this.#h.bind(this, e)), l(this.#l.bind(this, e)), this.#c(e), () => {
|
|
7854
7854
|
this.el.textContent = "", this.#t.textRenderers.remove(s), e.destroy();
|
|
7855
7855
|
};
|
|
@@ -7866,7 +7866,7 @@ class dt extends b {
|
|
|
7866
7866
|
const e = this.#t.player;
|
|
7867
7867
|
if (!e) return;
|
|
7868
7868
|
const s = this.#u.bind(this, t);
|
|
7869
|
-
|
|
7869
|
+
N(e, "vds-font-change", s);
|
|
7870
7870
|
}
|
|
7871
7871
|
#u(t) {
|
|
7872
7872
|
if (this.#p >= 0) {
|
|
@@ -7904,7 +7904,7 @@ class Lr extends b {
|
|
|
7904
7904
|
alt: null,
|
|
7905
7905
|
crossOrigin: null
|
|
7906
7906
|
};
|
|
7907
|
-
static state = new
|
|
7907
|
+
static state = new vt({
|
|
7908
7908
|
img: null,
|
|
7909
7909
|
src: null,
|
|
7910
7910
|
alt: null,
|
|
@@ -7932,11 +7932,11 @@ class Lr extends b {
|
|
|
7932
7932
|
}
|
|
7933
7933
|
#e() {
|
|
7934
7934
|
const { error: t } = this.$state;
|
|
7935
|
-
return !
|
|
7935
|
+
return !lt(t());
|
|
7936
7936
|
}
|
|
7937
7937
|
#s() {
|
|
7938
7938
|
const { canLoadPoster: t, poster: e } = this.#t.$state;
|
|
7939
|
-
!t() && e() &&
|
|
7939
|
+
!t() && e() && ne(e(), "preconnect");
|
|
7940
7940
|
}
|
|
7941
7941
|
#i() {
|
|
7942
7942
|
const { src: t } = this.$props, { poster: e, nativeControls: s } = this.#t.$state;
|
|
@@ -7948,7 +7948,7 @@ class Lr extends b {
|
|
|
7948
7948
|
}
|
|
7949
7949
|
#n() {
|
|
7950
7950
|
const t = this.$state.img();
|
|
7951
|
-
t && (new
|
|
7951
|
+
t && (new M(t).add("load", this.#u.bind(this)).add("error", this.#d.bind(this)), t.complete && this.#u());
|
|
7952
7952
|
}
|
|
7953
7953
|
#r = "";
|
|
7954
7954
|
#o() {
|
|
@@ -7978,7 +7978,7 @@ class Lr extends b {
|
|
|
7978
7978
|
e.set(!1), s.set(t);
|
|
7979
7979
|
}
|
|
7980
7980
|
}
|
|
7981
|
-
class qr extends v(HTMLElement,
|
|
7981
|
+
class qr extends v(HTMLElement, li) {
|
|
7982
7982
|
static tagName = "media-provider";
|
|
7983
7983
|
#t;
|
|
7984
7984
|
#e = null;
|
|
@@ -8009,7 +8009,7 @@ class qr extends v(HTMLElement, ni) {
|
|
|
8009
8009
|
}), t;
|
|
8010
8010
|
}
|
|
8011
8011
|
#a() {
|
|
8012
|
-
const t = this.#e instanceof HTMLVideoElement ? this.#e : document.createElement("video"), { crossOrigin: e, poster: s, nativeControls: i } = this.#t.$state, n =
|
|
8012
|
+
const t = this.#e instanceof HTMLVideoElement ? this.#e : document.createElement("video"), { crossOrigin: e, poster: s, nativeControls: i } = this.#t.$state, n = at(() => i() ? "true" : null), r = at(() => s() && i() ? s() : null);
|
|
8013
8013
|
return l(() => {
|
|
8014
8014
|
f(t, "controls", n()), f(t, "crossorigin", e()), f(t, "poster", r());
|
|
8015
8015
|
}), t;
|
|
@@ -8022,12 +8022,12 @@ class qr extends v(HTMLElement, ni) {
|
|
|
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_-BQB6UUD-.js").then(({ insertContent: e }) => {
|
|
8026
8026
|
e(t, this.#t.$state);
|
|
8027
8027
|
}), t;
|
|
8028
8028
|
}
|
|
8029
8029
|
}
|
|
8030
|
-
class _r extends v(HTMLElement,
|
|
8030
|
+
class _r extends v(HTMLElement, It) {
|
|
8031
8031
|
static tagName = "media-player";
|
|
8032
8032
|
static attrs = {
|
|
8033
8033
|
autoPlay: "autoplay",
|
|
@@ -8039,76 +8039,76 @@ class _r extends v(HTMLElement, Lt) {
|
|
|
8039
8039
|
}
|
|
8040
8040
|
y(_r);
|
|
8041
8041
|
y(qr);
|
|
8042
|
-
var
|
|
8043
|
-
const
|
|
8044
|
-
\f\r]`,
|
|
8045
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
8046
|
-
function
|
|
8042
|
+
var Re;
|
|
8043
|
+
const Te = window, Dt = Te.trustedTypes, qs = Dt ? Dt.createPolicy("lit-html", { createHTML: (a) => a }) : void 0, ze = "$lit$", mt = `lit$${(Math.random() + "").slice(9)}$`, xi = "?" + mt, Ir = `<${xi}>`, Et = document, Jt = () => Et.createComment(""), Zt = (a) => a === null || typeof a != "object" && typeof a != "function", Ei = Array.isArray, Vr = (a) => Ei(a) || typeof a?.[Symbol.iterator] == "function", Oe = `[
|
|
8044
|
+
\f\r]`, Kt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _s = /-->/g, Is = />/g, Tt = RegExp(`>|${Oe}(?:([^\\s"'>=/]+)(${Oe}*=${Oe}*(?:[^
|
|
8045
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Vs = /'/g, Ds = /"/g, Ai = /^(?:script|style|textarea|title)$/i, Dr = (a) => (t, ...e) => ({ _$litType$: a, strings: t, values: e }), Rr = Dr(1), te = /* @__PURE__ */ Symbol.for("lit-noChange"), O = /* @__PURE__ */ Symbol.for("lit-nothing"), Rs = /* @__PURE__ */ new WeakMap(), Pt = Et.createTreeWalker(Et, 129, null, !1);
|
|
8046
|
+
function Mi(a, t) {
|
|
8047
8047
|
if (!Array.isArray(a) || !a.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
8048
|
-
return
|
|
8048
|
+
return qs !== void 0 ? qs.createHTML(t) : t;
|
|
8049
8049
|
}
|
|
8050
8050
|
const Or = (a, t) => {
|
|
8051
8051
|
const e = a.length - 1, s = [];
|
|
8052
|
-
let i, n = t === 2 ? "<svg>" : "", r =
|
|
8052
|
+
let i, n = t === 2 ? "<svg>" : "", r = Kt;
|
|
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 ===
|
|
8057
|
-
const g = r ===
|
|
8058
|
-
n += r ===
|
|
8056
|
+
for (; m < h.length && (r.lastIndex = m, c = r.exec(h), c !== null); ) m = r.lastIndex, r === Kt ? c[1] === "!--" ? r = _s : c[1] !== void 0 ? r = Is : c[2] !== void 0 ? (Ai.test(c[2]) && (i = RegExp("</" + c[2], "g")), r = Tt) : c[3] !== void 0 && (r = Tt) : r === Tt ? c[0] === ">" ? (r = i ?? Kt, u = -1) : c[1] === void 0 ? u = -2 : (u = r.lastIndex - c[2].length, d = c[1], r = c[3] === void 0 ? Tt : c[3] === '"' ? Ds : Vs) : r === Ds || r === Vs ? r = Tt : r === _s || r === Is ? r = Kt : (r = Tt, i = void 0);
|
|
8057
|
+
const g = r === Tt && a[o + 1].startsWith("/>") ? " " : "";
|
|
8058
|
+
n += r === Kt ? h + Ir : u >= 0 ? (s.push(d), h.slice(0, u) + ze + h.slice(u) + mt + g) : h + mt + (u === -2 ? (s.push(void 0), o) : g);
|
|
8059
8059
|
}
|
|
8060
|
-
return [
|
|
8060
|
+
return [Mi(a, n + (a[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
|
8061
8061
|
};
|
|
8062
|
-
class
|
|
8062
|
+
class ee {
|
|
8063
8063
|
constructor({ strings: t, _$litType$: e }, s) {
|
|
8064
8064
|
let i;
|
|
8065
8065
|
this.parts = [];
|
|
8066
8066
|
let n = 0, r = 0;
|
|
8067
8067
|
const o = t.length - 1, h = this.parts, [d, c] = Or(t, e);
|
|
8068
|
-
if (this.el =
|
|
8068
|
+
if (this.el = ee.createElement(d, s), Pt.currentNode = this.el.content, e === 2) {
|
|
8069
8069
|
const u = this.el.content, m = u.firstChild;
|
|
8070
8070
|
m.remove(), u.append(...m.childNodes);
|
|
8071
8071
|
}
|
|
8072
|
-
for (; (i =
|
|
8072
|
+
for (; (i = Pt.nextNode()) !== null && h.length < o; ) {
|
|
8073
8073
|
if (i.nodeType === 1) {
|
|
8074
8074
|
if (i.hasAttributes()) {
|
|
8075
8075
|
const u = [];
|
|
8076
|
-
for (const m of i.getAttributeNames()) if (m.endsWith(
|
|
8076
|
+
for (const m of i.getAttributeNames()) if (m.endsWith(ze) || m.startsWith(mt)) {
|
|
8077
8077
|
const g = c[r++];
|
|
8078
8078
|
if (u.push(m), g !== void 0) {
|
|
8079
|
-
const C = i.getAttribute(g.toLowerCase() +
|
|
8080
|
-
h.push({ type: 1, index: n, name:
|
|
8079
|
+
const C = i.getAttribute(g.toLowerCase() + ze).split(mt), _ = /([.?@])?(.*)/.exec(g);
|
|
8080
|
+
h.push({ type: 1, index: n, name: _[2], strings: C, ctor: _[1] === "." ? Hr : _[1] === "?" ? Br : _[1] === "@" ? Gr : Ee });
|
|
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 (
|
|
8086
|
-
const u = i.textContent.split(
|
|
8085
|
+
if (Ai.test(i.tagName)) {
|
|
8086
|
+
const u = i.textContent.split(mt), m = u.length - 1;
|
|
8087
8087
|
if (m > 0) {
|
|
8088
|
-
i.textContent =
|
|
8089
|
-
for (let g = 0; g < m; g++) i.append(u[g],
|
|
8090
|
-
i.append(u[m],
|
|
8088
|
+
i.textContent = Dt ? Dt.emptyScript : "";
|
|
8089
|
+
for (let g = 0; g < m; g++) i.append(u[g], Jt()), Pt.nextNode(), h.push({ type: 2, index: ++n });
|
|
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 === xi) h.push({ type: 2, index: n });
|
|
8094
8094
|
else {
|
|
8095
8095
|
let u = -1;
|
|
8096
|
-
for (; (u = i.data.indexOf(
|
|
8096
|
+
for (; (u = i.data.indexOf(mt, u + 1)) !== -1; ) h.push({ type: 7, index: n }), u += mt.length - 1;
|
|
8097
8097
|
}
|
|
8098
8098
|
n++;
|
|
8099
8099
|
}
|
|
8100
8100
|
}
|
|
8101
8101
|
static createElement(t, e) {
|
|
8102
|
-
const s =
|
|
8102
|
+
const s = Et.createElement("template");
|
|
8103
8103
|
return s.innerHTML = t, s;
|
|
8104
8104
|
}
|
|
8105
8105
|
}
|
|
8106
|
-
function
|
|
8106
|
+
function Rt(a, t, e = a, s) {
|
|
8107
8107
|
var i, n, r, o;
|
|
8108
|
-
if (t ===
|
|
8108
|
+
if (t === te) return t;
|
|
8109
8109
|
let h = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
|
|
8110
|
-
const d =
|
|
8111
|
-
return h?.constructor !== d && ((n = h?._$AO) === null || n === void 0 || n.call(h, !1), d === void 0 ? h = void 0 : (h = new d(a), h._$AT(a, e, s)), s !== void 0 ? ((r = (o = e)._$Co) !== null && r !== void 0 ? r : o._$Co = [])[s] = h : e._$Cl = h), h !== void 0 && (t =
|
|
8110
|
+
const d = Zt(t) ? void 0 : t._$litDirective$;
|
|
8111
|
+
return h?.constructor !== d && ((n = h?._$AO) === null || n === void 0 || n.call(h, !1), d === void 0 ? h = void 0 : (h = new d(a), h._$AT(a, e, s)), s !== void 0 ? ((r = (o = e)._$Co) !== null && r !== void 0 ? r : o._$Co = [])[s] = h : e._$Cl = h), h !== void 0 && (t = Rt(a, h._$AS(a, t.values), h, s)), t;
|
|
8112
8112
|
}
|
|
8113
8113
|
class Nr {
|
|
8114
8114
|
constructor(t, e) {
|
|
@@ -8122,27 +8122,27 @@ class Nr {
|
|
|
8122
8122
|
}
|
|
8123
8123
|
u(t) {
|
|
8124
8124
|
var e;
|
|
8125
|
-
const { el: { content: s }, parts: i } = this._$AD, n = ((e = t?.creationScope) !== null && e !== void 0 ? e :
|
|
8126
|
-
|
|
8127
|
-
let r =
|
|
8125
|
+
const { el: { content: s }, parts: i } = this._$AD, n = ((e = t?.creationScope) !== null && e !== void 0 ? e : Et).importNode(s, !0);
|
|
8126
|
+
Pt.currentNode = n;
|
|
8127
|
+
let r = Pt.nextNode(), o = 0, h = 0, d = i[0];
|
|
8128
8128
|
for (; d !== void 0; ) {
|
|
8129
8129
|
if (o === d.index) {
|
|
8130
8130
|
let c;
|
|
8131
|
-
d.type === 2 ? c = new
|
|
8131
|
+
d.type === 2 ? c = new he(r, r.nextSibling, this, t) : d.type === 1 ? c = new d.ctor(r, d.name, d.strings, this, t) : d.type === 6 && (c = new Ur(r, this, t)), this._$AV.push(c), d = i[++h];
|
|
8132
8132
|
}
|
|
8133
|
-
o !== d?.index && (r =
|
|
8133
|
+
o !== d?.index && (r = Pt.nextNode(), o++);
|
|
8134
8134
|
}
|
|
8135
|
-
return
|
|
8135
|
+
return Pt.currentNode = Et, n;
|
|
8136
8136
|
}
|
|
8137
8137
|
v(t) {
|
|
8138
8138
|
let e = 0;
|
|
8139
8139
|
for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
|
8140
8140
|
}
|
|
8141
8141
|
}
|
|
8142
|
-
class
|
|
8142
|
+
class he {
|
|
8143
8143
|
constructor(t, e, s, i) {
|
|
8144
8144
|
var n;
|
|
8145
|
-
this.type = 2, this._$AH =
|
|
8145
|
+
this.type = 2, this._$AH = O, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cp = (n = i?.isConnected) === null || n === void 0 || n;
|
|
8146
8146
|
}
|
|
8147
8147
|
get _$AU() {
|
|
8148
8148
|
var t, e;
|
|
@@ -8160,7 +8160,7 @@ class ne {
|
|
|
8160
8160
|
return this._$AB;
|
|
8161
8161
|
}
|
|
8162
8162
|
_$AI(t, e = this) {
|
|
8163
|
-
t =
|
|
8163
|
+
t = Rt(this, t, e), Zt(t) ? t === O || t == null || t === "" ? (this._$AH !== O && this._$AR(), this._$AH = O) : t !== this._$AH && t !== te && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Vr(t) ? this.T(t) : this._(t);
|
|
8164
8164
|
}
|
|
8165
8165
|
k(t) {
|
|
8166
8166
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -8169,11 +8169,11 @@ class ne {
|
|
|
8169
8169
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
8170
8170
|
}
|
|
8171
8171
|
_(t) {
|
|
8172
|
-
this._$AH !==
|
|
8172
|
+
this._$AH !== O && Zt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Et.createTextNode(t)), this._$AH = t;
|
|
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 =
|
|
8176
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = ee.createElement(Mi(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 Nr(n, this), o = r.u(this.options);
|
|
@@ -8181,14 +8181,14 @@ class ne {
|
|
|
8181
8181
|
}
|
|
8182
8182
|
}
|
|
8183
8183
|
_$AC(t) {
|
|
8184
|
-
let e =
|
|
8185
|
-
return e === void 0 &&
|
|
8184
|
+
let e = Rs.get(t.strings);
|
|
8185
|
+
return e === void 0 && Rs.set(t.strings, e = new ee(t)), e;
|
|
8186
8186
|
}
|
|
8187
8187
|
T(t) {
|
|
8188
|
-
|
|
8188
|
+
Ei(this._$AH) || (this._$AH = [], this._$AR());
|
|
8189
8189
|
const e = this._$AH;
|
|
8190
8190
|
let s, i = 0;
|
|
8191
|
-
for (const n of t) i === e.length ? e.push(s = new
|
|
8191
|
+
for (const n of t) i === e.length ? e.push(s = new he(this.k(Jt()), this.k(Jt()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
|
8192
8192
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
|
8193
8193
|
}
|
|
8194
8194
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -8203,9 +8203,9 @@ class ne {
|
|
|
8203
8203
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
8204
8204
|
}
|
|
8205
8205
|
}
|
|
8206
|
-
class
|
|
8206
|
+
class Ee {
|
|
8207
8207
|
constructor(t, e, s, i, n) {
|
|
8208
|
-
this.type = 1, this._$AH =
|
|
8208
|
+
this.type = 1, this._$AH = O, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = O;
|
|
8209
8209
|
}
|
|
8210
8210
|
get tagName() {
|
|
8211
8211
|
return this.element.tagName;
|
|
@@ -8216,43 +8216,43 @@ class Pe {
|
|
|
8216
8216
|
_$AI(t, e = this, s, i) {
|
|
8217
8217
|
const n = this.strings;
|
|
8218
8218
|
let r = !1;
|
|
8219
|
-
if (n === void 0) t =
|
|
8219
|
+
if (n === void 0) t = Rt(this, t, e, 0), r = !Zt(t) || t !== this._$AH && t !== te, r && (this._$AH = t);
|
|
8220
8220
|
else {
|
|
8221
8221
|
const o = t;
|
|
8222
8222
|
let h, d;
|
|
8223
|
-
for (t = n[0], h = 0; h < n.length - 1; h++) d =
|
|
8223
|
+
for (t = n[0], h = 0; h < n.length - 1; h++) d = Rt(this, o[s + h], e, h), d === te && (d = this._$AH[h]), r || (r = !Zt(d) || d !== this._$AH[h]), d === O ? t = O : t !== O && (t += (d ?? "") + n[h + 1]), this._$AH[h] = d;
|
|
8224
8224
|
}
|
|
8225
8225
|
r && !i && this.j(t);
|
|
8226
8226
|
}
|
|
8227
8227
|
j(t) {
|
|
8228
|
-
t ===
|
|
8228
|
+
t === O ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
8229
8229
|
}
|
|
8230
8230
|
}
|
|
8231
|
-
class Hr extends
|
|
8231
|
+
class Hr extends Ee {
|
|
8232
8232
|
constructor() {
|
|
8233
8233
|
super(...arguments), this.type = 3;
|
|
8234
8234
|
}
|
|
8235
8235
|
j(t) {
|
|
8236
|
-
this.element[this.name] = t ===
|
|
8236
|
+
this.element[this.name] = t === O ? void 0 : t;
|
|
8237
8237
|
}
|
|
8238
8238
|
}
|
|
8239
|
-
const Fr =
|
|
8240
|
-
class Br extends
|
|
8239
|
+
const Fr = Dt ? Dt.emptyScript : "";
|
|
8240
|
+
class Br extends Ee {
|
|
8241
8241
|
constructor() {
|
|
8242
8242
|
super(...arguments), this.type = 4;
|
|
8243
8243
|
}
|
|
8244
8244
|
j(t) {
|
|
8245
|
-
t && t !==
|
|
8245
|
+
t && t !== O ? this.element.setAttribute(this.name, Fr) : this.element.removeAttribute(this.name);
|
|
8246
8246
|
}
|
|
8247
8247
|
}
|
|
8248
|
-
class Gr extends
|
|
8248
|
+
class Gr extends Ee {
|
|
8249
8249
|
constructor(t, e, s, i, n) {
|
|
8250
8250
|
super(t, e, s, i, n), this.type = 5;
|
|
8251
8251
|
}
|
|
8252
8252
|
_$AI(t, e = this) {
|
|
8253
8253
|
var s;
|
|
8254
|
-
if ((t = (s =
|
|
8255
|
-
const i = this._$AH, n = t ===
|
|
8254
|
+
if ((t = (s = Rt(this, t, e, 0)) !== null && s !== void 0 ? s : O) === te) return;
|
|
8255
|
+
const i = this._$AH, n = t === O && i !== O || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== O && (i === O || n);
|
|
8256
8256
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
8257
8257
|
}
|
|
8258
8258
|
handleEvent(t) {
|
|
@@ -8268,36 +8268,36 @@ class Ur {
|
|
|
8268
8268
|
return this._$AM._$AU;
|
|
8269
8269
|
}
|
|
8270
8270
|
_$AI(t) {
|
|
8271
|
-
|
|
8271
|
+
Rt(this, t);
|
|
8272
8272
|
}
|
|
8273
8273
|
}
|
|
8274
|
-
const
|
|
8275
|
-
|
|
8276
|
-
const
|
|
8274
|
+
const Os = Te.litHtmlPolyfillSupport;
|
|
8275
|
+
Os?.(ee, he), ((Re = Te.litHtmlVersions) !== null && Re !== void 0 ? Re : Te.litHtmlVersions = []).push("2.8.0");
|
|
8276
|
+
const Ns = (a, t, e) => {
|
|
8277
8277
|
var s, i;
|
|
8278
8278
|
const n = (s = e?.renderBefore) !== null && s !== void 0 ? s : t;
|
|
8279
8279
|
let r = n._$litPart$;
|
|
8280
8280
|
if (r === void 0) {
|
|
8281
8281
|
const o = (i = e?.renderBefore) !== null && i !== void 0 ? i : null;
|
|
8282
|
-
n._$litPart$ = r = new
|
|
8282
|
+
n._$litPart$ = r = new he(t.insertBefore(Jt(), o), o, void 0, e ?? {});
|
|
8283
8283
|
}
|
|
8284
8284
|
return r._$AI(a), r;
|
|
8285
8285
|
};
|
|
8286
8286
|
class Kr extends HTMLElement {
|
|
8287
8287
|
rootPart = null;
|
|
8288
8288
|
connectedCallback() {
|
|
8289
|
-
this.rootPart =
|
|
8289
|
+
this.rootPart = Ns(this.render(), this, {
|
|
8290
8290
|
renderBefore: this.firstChild
|
|
8291
8291
|
}), this.rootPart.setConnected(!0);
|
|
8292
8292
|
}
|
|
8293
8293
|
disconnectedCallback() {
|
|
8294
|
-
this.rootPart?.setConnected(!1), this.rootPart = null,
|
|
8294
|
+
this.rootPart?.setConnected(!1), this.rootPart = null, Ns(null, this);
|
|
8295
8295
|
}
|
|
8296
8296
|
}
|
|
8297
|
-
const Qr = /* @__PURE__ */
|
|
8297
|
+
const Qr = /* @__PURE__ */ Zs(
|
|
8298
8298
|
'<img loading="eager" decoding="async" aria-hidden="true">'
|
|
8299
8299
|
);
|
|
8300
|
-
class
|
|
8300
|
+
class Li extends v(HTMLElement, zn) {
|
|
8301
8301
|
static tagName = "media-thumbnail";
|
|
8302
8302
|
static attrs = {
|
|
8303
8303
|
crossOrigin: "crossorigin"
|
|
@@ -8314,7 +8314,7 @@ class xi extends v(HTMLElement, zn) {
|
|
|
8314
8314
|
});
|
|
8315
8315
|
}
|
|
8316
8316
|
#s() {
|
|
8317
|
-
return
|
|
8317
|
+
return ti(Qr);
|
|
8318
8318
|
}
|
|
8319
8319
|
}
|
|
8320
8320
|
class zr extends v(HTMLElement, ur) {
|
|
@@ -8349,13 +8349,13 @@ class to extends v(HTMLElement, Rn) {
|
|
|
8349
8349
|
class eo extends v(HTMLElement, Bn) {
|
|
8350
8350
|
static tagName = "media-seek-button";
|
|
8351
8351
|
}
|
|
8352
|
-
function
|
|
8353
|
-
|
|
8352
|
+
function Ft(a, t) {
|
|
8353
|
+
ct(() => {
|
|
8354
8354
|
if (!a.connectScope) return;
|
|
8355
8355
|
const e = a.querySelector("template");
|
|
8356
8356
|
e && l(() => {
|
|
8357
8357
|
const s = a.getOptions();
|
|
8358
|
-
|
|
8358
|
+
Je(e, s.length, (i, n) => {
|
|
8359
8359
|
const { label: r, value: o } = s[n], h = i.querySelector('[data-part="label"]');
|
|
8360
8360
|
i.setAttribute("value", o), h && (S(r) ? h.textContent = r : l(() => {
|
|
8361
8361
|
h.textContent = r();
|
|
@@ -8364,22 +8364,22 @@ function Ot(a, t) {
|
|
|
8364
8364
|
});
|
|
8365
8365
|
});
|
|
8366
8366
|
}
|
|
8367
|
-
class so extends v(HTMLElement,
|
|
8367
|
+
class so extends v(HTMLElement, yi) {
|
|
8368
8368
|
static tagName = "media-audio-radio-group";
|
|
8369
8369
|
onConnect() {
|
|
8370
|
-
|
|
8370
|
+
Ft(this);
|
|
8371
8371
|
}
|
|
8372
8372
|
}
|
|
8373
|
-
class io extends v(HTMLElement,
|
|
8373
|
+
class io extends v(HTMLElement, bi) {
|
|
8374
8374
|
static tagName = "media-captions-radio-group";
|
|
8375
8375
|
onConnect() {
|
|
8376
|
-
|
|
8376
|
+
Ft(this);
|
|
8377
8377
|
}
|
|
8378
8378
|
}
|
|
8379
|
-
class ao extends v(HTMLElement,
|
|
8379
|
+
class ao extends v(HTMLElement, Ht) {
|
|
8380
8380
|
static tagName = "media-menu";
|
|
8381
8381
|
}
|
|
8382
|
-
class no extends v(HTMLElement,
|
|
8382
|
+
class no extends v(HTMLElement, ns) {
|
|
8383
8383
|
static tagName = "media-menu-button";
|
|
8384
8384
|
}
|
|
8385
8385
|
class ro extends v(HTMLElement, or) {
|
|
@@ -8388,16 +8388,16 @@ class ro extends v(HTMLElement, or) {
|
|
|
8388
8388
|
class oo extends v(HTMLElement, lr) {
|
|
8389
8389
|
static tagName = "media-menu-items";
|
|
8390
8390
|
}
|
|
8391
|
-
class ho extends v(HTMLElement,
|
|
8391
|
+
class ho extends v(HTMLElement, vi) {
|
|
8392
8392
|
static tagName = "media-speed-radio-group";
|
|
8393
8393
|
onConnect() {
|
|
8394
|
-
|
|
8394
|
+
Ft(this);
|
|
8395
8395
|
}
|
|
8396
8396
|
}
|
|
8397
|
-
class lo extends v(HTMLElement,
|
|
8397
|
+
class lo extends v(HTMLElement, $i) {
|
|
8398
8398
|
static tagName = "media-quality-radio-group";
|
|
8399
8399
|
onConnect() {
|
|
8400
|
-
|
|
8400
|
+
Ft(this, (t, e) => {
|
|
8401
8401
|
const s = e.bitrate, i = t.querySelector('[data-part="bitrate"]');
|
|
8402
8402
|
s && i && l(() => {
|
|
8403
8403
|
i.textContent = s() || "";
|
|
@@ -8405,15 +8405,15 @@ class lo extends v(HTMLElement, gi) {
|
|
|
8405
8405
|
});
|
|
8406
8406
|
}
|
|
8407
8407
|
}
|
|
8408
|
-
class co extends v(HTMLElement,
|
|
8408
|
+
class co extends v(HTMLElement, gi) {
|
|
8409
8409
|
static tagName = "media-radio";
|
|
8410
8410
|
}
|
|
8411
|
-
class uo extends
|
|
8411
|
+
class uo extends Li {
|
|
8412
8412
|
static tagName = "media-slider-thumbnail";
|
|
8413
8413
|
#t;
|
|
8414
8414
|
#e;
|
|
8415
8415
|
onSetup() {
|
|
8416
|
-
super.onSetup(), this.#t = $(), this.#e =
|
|
8416
|
+
super.onSetup(), this.#t = $(), this.#e = Nt(re.state);
|
|
8417
8417
|
}
|
|
8418
8418
|
onConnect() {
|
|
8419
8419
|
super.onConnect(), l(this.#s.bind(this));
|
|
@@ -8423,7 +8423,7 @@ class uo extends xi {
|
|
|
8423
8423
|
this.time = e() + this.#e.pointerRate() * t();
|
|
8424
8424
|
}
|
|
8425
8425
|
}
|
|
8426
|
-
class po extends v(HTMLElement,
|
|
8426
|
+
class po extends v(HTMLElement, mi) {
|
|
8427
8427
|
static tagName = "media-slider-value";
|
|
8428
8428
|
static attrs = {
|
|
8429
8429
|
padMinutes: {
|
|
@@ -8436,7 +8436,7 @@ class po extends v(HTMLElement, di) {
|
|
|
8436
8436
|
});
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
8439
|
-
class mo extends v(HTMLElement,
|
|
8439
|
+
class mo extends v(HTMLElement, fi) {
|
|
8440
8440
|
static tagName = "media-time-slider";
|
|
8441
8441
|
}
|
|
8442
8442
|
class fo extends v(HTMLElement, jn) {
|
|
@@ -8445,7 +8445,7 @@ class fo extends v(HTMLElement, jn) {
|
|
|
8445
8445
|
class go extends v(HTMLElement, Xn) {
|
|
8446
8446
|
static tagName = "media-volume-slider";
|
|
8447
8447
|
}
|
|
8448
|
-
class yo extends v(HTMLElement,
|
|
8448
|
+
class yo extends v(HTMLElement, pt) {
|
|
8449
8449
|
static tagName = "media-captions";
|
|
8450
8450
|
}
|
|
8451
8451
|
class bo extends v(HTMLElement, Ar) {
|
|
@@ -8504,7 +8504,7 @@ class Co extends b {
|
|
|
8504
8504
|
fillPercent: 50
|
|
8505
8505
|
};
|
|
8506
8506
|
onConnect(t) {
|
|
8507
|
-
|
|
8507
|
+
ct(() => {
|
|
8508
8508
|
if (!this.connectScope) return;
|
|
8509
8509
|
const e = t.querySelector("svg"), s = e.firstElementChild, i = s.nextElementSibling;
|
|
8510
8510
|
l(this.#t.bind(this, e, s, i));
|
|
@@ -8550,17 +8550,17 @@ class Ao extends v(HTMLElement, Eo) {
|
|
|
8550
8550
|
}
|
|
8551
8551
|
#e() {
|
|
8552
8552
|
const t = this.firstElementChild, e = t?.localName === "template", s = this.$props.when();
|
|
8553
|
-
if (!(la(s) ? s :
|
|
8554
|
-
e ? (this.textContent = "", this.appendChild(t)) :
|
|
8553
|
+
if (!(la(s) ? s : at(() => s(this.#t.player.state))())) {
|
|
8554
|
+
e ? (this.textContent = "", this.appendChild(t)) : xt(t) && (t.style.display = "none");
|
|
8555
8555
|
return;
|
|
8556
8556
|
}
|
|
8557
|
-
e ? this.append(t.content.cloneNode(!0)) :
|
|
8557
|
+
e ? this.append(t.content.cloneNode(!0)) : xt(t) && (t.style.display = "");
|
|
8558
8558
|
}
|
|
8559
8559
|
}
|
|
8560
8560
|
class Mo extends v(HTMLElement, wr) {
|
|
8561
8561
|
static tagName = "media-google-cast-button";
|
|
8562
8562
|
}
|
|
8563
|
-
class Lo extends v(HTMLElement,
|
|
8563
|
+
class Lo extends v(HTMLElement, wi) {
|
|
8564
8564
|
static tagName = "media-toggle-button";
|
|
8565
8565
|
}
|
|
8566
8566
|
class qo extends v(HTMLElement, yr) {
|
|
@@ -8585,10 +8585,10 @@ class Vo extends v(HTMLElement, hr) {
|
|
|
8585
8585
|
}
|
|
8586
8586
|
};
|
|
8587
8587
|
}
|
|
8588
|
-
class Do extends v(HTMLElement,
|
|
8588
|
+
class Do extends v(HTMLElement, xe) {
|
|
8589
8589
|
static tagName = "media-chapters-radio-group";
|
|
8590
8590
|
onConnect() {
|
|
8591
|
-
|
|
8591
|
+
Ft(this, (t, e) => {
|
|
8592
8592
|
const { cue: s, startTime: i, duration: n } = e, r = t.querySelector(".vds-thumbnail,media-thumbnail"), o = t.querySelector('[data-part="start-time"]'), h = t.querySelector('[data-part="duration"]');
|
|
8593
8593
|
o && (o.textContent = i), h && (h.textContent = n), r && (r.setAttribute("time", s.startTime + ""), l(() => {
|
|
8594
8594
|
const d = this.$props.thumbnails();
|
|
@@ -8597,22 +8597,22 @@ class Do extends v(HTMLElement, Se) {
|
|
|
8597
8597
|
});
|
|
8598
8598
|
}
|
|
8599
8599
|
}
|
|
8600
|
-
class Ro extends v(HTMLElement,
|
|
8600
|
+
class Ro extends v(HTMLElement, Ci) {
|
|
8601
8601
|
static tagName = "media-audio-gain-radio-group";
|
|
8602
8602
|
onConnect() {
|
|
8603
|
-
|
|
8603
|
+
Ft(this);
|
|
8604
8604
|
}
|
|
8605
8605
|
}
|
|
8606
|
-
class Oo extends v(HTMLElement,
|
|
8606
|
+
class Oo extends v(HTMLElement, Si) {
|
|
8607
8607
|
static tagName = "media-radio-group";
|
|
8608
8608
|
}
|
|
8609
|
-
class No extends v(HTMLElement,
|
|
8609
|
+
class No extends v(HTMLElement, re) {
|
|
8610
8610
|
static tagName = "media-slider";
|
|
8611
8611
|
}
|
|
8612
|
-
const Ho = /* @__PURE__ */
|
|
8612
|
+
const Ho = /* @__PURE__ */ Zs(
|
|
8613
8613
|
'<video muted playsinline preload="none" style="max-width: unset;"></video>'
|
|
8614
8614
|
);
|
|
8615
|
-
class Fo extends v(HTMLElement,
|
|
8615
|
+
class Fo extends v(HTMLElement, Ti) {
|
|
8616
8616
|
static tagName = "media-slider-video";
|
|
8617
8617
|
#t;
|
|
8618
8618
|
#e = this.#s();
|
|
@@ -8626,7 +8626,7 @@ class Fo extends v(HTMLElement, bi) {
|
|
|
8626
8626
|
});
|
|
8627
8627
|
}
|
|
8628
8628
|
#s() {
|
|
8629
|
-
return
|
|
8629
|
+
return ti(Ho);
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
8632
|
class Bo extends v(HTMLElement, kr) {
|
|
@@ -8638,11 +8638,11 @@ class Go extends v(HTMLElement, Sr) {
|
|
|
8638
8638
|
class Uo extends v(HTMLElement, Pr) {
|
|
8639
8639
|
static tagName = "media-quality-slider";
|
|
8640
8640
|
}
|
|
8641
|
-
class Ko extends v(HTMLElement,
|
|
8641
|
+
class Ko extends v(HTMLElement, ki) {
|
|
8642
8642
|
static tagName = "media-slider-chapters";
|
|
8643
8643
|
#t = null;
|
|
8644
8644
|
onConnect() {
|
|
8645
|
-
|
|
8645
|
+
ct(() => {
|
|
8646
8646
|
if (!this.connectScope) return;
|
|
8647
8647
|
const t = this.querySelector("template");
|
|
8648
8648
|
t && (this.#t = t, l(this.#e.bind(this)));
|
|
@@ -8650,7 +8650,7 @@ class Ko extends v(HTMLElement, vi) {
|
|
|
8650
8650
|
}
|
|
8651
8651
|
#e() {
|
|
8652
8652
|
if (!this.#t) return;
|
|
8653
|
-
const t =
|
|
8653
|
+
const t = Je(this.#t, this.cues.length || 1);
|
|
8654
8654
|
this.setRefs(t);
|
|
8655
8655
|
}
|
|
8656
8656
|
}
|
|
@@ -8660,14 +8660,14 @@ class zo extends v(HTMLElement, Qo) {
|
|
|
8660
8660
|
static tagName = "media-slider-steps";
|
|
8661
8661
|
#t = null;
|
|
8662
8662
|
onConnect(t) {
|
|
8663
|
-
|
|
8663
|
+
ct(() => {
|
|
8664
8664
|
this.connectScope && (this.#t = t.querySelector("template"), this.#t && l(this.#e.bind(this)));
|
|
8665
8665
|
});
|
|
8666
8666
|
}
|
|
8667
8667
|
#e() {
|
|
8668
8668
|
if (!this.#t) return;
|
|
8669
|
-
const { min: t, max: e, step: s } =
|
|
8670
|
-
|
|
8669
|
+
const { min: t, max: e, step: s } = Nt(Lt), i = (e() - t()) / s();
|
|
8670
|
+
Je(this.#t, Math.floor(i) + 1);
|
|
8671
8671
|
}
|
|
8672
8672
|
}
|
|
8673
8673
|
class Wo extends v(HTMLElement, Lr) {
|
|
@@ -8732,47 +8732,47 @@ y(Do);
|
|
|
8732
8732
|
y(Oo);
|
|
8733
8733
|
y(co);
|
|
8734
8734
|
y(bo);
|
|
8735
|
-
y(
|
|
8735
|
+
y(Li);
|
|
8736
8736
|
y(yo);
|
|
8737
8737
|
y(Xr);
|
|
8738
8738
|
y(zr);
|
|
8739
8739
|
y(ko);
|
|
8740
8740
|
y(Po);
|
|
8741
8741
|
y(xo);
|
|
8742
|
-
const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */
|
|
8742
|
+
const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ ut({
|
|
8743
8743
|
__name: "controls-group",
|
|
8744
8744
|
setup(a) {
|
|
8745
|
-
const { size: t } =
|
|
8746
|
-
return (e, s) => (U(),
|
|
8747
|
-
class:
|
|
8745
|
+
const { size: t } = se("size");
|
|
8746
|
+
return (e, s) => (U(), yt("media-controls-group", {
|
|
8747
|
+
class: ie(["controls-group", `controls-group--${et(t)}`])
|
|
8748
8748
|
}, [
|
|
8749
|
-
|
|
8750
|
-
|
|
8749
|
+
ht("div", jo, [
|
|
8750
|
+
ft(e.$slots, "default", {}, void 0, !0)
|
|
8751
8751
|
])
|
|
8752
8752
|
], 2));
|
|
8753
8753
|
}
|
|
8754
|
-
}), Xo = /* @__PURE__ */
|
|
8754
|
+
}), Xo = /* @__PURE__ */ $t(Yo, [["__scopeId", "data-v-435a35bc"]]), Jo = /* @__PURE__ */ ut({
|
|
8755
8755
|
__name: "fullscreen-button",
|
|
8756
8756
|
emits: ["toggle"],
|
|
8757
8757
|
setup(a, { emit: t }) {
|
|
8758
|
-
const { fullscreen: e } =
|
|
8759
|
-
return (i, n) => (U(),
|
|
8760
|
-
class:
|
|
8761
|
-
onClick: n[0] || (n[0] = (r) => s("toggle", !
|
|
8758
|
+
const { fullscreen: e } = se("size"), s = t;
|
|
8759
|
+
return (i, n) => (U(), yt("div", {
|
|
8760
|
+
class: ie(["fullscreen-button", { "fullscreen-button--active": et(e) }]),
|
|
8761
|
+
onClick: n[0] || (n[0] = (r) => s("toggle", !et(e)))
|
|
8762
8762
|
}, [
|
|
8763
|
-
W(
|
|
8763
|
+
W(be, {
|
|
8764
8764
|
icon: "player-enter-fullscreen",
|
|
8765
8765
|
color: "on-dark",
|
|
8766
8766
|
class: "fullscreen-button__enter"
|
|
8767
8767
|
}),
|
|
8768
|
-
W(
|
|
8768
|
+
W(be, {
|
|
8769
8769
|
icon: "player-exit-fullscreen",
|
|
8770
8770
|
color: "on-dark",
|
|
8771
8771
|
class: "fullscreen-button__exit"
|
|
8772
8772
|
})
|
|
8773
8773
|
], 2));
|
|
8774
8774
|
}
|
|
8775
|
-
}), Zo = /* @__PURE__ */
|
|
8775
|
+
}), Zo = /* @__PURE__ */ $t(Jo, [["__scopeId", "data-v-3d52fe3e"]]), th = /* @__PURE__ */ ut({
|
|
8776
8776
|
__name: "toggle-button",
|
|
8777
8777
|
props: {
|
|
8778
8778
|
icon: {},
|
|
@@ -8784,18 +8784,18 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8784
8784
|
const e = a, s = t, i = () => {
|
|
8785
8785
|
e.disabled || s("toggle");
|
|
8786
8786
|
};
|
|
8787
|
-
return (n, r) => (U(),
|
|
8787
|
+
return (n, r) => (U(), yt("div", {
|
|
8788
8788
|
class: "toggle-button",
|
|
8789
8789
|
onClick: i
|
|
8790
8790
|
}, [
|
|
8791
|
-
W(
|
|
8791
|
+
W(be, {
|
|
8792
8792
|
icon: e.icon,
|
|
8793
8793
|
color: e.color,
|
|
8794
8794
|
disabled: e.disabled
|
|
8795
8795
|
}, null, 8, ["icon", "color", "disabled"])
|
|
8796
8796
|
]));
|
|
8797
8797
|
}
|
|
8798
|
-
}), eh = { class: "video-display-panel__head" }, sh = ["title"], ih = { class: "video-display-panel__controls" }, ah = /* @__PURE__ */
|
|
8798
|
+
}), eh = { class: "video-display-panel__head" }, sh = ["title"], ih = { class: "video-display-panel__controls" }, ah = /* @__PURE__ */ ut({
|
|
8799
8799
|
__name: "video-display-panel",
|
|
8800
8800
|
props: {
|
|
8801
8801
|
title: {},
|
|
@@ -8805,7 +8805,7 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8805
8805
|
},
|
|
8806
8806
|
emits: ["close"],
|
|
8807
8807
|
setup(a, { emit: t }) {
|
|
8808
|
-
const { size: e, fullscreen: s, changeSize: i, enterFullscreen: n } =
|
|
8808
|
+
const { size: e, fullscreen: s, changeSize: i, enterFullscreen: n } = se("size"), r = Hs(
|
|
8809
8809
|
() => e.value === Q.SM ? "expand" : "collapse"
|
|
8810
8810
|
), o = a, h = t, d = (g) => {
|
|
8811
8811
|
g ? e.value !== Q.LG && (s.value = !0, i(Q.LG), n()) : e.value === Q.LG && (u(), s.value = !1, i(Q.SM));
|
|
@@ -8822,41 +8822,41 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8822
8822
|
}), Vi(() => {
|
|
8823
8823
|
document.removeEventListener("keyup", m);
|
|
8824
8824
|
});
|
|
8825
|
-
}), (g, C) => (U(),
|
|
8826
|
-
class:
|
|
8825
|
+
}), (g, C) => (U(), yt("media-controls-group", {
|
|
8826
|
+
class: ie([`video-display-panel--${et(e)}`, "video-display-panel controls-group"])
|
|
8827
8827
|
}, [
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
o.username ? (U(),
|
|
8828
|
+
ht("div", eh, [
|
|
8829
|
+
ft(g.$slots, "avatar", {}, () => [
|
|
8830
|
+
o.username ? (U(), zt(ga, {
|
|
8831
8831
|
key: 0,
|
|
8832
8832
|
username: o.username,
|
|
8833
8833
|
size: "sm",
|
|
8834
8834
|
class: "video-display-panel__avatar"
|
|
8835
|
-
}, null, 8, ["username"])) :
|
|
8835
|
+
}, null, 8, ["username"])) : Wt("", !0)
|
|
8836
8836
|
], !0),
|
|
8837
|
-
|
|
8837
|
+
ht("span", {
|
|
8838
8838
|
class: "video-display-panel__title typo-body-2-bold",
|
|
8839
8839
|
title: o.title || o.username
|
|
8840
8840
|
}, Di(o.title || o.username), 9, sh)
|
|
8841
8841
|
]),
|
|
8842
|
-
|
|
8842
|
+
ht("div", ih, [
|
|
8843
8843
|
W(Zo, { onToggle: d }),
|
|
8844
|
-
o.hideExpand ?
|
|
8844
|
+
o.hideExpand ? Wt("", !0) : (U(), zt(th, {
|
|
8845
8845
|
key: 0,
|
|
8846
8846
|
icon: r.value,
|
|
8847
8847
|
color: "on-dark",
|
|
8848
8848
|
onToggle: c
|
|
8849
8849
|
}, null, 8, ["icon"])),
|
|
8850
|
-
o.closable ? (U(),
|
|
8850
|
+
o.closable ? (U(), zt(be, {
|
|
8851
8851
|
key: 1,
|
|
8852
8852
|
icon: "close",
|
|
8853
8853
|
color: "on-dark",
|
|
8854
|
-
onClick: C[0] || (C[0] = (
|
|
8855
|
-
})) :
|
|
8854
|
+
onClick: C[0] || (C[0] = (_) => h("close"))
|
|
8855
|
+
})) : Wt("", !0)
|
|
8856
8856
|
])
|
|
8857
8857
|
], 2));
|
|
8858
8858
|
}
|
|
8859
|
-
}), nh = /* @__PURE__ */
|
|
8859
|
+
}), nh = /* @__PURE__ */ $t(ah, [["__scopeId", "data-v-b860ca5f"]]), rh = { class: "video-display-panel-wrapper" }, oh = { class: "video-layout-content" }, hh = { class: "video-layout-controls" }, lh = /* @__PURE__ */ ut({
|
|
8860
8860
|
__name: "video-layout",
|
|
8861
8861
|
props: {
|
|
8862
8862
|
title: {},
|
|
@@ -8869,49 +8869,49 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8869
8869
|
},
|
|
8870
8870
|
emits: ["close-player", "close-session", "make-screenshot", "toggle-record"],
|
|
8871
8871
|
setup(a, { emit: t }) {
|
|
8872
|
-
const { size: e } =
|
|
8873
|
-
return (n, r) => (U(),
|
|
8874
|
-
class:
|
|
8872
|
+
const { size: e } = se("size"), s = a, i = t;
|
|
8873
|
+
return (n, r) => (U(), yt("media-controls", {
|
|
8874
|
+
class: ie(["video-layout controls", `video-layout--${et(e)}`])
|
|
8875
8875
|
}, [
|
|
8876
|
-
|
|
8877
|
-
s.hideVideoDisplayPanel ?
|
|
8876
|
+
ht("div", rh, [
|
|
8877
|
+
s.hideVideoDisplayPanel ? Wt("", !0) : (U(), zt(nh, {
|
|
8878
8878
|
key: 0,
|
|
8879
8879
|
title: s.title,
|
|
8880
8880
|
username: s.username,
|
|
8881
8881
|
closable: s.closable,
|
|
8882
8882
|
"hide-expand": s.hideExpand,
|
|
8883
8883
|
onClose: r[0] || (r[0] = (o) => i("close-player"))
|
|
8884
|
-
},
|
|
8884
|
+
}, Fs({ _: 2 }, [
|
|
8885
8885
|
n.$slots.avatar ? {
|
|
8886
8886
|
name: "avatar",
|
|
8887
|
-
fn:
|
|
8888
|
-
|
|
8887
|
+
fn: jt(() => [
|
|
8888
|
+
ft(n.$slots, "avatar", {}, void 0, !0)
|
|
8889
8889
|
]),
|
|
8890
8890
|
key: "0"
|
|
8891
8891
|
} : void 0
|
|
8892
8892
|
]), 1032, ["title", "username", "closable", "hide-expand"]))
|
|
8893
8893
|
]),
|
|
8894
|
-
|
|
8895
|
-
|
|
8894
|
+
ht("media-controls-group", oh, [
|
|
8895
|
+
ft(n.$slots, "content", {}, void 0, !0)
|
|
8896
8896
|
]),
|
|
8897
|
-
|
|
8898
|
-
s.hideControlsPanel ?
|
|
8899
|
-
W(
|
|
8897
|
+
ht("div", hh, [
|
|
8898
|
+
s.hideControlsPanel ? Wt("", !0) : ft(n.$slots, "controls-panel", { key: 0 }, () => [
|
|
8899
|
+
W(et(bh), {
|
|
8900
8900
|
"countdown-time-mode": s.countdownTimeMode
|
|
8901
8901
|
}, null, 8, ["countdown-time-mode"])
|
|
8902
8902
|
], !0)
|
|
8903
8903
|
])
|
|
8904
8904
|
], 2));
|
|
8905
8905
|
}
|
|
8906
|
-
}), dh = /* @__PURE__ */
|
|
8906
|
+
}), dh = /* @__PURE__ */ $t(lh, [["__scopeId", "data-v-e3192d93"]]), ch = { class: "play-button" }, uh = /* @__PURE__ */ ut({
|
|
8907
8907
|
__name: "play-button",
|
|
8908
8908
|
setup(a) {
|
|
8909
|
-
const { size: t } =
|
|
8909
|
+
const { size: t } = se("size");
|
|
8910
8910
|
return (e, s) => {
|
|
8911
8911
|
const i = Ri("wt-button");
|
|
8912
|
-
return U(),
|
|
8912
|
+
return U(), yt("media-play-button", ch, [
|
|
8913
8913
|
W(i, {
|
|
8914
|
-
size:
|
|
8914
|
+
size: et(t),
|
|
8915
8915
|
variant: "outlined",
|
|
8916
8916
|
color: "secondary",
|
|
8917
8917
|
icon: "play",
|
|
@@ -8921,7 +8921,7 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8921
8921
|
class: "play-button__play-icon"
|
|
8922
8922
|
}, null, 8, ["size"]),
|
|
8923
8923
|
W(i, {
|
|
8924
|
-
size:
|
|
8924
|
+
size: et(t),
|
|
8925
8925
|
variant: "outlined",
|
|
8926
8926
|
color: "secondary",
|
|
8927
8927
|
icon: "pause",
|
|
@@ -8933,22 +8933,22 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8933
8933
|
]);
|
|
8934
8934
|
};
|
|
8935
8935
|
}
|
|
8936
|
-
}), ph = /* @__PURE__ */
|
|
8936
|
+
}), ph = /* @__PURE__ */ $t(uh, [["__scopeId", "data-v-b5fb70ec"]]), mh = { class: "time-slider media-slider" }, fh = /* @__PURE__ */ ut({
|
|
8937
8937
|
__name: "time-slider",
|
|
8938
8938
|
setup(a) {
|
|
8939
|
-
return (t, e) => (U(),
|
|
8939
|
+
return (t, e) => (U(), yt("media-time-slider", mh, [
|
|
8940
8940
|
W(ya, { class: "time-slider__slider" })
|
|
8941
8941
|
]));
|
|
8942
8942
|
}
|
|
8943
|
-
}), gh = /* @__PURE__ */
|
|
8943
|
+
}), gh = /* @__PURE__ */ $t(fh, [["__scopeId", "data-v-fbc2d9f8"]]), yh = /* @__PURE__ */ ut({
|
|
8944
8944
|
__name: "playback-controls-panel",
|
|
8945
8945
|
props: {
|
|
8946
8946
|
countdownTimeMode: { type: Boolean, default: !1 }
|
|
8947
8947
|
},
|
|
8948
8948
|
setup(a) {
|
|
8949
8949
|
const t = a;
|
|
8950
|
-
return (e, s) => (U(),
|
|
8951
|
-
default:
|
|
8950
|
+
return (e, s) => (U(), zt(et(Xo), { class: "playback-control-panel" }, {
|
|
8951
|
+
default: jt(() => [
|
|
8952
8952
|
W(ph),
|
|
8953
8953
|
W(gh),
|
|
8954
8954
|
W(da, {
|
|
@@ -8958,7 +8958,7 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8958
8958
|
_: 1
|
|
8959
8959
|
}));
|
|
8960
8960
|
}
|
|
8961
|
-
}), bh = /* @__PURE__ */
|
|
8961
|
+
}), bh = /* @__PURE__ */ $t(yh, [["__scopeId", "data-v-9d70f28d"]]), vh = ["autoplay", "muted", "src"], $h = /* @__PURE__ */ ut({
|
|
8962
8962
|
__name: "wt-vidstack-player",
|
|
8963
8963
|
props: {
|
|
8964
8964
|
src: {},
|
|
@@ -8981,72 +8981,90 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
8981
8981
|
mirrorVideo: { type: Boolean }
|
|
8982
8982
|
},
|
|
8983
8983
|
emits: ["close", "change-size"],
|
|
8984
|
-
setup(a, {
|
|
8985
|
-
const
|
|
8984
|
+
setup(a, { expose: t, emit: e }) {
|
|
8985
|
+
const s = a, i = e, n = Oi("root");
|
|
8986
|
+
t({
|
|
8987
|
+
rootEl: n
|
|
8988
|
+
});
|
|
8989
|
+
const r = gs(s.size || Q.SM), o = gs(!1);
|
|
8986
8990
|
Ni("size", {
|
|
8987
|
-
size:
|
|
8988
|
-
fullscreen:
|
|
8989
|
-
changeSize: (
|
|
8990
|
-
|
|
8991
|
+
size: r,
|
|
8992
|
+
fullscreen: o,
|
|
8993
|
+
changeSize: (V) => {
|
|
8994
|
+
r.value = V, i("change-size", V);
|
|
8991
8995
|
},
|
|
8992
8996
|
enterFullscreen: () => {
|
|
8993
|
-
|
|
8997
|
+
n.value?.requestFullscreen();
|
|
8994
8998
|
}
|
|
8995
8999
|
});
|
|
8996
|
-
const { src:
|
|
8997
|
-
src:
|
|
8998
|
-
type:
|
|
8999
|
-
stream:
|
|
9000
|
-
}),
|
|
9001
|
-
`wt-vidstack-player--${
|
|
9002
|
-
`wt-vidstack-player-video-object-fit--${
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
]),
|
|
9009
|
-
|
|
9000
|
+
const { src: c, mime: u, stream: m } = Hi(s), { normalizedSrcObject: g } = ca({
|
|
9001
|
+
src: c,
|
|
9002
|
+
type: u,
|
|
9003
|
+
stream: m
|
|
9004
|
+
}), C = Hs(() => [
|
|
9005
|
+
`wt-vidstack-player--${r.value}`,
|
|
9006
|
+
`wt-vidstack-player-video-object-fit--${s.videoObjectFit}`,
|
|
9007
|
+
s.mirrorVideo && "wt-vidstack-player--mirror-video",
|
|
9008
|
+
o.value && "wt-vidstack-player--fullscreen",
|
|
9009
|
+
s.stretch && "wt-vidstack-player--stretch",
|
|
9010
|
+
s.static && "wt-vidstack-player--static",
|
|
9011
|
+
s.hideBackground && "wt-vidstack-player--hide-background"
|
|
9012
|
+
]), _ = (V) => {
|
|
9013
|
+
if (V instanceof HTMLVideoElement) return V;
|
|
9014
|
+
const Z = V instanceof Element && V.shadowRoot ? Array.from(V.shadowRoot.children) : [], nt = Array.from(V.children ?? []);
|
|
9015
|
+
for (const Ae of [
|
|
9016
|
+
...Z,
|
|
9017
|
+
...nt
|
|
9018
|
+
]) {
|
|
9019
|
+
const le = _(Ae);
|
|
9020
|
+
if (le) return le;
|
|
9021
|
+
}
|
|
9022
|
+
return null;
|
|
9023
|
+
}, J = (V) => {
|
|
9024
|
+
if (!s.autoplay) return;
|
|
9025
|
+
const nt = (_(V.target) ?? V.target).play?.();
|
|
9026
|
+
nt && typeof nt.catch == "function" && nt.catch(() => {
|
|
9027
|
+
});
|
|
9010
9028
|
};
|
|
9011
|
-
return (
|
|
9029
|
+
return (V, Z) => (U(), yt("div", {
|
|
9012
9030
|
ref: "root",
|
|
9013
|
-
class:
|
|
9031
|
+
class: ie([C.value, "wt-vidstack-player"])
|
|
9014
9032
|
}, [
|
|
9015
|
-
|
|
9033
|
+
ht("media-player", {
|
|
9016
9034
|
ref: "player",
|
|
9017
|
-
autoplay:
|
|
9018
|
-
muted:
|
|
9019
|
-
src:
|
|
9035
|
+
autoplay: s.autoplay,
|
|
9036
|
+
muted: s.muted,
|
|
9037
|
+
src: et(g),
|
|
9020
9038
|
class: "wt-vidstack-player__player",
|
|
9021
9039
|
"cross-origin": "",
|
|
9022
9040
|
playsinline: "",
|
|
9023
|
-
onClose:
|
|
9024
|
-
onCanPlay:
|
|
9041
|
+
onClose: Z[1] || (Z[1] = (nt) => i("close")),
|
|
9042
|
+
onCanPlay: J
|
|
9025
9043
|
}, [
|
|
9026
|
-
|
|
9027
|
-
W(
|
|
9028
|
-
autoplay:
|
|
9029
|
-
closable:
|
|
9030
|
-
"hide-controls-panel":
|
|
9031
|
-
"hide-expand":
|
|
9032
|
-
"hide-video-display-panel":
|
|
9033
|
-
title:
|
|
9034
|
-
username:
|
|
9035
|
-
"countdown-time-mode":
|
|
9036
|
-
onClosePlayer:
|
|
9037
|
-
},
|
|
9038
|
-
"controls-panel":
|
|
9039
|
-
|
|
9044
|
+
Z[2] || (Z[2] = ht("media-provider", { class: "wt-vidstack-player__provider" }, null, -1)),
|
|
9045
|
+
W(et(dh), {
|
|
9046
|
+
autoplay: s.autoplay,
|
|
9047
|
+
closable: s.closable,
|
|
9048
|
+
"hide-controls-panel": s.hideControlsPanel,
|
|
9049
|
+
"hide-expand": s.hideExpand,
|
|
9050
|
+
"hide-video-display-panel": s.hideVideoDisplayPanel,
|
|
9051
|
+
title: s.title,
|
|
9052
|
+
username: s.username,
|
|
9053
|
+
"countdown-time-mode": s.countdownTimeMode,
|
|
9054
|
+
onClosePlayer: Z[0] || (Z[0] = (nt) => i("close"))
|
|
9055
|
+
}, Fs({
|
|
9056
|
+
"controls-panel": jt(() => [
|
|
9057
|
+
ft(V.$slots, "controls-panel", { size: r.value }, void 0, !0)
|
|
9040
9058
|
]),
|
|
9041
|
-
content:
|
|
9042
|
-
|
|
9059
|
+
content: jt(() => [
|
|
9060
|
+
ft(V.$slots, "content", { size: r.value }, void 0, !0)
|
|
9043
9061
|
]),
|
|
9044
9062
|
_: 2
|
|
9045
9063
|
}, [
|
|
9046
|
-
|
|
9064
|
+
V.$slots.avatar ? {
|
|
9047
9065
|
name: "avatar",
|
|
9048
|
-
fn:
|
|
9049
|
-
|
|
9066
|
+
fn: jt(() => [
|
|
9067
|
+
ft(V.$slots, "avatar", {}, void 0, !0)
|
|
9050
9068
|
]),
|
|
9051
9069
|
key: "0"
|
|
9052
9070
|
} : void 0
|
|
@@ -9054,22 +9072,22 @@ const jo = { class: "controls-group__actions" }, Yo = /* @__PURE__ */ lt({
|
|
|
9054
9072
|
], 40, vh)
|
|
9055
9073
|
], 2));
|
|
9056
9074
|
}
|
|
9057
|
-
}), wh = /* @__PURE__ */
|
|
9075
|
+
}), wh = /* @__PURE__ */ $t($h, [["__scopeId", "data-v-a876bf55"]]), qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9058
9076
|
__proto__: null,
|
|
9059
9077
|
default: wh
|
|
9060
9078
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9061
9079
|
export {
|
|
9062
9080
|
x as L,
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9081
|
+
tt as Q,
|
|
9082
|
+
ve as T,
|
|
9083
|
+
Zs as a,
|
|
9066
9084
|
k as b,
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9085
|
+
ti as c,
|
|
9086
|
+
Le as d,
|
|
9087
|
+
me as e,
|
|
9070
9088
|
Ch as f,
|
|
9071
9089
|
Qa as g,
|
|
9072
9090
|
xh as l,
|
|
9073
|
-
|
|
9091
|
+
ne as p,
|
|
9074
9092
|
qh as w
|
|
9075
9093
|
};
|