@nil-/xit 0.4.23 → 0.4.24
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/assets/bundler.js +237 -240
- package/assets/index.js +461 -404
- package/package.json +1 -1
package/assets/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var $t = Object.defineProperty;
|
|
2
2
|
var vt = (i) => {
|
|
3
3
|
throw TypeError(i);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var a = (i, t, s) =>
|
|
7
|
-
var
|
|
8
|
-
import { cF as
|
|
9
|
-
const
|
|
10
|
-
var
|
|
5
|
+
var Xt = (i, t, s) => t in i ? $t(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
|
|
6
|
+
var a = (i, t, s) => Xt(i, typeof t != "symbol" ? t + "" : t, s), ct = (i, t, s) => t.has(i) || vt("Cannot " + s);
|
|
7
|
+
var c = (i, t, s) => (ct(i, t, "read from private field"), s ? s.call(i) : t.get(i)), B = (i, t, s) => t.has(i) ? vt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), b = (i, t, s, e) => (ct(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s), ht = (i, t, s) => (ct(i, t, "access private method"), s);
|
|
8
|
+
import { cF as dt, cG as qt } from "./svelte/store.js";
|
|
9
|
+
const lt = 2, T = 4, P = 4, u = 4, z = new Int32Array(2), wt = new Float32Array(z.buffer), mt = new Float64Array(z.buffer), rt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
|
|
10
|
+
var ut;
|
|
11
11
|
(function(i) {
|
|
12
12
|
i[i.UTF8_BYTES = 1] = "UTF8_BYTES", i[i.UTF16_STRING = 2] = "UTF16_STRING";
|
|
13
|
-
})(
|
|
14
|
-
class
|
|
13
|
+
})(ut || (ut = {}));
|
|
14
|
+
class L {
|
|
15
15
|
/**
|
|
16
16
|
* Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
|
|
17
17
|
*/
|
|
@@ -22,7 +22,7 @@ class A {
|
|
|
22
22
|
* Create and allocate a new ByteBuffer with a given size.
|
|
23
23
|
*/
|
|
24
24
|
static allocate(t) {
|
|
25
|
-
return new
|
|
25
|
+
return new L(new Uint8Array(t));
|
|
26
26
|
}
|
|
27
27
|
clear() {
|
|
28
28
|
this.position_ = 0;
|
|
@@ -76,10 +76,10 @@ class A {
|
|
|
76
76
|
return BigInt.asUintN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
|
|
77
77
|
}
|
|
78
78
|
readFloat32(t) {
|
|
79
|
-
return
|
|
79
|
+
return z[0] = this.readInt32(t), wt[0];
|
|
80
80
|
}
|
|
81
81
|
readFloat64(t) {
|
|
82
|
-
return
|
|
82
|
+
return z[rt ? 0 : 1] = this.readInt32(t), z[rt ? 1 : 0] = this.readInt32(t + 4), mt[0];
|
|
83
83
|
}
|
|
84
84
|
writeInt8(t, s) {
|
|
85
85
|
this.bytes_[t] = s;
|
|
@@ -106,10 +106,10 @@ class A {
|
|
|
106
106
|
this.writeUint32(t, Number(BigInt.asUintN(32, s))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, s >> BigInt(32))));
|
|
107
107
|
}
|
|
108
108
|
writeFloat32(t, s) {
|
|
109
|
-
|
|
109
|
+
wt[0] = s, this.writeInt32(t, z[0]);
|
|
110
110
|
}
|
|
111
111
|
writeFloat64(t, s) {
|
|
112
|
-
mt[0] = s, this.writeInt32(t,
|
|
112
|
+
mt[0] = s, this.writeInt32(t, z[rt ? 0 : 1]), this.writeInt32(t + 4, z[rt ? 1 : 0]);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
115
|
* Return the file identifier. Behavior is undefined for FlatBuffers whose
|
|
@@ -117,11 +117,11 @@ class A {
|
|
|
117
117
|
* start of a the root vtable).
|
|
118
118
|
*/
|
|
119
119
|
getBufferIdentifier() {
|
|
120
|
-
if (this.bytes_.length < this.position_ +
|
|
120
|
+
if (this.bytes_.length < this.position_ + T + P)
|
|
121
121
|
throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
|
|
122
122
|
let t = "";
|
|
123
|
-
for (let s = 0; s <
|
|
124
|
-
t += String.fromCharCode(this.readInt8(this.position_ +
|
|
123
|
+
for (let s = 0; s < P; s++)
|
|
124
|
+
t += String.fromCharCode(this.readInt8(this.position_ + T + s));
|
|
125
125
|
return t;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
@@ -152,9 +152,9 @@ class A {
|
|
|
152
152
|
__string(t, s) {
|
|
153
153
|
t += this.readInt32(t);
|
|
154
154
|
const e = this.readInt32(t);
|
|
155
|
-
t +=
|
|
155
|
+
t += T;
|
|
156
156
|
const n = this.bytes_.subarray(t, t + e);
|
|
157
|
-
return s ===
|
|
157
|
+
return s === ut.UTF8_BYTES ? n : this.text_decoder_.decode(n);
|
|
158
158
|
}
|
|
159
159
|
/**
|
|
160
160
|
* Handle unions that can contain string as its member, if a Table-derived type then initialize it,
|
|
@@ -176,7 +176,7 @@ class A {
|
|
|
176
176
|
* Get the start of data of a vector whose offset is stored at "offset" in this object.
|
|
177
177
|
*/
|
|
178
178
|
__vector(t) {
|
|
179
|
-
return t + this.readInt32(t) +
|
|
179
|
+
return t + this.readInt32(t) + T;
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* Get the length of a vector whose offset is stored at "offset" in this object.
|
|
@@ -185,10 +185,10 @@ class A {
|
|
|
185
185
|
return this.readInt32(t + this.readInt32(t));
|
|
186
186
|
}
|
|
187
187
|
__has_identifier(t) {
|
|
188
|
-
if (t.length !=
|
|
189
|
-
throw new Error("FlatBuffers: file identifier must be length " +
|
|
190
|
-
for (let s = 0; s <
|
|
191
|
-
if (t.charCodeAt(s) != this.readInt8(this.position() +
|
|
188
|
+
if (t.length != P)
|
|
189
|
+
throw new Error("FlatBuffers: file identifier must be length " + P);
|
|
190
|
+
for (let s = 0; s < P; s++)
|
|
191
|
+
if (t.charCodeAt(s) != this.readInt8(this.position() + T + s))
|
|
192
192
|
return !1;
|
|
193
193
|
return !0;
|
|
194
194
|
}
|
|
@@ -218,14 +218,14 @@ class A {
|
|
|
218
218
|
return e;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
class
|
|
221
|
+
class v {
|
|
222
222
|
/**
|
|
223
223
|
* Create a FlatBufferBuilder.
|
|
224
224
|
*/
|
|
225
225
|
constructor(t) {
|
|
226
226
|
this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null, this.text_encoder = new TextEncoder();
|
|
227
227
|
let s;
|
|
228
|
-
t ? s = t : s = 1024, this.bb =
|
|
228
|
+
t ? s = t : s = 1024, this.bb = L.allocate(s), this.space = s;
|
|
229
229
|
}
|
|
230
230
|
clear() {
|
|
231
231
|
this.bb.clear(), this.space = this.bb.capacity(), this.minalign = 1, this.vtable = null, this.vtable_in_use = 0, this.isNested = !1, this.object_start = 0, this.vtables = [], this.vector_num_elems = 0, this.force_defaults = !1, this.string_maps = null;
|
|
@@ -269,7 +269,7 @@ class R {
|
|
|
269
269
|
const e = ~(this.bb.capacity() - this.space + s) + 1 & t - 1;
|
|
270
270
|
for (; this.space < e + t + s; ) {
|
|
271
271
|
const n = this.bb.capacity();
|
|
272
|
-
this.bb =
|
|
272
|
+
this.bb = v.growByteBuffer(this.bb), this.space += this.bb.capacity() - n;
|
|
273
273
|
}
|
|
274
274
|
this.pad(e);
|
|
275
275
|
}
|
|
@@ -409,7 +409,7 @@ class R {
|
|
|
409
409
|
const s = t.capacity();
|
|
410
410
|
if (s & 3221225472)
|
|
411
411
|
throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");
|
|
412
|
-
const e = s << 1, n =
|
|
412
|
+
const e = s << 1, n = L.allocate(e);
|
|
413
413
|
return n.setPosition(e - s), n.bytes().set(t.bytes(), e - s), n;
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
@@ -418,7 +418,7 @@ class R {
|
|
|
418
418
|
* @param offset The offset to add.
|
|
419
419
|
*/
|
|
420
420
|
addOffset(t) {
|
|
421
|
-
this.prep(
|
|
421
|
+
this.prep(T, 0), this.writeInt32(this.offset() - t + T);
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* Start encoding a new object in the buffer. Users will not usually need to
|
|
@@ -449,15 +449,15 @@ class R {
|
|
|
449
449
|
this.addInt16(this.vtable[s] != 0 ? t - this.vtable[s] : 0);
|
|
450
450
|
const n = 2;
|
|
451
451
|
this.addInt16(t - this.object_start);
|
|
452
|
-
const r = (e + n) *
|
|
452
|
+
const r = (e + n) * lt;
|
|
453
453
|
this.addInt16(r);
|
|
454
454
|
let o = 0;
|
|
455
|
-
const
|
|
455
|
+
const _ = this.space;
|
|
456
456
|
t: for (s = 0; s < this.vtables.length; s++) {
|
|
457
|
-
const
|
|
458
|
-
if (r == this.bb.readInt16(
|
|
459
|
-
for (let
|
|
460
|
-
if (this.bb.readInt16(
|
|
457
|
+
const h = this.bb.capacity() - this.vtables[s];
|
|
458
|
+
if (r == this.bb.readInt16(h)) {
|
|
459
|
+
for (let g = lt; g < r; g += lt)
|
|
460
|
+
if (this.bb.readInt16(_ + g) != this.bb.readInt16(h + g))
|
|
461
461
|
continue t;
|
|
462
462
|
o = this.vtables[s];
|
|
463
463
|
break;
|
|
@@ -469,15 +469,15 @@ class R {
|
|
|
469
469
|
* Finalize a buffer, poiting to the given `root_table`.
|
|
470
470
|
*/
|
|
471
471
|
finish(t, s, e) {
|
|
472
|
-
const n = e ?
|
|
472
|
+
const n = e ? u : 0;
|
|
473
473
|
if (s) {
|
|
474
474
|
const r = s;
|
|
475
|
-
if (this.prep(this.minalign,
|
|
476
|
-
throw new TypeError("FlatBuffers: file identifier must be length " +
|
|
477
|
-
for (let o =
|
|
475
|
+
if (this.prep(this.minalign, T + P + n), r.length != P)
|
|
476
|
+
throw new TypeError("FlatBuffers: file identifier must be length " + P);
|
|
477
|
+
for (let o = P - 1; o >= 0; o--)
|
|
478
478
|
this.writeInt8(r.charCodeAt(o));
|
|
479
479
|
}
|
|
480
|
-
this.prep(this.minalign,
|
|
480
|
+
this.prep(this.minalign, T + n), this.addOffset(t), n && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
* Finalize a size prefixed buffer, pointing to the given `root_table`.
|
|
@@ -504,7 +504,7 @@ class R {
|
|
|
504
504
|
* @param alignment The alignment of the array
|
|
505
505
|
*/
|
|
506
506
|
startVector(t, s, e) {
|
|
507
|
-
this.notNested(), this.vector_num_elems = s, this.prep(
|
|
507
|
+
this.notNested(), this.vector_num_elems = s, this.prep(T, t * s), this.prep(e, t * s);
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Finish off the creation of an array and all its elements. The array must be
|
|
@@ -593,7 +593,7 @@ class V {
|
|
|
593
593
|
return (s || new V()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
594
594
|
}
|
|
595
595
|
static getSizePrefixedRootAsFileInfo(t, s) {
|
|
596
|
-
return t.setPosition(t.position() +
|
|
596
|
+
return t.setPosition(t.position() + u), (s || new V()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
597
597
|
}
|
|
598
598
|
group(t) {
|
|
599
599
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -644,13 +644,13 @@ class V {
|
|
|
644
644
|
return V.startFileInfo(t), V.addGroup(t, s), V.addPath(t, e), V.addMetadata(t, n), V.endFileInfo(t);
|
|
645
645
|
}
|
|
646
646
|
unpack() {
|
|
647
|
-
return new
|
|
647
|
+
return new St(this.group(), this.path(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
|
|
648
648
|
}
|
|
649
649
|
unpackTo(t) {
|
|
650
650
|
t.group = this.group(), t.path = this.path(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
class
|
|
653
|
+
class St {
|
|
654
654
|
constructor(t = null, s = null, e = []) {
|
|
655
655
|
a(this, "group");
|
|
656
656
|
a(this, "path");
|
|
@@ -662,7 +662,7 @@ class Ot {
|
|
|
662
662
|
return V.createFileInfo(t, s, e, n);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
class
|
|
665
|
+
class j {
|
|
666
666
|
constructor() {
|
|
667
667
|
a(this, "bb", null);
|
|
668
668
|
a(this, "bb_pos", 0);
|
|
@@ -671,10 +671,10 @@ class C {
|
|
|
671
671
|
return this.bb_pos = t, this.bb = s, this;
|
|
672
672
|
}
|
|
673
673
|
static getRootAsOption(t, s) {
|
|
674
|
-
return (s || new
|
|
674
|
+
return (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
675
675
|
}
|
|
676
676
|
static getSizePrefixedRootAsOption(t, s) {
|
|
677
|
-
return t.setPosition(t.position() +
|
|
677
|
+
return t.setPosition(t.position() + u), (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
678
678
|
}
|
|
679
679
|
key(t) {
|
|
680
680
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -698,16 +698,16 @@ class C {
|
|
|
698
698
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
699
699
|
}
|
|
700
700
|
static createOption(t, s, e) {
|
|
701
|
-
return
|
|
701
|
+
return j.startOption(t), j.addKey(t, s), j.addValue(t, e), j.endOption(t);
|
|
702
702
|
}
|
|
703
703
|
unpack() {
|
|
704
|
-
return new
|
|
704
|
+
return new Vt(this.key(), this.value());
|
|
705
705
|
}
|
|
706
706
|
unpackTo(t) {
|
|
707
707
|
t.key = this.key(), t.value = this.value();
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
class
|
|
710
|
+
class Vt {
|
|
711
711
|
constructor(t = null, s = null) {
|
|
712
712
|
a(this, "key");
|
|
713
713
|
a(this, "value");
|
|
@@ -715,10 +715,10 @@ class Ut {
|
|
|
715
715
|
}
|
|
716
716
|
pack(t) {
|
|
717
717
|
const s = this.key !== null ? t.createString(this.key) : 0, e = this.value !== null ? t.createString(this.value) : 0;
|
|
718
|
-
return
|
|
718
|
+
return j.createOption(t, s, e);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
class
|
|
721
|
+
class m {
|
|
722
722
|
constructor() {
|
|
723
723
|
a(this, "bb", null);
|
|
724
724
|
a(this, "bb_pos", 0);
|
|
@@ -727,10 +727,10 @@ class v {
|
|
|
727
727
|
return this.bb_pos = t, this.bb = s, this;
|
|
728
728
|
}
|
|
729
729
|
static getRootAsFrameCache(t, s) {
|
|
730
|
-
return (s || new
|
|
730
|
+
return (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
731
731
|
}
|
|
732
732
|
static getSizePrefixedRootAsFrameCache(t, s) {
|
|
733
|
-
return t.setPosition(t.position() +
|
|
733
|
+
return t.setPosition(t.position() + u), (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
734
734
|
}
|
|
735
735
|
id(t) {
|
|
736
736
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -754,7 +754,7 @@ class v {
|
|
|
754
754
|
}
|
|
755
755
|
options(t, s) {
|
|
756
756
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
757
|
-
return e ? (s || new
|
|
757
|
+
return e ? (s || new j()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
758
758
|
}
|
|
759
759
|
optionsLength() {
|
|
760
760
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -814,16 +814,16 @@ class v {
|
|
|
814
814
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 12), s;
|
|
815
815
|
}
|
|
816
816
|
static createFrameCache(t, s, e, n, r, o) {
|
|
817
|
-
return
|
|
817
|
+
return m.startFrameCache(t), m.addId(t, s), m.addFiles(t, e), m.addGroups(t, n), m.addOptions(t, r), m.addContent(t, o), m.endFrameCache(t);
|
|
818
818
|
}
|
|
819
819
|
unpack() {
|
|
820
|
-
return new
|
|
820
|
+
return new Ot(this.id(), this.bb.createObjList(this.files.bind(this), this.filesLength()), this.bb.createScalarList(this.groups.bind(this), this.groupsLength()), this.bb.createObjList(this.options.bind(this), this.optionsLength()), this.content());
|
|
821
821
|
}
|
|
822
822
|
unpackTo(t) {
|
|
823
823
|
t.id = this.id(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength()), t.groups = this.bb.createScalarList(this.groups.bind(this), this.groupsLength()), t.options = this.bb.createObjList(this.options.bind(this), this.optionsLength()), t.content = this.content();
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
class
|
|
826
|
+
class Ot {
|
|
827
827
|
constructor(t = null, s = [], e = [], n = [], r = null) {
|
|
828
828
|
a(this, "id");
|
|
829
829
|
a(this, "files");
|
|
@@ -833,15 +833,15 @@ class Rt {
|
|
|
833
833
|
this.id = t, this.files = s, this.groups = e, this.options = n, this.content = r;
|
|
834
834
|
}
|
|
835
835
|
pack(t) {
|
|
836
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e =
|
|
837
|
-
return
|
|
836
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = m.createFilesVector(t, t.createObjectOffsetList(this.files)), n = m.createGroupsVector(t, t.createObjectOffsetList(this.groups)), r = m.createOptionsVector(t, t.createObjectOffsetList(this.options)), o = this.content !== null ? t.createString(this.content) : 0;
|
|
837
|
+
return m.createFrameCache(t, s, e, n, r, o);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
var
|
|
840
|
+
var d;
|
|
841
841
|
(function(i) {
|
|
842
842
|
i[i.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", i[i.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", i[i.Server_Unique_FrameInfo_Response = 2] = "Server_Unique_FrameInfo_Response", i[i.Server_Tagged_FrameInfo_Response = 3] = "Server_Tagged_FrameInfo_Response", i[i.Client_File_Request = 6] = "Client_File_Request", i[i.Server_File_Response = 7] = "Server_File_Response", i[i.Client_Unique_FrameCache = 10] = "Client_Unique_FrameCache", i[i.Client_Tagged_FrameCache = 11] = "Client_Tagged_FrameCache", i[i.Client_Unique_Frame_Loaded = 12] = "Client_Unique_Frame_Loaded", i[i.Client_Tagged_Frame_Loaded = 13] = "Client_Tagged_Frame_Loaded", i[i.Client_Unique_Frame_Subscribe = 14] = "Client_Unique_Frame_Subscribe", i[i.Client_Tagged_Frame_Subscribe = 15] = "Client_Tagged_Frame_Subscribe", i[i.Client_Unique_Frame_Unsubscribe = 16] = "Client_Unique_Frame_Unsubscribe", i[i.Client_Tagged_Frame_Unsubscribe = 17] = "Client_Tagged_Frame_Unsubscribe", i[i.Client_Unique_Value_Request = 18] = "Client_Unique_Value_Request", i[i.Client_Tagged_Value_Request = 19] = "Client_Tagged_Value_Request", i[i.Server_Unique_Value_Response = 20] = "Server_Unique_Value_Response", i[i.Server_Tagged_Value_Response = 21] = "Server_Tagged_Value_Response", i[i.Unique_Value_Update = 22] = "Unique_Value_Update", i[i.Tagged_Value_Update = 23] = "Tagged_Value_Update", i[i.Client_Unique_Signal_Request = 24] = "Client_Unique_Signal_Request", i[i.Client_Tagged_Signal_Request = 25] = "Client_Tagged_Signal_Request", i[i.Server_Unique_Signal_Response = 26] = "Server_Unique_Signal_Response", i[i.Server_Tagged_Signal_Response = 27] = "Server_Tagged_Signal_Response", i[i.Client_Unique_Signal_Notify = 28] = "Client_Unique_Signal_Notify", i[i.Client_Tagged_Signal_Notify = 29] = "Client_Tagged_Signal_Notify";
|
|
843
|
-
})(
|
|
844
|
-
class
|
|
843
|
+
})(d || (d = {}));
|
|
844
|
+
class x {
|
|
845
845
|
constructor() {
|
|
846
846
|
a(this, "bb", null);
|
|
847
847
|
a(this, "bb_pos", 0);
|
|
@@ -850,10 +850,10 @@ class N {
|
|
|
850
850
|
return this.bb_pos = t, this.bb = s, this;
|
|
851
851
|
}
|
|
852
852
|
static getRootAsSignal(t, s) {
|
|
853
|
-
return (s || new
|
|
853
|
+
return (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
854
854
|
}
|
|
855
855
|
static getSizePrefixedRootAsSignal(t, s) {
|
|
856
|
-
return t.setPosition(t.position() +
|
|
856
|
+
return t.setPosition(t.position() + u), (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
857
857
|
}
|
|
858
858
|
id(t) {
|
|
859
859
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -870,26 +870,26 @@ class N {
|
|
|
870
870
|
return t.requiredField(s, 4), s;
|
|
871
871
|
}
|
|
872
872
|
static createSignal(t, s) {
|
|
873
|
-
return
|
|
873
|
+
return x.startSignal(t), x.addId(t, s), x.endSignal(t);
|
|
874
874
|
}
|
|
875
875
|
unpack() {
|
|
876
|
-
return new
|
|
876
|
+
return new Jt(this.id());
|
|
877
877
|
}
|
|
878
878
|
unpackTo(t) {
|
|
879
879
|
t.id = this.id();
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
class
|
|
882
|
+
class Jt {
|
|
883
883
|
constructor(t = null) {
|
|
884
884
|
a(this, "id");
|
|
885
885
|
this.id = t;
|
|
886
886
|
}
|
|
887
887
|
pack(t) {
|
|
888
888
|
const s = this.id !== null ? t.createString(this.id) : 0;
|
|
889
|
-
return
|
|
889
|
+
return x.createSignal(t, s);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
class
|
|
892
|
+
class E {
|
|
893
893
|
constructor() {
|
|
894
894
|
a(this, "bb", null);
|
|
895
895
|
a(this, "bb_pos", 0);
|
|
@@ -898,10 +898,10 @@ class D {
|
|
|
898
898
|
return this.bb_pos = t, this.bb = s, this;
|
|
899
899
|
}
|
|
900
900
|
static getRootAsTaggedFrameLoaded(t, s) {
|
|
901
|
-
return (s || new
|
|
901
|
+
return (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
902
902
|
}
|
|
903
903
|
static getSizePrefixedRootAsTaggedFrameLoaded(t, s) {
|
|
904
|
-
return t.setPosition(t.position() +
|
|
904
|
+
return t.setPosition(t.position() + u), (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
905
905
|
}
|
|
906
906
|
id(t) {
|
|
907
907
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -925,16 +925,16 @@ class D {
|
|
|
925
925
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
926
926
|
}
|
|
927
927
|
static createTaggedFrameLoaded(t, s, e) {
|
|
928
|
-
return
|
|
928
|
+
return E.startTaggedFrameLoaded(t), E.addId(t, s), E.addTag(t, e), E.endTaggedFrameLoaded(t);
|
|
929
929
|
}
|
|
930
930
|
unpack() {
|
|
931
|
-
return new
|
|
931
|
+
return new Ut(this.id(), this.tag());
|
|
932
932
|
}
|
|
933
933
|
unpackTo(t) {
|
|
934
934
|
t.id = this.id(), t.tag = this.tag();
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
class
|
|
937
|
+
class Ut {
|
|
938
938
|
constructor(t = null, s = null) {
|
|
939
939
|
a(this, "id");
|
|
940
940
|
a(this, "tag");
|
|
@@ -942,10 +942,10 @@ class bt {
|
|
|
942
942
|
}
|
|
943
943
|
pack(t) {
|
|
944
944
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
|
|
945
|
-
return
|
|
945
|
+
return E.createTaggedFrameLoaded(t, s, e);
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
|
-
class
|
|
948
|
+
class G {
|
|
949
949
|
constructor() {
|
|
950
950
|
a(this, "bb", null);
|
|
951
951
|
a(this, "bb_pos", 0);
|
|
@@ -954,10 +954,10 @@ class H {
|
|
|
954
954
|
return this.bb_pos = t, this.bb = s, this;
|
|
955
955
|
}
|
|
956
956
|
static getRootAsTaggedFrameSubscribe(t, s) {
|
|
957
|
-
return (s || new
|
|
957
|
+
return (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
958
958
|
}
|
|
959
959
|
static getSizePrefixedRootAsTaggedFrameSubscribe(t, s) {
|
|
960
|
-
return t.setPosition(t.position() +
|
|
960
|
+
return t.setPosition(t.position() + u), (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
961
961
|
}
|
|
962
962
|
id(t) {
|
|
963
963
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -981,16 +981,16 @@ class H {
|
|
|
981
981
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
982
982
|
}
|
|
983
983
|
static createTaggedFrameSubscribe(t, s, e) {
|
|
984
|
-
return
|
|
984
|
+
return G.startTaggedFrameSubscribe(t), G.addId(t, s), G.addTag(t, e), G.endTaggedFrameSubscribe(t);
|
|
985
985
|
}
|
|
986
986
|
unpack() {
|
|
987
|
-
return new
|
|
987
|
+
return new kt(this.id(), this.tag());
|
|
988
988
|
}
|
|
989
989
|
unpackTo(t) {
|
|
990
990
|
t.id = this.id(), t.tag = this.tag();
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
|
-
class
|
|
993
|
+
class kt {
|
|
994
994
|
constructor(t = null, s = null) {
|
|
995
995
|
a(this, "id");
|
|
996
996
|
a(this, "tag");
|
|
@@ -998,10 +998,10 @@ class pt {
|
|
|
998
998
|
}
|
|
999
999
|
pack(t) {
|
|
1000
1000
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1001
|
-
return
|
|
1001
|
+
return G.createTaggedFrameSubscribe(t, s, e);
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
|
-
class
|
|
1004
|
+
class S {
|
|
1005
1005
|
constructor() {
|
|
1006
1006
|
a(this, "bb", null);
|
|
1007
1007
|
a(this, "bb_pos", 0);
|
|
@@ -1010,10 +1010,10 @@ class q {
|
|
|
1010
1010
|
return this.bb_pos = t, this.bb = s, this;
|
|
1011
1011
|
}
|
|
1012
1012
|
static getRootAsTaggedSignalNotify(t, s) {
|
|
1013
|
-
return (s || new
|
|
1013
|
+
return (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1014
1014
|
}
|
|
1015
1015
|
static getSizePrefixedRootAsTaggedSignalNotify(t, s) {
|
|
1016
|
-
return t.setPosition(t.position() +
|
|
1016
|
+
return t.setPosition(t.position() + u), (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1017
1017
|
}
|
|
1018
1018
|
frameId(t) {
|
|
1019
1019
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1068,16 +1068,16 @@ class q {
|
|
|
1068
1068
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
1069
1069
|
}
|
|
1070
1070
|
static createTaggedSignalNotify(t, s, e, n, r) {
|
|
1071
|
-
return
|
|
1071
|
+
return S.startTaggedSignalNotify(t), S.addFrameId(t, s), S.addTag(t, e), S.addSignalId(t, n), S.addValue(t, r), S.endTaggedSignalNotify(t);
|
|
1072
1072
|
}
|
|
1073
1073
|
unpack() {
|
|
1074
|
-
return new
|
|
1074
|
+
return new Rt(this.frameId(), this.tag(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
1075
1075
|
}
|
|
1076
1076
|
unpackTo(t) {
|
|
1077
1077
|
t.frameId = this.frameId(), t.tag = this.tag(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
|
-
class
|
|
1080
|
+
class Rt {
|
|
1081
1081
|
constructor(t = null, s = null, e = null, n = []) {
|
|
1082
1082
|
a(this, "frameId");
|
|
1083
1083
|
a(this, "tag");
|
|
@@ -1086,11 +1086,11 @@ class Tt {
|
|
|
1086
1086
|
this.frameId = t, this.tag = s, this.signalId = e, this.value = n;
|
|
1087
1087
|
}
|
|
1088
1088
|
pack(t) {
|
|
1089
|
-
const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = this.signalId !== null ? t.createString(this.signalId) : 0, r =
|
|
1090
|
-
return
|
|
1089
|
+
const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = this.signalId !== null ? t.createString(this.signalId) : 0, r = S.createValueVector(t, this.value);
|
|
1090
|
+
return S.createTaggedSignalNotify(t, s, e, n, r);
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
|
-
class
|
|
1093
|
+
class D {
|
|
1094
1094
|
constructor() {
|
|
1095
1095
|
a(this, "bb", null);
|
|
1096
1096
|
a(this, "bb_pos", 0);
|
|
@@ -1099,10 +1099,10 @@ class W {
|
|
|
1099
1099
|
return this.bb_pos = t, this.bb = s, this;
|
|
1100
1100
|
}
|
|
1101
1101
|
static getRootAsTaggedSignalRequest(t, s) {
|
|
1102
|
-
return (s || new
|
|
1102
|
+
return (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1103
1103
|
}
|
|
1104
1104
|
static getSizePrefixedRootAsTaggedSignalRequest(t, s) {
|
|
1105
|
-
return t.setPosition(t.position() +
|
|
1105
|
+
return t.setPosition(t.position() + u), (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1106
1106
|
}
|
|
1107
1107
|
id(t) {
|
|
1108
1108
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1126,16 +1126,16 @@ class W {
|
|
|
1126
1126
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1127
1127
|
}
|
|
1128
1128
|
static createTaggedSignalRequest(t, s, e) {
|
|
1129
|
-
return
|
|
1129
|
+
return D.startTaggedSignalRequest(t), D.addId(t, s), D.addTag(t, e), D.endTaggedSignalRequest(t);
|
|
1130
1130
|
}
|
|
1131
1131
|
unpack() {
|
|
1132
|
-
return new
|
|
1132
|
+
return new yt(this.id(), this.tag());
|
|
1133
1133
|
}
|
|
1134
1134
|
unpackTo(t) {
|
|
1135
1135
|
t.id = this.id(), t.tag = this.tag();
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
class
|
|
1138
|
+
class yt {
|
|
1139
1139
|
constructor(t = null, s = null) {
|
|
1140
1140
|
a(this, "id");
|
|
1141
1141
|
a(this, "tag");
|
|
@@ -1143,7 +1143,7 @@ class kt {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
pack(t) {
|
|
1145
1145
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1146
|
-
return
|
|
1146
|
+
return D.createTaggedSignalRequest(t, s, e);
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
class O {
|
|
@@ -1158,7 +1158,7 @@ class O {
|
|
|
1158
1158
|
return (s || new O()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1159
1159
|
}
|
|
1160
1160
|
static getSizePrefixedRootAsTaggedSignalResponse(t, s) {
|
|
1161
|
-
return t.setPosition(t.position() +
|
|
1161
|
+
return t.setPosition(t.position() + u), (s || new O()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1162
1162
|
}
|
|
1163
1163
|
id(t) {
|
|
1164
1164
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1170,7 +1170,7 @@ class O {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
signals(t, s) {
|
|
1172
1172
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
1173
|
-
return e ? (s || new
|
|
1173
|
+
return e ? (s || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1174
1174
|
}
|
|
1175
1175
|
signalsLength() {
|
|
1176
1176
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -1205,13 +1205,13 @@ class O {
|
|
|
1205
1205
|
return O.startTaggedSignalResponse(t), O.addId(t, s), O.addTag(t, e), O.addSignals(t, n), O.endTaggedSignalResponse(t);
|
|
1206
1206
|
}
|
|
1207
1207
|
unpack() {
|
|
1208
|
-
return new
|
|
1208
|
+
return new Qt(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
1209
1209
|
}
|
|
1210
1210
|
unpackTo(t) {
|
|
1211
1211
|
t.id = this.id(), t.tag = this.tag(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
|
-
class
|
|
1214
|
+
class Qt {
|
|
1215
1215
|
constructor(t = null, s = null, e = []) {
|
|
1216
1216
|
a(this, "id");
|
|
1217
1217
|
a(this, "tag");
|
|
@@ -1223,7 +1223,7 @@ class Xt {
|
|
|
1223
1223
|
return O.createTaggedSignalResponse(t, s, e, n);
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
-
class
|
|
1226
|
+
class H {
|
|
1227
1227
|
constructor() {
|
|
1228
1228
|
a(this, "bb", null);
|
|
1229
1229
|
a(this, "bb_pos", 0);
|
|
@@ -1232,10 +1232,10 @@ class Y {
|
|
|
1232
1232
|
return this.bb_pos = t, this.bb = s, this;
|
|
1233
1233
|
}
|
|
1234
1234
|
static getRootAsTaggedValueRequest(t, s) {
|
|
1235
|
-
return (s || new
|
|
1235
|
+
return (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1236
1236
|
}
|
|
1237
1237
|
static getSizePrefixedRootAsTaggedValueRequest(t, s) {
|
|
1238
|
-
return t.setPosition(t.position() +
|
|
1238
|
+
return t.setPosition(t.position() + u), (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1239
1239
|
}
|
|
1240
1240
|
id(t) {
|
|
1241
1241
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1259,16 +1259,16 @@ class Y {
|
|
|
1259
1259
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1260
1260
|
}
|
|
1261
1261
|
static createTaggedValueRequest(t, s, e) {
|
|
1262
|
-
return
|
|
1262
|
+
return H.startTaggedValueRequest(t), H.addId(t, s), H.addTag(t, e), H.endTaggedValueRequest(t);
|
|
1263
1263
|
}
|
|
1264
1264
|
unpack() {
|
|
1265
|
-
return new
|
|
1265
|
+
return new Tt(this.id(), this.tag());
|
|
1266
1266
|
}
|
|
1267
1267
|
unpackTo(t) {
|
|
1268
1268
|
t.id = this.id(), t.tag = this.tag();
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
class
|
|
1271
|
+
class Tt {
|
|
1272
1272
|
constructor(t = null, s = null) {
|
|
1273
1273
|
a(this, "id");
|
|
1274
1274
|
a(this, "tag");
|
|
@@ -1276,10 +1276,10 @@ class yt {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
pack(t) {
|
|
1278
1278
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0;
|
|
1279
|
-
return
|
|
1279
|
+
return H.createTaggedValueRequest(t, s, e);
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
|
-
class
|
|
1282
|
+
class F {
|
|
1283
1283
|
constructor() {
|
|
1284
1284
|
a(this, "bb", null);
|
|
1285
1285
|
a(this, "bb_pos", 0);
|
|
@@ -1288,10 +1288,10 @@ class S {
|
|
|
1288
1288
|
return this.bb_pos = t, this.bb = s, this;
|
|
1289
1289
|
}
|
|
1290
1290
|
static getRootAsValue(t, s) {
|
|
1291
|
-
return (s || new
|
|
1291
|
+
return (s || new F()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1292
1292
|
}
|
|
1293
1293
|
static getSizePrefixedRootAsValue(t, s) {
|
|
1294
|
-
return t.setPosition(t.position() +
|
|
1294
|
+
return t.setPosition(t.position() + u), (s || new F()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1295
1295
|
}
|
|
1296
1296
|
id(t) {
|
|
1297
1297
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1332,24 +1332,24 @@ class S {
|
|
|
1332
1332
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1333
1333
|
}
|
|
1334
1334
|
static createValue(t, s, e) {
|
|
1335
|
-
return
|
|
1335
|
+
return F.startValue(t), F.addId(t, s), F.addValue(t, e), F.endValue(t);
|
|
1336
1336
|
}
|
|
1337
1337
|
unpack() {
|
|
1338
|
-
return new
|
|
1338
|
+
return new ft(this.id(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
1339
1339
|
}
|
|
1340
1340
|
unpackTo(t) {
|
|
1341
1341
|
t.id = this.id(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
class
|
|
1344
|
+
class ft {
|
|
1345
1345
|
constructor(t = null, s = []) {
|
|
1346
1346
|
a(this, "id");
|
|
1347
1347
|
a(this, "value");
|
|
1348
1348
|
this.id = t, this.value = s;
|
|
1349
1349
|
}
|
|
1350
1350
|
pack(t) {
|
|
1351
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e =
|
|
1352
|
-
return
|
|
1351
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = F.createValueVector(t, this.value);
|
|
1352
|
+
return F.createValue(t, s, e);
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
class U {
|
|
@@ -1364,7 +1364,7 @@ class U {
|
|
|
1364
1364
|
return (s || new U()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1365
1365
|
}
|
|
1366
1366
|
static getSizePrefixedRootAsTaggedValueResponse(t, s) {
|
|
1367
|
-
return t.setPosition(t.position() +
|
|
1367
|
+
return t.setPosition(t.position() + u), (s || new U()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1368
1368
|
}
|
|
1369
1369
|
id(t) {
|
|
1370
1370
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1376,7 +1376,7 @@ class U {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
values(t, s) {
|
|
1378
1378
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
1379
|
-
return e ? (s || new
|
|
1379
|
+
return e ? (s || new F()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1380
1380
|
}
|
|
1381
1381
|
valuesLength() {
|
|
1382
1382
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -1411,13 +1411,13 @@ class U {
|
|
|
1411
1411
|
return U.startTaggedValueResponse(t), U.addId(t, s), U.addTag(t, e), U.addValues(t, n), U.endTaggedValueResponse(t);
|
|
1412
1412
|
}
|
|
1413
1413
|
unpack() {
|
|
1414
|
-
return new
|
|
1414
|
+
return new Mt(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
1415
1415
|
}
|
|
1416
1416
|
unpackTo(t) {
|
|
1417
1417
|
t.id = this.id(), t.tag = this.tag(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
class
|
|
1420
|
+
class Mt {
|
|
1421
1421
|
constructor(t = null, s = null, e = []) {
|
|
1422
1422
|
a(this, "id");
|
|
1423
1423
|
a(this, "tag");
|
|
@@ -1429,7 +1429,7 @@ class $t {
|
|
|
1429
1429
|
return U.createTaggedValueResponse(t, s, e, n);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
class
|
|
1432
|
+
class N {
|
|
1433
1433
|
constructor() {
|
|
1434
1434
|
a(this, "bb", null);
|
|
1435
1435
|
a(this, "bb_pos", 0);
|
|
@@ -1438,10 +1438,10 @@ class B {
|
|
|
1438
1438
|
return this.bb_pos = t, this.bb = s, this;
|
|
1439
1439
|
}
|
|
1440
1440
|
static getRootAsTaggedValueUpdate(t, s) {
|
|
1441
|
-
return (s || new
|
|
1441
|
+
return (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1442
1442
|
}
|
|
1443
1443
|
static getSizePrefixedRootAsTaggedValueUpdate(t, s) {
|
|
1444
|
-
return t.setPosition(t.position() +
|
|
1444
|
+
return t.setPosition(t.position() + u), (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1445
1445
|
}
|
|
1446
1446
|
id(t) {
|
|
1447
1447
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1453,7 +1453,7 @@ class B {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
value(t) {
|
|
1455
1455
|
const s = this.bb.__offset(this.bb_pos, 8);
|
|
1456
|
-
return s ? (t || new
|
|
1456
|
+
return s ? (t || new F()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1457
1457
|
}
|
|
1458
1458
|
static startTaggedValueUpdate(t) {
|
|
1459
1459
|
t.startObject(3);
|
|
@@ -1472,13 +1472,13 @@ class B {
|
|
|
1472
1472
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
1473
1473
|
}
|
|
1474
1474
|
unpack() {
|
|
1475
|
-
return new
|
|
1475
|
+
return new Lt(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
|
|
1476
1476
|
}
|
|
1477
1477
|
unpackTo(t) {
|
|
1478
1478
|
t.id = this.id(), t.tag = this.tag(), t.value = this.value() !== null ? this.value().unpack() : null;
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
class
|
|
1481
|
+
class Lt {
|
|
1482
1482
|
constructor(t = null, s = null, e = null) {
|
|
1483
1483
|
a(this, "id");
|
|
1484
1484
|
a(this, "tag");
|
|
@@ -1487,10 +1487,10 @@ class At {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
pack(t) {
|
|
1489
1489
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.tag !== null ? t.createString(this.tag) : 0, n = this.value !== null ? this.value.pack(t) : 0;
|
|
1490
|
-
return
|
|
1490
|
+
return N.startTaggedValueUpdate(t), N.addId(t, s), N.addTag(t, e), N.addValue(t, n), N.endTaggedValueUpdate(t);
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
|
-
class
|
|
1493
|
+
class K {
|
|
1494
1494
|
constructor() {
|
|
1495
1495
|
a(this, "bb", null);
|
|
1496
1496
|
a(this, "bb_pos", 0);
|
|
@@ -1499,10 +1499,10 @@ class X {
|
|
|
1499
1499
|
return this.bb_pos = t, this.bb = s, this;
|
|
1500
1500
|
}
|
|
1501
1501
|
static getRootAsUniqueFrameLoaded(t, s) {
|
|
1502
|
-
return (s || new
|
|
1502
|
+
return (s || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1503
1503
|
}
|
|
1504
1504
|
static getSizePrefixedRootAsUniqueFrameLoaded(t, s) {
|
|
1505
|
-
return t.setPosition(t.position() +
|
|
1505
|
+
return t.setPosition(t.position() + u), (s || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1506
1506
|
}
|
|
1507
1507
|
id(t) {
|
|
1508
1508
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1519,23 +1519,23 @@ class X {
|
|
|
1519
1519
|
return t.requiredField(s, 4), s;
|
|
1520
1520
|
}
|
|
1521
1521
|
static createUniqueFrameLoaded(t, s) {
|
|
1522
|
-
return
|
|
1522
|
+
return K.startUniqueFrameLoaded(t), K.addId(t, s), K.endUniqueFrameLoaded(t);
|
|
1523
1523
|
}
|
|
1524
1524
|
unpack() {
|
|
1525
|
-
return new
|
|
1525
|
+
return new At(this.id());
|
|
1526
1526
|
}
|
|
1527
1527
|
unpackTo(t) {
|
|
1528
1528
|
t.id = this.id();
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
class
|
|
1531
|
+
class At {
|
|
1532
1532
|
constructor(t = null) {
|
|
1533
1533
|
a(this, "id");
|
|
1534
1534
|
this.id = t;
|
|
1535
1535
|
}
|
|
1536
1536
|
pack(t) {
|
|
1537
1537
|
const s = this.id !== null ? t.createString(this.id) : 0;
|
|
1538
|
-
return
|
|
1538
|
+
return K.createUniqueFrameLoaded(t, s);
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
class $ {
|
|
@@ -1550,7 +1550,7 @@ class $ {
|
|
|
1550
1550
|
return (s || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1551
1551
|
}
|
|
1552
1552
|
static getSizePrefixedRootAsUniqueFrameSubscribe(t, s) {
|
|
1553
|
-
return t.setPosition(t.position() +
|
|
1553
|
+
return t.setPosition(t.position() + u), (s || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1554
1554
|
}
|
|
1555
1555
|
id(t) {
|
|
1556
1556
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1570,13 +1570,13 @@ class $ {
|
|
|
1570
1570
|
return $.startUniqueFrameSubscribe(t), $.addId(t, s), $.endUniqueFrameSubscribe(t);
|
|
1571
1571
|
}
|
|
1572
1572
|
unpack() {
|
|
1573
|
-
return new
|
|
1573
|
+
return new jt(this.id());
|
|
1574
1574
|
}
|
|
1575
1575
|
unpackTo(t) {
|
|
1576
1576
|
t.id = this.id();
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
class
|
|
1579
|
+
class jt {
|
|
1580
1580
|
constructor(t = null) {
|
|
1581
1581
|
a(this, "id");
|
|
1582
1582
|
this.id = t;
|
|
@@ -1586,7 +1586,7 @@ class It {
|
|
|
1586
1586
|
return $.createUniqueFrameSubscribe(t, s);
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
class
|
|
1589
|
+
class k {
|
|
1590
1590
|
constructor() {
|
|
1591
1591
|
a(this, "bb", null);
|
|
1592
1592
|
a(this, "bb_pos", 0);
|
|
@@ -1595,10 +1595,10 @@ class T {
|
|
|
1595
1595
|
return this.bb_pos = t, this.bb = s, this;
|
|
1596
1596
|
}
|
|
1597
1597
|
static getRootAsUniqueSignalNotify(t, s) {
|
|
1598
|
-
return (s || new
|
|
1598
|
+
return (s || new k()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1599
1599
|
}
|
|
1600
1600
|
static getSizePrefixedRootAsUniqueSignalNotify(t, s) {
|
|
1601
|
-
return t.setPosition(t.position() +
|
|
1601
|
+
return t.setPosition(t.position() + u), (s || new k()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1602
1602
|
}
|
|
1603
1603
|
frameId(t) {
|
|
1604
1604
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1646,16 +1646,16 @@ class T {
|
|
|
1646
1646
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1647
1647
|
}
|
|
1648
1648
|
static createUniqueSignalNotify(t, s, e, n) {
|
|
1649
|
-
return
|
|
1649
|
+
return k.startUniqueSignalNotify(t), k.addFrameId(t, s), k.addSignalId(t, e), k.addValue(t, n), k.endUniqueSignalNotify(t);
|
|
1650
1650
|
}
|
|
1651
1651
|
unpack() {
|
|
1652
|
-
return new
|
|
1652
|
+
return new Ct(this.frameId(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
|
|
1653
1653
|
}
|
|
1654
1654
|
unpackTo(t) {
|
|
1655
1655
|
t.frameId = this.frameId(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
class
|
|
1658
|
+
class Ct {
|
|
1659
1659
|
constructor(t = null, s = null, e = []) {
|
|
1660
1660
|
a(this, "frameId");
|
|
1661
1661
|
a(this, "signalId");
|
|
@@ -1663,11 +1663,11 @@ class jt {
|
|
|
1663
1663
|
this.frameId = t, this.signalId = s, this.value = e;
|
|
1664
1664
|
}
|
|
1665
1665
|
pack(t) {
|
|
1666
|
-
const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.signalId !== null ? t.createString(this.signalId) : 0, n =
|
|
1667
|
-
return
|
|
1666
|
+
const s = this.frameId !== null ? t.createString(this.frameId) : 0, e = this.signalId !== null ? t.createString(this.signalId) : 0, n = k.createValueVector(t, this.value);
|
|
1667
|
+
return k.createUniqueSignalNotify(t, s, e, n);
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
class
|
|
1670
|
+
class X {
|
|
1671
1671
|
constructor() {
|
|
1672
1672
|
a(this, "bb", null);
|
|
1673
1673
|
a(this, "bb_pos", 0);
|
|
@@ -1676,10 +1676,10 @@ class J {
|
|
|
1676
1676
|
return this.bb_pos = t, this.bb = s, this;
|
|
1677
1677
|
}
|
|
1678
1678
|
static getRootAsUniqueSignalRequest(t, s) {
|
|
1679
|
-
return (s || new
|
|
1679
|
+
return (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1680
1680
|
}
|
|
1681
1681
|
static getSizePrefixedRootAsUniqueSignalRequest(t, s) {
|
|
1682
|
-
return t.setPosition(t.position() +
|
|
1682
|
+
return t.setPosition(t.position() + u), (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1683
1683
|
}
|
|
1684
1684
|
id(t) {
|
|
1685
1685
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1696,26 +1696,26 @@ class J {
|
|
|
1696
1696
|
return t.requiredField(s, 4), s;
|
|
1697
1697
|
}
|
|
1698
1698
|
static createUniqueSignalRequest(t, s) {
|
|
1699
|
-
return
|
|
1699
|
+
return X.startUniqueSignalRequest(t), X.addId(t, s), X.endUniqueSignalRequest(t);
|
|
1700
1700
|
}
|
|
1701
1701
|
unpack() {
|
|
1702
|
-
return new
|
|
1702
|
+
return new Pt(this.id());
|
|
1703
1703
|
}
|
|
1704
1704
|
unpackTo(t) {
|
|
1705
1705
|
t.id = this.id();
|
|
1706
1706
|
}
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class Pt {
|
|
1709
1709
|
constructor(t = null) {
|
|
1710
1710
|
a(this, "id");
|
|
1711
1711
|
this.id = t;
|
|
1712
1712
|
}
|
|
1713
1713
|
pack(t) {
|
|
1714
1714
|
const s = this.id !== null ? t.createString(this.id) : 0;
|
|
1715
|
-
return
|
|
1715
|
+
return X.createUniqueSignalRequest(t, s);
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
class
|
|
1718
|
+
class R {
|
|
1719
1719
|
constructor() {
|
|
1720
1720
|
a(this, "bb", null);
|
|
1721
1721
|
a(this, "bb_pos", 0);
|
|
@@ -1724,10 +1724,10 @@ class k {
|
|
|
1724
1724
|
return this.bb_pos = t, this.bb = s, this;
|
|
1725
1725
|
}
|
|
1726
1726
|
static getRootAsUniqueSignalResponse(t, s) {
|
|
1727
|
-
return (s || new
|
|
1727
|
+
return (s || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1728
1728
|
}
|
|
1729
1729
|
static getSizePrefixedRootAsUniqueSignalResponse(t, s) {
|
|
1730
|
-
return t.setPosition(t.position() +
|
|
1730
|
+
return t.setPosition(t.position() + u), (s || new R()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1731
1731
|
}
|
|
1732
1732
|
id(t) {
|
|
1733
1733
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1735,7 +1735,7 @@ class k {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
signals(t, s) {
|
|
1737
1737
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
1738
|
-
return e ? (s || new
|
|
1738
|
+
return e ? (s || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1739
1739
|
}
|
|
1740
1740
|
signalsLength() {
|
|
1741
1741
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -1764,27 +1764,27 @@ class k {
|
|
|
1764
1764
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1765
1765
|
}
|
|
1766
1766
|
static createUniqueSignalResponse(t, s, e) {
|
|
1767
|
-
return
|
|
1767
|
+
return R.startUniqueSignalResponse(t), R.addId(t, s), R.addSignals(t, e), R.endUniqueSignalResponse(t);
|
|
1768
1768
|
}
|
|
1769
1769
|
unpack() {
|
|
1770
|
-
return new
|
|
1770
|
+
return new ts(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
|
|
1771
1771
|
}
|
|
1772
1772
|
unpackTo(t) {
|
|
1773
1773
|
t.id = this.id(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
class
|
|
1776
|
+
class ts {
|
|
1777
1777
|
constructor(t = null, s = []) {
|
|
1778
1778
|
a(this, "id");
|
|
1779
1779
|
a(this, "signals");
|
|
1780
1780
|
this.id = t, this.signals = s;
|
|
1781
1781
|
}
|
|
1782
1782
|
pack(t) {
|
|
1783
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e =
|
|
1784
|
-
return
|
|
1783
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = R.createSignalsVector(t, t.createObjectOffsetList(this.signals));
|
|
1784
|
+
return R.createUniqueSignalResponse(t, s, e);
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
|
-
class
|
|
1787
|
+
class J {
|
|
1788
1788
|
constructor() {
|
|
1789
1789
|
a(this, "bb", null);
|
|
1790
1790
|
a(this, "bb_pos", 0);
|
|
@@ -1793,10 +1793,10 @@ class Q {
|
|
|
1793
1793
|
return this.bb_pos = t, this.bb = s, this;
|
|
1794
1794
|
}
|
|
1795
1795
|
static getRootAsUniqueValueRequest(t, s) {
|
|
1796
|
-
return (s || new
|
|
1796
|
+
return (s || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1797
1797
|
}
|
|
1798
1798
|
static getSizePrefixedRootAsUniqueValueRequest(t, s) {
|
|
1799
|
-
return t.setPosition(t.position() +
|
|
1799
|
+
return t.setPosition(t.position() + u), (s || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1800
1800
|
}
|
|
1801
1801
|
id(t) {
|
|
1802
1802
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1813,23 +1813,23 @@ class Q {
|
|
|
1813
1813
|
return t.requiredField(s, 4), s;
|
|
1814
1814
|
}
|
|
1815
1815
|
static createUniqueValueRequest(t, s) {
|
|
1816
|
-
return
|
|
1816
|
+
return J.startUniqueValueRequest(t), J.addId(t, s), J.endUniqueValueRequest(t);
|
|
1817
1817
|
}
|
|
1818
1818
|
unpack() {
|
|
1819
|
-
return new
|
|
1819
|
+
return new xt(this.id());
|
|
1820
1820
|
}
|
|
1821
1821
|
unpackTo(t) {
|
|
1822
1822
|
t.id = this.id();
|
|
1823
1823
|
}
|
|
1824
1824
|
}
|
|
1825
|
-
class
|
|
1825
|
+
class xt {
|
|
1826
1826
|
constructor(t = null) {
|
|
1827
1827
|
a(this, "id");
|
|
1828
1828
|
this.id = t;
|
|
1829
1829
|
}
|
|
1830
1830
|
pack(t) {
|
|
1831
1831
|
const s = this.id !== null ? t.createString(this.id) : 0;
|
|
1832
|
-
return
|
|
1832
|
+
return J.createUniqueValueRequest(t, s);
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
class y {
|
|
@@ -1844,7 +1844,7 @@ class y {
|
|
|
1844
1844
|
return (s || new y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1845
1845
|
}
|
|
1846
1846
|
static getSizePrefixedRootAsUniqueValueResponse(t, s) {
|
|
1847
|
-
return t.setPosition(t.position() +
|
|
1847
|
+
return t.setPosition(t.position() + u), (s || new y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1848
1848
|
}
|
|
1849
1849
|
id(t) {
|
|
1850
1850
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1852,7 +1852,7 @@ class y {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
values(t, s) {
|
|
1854
1854
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
1855
|
-
return e ? (s || new
|
|
1855
|
+
return e ? (s || new F()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1856
1856
|
}
|
|
1857
1857
|
valuesLength() {
|
|
1858
1858
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -1884,13 +1884,13 @@ class y {
|
|
|
1884
1884
|
return y.startUniqueValueResponse(t), y.addId(t, s), y.addValues(t, e), y.endUniqueValueResponse(t);
|
|
1885
1885
|
}
|
|
1886
1886
|
unpack() {
|
|
1887
|
-
return new
|
|
1887
|
+
return new ss(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
|
|
1888
1888
|
}
|
|
1889
1889
|
unpackTo(t) {
|
|
1890
1890
|
t.id = this.id(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
class
|
|
1893
|
+
class ss {
|
|
1894
1894
|
constructor(t = null, s = []) {
|
|
1895
1895
|
a(this, "id");
|
|
1896
1896
|
a(this, "values");
|
|
@@ -1901,7 +1901,7 @@ class Qt {
|
|
|
1901
1901
|
return y.createUniqueValueResponse(t, s, e);
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
|
-
class
|
|
1904
|
+
class W {
|
|
1905
1905
|
constructor() {
|
|
1906
1906
|
a(this, "bb", null);
|
|
1907
1907
|
a(this, "bb_pos", 0);
|
|
@@ -1910,10 +1910,10 @@ class Z {
|
|
|
1910
1910
|
return this.bb_pos = t, this.bb = s, this;
|
|
1911
1911
|
}
|
|
1912
1912
|
static getRootAsUniqueValueUpdate(t, s) {
|
|
1913
|
-
return (s || new
|
|
1913
|
+
return (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1914
1914
|
}
|
|
1915
1915
|
static getSizePrefixedRootAsUniqueValueUpdate(t, s) {
|
|
1916
|
-
return t.setPosition(t.position() +
|
|
1916
|
+
return t.setPosition(t.position() + u), (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1917
1917
|
}
|
|
1918
1918
|
id(t) {
|
|
1919
1919
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1921,7 +1921,7 @@ class Z {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
value(t) {
|
|
1923
1923
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1924
|
-
return s ? (t || new
|
|
1924
|
+
return s ? (t || new F()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1925
1925
|
}
|
|
1926
1926
|
static startUniqueValueUpdate(t) {
|
|
1927
1927
|
t.startObject(2);
|
|
@@ -1937,13 +1937,13 @@ class Z {
|
|
|
1937
1937
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1938
1938
|
}
|
|
1939
1939
|
unpack() {
|
|
1940
|
-
return new
|
|
1940
|
+
return new Nt(this.id(), this.value() !== null ? this.value().unpack() : null);
|
|
1941
1941
|
}
|
|
1942
1942
|
unpackTo(t) {
|
|
1943
1943
|
t.id = this.id(), t.value = this.value() !== null ? this.value().unpack() : null;
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
-
class
|
|
1946
|
+
class Nt {
|
|
1947
1947
|
constructor(t = null, s = null) {
|
|
1948
1948
|
a(this, "id");
|
|
1949
1949
|
a(this, "value");
|
|
@@ -1951,96 +1951,96 @@ class xt {
|
|
|
1951
1951
|
}
|
|
1952
1952
|
pack(t) {
|
|
1953
1953
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.value !== null ? this.value.pack(t) : 0;
|
|
1954
|
-
return
|
|
1954
|
+
return W.startUniqueValueUpdate(t), W.addId(t, s), W.addValue(t, e), W.endUniqueValueUpdate(t);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
const
|
|
1958
|
-
var
|
|
1959
|
-
class
|
|
1957
|
+
const bt = 1e4;
|
|
1958
|
+
var it, _t, p, Q, M, tt, C, l;
|
|
1959
|
+
class nt {
|
|
1960
1960
|
constructor(t) {
|
|
1961
|
-
|
|
1962
|
-
|
|
1961
|
+
B(this, it);
|
|
1962
|
+
B(this, p);
|
|
1963
1963
|
// 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1964
|
+
B(this, Q);
|
|
1965
|
+
B(this, M);
|
|
1966
|
+
B(this, tt);
|
|
1967
|
+
B(this, C);
|
|
1968
|
+
B(this, l);
|
|
1969
|
+
b(this, C, t), b(this, p, 0), b(this, Q, null), b(this, M, null), b(this, tt, null), b(this, l, null);
|
|
1970
1970
|
}
|
|
1971
1971
|
on_message(t) {
|
|
1972
|
-
|
|
1972
|
+
b(this, tt, t);
|
|
1973
1973
|
}
|
|
1974
1974
|
on_connect(t) {
|
|
1975
|
-
|
|
1975
|
+
b(this, Q, t);
|
|
1976
1976
|
}
|
|
1977
1977
|
on_disconnect(t) {
|
|
1978
|
-
|
|
1978
|
+
b(this, M, t);
|
|
1979
1979
|
}
|
|
1980
1980
|
// non-blocking (run is blocking in c++)
|
|
1981
1981
|
// calling it again should not do anything
|
|
1982
1982
|
start() {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
},
|
|
1986
|
-
|
|
1987
|
-
},
|
|
1988
|
-
|
|
1989
|
-
},
|
|
1990
|
-
|
|
1983
|
+
c(this, l) == null && c(this, p) !== 1 && c(this, p) !== 3 && (b(this, l, new WebSocket(c(this, C))), c(this, l).binaryType = "arraybuffer", c(this, l).onopen = () => {
|
|
1984
|
+
c(this, p) == 3 ? this.stop() : (b(this, p, 1), c(this, Q) && c(this, Q).call(this, c(this, C)));
|
|
1985
|
+
}, c(this, l).onclose = () => {
|
|
1986
|
+
c(this, p) === 1 && (c(this, M) && c(this, M).call(this, c(this, C)), b(this, p, 2), ht(this, it, _t).call(this));
|
|
1987
|
+
}, c(this, l).onerror = () => {
|
|
1988
|
+
c(this, p) !== 1 && c(this, p) !== 3 ? (b(this, p, 2), ht(this, it, _t).call(this)) : c(this, p) === 3 && this.stop();
|
|
1989
|
+
}, c(this, l).onmessage = (t) => {
|
|
1990
|
+
c(this, tt) && c(this, tt).call(this, c(this, C), new Uint8Array(t.data));
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
1993
|
stop() {
|
|
1994
|
-
|
|
1994
|
+
b(this, p, 3), c(this, l) != null && (c(this, l).close(), b(this, l, null));
|
|
1995
1995
|
}
|
|
1996
1996
|
restart() {
|
|
1997
|
-
|
|
1997
|
+
b(this, p, 0), c(this, l) != null && (c(this, l).close(), b(this, l, null)), this.start();
|
|
1998
1998
|
}
|
|
1999
1999
|
publish(t) {
|
|
2000
|
-
|
|
2000
|
+
c(this, l) != null && c(this, p) == 1 && c(this, l).send(t);
|
|
2001
2001
|
}
|
|
2002
2002
|
send(t, s) {
|
|
2003
|
-
t ===
|
|
2003
|
+
t === c(this, C) && this.publish(s);
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
},
|
|
2009
|
-
const
|
|
2006
|
+
it = new WeakSet(), _t = function() {
|
|
2007
|
+
c(this, l) != null && (c(this, l).close(), b(this, l, null)), setTimeout(() => this.start(), 1e3);
|
|
2008
|
+
}, p = new WeakMap(), Q = new WeakMap(), M = new WeakMap(), tt = new WeakMap(), C = new WeakMap(), l = new WeakMap();
|
|
2009
|
+
const Y = (i) => {
|
|
2010
2010
|
const t = new Uint8Array(4);
|
|
2011
2011
|
return new DataView(t.buffer).setUint32(0, i, !0), t;
|
|
2012
|
-
},
|
|
2012
|
+
}, Z = (i) => {
|
|
2013
2013
|
const t = new Uint8Array(i.reduce((e, n) => e + n.length, 0));
|
|
2014
2014
|
let s = 0;
|
|
2015
2015
|
for (const e of i)
|
|
2016
2016
|
t.set(e, s), s += e.length;
|
|
2017
2017
|
return t;
|
|
2018
|
-
},
|
|
2019
|
-
const e = new
|
|
2018
|
+
}, es = async (i) => new Promise((t, s) => {
|
|
2019
|
+
const e = new nt(i), n = setTimeout(() => {
|
|
2020
2020
|
e.stop(), s("connection failed... stopping");
|
|
2021
|
-
},
|
|
2021
|
+
}, bt);
|
|
2022
2022
|
e.on_connect(() => {
|
|
2023
2023
|
clearTimeout(n), e.stop(), t();
|
|
2024
2024
|
}), e.start();
|
|
2025
|
-
}),
|
|
2026
|
-
const o = new
|
|
2025
|
+
}), Bt = async (i, t, s, e) => new Promise((n, r) => {
|
|
2026
|
+
const o = new nt(i), _ = setTimeout(() => {
|
|
2027
2027
|
o.stop(), r("timed out, cancelled");
|
|
2028
|
-
},
|
|
2029
|
-
o.on_connect(() => o.publish(
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2028
|
+
}, bt), h = Z([Y(t), s]);
|
|
2029
|
+
o.on_connect(() => o.publish(h)), o.on_message((g, I) => {
|
|
2030
|
+
const f = new DataView(I.buffer).getUint32(0, !0), A = I.slice(4), q = e(f, A);
|
|
2031
|
+
q != null && (clearTimeout(_), o.stop(), n(q));
|
|
2032
2032
|
}), o.start();
|
|
2033
|
-
}),
|
|
2034
|
-
const e = new
|
|
2033
|
+
}), gt = (i, t, s) => {
|
|
2034
|
+
const e = new nt(i), n = setTimeout(() => {
|
|
2035
2035
|
e.stop();
|
|
2036
|
-
},
|
|
2036
|
+
}, bt);
|
|
2037
2037
|
e.on_connect(() => {
|
|
2038
2038
|
clearTimeout(n);
|
|
2039
|
-
const r =
|
|
2039
|
+
const r = Z([Y(t), s]);
|
|
2040
2040
|
e.publish(r), e.stop();
|
|
2041
2041
|
}), e.start();
|
|
2042
2042
|
};
|
|
2043
|
-
function
|
|
2043
|
+
function is(i) {
|
|
2044
2044
|
return new Worker(
|
|
2045
2045
|
"" + new URL("bundler.js", import.meta.url).href,
|
|
2046
2046
|
{
|
|
@@ -2048,8 +2048,8 @@ function ts(i) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
);
|
|
2050
2050
|
}
|
|
2051
|
-
const
|
|
2052
|
-
const e = new
|
|
2051
|
+
const ns = async (i) => new Promise((t, s) => {
|
|
2052
|
+
const e = new is();
|
|
2053
2053
|
e.postMessage({
|
|
2054
2054
|
type: "init",
|
|
2055
2055
|
host: i.host,
|
|
@@ -2059,19 +2059,19 @@ const ss = async (i) => new Promise((t, s) => {
|
|
|
2059
2059
|
}), e.addEventListener("message", async (n) => {
|
|
2060
2060
|
if (n.data.ok) {
|
|
2061
2061
|
if (n.data.files && n.data.options) {
|
|
2062
|
-
const r = new
|
|
2063
|
-
key:
|
|
2064
|
-
value: String(
|
|
2065
|
-
})),
|
|
2062
|
+
const r = new v(), o = Array.isArray(n.data.options) ? n.data.options : Object.entries(n.data.options).map(([h, g]) => ({
|
|
2063
|
+
key: h,
|
|
2064
|
+
value: String(g)
|
|
2065
|
+
})), _ = new Ot(
|
|
2066
2066
|
i.id,
|
|
2067
|
-
n.data.files.map((
|
|
2068
|
-
n.data.files.map((
|
|
2069
|
-
o.map((
|
|
2067
|
+
n.data.files.map((h) => new St(h.group, h.path, h.metadata)),
|
|
2068
|
+
n.data.files.map((h) => h.group),
|
|
2069
|
+
o.map((h) => new Vt(h.key, h.value)),
|
|
2070
2070
|
n.data.code
|
|
2071
2071
|
);
|
|
2072
|
-
r.finish(
|
|
2072
|
+
r.finish(_.pack(r)), gt(
|
|
2073
2073
|
i.host,
|
|
2074
|
-
i.tag != null ?
|
|
2074
|
+
i.tag != null ? d.Client_Tagged_FrameCache : d.Client_Unique_FrameCache,
|
|
2075
2075
|
r.asUint8Array()
|
|
2076
2076
|
);
|
|
2077
2077
|
}
|
|
@@ -2083,140 +2083,217 @@ const ss = async (i) => new Promise((t, s) => {
|
|
|
2083
2083
|
s(n.data.err);
|
|
2084
2084
|
e.terminate();
|
|
2085
2085
|
});
|
|
2086
|
-
}),
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
t != null ? (c, d) => {
|
|
2101
|
-
if (c === u.Server_Tagged_Value_Response) {
|
|
2102
|
-
const b = U.getRootAsTaggedValueResponse(
|
|
2103
|
-
new A(d)
|
|
2104
|
-
);
|
|
2105
|
-
if (b.id() === i && t === b.tag())
|
|
2106
|
-
return b;
|
|
2107
|
-
}
|
|
2108
|
-
} : (c, d) => {
|
|
2109
|
-
if (c === u.Server_Unique_Value_Response) {
|
|
2110
|
-
const b = y.getRootAsUniqueValueResponse(
|
|
2111
|
-
new A(d)
|
|
2112
|
-
);
|
|
2113
|
-
if (b.id() === i)
|
|
2114
|
-
return b;
|
|
2115
|
-
}
|
|
2086
|
+
}), zt = (i) => i ? Array.from(i) : Array(), as = {
|
|
2087
|
+
client_value_request: d.Client_Tagged_Value_Request,
|
|
2088
|
+
server_value_response: d.Server_Tagged_Value_Response,
|
|
2089
|
+
make_value_request: (i, t) => {
|
|
2090
|
+
const s = new v(), e = new Tt(t, i);
|
|
2091
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2092
|
+
},
|
|
2093
|
+
eval_value_response: (i, t, s) => {
|
|
2094
|
+
try {
|
|
2095
|
+
const e = U.getRootAsTaggedValueResponse(new L(s));
|
|
2096
|
+
if (e.id() === i && t === e.tag())
|
|
2097
|
+
return e;
|
|
2098
|
+
} catch {
|
|
2099
|
+
return;
|
|
2116
2100
|
}
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
z.value = new Lt(
|
|
2127
|
-
b,
|
|
2128
|
-
Bt(m)
|
|
2129
|
-
), I.finish(z.pack(I));
|
|
2130
|
-
const p = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
|
|
2131
|
-
e.publish(it([et(p), I.asUint8Array()]));
|
|
2132
|
-
}), r.set(b, F);
|
|
2133
|
-
}
|
|
2134
|
-
return e.on_message((c, d) => {
|
|
2135
|
-
const b = new DataView(d.buffer).getUint32(0, !0), F = d.slice(4), m = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
|
|
2136
|
-
if (b === m) {
|
|
2137
|
-
const I = t !== null ? B.getRootAsTaggedValueUpdate(new A(F)) : Z.getRootAsUniqueValueUpdate(new A(F));
|
|
2138
|
-
if (I.id() === i && (t == null || t === I.tag())) {
|
|
2139
|
-
o = !0;
|
|
2140
|
-
const z = I.value().id(), p = r.get(z), j = new Uint8Array(I.unpack().value.value), K = Vt(p);
|
|
2141
|
-
let ct = !0;
|
|
2142
|
-
if (K == null || j.length != K.length)
|
|
2143
|
-
ct = !1;
|
|
2144
|
-
else {
|
|
2145
|
-
const Wt = j.length;
|
|
2146
|
-
for (let rt = 0; rt < Wt; rt++)
|
|
2147
|
-
if (j[rt] !== K[rt]) {
|
|
2148
|
-
ct = !1;
|
|
2149
|
-
break;
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
ct || p == null || p.set(j), o = !1;
|
|
2153
|
-
}
|
|
2101
|
+
}
|
|
2102
|
+
}, rs = {
|
|
2103
|
+
value_update: d.Tagged_Value_Update,
|
|
2104
|
+
get_value_update: (i, t, s) => {
|
|
2105
|
+
try {
|
|
2106
|
+
const e = N.getRootAsTaggedValueUpdate(new L(s));
|
|
2107
|
+
if (e.id() === i && t === e.tag()) return e;
|
|
2108
|
+
} catch {
|
|
2109
|
+
return;
|
|
2154
2110
|
}
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2111
|
+
},
|
|
2112
|
+
make_value_update: (i, t, s, e) => {
|
|
2113
|
+
const n = new v(), r = new Lt(i, t);
|
|
2114
|
+
return r.value = new ft(s, zt(e)), n.finish(r.pack(n)), Z([Y(d.Tagged_Value_Update), n.asUint8Array()]);
|
|
2115
|
+
}
|
|
2116
|
+
}, os = {
|
|
2117
|
+
signal_request: d.Client_Tagged_Signal_Request,
|
|
2118
|
+
signal_response: d.Server_Tagged_Signal_Response,
|
|
2119
|
+
make_signal_request: (i, t) => {
|
|
2120
|
+
const s = new v(), e = new yt(i);
|
|
2121
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2122
|
+
},
|
|
2123
|
+
make_signal_response: (i) => {
|
|
2124
|
+
try {
|
|
2125
|
+
return O.getRootAsTaggedSignalResponse(new L(i));
|
|
2126
|
+
} catch {
|
|
2127
|
+
return;
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
make_signal_notify: (i, t, s, e) => {
|
|
2131
|
+
const n = new v(), r = zt(e), o = new Rt(i, t, s, r);
|
|
2132
|
+
return n.finish(o.pack(n)), Z([Y(d.Client_Tagged_Signal_Notify), n.asUint8Array()]);
|
|
2133
|
+
}
|
|
2134
|
+
}, Et = {
|
|
2135
|
+
frame_loaded: d.Client_Tagged_Frame_Loaded,
|
|
2136
|
+
make_subscribe_msg: (i, t) => {
|
|
2137
|
+
const s = new v(), e = new kt(i, t);
|
|
2138
|
+
return s.finish(e.pack(s)), Z([Y(d.Client_Tagged_Frame_Subscribe), s.asUint8Array()]);
|
|
2139
|
+
},
|
|
2140
|
+
make_loaded_msg: (i, t) => {
|
|
2141
|
+
const s = new v(), e = new Ut(i, t);
|
|
2142
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2143
|
+
}
|
|
2144
|
+
}, Gt = (i) => i ? Array.from(i) : Array(), cs = {
|
|
2145
|
+
client_value_request: d.Client_Unique_Value_Request,
|
|
2146
|
+
server_value_response: d.Server_Unique_Value_Response,
|
|
2147
|
+
make_value_request: (i, t) => {
|
|
2148
|
+
const s = new v(), e = new xt(i);
|
|
2149
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2150
|
+
},
|
|
2151
|
+
eval_value_response: (i, t, s) => {
|
|
2152
|
+
try {
|
|
2153
|
+
const e = y.getRootAsUniqueValueResponse(new L(s));
|
|
2154
|
+
if (e.id() === i)
|
|
2155
|
+
return e;
|
|
2156
|
+
} catch {
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
}, hs = {
|
|
2161
|
+
value_update: d.Unique_Value_Update,
|
|
2162
|
+
get_value_update: (i, t, s) => {
|
|
2163
|
+
try {
|
|
2164
|
+
const e = W.getRootAsUniqueValueUpdate(new L(s));
|
|
2165
|
+
if (e.id() === i) return e;
|
|
2166
|
+
} catch {
|
|
2167
|
+
return;
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
make_value_update: (i, t, s, e) => {
|
|
2171
|
+
const n = new v(), r = new Nt(i);
|
|
2172
|
+
return r.value = new ft(s, Gt(e)), n.finish(r.pack(n)), Z([Y(d.Unique_Value_Update), n.asUint8Array()]);
|
|
2173
|
+
}
|
|
2174
|
+
}, ls = {
|
|
2175
|
+
signal_request: d.Client_Unique_Signal_Request,
|
|
2176
|
+
signal_response: d.Server_Unique_Signal_Response,
|
|
2177
|
+
make_signal_request: (i, t) => {
|
|
2178
|
+
const s = new v(), e = new Pt(i);
|
|
2179
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2180
|
+
},
|
|
2181
|
+
make_signal_response: (i) => {
|
|
2182
|
+
try {
|
|
2183
|
+
return R.getRootAsUniqueSignalResponse(new L(i));
|
|
2184
|
+
} catch {
|
|
2185
|
+
return;
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
make_signal_notify: (i, t, s, e) => {
|
|
2189
|
+
const n = new v(), r = Gt(e), o = new Ct(i, s, r);
|
|
2190
|
+
return n.finish(o.pack(n)), Z([Y(d.Client_Unique_Signal_Notify), n.asUint8Array()]);
|
|
2191
|
+
}
|
|
2192
|
+
}, Dt = {
|
|
2193
|
+
frame_loaded: d.Client_Unique_Frame_Loaded,
|
|
2194
|
+
make_subscribe_msg: (i, t) => {
|
|
2195
|
+
const s = new v(), e = new jt(i);
|
|
2196
|
+
return s.finish(e.pack(s)), Z([Y(d.Client_Unique_Frame_Subscribe), s.asUint8Array()]);
|
|
2197
|
+
},
|
|
2198
|
+
make_loaded_msg: (i, t) => {
|
|
2199
|
+
const s = new v(), e = new At(i);
|
|
2200
|
+
return s.finish(e.pack(s)), s.asUint8Array();
|
|
2201
|
+
}
|
|
2202
|
+
}, Ft = (i) => {
|
|
2203
|
+
}, ds = (i) => new Uint8Array(i ?? []), us = (i, t) => {
|
|
2204
|
+
if (i == null || t.length !== i.length)
|
|
2205
|
+
return !1;
|
|
2206
|
+
const s = t.length;
|
|
2207
|
+
for (let e = 0; e < s; e++)
|
|
2208
|
+
if (t[e] !== i[e])
|
|
2209
|
+
return !1;
|
|
2210
|
+
return !0;
|
|
2211
|
+
}, Ht = async ({ id: i, tag: t, host: s, service: e }) => {
|
|
2212
|
+
const n = t == null ? cs : as, r = await Bt(
|
|
2163
2213
|
s,
|
|
2164
|
-
|
|
2165
|
-
(
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
(
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2214
|
+
n.client_value_request,
|
|
2215
|
+
n.make_value_request(i, t),
|
|
2216
|
+
(I, f) => I === n.server_value_response ? n.eval_value_response(i, t, f) : void 0
|
|
2217
|
+
);
|
|
2218
|
+
if (r == null)
|
|
2219
|
+
throw new Error("Failed to fetch values for frame");
|
|
2220
|
+
const o = /* @__PURE__ */ new Map(), _ = t == null ? hs : rs;
|
|
2221
|
+
let h = !1;
|
|
2222
|
+
const g = r.valuesLength();
|
|
2223
|
+
for (let I = 0; I < g; ++I) {
|
|
2224
|
+
const f = r.values(I), A = f == null ? void 0 : f.id();
|
|
2225
|
+
if (f == null || A == null) continue;
|
|
2226
|
+
const q = dt(ds(f.unpack().value));
|
|
2227
|
+
q.subscribe((w) => {
|
|
2228
|
+
w != null && !h && e.publish(_.make_value_update(i, t, A, w));
|
|
2229
|
+
}), o.set(A, q);
|
|
2230
|
+
}
|
|
2231
|
+
return e.on_message((I, f) => {
|
|
2232
|
+
var st, at;
|
|
2233
|
+
if (f.byteLength < 4)
|
|
2234
|
+
return;
|
|
2235
|
+
const A = new DataView(f.buffer, f.byteOffset, f.byteLength).getUint32(0, !0), q = f.slice(4), w = _.value_update;
|
|
2236
|
+
if (A === w) {
|
|
2237
|
+
const et = _.get_value_update(i, t, q), pt = (st = et == null ? void 0 : et.value()) == null ? void 0 : st.id();
|
|
2238
|
+
if (et == null || pt == null)
|
|
2239
|
+
return;
|
|
2240
|
+
const ot = o.get(pt);
|
|
2241
|
+
if (ot == null)
|
|
2242
|
+
return;
|
|
2243
|
+
const It = new Uint8Array(((at = et.unpack().value) == null ? void 0 : at.value) ?? []);
|
|
2244
|
+
us(qt(ot), It) || (h = !0, ot.set(It), h = !1);
|
|
2175
2245
|
}
|
|
2176
|
-
),
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2246
|
+
}), o;
|
|
2247
|
+
}, Wt = async ({ id: i, tag: t, host: s, service: e }) => {
|
|
2248
|
+
const n = t == null ? ls : os, r = await Bt(
|
|
2249
|
+
s,
|
|
2250
|
+
n.signal_request,
|
|
2251
|
+
n.make_signal_request(i, t),
|
|
2252
|
+
(h, g) => h === n.signal_response ? n.make_signal_response(g) : void 0
|
|
2253
|
+
);
|
|
2254
|
+
if (r == null)
|
|
2255
|
+
throw new Error("Failed to fetch signals for frame");
|
|
2256
|
+
const o = /* @__PURE__ */ new Map(), _ = r.signalsLength();
|
|
2257
|
+
for (let h = 0; h < _; ++h) {
|
|
2258
|
+
const g = r.signals(h), I = g == null ? void 0 : g.id();
|
|
2259
|
+
I != null && o.set(I, (f) => {
|
|
2260
|
+
e.publish(n.make_signal_notify(i, t, I, f));
|
|
2184
2261
|
});
|
|
2185
2262
|
}
|
|
2186
|
-
return
|
|
2187
|
-
},
|
|
2263
|
+
return o;
|
|
2264
|
+
}, Yt = (i) => ((t, s, e) => {
|
|
2188
2265
|
if (e == null)
|
|
2189
|
-
return i.get(t) ??
|
|
2266
|
+
return i.get(t) ?? dt(s);
|
|
2190
2267
|
const n = i.get(t);
|
|
2191
2268
|
if (n != null) {
|
|
2192
|
-
let r =
|
|
2269
|
+
let r = qt(n), o = e.decode(r);
|
|
2193
2270
|
return {
|
|
2194
|
-
set: (
|
|
2195
|
-
o =
|
|
2271
|
+
set: (_) => {
|
|
2272
|
+
o = _, r = e.encode(o), n.set(r);
|
|
2196
2273
|
},
|
|
2197
|
-
subscribe: (
|
|
2198
|
-
|
|
2274
|
+
subscribe: (_) => n.subscribe((h) => {
|
|
2275
|
+
h !== r && (r = h, o = e.decode(r)), _(o);
|
|
2199
2276
|
}),
|
|
2200
|
-
update: (
|
|
2201
|
-
n.update((
|
|
2277
|
+
update: (_) => {
|
|
2278
|
+
n.update((h) => (o = _(o), r = e.encode(o), r));
|
|
2202
2279
|
}
|
|
2203
2280
|
};
|
|
2204
2281
|
}
|
|
2205
|
-
return
|
|
2206
|
-
}),
|
|
2282
|
+
return dt(s);
|
|
2283
|
+
}), Zt = (i) => ((t, s) => {
|
|
2207
2284
|
if (s == null)
|
|
2208
|
-
return i.get(t) ??
|
|
2285
|
+
return i.get(t) ?? Ft;
|
|
2209
2286
|
const e = i.get(t);
|
|
2210
|
-
return e != null ? (n) => e(s(n)) :
|
|
2211
|
-
}),
|
|
2212
|
-
await
|
|
2213
|
-
const o = new
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
]),
|
|
2287
|
+
return e != null ? (n) => e(s(n)) : Ft;
|
|
2288
|
+
}), _s = async (i, t, s, e, n, r) => {
|
|
2289
|
+
await es(i);
|
|
2290
|
+
const o = new nt(i), [_, h, { nil_xit_fn: g }] = await Promise.all([
|
|
2291
|
+
Ht({ id: t, tag: s, host: i, service: o }),
|
|
2292
|
+
Wt({ id: t, tag: s, host: i, service: o }),
|
|
2293
|
+
ns({ host: i, cdn_url: e, id: t, tag: s })
|
|
2294
|
+
]), I = {
|
|
2218
2295
|
svelte: () => import("./svelte/index.js"),
|
|
2219
|
-
"svelte/store": () => import("./svelte/store.js").then((
|
|
2296
|
+
"svelte/store": () => import("./svelte/store.js").then((w) => w.cH),
|
|
2220
2297
|
"svelte/animate": () => import("./svelte/animate.js"),
|
|
2221
2298
|
"svelte/reactivity": () => import("./svelte/reactivity.js"),
|
|
2222
2299
|
"svelte/easing": () => import("./svelte/easing.js"),
|
|
@@ -2226,29 +2303,20 @@ const ss = async (i) => new Promise((t, s) => {
|
|
|
2226
2303
|
// @ts-ignore
|
|
2227
2304
|
"svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
|
|
2228
2305
|
// @ts-ignore
|
|
2229
|
-
"svelte/internal/client": () => import("./svelte/internal/client.js").then((
|
|
2306
|
+
"svelte/internal/client": () => import("./svelte/internal/client.js").then((w) => w.i),
|
|
2230
2307
|
"@nil-/xit": () => import("./index2.js")
|
|
2231
2308
|
// TAG: DEV -- uncomment for local development
|
|
2232
|
-
},
|
|
2309
|
+
}, f = (w) => w in I ? I[w]() : import(
|
|
2233
2310
|
/* @vite-ignore */
|
|
2234
|
-
|
|
2235
|
-
), { action:
|
|
2236
|
-
o.on_connect(() => {
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
return I.finish(z.pack(I)), Ft(
|
|
2244
|
-
i,
|
|
2245
|
-
s != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded,
|
|
2246
|
-
I.asUint8Array()
|
|
2247
|
-
), (p) => {
|
|
2248
|
-
const j = /* @__PURE__ */ new Map();
|
|
2249
|
-
j.set("nil.xit", {
|
|
2250
|
-
values: Gt(l),
|
|
2251
|
-
signals: Dt(c),
|
|
2311
|
+
w
|
|
2312
|
+
), { action: A } = await g(f), q = s == null ? Dt : Et;
|
|
2313
|
+
return o.on_connect(() => {
|
|
2314
|
+
o.publish(q.make_subscribe_msg(t, s));
|
|
2315
|
+
}), o.start(), gt(i, q.frame_loaded, q.make_loaded_msg(t, s)), (w) => {
|
|
2316
|
+
const st = /* @__PURE__ */ new Map();
|
|
2317
|
+
st.set("nil.xit", {
|
|
2318
|
+
values: Yt(_),
|
|
2319
|
+
signals: Zt(h),
|
|
2252
2320
|
resub: () => o.start(),
|
|
2253
2321
|
unsub: () => o.stop(),
|
|
2254
2322
|
id: t,
|
|
@@ -2256,63 +2324,52 @@ const ss = async (i) => new Promise((t, s) => {
|
|
|
2256
2324
|
load_frame_ui: n,
|
|
2257
2325
|
load_frame_data: r
|
|
2258
2326
|
});
|
|
2259
|
-
const { destroy:
|
|
2327
|
+
const { destroy: at } = A(w, st);
|
|
2260
2328
|
return {
|
|
2261
2329
|
destroy: () => {
|
|
2262
|
-
o.stop(),
|
|
2330
|
+
o.stop(), at();
|
|
2263
2331
|
}
|
|
2264
2332
|
};
|
|
2265
2333
|
};
|
|
2266
|
-
},
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
const d = new R(), b = s != null ? new pt(t, s) : new It(t);
|
|
2277
|
-
d.finish(b.pack(d));
|
|
2278
|
-
const F = s != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
|
|
2279
|
-
e.publish(it([et(F), d.asUint8Array()]));
|
|
2280
|
-
}), e.start();
|
|
2281
|
-
const o = new R(), l = s != null ? new bt(t, s) : new gt(t);
|
|
2282
|
-
o.finish(l.pack(o));
|
|
2283
|
-
const c = s != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded;
|
|
2284
|
-
return Ft(i, c, o.asUint8Array()), {
|
|
2285
|
-
values: Gt(n),
|
|
2286
|
-
signals: Dt(r),
|
|
2334
|
+
}, fs = async ({ host: i, frame: t, tag: s }) => {
|
|
2335
|
+
const e = new nt(i), [n, r] = await Promise.all([
|
|
2336
|
+
Ht({ id: t, tag: s ?? null, host: i, service: e }),
|
|
2337
|
+
Wt({ id: t, tag: s ?? null, host: i, service: e })
|
|
2338
|
+
]), o = s == null ? Dt : Et;
|
|
2339
|
+
return e.on_connect(() => {
|
|
2340
|
+
e.publish(o.make_subscribe_msg(t, s ?? null));
|
|
2341
|
+
}), e.start(), gt(i, o.frame_loaded, o.make_loaded_msg(t, s ?? null)), {
|
|
2342
|
+
values: Yt(n),
|
|
2343
|
+
signals: Zt(r),
|
|
2287
2344
|
resub: () => e.start(),
|
|
2288
2345
|
unsub: () => e.stop()
|
|
2289
2346
|
};
|
|
2290
|
-
},
|
|
2347
|
+
}, Kt = async ({
|
|
2291
2348
|
host: i,
|
|
2292
2349
|
cdn_url: t,
|
|
2293
2350
|
frame: s,
|
|
2294
2351
|
tag: e
|
|
2295
2352
|
}) => {
|
|
2296
2353
|
const n = async (r, o) => {
|
|
2297
|
-
const
|
|
2354
|
+
const _ = await Kt({
|
|
2298
2355
|
host: i,
|
|
2299
2356
|
cdn_url: t,
|
|
2300
2357
|
frame: r,
|
|
2301
2358
|
tag: o
|
|
2302
2359
|
});
|
|
2303
|
-
return (
|
|
2360
|
+
return (h) => _(h);
|
|
2304
2361
|
};
|
|
2305
|
-
return
|
|
2362
|
+
return _s(
|
|
2306
2363
|
i,
|
|
2307
2364
|
s,
|
|
2308
2365
|
e ?? null,
|
|
2309
2366
|
t,
|
|
2310
2367
|
async (r, o) => n(r, o),
|
|
2311
|
-
async (r, o) =>
|
|
2368
|
+
async (r, o) => fs({ host: i, frame: r, tag: o })
|
|
2312
2369
|
);
|
|
2313
|
-
},
|
|
2370
|
+
}, Is = async (i, t) => (await Kt(t))(i);
|
|
2314
2371
|
export {
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2372
|
+
Is as create_component,
|
|
2373
|
+
fs as create_frame,
|
|
2374
|
+
Kt as create_frame_ui
|
|
2318
2375
|
};
|