@duckdb/duckdb-wasm-shell 1.29.1-dev9.0 → 1.30.1-dev2.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-dev9.0",
4
+ version: "1.30.1-dev2.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-dev9.0",
28
+ "@duckdb/duckdb-wasm": "^1.30.1-dev2.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__he8ffd72d0b49a87b(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__h77eb2de66eb57381(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_210(arg0, arg1, arg2, arg3) {
354
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h31501dd44c1f2ebd(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,580 +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_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
451
- return handleError(function(arg0, arg1, arg2) {
452
- const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
453
- return addHeapObject(ret);
454
- }, arguments);
455
- };
456
- imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
457
- const ret = new Terminal(getObject(arg0));
458
- 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);
459
415
  };
460
- imports.wbg.__wbg_cols_5c0bdee281fe5dd9 = function(arg0) {
461
- const ret = getObject(arg0).cols;
416
+ imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
417
+ const ret = arg0.bigInt64Array;
462
418
  return ret;
463
419
  };
464
- imports.wbg.__wbg_withWebGL_03eecbba7b231a0f = function(arg0) {
465
- const ret = getObject(arg0).withWebGL;
420
+ imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
421
+ const ret = arg0.blockSize;
466
422
  return ret;
467
423
  };
468
- imports.wbg.__wbg_attachCustomKeyEventHandler_d9201dcf85a52ecb = function(arg0, arg1) {
469
- getObject(arg0).attachCustomKeyEventHandler(getObject(arg1));
424
+ imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
425
+ const ret = arg0.blockStats;
426
+ return ret;
470
427
  };
471
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
472
- const ret = getObject(arg0);
473
- return addHeapObject(ret);
428
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
429
+ const ret = arg0.buffer;
430
+ return ret;
474
431
  };
475
- imports.wbg.__wbg_write_d31c366220b675c8 = function(arg0, arg1, arg2) {
476
- 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);
477
437
  };
478
- imports.wbg.__wbg_pushInputToHistory_2b5dfdb10ddcc094 = function() {
438
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
479
439
  return handleError(function(arg0, arg1, arg2) {
480
- const ret = getObject(arg0).pushInputToHistory(getStringFromWasm0(arg1, arg2));
481
- return addHeapObject(ret);
440
+ const ret = arg0.call(arg1, arg2);
441
+ return ret;
482
442
  }, arguments);
483
443
  };
484
- imports.wbg.__wbg_getPlatformFeatures_0c7441cfa3b5e678 = function() {
485
- return handleError(function() {
486
- const ret = getPlatformFeatures();
487
- 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;
488
448
  }, arguments);
489
449
  };
490
- imports.wbg.__wbg_bigInt64Array_b81766f687b4b0b6 = function(arg0) {
491
- const ret = getObject(arg0).bigInt64Array;
450
+ imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
451
+ const ret = arg0.cols;
492
452
  return ret;
493
453
  };
494
- imports.wbg.__wbg_crossOriginIsolated_f7f727dc97628776 = function(arg0) {
495
- const ret = getObject(arg0).crossOriginIsolated;
496
- return ret;
454
+ imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
455
+ return handleError(function(arg0) {
456
+ const ret = arg0.connectInternal();
457
+ return ret;
458
+ }, arguments);
497
459
  };
498
- imports.wbg.__wbg_wasmThreads_cbe2eebf031b26d7 = function(arg0) {
499
- const ret = getObject(arg0).wasmThreads;
460
+ imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
461
+ const ret = new Terminal(arg0);
500
462
  return ret;
501
463
  };
502
- imports.wbg.__wbg_wasmSIMD_f2cbc78c82c4d673 = function(arg0) {
503
- const ret = getObject(arg0).wasmSIMD;
504
- 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);
505
469
  };
506
- imports.wbg.__wbg_wasmBulkMemory_51a6e2786de28fdc = function(arg0) {
507
- const ret = getObject(arg0).wasmBulkMemory;
470
+ imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
471
+ const ret = arg0.crossOriginIsolated;
508
472
  return ret;
509
473
  };
