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