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