@vocdoni/proto 1.15.1 → 1.15.2
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/.github/workflows/post-merge.yml +6 -6
- package/DEVELOPING.md +86 -0
- package/Makefile +11 -5
- package/README.md +3 -10
- package/{dist → build/js}/index.js +34 -4
- package/package.json +39 -39
- package/src/vochain/vochain.proto +6 -0
- package/.idea/dvote-protobuf.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/dist/client-store/index.d.ts +0 -3
- package/dist/client-store/index.js +0 -2924
- package/dist/client-store/index.mjs +0 -2911
- package/dist/entity-e8dfcd83.d.ts +0 -1804
- package/dist/index-05df597a.d.ts +0 -1972
- package/dist/index-47061e36.d.ts +0 -11738
- package/dist/index-4d38492a.d.ts +0 -10654
- package/dist/index-d457aeb5.d.ts +0 -1924
- package/dist/index.d.ts +0 -5
- package/dist/index.mjs +0 -10834
- package/dist/metadata/index.d.ts +0 -3
- package/dist/metadata/index.js +0 -4261
- package/dist/metadata/index.mjs +0 -4218
- package/dist/vochain/index.d.ts +0 -2
- package/dist/vochain/index.js +0 -6670
- package/dist/vochain/index.mjs +0 -6591
- package/vocdoni-proto-v1.15.1.tgz +0 -0
|
@@ -1,2911 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod2) => function __require() {
|
|
8
|
-
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
9
|
-
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
28
|
-
mod2
|
|
29
|
-
));
|
|
30
|
-
|
|
31
|
-
// node_modules/@protobufjs/aspromise/index.js
|
|
32
|
-
var require_aspromise = __commonJS({
|
|
33
|
-
"node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
|
34
|
-
"use strict";
|
|
35
|
-
module2.exports = asPromise;
|
|
36
|
-
function asPromise(fn, ctx) {
|
|
37
|
-
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
38
|
-
while (index < arguments.length)
|
|
39
|
-
params[offset++] = arguments[index++];
|
|
40
|
-
return new Promise(function executor(resolve, reject) {
|
|
41
|
-
params[offset] = function callback(err) {
|
|
42
|
-
if (pending) {
|
|
43
|
-
pending = false;
|
|
44
|
-
if (err)
|
|
45
|
-
reject(err);
|
|
46
|
-
else {
|
|
47
|
-
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
48
|
-
while (offset2 < params2.length)
|
|
49
|
-
params2[offset2++] = arguments[offset2];
|
|
50
|
-
resolve.apply(null, params2);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
try {
|
|
55
|
-
fn.apply(ctx || null, params);
|
|
56
|
-
} catch (err) {
|
|
57
|
-
if (pending) {
|
|
58
|
-
pending = false;
|
|
59
|
-
reject(err);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// node_modules/@protobufjs/base64/index.js
|
|
68
|
-
var require_base64 = __commonJS({
|
|
69
|
-
"node_modules/@protobufjs/base64/index.js"(exports2) {
|
|
70
|
-
"use strict";
|
|
71
|
-
var base64 = exports2;
|
|
72
|
-
base64.length = function length(string) {
|
|
73
|
-
var p = string.length;
|
|
74
|
-
if (!p)
|
|
75
|
-
return 0;
|
|
76
|
-
var n = 0;
|
|
77
|
-
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
78
|
-
++n;
|
|
79
|
-
return Math.ceil(string.length * 3) / 4 - n;
|
|
80
|
-
};
|
|
81
|
-
var b64 = new Array(64);
|
|
82
|
-
var s64 = new Array(123);
|
|
83
|
-
for (i = 0; i < 64; )
|
|
84
|
-
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
85
|
-
var i;
|
|
86
|
-
base64.encode = function encode(buffer, start, end) {
|
|
87
|
-
var parts = null, chunk = [];
|
|
88
|
-
var i2 = 0, j = 0, t;
|
|
89
|
-
while (start < end) {
|
|
90
|
-
var b = buffer[start++];
|
|
91
|
-
switch (j) {
|
|
92
|
-
case 0:
|
|
93
|
-
chunk[i2++] = b64[b >> 2];
|
|
94
|
-
t = (b & 3) << 4;
|
|
95
|
-
j = 1;
|
|
96
|
-
break;
|
|
97
|
-
case 1:
|
|
98
|
-
chunk[i2++] = b64[t | b >> 4];
|
|
99
|
-
t = (b & 15) << 2;
|
|
100
|
-
j = 2;
|
|
101
|
-
break;
|
|
102
|
-
case 2:
|
|
103
|
-
chunk[i2++] = b64[t | b >> 6];
|
|
104
|
-
chunk[i2++] = b64[b & 63];
|
|
105
|
-
j = 0;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
if (i2 > 8191) {
|
|
109
|
-
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
110
|
-
i2 = 0;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
if (j) {
|
|
114
|
-
chunk[i2++] = b64[t];
|
|
115
|
-
chunk[i2++] = 61;
|
|
116
|
-
if (j === 1)
|
|
117
|
-
chunk[i2++] = 61;
|
|
118
|
-
}
|
|
119
|
-
if (parts) {
|
|
120
|
-
if (i2)
|
|
121
|
-
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
|
|
122
|
-
return parts.join("");
|
|
123
|
-
}
|
|
124
|
-
return String.fromCharCode.apply(String, chunk.slice(0, i2));
|
|
125
|
-
};
|
|
126
|
-
var invalidEncoding = "invalid encoding";
|
|
127
|
-
base64.decode = function decode(string, buffer, offset) {
|
|
128
|
-
var start = offset;
|
|
129
|
-
var j = 0, t;
|
|
130
|
-
for (var i2 = 0; i2 < string.length; ) {
|
|
131
|
-
var c = string.charCodeAt(i2++);
|
|
132
|
-
if (c === 61 && j > 1)
|
|
133
|
-
break;
|
|
134
|
-
if ((c = s64[c]) === void 0)
|
|
135
|
-
throw Error(invalidEncoding);
|
|
136
|
-
switch (j) {
|
|
137
|
-
case 0:
|
|
138
|
-
t = c;
|
|
139
|
-
j = 1;
|
|
140
|
-
break;
|
|
141
|
-
case 1:
|
|
142
|
-
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
143
|
-
t = c;
|
|
144
|
-
j = 2;
|
|
145
|
-
break;
|
|
146
|
-
case 2:
|
|
147
|
-
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
148
|
-
t = c;
|
|
149
|
-
j = 3;
|
|
150
|
-
break;
|
|
151
|
-
case 3:
|
|
152
|
-
buffer[offset++] = (t & 3) << 6 | c;
|
|
153
|
-
j = 0;
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if (j === 1)
|
|
158
|
-
throw Error(invalidEncoding);
|
|
159
|
-
return offset - start;
|
|
160
|
-
};
|
|
161
|
-
base64.test = function test(string) {
|
|
162
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
// node_modules/@protobufjs/eventemitter/index.js
|
|
168
|
-
var require_eventemitter = __commonJS({
|
|
169
|
-
"node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
170
|
-
"use strict";
|
|
171
|
-
module2.exports = EventEmitter;
|
|
172
|
-
function EventEmitter() {
|
|
173
|
-
this._listeners = {};
|
|
174
|
-
}
|
|
175
|
-
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
176
|
-
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
177
|
-
fn,
|
|
178
|
-
ctx: ctx || this
|
|
179
|
-
});
|
|
180
|
-
return this;
|
|
181
|
-
};
|
|
182
|
-
EventEmitter.prototype.off = function off(evt, fn) {
|
|
183
|
-
if (evt === void 0)
|
|
184
|
-
this._listeners = {};
|
|
185
|
-
else {
|
|
186
|
-
if (fn === void 0)
|
|
187
|
-
this._listeners[evt] = [];
|
|
188
|
-
else {
|
|
189
|
-
var listeners = this._listeners[evt];
|
|
190
|
-
for (var i = 0; i < listeners.length; )
|
|
191
|
-
if (listeners[i].fn === fn)
|
|
192
|
-
listeners.splice(i, 1);
|
|
193
|
-
else
|
|
194
|
-
++i;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
return this;
|
|
198
|
-
};
|
|
199
|
-
EventEmitter.prototype.emit = function emit(evt) {
|
|
200
|
-
var listeners = this._listeners[evt];
|
|
201
|
-
if (listeners) {
|
|
202
|
-
var args = [], i = 1;
|
|
203
|
-
for (; i < arguments.length; )
|
|
204
|
-
args.push(arguments[i++]);
|
|
205
|
-
for (i = 0; i < listeners.length; )
|
|
206
|
-
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
207
|
-
}
|
|
208
|
-
return this;
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
// node_modules/@protobufjs/float/index.js
|
|
214
|
-
var require_float = __commonJS({
|
|
215
|
-
"node_modules/@protobufjs/float/index.js"(exports2, module2) {
|
|
216
|
-
"use strict";
|
|
217
|
-
module2.exports = factory(factory);
|
|
218
|
-
function factory(exports3) {
|
|
219
|
-
if (typeof Float32Array !== "undefined")
|
|
220
|
-
(function() {
|
|
221
|
-
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
222
|
-
function writeFloat_f32_cpy(val, buf, pos) {
|
|
223
|
-
f32[0] = val;
|
|
224
|
-
buf[pos] = f8b[0];
|
|
225
|
-
buf[pos + 1] = f8b[1];
|
|
226
|
-
buf[pos + 2] = f8b[2];
|
|
227
|
-
buf[pos + 3] = f8b[3];
|
|
228
|
-
}
|
|
229
|
-
function writeFloat_f32_rev(val, buf, pos) {
|
|
230
|
-
f32[0] = val;
|
|
231
|
-
buf[pos] = f8b[3];
|
|
232
|
-
buf[pos + 1] = f8b[2];
|
|
233
|
-
buf[pos + 2] = f8b[1];
|
|
234
|
-
buf[pos + 3] = f8b[0];
|
|
235
|
-
}
|
|
236
|
-
exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
237
|
-
exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
238
|
-
function readFloat_f32_cpy(buf, pos) {
|
|
239
|
-
f8b[0] = buf[pos];
|
|
240
|
-
f8b[1] = buf[pos + 1];
|
|
241
|
-
f8b[2] = buf[pos + 2];
|
|
242
|
-
f8b[3] = buf[pos + 3];
|
|
243
|
-
return f32[0];
|
|
244
|
-
}
|
|
245
|
-
function readFloat_f32_rev(buf, pos) {
|
|
246
|
-
f8b[3] = buf[pos];
|
|
247
|
-
f8b[2] = buf[pos + 1];
|
|
248
|
-
f8b[1] = buf[pos + 2];
|
|
249
|
-
f8b[0] = buf[pos + 3];
|
|
250
|
-
return f32[0];
|
|
251
|
-
}
|
|
252
|
-
exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
253
|
-
exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
254
|
-
})();
|
|
255
|
-
else
|
|
256
|
-
(function() {
|
|
257
|
-
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
258
|
-
var sign = val < 0 ? 1 : 0;
|
|
259
|
-
if (sign)
|
|
260
|
-
val = -val;
|
|
261
|
-
if (val === 0)
|
|
262
|
-
writeUint(1 / val > 0 ? (
|
|
263
|
-
/* positive */
|
|
264
|
-
0
|
|
265
|
-
) : (
|
|
266
|
-
/* negative 0 */
|
|
267
|
-
2147483648
|
|
268
|
-
), buf, pos);
|
|
269
|
-
else if (isNaN(val))
|
|
270
|
-
writeUint(2143289344, buf, pos);
|
|
271
|
-
else if (val > 34028234663852886e22)
|
|
272
|
-
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
273
|
-
else if (val < 11754943508222875e-54)
|
|
274
|
-
writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
275
|
-
else {
|
|
276
|
-
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
277
|
-
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
281
|
-
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
282
|
-
function readFloat_ieee754(readUint, buf, pos) {
|
|
283
|
-
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
284
|
-
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
285
|
-
}
|
|
286
|
-
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
287
|
-
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
288
|
-
})();
|
|
289
|
-
if (typeof Float64Array !== "undefined")
|
|
290
|
-
(function() {
|
|
291
|
-
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
292
|
-
function writeDouble_f64_cpy(val, buf, pos) {
|
|
293
|
-
f64[0] = val;
|
|
294
|
-
buf[pos] = f8b[0];
|
|
295
|
-
buf[pos + 1] = f8b[1];
|
|
296
|
-
buf[pos + 2] = f8b[2];
|
|
297
|
-
buf[pos + 3] = f8b[3];
|
|
298
|
-
buf[pos + 4] = f8b[4];
|
|
299
|
-
buf[pos + 5] = f8b[5];
|
|
300
|
-
buf[pos + 6] = f8b[6];
|
|
301
|
-
buf[pos + 7] = f8b[7];
|
|
302
|
-
}
|
|
303
|
-
function writeDouble_f64_rev(val, buf, pos) {
|
|
304
|
-
f64[0] = val;
|
|
305
|
-
buf[pos] = f8b[7];
|
|
306
|
-
buf[pos + 1] = f8b[6];
|
|
307
|
-
buf[pos + 2] = f8b[5];
|
|
308
|
-
buf[pos + 3] = f8b[4];
|
|
309
|
-
buf[pos + 4] = f8b[3];
|
|
310
|
-
buf[pos + 5] = f8b[2];
|
|
311
|
-
buf[pos + 6] = f8b[1];
|
|
312
|
-
buf[pos + 7] = f8b[0];
|
|
313
|
-
}
|
|
314
|
-
exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
315
|
-
exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
316
|
-
function readDouble_f64_cpy(buf, pos) {
|
|
317
|
-
f8b[0] = buf[pos];
|
|
318
|
-
f8b[1] = buf[pos + 1];
|
|
319
|
-
f8b[2] = buf[pos + 2];
|
|
320
|
-
f8b[3] = buf[pos + 3];
|
|
321
|
-
f8b[4] = buf[pos + 4];
|
|
322
|
-
f8b[5] = buf[pos + 5];
|
|
323
|
-
f8b[6] = buf[pos + 6];
|
|
324
|
-
f8b[7] = buf[pos + 7];
|
|
325
|
-
return f64[0];
|
|
326
|
-
}
|
|
327
|
-
function readDouble_f64_rev(buf, pos) {
|
|
328
|
-
f8b[7] = buf[pos];
|
|
329
|
-
f8b[6] = buf[pos + 1];
|
|
330
|
-
f8b[5] = buf[pos + 2];
|
|
331
|
-
f8b[4] = buf[pos + 3];
|
|
332
|
-
f8b[3] = buf[pos + 4];
|
|
333
|
-
f8b[2] = buf[pos + 5];
|
|
334
|
-
f8b[1] = buf[pos + 6];
|
|
335
|
-
f8b[0] = buf[pos + 7];
|
|
336
|
-
return f64[0];
|
|
337
|
-
}
|
|
338
|
-
exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
339
|
-
exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
340
|
-
})();
|
|
341
|
-
else
|
|
342
|
-
(function() {
|
|
343
|
-
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
344
|
-
var sign = val < 0 ? 1 : 0;
|
|
345
|
-
if (sign)
|
|
346
|
-
val = -val;
|
|
347
|
-
if (val === 0) {
|
|
348
|
-
writeUint(0, buf, pos + off0);
|
|
349
|
-
writeUint(1 / val > 0 ? (
|
|
350
|
-
/* positive */
|
|
351
|
-
0
|
|
352
|
-
) : (
|
|
353
|
-
/* negative 0 */
|
|
354
|
-
2147483648
|
|
355
|
-
), buf, pos + off1);
|
|
356
|
-
} else if (isNaN(val)) {
|
|
357
|
-
writeUint(0, buf, pos + off0);
|
|
358
|
-
writeUint(2146959360, buf, pos + off1);
|
|
359
|
-
} else if (val > 17976931348623157e292) {
|
|
360
|
-
writeUint(0, buf, pos + off0);
|
|
361
|
-
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
362
|
-
} else {
|
|
363
|
-
var mantissa;
|
|
364
|
-
if (val < 22250738585072014e-324) {
|
|
365
|
-
mantissa = val / 5e-324;
|
|
366
|
-
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
367
|
-
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
368
|
-
} else {
|
|
369
|
-
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
370
|
-
if (exponent === 1024)
|
|
371
|
-
exponent = 1023;
|
|
372
|
-
mantissa = val * Math.pow(2, -exponent);
|
|
373
|
-
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
374
|
-
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
379
|
-
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
380
|
-
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
381
|
-
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
382
|
-
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
383
|
-
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
384
|
-
}
|
|
385
|
-
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
386
|
-
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
387
|
-
})();
|
|
388
|
-
return exports3;
|
|
389
|
-
}
|
|
390
|
-
function writeUintLE(val, buf, pos) {
|
|
391
|
-
buf[pos] = val & 255;
|
|
392
|
-
buf[pos + 1] = val >>> 8 & 255;
|
|
393
|
-
buf[pos + 2] = val >>> 16 & 255;
|
|
394
|
-
buf[pos + 3] = val >>> 24;
|
|
395
|
-
}
|
|
396
|
-
function writeUintBE(val, buf, pos) {
|
|
397
|
-
buf[pos] = val >>> 24;
|
|
398
|
-
buf[pos + 1] = val >>> 16 & 255;
|
|
399
|
-
buf[pos + 2] = val >>> 8 & 255;
|
|
400
|
-
buf[pos + 3] = val & 255;
|
|
401
|
-
}
|
|
402
|
-
function readUintLE(buf, pos) {
|
|
403
|
-
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
404
|
-
}
|
|
405
|
-
function readUintBE(buf, pos) {
|
|
406
|
-
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
// node_modules/@protobufjs/inquire/index.js
|
|
412
|
-
var require_inquire = __commonJS({
|
|
413
|
-
"node_modules/@protobufjs/inquire/index.js"(exports, module) {
|
|
414
|
-
"use strict";
|
|
415
|
-
module.exports = inquire;
|
|
416
|
-
function inquire(moduleName) {
|
|
417
|
-
try {
|
|
418
|
-
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
419
|
-
if (mod && (mod.length || Object.keys(mod).length))
|
|
420
|
-
return mod;
|
|
421
|
-
} catch (e) {
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
// node_modules/@protobufjs/utf8/index.js
|
|
429
|
-
var require_utf8 = __commonJS({
|
|
430
|
-
"node_modules/@protobufjs/utf8/index.js"(exports2) {
|
|
431
|
-
"use strict";
|
|
432
|
-
var utf8 = exports2;
|
|
433
|
-
utf8.length = function utf8_length(string) {
|
|
434
|
-
var len = 0, c = 0;
|
|
435
|
-
for (var i = 0; i < string.length; ++i) {
|
|
436
|
-
c = string.charCodeAt(i);
|
|
437
|
-
if (c < 128)
|
|
438
|
-
len += 1;
|
|
439
|
-
else if (c < 2048)
|
|
440
|
-
len += 2;
|
|
441
|
-
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
442
|
-
++i;
|
|
443
|
-
len += 4;
|
|
444
|
-
} else
|
|
445
|
-
len += 3;
|
|
446
|
-
}
|
|
447
|
-
return len;
|
|
448
|
-
};
|
|
449
|
-
utf8.read = function utf8_read(buffer, start, end) {
|
|
450
|
-
var len = end - start;
|
|
451
|
-
if (len < 1)
|
|
452
|
-
return "";
|
|
453
|
-
var parts = null, chunk = [], i = 0, t;
|
|
454
|
-
while (start < end) {
|
|
455
|
-
t = buffer[start++];
|
|
456
|
-
if (t < 128)
|
|
457
|
-
chunk[i++] = t;
|
|
458
|
-
else if (t > 191 && t < 224)
|
|
459
|
-
chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
460
|
-
else if (t > 239 && t < 365) {
|
|
461
|
-
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
462
|
-
chunk[i++] = 55296 + (t >> 10);
|
|
463
|
-
chunk[i++] = 56320 + (t & 1023);
|
|
464
|
-
} else
|
|
465
|
-
chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
466
|
-
if (i > 8191) {
|
|
467
|
-
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
468
|
-
i = 0;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
if (parts) {
|
|
472
|
-
if (i)
|
|
473
|
-
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
474
|
-
return parts.join("");
|
|
475
|
-
}
|
|
476
|
-
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
477
|
-
};
|
|
478
|
-
utf8.write = function utf8_write(string, buffer, offset) {
|
|
479
|
-
var start = offset, c1, c2;
|
|
480
|
-
for (var i = 0; i < string.length; ++i) {
|
|
481
|
-
c1 = string.charCodeAt(i);
|
|
482
|
-
if (c1 < 128) {
|
|
483
|
-
buffer[offset++] = c1;
|
|
484
|
-
} else if (c1 < 2048) {
|
|
485
|
-
buffer[offset++] = c1 >> 6 | 192;
|
|
486
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
487
|
-
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
488
|
-
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
489
|
-
++i;
|
|
490
|
-
buffer[offset++] = c1 >> 18 | 240;
|
|
491
|
-
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
492
|
-
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
493
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
494
|
-
} else {
|
|
495
|
-
buffer[offset++] = c1 >> 12 | 224;
|
|
496
|
-
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
497
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
return offset - start;
|
|
501
|
-
};
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
|
|
505
|
-
// node_modules/@protobufjs/pool/index.js
|
|
506
|
-
var require_pool = __commonJS({
|
|
507
|
-
"node_modules/@protobufjs/pool/index.js"(exports2, module2) {
|
|
508
|
-
"use strict";
|
|
509
|
-
module2.exports = pool;
|
|
510
|
-
function pool(alloc, slice, size) {
|
|
511
|
-
var SIZE = size || 8192;
|
|
512
|
-
var MAX = SIZE >>> 1;
|
|
513
|
-
var slab = null;
|
|
514
|
-
var offset = SIZE;
|
|
515
|
-
return function pool_alloc(size2) {
|
|
516
|
-
if (size2 < 1 || size2 > MAX)
|
|
517
|
-
return alloc(size2);
|
|
518
|
-
if (offset + size2 > SIZE) {
|
|
519
|
-
slab = alloc(SIZE);
|
|
520
|
-
offset = 0;
|
|
521
|
-
}
|
|
522
|
-
var buf = slice.call(slab, offset, offset += size2);
|
|
523
|
-
if (offset & 7)
|
|
524
|
-
offset = (offset | 7) + 1;
|
|
525
|
-
return buf;
|
|
526
|
-
};
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
|
|
531
|
-
// node_modules/protobufjs/src/util/longbits.js
|
|
532
|
-
var require_longbits = __commonJS({
|
|
533
|
-
"node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
|
534
|
-
"use strict";
|
|
535
|
-
module2.exports = LongBits;
|
|
536
|
-
var util = require_minimal();
|
|
537
|
-
function LongBits(lo, hi) {
|
|
538
|
-
this.lo = lo >>> 0;
|
|
539
|
-
this.hi = hi >>> 0;
|
|
540
|
-
}
|
|
541
|
-
var zero = LongBits.zero = new LongBits(0, 0);
|
|
542
|
-
zero.toNumber = function() {
|
|
543
|
-
return 0;
|
|
544
|
-
};
|
|
545
|
-
zero.zzEncode = zero.zzDecode = function() {
|
|
546
|
-
return this;
|
|
547
|
-
};
|
|
548
|
-
zero.length = function() {
|
|
549
|
-
return 1;
|
|
550
|
-
};
|
|
551
|
-
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
552
|
-
LongBits.fromNumber = function fromNumber(value) {
|
|
553
|
-
if (value === 0)
|
|
554
|
-
return zero;
|
|
555
|
-
var sign = value < 0;
|
|
556
|
-
if (sign)
|
|
557
|
-
value = -value;
|
|
558
|
-
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
559
|
-
if (sign) {
|
|
560
|
-
hi = ~hi >>> 0;
|
|
561
|
-
lo = ~lo >>> 0;
|
|
562
|
-
if (++lo > 4294967295) {
|
|
563
|
-
lo = 0;
|
|
564
|
-
if (++hi > 4294967295)
|
|
565
|
-
hi = 0;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
return new LongBits(lo, hi);
|
|
569
|
-
};
|
|
570
|
-
LongBits.from = function from(value) {
|
|
571
|
-
if (typeof value === "number")
|
|
572
|
-
return LongBits.fromNumber(value);
|
|
573
|
-
if (util.isString(value)) {
|
|
574
|
-
if (util.Long)
|
|
575
|
-
value = util.Long.fromString(value);
|
|
576
|
-
else
|
|
577
|
-
return LongBits.fromNumber(parseInt(value, 10));
|
|
578
|
-
}
|
|
579
|
-
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
580
|
-
};
|
|
581
|
-
LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
582
|
-
if (!unsigned && this.hi >>> 31) {
|
|
583
|
-
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
584
|
-
if (!lo)
|
|
585
|
-
hi = hi + 1 >>> 0;
|
|
586
|
-
return -(lo + hi * 4294967296);
|
|
587
|
-
}
|
|
588
|
-
return this.lo + this.hi * 4294967296;
|
|
589
|
-
};
|
|
590
|
-
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
591
|
-
return util.Long ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned)) : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
|
|
592
|
-
};
|
|
593
|
-
var charCodeAt = String.prototype.charCodeAt;
|
|
594
|
-
LongBits.fromHash = function fromHash(hash) {
|
|
595
|
-
if (hash === zeroHash)
|
|
596
|
-
return zero;
|
|
597
|
-
return new LongBits(
|
|
598
|
-
(charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
|
|
599
|
-
(charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
|
|
600
|
-
);
|
|
601
|
-
};
|
|
602
|
-
LongBits.prototype.toHash = function toHash() {
|
|
603
|
-
return String.fromCharCode(
|
|
604
|
-
this.lo & 255,
|
|
605
|
-
this.lo >>> 8 & 255,
|
|
606
|
-
this.lo >>> 16 & 255,
|
|
607
|
-
this.lo >>> 24,
|
|
608
|
-
this.hi & 255,
|
|
609
|
-
this.hi >>> 8 & 255,
|
|
610
|
-
this.hi >>> 16 & 255,
|
|
611
|
-
this.hi >>> 24
|
|
612
|
-
);
|
|
613
|
-
};
|
|
614
|
-
LongBits.prototype.zzEncode = function zzEncode() {
|
|
615
|
-
var mask = this.hi >> 31;
|
|
616
|
-
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
617
|
-
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
618
|
-
return this;
|
|
619
|
-
};
|
|
620
|
-
LongBits.prototype.zzDecode = function zzDecode() {
|
|
621
|
-
var mask = -(this.lo & 1);
|
|
622
|
-
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
623
|
-
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
624
|
-
return this;
|
|
625
|
-
};
|
|
626
|
-
LongBits.prototype.length = function length() {
|
|
627
|
-
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
628
|
-
return part2 === 0 ? part1 === 0 ? part0 < 16384 ? part0 < 128 ? 1 : 2 : part0 < 2097152 ? 3 : 4 : part1 < 16384 ? part1 < 128 ? 5 : 6 : part1 < 2097152 ? 7 : 8 : part2 < 128 ? 9 : 10;
|
|
629
|
-
};
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
|
|
633
|
-
// node_modules/protobufjs/src/util/minimal.js
|
|
634
|
-
var require_minimal = __commonJS({
|
|
635
|
-
"node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
|
636
|
-
"use strict";
|
|
637
|
-
var util = exports2;
|
|
638
|
-
util.asPromise = require_aspromise();
|
|
639
|
-
util.base64 = require_base64();
|
|
640
|
-
util.EventEmitter = require_eventemitter();
|
|
641
|
-
util.float = require_float();
|
|
642
|
-
util.inquire = require_inquire();
|
|
643
|
-
util.utf8 = require_utf8();
|
|
644
|
-
util.pool = require_pool();
|
|
645
|
-
util.LongBits = require_longbits();
|
|
646
|
-
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
647
|
-
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
648
|
-
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
649
|
-
/* istanbul ignore next */
|
|
650
|
-
[]
|
|
651
|
-
);
|
|
652
|
-
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
653
|
-
/* istanbul ignore next */
|
|
654
|
-
{}
|
|
655
|
-
);
|
|
656
|
-
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
657
|
-
function isInteger(value) {
|
|
658
|
-
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
659
|
-
};
|
|
660
|
-
util.isString = function isString(value) {
|
|
661
|
-
return typeof value === "string" || value instanceof String;
|
|
662
|
-
};
|
|
663
|
-
util.isObject = function isObject3(value) {
|
|
664
|
-
return value && typeof value === "object";
|
|
665
|
-
};
|
|
666
|
-
util.isset = /**
|
|
667
|
-
* Checks if a property on a message is considered to be present.
|
|
668
|
-
* @param {Object} obj Plain object or message instance
|
|
669
|
-
* @param {string} prop Property name
|
|
670
|
-
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
671
|
-
*/
|
|
672
|
-
util.isSet = function isSet6(obj, prop) {
|
|
673
|
-
var value = obj[prop];
|
|
674
|
-
if (value != null && obj.hasOwnProperty(prop))
|
|
675
|
-
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
676
|
-
return false;
|
|
677
|
-
};
|
|
678
|
-
util.Buffer = function() {
|
|
679
|
-
try {
|
|
680
|
-
var Buffer2 = util.inquire("buffer").Buffer;
|
|
681
|
-
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
682
|
-
/* istanbul ignore next */
|
|
683
|
-
null
|
|
684
|
-
);
|
|
685
|
-
} catch (e) {
|
|
686
|
-
return null;
|
|
687
|
-
}
|
|
688
|
-
}();
|
|
689
|
-
util._Buffer_from = null;
|
|
690
|
-
util._Buffer_allocUnsafe = null;
|
|
691
|
-
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
692
|
-
return typeof sizeOrArray === "number" ? util.Buffer ? util._Buffer_allocUnsafe(sizeOrArray) : new util.Array(sizeOrArray) : util.Buffer ? util._Buffer_from(sizeOrArray) : typeof Uint8Array === "undefined" ? sizeOrArray : new Uint8Array(sizeOrArray);
|
|
693
|
-
};
|
|
694
|
-
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
695
|
-
util.Long = /* istanbul ignore next */
|
|
696
|
-
util.global.dcodeIO && /* istanbul ignore next */
|
|
697
|
-
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
698
|
-
util.global.Long || util.inquire("long");
|
|
699
|
-
util.key2Re = /^true|false|0|1$/;
|
|
700
|
-
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
701
|
-
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
702
|
-
util.longToHash = function longToHash(value) {
|
|
703
|
-
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
704
|
-
};
|
|
705
|
-
util.longFromHash = function longFromHash(hash, unsigned) {
|
|
706
|
-
var bits = util.LongBits.fromHash(hash);
|
|
707
|
-
if (util.Long)
|
|
708
|
-
return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
709
|
-
return bits.toNumber(Boolean(unsigned));
|
|
710
|
-
};
|
|
711
|
-
function merge(dst, src, ifNotSet) {
|
|
712
|
-
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
713
|
-
if (dst[keys[i]] === void 0 || !ifNotSet)
|
|
714
|
-
dst[keys[i]] = src[keys[i]];
|
|
715
|
-
return dst;
|
|
716
|
-
}
|
|
717
|
-
util.merge = merge;
|
|
718
|
-
util.lcFirst = function lcFirst(str) {
|
|
719
|
-
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
720
|
-
};
|
|
721
|
-
function newError(name) {
|
|
722
|
-
function CustomError(message, properties) {
|
|
723
|
-
if (!(this instanceof CustomError))
|
|
724
|
-
return new CustomError(message, properties);
|
|
725
|
-
Object.defineProperty(this, "message", { get: function() {
|
|
726
|
-
return message;
|
|
727
|
-
} });
|
|
728
|
-
if (Error.captureStackTrace)
|
|
729
|
-
Error.captureStackTrace(this, CustomError);
|
|
730
|
-
else
|
|
731
|
-
Object.defineProperty(this, "stack", { value: new Error().stack || "" });
|
|
732
|
-
if (properties)
|
|
733
|
-
merge(this, properties);
|
|
734
|
-
}
|
|
735
|
-
CustomError.prototype = Object.create(Error.prototype, {
|
|
736
|
-
constructor: {
|
|
737
|
-
value: CustomError,
|
|
738
|
-
writable: true,
|
|
739
|
-
enumerable: false,
|
|
740
|
-
configurable: true
|
|
741
|
-
},
|
|
742
|
-
name: {
|
|
743
|
-
get: function get() {
|
|
744
|
-
return name;
|
|
745
|
-
},
|
|
746
|
-
set: void 0,
|
|
747
|
-
enumerable: false,
|
|
748
|
-
// configurable: false would accurately preserve the behavior of
|
|
749
|
-
// the original, but I'm guessing that was not intentional.
|
|
750
|
-
// For an actual error subclass, this property would
|
|
751
|
-
// be configurable.
|
|
752
|
-
configurable: true
|
|
753
|
-
},
|
|
754
|
-
toString: {
|
|
755
|
-
value: function value() {
|
|
756
|
-
return this.name + ": " + this.message;
|
|
757
|
-
},
|
|
758
|
-
writable: true,
|
|
759
|
-
enumerable: false,
|
|
760
|
-
configurable: true
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
return CustomError;
|
|
764
|
-
}
|
|
765
|
-
util.newError = newError;
|
|
766
|
-
util.ProtocolError = newError("ProtocolError");
|
|
767
|
-
util.oneOfGetter = function getOneOf(fieldNames) {
|
|
768
|
-
var fieldMap = {};
|
|
769
|
-
for (var i = 0; i < fieldNames.length; ++i)
|
|
770
|
-
fieldMap[fieldNames[i]] = 1;
|
|
771
|
-
return function() {
|
|
772
|
-
for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
|
|
773
|
-
if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
|
|
774
|
-
return keys[i2];
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
778
|
-
return function(name) {
|
|
779
|
-
for (var i = 0; i < fieldNames.length; ++i)
|
|
780
|
-
if (fieldNames[i] !== name)
|
|
781
|
-
delete this[fieldNames[i]];
|
|
782
|
-
};
|
|
783
|
-
};
|
|
784
|
-
util.toJSONOptions = {
|
|
785
|
-
longs: String,
|
|
786
|
-
enums: String,
|
|
787
|
-
bytes: String,
|
|
788
|
-
json: true
|
|
789
|
-
};
|
|
790
|
-
util._configure = function() {
|
|
791
|
-
var Buffer2 = util.Buffer;
|
|
792
|
-
if (!Buffer2) {
|
|
793
|
-
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
797
|
-
function Buffer_from(value, encoding) {
|
|
798
|
-
return new Buffer2(value, encoding);
|
|
799
|
-
};
|
|
800
|
-
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
801
|
-
function Buffer_allocUnsafe(size) {
|
|
802
|
-
return new Buffer2(size);
|
|
803
|
-
};
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
// node_modules/protobufjs/src/writer.js
|
|
809
|
-
var require_writer = __commonJS({
|
|
810
|
-
"node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
|
811
|
-
"use strict";
|
|
812
|
-
module2.exports = Writer;
|
|
813
|
-
var util = require_minimal();
|
|
814
|
-
var BufferWriter;
|
|
815
|
-
var LongBits = util.LongBits;
|
|
816
|
-
var base64 = util.base64;
|
|
817
|
-
var utf8 = util.utf8;
|
|
818
|
-
function Op(fn, len, val) {
|
|
819
|
-
this.fn = fn;
|
|
820
|
-
this.len = len;
|
|
821
|
-
this.next = void 0;
|
|
822
|
-
this.val = val;
|
|
823
|
-
}
|
|
824
|
-
function noop() {
|
|
825
|
-
}
|
|
826
|
-
function State(writer) {
|
|
827
|
-
this.head = writer.head;
|
|
828
|
-
this.tail = writer.tail;
|
|
829
|
-
this.len = writer.len;
|
|
830
|
-
this.next = writer.states;
|
|
831
|
-
}
|
|
832
|
-
function Writer() {
|
|
833
|
-
this.len = 0;
|
|
834
|
-
this.head = new Op(noop, 0, 0);
|
|
835
|
-
this.tail = this.head;
|
|
836
|
-
this.states = null;
|
|
837
|
-
}
|
|
838
|
-
var create = function create2() {
|
|
839
|
-
return util.Buffer ? function create_buffer_setup() {
|
|
840
|
-
return (Writer.create = function create_buffer() {
|
|
841
|
-
return new BufferWriter();
|
|
842
|
-
})();
|
|
843
|
-
} : function create_array() {
|
|
844
|
-
return new Writer();
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
Writer.create = create();
|
|
848
|
-
Writer.alloc = function alloc(size) {
|
|
849
|
-
return new util.Array(size);
|
|
850
|
-
};
|
|
851
|
-
if (util.Array !== Array)
|
|
852
|
-
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
853
|
-
Writer.prototype._push = function push(fn, len, val) {
|
|
854
|
-
this.tail = this.tail.next = new Op(fn, len, val);
|
|
855
|
-
this.len += len;
|
|
856
|
-
return this;
|
|
857
|
-
};
|
|
858
|
-
function writeByte(val, buf, pos) {
|
|
859
|
-
buf[pos] = val & 255;
|
|
860
|
-
}
|
|
861
|
-
function writeVarint32(val, buf, pos) {
|
|
862
|
-
while (val > 127) {
|
|
863
|
-
buf[pos++] = val & 127 | 128;
|
|
864
|
-
val >>>= 7;
|
|
865
|
-
}
|
|
866
|
-
buf[pos] = val;
|
|
867
|
-
}
|
|
868
|
-
function VarintOp(len, val) {
|
|
869
|
-
this.len = len;
|
|
870
|
-
this.next = void 0;
|
|
871
|
-
this.val = val;
|
|
872
|
-
}
|
|
873
|
-
VarintOp.prototype = Object.create(Op.prototype);
|
|
874
|
-
VarintOp.prototype.fn = writeVarint32;
|
|
875
|
-
Writer.prototype.uint32 = function write_uint32(value) {
|
|
876
|
-
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
877
|
-
(value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
|
|
878
|
-
value
|
|
879
|
-
)).len;
|
|
880
|
-
return this;
|
|
881
|
-
};
|
|
882
|
-
Writer.prototype.int32 = function write_int32(value) {
|
|
883
|
-
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
884
|
-
};
|
|
885
|
-
Writer.prototype.sint32 = function write_sint32(value) {
|
|
886
|
-
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
887
|
-
};
|
|
888
|
-
function writeVarint64(val, buf, pos) {
|
|
889
|
-
while (val.hi) {
|
|
890
|
-
buf[pos++] = val.lo & 127 | 128;
|
|
891
|
-
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
892
|
-
val.hi >>>= 7;
|
|
893
|
-
}
|
|
894
|
-
while (val.lo > 127) {
|
|
895
|
-
buf[pos++] = val.lo & 127 | 128;
|
|
896
|
-
val.lo = val.lo >>> 7;
|
|
897
|
-
}
|
|
898
|
-
buf[pos++] = val.lo;
|
|
899
|
-
}
|
|
900
|
-
Writer.prototype.uint64 = function write_uint64(value) {
|
|
901
|
-
var bits = LongBits.from(value);
|
|
902
|
-
return this._push(writeVarint64, bits.length(), bits);
|
|
903
|
-
};
|
|
904
|
-
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
905
|
-
Writer.prototype.sint64 = function write_sint64(value) {
|
|
906
|
-
var bits = LongBits.from(value).zzEncode();
|
|
907
|
-
return this._push(writeVarint64, bits.length(), bits);
|
|
908
|
-
};
|
|
909
|
-
Writer.prototype.bool = function write_bool(value) {
|
|
910
|
-
return this._push(writeByte, 1, value ? 1 : 0);
|
|
911
|
-
};
|
|
912
|
-
function writeFixed32(val, buf, pos) {
|
|
913
|
-
buf[pos] = val & 255;
|
|
914
|
-
buf[pos + 1] = val >>> 8 & 255;
|
|
915
|
-
buf[pos + 2] = val >>> 16 & 255;
|
|
916
|
-
buf[pos + 3] = val >>> 24;
|
|
917
|
-
}
|
|
918
|
-
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
919
|
-
return this._push(writeFixed32, 4, value >>> 0);
|
|
920
|
-
};
|
|
921
|
-
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
922
|
-
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
923
|
-
var bits = LongBits.from(value);
|
|
924
|
-
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
925
|
-
};
|
|
926
|
-
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
927
|
-
Writer.prototype.float = function write_float(value) {
|
|
928
|
-
return this._push(util.float.writeFloatLE, 4, value);
|
|
929
|
-
};
|
|
930
|
-
Writer.prototype.double = function write_double(value) {
|
|
931
|
-
return this._push(util.float.writeDoubleLE, 8, value);
|
|
932
|
-
};
|
|
933
|
-
var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
|
|
934
|
-
buf.set(val, pos);
|
|
935
|
-
} : function writeBytes_for(val, buf, pos) {
|
|
936
|
-
for (var i = 0; i < val.length; ++i)
|
|
937
|
-
buf[pos + i] = val[i];
|
|
938
|
-
};
|
|
939
|
-
Writer.prototype.bytes = function write_bytes(value) {
|
|
940
|
-
var len = value.length >>> 0;
|
|
941
|
-
if (!len)
|
|
942
|
-
return this._push(writeByte, 1, 0);
|
|
943
|
-
if (util.isString(value)) {
|
|
944
|
-
var buf = Writer.alloc(len = base64.length(value));
|
|
945
|
-
base64.decode(value, buf, 0);
|
|
946
|
-
value = buf;
|
|
947
|
-
}
|
|
948
|
-
return this.uint32(len)._push(writeBytes, len, value);
|
|
949
|
-
};
|
|
950
|
-
Writer.prototype.string = function write_string(value) {
|
|
951
|
-
var len = utf8.length(value);
|
|
952
|
-
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
953
|
-
};
|
|
954
|
-
Writer.prototype.fork = function fork() {
|
|
955
|
-
this.states = new State(this);
|
|
956
|
-
this.head = this.tail = new Op(noop, 0, 0);
|
|
957
|
-
this.len = 0;
|
|
958
|
-
return this;
|
|
959
|
-
};
|
|
960
|
-
Writer.prototype.reset = function reset() {
|
|
961
|
-
if (this.states) {
|
|
962
|
-
this.head = this.states.head;
|
|
963
|
-
this.tail = this.states.tail;
|
|
964
|
-
this.len = this.states.len;
|
|
965
|
-
this.states = this.states.next;
|
|
966
|
-
} else {
|
|
967
|
-
this.head = this.tail = new Op(noop, 0, 0);
|
|
968
|
-
this.len = 0;
|
|
969
|
-
}
|
|
970
|
-
return this;
|
|
971
|
-
};
|
|
972
|
-
Writer.prototype.ldelim = function ldelim() {
|
|
973
|
-
var head = this.head, tail = this.tail, len = this.len;
|
|
974
|
-
this.reset().uint32(len);
|
|
975
|
-
if (len) {
|
|
976
|
-
this.tail.next = head.next;
|
|
977
|
-
this.tail = tail;
|
|
978
|
-
this.len += len;
|
|
979
|
-
}
|
|
980
|
-
return this;
|
|
981
|
-
};
|
|
982
|
-
Writer.prototype.finish = function finish() {
|
|
983
|
-
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
984
|
-
while (head) {
|
|
985
|
-
head.fn(head.val, buf, pos);
|
|
986
|
-
pos += head.len;
|
|
987
|
-
head = head.next;
|
|
988
|
-
}
|
|
989
|
-
return buf;
|
|
990
|
-
};
|
|
991
|
-
Writer._configure = function(BufferWriter_) {
|
|
992
|
-
BufferWriter = BufferWriter_;
|
|
993
|
-
Writer.create = create();
|
|
994
|
-
BufferWriter._configure();
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
|
|
999
|
-
// node_modules/protobufjs/src/writer_buffer.js
|
|
1000
|
-
var require_writer_buffer = __commonJS({
|
|
1001
|
-
"node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
|
1002
|
-
"use strict";
|
|
1003
|
-
module2.exports = BufferWriter;
|
|
1004
|
-
var Writer = require_writer();
|
|
1005
|
-
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1006
|
-
var util = require_minimal();
|
|
1007
|
-
function BufferWriter() {
|
|
1008
|
-
Writer.call(this);
|
|
1009
|
-
}
|
|
1010
|
-
BufferWriter._configure = function() {
|
|
1011
|
-
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1012
|
-
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
|
|
1013
|
-
buf.set(val, pos);
|
|
1014
|
-
} : function writeBytesBuffer_copy(val, buf, pos) {
|
|
1015
|
-
if (val.copy)
|
|
1016
|
-
val.copy(buf, pos, 0, val.length);
|
|
1017
|
-
else
|
|
1018
|
-
for (var i = 0; i < val.length; )
|
|
1019
|
-
buf[pos++] = val[i++];
|
|
1020
|
-
};
|
|
1021
|
-
};
|
|
1022
|
-
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
1023
|
-
if (util.isString(value))
|
|
1024
|
-
value = util._Buffer_from(value, "base64");
|
|
1025
|
-
var len = value.length >>> 0;
|
|
1026
|
-
this.uint32(len);
|
|
1027
|
-
if (len)
|
|
1028
|
-
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1029
|
-
return this;
|
|
1030
|
-
};
|
|
1031
|
-
function writeStringBuffer(val, buf, pos) {
|
|
1032
|
-
if (val.length < 40)
|
|
1033
|
-
util.utf8.write(val, buf, pos);
|
|
1034
|
-
else if (buf.utf8Write)
|
|
1035
|
-
buf.utf8Write(val, pos);
|
|
1036
|
-
else
|
|
1037
|
-
buf.write(val, pos);
|
|
1038
|
-
}
|
|
1039
|
-
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
1040
|
-
var len = util.Buffer.byteLength(value);
|
|
1041
|
-
this.uint32(len);
|
|
1042
|
-
if (len)
|
|
1043
|
-
this._push(writeStringBuffer, len, value);
|
|
1044
|
-
return this;
|
|
1045
|
-
};
|
|
1046
|
-
BufferWriter._configure();
|
|
1047
|
-
}
|
|
1048
|
-
});
|
|
1049
|
-
|
|
1050
|
-
// node_modules/protobufjs/src/reader.js
|
|
1051
|
-
var require_reader = __commonJS({
|
|
1052
|
-
"node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
|
1053
|
-
"use strict";
|
|
1054
|
-
module2.exports = Reader;
|
|
1055
|
-
var util = require_minimal();
|
|
1056
|
-
var BufferReader;
|
|
1057
|
-
var LongBits = util.LongBits;
|
|
1058
|
-
var utf8 = util.utf8;
|
|
1059
|
-
function indexOutOfRange(reader, writeLength) {
|
|
1060
|
-
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1061
|
-
}
|
|
1062
|
-
function Reader(buffer) {
|
|
1063
|
-
this.buf = buffer;
|
|
1064
|
-
this.pos = 0;
|
|
1065
|
-
this.len = buffer.length;
|
|
1066
|
-
}
|
|
1067
|
-
var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
|
|
1068
|
-
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
1069
|
-
return new Reader(buffer);
|
|
1070
|
-
throw Error("illegal buffer");
|
|
1071
|
-
} : function create_array2(buffer) {
|
|
1072
|
-
if (Array.isArray(buffer))
|
|
1073
|
-
return new Reader(buffer);
|
|
1074
|
-
throw Error("illegal buffer");
|
|
1075
|
-
};
|
|
1076
|
-
var create = function create2() {
|
|
1077
|
-
return util.Buffer ? function create_buffer_setup(buffer) {
|
|
1078
|
-
return (Reader.create = function create_buffer(buffer2) {
|
|
1079
|
-
return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
|
|
1080
|
-
})(buffer);
|
|
1081
|
-
} : create_array;
|
|
1082
|
-
};
|
|
1083
|
-
Reader.create = create();
|
|
1084
|
-
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1085
|
-
util.Array.prototype.slice;
|
|
1086
|
-
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1087
|
-
var value = 4294967295;
|
|
1088
|
-
return function read_uint32() {
|
|
1089
|
-
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1090
|
-
if (this.buf[this.pos++] < 128)
|
|
1091
|
-
return value;
|
|
1092
|
-
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1093
|
-
if (this.buf[this.pos++] < 128)
|
|
1094
|
-
return value;
|
|
1095
|
-
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1096
|
-
if (this.buf[this.pos++] < 128)
|
|
1097
|
-
return value;
|
|
1098
|
-
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1099
|
-
if (this.buf[this.pos++] < 128)
|
|
1100
|
-
return value;
|
|
1101
|
-
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1102
|
-
if (this.buf[this.pos++] < 128)
|
|
1103
|
-
return value;
|
|
1104
|
-
if ((this.pos += 5) > this.len) {
|
|
1105
|
-
this.pos = this.len;
|
|
1106
|
-
throw indexOutOfRange(this, 10);
|
|
1107
|
-
}
|
|
1108
|
-
return value;
|
|
1109
|
-
};
|
|
1110
|
-
}();
|
|
1111
|
-
Reader.prototype.int32 = function read_int32() {
|
|
1112
|
-
return this.uint32() | 0;
|
|
1113
|
-
};
|
|
1114
|
-
Reader.prototype.sint32 = function read_sint32() {
|
|
1115
|
-
var value = this.uint32();
|
|
1116
|
-
return value >>> 1 ^ -(value & 1) | 0;
|
|
1117
|
-
};
|
|
1118
|
-
function readLongVarint() {
|
|
1119
|
-
var bits = new LongBits(0, 0);
|
|
1120
|
-
var i = 0;
|
|
1121
|
-
if (this.len - this.pos > 4) {
|
|
1122
|
-
for (; i < 4; ++i) {
|
|
1123
|
-
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1124
|
-
if (this.buf[this.pos++] < 128)
|
|
1125
|
-
return bits;
|
|
1126
|
-
}
|
|
1127
|
-
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1128
|
-
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1129
|
-
if (this.buf[this.pos++] < 128)
|
|
1130
|
-
return bits;
|
|
1131
|
-
i = 0;
|
|
1132
|
-
} else {
|
|
1133
|
-
for (; i < 3; ++i) {
|
|
1134
|
-
if (this.pos >= this.len)
|
|
1135
|
-
throw indexOutOfRange(this);
|
|
1136
|
-
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1137
|
-
if (this.buf[this.pos++] < 128)
|
|
1138
|
-
return bits;
|
|
1139
|
-
}
|
|
1140
|
-
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
1141
|
-
return bits;
|
|
1142
|
-
}
|
|
1143
|
-
if (this.len - this.pos > 4) {
|
|
1144
|
-
for (; i < 5; ++i) {
|
|
1145
|
-
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1146
|
-
if (this.buf[this.pos++] < 128)
|
|
1147
|
-
return bits;
|
|
1148
|
-
}
|
|
1149
|
-
} else {
|
|
1150
|
-
for (; i < 5; ++i) {
|
|
1151
|
-
if (this.pos >= this.len)
|
|
1152
|
-
throw indexOutOfRange(this);
|
|
1153
|
-
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
1154
|
-
if (this.buf[this.pos++] < 128)
|
|
1155
|
-
return bits;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
throw Error("invalid varint encoding");
|
|
1159
|
-
}
|
|
1160
|
-
Reader.prototype.bool = function read_bool() {
|
|
1161
|
-
return this.uint32() !== 0;
|
|
1162
|
-
};
|
|
1163
|
-
function readFixed32_end(buf, end) {
|
|
1164
|
-
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
1165
|
-
}
|
|
1166
|
-
Reader.prototype.fixed32 = function read_fixed32() {
|
|
1167
|
-
if (this.pos + 4 > this.len)
|
|
1168
|
-
throw indexOutOfRange(this, 4);
|
|
1169
|
-
return readFixed32_end(this.buf, this.pos += 4);
|
|
1170
|
-
};
|
|
1171
|
-
Reader.prototype.sfixed32 = function read_sfixed32() {
|
|
1172
|
-
if (this.pos + 4 > this.len)
|
|
1173
|
-
throw indexOutOfRange(this, 4);
|
|
1174
|
-
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
1175
|
-
};
|
|
1176
|
-
function readFixed64() {
|
|
1177
|
-
if (this.pos + 8 > this.len)
|
|
1178
|
-
throw indexOutOfRange(this, 8);
|
|
1179
|
-
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
1180
|
-
}
|
|
1181
|
-
Reader.prototype.float = function read_float() {
|
|
1182
|
-
if (this.pos + 4 > this.len)
|
|
1183
|
-
throw indexOutOfRange(this, 4);
|
|
1184
|
-
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
1185
|
-
this.pos += 4;
|
|
1186
|
-
return value;
|
|
1187
|
-
};
|
|
1188
|
-
Reader.prototype.double = function read_double() {
|
|
1189
|
-
if (this.pos + 8 > this.len)
|
|
1190
|
-
throw indexOutOfRange(this, 4);
|
|
1191
|
-
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
1192
|
-
this.pos += 8;
|
|
1193
|
-
return value;
|
|
1194
|
-
};
|
|
1195
|
-
Reader.prototype.bytes = function read_bytes() {
|
|
1196
|
-
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
1197
|
-
if (end > this.len)
|
|
1198
|
-
throw indexOutOfRange(this, length);
|
|
1199
|
-
this.pos += length;
|
|
1200
|
-
if (Array.isArray(this.buf))
|
|
1201
|
-
return this.buf.slice(start, end);
|
|
1202
|
-
return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
|
|
1203
|
-
};
|
|
1204
|
-
Reader.prototype.string = function read_string() {
|
|
1205
|
-
var bytes = this.bytes();
|
|
1206
|
-
return utf8.read(bytes, 0, bytes.length);
|
|
1207
|
-
};
|
|
1208
|
-
Reader.prototype.skip = function skip(length) {
|
|
1209
|
-
if (typeof length === "number") {
|
|
1210
|
-
if (this.pos + length > this.len)
|
|
1211
|
-
throw indexOutOfRange(this, length);
|
|
1212
|
-
this.pos += length;
|
|
1213
|
-
} else {
|
|
1214
|
-
do {
|
|
1215
|
-
if (this.pos >= this.len)
|
|
1216
|
-
throw indexOutOfRange(this);
|
|
1217
|
-
} while (this.buf[this.pos++] & 128);
|
|
1218
|
-
}
|
|
1219
|
-
return this;
|
|
1220
|
-
};
|
|
1221
|
-
Reader.prototype.skipType = function(wireType) {
|
|
1222
|
-
switch (wireType) {
|
|
1223
|
-
case 0:
|
|
1224
|
-
this.skip();
|
|
1225
|
-
break;
|
|
1226
|
-
case 1:
|
|
1227
|
-
this.skip(8);
|
|
1228
|
-
break;
|
|
1229
|
-
case 2:
|
|
1230
|
-
this.skip(this.uint32());
|
|
1231
|
-
break;
|
|
1232
|
-
case 3:
|
|
1233
|
-
while ((wireType = this.uint32() & 7) !== 4) {
|
|
1234
|
-
this.skipType(wireType);
|
|
1235
|
-
}
|
|
1236
|
-
break;
|
|
1237
|
-
case 5:
|
|
1238
|
-
this.skip(4);
|
|
1239
|
-
break;
|
|
1240
|
-
default:
|
|
1241
|
-
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
1242
|
-
}
|
|
1243
|
-
return this;
|
|
1244
|
-
};
|
|
1245
|
-
Reader._configure = function(BufferReader_) {
|
|
1246
|
-
BufferReader = BufferReader_;
|
|
1247
|
-
Reader.create = create();
|
|
1248
|
-
BufferReader._configure();
|
|
1249
|
-
var fn = util.Long ? "toLong" : (
|
|
1250
|
-
/* istanbul ignore next */
|
|
1251
|
-
"toNumber"
|
|
1252
|
-
);
|
|
1253
|
-
util.merge(Reader.prototype, {
|
|
1254
|
-
int64: function read_int64() {
|
|
1255
|
-
return readLongVarint.call(this)[fn](false);
|
|
1256
|
-
},
|
|
1257
|
-
uint64: function read_uint64() {
|
|
1258
|
-
return readLongVarint.call(this)[fn](true);
|
|
1259
|
-
},
|
|
1260
|
-
sint64: function read_sint64() {
|
|
1261
|
-
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
1262
|
-
},
|
|
1263
|
-
fixed64: function read_fixed64() {
|
|
1264
|
-
return readFixed64.call(this)[fn](true);
|
|
1265
|
-
},
|
|
1266
|
-
sfixed64: function read_sfixed64() {
|
|
1267
|
-
return readFixed64.call(this)[fn](false);
|
|
1268
|
-
}
|
|
1269
|
-
});
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
|
-
});
|
|
1273
|
-
|
|
1274
|
-
// node_modules/protobufjs/src/reader_buffer.js
|
|
1275
|
-
var require_reader_buffer = __commonJS({
|
|
1276
|
-
"node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
|
1277
|
-
"use strict";
|
|
1278
|
-
module2.exports = BufferReader;
|
|
1279
|
-
var Reader = require_reader();
|
|
1280
|
-
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
1281
|
-
var util = require_minimal();
|
|
1282
|
-
function BufferReader(buffer) {
|
|
1283
|
-
Reader.call(this, buffer);
|
|
1284
|
-
}
|
|
1285
|
-
BufferReader._configure = function() {
|
|
1286
|
-
if (util.Buffer)
|
|
1287
|
-
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
1288
|
-
};
|
|
1289
|
-
BufferReader.prototype.string = function read_string_buffer() {
|
|
1290
|
-
var len = this.uint32();
|
|
1291
|
-
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
1292
|
-
};
|
|
1293
|
-
BufferReader._configure();
|
|
1294
|
-
}
|
|
1295
|
-
});
|
|
1296
|
-
|
|
1297
|
-
// node_modules/protobufjs/src/rpc/service.js
|
|
1298
|
-
var require_service = __commonJS({
|
|
1299
|
-
"node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
|
1300
|
-
"use strict";
|
|
1301
|
-
module2.exports = Service;
|
|
1302
|
-
var util = require_minimal();
|
|
1303
|
-
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
1304
|
-
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
1305
|
-
if (typeof rpcImpl !== "function")
|
|
1306
|
-
throw TypeError("rpcImpl must be a function");
|
|
1307
|
-
util.EventEmitter.call(this);
|
|
1308
|
-
this.rpcImpl = rpcImpl;
|
|
1309
|
-
this.requestDelimited = Boolean(requestDelimited);
|
|
1310
|
-
this.responseDelimited = Boolean(responseDelimited);
|
|
1311
|
-
}
|
|
1312
|
-
Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
1313
|
-
if (!request)
|
|
1314
|
-
throw TypeError("request must be specified");
|
|
1315
|
-
var self2 = this;
|
|
1316
|
-
if (!callback)
|
|
1317
|
-
return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
|
|
1318
|
-
if (!self2.rpcImpl) {
|
|
1319
|
-
setTimeout(function() {
|
|
1320
|
-
callback(Error("already ended"));
|
|
1321
|
-
}, 0);
|
|
1322
|
-
return void 0;
|
|
1323
|
-
}
|
|
1324
|
-
try {
|
|
1325
|
-
return self2.rpcImpl(
|
|
1326
|
-
method,
|
|
1327
|
-
requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
|
|
1328
|
-
function rpcCallback(err, response) {
|
|
1329
|
-
if (err) {
|
|
1330
|
-
self2.emit("error", err, method);
|
|
1331
|
-
return callback(err);
|
|
1332
|
-
}
|
|
1333
|
-
if (response === null) {
|
|
1334
|
-
self2.end(
|
|
1335
|
-
/* endedByRPC */
|
|
1336
|
-
true
|
|
1337
|
-
);
|
|
1338
|
-
return void 0;
|
|
1339
|
-
}
|
|
1340
|
-
if (!(response instanceof responseCtor)) {
|
|
1341
|
-
try {
|
|
1342
|
-
response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
1343
|
-
} catch (err2) {
|
|
1344
|
-
self2.emit("error", err2, method);
|
|
1345
|
-
return callback(err2);
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
self2.emit("data", response, method);
|
|
1349
|
-
return callback(null, response);
|
|
1350
|
-
}
|
|
1351
|
-
);
|
|
1352
|
-
} catch (err) {
|
|
1353
|
-
self2.emit("error", err, method);
|
|
1354
|
-
setTimeout(function() {
|
|
1355
|
-
callback(err);
|
|
1356
|
-
}, 0);
|
|
1357
|
-
return void 0;
|
|
1358
|
-
}
|
|
1359
|
-
};
|
|
1360
|
-
Service.prototype.end = function end(endedByRPC) {
|
|
1361
|
-
if (this.rpcImpl) {
|
|
1362
|
-
if (!endedByRPC)
|
|
1363
|
-
this.rpcImpl(null, null, null);
|
|
1364
|
-
this.rpcImpl = null;
|
|
1365
|
-
this.emit("end").off();
|
|
1366
|
-
}
|
|
1367
|
-
return this;
|
|
1368
|
-
};
|
|
1369
|
-
}
|
|
1370
|
-
});
|
|
1371
|
-
|
|
1372
|
-
// node_modules/protobufjs/src/rpc.js
|
|
1373
|
-
var require_rpc = __commonJS({
|
|
1374
|
-
"node_modules/protobufjs/src/rpc.js"(exports2) {
|
|
1375
|
-
"use strict";
|
|
1376
|
-
var rpc = exports2;
|
|
1377
|
-
rpc.Service = require_service();
|
|
1378
|
-
}
|
|
1379
|
-
});
|
|
1380
|
-
|
|
1381
|
-
// node_modules/protobufjs/src/roots.js
|
|
1382
|
-
var require_roots = __commonJS({
|
|
1383
|
-
"node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
|
1384
|
-
"use strict";
|
|
1385
|
-
module2.exports = {};
|
|
1386
|
-
}
|
|
1387
|
-
});
|
|
1388
|
-
|
|
1389
|
-
// node_modules/protobufjs/src/index-minimal.js
|
|
1390
|
-
var require_index_minimal = __commonJS({
|
|
1391
|
-
"node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
|
1392
|
-
"use strict";
|
|
1393
|
-
var protobuf = exports2;
|
|
1394
|
-
protobuf.build = "minimal";
|
|
1395
|
-
protobuf.Writer = require_writer();
|
|
1396
|
-
protobuf.BufferWriter = require_writer_buffer();
|
|
1397
|
-
protobuf.Reader = require_reader();
|
|
1398
|
-
protobuf.BufferReader = require_reader_buffer();
|
|
1399
|
-
protobuf.util = require_minimal();
|
|
1400
|
-
protobuf.rpc = require_rpc();
|
|
1401
|
-
protobuf.roots = require_roots();
|
|
1402
|
-
protobuf.configure = configure;
|
|
1403
|
-
function configure() {
|
|
1404
|
-
protobuf.util._configure();
|
|
1405
|
-
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
1406
|
-
protobuf.Reader._configure(protobuf.BufferReader);
|
|
1407
|
-
}
|
|
1408
|
-
configure();
|
|
1409
|
-
}
|
|
1410
|
-
});
|
|
1411
|
-
|
|
1412
|
-
// node_modules/protobufjs/minimal.js
|
|
1413
|
-
var require_minimal2 = __commonJS({
|
|
1414
|
-
"node_modules/protobufjs/minimal.js"(exports2, module2) {
|
|
1415
|
-
"use strict";
|
|
1416
|
-
module2.exports = require_index_minimal();
|
|
1417
|
-
}
|
|
1418
|
-
});
|
|
1419
|
-
|
|
1420
|
-
// build/ts/client-store/account.ts
|
|
1421
|
-
var account_exports = {};
|
|
1422
|
-
__export(account_exports, {
|
|
1423
|
-
Account: () => Account,
|
|
1424
|
-
Account_AppVoter: () => Account_AppVoter,
|
|
1425
|
-
Account_Extra: () => Account_Extra,
|
|
1426
|
-
Account_MetaEntry: () => Account_MetaEntry,
|
|
1427
|
-
Account_WebEntity: () => Account_WebEntity,
|
|
1428
|
-
AccountsStore: () => AccountsStore
|
|
1429
|
-
});
|
|
1430
|
-
var import_minimal3 = __toESM(require_minimal2());
|
|
1431
|
-
|
|
1432
|
-
// build/ts/metadata/entity.ts
|
|
1433
|
-
var import_minimal = __toESM(require_minimal2());
|
|
1434
|
-
function createBaseEntityReference() {
|
|
1435
|
-
return { entityId: "", entryPoints: [] };
|
|
1436
|
-
}
|
|
1437
|
-
var EntityReference = {
|
|
1438
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
1439
|
-
if (message.entityId !== "") {
|
|
1440
|
-
writer.uint32(10).string(message.entityId);
|
|
1441
|
-
}
|
|
1442
|
-
for (const v of message.entryPoints) {
|
|
1443
|
-
writer.uint32(18).string(v);
|
|
1444
|
-
}
|
|
1445
|
-
return writer;
|
|
1446
|
-
},
|
|
1447
|
-
decode(input, length) {
|
|
1448
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
1449
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1450
|
-
const message = createBaseEntityReference();
|
|
1451
|
-
while (reader.pos < end) {
|
|
1452
|
-
const tag = reader.uint32();
|
|
1453
|
-
switch (tag >>> 3) {
|
|
1454
|
-
case 1:
|
|
1455
|
-
if (tag !== 10) {
|
|
1456
|
-
break;
|
|
1457
|
-
}
|
|
1458
|
-
message.entityId = reader.string();
|
|
1459
|
-
continue;
|
|
1460
|
-
case 2:
|
|
1461
|
-
if (tag !== 18) {
|
|
1462
|
-
break;
|
|
1463
|
-
}
|
|
1464
|
-
message.entryPoints.push(reader.string());
|
|
1465
|
-
continue;
|
|
1466
|
-
}
|
|
1467
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1468
|
-
break;
|
|
1469
|
-
}
|
|
1470
|
-
reader.skipType(tag & 7);
|
|
1471
|
-
}
|
|
1472
|
-
return message;
|
|
1473
|
-
},
|
|
1474
|
-
fromJSON(object) {
|
|
1475
|
-
return {
|
|
1476
|
-
entityId: isSet(object.entityId) ? String(object.entityId) : "",
|
|
1477
|
-
entryPoints: Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => String(e)) : []
|
|
1478
|
-
};
|
|
1479
|
-
},
|
|
1480
|
-
toJSON(message) {
|
|
1481
|
-
const obj = {};
|
|
1482
|
-
if (message.entityId !== "") {
|
|
1483
|
-
obj.entityId = message.entityId;
|
|
1484
|
-
}
|
|
1485
|
-
if (message.entryPoints?.length) {
|
|
1486
|
-
obj.entryPoints = message.entryPoints;
|
|
1487
|
-
}
|
|
1488
|
-
return obj;
|
|
1489
|
-
},
|
|
1490
|
-
create(base) {
|
|
1491
|
-
return EntityReference.fromPartial(base ?? {});
|
|
1492
|
-
},
|
|
1493
|
-
fromPartial(object) {
|
|
1494
|
-
const message = createBaseEntityReference();
|
|
1495
|
-
message.entityId = object.entityId ?? "";
|
|
1496
|
-
message.entryPoints = object.entryPoints?.map((e) => e) || [];
|
|
1497
|
-
return message;
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
function isSet(value) {
|
|
1501
|
-
return value !== null && value !== void 0;
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
// build/ts/client-store/wallet.ts
|
|
1505
|
-
var wallet_exports = {};
|
|
1506
|
-
__export(wallet_exports, {
|
|
1507
|
-
Wallet: () => Wallet,
|
|
1508
|
-
Wallet_AuthMethod: () => Wallet_AuthMethod,
|
|
1509
|
-
wallet_AuthMethodFromJSON: () => wallet_AuthMethodFromJSON,
|
|
1510
|
-
wallet_AuthMethodToJSON: () => wallet_AuthMethodToJSON
|
|
1511
|
-
});
|
|
1512
|
-
var import_minimal2 = __toESM(require_minimal2());
|
|
1513
|
-
var Wallet_AuthMethod = /* @__PURE__ */ ((Wallet_AuthMethod2) => {
|
|
1514
|
-
Wallet_AuthMethod2[Wallet_AuthMethod2["PASS"] = 0] = "PASS";
|
|
1515
|
-
Wallet_AuthMethod2[Wallet_AuthMethod2["PIN"] = 1] = "PIN";
|
|
1516
|
-
Wallet_AuthMethod2[Wallet_AuthMethod2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1517
|
-
return Wallet_AuthMethod2;
|
|
1518
|
-
})(Wallet_AuthMethod || {});
|
|
1519
|
-
function wallet_AuthMethodFromJSON(object) {
|
|
1520
|
-
switch (object) {
|
|
1521
|
-
case 0:
|
|
1522
|
-
case "PASS":
|
|
1523
|
-
return 0 /* PASS */;
|
|
1524
|
-
case 1:
|
|
1525
|
-
case "PIN":
|
|
1526
|
-
return 1 /* PIN */;
|
|
1527
|
-
case -1:
|
|
1528
|
-
case "UNRECOGNIZED":
|
|
1529
|
-
default:
|
|
1530
|
-
return -1 /* UNRECOGNIZED */;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
function wallet_AuthMethodToJSON(object) {
|
|
1534
|
-
switch (object) {
|
|
1535
|
-
case 0 /* PASS */:
|
|
1536
|
-
return "PASS";
|
|
1537
|
-
case 1 /* PIN */:
|
|
1538
|
-
return "PIN";
|
|
1539
|
-
case -1 /* UNRECOGNIZED */:
|
|
1540
|
-
default:
|
|
1541
|
-
return "UNRECOGNIZED";
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
function createBaseWallet() {
|
|
1545
|
-
return { encryptedMnemonic: new Uint8Array(0), hdPath: "", locale: "", authMethod: 0 };
|
|
1546
|
-
}
|
|
1547
|
-
var Wallet = {
|
|
1548
|
-
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
1549
|
-
if (message.encryptedMnemonic.length !== 0) {
|
|
1550
|
-
writer.uint32(10).bytes(message.encryptedMnemonic);
|
|
1551
|
-
}
|
|
1552
|
-
if (message.hdPath !== "") {
|
|
1553
|
-
writer.uint32(18).string(message.hdPath);
|
|
1554
|
-
}
|
|
1555
|
-
if (message.locale !== "") {
|
|
1556
|
-
writer.uint32(26).string(message.locale);
|
|
1557
|
-
}
|
|
1558
|
-
if (message.authMethod !== 0) {
|
|
1559
|
-
writer.uint32(32).int32(message.authMethod);
|
|
1560
|
-
}
|
|
1561
|
-
return writer;
|
|
1562
|
-
},
|
|
1563
|
-
decode(input, length) {
|
|
1564
|
-
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
1565
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1566
|
-
const message = createBaseWallet();
|
|
1567
|
-
while (reader.pos < end) {
|
|
1568
|
-
const tag = reader.uint32();
|
|
1569
|
-
switch (tag >>> 3) {
|
|
1570
|
-
case 1:
|
|
1571
|
-
if (tag !== 10) {
|
|
1572
|
-
break;
|
|
1573
|
-
}
|
|
1574
|
-
message.encryptedMnemonic = reader.bytes();
|
|
1575
|
-
continue;
|
|
1576
|
-
case 2:
|
|
1577
|
-
if (tag !== 18) {
|
|
1578
|
-
break;
|
|
1579
|
-
}
|
|
1580
|
-
message.hdPath = reader.string();
|
|
1581
|
-
continue;
|
|
1582
|
-
case 3:
|
|
1583
|
-
if (tag !== 26) {
|
|
1584
|
-
break;
|
|
1585
|
-
}
|
|
1586
|
-
message.locale = reader.string();
|
|
1587
|
-
continue;
|
|
1588
|
-
case 4:
|
|
1589
|
-
if (tag !== 32) {
|
|
1590
|
-
break;
|
|
1591
|
-
}
|
|
1592
|
-
message.authMethod = reader.int32();
|
|
1593
|
-
continue;
|
|
1594
|
-
}
|
|
1595
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1596
|
-
break;
|
|
1597
|
-
}
|
|
1598
|
-
reader.skipType(tag & 7);
|
|
1599
|
-
}
|
|
1600
|
-
return message;
|
|
1601
|
-
},
|
|
1602
|
-
fromJSON(object) {
|
|
1603
|
-
return {
|
|
1604
|
-
encryptedMnemonic: isSet2(object.encryptedMnemonic) ? bytesFromBase64(object.encryptedMnemonic) : new Uint8Array(0),
|
|
1605
|
-
hdPath: isSet2(object.hdPath) ? String(object.hdPath) : "",
|
|
1606
|
-
locale: isSet2(object.locale) ? String(object.locale) : "",
|
|
1607
|
-
authMethod: isSet2(object.authMethod) ? wallet_AuthMethodFromJSON(object.authMethod) : 0
|
|
1608
|
-
};
|
|
1609
|
-
},
|
|
1610
|
-
toJSON(message) {
|
|
1611
|
-
const obj = {};
|
|
1612
|
-
if (message.encryptedMnemonic.length !== 0) {
|
|
1613
|
-
obj.encryptedMnemonic = base64FromBytes(message.encryptedMnemonic);
|
|
1614
|
-
}
|
|
1615
|
-
if (message.hdPath !== "") {
|
|
1616
|
-
obj.hdPath = message.hdPath;
|
|
1617
|
-
}
|
|
1618
|
-
if (message.locale !== "") {
|
|
1619
|
-
obj.locale = message.locale;
|
|
1620
|
-
}
|
|
1621
|
-
if (message.authMethod !== 0) {
|
|
1622
|
-
obj.authMethod = wallet_AuthMethodToJSON(message.authMethod);
|
|
1623
|
-
}
|
|
1624
|
-
return obj;
|
|
1625
|
-
},
|
|
1626
|
-
create(base) {
|
|
1627
|
-
return Wallet.fromPartial(base ?? {});
|
|
1628
|
-
},
|
|
1629
|
-
fromPartial(object) {
|
|
1630
|
-
const message = createBaseWallet();
|
|
1631
|
-
message.encryptedMnemonic = object.encryptedMnemonic ?? new Uint8Array(0);
|
|
1632
|
-
message.hdPath = object.hdPath ?? "";
|
|
1633
|
-
message.locale = object.locale ?? "";
|
|
1634
|
-
message.authMethod = object.authMethod ?? 0;
|
|
1635
|
-
return message;
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
var tsProtoGlobalThis = (() => {
|
|
1639
|
-
if (typeof globalThis !== "undefined") {
|
|
1640
|
-
return globalThis;
|
|
1641
|
-
}
|
|
1642
|
-
if (typeof self !== "undefined") {
|
|
1643
|
-
return self;
|
|
1644
|
-
}
|
|
1645
|
-
if (typeof window !== "undefined") {
|
|
1646
|
-
return window;
|
|
1647
|
-
}
|
|
1648
|
-
if (typeof global !== "undefined") {
|
|
1649
|
-
return global;
|
|
1650
|
-
}
|
|
1651
|
-
throw "Unable to locate global object";
|
|
1652
|
-
})();
|
|
1653
|
-
function bytesFromBase64(b64) {
|
|
1654
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
1655
|
-
return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
|
|
1656
|
-
} else {
|
|
1657
|
-
const bin = tsProtoGlobalThis.atob(b64);
|
|
1658
|
-
const arr = new Uint8Array(bin.length);
|
|
1659
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
1660
|
-
arr[i] = bin.charCodeAt(i);
|
|
1661
|
-
}
|
|
1662
|
-
return arr;
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
function base64FromBytes(arr) {
|
|
1666
|
-
if (tsProtoGlobalThis.Buffer) {
|
|
1667
|
-
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
1668
|
-
} else {
|
|
1669
|
-
const bin = [];
|
|
1670
|
-
arr.forEach((byte) => {
|
|
1671
|
-
bin.push(String.fromCharCode(byte));
|
|
1672
|
-
});
|
|
1673
|
-
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
function isSet2(value) {
|
|
1677
|
-
return value !== null && value !== void 0;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
// build/ts/client-store/account.ts
|
|
1681
|
-
function createBaseAccountsStore() {
|
|
1682
|
-
return { items: [] };
|
|
1683
|
-
}
|
|
1684
|
-
var AccountsStore = {
|
|
1685
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
1686
|
-
for (const v of message.items) {
|
|
1687
|
-
Account.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1688
|
-
}
|
|
1689
|
-
return writer;
|
|
1690
|
-
},
|
|
1691
|
-
decode(input, length) {
|
|
1692
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
1693
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1694
|
-
const message = createBaseAccountsStore();
|
|
1695
|
-
while (reader.pos < end) {
|
|
1696
|
-
const tag = reader.uint32();
|
|
1697
|
-
switch (tag >>> 3) {
|
|
1698
|
-
case 1:
|
|
1699
|
-
if (tag !== 10) {
|
|
1700
|
-
break;
|
|
1701
|
-
}
|
|
1702
|
-
message.items.push(Account.decode(reader, reader.uint32()));
|
|
1703
|
-
continue;
|
|
1704
|
-
}
|
|
1705
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1706
|
-
break;
|
|
1707
|
-
}
|
|
1708
|
-
reader.skipType(tag & 7);
|
|
1709
|
-
}
|
|
1710
|
-
return message;
|
|
1711
|
-
},
|
|
1712
|
-
fromJSON(object) {
|
|
1713
|
-
return { items: Array.isArray(object?.items) ? object.items.map((e) => Account.fromJSON(e)) : [] };
|
|
1714
|
-
},
|
|
1715
|
-
toJSON(message) {
|
|
1716
|
-
const obj = {};
|
|
1717
|
-
if (message.items?.length) {
|
|
1718
|
-
obj.items = message.items.map((e) => Account.toJSON(e));
|
|
1719
|
-
}
|
|
1720
|
-
return obj;
|
|
1721
|
-
},
|
|
1722
|
-
create(base) {
|
|
1723
|
-
return AccountsStore.fromPartial(base ?? {});
|
|
1724
|
-
},
|
|
1725
|
-
fromPartial(object) {
|
|
1726
|
-
const message = createBaseAccountsStore();
|
|
1727
|
-
message.items = object.items?.map((e) => Account.fromPartial(e)) || [];
|
|
1728
|
-
return message;
|
|
1729
|
-
}
|
|
1730
|
-
};
|
|
1731
|
-
function createBaseAccount() {
|
|
1732
|
-
return { name: "", wallet: void 0, address: "", hasBackup: false, extra: void 0, meta: {} };
|
|
1733
|
-
}
|
|
1734
|
-
var Account = {
|
|
1735
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
1736
|
-
if (message.name !== "") {
|
|
1737
|
-
writer.uint32(10).string(message.name);
|
|
1738
|
-
}
|
|
1739
|
-
if (message.wallet !== void 0) {
|
|
1740
|
-
Wallet.encode(message.wallet, writer.uint32(18).fork()).ldelim();
|
|
1741
|
-
}
|
|
1742
|
-
if (message.address !== "") {
|
|
1743
|
-
writer.uint32(26).string(message.address);
|
|
1744
|
-
}
|
|
1745
|
-
if (message.hasBackup === true) {
|
|
1746
|
-
writer.uint32(32).bool(message.hasBackup);
|
|
1747
|
-
}
|
|
1748
|
-
if (message.extra !== void 0) {
|
|
1749
|
-
Account_Extra.encode(message.extra, writer.uint32(42).fork()).ldelim();
|
|
1750
|
-
}
|
|
1751
|
-
Object.entries(message.meta).forEach(([key, value]) => {
|
|
1752
|
-
Account_MetaEntry.encode({ key, value }, writer.uint32(802).fork()).ldelim();
|
|
1753
|
-
});
|
|
1754
|
-
return writer;
|
|
1755
|
-
},
|
|
1756
|
-
decode(input, length) {
|
|
1757
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
1758
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1759
|
-
const message = createBaseAccount();
|
|
1760
|
-
while (reader.pos < end) {
|
|
1761
|
-
const tag = reader.uint32();
|
|
1762
|
-
switch (tag >>> 3) {
|
|
1763
|
-
case 1:
|
|
1764
|
-
if (tag !== 10) {
|
|
1765
|
-
break;
|
|
1766
|
-
}
|
|
1767
|
-
message.name = reader.string();
|
|
1768
|
-
continue;
|
|
1769
|
-
case 2:
|
|
1770
|
-
if (tag !== 18) {
|
|
1771
|
-
break;
|
|
1772
|
-
}
|
|
1773
|
-
message.wallet = Wallet.decode(reader, reader.uint32());
|
|
1774
|
-
continue;
|
|
1775
|
-
case 3:
|
|
1776
|
-
if (tag !== 26) {
|
|
1777
|
-
break;
|
|
1778
|
-
}
|
|
1779
|
-
message.address = reader.string();
|
|
1780
|
-
continue;
|
|
1781
|
-
case 4:
|
|
1782
|
-
if (tag !== 32) {
|
|
1783
|
-
break;
|
|
1784
|
-
}
|
|
1785
|
-
message.hasBackup = reader.bool();
|
|
1786
|
-
continue;
|
|
1787
|
-
case 5:
|
|
1788
|
-
if (tag !== 42) {
|
|
1789
|
-
break;
|
|
1790
|
-
}
|
|
1791
|
-
message.extra = Account_Extra.decode(reader, reader.uint32());
|
|
1792
|
-
continue;
|
|
1793
|
-
case 100:
|
|
1794
|
-
if (tag !== 802) {
|
|
1795
|
-
break;
|
|
1796
|
-
}
|
|
1797
|
-
const entry100 = Account_MetaEntry.decode(reader, reader.uint32());
|
|
1798
|
-
if (entry100.value !== void 0) {
|
|
1799
|
-
message.meta[entry100.key] = entry100.value;
|
|
1800
|
-
}
|
|
1801
|
-
continue;
|
|
1802
|
-
}
|
|
1803
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1804
|
-
break;
|
|
1805
|
-
}
|
|
1806
|
-
reader.skipType(tag & 7);
|
|
1807
|
-
}
|
|
1808
|
-
return message;
|
|
1809
|
-
},
|
|
1810
|
-
fromJSON(object) {
|
|
1811
|
-
return {
|
|
1812
|
-
name: isSet3(object.name) ? String(object.name) : "",
|
|
1813
|
-
wallet: isSet3(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
|
|
1814
|
-
address: isSet3(object.address) ? String(object.address) : "",
|
|
1815
|
-
hasBackup: isSet3(object.hasBackup) ? Boolean(object.hasBackup) : false,
|
|
1816
|
-
extra: isSet3(object.extra) ? Account_Extra.fromJSON(object.extra) : void 0,
|
|
1817
|
-
meta: isObject(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
1818
|
-
acc[key] = String(value);
|
|
1819
|
-
return acc;
|
|
1820
|
-
}, {}) : {}
|
|
1821
|
-
};
|
|
1822
|
-
},
|
|
1823
|
-
toJSON(message) {
|
|
1824
|
-
const obj = {};
|
|
1825
|
-
if (message.name !== "") {
|
|
1826
|
-
obj.name = message.name;
|
|
1827
|
-
}
|
|
1828
|
-
if (message.wallet !== void 0) {
|
|
1829
|
-
obj.wallet = Wallet.toJSON(message.wallet);
|
|
1830
|
-
}
|
|
1831
|
-
if (message.address !== "") {
|
|
1832
|
-
obj.address = message.address;
|
|
1833
|
-
}
|
|
1834
|
-
if (message.hasBackup === true) {
|
|
1835
|
-
obj.hasBackup = message.hasBackup;
|
|
1836
|
-
}
|
|
1837
|
-
if (message.extra !== void 0) {
|
|
1838
|
-
obj.extra = Account_Extra.toJSON(message.extra);
|
|
1839
|
-
}
|
|
1840
|
-
if (message.meta) {
|
|
1841
|
-
const entries = Object.entries(message.meta);
|
|
1842
|
-
if (entries.length > 0) {
|
|
1843
|
-
obj.meta = {};
|
|
1844
|
-
entries.forEach(([k, v]) => {
|
|
1845
|
-
obj.meta[k] = v;
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
return obj;
|
|
1850
|
-
},
|
|
1851
|
-
create(base) {
|
|
1852
|
-
return Account.fromPartial(base ?? {});
|
|
1853
|
-
},
|
|
1854
|
-
fromPartial(object) {
|
|
1855
|
-
const message = createBaseAccount();
|
|
1856
|
-
message.name = object.name ?? "";
|
|
1857
|
-
message.wallet = object.wallet !== void 0 && object.wallet !== null ? Wallet.fromPartial(object.wallet) : void 0;
|
|
1858
|
-
message.address = object.address ?? "";
|
|
1859
|
-
message.hasBackup = object.hasBackup ?? false;
|
|
1860
|
-
message.extra = object.extra !== void 0 && object.extra !== null ? Account_Extra.fromPartial(object.extra) : void 0;
|
|
1861
|
-
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
1862
|
-
if (value !== void 0) {
|
|
1863
|
-
acc[key] = String(value);
|
|
1864
|
-
}
|
|
1865
|
-
return acc;
|
|
1866
|
-
}, {});
|
|
1867
|
-
return message;
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
function createBaseAccount_AppVoter() {
|
|
1871
|
-
return { appAnalyticsID: "", entities: [] };
|
|
1872
|
-
}
|
|
1873
|
-
var Account_AppVoter = {
|
|
1874
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
1875
|
-
if (message.appAnalyticsID !== "") {
|
|
1876
|
-
writer.uint32(10).string(message.appAnalyticsID);
|
|
1877
|
-
}
|
|
1878
|
-
for (const v of message.entities) {
|
|
1879
|
-
EntityReference.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1880
|
-
}
|
|
1881
|
-
return writer;
|
|
1882
|
-
},
|
|
1883
|
-
decode(input, length) {
|
|
1884
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
1885
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1886
|
-
const message = createBaseAccount_AppVoter();
|
|
1887
|
-
while (reader.pos < end) {
|
|
1888
|
-
const tag = reader.uint32();
|
|
1889
|
-
switch (tag >>> 3) {
|
|
1890
|
-
case 1:
|
|
1891
|
-
if (tag !== 10) {
|
|
1892
|
-
break;
|
|
1893
|
-
}
|
|
1894
|
-
message.appAnalyticsID = reader.string();
|
|
1895
|
-
continue;
|
|
1896
|
-
case 2:
|
|
1897
|
-
if (tag !== 18) {
|
|
1898
|
-
break;
|
|
1899
|
-
}
|
|
1900
|
-
message.entities.push(EntityReference.decode(reader, reader.uint32()));
|
|
1901
|
-
continue;
|
|
1902
|
-
}
|
|
1903
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1904
|
-
break;
|
|
1905
|
-
}
|
|
1906
|
-
reader.skipType(tag & 7);
|
|
1907
|
-
}
|
|
1908
|
-
return message;
|
|
1909
|
-
},
|
|
1910
|
-
fromJSON(object) {
|
|
1911
|
-
return {
|
|
1912
|
-
appAnalyticsID: isSet3(object.appAnalyticsID) ? String(object.appAnalyticsID) : "",
|
|
1913
|
-
entities: Array.isArray(object?.entities) ? object.entities.map((e) => EntityReference.fromJSON(e)) : []
|
|
1914
|
-
};
|
|
1915
|
-
},
|
|
1916
|
-
toJSON(message) {
|
|
1917
|
-
const obj = {};
|
|
1918
|
-
if (message.appAnalyticsID !== "") {
|
|
1919
|
-
obj.appAnalyticsID = message.appAnalyticsID;
|
|
1920
|
-
}
|
|
1921
|
-
if (message.entities?.length) {
|
|
1922
|
-
obj.entities = message.entities.map((e) => EntityReference.toJSON(e));
|
|
1923
|
-
}
|
|
1924
|
-
return obj;
|
|
1925
|
-
},
|
|
1926
|
-
create(base) {
|
|
1927
|
-
return Account_AppVoter.fromPartial(base ?? {});
|
|
1928
|
-
},
|
|
1929
|
-
fromPartial(object) {
|
|
1930
|
-
const message = createBaseAccount_AppVoter();
|
|
1931
|
-
message.appAnalyticsID = object.appAnalyticsID ?? "";
|
|
1932
|
-
message.entities = object.entities?.map((e) => EntityReference.fromPartial(e)) || [];
|
|
1933
|
-
return message;
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
function createBaseAccount_WebEntity() {
|
|
1937
|
-
return { webAnalyticsID: "" };
|
|
1938
|
-
}
|
|
1939
|
-
var Account_WebEntity = {
|
|
1940
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
1941
|
-
if (message.webAnalyticsID !== "") {
|
|
1942
|
-
writer.uint32(10).string(message.webAnalyticsID);
|
|
1943
|
-
}
|
|
1944
|
-
return writer;
|
|
1945
|
-
},
|
|
1946
|
-
decode(input, length) {
|
|
1947
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
1948
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
1949
|
-
const message = createBaseAccount_WebEntity();
|
|
1950
|
-
while (reader.pos < end) {
|
|
1951
|
-
const tag = reader.uint32();
|
|
1952
|
-
switch (tag >>> 3) {
|
|
1953
|
-
case 1:
|
|
1954
|
-
if (tag !== 10) {
|
|
1955
|
-
break;
|
|
1956
|
-
}
|
|
1957
|
-
message.webAnalyticsID = reader.string();
|
|
1958
|
-
continue;
|
|
1959
|
-
}
|
|
1960
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1961
|
-
break;
|
|
1962
|
-
}
|
|
1963
|
-
reader.skipType(tag & 7);
|
|
1964
|
-
}
|
|
1965
|
-
return message;
|
|
1966
|
-
},
|
|
1967
|
-
fromJSON(object) {
|
|
1968
|
-
return { webAnalyticsID: isSet3(object.webAnalyticsID) ? String(object.webAnalyticsID) : "" };
|
|
1969
|
-
},
|
|
1970
|
-
toJSON(message) {
|
|
1971
|
-
const obj = {};
|
|
1972
|
-
if (message.webAnalyticsID !== "") {
|
|
1973
|
-
obj.webAnalyticsID = message.webAnalyticsID;
|
|
1974
|
-
}
|
|
1975
|
-
return obj;
|
|
1976
|
-
},
|
|
1977
|
-
create(base) {
|
|
1978
|
-
return Account_WebEntity.fromPartial(base ?? {});
|
|
1979
|
-
},
|
|
1980
|
-
fromPartial(object) {
|
|
1981
|
-
const message = createBaseAccount_WebEntity();
|
|
1982
|
-
message.webAnalyticsID = object.webAnalyticsID ?? "";
|
|
1983
|
-
return message;
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
1986
|
-
function createBaseAccount_Extra() {
|
|
1987
|
-
return { content: void 0 };
|
|
1988
|
-
}
|
|
1989
|
-
var Account_Extra = {
|
|
1990
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
1991
|
-
switch (message.content?.$case) {
|
|
1992
|
-
case "appVoter":
|
|
1993
|
-
Account_AppVoter.encode(message.content.appVoter, writer.uint32(10).fork()).ldelim();
|
|
1994
|
-
break;
|
|
1995
|
-
case "webEntity":
|
|
1996
|
-
Account_WebEntity.encode(message.content.webEntity, writer.uint32(18).fork()).ldelim();
|
|
1997
|
-
break;
|
|
1998
|
-
}
|
|
1999
|
-
return writer;
|
|
2000
|
-
},
|
|
2001
|
-
decode(input, length) {
|
|
2002
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
2003
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2004
|
-
const message = createBaseAccount_Extra();
|
|
2005
|
-
while (reader.pos < end) {
|
|
2006
|
-
const tag = reader.uint32();
|
|
2007
|
-
switch (tag >>> 3) {
|
|
2008
|
-
case 1:
|
|
2009
|
-
if (tag !== 10) {
|
|
2010
|
-
break;
|
|
2011
|
-
}
|
|
2012
|
-
message.content = { $case: "appVoter", appVoter: Account_AppVoter.decode(reader, reader.uint32()) };
|
|
2013
|
-
continue;
|
|
2014
|
-
case 2:
|
|
2015
|
-
if (tag !== 18) {
|
|
2016
|
-
break;
|
|
2017
|
-
}
|
|
2018
|
-
message.content = { $case: "webEntity", webEntity: Account_WebEntity.decode(reader, reader.uint32()) };
|
|
2019
|
-
continue;
|
|
2020
|
-
}
|
|
2021
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2022
|
-
break;
|
|
2023
|
-
}
|
|
2024
|
-
reader.skipType(tag & 7);
|
|
2025
|
-
}
|
|
2026
|
-
return message;
|
|
2027
|
-
},
|
|
2028
|
-
fromJSON(object) {
|
|
2029
|
-
return {
|
|
2030
|
-
content: isSet3(object.appVoter) ? { $case: "appVoter", appVoter: Account_AppVoter.fromJSON(object.appVoter) } : isSet3(object.webEntity) ? { $case: "webEntity", webEntity: Account_WebEntity.fromJSON(object.webEntity) } : void 0
|
|
2031
|
-
};
|
|
2032
|
-
},
|
|
2033
|
-
toJSON(message) {
|
|
2034
|
-
const obj = {};
|
|
2035
|
-
if (message.content?.$case === "appVoter") {
|
|
2036
|
-
obj.appVoter = Account_AppVoter.toJSON(message.content.appVoter);
|
|
2037
|
-
}
|
|
2038
|
-
if (message.content?.$case === "webEntity") {
|
|
2039
|
-
obj.webEntity = Account_WebEntity.toJSON(message.content.webEntity);
|
|
2040
|
-
}
|
|
2041
|
-
return obj;
|
|
2042
|
-
},
|
|
2043
|
-
create(base) {
|
|
2044
|
-
return Account_Extra.fromPartial(base ?? {});
|
|
2045
|
-
},
|
|
2046
|
-
fromPartial(object) {
|
|
2047
|
-
const message = createBaseAccount_Extra();
|
|
2048
|
-
if (object.content?.$case === "appVoter" && object.content?.appVoter !== void 0 && object.content?.appVoter !== null) {
|
|
2049
|
-
message.content = { $case: "appVoter", appVoter: Account_AppVoter.fromPartial(object.content.appVoter) };
|
|
2050
|
-
}
|
|
2051
|
-
if (object.content?.$case === "webEntity" && object.content?.webEntity !== void 0 && object.content?.webEntity !== null) {
|
|
2052
|
-
message.content = { $case: "webEntity", webEntity: Account_WebEntity.fromPartial(object.content.webEntity) };
|
|
2053
|
-
}
|
|
2054
|
-
return message;
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
|
-
function createBaseAccount_MetaEntry() {
|
|
2058
|
-
return { key: "", value: "" };
|
|
2059
|
-
}
|
|
2060
|
-
var Account_MetaEntry = {
|
|
2061
|
-
encode(message, writer = import_minimal3.default.Writer.create()) {
|
|
2062
|
-
if (message.key !== "") {
|
|
2063
|
-
writer.uint32(10).string(message.key);
|
|
2064
|
-
}
|
|
2065
|
-
if (message.value !== "") {
|
|
2066
|
-
writer.uint32(18).string(message.value);
|
|
2067
|
-
}
|
|
2068
|
-
return writer;
|
|
2069
|
-
},
|
|
2070
|
-
decode(input, length) {
|
|
2071
|
-
const reader = input instanceof import_minimal3.default.Reader ? input : import_minimal3.default.Reader.create(input);
|
|
2072
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2073
|
-
const message = createBaseAccount_MetaEntry();
|
|
2074
|
-
while (reader.pos < end) {
|
|
2075
|
-
const tag = reader.uint32();
|
|
2076
|
-
switch (tag >>> 3) {
|
|
2077
|
-
case 1:
|
|
2078
|
-
if (tag !== 10) {
|
|
2079
|
-
break;
|
|
2080
|
-
}
|
|
2081
|
-
message.key = reader.string();
|
|
2082
|
-
continue;
|
|
2083
|
-
case 2:
|
|
2084
|
-
if (tag !== 18) {
|
|
2085
|
-
break;
|
|
2086
|
-
}
|
|
2087
|
-
message.value = reader.string();
|
|
2088
|
-
continue;
|
|
2089
|
-
}
|
|
2090
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2091
|
-
break;
|
|
2092
|
-
}
|
|
2093
|
-
reader.skipType(tag & 7);
|
|
2094
|
-
}
|
|
2095
|
-
return message;
|
|
2096
|
-
},
|
|
2097
|
-
fromJSON(object) {
|
|
2098
|
-
return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
|
|
2099
|
-
},
|
|
2100
|
-
toJSON(message) {
|
|
2101
|
-
const obj = {};
|
|
2102
|
-
if (message.key !== "") {
|
|
2103
|
-
obj.key = message.key;
|
|
2104
|
-
}
|
|
2105
|
-
if (message.value !== "") {
|
|
2106
|
-
obj.value = message.value;
|
|
2107
|
-
}
|
|
2108
|
-
return obj;
|
|
2109
|
-
},
|
|
2110
|
-
create(base) {
|
|
2111
|
-
return Account_MetaEntry.fromPartial(base ?? {});
|
|
2112
|
-
},
|
|
2113
|
-
fromPartial(object) {
|
|
2114
|
-
const message = createBaseAccount_MetaEntry();
|
|
2115
|
-
message.key = object.key ?? "";
|
|
2116
|
-
message.value = object.value ?? "";
|
|
2117
|
-
return message;
|
|
2118
|
-
}
|
|
2119
|
-
};
|
|
2120
|
-
function isObject(value) {
|
|
2121
|
-
return typeof value === "object" && value !== null;
|
|
2122
|
-
}
|
|
2123
|
-
function isSet3(value) {
|
|
2124
|
-
return value !== null && value !== void 0;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
// build/ts/client-store/backup.ts
|
|
2128
|
-
var backup_exports = {};
|
|
2129
|
-
__export(backup_exports, {
|
|
2130
|
-
WalletBackup: () => WalletBackup,
|
|
2131
|
-
WalletBackup_Recovery: () => WalletBackup_Recovery,
|
|
2132
|
-
WalletBackup_Recovery_QuestionEnum: () => WalletBackup_Recovery_QuestionEnum,
|
|
2133
|
-
walletBackup_Recovery_QuestionEnumFromJSON: () => walletBackup_Recovery_QuestionEnumFromJSON,
|
|
2134
|
-
walletBackup_Recovery_QuestionEnumToJSON: () => walletBackup_Recovery_QuestionEnumToJSON
|
|
2135
|
-
});
|
|
2136
|
-
var import_minimal4 = __toESM(require_minimal2());
|
|
2137
|
-
import Long from "long";
|
|
2138
|
-
var WalletBackup_Recovery_QuestionEnum = /* @__PURE__ */ ((WalletBackup_Recovery_QuestionEnum2) => {
|
|
2139
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_BOOK"] = 0] = "FAVORITE_BOOK";
|
|
2140
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FIRST_PET"] = 1] = "FIRST_PET";
|
|
2141
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["WHERE_HIGH_SCHOOL_COLLEGE"] = 2] = "WHERE_HIGH_SCHOOL_COLLEGE";
|
|
2142
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["CITY_OF_BIRTH"] = 3] = "CITY_OF_BIRTH";
|
|
2143
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_CHILDHOOD_FRIEND"] = 4] = "FAVORITE_CHILDHOOD_FRIEND";
|
|
2144
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["WHERE_FATHER_AND_MOTHER_MET"] = 5] = "WHERE_FATHER_AND_MOTHER_MET";
|
|
2145
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_MOVIE"] = 6] = "FAVORITE_MOVIE";
|
|
2146
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_SPORT_HIGH_SCHOOL"] = 7] = "FAVORITE_SPORT_HIGH_SCHOOL";
|
|
2147
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_TEACHER_HIGH_SCHOOL"] = 8] = "FAVORITE_TEACHER_HIGH_SCHOOL";
|
|
2148
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["FAVORITE_BAND"] = 9] = "FAVORITE_BAND";
|
|
2149
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["CHILDHOOD_SPORTS_HERO"] = 10] = "CHILDHOOD_SPORTS_HERO";
|
|
2150
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["COMPANY_FIRST_JOB"] = 11] = "COMPANY_FIRST_JOB";
|
|
2151
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["CHILD_NICKNAME"] = 12] = "CHILD_NICKNAME";
|
|
2152
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["NAME_FIRST_PARTNER"] = 13] = "NAME_FIRST_PARTNER";
|
|
2153
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["WHERE_MEET_PARTNER"] = 14] = "WHERE_MEET_PARTNER";
|
|
2154
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["MOTHER_MAIDEN_NAME"] = 15] = "MOTHER_MAIDEN_NAME";
|
|
2155
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["MATERNAL_GRANDMOTHER_FULL_NAME"] = 16] = "MATERNAL_GRANDMOTHER_FULL_NAME";
|
|
2156
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["PARENTAL_GRANDMOTHER_FULL_NAME"] = 17] = "PARENTAL_GRANDMOTHER_FULL_NAME";
|
|
2157
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["NAME_OLDEST_COUSIN"] = 18] = "NAME_OLDEST_COUSIN";
|
|
2158
|
-
WalletBackup_Recovery_QuestionEnum2[WalletBackup_Recovery_QuestionEnum2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2159
|
-
return WalletBackup_Recovery_QuestionEnum2;
|
|
2160
|
-
})(WalletBackup_Recovery_QuestionEnum || {});
|
|
2161
|
-
function walletBackup_Recovery_QuestionEnumFromJSON(object) {
|
|
2162
|
-
switch (object) {
|
|
2163
|
-
case 0:
|
|
2164
|
-
case "FAVORITE_BOOK":
|
|
2165
|
-
return 0 /* FAVORITE_BOOK */;
|
|
2166
|
-
case 1:
|
|
2167
|
-
case "FIRST_PET":
|
|
2168
|
-
return 1 /* FIRST_PET */;
|
|
2169
|
-
case 2:
|
|
2170
|
-
case "WHERE_HIGH_SCHOOL_COLLEGE":
|
|
2171
|
-
return 2 /* WHERE_HIGH_SCHOOL_COLLEGE */;
|
|
2172
|
-
case 3:
|
|
2173
|
-
case "CITY_OF_BIRTH":
|
|
2174
|
-
return 3 /* CITY_OF_BIRTH */;
|
|
2175
|
-
case 4:
|
|
2176
|
-
case "FAVORITE_CHILDHOOD_FRIEND":
|
|
2177
|
-
return 4 /* FAVORITE_CHILDHOOD_FRIEND */;
|
|
2178
|
-
case 5:
|
|
2179
|
-
case "WHERE_FATHER_AND_MOTHER_MET":
|
|
2180
|
-
return 5 /* WHERE_FATHER_AND_MOTHER_MET */;
|
|
2181
|
-
case 6:
|
|
2182
|
-
case "FAVORITE_MOVIE":
|
|
2183
|
-
return 6 /* FAVORITE_MOVIE */;
|
|
2184
|
-
case 7:
|
|
2185
|
-
case "FAVORITE_SPORT_HIGH_SCHOOL":
|
|
2186
|
-
return 7 /* FAVORITE_SPORT_HIGH_SCHOOL */;
|
|
2187
|
-
case 8:
|
|
2188
|
-
case "FAVORITE_TEACHER_HIGH_SCHOOL":
|
|
2189
|
-
return 8 /* FAVORITE_TEACHER_HIGH_SCHOOL */;
|
|
2190
|
-
case 9:
|
|
2191
|
-
case "FAVORITE_BAND":
|
|
2192
|
-
return 9 /* FAVORITE_BAND */;
|
|
2193
|
-
case 10:
|
|
2194
|
-
case "CHILDHOOD_SPORTS_HERO":
|
|
2195
|
-
return 10 /* CHILDHOOD_SPORTS_HERO */;
|
|
2196
|
-
case 11:
|
|
2197
|
-
case "COMPANY_FIRST_JOB":
|
|
2198
|
-
return 11 /* COMPANY_FIRST_JOB */;
|
|
2199
|
-
case 12:
|
|
2200
|
-
case "CHILD_NICKNAME":
|
|
2201
|
-
return 12 /* CHILD_NICKNAME */;
|
|
2202
|
-
case 13:
|
|
2203
|
-
case "NAME_FIRST_PARTNER":
|
|
2204
|
-
return 13 /* NAME_FIRST_PARTNER */;
|
|
2205
|
-
case 14:
|
|
2206
|
-
case "WHERE_MEET_PARTNER":
|
|
2207
|
-
return 14 /* WHERE_MEET_PARTNER */;
|
|
2208
|
-
case 15:
|
|
2209
|
-
case "MOTHER_MAIDEN_NAME":
|
|
2210
|
-
return 15 /* MOTHER_MAIDEN_NAME */;
|
|
2211
|
-
case 16:
|
|
2212
|
-
case "MATERNAL_GRANDMOTHER_FULL_NAME":
|
|
2213
|
-
return 16 /* MATERNAL_GRANDMOTHER_FULL_NAME */;
|
|
2214
|
-
case 17:
|
|
2215
|
-
case "PARENTAL_GRANDMOTHER_FULL_NAME":
|
|
2216
|
-
return 17 /* PARENTAL_GRANDMOTHER_FULL_NAME */;
|
|
2217
|
-
case 18:
|
|
2218
|
-
case "NAME_OLDEST_COUSIN":
|
|
2219
|
-
return 18 /* NAME_OLDEST_COUSIN */;
|
|
2220
|
-
case -1:
|
|
2221
|
-
case "UNRECOGNIZED":
|
|
2222
|
-
default:
|
|
2223
|
-
return -1 /* UNRECOGNIZED */;
|
|
2224
|
-
}
|
|
2225
|
-
}
|
|
2226
|
-
function walletBackup_Recovery_QuestionEnumToJSON(object) {
|
|
2227
|
-
switch (object) {
|
|
2228
|
-
case 0 /* FAVORITE_BOOK */:
|
|
2229
|
-
return "FAVORITE_BOOK";
|
|
2230
|
-
case 1 /* FIRST_PET */:
|
|
2231
|
-
return "FIRST_PET";
|
|
2232
|
-
case 2 /* WHERE_HIGH_SCHOOL_COLLEGE */:
|
|
2233
|
-
return "WHERE_HIGH_SCHOOL_COLLEGE";
|
|
2234
|
-
case 3 /* CITY_OF_BIRTH */:
|
|
2235
|
-
return "CITY_OF_BIRTH";
|
|
2236
|
-
case 4 /* FAVORITE_CHILDHOOD_FRIEND */:
|
|
2237
|
-
return "FAVORITE_CHILDHOOD_FRIEND";
|
|
2238
|
-
case 5 /* WHERE_FATHER_AND_MOTHER_MET */:
|
|
2239
|
-
return "WHERE_FATHER_AND_MOTHER_MET";
|
|
2240
|
-
case 6 /* FAVORITE_MOVIE */:
|
|
2241
|
-
return "FAVORITE_MOVIE";
|
|
2242
|
-
case 7 /* FAVORITE_SPORT_HIGH_SCHOOL */:
|
|
2243
|
-
return "FAVORITE_SPORT_HIGH_SCHOOL";
|
|
2244
|
-
case 8 /* FAVORITE_TEACHER_HIGH_SCHOOL */:
|
|
2245
|
-
return "FAVORITE_TEACHER_HIGH_SCHOOL";
|
|
2246
|
-
case 9 /* FAVORITE_BAND */:
|
|
2247
|
-
return "FAVORITE_BAND";
|
|
2248
|
-
case 10 /* CHILDHOOD_SPORTS_HERO */:
|
|
2249
|
-
return "CHILDHOOD_SPORTS_HERO";
|
|
2250
|
-
case 11 /* COMPANY_FIRST_JOB */:
|
|
2251
|
-
return "COMPANY_FIRST_JOB";
|
|
2252
|
-
case 12 /* CHILD_NICKNAME */:
|
|
2253
|
-
return "CHILD_NICKNAME";
|
|
2254
|
-
case 13 /* NAME_FIRST_PARTNER */:
|
|
2255
|
-
return "NAME_FIRST_PARTNER";
|
|
2256
|
-
case 14 /* WHERE_MEET_PARTNER */:
|
|
2257
|
-
return "WHERE_MEET_PARTNER";
|
|
2258
|
-
case 15 /* MOTHER_MAIDEN_NAME */:
|
|
2259
|
-
return "MOTHER_MAIDEN_NAME";
|
|
2260
|
-
case 16 /* MATERNAL_GRANDMOTHER_FULL_NAME */:
|
|
2261
|
-
return "MATERNAL_GRANDMOTHER_FULL_NAME";
|
|
2262
|
-
case 17 /* PARENTAL_GRANDMOTHER_FULL_NAME */:
|
|
2263
|
-
return "PARENTAL_GRANDMOTHER_FULL_NAME";
|
|
2264
|
-
case 18 /* NAME_OLDEST_COUSIN */:
|
|
2265
|
-
return "NAME_OLDEST_COUSIN";
|
|
2266
|
-
case -1 /* UNRECOGNIZED */:
|
|
2267
|
-
default:
|
|
2268
|
-
return "UNRECOGNIZED";
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2271
|
-
function createBaseWalletBackup() {
|
|
2272
|
-
return { name: "", timestamp: 0, wallet: void 0, passphraseRecovery: void 0 };
|
|
2273
|
-
}
|
|
2274
|
-
var WalletBackup = {
|
|
2275
|
-
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
2276
|
-
if (message.name !== "") {
|
|
2277
|
-
writer.uint32(10).string(message.name);
|
|
2278
|
-
}
|
|
2279
|
-
if (message.timestamp !== 0) {
|
|
2280
|
-
writer.uint32(16).uint64(message.timestamp);
|
|
2281
|
-
}
|
|
2282
|
-
if (message.wallet !== void 0) {
|
|
2283
|
-
Wallet.encode(message.wallet, writer.uint32(26).fork()).ldelim();
|
|
2284
|
-
}
|
|
2285
|
-
if (message.passphraseRecovery !== void 0) {
|
|
2286
|
-
WalletBackup_Recovery.encode(message.passphraseRecovery, writer.uint32(34).fork()).ldelim();
|
|
2287
|
-
}
|
|
2288
|
-
return writer;
|
|
2289
|
-
},
|
|
2290
|
-
decode(input, length) {
|
|
2291
|
-
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
2292
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2293
|
-
const message = createBaseWalletBackup();
|
|
2294
|
-
while (reader.pos < end) {
|
|
2295
|
-
const tag = reader.uint32();
|
|
2296
|
-
switch (tag >>> 3) {
|
|
2297
|
-
case 1:
|
|
2298
|
-
if (tag !== 10) {
|
|
2299
|
-
break;
|
|
2300
|
-
}
|
|
2301
|
-
message.name = reader.string();
|
|
2302
|
-
continue;
|
|
2303
|
-
case 2:
|
|
2304
|
-
if (tag !== 16) {
|
|
2305
|
-
break;
|
|
2306
|
-
}
|
|
2307
|
-
message.timestamp = longToNumber(reader.uint64());
|
|
2308
|
-
continue;
|
|
2309
|
-
case 3:
|
|
2310
|
-
if (tag !== 26) {
|
|
2311
|
-
break;
|
|
2312
|
-
}
|
|
2313
|
-
message.wallet = Wallet.decode(reader, reader.uint32());
|
|
2314
|
-
continue;
|
|
2315
|
-
case 4:
|
|
2316
|
-
if (tag !== 34) {
|
|
2317
|
-
break;
|
|
2318
|
-
}
|
|
2319
|
-
message.passphraseRecovery = WalletBackup_Recovery.decode(reader, reader.uint32());
|
|
2320
|
-
continue;
|
|
2321
|
-
}
|
|
2322
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2323
|
-
break;
|
|
2324
|
-
}
|
|
2325
|
-
reader.skipType(tag & 7);
|
|
2326
|
-
}
|
|
2327
|
-
return message;
|
|
2328
|
-
},
|
|
2329
|
-
fromJSON(object) {
|
|
2330
|
-
return {
|
|
2331
|
-
name: isSet4(object.name) ? String(object.name) : "",
|
|
2332
|
-
timestamp: isSet4(object.timestamp) ? Number(object.timestamp) : 0,
|
|
2333
|
-
wallet: isSet4(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
|
|
2334
|
-
passphraseRecovery: isSet4(object.passphraseRecovery) ? WalletBackup_Recovery.fromJSON(object.passphraseRecovery) : void 0
|
|
2335
|
-
};
|
|
2336
|
-
},
|
|
2337
|
-
toJSON(message) {
|
|
2338
|
-
const obj = {};
|
|
2339
|
-
if (message.name !== "") {
|
|
2340
|
-
obj.name = message.name;
|
|
2341
|
-
}
|
|
2342
|
-
if (message.timestamp !== 0) {
|
|
2343
|
-
obj.timestamp = Math.round(message.timestamp);
|
|
2344
|
-
}
|
|
2345
|
-
if (message.wallet !== void 0) {
|
|
2346
|
-
obj.wallet = Wallet.toJSON(message.wallet);
|
|
2347
|
-
}
|
|
2348
|
-
if (message.passphraseRecovery !== void 0) {
|
|
2349
|
-
obj.passphraseRecovery = WalletBackup_Recovery.toJSON(message.passphraseRecovery);
|
|
2350
|
-
}
|
|
2351
|
-
return obj;
|
|
2352
|
-
},
|
|
2353
|
-
create(base) {
|
|
2354
|
-
return WalletBackup.fromPartial(base ?? {});
|
|
2355
|
-
},
|
|
2356
|
-
fromPartial(object) {
|
|
2357
|
-
const message = createBaseWalletBackup();
|
|
2358
|
-
message.name = object.name ?? "";
|
|
2359
|
-
message.timestamp = object.timestamp ?? 0;
|
|
2360
|
-
message.wallet = object.wallet !== void 0 && object.wallet !== null ? Wallet.fromPartial(object.wallet) : void 0;
|
|
2361
|
-
message.passphraseRecovery = object.passphraseRecovery !== void 0 && object.passphraseRecovery !== null ? WalletBackup_Recovery.fromPartial(object.passphraseRecovery) : void 0;
|
|
2362
|
-
return message;
|
|
2363
|
-
}
|
|
2364
|
-
};
|
|
2365
|
-
function createBaseWalletBackup_Recovery() {
|
|
2366
|
-
return { questionIds: [], encryptedPassphrase: new Uint8Array(0) };
|
|
2367
|
-
}
|
|
2368
|
-
var WalletBackup_Recovery = {
|
|
2369
|
-
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
2370
|
-
writer.uint32(10).fork();
|
|
2371
|
-
for (const v of message.questionIds) {
|
|
2372
|
-
writer.int32(v);
|
|
2373
|
-
}
|
|
2374
|
-
writer.ldelim();
|
|
2375
|
-
if (message.encryptedPassphrase.length !== 0) {
|
|
2376
|
-
writer.uint32(18).bytes(message.encryptedPassphrase);
|
|
2377
|
-
}
|
|
2378
|
-
return writer;
|
|
2379
|
-
},
|
|
2380
|
-
decode(input, length) {
|
|
2381
|
-
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
2382
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2383
|
-
const message = createBaseWalletBackup_Recovery();
|
|
2384
|
-
while (reader.pos < end) {
|
|
2385
|
-
const tag = reader.uint32();
|
|
2386
|
-
switch (tag >>> 3) {
|
|
2387
|
-
case 1:
|
|
2388
|
-
if (tag === 8) {
|
|
2389
|
-
message.questionIds.push(reader.int32());
|
|
2390
|
-
continue;
|
|
2391
|
-
}
|
|
2392
|
-
if (tag === 10) {
|
|
2393
|
-
const end2 = reader.uint32() + reader.pos;
|
|
2394
|
-
while (reader.pos < end2) {
|
|
2395
|
-
message.questionIds.push(reader.int32());
|
|
2396
|
-
}
|
|
2397
|
-
continue;
|
|
2398
|
-
}
|
|
2399
|
-
break;
|
|
2400
|
-
case 2:
|
|
2401
|
-
if (tag !== 18) {
|
|
2402
|
-
break;
|
|
2403
|
-
}
|
|
2404
|
-
message.encryptedPassphrase = reader.bytes();
|
|
2405
|
-
continue;
|
|
2406
|
-
}
|
|
2407
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
reader.skipType(tag & 7);
|
|
2411
|
-
}
|
|
2412
|
-
return message;
|
|
2413
|
-
},
|
|
2414
|
-
fromJSON(object) {
|
|
2415
|
-
return {
|
|
2416
|
-
questionIds: Array.isArray(object?.questionIds) ? object.questionIds.map((e) => walletBackup_Recovery_QuestionEnumFromJSON(e)) : [],
|
|
2417
|
-
encryptedPassphrase: isSet4(object.encryptedPassphrase) ? bytesFromBase642(object.encryptedPassphrase) : new Uint8Array(0)
|
|
2418
|
-
};
|
|
2419
|
-
},
|
|
2420
|
-
toJSON(message) {
|
|
2421
|
-
const obj = {};
|
|
2422
|
-
if (message.questionIds?.length) {
|
|
2423
|
-
obj.questionIds = message.questionIds.map((e) => walletBackup_Recovery_QuestionEnumToJSON(e));
|
|
2424
|
-
}
|
|
2425
|
-
if (message.encryptedPassphrase.length !== 0) {
|
|
2426
|
-
obj.encryptedPassphrase = base64FromBytes2(message.encryptedPassphrase);
|
|
2427
|
-
}
|
|
2428
|
-
return obj;
|
|
2429
|
-
},
|
|
2430
|
-
create(base) {
|
|
2431
|
-
return WalletBackup_Recovery.fromPartial(base ?? {});
|
|
2432
|
-
},
|
|
2433
|
-
fromPartial(object) {
|
|
2434
|
-
const message = createBaseWalletBackup_Recovery();
|
|
2435
|
-
message.questionIds = object.questionIds?.map((e) => e) || [];
|
|
2436
|
-
message.encryptedPassphrase = object.encryptedPassphrase ?? new Uint8Array(0);
|
|
2437
|
-
return message;
|
|
2438
|
-
}
|
|
2439
|
-
};
|
|
2440
|
-
var tsProtoGlobalThis2 = (() => {
|
|
2441
|
-
if (typeof globalThis !== "undefined") {
|
|
2442
|
-
return globalThis;
|
|
2443
|
-
}
|
|
2444
|
-
if (typeof self !== "undefined") {
|
|
2445
|
-
return self;
|
|
2446
|
-
}
|
|
2447
|
-
if (typeof window !== "undefined") {
|
|
2448
|
-
return window;
|
|
2449
|
-
}
|
|
2450
|
-
if (typeof global !== "undefined") {
|
|
2451
|
-
return global;
|
|
2452
|
-
}
|
|
2453
|
-
throw "Unable to locate global object";
|
|
2454
|
-
})();
|
|
2455
|
-
function bytesFromBase642(b64) {
|
|
2456
|
-
if (tsProtoGlobalThis2.Buffer) {
|
|
2457
|
-
return Uint8Array.from(tsProtoGlobalThis2.Buffer.from(b64, "base64"));
|
|
2458
|
-
} else {
|
|
2459
|
-
const bin = tsProtoGlobalThis2.atob(b64);
|
|
2460
|
-
const arr = new Uint8Array(bin.length);
|
|
2461
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
2462
|
-
arr[i] = bin.charCodeAt(i);
|
|
2463
|
-
}
|
|
2464
|
-
return arr;
|
|
2465
|
-
}
|
|
2466
|
-
}
|
|
2467
|
-
function base64FromBytes2(arr) {
|
|
2468
|
-
if (tsProtoGlobalThis2.Buffer) {
|
|
2469
|
-
return tsProtoGlobalThis2.Buffer.from(arr).toString("base64");
|
|
2470
|
-
} else {
|
|
2471
|
-
const bin = [];
|
|
2472
|
-
arr.forEach((byte) => {
|
|
2473
|
-
bin.push(String.fromCharCode(byte));
|
|
2474
|
-
});
|
|
2475
|
-
return tsProtoGlobalThis2.btoa(bin.join(""));
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
function longToNumber(long) {
|
|
2479
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2480
|
-
throw new tsProtoGlobalThis2.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2481
|
-
}
|
|
2482
|
-
return long.toNumber();
|
|
2483
|
-
}
|
|
2484
|
-
if (import_minimal4.default.util.Long !== Long) {
|
|
2485
|
-
import_minimal4.default.util.Long = Long;
|
|
2486
|
-
import_minimal4.default.configure();
|
|
2487
|
-
}
|
|
2488
|
-
function isSet4(value) {
|
|
2489
|
-
return value !== null && value !== void 0;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
// build/ts/client-store/gateway.ts
|
|
2493
|
-
var gateway_exports = {};
|
|
2494
|
-
__export(gateway_exports, {
|
|
2495
|
-
BootNodeGateways: () => BootNodeGateways,
|
|
2496
|
-
BootNodeGateways_MetaEntry: () => BootNodeGateways_MetaEntry,
|
|
2497
|
-
BootNodeGateways_NetworkNodes: () => BootNodeGateways_NetworkNodes,
|
|
2498
|
-
BootNodeGateways_NetworkNodes_DVote: () => BootNodeGateways_NetworkNodes_DVote,
|
|
2499
|
-
BootNodeGateways_NetworkNodes_Web3: () => BootNodeGateways_NetworkNodes_Web3
|
|
2500
|
-
});
|
|
2501
|
-
var import_minimal5 = __toESM(require_minimal2());
|
|
2502
|
-
function createBaseBootNodeGateways() {
|
|
2503
|
-
return { homestead: void 0, goerli: void 0, xdai: void 0, sokol: void 0, rinkeby: void 0, meta: {} };
|
|
2504
|
-
}
|
|
2505
|
-
var BootNodeGateways = {
|
|
2506
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
2507
|
-
if (message.homestead !== void 0) {
|
|
2508
|
-
BootNodeGateways_NetworkNodes.encode(message.homestead, writer.uint32(10).fork()).ldelim();
|
|
2509
|
-
}
|
|
2510
|
-
if (message.goerli !== void 0) {
|
|
2511
|
-
BootNodeGateways_NetworkNodes.encode(message.goerli, writer.uint32(18).fork()).ldelim();
|
|
2512
|
-
}
|
|
2513
|
-
if (message.xdai !== void 0) {
|
|
2514
|
-
BootNodeGateways_NetworkNodes.encode(message.xdai, writer.uint32(26).fork()).ldelim();
|
|
2515
|
-
}
|
|
2516
|
-
if (message.sokol !== void 0) {
|
|
2517
|
-
BootNodeGateways_NetworkNodes.encode(message.sokol, writer.uint32(34).fork()).ldelim();
|
|
2518
|
-
}
|
|
2519
|
-
if (message.rinkeby !== void 0) {
|
|
2520
|
-
BootNodeGateways_NetworkNodes.encode(message.rinkeby, writer.uint32(42).fork()).ldelim();
|
|
2521
|
-
}
|
|
2522
|
-
Object.entries(message.meta).forEach(([key, value]) => {
|
|
2523
|
-
BootNodeGateways_MetaEntry.encode({ key, value }, writer.uint32(802).fork()).ldelim();
|
|
2524
|
-
});
|
|
2525
|
-
return writer;
|
|
2526
|
-
},
|
|
2527
|
-
decode(input, length) {
|
|
2528
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
2529
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2530
|
-
const message = createBaseBootNodeGateways();
|
|
2531
|
-
while (reader.pos < end) {
|
|
2532
|
-
const tag = reader.uint32();
|
|
2533
|
-
switch (tag >>> 3) {
|
|
2534
|
-
case 1:
|
|
2535
|
-
if (tag !== 10) {
|
|
2536
|
-
break;
|
|
2537
|
-
}
|
|
2538
|
-
message.homestead = BootNodeGateways_NetworkNodes.decode(reader, reader.uint32());
|
|
2539
|
-
continue;
|
|
2540
|
-
case 2:
|
|
2541
|
-
if (tag !== 18) {
|
|
2542
|
-
break;
|
|
2543
|
-
}
|
|
2544
|
-
message.goerli = BootNodeGateways_NetworkNodes.decode(reader, reader.uint32());
|
|
2545
|
-
continue;
|
|
2546
|
-
case 3:
|
|
2547
|
-
if (tag !== 26) {
|
|
2548
|
-
break;
|
|
2549
|
-
}
|
|
2550
|
-
message.xdai = BootNodeGateways_NetworkNodes.decode(reader, reader.uint32());
|
|
2551
|
-
continue;
|
|
2552
|
-
case 4:
|
|
2553
|
-
if (tag !== 34) {
|
|
2554
|
-
break;
|
|
2555
|
-
}
|
|
2556
|
-
message.sokol = BootNodeGateways_NetworkNodes.decode(reader, reader.uint32());
|
|
2557
|
-
continue;
|
|
2558
|
-
case 5:
|
|
2559
|
-
if (tag !== 42) {
|
|
2560
|
-
break;
|
|
2561
|
-
}
|
|
2562
|
-
message.rinkeby = BootNodeGateways_NetworkNodes.decode(reader, reader.uint32());
|
|
2563
|
-
continue;
|
|
2564
|
-
case 100:
|
|
2565
|
-
if (tag !== 802) {
|
|
2566
|
-
break;
|
|
2567
|
-
}
|
|
2568
|
-
const entry100 = BootNodeGateways_MetaEntry.decode(reader, reader.uint32());
|
|
2569
|
-
if (entry100.value !== void 0) {
|
|
2570
|
-
message.meta[entry100.key] = entry100.value;
|
|
2571
|
-
}
|
|
2572
|
-
continue;
|
|
2573
|
-
}
|
|
2574
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2575
|
-
break;
|
|
2576
|
-
}
|
|
2577
|
-
reader.skipType(tag & 7);
|
|
2578
|
-
}
|
|
2579
|
-
return message;
|
|
2580
|
-
},
|
|
2581
|
-
fromJSON(object) {
|
|
2582
|
-
return {
|
|
2583
|
-
homestead: isSet5(object.homestead) ? BootNodeGateways_NetworkNodes.fromJSON(object.homestead) : void 0,
|
|
2584
|
-
goerli: isSet5(object.goerli) ? BootNodeGateways_NetworkNodes.fromJSON(object.goerli) : void 0,
|
|
2585
|
-
xdai: isSet5(object.xdai) ? BootNodeGateways_NetworkNodes.fromJSON(object.xdai) : void 0,
|
|
2586
|
-
sokol: isSet5(object.sokol) ? BootNodeGateways_NetworkNodes.fromJSON(object.sokol) : void 0,
|
|
2587
|
-
rinkeby: isSet5(object.rinkeby) ? BootNodeGateways_NetworkNodes.fromJSON(object.rinkeby) : void 0,
|
|
2588
|
-
meta: isObject2(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
|
|
2589
|
-
acc[key] = String(value);
|
|
2590
|
-
return acc;
|
|
2591
|
-
}, {}) : {}
|
|
2592
|
-
};
|
|
2593
|
-
},
|
|
2594
|
-
toJSON(message) {
|
|
2595
|
-
const obj = {};
|
|
2596
|
-
if (message.homestead !== void 0) {
|
|
2597
|
-
obj.homestead = BootNodeGateways_NetworkNodes.toJSON(message.homestead);
|
|
2598
|
-
}
|
|
2599
|
-
if (message.goerli !== void 0) {
|
|
2600
|
-
obj.goerli = BootNodeGateways_NetworkNodes.toJSON(message.goerli);
|
|
2601
|
-
}
|
|
2602
|
-
if (message.xdai !== void 0) {
|
|
2603
|
-
obj.xdai = BootNodeGateways_NetworkNodes.toJSON(message.xdai);
|
|
2604
|
-
}
|
|
2605
|
-
if (message.sokol !== void 0) {
|
|
2606
|
-
obj.sokol = BootNodeGateways_NetworkNodes.toJSON(message.sokol);
|
|
2607
|
-
}
|
|
2608
|
-
if (message.rinkeby !== void 0) {
|
|
2609
|
-
obj.rinkeby = BootNodeGateways_NetworkNodes.toJSON(message.rinkeby);
|
|
2610
|
-
}
|
|
2611
|
-
if (message.meta) {
|
|
2612
|
-
const entries = Object.entries(message.meta);
|
|
2613
|
-
if (entries.length > 0) {
|
|
2614
|
-
obj.meta = {};
|
|
2615
|
-
entries.forEach(([k, v]) => {
|
|
2616
|
-
obj.meta[k] = v;
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
return obj;
|
|
2621
|
-
},
|
|
2622
|
-
create(base) {
|
|
2623
|
-
return BootNodeGateways.fromPartial(base ?? {});
|
|
2624
|
-
},
|
|
2625
|
-
fromPartial(object) {
|
|
2626
|
-
const message = createBaseBootNodeGateways();
|
|
2627
|
-
message.homestead = object.homestead !== void 0 && object.homestead !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.homestead) : void 0;
|
|
2628
|
-
message.goerli = object.goerli !== void 0 && object.goerli !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.goerli) : void 0;
|
|
2629
|
-
message.xdai = object.xdai !== void 0 && object.xdai !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.xdai) : void 0;
|
|
2630
|
-
message.sokol = object.sokol !== void 0 && object.sokol !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.sokol) : void 0;
|
|
2631
|
-
message.rinkeby = object.rinkeby !== void 0 && object.rinkeby !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.rinkeby) : void 0;
|
|
2632
|
-
message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
|
|
2633
|
-
if (value !== void 0) {
|
|
2634
|
-
acc[key] = String(value);
|
|
2635
|
-
}
|
|
2636
|
-
return acc;
|
|
2637
|
-
}, {});
|
|
2638
|
-
return message;
|
|
2639
|
-
}
|
|
2640
|
-
};
|
|
2641
|
-
function createBaseBootNodeGateways_NetworkNodes() {
|
|
2642
|
-
return { dvote: [], web3: [] };
|
|
2643
|
-
}
|
|
2644
|
-
var BootNodeGateways_NetworkNodes = {
|
|
2645
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
2646
|
-
for (const v of message.dvote) {
|
|
2647
|
-
BootNodeGateways_NetworkNodes_DVote.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2648
|
-
}
|
|
2649
|
-
for (const v of message.web3) {
|
|
2650
|
-
BootNodeGateways_NetworkNodes_Web3.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2651
|
-
}
|
|
2652
|
-
return writer;
|
|
2653
|
-
},
|
|
2654
|
-
decode(input, length) {
|
|
2655
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
2656
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2657
|
-
const message = createBaseBootNodeGateways_NetworkNodes();
|
|
2658
|
-
while (reader.pos < end) {
|
|
2659
|
-
const tag = reader.uint32();
|
|
2660
|
-
switch (tag >>> 3) {
|
|
2661
|
-
case 1:
|
|
2662
|
-
if (tag !== 10) {
|
|
2663
|
-
break;
|
|
2664
|
-
}
|
|
2665
|
-
message.dvote.push(BootNodeGateways_NetworkNodes_DVote.decode(reader, reader.uint32()));
|
|
2666
|
-
continue;
|
|
2667
|
-
case 2:
|
|
2668
|
-
if (tag !== 18) {
|
|
2669
|
-
break;
|
|
2670
|
-
}
|
|
2671
|
-
message.web3.push(BootNodeGateways_NetworkNodes_Web3.decode(reader, reader.uint32()));
|
|
2672
|
-
continue;
|
|
2673
|
-
}
|
|
2674
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2675
|
-
break;
|
|
2676
|
-
}
|
|
2677
|
-
reader.skipType(tag & 7);
|
|
2678
|
-
}
|
|
2679
|
-
return message;
|
|
2680
|
-
},
|
|
2681
|
-
fromJSON(object) {
|
|
2682
|
-
return {
|
|
2683
|
-
dvote: Array.isArray(object?.dvote) ? object.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.fromJSON(e)) : [],
|
|
2684
|
-
web3: Array.isArray(object?.web3) ? object.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.fromJSON(e)) : []
|
|
2685
|
-
};
|
|
2686
|
-
},
|
|
2687
|
-
toJSON(message) {
|
|
2688
|
-
const obj = {};
|
|
2689
|
-
if (message.dvote?.length) {
|
|
2690
|
-
obj.dvote = message.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.toJSON(e));
|
|
2691
|
-
}
|
|
2692
|
-
if (message.web3?.length) {
|
|
2693
|
-
obj.web3 = message.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.toJSON(e));
|
|
2694
|
-
}
|
|
2695
|
-
return obj;
|
|
2696
|
-
},
|
|
2697
|
-
create(base) {
|
|
2698
|
-
return BootNodeGateways_NetworkNodes.fromPartial(base ?? {});
|
|
2699
|
-
},
|
|
2700
|
-
fromPartial(object) {
|
|
2701
|
-
const message = createBaseBootNodeGateways_NetworkNodes();
|
|
2702
|
-
message.dvote = object.dvote?.map((e) => BootNodeGateways_NetworkNodes_DVote.fromPartial(e)) || [];
|
|
2703
|
-
message.web3 = object.web3?.map((e) => BootNodeGateways_NetworkNodes_Web3.fromPartial(e)) || [];
|
|
2704
|
-
return message;
|
|
2705
|
-
}
|
|
2706
|
-
};
|
|
2707
|
-
function createBaseBootNodeGateways_NetworkNodes_DVote() {
|
|
2708
|
-
return { uri: "", apis: [], pubKey: "" };
|
|
2709
|
-
}
|
|
2710
|
-
var BootNodeGateways_NetworkNodes_DVote = {
|
|
2711
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
2712
|
-
if (message.uri !== "") {
|
|
2713
|
-
writer.uint32(10).string(message.uri);
|
|
2714
|
-
}
|
|
2715
|
-
for (const v of message.apis) {
|
|
2716
|
-
writer.uint32(18).string(v);
|
|
2717
|
-
}
|
|
2718
|
-
if (message.pubKey !== "") {
|
|
2719
|
-
writer.uint32(26).string(message.pubKey);
|
|
2720
|
-
}
|
|
2721
|
-
return writer;
|
|
2722
|
-
},
|
|
2723
|
-
decode(input, length) {
|
|
2724
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
2725
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2726
|
-
const message = createBaseBootNodeGateways_NetworkNodes_DVote();
|
|
2727
|
-
while (reader.pos < end) {
|
|
2728
|
-
const tag = reader.uint32();
|
|
2729
|
-
switch (tag >>> 3) {
|
|
2730
|
-
case 1:
|
|
2731
|
-
if (tag !== 10) {
|
|
2732
|
-
break;
|
|
2733
|
-
}
|
|
2734
|
-
message.uri = reader.string();
|
|
2735
|
-
continue;
|
|
2736
|
-
case 2:
|
|
2737
|
-
if (tag !== 18) {
|
|
2738
|
-
break;
|
|
2739
|
-
}
|
|
2740
|
-
message.apis.push(reader.string());
|
|
2741
|
-
continue;
|
|
2742
|
-
case 3:
|
|
2743
|
-
if (tag !== 26) {
|
|
2744
|
-
break;
|
|
2745
|
-
}
|
|
2746
|
-
message.pubKey = reader.string();
|
|
2747
|
-
continue;
|
|
2748
|
-
}
|
|
2749
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2750
|
-
break;
|
|
2751
|
-
}
|
|
2752
|
-
reader.skipType(tag & 7);
|
|
2753
|
-
}
|
|
2754
|
-
return message;
|
|
2755
|
-
},
|
|
2756
|
-
fromJSON(object) {
|
|
2757
|
-
return {
|
|
2758
|
-
uri: isSet5(object.uri) ? String(object.uri) : "",
|
|
2759
|
-
apis: Array.isArray(object?.apis) ? object.apis.map((e) => String(e)) : [],
|
|
2760
|
-
pubKey: isSet5(object.pubKey) ? String(object.pubKey) : ""
|
|
2761
|
-
};
|
|
2762
|
-
},
|
|
2763
|
-
toJSON(message) {
|
|
2764
|
-
const obj = {};
|
|
2765
|
-
if (message.uri !== "") {
|
|
2766
|
-
obj.uri = message.uri;
|
|
2767
|
-
}
|
|
2768
|
-
if (message.apis?.length) {
|
|
2769
|
-
obj.apis = message.apis;
|
|
2770
|
-
}
|
|
2771
|
-
if (message.pubKey !== "") {
|
|
2772
|
-
obj.pubKey = message.pubKey;
|
|
2773
|
-
}
|
|
2774
|
-
return obj;
|
|
2775
|
-
},
|
|
2776
|
-
create(base) {
|
|
2777
|
-
return BootNodeGateways_NetworkNodes_DVote.fromPartial(base ?? {});
|
|
2778
|
-
},
|
|
2779
|
-
fromPartial(object) {
|
|
2780
|
-
const message = createBaseBootNodeGateways_NetworkNodes_DVote();
|
|
2781
|
-
message.uri = object.uri ?? "";
|
|
2782
|
-
message.apis = object.apis?.map((e) => e) || [];
|
|
2783
|
-
message.pubKey = object.pubKey ?? "";
|
|
2784
|
-
return message;
|
|
2785
|
-
}
|
|
2786
|
-
};
|
|
2787
|
-
function createBaseBootNodeGateways_NetworkNodes_Web3() {
|
|
2788
|
-
return { uri: "" };
|
|
2789
|
-
}
|
|
2790
|
-
var BootNodeGateways_NetworkNodes_Web3 = {
|
|
2791
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
2792
|
-
if (message.uri !== "") {
|
|
2793
|
-
writer.uint32(10).string(message.uri);
|
|
2794
|
-
}
|
|
2795
|
-
return writer;
|
|
2796
|
-
},
|
|
2797
|
-
decode(input, length) {
|
|
2798
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
2799
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2800
|
-
const message = createBaseBootNodeGateways_NetworkNodes_Web3();
|
|
2801
|
-
while (reader.pos < end) {
|
|
2802
|
-
const tag = reader.uint32();
|
|
2803
|
-
switch (tag >>> 3) {
|
|
2804
|
-
case 1:
|
|
2805
|
-
if (tag !== 10) {
|
|
2806
|
-
break;
|
|
2807
|
-
}
|
|
2808
|
-
message.uri = reader.string();
|
|
2809
|
-
continue;
|
|
2810
|
-
}
|
|
2811
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2812
|
-
break;
|
|
2813
|
-
}
|
|
2814
|
-
reader.skipType(tag & 7);
|
|
2815
|
-
}
|
|
2816
|
-
return message;
|
|
2817
|
-
},
|
|
2818
|
-
fromJSON(object) {
|
|
2819
|
-
return { uri: isSet5(object.uri) ? String(object.uri) : "" };
|
|
2820
|
-
},
|
|
2821
|
-
toJSON(message) {
|
|
2822
|
-
const obj = {};
|
|
2823
|
-
if (message.uri !== "") {
|
|
2824
|
-
obj.uri = message.uri;
|
|
2825
|
-
}
|
|
2826
|
-
return obj;
|
|
2827
|
-
},
|
|
2828
|
-
create(base) {
|
|
2829
|
-
return BootNodeGateways_NetworkNodes_Web3.fromPartial(base ?? {});
|
|
2830
|
-
},
|
|
2831
|
-
fromPartial(object) {
|
|
2832
|
-
const message = createBaseBootNodeGateways_NetworkNodes_Web3();
|
|
2833
|
-
message.uri = object.uri ?? "";
|
|
2834
|
-
return message;
|
|
2835
|
-
}
|
|
2836
|
-
};
|
|
2837
|
-
function createBaseBootNodeGateways_MetaEntry() {
|
|
2838
|
-
return { key: "", value: "" };
|
|
2839
|
-
}
|
|
2840
|
-
var BootNodeGateways_MetaEntry = {
|
|
2841
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
2842
|
-
if (message.key !== "") {
|
|
2843
|
-
writer.uint32(10).string(message.key);
|
|
2844
|
-
}
|
|
2845
|
-
if (message.value !== "") {
|
|
2846
|
-
writer.uint32(18).string(message.value);
|
|
2847
|
-
}
|
|
2848
|
-
return writer;
|
|
2849
|
-
},
|
|
2850
|
-
decode(input, length) {
|
|
2851
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
2852
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2853
|
-
const message = createBaseBootNodeGateways_MetaEntry();
|
|
2854
|
-
while (reader.pos < end) {
|
|
2855
|
-
const tag = reader.uint32();
|
|
2856
|
-
switch (tag >>> 3) {
|
|
2857
|
-
case 1:
|
|
2858
|
-
if (tag !== 10) {
|
|
2859
|
-
break;
|
|
2860
|
-
}
|
|
2861
|
-
message.key = reader.string();
|
|
2862
|
-
continue;
|
|
2863
|
-
case 2:
|
|
2864
|
-
if (tag !== 18) {
|
|
2865
|
-
break;
|
|
2866
|
-
}
|
|
2867
|
-
message.value = reader.string();
|
|
2868
|
-
continue;
|
|
2869
|
-
}
|
|
2870
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2871
|
-
break;
|
|
2872
|
-
}
|
|
2873
|
-
reader.skipType(tag & 7);
|
|
2874
|
-
}
|
|
2875
|
-
return message;
|
|
2876
|
-
},
|
|
2877
|
-
fromJSON(object) {
|
|
2878
|
-
return { key: isSet5(object.key) ? String(object.key) : "", value: isSet5(object.value) ? String(object.value) : "" };
|
|
2879
|
-
},
|
|
2880
|
-
toJSON(message) {
|
|
2881
|
-
const obj = {};
|
|
2882
|
-
if (message.key !== "") {
|
|
2883
|
-
obj.key = message.key;
|
|
2884
|
-
}
|
|
2885
|
-
if (message.value !== "") {
|
|
2886
|
-
obj.value = message.value;
|
|
2887
|
-
}
|
|
2888
|
-
return obj;
|
|
2889
|
-
},
|
|
2890
|
-
create(base) {
|
|
2891
|
-
return BootNodeGateways_MetaEntry.fromPartial(base ?? {});
|
|
2892
|
-
},
|
|
2893
|
-
fromPartial(object) {
|
|
2894
|
-
const message = createBaseBootNodeGateways_MetaEntry();
|
|
2895
|
-
message.key = object.key ?? "";
|
|
2896
|
-
message.value = object.value ?? "";
|
|
2897
|
-
return message;
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
|
-
function isObject2(value) {
|
|
2901
|
-
return typeof value === "object" && value !== null;
|
|
2902
|
-
}
|
|
2903
|
-
function isSet5(value) {
|
|
2904
|
-
return value !== null && value !== void 0;
|
|
2905
|
-
}
|
|
2906
|
-
export {
|
|
2907
|
-
account_exports as Account,
|
|
2908
|
-
backup_exports as Backup,
|
|
2909
|
-
gateway_exports as Gateway,
|
|
2910
|
-
wallet_exports as Wallet
|
|
2911
|
-
};
|