@biomejs/wasm-bundler 2.4.9 → 2.4.11

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/biome_wasm_bg.js CHANGED
@@ -1,215 +1,3 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
- function addToExternrefTable0(obj) {
7
- const idx = wasm.__externref_table_alloc();
8
- wasm.__wbindgen_externrefs.set(idx, obj);
9
- return idx;
10
- }
11
-
12
- function _assertClass(instance, klass) {
13
- if (!(instance instanceof klass)) {
14
- throw new Error(`expected instance of ${klass.name}`);
15
- }
16
- }
17
-
18
- function debugString(val) {
19
- // primitive types
20
- const type = typeof val;
21
- if (type == 'number' || type == 'boolean' || val == null) {
22
- return `${val}`;
23
- }
24
- if (type == 'string') {
25
- return `"${val}"`;
26
- }
27
- if (type == 'symbol') {
28
- const description = val.description;
29
- if (description == null) {
30
- return 'Symbol';
31
- } else {
32
- return `Symbol(${description})`;
33
- }
34
- }
35
- if (type == 'function') {
36
- const name = val.name;
37
- if (typeof name == 'string' && name.length > 0) {
38
- return `Function(${name})`;
39
- } else {
40
- return 'Function';
41
- }
42
- }
43
- // objects
44
- if (Array.isArray(val)) {
45
- const length = val.length;
46
- let debug = '[';
47
- if (length > 0) {
48
- debug += debugString(val[0]);
49
- }
50
- for(let i = 1; i < length; i++) {
51
- debug += ', ' + debugString(val[i]);
52
- }
53
- debug += ']';
54
- return debug;
55
- }
56
- // Test for built-in
57
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
58
- let className;
59
- if (builtInMatches && builtInMatches.length > 1) {
60
- className = builtInMatches[1];
61
- } else {
62
- // Failed to match the standard '[object ClassName]'
63
- return toString.call(val);
64
- }
65
- if (className == 'Object') {
66
- // we're a user defined class or Object
67
- // JSON.stringify avoids problems with cycles, and is generally much
68
- // easier than looping through ownProperties of `val`.
69
- try {
70
- return 'Object(' + JSON.stringify(val) + ')';
71
- } catch (_) {
72
- return 'Object';
73
- }
74
- }
75
- // errors
76
- if (val instanceof Error) {
77
- return `${val.name}: ${val.message}\n${val.stack}`;
78
- }
79
- // TODO we could test for more things here, like `Set`s and `Map`s.
80
- return className;
81
- }
82
-
83
- function getArrayU8FromWasm0(ptr, len) {
84
- ptr = ptr >>> 0;
85
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
86
- }
87
-
88
- let cachedDataViewMemory0 = null;
89
- function getDataViewMemory0() {
90
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
91
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
92
- }
93
- return cachedDataViewMemory0;
94
- }
95
-
96
- function getStringFromWasm0(ptr, len) {
97
- ptr = ptr >>> 0;
98
- return decodeText(ptr, len);
99
- }
100
-
101
- let cachedUint8ArrayMemory0 = null;
102
- function getUint8ArrayMemory0() {
103
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
104
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
105
- }
106
- return cachedUint8ArrayMemory0;
107
- }
108
-
109
- function handleError(f, args) {
110
- try {
111
- return f.apply(this, args);
112
- } catch (e) {
113
- const idx = addToExternrefTable0(e);
114
- wasm.__wbindgen_exn_store(idx);
115
- }
116
- }
117
-
118
- function isLikeNone(x) {
119
- return x === undefined || x === null;
120
- }
121
-
122
- function passArray8ToWasm0(arg, malloc) {
123
- const ptr = malloc(arg.length * 1, 1) >>> 0;
124
- getUint8ArrayMemory0().set(arg, ptr / 1);
125
- WASM_VECTOR_LEN = arg.length;
126
- return ptr;
127
- }
128
-
129
- function passStringToWasm0(arg, malloc, realloc) {
130
- if (realloc === undefined) {
131
- const buf = cachedTextEncoder.encode(arg);
132
- const ptr = malloc(buf.length, 1) >>> 0;
133
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
134
- WASM_VECTOR_LEN = buf.length;
135
- return ptr;
136
- }
137
-
138
- let len = arg.length;
139
- let ptr = malloc(len, 1) >>> 0;
140
-
141
- const mem = getUint8ArrayMemory0();
142
-
143
- let offset = 0;
144
-
145
- for (; offset < len; offset++) {
146
- const code = arg.charCodeAt(offset);
147
- if (code > 0x7F) break;
148
- mem[ptr + offset] = code;
149
- }
150
- if (offset !== len) {
151
- if (offset !== 0) {
152
- arg = arg.slice(offset);
153
- }
154
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
155
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
156
- const ret = cachedTextEncoder.encodeInto(arg, view);
157
-
158
- offset += ret.written;
159
- ptr = realloc(ptr, len, offset, 1) >>> 0;
160
- }
161
-
162
- WASM_VECTOR_LEN = offset;
163
- return ptr;
164
- }
165
-
166
- function takeFromExternrefTable0(idx) {
167
- const value = wasm.__wbindgen_externrefs.get(idx);
168
- wasm.__externref_table_dealloc(idx);
169
- return value;
170
- }
171
-
172
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
173
- cachedTextDecoder.decode();
174
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
175
- let numBytesDecoded = 0;
176
- function decodeText(ptr, len) {
177
- numBytesDecoded += len;
178
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
179
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
180
- cachedTextDecoder.decode();
181
- numBytesDecoded = len;
182
- }
183
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
184
- }
185
-
186
- const cachedTextEncoder = new TextEncoder();
187
-
188
- if (!('encodeInto' in cachedTextEncoder)) {
189
- cachedTextEncoder.encodeInto = function (arg, view) {
190
- const buf = cachedTextEncoder.encode(arg);
191
- view.set(buf);
192
- return {
193
- read: arg.length,
194
- written: buf.length
195
- };
196
- }
197
- }
198
-
199
- let WASM_VECTOR_LEN = 0;
200
-
201
- const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
202
- ? { register: () => {}, unregister: () => {} }
203
- : new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
204
-
205
- const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
206
- ? { register: () => {}, unregister: () => {} }
207
- : new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
208
-
209
- const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
210
- ? { register: () => {}, unregister: () => {} }
211
- : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
212
-
213
1
  export class DiagnosticPrinter {
214
2
  __destroy_into_raw() {
215
3
  const ptr = this.__wbg_ptr;
@@ -221,38 +9,6 @@ export class DiagnosticPrinter {
221
9
  const ptr = this.__destroy_into_raw();
222
10
  wasm.__wbg_diagnosticprinter_free(ptr, 0);
223
11
  }
224
- /**
225
- * @param {Diagnostic} diagnostic
226
- */
227
- print_simple(diagnostic) {
228
- const ret = wasm.diagnosticprinter_print_simple(this.__wbg_ptr, diagnostic);
229
- if (ret[1]) {
230
- throw takeFromExternrefTable0(ret[0]);
231
- }
232
- }
233
- /**
234
- * @param {Diagnostic} diagnostic
235
- */
236
- print_verbose(diagnostic) {
237
- const ret = wasm.diagnosticprinter_print_verbose(this.__wbg_ptr, diagnostic);
238
- if (ret[1]) {
239
- throw takeFromExternrefTable0(ret[0]);
240
- }
241
- }
242
- /**
243
- * @param {string} file_name
244
- * @param {string} file_source
245
- */
246
- constructor(file_name, file_source) {
247
- const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
- const len0 = WASM_VECTOR_LEN;
249
- const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
- const len1 = WASM_VECTOR_LEN;
251
- const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
252
- this.__wbg_ptr = ret >>> 0;
253
- DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
254
- return this;
255
- }
256
12
  /**
257
13
  * @returns {string}
258
14
  */
@@ -275,26 +31,52 @@ export class DiagnosticPrinter {
275
31
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
276
32
  }
277
33
  }
278
- }
279
- if (Symbol.dispose) DiagnosticPrinter.prototype[Symbol.dispose] = DiagnosticPrinter.prototype.free;
280
-
281
- export class MemoryFileSystem {
282
- __destroy_into_raw() {
283
- const ptr = this.__wbg_ptr;
284
- this.__wbg_ptr = 0;
285
- MemoryFileSystemFinalization.unregister(this);
286
- return ptr;
287
- }
288
- free() {
289
- const ptr = this.__destroy_into_raw();
290
- wasm.__wbg_memoryfilesystem_free(ptr, 0);
291
- }
292
- constructor() {
293
- const ret = wasm.memoryfilesystem_new();
34
+ /**
35
+ * @param {string} file_name
36
+ * @param {string} file_source
37
+ */
38
+ constructor(file_name, file_source) {
39
+ const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
40
+ const len0 = WASM_VECTOR_LEN;
41
+ const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
42
+ const len1 = WASM_VECTOR_LEN;
43
+ const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
294
44
  this.__wbg_ptr = ret >>> 0;
295
- MemoryFileSystemFinalization.register(this, this.__wbg_ptr, this);
45
+ DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
296
46
  return this;
297
47
  }
48
+ /**
49
+ * @param {Diagnostic} diagnostic
50
+ */
51
+ print_simple(diagnostic) {
52
+ const ret = wasm.diagnosticprinter_print_simple(this.__wbg_ptr, diagnostic);
53
+ if (ret[1]) {
54
+ throw takeFromExternrefTable0(ret[0]);
55
+ }
56
+ }
57
+ /**
58
+ * @param {Diagnostic} diagnostic
59
+ */
60
+ print_verbose(diagnostic) {
61
+ const ret = wasm.diagnosticprinter_print_verbose(this.__wbg_ptr, diagnostic);
62
+ if (ret[1]) {
63
+ throw takeFromExternrefTable0(ret[0]);
64
+ }
65
+ }
66
+ }
67
+ if (Symbol.dispose) DiagnosticPrinter.prototype[Symbol.dispose] = DiagnosticPrinter.prototype.free;
68
+
69
+ export class MemoryFileSystem {
70
+ __destroy_into_raw() {
71
+ const ptr = this.__wbg_ptr;
72
+ this.__wbg_ptr = 0;
73
+ MemoryFileSystemFinalization.unregister(this);
74
+ return ptr;
75
+ }
76
+ free() {
77
+ const ptr = this.__destroy_into_raw();
78
+ wasm.__wbg_memoryfilesystem_free(ptr, 0);
79
+ }
298
80
  /**
299
81
  * @param {string} path
300
82
  * @param {Uint8Array} data
@@ -306,6 +88,12 @@ export class MemoryFileSystem {
306
88
  const len1 = WASM_VECTOR_LEN;
307
89
  wasm.memoryfilesystem_insert(this.__wbg_ptr, ptr0, len0, ptr1, len1);
308
90
  }
91
+ constructor() {
92
+ const ret = wasm.memoryfilesystem_new();
93
+ this.__wbg_ptr = ret >>> 0;
94
+ MemoryFileSystemFinalization.register(this, this.__wbg_ptr, this);
95
+ return this;
96
+ }
309
97
  /**
310
98
  * @param {string} path
311
99
  */
@@ -335,15 +123,6 @@ export class Workspace {
335
123
  const ptr = this.__destroy_into_raw();
336
124
  wasm.__wbg_workspace_free(ptr, 0);
337
125
  }
338
- /**
339
- * @param {CloseFileParams} params
340
- */
341
- closeFile(params) {
342
- const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
343
- if (ret[1]) {
344
- throw takeFromExternrefTable0(ret[0]);
345
- }
346
- }
347
126
  /**
348
127
  * @param {ChangeFileParams} params
349
128
  * @returns {ChangeFileResult}
@@ -356,26 +135,13 @@ export class Workspace {
356
135
  return takeFromExternrefTable0(ret[0]);
357
136
  }
358
137
  /**
359
- * @param {FileExitsParams} params
360
- * @returns {boolean}
361
- */
362
- fileExists(params) {
363
- const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
364
- if (ret[2]) {
365
- throw takeFromExternrefTable0(ret[1]);
366
- }
367
- return ret[0] !== 0;
368
- }
369
- /**
370
- * @param {FormatFileParams} params
371
- * @returns {any}
138
+ * @param {CloseFileParams} params
372
139
  */
373
- formatFile(params) {
374
- const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
375
- if (ret[2]) {
376
- throw takeFromExternrefTable0(ret[1]);
140
+ closeFile(params) {
141
+ const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
142
+ if (ret[1]) {
143
+ throw takeFromExternrefTable0(ret[0]);
377
144
  }
378
- return takeFromExternrefTable0(ret[0]);
379
145
  }
380
146
  /**
381
147
  * @param {DropPatternParams} params
@@ -387,69 +153,80 @@ export class Workspace {
387
153
  }
388
154
  }
389
155
  /**
390
- * @param {FormatRangeParams} params
391
- * @returns {any}
156
+ * @param {FileExitsParams} params
157
+ * @returns {boolean}
392
158
  */
393
- formatRange(params) {
394
- const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
159
+ fileExists(params) {
160
+ const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
161
+ if (ret[2]) {
162
+ throw takeFromExternrefTable0(ret[1]);
163
+ }
164
+ return ret[0] !== 0;
165
+ }
166
+ /**
167
+ * @param {SupportsFeatureParams} params
168
+ * @returns {FileFeaturesResult}
169
+ */
170
+ fileFeatures(params) {
171
+ const ret = wasm.workspace_fileFeatures(this.__wbg_ptr, params);
395
172
  if (ret[2]) {
396
173
  throw takeFromExternrefTable0(ret[1]);
397
174
  }
398
175
  return takeFromExternrefTable0(ret[0]);
399
176
  }
400
177
  /**
401
- * @param {OpenProjectParams} params
402
- * @returns {OpenProjectResult}
178
+ * @param {FixFileParams} params
179
+ * @returns {FixFileResult}
403
180
  */
404
- openProject(params) {
405
- const ret = wasm.workspace_openProject(this.__wbg_ptr, params);
181
+ fixFile(params) {
182
+ const ret = wasm.workspace_fixFile(this.__wbg_ptr, params);
406
183
  if (ret[2]) {
407
184
  throw takeFromExternrefTable0(ret[1]);
408
185
  }
409
186
  return takeFromExternrefTable0(ret[0]);
410
187
  }
411
188
  /**
412
- * @param {PullActionsParams} params
413
- * @returns {PullActionsResult}
189
+ * @param {FormatFileParams} params
190
+ * @returns {any}
414
191
  */
415
- pullActions(params) {
416
- const ret = wasm.workspace_pullActions(this.__wbg_ptr, params);
192
+ formatFile(params) {
193
+ const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
417
194
  if (ret[2]) {
418
195
  throw takeFromExternrefTable0(ret[1]);
419
196
  }
420
197
  return takeFromExternrefTable0(ret[0]);
421
198
  }
422
199
  /**
423
- * @param {ScanProjectParams} params
424
- * @returns {ScanProjectResult}
200
+ * @param {FormatOnTypeParams} params
201
+ * @returns {any}
425
202
  */
426
- scanProject(params) {
427
- const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
203
+ formatOnType(params) {
204
+ const ret = wasm.workspace_formatOnType(this.__wbg_ptr, params);
428
205
  if (ret[2]) {
429
206
  throw takeFromExternrefTable0(ret[1]);
430
207
  }
431
208
  return takeFromExternrefTable0(ret[0]);
432
209
  }
433
210
  /**
434
- * @param {SupportsFeatureParams} params
435
- * @returns {FileFeaturesResult}
211
+ * @param {FormatRangeParams} params
212
+ * @returns {any}
436
213
  */
437
- fileFeatures(params) {
438
- const ret = wasm.workspace_fileFeatures(this.__wbg_ptr, params);
214
+ formatRange(params) {
215
+ const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
439
216
  if (ret[2]) {
440
217
  throw takeFromExternrefTable0(ret[1]);
441
218
  }
442
219
  return takeFromExternrefTable0(ret[0]);
443
220
  }
444
221
  /**
445
- * @param {GetTypeInfoParams} params
222
+ * @param {GetControlFlowGraphParams} params
446
223
  * @returns {string}
447
224
  */
448
- getTypeInfo(params) {
225
+ getControlFlowGraph(params) {
449
226
  let deferred2_0;
450
227
  let deferred2_1;
451
228
  try {
452
- const ret = wasm.workspace_getTypeInfo(this.__wbg_ptr, params);
229
+ const ret = wasm.workspace_getControlFlowGraph(this.__wbg_ptr, params);
453
230
  var ptr1 = ret[0];
454
231
  var len1 = ret[1];
455
232
  if (ret[3]) {
@@ -463,72 +240,6 @@ export class Workspace {
463
240
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
464
241
  }
465
242
  }
466
- /**
467
- * @param {ParsePatternParams} params
468
- * @returns {ParsePatternResult}
469
- */
470
- parsePattern(params) {
471
- const ret = wasm.workspace_parsePattern(this.__wbg_ptr, params);
472
- if (ret[2]) {
473
- throw takeFromExternrefTable0(ret[1]);
474
- }
475
- return takeFromExternrefTable0(ret[0]);
476
- }
477
- /**
478
- * @param {FormatOnTypeParams} params
479
- * @returns {any}
480
- */
481
- formatOnType(params) {
482
- const ret = wasm.workspace_formatOnType(this.__wbg_ptr, params);
483
- if (ret[2]) {
484
- throw takeFromExternrefTable0(ret[1]);
485
- }
486
- return takeFromExternrefTable0(ret[0]);
487
- }
488
- /**
489
- * @param {SearchPatternParams} params
490
- * @returns {SearchResults}
491
- */
492
- searchPattern(params) {
493
- const ret = wasm.workspace_searchPattern(this.__wbg_ptr, params);
494
- if (ret[2]) {
495
- throw takeFromExternrefTable0(ret[1]);
496
- }
497
- return takeFromExternrefTable0(ret[0]);
498
- }
499
- /**
500
- * @param {GetSyntaxTreeParams} params
501
- * @returns {GetSyntaxTreeResult}
502
- */
503
- getSyntaxTree(params) {
504
- const ret = wasm.workspace_getSyntaxTree(this.__wbg_ptr, params);
505
- if (ret[2]) {
506
- throw takeFromExternrefTable0(ret[1]);
507
- }
508
- return takeFromExternrefTable0(ret[0]);
509
- }
510
- /**
511
- * @param {PathIsIgnoredParams} params
512
- * @returns {boolean}
513
- */
514
- isPathIgnored(params) {
515
- const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
516
- if (ret[2]) {
517
- throw takeFromExternrefTable0(ret[1]);
518
- }
519
- return ret[0] !== 0;
520
- }
521
- /**
522
- * @param {UpdateSettingsParams} params
523
- * @returns {UpdateSettingsResult}
524
- */
525
- updateSettings(params) {
526
- const ret = wasm.workspace_updateSettings(this.__wbg_ptr, params);
527
- if (ret[2]) {
528
- throw takeFromExternrefTable0(ret[1]);
529
- }
530
- return takeFromExternrefTable0(ret[0]);
531
- }
532
243
  /**
533
244
  * @param {GetFileContentParams} params
534
245
  * @returns {string}
@@ -585,25 +296,14 @@ export class Workspace {
585
296
  return takeFromExternrefTable0(ret[0]);
586
297
  }
587
298
  /**
588
- * @param {PullDiagnosticsParams} params
589
- * @returns {PullDiagnosticsResult}
590
- */
591
- pullDiagnostics(params) {
592
- const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
593
- if (ret[2]) {
594
- throw takeFromExternrefTable0(ret[1]);
595
- }
596
- return takeFromExternrefTable0(ret[0]);
597
- }
598
- /**
599
- * @param {GetSemanticModelParams} params
299
+ * @param {GetRegisteredTypesParams} params
600
300
  * @returns {string}
601
301
  */
602
- getSemanticModel(params) {
302
+ getRegisteredTypes(params) {
603
303
  let deferred2_0;
604
304
  let deferred2_1;
605
305
  try {
606
- const ret = wasm.workspace_getSemanticModel(this.__wbg_ptr, params);
306
+ const ret = wasm.workspace_getRegisteredTypes(this.__wbg_ptr, params);
607
307
  var ptr1 = ret[0];
608
308
  var len1 = ret[1];
609
309
  if (ret[3]) {
@@ -618,32 +318,14 @@ export class Workspace {
618
318
  }
619
319
  }
620
320
  /**
621
- * @param {MemoryFileSystem} fs
622
- * @returns {Workspace}
623
- */
624
- static withFileSystem(fs) {
625
- _assertClass(fs, MemoryFileSystem);
626
- const ret = wasm.workspace_withFileSystem(fs.__wbg_ptr);
627
- return Workspace.__wrap(ret);
628
- }
629
- /**
630
- * @param {UpdateModuleGraphParams} params
631
- */
632
- updateModuleGraph(params) {
633
- const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
634
- if (ret[1]) {
635
- throw takeFromExternrefTable0(ret[0]);
636
- }
637
- }
638
- /**
639
- * @param {GetRegisteredTypesParams} params
321
+ * @param {GetSemanticModelParams} params
640
322
  * @returns {string}
641
323
  */
642
- getRegisteredTypes(params) {
324
+ getSemanticModel(params) {
643
325
  let deferred2_0;
644
326
  let deferred2_1;
645
327
  try {
646
- const ret = wasm.workspace_getRegisteredTypes(this.__wbg_ptr, params);
328
+ const ret = wasm.workspace_getSemanticModel(this.__wbg_ptr, params);
647
329
  var ptr1 = ret[0];
648
330
  var len1 = ret[1];
649
331
  if (ret[3]) {
@@ -658,14 +340,25 @@ export class Workspace {
658
340
  }
659
341
  }
660
342
  /**
661
- * @param {GetControlFlowGraphParams} params
662
- * @returns {string}
343
+ * @param {GetSyntaxTreeParams} params
344
+ * @returns {GetSyntaxTreeResult}
663
345
  */
664
- getControlFlowGraph(params) {
665
- let deferred2_0;
346
+ getSyntaxTree(params) {
347
+ const ret = wasm.workspace_getSyntaxTree(this.__wbg_ptr, params);
348
+ if (ret[2]) {
349
+ throw takeFromExternrefTable0(ret[1]);
350
+ }
351
+ return takeFromExternrefTable0(ret[0]);
352
+ }
353
+ /**
354
+ * @param {GetTypeInfoParams} params
355
+ * @returns {string}
356
+ */
357
+ getTypeInfo(params) {
358
+ let deferred2_0;
666
359
  let deferred2_1;
667
360
  try {
668
- const ret = wasm.workspace_getControlFlowGraph(this.__wbg_ptr, params);
361
+ const ret = wasm.workspace_getTypeInfo(this.__wbg_ptr, params);
669
362
  var ptr1 = ret[0];
670
363
  var len1 = ret[1];
671
364
  if (ret[3]) {
@@ -679,12 +372,78 @@ export class Workspace {
679
372
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
680
373
  }
681
374
  }
375
+ /**
376
+ * @param {PathIsIgnoredParams} params
377
+ * @returns {boolean}
378
+ */
379
+ isPathIgnored(params) {
380
+ const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
381
+ if (ret[2]) {
382
+ throw takeFromExternrefTable0(ret[1]);
383
+ }
384
+ return ret[0] !== 0;
385
+ }
682
386
  constructor() {
683
387
  const ret = wasm.workspace_new();
684
388
  this.__wbg_ptr = ret >>> 0;
685
389
  WorkspaceFinalization.register(this, this.__wbg_ptr, this);
686
390
  return this;
687
391
  }
392
+ /**
393
+ * @param {OpenFileParams} params
394
+ * @returns {OpenFileResult}
395
+ */
396
+ openFile(params) {
397
+ const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
398
+ if (ret[2]) {
399
+ throw takeFromExternrefTable0(ret[1]);
400
+ }
401
+ return takeFromExternrefTable0(ret[0]);
402
+ }
403
+ /**
404
+ * @param {OpenProjectParams} params
405
+ * @returns {OpenProjectResult}
406
+ */
407
+ openProject(params) {
408
+ const ret = wasm.workspace_openProject(this.__wbg_ptr, params);
409
+ if (ret[2]) {
410
+ throw takeFromExternrefTable0(ret[1]);
411
+ }
412
+ return takeFromExternrefTable0(ret[0]);
413
+ }
414
+ /**
415
+ * @param {ParsePatternParams} params
416
+ * @returns {ParsePatternResult}
417
+ */
418
+ parsePattern(params) {
419
+ const ret = wasm.workspace_parsePattern(this.__wbg_ptr, params);
420
+ if (ret[2]) {
421
+ throw takeFromExternrefTable0(ret[1]);
422
+ }
423
+ return takeFromExternrefTable0(ret[0]);
424
+ }
425
+ /**
426
+ * @param {PullActionsParams} params
427
+ * @returns {PullActionsResult}
428
+ */
429
+ pullActions(params) {
430
+ const ret = wasm.workspace_pullActions(this.__wbg_ptr, params);
431
+ if (ret[2]) {
432
+ throw takeFromExternrefTable0(ret[1]);
433
+ }
434
+ return takeFromExternrefTable0(ret[0]);
435
+ }
436
+ /**
437
+ * @param {PullDiagnosticsParams} params
438
+ * @returns {PullDiagnosticsResult}
439
+ */
440
+ pullDiagnostics(params) {
441
+ const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
442
+ if (ret[2]) {
443
+ throw takeFromExternrefTable0(ret[1]);
444
+ }
445
+ return takeFromExternrefTable0(ret[0]);
446
+ }
688
447
  /**
689
448
  * @param {RenameParams} params
690
449
  * @returns {RenameResult}
@@ -697,150 +456,158 @@ export class Workspace {
697
456
  return takeFromExternrefTable0(ret[0]);
698
457
  }
699
458
  /**
700
- * @param {FixFileParams} params
701
- * @returns {FixFileResult}
459
+ * @param {ScanProjectParams} params
460
+ * @returns {ScanProjectResult}
702
461
  */
703
- fixFile(params) {
704
- const ret = wasm.workspace_fixFile(this.__wbg_ptr, params);
462
+ scanProject(params) {
463
+ const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
705
464
  if (ret[2]) {
706
465
  throw takeFromExternrefTable0(ret[1]);
707
466
  }
708
467
  return takeFromExternrefTable0(ret[0]);
709
468
  }
710
469
  /**
711
- * @param {OpenFileParams} params
712
- * @returns {OpenFileResult}
470
+ * @param {SearchPatternParams} params
471
+ * @returns {SearchResults}
713
472
  */
714
- openFile(params) {
715
- const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
473
+ searchPattern(params) {
474
+ const ret = wasm.workspace_searchPattern(this.__wbg_ptr, params);
475
+ if (ret[2]) {
476
+ throw takeFromExternrefTable0(ret[1]);
477
+ }
478
+ return takeFromExternrefTable0(ret[0]);
479
+ }
480
+ /**
481
+ * @param {UpdateModuleGraphParams} params
482
+ */
483
+ updateModuleGraph(params) {
484
+ const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
485
+ if (ret[1]) {
486
+ throw takeFromExternrefTable0(ret[0]);
487
+ }
488
+ }
489
+ /**
490
+ * @param {UpdateSettingsParams} params
491
+ * @returns {UpdateSettingsResult}
492
+ */
493
+ updateSettings(params) {
494
+ const ret = wasm.workspace_updateSettings(this.__wbg_ptr, params);
716
495
  if (ret[2]) {
717
496
  throw takeFromExternrefTable0(ret[1]);
718
497
  }
719
498
  return takeFromExternrefTable0(ret[0]);
720
499
  }
500
+ /**
501
+ * @param {MemoryFileSystem} fs
502
+ * @returns {Workspace}
503
+ */
504
+ static withFileSystem(fs) {
505
+ _assertClass(fs, MemoryFileSystem);
506
+ const ret = wasm.workspace_withFileSystem(fs.__wbg_ptr);
507
+ return Workspace.__wrap(ret);
508
+ }
721
509
  }
722
510
  if (Symbol.dispose) Workspace.prototype[Symbol.dispose] = Workspace.prototype.free;
723
511
 
724
512
  export function main() {
725
513
  wasm.main();
726
514
  }
727
-
728
- export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
515
+ export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
729
516
  const ret = Error(getStringFromWasm0(arg0, arg1));
730
517
  return ret;
731
- };
732
-
733
- export function __wbg_Number_2d1dcfcf4ec51736(arg0) {
518
+ }
519
+ export function __wbg_Number_e6ffdb596c888833(arg0) {
734
520
  const ret = Number(arg0);
735
521
  return ret;
736
- };
737
-
738
- export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
522
+ }
523
+ export function __wbg_String_8564e559799eccda(arg0, arg1) {
739
524
  const ret = String(arg1);
740
525
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
741
526
  const len1 = WASM_VECTOR_LEN;
742
527
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
743
528
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
744
- };
745
-
746
- export function __wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d(arg0, arg1) {
529
+ }
530
+ export function __wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2(arg0, arg1) {
747
531
  const v = arg1;
748
532
  const ret = typeof(v) === 'bigint' ? v : undefined;
749
533
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
750
534
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
751
- };
752
-
753
- export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
535
+ }
536
+ export function __wbg___wbindgen_boolean_get_a86c216575a75c30(arg0) {
754
537
  const v = arg0;
755
538
  const ret = typeof(v) === 'boolean' ? v : undefined;
756
539
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
757
- };
758
-
759
- export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
540
+ }
541
+ export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
760
542
  const ret = debugString(arg1);
761
543
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
762
544
  const len1 = WASM_VECTOR_LEN;
763
545
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
764
546
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
765
- };
766
-
767
- export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
547
+ }
548
+ export function __wbg___wbindgen_in_4bd7a57e54337366(arg0, arg1) {
768
549
  const ret = arg0 in arg1;
769
550
  return ret;
770
- };
771
-
772
- export function __wbg___wbindgen_is_bigint_0e1a2e3f55cfae27(arg0) {
551
+ }
552
+ export function __wbg___wbindgen_is_bigint_6c98f7e945dacdde(arg0) {
773
553
  const ret = typeof(arg0) === 'bigint';
774
554
  return ret;
775
- };
776
-
777
- export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
555
+ }
556
+ export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
778
557
  const ret = typeof(arg0) === 'function';
779
558
  return ret;
780
- };
781
-
782
- export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
559
+ }
560
+ export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
783
561
  const val = arg0;
784
562
  const ret = typeof(val) === 'object' && val !== null;
785
563
  return ret;
786
- };
787
-
788
- export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
564
+ }
565
+ export function __wbg___wbindgen_is_string_b29b5c5a8065ba1a(arg0) {
789
566
  const ret = typeof(arg0) === 'string';
790
567
  return ret;
791
- };
792
-
793
- export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
568
+ }
569
+ export function __wbg___wbindgen_is_undefined_c0cca72b82b86f4d(arg0) {
794
570
  const ret = arg0 === undefined;
795
571
  return ret;
796
- };
797
-
798
- export function __wbg___wbindgen_jsval_eq_b6101cc9cef1fe36(arg0, arg1) {
572
+ }
573
+ export function __wbg___wbindgen_jsval_eq_7d430e744a913d26(arg0, arg1) {
799
574
  const ret = arg0 === arg1;
800
575
  return ret;
801
- };
802
-
803
- export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
576
+ }
577
+ export function __wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944(arg0, arg1) {
804
578
  const ret = arg0 == arg1;
805
579
  return ret;
806
- };
807
-
808
- export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
580
+ }
581
+ export function __wbg___wbindgen_number_get_7579aab02a8a620c(arg0, arg1) {
809
582
  const obj = arg1;
810
583
  const ret = typeof(obj) === 'number' ? obj : undefined;
811
584
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
812
585
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
813
- };
814
-
815
- export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
586
+ }
587
+ export function __wbg___wbindgen_string_get_914df97fcfa788f2(arg0, arg1) {
816
588
  const obj = arg1;
817
589
  const ret = typeof(obj) === 'string' ? obj : undefined;
818
590
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
819
591
  var len1 = WASM_VECTOR_LEN;
820
592
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
821
593
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
822
- };
823
-
824
- export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
594
+ }
595
+ export function __wbg___wbindgen_throw_81fc77679af83bc6(arg0, arg1) {
825
596
  throw new Error(getStringFromWasm0(arg0, arg1));
826
- };
827
-
828
- export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
597
+ }
598
+ export function __wbg_call_7f2987183bb62793() { return handleError(function (arg0, arg1) {
829
599
  const ret = arg0.call(arg1);
830
600
  return ret;
831
- }, arguments) };
832
-
833
- export function __wbg_done_62ea16af4ce34b24(arg0) {
601
+ }, arguments); }
602
+ export function __wbg_done_547d467e97529006(arg0) {
834
603
  const ret = arg0.done;
835
604
  return ret;
836
- };
837
-
838
- export function __wbg_entries_83c79938054e065f(arg0) {
605
+ }
606
+ export function __wbg_entries_616b1a459b85be0b(arg0) {
839
607
  const ret = Object.entries(arg0);
840
608
  return ret;
841
- };
842
-
843
- export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
609
+ }
610
+ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
844
611
  let deferred0_0;
845
612
  let deferred0_1;
846
613
  try {
@@ -850,24 +617,24 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
850
617
  } finally {
851
618
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
852
619
  }
853
- };
854
-
855
- export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
620
+ }
621
+ export function __wbg_get_4848e350b40afc16(arg0, arg1) {
856
622
  const ret = arg0[arg1 >>> 0];
857
623
  return ret;
858
- };
859
-
860
- export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
624
+ }
625
+ export function __wbg_get_ed0642c4b9d31ddf() { return handleError(function (arg0, arg1) {
861
626
  const ret = Reflect.get(arg0, arg1);
862
627
  return ret;
863
- }, arguments) };
864
-
865
- export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
628
+ }, arguments); }
629
+ export function __wbg_get_unchecked_7d7babe32e9e6a54(arg0, arg1) {
630
+ const ret = arg0[arg1 >>> 0];
631
+ return ret;
632
+ }
633
+ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
866
634
  const ret = arg0[arg1];