510
- imports.wbg.__wbg_wasmExceptions_f629aff7d2e90cd3 = function(arg0) {
511
- const ret = getObject(arg0).wasmExceptions;
474
+ imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
475
+ const ret = arg0.ctrlKey;
512
476
  return ret;
513
477
  };
514
- imports.wbg.__wbg_dropFile_377dfecd7aafe02e = function() {
515
- return handleError(function(arg0, arg1, arg2) {
516
- const ret = getObject(arg0).dropFile(getStringFromWasm0(arg1, arg2));
517
- 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;
518
482
  }, arguments);
519
483
  };
520
- imports.wbg.__wbg_dropFiles_a67bda4902ba5f36 = function() {
521
- return handleError(function(arg0) {
522
- const ret = getObject(arg0).dropFiles();
523
- 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;
524
488
  }, arguments);
525
489
  };
526
- imports.wbg.__wbg_copyFileToBuffer_8303548b5434aa38 = function() {
490
+ imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
527
491
  return handleError(function(arg0, arg1, arg2) {
528
- const ret = getObject(arg0).copyFileToBuffer(getStringFromWasm0(arg1, arg2));
529
- return addHeapObject(ret);
492
+ const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
493
+ return ret;
530
494
  }, arguments);
531
495
  };
532
- imports.wbg.__wbg_open_8d9e16e84b9c860d = function() {
533
- return handleError(function(arg0, arg1) {
534
- const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
535
- return addHeapObject(ret);
536
- }, arguments);
537
- };
538
- imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
496
+ imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
539
497
  return handleError(function(arg0) {
540
- const ret = getObject(arg0).getVersion();
541
- return addHeapObject(ret);
498
+ const ret = arg0.dropFiles();
499
+ return ret;
542
500
  }, arguments);
543
501
  };
544
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
545
- const obj = getObject(arg1);
546
- const ret = typeof obj === "string" ? obj : void 0;
547
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
548
- var len1 = WASM_VECTOR_LEN;
549
- getInt32Memory0()[arg0 / 4 + 1] = len1;
550
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
551
- };
552
- imports.wbg.__wbg_connectInternal_21690058186ac42a = function() {
553
- return handleError(function(arg0) {
554
- const ret = getObject(arg0).connectInternal();
555
- return addHeapObject(ret);
556
- }, 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
+ }
557
512
  };
558
- imports.wbg.__wbg_downloadFile_4cc8985e2c240fec = function() {
559
- return handleError(function(arg0, arg1, arg2, arg3) {
560
- const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
561
- return addHeapObject(ret);
562
- }, arguments);
513
+ imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
514
+ console.error(getStringFromWasm0(arg0, arg1));
563
515
  };
564
- imports.wbg.__wbg_globFiles_7fe5c8e5e369e77b = function() {
516
+ imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
565
517
  return handleError(function(arg0, arg1, arg2) {
566
- const ret = getObject(arg0).globFiles(getStringFromWasm0(arg1, arg2));
567
- return addHeapObject(ret);
568
- }, arguments);
569
- };
570
- imports.wbg.__wbg_pickFiles_cb1fb4d097b8cdab = function() {
571
- return handleError(function(arg0) {
572
- const ret = getObject(arg0).pickFiles();
573
- return addHeapObject(ret);
518
+ const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
519
+ return ret;
574
520
  }, arguments);
575
521
  };
576
- imports.wbg.__wbg_runQuery_41cfa048b61675e2 = function() {
577
- return handleError(function(arg0, arg1, arg2, arg3) {
578
- const ret = getObject(arg0).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
579
- return addHeapObject(ret);
580
- }, arguments);
522
+ imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
523
+ arg0.fit();
581
524
  };
582
- imports.wbg.__wbg_tokenize_f167882593146b7d = function() {
583
- return handleError(function(arg0, arg1, arg2) {
584
- const ret = getObject(arg0).tokenize(getStringFromWasm0(arg1, arg2));
585
- return addHeapObject(ret);
586
- }, arguments);
525
+ imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
526
+ arg0.focus();
587
527
  };
