@nil-/xit 0.4.19 → 0.4.20

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/index.js CHANGED
@@ -1,111 +1,111 @@
1
- var ne = Object.defineProperty;
2
- var kt = (s) => {
3
- throw TypeError(s);
1
+ var Wt = Object.defineProperty;
2
+ var Ft = (i) => {
3
+ throw TypeError(i);
4
4
  };
5
- var ae = (s, t, e) => t in s ? ne(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
6
- var n = (s, t, e) => ae(s, typeof t != "symbol" ? t + "" : t, e), It = (s, t, e) => t.has(s) || kt("Cannot " + e);
7
- var u = (s, t, e) => (It(s, t, "read from private field"), e ? e.call(s) : t.get(s)), W = (s, t, e) => t.has(s) ? kt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), w = (s, t, e, i) => (It(s, t, "write to private field"), i ? i.call(s, e) : t.set(s, e), e), wt = (s, t, e) => (It(s, t, "access private method"), e);
8
- import { w as et, g as Nt } from "./svelte/store.js";
9
- const mt = 1e4;
10
- var _t, Ft, v, rt, ot, lt, x, g;
11
- class ft {
5
+ var Ht = (i, t, e) => t in i ? Wt(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
6
+ var a = (i, t, e) => Ht(i, typeof t != "symbol" ? t + "" : t, e), ct = (i, t, e) => t.has(i) || Ft("Cannot " + e);
7
+ var l = (i, t, e) => (ct(i, t, "read from private field"), e ? e.call(i) : t.get(i)), z = (i, t, e) => t.has(i) ? Ft("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), p = (i, t, e, s) => (ct(i, t, "write to private field"), s ? s.call(i, e) : t.set(i, e), e), lt = (i, t, e) => (ct(i, t, "access private method"), e);
8
+ import { cF as dt, cG as qt } from "./svelte/store.js";
9
+ const ft = 1e4;
10
+ var it, ut, w, K, Q, M, j, g;
11
+ class nt {
12
12
  constructor(t) {
13
- W(this, _t);
14
- W(this, v);
13
+ z(this, it);
14
+ z(this, w);
15
15
  // 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
16
- W(this, rt);
17
- W(this, ot);
18
- W(this, lt);
19
- W(this, x);
20
- W(this, g);
21
- w(this, x, t), w(this, v, 0), w(this, rt, null), w(this, ot, null), w(this, lt, null), w(this, g, null);
16
+ z(this, K);
17
+ z(this, Q);
18
+ z(this, M);
19
+ z(this, j);
20
+ z(this, g);
21
+ p(this, j, t), p(this, w, 0), p(this, K, null), p(this, Q, null), p(this, M, null), p(this, g, null);
22
22
  }
23
23
  on_message(t) {
24
- w(this, lt, t);
24
+ p(this, M, t);
25
25
  }
26
26
  on_connect(t) {
27
- w(this, rt, t);
27
+ p(this, K, t);
28
28
  }
29
29
  on_disconnect(t) {
30
- w(this, ot, t);
30
+ p(this, Q, t);
31
31
  }
32
32
  // non-blocking (run is blocking in c++)
33
33
  // calling it again should not do anything
34
34
  start() {
35
- u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(u(this, x))), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
36
- u(this, v) == 3 ? this.stop() : (w(this, v, 1), u(this, rt) && u(this, rt).call(this, u(this, x)));
37
- }, u(this, g).onclose = () => {
38
- u(this, v) === 1 && (u(this, ot) && u(this, ot).call(this, u(this, x)), w(this, v, 2), wt(this, _t, Ft).call(this));
39
- }, u(this, g).onerror = () => {
40
- u(this, v) !== 1 && u(this, v) !== 3 ? (w(this, v, 2), wt(this, _t, Ft).call(this)) : u(this, v) === 3 && this.stop();
41
- }, u(this, g).onmessage = (t) => {
42
- u(this, lt) && u(this, lt).call(this, u(this, x), new Uint8Array(t.data));
35
+ l(this, g) == null && l(this, w) !== 1 && l(this, w) !== 3 && (p(this, g, new WebSocket(l(this, j))), l(this, g).binaryType = "arraybuffer", l(this, g).onopen = () => {
36
+ l(this, w) == 3 ? this.stop() : (p(this, w, 1), l(this, K) && l(this, K).call(this, l(this, j)));
37
+ }, l(this, g).onclose = () => {
38
+ l(this, w) === 1 && (l(this, Q) && l(this, Q).call(this, l(this, j)), p(this, w, 2), lt(this, it, ut).call(this));
39
+ }, l(this, g).onerror = () => {
40
+ l(this, w) !== 1 && l(this, w) !== 3 ? (p(this, w, 2), lt(this, it, ut).call(this)) : l(this, w) === 3 && this.stop();
41
+ }, l(this, g).onmessage = (t) => {
42
+ l(this, M) && l(this, M).call(this, l(this, j), new Uint8Array(t.data));
43
43
  });
44
44
  }
45
45
  stop() {
46
- w(this, v, 3), u(this, g) != null && u(this, g).readyState !== WebSocket.CONNECTING && (u(this, g).close(), w(this, g, null));
46
+ p(this, w, 3), l(this, g) != null && l(this, g).readyState !== WebSocket.CONNECTING && (l(this, g).close(), p(this, g, null));
47
47
  }
48
48
  restart() {
49
- w(this, v, 0);
49
+ p(this, w, 0);
50
50
  }
51
51
  publish(t) {
52
- u(this, g) != null && u(this, v) == 1 && u(this, g).send(t);
52
+ l(this, g) != null && l(this, w) == 1 && l(this, g).send(t);
53
53
  }
54
54
  send(t, e) {
55
- t === u(this, x) && this.publish(e);
55
+ t === l(this, j) && this.publish(e);
56
56
  }
57
57
  }
58
- _t = new WeakSet(), Ft = function() {
59
- u(this, g) != null && (u(this, g).close(), w(this, g, null)), setTimeout(() => this.start(), 1e3);
60
- }, v = new WeakMap(), rt = new WeakMap(), ot = new WeakMap(), lt = new WeakMap(), x = new WeakMap(), g = new WeakMap();
61
- const ht = (s) => {
58
+ it = new WeakSet(), ut = function() {
59
+ l(this, g) != null && (l(this, g).close(), p(this, g, null)), setTimeout(() => this.start(), 1e3);
60
+ }, w = new WeakMap(), K = new WeakMap(), Q = new WeakMap(), M = new WeakMap(), j = new WeakMap(), g = new WeakMap();
61
+ const et = (i) => {
62
62
  const t = new Uint8Array(4);
63
- return new DataView(t.buffer).setUint32(0, s, !1), t;
64
- }, dt = (s) => {
65
- const t = new Uint8Array(s.reduce((i, a) => i + a.length, 0));
63
+ return new DataView(t.buffer).setUint32(0, i, !1), t;
64
+ }, st = (i) => {
65
+ const t = new Uint8Array(i.reduce((s, n) => s + n.length, 0));
66
66
  let e = 0;
67
- for (const i of s)
68
- t.set(i, e), e += i.length;
67
+ for (const s of i)
68
+ t.set(s, e), e += s.length;
69
69
  return t;
70
- }, re = async (s) => new Promise((t, e) => {
71
- const i = new ft(s), a = setTimeout(() => {
72
- i.stop(), e("connection failed... stopping");
73
- }, mt);
74
- i.on_connect(() => {
75
- clearTimeout(a), i.stop(), t();
76
- }), i.start();
77
- }), jt = async (s, t, e, i) => new Promise((a, r) => {
78
- const o = new ft(s), h = setTimeout(() => {
70
+ }, Yt = async (i) => new Promise((t, e) => {
71
+ const s = new nt(i), n = setTimeout(() => {
72
+ s.stop(), e("connection failed... stopping");
73
+ }, ft);
74
+ s.on_connect(() => {
75
+ clearTimeout(n), s.stop(), t();
76
+ }), s.start();
77
+ }), Ut = async (i, t, e, s) => new Promise((n, r) => {
78
+ const o = new nt(i), h = setTimeout(() => {
79
79
  o.stop(), r("timed out, cancelled");
80
- }, mt), c = dt([ht(t), e]);
81
- o.on_connect(() => o.publish(c)), o.on_message((d, b) => {
82
- const F = new DataView(b.buffer).getUint32(0, !1), O = b.slice(4), V = i(F, O);
83
- V != null && (clearTimeout(h), o.stop(), a(V));
80
+ }, ft), c = st([et(t), e]);
81
+ o.on_connect(() => o.publish(c)), o.on_message((d, _) => {
82
+ const F = new DataView(_.buffer).getUint32(0, !1), m = _.slice(4), I = s(F, m);
83
+ I != null && (clearTimeout(h), o.stop(), n(I));
84
84
  }), o.start();
85
- }), St = (s, t, e) => {
86
- const i = new ft(s), a = setTimeout(() => {
87
- i.stop();
88
- }, mt);
89
- i.on_connect(() => {
90
- clearTimeout(a);
91
- const r = dt([ht(t), e]);
92
- i.publish(r), i.stop();
93
- }), i.start();
85
+ }), bt = (i, t, e) => {
86
+ const s = new nt(i), n = setTimeout(() => {
87
+ s.stop();
88
+ }, ft);
89
+ s.on_connect(() => {
90
+ clearTimeout(n);
91
+ const r = st([et(t), e]);
92
+ s.publish(r), s.stop();
93
+ }), s.start();
94
94
  };
95
- function oe(s) {
95
+ function Zt(i) {
96
96
  return new Worker(
97
97
  "" + new URL("bundler.js", import.meta.url).href,
98
98
  {
99
- name: s == null ? void 0 : s.name
99
+ name: i == null ? void 0 : i.name
100
100
  }
101
101
  );
102
102
  }
103
- const vt = 2, L = 4, E = 4, f = 4, H = new Int32Array(2), yt = new Float32Array(H.buffer), At = new Float64Array(H.buffer), bt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
104
- var Vt;
105
- (function(s) {
106
- s[s.UTF8_BYTES = 1] = "UTF8_BYTES", s[s.UTF16_STRING = 2] = "UTF16_STRING";
107
- })(Vt || (Vt = {}));
108
- class P {
103
+ const ht = 2, y = 4, P = 4, f = 4, E = new Int32Array(2), vt = new Float32Array(E.buffer), St = new Float64Array(E.buffer), rt = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
104
+ var _t;
105
+ (function(i) {
106
+ i[i.UTF8_BYTES = 1] = "UTF8_BYTES", i[i.UTF16_STRING = 2] = "UTF16_STRING";
107
+ })(_t || (_t = {}));
108
+ class L {
109
109
  /**
110
110
  * Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
111
111
  */
@@ -116,7 +116,7 @@ class P {
116
116
  * Create and allocate a new ByteBuffer with a given size.
117
117
  */
118
118
  static allocate(t) {
119
- return new P(new Uint8Array(t));
119
+ return new L(new Uint8Array(t));
120
120
  }
121
121
  clear() {
122
122
  this.position_ = 0;
@@ -170,10 +170,10 @@ class P {
170
170
  return BigInt.asUintN(64, BigInt(this.readUint32(t)) + (BigInt(this.readUint32(t + 4)) << BigInt(32)));
171
171
  }
172
172
  readFloat32(t) {
173
- return H[0] = this.readInt32(t), yt[0];
173
+ return E[0] = this.readInt32(t), vt[0];
174
174
  }
175
175
  readFloat64(t) {
176
- return H[bt ? 0 : 1] = this.readInt32(t), H[bt ? 1 : 0] = this.readInt32(t + 4), At[0];
176
+ return E[rt ? 0 : 1] = this.readInt32(t), E[rt ? 1 : 0] = this.readInt32(t + 4), St[0];
177
177
  }
178
178
  writeInt8(t, e) {
179
179
  this.bytes_[t] = e;
@@ -200,10 +200,10 @@ class P {
200
200
  this.writeUint32(t, Number(BigInt.asUintN(32, e))), this.writeUint32(t + 4, Number(BigInt.asUintN(32, e >> BigInt(32))));
201
201
  }
202
202
  writeFloat32(t, e) {
203
- yt[0] = e, this.writeInt32(t, H[0]);
203
+ vt[0] = e, this.writeInt32(t, E[0]);
204
204
  }
205
205
  writeFloat64(t, e) {
206
- At[0] = e, this.writeInt32(t, H[bt ? 0 : 1]), this.writeInt32(t + 4, H[bt ? 1 : 0]);
206
+ St[0] = e, this.writeInt32(t, E[rt ? 0 : 1]), this.writeInt32(t + 4, E[rt ? 1 : 0]);
207
207
  }
208
208
  /**
209
209
  * Return the file identifier. Behavior is undefined for FlatBuffers whose
@@ -211,11 +211,11 @@ class P {
211
211
  * start of a the root vtable).
212
212
  */
213
213
  getBufferIdentifier() {
214
- if (this.bytes_.length < this.position_ + L + E)
214
+ if (this.bytes_.length < this.position_ + y + P)
215
215
  throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");
216
216
  let t = "";
217
- for (let e = 0; e < E; e++)
218
- t += String.fromCharCode(this.readInt8(this.position_ + L + e));
217
+ for (let e = 0; e < P; e++)
218
+ t += String.fromCharCode(this.readInt8(this.position_ + y + e));
219
219
  return t;
220
220
  }
221
221
  /**
@@ -223,8 +223,8 @@ class P {
223
223
  * field is not present.
224
224
  */
225
225
  __offset(t, e) {
226
- const i = t - this.readInt32(t);
227
- return e < this.readInt16(i) ? this.readInt16(i + e) : 0;
226
+ const s = t - this.readInt32(t);
227
+ return e < this.readInt16(s) ? this.readInt16(s + e) : 0;
228
228
  }
229
229
  /**
230
230
  * Initialize any Table-derived type to point to the union at the given offset.
@@ -245,10 +245,10 @@ class P {
245
245
  */
246
246
  __string(t, e) {
247
247
  t += this.readInt32(t);
248
- const i = this.readInt32(t);
249
- t += L;
250
- const a = this.bytes_.subarray(t, t + i);
251
- return e === Vt.UTF8_BYTES ? a : this.text_decoder_.decode(a);
248
+ const s = this.readInt32(t);
249
+ t += y;
250
+ const n = this.bytes_.subarray(t, t + s);
251
+ return e === _t.UTF8_BYTES ? n : this.text_decoder_.decode(n);
252
252
  }
253
253
  /**
254
254
  * Handle unions that can contain string as its member, if a Table-derived type then initialize it,
@@ -270,7 +270,7 @@ class P {
270
270
  * Get the start of data of a vector whose offset is stored at "offset" in this object.
271
271
  */
272
272
  __vector(t) {
273
- return t + this.readInt32(t) + L;
273
+ return t + this.readInt32(t) + y;
274
274
  }
275
275
  /**
276
276
  * Get the length of a vector whose offset is stored at "offset" in this object.
@@ -279,10 +279,10 @@ class P {
279
279
  return this.readInt32(t + this.readInt32(t));
280
280
  }
281
281
  __has_identifier(t) {
282
- if (t.length != E)
283
- throw new Error("FlatBuffers: file identifier must be length " + E);
284
- for (let e = 0; e < E; e++)
285
- if (t.charCodeAt(e) != this.readInt8(this.position() + L + e))
282
+ if (t.length != P)
283
+ throw new Error("FlatBuffers: file identifier must be length " + P);
284
+ for (let e = 0; e < P; e++)
285
+ if (t.charCodeAt(e) != this.readInt8(this.position() + y + e))
286
286
  return !1;
287
287
  return !0;
288
288
  }
@@ -290,12 +290,12 @@ class P {
290
290
  * A helper function for generating list for obj api
291
291
  */
292
292
  createScalarList(t, e) {
293
- const i = [];
294
- for (let a = 0; a < e; ++a) {
295
- const r = t(a);
296
- r !== null && i.push(r);
293
+ const s = [];
294
+ for (let n = 0; n < e; ++n) {
295
+ const r = t(n);
296
+ r !== null && s.push(r);
297
297
  }
298
- return i;
298
+ return s;
299
299
  }
300
300
  /**
301
301
  * A helper function for generating list for obj api
@@ -304,22 +304,22 @@ class P {
304
304
  * @param res result list
305
305
  */
306
306
  createObjList(t, e) {
307
- const i = [];
308
- for (let a = 0; a < e; ++a) {
309
- const r = t(a);
310
- r !== null && i.push(r.unpack());
307
+ const s = [];
308
+ for (let n = 0; n < e; ++n) {
309
+ const r = t(n);
310
+ r !== null && s.push(r.unpack());
311
311
  }
312
- return i;
312
+ return s;
313
313
  }
314
314
  }
315
- class y {
315
+ class O {
316
316
  /**
317
317
  * Create a FlatBufferBuilder.
318
318
  */
319
319
  constructor(t) {
320
320
  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();
321
321
  let e;
322
- t ? e = t : e = 1024, this.bb = P.allocate(e), this.space = e;
322
+ t ? e = t : e = 1024, this.bb = L.allocate(e), this.space = e;
323
323
  }
324
324
  clear() {
325
325
  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;
@@ -360,12 +360,12 @@ class y {
360
360
  */
361
361
  prep(t, e) {
362
362
  t > this.minalign && (this.minalign = t);
363
- const i = ~(this.bb.capacity() - this.space + e) + 1 & t - 1;
364
- for (; this.space < i + t + e; ) {
365
- const a = this.bb.capacity();
366
- this.bb = y.growByteBuffer(this.bb), this.space += this.bb.capacity() - a;
363
+ const s = ~(this.bb.capacity() - this.space + e) + 1 & t - 1;
364
+ for (; this.space < s + t + e; ) {
365
+ const n = this.bb.capacity();
366
+ this.bb = O.growByteBuffer(this.bb), this.space += this.bb.capacity() - n;
367
367
  }
368
- this.pad(i);
368
+ this.pad(s);
369
369
  }
370
370
  pad(t) {
371
371
  for (let e = 0; e < t; e++)
@@ -431,32 +431,32 @@ class y {
431
431
  addFloat64(t) {
432
432
  this.prep(8, 0), this.writeFloat64(t);
433
433
  }
434
- addFieldInt8(t, e, i) {
435
- (this.force_defaults || e != i) && (this.addInt8(e), this.slot(t));
434
+ addFieldInt8(t, e, s) {
435
+ (this.force_defaults || e != s) && (this.addInt8(e), this.slot(t));
436
436
  }
437
- addFieldInt16(t, e, i) {
438
- (this.force_defaults || e != i) && (this.addInt16(e), this.slot(t));
437
+ addFieldInt16(t, e, s) {
438
+ (this.force_defaults || e != s) && (this.addInt16(e), this.slot(t));
439
439
  }
440
- addFieldInt32(t, e, i) {
441
- (this.force_defaults || e != i) && (this.addInt32(e), this.slot(t));
440
+ addFieldInt32(t, e, s) {
441
+ (this.force_defaults || e != s) && (this.addInt32(e), this.slot(t));
442
442
  }
443
- addFieldInt64(t, e, i) {
444
- (this.force_defaults || e !== i) && (this.addInt64(e), this.slot(t));
443
+ addFieldInt64(t, e, s) {
444
+ (this.force_defaults || e !== s) && (this.addInt64(e), this.slot(t));
445
445
  }
446
- addFieldFloat32(t, e, i) {
447
- (this.force_defaults || e != i) && (this.addFloat32(e), this.slot(t));
446
+ addFieldFloat32(t, e, s) {
447
+ (this.force_defaults || e != s) && (this.addFloat32(e), this.slot(t));
448
448
  }
449
- addFieldFloat64(t, e, i) {
450
- (this.force_defaults || e != i) && (this.addFloat64(e), this.slot(t));
449
+ addFieldFloat64(t, e, s) {
450
+ (this.force_defaults || e != s) && (this.addFloat64(e), this.slot(t));
451
451
  }
452
- addFieldOffset(t, e, i) {
453
- (this.force_defaults || e != i) && (this.addOffset(e), this.slot(t));
452
+ addFieldOffset(t, e, s) {
453
+ (this.force_defaults || e != s) && (this.addOffset(e), this.slot(t));
454
454
  }
455
455
  /**
456
456
  * Structs are stored inline, so nothing additional is being added. `d` is always 0.
457
457
  */
458
- addFieldStruct(t, e, i) {
459
- e != i && (this.nested(e), this.slot(t));
458
+ addFieldStruct(t, e, s) {
459
+ e != s && (this.nested(e), this.slot(t));
460
460
  }
461
461
  /**
462
462
  * Structures are always stored inline, they need to be created right
@@ -503,8 +503,8 @@ class y {
503
503
  const e = t.capacity();
504
504
  if (e & 3221225472)
505
505
  throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");
506
- const i = e << 1, a = P.allocate(i);
507
- return a.setPosition(i - e), a.bytes().set(t.bytes(), i - e), a;
506
+ const s = e << 1, n = L.allocate(s);
507
+ return n.setPosition(s - e), n.bytes().set(t.bytes(), s - e), n;
508
508
  }
509
509
  /**
510
510
  * Adds on offset, relative to where it will be written.
@@ -512,7 +512,7 @@ class y {
512
512
  * @param offset The offset to add.
513
513
  */
514
514
  addOffset(t) {
515
- this.prep(L, 0), this.writeInt32(this.offset() - t + L);
515
+ this.prep(y, 0), this.writeInt32(this.offset() - t + y);
516
516
  }
517
517
  /**
518
518
  * Start encoding a new object in the buffer. Users will not usually need to
@@ -538,19 +538,19 @@ class y {
538
538
  let e = this.vtable_in_use - 1;
539
539
  for (; e >= 0 && this.vtable[e] == 0; e--)
540
540
  ;
541
- const i = e + 1;
541
+ const s = e + 1;
542
542
  for (; e >= 0; e--)
543
543
  this.addInt16(this.vtable[e] != 0 ? t - this.vtable[e] : 0);
544
- const a = 2;
544
+ const n = 2;
545
545
  this.addInt16(t - this.object_start);
546
- const r = (i + a) * vt;
546
+ const r = (s + n) * ht;
547
547
  this.addInt16(r);
548
548
  let o = 0;
549
549
  const h = this.space;
550
550
  t: for (e = 0; e < this.vtables.length; e++) {
551
551
  const c = this.bb.capacity() - this.vtables[e];
552
552
  if (r == this.bb.readInt16(c)) {
553
- for (let d = vt; d < r; d += vt)
553
+ for (let d = ht; d < r; d += ht)
554
554
  if (this.bb.readInt16(h + d) != this.bb.readInt16(c + d))
555
555
  continue t;
556
556
  o = this.vtables[e];
@@ -562,16 +562,16 @@ class y {
562
562
  /**
563
563
  * Finalize a buffer, poiting to the given `root_table`.
564
564
  */
565
- finish(t, e, i) {
566
- const a = i ? f : 0;
565
+ finish(t, e, s) {
566
+ const n = s ? f : 0;
567
567
  if (e) {
568
568
  const r = e;
569
- if (this.prep(this.minalign, L + E + a), r.length != E)
570
- throw new TypeError("FlatBuffers: file identifier must be length " + E);
571
- for (let o = E - 1; o >= 0; o--)
569
+ if (this.prep(this.minalign, y + P + n), r.length != P)
570
+ throw new TypeError("FlatBuffers: file identifier must be length " + P);
571
+ for (let o = P - 1; o >= 0; o--)
572
572
  this.writeInt8(r.charCodeAt(o));
573
573
  }
574
- this.prep(this.minalign, L + a), this.addOffset(t), a && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
574
+ this.prep(this.minalign, y + n), this.addOffset(t), n && this.addInt32(this.bb.capacity() - this.space), this.bb.setPosition(this.space);
575
575
  }
576
576
  /**
577
577
  * Finalize a size prefixed buffer, pointing to the given `root_table`.
@@ -584,8 +584,8 @@ class y {
584
584
  * just been constructed.
585
585
  */
586
586
  requiredField(t, e) {
587
- const i = this.bb.capacity() - t, a = i - this.bb.readInt32(i);
588
- if (!(e < this.bb.readInt16(a) && this.bb.readInt16(a + e) != 0))
587
+ const s = this.bb.capacity() - t, n = s - this.bb.readInt32(s);
588
+ if (!(e < this.bb.readInt16(n) && this.bb.readInt16(n + e) != 0))
589
589
  throw new TypeError("FlatBuffers: field " + e + " must be set");
590
590
  }
591
591
  /**
@@ -597,8 +597,8 @@ class y {
597
597
  * @param num_elems The number of elements in the array
598
598
  * @param alignment The alignment of the array
599
599
  */
600
- startVector(t, e, i) {
601
- this.notNested(), this.vector_num_elems = e, this.prep(L, t * e), this.prep(i, t * e);
600
+ startVector(t, e, s) {
601
+ this.notNested(), this.vector_num_elems = e, this.prep(y, t * e), this.prep(s, t * e);
602
602
  }
603
603
  /**
604
604
  * Finish off the creation of an array and all its elements. The array must be
@@ -662,10 +662,10 @@ class y {
662
662
  */
663
663
  createObjectOffsetList(t) {
664
664
  const e = [];
665
- for (let i = 0; i < t.length; ++i) {
666
- const a = t[i];
667
- if (a !== null)
668
- e.push(this.createObjectOffset(a));
665
+ for (let s = 0; s < t.length; ++s) {
666
+ const n = t[s];
667
+ if (n !== null)
668
+ e.push(this.createObjectOffset(n));
669
669
  else
670
670
  throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.");
671
671
  }
@@ -675,19 +675,19 @@ class y {
675
675
  return e(this, t.length), this.createObjectOffsetList(t.slice().reverse()), this.endVector();
676
676
  }
677
677
  }
678
- class N {
678
+ class T {
679
679
  constructor() {
680
- n(this, "bb", null);
681
- n(this, "bb_pos", 0);
680
+ a(this, "bb", null);
681
+ a(this, "bb_pos", 0);
682
682
  }
683
683
  __init(t, e) {
684
684
  return this.bb_pos = t, this.bb = e, this;
685
685
  }
686
686
  static getRootAsFileInfo(t, e) {
687
- return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
687
+ return (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
688
688
  }
689
689
  static getSizePrefixedRootAsFileInfo(t, e) {
690
- return t.setPosition(t.position() + f), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
690
+ return t.setPosition(t.position() + f), (e || new T()).__init(t.readInt32(t.position()) + t.position(), t);
691
691
  }
692
692
  target(t) {
693
693
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -716,8 +716,8 @@ class N {
716
716
  }
717
717
  static createMetadataVector(t, e) {
718
718
  t.startVector(1, e.length, 1);
719
- for (let i = e.length - 1; i >= 0; i--)
720
- t.addInt8(e[i]);
719
+ for (let s = e.length - 1; s >= 0; s--)
720
+ t.addInt8(e[s]);
721
721
  return t.endVector();
722
722
  }
723
723
  static startMetadataVector(t, e) {
@@ -727,40 +727,40 @@ class N {
727
727
  const e = t.endObject();
728
728
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
729
729
  }
730
- static createFileInfo(t, e, i) {
731
- return N.startFileInfo(t), N.addTarget(t, e), N.addMetadata(t, i), N.endFileInfo(t);
730
+ static createFileInfo(t, e, s) {
731
+ return T.startFileInfo(t), T.addTarget(t, e), T.addMetadata(t, s), T.endFileInfo(t);
732
732
  }
733
733
  unpack() {
734
- return new Bt(this.target(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
734
+ return new Vt(this.target(), this.bb.createScalarList(this.metadata.bind(this), this.metadataLength()));
735
735
  }
736
736
  unpackTo(t) {
737
737
  t.target = this.target(), t.metadata = this.bb.createScalarList(this.metadata.bind(this), this.metadataLength());
738
738
  }
739
739
  }
740
- class Bt {
740
+ class Vt {
741
741
  constructor(t = null, e = []) {
742
- n(this, "target");
743
- n(this, "metadata");
742
+ a(this, "target");
743
+ a(this, "metadata");
744
744
  this.target = t, this.metadata = e;
745
745
  }
746
746
  pack(t) {
747
- const e = this.target !== null ? t.createString(this.target) : 0, i = N.createMetadataVector(t, this.metadata);
748
- return N.createFileInfo(t, e, i);
747
+ const e = this.target !== null ? t.createString(this.target) : 0, s = T.createMetadataVector(t, this.metadata);
748
+ return T.createFileInfo(t, e, s);
749
749
  }
750
750
  }
751
- class q {
751
+ class S {
752
752
  constructor() {
753
- n(this, "bb", null);
754
- n(this, "bb_pos", 0);
753
+ a(this, "bb", null);
754
+ a(this, "bb_pos", 0);
755
755
  }
756
756
  __init(t, e) {
757
757
  return this.bb_pos = t, this.bb = e, this;
758
758
  }
759
759
  static getRootAsFrameCache(t, e) {
760
- return (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
760
+ return (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
761
761
  }
762
762
  static getSizePrefixedRootAsFrameCache(t, e) {
763
- return t.setPosition(t.position() + f), (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
763
+ return t.setPosition(t.position() + f), (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
764
764
  }
765
765
  id(t) {
766
766
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -779,8 +779,8 @@ class q {
779
779
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
780
780
  }
781
781
  files(t, e) {
782
- const i = this.bb.__offset(this.bb_pos, 12);
783
- return i ? (e || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
782
+ const s = this.bb.__offset(this.bb_pos, 12);
783
+ return s ? (e || new T()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
784
784
  }
785
785
  filesLength() {
786
786
  const t = this.bb.__offset(this.bb_pos, 12);
@@ -806,8 +806,8 @@ class q {
806
806
  }
807
807
  static createFilesVector(t, e) {
808
808
  t.startVector(4, e.length, 4);
809
- for (let i = e.length - 1; i >= 0; i--)
810
- t.addOffset(e[i]);
809
+ for (let s = e.length - 1; s >= 0; s--)
810
+ t.addOffset(e[s]);
811
811
  return t.endVector();
812
812
  }
813
813
  static startFilesVector(t, e) {
@@ -817,107 +817,95 @@ class q {
817
817
  const e = t.endObject();
818
818
  return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), t.requiredField(e, 10), t.requiredField(e, 12), e;
819
819
  }
820
- static createFrameCache(t, e, i, a, r, o) {
821
- return q.startFrameCache(t), q.addId(t, e), q.addTarget(t, i), q.addFullTarget(t, a), q.addContent(t, r), q.addFiles(t, o), q.endFrameCache(t);
820
+ static createFrameCache(t, e, s, n, r, o) {
821
+ return S.startFrameCache(t), S.addId(t, e), S.addTarget(t, s), S.addFullTarget(t, n), S.addContent(t, r), S.addFiles(t, o), S.endFrameCache(t);
822
822
  }
823
823
  unpack() {
824
- return new Ct(this.id(), this.target(), this.fullTarget(), this.content(), this.bb.createObjList(this.files.bind(this), this.filesLength()));
824
+ return new Ot(this.id(), this.target(), this.fullTarget(), this.content(), this.bb.createObjList(this.files.bind(this), this.filesLength()));
825
825
  }
826
826
  unpackTo(t) {
827
827
  t.id = this.id(), t.target = this.target(), t.fullTarget = this.fullTarget(), t.content = this.content(), t.files = this.bb.createObjList(this.files.bind(this), this.filesLength());
828
828
  }
829
829
  }
830
- class Ct {
831
- constructor(t = null, e = null, i = null, a = null, r = []) {
832
- n(this, "id");
833
- n(this, "target");
834
- n(this, "fullTarget");
835
- n(this, "content");
836
- n(this, "files");
837
- this.id = t, this.target = e, this.fullTarget = i, this.content = a, this.files = r;
830
+ class Ot {
831
+ constructor(t = null, e = null, s = null, n = null, r = []) {
832
+ a(this, "id");
833
+ a(this, "target");
834
+ a(this, "fullTarget");
835
+ a(this, "content");
836
+ a(this, "files");
837
+ this.id = t, this.target = e, this.fullTarget = s, this.content = n, this.files = r;
838
838
  }
839
839
  pack(t) {
840
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.target !== null ? t.createString(this.target) : 0, a = this.fullTarget !== null ? t.createString(this.fullTarget) : 0, r = this.content !== null ? t.createString(this.content) : 0, o = q.createFilesVector(t, t.createObjectOffsetList(this.files));
841
- return q.createFrameCache(t, e, i, a, r, o);
840
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.target !== null ? t.createString(this.target) : 0, n = this.fullTarget !== null ? t.createString(this.fullTarget) : 0, r = this.content !== null ? t.createString(this.content) : 0, o = S.createFilesVector(t, t.createObjectOffsetList(this.files));
841
+ return S.createFrameCache(t, e, s, n, r, o);
842
842
  }
843
843
  }
844
- var _;
845
- (function(s) {
846
- s[s.Client_Unique_FrameInfo_Request = 0] = "Client_Unique_FrameInfo_Request", s[s.Client_Tagged_FrameInfo_Request = 1] = "Client_Tagged_FrameInfo_Request", s[s.Server_Unique_FrameInfo_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", s[s.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", s[s.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", s[s.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", s[s.Client_File_Request = 6] = "Client_File_Request", s[s.Server_File_Response = 7] = "Server_File_Response", s[s.Client_File_Alias_Request = 8] = "Client_File_Alias_Request", s[s.Server_File_Alias_Response = 9] = "Server_File_Alias_Response", s[s.Client_Unique_FrameCache = 10] = "Client_Unique_FrameCache", s[s.Client_Tagged_FrameCache = 11] = "Client_Tagged_FrameCache", s[s.Client_Unique_Frame_Loaded = 12] = "Client_Unique_Frame_Loaded", s[s.Client_Tagged_Frame_Loaded = 13] = "Client_Tagged_Frame_Loaded", s[s.Client_Unique_Frame_Subscribe = 14] = "Client_Unique_Frame_Subscribe", s[s.Client_Tagged_Frame_Subscribe = 15] = "Client_Tagged_Frame_Subscribe", s[s.Client_Unique_Frame_Unsubscribe = 16] = "Client_Unique_Frame_Unsubscribe", s[s.Client_Tagged_Frame_Unsubscribe = 17] = "Client_Tagged_Frame_Unsubscribe", s[s.Client_Unique_Value_Request = 18] = "Client_Unique_Value_Request", s[s.Client_Tagged_Value_Request = 19] = "Client_Tagged_Value_Request", s[s.Server_Unique_Value_Response = 20] = "Server_Unique_Value_Response", s[s.Server_Tagged_Value_Response = 21] = "Server_Tagged_Value_Response", s[s.Unique_Value_Update = 22] = "Unique_Value_Update", s[s.Tagged_Value_Update = 23] = "Tagged_Value_Update", s[s.Client_Unique_Signal_Request = 24] = "Client_Unique_Signal_Request", s[s.Client_Tagged_Signal_Request = 25] = "Client_Tagged_Signal_Request", s[s.Server_Unique_Signal_Response = 26] = "Server_Unique_Signal_Response", s[s.Server_Tagged_Signal_Response = 27] = "Server_Tagged_Signal_Response", s[s.Client_Unique_Signal_Notify = 28] = "Client_Unique_Signal_Notify", s[s.Client_Tagged_Signal_Notify = 29] = "Client_Tagged_Signal_Notify";
847
- })(_ || (_ = {}));
848
- var T;
849
- (function(s) {
850
- s[s.None = 0] = "None", s[s.Boolean = 1] = "Boolean", s[s.Number = 2] = "Number", s[s.Double = 3] = "Double", s[s.String = 4] = "String", s[s.Buffer = 5] = "Buffer";
851
- })(T || (T = {}));
852
- class j {
844
+ var u;
845
+ (function(i) {
846
+ 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_File_Response = 2] = "Server_Unique_FrameInfo_File_Response", i[i.Server_Tagged_FrameInfo_File_Response = 3] = "Server_Tagged_FrameInfo_File_Response", i[i.Server_Unique_FrameInfo_Content_Response = 4] = "Server_Unique_FrameInfo_Content_Response", i[i.Server_Tagged_FrameInfo_Content_Response = 5] = "Server_Tagged_FrameInfo_Content_Response", i[i.Client_File_Request = 6] = "Client_File_Request", i[i.Server_File_Response = 7] = "Server_File_Response", i[i.Client_File_Alias_Request = 8] = "Client_File_Alias_Request", i[i.Server_File_Alias_Response = 9] = "Server_File_Alias_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";
847
+ })(u || (u = {}));
848
+ class x {
853
849
  constructor() {
854
- n(this, "bb", null);
855
- n(this, "bb_pos", 0);
850
+ a(this, "bb", null);
851
+ a(this, "bb_pos", 0);
856
852
  }
857
853
  __init(t, e) {
858
854
  return this.bb_pos = t, this.bb = e, this;
859
855
  }
860
856
  static getRootAsSignal(t, e) {
861
- return (e || new j()).__init(t.readInt32(t.position()) + t.position(), t);
857
+ return (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
862
858
  }
863
859
  static getSizePrefixedRootAsSignal(t, e) {
864
- return t.setPosition(t.position() + f), (e || new j()).__init(t.readInt32(t.position()) + t.position(), t);
860
+ return t.setPosition(t.position() + f), (e || new x()).__init(t.readInt32(t.position()) + t.position(), t);
865
861
  }
866
862
  id(t) {
867
863
  const e = this.bb.__offset(this.bb_pos, 4);
868
864
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
869
865
  }
870
- type() {
871
- const t = this.bb.__offset(this.bb_pos, 6);
872
- return t ? this.bb.readInt32(this.bb_pos + t) : T.None;
873
- }
874
866
  static startSignal(t) {
875
- t.startObject(2);
867
+ t.startObject(1);
876
868
  }
877
869
  static addId(t, e) {
878
870
  t.addFieldOffset(0, e, 0);
879
871
  }
880
- static addType(t, e) {
881
- t.addFieldInt32(1, e, T.None);
882
- }
883
872
  static endSignal(t) {
884
873
  const e = t.endObject();
885
874
  return t.requiredField(e, 4), e;
886
875
  }
887
- static createSignal(t, e, i) {
888
- return j.startSignal(t), j.addId(t, e), j.addType(t, i), j.endSignal(t);
876
+ static createSignal(t, e) {
877
+ return x.startSignal(t), x.addId(t, e), x.endSignal(t);
889
878
  }
890
879
  unpack() {
891
- return new le(this.id(), this.type());
880
+ return new Xt(this.id());
892
881
  }
893
882
  unpackTo(t) {
894
- t.id = this.id(), t.type = this.type();
883
+ t.id = this.id();
895
884
  }
896
885
  }
897
- class le {
898
- constructor(t = null, e = T.None) {
899
- n(this, "id");
900
- n(this, "type");
901
- this.id = t, this.type = e;
886
+ class Xt {
887
+ constructor(t = null) {
888
+ a(this, "id");
889
+ this.id = t;
902
890
  }
903
891
  pack(t) {
904
892
  const e = this.id !== null ? t.createString(this.id) : 0;
905
- return j.createSignal(t, e, this.type);
893
+ return x.createSignal(t, e);
906
894
  }
907
895
  }
908
- class Y {
896
+ class D {
909
897
  constructor() {
910
- n(this, "bb", null);
911
- n(this, "bb_pos", 0);
898
+ a(this, "bb", null);
899
+ a(this, "bb_pos", 0);
912
900
  }
913
901
  __init(t, e) {
914
902
  return this.bb_pos = t, this.bb = e, this;
915
903
  }
916
904
  static getRootAsTaggedFrameLoaded(t, e) {
917
- return (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
905
+ return (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
918
906
  }
919
907
  static getSizePrefixedRootAsTaggedFrameLoaded(t, e) {
920
- return t.setPosition(t.position() + f), (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
908
+ return t.setPosition(t.position() + f), (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
921
909
  }
922
910
  id(t) {
923
911
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -940,40 +928,40 @@ class Y {
940
928
  const e = t.endObject();
941
929
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
942
930
  }
943
- static createTaggedFrameLoaded(t, e, i) {
944
- return Y.startTaggedFrameLoaded(t), Y.addId(t, e), Y.addTag(t, i), Y.endTaggedFrameLoaded(t);
931
+ static createTaggedFrameLoaded(t, e, s) {
932
+ return D.startTaggedFrameLoaded(t), D.addId(t, e), D.addTag(t, s), D.endTaggedFrameLoaded(t);
945
933
  }
946
934
  unpack() {
947
- return new Ot(this.id(), this.tag());
935
+ return new gt(this.id(), this.tag());
948
936
  }
949
937
  unpackTo(t) {
950
938
  t.id = this.id(), t.tag = this.tag();
951
939
  }
952
940
  }
953
- class Ot {
941
+ class gt {
954
942
  constructor(t = null, e = null) {
955
- n(this, "id");
956
- n(this, "tag");
943
+ a(this, "id");
944
+ a(this, "tag");
957
945
  this.id = t, this.tag = e;
958
946
  }
959
947
  pack(t) {
960
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
961
- return Y.createTaggedFrameLoaded(t, e, i);
948
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
949
+ return D.createTaggedFrameLoaded(t, e, s);
962
950
  }
963
951
  }
964
- class Z {
952
+ class G {
965
953
  constructor() {
966
- n(this, "bb", null);
967
- n(this, "bb_pos", 0);
954
+ a(this, "bb", null);
955
+ a(this, "bb_pos", 0);
968
956
  }
969
957
  __init(t, e) {
970
958
  return this.bb_pos = t, this.bb = e, this;
971
959
  }
972
960
  static getRootAsTaggedFrameSubscribe(t, e) {
973
- return (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
961
+ return (e || new G()).__init(t.readInt32(t.position()) + t.position(), t);
974
962
  }
975
963
  static getSizePrefixedRootAsTaggedFrameSubscribe(t, e) {
976
- return t.setPosition(t.position() + f), (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
964
+ return t.setPosition(t.position() + f), (e || new G()).__init(t.readInt32(t.position()) + t.position(), t);
977
965
  }
978
966
  id(t) {
979
967
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -996,311 +984,40 @@ class Z {
996
984
  const e = t.endObject();
997
985
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
998
986
  }
999
- static createTaggedFrameSubscribe(t, e, i) {
1000
- return Z.startTaggedFrameSubscribe(t), Z.addId(t, e), Z.addTag(t, i), Z.endTaggedFrameSubscribe(t);
987
+ static createTaggedFrameSubscribe(t, e, s) {
988
+ return G.startTaggedFrameSubscribe(t), G.addId(t, e), G.addTag(t, s), G.endTaggedFrameSubscribe(t);
1001
989
  }
1002
990
  unpack() {
1003
- return new qt(this.id(), this.tag());
991
+ return new pt(this.id(), this.tag());
1004
992
  }
1005
993
  unpackTo(t) {
1006
994
  t.id = this.id(), t.tag = this.tag();
1007
995
  }
1008
996
  }
1009
- class qt {
997
+ class pt {
1010
998
  constructor(t = null, e = null) {
1011
- n(this, "id");
1012
- n(this, "tag");
999
+ a(this, "id");
1000
+ a(this, "tag");
1013
1001
  this.id = t, this.tag = e;
1014
1002
  }
1015
1003
  pack(t) {
1016
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
1017
- return Z.createTaggedFrameSubscribe(t, e, i);
1018
- }
1019
- }
1020
- class J {
1021
- constructor() {
1022
- n(this, "bb", null);
1023
- n(this, "bb_pos", 0);
1024
- }
1025
- __init(t, e) {
1026
- return this.bb_pos = t, this.bb = e, this;
1027
- }
1028
- static getRootAsValueBoolean(t, e) {
1029
- return (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1030
- }
1031
- static getSizePrefixedRootAsValueBoolean(t, e) {
1032
- return t.setPosition(t.position() + f), (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
1033
- }
1034
- value() {
1035
- const t = this.bb.__offset(this.bb_pos, 4);
1036
- return t ? !!this.bb.readInt8(this.bb_pos + t) : !1;
1037
- }
1038
- static startValueBoolean(t) {
1039
- t.startObject(1);
1040
- }
1041
- static addValue(t, e) {
1042
- t.addFieldInt8(0, +e, 0);
1043
- }
1044
- static endValueBoolean(t) {
1045
- return t.endObject();
1046
- }
1047
- static createValueBoolean(t, e) {
1048
- return J.startValueBoolean(t), J.addValue(t, e), J.endValueBoolean(t);
1049
- }
1050
- unpack() {
1051
- return new Lt(this.value());
1052
- }
1053
- unpackTo(t) {
1054
- t.value = this.value();
1055
- }
1056
- }
1057
- class Lt {
1058
- constructor(t = !1) {
1059
- n(this, "value");
1060
- this.value = t;
1061
- }
1062
- pack(t) {
1063
- return J.createValueBoolean(t, this.value);
1004
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1005
+ return G.createTaggedFrameSubscribe(t, e, s);
1064
1006
  }
1065
1007
  }
1066
- class z {
1067
- constructor() {
1068
- n(this, "bb", null);
1069
- n(this, "bb_pos", 0);
1070
- }
1071
- __init(t, e) {
1072
- return this.bb_pos = t, this.bb = e, this;
1073
- }
1074
- static getRootAsValueBuffer(t, e) {
1075
- return (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
1076
- }
1077
- static getSizePrefixedRootAsValueBuffer(t, e) {
1078
- return t.setPosition(t.position() + f), (e || new z()).__init(t.readInt32(t.position()) + t.position(), t);
1079
- }
1080
- value(t) {
1081
- const e = this.bb.__offset(this.bb_pos, 4);
1082
- return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1083
- }
1084
- valueLength() {
1085
- const t = this.bb.__offset(this.bb_pos, 4);
1086
- return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
1087
- }
1088
- valueArray() {
1089
- const t = this.bb.__offset(this.bb_pos, 4);
1090
- return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
1091
- }
1092
- static startValueBuffer(t) {
1093
- t.startObject(1);
1094
- }
1095
- static addValue(t, e) {
1096
- t.addFieldOffset(0, e, 0);
1097
- }
1098
- static createValueVector(t, e) {
1099
- t.startVector(1, e.length, 1);
1100
- for (let i = e.length - 1; i >= 0; i--)
1101
- t.addInt8(e[i]);
1102
- return t.endVector();
1103
- }
1104
- static startValueVector(t, e) {
1105
- t.startVector(1, e, 1);
1106
- }
1107
- static endValueBuffer(t) {
1108
- return t.endObject();
1109
- }
1110
- static createValueBuffer(t, e) {
1111
- return z.startValueBuffer(t), z.addValue(t, e), z.endValueBuffer(t);
1112
- }
1113
- unpack() {
1114
- return new Pt(this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1115
- }
1116
- unpackTo(t) {
1117
- t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1118
- }
1119
- }
1120
- class Pt {
1121
- constructor(t = []) {
1122
- n(this, "value");
1123
- this.value = t;
1124
- }
1125
- pack(t) {
1126
- const e = z.createValueVector(t, this.value);
1127
- return z.createValueBuffer(t, e);
1128
- }
1129
- }
1130
- class K {
1131
- constructor() {
1132
- n(this, "bb", null);
1133
- n(this, "bb_pos", 0);
1134
- }
1135
- __init(t, e) {
1136
- return this.bb_pos = t, this.bb = e, this;
1137
- }
1138
- static getRootAsValueDouble(t, e) {
1139
- return (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
1140
- }
1141
- static getSizePrefixedRootAsValueDouble(t, e) {
1142
- return t.setPosition(t.position() + f), (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
1143
- }
1144
- value() {
1145
- const t = this.bb.__offset(this.bb_pos, 4);
1146
- return t ? this.bb.readFloat64(this.bb_pos + t) : 0;
1147
- }
1148
- static startValueDouble(t) {
1149
- t.startObject(1);
1150
- }
1151
- static addValue(t, e) {
1152
- t.addFieldFloat64(0, e, 0);
1153
- }
1154
- static endValueDouble(t) {
1155
- return t.endObject();
1156
- }
1157
- static createValueDouble(t, e) {
1158
- return K.startValueDouble(t), K.addValue(t, e), K.endValueDouble(t);
1159
- }
1160
- unpack() {
1161
- return new xt(this.value());
1162
- }
1163
- unpackTo(t) {
1164
- t.value = this.value();
1165
- }
1166
- }
1167
- class xt {
1168
- constructor(t = 0) {
1169
- n(this, "value");
1170
- this.value = t;
1171
- }
1172
- pack(t) {
1173
- return K.createValueDouble(t, this.value);
1174
- }
1175
- }
1176
- class Q {
1177
- constructor() {
1178
- n(this, "bb", null);
1179
- n(this, "bb_pos", 0);
1180
- }
1181
- __init(t, e) {
1182
- return this.bb_pos = t, this.bb = e, this;
1183
- }
1184
- static getRootAsValueNumber(t, e) {
1185
- return (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1186
- }
1187
- static getSizePrefixedRootAsValueNumber(t, e) {
1188
- return t.setPosition(t.position() + f), (e || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
1189
- }
1190
- value() {
1191
- const t = this.bb.__offset(this.bb_pos, 4);
1192
- return t ? this.bb.readInt64(this.bb_pos + t) : BigInt("0");
1193
- }
1194
- static startValueNumber(t) {
1195
- t.startObject(1);
1196
- }
1197
- static addValue(t, e) {
1198
- t.addFieldInt64(0, e, BigInt("0"));
1199
- }
1200
- static endValueNumber(t) {
1201
- return t.endObject();
1202
- }
1203
- static createValueNumber(t, e) {
1204
- return Q.startValueNumber(t), Q.addValue(t, e), Q.endValueNumber(t);
1205
- }
1206
- unpack() {
1207
- return new Et(this.value());
1208
- }
1209
- unpackTo(t) {
1210
- t.value = this.value();
1211
- }
1212
- }
1213
- class Et {
1214
- constructor(t = BigInt("0")) {
1215
- n(this, "value");
1216
- this.value = t;
1217
- }
1218
- pack(t) {
1219
- return Q.createValueNumber(t, this.value);
1220
- }
1221
- }
1222
- class M {
1223
- constructor() {
1224
- n(this, "bb", null);
1225
- n(this, "bb_pos", 0);
1226
- }
1227
- __init(t, e) {
1228
- return this.bb_pos = t, this.bb = e, this;
1229
- }
1230
- static getRootAsValueString(t, e) {
1231
- return (e || new M()).__init(t.readInt32(t.position()) + t.position(), t);
1232
- }
1233
- static getSizePrefixedRootAsValueString(t, e) {
1234
- return t.setPosition(t.position() + f), (e || new M()).__init(t.readInt32(t.position()) + t.position(), t);
1235
- }
1236
- value(t) {
1237
- const e = this.bb.__offset(this.bb_pos, 4);
1238
- return e ? this.bb.__string(this.bb_pos + e, t) : null;
1239
- }
1240
- static startValueString(t) {
1241
- t.startObject(1);
1242
- }
1243
- static addValue(t, e) {
1244
- t.addFieldOffset(0, e, 0);
1245
- }
1246
- static endValueString(t) {
1247
- return t.endObject();
1248
- }
1249
- static createValueString(t, e) {
1250
- return M.startValueString(t), M.addValue(t, e), M.endValueString(t);
1251
- }
1252
- unpack() {
1253
- return new zt(this.value());
1254
- }
1255
- unpackTo(t) {
1256
- t.value = this.value();
1257
- }
1258
- }
1259
- class zt {
1260
- constructor(t = null) {
1261
- n(this, "value");
1262
- this.value = t;
1263
- }
1264
- pack(t) {
1265
- const e = this.value !== null ? t.createString(this.value) : 0;
1266
- return M.createValueString(t, e);
1267
- }
1268
- }
1269
- var l;
1270
- (function(s) {
1271
- s[s.NONE = 0] = "NONE", s[s.ValueBoolean = 1] = "ValueBoolean", s[s.ValueNumber = 2] = "ValueNumber", s[s.ValueDouble = 3] = "ValueDouble", s[s.ValueString = 4] = "ValueString", s[s.ValueBuffer = 5] = "ValueBuffer";
1272
- })(l || (l = {}));
1273
- function ut(s, t) {
1274
- switch (l[s]) {
1275
- case "NONE":
1276
- return null;
1277
- case "ValueBoolean":
1278
- return t(new J());
1279
- case "ValueNumber":
1280
- return t(new Q());
1281
- case "ValueDouble":
1282
- return t(new K());
1283
- case "ValueString":
1284
- return t(new M());
1285
- case "ValueBuffer":
1286
- return t(new z());
1287
- default:
1288
- return null;
1289
- }
1290
- }
1291
- class U {
1008
+ class q {
1292
1009
  constructor() {
1293
- n(this, "bb", null);
1294
- n(this, "bb_pos", 0);
1010
+ a(this, "bb", null);
1011
+ a(this, "bb_pos", 0);
1295
1012
  }
1296
1013
  __init(t, e) {
1297
1014
  return this.bb_pos = t, this.bb = e, this;
1298
1015
  }
1299
1016
  static getRootAsTaggedSignalNotify(t, e) {
1300
- return (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1017
+ return (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1301
1018
  }
1302
1019
  static getSizePrefixedRootAsTaggedSignalNotify(t, e) {
1303
- return t.setPosition(t.position() + f), (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1020
+ return t.setPosition(t.position() + f), (e || new q()).__init(t.readInt32(t.position()) + t.position(), t);
1304
1021
  }
1305
1022
  frameId(t) {
1306
1023
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1314,16 +1031,20 @@ class U {
1314
1031
  const e = this.bb.__offset(this.bb_pos, 8);
1315
1032
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
1316
1033
  }
1317
- valueType() {
1034
+ value(t) {
1035
+ const e = this.bb.__offset(this.bb_pos, 10);
1036
+ return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1037
+ }
1038
+ valueLength() {
1318
1039
  const t = this.bb.__offset(this.bb_pos, 10);
1319
- return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
1040
+ return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
1320
1041
  }
1321
- value(t) {
1322
- const e = this.bb.__offset(this.bb_pos, 12);
1323
- return e ? this.bb.__union(t, this.bb_pos + e) : null;
1042
+ valueArray() {
1043
+ const t = this.bb.__offset(this.bb_pos, 10);
1044
+ return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
1324
1045
  }
1325
1046
  static startTaggedSignalNotify(t) {
1326
- t.startObject(5);
1047
+ t.startObject(4);
1327
1048
  }
1328
1049
  static addFrameId(t, e) {
1329
1050
  t.addFieldOffset(0, e, 0);
@@ -1334,59 +1055,58 @@ class U {
1334
1055
  static addSignalId(t, e) {
1335
1056
  t.addFieldOffset(2, e, 0);
1336
1057
  }
1337
- static addValueType(t, e) {
1338
- t.addFieldInt8(3, e, l.NONE);
1339
- }
1340
1058
  static addValue(t, e) {
1341
- t.addFieldOffset(4, e, 0);
1059
+ t.addFieldOffset(3, e, 0);
1060
+ }
1061
+ static createValueVector(t, e) {
1062
+ t.startVector(1, e.length, 1);
1063
+ for (let s = e.length - 1; s >= 0; s--)
1064
+ t.addInt8(e[s]);
1065
+ return t.endVector();
1066
+ }
1067
+ static startValueVector(t, e) {
1068
+ t.startVector(1, e, 1);
1342
1069
  }
1343
1070
  static endTaggedSignalNotify(t) {
1344
1071
  const e = t.endObject();
1345
1072
  return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1346
1073
  }
1347
- static createTaggedSignalNotify(t, e, i, a, r, o) {
1348
- return U.startTaggedSignalNotify(t), U.addFrameId(t, e), U.addTag(t, i), U.addSignalId(t, a), U.addValueType(t, r), U.addValue(t, o), U.endTaggedSignalNotify(t);
1074
+ static createTaggedSignalNotify(t, e, s, n, r) {
1075
+ return q.startTaggedSignalNotify(t), q.addFrameId(t, e), q.addTag(t, s), q.addSignalId(t, n), q.addValue(t, r), q.endTaggedSignalNotify(t);
1349
1076
  }
1350
1077
  unpack() {
1351
- return new Dt(this.frameId(), this.tag(), this.signalId(), this.valueType(), (() => {
1352
- const t = ut(this.valueType(), this.value.bind(this));
1353
- return t === null ? null : t.unpack();
1354
- })());
1078
+ return new Rt(this.frameId(), this.tag(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1355
1079
  }
1356
1080
  unpackTo(t) {
1357
- t.frameId = this.frameId(), t.tag = this.tag(), t.signalId = this.signalId(), t.valueType = this.valueType(), t.value = (() => {
1358
- const e = ut(this.valueType(), this.value.bind(this));
1359
- return e === null ? null : e.unpack();
1360
- })();
1081
+ t.frameId = this.frameId(), t.tag = this.tag(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1361
1082
  }
1362
1083
  }
1363
- class Dt {
1364
- constructor(t = null, e = null, i = null, a = l.NONE, r = null) {
1365
- n(this, "frameId");
1366
- n(this, "tag");
1367
- n(this, "signalId");
1368
- n(this, "valueType");
1369
- n(this, "value");
1370
- this.frameId = t, this.tag = e, this.signalId = i, this.valueType = a, this.value = r;
1084
+ class Rt {
1085
+ constructor(t = null, e = null, s = null, n = []) {
1086
+ a(this, "frameId");
1087
+ a(this, "tag");
1088
+ a(this, "signalId");
1089
+ a(this, "value");
1090
+ this.frameId = t, this.tag = e, this.signalId = s, this.value = n;
1371
1091
  }
1372
1092
  pack(t) {
1373
- const e = this.frameId !== null ? t.createString(this.frameId) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = this.signalId !== null ? t.createString(this.signalId) : 0, r = t.createObjectOffset(this.value);
1374
- return U.createTaggedSignalNotify(t, e, i, a, this.valueType, r);
1093
+ const e = this.frameId !== null ? t.createString(this.frameId) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = this.signalId !== null ? t.createString(this.signalId) : 0, r = q.createValueVector(t, this.value);
1094
+ return q.createTaggedSignalNotify(t, e, s, n, r);
1375
1095
  }
1376
1096
  }
1377
- class X {
1097
+ class W {
1378
1098
  constructor() {
1379
- n(this, "bb", null);
1380
- n(this, "bb_pos", 0);
1099
+ a(this, "bb", null);
1100
+ a(this, "bb_pos", 0);
1381
1101
  }
1382
1102
  __init(t, e) {
1383
1103
  return this.bb_pos = t, this.bb = e, this;
1384
1104
  }
1385
1105
  static getRootAsTaggedSignalRequest(t, e) {
1386
- return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1106
+ return (e || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1387
1107
  }
1388
1108
  static getSizePrefixedRootAsTaggedSignalRequest(t, e) {
1389
- return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1109
+ return t.setPosition(t.position() + f), (e || new W()).__init(t.readInt32(t.position()) + t.position(), t);
1390
1110
  }
1391
1111
  id(t) {
1392
1112
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1409,40 +1129,40 @@ class X {
1409
1129
  const e = t.endObject();
1410
1130
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
1411
1131
  }
1412
- static createTaggedSignalRequest(t, e, i) {
1413
- return X.startTaggedSignalRequest(t), X.addId(t, e), X.addTag(t, i), X.endTaggedSignalRequest(t);
1132
+ static createTaggedSignalRequest(t, e, s) {
1133
+ return W.startTaggedSignalRequest(t), W.addId(t, e), W.addTag(t, s), W.endTaggedSignalRequest(t);
1414
1134
  }
1415
1135
  unpack() {
1416
- return new Gt(this.id(), this.tag());
1136
+ return new Tt(this.id(), this.tag());
1417
1137
  }
1418
1138
  unpackTo(t) {
1419
1139
  t.id = this.id(), t.tag = this.tag();
1420
1140
  }
1421
1141
  }
1422
- class Gt {
1142
+ class Tt {
1423
1143
  constructor(t = null, e = null) {
1424
- n(this, "id");
1425
- n(this, "tag");
1144
+ a(this, "id");
1145
+ a(this, "tag");
1426
1146
  this.id = t, this.tag = e;
1427
1147
  }
1428
1148
  pack(t) {
1429
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
1430
- return X.createTaggedSignalRequest(t, e, i);
1149
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1150
+ return W.createTaggedSignalRequest(t, e, s);
1431
1151
  }
1432
1152
  }
1433
- class R {
1153
+ class U {
1434
1154
  constructor() {
1435
- n(this, "bb", null);
1436
- n(this, "bb_pos", 0);
1155
+ a(this, "bb", null);
1156
+ a(this, "bb_pos", 0);
1437
1157
  }
1438
1158
  __init(t, e) {
1439
1159
  return this.bb_pos = t, this.bb = e, this;
1440
1160
  }
1441
1161
  static getRootAsTaggedSignalResponse(t, e) {
1442
- return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1162
+ return (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1443
1163
  }
1444
1164
  static getSizePrefixedRootAsTaggedSignalResponse(t, e) {
1445
- return t.setPosition(t.position() + f), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1165
+ return t.setPosition(t.position() + f), (e || new U()).__init(t.readInt32(t.position()) + t.position(), t);
1446
1166
  }
1447
1167
  id(t) {
1448
1168
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1453,8 +1173,8 @@ class R {
1453
1173
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
1454
1174
  }
1455
1175
  signals(t, e) {
1456
- const i = this.bb.__offset(this.bb_pos, 8);
1457
- return i ? (e || new j()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
1176
+ const s = this.bb.__offset(this.bb_pos, 8);
1177
+ return s ? (e || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1458
1178
  }
1459
1179
  signalsLength() {
1460
1180
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1474,8 +1194,8 @@ class R {
1474
1194
  }
1475
1195
  static createSignalsVector(t, e) {
1476
1196
  t.startVector(4, e.length, 4);
1477
- for (let i = e.length - 1; i >= 0; i--)
1478
- t.addOffset(e[i]);
1197
+ for (let s = e.length - 1; s >= 0; s--)
1198
+ t.addOffset(e[s]);
1479
1199
  return t.endVector();
1480
1200
  }
1481
1201
  static startSignalsVector(t, e) {
@@ -1485,41 +1205,41 @@ class R {
1485
1205
  const e = t.endObject();
1486
1206
  return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1487
1207
  }
1488
- static createTaggedSignalResponse(t, e, i, a) {
1489
- return R.startTaggedSignalResponse(t), R.addId(t, e), R.addTag(t, i), R.addSignals(t, a), R.endTaggedSignalResponse(t);
1208
+ static createTaggedSignalResponse(t, e, s, n) {
1209
+ return U.startTaggedSignalResponse(t), U.addId(t, e), U.addTag(t, s), U.addSignals(t, n), U.endTaggedSignalResponse(t);
1490
1210
  }
1491
1211
  unpack() {
1492
- return new ce(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1212
+ return new $t(this.id(), this.tag(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1493
1213
  }
1494
1214
  unpackTo(t) {
1495
1215
  t.id = this.id(), t.tag = this.tag(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
1496
1216
  }
1497
1217
  }
1498
- class ce {
1499
- constructor(t = null, e = null, i = []) {
1500
- n(this, "id");
1501
- n(this, "tag");
1502
- n(this, "signals");
1503
- this.id = t, this.tag = e, this.signals = i;
1218
+ class $t {
1219
+ constructor(t = null, e = null, s = []) {
1220
+ a(this, "id");
1221
+ a(this, "tag");
1222
+ a(this, "signals");
1223
+ this.id = t, this.tag = e, this.signals = s;
1504
1224
  }
1505
1225
  pack(t) {
1506
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = R.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1507
- return R.createTaggedSignalResponse(t, e, i, a);
1226
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = U.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1227
+ return U.createTaggedSignalResponse(t, e, s, n);
1508
1228
  }
1509
1229
  }
1510
- class $ {
1230
+ class H {
1511
1231
  constructor() {
1512
- n(this, "bb", null);
1513
- n(this, "bb_pos", 0);
1232
+ a(this, "bb", null);
1233
+ a(this, "bb_pos", 0);
1514
1234
  }
1515
1235
  __init(t, e) {
1516
1236
  return this.bb_pos = t, this.bb = e, this;
1517
1237
  }
1518
1238
  static getRootAsTaggedValueRequest(t, e) {
1519
- return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1239
+ return (e || new H()).__init(t.readInt32(t.position()) + t.position(), t);
1520
1240
  }
1521
1241
  static getSizePrefixedRootAsTaggedValueRequest(t, e) {
1522
- return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1242
+ return t.setPosition(t.position() + f), (e || new H()).__init(t.readInt32(t.position()) + t.position(), t);
1523
1243
  }
1524
1244
  id(t) {
1525
1245
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1542,110 +1262,113 @@ class $ {
1542
1262
  const e = t.endObject();
1543
1263
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
1544
1264
  }
1545
- static createTaggedValueRequest(t, e, i) {
1546
- return $.startTaggedValueRequest(t), $.addId(t, e), $.addTag(t, i), $.endTaggedValueRequest(t);
1265
+ static createTaggedValueRequest(t, e, s) {
1266
+ return H.startTaggedValueRequest(t), H.addId(t, e), H.addTag(t, s), H.endTaggedValueRequest(t);
1547
1267
  }
1548
1268
  unpack() {
1549
- return new Wt(this.id(), this.tag());
1269
+ return new kt(this.id(), this.tag());
1550
1270
  }
1551
1271
  unpackTo(t) {
1552
1272
  t.id = this.id(), t.tag = this.tag();
1553
1273
  }
1554
1274
  }
1555
- class Wt {
1275
+ class kt {
1556
1276
  constructor(t = null, e = null) {
1557
- n(this, "id");
1558
- n(this, "tag");
1277
+ a(this, "id");
1278
+ a(this, "tag");
1559
1279
  this.id = t, this.tag = e;
1560
1280
  }
1561
1281
  pack(t) {
1562
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0;
1563
- return $.createTaggedValueRequest(t, e, i);
1282
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0;
1283
+ return H.createTaggedValueRequest(t, e, s);
1564
1284
  }
1565
1285
  }
1566
- class S {
1286
+ class v {
1567
1287
  constructor() {
1568
- n(this, "bb", null);
1569
- n(this, "bb_pos", 0);
1288
+ a(this, "bb", null);
1289
+ a(this, "bb_pos", 0);
1570
1290
  }
1571
1291
  __init(t, e) {
1572
1292
  return this.bb_pos = t, this.bb = e, this;
1573
1293
  }
1574
1294
  static getRootAsValue(t, e) {
1575
- return (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
1295
+ return (e || new v()).__init(t.readInt32(t.position()) + t.position(), t);
1576
1296
  }
1577
1297
  static getSizePrefixedRootAsValue(t, e) {
1578
- return t.setPosition(t.position() + f), (e || new S()).__init(t.readInt32(t.position()) + t.position(), t);
1298
+ return t.setPosition(t.position() + f), (e || new v()).__init(t.readInt32(t.position()) + t.position(), t);
1579
1299
  }
1580
1300
  id(t) {
1581
1301
  const e = this.bb.__offset(this.bb_pos, 4);
1582
1302
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
1583
1303
  }
1584
- valueType() {
1304
+ value(t) {
1305
+ const e = this.bb.__offset(this.bb_pos, 6);
1306
+ return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1307
+ }
1308
+ valueLength() {
1585
1309
  const t = this.bb.__offset(this.bb_pos, 6);
1586
- return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
1310
+ return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
1587
1311
  }
1588
- value(t) {
1589
- const e = this.bb.__offset(this.bb_pos, 8);
1590
- return e ? this.bb.__union(t, this.bb_pos + e) : null;
1312
+ valueArray() {
1313
+ const t = this.bb.__offset(this.bb_pos, 6);
1314
+ return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
1591
1315
  }
1592
1316
  static startValue(t) {
1593
- t.startObject(3);
1317
+ t.startObject(2);
1594
1318
  }
1595
1319
  static addId(t, e) {
1596
1320
  t.addFieldOffset(0, e, 0);
1597
1321
  }
1598
- static addValueType(t, e) {
1599
- t.addFieldInt8(1, e, l.NONE);
1600
- }
1601
1322
  static addValue(t, e) {
1602
- t.addFieldOffset(2, e, 0);
1323
+ t.addFieldOffset(1, e, 0);
1324
+ }
1325
+ static createValueVector(t, e) {
1326
+ t.startVector(1, e.length, 1);
1327
+ for (let s = e.length - 1; s >= 0; s--)
1328
+ t.addInt8(e[s]);
1329
+ return t.endVector();
1330
+ }
1331
+ static startValueVector(t, e) {
1332
+ t.startVector(1, e, 1);
1603
1333
  }
1604
1334
  static endValue(t) {
1605
1335
  const e = t.endObject();
1606
- return t.requiredField(e, 4), t.requiredField(e, 8), e;
1336
+ return t.requiredField(e, 4), t.requiredField(e, 6), e;
1607
1337
  }
1608
- static createValue(t, e, i, a) {
1609
- return S.startValue(t), S.addId(t, e), S.addValueType(t, i), S.addValue(t, a), S.endValue(t);
1338
+ static createValue(t, e, s) {
1339
+ return v.startValue(t), v.addId(t, e), v.addValue(t, s), v.endValue(t);
1610
1340
  }
1611
1341
  unpack() {
1612
- return new Ht(this.id(), this.valueType(), (() => {
1613
- const t = ut(this.valueType(), this.value.bind(this));
1614
- return t === null ? null : t.unpack();
1615
- })());
1342
+ return new At(this.id(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1616
1343
  }
1617
1344
  unpackTo(t) {
1618
- t.id = this.id(), t.valueType = this.valueType(), t.value = (() => {
1619
- const e = ut(this.valueType(), this.value.bind(this));
1620
- return e === null ? null : e.unpack();
1621
- })();
1345
+ t.id = this.id(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1622
1346
  }
1623
1347
  }
1624
- class Ht {
1625
- constructor(t = null, e = l.NONE, i = null) {
1626
- n(this, "id");
1627
- n(this, "valueType");
1628
- n(this, "value");
1629
- this.id = t, this.valueType = e, this.value = i;
1348
+ class At {
1349
+ constructor(t = null, e = []) {
1350
+ a(this, "id");
1351
+ a(this, "value");
1352
+ this.id = t, this.value = e;
1630
1353
  }
1631
1354
  pack(t) {
1632
- const e = this.id !== null ? t.createString(this.id) : 0, i = t.createObjectOffset(this.value);
1633
- return S.createValue(t, e, this.valueType, i);
1355
+ const e = this.id !== null ? t.createString(this.id) : 0, s = v.createValueVector(t, this.value);
1356
+ return v.createValue(t, e, s);
1634
1357
  }
1635
1358
  }
1636
- class k {
1359
+ class V {
1637
1360
  constructor() {
1638
- n(this, "bb", null);
1639
- n(this, "bb_pos", 0);
1361
+ a(this, "bb", null);
1362
+ a(this, "bb_pos", 0);
1640
1363
  }
1641
1364
  __init(t, e) {
1642
1365
  return this.bb_pos = t, this.bb = e, this;
1643
1366
  }
1644
1367
  static getRootAsTaggedValueResponse(t, e) {
1645
- return (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1368
+ return (e || new V()).__init(t.readInt32(t.position()) + t.position(), t);
1646
1369
  }
1647
1370
  static getSizePrefixedRootAsTaggedValueResponse(t, e) {
1648
- return t.setPosition(t.position() + f), (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
1371
+ return t.setPosition(t.position() + f), (e || new V()).__init(t.readInt32(t.position()) + t.position(), t);
1649
1372
  }
1650
1373
  id(t) {
1651
1374
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1656,8 +1379,8 @@ class k {
1656
1379
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
1657
1380
  }
1658
1381
  values(t, e) {
1659
- const i = this.bb.__offset(this.bb_pos, 8);
1660
- return i ? (e || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
1382
+ const s = this.bb.__offset(this.bb_pos, 8);
1383
+ return s ? (e || new v()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
1661
1384
  }
1662
1385
  valuesLength() {
1663
1386
  const t = this.bb.__offset(this.bb_pos, 8);
@@ -1677,8 +1400,8 @@ class k {
1677
1400
  }
1678
1401
  static createValuesVector(t, e) {
1679
1402
  t.startVector(4, e.length, 4);
1680
- for (let i = e.length - 1; i >= 0; i--)
1681
- t.addOffset(e[i]);
1403
+ for (let s = e.length - 1; s >= 0; s--)
1404
+ t.addOffset(e[s]);
1682
1405
  return t.endVector();
1683
1406
  }
1684
1407
  static startValuesVector(t, e) {
@@ -1688,41 +1411,41 @@ class k {
1688
1411
  const e = t.endObject();
1689
1412
  return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1690
1413
  }
1691
- static createTaggedValueResponse(t, e, i, a) {
1692
- return k.startTaggedValueResponse(t), k.addId(t, e), k.addTag(t, i), k.addValues(t, a), k.endTaggedValueResponse(t);
1414
+ static createTaggedValueResponse(t, e, s, n) {
1415
+ return V.startTaggedValueResponse(t), V.addId(t, e), V.addTag(t, s), V.addValues(t, n), V.endTaggedValueResponse(t);
1693
1416
  }
1694
1417
  unpack() {
1695
- return new ue(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
1418
+ return new Jt(this.id(), this.tag(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
1696
1419
  }
1697
1420
  unpackTo(t) {
1698
1421
  t.id = this.id(), t.tag = this.tag(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
1699
1422
  }
1700
1423
  }
1701
- class ue {
1702
- constructor(t = null, e = null, i = []) {
1703
- n(this, "id");
1704
- n(this, "tag");
1705
- n(this, "values");
1706
- this.id = t, this.tag = e, this.values = i;
1424
+ class Jt {
1425
+ constructor(t = null, e = null, s = []) {
1426
+ a(this, "id");
1427
+ a(this, "tag");
1428
+ a(this, "values");
1429
+ this.id = t, this.tag = e, this.values = s;
1707
1430
  }
1708
1431
  pack(t) {
1709
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = k.createValuesVector(t, t.createObjectOffsetList(this.values));
1710
- return k.createTaggedValueResponse(t, e, i, a);
1432
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = V.createValuesVector(t, t.createObjectOffsetList(this.values));
1433
+ return V.createTaggedValueResponse(t, e, s, n);
1711
1434
  }
1712
1435
  }
1713
- class D {
1436
+ class N {
1714
1437
  constructor() {
1715
- n(this, "bb", null);
1716
- n(this, "bb_pos", 0);
1438
+ a(this, "bb", null);
1439
+ a(this, "bb_pos", 0);
1717
1440
  }
1718
1441
  __init(t, e) {
1719
1442
  return this.bb_pos = t, this.bb = e, this;
1720
1443
  }
1721
1444
  static getRootAsTaggedValueUpdate(t, e) {
1722
- return (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
1445
+ return (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1723
1446
  }
1724
1447
  static getSizePrefixedRootAsTaggedValueUpdate(t, e) {
1725
- return t.setPosition(t.position() + f), (e || new D()).__init(t.readInt32(t.position()) + t.position(), t);
1448
+ return t.setPosition(t.position() + f), (e || new N()).__init(t.readInt32(t.position()) + t.position(), t);
1726
1449
  }
1727
1450
  id(t) {
1728
1451
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1734,7 +1457,7 @@ class D {
1734
1457
  }
1735
1458
  value(t) {
1736
1459
  const e = this.bb.__offset(this.bb_pos, 8);
1737
- return e ? (t || new S()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1460
+ return e ? (t || new v()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1738
1461
  }
1739
1462
  static startTaggedValueUpdate(t) {
1740
1463
  t.startObject(3);
@@ -1753,37 +1476,37 @@ class D {
1753
1476
  return t.requiredField(e, 4), t.requiredField(e, 6), t.requiredField(e, 8), e;
1754
1477
  }
1755
1478
  unpack() {
1756
- return new Yt(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
1479
+ return new yt(this.id(), this.tag(), this.value() !== null ? this.value().unpack() : null);
1757
1480
  }
1758
1481
  unpackTo(t) {
1759
1482
  t.id = this.id(), t.tag = this.tag(), t.value = this.value() !== null ? this.value().unpack() : null;
1760
1483
  }
1761
1484
  }
1762
- class Yt {
1763
- constructor(t = null, e = null, i = null) {
1764
- n(this, "id");
1765
- n(this, "tag");
1766
- n(this, "value");
1767
- this.id = t, this.tag = e, this.value = i;
1485
+ class yt {
1486
+ constructor(t = null, e = null, s = null) {
1487
+ a(this, "id");
1488
+ a(this, "tag");
1489
+ a(this, "value");
1490
+ this.id = t, this.tag = e, this.value = s;
1768
1491
  }
1769
1492
  pack(t) {
1770
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.tag !== null ? t.createString(this.tag) : 0, a = this.value !== null ? this.value.pack(t) : 0;
1771
- return D.startTaggedValueUpdate(t), D.addId(t, e), D.addTag(t, i), D.addValue(t, a), D.endTaggedValueUpdate(t);
1493
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.tag !== null ? t.createString(this.tag) : 0, n = this.value !== null ? this.value.pack(t) : 0;
1494
+ return N.startTaggedValueUpdate(t), N.addId(t, e), N.addTag(t, s), N.addValue(t, n), N.endTaggedValueUpdate(t);
1772
1495
  }
1773
1496
  }
1774
- class st {
1497
+ class Z {
1775
1498
  constructor() {
1776
- n(this, "bb", null);
1777
- n(this, "bb_pos", 0);
1499
+ a(this, "bb", null);
1500
+ a(this, "bb_pos", 0);
1778
1501
  }
1779
1502
  __init(t, e) {
1780
1503
  return this.bb_pos = t, this.bb = e, this;
1781
1504
  }
1782
1505
  static getRootAsUniqueFrameLoaded(t, e) {
1783
- return (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
1506
+ return (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1784
1507
  }
1785
1508
  static getSizePrefixedRootAsUniqueFrameLoaded(t, e) {
1786
- return t.setPosition(t.position() + f), (e || new st()).__init(t.readInt32(t.position()) + t.position(), t);
1509
+ return t.setPosition(t.position() + f), (e || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
1787
1510
  }
1788
1511
  id(t) {
1789
1512
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1800,38 +1523,38 @@ class st {
1800
1523
  return t.requiredField(e, 4), e;
1801
1524
  }
1802
1525
  static createUniqueFrameLoaded(t, e) {
1803
- return st.startUniqueFrameLoaded(t), st.addId(t, e), st.endUniqueFrameLoaded(t);
1526
+ return Z.startUniqueFrameLoaded(t), Z.addId(t, e), Z.endUniqueFrameLoaded(t);
1804
1527
  }
1805
1528
  unpack() {
1806
- return new Tt(this.id());
1529
+ return new It(this.id());
1807
1530
  }
1808
1531
  unpackTo(t) {
1809
1532
  t.id = this.id();
1810
1533
  }
1811
1534
  }
1812
- class Tt {
1535
+ class It {
1813
1536
  constructor(t = null) {
1814
- n(this, "id");
1537
+ a(this, "id");
1815
1538
  this.id = t;
1816
1539
  }
1817
1540
  pack(t) {
1818
1541
  const e = this.id !== null ? t.createString(this.id) : 0;
1819
- return st.createUniqueFrameLoaded(t, e);
1542
+ return Z.createUniqueFrameLoaded(t, e);
1820
1543
  }
1821
1544
  }
1822
- class it {
1545
+ class X {
1823
1546
  constructor() {
1824
- n(this, "bb", null);
1825
- n(this, "bb_pos", 0);
1547
+ a(this, "bb", null);
1548
+ a(this, "bb_pos", 0);
1826
1549
  }
1827
1550
  __init(t, e) {
1828
1551
  return this.bb_pos = t, this.bb = e, this;
1829
1552
  }
1830
1553
  static getRootAsUniqueFrameSubscribe(t, e) {
1831
- return (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
1554
+ return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1832
1555
  }
1833
1556
  static getSizePrefixedRootAsUniqueFrameSubscribe(t, e) {
1834
- return t.setPosition(t.position() + f), (e || new it()).__init(t.readInt32(t.position()) + t.position(), t);
1557
+ return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
1835
1558
  }
1836
1559
  id(t) {
1837
1560
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1848,38 +1571,38 @@ class it {
1848
1571
  return t.requiredField(e, 4), e;
1849
1572
  }
1850
1573
  static createUniqueFrameSubscribe(t, e) {
1851
- return it.startUniqueFrameSubscribe(t), it.addId(t, e), it.endUniqueFrameSubscribe(t);
1574
+ return X.startUniqueFrameSubscribe(t), X.addId(t, e), X.endUniqueFrameSubscribe(t);
1852
1575
  }
1853
1576
  unpack() {
1854
- return new Ut(this.id());
1577
+ return new wt(this.id());
1855
1578
  }
1856
1579
  unpackTo(t) {
1857
1580
  t.id = this.id();
1858
1581
  }
1859
1582
  }
1860
- class Ut {
1583
+ class wt {
1861
1584
  constructor(t = null) {
1862
- n(this, "id");
1585
+ a(this, "id");
1863
1586
  this.id = t;
1864
1587
  }
1865
1588
  pack(t) {
1866
1589
  const e = this.id !== null ? t.createString(this.id) : 0;
1867
- return it.createUniqueFrameSubscribe(t, e);
1590
+ return X.createUniqueFrameSubscribe(t, e);
1868
1591
  }
1869
1592
  }
1870
- class A {
1593
+ class R {
1871
1594
  constructor() {
1872
- n(this, "bb", null);
1873
- n(this, "bb_pos", 0);
1595
+ a(this, "bb", null);
1596
+ a(this, "bb_pos", 0);
1874
1597
  }
1875
1598
  __init(t, e) {
1876
1599
  return this.bb_pos = t, this.bb = e, this;
1877
1600
  }
1878
1601
  static getRootAsUniqueSignalNotify(t, e) {
1879
- return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1602
+ return (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1880
1603
  }
1881
1604
  static getSizePrefixedRootAsUniqueSignalNotify(t, e) {
1882
- return t.setPosition(t.position() + f), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
1605
+ return t.setPosition(t.position() + f), (e || new R()).__init(t.readInt32(t.position()) + t.position(), t);
1883
1606
  }
1884
1607
  frameId(t) {
1885
1608
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1889,16 +1612,20 @@ class A {
1889
1612
  const e = this.bb.__offset(this.bb_pos, 6);
1890
1613
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
1891
1614
  }
1892
- valueType() {
1615
+ value(t) {
1616
+ const e = this.bb.__offset(this.bb_pos, 8);
1617
+ return e ? this.bb.readUint8(this.bb.__vector(this.bb_pos + e) + t) : 0;
1618
+ }
1619
+ valueLength() {
1893
1620
  const t = this.bb.__offset(this.bb_pos, 8);
1894
- return t ? this.bb.readUint8(this.bb_pos + t) : l.NONE;
1621
+ return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
1895
1622
  }
1896
- value(t) {
1897
- const e = this.bb.__offset(this.bb_pos, 10);
1898
- return e ? this.bb.__union(t, this.bb_pos + e) : null;
1623
+ valueArray() {
1624
+ const t = this.bb.__offset(this.bb_pos, 8);
1625
+ return t ? new Uint8Array(this.bb.bytes().buffer, this.bb.bytes().byteOffset + this.bb.__vector(this.bb_pos + t), this.bb.__vector_len(this.bb_pos + t)) : null;
1899
1626
  }
1900
1627
  static startUniqueSignalNotify(t) {
1901
- t.startObject(4);
1628
+ t.startObject(3);
1902
1629
  }
1903
1630
  static addFrameId(t, e) {
1904
1631
  t.addFieldOffset(0, e, 0);
@@ -1906,58 +1633,57 @@ class A {
1906
1633
  static addSignalId(t, e) {
1907
1634
  t.addFieldOffset(1, e, 0);
1908
1635
  }
1909
- static addValueType(t, e) {
1910
- t.addFieldInt8(2, e, l.NONE);
1911
- }
1912
1636
  static addValue(t, e) {
1913
- t.addFieldOffset(3, e, 0);
1637
+ t.addFieldOffset(2, e, 0);
1638
+ }
1639
+ static createValueVector(t, e) {
1640
+ t.startVector(1, e.length, 1);
1641
+ for (let s = e.length - 1; s >= 0; s--)
1642
+ t.addInt8(e[s]);
1643
+ return t.endVector();
1644
+ }
1645
+ static startValueVector(t, e) {
1646
+ t.startVector(1, e, 1);
1914
1647
  }
1915
1648
  static endUniqueSignalNotify(t) {
1916
1649
  const e = t.endObject();
1917
1650
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
1918
1651
  }
1919
- static createUniqueSignalNotify(t, e, i, a, r) {
1920
- return A.startUniqueSignalNotify(t), A.addFrameId(t, e), A.addSignalId(t, i), A.addValueType(t, a), A.addValue(t, r), A.endUniqueSignalNotify(t);
1652
+ static createUniqueSignalNotify(t, e, s, n) {
1653
+ return R.startUniqueSignalNotify(t), R.addFrameId(t, e), R.addSignalId(t, s), R.addValue(t, n), R.endUniqueSignalNotify(t);
1921
1654
  }
1922
1655
  unpack() {
1923
- return new Zt(this.frameId(), this.signalId(), this.valueType(), (() => {
1924
- const t = ut(this.valueType(), this.value.bind(this));
1925
- return t === null ? null : t.unpack();
1926
- })());
1656
+ return new Lt(this.frameId(), this.signalId(), this.bb.createScalarList(this.value.bind(this), this.valueLength()));
1927
1657
  }
1928
1658
  unpackTo(t) {
1929
- t.frameId = this.frameId(), t.signalId = this.signalId(), t.valueType = this.valueType(), t.value = (() => {
1930
- const e = ut(this.valueType(), this.value.bind(this));
1931
- return e === null ? null : e.unpack();
1932
- })();
1659
+ t.frameId = this.frameId(), t.signalId = this.signalId(), t.value = this.bb.createScalarList(this.value.bind(this), this.valueLength());
1933
1660
  }
1934
1661
  }
1935
- class Zt {
1936
- constructor(t = null, e = null, i = l.NONE, a = null) {
1937
- n(this, "frameId");
1938
- n(this, "signalId");
1939
- n(this, "valueType");
1940
- n(this, "value");
1941
- this.frameId = t, this.signalId = e, this.valueType = i, this.value = a;
1662
+ class Lt {
1663
+ constructor(t = null, e = null, s = []) {
1664
+ a(this, "frameId");
1665
+ a(this, "signalId");
1666
+ a(this, "value");
1667
+ this.frameId = t, this.signalId = e, this.value = s;
1942
1668
  }
1943
1669
  pack(t) {
1944
- const e = this.frameId !== null ? t.createString(this.frameId) : 0, i = this.signalId !== null ? t.createString(this.signalId) : 0, a = t.createObjectOffset(this.value);
1945
- return A.createUniqueSignalNotify(t, e, i, this.valueType, a);
1670
+ const e = this.frameId !== null ? t.createString(this.frameId) : 0, s = this.signalId !== null ? t.createString(this.signalId) : 0, n = R.createValueVector(t, this.value);
1671
+ return R.createUniqueSignalNotify(t, e, s, n);
1946
1672
  }
1947
1673
  }
1948
- class nt {
1674
+ class $ {
1949
1675
  constructor() {
1950
- n(this, "bb", null);
1951
- n(this, "bb_pos", 0);
1676
+ a(this, "bb", null);
1677
+ a(this, "bb_pos", 0);
1952
1678
  }
1953
1679
  __init(t, e) {
1954
1680
  return this.bb_pos = t, this.bb = e, this;
1955
1681
  }
1956
1682
  static getRootAsUniqueSignalRequest(t, e) {
1957
- return (e || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
1683
+ return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1958
1684
  }
1959
1685
  static getSizePrefixedRootAsUniqueSignalRequest(t, e) {
1960
- return t.setPosition(t.position() + f), (e || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
1686
+ return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
1961
1687
  }
1962
1688
  id(t) {
1963
1689
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -1974,46 +1700,46 @@ class nt {
1974
1700
  return t.requiredField(e, 4), e;
1975
1701
  }
1976
1702
  static createUniqueSignalRequest(t, e) {
1977
- return nt.startUniqueSignalRequest(t), nt.addId(t, e), nt.endUniqueSignalRequest(t);
1703
+ return $.startUniqueSignalRequest(t), $.addId(t, e), $.endUniqueSignalRequest(t);
1978
1704
  }
1979
1705
  unpack() {
1980
- return new Xt(this.id());
1706
+ return new Ct(this.id());
1981
1707
  }
1982
1708
  unpackTo(t) {
1983
1709
  t.id = this.id();
1984
1710
  }
1985
1711
  }
1986
- class Xt {
1712
+ class Ct {
1987
1713
  constructor(t = null) {
1988
- n(this, "id");
1714
+ a(this, "id");
1989
1715
  this.id = t;
1990
1716
  }
1991
1717
  pack(t) {
1992
1718
  const e = this.id !== null ? t.createString(this.id) : 0;
1993
- return nt.createUniqueSignalRequest(t, e);
1719
+ return $.createUniqueSignalRequest(t, e);
1994
1720
  }
1995
1721
  }
1996
- class B {
1722
+ class k {
1997
1723
  constructor() {
1998
- n(this, "bb", null);
1999
- n(this, "bb_pos", 0);
1724
+ a(this, "bb", null);
1725
+ a(this, "bb_pos", 0);
2000
1726
  }
2001
1727
  __init(t, e) {
2002
1728
  return this.bb_pos = t, this.bb = e, this;
2003
1729
  }
2004
1730
  static getRootAsUniqueSignalResponse(t, e) {
2005
- return (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1731
+ return (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
2006
1732
  }
2007
1733
  static getSizePrefixedRootAsUniqueSignalResponse(t, e) {
2008
- return t.setPosition(t.position() + f), (e || new B()).__init(t.readInt32(t.position()) + t.position(), t);
1734
+ return t.setPosition(t.position() + f), (e || new k()).__init(t.readInt32(t.position()) + t.position(), t);
2009
1735
  }
2010
1736
  id(t) {
2011
1737
  const e = this.bb.__offset(this.bb_pos, 4);
2012
1738
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
2013
1739
  }
2014
1740
  signals(t, e) {
2015
- const i = this.bb.__offset(this.bb_pos, 6);
2016
- return i ? (e || new j()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
1741
+ const s = this.bb.__offset(this.bb_pos, 6);
1742
+ return s ? (e || new x()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
2017
1743
  }
2018
1744
  signalsLength() {
2019
1745
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -2030,8 +1756,8 @@ class B {
2030
1756
  }
2031
1757
  static createSignalsVector(t, e) {
2032
1758
  t.startVector(4, e.length, 4);
2033
- for (let i = e.length - 1; i >= 0; i--)
2034
- t.addOffset(e[i]);
1759
+ for (let s = e.length - 1; s >= 0; s--)
1760
+ t.addOffset(e[s]);
2035
1761
  return t.endVector();
2036
1762
  }
2037
1763
  static startSignalsVector(t, e) {
@@ -2041,40 +1767,40 @@ class B {
2041
1767
  const e = t.endObject();
2042
1768
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
2043
1769
  }
2044
- static createUniqueSignalResponse(t, e, i) {
2045
- return B.startUniqueSignalResponse(t), B.addId(t, e), B.addSignals(t, i), B.endUniqueSignalResponse(t);
1770
+ static createUniqueSignalResponse(t, e, s) {
1771
+ return k.startUniqueSignalResponse(t), k.addId(t, e), k.addSignals(t, s), k.endUniqueSignalResponse(t);
2046
1772
  }
2047
1773
  unpack() {
2048
- return new he(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
1774
+ return new Kt(this.id(), this.bb.createObjList(this.signals.bind(this), this.signalsLength()));
2049
1775
  }
2050
1776
  unpackTo(t) {
2051
1777
  t.id = this.id(), t.signals = this.bb.createObjList(this.signals.bind(this), this.signalsLength());
2052
1778
  }
2053
1779
  }
2054
- class he {
1780
+ class Kt {
2055
1781
  constructor(t = null, e = []) {
2056
- n(this, "id");
2057
- n(this, "signals");
1782
+ a(this, "id");
1783
+ a(this, "signals");
2058
1784
  this.id = t, this.signals = e;
2059
1785
  }
2060
1786
  pack(t) {
2061
- const e = this.id !== null ? t.createString(this.id) : 0, i = B.createSignalsVector(t, t.createObjectOffsetList(this.signals));
2062
- return B.createUniqueSignalResponse(t, e, i);
1787
+ const e = this.id !== null ? t.createString(this.id) : 0, s = k.createSignalsVector(t, t.createObjectOffsetList(this.signals));
1788
+ return k.createUniqueSignalResponse(t, e, s);
2063
1789
  }
2064
1790
  }
2065
- class at {
1791
+ class J {
2066
1792
  constructor() {
2067
- n(this, "bb", null);
2068
- n(this, "bb_pos", 0);
1793
+ a(this, "bb", null);
1794
+ a(this, "bb_pos", 0);
2069
1795
  }
2070
1796
  __init(t, e) {
2071
1797
  return this.bb_pos = t, this.bb = e, this;
2072
1798
  }
2073
1799
  static getRootAsUniqueValueRequest(t, e) {
2074
- return (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
1800
+ return (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
2075
1801
  }
2076
1802
  static getSizePrefixedRootAsUniqueValueRequest(t, e) {
2077
- return t.setPosition(t.position() + f), (e || new at()).__init(t.readInt32(t.position()) + t.position(), t);
1803
+ return t.setPosition(t.position() + f), (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
2078
1804
  }
2079
1805
  id(t) {
2080
1806
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -2091,46 +1817,46 @@ class at {
2091
1817
  return t.requiredField(e, 4), e;
2092
1818
  }
2093
1819
  static createUniqueValueRequest(t, e) {
2094
- return at.startUniqueValueRequest(t), at.addId(t, e), at.endUniqueValueRequest(t);
1820
+ return J.startUniqueValueRequest(t), J.addId(t, e), J.endUniqueValueRequest(t);
2095
1821
  }
2096
1822
  unpack() {
2097
- return new $t(this.id());
1823
+ return new jt(this.id());
2098
1824
  }
2099
1825
  unpackTo(t) {
2100
1826
  t.id = this.id();
2101
1827
  }
2102
1828
  }
2103
- class $t {
1829
+ class jt {
2104
1830
  constructor(t = null) {
2105
- n(this, "id");
1831
+ a(this, "id");
2106
1832
  this.id = t;
2107
1833
  }
2108
1834
  pack(t) {
2109
1835
  const e = this.id !== null ? t.createString(this.id) : 0;
2110
- return at.createUniqueValueRequest(t, e);
1836
+ return J.createUniqueValueRequest(t, e);
2111
1837
  }
2112
1838
  }
2113
- class C {
1839
+ class A {
2114
1840
  constructor() {
2115
- n(this, "bb", null);
2116
- n(this, "bb_pos", 0);
1841
+ a(this, "bb", null);
1842
+ a(this, "bb_pos", 0);
2117
1843
  }
2118
1844
  __init(t, e) {
2119
1845
  return this.bb_pos = t, this.bb = e, this;
2120
1846
  }
2121
1847
  static getRootAsUniqueValueResponse(t, e) {
2122
- return (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
1848
+ return (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
2123
1849
  }
2124
1850
  static getSizePrefixedRootAsUniqueValueResponse(t, e) {
2125
- return t.setPosition(t.position() + f), (e || new C()).__init(t.readInt32(t.position()) + t.position(), t);
1851
+ return t.setPosition(t.position() + f), (e || new A()).__init(t.readInt32(t.position()) + t.position(), t);
2126
1852
  }
2127
1853
  id(t) {
2128
1854
  const e = this.bb.__offset(this.bb_pos, 4);
2129
1855
  return e ? this.bb.__string(this.bb_pos + e, t) : null;
2130
1856
  }
2131
1857
  values(t, e) {
2132
- const i = this.bb.__offset(this.bb_pos, 6);
2133
- return i ? (e || new S()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + i) + t * 4), this.bb) : null;
1858
+ const s = this.bb.__offset(this.bb_pos, 6);
1859
+ return s ? (e || new v()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + s) + t * 4), this.bb) : null;
2134
1860
  }
2135
1861
  valuesLength() {
2136
1862
  const t = this.bb.__offset(this.bb_pos, 6);
@@ -2147,8 +1873,8 @@ class C {
2147
1873
  }
2148
1874
  static createValuesVector(t, e) {
2149
1875
  t.startVector(4, e.length, 4);
2150
- for (let i = e.length - 1; i >= 0; i--)
2151
- t.addOffset(e[i]);
1876
+ for (let s = e.length - 1; s >= 0; s--)
1877
+ t.addOffset(e[s]);
2152
1878
  return t.endVector();
2153
1879
  }
2154
1880
  static startValuesVector(t, e) {
@@ -2158,40 +1884,40 @@ class C {
2158
1884
  const e = t.endObject();
2159
1885
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
2160
1886
  }
2161
- static createUniqueValueResponse(t, e, i) {
2162
- return C.startUniqueValueResponse(t), C.addId(t, e), C.addValues(t, i), C.endUniqueValueResponse(t);
1887
+ static createUniqueValueResponse(t, e, s) {
1888
+ return A.startUniqueValueResponse(t), A.addId(t, e), A.addValues(t, s), A.endUniqueValueResponse(t);
2163
1889
  }
2164
1890
  unpack() {
2165
- return new de(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
1891
+ return new Qt(this.id(), this.bb.createObjList(this.values.bind(this), this.valuesLength()));
2166
1892
  }
2167
1893
  unpackTo(t) {
2168
1894
  t.id = this.id(), t.values = this.bb.createObjList(this.values.bind(this), this.valuesLength());
2169
1895
  }
2170
1896
  }
2171
- class de {
1897
+ class Qt {
2172
1898
  constructor(t = null, e = []) {
2173
- n(this, "id");
2174
- n(this, "values");
1899
+ a(this, "id");
1900
+ a(this, "values");
2175
1901
  this.id = t, this.values = e;
2176
1902
  }
2177
1903
  pack(t) {
2178
- const e = this.id !== null ? t.createString(this.id) : 0, i = C.createValuesVector(t, t.createObjectOffsetList(this.values));
2179
- return C.createUniqueValueResponse(t, e, i);
1904
+ const e = this.id !== null ? t.createString(this.id) : 0, s = A.createValuesVector(t, t.createObjectOffsetList(this.values));
1905
+ return A.createUniqueValueResponse(t, e, s);
2180
1906
  }
2181
1907
  }
2182
- class tt {
1908
+ class Y {
2183
1909
  constructor() {
2184
- n(this, "bb", null);
2185
- n(this, "bb_pos", 0);
1910
+ a(this, "bb", null);
1911
+ a(this, "bb_pos", 0);
2186
1912
  }
2187
1913
  __init(t, e) {
2188
1914
  return this.bb_pos = t, this.bb = e, this;
2189
1915
  }
2190
1916
  static getRootAsUniqueValueUpdate(t, e) {
2191
- return (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
1917
+ return (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
2192
1918
  }
2193
1919
  static getSizePrefixedRootAsUniqueValueUpdate(t, e) {
2194
- return t.setPosition(t.position() + f), (e || new tt()).__init(t.readInt32(t.position()) + t.position(), t);
1920
+ return t.setPosition(t.position() + f), (e || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
2195
1921
  }
2196
1922
  id(t) {
2197
1923
  const e = this.bb.__offset(this.bb_pos, 4);
@@ -2199,7 +1925,7 @@ class tt {
2199
1925
  }
2200
1926
  value(t) {
2201
1927
  const e = this.bb.__offset(this.bb_pos, 6);
2202
- return e ? (t || new S()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
1928
+ return e ? (t || new v()).__init(this.bb.__indirect(this.bb_pos + e), this.bb) : null;
2203
1929
  }
2204
1930
  static startUniqueValueUpdate(t) {
2205
1931
  t.startObject(2);
@@ -2215,341 +1941,283 @@ class tt {
2215
1941
  return t.requiredField(e, 4), t.requiredField(e, 6), e;
2216
1942
  }
2217
1943
  unpack() {
2218
- return new Jt(this.id(), this.value() !== null ? this.value().unpack() : null);
1944
+ return new Pt(this.id(), this.value() !== null ? this.value().unpack() : null);
2219
1945
  }
2220
1946
  unpackTo(t) {
2221
1947
  t.id = this.id(), t.value = this.value() !== null ? this.value().unpack() : null;
2222
1948
  }
2223
1949
  }
2224
- class Jt {
1950
+ class Pt {
2225
1951
  constructor(t = null, e = null) {
2226
- n(this, "id");
2227
- n(this, "value");
1952
+ a(this, "id");
1953
+ a(this, "value");
2228
1954
  this.id = t, this.value = e;
2229
1955
  }
2230
1956
  pack(t) {
2231
- const e = this.id !== null ? t.createString(this.id) : 0, i = this.value !== null ? this.value.pack(t) : 0;
2232
- return tt.startUniqueValueUpdate(t), tt.addId(t, e), tt.addValue(t, i), tt.endUniqueValueUpdate(t);
1957
+ const e = this.id !== null ? t.createString(this.id) : 0, s = this.value !== null ? this.value.pack(t) : 0;
1958
+ return Y.startUniqueValueUpdate(t), Y.addId(t, e), Y.addValue(t, s), Y.endUniqueValueUpdate(t);
2233
1959
  }
2234
1960
  }
2235
- const _e = async (s) => new Promise((t, e) => {
2236
- const i = new oe();
2237
- i.postMessage({
1961
+ const Mt = async (i) => new Promise((t, e) => {
1962
+ const s = new Zt();
1963
+ s.postMessage({
2238
1964
  type: "init",
2239
- host: s.host,
2240
- id: s.id,
2241
- cdn_url: s.cdn_url,
2242
- tag: s.tag
2243
- }), i.addEventListener("message", async (a) => {
2244
- if (a.data.ok) {
2245
- if (a.data.files) {
2246
- const r = new y(), o = new Ct(
2247
- s.id,
2248
- a.data.target,
2249
- a.data.full_target,
2250
- a.data.code,
2251
- a.data.files.map((h) => new Bt(h.target, h.metadata))
1965
+ host: i.host,
1966
+ id: i.id,
1967
+ cdn_url: i.cdn_url,
1968
+ tag: i.tag
1969
+ }), s.addEventListener("message", async (n) => {
1970
+ if (n.data.ok) {
1971
+ if (n.data.files) {
1972
+ const r = new O(), o = new Ot(
1973
+ i.id,
1974
+ n.data.target,
1975
+ n.data.full_target,
1976
+ n.data.code,
1977
+ n.data.files.map((h) => new Vt(h.target, h.metadata))
2252
1978
  );
2253
- r.finish(o.pack(r)), St(
2254
- s.host,
2255
- s.tag != null ? _.Client_Tagged_FrameCache : _.Client_Unique_FrameCache,
1979
+ r.finish(o.pack(r)), bt(
1980
+ i.host,
1981
+ i.tag != null ? u.Client_Tagged_FrameCache : u.Client_Unique_FrameCache,
2256
1982
  r.asUint8Array()
2257
1983
  );
2258
1984
  }
2259
1985
  t(await import(
2260
1986
  /* @vite-ignore */
2261
- a.data.code
1987
+ n.data.code
2262
1988
  ));
2263
1989
  } else
2264
- e(a.data.err);
2265
- i.terminate();
1990
+ e(n.data.err);
1991
+ s.terminate();
2266
1992
  });
2267
- }), ct = (s) => {
2268
- }, fe = (s, t) => {
2269
- if (s == l.ValueBoolean)
2270
- return t ?? !1;
2271
- if (s == l.ValueNumber)
2272
- return Number(t ?? 0);
2273
- if (s == l.ValueDouble)
2274
- return t ?? 0;
2275
- if (s == l.ValueString)
2276
- return t ?? "";
2277
- if (s == l.ValueBuffer)
2278
- return new Uint8Array(t ?? []);
2279
- }, Kt = (s, t) => {
2280
- if (s == l.ValueBoolean)
2281
- return new Lt(t);
2282
- if (s == l.ValueNumber)
2283
- return new Et(BigInt(t));
2284
- if (s == l.ValueDouble)
2285
- return new xt(t);
2286
- if (s == l.ValueString)
2287
- return new zt(t);
2288
- if (s == l.ValueBuffer)
2289
- return new Pt(Array.from(t));
2290
- }, Qt = async ({
2291
- id: s,
1993
+ }), mt = (i) => {
1994
+ }, te = (i) => new Uint8Array(i ?? []), xt = (i) => i ? Array.from(i) : Array(), Nt = async ({
1995
+ id: i,
2292
1996
  tag: t,
2293
1997
  host: e,
2294
- service: i
1998
+ service: s
2295
1999
  }) => {
2296
- const a = await jt(
2000
+ const n = await Ut(
2297
2001
  e,
2298
- t != null ? _.Client_Tagged_Value_Request : _.Client_Unique_Value_Request,
2002
+ t != null ? u.Client_Tagged_Value_Request : u.Client_Unique_Value_Request,
2299
2003
  (() => {
2300
- const c = new y(), d = t != null ? new Wt(s, t) : new $t(s);
2004
+ const c = new O(), d = t != null ? new kt(i, t) : new jt(i);
2301
2005
  return c.finish(d.pack(c)), c.asUint8Array();
2302
2006
  })(),
2303
2007
  t != null ? (c, d) => {
2304
- if (c === _.Server_Tagged_Value_Response) {
2305
- const b = k.getRootAsTaggedValueResponse(
2306
- new P(d)
2008
+ if (c === u.Server_Tagged_Value_Response) {
2009
+ const _ = V.getRootAsTaggedValueResponse(
2010
+ new L(d)
2307
2011
  );
2308
- if (b.id() === s && t === b.tag())
2309
- return b;
2012
+ if (_.id() === i && t === _.tag())
2013
+ return _;
2310
2014
  }
2311
2015
  } : (c, d) => {
2312
- if (c === _.Server_Unique_Value_Response) {
2313
- const b = C.getRootAsUniqueValueResponse(
2314
- new P(d)
2016
+ if (c === u.Server_Unique_Value_Response) {
2017
+ const _ = A.getRootAsUniqueValueResponse(
2018
+ new L(d)
2315
2019
  );
2316
- if (b.id() === s)
2317
- return b;
2020
+ if (_.id() === i)
2021
+ return _;
2318
2022
  }
2319
2023
  }
2320
- ), r = {
2321
- [l.ValueBoolean]: /* @__PURE__ */ new Map(),
2322
- [l.ValueNumber]: /* @__PURE__ */ new Map(),
2323
- [l.ValueDouble]: /* @__PURE__ */ new Map(),
2324
- [l.ValueString]: /* @__PURE__ */ new Map(),
2325
- [l.ValueBuffer]: /* @__PURE__ */ new Map()
2326
- };
2024
+ ), r = /* @__PURE__ */ new Map();
2327
2025
  let o = !1;
2328
- const h = a.valuesLength();
2026
+ const h = n.valuesLength();
2329
2027
  for (let c = 0; c < h; ++c) {
2330
- const d = a.values(c), b = d.id(), F = d.valueType(), O = et(fe(F, d.unpack().value.value));
2331
- O.subscribe((V) => {
2332
- if (V == null || o)
2028
+ const d = n.values(c), _ = d.id(), F = dt(te(d.unpack().value));
2029
+ F.subscribe((m) => {
2030
+ if (m == null || o)
2333
2031
  return;
2334
- const m = new y(), p = t != null ? new Yt(s, t) : new Jt(s);
2335
- p.value = new Ht(
2336
- b,
2337
- F,
2338
- Kt(F, V)
2339
- ), m.finish(p.pack(m));
2340
- const I = t != null ? _.Tagged_Value_Update : _.Unique_Value_Update;
2341
- i.publish(dt([ht(I), m.asUint8Array()]));
2342
- }), F !== l.NONE && r[F].set(b, O);
2343
- }
2344
- return i.on_message((c, d) => {
2345
- var V;
2346
- const b = new DataView(d.buffer).getUint32(0, !1), F = d.slice(4), O = t != null ? _.Tagged_Value_Update : _.Unique_Value_Update;
2347
- if (b === O) {
2348
- const m = t !== null ? D.getRootAsTaggedValueUpdate(new P(F)) : tt.getRootAsUniqueValueUpdate(new P(F));
2349
- if (m.id() === s && (t == null || t === m.tag())) {
2032
+ const I = new O(), B = t != null ? new yt(i, t) : new Pt(i);
2033
+ B.value = new At(
2034
+ _,
2035
+ xt(m)
2036
+ ), I.finish(B.pack(I));
2037
+ const b = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2038
+ s.publish(st([et(b), I.asUint8Array()]));
2039
+ }), r.set(_, F);
2040
+ }
2041
+ return s.on_message((c, d) => {
2042
+ const _ = new DataView(d.buffer).getUint32(0, !1), F = d.slice(4), m = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
2043
+ if (_ === m) {
2044
+ const I = t !== null ? N.getRootAsTaggedValueUpdate(new L(F)) : Y.getRootAsUniqueValueUpdate(new L(F));
2045
+ if (I.id() === i && (t == null || t === I.tag())) {
2350
2046
  o = !0;
2351
- const p = m.value().valueType();
2352
- if (p !== l.NONE) {
2353
- const I = (V = r[p]) == null ? void 0 : V.get(m.value().id());
2354
- if (p === l.ValueBuffer) {
2355
- const G = new Uint8Array(
2356
- m.unpack().value.value.value
2357
- ), Rt = Nt(I);
2358
- let gt = !0;
2359
- if (G.length != Rt.length)
2360
- gt = !1;
2361
- else {
2362
- const ie = G.length;
2363
- for (let pt = 0; pt < ie; pt++)
2364
- if (G[pt] !== Rt[pt]) {
2365
- gt = !1;
2366
- break;
2367
- }
2047
+ const B = I.value().id(), b = r.get(B), C = new Uint8Array(I.unpack().value.value), tt = qt(b);
2048
+ let ot = !0;
2049
+ if (C.length != tt.length)
2050
+ ot = !1;
2051
+ else {
2052
+ const Gt = C.length;
2053
+ for (let at = 0; at < Gt; at++)
2054
+ if (C[at] !== tt[at]) {
2055
+ ot = !1;
2056
+ break;
2368
2057
  }
2369
- gt || I == null || I.set(G);
2370
- } else p === l.ValueNumber ? I == null || I.set(new Number(m.unpack().value.value.value)) : I == null || I.set(m.unpack().value.value.value);
2371
2058
  }
2372
- o = !1;
2059
+ ot || b == null || b.set(C), o = !1;
2373
2060
  }
2374
2061
  }
2375
2062
  }), r;
2376
- }, Mt = async ({
2377
- id: s,
2063
+ }, Bt = async ({
2064
+ id: i,
2378
2065
  tag: t,
2379
2066
  host: e,
2380
- service: i
2067
+ service: s
2381
2068
  }) => {
2382
- const a = await jt(
2069
+ const n = await Ut(
2383
2070
  e,
2384
- t != null ? _.Client_Tagged_Signal_Request : _.Client_Unique_Signal_Request,
2071
+ t != null ? u.Client_Tagged_Signal_Request : u.Client_Unique_Signal_Request,
2385
2072
  (() => {
2386
- const h = new y(), c = t != null ? new Gt(s, t) : new Xt(s);
2073
+ const h = new O(), c = t != null ? new Tt(i, t) : new Ct(i);
2387
2074
  return h.finish(c.pack(h)), h.asUint8Array();
2388
2075
  })(),
2389
2076
  (h, c) => {
2390
2077
  if (t != null) {
2391
- if (h === _.Server_Tagged_Signal_Response)
2392
- return R.getRootAsTaggedSignalResponse(new P(c));
2393
- } else if (h === _.Server_Unique_Signal_Response)
2394
- return B.getRootAsUniqueSignalResponse(new P(c));
2078
+ if (h === u.Server_Tagged_Signal_Response)
2079
+ return U.getRootAsTaggedSignalResponse(new L(c));
2080
+ } else if (h === u.Server_Unique_Signal_Response)
2081
+ return k.getRootAsUniqueSignalResponse(new L(c));
2395
2082
  }
2396
- ), r = [
2397
- /* @__PURE__ */ new Map(),
2398
- /* @__PURE__ */ new Map(),
2399
- /* @__PURE__ */ new Map(),
2400
- /* @__PURE__ */ new Map(),
2401
- /* @__PURE__ */ new Map(),
2402
- /* @__PURE__ */ new Map()
2403
- ], o = a.signalsLength();
2083
+ ), r = /* @__PURE__ */ new Map(), o = n.signalsLength();
2404
2084
  for (let h = 0; h < o; ++h) {
2405
- const c = a.signals(h), { id: d, type: b } = { id: c.id(), type: c.type() };
2406
- r[b].set(d, (F) => {
2407
- const O = new y(), V = b, m = Kt(V, F), p = t != null ? new Dt(s, t, d, V, m) : new Zt(s, d, V, m);
2408
- O.finish(p.pack(O));
2409
- const I = t != null ? _.Client_Tagged_Signal_Notify : _.Client_Unique_Signal_Notify;
2410
- i.publish(dt([ht(I), O.asUint8Array()]));
2085
+ const d = n.signals(h).id();
2086
+ r.set(d, (_) => {
2087
+ const F = new O(), m = xt(_), I = t != null ? new Rt(i, t, d, m) : new Lt(i, d, m);
2088
+ F.finish(I.pack(F));
2089
+ const B = t != null ? u.Client_Tagged_Signal_Notify : u.Client_Unique_Signal_Notify;
2090
+ s.publish(st([et(B), F.asUint8Array()]));
2411
2091
  });
2412
2092
  }
2413
2093
  return r;
2414
- }, te = (s) => ({
2415
- boolean: (t, e) => s[l.ValueBoolean].get(t) ?? et(e),
2416
- double: (t, e) => s[l.ValueDouble].get(t) ?? et(e),
2417
- string: (t, e) => s[l.ValueString].get(t) ?? et(e),
2418
- number: (t, e) => s[l.ValueNumber].get(t) ?? et(e),
2419
- buffer: (t, e) => s[l.ValueBuffer].get(t) ?? et(e),
2420
- json: (t, e, i) => {
2421
- const a = s[l.ValueBuffer].get(t);
2422
- if (a != null) {
2423
- let r = Nt(a), o = i.decode(r);
2424
- return {
2425
- set: (h) => {
2426
- o = h, r = i.encode(o), a.set(r);
2427
- },
2428
- subscribe: (h) => a.subscribe((c) => {
2429
- c !== r && (r = c, o = i.decode(r)), h(o);
2430
- }),
2431
- update: (h) => {
2432
- a.update((c) => (o = h(o), r = i.encode(o), r));
2433
- }
2434
- };
2435
- }
2436
- return et(e);
2437
- }
2438
- }), ee = (s) => ({
2439
- none: (t) => s[T.None].get(t) ?? (() => {
2440
- }),
2441
- boolean: (t) => s[T.Boolean].get(t) ?? ct,
2442
- double: (t) => s[T.Double].get(t) ?? ct,
2443
- number: (t) => s[T.Number].get(t) ?? ct,
2444
- string: (t) => s[T.String].get(t) ?? ct,
2445
- buffer: (t) => s[T.Buffer].get(t) ?? ct,
2446
- json: (t, e) => {
2447
- const i = s[T.Buffer].get(t);
2448
- return i != null ? (a) => i(e(a)) : ct;
2449
- }
2450
- }), pe = async (s, t, e, i, a, r) => {
2451
- await re(s);
2452
- const o = new ft(s), [h, c, { nil_xit_fn: d }] = await Promise.all([
2453
- Qt({ id: t, tag: e, host: s, service: o }),
2454
- Mt({ id: t, tag: e, host: s, service: o }),
2455
- _e({ host: s, cdn_url: i, id: t, tag: e })
2456
- ]), b = {
2457
- svelte: () => import("./svelte/index.js").then((p) => p.b_),
2458
- "svelte/store": () => import("./svelte/store.js").then((p) => p.a),
2094
+ }, zt = (i) => ((t, e, s) => {
2095
+ if (s == null)
2096
+ return i.get(t) ?? dt(e);
2097
+ const n = i.get(t);
2098
+ if (n != null) {
2099
+ let r = qt(n), o = s.decode(r);
2100
+ return {
2101
+ set: (h) => {
2102
+ o = h, r = s.encode(o), n.set(r);
2103
+ },
2104
+ subscribe: (h) => n.subscribe((c) => {
2105
+ c !== r && (r = c, o = s.decode(r)), h(o);
2106
+ }),
2107
+ update: (h) => {
2108
+ n.update((c) => (o = h(o), r = s.encode(o), r));
2109
+ }
2110
+ };
2111
+ }
2112
+ return dt(e);
2113
+ }), Et = (i) => ((t, e) => {
2114
+ if (e == null)
2115
+ return i.get(t) ?? mt;
2116
+ const s = i.get(t);
2117
+ return s != null ? (n) => s(e(n)) : mt;
2118
+ }), ee = async (i, t, e, s, n, r) => {
2119
+ await Yt(i);
2120
+ const o = new nt(i), [h, c, { nil_xit_fn: d }] = await Promise.all([
2121
+ Nt({ id: t, tag: e, host: i, service: o }),
2122
+ Bt({ id: t, tag: e, host: i, service: o }),
2123
+ Mt({ host: i, cdn_url: s, id: t, tag: e })
2124
+ ]), _ = {
2125
+ svelte: () => import("./svelte/index.js"),
2126
+ "svelte/store": () => import("./svelte/store.js").then((b) => b.cH),
2459
2127
  "svelte/animate": () => import("./svelte/animate.js"),
2460
2128
  "svelte/reactivity": () => import("./svelte/reactivity.js"),
2461
2129
  "svelte/easing": () => import("./svelte/easing.js"),
2462
2130
  "svelte/events": () => import("./svelte/events.js"),
2463
- "svelte/motion": () => import("./svelte/motion.js").then((p) => p.i),
2131
+ "svelte/motion": () => import("./svelte/motion.js"),
2464
2132
  "svelte/transition": () => import("./svelte/transition.js"),
2465
2133
  // @ts-ignore
2466
2134
  "svelte/internal/disclose-version": () => import("./svelte/internal/disclose-version.js"),
2467
2135
  // @ts-ignore
2468
- "svelte/internal/client": () => import("./svelte/internal/client.js")
2469
- }, F = (p) => p in b ? b[p]() : import(
2136
+ "svelte/internal/client": () => import("./svelte/internal/client.js").then((b) => b.i)
2137
+ }, F = (b) => b in _ ? _[b]() : import(
2470
2138
  /* @vite-ignore */
2471
- p
2472
- ), { action: O } = await d(F);
2139
+ b
2140
+ ), { action: m } = await d(F);
2473
2141
  o.on_connect(() => {
2474
- const p = new y(), I = e != null ? new qt(t, e) : new Ut(t);
2475
- p.finish(I.pack(p));
2476
- const G = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
2477
- o.publish(dt([ht(G), p.asUint8Array()]));
2142
+ const b = new O(), C = e != null ? new pt(t, e) : new wt(t);
2143
+ b.finish(C.pack(b));
2144
+ const tt = e != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2145
+ o.publish(st([et(tt), b.asUint8Array()]));
2478
2146
  }), o.start();
2479
- const V = new y(), m = e != null ? new Ot(t, e) : new Tt(t);
2480
- return V.finish(m.pack(V)), St(
2481
- s,
2482
- e != null ? _.Client_Tagged_Frame_Loaded : _.Client_Unique_Frame_Loaded,
2483
- V.asUint8Array()
2484
- ), (p) => {
2485
- const I = /* @__PURE__ */ new Map();
2486
- I.set("nil.xit", {
2487
- values: te(h),
2488
- signals: ee(c),
2147
+ const I = new O(), B = e != null ? new gt(t, e) : new It(t);
2148
+ return I.finish(B.pack(I)), bt(
2149
+ i,
2150
+ e != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded,
2151
+ I.asUint8Array()
2152
+ ), (b) => {
2153
+ const C = /* @__PURE__ */ new Map();
2154
+ C.set("nil.xit", {
2155
+ values: zt(h),
2156
+ signals: Et(c),
2489
2157
  resub: () => o.start(),
2490
2158
  unsub: () => o.stop(),
2491
2159
  id: t,
2492
2160
  tag: e,
2493
- load_frame_ui: a,
2161
+ load_frame_ui: n,
2494
2162
  load_frame_data: r
2495
2163
  });
2496
- const { destroy: G } = O(p, I);
2164
+ const { destroy: tt } = m(b, C);
2497
2165
  return {
2498
2166
  destroy: () => {
2499
- o.stop(), G();
2167
+ o.stop(), tt();
2500
2168
  }
2501
2169
  };
2502
2170
  };
2503
- }, be = async ({
2504
- host: s,
2171
+ }, se = async ({
2172
+ host: i,
2505
2173
  frame: t,
2506
2174
  tag: e
2507
2175
  }) => {
2508
- const i = new ft(s), [a, r] = await Promise.all([
2509
- Qt({ id: t, tag: e ?? null, host: s, service: i }),
2510
- Mt({ id: t, tag: e ?? null, host: s, service: i })
2176
+ const s = new nt(i), [n, r] = await Promise.all([
2177
+ Nt({ id: t, tag: e ?? null, host: i, service: s }),
2178
+ Bt({ id: t, tag: e ?? null, host: i, service: s })
2511
2179
  ]);
2512
- i.on_connect(() => {
2513
- const d = new y(), b = e != null ? new qt(t, e) : new Ut(t);
2514
- d.finish(b.pack(d));
2515
- const F = e != null ? _.Client_Tagged_Frame_Subscribe : _.Client_Unique_Frame_Subscribe;
2516
- i.publish(dt([ht(F), d.asUint8Array()]));
2517
- }), i.start();
2518
- const o = new y(), h = e != null ? new Ot(t, e) : new Tt(t);
2180
+ s.on_connect(() => {
2181
+ const d = new O(), _ = e != null ? new pt(t, e) : new wt(t);
2182
+ d.finish(_.pack(d));
2183
+ const F = e != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
2184
+ s.publish(st([et(F), d.asUint8Array()]));
2185
+ }), s.start();
2186
+ const o = new O(), h = e != null ? new gt(t, e) : new It(t);
2519
2187
  o.finish(h.pack(o));
2520
- const c = e != null ? _.Client_Tagged_Frame_Loaded : _.Client_Unique_Frame_Loaded;
2521
- return St(s, c, o.asUint8Array()), {
2522
- values: te(a),
2523
- signals: ee(r),
2524
- resub: () => i.start(),
2525
- unsub: () => i.stop()
2188
+ const c = e != null ? u.Client_Tagged_Frame_Loaded : u.Client_Unique_Frame_Loaded;
2189
+ return bt(i, c, o.asUint8Array()), {
2190
+ values: zt(n),
2191
+ signals: Et(r),
2192
+ resub: () => s.start(),
2193
+ unsub: () => s.stop()
2526
2194
  };
2527
- }, se = async ({
2528
- host: s,
2195
+ }, Dt = async ({
2196
+ host: i,
2529
2197
  cdn_url: t,
2530
2198
  frame: e,
2531
- tag: i
2199
+ tag: s
2532
2200
  }) => {
2533
- const a = async (r, o) => {
2534
- const h = await se({
2535
- host: s,
2201
+ const n = async (r, o) => {
2202
+ const h = await Dt({
2203
+ host: i,
2536
2204
  cdn_url: t,
2537
2205
  frame: r,
2538
2206
  tag: o
2539
2207
  });
2540
2208
  return (c) => h(c);
2541
2209
  };
2542
- return pe(
2543
- s,
2210
+ return ee(
2211
+ i,
2544
2212
  e,
2545
- i ?? null,
2213
+ s ?? null,
2546
2214
  t,
2547
- async (r, o) => a(r, o),
2548
- async (r, o) => be({ host: s, frame: r, tag: o })
2215
+ async (r, o) => n(r, o),
2216
+ async (r, o) => se({ host: i, frame: r, tag: o })
2549
2217
  );
2550
- }, we = async (s, t) => (await se(t))(s);
2218
+ }, ae = async (i, t) => (await Dt(t))(i);
2551
2219
  export {
2552
- we as create_component,
2553
- be as create_frame,
2554
- se as create_frame_ui
2220
+ ae as create_component,
2221
+ se as create_frame,
2222
+ Dt as create_frame_ui
2555
2223
  };