@duckdb/duckdb-wasm-shell 1.29.1-dev77.0 → 1.30.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/dist/shell.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@duckdb/duckdb-wasm-shell",
4
- version: "1.29.1-dev77.0",
4
+ version: "1.30.0",
5
5
  description: "",
6
6
  author: "Andre Kohn <kohn.a@outlook.com>",
7
7
  license: "MIT",
@@ -25,7 +25,7 @@ var package_default = {
25
25
  "csv"
26
26
  ],
27
27
  dependencies: {
28
- "@duckdb/duckdb-wasm": "^1.29.1-dev77.0",
28
+ "@duckdb/duckdb-wasm": "^1.30.0",
29
29
  xterm: "^5.3.0",
30
30
  "xterm-addon-fit": "^0.8.0",
31
31
  "xterm-addon-web-links": "^0.9.0",
@@ -92,55 +92,13 @@ import { FitAddon } from "xterm-addon-fit";
92
92
  import { WebLinksAddon } from "xterm-addon-web-links";
93
93
  import { WebglAddon } from "xterm-addon-webgl";
94
94
  var wasm;
95
- var heap = new Array(128).fill(void 0);
96
- heap.push(void 0, null, true, false);
97
- function getObject(idx) {
98
- return heap[idx];
99
- }
100
- var heap_next = heap.length;
101
- function dropObject(idx) {
102
- if (idx < 132)
103
- return;
104
- heap[idx] = heap_next;
105
- heap_next = idx;
106
- }
107
- function takeObject(idx) {
108
- const ret = getObject(idx);
109
- dropObject(idx);
110
- return ret;
111
- }
112
- function isLikeNone(x) {
113
- return x === void 0 || x === null;
114
- }
115
- var cachedFloat64Memory0 = null;
116
- function getFloat64Memory0() {
117
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
118
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
119
- }
120
- return cachedFloat64Memory0;
121
- }
122
- var cachedInt32Memory0 = null;
123
- function getInt32Memory0() {
124
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
125
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
126
- }
127
- return cachedInt32Memory0;
128
- }
129
- function addHeapObject(obj) {
130
- if (heap_next === heap.length)
131
- heap.push(heap.length + 1);
132
- const idx = heap_next;
133
- heap_next = heap[idx];
134
- heap[idx] = obj;
135
- return idx;
136
- }
137
95
  var WASM_VECTOR_LEN = 0;
138
- var cachedUint8Memory0 = null;
139
- function getUint8Memory0() {
140
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
141
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
96
+ var cachedUint8ArrayMemory0 = null;
97
+ function getUint8ArrayMemory0() {
98
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
99
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
142
100
  }
143
- return cachedUint8Memory0;
101
+ return cachedUint8ArrayMemory0;
144
102
  }
145
103
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
146
104
  throw Error("TextEncoder not available");
@@ -159,13 +117,13 @@ function passStringToWasm0(arg, malloc, realloc) {
159
117
  if (realloc === void 0) {
160
118
  const buf = cachedTextEncoder.encode(arg);
161
119
  const ptr2 = malloc(buf.length, 1) >>> 0;
162
- getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf);
120
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
163
121
  WASM_VECTOR_LEN = buf.length;
164
122
  return ptr2;
165
123
  }
166
124
  let len = arg.length;
167
125
  let ptr = malloc(len, 1) >>> 0;
168
- const mem = getUint8Memory0();
126
+ const mem = getUint8ArrayMemory0();
169
127
  let offset = 0;
170
128
  for (; offset < len; offset++) {
171
129
  const code = arg.charCodeAt(offset);
@@ -178,13 +136,92 @@ function passStringToWasm0(arg, malloc, realloc) {
178
136
  arg = arg.slice(offset);
179
137
  }
180
138
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
181
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
139
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
182
140
  const ret = encodeString(arg, view);
183
141
  offset += ret.written;
142
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
184
143
  }
185
144
  WASM_VECTOR_LEN = offset;
186
145
  return ptr;
187
146
  }
