@bitwarden/sdk-internal 0.2.0-main.8 → 0.2.0-main.80
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/VERSION +1 -0
- package/bitwarden_wasm_internal.d.ts +155 -38
- package/bitwarden_wasm_internal_bg.js +783 -469
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +46 -28
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +155 -38
- package/node/bitwarden_wasm_internal.js +787 -472
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +46 -28
- package/package.json +5 -4
@@ -3,12 +3,15 @@ export function __wbg_set_wasm(val) {
|
|
3
3
|
wasm = val;
|
4
4
|
}
|
5
5
|
|
6
|
-
const
|
7
|
-
typeof TextDecoder === "undefined" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
6
|
+
const heap = new Array(128).fill(undefined);
|
8
7
|
|
9
|
-
|
8
|
+
heap.push(undefined, null, true, false);
|
10
9
|
|
11
|
-
|
10
|
+
function getObject(idx) {
|
11
|
+
return heap[idx];
|
12
|
+
}
|
13
|
+
|
14
|
+
let WASM_VECTOR_LEN = 0;
|
12
15
|
|
13
16
|
let cachedUint8ArrayMemory0 = null;
|
14
17
|
|
@@ -19,44 +22,6 @@ function getUint8ArrayMemory0() {
|
|
19
22
|
return cachedUint8ArrayMemory0;
|
20
23
|
}
|
21
24
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
23
|
-
ptr = ptr >>> 0;
|
24
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
25
|
-
}
|
26
|
-
|
27
|
-
const heap = new Array(128).fill(undefined);
|
28
|
-
|
29
|
-
heap.push(undefined, null, true, false);
|
30
|
-
|
31
|
-
let heap_next = heap.length;
|
32
|
-
|
33
|
-
function addHeapObject(obj) {
|
34
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
35
|
-
const idx = heap_next;
|
36
|
-
heap_next = heap[idx];
|
37
|
-
|
38
|
-
heap[idx] = obj;
|
39
|
-
return idx;
|
40
|
-
}
|
41
|
-
|
42
|
-
function getObject(idx) {
|
43
|
-
return heap[idx];
|
44
|
-
}
|
45
|
-
|
46
|
-
function dropObject(idx) {
|
47
|
-
if (idx < 132) return;
|
48
|
-
heap[idx] = heap_next;
|
49
|
-
heap_next = idx;
|
50
|
-
}
|
51
|
-
|
52
|
-
function takeObject(idx) {
|
53
|
-
const ret = getObject(idx);
|
54
|
-
dropObject(idx);
|
55
|
-
return ret;
|
56
|
-
}
|
57
|
-
|
58
|
-
let WASM_VECTOR_LEN = 0;
|
59
|
-
|
60
25
|
const lTextEncoder =
|
61
26
|
typeof TextEncoder === "undefined" ? (0, module.require)("util").TextEncoder : TextEncoder;
|
62
27
|
|
@@ -116,10 +81,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
116
81
|
return ptr;
|
117
82
|
}
|
118
83
|
|
119
|
-
function isLikeNone(x) {
|
120
|
-
return x === undefined || x === null;
|
121
|
-
}
|
122
|
-
|
123
84
|
let cachedDataViewMemory0 = null;
|
124
85
|
|
125
86
|
function getDataViewMemory0() {
|
@@ -134,6 +95,85 @@ function getDataViewMemory0() {
|
|
134
95
|
return cachedDataViewMemory0;
|
135
96
|
}
|
136
97
|
|
98
|
+
const lTextDecoder =
|
99
|
+
typeof TextDecoder === "undefined" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
100
|
+
|
101
|
+
let cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
102
|
+
|
103
|
+
cachedTextDecoder.decode();
|
104
|
+
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
106
|
+
ptr = ptr >>> 0;
|
107
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
108
|
+
}
|
109
|
+
|
110
|
+
let heap_next = heap.length;
|
111
|
+
|
112
|
+
function addHeapObject(obj) {
|
113
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
114
|
+
const idx = heap_next;
|
115
|
+
heap_next = heap[idx];
|
116
|
+
|
117
|
+
heap[idx] = obj;
|
118
|
+
return idx;
|
119
|
+
}
|
120
|
+
|
121
|
+
function handleError(f, args) {
|
122
|
+
try {
|
123
|
+
return f.apply(this, args);
|
124
|
+
} catch (e) {
|
125
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
function dropObject(idx) {
|
130
|
+
if (idx < 132) return;
|
131
|
+
heap[idx] = heap_next;
|
132
|
+
heap_next = idx;
|
133
|
+
}
|
134
|
+
|
135
|
+
function takeObject(idx) {
|
136
|
+
const ret = getObject(idx);
|
137
|
+
dropObject(idx);
|
138
|
+
return ret;
|
139
|
+
}
|
140
|
+
|
141
|
+
function isLikeNone(x) {
|
142
|
+
return x === undefined || x === null;
|
143
|
+
}
|
144
|
+
|
145
|
+
const CLOSURE_DTORS =
|
146
|
+
typeof FinalizationRegistry === "undefined"
|
147
|
+
? { register: () => {}, unregister: () => {} }
|
148
|
+
: new FinalizationRegistry((state) => {
|
149
|
+
wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
|
150
|
+
});
|
151
|
+
|
152
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
153
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
154
|
+
const real = (...args) => {
|
155
|
+
// First up with a closure we increment the internal reference
|
156
|
+
// count. This ensures that the Rust closure environment won't
|
157
|
+
// be deallocated while we're invoking it.
|
158
|
+
state.cnt++;
|
159
|
+
const a = state.a;
|
160
|
+
state.a = 0;
|
161
|
+
try {
|
162
|
+
return f(a, state.b, ...args);
|
163
|
+
} finally {
|
164
|
+
if (--state.cnt === 0) {
|
165
|
+
wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
|
166
|
+
CLOSURE_DTORS.unregister(state);
|
167
|
+
} else {
|
168
|
+
state.a = a;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
};
|
172
|
+
real.original = state;
|
173
|
+
CLOSURE_DTORS.register(real, state, state);
|
174
|
+
return real;
|
175
|
+
}
|
176
|
+
|
137
177
|
function debugString(val) {
|
138
178
|
// primitive types
|
139
179
|
const type = typeof val;
|
@@ -175,7 +215,7 @@ function debugString(val) {
|
|
175
215
|
// Test for built-in
|
176
216
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
177
217
|
let className;
|
178
|
-
if (builtInMatches.length > 1) {
|
218
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
179
219
|
className = builtInMatches[1];
|
180
220
|
} else {
|
181
221
|
// Failed to match the standard '[object ClassName]'
|
@@ -199,45 +239,6 @@ function debugString(val) {
|
|
199
239
|
return className;
|
200
240
|
}
|
201
241
|
|
202
|
-
const CLOSURE_DTORS =
|
203
|
-
typeof FinalizationRegistry === "undefined"
|
204
|
-
? { register: () => {}, unregister: () => {} }
|
205
|
-
: new FinalizationRegistry((state) => {
|
206
|
-
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
|
207
|
-
});
|
208
|
-
|
209
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
210
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
211
|
-
const real = (...args) => {
|
212
|
-
// First up with a closure we increment the internal reference
|
213
|
-
// count. This ensures that the Rust closure environment won't
|
214
|
-
// be deallocated while we're invoking it.
|
215
|
-
state.cnt++;
|
216
|
-
const a = state.a;
|
217
|
-
state.a = 0;
|
218
|
-
try {
|
219
|
-
return f(a, state.b, ...args);
|
220
|
-
} finally {
|
221
|
-
if (--state.cnt === 0) {
|
222
|
-
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
223
|
-
CLOSURE_DTORS.unregister(state);
|
224
|
-
} else {
|
225
|
-
state.a = a;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
};
|
229
|
-
real.original = state;
|
230
|
-
CLOSURE_DTORS.register(real, state, state);
|
231
|
-
return real;
|
232
|
-
}
|
233
|
-
function __wbg_adapter_38(arg0, arg1, arg2) {
|
234
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcab43b83560065d8(
|
235
|
-
arg0,
|
236
|
-
arg1,
|
237
|
-
addHeapObject(arg2),
|
238
|
-
);
|
239
|
-
}
|
240
|
-
|
241
242
|
let stack_pointer = 128;
|
242
243
|
|
243
244
|
function addBorrowedObject(obj) {
|
@@ -271,6 +272,58 @@ export function isEncryptionSettingsError(error) {
|
|
271
272
|
}
|
272
273
|
}
|
273
274
|
|
275
|
+
/**
|
276
|
+
* @param {any} error
|
277
|
+
* @returns {boolean}
|
278
|
+
*/
|
279
|
+
export function isSshKeyExportError(error) {
|
280
|
+
try {
|
281
|
+
const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
|
282
|
+
return ret !== 0;
|
283
|
+
} finally {
|
284
|
+
heap[stack_pointer++] = undefined;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|
288
|
+
/**
|
289
|
+
* @param {any} error
|
290
|
+
* @returns {boolean}
|
291
|
+
*/
|
292
|
+
export function isSshKeyImportError(error) {
|
293
|
+
try {
|
294
|
+
const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
|
295
|
+
return ret !== 0;
|
296
|
+
} finally {
|
297
|
+
heap[stack_pointer++] = undefined;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
/**
|
302
|
+
* @param {any} error
|
303
|
+
* @returns {boolean}
|
304
|
+
*/
|
305
|
+
export function isKeyGenerationError(error) {
|
306
|
+
try {
|
307
|
+
const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
|
308
|
+
return ret !== 0;
|
309
|
+
} finally {
|
310
|
+
heap[stack_pointer++] = undefined;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
/**
|
315
|
+
* @param {any} error
|
316
|
+
* @returns {boolean}
|
317
|
+
*/
|
318
|
+
export function isTotpError(error) {
|
319
|
+
try {
|
320
|
+
const ret = wasm.isTotpError(addBorrowedObject(error));
|
321
|
+
return ret !== 0;
|
322
|
+
} finally {
|
323
|
+
heap[stack_pointer++] = undefined;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
274
327
|
/**
|
275
328
|
* @param {any} error
|
276
329
|
* @returns {boolean}
|
@@ -284,15 +337,84 @@ export function isTestError(error) {
|
|
284
337
|
}
|
285
338
|
}
|
286
339
|
|
287
|
-
|
340
|
+
/**
|
341
|
+
* Generate a new SSH key pair
|
342
|
+
*
|
343
|
+
* # Arguments
|
344
|
+
* - `key_algorithm` - The algorithm to use for the key pair
|
345
|
+
*
|
346
|
+
* # Returns
|
347
|
+
* - `Ok(SshKey)` if the key was successfully generated
|
348
|
+
* - `Err(KeyGenerationError)` if the key could not be generated
|
349
|
+
* @param {KeyAlgorithm} key_algorithm
|
350
|
+
* @returns {SshKey}
|
351
|
+
*/
|
352
|
+
export function generate_ssh_key(key_algorithm) {
|
288
353
|
try {
|
289
|
-
|
290
|
-
|
291
|
-
|
354
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
355
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
356
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
357
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
358
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
359
|
+
if (r2) {
|
360
|
+
throw takeObject(r1);
|
361
|
+
}
|
362
|
+
return takeObject(r0);
|
363
|
+
} finally {
|
364
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
|
370
|
+
* to an OpenSSH private key with public key and fingerprint
|
371
|
+
*
|
372
|
+
* # Arguments
|
373
|
+
* - `imported_key` - The private key to convert
|
374
|
+
* - `password` - The password to use for decrypting the key
|
375
|
+
*
|
376
|
+
* # Returns
|
377
|
+
* - `Ok(SshKey)` if the key was successfully coneverted
|
378
|
+
* - `Err(PasswordRequired)` if the key is encrypted and no password was provided
|
379
|
+
* - `Err(WrongPassword)` if the password provided is incorrect
|
380
|
+
* - `Err(ParsingError)` if the key could not be parsed
|
381
|
+
* - `Err(UnsupportedKeyType)` if the key type is not supported
|
382
|
+
* @param {string} imported_key
|
383
|
+
* @param {string | null} [password]
|
384
|
+
* @returns {SshKey}
|
385
|
+
*/
|
386
|
+
export function import_ssh_key(imported_key, password) {
|
387
|
+
try {
|
388
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
389
|
+
const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
390
|
+
const len0 = WASM_VECTOR_LEN;
|
391
|
+
var ptr1 = isLikeNone(password)
|
392
|
+
? 0
|
393
|
+
: passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
394
|
+
var len1 = WASM_VECTOR_LEN;
|
395
|
+
wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
|
396
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
397
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
398
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
399
|
+
if (r2) {
|
400
|
+
throw takeObject(r1);
|
401
|
+
}
|
402
|
+
return takeObject(r0);
|
403
|
+
} finally {
|
404
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
292
405
|
}
|
293
406
|
}
|
294
|
-
|
295
|
-
|
407
|
+
|
408
|
+
function __wbg_adapter_40(arg0, arg1, arg2) {
|
409
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7af7927fe391910e(
|
410
|
+
arg0,
|
411
|
+
arg1,
|
412
|
+
addHeapObject(arg2),
|
413
|
+
);
|
414
|
+
}
|
415
|
+
|
416
|
+
function __wbg_adapter_139(arg0, arg1, arg2, arg3) {
|
417
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h69e15f428907d894(
|
296
418
|
arg0,
|
297
419
|
arg1,
|
298
420
|
addHeapObject(arg2),
|
@@ -300,6 +422,9 @@ function __wbg_adapter_107(arg0, arg1, arg2, arg3) {
|
|
300
422
|
);
|
301
423
|
}
|
302
424
|
|
425
|
+
/**
|
426
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
427
|
+
*/
|
303
428
|
export const LogLevel = Object.freeze({
|
304
429
|
Trace: 0,
|
305
430
|
0: "Trace",
|
@@ -335,8 +460,8 @@ export class BitwardenClient {
|
|
335
460
|
wasm.__wbg_bitwardenclient_free(ptr, 0);
|
336
461
|
}
|
337
462
|
/**
|
338
|
-
* @param {ClientSettings |
|
339
|
-
* @param {LogLevel |
|
463
|
+
* @param {ClientSettings | null} [settings]
|
464
|
+
* @param {LogLevel | null} [log_level]
|
340
465
|
*/
|
341
466
|
constructor(settings, log_level) {
|
342
467
|
const ret = wasm.bitwardenclient_new(
|
@@ -391,13 +516,21 @@ export class BitwardenClient {
|
|
391
516
|
}
|
392
517
|
/**
|
393
518
|
* @param {string} msg
|
394
|
-
* @returns {Promise<void>}
|
395
519
|
*/
|
396
520
|
throw(msg) {
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
521
|
+
try {
|
522
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
523
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
524
|
+
const len0 = WASM_VECTOR_LEN;
|
525
|
+
wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
526
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
527
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
528
|
+
if (r1) {
|
529
|
+
throw takeObject(r0);
|
530
|
+
}
|
531
|
+
} finally {
|
532
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
533
|
+
}
|
401
534
|
}
|
402
535
|
/**
|
403
536
|
* Test method, calls http endpoint
|
@@ -411,102 +544,215 @@ export class BitwardenClient {
|
|
411
544
|
return takeObject(ret);
|
412
545
|
}
|
413
546
|
/**
|
414
|
-
* @returns {
|
547
|
+
* @returns {CryptoClient}
|
415
548
|
*/
|
416
549
|
crypto() {
|
417
550
|
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
418
|
-
return
|
551
|
+
return CryptoClient.__wrap(ret);
|
419
552
|
}
|
420
553
|
/**
|
421
|
-
* @returns {
|
554
|
+
* @returns {VaultClient}
|
422
555
|
*/
|
423
556
|
vault() {
|
424
557
|
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
425
|
-
return
|
558
|
+
return VaultClient.__wrap(ret);
|
426
559
|
}
|
427
560
|
}
|
428
561
|
|
429
|
-
const
|
562
|
+
const ClientFoldersFinalization =
|
430
563
|
typeof FinalizationRegistry === "undefined"
|
431
564
|
? { register: () => {}, unregister: () => {} }
|
432
|
-
: new FinalizationRegistry((ptr) => wasm.
|
565
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_clientfolders_free(ptr >>> 0, 1));
|
433
566
|
|
434
|
-
export class
|
567
|
+
export class ClientFolders {
|
435
568
|
static __wrap(ptr) {
|
436
569
|
ptr = ptr >>> 0;
|
437
|
-
const obj = Object.create(
|
570
|
+
const obj = Object.create(ClientFolders.prototype);
|
438
571
|
obj.__wbg_ptr = ptr;
|
439
|
-
|
572
|
+
ClientFoldersFinalization.register(obj, obj.__wbg_ptr, obj);
|
440
573
|
return obj;
|
441
574
|
}
|
442
575
|
|
443
576
|
__destroy_into_raw() {
|
444
577
|
const ptr = this.__wbg_ptr;
|
445
578
|
this.__wbg_ptr = 0;
|
446
|
-
|
579
|
+
ClientFoldersFinalization.unregister(this);
|
447
580
|
return ptr;
|
448
581
|
}
|
449
582
|
|
450
583
|
free() {
|
451
584
|
const ptr = this.__destroy_into_raw();
|
452
|
-
wasm.
|
585
|
+
wasm.__wbg_clientfolders_free(ptr, 0);
|
453
586
|
}
|
454
587
|
/**
|
455
|
-
*
|
456
|
-
*
|
457
|
-
* @
|
458
|
-
* @returns {Promise<void>}
|
588
|
+
* Decrypt folder
|
589
|
+
* @param {Folder} folder
|
590
|
+
* @returns {FolderView}
|
459
591
|
*/
|
460
|
-
|
461
|
-
|
462
|
-
|
592
|
+
decrypt(folder) {
|
593
|
+
try {
|
594
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
595
|
+
wasm.clientfolders_decrypt(retptr, this.__wbg_ptr, addHeapObject(folder));
|
596
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
597
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
598
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
599
|
+
if (r2) {
|
600
|
+
throw takeObject(r1);
|
601
|
+
}
|
602
|
+
return takeObject(r0);
|
603
|
+
} finally {
|
604
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
605
|
+
}
|
606
|
+
}
|
607
|
+
}
|
608
|
+
|
609
|
+
const ClientTotpFinalization =
|
610
|
+
typeof FinalizationRegistry === "undefined"
|
611
|
+
? { register: () => {}, unregister: () => {} }
|
612
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_clienttotp_free(ptr >>> 0, 1));
|
613
|
+
|
614
|
+
export class ClientTotp {
|
615
|
+
static __wrap(ptr) {
|
616
|
+
ptr = ptr >>> 0;
|
617
|
+
const obj = Object.create(ClientTotp.prototype);
|
618
|
+
obj.__wbg_ptr = ptr;
|
619
|
+
ClientTotpFinalization.register(obj, obj.__wbg_ptr, obj);
|
620
|
+
return obj;
|
621
|
+
}
|
622
|
+
|
623
|
+
__destroy_into_raw() {
|
624
|
+
const ptr = this.__wbg_ptr;
|
625
|
+
this.__wbg_ptr = 0;
|
626
|
+
ClientTotpFinalization.unregister(this);
|
627
|
+
return ptr;
|
628
|
+
}
|
629
|
+
|
630
|
+
free() {
|
631
|
+
const ptr = this.__destroy_into_raw();
|
632
|
+
wasm.__wbg_clienttotp_free(ptr, 0);
|
463
633
|
}
|
464
634
|
/**
|
465
|
-
*
|
466
|
-
*
|
467
|
-
*
|
468
|
-
*
|
635
|
+
* Generates a TOTP code from a provided key
|
636
|
+
*
|
637
|
+
* # Arguments
|
638
|
+
* - `key` - Can be:
|
639
|
+
* - A base32 encoded string
|
640
|
+
* - OTP Auth URI
|
641
|
+
* - Steam URI
|
642
|
+
* - `time_ms` - Optional timestamp in milliseconds
|
643
|
+
*
|
644
|
+
* # Returns
|
645
|
+
* - `Ok(TotpResponse)` containing the generated code and period
|
646
|
+
* - `Err(TotpError)` if code generation fails
|
647
|
+
* @param {string} key
|
648
|
+
* @param {number | null} [time_ms]
|
649
|
+
* @returns {TotpResponse}
|
469
650
|
*/
|
470
|
-
|
471
|
-
|
472
|
-
|
651
|
+
generate_totp(key, time_ms) {
|
652
|
+
try {
|
653
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
654
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
655
|
+
const len0 = WASM_VECTOR_LEN;
|
656
|
+
wasm.clienttotp_generate_totp(
|
657
|
+
retptr,
|
658
|
+
this.__wbg_ptr,
|
659
|
+
ptr0,
|
660
|
+
len0,
|
661
|
+
!isLikeNone(time_ms),
|
662
|
+
isLikeNone(time_ms) ? 0 : time_ms,
|
663
|
+
);
|
664
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
665
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
666
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
667
|
+
if (r2) {
|
668
|
+
throw takeObject(r1);
|
669
|
+
}
|
670
|
+
return takeObject(r0);
|
671
|
+
} finally {
|
672
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
673
|
+
}
|
473
674
|
}
|
474
675
|
}
|
475
676
|
|
476
|
-
const
|
677
|
+
const CryptoClientFinalization =
|
477
678
|
typeof FinalizationRegistry === "undefined"
|
478
679
|
? { register: () => {}, unregister: () => {} }
|
479
|
-
: new FinalizationRegistry((ptr) => wasm.
|
680
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_cryptoclient_free(ptr >>> 0, 1));
|
480
681
|
|
481
|
-
export class
|
682
|
+
export class CryptoClient {
|
482
683
|
static __wrap(ptr) {
|
483
684
|
ptr = ptr >>> 0;
|
484
|
-
const obj = Object.create(
|
685
|
+
const obj = Object.create(CryptoClient.prototype);
|
485
686
|
obj.__wbg_ptr = ptr;
|
486
|
-
|
687
|
+
CryptoClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
487
688
|
return obj;
|
488
689
|
}
|
489
690
|
|
490
691
|
__destroy_into_raw() {
|
491
692
|
const ptr = this.__wbg_ptr;
|
492
693
|
this.__wbg_ptr = 0;
|
493
|
-
|
694
|
+
CryptoClientFinalization.unregister(this);
|
494
695
|
return ptr;
|
495
696
|
}
|
496
697
|
|
497
698
|
free() {
|
498
699
|
const ptr = this.__destroy_into_raw();
|
499
|
-
wasm.
|
700
|
+
wasm.__wbg_cryptoclient_free(ptr, 0);
|
500
701
|
}
|
501
702
|
/**
|
502
|
-
*
|
503
|
-
*
|
504
|
-
* @
|
703
|
+
* Initialization method for the user crypto. Needs to be called before any other crypto
|
704
|
+
* operations.
|
705
|
+
* @param {InitUserCryptoRequest} req
|
706
|
+
* @returns {Promise<void>}
|
505
707
|
*/
|
506
|
-
|
708
|
+
initialize_user_crypto(req) {
|
709
|
+
const ret = wasm.cryptoclient_initialize_user_crypto(this.__wbg_ptr, addHeapObject(req));
|
710
|
+
return takeObject(ret);
|
711
|
+
}
|
712
|
+
/**
|
713
|
+
* Initialization method for the organization crypto. Needs to be called after
|
714
|
+
* `initialize_user_crypto` but before any other crypto operations.
|
715
|
+
* @param {InitOrgCryptoRequest} req
|
716
|
+
* @returns {Promise<void>}
|
717
|
+
*/
|
718
|
+
initialize_org_crypto(req) {
|
719
|
+
const ret = wasm.cryptoclient_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));
|
720
|
+
return takeObject(ret);
|
721
|
+
}
|
722
|
+
/**
|
723
|
+
* Generates a new key pair and encrypts the private key with the provided user key.
|
724
|
+
* Crypto initialization not required.
|
725
|
+
* @param {string} user_key
|
726
|
+
* @returns {MakeKeyPairResponse}
|
727
|
+
*/
|
728
|
+
make_key_pair(user_key) {
|
507
729
|
try {
|
508
730
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
509
|
-
|
731
|
+
const ptr0 = passStringToWasm0(user_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
732
|
+
const len0 = WASM_VECTOR_LEN;
|
733
|
+
wasm.cryptoclient_make_key_pair(retptr, this.__wbg_ptr, ptr0, len0);
|
734
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
735
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
736
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
737
|
+
if (r2) {
|
738
|
+
throw takeObject(r1);
|
739
|
+
}
|
740
|
+
return takeObject(r0);
|
741
|
+
} finally {
|
742
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
743
|
+
}
|
744
|
+
}
|
745
|
+
/**
|
746
|
+
* Verifies a user's asymmetric keys by decrypting the private key with the provided user
|
747
|
+
* key. Returns if the private key is decryptable and if it is a valid matching key.
|
748
|
+
* Crypto initialization not required.
|
749
|
+
* @param {VerifyAsymmetricKeysRequest} request
|
750
|
+
* @returns {VerifyAsymmetricKeysResponse}
|
751
|
+
*/
|
752
|
+
verify_asymmetric_keys(request) {
|
753
|
+
try {
|
754
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
755
|
+
wasm.cryptoclient_verify_asymmetric_keys(retptr, this.__wbg_ptr, addHeapObject(request));
|
510
756
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
511
757
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
512
758
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
@@ -520,30 +766,30 @@ export class ClientFolders {
|
|
520
766
|
}
|
521
767
|
}
|
522
768
|
|
523
|
-
const
|
769
|
+
const VaultClientFinalization =
|
524
770
|
typeof FinalizationRegistry === "undefined"
|
525
771
|
? { register: () => {}, unregister: () => {} }
|
526
|
-
: new FinalizationRegistry((ptr) => wasm.
|
772
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_vaultclient_free(ptr >>> 0, 1));
|
527
773
|
|
528
|
-
export class
|
774
|
+
export class VaultClient {
|
529
775
|
static __wrap(ptr) {
|
530
776
|
ptr = ptr >>> 0;
|
531
|
-
const obj = Object.create(
|
777
|
+
const obj = Object.create(VaultClient.prototype);
|
532
778
|
obj.__wbg_ptr = ptr;
|
533
|
-
|
779
|
+
VaultClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
534
780
|
return obj;
|
535
781
|
}
|
536
782
|
|
537
783
|
__destroy_into_raw() {
|
538
784
|
const ptr = this.__wbg_ptr;
|
539
785
|
this.__wbg_ptr = 0;
|
540
|
-
|
786
|
+
VaultClientFinalization.unregister(this);
|
541
787
|
return ptr;
|
542
788
|
}
|
543
789
|
|
544
790
|
free() {
|
545
791
|
const ptr = this.__destroy_into_raw();
|
546
|
-
wasm.
|
792
|
+
wasm.__wbg_vaultclient_free(ptr, 0);
|
547
793
|
}
|
548
794
|
/**
|
549
795
|
* @returns {ClientFolders}
|
@@ -552,200 +798,175 @@ export class ClientVault {
|
|
552
798
|
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
553
799
|
return ClientFolders.__wrap(ret);
|
554
800
|
}
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
deferred0_0 = arg0;
|
562
|
-
deferred0_1 = arg1;
|
563
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
564
|
-
return addHeapObject(ret);
|
565
|
-
} finally {
|
566
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
567
|
-
}
|
568
|
-
}
|
569
|
-
|
570
|
-
export function __wbg_setname_46d623c31ae39910(arg0, arg1, arg2) {
|
571
|
-
let deferred0_0;
|
572
|
-
let deferred0_1;
|
573
|
-
try {
|
574
|
-
deferred0_0 = arg1;
|
575
|
-
deferred0_1 = arg2;
|
576
|
-
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
577
|
-
} finally {
|
578
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
801
|
+
/**
|
802
|
+
* @returns {ClientTotp}
|
803
|
+
*/
|
804
|
+
totp() {
|
805
|
+
const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
|
806
|
+
return ClientTotp.__wrap(ret);
|
579
807
|
}
|
580
808
|
}
|
581
809
|
|
582
|
-
export function
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
|
589
|
-
} finally {
|
590
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
591
|
-
}
|
810
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
811
|
+
const ret = String(getObject(arg1));
|
812
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
813
|
+
const len1 = WASM_VECTOR_LEN;
|
814
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
815
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
592
816
|
}
|
593
817
|
|
594
|
-
export function
|
595
|
-
|
596
|
-
return addHeapObject(ret);
|
818
|
+
export function __wbg_abort_775ef1d17fc65868(arg0) {
|
819
|
+
getObject(arg0).abort();
|
597
820
|
}
|
598
821
|
|
599
|
-
export function
|
600
|
-
return handleError(function (arg0, arg1) {
|
601
|
-
|
602
|
-
return addHeapObject(ret);
|
822
|
+
export function __wbg_append_299d5d48292c0495() {
|
823
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
824
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
603
825
|
}, arguments);
|
604
826
|
}
|
605
827
|
|
606
|
-
export function
|
607
|
-
|
828
|
+
export function __wbg_append_8c7dd8d641a5f01b() {
|
829
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
830
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
831
|
+
}, arguments);
|
608
832
|
}
|
609
833
|
|
610
|
-
export function
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
834
|
+
export function __wbg_append_b2d1fc16de2a0e81() {
|
835
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
836
|
+
getObject(arg0).append(
|
837
|
+
getStringFromWasm0(arg1, arg2),
|
838
|
+
getObject(arg3),
|
839
|
+
getStringFromWasm0(arg4, arg5),
|
840
|
+
);
|
841
|
+
}, arguments);
|
619
842
|
}
|
620
843
|
|
621
|
-
export function
|
622
|
-
|
623
|
-
|
624
|
-
|
844
|
+
export function __wbg_append_b44785ebeb668479() {
|
845
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
846
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
847
|
+
}, arguments);
|
625
848
|
}
|
626
849
|
|
627
|
-
export function
|
628
|
-
const ret = getObject(arg0)
|
850
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
851
|
+
const ret = getObject(arg0).buffer;
|
629
852
|
return addHeapObject(ret);
|
630
853
|
}
|
631
854
|
|
632
|
-
export function
|
633
|
-
|
634
|
-
|
855
|
+
export function __wbg_call_672a4d21634d4a24() {
|
856
|
+
return handleError(function (arg0, arg1) {
|
857
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
858
|
+
return addHeapObject(ret);
|
859
|
+
}, arguments);
|
635
860
|
}
|
636
861
|
|
637
|
-
export function
|
638
|
-
|
639
|
-
|
862
|
+
export function __wbg_call_7cccdd69e0791ae2() {
|
863
|
+
return handleError(function (arg0, arg1, arg2) {
|
864
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
865
|
+
return addHeapObject(ret);
|
866
|
+
}, arguments);
|
640
867
|
}
|
641
868
|
|
642
|
-
export function
|
643
|
-
const ret =
|
644
|
-
return ret;
|
869
|
+
export function __wbg_crypto_ed58b8e10a292839(arg0) {
|
870
|
+
const ret = getObject(arg0).crypto;
|
871
|
+
return addHeapObject(ret);
|
645
872
|
}
|
646
873
|
|
647
|
-
export function
|
648
|
-
|
649
|
-
return ret;
|
874
|
+
export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
|
875
|
+
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
650
876
|
}
|
651
877
|
|
652
|
-
export function
|
653
|
-
const ret =
|
878
|
+
export function __wbg_done_769e5ede4b31c67b(arg0) {
|
879
|
+
const ret = getObject(arg0).done;
|
654
880
|
return ret;
|
655
881
|
}
|
656
882
|
|
657
|
-
export function
|
883
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
658
884
|
const ret = Object.entries(getObject(arg0));
|
659
885
|
return addHeapObject(ret);
|
660
886
|
}
|
661
887
|
|
662
|
-
export function
|
663
|
-
|
664
|
-
|
888
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
889
|
+
let deferred0_0;
|
890
|
+
let deferred0_1;
|
891
|
+
try {
|
892
|
+
deferred0_0 = arg0;
|
893
|
+
deferred0_1 = arg1;
|
894
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
895
|
+
} finally {
|
896
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
897
|
+
}
|
665
898
|
}
|
666
899
|
|
667
|
-
export function
|
668
|
-
|
900
|
+
export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
901
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
902
|
+
}
|
903
|
+
|
904
|
+
export function __wbg_fetch_4465c2b10f21a927(arg0) {
|
905
|
+
const ret = fetch(getObject(arg0));
|
669
906
|
return addHeapObject(ret);
|
670
907
|
}
|
671
908
|
|
672
|
-
export function
|
673
|
-
const ret = getObject(arg0);
|
909
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
910
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
674
911
|
return addHeapObject(ret);
|
675
912
|
}
|
676
913
|
|
677
|
-
export function
|
678
|
-
return handleError(function (arg0) {
|
679
|
-
|
680
|
-
return addHeapObject(ret);
|
914
|
+
export function __wbg_getRandomValues_bcb4912f16000dc4() {
|
915
|
+
return handleError(function (arg0, arg1) {
|
916
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
681
917
|
}, arguments);
|
682
918
|
}
|
683
919
|
|
684
|
-
export function
|
685
|
-
const ret = getObject(arg0).
|
920
|
+
export function __wbg_getTime_46267b1c24877e30(arg0) {
|
921
|
+
const ret = getObject(arg0).getTime();
|
686
922
|
return ret;
|
687
923
|
}
|
688
924
|
|
689
|
-
export function
|
690
|
-
|
691
|
-
|
692
|
-
}
|
693
|
-
|
694
|
-
export function __wbg_call_3bfa248576352471() {
|
695
|
-
return handleError(function (arg0, arg1, arg2) {
|
696
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
925
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
926
|
+
return handleError(function (arg0, arg1) {
|
927
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
697
928
|
return addHeapObject(ret);
|
698
929
|
}, arguments);
|
699
930
|
}
|
700
931
|
|
701
|
-
export function
|
702
|
-
const ret =
|
932
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
933
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
703
934
|
return addHeapObject(ret);
|
704
935
|
}
|
705
936
|
|
706
|
-
export function
|
707
|
-
getObject(arg0)
|
937
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
938
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
939
|
+
return addHeapObject(ret);
|
708
940
|
}
|
709
941
|
|
710
|
-
export function
|
711
|
-
return handleError(function () {
|
712
|
-
const ret =
|
713
|
-
return
|
942
|
+
export function __wbg_has_a5ea9117f258a0ec() {
|
943
|
+
return handleError(function (arg0, arg1) {
|
944
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
945
|
+
return ret;
|
714
946
|
}, arguments);
|
715
947
|
}
|
716
948
|
|
717
|
-
export function
|
718
|
-
getObject(arg0).headers
|
949
|
+
export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
|
950
|
+
const ret = getObject(arg0).headers;
|
951
|
+
return addHeapObject(ret);
|
719
952
|
}
|
720
953
|
|
721
|
-
export function
|
722
|
-
getObject(arg0)
|
723
|
-
}
|
724
|
-
|
725
|
-
export function __wbg_setcredentials_a4e661320cdb9738(arg0, arg1) {
|
726
|
-
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
727
|
-
}
|
728
|
-
|
729
|
-
export function __wbg_setbody_aa8b691bec428bf4(arg0, arg1) {
|
730
|
-
getObject(arg0).body = getObject(arg1);
|
731
|
-
}
|
732
|
-
|
733
|
-
export function __wbg_signal_9acfcec9e7dffc22(arg0) {
|
734
|
-
const ret = getObject(arg0).signal;
|
735
|
-
return addHeapObject(ret);
|
736
|
-
}
|
737
|
-
|
738
|
-
export function __wbg_setsignal_812ccb8269a7fd90(arg0, arg1) {
|
739
|
-
getObject(arg0).signal = getObject(arg1);
|
954
|
+
export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
955
|
+
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
740
956
|
}
|
741
957
|
|
742
|
-
export function
|
743
|
-
|
744
|
-
|
745
|
-
|
958
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
959
|
+
let result;
|
960
|
+
try {
|
961
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
962
|
+
} catch (_) {
|
963
|
+
result = false;
|
964
|
+
}
|
965
|
+
const ret = result;
|
966
|
+
return ret;
|
746
967
|
}
|
747
968
|
|
748
|
-
export function
|
969
|
+
export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
749
970
|
let result;
|
750
971
|
try {
|
751
972
|
result = getObject(arg0) instanceof Response;
|
@@ -756,70 +977,66 @@ export function __wbg_instanceof_Response_3c0e210a57ff751d(arg0) {
|
|
756
977
|
return ret;
|
757
978
|
}
|
758
979
|
|
759
|
-
export function
|
760
|
-
|
980
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
981
|
+
let result;
|
982
|
+
try {
|
983
|
+
result = getObject(arg0) instanceof Uint8Array;
|
984
|
+
} catch (_) {
|
985
|
+
result = false;
|
986
|
+
}
|
987
|
+
const ret = result;
|
761
988
|
return ret;
|
762
989
|
}
|
763
990
|
|
764
|
-
export function
|
765
|
-
const ret = getObject(
|
766
|
-
|
767
|
-
const len1 = WASM_VECTOR_LEN;
|
768
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
769
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
991
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
992
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
993
|
+
return ret;
|
770
994
|
}
|
771
995
|
|
772
|
-
export function
|
773
|
-
const ret =
|
996
|
+
export function __wbg_iterator_9a24c88df860dc65() {
|
997
|
+
const ret = Symbol.iterator;
|
774
998
|
return addHeapObject(ret);
|
775
999
|
}
|
776
1000
|
|
777
|
-
export function
|
778
|
-
|
779
|
-
|
780
|
-
return addHeapObject(ret);
|
781
|
-
}, arguments);
|
1001
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
1002
|
+
const ret = getObject(arg0).length;
|
1003
|
+
return ret;
|
782
1004
|
}
|
783
1005
|
|
784
|
-
export function
|
785
|
-
getObject(arg0).
|
1006
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
1007
|
+
const ret = getObject(arg0).length;
|
1008
|
+
return ret;
|
786
1009
|
}
|
787
1010
|
|
788
|
-
export function
|
789
|
-
|
790
|
-
const ret = getObject(arg0).text();
|
791
|
-
return addHeapObject(ret);
|
792
|
-
}, arguments);
|
1011
|
+
export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
|
1012
|
+
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
793
1013
|
}
|
794
1014
|
|
795
|
-
export function
|
796
|
-
const ret = getObject(arg0)
|
797
|
-
return ret;
|
1015
|
+
export function __wbg_msCrypto_0a36e2ec3a343d26(arg0) {
|
1016
|
+
const ret = getObject(arg0).msCrypto;
|
1017
|
+
return addHeapObject(ret);
|
798
1018
|
}
|
799
1019
|
|
800
|
-
export function
|
801
|
-
const
|
802
|
-
|
803
|
-
obj.a = 0;
|
804
|
-
return true;
|
805
|
-
}
|
806
|
-
const ret = false;
|
807
|
-
return ret;
|
1020
|
+
export function __wbg_new0_f788a2397c7ca929() {
|
1021
|
+
const ret = new Date();
|
1022
|
+
return addHeapObject(ret);
|
808
1023
|
}
|
809
1024
|
|
810
|
-
export function
|
811
|
-
|
812
|
-
|
1025
|
+
export function __wbg_new_018dcc2d6c8c2f6a() {
|
1026
|
+
return handleError(function () {
|
1027
|
+
const ret = new Headers();
|
1028
|
+
return addHeapObject(ret);
|
1029
|
+
}, arguments);
|
813
1030
|
}
|
814
1031
|
|
815
|
-
export function
|
1032
|
+
export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
816
1033
|
try {
|
817
1034
|
var state0 = { a: arg0, b: arg1 };
|
818
1035
|
var cb0 = (arg0, arg1) => {
|
819
1036
|
const a = state0.a;
|
820
1037
|
state0.a = 0;
|
821
1038
|
try {
|
822
|
-
return
|
1039
|
+
return __wbg_adapter_139(a, state0.b, arg0, arg1);
|
823
1040
|
} finally {
|
824
1041
|
state0.a = a;
|
825
1042
|
}
|
@@ -831,233 +1048,293 @@ export function __wbg_new_1073970097e5a420(arg0, arg1) {
|
|
831
1048
|
}
|
832
1049
|
}
|
833
1050
|
|
834
|
-
export function
|
835
|
-
|
1051
|
+
export function __wbg_new_405e22f390576ce2() {
|
1052
|
+
const ret = new Object();
|
1053
|
+
return addHeapObject(ret);
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
export function __wbg_new_78feb108b6472713() {
|
1057
|
+
const ret = new Array();
|
1058
|
+
return addHeapObject(ret);
|
836
1059
|
}
|
837
1060
|
|
838
|
-
export function
|
1061
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
839
1062
|
const ret = new Error();
|
840
1063
|
return addHeapObject(ret);
|
841
1064
|
}
|
842
1065
|
|
843
|
-
export function
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1066
|
+
export function __wbg_new_9fd39a253424609a() {
|
1067
|
+
return handleError(function () {
|
1068
|
+
const ret = new FormData();
|
1069
|
+
return addHeapObject(ret);
|
1070
|
+
}, arguments);
|
849
1071
|
}
|
850
1072
|
|
851
|
-
export function
|
1073
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
1074
|
+
const ret = new Uint8Array(getObject(arg0));
|
1075
|
+
return addHeapObject(ret);
|
1076
|
+
}
|
1077
|
+
|
1078
|
+
export function __wbg_new_c68d7209be747379(arg0, arg1) {
|
1079
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1080
|
+
return addHeapObject(ret);
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
export function __wbg_new_e25e5aab09ff45db() {
|
1084
|
+
return handleError(function () {
|
1085
|
+
const ret = new AbortController();
|
1086
|
+
return addHeapObject(ret);
|
1087
|
+
}, arguments);
|
1088
|
+
}
|
1089
|
+
|
1090
|
+
export function __wbg_new_f24b6d53abe5bc82(arg0, arg1) {
|
852
1091
|
let deferred0_0;
|
853
1092
|
let deferred0_1;
|
854
1093
|
try {
|
855
1094
|
deferred0_0 = arg0;
|
856
1095
|
deferred0_1 = arg1;
|
857
|
-
|
1096
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1097
|
+
return addHeapObject(ret);
|
858
1098
|
} finally {
|
859
1099
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
860
1100
|
}
|
861
1101
|
}
|
862
1102
|
|
863
|
-
export function
|
864
|
-
|
865
|
-
|
866
|
-
return addHeapObject(ret);
|
867
|
-
}, arguments);
|
1103
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
1104
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
1105
|
+
return addHeapObject(ret);
|
868
1106
|
}
|
869
1107
|
|
870
|
-
export function
|
871
|
-
|
872
|
-
|
873
|
-
return addHeapObject(ret);
|
874
|
-
}, arguments);
|
1108
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
1109
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
1110
|
+
return addHeapObject(ret);
|
875
1111
|
}
|
876
1112
|
|
877
|
-
export function
|
878
|
-
|
879
|
-
|
880
|
-
return addHeapObject(ret);
|
881
|
-
}, arguments);
|
1113
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
1114
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
1115
|
+
return addHeapObject(ret);
|
882
1116
|
}
|
883
1117
|
|
884
|
-
export function
|
885
|
-
return handleError(function () {
|
886
|
-
const ret =
|
1118
|
+
export function __wbg_newwithstrandinit_06c535e0a867c635() {
|
1119
|
+
return handleError(function (arg0, arg1, arg2) {
|
1120
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
887
1121
|
return addHeapObject(ret);
|
888
1122
|
}, arguments);
|
889
1123
|
}
|
890
1124
|
|
891
|
-
export function
|
892
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
893
|
-
return addHeapObject(ret);
|
894
|
-
}
|
895
|
-
|
896
|
-
export function __wbg_call_a9ef466721e824f2() {
|
1125
|
+
export function __wbg_newwithu8arraysequenceandoptions_068570c487f69127() {
|
897
1126
|
return handleError(function (arg0, arg1) {
|
898
|
-
const ret = getObject(arg0)
|
1127
|
+
const ret = new Blob(getObject(arg0), getObject(arg1));
|
899
1128
|
return addHeapObject(ret);
|
900
1129
|
}, arguments);
|
901
1130
|
}
|
902
1131
|
|
903
|
-
export function
|
904
|
-
const ret =
|
1132
|
+
export function __wbg_next_25feadfc0913fea9(arg0) {
|
1133
|
+
const ret = getObject(arg0).next;
|
905
1134
|
return addHeapObject(ret);
|
906
1135
|
}
|
907
1136
|
|
908
|
-
export function
|
909
|
-
|
910
|
-
|
1137
|
+
export function __wbg_next_6574e1a8a62d1055() {
|
1138
|
+
return handleError(function (arg0) {
|
1139
|
+
const ret = getObject(arg0).next();
|
1140
|
+
return addHeapObject(ret);
|
1141
|
+
}, arguments);
|
911
1142
|
}
|
912
1143
|
|
913
|
-
export function
|
914
|
-
const ret = getObject(arg0).
|
1144
|
+
export function __wbg_node_02999533c4ea02e3(arg0) {
|
1145
|
+
const ret = getObject(arg0).node;
|
915
1146
|
return addHeapObject(ret);
|
916
1147
|
}
|
917
1148
|
|
918
|
-
export function
|
919
|
-
const ret =
|
1149
|
+
export function __wbg_process_5c1d670bc53614b8(arg0) {
|
1150
|
+
const ret = getObject(arg0).process;
|
920
1151
|
return addHeapObject(ret);
|
921
1152
|
}
|
922
1153
|
|
923
|
-
export function
|
1154
|
+
export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
924
1155
|
const ret = getObject(arg0).push(getObject(arg1));
|
925
1156
|
return ret;
|
926
1157
|
}
|
927
1158
|
|
928
|
-
export function
|
929
|
-
|
930
|
-
try {
|
931
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
932
|
-
} catch (_) {
|
933
|
-
result = false;
|
934
|
-
}
|
935
|
-
const ret = result;
|
936
|
-
return ret;
|
1159
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
1160
|
+
queueMicrotask(getObject(arg0));
|
937
1161
|
}
|
938
1162
|
|
939
|
-
export function
|
940
|
-
const ret =
|
1163
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
1164
|
+
const ret = getObject(arg0).queueMicrotask;
|
941
1165
|
return addHeapObject(ret);
|
942
1166
|
}
|
943
1167
|
|
944
|
-
export function
|
1168
|
+
export function __wbg_randomFillSync_ab2cfe79ebbf2740() {
|
945
1169
|
return handleError(function (arg0, arg1) {
|
946
|
-
|
947
|
-
return ret;
|
1170
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
948
1171
|
}, arguments);
|
949
1172
|
}
|
950
1173
|
|
951
|
-
export function
|
1174
|
+
export function __wbg_require_79b1e9274cde3c87() {
|
1175
|
+
return handleError(function () {
|
1176
|
+
const ret = module.require;
|
1177
|
+
return addHeapObject(ret);
|
1178
|
+
}, arguments);
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
952
1182
|
const ret = Promise.resolve(getObject(arg0));
|
953
1183
|
return addHeapObject(ret);
|
954
1184
|
}
|
955
1185
|
|
956
|
-
export function
|
957
|
-
|
958
|
-
return addHeapObject(ret);
|
1186
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
1187
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
959
1188
|
}
|
960
1189
|
|
961
|
-
export function
|
962
|
-
|
963
|
-
return addHeapObject(ret);
|
1190
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
1191
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
964
1192
|
}
|
965
1193
|
|
966
|
-
export function
|
967
|
-
|
968
|
-
return addHeapObject(ret);
|
1194
|
+
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
1195
|
+
getObject(arg0).body = getObject(arg1);
|
969
1196
|
}
|
970
1197
|
|
971
|
-
export function
|
972
|
-
|
973
|
-
return addHeapObject(ret);
|
1198
|
+
export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
|
1199
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
974
1200
|
}
|
975
1201
|
|
976
|
-
export function
|
977
|
-
|
978
|
-
return addHeapObject(ret);
|
1202
|
+
export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
|
1203
|
+
getObject(arg0).headers = getObject(arg1);
|
979
1204
|
}
|
980
1205
|
|
981
|
-
export function
|
982
|
-
|
983
|
-
return ret;
|
1206
|
+
export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
|
1207
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
984
1208
|
}
|
985
1209
|
|
986
|
-
export function
|
987
|
-
|
988
|
-
return addHeapObject(ret);
|
1210
|
+
export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
|
1211
|
+
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
989
1212
|
}
|
990
1213
|
|
991
|
-
export function
|
992
|
-
|
1214
|
+
export function __wbg_setname_c0e2d6f348c746f4(arg0, arg1, arg2) {
|
1215
|
+
let deferred0_0;
|
1216
|
+
let deferred0_1;
|
1217
|
+
try {
|
1218
|
+
deferred0_0 = arg1;
|
1219
|
+
deferred0_1 = arg2;
|
1220
|
+
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
1221
|
+
} finally {
|
1222
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
1223
|
+
}
|
993
1224
|
}
|
994
1225
|
|
995
|
-
export function
|
996
|
-
|
1226
|
+
export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
|
1227
|
+
getObject(arg0).signal = getObject(arg1);
|
1228
|
+
}
|
1229
|
+
|
1230
|
+
export function __wbg_settype_39ed370d3edd403c(arg0, arg1, arg2) {
|
1231
|
+
getObject(arg0).type = getStringFromWasm0(arg1, arg2);
|
1232
|
+
}
|
1233
|
+
|
1234
|
+
export function __wbg_setvariant_d1d41b778dfe9c17(arg0, arg1, arg2) {
|
1235
|
+
let deferred0_0;
|
1236
|
+
let deferred0_1;
|
997
1237
|
try {
|
998
|
-
|
999
|
-
|
1000
|
-
|
1238
|
+
deferred0_0 = arg1;
|
1239
|
+
deferred0_1 = arg2;
|
1240
|
+
getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
|
1241
|
+
} finally {
|
1242
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
1001
1243
|
}
|
1002
|
-
const ret = result;
|
1003
|
-
return ret;
|
1004
1244
|
}
|
1005
1245
|
|
1006
|
-
export function
|
1007
|
-
|
1008
|
-
|
1009
|
-
return addHeapObject(ret);
|
1010
|
-
}, arguments);
|
1246
|
+
export function __wbg_signal_aaf9ad74119f20a4(arg0) {
|
1247
|
+
const ret = getObject(arg0).signal;
|
1248
|
+
return addHeapObject(ret);
|
1011
1249
|
}
|
1012
1250
|
|
1013
|
-
export function
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1251
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
1252
|
+
const ret = getObject(arg1).stack;
|
1253
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1254
|
+
const len1 = WASM_VECTOR_LEN;
|
1255
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1256
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1017
1257
|
}
|
1018
1258
|
|
1019
|
-
export function
|
1020
|
-
|
1259
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
1260
|
+
const ret = typeof global === "undefined" ? null : global;
|
1261
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1021
1262
|
}
|
1022
1263
|
|
1023
|
-
export function
|
1024
|
-
|
1025
|
-
|
1264
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
1265
|
+
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
1266
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1267
|
+
}
|
1268
|
+
|
1269
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
1270
|
+
const ret = typeof self === "undefined" ? null : self;
|
1271
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1272
|
+
}
|
1273
|
+
|
1274
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
1275
|
+
const ret = typeof window === "undefined" ? null : window;
|
1276
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1277
|
+
}
|
1278
|
+
|
1279
|
+
export function __wbg_status_f6360336ca686bf0(arg0) {
|
1280
|
+
const ret = getObject(arg0).status;
|
1281
|
+
return ret;
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
export function __wbg_stringify_f7ed6987935b4a24() {
|
1285
|
+
return handleError(function (arg0) {
|
1286
|
+
const ret = JSON.stringify(getObject(arg0));
|
1026
1287
|
return addHeapObject(ret);
|
1027
1288
|
}, arguments);
|
1028
1289
|
}
|
1029
1290
|
|
1030
|
-
export function
|
1031
|
-
|
1032
|
-
|
1033
|
-
}, arguments);
|
1291
|
+
export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
1292
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
1293
|
+
return addHeapObject(ret);
|
1034
1294
|
}
|
1035
1295
|
|
1036
|
-
export function
|
1037
|
-
return handleError(function (arg0
|
1038
|
-
getObject(arg0).
|
1039
|
-
|
1040
|
-
getObject(arg3),
|
1041
|
-
getStringFromWasm0(arg4, arg5),
|
1042
|
-
);
|
1296
|
+
export function __wbg_text_7805bea50de2af49() {
|
1297
|
+
return handleError(function (arg0) {
|
1298
|
+
const ret = getObject(arg0).text();
|
1299
|
+
return addHeapObject(ret);
|
1043
1300
|
}, arguments);
|
1044
1301
|
}
|
1045
1302
|
|
1046
|
-
export function
|
1047
|
-
const ret =
|
1303
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
1304
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
1048
1305
|
return addHeapObject(ret);
|
1049
1306
|
}
|
1050
1307
|
|
1051
|
-
export function
|
1052
|
-
const ret = getObject(arg0).
|
1308
|
+
export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
1309
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
1053
1310
|
return addHeapObject(ret);
|
1054
1311
|
}
|
1055
1312
|
|
1056
|
-
export function
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1313
|
+
export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
|
1314
|
+
const ret = getObject(arg1).url;
|
1315
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1316
|
+
const len1 = WASM_VECTOR_LEN;
|
1317
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1318
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1319
|
+
}
|
1320
|
+
|
1321
|
+
export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
1322
|
+
const ret = getObject(arg0).value;
|
1323
|
+
return addHeapObject(ret);
|
1324
|
+
}
|
1325
|
+
|
1326
|
+
export function __wbg_versions_c71aa1626a93e0a1(arg0) {
|
1327
|
+
const ret = getObject(arg0).versions;
|
1328
|
+
return addHeapObject(ret);
|
1329
|
+
}
|
1330
|
+
|
1331
|
+
export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
|
1332
|
+
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
1333
|
+
}
|
1334
|
+
|
1335
|
+
export function __wbindgen_as_number(arg0) {
|
1336
|
+
const ret = +getObject(arg0);
|
1337
|
+
return ret;
|
1061
1338
|
}
|
1062
1339
|
|
1063
1340
|
export function __wbindgen_boolean_get(arg0) {
|
@@ -1066,19 +1343,19 @@ export function __wbindgen_boolean_get(arg0) {
|
|
1066
1343
|
return ret;
|
1067
1344
|
}
|
1068
1345
|
|
1069
|
-
export function
|
1070
|
-
const obj =
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1346
|
+
export function __wbindgen_cb_drop(arg0) {
|
1347
|
+
const obj = takeObject(arg0).original;
|
1348
|
+
if (obj.cnt-- == 1) {
|
1349
|
+
obj.a = 0;
|
1350
|
+
return true;
|
1351
|
+
}
|
1352
|
+
const ret = false;
|
1353
|
+
return ret;
|
1074
1354
|
}
|
1075
1355
|
|
1076
|
-
export function
|
1077
|
-
const ret =
|
1078
|
-
|
1079
|
-
const len1 = WASM_VECTOR_LEN;
|
1080
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1081
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1356
|
+
export function __wbindgen_closure_wrapper2087(arg0, arg1, arg2) {
|
1357
|
+
const ret = makeMutClosure(arg0, arg1, 563, __wbg_adapter_40);
|
1358
|
+
return addHeapObject(ret);
|
1082
1359
|
}
|
1083
1360
|
|
1084
1361
|
export function __wbindgen_debug_string(arg0, arg1) {
|
@@ -1089,47 +1366,84 @@ export function __wbindgen_debug_string(arg0, arg1) {
|
|
1089
1366
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1090
1367
|
}
|
1091
1368
|
|
1092
|
-
export function
|
1093
|
-
|
1369
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
1370
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1371
|
+
return addHeapObject(ret);
|
1094
1372
|
}
|
1095
1373
|
|
1096
|
-
export function
|
1097
|
-
const ret = getObject(arg0)
|
1098
|
-
return
|
1374
|
+
export function __wbindgen_in(arg0, arg1) {
|
1375
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1376
|
+
return ret;
|
1099
1377
|
}
|
1100
1378
|
|
1101
|
-
export function
|
1102
|
-
|
1379
|
+
export function __wbindgen_is_function(arg0) {
|
1380
|
+
const ret = typeof getObject(arg0) === "function";
|
1381
|
+
return ret;
|
1103
1382
|
}
|
1104
1383
|
|
1105
|
-
export function
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
}, arguments);
|
1384
|
+
export function __wbindgen_is_object(arg0) {
|
1385
|
+
const val = getObject(arg0);
|
1386
|
+
const ret = typeof val === "object" && val !== null;
|
1387
|
+
return ret;
|
1110
1388
|
}
|
1111
1389
|
|
1112
|
-
export function
|
1113
|
-
|
1390
|
+
export function __wbindgen_is_string(arg0) {
|
1391
|
+
const ret = typeof getObject(arg0) === "string";
|
1392
|
+
return ret;
|
1114
1393
|
}
|
1115
1394
|
|
1116
|
-
export function
|
1117
|
-
|
1395
|
+
export function __wbindgen_is_undefined(arg0) {
|
1396
|
+
const ret = getObject(arg0) === undefined;
|
1397
|
+
return ret;
|
1118
1398
|
}
|
1119
1399
|
|
1120
|
-
export function
|
1121
|
-
|
1400
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
1401
|
+
const ret = getObject(arg0) == getObject(arg1);
|
1402
|
+
return ret;
|
1122
1403
|
}
|
1123
1404
|
|
1124
|
-
export function
|
1125
|
-
|
1405
|
+
export function __wbindgen_memory() {
|
1406
|
+
const ret = wasm.memory;
|
1407
|
+
return addHeapObject(ret);
|
1126
1408
|
}
|
1127
1409
|
|
1128
|
-
export function
|
1129
|
-
|
1410
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1411
|
+
const obj = getObject(arg1);
|
1412
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
1413
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
1414
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
export function __wbindgen_number_new(arg0) {
|
1418
|
+
const ret = arg0;
|
1419
|
+
return addHeapObject(ret);
|
1420
|
+
}
|
1421
|
+
|
1422
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
1423
|
+
const ret = getObject(arg0);
|
1424
|
+
return addHeapObject(ret);
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
1428
|
+
takeObject(arg0);
|
1130
1429
|
}
|
1131
1430
|
|
1132
|
-
export function
|
1133
|
-
const
|
1431
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
1432
|
+
const obj = getObject(arg1);
|
1433
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
1434
|
+
var ptr1 = isLikeNone(ret)
|
1435
|
+
? 0
|
1436
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1437
|
+
var len1 = WASM_VECTOR_LEN;
|
1438
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1439
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1440
|
+
}
|
1441
|
+
|
1442
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1443
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1134
1444
|
return addHeapObject(ret);
|
1135
1445
|
}
|
1446
|
+
|
1447
|
+
export function __wbindgen_throw(arg0, arg1) {
|
1448
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
1449
|
+
}
|