@cloudflare/realtimekit 1.5.0-staging.4 → 1.5.0-staging.8
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/browser.js +10 -10
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +382 -382
- package/dist/index.es5.js +147 -147
- package/dist/index.rn.js +9 -9
- package/package.json +1 -1
package/dist/index.es5.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v4 as
|
|
1
|
+
import { v4 as ho, validate as ph } from "uuid";
|
|
2
2
|
import vh from "bowser";
|
|
3
3
|
import { MessageType as _, PbLong as Ao, typeofJsonValue as Qg } from "@protobuf-ts/runtime";
|
|
4
4
|
import * as dc from "worker-timers";
|
|
5
5
|
import * as wn from "sdp-transform";
|
|
6
|
-
var Og = ["chat", "connectedMeetings", "plugins", "polls", "media"], Dg = ["id"], $g = ["meetingId"], ee, Ln, Ne, li, bc,
|
|
6
|
+
var Og = ["chat", "connectedMeetings", "plugins", "polls", "media"], Dg = ["id"], $g = ["meetingId"], ee, Ln, Ne, li, bc, Ws, Nn, Tc, Zu, Fa, Ha, oo, xt, Ba, Vn, di, Js, Un, Ks, zs, en, qa, Er, Ke, Cr, Ga, Wa, Tt, Ja, rn, Ka, jr, za, Zr, pi, Qa, Ya, Za, Fr, Ve, Xa, xa, Mr, jn, cn, Fn, Xu, wt, Qs, nn, Hn, Pt, xu, Ys, ec, rc, be, Zs, Bn, ei, qn, mr, Hr, Xr, ri, ti, nr, ni, je, St, Ue, ai, Ee, vi, hi, Xs, ep, Gn, xr, X, yr, tn, ye, ke, Br, Fe, xs, eo, ve, De, Wn;
|
|
7
7
|
function rp(o, t) {
|
|
8
8
|
if (o == null)
|
|
9
9
|
return {};
|
|
@@ -1098,10 +1098,10 @@ var am = /* @__PURE__ */ function() {
|
|
|
1098
1098
|
return ut;
|
|
1099
1099
|
}, set exports(o) {
|
|
1100
1100
|
ut = o;
|
|
1101
|
-
} },
|
|
1101
|
+
} }, uo = (typeof Reflect == "undefined" ? "undefined" : me(Reflect)) === "object" ? Reflect : null, Vp = uo && typeof uo.apply == "function" ? uo.apply : function(t, e, r) {
|
|
1102
1102
|
return Function.prototype.apply.call(t, e, r);
|
|
1103
1103
|
}, pc;
|
|
1104
|
-
|
|
1104
|
+
uo && typeof uo.ownKeys == "function" ? pc = uo.ownKeys : Object.getOwnPropertySymbols ? pc = function(t) {
|
|
1105
1105
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
1106
1106
|
} : pc = function(t) {
|
|
1107
1107
|
return Object.getOwnPropertyNames(t);
|
|
@@ -2079,7 +2079,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2079
2079
|
if (ae.ssrc === 1234)
|
|
2080
2080
|
break;
|
|
2081
2081
|
this.overallConsumersStatsMap[x] || (this.overallConsumersStatsMap[x] = { totalVideoPacketsReceived: 0, totalAudioPacketsReceived: 0 });
|
|
2082
|
-
var
|
|
2082
|
+
var Gs = this.overallConsumersStatsMap[x];
|
|
2083
2083
|
if (["video", "audio"].includes(ae.mediaType) || ["video", "audio"].includes(ae.kind)) {
|
|
2084
2084
|
if (!this.inboundConsumerMap.has(w.id)) {
|
|
2085
2085
|
d.staleConsumerStreamMap = !0;
|
|
@@ -2099,7 +2099,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2099
2099
|
isScreenShare: this.screenShareConsumers.has(x),
|
|
2100
2100
|
bitrate: ((Re.bytesReceived || 0) - (((Oi = this.videoConsumerToStatsMap.get(x)) === null || Oi === void 0 ? void 0 : Oi.bytesReceived) || 0)) * 8 / 7
|
|
2101
2101
|
// Bytes received in last 7 seconds
|
|
2102
|
-
}), this.videoConsumerToStatsMap.set(x, Re), d.inboundVideoRtp.set(w.id, Re), d.consumerStreamMap.get(x).inboundVideoRtpId.push(w.id), this.processInboundConsumerVideoStats(x,
|
|
2102
|
+
}), this.videoConsumerToStatsMap.set(x, Re), d.inboundVideoRtp.set(w.id, Re), d.consumerStreamMap.get(x).inboundVideoRtpId.push(w.id), this.processInboundConsumerVideoStats(x, Gs, Re);
|
|
2103
2103
|
} else if (ae.mediaType === "audio" || ae.kind === "audio") {
|
|
2104
2104
|
var Di, $i, Li, Ni, Vi, Ui, ir = ae, Ze = V({ audioLevel: ir.audioLevel, concealedSamples: ir.concealedSamples, concealmentEvents: ir.concealmentEvents, totalAudioEnergy: ir.totalAudioEnergy, totalSamplesDuration: ir.totalSamplesDuration, totalSamplesReceived: ir.totalSamplesReceived, fecPacketsDiscarded: ir.fecPacketsDiscarded || 0, fecPacketsReceived: ir.fecPacketsReceived || 0, insertedSamplesForDeceleration: ir.insertedSamplesForDeceleration || 0, removedSamplesForAcceleration: ir.removedSamplesForAcceleration || 0, silentConcealedSamples: ir.silentConcealedSamples || 0, playoutId: ir.playoutId }, Oe);
|
|
2105
2105
|
Ze.score = jh({ concealmentEvents: (Ze.concealmentEvents || 0) - (((Di = this.audioConsumerToStatsMap.get(x)) === null || Di === void 0 ? void 0 : Di.concealmentEvents) || 0), packetsLost: (Ze.packetsLost || 0) - ((($i = this.audioConsumerToStatsMap.get(x)) === null || $i === void 0 ? void 0 : $i.packetsLost) || 0), packetsReceived: (Ze.packetsReceived || 0) - (((Li = this.audioConsumerToStatsMap.get(x)) === null || Li === void 0 ? void 0 : Li.packetsReceived) || 0), jitter: Ze.jitter || 0 }), y.set(x, {
|
|
@@ -2109,7 +2109,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2109
2109
|
isScreenShare: this.screenShareConsumers.has(x),
|
|
2110
2110
|
bitrate: ((Ze.bytesReceived || 0) - (((Ui = this.audioConsumerToStatsMap.get(x)) === null || Ui === void 0 ? void 0 : Ui.bytesReceived) || 0)) * 8 / 7
|
|
2111
2111
|
// Bytes received in last 7 seconds
|
|
2112
|
-
}), this.audioConsumerToStatsMap.set(x, Ze), d.inboundAudioRtp.set(w.id, Ze), d.consumerStreamMap.get(x).inboundAudioRtpId.push(w.id), this.processInboundConsumerAudioStats(x,
|
|
2112
|
+
}), this.audioConsumerToStatsMap.set(x, Ze), d.inboundAudioRtp.set(w.id, Ze), d.consumerStreamMap.get(x).inboundAudioRtpId.push(w.id), this.processInboundConsumerAudioStats(x, Gs, Ze);
|
|
2113
2113
|
}
|
|
2114
2114
|
} else
|
|
2115
2115
|
this.callStatsInstance.logger.error("Callstats: Unknown Inbound-rtp. mediatype: ".concat(ae.mediaType, " kind: ").concat(ae.kind));
|
|
@@ -2717,7 +2717,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2717
2717
|
if (ae.ssrc === 1234)
|
|
2718
2718
|
break;
|
|
2719
2719
|
this.overallConsumersStatsMap[x] || (this.overallConsumersStatsMap[x] = { totalVideoPacketsReceived: 0, totalAudioPacketsReceived: 0 });
|
|
2720
|
-
var
|
|
2720
|
+
var Gs = this.overallConsumersStatsMap[x];
|
|
2721
2721
|
if (["video", "audio"].includes(ae.mediaType) || ["video", "audio"].includes(ae.kind)) {
|
|
2722
2722
|
if (!this.inboundConsumerMap.has(w.id)) {
|
|
2723
2723
|
d.staleConsumerStreamMap = !0;
|
|
@@ -2737,7 +2737,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2737
2737
|
isScreenShare: this.screenShareConsumers.has(x),
|
|
2738
2738
|
bitrate: ((Re.bytesReceived || 0) - (((Oi = this.videoConsumerToStatsMap.get(x)) === null || Oi === void 0 ? void 0 : Oi.bytesReceived) || 0)) * 8 / 7
|
|
2739
2739
|
// Bytes received in last 7 seconds
|
|
2740
|
-
}), this.videoConsumerToStatsMap.set(x, Re), d.inboundVideoRtp.set(w.id, Re), d.consumerStreamMap.get(x).inboundVideoRtpId.push(w.id), this.processInboundConsumerVideoStats(x,
|
|
2740
|
+
}), this.videoConsumerToStatsMap.set(x, Re), d.inboundVideoRtp.set(w.id, Re), d.consumerStreamMap.get(x).inboundVideoRtpId.push(w.id), this.processInboundConsumerVideoStats(x, Gs, Re);
|
|
2741
2741
|
} else if (ae.mediaType === "audio" || ae.kind === "audio") {
|
|
2742
2742
|
var Di, $i, Li, Ni, Vi, Ui, ir = ae, Ze = V({ audioLevel: ir.audioLevel, concealedSamples: ir.concealedSamples, concealmentEvents: ir.concealmentEvents, totalAudioEnergy: ir.totalAudioEnergy, totalSamplesDuration: ir.totalSamplesDuration, totalSamplesReceived: ir.totalSamplesReceived, fecPacketsDiscarded: ir.fecPacketsDiscarded || 0, fecPacketsReceived: ir.fecPacketsReceived || 0, insertedSamplesForDeceleration: ir.insertedSamplesForDeceleration || 0, removedSamplesForAcceleration: ir.removedSamplesForAcceleration || 0, silentConcealedSamples: ir.silentConcealedSamples || 0, playoutId: ir.playoutId }, Oe);
|
|
2743
2743
|
Ze.score = jh({ concealmentEvents: (Ze.concealmentEvents || 0) - (((Di = this.audioConsumerToStatsMap.get(x)) === null || Di === void 0 ? void 0 : Di.concealmentEvents) || 0), packetsLost: (Ze.packetsLost || 0) - ((($i = this.audioConsumerToStatsMap.get(x)) === null || $i === void 0 ? void 0 : $i.packetsLost) || 0), packetsReceived: (Ze.packetsReceived || 0) - (((Li = this.audioConsumerToStatsMap.get(x)) === null || Li === void 0 ? void 0 : Li.packetsReceived) || 0), jitter: Ze.jitter || 0 }), y.set(x, {
|
|
@@ -2747,7 +2747,7 @@ var qh = /* @__PURE__ */ S(function o() {
|
|
|
2747
2747
|
isScreenShare: this.screenShareConsumers.has(x),
|
|
2748
2748
|
bitrate: ((Ze.bytesReceived || 0) - (((Ui = this.audioConsumerToStatsMap.get(x)) === null || Ui === void 0 ? void 0 : Ui.bytesReceived) || 0)) * 8 / 7
|
|
2749
2749
|
// Bytes received in last 7 seconds
|
|
2750
|
-
}), this.audioConsumerToStatsMap.set(x, Ze), d.inboundAudioRtp.set(w.id, Ze), d.consumerStreamMap.get(x).inboundAudioRtpId.push(w.id), this.processInboundConsumerAudioStats(x,
|
|
2750
|
+
}), this.audioConsumerToStatsMap.set(x, Ze), d.inboundAudioRtp.set(w.id, Ze), d.consumerStreamMap.get(x).inboundAudioRtpId.push(w.id), this.processInboundConsumerAudioStats(x, Gs, Ze);
|
|
2751
2751
|
}
|
|
2752
2752
|
} else
|
|
2753
2753
|
this.callStatsInstance.logger.error("Callstats: Unknown Inbound-rtp. mediatype: ".concat(ae.mediaType, " kind: ").concat(ae.kind));
|
|
@@ -3869,7 +3869,7 @@ function Wm(o) {
|
|
|
3869
3869
|
return Gm.call(o);
|
|
3870
3870
|
}
|
|
3871
3871
|
var Jm = "[object Null]", Km = "[object Undefined]", Gp = Kn ? Kn.toStringTag : void 0;
|
|
3872
|
-
function
|
|
3872
|
+
function Us(o) {
|
|
3873
3873
|
return o == null ? o === void 0 ? Km : Jm : Gp && Gp in Object(o) ? Bm(o) : Wm(o);
|
|
3874
3874
|
}
|
|
3875
3875
|
function zn(o) {
|
|
@@ -3877,7 +3877,7 @@ function zn(o) {
|
|
|
3877
3877
|
}
|
|
3878
3878
|
var zm = "[object Symbol]";
|
|
3879
3879
|
function Bc(o) {
|
|
3880
|
-
return me(o) == "symbol" || zn(o) &&
|
|
3880
|
+
return me(o) == "symbol" || zn(o) && Us(o) == zm;
|
|
3881
3881
|
}
|
|
3882
3882
|
function Qm(o, t) {
|
|
3883
3883
|
for (var e = -1, r = o == null ? 0 : o.length, n = Array(r); ++e < r; )
|
|
@@ -3932,7 +3932,7 @@ var sy = "[object AsyncFunction]", oy = "[object Function]", uy = "[object Gener
|
|
|
3932
3932
|
function op(o) {
|
|
3933
3933
|
if (!ln(o))
|
|
3934
3934
|
return !1;
|
|
3935
|
-
var t =
|
|
3935
|
+
var t = Us(o);
|
|
3936
3936
|
return t == oy || t == uy || t == sy || t == cy;
|
|
3937
3937
|
}
|
|
3938
3938
|
var ly = Mn["__core-js_shared__"], dl = ly, Qp = function() {
|
|
@@ -3943,7 +3943,7 @@ function dy(o) {
|
|
|
3943
3943
|
return !!Qp && Qp in o;
|
|
3944
3944
|
}
|
|
3945
3945
|
var py = Function.prototype, vy = py.toString;
|
|
3946
|
-
function
|
|
3946
|
+
function js(o) {
|
|
3947
3947
|
if (o != null) {
|
|
3948
3948
|
try {
|
|
3949
3949
|
return vy.call(o);
|
|
@@ -3961,16 +3961,16 @@ function Ty(o) {
|
|
|
3961
3961
|
if (!ln(o) || dy(o))
|
|
3962
3962
|
return !1;
|
|
3963
3963
|
var t = op(o) ? by : fy;
|
|
3964
|
-
return t.test(
|
|
3964
|
+
return t.test(js(o));
|
|
3965
3965
|
}
|
|
3966
3966
|
function wy(o, t) {
|
|
3967
3967
|
return o == null ? void 0 : o[t];
|
|
3968
3968
|
}
|
|
3969
|
-
function
|
|
3969
|
+
function Fs(o, t) {
|
|
3970
3970
|
var e = wy(o, t);
|
|
3971
3971
|
return Ty(e) ? e : void 0;
|
|
3972
3972
|
}
|
|
3973
|
-
var Py =
|
|
3973
|
+
var Py = Fs(Mn, "WeakMap"), Yl = Py, Yp = Object.create, Sy = function() {
|
|
3974
3974
|
function o() {
|
|
3975
3975
|
}
|
|
3976
3976
|
return function(t) {
|
|
@@ -4024,7 +4024,7 @@ function Oy(o) {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
var Dy = function() {
|
|
4026
4026
|
try {
|
|
4027
|
-
var o =
|
|
4027
|
+
var o = Fs(Object, "defineProperty");
|
|
4028
4028
|
return o({}, "", {}), o;
|
|
4029
4029
|
} catch (t) {
|
|
4030
4030
|
}
|
|
@@ -4132,7 +4132,7 @@ function ek(o, t) {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
var rk = "[object Arguments]";
|
|
4134
4134
|
function Xp(o) {
|
|
4135
|
-
return zn(o) &&
|
|
4135
|
+
return zn(o) && Us(o) == rk;
|
|
4136
4136
|
}
|
|
4137
4137
|
var Xh = Object.prototype, tk = Xh.hasOwnProperty, nk = Xh.propertyIsEnumerable, ak = Xp(function() {
|
|
4138
4138
|
return arguments;
|
|
@@ -4146,7 +4146,7 @@ var xh = (typeof exports == "undefined" ? "undefined" : me(exports)) == "object"
|
|
|
4146
4146
|
fr[Sk] = fr[Ek] = fr[Ck] = fr[Rk] = fr[Ak] = fr[Ik] = fr[Mk] = fr[_k] = fr[Ok] = !0;
|
|
4147
4147
|
fr[ck] = fr[lk] = fr[wk] = fr[dk] = fr[Pk] = fr[pk] = fr[vk] = fr[hk] = fr[fk] = fr[gk] = fr[mk] = fr[yk] = fr[kk] = fr[bk] = fr[Tk] = !1;
|
|
4148
4148
|
function Dk(o) {
|
|
4149
|
-
return zn(o) && lp(o.length) && !!fr[
|
|
4149
|
+
return zn(o) && lp(o.length) && !!fr[Us(o)];
|
|
4150
4150
|
}
|
|
4151
4151
|
function dp(o) {
|
|
4152
4152
|
return function(t) {
|
|
@@ -4213,7 +4213,7 @@ function pp(o, t) {
|
|
|
4213
4213
|
var e = me(o);
|
|
4214
4214
|
return e == "number" || e == "symbol" || e == "boolean" || o == null || Bc(o) ? !0 : zk.test(o) || !Kk.test(o) || t != null && o in Object(t);
|
|
4215
4215
|
}
|
|
4216
|
-
var Qk =
|
|
4216
|
+
var Qk = Fs(Object, "create"), Du = Qk;
|
|
4217
4217
|
function Yk() {
|
|
4218
4218
|
this.__data__ = Du ? Du(null) : {}, this.size = 0;
|
|
4219
4219
|
}
|
|
@@ -4240,18 +4240,18 @@ function s0(o, t) {
|
|
|
4240
4240
|
var e = this.__data__;
|
|
4241
4241
|
return this.size += this.has(o) ? 0 : 1, e[o] = Du && t === void 0 ? i0 : t, this;
|
|
4242
4242
|
}
|
|
4243
|
-
function
|
|
4243
|
+
function Ls(o) {
|
|
4244
4244
|
var t = -1, e = o == null ? 0 : o.length;
|
|
4245
4245
|
for (this.clear(); ++t < e; ) {
|
|
4246
4246
|
var r = o[t];
|
|
4247
4247
|
this.set(r[0], r[1]);
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4250
|
+
Ls.prototype.clear = Yk;
|
|
4251
|
+
Ls.prototype.delete = Zk;
|
|
4252
|
+
Ls.prototype.get = r0;
|
|
4253
|
+
Ls.prototype.has = a0;
|
|
4254
|
+
Ls.prototype.set = s0;
|
|
4255
4255
|
function o0() {
|
|
4256
4256
|
this.__data__ = [], this.size = 0;
|
|
4257
4257
|
}
|
|
@@ -4292,9 +4292,9 @@ $a.prototype.delete = l0;
|
|
|
4292
4292
|
$a.prototype.get = d0;
|
|
4293
4293
|
$a.prototype.has = p0;
|
|
4294
4294
|
$a.prototype.set = v0;
|
|
4295
|
-
var h0 =
|
|
4295
|
+
var h0 = Fs(Mn, "Map"), $u = h0;
|
|
4296
4296
|
function f0() {
|
|
4297
|
-
this.size = 0, this.__data__ = { hash: new
|
|
4297
|
+
this.size = 0, this.__data__ = { hash: new Ls(), map: new ($u || $a)(), string: new Ls() };
|
|
4298
4298
|
}
|
|
4299
4299
|
function g0(o) {
|
|
4300
4300
|
var t = me(o);
|
|
@@ -4387,7 +4387,7 @@ function of(o, t) {
|
|
|
4387
4387
|
}
|
|
4388
4388
|
var _0 = tf(Object.getPrototypeOf, Object), hp = _0, O0 = "[object Object]", D0 = Function.prototype, $0 = Object.prototype, uf = D0.toString, L0 = $0.hasOwnProperty, N0 = uf.call(Object);
|
|
4389
4389
|
function V0(o) {
|
|
4390
|
-
if (!zn(o) ||
|
|
4390
|
+
if (!zn(o) || Us(o) != O0)
|
|
4391
4391
|
return !1;
|
|
4392
4392
|
var t = hp(o);
|
|
4393
4393
|
if (t === null)
|
|
@@ -4477,9 +4477,9 @@ function Zl(o) {
|
|
|
4477
4477
|
function rb(o) {
|
|
4478
4478
|
return vf(o, Bu, pf);
|
|
4479
4479
|
}
|
|
4480
|
-
var tb =
|
|
4481
|
-
(Xl && ms(new Xl(new ArrayBuffer(1))) != lv || $u && ms(new $u()) != sv || xl && ms(xl.resolve()) != ov ||
|
|
4482
|
-
var e =
|
|
4480
|
+
var tb = Fs(Mn, "DataView"), Xl = tb, nb = Fs(Mn, "Promise"), xl = nb, ab = Fs(Mn, "Set"), co = ab, sv = "[object Map]", ib = "[object Object]", ov = "[object Promise]", uv = "[object Set]", cv = "[object WeakMap]", lv = "[object DataView]", sb = js(Xl), ob = js($u), ub = js(xl), cb = js(co), lb = js(Yl), ms = Us;
|
|
4481
|
+
(Xl && ms(new Xl(new ArrayBuffer(1))) != lv || $u && ms(new $u()) != sv || xl && ms(xl.resolve()) != ov || co && ms(new co()) != uv || Yl && ms(new Yl()) != cv) && (ms = function(t) {
|
|
4482
|
+
var e = Us(t), r = e == ib ? t.constructor : void 0, n = r ? js(r) : "";
|
|
4483
4483
|
if (n)
|
|
4484
4484
|
switch (n) {
|
|
4485
4485
|
case sb:
|
|
@@ -4985,8 +4985,8 @@ function Aw(o, t) {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
var Iw = Xy(function(o, t, e) {
|
|
4987
4987
|
Pf(o, t, e);
|
|
4988
|
-
}), si = Iw, Mw = 1 / 0, _w =
|
|
4989
|
-
return new
|
|
4988
|
+
}), si = Iw, Mw = 1 / 0, _w = co && 1 / yp(new co([, -0]))[1] == Mw ? function(o) {
|
|
4989
|
+
return new co(o);
|
|
4990
4990
|
} : Ry, Ow = _w, Dw = 200;
|
|
4991
4991
|
function Sf(o, t, e) {
|
|
4992
4992
|
var r = -1, n = qy, a = o.length, i = !0, s = [], u = s;
|
|
@@ -5031,13 +5031,13 @@ function Uw(o) {
|
|
|
5031
5031
|
var t = o.baseURI;
|
|
5032
5032
|
return t.includes("staging.realtime") ? kv.STAGING : kv.PROD;
|
|
5033
5033
|
}
|
|
5034
|
-
function
|
|
5034
|
+
function lo(o) {
|
|
5035
5035
|
var t = o.servicePrefix, e = o.baseURI;
|
|
5036
5036
|
return "".concat(t, ".").concat(e);
|
|
5037
5037
|
}
|
|
5038
5038
|
function jw(o) {
|
|
5039
5039
|
var t = o.getValue("baseURI");
|
|
5040
|
-
return { location:
|
|
5040
|
+
return { location: lo({ servicePrefix: "location", baseURI: t }), locationLegacy: lo({ servicePrefix: "location-legacy", baseURI: t }), daCollector: lo({ servicePrefix: "da-collector", baseURI: t }) };
|
|
5041
5041
|
}
|
|
5042
5042
|
var Fw = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m16.242 2.932 4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561 4.06 21H3v-1.06l4.44-4.44-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.44a.75.75 0 0 0 .426-.373l2.435-4.87a2.75 2.75 0 0 1 4.405-.715Zm3.766 5.886-4.826-4.826a1.25 1.25 0 0 0-2.002.325l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31 6.705 6.704 1.308-3.789a2.25 2.25 0 0 1 1.12-1.277l4.872-2.436a1.25 1.25 0 0 0 .325-2.002Z" fill="currentColor"/></svg>', Hw = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 12.02c0 1.06.2 2.1.6 3.08l.6 1.42c.22.55.64 1.01 1.17 1.29.27.14.56.21.86.21h2.55c.77 0 1.49-.41 1.87-1.08.5-.87 1.02-1.7 1.72-2.43l1.32-1.39c.44-.46.97-.84 1.49-1.23l.59-.45a.6.6 0 0 0 .23-.47c0-.75-.54-1.57-1.22-1.79a3.34 3.34 0 0 0-2.78.29V4.5a1.5 1.5 0 0 0-2.05-1.4 1.5 1.5 0 0 0-2.9 0A1.5 1.5 0 0 0 6 4.5v.09A1.5 1.5 0 0 0 4 6v6.02ZM8 4.5v4a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0v5a.5.5 0 0 0 1 0v-4a.5.5 0 0 1 1 0v6a.5.5 0 0 0 .85.37h.01c.22-.22.44-.44.72-.58.7-.35 2.22-.57 2.4.5l-.53.4c-.52.4-1.04.78-1.48 1.24l-1.33 1.38c-.75.79-1.31 1.7-1.85 2.63-.21.36-.6.58-1.01.58H7.23a.87.87 0 0 1-.4-.1 1.55 1.55 0 0 1-.71-.78l-.59-1.42a7.09 7.09 0 0 1-.53-2.7V6a.5.5 0 0 1 1 0v3.5a.5.5 0 0 0 1 0v-5a.5.5 0 0 1 1 0Z" fill="currentColor"></path></svg>', nc = function(t) {
|
|
5043
5043
|
if (t) {
|
|
@@ -5110,7 +5110,7 @@ var $ = /* @__PURE__ */ function() {
|
|
|
5110
5110
|
}
|
|
5111
5111
|
return this.compressionSupported;
|
|
5112
5112
|
} }, { key: "logsEndpoint", get: function() {
|
|
5113
|
-
var e = ki.getContext(this.meetingMetadata.peerId), r =
|
|
5113
|
+
var e = ki.getContext(this.meetingMetadata.peerId), r = lo({ servicePrefix: "api-silos", baseURI: e.getValue("baseURI") });
|
|
5114
5114
|
return "https://".concat(r, "/otel/logs");
|
|
5115
5115
|
} }, { key: "logsBatchSize", get: (
|
|
5116
5116
|
/**
|
|
@@ -5140,7 +5140,7 @@ var $ = /* @__PURE__ */ function() {
|
|
|
5140
5140
|
this.logsProcessingInterval
|
|
5141
5141
|
), n && (this.initialized = !0);
|
|
5142
5142
|
} }, { key: "injectContext", value: function(e) {
|
|
5143
|
-
var r, n =
|
|
5143
|
+
var r, n = ho().replace(/-/g, "").substring(0, 16), a = (r = this.meetingMetadata.peerId) === null || r === void 0 ? void 0 : r.replace(/-/g, "");
|
|
5144
5144
|
e.TRACEPARENT = "00-".concat(a, "-").concat(n, "-01");
|
|
5145
5145
|
} }, { key: "addLogInCurrentSpan", value: function(e, r) {
|
|
5146
5146
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
@@ -5551,8 +5551,8 @@ var ct = function(t) {
|
|
|
5551
5551
|
return o.Allowed = "ALLOWED", o.NotAllowed = "NOT_ALLOWED", o.CanRequest = "CAN_REQUEST", o;
|
|
5552
5552
|
}(ie || {});
|
|
5553
5553
|
if (typeof process != "undefined") {
|
|
5554
|
-
var
|
|
5555
|
-
(
|
|
5554
|
+
var ro;
|
|
5555
|
+
(ro = process) !== null && ro !== void 0 && (ro = ro.env) !== null && ro !== void 0 && ro.FLAGSMITH_ENVIRONMENT_KEY && process.env.FLAGSMITH_ENVIRONMENT_KEY;
|
|
5556
5556
|
}
|
|
5557
5557
|
var Rf = [-2, -1, 0, 1, 2], Qw = [0, 1, 2, 3, 4];
|
|
5558
5558
|
function Yw(o) {
|
|
@@ -7936,7 +7936,7 @@ var AE = /* @__PURE__ */ function(o) {
|
|
|
7936
7936
|
} }]]);
|
|
7937
7937
|
}
|
|
7938
7938
|
return R(t, o), S(t);
|
|
7939
|
-
}(_),
|
|
7939
|
+
}(_), no = new _E(), OE = /* @__PURE__ */ function(o) {
|
|
7940
7940
|
function t() {
|
|
7941
7941
|
return P(this, t), C(this, t, ["socket.room.PeerStatusUpdate", [{
|
|
7942
7942
|
no: 1,
|
|
@@ -11540,12 +11540,12 @@ var MA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, Dn = funct
|
|
|
11540
11540
|
for (var a = n > 1 ? void 0 : n ? _A(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
11541
11541
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
11542
11542
|
return n && a && MA(e, r, a), a;
|
|
11543
|
-
}, OA = ["text", "image", "file", "custom", "poll"], gc = { maxInvocations: 180, period: 60 }, zt = (ee = /* @__PURE__ */ E("self"), Ln = /* @__PURE__ */ E("participants"), Ne = /* @__PURE__ */ E("chatSocketHandler"), li = /* @__PURE__ */ E("context"), bc = /* @__PURE__ */ E("connectionHandler"),
|
|
11543
|
+
}, OA = ["text", "image", "file", "custom", "poll"], gc = { maxInvocations: 180, period: 60 }, zt = (ee = /* @__PURE__ */ E("self"), Ln = /* @__PURE__ */ E("participants"), Ne = /* @__PURE__ */ E("chatSocketHandler"), li = /* @__PURE__ */ E("context"), bc = /* @__PURE__ */ E("connectionHandler"), Ws = /* @__PURE__ */ E("socketJoined"), /* @__PURE__ */ function(o) {
|
|
11544
11544
|
function t(e, r, n, a) {
|
|
11545
11545
|
var i;
|
|
11546
11546
|
P(this, t);
|
|
11547
11547
|
var s = e.getValue("logger");
|
|
11548
|
-
return i = C(this, t, [s]), Object.defineProperty(i,
|
|
11548
|
+
return i = C(this, t, [s]), Object.defineProperty(i, Ws, { get: $A, set: void 0 }), Object.defineProperty(i, bc, { get: DA, set: void 0 }), i.messages = void 0, Object.defineProperty(i, ee, { writable: !0, value: void 0 }), Object.defineProperty(i, Ln, { writable: !0, value: void 0 }), Object.defineProperty(i, Ne, { writable: !0, value: void 0 }), Object.defineProperty(i, li, { writable: !0, value: void 0 }), i.maxTextLimit = 2e3, c(i, li)[li] = e, c(i, Ne)[Ne] = r, c(i, ee)[ee] = n, c(i, Ln)[Ln] = a, i.messages = [], i;
|
|
11549
11549
|
}
|
|
11550
11550
|
return R(t, o), S(t, [{
|
|
11551
11551
|
key: "telemetry",
|
|
@@ -12166,7 +12166,7 @@ var MA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, Dn = funct
|
|
|
12166
12166
|
for (; ; )
|
|
12167
12167
|
switch (s.prev = s.next) {
|
|
12168
12168
|
case 0:
|
|
12169
|
-
if (c(this,
|
|
12169
|
+
if (c(this, Ws)[Ws]) {
|
|
12170
12170
|
s.next = 2;
|
|
12171
12171
|
break;
|
|
12172
12172
|
}
|
|
@@ -12194,7 +12194,7 @@ var MA = Object.defineProperty, _A = Object.getOwnPropertyDescriptor, Dn = funct
|
|
|
12194
12194
|
for (; ; )
|
|
12195
12195
|
switch (s.prev = s.next) {
|
|
12196
12196
|
case 0:
|
|
12197
|
-
if (c(this,
|
|
12197
|
+
if (c(this, Ws)[Ws]) {
|
|
12198
12198
|
s.next = 2;
|
|
12199
12199
|
break;
|
|
12200
12200
|
}
|
|
@@ -12510,12 +12510,12 @@ var UA = Object.defineProperty, jA = Object.getOwnPropertyDescriptor, FA = funct
|
|
|
12510
12510
|
for (var a = n > 1 ? void 0 : n ? jA(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
12511
12511
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
12512
12512
|
return n && a && UA(e, r, a), a;
|
|
12513
|
-
}, pd = (Tc = /* @__PURE__ */ E("connectionHandler"), Zu = /* @__PURE__ */ E("socketJoined"), Fa = /* @__PURE__ */ E("self"), Ha = /* @__PURE__ */ E("pollSocketHandler"),
|
|
12513
|
+
}, pd = (Tc = /* @__PURE__ */ E("connectionHandler"), Zu = /* @__PURE__ */ E("socketJoined"), Fa = /* @__PURE__ */ E("self"), Ha = /* @__PURE__ */ E("pollSocketHandler"), oo = /* @__PURE__ */ E("context"), /* @__PURE__ */ function(o) {
|
|
12514
12514
|
function t(e, r, n) {
|
|
12515
12515
|
var a;
|
|
12516
12516
|
P(this, t);
|
|
12517
12517
|
var i = e.getValue("logger");
|
|
12518
|
-
return a = C(this, t, [i]), Object.defineProperty(a, Zu, { get: BA, set: void 0 }), Object.defineProperty(a, Tc, { get: HA, set: void 0 }), a.items = void 0, Object.defineProperty(a, Fa, { writable: !0, value: void 0 }), Object.defineProperty(a, Ha, { writable: !0, value: void 0 }), Object.defineProperty(a,
|
|
12518
|
+
return a = C(this, t, [i]), Object.defineProperty(a, Zu, { get: BA, set: void 0 }), Object.defineProperty(a, Tc, { get: HA, set: void 0 }), a.items = void 0, Object.defineProperty(a, Fa, { writable: !0, value: void 0 }), Object.defineProperty(a, Ha, { writable: !0, value: void 0 }), Object.defineProperty(a, oo, { writable: !0, value: void 0 }), c(a, oo)[oo] = e, c(a, Fa)[Fa] = r, c(a, Ha)[Ha] = n, a.items = [], a;
|
|
12519
12519
|
}
|
|
12520
12520
|
return R(t, o), S(t, [{ key: "create", value: function() {
|
|
12521
12521
|
var e = m(/* @__PURE__ */ v().mark(function n(a, i) {
|
|
@@ -12585,7 +12585,7 @@ var UA = Object.defineProperty, jA = Object.getOwnPropertyDescriptor, FA = funct
|
|
|
12585
12585
|
}() }]);
|
|
12586
12586
|
}(Yt));
|
|
12587
12587
|
function HA() {
|
|
12588
|
-
return c(this,
|
|
12588
|
+
return c(this, oo)[oo].getValue("connectionHandler");
|
|
12589
12589
|
}
|
|
12590
12590
|
function BA() {
|
|
12591
12591
|
var o;
|
|
@@ -12596,7 +12596,7 @@ var qA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, WA = funct
|
|
|
12596
12596
|
for (var a = n > 1 ? void 0 : n ? GA(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
12597
12597
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
12598
12598
|
return n && a && qA(e, r, a), a;
|
|
12599
|
-
},
|
|
12599
|
+
}, ao = (xt = /* @__PURE__ */ E("context"), Ba = /* @__PURE__ */ E("self"), Vn = /* @__PURE__ */ E("pollSocketHandler"), /* @__PURE__ */ function() {
|
|
12600
12600
|
function o(t, e, r) {
|
|
12601
12601
|
P(this, o), this.polls = void 0, Object.defineProperty(this, xt, { writable: !0, value: void 0 }), Object.defineProperty(this, Ba, { writable: !0, value: void 0 }), Object.defineProperty(this, Vn, { writable: !0, value: void 0 }), this.polls = new pd(t, e, r), c(this, Ba)[Ba] = e, c(this, xt)[xt] = t, c(this, Vn)[Vn] = r, this.setupEvents();
|
|
12602
12602
|
}
|
|
@@ -12621,11 +12621,11 @@ var qA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, WA = funct
|
|
|
12621
12621
|
return c(this, Ba)[Ba].permissions.polls.canView;
|
|
12622
12622
|
} }, { key: "setupEvents", value: function() {
|
|
12623
12623
|
var e = this, r = { [Sa.createPoll]: function(i) {
|
|
12624
|
-
i.poll && e.updatePoll(
|
|
12624
|
+
i.poll && e.updatePoll(ao.formatSocketServicePoll(i.poll));
|
|
12625
12625
|
}, [Sa.updatePoll]: function(i) {
|
|
12626
|
-
i.poll && e.updatePoll(
|
|
12626
|
+
i.poll && e.updatePoll(ao.formatSocketServicePoll(i.poll));
|
|
12627
12627
|
}, [Sa.votePoll]: function(i) {
|
|
12628
|
-
i.poll && e.updatePoll(
|
|
12628
|
+
i.poll && e.updatePoll(ao.formatSocketServicePoll(i.poll));
|
|
12629
12629
|
} }, n = function() {
|
|
12630
12630
|
c(e, xt)[xt].getValue("peerSessionStore").on(F.SOCKET_SERVICE_ROOM_JOINED, function() {
|
|
12631
12631
|
e.getPolls();
|
|
@@ -12700,7 +12700,7 @@ var qA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, WA = funct
|
|
|
12700
12700
|
return u.abrupt("return");
|
|
12701
12701
|
case 5:
|
|
12702
12702
|
a = nA.fromBinary(n.payload), i = a.polls, this.polls.items = i.map(function(l) {
|
|
12703
|
-
return
|
|
12703
|
+
return ao.formatSocketServicePoll(l);
|
|
12704
12704
|
});
|
|
12705
12705
|
case 7:
|
|
12706
12706
|
case "end":
|
|
@@ -12718,7 +12718,7 @@ var qA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, WA = funct
|
|
|
12718
12718
|
for (; ; )
|
|
12719
12719
|
switch (u.prev = u.next) {
|
|
12720
12720
|
case 0:
|
|
12721
|
-
return u.abrupt("return", new
|
|
12721
|
+
return u.abrupt("return", new ao(n, a, i));
|
|
12722
12722
|
case 1:
|
|
12723
12723
|
case "end":
|
|
12724
12724
|
return u.stop();
|
|
@@ -12737,7 +12737,7 @@ var qA = Object.defineProperty, GA = Object.getOwnPropertyDescriptor, WA = funct
|
|
|
12737
12737
|
});
|
|
12738
12738
|
return { anonymous: e.anonymous, createdBy: e.createdBy, createdByUserId: e.createdByUserId, hideVotes: e.hideVotes, id: e.pollId, options: r, question: e.question, voted: e.votes };
|
|
12739
12739
|
} }]);
|
|
12740
|
-
}()), Kf =
|
|
12740
|
+
}()), Kf = ao;
|
|
12741
12741
|
WA([$.trace("PollController.setupEvents")], Kf.prototype, "setupEvents", 1);
|
|
12742
12742
|
var JA = Object.defineProperty, KA = Object.getOwnPropertyDescriptor, zA = function(t, e, r, n) {
|
|
12743
12743
|
for (var a = n > 1 ? void 0 : n ? KA(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
@@ -12745,17 +12745,17 @@ var JA = Object.defineProperty, KA = Object.getOwnPropertyDescriptor, zA = funct
|
|
|
12745
12745
|
return n && a && JA(e, r, a), a;
|
|
12746
12746
|
}, zf = /* @__PURE__ */ function(o) {
|
|
12747
12747
|
return o[o.User = 0] = "User", o[o.Meeting = 1] = "Meeting", o;
|
|
12748
|
-
}(zf || {}), vd = (di = /* @__PURE__ */ E("context"),
|
|
12748
|
+
}(zf || {}), vd = (di = /* @__PURE__ */ E("context"), Js = /* @__PURE__ */ E("connectionHandler"), Un = /* @__PURE__ */ E("self"), Ks = /* @__PURE__ */ E("roomSocketHandler"), /* @__PURE__ */ function(o) {
|
|
12749
12749
|
function t(e, r, n, a, i) {
|
|
12750
12750
|
var s;
|
|
12751
12751
|
P(this, t);
|
|
12752
12752
|
var u = e.getValue("logger");
|
|
12753
|
-
return s = C(this, t, [u]), Object.defineProperty(s,
|
|
12753
|
+
return s = C(this, t, [u]), Object.defineProperty(s, Js, { get: QA, set: void 0 }), s.selfActiveTab = void 0, s.broadcastTabChanges = void 0, Object.defineProperty(s, di, { writable: !0, value: void 0 }), Object.defineProperty(s, Un, { writable: !0, value: void 0 }), Object.defineProperty(s, Ks, { writable: !0, value: void 0 }), s.viewType = void 0, s.meetingStartedTimestamp = void 0, s.meetingTitle = void 0, s.sessionId = void 0, c(s, di)[di] = e, c(s, Un)[Un] = r, s.viewType = n, c(s, Ks)[Ks] = a, s.meetingTitle = i, s.broadcastTabChanges = r.permissions.canSpotlight, s;
|
|
12754
12754
|
}
|
|
12755
12755
|
return R(t, o), S(t, [{ key: "socketState", get: function() {
|
|
12756
|
-
return c(this,
|
|
12756
|
+
return c(this, Js)[Js].socketState;
|
|
12757
12757
|
} }, { key: "mediaState", get: function() {
|
|
12758
|
-
return c(this,
|
|
12758
|
+
return c(this, Js)[Js].mediaState;
|
|
12759
12759
|
} }, {
|
|
12760
12760
|
key: "meetingId",
|
|
12761
12761
|
get: function() {
|
|
@@ -12781,7 +12781,7 @@ var JA = Object.defineProperty, KA = Object.getOwnPropertyDescriptor, zA = funct
|
|
|
12781
12781
|
var a;
|
|
12782
12782
|
this.logger.info("Spotlight::setActiveTab", { spotlight: { currentTab: { id: r.id, type: r.type } } }), this.selfActiveTab = r, n === 0 && this.emit("selfTabUpdate", r), (a = c(this, Un)[Un].permissions) !== null && a !== void 0 && a.canSpotlight && this.broadcastTabChanges && n === 0 && this.assertActiveTabToRoom();
|
|
12783
12783
|
} }, { key: "assertActiveTabToRoom", value: function() {
|
|
12784
|
-
c(this,
|
|
12784
|
+
c(this, Ks)[Ks].broadcastMessage("spotlight", { userId: c(this, Un)[Un].userId, currentTab: this.selfActiveTab });
|
|
12785
12785
|
} }]);
|
|
12786
12786
|
}(Yt));
|
|
12787
12787
|
function QA() {
|
|
@@ -12805,12 +12805,12 @@ var ZA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, Qf = funct
|
|
|
12805
12805
|
for (var a = n > 1 ? void 0 : n ? XA(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
12806
12806
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
12807
12807
|
return n && a && ZA(e, r, a), a;
|
|
12808
|
-
}, bi = (
|
|
12808
|
+
}, bi = (zs = /* @__PURE__ */ E("context"), /* @__PURE__ */ function(o) {
|
|
12809
12809
|
function t(e) {
|
|
12810
12810
|
var r;
|
|
12811
12811
|
P(this, t);
|
|
12812
12812
|
var n = e.getValue("logger");
|
|
12813
|
-
return r = C(this, t, [n]), r.transcripts = void 0, Object.defineProperty(r,
|
|
12813
|
+
return r = C(this, t, [n]), r.transcripts = void 0, Object.defineProperty(r, zs, { writable: !0, value: void 0 }), c(r, zs)[zs] = e, r.transcripts = [], r;
|
|
12814
12814
|
}
|
|
12815
12815
|
return R(t, o), S(t, [{ key: "telemetry", get: (
|
|
12816
12816
|
/**
|
|
@@ -12818,7 +12818,7 @@ var ZA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, Qf = funct
|
|
|
12818
12818
|
* Not for external use
|
|
12819
12819
|
*/
|
|
12820
12820
|
function() {
|
|
12821
|
-
return c(this,
|
|
12821
|
+
return c(this, zs)[zs].getValue("telemetry");
|
|
12822
12822
|
}
|
|
12823
12823
|
) }, {
|
|
12824
12824
|
key: "getActiveTranscript",
|
|
@@ -12913,7 +12913,7 @@ var ZA = Object.defineProperty, XA = Object.getOwnPropertyDescriptor, Qf = funct
|
|
|
12913
12913
|
value: function(r) {
|
|
12914
12914
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
12915
12915
|
if (r) {
|
|
12916
|
-
var a = YA(r), i = qe(a, 1), s = qe(i[0], 6), u = s[0], l = s[1], d = s[2], p = s[3], h = s[4], f = s[5], g = { id:
|
|
12916
|
+
var a = YA(r), i = qe(a, 1), s = qe(i[0], 6), u = s[0], l = s[1], d = s[2], p = s[3], h = s[4], f = s[5], g = { id: ho(), name: h, peerId: l, userId: d, customParticipantId: p, transcript: f, isPartialTranscript: n, date: new Date(parseInt(u, 10) * 1e3) };
|
|
12917
12917
|
return g;
|
|
12918
12918
|
}
|
|
12919
12919
|
}
|
|
@@ -13097,7 +13097,7 @@ var Do = {}, Va = {
|
|
|
13097
13097
|
}, i;
|
|
13098
13098
|
};
|
|
13099
13099
|
}
|
|
13100
|
-
}, tI = Object.defineProperty, nI = Object.getOwnPropertyDescriptor,
|
|
13100
|
+
}, tI = Object.defineProperty, nI = Object.getOwnPropertyDescriptor, Hs = function(t, e, r, n) {
|
|
13101
13101
|
for (var a = n > 1 ? void 0 : n ? nI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
13102
13102
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
13103
13103
|
return n && a && tI(e, r, a), a;
|
|
@@ -13432,13 +13432,13 @@ function hd() {
|
|
|
13432
13432
|
}, o, this);
|
|
13433
13433
|
})), hd.apply(this, arguments);
|
|
13434
13434
|
}
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13435
|
+
Hs([$.trace("Stage.getStageRequests")], Ei.prototype, "getAccessRequests", 1);
|
|
13436
|
+
Hs([$.trace("Stage.requestAccess")], Ei.prototype, "requestAccess", 1);
|
|
13437
|
+
Hs([$.trace("Stage.cancelRequestAccess")], Ei.prototype, "cancelRequestAccess", 1);
|
|
13438
|
+
Hs([$.trace("Stage.grantAccess")], Ei.prototype, "grantAccess", 1);
|
|
13439
|
+
Hs([$.trace("Stage.denyAccess")], Ei.prototype, "denyAccess", 1);
|
|
13440
|
+
Hs([Va.executeWithLock({ methodName: "joinStage", lockName: "Stage.join", timeout: 5e3 }), $.trace("Stage.joinStage")], Ei.prototype, "join", 1);
|
|
13441
|
+
Hs([$.trace("Stage.leaveStage")], Ei.prototype, "leave", 1);
|
|
13442
13442
|
function sI(o) {
|
|
13443
13443
|
return !(o.viewType === "LIVESTREAM" || o.viewType === "CHAT");
|
|
13444
13444
|
}
|
|
@@ -14361,7 +14361,7 @@ var Vo = /* @__PURE__ */ E("context"), mI = /* @__PURE__ */ function() {
|
|
|
14361
14361
|
for (var a = n > 1 ? void 0 : n ? kI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
14362
14362
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
14363
14363
|
return n && a && yI(e, r, a), a;
|
|
14364
|
-
},
|
|
14364
|
+
}, Ns = (pi = /* @__PURE__ */ E("self"), Qa = /* @__PURE__ */ E("context"), Ya = /* @__PURE__ */ E("update"), /* @__PURE__ */ function(o) {
|
|
14365
14365
|
function t(e, r) {
|
|
14366
14366
|
var n;
|
|
14367
14367
|
P(this, t);
|
|
@@ -14541,18 +14541,18 @@ function gd() {
|
|
|
14541
14541
|
}, o, this);
|
|
14542
14542
|
})), gd.apply(this, arguments);
|
|
14543
14543
|
}
|
|
14544
|
-
Ju([$.trace("Recording.start")],
|
|
14545
|
-
Ju([$.trace("Recording.stop")],
|
|
14546
|
-
Ju([$.trace("Recording.stop")],
|
|
14547
|
-
Ju([$.trace("Recording.stop")],
|
|
14548
|
-
|
|
14544
|
+
Ju([$.trace("Recording.start")], Ns.prototype, "start", 1);
|
|
14545
|
+
Ju([$.trace("Recording.stop")], Ns.prototype, "stop", 1);
|
|
14546
|
+
Ju([$.trace("Recording.stop")], Ns.prototype, "pause", 1);
|
|
14547
|
+
Ju([$.trace("Recording.stop")], Ns.prototype, "resume", 1);
|
|
14548
|
+
Ns = Ju([ct("1000")], Ns);
|
|
14549
14549
|
var TI = Object.defineProperty, wI = Object.getOwnPropertyDescriptor, PI = function(t, e, r, n) {
|
|
14550
14550
|
for (var a = n > 1 ? void 0 : n ? wI(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
14551
14551
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
14552
14552
|
return n && a && TI(e, r, a), a;
|
|
14553
14553
|
}, Xn = /* @__PURE__ */ E("context"), rg = /* @__PURE__ */ function() {
|
|
14554
14554
|
function o(t, e, r) {
|
|
14555
|
-
P(this, o), this.recording = void 0, this.room = void 0, Object.defineProperty(this, Xn, { writable: !0, value: void 0 }), c(this, Xn)[Xn] = t, this.recording = new
|
|
14555
|
+
P(this, o), this.recording = void 0, this.room = void 0, Object.defineProperty(this, Xn, { writable: !0, value: void 0 }), c(this, Xn)[Xn] = t, this.recording = new Ns(t, e), this.room = r, this.setupEvents();
|
|
14556
14556
|
}
|
|
14557
14557
|
return S(o, [{
|
|
14558
14558
|
key: "telemetry",
|
|
@@ -15503,7 +15503,7 @@ var ea = /* @__PURE__ */ E("middlewareWebWorkerInterval"), jo = /* @__PURE__ */
|
|
|
15503
15503
|
}), u[p][1];
|
|
15504
15504
|
}, Rr = /* @__PURE__ */ function(o) {
|
|
15505
15505
|
return o.WEBCAM = "webcam", o.WEBCAM_BACKUP = "webcam_backup", o.MIC = "mic", o.SCREENSHARE_VIDEO = "screenshare_video", o.SCREENSHARE_AUDIO = "screenshare_audio", o;
|
|
15506
|
-
}(Rr || {}), LI = aP(),
|
|
15506
|
+
}(Rr || {}), LI = aP(), to = Jn(LI.config.media);
|
|
15507
15507
|
function NI(o) {
|
|
15508
15508
|
var t = {};
|
|
15509
15509
|
if (o.audio) {
|
|
@@ -17362,7 +17362,7 @@ var iM = Ku, Xv = Jn(bp()), ur = /* @__PURE__ */ E("config"), na = /* @__PURE__
|
|
|
17362
17362
|
return (e = (r = c(this, ur)[ur]) === null || r === void 0 || (r = r.media) === null || r === void 0 || (r = r.video) === null || r === void 0 ? void 0 : r.simulcast) !== null && e !== void 0 ? e : !1;
|
|
17363
17363
|
} }, { key: "mediaConstraints", get: function() {
|
|
17364
17364
|
var e, r, n, a, i, s, u, l, d, p, h, f;
|
|
17365
|
-
return { audio: { enableStereo: (e = (r = c(this, ur)[ur]) === null || r === void 0 || (r = r.media) === null || r === void 0 || (r = r.audio) === null || r === void 0 ? void 0 : r.enableStereo) !== null && e !== void 0 ? e :
|
|
17365
|
+
return { audio: { enableStereo: (e = (r = c(this, ur)[ur]) === null || r === void 0 || (r = r.media) === null || r === void 0 || (r = r.audio) === null || r === void 0 ? void 0 : r.enableStereo) !== null && e !== void 0 ? e : to.audio.enableStereo, enableHighBitrate: (n = (a = c(this, ur)[ur]) === null || a === void 0 || (a = a.media) === null || a === void 0 || (a = a.audio) === null || a === void 0 ? void 0 : a.enableHighBitrate) !== null && n !== void 0 ? n : to.audio.enableHighBitrate }, video: { quality: (i = (s = c(this, ur)[ur]) === null || s === void 0 || (s = s.media) === null || s === void 0 || (s = s.video) === null || s === void 0 ? void 0 : s.quality) !== null && i !== void 0 ? i : to.video.quality, frameRate: (u = (l = c(this, ur)[ur]) === null || l === void 0 || (l = l.media) === null || l === void 0 || (l = l.video) === null || l === void 0 ? void 0 : l.frameRate) !== null && u !== void 0 ? u : to.video.frameRate }, screenshare: { quality: (d = (p = c(this, ur)[ur]) === null || p === void 0 || (p = p.media) === null || p === void 0 || (p = p.screenshare) === null || p === void 0 ? void 0 : p.quality) !== null && d !== void 0 ? d : to.screenshare.quality, frameRate: (h = (f = c(this, ur)[ur]) === null || f === void 0 || (f = f.media) === null || f === void 0 || (f = f.screenshare) === null || f === void 0 ? void 0 : f.frameRate) !== null && h !== void 0 ? h : to.screenshare.frameRate } };
|
|
17366
17366
|
} }, { key: "name", get: function() {
|
|
17367
17367
|
return c(this, Bo)[Bo];
|
|
17368
17368
|
} }], [{
|
|
@@ -17967,12 +17967,12 @@ var yM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Eo = funct
|
|
|
17967
17967
|
for (var a = n > 1 ? void 0 : n ? kM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
17968
17968
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
17969
17969
|
return n && a && yM(e, r, a), a;
|
|
17970
|
-
}, bM = 0.8, TM = 1.2, Da = (Xa = /* @__PURE__ */ E("isPinned"), xa = /* @__PURE__ */ E("stageStatus"), Mr = /* @__PURE__ */ E("context"), jn = /* @__PURE__ */ E("roomNodeClient"), cn = /* @__PURE__ */ E("audioPlayback"), Fn = /* @__PURE__ */ E("mediaJoined"), Xu = /* @__PURE__ */ E("socketJoined"), wt = /* @__PURE__ */ E("self"),
|
|
17970
|
+
}, bM = 0.8, TM = 1.2, Da = (Xa = /* @__PURE__ */ E("isPinned"), xa = /* @__PURE__ */ E("stageStatus"), Mr = /* @__PURE__ */ E("context"), jn = /* @__PURE__ */ E("roomNodeClient"), cn = /* @__PURE__ */ E("audioPlayback"), Fn = /* @__PURE__ */ E("mediaJoined"), Xu = /* @__PURE__ */ E("socketJoined"), wt = /* @__PURE__ */ E("self"), Qs = /* @__PURE__ */ E("roomSocketHandler"), nn = /* @__PURE__ */ E("videoElements"), Hn = /* @__PURE__ */ E("pip"), Pt = /* @__PURE__ */ E("maxSpatialLayer"), xu = /* @__PURE__ */ E("videoDimensionsUpdated"), Ys = /* @__PURE__ */ E("updateVideos"), ec = /* @__PURE__ */ E("updateAudio"), rc = /* @__PURE__ */ E("updateScreenShare"), /* @__PURE__ */ function(o) {
|
|
17971
17971
|
function t(e, r, n, a) {
|
|
17972
17972
|
var i;
|
|
17973
17973
|
P(this, t);
|
|
17974
17974
|
var s = e.getValue("logger");
|
|
17975
|
-
i = C(this, t, [s]), Object.defineProperty(i, rc, { value: IM }), Object.defineProperty(i, ec, { value: AM }), Object.defineProperty(i,
|
|
17975
|
+
i = C(this, t, [s]), Object.defineProperty(i, rc, { value: IM }), Object.defineProperty(i, ec, { value: AM }), Object.defineProperty(i, Ys, { value: RM }), Object.defineProperty(i, Hn, { get: CM, set: void 0 }), Object.defineProperty(i, Xu, { get: EM, set: void 0 }), Object.defineProperty(i, Fn, { get: SM, set: void 0 }), Object.defineProperty(i, cn, { get: PM, set: void 0 }), Object.defineProperty(i, jn, { get: wM, set: void 0 }), i.id = void 0, i.userId = void 0, i.name = void 0, i.picture = void 0, i.isHost = void 0, i.customParticipantId = void 0, i.flags = void 0, i.device = void 0, i.videoTrack = void 0, i.audioTrack = void 0, i.screenShareTracks = void 0, i.videoEnabled = void 0, i.audioEnabled = void 0, i.screenShareEnabled = void 0, i.producers = void 0, i.manualProducerConfig = void 0, Object.defineProperty(i, Xa, { writable: !0, value: void 0 }), i.supportsRemoteControl = !1, Object.defineProperty(i, xa, { writable: !0, value: void 0 }), i.presetName = void 0, Object.defineProperty(i, Mr, { writable: !0, value: void 0 }), Object.defineProperty(i, wt, { writable: !0, value: void 0 }), Object.defineProperty(i, Qs, { writable: !0, value: void 0 }), Object.defineProperty(i, nn, { writable: !0, value: /* @__PURE__ */ new Map() }), Object.defineProperty(i, Pt, { writable: !0, value: 1 }), Object.defineProperty(i, xu, { writable: !0, value: kp(function(B) {
|
|
17976
17976
|
if (i.videoTrack) {
|
|
17977
17977
|
var U = B.clientWidth, L = B.clientHeight, N = i.videoTrack.getSettings(), Y = N.width, G = N.height;
|
|
17978
17978
|
if (!(!Y || !G)) {
|
|
@@ -17982,7 +17982,7 @@ var yM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Eo = funct
|
|
|
17982
17982
|
}
|
|
17983
17983
|
}, 2e3) }), c(i, Mr)[Mr] = e;
|
|
17984
17984
|
var u = r.id, l = r.userId, d = r.displayName, p = r.device, h = r.picture, f = r.isHost, g = r.flags, b = r.clientSpecificId, y = r.stageStatus, k = r.customParticipantId, T = r.audioMuted, w = r.audioTrack, A = r.videoEnabled, M = A === void 0 ? !1 : A, O = r.videoTrack, I = r.producers, D = r.metadata;
|
|
17985
|
-
return i.id = u, i.userId = l, i.name = d, i.device = p, i.picture = h, i.isHost = f, i.flags = g, i.manualProducerConfig = Nw, c(i, xa)[xa] = y != null ? y : "ON_STAGE", i.customParticipantId = k != null ? k : b, i.audioEnabled = !T, i.audioTrack = w, i.videoEnabled = M, i.videoTrack = O, i.screenShareTracks = { audio: void 0, video: void 0 }, i.producers = I != null ? I : [], i.presetName = D == null ? void 0 : D.preset_name, c(i, Xa)[Xa] = !1, c(i, wt)[wt] = n, c(i,
|
|
17985
|
+
return i.id = u, i.userId = l, i.name = d, i.device = p, i.picture = h, i.isHost = f, i.flags = g, i.manualProducerConfig = Nw, c(i, xa)[xa] = y != null ? y : "ON_STAGE", i.customParticipantId = k != null ? k : b, i.audioEnabled = !T, i.audioTrack = w, i.videoEnabled = M, i.videoTrack = O, i.screenShareTracks = { audio: void 0, video: void 0 }, i.producers = I != null ? I : [], i.presetName = D == null ? void 0 : D.preset_name, c(i, Xa)[Xa] = !1, c(i, wt)[wt] = n, c(i, Qs)[Qs] = a, i.setupEvents(), i.updateVideo = i.updateVideo.bind(i), c(i, Ys)[Ys](), i;
|
|
17986
17986
|
}
|
|
17987
17987
|
return R(t, o), S(t, [{ key: "clientSpecificId", get: (
|
|
17988
17988
|
/**
|
|
@@ -18031,7 +18031,7 @@ var yM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Eo = funct
|
|
|
18031
18031
|
} }, {
|
|
18032
18032
|
key: "setupEvents",
|
|
18033
18033
|
value: function() {
|
|
18034
|
-
this.on("videoUpdate", c(this,
|
|
18034
|
+
this.on("videoUpdate", c(this, Ys)[Ys]), c(this, cn)[cn] && (this.on("audioUpdate", c(this, ec)[ec]), this.on("screenShareUpdate", c(this, rc)[rc]));
|
|
18035
18035
|
}
|
|
18036
18036
|
/**
|
|
18037
18037
|
* Returns `participant.id` if user has permission
|
|
@@ -18200,7 +18200,7 @@ var yM = Object.defineProperty, kM = Object.getOwnPropertyDescriptor, Eo = funct
|
|
|
18200
18200
|
for (; ; )
|
|
18201
18201
|
switch (i.prev = i.next) {
|
|
18202
18202
|
case 0:
|
|
18203
|
-
return i.abrupt("return", c(this,
|
|
18203
|
+
return i.abrupt("return", c(this, Qs)[Qs].getUserPermissions(this.userId));
|
|
18204
18204
|
case 1:
|
|
18205
18205
|
case "end":
|
|
18206
18206
|
return i.stop();
|
|
@@ -18424,12 +18424,12 @@ var Go = /* @__PURE__ */ function(o) {
|
|
|
18424
18424
|
for (var a = n > 1 ? void 0 : n ? $M(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
18425
18425
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
18426
18426
|
return n && a && DM(e, r, a), a;
|
|
18427
|
-
}, LM = ["ACTIVE_GRID", "PAGINATED", "MANUAL"], yt = (be = /* @__PURE__ */ E("context"),
|
|
18427
|
+
}, LM = ["ACTIVE_GRID", "PAGINATED", "MANUAL"], yt = (be = /* @__PURE__ */ E("context"), Zs = /* @__PURE__ */ E("roomNodeClient"), Bn = /* @__PURE__ */ E("socketJoined"), ei = /* @__PURE__ */ E("mediaJoined"), qn = /* @__PURE__ */ E("self"), mr = /* @__PURE__ */ E("roomSocketHandler"), /* @__PURE__ */ function(o) {
|
|
18428
18428
|
function t(e, r, n) {
|
|
18429
18429
|
var a;
|
|
18430
18430
|
P(this, t);
|
|
18431
18431
|
var i = e.getValue("logger");
|
|
18432
|
-
return a = C(this, t, [i]), Object.defineProperty(a, ei, { get: UM, set: void 0 }), Object.defineProperty(a, Bn, { get: VM, set: void 0 }), Object.defineProperty(a,
|
|
18432
|
+
return a = C(this, t, [i]), Object.defineProperty(a, ei, { get: UM, set: void 0 }), Object.defineProperty(a, Bn, { get: VM, set: void 0 }), Object.defineProperty(a, Zs, { get: NM, set: void 0 }), a.waitlisted = void 0, a.joined = void 0, a.active = void 0, a.videoSubscribed = void 0, a.audioSubscribed = void 0, a.pinned = void 0, a.all = void 0, Object.defineProperty(a, be, { writable: !0, value: void 0 }), Object.defineProperty(a, qn, { writable: !0, value: void 0 }), Object.defineProperty(a, mr, { writable: !0, value: void 0 }), a.rateLimitConfig = { maxInvocations: 5, period: 1 }, a.viewMode = void 0, a.currentPage = void 0, a.lastActiveSpeaker = void 0, a.selectedPeers = og, c(a, be)[be] = e, c(a, qn)[qn] = r, c(a, mr)[mr] = n, a.waitlisted = new Go(i), a.joined = new Go(i), a.videoSubscribed = new Go(i), a.audioSubscribed = new Go(i), a.active = a.videoSubscribed, a.pinned = new Go(i), a.all = new MM(i), a.viewMode = "ACTIVE_GRID", a.currentPage = 0, a.setupEvents(), a;
|
|
18433
18433
|
}
|
|
18434
18434
|
return R(t, o), S(t, [{ key: "pip", get: (
|
|
18435
18435
|
/**
|
|
@@ -18726,7 +18726,7 @@ var Go = /* @__PURE__ */ function(o) {
|
|
|
18726
18726
|
s.next = 5;
|
|
18727
18727
|
break;
|
|
18728
18728
|
}
|
|
18729
|
-
return s.abrupt("return", c(this,
|
|
18729
|
+
return s.abrupt("return", c(this, Zs)[Zs].muteAll(a));
|
|
18730
18730
|
case 5:
|
|
18731
18731
|
throw this.logger.error("Participants::unauthorized_disable_all_audio", { actions: { disableAllAudio: { allowUnmute: a } } }), new H("Unauthorized: User does not have permission to disable peer audio.", "1201");
|
|
18732
18732
|
case 7:
|
|
@@ -18755,7 +18755,7 @@ var Go = /* @__PURE__ */ function(o) {
|
|
|
18755
18755
|
i.next = 5;
|
|
18756
18756
|
break;
|
|
18757
18757
|
}
|
|
18758
|
-
return i.abrupt("return", c(this,
|
|
18758
|
+
return i.abrupt("return", c(this, Zs)[Zs].muteAllVideo());
|
|
18759
18759
|
case 5:
|
|
18760
18760
|
throw this.logger.error("Participants::unauthorized_disable_all_video"), new H("Unauthorized: User does not have permission to disable peer video.", "1201");
|
|
18761
18761
|
case 7:
|
|
@@ -19000,7 +19000,7 @@ Xt([$.trace("Participants.getAllJoinedPeers"), Et({ maxInvocations: 10, period:
|
|
|
19000
19000
|
Xt([$.trace("Participant.updatePermissions"), Et({ maxInvocations: 1e3, period: 60 })], yt.prototype, "updatePermissions", 1);
|
|
19001
19001
|
Xt([$.trace("Participants.getParticipantsInMeetingPreJoin")], yt.prototype, "getParticipantsInMeetingPreJoin", 1);
|
|
19002
19002
|
yt = Xt([ct("1200")], yt);
|
|
19003
|
-
var jM = Object.defineProperty, FM = Object.getOwnPropertyDescriptor,
|
|
19003
|
+
var jM = Object.defineProperty, FM = Object.getOwnPropertyDescriptor, Bs = function(t, e, r, n) {
|
|
19004
19004
|
for (var a = n > 1 ? void 0 : n ? FM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
19005
19005
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
19006
19006
|
return n && a && jM(e, r, a), a;
|
|
@@ -19765,13 +19765,13 @@ var jM = Object.defineProperty, FM = Object.getOwnPropertyDescriptor, qs = funct
|
|
|
19765
19765
|
}
|
|
19766
19766
|
} }]);
|
|
19767
19767
|
}()), Ua = ug;
|
|
19768
|
-
|
|
19769
|
-
|
|
19770
|
-
|
|
19771
|
-
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
|
|
19768
|
+
Bs([$.trace("ParticipantController.setupEvents")], Ua.prototype, "setupEvents", 1);
|
|
19769
|
+
Bs([$.trace("ParticipantController.setupEvents")], Ua.prototype, "setupEventsGlobal", 1);
|
|
19770
|
+
Bs([$.trace("ParticipantController.processMedia")], Ua.prototype, "processMedia", 1);
|
|
19771
|
+
Bs([$.trace("ParticipantController.processConsumerClosed")], Ua.prototype, "processConsumerClosed", 1);
|
|
19772
|
+
Bs([$.trace("ParticipantController.processConsumerResumed")], Ua.prototype, "processConsumerResumed", 1);
|
|
19773
|
+
Bs([$.trace("ParticipantController.processConsumerPaused")], Ua.prototype, "processConsumerPaused", 1);
|
|
19774
|
+
Bs([$.trace("ParticipantController.processNewConsumer")], Ua.prototype, "processNewConsumer", 1);
|
|
19775
19775
|
var cr = Jn(bp().permissions), q = /* @__PURE__ */ E("permissions"), cs = /* @__PURE__ */ E("viewType"), Ts = /* @__PURE__ */ E("context"), Al = /* @__PURE__ */ E("updatePermission"), lr = /* @__PURE__ */ E("stageStatus"), HM = /* @__PURE__ */ function(o) {
|
|
19776
19776
|
function t(e, r, n) {
|
|
19777
19777
|
var a, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
@@ -20866,12 +20866,12 @@ var Lr = /* @__PURE__ */ E("context"), cg = /* @__PURE__ */ function(o) {
|
|
|
20866
20866
|
for (var a = n > 1 ? void 0 : n ? GM(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
20867
20867
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
20868
20868
|
return n && a && qM(e, r, a), a;
|
|
20869
|
-
}, rt = (ti = /* @__PURE__ */ E("config"), nr = /* @__PURE__ */ E("permissions"), ni = /* @__PURE__ */ E("isPinned"), je = /* @__PURE__ */ E("context"), St = /* @__PURE__ */ E("pip"), Ue = /* @__PURE__ */ E("roomNodeClient"), ai = /* @__PURE__ */ E("audioPlayback"), Ee = /* @__PURE__ */ E("mediaJoined"), vi = /* @__PURE__ */ E("previewVideoElements"), hi = /* @__PURE__ */ E("videoElements"),
|
|
20869
|
+
}, rt = (ti = /* @__PURE__ */ E("config"), nr = /* @__PURE__ */ E("permissions"), ni = /* @__PURE__ */ E("isPinned"), je = /* @__PURE__ */ E("context"), St = /* @__PURE__ */ E("pip"), Ue = /* @__PURE__ */ E("roomNodeClient"), ai = /* @__PURE__ */ E("audioPlayback"), Ee = /* @__PURE__ */ E("mediaJoined"), vi = /* @__PURE__ */ E("previewVideoElements"), hi = /* @__PURE__ */ E("videoElements"), Xs = /* @__PURE__ */ E("updateVideos"), /* @__PURE__ */ function(o) {
|
|
20870
20870
|
function t(e, r, n, a, i) {
|
|
20871
20871
|
var s, u;
|
|
20872
20872
|
P(this, t);
|
|
20873
20873
|
var l = e.getValue("logger");
|
|
20874
|
-
return u = C(this, t, [e, l]), Object.defineProperty(u,
|
|
20874
|
+
return u = C(this, t, [e, l]), Object.defineProperty(u, Xs, { value: QM }), Object.defineProperty(u, Ee, { get: zM, set: void 0 }), Object.defineProperty(u, ai, { get: KM, set: void 0 }), Object.defineProperty(u, Ue, { get: JM, set: void 0 }), Object.defineProperty(u, St, { get: WM, set: void 0 }), u.name = void 0, u.picture = void 0, u.customParticipantId = void 0, u.waitlistStatus = void 0, Object.defineProperty(u, ti, { writable: !0, value: void 0 }), Object.defineProperty(u, nr, { writable: !0, value: void 0 }), Object.defineProperty(u, ni, { writable: !0, value: void 0 }), u.role = void 0, u.userId = void 0, u.organizationId = void 0, u.supportsRemoteControl = !1, u.device = void 0, Object.defineProperty(u, je, { writable: !0, value: void 0 }), u.hidden = !1, u.presetName = void 0, u.roomState = "init", Object.defineProperty(u, vi, { writable: !0, value: /* @__PURE__ */ new Set() }), Object.defineProperty(u, hi, { writable: !0, value: /* @__PURE__ */ new Set() }), c(u, je)[je] = e, u.userId = r.id, u.name = r.name, u.picture = r.picture, u.customParticipantId = (s = r.customParticipantId) !== null && s !== void 0 ? s : r.clientSpecificId, u.waitlistStatus = "none", c(u, nr)[nr] = n, c(u, ti)[ti] = a, u.hidden = !1, c(u, ni)[ni] = !1, u.organizationId = r.organizationId, u.supportsRemoteControl = gr.isElectron(), u.device = gr.getDeviceInfo(), u.presetName = i, u.updatePermission(), u.updateVideo = u.updateVideo.bind(u), c(u, Xs)[Xs](), u;
|
|
20875
20875
|
}
|
|
20876
20876
|
return R(t, o), S(t, [{ key: "telemetry", get: (
|
|
20877
20877
|
/**
|
|
@@ -20902,7 +20902,7 @@ var Lr = /* @__PURE__ */ E("context"), cg = /* @__PURE__ */ function(o) {
|
|
|
20902
20902
|
key: "setupEvents",
|
|
20903
20903
|
value: function() {
|
|
20904
20904
|
var r = this;
|
|
20905
|
-
this.on("videoUpdate", c(this,
|
|
20905
|
+
this.on("videoUpdate", c(this, Xs)[Xs]);
|
|
20906
20906
|
var n = c(this, ai)[ai];
|
|
20907
20907
|
n && n.onError(function(a) {
|
|
20908
20908
|
r.emit("autoplayError", a);
|
|
@@ -23407,7 +23407,7 @@ var yn = /* @__PURE__ */ E("datachannelCache"), Dl = /* @__PURE__ */ E("context"
|
|
|
23407
23407
|
var g = f * d, b = (f + 1) * d;
|
|
23408
23408
|
h.push(u.slice(g, b));
|
|
23409
23409
|
}
|
|
23410
|
-
for (var y =
|
|
23410
|
+
for (var y = ho(), k = 0; k < p; k += 1) {
|
|
23411
23411
|
var T = h[k], w = { id: y, count: p, chunkIndex: k, chunk: T }, A = JSON.stringify(w);
|
|
23412
23412
|
c(i, sa)[sa].debug("Sending message chunk over dc: ".concat(A)), i.channel.send(A);
|
|
23413
23413
|
}
|
|
@@ -24171,13 +24171,13 @@ var Ut = /* @__PURE__ */ E("context"), ua = /* @__PURE__ */ E("logger"), m_ = /*
|
|
|
24171
24171
|
}
|
|
24172
24172
|
}
|
|
24173
24173
|
return S(o, [{ key: "createTransport", value: function(e) {
|
|
24174
|
-
var r =
|
|
24174
|
+
var r = ho(), n = new f_(c(this, Ut)[Ut], V(V({ id: r }, e), {}, { handlerFactory: this.handlerFactory }));
|
|
24175
24175
|
return n;
|
|
24176
24176
|
} }]);
|
|
24177
|
-
}(), y_ = 2e3, Ds = /* @__PURE__ */ E("device"), rr = /* @__PURE__ */ E("sendTransport"), tr = /* @__PURE__ */ E("recvTransport"), zo = /* @__PURE__ */ E("sendTransportConnectedCallback"), Qo = /* @__PURE__ */ E("recvTransportConnectedCallback"), Ra = /* @__PURE__ */ E("socket"), ws = /* @__PURE__ */ E("socketHandler"), Yo = /* @__PURE__ */ E("events"),
|
|
24177
|
+
}(), y_ = 2e3, Ds = /* @__PURE__ */ E("device"), rr = /* @__PURE__ */ E("sendTransport"), tr = /* @__PURE__ */ E("recvTransport"), zo = /* @__PURE__ */ E("sendTransportConnectedCallback"), Qo = /* @__PURE__ */ E("recvTransportConnectedCallback"), Ra = /* @__PURE__ */ E("socket"), ws = /* @__PURE__ */ E("socketHandler"), Yo = /* @__PURE__ */ E("events"), Vs = /* @__PURE__ */ E("metrics"), Ea = /* @__PURE__ */ E("transportDisconnectedTimer"), gt = /* @__PURE__ */ E("iceTransportPolicy"), As = /* @__PURE__ */ E("connectionHandler"), Zo = /* @__PURE__ */ E("reset"), $l = /* @__PURE__ */ E("createTransports"), Xo = /* @__PURE__ */ E("connectTransportWithRetry"), wd = /* @__PURE__ */ E("connectTransport"), Pd = /* @__PURE__ */ E("createSendTransport"), Sd = /* @__PURE__ */ E("createRecvTransport"), Ed = /* @__PURE__ */ E("setTransportEventHandlers"), Cd = /* @__PURE__ */ E("transportConnectionRequest"), du = /* @__PURE__ */ E("reconnectTransport"), Vu = /* @__PURE__ */ E("updateTransportState"), k_ = /* @__PURE__ */ function(o) {
|
|
24178
24178
|
function t(e, r) {
|
|
24179
24179
|
var n;
|
|
24180
|
-
P(this, t), n = C(this, t), Object.defineProperty(n, Vu, { value: M_ }), Object.defineProperty(n, du, { value: I_ }), Object.defineProperty(n, Cd, { value: A_ }), Object.defineProperty(n, Ed, { value: R_ }), Object.defineProperty(n, Sd, { value: C_ }), Object.defineProperty(n, Pd, { value: E_ }), Object.defineProperty(n, wd, { value: S_ }), Object.defineProperty(n, Xo, { value: P_ }), Object.defineProperty(n, $l, { value: w_ }), Object.defineProperty(n, Zo, { value: T_ }), Object.defineProperty(n, As, { get: b_, set: void 0 }), n.context = void 0, Object.defineProperty(n, Ds, { writable: !0, value: void 0 }), Object.defineProperty(n, rr, { writable: !0, value: void 0 }), Object.defineProperty(n, tr, { writable: !0, value: void 0 }), Object.defineProperty(n, zo, { writable: !0, value: void 0 }), Object.defineProperty(n, Qo, { writable: !0, value: void 0 }), Object.defineProperty(n, Ra, { writable: !0, value: void 0 }), Object.defineProperty(n, ws, { writable: !0, value: void 0 }), Object.defineProperty(n, Yo, { writable: !0, value: void 0 }), Object.defineProperty(n,
|
|
24180
|
+
P(this, t), n = C(this, t), Object.defineProperty(n, Vu, { value: M_ }), Object.defineProperty(n, du, { value: I_ }), Object.defineProperty(n, Cd, { value: A_ }), Object.defineProperty(n, Ed, { value: R_ }), Object.defineProperty(n, Sd, { value: C_ }), Object.defineProperty(n, Pd, { value: E_ }), Object.defineProperty(n, wd, { value: S_ }), Object.defineProperty(n, Xo, { value: P_ }), Object.defineProperty(n, $l, { value: w_ }), Object.defineProperty(n, Zo, { value: T_ }), Object.defineProperty(n, As, { get: b_, set: void 0 }), n.context = void 0, Object.defineProperty(n, Ds, { writable: !0, value: void 0 }), Object.defineProperty(n, rr, { writable: !0, value: void 0 }), Object.defineProperty(n, tr, { writable: !0, value: void 0 }), Object.defineProperty(n, zo, { writable: !0, value: void 0 }), Object.defineProperty(n, Qo, { writable: !0, value: void 0 }), Object.defineProperty(n, Ra, { writable: !0, value: void 0 }), Object.defineProperty(n, ws, { writable: !0, value: void 0 }), Object.defineProperty(n, Yo, { writable: !0, value: void 0 }), Object.defineProperty(n, Vs, { writable: !0, value: { transportFailureCount: { send: 0, recv: 0 }, lastConnectionTime: 0 } }), Object.defineProperty(n, Ea, { writable: !0, value: void 0 }), Object.defineProperty(n, gt, { writable: !0, value: "all" }), n.context = e, c(n, Ra)[Ra] = r, c(n, Ds)[Ds] = new m_(e), c(n, ws)[ws] = new t_(r), c(n, Yo)[Yo] = Cn, c(n, As)[As].mediaState = { send: { state: bo.NEW }, recv: { state: bo.NEW } };
|
|
24181
24181
|
var a = yo(n.context, "forceRelay");
|
|
24182
24182
|
return a && (c(n, gt)[gt] = "relay"), n.logger.info("ICE Transport Policy initially set to ".concat(c(n, gt)[gt])), c(n, Zo)[Zo](), n;
|
|
24183
24183
|
}
|
|
@@ -24378,7 +24378,7 @@ function Id() {
|
|
|
24378
24378
|
this.logger.info("Connected ".concat(n, " transport"), { transport: { id: r, serverId: t.serverId, type: n } }), i.next = 18;
|
|
24379
24379
|
break;
|
|
24380
24380
|
case 12:
|
|
24381
|
-
if (i.prev = 12, i.t0 = i.catch(6), c(this,
|
|
24381
|
+
if (i.prev = 12, i.t0 = i.catch(6), c(this, Vs)[Vs].transportFailureCount[n] += 1, i.t0.message !== "ice connection failed") {
|
|
24382
24382
|
i.next = 17;
|
|
24383
24383
|
break;
|
|
24384
24384
|
}
|
|
@@ -24423,7 +24423,7 @@ function R_(o) {
|
|
|
24423
24423
|
}, l.t0 = i, l.next = l.t0 === "connected" ? 6 : l.t0 === "disconnected" ? 9 : l.t0 === "failed" ? 11 : 18;
|
|
24424
24424
|
break;
|
|
24425
24425
|
case 6:
|
|
24426
|
-
return s(), c(t,
|
|
24426
|
+
return s(), c(t, Vs)[Vs].lastConnectionTime = performance.now(), l.abrupt("break", 18);
|
|
24427
24427
|
case 9:
|
|
24428
24428
|
return c(t, Ea)[Ea][e] = setTimeout(/* @__PURE__ */ m(/* @__PURE__ */ v().mark(function d() {
|
|
24429
24429
|
return v().wrap(function(h) {
|
|
@@ -24536,7 +24536,7 @@ function _d() {
|
|
|
24536
24536
|
for (; ; )
|
|
24537
24537
|
switch (r.prev = r.next) {
|
|
24538
24538
|
case 0:
|
|
24539
|
-
return this.logger.info("Called reconnect transport", { transport: { type: t } }), this.stopTransports({ [t]: !0 }), c(this, Ra)[Ra].isConnected && c(this,
|
|
24539
|
+
return this.logger.info("Called reconnect transport", { transport: { type: t } }), this.stopTransports({ [t]: !0 }), c(this, Ra)[Ra].isConnected && c(this, Vs)[Vs].transportFailureCount[t] > 2 && (this.logger.warn("Multiple disconnections in ".concat(t, " transport, forcing relay")), c(this, gt)[gt] = "relay"), r.next = 5, this.setupTransports({ [t]: !0 });
|
|
24540
24540
|
case 5:
|
|
24541
24541
|
r.t0 = t, r.next = r.t0 === "send" ? 8 : r.t0 === "recv" ? 11 : 14;
|
|
24542
24542
|
break;
|
|
@@ -26408,7 +26408,7 @@ function vg(o) {
|
|
|
26408
26408
|
}
|
|
26409
26409
|
o.setValue("roomNodeClient", void 0);
|
|
26410
26410
|
}
|
|
26411
|
-
var lO = Object.defineProperty, dO = Object.getOwnPropertyDescriptor,
|
|
26411
|
+
var lO = Object.defineProperty, dO = Object.getOwnPropertyDescriptor, qs = function(t, e, r, n) {
|
|
26412
26412
|
for (var a = n > 1 ? void 0 : n ? dO(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
26413
26413
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
26414
26414
|
return n && a && lO(e, r, a), a;
|
|
@@ -26579,7 +26579,7 @@ var lO = Object.defineProperty, dO = Object.getOwnPropertyDescriptor, Gs = funct
|
|
|
26579
26579
|
var n = r.joinAttempted;
|
|
26580
26580
|
if (e.self.roomState !== "disconnected") {
|
|
26581
26581
|
var a = e.peerId;
|
|
26582
|
-
|
|
26582
|
+
c(e, Gn)[Gn].updateURL(a);
|
|
26583
26583
|
var i = c(e, X)[X].getValue("telemetry");
|
|
26584
26584
|
i.resetPeerId(a);
|
|
26585
26585
|
var s = mt();
|
|
@@ -26897,13 +26897,13 @@ function pO() {
|
|
|
26897
26897
|
return c(this, X)[X].getValue("roomNodeClient");
|
|
26898
26898
|
}
|
|
26899
26899
|
var Ci = hg;
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
26903
|
-
|
|
26904
|
-
|
|
26905
|
-
|
|
26906
|
-
|
|
26900
|
+
qs([$.trace("SelfController.resetSelf")], Ci.prototype, "resetSelf", 1);
|
|
26901
|
+
qs([$.trace("SelfController.setupEvents")], Ci.prototype, "setupEvents", 1);
|
|
26902
|
+
qs([$.trace("SelfController.joinRoom")], Ci.prototype, "joinRoom", 1);
|
|
26903
|
+
qs([$.trace("SelfController.leaveRoom")], Ci.prototype, "leaveRoom", 1);
|
|
26904
|
+
qs([$.trace("SelfController.joinMediaRoom")], Ci.prototype, "joinMediaRoom", 1);
|
|
26905
|
+
qs([$.trace("SelfController.leaveMediaRoom")], Ci.prototype, "leaveMediaRoom", 1);
|
|
26906
|
+
qs([$.trace("SelfController.init")], Ci, "init", 1);
|
|
26907
26907
|
var su = /* @__PURE__ */ E("socket"), vO = /* @__PURE__ */ function() {
|
|
26908
26908
|
function o(t) {
|
|
26909
26909
|
P(this, o), Object.defineProperty(this, su, { writable: !0, value: void 0 }), c(this, su)[su] = t;
|
|
@@ -27050,7 +27050,7 @@ var mO = Object.defineProperty, yO = Object.getOwnPropertyDescriptor, kO = funct
|
|
|
27050
27050
|
for (; ; )
|
|
27051
27051
|
switch (k.prev = k.next) {
|
|
27052
27052
|
case 0:
|
|
27053
|
-
return this.socket.joinAttempted = !0, i = { capabilities: [], peer: { displayName: (a = n.name) !== null && a !== void 0 ? a : "Participant", customParticipantId: n.customParticipantId, peerId: n.id, userId: n.userId, displayPictureUrl: n.picture, waitlisted: !1 }, roomUuid: "" }, s = this.socket.sendMessagePromise(Q.joinRoom, GE.toBinary(i)), k.prev = 3, k.t0 =
|
|
27053
|
+
return this.socket.joinAttempted = !0, i = { capabilities: [], peer: { displayName: (a = n.name) !== null && a !== void 0 ? a : "Participant", customParticipantId: n.customParticipantId, peerId: n.id, userId: n.userId, displayPictureUrl: n.picture, waitlisted: !1 }, roomUuid: "" }, s = this.socket.sendMessagePromise(Q.joinRoom, GE.toBinary(i)), k.prev = 3, k.t0 = no, k.next = 7, s;
|
|
27054
27054
|
case 7:
|
|
27055
27055
|
return k.t1 = k.sent.payload, u = k.t0.fromBinary.call(k.t0, k.t1), l = u.peer, c(this, Vr)[Vr].getValue("connectionHandler").socketJoined = !0, c(this, Vr)[Vr].getValue("peerSessionStore").emit(F.SOCKET_SERVICE_ROOM_JOINED, { peer: l }), d = this.getRoomState(), p = this.getRoomPeersNonPaginated(), k.next = 16, Promise.all([d, p]);
|
|
27056
27056
|
case 16:
|
|
@@ -27188,7 +27188,7 @@ var mO = Object.defineProperty, yO = Object.getOwnPropertyDescriptor, kO = funct
|
|
|
27188
27188
|
case 0:
|
|
27189
27189
|
return u.prev = 0, u.next = 3, this.socket.sendMessagePromise(Q.getPeerInfo, Uf.toBinary({ peerId: n }));
|
|
27190
27190
|
case 3:
|
|
27191
|
-
i = u.sent, a =
|
|
27191
|
+
i = u.sent, a = no.fromBinary(i.payload), u.next = 10;
|
|
27192
27192
|
break;
|
|
27193
27193
|
case 7:
|
|
27194
27194
|
u.prev = 7, u.t0 = u.catch(0), this.logger.error("getPeerInfo::binary_decode_error", { error: u.t0 });
|
|
@@ -27437,7 +27437,7 @@ var mO = Object.defineProperty, yO = Object.getOwnPropertyDescriptor, kO = funct
|
|
|
27437
27437
|
case Q.leaveRoom:
|
|
27438
27438
|
case Q.kick:
|
|
27439
27439
|
case Q.kickAll: {
|
|
27440
|
-
a =
|
|
27440
|
+
a = no.fromBinary.bind(no), i = no.create();
|
|
27441
27441
|
break;
|
|
27442
27442
|
}
|
|
27443
27443
|
case Q.getWaitingRoomRequests: {
|
|
@@ -27634,7 +27634,7 @@ var Pr = /* @__PURE__ */ E("socket"), bO = /* @__PURE__ */ function() {
|
|
|
27634
27634
|
case 0:
|
|
27635
27635
|
return s.next = 2, c(this, Pr)[Pr].sendMessagePromise(Q.getPeerInfo, Uf.toBinary({ peerId: n }));
|
|
27636
27636
|
case 2:
|
|
27637
|
-
return a = s.sent, s.abrupt("return",
|
|
27637
|
+
return a = s.sent, s.abrupt("return", no.fromBinary(a.payload));
|
|
27638
27638
|
case 4:
|
|
27639
27639
|
case "end":
|
|
27640
27640
|
return s.stop();
|
|
@@ -27779,10 +27779,10 @@ var Pr = /* @__PURE__ */ E("socket"), bO = /* @__PURE__ */ function() {
|
|
|
27779
27779
|
return Dc;
|
|
27780
27780
|
}, set exports(o) {
|
|
27781
27781
|
Dc = o;
|
|
27782
|
-
} },
|
|
27782
|
+
} }, po = (typeof Reflect == "undefined" ? "undefined" : me(Reflect)) == "object" ? Reflect : null, ah = po && typeof po.apply == "function" ? po.apply : function(o, t, e) {
|
|
27783
27783
|
return Function.prototype.apply.call(o, t, e);
|
|
27784
27784
|
}, mc;
|
|
27785
|
-
|
|
27785
|
+
po && typeof po.ownKeys == "function" ? mc = po.ownKeys : Object.getOwnPropertySymbols ? mc = function(t) {
|
|
27786
27786
|
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
|
|
27787
27787
|
} : mc = function(t) {
|
|
27788
27788
|
return Object.getOwnPropertyNames(t);
|
|
@@ -28097,12 +28097,12 @@ var ii = { debug: 0, info: 1, warn: 2, error: 3 }, ys, ks, LO = /* @__PURE__ */
|
|
|
28097
28097
|
ys = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap();
|
|
28098
28098
|
var Eg = /* @__PURE__ */ function(o) {
|
|
28099
28099
|
return o[o.CONNECTING = 0] = "CONNECTING", o[o.OPEN = 1] = "OPEN", o[o.CLOSING = 2] = "CLOSING", o[o.CLOSED = 3] = "CLOSED", o;
|
|
28100
|
-
}(Eg || {}), NO = "2", VO = "3", Ir,
|
|
28100
|
+
}(Eg || {}), NO = "2", VO = "3", Ir, io, kr, Ur, ci, et, Aa, mi, En, so, Pa, zd, Cg, pu, yc, Qd, Rg, Yd, oh, $c, Zd, Xd, Ag, Eu, kc, Cu, Lc, Nc, xd, vo, Ru, Au, Vc, UO = /* @__PURE__ */ function() {
|
|
28101
28101
|
function o(t, e) {
|
|
28102
28102
|
var r, n, a, i, s, u, l, d, p, h;
|
|
28103
|
-
P(this, o), vr(this, zd), vr(this, pu), vr(this, Qd), vr(this, Yd), vr(this, $c), vr(this, Xd), vr(this, Eu), vr(this, Cu), vr(this, Nc), vr(this,
|
|
28103
|
+
P(this, o), vr(this, zd), vr(this, pu), vr(this, Qd), vr(this, Yd), vr(this, $c), vr(this, Xd), vr(this, Eu), vr(this, Cu), vr(this, Nc), vr(this, vo), vr(this, Au), vr(this, Ir, void 0), vr(this, io, void 0), vr(this, kr, void 0), vr(this, Ur, void 0), vr(this, ci, void 0), vr(this, et, void 0), vr(this, Aa, void 0), vr(this, mi, void 0), vr(this, En, void 0), vr(this, so, void 0), vr(this, Pa, void 0);
|
|
28104
28104
|
var f, g, b, y, k, T, w, A, M;
|
|
28105
|
-
We(this,
|
|
28105
|
+
We(this, io, t), We(this, ci, []), We(this, et, new Dc()), We(this, Aa, !0), We(this, En, !1), We(this, kr, e != null ? e : {}), (r = (f = W(this, kr)).autoReconnect) !== null && r !== void 0 || (f.autoReconnect = !0), (n = (g = W(this, kr)).retryConnectionInterval) !== null && n !== void 0 || (g.retryConnectionInterval = 1e3), (a = (b = W(this, kr)).pingTimeout) !== null && a !== void 0 || (b.pingTimeout = 3e4), (i = (y = W(this, kr)).connectionTimeout) !== null && i !== void 0 || (y.connectionTimeout = 5e3), (s = (k = W(this, kr)).debug) !== null && s !== void 0 || (k.debug = !0), (u = (T = W(this, kr)).maxReconnectionAttempts) !== null && u !== void 0 || (T.maxReconnectionAttempts = 10), (l = (w = W(this, kr)).disconnectOnPingTimeout) !== null && l !== void 0 || (w.disconnectOnPingTimeout = !0), (d = (A = W(this, kr)).queueOnDisconnect) !== null && d !== void 0 || (A.queueOnDisconnect = !1), (p = (M = W(this, kr)).flushOnReconnect) !== null && p !== void 0 || (M.flushOnReconnect = !1), We(this, mi, { code: void 0, reason: void 0 }), We(this, Ur, (h = W(this, kr).logger) !== null && h !== void 0 ? h : new LO(W(this, kr).debug ? "debug" : "info")), We(this, Pa, new $O());
|
|
28106
28106
|
}
|
|
28107
28107
|
return S(o, [{
|
|
28108
28108
|
key: "readyState",
|
|
@@ -28116,7 +28116,7 @@ var Eg = /* @__PURE__ */ function(o) {
|
|
|
28116
28116
|
}, {
|
|
28117
28117
|
key: "url",
|
|
28118
28118
|
get: function() {
|
|
28119
|
-
return W(this,
|
|
28119
|
+
return W(this, io);
|
|
28120
28120
|
}
|
|
28121
28121
|
/**
|
|
28122
28122
|
* Update connection URL.
|
|
@@ -28124,7 +28124,7 @@ var Eg = /* @__PURE__ */ function(o) {
|
|
|
28124
28124
|
}, {
|
|
28125
28125
|
key: "updateURL",
|
|
28126
28126
|
value: function(e) {
|
|
28127
|
-
We(this,
|
|
28127
|
+
We(this, io, e), br(this, Xd, Ag).call(this);
|
|
28128
28128
|
}
|
|
28129
28129
|
/**
|
|
28130
28130
|
* Configuration options passed to Sockrates.
|
|
@@ -28179,9 +28179,9 @@ var Eg = /* @__PURE__ */ function(o) {
|
|
|
28179
28179
|
break;
|
|
28180
28180
|
}
|
|
28181
28181
|
return u.abrupt("return", new Promise(function(l, d) {
|
|
28182
|
-
br(n,
|
|
28182
|
+
br(n, vo, Ru).call(n), br(n, Au, Vc).call(n);
|
|
28183
28183
|
try {
|
|
28184
|
-
We(n, Ir, new WebSocket(br(n, zd, Cg).call(n, W(n,
|
|
28184
|
+
We(n, Ir, new WebSocket(br(n, zd, Cg).call(n, W(n, io)))), W(n, Ir).binaryType = "arraybuffer", W(n, Ur).debug("Connecting");
|
|
28185
28185
|
var p = setTimeout(function() {
|
|
28186
28186
|
W(n, Ur).debug("Connection timeout. Closing socket"), We(n, Aa, !0), br(n, Au, Vc).call(n), W(n, Ir).close(3001, "Connection Timeout"), W(n, kr).autoReconnect && !W(n, En) && (W(n, et).emit(
|
|
28187
28187
|
"reconnecting"
|
|
@@ -28317,10 +28317,10 @@ var Eg = /* @__PURE__ */ function(o) {
|
|
|
28317
28317
|
* Disconnect the socket.
|
|
28318
28318
|
*/
|
|
28319
28319
|
}, { key: "disconnect", value: function() {
|
|
28320
|
-
We(this, Aa, !1), br(this,
|
|
28320
|
+
We(this, Aa, !1), br(this, vo, Ru).call(this), this.removeAllListeners(), We(this, mi, { code: 1e3, reason: "Sockrates disconnect method called" }), W(this, Ir).close(1e3, "Sockrates disconnect method called.");
|
|
28321
28321
|
} }]);
|
|
28322
28322
|
}();
|
|
28323
|
-
Ir = /* @__PURE__ */ new WeakMap(),
|
|
28323
|
+
Ir = /* @__PURE__ */ new WeakMap(), io = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Aa = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), so = /* @__PURE__ */ new WeakMap(), Pa = /* @__PURE__ */ new WeakMap(), zd = /* @__PURE__ */ new WeakSet(), Cg = function(t) {
|
|
28324
28324
|
if (t.startsWith("ws://") || t.startsWith("wss://"))
|
|
28325
28325
|
return t;
|
|
28326
28326
|
if (t.startsWith("https://"))
|
|
@@ -28369,7 +28369,7 @@ Ir = /* @__PURE__ */ new WeakMap(), so = /* @__PURE__ */ new WeakMap(), kr = /*
|
|
|
28369
28369
|
/* failed */
|
|
28370
28370
|
), We(this, En, !1), a.abrupt("return");
|
|
28371
28371
|
case 7:
|
|
28372
|
-
return We(this, En, !0), br(this, Au, Vc).call(this), br(this,
|
|
28372
|
+
return We(this, En, !0), br(this, Au, Vc).call(this), br(this, vo, Ru).call(this), a.prev = 8, a.next = 11, W(this, Pa).wait();
|
|
28373
28373
|
case 11:
|
|
28374
28374
|
if (W(this, Aa) !== !1) {
|
|
28375
28375
|
a.next = 13;
|
|
@@ -28409,14 +28409,14 @@ Ir = /* @__PURE__ */ new WeakMap(), so = /* @__PURE__ */ new WeakMap(), kr = /*
|
|
|
28409
28409
|
}
|
|
28410
28410
|
}, Nc = /* @__PURE__ */ new WeakSet(), xd = function() {
|
|
28411
28411
|
var t = this;
|
|
28412
|
-
this.config.disconnectOnPingTimeout && (W(this, Ur).debug("Resetting ping timeout"), br(this,
|
|
28412
|
+
this.config.disconnectOnPingTimeout && (W(this, Ur).debug("Resetting ping timeout"), br(this, vo, Ru).call(this), We(this, so, setTimeout(function() {
|
|
28413
28413
|
var e;
|
|
28414
28414
|
W(t, Ur).debug("Disconnecting the socket due to ping timeout"), We(t, Aa, !0);
|
|
28415
28415
|
var r = 3002, n = "Ping timeout";
|
|
28416
28416
|
(e = W(t, Ir)) == null || e.close(r, n), br(t, $c, Zd).call(t, r, n);
|
|
28417
28417
|
}, W(this, kr).pingTimeout)));
|
|
28418
|
-
},
|
|
28419
|
-
W(this,
|
|
28418
|
+
}, vo = /* @__PURE__ */ new WeakSet(), Ru = function() {
|
|
28419
|
+
W(this, so) && (clearTimeout(W(this, so)), We(this, so, void 0));
|
|
28420
28420
|
}, Au = /* @__PURE__ */ new WeakSet(), Vc = function() {
|
|
28421
28421
|
W(this, Ir) && (W(this, Ir).onopen = void 0, W(this, Ir).onerror = void 0, W(this, Ir).onmessage = void 0, W(this, Ir).onclose = void 0);
|
|
28422
28422
|
};
|
|
@@ -28424,12 +28424,12 @@ var jO = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, sl = funct
|
|
|
28424
28424
|
for (var a = n > 1 ? void 0 : n ? FO(e, r) : e, i = t.length - 1, s; i >= 0; i--)
|
|
28425
28425
|
(s = t[i]) && (a = (n ? s(e, r, a) : s(a)) || a);
|
|
28426
28426
|
return n && a && jO(e, r, a), a;
|
|
28427
|
-
}, uh = 65535, HO = 3e3, Ig = (tn = /* @__PURE__ */ E("url"), ye = /* @__PURE__ */ E("sockrates"), ke = /* @__PURE__ */ E("connectionHandler"), Br = /* @__PURE__ */ E("socketDisconnectionTimeout"), Fe = /* @__PURE__ */ E("context"),
|
|
28427
|
+
}, uh = 65535, HO = 3e3, Ig = (tn = /* @__PURE__ */ E("url"), ye = /* @__PURE__ */ E("sockrates"), ke = /* @__PURE__ */ E("connectionHandler"), Br = /* @__PURE__ */ E("socketDisconnectionTimeout"), Fe = /* @__PURE__ */ E("context"), xs = /* @__PURE__ */ E("getSocketURL"), eo = /* @__PURE__ */ E("generateId"), /* @__PURE__ */ function() {
|
|
28428
28428
|
function o(t, e) {
|
|
28429
28429
|
var r, n = e.peerId, a = e.meetingId, i = e.authToken, s = e.capabilities;
|
|
28430
|
-
if (P(this, o), Object.defineProperty(this,
|
|
28430
|
+
if (P(this, o), Object.defineProperty(this, eo, { value: GO }), Object.defineProperty(this, xs, { value: qO }), Object.defineProperty(this, ke, { get: BO, set: void 0 }), Object.defineProperty(this, tn, { writable: !0, value: void 0 }), Object.defineProperty(this, ye, { writable: !0, value: void 0 }), this.roomName = void 0, this.authToken = void 0, this.capabilities = void 0, Object.defineProperty(this, Br, { writable: !0, value: void 0 }), Object.defineProperty(this, Fe, { writable: !0, value: void 0 }), !n || !a || !i)
|
|
28431
28431
|
throw new H("peerId, meetingId, or authToken can not be empty", "0404");
|
|
28432
|
-
c(this, Br)[Br] = void 0, c(this, Fe)[Fe] = t, this.capabilities = s, this.roomName = a, this.authToken = i, c(this, tn)[tn] = c(this,
|
|
28432
|
+
c(this, Br)[Br] = void 0, c(this, Fe)[Fe] = t, this.capabilities = s, this.roomName = a, this.authToken = i, c(this, tn)[tn] = c(this, xs)[xs](n), c(this, ye)[ye] = new UO(c(this, tn)[tn], { autoReconnect: !0, disconnectOnPingTimeout: (r = s.includes("PING")) !== null && r !== void 0 ? r : !1, queueOnDisconnect: !0, flushOnReconnect: !1, logger: this.logger }), this.handleSocketConnectionEvents();
|
|
28433
28433
|
}
|
|
28434
28434
|
return S(o, [{ key: "joinAttempted", get: function() {
|
|
28435
28435
|
return c(this, ke)[ke].socketJoinAttempted;
|
|
@@ -28455,7 +28455,7 @@ var jO = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, sl = funct
|
|
|
28455
28455
|
} }, { key: "peerId", get: function() {
|
|
28456
28456
|
return c(this, Fe)[Fe].getValue("peerId");
|
|
28457
28457
|
} }, { key: "updateURL", value: function(e) {
|
|
28458
|
-
e !== this.peerId && (c(this, tn)[tn] = c(this,
|
|
28458
|
+
e !== this.peerId && (c(this, tn)[tn] = c(this, xs)[xs](e), this.logger.debug("SocketService:: Connection URL updated.")), c(this, ye)[ye].updateURL(c(this, tn)[tn]);
|
|
28459
28459
|
} }, { key: "url", get: function() {
|
|
28460
28460
|
return c(this, tn)[tn];
|
|
28461
28461
|
} }, { key: "connect", value: function() {
|
|
@@ -28487,7 +28487,7 @@ var jO = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, sl = funct
|
|
|
28487
28487
|
}
|
|
28488
28488
|
} }, { key: "sendMessage", value: function(e, r, n) {
|
|
28489
28489
|
var a = {}, i = c(this, Fe)[Fe].getValue("telemetry");
|
|
28490
|
-
return i.injectContext(a), c(this, ye)[ye].send(e, n != null ? n : c(this,
|
|
28490
|
+
return i.injectContext(a), c(this, ye)[ye].send(e, n != null ? n : c(this, eo)[eo](), r, new TextEncoder().encode(JSON.stringify(a)));
|
|
28491
28491
|
} }, { key: "sendMessagePromise", value: function(e, r, n, a) {
|
|
28492
28492
|
var i = parseInt({}.SOCKET_SERVICE_MESSAGE_REQUEST_TIMEOUT, 10) || 2e4;
|
|
28493
28493
|
return this.sendMessagePromiseWithTimeout({ event: e, timeout: i, protobuf: r, messageId: n, resp: a });
|
|
@@ -28496,7 +28496,7 @@ var jO = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, sl = funct
|
|
|
28496
28496
|
return new Promise(function(d, p) {
|
|
28497
28497
|
var h = function(w, A) {
|
|
28498
28498
|
c(r, ye)[ye].removeListener(l, w), c(r, ye)[ye].removeListener(uh, A), c(r, ye)[ye].removeListener(fi.errorResponse, A), c(r, ye)[ye].removeListener(Cn.errorResponse, A);
|
|
28499
|
-
}, f = s != null ? s : c(r,
|
|
28499
|
+
}, f = s != null ? s : c(r, eo)[eo](), g = {}, b = c(r, Fe)[Fe].getValue("telemetry");
|
|
28500
28500
|
b.injectContext(g);
|
|
28501
28501
|
var y = function(w) {
|
|
28502
28502
|
var A = w.id, M = w.payload;
|
|
@@ -28609,7 +28609,7 @@ var jO = Object.defineProperty, FO = Object.getOwnPropertyDescriptor, sl = funct
|
|
|
28609
28609
|
}, r);
|
|
28610
28610
|
})));
|
|
28611
28611
|
} }], [{ key: "getSocketEdgeDomain", value: function(e) {
|
|
28612
|
-
return
|
|
28612
|
+
return lo({ servicePrefix: "socket-edge", baseURI: e });
|
|
28613
28613
|
} }]);
|
|
28614
28614
|
}());
|
|
28615
28615
|
function BO() {
|
|
@@ -29337,7 +29337,7 @@ function eD(o, t) {
|
|
|
29337
29337
|
throw Error("Received V1 auth token ".concat(o));
|
|
29338
29338
|
var i = Rs.baseURI.prod;
|
|
29339
29339
|
t && (i = t);
|
|
29340
|
-
var s = "https://".concat(
|
|
29340
|
+
var s = "https://".concat(lo({ servicePrefix: "api", baseURI: i }));
|
|
29341
29341
|
return { meetingId: r, orgId: n, participantId: a, baseURI: i, apiBase: s };
|
|
29342
29342
|
} catch (u) {
|
|
29343
29343
|
throw new H("Invalid auth token", "0004");
|
|
@@ -29632,7 +29632,7 @@ var ga = /* @__PURE__ */ E("trackMap"), nD = /* @__PURE__ */ function(o) {
|
|
|
29632
29632
|
for (; ; )
|
|
29633
29633
|
switch (g.prev = g.next) {
|
|
29634
29634
|
case 0:
|
|
29635
|
-
return a = h.length > 0 && h[0] !== void 0 ? h[0] : {}, i = h.length > 1 && h[1] !== void 0 ? h[1] : !1, s = h.length > 2 && h[2] !== void 0 ? h[2] : void 0, u = (n = s == null ? void 0 : s.peerId) !== null && n !== void 0 ? n :
|
|
29635
|
+
return a = h.length > 0 && h[0] !== void 0 ? h[0] : {}, i = h.length > 1 && h[1] !== void 0 ? h[1] : !1, s = h.length > 2 && h[2] !== void 0 ? h[2] : void 0, u = (n = s == null ? void 0 : s.peerId) !== null && n !== void 0 ? n : ho(), l = ki.createContext(u, { peerId: u }), d = l.getValue("logger"), d.init(l), p = new cg(l, d), g.next = 10, p.init(a, i, l);
|
|
29636
29636
|
case 10:
|
|
29637
29637
|
return l.setValue("defaults", { mediaHandler: p }), g.abrupt("return", p);
|
|
29638
29638
|
case 12:
|
|
@@ -29654,7 +29654,7 @@ var ga = /* @__PURE__ */ E("trackMap"), nD = /* @__PURE__ */ function(o) {
|
|
|
29654
29654
|
for (; ; )
|
|
29655
29655
|
switch (B.prev = B.next) {
|
|
29656
29656
|
case 0:
|
|
29657
|
-
if (gr.init(), f = (a = n == null || (i = n.cachedUserDetails) === null || i === void 0 ? void 0 : i.peerId) !== null && a !== void 0 ? a :
|
|
29657
|
+
if (gr.init(), f = (a = n == null || (i = n.cachedUserDetails) === null || i === void 0 ? void 0 : i.peerId) !== null && a !== void 0 ? a : ho(), g = n.authToken, b = n.baseURI, y = eD(g, b), k = y.meetingId, T = rp(y, $g), !((s = T.baseURI) !== null && s !== void 0 && s.includes("dyte.io"))) {
|
|
29658
29658
|
B.next = 6;
|
|
29659
29659
|
break;
|
|
29660
29660
|
}
|