147
+ var cachedDataViewMemory0 = null;
148
+ function getDataViewMemory0() {
149
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
150
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
151
+ }
152
+ return cachedDataViewMemory0;
153
+ }
154
+ function addToExternrefTable0(obj) {
155
+ const idx = wasm.__externref_table_alloc();
156
+ wasm.__wbindgen_export_4.set(idx, obj);
157
+ return idx;
158
+ }
159
+ function handleError(f, args) {
160
+ try {
161
+ return f.apply(this, args);
162
+ } catch (e) {
163
+ const idx = addToExternrefTable0(e);
164
+ wasm.__wbindgen_exn_store(idx);
165
+ }
166
+ }
167
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
168
+ throw Error("TextDecoder not available");
169
+ } };
170
+ if (typeof TextDecoder !== "undefined") {
171
+ cachedTextDecoder.decode();
172
+ }
173
+ function getStringFromWasm0(ptr, len) {
174
+ ptr = ptr >>> 0;
175
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
176
+ }
177
+ var cachedUint32ArrayMemory0 = null;
178
+ function getUint32ArrayMemory0() {
179
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
180
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
181
+ }
182
+ return cachedUint32ArrayMemory0;
183
+ }
184
+ function passArray32ToWasm0(arg, malloc) {
185
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
186
+ getUint32ArrayMemory0().set(arg, ptr / 4);
187
+ WASM_VECTOR_LEN = arg.length;
188
+ return ptr;
189
+ }
190
+ function isLikeNone(x) {
191
+ return x === void 0 || x === null;
192
+ }
193
+ function passArray8ToWasm0(arg, malloc) {
194
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
195
+ getUint8ArrayMemory0().set(arg, ptr / 1);
196
+ WASM_VECTOR_LEN = arg.length;
197
+ return ptr;
198
+ }
199
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
200
+ }, unregister: () => {
201
+ } } : new FinalizationRegistry((state) => {
202
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
203
+ });
204
+ function makeMutClosure(arg0, arg1, dtor, f) {
205
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
206
+ const real = (...args) => {
207
+ state.cnt++;
208
+ const a = state.a;
209
+ state.a = 0;
210
+ try {
211
+ return f(a, state.b, ...args);
212
+ } finally {
213
+ if (--state.cnt === 0) {
214
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
215
+ CLOSURE_DTORS.unregister(state);
216
+ } else {
217
+ state.a = a;
218
+ }
219
+ }
220
+ };
221
+ real.original = state;
222
+ CLOSURE_DTORS.register(real, state, state);
223
+ return real;
224
+ }
188
225
  function debugString(val) {
189
226
  const type = typeof val;
190
227
  if (type == "number" || type == "boolean" || val == null) {
@@ -223,7 +260,7 @@ function debugString(val) {
223
260
  }
224
261
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
225
262
  let className;
226
- if (builtInMatches.length > 1) {
263
+ if (builtInMatches && builtInMatches.length > 1) {
227
264
  className = builtInMatches[1];
228
265
  } else {
229
266
  return toString.call(val);
@@ -240,53 +277,15 @@ function debugString(val) {
240
277
  }
241
278
  return className;
242
279
  }
243
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
244
- throw Error("TextDecoder not available");
245
- } };
246
- if (typeof TextDecoder !== "undefined") {
247
- cachedTextDecoder.decode();
248
- }
249
- function getStringFromWasm0(ptr, len) {
250
- ptr = ptr >>> 0;
251
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
252
- }
253
- function makeMutClosure(arg0, arg1, dtor, f) {
254
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
255
- const real = (...args) => {
256
- state.cnt++;
257
- const a = state.a;
258
- state.a = 0;
259
- try {
260
- return f(a, state.b, ...args);
261
- } finally {
262
- if (--state.cnt === 0) {
263
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
264
- } else {
265
- state.a = a;
266
- }
267
- }
268
- };
269
- real.original = state;
270
- return real;
271
- }
272
- function __wbg_adapter_22(arg0, arg1, arg2) {
273
- const ret = wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbcab8150e904b6b6(arg0, arg1, addHeapObject(arg2));
274
- return ret !== 0;
275
- }
276
- function __wbg_adapter_25(arg0, arg1, arg2) {
277
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he614c323b7a46a07(arg0, arg1, addHeapObject(arg2));
280
+ function takeFromExternrefTable0(idx) {
281
+ const value = wasm.__wbindgen_export_4.get(idx);
282
+ wasm.__externref_table_dealloc(idx);
283
+ return value;
278
284
  }
279
285
  function embed(elem, runtime, options) {
280
- try {
281
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
282
- wasm.embed(retptr, addHeapObject(elem), addHeapObject(runtime), addHeapObject(options));
283
- var r0 = getInt32Memory0()[retptr / 4 + 0];
284
- var r1 = getInt32Memory0()[retptr / 4 + 1];
285
- if (r1) {
286
- throw takeObject(r0);
287
- }
288
- } finally {
289
- wasm.__wbindgen_add_to_stack_pointer(16);
286
+ const ret = wasm.embed(elem, runtime, options);
287
+ if (ret[1]) {
288
+ throw takeFromExternrefTable0(ret[0]);
290
289
  }
291
290
  }
292
291
  function write(text) {
@@ -302,97 +301,75 @@ function writeln(text) {
302
301
  function resize(_width, _height) {
303
302
  wasm.resize(_width, _height);
304
303
  }
305
- var stack_pointer = 128;
306
- function addBorrowedObject(obj) {
307
- if (stack_pointer == 1)
308
- throw new Error("out of js stack");
309
- heap[--stack_pointer] = obj;
310
- return stack_pointer;
311
- }
312
304
  function loadHistory(history, cursor) {
313
- try {
314
- wasm.loadHistory(addBorrowedObject(history), cursor);
315
- } finally {
316
- heap[stack_pointer++] = void 0;
317
- }
305
+ wasm.loadHistory(history, cursor);
318
306
  }
319
307
  function passInitQueries(queries) {
320
- const ret = wasm.passInitQueries(addHeapObject(queries));
321
- return takeObject(ret);
308
+ const ret = wasm.passInitQueries(queries);
309
+ return ret;
322
310
  }
323
311
  function configureDatabase(db) {
324
- const ret = wasm.configureDatabase(addHeapObject(db));
325
- return takeObject(ret);
326
- }
327
- function handleError(f, args) {
328
- try {
329
- return f.apply(this, args);
330
- } catch (e) {
331
- wasm.__wbindgen_exn_store(addHeapObject(e));
332
- }
333
- }
334
- var cachedUint32Memory0 = null;
335
- function getUint32Memory0() {
336
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
337
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
338
- }
339
- return cachedUint32Memory0;
312
+ const ret = wasm.configureDatabase(db);
313
+ return ret;
340
314
  }
341
- function passArray32ToWasm0(arg, malloc) {
342
- const ptr = malloc(arg.length * 4, 4) >>> 0;
343
- getUint32Memory0().set(arg, ptr / 4);
344
- WASM_VECTOR_LEN = arg.length;
345
- return ptr;
315
+ function __wbg_adapter_26(arg0, arg1, arg2) {
316
+ const ret = wasm.closure142_externref_shim(arg0, arg1, arg2);
317
+ return ret !== 0;
346
318
  }
347
- function passArray8ToWasm0(arg, malloc) {
348
- const ptr = malloc(arg.length * 1, 1) >>> 0;
349
- getUint8Memory0().set(arg, ptr / 1);
350
- WASM_VECTOR_LEN = arg.length;
351
- return ptr;
319
+ function __wbg_adapter_29(arg0, arg1, arg2) {
320
+ wasm.closure179_externref_shim(arg0, arg1, arg2);
352
321
  }
353
- function __wbg_adapter_213(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h371e4fd76bd48373(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
322
+ function __wbg_adapter_221(arg0, arg1, arg2, arg3) {
323
+ wasm.closure1172_externref_shim(arg0, arg1, arg2, arg3);
355
324
  }
356
- var ShellInputContext = Object.freeze({ FileInput: 0, "0": "FileInput" });
357
- var WcWidth = Object.freeze({ Width0: 0, "0": "Width0", Width1: 1, "1": "Width1", Width2: 2, "2": "Width2" });
325
+ var ShellInputContext = Object.freeze({
326
+ FileInput: 0,
327
+ "0": "FileInput"
328
+ });
329
+ var WcWidth = Object.freeze({
330
+ Width0: 0,
331
+ "0": "Width0",
332
+ Width1: 1,
333
+ "1": "Width1",
334
+ Width2: 2,
335
+ "2": "Width2"
336
+ });
337
+ var DuckDBConfigFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
338
+ }, unregister: () => {
339
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_duckdbconfig_free(ptr >>> 0, 1));
358
340
  var DuckDBConfig = class _DuckDBConfig {
359
341
  static __wrap(ptr) {
360
342
  ptr = ptr >>> 0;
361
343
  const obj = Object.create(_DuckDBConfig.prototype);
362
344
  obj.__wbg_ptr = ptr;
345
+ DuckDBConfigFinalization.register(obj, obj.__wbg_ptr, obj);
363
346
  return obj;
364
347
  }
365
348
  __destroy_into_raw() {
366
349
  const ptr = this.__wbg_ptr;
367
350
  this.__wbg_ptr = 0;
351
+ DuckDBConfigFinalization.unregister(this);
368
352
  return ptr;
369
353
  }
370
354
  free() {
371
355
  const ptr = this.__destroy_into_raw();
372
- wasm.__wbg_duckdbconfig_free(ptr);
356
+ wasm.__wbg_duckdbconfig_free(ptr, 0);
373
357
  }
374
358
  /**
375
- * @returns {string | undefined}
376
- */
359
+ * @returns {string | undefined}
360
+ */
377
361
  get path() {
378
- try {
379
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
380
- wasm.duckdbconfig_path(retptr, this.__wbg_ptr);
381
- var r0 = getInt32Memory0()[retptr / 4 + 0];
382
- var r1 = getInt32Memory0()[retptr / 4 + 1];
383
- let v1;
384
- if (r0 !== 0) {
385
- v1 = getStringFromWasm0(r0, r1).slice();
386
- wasm.__wbindgen_free(r0, r1 * 1);
387
- }
388
- return v1;
389
- } finally {
390
- wasm.__wbindgen_add_to_stack_pointer(16);
362
+ const ret = wasm.duckdbconfig_path(this.__wbg_ptr);
363
+ let v1;
364
+ if (ret[0] !== 0) {
365
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
366
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
391
367
  }
368
+ return v1;
392
369
  }
393
370
  /**
394
- * @param {string | undefined} path
395
- */
371
+ * @param {string | null} [path]
372
+ */
396
373
  set path(path) {
397
374
  var ptr0 = isLikeNone(path) ? 0 : passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
375
  var len0 = WASM_VECTOR_LEN;
@@ -406,7 +383,7 @@ async function __wbg_load(module, imports) {
406
383
  return await WebAssembly.instantiateStreaming(module, imports);
407
384
  } catch (e) {
408
385
  if (module.headers.get("Content-Type") != "application/wasm") {
409
- 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);
386
+ 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);
410
387
  } else {
411
388
  throw e;
412
389
  }
@@ -426,586 +403,598 @@ async function __wbg_load(module, imports) {
426
403
  function __wbg_get_imports() {
427
404
  const imports = {};
428
405
  imports.wbg = {};
429
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
430
- takeObject(arg0);
406
+ imports.wbg.__wbg_attachCustomKeyEventHandler_5c309ad8c2d6ff9c = function(arg0, arg1) {
407
+ arg0.attachCustomKeyEventHandler(arg1);
431
408
  };
432
- imports.wbg.__wbg_getFeatureFlags_9c3df152bef86fb8 = function() {
433
- return handleError(function(arg0) {
434
- const ret = getObject(arg0).getFeatureFlags();
435
- return addHeapObject(ret);
436
- }, arguments);
437
- };
438
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
439
- const obj = getObject(arg1);
440
- const ret = typeof obj === "number" ? obj : void 0;
441
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
442
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
443
- };
444
- imports.wbg.__wbg_collectFileStatistics_e921aaaeffb34db1 = function() {
445
- return handleError(function(arg0, arg1, arg2, arg3) {
446
- const ret = getObject(arg0).collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
447
- return addHeapObject(ret);
448
- }, arguments);
449
- };
450
- imports.wbg.__wbg_registerOPFSFileName_8efb2b5d0df8d9a7 = function() {
451
- return handleError(function(arg0, arg1, arg2) {
452
- const ret = getObject(arg0).registerOPFSFileName(getStringFromWasm0(arg1, arg2));
453
- return addHeapObject(ret);
454
- }, arguments);
455
- };
456
- imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
457
- return handleError(function(arg0, arg1, arg2) {
458
- const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
459
- return addHeapObject(ret);
460
- }, arguments);
461
- };
462
- imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
463
- const ret = new Terminal(getObject(arg0));
464
- return addHeapObject(ret);
409
+ imports.wbg.__wbg_backgroundColor_51cf19ee7d4b277a = function(arg0, arg1) {
410
+ const ret = arg1.backgroundColor;
411
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
+ const len1 = WASM_VECTOR_LEN;
413
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
414
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
465
415
  };
466
- imports.wbg.__wbg_cols_5c0bdee281fe5dd9 = function(arg0) {
467
- const ret = getObject(arg0).cols;
416
+ imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
417
+ const ret = arg0.bigInt64Array;
468
418
  return ret;
469
419
  };
470
- imports.wbg.__wbg_withWebGL_03eecbba7b231a0f = function(arg0) {
471
- const ret = getObject(arg0).withWebGL;
420
+ imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
421
+ const ret = arg0.blockSize;
472
422
  return ret;
473
423
  };
474
- imports.wbg.__wbg_attachCustomKeyEventHandler_d9201dcf85a52ecb = function(arg0, arg1) {
475
- getObject(arg0).attachCustomKeyEventHandler(getObject(arg1));
424
+ imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
425
+ const ret = arg0.blockStats;
426
+ return ret;
476
427
  };
477
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
478
- const ret = getObject(arg0);
479
- return addHeapObject(ret);
428
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
429
+ const ret = arg0.buffer;
430
+ return ret;
480
431
  };
481
- imports.wbg.__wbg_write_d31c366220b675c8 = function(arg0, arg1, arg2) {
482
- getObject(arg0).write(getStringFromWasm0(arg1, arg2));
432
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
433
+ return handleError(function(arg0, arg1) {
434
+ const ret = arg0.call(arg1);
435
+ return ret;
436
+ }, arguments);
483
437
  };
484
- imports.wbg.__wbg_pushInputToHistory_2b5dfdb10ddcc094 = function() {
438
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
485
439
  return handleError(function(arg0, arg1, arg2) {
486
- const ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
487
- return addHeapObject(ret);
440
+ const ret = arg0.call(arg1, arg2);
441
+ return ret;
488
442
  }, arguments);
489
443
  };
490
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
491
- return handleError(function() {
492
- const ret = getPlatformFeatures();
493
- return addHeapObject(ret);
444
+ imports.wbg.__wbg_collectFileStatistics_d40af29ff6fc8c95 = function() {
445
+ return handleError(function(arg0, arg1, arg2, arg3) {
446
+ const ret = arg0.collectFileStatistics(getStringFromWasm0(arg1, arg2), arg3 !== 0);
447
+ return ret;
494
448
  }, arguments);
495
449
  };
496
- imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
497
- const ret = getObject(arg0).bigInt64Array;
450
+ imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
451
+ const ret = arg0.cols;
498
452
  return ret;
499
453
  };
500
- imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
501
- const ret = getObject(arg0).crossOriginIsolated;
502
- return ret;
454
+ imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
455
+ return handleError(function(arg0) {
456
+ const ret = arg0.connectInternal();
457
+ return ret;
458
+ }, arguments);
503
459
  };
504
- imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
505
- const ret = getObject(arg0).wasmThreads;
460
+ imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
461
+ const ret = new Terminal(arg0);
506
462
  return ret;
507
463
  };
508
- imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
509
- const ret = getObject(arg0).wasmSIMD;
510
- return ret;
464
+ imports.wbg.__wbg_copyFileToBuffer_83cb2af8941ca82a = function() {
465
+ return handleError(function(arg0, arg1, arg2) {
466
+ const ret = arg0.copyFileToBuffer(getStringFromWasm0(arg1, arg2));
467
+ return ret;
468
+ }, arguments);
511
469
  };
512
- imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
513
- const ret = getObject(arg0).wasmBulkMemory;
470
+ imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
471
+ const ret = arg0.crossOriginIsolated;
514
472
  return ret;
515
473
  };
516
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
517
- const ret = getObject(arg0).wasmExceptions;
474
+ imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
475
+ const ret = arg0.ctrlKey;
518
476
  return ret;
519
477
  };
520
- imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
521
- return handleError(function(arg0, arg1, arg2) {
522
- const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
523
- return addHeapObject(ret);
478
+ imports.wbg.__wbg_disconnect_92d81f4ec3f107ec = function() {
479
+ return handleError(function(arg0, arg1) {
480
+ const ret = arg0.disconnect(arg1 >>> 0);
481
+ return ret;
524
482
  }, arguments);
525
483
  };
526
- imports.wbg.__wbg_dropFiles_a67bda4902ba5f36 = function() {
527
- return handleError(function(arg0) {
528
- const ret = getObject(arg0).dropFiles();
529
- return addHeapObject(ret);
484
+ imports.wbg.__wbg_downloadFile_d0dec3d05b3a9f19 = function() {
485
+ return handleError(function(arg0, arg1, arg2, arg3) {
486
+ const ret = arg0.downloadFile(getStringFromWasm0(arg1, arg2), arg3);
487
+ return ret;
530
488
  }, arguments);
531
489
  };
532
- imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
490
+ imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
533
491
  return handleError(function(arg0, arg1, arg2) {
534
- const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
535
- return addHeapObject(ret);
492
+ const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
493
+ return ret;
536
494
  }, arguments);
537
495
  };
538
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
539
- return handleError(function(arg0, arg1, arg2, arg3) {
540
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
541
- return addHeapObject(ret);
496
+ imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
497
+ return handleError(function(arg0) {
498
+ const ret = arg0.dropFiles();
499
+ return ret;
542
500
  }, arguments);
543
501
  };
544
- imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
545
- return handleError(function(arg0, arg1) {
546
- const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
547
- return addHeapObject(ret);
548
- }, arguments);
502
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
503
+ let deferred0_0;
504
+ let deferred0_1;
505
+ try {
506
+ deferred0_0 = arg0;
507
+ deferred0_1 = arg1;
508
+ console.error(getStringFromWasm0(arg0, arg1));
509
+ } finally {
510
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
511
+ }
549
512
  };
550
- imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
551
- return handleError(function(arg0) {
552
- const ret = getObject(arg0).getVersion();
553
- return addHeapObject(ret);
513
+ imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
514
+ console.error(getStringFromWasm0(arg0, arg1));
515
+ };
516
+ imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
517
+ return handleError(function(arg0, arg1, arg2) {
518
+ const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
519
+ return ret;
554
520
  }, arguments);
555
521
  };
556
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
557
- const obj = getObject(arg1);
558
- const ret = typeof obj === "string" ? obj : void 0;
559
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
560
- var len1 = WASM_VECTOR_LEN;
561
- getInt32Memory0()[arg0 / 4 + 1] = len1;
562
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
522
+ imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
523
+ arg0.fit();
524
+ };
525
+ imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
526
+ arg0.focus();
527
+ };
528
+ imports.wbg.__wbg_fontFamily_cac93414dbe897cf = function(arg0, arg1) {
529
+ const ret = arg1.fontFamily;
530
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
531
+ const len1 = WASM_VECTOR_LEN;
532
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
533
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
563
534
  };
564
- imports.wbg.__wbg_connectInternal_21690058186ac42a = function() {
535
+ imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
565
536
  return handleError(function(arg0) {
566
- const ret = getObject(arg0).connectInternal();
567
- return addHeapObject(ret);
537
+ const ret = arg0.getFeatureFlags();
538
+ return ret;
568
539
  }, arguments);
569
540
  };
570
- imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
571
- return handleError(function(arg0, arg1, arg2) {
572
- const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
573
- return addHeapObject(ret);
541
+ imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
542
+ return handleError(function() {
543
+ const ret = getPlatformFeatures();
544
+ return ret;
574
545
  }, arguments);
575
546
  };
576
- imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
547
+ imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
577
548
  return handleError(function(arg0) {
578
- const ret = getObject(arg0).pickFiles();
579
- return addHeapObject(ret);
549
+ const ret = arg0.getVersion();
550
+ return ret;
580
551
  }, arguments);
581
552
  };
582
- imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
583
- return handleError(function(arg0, arg1, arg2, arg3) {
584
- const ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
585
- return addHeapObject(ret);
586
- }, arguments);
553
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
554
+ const ret = arg0[arg1 >>> 0];
555
+ return ret;
587
556
  };
588
- imports.wbg.__wbg_tokenize_f167882593146b7d = function() {
557
+ imports.wbg.__wbg_globFiles_542704d623854358 = function() {
589
558
  return handleError(function(arg0, arg1, arg2) {
590
- const ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2));
591
- return addHeapObject(ret);
559
+ const ret = arg0.globFiles(getStringFromWasm0(arg1, arg2));
560
+ return ret;
592
561
  }, arguments);
593
562
  };
594
- imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
595
- const ret = getObject(arg1).offsets;
596
- const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
597
- const len1 = WASM_VECTOR_LEN;
598
- getInt32Memory0()[arg0 / 4 + 1] = len1;
599
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
563
+ imports.wbg.__wbg_instanceof_WebLinksAddon_3750ea42996e2252 = function(arg0) {
564
+ let result;
565
+ try {
566
+ result = arg0 instanceof WebLinksAddon;
567
+ } catch (_) {
568
+ result = false;
569
+ }
570
+ const ret = result;
571
+ return ret;
600
572
  };
601
- imports.wbg.__wbg_types_b5d339a3bb88320b = function(arg0, arg1) {
602
- const ret = getObject(arg1).types;
603
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
573
+ imports.wbg.__wbg_instanceof_WebglAddon_d96a60a43cae1674 = function(arg0) {
574
+ let result;
575
+ try {
576
+ result = arg0 instanceof WebglAddon;
577
+ } catch (_) {
578
+ result = false;
579
+ }
580
+ const ret = result;
581
+ return ret;
582
+ };
583
+ imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
584
+ let result;
585
+ try {
586
+ result = arg0 instanceof Window;
587
+ } catch (_) {
588
+ result = false;
589
+ }
590
+ const ret = result;
591
+ return ret;
592
+ };
593
+ imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
594
+ const ret = arg1.key;
595
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
604
596
  const len1 = WASM_VECTOR_LEN;
605
- getInt32Memory0()[arg0 / 4 + 1] = len1;
606
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
597
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
598
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
607
599
  };
608
- imports.wbg.__wbg_readClipboardText_f71f3b3a53a23822 = function() {
609
- return handleError(function(arg0) {
610
- const ret = getObject(arg0).readClipboardText();
611
- return addHeapObject(ret);
612
- }, arguments);
600
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
601
+ const ret = arg0.length;
602
+ return ret;
613
603
  };
614
- imports.wbg.__wbg_focus_909df7c111b58b83 = function(arg0) {
615
- getObject(arg0).focus();
604
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
605
+ const ret = arg0.length;
606
+ return ret;
616
607
  };
617
- imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
618
- getObject(arg0).fit();
608
+ imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
609
+ arg0.loadAddon(arg1);
619
610
  };
620
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
621
- return handleError(function(arg0, arg1) {
622
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
623
- return addHeapObject(ret);
624
- }, arguments);
611
+ imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
612
+ console.log(getStringFromWasm0(arg0, arg1));
625
613
  };
626
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
627
- getObject(arg0).rows = arg1 >>> 0;
614
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
615
+ const ret = arg0.message;
616
+ return ret;
628
617
  };
629
- imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
630
- getObject(arg0).cursorBlink = arg1 !== 0;
618
+ imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
619
+ const ret = arg0.metaKey;
620
+ return ret;
621
+ };
622
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
623
+ try {
624
+ var state0 = { a: arg0, b: arg1 };
625
+ var cb0 = (arg02, arg12) => {
626
+ const a = state0.a;
627
+ state0.a = 0;
628
+ try {
629
+ return __wbg_adapter_221(a, state0.b, arg02, arg12);
630
+ } finally {
631
+ state0.a = a;
632
+ }
633
+ };
634
+ const ret = new Promise(cb0);
635
+ return ret;
636
+ } finally {
637
+ state0.a = state0.b = 0;
638
+ }
631
639
  };
