@utoo/web 1.2.7 → 1.2.8

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/esm/utoo/index.js CHANGED
@@ -1,556 +1,252 @@
1
- let wasm;
2
- function addHeapObject(obj) {
3
- if (heap_next === heap.length)
4
- heap.push(heap.length + 1);
5
- const idx = heap_next;
6
- heap_next = heap[idx];
7
- heap[idx] = obj;
8
- return idx;
9
- }
10
- function _assertClass(instance, klass) {
11
- if (!(instance instanceof klass)) {
12
- throw new Error(`expected instance of ${klass.name}`);
1
+ /* @ts-self-types="./index.d.ts" */
2
+ export class CreateSyncAccessHandleOptions {
3
+ static __wrap(ptr) {
4
+ ptr = ptr >>> 0;
5
+ const obj = Object.create(CreateSyncAccessHandleOptions.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ CreateSyncAccessHandleOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
13
9
  }
14
- }
15
- function addBorrowedObject(obj) {
16
- if (stack_pointer == 1)
17
- throw new Error('out of js stack');
18
- heap[--stack_pointer] = obj;
19
- return stack_pointer;
20
- }
21
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
22
- ? { register: () => { }, unregister: () => { } }
23
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
24
- function debugString(val) {
25
- // primitive types
26
- const type = typeof val;
27
- if (type == 'number' || type == 'boolean' || val == null) {
28
- return `${val}`;
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ CreateSyncAccessHandleOptionsFinalization.unregister(this);
14
+ return ptr;
29
15
  }
30
- if (type == 'string') {
31
- return `"${val}"`;
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
32
19
  }
33
- if (type == 'symbol') {
34
- const description = val.description;
35
- if (description == null) {
36
- return 'Symbol';
37
- }
38
- else {
39
- return `Symbol(${description})`;
40
- }
20
+ }
21
+ if (Symbol.dispose)
22
+ CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
23
+ export class DirEntry {
24
+ static __wrap(ptr) {
25
+ ptr = ptr >>> 0;
26
+ const obj = Object.create(DirEntry.prototype);
27
+ obj.__wbg_ptr = ptr;
28
+ DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
29
+ return obj;
41
30
  }
42
- if (type == 'function') {
43
- const name = val.name;
44
- if (typeof name == 'string' && name.length > 0) {
45
- return `Function(${name})`;
46
- }
47
- else {
48
- return 'Function';
49
- }
31
+ toJSON() {
32
+ return {
33
+ name: this.name,
34
+ type: this.type,
35
+ };
50
36
  }
51
- // objects
52
- if (Array.isArray(val)) {
53
- const length = val.length;
54
- let debug = '[';
55
- if (length > 0) {
56
- debug += debugString(val[0]);
57
- }
58
- for (let i = 1; i < length; i++) {
59
- debug += ', ' + debugString(val[i]);
60
- }
61
- debug += ']';
62
- return debug;
37
+ toString() {
38
+ return JSON.stringify(this);
63
39
  }
64
- // Test for built-in
65
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
66
- let className;
67
- if (builtInMatches && builtInMatches.length > 1) {
68
- className = builtInMatches[1];
40
+ __destroy_into_raw() {
41
+ const ptr = this.__wbg_ptr;
42
+ this.__wbg_ptr = 0;
43
+ DirEntryFinalization.unregister(this);
44
+ return ptr;
69
45
  }
70
- else {
71
- // Failed to match the standard '[object ClassName]'
72
- return toString.call(val);
46
+ free() {
47
+ const ptr = this.__destroy_into_raw();
48
+ wasm.__wbg_direntry_free(ptr, 0);
73
49
  }
74
- if (className == 'Object') {
75
- // we're a user defined class or Object
76
- // JSON.stringify avoids problems with cycles, and is generally much
77
- // easier than looping through ownProperties of `val`.
50
+ /**
51
+ * @returns {string}
52
+ */
53
+ get name() {
54
+ let deferred1_0;
55
+ let deferred1_1;
78
56
  try {
79
- return 'Object(' + JSON.stringify(val) + ')';
57
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
58
+ wasm.__wbg_get_direntry_name(retptr, this.__wbg_ptr);
59
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
60
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
61
+ deferred1_0 = r0;
62
+ deferred1_1 = r1;
63
+ return getStringFromWasm0(r0, r1);
80
64
  }
81
- catch (_) {
82
- return 'Object';
65
+ finally {
66
+ wasm.__wbindgen_add_to_stack_pointer(16);
67
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
83
68
  }
84
69
  }
85
- // errors
86
- if (val instanceof Error) {
87
- return `${val.name}: ${val.message}\n${val.stack}`;
70
+ /**
71
+ * @returns {DirEntryType}
72
+ */
73
+ get type() {
74
+ const ret = wasm.__wbg_get_direntry_type(this.__wbg_ptr);
75
+ return __wbindgen_enum_DirEntryType[ret];
88
76
  }
89
- // TODO we could test for more things here, like `Set`s and `Map`s.
90
- return className;
91
- }
92
- function dropObject(idx) {
93
- if (idx < 132)
94
- return;
95
- heap[idx] = heap_next;
96
- heap_next = idx;
97
- }
98
- function getArrayJsValueFromWasm0(ptr, len) {
99
- ptr = ptr >>> 0;
100
- const mem = getDataViewMemory0();
101
- const result = [];
102
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
103
- result.push(takeObject(mem.getUint32(i, true)));
77
+ /**
78
+ * @param {string} arg0
79
+ */
80
+ set name(arg0) {
81
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
82
+ const len0 = WASM_VECTOR_LEN;
83
+ wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
104
84
  }
105
- return result;
106
- }
107
- function getArrayU8FromWasm0(ptr, len) {
108
- ptr = ptr >>> 0;
109
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
110
- }
111
- let cachedDataViewMemory0 = null;
112
- function getDataViewMemory0() {
113
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
114
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
85
+ /**
86
+ * @param {DirEntryType} arg0
87
+ */
88
+ set type(arg0) {
89
+ wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
115
90
  }
116
- return cachedDataViewMemory0;
117
- }
118
- function getStringFromWasm0(ptr, len) {
119
- ptr = ptr >>> 0;
120
- return decodeText(ptr, len);
121
91
  }
122
- let cachedUint8ArrayMemory0 = null;
123
- function getUint8ArrayMemory0() {
124
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
125
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
92
+ if (Symbol.dispose)
93
+ DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
94
+ export class Fs {
95
+ __destroy_into_raw() {
96
+ const ptr = this.__wbg_ptr;
97
+ this.__wbg_ptr = 0;
98
+ FsFinalization.unregister(this);
99
+ return ptr;
126
100
  }
127
- return cachedUint8ArrayMemory0;
128
- }
129
- function getObject(idx) { return heap[idx]; }
130
- function handleError(f, args) {
131
- try {
132
- return f.apply(this, args);
101
+ free() {
102
+ const ptr = this.__destroy_into_raw();
103
+ wasm.__wbg_fs_free(ptr, 0);
133
104
  }
134
- catch (e) {
135
- wasm.__wbindgen_export3(addHeapObject(e));
105
+ /**
106
+ * @param {string} src
107
+ * @param {string} dst
108
+ * @returns {Promise<void>}
109
+ */
110
+ static copyFile(src, dst) {
111
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
112
+ const len0 = WASM_VECTOR_LEN;
113
+ const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
114
+ const len1 = WASM_VECTOR_LEN;
115
+ const ret = wasm.fs_copyFile(ptr0, len0, ptr1, len1);
116
+ return takeObject(ret);
136
117
  }
137
- }
138
- let heap = new Array(128).fill(undefined);
139
- heap.push(undefined, null, true, false);
140
- let heap_next = heap.length;
141
- function isLikeNone(x) {
142
- return x === undefined || x === null;
143
- }
144
- function makeClosure(arg0, arg1, dtor, f) {
145
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
146
- const real = (...args) => {
147
- // First up with a closure we increment the internal reference
148
- // count. This ensures that the Rust closure environment won't
149
- // be deallocated while we're invoking it.
150
- state.cnt++;
118
+ /**
119
+ * @param {string} src
120
+ * @param {string} dst
121
+ */
122
+ static copyFileSync(src, dst) {
151
123
  try {
152
- return f(state.a, state.b, ...args);
124
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
125
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
126
+ const len0 = WASM_VECTOR_LEN;
127
+ const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
128
+ const len1 = WASM_VECTOR_LEN;
129
+ wasm.fs_copyFileSync(retptr, ptr0, len0, ptr1, len1);
130
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
131
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
132
+ if (r1) {
133
+ throw takeObject(r0);
134
+ }
153
135
  }
154
136
  finally {
155
- real._wbg_cb_unref();
156
- }
157
- };
158
- real._wbg_cb_unref = () => {
159
- if (--state.cnt === 0) {
160
- state.dtor(state.a, state.b);
161
- state.a = 0;
162
- CLOSURE_DTORS.unregister(state);
137
+ wasm.__wbindgen_add_to_stack_pointer(16);
163
138
  }
164
- };
165
- CLOSURE_DTORS.register(real, state, state);
166
- return real;
167
- }
168
- function makeMutClosure(arg0, arg1, dtor, f) {
169
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
170
- const real = (...args) => {
171
- // First up with a closure we increment the internal reference
172
- // count. This ensures that the Rust closure environment won't
173
- // be deallocated while we're invoking it.
174
- state.cnt++;
175
- const a = state.a;
176
- state.a = 0;
139
+ }
140
+ /**
141
+ * @param {string} path
142
+ * @returns {Promise<void>}
143
+ */
144
+ static createDir(path) {
145
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
146
+ const len0 = WASM_VECTOR_LEN;
147
+ const ret = wasm.fs_createDir(ptr0, len0);
148
+ return takeObject(ret);
149
+ }
150
+ /**
151
+ * @param {string} path
152
+ * @returns {Promise<void>}
153
+ */
154
+ static createDirAll(path) {
155
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
156
+ const len0 = WASM_VECTOR_LEN;
157
+ const ret = wasm.fs_createDirAll(ptr0, len0);
158
+ return takeObject(ret);
159
+ }
160
+ /**
161
+ * @param {string} path
162
+ */
163
+ static createDirAllSync(path) {
177
164
  try {
178
- return f(a, state.b, ...args);
165
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
166
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
167
+ const len0 = WASM_VECTOR_LEN;
168
+ wasm.fs_createDirAllSync(retptr, ptr0, len0);
169
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
170
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
171
+ if (r1) {
172
+ throw takeObject(r0);
173
+ }
179
174
  }
180
175
  finally {
181
- state.a = a;
182
- real._wbg_cb_unref();
183
- }
184
- };
185
- real._wbg_cb_unref = () => {
186
- if (--state.cnt === 0) {
187
- state.dtor(state.a, state.b);
188
- state.a = 0;
189
- CLOSURE_DTORS.unregister(state);
190
- }
191
- };
192
- CLOSURE_DTORS.register(real, state, state);
193
- return real;
194
- }
195
- function passStringToWasm0(arg, malloc, realloc) {
196
- if (realloc === undefined) {
197
- const buf = cachedTextEncoder.encode(arg);
198
- const ptr = malloc(buf.length, 1) >>> 0;
199
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
200
- WASM_VECTOR_LEN = buf.length;
201
- return ptr;
202
- }
203
- let len = arg.length;
204
- let ptr = malloc(len, 1) >>> 0;
205
- const mem = getUint8ArrayMemory0();
206
- let offset = 0;
207
- for (; offset < len; offset++) {
208
- const code = arg.charCodeAt(offset);
209
- if (code > 0x7F)
210
- break;
211
- mem[ptr + offset] = code;
212
- }
213
- if (offset !== len) {
214
- if (offset !== 0) {
215
- arg = arg.slice(offset);
176
+ wasm.__wbindgen_add_to_stack_pointer(16);
216
177
  }
217
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
218
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
219
- const ret = cachedTextEncoder.encodeInto(arg, view);
220
- offset += ret.written;
221
- ptr = realloc(ptr, len, offset, 1) >>> 0;
222
- }
223
- WASM_VECTOR_LEN = offset;
224
- return ptr;
225
- }
226
- let stack_pointer = 128;
227
- function takeObject(idx) {
228
- const ret = getObject(idx);
229
- dropObject(idx);
230
- return ret;
231
- }
232
- let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
233
- if (cachedTextDecoder)
234
- cachedTextDecoder.decode();
235
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
236
- let numBytesDecoded = 0;
237
- function decodeText(ptr, len) {
238
- numBytesDecoded += len;
239
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
240
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
241
- cachedTextDecoder.decode();
242
- numBytesDecoded = len;
243
- }
244
- return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
245
- }
246
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
247
- if (cachedTextEncoder) {
248
- cachedTextEncoder.encodeInto = function (arg, view) {
249
- const buf = cachedTextEncoder.encode(arg);
250
- view.set(buf);
251
- return {
252
- read: arg.length,
253
- written: buf.length
254
- };
255
- };
256
- }
257
- let WASM_VECTOR_LEN = 0;
258
- function __wasm_bindgen_func_elem_83557(arg0, arg1, arg2) {
259
- try {
260
- wasm.__wasm_bindgen_func_elem_83557(arg0, arg1, addBorrowedObject(arg2));
261
- }
262
- finally {
263
- heap[stack_pointer++] = undefined;
264
- }
265
- }
266
- function __wasm_bindgen_func_elem_83502(arg0, arg1, arg2) {
267
- wasm.__wasm_bindgen_func_elem_83502(arg0, arg1, addHeapObject(arg2));
268
- }
269
- function __wasm_bindgen_func_elem_83305(arg0, arg1, arg2) {
270
- wasm.__wasm_bindgen_func_elem_83305(arg0, arg1, addHeapObject(arg2));
271
- }
272
- function __wasm_bindgen_func_elem_22659(arg0, arg1) {
273
- wasm.__wasm_bindgen_func_elem_22659(arg0, arg1);
274
- }
275
- function __wasm_bindgen_func_elem_3429(arg0, arg1, arg2, arg3) {
276
- wasm.__wasm_bindgen_func_elem_3429(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
277
- }
278
- const __wbindgen_enum_DirEntryType = ["file", "directory"];
279
- const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
280
- const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
281
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
282
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
283
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
284
- const __wbindgen_enum_WorkerType = ["classic", "module"];
285
- const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
286
- ? { register: () => { }, unregister: () => { } }
287
- : new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
288
- const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
289
- ? { register: () => { }, unregister: () => { } }
290
- : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
291
- const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
292
- ? { register: () => { }, unregister: () => { } }
293
- : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
294
- const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
295
- ? { register: () => { }, unregister: () => { } }
296
- : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
297
- const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
298
- ? { register: () => { }, unregister: () => { } }
299
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
300
- const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
301
- ? { register: () => { }, unregister: () => { } }
302
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
303
- const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
304
- ? { register: () => { }, unregister: () => { } }
305
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
306
- const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
307
- ? { register: () => { }, unregister: () => { } }
308
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
309
- export class CreateSyncAccessHandleOptions {
310
- static __wrap(ptr) {
311
- ptr = ptr >>> 0;
312
- const obj = Object.create(CreateSyncAccessHandleOptions.prototype);
313
- obj.__wbg_ptr = ptr;
314
- CreateSyncAccessHandleOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
315
- return obj;
316
- }
317
- __destroy_into_raw() {
318
- const ptr = this.__wbg_ptr;
319
- this.__wbg_ptr = 0;
320
- CreateSyncAccessHandleOptionsFinalization.unregister(this);
321
- return ptr;
322
- }
323
- free() {
324
- const ptr = this.__destroy_into_raw();
325
- wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
326
- }
327
- }
328
- if (Symbol.dispose)
329
- CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
330
- export class DirEntry {
331
- static __wrap(ptr) {
332
- ptr = ptr >>> 0;
333
- const obj = Object.create(DirEntry.prototype);
334
- obj.__wbg_ptr = ptr;
335
- DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
336
- return obj;
337
- }
338
- toJSON() {
339
- return {
340
- name: this.name,
341
- type: this.type,
342
- };
343
- }
344
- toString() {
345
- return JSON.stringify(this);
346
- }
347
- __destroy_into_raw() {
348
- const ptr = this.__wbg_ptr;
349
- this.__wbg_ptr = 0;
350
- DirEntryFinalization.unregister(this);
351
- return ptr;
352
- }
353
- free() {
354
- const ptr = this.__destroy_into_raw();
355
- wasm.__wbg_direntry_free(ptr, 0);
356
178
  }
357
179
  /**
358
- * @returns {string}
180
+ * @param {string} path
359
181
  */
360
- get name() {
361
- let deferred1_0;
362
- let deferred1_1;
182
+ static createDirSync(path) {
363
183
  try {
364
184
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
365
- wasm.__wbg_get_direntry_name(retptr, this.__wbg_ptr);
185
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
186
+ const len0 = WASM_VECTOR_LEN;
187
+ wasm.fs_createDirSync(retptr, ptr0, len0);
366
188
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
367
189
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
368
- deferred1_0 = r0;
369
- deferred1_1 = r1;
370
- return getStringFromWasm0(r0, r1);
190
+ if (r1) {
191
+ throw takeObject(r0);
192
+ }
371
193
  }
372
194
  finally {
373
195
  wasm.__wbindgen_add_to_stack_pointer(16);
374
- wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
375
196
  }
376
197
  }
377
198
  /**
378
- * @param {string} arg0
199
+ * @param {string} path
200
+ * @returns {Promise<Metadata>}
379
201
  */
380
- set name(arg0) {
381
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
202
+ static metadata(path) {
203
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
382
204
  const len0 = WASM_VECTOR_LEN;
383
- wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
205
+ const ret = wasm.fs_metadata(ptr0, len0);
206
+ return takeObject(ret);
384
207
  }
385
208
  /**
386
- * @returns {DirEntryType}
209
+ * @param {string} path
210
+ * @returns {Metadata}
387
211
  */
388
- get type() {
389
- const ret = wasm.__wbg_get_direntry_type(this.__wbg_ptr);
390
- return __wbindgen_enum_DirEntryType[ret];
212
+ static metadataSync(path) {
213
+ try {
214
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
215
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
216
+ const len0 = WASM_VECTOR_LEN;
217
+ wasm.fs_metadataSync(retptr, ptr0, len0);
218
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
219
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
220
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
221
+ if (r2) {
222
+ throw takeObject(r1);
223
+ }
224
+ return Metadata.__wrap(r0);
225
+ }
226
+ finally {
227
+ wasm.__wbindgen_add_to_stack_pointer(16);
228
+ }
391
229
  }
392
230
  /**
393
- * @param {DirEntryType} arg0
231
+ * @param {string} path
232
+ * @returns {Promise<Uint8Array>}
394
233
  */
395
- set type(arg0) {
396
- wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
397
- }
398
- }
399
- if (Symbol.dispose)
400
- DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
401
- export class Metadata {
402
- static __wrap(ptr) {
403
- ptr = ptr >>> 0;
404
- const obj = Object.create(Metadata.prototype);
405
- obj.__wbg_ptr = ptr;
406
- MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
407
- return obj;
408
- }
409
- toJSON() {
410
- return {
411
- type: this.type,
412
- file_size: this.file_size,
413
- };
414
- }
415
- toString() {
416
- return JSON.stringify(this);
417
- }
418
- __destroy_into_raw() {
419
- const ptr = this.__wbg_ptr;
420
- this.__wbg_ptr = 0;
421
- MetadataFinalization.unregister(this);
422
- return ptr;
423
- }
424
- free() {
425
- const ptr = this.__destroy_into_raw();
426
- wasm.__wbg_metadata_free(ptr, 0);
427
- }
428
- /**
429
- * @returns {DirEntryType}
430
- */
431
- get type() {
432
- const ret = wasm.__wbg_get_metadata_type(this.__wbg_ptr);
433
- return __wbindgen_enum_DirEntryType[ret];
434
- }
435
- /**
436
- * @param {DirEntryType} arg0
437
- */
438
- set type(arg0) {
439
- wasm.__wbg_set_metadata_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
440
- }
441
- /**
442
- * @returns {bigint}
443
- */
444
- get file_size() {
445
- const ret = wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);
446
- return BigInt.asUintN(64, ret);
447
- }
448
- /**
449
- * @param {bigint} arg0
450
- */
451
- set file_size(arg0) {
452
- wasm.__wbg_set_metadata_file_size(this.__wbg_ptr, arg0);
453
- }
454
- }
455
- if (Symbol.dispose)
456
- Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
457
- export class Project {
458
- __destroy_into_raw() {
459
- const ptr = this.__wbg_ptr;
460
- this.__wbg_ptr = 0;
461
- ProjectFinalization.unregister(this);
462
- return ptr;
463
- }
464
- free() {
465
- const ptr = this.__destroy_into_raw();
466
- wasm.__wbg_project_free(ptr, 0);
467
- }
468
- /**
469
- * @param {string} path
470
- * @returns {Promise<void>}
471
- */
472
- static createDir(path) {
473
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
474
- const len0 = WASM_VECTOR_LEN;
475
- const ret = wasm.project_createDir(ptr0, len0);
476
- return takeObject(ret);
477
- }
478
- /**
479
- * @param {string} path
480
- * @param {boolean} recursive
481
- * @returns {Promise<void>}
482
- */
483
- static removeDir(path, recursive) {
484
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
485
- const len0 = WASM_VECTOR_LEN;
486
- const ret = wasm.project_removeDir(ptr0, len0, recursive);
487
- return takeObject(ret);
488
- }
489
- /**
490
- * @param {string} path
491
- * @param {Uint8Array} content
492
- */
493
- static writeSync(path, content) {
494
- try {
495
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
496
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
497
- const len0 = WASM_VECTOR_LEN;
498
- wasm.project_writeSync(retptr, ptr0, len0, addHeapObject(content));
499
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
500
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
501
- if (r1) {
502
- throw takeObject(r0);
503
- }
504
- }
505
- finally {
506
- wasm.__wbindgen_add_to_stack_pointer(16);
507
- }
508
- }
509
- /**
510
- * @param {string} path
511
- * @returns {Promise<void>}
512
- */
513
- static removeFile(path) {
234
+ static read(path) {
514
235
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
515
236
  const len0 = WASM_VECTOR_LEN;
516
- const ret = wasm.project_removeFile(ptr0, len0);
237
+ const ret = wasm.fs_read(ptr0, len0);
517
238
  return takeObject(ret);
518
239
  }
519
240
  /**
520
241
  * @param {string} path
521
- * @param {string} content
522
- * @returns {Promise<void>}
242
+ * @returns {Promise<DirEntry[]>}
523
243
  */
524
- static writeString(path, content) {
244
+ static readDir(path) {
525
245
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
526
246
  const len0 = WASM_VECTOR_LEN;
527
- const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
528
- const len1 = WASM_VECTOR_LEN;
529
- const ret = wasm.project_writeString(ptr0, len0, ptr1, len1);
247
+ const ret = wasm.fs_readDir(ptr0, len0);
530
248
  return takeObject(ret);
531
249
  }
532
- /**
533
- * @param {string} path
534
- * @returns {Metadata}
535
- */
536
- static metadataSync(path) {
537
- try {
538
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
539
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
540
- const len0 = WASM_VECTOR_LEN;
541
- wasm.project_metadataSync(retptr, ptr0, len0);
542
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
543
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
544
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
545
- if (r2) {
546
- throw takeObject(r1);
547
- }
548
- return Metadata.__wrap(r0);
549
- }
550
- finally {
551
- wasm.__wbindgen_add_to_stack_pointer(16);
552
- }
553
- }
554
250
  /**
555
251
  * @param {string} path
556
252
  * @returns {DirEntry[]}
@@ -560,7 +256,7 @@ export class Project {
560
256
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
561
257
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
562
258
  const len0 = WASM_VECTOR_LEN;
563
- wasm.project_readDirSync(retptr, ptr0, len0);
259
+ wasm.fs_readDirSync(retptr, ptr0, len0);
564
260
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
565
261
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
566
262
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -577,22 +273,22 @@ export class Project {
577
273
  }
578
274
  }
579
275
  /**
580
- * @param {string} src
581
- * @param {string} dst
276
+ * @param {string} path
277
+ * @returns {Uint8Array}
582
278
  */
583
- static copyFileSync(src, dst) {
279
+ static readSync(path) {
584
280
  try {
585
281
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
586
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
282
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
587
283
  const len0 = WASM_VECTOR_LEN;
588
- const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
589
- const len1 = WASM_VECTOR_LEN;
590
- wasm.project_copyFileSync(retptr, ptr0, len0, ptr1, len1);
284
+ wasm.fs_readSync(retptr, ptr0, len0);
591
285
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
592
286
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
593
- if (r1) {
594
- throw takeObject(r0);
287
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
288
+ if (r2) {
289
+ throw takeObject(r1);
595
290
  }
291
+ return takeObject(r0);
596
292
  }
597
293
  finally {
598
294
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -600,33 +296,35 @@ export class Project {
600
296
  }
601
297
  /**
602
298
  * @param {string} path
603
- * @returns {Promise<void>}
299
+ * @returns {Promise<string>}
604
300
  */
605
- static createDirAll(path) {
301
+ static readToString(path) {
606
302
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
607
303
  const len0 = WASM_VECTOR_LEN;
608
- const ret = wasm.project_createDirAll(ptr0, len0);
304
+ const ret = wasm.fs_readToString(ptr0, len0);
609
305
  return takeObject(ret);
610
306
  }
611
307
  /**
612
308
  * @param {string} path
613
- * @returns {Promise<string>}
309
+ * @param {boolean} recursive
310
+ * @returns {Promise<void>}
614
311
  */
615
- static readToString(path) {
312
+ static removeDir(path, recursive) {
616
313
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
617
314
  const len0 = WASM_VECTOR_LEN;
618
- const ret = wasm.project_readToString(ptr0, len0);
315
+ const ret = wasm.fs_removeDir(ptr0, len0, recursive);
619
316
  return takeObject(ret);
620
317
  }
621
318
  /**
622
319
  * @param {string} path
320
+ * @param {boolean} recursive
623
321
  */
624
- static createDirSync(path) {
322
+ static removeDirSync(path, recursive) {
625
323
  try {
626
324
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
627
325
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
628
326
  const len0 = WASM_VECTOR_LEN;
629
- wasm.project_createDirSync(retptr, ptr0, len0);
327
+ wasm.fs_removeDirSync(retptr, ptr0, len0, recursive);
630
328
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
631
329
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
632
330
  if (r1) {
@@ -639,23 +337,13 @@ export class Project {
639
337
  }
640
338
  /**
641
339
  * @param {string} path
642
- * @param {boolean} recursive
340
+ * @returns {Promise<void>}
643
341
  */
644
- static removeDirSync(path, recursive) {
645
- try {
646
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
647
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
648
- const len0 = WASM_VECTOR_LEN;
649
- wasm.project_removeDirSync(retptr, ptr0, len0, recursive);
650
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
651
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
652
- if (r1) {
653
- throw takeObject(r0);
654
- }
655
- }
656
- finally {
657
- wasm.__wbindgen_add_to_stack_pointer(16);
658
- }
342
+ static removeFile(path) {
343
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
344
+ const len0 = WASM_VECTOR_LEN;
345
+ const ret = wasm.fs_removeFile(ptr0, len0);
346
+ return takeObject(ret);
659
347
  }
660
348
  /**
661
349
  * @param {string} path
@@ -665,7 +353,7 @@ export class Project {
665
353
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
666
354
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
667
355
  const len0 = WASM_VECTOR_LEN;
668
- wasm.project_removeFileSync(retptr, ptr0, len0);
356
+ wasm.fs_removeFileSync(retptr, ptr0, len0);
669
357
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
670
358
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
671
359
  if (r1) {
@@ -678,13 +366,38 @@ export class Project {
678
366
  }
679
367
  /**
680
368
  * @param {string} path
369
+ * @param {Uint8Array} content
370
+ * @returns {Promise<void>}
681
371
  */
682
- static createDirAllSync(path) {
372
+ static write(path, content) {
373
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
374
+ const len0 = WASM_VECTOR_LEN;
375
+ const ret = wasm.fs_write(ptr0, len0, addHeapObject(content));
376
+ return takeObject(ret);
377
+ }
378
+ /**
379
+ * @param {string} path
380
+ * @param {string} content
381
+ * @returns {Promise<void>}
382
+ */
383
+ static writeString(path, content) {
384
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
385
+ const len0 = WASM_VECTOR_LEN;
386
+ const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
387
+ const len1 = WASM_VECTOR_LEN;
388
+ const ret = wasm.fs_writeString(ptr0, len0, ptr1, len1);
389
+ return takeObject(ret);
390
+ }
391
+ /**
392
+ * @param {string} path
393
+ * @param {Uint8Array} content
394
+ */
395
+ static writeSync(path, content) {
683
396
  try {
684
397
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
685
398
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
686
399
  const len0 = WASM_VECTOR_LEN;
687
- wasm.project_createDirAllSync(retptr, ptr0, len0);
400
+ wasm.fs_writeSync(retptr, ptr0, len0, addHeapObject(content));
688
401
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
689
402
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
690
403
  if (r1) {
@@ -695,20 +408,97 @@ export class Project {
695
408
  wasm.__wbindgen_add_to_stack_pointer(16);
696
409
  }
697
410
  }
411
+ }
412
+ if (Symbol.dispose)
413
+ Fs.prototype[Symbol.dispose] = Fs.prototype.free;
414
+ export class Metadata {
415
+ static __wrap(ptr) {
416
+ ptr = ptr >>> 0;
417
+ const obj = Object.create(Metadata.prototype);
418
+ obj.__wbg_ptr = ptr;
419
+ MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
420
+ return obj;
421
+ }
422
+ toJSON() {
423
+ return {
424
+ file_size: this.file_size,
425
+ type: this.type,
426
+ };
427
+ }
428
+ toString() {
429
+ return JSON.stringify(this);
430
+ }
431
+ __destroy_into_raw() {
432
+ const ptr = this.__wbg_ptr;
433
+ this.__wbg_ptr = 0;
434
+ MetadataFinalization.unregister(this);
435
+ return ptr;
436
+ }
437
+ free() {
438
+ const ptr = this.__destroy_into_raw();
439
+ wasm.__wbg_metadata_free(ptr, 0);
440
+ }
698
441
  /**
699
- * @returns {string}
442
+ * @returns {bigint}
700
443
  */
701
- static get cwd() {
702
- let deferred1_0;
703
- let deferred1_1;
704
- try {
705
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
706
- wasm.project_cwd(retptr);
707
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
708
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
709
- deferred1_0 = r0;
710
- deferred1_1 = r1;
711
- return getStringFromWasm0(r0, r1);
444
+ get file_size() {
445
+ const ret = wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);
446
+ return BigInt.asUintN(64, ret);
447
+ }
448
+ /**
449
+ * @returns {DirEntryType}
450
+ */
451
+ get type() {
452
+ const ret = wasm.__wbg_get_metadata_type(this.__wbg_ptr);
453
+ return __wbindgen_enum_DirEntryType[ret];
454
+ }
455
+ /**
456
+ * @param {bigint} arg0
457
+ */
458
+ set file_size(arg0) {
459
+ wasm.__wbg_set_metadata_file_size(this.__wbg_ptr, arg0);
460
+ }
461
+ /**
462
+ * @param {DirEntryType} arg0
463
+ */
464
+ set type(arg0) {
465
+ wasm.__wbg_set_metadata_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
466
+ }
467
+ }
468
+ if (Symbol.dispose)
469
+ Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
470
+ export class Project {
471
+ __destroy_into_raw() {
472
+ const ptr = this.__wbg_ptr;
473
+ this.__wbg_ptr = 0;
474
+ ProjectFinalization.unregister(this);
475
+ return ptr;
476
+ }
477
+ free() {
478
+ const ptr = this.__destroy_into_raw();
479
+ wasm.__wbg_project_free(ptr, 0);
480
+ }
481
+ /**
482
+ * @returns {Promise<any>}
483
+ */
484
+ static build() {
485
+ const ret = wasm.project_build();
486
+ return takeObject(ret);
487
+ }
488
+ /**
489
+ * @returns {string}
490
+ */
491
+ static get cwd() {
492
+ let deferred1_0;
493
+ let deferred1_1;
494
+ try {
495
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
496
+ wasm.project_cwd(retptr);
497
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
498
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
499
+ deferred1_0 = r0;
500
+ deferred1_1 = r1;
501
+ return getStringFromWasm0(r0, r1);
712
502
  }
713
503
  finally {
714
504
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -751,34 +541,6 @@ export class Project {
751
541
  const len0 = WASM_VECTOR_LEN;
752
542
  wasm.project_init(ptr0, len0);
753
543
  }
754
- /**
755
- * @param {string} path
756
- * @returns {Promise<Uint8Array>}
757
- */
758
- static read(path) {
759
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
760
- const len0 = WASM_VECTOR_LEN;
761
- const ret = wasm.project_read(ptr0, len0);
762
- return takeObject(ret);
763
- }
764
- /**
765
- * @returns {Promise<any>}
766
- */
767
- static build() {
768
- const ret = wasm.project_build();
769
- return takeObject(ret);
770
- }
771
- /**
772
- * @param {string} path
773
- * @param {Uint8Array} content
774
- * @returns {Promise<void>}
775
- */
776
- static write(path, content) {
777
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
778
- const len0 = WASM_VECTOR_LEN;
779
- const ret = wasm.project_write(ptr0, len0, addHeapObject(content));
780
- return takeObject(ret);
781
- }
782
544
  /**
783
545
  * Install dependencies - downloads tgz files only, extracts on-demand when files are read
784
546
  * @param {string} package_lock
@@ -808,61 +570,6 @@ export class Project {
808
570
  const ret = wasm.project_sigMd5(addHeapObject(content));
809
571
  return takeObject(ret);
810
572
  }
811
- /**
812
- * @param {string} path
813
- * @returns {Promise<Metadata>}
814
- */
815
- static metadata(path) {
816
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
817
- const len0 = WASM_VECTOR_LEN;
818
- const ret = wasm.project_metadata(ptr0, len0);
819
- return takeObject(ret);
820
- }
821
- /**
822
- * @param {string} path
823
- * @returns {Promise<DirEntry[]>}
824
- */
825
- static readDir(path) {
826
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
827
- const len0 = WASM_VECTOR_LEN;
828
- const ret = wasm.project_readDir(ptr0, len0);
829
- return takeObject(ret);
830
- }
831
- /**
832
- * @param {string} src
833
- * @param {string} dst
834
- * @returns {Promise<void>}
835
- */
836
- static copyFile(src, dst) {
837
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
838
- const len0 = WASM_VECTOR_LEN;
839
- const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
840
- const len1 = WASM_VECTOR_LEN;
841
- const ret = wasm.project_copyFile(ptr0, len0, ptr1, len1);
842
- return takeObject(ret);
843
- }
844
- /**
845
- * @param {string} path
846
- * @returns {Uint8Array}
847
- */
848
- static readSync(path) {
849
- try {
850
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
851
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
852
- const len0 = WASM_VECTOR_LEN;
853
- wasm.project_readSync(retptr, ptr0, len0);
854
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
855
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
856
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
857
- if (r2) {
858
- throw takeObject(r1);
859
- }
860
- return takeObject(r0);
861
- }
862
- finally {
863
- wasm.__wbindgen_add_to_stack_pointer(16);
864
- }
865
- }
866
573
  }
867
574
  if (Symbol.dispose)
868
575
  Project.prototype[Symbol.dispose] = Project.prototype.free;
@@ -884,13 +591,6 @@ export class WasmTaskMessage {
884
591
  const ptr = this.__destroy_into_raw();
885
592
  wasm.__wbg_wasmtaskmessage_free(ptr, 0);
886
593
  }
887
- /**
888
- * @returns {Uint8Array}
889
- */
890
- get data() {
891
- const ret = wasm.wasmtaskmessage_data(this.__wbg_ptr);
892
- return takeObject(ret);
893
- }
894
594
  /**
895
595
  * @returns {number}
896
596
  */
@@ -904,6 +604,13 @@ export class WasmTaskMessage {
904
604
  set taskId(arg0) {
905
605
  wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr, arg0);
906
606
  }
607
+ /**
608
+ * @returns {Uint8Array}
609
+ */
610
+ get data() {
611
+ const ret = wasm.wasmtaskmessage_data(this.__wbg_ptr);
612
+ return takeObject(ret);
613
+ }
907
614
  }
908
615
  if (Symbol.dispose)
909
616
  WasmTaskMessage.prototype[Symbol.dispose] = WasmTaskMessage.prototype.free;
@@ -964,12 +671,12 @@ export class WebWorkerOptions {
964
671
  /**
965
672
  * @returns {string}
966
673
  */
967
- get filename() {
674
+ get cwd() {
968
675
  let deferred1_0;
969
676
  let deferred1_1;
970
677
  try {
971
678
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
972
- wasm.__wbg_get_webworkeroptions_filename(retptr, this.__wbg_ptr);
679
+ wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
973
680
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
974
681
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
975
682
  deferred1_0 = r0;
@@ -981,23 +688,15 @@ export class WebWorkerOptions {
981
688
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
982
689
  }
983
690
  }
984
- /**
985
- * @param {string} arg0
986
- */
987
- set filename(arg0) {
988
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
989
- const len0 = WASM_VECTOR_LEN;
990
- wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr, ptr0, len0);
991
- }
992
691
  /**
993
692
  * @returns {string}
994
693
  */
995
- get cwd() {
694
+ get filename() {
996
695
  let deferred1_0;
997
696
  let deferred1_1;
998
697
  try {
999
698
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1000
- wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
699
+ wasm.__wbg_get_webworkeroptions_filename(retptr, this.__wbg_ptr);
1001
700
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1002
701
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1003
702
  deferred1_0 = r0;
@@ -1017,6 +716,14 @@ export class WebWorkerOptions {
1017
716
  const len0 = WASM_VECTOR_LEN;
1018
717
  wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr, ptr0, len0);
1019
718
  }
719
+ /**
720
+ * @param {string} arg0
721
+ */
722
+ set filename(arg0) {
723
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
724
+ const len0 = WASM_VECTOR_LEN;
725
+ wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr, ptr0, len0);
726
+ }
1020
727
  }
1021
728
  if (Symbol.dispose)
1022
729
  WebWorkerOptions.prototype[Symbol.dispose] = WebWorkerOptions.prototype.free;
@@ -1045,6 +752,13 @@ export class WebWorkerTermination {
1045
752
  const ret = wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);
1046
753
  return WebWorkerOptions.__wrap(ret);
1047
754
  }
755
+ /**
756
+ * @returns {number}
757
+ */
758
+ get workerId() {
759
+ const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
760
+ return ret >>> 0;
761
+ }
1048
762
  /**
1049
763
  * @param {WebWorkerOptions} arg0
1050
764
  */
@@ -1053,13 +767,6 @@ export class WebWorkerTermination {
1053
767
  var ptr0 = arg0.__destroy_into_raw();
1054
768
  wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr, ptr0);
1055
769
  }
1056
- /**
1057
- * @returns {number}
1058
- */
1059
- get workerId() {
1060
- const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
1061
- return ret >>> 0;
1062
- }
1063
770
  /**
1064
771
  * @param {number} arg0
1065
772
  */
@@ -1069,6 +776,20 @@ export class WebWorkerTermination {
1069
776
  }
1070
777
  if (Symbol.dispose)
1071
778
  WebWorkerTermination.prototype[Symbol.dispose] = WebWorkerTermination.prototype.free;
779
+ /**
780
+ * @returns {any}
781
+ */
782
+ export function getWasmMemory() {
783
+ const ret = wasm.getWasmMemory();
784
+ return takeObject(ret);
785
+ }
786
+ /**
787
+ * @returns {any}
788
+ */
789
+ export function getWasmModule() {
790
+ const ret = wasm.getWasmModule();
791
+ return takeObject(ret);
792
+ }
1072
793
  /**
1073
794
  * @param {string} filter
1074
795
  */
@@ -1110,13 +831,1129 @@ export function sendTaskMessage(message) {
1110
831
  export function wasm_thread_entry_point(ptr) {
1111
832
  wasm.wasm_thread_entry_point(ptr);
1112
833
  }
1113
- /**
1114
- * @param {number} worker_id
1115
- */
1116
- export function workerCreated(worker_id) {
1117
- wasm.workerCreated(worker_id);
834
+ /**
835
+ * @param {number} worker_id
836
+ */
837
+ export function workerCreated(worker_id) {
838
+ wasm.workerCreated(worker_id);
839
+ }
840
+ function __wbg_get_imports(memory) {
841
+ const import0 = {
842
+ __proto__: null,
843
+ __wbg_Error_8c4e43fe74559d73: function (arg0, arg1) {
844
+ const ret = Error(getStringFromWasm0(arg0, arg1));
845
+ return addHeapObject(ret);
846
+ },
847
+ __wbg_String_8f0eb39a4a4c2f66: function (arg0, arg1) {
848
+ const ret = String(getObject(arg1));
849
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
850
+ const len1 = WASM_VECTOR_LEN;
851
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
852
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
853
+ },
854
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function (arg0, arg1) {
855
+ const ret = debugString(getObject(arg1));
856
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
857
+ const len1 = WASM_VECTOR_LEN;
858
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
859
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
860
+ },
861
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function (arg0) {
862
+ const ret = typeof (getObject(arg0)) === 'function';
863
+ return ret;
864
+ },
865
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function (arg0) {
866
+ const val = getObject(arg0);
867
+ const ret = typeof (val) === 'object' && val !== null;
868
+ return ret;
869
+ },
870
+ __wbg___wbindgen_is_string_cd444516edc5b180: function (arg0) {
871
+ const ret = typeof (getObject(arg0)) === 'string';
872
+ return ret;
873
+ },
874
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function (arg0) {
875
+ const ret = getObject(arg0) === undefined;
876
+ return ret;
877
+ },
878
+ __wbg___wbindgen_memory_bd1fbcf21fbef3c8: function () {
879
+ const ret = wasm.memory;
880
+ return addHeapObject(ret);
881
+ },
882
+ __wbg___wbindgen_module_f6b8052d79c1cc16: function () {
883
+ const ret = wasmModule;
884
+ return addHeapObject(ret);
885
+ },
886
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: function (arg0, arg1) {
887
+ const obj = getObject(arg1);
888
+ const ret = typeof (obj) === 'number' ? obj : undefined;
889
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
890
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
891
+ },
892
+ __wbg___wbindgen_rethrow_05525c567f154472: function (arg0) {
893
+ throw takeObject(arg0);
894
+ },
895
+ __wbg___wbindgen_string_get_72fb696202c56729: function (arg0, arg1) {
896
+ const obj = getObject(arg1);
897
+ const ret = typeof (obj) === 'string' ? obj : undefined;
898
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
899
+ var len1 = WASM_VECTOR_LEN;
900
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
901
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
902
+ },
903
+ __wbg___wbindgen_throw_be289d5034ed271b: function (arg0, arg1) {
904
+ throw new Error(getStringFromWasm0(arg0, arg1));
905
+ },
906
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function (arg0) {
907
+ getObject(arg0)._wbg_cb_unref();
908
+ },
909
+ __wbg_abort_2f0584e03e8e3950: function (arg0) {
910
+ getObject(arg0).abort();
911
+ },
912
+ __wbg_abort_d549b92d3c665de1: function (arg0, arg1) {
913
+ getObject(arg0).abort(getObject(arg1));
914
+ },
915
+ __wbg_append_a992ccc37aa62dc4: function () {
916
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
917
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
918
+ }, arguments);
919
+ },
920
+ __wbg_arrayBuffer_05ce1af23e9064e8: function (arg0) {
921
+ const ret = getObject(arg0).arrayBuffer();
922
+ return addHeapObject(ret);
923
+ },
924
+ __wbg_arrayBuffer_bb54076166006c39: function () {
925
+ return handleError(function (arg0) {
926
+ const ret = getObject(arg0).arrayBuffer();
927
+ return addHeapObject(ret);
928
+ }, arguments);
929
+ },
930
+ __wbg_async_79f2a61f9d0b31cf: function (arg0) {
931
+ const ret = getObject(arg0).async;
932
+ return ret;
933
+ },
934
+ __wbg_buffer_7b5f53e46557d8f1: function (arg0) {
935
+ const ret = getObject(arg0).buffer;
936
+ return addHeapObject(ret);
937
+ },
938
+ __wbg_call_389efe28435a9388: function () {
939
+ return handleError(function (arg0, arg1) {
940
+ const ret = getObject(arg0).call(getObject(arg1));
941
+ return addHeapObject(ret);
942
+ }, arguments);
943
+ },
944
+ __wbg_call_4708e0c13bdc8e95: function () {
945
+ return handleError(function (arg0, arg1, arg2) {
946
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
947
+ return addHeapObject(ret);
948
+ }, arguments);
949
+ },
950
+ __wbg_call_812d25f1510c13c8: function () {
951
+ return handleError(function (arg0, arg1, arg2, arg3) {
952
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
953
+ return addHeapObject(ret);
954
+ }, arguments);
955
+ },
956
+ __wbg_changedHandle_857ee3de52efb55d: function (arg0) {
957
+ const ret = getObject(arg0).changedHandle;
958
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
959
+ },
960
+ __wbg_clearTimeout_7a42b49784aea641: function (arg0) {
961
+ const ret = clearTimeout(takeObject(arg0));
962
+ return addHeapObject(ret);
963
+ },
964
+ __wbg_close_4ba312253c424342: function (arg0) {
965
+ getObject(arg0).close();
966
+ },
967
+ __wbg_close_83fb809aca3de7f9: function (arg0) {
968
+ const ret = getObject(arg0).close();
969
+ return addHeapObject(ret);
970
+ },
971
+ __wbg_createObjectURL_918185db6a10a0c8: function () {
972
+ return handleError(function (arg0, arg1) {
973
+ const ret = URL.createObjectURL(getObject(arg1));
974
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
975
+ const len1 = WASM_VECTOR_LEN;
976
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
977
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
978
+ }, arguments);
979
+ },
980
+ __wbg_createWritable_80bc5de374448b42: function (arg0) {
981
+ const ret = getObject(arg0).createWritable();
982
+ return addHeapObject(ret);
983
+ },
984
+ __wbg_createsyncaccesshandleoptions_new: function (arg0) {
985
+ const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
986
+ return addHeapObject(ret);
987
+ },
988
+ __wbg_data_5330da50312d0bc1: function (arg0) {
989
+ const ret = getObject(arg0).data;
990
+ return addHeapObject(ret);
991
+ },
992
+ __wbg_debug_46a93995fc6f8820: function (arg0, arg1, arg2, arg3) {
993
+ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
994
+ },
995
+ __wbg_debug_a4099fa12db6cd61: function (arg0) {
996
+ console.debug(getObject(arg0));
997
+ },
998
+ __wbg_direntry_new: function (arg0) {
999
+ const ret = DirEntry.__wrap(arg0);
1000
+ return addHeapObject(ret);
1001
+ },
1002
+ __wbg_done_57b39ecd9addfe81: function (arg0) {
1003
+ const ret = getObject(arg0).done;
1004
+ return ret;
1005
+ },
1006
+ __wbg_entries_04a4b982351a717f: function (arg0) {
1007
+ const ret = getObject(arg0).entries();
1008
+ return addHeapObject(ret);
1009
+ },
1010
+ __wbg_error_7534b8e9a36f1ab4: function (arg0, arg1) {
1011
+ let deferred0_0;
1012
+ let deferred0_1;
1013
+ try {
1014
+ deferred0_0 = arg0;
1015
+ deferred0_1 = arg1;
1016
+ console.error(getStringFromWasm0(arg0, arg1));
1017
+ }
1018
+ finally {
1019
+ wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
1020
+ }
1021
+ },
1022
+ __wbg_error_794d0ffc9d00d5c3: function (arg0, arg1, arg2, arg3) {
1023
+ console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1024
+ },
1025
+ __wbg_error_9a7fe3f932034cde: function (arg0) {
1026
+ console.error(getObject(arg0));
1027
+ },
1028
+ __wbg_eval_3f0b9f0cbaf45a34: function () {
1029
+ return handleError(function (arg0, arg1) {
1030
+ const ret = eval(getStringFromWasm0(arg0, arg1));
1031
+ return addHeapObject(ret);
1032
+ }, arguments);
1033
+ },
1034
+ __wbg_fetch_74a3e84ebd2c9a0e: function (arg0) {
1035
+ const ret = fetch(getObject(arg0));
1036
+ return addHeapObject(ret);
1037
+ },
1038
+ __wbg_fetch_afb6a4b6cacf876d: function (arg0, arg1) {
1039
+ const ret = getObject(arg0).fetch(getObject(arg1));
1040
+ return addHeapObject(ret);
1041
+ },
1042
+ __wbg_flush_22b785060592ca5f: function () {
1043
+ return handleError(function (arg0) {
1044
+ getObject(arg0).flush();
1045
+ }, arguments);
1046
+ },
1047
+ __wbg_from_bddd64e7d5ff6941: function (arg0) {
1048
+ const ret = Array.from(getObject(arg0));
1049
+ return addHeapObject(ret);
1050
+ },
1051
+ __wbg_getDirectoryHandle_87ce8ca53cf4d8dc: function (arg0, arg1, arg2, arg3) {
1052
+ const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1053
+ return addHeapObject(ret);
1054
+ },
1055
+ __wbg_getDirectory_b66ae3e79f902982: function (arg0) {
1056
+ const ret = getObject(arg0).getDirectory();
1057
+ return addHeapObject(ret);
1058
+ },
1059
+ __wbg_getFileHandle_ff4ab917b45affb3: function (arg0, arg1, arg2, arg3) {
1060
+ const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1061
+ return addHeapObject(ret);
1062
+ },
1063
+ __wbg_getFile_115354fc950edc88: function (arg0) {
1064
+ const ret = getObject(arg0).getFile();
1065
+ return addHeapObject(ret);
1066
+ },
1067
+ __wbg_getRandomValues_80578b2ff2a093ba: function () {
1068
+ return handleError(function (arg0) {
1069
+ globalThis.crypto.getRandomValues(getObject(arg0));
1070
+ }, arguments);
1071
+ },
1072
+ __wbg_get_9b94d73e6221f75c: function (arg0, arg1) {
1073
+ const ret = getObject(arg0)[arg1 >>> 0];
1074
+ return addHeapObject(ret);
1075
+ },
1076
+ __wbg_get_b3ed3ad4be2bc8ac: function () {
1077
+ return handleError(function (arg0, arg1) {
1078
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
1079
+ return addHeapObject(ret);
1080
+ }, arguments);
1081
+ },
1082
+ __wbg_has_d4e53238966c12b6: function () {
1083
+ return handleError(function (arg0, arg1) {
1084
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
1085
+ return ret;
1086
+ }, arguments);
1087
+ },
1088
+ __wbg_headers_59a2938db9f80985: function (arg0) {
1089
+ const ret = getObject(arg0).headers;
1090
+ return addHeapObject(ret);
1091
+ },
1092
+ __wbg_info_148d043840582012: function (arg0) {
1093
+ console.info(getObject(arg0));
1094
+ },
1095
+ __wbg_info_9e602cf10c5c690b: function (arg0, arg1, arg2, arg3) {
1096
+ console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1097
+ },
1098
+ __wbg_instanceof_DedicatedWorkerGlobalScope_1506b3d017799d48: function (arg0) {
1099
+ let result;
1100
+ try {
1101
+ result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
1102
+ }
1103
+ catch (_) {
1104
+ result = false;
1105
+ }
1106
+ const ret = result;
1107
+ return ret;
1108
+ },
1109
+ __wbg_instanceof_DomException_99c177193e554b75: function (arg0) {
1110
+ let result;
1111
+ try {
1112
+ result = getObject(arg0) instanceof DOMException;
1113
+ }
1114
+ catch (_) {
1115
+ result = false;
1116
+ }
1117
+ const ret = result;
1118
+ return ret;
1119
+ },
1120
+ __wbg_instanceof_FileSystemDirectoryHandle_56a167039d614548: function (arg0) {
1121
+ let result;
1122
+ try {
1123
+ result = getObject(arg0) instanceof FileSystemDirectoryHandle;
1124
+ }
1125
+ catch (_) {
1126
+ result = false;
1127
+ }
1128
+ const ret = result;
1129
+ return ret;
1130
+ },
1131
+ __wbg_instanceof_Response_ee1d54d79ae41977: function (arg0) {
1132
+ let result;
1133
+ try {
1134
+ result = getObject(arg0) instanceof Response;
1135
+ }
1136
+ catch (_) {
1137
+ result = false;
1138
+ }
1139
+ const ret = result;
1140
+ return ret;
1141
+ },
1142
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: function (arg0) {
1143
+ let result;
1144
+ try {
1145
+ result = getObject(arg0) instanceof Uint8Array;
1146
+ }
1147
+ catch (_) {
1148
+ result = false;
1149
+ }
1150
+ const ret = result;
1151
+ return ret;
1152
+ },
1153
+ __wbg_isArray_d314bb98fcf08331: function (arg0) {
1154
+ const ret = Array.isArray(getObject(arg0));
1155
+ return ret;
1156
+ },
1157
+ __wbg_iterator_6ff6560ca1568e55: function () {
1158
+ const ret = Symbol.iterator;
1159
+ return addHeapObject(ret);
1160
+ },
1161
+ __wbg_kind_90769d6c16faeafd: function (arg0) {
1162
+ const ret = getObject(arg0).kind;
1163
+ return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
1164
+ },
1165
+ __wbg_length_32ed9a279acd054c: function (arg0) {
1166
+ const ret = getObject(arg0).length;
1167
+ return ret;
1168
+ },
1169
+ __wbg_length_35a7bace40f36eac: function (arg0) {
1170
+ const ret = getObject(arg0).length;
1171
+ return ret;
1172
+ },
1173
+ __wbg_metadata_new: function (arg0) {
1174
+ const ret = Metadata.__wrap(arg0);
1175
+ return addHeapObject(ret);
1176
+ },
1177
+ __wbg_name_242753e5110cd756: function (arg0, arg1) {
1178
+ const ret = getObject(arg1).name;
1179
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1180
+ const len1 = WASM_VECTOR_LEN;
1181
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1182
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1183
+ },
1184
+ __wbg_name_e8cffaa6f870bdb5: function (arg0, arg1) {
1185
+ const ret = getObject(arg1).name;
1186
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1187
+ const len1 = WASM_VECTOR_LEN;
1188
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1189
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1190
+ },
1191
+ __wbg_navigator_4478931f32ebca57: function (arg0) {
1192
+ const ret = getObject(arg0).navigator;
1193
+ return addHeapObject(ret);
1194
+ },
1195
+ __wbg_new_361308b2356cecd0: function () {
1196
+ const ret = new Object();
1197
+ return addHeapObject(ret);
1198
+ },
1199
+ __wbg_new_3eb36ae241fe6f44: function () {
1200
+ const ret = new Array();
1201
+ return addHeapObject(ret);
1202
+ },
1203
+ __wbg_new_4f8f3c123e474358: function () {
1204
+ return handleError(function (arg0, arg1) {
1205
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
1206
+ return addHeapObject(ret);
1207
+ }, arguments);
1208
+ },
1209
+ __wbg_new_64284bd487f9d239: function () {
1210
+ return handleError(function () {
1211
+ const ret = new Headers();
1212
+ return addHeapObject(ret);
1213
+ }, arguments);
1214
+ },
1215
+ __wbg_new_72c627ba80de1c21: function (arg0) {
1216
+ const ret = new Int32Array(getObject(arg0));
1217
+ return addHeapObject(ret);
1218
+ },
1219
+ __wbg_new_8a6f238a6ece86ea: function () {
1220
+ const ret = new Error();
1221
+ return addHeapObject(ret);
1222
+ },
1223
+ __wbg_new_b5d9e2fb389fef91: function (arg0, arg1) {
1224
+ try {
1225
+ var state0 = { a: arg0, b: arg1 };
1226
+ var cb0 = (arg0, arg1) => {
1227
+ const a = state0.a;
1228
+ state0.a = 0;
1229
+ try {
1230
+ return __wasm_bindgen_func_elem_3447(a, state0.b, arg0, arg1);
1231
+ }
1232
+ finally {
1233
+ state0.a = a;
1234
+ }
1235
+ };
1236
+ const ret = new Promise(cb0);
1237
+ return addHeapObject(ret);
1238
+ }
1239
+ finally {
1240
+ state0.a = state0.b = 0;
1241
+ }
1242
+ },
1243
+ __wbg_new_b949e7f56150a5d1: function () {
1244
+ return handleError(function () {
1245
+ const ret = new AbortController();
1246
+ return addHeapObject(ret);
1247
+ }, arguments);
1248
+ },
1249
+ __wbg_new_d0e1b5fdb5f4db8b: function (arg0) {
1250
+ const ret = new FileSystemObserver(getObject(arg0));
1251
+ return addHeapObject(ret);
1252
+ },
1253
+ __wbg_new_dca287b076112a51: function () {
1254
+ const ret = new Map();
1255
+ return addHeapObject(ret);
1256
+ },
1257
+ __wbg_new_dd2b680c8bf6ae29: function (arg0) {
1258
+ const ret = new Uint8Array(getObject(arg0));
1259
+ return addHeapObject(ret);
1260
+ },
1261
+ __wbg_new_from_slice_a3d2629dc1826784: function (arg0, arg1) {
1262
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1263
+ return addHeapObject(ret);
1264
+ },
1265
+ __wbg_new_no_args_1c7c842f08d00ebb: function (arg0, arg1) {
1266
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1267
+ return addHeapObject(ret);
1268
+ },
1269
+ __wbg_new_with_length_a2c39cbe88fd8ff1: function (arg0) {
1270
+ const ret = new Uint8Array(arg0 >>> 0);
1271
+ return addHeapObject(ret);
1272
+ },
1273
+ __wbg_new_with_options_145afba922ad3703: function () {
1274
+ return handleError(function (arg0, arg1, arg2) {
1275
+ const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
1276
+ return addHeapObject(ret);
1277
+ }, arguments);
1278
+ },
1279
+ __wbg_new_with_str_and_init_a61cbc6bdef21614: function () {
1280
+ return handleError(function (arg0, arg1, arg2) {
1281
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1282
+ return addHeapObject(ret);
1283
+ }, arguments);
1284
+ },
1285
+ __wbg_new_with_str_sequence_cea2c0571d6dc6ab: function () {
1286
+ return handleError(function (arg0) {
1287
+ const ret = new Blob(getObject(arg0));
1288
+ return addHeapObject(ret);
1289
+ }, arguments);
1290
+ },
1291
+ __wbg_next_0a5e0f8af98146aa: function () {
1292
+ return handleError(function (arg0) {
1293
+ const ret = getObject(arg0).next();
1294
+ return addHeapObject(ret);
1295
+ }, arguments);
1296
+ },
1297
+ __wbg_next_3482f54c49e8af19: function () {
1298
+ return handleError(function (arg0) {
1299
+ const ret = getObject(arg0).next();
1300
+ return addHeapObject(ret);
1301
+ }, arguments);
1302
+ },
1303
+ __wbg_next_418f80d8f5303233: function (arg0) {
1304
+ const ret = getObject(arg0).next;
1305
+ return addHeapObject(ret);
1306
+ },
1307
+ __wbg_now_0dc4920a47cf7280: function (arg0) {
1308
+ const ret = getObject(arg0).now();
1309
+ return ret;
1310
+ },
1311
+ __wbg_now_a3af9a2f4bbaa4d1: function () {
1312
+ const ret = Date.now();
1313
+ return ret;
1314
+ },
1315
+ __wbg_observe_f1be8f54c7884c74: function (arg0, arg1, arg2) {
1316
+ const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1317
+ return addHeapObject(ret);
1318
+ },
1319
+ __wbg_of_ddc0942b0dce16a1: function (arg0, arg1, arg2) {
1320
+ const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
1321
+ return addHeapObject(ret);
1322
+ },
1323
+ __wbg_performance_6adc3b899e448a23: function (arg0) {
1324
+ const ret = getObject(arg0).performance;
1325
+ return addHeapObject(ret);
1326
+ },
1327
+ __wbg_postMessage_2041f4e90af61318: function () {
1328
+ return handleError(function (arg0, arg1) {
1329
+ getObject(arg0).postMessage(getObject(arg1));
1330
+ }, arguments);
1331
+ },
1332
+ __wbg_postMessage_771ef3293a28bbac: function () {
1333
+ return handleError(function (arg0, arg1) {
1334
+ getObject(arg0).postMessage(getObject(arg1));
1335
+ }, arguments);
1336
+ },
1337
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function (arg0, arg1, arg2) {
1338
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1339
+ },
1340
+ __wbg_push_8ffdcb2063340ba5: function (arg0, arg1) {
1341
+ const ret = getObject(arg0).push(getObject(arg1));
1342
+ return ret;
1343
+ },
1344
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function (arg0) {
1345
+ const ret = getObject(arg0).queueMicrotask;
1346
+ return addHeapObject(ret);
1347
+ },
1348
+ __wbg_queueMicrotask_5bb536982f78a56f: function (arg0) {
1349
+ queueMicrotask(getObject(arg0));
1350
+ },
1351
+ __wbg_random_912284dbf636f269: function () {
1352
+ const ret = Math.random();
1353
+ return ret;
1354
+ },
1355
+ __wbg_relativePathComponents_cdef565cac5db69f: function (arg0) {
1356
+ const ret = getObject(arg0).relativePathComponents;
1357
+ return addHeapObject(ret);
1358
+ },
1359
+ __wbg_removeEntry_c4efffdd318b51a1: function (arg0, arg1, arg2, arg3) {
1360
+ const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
1361
+ return addHeapObject(ret);
1362
+ },
1363
+ __wbg_resolve_002c4b7d9d8f6b64: function (arg0) {
1364
+ const ret = Promise.resolve(getObject(arg0));
1365
+ return addHeapObject(ret);
1366
+ },
1367
+ __wbg_root_722ea46a4dfaf891: function (arg0) {
1368
+ const ret = getObject(arg0).root;
1369
+ return addHeapObject(ret);
1370
+ },
1371
+ __wbg_setTimeout_63008613644b07af: function () {
1372
+ return handleError(function (arg0, arg1, arg2) {
1373
+ const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1374
+ return addHeapObject(ret);
1375
+ }, arguments);
1376
+ },
1377
+ __wbg_setTimeout_7bb3429662ab1e70: function (arg0, arg1) {
1378
+ const ret = setTimeout(getObject(arg0), arg1);
1379
+ return addHeapObject(ret);
1380
+ },
1381
+ __wbg_set_1eb0999cf5d27fc8: function (arg0, arg1, arg2) {
1382
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1383
+ return addHeapObject(ret);
1384
+ },
1385
+ __wbg_set_3f1d0b984ed272ed: function (arg0, arg1, arg2) {
1386
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1387
+ },
1388
+ __wbg_set_body_9a7e00afe3cfe244: function (arg0, arg1) {
1389
+ getObject(arg0).body = getObject(arg1);
1390
+ },
1391
+ __wbg_set_cache_315a3ed773a41543: function (arg0, arg1) {
1392
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1393
+ },
1394
+ __wbg_set_create_1f902c5936adde7d: function (arg0, arg1) {
1395
+ getObject(arg0).create = arg1 !== 0;
1396
+ },
1397
+ __wbg_set_create_c95ddca018fac9ce: function (arg0, arg1) {
1398
+ getObject(arg0).create = arg1 !== 0;
1399
+ },
1400
+ __wbg_set_credentials_c4a58d2e05ef24fb: function (arg0, arg1) {
1401
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1402
+ },
1403
+ __wbg_set_f43e577aea94465b: function (arg0, arg1, arg2) {
1404
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1405
+ },
1406
+ __wbg_set_headers_cfc5f4b2c1f20549: function (arg0, arg1) {
1407
+ getObject(arg0).headers = getObject(arg1);
1408
+ },
1409
+ __wbg_set_method_c3e20375f5ae7fac: function (arg0, arg1, arg2) {
1410
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1411
+ },
1412
+ __wbg_set_mode_b13642c312648202: function (arg0, arg1) {
1413
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1414
+ },
1415
+ __wbg_set_name_49b9ecba7f58f2e5: function (arg0, arg1, arg2) {
1416
+ getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1417
+ },
1418
+ __wbg_set_onmessage_6ed41050e4a5cee2: function (arg0, arg1) {
1419
+ getObject(arg0).onmessage = getObject(arg1);
1420
+ },
1421
+ __wbg_set_recursive_7437584ba1ac1fb1: function (arg0, arg1) {
1422
+ getObject(arg0).recursive = arg1 !== 0;
1423
+ },
1424
+ __wbg_set_recursive_f5d3416098328110: function (arg0, arg1) {
1425
+ getObject(arg0).recursive = arg1 !== 0;
1426
+ },
1427
+ __wbg_set_signal_f2d3f8599248896d: function (arg0, arg1) {
1428
+ getObject(arg0).signal = getObject(arg1);
1429
+ },
1430
+ __wbg_set_type_e127f26b78d78bfc: function (arg0, arg1) {
1431
+ getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1432
+ },
1433
+ __wbg_signal_d1285ecab4ebc5ad: function (arg0) {
1434
+ const ret = getObject(arg0).signal;
1435
+ return addHeapObject(ret);
1436
+ },
1437
+ __wbg_size_e05d31cc6049815f: function (arg0) {
1438
+ const ret = getObject(arg0).size;
1439
+ return ret;
1440
+ },
1441
+ __wbg_slice_566a15f3214fa52e: function () {
1442
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1443
+ const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1444
+ return addHeapObject(ret);
1445
+ }, arguments);
1446
+ },
1447
+ __wbg_stack_0ed75d68575b0f3c: function (arg0, arg1) {
1448
+ const ret = getObject(arg1).stack;
1449
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1450
+ const len1 = WASM_VECTOR_LEN;
1451
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1452
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1453
+ },
1454
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function () {
1455
+ const ret = typeof global === 'undefined' ? null : global;
1456
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1457
+ },
1458
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function () {
1459
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1460
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1461
+ },
1462
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function () {
1463
+ const ret = typeof self === 'undefined' ? null : self;
1464
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1465
+ },
1466
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function () {
1467
+ const ret = typeof window === 'undefined' ? null : window;
1468
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1469
+ },
1470
+ __wbg_status_89d7e803db911ee7: function (arg0) {
1471
+ const ret = getObject(arg0).status;
1472
+ return ret;
1473
+ },
1474
+ __wbg_storage_c002b53bc4883299: function (arg0) {
1475
+ const ret = getObject(arg0).storage;
1476
+ return addHeapObject(ret);
1477
+ },
1478
+ __wbg_stringify_8d1cc6ff383e8bae: function () {
1479
+ return handleError(function (arg0) {
1480
+ const ret = JSON.stringify(getObject(arg0));
1481
+ return addHeapObject(ret);
1482
+ }, arguments);
1483
+ },
1484
+ __wbg_subarray_a96e1fef17ed23cb: function (arg0, arg1, arg2) {
1485
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1486
+ return addHeapObject(ret);
1487
+ },
1488
+ __wbg_then_0d9fe2c7b1857d32: function (arg0, arg1, arg2) {
1489
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1490
+ return addHeapObject(ret);
1491
+ },
1492
+ __wbg_then_b9e7b3b5f1a9e1b5: function (arg0, arg1) {
1493
+ const ret = getObject(arg0).then(getObject(arg1));
1494
+ return addHeapObject(ret);
1495
+ },
1496
+ __wbg_toString_964ff7fe6eca8362: function (arg0) {
1497
+ const ret = getObject(arg0).toString();
1498
+ return addHeapObject(ret);
1499
+ },
1500
+ __wbg_truncate_dc661fdcb0062fa7: function () {
1501
+ return handleError(function (arg0, arg1) {
1502
+ getObject(arg0).truncate(arg1 >>> 0);
1503
+ }, arguments);
1504
+ },
1505
+ __wbg_type_47e8c2ef7c7eb249: function (arg0) {
1506
+ const ret = getObject(arg0).type;
1507
+ return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1508
+ },
1509
+ __wbg_url_c484c26b1fbf5126: function (arg0, arg1) {
1510
+ const ret = getObject(arg1).url;
1511
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1512
+ const len1 = WASM_VECTOR_LEN;
1513
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1514
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1515
+ },
1516
+ __wbg_value_0546255b415e96c1: function (arg0) {
1517
+ const ret = getObject(arg0).value;
1518
+ return addHeapObject(ret);
1519
+ },
1520
+ __wbg_value_fe6ee34af5dc3dce: function (arg0) {
1521
+ const ret = getObject(arg0).value;
1522
+ return addHeapObject(ret);
1523
+ },
1524
+ __wbg_waitAsync_a58b2134bff39c3e: function (arg0, arg1, arg2) {
1525
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1526
+ return addHeapObject(ret);
1527
+ },
1528
+ __wbg_waitAsync_c0a39a7d3318d91e: function () {
1529
+ const ret = Atomics.waitAsync;
1530
+ return addHeapObject(ret);
1531
+ },
1532
+ __wbg_warn_a40b971467b219c7: function (arg0, arg1, arg2, arg3) {
1533
+ console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1534
+ },
1535
+ __wbg_warn_f7ae1b2e66ccb930: function (arg0) {
1536
+ console.warn(getObject(arg0));
1537
+ },
1538
+ __wbg_wasmtaskmessage_new: function (arg0) {
1539
+ const ret = WasmTaskMessage.__wrap(arg0);
1540
+ return addHeapObject(ret);
1541
+ },
1542
+ __wbg_webworkercreation_new: function (arg0) {
1543
+ const ret = WebWorkerCreation.__wrap(arg0);
1544
+ return addHeapObject(ret);
1545
+ },
1546
+ __wbg_webworkertermination_new: function (arg0) {
1547
+ const ret = WebWorkerTermination.__wrap(arg0);
1548
+ return addHeapObject(ret);
1549
+ },
1550
+ __wbindgen_cast_0000000000000001: function (arg0, arg1) {
1551
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [Externref], shim_idx: 7388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1552
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83554);
1553
+ return addHeapObject(ret);
1554
+ },
1555
+ __wbindgen_cast_0000000000000002: function (arg0, arg1) {
1556
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7381, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1557
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83231);
1558
+ return addHeapObject(ret);
1559
+ },
1560
+ __wbindgen_cast_0000000000000003: function (arg0, arg1) {
1561
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1562
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83554);
1563
+ return addHeapObject(ret);
1564
+ },
1565
+ __wbindgen_cast_0000000000000004: function (arg0, arg1) {
1566
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [], shim_idx: 1879, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1567
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_22682);
1568
+ return addHeapObject(ret);
1569
+ },
1570
+ __wbindgen_cast_0000000000000005: function (arg0, arg1) {
1571
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7392, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1572
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83606, __wasm_bindgen_func_elem_83607);
1573
+ return addHeapObject(ret);
1574
+ },
1575
+ __wbindgen_cast_0000000000000006: function (arg0, arg1) {
1576
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7392, function: Function { arguments: [], shim_idx: 1879, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1577
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83606, __wasm_bindgen_func_elem_22682);
1578
+ return addHeapObject(ret);
1579
+ },
1580
+ __wbindgen_cast_0000000000000007: function (arg0) {
1581
+ // Cast intrinsic for `F64 -> Externref`.
1582
+ const ret = arg0;
1583
+ return addHeapObject(ret);
1584
+ },
1585
+ __wbindgen_cast_0000000000000008: function (arg0) {
1586
+ // Cast intrinsic for `I64 -> Externref`.
1587
+ const ret = arg0;
1588
+ return addHeapObject(ret);
1589
+ },
1590
+ __wbindgen_cast_0000000000000009: function (arg0, arg1) {
1591
+ // Cast intrinsic for `Ref(String) -> Externref`.
1592
+ const ret = getStringFromWasm0(arg0, arg1);
1593
+ return addHeapObject(ret);
1594
+ },
1595
+ __wbindgen_cast_000000000000000a: function (arg0) {
1596
+ // Cast intrinsic for `U64 -> Externref`.
1597
+ const ret = BigInt.asUintN(64, arg0);
1598
+ return addHeapObject(ret);
1599
+ },
1600
+ __wbindgen_cast_000000000000000b: function (arg0, arg1) {
1601
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1602
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
1603
+ // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1604
+ const ret = v0;
1605
+ return addHeapObject(ret);
1606
+ },
1607
+ __wbindgen_link_0b1f76d235fd2b86: function (arg0) {
1608
+ const val = `onmessage = function (ev) {
1609
+ let [ia, index, value] = ev.data;
1610
+ ia = new Int32Array(ia.buffer);
1611
+ let result = Atomics.wait(ia, index, value);
1612
+ postMessage(result);
1613
+ };
1614
+ `;
1615
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1616
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1617
+ const len1 = WASM_VECTOR_LEN;
1618
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1619
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1620
+ },
1621
+ __wbindgen_object_clone_ref: function (arg0) {
1622
+ const ret = getObject(arg0);
1623
+ return addHeapObject(ret);
1624
+ },
1625
+ __wbindgen_object_drop_ref: function (arg0) {
1626
+ takeObject(arg0);
1627
+ },
1628
+ memory: memory || new WebAssembly.Memory({ initial: 1025, maximum: 65536, shared: true }),
1629
+ };
1630
+ return {
1631
+ __proto__: null,
1632
+ "./index_bg.js": import0,
1633
+ };
1634
+ }
1635
+ function __wasm_bindgen_func_elem_22682(arg0, arg1) {
1636
+ wasm.__wasm_bindgen_func_elem_22682(arg0, arg1);
1637
+ }
1638
+ function __wasm_bindgen_func_elem_83554(arg0, arg1, arg2) {
1639
+ wasm.__wasm_bindgen_func_elem_83554(arg0, arg1, addHeapObject(arg2));
1640
+ }
1641
+ function __wasm_bindgen_func_elem_83231(arg0, arg1, arg2) {
1642
+ wasm.__wasm_bindgen_func_elem_83231(arg0, arg1, addHeapObject(arg2));
1643
+ }
1644
+ function __wasm_bindgen_func_elem_83607(arg0, arg1, arg2) {
1645
+ try {
1646
+ wasm.__wasm_bindgen_func_elem_83607(arg0, arg1, addBorrowedObject(arg2));
1647
+ }
1648
+ finally {
1649
+ heap[stack_pointer++] = undefined;
1650
+ }
1651
+ }
1652
+ function __wasm_bindgen_func_elem_3447(arg0, arg1, arg2, arg3) {
1653
+ wasm.__wasm_bindgen_func_elem_3447(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1654
+ }
1655
+ const __wbindgen_enum_DirEntryType = ["file", "directory"];
1656
+ const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
1657
+ const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
1658
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
1659
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
1660
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
1661
+ const __wbindgen_enum_WorkerType = ["classic", "module"];
1662
+ const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
1663
+ ? { register: () => { }, unregister: () => { } }
1664
+ : new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
1665
+ const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
1666
+ ? { register: () => { }, unregister: () => { } }
1667
+ : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
1668
+ const FsFinalization = (typeof FinalizationRegistry === 'undefined')
1669
+ ? { register: () => { }, unregister: () => { } }
1670
+ : new FinalizationRegistry(ptr => wasm.__wbg_fs_free(ptr >>> 0, 1));
1671
+ const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
1672
+ ? { register: () => { }, unregister: () => { } }
1673
+ : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
1674
+ const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
1675
+ ? { register: () => { }, unregister: () => { } }
1676
+ : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
1677
+ const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
1678
+ ? { register: () => { }, unregister: () => { } }
1679
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
1680
+ const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
1681
+ ? { register: () => { }, unregister: () => { } }
1682
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
1683
+ const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
1684
+ ? { register: () => { }, unregister: () => { } }
1685
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
1686
+ const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
1687
+ ? { register: () => { }, unregister: () => { } }
1688
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
1689
+ function addHeapObject(obj) {
1690
+ if (heap_next === heap.length)
1691
+ heap.push(heap.length + 1);
1692
+ const idx = heap_next;
1693
+ heap_next = heap[idx];
1694
+ heap[idx] = obj;
1695
+ return idx;
1696
+ }
1697
+ function _assertClass(instance, klass) {
1698
+ if (!(instance instanceof klass)) {
1699
+ throw new Error(`expected instance of ${klass.name}`);
1700
+ }
1701
+ }
1702
+ function addBorrowedObject(obj) {
1703
+ if (stack_pointer == 1)
1704
+ throw new Error('out of js stack');
1705
+ heap[--stack_pointer] = obj;
1706
+ return stack_pointer;
1707
+ }
1708
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1709
+ ? { register: () => { }, unregister: () => { } }
1710
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
1711
+ function debugString(val) {
1712
+ // primitive types
1713
+ const type = typeof val;
1714
+ if (type == 'number' || type == 'boolean' || val == null) {
1715
+ return `${val}`;
1716
+ }
1717
+ if (type == 'string') {
1718
+ return `"${val}"`;
1719
+ }
1720
+ if (type == 'symbol') {
1721
+ const description = val.description;
1722
+ if (description == null) {
1723
+ return 'Symbol';
1724
+ }
1725
+ else {
1726
+ return `Symbol(${description})`;
1727
+ }
1728
+ }
1729
+ if (type == 'function') {
1730
+ const name = val.name;
1731
+ if (typeof name == 'string' && name.length > 0) {
1732
+ return `Function(${name})`;
1733
+ }
1734
+ else {
1735
+ return 'Function';
1736
+ }
1737
+ }
1738
+ // objects
1739
+ if (Array.isArray(val)) {
1740
+ const length = val.length;
1741
+ let debug = '[';
1742
+ if (length > 0) {
1743
+ debug += debugString(val[0]);
1744
+ }
1745
+ for (let i = 1; i < length; i++) {
1746
+ debug += ', ' + debugString(val[i]);
1747
+ }
1748
+ debug += ']';
1749
+ return debug;
1750
+ }
1751
+ // Test for built-in
1752
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1753
+ let className;
1754
+ if (builtInMatches && builtInMatches.length > 1) {
1755
+ className = builtInMatches[1];
1756
+ }
1757
+ else {
1758
+ // Failed to match the standard '[object ClassName]'
1759
+ return toString.call(val);
1760
+ }
1761
+ if (className == 'Object') {
1762
+ // we're a user defined class or Object
1763
+ // JSON.stringify avoids problems with cycles, and is generally much
1764
+ // easier than looping through ownProperties of `val`.
1765
+ try {
1766
+ return 'Object(' + JSON.stringify(val) + ')';
1767
+ }
1768
+ catch (_) {
1769
+ return 'Object';
1770
+ }
1771
+ }
1772
+ // errors
1773
+ if (val instanceof Error) {
1774
+ return `${val.name}: ${val.message}\n${val.stack}`;
1775
+ }
1776
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1777
+ return className;
1778
+ }
1779
+ function dropObject(idx) {
1780
+ if (idx < 132)
1781
+ return;
1782
+ heap[idx] = heap_next;
1783
+ heap_next = idx;
1784
+ }
1785
+ function getArrayJsValueFromWasm0(ptr, len) {
1786
+ ptr = ptr >>> 0;
1787
+ const mem = getDataViewMemory0();
1788
+ const result = [];
1789
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1790
+ result.push(takeObject(mem.getUint32(i, true)));
1791
+ }
1792
+ return result;
1793
+ }
1794
+ function getArrayU8FromWasm0(ptr, len) {
1795
+ ptr = ptr >>> 0;
1796
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1797
+ }
1798
+ let cachedDataViewMemory0 = null;
1799
+ function getDataViewMemory0() {
1800
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
1801
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1802
+ }
1803
+ return cachedDataViewMemory0;
1804
+ }
1805
+ function getStringFromWasm0(ptr, len) {
1806
+ ptr = ptr >>> 0;
1807
+ return decodeText(ptr, len);
1808
+ }
1809
+ let cachedUint8ArrayMemory0 = null;
1810
+ function getUint8ArrayMemory0() {
1811
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
1812
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1813
+ }
1814
+ return cachedUint8ArrayMemory0;
1815
+ }
1816
+ function getObject(idx) { return heap[idx]; }
1817
+ function handleError(f, args) {
1818
+ try {
1819
+ return f.apply(this, args);
1820
+ }
1821
+ catch (e) {
1822
+ wasm.__wbindgen_export3(addHeapObject(e));
1823
+ }
1824
+ }
1825
+ let heap = new Array(128).fill(undefined);
1826
+ heap.push(undefined, null, true, false);
1827
+ let heap_next = heap.length;
1828
+ function isLikeNone(x) {
1829
+ return x === undefined || x === null;
1830
+ }
1831
+ function makeClosure(arg0, arg1, dtor, f) {
1832
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
1833
+ const real = (...args) => {
1834
+ // First up with a closure we increment the internal reference
1835
+ // count. This ensures that the Rust closure environment won't
1836
+ // be deallocated while we're invoking it.
1837
+ state.cnt++;
1838
+ try {
1839
+ return f(state.a, state.b, ...args);
1840
+ }
1841
+ finally {
1842
+ real._wbg_cb_unref();
1843
+ }
1844
+ };
1845
+ real._wbg_cb_unref = () => {
1846
+ if (--state.cnt === 0) {
1847
+ state.dtor(state.a, state.b);
1848
+ state.a = 0;
1849
+ CLOSURE_DTORS.unregister(state);
1850
+ }
1851
+ };
1852
+ CLOSURE_DTORS.register(real, state, state);
1853
+ return real;
1854
+ }
1855
+ function makeMutClosure(arg0, arg1, dtor, f) {
1856
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
1857
+ const real = (...args) => {
1858
+ // First up with a closure we increment the internal reference
1859
+ // count. This ensures that the Rust closure environment won't
1860
+ // be deallocated while we're invoking it.
1861
+ state.cnt++;
1862
+ const a = state.a;
1863
+ state.a = 0;
1864
+ try {
1865
+ return f(a, state.b, ...args);
1866
+ }
1867
+ finally {
1868
+ state.a = a;
1869
+ real._wbg_cb_unref();
1870
+ }
1871
+ };
1872
+ real._wbg_cb_unref = () => {
1873
+ if (--state.cnt === 0) {
1874
+ state.dtor(state.a, state.b);
1875
+ state.a = 0;
1876
+ CLOSURE_DTORS.unregister(state);
1877
+ }
1878
+ };
1879
+ CLOSURE_DTORS.register(real, state, state);
1880
+ return real;
1881
+ }
1882
+ function passStringToWasm0(arg, malloc, realloc) {
1883
+ if (realloc === undefined) {
1884
+ const buf = cachedTextEncoder.encode(arg);
1885
+ const ptr = malloc(buf.length, 1) >>> 0;
1886
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1887
+ WASM_VECTOR_LEN = buf.length;
1888
+ return ptr;
1889
+ }
1890
+ let len = arg.length;
1891
+ let ptr = malloc(len, 1) >>> 0;
1892
+ const mem = getUint8ArrayMemory0();
1893
+ let offset = 0;
1894
+ for (; offset < len; offset++) {
1895
+ const code = arg.charCodeAt(offset);
1896
+ if (code > 0x7F)
1897
+ break;
1898
+ mem[ptr + offset] = code;
1899
+ }
1900
+ if (offset !== len) {
1901
+ if (offset !== 0) {
1902
+ arg = arg.slice(offset);
1903
+ }
1904
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1905
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1906
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1907
+ offset += ret.written;
1908
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1909
+ }
1910
+ WASM_VECTOR_LEN = offset;
1911
+ return ptr;
1912
+ }
1913
+ let stack_pointer = 128;
1914
+ function takeObject(idx) {
1915
+ const ret = getObject(idx);
1916
+ dropObject(idx);
1917
+ return ret;
1918
+ }
1919
+ let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
1920
+ if (cachedTextDecoder)
1921
+ cachedTextDecoder.decode();
1922
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1923
+ let numBytesDecoded = 0;
1924
+ function decodeText(ptr, len) {
1925
+ numBytesDecoded += len;
1926
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1927
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1928
+ cachedTextDecoder.decode();
1929
+ numBytesDecoded = len;
1930
+ }
1931
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
1932
+ }
1933
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
1934
+ if (cachedTextEncoder) {
1935
+ cachedTextEncoder.encodeInto = function (arg, view) {
1936
+ const buf = cachedTextEncoder.encode(arg);
1937
+ view.set(buf);
1938
+ return {
1939
+ read: arg.length,
1940
+ written: buf.length
1941
+ };
1942
+ };
1943
+ }
1944
+ let WASM_VECTOR_LEN = 0;
1945
+ let wasmModule, wasm;
1946
+ function __wbg_finalize_init(instance, module, thread_stack_size) {
1947
+ wasm = instance.exports;
1948
+ wasmModule = module;
1949
+ cachedDataViewMemory0 = null;
1950
+ cachedUint8ArrayMemory0 = null;
1951
+ if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1952
+ throw 'invalid stack size';
1953
+ }
1954
+ wasm.__wbindgen_start(thread_stack_size);
1955
+ return wasm;
1118
1956
  }
1119
- const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
1120
1957
  async function __wbg_load(module, imports) {
1121
1958
  if (typeof Response === 'function' && module instanceof Response) {
1122
1959
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -1124,7 +1961,7 @@ async function __wbg_load(module, imports) {
1124
1961
  return await WebAssembly.instantiateStreaming(module, imports);
1125
1962
  }
1126
1963
  catch (e) {
1127
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
1964
+ const validResponse = module.ok && expectedResponseType(module.type);
1128
1965
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1129
1966
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
1130
1967
  }
@@ -1145,814 +1982,20 @@ async function __wbg_load(module, imports) {
1145
1982
  return instance;
1146
1983
  }
1147
1984
  }
1148
- }
1149
- function __wbg_get_imports(memory) {
1150
- const imports = {};
1151
- imports.wbg = {};
1152
- imports.wbg.__wbg_Error_52673b7de5a0ca89 = function (arg0, arg1) {
1153
- const ret = Error(getStringFromWasm0(arg0, arg1));
1154
- return addHeapObject(ret);
1155
- };
1156
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
1157
- const ret = String(getObject(arg1));
1158
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1159
- const len1 = WASM_VECTOR_LEN;
1160
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1161
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1162
- };
1163
- imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function (arg0, arg1) {
1164
- const ret = debugString(getObject(arg1));
1165
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1166
- const len1 = WASM_VECTOR_LEN;
1167
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1168
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1169
- };
1170
- imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function (arg0) {
1171
- const ret = typeof (getObject(arg0)) === 'function';
1172
- return ret;
1173
- };
1174
- imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function (arg0) {
1175
- const val = getObject(arg0);
1176
- const ret = typeof (val) === 'object' && val !== null;
1177
- return ret;
1178
- };
1179
- imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function (arg0) {
1180
- const ret = typeof (getObject(arg0)) === 'string';
1181
- return ret;
1182
- };
1183
- imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function (arg0) {
1184
- const ret = getObject(arg0) === undefined;
1185
- return ret;
1186
- };
1187
- imports.wbg.__wbg___wbindgen_memory_a342e963fbcabd68 = function () {
1188
- const ret = wasm.memory;
1189
- return addHeapObject(ret);
1190
- };
1191
- imports.wbg.__wbg___wbindgen_module_967adef62ea6cbf8 = function () {
1192
- const ret = __wbg_init.__wbindgen_wasm_module;
1193
- return addHeapObject(ret);
1194
- };
1195
- imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function (arg0, arg1) {
1196
- const obj = getObject(arg1);
1197
- const ret = typeof (obj) === 'number' ? obj : undefined;
1198
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1199
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1200
- };
1201
- imports.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1 = function (arg0) {
1202
- throw takeObject(arg0);
1203
- };
1204
- imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function (arg0, arg1) {
1205
- const obj = getObject(arg1);
1206
- const ret = typeof (obj) === 'string' ? obj : undefined;
1207
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1208
- var len1 = WASM_VECTOR_LEN;
1209
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1210
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1211
- };
1212
- imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function (arg0, arg1) {
1213
- throw new Error(getStringFromWasm0(arg0, arg1));
1214
- };
1215
- imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function (arg0) {
1216
- getObject(arg0)._wbg_cb_unref();
1217
- };
1218
- imports.wbg.__wbg_abort_07646c894ebbf2bd = function (arg0) {
1219
- getObject(arg0).abort();
1220
- };
1221
- imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function (arg0, arg1) {
1222
- getObject(arg0).abort(getObject(arg1));
1223
- };
1224
- imports.wbg.__wbg_append_c5cbdf46455cc776 = function () {
1225
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1226
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1227
- }, arguments);
1228
- };
1229
- imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function (arg0) {
1230
- const ret = getObject(arg0).arrayBuffer();
1231
- return addHeapObject(ret);
1232
- };
1233
- imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function () {
1234
- return handleError(function (arg0) {
1235
- const ret = getObject(arg0).arrayBuffer();
1236
- return addHeapObject(ret);
1237
- }, arguments);
1238
- };
1239
- imports.wbg.__wbg_async_bba5a2ac54b734df = function (arg0) {
1240
- const ret = getObject(arg0).async;
1241
- return ret;
1242
- };
1243
- imports.wbg.__wbg_buffer_063cd102cc769a1c = function (arg0) {
1244
- const ret = getObject(arg0).buffer;
1245
- return addHeapObject(ret);
1246
- };
1247
- imports.wbg.__wbg_call_3020136f7a2d6e44 = function () {
1248
- return handleError(function (arg0, arg1, arg2) {
1249
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1250
- return addHeapObject(ret);
1251
- }, arguments);
1252
- };
1253
- imports.wbg.__wbg_call_abb4ff46ce38be40 = function () {
1254
- return handleError(function (arg0, arg1) {
1255
- const ret = getObject(arg0).call(getObject(arg1));
1256
- return addHeapObject(ret);
1257
- }, arguments);
1258
- };
1259
- imports.wbg.__wbg_call_c8baa5c5e72d274e = function () {
1260
- return handleError(function (arg0, arg1, arg2, arg3) {
1261
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
1262
- return addHeapObject(ret);
1263
- }, arguments);
1264
- };
1265
- imports.wbg.__wbg_changedHandle_857ee3de52efb55d = function (arg0) {
1266
- const ret = getObject(arg0).changedHandle;
1267
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1268
- };
1269
- imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function (arg0) {
1270
- const ret = clearTimeout(takeObject(arg0));
1271
- return addHeapObject(ret);
1272
- };
1273
- imports.wbg.__wbg_close_e350fad820f0e4f1 = function (arg0) {
1274
- getObject(arg0).close();
1275
- };
1276
- imports.wbg.__wbg_close_fc83f40c91a520a4 = function (arg0) {
1277
- const ret = getObject(arg0).close();
1278
- return addHeapObject(ret);
1279
- };
1280
- imports.wbg.__wbg_createObjectURL_7d9f7f8f41373850 = function () {
1281
- return handleError(function (arg0, arg1) {
1282
- const ret = URL.createObjectURL(getObject(arg1));
1283
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1284
- const len1 = WASM_VECTOR_LEN;
1285
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1286
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1287
- }, arguments);
1288
- };
1289
- imports.wbg.__wbg_createWritable_e8453bacaff844bc = function (arg0) {
1290
- const ret = getObject(arg0).createWritable();
1291
- return addHeapObject(ret);
1292
- };
1293
- imports.wbg.__wbg_createsyncaccesshandleoptions_new = function (arg0) {
1294
- const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
1295
- return addHeapObject(ret);
1296
- };
1297
- imports.wbg.__wbg_data_8bf4ae669a78a688 = function (arg0) {
1298
- const ret = getObject(arg0).data;
1299
- return addHeapObject(ret);
1300
- };
1301
- imports.wbg.__wbg_debug_9ad80675faf0c9cf = function (arg0, arg1, arg2, arg3) {
1302
- console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1303
- };
1304
- imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function (arg0) {
1305
- console.debug(getObject(arg0));
1306
- };
1307
- imports.wbg.__wbg_direntry_new = function (arg0) {
1308
- const ret = DirEntry.__wrap(arg0);
1309
- return addHeapObject(ret);
1310
- };
1311
- imports.wbg.__wbg_done_62ea16af4ce34b24 = function (arg0) {
1312
- const ret = getObject(arg0).done;
1313
- return ret;
1314
- };
1315
- imports.wbg.__wbg_entries_7de5c9edd116e219 = function (arg0) {
1316
- const ret = getObject(arg0).entries();
1317
- return addHeapObject(ret);
1318
- };
1319
- imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
1320
- let deferred0_0;
1321
- let deferred0_1;
1322
- try {
1323
- deferred0_0 = arg0;
1324
- deferred0_1 = arg1;
1325
- console.error(getStringFromWasm0(arg0, arg1));
1326
- }
1327
- finally {
1328
- wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
1329
- }
1330
- };
1331
- imports.wbg.__wbg_error_7bc7d576a6aaf855 = function (arg0) {
1332
- console.error(getObject(arg0));
1333
- };
1334
- imports.wbg.__wbg_error_ad1ecdacd1bb600d = function (arg0, arg1, arg2, arg3) {
1335
- console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1336
- };
1337
- imports.wbg.__wbg_eval_aa18aa048f37d16d = function () {
1338
- return handleError(function (arg0, arg1) {
1339
- const ret = eval(getStringFromWasm0(arg0, arg1));
1340
- return addHeapObject(ret);
1341
- }, arguments);
1342
- };
1343
- imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function (arg0) {
1344
- const ret = fetch(getObject(arg0));
1345
- return addHeapObject(ret);
1346
- };
1347
- imports.wbg.__wbg_fetch_90447c28cc0b095e = function (arg0, arg1) {
1348
- const ret = getObject(arg0).fetch(getObject(arg1));
1349
- return addHeapObject(ret);
1350
- };
1351
- imports.wbg.__wbg_flush_554f5177ae6f76cb = function () {
1352
- return handleError(function (arg0) {
1353
- getObject(arg0).flush();
1354
- }, arguments);
1355
- };
1356
- imports.wbg.__wbg_from_29a8414a7a7cd19d = function (arg0) {
1357
- const ret = Array.from(getObject(arg0));
1358
- return addHeapObject(ret);
1359
- };
1360
- imports.wbg.__wbg_getDirectoryHandle_edea923e1d89a19d = function (arg0, arg1, arg2, arg3) {
1361
- const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1362
- return addHeapObject(ret);
1363
- };
1364
- imports.wbg.__wbg_getDirectory_9beed6c83b6861f5 = function (arg0) {
1365
- const ret = getObject(arg0).getDirectory();
1366
- return addHeapObject(ret);
1367
- };
1368
- imports.wbg.__wbg_getFileHandle_298ee7a4e5a85f84 = function (arg0, arg1, arg2, arg3) {
1369
- const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1370
- return addHeapObject(ret);
1371
- };
1372
- imports.wbg.__wbg_getFile_3d12eaf635641f3a = function (arg0) {
1373
- const ret = getObject(arg0).getFile();
1374
- return addHeapObject(ret);
1375
- };
1376
- imports.wbg.__wbg_getRandomValues_80578b2ff2a093ba = function () {
1377
- return handleError(function (arg0) {
1378
- globalThis.crypto.getRandomValues(getObject(arg0));
1379
- }, arguments);
1380
- };
1381
- imports.wbg.__wbg_get_6b7bd52aca3f9671 = function (arg0, arg1) {
1382
- const ret = getObject(arg0)[arg1 >>> 0];
1383
- return addHeapObject(ret);
1384
- };
1385
- imports.wbg.__wbg_get_af9dab7e9603ea93 = function () {
1386
- return handleError(function (arg0, arg1) {
1387
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
1388
- return addHeapObject(ret);
1389
- }, arguments);
1390
- };
1391
- imports.wbg.__wbg_has_0e670569d65d3a45 = function () {
1392
- return handleError(function (arg0, arg1) {
1393
- const ret = Reflect.has(getObject(arg0), getObject(arg1));
1394
- return ret;
1395
- }, arguments);
1396
- };
1397
- imports.wbg.__wbg_headers_654c30e1bcccc552 = function (arg0) {
1398
- const ret = getObject(arg0).headers;
1399
- return addHeapObject(ret);
1400
- };
1401
- imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function (arg0, arg1, arg2, arg3) {
1402
- console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1403
- };
1404
- imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function (arg0) {
1405
- console.info(getObject(arg0));
1406
- };
1407
- imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_1fad9829936e95d2 = function (arg0) {
1408
- let result;
1409
- try {
1410
- result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
1411
- }
1412
- catch (_) {
1413
- result = false;
1414
- }
1415
- const ret = result;
1416
- return ret;
1417
- };
1418
- imports.wbg.__wbg_instanceof_DomException_d430cd4fb5284a83 = function (arg0) {
1419
- let result;
1420
- try {
1421
- result = getObject(arg0) instanceof DOMException;
1422
- }
1423
- catch (_) {
1424
- result = false;
1425
- }
1426
- const ret = result;
1427
- return ret;
1428
- };
1429
- imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a = function (arg0) {
1430
- let result;
1431
- try {
1432
- result = getObject(arg0) instanceof FileSystemDirectoryHandle;
1433
- }
1434
- catch (_) {
1435
- result = false;
1436
- }
1437
- const ret = result;
1438
- return ret;
1439
- };
1440
- imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function (arg0) {
1441
- let result;
1442
- try {
1443
- result = getObject(arg0) instanceof Response;
1444
- }
1445
- catch (_) {
1446
- result = false;
1447
- }
1448
- const ret = result;
1449
- return ret;
1450
- };
1451
- imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function (arg0) {
1452
- let result;
1453
- try {
1454
- result = getObject(arg0) instanceof Uint8Array;
1455
- }
1456
- catch (_) {
1457
- result = false;
1458
- }
1459
- const ret = result;
1460
- return ret;
1461
- };
1462
- imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function (arg0) {
1463
- const ret = Array.isArray(getObject(arg0));
1464
- return ret;
1465
- };
1466
- imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function () {
1467
- const ret = Symbol.iterator;
1468
- return addHeapObject(ret);
1469
- };
1470
- imports.wbg.__wbg_kind_537a771004f87998 = function (arg0) {
1471
- const ret = getObject(arg0).kind;
1472
- return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
1473
- };
1474
- imports.wbg.__wbg_length_22ac23eaec9d8053 = function (arg0) {
1475
- const ret = getObject(arg0).length;
1476
- return ret;
1477
- };
1478
- imports.wbg.__wbg_length_d45040a40c570362 = function (arg0) {
1479
- const ret = getObject(arg0).length;
1480
- return ret;
1481
- };
1482
- imports.wbg.__wbg_metadata_new = function (arg0) {
1483
- const ret = Metadata.__wrap(arg0);
1484
- return addHeapObject(ret);
1485
- };
1486
- imports.wbg.__wbg_name_7716fd7c364d6ae5 = function (arg0, arg1) {
1487
- const ret = getObject(arg1).name;
1488
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1489
- const len1 = WASM_VECTOR_LEN;
1490
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1491
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1492
- };
1493
- imports.wbg.__wbg_name_9136863a055402ff = function (arg0, arg1) {
1494
- const ret = getObject(arg1).name;
1495
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1496
- const len1 = WASM_VECTOR_LEN;
1497
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1498
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1499
- };
1500
- imports.wbg.__wbg_navigator_11b7299bb7886507 = function (arg0) {
1501
- const ret = getObject(arg0).navigator;
1502
- return addHeapObject(ret);
1503
- };
1504
- imports.wbg.__wbg_new_1ba21ce319a06297 = function () {
1505
- const ret = new Object();
1506
- return addHeapObject(ret);
1507
- };
1508
- imports.wbg.__wbg_new_25f239778d6112b9 = function () {
1509
- const ret = new Array();
1510
- return addHeapObject(ret);
1511
- };
1512
- imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function () {
1513
- return handleError(function () {
1514
- const ret = new Headers();
1515
- return addHeapObject(ret);
1516
- }, arguments);
1517
- };
1518
- imports.wbg.__wbg_new_53cb1e86c1ef5d2a = function () {
1519
- return handleError(function (arg0, arg1) {
1520
- const ret = new Worker(getStringFromWasm0(arg0, arg1));
1521
- return addHeapObject(ret);
1522
- }, arguments);
1523
- };
1524
- imports.wbg.__wbg_new_6421f6084cc5bc5a = function (arg0) {
1525
- const ret = new Uint8Array(getObject(arg0));
1526
- return addHeapObject(ret);
1527
- };
1528
- imports.wbg.__wbg_new_881a222c65f168fc = function () {
1529
- return handleError(function () {
1530
- const ret = new AbortController();
1531
- return addHeapObject(ret);
1532
- }, arguments);
1533
- };
1534
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function () {
1535
- const ret = new Error();
1536
- return addHeapObject(ret);
1537
- };
1538
- imports.wbg.__wbg_new_b546ae120718850e = function () {
1539
- const ret = new Map();
1540
- return addHeapObject(ret);
1541
- };
1542
- imports.wbg.__wbg_new_d0e1b5fdb5f4db8b = function (arg0) {
1543
- const ret = new FileSystemObserver(getObject(arg0));
1544
- return addHeapObject(ret);
1545
- };
1546
- imports.wbg.__wbg_new_de1e660b88fc921f = function (arg0) {
1547
- const ret = new Int32Array(getObject(arg0));
1548
- return addHeapObject(ret);
1549
- };
1550
- imports.wbg.__wbg_new_ff12d2b041fb48f1 = function (arg0, arg1) {
1551
- try {
1552
- var state0 = { a: arg0, b: arg1 };
1553
- var cb0 = (arg0, arg1) => {
1554
- const a = state0.a;
1555
- state0.a = 0;
1556
- try {
1557
- return __wasm_bindgen_func_elem_3429(a, state0.b, arg0, arg1);
1558
- }
1559
- finally {
1560
- state0.a = a;
1561
- }
1562
- };
1563
- const ret = new Promise(cb0);
1564
- return addHeapObject(ret);
1565
- }
1566
- finally {
1567
- state0.a = state0.b = 0;
1985
+ function expectedResponseType(type) {
1986
+ switch (type) {
1987
+ case 'basic':
1988
+ case 'cors':
1989
+ case 'default': return true;
1568
1990
  }
1569
- };
1570
- imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function (arg0, arg1) {
1571
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1572
- return addHeapObject(ret);
1573
- };
1574
- imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function (arg0, arg1) {
1575
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1576
- return addHeapObject(ret);
1577
- };
1578
- imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function (arg0) {
1579
- const ret = new Uint8Array(arg0 >>> 0);
1580
- return addHeapObject(ret);
1581
- };
1582
- imports.wbg.__wbg_new_with_options_2978557c2c268ef3 = function () {
1583
- return handleError(function (arg0, arg1, arg2) {
1584
- const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
1585
- return addHeapObject(ret);
1586
- }, arguments);
1587
- };
1588
- imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function () {
1589
- return handleError(function (arg0, arg1, arg2) {
1590
- const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1591
- return addHeapObject(ret);
1592
- }, arguments);
1593
- };
1594
- imports.wbg.__wbg_new_with_str_sequence_d016b9add23bf7ce = function () {
1595
- return handleError(function (arg0) {
1596
- const ret = new Blob(getObject(arg0));
1597
- return addHeapObject(ret);
1598
- }, arguments);
1599
- };
1600
- imports.wbg.__wbg_next_138a17bbf04e926c = function (arg0) {
1601
- const ret = getObject(arg0).next;
1602
- return addHeapObject(ret);
1603
- };
1604
- imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function () {
1605
- return handleError(function (arg0) {
1606
- const ret = getObject(arg0).next();
1607
- return addHeapObject(ret);
1608
- }, arguments);
1609
- };
1610
- imports.wbg.__wbg_next_b34c09a202bf4424 = function () {
1611
- return handleError(function (arg0) {
1612
- const ret = getObject(arg0).next();
1613
- return addHeapObject(ret);
1614
- }, arguments);
1615
- };
1616
- imports.wbg.__wbg_now_0dc4920a47cf7280 = function (arg0) {
1617
- const ret = getObject(arg0).now();
1618
- return ret;
1619
- };
1620
- imports.wbg.__wbg_now_69d776cd24f5215b = function () {
1621
- const ret = Date.now();
1622
- return ret;
1623
- };
1624
- imports.wbg.__wbg_observe_f1be8f54c7884c74 = function (arg0, arg1, arg2) {
1625
- const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1626
- return addHeapObject(ret);
1627
- };
1628
- imports.wbg.__wbg_of_7779827fa663eec8 = function (arg0, arg1, arg2) {
1629
- const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
1630
- return addHeapObject(ret);
1631
- };
1632
- imports.wbg.__wbg_performance_6adc3b899e448a23 = function (arg0) {
1633
- const ret = getObject(arg0).performance;
1634
- return addHeapObject(ret);
1635
- };
1636
- imports.wbg.__wbg_postMessage_07504dbe15265d5c = function () {
1637
- return handleError(function (arg0, arg1) {
1638
- getObject(arg0).postMessage(getObject(arg1));
1639
- }, arguments);
1640
- };
1641
- imports.wbg.__wbg_postMessage_7243f814e0cfb266 = function () {
1642
- return handleError(function (arg0, arg1) {
1643
- getObject(arg0).postMessage(getObject(arg1));
1644
- }, arguments);
1645
- };
1646
- imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function (arg0, arg1, arg2) {
1647
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1648
- };
1649
- imports.wbg.__wbg_push_7d9be8f38fc13975 = function (arg0, arg1) {
1650
- const ret = getObject(arg0).push(getObject(arg1));
1651
- return ret;
1652
- };
1653
- imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function (arg0) {
1654
- const ret = getObject(arg0).queueMicrotask;
1655
- return addHeapObject(ret);
1656
- };
1657
- imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function (arg0) {
1658
- queueMicrotask(getObject(arg0));
1659
- };
1660
- imports.wbg.__wbg_random_cc1f9237d866d212 = function () {
1661
- const ret = Math.random();
1662
- return ret;
1663
- };
1664
- imports.wbg.__wbg_relativePathComponents_cdef565cac5db69f = function (arg0) {
1665
- const ret = getObject(arg0).relativePathComponents;
1666
- return addHeapObject(ret);
1667
- };
1668
- imports.wbg.__wbg_removeEntry_e055e728cc398139 = function (arg0, arg1, arg2, arg3) {
1669
- const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
1670
- return addHeapObject(ret);
1671
- };
1672
- imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function (arg0) {
1673
- const ret = Promise.resolve(getObject(arg0));
1674
- return addHeapObject(ret);
1675
- };
1676
- imports.wbg.__wbg_root_722ea46a4dfaf891 = function (arg0) {
1677
- const ret = getObject(arg0).root;
1678
- return addHeapObject(ret);
1679
- };
1680
- imports.wbg.__wbg_setTimeout_63008613644b07af = function () {
1681
- return handleError(function (arg0, arg1, arg2) {
1682
- const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1683
- return addHeapObject(ret);
1684
- }, arguments);
1685
- };
1686
- imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function (arg0, arg1) {
1687
- const ret = setTimeout(getObject(arg0), arg1);
1688
- return addHeapObject(ret);
1689
- };
1690
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
1691
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1692
- };
1693
- imports.wbg.__wbg_set_7df433eea03a5c14 = function (arg0, arg1, arg2) {
1694
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1695
- };
1696
- imports.wbg.__wbg_set_body_8e743242d6076a4f = function (arg0, arg1) {
1697
- getObject(arg0).body = getObject(arg1);
1698
- };
1699
- imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function (arg0, arg1) {
1700
- getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1701
- };
1702
- imports.wbg.__wbg_set_create_a7fa115dfd714480 = function (arg0, arg1) {
1703
- getObject(arg0).create = arg1 !== 0;
1704
- };
1705
- imports.wbg.__wbg_set_create_c87a4965b38c1564 = function (arg0, arg1) {
1706
- getObject(arg0).create = arg1 !== 0;
1707
- };
1708
- imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function (arg0, arg1) {
1709
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1710
- };
1711
- imports.wbg.__wbg_set_efaaf145b9377369 = function (arg0, arg1, arg2) {
1712
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1713
- return addHeapObject(ret);
1714
- };
1715
- imports.wbg.__wbg_set_headers_5671cf088e114d2b = function (arg0, arg1) {
1716
- getObject(arg0).headers = getObject(arg1);
1717
- };
1718
- imports.wbg.__wbg_set_method_76c69e41b3570627 = function (arg0, arg1, arg2) {
1719
- getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1720
- };
1721
- imports.wbg.__wbg_set_mode_611016a6818fc690 = function (arg0, arg1) {
1722
- getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1723
- };
1724
- imports.wbg.__wbg_set_name_5399dd71553bb72d = function (arg0, arg1, arg2) {
1725
- getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1726
- };
1727
- imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function (arg0, arg1) {
1728
- getObject(arg0).onmessage = getObject(arg1);
1729
- };
1730
- imports.wbg.__wbg_set_recursive_7437584ba1ac1fb1 = function (arg0, arg1) {
1731
- getObject(arg0).recursive = arg1 !== 0;
1732
- };
1733
- imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
1734
- getObject(arg0).recursive = arg1 !== 0;
1735
- };
1736
- imports.wbg.__wbg_set_signal_e89be862d0091009 = function (arg0, arg1) {
1737
- getObject(arg0).signal = getObject(arg1);
1738
- };
1739
- imports.wbg.__wbg_set_type_c2eb2929316959f4 = function (arg0, arg1) {
1740
- getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1741
- };
1742
- imports.wbg.__wbg_signal_3c14fbdc89694b39 = function (arg0) {
1743
- const ret = getObject(arg0).signal;
1744
- return addHeapObject(ret);
1745
- };
1746
- imports.wbg.__wbg_size_82fbdb656de23326 = function (arg0) {
1747
- const ret = getObject(arg0).size;
1748
- return ret;
1749
- };
1750
- imports.wbg.__wbg_slice_f3670679f8730340 = function () {
1751
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1752
- const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1753
- return addHeapObject(ret);
1754
- }, arguments);
1755
- };
1756
- imports.wbg.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
1757
- const ret = getObject(arg1).stack;
1758
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1759
- const len1 = WASM_VECTOR_LEN;
1760
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1761
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1762
- };
1763
- imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function () {
1764
- const ret = typeof global === 'undefined' ? null : global;
1765
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1766
- };
1767
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function () {
1768
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1769
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1770
- };
1771
- imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function () {
1772
- const ret = typeof self === 'undefined' ? null : self;
1773
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1774
- };
1775
- imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function () {
1776
- const ret = typeof window === 'undefined' ? null : window;
1777
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1778
- };
1779
- imports.wbg.__wbg_status_9bfc680efca4bdfd = function (arg0) {
1780
- const ret = getObject(arg0).status;
1781
- return ret;
1782
- };
1783
- imports.wbg.__wbg_storage_7db24ea4f9f4aa79 = function (arg0) {
1784
- const ret = getObject(arg0).storage;
1785
- return addHeapObject(ret);
1786
- };
1787
- imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function () {
1788
- return handleError(function (arg0) {
1789
- const ret = JSON.stringify(getObject(arg0));
1790
- return addHeapObject(ret);
1791
- }, arguments);
1792
- };
1793
- imports.wbg.__wbg_subarray_845f2f5bce7d061a = function (arg0, arg1, arg2) {
1794
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1795
- return addHeapObject(ret);
1796
- };
1797
- imports.wbg.__wbg_then_429f7caf1026411d = function (arg0, arg1, arg2) {
1798
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1799
- return addHeapObject(ret);
1800
- };
1801
- imports.wbg.__wbg_then_4f95312d68691235 = function (arg0, arg1) {
1802
- const ret = getObject(arg0).then(getObject(arg1));
1803
- return addHeapObject(ret);
1804
- };
1805
- imports.wbg.__wbg_toString_f07112df359c997f = function (arg0) {
1806
- const ret = getObject(arg0).toString();
1807
- return addHeapObject(ret);
1808
- };
1809
- imports.wbg.__wbg_truncate_9e72c83b9fc1d156 = function () {
1810
- return handleError(function (arg0, arg1) {
1811
- getObject(arg0).truncate(arg1 >>> 0);
1812
- }, arguments);
1813
- };
1814
- imports.wbg.__wbg_type_47e8c2ef7c7eb249 = function (arg0) {
1815
- const ret = getObject(arg0).type;
1816
- return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1817
- };
1818
- imports.wbg.__wbg_url_b6d11838a4f95198 = function (arg0, arg1) {
1819
- const ret = getObject(arg1).url;
1820
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1821
- const len1 = WASM_VECTOR_LEN;
1822
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1823
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1824
- };
1825
- imports.wbg.__wbg_value_4cd497eeadba94bd = function (arg0) {
1826
- const ret = getObject(arg0).value;
1827
- return addHeapObject(ret);
1828
- };
1829
- imports.wbg.__wbg_value_57b7b035e117f7ee = function (arg0) {
1830
- const ret = getObject(arg0).value;
1831
- return addHeapObject(ret);
1832
- };
1833
- imports.wbg.__wbg_waitAsync_8afec80ffd213eca = function (arg0, arg1, arg2) {
1834
- const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1835
- return addHeapObject(ret);
1836
- };
1837
- imports.wbg.__wbg_waitAsync_c186cb97ffacd552 = function () {
1838
- const ret = Atomics.waitAsync;
1839
- return addHeapObject(ret);
1840
- };
1841
- imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function (arg0, arg1, arg2, arg3) {
1842
- console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1843
- };
1844
- imports.wbg.__wbg_warn_6e567d0d926ff881 = function (arg0) {
1845
- console.warn(getObject(arg0));
1846
- };
1847
- imports.wbg.__wbg_wasmtaskmessage_new = function (arg0) {
1848
- const ret = WasmTaskMessage.__wrap(arg0);
1849
- return addHeapObject(ret);
1850
- };
1851
- imports.wbg.__wbg_webworkercreation_new = function (arg0) {
1852
- const ret = WebWorkerCreation.__wrap(arg0);
1853
- return addHeapObject(ret);
1854
- };
1855
- imports.wbg.__wbg_webworkertermination_new = function (arg0) {
1856
- const ret = WebWorkerTermination.__wrap(arg0);
1857
- return addHeapObject(ret);
1858
- };
1859
- imports.wbg.__wbindgen_cast_07ca1b08f0f22a74 = function (arg0, arg1) {
1860
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7375, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1861
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83305);
1862
- return addHeapObject(ret);
1863
- };
1864
- imports.wbg.__wbindgen_cast_16c7055768e85421 = function (arg0, arg1) {
1865
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1858, function: Function { arguments: [], shim_idx: 1859, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1866
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22657, __wasm_bindgen_func_elem_22659);
1867
- return addHeapObject(ret);
1868
- };
1869
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1870
- // Cast intrinsic for `Ref(String) -> Externref`.
1871
- const ret = getStringFromWasm0(arg0, arg1);
1872
- return addHeapObject(ret);
1873
- };
1874
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1875
- // Cast intrinsic for `U64 -> Externref`.
1876
- const ret = BigInt.asUintN(64, arg0);
1877
- return addHeapObject(ret);
1878
- };
1879
- imports.wbg.__wbindgen_cast_526f6cf5a04a75f0 = function (arg0, arg1) {
1880
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7398, function: Function { arguments: [], shim_idx: 1859, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1881
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83564, __wasm_bindgen_func_elem_22659);
1882
- return addHeapObject(ret);
1883
- };
1884
- imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
1885
- var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1886
- wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
1887
- // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1888
- const ret = v0;
1889
- return addHeapObject(ret);
1890
- };
1891
- imports.wbg.__wbindgen_cast_867fdad215adce91 = function (arg0, arg1) {
1892
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7395, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1893
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83556, __wasm_bindgen_func_elem_83557);
1894
- return addHeapObject(ret);
1895
- };
1896
- imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1897
- // Cast intrinsic for `I64 -> Externref`.
1898
- const ret = arg0;
1899
- return addHeapObject(ret);
1900
- };
1901
- imports.wbg.__wbindgen_cast_b333f8337f70b5bc = function (arg0, arg1) {
1902
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [Externref], shim_idx: 7391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1903
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83502);
1904
- return addHeapObject(ret);
1905
- };
1906
- imports.wbg.__wbindgen_cast_c9653213b8a5441e = function (arg0, arg1) {
1907
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7374, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1908
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83304, __wasm_bindgen_func_elem_83502);
1909
- return addHeapObject(ret);
1910
- };
1911
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1912
- // Cast intrinsic for `F64 -> Externref`.
1913
- const ret = arg0;
1914
- return addHeapObject(ret);
1915
- };
1916
- imports.wbg.__wbindgen_link_203404ece0e9bab9 = function (arg0) {
1917
- const val = `onmessage = function (ev) {
1918
- let [ia, index, value] = ev.data;
1919
- ia = new Int32Array(ia.buffer);
1920
- let result = Atomics.wait(ia, index, value);
1921
- postMessage(result);
1922
- };
1923
- `;
1924
- const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1925
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1926
- const len1 = WASM_VECTOR_LEN;
1927
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1928
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1929
- };
1930
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
1931
- const ret = getObject(arg0);
1932
- return addHeapObject(ret);
1933
- };
1934
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
1935
- takeObject(arg0);
1936
- };
1937
- imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 1025, maximum: 65536, shared: true });
1938
- return imports;
1939
- }
1940
- function __wbg_finalize_init(instance, module, thread_stack_size) {
1941
- wasm = instance.exports;
1942
- __wbg_init.__wbindgen_wasm_module = module;
1943
- cachedDataViewMemory0 = null;
1944
- cachedUint8ArrayMemory0 = null;
1945
- if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1946
- throw 'invalid stack size';
1991
+ return false;
1947
1992
  }
1948
- wasm.__wbindgen_start(thread_stack_size);
1949
- return wasm;
1950
1993
  }
1951
1994
  function initSync(module, memory) {
1952
1995
  if (wasm !== undefined)
1953
1996
  return wasm;
1954
1997
  let thread_stack_size;
1955
- if (typeof module !== 'undefined') {
1998
+ if (module !== undefined) {
1956
1999
  if (Object.getPrototypeOf(module) === Object.prototype) {
1957
2000
  ({ module, memory, thread_stack_size } = module);
1958
2001
  }
@@ -1971,7 +2014,7 @@ async function __wbg_init(module_or_path, memory) {
1971
2014
  if (wasm !== undefined)
1972
2015
  return wasm;
1973
2016
  let thread_stack_size;
1974
- if (typeof module_or_path !== 'undefined') {
2017
+ if (module_or_path !== undefined) {
1975
2018
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1976
2019
  ({ module_or_path, memory, thread_stack_size } = module_or_path);
1977
2020
  }
@@ -1979,7 +2022,7 @@ async function __wbg_init(module_or_path, memory) {
1979
2022
  console.warn('using deprecated parameters for the initialization function; pass a single object instead');
1980
2023
  }
1981
2024
  }
1982
- if (typeof module_or_path === 'undefined') {
2025
+ if (module_or_path === undefined) {
1983
2026
  module_or_path = new URL('index_bg.wasm', import.meta.url);
1984
2027
  }
1985
2028
  const imports = __wbg_get_imports(memory);
@@ -1989,5 +2032,4 @@ async function __wbg_init(module_or_path, memory) {
1989
2032
  const { instance, module } = await __wbg_load(await module_or_path, imports);
1990
2033
  return __wbg_finalize_init(instance, module, thread_stack_size);
1991
2034
  }
1992
- export { initSync };
1993
- export default __wbg_init;
2035
+ export { initSync, __wbg_init as default };