@candypoets/nipworker 0.91.0 → 0.91.1

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.
@@ -1 +1,279 @@
1
- import{M as u,C as H,E as I,a as M,B as j,V as k,P as q,N as z,b as e,K as l,c as i,d as p,e as c,f as o,g as P,h as f,i as w,j as K,k as y,l as T,m as D,n as m,o as C,p as L,q as h,r as E,L as G,s as N,t as s,u as A,H as R,v as S,I as b,w as J,x as O,y as Q,z as U,A as W,D as X,F as Y}from"./worker-message.js";import"flatbuffers";function g(n){return n.type()!==u.ConnectionStatus?null:n.content(new H)??null}const Z=g;function v(n){return n.type()!==u.Eoce?null:n.content(new I)??null}const _=v;function V(n){return n.type()!==u.CountResponse?null:n.content(new M)??null}const $=V;function x(n){return n.type()!==u.BufferFull?null:n.content(new j)??null}const nn=x;function B(n){return n.type()!==u.ValidProofs?null:n.content(new k)??null}const en=B;function t(n){return n.type()!==u.ParsedNostrEvent?null:n.content(new q)??null}const an=t,F=n=>n.type()!==u.NostrEvent?null:n.content(new z)??null,rn=F;function r(n,d){if(!n)return null;const a=t(n);if(!a||a.parsedType()!==d)return null;switch(d){case e.Kind0Parsed:return a.parsed(new l);case e.Kind1Parsed:return a.parsed(new i);case e.Kind3Parsed:return a.parsed(new p);case e.Kind4Parsed:return a.parsed(new c);case e.Kind6Parsed:return a.parsed(new o);case e.Kind7Parsed:return a.parsed(new P);case e.Kind17Parsed:return a.parsed(new f);case e.Kind20Parsed:return a.parsed(new Y);case e.Kind22Parsed:return a.parsed(new X);case e.Kind1111Parsed:return a.parsed(new w);case e.Kind1311Parsed:return a.parsed(new K);case e.Kind10002Parsed:return a.parsed(new y);case e.Kind10019Parsed:return a.parsed(new T);case e.Kind17375Parsed:return a.parsed(new D);case e.Kind7374Parsed:return a.parsed(new m);case e.Kind7375Parsed:return a.parsed(new C);case e.Kind7376Parsed:return a.parsed(new L);case e.Kind9321Parsed:return a.parsed(new h);case e.Kind9735Parsed:return a.parsed(new E);case e.Kind30023Parsed:return a.parsed(new W);case e.ListParsed:return a.parsed(new G);case e.PreGenericParsed:return a.parsed(new N);default:return null}}function sn(n){return r(n,e.Kind0Parsed)}function un(n){return!n||n.parsedType()!==e.Kind0Parsed?null:n.parsed(new l)??null}function tn(n){return r(n,e.Kind1Parsed)}function dn(n){return n.parsedType()!==e.Kind1Parsed?null:n.parsed(new i)??null}function ln(n){return r(n,e.Kind3Parsed)}function pn(n){return n.parsedType()!==e.Kind3Parsed?null:n.parsed(new p)??null}function cn(n){return r(n,e.Kind4Parsed)}function on(n){return n.parsedType()!==e.Kind4Parsed?null:n.parsed(new c)??null}function Pn(n){return r(n,e.Kind6Parsed)}function fn(n){return n.parsedType()!==e.Kind6Parsed?null:n.parsed(new o)??null}function wn(n){return r(n,e.Kind7Parsed)}function Kn(n){return n.parsedType()!==e.Kind7Parsed?null:n.parsed(new P)??null}function yn(n){return r(n,e.Kind17Parsed)}function Tn(n){return n.parsedType()!==e.Kind17Parsed?null:n.parsed(new f)??null}function Dn(n){return r(n,e.Kind1111Parsed)}function mn(n){return n.parsedType()!==e.Kind1111Parsed?null:n.parsed(new w)??null}function Cn(n){return r(n,e.Kind1311Parsed)}function Ln(n){return n.parsedType()!==e.Kind1311Parsed?null:n.parsed(new K)??null}function hn(n){return r(n,e.Kind10002Parsed)}function En(n){return n.parsedType()!==e.Kind10002Parsed?null:n.parsed(new y)??null}function Gn(n){return r(n,e.Kind10019Parsed)}function Nn(n){return n.parsedType()!==e.Kind10019Parsed?null:n.parsed(new T)??null}function gn(n){return r(n,e.Kind17375Parsed)}function vn(n){return n.parsedType()!==e.Kind17375Parsed?null:n.parsed(new D)??null}function Vn(n){return r(n,e.Kind7374Parsed)}function xn(n){return n.parsedType()!==e.Kind7374Parsed?null:n.parsed(new m)??null}function Bn(n){return r(n,e.Kind7375Parsed)}function Fn(n){return n.parsedType()!==e.Kind7375Parsed?null:n.parsed(new C)??null}function Hn(n){return r(n,e.Kind7376Parsed)}function In(n){return n.parsedType()!==e.Kind7376Parsed?null:n.parsed(new L)??null}function Mn(n){return r(n,e.Kind9321Parsed)}function jn(n){return n.parsedType()!==e.Kind9321Parsed?null:n.parsed(new h)??null}function kn(n){return r(n,e.Kind9735Parsed)}function qn(n){return n.parsedType()!==e.Kind9735Parsed?null:n.parsed(new E)??null}function zn(n){return r(n,e.ListParsed)}function An(n){return n.parsedType()!==e.ListParsed?null:n.parsed(new G)??null}function Rn(n){return r(n,e.PreGenericParsed)}function Sn(n){return n.parsedType()!==e.PreGenericParsed?null:n.parsed(new N)??null}function bn(n){return n.dataType()!==s.CodeData?null:n.data(new A)??null}function Jn(n){return n.dataType()!==s.HashtagData?null:n.data(new R)??null}function On(n){return n.dataType()!==s.CashuData?null:n.data(new S)??null}function Qn(n){return n.dataType()!==s.ImageData?null:n.data(new b)??null}function Un(n){return n.dataType()!==s.VideoData?null:n.data(new J)??null}function Wn(n){return n.dataType()!==s.MediaGroupData?null:n.data(new O)??null}function Xn(n){return n.dataType()!==s.NostrData?null:n.data(new Q)??null}function Yn(n){return n.dataType()!==s.LinkPreviewData?null:n.data(new U)??null}export{Jn as $,yn as A,Tn as B,Dn as C,mn as D,Cn as E,Ln as F,hn as G,En as H,Gn as I,Nn as J,gn as K,vn as L,Vn as M,xn as N,Bn as O,Fn as P,Hn as Q,In as R,Mn as S,jn as T,kn as U,qn as V,zn as W,An as X,Rn as Y,Sn as Z,bn as _,F as a,On as a0,Qn as a1,Un as a2,Wn as a3,Xn as a4,Yn as a5,g as b,v as c,an as d,rn as e,Z as f,_ as g,V as h,t as i,$ as j,x as k,nn as l,B as m,en as n,sn as o,un as p,tn as q,dn as r,ln as s,pn as t,cn as u,on as v,Pn as w,fn as x,wn as y,Kn as z};
1
+ import { M as d, C as B, E as F, a as M, B as H, V as I, P as R, N as S, b as e, K as u, c as i, d as l, e as p, f as o, g as K, h as f, i as P, j as c, k as w, l as y, m as T, n as D, o as C, p as E, q as N, r as G, L as h, s as L, t as s, u as x, H as j, v as q, I as z, w as A, x as g, y as J, z as O, A as Q, D as U, F as W } from "./worker-message.js";
2
+ import "flatbuffers";
3
+ function X(n) {
4
+ return n.type() !== d.ConnectionStatus ? null : n.content(new B()) ?? null;
5
+ }
6
+ const nn = X;
7
+ function Y(n) {
8
+ return n.type() !== d.Eoce ? null : n.content(new F()) ?? null;
9
+ }
10
+ const en = Y;
11
+ function Z(n) {
12
+ return n.type() !== d.CountResponse ? null : n.content(new M()) ?? null;
13
+ }
14
+ const an = Z;
15
+ function _(n) {
16
+ return n.type() !== d.BufferFull ? null : n.content(new H()) ?? null;
17
+ }
18
+ const rn = _;
19
+ function $(n) {
20
+ return n.type() !== d.ValidProofs ? null : n.content(new I()) ?? null;
21
+ }
22
+ const sn = $;
23
+ function V(n) {
24
+ return n.type() !== d.ParsedNostrEvent ? null : n.content(new R()) ?? null;
25
+ }
26
+ const dn = V, m = (n) => n.type() !== d.NostrEvent ? null : n.content(new S()) ?? null, tn = m;
27
+ function r(n, t) {
28
+ if (!n) return null;
29
+ const a = V(n);
30
+ if (!a || a.parsedType() !== t) return null;
31
+ switch (t) {
32
+ case e.Kind0Parsed:
33
+ return a.parsed(new u());
34
+ case e.Kind1Parsed:
35
+ return a.parsed(new i());
36
+ case e.Kind3Parsed:
37
+ return a.parsed(new l());
38
+ case e.Kind4Parsed:
39
+ return a.parsed(new p());
40
+ case e.Kind6Parsed:
41
+ return a.parsed(new o());
42
+ case e.Kind7Parsed:
43
+ return a.parsed(new K());
44
+ case e.Kind17Parsed:
45
+ return a.parsed(new f());
46
+ case e.Kind20Parsed:
47
+ return a.parsed(new W());
48
+ case e.Kind22Parsed:
49
+ return a.parsed(new U());
50
+ case e.Kind1111Parsed:
51
+ return a.parsed(new P());
52
+ case e.Kind1311Parsed:
53
+ return a.parsed(new c());
54
+ case e.Kind10002Parsed:
55
+ return a.parsed(new w());
56
+ case e.Kind10019Parsed:
57
+ return a.parsed(new y());
58
+ case e.Kind17375Parsed:
59
+ return a.parsed(new T());
60
+ case e.Kind7374Parsed:
61
+ return a.parsed(new D());
62
+ case e.Kind7375Parsed:
63
+ return a.parsed(new C());
64
+ case e.Kind7376Parsed:
65
+ return a.parsed(new E());
66
+ case e.Kind9321Parsed:
67
+ return a.parsed(new N());
68
+ case e.Kind9735Parsed:
69
+ return a.parsed(new G());
70
+ case e.Kind30023Parsed:
71
+ return a.parsed(new Q());
72
+ case e.ListParsed:
73
+ return a.parsed(new h());
74
+ case e.PreGenericParsed:
75
+ return a.parsed(new L());
76
+ default:
77
+ return null;
78
+ }
79
+ }
80
+ function un(n) {
81
+ return r(n, e.Kind0Parsed);
82
+ }
83
+ function ln(n) {
84
+ return !n || n.parsedType() !== e.Kind0Parsed ? null : n.parsed(new u()) ?? null;
85
+ }
86
+ function pn(n) {
87
+ return r(n, e.Kind1Parsed);
88
+ }
89
+ function on(n) {
90
+ return n.parsedType() !== e.Kind1Parsed ? null : n.parsed(new i()) ?? null;
91
+ }
92
+ function Kn(n) {
93
+ return r(n, e.Kind3Parsed);
94
+ }
95
+ function fn(n) {
96
+ return n.parsedType() !== e.Kind3Parsed ? null : n.parsed(new l()) ?? null;
97
+ }
98
+ function Pn(n) {
99
+ return r(n, e.Kind4Parsed);
100
+ }
101
+ function cn(n) {
102
+ return n.parsedType() !== e.Kind4Parsed ? null : n.parsed(new p()) ?? null;
103
+ }
104
+ function wn(n) {
105
+ return r(n, e.Kind6Parsed);
106
+ }
107
+ function yn(n) {
108
+ return n.parsedType() !== e.Kind6Parsed ? null : n.parsed(new o()) ?? null;
109
+ }
110
+ function Tn(n) {
111
+ return r(n, e.Kind7Parsed);
112
+ }
113
+ function Dn(n) {
114
+ return n.parsedType() !== e.Kind7Parsed ? null : n.parsed(new K()) ?? null;
115
+ }
116
+ function Cn(n) {
117
+ return r(n, e.Kind17Parsed);
118
+ }
119
+ function En(n) {
120
+ return n.parsedType() !== e.Kind17Parsed ? null : n.parsed(new f()) ?? null;
121
+ }
122
+ function Nn(n) {
123
+ return r(n, e.Kind1111Parsed);
124
+ }
125
+ function Gn(n) {
126
+ return n.parsedType() !== e.Kind1111Parsed ? null : n.parsed(new P()) ?? null;
127
+ }
128
+ function hn(n) {
129
+ return r(n, e.Kind1311Parsed);
130
+ }
131
+ function Ln(n) {
132
+ return n.parsedType() !== e.Kind1311Parsed ? null : n.parsed(new c()) ?? null;
133
+ }
134
+ function Vn(n) {
135
+ return r(n, e.Kind10002Parsed);
136
+ }
137
+ function Bn(n) {
138
+ return n.parsedType() !== e.Kind10002Parsed ? null : n.parsed(new w()) ?? null;
139
+ }
140
+ function Fn(n) {
141
+ return r(n, e.Kind10019Parsed);
142
+ }
143
+ function Mn(n) {
144
+ return n.parsedType() !== e.Kind10019Parsed ? null : n.parsed(new y()) ?? null;
145
+ }
146
+ function Hn(n) {
147
+ return r(n, e.Kind17375Parsed);
148
+ }
149
+ function In(n) {
150
+ return n.parsedType() !== e.Kind17375Parsed ? null : n.parsed(new T()) ?? null;
151
+ }
152
+ function Rn(n) {
153
+ return r(n, e.Kind7374Parsed);
154
+ }
155
+ function Sn(n) {
156
+ return n.parsedType() !== e.Kind7374Parsed ? null : n.parsed(new D()) ?? null;
157
+ }
158
+ function xn(n) {
159
+ return r(n, e.Kind7375Parsed);
160
+ }
161
+ function jn(n) {
162
+ return n.parsedType() !== e.Kind7375Parsed ? null : n.parsed(new C()) ?? null;
163
+ }
164
+ function qn(n) {
165
+ return r(n, e.Kind7376Parsed);
166
+ }
167
+ function zn(n) {
168
+ return n.parsedType() !== e.Kind7376Parsed ? null : n.parsed(new E()) ?? null;
169
+ }
170
+ function An(n) {
171
+ return r(n, e.Kind9321Parsed);
172
+ }
173
+ function gn(n) {
174
+ return n.parsedType() !== e.Kind9321Parsed ? null : n.parsed(new N()) ?? null;
175
+ }
176
+ function Jn(n) {
177
+ return r(n, e.Kind9735Parsed);
178
+ }
179
+ function On(n) {
180
+ return n.parsedType() !== e.Kind9735Parsed ? null : n.parsed(new G()) ?? null;
181
+ }
182
+ function Qn(n) {
183
+ return r(n, e.ListParsed);
184
+ }
185
+ function Un(n) {
186
+ return n.parsedType() !== e.ListParsed ? null : n.parsed(new h()) ?? null;
187
+ }
188
+ function Wn(n) {
189
+ return r(n, e.PreGenericParsed);
190
+ }
191
+ function Xn(n) {
192
+ return n.parsedType() !== e.PreGenericParsed ? null : n.parsed(new L()) ?? null;
193
+ }
194
+ function Yn(n) {
195
+ return n.dataType() !== s.CodeData ? null : n.data(new x()) ?? null;
196
+ }
197
+ function Zn(n) {
198
+ return n.dataType() !== s.HashtagData ? null : n.data(new j()) ?? null;
199
+ }
200
+ function _n(n) {
201
+ return n.dataType() !== s.CashuData ? null : n.data(new q()) ?? null;
202
+ }
203
+ function $n(n) {
204
+ return n.dataType() !== s.ImageData ? null : n.data(new z()) ?? null;
205
+ }
206
+ function mn(n) {
207
+ return n.dataType() !== s.VideoData ? null : n.data(new A()) ?? null;
208
+ }
209
+ function kn(n) {
210
+ return n.dataType() !== s.MediaGroupData ? null : n.data(new g()) ?? null;
211
+ }
212
+ function bn(n) {
213
+ return n.dataType() !== s.NostrData ? null : n.data(new J()) ?? null;
214
+ }
215
+ function vn(n) {
216
+ return n.dataType() !== s.LinkPreviewData ? null : n.data(new O()) ?? null;
217
+ }
218
+ export {
219
+ Zn as $,
220
+ Cn as A,
221
+ En as B,
222
+ Nn as C,
223
+ Gn as D,
224
+ hn as E,
225
+ Ln as F,
226
+ Vn as G,
227
+ Bn as H,
228
+ Fn as I,
229
+ Mn as J,
230
+ Hn as K,
231
+ In as L,
232
+ Rn as M,
233
+ Sn as N,
234
+ xn as O,
235
+ jn as P,
236
+ qn as Q,
237
+ zn as R,
238
+ An as S,
239
+ gn as T,
240
+ Jn as U,
241
+ On as V,
242
+ Qn as W,
243
+ Un as X,
244
+ Wn as Y,
245
+ Xn as Z,
246
+ Yn as _,
247
+ m as a,
248
+ _n as a0,
249
+ $n as a1,
250
+ mn as a2,
251
+ kn as a3,
252
+ bn as a4,
253
+ vn as a5,
254
+ X as b,
255
+ Y as c,
256
+ dn as d,
257
+ tn as e,
258
+ nn as f,
259
+ en as g,
260
+ Z as h,
261
+ V as i,
262
+ an as j,
263
+ _ as k,
264
+ rn as l,
265
+ $ as m,
266
+ sn as n,
267
+ un as o,
268
+ ln as p,
269
+ pn as q,
270
+ on as r,
271
+ Kn as s,
272
+ fn as t,
273
+ Pn as u,
274
+ cn as v,
275
+ wn as w,
276
+ yn as x,
277
+ Tn as y,
278
+ Dn as z
279
+ };