588
- imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
589
- const ret = getObject(arg1).offsets;
590
- const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
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);
591
531
  const len1 = WASM_VECTOR_LEN;
592
- getInt32Memory0()[arg0 / 4 + 1] = len1;
593
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
532
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
533
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
594
534
  };
595
- imports.wbg.__wbg_types_b5d339a3bb88320b = function(arg0, arg1) {
596
- const ret = getObject(arg1).types;
597
- const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
598
- const len1 = WASM_VECTOR_LEN;
599
- getInt32Memory0()[arg0 / 4 + 1] = len1;
600
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
535
+ imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
536
+ return handleError(function(arg0) {
537
+ const ret = arg0.getFeatureFlags();
538
+ return ret;
539
+ }, arguments);
540
+ };
541
+ imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
542
+ return handleError(function() {
543
+ const ret = getPlatformFeatures();
544
+ return ret;
545
+ }, arguments);
601
546
  };
602
- imports.wbg.__wbg_readClipboardText_f71f3b3a53a23822 = function() {
547
+ imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
603
548
  return handleError(function(arg0) {
604
- const ret = getObject(arg0).readClipboardText();
605
- return addHeapObject(ret);
549
+ const ret = arg0.getVersion();
550
+ return ret;
606
551
  }, arguments);
607
552
  };
608
- imports.wbg.__wbg_focus_909df7c111b58b83 = function(arg0) {
609
- getObject(arg0).focus();
553
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
554
+ const ret = arg0[arg1 >>> 0];
555
+ return ret;
610
556
  };
