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