867
635
  return ret;
868
- };
869
-
870
- export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
636
+ }
637
+ export function __wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a(arg0) {
871
638
  let result;
872
639
  try {
873
640
  result = arg0 instanceof ArrayBuffer;
@@ -876,9 +643,8 @@ export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
876
643
  }
877
644
  const ret = result;
878
645
  return ret;
879
- };
880
-
881
- export function __wbg_instanceof_Map_084be8da74364158(arg0) {
646
+ }
647
+ export function __wbg_instanceof_Map_a10a2795ef4bfe97(arg0) {
882
648
  let result;
883
649
  try {
884
650
  result = arg0 instanceof Map;
@@ -887,9 +653,8 @@ export function __wbg_instanceof_Map_084be8da74364158(arg0) {
887
653
  }
888
654
  const ret = result;
889
655
  return ret;
890
- };
891
-
892
- export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
656
+ }
657
+ export function __wbg_instanceof_Uint8Array_4b8da683deb25d72(arg0) {
893
658
  let result;
894
659
  try {
895
660
  result = arg0 instanceof Uint8Array;
@@ -898,162 +663,127 @@ export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
898
663
  }
899
664
  const ret = result;
900
665
  return ret;
901
- };
902
-
903
- export function __wbg_isArray_51fd9e6422c0a395(arg0) {
666
+ }
667
+ export function __wbg_isArray_db61795ad004c139(arg0) {
904
668
  const ret = Array.isArray(arg0);
905
669
  return ret;
906
- };
907
-
908
- export function __wbg_isSafeInteger_ae7d3f054d55fa16(arg0) {
670
+ }
671
+ export function __wbg_isSafeInteger_ea83862ba994770c(arg0) {
909
672
  const ret = Number.isSafeInteger(arg0);
910
673
  return ret;
911
- };
912
-
913
- export function __wbg_iterator_27b7c8b35ab3e86b() {
674
+ }
675
+ export function __wbg_iterator_de403ef31815a3e6() {
914
676
  const ret = Symbol.iterator;
915
677
  return ret;
916
- };
917
-
918
- export function __wbg_length_22ac23eaec9d8053(arg0) {
678
+ }
679
+ export function __wbg_length_0c32cb8543c8e4c8(arg0) {
919
680
  const ret = arg0.length;
920
681
  return ret;
921
- };
922
-
923
- export function __wbg_length_d45040a40c570362(arg0) {
682
+ }
683
+ export function __wbg_length_6e821edde497a532(arg0) {
924
684
  const ret = arg0.length;
925
685
  return ret;
926
- };
927
-
928
- export function __wbg_new_1ba21ce319a06297() {
686
+ }
687
+ export function __wbg_new_227d7c05414eb861() {
688
+ const ret = new Error();
689
+ return ret;
690
+ }
691
+ export function __wbg_new_4f9fafbb3909af72() {
929
692
  const ret = new Object();
930
693
  return ret;
931
- };
932
-
933
- export function __wbg_new_25f239778d6112b9() {
934
- const ret = new Array();
694
+ }
695
+ export function __wbg_new_99cabae501c0a8a0() {
696
+ const ret = new Map();
935
697
  return ret;
936
- };
937
-
938
- export function __wbg_new_6421f6084cc5bc5a(arg0) {
698
+ }
699
+ export function __wbg_new_a560378ea1240b14(arg0) {
939
700
  const ret = new Uint8Array(arg0);
940
701
  return ret;
941
- };
942
-
943
- export function __wbg_new_8a6f238a6ece86ea() {
944
- const ret = new Error();
945
- return ret;
946
- };
947
-
948
- export function __wbg_new_b546ae120718850e() {
949
- const ret = new Map();
950
- return ret;
951
- };
952
-
953
- export function __wbg_new_df1173567d5ff028(arg0, arg1) {
702
+ }
703
+ export function __wbg_new_e3b04b4d53d1b593(arg0, arg1) {
954
704
  const ret = new Error(getStringFromWasm0(arg0, arg1));
955
705
  return ret;
956
- };
957
-
958
- export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
959
- const ret = new Function(getStringFromWasm0(arg0, arg1));
706
+ }
707
+ export function __wbg_new_f3c9df4f38f3f798() {
708
+ const ret = new Array();
960
709
  return ret;
961
- };
962
-
963
- export function __wbg_next_138a17bbf04e926c(arg0) {
710
+ }
711
+ export function __wbg_next_01132ed6134b8ef5(arg0) {
964
712
  const ret = arg0.next;
965
713
  return ret;
966
- };
967
-
968
- export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
714
+ }
715
+ export function __wbg_next_b3713ec761a9dbfd() { return handleError(function (arg0) {
969
716
  const ret = arg0.next();
970
717
  return ret;
971
- }, arguments) };
972
-
973
- export function __wbg_now_2c95c9de01293173(arg0) {
718
+ }, arguments); }
719
+ export function __wbg_now_e7c6795a7f81e10f(arg0) {
974
720
  const ret = arg0.now();
975
721
  return ret;
976
- };
977
-
978
- export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
722
+ }
723
+ export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
979
724
  const ret = arg0.performance;
