@filen/sdk-rs 0.2.2 → 0.2.4
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/browser/sdk-rs.d.ts +130 -0
- package/browser/sdk-rs.js +5 -0
- package/browser/sdk-rs_bg.js +1558 -0
- package/browser/sdk-rs_bg.wasm +0 -0
- package/browser/sdk-rs_bg.wasm.d.ts +58 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1558 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
let WASM_VECTOR_LEN = 0;
|
|
8
|
+
|
|
9
|
+
let cachedUint8ArrayMemory0 = null;
|
|
10
|
+
|
|
11
|
+
function getUint8ArrayMemory0() {
|
|
12
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
13
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
+
}
|
|
15
|
+
return cachedUint8ArrayMemory0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
19
|
+
|
|
20
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
21
|
+
|
|
22
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
23
|
+
? function (arg, view) {
|
|
24
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
25
|
+
}
|
|
26
|
+
: function (arg, view) {
|
|
27
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
28
|
+
view.set(buf);
|
|
29
|
+
return {
|
|
30
|
+
read: arg.length,
|
|
31
|
+
written: buf.length
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
36
|
+
|
|
37
|
+
if (realloc === undefined) {
|
|
38
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
39
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
40
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
41
|
+
WASM_VECTOR_LEN = buf.length;
|
|
42
|
+
return ptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
let len = arg.length;
|
|
46
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
47
|
+
|
|
48
|
+
const mem = getUint8ArrayMemory0();
|
|
49
|
+
|
|
50
|
+
let offset = 0;
|
|
51
|
+
|
|
52
|
+
for (; offset < len; offset++) {
|
|
53
|
+
const code = arg.charCodeAt(offset);
|
|
54
|
+
if (code > 0x7F) break;
|
|
55
|
+
mem[ptr + offset] = code;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (offset !== len) {
|
|
59
|
+
if (offset !== 0) {
|
|
60
|
+
arg = arg.slice(offset);
|
|
61
|
+
}
|
|
62
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
64
|
+
const ret = encodeString(arg, view);
|
|
65
|
+
|
|
66
|
+
offset += ret.written;
|
|
67
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
WASM_VECTOR_LEN = offset;
|
|
71
|
+
return ptr;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let cachedDataViewMemory0 = null;
|
|
75
|
+
|
|
76
|
+
function getDataViewMemory0() {
|
|
77
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
78
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
79
|
+
}
|
|
80
|
+
return cachedDataViewMemory0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function getFromExternrefTable0(idx) { return wasm.__wbindgen_export_2.get(idx); }
|
|
84
|
+
|
|
85
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
86
|
+
|
|
87
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
88
|
+
|
|
89
|
+
cachedTextDecoder.decode();
|
|
90
|
+
|
|
91
|
+
function getStringFromWasm0(ptr, len) {
|
|
92
|
+
ptr = ptr >>> 0;
|
|
93
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
97
|
+
if (ptr === 0) {
|
|
98
|
+
return getFromExternrefTable0(len);
|
|
99
|
+
} else {
|
|
100
|
+
return getStringFromWasm0(ptr, len);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function addToExternrefTable0(obj) {
|
|
105
|
+
const idx = wasm.__externref_table_alloc();
|
|
106
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
107
|
+
return idx;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function handleError(f, args) {
|
|
111
|
+
try {
|
|
112
|
+
return f.apply(this, args);
|
|
113
|
+
} catch (e) {
|
|
114
|
+
const idx = addToExternrefTable0(e);
|
|
115
|
+
wasm.__wbindgen_exn_store(idx);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function isLikeNone(x) {
|
|
120
|
+
return x === undefined || x === null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
124
|
+
ptr = ptr >>> 0;
|
|
125
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
129
|
+
? { register: () => {}, unregister: () => {} }
|
|
130
|
+
: new FinalizationRegistry(state => {
|
|
131
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
135
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
136
|
+
const real = (...args) => {
|
|
137
|
+
// First up with a closure we increment the internal reference
|
|
138
|
+
// count. This ensures that the Rust closure environment won't
|
|
139
|
+
// be deallocated while we're invoking it.
|
|
140
|
+
state.cnt++;
|
|
141
|
+
const a = state.a;
|
|
142
|
+
state.a = 0;
|
|
143
|
+
try {
|
|
144
|
+
return f(a, state.b, ...args);
|
|
145
|
+
} finally {
|
|
146
|
+
if (--state.cnt === 0) {
|
|
147
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
148
|
+
CLOSURE_DTORS.unregister(state);
|
|
149
|
+
} else {
|
|
150
|
+
state.a = a;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
real.original = state;
|
|
155
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
156
|
+
return real;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function debugString(val) {
|
|
160
|
+
// primitive types
|
|
161
|
+
const type = typeof val;
|
|
162
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
163
|
+
return `${val}`;
|
|
164
|
+
}
|
|
165
|
+
if (type == 'string') {
|
|
166
|
+
return `"${val}"`;
|
|
167
|
+
}
|
|
168
|
+
if (type == 'symbol') {
|
|
169
|
+
const description = val.description;
|
|
170
|
+
if (description == null) {
|
|
171
|
+
return 'Symbol';
|
|
172
|
+
} else {
|
|
173
|
+
return `Symbol(${description})`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (type == 'function') {
|
|
177
|
+
const name = val.name;
|
|
178
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
179
|
+
return `Function(${name})`;
|
|
180
|
+
} else {
|
|
181
|
+
return 'Function';
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// objects
|
|
185
|
+
if (Array.isArray(val)) {
|
|
186
|
+
const length = val.length;
|
|
187
|
+
let debug = '[';
|
|
188
|
+
if (length > 0) {
|
|
189
|
+
debug += debugString(val[0]);
|
|
190
|
+
}
|
|
191
|
+
for(let i = 1; i < length; i++) {
|
|
192
|
+
debug += ', ' + debugString(val[i]);
|
|
193
|
+
}
|
|
194
|
+
debug += ']';
|
|
195
|
+
return debug;
|
|
196
|
+
}
|
|
197
|
+
// Test for built-in
|
|
198
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
199
|
+
let className;
|
|
200
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
201
|
+
className = builtInMatches[1];
|
|
202
|
+
} else {
|
|
203
|
+
// Failed to match the standard '[object ClassName]'
|
|
204
|
+
return toString.call(val);
|
|
205
|
+
}
|
|
206
|
+
if (className == 'Object') {
|
|
207
|
+
// we're a user defined class or Object
|
|
208
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
209
|
+
// easier than looping through ownProperties of `val`.
|
|
210
|
+
try {
|
|
211
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
212
|
+
} catch (_) {
|
|
213
|
+
return 'Object';
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
// errors
|
|
217
|
+
if (val instanceof Error) {
|
|
218
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
219
|
+
}
|
|
220
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
221
|
+
return className;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function takeFromExternrefTable0(idx) {
|
|
225
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
226
|
+
wasm.__externref_table_dealloc(idx);
|
|
227
|
+
return value;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @param {StringifiedClient} serialized
|
|
231
|
+
* @returns {FilenState}
|
|
232
|
+
*/
|
|
233
|
+
export function from_serialized(serialized) {
|
|
234
|
+
const ret = wasm.from_serialized(serialized);
|
|
235
|
+
if (ret[2]) {
|
|
236
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
237
|
+
}
|
|
238
|
+
return FilenState.__wrap(ret[0]);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @param {string} email
|
|
243
|
+
* @param {string} password
|
|
244
|
+
* @param {string | null} [two_factor_code]
|
|
245
|
+
* @returns {Promise<FilenState>}
|
|
246
|
+
*/
|
|
247
|
+
export function login(email, password, two_factor_code) {
|
|
248
|
+
const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
249
|
+
const len0 = WASM_VECTOR_LEN;
|
|
250
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
251
|
+
const len1 = WASM_VECTOR_LEN;
|
|
252
|
+
var ptr2 = isLikeNone(two_factor_code) ? 0 : passStringToWasm0(two_factor_code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
+
var len2 = WASM_VECTOR_LEN;
|
|
254
|
+
const ret = wasm.login(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
255
|
+
return ret;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export function main_js() {
|
|
259
|
+
wasm.main_js();
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function _assertClass(instance, klass) {
|
|
263
|
+
if (!(instance instanceof klass)) {
|
|
264
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
269
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
270
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
271
|
+
WASM_VECTOR_LEN = arg.length;
|
|
272
|
+
return ptr;
|
|
273
|
+
}
|
|
274
|
+
function __wbg_adapter_58(arg0, arg1, arg2) {
|
|
275
|
+
wasm.closure110_externref_shim(arg0, arg1, arg2);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function __wbg_adapter_61(arg0, arg1) {
|
|
279
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3a28bb1da68602c0(arg0, arg1);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function __wbg_adapter_143(arg0, arg1, arg2, arg3) {
|
|
283
|
+
wasm.closure86_externref_shim(arg0, arg1, arg2, arg3);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Chroma subsampling format
|
|
288
|
+
* @enum {0 | 1 | 2 | 3}
|
|
289
|
+
*/
|
|
290
|
+
export const ChromaSampling = Object.freeze({
|
|
291
|
+
/**
|
|
292
|
+
* Both vertically and horizontally subsampled.
|
|
293
|
+
*/
|
|
294
|
+
Cs420: 0, "0": "Cs420",
|
|
295
|
+
/**
|
|
296
|
+
* Horizontally subsampled.
|
|
297
|
+
*/
|
|
298
|
+
Cs422: 1, "1": "Cs422",
|
|
299
|
+
/**
|
|
300
|
+
* Not subsampled.
|
|
301
|
+
*/
|
|
302
|
+
Cs444: 2, "2": "Cs444",
|
|
303
|
+
/**
|
|
304
|
+
* Monochrome.
|
|
305
|
+
*/
|
|
306
|
+
Cs400: 3, "3": "Cs400",
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
|
|
310
|
+
|
|
311
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
312
|
+
|
|
313
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
314
|
+
|
|
315
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
316
|
+
|
|
317
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
318
|
+
|
|
319
|
+
const DirFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
320
|
+
? { register: () => {}, unregister: () => {} }
|
|
321
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dir_free(ptr >>> 0, 1));
|
|
322
|
+
|
|
323
|
+
export class Dir {
|
|
324
|
+
|
|
325
|
+
static __wrap(ptr) {
|
|
326
|
+
ptr = ptr >>> 0;
|
|
327
|
+
const obj = Object.create(Dir.prototype);
|
|
328
|
+
obj.__wbg_ptr = ptr;
|
|
329
|
+
DirFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
330
|
+
return obj;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
__destroy_into_raw() {
|
|
334
|
+
const ptr = this.__wbg_ptr;
|
|
335
|
+
this.__wbg_ptr = 0;
|
|
336
|
+
DirFinalization.unregister(this);
|
|
337
|
+
return ptr;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
free() {
|
|
341
|
+
const ptr = this.__destroy_into_raw();
|
|
342
|
+
wasm.__wbg_dir_free(ptr, 0);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @returns {string}
|
|
346
|
+
*/
|
|
347
|
+
get parent() {
|
|
348
|
+
const ret = wasm.dir_parent(this.__wbg_ptr);
|
|
349
|
+
var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
350
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
351
|
+
return v1;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @returns {boolean}
|
|
355
|
+
*/
|
|
356
|
+
get favorited() {
|
|
357
|
+
const ret = wasm.dir_favorited(this.__wbg_ptr);
|
|
358
|
+
return ret !== 0;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @returns {string}
|
|
362
|
+
*/
|
|
363
|
+
get uuid() {
|
|
364
|
+
const ret = wasm.dir_uuid(this.__wbg_ptr);
|
|
365
|
+
var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
366
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
367
|
+
return v1;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @returns {string}
|
|
371
|
+
*/
|
|
372
|
+
get color() {
|
|
373
|
+
const ret = wasm.dir_color(this.__wbg_ptr);
|
|
374
|
+
var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
375
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
376
|
+
return v1;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* @returns {DirMeta | undefined}
|
|
380
|
+
*/
|
|
381
|
+
get meta() {
|
|
382
|
+
const ret = wasm.dir_meta(this.__wbg_ptr);
|
|
383
|
+
return ret;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const FileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
388
|
+
? { register: () => {}, unregister: () => {} }
|
|
389
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_file_free(ptr >>> 0, 1));
|
|
390
|
+
|
|
391
|
+
export class File {
|
|
392
|
+
|
|
393
|
+
static __wrap(ptr) {
|
|
394
|
+
ptr = ptr >>> 0;
|
|
395
|
+
const obj = Object.create(File.prototype);
|
|
396
|
+
obj.__wbg_ptr = ptr;
|
|
397
|
+
FileFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
398
|
+
return obj;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
__destroy_into_raw() {
|
|
402
|
+
const ptr = this.__wbg_ptr;
|
|
403
|
+
this.__wbg_ptr = 0;
|
|
404
|
+
FileFinalization.unregister(this);
|
|
405
|
+
return ptr;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
free() {
|
|
409
|
+
const ptr = this.__destroy_into_raw();
|
|
410
|
+
wasm.__wbg_file_free(ptr, 0);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @returns {FileMeta | undefined}
|
|
414
|
+
*/
|
|
415
|
+
get meta() {
|
|
416
|
+
const ret = wasm.file_meta(this.__wbg_ptr);
|
|
417
|
+
return ret;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @returns {string}
|
|
421
|
+
*/
|
|
422
|
+
get parent() {
|
|
423
|
+
const ret = wasm.file_parent(this.__wbg_ptr);
|
|
424
|
+
var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
425
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
426
|
+
return v1;
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* @returns {string}
|
|
430
|
+
*/
|
|
431
|
+
get uuid() {
|
|
432
|
+
const ret = wasm.file_uuid(this.__wbg_ptr);
|
|
433
|
+
var v1 = getCachedStringFromWasm0(ret[0], ret[1]);
|
|
434
|
+
if (ret[0] !== 0) { wasm.__wbindgen_free(ret[0], ret[1], 1); }
|
|
435
|
+
return v1;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @returns {bigint}
|
|
439
|
+
*/
|
|
440
|
+
get size() {
|
|
441
|
+
const ret = wasm.file_size(this.__wbg_ptr);
|
|
442
|
+
return BigInt.asUintN(64, ret);
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @returns {boolean}
|
|
446
|
+
*/
|
|
447
|
+
get favorited() {
|
|
448
|
+
const ret = wasm.file_favorited(this.__wbg_ptr);
|
|
449
|
+
return ret !== 0;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
const FilenStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
454
|
+
? { register: () => {}, unregister: () => {} }
|
|
455
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_filenstate_free(ptr >>> 0, 1));
|
|
456
|
+
|
|
457
|
+
export class FilenState {
|
|
458
|
+
|
|
459
|
+
static __wrap(ptr) {
|
|
460
|
+
ptr = ptr >>> 0;
|
|
461
|
+
const obj = Object.create(FilenState.prototype);
|
|
462
|
+
obj.__wbg_ptr = ptr;
|
|
463
|
+
FilenStateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
464
|
+
return obj;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
__destroy_into_raw() {
|
|
468
|
+
const ptr = this.__wbg_ptr;
|
|
469
|
+
this.__wbg_ptr = 0;
|
|
470
|
+
FilenStateFinalization.unregister(this);
|
|
471
|
+
return ptr;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
free() {
|
|
475
|
+
const ptr = this.__destroy_into_raw();
|
|
476
|
+
wasm.__wbg_filenstate_free(ptr, 0);
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* @returns {StringifiedClient}
|
|
480
|
+
*/
|
|
481
|
+
serialize() {
|
|
482
|
+
const ret = wasm.filenstate_serialize(this.__wbg_ptr);
|
|
483
|
+
return ret;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @param {Dir} dir
|
|
487
|
+
* @param {string} name_or_uuid
|
|
488
|
+
* @returns {Dir | File | undefined}
|
|
489
|
+
*/
|
|
490
|
+
findItemInDir(dir, name_or_uuid) {
|
|
491
|
+
_assertClass(dir, Dir);
|
|
492
|
+
const ptr0 = passStringToWasm0(name_or_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
493
|
+
const len0 = WASM_VECTOR_LEN;
|
|
494
|
+
const ret = wasm.filenstate_findItemInDir(this.__wbg_ptr, dir.__wbg_ptr, ptr0, len0);
|
|
495
|
+
return ret;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @param {Dir} parent
|
|
499
|
+
* @param {string} name
|
|
500
|
+
* @returns {Promise<void>}
|
|
501
|
+
*/
|
|
502
|
+
dirExists(parent, name) {
|
|
503
|
+
_assertClass(parent, Dir);
|
|
504
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
505
|
+
const len0 = WASM_VECTOR_LEN;
|
|
506
|
+
const ret = wasm.filenstate_dirExists(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0);
|
|
507
|
+
return ret;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @param {Dir} dir
|
|
511
|
+
* @returns {Promise<void>}
|
|
512
|
+
*/
|
|
513
|
+
deleteDirPermanently(dir) {
|
|
514
|
+
_assertClass(dir, Dir);
|
|
515
|
+
var ptr0 = dir.__destroy_into_raw();
|
|
516
|
+
const ret = wasm.filenstate_deleteDirPermanently(this.__wbg_ptr, ptr0);
|
|
517
|
+
return ret;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @param {Dir} dir
|
|
521
|
+
* @returns {Promise<void>}
|
|
522
|
+
*/
|
|
523
|
+
trashDir(dir) {
|
|
524
|
+
_assertClass(dir, Dir);
|
|
525
|
+
const ret = wasm.filenstate_trashDir(this.__wbg_ptr, dir.__wbg_ptr);
|
|
526
|
+
return ret;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* @returns {Dir}
|
|
530
|
+
*/
|
|
531
|
+
root() {
|
|
532
|
+
const ret = wasm.filenstate_root(this.__wbg_ptr);
|
|
533
|
+
return Dir.__wrap(ret);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param {Dir} parent
|
|
537
|
+
* @param {string} name
|
|
538
|
+
* @returns {Promise<Dir>}
|
|
539
|
+
*/
|
|
540
|
+
createDir(parent, name) {
|
|
541
|
+
_assertClass(parent, Dir);
|
|
542
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
544
|
+
const ret = wasm.filenstate_createDir(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0);
|
|
545
|
+
return ret;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @param {Dir} dir
|
|
549
|
+
* @returns {[Dir[], File[]]}
|
|
550
|
+
*/
|
|
551
|
+
listDir(dir) {
|
|
552
|
+
_assertClass(dir, Dir);
|
|
553
|
+
const ret = wasm.filenstate_listDir(this.__wbg_ptr, dir.__wbg_ptr);
|
|
554
|
+
return ret;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* @param {Dir} parent
|
|
558
|
+
* @param {UploadFileStreamParams} params
|
|
559
|
+
* @returns {Promise<File>}
|
|
560
|
+
*/
|
|
561
|
+
uploadFileStream(parent, params) {
|
|
562
|
+
_assertClass(parent, Dir);
|
|
563
|
+
const ret = wasm.filenstate_uploadFileStream(this.__wbg_ptr, parent.__wbg_ptr, params);
|
|
564
|
+
return ret;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* @param {File} file
|
|
568
|
+
* @returns {Promise<void>}
|
|
569
|
+
*/
|
|
570
|
+
trashFile(file) {
|
|
571
|
+
_assertClass(file, File);
|
|
572
|
+
const ret = wasm.filenstate_trashFile(this.__wbg_ptr, file.__wbg_ptr);
|
|
573
|
+
return ret;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @param {File} file
|
|
577
|
+
* @returns {Promise<Uint8Array>}
|
|
578
|
+
*/
|
|
579
|
+
downloadFile(file) {
|
|
580
|
+
_assertClass(file, File);
|
|
581
|
+
const ret = wasm.filenstate_downloadFile(this.__wbg_ptr, file.__wbg_ptr);
|
|
582
|
+
return ret;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* @param {File} file
|
|
586
|
+
* @param {DownloadFileStreamParams} params
|
|
587
|
+
* @returns {Promise<void>}
|
|
588
|
+
*/
|
|
589
|
+
downloadFileToWriter(file, params) {
|
|
590
|
+
_assertClass(file, File);
|
|
591
|
+
const ret = wasm.filenstate_downloadFileToWriter(this.__wbg_ptr, file.__wbg_ptr, params);
|
|
592
|
+
return ret;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @param {File} file
|
|
596
|
+
* @returns {Promise<void>}
|
|
597
|
+
*/
|
|
598
|
+
deleteFilePermanently(file) {
|
|
599
|
+
_assertClass(file, File);
|
|
600
|
+
var ptr0 = file.__destroy_into_raw();
|
|
601
|
+
const ret = wasm.filenstate_deleteFilePermanently(this.__wbg_ptr, ptr0);
|
|
602
|
+
return ret;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @param {Dir} parent
|
|
606
|
+
* @param {Uint8Array} data
|
|
607
|
+
* @param {UploadFileParams} params
|
|
608
|
+
* @returns {Promise<File>}
|
|
609
|
+
*/
|
|
610
|
+
uploadFile(parent, data, params) {
|
|
611
|
+
_assertClass(parent, Dir);
|
|
612
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
613
|
+
const len0 = WASM_VECTOR_LEN;
|
|
614
|
+
const ret = wasm.filenstate_uploadFile(this.__wbg_ptr, parent.__wbg_ptr, ptr0, len0, params);
|
|
615
|
+
return ret;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
620
|
+
? { register: () => {}, unregister: () => {} }
|
|
621
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
622
|
+
|
|
623
|
+
export class IntoUnderlyingByteSource {
|
|
624
|
+
|
|
625
|
+
__destroy_into_raw() {
|
|
626
|
+
const ptr = this.__wbg_ptr;
|
|
627
|
+
this.__wbg_ptr = 0;
|
|
628
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
629
|
+
return ptr;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
free() {
|
|
633
|
+
const ptr = this.__destroy_into_raw();
|
|
634
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
635
|
+
}
|
|
636
|
+
cancel() {
|
|
637
|
+
const ptr = this.__destroy_into_raw();
|
|
638
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* @param {ReadableByteStreamController} controller
|
|
642
|
+
* @returns {Promise<any>}
|
|
643
|
+
*/
|
|
644
|
+
pull(controller) {
|
|
645
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
646
|
+
return ret;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* @param {ReadableByteStreamController} controller
|
|
650
|
+
*/
|
|
651
|
+
start(controller) {
|
|
652
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* @returns {ReadableStreamType}
|
|
656
|
+
*/
|
|
657
|
+
get type() {
|
|
658
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
659
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* @returns {number}
|
|
663
|
+
*/
|
|
664
|
+
get autoAllocateChunkSize() {
|
|
665
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
666
|
+
return ret >>> 0;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
671
|
+
? { register: () => {}, unregister: () => {} }
|
|
672
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
673
|
+
|
|
674
|
+
export class IntoUnderlyingSink {
|
|
675
|
+
|
|
676
|
+
__destroy_into_raw() {
|
|
677
|
+
const ptr = this.__wbg_ptr;
|
|
678
|
+
this.__wbg_ptr = 0;
|
|
679
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
680
|
+
return ptr;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
free() {
|
|
684
|
+
const ptr = this.__destroy_into_raw();
|
|
685
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @returns {Promise<any>}
|
|
689
|
+
*/
|
|
690
|
+
close() {
|
|
691
|
+
const ptr = this.__destroy_into_raw();
|
|
692
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
693
|
+
return ret;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* @param {any} chunk
|
|
697
|
+
* @returns {Promise<any>}
|
|
698
|
+
*/
|
|
699
|
+
write(chunk) {
|
|
700
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
701
|
+
return ret;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* @param {any} reason
|
|
705
|
+
* @returns {Promise<any>}
|
|
706
|
+
*/
|
|
707
|
+
abort(reason) {
|
|
708
|
+
const ptr = this.__destroy_into_raw();
|
|
709
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
710
|
+
return ret;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
715
|
+
? { register: () => {}, unregister: () => {} }
|
|
716
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
717
|
+
|
|
718
|
+
export class IntoUnderlyingSource {
|
|
719
|
+
|
|
720
|
+
__destroy_into_raw() {
|
|
721
|
+
const ptr = this.__wbg_ptr;
|
|
722
|
+
this.__wbg_ptr = 0;
|
|
723
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
724
|
+
return ptr;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
free() {
|
|
728
|
+
const ptr = this.__destroy_into_raw();
|
|
729
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
730
|
+
}
|
|
731
|
+
cancel() {
|
|
732
|
+
const ptr = this.__destroy_into_raw();
|
|
733
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* @param {ReadableStreamDefaultController} controller
|
|
737
|
+
* @returns {Promise<any>}
|
|
738
|
+
*/
|
|
739
|
+
pull(controller) {
|
|
740
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
741
|
+
return ret;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
746
|
+
const ret = String(arg1);
|
|
747
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
748
|
+
const len1 = WASM_VECTOR_LEN;
|
|
749
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
750
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
|
|
754
|
+
arg0.abort(arg1);
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
export function __wbg_abort_775ef1d17fc65868(arg0) {
|
|
758
|
+
arg0.abort();
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
762
|
+
var v0 = getCachedStringFromWasm0(arg1, arg2);
|
|
763
|
+
var v1 = getCachedStringFromWasm0(arg3, arg4);
|
|
764
|
+
arg0.append(v0, v1);
|
|
765
|
+
}, arguments) };
|
|
766
|
+
|
|
767
|
+
export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
|
|
768
|
+
const ret = arg0.arrayBuffer();
|
|
769
|
+
return ret;
|
|
770
|
+
}, arguments) };
|
|
771
|
+
|
|
772
|
+
export function __wbg_body_0b8fd1fe671660df(arg0) {
|
|
773
|
+
const ret = arg0.body;
|
|
774
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export function __wbg_buffer_09165b52af8c5237(arg0) {
|
|
778
|
+
const ret = arg0.buffer;
|
|
779
|
+
return ret;
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
783
|
+
const ret = arg0.buffer;
|
|
784
|
+
return ret;
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
export function __wbg_byobRequest_77d9adf63337edfb(arg0) {
|
|
788
|
+
const ret = arg0.byobRequest;
|
|
789
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
export function __wbg_byteLength_e674b853d9c77e1d(arg0) {
|
|
793
|
+
const ret = arg0.byteLength;
|
|
794
|
+
return ret;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
export function __wbg_byteOffset_fd862df290ef848d(arg0) {
|
|
798
|
+
const ret = arg0.byteOffset;
|
|
799
|
+
return ret;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
|
803
|
+
const ret = arg0.call(arg1);
|
|
804
|
+
return ret;
|
|
805
|
+
}, arguments) };
|
|
806
|
+
|
|
807
|
+
export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
|
|
808
|
+
const ret = arg0.call(arg1, arg2);
|
|
809
|
+
return ret;
|
|
810
|
+
}, arguments) };
|
|
811
|
+
|
|
812
|
+
export function __wbg_cancel_81ebaa65c2a54d20(arg0) {
|
|
813
|
+
const ret = arg0.cancel();
|
|
814
|
+
return ret;
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
export function __wbg_cancel_8a308660caa6cadf(arg0) {
|
|
818
|
+
const ret = arg0.cancel();
|
|
819
|
+
return ret;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
|
|
823
|
+
const ret = arg0.catch(arg1);
|
|
824
|
+
return ret;
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
|
|
828
|
+
const ret = clearTimeout(arg0);
|
|
829
|
+
return ret;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
export function __wbg_close_304cc1fef3466669() { return handleError(function (arg0) {
|
|
833
|
+
arg0.close();
|
|
834
|
+
}, arguments) };
|
|
835
|
+
|
|
836
|
+
export function __wbg_close_5ce03e29be453811() { return handleError(function (arg0) {
|
|
837
|
+
arg0.close();
|
|
838
|
+
}, arguments) };
|
|
839
|
+
|
|
840
|
+
export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
841
|
+
const ret = arg0.crypto;
|
|
842
|
+
return ret;
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
|
|
846
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
847
|
+
};
|
|
848
|
+
|
|
849
|
+
export function __wbg_dir_new(arg0) {
|
|
850
|
+
const ret = Dir.__wrap(arg0);
|
|
851
|
+
return ret;
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
export function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
855
|
+
const ret = arg0.done;
|
|
856
|
+
return ret;
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
export function __wbg_enqueue_bb16ba72f537dc9e() { return handleError(function (arg0, arg1) {
|
|
860
|
+
arg0.enqueue(arg1);
|
|
861
|
+
}, arguments) };
|
|
862
|
+
|
|
863
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
864
|
+
const ret = Object.entries(arg0);
|
|
865
|
+
return ret;
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
export function __wbg_error_524f506f44df1645(arg0) {
|
|
869
|
+
console.error(arg0);
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
873
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
874
|
+
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
875
|
+
console.error(v0);
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
|
879
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
883
|
+
const ret = arg0.fetch(arg1);
|
|
884
|
+
return ret;
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
export function __wbg_fetch_f156d10be9a5c88a(arg0) {
|
|
888
|
+
const ret = fetch(arg0);
|
|
889
|
+
return ret;
|
|
890
|
+
};
|
|
891
|
+
|
|
892
|
+
export function __wbg_file_new(arg0) {
|
|
893
|
+
const ret = File.__wrap(arg0);
|
|
894
|
+
return ret;
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
export function __wbg_filenstate_new(arg0) {
|
|
898
|
+
const ret = FilenState.__wrap(arg0);
|
|
899
|
+
return ret;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
export function __wbg_getRandomValues_3c9c0d586e575a16() { return handleError(function (arg0, arg1) {
|
|
903
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
904
|
+
}, arguments) };
|
|
905
|
+
|
|
906
|
+
export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
|
|
907
|
+
arg0.getRandomValues(arg1);
|
|
908
|
+
}, arguments) };
|
|
909
|
+
|
|
910
|
+
export function __wbg_getReader_21f724e0f12fa481() { return handleError(function (arg0, arg1) {
|
|
911
|
+
const ret = arg0.getReader(arg1);
|
|
912
|
+
return ret;
|
|
913
|
+
}, arguments) };
|
|
914
|
+
|
|
915
|
+
export function __wbg_getReader_48e00749fe3f6089() { return handleError(function (arg0) {
|
|
916
|
+
const ret = arg0.getReader();
|
|
917
|
+
return ret;
|
|
918
|
+
}, arguments) };
|
|
919
|
+
|
|
920
|
+
export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
921
|
+
const ret = arg0.getTime();
|
|
922
|
+
return ret;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
export function __wbg_getWriter_6ce182d0adc3f96b() { return handleError(function (arg0) {
|
|
926
|
+
const ret = arg0.getWriter();
|
|
927
|
+
return ret;
|
|
928
|
+
}, arguments) };
|
|
929
|
+
|
|
930
|
+
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
931
|
+
const ret = Reflect.get(arg0, arg1);
|
|
932
|
+
return ret;
|
|
933
|
+
}, arguments) };
|
|
934
|
+
|
|
935
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
936
|
+
const ret = arg0[arg1 >>> 0];
|
|
937
|
+
return ret;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export function __wbg_getdone_d47073731acd3e74(arg0) {
|
|
941
|
+
const ret = arg0.done;
|
|
942
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
export function __wbg_getvalue_009dcd63692bee1f(arg0) {
|
|
946
|
+
const ret = arg0.value;
|
|
947
|
+
return ret;
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
951
|
+
const ret = arg0[arg1];
|
|
952
|
+
return ret;
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
|
|
956
|
+
const ret = Reflect.has(arg0, arg1);
|
|
957
|
+
return ret;
|
|
958
|
+
}, arguments) };
|
|
959
|
+
|
|
960
|
+
export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
|
|
961
|
+
const ret = arg0.headers;
|
|
962
|
+
return ret;
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
|
966
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
970
|
+
let result;
|
|
971
|
+
try {
|
|
972
|
+
result = arg0 instanceof ArrayBuffer;
|
|
973
|
+
} catch (_) {
|
|
974
|
+
result = false;
|
|
975
|
+
}
|
|
976
|
+
const ret = result;
|
|
977
|
+
return ret;
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
981
|
+
let result;
|
|
982
|
+
try {
|
|
983
|
+
result = arg0 instanceof Map;
|
|
984
|
+
} catch (_) {
|
|
985
|
+
result = false;
|
|
986
|
+
}
|
|
987
|
+
const ret = result;
|
|
988
|
+
return ret;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
export function __wbg_instanceof_ReadableStream_87eac785b90f3611(arg0) {
|
|
992
|
+
let result;
|
|
993
|
+
try {
|
|
994
|
+
result = arg0 instanceof ReadableStream;
|
|
995
|
+
} catch (_) {
|
|
996
|
+
result = false;
|
|
997
|
+
}
|
|
998
|
+
const ret = result;
|
|
999
|
+
return ret;
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
|
1003
|
+
let result;
|
|
1004
|
+
try {
|
|
1005
|
+
result = arg0 instanceof Response;
|
|
1006
|
+
} catch (_) {
|
|
1007
|
+
result = false;
|
|
1008
|
+
}
|
|
1009
|
+
const ret = result;
|
|
1010
|
+
return ret;
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
1014
|
+
let result;
|
|
1015
|
+
try {
|
|
1016
|
+
result = arg0 instanceof Uint8Array;
|
|
1017
|
+
} catch (_) {
|
|
1018
|
+
result = false;
|
|
1019
|
+
}
|
|
1020
|
+
const ret = result;
|
|
1021
|
+
return ret;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
export function __wbg_instanceof_WritableStream_ba73ec6ef935602f(arg0) {
|
|
1025
|
+
let result;
|
|
1026
|
+
try {
|
|
1027
|
+
result = arg0 instanceof WritableStream;
|
|
1028
|
+
} catch (_) {
|
|
1029
|
+
result = false;
|
|
1030
|
+
}
|
|
1031
|
+
const ret = result;
|
|
1032
|
+
return ret;
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
export function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
|
1036
|
+
const ret = Array.isArray(arg0);
|
|
1037
|
+
return ret;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
1041
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1042
|
+
return ret;
|
|
1043
|
+
};
|
|
1044
|
+
|
|
1045
|
+
export function __wbg_iterator_9a24c88df860dc65() {
|
|
1046
|
+
const ret = Symbol.iterator;
|
|
1047
|
+
return ret;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
|
1051
|
+
const ret = arg0.length;
|
|
1052
|
+
return ret;
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1055
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
1056
|
+
const ret = arg0.length;
|
|
1057
|
+
return ret;
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
|
|
1061
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
1065
|
+
const ret = arg0.msCrypto;
|
|
1066
|
+
return ret;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
export function __wbg_new0_f788a2397c7ca929() {
|
|
1070
|
+
const ret = new Date();
|
|
1071
|
+
return ret;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
export function __wbg_new_018dcc2d6c8c2f6a() { return handleError(function () {
|
|
1075
|
+
const ret = new Headers();
|
|
1076
|
+
return ret;
|
|
1077
|
+
}, arguments) };
|
|
1078
|
+
|
|
1079
|
+
export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
1080
|
+
try {
|
|
1081
|
+
var state0 = {a: arg0, b: arg1};
|
|
1082
|
+
var cb0 = (arg0, arg1) => {
|
|
1083
|
+
const a = state0.a;
|
|
1084
|
+
state0.a = 0;
|
|
1085
|
+
try {
|
|
1086
|
+
return __wbg_adapter_143(a, state0.b, arg0, arg1);
|
|
1087
|
+
} finally {
|
|
1088
|
+
state0.a = a;
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
const ret = new Promise(cb0);
|
|
1092
|
+
return ret;
|
|
1093
|
+
} finally {
|
|
1094
|
+
state0.a = state0.b = 0;
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
export function __wbg_new_31a97dac4f10fab7(arg0) {
|
|
1099
|
+
const ret = new Date(arg0);
|
|
1100
|
+
return ret;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
export function __wbg_new_405e22f390576ce2() {
|
|
1104
|
+
const ret = new Object();
|
|
1105
|
+
return ret;
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1109
|
+
const ret = new Error();
|
|
1110
|
+
return ret;
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
|
1114
|
+
const ret = new Uint8Array(arg0);
|
|
1115
|
+
return ret;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
export function __wbg_new_c68d7209be747379(arg0, arg1) {
|
|
1119
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1120
|
+
const ret = new Error(v0);
|
|
1121
|
+
return ret;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
export function __wbg_new_e25e5aab09ff45db() { return handleError(function () {
|
|
1125
|
+
const ret = new AbortController();
|
|
1126
|
+
return ret;
|
|
1127
|
+
}, arguments) };
|
|
1128
|
+
|
|
1129
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
1130
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1131
|
+
const ret = new Function(v0);
|
|
1132
|
+
return ret;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
1136
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1137
|
+
return ret;
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
|
1141
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1142
|
+
return ret;
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
export function __wbg_newwithlength_c4c419ef0bc8a1f8(arg0) {
|
|
1146
|
+
const ret = new Array(arg0 >>> 0);
|
|
1147
|
+
return ret;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
|
|
1151
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1152
|
+
const ret = new Request(v0, arg2);
|
|
1153
|
+
return ret;
|
|
1154
|
+
}, arguments) };
|
|
1155
|
+
|
|
1156
|
+
export function __wbg_next_25feadfc0913fea9(arg0) {
|
|
1157
|
+
const ret = arg0.next;
|
|
1158
|
+
return ret;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
|
1162
|
+
const ret = arg0.next();
|
|
1163
|
+
return ret;
|
|
1164
|
+
}, arguments) };
|
|
1165
|
+
|
|
1166
|
+
export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
1167
|
+
const ret = arg0.node;
|
|
1168
|
+
return ret;
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
export function __wbg_now_e1163c67115ff874(arg0) {
|
|
1172
|
+
const ret = arg0.now();
|
|
1173
|
+
return ret;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
export function __wbg_performance_7fe0928f3ab059e5(arg0) {
|
|
1177
|
+
const ret = arg0.performance;
|
|
1178
|
+
return ret;
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
1182
|
+
const ret = arg0.process;
|
|
1183
|
+
return ret;
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
|
1187
|
+
queueMicrotask(arg0);
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
|
1191
|
+
const ret = arg0.queueMicrotask;
|
|
1192
|
+
return ret;
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
|
|
1196
|
+
arg0.randomFillSync(arg1);
|
|
1197
|
+
}, arguments) };
|
|
1198
|
+
|
|
1199
|
+
export function __wbg_read_52e3f904f5768a0e(arg0, arg1) {
|
|
1200
|
+
const ret = arg0.read(arg1);
|
|
1201
|
+
return ret;
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
export function __wbg_read_a2434af1186cb56c(arg0) {
|
|
1205
|
+
const ret = arg0.read();
|
|
1206
|
+
return ret;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
export function __wbg_ready_480b0e63c18378c7(arg0) {
|
|
1210
|
+
const ret = arg0.ready;
|
|
1211
|
+
return ret;
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
export function __wbg_releaseLock_091899af97991d2e(arg0) {
|
|
1215
|
+
arg0.releaseLock();
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
export function __wbg_releaseLock_673b80f18806e95a(arg0) {
|
|
1219
|
+
arg0.releaseLock();
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
export function __wbg_releaseLock_a389e6ea62ce0f4d(arg0) {
|
|
1223
|
+
arg0.releaseLock();
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
|
|
1227
|
+
const ret = module.require;
|
|
1228
|
+
return ret;
|
|
1229
|
+
}, arguments) };
|
|
1230
|
+
|
|
1231
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
1232
|
+
const ret = Promise.resolve(arg0);
|
|
1233
|
+
return ret;
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
export function __wbg_respond_1f279fa9f8edcb1c() { return handleError(function (arg0, arg1) {
|
|
1237
|
+
arg0.respond(arg1 >>> 0);
|
|
1238
|
+
}, arguments) };
|
|
1239
|
+
|
|
1240
|
+
export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
|
|
1241
|
+
const ret = setTimeout(arg0, arg1);
|
|
1242
|
+
return ret;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
export function __wbg_setTimeout_42370cb3051b8c2c() { return handleError(function (arg0, arg1, arg2) {
|
|
1246
|
+
const ret = arg0.setTimeout(arg1, arg2);
|
|
1247
|
+
return ret;
|
|
1248
|
+
}, arguments) };
|
|
1249
|
+
|
|
1250
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
1251
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1255
|
+
arg0[arg1] = arg2;
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
1259
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
1263
|
+
arg0.body = arg1;
|
|
1264
|
+
};
|
|
1265
|
+
|
|
1266
|
+
export function __wbg_setcache_12f17c3a980650e4(arg0, arg1) {
|
|
1267
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
|
|
1271
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
|
|
1275
|
+
arg0.headers = arg1;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
|
|
1279
|
+
var v0 = getCachedStringFromWasm0(arg1, arg2);
|
|
1280
|
+
arg0.method = v0;
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
export function __wbg_setmode_4967d329825f7890(arg0, arg1) {
|
|
1284
|
+
arg0.mode = __wbindgen_enum_ReadableStreamReaderMode[arg1];
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
|
|
1288
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
|
|
1292
|
+
arg0.signal = arg1;
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
export function __wbg_signal_aaf9ad74119f20a4(arg0) {
|
|
1296
|
+
const ret = arg0.signal;
|
|
1297
|
+
return ret;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1301
|
+
const ret = arg1.stack;
|
|
1302
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1303
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1304
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1305
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
1309
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1310
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
1314
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1315
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
1319
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1320
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
1324
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1325
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
export function __wbg_status_f6360336ca686bf0(arg0) {
|
|
1329
|
+
const ret = arg0.status;
|
|
1330
|
+
return ret;
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
export function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
|
|
1334
|
+
const ret = JSON.stringify(arg0);
|
|
1335
|
+
return ret;
|
|
1336
|
+
}, arguments) };
|
|
1337
|
+
|
|
1338
|
+
export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
1339
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1340
|
+
return ret;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
1344
|
+
const ret = arg0.then(arg1);
|
|
1345
|
+
return ret;
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
|
1349
|
+
const ret = arg0.then(arg1, arg2);
|
|
1350
|
+
return ret;
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
export function __wbg_toString_5285597960676b7b(arg0) {
|
|
1354
|
+
const ret = arg0.toString();
|
|
1355
|
+
return ret;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
|
|
1359
|
+
const ret = arg1.url;
|
|
1360
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1361
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1362
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1363
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
|
1367
|
+
const ret = arg0.value;
|
|
1368
|
+
return ret;
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
1372
|
+
const ret = arg0.versions;
|
|
1373
|
+
return ret;
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
export function __wbg_view_fd8a56e8983f448d(arg0) {
|
|
1377
|
+
const ret = arg0.view;
|
|
1378
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
|
|
1382
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
export function __wbg_write_311434e30ee214e5(arg0, arg1) {
|
|
1386
|
+
const ret = arg0.write(arg1);
|
|
1387
|
+
return ret;
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
export function __wbindgen_array_new() {
|
|
1391
|
+
const ret = [];
|
|
1392
|
+
return ret;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
export function __wbindgen_array_push(arg0, arg1) {
|
|
1396
|
+
arg0.push(arg1);
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
export function __wbindgen_as_number(arg0) {
|
|
1400
|
+
const ret = +arg0;
|
|
1401
|
+
return ret;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
1405
|
+
const ret = arg0;
|
|
1406
|
+
return ret;
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1410
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1411
|
+
return ret;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
1415
|
+
const v = arg1;
|
|
1416
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1417
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1418
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
1422
|
+
const v = arg0;
|
|
1423
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1424
|
+
return ret;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
export function __wbindgen_cb_drop(arg0) {
|
|
1428
|
+
const obj = arg0.original;
|
|
1429
|
+
if (obj.cnt-- == 1) {
|
|
1430
|
+
obj.a = 0;
|
|
1431
|
+
return true;
|
|
1432
|
+
}
|
|
1433
|
+
const ret = false;
|
|
1434
|
+
return ret;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1437
|
+
export function __wbindgen_closure_wrapper2358(arg0, arg1, arg2) {
|
|
1438
|
+
const ret = makeMutClosure(arg0, arg1, 103, __wbg_adapter_61);
|
|
1439
|
+
return ret;
|
|
1440
|
+
};
|
|
1441
|
+
|
|
1442
|
+
export function __wbindgen_closure_wrapper2655(arg0, arg1, arg2) {
|
|
1443
|
+
const ret = makeMutClosure(arg0, arg1, 111, __wbg_adapter_61);
|
|
1444
|
+
return ret;
|
|
1445
|
+
};
|
|
1446
|
+
|
|
1447
|
+
export function __wbindgen_closure_wrapper490(arg0, arg1, arg2) {
|
|
1448
|
+
const ret = makeMutClosure(arg0, arg1, 111, __wbg_adapter_58);
|
|
1449
|
+
return ret;
|
|
1450
|
+
};
|
|
1451
|
+
|
|
1452
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1453
|
+
const ret = debugString(arg1);
|
|
1454
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1455
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1456
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1457
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
1461
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1462
|
+
return ret;
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
1466
|
+
const ret = arg0 in arg1;
|
|
1467
|
+
return ret;
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
export function __wbindgen_init_externref_table() {
|
|
1471
|
+
const table = wasm.__wbindgen_export_2;
|
|
1472
|
+
const offset = table.grow(4);
|
|
1473
|
+
table.set(0, undefined);
|
|
1474
|
+
table.set(offset + 0, undefined);
|
|
1475
|
+
table.set(offset + 1, null);
|
|
1476
|
+
table.set(offset + 2, true);
|
|
1477
|
+
table.set(offset + 3, false);
|
|
1478
|
+
;
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1481
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
1482
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1483
|
+
return ret;
|
|
1484
|
+
};
|
|
1485
|
+
|
|
1486
|
+
export function __wbindgen_is_function(arg0) {
|
|
1487
|
+
const ret = typeof(arg0) === 'function';
|
|
1488
|
+
return ret;
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
export function __wbindgen_is_object(arg0) {
|
|
1492
|
+
const val = arg0;
|
|
1493
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1494
|
+
return ret;
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
export function __wbindgen_is_string(arg0) {
|
|
1498
|
+
const ret = typeof(arg0) === 'string';
|
|
1499
|
+
return ret;
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1502
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
1503
|
+
const ret = arg0 === undefined;
|
|
1504
|
+
return ret;
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1508
|
+
const ret = arg0 === arg1;
|
|
1509
|
+
return ret;
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
1513
|
+
const ret = arg0 == arg1;
|
|
1514
|
+
return ret;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
export function __wbindgen_memory() {
|
|
1518
|
+
const ret = wasm.memory;
|
|
1519
|
+
return ret;
|
|
1520
|
+
};
|
|
1521
|
+
|
|
1522
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
1523
|
+
const obj = arg1;
|
|
1524
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1525
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1526
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1527
|
+
};
|
|
1528
|
+
|
|
1529
|
+
export function __wbindgen_number_new(arg0) {
|
|
1530
|
+
const ret = arg0;
|
|
1531
|
+
return ret;
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
1535
|
+
const obj = arg1;
|
|
1536
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1537
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1538
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1539
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1540
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1544
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1545
|
+
return ret;
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
1549
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
export function __wbindgen_uint8_array_new(arg0, arg1) {
|
|
1553
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1554
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1555
|
+
const ret = v0;
|
|
1556
|
+
return ret;
|
|
1557
|
+
};
|
|
1558
|
+
|