@webitel/ui-sdk 25.12.22 → 25.12.23
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/{install-BATb8us8.js → install-Dlm9F6VX.js} +32241 -31437
- package/dist/plyr-C2xH9S2_.js +4350 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1454 -1359
- package/dist/{vidstack-Bq6c3Bam-B5h_x9kk.js → vidstack-Bq6c3Bam-LBg_N7NA.js} +29 -29
- package/dist/{vidstack-D2pY00kU-BI2LQ2NB.js → vidstack-D2pY00kU-B54jdjLZ.js} +18 -18
- package/dist/{vidstack-DDXt6fpN-KOmbhUFP.js → vidstack-DDXt6fpN-0R_qWhr7.js} +3 -3
- package/dist/{vidstack-D_-9AA6_-CKab151b.js → vidstack-D_-9AA6_-C20rEPA8.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-CD09gN1L.js → vidstack-DqAw8m9J-BVoQCcQn.js} +7 -7
- package/dist/{vidstack-audio-CP_4Jlp4.js → vidstack-audio-CVUfqXtN.js} +2 -2
- package/dist/{vidstack-dash-Bi85pjuL.js → vidstack-dash-DH1tKEgp.js} +3 -3
- package/dist/{vidstack-google-cast-D6oB7NQl.js → vidstack-google-cast-Chb7A1N-.js} +33 -33
- package/dist/{vidstack-hls-Cz-PODGP.js → vidstack-hls-isJ6fzIa.js} +3 -3
- package/dist/{vidstack-video-CUY9WLHu.js → vidstack-video-Oj0vav_S.js} +12 -12
- package/dist/{vidstack-vimeo-DHTBZNH2.js → vidstack-vimeo-t7YlxjO1.js} +18 -18
- package/dist/{vidstack-youtube-MY6oQlln.js → vidstack-youtube-Dx4AYrj5.js} +22 -22
- package/package.json +4 -4
- package/src/install.ts +1 -1
- package/types/api/clients/media/media.d.ts +3 -3
- package/types/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue.d.ts +2 -14
- package/types/components/on-demand/wt-selection-popup/wt-selection-popup.vue.d.ts +1 -0
- package/types/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue.d.ts +2 -55
- package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +2 -0
- package/types/components/wt-badge/wt-badge.vue.d.ts +1 -1
- package/types/components/wt-button/wt-button.vue.d.ts +2 -48
- package/types/components/wt-checkbox/wt-checkbox.vue.d.ts +2 -27
- package/types/components/wt-chip/wt-chip.vue.d.ts +2 -7
- package/types/components/wt-confirm-dialog/wt-confirm-dialog.vue.d.ts +1 -0
- package/types/components/wt-context-menu/wt-context-menu.vue.d.ts +1 -0
- package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +4 -4
- package/types/components/wt-dual-panel/wt-dual-panel.vue.d.ts +3 -0
- package/types/components/wt-empty/wt-empty.vue.d.ts +7 -0
- package/types/components/wt-expansion-panel/wt-expansion-panel.vue.d.ts +2 -0
- package/types/components/wt-image/wt-image.vue.d.ts +2 -17
- package/types/components/wt-input/wt-input.vue.d.ts +4 -52
- package/types/components/wt-label/wt-label.vue.d.ts +2 -4
- package/types/components/wt-page-header/wt-page-header.vue.d.ts +3 -0
- package/types/components/wt-pagination/wt-pagination.vue.d.ts +1 -1
- package/types/components/wt-popover/wt-popover.vue.d.ts +2 -32
- package/types/components/wt-radio/wt-radio.vue.d.ts +2 -22
- package/types/components/wt-search-bar/wt-search-bar.vue.d.ts +2 -97
- package/types/components/wt-select/wt-select.vue.d.ts +4 -1
- package/types/components/wt-slider/wt-slider.vue.d.ts +1 -1
- package/types/components/wt-stepper/wt-stepper.vue.d.ts +1 -0
- package/types/components/wt-switcher/wt-switcher.vue.d.ts +2 -20
- package/types/components/wt-table/wt-table.vue.d.ts +2 -88
- package/types/components/wt-tags-input/wt-tags-input.vue.d.ts +4 -1
- package/types/components/wt-textarea/wt-textarea.vue.d.ts +4 -48
- package/types/components/wt-tooltip/wt-tooltip.vue.d.ts +1 -0
- package/types/components/wt-tree-table/wt-tree-table.vue.d.ts +2 -34
- package/types/components/wt-tree-table-row/wt-tree-table-row.vue.d.ts +2 -30
- package/types/install.d.ts +1 -1
- package/types/modules/Userinfo/api/userinfo.d.ts +1 -1
- package/types/modules/Userinfo/v2/api/UserinfoAPI.d.ts +1 -1
- package/dist/plyr.min-BRLz1cd6.js +0 -2260
|
@@ -5,30 +5,30 @@ var ot = (n) => {
|
|
|
5
5
|
var Xt = (n, t, s) => t in n ? Qt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
|
|
6
6
|
var M = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
|
|
7
7
|
var i = (n, t, s) => (X(n, t, "read from private field"), s ? s.call(n) : t.get(n)), d = (n, t, s) => t.has(n) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), c = (n, t, s, r) => (X(n, t, "write to private field"), r ? r.call(n, s) : t.set(n, s), s), a = (n, t, s) => (X(n, t, "access private method"), s);
|
|
8
|
-
import {
|
|
9
|
-
import { R as ri } from "./vidstack-DqAw8m9J-
|
|
10
|
-
let q = null,
|
|
8
|
+
import { z as Yt, y as ut, A as j, B as Zt, b as ti, E as nt, e as lt, C as _, F as ii, G as ei, d as si, H as ai, l as rt, J as dt, D as ni, L as Y, K as Z } from "./install-Dlm9F6VX.js";
|
|
9
|
+
import { R as ri } from "./vidstack-DqAw8m9J-BVoQCcQn.js";
|
|
10
|
+
let q = null, K = [], z = [];
|
|
11
11
|
function ht() {
|
|
12
12
|
return q ?? (q = new AudioContext());
|
|
13
13
|
}
|
|
14
14
|
function hi() {
|
|
15
15
|
const n = ht(), t = n.createGain();
|
|
16
|
-
return t.connect(n.destination),
|
|
16
|
+
return t.connect(n.destination), K.push(t), t;
|
|
17
17
|
}
|
|
18
18
|
function oi(n, t) {
|
|
19
19
|
const s = ht(), r = s.createMediaElementSource(n);
|
|
20
|
-
return t && r.connect(t),
|
|
20
|
+
return t && r.connect(t), z.push(r), r;
|
|
21
21
|
}
|
|
22
22
|
function di(n) {
|
|
23
|
-
const t =
|
|
24
|
-
t !== -1 && (
|
|
23
|
+
const t = K.indexOf(n);
|
|
24
|
+
t !== -1 && (K.splice(t, 1), n.disconnect(), ft());
|
|
25
25
|
}
|
|
26
26
|
function ci(n) {
|
|
27
|
-
const t =
|
|
28
|
-
t !== -1 && (
|
|
27
|
+
const t = z.indexOf(n);
|
|
28
|
+
t !== -1 && (z.splice(t, 1), n.disconnect(), ft());
|
|
29
29
|
}
|
|
30
30
|
function ft() {
|
|
31
|
-
q &&
|
|
31
|
+
q && K.length === 0 && z.length === 0 && q.close().then(() => {
|
|
32
32
|
q = null;
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -84,16 +84,16 @@ R = new WeakMap(), E = new WeakMap(), m = new WeakMap(), p = new WeakMap(), P =
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
const li = ["focus", "blur", "visibilitychange", "pageshow", "pagehide"];
|
|
87
|
-
var k, A, D,
|
|
87
|
+
var k, A, D, J, pt;
|
|
88
88
|
class fi {
|
|
89
89
|
constructor() {
|
|
90
|
-
d(this,
|
|
90
|
+
d(this, J);
|
|
91
91
|
d(this, k, Z(ct()));
|
|
92
92
|
d(this, A, Z(document.visibilityState));
|
|
93
93
|
d(this, D);
|
|
94
94
|
}
|
|
95
95
|
connect() {
|
|
96
|
-
const t = new nt(window), s = a(this,
|
|
96
|
+
const t = new nt(window), s = a(this, J, pt).bind(this);
|
|
97
97
|
for (const r of li)
|
|
98
98
|
t.add(r, s);
|
|
99
99
|
_ && t.add("beforeunload", (r) => {
|
|
@@ -130,21 +130,21 @@ class fi {
|
|
|
130
130
|
return i(this, A).call(this);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
k = new WeakMap(), A = new WeakMap(), D = new WeakMap(),
|
|
133
|
+
k = new WeakMap(), A = new WeakMap(), D = new WeakMap(), J = new WeakSet(), pt = function(t) {
|
|
134
134
|
_ && window.clearTimeout(i(this, D)), (t.type !== "blur" || i(this, k).call(this) === "active") && (i(this, k).set(ct(t)), i(this, A).set(document.visibilityState == "hidden" ? "hidden" : "visible"));
|
|
135
135
|
};
|
|
136
136
|
function ct(n) {
|
|
137
137
|
return (n == null ? void 0 : n.type) === "blur" || document.visibilityState === "hidden" ? "hidden" : document.hasFocus() ? "active" : "passive";
|
|
138
138
|
}
|
|
139
|
-
var O, h, b,
|
|
139
|
+
var O, h, b, L, x, S, H, G, e, o, yt, $, N, gt, bt, vt, Tt, Q, at, u, pi, T, kt, it, St, wt, Pt, W, Ct, Et, At, Lt, xt, Gt, $t, Nt, Mt, Rt, Dt, Ot, Ht, It, Ft, Ut, Vt, Bt;
|
|
140
140
|
class mi {
|
|
141
141
|
constructor(t, s) {
|
|
142
142
|
d(this, e);
|
|
143
143
|
d(this, O);
|
|
144
144
|
d(this, h);
|
|
145
145
|
d(this, b, !1);
|
|
146
|
-
d(this, x, !1);
|
|
147
146
|
d(this, L, !1);
|
|
147
|
+
d(this, x, !1);
|
|
148
148
|
d(this, S, new ri(a(this, e, gt).bind(this)));
|
|
149
149
|
d(this, H, new fi());
|
|
150
150
|
d(this, G);
|
|
@@ -160,20 +160,20 @@ class mi {
|
|
|
160
160
|
c(this, O, t), c(this, h, s), c(this, G, new nt(t.media)), a(this, e, bt).call(this), i(this, H).connect(), lt(a(this, e, Mt).bind(this)), ut(a(this, e, yt).bind(this));
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
O = new WeakMap(), h = new WeakMap(), b = new WeakMap(),
|
|
163
|
+
O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), L = new WeakMap(), x = new WeakMap(), S = new WeakMap(), H = new WeakMap(), G = new WeakMap(), e = new WeakSet(), o = function() {
|
|
164
164
|
return i(this, O).media;
|
|
165
165
|
}, yt = function() {
|
|
166
166
|
var t;
|
|
167
|
-
c(this,
|
|
167
|
+
c(this, L, !1), c(this, x, !1), i(this, S).stop(), i(this, G).abort(), (t = i(this, Q)) == null || t.clear();
|
|
168
168
|
}, $ = new WeakMap(), N = new WeakMap(), gt = function() {
|
|
169
169
|
const t = i(this, e, o).currentTime;
|
|
170
170
|
!(_ && t - i(this, N) < 0.35) && i(this, $) !== t && (a(this, e, T).call(this, t), c(this, $, t));
|
|
171
171
|
}, bt = function() {
|
|
172
172
|
a(this, e, u).call(this, "loadstart", a(this, e, kt)), a(this, e, u).call(this, "abort", a(this, e, it)), a(this, e, u).call(this, "emptied", a(this, e, St)), a(this, e, u).call(this, "error", a(this, e, Bt)), a(this, e, u).call(this, "volumechange", a(this, e, Ot));
|
|
173
173
|
}, vt = function() {
|
|
174
|
-
i(this,
|
|
174
|
+
i(this, L) || (a(this, e, u).call(this, "loadeddata", a(this, e, wt)), a(this, e, u).call(this, "loadedmetadata", a(this, e, Pt)), a(this, e, u).call(this, "canplay", a(this, e, At)), a(this, e, u).call(this, "canplaythrough", a(this, e, Lt)), a(this, e, u).call(this, "durationchange", a(this, e, Dt)), a(this, e, u).call(this, "play", a(this, e, Ct)), a(this, e, u).call(this, "progress", a(this, e, Ft)), a(this, e, u).call(this, "stalled", a(this, e, Gt)), a(this, e, u).call(this, "suspend", a(this, e, Ut)), a(this, e, u).call(this, "ratechange", a(this, e, Vt)), c(this, L, !0));
|
|
175
175
|
}, Tt = function() {
|
|
176
|
-
i(this,
|
|
176
|
+
i(this, x) || (a(this, e, u).call(this, "pause", a(this, e, Et)), a(this, e, u).call(this, "playing", a(this, e, xt)), a(this, e, u).call(this, "seeked", a(this, e, Ht)), a(this, e, u).call(this, "seeking", a(this, e, It)), a(this, e, u).call(this, "ended", a(this, e, Nt)), a(this, e, u).call(this, "waiting", a(this, e, $t)), c(this, x, !0));
|
|
177
177
|
}, Q = new WeakMap(), at = new WeakMap(), u = function(t, s) {
|
|
178
178
|
i(this, G).add(t, s.bind(this));
|
|
179
179
|
}, pi = function(t) {
|
|
@@ -207,9 +207,9 @@ O = new WeakMap(), h = new WeakMap(), b = new WeakMap(), x = new WeakMap(), L =
|
|
|
207
207
|
i(this, e, o).readyState === 1 && !i(this, b) || (c(this, b, !1), i(this, S).stop(), i(this, h).notify("pause", void 0, t));
|
|
208
208
|
}, At = function(t) {
|
|
209
209
|
i(this, h).delegate.ready(a(this, e, W).call(this), t);
|
|
210
|
-
}, xt = function(t) {
|
|
211
|
-
i(this, h).$state.started() || i(this, h).notify("can-play-through", a(this, e, W).call(this), t);
|
|
212
210
|
}, Lt = function(t) {
|
|
211
|
+
i(this, h).$state.started() || i(this, h).notify("can-play-through", a(this, e, W).call(this), t);
|
|
212
|
+
}, xt = function(t) {
|
|
213
213
|
i(this, e, o).paused || (c(this, b, !1), i(this, h).notify("playing", void 0, t), i(this, S).start());
|
|
214
214
|
}, Gt = function(t) {
|
|
215
215
|
i(this, h).notify("stalled", void 0, t), i(this, e, o).readyState < 3 && (c(this, b, !0), i(this, h).notify("waiting", void 0, t));
|
|
@@ -360,7 +360,7 @@ F = new WeakSet(), st = function(t) {
|
|
|
360
360
|
const { clipStartTime: s, clipEndTime: r } = this.ctx.$state, f = s(), B = r();
|
|
361
361
|
return f > 0 && B > 0 ? `${t}#t=${f},${B}` : f > 0 ? `${t}#t=${f}` : B > 0 ? `${t}#t=0,${B}` : t;
|
|
362
362
|
};
|
|
363
|
-
var y, U, V, w, v, zt, Jt
|
|
363
|
+
var y, U, V, w, v, Kt, zt, Jt;
|
|
364
364
|
class gi {
|
|
365
365
|
constructor(t, s) {
|
|
366
366
|
d(this, v);
|
|
@@ -368,7 +368,7 @@ class gi {
|
|
|
368
368
|
d(this, U);
|
|
369
369
|
d(this, V);
|
|
370
370
|
d(this, w, Z(!1));
|
|
371
|
-
c(this, y, t), c(this, U, s), a(this, v,
|
|
371
|
+
c(this, y, t), c(this, U, s), a(this, v, Kt).call(this);
|
|
372
372
|
}
|
|
373
373
|
get supported() {
|
|
374
374
|
return i(this, w).call(this);
|
|
@@ -378,21 +378,21 @@ class gi {
|
|
|
378
378
|
return this.type === "airplay" && i(this, y).webkitShowPlaybackTargetPicker ? i(this, y).webkitShowPlaybackTargetPicker() : i(this, y).remote.prompt();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
y = new WeakMap(), U = new WeakMap(), V = new WeakMap(), w = new WeakMap(), v = new WeakSet(),
|
|
381
|
+
y = new WeakMap(), U = new WeakMap(), V = new WeakMap(), w = new WeakMap(), v = new WeakSet(), Kt = function() {
|
|
382
382
|
var t;
|
|
383
383
|
!((t = i(this, y)) != null && t.remote) || !this.canPrompt || (i(this, y).remote.watchAvailability((s) => {
|
|
384
384
|
i(this, w).set(s);
|
|
385
385
|
}).catch(() => {
|
|
386
386
|
i(this, w).set(!1);
|
|
387
|
-
}), lt(a(this, v,
|
|
388
|
-
},
|
|
387
|
+
}), lt(a(this, v, zt).bind(this)));
|
|
388
|
+
}, zt = function() {
|
|
389
389
|
if (!i(this, w).call(this)) return;
|
|
390
|
-
const t = ["connecting", "connect", "disconnect"], s = a(this, v,
|
|
390
|
+
const t = ["connecting", "connect", "disconnect"], s = a(this, v, Jt).bind(this);
|
|
391
391
|
s(), rt(i(this, y), "playing", s);
|
|
392
392
|
const r = new nt(i(this, y).remote);
|
|
393
393
|
for (const f of t)
|
|
394
394
|
r.add(f, s);
|
|
395
|
-
},
|
|
395
|
+
}, Jt = function(t) {
|
|
396
396
|
const s = i(this, y).remote.state;
|
|
397
397
|
if (s === i(this, V)) return;
|
|
398
398
|
const r = { type: this.type, state: s };
|
|
@@ -5,15 +5,15 @@ var w = (t) => {
|
|
|
5
5
|
var P = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
6
6
|
var u = (t, e, a) => P(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
|
|
7
7
|
var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), m = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
|
|
8
|
-
import { l as b,
|
|
9
|
-
function
|
|
8
|
+
import { l as b, j as A, U as O, F as D, d as R, n as M } from "./install-Dlm9F6VX.js";
|
|
9
|
+
function U() {
|
|
10
10
|
return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function j() {
|
|
13
13
|
var t;
|
|
14
14
|
return !!((t = window.cast) != null && t.framework);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function F() {
|
|
17
17
|
var t, e;
|
|
18
18
|
return !!((e = (t = window.chrome) == null ? void 0 : t.cast) != null && e.isAvailable);
|
|
19
19
|
}
|
|
@@ -26,15 +26,15 @@ function g() {
|
|
|
26
26
|
function E() {
|
|
27
27
|
return g().getCurrentSession();
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function G() {
|
|
30
30
|
var t;
|
|
31
31
|
return (t = E()) == null ? void 0 : t.getSessionObj().media[0];
|
|
32
32
|
}
|
|
33
33
|
function J(t) {
|
|
34
34
|
var a;
|
|
35
|
-
return ((a =
|
|
35
|
+
return ((a = G()) == null ? void 0 : a.media.contentId) === (t == null ? void 0 : t.src);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function L() {
|
|
38
38
|
return {
|
|
39
39
|
language: "en-US",
|
|
40
40
|
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,
|
|
@@ -43,14 +43,14 @@ function U() {
|
|
|
43
43
|
androidReceiverCompatible: !0
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function N(t) {
|
|
47
47
|
return `Google Cast Error Code: ${t}`;
|
|
48
48
|
}
|
|
49
49
|
function V(t, e) {
|
|
50
50
|
return b(g(), t, e);
|
|
51
51
|
}
|
|
52
52
|
var n, r, S, k, I, l, d;
|
|
53
|
-
class
|
|
53
|
+
class T {
|
|
54
54
|
constructor() {
|
|
55
55
|
m(this, r);
|
|
56
56
|
u(this, "name", "google-cast");
|
|
@@ -94,26 +94,26 @@ class F {
|
|
|
94
94
|
async load(e) {
|
|
95
95
|
if (!c(this, n))
|
|
96
96
|
throw Error("[vidstack] google cast player was not initialized");
|
|
97
|
-
return new (await import("./vidstack-google-cast-
|
|
97
|
+
return new (await import("./vidstack-google-cast-Chb7A1N-.js")).GoogleCastProvider(c(this, n), e);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
n = new WeakMap(), r = new WeakSet(), S = async function(e) {
|
|
101
|
-
if (
|
|
101
|
+
if (j()) return;
|
|
102
102
|
const a = e.player.createEvent("google-cast-load-start");
|
|
103
|
-
e.player.dispatch(a), await M(
|
|
103
|
+
e.player.dispatch(a), await M(U()), await customElements.whenDefined("google-cast-launcher");
|
|
104
104
|
const o = e.player.createEvent("google-cast-loaded", { trigger: a });
|
|
105
|
-
if (e.player.dispatch(o), !
|
|
105
|
+
if (e.player.dispatch(o), !F())
|
|
106
106
|
throw s(this, r, d).call(this, "CAST_NOT_AVAILABLE", "Google Cast not available on this platform.");
|
|
107
107
|
return o;
|
|
108
108
|
}, k = async function(e) {
|
|
109
109
|
s(this, r, I).call(this, e);
|
|
110
110
|
const a = await this.cast.requestSession();
|
|
111
111
|
if (a)
|
|
112
|
-
throw s(this, r, d).call(this, a.toUpperCase(),
|
|
112
|
+
throw s(this, r, d).call(this, a.toUpperCase(), N(a));
|
|
113
113
|
}, I = function(e) {
|
|
114
114
|
var a;
|
|
115
115
|
(a = this.cast) == null || a.setOptions({
|
|
116
|
-
...
|
|
116
|
+
...L(),
|
|
117
117
|
...e
|
|
118
118
|
});
|
|
119
119
|
}, l = function(e, a, o) {
|
|
@@ -125,12 +125,12 @@ n = new WeakMap(), r = new WeakSet(), S = async function(e) {
|
|
|
125
125
|
};
|
|
126
126
|
const q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
127
127
|
__proto__: null,
|
|
128
|
-
GoogleCastLoader:
|
|
128
|
+
GoogleCastLoader: T
|
|
129
129
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
130
130
|
export {
|
|
131
131
|
E as a,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
G as b,
|
|
133
|
+
N as c,
|
|
134
134
|
g,
|
|
135
135
|
J as h,
|
|
136
136
|
V as l,
|
|
@@ -5,9 +5,9 @@ var g = (s) => {
|
|
|
5
5
|
var w = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
6
6
|
var c = (s, t, i) => w(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
|
|
7
7
|
var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
|
|
8
|
-
import {
|
|
8
|
+
import { K as M, l as f, e as A, d as P, S as O, b as S } from "./install-Dlm9F6VX.js";
|
|
9
9
|
var r, o, b, m;
|
|
10
|
-
class
|
|
10
|
+
class J {
|
|
11
11
|
constructor(t) {
|
|
12
12
|
l(this, o);
|
|
13
13
|
l(this, r);
|
|
@@ -56,5 +56,5 @@ r = new WeakMap(), o = new WeakSet(), b = function() {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
J as E
|
|
60
60
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as d, a as i, I as l, e as m } from "./install-
|
|
1
|
+
import { c as d, a as i, I as l, e as m } from "./install-Dlm9F6VX.js";
|
|
2
2
|
const p = /* @__PURE__ */ i(
|
|
3
3
|
'<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
|
|
4
4
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f = (i) => {
|
|
2
2
|
throw TypeError(i);
|
|
3
3
|
};
|
|
4
|
-
var c = (i, t, s) => t.has(i) ||
|
|
5
|
-
var r = (i, t, s) => (c(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ?
|
|
6
|
-
import {
|
|
4
|
+
var c = (i, t, s) => t.has(i) || f("Cannot " + s);
|
|
5
|
+
var r = (i, t, s) => (c(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? f("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, u) => (c(i, t, "write to private field"), u ? u.call(i, s) : t.set(i, s), s), m = (i, t, s) => (c(i, t, "access private method"), s);
|
|
6
|
+
import { k as l, u as p } from "./install-Dlm9F6VX.js";
|
|
7
7
|
var o, a, n, d;
|
|
8
8
|
class F {
|
|
9
9
|
constructor(t) {
|
|
@@ -13,15 +13,15 @@ class F {
|
|
|
13
13
|
h(this, a, t);
|
|
14
14
|
}
|
|
15
15
|
start() {
|
|
16
|
-
|
|
16
|
+
l(r(this, o)) && m(this, n, d).call(this);
|
|
17
17
|
}
|
|
18
18
|
stop() {
|
|
19
|
-
|
|
19
|
+
p(r(this, o)) && window.cancelAnimationFrame(r(this, o)), h(this, o, void 0);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
o = new WeakMap(), a = new WeakMap(), n = new WeakSet(), d = function() {
|
|
23
23
|
h(this, o, window.requestAnimationFrame(() => {
|
|
24
|
-
|
|
24
|
+
l(r(this, o)) || (r(this, a).call(this), m(this, n, d).call(this));
|
|
25
25
|
}));
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
2
|
var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { s as p } from "./install-
|
|
5
|
-
import { H as d, a as u } from "./vidstack-Bq6c3Bam-
|
|
4
|
+
import { s as p } from "./install-Dlm9F6VX.js";
|
|
5
|
+
import { H as d, a as u } from "./vidstack-Bq6c3Bam-LBg_N7NA.js";
|
|
6
6
|
class n extends d {
|
|
7
7
|
constructor(t, s) {
|
|
8
8
|
super(t, s);
|
|
@@ -5,9 +5,9 @@ var Y = (n) => {
|
|
|
5
5
|
var wt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
6
6
|
var I = (n, t, e) => wt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || Y("Cannot " + e);
|
|
7
7
|
var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? Y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
|
|
8
|
-
import {
|
|
9
|
-
import { VideoProvider as $t } from "./vidstack-video-
|
|
10
|
-
import { R as jt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { q as Et, b as _, p as Lt, d as At, Q as z, l as J, e as Dt, D as N, f as xt, h as O, T as Mt, L as q, r as Ct, t as Nt, u as Rt, j as Ft, k as Z, m as Pt, n as qt, o as _t } from "./install-Dlm9F6VX.js";
|
|
9
|
+
import { VideoProvider as $t } from "./vidstack-video-Oj0vav_S.js";
|
|
10
|
+
import { R as jt } from "./vidstack-DqAw8m9J-BVoQCcQn.js";
|
|
11
11
|
function W(n) {
|
|
12
12
|
try {
|
|
13
13
|
return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Lt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Q = (d) => {
|
|
3
3
|
throw TypeError(d);
|
|
4
4
|
};
|
|
5
5
|
var vt = (d, t, s) => t in d ? Lt(d, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[t] = s;
|
|
6
|
-
var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) ||
|
|
7
|
-
var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ?
|
|
8
|
-
import {
|
|
9
|
-
import { R as wt } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-
|
|
6
|
+
var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) || Q("Cannot " + s);
|
|
7
|
+
var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, s), l = (d, t, s, i) => (O(d, t, "write to private field"), i ? i.call(d, s) : t.set(d, s), s), r = (d, t, s) => (O(d, t, "access private method"), s);
|
|
8
|
+
import { z as St, M as L, V as Z, y as At, D as tt, d as V, l as et, e as It, W as bt, L as Rt } from "./install-Dlm9F6VX.js";
|
|
9
|
+
import { R as wt } from "./vidstack-DqAw8m9J-BVoQCcQn.js";
|
|
10
|
+
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-B54jdjLZ.js";
|
|
11
11
|
var g, _, at;
|
|
12
12
|
class _t {
|
|
13
13
|
constructor(t) {
|
|
@@ -32,7 +32,7 @@ g = new WeakMap(), _ = new WeakSet(), at = function(t, s) {
|
|
|
32
32
|
const i = new chrome.cast.media.Track(s, chrome.cast.media.TrackType.TEXT);
|
|
33
33
|
return i.name = t.label, i.trackContentId = t.src, i.trackContentType = "text/vtt", i.language = t.language, i.subtype = t.kind.toUpperCase(), i;
|
|
34
34
|
};
|
|
35
|
-
var p, k, M, c, $, A, rt, nt, ot,
|
|
35
|
+
var p, k, M, c, $, A, rt, nt, ot, H, P, U;
|
|
36
36
|
class xt {
|
|
37
37
|
constructor(t, s, i) {
|
|
38
38
|
T(this, c);
|
|
@@ -52,7 +52,7 @@ class xt {
|
|
|
52
52
|
if (!e(this, p).isMediaLoaded) return;
|
|
53
53
|
const s = r(this, c, $).call(this), i = this.getLocalTextTracks(), n = r(this, c, A).call(this, chrome.cast.media.TrackType.AUDIO), m = r(this, c, A).call(this, chrome.cast.media.TrackType.TEXT);
|
|
54
54
|
for (const u of n) {
|
|
55
|
-
if (r(this, c,
|
|
55
|
+
if (r(this, c, H).call(this, s, u)) continue;
|
|
56
56
|
const w = {
|
|
57
57
|
id: u.trackId.toString(),
|
|
58
58
|
label: u.name,
|
|
@@ -63,7 +63,7 @@ class xt {
|
|
|
63
63
|
e(this, k).audioTracks[Rt.add](w, t);
|
|
64
64
|
}
|
|
65
65
|
for (const u of m) {
|
|
66
|
-
if (r(this, c,
|
|
66
|
+
if (r(this, c, H).call(this, i, u)) continue;
|
|
67
67
|
const w = {
|
|
68
68
|
id: u.trackId.toString(),
|
|
69
69
|
src: u.trackContentId,
|
|
@@ -117,17 +117,17 @@ p = new WeakMap(), k = new WeakMap(), M = new WeakMap(), c = new WeakSet(), $ =
|
|
|
117
117
|
}, ot = function(t) {
|
|
118
118
|
const s = it();
|
|
119
119
|
return new Promise((i, n) => s == null ? void 0 : s.editTracksInfo(t, i, n));
|
|
120
|
-
},
|
|
121
|
-
return t.find((i) => r(this, c,
|
|
120
|
+
}, H = function(t, s) {
|
|
121
|
+
return t.find((i) => r(this, c, U).call(this, i, s));
|
|
122
122
|
}, P = function(t, s) {
|
|
123
|
-
return t.find((i) => r(this, c,
|
|
123
|
+
return t.find((i) => r(this, c, U).call(this, s, i));
|
|
124
124
|
}, // Note: we can't rely on id matching because they will differ between local/remote. A local
|
|
125
125
|
// track id might not even exist.
|
|
126
|
-
|
|
126
|
+
U = function(t, s) {
|
|
127
127
|
return s.name === t.label && s.language === t.language && s.subtype.toLowerCase() === t.kind.toLowerCase();
|
|
128
128
|
};
|
|
129
|
-
var o, h, C, E, D, I, v, S, b, N, f, R, a, ht, ct, F, dt, q, ut, lt, mt, B, X,
|
|
130
|
-
class
|
|
129
|
+
var o, h, C, E, D, I, v, S, b, N, f, R, a, ht, ct, F, dt, q, ut, lt, mt, B, X, Y, K, Tt, ft, gt, z, kt, W, yt, j, y, pt, Ct, J, Et;
|
|
130
|
+
class Ht {
|
|
131
131
|
constructor(t, s) {
|
|
132
132
|
T(this, a);
|
|
133
133
|
G(this, "$$PROVIDER_TYPE", "GOOGLE_CAST");
|
|
@@ -191,7 +191,7 @@ class Ut {
|
|
|
191
191
|
var t;
|
|
192
192
|
if (!(!e(this, o).isPaused && !e(this, R))) {
|
|
193
193
|
if (e(this, R)) {
|
|
194
|
-
await r(this, a,
|
|
194
|
+
await r(this, a, J).call(this, !1, 0);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
(t = e(this, o).controller) == null || t.playOrPause();
|
|
@@ -246,13 +246,13 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
246
246
|
const t = cast.framework.RemotePlayerEventType, s = {
|
|
247
247
|
[t.IS_CONNECTED_CHANGED]: r(this, a, B),
|
|
248
248
|
[t.IS_MEDIA_LOADED_CHANGED]: r(this, a, X),
|
|
249
|
-
[t.CAN_CONTROL_VOLUME_CHANGED]: r(this, a,
|
|
250
|
-
[t.CAN_SEEK_CHANGED]: r(this, a,
|
|
249
|
+
[t.CAN_CONTROL_VOLUME_CHANGED]: r(this, a, Y),
|
|
250
|
+
[t.CAN_SEEK_CHANGED]: r(this, a, K),
|
|
251
251
|
[t.DURATION_CHANGED]: r(this, a, gt),
|
|
252
|
-
[t.IS_MUTED_CHANGED]: r(this, a,
|
|
253
|
-
[t.VOLUME_LEVEL_CHANGED]: r(this, a,
|
|
252
|
+
[t.IS_MUTED_CHANGED]: r(this, a, z),
|
|
253
|
+
[t.VOLUME_LEVEL_CHANGED]: r(this, a, z),
|
|
254
254
|
[t.IS_PAUSED_CHANGED]: r(this, a, kt),
|
|
255
|
-
[t.LIVE_SEEKABLE_RANGE_CHANGED]: r(this, a,
|
|
255
|
+
[t.LIVE_SEEKABLE_RANGE_CHANGED]: r(this, a, W),
|
|
256
256
|
[t.PLAYER_STATE_CHANGED]: r(this, a, yt)
|
|
257
257
|
};
|
|
258
258
|
l(this, N, s);
|
|
@@ -301,15 +301,15 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
301
301
|
provider: this,
|
|
302
302
|
duration: n,
|
|
303
303
|
buffered: new L(0, 0),
|
|
304
|
-
seekable: r(this, a,
|
|
304
|
+
seekable: r(this, a, j).call(this)
|
|
305
305
|
}, u = r(this, a, y).call(this, t);
|
|
306
|
-
e(this, h).notify("loaded-metadata", void 0, u), e(this, h).notify("loaded-data", void 0, u), e(this, h).notify("can-play", m, u), r(this, a,
|
|
306
|
+
e(this, h).notify("loaded-metadata", void 0, u), e(this, h).notify("loaded-data", void 0, u), e(this, h).notify("can-play", m, u), r(this, a, Y).call(this), r(this, a, K).call(this, t);
|
|
307
307
|
const { volume: x, muted: w } = e(this, h).$state;
|
|
308
308
|
this.setVolume(x()), this.setMuted(w()), e(this, b).start(), e(this, C).syncRemoteTracks(u), e(this, C).syncRemoteActiveIds(u);
|
|
309
309
|
});
|
|
310
|
-
},
|
|
310
|
+
}, Y = function() {
|
|
311
311
|
e(this, h).$state.canSetVolume.set(e(this, o).canControlVolume);
|
|
312
|
-
},
|
|
312
|
+
}, K = function(t) {
|
|
313
313
|
const s = r(this, a, y).call(this, t);
|
|
314
314
|
e(this, h).notify("stream-type-change", r(this, a, Tt).call(this), s);
|
|
315
315
|
}, Tt = function() {
|
|
@@ -318,12 +318,12 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
318
318
|
}, ft = function() {
|
|
319
319
|
if (e(this, f)) return;
|
|
320
320
|
const t = e(this, o).currentTime;
|
|
321
|
-
t !== e(this, I) && (e(this, h).notify("time-change", t), t > e(this, v) && (l(this, v, t), r(this, a,
|
|
321
|
+
t !== e(this, I) && (e(this, h).notify("time-change", t), t > e(this, v) && (l(this, v, t), r(this, a, W).call(this)), e(this, h).$state.seeking() && e(this, h).notify("seeked", t), l(this, I, t));
|
|
322
322
|
}, gt = function(t) {
|
|
323
323
|
if (!e(this, o).isMediaLoaded || e(this, f)) return;
|
|
324
324
|
const s = e(this, o).duration, i = r(this, a, y).call(this, t);
|
|
325
325
|
l(this, S, new L(0, s)), e(this, h).notify("duration-change", s, i);
|
|
326
|
-
},
|
|
326
|
+
}, z = function(t) {
|
|
327
327
|
if (!e(this, o).isMediaLoaded) return;
|
|
328
328
|
const s = {
|
|
329
329
|
muted: e(this, o).isMuted,
|
|
@@ -333,9 +333,9 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
333
333
|
}, kt = function(t) {
|
|
334
334
|
const s = r(this, a, y).call(this, t);
|
|
335
335
|
e(this, o).isPaused ? e(this, h).notify("pause", void 0, s) : e(this, h).notify("play", void 0, s);
|
|
336
|
-
},
|
|
336
|
+
}, W = function(t) {
|
|
337
337
|
const s = {
|
|
338
|
-
seekable: r(this, a,
|
|
338
|
+
seekable: r(this, a, j).call(this),
|
|
339
339
|
buffered: new L(0, e(this, v))
|
|
340
340
|
}, i = t ? r(this, a, y).call(this, t) : void 0;
|
|
341
341
|
e(this, h).notify("progress", s, i);
|
|
@@ -354,7 +354,7 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
354
354
|
e(this, b).stop(), e(this, h).notify("pause"), e(this, h).notify("end");
|
|
355
355
|
break;
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, j = function() {
|
|
358
358
|
return e(this, o).liveSeekableRange ? new L(e(this, o).liveSeekableRange.start, e(this, o).liveSeekableRange.end) : e(this, S);
|
|
359
359
|
}, y = function(t) {
|
|
360
360
|
return t instanceof Event ? t : new tt(t.type, { detail: t });
|
|
@@ -365,13 +365,13 @@ o = new WeakMap(), h = new WeakMap(), C = new WeakMap(), E = new WeakMap(), D =
|
|
|
365
365
|
var m, u;
|
|
366
366
|
const s = r(this, a, pt).call(this, t), i = new chrome.cast.media.LoadRequest(s), n = e(this, h).$state.savedState();
|
|
367
367
|
return i.autoplay = (((m = e(this, f)) == null ? void 0 : m.paused) ?? (n == null ? void 0 : n.paused)) === !1, i.currentTime = ((u = e(this, f)) == null ? void 0 : u.time) ?? (n == null ? void 0 : n.currentTime) ?? 0, i;
|
|
368
|
-
},
|
|
368
|
+
}, J = async function(t, s) {
|
|
369
369
|
const i = V(e(this, h).$state.source);
|
|
370
370
|
l(this, f, { src: i, paused: t, time: s }), await this.loadSource(i);
|
|
371
371
|
}, Et = function() {
|
|
372
|
-
r(this, a,
|
|
372
|
+
r(this, a, J).call(this, e(this, o).isPaused, e(this, o).currentTime).catch((t) => {
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
export {
|
|
376
|
-
|
|
376
|
+
Ht as GoogleCastProvider
|
|
377
377
|
};
|
|
@@ -5,9 +5,9 @@ var N = (n) => {
|
|
|
5
5
|
var ot = (n, t, i) => t in n ? rt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
|
|
6
6
|
var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || N("Cannot " + i);
|
|
7
7
|
var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), p = (n, t, i) => t.has(n) ? N("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), f = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
|
|
8
|
-
import { i as ht, b as C, p as at, d as O, Q as V, l as j, e as dt, D as x, f as ut, T as ct,
|
|
9
|
-
import { VideoProvider as yt } from "./vidstack-video-
|
|
10
|
-
import { R as gt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { i as ht, b as C, p as at, d as O, Q as V, l as j, e as dt, D as x, f as ut, T as ct, h as k, L as $, j as lt, k as q, m as pt, n as ft, o as vt } from "./install-Dlm9F6VX.js";
|
|
9
|
+
import { VideoProvider as yt } from "./vidstack-video-Oj0vav_S.js";
|
|
10
|
+
import { R as gt } from "./vidstack-DqAw8m9J-BVoQCcQn.js";
|
|
11
11
|
const Lt = (n) => ut(n);
|
|
12
12
|
var T, h, o, D, b, r, E, M, U, F, Q, K, W, B, J, X, Y, z, G, Z, tt;
|
|
13
13
|
class St {
|
|
@@ -3,10 +3,10 @@ var b = (i) => {
|
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
5
|
var N = (i, t, e) => t in i ? $(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
6
|
-
var
|
|
6
|
+
var y = (i, t, e) => N(i, typeof t != "symbol" ? t + "" : t, e), E = (i, t, e) => t.has(i) || b("Cannot " + e);
|
|
7
7
|
var s = (i, t, e) => (E(i, t, "read from private field"), e ? e.call(i) : t.get(i)), r = (i, t, e) => t.has(i) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), c = (i, t, e, n) => (E(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), p = (i, t, e) => (E(i, t, "access private method"), e);
|
|
8
|
-
import { s as U,
|
|
9
|
-
import { H as z, a as B } from "./vidstack-Bq6c3Bam-
|
|
8
|
+
import { s as U, v as V, w as A, x as q, y as C, l as F, D as Y, E as _, T as j, h as v } from "./install-Dlm9F6VX.js";
|
|
9
|
+
import { H as z, a as B } from "./vidstack-Bq6c3Bam-LBg_N7NA.js";
|
|
10
10
|
var P, f, k, D, H;
|
|
11
11
|
class G {
|
|
12
12
|
constructor(t, e) {
|
|
@@ -45,16 +45,16 @@ P = new WeakMap(), f = new WeakMap(), k = new WeakSet(), D = function(t) {
|
|
|
45
45
|
function J(i, t) {
|
|
46
46
|
return Array.from(i.children).find((e) => e.track === t);
|
|
47
47
|
}
|
|
48
|
-
var d,
|
|
48
|
+
var d, m, x, S, L, T;
|
|
49
49
|
class K {
|
|
50
50
|
constructor(t, e) {
|
|
51
51
|
r(this, x);
|
|
52
52
|
r(this, d);
|
|
53
|
-
r(this,
|
|
53
|
+
r(this, m);
|
|
54
54
|
r(this, T, (t, e) => {
|
|
55
|
-
s(this,
|
|
55
|
+
s(this, m).notify("picture-in-picture-change", t, e);
|
|
56
56
|
});
|
|
57
|
-
c(this, d, t), c(this,
|
|
57
|
+
c(this, d, t), c(this, m, e), new _(t).add("enterpictureinpicture", p(this, x, S).bind(this)).add("leavepictureinpicture", p(this, x, L).bind(this));
|
|
58
58
|
}
|
|
59
59
|
get active() {
|
|
60
60
|
return document.pictureInPictureElement === s(this, d);
|
|
@@ -69,7 +69,7 @@ class K {
|
|
|
69
69
|
return document.exitPictureInPicture();
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
d = new WeakMap(),
|
|
72
|
+
d = new WeakMap(), m = new WeakMap(), x = new WeakSet(), S = function(t) {
|
|
73
73
|
s(this, T).call(this, !0, t);
|
|
74
74
|
}, L = function(t) {
|
|
75
75
|
s(this, T).call(this, !1, t);
|
|
@@ -148,10 +148,10 @@ h = new WeakMap();
|
|
|
148
148
|
class it extends z {
|
|
149
149
|
constructor(e, n) {
|
|
150
150
|
super(e, n);
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
y(this, "$$PROVIDER_TYPE", "VIDEO");
|
|
152
|
+
y(this, "airPlay");
|
|
153
|
+
y(this, "fullscreen");
|
|
154
|
+
y(this, "pictureInPicture");
|
|
155
155
|
U(() => {
|
|
156
156
|
if (this.airPlay = new B(e, n), V(e)) {
|
|
157
157
|
const a = new Q(e, n);
|