@utoo/web 0.0.1-alpha.9 → 1.0.0

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,8 +1,4 @@
1
1
  let wasm;
2
- const heap = new Array(128).fill(undefined);
3
- heap.push(undefined, null, true, false);
4
- function getObject(idx) { return heap[idx]; }
5
- let WASM_VECTOR_LEN = 0;
6
2
  let cachedUint8ArrayMemory0 = null;
7
3
  function getUint8ArrayMemory0() {
8
4
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
@@ -10,8 +6,38 @@ function getUint8ArrayMemory0() {
10
6
  }
11
7
  return cachedUint8ArrayMemory0;
12
8
  }
13
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available'); } });
14
- const encodeString = function (arg, view) {
9
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
+ cachedTextDecoder.decode();
11
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
12
+ let numBytesDecoded = 0;
13
+ function decodeText(ptr, len) {
14
+ numBytesDecoded += len;
15
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
16
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
+ cachedTextDecoder.decode();
18
+ numBytesDecoded = len;
19
+ }
20
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
21
+ }
22
+ function getStringFromWasm0(ptr, len) {
23
+ ptr = ptr >>> 0;
24
+ return decodeText(ptr, len);
25
+ }
26
+ let heap = new Array(128).fill(undefined);
27
+ heap.push(undefined, null, true, false);
28
+ let heap_next = heap.length;
29
+ function addHeapObject(obj) {
30
+ if (heap_next === heap.length)
31
+ heap.push(heap.length + 1);
32
+ const idx = heap_next;
33
+ heap_next = heap[idx];
34
+ heap[idx] = obj;
35
+ return idx;
36
+ }
37
+ function getObject(idx) { return heap[idx]; }
38
+ let WASM_VECTOR_LEN = 0;
39
+ const cachedTextEncoder = new TextEncoder();
40
+ cachedTextEncoder.encodeInto = function (arg, view) {
15
41
  const buf = cachedTextEncoder.encode(arg);
16
42
  view.set(buf);
17
43
  return {
@@ -43,7 +69,7 @@ function passStringToWasm0(arg, malloc, realloc) {
43
69
  }
44
70
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
45
71
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
46
- const ret = encodeString(arg, view);
72
+ const ret = cachedTextEncoder.encodeInto(arg, view);
47
73
  offset += ret.written;
48
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
49
75
  }
@@ -57,24 +83,6 @@ function getDataViewMemory0() {
57
83
  }
58
84
  return cachedDataViewMemory0;
59
85
  }
