@vindral/web-sdk 4.8.2-9-gec246501 → 4.8.3
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/{BylishAR.js → BeCY4GvT.js} +93 -78
- package/{Dom0pf6K.js → BiqsvhSb.js} +20 -23
- package/Bz5OiWeK.js +129 -0
- package/CcifCOAv.js +185 -0
- package/CmTzPIcG.js +5311 -0
- package/{C1ebXKEm.js → CnefSzun.js} +4580 -4647
- package/{B_i2EMYc.js → CukMAxok.js} +340 -361
- package/{CZXxMdn3.js → DCE6HgL-.js} +18 -22
- package/{daJ21AEO.js → DHV7WJZT.js} +26 -32
- package/{CFqytvUK.js → DvtbAkGW.js} +30 -9
- package/{DiWlRJyv.js → QwO652WK.js} +1719 -1831
- package/api-client.js +1 -2
- package/cast-sender.d.ts +8 -1
- package/cast-sender.js +1 -2
- package/core.d.ts +8 -1
- package/core.js +1 -2
- package/legacy.d.ts +8 -1
- package/legacy.es.js +3916 -4172
- package/legacy.umd.js +15 -1237
- package/package.json +1 -1
- package/player.d.ts +8 -1
- package/player.js +3 -4
- package/react.d.ts +8 -1
- package/style.css +2 -0
- package/vindral-player-component.js +2 -4
- package/2sSTdNyC.js +0 -25
- package/BeUVgVO0.js +0 -5124
- package/CG3eQNjj.js +0 -196
- package/CR_-dzIp.js +0 -169
- package/CXMDq12B.js +0 -27
- package/CuYn2z5X.js +0 -4
- package/DJNS7hc2.js +0 -35
- package/DSw1XhvD.js +0 -27
- package/DZ6JmYgs.js +0 -7
- package/Wh46-8RX.js +0 -110
- package/c9cSjfkk.js +0 -378
package/CR_-dzIp.js
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./CFqytvUK.js";
|
|
2
|
-
import { i as t, n, t as r } from "./DSw1XhvD.js";
|
|
3
|
-
//#region ../../libs/utils/src/BitReader.ts
|
|
4
|
-
var i = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = class {
|
|
5
|
-
constructor(s, c = 0) {
|
|
6
|
-
t(this, i, void 0), t(this, a, void 0), t(this, o, void 0), e(this, "position", () => r(o, this)), e(this, "peekBit", () => this.getBit(r(a, this), r(o, this))), e(this, "readBit", () => {
|
|
7
|
-
var e;
|
|
8
|
-
let t = this.peekBit();
|
|
9
|
-
return n(o, this, (e = r(o, this), e++, e)), t;
|
|
10
|
-
}), e(this, "readBits", (e) => {
|
|
11
|
-
let t = 0;
|
|
12
|
-
for (let c = 0; c < e; c++) {
|
|
13
|
-
var i, s;
|
|
14
|
-
t = t << 1 | (this.getBit(r(a, this), (n(o, this, (i = r(o, this), s = i++, i)), s)) ? 1 : 0);
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
}), e(this, "remainingBits", () => r(a, this).byteLength * 8 - r(o, this)), e(this, "readSignedExpGolomb", () => {
|
|
18
|
-
let e = this.readUnsignedExpGolomb();
|
|
19
|
-
return e & 1 ? (e + 1) / 2 : -(e / 2);
|
|
20
|
-
}), e(this, "readUnsignedExpGolomb", () => {
|
|
21
|
-
var e, t;
|
|
22
|
-
let i = 0;
|
|
23
|
-
for (; this.getBit(r(a, this), (n(o, this, (e = r(o, this), t = e++, e)), t)) === 0;) i++;
|
|
24
|
-
let s = 1 << i;
|
|
25
|
-
for (let e = i - 1; e >= 0; e--) {
|
|
26
|
-
var c, l;
|
|
27
|
-
s |= this.getBit(r(a, this), (n(o, this, (c = r(o, this), l = c++, c)), l)) << e;
|
|
28
|
-
}
|
|
29
|
-
return s - 1;
|
|
30
|
-
}), e(this, "getBit", (e, t) => {
|
|
31
|
-
if (e.byteLength * 8 <= t) throw Error("BitReader: Out of bounds");
|
|
32
|
-
return e[t >> 3] >> 7 - (t & 7) & 1;
|
|
33
|
-
}), n(i, this, s), n(a, this, new Uint8Array(r(i, this))), n(o, this, c);
|
|
34
|
-
}
|
|
35
|
-
bytes() {
|
|
36
|
-
return r(a, this);
|
|
37
|
-
}
|
|
38
|
-
}, c = [
|
|
39
|
-
96e3,
|
|
40
|
-
88200,
|
|
41
|
-
64e3,
|
|
42
|
-
48e3,
|
|
43
|
-
44100,
|
|
44
|
-
32e3,
|
|
45
|
-
24e3,
|
|
46
|
-
22050,
|
|
47
|
-
16e3,
|
|
48
|
-
12e3,
|
|
49
|
-
11025,
|
|
50
|
-
8e3,
|
|
51
|
-
7350
|
|
52
|
-
], l = (e, t) => {
|
|
53
|
-
let n = c.indexOf(t);
|
|
54
|
-
if (n === -1 || e < 1 || e > 8 || e === 7) return;
|
|
55
|
-
let r = /* @__PURE__ */ new ArrayBuffer(2), i = new Uint8Array(r), a = e === 8 ? 7 : e;
|
|
56
|
-
return i[0] = 16 | n >> 1, i[1] = (n & 1) << 7 | a << 3, r;
|
|
57
|
-
}, u = [
|
|
58
|
-
void 0,
|
|
59
|
-
1,
|
|
60
|
-
2,
|
|
61
|
-
3,
|
|
62
|
-
4,
|
|
63
|
-
5,
|
|
64
|
-
6,
|
|
65
|
-
8,
|
|
66
|
-
void 0,
|
|
67
|
-
void 0,
|
|
68
|
-
void 0,
|
|
69
|
-
7,
|
|
70
|
-
8,
|
|
71
|
-
24,
|
|
72
|
-
8
|
|
73
|
-
], d = 5, f = 29, p = new Set([
|
|
74
|
-
1,
|
|
75
|
-
2,
|
|
76
|
-
3,
|
|
77
|
-
4
|
|
78
|
-
]), m = 695, h = 1352, g = (e) => {
|
|
79
|
-
let t = new s(e.slice().buffer), n = (e) => t.remainingBits() >= e, r = () => {
|
|
80
|
-
if (!n(5)) return;
|
|
81
|
-
let e = t.readBits(5);
|
|
82
|
-
return e === 31 ? n(6) ? 32 + t.readBits(6) : void 0 : e;
|
|
83
|
-
}, i = () => {
|
|
84
|
-
if (!n(4)) return;
|
|
85
|
-
let e = t.readBits(4);
|
|
86
|
-
return e === 15 ? n(24) ? t.readBits(24) : void 0 : c[e];
|
|
87
|
-
}, a = r(), o = i();
|
|
88
|
-
if (!a || !o || !n(4)) return;
|
|
89
|
-
let l = t.readBits(4), g = u[l];
|
|
90
|
-
if (a !== d && a !== f) {
|
|
91
|
-
if (!p.has(a) || l === 0 || !n(2)) return {
|
|
92
|
-
sampleRate: o,
|
|
93
|
-
channelCount: g
|
|
94
|
-
};
|
|
95
|
-
if (t.readBits(1), t.readBits(1) === 1) {
|
|
96
|
-
if (!n(14)) return {
|
|
97
|
-
sampleRate: o,
|
|
98
|
-
channelCount: g
|
|
99
|
-
};
|
|
100
|
-
t.readBits(14);
|
|
101
|
-
}
|
|
102
|
-
if (!n(1)) return {
|
|
103
|
-
sampleRate: o,
|
|
104
|
-
channelCount: g
|
|
105
|
-
};
|
|
106
|
-
if (t.readBits(1) === 1) {
|
|
107
|
-
if (!n(1)) return {
|
|
108
|
-
sampleRate: o,
|
|
109
|
-
channelCount: g
|
|
110
|
-
};
|
|
111
|
-
t.readBits(1);
|
|
112
|
-
}
|
|
113
|
-
if (!n(16) || t.readBits(11) !== m || r() !== d || !n(1) || t.readBits(1) === 0) return {
|
|
114
|
-
sampleRate: o,
|
|
115
|
-
channelCount: g
|
|
116
|
-
};
|
|
117
|
-
let e = i();
|
|
118
|
-
return e ? {
|
|
119
|
-
sampleRate: e,
|
|
120
|
-
channelCount: n(12) && t.readBits(11) === h && t.readBits(1) === 1 && g === 1 ? 2 : g
|
|
121
|
-
} : {
|
|
122
|
-
sampleRate: o,
|
|
123
|
-
channelCount: g
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
let _ = i();
|
|
127
|
-
if (!(!_ || r() === void 0)) return a === f && g === 1 && (g = 2), {
|
|
128
|
-
sampleRate: _,
|
|
129
|
-
channelCount: g
|
|
130
|
-
};
|
|
131
|
-
}, _ = (e) => {
|
|
132
|
-
if (!e) return;
|
|
133
|
-
let t = e.channelMappingTable, n = new Uint8Array(19 + t.byteLength), r = new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
134
|
-
return n.set([
|
|
135
|
-
79,
|
|
136
|
-
112,
|
|
137
|
-
117,
|
|
138
|
-
115,
|
|
139
|
-
72,
|
|
140
|
-
101,
|
|
141
|
-
97,
|
|
142
|
-
100
|
|
143
|
-
], 0), r.setUint8(8, 1), r.setUint8(9, e.channelCount), r.setUint16(10, e.preSkip, !0), r.setUint32(12, e.inputSampleRate, !0), r.setInt16(16, e.outputGain, !0), r.setUint8(18, e.channelMappingFamily), t.byteLength > 0 && n.set(t, 19), n;
|
|
144
|
-
}, v = (e, t) => {
|
|
145
|
-
if (e < 1 || e > 2) return;
|
|
146
|
-
let n = new Uint8Array(19), r = new DataView(n.buffer, n.byteOffset, n.byteLength);
|
|
147
|
-
return n.set([
|
|
148
|
-
79,
|
|
149
|
-
112,
|
|
150
|
-
117,
|
|
151
|
-
115,
|
|
152
|
-
72,
|
|
153
|
-
101,
|
|
154
|
-
97,
|
|
155
|
-
100
|
|
156
|
-
]), r.setUint8(8, 1), r.setUint8(9, e), r.setUint16(10, 3840, !0), r.setUint32(12, t, !0), r.setInt16(16, 0, !0), r.setUint8(18, 0), n;
|
|
157
|
-
}, y = (e) => {
|
|
158
|
-
switch (e) {
|
|
159
|
-
case "opus": return "opus";
|
|
160
|
-
case "aac": return "mp4a.40.2";
|
|
161
|
-
case "mp3": return "mp3";
|
|
162
|
-
default: {
|
|
163
|
-
let t = e;
|
|
164
|
-
throw Error(`Unsupported audio codec: ${t}`);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
//#endregion
|
|
169
|
-
export { g as a, l as i, v as n, s as o, _ as r, y as t };
|
package/CXMDq12B.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/asyncToGenerator.js
|
|
2
|
-
function e(e, t, n, r, i, a, o) {
|
|
3
|
-
try {
|
|
4
|
-
var s = e[a](o), c = s.value;
|
|
5
|
-
} catch (e) {
|
|
6
|
-
n(e);
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
s.done ? t(c) : Promise.resolve(c).then(r, i);
|
|
10
|
-
}
|
|
11
|
-
function t(t) {
|
|
12
|
-
return function() {
|
|
13
|
-
var n = this, r = arguments;
|
|
14
|
-
return new Promise(function(i, a) {
|
|
15
|
-
var o = t.apply(n, r);
|
|
16
|
-
function s(t) {
|
|
17
|
-
e(o, i, a, s, c, "next", t);
|
|
18
|
-
}
|
|
19
|
-
function c(t) {
|
|
20
|
-
e(o, i, a, s, c, "throw", t);
|
|
21
|
-
}
|
|
22
|
-
s(void 0);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { t };
|
package/CuYn2z5X.js
DELETED
package/DJNS7hc2.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./CFqytvUK.js";
|
|
2
|
-
//#region ../../libs/utils/src/Fifo.ts
|
|
3
|
-
var t = class {
|
|
4
|
-
constructor(t = 50) {
|
|
5
|
-
e(this, "maxSize", void 0), e(this, "values", []), e(this, "start", 0), e(this, "size", () => this.values.length - this.start), e(this, "compact", () => {
|
|
6
|
-
if (this.start !== 0) {
|
|
7
|
-
if (this.start >= this.values.length) {
|
|
8
|
-
this.values = [], this.start = 0;
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
this.start < 32 && this.start * 2 < this.values.length || (this.values = this.values.slice(this.start), this.start = 0);
|
|
12
|
-
}
|
|
13
|
-
}), e(this, "push", (e) => {
|
|
14
|
-
this.isFull() && (this.start++, this.compact()), this.values.push(e);
|
|
15
|
-
}), e(this, "clear", () => {
|
|
16
|
-
this.values = [], this.start = 0;
|
|
17
|
-
}), e(this, "pop", () => {
|
|
18
|
-
if (this.isEmpty()) return;
|
|
19
|
-
let e = this.values[this.start];
|
|
20
|
-
return this.start++, this.compact(), e;
|
|
21
|
-
}), e(this, "popLast", () => {
|
|
22
|
-
if (this.isEmpty()) return;
|
|
23
|
-
let e = this.values.pop();
|
|
24
|
-
return this.start >= this.values.length && this.clear(), e;
|
|
25
|
-
}), e(this, "peekFirst", () => this.isEmpty() ? void 0 : this.values[this.start]), e(this, "peekLast", () => this.isEmpty() ? void 0 : this.values[this.values.length - 1]), e(this, "isFull", () => this.size() >= this.maxSize), e(this, "isEmpty", () => this.size() === 0), e(this, "items", () => this.start === 0 ? this.values : this.values.slice(this.start)), e(this, "filterPop", (e) => {
|
|
26
|
-
for (; !this.isEmpty();) {
|
|
27
|
-
let t = this.peekFirst();
|
|
28
|
-
if (t === void 0 || e(t)) return;
|
|
29
|
-
this.pop();
|
|
30
|
-
}
|
|
31
|
-
}), this.maxSize = t;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
//#endregion
|
|
35
|
-
export { t };
|
package/DSw1XhvD.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/checkPrivateRedeclaration.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldInitSpec.js
|
|
7
|
-
function t(t, n, r) {
|
|
8
|
-
e(t, n), n.set(t, r);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/assertClassBrand.js
|
|
12
|
-
function n(e, t, n) {
|
|
13
|
-
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
14
|
-
throw TypeError("Private element is not present on this object");
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldSet2.js
|
|
18
|
-
function r(e, t, r) {
|
|
19
|
-
return e.set(n(e, t), r), r;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region \0@oxc-project+runtime@0.115.0/helpers/classPrivateFieldGet2.js
|
|
23
|
-
function i(e, t) {
|
|
24
|
-
return e.get(n(e, t));
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { e as a, t as i, r as n, n as r, i as t };
|
package/DZ6JmYgs.js
DELETED
package/Wh46-8RX.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./CFqytvUK.js";
|
|
2
|
-
import { i as t, n, t as r } from "./DSw1XhvD.js";
|
|
3
|
-
//#region ../../libs/utils/src/Emitter.ts
|
|
4
|
-
var i = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
e(this, "listeners", {});
|
|
7
|
-
}
|
|
8
|
-
handleListenerError(e, t) {
|
|
9
|
-
throw e;
|
|
10
|
-
}
|
|
11
|
-
emit(e, t) {
|
|
12
|
-
let n = this.listeners[e];
|
|
13
|
-
if (n) {
|
|
14
|
-
let r = !1;
|
|
15
|
-
for (let e = 0; e < n.length; e++) if (n[e].once) {
|
|
16
|
-
r = !0;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
r && (this.listeners[e] = n.filter((e) => !e.once));
|
|
20
|
-
let i, a = n.length;
|
|
21
|
-
for (let r = 0; r < a; r++) try {
|
|
22
|
-
let e = n[r].fn(t);
|
|
23
|
-
typeof e == "function" && (i || (i = []), i.push(e));
|
|
24
|
-
} catch (t) {
|
|
25
|
-
this.handleListenerError(t, e);
|
|
26
|
-
}
|
|
27
|
-
if (i) for (let t = 0; t < i.length; t++) try {
|
|
28
|
-
i[t]();
|
|
29
|
-
} catch (t) {
|
|
30
|
-
this.handleListenerError(t, e);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
off(e, t) {
|
|
35
|
-
let n = this.listeners[e];
|
|
36
|
-
n && (this.listeners[e] = n.filter((e) => e.fn !== t));
|
|
37
|
-
}
|
|
38
|
-
on(e, t) {
|
|
39
|
-
this.add(e, t, !1);
|
|
40
|
-
}
|
|
41
|
-
once(e, t) {
|
|
42
|
-
this.add(e, t, !0);
|
|
43
|
-
}
|
|
44
|
-
hasListeners(e) {
|
|
45
|
-
let t = this.listeners[e];
|
|
46
|
-
return t !== void 0 && t.length > 0;
|
|
47
|
-
}
|
|
48
|
-
reset() {
|
|
49
|
-
this.listeners = {};
|
|
50
|
-
}
|
|
51
|
-
add(e, t, n) {
|
|
52
|
-
let r = this.listeners[e], i = {
|
|
53
|
-
fn: t,
|
|
54
|
-
once: n
|
|
55
|
-
};
|
|
56
|
-
r ? r.push(i) : this.listeners[e] = [i];
|
|
57
|
-
}
|
|
58
|
-
}, a = [
|
|
59
|
-
"off",
|
|
60
|
-
"error",
|
|
61
|
-
"warn",
|
|
62
|
-
"info",
|
|
63
|
-
"debug",
|
|
64
|
-
"trace"
|
|
65
|
-
], o = {
|
|
66
|
-
ERROR: "error",
|
|
67
|
-
WARN: "warn",
|
|
68
|
-
INFO: "info",
|
|
69
|
-
DEBUG: "debug",
|
|
70
|
-
TRACE: "trace",
|
|
71
|
-
OFF: "off"
|
|
72
|
-
}, s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d = class i {
|
|
73
|
-
constructor({ context: i, logLevel: a, debug: o }) {
|
|
74
|
-
t(this, s, /* @__PURE__ */ new Map()), t(this, c, ""), t(this, l, !1), t(this, u, "off"), e(this, "trace", (...e) => {}), e(this, "debug", (...e) => {}), e(this, "info", (...e) => {}), e(this, "warn", (...e) => {}), e(this, "error", (...e) => {}), e(this, "table", (...e) => {}), e(this, "count", (...e) => {}), n(c, this, i), n(u, this, a), n(l, this, o || !1), this.setLevel(a), this.setDebug(r(l, this));
|
|
75
|
-
}
|
|
76
|
-
setDebug(e) {
|
|
77
|
-
n(l, this, e);
|
|
78
|
-
for (let [t, n] of r(s, this)) n.setDebug(e);
|
|
79
|
-
e ? (this.table = console.table.bind(console), this.count = console.count.bind(console)) : (this.table = () => {}, this.count = () => {});
|
|
80
|
-
}
|
|
81
|
-
getLevel() {
|
|
82
|
-
return r(u, this);
|
|
83
|
-
}
|
|
84
|
-
setLevel(e) {
|
|
85
|
-
n(u, this, e);
|
|
86
|
-
for (let [t, n] of r(s, this)) n.setLevel(e);
|
|
87
|
-
let t = a.indexOf(e);
|
|
88
|
-
for (let [e, n] of a.entries()) n !== "off" && (e <= t ? this[n] = console[n].bind(console, "%c%s %c%s", "font-weight:bold;", n.toUpperCase(), "font-weight:normal;", r(c, this)) : this[n] = () => {});
|
|
89
|
-
}
|
|
90
|
-
createContext(e) {
|
|
91
|
-
let t = r(s, this).get(e);
|
|
92
|
-
if (!t) {
|
|
93
|
-
let t = new i({
|
|
94
|
-
context: `${e}`,
|
|
95
|
-
logLevel: r(u, this),
|
|
96
|
-
debug: r(l, this)
|
|
97
|
-
});
|
|
98
|
-
return r(s, this).set(e, t), t;
|
|
99
|
-
}
|
|
100
|
-
return t;
|
|
101
|
-
}
|
|
102
|
-
static get() {
|
|
103
|
-
return f._ || (f._ = new i({
|
|
104
|
-
context: "Vindral",
|
|
105
|
-
logLevel: "off"
|
|
106
|
-
})), f._;
|
|
107
|
-
}
|
|
108
|
-
}, f = { _: void 0 };
|
|
109
|
-
//#endregion
|
|
110
|
-
export { d as n, i as r, o as t };
|