611
- imports.wbg.__wbg_fit_cdd1076e3e5970b7 = function(arg0) {
612
- getObject(arg0).fit();
557
+ imports.wbg.__wbg_globFiles_542704d623854358 = function() {
558
+ return handleError(function(arg0, arg1, arg2) {
559
+ const ret = arg0.globFiles(getStringFromWasm0(arg1, arg2));
560
+ return ret;
561
+ }, arguments);
613
562
  };
614
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
615
- const obj = takeObject(arg0).original;
616
- if (obj.cnt-- == 1) {
617
- obj.a = 0;
618
- return true;
563
+ imports.wbg.__wbg_instanceof_WebLinksAddon_3750ea42996e2252 = function(arg0) {
564
+ let result;
565
+ try {
566
+ result = arg0 instanceof WebLinksAddon;
567
+ } catch (_) {
568
+ result = false;
619
569
  }
620
- const ret = false;
570
+ const ret = result;
621
571
  return ret;
622
572
  };
623
- imports.wbg.__wbg_setrows_6b947e6079c486dc = function(arg0, arg1) {
624
- getObject(arg0).rows = arg1 >>> 0;
625
- };
626
- imports.wbg.__wbg_setcursorBlink_8a3f7244eb29b1f6 = function(arg0, arg1) {
627
- getObject(arg0).cursorBlink = arg1 !== 0;
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;
628
582
  };
629
- imports.wbg.__wbg_setcursorWidth_55abde268dea1312 = function(arg0, arg1) {
630
- getObject(arg0).cursorWidth = arg1 >>> 0;
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;
631
592
  };
632
- imports.wbg.__wbg_fontFamily_204223b3338f8381 = function(arg0, arg1) {
633
- const ret = getObject(arg1).fontFamily;
593
+ imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
594
+ const ret = arg1.key;
634
595
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
635
596
  const len1 = WASM_VECTOR_LEN;
636
- getInt32Memory0()[arg0 / 4 + 1] = len1;
637
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
597
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
598
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
638
599
  };
639
- imports.wbg.__wbg_setfontFamily_a0645fa4f7aaaf21 = function(arg0, arg1, arg2) {
640
- getObject(arg0).fontFamily = getStringFromWasm0(arg1, arg2);
600
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
601
+ const ret = arg0.length;
602
+ return ret;
641
603
  };
642
- imports.wbg.__wbg_setfontSize_11962e753390bde1 = function(arg0, arg1) {
643
- getObject(arg0).fontSize = arg1 >>> 0;
604
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
605
+ const ret = arg0.length;
606
+ return ret;
644
607
  };
645
- imports.wbg.__wbg_setdrawBoldTextInBrightColors_4f711243dff6df11 = function(arg0, arg1) {
646
- getObject(arg0).drawBoldTextInBrightColors = arg1 !== 0;
608
+ imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
609
+ arg0.loadAddon(arg1);
647
610
  };
648
- imports.wbg.__wbg_setrightClickSelectsWord_ede48f0595cd3fed = function(arg0, arg1) {
649
- getObject(arg0).rightClickSelectsWord = arg1 !== 0;
611
+ imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
612
+ console.log(getStringFromWasm0(arg0, arg1));
650
613
  };
651
- imports.wbg.__wbg_setallowProposedApi_0147ac2b5a9906b3 = function(arg0, arg1) {
652
- getObject(arg0).allowProposedApi = arg1 !== 0;
614
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
615
+ const ret = arg0.message;
616
+ return ret;
653
617
  };
654
- imports.wbg.__wbg_setbrightYellow_deb3fbc58aa44642 = function(arg0, arg1, arg2) {
655
- getObject(arg0).brightYellow = getStringFromWasm0(arg1, arg2);
618
+ imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
619
+ const ret = arg0.metaKey;
620
+ return ret;
656
621
  };
657
- imports.wbg.__wbg_setforeground_87dc40b78955df05 = function(arg0, arg1, arg2) {
658
- getObject(arg0).foreground = getStringFromWasm0(arg1, arg2);
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
+ }
659
639
  };
660
- imports.wbg.__wbg_backgroundColor_17a9784f0207d5b0 = function(arg0, arg1) {
661
- const ret = getObject(arg1).backgroundColor;
662
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
663
- const len1 = WASM_VECTOR_LEN;
664
- getInt32Memory0()[arg0 / 4 + 1] = len1;
665
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
640
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
641
+ const ret = new Object();
642
+ return ret;
666
643
  };
667
- imports.wbg.__wbg_setbackground_550386b829ec5c24 = function(arg0, arg1, arg2) {
668
- getObject(arg0).background = getStringFromWasm0(arg1, arg2);
644
+ imports.wbg.__wbg_new_7890702e2f921af0 = function(arg0) {
645
+ const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
646
+ return ret;
669
647
  };
670
- imports.wbg.__wbg_settheme_4e67878b7d6cc0fc = function(arg0, arg1) {
671
- getObject(arg0).theme = getObject(arg1);
648
+ imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
649
+ const ret = new FitAddon();
650
+ return ret;
672
651
  };
673
- imports.wbg.__wbg_open_7d3a0690ea9e5a45 = function(arg0, arg1) {
674
- getObject(arg0).open(takeObject(arg1));
652
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
653
+ const ret = new Error();
654
+ return ret;
675
655
  };
676
- imports.wbg.__wbg_new_70821bf9dbd17152 = function(arg0) {
677
- const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
678
- return addHeapObject(ret);
656
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
657
+ const ret = new Uint8Array(arg0);
658
+ return ret;
679
659
  };
680
- imports.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73 = function(arg0) {
681
- let result;
682
- try {
683
- result = getObject(arg0) instanceof WebglAddon;
684
- } catch (e) {
685
- result = false;
686
- }
687
- const ret = result;
660
+ imports.wbg.__wbg_new_c2ccb7a35264c397 = function(arg0, arg1, arg2) {
661
+ const ret = new WebLinksAddon(arg0, arg1, arg2 === 16777215 ? void 0 : arg2 !== 0);
688
662
  return ret;
689
663
  };
690
- imports.wbg.__wbg_loadAddon_1bfe744e6f456990 = function(arg0, arg1) {
691
- getObject(arg0).loadAddon(takeObject(arg1));
664
+ imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
665
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
666
+ return ret;
692
667
  };
693
- imports.wbg.__wbg_new_92aa50f448dac851 = function(arg0, arg1, arg2) {
694
- const ret = new WebLinksAddon(getObject(arg0), getObject(arg1), arg2 === 16777215 ? void 0 : arg2 !== 0);
695
- return addHeapObject(ret);
668
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
669
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
670
+ return ret;
696
671
  };
697
- imports.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53 = function(arg0) {
698
- let result;
699
- try {
700
- result = getObject(arg0) instanceof WebLinksAddon;
701
- } catch (e) {
702
- result = false;
703
- }
704
- const ret = result;
672
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
673
+ const ret = arg0.now();
705
674
  return ret;
706
675
  };
707
- imports.wbg.__wbg_disconnect_d9855433758f0afc = function() {
676
+ imports.wbg.__wbg_offsets_9a0c43647dfe8174 = function(arg0, arg1) {
677
+ const ret = arg1.offsets;
678
+ const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
679
+ const len1 = WASM_VECTOR_LEN;
680
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
681
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
682
+ };
683
+ imports.wbg.__wbg_open_89ca330653f2b749 = function() {
708
684
  return handleError(function(arg0, arg1) {
709
- const ret = getObject(arg0).disconnect(arg1 >>> 0);
710
- return addHeapObject(ret);
685
+ const ret = arg0.open(DuckDBConfig.__wrap(arg1));
686
+ return ret;
711
687
  }, arguments);
712
688
  };
713
- imports.wbg.__wbg_log_8bb2c010ce15af48 = function(arg0, arg1) {
714
- console.log(getStringFromWasm0(arg0, arg1));
689
+ imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
690
+ arg0.open(arg1);
715
691
  };
716
- imports.wbg.__wbg_error_a84695ce32854879 = function(arg0, arg1) {
717
- console.error(getStringFromWasm0(arg0, arg1));
692
+ imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
693
+ const ret = arg0.performance;
694
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
718
695
  };
719
- imports.wbg.__wbg_warn_d85b304f0e70f5ac = function(arg0, arg1) {
720
- console.warn(getStringFromWasm0(arg0, arg1));
696
+ imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
697
+ return handleError(function(arg0) {
698
+ const ret = arg0.pickFiles();
699
+ return ret;
700
+ }, arguments);
721
701
  };
722
- imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
723
- const obj = getObject(arg1);
724
- const ret = JSON.stringify(obj === void 0 ? null : obj);
725
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
726
- const len1 = WASM_VECTOR_LEN;
727
- getInt32Memory0()[arg0 / 4 + 1] = len1;
728
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
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);
729
707
  };
730
- imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
731
- const ret = PACKAGE_NAME2;
732
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
733
- const len1 = WASM_VECTOR_LEN;
734
- getInt32Memory0()[arg0 / 4 + 1] = len1;
735
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
708
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
709
+ queueMicrotask(arg0);
736
710
  };
737
- imports.wbg.__wbg_new_79cc836771d68198 = function() {
738
- const ret = new FitAddon();
739
- return addHeapObject(ret);
711
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
712
+ const ret = arg0.queueMicrotask;
713
+ return ret;
740
714
  };
741
- imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
742
- const ret = PACKAGE_VERSION2;
743
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
744
- const len1 = WASM_VECTOR_LEN;
745
- getInt32Memory0()[arg0 / 4 + 1] = len1;
746
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
715
+ imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
716
+ return handleError(function(arg0) {
717
+ const ret = arg0.readClipboardText();
718
+ return ret;
719
+ }, arguments);
747
720
  };
