@ikonai/sdk 0.0.16 → 0.0.18
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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function gi(e) {
|
|
2
2
|
return e;
|
|
3
3
|
}
|
|
4
4
|
function Ne(e) {
|
|
@@ -52,10 +52,10 @@ function k(e, l, i, s, d) {
|
|
|
52
52
|
return t.set(l, o), t;
|
|
53
53
|
}
|
|
54
54
|
var C = /* @__PURE__ */ ((e) => (e[e.Null = 1] = "Null", e[e.Bool = 2] = "Bool", e[e.Int32 = 3] = "Int32", e[e.Int64 = 4] = "Int64", e[e.UInt32 = 5] = "UInt32", e[e.UInt64 = 6] = "UInt64", e[e.Float32 = 7] = "Float32", e[e.Float64 = 8] = "Float64", e[e.Array = 9] = "Array", e[e.Dict = 10] = "Dict", e[e.Object = 11] = "Object", e[e.String = 12] = "String", e[e.Binary = 13] = "Binary", e[e.Guid = 14] = "Guid", e))(C || {});
|
|
55
|
-
const
|
|
55
|
+
const nn = 161, ln = 162, ge = new TextEncoder(), Mn = new TextDecoder("utf-8", { fatal: !0 });
|
|
56
56
|
class y {
|
|
57
57
|
constructor(l = 1) {
|
|
58
|
-
this.version = l, this.buffer.writeByte(
|
|
58
|
+
this.version = l, this.buffer.writeByte(nn), this.buffer.writeVarUInt(l >>> 0);
|
|
59
59
|
}
|
|
60
60
|
buffer = new Ie();
|
|
61
61
|
closed = !1;
|
|
@@ -113,7 +113,7 @@ class y {
|
|
|
113
113
|
this.writeVariableField(l, 10, c);
|
|
114
114
|
}
|
|
115
115
|
finish() {
|
|
116
|
-
return this.closed || (this.buffer.writeByte(
|
|
116
|
+
return this.closed || (this.buffer.writeByte(ln), this.closed = !0, this.cached = this.buffer.toUint8Array()), this.cached;
|
|
117
117
|
}
|
|
118
118
|
writeFixedField(l, i, s) {
|
|
119
119
|
this.writeFieldHeader(l, i, 0), s();
|
|
@@ -122,7 +122,7 @@ class y {
|
|
|
122
122
|
this.writeFieldHeader(l, i, s.length), this.buffer.writeBytes(s);
|
|
123
123
|
}
|
|
124
124
|
writeFieldHeader(l, i, s) {
|
|
125
|
-
this.buffer.writeUInt32(l >>> 0), this.buffer.writeByte(Me(i)),
|
|
125
|
+
this.buffer.writeUInt32(l >>> 0), this.buffer.writeByte(Me(i)), _n(i) && this.buffer.writeVarUInt(s >>> 0);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
class je {
|
|
@@ -246,7 +246,7 @@ class or {
|
|
|
246
246
|
beginEntry() {
|
|
247
247
|
if (this.entryOpen)
|
|
248
248
|
throw new Error("Previous dictionary entry not completed");
|
|
249
|
-
return this.count++, this.entryOpen = !0, new
|
|
249
|
+
return this.count++, this.entryOpen = !0, new kn(this.keyType, this.valueType, this.payload, () => {
|
|
250
250
|
this.entryOpen = !1;
|
|
251
251
|
});
|
|
252
252
|
}
|
|
@@ -257,7 +257,7 @@ class or {
|
|
|
257
257
|
return l.writeByte(Me(this.keyType)), l.writeByte(Me(this.valueType)), l.writeVarUInt(this.count), l.writeBytes(this.payload.toUint8Array()), l.toUint8Array();
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
class
|
|
260
|
+
class kn {
|
|
261
261
|
constructor(l, i, s, d) {
|
|
262
262
|
this.keyType = l, this.valueType = i, this.payload = s, this.onComplete = d;
|
|
263
263
|
}
|
|
@@ -458,7 +458,7 @@ class E {
|
|
|
458
458
|
const i = Te(l);
|
|
459
459
|
if (i.length < 2)
|
|
460
460
|
throw new Error("Teleport payload too short");
|
|
461
|
-
if (i[0] !==
|
|
461
|
+
if (i[0] !== nn || i[i.length - 1] !== ln)
|
|
462
462
|
throw new Error("Teleport object missing markers");
|
|
463
463
|
const s = { offset: 1 }, d = G(i, s, "InvalidLength");
|
|
464
464
|
return new E(i, d, s.offset);
|
|
@@ -468,7 +468,7 @@ class E {
|
|
|
468
468
|
return null;
|
|
469
469
|
if (this.offset + 5 > this.buffer.length)
|
|
470
470
|
throw new Error("Teleport object truncated");
|
|
471
|
-
const l =
|
|
471
|
+
const l = On(this.buffer, this.offset);
|
|
472
472
|
this.offset += 4;
|
|
473
473
|
const i = this.buffer[this.offset++], s = i >> 4 & 15;
|
|
474
474
|
if ((i & 15) !== 0)
|
|
@@ -481,7 +481,7 @@ class E {
|
|
|
481
481
|
const c = { offset: this.offset }, f = G(this.buffer, c, "InvalidLength");
|
|
482
482
|
R(this.buffer, c.offset, f), a = this.buffer.subarray(c.offset, c.offset + f), this.offset = c.offset + f;
|
|
483
483
|
}
|
|
484
|
-
return new
|
|
484
|
+
return new Sn(l, s, a);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
class Y {
|
|
@@ -546,7 +546,7 @@ class Y {
|
|
|
546
546
|
return this.ensureType(
|
|
547
547
|
12
|
|
548
548
|
/* String */
|
|
549
|
-
),
|
|
549
|
+
), Mn.decode(this.payload);
|
|
550
550
|
}
|
|
551
551
|
asGuid() {
|
|
552
552
|
return this.ensureType(
|
|
@@ -577,7 +577,7 @@ class Y {
|
|
|
577
577
|
throw new Error(`Teleport value has type ${C[this.type]}, expected ${C[l]}`);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
class
|
|
580
|
+
class Sn extends Y {
|
|
581
581
|
constructor(l, i, s) {
|
|
582
582
|
super(i, s), this.fieldId = l;
|
|
583
583
|
}
|
|
@@ -684,7 +684,7 @@ class lr {
|
|
|
684
684
|
return null;
|
|
685
685
|
}
|
|
686
686
|
const l = this.readKey(), i = this.readValue();
|
|
687
|
-
return this.index++, new
|
|
687
|
+
return this.index++, new Pn(l, i);
|
|
688
688
|
}
|
|
689
689
|
readKey() {
|
|
690
690
|
const l = ie(this.keyType);
|
|
@@ -743,7 +743,7 @@ class lr {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
class
|
|
746
|
+
class Pn {
|
|
747
747
|
constructor(l, i) {
|
|
748
748
|
this.key = l, this.value = i;
|
|
749
749
|
}
|
|
@@ -866,7 +866,7 @@ function G(e, l, i) {
|
|
|
866
866
|
for (; l.offset < e.length; ) {
|
|
867
867
|
const c = e[l.offset++];
|
|
868
868
|
if (a++, s |= (c & 127) << d, (c & 128) === 0) {
|
|
869
|
-
if (a !==
|
|
869
|
+
if (a !== Cn(s))
|
|
870
870
|
throw new Error("Teleport VarUInt is not canonical");
|
|
871
871
|
return s >>> 0;
|
|
872
872
|
}
|
|
@@ -875,7 +875,7 @@ function G(e, l, i) {
|
|
|
875
875
|
}
|
|
876
876
|
throw new Error(i);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Cn(e) {
|
|
879
879
|
return e < 128 ? 1 : e < 16384 ? 2 : e < 2097152 ? 3 : e < 268435456 ? 4 : 5;
|
|
880
880
|
}
|
|
881
881
|
function Me(e, l = 0) {
|
|
@@ -883,7 +883,7 @@ function Me(e, l = 0) {
|
|
|
883
883
|
throw new Error("Teleport flags must fit into 4 bits");
|
|
884
884
|
return (e & 15) << 4 | l & 15;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function _n(e) {
|
|
887
887
|
return e === 12 || e === 13 || e === 9 || e === 11 || e === 10;
|
|
888
888
|
}
|
|
889
889
|
function ie(e) {
|
|
@@ -914,7 +914,7 @@ function R(e, l, i) {
|
|
|
914
914
|
if (l < 0 || i < 0 || l + i > e.length)
|
|
915
915
|
throw new Error("Teleport payload exceeds bounds");
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function On(e, l) {
|
|
918
918
|
return (e[l] | e[l + 1] << 8 | e[l + 2] << 16 | e[l + 3] << 24) >>> 0;
|
|
919
919
|
}
|
|
920
920
|
function sr(e, l) {
|
|
@@ -1154,7 +1154,7 @@ var Fr;
|
|
|
1154
1154
|
}
|
|
1155
1155
|
e.fromProtocolMessage = h;
|
|
1156
1156
|
})(Fr || (Fr = {}));
|
|
1157
|
-
var
|
|
1157
|
+
var br;
|
|
1158
1158
|
((e) => {
|
|
1159
1159
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048577, e.TeleportLayoutHash = 1470463683, e.ActionIdFieldId = 727023925, e.CallArgumentsJsonFieldId = 2749491771, e.ClientFunctionResultsFieldId = 3123601234, e.CallIdFieldId = 3748161056;
|
|
1160
1160
|
function l(r) {
|
|
@@ -1258,47 +1258,47 @@ var mr;
|
|
|
1258
1258
|
}
|
|
1259
1259
|
r.writeToTeleport = I;
|
|
1260
1260
|
function N(T, p) {
|
|
1261
|
-
const
|
|
1262
|
-
return F(
|
|
1261
|
+
const b = E.create(T);
|
|
1262
|
+
return F(b, p);
|
|
1263
1263
|
}
|
|
1264
1264
|
r.decode = N;
|
|
1265
1265
|
function F(T, p) {
|
|
1266
|
-
const
|
|
1267
|
-
return n(
|
|
1266
|
+
const b = p ?? t();
|
|
1267
|
+
return n(b), m(T, b), b;
|
|
1268
1268
|
}
|
|
1269
1269
|
r.readFromTeleport = F;
|
|
1270
|
-
function
|
|
1271
|
-
let
|
|
1272
|
-
for (; (
|
|
1273
|
-
switch (
|
|
1270
|
+
function m(T, p) {
|
|
1271
|
+
let b;
|
|
1272
|
+
for (; (b = T.next()) !== null; )
|
|
1273
|
+
switch (b.fieldId) {
|
|
1274
1274
|
case r.ErrorFieldId: {
|
|
1275
|
-
if (
|
|
1275
|
+
if (b.isNull)
|
|
1276
1276
|
throw new Error("Field Error cannot be null");
|
|
1277
|
-
p.Error =
|
|
1277
|
+
p.Error = b.asString();
|
|
1278
1278
|
break;
|
|
1279
1279
|
}
|
|
1280
1280
|
case r.CallIndexFieldId: {
|
|
1281
|
-
if (
|
|
1281
|
+
if (b.isNull)
|
|
1282
1282
|
throw new Error("Field CallIndex cannot be null");
|
|
1283
|
-
p.CallIndex =
|
|
1283
|
+
p.CallIndex = b.asInt32();
|
|
1284
1284
|
break;
|
|
1285
1285
|
}
|
|
1286
1286
|
case r.FunctionNameFieldId: {
|
|
1287
|
-
if (
|
|
1287
|
+
if (b.isNull)
|
|
1288
1288
|
throw new Error("Field FunctionName cannot be null");
|
|
1289
|
-
p.FunctionName =
|
|
1289
|
+
p.FunctionName = b.asString();
|
|
1290
1290
|
break;
|
|
1291
1291
|
}
|
|
1292
1292
|
case r.ResultJsonFieldId: {
|
|
1293
|
-
if (
|
|
1293
|
+
if (b.isNull)
|
|
1294
1294
|
throw new Error("Field ResultJson cannot be null");
|
|
1295
|
-
p.ResultJson =
|
|
1295
|
+
p.ResultJson = b.asString();
|
|
1296
1296
|
break;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
})(e.ActionClientFunctionResult || (e.ActionClientFunctionResult = {}));
|
|
1301
|
-
})(
|
|
1301
|
+
})(br || (br = {}));
|
|
1302
1302
|
var Xe;
|
|
1303
1303
|
((e) => {
|
|
1304
1304
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048637, e.TeleportLayoutHash = 3197858841, e.ActionIdFieldId = 727023925, e.PayloadJsonFieldId = 3395085689;
|
|
@@ -1359,7 +1359,7 @@ var Xe;
|
|
|
1359
1359
|
}
|
|
1360
1360
|
e.fromProtocolMessage = h;
|
|
1361
1361
|
})(Xe || (Xe = {}));
|
|
1362
|
-
var
|
|
1362
|
+
var mr;
|
|
1363
1363
|
((e) => {
|
|
1364
1364
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048616, e.TeleportLayoutHash = 3168041334, e.ResultJsonFieldId = 3403385840, e.CallIdFieldId = 3748161056;
|
|
1365
1365
|
function l(o) {
|
|
@@ -1418,7 +1418,7 @@ var br;
|
|
|
1418
1418
|
return a(t, r);
|
|
1419
1419
|
}
|
|
1420
1420
|
e.fromProtocolMessage = h;
|
|
1421
|
-
})(
|
|
1421
|
+
})(mr || (mr = {}));
|
|
1422
1422
|
var yr;
|
|
1423
1423
|
((e) => {
|
|
1424
1424
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048611, e.TeleportLayoutHash = 2819248366, e.ActionIdFieldId = 727023925, e.TextFieldId = 2069861431;
|
|
@@ -1616,41 +1616,41 @@ var Nr;
|
|
|
1616
1616
|
}
|
|
1617
1617
|
r.writeToTeleport = I;
|
|
1618
1618
|
function N(T, p) {
|
|
1619
|
-
const
|
|
1620
|
-
return F(
|
|
1619
|
+
const b = E.create(T);
|
|
1620
|
+
return F(b, p);
|
|
1621
1621
|
}
|
|
1622
1622
|
r.decode = N;
|
|
1623
1623
|
function F(T, p) {
|
|
1624
|
-
const
|
|
1625
|
-
return n(
|
|
1624
|
+
const b = p ?? t();
|
|
1625
|
+
return n(b), m(T, b), b;
|
|
1626
1626
|
}
|
|
1627
1627
|
r.readFromTeleport = F;
|
|
1628
|
-
function
|
|
1629
|
-
let
|
|
1630
|
-
for (; (
|
|
1631
|
-
switch (
|
|
1628
|
+
function m(T, p) {
|
|
1629
|
+
let b;
|
|
1630
|
+
for (; (b = T.next()) !== null; )
|
|
1631
|
+
switch (b.fieldId) {
|
|
1632
1632
|
case r.LabelFieldId: {
|
|
1633
|
-
if (
|
|
1633
|
+
if (b.isNull)
|
|
1634
1634
|
throw new Error("Field Label cannot be null");
|
|
1635
|
-
p.Label =
|
|
1635
|
+
p.Label = b.asString();
|
|
1636
1636
|
break;
|
|
1637
1637
|
}
|
|
1638
1638
|
case r.ScoreFieldId: {
|
|
1639
|
-
if (
|
|
1639
|
+
if (b.isNull)
|
|
1640
1640
|
throw new Error("Field Score cannot be null");
|
|
1641
|
-
p.Score =
|
|
1641
|
+
p.Score = b.asFloat64();
|
|
1642
1642
|
break;
|
|
1643
1643
|
}
|
|
1644
1644
|
case r.IsFlaggedFieldId: {
|
|
1645
|
-
if (
|
|
1645
|
+
if (b.isNull)
|
|
1646
1646
|
throw new Error("Field IsFlagged cannot be null");
|
|
1647
|
-
p.IsFlagged =
|
|
1647
|
+
p.IsFlagged = b.asBool();
|
|
1648
1648
|
break;
|
|
1649
1649
|
}
|
|
1650
1650
|
case r.OriginalCategoryFieldId: {
|
|
1651
|
-
if (
|
|
1651
|
+
if (b.isNull)
|
|
1652
1652
|
throw new Error("Field OriginalCategory cannot be null");
|
|
1653
|
-
p.OriginalCategory =
|
|
1653
|
+
p.OriginalCategory = b.asString();
|
|
1654
1654
|
break;
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
@@ -2427,8 +2427,8 @@ var jr;
|
|
|
2427
2427
|
((r) => {
|
|
2428
2428
|
r.TeleportVersion = 1, r.TeleportLayoutHash = 3775948468, r.CallIndexFieldId = 719441180, r.FunctionNameFieldId = 814454131, r.ParametersFieldId = 2885165957;
|
|
2429
2429
|
function t(p) {
|
|
2430
|
-
const
|
|
2431
|
-
return n(
|
|
2430
|
+
const b = {};
|
|
2431
|
+
return n(b), p && Object.assign(b, p), b;
|
|
2432
2432
|
}
|
|
2433
2433
|
r.create = t;
|
|
2434
2434
|
function n(p) {
|
|
@@ -2436,59 +2436,59 @@ var jr;
|
|
|
2436
2436
|
}
|
|
2437
2437
|
r.reset = n;
|
|
2438
2438
|
function u(p) {
|
|
2439
|
-
const
|
|
2440
|
-
return I(p,
|
|
2439
|
+
const b = new y(r.TeleportVersion);
|
|
2440
|
+
return I(p, b), b.finish();
|
|
2441
2441
|
}
|
|
2442
2442
|
r.encode = u;
|
|
2443
|
-
function I(p,
|
|
2444
|
-
|
|
2443
|
+
function I(p, b) {
|
|
2444
|
+
b.writeInt32Field(r.CallIndexFieldId, p.CallIndex | 0), b.writeStringField(r.FunctionNameFieldId, p.FunctionName), b.writeArrayField(r.ParametersFieldId, C.Object, (P) => {
|
|
2445
2445
|
for (const V of p.Parameters)
|
|
2446
|
-
P.writeObject(
|
|
2447
|
-
|
|
2446
|
+
P.writeObject(Z.TeleportVersion, (_) => {
|
|
2447
|
+
Z.writeToTeleport(V, _);
|
|
2448
2448
|
});
|
|
2449
2449
|
});
|
|
2450
2450
|
}
|
|
2451
2451
|
r.writeToTeleport = I;
|
|
2452
|
-
function N(p,
|
|
2452
|
+
function N(p, b) {
|
|
2453
2453
|
const P = E.create(p);
|
|
2454
|
-
return F(P,
|
|
2454
|
+
return F(P, b);
|
|
2455
2455
|
}
|
|
2456
2456
|
r.decode = N;
|
|
2457
|
-
function F(p,
|
|
2458
|
-
const P =
|
|
2459
|
-
return n(P),
|
|
2457
|
+
function F(p, b) {
|
|
2458
|
+
const P = b ?? t();
|
|
2459
|
+
return n(P), m(p, P), P;
|
|
2460
2460
|
}
|
|
2461
2461
|
r.readFromTeleport = F;
|
|
2462
|
-
function
|
|
2462
|
+
function m(p, b) {
|
|
2463
2463
|
let P;
|
|
2464
2464
|
for (; (P = p.next()) !== null; )
|
|
2465
2465
|
switch (P.fieldId) {
|
|
2466
2466
|
case r.CallIndexFieldId: {
|
|
2467
2467
|
if (P.isNull)
|
|
2468
2468
|
throw new Error("Field CallIndex cannot be null");
|
|
2469
|
-
|
|
2469
|
+
b.CallIndex = P.asInt32();
|
|
2470
2470
|
break;
|
|
2471
2471
|
}
|
|
2472
2472
|
case r.FunctionNameFieldId: {
|
|
2473
2473
|
if (P.isNull)
|
|
2474
2474
|
throw new Error("Field FunctionName cannot be null");
|
|
2475
|
-
|
|
2475
|
+
b.FunctionName = P.asString();
|
|
2476
2476
|
break;
|
|
2477
2477
|
}
|
|
2478
2478
|
case r.ParametersFieldId: {
|
|
2479
2479
|
if (P.isNull)
|
|
2480
2480
|
throw new Error("Field Parameters cannot be null");
|
|
2481
|
-
|
|
2481
|
+
b.Parameters = T(P.asArray());
|
|
2482
2482
|
break;
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
function T(p) {
|
|
2487
|
-
const
|
|
2487
|
+
const b = [];
|
|
2488
2488
|
let P;
|
|
2489
2489
|
for (; (P = p.next()) !== null; )
|
|
2490
|
-
|
|
2491
|
-
return
|
|
2490
|
+
b.push(Z.readFromTeleport(P.asObject()));
|
|
2491
|
+
return b;
|
|
2492
2492
|
}
|
|
2493
2493
|
})(e.ActionOptimisticClientCall || (e.ActionOptimisticClientCall = {}));
|
|
2494
2494
|
})(jr || (jr = {}));
|
|
@@ -3150,7 +3150,7 @@ var Qr;
|
|
|
3150
3150
|
}
|
|
3151
3151
|
e.fromProtocolMessage = h;
|
|
3152
3152
|
})(Qr || (Qr = {}));
|
|
3153
|
-
var
|
|
3153
|
+
var Zr;
|
|
3154
3154
|
((e) => {
|
|
3155
3155
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048623, e.TeleportLayoutHash = 306932954, e.FadeoutTimeInSecFieldId = 2279034664, e.IdFieldId = 2994044322;
|
|
3156
3156
|
function l(o) {
|
|
@@ -3209,8 +3209,8 @@ var qr;
|
|
|
3209
3209
|
return a(t, r);
|
|
3210
3210
|
}
|
|
3211
3211
|
e.fromProtocolMessage = h;
|
|
3212
|
-
})(
|
|
3213
|
-
var
|
|
3212
|
+
})(Zr || (Zr = {}));
|
|
3213
|
+
var qr;
|
|
3214
3214
|
((e) => {
|
|
3215
3215
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048583, e.TeleportLayoutHash = 3199876816, e.LocationFieldId = 3182968015;
|
|
3216
3216
|
function l(o) {
|
|
@@ -3265,7 +3265,7 @@ var Zr;
|
|
|
3265
3265
|
return a(t, r);
|
|
3266
3266
|
}
|
|
3267
3267
|
e.fromProtocolMessage = h;
|
|
3268
|
-
})(
|
|
3268
|
+
})(qr || (qr = {}));
|
|
3269
3269
|
var Br;
|
|
3270
3270
|
((e) => {
|
|
3271
3271
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048579, e.TeleportLayoutHash = 3933620822, e.PreciseCreatedAtFieldId = 522063616, e.UserIdFieldId = 781727218, e.CreatedAtFieldId = 1263193241, e.TextFieldId = 2069861431, e.GenerateChatMessageFieldId = 4027184195;
|
|
@@ -4129,41 +4129,41 @@ var ct;
|
|
|
4129
4129
|
}
|
|
4130
4130
|
r.writeToTeleport = I;
|
|
4131
4131
|
function N(T, p) {
|
|
4132
|
-
const
|
|
4133
|
-
return F(
|
|
4132
|
+
const b = E.create(T);
|
|
4133
|
+
return F(b, p);
|
|
4134
4134
|
}
|
|
4135
4135
|
r.decode = N;
|
|
4136
4136
|
function F(T, p) {
|
|
4137
|
-
const
|
|
4138
|
-
return n(
|
|
4137
|
+
const b = p ?? t();
|
|
4138
|
+
return n(b), m(T, b), b;
|
|
4139
4139
|
}
|
|
4140
4140
|
r.readFromTeleport = F;
|
|
4141
|
-
function
|
|
4142
|
-
let
|
|
4143
|
-
for (; (
|
|
4144
|
-
switch (
|
|
4141
|
+
function m(T, p) {
|
|
4142
|
+
let b;
|
|
4143
|
+
for (; (b = T.next()) !== null; )
|
|
4144
|
+
switch (b.fieldId) {
|
|
4145
4145
|
case r.EventNameFieldId: {
|
|
4146
|
-
if (
|
|
4146
|
+
if (b.isNull)
|
|
4147
4147
|
throw new Error("Field EventName cannot be null");
|
|
4148
|
-
p.EventName =
|
|
4148
|
+
p.EventName = b.asString();
|
|
4149
4149
|
break;
|
|
4150
4150
|
}
|
|
4151
4151
|
case r.MessageFieldId: {
|
|
4152
|
-
if (
|
|
4152
|
+
if (b.isNull)
|
|
4153
4153
|
throw new Error("Field Message cannot be null");
|
|
4154
|
-
p.Message =
|
|
4154
|
+
p.Message = b.asString();
|
|
4155
4155
|
break;
|
|
4156
4156
|
}
|
|
4157
4157
|
case r.ParametersFieldId: {
|
|
4158
|
-
if (
|
|
4158
|
+
if (b.isNull)
|
|
4159
4159
|
throw new Error("Field Parameters cannot be null");
|
|
4160
|
-
p.Parameters =
|
|
4160
|
+
p.Parameters = b.asString();
|
|
4161
4161
|
break;
|
|
4162
4162
|
}
|
|
4163
4163
|
case r.TimeFieldId: {
|
|
4164
|
-
if (
|
|
4164
|
+
if (b.isNull)
|
|
4165
4165
|
throw new Error("Field Time cannot be null");
|
|
4166
|
-
p.Time =
|
|
4166
|
+
p.Time = b.asString();
|
|
4167
4167
|
break;
|
|
4168
4168
|
}
|
|
4169
4169
|
}
|
|
@@ -4370,41 +4370,41 @@ var ft;
|
|
|
4370
4370
|
}
|
|
4371
4371
|
r.writeToTeleport = I;
|
|
4372
4372
|
function N(T, p) {
|
|
4373
|
-
const
|
|
4374
|
-
return F(
|
|
4373
|
+
const b = E.create(T);
|
|
4374
|
+
return F(b, p);
|
|
4375
4375
|
}
|
|
4376
4376
|
r.decode = N;
|
|
4377
4377
|
function F(T, p) {
|
|
4378
|
-
const
|
|
4379
|
-
return n(
|
|
4378
|
+
const b = p ?? t();
|
|
4379
|
+
return n(b), m(T, b), b;
|
|
4380
4380
|
}
|
|
4381
4381
|
r.readFromTeleport = F;
|
|
4382
|
-
function
|
|
4383
|
-
let
|
|
4384
|
-
for (; (
|
|
4385
|
-
switch (
|
|
4382
|
+
function m(T, p) {
|
|
4383
|
+
let b;
|
|
4384
|
+
for (; (b = T.next()) !== null; )
|
|
4385
|
+
switch (b.fieldId) {
|
|
4386
4386
|
case r.MessageFieldId: {
|
|
4387
|
-
if (
|
|
4387
|
+
if (b.isNull)
|
|
4388
4388
|
throw new Error("Field Message cannot be null");
|
|
4389
|
-
p.Message =
|
|
4389
|
+
p.Message = b.asString();
|
|
4390
4390
|
break;
|
|
4391
4391
|
}
|
|
4392
4392
|
case r.ParametersFieldId: {
|
|
4393
|
-
if (
|
|
4393
|
+
if (b.isNull)
|
|
4394
4394
|
throw new Error("Field Parameters cannot be null");
|
|
4395
|
-
p.Parameters =
|
|
4395
|
+
p.Parameters = b.asString();
|
|
4396
4396
|
break;
|
|
4397
4397
|
}
|
|
4398
4398
|
case r.TypeFieldId: {
|
|
4399
|
-
if (
|
|
4399
|
+
if (b.isNull)
|
|
4400
4400
|
throw new Error("Field Type cannot be null");
|
|
4401
|
-
p.Type =
|
|
4401
|
+
p.Type = b.asInt32();
|
|
4402
4402
|
break;
|
|
4403
4403
|
}
|
|
4404
4404
|
case r.TimeFieldId: {
|
|
4405
|
-
if (
|
|
4405
|
+
if (b.isNull)
|
|
4406
4406
|
throw new Error("Field Time cannot be null");
|
|
4407
|
-
p.Time =
|
|
4407
|
+
p.Time = b.asString();
|
|
4408
4408
|
break;
|
|
4409
4409
|
}
|
|
4410
4410
|
}
|
|
@@ -4435,8 +4435,8 @@ var wt;
|
|
|
4435
4435
|
const N = I, F = u[I];
|
|
4436
4436
|
if (F == null)
|
|
4437
4437
|
continue;
|
|
4438
|
-
const
|
|
4439
|
-
|
|
4438
|
+
const m = n.beginEntry();
|
|
4439
|
+
m.writeKeyString(N), m.writeValueFloat64(F), m.complete();
|
|
4440
4440
|
}
|
|
4441
4441
|
});
|
|
4442
4442
|
}
|
|
@@ -4579,8 +4579,8 @@ var ht;
|
|
|
4579
4579
|
const N = I, F = u[I];
|
|
4580
4580
|
if (F == null)
|
|
4581
4581
|
continue;
|
|
4582
|
-
const
|
|
4583
|
-
|
|
4582
|
+
const m = n.beginEntry();
|
|
4583
|
+
m.writeKeyString(N), m.writeValueFloat32(F), m.complete();
|
|
4584
4584
|
}
|
|
4585
4585
|
});
|
|
4586
4586
|
}
|
|
@@ -4959,41 +4959,41 @@ var Tt;
|
|
|
4959
4959
|
}
|
|
4960
4960
|
r.writeToTeleport = I;
|
|
4961
4961
|
function N(T, p) {
|
|
4962
|
-
const
|
|
4963
|
-
return F(
|
|
4962
|
+
const b = E.create(T);
|
|
4963
|
+
return F(b, p);
|
|
4964
4964
|
}
|
|
4965
4965
|
r.decode = N;
|
|
4966
4966
|
function F(T, p) {
|
|
4967
|
-
const
|
|
4968
|
-
return n(
|
|
4967
|
+
const b = p ?? t();
|
|
4968
|
+
return n(b), m(T, b), b;
|
|
4969
4969
|
}
|
|
4970
4970
|
r.readFromTeleport = F;
|
|
4971
|
-
function
|
|
4972
|
-
let
|
|
4973
|
-
for (; (
|
|
4974
|
-
switch (
|
|
4971
|
+
function m(T, p) {
|
|
4972
|
+
let b;
|
|
4973
|
+
for (; (b = T.next()) !== null; )
|
|
4974
|
+
switch (b.fieldId) {
|
|
4975
4975
|
case r.EventNameFieldId: {
|
|
4976
|
-
if (
|
|
4976
|
+
if (b.isNull)
|
|
4977
4977
|
throw new Error("Field EventName cannot be null");
|
|
4978
|
-
p.EventName =
|
|
4978
|
+
p.EventName = b.asString();
|
|
4979
4979
|
break;
|
|
4980
4980
|
}
|
|
4981
4981
|
case r.UsageFieldId: {
|
|
4982
|
-
if (
|
|
4982
|
+
if (b.isNull)
|
|
4983
4983
|
throw new Error("Field Usage cannot be null");
|
|
4984
|
-
p.Usage =
|
|
4984
|
+
p.Usage = b.asFloat32();
|
|
4985
4985
|
break;
|
|
4986
4986
|
}
|
|
4987
4987
|
case r.ParametersFieldId: {
|
|
4988
|
-
if (
|
|
4988
|
+
if (b.isNull)
|
|
4989
4989
|
throw new Error("Field Parameters cannot be null");
|
|
4990
|
-
p.Parameters =
|
|
4990
|
+
p.Parameters = b.asString();
|
|
4991
4991
|
break;
|
|
4992
4992
|
}
|
|
4993
4993
|
case r.TimeFieldId: {
|
|
4994
|
-
if (
|
|
4994
|
+
if (b.isNull)
|
|
4995
4995
|
throw new Error("Field Time cannot be null");
|
|
4996
|
-
p.Time =
|
|
4996
|
+
p.Time = b.asString();
|
|
4997
4997
|
break;
|
|
4998
4998
|
}
|
|
4999
4999
|
}
|
|
@@ -5102,7 +5102,7 @@ var Ft;
|
|
|
5102
5102
|
}
|
|
5103
5103
|
e.fromProtocolMessage = h;
|
|
5104
5104
|
})(Ft || (Ft = {}));
|
|
5105
|
-
var
|
|
5105
|
+
var bt;
|
|
5106
5106
|
((e) => {
|
|
5107
5107
|
e.TeleportVersion = 1, e.TeleportOpcode = 4194309, e.TeleportLayoutHash = 2782422021, e.AverageVolumeFieldId = 205938238, e.IsFirstFieldId = 1594075008, e.TimeStampInInterleavedSamplesFieldId = 2026534360, e.SamplesFieldId = 3409001585, e.AudioEventEstimatedDurationFieldId = 3466650495, e.FrameSizeInInterleavedSamplesFieldId = 4007456593, e.IsLastFieldId = 4017217601, e.SequenceFieldId = 4065417427, e.EpochFieldId = 4086360332;
|
|
5108
5108
|
function l(o) {
|
|
@@ -5203,8 +5203,8 @@ var mt;
|
|
|
5203
5203
|
return a(t, r);
|
|
5204
5204
|
}
|
|
5205
5205
|
e.fromProtocolMessage = h;
|
|
5206
|
-
})(
|
|
5207
|
-
var
|
|
5206
|
+
})(bt || (bt = {}));
|
|
5207
|
+
var mt;
|
|
5208
5208
|
((e) => {
|
|
5209
5209
|
e.TeleportVersion = 1, e.TeleportOpcode = 4194308, e.TeleportLayoutHash = 1723412637, e.VolumeFieldId = 2079085407, e.CountFieldId = 3485914759;
|
|
5210
5210
|
function l(o) {
|
|
@@ -5263,7 +5263,7 @@ var bt;
|
|
|
5263
5263
|
return a(t, r);
|
|
5264
5264
|
}
|
|
5265
5265
|
e.fromProtocolMessage = h;
|
|
5266
|
-
})(
|
|
5266
|
+
})(mt || (mt = {}));
|
|
5267
5267
|
var re;
|
|
5268
5268
|
((e) => {
|
|
5269
5269
|
e.TeleportVersion = 1, e.TeleportOpcode = 4194305, e.TeleportLayoutHash = 2116996259, e.DescriptionFieldId = 1368629611, e.ChannelsFieldId = 2431514951, e.BitDepthFieldId = 2914494629, e.CodecFieldId = 3284746250, e.SampleRateFieldId = 4101844078;
|
|
@@ -5417,11 +5417,11 @@ var Qe;
|
|
|
5417
5417
|
}), n.writeDictionaryField(e.FeatureFlagsFieldId, C.String, C.Bool, (u) => {
|
|
5418
5418
|
const I = t.FeatureFlags;
|
|
5419
5419
|
for (const N of Object.keys(I)) {
|
|
5420
|
-
const F = N,
|
|
5421
|
-
if (
|
|
5420
|
+
const F = N, m = I[N];
|
|
5421
|
+
if (m == null)
|
|
5422
5422
|
continue;
|
|
5423
5423
|
const T = u.beginEntry();
|
|
5424
|
-
T.writeKeyString(F), T.writeValueBool(
|
|
5424
|
+
T.writeKeyString(F), T.writeValueBool(m), T.complete();
|
|
5425
5425
|
}
|
|
5426
5426
|
}), n.writeStringField(e.SpaceIdFieldId, t.SpaceId), n.writeStringField(e.PrimaryUserIdFieldId, t.PrimaryUserId), n.writeStringField(e.ChannelTemplateIdFieldId, t.ChannelTemplateId);
|
|
5427
5427
|
}
|
|
@@ -5675,7 +5675,7 @@ var Nt;
|
|
|
5675
5675
|
}
|
|
5676
5676
|
e.fromProtocolMessage = h;
|
|
5677
5677
|
})(Nt || (Nt = {}));
|
|
5678
|
-
var
|
|
5678
|
+
var Ze;
|
|
5679
5679
|
((e) => {
|
|
5680
5680
|
e.TeleportVersion = 1, e.TeleportOpcode = 0, e.TeleportLayoutHash = 1939420761, e.DeviceIdFieldId = 76337612, e.InstallIdFieldId = 185396121, e.UserAgentFieldId = 388632637, e.ContextTypeFieldId = 417197284, e.HasInputFieldId = 469070965, e.UserTypeFieldId = 470595159, e.UserIdFieldId = 781727218, e.ProductIdFieldId = 834078886, e.AuthSessionIdFieldId = 1043273762, e.OpcodeGroupsFromServerFieldId = 1175184220, e.ReceiveAllMessagesFieldId = 1236999138, e.DescriptionFieldId = 1368629611, e.LocaleFieldId = 1715899485, e.SdkTypeFieldId = 1942830531, e.PayloadTypeFieldId = 2142346422, e.VersionIdFieldId = 2598291686, e.ClientTypeFieldId = 2810953526, e.ParametersFieldId = 2885165957, e.IsInternalFieldId = 3586157513, e.OpcodeGroupsToServerFieldId = 3686066300, e.ChannelLocaleFieldId = 3717933110, e.ProtocolVersionFieldId = 3828903910, e.ServerSessionIdFieldId = 3914217035, e.EmbeddedSpaceIdFieldId = 4062655306;
|
|
5681
5681
|
function l(r) {
|
|
@@ -5699,8 +5699,8 @@ var qe;
|
|
|
5699
5699
|
const N = I, F = u[I];
|
|
5700
5700
|
if (F == null)
|
|
5701
5701
|
continue;
|
|
5702
|
-
const
|
|
5703
|
-
|
|
5702
|
+
const m = n.beginEntry();
|
|
5703
|
+
m.writeKeyString(N), m.writeValueString(F), m.complete();
|
|
5704
5704
|
}
|
|
5705
5705
|
}), t.writeBoolField(e.IsInternalFieldId, r.IsInternal), t.writeInt32Field(e.OpcodeGroupsToServerFieldId, r.OpcodeGroupsToServer), t.writeStringField(e.ChannelLocaleFieldId, r.ChannelLocale), t.writeInt32Field(e.ProtocolVersionFieldId, r.ProtocolVersion | 0), t.writeStringField(e.ServerSessionIdFieldId, r.ServerSessionId), t.writeStringField(e.EmbeddedSpaceIdFieldId, r.EmbeddedSpaceId);
|
|
5706
5706
|
}
|
|
@@ -5884,7 +5884,7 @@ var qe;
|
|
|
5884
5884
|
}
|
|
5885
5885
|
return t;
|
|
5886
5886
|
}
|
|
5887
|
-
})(
|
|
5887
|
+
})(Ze || (Ze = {}));
|
|
5888
5888
|
var he;
|
|
5889
5889
|
((e) => {
|
|
5890
5890
|
e.TeleportVersion = 1, e.TeleportOpcode = 0, e.TeleportLayoutHash = 2083170344, e.AuthTicketFieldId = 746516514, e.PriorityFieldId = 877841741, e.OpcodeGroupsFromServerFieldId = 1175184220, e.DescriptionFieldId = 1368629611, e.UriFieldId = 2341021724, e.TypeFieldId = 3167053791, e.OpcodeGroupsToServerFieldId = 3686066300;
|
|
@@ -5999,8 +5999,8 @@ var L;
|
|
|
5999
5999
|
const N = I, F = u[I];
|
|
6000
6000
|
if (F == null)
|
|
6001
6001
|
continue;
|
|
6002
|
-
const
|
|
6003
|
-
|
|
6002
|
+
const m = n.beginEntry();
|
|
6003
|
+
m.writeKeyString(N), m.writeValueString(F), m.complete();
|
|
6004
6004
|
}
|
|
6005
6005
|
}), t.writeBoolField(e.IsInternalFieldId, r.IsInternal), t.writeStringField(e.ChannelLocaleFieldId, r.ChannelLocale), t.writeStringField(e.EmbeddedSpaceIdFieldId, r.EmbeddedSpaceId);
|
|
6006
6006
|
}
|
|
@@ -6635,7 +6635,7 @@ var Ct;
|
|
|
6635
6635
|
}
|
|
6636
6636
|
e.fromProtocolMessage = h;
|
|
6637
6637
|
})(Ct || (Ct = {}));
|
|
6638
|
-
var
|
|
6638
|
+
var qe;
|
|
6639
6639
|
((e) => {
|
|
6640
6640
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048601, e.TeleportLayoutHash = 2238437484, e.ScopesFieldId = 112005851, e.FunctionNameFieldId = 814454131, e.FunctionIdFieldId = 976255570, e.ClientBackendTokenFieldId = 1123310456, e.ParametersFieldId = 2885165957, e.CallIdFieldId = 3748161056, e.InstanceIdFieldId = 4289118421;
|
|
6641
6641
|
function l(t) {
|
|
@@ -6660,8 +6660,8 @@ var Ze;
|
|
|
6660
6660
|
});
|
|
6661
6661
|
}), n.writeStringField(e.FunctionNameFieldId, t.FunctionName), n.writeGuidField(e.FunctionIdFieldId, t.FunctionId), n.writeStringField(e.ClientBackendTokenFieldId, t.ClientBackendToken), n.writeArrayField(e.ParametersFieldId, C.Object, (u) => {
|
|
6662
6662
|
for (const I of t.Parameters)
|
|
6663
|
-
u.writeObject(
|
|
6664
|
-
|
|
6663
|
+
u.writeObject(Z.TeleportVersion, (N) => {
|
|
6664
|
+
Z.writeToTeleport(I, N);
|
|
6665
6665
|
});
|
|
6666
6666
|
}), n.writeGuidField(e.CallIdFieldId, t.CallId), n.writeGuidField(e.InstanceIdFieldId, t.InstanceId);
|
|
6667
6667
|
}
|
|
@@ -6745,14 +6745,14 @@ var Ze;
|
|
|
6745
6745
|
const n = [];
|
|
6746
6746
|
let u;
|
|
6747
6747
|
for (; (u = t.next()) !== null; )
|
|
6748
|
-
n.push(
|
|
6748
|
+
n.push(Z.readFromTeleport(u.asObject()));
|
|
6749
6749
|
return n;
|
|
6750
6750
|
}
|
|
6751
6751
|
((t) => {
|
|
6752
6752
|
t.TeleportVersion = 1, t.TeleportLayoutHash = 1710859415, t.IdFieldId = 2994044322, t.TypeFieldId = 3167053791;
|
|
6753
6753
|
function n(p) {
|
|
6754
|
-
const
|
|
6755
|
-
return u(
|
|
6754
|
+
const b = {};
|
|
6755
|
+
return u(b), p && Object.assign(b, p), b;
|
|
6756
6756
|
}
|
|
6757
6757
|
t.create = n;
|
|
6758
6758
|
function u(p) {
|
|
@@ -6760,44 +6760,44 @@ var Ze;
|
|
|
6760
6760
|
}
|
|
6761
6761
|
t.reset = u;
|
|
6762
6762
|
function I(p) {
|
|
6763
|
-
const
|
|
6764
|
-
return N(p,
|
|
6763
|
+
const b = new y(t.TeleportVersion);
|
|
6764
|
+
return N(p, b), b.finish();
|
|
6765
6765
|
}
|
|
6766
6766
|
t.encode = I;
|
|
6767
|
-
function N(p,
|
|
6768
|
-
|
|
6767
|
+
function N(p, b) {
|
|
6768
|
+
b.writeStringField(t.IdFieldId, p.Id), b.writeStringField(t.TypeFieldId, p.Type);
|
|
6769
6769
|
}
|
|
6770
6770
|
t.writeToTeleport = N;
|
|
6771
|
-
function F(p,
|
|
6771
|
+
function F(p, b) {
|
|
6772
6772
|
const P = E.create(p);
|
|
6773
|
-
return
|
|
6773
|
+
return m(P, b);
|
|
6774
6774
|
}
|
|
6775
6775
|
t.decode = F;
|
|
6776
|
-
function
|
|
6777
|
-
const P =
|
|
6776
|
+
function m(p, b) {
|
|
6777
|
+
const P = b ?? n();
|
|
6778
6778
|
return u(P), T(p, P), P;
|
|
6779
6779
|
}
|
|
6780
|
-
t.readFromTeleport =
|
|
6781
|
-
function T(p,
|
|
6780
|
+
t.readFromTeleport = m;
|
|
6781
|
+
function T(p, b) {
|
|
6782
6782
|
let P;
|
|
6783
6783
|
for (; (P = p.next()) !== null; )
|
|
6784
6784
|
switch (P.fieldId) {
|
|
6785
6785
|
case t.IdFieldId: {
|
|
6786
6786
|
if (P.isNull)
|
|
6787
6787
|
throw new Error("Field Id cannot be null");
|
|
6788
|
-
|
|
6788
|
+
b.Id = P.asString();
|
|
6789
6789
|
break;
|
|
6790
6790
|
}
|
|
6791
6791
|
case t.TypeFieldId: {
|
|
6792
6792
|
if (P.isNull)
|
|
6793
6793
|
throw new Error("Field Type cannot be null");
|
|
6794
|
-
|
|
6794
|
+
b.Type = P.asString();
|
|
6795
6795
|
break;
|
|
6796
6796
|
}
|
|
6797
6797
|
}
|
|
6798
6798
|
}
|
|
6799
6799
|
})(e.ScopeEntry || (e.ScopeEntry = {}));
|
|
6800
|
-
})(
|
|
6800
|
+
})(qe || (qe = {}));
|
|
6801
6801
|
var _t;
|
|
6802
6802
|
((e) => {
|
|
6803
6803
|
e.TeleportVersion = 1, e.TeleportOpcode = 1048629, e.TeleportLayoutHash = 1508754766, e.CallIdFieldId = 3748161056, e.InstanceIdFieldId = 4289118421;
|
|
@@ -7298,71 +7298,71 @@ var X;
|
|
|
7298
7298
|
}
|
|
7299
7299
|
r.writeToTeleport = I;
|
|
7300
7300
|
function N(T, p) {
|
|
7301
|
-
const
|
|
7302
|
-
return F(
|
|
7301
|
+
const b = E.create(T);
|
|
7302
|
+
return F(b, p);
|
|
7303
7303
|
}
|
|
7304
7304
|
r.decode = N;
|
|
7305
7305
|
function F(T, p) {
|
|
7306
|
-
const
|
|
7307
|
-
return n(
|
|
7306
|
+
const b = p ?? t();
|
|
7307
|
+
return n(b), m(T, b), b;
|
|
7308
7308
|
}
|
|
7309
7309
|
r.readFromTeleport = F;
|
|
7310
|
-
function
|
|
7311
|
-
let
|
|
7312
|
-
for (; (
|
|
7313
|
-
switch (
|
|
7310
|
+
function m(T, p) {
|
|
7311
|
+
let b;
|
|
7312
|
+
for (; (b = T.next()) !== null; )
|
|
7313
|
+
switch (b.fieldId) {
|
|
7314
7314
|
case r.HasDefaultValueFieldId: {
|
|
7315
|
-
if (
|
|
7315
|
+
if (b.isNull)
|
|
7316
7316
|
throw new Error("Field HasDefaultValue cannot be null");
|
|
7317
|
-
p.HasDefaultValue =
|
|
7317
|
+
p.HasDefaultValue = b.asBool();
|
|
7318
7318
|
break;
|
|
7319
7319
|
}
|
|
7320
7320
|
case r.DefaultValueJsonFieldId: {
|
|
7321
|
-
if (
|
|
7321
|
+
if (b.isNull)
|
|
7322
7322
|
throw new Error("Field DefaultValueJson cannot be null");
|
|
7323
|
-
p.DefaultValueJson =
|
|
7323
|
+
p.DefaultValueJson = b.asString();
|
|
7324
7324
|
break;
|
|
7325
7325
|
}
|
|
7326
7326
|
case r.EnumerableItemTypeNameFieldId: {
|
|
7327
|
-
if (
|
|
7327
|
+
if (b.isNull)
|
|
7328
7328
|
throw new Error("Field EnumerableItemTypeName cannot be null");
|
|
7329
|
-
p.EnumerableItemTypeName =
|
|
7329
|
+
p.EnumerableItemTypeName = b.asString();
|
|
7330
7330
|
break;
|
|
7331
7331
|
}
|
|
7332
7332
|
case r.DescriptionFieldId: {
|
|
7333
|
-
if (
|
|
7333
|
+
if (b.isNull)
|
|
7334
7334
|
throw new Error("Field Description cannot be null");
|
|
7335
|
-
p.Description =
|
|
7335
|
+
p.Description = b.asString();
|
|
7336
7336
|
break;
|
|
7337
7337
|
}
|
|
7338
7338
|
case r.DefaultValueDataFieldId: {
|
|
7339
|
-
if (
|
|
7339
|
+
if (b.isNull)
|
|
7340
7340
|
throw new Error("Field DefaultValueData cannot be null");
|
|
7341
|
-
p.DefaultValueData =
|
|
7341
|
+
p.DefaultValueData = b.asBinary();
|
|
7342
7342
|
break;
|
|
7343
7343
|
}
|
|
7344
7344
|
case r.IsEnumerableFieldId: {
|
|
7345
|
-
if (
|
|
7345
|
+
if (b.isNull)
|
|
7346
7346
|
throw new Error("Field IsEnumerable cannot be null");
|
|
7347
|
-
p.IsEnumerable =
|
|
7347
|
+
p.IsEnumerable = b.asBool();
|
|
7348
7348
|
break;
|
|
7349
7349
|
}
|
|
7350
7350
|
case r.TypeNameFieldId: {
|
|
7351
|
-
if (
|
|
7351
|
+
if (b.isNull)
|
|
7352
7352
|
throw new Error("Field TypeName cannot be null");
|
|
7353
|
-
p.TypeName =
|
|
7353
|
+
p.TypeName = b.asString();
|
|
7354
7354
|
break;
|
|
7355
7355
|
}
|
|
7356
7356
|
case r.ParameterNameFieldId: {
|
|
7357
|
-
if (
|
|
7357
|
+
if (b.isNull)
|
|
7358
7358
|
throw new Error("Field ParameterName cannot be null");
|
|
7359
|
-
p.ParameterName =
|
|
7359
|
+
p.ParameterName = b.asString();
|
|
7360
7360
|
break;
|
|
7361
7361
|
}
|
|
7362
7362
|
case r.ParameterIndexFieldId: {
|
|
7363
|
-
if (
|
|
7363
|
+
if (b.isNull)
|
|
7364
7364
|
throw new Error("Field ParameterIndex cannot be null");
|
|
7365
|
-
p.ParameterIndex =
|
|
7365
|
+
p.ParameterIndex = b.asInt32();
|
|
7366
7366
|
break;
|
|
7367
7367
|
}
|
|
7368
7368
|
}
|
|
@@ -7513,7 +7513,7 @@ var Ce;
|
|
|
7513
7513
|
}
|
|
7514
7514
|
e.fromProtocolMessage = h;
|
|
7515
7515
|
})(Ce || (Ce = {}));
|
|
7516
|
-
var
|
|
7516
|
+
var Z;
|
|
7517
7517
|
((e) => {
|
|
7518
7518
|
e.TeleportVersion = 1, e.TeleportOpcode = 0, e.TeleportLayoutHash = 760727997, e.EnumerationIdFieldId = 467348717, e.EnumerableItemTypeNameFieldId = 972460562, e.ValueJsonFieldId = 1911490601, e.IsEnumerableFieldId = 2603556958, e.TypeNameFieldId = 3609695522, e.ValueDataFieldId = 4094837378, e.ParameterIndexFieldId = 4257460908;
|
|
7519
7519
|
function l(o) {
|
|
@@ -7602,7 +7602,7 @@ var q;
|
|
|
7602
7602
|
return a(t, r);
|
|
7603
7603
|
}
|
|
7604
7604
|
e.fromProtocolMessage = h;
|
|
7605
|
-
})(
|
|
7605
|
+
})(Z || (Z = {}));
|
|
7606
7606
|
var te;
|
|
7607
7607
|
((e) => {
|
|
7608
7608
|
e.TeleportVersion = 1, e.TeleportOpcode = 65549, e.TeleportLayoutHash = 4089149075;
|
|
@@ -7652,8 +7652,8 @@ var Be;
|
|
|
7652
7652
|
((e) => {
|
|
7653
7653
|
e.TeleportVersion = 3, e.TeleportOpcode = 65539, e.TeleportLayoutHash = 2784858855, e.FirstUserIdFieldId = 693643444, e.ClientsFieldId = 1144553441, e.TrackingStreamsFieldId = 1497620243, e.ChannelIdFieldId = 1559330978, e.SessionIdFieldId = 1999510636, e.ChannelUrlFieldId = 2277643855, e.ChannelNameFieldId = 2469008121, e.OrganisationNameFieldId = 3219210453, e.FunctionsFieldId = 3678477544, e.UIStreamsFieldId = 3696445035, e.SpaceIdFieldId = 3707543140, e.PrimaryUserIdFieldId = 3712281496, e.ChannelInstanceIdFieldId = 3823842552, e.AudioStreamsFieldId = 3895362455, e.VideoStreamsFieldId = 3897397815, e.SpaceNameFieldId = 4225107827;
|
|
7654
7654
|
function l(F) {
|
|
7655
|
-
const
|
|
7656
|
-
return i(
|
|
7655
|
+
const m = {};
|
|
7656
|
+
return i(m), F && Object.assign(m, F), m;
|
|
7657
7657
|
}
|
|
7658
7658
|
e.create = l;
|
|
7659
7659
|
function i(F) {
|
|
@@ -7661,15 +7661,15 @@ var Be;
|
|
|
7661
7661
|
}
|
|
7662
7662
|
e.reset = i;
|
|
7663
7663
|
function s(F) {
|
|
7664
|
-
const
|
|
7665
|
-
return d(F,
|
|
7664
|
+
const m = new y(e.TeleportVersion);
|
|
7665
|
+
return d(F, m), m.finish();
|
|
7666
7666
|
}
|
|
7667
7667
|
e.encode = s;
|
|
7668
|
-
function d(F,
|
|
7669
|
-
|
|
7668
|
+
function d(F, m) {
|
|
7669
|
+
m.writeStringField(e.FirstUserIdFieldId, F.FirstUserId), m.writeDictionaryField(e.ClientsFieldId, C.Int32, C.Object, (T) => {
|
|
7670
7670
|
const p = F.Clients;
|
|
7671
|
-
for (const
|
|
7672
|
-
const P = Number(
|
|
7671
|
+
for (const b of Object.keys(p)) {
|
|
7672
|
+
const P = Number(b), V = p[b];
|
|
7673
7673
|
if (V == null)
|
|
7674
7674
|
continue;
|
|
7675
7675
|
const _ = T.beginEntry();
|
|
@@ -7677,10 +7677,10 @@ var Be;
|
|
|
7677
7677
|
L.writeToTeleport(V, g);
|
|
7678
7678
|
}), _.complete();
|
|
7679
7679
|
}
|
|
7680
|
-
}),
|
|
7680
|
+
}), m.writeDictionaryField(e.TrackingStreamsFieldId, C.String, C.Object, (T) => {
|
|
7681
7681
|
const p = F.TrackingStreams;
|
|
7682
|
-
for (const
|
|
7683
|
-
const P =
|
|
7682
|
+
for (const b of Object.keys(p)) {
|
|
7683
|
+
const P = b, V = p[b];
|
|
7684
7684
|
if (V == null)
|
|
7685
7685
|
continue;
|
|
7686
7686
|
const _ = T.beginEntry();
|
|
@@ -7688,10 +7688,10 @@ var Be;
|
|
|
7688
7688
|
e.TrackingStreamState.writeToTeleport(V, g);
|
|
7689
7689
|
}), _.complete();
|
|
7690
7690
|
}
|
|
7691
|
-
}),
|
|
7691
|
+
}), m.writeStringField(e.ChannelIdFieldId, F.ChannelId), m.writeStringField(e.SessionIdFieldId, F.SessionId), m.writeStringField(e.ChannelUrlFieldId, F.ChannelUrl), m.writeStringField(e.ChannelNameFieldId, F.ChannelName), m.writeStringField(e.OrganisationNameFieldId, F.OrganisationName), m.writeDictionaryField(e.FunctionsFieldId, C.Int32, C.Array, (T) => {
|
|
7692
7692
|
const p = F.Functions;
|
|
7693
|
-
for (const
|
|
7694
|
-
const P = Number(
|
|
7693
|
+
for (const b of Object.keys(p)) {
|
|
7694
|
+
const P = Number(b), V = p[b];
|
|
7695
7695
|
if (V == null)
|
|
7696
7696
|
continue;
|
|
7697
7697
|
const _ = T.beginEntry();
|
|
@@ -7702,10 +7702,10 @@ var Be;
|
|
|
7702
7702
|
});
|
|
7703
7703
|
}), _.complete();
|
|
7704
7704
|
}
|
|
7705
|
-
}),
|
|
7705
|
+
}), m.writeDictionaryField(e.UIStreamsFieldId, C.String, C.Object, (T) => {
|
|
7706
7706
|
const p = F.UIStreams;
|
|
7707
|
-
for (const
|
|
7708
|
-
const P =
|
|
7707
|
+
for (const b of Object.keys(p)) {
|
|
7708
|
+
const P = b, V = p[b];
|
|
7709
7709
|
if (V == null)
|
|
7710
7710
|
continue;
|
|
7711
7711
|
const _ = T.beginEntry();
|
|
@@ -7713,10 +7713,10 @@ var Be;
|
|
|
7713
7713
|
e.UIStreamState.writeToTeleport(V, g);
|
|
7714
7714
|
}), _.complete();
|
|
7715
7715
|
}
|
|
7716
|
-
}),
|
|
7716
|
+
}), m.writeStringField(e.SpaceIdFieldId, F.SpaceId), m.writeStringField(e.PrimaryUserIdFieldId, F.PrimaryUserId), m.writeStringField(e.ChannelInstanceIdFieldId, F.ChannelInstanceId), m.writeDictionaryField(e.AudioStreamsFieldId, C.String, C.Object, (T) => {
|
|
7717
7717
|
const p = F.AudioStreams;
|
|
7718
|
-
for (const
|
|
7719
|
-
const P =
|
|
7718
|
+
for (const b of Object.keys(p)) {
|
|
7719
|
+
const P = b, V = p[b];
|
|
7720
7720
|
if (V == null)
|
|
7721
7721
|
continue;
|
|
7722
7722
|
const _ = T.beginEntry();
|
|
@@ -7724,10 +7724,10 @@ var Be;
|
|
|
7724
7724
|
e.AudioStreamState.writeToTeleport(V, g);
|
|
7725
7725
|
}), _.complete();
|
|
7726
7726
|
}
|
|
7727
|
-
}),
|
|
7727
|
+
}), m.writeDictionaryField(e.VideoStreamsFieldId, C.String, C.Object, (T) => {
|
|
7728
7728
|
const p = F.VideoStreams;
|
|
7729
|
-
for (const
|
|
7730
|
-
const P =
|
|
7729
|
+
for (const b of Object.keys(p)) {
|
|
7730
|
+
const P = b, V = p[b];
|
|
7731
7731
|
if (V == null)
|
|
7732
7732
|
continue;
|
|
7733
7733
|
const _ = T.beginEntry();
|
|
@@ -7735,221 +7735,221 @@ var Be;
|
|
|
7735
7735
|
e.VideoStreamState.writeToTeleport(V, g);
|
|
7736
7736
|
}), _.complete();
|
|
7737
7737
|
}
|
|
7738
|
-
}),
|
|
7738
|
+
}), m.writeStringField(e.SpaceNameFieldId, F.SpaceName);
|
|
7739
7739
|
}
|
|
7740
7740
|
e.writeToTeleport = d;
|
|
7741
|
-
function a(F,
|
|
7741
|
+
function a(F, m) {
|
|
7742
7742
|
const T = E.create(F);
|
|
7743
|
-
return c(T,
|
|
7743
|
+
return c(T, m);
|
|
7744
7744
|
}
|
|
7745
7745
|
e.decode = a;
|
|
7746
|
-
function c(F,
|
|
7747
|
-
const T =
|
|
7746
|
+
function c(F, m) {
|
|
7747
|
+
const T = m ?? l();
|
|
7748
7748
|
return i(T), f(F, T), T;
|
|
7749
7749
|
}
|
|
7750
7750
|
e.readFromTeleport = c;
|
|
7751
|
-
function f(F,
|
|
7751
|
+
function f(F, m) {
|
|
7752
7752
|
let T;
|
|
7753
7753
|
for (; (T = F.next()) !== null; )
|
|
7754
7754
|
switch (T.fieldId) {
|
|
7755
7755
|
case e.FirstUserIdFieldId: {
|
|
7756
7756
|
if (T.isNull)
|
|
7757
7757
|
throw new Error("Field FirstUserId cannot be null");
|
|
7758
|
-
|
|
7758
|
+
m.FirstUserId = T.asString();
|
|
7759
7759
|
break;
|
|
7760
7760
|
}
|
|
7761
7761
|
case e.ClientsFieldId: {
|
|
7762
7762
|
if (T.isNull)
|
|
7763
7763
|
throw new Error("Field Clients cannot be null");
|
|
7764
|
-
|
|
7764
|
+
m.Clients = o(T.asDictionary());
|
|
7765
7765
|
break;
|
|
7766
7766
|
}
|
|
7767
7767
|
case e.TrackingStreamsFieldId: {
|
|
7768
7768
|
if (T.isNull)
|
|
7769
7769
|
throw new Error("Field TrackingStreams cannot be null");
|
|
7770
|
-
|
|
7770
|
+
m.TrackingStreams = r(T.asDictionary());
|
|
7771
7771
|
break;
|
|
7772
7772
|
}
|
|
7773
7773
|
case e.ChannelIdFieldId: {
|
|
7774
7774
|
if (T.isNull)
|
|
7775
7775
|
throw new Error("Field ChannelId cannot be null");
|
|
7776
|
-
|
|
7776
|
+
m.ChannelId = T.asString();
|
|
7777
7777
|
break;
|
|
7778
7778
|
}
|
|
7779
7779
|
case e.SessionIdFieldId: {
|
|
7780
7780
|
if (T.isNull)
|
|
7781
7781
|
throw new Error("Field SessionId cannot be null");
|
|
7782
|
-
|
|
7782
|
+
m.SessionId = T.asString();
|
|
7783
7783
|
break;
|
|
7784
7784
|
}
|
|
7785
7785
|
case e.ChannelUrlFieldId: {
|
|
7786
7786
|
if (T.isNull)
|
|
7787
7787
|
throw new Error("Field ChannelUrl cannot be null");
|
|
7788
|
-
|
|
7788
|
+
m.ChannelUrl = T.asString();
|
|
7789
7789
|
break;
|
|
7790
7790
|
}
|
|
7791
7791
|
case e.ChannelNameFieldId: {
|
|
7792
7792
|
if (T.isNull)
|
|
7793
7793
|
throw new Error("Field ChannelName cannot be null");
|
|
7794
|
-
|
|
7794
|
+
m.ChannelName = T.asString();
|
|
7795
7795
|
break;
|
|
7796
7796
|
}
|
|
7797
7797
|
case e.OrganisationNameFieldId: {
|
|
7798
7798
|
if (T.isNull)
|
|
7799
7799
|
throw new Error("Field OrganisationName cannot be null");
|
|
7800
|
-
|
|
7800
|
+
m.OrganisationName = T.asString();
|
|
7801
7801
|
break;
|
|
7802
7802
|
}
|
|
7803
7803
|
case e.FunctionsFieldId: {
|
|
7804
7804
|
if (T.isNull)
|
|
7805
7805
|
throw new Error("Field Functions cannot be null");
|
|
7806
|
-
|
|
7806
|
+
m.Functions = t(T.asDictionary());
|
|
7807
7807
|
break;
|
|
7808
7808
|
}
|
|
7809
7809
|
case e.UIStreamsFieldId: {
|
|
7810
7810
|
if (T.isNull)
|
|
7811
7811
|
throw new Error("Field UIStreams cannot be null");
|
|
7812
|
-
|
|
7812
|
+
m.UIStreams = n(T.asDictionary());
|
|
7813
7813
|
break;
|
|
7814
7814
|
}
|
|
7815
7815
|
case e.SpaceIdFieldId: {
|
|
7816
7816
|
if (T.isNull)
|
|
7817
7817
|
throw new Error("Field SpaceId cannot be null");
|
|
7818
|
-
|
|
7818
|
+
m.SpaceId = T.asString();
|
|
7819
7819
|
break;
|
|
7820
7820
|
}
|
|
7821
7821
|
case e.PrimaryUserIdFieldId: {
|
|
7822
7822
|
if (T.isNull)
|
|
7823
7823
|
throw new Error("Field PrimaryUserId cannot be null");
|
|
7824
|
-
|
|
7824
|
+
m.PrimaryUserId = T.asString();
|
|
7825
7825
|
break;
|
|
7826
7826
|
}
|
|
7827
7827
|
case e.ChannelInstanceIdFieldId: {
|
|
7828
7828
|
if (T.isNull)
|
|
7829
7829
|
throw new Error("Field ChannelInstanceId cannot be null");
|
|
7830
|
-
|
|
7830
|
+
m.ChannelInstanceId = T.asString();
|
|
7831
7831
|
break;
|
|
7832
7832
|
}
|
|
7833
7833
|
case e.AudioStreamsFieldId: {
|
|
7834
7834
|
if (T.isNull)
|
|
7835
7835
|
throw new Error("Field AudioStreams cannot be null");
|
|
7836
|
-
|
|
7836
|
+
m.AudioStreams = u(T.asDictionary());
|
|
7837
7837
|
break;
|
|
7838
7838
|
}
|
|
7839
7839
|
case e.VideoStreamsFieldId: {
|
|
7840
7840
|
if (T.isNull)
|
|
7841
7841
|
throw new Error("Field VideoStreams cannot be null");
|
|
7842
|
-
|
|
7842
|
+
m.VideoStreams = I(T.asDictionary());
|
|
7843
7843
|
break;
|
|
7844
7844
|
}
|
|
7845
7845
|
case e.SpaceNameFieldId: {
|
|
7846
7846
|
if (T.isNull)
|
|
7847
7847
|
throw new Error("Field SpaceName cannot be null");
|
|
7848
|
-
|
|
7848
|
+
m.SpaceName = T.asString();
|
|
7849
7849
|
break;
|
|
7850
7850
|
}
|
|
7851
7851
|
}
|
|
7852
7852
|
}
|
|
7853
|
-
function w(F,
|
|
7853
|
+
function w(F, m, T) {
|
|
7854
7854
|
const p = s(F);
|
|
7855
|
-
return k(e.TeleportOpcode, p, e.TeleportVersion,
|
|
7855
|
+
return k(e.TeleportOpcode, p, e.TeleportVersion, m, T);
|
|
7856
7856
|
}
|
|
7857
7857
|
e.toProtocolMessage = w;
|
|
7858
|
-
function h(F,
|
|
7858
|
+
function h(F, m) {
|
|
7859
7859
|
const T = M(F, e.TeleportOpcode, e.TeleportVersion);
|
|
7860
|
-
return a(T,
|
|
7860
|
+
return a(T, m);
|
|
7861
7861
|
}
|
|
7862
7862
|
e.fromProtocolMessage = h;
|
|
7863
7863
|
function o(F) {
|
|
7864
|
-
const
|
|
7864
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7865
7865
|
let T;
|
|
7866
7866
|
for (; (T = F.next()) !== null; ) {
|
|
7867
7867
|
const p = T.key.asInt32();
|
|
7868
|
-
|
|
7868
|
+
m[p] = L.readFromTeleport(T.value.asObject());
|
|
7869
7869
|
}
|
|
7870
|
-
return
|
|
7870
|
+
return m;
|
|
7871
7871
|
}
|
|
7872
7872
|
function r(F) {
|
|
7873
|
-
const
|
|
7873
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7874
7874
|
let T;
|
|
7875
7875
|
for (; (T = F.next()) !== null; ) {
|
|
7876
7876
|
const p = T.key.asString();
|
|
7877
|
-
|
|
7877
|
+
m[p] = e.TrackingStreamState.readFromTeleport(T.value.asObject());
|
|
7878
7878
|
}
|
|
7879
|
-
return
|
|
7879
|
+
return m;
|
|
7880
7880
|
}
|
|
7881
7881
|
function t(F) {
|
|
7882
|
-
const
|
|
7882
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7883
7883
|
let T;
|
|
7884
7884
|
for (; (T = F.next()) !== null; ) {
|
|
7885
7885
|
const p = T.key.asInt32();
|
|
7886
|
-
|
|
7886
|
+
m[p] = N(T.value.asArray());
|
|
7887
7887
|
}
|
|
7888
|
-
return
|
|
7888
|
+
return m;
|
|
7889
7889
|
}
|
|
7890
7890
|
function n(F) {
|
|
7891
|
-
const
|
|
7891
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7892
7892
|
let T;
|
|
7893
7893
|
for (; (T = F.next()) !== null; ) {
|
|
7894
7894
|
const p = T.key.asString();
|
|
7895
|
-
|
|
7895
|
+
m[p] = e.UIStreamState.readFromTeleport(T.value.asObject());
|
|
7896
7896
|
}
|
|
7897
|
-
return
|
|
7897
|
+
return m;
|
|
7898
7898
|
}
|
|
7899
7899
|
function u(F) {
|
|
7900
|
-
const
|
|
7900
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7901
7901
|
let T;
|
|
7902
7902
|
for (; (T = F.next()) !== null; ) {
|
|
7903
7903
|
const p = T.key.asString();
|
|
7904
|
-
|
|
7904
|
+
m[p] = e.AudioStreamState.readFromTeleport(T.value.asObject());
|
|
7905
7905
|
}
|
|
7906
|
-
return
|
|
7906
|
+
return m;
|
|
7907
7907
|
}
|
|
7908
7908
|
function I(F) {
|
|
7909
|
-
const
|
|
7909
|
+
const m = /* @__PURE__ */ Object.create(null);
|
|
7910
7910
|
let T;
|
|
7911
7911
|
for (; (T = F.next()) !== null; ) {
|
|
7912
7912
|
const p = T.key.asString();
|
|
7913
|
-
|
|
7913
|
+
m[p] = e.VideoStreamState.readFromTeleport(T.value.asObject());
|
|
7914
7914
|
}
|
|
7915
|
-
return
|
|
7915
|
+
return m;
|
|
7916
7916
|
}
|
|
7917
7917
|
function N(F) {
|
|
7918
|
-
const
|
|
7918
|
+
const m = [];
|
|
7919
7919
|
let T;
|
|
7920
7920
|
for (; (T = F.next()) !== null; )
|
|
7921
|
-
|
|
7922
|
-
return
|
|
7921
|
+
m.push(X.readFromTeleport(T.asObject()));
|
|
7922
|
+
return m;
|
|
7923
7923
|
}
|
|
7924
7924
|
((F) => {
|
|
7925
7925
|
F.TeleportVersion = 3, F.TeleportLayoutHash = 3143891131, F.StreamIdFieldId = 161083277, F.ClientSessionIdFieldId = 325678206, F.TrackIdFieldId = 3469892363, F.InfoFieldId = 3645544153;
|
|
7926
|
-
function
|
|
7926
|
+
function m(g) {
|
|
7927
7927
|
const S = {};
|
|
7928
7928
|
return T(S), g && Object.assign(S, g), S;
|
|
7929
7929
|
}
|
|
7930
|
-
F.create =
|
|
7930
|
+
F.create = m;
|
|
7931
7931
|
function T(g) {
|
|
7932
7932
|
return g.StreamId = "", g.ClientSessionId = 0, g.TrackId = 0, g.Info = ne.create(), g;
|
|
7933
7933
|
}
|
|
7934
7934
|
F.reset = T;
|
|
7935
7935
|
function p(g) {
|
|
7936
7936
|
const S = new y(F.TeleportVersion);
|
|
7937
|
-
return
|
|
7937
|
+
return b(g, S), S.finish();
|
|
7938
7938
|
}
|
|
7939
7939
|
F.encode = p;
|
|
7940
|
-
function
|
|
7940
|
+
function b(g, S) {
|
|
7941
7941
|
S.writeStringField(F.StreamIdFieldId, g.StreamId), S.writeInt32Field(F.ClientSessionIdFieldId, g.ClientSessionId | 0), S.writeInt32Field(F.TrackIdFieldId, g.TrackId | 0), S.writeObjectField(F.InfoFieldId, ne.TeleportVersion, (O) => {
|
|
7942
7942
|
ne.writeToTeleport(g.Info, O);
|
|
7943
7943
|
});
|
|
7944
7944
|
}
|
|
7945
|
-
F.writeToTeleport =
|
|
7945
|
+
F.writeToTeleport = b;
|
|
7946
7946
|
function P(g, S) {
|
|
7947
7947
|
const O = E.create(g);
|
|
7948
7948
|
return V(O, S);
|
|
7949
7949
|
}
|
|
7950
7950
|
F.decode = P;
|
|
7951
7951
|
function V(g, S) {
|
|
7952
|
-
const O = S ??
|
|
7952
|
+
const O = S ?? m();
|
|
7953
7953
|
return T(O), _(g, O), O;
|
|
7954
7954
|
}
|
|
7955
7955
|
F.readFromTeleport = V;
|
|
@@ -7985,33 +7985,33 @@ var Be;
|
|
|
7985
7985
|
}
|
|
7986
7986
|
})(e.UIStreamState || (e.UIStreamState = {})), ((F) => {
|
|
7987
7987
|
F.TeleportVersion = 3, F.TeleportLayoutHash = 3143891131, F.StreamIdFieldId = 161083277, F.ClientSessionIdFieldId = 325678206, F.TrackIdFieldId = 3469892363, F.InfoFieldId = 3645544153;
|
|
7988
|
-
function
|
|
7988
|
+
function m(g) {
|
|
7989
7989
|
const S = {};
|
|
7990
7990
|
return T(S), g && Object.assign(S, g), S;
|
|
7991
7991
|
}
|
|
7992
|
-
F.create =
|
|
7992
|
+
F.create = m;
|
|
7993
7993
|
function T(g) {
|
|
7994
7994
|
return g.StreamId = "", g.ClientSessionId = 0, g.TrackId = 0, g.Info = re.create(), g;
|
|
7995
7995
|
}
|
|
7996
7996
|
F.reset = T;
|
|
7997
7997
|
function p(g) {
|
|
7998
7998
|
const S = new y(F.TeleportVersion);
|
|
7999
|
-
return
|
|
7999
|
+
return b(g, S), S.finish();
|
|
8000
8000
|
}
|
|
8001
8001
|
F.encode = p;
|
|
8002
|
-
function
|
|
8002
|
+
function b(g, S) {
|
|
8003
8003
|
S.writeStringField(F.StreamIdFieldId, g.StreamId), S.writeInt32Field(F.ClientSessionIdFieldId, g.ClientSessionId | 0), S.writeInt32Field(F.TrackIdFieldId, g.TrackId | 0), S.writeObjectField(F.InfoFieldId, re.TeleportVersion, (O) => {
|
|
8004
8004
|
re.writeToTeleport(g.Info, O);
|
|
8005
8005
|
});
|
|
8006
8006
|
}
|
|
8007
|
-
F.writeToTeleport =
|
|
8007
|
+
F.writeToTeleport = b;
|
|
8008
8008
|
function P(g, S) {
|
|
8009
8009
|
const O = E.create(g);
|
|
8010
8010
|
return V(O, S);
|
|
8011
8011
|
}
|
|
8012
8012
|
F.decode = P;
|
|
8013
8013
|
function V(g, S) {
|
|
8014
|
-
const O = S ??
|
|
8014
|
+
const O = S ?? m();
|
|
8015
8015
|
return T(O), _(g, O), O;
|
|
8016
8016
|
}
|
|
8017
8017
|
F.readFromTeleport = V;
|
|
@@ -8047,33 +8047,33 @@ var Be;
|
|
|
8047
8047
|
}
|
|
8048
8048
|
})(e.AudioStreamState || (e.AudioStreamState = {})), ((F) => {
|
|
8049
8049
|
F.TeleportVersion = 3, F.TeleportLayoutHash = 3143891131, F.StreamIdFieldId = 161083277, F.ClientSessionIdFieldId = 325678206, F.TrackIdFieldId = 3469892363, F.InfoFieldId = 3645544153;
|
|
8050
|
-
function
|
|
8050
|
+
function m(g) {
|
|
8051
8051
|
const S = {};
|
|
8052
8052
|
return T(S), g && Object.assign(S, g), S;
|
|
8053
8053
|
}
|
|
8054
|
-
F.create =
|
|
8054
|
+
F.create = m;
|
|
8055
8055
|
function T(g) {
|
|
8056
8056
|
return g.StreamId = "", g.ClientSessionId = 0, g.TrackId = 0, g.Info = le.create(), g;
|
|
8057
8057
|
}
|
|
8058
8058
|
F.reset = T;
|
|
8059
8059
|
function p(g) {
|
|
8060
8060
|
const S = new y(F.TeleportVersion);
|
|
8061
|
-
return
|
|
8061
|
+
return b(g, S), S.finish();
|
|
8062
8062
|
}
|
|
8063
8063
|
F.encode = p;
|
|
8064
|
-
function
|
|
8064
|
+
function b(g, S) {
|
|
8065
8065
|
S.writeStringField(F.StreamIdFieldId, g.StreamId), S.writeInt32Field(F.ClientSessionIdFieldId, g.ClientSessionId | 0), S.writeInt32Field(F.TrackIdFieldId, g.TrackId | 0), S.writeObjectField(F.InfoFieldId, le.TeleportVersion, (O) => {
|
|
8066
8066
|
le.writeToTeleport(g.Info, O);
|
|
8067
8067
|
});
|
|
8068
8068
|
}
|
|
8069
|
-
F.writeToTeleport =
|
|
8069
|
+
F.writeToTeleport = b;
|
|
8070
8070
|
function P(g, S) {
|
|
8071
8071
|
const O = E.create(g);
|
|
8072
8072
|
return V(O, S);
|
|
8073
8073
|
}
|
|
8074
8074
|
F.decode = P;
|
|
8075
8075
|
function V(g, S) {
|
|
8076
|
-
const O = S ??
|
|
8076
|
+
const O = S ?? m();
|
|
8077
8077
|
return T(O), _(g, O), O;
|
|
8078
8078
|
}
|
|
8079
8079
|
F.readFromTeleport = V;
|
|
@@ -8109,33 +8109,33 @@ var Be;
|
|
|
8109
8109
|
}
|
|
8110
8110
|
})(e.VideoStreamState || (e.VideoStreamState = {})), ((F) => {
|
|
8111
8111
|
F.TeleportVersion = 3, F.TeleportLayoutHash = 3143891131, F.StreamIdFieldId = 161083277, F.ClientSessionIdFieldId = 325678206, F.TrackIdFieldId = 3469892363, F.InfoFieldId = 3645544153;
|
|
8112
|
-
function
|
|
8112
|
+
function m(g) {
|
|
8113
8113
|
const S = {};
|
|
8114
8114
|
return T(S), g && Object.assign(S, g), S;
|
|
8115
8115
|
}
|
|
8116
|
-
F.create =
|
|
8116
|
+
F.create = m;
|
|
8117
8117
|
function T(g) {
|
|
8118
8118
|
return g.StreamId = "", g.ClientSessionId = 0, g.TrackId = 0, g.Info = oe.create(), g;
|
|
8119
8119
|
}
|
|
8120
8120
|
F.reset = T;
|
|
8121
8121
|
function p(g) {
|
|
8122
8122
|
const S = new y(F.TeleportVersion);
|
|
8123
|
-
return
|
|
8123
|
+
return b(g, S), S.finish();
|
|
8124
8124
|
}
|
|
8125
8125
|
F.encode = p;
|
|
8126
|
-
function
|
|
8126
|
+
function b(g, S) {
|
|
8127
8127
|
S.writeStringField(F.StreamIdFieldId, g.StreamId), S.writeInt32Field(F.ClientSessionIdFieldId, g.ClientSessionId | 0), S.writeInt32Field(F.TrackIdFieldId, g.TrackId | 0), S.writeObjectField(F.InfoFieldId, oe.TeleportVersion, (O) => {
|
|
8128
8128
|
oe.writeToTeleport(g.Info, O);
|
|
8129
8129
|
});
|
|
8130
8130
|
}
|
|
8131
|
-
F.writeToTeleport =
|
|
8131
|
+
F.writeToTeleport = b;
|
|
8132
8132
|
function P(g, S) {
|
|
8133
8133
|
const O = E.create(g);
|
|
8134
8134
|
return V(O, S);
|
|
8135
8135
|
}
|
|
8136
8136
|
F.decode = P;
|
|
8137
8137
|
function V(g, S) {
|
|
8138
|
-
const O = S ??
|
|
8138
|
+
const O = S ?? m();
|
|
8139
8139
|
return T(O), _(g, O), O;
|
|
8140
8140
|
}
|
|
8141
8141
|
F.readFromTeleport = V;
|
|
@@ -8244,38 +8244,38 @@ var vt;
|
|
|
8244
8244
|
e.encode = s;
|
|
8245
8245
|
function d(I, N) {
|
|
8246
8246
|
N.writeBoolField(e.DisableLegacyDefaultExtensionsFieldId, I.DisableLegacyDefaultExtensions), N.writeDictionaryField(e.DynamicConfigObsoleteFieldId, C.String, C.String, (F) => {
|
|
8247
|
-
const
|
|
8248
|
-
for (const T of Object.keys(
|
|
8249
|
-
const p = T,
|
|
8250
|
-
if (
|
|
8247
|
+
const m = I.DynamicConfigObsolete;
|
|
8248
|
+
for (const T of Object.keys(m)) {
|
|
8249
|
+
const p = T, b = m[T];
|
|
8250
|
+
if (b == null)
|
|
8251
8251
|
continue;
|
|
8252
8252
|
const P = F.beginEntry();
|
|
8253
|
-
P.writeKeyString(p), P.writeValueString(
|
|
8253
|
+
P.writeKeyString(p), P.writeValueString(b), P.complete();
|
|
8254
8254
|
}
|
|
8255
8255
|
}), N.writeArrayField(e.ExtensionsFieldId, C.Object, (F) => {
|
|
8256
|
-
for (const
|
|
8256
|
+
for (const m of I.Extensions)
|
|
8257
8257
|
F.writeObject(e.ServerExtensionInit.TeleportVersion, (T) => {
|
|
8258
|
-
e.ServerExtensionInit.writeToTeleport(
|
|
8258
|
+
e.ServerExtensionInit.writeToTeleport(m, T);
|
|
8259
8259
|
});
|
|
8260
8260
|
}), N.writeArrayField(e.TunnelPortsFieldId, C.Int32, (F) => {
|
|
8261
|
-
for (const
|
|
8262
|
-
F.writeInt32(
|
|
8261
|
+
for (const m of I.TunnelPorts)
|
|
8262
|
+
F.writeInt32(m | 0);
|
|
8263
8263
|
}), N.writeStringField(e.ChannelIdFieldId, I.ChannelId), N.writeStringField(e.SessionIdFieldId, I.SessionId), N.writeStringField(e.ChannelUrlFieldId, I.ChannelUrl), N.writeStringField(e.ChannelNameFieldId, I.ChannelName), N.writeStringField(e.DynamicConfigJsonContentFieldId, I.DynamicConfigJsonContent), N.writeStringField(e.SpaceGitRepositoryUrlFieldId, I.SpaceGitRepositoryUrl), N.writeArrayField(e.TunnelsFieldId, C.String, (F) => {
|
|
8264
|
-
for (const
|
|
8265
|
-
F.writeString(
|
|
8264
|
+
for (const m of I.Tunnels)
|
|
8265
|
+
F.writeString(m);
|
|
8266
8266
|
}), N.writeStringField(e.IkonBackendUrlFieldId, I.IkonBackendUrl), N.writeStringField(e.OrganisationNameFieldId, I.OrganisationName), N.writeArrayField(e.PluginsFieldId, C.Object, (F) => {
|
|
8267
|
-
for (const
|
|
8267
|
+
for (const m of I.Plugins)
|
|
8268
8268
|
F.writeObject(e.ServerPluginInit.TeleportVersion, (T) => {
|
|
8269
|
-
e.ServerPluginInit.writeToTeleport(
|
|
8269
|
+
e.ServerPluginInit.writeToTeleport(m, T);
|
|
8270
8270
|
});
|
|
8271
8271
|
}), N.writeStringField(e.SpaceIdFieldId, I.SpaceId), N.writeStringField(e.PrimaryUserIdFieldId, I.PrimaryUserId), N.writeStringField(e.IkonBackendTokenFieldId, I.IkonBackendToken), N.writeStringField(e.ChannelTemplateIdFieldId, I.ChannelTemplateId), N.writeDictionaryField(e.SessionIdentityFieldId, C.String, C.String, (F) => {
|
|
8272
|
-
const
|
|
8273
|
-
for (const T of Object.keys(
|
|
8274
|
-
const p = T,
|
|
8275
|
-
if (
|
|
8272
|
+
const m = I.SessionIdentity;
|
|
8273
|
+
for (const T of Object.keys(m)) {
|
|
8274
|
+
const p = T, b = m[T];
|
|
8275
|
+
if (b == null)
|
|
8276
8276
|
continue;
|
|
8277
8277
|
const P = F.beginEntry();
|
|
8278
|
-
P.writeKeyString(p), P.writeValueString(
|
|
8278
|
+
P.writeKeyString(p), P.writeValueString(b), P.complete();
|
|
8279
8279
|
}
|
|
8280
8280
|
}), N.writeStringField(e.SpaceNameFieldId, I.SpaceName);
|
|
8281
8281
|
}
|
|
@@ -8417,8 +8417,8 @@ var vt;
|
|
|
8417
8417
|
}
|
|
8418
8418
|
}
|
|
8419
8419
|
function w(I, N, F) {
|
|
8420
|
-
const
|
|
8421
|
-
return k(e.TeleportOpcode,
|
|
8420
|
+
const m = s(I);
|
|
8421
|
+
return k(e.TeleportOpcode, m, e.TeleportVersion, N, F);
|
|
8422
8422
|
}
|
|
8423
8423
|
e.toProtocolMessage = w;
|
|
8424
8424
|
function h(I, N) {
|
|
@@ -8458,8 +8458,8 @@ var vt;
|
|
|
8458
8458
|
const N = /* @__PURE__ */ Object.create(null);
|
|
8459
8459
|
let F;
|
|
8460
8460
|
for (; (F = I.next()) !== null; ) {
|
|
8461
|
-
const
|
|
8462
|
-
N[
|
|
8461
|
+
const m = F.key.asString();
|
|
8462
|
+
N[m] = F.value.asString();
|
|
8463
8463
|
}
|
|
8464
8464
|
return N;
|
|
8465
8465
|
}
|
|
@@ -8474,30 +8474,30 @@ var vt;
|
|
|
8474
8474
|
return _.Enabled = !1, _.BundleDirectoryPath = "", _.BundleDirectoryZipContent = new Uint8Array(0), _.DllName = "", _.TypeName = "", _.ConfigFilePath = "", _.ConfigJsonContent = "", _.ExtraConfigs = [], _;
|
|
8475
8475
|
}
|
|
8476
8476
|
I.reset = F;
|
|
8477
|
-
function
|
|
8477
|
+
function m(_) {
|
|
8478
8478
|
const g = new y(I.TeleportVersion);
|
|
8479
8479
|
return T(_, g), g.finish();
|
|
8480
8480
|
}
|
|
8481
|
-
I.encode =
|
|
8481
|
+
I.encode = m;
|
|
8482
8482
|
function T(_, g) {
|
|
8483
8483
|
g.writeStringField(I.BundleDirectoryPathFieldId, _.BundleDirectoryPath), g.writeBinaryField(I.BundleDirectoryZipContentFieldId, _.BundleDirectoryZipContent), g.writeStringField(I.ConfigJsonContentFieldId, _.ConfigJsonContent), g.writeStringField(I.DllNameFieldId, _.DllName), g.writeStringField(I.ConfigFilePathFieldId, _.ConfigFilePath), g.writeBoolField(I.EnabledFieldId, _.Enabled), g.writeArrayField(I.ExtraConfigsFieldId, C.Object, (S) => {
|
|
8484
8484
|
for (const O of _.ExtraConfigs)
|
|
8485
|
-
S.writeObject(e.ServerPluginInitExtraConfig.TeleportVersion, (
|
|
8486
|
-
e.ServerPluginInitExtraConfig.writeToTeleport(O,
|
|
8485
|
+
S.writeObject(e.ServerPluginInitExtraConfig.TeleportVersion, (gn) => {
|
|
8486
|
+
e.ServerPluginInitExtraConfig.writeToTeleport(O, gn);
|
|
8487
8487
|
});
|
|
8488
8488
|
}), g.writeStringField(I.TypeNameFieldId, _.TypeName);
|
|
8489
8489
|
}
|
|
8490
8490
|
I.writeToTeleport = T;
|
|
8491
8491
|
function p(_, g) {
|
|
8492
8492
|
const S = E.create(_);
|
|
8493
|
-
return
|
|
8493
|
+
return b(S, g);
|
|
8494
8494
|
}
|
|
8495
8495
|
I.decode = p;
|
|
8496
|
-
function
|
|
8496
|
+
function b(_, g) {
|
|
8497
8497
|
const S = g ?? N();
|
|
8498
8498
|
return F(S), P(_, S), S;
|
|
8499
8499
|
}
|
|
8500
|
-
I.readFromTeleport =
|
|
8500
|
+
I.readFromTeleport = b;
|
|
8501
8501
|
function P(_, g) {
|
|
8502
8502
|
let S;
|
|
8503
8503
|
for (; (S = _.next()) !== null; )
|
|
@@ -8570,25 +8570,25 @@ var vt;
|
|
|
8570
8570
|
return V.FilePath = "", V.Content = "", V;
|
|
8571
8571
|
}
|
|
8572
8572
|
I.reset = F;
|
|
8573
|
-
function
|
|
8573
|
+
function m(V) {
|
|
8574
8574
|
const _ = new y(I.TeleportVersion);
|
|
8575
8575
|
return T(V, _), _.finish();
|
|
8576
8576
|
}
|
|
8577
|
-
I.encode =
|
|
8577
|
+
I.encode = m;
|
|
8578
8578
|
function T(V, _) {
|
|
8579
8579
|
_.writeStringField(I.FilePathFieldId, V.FilePath), _.writeStringField(I.ContentFieldId, V.Content);
|
|
8580
8580
|
}
|
|
8581
8581
|
I.writeToTeleport = T;
|
|
8582
8582
|
function p(V, _) {
|
|
8583
8583
|
const g = E.create(V);
|
|
8584
|
-
return
|
|
8584
|
+
return b(g, _);
|
|
8585
8585
|
}
|
|
8586
8586
|
I.decode = p;
|
|
8587
|
-
function
|
|
8587
|
+
function b(V, _) {
|
|
8588
8588
|
const g = _ ?? N();
|
|
8589
8589
|
return F(g), P(V, g), g;
|
|
8590
8590
|
}
|
|
8591
|
-
I.readFromTeleport =
|
|
8591
|
+
I.readFromTeleport = b;
|
|
8592
8592
|
function P(V, _) {
|
|
8593
8593
|
let g;
|
|
8594
8594
|
for (; (g = V.next()) !== null; )
|
|
@@ -8618,25 +8618,25 @@ var vt;
|
|
|
8618
8618
|
return V.Enabled = !1, V.TypeName = "", V.ConfigJsonContent = "", V;
|
|
8619
8619
|
}
|
|
8620
8620
|
I.reset = F;
|
|
8621
|
-
function
|
|
8621
|
+
function m(V) {
|
|
8622
8622
|
const _ = new y(I.TeleportVersion);
|
|
8623
8623
|
return T(V, _), _.finish();
|
|
8624
8624
|
}
|
|
8625
|
-
I.encode =
|
|
8625
|
+
I.encode = m;
|
|
8626
8626
|
function T(V, _) {
|
|
8627
8627
|
_.writeStringField(I.ConfigJsonContentFieldId, V.ConfigJsonContent), _.writeBoolField(I.EnabledFieldId, V.Enabled), _.writeStringField(I.TypeNameFieldId, V.TypeName);
|
|
8628
8628
|
}
|
|
8629
8629
|
I.writeToTeleport = T;
|
|
8630
8630
|
function p(V, _) {
|
|
8631
8631
|
const g = E.create(V);
|
|
8632
|
-
return
|
|
8632
|
+
return b(g, _);
|
|
8633
8633
|
}
|
|
8634
8634
|
I.decode = p;
|
|
8635
|
-
function
|
|
8635
|
+
function b(V, _) {
|
|
8636
8636
|
const g = _ ?? N();
|
|
8637
8637
|
return F(g), P(V, g), g;
|
|
8638
8638
|
}
|
|
8639
|
-
I.readFromTeleport =
|
|
8639
|
+
I.readFromTeleport = b;
|
|
8640
8640
|
function P(V, _) {
|
|
8641
8641
|
let g;
|
|
8642
8642
|
for (; (g = V.next()) !== null; )
|
|
@@ -8687,8 +8687,8 @@ var jt;
|
|
|
8687
8687
|
const N = I, F = u[I];
|
|
8688
8688
|
if (F == null)
|
|
8689
8689
|
continue;
|
|
8690
|
-
const
|
|
8691
|
-
|
|
8690
|
+
const m = n.beginEntry();
|
|
8691
|
+
m.writeKeyString(N), m.writeValueString(F), m.complete();
|
|
8692
8692
|
}
|
|
8693
8693
|
});
|
|
8694
8694
|
}
|
|
@@ -9549,7 +9549,7 @@ var Qt;
|
|
|
9549
9549
|
}
|
|
9550
9550
|
e.fromProtocolMessage = h;
|
|
9551
9551
|
})(Qt || (Qt = {}));
|
|
9552
|
-
var
|
|
9552
|
+
var Zt;
|
|
9553
9553
|
((e) => {
|
|
9554
9554
|
e.TeleportVersion = 1, e.TeleportOpcode = 65541, e.TeleportLayoutHash = 720504711, e.ClientContextFieldId = 2802434353;
|
|
9555
9555
|
function l(o) {
|
|
@@ -9604,8 +9604,8 @@ var qt;
|
|
|
9604
9604
|
return a(t, r);
|
|
9605
9605
|
}
|
|
9606
9606
|
e.fromProtocolMessage = h;
|
|
9607
|
-
})(
|
|
9608
|
-
var
|
|
9607
|
+
})(Zt || (Zt = {}));
|
|
9608
|
+
var qt;
|
|
9609
9609
|
((e) => {
|
|
9610
9610
|
e.TeleportVersion = 1, e.TeleportOpcode = 65542, e.TeleportLayoutHash = 720504711, e.ClientContextFieldId = 2802434353;
|
|
9611
9611
|
function l(o) {
|
|
@@ -9660,7 +9660,7 @@ var Zt;
|
|
|
9660
9660
|
return a(t, r);
|
|
9661
9661
|
}
|
|
9662
9662
|
e.fromProtocolMessage = h;
|
|
9663
|
-
})(
|
|
9663
|
+
})(qt || (qt = {}));
|
|
9664
9664
|
var j = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", e[e.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", e[e.GROUP_CORE = 65536] = "GROUP_CORE", e[e.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", e[e.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", e[e.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", e[e.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", e[e.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", e[e.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", e[e.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", e[e.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", e[e.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", e[e.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", e[e.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", e[e.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", e[e.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", e[e.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", e[e.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", e[e.CORE_SERVER_START = 65552] = "CORE_SERVER_START", e[e.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", e[e.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", e[e.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", e[e.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", e[e.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(j || {}), Bt;
|
|
9665
9665
|
((e) => {
|
|
9666
9666
|
e.TeleportVersion = 1, e.TeleportOpcode = 33554434, e.TeleportLayoutHash = 2736242701, e.SubIdFieldId = 53696160, e.SerializerTypeFieldId = 945836134, e.ElementCountFieldId = 2575916304, e.StrideSizeFieldId = 2643117937, e.ByteOffsetFieldId = 2645860747, e.TypeFieldId = 3167053791, e.TypeSizeFieldId = 3335201933, e.ByteArrayFieldId = 4137315252, e.ElementOffsetFieldId = 4223202547;
|
|
@@ -10180,8 +10180,8 @@ var ro;
|
|
|
10180
10180
|
((t) => {
|
|
10181
10181
|
t.TeleportVersion = 1, t.TeleportLayoutHash = 4085725210, t.NameFieldId = 1107713536, t.ValueFieldId = 1405462580, t.GroupFieldId = 2111279390;
|
|
10182
10182
|
function n(p) {
|
|
10183
|
-
const
|
|
10184
|
-
return u(
|
|
10183
|
+
const b = {};
|
|
10184
|
+
return u(b), p && Object.assign(b, p), b;
|
|
10185
10185
|
}
|
|
10186
10186
|
t.create = n;
|
|
10187
10187
|
function u(p) {
|
|
@@ -10189,44 +10189,44 @@ var ro;
|
|
|
10189
10189
|
}
|
|
10190
10190
|
t.reset = u;
|
|
10191
10191
|
function I(p) {
|
|
10192
|
-
const
|
|
10193
|
-
return N(p,
|
|
10192
|
+
const b = new y(t.TeleportVersion);
|
|
10193
|
+
return N(p, b), b.finish();
|
|
10194
10194
|
}
|
|
10195
10195
|
t.encode = I;
|
|
10196
|
-
function N(p,
|
|
10197
|
-
|
|
10196
|
+
function N(p, b) {
|
|
10197
|
+
b.writeStringField(t.NameFieldId, p.Name), b.writeStringField(t.ValueFieldId, p.Value), b.writeStringField(t.GroupFieldId, p.Group);
|
|
10198
10198
|
}
|
|
10199
10199
|
t.writeToTeleport = N;
|
|
10200
|
-
function F(p,
|
|
10200
|
+
function F(p, b) {
|
|
10201
10201
|
const P = E.create(p);
|
|
10202
|
-
return
|
|
10202
|
+
return m(P, b);
|
|
10203
10203
|
}
|
|
10204
10204
|
t.decode = F;
|
|
10205
|
-
function
|
|
10206
|
-
const P =
|
|
10205
|
+
function m(p, b) {
|
|
10206
|
+
const P = b ?? n();
|
|
10207
10207
|
return u(P), T(p, P), P;
|
|
10208
10208
|
}
|
|
10209
|
-
t.readFromTeleport =
|
|
10210
|
-
function T(p,
|
|
10209
|
+
t.readFromTeleport = m;
|
|
10210
|
+
function T(p, b) {
|
|
10211
10211
|
let P;
|
|
10212
10212
|
for (; (P = p.next()) !== null; )
|
|
10213
10213
|
switch (P.fieldId) {
|
|
10214
10214
|
case t.NameFieldId: {
|
|
10215
10215
|
if (P.isNull)
|
|
10216
10216
|
throw new Error("Field Name cannot be null");
|
|
10217
|
-
|
|
10217
|
+
b.Name = P.asString();
|
|
10218
10218
|
break;
|
|
10219
10219
|
}
|
|
10220
10220
|
case t.ValueFieldId: {
|
|
10221
10221
|
if (P.isNull)
|
|
10222
10222
|
throw new Error("Field Value cannot be null");
|
|
10223
|
-
|
|
10223
|
+
b.Value = P.asString();
|
|
10224
10224
|
break;
|
|
10225
10225
|
}
|
|
10226
10226
|
case t.GroupFieldId: {
|
|
10227
10227
|
if (P.isNull)
|
|
10228
10228
|
throw new Error("Field Group cannot be null");
|
|
10229
|
-
|
|
10229
|
+
b.Group = P.asString();
|
|
10230
10230
|
break;
|
|
10231
10231
|
}
|
|
10232
10232
|
}
|
|
@@ -11183,12 +11183,12 @@ var fo;
|
|
|
11183
11183
|
u.writeDictionaryField(e.PayloadsFieldId, C.String, C.Object, (I) => {
|
|
11184
11184
|
const N = n.Payloads;
|
|
11185
11185
|
for (const F of Object.keys(N)) {
|
|
11186
|
-
const
|
|
11186
|
+
const m = F, T = N[F];
|
|
11187
11187
|
if (T == null)
|
|
11188
11188
|
continue;
|
|
11189
11189
|
const p = I.beginEntry();
|
|
11190
|
-
p.writeKeyString(
|
|
11191
|
-
|
|
11190
|
+
p.writeKeyString(m), p.writeValueObject(q.TeleportVersion, (b) => {
|
|
11191
|
+
q.writeToTeleport(T, b);
|
|
11192
11192
|
}), p.complete();
|
|
11193
11193
|
}
|
|
11194
11194
|
}), u.writeStringField(e.StyleIdFieldId, n.StyleId), u.writeStringField(e.NameFieldId, n.Name), u.writeStringField(e.DescriptionFieldId, n.Description), u.writeInt32Field(e.ElementIdFieldId, n.ElementId | 0), u.writeArrayField(e.LabelsFieldId, C.String, (I) => {
|
|
@@ -11197,12 +11197,12 @@ var fo;
|
|
|
11197
11197
|
}), u.writeStringField(e.ArgumentsJsonFieldId, n.ArgumentsJson), u.writeDictionaryField(e.ActionIdsFieldId, C.String, C.Object, (I) => {
|
|
11198
11198
|
const N = n.ActionIds;
|
|
11199
11199
|
for (const F of Object.keys(N)) {
|
|
11200
|
-
const
|
|
11200
|
+
const m = F, T = N[F];
|
|
11201
11201
|
if (T == null)
|
|
11202
11202
|
continue;
|
|
11203
11203
|
const p = I.beginEntry();
|
|
11204
|
-
p.writeKeyString(
|
|
11205
|
-
we.writeToTeleport(T,
|
|
11204
|
+
p.writeKeyString(m), p.writeValueObject(we.TeleportVersion, (b) => {
|
|
11205
|
+
we.writeToTeleport(T, b);
|
|
11206
11206
|
}), p.complete();
|
|
11207
11207
|
}
|
|
11208
11208
|
});
|
|
@@ -11294,7 +11294,7 @@ var fo;
|
|
|
11294
11294
|
let I;
|
|
11295
11295
|
for (; (I = n.next()) !== null; ) {
|
|
11296
11296
|
const N = I.key.asString();
|
|
11297
|
-
u[N] =
|
|
11297
|
+
u[N] = q.readFromTeleport(I.value.asObject());
|
|
11298
11298
|
}
|
|
11299
11299
|
return u;
|
|
11300
11300
|
}
|
|
@@ -11469,53 +11469,53 @@ var wo;
|
|
|
11469
11469
|
}
|
|
11470
11470
|
r.writeToTeleport = I;
|
|
11471
11471
|
function N(T, p) {
|
|
11472
|
-
const
|
|
11473
|
-
return F(
|
|
11472
|
+
const b = E.create(T);
|
|
11473
|
+
return F(b, p);
|
|
11474
11474
|
}
|
|
11475
11475
|
r.decode = N;
|
|
11476
11476
|
function F(T, p) {
|
|
11477
|
-
const
|
|
11478
|
-
return n(
|
|
11477
|
+
const b = p ?? t();
|
|
11478
|
+
return n(b), m(T, b), b;
|
|
11479
11479
|
}
|
|
11480
11480
|
r.readFromTeleport = F;
|
|
11481
|
-
function
|
|
11482
|
-
let
|
|
11483
|
-
for (; (
|
|
11484
|
-
switch (
|
|
11481
|
+
function m(T, p) {
|
|
11482
|
+
let b;
|
|
11483
|
+
for (; (b = T.next()) !== null; )
|
|
11484
|
+
switch (b.fieldId) {
|
|
11485
11485
|
case r.FileNameFieldId: {
|
|
11486
|
-
if (
|
|
11486
|
+
if (b.isNull)
|
|
11487
11487
|
throw new Error("Field FileName cannot be null");
|
|
11488
|
-
p.FileName =
|
|
11488
|
+
p.FileName = b.asString();
|
|
11489
11489
|
break;
|
|
11490
11490
|
}
|
|
11491
11491
|
case r.SizeFieldId: {
|
|
11492
|
-
if (
|
|
11492
|
+
if (b.isNull)
|
|
11493
11493
|
throw new Error("Field Size cannot be null");
|
|
11494
|
-
p.Size =
|
|
11494
|
+
p.Size = b.asInt32();
|
|
11495
11495
|
break;
|
|
11496
11496
|
}
|
|
11497
11497
|
case r.NameFieldId: {
|
|
11498
|
-
if (
|
|
11498
|
+
if (b.isNull)
|
|
11499
11499
|
throw new Error("Field Name cannot be null");
|
|
11500
|
-
p.Name =
|
|
11500
|
+
p.Name = b.asString();
|
|
11501
11501
|
break;
|
|
11502
11502
|
}
|
|
11503
11503
|
case r.CreatedAtFieldId: {
|
|
11504
|
-
if (
|
|
11504
|
+
if (b.isNull)
|
|
11505
11505
|
throw new Error("Field CreatedAt cannot be null");
|
|
11506
|
-
p.CreatedAt =
|
|
11506
|
+
p.CreatedAt = b.asString();
|
|
11507
11507
|
break;
|
|
11508
11508
|
}
|
|
11509
11509
|
case r.UrlFieldId: {
|
|
11510
|
-
if (
|
|
11510
|
+
if (b.isNull)
|
|
11511
11511
|
throw new Error("Field Url cannot be null");
|
|
11512
|
-
p.Url =
|
|
11512
|
+
p.Url = b.asString();
|
|
11513
11513
|
break;
|
|
11514
11514
|
}
|
|
11515
11515
|
case r.IdFieldId: {
|
|
11516
|
-
if (
|
|
11516
|
+
if (b.isNull)
|
|
11517
11517
|
throw new Error("Field Id cannot be null");
|
|
11518
|
-
p.Id =
|
|
11518
|
+
p.Id = b.asString();
|
|
11519
11519
|
break;
|
|
11520
11520
|
}
|
|
11521
11521
|
}
|
|
@@ -12006,7 +12006,7 @@ var Fo;
|
|
|
12006
12006
|
return t;
|
|
12007
12007
|
}
|
|
12008
12008
|
})(Fo || (Fo = {}));
|
|
12009
|
-
var
|
|
12009
|
+
var bo;
|
|
12010
12010
|
((e) => {
|
|
12011
12011
|
e.TeleportVersion = 1, e.TeleportOpcode = 2097167, e.TeleportLayoutHash = 902326874, e.DropActionIdFieldId = 125663982, e.DragOverActionIdFieldId = 397939120, e.DragEndActionIdFieldId = 604708310, e.DragLeaveActionIdFieldId = 807214320, e.StyleIdFieldId = 979822885, e.NameFieldId = 1107713536, e.PressStartActionIdFieldId = 1115189793, e.PressChangeActionIdFieldId = 1297223534, e.PressEndActionIdFieldId = 1604349297, e.ElementIdFieldId = 1753055760, e.DragStartActionIdFieldId = 2069639306, e.LabelsFieldId = 2329079073, e.UrlFieldId = 2643541312, e.MimeFieldId = 2697635005, e.ClickActionIdFieldId = 2904763197, e.DataFieldId = 2986785889, e.DragEnterActionIdFieldId = 3852067844, e.PressUpActionIdFieldId = 4113077146;
|
|
12012
12012
|
function l(r) {
|
|
@@ -12171,8 +12171,8 @@ var mo;
|
|
|
12171
12171
|
t.push(n.asString());
|
|
12172
12172
|
return t;
|
|
12173
12173
|
}
|
|
12174
|
-
})(
|
|
12175
|
-
var
|
|
12174
|
+
})(bo || (bo = {}));
|
|
12175
|
+
var mo;
|
|
12176
12176
|
((e) => {
|
|
12177
12177
|
e.TeleportVersion = 1, e.TeleportOpcode = 2097191, e.TeleportLayoutHash = 2491188219, e.ModulesFieldId = 2824693793;
|
|
12178
12178
|
function l(r) {
|
|
@@ -12255,42 +12255,42 @@ var bo;
|
|
|
12255
12255
|
r.encode = u;
|
|
12256
12256
|
function I(T, p) {
|
|
12257
12257
|
p.writeStringField(r.NameFieldId, T.Name);
|
|
12258
|
-
const
|
|
12259
|
-
|
|
12258
|
+
const b = T.Javascript;
|
|
12259
|
+
b != null && p.writeStringField(r.JavascriptFieldId, b);
|
|
12260
12260
|
}
|
|
12261
12261
|
r.writeToTeleport = I;
|
|
12262
12262
|
function N(T, p) {
|
|
12263
|
-
const
|
|
12264
|
-
return F(
|
|
12263
|
+
const b = E.create(T);
|
|
12264
|
+
return F(b, p);
|
|
12265
12265
|
}
|
|
12266
12266
|
r.decode = N;
|
|
12267
12267
|
function F(T, p) {
|
|
12268
|
-
const
|
|
12269
|
-
return n(
|
|
12268
|
+
const b = p ?? t();
|
|
12269
|
+
return n(b), m(T, b), b;
|
|
12270
12270
|
}
|
|
12271
12271
|
r.readFromTeleport = F;
|
|
12272
|
-
function
|
|
12273
|
-
let
|
|
12274
|
-
for (; (
|
|
12275
|
-
switch (
|
|
12272
|
+
function m(T, p) {
|
|
12273
|
+
let b;
|
|
12274
|
+
for (; (b = T.next()) !== null; )
|
|
12275
|
+
switch (b.fieldId) {
|
|
12276
12276
|
case r.NameFieldId: {
|
|
12277
|
-
if (
|
|
12277
|
+
if (b.isNull)
|
|
12278
12278
|
throw new Error("Field Name cannot be null");
|
|
12279
|
-
p.Name =
|
|
12279
|
+
p.Name = b.asString();
|
|
12280
12280
|
break;
|
|
12281
12281
|
}
|
|
12282
12282
|
case r.JavascriptFieldId: {
|
|
12283
|
-
if (
|
|
12283
|
+
if (b.isNull) {
|
|
12284
12284
|
p.Javascript = void 0;
|
|
12285
12285
|
break;
|
|
12286
12286
|
}
|
|
12287
|
-
p.Javascript =
|
|
12287
|
+
p.Javascript = b.asString();
|
|
12288
12288
|
break;
|
|
12289
12289
|
}
|
|
12290
12290
|
}
|
|
12291
12291
|
}
|
|
12292
12292
|
})(e.UIInitModule || (e.UIInitModule = {}));
|
|
12293
|
-
})(
|
|
12293
|
+
})(mo || (mo = {}));
|
|
12294
12294
|
var yo;
|
|
12295
12295
|
((e) => {
|
|
12296
12296
|
e.TeleportVersion = 1, e.TeleportOpcode = 2097180, e.TeleportLayoutHash = 4201975843, e.VariantFieldId = 224706665, e.StyleIdFieldId = 979822885, e.NameFieldId = 1107713536, e.ColorFieldId = 1668824531, e.ElementIdFieldId = 1753055760, e.InitialValueFieldId = 2273729899, e.RowsFieldId = 2325885894, e.LabelsFieldId = 2329079073, e.UpdateActionIdFieldId = 3146631935, e.SubmitActionIdFieldId = 4282408692;
|
|
@@ -12734,8 +12734,8 @@ var Mo;
|
|
|
12734
12734
|
((t) => {
|
|
12735
12735
|
t.TeleportVersion = 1, t.TeleportLayoutHash = 2810867083, t.TitleFieldId = 347326591, t.LongitudeFieldId = 3612634469, t.LatitudeFieldId = 4280239745;
|
|
12736
12736
|
function n(p) {
|
|
12737
|
-
const
|
|
12738
|
-
return u(
|
|
12737
|
+
const b = {};
|
|
12738
|
+
return u(b), p && Object.assign(b, p), b;
|
|
12739
12739
|
}
|
|
12740
12740
|
t.create = n;
|
|
12741
12741
|
function u(p) {
|
|
@@ -12743,44 +12743,44 @@ var Mo;
|
|
|
12743
12743
|
}
|
|
12744
12744
|
t.reset = u;
|
|
12745
12745
|
function I(p) {
|
|
12746
|
-
const
|
|
12747
|
-
return N(p,
|
|
12746
|
+
const b = new y(t.TeleportVersion);
|
|
12747
|
+
return N(p, b), b.finish();
|
|
12748
12748
|
}
|
|
12749
12749
|
t.encode = I;
|
|
12750
|
-
function N(p,
|
|
12751
|
-
|
|
12750
|
+
function N(p, b) {
|
|
12751
|
+
b.writeStringField(t.TitleFieldId, p.Title), b.writeFloat32Field(t.LongitudeFieldId, p.Longitude), b.writeFloat32Field(t.LatitudeFieldId, p.Latitude);
|
|
12752
12752
|
}
|
|
12753
12753
|
t.writeToTeleport = N;
|
|
12754
|
-
function F(p,
|
|
12754
|
+
function F(p, b) {
|
|
12755
12755
|
const P = E.create(p);
|
|
12756
|
-
return
|
|
12756
|
+
return m(P, b);
|
|
12757
12757
|
}
|
|
12758
12758
|
t.decode = F;
|
|
12759
|
-
function
|
|
12760
|
-
const P =
|
|
12759
|
+
function m(p, b) {
|
|
12760
|
+
const P = b ?? n();
|
|
12761
12761
|
return u(P), T(p, P), P;
|
|
12762
12762
|
}
|
|
12763
|
-
t.readFromTeleport =
|
|
12764
|
-
function T(p,
|
|
12763
|
+
t.readFromTeleport = m;
|
|
12764
|
+
function T(p, b) {
|
|
12765
12765
|
let P;
|
|
12766
12766
|
for (; (P = p.next()) !== null; )
|
|
12767
12767
|
switch (P.fieldId) {
|
|
12768
12768
|
case t.TitleFieldId: {
|
|
12769
12769
|
if (P.isNull)
|
|
12770
12770
|
throw new Error("Field Title cannot be null");
|
|
12771
|
-
|
|
12771
|
+
b.Title = P.asString();
|
|
12772
12772
|
break;
|
|
12773
12773
|
}
|
|
12774
12774
|
case t.LongitudeFieldId: {
|
|
12775
12775
|
if (P.isNull)
|
|
12776
12776
|
throw new Error("Field Longitude cannot be null");
|
|
12777
|
-
|
|
12777
|
+
b.Longitude = P.asFloat32();
|
|
12778
12778
|
break;
|
|
12779
12779
|
}
|
|
12780
12780
|
case t.LatitudeFieldId: {
|
|
12781
12781
|
if (P.isNull)
|
|
12782
12782
|
throw new Error("Field Latitude cannot be null");
|
|
12783
|
-
|
|
12783
|
+
b.Latitude = P.asFloat32();
|
|
12784
12784
|
break;
|
|
12785
12785
|
}
|
|
12786
12786
|
}
|
|
@@ -12881,7 +12881,7 @@ var ko;
|
|
|
12881
12881
|
return t;
|
|
12882
12882
|
}
|
|
12883
12883
|
})(ko || (ko = {}));
|
|
12884
|
-
var
|
|
12884
|
+
var q;
|
|
12885
12885
|
((e) => {
|
|
12886
12886
|
e.TeleportVersion = 1, e.TeleportOpcode = 0, e.TeleportLayoutHash = 1537116481, e.ValueFieldId = 1405462580, e.MimeTypeFieldId = 2968276160;
|
|
12887
12887
|
function l(o) {
|
|
@@ -12940,7 +12940,7 @@ var Z;
|
|
|
12940
12940
|
return a(t, r);
|
|
12941
12941
|
}
|
|
12942
12942
|
e.fromProtocolMessage = h;
|
|
12943
|
-
})(
|
|
12943
|
+
})(q || (q = {}));
|
|
12944
12944
|
var So;
|
|
12945
12945
|
((e) => {
|
|
12946
12946
|
e.TeleportVersion = 1, e.TeleportOpcode = 2097181, e.TeleportLayoutHash = 393918750, e.PercentageFieldId = 117496938, e.StyleIdFieldId = 979822885, e.ElementIdFieldId = 1753055760, e.LabelsFieldId = 2329079073;
|
|
@@ -13047,11 +13047,11 @@ var Po;
|
|
|
13047
13047
|
}), n.writeStringField(e.EventActionIdFieldId, t.EventActionId), n.writeDictionaryField(e.ArgumentsJsonFieldId, C.String, C.String, (u) => {
|
|
13048
13048
|
const I = t.ArgumentsJson;
|
|
13049
13049
|
for (const N of Object.keys(I)) {
|
|
13050
|
-
const F = N,
|
|
13051
|
-
if (
|
|
13050
|
+
const F = N, m = I[N];
|
|
13051
|
+
if (m == null)
|
|
13052
13052
|
continue;
|
|
13053
13053
|
const T = u.beginEntry();
|
|
13054
|
-
T.writeKeyString(F), T.writeValueString(
|
|
13054
|
+
T.writeKeyString(F), T.writeValueString(m), T.complete();
|
|
13055
13055
|
}
|
|
13056
13056
|
});
|
|
13057
13057
|
}
|
|
@@ -13887,8 +13887,8 @@ var xo;
|
|
|
13887
13887
|
const N = I, F = u[I];
|
|
13888
13888
|
if (F == null)
|
|
13889
13889
|
continue;
|
|
13890
|
-
const
|
|
13891
|
-
|
|
13890
|
+
const m = n.beginEntry();
|
|
13891
|
+
m.writeKeyString(N), m.writeValueString(F), m.complete();
|
|
13892
13892
|
}
|
|
13893
13893
|
});
|
|
13894
13894
|
}
|
|
@@ -14009,8 +14009,8 @@ var Wo;
|
|
|
14009
14009
|
((r) => {
|
|
14010
14010
|
r.TeleportVersion = 1, r.TeleportLayoutHash = 2452306282, r.StyleIdFieldId = 979822885, r.StyleFieldId = 2374537704;
|
|
14011
14011
|
function t(p) {
|
|
14012
|
-
const
|
|
14013
|
-
return n(
|
|
14012
|
+
const b = {};
|
|
14013
|
+
return n(b), p && Object.assign(b, p), b;
|
|
14014
14014
|
}
|
|
14015
14015
|
r.create = t;
|
|
14016
14016
|
function n(p) {
|
|
@@ -14018,12 +14018,12 @@ var Wo;
|
|
|
14018
14018
|
}
|
|
14019
14019
|
r.reset = n;
|
|
14020
14020
|
function u(p) {
|
|
14021
|
-
const
|
|
14022
|
-
return I(p,
|
|
14021
|
+
const b = new y(r.TeleportVersion);
|
|
14022
|
+
return I(p, b), b.finish();
|
|
14023
14023
|
}
|
|
14024
14024
|
r.encode = u;
|
|
14025
|
-
function I(p,
|
|
14026
|
-
|
|
14025
|
+
function I(p, b) {
|
|
14026
|
+
b.writeStringField(r.StyleIdFieldId, p.StyleId), b.writeDictionaryField(r.StyleFieldId, C.String, C.String, (P) => {
|
|
14027
14027
|
const V = p.Style;
|
|
14028
14028
|
for (const _ of Object.keys(V)) {
|
|
14029
14029
|
const g = _, S = V[_];
|
|
@@ -14035,42 +14035,42 @@ var Wo;
|
|
|
14035
14035
|
});
|
|
14036
14036
|
}
|
|
14037
14037
|
r.writeToTeleport = I;
|
|
14038
|
-
function N(p,
|
|
14038
|
+
function N(p, b) {
|
|
14039
14039
|
const P = E.create(p);
|
|
14040
|
-
return F(P,
|
|
14040
|
+
return F(P, b);
|
|
14041
14041
|
}
|
|
14042
14042
|
r.decode = N;
|
|
14043
|
-
function F(p,
|
|
14044
|
-
const P =
|
|
14045
|
-
return n(P),
|
|
14043
|
+
function F(p, b) {
|
|
14044
|
+
const P = b ?? t();
|
|
14045
|
+
return n(P), m(p, P), P;
|
|
14046
14046
|
}
|
|
14047
14047
|
r.readFromTeleport = F;
|
|
14048
|
-
function
|
|
14048
|
+
function m(p, b) {
|
|
14049
14049
|
let P;
|
|
14050
14050
|
for (; (P = p.next()) !== null; )
|
|
14051
14051
|
switch (P.fieldId) {
|
|
14052
14052
|
case r.StyleIdFieldId: {
|
|
14053
14053
|
if (P.isNull)
|
|
14054
14054
|
throw new Error("Field StyleId cannot be null");
|
|
14055
|
-
|
|
14055
|
+
b.StyleId = P.asString();
|
|
14056
14056
|
break;
|
|
14057
14057
|
}
|
|
14058
14058
|
case r.StyleFieldId: {
|
|
14059
14059
|
if (P.isNull)
|
|
14060
14060
|
throw new Error("Field Style cannot be null");
|
|
14061
|
-
|
|
14061
|
+
b.Style = T(P.asDictionary());
|
|
14062
14062
|
break;
|
|
14063
14063
|
}
|
|
14064
14064
|
}
|
|
14065
14065
|
}
|
|
14066
14066
|
function T(p) {
|
|
14067
|
-
const
|
|
14067
|
+
const b = /* @__PURE__ */ Object.create(null);
|
|
14068
14068
|
let P;
|
|
14069
14069
|
for (; (P = p.next()) !== null; ) {
|
|
14070
14070
|
const V = P.key.asString();
|
|
14071
|
-
|
|
14071
|
+
b[V] = P.value.asString();
|
|
14072
14072
|
}
|
|
14073
|
-
return
|
|
14073
|
+
return b;
|
|
14074
14074
|
}
|
|
14075
14075
|
})(e.UIStylesBatchItem || (e.UIStylesBatchItem = {}));
|
|
14076
14076
|
})(Wo || (Wo = {}));
|
|
@@ -14098,10 +14098,10 @@ var Ro;
|
|
|
14098
14098
|
const N = I, F = u[I];
|
|
14099
14099
|
if (F == null)
|
|
14100
14100
|
continue;
|
|
14101
|
-
const
|
|
14102
|
-
|
|
14103
|
-
|
|
14104
|
-
}),
|
|
14101
|
+
const m = n.beginEntry();
|
|
14102
|
+
m.writeKeyString(N), m.writeValueObject(q.TeleportVersion, (T) => {
|
|
14103
|
+
q.writeToTeleport(F, T);
|
|
14104
|
+
}), m.complete();
|
|
14105
14105
|
}
|
|
14106
14106
|
});
|
|
14107
14107
|
}
|
|
@@ -14149,7 +14149,7 @@ var Ro;
|
|
|
14149
14149
|
let n;
|
|
14150
14150
|
for (; (n = r.next()) !== null; ) {
|
|
14151
14151
|
const u = n.key.asString();
|
|
14152
|
-
t[u] =
|
|
14152
|
+
t[u] = q.readFromTeleport(n.value.asObject());
|
|
14153
14153
|
}
|
|
14154
14154
|
return t;
|
|
14155
14155
|
}
|
|
@@ -14528,32 +14528,32 @@ class cr extends A {
|
|
|
14528
14528
|
super(`No keepalive received within ${l}ms`), this.name = "KeepaliveTimeoutError";
|
|
14529
14529
|
}
|
|
14530
14530
|
}
|
|
14531
|
-
class
|
|
14531
|
+
class Vn extends ar {
|
|
14532
14532
|
constructor(l) {
|
|
14533
14533
|
super(`Maximum reconnection attempts (${l}) exceeded`), this.name = "MaxRetriesExceededError";
|
|
14534
14534
|
}
|
|
14535
14535
|
}
|
|
14536
|
-
class
|
|
14536
|
+
class Ln extends H {
|
|
14537
14537
|
constructor(l) {
|
|
14538
14538
|
super(`Channel provisioning timeout after ${l}ms`), this.name = "ProvisioningTimeoutError";
|
|
14539
14539
|
}
|
|
14540
14540
|
}
|
|
14541
|
-
class
|
|
14541
|
+
class Mi extends H {
|
|
14542
14542
|
constructor(l) {
|
|
14543
14543
|
super(`Channel not found: ${l}`), this.name = "ChannelNotFoundError";
|
|
14544
14544
|
}
|
|
14545
14545
|
}
|
|
14546
|
-
class
|
|
14546
|
+
class ki extends H {
|
|
14547
14547
|
constructor(l) {
|
|
14548
14548
|
super(`Space not found for domain: ${l}`), this.name = "SpaceNotFoundError";
|
|
14549
14549
|
}
|
|
14550
14550
|
}
|
|
14551
|
-
class
|
|
14551
|
+
class Si extends H {
|
|
14552
14552
|
constructor() {
|
|
14553
14553
|
super("No channels available in this space"), this.name = "NoChannelsError";
|
|
14554
14554
|
}
|
|
14555
14555
|
}
|
|
14556
|
-
function
|
|
14556
|
+
function sn(e, l) {
|
|
14557
14557
|
return new Promise((i, s) => {
|
|
14558
14558
|
const d = () => {
|
|
14559
14559
|
clearTimeout(a), s(new Error("Aborted"));
|
|
@@ -14567,32 +14567,32 @@ function ln(e, l) {
|
|
|
14567
14567
|
l?.addEventListener("abort", d, { once: !0 });
|
|
14568
14568
|
});
|
|
14569
14569
|
}
|
|
14570
|
-
var
|
|
14570
|
+
var dn = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(dn || {});
|
|
14571
14571
|
let ur = 1, Oe = null;
|
|
14572
|
-
function
|
|
14572
|
+
function Pi(e) {
|
|
14573
14573
|
ur = e;
|
|
14574
14574
|
}
|
|
14575
|
-
function
|
|
14575
|
+
function Ci() {
|
|
14576
14576
|
return ur;
|
|
14577
14577
|
}
|
|
14578
|
-
function
|
|
14578
|
+
function Dn(e) {
|
|
14579
14579
|
Oe = e;
|
|
14580
14580
|
}
|
|
14581
|
-
function
|
|
14581
|
+
function _i() {
|
|
14582
14582
|
return Oe;
|
|
14583
14583
|
}
|
|
14584
|
-
const
|
|
14584
|
+
const vn = {
|
|
14585
14585
|
0: "DEBUG",
|
|
14586
14586
|
1: "INFO",
|
|
14587
14587
|
2: "WARN",
|
|
14588
14588
|
3: "ERROR",
|
|
14589
14589
|
4: "NONE"
|
|
14590
14590
|
};
|
|
14591
|
-
function
|
|
14591
|
+
function jn(e, l) {
|
|
14592
14592
|
return `[${e}] ${l}`;
|
|
14593
14593
|
}
|
|
14594
14594
|
function Fe(e, l, i, s) {
|
|
14595
|
-
const d = (/* @__PURE__ */ new Date()).toISOString(), a =
|
|
14595
|
+
const d = (/* @__PURE__ */ new Date()).toISOString(), a = vn[e];
|
|
14596
14596
|
if (Oe && Oe({
|
|
14597
14597
|
timestamp: d,
|
|
14598
14598
|
level: e,
|
|
@@ -14601,7 +14601,7 @@ function Fe(e, l, i, s) {
|
|
|
14601
14601
|
message: i,
|
|
14602
14602
|
args: s
|
|
14603
14603
|
}), ur <= e) {
|
|
14604
|
-
const c =
|
|
14604
|
+
const c = jn(l, i);
|
|
14605
14605
|
switch (e) {
|
|
14606
14606
|
case 0:
|
|
14607
14607
|
console.debug(c, ...s);
|
|
@@ -14634,8 +14634,8 @@ function z(e) {
|
|
|
14634
14634
|
}
|
|
14635
14635
|
};
|
|
14636
14636
|
}
|
|
14637
|
-
const
|
|
14638
|
-
class
|
|
14637
|
+
const be = z("WebSocketTransport"), Hn = 1e4;
|
|
14638
|
+
class xn {
|
|
14639
14639
|
ws = null;
|
|
14640
14640
|
keepaliveTimeout = null;
|
|
14641
14641
|
keepaliveTimeoutMs;
|
|
@@ -14660,11 +14660,11 @@ class Hn {
|
|
|
14660
14660
|
clearTimeout(w), this.ws && (this.ws.onopen = null, this.ws.onerror = null, this.ws.onclose = null, this.ws.onmessage = null);
|
|
14661
14661
|
}, w = setTimeout(() => {
|
|
14662
14662
|
c || (c = !0, f(), this.ws?.close(), d(new A("WebSocket connection timeout")));
|
|
14663
|
-
},
|
|
14663
|
+
}, Hn);
|
|
14664
14664
|
this.ws.onopen = () => {
|
|
14665
14665
|
a = !0, clearTimeout(w), this.ws.send(i), this.resetKeepaliveTimeout(), c || (c = !0, s());
|
|
14666
14666
|
}, this.ws.onerror = () => {
|
|
14667
|
-
clearTimeout(w),
|
|
14667
|
+
clearTimeout(w), be.error("WebSocket error"), c || (c = !0, f(), d(new A("WebSocket connection failed")));
|
|
14668
14668
|
}, this.ws.onclose = (h) => {
|
|
14669
14669
|
if (this.clearKeepaliveTimeout(), !a && !c) {
|
|
14670
14670
|
c = !0, f(), d(new A("WebSocket connection closed before opening"));
|
|
@@ -14678,7 +14678,7 @@ class Hn {
|
|
|
14678
14678
|
});
|
|
14679
14679
|
}
|
|
14680
14680
|
send(l) {
|
|
14681
|
-
this.ws?.readyState === WebSocket.OPEN ? this.ws.send(l) :
|
|
14681
|
+
this.ws?.readyState === WebSocket.OPEN ? this.ws.send(l) : be.warn("Cannot send: WebSocket not connected");
|
|
14682
14682
|
}
|
|
14683
14683
|
close() {
|
|
14684
14684
|
this.clearKeepaliveTimeout(), this.ws && (this.ws.close(1e3, "Client closing"), this.ws = null);
|
|
@@ -14692,12 +14692,12 @@ class Hn {
|
|
|
14692
14692
|
}
|
|
14693
14693
|
this.resetKeepaliveTimeout(), this.callbacks.onProtocolMessage(l);
|
|
14694
14694
|
} catch (i) {
|
|
14695
|
-
|
|
14695
|
+
be.error("Failed to process protocol message:", i), this.callbacks.onError(i instanceof Error ? i : new Error(String(i)));
|
|
14696
14696
|
}
|
|
14697
14697
|
}
|
|
14698
14698
|
resetKeepaliveTimeout() {
|
|
14699
14699
|
this.clearKeepaliveTimeout(), this.keepaliveTimeout = setTimeout(() => {
|
|
14700
|
-
|
|
14700
|
+
be.error(`No keepalive received in ${this.keepaliveTimeoutMs}ms, closing connection`), this.callbacks.onError(new cr(this.keepaliveTimeoutMs)), this.close();
|
|
14701
14701
|
}, this.keepaliveTimeoutMs);
|
|
14702
14702
|
}
|
|
14703
14703
|
clearKeepaliveTimeout() {
|
|
@@ -14705,10 +14705,10 @@ class Hn {
|
|
|
14705
14705
|
}
|
|
14706
14706
|
}
|
|
14707
14707
|
const Q = z("WebTransportTransport"), zo = 4;
|
|
14708
|
-
function
|
|
14708
|
+
function an() {
|
|
14709
14709
|
return typeof WebTransport < "u";
|
|
14710
14710
|
}
|
|
14711
|
-
class
|
|
14711
|
+
class Wn {
|
|
14712
14712
|
transport = null;
|
|
14713
14713
|
stream = null;
|
|
14714
14714
|
reader = null;
|
|
@@ -14726,7 +14726,7 @@ class xn {
|
|
|
14726
14726
|
return this.transport !== null && this.writer !== null;
|
|
14727
14727
|
}
|
|
14728
14728
|
async connect(l, i) {
|
|
14729
|
-
if (!
|
|
14729
|
+
if (!an())
|
|
14730
14730
|
throw new A("WebTransport is not supported in this browser");
|
|
14731
14731
|
try {
|
|
14732
14732
|
this.transport = new WebTransport(l), await this.transport.ready, Q.debug(`Connected to WebTransport entrypoint: ${l}`), this.transport.closed.then(() => {
|
|
@@ -14840,8 +14840,8 @@ class xn {
|
|
|
14840
14840
|
}
|
|
14841
14841
|
}
|
|
14842
14842
|
}
|
|
14843
|
-
const
|
|
14844
|
-
class
|
|
14843
|
+
const me = z("Channel");
|
|
14844
|
+
class Rn {
|
|
14845
14845
|
state = "disconnected";
|
|
14846
14846
|
transport = null;
|
|
14847
14847
|
config;
|
|
@@ -14883,7 +14883,7 @@ class Wn {
|
|
|
14883
14883
|
try {
|
|
14884
14884
|
await this.connectTransport(), this.setState("connected");
|
|
14885
14885
|
} catch (l) {
|
|
14886
|
-
throw
|
|
14886
|
+
throw me.error("Channel connection failed:", l), this.setState("disconnected"), l;
|
|
14887
14887
|
}
|
|
14888
14888
|
}
|
|
14889
14889
|
/**
|
|
@@ -14897,7 +14897,7 @@ class Wn {
|
|
|
14897
14897
|
*/
|
|
14898
14898
|
send(l) {
|
|
14899
14899
|
if (!this.transport?.isConnected) {
|
|
14900
|
-
|
|
14900
|
+
me.warn("Cannot send: channel not connected");
|
|
14901
14901
|
return;
|
|
14902
14902
|
}
|
|
14903
14903
|
this.transport.send(l);
|
|
@@ -14918,13 +14918,13 @@ class Wn {
|
|
|
14918
14918
|
switch (l.Type) {
|
|
14919
14919
|
case K.WebSocket:
|
|
14920
14920
|
case K.WebSocketProxy:
|
|
14921
|
-
this.transport = new
|
|
14921
|
+
this.transport = new xn(i);
|
|
14922
14922
|
break;
|
|
14923
14923
|
case K.WebTransport:
|
|
14924
14924
|
case K.WebTransportProxy:
|
|
14925
|
-
if (!
|
|
14925
|
+
if (!an())
|
|
14926
14926
|
throw new Error("WebTransport is not supported in this browser");
|
|
14927
|
-
this.transport = new
|
|
14927
|
+
this.transport = new Wn(i);
|
|
14928
14928
|
break;
|
|
14929
14929
|
default:
|
|
14930
14930
|
throw new Error(`Unsupported entrypoint type: ${K[l.Type]}`);
|
|
@@ -14943,7 +14943,7 @@ class Wn {
|
|
|
14943
14943
|
}
|
|
14944
14944
|
this.config.onProtocolMessage?.(i);
|
|
14945
14945
|
} catch (i) {
|
|
14946
|
-
|
|
14946
|
+
me.error("Failed to handle protocol message:", i), this.config.onError?.(i instanceof Error ? i : new Error(String(i)));
|
|
14947
14947
|
}
|
|
14948
14948
|
}
|
|
14949
14949
|
/**
|
|
@@ -14956,7 +14956,7 @@ class Wn {
|
|
|
14956
14956
|
* Handle transport error.
|
|
14957
14957
|
*/
|
|
14958
14958
|
handleError(l) {
|
|
14959
|
-
|
|
14959
|
+
me.error("Channel error:", l), this.config.onError?.(l), l instanceof cr && this.handleClose("Keepalive timeout", !1);
|
|
14960
14960
|
}
|
|
14961
14961
|
/**
|
|
14962
14962
|
* Update and notify state change.
|
|
@@ -14966,7 +14966,7 @@ class Wn {
|
|
|
14966
14966
|
}
|
|
14967
14967
|
}
|
|
14968
14968
|
const B = z("ChannelManager");
|
|
14969
|
-
class
|
|
14969
|
+
class Gn {
|
|
14970
14970
|
channels = /* @__PURE__ */ new Map();
|
|
14971
14971
|
// keyed by opcode group
|
|
14972
14972
|
activeType = null;
|
|
@@ -15068,7 +15068,7 @@ class Rn {
|
|
|
15068
15068
|
* Connect a single channel.
|
|
15069
15069
|
*/
|
|
15070
15070
|
async connectChannel(l) {
|
|
15071
|
-
const i = new
|
|
15071
|
+
const i = new Rn({
|
|
15072
15072
|
entrypoint: l,
|
|
15073
15073
|
sessionId: this.config.sessionId,
|
|
15074
15074
|
keepaliveTimeoutMs: this.config.keepaliveTimeoutMs,
|
|
@@ -15118,12 +15118,12 @@ class Rn {
|
|
|
15118
15118
|
if (!this.shouldReconnect)
|
|
15119
15119
|
return;
|
|
15120
15120
|
if (this.reconnectAttempts >= this.config.maxReconnectAttempts) {
|
|
15121
|
-
B.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new
|
|
15121
|
+
B.error(`Max reconnect attempts (${this.config.maxReconnectAttempts}) reached`), this.setState("offline"), this.config.onError?.(new Vn(this.config.maxReconnectAttempts));
|
|
15122
15122
|
return;
|
|
15123
15123
|
}
|
|
15124
15124
|
this.setState("reconnecting"), this.reconnectAttempts++;
|
|
15125
15125
|
const l = this.config.reconnectBackoffMs * Math.pow(2, this.reconnectAttempts - 1);
|
|
15126
|
-
if (B.info(`Reconnecting in ${l}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await
|
|
15126
|
+
if (B.info(`Reconnecting in ${l}ms (attempt ${this.reconnectAttempts}/${this.config.maxReconnectAttempts})`), await sn(l, this.abortController?.signal), !!this.shouldReconnect)
|
|
15127
15127
|
try {
|
|
15128
15128
|
await this.connectInternal(!0);
|
|
15129
15129
|
} catch (i) {
|
|
@@ -15145,7 +15145,7 @@ class Rn {
|
|
|
15145
15145
|
this.state !== l && (this.state = l, this.config.onStateChange?.(l));
|
|
15146
15146
|
}
|
|
15147
15147
|
}
|
|
15148
|
-
const
|
|
15148
|
+
const Kn = 5e3, Jn = 3e4, Yo = 35e3, Xo = 500, Qo = 6, cn = 6e4, Ae = "ikon_device_id";
|
|
15149
15149
|
function fr() {
|
|
15150
15150
|
if (typeof window > "u" || typeof localStorage > "u")
|
|
15151
15151
|
return crypto.randomUUID();
|
|
@@ -15156,14 +15156,14 @@ function fr() {
|
|
|
15156
15156
|
return crypto.randomUUID();
|
|
15157
15157
|
}
|
|
15158
15158
|
}
|
|
15159
|
-
function
|
|
15159
|
+
function Oi() {
|
|
15160
15160
|
if (!(typeof localStorage > "u"))
|
|
15161
15161
|
try {
|
|
15162
15162
|
localStorage.removeItem(Ae);
|
|
15163
15163
|
} catch {
|
|
15164
15164
|
}
|
|
15165
15165
|
}
|
|
15166
|
-
function
|
|
15166
|
+
function Vi(e) {
|
|
15167
15167
|
try {
|
|
15168
15168
|
const l = e.split(".");
|
|
15169
15169
|
return l.length !== 3 ? null : JSON.parse(atob(l[1])).id ?? null;
|
|
@@ -15171,26 +15171,26 @@ function Oi(e) {
|
|
|
15171
15171
|
return null;
|
|
15172
15172
|
}
|
|
15173
15173
|
}
|
|
15174
|
-
const Ve = {}, Ue = "https://api.prod.ikon.live", Le = "https://api.dev.ikon.live",
|
|
15175
|
-
function
|
|
15174
|
+
const Ve = {}, Ue = "https://api.prod.ikon.live", Le = "https://api.dev.ikon.live", Zo = "https://auth.ikonai.com", qo = "https://auth.dev.ikonai.com", Li = "https://auth.ikonai.com";
|
|
15175
|
+
function un(e) {
|
|
15176
15176
|
return e === "development" ? Le : Ue;
|
|
15177
15177
|
}
|
|
15178
|
-
function
|
|
15178
|
+
function Di() {
|
|
15179
15179
|
const e = typeof import.meta < "u" ? Ve?.VITE_IKON_BACKEND_URL : void 0;
|
|
15180
15180
|
return e || (typeof window > "u" ? Ue : !wr() || window.location.hostname.includes(".dev.") ? Le : Ue);
|
|
15181
15181
|
}
|
|
15182
|
-
function
|
|
15182
|
+
function vi() {
|
|
15183
15183
|
const e = typeof import.meta < "u" ? Ve?.VITE_IKON_BACKEND_TYPE : void 0;
|
|
15184
15184
|
if (e === "development" || e === "production")
|
|
15185
15185
|
return e;
|
|
15186
15186
|
const l = typeof import.meta < "u" ? Ve?.VITE_IKON_BACKEND_URL : void 0;
|
|
15187
15187
|
return l ? l.includes(".dev.") ? "development" : "production" : typeof window > "u" ? "production" : wr() ? window.location.hostname.includes(".dev.") ? "development" : "production" : "development";
|
|
15188
15188
|
}
|
|
15189
|
-
function
|
|
15189
|
+
function ji() {
|
|
15190
15190
|
const e = typeof import.meta < "u" ? Ve?.VITE_IKON_AUTH_URL : void 0;
|
|
15191
|
-
return e || (typeof window > "u" ?
|
|
15191
|
+
return e || (typeof window > "u" ? Zo : !wr() || window.location.hostname.includes(".dev.") ? qo : Zo);
|
|
15192
15192
|
}
|
|
15193
|
-
function
|
|
15193
|
+
function fn() {
|
|
15194
15194
|
if (typeof window > "u")
|
|
15195
15195
|
return {};
|
|
15196
15196
|
const e = new URLSearchParams(window.location.search), l = {};
|
|
@@ -15198,8 +15198,8 @@ function un() {
|
|
|
15198
15198
|
l[i] = s;
|
|
15199
15199
|
return l;
|
|
15200
15200
|
}
|
|
15201
|
-
const
|
|
15202
|
-
function
|
|
15201
|
+
const $n = ["ikon_token", "ikon_provider", "error"];
|
|
15202
|
+
function Hi() {
|
|
15203
15203
|
if (typeof window > "u")
|
|
15204
15204
|
return { parameters: {} };
|
|
15205
15205
|
const e = window.location.pathname;
|
|
@@ -15209,9 +15209,9 @@ function ji() {
|
|
|
15209
15209
|
const d = e.match(/^\/c\/([^/]+)/);
|
|
15210
15210
|
if (d && (i = decodeURIComponent(d[1])), l && i)
|
|
15211
15211
|
throw new Error("URL cannot contain both /s/[sessionId] and /c/[channelKey]");
|
|
15212
|
-
const a =
|
|
15212
|
+
const a = fn(), c = {};
|
|
15213
15213
|
for (const [f, w] of Object.entries(a))
|
|
15214
|
-
|
|
15214
|
+
$n.includes(f) || (c[f] = w);
|
|
15215
15215
|
return { sessionId: l, channelKey: i, parameters: c };
|
|
15216
15216
|
}
|
|
15217
15217
|
function wr() {
|
|
@@ -15226,8 +15226,8 @@ function wr() {
|
|
|
15226
15226
|
}
|
|
15227
15227
|
return !0;
|
|
15228
15228
|
}
|
|
15229
|
-
const De = z("Authenticator"), de = j.GROUP_CORE | j.GROUP_KEEPALIVE | j.GROUP_EVENTS | j.GROUP_ACTIONS | j.GROUP_UI | j.GROUP_AUDIO | j.GROUP_VIDEO,
|
|
15230
|
-
async function
|
|
15229
|
+
const De = z("Authenticator"), de = j.GROUP_CORE | j.GROUP_KEEPALIVE | j.GROUP_EVENTS | j.GROUP_ACTIONS | j.GROUP_UI | j.GROUP_AUDIO | j.GROUP_VIDEO, zn = 1e3, Yn = 5e3;
|
|
15230
|
+
async function Xn(e) {
|
|
15231
15231
|
try {
|
|
15232
15232
|
const l = await fetch(`${Le}/users/me`, {
|
|
15233
15233
|
credentials: "include",
|
|
@@ -15238,7 +15238,7 @@ async function Yn(e) {
|
|
|
15238
15238
|
return;
|
|
15239
15239
|
}
|
|
15240
15240
|
}
|
|
15241
|
-
function
|
|
15241
|
+
function wn(e, l, i) {
|
|
15242
15242
|
const s = {
|
|
15243
15243
|
method: "POST",
|
|
15244
15244
|
headers: {
|
|
@@ -15250,40 +15250,40 @@ function fn(e, l, i) {
|
|
|
15250
15250
|
};
|
|
15251
15251
|
return l || (s.credentials = "include"), s;
|
|
15252
15252
|
}
|
|
15253
|
-
async function
|
|
15253
|
+
async function hn(e, l, i, s, d, a, c) {
|
|
15254
15254
|
const f = `${e}/rooms`, w = {
|
|
15255
15255
|
space: l,
|
|
15256
15256
|
...i ? { key: i } : {},
|
|
15257
15257
|
...s && Object.keys(s).length > 0 ? { params: s } : {},
|
|
15258
15258
|
...d ? { hash: d } : {}
|
|
15259
|
-
}, h = await fetch(f,
|
|
15259
|
+
}, h = await fetch(f, wn(w, a, c));
|
|
15260
15260
|
if (!h.ok) {
|
|
15261
15261
|
const r = await h.text().catch(() => "Unknown error");
|
|
15262
15262
|
throw new H(`Failed to request channel: ${h.status} ${r}`);
|
|
15263
15263
|
}
|
|
15264
15264
|
return await h.json();
|
|
15265
15265
|
}
|
|
15266
|
-
async function
|
|
15267
|
-
const d = `${e}/rooms/connect`, a = await fetch(d,
|
|
15266
|
+
async function Qn(e, l, i, s) {
|
|
15267
|
+
const d = `${e}/rooms/connect`, a = await fetch(d, wn(l, i, s));
|
|
15268
15268
|
if (!a.ok) {
|
|
15269
15269
|
const c = await a.text().catch(() => "Unknown error");
|
|
15270
15270
|
throw new H(`Backend connect failed: ${a.status} ${c}`);
|
|
15271
15271
|
}
|
|
15272
15272
|
return a.json();
|
|
15273
15273
|
}
|
|
15274
|
-
async function
|
|
15274
|
+
async function In(e, l, i, s, d) {
|
|
15275
15275
|
const a = Date.now();
|
|
15276
|
-
let c =
|
|
15276
|
+
let c = zn;
|
|
15277
15277
|
for (; ; ) {
|
|
15278
15278
|
if (d?.aborted)
|
|
15279
15279
|
throw new H("Connection aborted");
|
|
15280
15280
|
if (Date.now() - a >= i)
|
|
15281
|
-
throw new
|
|
15282
|
-
const w = await
|
|
15281
|
+
throw new Ln(i);
|
|
15282
|
+
const w = await Qn(e, l, s, d), h = w.state?.toLowerCase();
|
|
15283
15283
|
if (h === "running")
|
|
15284
15284
|
return w;
|
|
15285
15285
|
if (h === "provisioning") {
|
|
15286
|
-
await
|
|
15286
|
+
await sn(c, d), c = Math.min(c * 1.5, Yn);
|
|
15287
15287
|
continue;
|
|
15288
15288
|
}
|
|
15289
15289
|
throw new H(`Unexpected channel state: ${w.state}`);
|
|
@@ -15298,8 +15298,8 @@ async function hr(e, l) {
|
|
|
15298
15298
|
const s = await i.arrayBuffer(), d = new Uint8Array(s);
|
|
15299
15299
|
return { authResponse: Qe.fromProtocolMessage(d) };
|
|
15300
15300
|
}
|
|
15301
|
-
function
|
|
15302
|
-
return
|
|
15301
|
+
function Zn(e, l) {
|
|
15302
|
+
return Ze.create({
|
|
15303
15303
|
ServerSessionId: "",
|
|
15304
15304
|
// Server will fill this in
|
|
15305
15305
|
ContextType: xe.Browser,
|
|
@@ -15353,13 +15353,13 @@ function qn(e) {
|
|
|
15353
15353
|
Parameters: e.Parameters
|
|
15354
15354
|
};
|
|
15355
15355
|
}
|
|
15356
|
-
async function
|
|
15356
|
+
async function Bn(e, l) {
|
|
15357
15357
|
const i = `https://${e.host}:${e.httpsPort}`;
|
|
15358
15358
|
De.debug(`Authenticating with local server: ${i}`);
|
|
15359
|
-
const d = { ...
|
|
15359
|
+
const d = { ...fn(), ...e.parameters };
|
|
15360
15360
|
let a = e.userId;
|
|
15361
|
-
a || (a = await
|
|
15362
|
-
const c =
|
|
15361
|
+
a || (a = await Xn(l), a || (a = "local", De.warn('Could not determine user ID. Using fallback "local". To fix: either provide userId in config, or log in to the Ikon portal at https://portal.dev.ikon.live')));
|
|
15362
|
+
const c = Zn({ ...e, parameters: d }, a), f = qn(c), w = await fetch(`${i}/connect-token`, {
|
|
15363
15363
|
method: "POST",
|
|
15364
15364
|
headers: {
|
|
15365
15365
|
"Content-Type": "application/json"
|
|
@@ -15377,10 +15377,10 @@ async function Zn(e, l) {
|
|
|
15377
15377
|
const r = `${i}/connect?token=${encodeURIComponent(o)}`;
|
|
15378
15378
|
return hr(r, l);
|
|
15379
15379
|
}
|
|
15380
|
-
async function
|
|
15380
|
+
async function An(e, l) {
|
|
15381
15381
|
if (e.sessionId && e.channelKey)
|
|
15382
15382
|
throw new H("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
15383
|
-
const i =
|
|
15383
|
+
const i = un(e.backendType);
|
|
15384
15384
|
De.debug(`Authenticating with cloud server: ${i}, space ID: ${e.spaceId}`);
|
|
15385
15385
|
const s = await fetch(`${i}/auth/api-key`, {
|
|
15386
15386
|
method: "POST",
|
|
@@ -15413,7 +15413,7 @@ async function Bn(e, l) {
|
|
|
15413
15413
|
throw new H(`Failed to get or create profile: ${c.status} ${t}`);
|
|
15414
15414
|
}
|
|
15415
15415
|
const w = {
|
|
15416
|
-
code: (await
|
|
15416
|
+
code: (await hn(i, e.spaceId, e.channelKey, e.parameters, e.sessionId, a, l)).code,
|
|
15417
15417
|
contextType: xe.Plugin,
|
|
15418
15418
|
userType: e.userType ?? Re.Human,
|
|
15419
15419
|
clientType: e.clientType ?? He.DesktopWeb,
|
|
@@ -15431,16 +15431,16 @@ async function Bn(e, l) {
|
|
|
15431
15431
|
launchParams: e.parameters,
|
|
15432
15432
|
hash: e.sessionId,
|
|
15433
15433
|
waitForRunning: !0
|
|
15434
|
-
}, h = e.provisioningTimeoutMs ??
|
|
15434
|
+
}, h = e.provisioningTimeoutMs ?? cn, o = await In(i, w, h, a, l);
|
|
15435
15435
|
if (!o.configuration?.url)
|
|
15436
15436
|
throw new H("Backend did not return a connect URL");
|
|
15437
15437
|
const r = o.configuration.url;
|
|
15438
15438
|
return hr(r, l);
|
|
15439
15439
|
}
|
|
15440
|
-
async function
|
|
15440
|
+
async function Un(e, l) {
|
|
15441
15441
|
if (e.sessionId && e.channelKey)
|
|
15442
15442
|
throw new H("Cannot specify both sessionId and channelKey. Use sessionId for precomputed sessions or channelKey to select a channel.");
|
|
15443
|
-
const i =
|
|
15443
|
+
const i = un(e.backendType), s = e.token;
|
|
15444
15444
|
De.debug(`Authenticating with session token to: ${i}, space ID: ${e.spaceId}`);
|
|
15445
15445
|
const d = await fetch(`${i}/profiles/me?space=${encodeURIComponent(e.spaceId)}`, {
|
|
15446
15446
|
method: "GET",
|
|
@@ -15454,7 +15454,7 @@ async function An(e, l) {
|
|
|
15454
15454
|
throw new H(`Failed to get or create profile: ${d.status} ${o}`);
|
|
15455
15455
|
}
|
|
15456
15456
|
const c = {
|
|
15457
|
-
code: (await
|
|
15457
|
+
code: (await hn(i, e.spaceId, e.channelKey, e.parameters, e.sessionId, s, l)).code,
|
|
15458
15458
|
contextType: xe.Browser,
|
|
15459
15459
|
userType: Re.Human,
|
|
15460
15460
|
clientType: He.DesktopWeb,
|
|
@@ -15472,28 +15472,28 @@ async function An(e, l) {
|
|
|
15472
15472
|
launchParams: e.parameters,
|
|
15473
15473
|
hash: e.sessionId,
|
|
15474
15474
|
waitForRunning: !0
|
|
15475
|
-
}, f = e.provisioningTimeoutMs ??
|
|
15475
|
+
}, f = e.provisioningTimeoutMs ?? cn, w = await In(i, c, f, s, l);
|
|
15476
15476
|
if (!w.configuration?.url)
|
|
15477
15477
|
throw new H("Backend did not return a connect URL");
|
|
15478
15478
|
const h = w.configuration.url;
|
|
15479
15479
|
return hr(h, l);
|
|
15480
15480
|
}
|
|
15481
|
-
const
|
|
15482
|
-
function
|
|
15481
|
+
const pn = "ikon.theme", er = "ikon.theme-user", el = "ikon.theme-change";
|
|
15482
|
+
function Tn(e) {
|
|
15483
15483
|
typeof document < "u" && document.documentElement && document.documentElement.setAttribute("data-theme", e);
|
|
15484
15484
|
}
|
|
15485
|
-
const
|
|
15485
|
+
const rl = {
|
|
15486
15486
|
name: "ikon.client.getTheme",
|
|
15487
15487
|
description: "Get the currently selected client theme",
|
|
15488
15488
|
returnType: { kind: "string", nullable: !0 }
|
|
15489
15489
|
};
|
|
15490
|
-
function
|
|
15490
|
+
function tl() {
|
|
15491
15491
|
if (typeof window > "u" || !window.localStorage)
|
|
15492
15492
|
return null;
|
|
15493
|
-
const e = window.localStorage.getItem(er) ?? window.localStorage.getItem(
|
|
15494
|
-
return
|
|
15493
|
+
const e = window.localStorage.getItem(er) ?? window.localStorage.getItem(pn) ?? "light";
|
|
15494
|
+
return Tn(e), e;
|
|
15495
15495
|
}
|
|
15496
|
-
const
|
|
15496
|
+
const ol = {
|
|
15497
15497
|
name: "ikon.client.setTheme",
|
|
15498
15498
|
description: "Update the client UI theme",
|
|
15499
15499
|
returnType: { kind: "boolean" },
|
|
@@ -15502,21 +15502,21 @@ const tl = {
|
|
|
15502
15502
|
{ name: "persist", type: { kind: "boolean", nullable: !0 }, description: "Whether to persist as user preference" }
|
|
15503
15503
|
]
|
|
15504
15504
|
};
|
|
15505
|
-
function
|
|
15505
|
+
function nl(e, l) {
|
|
15506
15506
|
if (typeof window > "u" || !window.localStorage || typeof e != "string")
|
|
15507
15507
|
return !1;
|
|
15508
15508
|
const i = e.trim().toLowerCase();
|
|
15509
15509
|
if (!i)
|
|
15510
15510
|
return !1;
|
|
15511
15511
|
const s = l === void 0 ? !0 : !!l, d = window.localStorage;
|
|
15512
|
-
s ? d.setItem(er, i) : d.removeItem(er), d.setItem(
|
|
15512
|
+
s ? d.setItem(er, i) : d.removeItem(er), d.setItem(pn, i);
|
|
15513
15513
|
try {
|
|
15514
|
-
window.dispatchEvent(new CustomEvent(
|
|
15514
|
+
window.dispatchEvent(new CustomEvent(el, { detail: { mode: i } }));
|
|
15515
15515
|
} catch {
|
|
15516
15516
|
}
|
|
15517
|
-
return
|
|
15517
|
+
return Tn(i), !0;
|
|
15518
15518
|
}
|
|
15519
|
-
const
|
|
15519
|
+
const ll = {
|
|
15520
15520
|
name: "ikon.client.getLocation",
|
|
15521
15521
|
description: "Retrieve the current geolocation coordinates from the browser",
|
|
15522
15522
|
returnType: {
|
|
@@ -15526,7 +15526,7 @@ const nl = {
|
|
|
15526
15526
|
nullable: !0
|
|
15527
15527
|
}
|
|
15528
15528
|
};
|
|
15529
|
-
async function
|
|
15529
|
+
async function il() {
|
|
15530
15530
|
if (typeof navigator > "u" || !navigator.geolocation)
|
|
15531
15531
|
return null;
|
|
15532
15532
|
try {
|
|
@@ -15545,7 +15545,7 @@ async function ll() {
|
|
|
15545
15545
|
return null;
|
|
15546
15546
|
}
|
|
15547
15547
|
}
|
|
15548
|
-
const
|
|
15548
|
+
const sl = {
|
|
15549
15549
|
name: "ikon.client.share",
|
|
15550
15550
|
description: "Open the Web Share dialog when supported",
|
|
15551
15551
|
returnType: { kind: "boolean" },
|
|
@@ -15555,7 +15555,7 @@ const il = {
|
|
|
15555
15555
|
{ name: "url", type: { kind: "string", nullable: !0 }, description: "Share URL" }
|
|
15556
15556
|
]
|
|
15557
15557
|
};
|
|
15558
|
-
async function
|
|
15558
|
+
async function dl(e, l, i) {
|
|
15559
15559
|
if (typeof navigator > "u" || typeof navigator.share != "function")
|
|
15560
15560
|
return !1;
|
|
15561
15561
|
const s = typeof e == "string" ? e.trim() : "", d = typeof l == "string" ? l.trim() : "", a = typeof i == "string" ? i.trim() : "", c = {};
|
|
@@ -15567,13 +15567,13 @@ async function sl(e, l, i) {
|
|
|
15567
15567
|
return !1;
|
|
15568
15568
|
}
|
|
15569
15569
|
}
|
|
15570
|
-
const
|
|
15570
|
+
const al = {
|
|
15571
15571
|
name: "ikon.client.pickContacts",
|
|
15572
15572
|
description: "Launch the native contact picker when available",
|
|
15573
15573
|
returnType: { kind: "string", nullable: !0 },
|
|
15574
15574
|
parameters: [{ name: "multiple", type: { kind: "boolean", nullable: !0 }, description: "Allow multiple contacts" }]
|
|
15575
15575
|
};
|
|
15576
|
-
async function
|
|
15576
|
+
async function cl(e) {
|
|
15577
15577
|
if (typeof navigator > "u")
|
|
15578
15578
|
return null;
|
|
15579
15579
|
const l = navigator, i = l.contacts?.select;
|
|
@@ -15592,33 +15592,33 @@ async function al(e) {
|
|
|
15592
15592
|
return null;
|
|
15593
15593
|
}
|
|
15594
15594
|
}
|
|
15595
|
-
const
|
|
15595
|
+
const ul = {
|
|
15596
15596
|
name: "ikon.client.getLanguage",
|
|
15597
15597
|
description: "Get the browser language preference",
|
|
15598
15598
|
returnType: { kind: "string" }
|
|
15599
15599
|
};
|
|
15600
|
-
function
|
|
15600
|
+
function fl() {
|
|
15601
15601
|
return typeof navigator > "u" ? "en-US" : navigator.language || "en-US";
|
|
15602
15602
|
}
|
|
15603
|
-
const
|
|
15603
|
+
const wl = {
|
|
15604
15604
|
name: "ikon.client.getTimezone",
|
|
15605
15605
|
description: "Get the browser timezone (IANA format)",
|
|
15606
15606
|
returnType: { kind: "string" }
|
|
15607
15607
|
};
|
|
15608
|
-
function
|
|
15608
|
+
function hl() {
|
|
15609
15609
|
try {
|
|
15610
15610
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
15611
15611
|
} catch {
|
|
15612
15612
|
return "UTC";
|
|
15613
15613
|
}
|
|
15614
15614
|
}
|
|
15615
|
-
const
|
|
15615
|
+
const Il = {
|
|
15616
15616
|
name: "ikon.client.copyToClipboard",
|
|
15617
15617
|
description: "Copy text to clipboard",
|
|
15618
15618
|
returnType: { kind: "boolean" },
|
|
15619
15619
|
parameters: [{ name: "text", type: { kind: "string" }, description: "Text to copy" }]
|
|
15620
15620
|
};
|
|
15621
|
-
async function
|
|
15621
|
+
async function pl(e) {
|
|
15622
15622
|
if (typeof navigator > "u" || !navigator.clipboard || typeof e != "string")
|
|
15623
15623
|
return !1;
|
|
15624
15624
|
try {
|
|
@@ -15627,15 +15627,15 @@ async function Il(e) {
|
|
|
15627
15627
|
return !1;
|
|
15628
15628
|
}
|
|
15629
15629
|
}
|
|
15630
|
-
const
|
|
15630
|
+
const Tl = {
|
|
15631
15631
|
name: "ikon.client.getUrl",
|
|
15632
15632
|
description: "Get the current browser URL path and query string",
|
|
15633
15633
|
returnType: { kind: "string", nullable: !0 }
|
|
15634
15634
|
};
|
|
15635
|
-
function
|
|
15635
|
+
function Fl() {
|
|
15636
15636
|
return typeof window > "u" ? null : window.location.pathname + window.location.search;
|
|
15637
15637
|
}
|
|
15638
|
-
const
|
|
15638
|
+
const bl = {
|
|
15639
15639
|
name: "ikon.client.setUrl",
|
|
15640
15640
|
description: "Update the browser URL without triggering a page reload",
|
|
15641
15641
|
returnType: { kind: "boolean" },
|
|
@@ -15656,13 +15656,13 @@ function ml(e, l) {
|
|
|
15656
15656
|
return !1;
|
|
15657
15657
|
}
|
|
15658
15658
|
}
|
|
15659
|
-
const
|
|
15659
|
+
const yl = {
|
|
15660
15660
|
name: "ikon.client.vibrate",
|
|
15661
15661
|
description: "Trigger haptic feedback on supported devices",
|
|
15662
15662
|
returnType: { kind: "boolean" },
|
|
15663
15663
|
parameters: [{ name: "pattern", type: { kind: "string" }, description: 'Duration in ms, or comma-separated pattern (e.g., "200" or "100,50,100")' }]
|
|
15664
15664
|
};
|
|
15665
|
-
function
|
|
15665
|
+
function El(e) {
|
|
15666
15666
|
if (typeof navigator > "u" || !navigator.vibrate || typeof e != "string")
|
|
15667
15667
|
return !1;
|
|
15668
15668
|
try {
|
|
@@ -15672,7 +15672,7 @@ function yl(e) {
|
|
|
15672
15672
|
return !1;
|
|
15673
15673
|
}
|
|
15674
15674
|
}
|
|
15675
|
-
const
|
|
15675
|
+
const Nl = {
|
|
15676
15676
|
name: "ikon.client.playSound",
|
|
15677
15677
|
description: "Play audio from a URL",
|
|
15678
15678
|
returnType: { kind: "boolean" },
|
|
@@ -15681,7 +15681,7 @@ const El = {
|
|
|
15681
15681
|
{ name: "volume", type: { kind: "number", nullable: !0 }, description: "Volume level from 0.0 to 1.0" }
|
|
15682
15682
|
]
|
|
15683
15683
|
};
|
|
15684
|
-
async function
|
|
15684
|
+
async function gl(e, l) {
|
|
15685
15685
|
if (typeof window > "u" || typeof Audio > "u" || typeof e != "string" || !e.trim())
|
|
15686
15686
|
return !1;
|
|
15687
15687
|
try {
|
|
@@ -15691,7 +15691,7 @@ async function Nl(e, l) {
|
|
|
15691
15691
|
return !1;
|
|
15692
15692
|
}
|
|
15693
15693
|
}
|
|
15694
|
-
const
|
|
15694
|
+
const Ml = {
|
|
15695
15695
|
name: "ikon.client.showNotification",
|
|
15696
15696
|
description: "Show a browser notification (requests permission if needed)",
|
|
15697
15697
|
returnType: { kind: "boolean" },
|
|
@@ -15701,7 +15701,7 @@ const gl = {
|
|
|
15701
15701
|
{ name: "icon", type: { kind: "string", nullable: !0 }, description: "URL of notification icon" }
|
|
15702
15702
|
]
|
|
15703
15703
|
};
|
|
15704
|
-
async function
|
|
15704
|
+
async function kl(e, l, i) {
|
|
15705
15705
|
if (typeof window > "u" || !("Notification" in window) || typeof e != "string" || !e.trim())
|
|
15706
15706
|
return !1;
|
|
15707
15707
|
try {
|
|
@@ -15714,12 +15714,12 @@ async function Ml(e, l, i) {
|
|
|
15714
15714
|
return !1;
|
|
15715
15715
|
}
|
|
15716
15716
|
}
|
|
15717
|
-
const
|
|
15717
|
+
const Sl = {
|
|
15718
15718
|
name: "ikon.client.requestFullscreen",
|
|
15719
15719
|
description: "Enter fullscreen mode",
|
|
15720
15720
|
returnType: { kind: "boolean" }
|
|
15721
15721
|
};
|
|
15722
|
-
async function
|
|
15722
|
+
async function Pl() {
|
|
15723
15723
|
if (typeof document > "u" || !document.documentElement)
|
|
15724
15724
|
return !1;
|
|
15725
15725
|
try {
|
|
@@ -15729,12 +15729,12 @@ async function Sl() {
|
|
|
15729
15729
|
return !1;
|
|
15730
15730
|
}
|
|
15731
15731
|
}
|
|
15732
|
-
const
|
|
15732
|
+
const Cl = {
|
|
15733
15733
|
name: "ikon.client.exitFullscreen",
|
|
15734
15734
|
description: "Exit fullscreen mode",
|
|
15735
15735
|
returnType: { kind: "boolean" }
|
|
15736
15736
|
};
|
|
15737
|
-
function
|
|
15737
|
+
function _l() {
|
|
15738
15738
|
if (typeof document > "u")
|
|
15739
15739
|
return !1;
|
|
15740
15740
|
try {
|
|
@@ -15744,7 +15744,7 @@ function Cl() {
|
|
|
15744
15744
|
return !1;
|
|
15745
15745
|
}
|
|
15746
15746
|
}
|
|
15747
|
-
const
|
|
15747
|
+
const Ol = {
|
|
15748
15748
|
name: "ikon.client.downloadFile",
|
|
15749
15749
|
description: "Trigger a file download",
|
|
15750
15750
|
returnType: { kind: "boolean" },
|
|
@@ -15753,7 +15753,7 @@ const _l = {
|
|
|
15753
15753
|
{ name: "filename", type: { kind: "string", nullable: !0 }, description: "Suggested filename for the download" }
|
|
15754
15754
|
]
|
|
15755
15755
|
};
|
|
15756
|
-
function
|
|
15756
|
+
function Vl(e, l) {
|
|
15757
15757
|
if (typeof document > "u" || typeof e != "string" || !e.trim())
|
|
15758
15758
|
return !1;
|
|
15759
15759
|
try {
|
|
@@ -15764,13 +15764,13 @@ function Ol(e, l) {
|
|
|
15764
15764
|
}
|
|
15765
15765
|
}
|
|
15766
15766
|
let ce = null;
|
|
15767
|
-
const
|
|
15767
|
+
const Ll = {
|
|
15768
15768
|
name: "ikon.client.keepScreenAwake",
|
|
15769
15769
|
description: "Prevent or allow the screen to sleep",
|
|
15770
15770
|
returnType: { kind: "boolean" },
|
|
15771
15771
|
parameters: [{ name: "enabled", type: { kind: "boolean" }, description: "Whether to keep the screen awake" }]
|
|
15772
15772
|
};
|
|
15773
|
-
async function
|
|
15773
|
+
async function Dl(e) {
|
|
15774
15774
|
if (typeof navigator > "u" || !("wakeLock" in navigator))
|
|
15775
15775
|
return !1;
|
|
15776
15776
|
try {
|
|
@@ -15779,15 +15779,15 @@ async function Ll(e) {
|
|
|
15779
15779
|
return !1;
|
|
15780
15780
|
}
|
|
15781
15781
|
}
|
|
15782
|
-
const
|
|
15782
|
+
const vl = {
|
|
15783
15783
|
name: "ikon.client.getVisibility",
|
|
15784
15784
|
description: "Get the current page visibility state",
|
|
15785
15785
|
returnType: { kind: "string", nullable: !0 }
|
|
15786
15786
|
};
|
|
15787
|
-
function
|
|
15787
|
+
function jl() {
|
|
15788
15788
|
return typeof document > "u" ? null : document.visibilityState || null;
|
|
15789
15789
|
}
|
|
15790
|
-
const
|
|
15790
|
+
const Hl = {
|
|
15791
15791
|
name: "ikon.client.scrollTo",
|
|
15792
15792
|
description: "Scroll the page to a specific position",
|
|
15793
15793
|
returnType: { kind: "boolean" },
|
|
@@ -15797,7 +15797,7 @@ const jl = {
|
|
|
15797
15797
|
{ name: "smooth", type: { kind: "boolean", nullable: !0 }, description: "Whether to animate the scroll" }
|
|
15798
15798
|
]
|
|
15799
15799
|
};
|
|
15800
|
-
function
|
|
15800
|
+
function xl(e, l, i) {
|
|
15801
15801
|
if (typeof window > "u" || typeof e != "number" || typeof l != "number")
|
|
15802
15802
|
return !1;
|
|
15803
15803
|
try {
|
|
@@ -15810,12 +15810,12 @@ function Hl(e, l, i) {
|
|
|
15810
15810
|
return !1;
|
|
15811
15811
|
}
|
|
15812
15812
|
}
|
|
15813
|
-
const
|
|
15813
|
+
const Wl = {
|
|
15814
15814
|
name: "ikon.client.getBatteryLevel",
|
|
15815
15815
|
description: "Get the current battery level (0-100)",
|
|
15816
15816
|
returnType: { kind: "number", nullable: !0 }
|
|
15817
15817
|
};
|
|
15818
|
-
async function
|
|
15818
|
+
async function Rl() {
|
|
15819
15819
|
if (typeof navigator > "u" || !("getBattery" in navigator))
|
|
15820
15820
|
return null;
|
|
15821
15821
|
try {
|
|
@@ -15825,48 +15825,48 @@ async function Wl() {
|
|
|
15825
15825
|
return null;
|
|
15826
15826
|
}
|
|
15827
15827
|
}
|
|
15828
|
-
const
|
|
15828
|
+
const Gl = {
|
|
15829
15829
|
name: "ikon.client.getNetworkType",
|
|
15830
15830
|
description: "Get the current network connection type",
|
|
15831
15831
|
returnType: { kind: "string", nullable: !0 }
|
|
15832
15832
|
};
|
|
15833
|
-
function
|
|
15833
|
+
function Kl() {
|
|
15834
15834
|
if (typeof navigator > "u")
|
|
15835
15835
|
return null;
|
|
15836
15836
|
const e = navigator.connection;
|
|
15837
15837
|
return e && (e.effectiveType || e.type) || null;
|
|
15838
15838
|
}
|
|
15839
|
-
const
|
|
15840
|
-
{ definition:
|
|
15841
|
-
{ definition:
|
|
15842
|
-
{ definition:
|
|
15843
|
-
{ definition:
|
|
15844
|
-
{ definition:
|
|
15845
|
-
{ definition:
|
|
15846
|
-
{ definition:
|
|
15847
|
-
{ definition:
|
|
15848
|
-
{ definition:
|
|
15849
|
-
{ definition:
|
|
15850
|
-
{ definition:
|
|
15851
|
-
{ definition:
|
|
15852
|
-
{ definition:
|
|
15853
|
-
{ definition:
|
|
15854
|
-
{ definition:
|
|
15855
|
-
{ definition:
|
|
15856
|
-
{ definition:
|
|
15857
|
-
{ definition:
|
|
15858
|
-
{ definition:
|
|
15859
|
-
{ definition:
|
|
15860
|
-
{ definition:
|
|
15839
|
+
const Jl = [
|
|
15840
|
+
{ definition: rl, handler: tl },
|
|
15841
|
+
{ definition: ol, handler: nl },
|
|
15842
|
+
{ definition: ll, handler: il },
|
|
15843
|
+
{ definition: sl, handler: dl },
|
|
15844
|
+
{ definition: al, handler: cl },
|
|
15845
|
+
{ definition: ul, handler: fl },
|
|
15846
|
+
{ definition: wl, handler: hl },
|
|
15847
|
+
{ definition: Il, handler: pl },
|
|
15848
|
+
{ definition: Tl, handler: Fl },
|
|
15849
|
+
{ definition: bl, handler: ml },
|
|
15850
|
+
{ definition: yl, handler: El },
|
|
15851
|
+
{ definition: Nl, handler: gl },
|
|
15852
|
+
{ definition: Ml, handler: kl },
|
|
15853
|
+
{ definition: Sl, handler: Pl },
|
|
15854
|
+
{ definition: Cl, handler: _l },
|
|
15855
|
+
{ definition: Ol, handler: Vl },
|
|
15856
|
+
{ definition: Ll, handler: Dl },
|
|
15857
|
+
{ definition: vl, handler: jl },
|
|
15858
|
+
{ definition: Hl, handler: xl },
|
|
15859
|
+
{ definition: Wl, handler: Rl },
|
|
15860
|
+
{ definition: Gl, handler: Kl }
|
|
15861
15861
|
];
|
|
15862
|
-
function
|
|
15863
|
-
const l =
|
|
15862
|
+
function $l(e) {
|
|
15863
|
+
const l = Jl.map(({ definition: i, handler: s }) => e.register(i, s));
|
|
15864
15864
|
return () => l.forEach((i) => i());
|
|
15865
15865
|
}
|
|
15866
15866
|
function Bo() {
|
|
15867
15867
|
return typeof window < "u" && typeof navigator < "u";
|
|
15868
15868
|
}
|
|
15869
|
-
const
|
|
15869
|
+
const zl = new Uint8Array(0);
|
|
15870
15870
|
function ve(e) {
|
|
15871
15871
|
switch (e.kind) {
|
|
15872
15872
|
case "array":
|
|
@@ -15916,7 +15916,7 @@ function Ao(e, l) {
|
|
|
15916
15916
|
}
|
|
15917
15917
|
return i;
|
|
15918
15918
|
}
|
|
15919
|
-
function
|
|
15919
|
+
function Fn(e, l) {
|
|
15920
15920
|
if (e === void 0)
|
|
15921
15921
|
return "null";
|
|
15922
15922
|
if (e === null) {
|
|
@@ -15926,9 +15926,9 @@ function Tn(e, l) {
|
|
|
15926
15926
|
}
|
|
15927
15927
|
return JSON.stringify(e);
|
|
15928
15928
|
}
|
|
15929
|
-
function
|
|
15929
|
+
function Yl(e, l) {
|
|
15930
15930
|
const i = (e.parameters ?? []).map((a) => {
|
|
15931
|
-
const c = ve(a.type), f = Object.prototype.hasOwnProperty.call(a, "defaultValue"), w = f ?
|
|
15931
|
+
const c = ve(a.type), f = Object.prototype.hasOwnProperty.call(a, "defaultValue"), w = f ? Fn(a.defaultValue, c) : "";
|
|
15932
15932
|
return {
|
|
15933
15933
|
name: a.name,
|
|
15934
15934
|
descriptor: c,
|
|
@@ -15953,7 +15953,7 @@ function zl(e, l) {
|
|
|
15953
15953
|
TypeName: pe(a.descriptor),
|
|
15954
15954
|
HasDefaultValue: a.hasDefaultValue,
|
|
15955
15955
|
DefaultValueJson: a.defaultValueJson,
|
|
15956
|
-
DefaultValueData:
|
|
15956
|
+
DefaultValueData: zl,
|
|
15957
15957
|
IsEnumerable: !1,
|
|
15958
15958
|
EnumerableItemTypeName: "",
|
|
15959
15959
|
Description: a.description ?? ""
|
|
@@ -15967,11 +15967,11 @@ function zl(e, l) {
|
|
|
15967
15967
|
returnType: s
|
|
15968
15968
|
};
|
|
15969
15969
|
}
|
|
15970
|
-
const Uo = z("FunctionRegistry"),
|
|
15971
|
-
function
|
|
15970
|
+
const Uo = z("FunctionRegistry"), Xl = new Uint8Array(0);
|
|
15971
|
+
function Ql(e) {
|
|
15972
15972
|
return !e || typeof e != "object" ? !1 : e.data instanceof Uint8Array;
|
|
15973
15973
|
}
|
|
15974
|
-
class
|
|
15974
|
+
class Zl {
|
|
15975
15975
|
functions = /* @__PURE__ */ new Map();
|
|
15976
15976
|
config = null;
|
|
15977
15977
|
isConnected = !1;
|
|
@@ -15993,7 +15993,7 @@ class Ql {
|
|
|
15993
15993
|
* If already connected, sends registration to server immediately.
|
|
15994
15994
|
*/
|
|
15995
15995
|
register(l, i) {
|
|
15996
|
-
const s =
|
|
15996
|
+
const s = Yl(l, i);
|
|
15997
15997
|
return this.functions.set(l.name, s), this.isConnected && this.config && this.sendRegistration(s), () => this.unregister(l.name);
|
|
15998
15998
|
}
|
|
15999
15999
|
/**
|
|
@@ -16054,7 +16054,7 @@ class Ql {
|
|
|
16054
16054
|
* Handle an incoming function call.
|
|
16055
16055
|
*/
|
|
16056
16056
|
handleFunctionCall(l, i) {
|
|
16057
|
-
const s =
|
|
16057
|
+
const s = qe.fromProtocolMessage(l), d = this.functions.get(s.FunctionName);
|
|
16058
16058
|
if (!d) {
|
|
16059
16059
|
Uo.warn(`Received call for unknown function: ${s.FunctionName}`), this.sendError(s.CallId, s.InstanceId, i, new Error(`Unknown function: ${s.FunctionName}`));
|
|
16060
16060
|
return;
|
|
@@ -16072,9 +16072,9 @@ class Ql {
|
|
|
16072
16072
|
t === void 0 || t === "" ? o.hasDefaultValue ? d.push(Ao(o.defaultValueJson, o.descriptor)) : d.push(void 0) : d.push(Ao(t, o.descriptor));
|
|
16073
16073
|
}
|
|
16074
16074
|
const a = await l.handler(...d);
|
|
16075
|
-
let c = a, f =
|
|
16076
|
-
|
|
16077
|
-
const w =
|
|
16075
|
+
let c = a, f = Xl;
|
|
16076
|
+
Ql(a) && (c = a.value, f = new Uint8Array(a.data));
|
|
16077
|
+
const w = Fn(c, l.returnType);
|
|
16078
16078
|
this.sendResult(i.CallId, i.InstanceId, s, l, w, f);
|
|
16079
16079
|
} catch (d) {
|
|
16080
16080
|
Uo.error(`Function ${i.FunctionName} execution failed:`, d), this.sendError(i.CallId, i.InstanceId, s, d instanceof Error ? d : new Error(String(d)));
|
|
@@ -16148,7 +16148,7 @@ const Ge = {
|
|
|
16148
16148
|
StartAudioCapture: "ikon.client.startAudioCapture",
|
|
16149
16149
|
StopCapture: "ikon.client.stopCapture",
|
|
16150
16150
|
CaptureImage: "ikon.client.captureImage"
|
|
16151
|
-
},
|
|
16151
|
+
}, Bl = {
|
|
16152
16152
|
name: Ge.StartVideoCapture,
|
|
16153
16153
|
description: "Start camera or screen capture and stream video frames to the server",
|
|
16154
16154
|
returnType: { kind: "string" },
|
|
@@ -16156,26 +16156,26 @@ const Ge = {
|
|
|
16156
16156
|
{ name: "source", type: { kind: "string", nullable: !0 }, description: "camera or screen" },
|
|
16157
16157
|
{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }
|
|
16158
16158
|
]
|
|
16159
|
-
},
|
|
16159
|
+
}, Al = {
|
|
16160
16160
|
name: Ge.StartAudioCapture,
|
|
16161
16161
|
description: "Start microphone capture and stream audio frames to the server",
|
|
16162
16162
|
returnType: { kind: "string" },
|
|
16163
16163
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
16164
|
-
},
|
|
16164
|
+
}, Ul = {
|
|
16165
16165
|
name: Ge.StopCapture,
|
|
16166
16166
|
description: "Stop a previously started capture by captureId",
|
|
16167
16167
|
returnType: { kind: "boolean" },
|
|
16168
16168
|
parameters: [{ name: "captureId", type: { kind: "string" }, description: "Capture ID to stop" }]
|
|
16169
|
-
},
|
|
16169
|
+
}, ei = {
|
|
16170
16170
|
name: Ge.CaptureImage,
|
|
16171
16171
|
description: "Capture a single image from the camera and return metadata (JSON) plus binary image data",
|
|
16172
16172
|
returnType: { kind: "string" },
|
|
16173
16173
|
parameters: [{ name: "optionsJson", type: { kind: "string", nullable: !0 }, description: "JSON encoded capture options" }]
|
|
16174
16174
|
};
|
|
16175
|
-
function
|
|
16175
|
+
function ri(e, l) {
|
|
16176
16176
|
const i = [];
|
|
16177
16177
|
return i.push(
|
|
16178
|
-
e.register(
|
|
16178
|
+
e.register(Bl, async (s, d) => {
|
|
16179
16179
|
const a = l.mediaCapture;
|
|
16180
16180
|
if (!a)
|
|
16181
16181
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -16183,7 +16183,7 @@ function ei(e, l) {
|
|
|
16183
16183
|
return ((typeof s == "string" && s.trim().toLowerCase() === "screen" ? "screen" : "camera") === "screen" ? await a.video.startScreen({ userGesture: !1, options: c, constraints: c?.constraints }) : await a.video.startCamera({ userGesture: !1, options: c, constraints: c?.constraints })).captureId;
|
|
16184
16184
|
})
|
|
16185
16185
|
), i.push(
|
|
16186
|
-
e.register(
|
|
16186
|
+
e.register(Al, async (s) => {
|
|
16187
16187
|
const d = l.mediaCapture;
|
|
16188
16188
|
if (!d)
|
|
16189
16189
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -16191,7 +16191,7 @@ function ei(e, l) {
|
|
|
16191
16191
|
return (await d.audio.startMic({ userGesture: !1, options: a, constraints: a?.constraints })).captureId;
|
|
16192
16192
|
})
|
|
16193
16193
|
), i.push(
|
|
16194
|
-
e.register(
|
|
16194
|
+
e.register(Ul, async (s) => {
|
|
16195
16195
|
const d = l.mediaCapture;
|
|
16196
16196
|
if (!d || typeof s != "string" || !s.trim())
|
|
16197
16197
|
return !1;
|
|
@@ -16199,7 +16199,7 @@ function ei(e, l) {
|
|
|
16199
16199
|
return a || c;
|
|
16200
16200
|
})
|
|
16201
16201
|
), i.push(
|
|
16202
|
-
e.register(
|
|
16202
|
+
e.register(ei, async (s) => {
|
|
16203
16203
|
const d = l.mediaCapture;
|
|
16204
16204
|
if (!d)
|
|
16205
16205
|
throw new Error("Media capture is not available in this environment");
|
|
@@ -16218,9 +16218,9 @@ function ei(e, l) {
|
|
|
16218
16218
|
s();
|
|
16219
16219
|
};
|
|
16220
16220
|
}
|
|
16221
|
-
const
|
|
16221
|
+
const ti = globalThis;
|
|
16222
16222
|
function Ee() {
|
|
16223
|
-
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" ||
|
|
16223
|
+
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" || ti.crossOriginIsolated === !1)
|
|
16224
16224
|
return !1;
|
|
16225
16225
|
try {
|
|
16226
16226
|
new SharedArrayBuffer(1);
|
|
@@ -16229,24 +16229,24 @@ function Ee() {
|
|
|
16229
16229
|
}
|
|
16230
16230
|
return !0;
|
|
16231
16231
|
}
|
|
16232
|
-
function
|
|
16232
|
+
function bn(e) {
|
|
16233
16233
|
return typeof AudioWorkletNode != "function" ? !1 : typeof e.audioWorklet?.addModule == "function";
|
|
16234
16234
|
}
|
|
16235
|
-
const x = z("IkonAudioPlayback"),
|
|
16235
|
+
const x = z("IkonAudioPlayback"), oi = () => {
|
|
16236
16236
|
const e = globalThis.navigator;
|
|
16237
16237
|
if (!e) return !1;
|
|
16238
16238
|
const l = e.platform ?? e.userAgentData?.platform ?? "", i = e.userAgent ?? "", s = e.maxTouchPoints, d = /iPad|iPhone|iPod/.test(l), a = /iPad|iPhone|iPod/.test(i), c = l === "MacIntel" && typeof s == "number" && s > 1;
|
|
16239
16239
|
return d || a || c;
|
|
16240
|
-
},
|
|
16240
|
+
}, ni = {
|
|
16241
16241
|
enabled: !0
|
|
16242
16242
|
}, Je = {
|
|
16243
16243
|
enabled: !1,
|
|
16244
16244
|
statusInterval: 5
|
|
16245
|
-
}, ue = 48e3, J = 2,
|
|
16245
|
+
}, ue = 48e3, J = 2, li = 2, en = 512;
|
|
16246
16246
|
function fe(e) {
|
|
16247
16247
|
return e instanceof Error ? `${e.name}: ${e.message}` : String(e);
|
|
16248
16248
|
}
|
|
16249
|
-
function
|
|
16249
|
+
function ii(e) {
|
|
16250
16250
|
return `
|
|
16251
16251
|
// Jitter buffer constants
|
|
16252
16252
|
const OUTPUT_SAMPLE_RATE_HZ = ${e.outputSampleRateHz};
|
|
@@ -16286,7 +16286,7 @@ class RingBuffer {
|
|
|
16286
16286
|
return this.storage.length;
|
|
16287
16287
|
}
|
|
16288
16288
|
|
|
16289
|
-
|
|
16289
|
+
availableRead() {
|
|
16290
16290
|
const read = Atomics.load(this.readWrite, 0);
|
|
16291
16291
|
const write = Atomics.load(this.readWrite, 1);
|
|
16292
16292
|
if (write >= read) return write - read;
|
|
@@ -16294,7 +16294,7 @@ class RingBuffer {
|
|
|
16294
16294
|
}
|
|
16295
16295
|
|
|
16296
16296
|
pop(target) {
|
|
16297
|
-
const readable = Math.min(this.
|
|
16297
|
+
const readable = Math.min(this.availableRead(), target.length);
|
|
16298
16298
|
if (readable <= 0) return 0;
|
|
16299
16299
|
|
|
16300
16300
|
let read = Atomics.load(this.readWrite, 0);
|
|
@@ -16310,7 +16310,7 @@ class RingBuffer {
|
|
|
16310
16310
|
}
|
|
16311
16311
|
|
|
16312
16312
|
skip(count) {
|
|
16313
|
-
const readable = Math.min(this.
|
|
16313
|
+
const readable = Math.min(this.availableRead(), count);
|
|
16314
16314
|
if (readable <= 0) return 0;
|
|
16315
16315
|
|
|
16316
16316
|
let read = Atomics.load(this.readWrite, 0);
|
|
@@ -16566,7 +16566,7 @@ class IkonAudioPlayerProcessor extends AudioWorkletProcessor {
|
|
|
16566
16566
|
|
|
16567
16567
|
availableSamples(streamId) {
|
|
16568
16568
|
const ring = this.ringBuffers.get(streamId);
|
|
16569
|
-
if (ring) return ring.
|
|
16569
|
+
if (ring) return ring.availableRead();
|
|
16570
16570
|
const q = this.queueBuffers.get(streamId);
|
|
16571
16571
|
if (q) return q.available();
|
|
16572
16572
|
return 0;
|
|
@@ -16838,9 +16838,8 @@ class Ir {
|
|
|
16838
16838
|
client;
|
|
16839
16839
|
config;
|
|
16840
16840
|
enabled = !1;
|
|
16841
|
-
prepared = !1;
|
|
16842
16841
|
stateUnsubscribe = null;
|
|
16843
|
-
isIos =
|
|
16842
|
+
isIos = oi();
|
|
16844
16843
|
recreateOnNextResume = !1;
|
|
16845
16844
|
boundVisibilityChange = null;
|
|
16846
16845
|
unlockHandler = null;
|
|
@@ -16864,19 +16863,6 @@ class Ir {
|
|
|
16864
16863
|
constructor(l, i) {
|
|
16865
16864
|
this.client = l, this.config = i ?? {};
|
|
16866
16865
|
}
|
|
16867
|
-
/**
|
|
16868
|
-
* Prepare the audio pipeline without attempting to start playback.
|
|
16869
|
-
*
|
|
16870
|
-
* This is meant to reduce time-to-first-audio by:
|
|
16871
|
-
* - creating the AudioContext (it may remain suspended)
|
|
16872
|
-
* - loading the AudioWorklet module (if supported)
|
|
16873
|
-
* - starting the decode worker when the client is connected
|
|
16874
|
-
*
|
|
16875
|
-
* Prewarming does not trigger user-gesture prompts and does not call resume().
|
|
16876
|
-
*/
|
|
16877
|
-
async prepare() {
|
|
16878
|
-
this.prepared = !0, this.ensureStateSubscription(), await this.ensureAudioGraph(void 0, { promptForUnlock: !1 }), await this.ensureWorkers();
|
|
16879
|
-
}
|
|
16880
16866
|
/**
|
|
16881
16867
|
* Enable or disable audio playback.
|
|
16882
16868
|
*
|
|
@@ -16891,7 +16877,7 @@ class Ir {
|
|
|
16891
16877
|
} catch {
|
|
16892
16878
|
}
|
|
16893
16879
|
if (l === this.enabled) {
|
|
16894
|
-
l && await this.ensureAudioGraph(i, { promptForUnlock: !0 });
|
|
16880
|
+
l && (await this.ensureAudioGraph(i, { promptForUnlock: !0 }), await this.ensureWorkers());
|
|
16895
16881
|
return;
|
|
16896
16882
|
}
|
|
16897
16883
|
if (this.enabled = l, this.ensureStateSubscription(), !l) {
|
|
@@ -16916,13 +16902,13 @@ class Ir {
|
|
|
16916
16902
|
* Dispose of resources. After calling this, the instance should not be reused.
|
|
16917
16903
|
*/
|
|
16918
16904
|
dispose() {
|
|
16919
|
-
this.enabled = !1, this.
|
|
16905
|
+
this.enabled = !1, this.activeStreams.clear(), this.removeUnlockHandler(), this.removeVisibilityHandler(), this.stateUnsubscribe?.(), this.stateUnsubscribe = null, this.stopAudioGraph(), this.stopWorkers();
|
|
16920
16906
|
}
|
|
16921
16907
|
resolveOutputConfig() {
|
|
16922
16908
|
const l = this.config.output ?? {};
|
|
16923
16909
|
return {
|
|
16924
16910
|
multiStreamNormalization: {
|
|
16925
|
-
enabled: l.multiStreamNormalization?.enabled ??
|
|
16911
|
+
enabled: l.multiStreamNormalization?.enabled ?? ni.enabled
|
|
16926
16912
|
},
|
|
16927
16913
|
diagnostics: {
|
|
16928
16914
|
enabled: l.diagnostics?.enabled ?? Je.enabled,
|
|
@@ -16948,19 +16934,21 @@ class Ir {
|
|
|
16948
16934
|
this.outputSampleRateHz = this.audioContext.sampleRate || ue, this.outputSampleRateHz !== ue && x.debug(`AudioContext running at ${this.outputSampleRateHz}Hz (requested ${ue}Hz)`), this.attachAudioContextHealthHandlers(this.audioContext);
|
|
16949
16935
|
}
|
|
16950
16936
|
const s = this.audioContext, d = this.resolveOutputConfig();
|
|
16951
|
-
if ((this.config.threading?.preferAudioWorklet ?? !0) &&
|
|
16937
|
+
if ((this.config.threading?.preferAudioWorklet ?? !0) && bn(s)) {
|
|
16952
16938
|
await this.ensureAudioWorklet(s, d, l, i);
|
|
16953
16939
|
return;
|
|
16954
16940
|
}
|
|
16955
|
-
this.ensureScriptProcessor(s, d);
|
|
16941
|
+
this.ensureScriptProcessor(s, d), await this.resumeAudioContextIfPossible(s, l, i), this.rebindWorkerTransportIfNeeded();
|
|
16956
16942
|
}
|
|
16957
16943
|
attachAudioContextHealthHandlers(l) {
|
|
16958
16944
|
l.__ikonAudioHealthAttached !== !0 && (Object.defineProperty(l, "__ikonAudioHealthAttached", { value: !0, enumerable: !1 }), l.onstatechange = () => {
|
|
16959
|
-
this.recoverAudioContext({ reason: "statechange" });
|
|
16960
|
-
}, this.attachVisibilityHandler()
|
|
16945
|
+
this.enabled && this.recoverAudioContext({ reason: "statechange" });
|
|
16946
|
+
}, this.attachVisibilityHandler());
|
|
16961
16947
|
}
|
|
16962
16948
|
attachVisibilityHandler() {
|
|
16963
16949
|
this.boundVisibilityChange || typeof document > "u" || (this.boundVisibilityChange = () => {
|
|
16950
|
+
if (!this.enabled)
|
|
16951
|
+
return;
|
|
16964
16952
|
if (document.visibilityState === "visible") {
|
|
16965
16953
|
this.audioContext && this.getContextState(this.audioContext) !== "running" && this.recoverAudioContext({ reason: "visibilityVisible" });
|
|
16966
16954
|
return;
|
|
@@ -16975,7 +16963,7 @@ class Ir {
|
|
|
16975
16963
|
return l?.state ?? "suspended";
|
|
16976
16964
|
}
|
|
16977
16965
|
addUnlockHandler() {
|
|
16978
|
-
if (this.awaitingUnlock || typeof document > "u")
|
|
16966
|
+
if (!this.enabled || this.awaitingUnlock || typeof document > "u")
|
|
16979
16967
|
return;
|
|
16980
16968
|
this.awaitingUnlock = !0, this.unlockHandler = () => {
|
|
16981
16969
|
const i = this.audioContext;
|
|
@@ -17037,7 +17025,7 @@ class Ir {
|
|
|
17037
17025
|
} catch {
|
|
17038
17026
|
}
|
|
17039
17027
|
this.workletModuleKey = a, this.workletReady = null, this.workletModuleUrl = URL.createObjectURL(
|
|
17040
|
-
new Blob([
|
|
17028
|
+
new Blob([ii({ outputSampleRateHz: this.outputSampleRateHz, outputChannels: J })], { type: "text/javascript" })
|
|
17041
17029
|
);
|
|
17042
17030
|
}
|
|
17043
17031
|
this.workletReady || (this.workletReady = l.audioWorklet.addModule(this.workletModuleUrl).catch((h) => {
|
|
@@ -17104,8 +17092,8 @@ class Ir {
|
|
|
17104
17092
|
I.totalSamples > 0 && (t += 1), this.readFromFallbackQueue(I, d);
|
|
17105
17093
|
for (let N = 0; N < h; N++)
|
|
17106
17094
|
for (let F = 0; F < w; F++) {
|
|
17107
|
-
const
|
|
17108
|
-
o[F][N] +=
|
|
17095
|
+
const m = d[N * w + F] ?? 0;
|
|
17096
|
+
o[F][N] += m;
|
|
17109
17097
|
}
|
|
17110
17098
|
I.ending && I.totalSamples <= 0 && n.push(u);
|
|
17111
17099
|
}
|
|
@@ -17125,18 +17113,21 @@ class Ir {
|
|
|
17125
17113
|
}
|
|
17126
17114
|
}, a.connect(l.destination), this.scriptProcessorNode = a, this.ensureScriptProcessorDiagnostics(i);
|
|
17127
17115
|
}
|
|
17116
|
+
compactFallbackQueue(l) {
|
|
17117
|
+
l.headIndex > 32 && l.headIndex > l.chunks.length / 2 && (l.chunks = l.chunks.slice(l.headIndex), l.headIndex = 0);
|
|
17118
|
+
}
|
|
17128
17119
|
skipFromFallbackQueue(l, i) {
|
|
17129
17120
|
if (i <= 0)
|
|
17130
17121
|
return;
|
|
17131
17122
|
let s = i;
|
|
17132
|
-
for (; s > 0 && l.chunks.length
|
|
17133
|
-
const d = l.chunks[
|
|
17134
|
-
l.offset += c, l.totalSamples -= c, s -= c, l.offset >= d.length && (l.
|
|
17123
|
+
for (; s > 0 && l.headIndex < l.chunks.length; ) {
|
|
17124
|
+
const d = l.chunks[l.headIndex], a = d.length - l.offset, c = Math.min(a, s);
|
|
17125
|
+
l.offset += c, l.totalSamples -= c, s -= c, l.offset >= d.length && (l.headIndex += 1, l.offset = 0);
|
|
17135
17126
|
}
|
|
17136
|
-
l.totalSamples < 0 && (l.totalSamples = 0);
|
|
17127
|
+
l.totalSamples < 0 && (l.totalSamples = 0), this.compactFallbackQueue(l);
|
|
17137
17128
|
}
|
|
17138
17129
|
trimFallbackQueue(l) {
|
|
17139
|
-
const i = this.outputSampleRateHz * J *
|
|
17130
|
+
const i = this.outputSampleRateHz * J * li, s = l.totalSamples - i;
|
|
17140
17131
|
s <= 0 || this.skipFromFallbackQueue(l, s);
|
|
17141
17132
|
}
|
|
17142
17133
|
stopScriptProcessorDiagnostics() {
|
|
@@ -17162,11 +17153,11 @@ class Ir {
|
|
|
17162
17153
|
}
|
|
17163
17154
|
readFromFallbackQueue(l, i) {
|
|
17164
17155
|
let s = 0;
|
|
17165
|
-
for (; s < i.length && l.chunks.length
|
|
17166
|
-
const d = l.chunks[
|
|
17167
|
-
i.set(d.subarray(l.offset, l.offset + c), s), s += c, l.offset += c, l.totalSamples = Math.max(0, l.totalSamples - c), l.offset >= d.length && (l.
|
|
17156
|
+
for (; s < i.length && l.headIndex < l.chunks.length; ) {
|
|
17157
|
+
const d = l.chunks[l.headIndex], a = d.length - l.offset, c = Math.min(a, i.length - s);
|
|
17158
|
+
i.set(d.subarray(l.offset, l.offset + c), s), s += c, l.offset += c, l.totalSamples = Math.max(0, l.totalSamples - c), l.offset >= d.length && (l.headIndex += 1, l.offset = 0);
|
|
17168
17159
|
}
|
|
17169
|
-
s < i.length && i.fill(0, s);
|
|
17160
|
+
s < i.length && i.fill(0, s), this.compactFallbackQueue(l);
|
|
17170
17161
|
}
|
|
17171
17162
|
async resumeAudioContextIfPossible(l, i, s) {
|
|
17172
17163
|
if (this.getContextState(l) === "running") {
|
|
@@ -17204,13 +17195,13 @@ class Ir {
|
|
|
17204
17195
|
}), await this.recoveryTask;
|
|
17205
17196
|
}
|
|
17206
17197
|
async recoverAudioContextInternal(l) {
|
|
17207
|
-
if (!this.enabled
|
|
17198
|
+
if (!this.enabled)
|
|
17208
17199
|
return;
|
|
17209
17200
|
const i = this.activeStreams.size > 0, s = this.audioContext;
|
|
17210
17201
|
if (!s) {
|
|
17211
17202
|
if (!i)
|
|
17212
17203
|
return;
|
|
17213
|
-
await this.ensureAudioGraph(void 0, { promptForUnlock: !
|
|
17204
|
+
await this.ensureAudioGraph(void 0, { promptForUnlock: !0 });
|
|
17214
17205
|
return;
|
|
17215
17206
|
}
|
|
17216
17207
|
const d = this.getContextState(s);
|
|
@@ -17269,14 +17260,14 @@ class Ir {
|
|
|
17269
17260
|
}
|
|
17270
17261
|
const l = this.client.createProtocolMessagePort({ opcodeGroupsMask: j.GROUP_AUDIO });
|
|
17271
17262
|
if (!l) {
|
|
17272
|
-
|
|
17263
|
+
this.enabled && x.debug("Audio pipeline waiting for client connection");
|
|
17273
17264
|
return;
|
|
17274
17265
|
}
|
|
17275
17266
|
this.protocolPort = l;
|
|
17276
17267
|
try {
|
|
17277
17268
|
this.audioWorker = new Worker(new URL(
|
|
17278
17269
|
/* @vite-ignore */
|
|
17279
|
-
"/assets/audio-worker-
|
|
17270
|
+
"/assets/audio-worker-Ci3tYX2B.js",
|
|
17280
17271
|
import.meta.url
|
|
17281
17272
|
), { type: "module" });
|
|
17282
17273
|
} catch (r) {
|
|
@@ -17296,7 +17287,7 @@ class Ir {
|
|
|
17296
17287
|
preferWebCodecs: a
|
|
17297
17288
|
};
|
|
17298
17289
|
i.postMessage(c), i.postMessage({ type: "attachProtocolPort", port: l.port }, [l.port]);
|
|
17299
|
-
const f = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", w = d ? "SharedArrayBuffer" : "MessagePort", o = a && typeof AudioDecoder < "u" ? "WebCodecs" : "WASM Opus";
|
|
17290
|
+
const f = this.audioWorkletNode ? "AudioWorklet" : "ScriptProcessor", w = d ? "SharedArrayBuffer" : "MessagePort", o = a && typeof AudioDecoder < "u" ? "WebCodecs (when supported)" : "WASM Opus (fallback)";
|
|
17300
17291
|
x.debug(
|
|
17301
17292
|
`Audio initialized: renderer=${f}, transport=${w}, decoder=${o}, output=${this.outputSampleRateHz}Hz/${J}ch`
|
|
17302
17293
|
);
|
|
@@ -17305,11 +17296,11 @@ class Ir {
|
|
|
17305
17296
|
if (l.type === "streamBegin") {
|
|
17306
17297
|
this.activeStreams.add(l.streamId);
|
|
17307
17298
|
const i = this.audioContext;
|
|
17308
|
-
if (i && this.getContextState(i) !== "running" && this.recoverAudioContext({ reason: "streamBegin" }), this.audioWorkletNode) {
|
|
17299
|
+
if (this.enabled && i && this.getContextState(i) !== "running" && this.recoverAudioContext({ reason: "streamBegin" }), this.audioWorkletNode) {
|
|
17309
17300
|
this.postToWorklet({ type: "streamBegin", streamId: l.streamId, sharedArrayBuffer: l.sharedArrayBuffer });
|
|
17310
17301
|
return;
|
|
17311
17302
|
}
|
|
17312
|
-
this.fallbackQueues.set(l.streamId, { chunks: [], offset: 0, totalSamples: 0, ending: !1 });
|
|
17303
|
+
this.fallbackQueues.set(l.streamId, { chunks: [], headIndex: 0, offset: 0, totalSamples: 0, ending: !1 });
|
|
17313
17304
|
return;
|
|
17314
17305
|
}
|
|
17315
17306
|
if (l.type === "streamEnd") {
|
|
@@ -17322,7 +17313,7 @@ class Ir {
|
|
|
17322
17313
|
this.postToWorklet({ type: "streamEnd", streamId: l.streamId });
|
|
17323
17314
|
return;
|
|
17324
17315
|
}
|
|
17325
|
-
this.
|
|
17316
|
+
this.activeStreams.delete(l.streamId), this.activeStreams.size === 0 && this.removeUnlockHandler();
|
|
17326
17317
|
return;
|
|
17327
17318
|
}
|
|
17328
17319
|
if (l.type === "pcm") {
|
|
@@ -17353,14 +17344,27 @@ class Ir {
|
|
|
17353
17344
|
if (!this.audioWorkletNode) {
|
|
17354
17345
|
if (this.scriptProcessorNode)
|
|
17355
17346
|
return;
|
|
17356
|
-
this.
|
|
17347
|
+
this.enqueuePendingWorkletMessage(l);
|
|
17357
17348
|
return;
|
|
17358
17349
|
}
|
|
17359
17350
|
try {
|
|
17360
17351
|
this.audioWorkletNode.port.postMessage(l, i ?? []);
|
|
17361
17352
|
} catch {
|
|
17362
|
-
this.
|
|
17353
|
+
this.enqueuePendingWorkletMessage(l);
|
|
17354
|
+
}
|
|
17355
|
+
}
|
|
17356
|
+
enqueuePendingWorkletMessage(l) {
|
|
17357
|
+
if (l.type === "streamBegin") {
|
|
17358
|
+
const i = this.pendingWorkletMessages.findIndex((s) => s.type === "streamBegin" && s.streamId === l.streamId);
|
|
17359
|
+
i >= 0 && this.pendingWorkletMessages.splice(i, 1);
|
|
17363
17360
|
}
|
|
17361
|
+
if (this.pendingWorkletMessages.push(l), !(this.pendingWorkletMessages.length <= en))
|
|
17362
|
+
for (; !(this.pendingWorkletMessages.length <= en); ) {
|
|
17363
|
+
const i = this.pendingWorkletMessages.findIndex((s) => s.type !== "streamBegin");
|
|
17364
|
+
if (i < 0)
|
|
17365
|
+
break;
|
|
17366
|
+
this.pendingWorkletMessages.splice(i, 1);
|
|
17367
|
+
}
|
|
17364
17368
|
}
|
|
17365
17369
|
stopAudioWorklet() {
|
|
17366
17370
|
if (this.audioWorkletNode) {
|
|
@@ -17411,14 +17415,14 @@ class Ir {
|
|
|
17411
17415
|
}
|
|
17412
17416
|
this.audioWorker = null;
|
|
17413
17417
|
}
|
|
17414
|
-
this.protocolPort && (this.protocolPort.close(), this.protocolPort = null)
|
|
17415
|
-
|
|
17416
|
-
|
|
17418
|
+
if (this.protocolPort && (this.protocolPort.close(), this.protocolPort = null), this.audioWorkletNode)
|
|
17419
|
+
for (const i of l)
|
|
17420
|
+
this.postToWorklet({ type: "streamEnd", streamId: i });
|
|
17417
17421
|
this.activeStreams.clear(), this.fallbackQueues.clear(), this.removeUnlockHandler();
|
|
17418
17422
|
}
|
|
17419
17423
|
ensureStateSubscription() {
|
|
17420
17424
|
this.stateUnsubscribe || (this.stateUnsubscribe = this.client.subscribeToState((l) => {
|
|
17421
|
-
if (
|
|
17425
|
+
if (this.enabled) {
|
|
17422
17426
|
if (l === "connected" || l === "reconnecting") {
|
|
17423
17427
|
this.ensureWorkers();
|
|
17424
17428
|
return;
|
|
@@ -17432,7 +17436,7 @@ const ee = z("IkonVideoPlayback");
|
|
|
17432
17436
|
function $e(e) {
|
|
17433
17437
|
return e instanceof Error ? `${e.name}: ${e.message}` : String(e);
|
|
17434
17438
|
}
|
|
17435
|
-
class
|
|
17439
|
+
class si {
|
|
17436
17440
|
client;
|
|
17437
17441
|
config;
|
|
17438
17442
|
enabled = !0;
|
|
@@ -17664,11 +17668,11 @@ class ii {
|
|
|
17664
17668
|
}));
|
|
17665
17669
|
}
|
|
17666
17670
|
}
|
|
17667
|
-
class
|
|
17671
|
+
class di {
|
|
17668
17672
|
audio;
|
|
17669
17673
|
video;
|
|
17670
17674
|
constructor(l, i) {
|
|
17671
|
-
this.audio = new Ir(l, i?.audio), this.video = new
|
|
17675
|
+
this.audio = new Ir(l, i?.audio), this.video = new si(l, i?.video);
|
|
17672
17676
|
}
|
|
17673
17677
|
/**
|
|
17674
17678
|
* Releases media resources (workers, audio graph, decoders).
|
|
@@ -17679,7 +17683,7 @@ class si {
|
|
|
17679
17683
|
this.audio.dispose(), this.video.dispose();
|
|
17680
17684
|
}
|
|
17681
17685
|
}
|
|
17682
|
-
class
|
|
17686
|
+
class ai {
|
|
17683
17687
|
static getStorageForCapacity(l, i) {
|
|
17684
17688
|
const s = Int32Array.BYTES_PER_ELEMENT * 2, d = i.BYTES_PER_ELEMENT * l;
|
|
17685
17689
|
return new SharedArrayBuffer(s + d);
|
|
@@ -17733,12 +17737,12 @@ class di {
|
|
|
17733
17737
|
return s = (s + i) % this.capacity, Atomics.store(this.readWrite, 0, s), i;
|
|
17734
17738
|
}
|
|
17735
17739
|
}
|
|
17736
|
-
const
|
|
17737
|
-
function
|
|
17740
|
+
const ci = z("IkonAudioCapture");
|
|
17741
|
+
function ui() {
|
|
17738
17742
|
const e = globalThis.crypto;
|
|
17739
17743
|
return e?.randomUUID ? e.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
17740
17744
|
}
|
|
17741
|
-
function
|
|
17745
|
+
function fi() {
|
|
17742
17746
|
return `
|
|
17743
17747
|
class RingBuffer {
|
|
17744
17748
|
static getStorageForCapacity(capacity, type) {
|
|
@@ -17849,7 +17853,7 @@ class IkonAudioCaptureProcessor extends AudioWorkletProcessor {
|
|
|
17849
17853
|
registerProcessor('ikon-audio-capture', IkonAudioCaptureProcessor);
|
|
17850
17854
|
`;
|
|
17851
17855
|
}
|
|
17852
|
-
class
|
|
17856
|
+
class wi {
|
|
17853
17857
|
constructor(l) {
|
|
17854
17858
|
this.client = l;
|
|
17855
17859
|
}
|
|
@@ -17875,7 +17879,7 @@ class fi {
|
|
|
17875
17879
|
), { type: "module" });
|
|
17876
17880
|
return this.worker = l, l.addEventListener("message", (i) => {
|
|
17877
17881
|
const s = i.data;
|
|
17878
|
-
s?.type === "error" &&
|
|
17882
|
+
s?.type === "error" && ci.warn(`Audio capture worker error: ${s.error?.name ?? "Error"} ${s.error?.message ?? ""}`);
|
|
17879
17883
|
}), l;
|
|
17880
17884
|
}
|
|
17881
17885
|
ensureSendPort() {
|
|
@@ -17905,9 +17909,9 @@ class fi {
|
|
|
17905
17909
|
return await navigator.mediaDevices.getUserMedia({ audio: l.constraints ?? !0 });
|
|
17906
17910
|
}
|
|
17907
17911
|
async ensureWorklet(l) {
|
|
17908
|
-
if (!
|
|
17912
|
+
if (!bn(l))
|
|
17909
17913
|
throw new Error("AudioWorklet is not supported in this browser");
|
|
17910
|
-
this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([
|
|
17914
|
+
this.workletModuleUrl || (this.workletModuleUrl = URL.createObjectURL(new Blob([fi()], { type: "text/javascript" }))), (!this.workletReady || this.workletContext !== l) && (this.workletContext = l, this.workletReady = l.audioWorklet.addModule(this.workletModuleUrl));
|
|
17911
17915
|
try {
|
|
17912
17916
|
await this.workletReady;
|
|
17913
17917
|
} catch (i) {
|
|
@@ -17923,13 +17927,13 @@ class fi {
|
|
|
17923
17927
|
if (!a)
|
|
17924
17928
|
throw d.getTracks().forEach((F) => F.stop()), new Error("No audio track available");
|
|
17925
17929
|
await this.ensureWorklet(s);
|
|
17926
|
-
const c =
|
|
17930
|
+
const c = ui(), f = this.allocateTrackId(), w = s.createMediaStreamSource(d), h = s.createGain();
|
|
17927
17931
|
h.gain.value = 0, h.connect(s.destination);
|
|
17928
17932
|
const t = Ee() ? "sab" : "pcm";
|
|
17929
17933
|
let n;
|
|
17930
17934
|
if (t === "sab") {
|
|
17931
17935
|
const F = Math.floor(s.sampleRate * 2);
|
|
17932
|
-
n =
|
|
17936
|
+
n = ai.getStorageForCapacity(F, Float32Array);
|
|
17933
17937
|
}
|
|
17934
17938
|
const u = this.ensureWorker();
|
|
17935
17939
|
u.postMessage({
|
|
@@ -17954,9 +17958,9 @@ class fi {
|
|
|
17954
17958
|
}
|
|
17955
17959
|
});
|
|
17956
17960
|
w.connect(I), I.connect(h), t === "pcm" && (I.port.onmessage = (F) => {
|
|
17957
|
-
const
|
|
17958
|
-
if (!(!
|
|
17959
|
-
const T =
|
|
17961
|
+
const m = F.data;
|
|
17962
|
+
if (!(!m || typeof m != "object") && m.type === "pcm" && m.pcm instanceof Float32Array) {
|
|
17963
|
+
const T = m.pcm;
|
|
17960
17964
|
u.postMessage({ type: "pcm", captureId: c, pcm: T }, [T.buffer]);
|
|
17961
17965
|
}
|
|
17962
17966
|
});
|
|
@@ -18031,7 +18035,7 @@ class fi {
|
|
|
18031
18035
|
}
|
|
18032
18036
|
}
|
|
18033
18037
|
}
|
|
18034
|
-
async function
|
|
18038
|
+
async function hi(e, l) {
|
|
18035
18039
|
const i = l.mime ?? "image/jpeg", s = l.quality ?? 0.92;
|
|
18036
18040
|
if (typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas)
|
|
18037
18041
|
try {
|
|
@@ -18049,7 +18053,7 @@ async function wi(e, l) {
|
|
|
18049
18053
|
);
|
|
18050
18054
|
});
|
|
18051
18055
|
}
|
|
18052
|
-
class
|
|
18056
|
+
class Ii {
|
|
18053
18057
|
async acquireCameraStream(l) {
|
|
18054
18058
|
if (!navigator.mediaDevices)
|
|
18055
18059
|
throw new Error("Media devices are not available in this environment");
|
|
@@ -18086,7 +18090,7 @@ class hi {
|
|
|
18086
18090
|
if (!o)
|
|
18087
18091
|
throw new Error("2D canvas context unavailable");
|
|
18088
18092
|
o.drawImage(d, 0, 0, f, w);
|
|
18089
|
-
const r = await
|
|
18093
|
+
const r = await hi(h, l), t = await r.arrayBuffer();
|
|
18090
18094
|
return {
|
|
18091
18095
|
mime: r.type || l.mime || "image/jpeg",
|
|
18092
18096
|
width: f,
|
|
@@ -18113,18 +18117,18 @@ class hi {
|
|
|
18113
18117
|
}
|
|
18114
18118
|
}
|
|
18115
18119
|
}
|
|
18116
|
-
const
|
|
18117
|
-
function
|
|
18120
|
+
const rn = z("IkonVideoCapture");
|
|
18121
|
+
function pi() {
|
|
18118
18122
|
const e = globalThis.crypto;
|
|
18119
18123
|
return e?.randomUUID ? e.randomUUID() : `cap_${Date.now()}_${Math.floor(Math.random() * 1e9)}`;
|
|
18120
18124
|
}
|
|
18121
|
-
function
|
|
18125
|
+
function Ti() {
|
|
18122
18126
|
const e = globalThis.MediaStreamTrackProcessor;
|
|
18123
18127
|
if (!e)
|
|
18124
18128
|
throw new Error("MediaStreamTrackProcessor is not available in this browser");
|
|
18125
18129
|
return e;
|
|
18126
18130
|
}
|
|
18127
|
-
class
|
|
18131
|
+
class Fi {
|
|
18128
18132
|
constructor(l) {
|
|
18129
18133
|
this.client = l;
|
|
18130
18134
|
}
|
|
@@ -18147,7 +18151,7 @@ class Ti {
|
|
|
18147
18151
|
), { type: "module" });
|
|
18148
18152
|
return this.worker = l, l.addEventListener("message", (i) => {
|
|
18149
18153
|
const s = i.data;
|
|
18150
|
-
s?.type === "error" &&
|
|
18154
|
+
s?.type === "error" && rn.warn(`Video capture worker error: ${s.error?.name ?? "Error"} ${s.error?.message ?? ""}`);
|
|
18151
18155
|
}), l;
|
|
18152
18156
|
}
|
|
18153
18157
|
ensurePorts() {
|
|
@@ -18176,10 +18180,10 @@ class Ti {
|
|
|
18176
18180
|
if (!i)
|
|
18177
18181
|
throw new Error("Cannot start video capture before client is connected");
|
|
18178
18182
|
this.ensurePorts();
|
|
18179
|
-
const s =
|
|
18183
|
+
const s = pi(), d = await this.getMediaStream(l), a = d.getVideoTracks()[0];
|
|
18180
18184
|
if (!a)
|
|
18181
18185
|
throw d.getTracks().forEach((I) => I.stop()), new Error("No video track available");
|
|
18182
|
-
const c = a.getSettings(), f = c.width ?? l.options?.width ?? 1280, w = c.height ?? l.options?.height ?? 720, h =
|
|
18186
|
+
const c = a.getSettings(), f = c.width ?? l.options?.width ?? 1280, w = c.height ?? l.options?.height ?? 720, h = Ti(), r = new h({ track: a }).readable.getReader(), t = this.allocateTrackId(), n = this.ensureWorker();
|
|
18183
18187
|
n.postMessage({
|
|
18184
18188
|
type: "start",
|
|
18185
18189
|
captureId: s,
|
|
@@ -18254,18 +18258,18 @@ class Ti {
|
|
|
18254
18258
|
a && (s += 1, i.postMessage({ type: "frame", captureId: l.captureId, frame: a, frameNumber: s }, [a]));
|
|
18255
18259
|
}
|
|
18256
18260
|
} catch (d) {
|
|
18257
|
-
l.stopped ||
|
|
18261
|
+
l.stopped || rn.warn(`Video capture frame pump failed: ${d}`);
|
|
18258
18262
|
} finally {
|
|
18259
18263
|
await l.stop();
|
|
18260
18264
|
}
|
|
18261
18265
|
}
|
|
18262
18266
|
}
|
|
18263
|
-
class
|
|
18267
|
+
class bi {
|
|
18264
18268
|
audio;
|
|
18265
18269
|
video;
|
|
18266
18270
|
image;
|
|
18267
18271
|
constructor(l) {
|
|
18268
|
-
this.audio = new
|
|
18272
|
+
this.audio = new wi(l), this.video = new Fi(l), this.image = new Ii();
|
|
18269
18273
|
}
|
|
18270
18274
|
dispose() {
|
|
18271
18275
|
this.audio.dispose(), this.video.dispose();
|
|
@@ -18274,10 +18278,10 @@ class Fi {
|
|
|
18274
18278
|
const mn = /* @__PURE__ */ new Map();
|
|
18275
18279
|
for (const [e, l] of Object.entries(j))
|
|
18276
18280
|
typeof l == "number" && mn.set(l, e);
|
|
18277
|
-
function
|
|
18281
|
+
function tn(e) {
|
|
18278
18282
|
return mn.get(e) ?? `UNKNOWN_${e}`;
|
|
18279
18283
|
}
|
|
18280
|
-
const
|
|
18284
|
+
const on = {
|
|
18281
18285
|
[K.WebTransport]: 0,
|
|
18282
18286
|
[K.WebSocket]: 1,
|
|
18283
18287
|
[K.WebTransportProxy]: 2,
|
|
@@ -18298,7 +18302,7 @@ class mi {
|
|
|
18298
18302
|
if (this.isLocal)
|
|
18299
18303
|
return i;
|
|
18300
18304
|
const s = [...i].sort((d, a) => {
|
|
18301
|
-
const c =
|
|
18305
|
+
const c = on[d] ?? 999, f = on[a] ?? 999;
|
|
18302
18306
|
return c - f;
|
|
18303
18307
|
});
|
|
18304
18308
|
if (this.workingEndpointType !== null && l.has(this.workingEndpointType)) {
|
|
@@ -18345,7 +18349,7 @@ class mi {
|
|
|
18345
18349
|
}
|
|
18346
18350
|
}
|
|
18347
18351
|
const v = z("IkonClient");
|
|
18348
|
-
class
|
|
18352
|
+
class xi {
|
|
18349
18353
|
channelManager = null;
|
|
18350
18354
|
protocolWorker = null;
|
|
18351
18355
|
workerManagerState = null;
|
|
@@ -18397,7 +18401,7 @@ class Hi {
|
|
|
18397
18401
|
return this._mediaCapture;
|
|
18398
18402
|
}
|
|
18399
18403
|
constructor(l) {
|
|
18400
|
-
this.config = l, this.slowConnectionThresholdMs = l.timeouts?.slowConnectionThresholdMs ??
|
|
18404
|
+
this.config = l, this.slowConnectionThresholdMs = l.timeouts?.slowConnectionThresholdMs ?? Kn, this.connectionTimeoutMs = l.timeouts?.connectionTimeoutMs ?? Jn;
|
|
18401
18405
|
const i = [l.local, l.apiKey, l.sessionToken].filter(Boolean).length;
|
|
18402
18406
|
if (i === 0)
|
|
18403
18407
|
throw new Error('IkonClient requires one of: "local", "apiKey", or "sessionToken" configuration');
|
|
@@ -18405,14 +18409,14 @@ class Hi {
|
|
|
18405
18409
|
throw new Error('IkonClient accepts only one of: "local", "apiKey", or "sessionToken" configuration');
|
|
18406
18410
|
if (this.endpointSelector = new mi({
|
|
18407
18411
|
local: l.local
|
|
18408
|
-
}), this._functionRegistry = new
|
|
18412
|
+
}), this._functionRegistry = new Zl(), Bo() && !l.disableBrowserFunctions && (this.unregisterBrowserFunctions = $l(this._functionRegistry)), l.media) {
|
|
18409
18413
|
const s = l.media.audio ? {
|
|
18410
18414
|
output: l.media.audio.output,
|
|
18411
18415
|
threading: l.media.audio.threading
|
|
18412
18416
|
} : void 0, d = l.media.video ? { threading: l.media.video.threading } : void 0;
|
|
18413
|
-
this._media = new
|
|
18417
|
+
this._media = new di(this, { audio: s, video: d }), l.media.audio?.enabled && this._media.audio.setEnabled(!0), l.media.video?.enabled && this._media.video.prepare();
|
|
18414
18418
|
}
|
|
18415
|
-
Bo() && (this._mediaCapture = new
|
|
18419
|
+
Bo() && (this._mediaCapture = new bi(this), this.unregisterMediaCaptureFunctions = ri(this._functionRegistry, this));
|
|
18416
18420
|
}
|
|
18417
18421
|
_lastError = void 0;
|
|
18418
18422
|
/**
|
|
@@ -18493,7 +18497,7 @@ class Hi {
|
|
|
18493
18497
|
sendProtocolMessage(l) {
|
|
18494
18498
|
if (this.config.debug?.logSentMessages) {
|
|
18495
18499
|
const i = U(l), s = i.targetIds.length === 0 ? "all" : `[${i.targetIds.join(", ")}]`;
|
|
18496
|
-
v.debug(`Sent ${
|
|
18500
|
+
v.debug(`Sent ${tn(i.opcode)} ${i.senderId} -> ${s}`);
|
|
18497
18501
|
}
|
|
18498
18502
|
if (this.protocolWorker) {
|
|
18499
18503
|
const i = l.byteOffset === 0 && l.byteLength === l.buffer.byteLength ? l.buffer : l.slice().buffer;
|
|
@@ -18648,11 +18652,11 @@ class Hi {
|
|
|
18648
18652
|
async authenticate() {
|
|
18649
18653
|
const l = this.abortController?.signal;
|
|
18650
18654
|
if (this.config.local)
|
|
18651
|
-
return
|
|
18655
|
+
return Bn(this.config.local, l);
|
|
18652
18656
|
if (this.config.apiKey)
|
|
18653
|
-
return
|
|
18657
|
+
return An(this.config.apiKey, l);
|
|
18654
18658
|
if (this.config.sessionToken)
|
|
18655
|
-
return
|
|
18659
|
+
return Un(this.config.sessionToken, l);
|
|
18656
18660
|
throw new Error("No connection configuration provided (need local, apiKey, or sessionToken)");
|
|
18657
18661
|
}
|
|
18658
18662
|
/**
|
|
@@ -18662,7 +18666,7 @@ class Hi {
|
|
|
18662
18666
|
const i = Ne(l), s = ye(l);
|
|
18663
18667
|
if (this.config.debug?.logReceivedMessages) {
|
|
18664
18668
|
const d = U(l);
|
|
18665
|
-
v.debug(`Received ${d.senderId} -> ${
|
|
18669
|
+
v.debug(`Received ${d.senderId} -> ${tn(i)}`);
|
|
18666
18670
|
}
|
|
18667
18671
|
if (this._functionRegistry.handleProtocolMessage(l, i)) {
|
|
18668
18672
|
this.notifyMessageSubscribers(l, i, s);
|
|
@@ -18805,7 +18809,7 @@ class Hi {
|
|
|
18805
18809
|
}
|
|
18806
18810
|
}
|
|
18807
18811
|
async connectProtocolOnMainThread(l) {
|
|
18808
|
-
this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new
|
|
18812
|
+
this.workerManagerState = null, this.protocolWorker = null, this.channelManager = new Gn({
|
|
18809
18813
|
sessionId: this._sessionId,
|
|
18810
18814
|
keepaliveTimeoutMs: this.config.timeouts?.keepaliveTimeoutMs ?? Yo,
|
|
18811
18815
|
reconnectBackoffMs: this.config.timeouts?.reconnectBackoffMs ?? Xo,
|
|
@@ -18936,117 +18940,117 @@ class Hi {
|
|
|
18936
18940
|
}
|
|
18937
18941
|
}
|
|
18938
18942
|
}
|
|
18939
|
-
function
|
|
18943
|
+
function Wi(e) {
|
|
18940
18944
|
return e === "connecting" || e === "connectingSlow" || e === "reconnecting";
|
|
18941
18945
|
}
|
|
18942
|
-
function
|
|
18946
|
+
function Ri(e) {
|
|
18943
18947
|
return e === "connected";
|
|
18944
18948
|
}
|
|
18945
|
-
function
|
|
18949
|
+
function Gi(e) {
|
|
18946
18950
|
return e === "offline" || e === "offlineError" || e === "idle";
|
|
18947
18951
|
}
|
|
18948
|
-
function
|
|
18952
|
+
function Ki(e) {
|
|
18949
18953
|
return e === "offlineError";
|
|
18950
18954
|
}
|
|
18951
|
-
const
|
|
18952
|
-
let $ = [], rr =
|
|
18953
|
-
function bi(e) {
|
|
18954
|
-
e.level < En || ($.push(e), $.length > rr && ($ = $.slice(-rr)));
|
|
18955
|
-
}
|
|
18955
|
+
const yn = 1e3, En = dn.INFO;
|
|
18956
|
+
let $ = [], rr = yn, Nn = En, tr = null;
|
|
18956
18957
|
function yi(e) {
|
|
18957
|
-
|
|
18958
|
+
e.level < Nn || ($.push(e), $.length > rr && ($ = $.slice(-rr)));
|
|
18958
18959
|
}
|
|
18959
|
-
function
|
|
18960
|
+
function Ei(e) {
|
|
18961
|
+
rr = e?.maxBufferSize ?? yn, Nn = e?.minLevel ?? En, $ = [], Dn(yi);
|
|
18962
|
+
}
|
|
18963
|
+
function Ji(e) {
|
|
18960
18964
|
tr = e;
|
|
18961
18965
|
}
|
|
18962
|
-
function
|
|
18966
|
+
function $i() {
|
|
18963
18967
|
return $;
|
|
18964
18968
|
}
|
|
18965
|
-
function
|
|
18969
|
+
function Ni() {
|
|
18966
18970
|
const e = $;
|
|
18967
18971
|
return $ = [], e;
|
|
18968
18972
|
}
|
|
18969
|
-
function
|
|
18973
|
+
function zi() {
|
|
18970
18974
|
if (!tr || $.length === 0)
|
|
18971
18975
|
return 0;
|
|
18972
|
-
const e =
|
|
18976
|
+
const e = Ni();
|
|
18973
18977
|
return tr(e), e.length;
|
|
18974
18978
|
}
|
|
18975
|
-
function
|
|
18979
|
+
function Yi() {
|
|
18976
18980
|
$ = [];
|
|
18977
18981
|
}
|
|
18978
|
-
function
|
|
18982
|
+
function Xi() {
|
|
18979
18983
|
return $.length;
|
|
18980
18984
|
}
|
|
18981
|
-
|
|
18985
|
+
Ei();
|
|
18982
18986
|
export {
|
|
18983
18987
|
H as AuthenticationError,
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18988
|
+
Rn as Channel,
|
|
18989
|
+
Gn as ChannelManager,
|
|
18990
|
+
Mi as ChannelNotFoundError,
|
|
18987
18991
|
te as ClientReady,
|
|
18988
18992
|
He as ClientType,
|
|
18989
18993
|
ar as ConnectionError,
|
|
18990
18994
|
xe as ContextType,
|
|
18991
18995
|
mi as EndpointSelector,
|
|
18992
18996
|
K as EntrypointType,
|
|
18993
|
-
|
|
18997
|
+
Zl as FunctionRegistry,
|
|
18994
18998
|
Be as GlobalState,
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18999
|
+
Li as IKON_AUTH_BASE_URL,
|
|
19000
|
+
qo as IKON_AUTH_URL_DEV,
|
|
19001
|
+
Zo as IKON_AUTH_URL_PROD,
|
|
18998
19002
|
Le as IKON_BACKEND_URL_DEV,
|
|
18999
19003
|
Ue as IKON_BACKEND_URL_PROD,
|
|
19000
|
-
|
|
19004
|
+
wi as IkonAudioCapture,
|
|
19001
19005
|
Ir as IkonAudioPlayback,
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19006
|
+
xi as IkonClient,
|
|
19007
|
+
Ii as IkonImageCapture,
|
|
19008
|
+
di as IkonMedia,
|
|
19009
|
+
bi as IkonMediaCapture,
|
|
19010
|
+
Fi as IkonVideoCapture,
|
|
19011
|
+
si as IkonVideoPlayback,
|
|
19008
19012
|
cr as KeepaliveTimeoutError,
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19013
|
+
dn as LogLevel,
|
|
19014
|
+
Vn as MaxRetriesExceededError,
|
|
19015
|
+
Si as NoChannelsError,
|
|
19012
19016
|
j as Opcode,
|
|
19013
|
-
|
|
19014
|
-
|
|
19017
|
+
Ln as ProvisioningTimeoutError,
|
|
19018
|
+
ki as SpaceNotFoundError,
|
|
19015
19019
|
A as TransportError,
|
|
19016
19020
|
Re as UserType,
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19021
|
+
gi as asProtocolMessage,
|
|
19022
|
+
Oi as clearDeviceId,
|
|
19023
|
+
Yi as clearLogBuffer,
|
|
19020
19024
|
z as createLogger,
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19025
|
+
ji as deriveAuthUrl,
|
|
19026
|
+
vi as deriveBackendType,
|
|
19027
|
+
Di as deriveBackendUrl,
|
|
19028
|
+
Vi as extractUserIdFromToken,
|
|
19029
|
+
zi as flushLogs,
|
|
19030
|
+
$i as getBufferedLogs,
|
|
19031
|
+
Xi as getLogBufferSize,
|
|
19032
|
+
Ci as getLogLevel,
|
|
19033
|
+
_i as getLogSink,
|
|
19034
|
+
tn as getOpcodeName,
|
|
19031
19035
|
fr as getOrCreateDeviceId,
|
|
19032
|
-
|
|
19033
|
-
|
|
19036
|
+
Ei as initializeLogSink,
|
|
19037
|
+
bn as isAudioWorkletSupported,
|
|
19034
19038
|
Bo as isBrowserEnvironment,
|
|
19035
19039
|
wr as isCloudEnvironment,
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
+
Ri as isConnected,
|
|
19041
|
+
Wi as isConnecting,
|
|
19042
|
+
Ki as isError,
|
|
19043
|
+
Gi as isOffline,
|
|
19040
19044
|
Ee as isSharedArrayBufferSupported,
|
|
19041
|
-
|
|
19042
|
-
|
|
19045
|
+
an as isWebTransportSupported,
|
|
19046
|
+
Hi as parseUrlParams,
|
|
19043
19047
|
Ne as readOpcode,
|
|
19044
19048
|
ye as readOpcodeGroup,
|
|
19045
19049
|
U as readProtocolMessageHeaders,
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19050
|
+
$l as registerBrowserFunctions,
|
|
19051
|
+
Pi as setLogLevel,
|
|
19052
|
+
Dn as setLogSink,
|
|
19053
|
+
Ji as setSendLogsCallback,
|
|
19054
|
+
Ni as takeBufferedLogs,
|
|
19051
19055
|
ql as withResultData
|
|
19052
19056
|
};
|