@duckdb/duckdb-wasm-shell 1.29.1-dev77.0 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/img/duckdb_version_badge.svg +1 -1
- package/dist/shell.cjs +573 -584
- package/dist/shell.cjs.map +2 -2
- package/dist/shell.js +573 -584
- package/dist/shell.js.map +2 -2
- package/dist/shell.mjs +573 -584
- 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.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.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__hbcab8150e904b6b6(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__he614c323b7a46a07(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,586 +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);
|
|
480
|
-
};
|
|
481
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
482
|
-
const obj = getObject(arg1);
|
|
483
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
484
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
485
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
449
|
+
imports.wbg.__wbg_attachCustomKeyEventHandler_5c309ad8c2d6ff9c = function(arg0, arg1) {
|
|
450
|
+
arg0.attachCustomKeyEventHandler(arg1);
|
|
486
451
|
};
|
|
487
|
-
imports.wbg.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
imports.wbg.__wbg_registerOPFSFileName_8efb2b5d0df8d9a7 = function() {
|
|
494
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
495
|
-
const ret = getObject(arg0).registerOPFSFileName(getStringFromWasm0(arg1, arg2));
|
|
496
|
-
return addHeapObject(ret);
|
|
497
|
-
}, arguments);
|
|
498
|
-
};
|
|
499
|
-
imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
|
|
500
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
501
|
-
const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
|
|
502
|
-
return addHeapObject(ret);
|
|
503
|
-
}, arguments);
|
|
504
|
-
};
|
|
505
|
-
imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
|
|
506
|
-
const ret = new import_xterm.Terminal(getObject(arg0));
|
|
507
|
-
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);
|
|
508
458
|
};
|
|
509
|
-
imports.wbg.
|
|
510
|
-
const ret =
|
|
459
|
+
imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
|
|
460
|
+
const ret = arg0.bigInt64Array;
|
|
511
461
|
return ret;
|
|
512
462
|
};
|
|
513
|
-
imports.wbg.
|
|
514
|
-
const ret =
|
|
463
|
+
imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
|
|
464
|
+
const ret = arg0.blockSize;
|
|
515
465
|
return ret;
|
|
516
466
|
};
|
|
517
|
-
imports.wbg.
|
|
518
|
-
|
|
467
|
+
imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
|
|
468
|
+
const ret = arg0.blockStats;
|
|
469
|
+
return ret;
|
|
519
470
|
};
|
|
520
|
-
imports.wbg.
|
|
521
|
-
const ret =
|
|
522
|
-
return
|
|
471
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
472
|
+
const ret = arg0.buffer;
|
|
473
|
+
return ret;
|
|
523
474
|
};
|
|
524
|
-
imports.wbg.
|
|
525
|
-
|
|
475
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
|
|
476
|
+
return handleError(function(arg0, arg1) {
|
|
477
|
+
const ret = arg0.call(arg1);
|
|
478
|
+
return ret;
|
|
479
|
+
}, arguments);
|
|
526
480
|
};
|
|
527
|
-
imports.wbg.
|
|
481
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
528
482
|
return handleError(function(arg0, arg1, arg2) {
|
|
529
|
-
const ret =
|
|
530
|
-
return
|
|
483
|
+
const ret = arg0.call(arg1, arg2);
|
|
484
|
+
return ret;
|
|
531
485
|
}, arguments);
|
|
532
486
|
};
|
|
533
|
-
imports.wbg.
|
|
534
|
-
return handleError(function() {
|
|
535
|
-
const ret = (
|
|
536
|
-
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;
|
|
537
491
|
}, arguments);
|
|
538
492
|
};
|
|
539
|
-
imports.wbg.
|
|
540
|
-
const ret =
|
|
493
|
+
imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
|
|
494
|
+
const ret = arg0.cols;
|
|
541
495
|
return ret;
|
|
542
496
|
};
|
|
543
|
-
imports.wbg.
|
|
544
|
-
|
|
545
|
-
|
|
497
|
+
imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
|
|
498
|
+
return handleError(function(arg0) {
|
|
499
|
+
const ret = arg0.connectInternal();
|
|
500
|
+
return ret;
|
|
501
|
+
}, arguments);
|
|
546
502
|
};
|
|
547
|
-
imports.wbg.
|
|
548
|
-
const ret =
|
|
503
|
+
imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
|
|
504
|
+
const ret = new import_xterm.Terminal(arg0);
|
|
549
505
|
return ret;
|
|
550
506
|
};
|
|
551
|
-
imports.wbg.
|
|
552
|
-
|
|
553
|
-
|
|
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);
|
|
554
512
|
};
|
|
555
|
-
imports.wbg.
|
|
556
|
-
const ret =
|
|
513
|
+
imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
|
|
514
|
+
const ret = arg0.crossOriginIsolated;
|
|
557
515
|
return ret;
|
|
558
516
|
};
|
|
559
|
-
imports.wbg.
|
|
560
|
-
const ret =
|
|
517
|
+
imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
|
|
518
|
+
const ret = arg0.ctrlKey;
|
|
561
519
|
return ret;
|
|
562
520
|
};
|
|
563
|
-
imports.wbg.
|
|
564
|
-
return handleError(function(arg0, arg1
|
|
565
|
-
const ret =
|
|
566
|
-
return
|
|
521
|
+
imports.wbg.__wbg_disconnect_92d81f4ec3f107ec = function() {
|
|
522
|
+
return handleError(function(arg0, arg1) {
|
|
523
|
+
const ret = arg0.disconnect(arg1 >>> 0);
|
|
524
|
+
return ret;
|
|
567
525
|
}, arguments);
|
|
568
526
|
};
|
|
569
|
-
imports.wbg.
|
|
570
|
-
return handleError(function(arg0) {
|
|
571
|
-
const ret =
|
|
572
|
-
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;
|
|
573
531
|
}, arguments);
|
|
574
532
|
};
|
|
575
|
-
imports.wbg.
|
|
533
|
+
imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
|
|
576
534
|
return handleError(function(arg0, arg1, arg2) {
|
|
577
|
-
const ret =
|
|
578
|
-
return
|
|
535
|
+
const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
|
|
536
|
+
return ret;
|
|
579
537
|
}, arguments);
|
|
580
538
|
};
|
|
581
|
-
imports.wbg.
|
|
582
|
-
return handleError(function(arg0
|
|
583
|
-
const ret =
|
|
584
|
-
return
|
|
539
|
+
imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
|
|
540
|
+
return handleError(function(arg0) {
|
|
541
|
+
const ret = arg0.dropFiles();
|
|
542
|
+
return ret;
|
|
585
543
|
}, arguments);
|
|
586
544
|
};
|
|
587
|
-
imports.wbg.
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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
|
+
}
|
|
592
555
|
};
|
|
593
|
-
imports.wbg.
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
556
|
+
imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
|
|
557
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
558
|
+
};
|
|
559
|
+
imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
|
|
560
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
561
|
+
const ret = arg0.exportFileStatistics(getStringFromWasm0(arg1, arg2));
|
|
562
|
+
return ret;
|
|
597
563
|
}, arguments);
|
|
598
564
|
};
|
|
599
|
-
imports.wbg.
|
|
600
|
-
|
|
601
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
602
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
603
|
-
var len1 = WASM_VECTOR_LEN;
|
|
604
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
605
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
565
|
+
imports.wbg.__wbg_fit_0db5c78a2a85f563 = function(arg0) {
|
|
566
|
+
arg0.fit();
|
|
606
567
|
};
|
|
607
|
-
imports.wbg.
|
|
568
|
+
imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
|
|
569
|
+
arg0.focus();
|
|
570
|
+
};
|
|
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);
|
|
574
|
+
const len1 = WASM_VECTOR_LEN;
|
|
575
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
576
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
577
|
+
};
|
|
578
|
+
imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
|
|
608
579
|
return handleError(function(arg0) {
|
|
609
|
-
const ret =
|
|
610
|
-
return
|
|
580
|
+
const ret = arg0.getFeatureFlags();
|
|
581
|
+
return ret;
|
|
611
582
|
}, arguments);
|
|
612
583
|
};
|
|
613
|
-
imports.wbg.
|
|
614
|
-
return handleError(function(
|
|
615
|
-
const ret =
|
|
616
|
-
return
|
|
584
|
+
imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
|
|
585
|
+
return handleError(function() {
|
|
586
|
+
const ret = (0, import_duckdb_wasm.getPlatformFeatures)();
|
|
587
|
+
return ret;
|
|
617
588
|
}, arguments);
|
|
618
589
|
};
|
|
619
|
-
imports.wbg.
|
|
590
|
+
imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
|
|
620
591
|
return handleError(function(arg0) {
|
|
621
|
-
const ret =
|
|
622
|
-
return
|
|
592
|
+
const ret = arg0.getVersion();
|
|
593
|
+
return ret;
|
|
623
594
|
}, arguments);
|
|
624
595
|
};
|
|
625
|
-
imports.wbg.
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
return addHeapObject(ret);
|
|
629
|
-
}, arguments);
|
|
596
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
597
|
+
const ret = arg0[arg1 >>> 0];
|
|
598
|
+
return ret;
|
|
630
599
|
};
|
|
631
|
-
imports.wbg.
|
|
600
|
+
imports.wbg.__wbg_globFiles_542704d623854358 = function() {
|
|
632
601
|
return handleError(function(arg0, arg1, arg2) {
|
|
633
|
-
const ret =
|
|
634
|
-
return
|
|
602
|
+
const ret = arg0.globFiles(getStringFromWasm0(arg1, arg2));
|
|
603
|
+
return ret;
|
|
635
604
|
}, arguments);
|
|
636
605
|
};
|
|
637
|
-
imports.wbg.
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
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;
|
|
612
|
+
}
|
|
613
|
+
const ret = result;
|
|
614
|
+
return ret;
|
|
643
615
|
};
|
|
644
|
-
imports.wbg.
|
|
645
|
-
|
|
646
|
-
|
|
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;
|
|
625
|
+
};
|
|
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;
|
|
635
|
+
};
|
|
636
|
+
imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
|
|
637
|
+
const ret = arg1.key;
|
|
638
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
647
639
|
const len1 = WASM_VECTOR_LEN;
|
|
648
|
-
|
|
649
|
-
|
|
640
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
641
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
650
642
|
};
|
|
651
|
-
imports.wbg.
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
return addHeapObject(ret);
|
|
655
|
-
}, arguments);
|
|
643
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
644
|
+
const ret = arg0.length;
|
|
645
|
+
return ret;
|
|
656
646
|
};
|
|
657
|
-
imports.wbg.
|
|
658
|
-
|
|
647
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
648
|
+
const ret = arg0.length;
|
|
649
|
+
return ret;
|
|
659
650
|
};
|
|
660
|
-
imports.wbg.
|
|
661
|
-
|
|
651
|
+
imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
|
|
652
|
+
arg0.loadAddon(arg1);
|
|
662
653
|
};
|
|
663
|
-
imports.wbg.
|
|
664
|
-
|
|
665
|
-
const ret = getObject(arg0).disconnect(arg1 >>> 0);
|
|
666
|
-
return addHeapObject(ret);
|
|
667
|
-
}, arguments);
|
|
654
|
+
imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
|
|
655
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
668
656
|
};
|
|
669
|
-
imports.wbg.
|
|
670
|
-
|
|
657
|
+
imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
|
|
658
|
+
const ret = arg0.message;
|
|
659
|
+
return ret;
|
|
671
660
|
};
|
|
672
|
-
imports.wbg.
|
|
673
|
-
|
|
661
|
+
imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
|
|
662
|
+
const ret = arg0.metaKey;
|
|
663
|
+
return ret;
|
|
674
664
|
};
|
|
675
|
-
imports.wbg.
|
|
676
|
-
|
|
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
|
+
}
|
|
677
682
|
};
|
|
678
|
-
imports.wbg.
|
|
679
|
-
const ret =
|
|
680
|
-
|
|
681
|
-
const len1 = WASM_VECTOR_LEN;
|
|
682
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
683
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
683
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
684
|
+
const ret = new Object();
|
|
685
|
+
return ret;
|
|
684
686
|
};
|
|
685
|
-
imports.wbg.
|
|
686
|
-
|
|
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;
|
|
687
690
|
};
|
|
688
|
-
imports.wbg.
|
|
689
|
-
|
|
691
|
+
imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
|
|
692
|
+
const ret = new import_xterm_addon_fit.FitAddon();
|
|
693
|
+
return ret;
|
|
690
694
|
};
|
|
691
|
-
imports.wbg.
|
|
692
|
-
|
|
695
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
696
|
+
const ret = new Error();
|
|
697
|
+
return ret;
|
|
693
698
|
};
|
|
694
|
-
imports.wbg.
|
|
695
|
-
|
|
699
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
700
|
+
const ret = new Uint8Array(arg0);
|
|
701
|
+
return ret;
|
|
696
702
|
};
|
|
697
|
-
imports.wbg.
|
|
698
|
-
|
|
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);
|
|
705
|
+
return ret;
|
|
699
706
|
};
|
|
700
|
-
imports.wbg.
|
|
701
|
-
|
|
707
|
+
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
708
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
709
|
+
return ret;
|
|
702
710
|
};
|
|
703
|
-
imports.wbg.
|
|
704
|
-
|
|
711
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
712
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
713
|
+
return ret;
|
|
705
714
|
};
|
|
706
|
-
imports.wbg.
|
|
707
|
-
const ret =
|
|
708
|
-
|
|
709
|
-
const len1 = WASM_VECTOR_LEN;
|
|
710
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
711
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
715
|
+
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
716
|
+
const ret = arg0.now();
|
|
717
|
+
return ret;
|
|
712
718
|
};
|
|
713
|
-
imports.wbg.
|
|
714
|
-
|
|
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);
|
|
715
725
|
};
|
|
716
|
-
imports.wbg.
|
|
717
|
-
|
|
726
|
+
imports.wbg.__wbg_open_89ca330653f2b749 = function() {
|
|
727
|
+
return handleError(function(arg0, arg1) {
|
|
728
|
+
const ret = arg0.open(DuckDBConfig.__wrap(arg1));
|
|
729
|
+
return ret;
|
|
730
|
+
}, arguments);
|
|
718
731
|
};
|
|
719
|
-
imports.wbg.
|
|
720
|
-
|
|
732
|
+
imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
|
|
733
|
+
arg0.open(arg1);
|
|
721
734
|
};
|
|
722
|
-
imports.wbg.
|
|
723
|
-
const ret =
|
|
724
|
-
return
|
|
735
|
+
imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
|
|
736
|
+
const ret = arg0.performance;
|
|
737
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
725
738
|
};
|
|
726
|
-
imports.wbg.
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
result = false;
|
|
732
|
-
}
|
|
733
|
-
const ret = result;
|
|
734
|
-
return ret;
|
|
739
|
+
imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
|
|
740
|
+
return handleError(function(arg0) {
|
|
741
|
+
const ret = arg0.pickFiles();
|
|
742
|
+
return ret;
|
|
743
|
+
}, arguments);
|
|
735
744
|
};
|
|
736
|
-
imports.wbg.
|
|
737
|
-
|
|
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);
|
|
738
750
|
};
|
|
739
|
-
imports.wbg.
|
|
740
|
-
|
|
741
|
-
return addHeapObject(ret);
|
|
751
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
752
|
+
queueMicrotask(arg0);
|
|
742
753
|
};
|
|
743
|
-
imports.wbg.
|
|
744
|
-
|
|
745
|
-
try {
|
|
746
|
-
result = getObject(arg0) instanceof import_xterm_addon_web_links.WebLinksAddon;
|
|
747
|
-
} catch (e) {
|
|
748
|
-
result = false;
|
|
749
|
-
}
|
|
750
|
-
const ret = result;
|
|
754
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
755
|
+
const ret = arg0.queueMicrotask;
|
|
751
756
|
return ret;
|
|
752
757
|
};
|
|
753
|
-
imports.wbg.
|
|
754
|
-
|
|
755
|
-
|
|
758
|
+
imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
|
|
759
|
+
return handleError(function(arg0) {
|
|
760
|
+
const ret = arg0.readClipboardText();
|
|
761
|
+
return ret;
|
|
762
|
+
}, arguments);
|
|
756
763
|
};
|
|
757
|
-
imports.wbg.
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
763
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
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);
|
|
764
769
|
};
|
|
765
|
-
imports.wbg.
|
|
766
|
-
|
|
770
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
771
|
+
const ret = Promise.resolve(arg0);
|
|
772
|
+
return ret;
|
|
767
773
|
};
|
|
768
|
-
imports.wbg.
|
|
769
|
-
|
|
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);
|
|
770
779
|
};
|
|
771
|
-
imports.wbg.
|
|
772
|
-
|
|
780
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
781
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
773
782
|
};
|
|
774
|
-
imports.wbg.
|
|
775
|
-
|
|
776
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
777
|
-
const len1 = WASM_VECTOR_LEN;
|
|
778
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
779
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
783
|
+
imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
|
|
784
|
+
arg0.allowProposedApi = arg1 !== 0;
|
|
780
785
|
};
|
|
781
|
-
imports.wbg.
|
|
782
|
-
|
|
783
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
784
|
-
const len1 = WASM_VECTOR_LEN;
|
|
785
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
786
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
786
|
+
imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
|
|
787
|
+
arg0.background = getStringFromWasm0(arg1, arg2);
|
|
787
788
|
};
|
|
788
|
-
imports.wbg.
|
|
789
|
-
|
|
790
|
-
return addHeapObject(ret);
|
|
789
|
+
imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
|
|
790
|
+
arg0.brightYellow = getStringFromWasm0(arg1, arg2);
|
|
791
791
|
};
|
|
792
|
-
imports.wbg.
|
|
793
|
-
|
|
794
|
-
return addHeapObject(ret);
|
|
792
|
+
imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
|
|
793
|
+
arg0.cursorBlink = arg1 !== 0;
|
|
795
794
|
};
|
|
796
|
-
imports.wbg.
|
|
797
|
-
|
|
798
|
-
return addHeapObject(ret);
|
|
795
|
+
imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
|
|
796
|
+
arg0.cursorWidth = arg1 >>> 0;
|
|
799
797
|
};
|
|
800
|
-
imports.wbg.
|
|
801
|
-
|
|
802
|
-
return addHeapObject(ret);
|
|
798
|
+
imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
|
|
799
|
+
arg0.drawBoldTextInBrightColors = arg1 !== 0;
|
|
803
800
|
};
|
|
804
|
-
imports.wbg.
|
|
805
|
-
|
|
806
|
-
return addHeapObject(ret);
|
|
801
|
+
imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
|
|
802
|
+
arg0.fontFamily = getStringFromWasm0(arg1, arg2);
|
|
807
803
|
};
|
|
808
|
-
imports.wbg.
|
|
809
|
-
|
|
810
|
-
return addHeapObject(ret);
|
|
804
|
+
imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
|
|
805
|
+
arg0.fontSize = arg1 >>> 0;
|
|
811
806
|
};
|
|
812
|
-
imports.wbg.
|
|
813
|
-
|
|
814
|
-
return addHeapObject(ret);
|
|
807
|
+
imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
|
|
808
|
+
arg0.foreground = getStringFromWasm0(arg1, arg2);
|
|
815
809
|
};
|
|
816
|
-
imports.wbg.
|
|
817
|
-
|
|
818
|
-
return addHeapObject(ret);
|
|
810
|
+
imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
|
|
811
|
+
arg0.rightClickSelectsWord = arg1 !== 0;
|
|
819
812
|
};
|
|
820
|
-
imports.wbg.
|
|
821
|
-
|
|
822
|
-
|
|
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;
|
|
823
818
|
};
|
|
824
|
-
imports.wbg.
|
|
825
|
-
const ret =
|
|
819
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
820
|
+
const ret = arg1.stack;
|
|
826
821
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
827
822
|
const len1 = WASM_VECTOR_LEN;
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
};
|
|
831
|
-
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
832
|
-
let deferred0_0;
|
|
833
|
-
let deferred0_1;
|
|
834
|
-
try {
|
|
835
|
-
deferred0_0 = arg0;
|
|
836
|
-
deferred0_1 = arg1;
|
|
837
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
838
|
-
} finally {
|
|
839
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
840
|
-
}
|
|
823
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
824
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
841
825
|
};
|
|
842
|
-
imports.wbg.
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
result = getObject(arg0) instanceof Window;
|
|
846
|
-
} catch (e) {
|
|
847
|
-
result = false;
|
|
848
|
-
}
|
|
849
|
-
const ret = result;
|
|
850
|
-
return ret;
|
|
851
|
-
};
|
|
852
|
-
imports.wbg.__wbg_performance_2c295061c8b01e0b = function(arg0) {
|
|
853
|
-
const ret = getObject(arg0).performance;
|
|
854
|
-
return isLikeNone(ret) ? 0 : addHeapObject(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);
|
|
855
829
|
};
|
|
856
|
-
imports.wbg.
|
|
857
|
-
const ret =
|
|
858
|
-
return ret;
|
|
859
|
-
};
|
|
860
|
-
imports.wbg.__wbg_metaKey_43193b7cc99f8914 = function(arg0) {
|
|
861
|
-
const ret = getObject(arg0).metaKey;
|
|
862
|
-
return ret;
|
|
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);
|
|
863
833
|
};
|
|
864
|
-
imports.wbg.
|
|
865
|
-
const ret =
|
|
834
|
+
imports.wbg.__wbg_static_accessor_PACKAGE_NAME_0af717684e189e55 = function(arg0) {
|
|
835
|
+
const ret = import_duckdb_wasm.PACKAGE_NAME;
|
|
866
836
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
867
837
|
const len1 = WASM_VECTOR_LEN;
|
|
868
|
-
|
|
869
|
-
|
|
838
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
839
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
870
840
|
};
|
|
871
|
-
imports.wbg.
|
|
872
|
-
const ret =
|
|
841
|
+
imports.wbg.__wbg_static_accessor_PACKAGE_VERSION_549ba11794cf5003 = function(arg0) {
|
|
842
|
+
const ret = import_duckdb_wasm.PACKAGE_VERSION;
|
|
873
843
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
874
844
|
const len1 = WASM_VECTOR_LEN;
|
|
875
|
-
|
|
876
|
-
|
|
845
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
846
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
877
847
|
};
|
|
878
|
-
imports.wbg.
|
|
879
|
-
const ret =
|
|
880
|
-
return ret;
|
|
848
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
849
|
+
const ret = typeof self === "undefined" ? null : self;
|
|
850
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
881
851
|
};
|
|
882
|
-
imports.wbg.
|
|
883
|
-
const
|
|
884
|
-
|
|
885
|
-
obj.a = 0;
|
|
886
|
-
return true;
|
|
887
|
-
}
|
|
888
|
-
const ret = false;
|
|
889
|
-
return ret;
|
|
852
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
853
|
+
const ret = typeof window === "undefined" ? null : window;
|
|
854
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
890
855
|
};
|
|
891
|
-
imports.wbg.
|
|
892
|
-
const ret =
|
|
893
|
-
return
|
|
856
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
857
|
+
const ret = arg0.then(arg1);
|
|
858
|
+
return ret;
|
|
894
859
|
};
|
|
895
|
-
imports.wbg.
|
|
896
|
-
const ret =
|
|
860
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
861
|
+
const ret = arg0.then(arg1, arg2);
|
|
897
862
|
return ret;
|
|
898
863
|
};
|
|
899
|
-
imports.wbg.
|
|
900
|
-
const ret =
|
|
901
|
-
return
|
|
864
|
+
imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
|
|
865
|
+
const ret = arg0.toString();
|
|
866
|
+
return ret;
|
|
902
867
|
};
|
|
903
|
-
imports.wbg.
|
|
904
|
-
return handleError(function(arg0, arg1) {
|
|
905
|
-
const ret =
|
|
906
|
-
return
|
|
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;
|
|
907
872
|
}, arguments);
|
|
908
873
|
};
|
|
909
|
-
imports.wbg.
|
|
910
|
-
const ret =
|
|
911
|
-
return
|
|
874
|
+
imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
|
|
875
|
+
const ret = arg0.totalFileReadsAhead;
|
|
876
|
+
return ret;
|
|
912
877
|
};
|
|
913
|
-
imports.wbg.
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
return addHeapObject(ret);
|
|
917
|
-
}, arguments);
|
|
878
|
+
imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
|
|
879
|
+
const ret = arg0.totalFileReadsCached;
|
|
880
|
+
return ret;
|
|
918
881
|
};
|
|
919
|
-
imports.wbg.
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
return addHeapObject(ret);
|
|
923
|
-
}, arguments);
|
|
882
|
+
imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
|
|
883
|
+
const ret = arg0.totalFileReadsCold;
|
|
884
|
+
return ret;
|
|
924
885
|
};
|
|
925
|
-
imports.wbg.
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
return addHeapObject(ret);
|
|
929
|
-
}, arguments);
|
|
886
|
+
imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
|
|
887
|
+
const ret = arg0.totalFileWrites;
|
|
888
|
+
return ret;
|
|
930
889
|
};
|
|
931
|
-
imports.wbg.
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
return addHeapObject(ret);
|
|
935
|
-
}, arguments);
|
|
890
|
+
imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
|
|
891
|
+
const ret = arg0.totalPageAccesses;
|
|
892
|
+
return ret;
|
|
936
893
|
};
|
|
937
|
-
imports.wbg.
|
|
938
|
-
const ret =
|
|
894
|
+
imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
|
|
895
|
+
const ret = arg0.totalPageLoads;
|
|
939
896
|
return ret;
|
|
940
897
|
};
|
|
941
|
-
imports.wbg.
|
|
942
|
-
const ret =
|
|
943
|
-
|
|
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);
|
|
944
904
|
};
|
|
945
|
-
imports.wbg.
|
|
946
|
-
const ret =
|
|
947
|
-
|
|
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);
|
|
948
911
|
};
|
|
949
|
-
imports.wbg.
|
|
950
|
-
|
|
951
|
-
return addHeapObject(ret);
|
|
912
|
+
imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
|
|
913
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
952
914
|
};
|
|
953
|
-
imports.wbg.
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
return addHeapObject(ret);
|
|
957
|
-
}, arguments);
|
|
915
|
+
imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
|
|
916
|
+
const ret = arg0.wasmBulkMemory;
|
|
917
|
+
return ret;
|
|
958
918
|
};
|
|
959
|
-
imports.wbg.
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
var cb0 = (arg02, arg12) => {
|
|
963
|
-
const a = state0.a;
|
|
964
|
-
state0.a = 0;
|
|
965
|
-
try {
|
|
966
|
-
return __wbg_adapter_213(a, state0.b, arg02, arg12);
|
|
967
|
-
} finally {
|
|
968
|
-
state0.a = a;
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
const ret = new Promise(cb0);
|
|
972
|
-
return addHeapObject(ret);
|
|
973
|
-
} finally {
|
|
974
|
-
state0.a = state0.b = 0;
|
|
975
|
-
}
|
|
919
|
+
imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
|
|
920
|
+
const ret = arg0.wasmExceptions;
|
|
921
|
+
return ret;
|
|
976
922
|
};
|
|
977
|
-
imports.wbg.
|
|
978
|
-
const ret =
|
|
979
|
-
return
|
|
923
|
+
imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
|
|
924
|
+
const ret = arg0.wasmSIMD;
|
|
925
|
+
return ret;
|
|
980
926
|
};
|
|
981
|
-
imports.wbg.
|
|
982
|
-
const ret =
|
|
983
|
-
return
|
|
927
|
+
imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
|
|
928
|
+
const ret = arg0.wasmThreads;
|
|
929
|
+
return ret;
|
|
984
930
|
};
|
|
985
|
-
imports.wbg.
|
|
986
|
-
const ret =
|
|
987
|
-
return
|
|
931
|
+
imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
|
|
932
|
+
const ret = arg0.withWebGL;
|
|
933
|
+
return ret;
|
|
988
934
|
};
|
|
989
|
-
imports.wbg.
|
|
990
|
-
|
|
991
|
-
return addHeapObject(ret);
|
|
935
|
+
imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
|
|
936
|
+
arg0.write(getStringFromWasm0(arg1, arg2));
|
|
992
937
|
};
|
|
993
|
-
imports.wbg.
|
|
994
|
-
const
|
|
995
|
-
|
|
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;
|
|
996
946
|
};
|
|
997
|
-
imports.wbg.
|
|
998
|
-
|
|
947
|
+
imports.wbg.__wbindgen_closure_wrapper432 = function(arg0, arg1, arg2) {
|
|
948
|
+
const ret = makeMutClosure(arg0, arg1, 143, __wbg_adapter_26);
|
|
949
|
+
return ret;
|
|
999
950
|
};
|
|
1000
|
-
imports.wbg.
|
|
1001
|
-
const ret =
|
|
951
|
+
imports.wbg.__wbindgen_closure_wrapper918 = function(arg0, arg1, arg2) {
|
|
952
|
+
const ret = makeMutClosure(arg0, arg1, 180, __wbg_adapter_29);
|
|
1002
953
|
return ret;
|
|
1003
954
|
};
|
|
1004
955
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1005
|
-
const ret = debugString(
|
|
956
|
+
const ret = debugString(arg1);
|
|
1006
957
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1007
958
|
const len1 = WASM_VECTOR_LEN;
|
|
1008
|
-
|
|
1009
|
-
|
|
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;
|
|
1010
975
|
};
|
|
1011
|
-
imports.wbg.
|
|
1012
|
-
|
|
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);
|
|
1013
987
|
};
|
|
1014
988
|
imports.wbg.__wbindgen_memory = function() {
|
|
1015
989
|
const ret = wasm.memory;
|
|
1016
|
-
return
|
|
990
|
+
return ret;
|
|
1017
991
|
};
|
|
1018
|
-
imports.wbg.
|
|
1019
|
-
const
|
|
1020
|
-
|
|
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);
|
|
1021
1005
|
};
|
|
1022
|
-
imports.wbg.
|
|
1023
|
-
|
|
1024
|
-
return addHeapObject(ret);
|
|
1006
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1007
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1025
1008
|
};
|
|
1026
1009
|
return imports;
|
|
1027
1010
|
}
|
|
1028
|
-
function __wbg_init_memory(imports,
|
|
1011
|
+
function __wbg_init_memory(imports, memory) {
|
|
1029
1012
|
}
|
|
1030
1013
|
function __wbg_finalize_init(instance, module2) {
|
|
1031
1014
|
wasm = instance.exports;
|
|
1032
1015
|
__wbg_init.__wbindgen_wasm_module = module2;
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
cachedUint8Memory0 = null;
|
|
1016
|
+
cachedDataViewMemory0 = null;
|
|
1017
|
+
cachedUint32ArrayMemory0 = null;
|
|
1018
|
+
cachedUint8ArrayMemory0 = null;
|
|
1037
1019
|
wasm.__wbindgen_start();
|
|
1038
1020
|
return wasm;
|
|
1039
1021
|
}
|
|
1040
|
-
async function __wbg_init(
|
|
1022
|
+
async function __wbg_init(module_or_path) {
|
|
1041
1023
|
if (wasm !== void 0)
|
|
1042
1024
|
return wasm;
|
|
1043
|
-
if (typeof
|
|
1044
|
-
|
|
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);
|
|
1045
1034
|
}
|
|
1046
1035
|
const imports = __wbg_get_imports();
|
|
1047
|
-
if (typeof
|
|
1048
|
-
|
|
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);
|
|
1049
1038
|
}
|
|
1050
1039
|
__wbg_init_memory(imports);
|
|
1051
|
-
const { instance, module: module2 } = await __wbg_load(await
|
|
1040
|
+
const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
|
|
1052
1041
|
return __wbg_finalize_init(instance, module2);
|
|
1053
1042
|
}
|
|
1054
1043
|
var shell_default = __wbg_init;
|