748
- imports.wbg.__wbg_blockStats_14f17a14c4573f3d = function(arg0) {
749
- const ret = getObject(arg0).blockStats;
750
- return addHeapObject(ret);
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);
751
726
  };
752
- imports.wbg.__wbg_totalFileWrites_1b38029d29f47d43 = function(arg0) {
753
- const ret = getObject(arg0).totalFileWrites;
754
- return addHeapObject(ret);
727
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
728
+ const ret = Promise.resolve(arg0);
729
+ return ret;
755
730
  };
756
- imports.wbg.__wbg_totalFileReadsAhead_02c25545b2f63323 = function(arg0) {
757
- const ret = getObject(arg0).totalFileReadsAhead;
758
- return addHeapObject(ret);
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);
759
736
  };
760
- imports.wbg.__wbg_totalFileReadsCold_304476ed0c49e111 = function(arg0) {
761
- const ret = getObject(arg0).totalFileReadsCold;
762
- return addHeapObject(ret);
737
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
738
+ arg0.set(arg1, arg2 >>> 0);
763
739
  };
764
- imports.wbg.__wbg_totalFileReadsCached_2e8edfe7dbf14351 = function(arg0) {
765
- const ret = getObject(arg0).totalFileReadsCached;
766
- return addHeapObject(ret);
740
+ imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
741
+ arg0.allowProposedApi = arg1 !== 0;
767
742
  };
