@ujet/websdk-headless 3.2.6 → 3.2.7
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/README.md +8 -2
- package/dist/index.d.ts +10 -1
- package/dist/index.js +45 -45
- package/dist/index.mjs +180 -174
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var G$ = Object.defineProperty;
|
|
2
2
|
var W$ = (e, r, t) => r in e ? G$(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var ct = (e, r, t) => W$(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
const $Z = "
|
|
4
|
+
const $Z = "prod", $0 = "3.2.7", Cg = "https://main.api.ujet.co", xr = {
|
|
5
5
|
companyId: "",
|
|
6
6
|
tenant: "",
|
|
7
7
|
trackerId: "",
|
|
@@ -231,7 +231,7 @@ function nP(e) {
|
|
|
231
231
|
cobrowse: n,
|
|
232
232
|
companyId: e.companyId,
|
|
233
233
|
location: location.href,
|
|
234
|
-
bridge: e.bridge || "https://websdk.
|
|
234
|
+
bridge: e.bridge || "https://websdk.ujet.co/v3/bridge.html"
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
class P0 {
|
|
@@ -338,7 +338,7 @@ class Ev {
|
|
|
338
338
|
this.events = r, this.region = t.region, this.issueChatToken = n;
|
|
339
339
|
}
|
|
340
340
|
ping() {
|
|
341
|
-
this.audio || (this.audio = new window.Audio("https://websdk.
|
|
341
|
+
this.audio || (this.audio = new window.Audio("https://websdk.ujet.co/v3/ping.mp3"));
|
|
342
342
|
try {
|
|
343
343
|
this.audio.play();
|
|
344
344
|
} catch (r) {
|
|
@@ -654,7 +654,7 @@ function _P(e, r) {
|
|
|
654
654
|
...e.body
|
|
655
655
|
};
|
|
656
656
|
}
|
|
657
|
-
const js = "ujet:",
|
|
657
|
+
const js = "ujet:", wr = {
|
|
658
658
|
set(e, r) {
|
|
659
659
|
return localStorage.setItem(js + e, r);
|
|
660
660
|
},
|
|
@@ -808,12 +808,11 @@ class wP {
|
|
|
808
808
|
email: n.email,
|
|
809
809
|
greeting: n.greeting,
|
|
810
810
|
trigger_id: n.trigger_id,
|
|
811
|
-
ticket_id: n.ticket_id
|
|
811
|
+
ticket_id: n.ticket_id,
|
|
812
|
+
custom_data: n.custom_data
|
|
812
813
|
},
|
|
813
814
|
cobrowsable: n.cobrowsable
|
|
814
|
-
};
|
|
815
|
-
n.custom_data && typeof n.custom_data == "string" ? a.chat.custom_data = { signed: n.custom_data } : n.custom_data && (a.chat.custom_data = { unsigned: n.custom_data });
|
|
816
|
-
const c = (await this.post("chats", a)).data;
|
|
815
|
+
}, c = (await this.post("chats", a)).data;
|
|
817
816
|
return this.wrapChat(c, i);
|
|
818
817
|
}
|
|
819
818
|
async loadChat(r, t) {
|
|
@@ -884,6 +883,7 @@ class wP {
|
|
|
884
883
|
ticket_id: n.ticket_id,
|
|
885
884
|
recording_permission: n.recording_permission || "recording_permission_not_asked",
|
|
886
885
|
scheduled_at: n.scheduled_at,
|
|
886
|
+
custom_data: n.custom_data,
|
|
887
887
|
end_user: {
|
|
888
888
|
phone_number: n.phone_number
|
|
889
889
|
}
|
|
@@ -942,7 +942,7 @@ function TP(e, r) {
|
|
|
942
942
|
function EP(e, r) {
|
|
943
943
|
const t = e.stay_time * 1e3, n = Math.max(t - (Date.now() - CP), 0);
|
|
944
944
|
setTimeout(() => {
|
|
945
|
-
r(e),
|
|
945
|
+
r(e), wr.set(`trigger:${e.id}`, (Date.now() / 1e3).toString());
|
|
946
946
|
}, n);
|
|
947
947
|
}
|
|
948
948
|
function kP(e, r) {
|
|
@@ -960,7 +960,7 @@ function $P(e, r) {
|
|
|
960
960
|
}
|
|
961
961
|
function PP(e) {
|
|
962
962
|
try {
|
|
963
|
-
const r = parseInt(
|
|
963
|
+
const r = parseInt(wr.get(`trigger:${e}`), 10);
|
|
964
964
|
return Date.now() / 1e3 - r < D0.interval;
|
|
965
965
|
} catch {
|
|
966
966
|
return !1;
|
|
@@ -968,7 +968,7 @@ function PP(e) {
|
|
|
968
968
|
}
|
|
969
969
|
function IP() {
|
|
970
970
|
try {
|
|
971
|
-
const e =
|
|
971
|
+
const e = wr.get("visits");
|
|
972
972
|
return e ? parseInt(e, 10) : 0;
|
|
973
973
|
} catch {
|
|
974
974
|
return 0;
|
|
@@ -976,7 +976,7 @@ function IP() {
|
|
|
976
976
|
}
|
|
977
977
|
function OP(e) {
|
|
978
978
|
try {
|
|
979
|
-
|
|
979
|
+
wr.set("visits", e.toString());
|
|
980
980
|
} catch (r) {
|
|
981
981
|
console.error(r);
|
|
982
982
|
}
|
|
@@ -1479,10 +1479,10 @@ let IZ = class {
|
|
|
1479
1479
|
return this.communicator.user;
|
|
1480
1480
|
}
|
|
1481
1481
|
get lang() {
|
|
1482
|
-
return this.options.lang ? this.options.lang :
|
|
1482
|
+
return this.options.lang ? this.options.lang : wr.get("lang") || "en";
|
|
1483
1483
|
}
|
|
1484
1484
|
set lang(r) {
|
|
1485
|
-
this.options.lang ||
|
|
1485
|
+
this.options.lang || wr.set("lang", r);
|
|
1486
1486
|
}
|
|
1487
1487
|
destroy() {
|
|
1488
1488
|
this.communicator.destroy(), this.events.destroy();
|
|
@@ -1493,6 +1493,12 @@ let IZ = class {
|
|
|
1493
1493
|
off(r, t) {
|
|
1494
1494
|
this.events.removeEventListener(r, t);
|
|
1495
1495
|
}
|
|
1496
|
+
setVisibility(r) {
|
|
1497
|
+
wr.set("opened", `${r}`), this._triggerEvent("visible", r);
|
|
1498
|
+
}
|
|
1499
|
+
isVisible() {
|
|
1500
|
+
return wr.get("opened") === "true";
|
|
1501
|
+
}
|
|
1496
1502
|
// private usage
|
|
1497
1503
|
_triggerEvent(r, t) {
|
|
1498
1504
|
this.events.triggerEvent(r, t);
|
|
@@ -1546,7 +1552,7 @@ let IZ = class {
|
|
|
1546
1552
|
}
|
|
1547
1553
|
async loadChat(r) {
|
|
1548
1554
|
const t = await this.methods.loadChat(r, this.deviceId);
|
|
1549
|
-
return t.ongoing ? this.registerOngoingChat(t) : (
|
|
1555
|
+
return t.ongoing ? this.registerOngoingChat(t) : (wr.del("chat"), wr.del("cobrowse")), t;
|
|
1550
1556
|
}
|
|
1551
1557
|
async resumeChat(r) {
|
|
1552
1558
|
var t;
|
|
@@ -1559,12 +1565,12 @@ let IZ = class {
|
|
|
1559
1565
|
}
|
|
1560
1566
|
}
|
|
1561
1567
|
async loadOngoingChat() {
|
|
1562
|
-
const r =
|
|
1568
|
+
const r = wr.get("chat");
|
|
1563
1569
|
if (r) {
|
|
1564
1570
|
const t = await this.loadChat(r);
|
|
1565
1571
|
if (t.ongoing)
|
|
1566
1572
|
return t;
|
|
1567
|
-
|
|
1573
|
+
wr.del("chat");
|
|
1568
1574
|
}
|
|
1569
1575
|
}
|
|
1570
1576
|
async finishChat() {
|
|
@@ -1632,8 +1638,8 @@ let IZ = class {
|
|
|
1632
1638
|
async createCobrowseCode(r, t) {
|
|
1633
1639
|
var a;
|
|
1634
1640
|
await this.initializeCobrowse(r || this.lang);
|
|
1635
|
-
let n =
|
|
1636
|
-
n || (n = Date.now().toString(),
|
|
1641
|
+
let n = wr.get("cobrowse");
|
|
1642
|
+
n || (n = Date.now().toString(), wr.set("cobrowse", n));
|
|
1637
1643
|
const i = {
|
|
1638
1644
|
device_id: this.deviceId,
|
|
1639
1645
|
device_name: `${xr.application} / ${xr.version}`,
|
|
@@ -1647,7 +1653,7 @@ let IZ = class {
|
|
|
1647
1653
|
throw new Error(`Chat ${this.chat.id} does not support cobrowse.`);
|
|
1648
1654
|
const t = { chatId: `chat_${this.chat.id}` }, n = await this.createCobrowseCode(this.chat.lang, t);
|
|
1649
1655
|
if (n) {
|
|
1650
|
-
const i =
|
|
1656
|
+
const i = wr.get("cobrowse");
|
|
1651
1657
|
await this.methods.requestChatCobrowse(this.chat.id, { code: n, from: r, nonce: i });
|
|
1652
1658
|
}
|
|
1653
1659
|
}
|
|
@@ -1665,8 +1671,8 @@ let IZ = class {
|
|
|
1665
1671
|
this.events.triggerEvent("chat.ongoing", r), r._setGlobalEvents(this.events, this.methods.getChatTaskMessage.bind(this.methods)), r.on("_requestCobrowse", (t) => {
|
|
1666
1672
|
t === "agent" ? this.startCobrowse(t) : this.initializeCobrowse(r.lang), this.events.triggerEvent("cobrowse.request", { from: t });
|
|
1667
1673
|
}), r.on("disconnected", () => {
|
|
1668
|
-
|
|
1669
|
-
}), this.chat = r, xr.trackerId = `chat_${r.id}`,
|
|
1674
|
+
wr.del("chat"), wr.del("cobrowse");
|
|
1675
|
+
}), this.chat = r, xr.trackerId = `chat_${r.id}`, wr.set("chat", r.id.toString()), r.cobrowsable && wr.get("cobrowse") && this.initializeCobrowse(r.lang);
|
|
1670
1676
|
}
|
|
1671
1677
|
};
|
|
1672
1678
|
var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -2158,7 +2164,7 @@ gx({ target: "Object", stat: !0, forced: _x }, {
|
|
|
2158
2164
|
return yC(yx(r));
|
|
2159
2165
|
}
|
|
2160
2166
|
});
|
|
2161
|
-
var wx = Ki, Sx = String,
|
|
2167
|
+
var wx = Ki, Sx = String, Cr = function(e) {
|
|
2162
2168
|
if (wx(e) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2163
2169
|
return Sx(e);
|
|
2164
2170
|
}, Bv = {}, Cx = fi, Tx = vn, bC = us.f, Ex = hi, _C = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], kx = function(e) {
|
|
@@ -2246,7 +2252,7 @@ var Px = St, wC = Px, py = wC, Ix = tr, Ox = qv, Ax = qr.f, SC = function(e) {
|
|
|
2246
2252
|
// `Array.prototype.filterReject` method
|
|
2247
2253
|
// https://github.com/tc39/proposal-array-filtering
|
|
2248
2254
|
filterReject: ca(7)
|
|
2249
|
-
}, Ul = bt, wu = St, Wv = Ut, rN = gt, Js = Wt, Ys = co, nN = dt,
|
|
2255
|
+
}, Ul = bt, wu = St, Wv = Ut, rN = gt, Js = Wt, Ys = co, nN = dt, Rr = tr, iN = Wi, Xp = sr, Bl = vn, Vv = xl, aN = Cr, Qp = is, Xs = ka, CC = bu, sN = us, TC = Bv, oN = gu, EC = Gi, kC = qr, uN = Fv, RC = du, sd = zr, cN = vi, Hv = fo, lN = Ll, $C = mu, yy = hu, fN = qt, dN = qv, pN = SC, hN = Dx, vN = pi, PC = mn, ql = rn.forEach, Zr = lN("hidden"), zl = "Symbol", iu = "prototype", mN = PC.set, by = PC.getterFor(zl), In = Object[iu], Ja = wu.Symbol, Bo = Ja && Ja[iu], gN = wu.RangeError, yN = wu.TypeError, od = wu.QObject, IC = EC.f, Ya = kC.f, OC = TC.f, bN = RC.f, AC = rN([].push), ji = Hv("symbols"), Su = Hv("op-symbols"), _N = Hv("wks"), Zp = !od || !od[iu] || !od[iu].findChild, MC = function(e, r, t) {
|
|
2250
2256
|
var n = IC(In, r);
|
|
2251
2257
|
n && delete In[r], Ya(e, r, t), n && e !== In && Ya(In, r, n);
|
|
2252
2258
|
}, eh = Js && nN(function() {
|
|
@@ -2265,7 +2271,7 @@ var Px = St, wC = Px, py = wC, Ix = tr, Ox = qv, Ax = qr.f, SC = function(e) {
|
|
|
2265
2271
|
}, Gl = function(r, t, n) {
|
|
2266
2272
|
r === In && Gl(Su, t, n), Xp(r);
|
|
2267
2273
|
var i = Vv(t);
|
|
2268
|
-
return Xp(n),
|
|
2274
|
+
return Xp(n), Rr(ji, i) ? (n.enumerable ? (Rr(r, Zr) && r[Zr][i] && (r[Zr][i] = !1), n = Xs(n, { enumerable: Qp(0, !1) })) : (Rr(r, Zr) || Ya(r, Zr, Qp(1, Xs(null))), r[Zr][i] = !0), eh(r, i, n)) : Ya(r, i, n);
|
|
2269
2275
|
}, Kv = function(r, t) {
|
|
2270
2276
|
Xp(r);
|
|
2271
2277
|
var n = Bl(t), i = CC(n).concat(LC(n));
|
|
@@ -2276,29 +2282,29 @@ var Px = St, wC = Px, py = wC, Ix = tr, Ox = qv, Ax = qr.f, SC = function(e) {
|
|
|
2276
2282
|
return t === void 0 ? Xs(r) : Kv(Xs(r), t);
|
|
2277
2283
|
}, th = function(r) {
|
|
2278
2284
|
var t = Vv(r), n = Wv(bN, this, t);
|
|
2279
|
-
return this === In &&
|
|
2285
|
+
return this === In && Rr(ji, t) && !Rr(Su, t) ? !1 : n || !Rr(this, t) || !Rr(ji, t) || Rr(this, Zr) && this[Zr][t] ? n : !0;
|
|
2280
2286
|
}, xC = function(r, t) {
|
|
2281
2287
|
var n = Bl(r), i = Vv(t);
|
|
2282
|
-
if (!(n === In &&
|
|
2288
|
+
if (!(n === In && Rr(ji, i) && !Rr(Su, i))) {
|
|
2283
2289
|
var a = IC(n, i);
|
|
2284
|
-
return a &&
|
|
2290
|
+
return a && Rr(ji, i) && !(Rr(n, Zr) && n[Zr][i]) && (a.enumerable = !0), a;
|
|
2285
2291
|
}
|
|
2286
2292
|
}, NC = function(r) {
|
|
2287
2293
|
var t = OC(Bl(r)), n = [];
|
|
2288
2294
|
return ql(t, function(i) {
|
|
2289
|
-
!
|
|
2295
|
+
!Rr(ji, i) && !Rr($C, i) && AC(n, i);
|
|
2290
2296
|
}), n;
|
|
2291
2297
|
}, LC = function(e) {
|
|
2292
2298
|
var r = e === In, t = OC(r ? Su : Bl(e)), n = [];
|
|
2293
2299
|
return ql(t, function(i) {
|
|
2294
|
-
|
|
2300
|
+
Rr(ji, i) && (!r || Rr(In, i)) && AC(n, ji[i]);
|
|
2295
2301
|
}), n;
|
|
2296
2302
|
};
|
|
2297
2303
|
Ys || (Ja = function() {
|
|
2298
2304
|
if (iN(Bo, this)) throw new yN("Symbol is not a constructor");
|
|
2299
2305
|
var r = !arguments.length || arguments[0] === void 0 ? void 0 : aN(arguments[0]), t = yy(r), n = function(i) {
|
|
2300
2306
|
var a = this === void 0 ? wu : this;
|
|
2301
|
-
a === In && Wv(n, Su, i),
|
|
2307
|
+
a === In && Wv(n, Su, i), Rr(a, Zr) && Rr(a[Zr], t) && (a[Zr][t] = !1);
|
|
2302
2308
|
var s = Qp(1, i);
|
|
2303
2309
|
try {
|
|
2304
2310
|
eh(a, t, s);
|
|
@@ -2356,7 +2362,7 @@ Ul({ target: "Object", stat: !0, forced: !Ys }, {
|
|
|
2356
2362
|
hN();
|
|
2357
2363
|
vN(Ja, zl);
|
|
2358
2364
|
$C[Zr] = !0;
|
|
2359
|
-
var SN = co, DC = SN && !!Symbol.for && !!Symbol.keyFor, CN = bt, TN = Yn, EN = tr, kN =
|
|
2365
|
+
var SN = co, DC = SN && !!Symbol.for && !!Symbol.keyFor, CN = bt, TN = Yn, EN = tr, kN = Cr, jC = fo, RN = DC, cd = jC("string-to-symbol-registry"), $N = jC("symbol-to-string-registry");
|
|
2360
2366
|
CN({ target: "Symbol", stat: !0, forced: !RN }, {
|
|
2361
2367
|
for: function(e) {
|
|
2362
2368
|
var r = kN(e);
|
|
@@ -2372,7 +2378,7 @@ PN({ target: "Symbol", stat: !0, forced: !xN }, {
|
|
|
2372
2378
|
if (IN(_y, r)) return _y[r];
|
|
2373
2379
|
}
|
|
2374
2380
|
});
|
|
2375
|
-
var NN = gt, wy = _u, LN = Bt, Sy = fi, DN =
|
|
2381
|
+
var NN = gt, wy = _u, LN = Bt, Sy = fi, DN = Cr, Cy = NN([].push), jN = function(e) {
|
|
2376
2382
|
if (LN(e)) return e;
|
|
2377
2383
|
if (wy(e)) {
|
|
2378
2384
|
for (var r = e.length, t = [], n = 0; n < r; n++) {
|
|
@@ -3422,7 +3428,7 @@ var Bj = sr, qj = ET, zj = function(e, r, t, n) {
|
|
|
3422
3428
|
Zj({ target: "Array", stat: !0, forced: rF }, {
|
|
3423
3429
|
from: eF
|
|
3424
3430
|
});
|
|
3425
|
-
var am = gt, nF = di, iF =
|
|
3431
|
+
var am = gt, nF = di, iF = Cr, aF = Jn, sF = am("".charAt), hb = am("".charCodeAt), oF = am("".slice), vb = function(e) {
|
|
3426
3432
|
return function(r, t) {
|
|
3427
3433
|
var n = iF(aF(r)), i = nF(t), a = n.length, s, c;
|
|
3428
3434
|
return i < 0 || i >= a ? e ? "" : void 0 : (s = hb(n, i), s < 55296 || s > 56319 || i + 1 === a || (c = hb(n, i + 1)) < 56320 || c > 57343 ? e ? sF(n, i) : s : e ? oF(n, i, i + 2) : (s - 55296 << 10) + (c - 56320) + 65536);
|
|
@@ -3499,7 +3505,7 @@ var DT = {
|
|
|
3499
3505
|
return l[$o] !== v && kd(l, $o, v, { name: i }), NF[r] = v, C;
|
|
3500
3506
|
}, Ql = function(e, r) {
|
|
3501
3507
|
return { value: e, done: r };
|
|
3502
|
-
}, FF = sm.charAt, UF =
|
|
3508
|
+
}, FF = sm.charAt, UF = Cr, BT = mn, BF = om, Cb = Ql, qT = "String Iterator", qF = BT.set, zF = BT.getterFor(qT);
|
|
3503
3509
|
BF(String, "String", function(e) {
|
|
3504
3510
|
qF(this, {
|
|
3505
3511
|
type: qT,
|
|
@@ -3740,7 +3746,7 @@ var lU = Bt, fU = Jt, $b = ho, Zl = function(e, r, t) {
|
|
|
3740
3746
|
lU(n = r.constructor) && n !== t && fU(i = n.prototype) && i !== t.prototype && $b(e, i), e
|
|
3741
3747
|
);
|
|
3742
3748
|
}, dU = gt, pU = dU(1 .valueOf), hU = `
|
|
3743
|
-
\v\f\r \u2028\u2029\uFEFF`, vU = gt, mU = Jn, gU =
|
|
3749
|
+
\v\f\r \u2028\u2029\uFEFF`, vU = gt, mU = Jn, gU = Cr, hh = hU, Pb = vU("".replace), yU = RegExp("^[" + hh + "]+"), bU = RegExp("(^|[^" + hh + "])[" + hh + "]+$"), Id = function(e) {
|
|
3744
3750
|
return function(r) {
|
|
3745
3751
|
var t = gU(mU(r));
|
|
3746
3752
|
return e & 1 && (t = Pb(t, yU, "")), e & 2 && (t = Pb(t, bU, "$1")), t;
|
|
@@ -3828,7 +3834,7 @@ var FU = sr, rE = function() {
|
|
|
3828
3834
|
}), HU = dt, KU = St, JU = KU.RegExp, YU = HU(function() {
|
|
3829
3835
|
var e = JU("(?<a>b)", "g");
|
|
3830
3836
|
return e.exec("b").groups.a !== "b" || "b".replace(e, "$<a>c") !== "bc";
|
|
3831
|
-
}), Ns = Ut, rf = gt, XU =
|
|
3837
|
+
}), Ns = Ut, rf = gt, XU = Cr, QU = rE, ZU = nE, e3 = fo, t3 = ka, r3 = mn.get, n3 = VU, i3 = YU, a3 = e3("native-string-replace", String.prototype.replace), ml = RegExp.prototype.exec, vh = ml, s3 = rf("".charAt), o3 = rf("".indexOf), u3 = rf("".replace), Od = rf("".slice), mh = function() {
|
|
3832
3838
|
var e = /a/, r = /b*/g;
|
|
3833
3839
|
return Ns(ml, e, "a"), Ns(ml, r, "a"), e.lastIndex !== 0 || r.lastIndex !== 0;
|
|
3834
3840
|
}(), iE = ZU.BROKEN_CARET, gh = /()??/.exec("")[1] !== void 0, c3 = mh || gh || iE || n3 || i3;
|
|
@@ -3909,7 +3915,7 @@ var Ab = Ut, Mb = zr, f3 = gm, xb = dt, aE = qt, d3 = Vi, p3 = aE("species"), Ad
|
|
|
3909
3915
|
}
|
|
3910
3916
|
if (C3(e) === "RegExp") return Nb(T3, e, r);
|
|
3911
3917
|
throw new E3("RegExp#exec called on incompatible receiver");
|
|
3912
|
-
}, k3 = cs, Lb = Ut, sf = gt, R3 = nf, $3 = dt, P3 = sr, I3 = Bt, O3 = Kn, A3 = di, M3 = Hi, ws =
|
|
3918
|
+
}, k3 = cs, Lb = Ut, sf = gt, R3 = nf, $3 = dt, P3 = sr, I3 = Bt, O3 = Kn, A3 = di, M3 = Hi, ws = Cr, x3 = Jn, N3 = ym, L3 = os, D3 = _3, j3 = af, F3 = qt, yh = F3("replace"), U3 = Math.max, B3 = Math.min, q3 = sf([].concat), Nd = sf([].push), Db = sf("".indexOf), jb = sf("".slice), z3 = function(e) {
|
|
3913
3919
|
return e === void 0 ? e : String(e);
|
|
3914
3920
|
}, G3 = function() {
|
|
3915
3921
|
return "a".replace(/./, "$0") === "$0";
|
|
@@ -3968,7 +3974,7 @@ V3({ target: "Array", proto: !0, forced: Z3 }, {
|
|
|
3968
3974
|
return X3(J3(this), r === void 0 ? "," : r);
|
|
3969
3975
|
}
|
|
3970
3976
|
});
|
|
3971
|
-
var
|
|
3977
|
+
var $r = {}, eB = bt, Ub = _u, tB = Fl, rB = Jt, Bb = po, nB = Lr, iB = vn, aB = Eu, sB = qt, oB = Tu, uB = hi, cB = oB("slice"), lB = sB("species"), Ld = Array, fB = Math.max;
|
|
3972
3978
|
eB({ target: "Array", proto: !0, forced: !cB }, {
|
|
3973
3979
|
slice: function(r, t) {
|
|
3974
3980
|
var n = iB(this), i = nB(n), a = Bb(r, i), s = Bb(t === void 0 ? i : t, i), c, o, u;
|
|
@@ -3978,7 +3984,7 @@ eB({ target: "Array", proto: !0, forced: !cB }, {
|
|
|
3978
3984
|
return o.length = u, o;
|
|
3979
3985
|
}
|
|
3980
3986
|
});
|
|
3981
|
-
var dB = bt, qb = Ut, pB = Bt, zb = sr, hB =
|
|
3987
|
+
var dB = bt, qb = Ut, pB = Bt, zb = sr, hB = Cr, vB = function() {
|
|
3982
3988
|
var e = !1, r = /[ac]/;
|
|
3983
3989
|
return r.exec = function() {
|
|
3984
3990
|
return e = !0, /./.exec.apply(this, arguments);
|
|
@@ -3992,7 +3998,7 @@ dB({ target: "RegExp", proto: !0, forced: !vB }, {
|
|
|
3992
3998
|
return i === null ? !1 : (zb(i), !0);
|
|
3993
3999
|
}
|
|
3994
4000
|
});
|
|
3995
|
-
var gB = bt, yB = Wt, bB = St, oc = gt, _B = tr, wB = Bt, SB = Wi, CB =
|
|
4001
|
+
var gB = bt, yB = Wt, bB = St, oc = gt, _B = tr, wB = Bt, SB = Wi, CB = Cr, TB = vi, EB = Nv, Oi = bB.Symbol, Ua = Oi && Oi.prototype;
|
|
3996
4002
|
if (yB && wB(Oi) && (!("description" in Ua) || // Safari 12 bug
|
|
3997
4003
|
Oi().description !== void 0)) {
|
|
3998
4004
|
var Gb = {}, uc = function() {
|
|
@@ -4175,7 +4181,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
4175
4181
|
|
|
4176
4182
|
|
|
4177
4183
|
*/
|
|
4178
|
-
Object.defineProperty(
|
|
4184
|
+
Object.defineProperty($r, "__esModule", { value: !0 });
|
|
4179
4185
|
var l4 = Mn, f4 = mo, d4 = go, p4 = Ra, h4 = yi, v4 = mi, m4 = gi, g4 = xn;
|
|
4180
4186
|
function Pa(e) {
|
|
4181
4187
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
@@ -4666,20 +4672,20 @@ var q4 = function(r, t) {
|
|
|
4666
4672
|
return [!0];
|
|
4667
4673
|
});
|
|
4668
4674
|
};
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4675
|
+
$r.array = q4;
|
|
4676
|
+
$r.custom = Yi;
|
|
4677
|
+
$r.literal = k4;
|
|
4678
|
+
$r.nonEmptyArray = N4;
|
|
4679
|
+
$r.nonEmptyString = L4;
|
|
4680
|
+
$r.nonNegativeInteger = D4;
|
|
4681
|
+
$r.objectSchema = F4;
|
|
4682
|
+
$r.pureObject = j4;
|
|
4683
|
+
$r.runtimeTypeValidation = of;
|
|
4684
|
+
$r.stringifyReceivedType = kE;
|
|
4685
|
+
$r.type = EE;
|
|
4686
|
+
$r.validateConstructorTypes = I4;
|
|
4687
|
+
$r.validateTypes = O4;
|
|
4688
|
+
$r.validateTypesAsync = A4;
|
|
4683
4689
|
var wm = {}, RE = { exports: {} }, $E = { exports: {} };
|
|
4684
4690
|
(function(e) {
|
|
4685
4691
|
var r = xn;
|
|
@@ -5090,7 +5096,7 @@ gl.exports;
|
|
|
5090
5096
|
return z(ne(_e));
|
|
5091
5097
|
};
|
|
5092
5098
|
}
|
|
5093
|
-
function
|
|
5099
|
+
function Pr(z) {
|
|
5094
5100
|
var ne = -1, _e = Array(z.size);
|
|
5095
5101
|
return z.forEach(function(He) {
|
|
5096
5102
|
_e[++ne] = He;
|
|
@@ -5261,20 +5267,20 @@ gl.exports;
|
|
|
5261
5267
|
return z === ne ? !0 : z == null || ne == null || !Xr(z) && !Xr(ne) ? z !== z && ne !== ne : ja(z, ne, _e, He, Ei, jt);
|
|
5262
5268
|
}
|
|
5263
5269
|
function ja(z, ne, _e, He, jt, mt) {
|
|
5264
|
-
var Ft = M(z), Xt = M(ne), ar = Ft ? o :
|
|
5270
|
+
var Ft = M(z), Xt = M(ne), ar = Ft ? o : Ir(z), nt = Xt ? o : Ir(ne);
|
|
5265
5271
|
ar = ar == c ? A : ar, nt = nt == c ? A : nt;
|
|
5266
|
-
var
|
|
5272
|
+
var Tr = ar == A, Er = nt == A, Zt = ar == nt;
|
|
5267
5273
|
if (Zt && ce(z)) {
|
|
5268
5274
|
if (!ce(ne))
|
|
5269
5275
|
return !1;
|
|
5270
|
-
Ft = !0,
|
|
5276
|
+
Ft = !0, Tr = !1;
|
|
5271
5277
|
}
|
|
5272
|
-
if (Zt && !
|
|
5278
|
+
if (Zt && !Tr)
|
|
5273
5279
|
return mt || (mt = new Yr()), Ft || ir(z) ? sa(z, ne, _e, He, jt, mt) : ki(z, ne, ar, _e, He, jt, mt);
|
|
5274
5280
|
if (!(_e & i)) {
|
|
5275
|
-
var
|
|
5276
|
-
if (
|
|
5277
|
-
var wn =
|
|
5281
|
+
var kr = Tr && It.call(z, "__wrapped__"), lt = Er && It.call(ne, "__wrapped__");
|
|
5282
|
+
if (kr || lt) {
|
|
5283
|
+
var wn = kr ? z.value() : z, I = lt ? ne.value() : ne;
|
|
5278
5284
|
return mt || (mt = new Yr()), jt(wn, I, _e, He, mt);
|
|
5279
5285
|
}
|
|
5280
5286
|
}
|
|
@@ -5304,31 +5310,31 @@ gl.exports;
|
|
|
5304
5310
|
var nt = mt.get(z);
|
|
5305
5311
|
if (nt && mt.get(ne))
|
|
5306
5312
|
return nt == ne;
|
|
5307
|
-
var
|
|
5308
|
-
for (mt.set(z, ne), mt.set(ne, z); ++
|
|
5309
|
-
var
|
|
5313
|
+
var Tr = -1, Er = !0, Zt = _e & a ? new on() : void 0;
|
|
5314
|
+
for (mt.set(z, ne), mt.set(ne, z); ++Tr < Xt; ) {
|
|
5315
|
+
var kr = z[Tr], lt = ne[Tr];
|
|
5310
5316
|
if (He)
|
|
5311
|
-
var wn = Ft ? He(lt,
|
|
5317
|
+
var wn = Ft ? He(lt, kr, Tr, ne, z, mt) : He(kr, lt, Tr, z, ne, mt);
|
|
5312
5318
|
if (wn !== void 0) {
|
|
5313
5319
|
if (wn)
|
|
5314
5320
|
continue;
|
|
5315
|
-
|
|
5321
|
+
Er = !1;
|
|
5316
5322
|
break;
|
|
5317
5323
|
}
|
|
5318
5324
|
if (Zt) {
|
|
5319
5325
|
if (!Ie(ne, function(I, O) {
|
|
5320
|
-
if (!zt(Zt, O) && (
|
|
5326
|
+
if (!zt(Zt, O) && (kr === I || jt(kr, I, _e, He, mt)))
|
|
5321
5327
|
return Zt.push(O);
|
|
5322
5328
|
})) {
|
|
5323
|
-
|
|
5329
|
+
Er = !1;
|
|
5324
5330
|
break;
|
|
5325
5331
|
}
|
|
5326
|
-
} else if (!(
|
|
5327
|
-
|
|
5332
|
+
} else if (!(kr === lt || jt(kr, lt, _e, He, mt))) {
|
|
5333
|
+
Er = !1;
|
|
5328
5334
|
break;
|
|
5329
5335
|
}
|
|
5330
5336
|
}
|
|
5331
|
-
return mt.delete(z), mt.delete(ne),
|
|
5337
|
+
return mt.delete(z), mt.delete(ne), Er;
|
|
5332
5338
|
}
|
|
5333
5339
|
function ki(z, ne, _e, He, jt, mt, Ft) {
|
|
5334
5340
|
switch (_e) {
|
|
@@ -5351,14 +5357,14 @@ gl.exports;
|
|
|
5351
5357
|
var Xt = Ue;
|
|
5352
5358
|
case H:
|
|
5353
5359
|
var ar = He & i;
|
|
5354
|
-
if (Xt || (Xt =
|
|
5360
|
+
if (Xt || (Xt = Pr), z.size != ne.size && !ar)
|
|
5355
5361
|
return !1;
|
|
5356
5362
|
var nt = Ft.get(z);
|
|
5357
5363
|
if (nt)
|
|
5358
5364
|
return nt == ne;
|
|
5359
5365
|
He |= a, Ft.set(z, ne);
|
|
5360
|
-
var
|
|
5361
|
-
return Ft.delete(z),
|
|
5366
|
+
var Tr = sa(Xt(z), Xt(ne), He, jt, mt, Ft);
|
|
5367
|
+
return Ft.delete(z), Tr;
|
|
5362
5368
|
case L:
|
|
5363
5369
|
if (Qe)
|
|
5364
5370
|
return Qe.call(z) == Qe.call(ne);
|
|
@@ -5366,21 +5372,21 @@ gl.exports;
|
|
|
5366
5372
|
return !1;
|
|
5367
5373
|
}
|
|
5368
5374
|
function Ri(z, ne, _e, He, jt, mt) {
|
|
5369
|
-
var Ft = _e & i, Xt = Zn(z), ar = Xt.length, nt = Zn(ne),
|
|
5370
|
-
if (ar !=
|
|
5375
|
+
var Ft = _e & i, Xt = Zn(z), ar = Xt.length, nt = Zn(ne), Tr = nt.length;
|
|
5376
|
+
if (ar != Tr && !Ft)
|
|
5371
5377
|
return !1;
|
|
5372
|
-
for (var
|
|
5373
|
-
var Zt = Xt[
|
|
5378
|
+
for (var Er = ar; Er--; ) {
|
|
5379
|
+
var Zt = Xt[Er];
|
|
5374
5380
|
if (!(Ft ? Zt in ne : It.call(ne, Zt)))
|
|
5375
5381
|
return !1;
|
|
5376
5382
|
}
|
|
5377
|
-
var
|
|
5378
|
-
if (
|
|
5379
|
-
return
|
|
5383
|
+
var kr = mt.get(z);
|
|
5384
|
+
if (kr && mt.get(ne))
|
|
5385
|
+
return kr == ne;
|
|
5380
5386
|
var lt = !0;
|
|
5381
5387
|
mt.set(z, ne), mt.set(ne, z);
|
|
5382
|
-
for (var wn = Ft; ++
|
|
5383
|
-
Zt = Xt[
|
|
5388
|
+
for (var wn = Ft; ++Er < ar; ) {
|
|
5389
|
+
Zt = Xt[Er];
|
|
5384
5390
|
var I = z[Zt], O = ne[Zt];
|
|
5385
5391
|
if (He)
|
|
5386
5392
|
var d = Ft ? He(O, I, Zt, ne, z, mt) : He(I, O, Zt, z, ne, mt);
|
|
@@ -5421,8 +5427,8 @@ gl.exports;
|
|
|
5421
5427
|
return z == null ? [] : (z = Object(z), ut(de(z), function(ne) {
|
|
5422
5428
|
return ve.call(z, ne);
|
|
5423
5429
|
}));
|
|
5424
|
-
} : ys,
|
|
5425
|
-
(Se &&
|
|
5430
|
+
} : ys, Ir = un;
|
|
5431
|
+
(Se && Ir(new Se(new ArrayBuffer(1))) != me || te && Ir(new te()) != C || le && Ir(le.resolve()) != N || K && Ir(new K()) != H || ae && Ir(new ae()) != Y) && (Ir = function(z) {
|
|
5426
5432
|
var ne = un(z), _e = ne == A ? z.constructor : void 0, He = _e ? R(_e) : "";
|
|
5427
5433
|
if (He)
|
|
5428
5434
|
switch (He) {
|
|
@@ -6198,7 +6204,7 @@ Qi.Retrier = GE;
|
|
|
6198
6204
|
var df = {}, P6 = Ut, I6 = tr, O6 = Wi, A6 = rE, s_ = RegExp.prototype, M6 = function(e) {
|
|
6199
6205
|
var r = e.flags;
|
|
6200
6206
|
return r === void 0 && !("flags" in s_) && !I6(e, "flags") && O6(s_, e) ? P6(A6, e) : r;
|
|
6201
|
-
}, x6 = vu.PROPER, N6 = zr, L6 = sr, o_ =
|
|
6207
|
+
}, x6 = vu.PROPER, N6 = zr, L6 = sr, o_ = Cr, D6 = dt, j6 = M6, Im = "toString", WE = RegExp.prototype, VE = WE[Im], F6 = D6(function() {
|
|
6202
6208
|
return VE.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
6203
6209
|
}), U6 = x6 && VE.name !== Im;
|
|
6204
6210
|
(F6 || U6) && N6(WE, Im, function() {
|
|
@@ -7725,7 +7731,7 @@ VW(function() {
|
|
|
7725
7731
|
});
|
|
7726
7732
|
var XW = JW.toString !== Tl;
|
|
7727
7733
|
WW("toString", Tl, XW);
|
|
7728
|
-
var Qd = Ut, uR = gt, QW = nf, ZW = sr, eV = Kn, tV = Jn, rV = Yv, nV = ym, iV = Hi, cw =
|
|
7734
|
+
var Qd = Ut, uR = gt, QW = nf, ZW = sr, eV = Kn, tV = Jn, rV = Yv, nV = ym, iV = Hi, cw = Cr, aV = os, lw = af, sV = nE, oV = dt, Cs = sV.UNSUPPORTED_Y, uV = 4294967295, cV = Math.min, Zd = uR([].push), ep = uR("".slice), lV = !oV(function() {
|
|
7729
7735
|
var e = /(?:)/, r = e.exec;
|
|
7730
7736
|
e.exec = function() {
|
|
7731
7737
|
return r.apply(this, arguments);
|
|
@@ -8097,7 +8103,7 @@ El.exports;
|
|
|
8097
8103
|
return yt || (RegExp(it + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(L) || 0)[1] || null;
|
|
8098
8104
|
});
|
|
8099
8105
|
}
|
|
8100
|
-
function
|
|
8106
|
+
function Pr() {
|
|
8101
8107
|
return this.description || "";
|
|
8102
8108
|
}
|
|
8103
8109
|
if (vt && (vt = [vt]), /\bAndroid\b/.test(Ie) && !ut && (Q = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(L)) && (ut = J(Q[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), wt && !ut ? ut = Ue([wt]) : wt && ut && (ut = ut.replace(RegExp("^(" + N(wt) + ")[-_.\\s]", "i"), wt + " ").replace(RegExp("^(" + N(wt) + ")[-_.]?(\\w)", "i"), wt + " $2")), (Q = /\bGoogle TV\b/.exec(ut)) && (ut = Q[0]), /\bSimulator\b/i.test(L) && (ut = (ut ? ut + " " : "") + "Simulator"), Re == "Opera Mini" && /\bOPiOS\b/.test(L) && be.push("running in Turbo/Uncompressed mode"), Re == "IE" && /\blike iPhone OS\b/.test(L) ? (Q = H(L.replace(/like iPhone OS/, "")), wt = Q.manufacturer, ut = Q.product) : /^iP/.test(ut) ? (Re || (Re = "Safari"), Ie = "iOS" + ((Q = / OS ([\d_]+)/i.exec(L)) ? " " + Q[1].replace(/_/g, ".") : "")) : Re == "Konqueror" && /^Linux\b/i.test(Ie) ? Ie = "Kubuntu" : wt && wt != "Google" && (/Chrome/.test(Re) && !/\bMobile Safari\b/i.test(L) || /\bVita\b/.test(ut)) || /\bAndroid\b/.test(Ie) && /^Chrome/.test(Re) && /\bVersion\//i.test(L) ? (Re = "Android Browser", Ie = /\bAndroid\b/.test(Ie) ? Ie : "Android") : Re == "Silk" ? (/\bMobi/i.test(L) || (Ie = "Android", be.unshift("desktop mode")), /Accelerated *= *true/i.test(L) && be.unshift("accelerated")) : Re == "UC Browser" && /\bUCWEB\b/.test(L) ? be.push("speed mode") : Re == "PaleMoon" && (Q = /\bFirefox\/([\d.]+)\b/.exec(L)) ? be.push("identifying as Firefox " + Q[1]) : Re == "Firefox" && (Q = /\b(Mobile|Tablet|TV)\b/i.exec(L)) ? (Ie || (Ie = "Firefox OS"), ut || (ut = Q[1])) : !Re || (Q = !/\bMinefield\b/i.test(L) && /\b(?:Firefox|Safari)\b/.exec(Re)) ? (Re && !ut && /[\/,]|^[^(]+?\)/.test(L.slice(L.indexOf(Q + "/") + 8)) && (Re = null), (Q = ut || wt || Ie) && (ut || wt || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ie)) && (Re = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ie) ? Ie : Q) + " Browser")) : Re == "Electron" && (Q = (/\bChrome\/([\d.]+)\b/.exec(L) || 0)[1]) && be.push("Chromium " + Q), Le || (Le = Ar([
|
|
@@ -8179,7 +8185,7 @@ El.exports;
|
|
|
8179
8185
|
toString: function() {
|
|
8180
8186
|
return "null";
|
|
8181
8187
|
}
|
|
8182
|
-
}, Et.parse = H, Et.toString =
|
|
8188
|
+
}, Et.parse = H, Et.toString = Pr, Et.version && be.unshift(Le), Et.name && be.unshift(Re), Ie && Re && !(Ie == String(Ie).split(" ")[0] && (Ie == Re.split(" ")[0] || ut)) && be.push(ut ? "(" + Ie + ")" : "on " + Ie), be.length && (Et.description = be.join(" ")), Et;
|
|
8183
8189
|
}
|
|
8184
8190
|
var W = H();
|
|
8185
8191
|
i && a ? $(W, function(L, ee) {
|
|
@@ -8187,7 +8193,7 @@ El.exports;
|
|
|
8187
8193
|
}) : n.platform = W;
|
|
8188
8194
|
}).call(xe);
|
|
8189
8195
|
})(El, El.exports);
|
|
8190
|
-
var pR = El.exports, hV = Ut, vV = nf, mV = sr, gV = Kn, yV = Hi, tp =
|
|
8196
|
+
var pR = El.exports, hV = Ut, vV = nf, mV = sr, gV = Kn, yV = Hi, tp = Cr, bV = Jn, _V = os, wV = ym, dw = af;
|
|
8191
8197
|
vV("match", function(e, r, t) {
|
|
8192
8198
|
return [
|
|
8193
8199
|
// `String.prototype.match` method
|
|
@@ -8214,7 +8220,7 @@ vV("match", function(e, r, t) {
|
|
|
8214
8220
|
});
|
|
8215
8221
|
var SV = Object.is || function(r, t) {
|
|
8216
8222
|
return r === t ? r !== 0 || 1 / r === 1 / t : r !== r && t !== t;
|
|
8217
|
-
}, CV = Ut, TV = nf, EV = sr, kV = Kn, RV = Jn, pw = SV, hw =
|
|
8223
|
+
}, CV = Ut, TV = nf, EV = sr, kV = Kn, RV = Jn, pw = SV, hw = Cr, $V = os, PV = af;
|
|
8218
8224
|
TV("search", function(e, r, t) {
|
|
8219
8225
|
return [
|
|
8220
8226
|
// `String.prototype.search` method
|
|
@@ -8689,7 +8695,7 @@ This software includes loglevel under the following license.
|
|
|
8689
8695
|
pt.error.apply(null, zt("E", R));
|
|
8690
8696
|
}
|
|
8691
8697
|
}]), D;
|
|
8692
|
-
}(), Ue = new nr(""), Ar = "0.12.2",
|
|
8698
|
+
}(), Ue = new nr(""), Ar = "0.12.2", Pr = /* @__PURE__ */ function() {
|
|
8693
8699
|
function D(q, P, R) {
|
|
8694
8700
|
Z.default(this, D), Ne.default(this, "confirmedCapabilities", /* @__PURE__ */ new Set()), this.activeGrant = P, this._token = q;
|
|
8695
8701
|
var k = R.region || "us1", B = "wss://tsock.".concat(k, ".twilio.com/v3/wsconnect"), M = R.twilsock || R.Twilsock || {};
|
|
@@ -10562,7 +10568,7 @@ This software includes loglevel under the following license.
|
|
|
10562
10568
|
}]), D;
|
|
10563
10569
|
}();
|
|
10564
10570
|
function hr(D) {
|
|
10565
|
-
var q =
|
|
10571
|
+
var q = Ir();
|
|
10566
10572
|
return function() {
|
|
10567
10573
|
var R = me.default(D), k;
|
|
10568
10574
|
if (q) {
|
|
@@ -10573,7 +10579,7 @@ This software includes loglevel under the following license.
|
|
|
10573
10579
|
return ie.default(this, k);
|
|
10574
10580
|
};
|
|
10575
10581
|
}
|
|
10576
|
-
function
|
|
10582
|
+
function Ir() {
|
|
10577
10583
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
10578
10584
|
if (typeof Proxy == "function") return !0;
|
|
10579
10585
|
try {
|
|
@@ -10592,7 +10598,7 @@ This software includes loglevel under the following license.
|
|
|
10592
10598
|
function P(R, k, B) {
|
|
10593
10599
|
var M;
|
|
10594
10600
|
Z.default(this, P), M = q.call(this), Ne.default(L.default(M), "version", Ar), Ne.default(L.default(M), "offlineStorageDeferred", new ki()), B.continuationToken = B.continuationToken ? B.continuationToken : jn.getStoredToken(k);
|
|
10595
|
-
var fe = M.config = new
|
|
10601
|
+
var fe = M.config = new Pr(R, k, B);
|
|
10596
10602
|
Ue.setLevel(fe.logLevel);
|
|
10597
10603
|
var ce = new Yr(fe.url), Ee = new on(ce, fe);
|
|
10598
10604
|
return M.channel = new _n(ce, Ee, fe), M.registrations = new Na(Ee), M.upstream = new sa(Ee, M.channel, fe), M.telemetryTracker = new oa(fe, Ee), M.channel.on("initialized", function() {
|
|
@@ -11122,7 +11128,7 @@ SOFTWARE.
|
|
|
11122
11128
|
*/
|
|
11123
11129
|
(function(e) {
|
|
11124
11130
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
11125
|
-
var r = ku, t = yi, n = Ra, i = mi, a = gi, s = xn, c = Ou, o = Mn, u = df, l = ls, f = fs, v = Qi, m = mo, b = go, C = yr, $ = hH, E =
|
|
11131
|
+
var r = ku, t = yi, n = Ra, i = mi, a = gi, s = xn, c = Ou, o = Mn, u = df, l = ls, f = fs, v = Qi, m = mo, b = go, C = yr, $ = hH, E = $r;
|
|
11126
11132
|
function A(ve) {
|
|
11127
11133
|
return ve && typeof ve == "object" && "default" in ve ? ve : { default: ve };
|
|
11128
11134
|
}
|
|
@@ -11454,7 +11460,7 @@ SOFTWARE.
|
|
|
11454
11460
|
return !ve.has(oe);
|
|
11455
11461
|
})));
|
|
11456
11462
|
}
|
|
11457
|
-
function
|
|
11463
|
+
function Pr(ve, ye) {
|
|
11458
11464
|
var oe = /* @__PURE__ */ new Set();
|
|
11459
11465
|
return ve.notificationId !== ye.notificationId && oe.add("notificationId"), ve.token !== ye.token && oe.add("token"), Ar(ve.messageTypes, ye.messageTypes).length > 0 && oe.add("messageType"), [oe.size > 0, oe];
|
|
11460
11466
|
}
|
|
@@ -11515,7 +11521,7 @@ SOFTWARE.
|
|
|
11515
11521
|
}
|
|
11516
11522
|
throw pt.error("One registration attempt is already in progress"), new Error("One registration attempt is already in progress");
|
|
11517
11523
|
case 3:
|
|
11518
|
-
if (Se =
|
|
11524
|
+
if (Se = Pr(this.desiredState, this.currentState), te = Ne.default(Se, 2), le = te[0], K = te[1], le) {
|
|
11519
11525
|
Ce.next = 6;
|
|
11520
11526
|
break;
|
|
11521
11527
|
}
|
|
@@ -17323,7 +17329,7 @@ var jh = /* @__PURE__ */ function(e) {
|
|
|
17323
17329
|
return "map";
|
|
17324
17330
|
}
|
|
17325
17331
|
}]), t;
|
|
17326
|
-
}(ju),
|
|
17332
|
+
}(ju), Sr = /* @__PURE__ */ function(e) {
|
|
17327
17333
|
Vr.default(t, e);
|
|
17328
17334
|
var r = UR(t);
|
|
17329
17335
|
function t(n) {
|
|
@@ -17757,29 +17763,29 @@ var jh = /* @__PURE__ */ function(e) {
|
|
|
17757
17763
|
}
|
|
17758
17764
|
}]), t;
|
|
17759
17765
|
}(Fu);
|
|
17760
|
-
Nt.default(
|
|
17761
|
-
Nt.default(
|
|
17762
|
-
Nt.default(
|
|
17763
|
-
Nt.default(
|
|
17766
|
+
Nt.default(Sr, "itemAdded", "itemAdded");
|
|
17767
|
+
Nt.default(Sr, "itemUpdated", "itemUpdated");
|
|
17768
|
+
Nt.default(Sr, "itemRemoved", "itemRemoved");
|
|
17769
|
+
Nt.default(Sr, "removed", "removed");
|
|
17764
17770
|
Pt([ke.validateTypesAsync("string", ke.pureObject, ["undefined", ke.objectSchema("item metadata", {
|
|
17765
17771
|
ttl: [ke.nonNegativeInteger, "undefined"]
|
|
17766
|
-
})]), $e("design:type", Function), $e("design:paramtypes", [String, Object, Object]), $e("design:returntype", Promise)],
|
|
17767
|
-
Pt([ke.validateTypesAsync("string"), $e("design:type", Function), $e("design:paramtypes", [String]), $e("design:returntype", Promise)],
|
|
17772
|
+
})]), $e("design:type", Function), $e("design:paramtypes", [String, Object, Object]), $e("design:returntype", Promise)], Sr.prototype, "set", null);
|
|
17773
|
+
Pt([ke.validateTypesAsync("string"), $e("design:type", Function), $e("design:paramtypes", [String]), $e("design:returntype", Promise)], Sr.prototype, "get", null);
|
|
17768
17774
|
Pt([ke.validateTypesAsync("string", "function", ["undefined", ke.objectSchema("item metadata", {
|
|
17769
17775
|
ttl: [ke.nonNegativeInteger, "undefined"]
|
|
17770
|
-
})]), $e("design:type", Function), $e("design:paramtypes", [String, Function, Object]), $e("design:returntype", Promise)],
|
|
17776
|
+
})]), $e("design:type", Function), $e("design:paramtypes", [String, Function, Object]), $e("design:returntype", Promise)], Sr.prototype, "mutate", null);
|
|
17771
17777
|
Pt([ke.validateTypesAsync("string", ke.pureObject, ["undefined", ke.objectSchema("item metadata", {
|
|
17772
17778
|
ttl: [ke.nonNegativeInteger, "undefined"]
|
|
17773
|
-
})]), $e("design:type", Function), $e("design:paramtypes", [String, Object, Object]), $e("design:returntype", Promise)],
|
|
17774
|
-
Pt([ke.validateTypesAsync("string"), $e("design:type", Function), $e("design:paramtypes", [String]), $e("design:returntype", Promise)],
|
|
17779
|
+
})]), $e("design:type", Function), $e("design:paramtypes", [String, Object, Object]), $e("design:returntype", Promise)], Sr.prototype, "update", null);
|
|
17780
|
+
Pt([ke.validateTypesAsync("string"), $e("design:type", Function), $e("design:paramtypes", [String]), $e("design:returntype", Promise)], Sr.prototype, "remove", null);
|
|
17775
17781
|
Pt([ke.validateTypesAsync(["undefined", ke.objectSchema("query options", {
|
|
17776
17782
|
from: ["string", "undefined"],
|
|
17777
17783
|
pageSize: [ke.custom(function(e) {
|
|
17778
17784
|
return [tg(e), "a positive integer"];
|
|
17779
17785
|
}), "undefined"]
|
|
17780
|
-
})]), $e("design:type", Function), $e("design:paramtypes", [Object]), $e("design:returntype", Promise)],
|
|
17781
|
-
Pt([ke.validateTypesAsync(ke.nonNegativeInteger), $e("design:type", Function), $e("design:paramtypes", [Number]), $e("design:returntype", Promise)],
|
|
17782
|
-
Pt([ke.validateTypesAsync("string", ke.nonNegativeInteger), $e("design:type", Function), $e("design:paramtypes", [String, Number]), $e("design:returntype", Promise)],
|
|
17786
|
+
})]), $e("design:type", Function), $e("design:paramtypes", [Object]), $e("design:returntype", Promise)], Sr.prototype, "getItems", null);
|
|
17787
|
+
Pt([ke.validateTypesAsync(ke.nonNegativeInteger), $e("design:type", Function), $e("design:paramtypes", [Number]), $e("design:returntype", Promise)], Sr.prototype, "setTtl", null);
|
|
17788
|
+
Pt([ke.validateTypesAsync("string", ke.nonNegativeInteger), $e("design:type", Function), $e("design:paramtypes", [String, Number]), $e("design:returntype", Promise)], Sr.prototype, "setItemTtl", null);
|
|
17783
17789
|
function BR(e) {
|
|
17784
17790
|
var r = u7();
|
|
17785
17791
|
return function() {
|
|
@@ -18762,7 +18768,7 @@ var Fw = "com.twilio.rtd.cds.document", Uw = "com.twilio.rtd.cds.list", Bw = "co
|
|
|
18762
18768
|
value: function(i, a, s) {
|
|
18763
18769
|
if (!(!this.services.config.sessionStorageEnabled || !a)) {
|
|
18764
18770
|
var c = Vn(s);
|
|
18765
|
-
(i === gr.type || i ===
|
|
18771
|
+
(i === gr.type || i === Sr.type) && (c.last_event_id = null, delete c.items), this.services.storage.store(i, a, c);
|
|
18766
18772
|
}
|
|
18767
18773
|
}
|
|
18768
18774
|
}, {
|
|
@@ -18881,7 +18887,7 @@ var Fw = "com.twilio.rtd.cds.document", Uw = "com.twilio.rtd.cds.list", Bw = "co
|
|
|
18881
18887
|
for (; ; )
|
|
18882
18888
|
switch (l.prev = l.next) {
|
|
18883
18889
|
case 0:
|
|
18884
|
-
return c = o.length > 1 && o[1] !== void 0 ? o[1] : !1, l.abrupt("return", this.readRootFromSessionCache(
|
|
18890
|
+
return c = o.length > 1 && o[1] !== void 0 ? o[1] : !1, l.abrupt("return", this.readRootFromSessionCache(Sr.type, s) || this._get(this.services.config.mapsUri, s, c));
|
|
18885
18891
|
case 2:
|
|
18886
18892
|
case "end":
|
|
18887
18893
|
return l.stop();
|
|
@@ -19081,11 +19087,11 @@ var Fw = "com.twilio.rtd.cds.document", Uw = "com.twilio.rtd.cds.list", Bw = "co
|
|
|
19081
19087
|
u = m.sent, m.next = 39;
|
|
19082
19088
|
break;
|
|
19083
19089
|
case 9:
|
|
19084
|
-
if (l = this.getCached(o.id,
|
|
19090
|
+
if (l = this.getCached(o.id, Sr.type), !l) {
|
|
19085
19091
|
m.next = 14;
|
|
19086
19092
|
break;
|
|
19087
19093
|
}
|
|
19088
|
-
return m.abrupt("return", new
|
|
19094
|
+
return m.abrupt("return", new Sr(l));
|
|
19089
19095
|
case 14:
|
|
19090
19096
|
return m.prev = 14, m.next = 17, this._getMap(o.id, o.includeItems);
|
|
19091
19097
|
case 17:
|
|
@@ -19111,9 +19117,9 @@ var Fw = "com.twilio.rtd.cds.document", Uw = "com.twilio.rtd.cds.list", Bw = "co
|
|
|
19111
19117
|
case 38:
|
|
19112
19118
|
throw m.t1;
|
|
19113
19119
|
case 39:
|
|
19114
|
-
return this.storeRootInSessionCache(
|
|
19120
|
+
return this.storeRootInSessionCache(Sr.type, o.id, u), f = new jh(this.services, u, function(b, C, $) {
|
|
19115
19121
|
return c.removeFromCacheAndSession(b, C, $);
|
|
19116
|
-
}), f = this.entities.store(f), m.abrupt("return", new
|
|
19122
|
+
}), f = this.entities.store(f), m.abrupt("return", new Sr(f));
|
|
19117
19123
|
case 43:
|
|
19118
19124
|
case "end":
|
|
19119
19125
|
return m.stop();
|
|
@@ -19520,7 +19526,7 @@ nn.SyncClient = yn;
|
|
|
19520
19526
|
nn.SyncDocument = Pn;
|
|
19521
19527
|
nn.SyncList = gr;
|
|
19522
19528
|
nn.SyncListItem = Lh;
|
|
19523
|
-
nn.SyncMap =
|
|
19529
|
+
nn.SyncMap = Sr;
|
|
19524
19530
|
nn.SyncMapItem = zo;
|
|
19525
19531
|
nn.SyncStream = ai;
|
|
19526
19532
|
var zR = {}, g7 = Jt, y7 = fi, b7 = qt, _7 = b7("match"), w7 = function(e) {
|
|
@@ -19541,7 +19547,7 @@ var zR = {}, g7 = Jt, y7 = fi, b7 = qt, _7 = b7("match"), w7 = function(e) {
|
|
|
19541
19547
|
}
|
|
19542
19548
|
}
|
|
19543
19549
|
return !1;
|
|
19544
|
-
}, k7 = bt, R7 = zv, $7 = Gi.f, P7 = Hi, zw =
|
|
19550
|
+
}, k7 = bt, R7 = zv, $7 = Gi.f, P7 = Hi, zw = Cr, I7 = GR, O7 = Jn, A7 = WR, M7 = R7("".slice), x7 = Math.min, VR = A7("startsWith"), N7 = !VR && !!function() {
|
|
19545
19551
|
var e = $7(String.prototype, "startsWith");
|
|
19546
19552
|
return e && !e.writable;
|
|
19547
19553
|
}();
|
|
@@ -19610,7 +19616,7 @@ var L7 = dt, D7 = qt, j7 = Wt, Gw = K0, F7 = D7("iterator"), HR = !L7(function()
|
|
|
19610
19616
|
for (n = 0; n < t.length; n++)
|
|
19611
19617
|
i = t[n], ma(r, V7(W7, i) ? "xn--" + Q7(i) : i);
|
|
19612
19618
|
return YR(r, ".");
|
|
19613
|
-
}, qh = bt, Cf = St, ag = uT, Cc = Ut, ci = gt, eu = Wt, XR = HR, QR = zr, eK = vi, tK = ff, rK = pi, nK = jT, sg = mn, ZR = $a, vp = Bt, iK = tr, aK = Ji, sK = Ki, oK = sr, e1 = Jt, Fr =
|
|
19619
|
+
}, qh = bt, Cf = St, ag = uT, Cc = Ut, ci = gt, eu = Wt, XR = HR, QR = zr, eK = vi, tK = ff, rK = pi, nK = jT, sg = mn, ZR = $a, vp = Bt, iK = tr, aK = Ji, sK = Ki, oK = sr, e1 = Jt, Fr = Cr, uK = ka, Jw = is, Yw = Jl, cK = Pu, Tc = Ql, ks = Xv, lK = qt, fK = Km, dK = lK("iterator"), bo = "URLSearchParams", t1 = bo + "Iterator", r1 = sg.set, Rn = sg.getterFor(bo), pK = sg.getterFor(t1), Xw = ag("fetch"), Rl = ag("Request"), tu = ag("Headers"), mp = Rl && Rl.prototype, Qw = tu && tu.prototype, hK = Cf.RegExp, vK = Cf.TypeError, n1 = Cf.decodeURIComponent, mK = Cf.encodeURIComponent, gK = ci("".charAt), Zw = ci([].join), Ka = ci([].push), zh = ci("".replace), yK = ci([].shift), eS = ci([].splice), tS = ci("".split), bK = ci("".slice), _K = /\+/g, rS = Array(4), wK = function(e) {
|
|
19614
19620
|
return rS[e - 1] || (rS[e - 1] = hK("((?:%[\\da-f]{2}){" + e + "})", "gi"));
|
|
19615
19621
|
}, SK = function(e) {
|
|
19616
19622
|
try {
|
|
@@ -19822,7 +19828,7 @@ if (!XR && vp(tu)) {
|
|
|
19822
19828
|
var $K = {
|
|
19823
19829
|
URLSearchParams: Tf,
|
|
19824
19830
|
getState: Rn
|
|
19825
|
-
}, PK = bt, og = Wt, IK = HR, ug = St, sS = Ji, Nn = gt, $l = zr, Cn = vi, OK = $a, Gh = tr, cg = vR, Rs = NT, Fn = hi, AK = sm.codeAt, MK = Z7, Pi =
|
|
19831
|
+
}, PK = bt, og = Wt, IK = HR, ug = St, sS = Ji, Nn = gt, $l = zr, Cn = vi, OK = $a, Gh = tr, cg = vR, Rs = NT, Fn = hi, AK = sm.codeAt, MK = Z7, Pi = Cr, xK = pi, NK = Xv, a1 = $K, s1 = mn, LK = s1.set, Pl = s1.getterFor("URL"), DK = a1.URLSearchParams, jK = a1.getState, Do = ug.URL, Wh = ug.TypeError, Il = ug.parseInt, FK = Math.floor, oS = Math.pow, $n = Nn("".charAt), Gn = Nn(/./.exec), Go = Nn([].join), UK = Nn(1 .toString), BK = Nn([].pop), Os = Nn([].push), bp = Nn("".replace), qK = Nn([].shift), zK = Nn("".split), ru = Nn("".slice), Ol = Nn("".toLowerCase), GK = Nn([].unshift), WK = "Invalid authority", _p = "Invalid scheme", Ga = "Invalid host", uS = "Invalid port", o1 = /[a-z]/i, VK = /[\d+-.a-z]/i, Vh = /\d/, HK = /^0x/i, KK = /^[0-7]+$/, JK = /^\d+$/, u1 = /^[\da-f]+$/i, YK = /[\0\t\n\r #%/:<>?@[\\\]^|]/, XK = /[\0\t\n\r #/:<>?@[\\\]^|]/, QK = /^[\u0000-\u0020]+/, ZK = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, eJ = /[\t\n\r]/g, Tn, tJ = function(e) {
|
|
19826
19832
|
var r = zK(e, "."), t, n, i, a, s, c, o;
|
|
19827
19833
|
if (r.length && r[r.length - 1] === "" && r.length--, t = r.length, t > 4) return e;
|
|
19828
19834
|
for (n = [], i = 0; i < t; i++) {
|
|
@@ -20371,7 +20377,7 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
20371
20377
|
(function(e) {
|
|
20372
20378
|
var r = typeof r < "u" ? r : typeof self < "u" ? self : typeof window < "u" ? window : {};
|
|
20373
20379
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
20374
|
-
var t = yi, n = Ra, i = mi, a = gi, s = xn, c = wf, o = fs, u = ku, l = Ou, f = Mn, v = yr, m = Qi, b =
|
|
20380
|
+
var t = yi, n = Ra, i = mi, a = gi, s = xn, c = wf, o = fs, u = ku, l = Ou, f = Mn, v = yr, m = Qi, b = $r;
|
|
20375
20381
|
function C(te) {
|
|
20376
20382
|
return te && typeof te == "object" && "default" in te ? te : { default: te };
|
|
20377
20383
|
}
|
|
@@ -20603,7 +20609,7 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
20603
20609
|
ie.error.apply(null, nr("E", ae));
|
|
20604
20610
|
}
|
|
20605
20611
|
}]), te;
|
|
20606
|
-
}(), Ar = 1e3,
|
|
20612
|
+
}(), Ar = 1e3, Pr = 4e3, Et = 3, At = !0, yt = function(le) {
|
|
20607
20613
|
return "https://mcs.".concat(le ?? "us1", ".twilio.com");
|
|
20608
20614
|
}, it = function(le) {
|
|
20609
20615
|
return le.startsWith("http");
|
|
@@ -20626,7 +20632,7 @@ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
20626
20632
|
get: function() {
|
|
20627
20633
|
return {
|
|
20628
20634
|
min: Ar,
|
|
20629
|
-
max:
|
|
20635
|
+
max: Pr,
|
|
20630
20636
|
maxAttemptsCount: Et
|
|
20631
20637
|
};
|
|
20632
20638
|
}
|
|
@@ -21247,7 +21253,7 @@ lJ({ global: !0, constructor: !0, forced: hJ !== bS }, {
|
|
|
21247
21253
|
ArrayBuffer: bS
|
|
21248
21254
|
});
|
|
21249
21255
|
pJ(fg);
|
|
21250
|
-
var vJ = bt, d1 = gt, mJ = An, gJ = Nr, _S = Lr, yJ = qm, wS =
|
|
21256
|
+
var vJ = bt, d1 = gt, mJ = An, gJ = Nr, _S = Lr, yJ = qm, wS = Cr, dg = dt, bJ = Km, _J = Xl, SS = tR, wJ = rR, CS = uo, TS = nR, ga = [], ES = d1(ga.sort), SJ = d1(ga.push), CJ = dg(function() {
|
|
21251
21257
|
ga.sort(void 0);
|
|
21252
21258
|
}), TJ = dg(function() {
|
|
21253
21259
|
ga.sort(null);
|
|
@@ -21299,7 +21305,7 @@ vJ({ target: "Array", proto: !0, forced: kJ }, {
|
|
|
21299
21305
|
return t;
|
|
21300
21306
|
}
|
|
21301
21307
|
});
|
|
21302
|
-
var $J = bt, PJ = gt, IJ = GR, OJ = Jn, kS =
|
|
21308
|
+
var $J = bt, PJ = gt, IJ = GR, OJ = Jn, kS = Cr, AJ = WR, MJ = PJ("".indexOf);
|
|
21303
21309
|
$J({ target: "String", proto: !0, forced: !AJ("includes") }, {
|
|
21304
21310
|
includes: function(r) {
|
|
21305
21311
|
return !!~MJ(
|
|
@@ -21814,7 +21820,7 @@ This software includes platform.js under the following license.
|
|
|
21814
21820
|
(function(e) {
|
|
21815
21821
|
var r = typeof r < "u" ? r : typeof self < "u" ? self : typeof window < "u" ? window : {};
|
|
21816
21822
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
21817
|
-
var t = ku, n = ls, i = mi, a = gi, s = xn, c = fs, o = Ra, u = yi, l = Ou, f = Mn, v = yr, m = XF, b =
|
|
21823
|
+
var t = ku, n = ls, i = mi, a = gi, s = xn, c = fs, o = Ra, u = yi, l = Ou, f = Mn, v = yr, m = XF, b = $r, C = go, $ = wm, E = gq, A = mo, N = Qi, U = df, J = hR, H = nn, W = zR, L = Ef, ee = wf, Y = fY;
|
|
21818
21824
|
function ie(I) {
|
|
21819
21825
|
return I && typeof I == "object" && "default" in I ? I : { default: I };
|
|
21820
21826
|
}
|
|
@@ -21963,7 +21969,7 @@ This software includes platform.js under the following license.
|
|
|
21963
21969
|
}
|
|
21964
21970
|
return I;
|
|
21965
21971
|
}
|
|
21966
|
-
var ut = 5, wt = "PT5S", Ie = "PT5S", Kt = 100, pt = 1e3, zt = 4e3, nr = 3, Ue = !0, Ar = 100,
|
|
21972
|
+
var ut = 5, wt = "PT5S", Ie = "PT5S", Kt = 100, pt = 1e3, zt = 4e3, nr = 3, Ue = !0, Ar = 100, Pr = 1e3, Et = /* @__PURE__ */ he.default(function I() {
|
|
21967
21973
|
var O, d, p, h, y, g, _, w, S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = arguments.length > 1 ? arguments[1] : void 0, F = arguments.length > 2 ? arguments[2] : void 0;
|
|
21968
21974
|
pe.default(this, I), Te.default(this, "typingIndicatorTimeoutDefault", ut * 1e3);
|
|
21969
21975
|
var j = S.Chat || S.IPMessaging || S || {};
|
|
@@ -21999,7 +22005,7 @@ This software includes platform.js under the following license.
|
|
|
21999
22005
|
} catch {
|
|
22000
22006
|
F.error("Failed to parse consumption report interval ".concat(G, ", using default value ").concat(Ie)), this.consumptionReportInterval = m.toSeconds(m.parse(Ie));
|
|
22001
22007
|
}
|
|
22002
|
-
this.channelMetadataCacheCapacity = (_ = S.channelMetadataCacheCapacity) !== null && _ !== void 0 ? _ : Ar, this.messageRecipientsCacheCapacity = (w = S.messageRecipientsCacheCapacity) !== null && w !== void 0 ? w :
|
|
22008
|
+
this.channelMetadataCacheCapacity = (_ = S.channelMetadataCacheCapacity) !== null && _ !== void 0 ? _ : Ar, this.messageRecipientsCacheCapacity = (w = S.messageRecipientsCacheCapacity) !== null && w !== void 0 ? w : Pr;
|
|
22003
22009
|
});
|
|
22004
22010
|
function At(I) {
|
|
22005
22011
|
return JSON.parse(JSON.stringify(I));
|
|
@@ -26382,7 +26388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
26382
26388
|
return !1;
|
|
26383
26389
|
}
|
|
26384
26390
|
}
|
|
26385
|
-
var hr = Ht.scope("Conversations"),
|
|
26391
|
+
var hr = Ht.scope("Conversations"), Ir = /* @__PURE__ */ function(I) {
|
|
26386
26392
|
Ve.default(d, I);
|
|
26387
26393
|
var O = pr(d);
|
|
26388
26394
|
function d(p, h) {
|
|
@@ -27927,7 +27933,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27927
27933
|
}
|
|
27928
27934
|
}]), I;
|
|
27929
27935
|
}(), nt;
|
|
27930
|
-
function
|
|
27936
|
+
function Tr(I, O) {
|
|
27931
27937
|
var d = Object.keys(I);
|
|
27932
27938
|
if (Object.getOwnPropertySymbols) {
|
|
27933
27939
|
var p = Object.getOwnPropertySymbols(I);
|
|
@@ -27937,19 +27943,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27937
27943
|
}
|
|
27938
27944
|
return d;
|
|
27939
27945
|
}
|
|
27940
|
-
function
|
|
27946
|
+
function Er(I) {
|
|
27941
27947
|
for (var O = 1; O < arguments.length; O++) {
|
|
27942
27948
|
var d = arguments[O] != null ? arguments[O] : {};
|
|
27943
|
-
O % 2 ?
|
|
27949
|
+
O % 2 ? Tr(Object(d), !0).forEach(function(p) {
|
|
27944
27950
|
Te.default(I, p, d[p]);
|
|
27945
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(I, Object.getOwnPropertyDescriptors(d)) :
|
|
27951
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(I, Object.getOwnPropertyDescriptors(d)) : Tr(Object(d)).forEach(function(p) {
|
|
27946
27952
|
Object.defineProperty(I, p, Object.getOwnPropertyDescriptor(d, p));
|
|
27947
27953
|
});
|
|
27948
27954
|
}
|
|
27949
27955
|
return I;
|
|
27950
27956
|
}
|
|
27951
27957
|
function Zt(I) {
|
|
27952
|
-
var O =
|
|
27958
|
+
var O = kr();
|
|
27953
27959
|
return function() {
|
|
27954
27960
|
var p = at.default(I), h;
|
|
27955
27961
|
if (O) {
|
|
@@ -27960,7 +27966,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27960
27966
|
return Tt.default(this, h);
|
|
27961
27967
|
};
|
|
27962
27968
|
}
|
|
27963
|
-
function
|
|
27969
|
+
function kr() {
|
|
27964
27970
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
27965
27971
|
if (typeof Proxy == "function") return !0;
|
|
27966
27972
|
try {
|
|
@@ -27979,7 +27985,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
27979
27985
|
function d(p) {
|
|
27980
27986
|
var h, y, g, _, w, S, T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
27981
27987
|
if (pe.default(this, d), S = O.call(this), Te.default(Ne.default(S), "version", k), Te.default(Ne.default(S), "connectionState", "unknown"), Te.default(Ne.default(S), "parsePushNotification", lt.parsePushNotification), S._fpaToken = p ?? "", S._options = T ?? {}, !S._options.disableDeepClone) {
|
|
27982
|
-
var F =
|
|
27988
|
+
var F = Er(Er({}, S._options), {}, {
|
|
27983
27989
|
transport: void 0,
|
|
27984
27990
|
twilsockClient: void 0
|
|
27985
27991
|
});
|
|
@@ -28605,7 +28611,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28605
28611
|
return g.emit("userUpdated", T);
|
|
28606
28612
|
}), this._services.users.on("userUnsubscribed", function(T) {
|
|
28607
28613
|
g.emit("userUnsubscribed", T);
|
|
28608
|
-
}), this._conversationsEntity = new
|
|
28614
|
+
}), this._conversationsEntity = new Ir(this._configuration, this._services), this._conversationsEntity.on("conversationAdded", function(T) {
|
|
28609
28615
|
g.emit("conversationAdded", T);
|
|
28610
28616
|
}), this._conversationsEntity.on("conversationRemoved", function(T) {
|
|
28611
28617
|
g.emit("conversationRemoved", T);
|
|
@@ -28639,7 +28645,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
28639
28645
|
case 30:
|
|
28640
28646
|
lt._supportedPushChannels.forEach(function(T) {
|
|
28641
28647
|
return g._subscribeToPushNotifications(T);
|
|
28642
|
-
}), this._services.typingIndicator.initialize(), this._services.mcsClient = new W.McsClient(this._fpaToken, this._configuration.links.mediaService, this._configuration.links.mediaSetService,
|
|
28648
|
+
}), this._services.typingIndicator.initialize(), this._services.mcsClient = new W.McsClient(this._fpaToken, this._configuration.links.mediaService, this._configuration.links.mediaSetService, Er(Er({}, this._options), {}, {
|
|
28643
28649
|
transport: void 0
|
|
28644
28650
|
})), this._resolveEnsureReady(), this.emit(lt.stateChanged, "initialized"), this.emit(lt.initialized);
|
|
28645
28651
|
case 36:
|
|
@@ -31712,7 +31718,7 @@ var rQ = xe && xe.__createBinding || (Object.create ? function(e, r, t, n) {
|
|
|
31712
31718
|
};
|
|
31713
31719
|
Object.defineProperty(Af, "__esModule", { value: !0 });
|
|
31714
31720
|
Af.Manager = void 0;
|
|
31715
|
-
const Dp = hg, sQ = zu, oQ = iQ(Mf), Va = Gu, uQ = xf, cQ = wo, lQ = aQ(bi),
|
|
31721
|
+
const Dp = hg, sQ = zu, oQ = iQ(Mf), Va = Gu, uQ = xf, cQ = wo, lQ = aQ(bi), Or = lQ.default("socket.io-client:manager");
|
|
31716
31722
|
class fQ extends cQ.Emitter {
|
|
31717
31723
|
constructor(r, t) {
|
|
31718
31724
|
var n;
|
|
@@ -31762,21 +31768,21 @@ class fQ extends cQ.Emitter {
|
|
|
31762
31768
|
* @public
|
|
31763
31769
|
*/
|
|
31764
31770
|
open(r) {
|
|
31765
|
-
if (
|
|
31771
|
+
if (Or("readyState %s", this._readyState), ~this._readyState.indexOf("open"))
|
|
31766
31772
|
return this;
|
|
31767
|
-
|
|
31773
|
+
Or("opening %s", this.uri), this.engine = new Dp.Socket(this.uri, this.opts);
|
|
31768
31774
|
const t = this.engine, n = this;
|
|
31769
31775
|
this._readyState = "opening", this.skipReconnect = !1;
|
|
31770
31776
|
const i = Va.on(t, "open", function() {
|
|
31771
31777
|
n.onopen(), r && r();
|
|
31772
31778
|
}), a = (c) => {
|
|
31773
|
-
|
|
31779
|
+
Or("error"), this.cleanup(), this._readyState = "closed", this.emitReserved("error", c), r ? r(c) : this.maybeReconnectOnOpen();
|
|
31774
31780
|
}, s = Va.on(t, "error", a);
|
|
31775
31781
|
if (this._timeout !== !1) {
|
|
31776
31782
|
const c = this._timeout;
|
|
31777
|
-
|
|
31783
|
+
Or("connect attempt will timeout after %d", c);
|
|
31778
31784
|
const o = this.setTimeoutFn(() => {
|
|
31779
|
-
|
|
31785
|
+
Or("connect attempt timed out after %d", c), i(), a(new Error("timeout")), t.close();
|
|
31780
31786
|
}, c);
|
|
31781
31787
|
this.opts.autoUnref && o.unref(), this.subs.push(() => {
|
|
31782
31788
|
this.clearTimeoutFn(o);
|
|
@@ -31799,7 +31805,7 @@ class fQ extends cQ.Emitter {
|
|
|
31799
31805
|
* @private
|
|
31800
31806
|
*/
|
|
31801
31807
|
onopen() {
|
|
31802
|
-
|
|
31808
|
+
Or("open"), this.cleanup(), this._readyState = "open", this.emitReserved("open");
|
|
31803
31809
|
const r = this.engine;
|
|
31804
31810
|
this.subs.push(Va.on(r, "ping", this.onping.bind(this)), Va.on(r, "data", this.ondata.bind(this)), Va.on(r, "error", this.onerror.bind(this)), Va.on(r, "close", this.onclose.bind(this)), Va.on(this.decoder, "decoded", this.ondecoded.bind(this)));
|
|
31805
31811
|
}
|
|
@@ -31839,7 +31845,7 @@ class fQ extends cQ.Emitter {
|
|
|
31839
31845
|
* @private
|
|
31840
31846
|
*/
|
|
31841
31847
|
onerror(r) {
|
|
31842
|
-
|
|
31848
|
+
Or("error", r), this.emitReserved("error", r);
|
|
31843
31849
|
}
|
|
31844
31850
|
/**
|
|
31845
31851
|
* Creates a new socket for the given `nsp`.
|
|
@@ -31861,7 +31867,7 @@ class fQ extends cQ.Emitter {
|
|
|
31861
31867
|
const t = Object.keys(this.nsps);
|
|
31862
31868
|
for (const n of t)
|
|
31863
31869
|
if (this.nsps[n].active) {
|
|
31864
|
-
|
|
31870
|
+
Or("socket %s is still active, skipping close", n);
|
|
31865
31871
|
return;
|
|
31866
31872
|
}
|
|
31867
31873
|
this._close();
|
|
@@ -31873,7 +31879,7 @@ class fQ extends cQ.Emitter {
|
|
|
31873
31879
|
* @private
|
|
31874
31880
|
*/
|
|
31875
31881
|
_packet(r) {
|
|
31876
|
-
|
|
31882
|
+
Or("writing packet %j", r);
|
|
31877
31883
|
const t = this.encoder.encode(r);
|
|
31878
31884
|
for (let n = 0; n < t.length; n++)
|
|
31879
31885
|
this.engine.write(t[n], r.options);
|
|
@@ -31884,7 +31890,7 @@ class fQ extends cQ.Emitter {
|
|
|
31884
31890
|
* @private
|
|
31885
31891
|
*/
|
|
31886
31892
|
cleanup() {
|
|
31887
|
-
|
|
31893
|
+
Or("cleanup"), this.subs.forEach((r) => r()), this.subs.length = 0, this.decoder.destroy();
|
|
31888
31894
|
}
|
|
31889
31895
|
/**
|
|
31890
31896
|
* Close the current socket.
|
|
@@ -31892,7 +31898,7 @@ class fQ extends cQ.Emitter {
|
|
|
31892
31898
|
* @private
|
|
31893
31899
|
*/
|
|
31894
31900
|
_close() {
|
|
31895
|
-
|
|
31901
|
+
Or("disconnect"), this.skipReconnect = !0, this._reconnecting = !1, this.onclose("forced close"), this.engine && this.engine.close();
|
|
31896
31902
|
}
|
|
31897
31903
|
/**
|
|
31898
31904
|
* Alias for close()
|
|
@@ -31908,7 +31914,7 @@ class fQ extends cQ.Emitter {
|
|
|
31908
31914
|
* @private
|
|
31909
31915
|
*/
|
|
31910
31916
|
onclose(r, t) {
|
|
31911
|
-
|
|
31917
|
+
Or("closed due to %s", r), this.cleanup(), this.backoff.reset(), this._readyState = "closed", this.emitReserved("close", r, t), this._reconnection && !this.skipReconnect && this.reconnect();
|
|
31912
31918
|
}
|
|
31913
31919
|
/**
|
|
31914
31920
|
* Attempt a reconnection.
|
|
@@ -31920,13 +31926,13 @@ class fQ extends cQ.Emitter {
|
|
|
31920
31926
|
return this;
|
|
31921
31927
|
const r = this;
|
|
31922
31928
|
if (this.backoff.attempts >= this._reconnectionAttempts)
|
|
31923
|
-
|
|
31929
|
+
Or("reconnect failed"), this.backoff.reset(), this.emitReserved("reconnect_failed"), this._reconnecting = !1;
|
|
31924
31930
|
else {
|
|
31925
31931
|
const t = this.backoff.duration();
|
|
31926
|
-
|
|
31932
|
+
Or("will wait %dms before reconnect attempt", t), this._reconnecting = !0;
|
|
31927
31933
|
const n = this.setTimeoutFn(() => {
|
|
31928
|
-
r.skipReconnect || (
|
|
31929
|
-
i ? (
|
|
31934
|
+
r.skipReconnect || (Or("attempting reconnect"), this.emitReserved("reconnect_attempt", r.backoff.attempts), !r.skipReconnect && r.open((i) => {
|
|
31935
|
+
i ? (Or("reconnect attempt error"), r._reconnecting = !1, r.reconnect(), this.emitReserved("reconnect_error", i)) : (Or("reconnect success"), r.onreconnect());
|
|
31930
31936
|
}));
|
|
31931
31937
|
}, t);
|
|
31932
31938
|
this.opts.autoUnref && n.unref(), this.subs.push(() => {
|
|
@@ -32635,12 +32641,12 @@ var F1 = Zh.exports, U1 = { exports: {} };
|
|
|
32635
32641
|
Object.hasOwnProperty.call(Kt, zt) && pt++;
|
|
32636
32642
|
var nr = navigator.mimeTypes ? navigator.mimeTypes.length : 0, Ue = Ie((nr + navigator.userAgent.length).toString(36) + pt.toString(36), 4), Ar = function() {
|
|
32637
32643
|
return Ue;
|
|
32638
|
-
},
|
|
32644
|
+
}, Pr = 0, Et = 4, At = 36, yt = Math.pow(At, Et);
|
|
32639
32645
|
function it() {
|
|
32640
32646
|
return Ie((Math.random() * yt << 0).toString(At), Et);
|
|
32641
32647
|
}
|
|
32642
32648
|
function xt() {
|
|
32643
|
-
return
|
|
32649
|
+
return Pr = Pr < yt ? Pr : 0, Pr++, Pr - 1;
|
|
32644
32650
|
}
|
|
32645
32651
|
function It() {
|
|
32646
32652
|
var d = "c", p = (/* @__PURE__ */ new Date()).getTime().toString(At), h = Ie(xt().toString(At), Et), y = Ar(), g = it() + it();
|
|
@@ -33338,11 +33344,11 @@ metaData was removed`
|
|
|
33338
33344
|
return p.addEventListener("popstate", g("Navigated back"), !0);
|
|
33339
33345
|
}), p.addEventListener("hashchange", function(_) {
|
|
33340
33346
|
var w = _.oldURL ? {
|
|
33341
|
-
from:
|
|
33342
|
-
to:
|
|
33347
|
+
from: Ir(_.oldURL, p),
|
|
33348
|
+
to: Ir(_.newURL, p),
|
|
33343
33349
|
state: D(p)
|
|
33344
33350
|
} : {
|
|
33345
|
-
to:
|
|
33351
|
+
to: Ir(p.location.href, p)
|
|
33346
33352
|
};
|
|
33347
33353
|
d.leaveBreadcrumb("Hash changed", w, "navigation");
|
|
33348
33354
|
}, !0), p.history.replaceState && ua(d, p.history, "replaceState", p), p.history.pushState && ua(d, p.history, "pushState", p), d.leaveBreadcrumb("Bugsnag loaded", {}, "navigation");
|
|
@@ -33358,11 +33364,11 @@ metaData was removed`
|
|
|
33358
33364
|
message: "should be true|false"
|
|
33359
33365
|
}
|
|
33360
33366
|
};
|
|
33361
|
-
var
|
|
33367
|
+
var Ir = function(d, p) {
|
|
33362
33368
|
var h = p.document.createElement("A");
|
|
33363
33369
|
return h.href = d, "" + h.pathname + h.search + h.hash;
|
|
33364
33370
|
}, ln = function(d, p, h, y) {
|
|
33365
|
-
var g =
|
|
33371
|
+
var g = Ir(d.location.href, d);
|
|
33366
33372
|
return {
|
|
33367
33373
|
title: h,
|
|
33368
33374
|
state: p,
|
|
@@ -33559,10 +33565,10 @@ metaData was removed`
|
|
|
33559
33565
|
}
|
|
33560
33566
|
}, S;
|
|
33561
33567
|
if (g && we(g))
|
|
33562
|
-
S = new d.BugsnagReport(g.name, g.message, Ae.parse(g), w, g), _ && (S.stacktrace = nt(S.stacktrace,
|
|
33568
|
+
S = new d.BugsnagReport(g.name, g.message, Ae.parse(g), w, g), _ && (S.stacktrace = nt(S.stacktrace, Er(g), []));
|
|
33563
33569
|
else {
|
|
33564
33570
|
var T = 'Rejection reason was not an Error. See "Promise" tab for more detail.';
|
|
33565
|
-
S = new d.BugsnagReport(g && g.name ? g.name : "UnhandledRejection", g && g.message ? g.message : T, [], w, g), S.updateMetaData("promise", "rejection reason",
|
|
33571
|
+
S = new d.BugsnagReport(g && g.name ? g.name : "UnhandledRejection", g && g.message ? g.message : T, [], w, g), S.updateMetaData("promise", "rejection reason", Tr(g));
|
|
33566
33572
|
}
|
|
33567
33573
|
d.notify(S);
|
|
33568
33574
|
};
|
|
@@ -33575,7 +33581,7 @@ metaData was removed`
|
|
|
33575
33581
|
});
|
|
33576
33582
|
};
|
|
33577
33583
|
};
|
|
33578
|
-
var
|
|
33584
|
+
var Tr = function(d) {
|
|
33579
33585
|
if (d == null)
|
|
33580
33586
|
return "undefined (or null)";
|
|
33581
33587
|
if (he(d)) {
|
|
@@ -33588,22 +33594,22 @@ metaData was removed`
|
|
|
33588
33594
|
}, p;
|
|
33589
33595
|
} else
|
|
33590
33596
|
return d;
|
|
33591
|
-
},
|
|
33597
|
+
}, Er = function(d) {
|
|
33592
33598
|
return function(p, h) {
|
|
33593
33599
|
return h.file === d.toString() ? p : (h.method && (h.method = h.method.replace(/^\s+/, "")), p.concat(h));
|
|
33594
33600
|
};
|
|
33595
33601
|
}, Zt = {};
|
|
33596
|
-
function
|
|
33597
|
-
return
|
|
33602
|
+
function kr() {
|
|
33603
|
+
return kr = Object.assign || function(d) {
|
|
33598
33604
|
for (var p = 1; p < arguments.length; p++) {
|
|
33599
33605
|
var h = arguments[p];
|
|
33600
33606
|
for (var y in h)
|
|
33601
33607
|
Object.prototype.hasOwnProperty.call(h, y) && (d[y] = h[y]);
|
|
33602
33608
|
}
|
|
33603
33609
|
return d;
|
|
33604
|
-
},
|
|
33610
|
+
}, kr.apply(this, arguments);
|
|
33605
33611
|
}
|
|
33606
|
-
var lt = "Bugsnag JavaScript", wn = "6.5.2", I = "https://github.com/bugsnag/bugsnag-js", O =
|
|
33612
|
+
var lt = "Bugsnag JavaScript", wn = "6.5.2", I = "https://github.com/bugsnag/bugsnag-js", O = kr({}, b.schema, Y);
|
|
33607
33613
|
return Zt = function(d) {
|
|
33608
33614
|
typeof d == "string" && (d = {
|
|
33609
33615
|
apiKey: d
|