632
- imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
633
- getObject(arg0).cursorWidth = arg1 >>> 0;
640
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
641
+ const ret = new Object();
642
+ return ret;
634
643
  };
635
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
636
- const ret = getObject(arg1).fontFamily;
637
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
638
- const len1 = WASM_VECTOR_LEN;
639
- getInt32Memory0()[arg0 / 4 + 1] = len1;
640
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
644
+ imports.wbg.__wbg_new_7890702e2f921af0 = function(arg0) {
645
+ const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
646
+ return ret;
641
647
  };
642
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
643
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
648
+ imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
649
+ const ret = new FitAddon();
650
+ return ret;
644
651
  };
645
- imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
646
- getObject(arg0).fontSize = arg1 >>> 0;
652
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
653
+ const ret = new Error();
654
+ return ret;
647
655
  };
648
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
649
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
656
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
657
+ const ret = new Uint8Array(arg0);
658
+ return ret;
650
659
  };
651
- imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
652
- getObject(arg0).rightClickSelectsWord = arg1 !== 0;
660
+ imports.wbg.__wbg_new_c2ccb7a35264c397 = function(arg0, arg1, arg2) {
661
+ const ret = new WebLinksAddon(arg0, arg1, arg2 === 16777215 ? void 0 : arg2 !== 0);
662
+ return ret;
653
663
  };