768
- imports.wbg.__wbg_totalPageAccesses_2f654448ea273878 = function(arg0) {
769
- const ret = getObject(arg0).totalPageAccesses;
770
- return addHeapObject(ret);
743
+ imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
744
+ arg0.background = getStringFromWasm0(arg1, arg2);
771
745
  };
772
- imports.wbg.__wbg_totalPageLoads_1ce10deb8828d935 = function(arg0) {
773
- const ret = getObject(arg0).totalPageLoads;
774
- return addHeapObject(ret);
746
+ imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
747
+ arg0.brightYellow = getStringFromWasm0(arg1, arg2);
775
748
  };
776
- imports.wbg.__wbg_blockSize_77bc4e968a2e845a = function(arg0) {
777
- const ret = getObject(arg0).blockSize;
778
- return addHeapObject(ret);
749
+ imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
750
+ arg0.cursorBlink = arg1 !== 0;
779
751
  };
780
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
781
- const ret = new Error();
782
- return addHeapObject(ret);
752
+ imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
753
+ arg0.cursorWidth = arg1 >>> 0;
783
754
  };
784
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
785
- const ret = getObject(arg1).stack;
786
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
787
- const len1 = WASM_VECTOR_LEN;
788
- getInt32Memory0()[arg0 / 4 + 1] = len1;
789
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
755
+ imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
756
+ arg0.drawBoldTextInBrightColors = arg1 !== 0;
790
757
  };
791
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
792
- let deferred0_0;
793
- let deferred0_1;
794
- try {
795
- deferred0_0 = arg0;
796
- deferred0_1 = arg1;
797
- console.error(getStringFromWasm0(arg0, arg1));
798
- } finally {
799
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
800
- }
758
+ imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
759
+ arg0.fontFamily = getStringFromWasm0(arg1, arg2);
801
760
  };
802
- imports.wbg.__wbg_instanceof_Window_9029196b662bc42a = function(arg0) {
803
- let result;
804
- try {
805
- result = getObject(arg0) instanceof Window;
806
- } catch (e) {
807
- result = false;
808
- }
809
- const ret = result;
810
- return ret;
761
+ imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
762
+ arg0.fontSize = arg1 >>> 0;
811
763
  };
812
- imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
813
- const ret = getObject(arg0).performance;
814
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
764
+ imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
765
+ arg0.foreground = getStringFromWasm0(arg1, arg2);
815
766
  };
816
- imports.wbg.__wbg_ctrlKey_582686fb2263dd3c = function(arg0) {
817
- const ret = getObject(arg0).ctrlKey;
818
- return ret;
767
+ imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
768
+ arg0.rightClickSelectsWord = arg1 !== 0;
819
769
  };
820
- imports.wbg.__wbg_metaKey_43193b7cc99f8914 = function(arg0) {
821
- const ret = getObject(arg0).metaKey;
822
- return ret;
770
+ imports.wbg.__wbg_setrows_395bb2f6a40be664 = function(arg0, arg1) {
771
+ arg0.rows = arg1 >>> 0;
772
+ };
773
+ imports.wbg.__wbg_settheme_1b783323a8d2b858 = function(arg0, arg1) {
774
+ arg0.theme = arg1;
823
775
  };
824
- imports.wbg.__wbg_key_8aeaa079126a9cc7 = function(arg0, arg1) {
825
- const ret = getObject(arg1).key;
776
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
777
+ const ret = arg1.stack;
826
778
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
827
779
  const len1 = WASM_VECTOR_LEN;
828
- getInt32Memory0()[arg0 / 4 + 1] = len1;
829
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
780
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
781
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
830
782
  };
831
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
832
- const ret = getObject(arg0).now();
833
- return ret;
783
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
784
+ const ret = typeof global === "undefined" ? null : global;
785
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
834
786
  };