60
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
61
- if (typeof TextDecoder !== 'undefined') {
62
- cachedTextDecoder.decode();
63
- }
64
- ;
65
- function getStringFromWasm0(ptr, len) {
66
- ptr = ptr >>> 0;
67
- return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
68
- }
69
- let heap_next = heap.length;
70
- function addHeapObject(obj) {
71
- if (heap_next === heap.length)
72
- heap.push(heap.length + 1);
73
- const idx = heap_next;
74
- heap_next = heap[idx];
75
- heap[idx] = obj;
76
- return idx;
77
- }
78
86
  function handleError(f, args) {
79
87
  try {
80
88
  return f.apply(this, args);
@@ -101,37 +109,6 @@ function getArrayU8FromWasm0(ptr, len) {
101
109
  function isLikeNone(x) {
102
110
  return x === undefined || x === null;
103
111
  }
104
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
105
- ? { register: () => { }, unregister: () => { } }
106
- : new FinalizationRegistry(state => {
107
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
108
- });
109
- function makeMutClosure(arg0, arg1, dtor, f) {
110
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
111
- const real = (...args) => {
112
- // First up with a closure we increment the internal reference
113
- // count. This ensures that the Rust closure environment won't
114
- // be deallocated while we're invoking it.
115
- state.cnt++;
116
- const a = state.a;
117
- state.a = 0;
118
- try {
119
- return f(a, state.b, ...args);
120
- }
121
- finally {
122
- if (--state.cnt === 0) {
123
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
124
- CLOSURE_DTORS.unregister(state);
125
- }
126
- else {
127
- state.a = a;
128
- }
129
- }
130
- };
131
- real.original = state;
132
- CLOSURE_DTORS.register(real, state, state);
133
- return real;
134
- }
135
112
  function debugString(val) {
136
113
  // primitive types
137
114
  const type = typeof val;
@@ -200,15 +177,77 @@ function debugString(val) {
200
177
  // TODO we could test for more things here, like `Set`s and `Map`s.
201
178
  return className;
202
179
  }
180
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
181
+ ? { register: () => { }, unregister: () => { } }
182
+ : new FinalizationRegistry(state => {
183
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
184
+ });
185
+ function makeMutClosure(arg0, arg1, dtor, f) {
186
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
187
+ const real = (...args) => {
188
+ // First up with a closure we increment the internal reference
189
+ // count. This ensures that the Rust closure environment won't
190
+ // be deallocated while we're invoking it.
191
+ state.cnt++;
192
+ const a = state.a;
193
+ state.a = 0;
194
+ try {
195
+ return f(a, state.b, ...args);
196
+ }
197
+ finally {
198
+ if (--state.cnt === 0) {
199
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
200
+ CLOSURE_DTORS.unregister(state);
201
+ }
202
+ else {
203
+ state.a = a;
204
+ }
205
+ }
206
+ };
207
+ real.original = state;
208
+ CLOSURE_DTORS.register(real, state, state);
209
+ return real;
210
+ }
211
+ function makeClosure(arg0, arg1, dtor, f) {
212
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
213
+ const real = (...args) => {
214
+ // First up with a closure we increment the internal reference
215
+ // count. This ensures that the Rust closure environment won't
216
+ // be deallocated while we're invoking it.
217
+ state.cnt++;
218
+ try {
219
+ return f(state.a, state.b, ...args);
220
+ }
221
+ finally {
222
+ if (--state.cnt === 0) {
223
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
224
+ state.a = 0;
225
+ CLOSURE_DTORS.unregister(state);
226
+ }
227
+ }
228
+ };
229
+ real.original = state;
230
+ CLOSURE_DTORS.register(real, state, state);
231
+ return real;
232
+ }
233
+ function getArrayJsValueFromWasm0(ptr, len) {
234
+ ptr = ptr >>> 0;
235
+ const mem = getDataViewMemory0();
236
+ const result = [];
237
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
238
+ result.push(takeObject(mem.getUint32(i, true)));
239
+ }
240
+ return result;
241
+ }
242
+ export function init_pack() {
243
+ wasm.init_pack();
244
+ }
203
245
  function passArray8ToWasm0(arg, malloc) {
204
246
  const ptr = malloc(arg.length * 1, 1) >>> 0;
205
247
  getUint8ArrayMemory0().set(arg, ptr / 1);
206
248
  WASM_VECTOR_LEN = arg.length;
207
249
  return ptr;
208
250
  }
209
- export function init_pack() {
210
- wasm.init_pack();
211
- }
212
251
  /**
213
252
  * Entry point for web workers
214
253
  * @param {number} ptr
@@ -216,15 +255,6 @@ export function init_pack() {
216
255
  export function wasm_thread_entry_point(ptr) {
217
256
  wasm.wasm_thread_entry_point(ptr);
218
257
  }
219
- function __wbg_adapter_46(arg0, arg1) {
220
- wasm.__wbindgen_export_6(arg0, arg1);
221
- }
222
- function __wbg_adapter_49(arg0, arg1, arg2) {
223
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
224
- }
225
- function __wbg_adapter_52(arg0, arg1, arg2) {
226
- wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
227
- }
228
258
  let stack_pointer = 128;
229
259
  function addBorrowedObject(obj) {
230
260
  if (stack_pointer == 1)
@@ -232,22 +262,30 @@ function addBorrowedObject(obj) {
232
262
  heap[--stack_pointer] = obj;
233
263
  return stack_pointer;
234
264
  }
235
- function __wbg_adapter_57(arg0, arg1, arg2) {
265
+ function __wbg_adapter_4(arg0, arg1, arg2) {
236
266
  try {
237
- wasm.__wbindgen_export_9(arg0, arg1, addBorrowedObject(arg2));
267
+ wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
238
268
  }
239
269
  finally {
240
270
  heap[stack_pointer++] = undefined;
241
271
  }
242
272
  }
243
- function __wbg_adapter_60(arg0, arg1) {
244
- wasm.__wbindgen_export_10(arg0, arg1);
273
+ function __wbg_adapter_17(arg0, arg1, arg2) {
274
+ wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
275
+ }
276
+ function __wbg_adapter_22(arg0, arg1, arg2) {
277
+ wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
278
+ }
279
+ function __wbg_adapter_25(arg0, arg1) {
280
+ wasm.__wbindgen_export_9(arg0, arg1);
245
281
  }
246
- function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
247
- wasm.__wbindgen_export_11(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
282
+ function __wbg_adapter_102(arg0, arg1, arg2, arg3) {
283
+ wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
248
284
  }
249
285
  const __wbindgen_enum_DirEntryType = ["file", "directory"];
286
+ const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
250
287
  const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
288
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
251
289
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
252
290
  const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
253
291
  const __wbindgen_enum_WorkerType = ["classic", "module"];
@@ -273,6 +311,8 @@ export class CreateSyncAccessHandleOptions {
273
311
  wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
274
312
  }
275
313
  }
314
+ if (Symbol.dispose)
315
+ CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
276
316
  const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
277
317
  ? { register: () => { }, unregister: () => { } }
278
318
  : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
@@ -345,6 +385,38 @@ export class DirEntry {
345
385
  wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
346
386
  }
347
387
  }
388
+ if (Symbol.dispose)
389
+ DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
390
+ const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
391
+ ? { register: () => { }, unregister: () => { } }
392
+ : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
393
+ export class Metadata {
394
+ static __wrap(ptr) {
395
+ ptr = ptr >>> 0;
396
+ const obj = Object.create(Metadata.prototype);
397
+ obj.__wbg_ptr = ptr;
398
+ MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
399
+ return obj;
400
+ }
401
+ toJSON() {
402
+ return {};
403
+ }
404
+ toString() {
405
+ return JSON.stringify(this);
406
+ }
407
+ __destroy_into_raw() {
408
+ const ptr = this.__wbg_ptr;
409
+ this.__wbg_ptr = 0;
410
+ MetadataFinalization.unregister(this);
411
+ return ptr;
412
+ }
413
+ free() {
414
+ const ptr = this.__destroy_into_raw();
415
+ wasm.__wbg_metadata_free(ptr, 0);
416
+ }
417
+ }
418
+ if (Symbol.dispose)
419
+ Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
348
420
  const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
349
421
  ? { register: () => { }, unregister: () => { } }
350
422
  : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
@@ -360,15 +432,68 @@ export class Project {
360
432
  wasm.__wbg_project_free(ptr, 0);
361
433
  }
362
434
  /**
363
- * @param {string} cwd
435
+ * @param {string} path
436
+ * @returns {Promise<void>}
364
437
  */
365
- constructor(cwd) {
366
- const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
438
+ createDir(path) {
439
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
367
440
  const len0 = WASM_VECTOR_LEN;
368
- const ret = wasm.project_new(ptr0, len0);
369
- this.__wbg_ptr = ret >>> 0;
370
- ProjectFinalization.register(this, this.__wbg_ptr, this);
371
- return this;
441
+ const ret = wasm.project_createDir(this.__wbg_ptr, ptr0, len0);
442
+ return takeObject(ret);
443
+ }
444
+ /**
445
+ * @param {string} path
446
+ * @param {boolean} recursive
447
+ * @returns {Promise<void>}
448
+ */
449
+ removeDir(path, recursive) {
450
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ const ret = wasm.project_removeDir(this.__wbg_ptr, ptr0, len0, recursive);
453
+ return takeObject(ret);
454
+ }
455
+ /**
456
+ * @param {string} path
457
+ * @returns {Promise<void>}
458
+ */
459
+ removeFile(path) {
460
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
461
+ const len0 = WASM_VECTOR_LEN;
462
+ const ret = wasm.project_removeFile(this.__wbg_ptr, ptr0, len0);
463
+ return takeObject(ret);
464
+ }
465
+ /**
466
+ * @param {string} path
467
+ * @param {string} content
468
+ * @returns {Promise<void>}
469
+ */
470
+ writeString(path, content) {
471
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
472
+ const len0 = WASM_VECTOR_LEN;
473
+ const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
474
+ const len1 = WASM_VECTOR_LEN;
475
+ const ret = wasm.project_writeString(this.__wbg_ptr, ptr0, len0, ptr1, len1);
476
+ return takeObject(ret);
477
+ }
478
+ /**
479
+ * @param {string} path
480
+ * @returns {Promise<void>}
481
+ */
482
+ createDirAll(path) {
483
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
484
+ const len0 = WASM_VECTOR_LEN;
485
+ const ret = wasm.project_createDirAll(this.__wbg_ptr, ptr0, len0);
486
+ return takeObject(ret);
487
+ }
488
+ /**
489
+ * @param {string} path
490
+ * @returns {Promise<string>}
491
+ */
492
+ readToString(path) {
493
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
494
+ const len0 = WASM_VECTOR_LEN;
495
+ const ret = wasm.project_readToString(this.__wbg_ptr, ptr0, len0);
496
+ return takeObject(ret);
372
497
  }
373
498
  /**
374
499
  * @returns {string}
@@ -391,21 +516,40 @@ export class Project {
391
516
  }
392
517
  }
393
518
  /**
394
- * @param {string} package_lock
395
- * @returns {Promise<void>}
519
+ * @param {string} cwd
520
+ * @param {string} thread_url
396
521
  */
397
- install(package_lock) {
398
- const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
522
+ constructor(cwd, thread_url) {
523
+ const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
399
524
  const len0 = WASM_VECTOR_LEN;
400
- const ret = wasm.project_install(this.__wbg_ptr, ptr0, len0);
401
- return takeObject(ret);
525
+ const ptr1 = passStringToWasm0(thread_url, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
526
+ const len1 = WASM_VECTOR_LEN;
527
+ const ret = wasm.project_new(ptr0, len0, ptr1, len1);
528
+ this.__wbg_ptr = ret >>> 0;
529
+ ProjectFinalization.register(this, this.__wbg_ptr, this);
530
+ return this;
402
531
  }
403
532
  /**
404
- * @returns {Promise<any>}
533
+ * Create a tar.gz archive and return bytes (no file I/O)
534
+ * This is useful for main thread execution without OPFS access
535
+ * @param {any} files
536
+ * @returns {Uint8Array}
405
537
  */
406
- build() {
407
- const ret = wasm.project_build(this.__wbg_ptr);
408
- return takeObject(ret);
538
+ gzip(files) {
539
+ try {
540
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
541
+ wasm.project_gzip(retptr, this.__wbg_ptr, addHeapObject(files));
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 takeObject(r0);
549
+ }
550
+ finally {
551
+ wasm.__wbindgen_add_to_stack_pointer(16);
552
+ }
409
553
  }
410
554
  /**
411
555
  * @param {string} path
@@ -418,13 +562,10 @@ export class Project {
418
562
  return takeObject(ret);
419
563
  }
420
564
  /**
421
- * @param {string} path
422
- * @returns {Promise<string>}
565
+ * @returns {Promise<any>}
423
566
  */
424
- readToString(path) {
425
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
426
- const len0 = WASM_VECTOR_LEN;
427
- const ret = wasm.project_readToString(this.__wbg_ptr, ptr0, len0);
567
+ build() {
568
+ const ret = wasm.project_build(this.__wbg_ptr);
428
569
  return takeObject(ret);
429
570
  }
430
571
  /**
@@ -441,46 +582,58 @@ export class Project {
441
582
  return takeObject(ret);
442
583
  }
443
584
  /**
444
- * @param {string} path
445
- * @param {string} content
585
+ * @param {string} package_lock
586
+ * @param {number | null} [max_concurrent_downloads]
446
587
  * @returns {Promise<void>}
447
588
  */
448
- writeString(path, content) {
449
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
589
+ install(package_lock, max_concurrent_downloads) {
590
+ const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
450
591
  const len0 = WASM_VECTOR_LEN;
451
- const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
452
- const len1 = WASM_VECTOR_LEN;
453
- const ret = wasm.project_writeString(this.__wbg_ptr, ptr0, len0, ptr1, len1);
592
+ const ret = wasm.project_install(this.__wbg_ptr, ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
454
593
  return takeObject(ret);
455
594
  }
456
595
  /**
457
- * @param {string} path
458
- * @returns {Promise<DirEntry[]>}
596
+ * Calculate MD5 hash of byte content
597
+ * @param {Uint8Array} content
598
+ * @returns {string}
459
599
  */
460
- readDir(path) {
461
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
462
- const len0 = WASM_VECTOR_LEN;
463
- const ret = wasm.project_readDir(this.__wbg_ptr, ptr0, len0);
464
- return takeObject(ret);
600
+ sigMd5(content) {
601
+ let deferred2_0;
602
+ let deferred2_1;
603
+ try {
604
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
605
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_export_1);
606
+ const len0 = WASM_VECTOR_LEN;
607
+ wasm.project_sigMd5(retptr, this.__wbg_ptr, ptr0, len0);
608
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
609
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
610
+ deferred2_0 = r0;
611
+ deferred2_1 = r1;
612
+ return getStringFromWasm0(r0, r1);
613
+ }
614
+ finally {
615
+ wasm.__wbindgen_add_to_stack_pointer(16);
616
+ wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
617
+ }
465
618
  }
466
619
  /**
467
620
  * @param {string} path
468
- * @returns {Promise<void>}
621
+ * @returns {Promise<Metadata>}
469
622
  */
470
- createDir(path) {
623
+ metadata(path) {
471
624
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
472
625
  const len0 = WASM_VECTOR_LEN;
473
- const ret = wasm.project_createDir(this.__wbg_ptr, ptr0, len0);
626
+ const ret = wasm.project_metadata(this.__wbg_ptr, ptr0, len0);
474
627
  return takeObject(ret);
475
628
  }
476
629
  /**
477
630
  * @param {string} path
478
- * @returns {Promise<void>}
631
+ * @returns {Promise<DirEntry[]>}
479
632
  */
480
- createDirAll(path) {
633
+ readDir(path) {
481
634
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
482
635
  const len0 = WASM_VECTOR_LEN;
483
- const ret = wasm.project_createDirAll(this.__wbg_ptr, ptr0, len0);
636
+ const ret = wasm.project_readDir(this.__wbg_ptr, ptr0, len0);
484
637
  return takeObject(ret);
485
638
  }
486
639
  /**
@@ -497,6 +650,9 @@ export class Project {
497
650
  return takeObject(ret);
498
651
  }
499
652
  }
653
+ if (Symbol.dispose)
654
+ Project.prototype[Symbol.dispose] = Project.prototype.free;
655
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
500
656
  async function __wbg_load(module, imports) {
501
657
  if (typeof Response === 'function' && module instanceof Response) {
502
658
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -504,7 +660,8 @@ async function __wbg_load(module, imports) {
504
660
  return await WebAssembly.instantiateStreaming(module, imports);
505
661
  }
506
662
  catch (e) {
507
- if (module.headers.get('Content-Type') != 'application/wasm') {
663
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
664
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
508
665
  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);
509
666
  }
510
667
  else {
@@ -528,6 +685,14 @@ async function __wbg_load(module, imports) {
528
685
  function __wbg_get_imports() {
529
686
  const imports = {};
530
687
  imports.wbg = {};
688
+ imports.wbg.__wbg_Error_e17e777aac105295 = function (arg0, arg1) {
689
+ const ret = Error(getStringFromWasm0(arg0, arg1));
690
+ return addHeapObject(ret);
691
+ };
692
+ imports.wbg.__wbg_Number_998bea33bd87c3e0 = function (arg0) {
693
+ const ret = Number(getObject(arg0));
694
+ return ret;
695
+ };
531
696
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
532
697
  const ret = String(getObject(arg1));
533
698
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -535,51 +700,55 @@ function __wbg_get_imports() {
535
700
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
536
701
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
537
702
  };
538
- imports.wbg.__wbg_abort_410ec47a64ac6117 = function (arg0, arg1) {
539
- getObject(arg0).abort(getObject(arg1));
540
- };
541
- imports.wbg.__wbg_abort_775ef1d17fc65868 = function (arg0) {
703
+ imports.wbg.__wbg_abort_67e1b49bf6614565 = function (arg0) {
542
704
  getObject(arg0).abort();
543
705
  };
544
- imports.wbg.__wbg_append_8c7dd8d641a5f01b = function () {
706
+ imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function (arg0, arg1) {
707
+ getObject(arg0).abort(getObject(arg1));
708
+ };
709
+ imports.wbg.__wbg_append_72a3c0addd2bce38 = function () {
545
710
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
546
711
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
547
712
  }, arguments);
548
713
  };
549
- imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function () {
714
+ imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function () {
550
715
  return handleError(function (arg0) {
551
716
  const ret = getObject(arg0).arrayBuffer();
552
717
  return addHeapObject(ret);
553
718
  }, arguments);
554
719
  };
555
- imports.wbg.__wbg_async_9ff6d9e405f13772 = function (arg0) {
720
+ imports.wbg.__wbg_async_d65ec5b7c88f9d4a = function (arg0) {
556
721
  const ret = getObject(arg0).async;
557
722
  return ret;
558
723
  };
559
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function (arg0) {
724
+ imports.wbg.__wbg_buffer_40c0928cc927f62a = function (arg0) {
560
725
  const ret = getObject(arg0).buffer;
561
726
  return addHeapObject(ret);
562
727
  };
563
- imports.wbg.__wbg_call_672a4d21634d4a24 = function () {
728
+ imports.wbg.__wbg_call_13410aac570ffff7 = function () {
564
729
  return handleError(function (arg0, arg1) {
565
730
  const ret = getObject(arg0).call(getObject(arg1));
566
731
  return addHeapObject(ret);
567
732
  }, arguments);
568
733
  };
569
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function () {
734
+ imports.wbg.__wbg_call_a5400b25a865cfd8 = function () {
570
735
  return handleError(function (arg0, arg1, arg2) {
571
736
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
572
737
  return addHeapObject(ret);
573
738
  }, arguments);
574
739
  };
575
- imports.wbg.__wbg_clearTimeout_0b53d391c1b94dda = function (arg0) {
740
+ imports.wbg.__wbg_changedHandle_51cdba7dd85fac27 = function (arg0) {
741
+ const ret = getObject(arg0).changedHandle;
742
+ return addHeapObject(ret);
743
+ };
744
+ imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function (arg0) {
576
745
  const ret = clearTimeout(takeObject(arg0));
577
746
  return addHeapObject(ret);
578
747
  };
579
- imports.wbg.__wbg_close_a17af48266bd9942 = function (arg0) {
748
+ imports.wbg.__wbg_close_9870d6f25f3c1f31 = function (arg0) {
580
749
  getObject(arg0).close();
581
750
  };
582
- imports.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764 = function () {
751
+ imports.wbg.__wbg_createObjectURL_c80225986d2b928b = function () {
583
752
  return handleError(function (arg0, arg1) {
584
753
  const ret = URL.createObjectURL(getObject(arg1));
585
754
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -592,30 +761,30 @@ function __wbg_get_imports() {
592
761
  const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
593
762
  return addHeapObject(ret);
594
763
  };
595
- imports.wbg.__wbg_data_432d9c3df2630942 = function (arg0) {
764
+ imports.wbg.__wbg_data_9ab529722bcc4e6c = function (arg0) {
596
765
  const ret = getObject(arg0).data;
597
766
  return addHeapObject(ret);
598
767
  };
599
- imports.wbg.__wbg_debug_3cb59063b29f58c1 = function (arg0) {
600
- console.debug(getObject(arg0));
601
- };
602
- imports.wbg.__wbg_debug_e17b51583ca6a632 = function (arg0, arg1, arg2, arg3) {
768
+ imports.wbg.__wbg_debug_7f3000e7358ea482 = function (arg0, arg1, arg2, arg3) {
603
769
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
604
770
  };
771
+ imports.wbg.__wbg_debug_c906769d2f88c17b = function (arg0) {
772
+ console.debug(getObject(arg0));
773
+ };
605
774
  imports.wbg.__wbg_direntry_new = function (arg0) {
606
775
  const ret = DirEntry.__wrap(arg0);
607
776
  return addHeapObject(ret);
608
777
  };
609
- imports.wbg.__wbg_done_769e5ede4b31c67b = function (arg0) {
778
+ imports.wbg.__wbg_done_75ed0ee6dd243d9d = function (arg0) {
610
779
  const ret = getObject(arg0).done;
611
780
  return ret;
612
781
  };
613
- imports.wbg.__wbg_entries_19efe296f7d36df9 = function (arg0) {
782
+ imports.wbg.__wbg_entries_1a3c3b9544532397 = function (arg0) {
614
783
  const ret = getObject(arg0).entries();
615
784
  return addHeapObject(ret);
616
785
  };
617
- imports.wbg.__wbg_error_524f506f44df1645 = function (arg0) {
618
- console.error(getObject(arg0));
786
+ imports.wbg.__wbg_error_0889f151acea569e = function (arg0, arg1, arg2, arg3) {
787
+ console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
619
788
  };
620
789
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
621
790
  let deferred0_0;
@@ -629,77 +798,97 @@ function __wbg_get_imports() {
629
798
  wasm.__wbindgen_export_4(deferred0_0, deferred0_1, 1);
630
799
  }
631
800
  };
632
- imports.wbg.__wbg_error_80de38b3f7cc3c3c = function (arg0, arg1, arg2, arg3) {
633
- console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
801
+ imports.wbg.__wbg_error_99981e16d476aa5c = function (arg0) {
802
+ console.error(getObject(arg0));
634
803
  };
635
- imports.wbg.__wbg_eval_e10dc02e9547f640 = function () {
804
+ imports.wbg.__wbg_eval_631dc78d65611b94 = function () {
636
805
  return handleError(function (arg0, arg1) {
637
806
  const ret = eval(getStringFromWasm0(arg0, arg1));
638
807
  return addHeapObject(ret);
639
808
  }, arguments);
640
809
  };
641
- imports.wbg.__wbg_fetch_11bff8299d0ecd2b = function (arg0) {
642
- const ret = fetch(getObject(arg0));
810
+ imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function (arg0, arg1) {
811
+ const ret = getObject(arg0).fetch(getObject(arg1));
643
812
  return addHeapObject(ret);
644
813
  };
645
- imports.wbg.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
646
- const ret = getObject(arg0).fetch(getObject(arg1));
814
+ imports.wbg.__wbg_fetch_f156d10be9a5c88a = function (arg0) {
815
+ const ret = fetch(getObject(arg0));
647
816
  return addHeapObject(ret);
648
817
  };
649
- imports.wbg.__wbg_from_2a5d3e218e67aa85 = function (arg0) {
818
+ imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function () {
819
+ return handleError(function (arg0) {
820
+ getObject(arg0).flush();
821
+ }, arguments);
822
+ };
823
+ imports.wbg.__wbg_from_88bc52ce20ba6318 = function (arg0) {
650
824
  const ret = Array.from(getObject(arg0));
651
825
  return addHeapObject(ret);
652
826
  };
653
- imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function (arg0, arg1, arg2, arg3) {
827
+ imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function (arg0, arg1, arg2, arg3) {
654
828
  const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
655
829
  return addHeapObject(ret);
656
830
  };
657
- imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function (arg0) {
831
+ imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function (arg0) {
658
832
  const ret = getObject(arg0).getDirectory();
659
833
  return addHeapObject(ret);
660
834
  };
661
- imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function (arg0, arg1, arg2, arg3) {
835
+ imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function (arg0, arg1, arg2, arg3) {
662
836
  const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
663
837
  return addHeapObject(ret);
664
838
  };
665
- imports.wbg.__wbg_getRandomValues_3a70830e53f8ccf5 = function () {
839
+ imports.wbg.__wbg_getRandomValues_80578b2ff2a093ba = function () {
666
840
  return handleError(function (arg0) {
667
841
  globalThis.crypto.getRandomValues(getObject(arg0));
668
842
  }, arguments);
669
843
  };
670
- imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function () {
844
+ imports.wbg.__wbg_getSize_56a06761973a6cd7 = function () {
671
845
  return handleError(function (arg0) {
672
846
  const ret = getObject(arg0).getSize();
673
847
  return ret;
674
848
  }, arguments);
675
849
  };
676
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function () {
850
+ imports.wbg.__wbg_get_0da715ceaecea5c8 = function (arg0, arg1) {
851
+ const ret = getObject(arg0)[arg1 >>> 0];
852
+ return addHeapObject(ret);
853
+ };
854
+ imports.wbg.__wbg_get_458e874b43b18b25 = function () {
677
855
  return handleError(function (arg0, arg1) {
678
856
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
679
857
  return addHeapObject(ret);
680
858
  }, arguments);
681
859
  };
682
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
683
- const ret = getObject(arg0)[arg1 >>> 0];
860
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
861
+ const ret = getObject(arg0)[getObject(arg1)];
684
862
  return addHeapObject(ret);
685
863
  };
686
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function () {
864
+ imports.wbg.__wbg_has_b89e451f638123e3 = function () {
687
865
  return handleError(function (arg0, arg1) {
688
866
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
689
867
  return ret;
690
868
  }, arguments);
691
869
  };
692
- imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function (arg0) {
870
+ imports.wbg.__wbg_headers_29fec3c72865cd75 = function (arg0) {
693
871
  const ret = getObject(arg0).headers;
694
872
  return addHeapObject(ret);
695
873
  };
696
- imports.wbg.__wbg_info_033d8b8a0838f1d3 = function (arg0, arg1, arg2, arg3) {
874
+ imports.wbg.__wbg_info_15c3631232fceddb = function (arg0, arg1, arg2, arg3) {
697
875
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
698
876
  };
699
- imports.wbg.__wbg_info_3daf2e093e091b66 = function (arg0) {
877
+ imports.wbg.__wbg_info_6cf68c1a86a92f6a = function (arg0) {
700
878
  console.info(getObject(arg0));
701
879
  };
702
- imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a688e81380e34e02 = function (arg0) {
880
+ imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function (arg0) {
881
+ let result;
882
+ try {
883
+ result = getObject(arg0) instanceof ArrayBuffer;
884
+ }
885
+ catch (_) {
886
+ result = false;
887
+ }
888
+ const ret = result;
889
+ return ret;
890
+ };
891
+ imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a054a9af652220ba = function (arg0) {
703
892
  let result;
704
893
  try {
705
894
  result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
@@ -710,7 +899,7 @@ function __wbg_get_imports() {
710
899
  const ret = result;
711
900
  return ret;
712
901
  };
713
- imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function (arg0) {
902
+ imports.wbg.__wbg_instanceof_DomException_bd63c2a0e0b53ed5 = function (arg0) {
714
903
  let result;
715
904
  try {
716
905
  result = getObject(arg0) instanceof DOMException;
@@ -721,7 +910,7 @@ function __wbg_get_imports() {
721
910
  const ret = result;
722
911
  return ret;
723
912
  };
724
- imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_0906fc139d75557b = function (arg0) {
913
+ imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_ef2de8bfd438118c = function (arg0) {
725
914
  let result;
726
915
  try {
727
916
  result = getObject(arg0) instanceof FileSystemDirectoryHandle;
@@ -732,7 +921,7 @@ function __wbg_get_imports() {
732
921
  const ret = result;
733
922
  return ret;
734
923
  };
735
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function (arg0) {
924
+ imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function (arg0) {
736
925
  let result;
737
926
  try {
738
927
  result = getObject(arg0) instanceof Response;
@@ -743,10 +932,10 @@ function __wbg_get_imports() {
743
932
  const ret = result;
744
933
  return ret;
745
934
  };
746
- imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function (arg0) {
935
+ imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function (arg0) {
747
936
  let result;
748
937
  try {
749
- result = getObject(arg0) instanceof WorkerGlobalScope;
938
+ result = getObject(arg0) instanceof Uint8Array;
750
939
  }
751
940
  catch (_) {
752
941
  result = false;
@@ -754,50 +943,72 @@ function __wbg_get_imports() {
754
943
  const ret = result;
755
944
  return ret;
756
945
  };
757
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function () {
946
+ imports.wbg.__wbg_isArray_030cce220591fb41 = function (arg0) {
947
+ const ret = Array.isArray(getObject(arg0));
948
+ return ret;
949
+ };
950
+ imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function (arg0) {
951
+ const ret = Number.isSafeInteger(getObject(arg0));
952
+ return ret;
953
+ };
954
+ imports.wbg.__wbg_iterator_f370b34483c71a1c = function () {
758
955
  const ret = Symbol.iterator;
759
956
  return addHeapObject(ret);
760
957
  };
761
- imports.wbg.__wbg_kind_e326a1c6387aad5e = function (arg0) {
958
+ imports.wbg.__wbg_kind_56b64eb6cc62543d = function (arg0) {
762
959
  const ret = getObject(arg0).kind;
763
960
  return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
764
961
  };
765
- imports.wbg.__wbg_length_a446193dc22c12f8 = function (arg0) {
962
+ imports.wbg.__wbg_length_186546c51cd61acd = function (arg0) {
963
+ const ret = getObject(arg0).length;
964
+ return ret;
965
+ };
966
+ imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function (arg0) {
766
967
  const ret = getObject(arg0).length;
767
968
  return ret;
768
969
  };
769
- imports.wbg.__wbg_message_d1685a448ba00178 = function (arg0, arg1) {
970
+ imports.wbg.__wbg_message_702ebc62fa8b0c7c = function (arg0, arg1) {
770
971
  const ret = getObject(arg1).message;
771
972
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
772
973
  const len1 = WASM_VECTOR_LEN;
773
974
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
774
975
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
775
976
  };
776
- imports.wbg.__wbg_name_f2d27098bfd843e7 = function (arg0, arg1) {
977
+ imports.wbg.__wbg_metadata_new = function (arg0) {
978
+ const ret = Metadata.__wrap(arg0);
979
+ return addHeapObject(ret);
980
+ };
981
+ imports.wbg.__wbg_name_f75f535832c8ea6b = function (arg0, arg1) {
777
982
  const ret = getObject(arg1).name;
778
983
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
779
984
  const len1 = WASM_VECTOR_LEN;
780
985
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
781
986
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
782
987
  };
783
- imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function (arg0) {
988
+ imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function (arg0) {
784
989
  const ret = getObject(arg0).navigator;
785
990
  return addHeapObject(ret);
786
991
  };
787
- imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function () {
788
- return handleError(function () {
789
- const ret = new Headers();
790
- return addHeapObject(ret);
791
- }, arguments);
992
+ imports.wbg.__wbg_new_19c25a3f2fa63a02 = function () {
993
+ const ret = new Object();
994
+ return addHeapObject(ret);
995
+ };
996
+ imports.wbg.__wbg_new_1f3a344cf3123716 = function () {
997
+ const ret = new Array();
998
+ return addHeapObject(ret);
999
+ };
1000
+ imports.wbg.__wbg_new_2368e31ffa149431 = function (arg0) {
1001
+ const ret = new Int32Array(getObject(arg0));
1002
+ return addHeapObject(ret);
792
1003
  };
793
- imports.wbg.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
1004
+ imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function (arg0, arg1) {
794
1005
  try {
795
1006
  var state0 = { a: arg0, b: arg1 };
796
1007
  var cb0 = (arg0, arg1) => {
797
1008
  const a = state0.a;
798
1009
  state0.a = 0;
799
1010
  try {
800
- return __wbg_adapter_109(a, state0.b, arg0, arg1);
1011
+ return __wbg_adapter_102(a, state0.b, arg0, arg1);
801
1012
  }
802
1013
  finally {
803
1014
  state0.a = a;
@@ -810,227 +1021,249 @@ function __wbg_get_imports() {
810
1021
  state0.a = state0.b = 0;
811
1022
  }
812
1023
  };
813
- imports.wbg.__wbg_new_405e22f390576ce2 = function () {
814
- const ret = new Object();
815
- return addHeapObject(ret);
816
- };
817
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function () {
1024
+ imports.wbg.__wbg_new_2ff1f68f3676ea53 = function () {
818
1025
  const ret = new Map();
819
1026
  return addHeapObject(ret);
820
1027
  };
821
- imports.wbg.__wbg_new_78feb108b6472713 = function () {
822
- const ret = new Array();
1028
+ imports.wbg.__wbg_new_638ebfaedbf32a5e = function (arg0) {
1029
+ const ret = new Uint8Array(getObject(arg0));
823
1030
  return addHeapObject(ret);
824
1031
  };
1032
+ imports.wbg.__wbg_new_66b9434b4e59b63e = function () {
1033
+ return handleError(function () {
1034
+ const ret = new AbortController();
1035
+ return addHeapObject(ret);
1036
+ }, arguments);
1037
+ };
825
1038
  imports.wbg.__wbg_new_8a6f238a6ece86ea = function () {
826
1039
  const ret = new Error();
827
1040
  return addHeapObject(ret);
828
1041
  };
829
- imports.wbg.__wbg_new_a12002a7f91c75be = function (arg0) {
830
- const ret = new Uint8Array(getObject(arg0));
1042
+ imports.wbg.__wbg_new_9b2344bc56f77a2b = function (arg0) {
1043
+ const ret = new FileSystemObserver(getObject(arg0));
831
1044
  return addHeapObject(ret);
832
1045
  };
833
- imports.wbg.__wbg_new_b1a33e5095abf678 = function () {
1046
+ imports.wbg.__wbg_new_9d476835fd376de6 = function () {
834
1047
  return handleError(function (arg0, arg1) {
835
1048
  const ret = new Worker(getStringFromWasm0(arg0, arg1));
836
1049
  return addHeapObject(ret);
837
1050
  }, arguments);
838
1051
  };
839
- imports.wbg.__wbg_new_e25e5aab09ff45db = function () {
1052
+ imports.wbg.__wbg_new_f6e53210afea8e45 = function () {
840
1053
  return handleError(function () {
841
- const ret = new AbortController();
1054
+ const ret = new Headers();
842
1055
  return addHeapObject(ret);
843
1056
  }, arguments);
844
1057
  };
845
- imports.wbg.__wbg_new_e9a4a67dbababe57 = function (arg0) {
846
- const ret = new Int32Array(getObject(arg0));
1058
+ imports.wbg.__wbg_newfromslice_074c56947bd43469 = function (arg0, arg1) {
1059
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
847
1060
  return addHeapObject(ret);
848
1061
  };
849
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function (arg0, arg1) {
1062
+ imports.wbg.__wbg_newnoargs_254190557c45b4ec = function (arg0, arg1) {
850
1063
  const ret = new Function(getStringFromWasm0(arg0, arg1));
851
1064
  return addHeapObject(ret);
852
1065
  };
853
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function (arg0, arg1, arg2) {
854
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
855
- return addHeapObject(ret);
856
- };
857
- imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function (arg0) {
1066
+ imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function (arg0) {
858
1067
  const ret = new Uint8Array(arg0 >>> 0);
859
1068
  return addHeapObject(ret);
860
1069
  };
861
- imports.wbg.__wbg_newwithoptions_0419cac3977d7f7f = function () {
1070
+ imports.wbg.__wbg_newwithoptions_4fd7ce7655102e6f = function () {
862
1071
  return handleError(function (arg0, arg1, arg2) {
863
1072
  const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
864
1073
  return addHeapObject(ret);
865
1074
  }, arguments);
866
1075
  };
867
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function () {
1076
+ imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function () {
868
1077
  return handleError(function (arg0, arg1, arg2) {
869
1078
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
870
1079
  return addHeapObject(ret);
871
1080
  }, arguments);
872
1081
  };
873
- imports.wbg.__wbg_newwithstrsequence_a242b062eda81d0b = function () {
1082
+ imports.wbg.__wbg_newwithstrsequence_a1a92f1d042bca10 = function () {
874
1083
  return handleError(function (arg0) {
875
1084
  const ret = new Blob(getObject(arg0));
876
1085
  return addHeapObject(ret);
877
1086
  }, arguments);
878
1087
  };
879
- imports.wbg.__wbg_newwithstrsequenceandoptions_aaff55b467c81b63 = function () {
1088
+ imports.wbg.__wbg_newwithstrsequenceandoptions_5b257525e688af7d = function () {
880
1089
  return handleError(function (arg0, arg1) {
881
1090
  const ret = new Blob(getObject(arg0), getObject(arg1));
882
1091
  return addHeapObject(ret);
883
1092
  }, arguments);
884
1093
  };
885
- imports.wbg.__wbg_next_25feadfc0913fea9 = function (arg0) {
886
- const ret = getObject(arg0).next;
887
- return addHeapObject(ret);
888
- };
889
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function () {
1094
+ imports.wbg.__wbg_next_1142e1658f75ec63 = function () {
890
1095
  return handleError(function (arg0) {
891
1096
  const ret = getObject(arg0).next();
892
1097
  return addHeapObject(ret);
893
1098
  }, arguments);
894
1099
  };
895
- imports.wbg.__wbg_next_c3ab0d59847b3b5c = function () {
1100
+ imports.wbg.__wbg_next_5b3530e612fde77d = function (arg0) {
1101
+ const ret = getObject(arg0).next;
1102
+ return addHeapObject(ret);
1103
+ };
1104
+ imports.wbg.__wbg_next_692e82279131b03c = function () {
896
1105
  return handleError(function (arg0) {
897
1106
  const ret = getObject(arg0).next();
898
1107
  return addHeapObject(ret);
899
1108
  }, arguments);
900
1109
  };
901
- imports.wbg.__wbg_now_e1163c67115ff874 = function (arg0) {
1110
+ imports.wbg.__wbg_now_0dc4920a47cf7280 = function (arg0) {
902
1111
  const ret = getObject(arg0).now();
903
1112
  return ret;
904
1113
  };
905
- imports.wbg.__wbg_of_4a05197bfc89556f = function (arg0, arg1, arg2) {
1114
+ imports.wbg.__wbg_now_1e80617bcee43265 = function () {
1115
+ const ret = Date.now();
1116
+ return ret;
1117
+ };
1118
+ imports.wbg.__wbg_observe_a98641e2bc5e6a17 = function (arg0, arg1, arg2) {
1119
+ const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1120
+ return addHeapObject(ret);
1121
+ };
1122
+ imports.wbg.__wbg_of_26ef42cc9a4270a1 = function (arg0, arg1, arg2) {
906
1123
  const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
907
1124
  return addHeapObject(ret);
908
1125
  };
909
- imports.wbg.__wbg_performance_7fe0928f3ab059e5 = function (arg0) {
1126
+ imports.wbg.__wbg_performance_6adc3b899e448a23 = function (arg0) {
910
1127
  const ret = getObject(arg0).performance;
911
1128
  return addHeapObject(ret);
912
1129
  };
913
- imports.wbg.__wbg_postMessage_6edafa8f7b9c2f52 = function () {
1130
+ imports.wbg.__wbg_postMessage_38909232d65f5870 = function () {
914
1131
  return handleError(function (arg0, arg1) {
915
1132
  getObject(arg0).postMessage(getObject(arg1));
916
1133
  }, arguments);
917
1134
  };
918
- imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function () {
1135
+ imports.wbg.__wbg_postMessage_50e57097ede408b9 = function () {
919
1136
  return handleError(function (arg0, arg1) {
920
1137
  getObject(arg0).postMessage(getObject(arg1));
921
1138
  }, arguments);
922
1139
  };
923
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function (arg0, arg1) {
1140
+ imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function (arg0, arg1, arg2) {
1141
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1142
+ };
1143
+ imports.wbg.__wbg_push_330b2eb93e4e1212 = function (arg0, arg1) {
924
1144
  const ret = getObject(arg0).push(getObject(arg1));
925
1145
  return ret;
926
1146
  };
927
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function (arg0) {
1147
+ imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function (arg0) {
928
1148
  queueMicrotask(getObject(arg0));
929
1149
  };
930
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function (arg0) {
1150
+ imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function (arg0) {
931
1151
  const ret = getObject(arg0).queueMicrotask;
932
1152
  return addHeapObject(ret);
933
1153
  };
934
- imports.wbg.__wbg_random_3ad904d98382defe = function () {
1154
+ imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function () {
935
1155
  const ret = Math.random();
936
1156
  return ret;
937
1157
  };
938
- imports.wbg.__wbg_read_f8fdd4b410209222 = function () {
1158
+ imports.wbg.__wbg_read_a43bb46027f02ee9 = function () {
939
1159
  return handleError(function (arg0, arg1, arg2, arg3) {
940
1160
  const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
941
1161
  return ret;
942
1162
  }, arguments);
943
1163
  };
944
- imports.wbg.__wbg_removeEntry_a424e90dff229b19 = function (arg0, arg1, arg2, arg3) {
1164
+ imports.wbg.__wbg_read_c8c5b5e1fd6b9760 = function () {
1165
+ return handleError(function (arg0, arg1, arg2) {
1166
+ const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2));
1167
+ return ret;
1168
+ }, arguments);
1169
+ };
1170
+ imports.wbg.__wbg_relativePathComponents_71b7af6cc056eaa1 = function (arg0) {
1171
+ const ret = getObject(arg0).relativePathComponents;
1172
+ return addHeapObject(ret);
1173
+ };
1174
+ imports.wbg.__wbg_removeEntry_beea80e74f68ed5b = function (arg0, arg1, arg2, arg3) {
945
1175
  const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
946
1176
  return addHeapObject(ret);
947
1177
  };
948
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function (arg0) {
1178
+ imports.wbg.__wbg_resolve_4055c623acdd6a1b = function (arg0) {
949
1179
  const ret = Promise.resolve(getObject(arg0));
950
1180
  return addHeapObject(ret);
951
1181
  };
952
- imports.wbg.__wbg_revokeObjectURL_27267efebeb457c7 = function () {
1182
+ imports.wbg.__wbg_revokeObjectURL_651b859c81bf1af0 = function () {
953
1183
  return handleError(function (arg0, arg1) {
954
1184
  URL.revokeObjectURL(getStringFromWasm0(arg0, arg1));
955
1185
  }, arguments);
956
1186
  };
957
- imports.wbg.__wbg_setTimeout_42370cb3051b8c2c = function () {
1187
+ imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function (arg0, arg1) {
1188
+ const ret = setTimeout(getObject(arg0), arg1);
1189
+ return addHeapObject(ret);
1190
+ };
1191
+ imports.wbg.__wbg_setTimeout_63008613644b07af = function () {
958
1192
  return handleError(function (arg0, arg1, arg2) {
959
1193
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
960
1194
  return addHeapObject(ret);
961
1195
  }, arguments);
962
1196
  };
963
- imports.wbg.__wbg_setTimeout_73ce8df12de4f2f2 = function (arg0, arg1) {
964
- const ret = setTimeout(getObject(arg0), arg1);
965
- return addHeapObject(ret);
966
- };
967
- imports.wbg.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
968
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
969
- };
970
1197
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
971
1198
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
972
1199
  };
973
- imports.wbg.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
974
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1200
+ imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function (arg0, arg1, arg2) {
1201
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
975
1202
  };
976
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
1203
+ imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function (arg0, arg1, arg2) {
977
1204
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
978
1205
  return addHeapObject(ret);
979
1206
  };
980
- imports.wbg.__wbg_setat_2a071a392643c10e = function (arg0, arg1) {
1207
+ imports.wbg.__wbg_setat_f8fc70f546036b10 = function (arg0, arg1) {
981
1208
  getObject(arg0).at = arg1;
982
1209
  };
983
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
1210
+ imports.wbg.__wbg_setbody_c8460bdf44147df8 = function (arg0, arg1) {
984
1211
  getObject(arg0).body = getObject(arg1);
985
1212
  };
986
- imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function (arg0, arg1) {
1213
+ imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function (arg0, arg1) {
1214
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1215
+ };
1216
+ imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function (arg0, arg1) {
987
1217
  getObject(arg0).create = arg1 !== 0;
988
1218
  };
989
- imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function (arg0, arg1) {
1219
+ imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function (arg0, arg1) {
990
1220
  getObject(arg0).create = arg1 !== 0;
991
1221
  };
992
- imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function (arg0, arg1) {
1222
+ imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function (arg0, arg1) {
993
1223
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
994
1224
  };
995
- imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function (arg0, arg1) {
1225
+ imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function (arg0, arg1) {
996
1226
  getObject(arg0).headers = getObject(arg1);
997
1227
  };
998
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function (arg0, arg1, arg2) {
1228
+ imports.wbg.__wbg_setmethod_9b504d5b855b329c = function (arg0, arg1, arg2) {
999
1229
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1000
1230
  };
1001
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function (arg0, arg1) {
1231
+ imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function (arg0, arg1) {
1002
1232
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1003
1233
  };
1004
- imports.wbg.__wbg_setname_73878b09a5ee3d0c = function (arg0, arg1, arg2) {
1234
+ imports.wbg.__wbg_setname_6c6a9da905405176 = function (arg0, arg1, arg2) {
1005
1235
  getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1006
1236
  };
1007
- imports.wbg.__wbg_setonerror_57eeef5feb01fe7a = function (arg0, arg1) {
1237
+ imports.wbg.__wbg_setonerror_d1f7d212a8fc3389 = function (arg0, arg1) {
1008
1238
  getObject(arg0).onerror = getObject(arg1);
1009
1239
  };
1010
- imports.wbg.__wbg_setonmessage_5a885b16bdc6dca6 = function (arg0, arg1) {
1240
+ imports.wbg.__wbg_setonmessage_c943f7891405ab22 = function (arg0, arg1) {
1011
1241
  getObject(arg0).onmessage = getObject(arg1);
1012
1242
  };
1013
- imports.wbg.__wbg_setrecursive_536113a081d6177a = function (arg0, arg1) {
1243
+ imports.wbg.__wbg_setrecursive_072599988d5f7e8d = function (arg0, arg1) {
1014
1244
  getObject(arg0).recursive = arg1 !== 0;
1015
1245
  };
1016
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
1246
+ imports.wbg.__wbg_setrecursive_0b3e76f293311ab5 = function (arg0, arg1) {
1247
+ getObject(arg0).recursive = arg1 !== 0;
1248
+ };
1249
+ imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function (arg0, arg1) {
1017
1250
  getObject(arg0).signal = getObject(arg1);
1018
1251
  };
1019
- imports.wbg.__wbg_settype_39ed370d3edd403c = function (arg0, arg1, arg2) {
1252
+ imports.wbg.__wbg_settype_298968e371b58a33 = function (arg0, arg1, arg2) {
1020
1253
  getObject(arg0).type = getStringFromWasm0(arg1, arg2);
1021
1254
  };
1022
- imports.wbg.__wbg_settype_47fae7d6c82625e7 = function (arg0, arg1) {
1255
+ imports.wbg.__wbg_settype_3dc790721d11b6f5 = function (arg0, arg1) {
1023
1256
  getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1024
1257
  };
1025
- imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function (arg0) {
1258
+ imports.wbg.__wbg_signal_da4d466ce86118b5 = function (arg0) {
1026
1259
  const ret = getObject(arg0).signal;
1027
1260
  return addHeapObject(ret);
1028
1261
  };
1029
- imports.wbg.__wbg_size_3808d41635a9c259 = function (arg0) {
1262
+ imports.wbg.__wbg_size_8f84e7768fba0589 = function (arg0) {
1030
1263
  const ret = getObject(arg0).size;
1031
1264
  return ret;
1032
1265
  };
1033
- imports.wbg.__wbg_slice_8c197bf0b6dfc84a = function () {
1266
+ imports.wbg.__wbg_slice_337130a0e2389850 = function () {
1034
1267
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1035
1268
  const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1036
1269
  return addHeapObject(ret);
@@ -1043,109 +1276,97 @@ function __wbg_get_imports() {
1043
1276
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1044
1277
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1045
1278
  };
1046
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function () {
1279
+ imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function () {
1047
1280
  const ret = typeof global === 'undefined' ? null : global;
1048
1281
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1049
1282
  };
1050
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function () {
1283
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function () {
1051
1284
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1052
1285
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1053
1286
  };
1054
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function () {
1287
+ imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function () {
1055
1288
  const ret = typeof self === 'undefined' ? null : self;
1056
1289
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1057
1290
  };
1058
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function () {
1291
+ imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function () {
1059
1292
  const ret = typeof window === 'undefined' ? null : window;
1060
1293
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1061
1294
  };
1062
- imports.wbg.__wbg_status_f6360336ca686bf0 = function (arg0) {
1295
+ imports.wbg.__wbg_status_3fea3036088621d6 = function (arg0) {
1063
1296
  const ret = getObject(arg0).status;
1064
1297
  return ret;
1065
1298
  };
1066
- imports.wbg.__wbg_storage_07eb754b88898955 = function (arg0) {
1299
+ imports.wbg.__wbg_storage_32b4ac688c114c3d = function (arg0) {
1067
1300
  const ret = getObject(arg0).storage;
1068
1301
  return addHeapObject(ret);
1069
1302
  };
1070
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function () {
1303
+ imports.wbg.__wbg_stringify_b98c93d0a190446a = function () {
1071
1304
  return handleError(function (arg0) {
1072
1305
  const ret = JSON.stringify(getObject(arg0));
1073
1306
  return addHeapObject(ret);
1074
1307
  }, arguments);
1075
1308
  };
1076
- imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function (arg0, arg1, arg2) {
1309
+ imports.wbg.__wbg_subarray_70fd07feefe14294 = function (arg0, arg1, arg2) {
1077
1310
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1078
1311
  return addHeapObject(ret);
1079
1312
  };
1080
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function (arg0, arg1) {
1081
- const ret = getObject(arg0).then(getObject(arg1));
1313
+ imports.wbg.__wbg_then_b33a773d723afa3e = function (arg0, arg1, arg2) {
1314
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1082
1315
  return addHeapObject(ret);
1083
1316
  };
1084
- imports.wbg.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
1085
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1317
+ imports.wbg.__wbg_then_e22500defe16819f = function (arg0, arg1) {
1318
+ const ret = getObject(arg0).then(getObject(arg1));
1086
1319
  return addHeapObject(ret);
1087
1320
  };
1088
- imports.wbg.__wbg_toString_5285597960676b7b = function (arg0) {
1321
+ imports.wbg.__wbg_toString_78df35411a4fd40c = function (arg0) {
1089
1322
  const ret = getObject(arg0).toString();
1090
1323
  return addHeapObject(ret);
1091
1324
  };
1092
- imports.wbg.__wbg_truncate_29261a6365c72b01 = function () {
1325
+ imports.wbg.__wbg_truncate_0fe935591188a14c = function () {
1093
1326
  return handleError(function (arg0, arg1) {
1094
1327
  getObject(arg0).truncate(arg1 >>> 0);
1095
1328
  }, arguments);
1096
1329
  };
1097
- imports.wbg.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
1330
+ imports.wbg.__wbg_type_7ef9242007bd4c65 = function (arg0) {
1331
+ const ret = getObject(arg0).type;
1332
+ return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1333
+ };
1334
+ imports.wbg.__wbg_url_e5720dfacf77b05e = function (arg0, arg1) {
1098
1335
  const ret = getObject(arg1).url;
1099
1336
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1100
1337
  const len1 = WASM_VECTOR_LEN;
1101
1338
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1102
1339
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1103
1340
  };
1104
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function (arg0) {
1341
+ imports.wbg.__wbg_value_ade0f87d71d4aecc = function (arg0) {
1105
1342
  const ret = getObject(arg0).value;
1106
1343
  return addHeapObject(ret);
1107
1344
  };
1108
- imports.wbg.__wbg_value_dab73d3d5d4abaaf = function (arg0) {
1345
+ imports.wbg.__wbg_value_dd9372230531eade = function (arg0) {
1109
1346
  const ret = getObject(arg0).value;
1110
1347
  return addHeapObject(ret);
1111
1348
  };
1112
- imports.wbg.__wbg_waitAsync_61f0a081053dd3c2 = function (arg0, arg1, arg2) {
1113
- const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1114
- return addHeapObject(ret);
1115
- };
1116
- imports.wbg.__wbg_waitAsync_7ce6c8a047c752c3 = function () {
1349
+ imports.wbg.__wbg_waitAsync_213e79486ffecd82 = function () {
1117
1350
  const ret = Atomics.waitAsync;
1118
1351
  return addHeapObject(ret);
1119
1352
  };
1120
- imports.wbg.__wbg_warn_4ca3906c248c47c4 = function (arg0) {
1121
- console.warn(getObject(arg0));
1122
- };
1123
- imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function (arg0, arg1, arg2, arg3) {
1124
- console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1125
- };
1126
- imports.wbg.__wbg_write_530d3c84df874f53 = function () {
1127
- return handleError(function (arg0, arg1, arg2, arg3) {
1128
- const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
1129
- return ret;
1130
- }, arguments);
1131
- };
1132
- imports.wbg.__wbindgen_array_new = function () {
1133
- const ret = [];
1353
+ imports.wbg.__wbg_waitAsync_402c2db0645a44e0 = function (arg0, arg1, arg2) {
1354
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1134
1355
  return addHeapObject(ret);
1135
1356
  };
1136
- imports.wbg.__wbindgen_array_push = function (arg0, arg1) {
1137
- getObject(arg0).push(takeObject(arg1));
1357
+ imports.wbg.__wbg_warn_90eb15d986910fe9 = function (arg0, arg1, arg2, arg3) {
1358
+ console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1138
1359
  };
1139
- imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
1140
- const ret = arg0;
1141
- return addHeapObject(ret);
1360
+ imports.wbg.__wbg_warn_e2ada06313f92f09 = function (arg0) {
1361
+ console.warn(getObject(arg0));
1142
1362
  };
1143
- imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
1144
- const ret = BigInt.asUintN(64, arg0);
1145
- return addHeapObject(ret);
1363
+ imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
1364
+ const v = getObject(arg0);
1365
+ const ret = typeof (v) === 'boolean' ? v : undefined;
1366
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1146
1367
  };
1147
- imports.wbg.__wbindgen_cb_drop = function (arg0) {
1148
- const obj = takeObject(arg0).original;
1368
+ imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function (arg0) {
1369
+ const obj = getObject(arg0).original;
1149
1370
  if (obj.cnt-- == 1) {
1150
1371
  obj.a = 0;
1151
1372
  return true;
@@ -1153,101 +1374,60 @@ function __wbg_get_imports() {
1153
1374
  const ret = false;
1154
1375
  return ret;
1155
1376
  };
1156
- imports.wbg.__wbindgen_closure_wrapper204130 = function (arg0, arg1, arg2) {
1157
- const ret = makeMutClosure(arg0, arg1, 131379, __wbg_adapter_49);
1158
- return addHeapObject(ret);
1159
- };
1160
- imports.wbg.__wbindgen_closure_wrapper216712 = function (arg0, arg1, arg2) {
1161
- const ret = makeMutClosure(arg0, arg1, 144806, __wbg_adapter_52);
1162
- return addHeapObject(ret);
1163
- };
1164
- imports.wbg.__wbindgen_closure_wrapper216713 = function (arg0, arg1, arg2) {
1165
- const ret = makeMutClosure(arg0, arg1, 144806, __wbg_adapter_52);
1166
- return addHeapObject(ret);
1167
- };
1168
- imports.wbg.__wbindgen_closure_wrapper216764 = function (arg0, arg1, arg2) {
1169
- const ret = makeMutClosure(arg0, arg1, 144832, __wbg_adapter_57);
1170
- return addHeapObject(ret);
1171
- };
1172
- imports.wbg.__wbindgen_closure_wrapper216804 = function (arg0, arg1, arg2) {
1173
- const ret = makeMutClosure(arg0, arg1, 144850, __wbg_adapter_60);
1174
- return addHeapObject(ret);
1175
- };
1176
- imports.wbg.__wbindgen_closure_wrapper32222 = function (arg0, arg1, arg2) {
1177
- const ret = makeMutClosure(arg0, arg1, 18428, __wbg_adapter_46);
1178
- return addHeapObject(ret);
1179
- };
1180
- imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
1377
+ imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function (arg0, arg1) {
1181
1378
  const ret = debugString(getObject(arg1));
1182
1379
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1183
1380
  const len1 = WASM_VECTOR_LEN;
1184
1381
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1185
1382
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1186
1383
  };
1187
- imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
1188
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1189
- return addHeapObject(ret);
1384
+ imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function (arg0, arg1) {
1385
+ const ret = getObject(arg0) in getObject(arg1);
1386
+ return ret;
1190
1387
  };
1191
- imports.wbg.__wbindgen_is_function = function (arg0) {
1388
+ imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function (arg0) {
1192
1389
  const ret = typeof (getObject(arg0)) === 'function';
1193
1390
  return ret;
1194
1391
  };
1195
- imports.wbg.__wbindgen_is_object = function (arg0) {
1392
+ imports.wbg.__wbg_wbindgenisnull_f3037694abe4d97a = function (arg0) {
1393
+ const ret = getObject(arg0) === null;
1394
+ return ret;
1395
+ };
1396
+ imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function (arg0) {
1196
1397
  const val = getObject(arg0);
1197
1398
  const ret = typeof (val) === 'object' && val !== null;
1198
1399
  return ret;
1199
1400
  };
1200
- imports.wbg.__wbindgen_is_string = function (arg0) {
1401
+ imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function (arg0) {
1201
1402
  const ret = typeof (getObject(arg0)) === 'string';
1202
1403
  return ret;
1203
1404
  };
1204
- imports.wbg.__wbindgen_is_undefined = function (arg0) {
1405
+ imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function (arg0) {
1205
1406
  const ret = getObject(arg0) === undefined;
1206
1407
  return ret;
1207
1408
  };
1208
- imports.wbg.__wbindgen_link_9579f016b4522a24 = function (arg0) {
1209
- const val = `onmessage = function (ev) {
1210
- let [ia, index, value] = ev.data;
1211
- ia = new Int32Array(ia.buffer);
1212
- let result = Atomics.wait(ia, index, value);
1213
- postMessage(result);
1214
- };
1215
- `;
1216
- const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1217
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1218
- const len1 = WASM_VECTOR_LEN;
1219
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1220
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1409
+ imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function (arg0, arg1) {
1410
+ const ret = getObject(arg0) == getObject(arg1);
1411
+ return ret;
1221
1412
  };
1222
- imports.wbg.__wbindgen_memory = function () {
1413
+ imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function () {
1223
1414
  const ret = wasm.memory;
1224
1415
  return addHeapObject(ret);
1225
1416
  };
1226
- imports.wbg.__wbindgen_module = function () {
1417
+ imports.wbg.__wbg_wbindgenmodule_7e59019f6366ff9c = function () {
1227
1418
  const ret = __wbg_init.__wbindgen_wasm_module;
1228
1419
  return addHeapObject(ret);
1229
1420
  };
1230
- imports.wbg.__wbindgen_number_get = function (arg0, arg1) {
1421
+ imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function (arg0, arg1) {
1231
1422
  const obj = getObject(arg1);
1232
1423
  const ret = typeof (obj) === 'number' ? obj : undefined;
1233
1424
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1234
1425
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1235
1426
  };
1236
- imports.wbg.__wbindgen_number_new = function (arg0) {
1237
- const ret = arg0;
1238
- return addHeapObject(ret);
1239
- };
1240
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
1241
- const ret = getObject(arg0);
1242
- return addHeapObject(ret);
1243
- };
1244
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
1245
- takeObject(arg0);
1246
- };
1247
- imports.wbg.__wbindgen_rethrow = function (arg0) {
1427
+ imports.wbg.__wbg_wbindgenrethrow_01815c9239d70cc2 = function (arg0) {
1248
1428
  throw takeObject(arg0);
1249
1429
  };
1250
- imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
1430
+ imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function (arg0, arg1) {
1251
1431
  const obj = getObject(arg1);
1252
1432
  const ret = typeof (obj) === 'string' ? obj : undefined;
1253
1433
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -1255,23 +1435,115 @@ function __wbg_get_imports() {
1255
1435
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1256
1436
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1257
1437
  };
1258
- imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
1438
+ imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
1439
+ throw new Error(getStringFromWasm0(arg0, arg1));
1440
+ };
1441
+ imports.wbg.__wbg_write_9ac6a5f58a8c835c = function () {
1442
+ return handleError(function (arg0, arg1, arg2, arg3) {
1443
+ const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
1444
+ return ret;
1445
+ }, arguments);
1446
+ };
1447
+ imports.wbg.__wbg_write_b652d19332a4ce1e = function () {
1448
+ return handleError(function (arg0, arg1, arg2) {
1449
+ const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2));
1450
+ return ret;
1451
+ }, arguments);
1452
+ };
1453
+ imports.wbg.__wbindgen_cast_1ca0782ec1faf942 = function (arg0, arg1) {
1454
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 604, function: Function { arguments: [], shim_idx: 605, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1455
+ const ret = makeMutClosure(arg0, arg1, 604, __wbg_adapter_25);
1456
+ return addHeapObject(ret);
1457
+ };
1458
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1459
+ // Cast intrinsic for `Ref(String) -> Externref`.
1259
1460
  const ret = getStringFromWasm0(arg0, arg1);
1260
1461
  return addHeapObject(ret);
1261
1462
  };
1262
- imports.wbg.__wbindgen_throw = function (arg0, arg1) {
1263
- throw new Error(getStringFromWasm0(arg0, arg1));
1463
+ imports.wbg.__wbindgen_cast_2bf53ab5a6985333 = function (arg0, arg1) {
1464
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8791, function: Function { arguments: [Externref], shim_idx: 8792, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1465
+ const ret = makeMutClosure(arg0, arg1, 8791, __wbg_adapter_17);
1466
+ return addHeapObject(ret);
1467
+ };
1468
+ imports.wbg.__wbindgen_cast_33aa391726f172ef = function (arg0, arg1) {
1469
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 9074, function: Function { arguments: [], shim_idx: 605, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1470
+ const ret = makeMutClosure(arg0, arg1, 9074, __wbg_adapter_25);
1471
+ return addHeapObject(ret);
1472
+ };
1473
+ imports.wbg.__wbindgen_cast_34e5558c5d1de712 = function (arg0, arg1) {
1474
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8791, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8792, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1475
+ const ret = makeMutClosure(arg0, arg1, 8791, __wbg_adapter_17);
1476
+ return addHeapObject(ret);
1477
+ };
1478
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1479
+ // Cast intrinsic for `U64 -> Externref`.
1480
+ const ret = BigInt.asUintN(64, arg0);
1481
+ return addHeapObject(ret);
1482
+ };
1483
+ imports.wbg.__wbindgen_cast_4a3e076a883393e0 = function (arg0, arg1) {
1484
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 9058, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 9059, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1485
+ const ret = makeClosure(arg0, arg1, 9058, __wbg_adapter_22);
1486
+ return addHeapObject(ret);
1487
+ };
1488
+ imports.wbg.__wbindgen_cast_690c59a3c7b902df = function (arg0, arg1) {
1489
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8791, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 8792, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1490
+ const ret = makeMutClosure(arg0, arg1, 8791, __wbg_adapter_17);
1491
+ return addHeapObject(ret);
1264
1492
  };
1265
- imports.wbg.__wbindgen_uint8_array_new = function (arg0, arg1) {
1493
+ imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
1494
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1495
+ wasm.__wbindgen_export_4(arg0, arg1 * 4, 4);
1496
+ // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1497
+ const ret = v0;
1498
+ return addHeapObject(ret);
1499
+ };
1500
+ imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function (arg0, arg1) {
1266
1501
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1267
1502
  wasm.__wbindgen_export_4(arg0, arg1 * 1, 1);
1503
+ // Cast intrinsic for `Vector(U8) -> Externref`.
1268
1504
  const ret = v0;
1269
1505
  return addHeapObject(ret);
1270
1506
  };
1507
+ imports.wbg.__wbindgen_cast_9a09b473951e479b = function (arg0, arg1) {
1508
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 9058, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 9072, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1509
+ const ret = makeMutClosure(arg0, arg1, 9058, __wbg_adapter_4);
1510
+ return addHeapObject(ret);
1511
+ };
1512
+ imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1513
+ // Cast intrinsic for `I64 -> Externref`.
1514
+ const ret = arg0;
1515
+ return addHeapObject(ret);
1516
+ };
1517
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1518
+ // Cast intrinsic for `F64 -> Externref`.
1519
+ const ret = arg0;
1520
+ return addHeapObject(ret);
1521
+ };
1522
+ imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
1523
+ const val = `onmessage = function (ev) {
1524
+ let [ia, index, value] = ev.data;
1525
+ ia = new Int32Array(ia.buffer);
1526
+ let result = Atomics.wait(ia, index, value);
1527
+ postMessage(result);
1528
+ };
1529
+ `;
1530
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1531
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1532
+ const len1 = WASM_VECTOR_LEN;
1533
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1534
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1535
+ };
1536
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
1537
+ const ret = getObject(arg0);
1538
+ return addHeapObject(ret);
1539
+ };
1540
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
1541
+ takeObject(arg0);
1542
+ };
1271
1543
  return imports;
1272
1544
  }
1273
1545
  function __wbg_init_memory(imports, memory) {
1274
- imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 224, maximum: 16384, shared: true });
1546
+ imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 128, maximum: 16384, shared: true });
1275
1547
  }
1276
1548
  function __wbg_finalize_init(instance, module, thread_stack_size) {
1277
1549
  wasm = instance.exports;