654
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
655
- getObject(arg0).allowProposedApi = arg1 !== 0;
664
+ imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
665
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
666
+ return ret;
656
667
  };
657
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
658
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
668
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
669
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
670
+ return ret;
659
671
  };
660
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
661
- getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
672
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
673
+ const ret = arg0.now();
674
+ return ret;
662
675
  };
663
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
664
- const ret = getObject(arg1).backgroundColor;
665
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
676
+ imports.wbg.__wbg_offsets_9a0c43647dfe8174 = function(arg0, arg1) {
677
+ const ret = arg1.offsets;
678
+ const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
666
679
  const len1 = WASM_VECTOR_LEN;
667
- getInt32Memory0()[arg0 / 4 + 1] = len1;
668
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
669
- };
670
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
671
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
680
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
681
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
672
682
  };
673
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
674
- getObject(arg0).theme = getObject(arg1);
683
+ imports.wbg.__wbg_open_89ca330653f2b749 = function() {
684
+ return handleError(function(arg0, arg1) {
685
+ const ret = arg0.open(DuckDBConfig.__wrap(arg1));
686
+ return ret;
687
+ }, arguments);
675
688
  };
676
- imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
677
- getObject(arg0).open(takeObject(arg1));
689
+ imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
690
+ arg0.open(arg1);
678
691
  };