835
- imports.wbg.__wbg_type_4197dff653b7d208 = function(arg0, arg1) {
836
- const ret = getObject(arg1).type;
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);
790
+ };
791
+ imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
792
+ const ret = PACKAGE_NAME2;
837
793
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
838
794
  const len1 = WASM_VECTOR_LEN;
839
- getInt32Memory0()[arg0 / 4 + 1] = len1;
840
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
795
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
796
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
841
797
  };
842
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
843
- const ret = getObject(arg0)[arg1 >>> 0];
844
- return addHeapObject(ret);
798
+ imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
799
+ const ret = PACKAGE_VERSION2;
800
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
801
+ const len1 = WASM_VECTOR_LEN;
802
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
803
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
845
804
  };
846
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
847
- const ret = getObject(arg0).length;
805
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
806
+ const ret = typeof self === "undefined" ? null : self;
807
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
808
+ };
809
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
810
+ const ret = typeof window === "undefined" ? null : window;
811
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
812
+ };
813
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
814
+ const ret = arg0.then(arg1);
848
815
  return ret;
849
816
  };
850
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
851
- const ret = new Function(getStringFromWasm0(arg0, arg1));
852
- return addHeapObject(ret);
817
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
818
+ const ret = arg0.then(arg1, arg2);
819
+ return ret;
853
820
  };
854
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
855
- return handleError(function(arg0, arg1) {
856
- const ret = getObject(arg0).call(getObject(arg1));
857
- return addHeapObject(ret);
821
+ imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
822
+ const ret = arg0.toString();
823
+ return ret;
824
+ };
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;
858
829
  }, arguments);
859
830
  };
860
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
861
- const ret = new Object();
862
- return addHeapObject(ret);
831
+ imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
832
+ const ret = arg0.totalFileReadsAhead;
833
+ return ret;
863
834
  };
864
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
865
- return handleError(function() {
866
- const ret = self.self;
867
- return addHeapObject(ret);
868
- }, arguments);
835
+ imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
836
+ const ret = arg0.totalFileReadsCached;
837
+ return ret;
869
838
  };
870
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
871
- return handleError(function() {
872
- const ret = window.window;
873
- return addHeapObject(ret);
874
- }, arguments);
839
+ imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
840
+ const ret = arg0.totalFileReadsCold;
841
+ return ret;
875
842
  };
876
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
877
- return handleError(function() {
878
- const ret = globalThis.globalThis;
879
- return addHeapObject(ret);
880
- }, arguments);
843
+ imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
844
+ const ret = arg0.totalFileWrites;
845
+ return ret;
881
846
  };
882
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
883
- return handleError(function() {
884
- const ret = global.global;
885
- return addHeapObject(ret);
886
- }, arguments);
847
+ imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
848
+ const ret = arg0.totalPageAccesses;
849
+ return ret;
887
850
  };
888
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
889
- const ret = getObject(arg0) === void 0;
851
+ imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
852
+ const ret = arg0.totalPageLoads;
890
853
  return ret;
891
854
  };
892
- imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
893
- const ret = new Error(getStringFromWasm0(arg0, arg1));
894
- 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);
895
861
  };
896
- imports.wbg.__wbg_message_48bacc5ea57d74ee = function(arg0) {
897
- const ret = getObject(arg0).message;
898
- 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);
899
868
  };
900
- imports.wbg.__wbg_toString_1c056108b87ba68b = function(arg0) {
901
- const ret = getObject(arg0).toString();
902
- return addHeapObject(ret);
869
+ imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
870
+ console.warn(getStringFromWasm0(arg0, arg1));
903
871
  };
904
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
905
- return handleError(function(arg0, arg1, arg2) {
906
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
907
- return addHeapObject(ret);
908
- }, arguments);
872
+ imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
873
+ const ret = arg0.wasmBulkMemory;
874
+ return ret;
909
875
  };
