mezon-js 2.13.67 → 2.13.69
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/api/api.ts +38873 -0
- package/api.gen.ts +253 -180
- package/client.ts +11 -4
- package/dist/api/api.d.ts +23759 -0
- package/dist/google/protobuf/struct.d.ts +201 -0
- package/dist/google/protobuf/timestamp.d.ts +139 -0
- package/dist/google/protobuf/wrappers.d.ts +238 -0
- package/dist/mezon-js.cjs.js +3169 -209
- package/dist/mezon-js.esm.mjs +3178 -208
- package/google/protobuf/struct.ts +554 -0
- package/google/protobuf/timestamp.ts +223 -0
- package/google/protobuf/wrappers.ts +670 -0
- package/package.json +2 -1
- package/rollup.config.js +5 -1
package/dist/mezon-js.cjs.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
10
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -17,6 +19,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
19
|
}
|
|
18
20
|
return a;
|
|
19
21
|
};
|
|
22
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
23
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
24
|
+
};
|
|
20
25
|
var __export = (target, all) => {
|
|
21
26
|
for (var name in all)
|
|
22
27
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,7 +34,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
29
34
|
}
|
|
30
35
|
return to;
|
|
31
36
|
};
|
|
32
|
-
var
|
|
37
|
+
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
|
|
38
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
39
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
40
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
41
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
42
|
+
isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
|
|
43
|
+
mod2
|
|
44
|
+
));
|
|
45
|
+
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
33
46
|
var __async = (__this, __arguments, generator) => {
|
|
34
47
|
return new Promise((resolve, reject) => {
|
|
35
48
|
var fulfilled = (value) => {
|
|
@@ -51,6 +64,2228 @@ var __async = (__this, __arguments, generator) => {
|
|
|
51
64
|
});
|
|
52
65
|
};
|
|
53
66
|
|
|
67
|
+
// ../../node_modules/long/src/long.js
|
|
68
|
+
var require_long = __commonJS({
|
|
69
|
+
"../../node_modules/long/src/long.js"(exports2, module2) {
|
|
70
|
+
module2.exports = Long4;
|
|
71
|
+
var wasm = null;
|
|
72
|
+
try {
|
|
73
|
+
wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
|
|
74
|
+
0,
|
|
75
|
+
97,
|
|
76
|
+
115,
|
|
77
|
+
109,
|
|
78
|
+
1,
|
|
79
|
+
0,
|
|
80
|
+
0,
|
|
81
|
+
0,
|
|
82
|
+
1,
|
|
83
|
+
13,
|
|
84
|
+
2,
|
|
85
|
+
96,
|
|
86
|
+
0,
|
|
87
|
+
1,
|
|
88
|
+
127,
|
|
89
|
+
96,
|
|
90
|
+
4,
|
|
91
|
+
127,
|
|
92
|
+
127,
|
|
93
|
+
127,
|
|
94
|
+
127,
|
|
95
|
+
1,
|
|
96
|
+
127,
|
|
97
|
+
3,
|
|
98
|
+
7,
|
|
99
|
+
6,
|
|
100
|
+
0,
|
|
101
|
+
1,
|
|
102
|
+
1,
|
|
103
|
+
1,
|
|
104
|
+
1,
|
|
105
|
+
1,
|
|
106
|
+
6,
|
|
107
|
+
6,
|
|
108
|
+
1,
|
|
109
|
+
127,
|
|
110
|
+
1,
|
|
111
|
+
65,
|
|
112
|
+
0,
|
|
113
|
+
11,
|
|
114
|
+
7,
|
|
115
|
+
50,
|
|
116
|
+
6,
|
|
117
|
+
3,
|
|
118
|
+
109,
|
|
119
|
+
117,
|
|
120
|
+
108,
|
|
121
|
+
0,
|
|
122
|
+
1,
|
|
123
|
+
5,
|
|
124
|
+
100,
|
|
125
|
+
105,
|
|
126
|
+
118,
|
|
127
|
+
95,
|
|
128
|
+
115,
|
|
129
|
+
0,
|
|
130
|
+
2,
|
|
131
|
+
5,
|
|
132
|
+
100,
|
|
133
|
+
105,
|
|
134
|
+
118,
|
|
135
|
+
95,
|
|
136
|
+
117,
|
|
137
|
+
0,
|
|
138
|
+
3,
|
|
139
|
+
5,
|
|
140
|
+
114,
|
|
141
|
+
101,
|
|
142
|
+
109,
|
|
143
|
+
95,
|
|
144
|
+
115,
|
|
145
|
+
0,
|
|
146
|
+
4,
|
|
147
|
+
5,
|
|
148
|
+
114,
|
|
149
|
+
101,
|
|
150
|
+
109,
|
|
151
|
+
95,
|
|
152
|
+
117,
|
|
153
|
+
0,
|
|
154
|
+
5,
|
|
155
|
+
8,
|
|
156
|
+
103,
|
|
157
|
+
101,
|
|
158
|
+
116,
|
|
159
|
+
95,
|
|
160
|
+
104,
|
|
161
|
+
105,
|
|
162
|
+
103,
|
|
163
|
+
104,
|
|
164
|
+
0,
|
|
165
|
+
0,
|
|
166
|
+
10,
|
|
167
|
+
191,
|
|
168
|
+
1,
|
|
169
|
+
6,
|
|
170
|
+
4,
|
|
171
|
+
0,
|
|
172
|
+
35,
|
|
173
|
+
0,
|
|
174
|
+
11,
|
|
175
|
+
36,
|
|
176
|
+
1,
|
|
177
|
+
1,
|
|
178
|
+
126,
|
|
179
|
+
32,
|
|
180
|
+
0,
|
|
181
|
+
173,
|
|
182
|
+
32,
|
|
183
|
+
1,
|
|
184
|
+
173,
|
|
185
|
+
66,
|
|
186
|
+
32,
|
|
187
|
+
134,
|
|
188
|
+
132,
|
|
189
|
+
32,
|
|
190
|
+
2,
|
|
191
|
+
173,
|
|
192
|
+
32,
|
|
193
|
+
3,
|
|
194
|
+
173,
|
|
195
|
+
66,
|
|
196
|
+
32,
|
|
197
|
+
134,
|
|
198
|
+
132,
|
|
199
|
+
126,
|
|
200
|
+
34,
|
|
201
|
+
4,
|
|
202
|
+
66,
|
|
203
|
+
32,
|
|
204
|
+
135,
|
|
205
|
+
167,
|
|
206
|
+
36,
|
|
207
|
+
0,
|
|
208
|
+
32,
|
|
209
|
+
4,
|
|
210
|
+
167,
|
|
211
|
+
11,
|
|
212
|
+
36,
|
|
213
|
+
1,
|
|
214
|
+
1,
|
|
215
|
+
126,
|
|
216
|
+
32,
|
|
217
|
+
0,
|
|
218
|
+
173,
|
|
219
|
+
32,
|
|
220
|
+
1,
|
|
221
|
+
173,
|
|
222
|
+
66,
|
|
223
|
+
32,
|
|
224
|
+
134,
|
|
225
|
+
132,
|
|
226
|
+
32,
|
|
227
|
+
2,
|
|
228
|
+
173,
|
|
229
|
+
32,
|
|
230
|
+
3,
|
|
231
|
+
173,
|
|
232
|
+
66,
|
|
233
|
+
32,
|
|
234
|
+
134,
|
|
235
|
+
132,
|
|
236
|
+
127,
|
|
237
|
+
34,
|
|
238
|
+
4,
|
|
239
|
+
66,
|
|
240
|
+
32,
|
|
241
|
+
135,
|
|
242
|
+
167,
|
|
243
|
+
36,
|
|
244
|
+
0,
|
|
245
|
+
32,
|
|
246
|
+
4,
|
|
247
|
+
167,
|
|
248
|
+
11,
|
|
249
|
+
36,
|
|
250
|
+
1,
|
|
251
|
+
1,
|
|
252
|
+
126,
|
|
253
|
+
32,
|
|
254
|
+
0,
|
|
255
|
+
173,
|
|
256
|
+
32,
|
|
257
|
+
1,
|
|
258
|
+
173,
|
|
259
|
+
66,
|
|
260
|
+
32,
|
|
261
|
+
134,
|
|
262
|
+
132,
|
|
263
|
+
32,
|
|
264
|
+
2,
|
|
265
|
+
173,
|
|
266
|
+
32,
|
|
267
|
+
3,
|
|
268
|
+
173,
|
|
269
|
+
66,
|
|
270
|
+
32,
|
|
271
|
+
134,
|
|
272
|
+
132,
|
|
273
|
+
128,
|
|
274
|
+
34,
|
|
275
|
+
4,
|
|
276
|
+
66,
|
|
277
|
+
32,
|
|
278
|
+
135,
|
|
279
|
+
167,
|
|
280
|
+
36,
|
|
281
|
+
0,
|
|
282
|
+
32,
|
|
283
|
+
4,
|
|
284
|
+
167,
|
|
285
|
+
11,
|
|
286
|
+
36,
|
|
287
|
+
1,
|
|
288
|
+
1,
|
|
289
|
+
126,
|
|
290
|
+
32,
|
|
291
|
+
0,
|
|
292
|
+
173,
|
|
293
|
+
32,
|
|
294
|
+
1,
|
|
295
|
+
173,
|
|
296
|
+
66,
|
|
297
|
+
32,
|
|
298
|
+
134,
|
|
299
|
+
132,
|
|
300
|
+
32,
|
|
301
|
+
2,
|
|
302
|
+
173,
|
|
303
|
+
32,
|
|
304
|
+
3,
|
|
305
|
+
173,
|
|
306
|
+
66,
|
|
307
|
+
32,
|
|
308
|
+
134,
|
|
309
|
+
132,
|
|
310
|
+
129,
|
|
311
|
+
34,
|
|
312
|
+
4,
|
|
313
|
+
66,
|
|
314
|
+
32,
|
|
315
|
+
135,
|
|
316
|
+
167,
|
|
317
|
+
36,
|
|
318
|
+
0,
|
|
319
|
+
32,
|
|
320
|
+
4,
|
|
321
|
+
167,
|
|
322
|
+
11,
|
|
323
|
+
36,
|
|
324
|
+
1,
|
|
325
|
+
1,
|
|
326
|
+
126,
|
|
327
|
+
32,
|
|
328
|
+
0,
|
|
329
|
+
173,
|
|
330
|
+
32,
|
|
331
|
+
1,
|
|
332
|
+
173,
|
|
333
|
+
66,
|
|
334
|
+
32,
|
|
335
|
+
134,
|
|
336
|
+
132,
|
|
337
|
+
32,
|
|
338
|
+
2,
|
|
339
|
+
173,
|
|
340
|
+
32,
|
|
341
|
+
3,
|
|
342
|
+
173,
|
|
343
|
+
66,
|
|
344
|
+
32,
|
|
345
|
+
134,
|
|
346
|
+
132,
|
|
347
|
+
130,
|
|
348
|
+
34,
|
|
349
|
+
4,
|
|
350
|
+
66,
|
|
351
|
+
32,
|
|
352
|
+
135,
|
|
353
|
+
167,
|
|
354
|
+
36,
|
|
355
|
+
0,
|
|
356
|
+
32,
|
|
357
|
+
4,
|
|
358
|
+
167,
|
|
359
|
+
11
|
|
360
|
+
])), {}).exports;
|
|
361
|
+
} catch (e) {
|
|
362
|
+
}
|
|
363
|
+
function Long4(low, high, unsigned) {
|
|
364
|
+
this.low = low | 0;
|
|
365
|
+
this.high = high | 0;
|
|
366
|
+
this.unsigned = !!unsigned;
|
|
367
|
+
}
|
|
368
|
+
Long4.prototype.__isLong__;
|
|
369
|
+
Object.defineProperty(Long4.prototype, "__isLong__", { value: true });
|
|
370
|
+
function isLong(obj) {
|
|
371
|
+
return (obj && obj["__isLong__"]) === true;
|
|
372
|
+
}
|
|
373
|
+
Long4.isLong = isLong;
|
|
374
|
+
var INT_CACHE = {};
|
|
375
|
+
var UINT_CACHE = {};
|
|
376
|
+
function fromInt(value, unsigned) {
|
|
377
|
+
var obj, cachedObj, cache;
|
|
378
|
+
if (unsigned) {
|
|
379
|
+
value >>>= 0;
|
|
380
|
+
if (cache = 0 <= value && value < 256) {
|
|
381
|
+
cachedObj = UINT_CACHE[value];
|
|
382
|
+
if (cachedObj)
|
|
383
|
+
return cachedObj;
|
|
384
|
+
}
|
|
385
|
+
obj = fromBits(value, (value | 0) < 0 ? -1 : 0, true);
|
|
386
|
+
if (cache)
|
|
387
|
+
UINT_CACHE[value] = obj;
|
|
388
|
+
return obj;
|
|
389
|
+
} else {
|
|
390
|
+
value |= 0;
|
|
391
|
+
if (cache = -128 <= value && value < 128) {
|
|
392
|
+
cachedObj = INT_CACHE[value];
|
|
393
|
+
if (cachedObj)
|
|
394
|
+
return cachedObj;
|
|
395
|
+
}
|
|
396
|
+
obj = fromBits(value, value < 0 ? -1 : 0, false);
|
|
397
|
+
if (cache)
|
|
398
|
+
INT_CACHE[value] = obj;
|
|
399
|
+
return obj;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
Long4.fromInt = fromInt;
|
|
403
|
+
function fromNumber(value, unsigned) {
|
|
404
|
+
if (isNaN(value))
|
|
405
|
+
return unsigned ? UZERO : ZERO;
|
|
406
|
+
if (unsigned) {
|
|
407
|
+
if (value < 0)
|
|
408
|
+
return UZERO;
|
|
409
|
+
if (value >= TWO_PWR_64_DBL)
|
|
410
|
+
return MAX_UNSIGNED_VALUE;
|
|
411
|
+
} else {
|
|
412
|
+
if (value <= -TWO_PWR_63_DBL)
|
|
413
|
+
return MIN_VALUE;
|
|
414
|
+
if (value + 1 >= TWO_PWR_63_DBL)
|
|
415
|
+
return MAX_VALUE;
|
|
416
|
+
}
|
|
417
|
+
if (value < 0)
|
|
418
|
+
return fromNumber(-value, unsigned).neg();
|
|
419
|
+
return fromBits(value % TWO_PWR_32_DBL | 0, value / TWO_PWR_32_DBL | 0, unsigned);
|
|
420
|
+
}
|
|
421
|
+
Long4.fromNumber = fromNumber;
|
|
422
|
+
function fromBits(lowBits, highBits, unsigned) {
|
|
423
|
+
return new Long4(lowBits, highBits, unsigned);
|
|
424
|
+
}
|
|
425
|
+
Long4.fromBits = fromBits;
|
|
426
|
+
var pow_dbl = Math.pow;
|
|
427
|
+
function fromString(str, unsigned, radix) {
|
|
428
|
+
if (str.length === 0)
|
|
429
|
+
throw Error("empty string");
|
|
430
|
+
if (str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity")
|
|
431
|
+
return ZERO;
|
|
432
|
+
if (typeof unsigned === "number") {
|
|
433
|
+
radix = unsigned, unsigned = false;
|
|
434
|
+
} else {
|
|
435
|
+
unsigned = !!unsigned;
|
|
436
|
+
}
|
|
437
|
+
radix = radix || 10;
|
|
438
|
+
if (radix < 2 || 36 < radix)
|
|
439
|
+
throw RangeError("radix");
|
|
440
|
+
var p;
|
|
441
|
+
if ((p = str.indexOf("-")) > 0)
|
|
442
|
+
throw Error("interior hyphen");
|
|
443
|
+
else if (p === 0) {
|
|
444
|
+
return fromString(str.substring(1), unsigned, radix).neg();
|
|
445
|
+
}
|
|
446
|
+
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
447
|
+
var result = ZERO;
|
|
448
|
+
for (var i = 0; i < str.length; i += 8) {
|
|
449
|
+
var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
|
|
450
|
+
if (size < 8) {
|
|
451
|
+
var power = fromNumber(pow_dbl(radix, size));
|
|
452
|
+
result = result.mul(power).add(fromNumber(value));
|
|
453
|
+
} else {
|
|
454
|
+
result = result.mul(radixToPower);
|
|
455
|
+
result = result.add(fromNumber(value));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
result.unsigned = unsigned;
|
|
459
|
+
return result;
|
|
460
|
+
}
|
|
461
|
+
Long4.fromString = fromString;
|
|
462
|
+
function fromValue(val, unsigned) {
|
|
463
|
+
if (typeof val === "number")
|
|
464
|
+
return fromNumber(val, unsigned);
|
|
465
|
+
if (typeof val === "string")
|
|
466
|
+
return fromString(val, unsigned);
|
|
467
|
+
return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
|
|
468
|
+
}
|
|
469
|
+
Long4.fromValue = fromValue;
|
|
470
|
+
var TWO_PWR_16_DBL = 1 << 16;
|
|
471
|
+
var TWO_PWR_24_DBL = 1 << 24;
|
|
472
|
+
var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
|
|
473
|
+
var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
|
|
474
|
+
var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
|
|
475
|
+
var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
|
|
476
|
+
var ZERO = fromInt(0);
|
|
477
|
+
Long4.ZERO = ZERO;
|
|
478
|
+
var UZERO = fromInt(0, true);
|
|
479
|
+
Long4.UZERO = UZERO;
|
|
480
|
+
var ONE = fromInt(1);
|
|
481
|
+
Long4.ONE = ONE;
|
|
482
|
+
var UONE = fromInt(1, true);
|
|
483
|
+
Long4.UONE = UONE;
|
|
484
|
+
var NEG_ONE = fromInt(-1);
|
|
485
|
+
Long4.NEG_ONE = NEG_ONE;
|
|
486
|
+
var MAX_VALUE = fromBits(4294967295 | 0, 2147483647 | 0, false);
|
|
487
|
+
Long4.MAX_VALUE = MAX_VALUE;
|
|
488
|
+
var MAX_UNSIGNED_VALUE = fromBits(4294967295 | 0, 4294967295 | 0, true);
|
|
489
|
+
Long4.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
|
|
490
|
+
var MIN_VALUE = fromBits(0, 2147483648 | 0, false);
|
|
491
|
+
Long4.MIN_VALUE = MIN_VALUE;
|
|
492
|
+
var LongPrototype = Long4.prototype;
|
|
493
|
+
LongPrototype.toInt = function toInt() {
|
|
494
|
+
return this.unsigned ? this.low >>> 0 : this.low;
|
|
495
|
+
};
|
|
496
|
+
LongPrototype.toNumber = function toNumber() {
|
|
497
|
+
if (this.unsigned)
|
|
498
|
+
return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
499
|
+
return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
|
|
500
|
+
};
|
|
501
|
+
LongPrototype.toString = function toString(radix) {
|
|
502
|
+
radix = radix || 10;
|
|
503
|
+
if (radix < 2 || 36 < radix)
|
|
504
|
+
throw RangeError("radix");
|
|
505
|
+
if (this.isZero())
|
|
506
|
+
return "0";
|
|
507
|
+
if (this.isNegative()) {
|
|
508
|
+
if (this.eq(MIN_VALUE)) {
|
|
509
|
+
var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
|
|
510
|
+
return div.toString(radix) + rem1.toInt().toString(radix);
|
|
511
|
+
} else
|
|
512
|
+
return "-" + this.neg().toString(radix);
|
|
513
|
+
}
|
|
514
|
+
var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
|
|
515
|
+
var result = "";
|
|
516
|
+
while (true) {
|
|
517
|
+
var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
|
|
518
|
+
rem = remDiv;
|
|
519
|
+
if (rem.isZero())
|
|
520
|
+
return digits + result;
|
|
521
|
+
else {
|
|
522
|
+
while (digits.length < 6)
|
|
523
|
+
digits = "0" + digits;
|
|
524
|
+
result = "" + digits + result;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
LongPrototype.getHighBits = function getHighBits() {
|
|
529
|
+
return this.high;
|
|
530
|
+
};
|
|
531
|
+
LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
|
|
532
|
+
return this.high >>> 0;
|
|
533
|
+
};
|
|
534
|
+
LongPrototype.getLowBits = function getLowBits() {
|
|
535
|
+
return this.low;
|
|
536
|
+
};
|
|
537
|
+
LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
|
|
538
|
+
return this.low >>> 0;
|
|
539
|
+
};
|
|
540
|
+
LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
|
|
541
|
+
if (this.isNegative())
|
|
542
|
+
return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
|
|
543
|
+
var val = this.high != 0 ? this.high : this.low;
|
|
544
|
+
for (var bit = 31; bit > 0; bit--)
|
|
545
|
+
if ((val & 1 << bit) != 0)
|
|
546
|
+
break;
|
|
547
|
+
return this.high != 0 ? bit + 33 : bit + 1;
|
|
548
|
+
};
|
|
549
|
+
LongPrototype.isZero = function isZero() {
|
|
550
|
+
return this.high === 0 && this.low === 0;
|
|
551
|
+
};
|
|
552
|
+
LongPrototype.eqz = LongPrototype.isZero;
|
|
553
|
+
LongPrototype.isNegative = function isNegative() {
|
|
554
|
+
return !this.unsigned && this.high < 0;
|
|
555
|
+
};
|
|
556
|
+
LongPrototype.isPositive = function isPositive() {
|
|
557
|
+
return this.unsigned || this.high >= 0;
|
|
558
|
+
};
|
|
559
|
+
LongPrototype.isOdd = function isOdd() {
|
|
560
|
+
return (this.low & 1) === 1;
|
|
561
|
+
};
|
|
562
|
+
LongPrototype.isEven = function isEven() {
|
|
563
|
+
return (this.low & 1) === 0;
|
|
564
|
+
};
|
|
565
|
+
LongPrototype.equals = function equals(other) {
|
|
566
|
+
if (!isLong(other))
|
|
567
|
+
other = fromValue(other);
|
|
568
|
+
if (this.unsigned !== other.unsigned && this.high >>> 31 === 1 && other.high >>> 31 === 1)
|
|
569
|
+
return false;
|
|
570
|
+
return this.high === other.high && this.low === other.low;
|
|
571
|
+
};
|
|
572
|
+
LongPrototype.eq = LongPrototype.equals;
|
|
573
|
+
LongPrototype.notEquals = function notEquals(other) {
|
|
574
|
+
return !this.eq(
|
|
575
|
+
/* validates */
|
|
576
|
+
other
|
|
577
|
+
);
|
|
578
|
+
};
|
|
579
|
+
LongPrototype.neq = LongPrototype.notEquals;
|
|
580
|
+
LongPrototype.ne = LongPrototype.notEquals;
|
|
581
|
+
LongPrototype.lessThan = function lessThan(other) {
|
|
582
|
+
return this.comp(
|
|
583
|
+
/* validates */
|
|
584
|
+
other
|
|
585
|
+
) < 0;
|
|
586
|
+
};
|
|
587
|
+
LongPrototype.lt = LongPrototype.lessThan;
|
|
588
|
+
LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
|
|
589
|
+
return this.comp(
|
|
590
|
+
/* validates */
|
|
591
|
+
other
|
|
592
|
+
) <= 0;
|
|
593
|
+
};
|
|
594
|
+
LongPrototype.lte = LongPrototype.lessThanOrEqual;
|
|
595
|
+
LongPrototype.le = LongPrototype.lessThanOrEqual;
|
|
596
|
+
LongPrototype.greaterThan = function greaterThan(other) {
|
|
597
|
+
return this.comp(
|
|
598
|
+
/* validates */
|
|
599
|
+
other
|
|
600
|
+
) > 0;
|
|
601
|
+
};
|
|
602
|
+
LongPrototype.gt = LongPrototype.greaterThan;
|
|
603
|
+
LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
|
|
604
|
+
return this.comp(
|
|
605
|
+
/* validates */
|
|
606
|
+
other
|
|
607
|
+
) >= 0;
|
|
608
|
+
};
|
|
609
|
+
LongPrototype.gte = LongPrototype.greaterThanOrEqual;
|
|
610
|
+
LongPrototype.ge = LongPrototype.greaterThanOrEqual;
|
|
611
|
+
LongPrototype.compare = function compare(other) {
|
|
612
|
+
if (!isLong(other))
|
|
613
|
+
other = fromValue(other);
|
|
614
|
+
if (this.eq(other))
|
|
615
|
+
return 0;
|
|
616
|
+
var thisNeg = this.isNegative(), otherNeg = other.isNegative();
|
|
617
|
+
if (thisNeg && !otherNeg)
|
|
618
|
+
return -1;
|
|
619
|
+
if (!thisNeg && otherNeg)
|
|
620
|
+
return 1;
|
|
621
|
+
if (!this.unsigned)
|
|
622
|
+
return this.sub(other).isNegative() ? -1 : 1;
|
|
623
|
+
return other.high >>> 0 > this.high >>> 0 || other.high === this.high && other.low >>> 0 > this.low >>> 0 ? -1 : 1;
|
|
624
|
+
};
|
|
625
|
+
LongPrototype.comp = LongPrototype.compare;
|
|
626
|
+
LongPrototype.negate = function negate() {
|
|
627
|
+
if (!this.unsigned && this.eq(MIN_VALUE))
|
|
628
|
+
return MIN_VALUE;
|
|
629
|
+
return this.not().add(ONE);
|
|
630
|
+
};
|
|
631
|
+
LongPrototype.neg = LongPrototype.negate;
|
|
632
|
+
LongPrototype.add = function add(addend) {
|
|
633
|
+
if (!isLong(addend))
|
|
634
|
+
addend = fromValue(addend);
|
|
635
|
+
var a48 = this.high >>> 16;
|
|
636
|
+
var a32 = this.high & 65535;
|
|
637
|
+
var a16 = this.low >>> 16;
|
|
638
|
+
var a00 = this.low & 65535;
|
|
639
|
+
var b48 = addend.high >>> 16;
|
|
640
|
+
var b32 = addend.high & 65535;
|
|
641
|
+
var b16 = addend.low >>> 16;
|
|
642
|
+
var b00 = addend.low & 65535;
|
|
643
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
644
|
+
c00 += a00 + b00;
|
|
645
|
+
c16 += c00 >>> 16;
|
|
646
|
+
c00 &= 65535;
|
|
647
|
+
c16 += a16 + b16;
|
|
648
|
+
c32 += c16 >>> 16;
|
|
649
|
+
c16 &= 65535;
|
|
650
|
+
c32 += a32 + b32;
|
|
651
|
+
c48 += c32 >>> 16;
|
|
652
|
+
c32 &= 65535;
|
|
653
|
+
c48 += a48 + b48;
|
|
654
|
+
c48 &= 65535;
|
|
655
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
656
|
+
};
|
|
657
|
+
LongPrototype.subtract = function subtract(subtrahend) {
|
|
658
|
+
if (!isLong(subtrahend))
|
|
659
|
+
subtrahend = fromValue(subtrahend);
|
|
660
|
+
return this.add(subtrahend.neg());
|
|
661
|
+
};
|
|
662
|
+
LongPrototype.sub = LongPrototype.subtract;
|
|
663
|
+
LongPrototype.multiply = function multiply(multiplier) {
|
|
664
|
+
if (this.isZero())
|
|
665
|
+
return ZERO;
|
|
666
|
+
if (!isLong(multiplier))
|
|
667
|
+
multiplier = fromValue(multiplier);
|
|
668
|
+
if (wasm) {
|
|
669
|
+
var low = wasm.mul(
|
|
670
|
+
this.low,
|
|
671
|
+
this.high,
|
|
672
|
+
multiplier.low,
|
|
673
|
+
multiplier.high
|
|
674
|
+
);
|
|
675
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
676
|
+
}
|
|
677
|
+
if (multiplier.isZero())
|
|
678
|
+
return ZERO;
|
|
679
|
+
if (this.eq(MIN_VALUE))
|
|
680
|
+
return multiplier.isOdd() ? MIN_VALUE : ZERO;
|
|
681
|
+
if (multiplier.eq(MIN_VALUE))
|
|
682
|
+
return this.isOdd() ? MIN_VALUE : ZERO;
|
|
683
|
+
if (this.isNegative()) {
|
|
684
|
+
if (multiplier.isNegative())
|
|
685
|
+
return this.neg().mul(multiplier.neg());
|
|
686
|
+
else
|
|
687
|
+
return this.neg().mul(multiplier).neg();
|
|
688
|
+
} else if (multiplier.isNegative())
|
|
689
|
+
return this.mul(multiplier.neg()).neg();
|
|
690
|
+
if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
|
|
691
|
+
return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
|
|
692
|
+
var a48 = this.high >>> 16;
|
|
693
|
+
var a32 = this.high & 65535;
|
|
694
|
+
var a16 = this.low >>> 16;
|
|
695
|
+
var a00 = this.low & 65535;
|
|
696
|
+
var b48 = multiplier.high >>> 16;
|
|
697
|
+
var b32 = multiplier.high & 65535;
|
|
698
|
+
var b16 = multiplier.low >>> 16;
|
|
699
|
+
var b00 = multiplier.low & 65535;
|
|
700
|
+
var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
|
|
701
|
+
c00 += a00 * b00;
|
|
702
|
+
c16 += c00 >>> 16;
|
|
703
|
+
c00 &= 65535;
|
|
704
|
+
c16 += a16 * b00;
|
|
705
|
+
c32 += c16 >>> 16;
|
|
706
|
+
c16 &= 65535;
|
|
707
|
+
c16 += a00 * b16;
|
|
708
|
+
c32 += c16 >>> 16;
|
|
709
|
+
c16 &= 65535;
|
|
710
|
+
c32 += a32 * b00;
|
|
711
|
+
c48 += c32 >>> 16;
|
|
712
|
+
c32 &= 65535;
|
|
713
|
+
c32 += a16 * b16;
|
|
714
|
+
c48 += c32 >>> 16;
|
|
715
|
+
c32 &= 65535;
|
|
716
|
+
c32 += a00 * b32;
|
|
717
|
+
c48 += c32 >>> 16;
|
|
718
|
+
c32 &= 65535;
|
|
719
|
+
c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
|
|
720
|
+
c48 &= 65535;
|
|
721
|
+
return fromBits(c16 << 16 | c00, c48 << 16 | c32, this.unsigned);
|
|
722
|
+
};
|
|
723
|
+
LongPrototype.mul = LongPrototype.multiply;
|
|
724
|
+
LongPrototype.divide = function divide(divisor) {
|
|
725
|
+
if (!isLong(divisor))
|
|
726
|
+
divisor = fromValue(divisor);
|
|
727
|
+
if (divisor.isZero())
|
|
728
|
+
throw Error("division by zero");
|
|
729
|
+
if (wasm) {
|
|
730
|
+
if (!this.unsigned && this.high === -2147483648 && divisor.low === -1 && divisor.high === -1) {
|
|
731
|
+
return this;
|
|
732
|
+
}
|
|
733
|
+
var low = (this.unsigned ? wasm.div_u : wasm.div_s)(
|
|
734
|
+
this.low,
|
|
735
|
+
this.high,
|
|
736
|
+
divisor.low,
|
|
737
|
+
divisor.high
|
|
738
|
+
);
|
|
739
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
740
|
+
}
|
|
741
|
+
if (this.isZero())
|
|
742
|
+
return this.unsigned ? UZERO : ZERO;
|
|
743
|
+
var approx, rem, res;
|
|
744
|
+
if (!this.unsigned) {
|
|
745
|
+
if (this.eq(MIN_VALUE)) {
|
|
746
|
+
if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
|
|
747
|
+
return MIN_VALUE;
|
|
748
|
+
else if (divisor.eq(MIN_VALUE))
|
|
749
|
+
return ONE;
|
|
750
|
+
else {
|
|
751
|
+
var halfThis = this.shr(1);
|
|
752
|
+
approx = halfThis.div(divisor).shl(1);
|
|
753
|
+
if (approx.eq(ZERO)) {
|
|
754
|
+
return divisor.isNegative() ? ONE : NEG_ONE;
|
|
755
|
+
} else {
|
|
756
|
+
rem = this.sub(divisor.mul(approx));
|
|
757
|
+
res = approx.add(rem.div(divisor));
|
|
758
|
+
return res;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
} else if (divisor.eq(MIN_VALUE))
|
|
762
|
+
return this.unsigned ? UZERO : ZERO;
|
|
763
|
+
if (this.isNegative()) {
|
|
764
|
+
if (divisor.isNegative())
|
|
765
|
+
return this.neg().div(divisor.neg());
|
|
766
|
+
return this.neg().div(divisor).neg();
|
|
767
|
+
} else if (divisor.isNegative())
|
|
768
|
+
return this.div(divisor.neg()).neg();
|
|
769
|
+
res = ZERO;
|
|
770
|
+
} else {
|
|
771
|
+
if (!divisor.unsigned)
|
|
772
|
+
divisor = divisor.toUnsigned();
|
|
773
|
+
if (divisor.gt(this))
|
|
774
|
+
return UZERO;
|
|
775
|
+
if (divisor.gt(this.shru(1)))
|
|
776
|
+
return UONE;
|
|
777
|
+
res = UZERO;
|
|
778
|
+
}
|
|
779
|
+
rem = this;
|
|
780
|
+
while (rem.gte(divisor)) {
|
|
781
|
+
approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
|
|
782
|
+
var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48), approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
|
|
783
|
+
while (approxRem.isNegative() || approxRem.gt(rem)) {
|
|
784
|
+
approx -= delta;
|
|
785
|
+
approxRes = fromNumber(approx, this.unsigned);
|
|
786
|
+
approxRem = approxRes.mul(divisor);
|
|
787
|
+
}
|
|
788
|
+
if (approxRes.isZero())
|
|
789
|
+
approxRes = ONE;
|
|
790
|
+
res = res.add(approxRes);
|
|
791
|
+
rem = rem.sub(approxRem);
|
|
792
|
+
}
|
|
793
|
+
return res;
|
|
794
|
+
};
|
|
795
|
+
LongPrototype.div = LongPrototype.divide;
|
|
796
|
+
LongPrototype.modulo = function modulo(divisor) {
|
|
797
|
+
if (!isLong(divisor))
|
|
798
|
+
divisor = fromValue(divisor);
|
|
799
|
+
if (wasm) {
|
|
800
|
+
var low = (this.unsigned ? wasm.rem_u : wasm.rem_s)(
|
|
801
|
+
this.low,
|
|
802
|
+
this.high,
|
|
803
|
+
divisor.low,
|
|
804
|
+
divisor.high
|
|
805
|
+
);
|
|
806
|
+
return fromBits(low, wasm.get_high(), this.unsigned);
|
|
807
|
+
}
|
|
808
|
+
return this.sub(this.div(divisor).mul(divisor));
|
|
809
|
+
};
|
|
810
|
+
LongPrototype.mod = LongPrototype.modulo;
|
|
811
|
+
LongPrototype.rem = LongPrototype.modulo;
|
|
812
|
+
LongPrototype.not = function not() {
|
|
813
|
+
return fromBits(~this.low, ~this.high, this.unsigned);
|
|
814
|
+
};
|
|
815
|
+
LongPrototype.and = function and(other) {
|
|
816
|
+
if (!isLong(other))
|
|
817
|
+
other = fromValue(other);
|
|
818
|
+
return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
|
|
819
|
+
};
|
|
820
|
+
LongPrototype.or = function or(other) {
|
|
821
|
+
if (!isLong(other))
|
|
822
|
+
other = fromValue(other);
|
|
823
|
+
return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
|
|
824
|
+
};
|
|
825
|
+
LongPrototype.xor = function xor(other) {
|
|
826
|
+
if (!isLong(other))
|
|
827
|
+
other = fromValue(other);
|
|
828
|
+
return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
|
|
829
|
+
};
|
|
830
|
+
LongPrototype.shiftLeft = function shiftLeft(numBits) {
|
|
831
|
+
if (isLong(numBits))
|
|
832
|
+
numBits = numBits.toInt();
|
|
833
|
+
if ((numBits &= 63) === 0)
|
|
834
|
+
return this;
|
|
835
|
+
else if (numBits < 32)
|
|
836
|
+
return fromBits(this.low << numBits, this.high << numBits | this.low >>> 32 - numBits, this.unsigned);
|
|
837
|
+
else
|
|
838
|
+
return fromBits(0, this.low << numBits - 32, this.unsigned);
|
|
839
|
+
};
|
|
840
|
+
LongPrototype.shl = LongPrototype.shiftLeft;
|
|
841
|
+
LongPrototype.shiftRight = function shiftRight(numBits) {
|
|
842
|
+
if (isLong(numBits))
|
|
843
|
+
numBits = numBits.toInt();
|
|
844
|
+
if ((numBits &= 63) === 0)
|
|
845
|
+
return this;
|
|
846
|
+
else if (numBits < 32)
|
|
847
|
+
return fromBits(this.low >>> numBits | this.high << 32 - numBits, this.high >> numBits, this.unsigned);
|
|
848
|
+
else
|
|
849
|
+
return fromBits(this.high >> numBits - 32, this.high >= 0 ? 0 : -1, this.unsigned);
|
|
850
|
+
};
|
|
851
|
+
LongPrototype.shr = LongPrototype.shiftRight;
|
|
852
|
+
LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
|
|
853
|
+
if (isLong(numBits))
|
|
854
|
+
numBits = numBits.toInt();
|
|
855
|
+
numBits &= 63;
|
|
856
|
+
if (numBits === 0)
|
|
857
|
+
return this;
|
|
858
|
+
else {
|
|
859
|
+
var high = this.high;
|
|
860
|
+
if (numBits < 32) {
|
|
861
|
+
var low = this.low;
|
|
862
|
+
return fromBits(low >>> numBits | high << 32 - numBits, high >>> numBits, this.unsigned);
|
|
863
|
+
} else if (numBits === 32)
|
|
864
|
+
return fromBits(high, 0, this.unsigned);
|
|
865
|
+
else
|
|
866
|
+
return fromBits(high >>> numBits - 32, 0, this.unsigned);
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
LongPrototype.shru = LongPrototype.shiftRightUnsigned;
|
|
870
|
+
LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
|
|
871
|
+
LongPrototype.toSigned = function toSigned() {
|
|
872
|
+
if (!this.unsigned)
|
|
873
|
+
return this;
|
|
874
|
+
return fromBits(this.low, this.high, false);
|
|
875
|
+
};
|
|
876
|
+
LongPrototype.toUnsigned = function toUnsigned() {
|
|
877
|
+
if (this.unsigned)
|
|
878
|
+
return this;
|
|
879
|
+
return fromBits(this.low, this.high, true);
|
|
880
|
+
};
|
|
881
|
+
LongPrototype.toBytes = function toBytes(le) {
|
|
882
|
+
return le ? this.toBytesLE() : this.toBytesBE();
|
|
883
|
+
};
|
|
884
|
+
LongPrototype.toBytesLE = function toBytesLE() {
|
|
885
|
+
var hi = this.high, lo = this.low;
|
|
886
|
+
return [
|
|
887
|
+
lo & 255,
|
|
888
|
+
lo >>> 8 & 255,
|
|
889
|
+
lo >>> 16 & 255,
|
|
890
|
+
lo >>> 24,
|
|
891
|
+
hi & 255,
|
|
892
|
+
hi >>> 8 & 255,
|
|
893
|
+
hi >>> 16 & 255,
|
|
894
|
+
hi >>> 24
|
|
895
|
+
];
|
|
896
|
+
};
|
|
897
|
+
LongPrototype.toBytesBE = function toBytesBE() {
|
|
898
|
+
var hi = this.high, lo = this.low;
|
|
899
|
+
return [
|
|
900
|
+
hi >>> 24,
|
|
901
|
+
hi >>> 16 & 255,
|
|
902
|
+
hi >>> 8 & 255,
|
|
903
|
+
hi & 255,
|
|
904
|
+
lo >>> 24,
|
|
905
|
+
lo >>> 16 & 255,
|
|
906
|
+
lo >>> 8 & 255,
|
|
907
|
+
lo & 255
|
|
908
|
+
];
|
|
909
|
+
};
|
|
910
|
+
Long4.fromBytes = function fromBytes(bytes, unsigned, le) {
|
|
911
|
+
return le ? Long4.fromBytesLE(bytes, unsigned) : Long4.fromBytesBE(bytes, unsigned);
|
|
912
|
+
};
|
|
913
|
+
Long4.fromBytesLE = function fromBytesLE(bytes, unsigned) {
|
|
914
|
+
return new Long4(
|
|
915
|
+
bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24,
|
|
916
|
+
bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24,
|
|
917
|
+
unsigned
|
|
918
|
+
);
|
|
919
|
+
};
|
|
920
|
+
Long4.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
|
921
|
+
return new Long4(
|
|
922
|
+
bytes[4] << 24 | bytes[5] << 16 | bytes[6] << 8 | bytes[7],
|
|
923
|
+
bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3],
|
|
924
|
+
unsigned
|
|
925
|
+
);
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
|
|
930
|
+
// ../../node_modules/@protobufjs/aspromise/index.js
|
|
931
|
+
var require_aspromise = __commonJS({
|
|
932
|
+
"../../node_modules/@protobufjs/aspromise/index.js"(exports2, module2) {
|
|
933
|
+
"use strict";
|
|
934
|
+
module2.exports = asPromise;
|
|
935
|
+
function asPromise(fn, ctx) {
|
|
936
|
+
var params = new Array(arguments.length - 1), offset = 0, index = 2, pending = true;
|
|
937
|
+
while (index < arguments.length)
|
|
938
|
+
params[offset++] = arguments[index++];
|
|
939
|
+
return new Promise(function executor(resolve, reject) {
|
|
940
|
+
params[offset] = function callback(err) {
|
|
941
|
+
if (pending) {
|
|
942
|
+
pending = false;
|
|
943
|
+
if (err)
|
|
944
|
+
reject(err);
|
|
945
|
+
else {
|
|
946
|
+
var params2 = new Array(arguments.length - 1), offset2 = 0;
|
|
947
|
+
while (offset2 < params2.length)
|
|
948
|
+
params2[offset2++] = arguments[offset2];
|
|
949
|
+
resolve.apply(null, params2);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
try {
|
|
954
|
+
fn.apply(ctx || null, params);
|
|
955
|
+
} catch (err) {
|
|
956
|
+
if (pending) {
|
|
957
|
+
pending = false;
|
|
958
|
+
reject(err);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
// ../../node_modules/@protobufjs/base64/index.js
|
|
967
|
+
var require_base64 = __commonJS({
|
|
968
|
+
"../../node_modules/@protobufjs/base64/index.js"(exports2) {
|
|
969
|
+
"use strict";
|
|
970
|
+
var base64 = exports2;
|
|
971
|
+
base64.length = function length(string) {
|
|
972
|
+
var p = string.length;
|
|
973
|
+
if (!p)
|
|
974
|
+
return 0;
|
|
975
|
+
var n = 0;
|
|
976
|
+
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
977
|
+
++n;
|
|
978
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
979
|
+
};
|
|
980
|
+
var b64 = new Array(64);
|
|
981
|
+
var s64 = new Array(123);
|
|
982
|
+
for (i = 0; i < 64; )
|
|
983
|
+
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
984
|
+
var i;
|
|
985
|
+
base64.encode = function encode3(buffer, start, end) {
|
|
986
|
+
var parts = null, chunk = [];
|
|
987
|
+
var i2 = 0, j = 0, t;
|
|
988
|
+
while (start < end) {
|
|
989
|
+
var b = buffer[start++];
|
|
990
|
+
switch (j) {
|
|
991
|
+
case 0:
|
|
992
|
+
chunk[i2++] = b64[b >> 2];
|
|
993
|
+
t = (b & 3) << 4;
|
|
994
|
+
j = 1;
|
|
995
|
+
break;
|
|
996
|
+
case 1:
|
|
997
|
+
chunk[i2++] = b64[t | b >> 4];
|
|
998
|
+
t = (b & 15) << 2;
|
|
999
|
+
j = 2;
|
|
1000
|
+
break;
|
|
1001
|
+
case 2:
|
|
1002
|
+
chunk[i2++] = b64[t | b >> 6];
|
|
1003
|
+
chunk[i2++] = b64[b & 63];
|
|
1004
|
+
j = 0;
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
if (i2 > 8191) {
|
|
1008
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1009
|
+
i2 = 0;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
if (j) {
|
|
1013
|
+
chunk[i2++] = b64[t];
|
|
1014
|
+
chunk[i2++] = 61;
|
|
1015
|
+
if (j === 1)
|
|
1016
|
+
chunk[i2++] = 61;
|
|
1017
|
+
}
|
|
1018
|
+
if (parts) {
|
|
1019
|
+
if (i2)
|
|
1020
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i2)));
|
|
1021
|
+
return parts.join("");
|
|
1022
|
+
}
|
|
1023
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i2));
|
|
1024
|
+
};
|
|
1025
|
+
var invalidEncoding = "invalid encoding";
|
|
1026
|
+
base64.decode = function decode4(string, buffer, offset) {
|
|
1027
|
+
var start = offset;
|
|
1028
|
+
var j = 0, t;
|
|
1029
|
+
for (var i2 = 0; i2 < string.length; ) {
|
|
1030
|
+
var c = string.charCodeAt(i2++);
|
|
1031
|
+
if (c === 61 && j > 1)
|
|
1032
|
+
break;
|
|
1033
|
+
if ((c = s64[c]) === void 0)
|
|
1034
|
+
throw Error(invalidEncoding);
|
|
1035
|
+
switch (j) {
|
|
1036
|
+
case 0:
|
|
1037
|
+
t = c;
|
|
1038
|
+
j = 1;
|
|
1039
|
+
break;
|
|
1040
|
+
case 1:
|
|
1041
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
1042
|
+
t = c;
|
|
1043
|
+
j = 2;
|
|
1044
|
+
break;
|
|
1045
|
+
case 2:
|
|
1046
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
1047
|
+
t = c;
|
|
1048
|
+
j = 3;
|
|
1049
|
+
break;
|
|
1050
|
+
case 3:
|
|
1051
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
1052
|
+
j = 0;
|
|
1053
|
+
break;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
if (j === 1)
|
|
1057
|
+
throw Error(invalidEncoding);
|
|
1058
|
+
return offset - start;
|
|
1059
|
+
};
|
|
1060
|
+
base64.test = function test(string) {
|
|
1061
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
});
|
|
1065
|
+
|
|
1066
|
+
// ../../node_modules/@protobufjs/eventemitter/index.js
|
|
1067
|
+
var require_eventemitter = __commonJS({
|
|
1068
|
+
"../../node_modules/@protobufjs/eventemitter/index.js"(exports2, module2) {
|
|
1069
|
+
"use strict";
|
|
1070
|
+
module2.exports = EventEmitter;
|
|
1071
|
+
function EventEmitter() {
|
|
1072
|
+
this._listeners = {};
|
|
1073
|
+
}
|
|
1074
|
+
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
1075
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
1076
|
+
fn,
|
|
1077
|
+
ctx: ctx || this
|
|
1078
|
+
});
|
|
1079
|
+
return this;
|
|
1080
|
+
};
|
|
1081
|
+
EventEmitter.prototype.off = function off(evt, fn) {
|
|
1082
|
+
if (evt === void 0)
|
|
1083
|
+
this._listeners = {};
|
|
1084
|
+
else {
|
|
1085
|
+
if (fn === void 0)
|
|
1086
|
+
this._listeners[evt] = [];
|
|
1087
|
+
else {
|
|
1088
|
+
var listeners = this._listeners[evt];
|
|
1089
|
+
for (var i = 0; i < listeners.length; )
|
|
1090
|
+
if (listeners[i].fn === fn)
|
|
1091
|
+
listeners.splice(i, 1);
|
|
1092
|
+
else
|
|
1093
|
+
++i;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
return this;
|
|
1097
|
+
};
|
|
1098
|
+
EventEmitter.prototype.emit = function emit(evt) {
|
|
1099
|
+
var listeners = this._listeners[evt];
|
|
1100
|
+
if (listeners) {
|
|
1101
|
+
var args = [], i = 1;
|
|
1102
|
+
for (; i < arguments.length; )
|
|
1103
|
+
args.push(arguments[i++]);
|
|
1104
|
+
for (i = 0; i < listeners.length; )
|
|
1105
|
+
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
1106
|
+
}
|
|
1107
|
+
return this;
|
|
1108
|
+
};
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
|
|
1112
|
+
// ../../node_modules/@protobufjs/float/index.js
|
|
1113
|
+
var require_float = __commonJS({
|
|
1114
|
+
"../../node_modules/@protobufjs/float/index.js"(exports2, module2) {
|
|
1115
|
+
"use strict";
|
|
1116
|
+
module2.exports = factory(factory);
|
|
1117
|
+
function factory(exports3) {
|
|
1118
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
1119
|
+
var f32 = new Float32Array([-0]), f8b = new Uint8Array(f32.buffer), le = f8b[3] === 128;
|
|
1120
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
1121
|
+
f32[0] = val;
|
|
1122
|
+
buf[pos] = f8b[0];
|
|
1123
|
+
buf[pos + 1] = f8b[1];
|
|
1124
|
+
buf[pos + 2] = f8b[2];
|
|
1125
|
+
buf[pos + 3] = f8b[3];
|
|
1126
|
+
}
|
|
1127
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
1128
|
+
f32[0] = val;
|
|
1129
|
+
buf[pos] = f8b[3];
|
|
1130
|
+
buf[pos + 1] = f8b[2];
|
|
1131
|
+
buf[pos + 2] = f8b[1];
|
|
1132
|
+
buf[pos + 3] = f8b[0];
|
|
1133
|
+
}
|
|
1134
|
+
exports3.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
1135
|
+
exports3.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
1136
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
1137
|
+
f8b[0] = buf[pos];
|
|
1138
|
+
f8b[1] = buf[pos + 1];
|
|
1139
|
+
f8b[2] = buf[pos + 2];
|
|
1140
|
+
f8b[3] = buf[pos + 3];
|
|
1141
|
+
return f32[0];
|
|
1142
|
+
}
|
|
1143
|
+
function readFloat_f32_rev(buf, pos) {
|
|
1144
|
+
f8b[3] = buf[pos];
|
|
1145
|
+
f8b[2] = buf[pos + 1];
|
|
1146
|
+
f8b[1] = buf[pos + 2];
|
|
1147
|
+
f8b[0] = buf[pos + 3];
|
|
1148
|
+
return f32[0];
|
|
1149
|
+
}
|
|
1150
|
+
exports3.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
1151
|
+
exports3.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
1152
|
+
})();
|
|
1153
|
+
else (function() {
|
|
1154
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
1155
|
+
var sign = val < 0 ? 1 : 0;
|
|
1156
|
+
if (sign)
|
|
1157
|
+
val = -val;
|
|
1158
|
+
if (val === 0)
|
|
1159
|
+
writeUint(1 / val > 0 ? (
|
|
1160
|
+
/* positive */
|
|
1161
|
+
0
|
|
1162
|
+
) : (
|
|
1163
|
+
/* negative 0 */
|
|
1164
|
+
2147483648
|
|
1165
|
+
), buf, pos);
|
|
1166
|
+
else if (isNaN(val))
|
|
1167
|
+
writeUint(2143289344, buf, pos);
|
|
1168
|
+
else if (val > 34028234663852886e22)
|
|
1169
|
+
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
1170
|
+
else if (val < 11754943508222875e-54)
|
|
1171
|
+
writeUint((sign << 31 | Math.round(val / 1401298464324817e-60)) >>> 0, buf, pos);
|
|
1172
|
+
else {
|
|
1173
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2), mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
1174
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
exports3.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
1178
|
+
exports3.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
1179
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
1180
|
+
var uint = readUint(buf, pos), sign = (uint >> 31) * 2 + 1, exponent = uint >>> 23 & 255, mantissa = uint & 8388607;
|
|
1181
|
+
return exponent === 255 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 1401298464324817e-60 * mantissa : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
1182
|
+
}
|
|
1183
|
+
exports3.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
1184
|
+
exports3.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
1185
|
+
})();
|
|
1186
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
1187
|
+
var f64 = new Float64Array([-0]), f8b = new Uint8Array(f64.buffer), le = f8b[7] === 128;
|
|
1188
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
1189
|
+
f64[0] = val;
|
|
1190
|
+
buf[pos] = f8b[0];
|
|
1191
|
+
buf[pos + 1] = f8b[1];
|
|
1192
|
+
buf[pos + 2] = f8b[2];
|
|
1193
|
+
buf[pos + 3] = f8b[3];
|
|
1194
|
+
buf[pos + 4] = f8b[4];
|
|
1195
|
+
buf[pos + 5] = f8b[5];
|
|
1196
|
+
buf[pos + 6] = f8b[6];
|
|
1197
|
+
buf[pos + 7] = f8b[7];
|
|
1198
|
+
}
|
|
1199
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
1200
|
+
f64[0] = val;
|
|
1201
|
+
buf[pos] = f8b[7];
|
|
1202
|
+
buf[pos + 1] = f8b[6];
|
|
1203
|
+
buf[pos + 2] = f8b[5];
|
|
1204
|
+
buf[pos + 3] = f8b[4];
|
|
1205
|
+
buf[pos + 4] = f8b[3];
|
|
1206
|
+
buf[pos + 5] = f8b[2];
|
|
1207
|
+
buf[pos + 6] = f8b[1];
|
|
1208
|
+
buf[pos + 7] = f8b[0];
|
|
1209
|
+
}
|
|
1210
|
+
exports3.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
1211
|
+
exports3.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
1212
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
1213
|
+
f8b[0] = buf[pos];
|
|
1214
|
+
f8b[1] = buf[pos + 1];
|
|
1215
|
+
f8b[2] = buf[pos + 2];
|
|
1216
|
+
f8b[3] = buf[pos + 3];
|
|
1217
|
+
f8b[4] = buf[pos + 4];
|
|
1218
|
+
f8b[5] = buf[pos + 5];
|
|
1219
|
+
f8b[6] = buf[pos + 6];
|
|
1220
|
+
f8b[7] = buf[pos + 7];
|
|
1221
|
+
return f64[0];
|
|
1222
|
+
}
|
|
1223
|
+
function readDouble_f64_rev(buf, pos) {
|
|
1224
|
+
f8b[7] = buf[pos];
|
|
1225
|
+
f8b[6] = buf[pos + 1];
|
|
1226
|
+
f8b[5] = buf[pos + 2];
|
|
1227
|
+
f8b[4] = buf[pos + 3];
|
|
1228
|
+
f8b[3] = buf[pos + 4];
|
|
1229
|
+
f8b[2] = buf[pos + 5];
|
|
1230
|
+
f8b[1] = buf[pos + 6];
|
|
1231
|
+
f8b[0] = buf[pos + 7];
|
|
1232
|
+
return f64[0];
|
|
1233
|
+
}
|
|
1234
|
+
exports3.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
1235
|
+
exports3.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
1236
|
+
})();
|
|
1237
|
+
else (function() {
|
|
1238
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
1239
|
+
var sign = val < 0 ? 1 : 0;
|
|
1240
|
+
if (sign)
|
|
1241
|
+
val = -val;
|
|
1242
|
+
if (val === 0) {
|
|
1243
|
+
writeUint(0, buf, pos + off0);
|
|
1244
|
+
writeUint(1 / val > 0 ? (
|
|
1245
|
+
/* positive */
|
|
1246
|
+
0
|
|
1247
|
+
) : (
|
|
1248
|
+
/* negative 0 */
|
|
1249
|
+
2147483648
|
|
1250
|
+
), buf, pos + off1);
|
|
1251
|
+
} else if (isNaN(val)) {
|
|
1252
|
+
writeUint(0, buf, pos + off0);
|
|
1253
|
+
writeUint(2146959360, buf, pos + off1);
|
|
1254
|
+
} else if (val > 17976931348623157e292) {
|
|
1255
|
+
writeUint(0, buf, pos + off0);
|
|
1256
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
1257
|
+
} else {
|
|
1258
|
+
var mantissa;
|
|
1259
|
+
if (val < 22250738585072014e-324) {
|
|
1260
|
+
mantissa = val / 5e-324;
|
|
1261
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
1262
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
1263
|
+
} else {
|
|
1264
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
1265
|
+
if (exponent === 1024)
|
|
1266
|
+
exponent = 1023;
|
|
1267
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
1268
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
1269
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
exports3.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
1274
|
+
exports3.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
1275
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
1276
|
+
var lo = readUint(buf, pos + off0), hi = readUint(buf, pos + off1);
|
|
1277
|
+
var sign = (hi >> 31) * 2 + 1, exponent = hi >>> 20 & 2047, mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
1278
|
+
return exponent === 2047 ? mantissa ? NaN : sign * Infinity : exponent === 0 ? sign * 5e-324 * mantissa : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
1279
|
+
}
|
|
1280
|
+
exports3.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
1281
|
+
exports3.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
1282
|
+
})();
|
|
1283
|
+
return exports3;
|
|
1284
|
+
}
|
|
1285
|
+
function writeUintLE(val, buf, pos) {
|
|
1286
|
+
buf[pos] = val & 255;
|
|
1287
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1288
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1289
|
+
buf[pos + 3] = val >>> 24;
|
|
1290
|
+
}
|
|
1291
|
+
function writeUintBE(val, buf, pos) {
|
|
1292
|
+
buf[pos] = val >>> 24;
|
|
1293
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
1294
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
1295
|
+
buf[pos + 3] = val & 255;
|
|
1296
|
+
}
|
|
1297
|
+
function readUintLE(buf, pos) {
|
|
1298
|
+
return (buf[pos] | buf[pos + 1] << 8 | buf[pos + 2] << 16 | buf[pos + 3] << 24) >>> 0;
|
|
1299
|
+
}
|
|
1300
|
+
function readUintBE(buf, pos) {
|
|
1301
|
+
return (buf[pos] << 24 | buf[pos + 1] << 16 | buf[pos + 2] << 8 | buf[pos + 3]) >>> 0;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
// ../../node_modules/@protobufjs/inquire/index.js
|
|
1307
|
+
var require_inquire = __commonJS({
|
|
1308
|
+
"../../node_modules/@protobufjs/inquire/index.js"(exports, module) {
|
|
1309
|
+
"use strict";
|
|
1310
|
+
module.exports = inquire;
|
|
1311
|
+
function inquire(moduleName) {
|
|
1312
|
+
try {
|
|
1313
|
+
var mod = eval("quire".replace(/^/, "re"))(moduleName);
|
|
1314
|
+
if (mod && (mod.length || Object.keys(mod).length))
|
|
1315
|
+
return mod;
|
|
1316
|
+
} catch (e) {
|
|
1317
|
+
}
|
|
1318
|
+
return null;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
});
|
|
1322
|
+
|
|
1323
|
+
// ../../node_modules/@protobufjs/utf8/index.js
|
|
1324
|
+
var require_utf8 = __commonJS({
|
|
1325
|
+
"../../node_modules/@protobufjs/utf8/index.js"(exports2) {
|
|
1326
|
+
"use strict";
|
|
1327
|
+
var utf8 = exports2;
|
|
1328
|
+
utf8.length = function utf8_length(string) {
|
|
1329
|
+
var len = 0, c = 0;
|
|
1330
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1331
|
+
c = string.charCodeAt(i);
|
|
1332
|
+
if (c < 128)
|
|
1333
|
+
len += 1;
|
|
1334
|
+
else if (c < 2048)
|
|
1335
|
+
len += 2;
|
|
1336
|
+
else if ((c & 64512) === 55296 && (string.charCodeAt(i + 1) & 64512) === 56320) {
|
|
1337
|
+
++i;
|
|
1338
|
+
len += 4;
|
|
1339
|
+
} else
|
|
1340
|
+
len += 3;
|
|
1341
|
+
}
|
|
1342
|
+
return len;
|
|
1343
|
+
};
|
|
1344
|
+
utf8.read = function utf8_read(buffer, start, end) {
|
|
1345
|
+
var len = end - start;
|
|
1346
|
+
if (len < 1)
|
|
1347
|
+
return "";
|
|
1348
|
+
var parts = null, chunk = [], i = 0, t;
|
|
1349
|
+
while (start < end) {
|
|
1350
|
+
t = buffer[start++];
|
|
1351
|
+
if (t < 128)
|
|
1352
|
+
chunk[i++] = t;
|
|
1353
|
+
else if (t > 191 && t < 224)
|
|
1354
|
+
chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;
|
|
1355
|
+
else if (t > 239 && t < 365) {
|
|
1356
|
+
t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 65536;
|
|
1357
|
+
chunk[i++] = 55296 + (t >> 10);
|
|
1358
|
+
chunk[i++] = 56320 + (t & 1023);
|
|
1359
|
+
} else
|
|
1360
|
+
chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;
|
|
1361
|
+
if (i > 8191) {
|
|
1362
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1363
|
+
i = 0;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
if (parts) {
|
|
1367
|
+
if (i)
|
|
1368
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
1369
|
+
return parts.join("");
|
|
1370
|
+
}
|
|
1371
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
1372
|
+
};
|
|
1373
|
+
utf8.write = function utf8_write(string, buffer, offset) {
|
|
1374
|
+
var start = offset, c1, c2;
|
|
1375
|
+
for (var i = 0; i < string.length; ++i) {
|
|
1376
|
+
c1 = string.charCodeAt(i);
|
|
1377
|
+
if (c1 < 128) {
|
|
1378
|
+
buffer[offset++] = c1;
|
|
1379
|
+
} else if (c1 < 2048) {
|
|
1380
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
1381
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1382
|
+
} else if ((c1 & 64512) === 55296 && ((c2 = string.charCodeAt(i + 1)) & 64512) === 56320) {
|
|
1383
|
+
c1 = 65536 + ((c1 & 1023) << 10) + (c2 & 1023);
|
|
1384
|
+
++i;
|
|
1385
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
1386
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
1387
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1388
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1389
|
+
} else {
|
|
1390
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
1391
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
1392
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
return offset - start;
|
|
1396
|
+
};
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
// ../../node_modules/@protobufjs/pool/index.js
|
|
1401
|
+
var require_pool = __commonJS({
|
|
1402
|
+
"../../node_modules/@protobufjs/pool/index.js"(exports2, module2) {
|
|
1403
|
+
"use strict";
|
|
1404
|
+
module2.exports = pool;
|
|
1405
|
+
function pool(alloc, slice, size) {
|
|
1406
|
+
var SIZE = size || 8192;
|
|
1407
|
+
var MAX = SIZE >>> 1;
|
|
1408
|
+
var slab = null;
|
|
1409
|
+
var offset = SIZE;
|
|
1410
|
+
return function pool_alloc(size2) {
|
|
1411
|
+
if (size2 < 1 || size2 > MAX)
|
|
1412
|
+
return alloc(size2);
|
|
1413
|
+
if (offset + size2 > SIZE) {
|
|
1414
|
+
slab = alloc(SIZE);
|
|
1415
|
+
offset = 0;
|
|
1416
|
+
}
|
|
1417
|
+
var buf = slice.call(slab, offset, offset += size2);
|
|
1418
|
+
if (offset & 7)
|
|
1419
|
+
offset = (offset | 7) + 1;
|
|
1420
|
+
return buf;
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
|
|
1426
|
+
// ../../node_modules/protobufjs/src/util/longbits.js
|
|
1427
|
+
var require_longbits = __commonJS({
|
|
1428
|
+
"../../node_modules/protobufjs/src/util/longbits.js"(exports2, module2) {
|
|
1429
|
+
"use strict";
|
|
1430
|
+
module2.exports = LongBits;
|
|
1431
|
+
var util = require_minimal();
|
|
1432
|
+
function LongBits(lo, hi) {
|
|
1433
|
+
this.lo = lo >>> 0;
|
|
1434
|
+
this.hi = hi >>> 0;
|
|
1435
|
+
}
|
|
1436
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
1437
|
+
zero.toNumber = function() {
|
|
1438
|
+
return 0;
|
|
1439
|
+
};
|
|
1440
|
+
zero.zzEncode = zero.zzDecode = function() {
|
|
1441
|
+
return this;
|
|
1442
|
+
};
|
|
1443
|
+
zero.length = function() {
|
|
1444
|
+
return 1;
|
|
1445
|
+
};
|
|
1446
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
1447
|
+
LongBits.fromNumber = function fromNumber(value) {
|
|
1448
|
+
if (value === 0)
|
|
1449
|
+
return zero;
|
|
1450
|
+
var sign = value < 0;
|
|
1451
|
+
if (sign)
|
|
1452
|
+
value = -value;
|
|
1453
|
+
var lo = value >>> 0, hi = (value - lo) / 4294967296 >>> 0;
|
|
1454
|
+
if (sign) {
|
|
1455
|
+
hi = ~hi >>> 0;
|
|
1456
|
+
lo = ~lo >>> 0;
|
|
1457
|
+
if (++lo > 4294967295) {
|
|
1458
|
+
lo = 0;
|
|
1459
|
+
if (++hi > 4294967295)
|
|
1460
|
+
hi = 0;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
return new LongBits(lo, hi);
|
|
1464
|
+
};
|
|
1465
|
+
LongBits.from = function from(value) {
|
|
1466
|
+
if (typeof value === "number")
|
|
1467
|
+
return LongBits.fromNumber(value);
|
|
1468
|
+
if (util.isString(value)) {
|
|
1469
|
+
if (util.Long)
|
|
1470
|
+
value = util.Long.fromString(value);
|
|
1471
|
+
else
|
|
1472
|
+
return LongBits.fromNumber(parseInt(value, 10));
|
|
1473
|
+
}
|
|
1474
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
1475
|
+
};
|
|
1476
|
+
LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
1477
|
+
if (!unsigned && this.hi >>> 31) {
|
|
1478
|
+
var lo = ~this.lo + 1 >>> 0, hi = ~this.hi >>> 0;
|
|
1479
|
+
if (!lo)
|
|
1480
|
+
hi = hi + 1 >>> 0;
|
|
1481
|
+
return -(lo + hi * 4294967296);
|
|
1482
|
+
}
|
|
1483
|
+
return this.lo + this.hi * 4294967296;
|
|
1484
|
+
};
|
|
1485
|
+
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
1486
|
+
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) };
|
|
1487
|
+
};
|
|
1488
|
+
var charCodeAt = String.prototype.charCodeAt;
|
|
1489
|
+
LongBits.fromHash = function fromHash(hash) {
|
|
1490
|
+
if (hash === zeroHash)
|
|
1491
|
+
return zero;
|
|
1492
|
+
return new LongBits(
|
|
1493
|
+
(charCodeAt.call(hash, 0) | charCodeAt.call(hash, 1) << 8 | charCodeAt.call(hash, 2) << 16 | charCodeAt.call(hash, 3) << 24) >>> 0,
|
|
1494
|
+
(charCodeAt.call(hash, 4) | charCodeAt.call(hash, 5) << 8 | charCodeAt.call(hash, 6) << 16 | charCodeAt.call(hash, 7) << 24) >>> 0
|
|
1495
|
+
);
|
|
1496
|
+
};
|
|
1497
|
+
LongBits.prototype.toHash = function toHash() {
|
|
1498
|
+
return String.fromCharCode(
|
|
1499
|
+
this.lo & 255,
|
|
1500
|
+
this.lo >>> 8 & 255,
|
|
1501
|
+
this.lo >>> 16 & 255,
|
|
1502
|
+
this.lo >>> 24,
|
|
1503
|
+
this.hi & 255,
|
|
1504
|
+
this.hi >>> 8 & 255,
|
|
1505
|
+
this.hi >>> 16 & 255,
|
|
1506
|
+
this.hi >>> 24
|
|
1507
|
+
);
|
|
1508
|
+
};
|
|
1509
|
+
LongBits.prototype.zzEncode = function zzEncode() {
|
|
1510
|
+
var mask = this.hi >> 31;
|
|
1511
|
+
this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;
|
|
1512
|
+
this.lo = (this.lo << 1 ^ mask) >>> 0;
|
|
1513
|
+
return this;
|
|
1514
|
+
};
|
|
1515
|
+
LongBits.prototype.zzDecode = function zzDecode() {
|
|
1516
|
+
var mask = -(this.lo & 1);
|
|
1517
|
+
this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;
|
|
1518
|
+
this.hi = (this.hi >>> 1 ^ mask) >>> 0;
|
|
1519
|
+
return this;
|
|
1520
|
+
};
|
|
1521
|
+
LongBits.prototype.length = function length() {
|
|
1522
|
+
var part0 = this.lo, part1 = (this.lo >>> 28 | this.hi << 4) >>> 0, part2 = this.hi >>> 24;
|
|
1523
|
+
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;
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
// ../../node_modules/protobufjs/src/util/minimal.js
|
|
1529
|
+
var require_minimal = __commonJS({
|
|
1530
|
+
"../../node_modules/protobufjs/src/util/minimal.js"(exports2) {
|
|
1531
|
+
"use strict";
|
|
1532
|
+
var util = exports2;
|
|
1533
|
+
util.asPromise = require_aspromise();
|
|
1534
|
+
util.base64 = require_base64();
|
|
1535
|
+
util.EventEmitter = require_eventemitter();
|
|
1536
|
+
util.float = require_float();
|
|
1537
|
+
util.inquire = require_inquire();
|
|
1538
|
+
util.utf8 = require_utf8();
|
|
1539
|
+
util.pool = require_pool();
|
|
1540
|
+
util.LongBits = require_longbits();
|
|
1541
|
+
util.isNode = Boolean(typeof global !== "undefined" && global && global.process && global.process.versions && global.process.versions.node);
|
|
1542
|
+
util.global = util.isNode && global || typeof window !== "undefined" && window || typeof self !== "undefined" && self || exports2;
|
|
1543
|
+
util.emptyArray = Object.freeze ? Object.freeze([]) : (
|
|
1544
|
+
/* istanbul ignore next */
|
|
1545
|
+
[]
|
|
1546
|
+
);
|
|
1547
|
+
util.emptyObject = Object.freeze ? Object.freeze({}) : (
|
|
1548
|
+
/* istanbul ignore next */
|
|
1549
|
+
{}
|
|
1550
|
+
);
|
|
1551
|
+
util.isInteger = Number.isInteger || /* istanbul ignore next */
|
|
1552
|
+
function isInteger(value) {
|
|
1553
|
+
return typeof value === "number" && isFinite(value) && Math.floor(value) === value;
|
|
1554
|
+
};
|
|
1555
|
+
util.isString = function isString(value) {
|
|
1556
|
+
return typeof value === "string" || value instanceof String;
|
|
1557
|
+
};
|
|
1558
|
+
util.isObject = function isObject(value) {
|
|
1559
|
+
return value && typeof value === "object";
|
|
1560
|
+
};
|
|
1561
|
+
util.isset = /**
|
|
1562
|
+
* Checks if a property on a message is considered to be present.
|
|
1563
|
+
* @param {Object} obj Plain object or message instance
|
|
1564
|
+
* @param {string} prop Property name
|
|
1565
|
+
* @returns {boolean} `true` if considered to be present, otherwise `false`
|
|
1566
|
+
*/
|
|
1567
|
+
util.isSet = function isSet3(obj, prop) {
|
|
1568
|
+
var value = obj[prop];
|
|
1569
|
+
if (value != null && obj.hasOwnProperty(prop))
|
|
1570
|
+
return typeof value !== "object" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;
|
|
1571
|
+
return false;
|
|
1572
|
+
};
|
|
1573
|
+
util.Buffer = function() {
|
|
1574
|
+
try {
|
|
1575
|
+
var Buffer2 = util.inquire("buffer").Buffer;
|
|
1576
|
+
return Buffer2.prototype.utf8Write ? Buffer2 : (
|
|
1577
|
+
/* istanbul ignore next */
|
|
1578
|
+
null
|
|
1579
|
+
);
|
|
1580
|
+
} catch (e) {
|
|
1581
|
+
return null;
|
|
1582
|
+
}
|
|
1583
|
+
}();
|
|
1584
|
+
util._Buffer_from = null;
|
|
1585
|
+
util._Buffer_allocUnsafe = null;
|
|
1586
|
+
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
1587
|
+
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);
|
|
1588
|
+
};
|
|
1589
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
1590
|
+
util.Long = /* istanbul ignore next */
|
|
1591
|
+
util.global.dcodeIO && /* istanbul ignore next */
|
|
1592
|
+
util.global.dcodeIO.Long || /* istanbul ignore next */
|
|
1593
|
+
util.global.Long || util.inquire("long");
|
|
1594
|
+
util.key2Re = /^true|false|0|1$/;
|
|
1595
|
+
util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
1596
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
1597
|
+
util.longToHash = function longToHash(value) {
|
|
1598
|
+
return value ? util.LongBits.from(value).toHash() : util.LongBits.zeroHash;
|
|
1599
|
+
};
|
|
1600
|
+
util.longFromHash = function longFromHash(hash, unsigned) {
|
|
1601
|
+
var bits = util.LongBits.fromHash(hash);
|
|
1602
|
+
if (util.Long)
|
|
1603
|
+
return util.Long.fromBits(bits.lo, bits.hi, unsigned);
|
|
1604
|
+
return bits.toNumber(Boolean(unsigned));
|
|
1605
|
+
};
|
|
1606
|
+
function merge(dst, src, ifNotSet) {
|
|
1607
|
+
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
1608
|
+
if (dst[keys[i]] === void 0 || !ifNotSet)
|
|
1609
|
+
dst[keys[i]] = src[keys[i]];
|
|
1610
|
+
return dst;
|
|
1611
|
+
}
|
|
1612
|
+
util.merge = merge;
|
|
1613
|
+
util.lcFirst = function lcFirst(str) {
|
|
1614
|
+
return str.charAt(0).toLowerCase() + str.substring(1);
|
|
1615
|
+
};
|
|
1616
|
+
function newError(name) {
|
|
1617
|
+
function CustomError(message, properties) {
|
|
1618
|
+
if (!(this instanceof CustomError))
|
|
1619
|
+
return new CustomError(message, properties);
|
|
1620
|
+
Object.defineProperty(this, "message", { get: function() {
|
|
1621
|
+
return message;
|
|
1622
|
+
} });
|
|
1623
|
+
if (Error.captureStackTrace)
|
|
1624
|
+
Error.captureStackTrace(this, CustomError);
|
|
1625
|
+
else
|
|
1626
|
+
Object.defineProperty(this, "stack", { value: new Error().stack || "" });
|
|
1627
|
+
if (properties)
|
|
1628
|
+
merge(this, properties);
|
|
1629
|
+
}
|
|
1630
|
+
(CustomError.prototype = Object.create(Error.prototype)).constructor = CustomError;
|
|
1631
|
+
Object.defineProperty(CustomError.prototype, "name", { get: function() {
|
|
1632
|
+
return name;
|
|
1633
|
+
} });
|
|
1634
|
+
CustomError.prototype.toString = function toString() {
|
|
1635
|
+
return this.name + ": " + this.message;
|
|
1636
|
+
};
|
|
1637
|
+
return CustomError;
|
|
1638
|
+
}
|
|
1639
|
+
util.newError = newError;
|
|
1640
|
+
util.ProtocolError = newError("ProtocolError");
|
|
1641
|
+
util.oneOfGetter = function getOneOf(fieldNames) {
|
|
1642
|
+
var fieldMap = {};
|
|
1643
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1644
|
+
fieldMap[fieldNames[i]] = 1;
|
|
1645
|
+
return function() {
|
|
1646
|
+
for (var keys = Object.keys(this), i2 = keys.length - 1; i2 > -1; --i2)
|
|
1647
|
+
if (fieldMap[keys[i2]] === 1 && this[keys[i2]] !== void 0 && this[keys[i2]] !== null)
|
|
1648
|
+
return keys[i2];
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
util.oneOfSetter = function setOneOf(fieldNames) {
|
|
1652
|
+
return function(name) {
|
|
1653
|
+
for (var i = 0; i < fieldNames.length; ++i)
|
|
1654
|
+
if (fieldNames[i] !== name)
|
|
1655
|
+
delete this[fieldNames[i]];
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
util.toJSONOptions = {
|
|
1659
|
+
longs: String,
|
|
1660
|
+
enums: String,
|
|
1661
|
+
bytes: String,
|
|
1662
|
+
json: true
|
|
1663
|
+
};
|
|
1664
|
+
util._configure = function() {
|
|
1665
|
+
var Buffer2 = util.Buffer;
|
|
1666
|
+
if (!Buffer2) {
|
|
1667
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1670
|
+
util._Buffer_from = Buffer2.from !== Uint8Array.from && Buffer2.from || /* istanbul ignore next */
|
|
1671
|
+
function Buffer_from(value, encoding) {
|
|
1672
|
+
return new Buffer2(value, encoding);
|
|
1673
|
+
};
|
|
1674
|
+
util._Buffer_allocUnsafe = Buffer2.allocUnsafe || /* istanbul ignore next */
|
|
1675
|
+
function Buffer_allocUnsafe(size) {
|
|
1676
|
+
return new Buffer2(size);
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
});
|
|
1681
|
+
|
|
1682
|
+
// ../../node_modules/protobufjs/src/writer.js
|
|
1683
|
+
var require_writer = __commonJS({
|
|
1684
|
+
"../../node_modules/protobufjs/src/writer.js"(exports2, module2) {
|
|
1685
|
+
"use strict";
|
|
1686
|
+
module2.exports = Writer;
|
|
1687
|
+
var util = require_minimal();
|
|
1688
|
+
var BufferWriter;
|
|
1689
|
+
var LongBits = util.LongBits;
|
|
1690
|
+
var base64 = util.base64;
|
|
1691
|
+
var utf8 = util.utf8;
|
|
1692
|
+
function Op(fn, len, val) {
|
|
1693
|
+
this.fn = fn;
|
|
1694
|
+
this.len = len;
|
|
1695
|
+
this.next = void 0;
|
|
1696
|
+
this.val = val;
|
|
1697
|
+
}
|
|
1698
|
+
function noop() {
|
|
1699
|
+
}
|
|
1700
|
+
function State(writer) {
|
|
1701
|
+
this.head = writer.head;
|
|
1702
|
+
this.tail = writer.tail;
|
|
1703
|
+
this.len = writer.len;
|
|
1704
|
+
this.next = writer.states;
|
|
1705
|
+
}
|
|
1706
|
+
function Writer() {
|
|
1707
|
+
this.len = 0;
|
|
1708
|
+
this.head = new Op(noop, 0, 0);
|
|
1709
|
+
this.tail = this.head;
|
|
1710
|
+
this.states = null;
|
|
1711
|
+
}
|
|
1712
|
+
var create = function create2() {
|
|
1713
|
+
return util.Buffer ? function create_buffer_setup() {
|
|
1714
|
+
return (Writer.create = function create_buffer() {
|
|
1715
|
+
return new BufferWriter();
|
|
1716
|
+
})();
|
|
1717
|
+
} : function create_array() {
|
|
1718
|
+
return new Writer();
|
|
1719
|
+
};
|
|
1720
|
+
};
|
|
1721
|
+
Writer.create = create();
|
|
1722
|
+
Writer.alloc = function alloc(size) {
|
|
1723
|
+
return new util.Array(size);
|
|
1724
|
+
};
|
|
1725
|
+
if (util.Array !== Array)
|
|
1726
|
+
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
1727
|
+
Writer.prototype._push = function push(fn, len, val) {
|
|
1728
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
1729
|
+
this.len += len;
|
|
1730
|
+
return this;
|
|
1731
|
+
};
|
|
1732
|
+
function writeByte(val, buf, pos) {
|
|
1733
|
+
buf[pos] = val & 255;
|
|
1734
|
+
}
|
|
1735
|
+
function writeVarint32(val, buf, pos) {
|
|
1736
|
+
while (val > 127) {
|
|
1737
|
+
buf[pos++] = val & 127 | 128;
|
|
1738
|
+
val >>>= 7;
|
|
1739
|
+
}
|
|
1740
|
+
buf[pos] = val;
|
|
1741
|
+
}
|
|
1742
|
+
function VarintOp(len, val) {
|
|
1743
|
+
this.len = len;
|
|
1744
|
+
this.next = void 0;
|
|
1745
|
+
this.val = val;
|
|
1746
|
+
}
|
|
1747
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
1748
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
1749
|
+
Writer.prototype.uint32 = function write_uint32(value) {
|
|
1750
|
+
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
1751
|
+
(value = value >>> 0) < 128 ? 1 : value < 16384 ? 2 : value < 2097152 ? 3 : value < 268435456 ? 4 : 5,
|
|
1752
|
+
value
|
|
1753
|
+
)).len;
|
|
1754
|
+
return this;
|
|
1755
|
+
};
|
|
1756
|
+
Writer.prototype.int32 = function write_int32(value) {
|
|
1757
|
+
return value < 0 ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) : this.uint32(value);
|
|
1758
|
+
};
|
|
1759
|
+
Writer.prototype.sint32 = function write_sint32(value) {
|
|
1760
|
+
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
1761
|
+
};
|
|
1762
|
+
function writeVarint64(val, buf, pos) {
|
|
1763
|
+
while (val.hi) {
|
|
1764
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1765
|
+
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
1766
|
+
val.hi >>>= 7;
|
|
1767
|
+
}
|
|
1768
|
+
while (val.lo > 127) {
|
|
1769
|
+
buf[pos++] = val.lo & 127 | 128;
|
|
1770
|
+
val.lo = val.lo >>> 7;
|
|
1771
|
+
}
|
|
1772
|
+
buf[pos++] = val.lo;
|
|
1773
|
+
}
|
|
1774
|
+
Writer.prototype.uint64 = function write_uint64(value) {
|
|
1775
|
+
var bits = LongBits.from(value);
|
|
1776
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1777
|
+
};
|
|
1778
|
+
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
1779
|
+
Writer.prototype.sint64 = function write_sint64(value) {
|
|
1780
|
+
var bits = LongBits.from(value).zzEncode();
|
|
1781
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
1782
|
+
};
|
|
1783
|
+
Writer.prototype.bool = function write_bool(value) {
|
|
1784
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
1785
|
+
};
|
|
1786
|
+
function writeFixed32(val, buf, pos) {
|
|
1787
|
+
buf[pos] = val & 255;
|
|
1788
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
1789
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
1790
|
+
buf[pos + 3] = val >>> 24;
|
|
1791
|
+
}
|
|
1792
|
+
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
1793
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
1794
|
+
};
|
|
1795
|
+
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
1796
|
+
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
1797
|
+
var bits = LongBits.from(value);
|
|
1798
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
1799
|
+
};
|
|
1800
|
+
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
1801
|
+
Writer.prototype.float = function write_float(value) {
|
|
1802
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
1803
|
+
};
|
|
1804
|
+
Writer.prototype.double = function write_double(value) {
|
|
1805
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
1806
|
+
};
|
|
1807
|
+
var writeBytes = util.Array.prototype.set ? function writeBytes_set(val, buf, pos) {
|
|
1808
|
+
buf.set(val, pos);
|
|
1809
|
+
} : function writeBytes_for(val, buf, pos) {
|
|
1810
|
+
for (var i = 0; i < val.length; ++i)
|
|
1811
|
+
buf[pos + i] = val[i];
|
|
1812
|
+
};
|
|
1813
|
+
Writer.prototype.bytes = function write_bytes(value) {
|
|
1814
|
+
var len = value.length >>> 0;
|
|
1815
|
+
if (!len)
|
|
1816
|
+
return this._push(writeByte, 1, 0);
|
|
1817
|
+
if (util.isString(value)) {
|
|
1818
|
+
var buf = Writer.alloc(len = base64.length(value));
|
|
1819
|
+
base64.decode(value, buf, 0);
|
|
1820
|
+
value = buf;
|
|
1821
|
+
}
|
|
1822
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
1823
|
+
};
|
|
1824
|
+
Writer.prototype.string = function write_string(value) {
|
|
1825
|
+
var len = utf8.length(value);
|
|
1826
|
+
return len ? this.uint32(len)._push(utf8.write, len, value) : this._push(writeByte, 1, 0);
|
|
1827
|
+
};
|
|
1828
|
+
Writer.prototype.fork = function fork() {
|
|
1829
|
+
this.states = new State(this);
|
|
1830
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1831
|
+
this.len = 0;
|
|
1832
|
+
return this;
|
|
1833
|
+
};
|
|
1834
|
+
Writer.prototype.reset = function reset() {
|
|
1835
|
+
if (this.states) {
|
|
1836
|
+
this.head = this.states.head;
|
|
1837
|
+
this.tail = this.states.tail;
|
|
1838
|
+
this.len = this.states.len;
|
|
1839
|
+
this.states = this.states.next;
|
|
1840
|
+
} else {
|
|
1841
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
1842
|
+
this.len = 0;
|
|
1843
|
+
}
|
|
1844
|
+
return this;
|
|
1845
|
+
};
|
|
1846
|
+
Writer.prototype.ldelim = function ldelim() {
|
|
1847
|
+
var head = this.head, tail = this.tail, len = this.len;
|
|
1848
|
+
this.reset().uint32(len);
|
|
1849
|
+
if (len) {
|
|
1850
|
+
this.tail.next = head.next;
|
|
1851
|
+
this.tail = tail;
|
|
1852
|
+
this.len += len;
|
|
1853
|
+
}
|
|
1854
|
+
return this;
|
|
1855
|
+
};
|
|
1856
|
+
Writer.prototype.finish = function finish() {
|
|
1857
|
+
var head = this.head.next, buf = this.constructor.alloc(this.len), pos = 0;
|
|
1858
|
+
while (head) {
|
|
1859
|
+
head.fn(head.val, buf, pos);
|
|
1860
|
+
pos += head.len;
|
|
1861
|
+
head = head.next;
|
|
1862
|
+
}
|
|
1863
|
+
return buf;
|
|
1864
|
+
};
|
|
1865
|
+
Writer._configure = function(BufferWriter_) {
|
|
1866
|
+
BufferWriter = BufferWriter_;
|
|
1867
|
+
Writer.create = create();
|
|
1868
|
+
BufferWriter._configure();
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
|
|
1873
|
+
// ../../node_modules/protobufjs/src/writer_buffer.js
|
|
1874
|
+
var require_writer_buffer = __commonJS({
|
|
1875
|
+
"../../node_modules/protobufjs/src/writer_buffer.js"(exports2, module2) {
|
|
1876
|
+
"use strict";
|
|
1877
|
+
module2.exports = BufferWriter;
|
|
1878
|
+
var Writer = require_writer();
|
|
1879
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
1880
|
+
var util = require_minimal();
|
|
1881
|
+
function BufferWriter() {
|
|
1882
|
+
Writer.call(this);
|
|
1883
|
+
}
|
|
1884
|
+
BufferWriter._configure = function() {
|
|
1885
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
1886
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set" ? function writeBytesBuffer_set(val, buf, pos) {
|
|
1887
|
+
buf.set(val, pos);
|
|
1888
|
+
} : function writeBytesBuffer_copy(val, buf, pos) {
|
|
1889
|
+
if (val.copy)
|
|
1890
|
+
val.copy(buf, pos, 0, val.length);
|
|
1891
|
+
else for (var i = 0; i < val.length; )
|
|
1892
|
+
buf[pos++] = val[i++];
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1895
|
+
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
1896
|
+
if (util.isString(value))
|
|
1897
|
+
value = util._Buffer_from(value, "base64");
|
|
1898
|
+
var len = value.length >>> 0;
|
|
1899
|
+
this.uint32(len);
|
|
1900
|
+
if (len)
|
|
1901
|
+
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
1902
|
+
return this;
|
|
1903
|
+
};
|
|
1904
|
+
function writeStringBuffer(val, buf, pos) {
|
|
1905
|
+
if (val.length < 40)
|
|
1906
|
+
util.utf8.write(val, buf, pos);
|
|
1907
|
+
else if (buf.utf8Write)
|
|
1908
|
+
buf.utf8Write(val, pos);
|
|
1909
|
+
else
|
|
1910
|
+
buf.write(val, pos);
|
|
1911
|
+
}
|
|
1912
|
+
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
1913
|
+
var len = util.Buffer.byteLength(value);
|
|
1914
|
+
this.uint32(len);
|
|
1915
|
+
if (len)
|
|
1916
|
+
this._push(writeStringBuffer, len, value);
|
|
1917
|
+
return this;
|
|
1918
|
+
};
|
|
1919
|
+
BufferWriter._configure();
|
|
1920
|
+
}
|
|
1921
|
+
});
|
|
1922
|
+
|
|
1923
|
+
// ../../node_modules/protobufjs/src/reader.js
|
|
1924
|
+
var require_reader = __commonJS({
|
|
1925
|
+
"../../node_modules/protobufjs/src/reader.js"(exports2, module2) {
|
|
1926
|
+
"use strict";
|
|
1927
|
+
module2.exports = Reader;
|
|
1928
|
+
var util = require_minimal();
|
|
1929
|
+
var BufferReader;
|
|
1930
|
+
var LongBits = util.LongBits;
|
|
1931
|
+
var utf8 = util.utf8;
|
|
1932
|
+
function indexOutOfRange(reader, writeLength) {
|
|
1933
|
+
return RangeError("index out of range: " + reader.pos + " + " + (writeLength || 1) + " > " + reader.len);
|
|
1934
|
+
}
|
|
1935
|
+
function Reader(buffer) {
|
|
1936
|
+
this.buf = buffer;
|
|
1937
|
+
this.pos = 0;
|
|
1938
|
+
this.len = buffer.length;
|
|
1939
|
+
}
|
|
1940
|
+
var create_array = typeof Uint8Array !== "undefined" ? function create_typed_array(buffer) {
|
|
1941
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
1942
|
+
return new Reader(buffer);
|
|
1943
|
+
throw Error("illegal buffer");
|
|
1944
|
+
} : function create_array2(buffer) {
|
|
1945
|
+
if (Array.isArray(buffer))
|
|
1946
|
+
return new Reader(buffer);
|
|
1947
|
+
throw Error("illegal buffer");
|
|
1948
|
+
};
|
|
1949
|
+
var create = function create2() {
|
|
1950
|
+
return util.Buffer ? function create_buffer_setup(buffer) {
|
|
1951
|
+
return (Reader.create = function create_buffer(buffer2) {
|
|
1952
|
+
return util.Buffer.isBuffer(buffer2) ? new BufferReader(buffer2) : create_array(buffer2);
|
|
1953
|
+
})(buffer);
|
|
1954
|
+
} : create_array;
|
|
1955
|
+
};
|
|
1956
|
+
Reader.create = create();
|
|
1957
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1958
|
+
util.Array.prototype.slice;
|
|
1959
|
+
Reader.prototype.uint32 = /* @__PURE__ */ function read_uint32_setup() {
|
|
1960
|
+
var value = 4294967295;
|
|
1961
|
+
return function read_uint32() {
|
|
1962
|
+
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1963
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1964
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0;
|
|
1965
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1966
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0;
|
|
1967
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1968
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0;
|
|
1969
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1970
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0;
|
|
1971
|
+
if (this.buf[this.pos++] < 128) return value;
|
|
1972
|
+
if ((this.pos += 5) > this.len) {
|
|
1973
|
+
this.pos = this.len;
|
|
1974
|
+
throw indexOutOfRange(this, 10);
|
|
1975
|
+
}
|
|
1976
|
+
return value;
|
|
1977
|
+
};
|
|
1978
|
+
}();
|
|
1979
|
+
Reader.prototype.int32 = function read_int32() {
|
|
1980
|
+
return this.uint32() | 0;
|
|
1981
|
+
};
|
|
1982
|
+
Reader.prototype.sint32 = function read_sint32() {
|
|
1983
|
+
var value = this.uint32();
|
|
1984
|
+
return value >>> 1 ^ -(value & 1) | 0;
|
|
1985
|
+
};
|
|
1986
|
+
function readLongVarint() {
|
|
1987
|
+
var bits = new LongBits(0, 0);
|
|
1988
|
+
var i = 0;
|
|
1989
|
+
if (this.len - this.pos > 4) {
|
|
1990
|
+
for (; i < 4; ++i) {
|
|
1991
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
1992
|
+
if (this.buf[this.pos++] < 128)
|
|
1993
|
+
return bits;
|
|
1994
|
+
}
|
|
1995
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;
|
|
1996
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;
|
|
1997
|
+
if (this.buf[this.pos++] < 128)
|
|
1998
|
+
return bits;
|
|
1999
|
+
i = 0;
|
|
2000
|
+
} else {
|
|
2001
|
+
for (; i < 3; ++i) {
|
|
2002
|
+
if (this.pos >= this.len)
|
|
2003
|
+
throw indexOutOfRange(this);
|
|
2004
|
+
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
2005
|
+
if (this.buf[this.pos++] < 128)
|
|
2006
|
+
return bits;
|
|
2007
|
+
}
|
|
2008
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
2009
|
+
return bits;
|
|
2010
|
+
}
|
|
2011
|
+
if (this.len - this.pos > 4) {
|
|
2012
|
+
for (; i < 5; ++i) {
|
|
2013
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2014
|
+
if (this.buf[this.pos++] < 128)
|
|
2015
|
+
return bits;
|
|
2016
|
+
}
|
|
2017
|
+
} else {
|
|
2018
|
+
for (; i < 5; ++i) {
|
|
2019
|
+
if (this.pos >= this.len)
|
|
2020
|
+
throw indexOutOfRange(this);
|
|
2021
|
+
bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;
|
|
2022
|
+
if (this.buf[this.pos++] < 128)
|
|
2023
|
+
return bits;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
throw Error("invalid varint encoding");
|
|
2027
|
+
}
|
|
2028
|
+
Reader.prototype.bool = function read_bool() {
|
|
2029
|
+
return this.uint32() !== 0;
|
|
2030
|
+
};
|
|
2031
|
+
function readFixed32_end(buf, end) {
|
|
2032
|
+
return (buf[end - 4] | buf[end - 3] << 8 | buf[end - 2] << 16 | buf[end - 1] << 24) >>> 0;
|
|
2033
|
+
}
|
|
2034
|
+
Reader.prototype.fixed32 = function read_fixed32() {
|
|
2035
|
+
if (this.pos + 4 > this.len)
|
|
2036
|
+
throw indexOutOfRange(this, 4);
|
|
2037
|
+
return readFixed32_end(this.buf, this.pos += 4);
|
|
2038
|
+
};
|
|
2039
|
+
Reader.prototype.sfixed32 = function read_sfixed32() {
|
|
2040
|
+
if (this.pos + 4 > this.len)
|
|
2041
|
+
throw indexOutOfRange(this, 4);
|
|
2042
|
+
return readFixed32_end(this.buf, this.pos += 4) | 0;
|
|
2043
|
+
};
|
|
2044
|
+
function readFixed64() {
|
|
2045
|
+
if (this.pos + 8 > this.len)
|
|
2046
|
+
throw indexOutOfRange(this, 8);
|
|
2047
|
+
return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));
|
|
2048
|
+
}
|
|
2049
|
+
Reader.prototype.float = function read_float() {
|
|
2050
|
+
if (this.pos + 4 > this.len)
|
|
2051
|
+
throw indexOutOfRange(this, 4);
|
|
2052
|
+
var value = util.float.readFloatLE(this.buf, this.pos);
|
|
2053
|
+
this.pos += 4;
|
|
2054
|
+
return value;
|
|
2055
|
+
};
|
|
2056
|
+
Reader.prototype.double = function read_double() {
|
|
2057
|
+
if (this.pos + 8 > this.len)
|
|
2058
|
+
throw indexOutOfRange(this, 4);
|
|
2059
|
+
var value = util.float.readDoubleLE(this.buf, this.pos);
|
|
2060
|
+
this.pos += 8;
|
|
2061
|
+
return value;
|
|
2062
|
+
};
|
|
2063
|
+
Reader.prototype.bytes = function read_bytes() {
|
|
2064
|
+
var length = this.uint32(), start = this.pos, end = this.pos + length;
|
|
2065
|
+
if (end > this.len)
|
|
2066
|
+
throw indexOutOfRange(this, length);
|
|
2067
|
+
this.pos += length;
|
|
2068
|
+
if (Array.isArray(this.buf))
|
|
2069
|
+
return this.buf.slice(start, end);
|
|
2070
|
+
return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
|
|
2071
|
+
};
|
|
2072
|
+
Reader.prototype.string = function read_string() {
|
|
2073
|
+
var bytes = this.bytes();
|
|
2074
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
2075
|
+
};
|
|
2076
|
+
Reader.prototype.skip = function skip(length) {
|
|
2077
|
+
if (typeof length === "number") {
|
|
2078
|
+
if (this.pos + length > this.len)
|
|
2079
|
+
throw indexOutOfRange(this, length);
|
|
2080
|
+
this.pos += length;
|
|
2081
|
+
} else {
|
|
2082
|
+
do {
|
|
2083
|
+
if (this.pos >= this.len)
|
|
2084
|
+
throw indexOutOfRange(this);
|
|
2085
|
+
} while (this.buf[this.pos++] & 128);
|
|
2086
|
+
}
|
|
2087
|
+
return this;
|
|
2088
|
+
};
|
|
2089
|
+
Reader.prototype.skipType = function(wireType) {
|
|
2090
|
+
switch (wireType) {
|
|
2091
|
+
case 0:
|
|
2092
|
+
this.skip();
|
|
2093
|
+
break;
|
|
2094
|
+
case 1:
|
|
2095
|
+
this.skip(8);
|
|
2096
|
+
break;
|
|
2097
|
+
case 2:
|
|
2098
|
+
this.skip(this.uint32());
|
|
2099
|
+
break;
|
|
2100
|
+
case 3:
|
|
2101
|
+
while ((wireType = this.uint32() & 7) !== 4) {
|
|
2102
|
+
this.skipType(wireType);
|
|
2103
|
+
}
|
|
2104
|
+
break;
|
|
2105
|
+
case 5:
|
|
2106
|
+
this.skip(4);
|
|
2107
|
+
break;
|
|
2108
|
+
/* istanbul ignore next */
|
|
2109
|
+
default:
|
|
2110
|
+
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
|
|
2111
|
+
}
|
|
2112
|
+
return this;
|
|
2113
|
+
};
|
|
2114
|
+
Reader._configure = function(BufferReader_) {
|
|
2115
|
+
BufferReader = BufferReader_;
|
|
2116
|
+
Reader.create = create();
|
|
2117
|
+
BufferReader._configure();
|
|
2118
|
+
var fn = util.Long ? "toLong" : (
|
|
2119
|
+
/* istanbul ignore next */
|
|
2120
|
+
"toNumber"
|
|
2121
|
+
);
|
|
2122
|
+
util.merge(Reader.prototype, {
|
|
2123
|
+
int64: function read_int64() {
|
|
2124
|
+
return readLongVarint.call(this)[fn](false);
|
|
2125
|
+
},
|
|
2126
|
+
uint64: function read_uint64() {
|
|
2127
|
+
return readLongVarint.call(this)[fn](true);
|
|
2128
|
+
},
|
|
2129
|
+
sint64: function read_sint64() {
|
|
2130
|
+
return readLongVarint.call(this).zzDecode()[fn](false);
|
|
2131
|
+
},
|
|
2132
|
+
fixed64: function read_fixed64() {
|
|
2133
|
+
return readFixed64.call(this)[fn](true);
|
|
2134
|
+
},
|
|
2135
|
+
sfixed64: function read_sfixed64() {
|
|
2136
|
+
return readFixed64.call(this)[fn](false);
|
|
2137
|
+
}
|
|
2138
|
+
});
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
// ../../node_modules/protobufjs/src/reader_buffer.js
|
|
2144
|
+
var require_reader_buffer = __commonJS({
|
|
2145
|
+
"../../node_modules/protobufjs/src/reader_buffer.js"(exports2, module2) {
|
|
2146
|
+
"use strict";
|
|
2147
|
+
module2.exports = BufferReader;
|
|
2148
|
+
var Reader = require_reader();
|
|
2149
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
2150
|
+
var util = require_minimal();
|
|
2151
|
+
function BufferReader(buffer) {
|
|
2152
|
+
Reader.call(this, buffer);
|
|
2153
|
+
}
|
|
2154
|
+
BufferReader._configure = function() {
|
|
2155
|
+
if (util.Buffer)
|
|
2156
|
+
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
2157
|
+
};
|
|
2158
|
+
BufferReader.prototype.string = function read_string_buffer() {
|
|
2159
|
+
var len = this.uint32();
|
|
2160
|
+
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));
|
|
2161
|
+
};
|
|
2162
|
+
BufferReader._configure();
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
|
|
2166
|
+
// ../../node_modules/protobufjs/src/rpc/service.js
|
|
2167
|
+
var require_service = __commonJS({
|
|
2168
|
+
"../../node_modules/protobufjs/src/rpc/service.js"(exports2, module2) {
|
|
2169
|
+
"use strict";
|
|
2170
|
+
module2.exports = Service;
|
|
2171
|
+
var util = require_minimal();
|
|
2172
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
2173
|
+
function Service(rpcImpl, requestDelimited, responseDelimited) {
|
|
2174
|
+
if (typeof rpcImpl !== "function")
|
|
2175
|
+
throw TypeError("rpcImpl must be a function");
|
|
2176
|
+
util.EventEmitter.call(this);
|
|
2177
|
+
this.rpcImpl = rpcImpl;
|
|
2178
|
+
this.requestDelimited = Boolean(requestDelimited);
|
|
2179
|
+
this.responseDelimited = Boolean(responseDelimited);
|
|
2180
|
+
}
|
|
2181
|
+
Service.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {
|
|
2182
|
+
if (!request)
|
|
2183
|
+
throw TypeError("request must be specified");
|
|
2184
|
+
var self2 = this;
|
|
2185
|
+
if (!callback)
|
|
2186
|
+
return util.asPromise(rpcCall, self2, method, requestCtor, responseCtor, request);
|
|
2187
|
+
if (!self2.rpcImpl) {
|
|
2188
|
+
setTimeout(function() {
|
|
2189
|
+
callback(Error("already ended"));
|
|
2190
|
+
}, 0);
|
|
2191
|
+
return void 0;
|
|
2192
|
+
}
|
|
2193
|
+
try {
|
|
2194
|
+
return self2.rpcImpl(
|
|
2195
|
+
method,
|
|
2196
|
+
requestCtor[self2.requestDelimited ? "encodeDelimited" : "encode"](request).finish(),
|
|
2197
|
+
function rpcCallback(err, response) {
|
|
2198
|
+
if (err) {
|
|
2199
|
+
self2.emit("error", err, method);
|
|
2200
|
+
return callback(err);
|
|
2201
|
+
}
|
|
2202
|
+
if (response === null) {
|
|
2203
|
+
self2.end(
|
|
2204
|
+
/* endedByRPC */
|
|
2205
|
+
true
|
|
2206
|
+
);
|
|
2207
|
+
return void 0;
|
|
2208
|
+
}
|
|
2209
|
+
if (!(response instanceof responseCtor)) {
|
|
2210
|
+
try {
|
|
2211
|
+
response = responseCtor[self2.responseDelimited ? "decodeDelimited" : "decode"](response);
|
|
2212
|
+
} catch (err2) {
|
|
2213
|
+
self2.emit("error", err2, method);
|
|
2214
|
+
return callback(err2);
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
self2.emit("data", response, method);
|
|
2218
|
+
return callback(null, response);
|
|
2219
|
+
}
|
|
2220
|
+
);
|
|
2221
|
+
} catch (err) {
|
|
2222
|
+
self2.emit("error", err, method);
|
|
2223
|
+
setTimeout(function() {
|
|
2224
|
+
callback(err);
|
|
2225
|
+
}, 0);
|
|
2226
|
+
return void 0;
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
Service.prototype.end = function end(endedByRPC) {
|
|
2230
|
+
if (this.rpcImpl) {
|
|
2231
|
+
if (!endedByRPC)
|
|
2232
|
+
this.rpcImpl(null, null, null);
|
|
2233
|
+
this.rpcImpl = null;
|
|
2234
|
+
this.emit("end").off();
|
|
2235
|
+
}
|
|
2236
|
+
return this;
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
|
|
2241
|
+
// ../../node_modules/protobufjs/src/rpc.js
|
|
2242
|
+
var require_rpc = __commonJS({
|
|
2243
|
+
"../../node_modules/protobufjs/src/rpc.js"(exports2) {
|
|
2244
|
+
"use strict";
|
|
2245
|
+
var rpc = exports2;
|
|
2246
|
+
rpc.Service = require_service();
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
|
|
2250
|
+
// ../../node_modules/protobufjs/src/roots.js
|
|
2251
|
+
var require_roots = __commonJS({
|
|
2252
|
+
"../../node_modules/protobufjs/src/roots.js"(exports2, module2) {
|
|
2253
|
+
"use strict";
|
|
2254
|
+
module2.exports = {};
|
|
2255
|
+
}
|
|
2256
|
+
});
|
|
2257
|
+
|
|
2258
|
+
// ../../node_modules/protobufjs/src/index-minimal.js
|
|
2259
|
+
var require_index_minimal = __commonJS({
|
|
2260
|
+
"../../node_modules/protobufjs/src/index-minimal.js"(exports2) {
|
|
2261
|
+
"use strict";
|
|
2262
|
+
var protobuf = exports2;
|
|
2263
|
+
protobuf.build = "minimal";
|
|
2264
|
+
protobuf.Writer = require_writer();
|
|
2265
|
+
protobuf.BufferWriter = require_writer_buffer();
|
|
2266
|
+
protobuf.Reader = require_reader();
|
|
2267
|
+
protobuf.BufferReader = require_reader_buffer();
|
|
2268
|
+
protobuf.util = require_minimal();
|
|
2269
|
+
protobuf.rpc = require_rpc();
|
|
2270
|
+
protobuf.roots = require_roots();
|
|
2271
|
+
protobuf.configure = configure;
|
|
2272
|
+
function configure() {
|
|
2273
|
+
protobuf.util._configure();
|
|
2274
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
2275
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
2276
|
+
}
|
|
2277
|
+
configure();
|
|
2278
|
+
}
|
|
2279
|
+
});
|
|
2280
|
+
|
|
2281
|
+
// ../../node_modules/protobufjs/minimal.js
|
|
2282
|
+
var require_minimal2 = __commonJS({
|
|
2283
|
+
"../../node_modules/protobufjs/minimal.js"(exports2, module2) {
|
|
2284
|
+
"use strict";
|
|
2285
|
+
module2.exports = require_index_minimal();
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
|
|
54
2289
|
// index.ts
|
|
55
2290
|
var index_exports = {};
|
|
56
2291
|
__export(index_exports, {
|
|
@@ -699,36 +2934,682 @@ function buildFetchOptions(method, options, bodyJson) {
|
|
|
699
2934
|
if (bodyJson) {
|
|
700
2935
|
fetchOptions.body = bodyJson;
|
|
701
2936
|
}
|
|
702
|
-
return fetchOptions;
|
|
2937
|
+
return fetchOptions;
|
|
2938
|
+
}
|
|
2939
|
+
function b64EncodeUnicode(str) {
|
|
2940
|
+
return encode(encodeURIComponent(str).replace(
|
|
2941
|
+
/%([0-9A-F]{2})/g,
|
|
2942
|
+
function toSolidBytes(_match, p1) {
|
|
2943
|
+
return String.fromCharCode(Number("0x" + p1));
|
|
2944
|
+
}
|
|
2945
|
+
));
|
|
2946
|
+
}
|
|
2947
|
+
function b64DecodeUnicode(str) {
|
|
2948
|
+
return decodeURIComponent(decode2(str).split("").map(function(c) {
|
|
2949
|
+
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
|
2950
|
+
}).join(""));
|
|
2951
|
+
}
|
|
2952
|
+
function safeJSONParse(jsonStr) {
|
|
2953
|
+
try {
|
|
2954
|
+
return JSON.parse(jsonStr);
|
|
2955
|
+
} catch (error) {
|
|
2956
|
+
if (jsonStr !== "") {
|
|
2957
|
+
const fixedJsonStr = jsonStr.replace(/\n/g, "\\n");
|
|
2958
|
+
try {
|
|
2959
|
+
return JSON.parse(fixedJsonStr);
|
|
2960
|
+
} catch (e) {
|
|
2961
|
+
console.error("Error parsing JSON:", jsonStr, error);
|
|
2962
|
+
}
|
|
2963
|
+
}
|
|
2964
|
+
return { t: jsonStr };
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
// api/api.ts
|
|
2969
|
+
var import_long3 = __toESM(require_long());
|
|
2970
|
+
var import_minimal4 = __toESM(require_minimal2());
|
|
2971
|
+
|
|
2972
|
+
// google/protobuf/struct.ts
|
|
2973
|
+
var import_minimal = __toESM(require_minimal2());
|
|
2974
|
+
|
|
2975
|
+
// google/protobuf/timestamp.ts
|
|
2976
|
+
var import_long = __toESM(require_long());
|
|
2977
|
+
var import_minimal2 = __toESM(require_minimal2());
|
|
2978
|
+
function createBaseTimestamp() {
|
|
2979
|
+
return { seconds: 0, nanos: 0 };
|
|
2980
|
+
}
|
|
2981
|
+
var Timestamp = {
|
|
2982
|
+
encode(message, writer = import_minimal2.default.Writer.create()) {
|
|
2983
|
+
if (message.seconds !== 0) {
|
|
2984
|
+
writer.uint32(8).int64(message.seconds);
|
|
2985
|
+
}
|
|
2986
|
+
if (message.nanos !== 0) {
|
|
2987
|
+
writer.uint32(16).int32(message.nanos);
|
|
2988
|
+
}
|
|
2989
|
+
return writer;
|
|
2990
|
+
},
|
|
2991
|
+
decode(input, length) {
|
|
2992
|
+
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
|
2993
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2994
|
+
const message = createBaseTimestamp();
|
|
2995
|
+
while (reader.pos < end) {
|
|
2996
|
+
const tag = reader.uint32();
|
|
2997
|
+
switch (tag >>> 3) {
|
|
2998
|
+
case 1:
|
|
2999
|
+
if (tag !== 8) {
|
|
3000
|
+
break;
|
|
3001
|
+
}
|
|
3002
|
+
message.seconds = longToNumber(reader.int64());
|
|
3003
|
+
continue;
|
|
3004
|
+
case 2:
|
|
3005
|
+
if (tag !== 16) {
|
|
3006
|
+
break;
|
|
3007
|
+
}
|
|
3008
|
+
message.nanos = reader.int32();
|
|
3009
|
+
continue;
|
|
3010
|
+
}
|
|
3011
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3012
|
+
break;
|
|
3013
|
+
}
|
|
3014
|
+
reader.skipType(tag & 7);
|
|
3015
|
+
}
|
|
3016
|
+
return message;
|
|
3017
|
+
},
|
|
3018
|
+
fromJSON(object) {
|
|
3019
|
+
return {
|
|
3020
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
3021
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0
|
|
3022
|
+
};
|
|
3023
|
+
},
|
|
3024
|
+
toJSON(message) {
|
|
3025
|
+
const obj = {};
|
|
3026
|
+
if (message.seconds !== 0) {
|
|
3027
|
+
obj.seconds = Math.round(message.seconds);
|
|
3028
|
+
}
|
|
3029
|
+
if (message.nanos !== 0) {
|
|
3030
|
+
obj.nanos = Math.round(message.nanos);
|
|
3031
|
+
}
|
|
3032
|
+
return obj;
|
|
3033
|
+
},
|
|
3034
|
+
create(base) {
|
|
3035
|
+
return Timestamp.fromPartial(base != null ? base : {});
|
|
3036
|
+
},
|
|
3037
|
+
fromPartial(object) {
|
|
3038
|
+
var _a, _b;
|
|
3039
|
+
const message = createBaseTimestamp();
|
|
3040
|
+
message.seconds = (_a = object.seconds) != null ? _a : 0;
|
|
3041
|
+
message.nanos = (_b = object.nanos) != null ? _b : 0;
|
|
3042
|
+
return message;
|
|
3043
|
+
}
|
|
3044
|
+
};
|
|
3045
|
+
function longToNumber(long) {
|
|
3046
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3047
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3048
|
+
}
|
|
3049
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
3050
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
3051
|
+
}
|
|
3052
|
+
return long.toNumber();
|
|
3053
|
+
}
|
|
3054
|
+
if (import_minimal2.default.util.Long !== import_long.default) {
|
|
3055
|
+
import_minimal2.default.util.Long = import_long.default;
|
|
3056
|
+
import_minimal2.default.configure();
|
|
3057
|
+
}
|
|
3058
|
+
function isSet(value) {
|
|
3059
|
+
return value !== null && value !== void 0;
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
// google/protobuf/wrappers.ts
|
|
3063
|
+
var import_long2 = __toESM(require_long());
|
|
3064
|
+
var import_minimal3 = __toESM(require_minimal2());
|
|
3065
|
+
if (import_minimal3.default.util.Long !== import_long2.default) {
|
|
3066
|
+
import_minimal3.default.util.Long = import_long2.default;
|
|
3067
|
+
import_minimal3.default.configure();
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
// api/api.ts
|
|
3071
|
+
function createBaseAccount() {
|
|
3072
|
+
return {
|
|
3073
|
+
user: void 0,
|
|
3074
|
+
email: "",
|
|
3075
|
+
qr_code: "",
|
|
3076
|
+
verify_time: void 0,
|
|
3077
|
+
disable_time: void 0,
|
|
3078
|
+
logo: "",
|
|
3079
|
+
splash_screen: "",
|
|
3080
|
+
encrypt_private_key: "",
|
|
3081
|
+
password_setted: false
|
|
3082
|
+
};
|
|
3083
|
+
}
|
|
3084
|
+
var Account = {
|
|
3085
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3086
|
+
if (message.user !== void 0) {
|
|
3087
|
+
User.encode(message.user, writer.uint32(10).fork()).ldelim();
|
|
3088
|
+
}
|
|
3089
|
+
if (message.email !== "") {
|
|
3090
|
+
writer.uint32(18).string(message.email);
|
|
3091
|
+
}
|
|
3092
|
+
if (message.qr_code !== "") {
|
|
3093
|
+
writer.uint32(26).string(message.qr_code);
|
|
3094
|
+
}
|
|
3095
|
+
if (message.verify_time !== void 0) {
|
|
3096
|
+
Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
|
|
3097
|
+
}
|
|
3098
|
+
if (message.disable_time !== void 0) {
|
|
3099
|
+
Timestamp.encode(toTimestamp(message.disable_time), writer.uint32(42).fork()).ldelim();
|
|
3100
|
+
}
|
|
3101
|
+
if (message.logo !== "") {
|
|
3102
|
+
writer.uint32(50).string(message.logo);
|
|
3103
|
+
}
|
|
3104
|
+
if (message.splash_screen !== "") {
|
|
3105
|
+
writer.uint32(58).string(message.splash_screen);
|
|
3106
|
+
}
|
|
3107
|
+
if (message.encrypt_private_key !== "") {
|
|
3108
|
+
writer.uint32(66).string(message.encrypt_private_key);
|
|
3109
|
+
}
|
|
3110
|
+
if (message.password_setted !== false) {
|
|
3111
|
+
writer.uint32(72).bool(message.password_setted);
|
|
3112
|
+
}
|
|
3113
|
+
return writer;
|
|
3114
|
+
},
|
|
3115
|
+
decode(input, length) {
|
|
3116
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3117
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3118
|
+
const message = createBaseAccount();
|
|
3119
|
+
while (reader.pos < end) {
|
|
3120
|
+
const tag = reader.uint32();
|
|
3121
|
+
switch (tag >>> 3) {
|
|
3122
|
+
case 1:
|
|
3123
|
+
if (tag !== 10) {
|
|
3124
|
+
break;
|
|
3125
|
+
}
|
|
3126
|
+
message.user = User.decode(reader, reader.uint32());
|
|
3127
|
+
continue;
|
|
3128
|
+
case 2:
|
|
3129
|
+
if (tag !== 18) {
|
|
3130
|
+
break;
|
|
3131
|
+
}
|
|
3132
|
+
message.email = reader.string();
|
|
3133
|
+
continue;
|
|
3134
|
+
case 3:
|
|
3135
|
+
if (tag !== 26) {
|
|
3136
|
+
break;
|
|
3137
|
+
}
|
|
3138
|
+
message.qr_code = reader.string();
|
|
3139
|
+
continue;
|
|
3140
|
+
case 4:
|
|
3141
|
+
if (tag !== 34) {
|
|
3142
|
+
break;
|
|
3143
|
+
}
|
|
3144
|
+
message.verify_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3145
|
+
continue;
|
|
3146
|
+
case 5:
|
|
3147
|
+
if (tag !== 42) {
|
|
3148
|
+
break;
|
|
3149
|
+
}
|
|
3150
|
+
message.disable_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3151
|
+
continue;
|
|
3152
|
+
case 6:
|
|
3153
|
+
if (tag !== 50) {
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
message.logo = reader.string();
|
|
3157
|
+
continue;
|
|
3158
|
+
case 7:
|
|
3159
|
+
if (tag !== 58) {
|
|
3160
|
+
break;
|
|
3161
|
+
}
|
|
3162
|
+
message.splash_screen = reader.string();
|
|
3163
|
+
continue;
|
|
3164
|
+
case 8:
|
|
3165
|
+
if (tag !== 66) {
|
|
3166
|
+
break;
|
|
3167
|
+
}
|
|
3168
|
+
message.encrypt_private_key = reader.string();
|
|
3169
|
+
continue;
|
|
3170
|
+
case 9:
|
|
3171
|
+
if (tag !== 72) {
|
|
3172
|
+
break;
|
|
3173
|
+
}
|
|
3174
|
+
message.password_setted = reader.bool();
|
|
3175
|
+
continue;
|
|
3176
|
+
}
|
|
3177
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3178
|
+
break;
|
|
3179
|
+
}
|
|
3180
|
+
reader.skipType(tag & 7);
|
|
3181
|
+
}
|
|
3182
|
+
return message;
|
|
3183
|
+
},
|
|
3184
|
+
fromJSON(object) {
|
|
3185
|
+
return {
|
|
3186
|
+
user: isSet2(object.user) ? User.fromJSON(object.user) : void 0,
|
|
3187
|
+
email: isSet2(object.email) ? globalThis.String(object.email) : "",
|
|
3188
|
+
qr_code: isSet2(object.qr_code) ? globalThis.String(object.qr_code) : "",
|
|
3189
|
+
verify_time: isSet2(object.verify_time) ? fromJsonTimestamp(object.verify_time) : void 0,
|
|
3190
|
+
disable_time: isSet2(object.disable_time) ? fromJsonTimestamp(object.disable_time) : void 0,
|
|
3191
|
+
logo: isSet2(object.logo) ? globalThis.String(object.logo) : "",
|
|
3192
|
+
splash_screen: isSet2(object.splash_screen) ? globalThis.String(object.splash_screen) : "",
|
|
3193
|
+
encrypt_private_key: isSet2(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
3194
|
+
password_setted: isSet2(object.password_setted) ? globalThis.Boolean(object.password_setted) : false
|
|
3195
|
+
};
|
|
3196
|
+
},
|
|
3197
|
+
toJSON(message) {
|
|
3198
|
+
const obj = {};
|
|
3199
|
+
if (message.user !== void 0) {
|
|
3200
|
+
obj.user = User.toJSON(message.user);
|
|
3201
|
+
}
|
|
3202
|
+
if (message.email !== "") {
|
|
3203
|
+
obj.email = message.email;
|
|
3204
|
+
}
|
|
3205
|
+
if (message.qr_code !== "") {
|
|
3206
|
+
obj.qr_code = message.qr_code;
|
|
3207
|
+
}
|
|
3208
|
+
if (message.verify_time !== void 0) {
|
|
3209
|
+
obj.verify_time = message.verify_time.toISOString();
|
|
3210
|
+
}
|
|
3211
|
+
if (message.disable_time !== void 0) {
|
|
3212
|
+
obj.disable_time = message.disable_time.toISOString();
|
|
3213
|
+
}
|
|
3214
|
+
if (message.logo !== "") {
|
|
3215
|
+
obj.logo = message.logo;
|
|
3216
|
+
}
|
|
3217
|
+
if (message.splash_screen !== "") {
|
|
3218
|
+
obj.splash_screen = message.splash_screen;
|
|
3219
|
+
}
|
|
3220
|
+
if (message.encrypt_private_key !== "") {
|
|
3221
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
3222
|
+
}
|
|
3223
|
+
if (message.password_setted !== false) {
|
|
3224
|
+
obj.password_setted = message.password_setted;
|
|
3225
|
+
}
|
|
3226
|
+
return obj;
|
|
3227
|
+
},
|
|
3228
|
+
create(base) {
|
|
3229
|
+
return Account.fromPartial(base != null ? base : {});
|
|
3230
|
+
},
|
|
3231
|
+
fromPartial(object) {
|
|
3232
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3233
|
+
const message = createBaseAccount();
|
|
3234
|
+
message.user = object.user !== void 0 && object.user !== null ? User.fromPartial(object.user) : void 0;
|
|
3235
|
+
message.email = (_a = object.email) != null ? _a : "";
|
|
3236
|
+
message.qr_code = (_b = object.qr_code) != null ? _b : "";
|
|
3237
|
+
message.verify_time = (_c = object.verify_time) != null ? _c : void 0;
|
|
3238
|
+
message.disable_time = (_d = object.disable_time) != null ? _d : void 0;
|
|
3239
|
+
message.logo = (_e = object.logo) != null ? _e : "";
|
|
3240
|
+
message.splash_screen = (_f = object.splash_screen) != null ? _f : "";
|
|
3241
|
+
message.encrypt_private_key = (_g = object.encrypt_private_key) != null ? _g : "";
|
|
3242
|
+
message.password_setted = (_h = object.password_setted) != null ? _h : false;
|
|
3243
|
+
return message;
|
|
3244
|
+
}
|
|
3245
|
+
};
|
|
3246
|
+
function createBaseUser() {
|
|
3247
|
+
return {
|
|
3248
|
+
id: "",
|
|
3249
|
+
username: "",
|
|
3250
|
+
display_name: "",
|
|
3251
|
+
avatar_url: "",
|
|
3252
|
+
lang_tag: "",
|
|
3253
|
+
location: "",
|
|
3254
|
+
timezone: "",
|
|
3255
|
+
user_status: "",
|
|
3256
|
+
online: false,
|
|
3257
|
+
phone_number: "",
|
|
3258
|
+
edge_count: 0,
|
|
3259
|
+
create_time: void 0,
|
|
3260
|
+
update_time: void 0,
|
|
3261
|
+
about_me: "",
|
|
3262
|
+
join_time: void 0,
|
|
3263
|
+
is_mobile: false,
|
|
3264
|
+
dob: void 0,
|
|
3265
|
+
mezon_id: "",
|
|
3266
|
+
list_nick_names: [],
|
|
3267
|
+
status: ""
|
|
3268
|
+
};
|
|
703
3269
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
return String.fromCharCode(Number("0x" + p1));
|
|
3270
|
+
var User = {
|
|
3271
|
+
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3272
|
+
if (message.id !== "") {
|
|
3273
|
+
writer.uint32(10).string(message.id);
|
|
709
3274
|
}
|
|
710
|
-
|
|
3275
|
+
if (message.username !== "") {
|
|
3276
|
+
writer.uint32(18).string(message.username);
|
|
3277
|
+
}
|
|
3278
|
+
if (message.display_name !== "") {
|
|
3279
|
+
writer.uint32(26).string(message.display_name);
|
|
3280
|
+
}
|
|
3281
|
+
if (message.avatar_url !== "") {
|
|
3282
|
+
writer.uint32(34).string(message.avatar_url);
|
|
3283
|
+
}
|
|
3284
|
+
if (message.lang_tag !== "") {
|
|
3285
|
+
writer.uint32(42).string(message.lang_tag);
|
|
3286
|
+
}
|
|
3287
|
+
if (message.location !== "") {
|
|
3288
|
+
writer.uint32(50).string(message.location);
|
|
3289
|
+
}
|
|
3290
|
+
if (message.timezone !== "") {
|
|
3291
|
+
writer.uint32(58).string(message.timezone);
|
|
3292
|
+
}
|
|
3293
|
+
if (message.user_status !== "") {
|
|
3294
|
+
writer.uint32(66).string(message.user_status);
|
|
3295
|
+
}
|
|
3296
|
+
if (message.online !== false) {
|
|
3297
|
+
writer.uint32(72).bool(message.online);
|
|
3298
|
+
}
|
|
3299
|
+
if (message.phone_number !== "") {
|
|
3300
|
+
writer.uint32(82).string(message.phone_number);
|
|
3301
|
+
}
|
|
3302
|
+
if (message.edge_count !== 0) {
|
|
3303
|
+
writer.uint32(88).int32(message.edge_count);
|
|
3304
|
+
}
|
|
3305
|
+
if (message.create_time !== void 0) {
|
|
3306
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
3307
|
+
}
|
|
3308
|
+
if (message.update_time !== void 0) {
|
|
3309
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
3310
|
+
}
|
|
3311
|
+
if (message.about_me !== "") {
|
|
3312
|
+
writer.uint32(114).string(message.about_me);
|
|
3313
|
+
}
|
|
3314
|
+
if (message.join_time !== void 0) {
|
|
3315
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
3316
|
+
}
|
|
3317
|
+
if (message.is_mobile !== false) {
|
|
3318
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
3319
|
+
}
|
|
3320
|
+
if (message.dob !== void 0) {
|
|
3321
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
3322
|
+
}
|
|
3323
|
+
if (message.mezon_id !== "") {
|
|
3324
|
+
writer.uint32(146).string(message.mezon_id);
|
|
3325
|
+
}
|
|
3326
|
+
for (const v of message.list_nick_names) {
|
|
3327
|
+
writer.uint32(154).string(v);
|
|
3328
|
+
}
|
|
3329
|
+
if (message.status !== "") {
|
|
3330
|
+
writer.uint32(162).string(message.status);
|
|
3331
|
+
}
|
|
3332
|
+
return writer;
|
|
3333
|
+
},
|
|
3334
|
+
decode(input, length) {
|
|
3335
|
+
const reader = input instanceof import_minimal4.default.Reader ? input : import_minimal4.default.Reader.create(input);
|
|
3336
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3337
|
+
const message = createBaseUser();
|
|
3338
|
+
while (reader.pos < end) {
|
|
3339
|
+
const tag = reader.uint32();
|
|
3340
|
+
switch (tag >>> 3) {
|
|
3341
|
+
case 1:
|
|
3342
|
+
if (tag !== 10) {
|
|
3343
|
+
break;
|
|
3344
|
+
}
|
|
3345
|
+
message.id = reader.string();
|
|
3346
|
+
continue;
|
|
3347
|
+
case 2:
|
|
3348
|
+
if (tag !== 18) {
|
|
3349
|
+
break;
|
|
3350
|
+
}
|
|
3351
|
+
message.username = reader.string();
|
|
3352
|
+
continue;
|
|
3353
|
+
case 3:
|
|
3354
|
+
if (tag !== 26) {
|
|
3355
|
+
break;
|
|
3356
|
+
}
|
|
3357
|
+
message.display_name = reader.string();
|
|
3358
|
+
continue;
|
|
3359
|
+
case 4:
|
|
3360
|
+
if (tag !== 34) {
|
|
3361
|
+
break;
|
|
3362
|
+
}
|
|
3363
|
+
message.avatar_url = reader.string();
|
|
3364
|
+
continue;
|
|
3365
|
+
case 5:
|
|
3366
|
+
if (tag !== 42) {
|
|
3367
|
+
break;
|
|
3368
|
+
}
|
|
3369
|
+
message.lang_tag = reader.string();
|
|
3370
|
+
continue;
|
|
3371
|
+
case 6:
|
|
3372
|
+
if (tag !== 50) {
|
|
3373
|
+
break;
|
|
3374
|
+
}
|
|
3375
|
+
message.location = reader.string();
|
|
3376
|
+
continue;
|
|
3377
|
+
case 7:
|
|
3378
|
+
if (tag !== 58) {
|
|
3379
|
+
break;
|
|
3380
|
+
}
|
|
3381
|
+
message.timezone = reader.string();
|
|
3382
|
+
continue;
|
|
3383
|
+
case 8:
|
|
3384
|
+
if (tag !== 66) {
|
|
3385
|
+
break;
|
|
3386
|
+
}
|
|
3387
|
+
message.user_status = reader.string();
|
|
3388
|
+
continue;
|
|
3389
|
+
case 9:
|
|
3390
|
+
if (tag !== 72) {
|
|
3391
|
+
break;
|
|
3392
|
+
}
|
|
3393
|
+
message.online = reader.bool();
|
|
3394
|
+
continue;
|
|
3395
|
+
case 10:
|
|
3396
|
+
if (tag !== 82) {
|
|
3397
|
+
break;
|
|
3398
|
+
}
|
|
3399
|
+
message.phone_number = reader.string();
|
|
3400
|
+
continue;
|
|
3401
|
+
case 11:
|
|
3402
|
+
if (tag !== 88) {
|
|
3403
|
+
break;
|
|
3404
|
+
}
|
|
3405
|
+
message.edge_count = reader.int32();
|
|
3406
|
+
continue;
|
|
3407
|
+
case 12:
|
|
3408
|
+
if (tag !== 98) {
|
|
3409
|
+
break;
|
|
3410
|
+
}
|
|
3411
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3412
|
+
continue;
|
|
3413
|
+
case 13:
|
|
3414
|
+
if (tag !== 106) {
|
|
3415
|
+
break;
|
|
3416
|
+
}
|
|
3417
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3418
|
+
continue;
|
|
3419
|
+
case 14:
|
|
3420
|
+
if (tag !== 114) {
|
|
3421
|
+
break;
|
|
3422
|
+
}
|
|
3423
|
+
message.about_me = reader.string();
|
|
3424
|
+
continue;
|
|
3425
|
+
case 15:
|
|
3426
|
+
if (tag !== 122) {
|
|
3427
|
+
break;
|
|
3428
|
+
}
|
|
3429
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3430
|
+
continue;
|
|
3431
|
+
case 16:
|
|
3432
|
+
if (tag !== 128) {
|
|
3433
|
+
break;
|
|
3434
|
+
}
|
|
3435
|
+
message.is_mobile = reader.bool();
|
|
3436
|
+
continue;
|
|
3437
|
+
case 17:
|
|
3438
|
+
if (tag !== 138) {
|
|
3439
|
+
break;
|
|
3440
|
+
}
|
|
3441
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
3442
|
+
continue;
|
|
3443
|
+
case 18:
|
|
3444
|
+
if (tag !== 146) {
|
|
3445
|
+
break;
|
|
3446
|
+
}
|
|
3447
|
+
message.mezon_id = reader.string();
|
|
3448
|
+
continue;
|
|
3449
|
+
case 19:
|
|
3450
|
+
if (tag !== 154) {
|
|
3451
|
+
break;
|
|
3452
|
+
}
|
|
3453
|
+
message.list_nick_names.push(reader.string());
|
|
3454
|
+
continue;
|
|
3455
|
+
case 20:
|
|
3456
|
+
if (tag !== 162) {
|
|
3457
|
+
break;
|
|
3458
|
+
}
|
|
3459
|
+
message.status = reader.string();
|
|
3460
|
+
continue;
|
|
3461
|
+
}
|
|
3462
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3463
|
+
break;
|
|
3464
|
+
}
|
|
3465
|
+
reader.skipType(tag & 7);
|
|
3466
|
+
}
|
|
3467
|
+
return message;
|
|
3468
|
+
},
|
|
3469
|
+
fromJSON(object) {
|
|
3470
|
+
return {
|
|
3471
|
+
id: isSet2(object.id) ? globalThis.String(object.id) : "",
|
|
3472
|
+
username: isSet2(object.username) ? globalThis.String(object.username) : "",
|
|
3473
|
+
display_name: isSet2(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
3474
|
+
avatar_url: isSet2(object.avatar_url) ? globalThis.String(object.avatar_url) : "",
|
|
3475
|
+
lang_tag: isSet2(object.lang_tag) ? globalThis.String(object.lang_tag) : "",
|
|
3476
|
+
location: isSet2(object.location) ? globalThis.String(object.location) : "",
|
|
3477
|
+
timezone: isSet2(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
3478
|
+
user_status: isSet2(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
3479
|
+
online: isSet2(object.online) ? globalThis.Boolean(object.online) : false,
|
|
3480
|
+
phone_number: isSet2(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
3481
|
+
edge_count: isSet2(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
3482
|
+
create_time: isSet2(object.create_time) ? fromJsonTimestamp(object.create_time) : void 0,
|
|
3483
|
+
update_time: isSet2(object.update_time) ? fromJsonTimestamp(object.update_time) : void 0,
|
|
3484
|
+
about_me: isSet2(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
3485
|
+
join_time: isSet2(object.join_time) ? fromJsonTimestamp(object.join_time) : void 0,
|
|
3486
|
+
is_mobile: isSet2(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
3487
|
+
dob: isSet2(object.dob) ? fromJsonTimestamp(object.dob) : void 0,
|
|
3488
|
+
mezon_id: isSet2(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
|
|
3489
|
+
list_nick_names: globalThis.Array.isArray(object == null ? void 0 : object.list_nick_names) ? object.list_nick_names.map((e) => globalThis.String(e)) : [],
|
|
3490
|
+
status: isSet2(object.status) ? globalThis.String(object.status) : ""
|
|
3491
|
+
};
|
|
3492
|
+
},
|
|
3493
|
+
toJSON(message) {
|
|
3494
|
+
var _a;
|
|
3495
|
+
const obj = {};
|
|
3496
|
+
if (message.id !== "") {
|
|
3497
|
+
obj.id = message.id;
|
|
3498
|
+
}
|
|
3499
|
+
if (message.username !== "") {
|
|
3500
|
+
obj.username = message.username;
|
|
3501
|
+
}
|
|
3502
|
+
if (message.display_name !== "") {
|
|
3503
|
+
obj.display_name = message.display_name;
|
|
3504
|
+
}
|
|
3505
|
+
if (message.avatar_url !== "") {
|
|
3506
|
+
obj.avatar_url = message.avatar_url;
|
|
3507
|
+
}
|
|
3508
|
+
if (message.lang_tag !== "") {
|
|
3509
|
+
obj.lang_tag = message.lang_tag;
|
|
3510
|
+
}
|
|
3511
|
+
if (message.location !== "") {
|
|
3512
|
+
obj.location = message.location;
|
|
3513
|
+
}
|
|
3514
|
+
if (message.timezone !== "") {
|
|
3515
|
+
obj.timezone = message.timezone;
|
|
3516
|
+
}
|
|
3517
|
+
if (message.user_status !== "") {
|
|
3518
|
+
obj.user_status = message.user_status;
|
|
3519
|
+
}
|
|
3520
|
+
if (message.online !== false) {
|
|
3521
|
+
obj.online = message.online;
|
|
3522
|
+
}
|
|
3523
|
+
if (message.phone_number !== "") {
|
|
3524
|
+
obj.phone_number = message.phone_number;
|
|
3525
|
+
}
|
|
3526
|
+
if (message.edge_count !== 0) {
|
|
3527
|
+
obj.edge_count = Math.round(message.edge_count);
|
|
3528
|
+
}
|
|
3529
|
+
if (message.create_time !== void 0) {
|
|
3530
|
+
obj.create_time = message.create_time.toISOString();
|
|
3531
|
+
}
|
|
3532
|
+
if (message.update_time !== void 0) {
|
|
3533
|
+
obj.update_time = message.update_time.toISOString();
|
|
3534
|
+
}
|
|
3535
|
+
if (message.about_me !== "") {
|
|
3536
|
+
obj.about_me = message.about_me;
|
|
3537
|
+
}
|
|
3538
|
+
if (message.join_time !== void 0) {
|
|
3539
|
+
obj.join_time = message.join_time.toISOString();
|
|
3540
|
+
}
|
|
3541
|
+
if (message.is_mobile !== false) {
|
|
3542
|
+
obj.is_mobile = message.is_mobile;
|
|
3543
|
+
}
|
|
3544
|
+
if (message.dob !== void 0) {
|
|
3545
|
+
obj.dob = message.dob.toISOString();
|
|
3546
|
+
}
|
|
3547
|
+
if (message.mezon_id !== "") {
|
|
3548
|
+
obj.mezon_id = message.mezon_id;
|
|
3549
|
+
}
|
|
3550
|
+
if ((_a = message.list_nick_names) == null ? void 0 : _a.length) {
|
|
3551
|
+
obj.list_nick_names = message.list_nick_names;
|
|
3552
|
+
}
|
|
3553
|
+
if (message.status !== "") {
|
|
3554
|
+
obj.status = message.status;
|
|
3555
|
+
}
|
|
3556
|
+
return obj;
|
|
3557
|
+
},
|
|
3558
|
+
create(base) {
|
|
3559
|
+
return User.fromPartial(base != null ? base : {});
|
|
3560
|
+
},
|
|
3561
|
+
fromPartial(object) {
|
|
3562
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
3563
|
+
const message = createBaseUser();
|
|
3564
|
+
message.id = (_a = object.id) != null ? _a : "";
|
|
3565
|
+
message.username = (_b = object.username) != null ? _b : "";
|
|
3566
|
+
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
3567
|
+
message.avatar_url = (_d = object.avatar_url) != null ? _d : "";
|
|
3568
|
+
message.lang_tag = (_e = object.lang_tag) != null ? _e : "";
|
|
3569
|
+
message.location = (_f = object.location) != null ? _f : "";
|
|
3570
|
+
message.timezone = (_g = object.timezone) != null ? _g : "";
|
|
3571
|
+
message.user_status = (_h = object.user_status) != null ? _h : "";
|
|
3572
|
+
message.online = (_i = object.online) != null ? _i : false;
|
|
3573
|
+
message.phone_number = (_j = object.phone_number) != null ? _j : "";
|
|
3574
|
+
message.edge_count = (_k = object.edge_count) != null ? _k : 0;
|
|
3575
|
+
message.create_time = (_l = object.create_time) != null ? _l : void 0;
|
|
3576
|
+
message.update_time = (_m = object.update_time) != null ? _m : void 0;
|
|
3577
|
+
message.about_me = (_n = object.about_me) != null ? _n : "";
|
|
3578
|
+
message.join_time = (_o = object.join_time) != null ? _o : void 0;
|
|
3579
|
+
message.is_mobile = (_p = object.is_mobile) != null ? _p : false;
|
|
3580
|
+
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
3581
|
+
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
3582
|
+
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
3583
|
+
message.status = (_t = object.status) != null ? _t : "";
|
|
3584
|
+
return message;
|
|
3585
|
+
}
|
|
3586
|
+
};
|
|
3587
|
+
function toTimestamp(date) {
|
|
3588
|
+
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
3589
|
+
const nanos = date.getTime() % 1e3 * 1e6;
|
|
3590
|
+
return { seconds, nanos };
|
|
711
3591
|
}
|
|
712
|
-
function
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
3592
|
+
function fromTimestamp(t) {
|
|
3593
|
+
let millis = (t.seconds || 0) * 1e3;
|
|
3594
|
+
millis += (t.nanos || 0) / 1e6;
|
|
3595
|
+
return new globalThis.Date(millis);
|
|
716
3596
|
}
|
|
717
|
-
function
|
|
718
|
-
|
|
719
|
-
return
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
return JSON.parse(fixedJsonStr);
|
|
725
|
-
} catch (e) {
|
|
726
|
-
console.error("Error parsing JSON:", jsonStr, error);
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
return { t: jsonStr };
|
|
3597
|
+
function fromJsonTimestamp(o) {
|
|
3598
|
+
if (o instanceof globalThis.Date) {
|
|
3599
|
+
return o;
|
|
3600
|
+
} else if (typeof o === "string") {
|
|
3601
|
+
return new globalThis.Date(o);
|
|
3602
|
+
} else {
|
|
3603
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
730
3604
|
}
|
|
731
3605
|
}
|
|
3606
|
+
if (import_minimal4.default.util.Long !== import_long3.default) {
|
|
3607
|
+
import_minimal4.default.util.Long = import_long3.default;
|
|
3608
|
+
import_minimal4.default.configure();
|
|
3609
|
+
}
|
|
3610
|
+
function isSet2(value) {
|
|
3611
|
+
return value !== null && value !== void 0;
|
|
3612
|
+
}
|
|
732
3613
|
|
|
733
3614
|
// api.gen.ts
|
|
734
3615
|
var MezonApi = class {
|
|
@@ -800,18 +3681,20 @@ var MezonApi = class {
|
|
|
800
3681
|
if (bearerToken) {
|
|
801
3682
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
802
3683
|
}
|
|
3684
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
803
3685
|
return Promise.race([
|
|
804
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
3686
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
805
3687
|
if (response.status == 204) {
|
|
806
|
-
return
|
|
3688
|
+
return {};
|
|
807
3689
|
} else if (response.status >= 200 && response.status < 300) {
|
|
808
|
-
|
|
3690
|
+
const buffer = yield response.arrayBuffer();
|
|
3691
|
+
return Account.decode(new Uint8Array(buffer));
|
|
809
3692
|
} else {
|
|
810
3693
|
throw response;
|
|
811
3694
|
}
|
|
812
|
-
}),
|
|
3695
|
+
})),
|
|
813
3696
|
new Promise(
|
|
814
|
-
(_, reject) => setTimeout(reject
|
|
3697
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
815
3698
|
)
|
|
816
3699
|
]);
|
|
817
3700
|
}
|
|
@@ -1880,18 +4763,20 @@ var MezonApi = class {
|
|
|
1880
4763
|
if (bearerToken) {
|
|
1881
4764
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
1882
4765
|
}
|
|
4766
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
1883
4767
|
return Promise.race([
|
|
1884
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
4768
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
1885
4769
|
if (response.status == 204) {
|
|
1886
|
-
return
|
|
4770
|
+
return {};
|
|
1887
4771
|
} else if (response.status >= 200 && response.status < 300) {
|
|
1888
|
-
|
|
4772
|
+
const buffer = yield response.arrayBuffer();
|
|
4773
|
+
return Account.decode(new Uint8Array(buffer));
|
|
1889
4774
|
} else {
|
|
1890
4775
|
throw response;
|
|
1891
4776
|
}
|
|
1892
|
-
}),
|
|
4777
|
+
})),
|
|
1893
4778
|
new Promise(
|
|
1894
|
-
(_, reject) => setTimeout(reject
|
|
4779
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
1895
4780
|
)
|
|
1896
4781
|
]);
|
|
1897
4782
|
}
|
|
@@ -2154,18 +5039,20 @@ var MezonApi = class {
|
|
|
2154
5039
|
if (bearerToken) {
|
|
2155
5040
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2156
5041
|
}
|
|
5042
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2157
5043
|
return Promise.race([
|
|
2158
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5044
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2159
5045
|
if (response.status == 204) {
|
|
2160
|
-
return
|
|
5046
|
+
return {};
|
|
2161
5047
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2162
|
-
|
|
5048
|
+
const buffer = yield response.arrayBuffer();
|
|
5049
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2163
5050
|
} else {
|
|
2164
5051
|
throw response;
|
|
2165
5052
|
}
|
|
2166
|
-
}),
|
|
5053
|
+
})),
|
|
2167
5054
|
new Promise(
|
|
2168
|
-
(_, reject) => setTimeout(reject
|
|
5055
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2169
5056
|
)
|
|
2170
5057
|
]);
|
|
2171
5058
|
}
|
|
@@ -2212,18 +5099,20 @@ var MezonApi = class {
|
|
|
2212
5099
|
if (bearerToken) {
|
|
2213
5100
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2214
5101
|
}
|
|
5102
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2215
5103
|
return Promise.race([
|
|
2216
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5104
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2217
5105
|
if (response.status == 204) {
|
|
2218
|
-
return
|
|
5106
|
+
return {};
|
|
2219
5107
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2220
|
-
|
|
5108
|
+
const buffer = yield response.arrayBuffer();
|
|
5109
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2221
5110
|
} else {
|
|
2222
5111
|
throw response;
|
|
2223
5112
|
}
|
|
2224
|
-
}),
|
|
5113
|
+
})),
|
|
2225
5114
|
new Promise(
|
|
2226
|
-
(_, reject) => setTimeout(reject
|
|
5115
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2227
5116
|
)
|
|
2228
5117
|
]);
|
|
2229
5118
|
}
|
|
@@ -2315,18 +5204,20 @@ var MezonApi = class {
|
|
|
2315
5204
|
if (bearerToken) {
|
|
2316
5205
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2317
5206
|
}
|
|
5207
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2318
5208
|
return Promise.race([
|
|
2319
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5209
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2320
5210
|
if (response.status == 204) {
|
|
2321
|
-
return
|
|
5211
|
+
return {};
|
|
2322
5212
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2323
|
-
|
|
5213
|
+
const buffer = yield response.arrayBuffer();
|
|
5214
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2324
5215
|
} else {
|
|
2325
5216
|
throw response;
|
|
2326
5217
|
}
|
|
2327
|
-
}),
|
|
5218
|
+
})),
|
|
2328
5219
|
new Promise(
|
|
2329
|
-
(_, reject) => setTimeout(reject
|
|
5220
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2330
5221
|
)
|
|
2331
5222
|
]);
|
|
2332
5223
|
}
|
|
@@ -2346,18 +5237,20 @@ var MezonApi = class {
|
|
|
2346
5237
|
if (bearerToken) {
|
|
2347
5238
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2348
5239
|
}
|
|
5240
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2349
5241
|
return Promise.race([
|
|
2350
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5242
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2351
5243
|
if (response.status == 204) {
|
|
2352
|
-
return
|
|
5244
|
+
return {};
|
|
2353
5245
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2354
|
-
|
|
5246
|
+
const buffer = yield response.arrayBuffer();
|
|
5247
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2355
5248
|
} else {
|
|
2356
5249
|
throw response;
|
|
2357
5250
|
}
|
|
2358
|
-
}),
|
|
5251
|
+
})),
|
|
2359
5252
|
new Promise(
|
|
2360
|
-
(_, reject) => setTimeout(reject
|
|
5253
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2361
5254
|
)
|
|
2362
5255
|
]);
|
|
2363
5256
|
}
|
|
@@ -2374,18 +5267,20 @@ var MezonApi = class {
|
|
|
2374
5267
|
if (bearerToken) {
|
|
2375
5268
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2376
5269
|
}
|
|
5270
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2377
5271
|
return Promise.race([
|
|
2378
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5272
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2379
5273
|
if (response.status == 204) {
|
|
2380
|
-
return
|
|
5274
|
+
return {};
|
|
2381
5275
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2382
|
-
|
|
5276
|
+
const buffer = yield response.arrayBuffer();
|
|
5277
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2383
5278
|
} else {
|
|
2384
5279
|
throw response;
|
|
2385
5280
|
}
|
|
2386
|
-
}),
|
|
5281
|
+
})),
|
|
2387
5282
|
new Promise(
|
|
2388
|
-
(_, reject) => setTimeout(reject
|
|
5283
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2389
5284
|
)
|
|
2390
5285
|
]);
|
|
2391
5286
|
}
|
|
@@ -2402,18 +5297,20 @@ var MezonApi = class {
|
|
|
2402
5297
|
if (bearerToken) {
|
|
2403
5298
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2404
5299
|
}
|
|
5300
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2405
5301
|
return Promise.race([
|
|
2406
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5302
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2407
5303
|
if (response.status == 204) {
|
|
2408
|
-
return
|
|
5304
|
+
return {};
|
|
2409
5305
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2410
|
-
|
|
5306
|
+
const buffer = yield response.arrayBuffer();
|
|
5307
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2411
5308
|
} else {
|
|
2412
5309
|
throw response;
|
|
2413
5310
|
}
|
|
2414
|
-
}),
|
|
5311
|
+
})),
|
|
2415
5312
|
new Promise(
|
|
2416
|
-
(_, reject) => setTimeout(reject
|
|
5313
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2417
5314
|
)
|
|
2418
5315
|
]);
|
|
2419
5316
|
}
|
|
@@ -2661,18 +5558,20 @@ var MezonApi = class {
|
|
|
2661
5558
|
if (bearerToken) {
|
|
2662
5559
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
2663
5560
|
}
|
|
5561
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
2664
5562
|
return Promise.race([
|
|
2665
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5563
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
2666
5564
|
if (response.status == 204) {
|
|
2667
|
-
return
|
|
5565
|
+
return {};
|
|
2668
5566
|
} else if (response.status >= 200 && response.status < 300) {
|
|
2669
|
-
|
|
5567
|
+
const buffer = yield response.arrayBuffer();
|
|
5568
|
+
return Account.decode(new Uint8Array(buffer));
|
|
2670
5569
|
} else {
|
|
2671
5570
|
throw response;
|
|
2672
5571
|
}
|
|
2673
|
-
}),
|
|
5572
|
+
})),
|
|
2674
5573
|
new Promise(
|
|
2675
|
-
(_, reject) => setTimeout(reject
|
|
5574
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
2676
5575
|
)
|
|
2677
5576
|
]);
|
|
2678
5577
|
}
|
|
@@ -3012,18 +5911,20 @@ var MezonApi = class {
|
|
|
3012
5911
|
if (bearerToken) {
|
|
3013
5912
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3014
5913
|
}
|
|
5914
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3015
5915
|
return Promise.race([
|
|
3016
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5916
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3017
5917
|
if (response.status == 204) {
|
|
3018
|
-
return
|
|
5918
|
+
return {};
|
|
3019
5919
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3020
|
-
|
|
5920
|
+
const buffer = yield response.arrayBuffer();
|
|
5921
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3021
5922
|
} else {
|
|
3022
5923
|
throw response;
|
|
3023
5924
|
}
|
|
3024
|
-
}),
|
|
5925
|
+
})),
|
|
3025
5926
|
new Promise(
|
|
3026
|
-
(_, reject) => setTimeout(reject
|
|
5927
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3027
5928
|
)
|
|
3028
5929
|
]);
|
|
3029
5930
|
}
|
|
@@ -3037,18 +5938,20 @@ var MezonApi = class {
|
|
|
3037
5938
|
if (bearerToken) {
|
|
3038
5939
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3039
5940
|
}
|
|
5941
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3040
5942
|
return Promise.race([
|
|
3041
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
5943
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3042
5944
|
if (response.status == 204) {
|
|
3043
|
-
return
|
|
5945
|
+
return {};
|
|
3044
5946
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3045
|
-
|
|
5947
|
+
const buffer = yield response.arrayBuffer();
|
|
5948
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3046
5949
|
} else {
|
|
3047
5950
|
throw response;
|
|
3048
5951
|
}
|
|
3049
|
-
}),
|
|
5952
|
+
})),
|
|
3050
5953
|
new Promise(
|
|
3051
|
-
(_, reject) => setTimeout(reject
|
|
5954
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3052
5955
|
)
|
|
3053
5956
|
]);
|
|
3054
5957
|
}
|
|
@@ -3125,18 +6028,20 @@ var MezonApi = class {
|
|
|
3125
6028
|
if (bearerToken) {
|
|
3126
6029
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3127
6030
|
}
|
|
6031
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3128
6032
|
return Promise.race([
|
|
3129
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6033
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3130
6034
|
if (response.status == 204) {
|
|
3131
|
-
return
|
|
6035
|
+
return {};
|
|
3132
6036
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3133
|
-
|
|
6037
|
+
const buffer = yield response.arrayBuffer();
|
|
6038
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3134
6039
|
} else {
|
|
3135
6040
|
throw response;
|
|
3136
6041
|
}
|
|
3137
|
-
}),
|
|
6042
|
+
})),
|
|
3138
6043
|
new Promise(
|
|
3139
|
-
(_, reject) => setTimeout(reject
|
|
6044
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3140
6045
|
)
|
|
3141
6046
|
]);
|
|
3142
6047
|
}
|
|
@@ -3318,18 +6223,20 @@ var MezonApi = class {
|
|
|
3318
6223
|
if (bearerToken) {
|
|
3319
6224
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3320
6225
|
}
|
|
6226
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3321
6227
|
return Promise.race([
|
|
3322
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6228
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3323
6229
|
if (response.status == 204) {
|
|
3324
|
-
return
|
|
6230
|
+
return {};
|
|
3325
6231
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3326
|
-
|
|
6232
|
+
const buffer = yield response.arrayBuffer();
|
|
6233
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3327
6234
|
} else {
|
|
3328
6235
|
throw response;
|
|
3329
6236
|
}
|
|
3330
|
-
}),
|
|
6237
|
+
})),
|
|
3331
6238
|
new Promise(
|
|
3332
|
-
(_, reject) => setTimeout(reject
|
|
6239
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3333
6240
|
)
|
|
3334
6241
|
]);
|
|
3335
6242
|
}
|
|
@@ -3425,18 +6332,20 @@ var MezonApi = class {
|
|
|
3425
6332
|
if (bearerToken) {
|
|
3426
6333
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3427
6334
|
}
|
|
6335
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3428
6336
|
return Promise.race([
|
|
3429
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6337
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3430
6338
|
if (response.status == 204) {
|
|
3431
|
-
return
|
|
6339
|
+
return {};
|
|
3432
6340
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3433
|
-
|
|
6341
|
+
const buffer = yield response.arrayBuffer();
|
|
6342
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3434
6343
|
} else {
|
|
3435
6344
|
throw response;
|
|
3436
6345
|
}
|
|
3437
|
-
}),
|
|
6346
|
+
})),
|
|
3438
6347
|
new Promise(
|
|
3439
|
-
(_, reject) => setTimeout(reject
|
|
6348
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3440
6349
|
)
|
|
3441
6350
|
]);
|
|
3442
6351
|
}
|
|
@@ -3484,18 +6393,20 @@ var MezonApi = class {
|
|
|
3484
6393
|
if (bearerToken) {
|
|
3485
6394
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3486
6395
|
}
|
|
6396
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3487
6397
|
return Promise.race([
|
|
3488
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6398
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3489
6399
|
if (response.status == 204) {
|
|
3490
|
-
return
|
|
6400
|
+
return {};
|
|
3491
6401
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3492
|
-
|
|
6402
|
+
const buffer = yield response.arrayBuffer();
|
|
6403
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3493
6404
|
} else {
|
|
3494
6405
|
throw response;
|
|
3495
6406
|
}
|
|
3496
|
-
}),
|
|
6407
|
+
})),
|
|
3497
6408
|
new Promise(
|
|
3498
|
-
(_, reject) => setTimeout(reject
|
|
6409
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3499
6410
|
)
|
|
3500
6411
|
]);
|
|
3501
6412
|
}
|
|
@@ -3510,18 +6421,20 @@ var MezonApi = class {
|
|
|
3510
6421
|
if (bearerToken) {
|
|
3511
6422
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3512
6423
|
}
|
|
6424
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3513
6425
|
return Promise.race([
|
|
3514
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6426
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3515
6427
|
if (response.status == 204) {
|
|
3516
|
-
return
|
|
6428
|
+
return {};
|
|
3517
6429
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3518
|
-
|
|
6430
|
+
const buffer = yield response.arrayBuffer();
|
|
6431
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3519
6432
|
} else {
|
|
3520
6433
|
throw response;
|
|
3521
6434
|
}
|
|
3522
|
-
}),
|
|
6435
|
+
})),
|
|
3523
6436
|
new Promise(
|
|
3524
|
-
(_, reject) => setTimeout(reject
|
|
6437
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3525
6438
|
)
|
|
3526
6439
|
]);
|
|
3527
6440
|
}
|
|
@@ -3536,18 +6449,20 @@ var MezonApi = class {
|
|
|
3536
6449
|
if (bearerToken) {
|
|
3537
6450
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3538
6451
|
}
|
|
6452
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3539
6453
|
return Promise.race([
|
|
3540
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6454
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3541
6455
|
if (response.status == 204) {
|
|
3542
|
-
return
|
|
6456
|
+
return {};
|
|
3543
6457
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3544
|
-
|
|
6458
|
+
const buffer = yield response.arrayBuffer();
|
|
6459
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3545
6460
|
} else {
|
|
3546
6461
|
throw response;
|
|
3547
6462
|
}
|
|
3548
|
-
}),
|
|
6463
|
+
})),
|
|
3549
6464
|
new Promise(
|
|
3550
|
-
(_, reject) => setTimeout(reject
|
|
6465
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3551
6466
|
)
|
|
3552
6467
|
]);
|
|
3553
6468
|
}
|
|
@@ -3767,18 +6682,20 @@ var MezonApi = class {
|
|
|
3767
6682
|
if (bearerToken) {
|
|
3768
6683
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3769
6684
|
}
|
|
6685
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3770
6686
|
return Promise.race([
|
|
3771
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6687
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3772
6688
|
if (response.status == 204) {
|
|
3773
|
-
return
|
|
6689
|
+
return {};
|
|
3774
6690
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3775
|
-
|
|
6691
|
+
const buffer = yield response.arrayBuffer();
|
|
6692
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3776
6693
|
} else {
|
|
3777
6694
|
throw response;
|
|
3778
6695
|
}
|
|
3779
|
-
}),
|
|
6696
|
+
})),
|
|
3780
6697
|
new Promise(
|
|
3781
|
-
(_, reject) => setTimeout(reject
|
|
6698
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3782
6699
|
)
|
|
3783
6700
|
]);
|
|
3784
6701
|
}
|
|
@@ -3942,18 +6859,20 @@ var MezonApi = class {
|
|
|
3942
6859
|
if (bearerToken) {
|
|
3943
6860
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
3944
6861
|
}
|
|
6862
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
3945
6863
|
return Promise.race([
|
|
3946
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
6864
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
3947
6865
|
if (response.status == 204) {
|
|
3948
|
-
return
|
|
6866
|
+
return {};
|
|
3949
6867
|
} else if (response.status >= 200 && response.status < 300) {
|
|
3950
|
-
|
|
6868
|
+
const buffer = yield response.arrayBuffer();
|
|
6869
|
+
return Account.decode(new Uint8Array(buffer));
|
|
3951
6870
|
} else {
|
|
3952
6871
|
throw response;
|
|
3953
6872
|
}
|
|
3954
|
-
}),
|
|
6873
|
+
})),
|
|
3955
6874
|
new Promise(
|
|
3956
|
-
(_, reject) => setTimeout(reject
|
|
6875
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
3957
6876
|
)
|
|
3958
6877
|
]);
|
|
3959
6878
|
}
|
|
@@ -4231,18 +7150,20 @@ var MezonApi = class {
|
|
|
4231
7150
|
if (bearerToken) {
|
|
4232
7151
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4233
7152
|
}
|
|
7153
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4234
7154
|
return Promise.race([
|
|
4235
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7155
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4236
7156
|
if (response.status == 204) {
|
|
4237
|
-
return
|
|
7157
|
+
return {};
|
|
4238
7158
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4239
|
-
|
|
7159
|
+
const buffer = yield response.arrayBuffer();
|
|
7160
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4240
7161
|
} else {
|
|
4241
7162
|
throw response;
|
|
4242
7163
|
}
|
|
4243
|
-
}),
|
|
7164
|
+
})),
|
|
4244
7165
|
new Promise(
|
|
4245
|
-
(_, reject) => setTimeout(reject
|
|
7166
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4246
7167
|
)
|
|
4247
7168
|
]);
|
|
4248
7169
|
}
|
|
@@ -4259,18 +7180,20 @@ var MezonApi = class {
|
|
|
4259
7180
|
if (bearerToken) {
|
|
4260
7181
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4261
7182
|
}
|
|
7183
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4262
7184
|
return Promise.race([
|
|
4263
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7185
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4264
7186
|
if (response.status == 204) {
|
|
4265
|
-
return
|
|
7187
|
+
return {};
|
|
4266
7188
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4267
|
-
|
|
7189
|
+
const buffer = yield response.arrayBuffer();
|
|
7190
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4268
7191
|
} else {
|
|
4269
7192
|
throw response;
|
|
4270
7193
|
}
|
|
4271
|
-
}),
|
|
7194
|
+
})),
|
|
4272
7195
|
new Promise(
|
|
4273
|
-
(_, reject) => setTimeout(reject
|
|
7196
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4274
7197
|
)
|
|
4275
7198
|
]);
|
|
4276
7199
|
}
|
|
@@ -4316,18 +7239,20 @@ var MezonApi = class {
|
|
|
4316
7239
|
if (bearerToken) {
|
|
4317
7240
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4318
7241
|
}
|
|
7242
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4319
7243
|
return Promise.race([
|
|
4320
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7244
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4321
7245
|
if (response.status == 204) {
|
|
4322
|
-
return
|
|
7246
|
+
return {};
|
|
4323
7247
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4324
|
-
|
|
7248
|
+
const buffer = yield response.arrayBuffer();
|
|
7249
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4325
7250
|
} else {
|
|
4326
7251
|
throw response;
|
|
4327
7252
|
}
|
|
4328
|
-
}),
|
|
7253
|
+
})),
|
|
4329
7254
|
new Promise(
|
|
4330
|
-
(_, reject) => setTimeout(reject
|
|
7255
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4331
7256
|
)
|
|
4332
7257
|
]);
|
|
4333
7258
|
}
|
|
@@ -4563,18 +7488,20 @@ var MezonApi = class {
|
|
|
4563
7488
|
if (bearerToken) {
|
|
4564
7489
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4565
7490
|
}
|
|
7491
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4566
7492
|
return Promise.race([
|
|
4567
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7493
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4568
7494
|
if (response.status == 204) {
|
|
4569
|
-
return
|
|
7495
|
+
return {};
|
|
4570
7496
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4571
|
-
|
|
7497
|
+
const buffer = yield response.arrayBuffer();
|
|
7498
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4572
7499
|
} else {
|
|
4573
7500
|
throw response;
|
|
4574
7501
|
}
|
|
4575
|
-
}),
|
|
7502
|
+
})),
|
|
4576
7503
|
new Promise(
|
|
4577
|
-
(_, reject) => setTimeout(reject
|
|
7504
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4578
7505
|
)
|
|
4579
7506
|
]);
|
|
4580
7507
|
}
|
|
@@ -4741,18 +7668,20 @@ var MezonApi = class {
|
|
|
4741
7668
|
if (bearerToken) {
|
|
4742
7669
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4743
7670
|
}
|
|
7671
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4744
7672
|
return Promise.race([
|
|
4745
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7673
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4746
7674
|
if (response.status == 204) {
|
|
4747
|
-
return
|
|
7675
|
+
return {};
|
|
4748
7676
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4749
|
-
|
|
7677
|
+
const buffer = yield response.arrayBuffer();
|
|
7678
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4750
7679
|
} else {
|
|
4751
7680
|
throw response;
|
|
4752
7681
|
}
|
|
4753
|
-
}),
|
|
7682
|
+
})),
|
|
4754
7683
|
new Promise(
|
|
4755
|
-
(_, reject) => setTimeout(reject
|
|
7684
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4756
7685
|
)
|
|
4757
7686
|
]);
|
|
4758
7687
|
}
|
|
@@ -4776,18 +7705,20 @@ var MezonApi = class {
|
|
|
4776
7705
|
if (bearerToken) {
|
|
4777
7706
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4778
7707
|
}
|
|
7708
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4779
7709
|
return Promise.race([
|
|
4780
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7710
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4781
7711
|
if (response.status == 204) {
|
|
4782
|
-
return
|
|
7712
|
+
return {};
|
|
4783
7713
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4784
|
-
|
|
7714
|
+
const buffer = yield response.arrayBuffer();
|
|
7715
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4785
7716
|
} else {
|
|
4786
7717
|
throw response;
|
|
4787
7718
|
}
|
|
4788
|
-
}),
|
|
7719
|
+
})),
|
|
4789
7720
|
new Promise(
|
|
4790
|
-
(_, reject) => setTimeout(reject
|
|
7721
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4791
7722
|
)
|
|
4792
7723
|
]);
|
|
4793
7724
|
}
|
|
@@ -4810,18 +7741,20 @@ var MezonApi = class {
|
|
|
4810
7741
|
if (bearerToken) {
|
|
4811
7742
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
4812
7743
|
}
|
|
7744
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
4813
7745
|
return Promise.race([
|
|
4814
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
7746
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
4815
7747
|
if (response.status == 204) {
|
|
4816
|
-
return
|
|
7748
|
+
return {};
|
|
4817
7749
|
} else if (response.status >= 200 && response.status < 300) {
|
|
4818
|
-
|
|
7750
|
+
const buffer = yield response.arrayBuffer();
|
|
7751
|
+
return Account.decode(new Uint8Array(buffer));
|
|
4819
7752
|
} else {
|
|
4820
7753
|
throw response;
|
|
4821
7754
|
}
|
|
4822
|
-
}),
|
|
7755
|
+
})),
|
|
4823
7756
|
new Promise(
|
|
4824
|
-
(_, reject) => setTimeout(reject
|
|
7757
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
4825
7758
|
)
|
|
4826
7759
|
]);
|
|
4827
7760
|
}
|
|
@@ -5103,18 +8036,20 @@ var MezonApi = class {
|
|
|
5103
8036
|
if (bearerToken) {
|
|
5104
8037
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5105
8038
|
}
|
|
8039
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5106
8040
|
return Promise.race([
|
|
5107
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8041
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5108
8042
|
if (response.status == 204) {
|
|
5109
|
-
return
|
|
8043
|
+
return {};
|
|
5110
8044
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5111
|
-
|
|
8045
|
+
const buffer = yield response.arrayBuffer();
|
|
8046
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5112
8047
|
} else {
|
|
5113
8048
|
throw response;
|
|
5114
8049
|
}
|
|
5115
|
-
}),
|
|
8050
|
+
})),
|
|
5116
8051
|
new Promise(
|
|
5117
|
-
(_, reject) => setTimeout(reject
|
|
8052
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5118
8053
|
)
|
|
5119
8054
|
]);
|
|
5120
8055
|
}
|
|
@@ -5129,18 +8064,20 @@ var MezonApi = class {
|
|
|
5129
8064
|
if (bearerToken) {
|
|
5130
8065
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5131
8066
|
}
|
|
8067
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5132
8068
|
return Promise.race([
|
|
5133
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8069
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5134
8070
|
if (response.status == 204) {
|
|
5135
|
-
return
|
|
8071
|
+
return {};
|
|
5136
8072
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5137
|
-
|
|
8073
|
+
const buffer = yield response.arrayBuffer();
|
|
8074
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5138
8075
|
} else {
|
|
5139
8076
|
throw response;
|
|
5140
8077
|
}
|
|
5141
|
-
}),
|
|
8078
|
+
})),
|
|
5142
8079
|
new Promise(
|
|
5143
|
-
(_, reject) => setTimeout(reject
|
|
8080
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5144
8081
|
)
|
|
5145
8082
|
]);
|
|
5146
8083
|
}
|
|
@@ -5191,18 +8128,20 @@ var MezonApi = class {
|
|
|
5191
8128
|
if (bearerToken) {
|
|
5192
8129
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5193
8130
|
}
|
|
8131
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5194
8132
|
return Promise.race([
|
|
5195
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8133
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5196
8134
|
if (response.status == 204) {
|
|
5197
|
-
return
|
|
8135
|
+
return {};
|
|
5198
8136
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5199
|
-
|
|
8137
|
+
const buffer = yield response.arrayBuffer();
|
|
8138
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5200
8139
|
} else {
|
|
5201
8140
|
throw response;
|
|
5202
8141
|
}
|
|
5203
|
-
}),
|
|
8142
|
+
})),
|
|
5204
8143
|
new Promise(
|
|
5205
|
-
(_, reject) => setTimeout(reject
|
|
8144
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5206
8145
|
)
|
|
5207
8146
|
]);
|
|
5208
8147
|
}
|
|
@@ -5216,18 +8155,20 @@ var MezonApi = class {
|
|
|
5216
8155
|
if (bearerToken) {
|
|
5217
8156
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5218
8157
|
}
|
|
8158
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5219
8159
|
return Promise.race([
|
|
5220
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8160
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5221
8161
|
if (response.status == 204) {
|
|
5222
|
-
return
|
|
8162
|
+
return {};
|
|
5223
8163
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5224
|
-
|
|
8164
|
+
const buffer = yield response.arrayBuffer();
|
|
8165
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5225
8166
|
} else {
|
|
5226
8167
|
throw response;
|
|
5227
8168
|
}
|
|
5228
|
-
}),
|
|
8169
|
+
})),
|
|
5229
8170
|
new Promise(
|
|
5230
|
-
(_, reject) => setTimeout(reject
|
|
8171
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5231
8172
|
)
|
|
5232
8173
|
]);
|
|
5233
8174
|
}
|
|
@@ -5274,18 +8215,20 @@ var MezonApi = class {
|
|
|
5274
8215
|
if (bearerToken) {
|
|
5275
8216
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5276
8217
|
}
|
|
8218
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5277
8219
|
return Promise.race([
|
|
5278
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8220
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5279
8221
|
if (response.status == 204) {
|
|
5280
|
-
return
|
|
8222
|
+
return {};
|
|
5281
8223
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5282
|
-
|
|
8224
|
+
const buffer = yield response.arrayBuffer();
|
|
8225
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5283
8226
|
} else {
|
|
5284
8227
|
throw response;
|
|
5285
8228
|
}
|
|
5286
|
-
}),
|
|
8229
|
+
})),
|
|
5287
8230
|
new Promise(
|
|
5288
|
-
(_, reject) => setTimeout(reject
|
|
8231
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5289
8232
|
)
|
|
5290
8233
|
]);
|
|
5291
8234
|
}
|
|
@@ -5448,18 +8391,20 @@ var MezonApi = class {
|
|
|
5448
8391
|
if (bearerToken) {
|
|
5449
8392
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5450
8393
|
}
|
|
8394
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5451
8395
|
return Promise.race([
|
|
5452
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8396
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5453
8397
|
if (response.status == 204) {
|
|
5454
|
-
return
|
|
8398
|
+
return {};
|
|
5455
8399
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5456
|
-
|
|
8400
|
+
const buffer = yield response.arrayBuffer();
|
|
8401
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5457
8402
|
} else {
|
|
5458
8403
|
throw response;
|
|
5459
8404
|
}
|
|
5460
|
-
}),
|
|
8405
|
+
})),
|
|
5461
8406
|
new Promise(
|
|
5462
|
-
(_, reject) => setTimeout(reject
|
|
8407
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5463
8408
|
)
|
|
5464
8409
|
]);
|
|
5465
8410
|
}
|
|
@@ -5673,18 +8618,20 @@ var MezonApi = class {
|
|
|
5673
8618
|
if (bearerToken) {
|
|
5674
8619
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
5675
8620
|
}
|
|
8621
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
5676
8622
|
return Promise.race([
|
|
5677
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
8623
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
5678
8624
|
if (response.status == 204) {
|
|
5679
|
-
return
|
|
8625
|
+
return {};
|
|
5680
8626
|
} else if (response.status >= 200 && response.status < 300) {
|
|
5681
|
-
|
|
8627
|
+
const buffer = yield response.arrayBuffer();
|
|
8628
|
+
return Account.decode(new Uint8Array(buffer));
|
|
5682
8629
|
} else {
|
|
5683
8630
|
throw response;
|
|
5684
8631
|
}
|
|
5685
|
-
}),
|
|
8632
|
+
})),
|
|
5686
8633
|
new Promise(
|
|
5687
|
-
(_, reject) => setTimeout(reject
|
|
8634
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
5688
8635
|
)
|
|
5689
8636
|
]);
|
|
5690
8637
|
}
|
|
@@ -6124,18 +9071,20 @@ var MezonApi = class {
|
|
|
6124
9071
|
if (bearerToken) {
|
|
6125
9072
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6126
9073
|
}
|
|
9074
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6127
9075
|
return Promise.race([
|
|
6128
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9076
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6129
9077
|
if (response.status == 204) {
|
|
6130
|
-
return
|
|
9078
|
+
return {};
|
|
6131
9079
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6132
|
-
|
|
9080
|
+
const buffer = yield response.arrayBuffer();
|
|
9081
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6133
9082
|
} else {
|
|
6134
9083
|
throw response;
|
|
6135
9084
|
}
|
|
6136
|
-
}),
|
|
9085
|
+
})),
|
|
6137
9086
|
new Promise(
|
|
6138
|
-
(_, reject) => setTimeout(reject
|
|
9087
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6139
9088
|
)
|
|
6140
9089
|
]);
|
|
6141
9090
|
}
|
|
@@ -6443,18 +9392,20 @@ var MezonApi = class {
|
|
|
6443
9392
|
if (bearerToken) {
|
|
6444
9393
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6445
9394
|
}
|
|
9395
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6446
9396
|
return Promise.race([
|
|
6447
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9397
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6448
9398
|
if (response.status == 204) {
|
|
6449
|
-
return
|
|
9399
|
+
return {};
|
|
6450
9400
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6451
|
-
|
|
9401
|
+
const buffer = yield response.arrayBuffer();
|
|
9402
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6452
9403
|
} else {
|
|
6453
9404
|
throw response;
|
|
6454
9405
|
}
|
|
6455
|
-
}),
|
|
9406
|
+
})),
|
|
6456
9407
|
new Promise(
|
|
6457
|
-
(_, reject) => setTimeout(reject
|
|
9408
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6458
9409
|
)
|
|
6459
9410
|
]);
|
|
6460
9411
|
}
|
|
@@ -6965,18 +9916,20 @@ var MezonApi = class {
|
|
|
6965
9916
|
if (bearerToken) {
|
|
6966
9917
|
fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
|
|
6967
9918
|
}
|
|
9919
|
+
fetchOptions.headers["Accept"] = "application/x-protobuf";
|
|
6968
9920
|
return Promise.race([
|
|
6969
|
-
fetch(fullUrl, fetchOptions).then((response) => {
|
|
9921
|
+
fetch(fullUrl, fetchOptions).then((response) => __async(this, null, function* () {
|
|
6970
9922
|
if (response.status == 204) {
|
|
6971
|
-
return
|
|
9923
|
+
return {};
|
|
6972
9924
|
} else if (response.status >= 200 && response.status < 300) {
|
|
6973
|
-
|
|
9925
|
+
const buffer = yield response.arrayBuffer();
|
|
9926
|
+
return Account.decode(new Uint8Array(buffer));
|
|
6974
9927
|
} else {
|
|
6975
9928
|
throw response;
|
|
6976
9929
|
}
|
|
6977
|
-
}),
|
|
9930
|
+
})),
|
|
6978
9931
|
new Promise(
|
|
6979
|
-
(_, reject) => setTimeout(reject
|
|
9932
|
+
(_, reject) => setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
|
|
6980
9933
|
)
|
|
6981
9934
|
]);
|
|
6982
9935
|
}
|
|
@@ -9325,13 +12278,16 @@ var Client = class {
|
|
|
9325
12278
|
lang_tag: gu.user.lang_tag,
|
|
9326
12279
|
location: gu.user.location,
|
|
9327
12280
|
online: gu.user.online,
|
|
9328
|
-
is_mobile: (_a = gu.user) == null ? void 0 : _a.is_mobile,
|
|
12281
|
+
is_mobile: ((_a = gu.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9329
12282
|
timezone: gu.user.timezone,
|
|
9330
12283
|
update_time: gu.user.update_time,
|
|
9331
12284
|
username: gu.user.username,
|
|
9332
12285
|
user_status: gu.user.user_status,
|
|
9333
12286
|
status: gu.user.status,
|
|
9334
|
-
about_me: gu.user.about_me
|
|
12287
|
+
about_me: gu.user.about_me,
|
|
12288
|
+
mezon_id: gu.user.mezon_id,
|
|
12289
|
+
list_nick_names: gu.user.list_nick_names,
|
|
12290
|
+
phone_number: gu.user.phone_number
|
|
9335
12291
|
},
|
|
9336
12292
|
role_id: gu.role_id,
|
|
9337
12293
|
clan_nick: gu.clan_nick,
|
|
@@ -9576,9 +12532,13 @@ var Client = class {
|
|
|
9576
12532
|
timezone: f.user.timezone,
|
|
9577
12533
|
update_time: f.user.update_time,
|
|
9578
12534
|
username: f.user.username,
|
|
9579
|
-
is_mobile: (_a = f.user) == null ? void 0 : _a.is_mobile,
|
|
12535
|
+
is_mobile: ((_a = f.user) == null ? void 0 : _a.is_mobile) || false,
|
|
9580
12536
|
user_status: f.user.user_status,
|
|
9581
|
-
status: f.user.status
|
|
12537
|
+
status: f.user.status,
|
|
12538
|
+
mezon_id: f.user.mezon_id,
|
|
12539
|
+
list_nick_names: f.user.list_nick_names,
|
|
12540
|
+
phone_number: f.user.phone_number,
|
|
12541
|
+
about_me: f.user.about_me
|
|
9582
12542
|
},
|
|
9583
12543
|
state: f.state,
|
|
9584
12544
|
source_id: f.source_id
|