679
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
680
- const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
681
- return addHeapObject(ret);
692
+ imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
693
+ const ret = arg0.performance;
694
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
682
695
  };
683
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
684
- let result;
685
- try {
686
- result = getObject(arg0) instanceof WebglAddon;
687
- } catch (e) {
688
- result = false;
689
- }
690
- const ret = result;
691
- return ret;
696
+ imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
697
+ return handleError(function(arg0) {
698
+ const ret = arg0.pickFiles();
699
+ return ret;
700
+ }, arguments);
692
701
  };
693
- imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
694
- getObject(arg0).loadAddon(takeObject(arg1));
702
+ imports.wbg.__wbg_pushInputToHistory_1549e9c17621ffd1 = function() {
703
+ return handleError(function(arg0, arg1, arg2) {
704
+ const ret = arg0.pushInputToHistory(getStringFromWasm0(arg1, arg2));
705
+ return ret;
706
+ }, arguments);
695
707
  };
696
- imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
697
- const ret = new WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
698
- return addHeapObject(ret);
708
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
709
+ queueMicrotask(arg0);
699
710
  };
700
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
701
- let result;
702
- try {
703
- result = getObject(arg0) instanceof WebLinksAddon;
704
- } catch (e) {
705
- result = false;
706
- }
707
- const ret = result;
711
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
712
+ const ret = arg0.queueMicrotask;
708
713
  return ret;