910
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
911
- try {
912
- var state0 = { a: arg0, b: arg1 };
913
- var cb0 = (arg02, arg12) => {
914
- const a = state0.a;
915
- state0.a = 0;
916
- try {
917
- return __wbg_adapter_210(a, state0.b, arg02, arg12);
918
- } finally {
919
- state0.a = a;
920
- }
921
- };
922
- const ret = new Promise(cb0);
923
- return addHeapObject(ret);
924
- } finally {
925
- state0.a = state0.b = 0;
926
- }
876
+ imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
877
+ const ret = arg0.wasmExceptions;
878
+ return ret;
927
879
  };
928
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
929
- const ret = Promise.resolve(getObject(arg0));
930
- return addHeapObject(ret);
880
+ imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
881
+ const ret = arg0.wasmSIMD;
882
+ return ret;
931
883
  };
932
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
933
- const ret = getObject(arg0).then(getObject(arg1));
934
- return addHeapObject(ret);
884
+ imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
885
+ const ret = arg0.wasmThreads;
886
+ return ret;
935
887
  };
936
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
937
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
938
- return addHeapObject(ret);
888
+ imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
889
+ const ret = arg0.withWebGL;
890
+ return ret;
939
891
  };
940
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
941
- const ret = getObject(arg0).buffer;
942
- return addHeapObject(ret);
892
+ imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
893
+ arg0.write(getStringFromWasm0(arg1, arg2));
943
894
  };
944
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
945
- const ret = new Uint8Array(getObject(arg0));
946
- 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;
947
903
  };
948
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
949
- 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;
950
907
  };
951
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
952
- 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);
953
910
  return ret;
954
911
  };
955
912
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
956
- const ret = debugString(getObject(arg1));
913
+ const ret = debugString(arg1);
957
914
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
958
915
  const len1 = WASM_VECTOR_LEN;
959
- getInt32Memory0()[arg0 / 4 + 1] = len1;
960
- 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;
961
932
  };
962
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
963
- 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);
964
944
  };
965
945
  imports.wbg.__wbindgen_memory = function() {
966
946
  const ret = wasm.memory;
967
- return addHeapObject(ret);
947
+ return ret;
968
948
  };
969
- imports.wbg.__wbindgen_closure_wrapper538 = function(arg0, arg1, arg2) {
970
- const ret = makeMutClosure(arg0, arg1, 164, __wbg_adapter_22);
971
- 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);
972
962
  };
973
- imports.wbg.__wbindgen_closure_wrapper912 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 184, __wbg_adapter_25);
975
- return addHeapObject(ret);
963
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
964
+ throw new Error(getStringFromWasm0(arg0, arg1));
976
965
  };
977
966
  return imports;
978
967
  }
979
- function __wbg_init_memory(imports, maybe_memory) {
968
+ function __wbg_init_memory(imports, memory) {
980
969
  }
981
970
  function __wbg_finalize_init(instance, module) {
982
971
  wasm = instance.exports;
983
972
  __wbg_init.__wbindgen_wasm_module = module;
984
- cachedFloat64Memory0 = null;
985
- cachedInt32Memory0 = null;
986
- cachedUint32Memory0 = null;
987
- cachedUint8Memory0 = null;
973
+ cachedDataViewMemory0 = null;
974
+ cachedUint32ArrayMemory0 = null;
975
+ cachedUint8ArrayMemory0 = null;
988
976
  wasm.__wbindgen_start();
989
977
  return wasm;
990
978
  }
991
- async function __wbg_init(input) {
979
+ async function __wbg_init(module_or_path) {
992
980
  if (wasm !== void 0)
993
981
  return wasm;
994
- if (typeof input === "undefined") {
995
- 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);
996
991
  }
997
992
  const imports = __wbg_get_imports();
998
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
999
- 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);
1000
995
  }
1001
996
  __wbg_init_memory(imports);
1002
- const { instance, module } = await __wbg_load(await input, imports);
997
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1003
998
  return __wbg_finalize_init(instance, module);
1004
999
  }
1005
1000
  var shell_default = __wbg_init;