@duckdb/duckdb-wasm-shell 1.29.1-dev24.0 → 1.29.1-dev248.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 -583
- package/dist/shell.cjs.map +2 -2
- package/dist/shell.js +572 -583
- 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.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@duckdb/duckdb-wasm-shell",
|
|
4
|
-
version: "1.29.1-
|
|
4
|
+
version: "1.29.1-dev248.0",
|
|
5
5
|
description: "",
|
|
6
6
|
author: "Andre Kohn <kohn.a@outlook.com>",
|
|
7
7
|
license: "MIT",
|
|
@@ -25,7 +25,7 @@ var package_default = {
|
|
|
25
25
|
"csv"
|
|
26
26
|
],
|
|
27
27
|
dependencies: {
|
|
28
|
-
"@duckdb/duckdb-wasm": "^1.29.1-
|
|
28
|
+
"@duckdb/duckdb-wasm": "^1.29.1-dev248.0",
|
|
29
29
|
xterm: "^5.3.0",
|
|
30
30
|
"xterm-addon-fit": "^0.8.0",
|
|
31
31
|
"xterm-addon-web-links": "^0.9.0",
|
|
@@ -86,61 +86,19 @@ var PACKAGE_VERSION_PATCH = VERSION_PARTS[2];
|
|
|
86
86
|
import * as duckdb2 from "@duckdb/duckdb-wasm";
|
|
87
87
|
|
|
88
88
|
// crate/pkg/shell.js
|
|
89
|
-
import { PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2
|
|
89
|
+
import { getPlatformFeatures, PACKAGE_NAME as PACKAGE_NAME2, PACKAGE_VERSION as PACKAGE_VERSION2 } from "@duckdb/duckdb-wasm";
|
|
90
90
|
import { Terminal } from "xterm";
|
|
91
91
|
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__hddb5167cc04b5326(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__h21e86434f3007437(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.closure114_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.closure177_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,586 +403,598 @@ async function __wbg_load(module, imports) {
|
|
|
426
403
|
function __wbg_get_imports() {
|
|
427
404
|
const imports = {};
|
|
428
405
|
imports.wbg = {};
|
|
429
|
-
imports.wbg.
|
|
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_registerOPFSFileName_8efb2b5d0df8d9a7 = function() {
|
|
451
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
452
|
-
const ret = getObject(arg0).registerOPFSFileName(getStringFromWasm0(arg1, arg2));
|
|
453
|
-
return addHeapObject(ret);
|
|
454
|
-
}, arguments);
|
|
455
|
-
};
|
|
456
|
-
imports.wbg.__wbg_exportFileStatistics_6b72eb40ca2eb4d5 = function() {
|
|
457
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
458
|
-
const ret = getObject(arg0).exportFileStatistics(getStringFromWasm0(arg1, arg2));
|
|
459
|
-
return addHeapObject(ret);
|
|
460
|
-
}, arguments);
|
|
461
|
-
};
|
|
462
|
-
imports.wbg.__wbg_construct_e68e1da98af9f9aa = function(arg0) {
|
|
463
|
-
const ret = new Terminal(getObject(arg0));
|
|
464
|
-
return addHeapObject(ret);
|
|
409
|
+
imports.wbg.__wbg_backgroundColor_51cf19ee7d4b277a = function(arg0, arg1) {
|
|
410
|
+
const ret = arg1.backgroundColor;
|
|
411
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
412
|
+
const len1 = WASM_VECTOR_LEN;
|
|
413
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
414
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
465
415
|
};
|
|
466
|
-
imports.wbg.
|
|
467
|
-
const ret =
|
|
416
|
+
imports.wbg.__wbg_bigInt64Array_c64b3751e74d5277 = function(arg0) {
|
|
417
|
+
const ret = arg0.bigInt64Array;
|
|
468
418
|
return ret;
|
|
469
419
|
};
|
|
470
|
-
imports.wbg.
|
|
471
|
-
const ret =
|
|
420
|
+
imports.wbg.__wbg_blockSize_cd30a6366d631ae8 = function(arg0) {
|
|
421
|
+
const ret = arg0.blockSize;
|
|
472
422
|
return ret;
|
|
473
423
|
};
|
|
474
|
-
imports.wbg.
|
|
475
|
-
|
|
424
|
+
imports.wbg.__wbg_blockStats_7e6019968a50af3b = function(arg0) {
|
|
425
|
+
const ret = arg0.blockStats;
|
|
426
|
+
return ret;
|
|
476
427
|
};
|
|
477
|
-
imports.wbg.
|
|
478
|
-
const ret =
|
|
479
|
-
return
|
|
428
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
429
|
+
const ret = arg0.buffer;
|
|
430
|
+
return ret;
|
|
480
431
|
};
|
|
481
|
-
imports.wbg.
|
|
482
|
-
|
|
432
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
|
|
433
|
+
return handleError(function(arg0, arg1) {
|
|
434
|
+
const ret = arg0.call(arg1);
|
|
435
|
+
return ret;
|
|
436
|
+
}, arguments);
|
|
483
437
|
};
|
|
484
|
-
imports.wbg.
|
|
438
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
485
439
|
return handleError(function(arg0, arg1, arg2) {
|
|
486
|
-
const ret =
|
|
487
|
-
return
|
|
440
|
+
const ret = arg0.call(arg1, arg2);
|
|
441
|
+
return ret;
|
|
488
442
|
}, arguments);
|
|
489
443
|
};
|
|
490
|
-
imports.wbg.
|
|
491
|
-
return handleError(function() {
|
|
492
|
-
const ret =
|
|
493
|
-
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;
|
|
494
448
|
}, arguments);
|
|
495
449
|
};
|
|
496
|
-
imports.wbg.
|
|
497
|
-
const ret =
|
|
450
|
+
imports.wbg.__wbg_cols_77a8050235d63c90 = function(arg0) {
|
|
451
|
+
const ret = arg0.cols;
|
|
498
452
|
return ret;
|
|
499
453
|
};
|
|
500
|
-
imports.wbg.
|
|
501
|
-
|
|
502
|
-
|
|
454
|
+
imports.wbg.__wbg_connectInternal_818454f7281c00df = function() {
|
|
455
|
+
return handleError(function(arg0) {
|
|
456
|
+
const ret = arg0.connectInternal();
|
|
457
|
+
return ret;
|
|
458
|
+
}, arguments);
|
|
503
459
|
};
|
|
504
|
-
imports.wbg.
|
|
505
|
-
const ret =
|
|
460
|
+
imports.wbg.__wbg_construct_036a353ca42f67b4 = function(arg0) {
|
|
461
|
+
const ret = new Terminal(arg0);
|
|
506
462
|
return ret;
|
|
507
463
|
};
|
|
508
|
-
imports.wbg.
|
|
509
|
-
|
|
510
|
-
|
|
464
|
+
imports.wbg.__wbg_copyFileToBuffer_83cb2af8941ca82a = function() {
|
|
465
|
+
return handleError(function(arg0, arg1, arg2) {
|
|
466
|
+
const ret = arg0.copyFileToBuffer(getStringFromWasm0(arg1, arg2));
|
|
467
|
+
return ret;
|
|
468
|
+
}, arguments);
|
|
511
469
|
};
|
|
512
|
-
imports.wbg.
|
|
513
|
-
const ret =
|
|
470
|
+
imports.wbg.__wbg_crossOriginIsolated_0118e2417ec095ee = function(arg0) {
|
|
471
|
+
const ret = arg0.crossOriginIsolated;
|
|
514
472
|
return ret;
|
|
515
473
|
};
|
|
516
|
-
imports.wbg.
|
|
517
|
-
const ret =
|
|
474
|
+
imports.wbg.__wbg_ctrlKey_1e826e468105ac11 = function(arg0) {
|
|
475
|
+
const ret = arg0.ctrlKey;
|
|
518
476
|
return ret;
|
|
519
477
|
};
|
|
520
|
-
imports.wbg.
|
|
521
|
-
return handleError(function(arg0, arg1
|
|
522
|
-
const ret =
|
|
523
|
-
return
|
|
478
|
+
imports.wbg.__wbg_disconnect_92d81f4ec3f107ec = function() {
|
|
479
|
+
return handleError(function(arg0, arg1) {
|
|
480
|
+
const ret = arg0.disconnect(arg1 >>> 0);
|
|
481
|
+
return ret;
|
|
524
482
|
}, arguments);
|
|
525
483
|
};
|
|
526
|
-
imports.wbg.
|
|
527
|
-
return handleError(function(arg0) {
|
|
528
|
-
const ret =
|
|
529
|
-
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;
|
|
530
488
|
}, arguments);
|
|
531
489
|
};
|
|
532
|
-
imports.wbg.
|
|
490
|
+
imports.wbg.__wbg_dropFile_6eb68222192e72fc = function() {
|
|
533
491
|
return handleError(function(arg0, arg1, arg2) {
|
|
534
|
-
const ret =
|
|
535
|
-
return
|
|
492
|
+
const ret = arg0.dropFile(getStringFromWasm0(arg1, arg2));
|
|
493
|
+
return ret;
|
|
536
494
|
}, arguments);
|
|
537
495
|
};
|
|
538
|
-
imports.wbg.
|
|
539
|
-
return handleError(function(arg0, arg1) {
|
|
540
|
-
const ret = getObject(arg0).open(DuckDBConfig.__wrap(arg1));
|
|
541
|
-
return addHeapObject(ret);
|
|
542
|
-
}, arguments);
|
|
543
|
-
};
|
|
544
|
-
imports.wbg.__wbg_getVersion_6fe922c9d7787e50 = function() {
|
|
496
|
+
imports.wbg.__wbg_dropFiles_8bf37b450b4de5ee = function() {
|
|
545
497
|
return handleError(function(arg0) {
|
|
546
|
-
const ret =
|
|
547
|
-
return
|
|
498
|
+
const ret = arg0.dropFiles();
|
|
499
|
+
return ret;
|
|
548
500
|
}, arguments);
|
|
549
501
|
};
|
|
550
|
-
imports.wbg.
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
const ret = getObject(arg0).connectInternal();
|
|
561
|
-
return addHeapObject(ret);
|
|
562
|
-
}, 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
|
+
}
|
|
563
512
|
};
|
|
564
|
-
imports.wbg.
|
|
565
|
-
|
|
566
|
-
const ret = getObject(arg0).downloadFile(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
|
567
|
-
return addHeapObject(ret);
|
|
568
|
-
}, arguments);
|
|
513
|
+
imports.wbg.__wbg_error_ebb9ec1bc5af2f31 = function(arg0, arg1) {
|
|
514
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
569
515
|
};
|
|
570
|
-
imports.wbg.
|
|
516
|
+
imports.wbg.__wbg_exportFileStatistics_d52b61d6c201da1c = function() {
|
|
571
517
|
return handleError(function(arg0, arg1, arg2) {
|
|
572
|
-
const ret =
|
|
573
|
-
return
|
|
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).pickFiles();
|
|
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).runQuery(arg1 >>> 0, getStringFromWasm0(arg2, arg3));
|
|
585
|
-
return addHeapObject(ret);
|
|
586
|
-
}, arguments);
|
|
525
|
+
imports.wbg.__wbg_focus_dd92db4314c4db81 = function(arg0) {
|
|
526
|
+
arg0.focus();
|
|
587
527
|
};
|
|
588
|
-
imports.wbg.
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
return addHeapObject(ret);
|
|
592
|
-
}, arguments);
|
|
593
|
-
};
|
|
594
|
-
imports.wbg.__wbg_offsets_fc2b1a7bf689ba81 = function(arg0, arg1) {
|
|
595
|
-
const ret = getObject(arg1).offsets;
|
|
596
|
-
const ptr1 = passArray32ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
528
|
+
imports.wbg.__wbg_fontFamily_cac93414dbe897cf = function(arg0, arg1) {
|
|
529
|
+
const ret = arg1.fontFamily;
|
|
530
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
597
531
|
const len1 = WASM_VECTOR_LEN;
|
|
598
|
-
|
|
599
|
-
|
|
532
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
533
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
600
534
|
};
|
|
601
|
-
imports.wbg.
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
535
|
+
imports.wbg.__wbg_getFeatureFlags_14afaddbcef26858 = function() {
|
|
536
|
+
return handleError(function(arg0) {
|
|
537
|
+
const ret = arg0.getFeatureFlags();
|
|
538
|
+
return ret;
|
|
539
|
+
}, arguments);
|
|
607
540
|
};
|
|
608
|
-
imports.wbg.
|
|
541
|
+
imports.wbg.__wbg_getPlatformFeatures_40454c7f78791eb6 = function() {
|
|
542
|
+
return handleError(function() {
|
|
543
|
+
const ret = getPlatformFeatures();
|
|
544
|
+
return ret;
|
|
545
|
+
}, arguments);
|
|
546
|
+
};
|
|
547
|
+
imports.wbg.__wbg_getVersion_32486a199e795762 = function() {
|
|
609
548
|
return handleError(function(arg0) {
|
|
610
|
-
const ret =
|
|
611
|
-
return
|
|
549
|
+
const ret = arg0.getVersion();
|
|
550
|
+
return ret;
|
|
612
551
|
}, arguments);
|
|
613
552
|
};
|
|
614
|
-
imports.wbg.
|
|
615
|
-
|
|
553
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
554
|
+
const ret = arg0[arg1 >>> 0];
|
|
555
|
+
return ret;
|
|
616
556
|
};
|
|
617
|
-
imports.wbg.
|
|
618
|
-
|
|
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);
|
|
619
562
|
};
|
|
620
|
-
imports.wbg.
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
563
|
+
imports.wbg.__wbg_instanceof_WebLinksAddon_3750ea42996e2252 = function(arg0) {
|
|
564
|
+
let result;
|
|
565
|
+
try {
|
|
566
|
+
result = arg0 instanceof WebLinksAddon;
|
|
567
|
+
} catch (_) {
|
|
568
|
+
result = false;
|
|
625
569
|
}
|
|
626
|
-
const ret =
|
|
570
|
+
const ret = result;
|
|
627
571
|
return ret;
|
|
628
572
|
};
|
|
629
|
-
imports.wbg.
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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;
|
|
634
582
|
};
|
|
635
|
-
imports.wbg.
|
|
636
|
-
|
|
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;
|
|
637
592
|
};
|
|
638
|
-
imports.wbg.
|
|
639
|
-
const ret =
|
|
593
|
+
imports.wbg.__wbg_key_7b5c6cb539be8e13 = function(arg0, arg1) {
|
|
594
|
+
const ret = arg1.key;
|
|
640
595
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
641
596
|
const len1 = WASM_VECTOR_LEN;
|
|
642
|
-
|
|
643
|
-
|
|
597
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
598
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
644
599
|
};
|
|
645
|
-
imports.wbg.
|
|
646
|
-
|
|
600
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
601
|
+
const ret = arg0.length;
|
|
602
|
+
return ret;
|
|
647
603
|
};
|
|
648
|
-
imports.wbg.
|
|
649
|
-
|
|
604
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
605
|
+
const ret = arg0.length;
|
|
606
|
+
return ret;
|
|
650
607
|
};
|
|
651
|
-
imports.wbg.
|
|
652
|
-
|
|
608
|
+
imports.wbg.__wbg_loadAddon_143d540bb5725490 = function(arg0, arg1) {
|
|
609
|
+
arg0.loadAddon(arg1);
|
|
653
610
|
};
|
|
654
|
-
imports.wbg.
|
|
655
|
-
|
|
611
|
+
imports.wbg.__wbg_log_33ef14fd0c9ec1a3 = function(arg0, arg1) {
|
|
612
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
656
613
|
};
|
|
657
|
-
imports.wbg.
|
|
658
|
-
|
|
614
|
+
imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
|
|
615
|
+
const ret = arg0.message;
|
|
616
|
+
return ret;
|
|
659
617
|
};
|
|
660
|
-
imports.wbg.
|
|
661
|
-
|
|
618
|
+
imports.wbg.__wbg_metaKey_e1dd47d709a80ce5 = function(arg0) {
|
|
619
|
+
const ret = arg0.metaKey;
|
|
620
|
+
return ret;
|
|
662
621
|
};
|
|
663
|
-
imports.wbg.
|
|
664
|
-
|
|
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
|
+
}
|
|
665
639
|
};
|
|
666
|
-
imports.wbg.
|
|
667
|
-
const ret =
|
|
668
|
-
|
|
669
|
-
const len1 = WASM_VECTOR_LEN;
|
|
670
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
671
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
640
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
641
|
+
const ret = new Object();
|
|
642
|
+
return ret;
|
|
672
643
|
};
|
|
673
|
-
imports.wbg.
|
|
674
|
-
|
|
644
|
+
imports.wbg.__wbg_new_7890702e2f921af0 = function(arg0) {
|
|
645
|
+
const ret = new WebglAddon(arg0 === 16777215 ? void 0 : arg0 !== 0);
|
|
646
|
+
return ret;
|
|
675
647
|
};
|
|
676
|
-
imports.wbg.
|
|
677
|
-
|
|
648
|
+
imports.wbg.__wbg_new_7c075f00f439f1e0 = function() {
|
|
649
|
+
const ret = new FitAddon();
|
|
650
|
+
return ret;
|
|
678
651
|
};
|
|
679
|
-
imports.wbg.
|
|
680
|
-
|
|
652
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
653
|
+
const ret = new Error();
|
|
654
|
+
return ret;
|
|
681
655
|
};
|
|
682
|
-
imports.wbg.
|
|
683
|
-
const ret = new
|
|
684
|
-
return
|
|
656
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
657
|
+
const ret = new Uint8Array(arg0);
|
|
658
|
+
return ret;
|
|
685
659
|
};
|
|
686
|
-
imports.wbg.
|
|
687
|
-
|
|
688
|
-
try {
|
|
689
|
-
result = getObject(arg0) instanceof WebglAddon;
|
|
690
|
-
} catch (e) {
|
|
691
|
-
result = false;
|
|
692
|
-
}
|
|
693
|
-
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);
|
|
694
662
|
return ret;
|
|
695
663
|
};
|
|
696
|
-
imports.wbg.
|
|
697
|
-
|
|
664
|
+
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
|
665
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
666
|
+
return ret;
|
|
698
667
|
};
|
|
699
|
-
imports.wbg.
|
|
700
|
-
const ret = new
|
|
701
|
-
return
|
|
668
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
669
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
670
|
+
return ret;
|
|
702
671
|
};
|
|
703
|
-
imports.wbg.
|
|
704
|
-
|
|
705
|
-
try {
|
|
706
|
-
result = getObject(arg0) instanceof WebLinksAddon;
|
|
707
|
-
} catch (e) {
|
|
708
|
-
result = false;
|
|
709
|
-
}
|
|
710
|
-
const ret = result;
|
|
672
|
+
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
673
|
+
const ret = arg0.now();
|
|
711
674
|
return ret;
|
|
712
675
|
};
|
|
713
|
-
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() {
|
|
714
684
|
return handleError(function(arg0, arg1) {
|
|
715
|
-
const ret =
|
|
716
|
-
return
|
|
685
|
+
const ret = arg0.open(DuckDBConfig.__wrap(arg1));
|
|
686
|
+
return ret;
|
|
717
687
|
}, arguments);
|
|
718
688
|
};
|
|
719
|
-
imports.wbg.
|
|
720
|
-
|
|
721
|
-
const ret = JSON.stringify(obj === void 0 ? null : obj);
|
|
722
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
723
|
-
const len1 = WASM_VECTOR_LEN;
|
|
724
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
725
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
689
|
+
imports.wbg.__wbg_open_ea472ea5209b0983 = function(arg0, arg1) {
|
|
690
|
+
arg0.open(arg1);
|
|
726
691
|
};
|
|
727
|
-
imports.wbg.
|
|
728
|
-
const ret =
|
|
729
|
-
|
|
730
|
-
const len1 = WASM_VECTOR_LEN;
|
|
731
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
732
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
692
|
+
imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
|
|
693
|
+
const ret = arg0.performance;
|
|
694
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
733
695
|
};
|
|
734
|
-
imports.wbg.
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
696
|
+
imports.wbg.__wbg_pickFiles_c443e685aed27e4f = function() {
|
|
697
|
+
return handleError(function(arg0) {
|
|
698
|
+
const ret = arg0.pickFiles();
|
|
699
|
+
return ret;
|
|
700
|
+
}, arguments);
|
|
740
701
|
};
|
|
741
|
-
imports.wbg.
|
|
742
|
-
|
|
743
|
-
|
|
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);
|
|
744
707
|
};
|
|
745
|
-
imports.wbg.
|
|
746
|
-
|
|
747
|
-
return addHeapObject(ret);
|
|
708
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
709
|
+
queueMicrotask(arg0);
|
|
748
710
|
};
|
|
749
|
-
imports.wbg.
|
|
750
|
-
const ret =
|
|
751
|
-
return
|
|
711
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
712
|
+
const ret = arg0.queueMicrotask;
|
|
713
|
+
return ret;
|
|
752
714
|
};
|
|
753
|
-
imports.wbg.
|
|
754
|
-
|
|
755
|
-
|
|
715
|
+
imports.wbg.__wbg_readClipboardText_731ab326db907631 = function() {
|
|
716
|
+
return handleError(function(arg0) {
|
|
717
|
+
const ret = arg0.readClipboardText();
|
|
718
|
+
return ret;
|
|
719
|
+
}, arguments);
|
|
756
720
|
};
|
|
757
|
-
imports.wbg.
|
|
758
|
-
|
|
759
|
-
|
|
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);
|
|
760
726
|
};
|
|
761
|
-
imports.wbg.
|
|
762
|
-
const ret =
|
|
763
|
-
return
|
|
727
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
728
|
+
const ret = Promise.resolve(arg0);
|
|
729
|
+
return ret;
|
|
764
730
|
};
|
|
765
|
-
imports.wbg.
|
|
766
|
-
|
|
767
|
-
|
|
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);
|
|
768
736
|
};
|
|
769
|
-
imports.wbg.
|
|
770
|
-
|
|
771
|
-
return addHeapObject(ret);
|
|
737
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
738
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
772
739
|
};
|
|
773
|
-
imports.wbg.
|
|
774
|
-
|
|
775
|
-
return addHeapObject(ret);
|
|
740
|
+
imports.wbg.__wbg_setallowProposedApi_1e56ae3768e93420 = function(arg0, arg1) {
|
|
741
|
+
arg0.allowProposedApi = arg1 !== 0;
|
|
776
742
|
};
|
|
777
|
-
imports.wbg.
|
|
778
|
-
|
|
743
|
+
imports.wbg.__wbg_setbackground_94f13d2866b2e31b = function(arg0, arg1, arg2) {
|
|
744
|
+
arg0.background = getStringFromWasm0(arg1, arg2);
|
|
779
745
|
};
|
|
780
|
-
imports.wbg.
|
|
781
|
-
|
|
746
|
+
imports.wbg.__wbg_setbrightYellow_5858b72099992f03 = function(arg0, arg1, arg2) {
|
|
747
|
+
arg0.brightYellow = getStringFromWasm0(arg1, arg2);
|
|
782
748
|
};
|
|
783
|
-
imports.wbg.
|
|
784
|
-
|
|
749
|
+
imports.wbg.__wbg_setcursorBlink_850e871d6bcda748 = function(arg0, arg1) {
|
|
750
|
+
arg0.cursorBlink = arg1 !== 0;
|
|
785
751
|
};
|
|
786
|
-
imports.wbg.
|
|
787
|
-
|
|
788
|
-
return addHeapObject(ret);
|
|
752
|
+
imports.wbg.__wbg_setcursorWidth_7899d7d19308befe = function(arg0, arg1) {
|
|
753
|
+
arg0.cursorWidth = arg1 >>> 0;
|
|
789
754
|
};
|
|
790
|
-
imports.wbg.
|
|
791
|
-
|
|
792
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
793
|
-
const len1 = WASM_VECTOR_LEN;
|
|
794
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
795
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
755
|
+
imports.wbg.__wbg_setdrawBoldTextInBrightColors_c3276731d7662d87 = function(arg0, arg1) {
|
|
756
|
+
arg0.drawBoldTextInBrightColors = arg1 !== 0;
|
|
796
757
|
};
|
|
797
|
-
imports.wbg.
|
|
798
|
-
|
|
799
|
-
let deferred0_1;
|
|
800
|
-
try {
|
|
801
|
-
deferred0_0 = arg0;
|
|
802
|
-
deferred0_1 = arg1;
|
|
803
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
804
|
-
} finally {
|
|
805
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
806
|
-
}
|
|
758
|
+
imports.wbg.__wbg_setfontFamily_f2837e56dcf1e5a4 = function(arg0, arg1, arg2) {
|
|
759
|
+
arg0.fontFamily = getStringFromWasm0(arg1, arg2);
|
|
807
760
|
};
|
|
808
|
-
imports.wbg.
|
|
809
|
-
|
|
810
|
-
try {
|
|
811
|
-
result = getObject(arg0) instanceof Window;
|
|
812
|
-
} catch (e) {
|
|
813
|
-
result = false;
|
|
814
|
-
}
|
|
815
|
-
const ret = result;
|
|
816
|
-
return ret;
|
|
761
|
+
imports.wbg.__wbg_setfontSize_7d8e3357cbc2a6ac = function(arg0, arg1) {
|
|
762
|
+
arg0.fontSize = arg1 >>> 0;
|
|
817
763
|
};
|
|
818
|
-
imports.wbg.
|
|
819
|
-
|
|
820
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
764
|
+
imports.wbg.__wbg_setforeground_bbda7a714f8f4254 = function(arg0, arg1, arg2) {
|
|
765
|
+
arg0.foreground = getStringFromWasm0(arg1, arg2);
|
|
821
766
|
};
|
|
822
|
-
imports.wbg.
|
|
823
|
-
|
|
824
|
-
return ret;
|
|
767
|
+
imports.wbg.__wbg_setrightClickSelectsWord_e15e0a6c7e12c2f4 = function(arg0, arg1) {
|
|
768
|
+
arg0.rightClickSelectsWord = arg1 !== 0;
|
|
825
769
|
};
|
|
826
|
-
imports.wbg.
|
|
827
|
-
|
|
828
|
-
|
|
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;
|
|
829
775
|
};
|
|
830
|
-
imports.wbg.
|
|
831
|
-
const ret =
|
|
776
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
777
|
+
const ret = arg1.stack;
|
|
832
778
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
833
779
|
const len1 = WASM_VECTOR_LEN;
|
|
834
|
-
|
|
835
|
-
|
|
780
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
781
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
836
782
|
};
|
|
837
|
-
imports.wbg.
|
|
838
|
-
const 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);
|
|
786
|
+
};
|
|
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;
|
|
839
793
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
840
794
|
const len1 = WASM_VECTOR_LEN;
|
|
841
|
-
|
|
842
|
-
|
|
795
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
796
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
843
797
|
};
|
|
844
|
-
imports.wbg.
|
|
845
|
-
const ret =
|
|
846
|
-
|
|
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);
|
|
804
|
+
};
|
|
805
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
806
|
+
const ret = typeof self === "undefined" ? null : self;
|
|
807
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
847
808
|
};
|
|
848
|
-
imports.wbg.
|
|
849
|
-
const ret =
|
|
850
|
-
return
|
|
809
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
810
|
+
const ret = typeof window === "undefined" ? null : window;
|
|
811
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
851
812
|
};
|
|
852
|
-
imports.wbg.
|
|
853
|
-
const ret =
|
|
813
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
814
|
+
const ret = arg0.then(arg1);
|
|
854
815
|
return ret;
|
|
855
816
|
};
|
|
856
|
-
imports.wbg.
|
|
857
|
-
const ret =
|
|
858
|
-
return
|
|
817
|
+
imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
818
|
+
const ret = arg0.then(arg1, arg2);
|
|
819
|
+
return ret;
|
|
859
820
|
};
|
|
860
|
-
imports.wbg.
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
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;
|
|
864
829
|
}, arguments);
|
|
865
830
|
};
|
|
866
|
-
imports.wbg.
|
|
867
|
-
const ret =
|
|
868
|
-
return
|
|
831
|
+
imports.wbg.__wbg_totalFileReadsAhead_a8f3246739715872 = function(arg0) {
|
|
832
|
+
const ret = arg0.totalFileReadsAhead;
|
|
833
|
+
return ret;
|
|
869
834
|
};
|
|
870
|
-
imports.wbg.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
return addHeapObject(ret);
|
|
874
|
-
}, arguments);
|
|
835
|
+
imports.wbg.__wbg_totalFileReadsCached_a9d725246d8113de = function(arg0) {
|
|
836
|
+
const ret = arg0.totalFileReadsCached;
|
|
837
|
+
return ret;
|
|
875
838
|
};
|
|
876
|
-
imports.wbg.
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
return addHeapObject(ret);
|
|
880
|
-
}, arguments);
|
|
839
|
+
imports.wbg.__wbg_totalFileReadsCold_969fc4fdc92ba928 = function(arg0) {
|
|
840
|
+
const ret = arg0.totalFileReadsCold;
|
|
841
|
+
return ret;
|
|
881
842
|
};
|
|
882
|
-
imports.wbg.
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
return addHeapObject(ret);
|
|
886
|
-
}, arguments);
|
|
843
|
+
imports.wbg.__wbg_totalFileWrites_a1979d03072ca561 = function(arg0) {
|
|
844
|
+
const ret = arg0.totalFileWrites;
|
|
845
|
+
return ret;
|
|
887
846
|
};
|
|
888
|
-
imports.wbg.
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
return addHeapObject(ret);
|
|
892
|
-
}, arguments);
|
|
847
|
+
imports.wbg.__wbg_totalPageAccesses_d1e0755e7c873650 = function(arg0) {
|
|
848
|
+
const ret = arg0.totalPageAccesses;
|
|
849
|
+
return ret;
|
|
893
850
|
};
|
|
894
|
-
imports.wbg.
|
|
895
|
-
const ret =
|
|
851
|
+
imports.wbg.__wbg_totalPageLoads_055280bed199c515 = function(arg0) {
|
|
852
|
+
const ret = arg0.totalPageLoads;
|
|
896
853
|
return ret;
|
|
897
854
|
};
|
|
898
|
-
imports.wbg.
|
|
899
|
-
const ret =
|
|
900
|
-
|
|
855
|
+
imports.wbg.__wbg_type_16f2b8031796512f = function(arg0, arg1) {
|
|
856
|
+
const ret = arg1.type;
|
|
857
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
858
|
+
const len1 = WASM_VECTOR_LEN;
|
|
859
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
860
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
901
861
|
};
|
|
902
|
-
imports.wbg.
|
|
903
|
-
const ret =
|
|
904
|
-
|
|
862
|
+
imports.wbg.__wbg_types_10068f549973c623 = function(arg0, arg1) {
|
|
863
|
+
const ret = arg1.types;
|
|
864
|
+
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
865
|
+
const len1 = WASM_VECTOR_LEN;
|
|
866
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
867
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
905
868
|
};
|
|
906
|
-
imports.wbg.
|
|
907
|
-
|
|
908
|
-
return addHeapObject(ret);
|
|
869
|
+
imports.wbg.__wbg_warn_45a3a6612d9f19fe = function(arg0, arg1) {
|
|
870
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
909
871
|
};
|
|
910
|
-
imports.wbg.
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
return addHeapObject(ret);
|
|
914
|
-
}, arguments);
|
|
872
|
+
imports.wbg.__wbg_wasmBulkMemory_551502ede47fbf09 = function(arg0) {
|
|
873
|
+
const ret = arg0.wasmBulkMemory;
|
|
874
|
+
return ret;
|
|
915
875
|
};
|
|
916
|
-
imports.wbg.
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
var cb0 = (arg02, arg12) => {
|
|
920
|
-
const a = state0.a;
|
|
921
|
-
state0.a = 0;
|
|
922
|
-
try {
|
|
923
|
-
return __wbg_adapter_213(a, state0.b, arg02, arg12);
|
|
924
|
-
} finally {
|
|
925
|
-
state0.a = a;
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
|
-
const ret = new Promise(cb0);
|
|
929
|
-
return addHeapObject(ret);
|
|
930
|
-
} finally {
|
|
931
|
-
state0.a = state0.b = 0;
|
|
932
|
-
}
|
|
876
|
+
imports.wbg.__wbg_wasmExceptions_4f3d6bc9c38eccd4 = function(arg0) {
|
|
877
|
+
const ret = arg0.wasmExceptions;
|
|
878
|
+
return ret;
|
|
933
879
|
};
|
|
934
|
-
imports.wbg.
|
|
935
|
-
const ret =
|
|
936
|
-
return
|
|
880
|
+
imports.wbg.__wbg_wasmSIMD_6e524010ac1b3712 = function(arg0) {
|
|
881
|
+
const ret = arg0.wasmSIMD;
|
|
882
|
+
return ret;
|
|
937
883
|
};
|
|
938
|
-
imports.wbg.
|
|
939
|
-
const ret =
|
|
940
|
-
return
|
|
884
|
+
imports.wbg.__wbg_wasmThreads_bb92f1f17739f197 = function(arg0) {
|
|
885
|
+
const ret = arg0.wasmThreads;
|
|
886
|
+
return ret;
|
|
941
887
|
};
|
|
942
|
-
imports.wbg.
|
|
943
|
-
const ret =
|
|
944
|
-
return
|
|
888
|
+
imports.wbg.__wbg_withWebGL_e7b2f98241b8125a = function(arg0) {
|
|
889
|
+
const ret = arg0.withWebGL;
|
|
890
|
+
return ret;
|
|
945
891
|
};
|
|
946
|
-
imports.wbg.
|
|
947
|
-
|
|
948
|
-
return addHeapObject(ret);
|
|
892
|
+
imports.wbg.__wbg_write_c3295e1c4c88047e = function(arg0, arg1, arg2) {
|
|
893
|
+
arg0.write(getStringFromWasm0(arg1, arg2));
|
|
949
894
|
};
|
|
950
|
-
imports.wbg.
|
|
951
|
-
const
|
|
952
|
-
|
|
895
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
896
|
+
const obj = arg0.original;
|
|
897
|
+
if (obj.cnt-- == 1) {
|
|
898
|
+
obj.a = 0;
|
|
899
|
+
return true;
|
|
900
|
+
}
|
|
901
|
+
const ret = false;
|
|
902
|
+
return ret;
|
|
953
903
|
};
|
|
954
|
-
imports.wbg.
|
|
955
|
-
|
|
904
|
+
imports.wbg.__wbindgen_closure_wrapper459 = function(arg0, arg1, arg2) {
|
|
905
|
+
const ret = makeMutClosure(arg0, arg1, 115, __wbg_adapter_26);
|
|
906
|
+
return ret;
|
|
956
907
|
};
|
|
957
|
-
imports.wbg.
|
|
958
|
-
const ret =
|
|
908
|
+
imports.wbg.__wbindgen_closure_wrapper889 = function(arg0, arg1, arg2) {
|
|
909
|
+
const ret = makeMutClosure(arg0, arg1, 178, __wbg_adapter_29);
|
|
959
910
|
return ret;
|
|
960
911
|
};
|
|
961
912
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
962
|
-
const ret = debugString(
|
|
913
|
+
const ret = debugString(arg1);
|
|
963
914
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
964
915
|
const len1 = WASM_VECTOR_LEN;
|
|
965
|
-
|
|
966
|
-
|
|
916
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
917
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
918
|
+
};
|
|
919
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
920
|
+
const table = wasm.__wbindgen_export_4;
|
|
921
|
+
const offset = table.grow(4);
|
|
922
|
+
table.set(0, void 0);
|
|
923
|
+
table.set(offset + 0, void 0);
|
|
924
|
+
table.set(offset + 1, null);
|
|
925
|
+
table.set(offset + 2, true);
|
|
926
|
+
table.set(offset + 3, false);
|
|
927
|
+
;
|
|
928
|
+
};
|
|
929
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
930
|
+
const ret = typeof arg0 === "function";
|
|
931
|
+
return ret;
|
|
967
932
|
};
|
|
968
|
-
imports.wbg.
|
|
969
|
-
|
|
933
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
934
|
+
const ret = arg0 === void 0;
|
|
935
|
+
return ret;
|
|
936
|
+
};
|
|
937
|
+
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
938
|
+
const obj = arg1;
|
|
939
|
+
const ret = JSON.stringify(obj === void 0 ? null : obj);
|
|
940
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
941
|
+
const len1 = WASM_VECTOR_LEN;
|
|
942
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
943
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
970
944
|
};
|
|
971
945
|
imports.wbg.__wbindgen_memory = function() {
|
|
972
946
|
const ret = wasm.memory;
|
|
973
|
-
return
|
|
947
|
+
return ret;
|
|
974
948
|
};
|
|
975
|
-
imports.wbg.
|
|
976
|
-
const
|
|
977
|
-
|
|
949
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
950
|
+
const obj = arg1;
|
|
951
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
952
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
953
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
954
|
+
};
|
|
955
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
956
|
+
const obj = arg1;
|
|
957
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
958
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
959
|
+
var len1 = WASM_VECTOR_LEN;
|
|
960
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
961
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
978
962
|
};
|
|
979
|
-
imports.wbg.
|
|
980
|
-
|
|
981
|
-
return addHeapObject(ret);
|
|
963
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
964
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
982
965
|
};
|
|
983
966
|
return imports;
|
|
984
967
|
}
|
|
985
|
-
function __wbg_init_memory(imports,
|
|
968
|
+
function __wbg_init_memory(imports, memory) {
|
|
986
969
|
}
|
|
987
970
|
function __wbg_finalize_init(instance, module) {
|
|
988
971
|
wasm = instance.exports;
|
|
989
972
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
cachedUint8Memory0 = null;
|
|
973
|
+
cachedDataViewMemory0 = null;
|
|
974
|
+
cachedUint32ArrayMemory0 = null;
|
|
975
|
+
cachedUint8ArrayMemory0 = null;
|
|
994
976
|
wasm.__wbindgen_start();
|
|
995
977
|
return wasm;
|
|
996
978
|
}
|
|
997
|
-
async function __wbg_init(
|
|
979
|
+
async function __wbg_init(module_or_path) {
|
|
998
980
|
if (wasm !== void 0)
|
|
999
981
|
return wasm;
|
|
1000
|
-
if (typeof
|
|
1001
|
-
|
|
982
|
+
if (typeof module_or_path !== "undefined") {
|
|
983
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
984
|
+
({ module_or_path } = module_or_path);
|
|
985
|
+
} else {
|
|
986
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
if (typeof module_or_path === "undefined") {
|
|
990
|
+
module_or_path = new URL("shell_bg.wasm", import.meta.url);
|
|
1002
991
|
}
|
|
1003
992
|
const imports = __wbg_get_imports();
|
|
1004
|
-
if (typeof
|
|
1005
|
-
|
|
993
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
994
|
+
module_or_path = fetch(module_or_path);
|
|
1006
995
|
}
|
|
1007
996
|
__wbg_init_memory(imports);
|
|
1008
|
-
const { instance, module } = await __wbg_load(await
|
|
997
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1009
998
|
return __wbg_finalize_init(instance, module);
|
|
1010
999
|
}
|
|
1011
1000
|
var shell_default = __wbg_init;
|