709
714
  };
710
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
711
- const ret = new FitAddon();
712
- return addHeapObject(ret);
715
+ imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
716
+ return handleError(function(arg0) {
717
+ const ret = arg0.readClipboardText();
718
+ return ret;
719
+ }, arguments);
713
720
  };
714
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
715
- const obj = getObject(arg1);
716
- const ret = JSON.stringify(obj === void 0 ? null : obj);
717
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
718
- const len1 = WASM_VECTOR_LEN;
719
- getInt32Memory0()[arg0 / 4 + 1] = len1;
720
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
721
+ imports.wbg.__wbg_registerOPFSFileName_1ac109036d40476f = function() {
722
+ return handleError(function(arg0, arg1, arg2) {
723
+ const ret = arg0.registerOPFSFileName(getStringFromWasm0(arg1, arg2));
724
+ return ret;
725
+ }, arguments);
721
726
  };
722
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
723
- console.log(getStringFromWasm0(arg0, arg1));
727
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
728
+ const ret = Promise.resolve(arg0);
729
+ return ret;
724
730
  };
725
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
726
- console.error(getStringFromWasm0(arg0, arg1));
731
+ imports.wbg.__wbg_runQuery_dd923bfcee4eae4d = function() {
732
+ return handleError(function(arg0, arg1, arg2, arg3) {
733
+ const ret = arg0.runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
734
+ return ret;
735
+ }, arguments);
727
736
  };
728
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
729
- console.warn(getStringFromWasm0(arg0, arg1));
737
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
738
+ arg0.set(arg1, arg2 >>> 0);
730
739
  };
731
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
732
- const ret = PACKAGE_VERSION2;
733
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
734
- const len1 = WASM_VECTOR_LEN;
735
- getInt32Memory0()[arg0 / 4 + 1] = len1;
736
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
740
+ imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
741
+ arg0.allowProposedApi = arg1 !== 0;
737
742
  };
738
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
739
- const ret = PACKAGE_NAME2;
740
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
741
- const len1 = WASM_VECTOR_LEN;
742
- getInt32Memory0()[arg0 / 4 + 1] = len1;
743
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
743
+ imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
744
+ arg0.background = getStringFromWasm0(arg1, arg2);
744
745
  };
745
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
746
- const ret = getObject(arg0).blockStats;
747
- return addHeapObject(ret);
746
+ imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
747
+ arg0.brightYellow = getStringFromWasm0(arg1, arg2);
748
748
  };
749
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
750
- const ret = getObject(arg0).totalFileWrites;
751
- return addHeapObject(ret);
749
+ imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
750
+ arg0.cursorBlink = arg1 !== 0;
752
751
  };
753
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
754
- const ret = getObject(arg0).totalFileReadsAhead;
755
- return addHeapObject(ret);
752
+ imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
753
+ arg0.cursorWidth = arg1 >>> 0;
756
754
  };
757
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
758
- const ret = getObject(arg0).totalFileReadsCold;
759
- return addHeapObject(ret);
755
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
756
+ arg0.drawBoldTextInBrightColors = arg1 !== 0;
760
757
  };
761
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
762
- const ret = getObject(arg0).totalFileReadsCached;
763
- return addHeapObject(ret);
758
+ imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
759
+ arg0.fontFamily = getStringFromWasm0(arg1, arg2);
764
760
  };
765
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
766
- const ret = getObject(arg0).totalPageAccesses;
767
- return addHeapObject(ret);
761
+ imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
762
+ arg0.fontSize = arg1 >>> 0;
768
763
  };
769
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
770
- const ret = getObject(arg0).totalPageLoads;
771
- return addHeapObject(ret);
764
+ imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
765
+ arg0.foreground = getStringFromWasm0(arg1, arg2);
772
766
  };
773
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
774
- const ret = getObject(arg0).blockSize;
775
- return addHeapObject(ret);
767
+ imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
768
+ arg0.rightClickSelectsWord = arg1 !== 0;
776
769
  };
777
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
778
- const ret = new Error();
779
- return addHeapObject(ret);
770
+ imports.wbg.__wbg_setrows_395bb2f6a40be664 = function(arg0, arg1) {
771
+ arg0.rows = arg1 >>> 0;
780
772
  };
781
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
782
- const ret = getObject(arg1).stack;
773
+ imports.wbg.__wbg_settheme_1b783323a8d2b858 = function(arg0, arg1) {
774
+ arg0.theme = arg1;
775
+ };
776
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
777
+ const ret = arg1.stack;
783
778
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
784
779
  const len1 = WASM_VECTOR_LEN;
