@candypoets/nipworker 0.93.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NarrowTypes.js +139 -119
- package/dist/cache/index.js +55 -55
- package/dist/cache/pkg/cache.d.ts +1 -1
- package/dist/cache/pkg/cache_bg.wasm.d.ts +1 -1
- package/dist/connections/index.js +16 -16
- package/dist/connections/pkg/connections.d.ts +2 -2
- package/dist/connections/pkg/connections_bg.wasm.d.ts +2 -2
- package/dist/connections/proxy.js +1 -1
- package/dist/connections/proxy.js.map +4 -4
- package/dist/crypto/index.js +40 -40
- package/dist/generated/nostr/fb/content-block.d.ts +3 -2
- package/dist/generated/nostr/fb/content-block.d.ts.map +1 -1
- package/dist/generated/nostr/fb/content-data.d.ts +5 -3
- package/dist/generated/nostr/fb/content-data.d.ts.map +1 -1
- package/dist/generated/nostr/fb/emoji-data.d.ts +30 -0
- package/dist/generated/nostr/fb/emoji-data.d.ts.map +1 -0
- package/dist/generated/nostr/fb/kind1018-parsed.d.ts +37 -0
- package/dist/generated/nostr/fb/kind1018-parsed.d.ts.map +1 -0
- package/dist/generated/nostr/fb/kind1068-parsed.d.ts +58 -0
- package/dist/generated/nostr/fb/kind1068-parsed.d.ts.map +1 -0
- package/dist/generated/nostr/fb/kind20-parsed.d.ts.map +1 -1
- package/dist/generated/nostr/fb/parsed-data-union.d.ts +2 -0
- package/dist/generated/nostr/fb/parsed-data-union.d.ts.map +1 -1
- package/dist/generated/nostr/fb/parsed-data.d.ts +17 -13
- package/dist/generated/nostr/fb/parsed-data.d.ts.map +1 -1
- package/dist/generated/nostr/fb/parsed-event.d.ts +4 -2
- package/dist/generated/nostr/fb/parsed-event.d.ts.map +1 -1
- package/dist/generated/nostr/fb/poll-option.d.ts +26 -0
- package/dist/generated/nostr/fb/poll-option.d.ts.map +1 -0
- package/dist/generated/nostr/fb/poll-type.d.ts +5 -0
- package/dist/generated/nostr/fb/poll-type.d.ts.map +1 -0
- package/dist/generated/nostr/fb.d.ts +5 -0
- package/dist/generated/nostr/fb.d.ts.map +1 -1
- package/dist/index.js +159 -150
- package/dist/index2.js +31 -31
- package/dist/lib/ConnectionTracker.d.ts +2 -0
- package/dist/lib/ConnectionTracker.d.ts.map +1 -1
- package/dist/lib/NarrowTypes.d.ts +6 -1
- package/dist/lib/NarrowTypes.d.ts.map +1 -1
- package/dist/parser/index.js +306 -306
- package/dist/relayProxyServer.js +298 -352
- package/dist/utils.js +91 -82
- package/dist/worker-message.js +1151 -763
- package/package.json +1 -1
package/dist/worker-message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as c from "flatbuffers";
|
|
2
|
-
class
|
|
2
|
+
class Tt {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.bb = null, this.bb_pos = 0;
|
|
5
5
|
}
|
|
@@ -7,10 +7,10 @@ class St {
|
|
|
7
7
|
return this.bb_pos = t, this.bb = s, this;
|
|
8
8
|
}
|
|
9
9
|
static getRootAsBufferFull(t, s) {
|
|
10
|
-
return (s || new
|
|
10
|
+
return (s || new Tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
11
11
|
}
|
|
12
12
|
static getSizePrefixedRootAsBufferFull(t, s) {
|
|
13
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
13
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Tt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
14
14
|
}
|
|
15
15
|
droppedEvents() {
|
|
16
16
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -26,10 +26,10 @@ class St {
|
|
|
26
26
|
return t.endObject();
|
|
27
27
|
}
|
|
28
28
|
static createBufferFull(t, s) {
|
|
29
|
-
return
|
|
29
|
+
return Tt.startBufferFull(t), Tt.addDroppedEvents(t, s), Tt.endBufferFull(t);
|
|
30
30
|
}
|
|
31
31
|
unpack() {
|
|
32
|
-
return new
|
|
32
|
+
return new is(
|
|
33
33
|
this.droppedEvents()
|
|
34
34
|
);
|
|
35
35
|
}
|
|
@@ -37,18 +37,18 @@ class St {
|
|
|
37
37
|
t.droppedEvents = this.droppedEvents();
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
class
|
|
40
|
+
class is {
|
|
41
41
|
constructor(t = 0) {
|
|
42
42
|
this.droppedEvents = t;
|
|
43
43
|
}
|
|
44
44
|
pack(t) {
|
|
45
|
-
return
|
|
45
|
+
return Tt.createBufferFull(
|
|
46
46
|
t,
|
|
47
47
|
this.droppedEvents
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
class
|
|
51
|
+
class X {
|
|
52
52
|
constructor() {
|
|
53
53
|
this.bb = null, this.bb_pos = 0;
|
|
54
54
|
}
|
|
@@ -56,10 +56,10 @@ class Z {
|
|
|
56
56
|
return this.bb_pos = t, this.bb = s, this;
|
|
57
57
|
}
|
|
58
58
|
static getRootAsStringVec(t, s) {
|
|
59
|
-
return (s || new
|
|
59
|
+
return (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
60
60
|
}
|
|
61
61
|
static getSizePrefixedRootAsStringVec(t, s) {
|
|
62
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
62
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
63
63
|
}
|
|
64
64
|
items(t, s) {
|
|
65
65
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -88,10 +88,10 @@ class Z {
|
|
|
88
88
|
return t.endObject();
|
|
89
89
|
}
|
|
90
90
|
static createStringVec(t, s) {
|
|
91
|
-
return
|
|
91
|
+
return X.startStringVec(t), X.addItems(t, s), X.endStringVec(t);
|
|
92
92
|
}
|
|
93
93
|
unpack() {
|
|
94
|
-
return new
|
|
94
|
+
return new ns(
|
|
95
95
|
this.bb.createScalarList(this.items.bind(this), this.itemsLength())
|
|
96
96
|
);
|
|
97
97
|
}
|
|
@@ -99,19 +99,19 @@ class Z {
|
|
|
99
99
|
t.items = this.bb.createScalarList(this.items.bind(this), this.itemsLength());
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
class
|
|
102
|
+
class ns {
|
|
103
103
|
constructor(t = []) {
|
|
104
104
|
this.items = t;
|
|
105
105
|
}
|
|
106
106
|
pack(t) {
|
|
107
|
-
const s =
|
|
108
|
-
return
|
|
107
|
+
const s = X.createItemsVector(t, t.createObjectOffsetList(this.items));
|
|
108
|
+
return X.createStringVec(
|
|
109
109
|
t,
|
|
110
110
|
s
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
class
|
|
114
|
+
class j {
|
|
115
115
|
constructor() {
|
|
116
116
|
this.bb = null, this.bb_pos = 0;
|
|
117
117
|
}
|
|
@@ -119,10 +119,10 @@ class w {
|
|
|
119
119
|
return this.bb_pos = t, this.bb = s, this;
|
|
120
120
|
}
|
|
121
121
|
static getRootAsNostrEvent(t, s) {
|
|
122
|
-
return (s || new
|
|
122
|
+
return (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
123
123
|
}
|
|
124
124
|
static getSizePrefixedRootAsNostrEvent(t, s) {
|
|
125
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
125
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new j()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
126
126
|
}
|
|
127
127
|
id(t) {
|
|
128
128
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -142,7 +142,7 @@ class w {
|
|
|
142
142
|
}
|
|
143
143
|
tags(t, s) {
|
|
144
144
|
const e = this.bb.__offset(this.bb_pos, 12);
|
|
145
|
-
return e ? (s || new
|
|
145
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
146
146
|
}
|
|
147
147
|
tagsLength() {
|
|
148
148
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -194,10 +194,10 @@ class w {
|
|
|
194
194
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 10), t.requiredField(s, 12), t.requiredField(s, 16), s;
|
|
195
195
|
}
|
|
196
196
|
static createNostrEvent(t, s, e, i, o, r, a, h) {
|
|
197
|
-
return
|
|
197
|
+
return j.startNostrEvent(t), j.addId(t, s), j.addPubkey(t, e), j.addKind(t, i), j.addContent(t, o), j.addTags(t, r), j.addCreatedAt(t, a), j.addSig(t, h), j.endNostrEvent(t);
|
|
198
198
|
}
|
|
199
199
|
unpack() {
|
|
200
|
-
return new
|
|
200
|
+
return new os(
|
|
201
201
|
this.id(),
|
|
202
202
|
this.pubkey(),
|
|
203
203
|
this.kind(),
|
|
@@ -211,13 +211,13 @@ class w {
|
|
|
211
211
|
t.id = this.id(), t.pubkey = this.pubkey(), t.kind = this.kind(), t.content = this.content(), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.createdAt = this.createdAt(), t.sig = this.sig();
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
class
|
|
214
|
+
class os {
|
|
215
215
|
constructor(t = null, s = null, e = 0, i = null, o = [], r = 0, a = null) {
|
|
216
216
|
this.id = t, this.pubkey = s, this.kind = e, this.content = i, this.tags = o, this.createdAt = r, this.sig = a;
|
|
217
217
|
}
|
|
218
218
|
pack(t) {
|
|
219
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.content !== null ? t.createString(this.content) : 0, o =
|
|
220
|
-
return
|
|
219
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.content !== null ? t.createString(this.content) : 0, o = j.createTagsVector(t, t.createObjectOffsetList(this.tags)), r = this.sig !== null ? t.createString(this.sig) : 0;
|
|
220
|
+
return j.createNostrEvent(
|
|
221
221
|
t,
|
|
222
222
|
s,
|
|
223
223
|
e,
|
|
@@ -388,11 +388,11 @@ class p {
|
|
|
388
388
|
static endKind0Parsed(t) {
|
|
389
389
|
return t.endObject();
|
|
390
390
|
}
|
|
391
|
-
static createKind0Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
392
|
-
return p.startKind0Parsed(t), p.addPubkey(t, s), p.addName(t, e), p.addDisplayName(t, i), p.addPicture(t, o), p.addBanner(t, r), p.addAbout(t, a), p.addWebsite(t, h), p.addNip05(t, d), p.addLud06(t, b), p.addLud16(t, l), p.addGithub(t, u), p.addTwitter(t, y), p.addMastodon(t,
|
|
391
|
+
static createKind0Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U, J, $, tt, It) {
|
|
392
|
+
return p.startKind0Parsed(t), p.addPubkey(t, s), p.addName(t, e), p.addDisplayName(t, i), p.addPicture(t, o), p.addBanner(t, r), p.addAbout(t, a), p.addWebsite(t, h), p.addNip05(t, d), p.addLud06(t, b), p.addLud16(t, l), p.addGithub(t, u), p.addTwitter(t, y), p.addMastodon(t, I), p.addNostr(t, V), p.addDisplayNameAlt(t, K), p.addUsername(t, U), p.addBio(t, J), p.addImage(t, $), p.addAvatar(t, tt), p.addBackground(t, It), p.endKind0Parsed(t);
|
|
393
393
|
}
|
|
394
394
|
unpack() {
|
|
395
|
-
return new
|
|
395
|
+
return new rs(
|
|
396
396
|
this.pubkey(),
|
|
397
397
|
this.name(),
|
|
398
398
|
this.displayName(),
|
|
@@ -419,12 +419,12 @@ class p {
|
|
|
419
419
|
t.pubkey = this.pubkey(), t.name = this.name(), t.displayName = this.displayName(), t.picture = this.picture(), t.banner = this.banner(), t.about = this.about(), t.website = this.website(), t.nip05 = this.nip05(), t.lud06 = this.lud06(), t.lud16 = this.lud16(), t.github = this.github(), t.twitter = this.twitter(), t.mastodon = this.mastodon(), t.nostr = this.nostr(), t.displayNameAlt = this.displayNameAlt(), t.username = this.username(), t.bio = this.bio(), t.image = this.image(), t.avatar = this.avatar(), t.background = this.background();
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
class
|
|
423
|
-
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = null,
|
|
424
|
-
this.pubkey = t, this.name = s, this.displayName = e, this.picture = i, this.banner = o, this.about = r, this.website = a, this.nip05 = h, this.lud06 = d, this.lud16 = b, this.github = l, this.twitter = u, this.mastodon = y, this.nostr =
|
|
422
|
+
class rs {
|
|
423
|
+
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = null, I = null, V = null, K = null, U = null, J = null, $ = null, tt = null) {
|
|
424
|
+
this.pubkey = t, this.name = s, this.displayName = e, this.picture = i, this.banner = o, this.about = r, this.website = a, this.nip05 = h, this.lud06 = d, this.lud16 = b, this.github = l, this.twitter = u, this.mastodon = y, this.nostr = I, this.displayNameAlt = V, this.username = K, this.bio = U, this.image = J, this.avatar = $, this.background = tt;
|
|
425
425
|
}
|
|
426
426
|
pack(t) {
|
|
427
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.name !== null ? t.createString(this.name) : 0, i = this.displayName !== null ? t.createString(this.displayName) : 0, o = this.picture !== null ? t.createString(this.picture) : 0, r = this.banner !== null ? t.createString(this.banner) : 0, a = this.about !== null ? t.createString(this.about) : 0, h = this.website !== null ? t.createString(this.website) : 0, d = this.nip05 !== null ? t.createString(this.nip05) : 0, b = this.lud06 !== null ? t.createString(this.lud06) : 0, l = this.lud16 !== null ? t.createString(this.lud16) : 0, u = this.github !== null ? t.createString(this.github) : 0, y = this.twitter !== null ? t.createString(this.twitter) : 0,
|
|
427
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.name !== null ? t.createString(this.name) : 0, i = this.displayName !== null ? t.createString(this.displayName) : 0, o = this.picture !== null ? t.createString(this.picture) : 0, r = this.banner !== null ? t.createString(this.banner) : 0, a = this.about !== null ? t.createString(this.about) : 0, h = this.website !== null ? t.createString(this.website) : 0, d = this.nip05 !== null ? t.createString(this.nip05) : 0, b = this.lud06 !== null ? t.createString(this.lud06) : 0, l = this.lud16 !== null ? t.createString(this.lud16) : 0, u = this.github !== null ? t.createString(this.github) : 0, y = this.twitter !== null ? t.createString(this.twitter) : 0, I = this.mastodon !== null ? t.createString(this.mastodon) : 0, V = this.nostr !== null ? t.createString(this.nostr) : 0, K = this.displayNameAlt !== null ? t.createString(this.displayNameAlt) : 0, U = this.username !== null ? t.createString(this.username) : 0, J = this.bio !== null ? t.createString(this.bio) : 0, $ = this.image !== null ? t.createString(this.image) : 0, tt = this.avatar !== null ? t.createString(this.avatar) : 0, It = this.background !== null ? t.createString(this.background) : 0;
|
|
428
428
|
return p.createKind0Parsed(
|
|
429
429
|
t,
|
|
430
430
|
s,
|
|
@@ -439,18 +439,18 @@ class ss {
|
|
|
439
439
|
l,
|
|
440
440
|
u,
|
|
441
441
|
y,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
Q,
|
|
447
|
-
Y,
|
|
442
|
+
I,
|
|
443
|
+
V,
|
|
444
|
+
K,
|
|
445
|
+
U,
|
|
448
446
|
J,
|
|
449
|
-
|
|
447
|
+
$,
|
|
448
|
+
tt,
|
|
449
|
+
It
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class ct {
|
|
454
454
|
constructor() {
|
|
455
455
|
this.bb = null, this.bb_pos = 0;
|
|
456
456
|
}
|
|
@@ -458,10 +458,10 @@ class at {
|
|
|
458
458
|
return this.bb_pos = t, this.bb = s, this;
|
|
459
459
|
}
|
|
460
460
|
static getRootAsRelayInfo(t, s) {
|
|
461
|
-
return (s || new
|
|
461
|
+
return (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
462
462
|
}
|
|
463
463
|
static getSizePrefixedRootAsRelayInfo(t, s) {
|
|
464
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
464
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
465
465
|
}
|
|
466
466
|
url(t) {
|
|
467
467
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -492,10 +492,10 @@ class at {
|
|
|
492
492
|
return t.requiredField(s, 4), s;
|
|
493
493
|
}
|
|
494
494
|
static createRelayInfo(t, s, e, i) {
|
|
495
|
-
return
|
|
495
|
+
return ct.startRelayInfo(t), ct.addUrl(t, s), ct.addRead(t, e), ct.addWrite(t, i), ct.endRelayInfo(t);
|
|
496
496
|
}
|
|
497
497
|
unpack() {
|
|
498
|
-
return new
|
|
498
|
+
return new as(
|
|
499
499
|
this.url(),
|
|
500
500
|
this.read(),
|
|
501
501
|
this.write()
|
|
@@ -505,13 +505,13 @@ class at {
|
|
|
505
505
|
t.url = this.url(), t.read = this.read(), t.write = this.write();
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
class
|
|
508
|
+
class as {
|
|
509
509
|
constructor(t = null, s = false, e = false) {
|
|
510
510
|
this.url = t, this.read = s, this.write = e;
|
|
511
511
|
}
|
|
512
512
|
pack(t) {
|
|
513
513
|
const s = this.url !== null ? t.createString(this.url) : 0;
|
|
514
|
-
return
|
|
514
|
+
return ct.createRelayInfo(
|
|
515
515
|
t,
|
|
516
516
|
s,
|
|
517
517
|
this.read,
|
|
@@ -519,7 +519,7 @@ class es {
|
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
class
|
|
522
|
+
class Pt {
|
|
523
523
|
constructor() {
|
|
524
524
|
this.bb = null, this.bb_pos = 0;
|
|
525
525
|
}
|
|
@@ -527,14 +527,14 @@ class It {
|
|
|
527
527
|
return this.bb_pos = t, this.bb = s, this;
|
|
528
528
|
}
|
|
529
529
|
static getRootAsKind10002Parsed(t, s) {
|
|
530
|
-
return (s || new
|
|
530
|
+
return (s || new Pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
531
531
|
}
|
|
532
532
|
static getSizePrefixedRootAsKind10002Parsed(t, s) {
|
|
533
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
533
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
534
534
|
}
|
|
535
535
|
relays(t, s) {
|
|
536
536
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
537
|
-
return e ? (s || new
|
|
537
|
+
return e ? (s || new ct()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
538
538
|
}
|
|
539
539
|
relaysLength() {
|
|
540
540
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -560,10 +560,10 @@ class It {
|
|
|
560
560
|
return t.requiredField(s, 4), s;
|
|
561
561
|
}
|
|
562
562
|
static createKind10002Parsed(t, s) {
|
|
563
|
-
return
|
|
563
|
+
return Pt.startKind10002Parsed(t), Pt.addRelays(t, s), Pt.endKind10002Parsed(t);
|
|
564
564
|
}
|
|
565
565
|
unpack() {
|
|
566
|
-
return new
|
|
566
|
+
return new hs(
|
|
567
567
|
this.bb.createObjList(this.relays.bind(this), this.relaysLength())
|
|
568
568
|
);
|
|
569
569
|
}
|
|
@@ -571,19 +571,19 @@ class It {
|
|
|
571
571
|
t.relays = this.bb.createObjList(this.relays.bind(this), this.relaysLength());
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
class
|
|
574
|
+
class hs {
|
|
575
575
|
constructor(t = []) {
|
|
576
576
|
this.relays = t;
|
|
577
577
|
}
|
|
578
578
|
pack(t) {
|
|
579
|
-
const s =
|
|
580
|
-
return
|
|
579
|
+
const s = Pt.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
580
|
+
return Pt.createKind10002Parsed(
|
|
581
581
|
t,
|
|
582
582
|
s
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
class
|
|
586
|
+
class ut {
|
|
587
587
|
constructor() {
|
|
588
588
|
this.bb = null, this.bb_pos = 0;
|
|
589
589
|
}
|
|
@@ -591,10 +591,10 @@ class lt {
|
|
|
591
591
|
return this.bb_pos = t, this.bb = s, this;
|
|
592
592
|
}
|
|
593
593
|
static getRootAsMintInfo(t, s) {
|
|
594
|
-
return (s || new
|
|
594
|
+
return (s || new ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
595
595
|
}
|
|
596
596
|
static getSizePrefixedRootAsMintInfo(t, s) {
|
|
597
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
597
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
598
598
|
}
|
|
599
599
|
url(t) {
|
|
600
600
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -631,10 +631,10 @@ class lt {
|
|
|
631
631
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
632
632
|
}
|
|
633
633
|
static createMintInfo(t, s, e) {
|
|
634
|
-
return
|
|
634
|
+
return ut.startMintInfo(t), ut.addUrl(t, s), ut.addBaseUnits(t, e), ut.endMintInfo(t);
|
|
635
635
|
}
|
|
636
636
|
unpack() {
|
|
637
|
-
return new
|
|
637
|
+
return new cs(
|
|
638
638
|
this.url(),
|
|
639
639
|
this.bb.createScalarList(this.baseUnits.bind(this), this.baseUnitsLength())
|
|
640
640
|
);
|
|
@@ -643,20 +643,20 @@ class lt {
|
|
|
643
643
|
t.url = this.url(), t.baseUnits = this.bb.createScalarList(this.baseUnits.bind(this), this.baseUnitsLength());
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
class
|
|
646
|
+
class cs {
|
|
647
647
|
constructor(t = null, s = []) {
|
|
648
648
|
this.url = t, this.baseUnits = s;
|
|
649
649
|
}
|
|
650
650
|
pack(t) {
|
|
651
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e =
|
|
652
|
-
return
|
|
651
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = ut.createBaseUnitsVector(t, t.createObjectOffsetList(this.baseUnits));
|
|
652
|
+
return ut.createMintInfo(
|
|
653
653
|
t,
|
|
654
654
|
s,
|
|
655
655
|
e
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
class
|
|
659
|
+
class Y {
|
|
660
660
|
constructor() {
|
|
661
661
|
this.bb = null, this.bb_pos = 0;
|
|
662
662
|
}
|
|
@@ -664,14 +664,14 @@ class W {
|
|
|
664
664
|
return this.bb_pos = t, this.bb = s, this;
|
|
665
665
|
}
|
|
666
666
|
static getRootAsKind10019Parsed(t, s) {
|
|
667
|
-
return (s || new
|
|
667
|
+
return (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
668
668
|
}
|
|
669
669
|
static getSizePrefixedRootAsKind10019Parsed(t, s) {
|
|
670
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
670
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Y()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
671
671
|
}
|
|
672
672
|
trustedMints(t, s) {
|
|
673
673
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
674
|
-
return e ? (s || new
|
|
674
|
+
return e ? (s || new ut()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
675
675
|
}
|
|
676
676
|
trustedMintsLength() {
|
|
677
677
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -723,10 +723,10 @@ class W {
|
|
|
723
723
|
return t.endObject();
|
|
724
724
|
}
|
|
725
725
|
static createKind10019Parsed(t, s, e, i) {
|
|
726
|
-
return
|
|
726
|
+
return Y.startKind10019Parsed(t), Y.addTrustedMints(t, s), Y.addP2pkPubkey(t, e), Y.addReadRelays(t, i), Y.endKind10019Parsed(t);
|
|
727
727
|
}
|
|
728
728
|
unpack() {
|
|
729
|
-
return new
|
|
729
|
+
return new ds(
|
|
730
730
|
this.bb.createObjList(this.trustedMints.bind(this), this.trustedMintsLength()),
|
|
731
731
|
this.p2pkPubkey(),
|
|
732
732
|
this.bb.createScalarList(this.readRelays.bind(this), this.readRelaysLength())
|
|
@@ -736,13 +736,13 @@ class W {
|
|
|
736
736
|
t.trustedMints = this.bb.createObjList(this.trustedMints.bind(this), this.trustedMintsLength()), t.p2pkPubkey = this.p2pkPubkey(), t.readRelays = this.bb.createScalarList(this.readRelays.bind(this), this.readRelaysLength());
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
class
|
|
739
|
+
class ds {
|
|
740
740
|
constructor(t = [], s = null, e = []) {
|
|
741
741
|
this.trustedMints = t, this.p2pkPubkey = s, this.readRelays = e;
|
|
742
742
|
}
|
|
743
743
|
pack(t) {
|
|
744
|
-
const s =
|
|
745
|
-
return
|
|
744
|
+
const s = Y.createTrustedMintsVector(t, t.createObjectOffsetList(this.trustedMints)), e = this.p2pkPubkey !== null ? t.createString(this.p2pkPubkey) : 0, i = Y.createReadRelaysVector(t, t.createObjectOffsetList(this.readRelays));
|
|
745
|
+
return Y.createKind10019Parsed(
|
|
746
746
|
t,
|
|
747
747
|
s,
|
|
748
748
|
e,
|
|
@@ -750,7 +750,98 @@ class os {
|
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
class
|
|
753
|
+
class G {
|
|
754
|
+
constructor() {
|
|
755
|
+
this.bb = null, this.bb_pos = 0;
|
|
756
|
+
}
|
|
757
|
+
__init(t, s) {
|
|
758
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
759
|
+
}
|
|
760
|
+
static getRootAsKind1018Parsed(t, s) {
|
|
761
|
+
return (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
762
|
+
}
|
|
763
|
+
static getSizePrefixedRootAsKind1018Parsed(t, s) {
|
|
764
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new G()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
765
|
+
}
|
|
766
|
+
id(t) {
|
|
767
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
768
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
769
|
+
}
|
|
770
|
+
pubkey(t) {
|
|
771
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
772
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
773
|
+
}
|
|
774
|
+
pollEventId(t) {
|
|
775
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
776
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
777
|
+
}
|
|
778
|
+
selectedOptions(t, s) {
|
|
779
|
+
const e = this.bb.__offset(this.bb_pos, 10);
|
|
780
|
+
return e ? this.bb.__string(this.bb.__vector(this.bb_pos + e) + t * 4, s) : null;
|
|
781
|
+
}
|
|
782
|
+
selectedOptionsLength() {
|
|
783
|
+
const t = this.bb.__offset(this.bb_pos, 10);
|
|
784
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
785
|
+
}
|
|
786
|
+
static startKind1018Parsed(t) {
|
|
787
|
+
t.startObject(4);
|
|
788
|
+
}
|
|
789
|
+
static addId(t, s) {
|
|
790
|
+
t.addFieldOffset(0, s, 0);
|
|
791
|
+
}
|
|
792
|
+
static addPubkey(t, s) {
|
|
793
|
+
t.addFieldOffset(1, s, 0);
|
|
794
|
+
}
|
|
795
|
+
static addPollEventId(t, s) {
|
|
796
|
+
t.addFieldOffset(2, s, 0);
|
|
797
|
+
}
|
|
798
|
+
static addSelectedOptions(t, s) {
|
|
799
|
+
t.addFieldOffset(3, s, 0);
|
|
800
|
+
}
|
|
801
|
+
static createSelectedOptionsVector(t, s) {
|
|
802
|
+
t.startVector(4, s.length, 4);
|
|
803
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
804
|
+
t.addOffset(s[e]);
|
|
805
|
+
return t.endVector();
|
|
806
|
+
}
|
|
807
|
+
static startSelectedOptionsVector(t, s) {
|
|
808
|
+
t.startVector(4, s, 4);
|
|
809
|
+
}
|
|
810
|
+
static endKind1018Parsed(t) {
|
|
811
|
+
const s = t.endObject();
|
|
812
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
813
|
+
}
|
|
814
|
+
static createKind1018Parsed(t, s, e, i, o) {
|
|
815
|
+
return G.startKind1018Parsed(t), G.addId(t, s), G.addPubkey(t, e), G.addPollEventId(t, i), G.addSelectedOptions(t, o), G.endKind1018Parsed(t);
|
|
816
|
+
}
|
|
817
|
+
unpack() {
|
|
818
|
+
return new bs(
|
|
819
|
+
this.id(),
|
|
820
|
+
this.pubkey(),
|
|
821
|
+
this.pollEventId(),
|
|
822
|
+
this.bb.createScalarList(this.selectedOptions.bind(this), this.selectedOptionsLength())
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
unpackTo(t) {
|
|
826
|
+
t.id = this.id(), t.pubkey = this.pubkey(), t.pollEventId = this.pollEventId(), t.selectedOptions = this.bb.createScalarList(this.selectedOptions.bind(this), this.selectedOptionsLength());
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
class bs {
|
|
830
|
+
constructor(t = null, s = null, e = null, i = []) {
|
|
831
|
+
this.id = t, this.pubkey = s, this.pollEventId = e, this.selectedOptions = i;
|
|
832
|
+
}
|
|
833
|
+
pack(t) {
|
|
834
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.pollEventId !== null ? t.createString(this.pollEventId) : 0, o = G.createSelectedOptionsVector(t, t.createObjectOffsetList(this.selectedOptions));
|
|
835
|
+
return G.createKind1018Parsed(
|
|
836
|
+
t,
|
|
837
|
+
s,
|
|
838
|
+
e,
|
|
839
|
+
i,
|
|
840
|
+
o
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
class wt {
|
|
754
845
|
constructor() {
|
|
755
846
|
this.bb = null, this.bb_pos = 0;
|
|
756
847
|
}
|
|
@@ -758,10 +849,10 @@ class Vt {
|
|
|
758
849
|
return this.bb_pos = t, this.bb = s, this;
|
|
759
850
|
}
|
|
760
851
|
static getRootAsCashuData(t, s) {
|
|
761
|
-
return (s || new
|
|
852
|
+
return (s || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
762
853
|
}
|
|
763
854
|
static getSizePrefixedRootAsCashuData(t, s) {
|
|
764
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
855
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new wt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
765
856
|
}
|
|
766
857
|
token(t) {
|
|
767
858
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -778,10 +869,10 @@ class Vt {
|
|
|
778
869
|
return t.requiredField(s, 4), s;
|
|
779
870
|
}
|
|
780
871
|
static createCashuData(t, s) {
|
|
781
|
-
return
|
|
872
|
+
return wt.startCashuData(t), wt.addToken(t, s), wt.endCashuData(t);
|
|
782
873
|
}
|
|
783
874
|
unpack() {
|
|
784
|
-
return new
|
|
875
|
+
return new fs(
|
|
785
876
|
this.token()
|
|
786
877
|
);
|
|
787
878
|
}
|
|
@@ -789,19 +880,19 @@ class Vt {
|
|
|
789
880
|
t.token = this.token();
|
|
790
881
|
}
|
|
791
882
|
}
|
|
792
|
-
class
|
|
883
|
+
class fs {
|
|
793
884
|
constructor(t = null) {
|
|
794
885
|
this.token = t;
|
|
795
886
|
}
|
|
796
887
|
pack(t) {
|
|
797
888
|
const s = this.token !== null ? t.createString(this.token) : 0;
|
|
798
|
-
return
|
|
889
|
+
return wt.createCashuData(
|
|
799
890
|
t,
|
|
800
891
|
s
|
|
801
892
|
);
|
|
802
893
|
}
|
|
803
894
|
}
|
|
804
|
-
class
|
|
895
|
+
class mt {
|
|
805
896
|
constructor() {
|
|
806
897
|
this.bb = null, this.bb_pos = 0;
|
|
807
898
|
}
|
|
@@ -809,10 +900,10 @@ class yt {
|
|
|
809
900
|
return this.bb_pos = t, this.bb = s, this;
|
|
810
901
|
}
|
|
811
902
|
static getRootAsCodeData(t, s) {
|
|
812
|
-
return (s || new
|
|
903
|
+
return (s || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
813
904
|
}
|
|
814
905
|
static getSizePrefixedRootAsCodeData(t, s) {
|
|
815
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
906
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new mt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
816
907
|
}
|
|
817
908
|
language(t) {
|
|
818
909
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -836,10 +927,10 @@ class yt {
|
|
|
836
927
|
return t.requiredField(s, 6), s;
|
|
837
928
|
}
|
|
838
929
|
static createCodeData(t, s, e) {
|
|
839
|
-
return
|
|
930
|
+
return mt.startCodeData(t), mt.addLanguage(t, s), mt.addCode(t, e), mt.endCodeData(t);
|
|
840
931
|
}
|
|
841
932
|
unpack() {
|
|
842
|
-
return new
|
|
933
|
+
return new ls(
|
|
843
934
|
this.language(),
|
|
844
935
|
this.code()
|
|
845
936
|
);
|
|
@@ -848,20 +939,89 @@ class yt {
|
|
|
848
939
|
t.language = this.language(), t.code = this.code();
|
|
849
940
|
}
|
|
850
941
|
}
|
|
851
|
-
class
|
|
942
|
+
class ls {
|
|
852
943
|
constructor(t = null, s = null) {
|
|
853
944
|
this.language = t, this.code = s;
|
|
854
945
|
}
|
|
855
946
|
pack(t) {
|
|
856
947
|
const s = this.language !== null ? t.createString(this.language) : 0, e = this.code !== null ? t.createString(this.code) : 0;
|
|
857
|
-
return
|
|
948
|
+
return mt.createCodeData(
|
|
858
949
|
t,
|
|
859
950
|
s,
|
|
860
951
|
e
|
|
861
952
|
);
|
|
862
953
|
}
|
|
863
954
|
}
|
|
864
|
-
class
|
|
955
|
+
class dt {
|
|
956
|
+
constructor() {
|
|
957
|
+
this.bb = null, this.bb_pos = 0;
|
|
958
|
+
}
|
|
959
|
+
__init(t, s) {
|
|
960
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
961
|
+
}
|
|
962
|
+
static getRootAsEmojiData(t, s) {
|
|
963
|
+
return (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
964
|
+
}
|
|
965
|
+
static getSizePrefixedRootAsEmojiData(t, s) {
|
|
966
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
967
|
+
}
|
|
968
|
+
shortcode(t) {
|
|
969
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
970
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
971
|
+
}
|
|
972
|
+
url(t) {
|
|
973
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
974
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
975
|
+
}
|
|
976
|
+
emojiSet(t) {
|
|
977
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
978
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
979
|
+
}
|
|
980
|
+
static startEmojiData(t) {
|
|
981
|
+
t.startObject(3);
|
|
982
|
+
}
|
|
983
|
+
static addShortcode(t, s) {
|
|
984
|
+
t.addFieldOffset(0, s, 0);
|
|
985
|
+
}
|
|
986
|
+
static addUrl(t, s) {
|
|
987
|
+
t.addFieldOffset(1, s, 0);
|
|
988
|
+
}
|
|
989
|
+
static addEmojiSet(t, s) {
|
|
990
|
+
t.addFieldOffset(2, s, 0);
|
|
991
|
+
}
|
|
992
|
+
static endEmojiData(t) {
|
|
993
|
+
const s = t.endObject();
|
|
994
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
995
|
+
}
|
|
996
|
+
static createEmojiData(t, s, e, i) {
|
|
997
|
+
return dt.startEmojiData(t), dt.addShortcode(t, s), dt.addUrl(t, e), dt.addEmojiSet(t, i), dt.endEmojiData(t);
|
|
998
|
+
}
|
|
999
|
+
unpack() {
|
|
1000
|
+
return new _s(
|
|
1001
|
+
this.shortcode(),
|
|
1002
|
+
this.url(),
|
|
1003
|
+
this.emojiSet()
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
unpackTo(t) {
|
|
1007
|
+
t.shortcode = this.shortcode(), t.url = this.url(), t.emojiSet = this.emojiSet();
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
class _s {
|
|
1011
|
+
constructor(t = null, s = null, e = null) {
|
|
1012
|
+
this.shortcode = t, this.url = s, this.emojiSet = e;
|
|
1013
|
+
}
|
|
1014
|
+
pack(t) {
|
|
1015
|
+
const s = this.shortcode !== null ? t.createString(this.shortcode) : 0, e = this.url !== null ? t.createString(this.url) : 0, i = this.emojiSet !== null ? t.createString(this.emojiSet) : 0;
|
|
1016
|
+
return dt.createEmojiData(
|
|
1017
|
+
t,
|
|
1018
|
+
s,
|
|
1019
|
+
e,
|
|
1020
|
+
i
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
class jt {
|
|
865
1025
|
constructor() {
|
|
866
1026
|
this.bb = null, this.bb_pos = 0;
|
|
867
1027
|
}
|
|
@@ -869,10 +1029,10 @@ class Rt {
|
|
|
869
1029
|
return this.bb_pos = t, this.bb = s, this;
|
|
870
1030
|
}
|
|
871
1031
|
static getRootAsHashtagData(t, s) {
|
|
872
|
-
return (s || new
|
|
1032
|
+
return (s || new jt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
873
1033
|
}
|
|
874
1034
|
static getSizePrefixedRootAsHashtagData(t, s) {
|
|
875
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1035
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new jt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
876
1036
|
}
|
|
877
1037
|
tag(t) {
|
|
878
1038
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -889,10 +1049,10 @@ class Rt {
|
|
|
889
1049
|
return t.requiredField(s, 4), s;
|
|
890
1050
|
}
|
|
891
1051
|
static createHashtagData(t, s) {
|
|
892
|
-
return
|
|
1052
|
+
return jt.startHashtagData(t), jt.addTag(t, s), jt.endHashtagData(t);
|
|
893
1053
|
}
|
|
894
1054
|
unpack() {
|
|
895
|
-
return new
|
|
1055
|
+
return new ps(
|
|
896
1056
|
this.tag()
|
|
897
1057
|
);
|
|
898
1058
|
}
|
|
@@ -900,19 +1060,19 @@ class Rt {
|
|
|
900
1060
|
t.tag = this.tag();
|
|
901
1061
|
}
|
|
902
1062
|
}
|
|
903
|
-
class
|
|
1063
|
+
class ps {
|
|
904
1064
|
constructor(t = null) {
|
|
905
1065
|
this.tag = t;
|
|
906
1066
|
}
|
|
907
1067
|
pack(t) {
|
|
908
1068
|
const s = this.tag !== null ? t.createString(this.tag) : 0;
|
|
909
|
-
return
|
|
1069
|
+
return jt.createHashtagData(
|
|
910
1070
|
t,
|
|
911
1071
|
s
|
|
912
1072
|
);
|
|
913
1073
|
}
|
|
914
1074
|
}
|
|
915
|
-
class
|
|
1075
|
+
class rt {
|
|
916
1076
|
constructor() {
|
|
917
1077
|
this.bb = null, this.bb_pos = 0;
|
|
918
1078
|
}
|
|
@@ -920,10 +1080,10 @@ class nt {
|
|
|
920
1080
|
return this.bb_pos = t, this.bb = s, this;
|
|
921
1081
|
}
|
|
922
1082
|
static getRootAsImageData(t, s) {
|
|
923
|
-
return (s || new
|
|
1083
|
+
return (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
924
1084
|
}
|
|
925
1085
|
static getSizePrefixedRootAsImageData(t, s) {
|
|
926
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1086
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
927
1087
|
}
|
|
928
1088
|
url(t) {
|
|
929
1089
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -954,10 +1114,10 @@ class nt {
|
|
|
954
1114
|
return t.requiredField(s, 4), s;
|
|
955
1115
|
}
|
|
956
1116
|
static createImageData(t, s, e, i) {
|
|
957
|
-
return
|
|
1117
|
+
return rt.startImageData(t), rt.addUrl(t, s), rt.addAlt(t, e), rt.addDim(t, i), rt.endImageData(t);
|
|
958
1118
|
}
|
|
959
1119
|
unpack() {
|
|
960
|
-
return new
|
|
1120
|
+
return new us(
|
|
961
1121
|
this.url(),
|
|
962
1122
|
this.alt(),
|
|
963
1123
|
this.dim()
|
|
@@ -967,13 +1127,13 @@ class nt {
|
|
|
967
1127
|
t.url = this.url(), t.alt = this.alt(), t.dim = this.dim();
|
|
968
1128
|
}
|
|
969
1129
|
}
|
|
970
|
-
class
|
|
1130
|
+
class us {
|
|
971
1131
|
constructor(t = null, s = null, e = null) {
|
|
972
1132
|
this.url = t, this.alt = s, this.dim = e;
|
|
973
1133
|
}
|
|
974
1134
|
pack(t) {
|
|
975
1135
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.alt !== null ? t.createString(this.alt) : 0, i = this.dim !== null ? t.createString(this.dim) : 0;
|
|
976
|
-
return
|
|
1136
|
+
return rt.createImageData(
|
|
977
1137
|
t,
|
|
978
1138
|
s,
|
|
979
1139
|
e,
|
|
@@ -981,7 +1141,7 @@ class cs {
|
|
|
981
1141
|
);
|
|
982
1142
|
}
|
|
983
1143
|
}
|
|
984
|
-
class
|
|
1144
|
+
class et {
|
|
985
1145
|
constructor() {
|
|
986
1146
|
this.bb = null, this.bb_pos = 0;
|
|
987
1147
|
}
|
|
@@ -989,10 +1149,10 @@ class tt {
|
|
|
989
1149
|
return this.bb_pos = t, this.bb = s, this;
|
|
990
1150
|
}
|
|
991
1151
|
static getRootAsLinkPreviewData(t, s) {
|
|
992
|
-
return (s || new
|
|
1152
|
+
return (s || new et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
993
1153
|
}
|
|
994
1154
|
static getSizePrefixedRootAsLinkPreviewData(t, s) {
|
|
995
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1155
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
996
1156
|
}
|
|
997
1157
|
url(t) {
|
|
998
1158
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1030,10 +1190,10 @@ class tt {
|
|
|
1030
1190
|
return t.requiredField(s, 4), s;
|
|
1031
1191
|
}
|
|
1032
1192
|
static createLinkPreviewData(t, s, e, i, o) {
|
|
1033
|
-
return
|
|
1193
|
+
return et.startLinkPreviewData(t), et.addUrl(t, s), et.addTitle(t, e), et.addDescription(t, i), et.addImage(t, o), et.endLinkPreviewData(t);
|
|
1034
1194
|
}
|
|
1035
1195
|
unpack() {
|
|
1036
|
-
return new
|
|
1196
|
+
return new gs(
|
|
1037
1197
|
this.url(),
|
|
1038
1198
|
this.title(),
|
|
1039
1199
|
this.description(),
|
|
@@ -1044,13 +1204,13 @@ class tt {
|
|
|
1044
1204
|
t.url = this.url(), t.title = this.title(), t.description = this.description(), t.image = this.image();
|
|
1045
1205
|
}
|
|
1046
1206
|
}
|
|
1047
|
-
class
|
|
1207
|
+
class gs {
|
|
1048
1208
|
constructor(t = null, s = null, e = null, i = null) {
|
|
1049
1209
|
this.url = t, this.title = s, this.description = e, this.image = i;
|
|
1050
1210
|
}
|
|
1051
1211
|
pack(t) {
|
|
1052
1212
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.title !== null ? t.createString(this.title) : 0, i = this.description !== null ? t.createString(this.description) : 0, o = this.image !== null ? t.createString(this.image) : 0;
|
|
1053
|
-
return
|
|
1213
|
+
return et.createLinkPreviewData(
|
|
1054
1214
|
t,
|
|
1055
1215
|
s,
|
|
1056
1216
|
e,
|
|
@@ -1059,7 +1219,7 @@ class ds {
|
|
|
1059
1219
|
);
|
|
1060
1220
|
}
|
|
1061
1221
|
}
|
|
1062
|
-
class
|
|
1222
|
+
class at {
|
|
1063
1223
|
constructor() {
|
|
1064
1224
|
this.bb = null, this.bb_pos = 0;
|
|
1065
1225
|
}
|
|
@@ -1067,10 +1227,10 @@ class ot {
|
|
|
1067
1227
|
return this.bb_pos = t, this.bb = s, this;
|
|
1068
1228
|
}
|
|
1069
1229
|
static getRootAsVideoData(t, s) {
|
|
1070
|
-
return (s || new
|
|
1230
|
+
return (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1071
1231
|
}
|
|
1072
1232
|
static getSizePrefixedRootAsVideoData(t, s) {
|
|
1073
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1233
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new at()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1074
1234
|
}
|
|
1075
1235
|
url(t) {
|
|
1076
1236
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1101,10 +1261,10 @@ class ot {
|
|
|
1101
1261
|
return t.requiredField(s, 4), s;
|
|
1102
1262
|
}
|
|
1103
1263
|
static createVideoData(t, s, e, i) {
|
|
1104
|
-
return
|
|
1264
|
+
return at.startVideoData(t), at.addUrl(t, s), at.addThumbnail(t, e), at.addDim(t, i), at.endVideoData(t);
|
|
1105
1265
|
}
|
|
1106
1266
|
unpack() {
|
|
1107
|
-
return new
|
|
1267
|
+
return new Os(
|
|
1108
1268
|
this.url(),
|
|
1109
1269
|
this.thumbnail(),
|
|
1110
1270
|
this.dim()
|
|
@@ -1114,13 +1274,13 @@ class ot {
|
|
|
1114
1274
|
t.url = this.url(), t.thumbnail = this.thumbnail(), t.dim = this.dim();
|
|
1115
1275
|
}
|
|
1116
1276
|
}
|
|
1117
|
-
class
|
|
1277
|
+
class Os {
|
|
1118
1278
|
constructor(t = null, s = null, e = null) {
|
|
1119
1279
|
this.url = t, this.thumbnail = s, this.dim = e;
|
|
1120
1280
|
}
|
|
1121
1281
|
pack(t) {
|
|
1122
1282
|
const s = this.url !== null ? t.createString(this.url) : 0, e = this.thumbnail !== null ? t.createString(this.thumbnail) : 0, i = this.dim !== null ? t.createString(this.dim) : 0;
|
|
1123
|
-
return
|
|
1283
|
+
return at.createVideoData(
|
|
1124
1284
|
t,
|
|
1125
1285
|
s,
|
|
1126
1286
|
e,
|
|
@@ -1128,7 +1288,7 @@ class bs {
|
|
|
1128
1288
|
);
|
|
1129
1289
|
}
|
|
1130
1290
|
}
|
|
1131
|
-
class
|
|
1291
|
+
class xt {
|
|
1132
1292
|
constructor() {
|
|
1133
1293
|
this.bb = null, this.bb_pos = 0;
|
|
1134
1294
|
}
|
|
@@ -1136,18 +1296,18 @@ class Kt {
|
|
|
1136
1296
|
return this.bb_pos = t, this.bb = s, this;
|
|
1137
1297
|
}
|
|
1138
1298
|
static getRootAsMediaItem(t, s) {
|
|
1139
|
-
return (s || new
|
|
1299
|
+
return (s || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1140
1300
|
}
|
|
1141
1301
|
static getSizePrefixedRootAsMediaItem(t, s) {
|
|
1142
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1302
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new xt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1143
1303
|
}
|
|
1144
1304
|
image(t) {
|
|
1145
1305
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1146
|
-
return s ? (t || new
|
|
1306
|
+
return s ? (t || new rt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1147
1307
|
}
|
|
1148
1308
|
video(t) {
|
|
1149
1309
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1150
|
-
return s ? (t || new
|
|
1310
|
+
return s ? (t || new at()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
1151
1311
|
}
|
|
1152
1312
|
static startMediaItem(t) {
|
|
1153
1313
|
t.startObject(2);
|
|
@@ -1162,7 +1322,7 @@ class Kt {
|
|
|
1162
1322
|
return t.endObject();
|
|
1163
1323
|
}
|
|
1164
1324
|
unpack() {
|
|
1165
|
-
return new
|
|
1325
|
+
return new ys(
|
|
1166
1326
|
this.image() !== null ? this.image().unpack() : null,
|
|
1167
1327
|
this.video() !== null ? this.video().unpack() : null
|
|
1168
1328
|
);
|
|
@@ -1171,16 +1331,16 @@ class Kt {
|
|
|
1171
1331
|
t.image = this.image() !== null ? this.image().unpack() : null, t.video = this.video() !== null ? this.video().unpack() : null;
|
|
1172
1332
|
}
|
|
1173
1333
|
}
|
|
1174
|
-
class
|
|
1334
|
+
class ys {
|
|
1175
1335
|
constructor(t = null, s = null) {
|
|
1176
1336
|
this.image = t, this.video = s;
|
|
1177
1337
|
}
|
|
1178
1338
|
pack(t) {
|
|
1179
1339
|
const s = this.image !== null ? this.image.pack(t) : 0, e = this.video !== null ? this.video.pack(t) : 0;
|
|
1180
|
-
return
|
|
1340
|
+
return xt.startMediaItem(t), xt.addImage(t, s), xt.addVideo(t, e), xt.endMediaItem(t);
|
|
1181
1341
|
}
|
|
1182
1342
|
}
|
|
1183
|
-
class
|
|
1343
|
+
class vt {
|
|
1184
1344
|
constructor() {
|
|
1185
1345
|
this.bb = null, this.bb_pos = 0;
|
|
1186
1346
|
}
|
|
@@ -1188,14 +1348,14 @@ class Lt {
|
|
|
1188
1348
|
return this.bb_pos = t, this.bb = s, this;
|
|
1189
1349
|
}
|
|
1190
1350
|
static getRootAsMediaGroupData(t, s) {
|
|
1191
|
-
return (s || new
|
|
1351
|
+
return (s || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1192
1352
|
}
|
|
1193
1353
|
static getSizePrefixedRootAsMediaGroupData(t, s) {
|
|
1194
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1354
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1195
1355
|
}
|
|
1196
1356
|
items(t, s) {
|
|
1197
1357
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
1198
|
-
return e ? (s || new
|
|
1358
|
+
return e ? (s || new xt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1199
1359
|
}
|
|
1200
1360
|
itemsLength() {
|
|
1201
1361
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1220,10 +1380,10 @@ class Lt {
|
|
|
1220
1380
|
return t.endObject();
|
|
1221
1381
|
}
|
|
1222
1382
|
static createMediaGroupData(t, s) {
|
|
1223
|
-
return
|
|
1383
|
+
return vt.startMediaGroupData(t), vt.addItems(t, s), vt.endMediaGroupData(t);
|
|
1224
1384
|
}
|
|
1225
1385
|
unpack() {
|
|
1226
|
-
return new
|
|
1386
|
+
return new ks(
|
|
1227
1387
|
this.bb.createObjList(this.items.bind(this), this.itemsLength())
|
|
1228
1388
|
);
|
|
1229
1389
|
}
|
|
@@ -1231,19 +1391,19 @@ class Lt {
|
|
|
1231
1391
|
t.items = this.bb.createObjList(this.items.bind(this), this.itemsLength());
|
|
1232
1392
|
}
|
|
1233
1393
|
}
|
|
1234
|
-
class
|
|
1394
|
+
class ks {
|
|
1235
1395
|
constructor(t = []) {
|
|
1236
1396
|
this.items = t;
|
|
1237
1397
|
}
|
|
1238
1398
|
pack(t) {
|
|
1239
|
-
const s =
|
|
1240
|
-
return
|
|
1399
|
+
const s = vt.createItemsVector(t, t.createObjectOffsetList(this.items));
|
|
1400
|
+
return vt.createMediaGroupData(
|
|
1241
1401
|
t,
|
|
1242
1402
|
s
|
|
1243
1403
|
);
|
|
1244
1404
|
}
|
|
1245
1405
|
}
|
|
1246
|
-
class
|
|
1406
|
+
class x {
|
|
1247
1407
|
constructor() {
|
|
1248
1408
|
this.bb = null, this.bb_pos = 0;
|
|
1249
1409
|
}
|
|
@@ -1251,10 +1411,10 @@ class U {
|
|
|
1251
1411
|
return this.bb_pos = t, this.bb = s, this;
|
|
1252
1412
|
}
|
|
1253
1413
|
static getRootAsNostrData(t, s) {
|
|
1254
|
-
return (s || new
|
|
1414
|
+
return (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1255
1415
|
}
|
|
1256
1416
|
static getSizePrefixedRootAsNostrData(t, s) {
|
|
1257
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1417
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new x()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1258
1418
|
}
|
|
1259
1419
|
id(t) {
|
|
1260
1420
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1312,10 +1472,10 @@ class U {
|
|
|
1312
1472
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1313
1473
|
}
|
|
1314
1474
|
static createNostrData(t, s, e, i, o, r) {
|
|
1315
|
-
return
|
|
1475
|
+
return x.startNostrData(t), x.addId(t, s), x.addEntity(t, e), x.addRelays(t, i), x.addAuthor(t, o), x.addKind(t, r), x.endNostrData(t);
|
|
1316
1476
|
}
|
|
1317
1477
|
unpack() {
|
|
1318
|
-
return new
|
|
1478
|
+
return new Is(
|
|
1319
1479
|
this.id(),
|
|
1320
1480
|
this.entity(),
|
|
1321
1481
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
@@ -1327,13 +1487,13 @@ class U {
|
|
|
1327
1487
|
t.id = this.id(), t.entity = this.entity(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.author = this.author(), t.kind = this.kind();
|
|
1328
1488
|
}
|
|
1329
1489
|
}
|
|
1330
|
-
class
|
|
1490
|
+
class Is {
|
|
1331
1491
|
constructor(t = null, s = null, e = [], i = null, o = BigInt("0")) {
|
|
1332
1492
|
this.id = t, this.entity = s, this.relays = e, this.author = i, this.kind = o;
|
|
1333
1493
|
}
|
|
1334
1494
|
pack(t) {
|
|
1335
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.entity !== null ? t.createString(this.entity) : 0, i =
|
|
1336
|
-
return
|
|
1495
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.entity !== null ? t.createString(this.entity) : 0, i = x.createRelaysVector(t, t.createObjectOffsetList(this.relays)), o = this.author !== null ? t.createString(this.author) : 0;
|
|
1496
|
+
return x.createNostrData(
|
|
1337
1497
|
t,
|
|
1338
1498
|
s,
|
|
1339
1499
|
e,
|
|
@@ -1343,27 +1503,29 @@ class _s {
|
|
|
1343
1503
|
);
|
|
1344
1504
|
}
|
|
1345
1505
|
}
|
|
1346
|
-
var
|
|
1347
|
-
function
|
|
1348
|
-
switch (
|
|
1506
|
+
var Bt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.CodeData = 1] = "CodeData", n[n.HashtagData = 2] = "HashtagData", n[n.CashuData = 3] = "CashuData", n[n.ImageData = 4] = "ImageData", n[n.VideoData = 5] = "VideoData", n[n.MediaGroupData = 6] = "MediaGroupData", n[n.NostrData = 7] = "NostrData", n[n.LinkPreviewData = 8] = "LinkPreviewData", n[n.EmojiData = 9] = "EmojiData", n))(Bt || {});
|
|
1507
|
+
function Jt(n, t) {
|
|
1508
|
+
switch (Bt[n]) {
|
|
1349
1509
|
case "NONE":
|
|
1350
1510
|
return null;
|
|
1351
1511
|
case "CodeData":
|
|
1352
|
-
return t(new
|
|
1512
|
+
return t(new mt());
|
|
1353
1513
|
case "HashtagData":
|
|
1354
|
-
return t(new
|
|
1514
|
+
return t(new jt());
|
|
1355
1515
|
case "CashuData":
|
|
1356
|
-
return t(new
|
|
1516
|
+
return t(new wt());
|
|
1357
1517
|
case "ImageData":
|
|
1358
|
-
return t(new
|
|
1518
|
+
return t(new rt());
|
|
1359
1519
|
case "VideoData":
|
|
1360
|
-
return t(new
|
|
1520
|
+
return t(new at());
|
|
1361
1521
|
case "MediaGroupData":
|
|
1362
|
-
return t(new
|
|
1522
|
+
return t(new vt());
|
|
1363
1523
|
case "NostrData":
|
|
1364
|
-
return t(new
|
|
1524
|
+
return t(new x());
|
|
1365
1525
|
case "LinkPreviewData":
|
|
1366
|
-
return t(new
|
|
1526
|
+
return t(new et());
|
|
1527
|
+
case "EmojiData":
|
|
1528
|
+
return t(new dt());
|
|
1367
1529
|
default:
|
|
1368
1530
|
return null;
|
|
1369
1531
|
}
|
|
@@ -1372,87 +1534,301 @@ class C {
|
|
|
1372
1534
|
constructor() {
|
|
1373
1535
|
this.bb = null, this.bb_pos = 0;
|
|
1374
1536
|
}
|
|
1375
|
-
__init(t, s) {
|
|
1376
|
-
return this.bb_pos = t, this.bb = s, this;
|
|
1537
|
+
__init(t, s) {
|
|
1538
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1539
|
+
}
|
|
1540
|
+
static getRootAsContentBlock(t, s) {
|
|
1541
|
+
return (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1542
|
+
}
|
|
1543
|
+
static getSizePrefixedRootAsContentBlock(t, s) {
|
|
1544
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new C()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1545
|
+
}
|
|
1546
|
+
type(t) {
|
|
1547
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1548
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1549
|
+
}
|
|
1550
|
+
text(t) {
|
|
1551
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1552
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1553
|
+
}
|
|
1554
|
+
dataType() {
|
|
1555
|
+
const t = this.bb.__offset(this.bb_pos, 8);
|
|
1556
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Bt.NONE;
|
|
1557
|
+
}
|
|
1558
|
+
data(t) {
|
|
1559
|
+
const s = this.bb.__offset(this.bb_pos, 10);
|
|
1560
|
+
return s ? this.bb.__union(t, this.bb_pos + s) : null;
|
|
1561
|
+
}
|
|
1562
|
+
static startContentBlock(t) {
|
|
1563
|
+
t.startObject(4);
|
|
1564
|
+
}
|
|
1565
|
+
static addType(t, s) {
|
|
1566
|
+
t.addFieldOffset(0, s, 0);
|
|
1567
|
+
}
|
|
1568
|
+
static addText(t, s) {
|
|
1569
|
+
t.addFieldOffset(1, s, 0);
|
|
1570
|
+
}
|
|
1571
|
+
static addDataType(t, s) {
|
|
1572
|
+
t.addFieldInt8(2, s, Bt.NONE);
|
|
1573
|
+
}
|
|
1574
|
+
static addData(t, s) {
|
|
1575
|
+
t.addFieldOffset(3, s, 0);
|
|
1576
|
+
}
|
|
1577
|
+
static endContentBlock(t) {
|
|
1578
|
+
const s = t.endObject();
|
|
1579
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1580
|
+
}
|
|
1581
|
+
static createContentBlock(t, s, e, i, o) {
|
|
1582
|
+
return C.startContentBlock(t), C.addType(t, s), C.addText(t, e), C.addDataType(t, i), C.addData(t, o), C.endContentBlock(t);
|
|
1583
|
+
}
|
|
1584
|
+
unpack() {
|
|
1585
|
+
return new ms(
|
|
1586
|
+
this.type(),
|
|
1587
|
+
this.text(),
|
|
1588
|
+
this.dataType(),
|
|
1589
|
+
(() => {
|
|
1590
|
+
const t = Jt(this.dataType(), this.data.bind(this));
|
|
1591
|
+
return t === null ? null : t.unpack();
|
|
1592
|
+
})()
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1595
|
+
unpackTo(t) {
|
|
1596
|
+
t.type = this.type(), t.text = this.text(), t.dataType = this.dataType(), t.data = (() => {
|
|
1597
|
+
const s = Jt(this.dataType(), this.data.bind(this));
|
|
1598
|
+
return s === null ? null : s.unpack();
|
|
1599
|
+
})();
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
class ms {
|
|
1603
|
+
constructor(t = null, s = null, e = Bt.NONE, i = null) {
|
|
1604
|
+
this.type = t, this.text = s, this.dataType = e, this.data = i;
|
|
1605
|
+
}
|
|
1606
|
+
pack(t) {
|
|
1607
|
+
const s = this.type !== null ? t.createString(this.type) : 0, e = this.text !== null ? t.createString(this.text) : 0, i = t.createObjectOffset(this.data);
|
|
1608
|
+
return C.createContentBlock(
|
|
1609
|
+
t,
|
|
1610
|
+
s,
|
|
1611
|
+
e,
|
|
1612
|
+
this.dataType,
|
|
1613
|
+
i
|
|
1614
|
+
);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
class Lt {
|
|
1618
|
+
constructor() {
|
|
1619
|
+
this.bb = null, this.bb_pos = 0;
|
|
1620
|
+
}
|
|
1621
|
+
__init(t, s) {
|
|
1622
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1623
|
+
}
|
|
1624
|
+
static getRootAsPollOption(t, s) {
|
|
1625
|
+
return (s || new Lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1626
|
+
}
|
|
1627
|
+
static getSizePrefixedRootAsPollOption(t, s) {
|
|
1628
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1629
|
+
}
|
|
1630
|
+
id(t) {
|
|
1631
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1632
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1633
|
+
}
|
|
1634
|
+
label(t) {
|
|
1635
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1636
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1637
|
+
}
|
|
1638
|
+
static startPollOption(t) {
|
|
1639
|
+
t.startObject(2);
|
|
1640
|
+
}
|
|
1641
|
+
static addId(t, s) {
|
|
1642
|
+
t.addFieldOffset(0, s, 0);
|
|
1643
|
+
}
|
|
1644
|
+
static addLabel(t, s) {
|
|
1645
|
+
t.addFieldOffset(1, s, 0);
|
|
1646
|
+
}
|
|
1647
|
+
static endPollOption(t) {
|
|
1648
|
+
const s = t.endObject();
|
|
1649
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1650
|
+
}
|
|
1651
|
+
static createPollOption(t, s, e) {
|
|
1652
|
+
return Lt.startPollOption(t), Lt.addId(t, s), Lt.addLabel(t, e), Lt.endPollOption(t);
|
|
1653
|
+
}
|
|
1654
|
+
unpack() {
|
|
1655
|
+
return new Ls(
|
|
1656
|
+
this.id(),
|
|
1657
|
+
this.label()
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1660
|
+
unpackTo(t) {
|
|
1661
|
+
t.id = this.id(), t.label = this.label();
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
class Ls {
|
|
1665
|
+
constructor(t = null, s = null) {
|
|
1666
|
+
this.id = t, this.label = s;
|
|
1667
|
+
}
|
|
1668
|
+
pack(t) {
|
|
1669
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.label !== null ? t.createString(this.label) : 0;
|
|
1670
|
+
return Lt.createPollOption(
|
|
1671
|
+
t,
|
|
1672
|
+
s,
|
|
1673
|
+
e
|
|
1674
|
+
);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
var Gt = /* @__PURE__ */ ((n) => (n[n.SingleChoice = 0] = "SingleChoice", n[n.MultipleChoice = 1] = "MultipleChoice", n))(Gt || {});
|
|
1678
|
+
class S {
|
|
1679
|
+
constructor() {
|
|
1680
|
+
this.bb = null, this.bb_pos = 0;
|
|
1681
|
+
}
|
|
1682
|
+
__init(t, s) {
|
|
1683
|
+
return this.bb_pos = t, this.bb = s, this;
|
|
1684
|
+
}
|
|
1685
|
+
static getRootAsKind1068Parsed(t, s) {
|
|
1686
|
+
return (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1687
|
+
}
|
|
1688
|
+
static getSizePrefixedRootAsKind1068Parsed(t, s) {
|
|
1689
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new S()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1690
|
+
}
|
|
1691
|
+
id(t) {
|
|
1692
|
+
const s = this.bb.__offset(this.bb_pos, 4);
|
|
1693
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1694
|
+
}
|
|
1695
|
+
pubkey(t) {
|
|
1696
|
+
const s = this.bb.__offset(this.bb_pos, 6);
|
|
1697
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1698
|
+
}
|
|
1699
|
+
question(t) {
|
|
1700
|
+
const s = this.bb.__offset(this.bb_pos, 8);
|
|
1701
|
+
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1702
|
+
}
|
|
1703
|
+
contentBlocks(t, s) {
|
|
1704
|
+
const e = this.bb.__offset(this.bb_pos, 10);
|
|
1705
|
+
return e ? (s || new C()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1706
|
+
}
|
|
1707
|
+
contentBlocksLength() {
|
|
1708
|
+
const t = this.bb.__offset(this.bb_pos, 10);
|
|
1709
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1710
|
+
}
|
|
1711
|
+
options(t, s) {
|
|
1712
|
+
const e = this.bb.__offset(this.bb_pos, 12);
|
|
1713
|
+
return e ? (s || new Lt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1714
|
+
}
|
|
1715
|
+
optionsLength() {
|
|
1716
|
+
const t = this.bb.__offset(this.bb_pos, 12);
|
|
1717
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1718
|
+
}
|
|
1719
|
+
pollType() {
|
|
1720
|
+
const t = this.bb.__offset(this.bb_pos, 14);
|
|
1721
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Gt.SingleChoice;
|
|
1722
|
+
}
|
|
1723
|
+
endsAt() {
|
|
1724
|
+
const t = this.bb.__offset(this.bb_pos, 16);
|
|
1725
|
+
return t ? this.bb.readUint64(this.bb_pos + t) : BigInt("0");
|
|
1726
|
+
}
|
|
1727
|
+
relayUrls(t, s) {
|
|
1728
|
+
const e = this.bb.__offset(this.bb_pos, 18);
|
|
1729
|
+
return e ? this.bb.__string(this.bb.__vector(this.bb_pos + e) + t * 4, s) : null;
|
|
1730
|
+
}
|
|
1731
|
+
relayUrlsLength() {
|
|
1732
|
+
const t = this.bb.__offset(this.bb_pos, 18);
|
|
1733
|
+
return t ? this.bb.__vector_len(this.bb_pos + t) : 0;
|
|
1734
|
+
}
|
|
1735
|
+
static startKind1068Parsed(t) {
|
|
1736
|
+
t.startObject(8);
|
|
1737
|
+
}
|
|
1738
|
+
static addId(t, s) {
|
|
1739
|
+
t.addFieldOffset(0, s, 0);
|
|
1740
|
+
}
|
|
1741
|
+
static addPubkey(t, s) {
|
|
1742
|
+
t.addFieldOffset(1, s, 0);
|
|
1377
1743
|
}
|
|
1378
|
-
static
|
|
1379
|
-
|
|
1744
|
+
static addQuestion(t, s) {
|
|
1745
|
+
t.addFieldOffset(2, s, 0);
|
|
1380
1746
|
}
|
|
1381
|
-
static
|
|
1382
|
-
|
|
1747
|
+
static addContentBlocks(t, s) {
|
|
1748
|
+
t.addFieldOffset(3, s, 0);
|
|
1383
1749
|
}
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1750
|
+
static createContentBlocksVector(t, s) {
|
|
1751
|
+
t.startVector(4, s.length, 4);
|
|
1752
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1753
|
+
t.addOffset(s[e]);
|
|
1754
|
+
return t.endVector();
|
|
1387
1755
|
}
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
return s ? this.bb.__string(this.bb_pos + s, t) : null;
|
|
1756
|
+
static startContentBlocksVector(t, s) {
|
|
1757
|
+
t.startVector(4, s, 4);
|
|
1391
1758
|
}
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
return t ? this.bb.readUint8(this.bb_pos + t) : qt.NONE;
|
|
1759
|
+
static addOptions(t, s) {
|
|
1760
|
+
t.addFieldOffset(4, s, 0);
|
|
1395
1761
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1762
|
+
static createOptionsVector(t, s) {
|
|
1763
|
+
t.startVector(4, s.length, 4);
|
|
1764
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1765
|
+
t.addOffset(s[e]);
|
|
1766
|
+
return t.endVector();
|
|
1399
1767
|
}
|
|
1400
|
-
static
|
|
1401
|
-
t.
|
|
1768
|
+
static startOptionsVector(t, s) {
|
|
1769
|
+
t.startVector(4, s, 4);
|
|
1402
1770
|
}
|
|
1403
|
-
static
|
|
1404
|
-
t.
|
|
1771
|
+
static addPollType(t, s) {
|
|
1772
|
+
t.addFieldInt8(5, s, Gt.SingleChoice);
|
|
1405
1773
|
}
|
|
1406
|
-
static
|
|
1407
|
-
t.
|
|
1774
|
+
static addEndsAt(t, s) {
|
|
1775
|
+
t.addFieldInt64(6, s, BigInt("0"));
|
|
1408
1776
|
}
|
|
1409
|
-
static
|
|
1410
|
-
t.
|
|
1777
|
+
static addRelayUrls(t, s) {
|
|
1778
|
+
t.addFieldOffset(7, s, 0);
|
|
1411
1779
|
}
|
|
1412
|
-
static
|
|
1413
|
-
t.
|
|
1780
|
+
static createRelayUrlsVector(t, s) {
|
|
1781
|
+
t.startVector(4, s.length, 4);
|
|
1782
|
+
for (let e = s.length - 1; e >= 0; e--)
|
|
1783
|
+
t.addOffset(s[e]);
|
|
1784
|
+
return t.endVector();
|
|
1414
1785
|
}
|
|
1415
|
-
static
|
|
1786
|
+
static startRelayUrlsVector(t, s) {
|
|
1787
|
+
t.startVector(4, s, 4);
|
|
1788
|
+
}
|
|
1789
|
+
static endKind1068Parsed(t) {
|
|
1416
1790
|
const s = t.endObject();
|
|
1417
|
-
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
1791
|
+
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 12), s;
|
|
1418
1792
|
}
|
|
1419
|
-
static
|
|
1420
|
-
return
|
|
1793
|
+
static createKind1068Parsed(t, s, e, i, o, r, a, h, d) {
|
|
1794
|
+
return S.startKind1068Parsed(t), S.addId(t, s), S.addPubkey(t, e), S.addQuestion(t, i), S.addContentBlocks(t, o), S.addOptions(t, r), S.addPollType(t, a), S.addEndsAt(t, h), S.addRelayUrls(t, d), S.endKind1068Parsed(t);
|
|
1421
1795
|
}
|
|
1422
1796
|
unpack() {
|
|
1423
|
-
return new
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
(()
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1797
|
+
return new Fs(
|
|
1798
|
+
this.id(),
|
|
1799
|
+
this.pubkey(),
|
|
1800
|
+
this.question(),
|
|
1801
|
+
this.bb.createObjList(this.contentBlocks.bind(this), this.contentBlocksLength()),
|
|
1802
|
+
this.bb.createObjList(this.options.bind(this), this.optionsLength()),
|
|
1803
|
+
this.pollType(),
|
|
1804
|
+
this.endsAt(),
|
|
1805
|
+
this.bb.createScalarList(this.relayUrls.bind(this), this.relayUrlsLength())
|
|
1431
1806
|
);
|
|
1432
1807
|
}
|
|
1433
1808
|
unpackTo(t) {
|
|
1434
|
-
t.
|
|
1435
|
-
const s = Dt(this.dataType(), this.data.bind(this));
|
|
1436
|
-
return s === null ? null : s.unpack();
|
|
1437
|
-
})();
|
|
1809
|
+
t.id = this.id(), t.pubkey = this.pubkey(), t.question = this.question(), t.contentBlocks = this.bb.createObjList(this.contentBlocks.bind(this), this.contentBlocksLength()), t.options = this.bb.createObjList(this.options.bind(this), this.optionsLength()), t.pollType = this.pollType(), t.endsAt = this.endsAt(), t.relayUrls = this.bb.createScalarList(this.relayUrls.bind(this), this.relayUrlsLength());
|
|
1438
1810
|
}
|
|
1439
1811
|
}
|
|
1440
|
-
class
|
|
1441
|
-
constructor(t = null, s = null, e =
|
|
1442
|
-
this.
|
|
1812
|
+
class Fs {
|
|
1813
|
+
constructor(t = null, s = null, e = null, i = [], o = [], r = Gt.SingleChoice, a = BigInt("0"), h = []) {
|
|
1814
|
+
this.id = t, this.pubkey = s, this.question = e, this.contentBlocks = i, this.options = o, this.pollType = r, this.endsAt = a, this.relayUrls = h;
|
|
1443
1815
|
}
|
|
1444
1816
|
pack(t) {
|
|
1445
|
-
const s = this.
|
|
1446
|
-
return
|
|
1817
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.question !== null ? t.createString(this.question) : 0, o = S.createContentBlocksVector(t, t.createObjectOffsetList(this.contentBlocks)), r = S.createOptionsVector(t, t.createObjectOffsetList(this.options)), a = S.createRelayUrlsVector(t, t.createObjectOffsetList(this.relayUrls));
|
|
1818
|
+
return S.createKind1068Parsed(
|
|
1447
1819
|
t,
|
|
1448
1820
|
s,
|
|
1449
1821
|
e,
|
|
1450
|
-
|
|
1451
|
-
|
|
1822
|
+
i,
|
|
1823
|
+
o,
|
|
1824
|
+
r,
|
|
1825
|
+
this.pollType,
|
|
1826
|
+
this.endsAt,
|
|
1827
|
+
a
|
|
1452
1828
|
);
|
|
1453
1829
|
}
|
|
1454
1830
|
}
|
|
1455
|
-
class
|
|
1831
|
+
class N {
|
|
1456
1832
|
constructor() {
|
|
1457
1833
|
this.bb = null, this.bb_pos = 0;
|
|
1458
1834
|
}
|
|
@@ -1460,10 +1836,10 @@ class K {
|
|
|
1460
1836
|
return this.bb_pos = t, this.bb = s, this;
|
|
1461
1837
|
}
|
|
1462
1838
|
static getRootAsEventPointer(t, s) {
|
|
1463
|
-
return (s || new
|
|
1839
|
+
return (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1464
1840
|
}
|
|
1465
1841
|
static getSizePrefixedRootAsEventPointer(t, s) {
|
|
1466
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1842
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new N()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1467
1843
|
}
|
|
1468
1844
|
id(t) {
|
|
1469
1845
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1514,10 +1890,10 @@ class K {
|
|
|
1514
1890
|
return t.requiredField(s, 4), s;
|
|
1515
1891
|
}
|
|
1516
1892
|
static createEventPointer(t, s, e, i, o) {
|
|
1517
|
-
return
|
|
1893
|
+
return N.startEventPointer(t), N.addId(t, s), N.addRelays(t, e), N.addAuthor(t, i), N.addKind(t, o), N.endEventPointer(t);
|
|
1518
1894
|
}
|
|
1519
1895
|
unpack() {
|
|
1520
|
-
return new
|
|
1896
|
+
return new Ss(
|
|
1521
1897
|
this.id(),
|
|
1522
1898
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
1523
1899
|
this.author(),
|
|
@@ -1528,13 +1904,13 @@ class K {
|
|
|
1528
1904
|
t.id = this.id(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.author = this.author(), t.kind = this.kind();
|
|
1529
1905
|
}
|
|
1530
1906
|
}
|
|
1531
|
-
class
|
|
1907
|
+
class Ss {
|
|
1532
1908
|
constructor(t = null, s = [], e = null, i = BigInt("0")) {
|
|
1533
1909
|
this.id = t, this.relays = s, this.author = e, this.kind = i;
|
|
1534
1910
|
}
|
|
1535
1911
|
pack(t) {
|
|
1536
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e =
|
|
1537
|
-
return
|
|
1912
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = N.createRelaysVector(t, t.createObjectOffsetList(this.relays)), i = this.author !== null ? t.createString(this.author) : 0;
|
|
1913
|
+
return N.createEventPointer(
|
|
1538
1914
|
t,
|
|
1539
1915
|
s,
|
|
1540
1916
|
e,
|
|
@@ -1543,7 +1919,7 @@ class us {
|
|
|
1543
1919
|
);
|
|
1544
1920
|
}
|
|
1545
1921
|
}
|
|
1546
|
-
class
|
|
1922
|
+
class Z {
|
|
1547
1923
|
constructor() {
|
|
1548
1924
|
this.bb = null, this.bb_pos = 0;
|
|
1549
1925
|
}
|
|
@@ -1551,10 +1927,10 @@ class z {
|
|
|
1551
1927
|
return this.bb_pos = t, this.bb = s, this;
|
|
1552
1928
|
}
|
|
1553
1929
|
static getRootAsProfilePointer(t, s) {
|
|
1554
|
-
return (s || new
|
|
1930
|
+
return (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1555
1931
|
}
|
|
1556
1932
|
static getSizePrefixedRootAsProfilePointer(t, s) {
|
|
1557
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
1933
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1558
1934
|
}
|
|
1559
1935
|
publicKey(t) {
|
|
1560
1936
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1591,10 +1967,10 @@ class z {
|
|
|
1591
1967
|
return t.requiredField(s, 4), s;
|
|
1592
1968
|
}
|
|
1593
1969
|
static createProfilePointer(t, s, e) {
|
|
1594
|
-
return
|
|
1970
|
+
return Z.startProfilePointer(t), Z.addPublicKey(t, s), Z.addRelays(t, e), Z.endProfilePointer(t);
|
|
1595
1971
|
}
|
|
1596
1972
|
unpack() {
|
|
1597
|
-
return new
|
|
1973
|
+
return new Ps(
|
|
1598
1974
|
this.publicKey(),
|
|
1599
1975
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength())
|
|
1600
1976
|
);
|
|
@@ -1603,13 +1979,13 @@ class z {
|
|
|
1603
1979
|
t.publicKey = this.publicKey(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength());
|
|
1604
1980
|
}
|
|
1605
1981
|
}
|
|
1606
|
-
class
|
|
1982
|
+
class Ps {
|
|
1607
1983
|
constructor(t = null, s = []) {
|
|
1608
1984
|
this.publicKey = t, this.relays = s;
|
|
1609
1985
|
}
|
|
1610
1986
|
pack(t) {
|
|
1611
|
-
const s = this.publicKey !== null ? t.createString(this.publicKey) : 0, e =
|
|
1612
|
-
return
|
|
1987
|
+
const s = this.publicKey !== null ? t.createString(this.publicKey) : 0, e = Z.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
1988
|
+
return Z.createProfilePointer(
|
|
1613
1989
|
t,
|
|
1614
1990
|
s,
|
|
1615
1991
|
e
|
|
@@ -1699,7 +2075,7 @@ class _ {
|
|
|
1699
2075
|
}
|
|
1700
2076
|
citations(t, s) {
|
|
1701
2077
|
const e = this.bb.__offset(this.bb_pos, 32);
|
|
1702
|
-
return e ? (s || new
|
|
2078
|
+
return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1703
2079
|
}
|
|
1704
2080
|
citationsLength() {
|
|
1705
2081
|
const t = this.bb.__offset(this.bb_pos, 32);
|
|
@@ -1707,7 +2083,7 @@ class _ {
|
|
|
1707
2083
|
}
|
|
1708
2084
|
mentions(t, s) {
|
|
1709
2085
|
const e = this.bb.__offset(this.bb_pos, 34);
|
|
1710
|
-
return e ? (s || new
|
|
2086
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
1711
2087
|
}
|
|
1712
2088
|
mentionsLength() {
|
|
1713
2089
|
const t = this.bb.__offset(this.bb_pos, 34);
|
|
@@ -1813,11 +2189,11 @@ class _ {
|
|
|
1813
2189
|
const s = t.endObject();
|
|
1814
2190
|
return t.requiredField(s, 4), s;
|
|
1815
2191
|
}
|
|
1816
|
-
static createKind1111Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
1817
|
-
return _.startKind1111Parsed(t), _.addContent(t, s), _.addParsedContent(t, e), _.addRootId(t, i), _.addRootCoordinate(t, o), _.addRootExternal(t, r), _.addRootKind(t, a), _.addRootAuthor(t, h), _.addRootRelays(t, d), _.addParentId(t, b), _.addParentCoordinate(t, l), _.addParentExternal(t, u), _.addParentKind(t, y), _.addParentAuthor(t,
|
|
2192
|
+
static createKind1111Parsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U) {
|
|
2193
|
+
return _.startKind1111Parsed(t), _.addContent(t, s), _.addParsedContent(t, e), _.addRootId(t, i), _.addRootCoordinate(t, o), _.addRootExternal(t, r), _.addRootKind(t, a), _.addRootAuthor(t, h), _.addRootRelays(t, d), _.addParentId(t, b), _.addParentCoordinate(t, l), _.addParentExternal(t, u), _.addParentKind(t, y), _.addParentAuthor(t, I), _.addParentRelays(t, V), _.addCitations(t, K), _.addMentions(t, U), _.endKind1111Parsed(t);
|
|
1818
2194
|
}
|
|
1819
2195
|
unpack() {
|
|
1820
|
-
return new
|
|
2196
|
+
return new vs(
|
|
1821
2197
|
this.content(),
|
|
1822
2198
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
1823
2199
|
this.rootId(),
|
|
@@ -1840,12 +2216,12 @@ class _ {
|
|
|
1840
2216
|
t.content = this.content(), t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.rootId = this.rootId(), t.rootCoordinate = this.rootCoordinate(), t.rootExternal = this.rootExternal(), t.rootKind = this.rootKind(), t.rootAuthor = this.rootAuthor(), t.rootRelays = this.bb.createScalarList(this.rootRelays.bind(this), this.rootRelaysLength()), t.parentId = this.parentId(), t.parentCoordinate = this.parentCoordinate(), t.parentExternal = this.parentExternal(), t.parentKind = this.parentKind(), t.parentAuthor = this.parentAuthor(), t.parentRelays = this.bb.createScalarList(this.parentRelays.bind(this), this.parentRelaysLength()), t.citations = this.bb.createObjList(this.citations.bind(this), this.citationsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
1841
2217
|
}
|
|
1842
2218
|
}
|
|
1843
|
-
class
|
|
1844
|
-
constructor(t = null, s = [], e = null, i = null, o = null, r = 0, a = null, h = [], d = null, b = null, l = null, u = 0, y = null,
|
|
1845
|
-
this.content = t, this.parsedContent = s, this.rootId = e, this.rootCoordinate = i, this.rootExternal = o, this.rootKind = r, this.rootAuthor = a, this.rootRelays = h, this.parentId = d, this.parentCoordinate = b, this.parentExternal = l, this.parentKind = u, this.parentAuthor = y, this.parentRelays =
|
|
2219
|
+
class vs {
|
|
2220
|
+
constructor(t = null, s = [], e = null, i = null, o = null, r = 0, a = null, h = [], d = null, b = null, l = null, u = 0, y = null, I = [], V = [], K = []) {
|
|
2221
|
+
this.content = t, this.parsedContent = s, this.rootId = e, this.rootCoordinate = i, this.rootExternal = o, this.rootKind = r, this.rootAuthor = a, this.rootRelays = h, this.parentId = d, this.parentCoordinate = b, this.parentExternal = l, this.parentKind = u, this.parentAuthor = y, this.parentRelays = I, this.citations = V, this.mentions = K;
|
|
1846
2222
|
}
|
|
1847
2223
|
pack(t) {
|
|
1848
|
-
const s = this.content !== null ? t.createString(this.content) : 0, e = _.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.rootId !== null ? t.createString(this.rootId) : 0, o = this.rootCoordinate !== null ? t.createString(this.rootCoordinate) : 0, r = this.rootExternal !== null ? t.createString(this.rootExternal) : 0, a = this.rootAuthor !== null ? t.createString(this.rootAuthor) : 0, h = _.createRootRelaysVector(t, t.createObjectOffsetList(this.rootRelays)), d = this.parentId !== null ? t.createString(this.parentId) : 0, b = this.parentCoordinate !== null ? t.createString(this.parentCoordinate) : 0, l = this.parentExternal !== null ? t.createString(this.parentExternal) : 0, u = this.parentAuthor !== null ? t.createString(this.parentAuthor) : 0, y = _.createParentRelaysVector(t, t.createObjectOffsetList(this.parentRelays)),
|
|
2224
|
+
const s = this.content !== null ? t.createString(this.content) : 0, e = _.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.rootId !== null ? t.createString(this.rootId) : 0, o = this.rootCoordinate !== null ? t.createString(this.rootCoordinate) : 0, r = this.rootExternal !== null ? t.createString(this.rootExternal) : 0, a = this.rootAuthor !== null ? t.createString(this.rootAuthor) : 0, h = _.createRootRelaysVector(t, t.createObjectOffsetList(this.rootRelays)), d = this.parentId !== null ? t.createString(this.parentId) : 0, b = this.parentCoordinate !== null ? t.createString(this.parentCoordinate) : 0, l = this.parentExternal !== null ? t.createString(this.parentExternal) : 0, u = this.parentAuthor !== null ? t.createString(this.parentAuthor) : 0, y = _.createParentRelaysVector(t, t.createObjectOffsetList(this.parentRelays)), I = _.createCitationsVector(t, t.createObjectOffsetList(this.citations)), V = _.createMentionsVector(t, t.createObjectOffsetList(this.mentions));
|
|
1849
2225
|
return _.createKind1111Parsed(
|
|
1850
2226
|
t,
|
|
1851
2227
|
s,
|
|
@@ -1862,12 +2238,12 @@ class Os {
|
|
|
1862
2238
|
this.parentKind,
|
|
1863
2239
|
u,
|
|
1864
2240
|
y,
|
|
1865
|
-
|
|
1866
|
-
|
|
2241
|
+
I,
|
|
2242
|
+
V
|
|
1867
2243
|
);
|
|
1868
2244
|
}
|
|
1869
2245
|
}
|
|
1870
|
-
class
|
|
2246
|
+
class it {
|
|
1871
2247
|
constructor() {
|
|
1872
2248
|
this.bb = null, this.bb_pos = 0;
|
|
1873
2249
|
}
|
|
@@ -1875,10 +2251,10 @@ class st {
|
|
|
1875
2251
|
return this.bb_pos = t, this.bb = s, this;
|
|
1876
2252
|
}
|
|
1877
2253
|
static getRootAsLiveActivityRef(t, s) {
|
|
1878
|
-
return (s || new
|
|
2254
|
+
return (s || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1879
2255
|
}
|
|
1880
2256
|
static getSizePrefixedRootAsLiveActivityRef(t, s) {
|
|
1881
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2257
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new it()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1882
2258
|
}
|
|
1883
2259
|
kind() {
|
|
1884
2260
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1916,10 +2292,10 @@ class st {
|
|
|
1916
2292
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
1917
2293
|
}
|
|
1918
2294
|
static createLiveActivityRef(t, s, e, i, o) {
|
|
1919
|
-
return
|
|
2295
|
+
return it.startLiveActivityRef(t), it.addKind(t, s), it.addPubkey(t, e), it.addIdentifier(t, i), it.addRelay(t, o), it.endLiveActivityRef(t);
|
|
1920
2296
|
}
|
|
1921
2297
|
unpack() {
|
|
1922
|
-
return new
|
|
2298
|
+
return new Vs(
|
|
1923
2299
|
this.kind(),
|
|
1924
2300
|
this.pubkey(),
|
|
1925
2301
|
this.identifier(),
|
|
@@ -1930,13 +2306,13 @@ class st {
|
|
|
1930
2306
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.identifier = this.identifier(), t.relay = this.relay();
|
|
1931
2307
|
}
|
|
1932
2308
|
}
|
|
1933
|
-
class
|
|
2309
|
+
class Vs {
|
|
1934
2310
|
constructor(t = 0, s = null, e = null, i = null) {
|
|
1935
2311
|
this.kind = t, this.pubkey = s, this.identifier = e, this.relay = i;
|
|
1936
2312
|
}
|
|
1937
2313
|
pack(t) {
|
|
1938
2314
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.identifier !== null ? t.createString(this.identifier) : 0, i = this.relay !== null ? t.createString(this.relay) : 0;
|
|
1939
|
-
return
|
|
2315
|
+
return it.createLiveActivityRef(
|
|
1940
2316
|
t,
|
|
1941
2317
|
this.kind,
|
|
1942
2318
|
s,
|
|
@@ -1945,7 +2321,7 @@ class ys {
|
|
|
1945
2321
|
);
|
|
1946
2322
|
}
|
|
1947
2323
|
}
|
|
1948
|
-
class
|
|
2324
|
+
class Ft {
|
|
1949
2325
|
constructor() {
|
|
1950
2326
|
this.bb = null, this.bb_pos = 0;
|
|
1951
2327
|
}
|
|
@@ -1953,10 +2329,10 @@ class kt {
|
|
|
1953
2329
|
return this.bb_pos = t, this.bb = s, this;
|
|
1954
2330
|
}
|
|
1955
2331
|
static getRootAsLiveChatParticipant(t, s) {
|
|
1956
|
-
return (s || new
|
|
2332
|
+
return (s || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1957
2333
|
}
|
|
1958
2334
|
static getSizePrefixedRootAsLiveChatParticipant(t, s) {
|
|
1959
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2335
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1960
2336
|
}
|
|
1961
2337
|
pubkey(t) {
|
|
1962
2338
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1980,10 +2356,10 @@ class kt {
|
|
|
1980
2356
|
return t.requiredField(s, 4), s;
|
|
1981
2357
|
}
|
|
1982
2358
|
static createLiveChatParticipant(t, s, e) {
|
|
1983
|
-
return
|
|
2359
|
+
return Ft.startLiveChatParticipant(t), Ft.addPubkey(t, s), Ft.addRelay(t, e), Ft.endLiveChatParticipant(t);
|
|
1984
2360
|
}
|
|
1985
2361
|
unpack() {
|
|
1986
|
-
return new
|
|
2362
|
+
return new Es(
|
|
1987
2363
|
this.pubkey(),
|
|
1988
2364
|
this.relay()
|
|
1989
2365
|
);
|
|
@@ -1992,20 +2368,20 @@ class kt {
|
|
|
1992
2368
|
t.pubkey = this.pubkey(), t.relay = this.relay();
|
|
1993
2369
|
}
|
|
1994
2370
|
}
|
|
1995
|
-
class
|
|
2371
|
+
class Es {
|
|
1996
2372
|
constructor(t = null, s = null) {
|
|
1997
2373
|
this.pubkey = t, this.relay = s;
|
|
1998
2374
|
}
|
|
1999
2375
|
pack(t) {
|
|
2000
2376
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.relay !== null ? t.createString(this.relay) : 0;
|
|
2001
|
-
return
|
|
2377
|
+
return Ft.createLiveChatParticipant(
|
|
2002
2378
|
t,
|
|
2003
2379
|
s,
|
|
2004
2380
|
e
|
|
2005
2381
|
);
|
|
2006
2382
|
}
|
|
2007
2383
|
}
|
|
2008
|
-
class
|
|
2384
|
+
class St {
|
|
2009
2385
|
constructor() {
|
|
2010
2386
|
this.bb = null, this.bb_pos = 0;
|
|
2011
2387
|
}
|
|
@@ -2013,10 +2389,10 @@ class mt {
|
|
|
2013
2389
|
return this.bb_pos = t, this.bb = s, this;
|
|
2014
2390
|
}
|
|
2015
2391
|
static getRootAsLiveChatThreadRef(t, s) {
|
|
2016
|
-
return (s || new
|
|
2392
|
+
return (s || new St()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2017
2393
|
}
|
|
2018
2394
|
static getSizePrefixedRootAsLiveChatThreadRef(t, s) {
|
|
2019
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2395
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new St()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2020
2396
|
}
|
|
2021
2397
|
eventId(t) {
|
|
2022
2398
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2040,10 +2416,10 @@ class mt {
|
|
|
2040
2416
|
return t.requiredField(s, 4), s;
|
|
2041
2417
|
}
|
|
2042
2418
|
static createLiveChatThreadRef(t, s, e) {
|
|
2043
|
-
return
|
|
2419
|
+
return St.startLiveChatThreadRef(t), St.addEventId(t, s), St.addRelay(t, e), St.endLiveChatThreadRef(t);
|
|
2044
2420
|
}
|
|
2045
2421
|
unpack() {
|
|
2046
|
-
return new
|
|
2422
|
+
return new Rs(
|
|
2047
2423
|
this.eventId(),
|
|
2048
2424
|
this.relay()
|
|
2049
2425
|
);
|
|
@@ -2052,20 +2428,20 @@ class mt {
|
|
|
2052
2428
|
t.eventId = this.eventId(), t.relay = this.relay();
|
|
2053
2429
|
}
|
|
2054
2430
|
}
|
|
2055
|
-
class
|
|
2431
|
+
class Rs {
|
|
2056
2432
|
constructor(t = null, s = null) {
|
|
2057
2433
|
this.eventId = t, this.relay = s;
|
|
2058
2434
|
}
|
|
2059
2435
|
pack(t) {
|
|
2060
2436
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.relay !== null ? t.createString(this.relay) : 0;
|
|
2061
|
-
return
|
|
2437
|
+
return St.createLiveChatThreadRef(
|
|
2062
2438
|
t,
|
|
2063
2439
|
s,
|
|
2064
2440
|
e
|
|
2065
2441
|
);
|
|
2066
2442
|
}
|
|
2067
2443
|
}
|
|
2068
|
-
class
|
|
2444
|
+
class q {
|
|
2069
2445
|
constructor() {
|
|
2070
2446
|
this.bb = null, this.bb_pos = 0;
|
|
2071
2447
|
}
|
|
@@ -2073,10 +2449,10 @@ class N {
|
|
|
2073
2449
|
return this.bb_pos = t, this.bb = s, this;
|
|
2074
2450
|
}
|
|
2075
2451
|
static getRootAsKind1311Parsed(t, s) {
|
|
2076
|
-
return (s || new
|
|
2452
|
+
return (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2077
2453
|
}
|
|
2078
2454
|
static getSizePrefixedRootAsKind1311Parsed(t, s) {
|
|
2079
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2455
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2080
2456
|
}
|
|
2081
2457
|
content(t) {
|
|
2082
2458
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2092,11 +2468,11 @@ class N {
|
|
|
2092
2468
|
}
|
|
2093
2469
|
activity(t) {
|
|
2094
2470
|
const s = this.bb.__offset(this.bb_pos, 8);
|
|
2095
|
-
return s ? (t || new
|
|
2471
|
+
return s ? (t || new it()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2096
2472
|
}
|
|
2097
2473
|
threadRefs(t, s) {
|
|
2098
2474
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
2099
|
-
return e ? (s || new
|
|
2475
|
+
return e ? (s || new St()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2100
2476
|
}
|
|
2101
2477
|
threadRefsLength() {
|
|
2102
2478
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -2104,7 +2480,7 @@ class N {
|
|
|
2104
2480
|
}
|
|
2105
2481
|
mentions(t, s) {
|
|
2106
2482
|
const e = this.bb.__offset(this.bb_pos, 12);
|
|
2107
|
-
return e ? (s || new
|
|
2483
|
+
return e ? (s || new Ft()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2108
2484
|
}
|
|
2109
2485
|
mentionsLength() {
|
|
2110
2486
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -2160,7 +2536,7 @@ class N {
|
|
|
2160
2536
|
return t.requiredField(s, 4), t.requiredField(s, 8), s;
|
|
2161
2537
|
}
|
|
2162
2538
|
unpack() {
|
|
2163
|
-
return new
|
|
2539
|
+
return new Ts(
|
|
2164
2540
|
this.content(),
|
|
2165
2541
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
2166
2542
|
this.activity() !== null ? this.activity().unpack() : null,
|
|
@@ -2172,16 +2548,16 @@ class N {
|
|
|
2172
2548
|
t.content = this.content(), t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.activity = this.activity() !== null ? this.activity().unpack() : null, t.threadRefs = this.bb.createObjList(this.threadRefs.bind(this), this.threadRefsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
2173
2549
|
}
|
|
2174
2550
|
}
|
|
2175
|
-
class
|
|
2551
|
+
class Ts {
|
|
2176
2552
|
constructor(t = null, s = [], e = null, i = [], o = []) {
|
|
2177
2553
|
this.content = t, this.parsedContent = s, this.activity = e, this.threadRefs = i, this.mentions = o;
|
|
2178
2554
|
}
|
|
2179
2555
|
pack(t) {
|
|
2180
|
-
const s = this.content !== null ? t.createString(this.content) : 0, e =
|
|
2181
|
-
return
|
|
2556
|
+
const s = this.content !== null ? t.createString(this.content) : 0, e = q.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), i = this.activity !== null ? this.activity.pack(t) : 0, o = q.createThreadRefsVector(t, t.createObjectOffsetList(this.threadRefs)), r = q.createMentionsVector(t, t.createObjectOffsetList(this.mentions));
|
|
2557
|
+
return q.startKind1311Parsed(t), q.addContent(t, s), q.addParsedContent(t, e), q.addActivity(t, i), q.addThreadRefs(t, o), q.addMentions(t, r), q.endKind1311Parsed(t);
|
|
2182
2558
|
}
|
|
2183
2559
|
}
|
|
2184
|
-
class
|
|
2560
|
+
class D {
|
|
2185
2561
|
constructor() {
|
|
2186
2562
|
this.bb = null, this.bb_pos = 0;
|
|
2187
2563
|
}
|
|
@@ -2189,10 +2565,10 @@ class X {
|
|
|
2189
2565
|
return this.bb_pos = t, this.bb = s, this;
|
|
2190
2566
|
}
|
|
2191
2567
|
static getRootAsKind17375Parsed(t, s) {
|
|
2192
|
-
return (s || new
|
|
2568
|
+
return (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2193
2569
|
}
|
|
2194
2570
|
static getSizePrefixedRootAsKind17375Parsed(t, s) {
|
|
2195
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2571
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new D()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2196
2572
|
}
|
|
2197
2573
|
mints(t, s) {
|
|
2198
2574
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2243,10 +2619,10 @@ class X {
|
|
|
2243
2619
|
return t.requiredField(s, 4), s;
|
|
2244
2620
|
}
|
|
2245
2621
|
static createKind17375Parsed(t, s, e, i, o) {
|
|
2246
|
-
return
|
|
2622
|
+
return D.startKind17375Parsed(t), D.addMints(t, s), D.addP2pkPrivKey(t, e), D.addP2pkPubKey(t, i), D.addDecrypted(t, o), D.endKind17375Parsed(t);
|
|
2247
2623
|
}
|
|
2248
2624
|
unpack() {
|
|
2249
|
-
return new
|
|
2625
|
+
return new ws(
|
|
2250
2626
|
this.bb.createScalarList(this.mints.bind(this), this.mintsLength()),
|
|
2251
2627
|
this.p2pkPrivKey(),
|
|
2252
2628
|
this.p2pkPubKey(),
|
|
@@ -2257,13 +2633,13 @@ class X {
|
|
|
2257
2633
|
t.mints = this.bb.createScalarList(this.mints.bind(this), this.mintsLength()), t.p2pkPrivKey = this.p2pkPrivKey(), t.p2pkPubKey = this.p2pkPubKey(), t.decrypted = this.decrypted();
|
|
2258
2634
|
}
|
|
2259
2635
|
}
|
|
2260
|
-
class
|
|
2636
|
+
class ws {
|
|
2261
2637
|
constructor(t = [], s = null, e = null, i = false) {
|
|
2262
2638
|
this.mints = t, this.p2pkPrivKey = s, this.p2pkPubKey = e, this.decrypted = i;
|
|
2263
2639
|
}
|
|
2264
2640
|
pack(t) {
|
|
2265
|
-
const s =
|
|
2266
|
-
return
|
|
2641
|
+
const s = D.createMintsVector(t, t.createObjectOffsetList(this.mints)), e = this.p2pkPrivKey !== null ? t.createString(this.p2pkPrivKey) : 0, i = this.p2pkPubKey !== null ? t.createString(this.p2pkPubKey) : 0;
|
|
2642
|
+
return D.createKind17375Parsed(
|
|
2267
2643
|
t,
|
|
2268
2644
|
s,
|
|
2269
2645
|
e,
|
|
@@ -2272,7 +2648,7 @@ class Ls {
|
|
|
2272
2648
|
);
|
|
2273
2649
|
}
|
|
2274
2650
|
}
|
|
2275
|
-
class
|
|
2651
|
+
class gt {
|
|
2276
2652
|
constructor() {
|
|
2277
2653
|
this.bb = null, this.bb_pos = 0;
|
|
2278
2654
|
}
|
|
@@ -2280,10 +2656,10 @@ class _t {
|
|
|
2280
2656
|
return this.bb_pos = t, this.bb = s, this;
|
|
2281
2657
|
}
|
|
2282
2658
|
static getRootAsEmoji(t, s) {
|
|
2283
|
-
return (s || new
|
|
2659
|
+
return (s || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2284
2660
|
}
|
|
2285
2661
|
static getSizePrefixedRootAsEmoji(t, s) {
|
|
2286
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2662
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new gt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2287
2663
|
}
|
|
2288
2664
|
shortcode(t) {
|
|
2289
2665
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2307,10 +2683,10 @@ class _t {
|
|
|
2307
2683
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
2308
2684
|
}
|
|
2309
2685
|
static createEmoji(t, s, e) {
|
|
2310
|
-
return
|
|
2686
|
+
return gt.startEmoji(t), gt.addShortcode(t, s), gt.addUrl(t, e), gt.endEmoji(t);
|
|
2311
2687
|
}
|
|
2312
2688
|
unpack() {
|
|
2313
|
-
return new
|
|
2689
|
+
return new js(
|
|
2314
2690
|
this.shortcode(),
|
|
2315
2691
|
this.url()
|
|
2316
2692
|
);
|
|
@@ -2319,21 +2695,21 @@ class _t {
|
|
|
2319
2695
|
t.shortcode = this.shortcode(), t.url = this.url();
|
|
2320
2696
|
}
|
|
2321
2697
|
}
|
|
2322
|
-
class
|
|
2698
|
+
class js {
|
|
2323
2699
|
constructor(t = null, s = null) {
|
|
2324
2700
|
this.shortcode = t, this.url = s;
|
|
2325
2701
|
}
|
|
2326
2702
|
pack(t) {
|
|
2327
2703
|
const s = this.shortcode !== null ? t.createString(this.shortcode) : 0, e = this.url !== null ? t.createString(this.url) : 0;
|
|
2328
|
-
return
|
|
2704
|
+
return gt.createEmoji(
|
|
2329
2705
|
t,
|
|
2330
2706
|
s,
|
|
2331
2707
|
e
|
|
2332
2708
|
);
|
|
2333
2709
|
}
|
|
2334
2710
|
}
|
|
2335
|
-
var
|
|
2336
|
-
class
|
|
2711
|
+
var Ht = /* @__PURE__ */ ((n) => (n[n.Like = 0] = "Like", n[n.Dislike = 1] = "Dislike", n[n.Emoji = 2] = "Emoji", n[n.Custom = 3] = "Custom", n))(Ht || {});
|
|
2712
|
+
class M {
|
|
2337
2713
|
constructor() {
|
|
2338
2714
|
this.bb = null, this.bb_pos = 0;
|
|
2339
2715
|
}
|
|
@@ -2341,14 +2717,14 @@ class G {
|
|
|
2341
2717
|
return this.bb_pos = t, this.bb = s, this;
|
|
2342
2718
|
}
|
|
2343
2719
|
static getRootAsKind17Parsed(t, s) {
|
|
2344
|
-
return (s || new
|
|
2720
|
+
return (s || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2345
2721
|
}
|
|
2346
2722
|
static getSizePrefixedRootAsKind17Parsed(t, s) {
|
|
2347
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2723
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new M()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2348
2724
|
}
|
|
2349
2725
|
reactionType() {
|
|
2350
2726
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
2351
|
-
return t ? this.bb.readInt8(this.bb_pos + t) :
|
|
2727
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Ht.Like;
|
|
2352
2728
|
}
|
|
2353
2729
|
eventId(t) {
|
|
2354
2730
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -2364,7 +2740,7 @@ class G {
|
|
|
2364
2740
|
}
|
|
2365
2741
|
emoji(t) {
|
|
2366
2742
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
2367
|
-
return s ? (t || new
|
|
2743
|
+
return s ? (t || new gt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2368
2744
|
}
|
|
2369
2745
|
targetCoordinates(t) {
|
|
2370
2746
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -2374,7 +2750,7 @@ class G {
|
|
|
2374
2750
|
t.startObject(6);
|
|
2375
2751
|
}
|
|
2376
2752
|
static addReactionType(t, s) {
|
|
2377
|
-
t.addFieldInt8(0, s,
|
|
2753
|
+
t.addFieldInt8(0, s, Ht.Like);
|
|
2378
2754
|
}
|
|
2379
2755
|
static addEventId(t, s) {
|
|
2380
2756
|
t.addFieldOffset(1, s, 0);
|
|
@@ -2396,7 +2772,7 @@ class G {
|
|
|
2396
2772
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
2397
2773
|
}
|
|
2398
2774
|
unpack() {
|
|
2399
|
-
return new
|
|
2775
|
+
return new As(
|
|
2400
2776
|
this.reactionType(),
|
|
2401
2777
|
this.eventId(),
|
|
2402
2778
|
this.pubkey(),
|
|
@@ -2409,16 +2785,16 @@ class G {
|
|
|
2409
2785
|
t.reactionType = this.reactionType(), t.eventId = this.eventId(), t.pubkey = this.pubkey(), t.eventKind = this.eventKind(), t.emoji = this.emoji() !== null ? this.emoji().unpack() : null, t.targetCoordinates = this.targetCoordinates();
|
|
2410
2786
|
}
|
|
2411
2787
|
}
|
|
2412
|
-
class
|
|
2413
|
-
constructor(t =
|
|
2788
|
+
class As {
|
|
2789
|
+
constructor(t = Ht.Like, s = null, e = null, i = BigInt("0"), o = null, r = null) {
|
|
2414
2790
|
this.reactionType = t, this.eventId = s, this.pubkey = e, this.eventKind = i, this.emoji = o, this.targetCoordinates = r;
|
|
2415
2791
|
}
|
|
2416
2792
|
pack(t) {
|
|
2417
2793
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.emoji !== null ? this.emoji.pack(t) : 0, o = this.targetCoordinates !== null ? t.createString(this.targetCoordinates) : 0;
|
|
2418
|
-
return
|
|
2794
|
+
return M.startKind17Parsed(t), M.addReactionType(t, this.reactionType), M.addEventId(t, s), M.addPubkey(t, e), M.addEventKind(t, this.eventKind), M.addEmoji(t, i), M.addTargetCoordinates(t, o), M.endKind17Parsed(t);
|
|
2419
2795
|
}
|
|
2420
2796
|
}
|
|
2421
|
-
class
|
|
2797
|
+
class T {
|
|
2422
2798
|
constructor() {
|
|
2423
2799
|
this.bb = null, this.bb_pos = 0;
|
|
2424
2800
|
}
|
|
@@ -2426,10 +2802,10 @@ class E {
|
|
|
2426
2802
|
return this.bb_pos = t, this.bb = s, this;
|
|
2427
2803
|
}
|
|
2428
2804
|
static getRootAsKind1Parsed(t, s) {
|
|
2429
|
-
return (s || new
|
|
2805
|
+
return (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2430
2806
|
}
|
|
2431
2807
|
static getSizePrefixedRootAsKind1Parsed(t, s) {
|
|
2432
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2808
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new T()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2433
2809
|
}
|
|
2434
2810
|
parsedContent(t, s) {
|
|
2435
2811
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2449,7 +2825,7 @@ class E {
|
|
|
2449
2825
|
}
|
|
2450
2826
|
quotes(t, s) {
|
|
2451
2827
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2452
|
-
return e ? (s || new
|
|
2828
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2453
2829
|
}
|
|
2454
2830
|
quotesLength() {
|
|
2455
2831
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -2457,7 +2833,7 @@ class E {
|
|
|
2457
2833
|
}
|
|
2458
2834
|
mentions(t, s) {
|
|
2459
2835
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
2460
|
-
return e ? (s || new
|
|
2836
|
+
return e ? (s || new N()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2461
2837
|
}
|
|
2462
2838
|
mentionsLength() {
|
|
2463
2839
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -2465,11 +2841,11 @@ class E {
|
|
|
2465
2841
|
}
|
|
2466
2842
|
reply(t) {
|
|
2467
2843
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
2468
|
-
return s ? (t || new
|
|
2844
|
+
return s ? (t || new N()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2469
2845
|
}
|
|
2470
2846
|
root(t) {
|
|
2471
2847
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
2472
|
-
return s ? (t || new
|
|
2848
|
+
return s ? (t || new N()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
2473
2849
|
}
|
|
2474
2850
|
static startKind1Parsed(t) {
|
|
2475
2851
|
t.startObject(6);
|
|
@@ -2533,7 +2909,7 @@ class E {
|
|
|
2533
2909
|
return t.requiredField(s, 4), s;
|
|
2534
2910
|
}
|
|
2535
2911
|
unpack() {
|
|
2536
|
-
return new
|
|
2912
|
+
return new Cs(
|
|
2537
2913
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
2538
2914
|
this.bb.createObjList(this.shortenedContent.bind(this), this.shortenedContentLength()),
|
|
2539
2915
|
this.bb.createObjList(this.quotes.bind(this), this.quotesLength()),
|
|
@@ -2546,16 +2922,16 @@ class E {
|
|
|
2546
2922
|
t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.shortenedContent = this.bb.createObjList(this.shortenedContent.bind(this), this.shortenedContentLength()), t.quotes = this.bb.createObjList(this.quotes.bind(this), this.quotesLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength()), t.reply = this.reply() !== null ? this.reply().unpack() : null, t.root = this.root() !== null ? this.root().unpack() : null;
|
|
2547
2923
|
}
|
|
2548
2924
|
}
|
|
2549
|
-
class
|
|
2925
|
+
class Cs {
|
|
2550
2926
|
constructor(t = [], s = [], e = [], i = [], o = null, r = null) {
|
|
2551
2927
|
this.parsedContent = t, this.shortenedContent = s, this.quotes = e, this.mentions = i, this.reply = o, this.root = r;
|
|
2552
2928
|
}
|
|
2553
2929
|
pack(t) {
|
|
2554
|
-
const s =
|
|
2555
|
-
return
|
|
2930
|
+
const s = T.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), e = T.createShortenedContentVector(t, t.createObjectOffsetList(this.shortenedContent)), i = T.createQuotesVector(t, t.createObjectOffsetList(this.quotes)), o = T.createMentionsVector(t, t.createObjectOffsetList(this.mentions)), r = this.reply !== null ? this.reply.pack(t) : 0, a = this.root !== null ? this.root.pack(t) : 0;
|
|
2931
|
+
return T.startKind1Parsed(t), T.addParsedContent(t, s), T.addShortenedContent(t, e), T.addQuotes(t, i), T.addMentions(t, o), T.addReply(t, r), T.addRoot(t, a), T.endKind1Parsed(t);
|
|
2556
2932
|
}
|
|
2557
2933
|
}
|
|
2558
|
-
class
|
|
2934
|
+
class w {
|
|
2559
2935
|
constructor() {
|
|
2560
2936
|
this.bb = null, this.bb_pos = 0;
|
|
2561
2937
|
}
|
|
@@ -2563,10 +2939,10 @@ class T {
|
|
|
2563
2939
|
return this.bb_pos = t, this.bb = s, this;
|
|
2564
2940
|
}
|
|
2565
2941
|
static getRootAsImetaTag(t, s) {
|
|
2566
|
-
return (s || new
|
|
2942
|
+
return (s || new w()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2567
2943
|
}
|
|
2568
2944
|
static getSizePrefixedRootAsImetaTag(t, s) {
|
|
2569
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
2945
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new w()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2570
2946
|
}
|
|
2571
2947
|
url(t) {
|
|
2572
2948
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2645,10 +3021,10 @@ class T {
|
|
|
2645
3021
|
return t.requiredField(s, 4), s;
|
|
2646
3022
|
}
|
|
2647
3023
|
static createImetaTag(t, s, e, i, o, r, a, h, d) {
|
|
2648
|
-
return
|
|
3024
|
+
return w.startImetaTag(t), w.addUrl(t, s), w.addMimeType(t, e), w.addDim(t, i), w.addAlt(t, o), w.addBlurhash(t, r), w.addHash(t, a), w.addFallback(t, h), w.addAnnotateUser(t, d), w.endImetaTag(t);
|
|
2649
3025
|
}
|
|
2650
3026
|
unpack() {
|
|
2651
|
-
return new
|
|
3027
|
+
return new Ks(
|
|
2652
3028
|
this.url(),
|
|
2653
3029
|
this.mimeType(),
|
|
2654
3030
|
this.dim(),
|
|
@@ -2663,13 +3039,13 @@ class T {
|
|
|
2663
3039
|
t.url = this.url(), t.mimeType = this.mimeType(), t.dim = this.dim(), t.alt = this.alt(), t.blurhash = this.blurhash(), t.hash = this.hash(), t.fallback = this.bb.createScalarList(this.fallback.bind(this), this.fallbackLength()), t.annotateUser = this.annotateUser();
|
|
2664
3040
|
}
|
|
2665
3041
|
}
|
|
2666
|
-
class
|
|
3042
|
+
class Ks {
|
|
2667
3043
|
constructor(t = null, s = null, e = null, i = null, o = null, r = null, a = [], h = null) {
|
|
2668
3044
|
this.url = t, this.mimeType = s, this.dim = e, this.alt = i, this.blurhash = o, this.hash = r, this.fallback = a, this.annotateUser = h;
|
|
2669
3045
|
}
|
|
2670
3046
|
pack(t) {
|
|
2671
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.alt !== null ? t.createString(this.alt) : 0, r = this.blurhash !== null ? t.createString(this.blurhash) : 0, a = this.hash !== null ? t.createString(this.hash) : 0, h =
|
|
2672
|
-
return
|
|
3047
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.alt !== null ? t.createString(this.alt) : 0, r = this.blurhash !== null ? t.createString(this.blurhash) : 0, a = this.hash !== null ? t.createString(this.hash) : 0, h = w.createFallbackVector(t, t.createObjectOffsetList(this.fallback)), d = this.annotateUser !== null ? t.createString(this.annotateUser) : 0;
|
|
3048
|
+
return w.createImetaTag(
|
|
2673
3049
|
t,
|
|
2674
3050
|
s,
|
|
2675
3051
|
e,
|
|
@@ -2705,7 +3081,7 @@ class P {
|
|
|
2705
3081
|
}
|
|
2706
3082
|
images(t, s) {
|
|
2707
3083
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2708
|
-
return e ? (s || new
|
|
3084
|
+
return e ? (s || new w()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2709
3085
|
}
|
|
2710
3086
|
imagesLength() {
|
|
2711
3087
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -2733,7 +3109,7 @@ class P {
|
|
|
2733
3109
|
}
|
|
2734
3110
|
mentions(t, s) {
|
|
2735
3111
|
const e = this.bb.__offset(this.bb_pos, 18);
|
|
2736
|
-
return e ? (s || new
|
|
3112
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2737
3113
|
}
|
|
2738
3114
|
mentionsLength() {
|
|
2739
3115
|
const t = this.bb.__offset(this.bb_pos, 18);
|
|
@@ -2794,14 +3170,13 @@ class P {
|
|
|
2794
3170
|
t.startVector(4, s, 4);
|
|
2795
3171
|
}
|
|
2796
3172
|
static endKind20Parsed(t) {
|
|
2797
|
-
|
|
2798
|
-
return t.requiredField(s, 8), s;
|
|
3173
|
+
return t.endObject();
|
|
2799
3174
|
}
|
|
2800
3175
|
static createKind20Parsed(t, s, e, i, o, r, a, h, d) {
|
|
2801
3176
|
return P.startKind20Parsed(t), P.addTitle(t, s), P.addDescription(t, e), P.addImages(t, i), P.addContentWarning(t, o), P.addLocation(t, r), P.addGeohash(t, a), P.addHashtags(t, h), P.addMentions(t, d), P.endKind20Parsed(t);
|
|
2802
3177
|
}
|
|
2803
3178
|
unpack() {
|
|
2804
|
-
return new
|
|
3179
|
+
return new Ns(
|
|
2805
3180
|
this.title(),
|
|
2806
3181
|
this.description(),
|
|
2807
3182
|
this.bb.createObjList(this.images.bind(this), this.imagesLength()),
|
|
@@ -2816,7 +3191,7 @@ class P {
|
|
|
2816
3191
|
t.title = this.title(), t.description = this.description(), t.images = this.bb.createObjList(this.images.bind(this), this.imagesLength()), t.contentWarning = this.contentWarning(), t.location = this.location(), t.geohash = this.geohash(), t.hashtags = this.bb.createScalarList(this.hashtags.bind(this), this.hashtagsLength()), t.mentions = this.bb.createObjList(this.mentions.bind(this), this.mentionsLength());
|
|
2817
3192
|
}
|
|
2818
3193
|
}
|
|
2819
|
-
class
|
|
3194
|
+
class Ns {
|
|
2820
3195
|
constructor(t = null, s = null, e = [], i = null, o = null, r = null, a = [], h = []) {
|
|
2821
3196
|
this.title = t, this.description = s, this.images = e, this.contentWarning = i, this.location = o, this.geohash = r, this.hashtags = a, this.mentions = h;
|
|
2822
3197
|
}
|
|
@@ -2835,7 +3210,7 @@ class Vs {
|
|
|
2835
3210
|
);
|
|
2836
3211
|
}
|
|
2837
3212
|
}
|
|
2838
|
-
class
|
|
3213
|
+
class E {
|
|
2839
3214
|
constructor() {
|
|
2840
3215
|
this.bb = null, this.bb_pos = 0;
|
|
2841
3216
|
}
|
|
@@ -2843,10 +3218,10 @@ class V {
|
|
|
2843
3218
|
return this.bb_pos = t, this.bb = s, this;
|
|
2844
3219
|
}
|
|
2845
3220
|
static getRootAsVideoVariant(t, s) {
|
|
2846
|
-
return (s || new
|
|
3221
|
+
return (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2847
3222
|
}
|
|
2848
3223
|
static getSizePrefixedRootAsVideoVariant(t, s) {
|
|
2849
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3224
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new E()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
2850
3225
|
}
|
|
2851
3226
|
url(t) {
|
|
2852
3227
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -2932,10 +3307,10 @@ class V {
|
|
|
2932
3307
|
return t.requiredField(s, 4), s;
|
|
2933
3308
|
}
|
|
2934
3309
|
static createVideoVariant(t, s, e, i, o, r, a, h, d, b) {
|
|
2935
|
-
return
|
|
3310
|
+
return E.startVideoVariant(t), E.addUrl(t, s), E.addMimeType(t, e), E.addDim(t, i), E.addBlurhash(t, o), E.addHash(t, r), E.addDuration(t, a), E.addBitrate(t, h), E.addImage(t, d), E.addFallback(t, b), E.endVideoVariant(t);
|
|
2936
3311
|
}
|
|
2937
3312
|
unpack() {
|
|
2938
|
-
return new
|
|
3313
|
+
return new qs(
|
|
2939
3314
|
this.url(),
|
|
2940
3315
|
this.mimeType(),
|
|
2941
3316
|
this.dim(),
|
|
@@ -2951,13 +3326,13 @@ class V {
|
|
|
2951
3326
|
t.url = this.url(), t.mimeType = this.mimeType(), t.dim = this.dim(), t.blurhash = this.blurhash(), t.hash = this.hash(), t.duration = this.duration(), t.bitrate = this.bitrate(), t.image = this.image(), t.fallback = this.bb.createScalarList(this.fallback.bind(this), this.fallbackLength());
|
|
2952
3327
|
}
|
|
2953
3328
|
}
|
|
2954
|
-
class
|
|
3329
|
+
class qs {
|
|
2955
3330
|
constructor(t = null, s = null, e = null, i = null, o = null, r = 0, a = BigInt("0"), h = null, d = []) {
|
|
2956
3331
|
this.url = t, this.mimeType = s, this.dim = e, this.blurhash = i, this.hash = o, this.duration = r, this.bitrate = a, this.image = h, this.fallback = d;
|
|
2957
3332
|
}
|
|
2958
3333
|
pack(t) {
|
|
2959
|
-
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.blurhash !== null ? t.createString(this.blurhash) : 0, r = this.hash !== null ? t.createString(this.hash) : 0, a = this.image !== null ? t.createString(this.image) : 0, h =
|
|
2960
|
-
return
|
|
3334
|
+
const s = this.url !== null ? t.createString(this.url) : 0, e = this.mimeType !== null ? t.createString(this.mimeType) : 0, i = this.dim !== null ? t.createString(this.dim) : 0, o = this.blurhash !== null ? t.createString(this.blurhash) : 0, r = this.hash !== null ? t.createString(this.hash) : 0, a = this.image !== null ? t.createString(this.image) : 0, h = E.createFallbackVector(t, t.createObjectOffsetList(this.fallback));
|
|
3335
|
+
return E.createVideoVariant(
|
|
2961
3336
|
t,
|
|
2962
3337
|
s,
|
|
2963
3338
|
e,
|
|
@@ -2994,7 +3369,7 @@ class L {
|
|
|
2994
3369
|
}
|
|
2995
3370
|
videos(t, s) {
|
|
2996
3371
|
const e = this.bb.__offset(this.bb_pos, 8);
|
|
2997
|
-
return e ? (s || new
|
|
3372
|
+
return e ? (s || new E()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
2998
3373
|
}
|
|
2999
3374
|
videosLength() {
|
|
3000
3375
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -3026,7 +3401,7 @@ class L {
|
|
|
3026
3401
|
}
|
|
3027
3402
|
participants(t, s) {
|
|
3028
3403
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
3029
|
-
return e ? (s || new
|
|
3404
|
+
return e ? (s || new Z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
3030
3405
|
}
|
|
3031
3406
|
participantsLength() {
|
|
3032
3407
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -3097,7 +3472,7 @@ class L {
|
|
|
3097
3472
|
return L.startKind22Parsed(t), L.addTitle(t, s), L.addDescription(t, e), L.addVideos(t, i), L.addAlt(t, o), L.addContentWarning(t, r), L.addDuration(t, a), L.addPublishedAt(t, h), L.addHashtags(t, d), L.addParticipants(t, b), L.endKind22Parsed(t);
|
|
3098
3473
|
}
|
|
3099
3474
|
unpack() {
|
|
3100
|
-
return new
|
|
3475
|
+
return new Us(
|
|
3101
3476
|
this.title(),
|
|
3102
3477
|
this.description(),
|
|
3103
3478
|
this.bb.createObjList(this.videos.bind(this), this.videosLength()),
|
|
@@ -3113,7 +3488,7 @@ class L {
|
|
|
3113
3488
|
t.title = this.title(), t.description = this.description(), t.videos = this.bb.createObjList(this.videos.bind(this), this.videosLength()), t.alt = this.alt(), t.contentWarning = this.contentWarning(), t.duration = this.duration(), t.publishedAt = this.publishedAt(), t.hashtags = this.bb.createScalarList(this.hashtags.bind(this), this.hashtagsLength()), t.participants = this.bb.createObjList(this.participants.bind(this), this.participantsLength());
|
|
3114
3489
|
}
|
|
3115
3490
|
}
|
|
3116
|
-
class
|
|
3491
|
+
class Us {
|
|
3117
3492
|
constructor(t = null, s = null, e = [], i = null, o = null, r = 0, a = BigInt("0"), h = [], d = []) {
|
|
3118
3493
|
this.title = t, this.description = s, this.videos = e, this.alt = i, this.contentWarning = o, this.duration = r, this.publishedAt = a, this.hashtags = h, this.participants = d;
|
|
3119
3494
|
}
|
|
@@ -3232,7 +3607,7 @@ class R {
|
|
|
3232
3607
|
return R.startKind30023Parsed(t), R.addSlug(t, s), R.addTitle(t, e), R.addSummary(t, i), R.addImage(t, o), R.addCanonical(t, r), R.addTopics(t, a), R.addPublishedAt(t, h), R.addNaddr(t, d), R.addContent(t, b), R.endKind30023Parsed(t);
|
|
3233
3608
|
}
|
|
3234
3609
|
unpack() {
|
|
3235
|
-
return new
|
|
3610
|
+
return new xs(
|
|
3236
3611
|
this.slug(),
|
|
3237
3612
|
this.title(),
|
|
3238
3613
|
this.summary(),
|
|
@@ -3248,7 +3623,7 @@ class R {
|
|
|
3248
3623
|
t.slug = this.slug(), t.title = this.title(), t.summary = this.summary(), t.image = this.image(), t.canonical = this.canonical(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.publishedAt = this.publishedAt(), t.naddr = this.naddr(), t.content = this.content();
|
|
3249
3624
|
}
|
|
3250
3625
|
}
|
|
3251
|
-
class
|
|
3626
|
+
class xs {
|
|
3252
3627
|
constructor(t = null, s = null, e = null, i = null, o = null, r = [], a = BigInt("0"), h = null, d = null) {
|
|
3253
3628
|
this.slug = t, this.title = s, this.summary = e, this.image = i, this.canonical = o, this.topics = r, this.publishedAt = a, this.naddr = h, this.content = d;
|
|
3254
3629
|
}
|
|
@@ -3268,7 +3643,7 @@ class Ts {
|
|
|
3268
3643
|
);
|
|
3269
3644
|
}
|
|
3270
3645
|
}
|
|
3271
|
-
class
|
|
3646
|
+
class ht {
|
|
3272
3647
|
constructor() {
|
|
3273
3648
|
this.bb = null, this.bb_pos = 0;
|
|
3274
3649
|
}
|
|
@@ -3276,10 +3651,10 @@ class rt {
|
|
|
3276
3651
|
return this.bb_pos = t, this.bb = s, this;
|
|
3277
3652
|
}
|
|
3278
3653
|
static getRootAsContact(t, s) {
|
|
3279
|
-
return (s || new
|
|
3654
|
+
return (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3280
3655
|
}
|
|
3281
3656
|
static getSizePrefixedRootAsContact(t, s) {
|
|
3282
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3657
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ht()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3283
3658
|
}
|
|
3284
3659
|
pubkey(t) {
|
|
3285
3660
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3323,10 +3698,10 @@ class rt {
|
|
|
3323
3698
|
return t.requiredField(s, 4), s;
|
|
3324
3699
|
}
|
|
3325
3700
|
static createContact(t, s, e, i) {
|
|
3326
|
-
return
|
|
3701
|
+
return ht.startContact(t), ht.addPubkey(t, s), ht.addRelays(t, e), ht.addPetname(t, i), ht.endContact(t);
|
|
3327
3702
|
}
|
|
3328
3703
|
unpack() {
|
|
3329
|
-
return new
|
|
3704
|
+
return new Hs(
|
|
3330
3705
|
this.pubkey(),
|
|
3331
3706
|
this.bb.createScalarList(this.relays.bind(this), this.relaysLength()),
|
|
3332
3707
|
this.petname()
|
|
@@ -3336,13 +3711,13 @@ class rt {
|
|
|
3336
3711
|
t.pubkey = this.pubkey(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.petname = this.petname();
|
|
3337
3712
|
}
|
|
3338
3713
|
}
|
|
3339
|
-
class
|
|
3714
|
+
class Hs {
|
|
3340
3715
|
constructor(t = null, s = [], e = null) {
|
|
3341
3716
|
this.pubkey = t, this.relays = s, this.petname = e;
|
|
3342
3717
|
}
|
|
3343
3718
|
pack(t) {
|
|
3344
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e =
|
|
3345
|
-
return
|
|
3719
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = ht.createRelaysVector(t, t.createObjectOffsetList(this.relays)), i = this.petname !== null ? t.createString(this.petname) : 0;
|
|
3720
|
+
return ht.createContact(
|
|
3346
3721
|
t,
|
|
3347
3722
|
s,
|
|
3348
3723
|
e,
|
|
@@ -3350,7 +3725,7 @@ class ws {
|
|
|
3350
3725
|
);
|
|
3351
3726
|
}
|
|
3352
3727
|
}
|
|
3353
|
-
class
|
|
3728
|
+
class Vt {
|
|
3354
3729
|
constructor() {
|
|
3355
3730
|
this.bb = null, this.bb_pos = 0;
|
|
3356
3731
|
}
|
|
@@ -3358,14 +3733,14 @@ class Ft {
|
|
|
3358
3733
|
return this.bb_pos = t, this.bb = s, this;
|
|
3359
3734
|
}
|
|
3360
3735
|
static getRootAsKind3Parsed(t, s) {
|
|
3361
|
-
return (s || new
|
|
3736
|
+
return (s || new Vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3362
3737
|
}
|
|
3363
3738
|
static getSizePrefixedRootAsKind3Parsed(t, s) {
|
|
3364
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3739
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Vt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3365
3740
|
}
|
|
3366
3741
|
contacts(t, s) {
|
|
3367
3742
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
3368
|
-
return e ? (s || new
|
|
3743
|
+
return e ? (s || new ht()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
3369
3744
|
}
|
|
3370
3745
|
contactsLength() {
|
|
3371
3746
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3391,10 +3766,10 @@ class Ft {
|
|
|
3391
3766
|
return t.requiredField(s, 4), s;
|
|
3392
3767
|
}
|
|
3393
3768
|
static createKind3Parsed(t, s) {
|
|
3394
|
-
return
|
|
3769
|
+
return Vt.startKind3Parsed(t), Vt.addContacts(t, s), Vt.endKind3Parsed(t);
|
|
3395
3770
|
}
|
|
3396
3771
|
unpack() {
|
|
3397
|
-
return new
|
|
3772
|
+
return new Bs(
|
|
3398
3773
|
this.bb.createObjList(this.contacts.bind(this), this.contactsLength())
|
|
3399
3774
|
);
|
|
3400
3775
|
}
|
|
@@ -3402,19 +3777,19 @@ class Ft {
|
|
|
3402
3777
|
t.contacts = this.bb.createObjList(this.contacts.bind(this), this.contactsLength());
|
|
3403
3778
|
}
|
|
3404
3779
|
}
|
|
3405
|
-
class
|
|
3780
|
+
class Bs {
|
|
3406
3781
|
constructor(t = []) {
|
|
3407
3782
|
this.contacts = t;
|
|
3408
3783
|
}
|
|
3409
3784
|
pack(t) {
|
|
3410
|
-
const s =
|
|
3411
|
-
return
|
|
3785
|
+
const s = Vt.createContactsVector(t, t.createObjectOffsetList(this.contacts));
|
|
3786
|
+
return Vt.createKind3Parsed(
|
|
3412
3787
|
t,
|
|
3413
3788
|
s
|
|
3414
3789
|
);
|
|
3415
3790
|
}
|
|
3416
3791
|
}
|
|
3417
|
-
class
|
|
3792
|
+
class W {
|
|
3418
3793
|
constructor() {
|
|
3419
3794
|
this.bb = null, this.bb_pos = 0;
|
|
3420
3795
|
}
|
|
@@ -3422,10 +3797,10 @@ class D {
|
|
|
3422
3797
|
return this.bb_pos = t, this.bb = s, this;
|
|
3423
3798
|
}
|
|
3424
3799
|
static getRootAsKind4Parsed(t, s) {
|
|
3425
|
-
return (s || new
|
|
3800
|
+
return (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3426
3801
|
}
|
|
3427
3802
|
static getSizePrefixedRootAsKind4Parsed(t, s) {
|
|
3428
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3803
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new W()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3429
3804
|
}
|
|
3430
3805
|
parsedContent(t, s) {
|
|
3431
3806
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3476,10 +3851,10 @@ class D {
|
|
|
3476
3851
|
return t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
3477
3852
|
}
|
|
3478
3853
|
static createKind4Parsed(t, s, e, i, o) {
|
|
3479
|
-
return
|
|
3854
|
+
return W.startKind4Parsed(t), W.addParsedContent(t, s), W.addDecryptedContent(t, e), W.addChatId(t, i), W.addRecipient(t, o), W.endKind4Parsed(t);
|
|
3480
3855
|
}
|
|
3481
3856
|
unpack() {
|
|
3482
|
-
return new
|
|
3857
|
+
return new zs(
|
|
3483
3858
|
this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()),
|
|
3484
3859
|
this.decryptedContent(),
|
|
3485
3860
|
this.chatId(),
|
|
@@ -3490,13 +3865,13 @@ class D {
|
|
|
3490
3865
|
t.parsedContent = this.bb.createObjList(this.parsedContent.bind(this), this.parsedContentLength()), t.decryptedContent = this.decryptedContent(), t.chatId = this.chatId(), t.recipient = this.recipient();
|
|
3491
3866
|
}
|
|
3492
3867
|
}
|
|
3493
|
-
class
|
|
3868
|
+
class zs {
|
|
3494
3869
|
constructor(t = [], s = null, e = null, i = null) {
|
|
3495
3870
|
this.parsedContent = t, this.decryptedContent = s, this.chatId = e, this.recipient = i;
|
|
3496
3871
|
}
|
|
3497
3872
|
pack(t) {
|
|
3498
|
-
const s =
|
|
3499
|
-
return
|
|
3873
|
+
const s = W.createParsedContentVector(t, t.createObjectOffsetList(this.parsedContent)), e = this.decryptedContent !== null ? t.createString(this.decryptedContent) : 0, i = this.chatId !== null ? t.createString(this.chatId) : 0, o = this.recipient !== null ? t.createString(this.recipient) : 0;
|
|
3874
|
+
return W.createKind4Parsed(
|
|
3500
3875
|
t,
|
|
3501
3876
|
s,
|
|
3502
3877
|
e,
|
|
@@ -3505,7 +3880,7 @@ class As {
|
|
|
3505
3880
|
);
|
|
3506
3881
|
}
|
|
3507
3882
|
}
|
|
3508
|
-
class
|
|
3883
|
+
class At {
|
|
3509
3884
|
constructor() {
|
|
3510
3885
|
this.bb = null, this.bb_pos = 0;
|
|
3511
3886
|
}
|
|
@@ -3513,10 +3888,10 @@ class Et {
|
|
|
3513
3888
|
return this.bb_pos = t, this.bb = s, this;
|
|
3514
3889
|
}
|
|
3515
3890
|
static getRootAsKind6Parsed(t, s) {
|
|
3516
|
-
return (s || new
|
|
3891
|
+
return (s || new At()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3517
3892
|
}
|
|
3518
3893
|
static getSizePrefixedRootAsKind6Parsed(t, s) {
|
|
3519
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3894
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new At()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3520
3895
|
}
|
|
3521
3896
|
repostedEvent(t) {
|
|
3522
3897
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3532,10 +3907,10 @@ class Et {
|
|
|
3532
3907
|
return t.endObject();
|
|
3533
3908
|
}
|
|
3534
3909
|
static createKind6Parsed(t, s) {
|
|
3535
|
-
return
|
|
3910
|
+
return At.startKind6Parsed(t), At.addRepostedEvent(t, s), At.endKind6Parsed(t);
|
|
3536
3911
|
}
|
|
3537
3912
|
unpack() {
|
|
3538
|
-
return new
|
|
3913
|
+
return new Zs(
|
|
3539
3914
|
this.repostedEvent() !== null ? this.repostedEvent().unpack() : null
|
|
3540
3915
|
);
|
|
3541
3916
|
}
|
|
@@ -3543,19 +3918,19 @@ class Et {
|
|
|
3543
3918
|
t.repostedEvent = this.repostedEvent() !== null ? this.repostedEvent().unpack() : null;
|
|
3544
3919
|
}
|
|
3545
3920
|
}
|
|
3546
|
-
class
|
|
3921
|
+
class Zs {
|
|
3547
3922
|
constructor(t = null) {
|
|
3548
3923
|
this.repostedEvent = t;
|
|
3549
3924
|
}
|
|
3550
3925
|
pack(t) {
|
|
3551
3926
|
const s = this.repostedEvent !== null ? this.repostedEvent.pack(t) : 0;
|
|
3552
|
-
return
|
|
3927
|
+
return At.createKind6Parsed(
|
|
3553
3928
|
t,
|
|
3554
3929
|
s
|
|
3555
3930
|
);
|
|
3556
3931
|
}
|
|
3557
3932
|
}
|
|
3558
|
-
class
|
|
3933
|
+
class bt {
|
|
3559
3934
|
constructor() {
|
|
3560
3935
|
this.bb = null, this.bb_pos = 0;
|
|
3561
3936
|
}
|
|
@@ -3563,10 +3938,10 @@ class ht {
|
|
|
3563
3938
|
return this.bb_pos = t, this.bb = s, this;
|
|
3564
3939
|
}
|
|
3565
3940
|
static getRootAsKind7374Parsed(t, s) {
|
|
3566
|
-
return (s || new
|
|
3941
|
+
return (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3567
3942
|
}
|
|
3568
3943
|
static getSizePrefixedRootAsKind7374Parsed(t, s) {
|
|
3569
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
3944
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new bt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3570
3945
|
}
|
|
3571
3946
|
quoteId(t) {
|
|
3572
3947
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3597,10 +3972,10 @@ class ht {
|
|
|
3597
3972
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
3598
3973
|
}
|
|
3599
3974
|
static createKind7374Parsed(t, s, e, i) {
|
|
3600
|
-
return
|
|
3975
|
+
return bt.startKind7374Parsed(t), bt.addQuoteId(t, s), bt.addMintUrl(t, e), bt.addExpiration(t, i), bt.endKind7374Parsed(t);
|
|
3601
3976
|
}
|
|
3602
3977
|
unpack() {
|
|
3603
|
-
return new
|
|
3978
|
+
return new Xs(
|
|
3604
3979
|
this.quoteId(),
|
|
3605
3980
|
this.mintUrl(),
|
|
3606
3981
|
this.expiration()
|
|
@@ -3610,13 +3985,13 @@ class ht {
|
|
|
3610
3985
|
t.quoteId = this.quoteId(), t.mintUrl = this.mintUrl(), t.expiration = this.expiration();
|
|
3611
3986
|
}
|
|
3612
3987
|
}
|
|
3613
|
-
class
|
|
3988
|
+
class Xs {
|
|
3614
3989
|
constructor(t = null, s = null, e = BigInt("0")) {
|
|
3615
3990
|
this.quoteId = t, this.mintUrl = s, this.expiration = e;
|
|
3616
3991
|
}
|
|
3617
3992
|
pack(t) {
|
|
3618
3993
|
const s = this.quoteId !== null ? t.createString(this.quoteId) : 0, e = this.mintUrl !== null ? t.createString(this.mintUrl) : 0;
|
|
3619
|
-
return
|
|
3994
|
+
return bt.createKind7374Parsed(
|
|
3620
3995
|
t,
|
|
3621
3996
|
s,
|
|
3622
3997
|
e,
|
|
@@ -3624,7 +3999,7 @@ class Ks {
|
|
|
3624
3999
|
);
|
|
3625
4000
|
}
|
|
3626
4001
|
}
|
|
3627
|
-
class
|
|
4002
|
+
class ft {
|
|
3628
4003
|
constructor() {
|
|
3629
4004
|
this.bb = null, this.bb_pos = 0;
|
|
3630
4005
|
}
|
|
@@ -3632,10 +4007,10 @@ class ct {
|
|
|
3632
4007
|
return this.bb_pos = t, this.bb = s, this;
|
|
3633
4008
|
}
|
|
3634
4009
|
static getRootAsDLEQProof(t, s) {
|
|
3635
|
-
return (s || new
|
|
4010
|
+
return (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3636
4011
|
}
|
|
3637
4012
|
static getSizePrefixedRootAsDLEQProof(t, s) {
|
|
3638
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4013
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ft()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3639
4014
|
}
|
|
3640
4015
|
e(t) {
|
|
3641
4016
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3666,10 +4041,10 @@ class ct {
|
|
|
3666
4041
|
return t.requiredField(s, 4), t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
3667
4042
|
}
|
|
3668
4043
|
static createDLEQProof(t, s, e, i) {
|
|
3669
|
-
return
|
|
4044
|
+
return ft.startDLEQProof(t), ft.addE(t, s), ft.addS(t, e), ft.addR(t, i), ft.endDLEQProof(t);
|
|
3670
4045
|
}
|
|
3671
4046
|
unpack() {
|
|
3672
|
-
return new
|
|
4047
|
+
return new Gs(
|
|
3673
4048
|
this.e(),
|
|
3674
4049
|
this.s(),
|
|
3675
4050
|
this.r()
|
|
@@ -3679,13 +4054,13 @@ class ct {
|
|
|
3679
4054
|
t.e = this.e(), t.s = this.s(), t.r = this.r();
|
|
3680
4055
|
}
|
|
3681
4056
|
}
|
|
3682
|
-
class
|
|
4057
|
+
class Gs {
|
|
3683
4058
|
constructor(t = null, s = null, e = null) {
|
|
3684
4059
|
this.e = t, this.s = s, this.r = e;
|
|
3685
4060
|
}
|
|
3686
4061
|
pack(t) {
|
|
3687
4062
|
const s = this.e !== null ? t.createString(this.e) : 0, e = this.s !== null ? t.createString(this.s) : 0, i = this.r !== null ? t.createString(this.r) : 0;
|
|
3688
|
-
return
|
|
4063
|
+
return ft.createDLEQProof(
|
|
3689
4064
|
t,
|
|
3690
4065
|
s,
|
|
3691
4066
|
e,
|
|
@@ -3693,7 +4068,7 @@ class Ns {
|
|
|
3693
4068
|
);
|
|
3694
4069
|
}
|
|
3695
4070
|
}
|
|
3696
|
-
class
|
|
4071
|
+
class Ot {
|
|
3697
4072
|
constructor() {
|
|
3698
4073
|
this.bb = null, this.bb_pos = 0;
|
|
3699
4074
|
}
|
|
@@ -3701,10 +4076,10 @@ class pt {
|
|
|
3701
4076
|
return this.bb_pos = t, this.bb = s, this;
|
|
3702
4077
|
}
|
|
3703
4078
|
static getRootAsHTLCWitness(t, s) {
|
|
3704
|
-
return (s || new
|
|
4079
|
+
return (s || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3705
4080
|
}
|
|
3706
4081
|
static getSizePrefixedRootAsHTLCWitness(t, s) {
|
|
3707
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4082
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3708
4083
|
}
|
|
3709
4084
|
preimage(t) {
|
|
3710
4085
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3741,10 +4116,10 @@ class pt {
|
|
|
3741
4116
|
return t.requiredField(s, 4), s;
|
|
3742
4117
|
}
|
|
3743
4118
|
static createHTLCWitness(t, s, e) {
|
|
3744
|
-
return
|
|
4119
|
+
return Ot.startHTLCWitness(t), Ot.addPreimage(t, s), Ot.addSignatures(t, e), Ot.endHTLCWitness(t);
|
|
3745
4120
|
}
|
|
3746
4121
|
unpack() {
|
|
3747
|
-
return new
|
|
4122
|
+
return new Ds(
|
|
3748
4123
|
this.preimage(),
|
|
3749
4124
|
this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength())
|
|
3750
4125
|
);
|
|
@@ -3753,20 +4128,20 @@ class pt {
|
|
|
3753
4128
|
t.preimage = this.preimage(), t.signatures = this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength());
|
|
3754
4129
|
}
|
|
3755
4130
|
}
|
|
3756
|
-
class
|
|
4131
|
+
class Ds {
|
|
3757
4132
|
constructor(t = null, s = []) {
|
|
3758
4133
|
this.preimage = t, this.signatures = s;
|
|
3759
4134
|
}
|
|
3760
4135
|
pack(t) {
|
|
3761
|
-
const s = this.preimage !== null ? t.createString(this.preimage) : 0, e =
|
|
3762
|
-
return
|
|
4136
|
+
const s = this.preimage !== null ? t.createString(this.preimage) : 0, e = Ot.createSignaturesVector(t, t.createObjectOffsetList(this.signatures));
|
|
4137
|
+
return Ot.createHTLCWitness(
|
|
3763
4138
|
t,
|
|
3764
4139
|
s,
|
|
3765
4140
|
e
|
|
3766
4141
|
);
|
|
3767
4142
|
}
|
|
3768
4143
|
}
|
|
3769
|
-
class
|
|
4144
|
+
class Et {
|
|
3770
4145
|
constructor() {
|
|
3771
4146
|
this.bb = null, this.bb_pos = 0;
|
|
3772
4147
|
}
|
|
@@ -3774,10 +4149,10 @@ class Pt {
|
|
|
3774
4149
|
return this.bb_pos = t, this.bb = s, this;
|
|
3775
4150
|
}
|
|
3776
4151
|
static getRootAsP2PKWitness(t, s) {
|
|
3777
|
-
return (s || new
|
|
4152
|
+
return (s || new Et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3778
4153
|
}
|
|
3779
4154
|
static getSizePrefixedRootAsP2PKWitness(t, s) {
|
|
3780
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4155
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Et()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3781
4156
|
}
|
|
3782
4157
|
signatures(t, s) {
|
|
3783
4158
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3806,10 +4181,10 @@ class Pt {
|
|
|
3806
4181
|
return t.endObject();
|
|
3807
4182
|
}
|
|
3808
4183
|
static createP2PKWitness(t, s) {
|
|
3809
|
-
return
|
|
4184
|
+
return Et.startP2PKWitness(t), Et.addSignatures(t, s), Et.endP2PKWitness(t);
|
|
3810
4185
|
}
|
|
3811
4186
|
unpack() {
|
|
3812
|
-
return new
|
|
4187
|
+
return new Ms(
|
|
3813
4188
|
this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength())
|
|
3814
4189
|
);
|
|
3815
4190
|
}
|
|
@@ -3817,19 +4192,19 @@ class Pt {
|
|
|
3817
4192
|
t.signatures = this.bb.createScalarList(this.signatures.bind(this), this.signaturesLength());
|
|
3818
4193
|
}
|
|
3819
4194
|
}
|
|
3820
|
-
class
|
|
4195
|
+
class Ms {
|
|
3821
4196
|
constructor(t = []) {
|
|
3822
4197
|
this.signatures = t;
|
|
3823
4198
|
}
|
|
3824
4199
|
pack(t) {
|
|
3825
|
-
const s =
|
|
3826
|
-
return
|
|
4200
|
+
const s = Et.createSignaturesVector(t, t.createObjectOffsetList(this.signatures));
|
|
4201
|
+
return Et.createP2PKWitness(
|
|
3827
4202
|
t,
|
|
3828
4203
|
s
|
|
3829
4204
|
);
|
|
3830
4205
|
}
|
|
3831
4206
|
}
|
|
3832
|
-
class
|
|
4207
|
+
class Ct {
|
|
3833
4208
|
constructor() {
|
|
3834
4209
|
this.bb = null, this.bb_pos = 0;
|
|
3835
4210
|
}
|
|
@@ -3837,10 +4212,10 @@ class Tt {
|
|
|
3837
4212
|
return this.bb_pos = t, this.bb = s, this;
|
|
3838
4213
|
}
|
|
3839
4214
|
static getRootAsWitnessString(t, s) {
|
|
3840
|
-
return (s || new
|
|
4215
|
+
return (s || new Ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3841
4216
|
}
|
|
3842
4217
|
static getSizePrefixedRootAsWitnessString(t, s) {
|
|
3843
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4218
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ct()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3844
4219
|
}
|
|
3845
4220
|
value(t) {
|
|
3846
4221
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3856,10 +4231,10 @@ class Tt {
|
|
|
3856
4231
|
return t.endObject();
|
|
3857
4232
|
}
|
|
3858
4233
|
static createWitnessString(t, s) {
|
|
3859
|
-
return
|
|
4234
|
+
return Ct.startWitnessString(t), Ct.addValue(t, s), Ct.endWitnessString(t);
|
|
3860
4235
|
}
|
|
3861
4236
|
unpack() {
|
|
3862
|
-
return new
|
|
4237
|
+
return new Ws(
|
|
3863
4238
|
this.value()
|
|
3864
4239
|
);
|
|
3865
4240
|
}
|
|
@@ -3867,34 +4242,34 @@ class Tt {
|
|
|
3867
4242
|
t.value = this.value();
|
|
3868
4243
|
}
|
|
3869
4244
|
}
|
|
3870
|
-
class
|
|
4245
|
+
class Ws {
|
|
3871
4246
|
constructor(t = null) {
|
|
3872
4247
|
this.value = t;
|
|
3873
4248
|
}
|
|
3874
4249
|
pack(t) {
|
|
3875
4250
|
const s = this.value !== null ? t.createString(this.value) : 0;
|
|
3876
|
-
return
|
|
4251
|
+
return Ct.createWitnessString(
|
|
3877
4252
|
t,
|
|
3878
4253
|
s
|
|
3879
4254
|
);
|
|
3880
4255
|
}
|
|
3881
4256
|
}
|
|
3882
|
-
var
|
|
3883
|
-
function
|
|
3884
|
-
switch (
|
|
4257
|
+
var zt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.WitnessString = 1] = "WitnessString", n[n.P2PKWitness = 2] = "P2PKWitness", n[n.HTLCWitness = 3] = "HTLCWitness", n))(zt || {});
|
|
4258
|
+
function $t(n, t) {
|
|
4259
|
+
switch (zt[n]) {
|
|
3885
4260
|
case "NONE":
|
|
3886
4261
|
return null;
|
|
3887
4262
|
case "WitnessString":
|
|
3888
|
-
return t(new
|
|
4263
|
+
return t(new Ct());
|
|
3889
4264
|
case "P2PKWitness":
|
|
3890
|
-
return t(new
|
|
4265
|
+
return t(new Et());
|
|
3891
4266
|
case "HTLCWitness":
|
|
3892
|
-
return t(new
|
|
4267
|
+
return t(new Ot());
|
|
3893
4268
|
default:
|
|
3894
4269
|
return null;
|
|
3895
4270
|
}
|
|
3896
4271
|
}
|
|
3897
|
-
class
|
|
4272
|
+
class A {
|
|
3898
4273
|
constructor() {
|
|
3899
4274
|
this.bb = null, this.bb_pos = 0;
|
|
3900
4275
|
}
|
|
@@ -3902,10 +4277,10 @@ class j {
|
|
|
3902
4277
|
return this.bb_pos = t, this.bb = s, this;
|
|
3903
4278
|
}
|
|
3904
4279
|
static getRootAsProof(t, s) {
|
|
3905
|
-
return (s || new
|
|
4280
|
+
return (s || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3906
4281
|
}
|
|
3907
4282
|
static getSizePrefixedRootAsProof(t, s) {
|
|
3908
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4283
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new A()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
3909
4284
|
}
|
|
3910
4285
|
amount() {
|
|
3911
4286
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -3925,11 +4300,11 @@ class j {
|
|
|
3925
4300
|
}
|
|
3926
4301
|
dleq(t) {
|
|
3927
4302
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
3928
|
-
return s ? (t || new
|
|
4303
|
+
return s ? (t || new ft()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
3929
4304
|
}
|
|
3930
4305
|
witnessType() {
|
|
3931
4306
|
const t = this.bb.__offset(this.bb_pos, 14);
|
|
3932
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
4307
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : zt.NONE;
|
|
3933
4308
|
}
|
|
3934
4309
|
witness(t) {
|
|
3935
4310
|
const s = this.bb.__offset(this.bb_pos, 16);
|
|
@@ -3958,7 +4333,7 @@ class j {
|
|
|
3958
4333
|
t.addFieldOffset(4, s, 0);
|
|
3959
4334
|
}
|
|
3960
4335
|
static addWitnessType(t, s) {
|
|
3961
|
-
t.addFieldInt8(5, s,
|
|
4336
|
+
t.addFieldInt8(5, s, zt.NONE);
|
|
3962
4337
|
}
|
|
3963
4338
|
static addWitness(t, s) {
|
|
3964
4339
|
t.addFieldOffset(6, s, 0);
|
|
@@ -3971,7 +4346,7 @@ class j {
|
|
|
3971
4346
|
return t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
3972
4347
|
}
|
|
3973
4348
|
unpack() {
|
|
3974
|
-
return new
|
|
4349
|
+
return new Qs(
|
|
3975
4350
|
this.amount(),
|
|
3976
4351
|
this.id(),
|
|
3977
4352
|
this.secret(),
|
|
@@ -3979,7 +4354,7 @@ class j {
|
|
|
3979
4354
|
this.dleq() !== null ? this.dleq().unpack() : null,
|
|
3980
4355
|
this.witnessType(),
|
|
3981
4356
|
(() => {
|
|
3982
|
-
const t =
|
|
4357
|
+
const t = $t(this.witnessType(), this.witness.bind(this));
|
|
3983
4358
|
return t === null ? null : t.unpack();
|
|
3984
4359
|
})(),
|
|
3985
4360
|
this.version()
|
|
@@ -3987,21 +4362,21 @@ class j {
|
|
|
3987
4362
|
}
|
|
3988
4363
|
unpackTo(t) {
|
|
3989
4364
|
t.amount = this.amount(), t.id = this.id(), t.secret = this.secret(), t.c = this.c(), t.dleq = this.dleq() !== null ? this.dleq().unpack() : null, t.witnessType = this.witnessType(), t.witness = (() => {
|
|
3990
|
-
const s =
|
|
4365
|
+
const s = $t(this.witnessType(), this.witness.bind(this));
|
|
3991
4366
|
return s === null ? null : s.unpack();
|
|
3992
4367
|
})(), t.version = this.version();
|
|
3993
4368
|
}
|
|
3994
4369
|
}
|
|
3995
|
-
class
|
|
3996
|
-
constructor(t = BigInt("0"), s = null, e = null, i = null, o = null, r =
|
|
4370
|
+
class Qs {
|
|
4371
|
+
constructor(t = BigInt("0"), s = null, e = null, i = null, o = null, r = zt.NONE, a = null, h = 0) {
|
|
3997
4372
|
this.amount = t, this.id = s, this.secret = e, this.c = i, this.dleq = o, this.witnessType = r, this.witness = a, this.version = h;
|
|
3998
4373
|
}
|
|
3999
4374
|
pack(t) {
|
|
4000
4375
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.secret !== null ? t.createString(this.secret) : 0, i = this.c !== null ? t.createString(this.c) : 0, o = this.dleq !== null ? this.dleq.pack(t) : 0, r = t.createObjectOffset(this.witness);
|
|
4001
|
-
return
|
|
4376
|
+
return A.startProof(t), A.addAmount(t, this.amount), A.addId(t, s), A.addSecret(t, e), A.addC(t, i), A.addDleq(t, o), A.addWitnessType(t, this.witnessType), A.addWitness(t, r), A.addVersion(t, this.version), A.endProof(t);
|
|
4002
4377
|
}
|
|
4003
4378
|
}
|
|
4004
|
-
class
|
|
4379
|
+
class B {
|
|
4005
4380
|
constructor() {
|
|
4006
4381
|
this.bb = null, this.bb_pos = 0;
|
|
4007
4382
|
}
|
|
@@ -4009,10 +4384,10 @@ class H {
|
|
|
4009
4384
|
return this.bb_pos = t, this.bb = s, this;
|
|
4010
4385
|
}
|
|
4011
4386
|
static getRootAsKind7375Parsed(t, s) {
|
|
4012
|
-
return (s || new
|
|
4387
|
+
return (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4013
4388
|
}
|
|
4014
4389
|
static getSizePrefixedRootAsKind7375Parsed(t, s) {
|
|
4015
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4390
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new B()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4016
4391
|
}
|
|
4017
4392
|
mintUrl(t) {
|
|
4018
4393
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4020,7 +4395,7 @@ class H {
|
|
|
4020
4395
|
}
|
|
4021
4396
|
proofs(t, s) {
|
|
4022
4397
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
4023
|
-
return e ? (s || new
|
|
4398
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4024
4399
|
}
|
|
4025
4400
|
proofsLength() {
|
|
4026
4401
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -4076,10 +4451,10 @@ class H {
|
|
|
4076
4451
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
4077
4452
|
}
|
|
4078
4453
|
static createKind7375Parsed(t, s, e, i, o) {
|
|
4079
|
-
return
|
|
4454
|
+
return B.startKind7375Parsed(t), B.addMintUrl(t, s), B.addProofs(t, e), B.addDeletedIds(t, i), B.addDecrypted(t, o), B.endKind7375Parsed(t);
|
|
4080
4455
|
}
|
|
4081
4456
|
unpack() {
|
|
4082
|
-
return new
|
|
4457
|
+
return new Ys(
|
|
4083
4458
|
this.mintUrl(),
|
|
4084
4459
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength()),
|
|
4085
4460
|
this.bb.createScalarList(this.deletedIds.bind(this), this.deletedIdsLength()),
|
|
@@ -4090,13 +4465,13 @@ class H {
|
|
|
4090
4465
|
t.mintUrl = this.mintUrl(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength()), t.deletedIds = this.bb.createScalarList(this.deletedIds.bind(this), this.deletedIdsLength()), t.decrypted = this.decrypted();
|
|
4091
4466
|
}
|
|
4092
4467
|
}
|
|
4093
|
-
class
|
|
4468
|
+
class Ys {
|
|
4094
4469
|
constructor(t = null, s = [], e = [], i = false) {
|
|
4095
4470
|
this.mintUrl = t, this.proofs = s, this.deletedIds = e, this.decrypted = i;
|
|
4096
4471
|
}
|
|
4097
4472
|
pack(t) {
|
|
4098
|
-
const s = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, e =
|
|
4099
|
-
return
|
|
4473
|
+
const s = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, e = B.createProofsVector(t, t.createObjectOffsetList(this.proofs)), i = B.createDeletedIdsVector(t, t.createObjectOffsetList(this.deletedIds));
|
|
4474
|
+
return B.createKind7375Parsed(
|
|
4100
4475
|
t,
|
|
4101
4476
|
s,
|
|
4102
4477
|
e,
|
|
@@ -4105,7 +4480,7 @@ class Bs {
|
|
|
4105
4480
|
);
|
|
4106
4481
|
}
|
|
4107
4482
|
}
|
|
4108
|
-
class
|
|
4483
|
+
class nt {
|
|
4109
4484
|
constructor() {
|
|
4110
4485
|
this.bb = null, this.bb_pos = 0;
|
|
4111
4486
|
}
|
|
@@ -4113,10 +4488,10 @@ class et {
|
|
|
4113
4488
|
return this.bb_pos = t, this.bb = s, this;
|
|
4114
4489
|
}
|
|
4115
4490
|
static getRootAsHistoryTag(t, s) {
|
|
4116
|
-
return (s || new
|
|
4491
|
+
return (s || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4117
4492
|
}
|
|
4118
4493
|
static getSizePrefixedRootAsHistoryTag(t, s) {
|
|
4119
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4494
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4120
4495
|
}
|
|
4121
4496
|
name(t) {
|
|
4122
4497
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4154,10 +4529,10 @@ class et {
|
|
|
4154
4529
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
4155
4530
|
}
|
|
4156
4531
|
static createHistoryTag(t, s, e, i, o) {
|
|
4157
|
-
return
|
|
4532
|
+
return nt.startHistoryTag(t), nt.addName(t, s), nt.addValue(t, e), nt.addRelay(t, i), nt.addMarker(t, o), nt.endHistoryTag(t);
|
|
4158
4533
|
}
|
|
4159
4534
|
unpack() {
|
|
4160
|
-
return new
|
|
4535
|
+
return new Js(
|
|
4161
4536
|
this.name(),
|
|
4162
4537
|
this.value(),
|
|
4163
4538
|
this.relay(),
|
|
@@ -4168,13 +4543,13 @@ class et {
|
|
|
4168
4543
|
t.name = this.name(), t.value = this.value(), t.relay = this.relay(), t.marker = this.marker();
|
|
4169
4544
|
}
|
|
4170
4545
|
}
|
|
4171
|
-
class
|
|
4546
|
+
class Js {
|
|
4172
4547
|
constructor(t = null, s = null, e = null, i = null) {
|
|
4173
4548
|
this.name = t, this.value = s, this.relay = e, this.marker = i;
|
|
4174
4549
|
}
|
|
4175
4550
|
pack(t) {
|
|
4176
4551
|
const s = this.name !== null ? t.createString(this.name) : 0, e = this.value !== null ? t.createString(this.value) : 0, i = this.relay !== null ? t.createString(this.relay) : 0, o = this.marker !== null ? t.createString(this.marker) : 0;
|
|
4177
|
-
return
|
|
4552
|
+
return nt.createHistoryTag(
|
|
4178
4553
|
t,
|
|
4179
4554
|
s,
|
|
4180
4555
|
e,
|
|
@@ -4230,7 +4605,7 @@ class v {
|
|
|
4230
4605
|
}
|
|
4231
4606
|
tags(t, s) {
|
|
4232
4607
|
const e = this.bb.__offset(this.bb_pos, 14);
|
|
4233
|
-
return e ? (s || new
|
|
4608
|
+
return e ? (s || new nt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4234
4609
|
}
|
|
4235
4610
|
tagsLength() {
|
|
4236
4611
|
const t = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -4308,7 +4683,7 @@ class v {
|
|
|
4308
4683
|
return v.startKind7376Parsed(t), v.addDirection(t, s), v.addAmount(t, e), v.addCreatedEvents(t, i), v.addDestroyedEvents(t, o), v.addRedeemedEvents(t, r), v.addTags(t, a), v.addDecrypted(t, h), v.endKind7376Parsed(t);
|
|
4309
4684
|
}
|
|
4310
4685
|
unpack() {
|
|
4311
|
-
return new
|
|
4686
|
+
return new $s(
|
|
4312
4687
|
this.direction(),
|
|
4313
4688
|
this.amount(),
|
|
4314
4689
|
this.bb.createScalarList(this.createdEvents.bind(this), this.createdEventsLength()),
|
|
@@ -4322,7 +4697,7 @@ class v {
|
|
|
4322
4697
|
t.direction = this.direction(), t.amount = this.amount(), t.createdEvents = this.bb.createScalarList(this.createdEvents.bind(this), this.createdEventsLength()), t.destroyedEvents = this.bb.createScalarList(this.destroyedEvents.bind(this), this.destroyedEventsLength()), t.redeemedEvents = this.bb.createScalarList(this.redeemedEvents.bind(this), this.redeemedEventsLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.decrypted = this.decrypted();
|
|
4323
4698
|
}
|
|
4324
4699
|
}
|
|
4325
|
-
class
|
|
4700
|
+
class $s {
|
|
4326
4701
|
constructor(t = null, s = 0, e = [], i = [], o = [], r = [], a = false) {
|
|
4327
4702
|
this.direction = t, this.amount = s, this.createdEvents = e, this.destroyedEvents = i, this.redeemedEvents = o, this.tags = r, this.decrypted = a;
|
|
4328
4703
|
}
|
|
@@ -4340,7 +4715,7 @@ class Zs {
|
|
|
4340
4715
|
);
|
|
4341
4716
|
}
|
|
4342
4717
|
}
|
|
4343
|
-
class
|
|
4718
|
+
class Q {
|
|
4344
4719
|
constructor() {
|
|
4345
4720
|
this.bb = null, this.bb_pos = 0;
|
|
4346
4721
|
}
|
|
@@ -4348,14 +4723,14 @@ class M {
|
|
|
4348
4723
|
return this.bb_pos = t, this.bb = s, this;
|
|
4349
4724
|
}
|
|
4350
4725
|
static getRootAsKind7Parsed(t, s) {
|
|
4351
|
-
return (s || new
|
|
4726
|
+
return (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4352
4727
|
}
|
|
4353
4728
|
static getSizePrefixedRootAsKind7Parsed(t, s) {
|
|
4354
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4729
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Q()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4355
4730
|
}
|
|
4356
4731
|
reactionType() {
|
|
4357
4732
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
4358
|
-
return t ? this.bb.readInt8(this.bb_pos + t) :
|
|
4733
|
+
return t ? this.bb.readInt8(this.bb_pos + t) : Ht.Like;
|
|
4359
4734
|
}
|
|
4360
4735
|
eventId(t) {
|
|
4361
4736
|
const s = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -4371,7 +4746,7 @@ class M {
|
|
|
4371
4746
|
}
|
|
4372
4747
|
emoji(t) {
|
|
4373
4748
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
4374
|
-
return s ? (t || new
|
|
4749
|
+
return s ? (t || new gt()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
4375
4750
|
}
|
|
4376
4751
|
targetCoordinates(t) {
|
|
4377
4752
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -4381,7 +4756,7 @@ class M {
|
|
|
4381
4756
|
t.startObject(6);
|
|
4382
4757
|
}
|
|
4383
4758
|
static addReactionType(t, s) {
|
|
4384
|
-
t.addFieldInt8(0, s,
|
|
4759
|
+
t.addFieldInt8(0, s, Ht.Like);
|
|
4385
4760
|
}
|
|
4386
4761
|
static addEventId(t, s) {
|
|
4387
4762
|
t.addFieldOffset(1, s, 0);
|
|
@@ -4403,7 +4778,7 @@ class M {
|
|
|
4403
4778
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
4404
4779
|
}
|
|
4405
4780
|
unpack() {
|
|
4406
|
-
return new
|
|
4781
|
+
return new te(
|
|
4407
4782
|
this.reactionType(),
|
|
4408
4783
|
this.eventId(),
|
|
4409
4784
|
this.pubkey(),
|
|
@@ -4416,16 +4791,16 @@ class M {
|
|
|
4416
4791
|
t.reactionType = this.reactionType(), t.eventId = this.eventId(), t.pubkey = this.pubkey(), t.eventKind = this.eventKind(), t.emoji = this.emoji() !== null ? this.emoji().unpack() : null, t.targetCoordinates = this.targetCoordinates();
|
|
4417
4792
|
}
|
|
4418
4793
|
}
|
|
4419
|
-
class
|
|
4420
|
-
constructor(t =
|
|
4794
|
+
class te {
|
|
4795
|
+
constructor(t = Ht.Like, s = null, e = null, i = BigInt("0"), o = null, r = null) {
|
|
4421
4796
|
this.reactionType = t, this.eventId = s, this.pubkey = e, this.eventKind = i, this.emoji = o, this.targetCoordinates = r;
|
|
4422
4797
|
}
|
|
4423
4798
|
pack(t) {
|
|
4424
4799
|
const s = this.eventId !== null ? t.createString(this.eventId) : 0, e = this.pubkey !== null ? t.createString(this.pubkey) : 0, i = this.emoji !== null ? this.emoji.pack(t) : 0, o = this.targetCoordinates !== null ? t.createString(this.targetCoordinates) : 0;
|
|
4425
|
-
return
|
|
4800
|
+
return Q.startKind7Parsed(t), Q.addReactionType(t, this.reactionType), Q.addEventId(t, s), Q.addPubkey(t, e), Q.addEventKind(t, this.eventKind), Q.addEmoji(t, i), Q.addTargetCoordinates(t, o), Q.endKind7Parsed(t);
|
|
4426
4801
|
}
|
|
4427
4802
|
}
|
|
4428
|
-
class
|
|
4803
|
+
class m {
|
|
4429
4804
|
constructor() {
|
|
4430
4805
|
this.bb = null, this.bb_pos = 0;
|
|
4431
4806
|
}
|
|
@@ -4433,10 +4808,10 @@ class I {
|
|
|
4433
4808
|
return this.bb_pos = t, this.bb = s, this;
|
|
4434
4809
|
}
|
|
4435
4810
|
static getRootAsKind9321Parsed(t, s) {
|
|
4436
|
-
return (s || new
|
|
4811
|
+
return (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4437
4812
|
}
|
|
4438
4813
|
static getSizePrefixedRootAsKind9321Parsed(t, s) {
|
|
4439
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4814
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new m()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4440
4815
|
}
|
|
4441
4816
|
id(t) {
|
|
4442
4817
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4468,7 +4843,7 @@ class I {
|
|
|
4468
4843
|
}
|
|
4469
4844
|
proofs(t, s) {
|
|
4470
4845
|
const e = this.bb.__offset(this.bb_pos, 18);
|
|
4471
|
-
return e ? (s || new
|
|
4846
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4472
4847
|
}
|
|
4473
4848
|
proofsLength() {
|
|
4474
4849
|
const t = this.bb.__offset(this.bb_pos, 18);
|
|
@@ -4536,10 +4911,10 @@ class I {
|
|
|
4536
4911
|
return t.requiredField(s, 4), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 14), t.requiredField(s, 18), s;
|
|
4537
4912
|
}
|
|
4538
4913
|
static createKind9321Parsed(t, s, e, i, o, r, a, h, d, b, l, u) {
|
|
4539
|
-
return
|
|
4914
|
+
return m.startKind9321Parsed(t), m.addId(t, s), m.addAmount(t, e), m.addRecipient(t, i), m.addSender(t, o), m.addEventId(t, r), m.addMintUrl(t, a), m.addRedeemed(t, h), m.addProofs(t, d), m.addComment(t, b), m.addIsP2pkLocked(t, l), m.addP2pkPubkey(t, u), m.endKind9321Parsed(t);
|
|
4540
4915
|
}
|
|
4541
4916
|
unpack() {
|
|
4542
|
-
return new
|
|
4917
|
+
return new se(
|
|
4543
4918
|
this.id(),
|
|
4544
4919
|
this.amount(),
|
|
4545
4920
|
this.recipient(),
|
|
@@ -4557,13 +4932,13 @@ class I {
|
|
|
4557
4932
|
t.id = this.id(), t.amount = this.amount(), t.recipient = this.recipient(), t.sender = this.sender(), t.eventId = this.eventId(), t.mintUrl = this.mintUrl(), t.redeemed = this.redeemed(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength()), t.comment = this.comment(), t.isP2pkLocked = this.isP2pkLocked(), t.p2pkPubkey = this.p2pkPubkey();
|
|
4558
4933
|
}
|
|
4559
4934
|
}
|
|
4560
|
-
class
|
|
4935
|
+
class se {
|
|
4561
4936
|
constructor(t = null, s = 0, e = null, i = null, o = null, r = null, a = false, h = [], d = null, b = false, l = null) {
|
|
4562
4937
|
this.id = t, this.amount = s, this.recipient = e, this.sender = i, this.eventId = o, this.mintUrl = r, this.redeemed = a, this.proofs = h, this.comment = d, this.isP2pkLocked = b, this.p2pkPubkey = l;
|
|
4563
4938
|
}
|
|
4564
4939
|
pack(t) {
|
|
4565
|
-
const s = this.id !== null ? t.createString(this.id) : 0, e = this.recipient !== null ? t.createString(this.recipient) : 0, i = this.sender !== null ? t.createString(this.sender) : 0, o = this.eventId !== null ? t.createString(this.eventId) : 0, r = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, a =
|
|
4566
|
-
return
|
|
4940
|
+
const s = this.id !== null ? t.createString(this.id) : 0, e = this.recipient !== null ? t.createString(this.recipient) : 0, i = this.sender !== null ? t.createString(this.sender) : 0, o = this.eventId !== null ? t.createString(this.eventId) : 0, r = this.mintUrl !== null ? t.createString(this.mintUrl) : 0, a = m.createProofsVector(t, t.createObjectOffsetList(this.proofs)), h = this.comment !== null ? t.createString(this.comment) : 0, d = this.p2pkPubkey !== null ? t.createString(this.p2pkPubkey) : 0;
|
|
4941
|
+
return m.createKind9321Parsed(
|
|
4567
4942
|
t,
|
|
4568
4943
|
s,
|
|
4569
4944
|
this.amount,
|
|
@@ -4579,7 +4954,7 @@ class Gs {
|
|
|
4579
4954
|
);
|
|
4580
4955
|
}
|
|
4581
4956
|
}
|
|
4582
|
-
class
|
|
4957
|
+
class H {
|
|
4583
4958
|
constructor() {
|
|
4584
4959
|
this.bb = null, this.bb_pos = 0;
|
|
4585
4960
|
}
|
|
@@ -4587,10 +4962,10 @@ class x {
|
|
|
4587
4962
|
return this.bb_pos = t, this.bb = s, this;
|
|
4588
4963
|
}
|
|
4589
4964
|
static getRootAsZapRequest(t, s) {
|
|
4590
|
-
return (s || new
|
|
4965
|
+
return (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4591
4966
|
}
|
|
4592
4967
|
static getSizePrefixedRootAsZapRequest(t, s) {
|
|
4593
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
4968
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new H()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4594
4969
|
}
|
|
4595
4970
|
kind() {
|
|
4596
4971
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4606,7 +4981,7 @@ class x {
|
|
|
4606
4981
|
}
|
|
4607
4982
|
tags(t, s) {
|
|
4608
4983
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
4609
|
-
return e ? (s || new
|
|
4984
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
4610
4985
|
}
|
|
4611
4986
|
tagsLength() {
|
|
4612
4987
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -4648,10 +5023,10 @@ class x {
|
|
|
4648
5023
|
return t.requiredField(s, 6), t.requiredField(s, 8), t.requiredField(s, 10), s;
|
|
4649
5024
|
}
|
|
4650
5025
|
static createZapRequest(t, s, e, i, o, r) {
|
|
4651
|
-
return
|
|
5026
|
+
return H.startZapRequest(t), H.addKind(t, s), H.addPubkey(t, e), H.addContent(t, i), H.addTags(t, o), H.addSignature(t, r), H.endZapRequest(t);
|
|
4652
5027
|
}
|
|
4653
5028
|
unpack() {
|
|
4654
|
-
return new
|
|
5029
|
+
return new ee(
|
|
4655
5030
|
this.kind(),
|
|
4656
5031
|
this.pubkey(),
|
|
4657
5032
|
this.content(),
|
|
@@ -4663,13 +5038,13 @@ class x {
|
|
|
4663
5038
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.content = this.content(), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.signature = this.signature();
|
|
4664
5039
|
}
|
|
4665
5040
|
}
|
|
4666
|
-
class
|
|
5041
|
+
class ee {
|
|
4667
5042
|
constructor(t = 0, s = null, e = null, i = [], o = null) {
|
|
4668
5043
|
this.kind = t, this.pubkey = s, this.content = e, this.tags = i, this.signature = o;
|
|
4669
5044
|
}
|
|
4670
5045
|
pack(t) {
|
|
4671
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.content !== null ? t.createString(this.content) : 0, i =
|
|
4672
|
-
return
|
|
5046
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = H.createTagsVector(t, t.createObjectOffsetList(this.tags)), o = this.signature !== null ? t.createString(this.signature) : 0;
|
|
5047
|
+
return H.createZapRequest(
|
|
4673
5048
|
t,
|
|
4674
5049
|
this.kind,
|
|
4675
5050
|
s,
|
|
@@ -4738,7 +5113,7 @@ class F {
|
|
|
4738
5113
|
}
|
|
4739
5114
|
description(t) {
|
|
4740
5115
|
const s = this.bb.__offset(this.bb_pos, 26);
|
|
4741
|
-
return s ? (t || new
|
|
5116
|
+
return s ? (t || new H()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
4742
5117
|
}
|
|
4743
5118
|
static startKind9735Parsed(t) {
|
|
4744
5119
|
t.startObject(12);
|
|
@@ -4784,7 +5159,7 @@ class F {
|
|
|
4784
5159
|
return t.requiredField(s, 4), t.requiredField(s, 8), t.requiredField(s, 10), t.requiredField(s, 14), t.requiredField(s, 16), t.requiredField(s, 26), s;
|
|
4785
5160
|
}
|
|
4786
5161
|
unpack() {
|
|
4787
|
-
return new
|
|
5162
|
+
return new ie(
|
|
4788
5163
|
this.id(),
|
|
4789
5164
|
this.amount(),
|
|
4790
5165
|
this.content(),
|
|
@@ -4803,7 +5178,7 @@ class F {
|
|
|
4803
5178
|
t.id = this.id(), t.amount = this.amount(), t.content = this.content(), t.bolt11 = this.bolt11(), t.preimage = this.preimage(), t.sender = this.sender(), t.recipient = this.recipient(), t.event = this.event(), t.eventCoordinate = this.eventCoordinate(), t.timestamp = this.timestamp(), t.valid = this.valid(), t.description = this.description() !== null ? this.description().unpack() : null;
|
|
4804
5179
|
}
|
|
4805
5180
|
}
|
|
4806
|
-
class
|
|
5181
|
+
class ie {
|
|
4807
5182
|
constructor(t = null, s = 0, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = BigInt("0"), l = false, u = null) {
|
|
4808
5183
|
this.id = t, this.amount = s, this.content = e, this.bolt11 = i, this.preimage = o, this.sender = r, this.recipient = a, this.event = h, this.eventCoordinate = d, this.timestamp = b, this.valid = l, this.description = u;
|
|
4809
5184
|
}
|
|
@@ -4812,7 +5187,7 @@ class Ms {
|
|
|
4812
5187
|
return F.startKind9735Parsed(t), F.addId(t, s), F.addAmount(t, this.amount), F.addContent(t, e), F.addBolt11(t, i), F.addPreimage(t, o), F.addSender(t, r), F.addRecipient(t, a), F.addEvent(t, h), F.addEventCoordinate(t, d), F.addTimestamp(t, this.timestamp), F.addValid(t, this.valid), F.addDescription(t, b), F.endKind9735Parsed(t);
|
|
4813
5188
|
}
|
|
4814
5189
|
}
|
|
4815
|
-
class
|
|
5190
|
+
class z {
|
|
4816
5191
|
constructor() {
|
|
4817
5192
|
this.bb = null, this.bb_pos = 0;
|
|
4818
5193
|
}
|
|
@@ -4820,10 +5195,10 @@ class B {
|
|
|
4820
5195
|
return this.bb_pos = t, this.bb = s, this;
|
|
4821
5196
|
}
|
|
4822
5197
|
static getRootAsCoordinate(t, s) {
|
|
4823
|
-
return (s || new
|
|
5198
|
+
return (s || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4824
5199
|
}
|
|
4825
5200
|
static getSizePrefixedRootAsCoordinate(t, s) {
|
|
4826
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5201
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new z()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4827
5202
|
}
|
|
4828
5203
|
kind() {
|
|
4829
5204
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4874,10 +5249,10 @@ class B {
|
|
|
4874
5249
|
return t.requiredField(s, 6), t.requiredField(s, 8), s;
|
|
4875
5250
|
}
|
|
4876
5251
|
static createCoordinate(t, s, e, i, o) {
|
|
4877
|
-
return
|
|
5252
|
+
return z.startCoordinate(t), z.addKind(t, s), z.addPubkey(t, e), z.addD(t, i), z.addRelays(t, o), z.endCoordinate(t);
|
|
4878
5253
|
}
|
|
4879
5254
|
unpack() {
|
|
4880
|
-
return new
|
|
5255
|
+
return new ne(
|
|
4881
5256
|
this.kind(),
|
|
4882
5257
|
this.pubkey(),
|
|
4883
5258
|
this.d(),
|
|
@@ -4888,13 +5263,13 @@ class B {
|
|
|
4888
5263
|
t.kind = this.kind(), t.pubkey = this.pubkey(), t.d = this.d(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength());
|
|
4889
5264
|
}
|
|
4890
5265
|
}
|
|
4891
|
-
class
|
|
5266
|
+
class ne {
|
|
4892
5267
|
constructor(t = BigInt("0"), s = null, e = null, i = []) {
|
|
4893
5268
|
this.kind = t, this.pubkey = s, this.d = e, this.relays = i;
|
|
4894
5269
|
}
|
|
4895
5270
|
pack(t) {
|
|
4896
|
-
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.d !== null ? t.createString(this.d) : 0, i =
|
|
4897
|
-
return
|
|
5271
|
+
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.d !== null ? t.createString(this.d) : 0, i = z.createRelaysVector(t, t.createObjectOffsetList(this.relays));
|
|
5272
|
+
return z.createCoordinate(
|
|
4898
5273
|
t,
|
|
4899
5274
|
this.kind,
|
|
4900
5275
|
s,
|
|
@@ -4903,7 +5278,7 @@ class Ws {
|
|
|
4903
5278
|
);
|
|
4904
5279
|
}
|
|
4905
5280
|
}
|
|
4906
|
-
class
|
|
5281
|
+
class yt {
|
|
4907
5282
|
constructor() {
|
|
4908
5283
|
this.bb = null, this.bb_pos = 0;
|
|
4909
5284
|
}
|
|
@@ -4911,10 +5286,10 @@ class ut {
|
|
|
4911
5286
|
return this.bb_pos = t, this.bb = s, this;
|
|
4912
5287
|
}
|
|
4913
5288
|
static getRootAsTag(t, s) {
|
|
4914
|
-
return (s || new
|
|
5289
|
+
return (s || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4915
5290
|
}
|
|
4916
5291
|
static getSizePrefixedRootAsTag(t, s) {
|
|
4917
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5292
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new yt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
4918
5293
|
}
|
|
4919
5294
|
key(t) {
|
|
4920
5295
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -4951,10 +5326,10 @@ class ut {
|
|
|
4951
5326
|
return t.requiredField(s, 4), s;
|
|
4952
5327
|
}
|
|
4953
5328
|
static createTag(t, s, e) {
|
|
4954
|
-
return
|
|
5329
|
+
return yt.startTag(t), yt.addKey(t, s), yt.addValues(t, e), yt.endTag(t);
|
|
4955
5330
|
}
|
|
4956
5331
|
unpack() {
|
|
4957
|
-
return new
|
|
5332
|
+
return new oe(
|
|
4958
5333
|
this.key(),
|
|
4959
5334
|
this.bb.createScalarList(this.values.bind(this), this.valuesLength())
|
|
4960
5335
|
);
|
|
@@ -4963,13 +5338,13 @@ class ut {
|
|
|
4963
5338
|
t.key = this.key(), t.values = this.bb.createScalarList(this.values.bind(this), this.valuesLength());
|
|
4964
5339
|
}
|
|
4965
5340
|
}
|
|
4966
|
-
class
|
|
5341
|
+
class oe {
|
|
4967
5342
|
constructor(t = null, s = []) {
|
|
4968
5343
|
this.key = t, this.values = s;
|
|
4969
5344
|
}
|
|
4970
5345
|
pack(t) {
|
|
4971
|
-
const s = this.key !== null ? t.createString(this.key) : 0, e =
|
|
4972
|
-
return
|
|
5346
|
+
const s = this.key !== null ? t.createString(this.key) : 0, e = yt.createValuesVector(t, t.createObjectOffsetList(this.values));
|
|
5347
|
+
return yt.createTag(
|
|
4973
5348
|
t,
|
|
4974
5349
|
s,
|
|
4975
5350
|
e
|
|
@@ -5035,7 +5410,7 @@ class O {
|
|
|
5035
5410
|
}
|
|
5036
5411
|
addresses(t, s) {
|
|
5037
5412
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
5038
|
-
return e ? (s || new
|
|
5413
|
+
return e ? (s || new z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5039
5414
|
}
|
|
5040
5415
|
addressesLength() {
|
|
5041
5416
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -5043,7 +5418,7 @@ class O {
|
|
|
5043
5418
|
}
|
|
5044
5419
|
otherTags(t, s) {
|
|
5045
5420
|
const e = this.bb.__offset(this.bb_pos, 22);
|
|
5046
|
-
return e ? (s || new
|
|
5421
|
+
return e ? (s || new yt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5047
5422
|
}
|
|
5048
5423
|
otherTagsLength() {
|
|
5049
5424
|
const t = this.bb.__offset(this.bb_pos, 22);
|
|
@@ -5134,7 +5509,7 @@ class O {
|
|
|
5134
5509
|
return O.startListParsed(t), O.addListKind(t, s), O.addD(t, e), O.addTitle(t, i), O.addDescription(t, o), O.addImage(t, r), O.addTopics(t, a), O.addPeople(t, h), O.addEvents(t, d), O.addAddresses(t, b), O.addOtherTags(t, l), O.endListParsed(t);
|
|
5135
5510
|
}
|
|
5136
5511
|
unpack() {
|
|
5137
|
-
return new
|
|
5512
|
+
return new re(
|
|
5138
5513
|
this.listKind(),
|
|
5139
5514
|
this.d(),
|
|
5140
5515
|
this.title(),
|
|
@@ -5151,7 +5526,7 @@ class O {
|
|
|
5151
5526
|
t.listKind = this.listKind(), t.d = this.d(), t.title = this.title(), t.description = this.description(), t.image = this.image(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.people = this.bb.createScalarList(this.people.bind(this), this.peopleLength()), t.events = this.bb.createScalarList(this.events.bind(this), this.eventsLength()), t.addresses = this.bb.createObjList(this.addresses.bind(this), this.addressesLength()), t.otherTags = this.bb.createObjList(this.otherTags.bind(this), this.otherTagsLength());
|
|
5152
5527
|
}
|
|
5153
5528
|
}
|
|
5154
|
-
class
|
|
5529
|
+
class re {
|
|
5155
5530
|
constructor(t = 0, s = null, e = null, i = null, o = null, r = [], a = [], h = [], d = [], b = []) {
|
|
5156
5531
|
this.listKind = t, this.d = s, this.title = e, this.description = i, this.image = o, this.topics = r, this.people = a, this.events = h, this.addresses = d, this.otherTags = b;
|
|
5157
5532
|
}
|
|
@@ -5172,7 +5547,7 @@ class Ys {
|
|
|
5172
5547
|
);
|
|
5173
5548
|
}
|
|
5174
5549
|
}
|
|
5175
|
-
class
|
|
5550
|
+
class ot {
|
|
5176
5551
|
constructor() {
|
|
5177
5552
|
this.bb = null, this.bb_pos = 0;
|
|
5178
5553
|
}
|
|
@@ -5180,10 +5555,10 @@ class it {
|
|
|
5180
5555
|
return this.bb_pos = t, this.bb = s, this;
|
|
5181
5556
|
}
|
|
5182
5557
|
static getRootAsPreParticipant(t, s) {
|
|
5183
|
-
return (s || new
|
|
5558
|
+
return (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5184
5559
|
}
|
|
5185
5560
|
static getSizePrefixedRootAsPreParticipant(t, s) {
|
|
5186
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5561
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new ot()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5187
5562
|
}
|
|
5188
5563
|
pubkey(t) {
|
|
5189
5564
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5221,10 +5596,10 @@ class it {
|
|
|
5221
5596
|
return t.requiredField(s, 4), s;
|
|
5222
5597
|
}
|
|
5223
5598
|
static createPreParticipant(t, s, e, i, o) {
|
|
5224
|
-
return
|
|
5599
|
+
return ot.startPreParticipant(t), ot.addPubkey(t, s), ot.addRelay(t, e), ot.addRole(t, i), ot.addProof(t, o), ot.endPreParticipant(t);
|
|
5225
5600
|
}
|
|
5226
5601
|
unpack() {
|
|
5227
|
-
return new
|
|
5602
|
+
return new ae(
|
|
5228
5603
|
this.pubkey(),
|
|
5229
5604
|
this.relay(),
|
|
5230
5605
|
this.role(),
|
|
@@ -5235,13 +5610,13 @@ class it {
|
|
|
5235
5610
|
t.pubkey = this.pubkey(), t.relay = this.relay(), t.role = this.role(), t.proof = this.proof();
|
|
5236
5611
|
}
|
|
5237
5612
|
}
|
|
5238
|
-
class
|
|
5613
|
+
class ae {
|
|
5239
5614
|
constructor(t = null, s = null, e = null, i = null) {
|
|
5240
5615
|
this.pubkey = t, this.relay = s, this.role = e, this.proof = i;
|
|
5241
5616
|
}
|
|
5242
5617
|
pack(t) {
|
|
5243
5618
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0, e = this.relay !== null ? t.createString(this.relay) : 0, i = this.role !== null ? t.createString(this.role) : 0, o = this.proof !== null ? t.createString(this.proof) : 0;
|
|
5244
|
-
return
|
|
5619
|
+
return ot.createPreParticipant(
|
|
5245
5620
|
t,
|
|
5246
5621
|
s,
|
|
5247
5622
|
e,
|
|
@@ -5250,7 +5625,7 @@ class Js {
|
|
|
5250
5625
|
);
|
|
5251
5626
|
}
|
|
5252
5627
|
}
|
|
5253
|
-
class
|
|
5628
|
+
class lt {
|
|
5254
5629
|
constructor() {
|
|
5255
5630
|
this.bb = null, this.bb_pos = 0;
|
|
5256
5631
|
}
|
|
@@ -5258,10 +5633,10 @@ class dt {
|
|
|
5258
5633
|
return this.bb_pos = t, this.bb = s, this;
|
|
5259
5634
|
}
|
|
5260
5635
|
static getRootAsPreRefEvent(t, s) {
|
|
5261
|
-
return (s || new
|
|
5636
|
+
return (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5262
5637
|
}
|
|
5263
5638
|
static getSizePrefixedRootAsPreRefEvent(t, s) {
|
|
5264
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
5639
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new lt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
5265
5640
|
}
|
|
5266
5641
|
id(t) {
|
|
5267
5642
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -5292,10 +5667,10 @@ class dt {
|
|
|
5292
5667
|
return t.requiredField(s, 4), s;
|
|
5293
5668
|
}
|
|
5294
5669
|
static createPreRefEvent(t, s, e, i) {
|
|
5295
|
-
return
|
|
5670
|
+
return lt.startPreRefEvent(t), lt.addId(t, s), lt.addRelay(t, e), lt.addMarker(t, i), lt.endPreRefEvent(t);
|
|
5296
5671
|
}
|
|
5297
5672
|
unpack() {
|
|
5298
|
-
return new
|
|
5673
|
+
return new he(
|
|
5299
5674
|
this.id(),
|
|
5300
5675
|
this.relay(),
|
|
5301
5676
|
this.marker()
|
|
@@ -5305,13 +5680,13 @@ class dt {
|
|
|
5305
5680
|
t.id = this.id(), t.relay = this.relay(), t.marker = this.marker();
|
|
5306
5681
|
}
|
|
5307
5682
|
}
|
|
5308
|
-
class
|
|
5683
|
+
class he {
|
|
5309
5684
|
constructor(t = null, s = null, e = null) {
|
|
5310
5685
|
this.id = t, this.relay = s, this.marker = e;
|
|
5311
5686
|
}
|
|
5312
5687
|
pack(t) {
|
|
5313
5688
|
const s = this.id !== null ? t.createString(this.id) : 0, e = this.relay !== null ? t.createString(this.relay) : 0, i = this.marker !== null ? t.createString(this.marker) : 0;
|
|
5314
|
-
return
|
|
5689
|
+
return lt.createPreRefEvent(
|
|
5315
5690
|
t,
|
|
5316
5691
|
s,
|
|
5317
5692
|
e,
|
|
@@ -5430,7 +5805,7 @@ class f {
|
|
|
5430
5805
|
}
|
|
5431
5806
|
participants(t, s) {
|
|
5432
5807
|
const e = this.bb.__offset(this.bb_pos, 46);
|
|
5433
|
-
return e ? (s || new
|
|
5808
|
+
return e ? (s || new ot()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5434
5809
|
}
|
|
5435
5810
|
participantsLength() {
|
|
5436
5811
|
const t = this.bb.__offset(this.bb_pos, 46);
|
|
@@ -5438,7 +5813,7 @@ class f {
|
|
|
5438
5813
|
}
|
|
5439
5814
|
events(t, s) {
|
|
5440
5815
|
const e = this.bb.__offset(this.bb_pos, 48);
|
|
5441
|
-
return e ? (s || new
|
|
5816
|
+
return e ? (s || new lt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5442
5817
|
}
|
|
5443
5818
|
eventsLength() {
|
|
5444
5819
|
const t = this.bb.__offset(this.bb_pos, 48);
|
|
@@ -5446,7 +5821,7 @@ class f {
|
|
|
5446
5821
|
}
|
|
5447
5822
|
addresses(t, s) {
|
|
5448
5823
|
const e = this.bb.__offset(this.bb_pos, 50);
|
|
5449
|
-
return e ? (s || new
|
|
5824
|
+
return e ? (s || new z()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5450
5825
|
}
|
|
5451
5826
|
addressesLength() {
|
|
5452
5827
|
const t = this.bb.__offset(this.bb_pos, 50);
|
|
@@ -5454,7 +5829,7 @@ class f {
|
|
|
5454
5829
|
}
|
|
5455
5830
|
tags(t, s) {
|
|
5456
5831
|
const e = this.bb.__offset(this.bb_pos, 52);
|
|
5457
|
-
return e ? (s || new
|
|
5832
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5458
5833
|
}
|
|
5459
5834
|
tagsLength() {
|
|
5460
5835
|
const t = this.bb.__offset(this.bb_pos, 52);
|
|
@@ -5604,11 +5979,11 @@ class f {
|
|
|
5604
5979
|
static endPreGenericParsed(t) {
|
|
5605
5980
|
return t.endObject();
|
|
5606
5981
|
}
|
|
5607
|
-
static createPreGenericParsed(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
5608
|
-
return f.startPreGenericParsed(t), f.addKind(t, s), f.addD(t, e), f.addContent(t, i), f.addTitle(t, o), f.addDescription(t, r), f.addImage(t, a), f.addStreaming(t, h), f.addRecording(t, d), f.addService(t, b), f.addEndpoint(t, l), f.addRoom(t, u), f.addStatus(t, y), f.addStarts(t,
|
|
5982
|
+
static createPreGenericParsed(t, s, e, i, o, r, a, h, d, b, l, u, y, I, V, K, U, J, $, tt, It, Mt, Wt, Qt, Yt, es) {
|
|
5983
|
+
return f.startPreGenericParsed(t), f.addKind(t, s), f.addD(t, e), f.addContent(t, i), f.addTitle(t, o), f.addDescription(t, r), f.addImage(t, a), f.addStreaming(t, h), f.addRecording(t, d), f.addService(t, b), f.addEndpoint(t, l), f.addRoom(t, u), f.addStatus(t, y), f.addStarts(t, I), f.addEnds(t, V), f.addLocation(t, K), f.addCurrentParticipants(t, U), f.addTotalParticipants(t, J), f.addPinned(t, $), f.addTopics(t, tt), f.addLinks(t, It), f.addRelays(t, Mt), f.addParticipants(t, Wt), f.addEvents(t, Qt), f.addAddresses(t, Yt), f.addTags(t, es), f.endPreGenericParsed(t);
|
|
5609
5984
|
}
|
|
5610
5985
|
unpack() {
|
|
5611
|
-
return new
|
|
5986
|
+
return new ce(
|
|
5612
5987
|
this.kind(),
|
|
5613
5988
|
this.d(),
|
|
5614
5989
|
this.content(),
|
|
@@ -5640,12 +6015,12 @@ class f {
|
|
|
5640
6015
|
t.kind = this.kind(), t.d = this.d(), t.content = this.content(), t.title = this.title(), t.description = this.description(), t.image = this.image(), t.streaming = this.streaming(), t.recording = this.recording(), t.service = this.service(), t.endpoint = this.endpoint(), t.room = this.room(), t.status = this.status(), t.starts = this.starts(), t.ends = this.ends(), t.location = this.location(), t.currentParticipants = this.currentParticipants(), t.totalParticipants = this.totalParticipants(), t.pinned = this.pinned(), t.topics = this.bb.createScalarList(this.topics.bind(this), this.topicsLength()), t.links = this.bb.createScalarList(this.links.bind(this), this.linksLength()), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.participants = this.bb.createObjList(this.participants.bind(this), this.participantsLength()), t.events = this.bb.createObjList(this.events.bind(this), this.eventsLength()), t.addresses = this.bb.createObjList(this.addresses.bind(this), this.addressesLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength());
|
|
5641
6016
|
}
|
|
5642
6017
|
}
|
|
5643
|
-
class
|
|
5644
|
-
constructor(t = 0, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = BigInt("0"),
|
|
5645
|
-
this.kind = t, this.d = s, this.content = e, this.title = i, this.description = o, this.image = r, this.streaming = a, this.recording = h, this.service = d, this.endpoint = b, this.room = l, this.status = u, this.starts = y, this.ends =
|
|
6018
|
+
class ce {
|
|
6019
|
+
constructor(t = 0, s = null, e = null, i = null, o = null, r = null, a = null, h = null, d = null, b = null, l = null, u = null, y = BigInt("0"), I = BigInt("0"), V = null, K = BigInt("0"), U = BigInt("0"), J = null, $ = [], tt = [], It = [], Mt = [], Wt = [], Qt = [], Yt = []) {
|
|
6020
|
+
this.kind = t, this.d = s, this.content = e, this.title = i, this.description = o, this.image = r, this.streaming = a, this.recording = h, this.service = d, this.endpoint = b, this.room = l, this.status = u, this.starts = y, this.ends = I, this.location = V, this.currentParticipants = K, this.totalParticipants = U, this.pinned = J, this.topics = $, this.links = tt, this.relays = It, this.participants = Mt, this.events = Wt, this.addresses = Qt, this.tags = Yt;
|
|
5646
6021
|
}
|
|
5647
6022
|
pack(t) {
|
|
5648
|
-
const s = this.d !== null ? t.createString(this.d) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = this.title !== null ? t.createString(this.title) : 0, o = this.description !== null ? t.createString(this.description) : 0, r = this.image !== null ? t.createString(this.image) : 0, a = this.streaming !== null ? t.createString(this.streaming) : 0, h = this.recording !== null ? t.createString(this.recording) : 0, d = this.service !== null ? t.createString(this.service) : 0, b = this.endpoint !== null ? t.createString(this.endpoint) : 0, l = this.room !== null ? t.createString(this.room) : 0, u = this.status !== null ? t.createString(this.status) : 0, y = this.location !== null ? t.createString(this.location) : 0,
|
|
6023
|
+
const s = this.d !== null ? t.createString(this.d) : 0, e = this.content !== null ? t.createString(this.content) : 0, i = this.title !== null ? t.createString(this.title) : 0, o = this.description !== null ? t.createString(this.description) : 0, r = this.image !== null ? t.createString(this.image) : 0, a = this.streaming !== null ? t.createString(this.streaming) : 0, h = this.recording !== null ? t.createString(this.recording) : 0, d = this.service !== null ? t.createString(this.service) : 0, b = this.endpoint !== null ? t.createString(this.endpoint) : 0, l = this.room !== null ? t.createString(this.room) : 0, u = this.status !== null ? t.createString(this.status) : 0, y = this.location !== null ? t.createString(this.location) : 0, I = this.pinned !== null ? t.createString(this.pinned) : 0, V = f.createTopicsVector(t, t.createObjectOffsetList(this.topics)), K = f.createLinksVector(t, t.createObjectOffsetList(this.links)), U = f.createRelaysVector(t, t.createObjectOffsetList(this.relays)), J = f.createParticipantsVector(t, t.createObjectOffsetList(this.participants)), $ = f.createEventsVector(t, t.createObjectOffsetList(this.events)), tt = f.createAddressesVector(t, t.createObjectOffsetList(this.addresses)), It = f.createTagsVector(t, t.createObjectOffsetList(this.tags));
|
|
5649
6024
|
return f.createPreGenericParsed(
|
|
5650
6025
|
t,
|
|
5651
6026
|
this.kind,
|
|
@@ -5665,36 +6040,36 @@ class te {
|
|
|
5665
6040
|
y,
|
|
5666
6041
|
this.currentParticipants,
|
|
5667
6042
|
this.totalParticipants,
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
Q,
|
|
5673
|
-
Y,
|
|
6043
|
+
I,
|
|
6044
|
+
V,
|
|
6045
|
+
K,
|
|
6046
|
+
U,
|
|
5674
6047
|
J,
|
|
5675
|
-
|
|
6048
|
+
$,
|
|
6049
|
+
tt,
|
|
6050
|
+
It
|
|
5676
6051
|
);
|
|
5677
6052
|
}
|
|
5678
6053
|
}
|
|
5679
|
-
var
|
|
5680
|
-
function
|
|
5681
|
-
switch (
|
|
6054
|
+
var Zt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.Kind0Parsed = 1] = "Kind0Parsed", n[n.Kind1Parsed = 2] = "Kind1Parsed", n[n.Kind3Parsed = 3] = "Kind3Parsed", n[n.Kind4Parsed = 4] = "Kind4Parsed", n[n.Kind6Parsed = 5] = "Kind6Parsed", n[n.Kind7Parsed = 6] = "Kind7Parsed", n[n.Kind17Parsed = 7] = "Kind17Parsed", n[n.Kind20Parsed = 8] = "Kind20Parsed", n[n.Kind22Parsed = 9] = "Kind22Parsed", n[n.Kind1111Parsed = 10] = "Kind1111Parsed", n[n.Kind1311Parsed = 11] = "Kind1311Parsed", n[n.Kind1068Parsed = 12] = "Kind1068Parsed", n[n.Kind1018Parsed = 13] = "Kind1018Parsed", n[n.Kind10002Parsed = 14] = "Kind10002Parsed", n[n.Kind10019Parsed = 15] = "Kind10019Parsed", n[n.Kind17375Parsed = 16] = "Kind17375Parsed", n[n.Kind7374Parsed = 17] = "Kind7374Parsed", n[n.Kind7375Parsed = 18] = "Kind7375Parsed", n[n.Kind7376Parsed = 19] = "Kind7376Parsed", n[n.Kind9321Parsed = 20] = "Kind9321Parsed", n[n.Kind9735Parsed = 21] = "Kind9735Parsed", n[n.Kind30023Parsed = 22] = "Kind30023Parsed", n[n.ListParsed = 23] = "ListParsed", n[n.PreGenericParsed = 24] = "PreGenericParsed", n))(Zt || {});
|
|
6055
|
+
function ts(n, t) {
|
|
6056
|
+
switch (Zt[n]) {
|
|
5682
6057
|
case "NONE":
|
|
5683
6058
|
return null;
|
|
5684
6059
|
case "Kind0Parsed":
|
|
5685
6060
|
return t(new p());
|
|
5686
6061
|
case "Kind1Parsed":
|
|
5687
|
-
return t(new
|
|
6062
|
+
return t(new T());
|
|
5688
6063
|
case "Kind3Parsed":
|
|
5689
|
-
return t(new
|
|
6064
|
+
return t(new Vt());
|
|
5690
6065
|
case "Kind4Parsed":
|
|
5691
|
-
return t(new
|
|
6066
|
+
return t(new W());
|
|
5692
6067
|
case "Kind6Parsed":
|
|
5693
|
-
return t(new
|
|
6068
|
+
return t(new At());
|
|
5694
6069
|
case "Kind7Parsed":
|
|
5695
|
-
return t(new
|
|
6070
|
+
return t(new Q());
|
|
5696
6071
|
case "Kind17Parsed":
|
|
5697
|
-
return t(new
|
|
6072
|
+
return t(new M());
|
|
5698
6073
|
case "Kind20Parsed":
|
|
5699
6074
|
return t(new P());
|
|
5700
6075
|
case "Kind22Parsed":
|
|
@@ -5702,21 +6077,25 @@ function Wt(n, t) {
|
|
|
5702
6077
|
case "Kind1111Parsed":
|
|
5703
6078
|
return t(new _());
|
|
5704
6079
|
case "Kind1311Parsed":
|
|
5705
|
-
return t(new
|
|
6080
|
+
return t(new q());
|
|
6081
|
+
case "Kind1068Parsed":
|
|
6082
|
+
return t(new S());
|
|
6083
|
+
case "Kind1018Parsed":
|
|
6084
|
+
return t(new G());
|
|
5706
6085
|
case "Kind10002Parsed":
|
|
5707
|
-
return t(new
|
|
6086
|
+
return t(new Pt());
|
|
5708
6087
|
case "Kind10019Parsed":
|
|
5709
|
-
return t(new
|
|
6088
|
+
return t(new Y());
|
|
5710
6089
|
case "Kind17375Parsed":
|
|
5711
|
-
return t(new
|
|
6090
|
+
return t(new D());
|
|
5712
6091
|
case "Kind7374Parsed":
|
|
5713
|
-
return t(new
|
|
6092
|
+
return t(new bt());
|
|
5714
6093
|
case "Kind7375Parsed":
|
|
5715
|
-
return t(new
|
|
6094
|
+
return t(new B());
|
|
5716
6095
|
case "Kind7376Parsed":
|
|
5717
6096
|
return t(new v());
|
|
5718
6097
|
case "Kind9321Parsed":
|
|
5719
|
-
return t(new
|
|
6098
|
+
return t(new m());
|
|
5720
6099
|
case "Kind9735Parsed":
|
|
5721
6100
|
return t(new F());
|
|
5722
6101
|
case "Kind30023Parsed":
|
|
@@ -5772,7 +6151,7 @@ class g {
|
|
|
5772
6151
|
}
|
|
5773
6152
|
tags(t, s) {
|
|
5774
6153
|
const e = this.bb.__offset(this.bb_pos, 10);
|
|
5775
|
-
return e ? (s || new
|
|
6154
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
5776
6155
|
}
|
|
5777
6156
|
tagsLength() {
|
|
5778
6157
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -5908,11 +6287,11 @@ class g {
|
|
|
5908
6287
|
static endRequest(t) {
|
|
5909
6288
|
return t.endObject();
|
|
5910
6289
|
}
|
|
5911
|
-
static createRequest(t, s, e, i, o, r, a, h, d, b, l, u, y,
|
|
5912
|
-
return g.startRequest(t), g.addIds(t, s), g.addAuthors(t, e), g.addKinds(t, i), g.addTags(t, o), g.addLimit(t, r), g.addSince(t, a), g.addUntil(t, h), g.addSearch(t, d), g.addRelays(t, b), g.addCloseOnEose(t, l), g.addCacheFirst(t, u), g.addNoCache(t, y), g.addMaxRelays(t,
|
|
6290
|
+
static createRequest(t, s, e, i, o, r, a, h, d, b, l, u, y, I) {
|
|
6291
|
+
return g.startRequest(t), g.addIds(t, s), g.addAuthors(t, e), g.addKinds(t, i), g.addTags(t, o), g.addLimit(t, r), g.addSince(t, a), g.addUntil(t, h), g.addSearch(t, d), g.addRelays(t, b), g.addCloseOnEose(t, l), g.addCacheFirst(t, u), g.addNoCache(t, y), g.addMaxRelays(t, I), g.endRequest(t);
|
|
5913
6292
|
}
|
|
5914
6293
|
unpack() {
|
|
5915
|
-
return new
|
|
6294
|
+
return new de(
|
|
5916
6295
|
this.bb.createScalarList(this.ids.bind(this), this.idsLength()),
|
|
5917
6296
|
this.bb.createScalarList(this.authors.bind(this), this.authorsLength()),
|
|
5918
6297
|
this.bb.createScalarList(this.kinds.bind(this), this.kindsLength()),
|
|
@@ -5932,7 +6311,7 @@ class g {
|
|
|
5932
6311
|
t.ids = this.bb.createScalarList(this.ids.bind(this), this.idsLength()), t.authors = this.bb.createScalarList(this.authors.bind(this), this.authorsLength()), t.kinds = this.bb.createScalarList(this.kinds.bind(this), this.kindsLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength()), t.limit = this.limit(), t.since = this.since(), t.until = this.until(), t.search = this.search(), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.closeOnEose = this.closeOnEose(), t.cacheFirst = this.cacheFirst(), t.noCache = this.noCache(), t.maxRelays = this.maxRelays();
|
|
5933
6312
|
}
|
|
5934
6313
|
}
|
|
5935
|
-
class
|
|
6314
|
+
class de {
|
|
5936
6315
|
constructor(t = [], s = [], e = [], i = [], o = 0, r = 0, a = 0, h = null, d = [], b = false, l = false, u = false, y = 0) {
|
|
5937
6316
|
this.ids = t, this.authors = s, this.kinds = e, this.tags = i, this.limit = o, this.since = r, this.until = a, this.search = h, this.relays = d, this.closeOnEose = b, this.cacheFirst = l, this.noCache = u, this.maxRelays = y;
|
|
5938
6317
|
}
|
|
@@ -5987,7 +6366,7 @@ class k {
|
|
|
5987
6366
|
}
|
|
5988
6367
|
parsedType() {
|
|
5989
6368
|
const t = this.bb.__offset(this.bb_pos, 12);
|
|
5990
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
6369
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Zt.NONE;
|
|
5991
6370
|
}
|
|
5992
6371
|
parsed(t) {
|
|
5993
6372
|
const s = this.bb.__offset(this.bb_pos, 14);
|
|
@@ -6011,7 +6390,7 @@ class k {
|
|
|
6011
6390
|
}
|
|
6012
6391
|
tags(t, s) {
|
|
6013
6392
|
const e = this.bb.__offset(this.bb_pos, 20);
|
|
6014
|
-
return e ? (s || new
|
|
6393
|
+
return e ? (s || new X()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6015
6394
|
}
|
|
6016
6395
|
tagsLength() {
|
|
6017
6396
|
const t = this.bb.__offset(this.bb_pos, 20);
|
|
@@ -6033,7 +6412,7 @@ class k {
|
|
|
6033
6412
|
t.addFieldInt32(3, s, 0);
|
|
6034
6413
|
}
|
|
6035
6414
|
static addParsedType(t, s) {
|
|
6036
|
-
t.addFieldInt8(4, s,
|
|
6415
|
+
t.addFieldInt8(4, s, Zt.NONE);
|
|
6037
6416
|
}
|
|
6038
6417
|
static addParsed(t, s) {
|
|
6039
6418
|
t.addFieldOffset(5, s, 0);
|
|
@@ -6082,14 +6461,14 @@ class k {
|
|
|
6082
6461
|
return k.startParsedEvent(t), k.addId(t, s), k.addPubkey(t, e), k.addKind(t, i), k.addCreatedAt(t, o), k.addParsedType(t, r), k.addParsed(t, a), k.addRequests(t, h), k.addRelays(t, d), k.addTags(t, b), k.endParsedEvent(t);
|
|
6083
6462
|
}
|
|
6084
6463
|
unpack() {
|
|
6085
|
-
return new
|
|
6464
|
+
return new be(
|
|
6086
6465
|
this.id(),
|
|
6087
6466
|
this.pubkey(),
|
|
6088
6467
|
this.kind(),
|
|
6089
6468
|
this.createdAt(),
|
|
6090
6469
|
this.parsedType(),
|
|
6091
6470
|
(() => {
|
|
6092
|
-
const t =
|
|
6471
|
+
const t = ts(this.parsedType(), this.parsed.bind(this));
|
|
6093
6472
|
return t === null ? null : t.unpack();
|
|
6094
6473
|
})(),
|
|
6095
6474
|
this.bb.createObjList(this.requests.bind(this), this.requestsLength()),
|
|
@@ -6099,13 +6478,13 @@ class k {
|
|
|
6099
6478
|
}
|
|
6100
6479
|
unpackTo(t) {
|
|
6101
6480
|
t.id = this.id(), t.pubkey = this.pubkey(), t.kind = this.kind(), t.createdAt = this.createdAt(), t.parsedType = this.parsedType(), t.parsed = (() => {
|
|
6102
|
-
const s =
|
|
6481
|
+
const s = ts(this.parsedType(), this.parsed.bind(this));
|
|
6103
6482
|
return s === null ? null : s.unpack();
|
|
6104
6483
|
})(), t.requests = this.bb.createObjList(this.requests.bind(this), this.requestsLength()), t.relays = this.bb.createScalarList(this.relays.bind(this), this.relaysLength()), t.tags = this.bb.createObjList(this.tags.bind(this), this.tagsLength());
|
|
6105
6484
|
}
|
|
6106
6485
|
}
|
|
6107
|
-
class
|
|
6108
|
-
constructor(t = null, s = null, e = 0, i = 0, o =
|
|
6486
|
+
class be {
|
|
6487
|
+
constructor(t = null, s = null, e = 0, i = 0, o = Zt.NONE, r = null, a = [], h = [], d = []) {
|
|
6109
6488
|
this.id = t, this.pubkey = s, this.kind = e, this.createdAt = i, this.parsedType = o, this.parsed = r, this.requests = a, this.relays = h, this.tags = d;
|
|
6110
6489
|
}
|
|
6111
6490
|
pack(t) {
|
|
@@ -6124,7 +6503,7 @@ class ee {
|
|
|
6124
6503
|
);
|
|
6125
6504
|
}
|
|
6126
6505
|
}
|
|
6127
|
-
class
|
|
6506
|
+
class _t {
|
|
6128
6507
|
constructor() {
|
|
6129
6508
|
this.bb = null, this.bb_pos = 0;
|
|
6130
6509
|
}
|
|
@@ -6132,10 +6511,10 @@ class bt {
|
|
|
6132
6511
|
return this.bb_pos = t, this.bb = s, this;
|
|
6133
6512
|
}
|
|
6134
6513
|
static getRootAsConnectionStatus(t, s) {
|
|
6135
|
-
return (s || new
|
|
6514
|
+
return (s || new _t()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6136
6515
|
}
|
|
6137
6516
|
static getSizePrefixedRootAsConnectionStatus(t, s) {
|
|
6138
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6517
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new _t()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6139
6518
|
}
|
|
6140
6519
|
relayUrl(t) {
|
|
6141
6520
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6166,10 +6545,10 @@ class bt {
|
|
|
6166
6545
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
6167
6546
|
}
|
|
6168
6547
|
static createConnectionStatus(t, s, e, i) {
|
|
6169
|
-
return
|
|
6548
|
+
return _t.startConnectionStatus(t), _t.addRelayUrl(t, s), _t.addStatus(t, e), _t.addMessage(t, i), _t.endConnectionStatus(t);
|
|
6170
6549
|
}
|
|
6171
6550
|
unpack() {
|
|
6172
|
-
return new
|
|
6551
|
+
return new fe(
|
|
6173
6552
|
this.relayUrl(),
|
|
6174
6553
|
this.status(),
|
|
6175
6554
|
this.message()
|
|
@@ -6179,13 +6558,13 @@ class bt {
|
|
|
6179
6558
|
t.relayUrl = this.relayUrl(), t.status = this.status(), t.message = this.message();
|
|
6180
6559
|
}
|
|
6181
6560
|
}
|
|
6182
|
-
class
|
|
6561
|
+
class fe {
|
|
6183
6562
|
constructor(t = null, s = null, e = null) {
|
|
6184
6563
|
this.relayUrl = t, this.status = s, this.message = e;
|
|
6185
6564
|
}
|
|
6186
6565
|
pack(t) {
|
|
6187
6566
|
const s = this.relayUrl !== null ? t.createString(this.relayUrl) : 0, e = this.status !== null ? t.createString(this.status) : 0, i = this.message !== null ? t.createString(this.message) : 0;
|
|
6188
|
-
return
|
|
6567
|
+
return _t.createConnectionStatus(
|
|
6189
6568
|
t,
|
|
6190
6569
|
s,
|
|
6191
6570
|
e,
|
|
@@ -6193,7 +6572,7 @@ class ie {
|
|
|
6193
6572
|
);
|
|
6194
6573
|
}
|
|
6195
6574
|
}
|
|
6196
|
-
class
|
|
6575
|
+
class pt {
|
|
6197
6576
|
constructor() {
|
|
6198
6577
|
this.bb = null, this.bb_pos = 0;
|
|
6199
6578
|
}
|
|
@@ -6201,10 +6580,10 @@ class ft {
|
|
|
6201
6580
|
return this.bb_pos = t, this.bb = s, this;
|
|
6202
6581
|
}
|
|
6203
6582
|
static getRootAsCountResponse(t, s) {
|
|
6204
|
-
return (s || new
|
|
6583
|
+
return (s || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6205
6584
|
}
|
|
6206
6585
|
static getSizePrefixedRootAsCountResponse(t, s) {
|
|
6207
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6586
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new pt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6208
6587
|
}
|
|
6209
6588
|
count() {
|
|
6210
6589
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6234,10 +6613,10 @@ class ft {
|
|
|
6234
6613
|
return t.endObject();
|
|
6235
6614
|
}
|
|
6236
6615
|
static createCountResponse(t, s, e, i) {
|
|
6237
|
-
return
|
|
6616
|
+
return pt.startCountResponse(t), pt.addCount(t, s), pt.addKind(t, e), pt.addYou(t, i), pt.endCountResponse(t);
|
|
6238
6617
|
}
|
|
6239
6618
|
unpack() {
|
|
6240
|
-
return new
|
|
6619
|
+
return new le(
|
|
6241
6620
|
this.count(),
|
|
6242
6621
|
this.kind(),
|
|
6243
6622
|
this.you()
|
|
@@ -6247,12 +6626,12 @@ class ft {
|
|
|
6247
6626
|
t.count = this.count(), t.kind = this.kind(), t.you = this.you();
|
|
6248
6627
|
}
|
|
6249
6628
|
}
|
|
6250
|
-
class
|
|
6629
|
+
class le {
|
|
6251
6630
|
constructor(t = 0, s = 0, e = false) {
|
|
6252
6631
|
this.count = t, this.kind = s, this.you = e;
|
|
6253
6632
|
}
|
|
6254
6633
|
pack(t) {
|
|
6255
|
-
return
|
|
6634
|
+
return pt.createCountResponse(
|
|
6256
6635
|
t,
|
|
6257
6636
|
this.count,
|
|
6258
6637
|
this.kind,
|
|
@@ -6260,7 +6639,7 @@ class ne {
|
|
|
6260
6639
|
);
|
|
6261
6640
|
}
|
|
6262
6641
|
}
|
|
6263
|
-
class
|
|
6642
|
+
class Kt {
|
|
6264
6643
|
constructor() {
|
|
6265
6644
|
this.bb = null, this.bb_pos = 0;
|
|
6266
6645
|
}
|
|
@@ -6268,10 +6647,10 @@ class wt {
|
|
|
6268
6647
|
return this.bb_pos = t, this.bb = s, this;
|
|
6269
6648
|
}
|
|
6270
6649
|
static getRootAsEoce(t, s) {
|
|
6271
|
-
return (s || new
|
|
6650
|
+
return (s || new Kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6272
6651
|
}
|
|
6273
6652
|
static getSizePrefixedRootAsEoce(t, s) {
|
|
6274
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6653
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6275
6654
|
}
|
|
6276
6655
|
subscriptionId(t) {
|
|
6277
6656
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6288,10 +6667,10 @@ class wt {
|
|
|
6288
6667
|
return t.requiredField(s, 4), s;
|
|
6289
6668
|
}
|
|
6290
6669
|
static createEoce(t, s) {
|
|
6291
|
-
return
|
|
6670
|
+
return Kt.startEoce(t), Kt.addSubscriptionId(t, s), Kt.endEoce(t);
|
|
6292
6671
|
}
|
|
6293
6672
|
unpack() {
|
|
6294
|
-
return new
|
|
6673
|
+
return new _e(
|
|
6295
6674
|
this.subscriptionId()
|
|
6296
6675
|
);
|
|
6297
6676
|
}
|
|
@@ -6299,19 +6678,19 @@ class wt {
|
|
|
6299
6678
|
t.subscriptionId = this.subscriptionId();
|
|
6300
6679
|
}
|
|
6301
6680
|
}
|
|
6302
|
-
class
|
|
6681
|
+
class _e {
|
|
6303
6682
|
constructor(t = null) {
|
|
6304
6683
|
this.subscriptionId = t;
|
|
6305
6684
|
}
|
|
6306
6685
|
pack(t) {
|
|
6307
6686
|
const s = this.subscriptionId !== null ? t.createString(this.subscriptionId) : 0;
|
|
6308
|
-
return
|
|
6687
|
+
return Kt.createEoce(
|
|
6309
6688
|
t,
|
|
6310
6689
|
s
|
|
6311
6690
|
);
|
|
6312
6691
|
}
|
|
6313
6692
|
}
|
|
6314
|
-
class
|
|
6693
|
+
class Nt {
|
|
6315
6694
|
constructor() {
|
|
6316
6695
|
this.bb = null, this.bb_pos = 0;
|
|
6317
6696
|
}
|
|
@@ -6319,10 +6698,10 @@ class jt {
|
|
|
6319
6698
|
return this.bb_pos = t, this.bb = s, this;
|
|
6320
6699
|
}
|
|
6321
6700
|
static getRootAsPubkey(t, s) {
|
|
6322
|
-
return (s || new
|
|
6701
|
+
return (s || new Nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6323
6702
|
}
|
|
6324
6703
|
static getSizePrefixedRootAsPubkey(t, s) {
|
|
6325
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6704
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Nt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6326
6705
|
}
|
|
6327
6706
|
pubkey(t) {
|
|
6328
6707
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6339,10 +6718,10 @@ class jt {
|
|
|
6339
6718
|
return t.requiredField(s, 4), s;
|
|
6340
6719
|
}
|
|
6341
6720
|
static createPubkey(t, s) {
|
|
6342
|
-
return
|
|
6721
|
+
return Nt.startPubkey(t), Nt.addPubkey(t, s), Nt.endPubkey(t);
|
|
6343
6722
|
}
|
|
6344
6723
|
unpack() {
|
|
6345
|
-
return new
|
|
6724
|
+
return new pe(
|
|
6346
6725
|
this.pubkey()
|
|
6347
6726
|
);
|
|
6348
6727
|
}
|
|
@@ -6350,19 +6729,19 @@ class jt {
|
|
|
6350
6729
|
t.pubkey = this.pubkey();
|
|
6351
6730
|
}
|
|
6352
6731
|
}
|
|
6353
|
-
class
|
|
6732
|
+
class pe {
|
|
6354
6733
|
constructor(t = null) {
|
|
6355
6734
|
this.pubkey = t;
|
|
6356
6735
|
}
|
|
6357
6736
|
pack(t) {
|
|
6358
6737
|
const s = this.pubkey !== null ? t.createString(this.pubkey) : 0;
|
|
6359
|
-
return
|
|
6738
|
+
return Nt.createPubkey(
|
|
6360
6739
|
t,
|
|
6361
6740
|
s
|
|
6362
6741
|
);
|
|
6363
6742
|
}
|
|
6364
6743
|
}
|
|
6365
|
-
class
|
|
6744
|
+
class qt {
|
|
6366
6745
|
constructor() {
|
|
6367
6746
|
this.bb = null, this.bb_pos = 0;
|
|
6368
6747
|
}
|
|
@@ -6370,10 +6749,10 @@ class At {
|
|
|
6370
6749
|
return this.bb_pos = t, this.bb = s, this;
|
|
6371
6750
|
}
|
|
6372
6751
|
static getRootAsRaw(t, s) {
|
|
6373
|
-
return (s || new
|
|
6752
|
+
return (s || new qt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6374
6753
|
}
|
|
6375
6754
|
static getSizePrefixedRootAsRaw(t, s) {
|
|
6376
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6755
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new qt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6377
6756
|
}
|
|
6378
6757
|
raw(t) {
|
|
6379
6758
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6390,10 +6769,10 @@ class At {
|
|
|
6390
6769
|
return t.requiredField(s, 4), s;
|
|
6391
6770
|
}
|
|
6392
6771
|
static createRaw(t, s) {
|
|
6393
|
-
return
|
|
6772
|
+
return qt.startRaw(t), qt.addRaw(t, s), qt.endRaw(t);
|
|
6394
6773
|
}
|
|
6395
6774
|
unpack() {
|
|
6396
|
-
return new
|
|
6775
|
+
return new ue(
|
|
6397
6776
|
this.raw()
|
|
6398
6777
|
);
|
|
6399
6778
|
}
|
|
@@ -6401,19 +6780,19 @@ class At {
|
|
|
6401
6780
|
t.raw = this.raw();
|
|
6402
6781
|
}
|
|
6403
6782
|
}
|
|
6404
|
-
class
|
|
6783
|
+
class ue {
|
|
6405
6784
|
constructor(t = null) {
|
|
6406
6785
|
this.raw = t;
|
|
6407
6786
|
}
|
|
6408
6787
|
pack(t) {
|
|
6409
6788
|
const s = this.raw !== null ? t.createString(this.raw) : 0;
|
|
6410
|
-
return
|
|
6789
|
+
return qt.createRaw(
|
|
6411
6790
|
t,
|
|
6412
6791
|
s
|
|
6413
6792
|
);
|
|
6414
6793
|
}
|
|
6415
6794
|
}
|
|
6416
|
-
class
|
|
6795
|
+
class Ut {
|
|
6417
6796
|
constructor() {
|
|
6418
6797
|
this.bb = null, this.bb_pos = 0;
|
|
6419
6798
|
}
|
|
@@ -6421,14 +6800,14 @@ class Ct {
|
|
|
6421
6800
|
return this.bb_pos = t, this.bb = s, this;
|
|
6422
6801
|
}
|
|
6423
6802
|
static getRootAsSignedEvent(t, s) {
|
|
6424
|
-
return (s || new
|
|
6803
|
+
return (s || new Ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6425
6804
|
}
|
|
6426
6805
|
static getSizePrefixedRootAsSignedEvent(t, s) {
|
|
6427
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6806
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Ut()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6428
6807
|
}
|
|
6429
6808
|
event(t) {
|
|
6430
6809
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
6431
|
-
return s ? (t || new
|
|
6810
|
+
return s ? (t || new j()).__init(this.bb.__indirect(this.bb_pos + s), this.bb) : null;
|
|
6432
6811
|
}
|
|
6433
6812
|
static startSignedEvent(t) {
|
|
6434
6813
|
t.startObject(1);
|
|
@@ -6441,10 +6820,10 @@ class Ct {
|
|
|
6441
6820
|
return t.requiredField(s, 4), s;
|
|
6442
6821
|
}
|
|
6443
6822
|
static createSignedEvent(t, s) {
|
|
6444
|
-
return
|
|
6823
|
+
return Ut.startSignedEvent(t), Ut.addEvent(t, s), Ut.endSignedEvent(t);
|
|
6445
6824
|
}
|
|
6446
6825
|
unpack() {
|
|
6447
|
-
return new
|
|
6826
|
+
return new ge(
|
|
6448
6827
|
this.event() !== null ? this.event().unpack() : null
|
|
6449
6828
|
);
|
|
6450
6829
|
}
|
|
@@ -6452,19 +6831,19 @@ class Ct {
|
|
|
6452
6831
|
t.event = this.event() !== null ? this.event().unpack() : null;
|
|
6453
6832
|
}
|
|
6454
6833
|
}
|
|
6455
|
-
class
|
|
6834
|
+
class ge {
|
|
6456
6835
|
constructor(t = null) {
|
|
6457
6836
|
this.event = t;
|
|
6458
6837
|
}
|
|
6459
6838
|
pack(t) {
|
|
6460
6839
|
const s = this.event !== null ? this.event.pack(t) : 0;
|
|
6461
|
-
return
|
|
6840
|
+
return Ut.createSignedEvent(
|
|
6462
6841
|
t,
|
|
6463
6842
|
s
|
|
6464
6843
|
);
|
|
6465
6844
|
}
|
|
6466
6845
|
}
|
|
6467
|
-
class
|
|
6846
|
+
class kt {
|
|
6468
6847
|
constructor() {
|
|
6469
6848
|
this.bb = null, this.bb_pos = 0;
|
|
6470
6849
|
}
|
|
@@ -6472,10 +6851,10 @@ class gt {
|
|
|
6472
6851
|
return this.bb_pos = t, this.bb = s, this;
|
|
6473
6852
|
}
|
|
6474
6853
|
static getRootAsMintProofs(t, s) {
|
|
6475
|
-
return (s || new
|
|
6854
|
+
return (s || new kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6476
6855
|
}
|
|
6477
6856
|
static getSizePrefixedRootAsMintProofs(t, s) {
|
|
6478
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6857
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new kt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6479
6858
|
}
|
|
6480
6859
|
mint(t) {
|
|
6481
6860
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6483,7 +6862,7 @@ class gt {
|
|
|
6483
6862
|
}
|
|
6484
6863
|
proofs(t, s) {
|
|
6485
6864
|
const e = this.bb.__offset(this.bb_pos, 6);
|
|
6486
|
-
return e ? (s || new
|
|
6865
|
+
return e ? (s || new A()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6487
6866
|
}
|
|
6488
6867
|
proofsLength() {
|
|
6489
6868
|
const t = this.bb.__offset(this.bb_pos, 6);
|
|
@@ -6512,10 +6891,10 @@ class gt {
|
|
|
6512
6891
|
return t.requiredField(s, 4), t.requiredField(s, 6), s;
|
|
6513
6892
|
}
|
|
6514
6893
|
static createMintProofs(t, s, e) {
|
|
6515
|
-
return
|
|
6894
|
+
return kt.startMintProofs(t), kt.addMint(t, s), kt.addProofs(t, e), kt.endMintProofs(t);
|
|
6516
6895
|
}
|
|
6517
6896
|
unpack() {
|
|
6518
|
-
return new
|
|
6897
|
+
return new Oe(
|
|
6519
6898
|
this.mint(),
|
|
6520
6899
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength())
|
|
6521
6900
|
);
|
|
@@ -6524,20 +6903,20 @@ class gt {
|
|
|
6524
6903
|
t.mint = this.mint(), t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength());
|
|
6525
6904
|
}
|
|
6526
6905
|
}
|
|
6527
|
-
class
|
|
6906
|
+
class Oe {
|
|
6528
6907
|
constructor(t = null, s = []) {
|
|
6529
6908
|
this.mint = t, this.proofs = s;
|
|
6530
6909
|
}
|
|
6531
6910
|
pack(t) {
|
|
6532
|
-
const s = this.mint !== null ? t.createString(this.mint) : 0, e =
|
|
6533
|
-
return
|
|
6911
|
+
const s = this.mint !== null ? t.createString(this.mint) : 0, e = kt.createProofsVector(t, t.createObjectOffsetList(this.proofs));
|
|
6912
|
+
return kt.createMintProofs(
|
|
6534
6913
|
t,
|
|
6535
6914
|
s,
|
|
6536
6915
|
e
|
|
6537
6916
|
);
|
|
6538
6917
|
}
|
|
6539
6918
|
}
|
|
6540
|
-
class
|
|
6919
|
+
class Rt {
|
|
6541
6920
|
constructor() {
|
|
6542
6921
|
this.bb = null, this.bb_pos = 0;
|
|
6543
6922
|
}
|
|
@@ -6545,14 +6924,14 @@ class vt {
|
|
|
6545
6924
|
return this.bb_pos = t, this.bb = s, this;
|
|
6546
6925
|
}
|
|
6547
6926
|
static getRootAsValidProofs(t, s) {
|
|
6548
|
-
return (s || new
|
|
6927
|
+
return (s || new Rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6549
6928
|
}
|
|
6550
6929
|
static getSizePrefixedRootAsValidProofs(t, s) {
|
|
6551
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
6930
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new Rt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6552
6931
|
}
|
|
6553
6932
|
proofs(t, s) {
|
|
6554
6933
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
6555
|
-
return e ? (s || new
|
|
6934
|
+
return e ? (s || new kt()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + e) + t * 4), this.bb) : null;
|
|
6556
6935
|
}
|
|
6557
6936
|
proofsLength() {
|
|
6558
6937
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6578,10 +6957,10 @@ class vt {
|
|
|
6578
6957
|
return t.requiredField(s, 4), s;
|
|
6579
6958
|
}
|
|
6580
6959
|
static createValidProofs(t, s) {
|
|
6581
|
-
return
|
|
6960
|
+
return Rt.startValidProofs(t), Rt.addProofs(t, s), Rt.endValidProofs(t);
|
|
6582
6961
|
}
|
|
6583
6962
|
unpack() {
|
|
6584
|
-
return new
|
|
6963
|
+
return new ye(
|
|
6585
6964
|
this.bb.createObjList(this.proofs.bind(this), this.proofsLength())
|
|
6586
6965
|
);
|
|
6587
6966
|
}
|
|
@@ -6589,49 +6968,49 @@ class vt {
|
|
|
6589
6968
|
t.proofs = this.bb.createObjList(this.proofs.bind(this), this.proofsLength());
|
|
6590
6969
|
}
|
|
6591
6970
|
}
|
|
6592
|
-
class
|
|
6971
|
+
class ye {
|
|
6593
6972
|
constructor(t = []) {
|
|
6594
6973
|
this.proofs = t;
|
|
6595
6974
|
}
|
|
6596
6975
|
pack(t) {
|
|
6597
|
-
const s =
|
|
6598
|
-
return
|
|
6976
|
+
const s = Rt.createProofsVector(t, t.createObjectOffsetList(this.proofs));
|
|
6977
|
+
return Rt.createValidProofs(
|
|
6599
6978
|
t,
|
|
6600
6979
|
s
|
|
6601
6980
|
);
|
|
6602
6981
|
}
|
|
6603
6982
|
}
|
|
6604
|
-
var
|
|
6605
|
-
function
|
|
6606
|
-
switch (
|
|
6983
|
+
var Xt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.ParsedEvent = 1] = "ParsedEvent", n[n.NostrEvent = 2] = "NostrEvent", n[n.ConnectionStatus = 3] = "ConnectionStatus", n[n.CountResponse = 4] = "CountResponse", n[n.Eoce = 5] = "Eoce", n[n.BufferFull = 6] = "BufferFull", n[n.ValidProofs = 7] = "ValidProofs", n[n.SignedEvent = 8] = "SignedEvent", n[n.Pubkey = 9] = "Pubkey", n[n.Raw = 10] = "Raw", n))(Xt || {});
|
|
6984
|
+
function ss(n, t) {
|
|
6985
|
+
switch (Xt[n]) {
|
|
6607
6986
|
case "NONE":
|
|
6608
6987
|
return null;
|
|
6609
6988
|
case "ParsedEvent":
|
|
6610
6989
|
return t(new k());
|
|
6611
6990
|
case "NostrEvent":
|
|
6612
|
-
return t(new
|
|
6991
|
+
return t(new j());
|
|
6613
6992
|
case "ConnectionStatus":
|
|
6614
|
-
return t(new
|
|
6993
|
+
return t(new _t());
|
|
6615
6994
|
case "CountResponse":
|
|
6616
|
-
return t(new
|
|
6995
|
+
return t(new pt());
|
|
6617
6996
|
case "Eoce":
|
|
6618
|
-
return t(new
|
|
6997
|
+
return t(new Kt());
|
|
6619
6998
|
case "BufferFull":
|
|
6620
|
-
return t(new
|
|
6999
|
+
return t(new Tt());
|
|
6621
7000
|
case "ValidProofs":
|
|
6622
|
-
return t(new
|
|
7001
|
+
return t(new Rt());
|
|
6623
7002
|
case "SignedEvent":
|
|
6624
|
-
return t(new
|
|
7003
|
+
return t(new Ut());
|
|
6625
7004
|
case "Pubkey":
|
|
6626
|
-
return t(new
|
|
7005
|
+
return t(new Nt());
|
|
6627
7006
|
case "Raw":
|
|
6628
|
-
return t(new
|
|
7007
|
+
return t(new qt());
|
|
6629
7008
|
default:
|
|
6630
7009
|
return null;
|
|
6631
7010
|
}
|
|
6632
7011
|
}
|
|
6633
|
-
var
|
|
6634
|
-
class
|
|
7012
|
+
var Dt = /* @__PURE__ */ ((n) => (n[n.ParsedNostrEvent = 0] = "ParsedNostrEvent", n[n.ConnectionStatus = 1] = "ConnectionStatus", n[n.CountResponse = 2] = "CountResponse", n[n.Eoce = 3] = "Eoce", n[n.BufferFull = 4] = "BufferFull", n[n.ValidProofs = 5] = "ValidProofs", n[n.SignedEvent = 6] = "SignedEvent", n[n.Pubkey = 7] = "Pubkey", n[n.Raw = 8] = "Raw", n[n.NostrEvent = 9] = "NostrEvent", n))(Dt || {});
|
|
7013
|
+
class st {
|
|
6635
7014
|
constructor() {
|
|
6636
7015
|
this.bb = null, this.bb_pos = 0;
|
|
6637
7016
|
}
|
|
@@ -6639,10 +7018,10 @@ class $ {
|
|
|
6639
7018
|
return this.bb_pos = t, this.bb = s, this;
|
|
6640
7019
|
}
|
|
6641
7020
|
static getRootAsWorkerMessage(t, s) {
|
|
6642
|
-
return (s || new
|
|
7021
|
+
return (s || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6643
7022
|
}
|
|
6644
7023
|
static getSizePrefixedRootAsWorkerMessage(t, s) {
|
|
6645
|
-
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new
|
|
7024
|
+
return t.setPosition(t.position() + c.SIZE_PREFIX_LENGTH), (s || new st()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
6646
7025
|
}
|
|
6647
7026
|
subId(t) {
|
|
6648
7027
|
const s = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -6654,11 +7033,11 @@ class $ {
|
|
|
6654
7033
|
}
|
|
6655
7034
|
type() {
|
|
6656
7035
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
6657
|
-
return t ? this.bb.readUint32(this.bb_pos + t) :
|
|
7036
|
+
return t ? this.bb.readUint32(this.bb_pos + t) : Dt.ParsedNostrEvent;
|
|
6658
7037
|
}
|
|
6659
7038
|
contentType() {
|
|
6660
7039
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
6661
|
-
return t ? this.bb.readUint8(this.bb_pos + t) :
|
|
7040
|
+
return t ? this.bb.readUint8(this.bb_pos + t) : Xt.NONE;
|
|
6662
7041
|
}
|
|
6663
7042
|
content(t) {
|
|
6664
7043
|
const s = this.bb.__offset(this.bb_pos, 12);
|
|
@@ -6674,10 +7053,10 @@ class $ {
|
|
|
6674
7053
|
t.addFieldOffset(1, s, 0);
|
|
6675
7054
|
}
|
|
6676
7055
|
static addType(t, s) {
|
|
6677
|
-
t.addFieldInt32(2, s,
|
|
7056
|
+
t.addFieldInt32(2, s, Dt.ParsedNostrEvent);
|
|
6678
7057
|
}
|
|
6679
7058
|
static addContentType(t, s) {
|
|
6680
|
-
t.addFieldInt8(3, s,
|
|
7059
|
+
t.addFieldInt8(3, s, Xt.NONE);
|
|
6681
7060
|
}
|
|
6682
7061
|
static addContent(t, s) {
|
|
6683
7062
|
t.addFieldOffset(4, s, 0);
|
|
@@ -6692,34 +7071,34 @@ class $ {
|
|
|
6692
7071
|
t.finish(s, void 0, true);
|
|
6693
7072
|
}
|
|
6694
7073
|
static createWorkerMessage(t, s, e, i, o, r) {
|
|
6695
|
-
return
|
|
7074
|
+
return st.startWorkerMessage(t), st.addSubId(t, s), st.addUrl(t, e), st.addType(t, i), st.addContentType(t, o), st.addContent(t, r), st.endWorkerMessage(t);
|
|
6696
7075
|
}
|
|
6697
7076
|
unpack() {
|
|
6698
|
-
return new
|
|
7077
|
+
return new ke(
|
|
6699
7078
|
this.subId(),
|
|
6700
7079
|
this.url(),
|
|
6701
7080
|
this.type(),
|
|
6702
7081
|
this.contentType(),
|
|
6703
7082
|
(() => {
|
|
6704
|
-
const t =
|
|
7083
|
+
const t = ss(this.contentType(), this.content.bind(this));
|
|
6705
7084
|
return t === null ? null : t.unpack();
|
|
6706
7085
|
})()
|
|
6707
7086
|
);
|
|
6708
7087
|
}
|
|
6709
7088
|
unpackTo(t) {
|
|
6710
7089
|
t.subId = this.subId(), t.url = this.url(), t.type = this.type(), t.contentType = this.contentType(), t.content = (() => {
|
|
6711
|
-
const s =
|
|
7090
|
+
const s = ss(this.contentType(), this.content.bind(this));
|
|
6712
7091
|
return s === null ? null : s.unpack();
|
|
6713
7092
|
})();
|
|
6714
7093
|
}
|
|
6715
7094
|
}
|
|
6716
|
-
class
|
|
6717
|
-
constructor(t = null, s = null, e =
|
|
7095
|
+
class ke {
|
|
7096
|
+
constructor(t = null, s = null, e = Dt.ParsedNostrEvent, i = Xt.NONE, o = null) {
|
|
6718
7097
|
this.subId = t, this.url = s, this.type = e, this.contentType = i, this.content = o;
|
|
6719
7098
|
}
|
|
6720
7099
|
pack(t) {
|
|
6721
7100
|
const s = this.subId !== null ? t.createString(this.subId) : 0, e = this.url !== null ? t.createString(this.url) : 0, i = t.createObjectOffset(this.content);
|
|
6722
|
-
return
|
|
7101
|
+
return st.createWorkerMessage(
|
|
6723
7102
|
t,
|
|
6724
7103
|
s,
|
|
6725
7104
|
e,
|
|
@@ -6730,146 +7109,155 @@ class be {
|
|
|
6730
7109
|
}
|
|
6731
7110
|
}
|
|
6732
7111
|
export {
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
7112
|
+
gs as $,
|
|
7113
|
+
x as A,
|
|
7114
|
+
Tt as B,
|
|
7115
|
+
_t as C,
|
|
7116
|
+
et as D,
|
|
7117
|
+
Kt as E,
|
|
7118
|
+
dt as F,
|
|
7119
|
+
R as G,
|
|
7120
|
+
jt as H,
|
|
7121
|
+
rt as I,
|
|
7122
|
+
Xt as J,
|
|
6744
7123
|
p as K,
|
|
6745
7124
|
O as L,
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
7125
|
+
Dt as M,
|
|
7126
|
+
j as N,
|
|
7127
|
+
ms as O,
|
|
6749
7128
|
k as P,
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
7129
|
+
ys as Q,
|
|
7130
|
+
qt as R,
|
|
7131
|
+
X as S,
|
|
7132
|
+
us as T,
|
|
7133
|
+
Os as U,
|
|
7134
|
+
Rt as V,
|
|
7135
|
+
st as W,
|
|
7136
|
+
ks as X,
|
|
7137
|
+
ls as Y,
|
|
7138
|
+
fs as Z,
|
|
7139
|
+
ps as _,
|
|
7140
|
+
pt as a,
|
|
7141
|
+
Et as a$,
|
|
7142
|
+
Is as a0,
|
|
7143
|
+
g as a1,
|
|
7144
|
+
de as a2,
|
|
7145
|
+
ns as a3,
|
|
7146
|
+
is as a4,
|
|
7147
|
+
fe as a5,
|
|
7148
|
+
ht as a6,
|
|
7149
|
+
Hs as a7,
|
|
7150
|
+
C as a8,
|
|
7151
|
+
z as a9,
|
|
6773
7152
|
As as aA,
|
|
6774
7153
|
Cs as aB,
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
7154
|
+
Ns as aC,
|
|
7155
|
+
Us as aD,
|
|
7156
|
+
xs as aE,
|
|
7157
|
+
Bs as aF,
|
|
7158
|
+
zs as aG,
|
|
7159
|
+
Zs as aH,
|
|
7160
|
+
Xs as aI,
|
|
7161
|
+
Ys as aJ,
|
|
7162
|
+
$s as aK,
|
|
7163
|
+
te as aL,
|
|
7164
|
+
se as aM,
|
|
7165
|
+
ie as aN,
|
|
7166
|
+
re as aO,
|
|
7167
|
+
it as aP,
|
|
7168
|
+
Vs as aQ,
|
|
7169
|
+
Ft as aR,
|
|
7170
|
+
Es as aS,
|
|
7171
|
+
St as aT,
|
|
7172
|
+
Rs as aU,
|
|
7173
|
+
xt as aV,
|
|
7174
|
+
ut as aW,
|
|
7175
|
+
cs as aX,
|
|
7176
|
+
kt as aY,
|
|
7177
|
+
Oe as aZ,
|
|
7178
|
+
os as a_,
|
|
6800
7179
|
ne as aa,
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
7180
|
+
le as ab,
|
|
7181
|
+
ft as ac,
|
|
7182
|
+
Gs as ad,
|
|
7183
|
+
gt as ae,
|
|
7184
|
+
js as af,
|
|
7185
|
+
_s as ag,
|
|
7186
|
+
_e as ah,
|
|
7187
|
+
N as ai,
|
|
7188
|
+
Ss as aj,
|
|
7189
|
+
Ot as ak,
|
|
7190
|
+
Ds as al,
|
|
7191
|
+
nt as am,
|
|
7192
|
+
Js as an,
|
|
7193
|
+
w as ao,
|
|
7194
|
+
Ks as ap,
|
|
7195
|
+
rs as aq,
|
|
7196
|
+
hs as ar,
|
|
7197
|
+
ds as as,
|
|
7198
|
+
G as at,
|
|
7199
|
+
bs as au,
|
|
7200
|
+
S as av,
|
|
7201
|
+
Fs as aw,
|
|
7202
|
+
vs as ax,
|
|
6824
7203
|
Ts as ay,
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
7204
|
+
ws as az,
|
|
7205
|
+
Zt as b,
|
|
7206
|
+
Ms as b0,
|
|
7207
|
+
be as b1,
|
|
7208
|
+
Lt as b2,
|
|
7209
|
+
Ls as b3,
|
|
7210
|
+
Gt as b4,
|
|
7211
|
+
ce as b5,
|
|
7212
|
+
ot as b6,
|
|
6834
7213
|
ae as b7,
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
7214
|
+
lt as b8,
|
|
7215
|
+
he as b9,
|
|
7216
|
+
Z as ba,
|
|
7217
|
+
Ps as bb,
|
|
7218
|
+
A as bc,
|
|
7219
|
+
Qs as bd,
|
|
7220
|
+
Nt as be,
|
|
7221
|
+
pe as bf,
|
|
7222
|
+
ue as bg,
|
|
7223
|
+
Ht as bh,
|
|
7224
|
+
ct as bi,
|
|
7225
|
+
as as bj,
|
|
7226
|
+
Ut as bk,
|
|
7227
|
+
ge as bl,
|
|
7228
|
+
yt as bm,
|
|
7229
|
+
oe as bn,
|
|
7230
|
+
ye as bo,
|
|
7231
|
+
E as bp,
|
|
7232
|
+
qs as bq,
|
|
7233
|
+
zt as br,
|
|
7234
|
+
Ct as bs,
|
|
7235
|
+
Ws as bt,
|
|
7236
|
+
ke as bu,
|
|
7237
|
+
H as bv,
|
|
7238
|
+
ee as bw,
|
|
7239
|
+
T as c,
|
|
7240
|
+
Vt as d,
|
|
7241
|
+
W as e,
|
|
7242
|
+
At as f,
|
|
7243
|
+
Q as g,
|
|
7244
|
+
M as h,
|
|
7245
|
+
P as i,
|
|
7246
|
+
L as j,
|
|
7247
|
+
_ as k,
|
|
7248
|
+
q as l,
|
|
7249
|
+
Pt as m,
|
|
7250
|
+
Y as n,
|
|
7251
|
+
D as o,
|
|
7252
|
+
bt as p,
|
|
7253
|
+
B as q,
|
|
7254
|
+
v as r,
|
|
7255
|
+
m as s,
|
|
7256
|
+
F as t,
|
|
7257
|
+
f as u,
|
|
7258
|
+
Bt as v,
|
|
7259
|
+
mt as w,
|
|
7260
|
+
wt as x,
|
|
7261
|
+
at as y,
|
|
7262
|
+
vt as z
|
|
6875
7263
|
};
|