980
725
  return ret;
981
- };
982
-
983
- export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
726
+ }
727
+ export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
984
728
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
985
- };
986
-
987
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
988
- arg0[arg1] = arg2;
989
- };
990
-
991
- export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
992
- arg0[arg1 >>> 0] = arg2;
993
- };
994
-
995
- export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
729
+ }
730
+ export function __wbg_set_08463b1df38a7e29(arg0, arg1, arg2) {
996
731
  const ret = arg0.set(arg1, arg2);
997
732
  return ret;
998
- };
999
-
1000
- export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
733
+ }
734
+ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
735
+ arg0[arg1] = arg2;
736
+ }
737
+ export function __wbg_set_6c60b2e8ad0e9383(arg0, arg1, arg2) {
738
+ arg0[arg1 >>> 0] = arg2;
739
+ }
740
+ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
1001
741
  const ret = arg1.stack;
1002
742
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1003
743
  const len1 = WASM_VECTOR_LEN;
1004
744
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1005
745
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1006
- };
1007
-
1008
- export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
1009
- const ret = typeof global === 'undefined' ? null : global;
1010
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1011
- };
1012
-
1013
- export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
746
+ }
747
+ export function __wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f() {
1014
748
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1015
749
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1016
- };
1017
-
1018
- export function __wbg_static_accessor_SELF_08f5a74c69739274() {
750
+ }
751
+ export function __wbg_static_accessor_GLOBAL_f2e0f995a21329ff() {
752
+ const ret = typeof global === 'undefined' ? null : global;
753
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
754
+ }
755
+ export function __wbg_static_accessor_SELF_24f78b6d23f286ea() {
1019
756
  const ret = typeof self === 'undefined' ? null : self;
1020
757
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1021
- };
1022
-
1023
- export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
758
+ }
759
+ export function __wbg_static_accessor_WINDOW_59fd959c540fe405() {
1024
760
  const ret = typeof window === 'undefined' ? null : window;
1025
761
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1026
- };
1027
-
1028
- export function __wbg_value_57b7b035e117f7ee(arg0) {
762
+ }
763
+ export function __wbg_value_7f6052747ccf940f(arg0) {
1029
764
  const ret = arg0.value;
1030
765
  return ret;
1031
- };
1032
-
1033
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
766
+ }
767
+ export function __wbindgen_cast_0000000000000001(arg0) {
768
+ // Cast intrinsic for `F64 -> Externref`.
769
+ const ret = arg0;
770
+ return ret;
771
+ }
772
+ export function __wbindgen_cast_0000000000000002(arg0) {
773
+ // Cast intrinsic for `I64 -> Externref`.
774
+ const ret = arg0;
775
+ return ret;
776
+ }
777
+ export function __wbindgen_cast_0000000000000003(arg0, arg1) {
1034
778
  // Cast intrinsic for `Ref(String) -> Externref`.
1035
779
  const ret = getStringFromWasm0(arg0, arg1);
1036
780
  return ret;
1037
- };
1038
-
1039
- export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
781
+ }
782
+ export function __wbindgen_cast_0000000000000004(arg0) {
1040
783
  // Cast intrinsic for `U64 -> Externref`.
1041
784
  const ret = BigInt.asUintN(64, arg0);
1042
785
  return ret;
1043
- };
1044
-
1045
- export function __wbindgen_cast_9ae0607507abb057(arg0) {
1046
- // Cast intrinsic for `I64 -> Externref`.
1047
- const ret = arg0;
1048
- return ret;
1049
- };
1050
-
1051
- export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
1052
- // Cast intrinsic for `F64 -> Externref`.
1053
- const ret = arg0;
1054
- return ret;
1055
- };
1056
-
786
+ }
1057
787
  export function __wbindgen_init_externref_table() {
1058
788
  const table = wasm.__wbindgen_externrefs;
1059
789
  const offset = table.grow(4);
@@ -1062,4 +792,214 @@ export function __wbindgen_init_externref_table() {
1062
792
  table.set(offset + 1, null);
1063
793
  table.set(offset + 2, true);
1064
794
  table.set(offset + 3, false);
1065
- };
795
+ }
796
+ const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
797
+ ? { register: () => {}, unregister: () => {} }
798
+ : new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
799
+ const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
800
+ ? { register: () => {}, unregister: () => {} }
801
+ : new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
802
+ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
803
+ ? { register: () => {}, unregister: () => {} }
804
+ : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
805
+
806
+ function addToExternrefTable0(obj) {
807
+ const idx = wasm.__externref_table_alloc();
808
+ wasm.__wbindgen_externrefs.set(idx, obj);
809
+ return idx;
810
+ }
811
+
812
+ function _assertClass(instance, klass) {
813
+ if (!(instance instanceof klass)) {
814
+ throw new Error(`expected instance of ${klass.name}`);
815
+ }
816
+ }
817
+
818
+ function debugString(val) {
819
+ // primitive types
820
+ const type = typeof val;
821
+ if (type == 'number' || type == 'boolean' || val == null) {
822
+ return `${val}`;
823
+ }
824
+ if (type == 'string') {
825
+ return `"${val}"`;
826
+ }
827
+ if (type == 'symbol') {
828
+ const description = val.description;
829
+ if (description == null) {
830
+ return 'Symbol';
831
+ } else {
832
+ return `Symbol(${description})`;
833
+ }
834
+ }
835
+ if (type == 'function') {
836
+ const name = val.name;
837
+ if (typeof name == 'string' && name.length > 0) {
838
+ return `Function(${name})`;
839
+ } else {
840
+ return 'Function';
841
+ }
842
+ }
843
+ // objects
844
+ if (Array.isArray(val)) {
845
+ const length = val.length;
846
+ let debug = '[';
847
+ if (length > 0) {
848
+ debug += debugString(val[0]);
849
+ }
850
+ for(let i = 1; i < length; i++) {
851
+ debug += ', ' + debugString(val[i]);
852
+ }
853
+ debug += ']';
854
+ return debug;
855
+ }
856
+ // Test for built-in
857
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
858
+ let className;
859
+ if (builtInMatches && builtInMatches.length > 1) {
860
+ className = builtInMatches[1];
861
+ } else {
862
+ // Failed to match the standard '[object ClassName]'
863
+ return toString.call(val);
864
+ }
865
+ if (className == 'Object') {
866
+ // we're a user defined class or Object
867
+ // JSON.stringify avoids problems with cycles, and is generally much
868
+ // easier than looping through ownProperties of `val`.
869
+ try {
870
+ return 'Object(' + JSON.stringify(val) + ')';
871
+ } catch (_) {
872
+ return 'Object';
873
+ }
874
+ }
875
+ // errors
876
+ if (val instanceof Error) {
877
+ return `${val.name}: ${val.message}\n${val.stack}`;
878
+ }
879
+ // TODO we could test for more things here, like `Set`s and `Map`s.
880
+ return className;
881
+ }
882
+
883
+ function getArrayU8FromWasm0(ptr, len) {
884
+ ptr = ptr >>> 0;
885
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
886
+ }
887
+
888
+ let cachedDataViewMemory0 = null;
889
+ function getDataViewMemory0() {
890
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
891
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
892
+ }
893
+ return cachedDataViewMemory0;
894
+ }
895
+
896
+ function getStringFromWasm0(ptr, len) {
897
+ ptr = ptr >>> 0;
898
+ return decodeText(ptr, len);
899
+ }
900
+
901
+ let cachedUint8ArrayMemory0 = null;
902
+ function getUint8ArrayMemory0() {
903
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
904
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
905
+ }
906
+ return cachedUint8ArrayMemory0;
907
+ }
908
+
909
+ function handleError(f, args) {
910
+ try {
911
+ return f.apply(this, args);
912
+ } catch (e) {
913
+ const idx = addToExternrefTable0(e);
914
+ wasm.__wbindgen_exn_store(idx);
915
+ }
916
+ }
917
+
918
+ function isLikeNone(x) {
919
+ return x === undefined || x === null;
920
+ }
921
+
922
+ function passArray8ToWasm0(arg, malloc) {
923
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
924
+ getUint8ArrayMemory0().set(arg, ptr / 1);
925
+ WASM_VECTOR_LEN = arg.length;
926
+ return ptr;
927
+ }
928
+
929
+ function passStringToWasm0(arg, malloc, realloc) {
930
+ if (realloc === undefined) {
931
+ const buf = cachedTextEncoder.encode(arg);
932
+ const ptr = malloc(buf.length, 1) >>> 0;
933
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
934
+ WASM_VECTOR_LEN = buf.length;
935
+ return ptr;
936
+ }
937
+
938
+ let len = arg.length;
939
+ let ptr = malloc(len, 1) >>> 0;
940
+
941
+ const mem = getUint8ArrayMemory0();
942
+
943
+ let offset = 0;
944
+
945
+ for (; offset < len; offset++) {
946
+ const code = arg.charCodeAt(offset);
947
+ if (code > 0x7F) break;
948
+ mem[ptr + offset] = code;
949
+ }
950
+ if (offset !== len) {
951
+ if (offset !== 0) {
952
+ arg = arg.slice(offset);
953
+ }
954
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
955
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
956
+ const ret = cachedTextEncoder.encodeInto(arg, view);
957
+
958
+ offset += ret.written;
959
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
960
+ }
961
+
962
+ WASM_VECTOR_LEN = offset;
963
+ return ptr;
964
+ }
965
+
966
+ function takeFromExternrefTable0(idx) {
967
+ const value = wasm.__wbindgen_externrefs.get(idx);
968
+ wasm.__externref_table_dealloc(idx);
969
+ return value;
970
+ }
971
+
972
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
973
+ cachedTextDecoder.decode();
974
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
975
+ let numBytesDecoded = 0;
976
+ function decodeText(ptr, len) {
977
+ numBytesDecoded += len;
978
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
979
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
980
+ cachedTextDecoder.decode();
981
+ numBytesDecoded = len;
982
+ }
983
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
984
+ }
985
+
986
+ const cachedTextEncoder = new TextEncoder();
987
+
988
+ if (!('encodeInto' in cachedTextEncoder)) {
989
+ cachedTextEncoder.encodeInto = function (arg, view) {
990
+ const buf = cachedTextEncoder.encode(arg);
991
+ view.set(buf);
992
+ return {
993
+ read: arg.length,
994
+ written: buf.length
995
+ };
996
+ };
997
+ }
998
+
999
+ let WASM_VECTOR_LEN = 0;
1000
+
1001
+
1002
+ let wasm;
1003
+ export function __wbg_set_wasm(val) {
1004
+ wasm = val;
1005
+ }