785
- getInt32Memory0()[arg0 / 4 + 1] = len1;
786
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
780
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
781
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
787
782
  };
788
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
789
- let deferred0_0;
790
- let deferred0_1;
791
- try {
792
- deferred0_0 = arg0;
793
- deferred0_1 = arg1;
794
- console.error(getStringFromWasm0(arg0, arg1));
795
- } finally {
796
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
797
- }
783
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
784
+ const ret = typeof global === "undefined" ? null : global;
785
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
798
786
  };
799
- imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
800
- let result;
801
- try {
802
- result = getObject(arg0) instanceof Window;
803
- } catch (e) {
804
- result = false;
805
- }
806
- const ret = result;
807
- return ret;
787
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
788
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
789
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
808
790
  };
809
- imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
810
- const ret = getObject(arg0).performance;
811
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
812
- };
813
- imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
814
- const ret = getObject(arg0).ctrlKey;
815
- return ret;
816
- };
817
- imports.wbg.__wbg_metaKey_43193b7cc99f8914 = function(arg0) {
818
- const ret = getObject(arg0).metaKey;
819
- return ret;
820
- };
821
- imports.wbg.__wbg_key_8aeaa079126a9cc7 = function(arg0, arg1) {
822
- const ret = getObject(arg1).key;
791
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
792
+ const ret = PACKAGE_NAME2;
823
793
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
824
794
  const len1 = WASM_VECTOR_LEN;
825
- getInt32Memory0()[arg0 / 4 + 1] = len1;
826
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
795
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
796
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
827
797
  };
828
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
829
- const ret = getObject(arg1).type;
798
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
799
+ const ret = PACKAGE_VERSION2;
830
800
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
831
801
  const len1 = WASM_VECTOR_LEN;
832
- getInt32Memory0()[arg0 / 4 + 1] = len1;
833
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
802
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
803
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
834
804
  };
835
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
836
- const ret = getObject(arg0).now();
837
- return ret;
805
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
806
+ const ret = typeof self === "undefined" ? null : self;
807
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
838
808
  };
839
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
840
- const obj = takeObject(arg0).original;
841
- if (obj.cnt-- == 1) {
842
- obj.a = 0;
843
- return true;
844
- }
845
- const ret = false;
846
- return ret;
809
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
810
+ const ret = typeof window === "undefined" ? null : window;
811
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
847
812
  };
848
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
849
- const ret = getObject(arg0)[arg1 >>> 0];
850
- return addHeapObject(ret);
813
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
814
+ const ret = arg0.then(arg1);
815
+ return ret;
851
816
  };
852
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
853
- const ret = getObject(arg0).length;
817
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
818
+ const ret = arg0.then(arg1, arg2);
854
819
  return ret;
855
820
  };
856
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
857
- const ret = new Function(getStringFromWasm0(arg0, arg1));
858
- return addHeapObject(ret);
821
+ imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
822
+ const ret = arg0.toString();
823
+ return ret;
859
824
  };
860
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
861
- return handleError(function(arg0, arg1) {
862
- const ret = getObject(arg0).call(getObject(arg1));
863
- return addHeapObject(ret);
825
+ imports.wbg.__wbg_tokenize_8a1699f08f37e193 = function() {
826
+ return handleError(function(arg0, arg1, arg2) {
827
+ const ret = arg0.tokenize(getStringFromWasm0(arg1, arg2));
828
+ return ret;
864
829
  }, arguments);
865
830
  };
866
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
867
- const ret = new Object();
868
- return addHeapObject(ret);
831
+ imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
832
+ const ret = arg0.totalFileReadsAhead;
833
+ return ret;
869
834
  };
870
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
871
- return handleError(function() {
872
- const ret = self.self;
873
- return addHeapObject(ret);
874
- }, arguments);
835
+ imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
836
+ const ret = arg0.totalFileReadsCached;
837
+ return ret;
875
838
  };
876
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
877
- return handleError(function() {
878
- const ret = window.window;
879
- return addHeapObject(ret);
880
- }, arguments);
839
+ imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
840
+ const ret = arg0.totalFileReadsCold;
841
+ return ret;
881
842
  };
882
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
883
- return handleError(function() {
884
- const ret = globalThis.globalThis;
885
- return addHeapObject(ret);
886
- }, arguments);
843
+ imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
844
+ const ret = arg0.totalFileWrites;
845
+ return ret;
887
846
  };
888
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
889
- return handleError(function() {
890
- const ret = global.global;
891
- return addHeapObject(ret);
892
- }, arguments);
847
+ imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
848
+ const ret = arg0.totalPageAccesses;
849
+ return ret;
893
850
  };
894
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
895
- const ret = getObject(arg0) === void 0;
851
+ imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
852
+ const ret = arg0.totalPageLoads;
896
853
  return ret;
897
854
  };
898
- imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
899
- const ret = new Error(getStringFromWasm0(arg0, arg1));
900
- return addHeapObject(ret);
855
+ imports.wbg.__wbg_type_16f2b8031796512f = function(arg0, arg1) {
856
+ const ret = arg1.type;
857
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
858
+ const len1 = WASM_VECTOR_LEN;
859
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
860
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
901
861
  };
902
- imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
903
- const ret = getObject(arg0).message;
904
- return addHeapObject(ret);
862
+ imports.wbg.__wbg_types_10068f549973c623 = function(arg0, arg1) {
863
+ const ret = arg1.types;
864
+ const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
865
+ const len1 = WASM_VECTOR_LEN;
866
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
867
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
905
868
  };
906
- imports.wbg.__wbg_toString_1c056108b87ba68b = function(arg0) {
907
- const ret = getObject(arg0).toString();
908
- return addHeapObject(ret);
869
+ imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
870
+ console.warn(getStringFromWasm0(arg0, arg1));
909
871
  };
910
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
911
- return handleError(function(arg0, arg1, arg2) {
912
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
913
- return addHeapObject(ret);
914
- }, arguments);
872
+ imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
873
+ const ret = arg0.wasmBulkMemory;
874
+ return ret;
915
875
  };
916
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
917
- try {
918
- var state0 = { a: arg0, b: arg1 };
919
- var cb0 = (arg02, arg12) => {
920
- const a = state0.a;
921
- state0.a = 0;
922
- try {
923
- return __wbg_adapter_213(a, state0.b, arg02, arg12);
924
- } finally {
925
- state0.a = a;
926
- }
927
- };
928
- const ret = new Promise(cb0);
929
- return addHeapObject(ret);
930
- } finally {
931
- state0.a = state0.b = 0;
932
- }
876
+ imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
877
+ const ret = arg0.wasmExceptions;
878
+ return ret;
933
879
  };
934
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
935
- const ret = Promise.resolve(getObject(arg0));
936
- return addHeapObject(ret);
880
+ imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
881
+ const ret = arg0.wasmSIMD;
882
+ return ret;
937
883
  };
938
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
939
- const ret = getObject(arg0).then(getObject(arg1));
940
- return addHeapObject(ret);
884
+ imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
885
+ const ret = arg0.wasmThreads;
886
+ return ret;
941
887
  };
942
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
943
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
944
- return addHeapObject(ret);
888
+ imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
889
+ const ret = arg0.withWebGL;
890
+ return ret;
945
891
  };
946
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
947
- const ret = getObject(arg0).buffer;
948
- return addHeapObject(ret);
892
+ imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
893
+ arg0.write(getStringFromWasm0(arg1, arg2));
949
894
  };
950
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
951
- const ret = new Uint8Array(getObject(arg0));
952
- return addHeapObject(ret);
895
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
896
+ const obj = arg0.original;
897
+ if (obj.cnt-- == 1) {
898
+ obj.a = 0;
899
+ return true;
900
+ }
901
+ const ret = false;
902
+ return ret;
953
903
  };
954
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
955
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
904
+ imports.wbg.__wbindgen_closure_wrapper432 = function(arg0, arg1, arg2) {
905
+ const ret = makeMutClosure(arg0, arg1, 143, __wbg_adapter_26);
906
+ return ret;
956
907
  };
957
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
958
- const ret = getObject(arg0).length;
908
+ imports.wbg.__wbindgen_closure_wrapper918 = function(arg0, arg1, arg2) {
909
+ const ret = makeMutClosure(arg0, arg1, 180, __wbg_adapter_29);
959
910
  return ret;
960
911
  };
961
912
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
962
- const ret = debugString(getObject(arg1));
913
+ const ret = debugString(arg1);
963
914
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
964
915
  const len1 = WASM_VECTOR_LEN;
965
- getInt32Memory0()[arg0 / 4 + 1] = len1;
966
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
916
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
917
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
918
+ };
919
+ imports.wbg.__wbindgen_init_externref_table = function() {
920
+ const table = wasm.__wbindgen_export_4;
921
+ const offset = table.grow(4);
922
+ table.set(0, void 0);
923
+ table.set(offset + 0, void 0);
924
+ table.set(offset + 1, null);
925
+ table.set(offset + 2, true);
926
+ table.set(offset + 3, false);
927
+ ;
928
+ };
929
+ imports.wbg.__wbindgen_is_function = function(arg0) {
930
+ const ret = typeof arg0 === "function";
931
+ return ret;
967
932
  };
968
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
969
- throw new Error(getStringFromWasm0(arg0, arg1));
933
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
934
+ const ret = arg0 === void 0;
935
+ return ret;
936
+ };
937
+ imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
938
+ const obj = arg1;
939
+ const ret = JSON.stringify(obj === void 0 ? null : obj);
940
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
941
+ const len1 = WASM_VECTOR_LEN;
942
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
943
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
970
944
  };
971
945
  imports.wbg.__wbindgen_memory = function() {
972
946
  const ret = wasm.memory;
973
- return addHeapObject(ret);
947
+ return ret;
974
948
  };
975
- imports.wbg.__wbindgen_closure_wrapper549 = function(arg0, arg1, arg2) {
976
- const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_22);
977
- return addHeapObject(ret);
949
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
950
+ const obj = arg1;
951
+ const ret = typeof obj === "number" ? obj : void 0;
952
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
953
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
954
+ };
955
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
956
+ const obj = arg1;
957
+ const ret = typeof obj === "string" ? obj : void 0;
958
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
959
+ var len1 = WASM_VECTOR_LEN;
960
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
961
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
978
962
  };
979
- imports.wbg.__wbindgen_closure_wrapper897 = function(arg0, arg1, arg2) {
980
- const ret = makeMutClosure(arg0, arg1, 185, __wbg_adapter_25);
981
- return addHeapObject(ret);
963
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
964
+ throw new Error(getStringFromWasm0(arg0, arg1));
982
965
  };
983
966
  return imports;
984
967
  }
985
- function __wbg_init_memory(imports, maybe_memory) {
968
+ function __wbg_init_memory(imports, memory) {
986
969
  }
987
970
  function __wbg_finalize_init(instance, module) {
988
971
  wasm = instance.exports;
989
972
  __wbg_init.__wbindgen_wasm_module = module;
990
- cachedFloat64Memory0 = null;
991
- cachedInt32Memory0 = null;
992
- cachedUint32Memory0 = null;
993
- cachedUint8Memory0 = null;
973
+ cachedDataViewMemory0 = null;
974
+ cachedUint32ArrayMemory0 = null;
975
+ cachedUint8ArrayMemory0 = null;
994
976
  wasm.__wbindgen_start();
995
977
  return wasm;
996
978
  }
997
- async function __wbg_init(input) {
979
+ async function __wbg_init(module_or_path) {
998
980
  if (wasm !== void 0)
999
981
  return wasm;
1000
- if (typeof input === "undefined") {
1001
- input = new URL("shell_bg.wasm", import.meta.url);
982
+ if (typeof module_or_path !== "undefined") {
983
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
984
+ ({ module_or_path } = module_or_path);
985
+ } else {
986
+ console.warn("using deprecated parameters for the initialization function; pass a single object instead");
987
+ }
988
+ }
989
+ if (typeof module_or_path === "undefined") {
990
+ module_or_path = new URL("shell_bg.wasm", import.meta.url);
1002
991
  }
1003
992
  const imports = __wbg_get_imports();
1004
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
1005
- input = fetch(input);
993
+ if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
994
+ module_or_path = fetch(module_or_path);
1006
995
  }
1007
996
  __wbg_init_memory(imports);
1008
- const { instance, module } = await __wbg_load(await input, imports);
997
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1009
998
  return __wbg_finalize_init(instance, module);
1010
999
  }
1011
1000
  var shell_default = __wbg_init;