@peerbit/indexer-sqlite3 1.3.0 → 1.3.2
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/assets/sqlite3/sqlite3.js +463 -469
- package/dist/assets/sqlite3/sqlite3.mjs +446 -436
- package/dist/assets/sqlite3/sqlite3.wasm +0 -0
- package/dist/assets/sqlite3/sqlite3.worker.min.js +1365 -1304
- package/dist/index.min.js +11399 -11342
- package/dist/index.min.js.map +4 -4
- package/dist/src/sqlite3.wasm.d.ts.map +1 -1
- package/dist/src/sqlite3.wasm.js +42 -9
- package/dist/src/sqlite3.wasm.js.map +1 -1
- package/package.json +3 -3
- package/src/sqlite3.wasm.ts +56 -7
|
@@ -10,9 +10,16 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
12
|
});
|
|
13
|
+
var __esm = (fn, res) => function __init() {
|
|
14
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
+
};
|
|
13
16
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
17
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
18
|
};
|
|
19
|
+
var __export = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
22
|
+
};
|
|
16
23
|
var __copyProps = (to, from2, except, desc) => {
|
|
17
24
|
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
18
25
|
for (let key of __getOwnPropNames(from2))
|
|
@@ -5522,697 +5529,313 @@ var require_utf8 = __commonJS({
|
|
|
5522
5529
|
}
|
|
5523
5530
|
});
|
|
5524
5531
|
|
|
5525
|
-
// ../../../../node_modules/.pnpm/@
|
|
5526
|
-
|
|
5527
|
-
var
|
|
5528
|
-
var
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5532
|
+
// ../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.mjs
|
|
5533
|
+
async function sqlite3InitModule(moduleArg = {}) {
|
|
5534
|
+
var moduleRtn;
|
|
5535
|
+
var Module = moduleArg;
|
|
5536
|
+
var ENVIRONMENT_IS_WEB = !!globalThis.window;
|
|
5537
|
+
var ENVIRONMENT_IS_WORKER = !!globalThis.WorkerGlobalScope;
|
|
5538
|
+
var ENVIRONMENT_IS_NODE = globalThis.process?.versions?.node && globalThis.process?.type != "renderer";
|
|
5539
|
+
var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
|
|
5540
|
+
(function(Module2) {
|
|
5541
|
+
const sIMS = globalThis.sqlite3InitModuleState || Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
5542
|
+
debugModule: () => {
|
|
5543
|
+
console.warn("globalThis.sqlite3InitModuleState is missing");
|
|
5544
|
+
}
|
|
5545
|
+
});
|
|
5546
|
+
delete globalThis.sqlite3InitModuleState;
|
|
5547
|
+
sIMS.debugModule("pre-js.js sqlite3InitModuleState =", sIMS);
|
|
5548
|
+
Module2["locateFile"] = function(path, prefix) {
|
|
5549
|
+
return new URL(path, import.meta.url).href;
|
|
5550
|
+
}.bind(sIMS);
|
|
5551
|
+
Module2["instantiateWasm"] = function callee3(imports, onSuccess) {
|
|
5552
|
+
const sims = this;
|
|
5553
|
+
const uri = Module2.locateFile(
|
|
5554
|
+
sims.wasmFilename,
|
|
5555
|
+
"undefined" === typeof scriptDirectory ? "" : scriptDirectory
|
|
5556
|
+
);
|
|
5557
|
+
sims.debugModule("instantiateWasm() uri =", uri, "sIMS =", this);
|
|
5558
|
+
const wfetch = () => fetch(uri, { credentials: "same-origin" });
|
|
5559
|
+
const finalThen = (arg) => {
|
|
5560
|
+
arg.imports = imports;
|
|
5561
|
+
sims.instantiateWasm = arg;
|
|
5562
|
+
onSuccess(arg.instance, arg.module);
|
|
5563
|
+
};
|
|
5564
|
+
const loadWasm = WebAssembly.instantiateStreaming ? async () => WebAssembly.instantiateStreaming(wfetch(), imports).then(finalThen) : async () => wfetch().then((response) => response.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports)).then(finalThen);
|
|
5565
|
+
return loadWasm();
|
|
5566
|
+
}.bind(sIMS);
|
|
5567
|
+
})(Module);
|
|
5568
|
+
var arguments_ = [];
|
|
5569
|
+
var thisProgram = "./this.program";
|
|
5570
|
+
var quit_ = (status, toThrow) => {
|
|
5571
|
+
throw toThrow;
|
|
5572
|
+
};
|
|
5573
|
+
var _scriptName = import.meta.url;
|
|
5574
|
+
var scriptDirectory = "";
|
|
5575
|
+
function locateFile(path) {
|
|
5576
|
+
if (Module["locateFile"]) {
|
|
5577
|
+
return Module["locateFile"](path, scriptDirectory);
|
|
5578
|
+
}
|
|
5579
|
+
return scriptDirectory + path;
|
|
5542
5580
|
}
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
var writeStringBufferFn = writeStringBufferFnFn();
|
|
5546
|
-
|
|
5547
|
-
// ../../../../node_modules/.pnpm/@dao-xyz+borsh@6.0.0/node_modules/@dao-xyz/borsh/lib/esm/index.js
|
|
5548
|
-
var _a;
|
|
5549
|
-
var symbolMetadataSymbol = Symbol.metadata ?? Symbol.for("Symbol.metadata");
|
|
5550
|
-
var STAGE3_FINALIZERS_SYMBOL = Symbol.for("@dao-xyz/stage3-finalizers");
|
|
5551
|
-
var metadataFinalizers = (_a = globalThis)[STAGE3_FINALIZERS_SYMBOL] ?? (_a[STAGE3_FINALIZERS_SYMBOL] = []);
|
|
5552
|
-
var metadataValueStore = /* @__PURE__ */ new WeakMap();
|
|
5553
|
-
var runMetadataFinalizers = (ctor, metadata) => {
|
|
5554
|
-
metadataValueStore.set(ctor, metadata);
|
|
5555
|
-
for (const finalizer of metadataFinalizers) {
|
|
5581
|
+
var readAsync, readBinary;
|
|
5582
|
+
if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
|
|
5556
5583
|
try {
|
|
5557
|
-
|
|
5584
|
+
scriptDirectory = new URL(".", _scriptName).href;
|
|
5558
5585
|
} catch {
|
|
5559
5586
|
}
|
|
5587
|
+
{
|
|
5588
|
+
if (ENVIRONMENT_IS_WORKER) {
|
|
5589
|
+
readBinary = (url) => {
|
|
5590
|
+
var xhr = new XMLHttpRequest();
|
|
5591
|
+
xhr.open("GET", url, false);
|
|
5592
|
+
xhr.responseType = "arraybuffer";
|
|
5593
|
+
xhr.send(null);
|
|
5594
|
+
return new Uint8Array(xhr.response);
|
|
5595
|
+
};
|
|
5596
|
+
}
|
|
5597
|
+
readAsync = async (url) => {
|
|
5598
|
+
var response = await fetch(url, { credentials: "same-origin" });
|
|
5599
|
+
if (response.ok) {
|
|
5600
|
+
return response.arrayBuffer();
|
|
5601
|
+
}
|
|
5602
|
+
throw new Error(response.status + " : " + response.url);
|
|
5603
|
+
};
|
|
5604
|
+
}
|
|
5605
|
+
} else {
|
|
5560
5606
|
}
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
}
|
|
5570
|
-
var REQUIRES_VARIANT_FLAG = Symbol.for("@dao-xyz/borsh:requires-variant");
|
|
5571
|
-
var VARIANT_ALREADY_READ = Symbol.for("@dao-xyz/borsh:variant-read");
|
|
5572
|
-
var STAGE3_GUARD_FLAG = "__borsh_ts_rpc_stage_3_initialized";
|
|
5573
|
-
if (!globalThis[STAGE3_GUARD_FLAG]) {
|
|
5574
|
-
const originalDefineProperty = Object.defineProperty;
|
|
5575
|
-
Object.defineProperty = function(target, propertyKey, attributes) {
|
|
5576
|
-
if (propertyKey === symbolMetadataSymbol && attributes && typeof target === "function" && attributes.value) {
|
|
5577
|
-
runMetadataFinalizers(target, attributes.value);
|
|
5607
|
+
var out = console.log.bind(console);
|
|
5608
|
+
var err = console.error.bind(console);
|
|
5609
|
+
var wasmBinary;
|
|
5610
|
+
var ABORT = false;
|
|
5611
|
+
var EXITSTATUS;
|
|
5612
|
+
function assert(condition, text) {
|
|
5613
|
+
if (!condition) {
|
|
5614
|
+
abort(text);
|
|
5578
5615
|
}
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5616
|
+
}
|
|
5617
|
+
var isFileURI = (filename) => filename.startsWith("file://");
|
|
5618
|
+
var readyPromiseResolve, readyPromiseReject;
|
|
5619
|
+
var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
|
|
5620
|
+
var HEAP64, HEAPU64;
|
|
5621
|
+
var runtimeInitialized = false;
|
|
5622
|
+
function updateMemoryViews() {
|
|
5623
|
+
var b = wasmMemory.buffer;
|
|
5624
|
+
HEAP8 = new Int8Array(b);
|
|
5625
|
+
HEAP16 = new Int16Array(b);
|
|
5626
|
+
HEAPU8 = new Uint8Array(b);
|
|
5627
|
+
HEAPU16 = new Uint16Array(b);
|
|
5628
|
+
HEAP32 = new Int32Array(b);
|
|
5629
|
+
HEAPU32 = new Uint32Array(b);
|
|
5630
|
+
HEAPF32 = new Float32Array(b);
|
|
5631
|
+
HEAPF64 = new Float64Array(b);
|
|
5632
|
+
HEAP64 = new BigInt64Array(b);
|
|
5633
|
+
HEAPU64 = new BigUint64Array(b);
|
|
5634
|
+
}
|
|
5635
|
+
function initMemory() {
|
|
5636
|
+
if (Module["wasmMemory"]) {
|
|
5637
|
+
wasmMemory = Module["wasmMemory"];
|
|
5638
|
+
} else {
|
|
5639
|
+
var INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 8388608;
|
|
5640
|
+
wasmMemory = new WebAssembly.Memory({
|
|
5641
|
+
initial: INITIAL_MEMORY / 65536,
|
|
5642
|
+
maximum: 32768
|
|
5643
|
+
});
|
|
5592
5644
|
}
|
|
5593
|
-
|
|
5594
|
-
globalThis[STAGE3_GUARD_FLAG] = true;
|
|
5595
|
-
}
|
|
5596
|
-
var BORSH_STAGE3_METADATA_KEY = Symbol.for("@dao-xyz/borsh:stage3-decorators");
|
|
5597
|
-
metadataFinalizers.push((ctor, metadata) => {
|
|
5598
|
-
const store = metadata[BORSH_STAGE3_METADATA_KEY];
|
|
5599
|
-
if (!store || store.applied)
|
|
5600
|
-
return;
|
|
5601
|
-
store.applied = true;
|
|
5602
|
-
for (const action of store.actions) {
|
|
5603
|
-
action(ctor);
|
|
5645
|
+
updateMemoryViews();
|
|
5604
5646
|
}
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
var empty = new Uint8Array(0);
|
|
5615
|
-
function coerce(o) {
|
|
5616
|
-
if (o instanceof Uint8Array && o.constructor.name === "Uint8Array") {
|
|
5617
|
-
return o;
|
|
5647
|
+
function preRun() {
|
|
5648
|
+
if (Module["preRun"]) {
|
|
5649
|
+
if (typeof Module["preRun"] == "function")
|
|
5650
|
+
Module["preRun"] = [Module["preRun"]];
|
|
5651
|
+
while (Module["preRun"].length) {
|
|
5652
|
+
addOnPreRun(Module["preRun"].shift());
|
|
5653
|
+
}
|
|
5654
|
+
}
|
|
5655
|
+
callRuntimeCallbacks(onPreRuns);
|
|
5618
5656
|
}
|
|
5619
|
-
|
|
5620
|
-
|
|
5657
|
+
function initRuntime() {
|
|
5658
|
+
runtimeInitialized = true;
|
|
5659
|
+
if (!Module["noFSInit"] && !FS.initialized) FS.init();
|
|
5660
|
+
TTY.init();
|
|
5661
|
+
wasmExports["__wasm_call_ctors"]();
|
|
5662
|
+
FS.ignorePermissions = false;
|
|
5621
5663
|
}
|
|
5622
|
-
|
|
5623
|
-
|
|
5664
|
+
function postRun() {
|
|
5665
|
+
if (Module["postRun"]) {
|
|
5666
|
+
if (typeof Module["postRun"] == "function")
|
|
5667
|
+
Module["postRun"] = [Module["postRun"]];
|
|
5668
|
+
while (Module["postRun"].length) {
|
|
5669
|
+
addOnPostRun(Module["postRun"].shift());
|
|
5670
|
+
}
|
|
5671
|
+
}
|
|
5672
|
+
callRuntimeCallbacks(onPostRuns);
|
|
5624
5673
|
}
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5674
|
+
function abort(what) {
|
|
5675
|
+
Module["onAbort"]?.(what);
|
|
5676
|
+
what = "Aborted(" + what + ")";
|
|
5677
|
+
err(what);
|
|
5678
|
+
ABORT = true;
|
|
5679
|
+
what += ". Build with -sASSERTIONS for more info.";
|
|
5680
|
+
var e = new WebAssembly.RuntimeError(what);
|
|
5681
|
+
readyPromiseReject?.(e);
|
|
5682
|
+
throw e;
|
|
5632
5683
|
}
|
|
5633
|
-
var
|
|
5634
|
-
|
|
5635
|
-
|
|
5684
|
+
var wasmBinaryFile;
|
|
5685
|
+
function findWasmBinary() {
|
|
5686
|
+
if (Module["locateFile"]) {
|
|
5687
|
+
return locateFile("sqlite3.wasm");
|
|
5688
|
+
}
|
|
5689
|
+
return new URL("sqlite3.wasm", import.meta.url).href;
|
|
5636
5690
|
}
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
if (BASE_MAP[xc] !== 255) {
|
|
5641
|
-
throw new TypeError(x + " is ambiguous");
|
|
5691
|
+
function getBinarySync(file) {
|
|
5692
|
+
if (file == wasmBinaryFile && wasmBinary) {
|
|
5693
|
+
return new Uint8Array(wasmBinary);
|
|
5642
5694
|
}
|
|
5643
|
-
|
|
5695
|
+
if (readBinary) {
|
|
5696
|
+
return readBinary(file);
|
|
5697
|
+
}
|
|
5698
|
+
throw "both async and sync fetching of the wasm failed";
|
|
5644
5699
|
}
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
;
|
|
5652
|
-
else if (ArrayBuffer.isView(source)) {
|
|
5653
|
-
source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
|
|
5654
|
-
} else if (Array.isArray(source)) {
|
|
5655
|
-
source = Uint8Array.from(source);
|
|
5656
|
-
}
|
|
5657
|
-
if (!(source instanceof Uint8Array)) {
|
|
5658
|
-
throw new TypeError("Expected Uint8Array");
|
|
5659
|
-
}
|
|
5660
|
-
if (source.length === 0) {
|
|
5661
|
-
return "";
|
|
5662
|
-
}
|
|
5663
|
-
var zeroes = 0;
|
|
5664
|
-
var length = 0;
|
|
5665
|
-
var pbegin = 0;
|
|
5666
|
-
var pend = source.length;
|
|
5667
|
-
while (pbegin !== pend && source[pbegin] === 0) {
|
|
5668
|
-
pbegin++;
|
|
5669
|
-
zeroes++;
|
|
5670
|
-
}
|
|
5671
|
-
var size = (pend - pbegin) * iFACTOR + 1 >>> 0;
|
|
5672
|
-
var b58 = new Uint8Array(size);
|
|
5673
|
-
while (pbegin !== pend) {
|
|
5674
|
-
var carry = source[pbegin];
|
|
5675
|
-
var i2 = 0;
|
|
5676
|
-
for (var it1 = size - 1; (carry !== 0 || i2 < length) && it1 !== -1; it1--, i2++) {
|
|
5677
|
-
carry += 256 * b58[it1] >>> 0;
|
|
5678
|
-
b58[it1] = carry % BASE >>> 0;
|
|
5679
|
-
carry = carry / BASE >>> 0;
|
|
5680
|
-
}
|
|
5681
|
-
if (carry !== 0) {
|
|
5682
|
-
throw new Error("Non-zero carry");
|
|
5700
|
+
async function getWasmBinary(binaryFile) {
|
|
5701
|
+
if (!wasmBinary) {
|
|
5702
|
+
try {
|
|
5703
|
+
var response = await readAsync(binaryFile);
|
|
5704
|
+
return new Uint8Array(response);
|
|
5705
|
+
} catch {
|
|
5683
5706
|
}
|
|
5684
|
-
length = i2;
|
|
5685
|
-
pbegin++;
|
|
5686
|
-
}
|
|
5687
|
-
var it2 = size - length;
|
|
5688
|
-
while (it2 !== size && b58[it2] === 0) {
|
|
5689
|
-
it2++;
|
|
5690
|
-
}
|
|
5691
|
-
var str = LEADER.repeat(zeroes);
|
|
5692
|
-
for (; it2 < size; ++it2) {
|
|
5693
|
-
str += ALPHABET.charAt(b58[it2]);
|
|
5694
5707
|
}
|
|
5695
|
-
return
|
|
5708
|
+
return getBinarySync(binaryFile);
|
|
5696
5709
|
}
|
|
5697
|
-
function
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
if (source[psz] === " ") {
|
|
5706
|
-
return;
|
|
5707
|
-
}
|
|
5708
|
-
var zeroes = 0;
|
|
5709
|
-
var length = 0;
|
|
5710
|
-
while (source[psz] === LEADER) {
|
|
5711
|
-
zeroes++;
|
|
5712
|
-
psz++;
|
|
5710
|
+
async function instantiateArrayBuffer(binaryFile, imports) {
|
|
5711
|
+
try {
|
|
5712
|
+
var binary = await getWasmBinary(binaryFile);
|
|
5713
|
+
var instance = await WebAssembly.instantiate(binary, imports);
|
|
5714
|
+
return instance;
|
|
5715
|
+
} catch (reason) {
|
|
5716
|
+
err(`failed to asynchronously prepare wasm: ${reason}`);
|
|
5717
|
+
abort(reason);
|
|
5713
5718
|
}
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
if (carry !== 0) {
|
|
5728
|
-
throw new Error("Non-zero carry");
|
|
5719
|
+
}
|
|
5720
|
+
async function instantiateAsync(binary, binaryFile, imports) {
|
|
5721
|
+
if (!binary) {
|
|
5722
|
+
try {
|
|
5723
|
+
var response = fetch(binaryFile, { credentials: "same-origin" });
|
|
5724
|
+
var instantiationResult = await WebAssembly.instantiateStreaming(
|
|
5725
|
+
response,
|
|
5726
|
+
imports
|
|
5727
|
+
);
|
|
5728
|
+
return instantiationResult;
|
|
5729
|
+
} catch (reason) {
|
|
5730
|
+
err(`wasm streaming compile failed: ${reason}`);
|
|
5731
|
+
err("falling back to ArrayBuffer instantiation");
|
|
5729
5732
|
}
|
|
5730
|
-
length = i2;
|
|
5731
|
-
psz++;
|
|
5732
5733
|
}
|
|
5733
|
-
|
|
5734
|
-
|
|
5734
|
+
return instantiateArrayBuffer(binaryFile, imports);
|
|
5735
|
+
}
|
|
5736
|
+
function getWasmImports() {
|
|
5737
|
+
var imports = {
|
|
5738
|
+
env: wasmImports,
|
|
5739
|
+
wasi_snapshot_preview1: wasmImports
|
|
5740
|
+
};
|
|
5741
|
+
return imports;
|
|
5742
|
+
}
|
|
5743
|
+
async function createWasm() {
|
|
5744
|
+
function receiveInstance(instance, module) {
|
|
5745
|
+
wasmExports = instance.exports;
|
|
5746
|
+
assignWasmExports(wasmExports);
|
|
5747
|
+
return wasmExports;
|
|
5735
5748
|
}
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
it4++;
|
|
5749
|
+
function receiveInstantiationResult(result2) {
|
|
5750
|
+
return receiveInstance(result2["instance"]);
|
|
5739
5751
|
}
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5752
|
+
var info = getWasmImports();
|
|
5753
|
+
if (Module["instantiateWasm"]) {
|
|
5754
|
+
return new Promise((resolve, reject) => {
|
|
5755
|
+
Module["instantiateWasm"](info, (inst, mod) => {
|
|
5756
|
+
resolve(receiveInstance(inst, mod));
|
|
5757
|
+
});
|
|
5758
|
+
});
|
|
5744
5759
|
}
|
|
5745
|
-
|
|
5760
|
+
wasmBinaryFile ??= findWasmBinary();
|
|
5761
|
+
var result = await instantiateAsync(wasmBinary, wasmBinaryFile, info);
|
|
5762
|
+
var exports = receiveInstantiationResult(result);
|
|
5763
|
+
return exports;
|
|
5746
5764
|
}
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5765
|
+
class ExitStatus {
|
|
5766
|
+
name = "ExitStatus";
|
|
5767
|
+
constructor(status) {
|
|
5768
|
+
this.message = `Program terminated with exit(${status})`;
|
|
5769
|
+
this.status = status;
|
|
5751
5770
|
}
|
|
5752
|
-
throw new Error(`Non-${name} character`);
|
|
5753
5771
|
}
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5772
|
+
var callRuntimeCallbacks = (callbacks) => {
|
|
5773
|
+
while (callbacks.length > 0) {
|
|
5774
|
+
callbacks.shift()(Module);
|
|
5775
|
+
}
|
|
5758
5776
|
};
|
|
5759
|
-
|
|
5760
|
-
var
|
|
5761
|
-
var
|
|
5762
|
-
var
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5777
|
+
var onPostRuns = [];
|
|
5778
|
+
var addOnPostRun = (cb) => onPostRuns.push(cb);
|
|
5779
|
+
var onPreRuns = [];
|
|
5780
|
+
var addOnPreRun = (cb) => onPreRuns.push(cb);
|
|
5781
|
+
function getValue(ptr, type = "i8") {
|
|
5782
|
+
if (type.endsWith("*")) type = "*";
|
|
5783
|
+
switch (type) {
|
|
5784
|
+
case "i1":
|
|
5785
|
+
return HEAP8[ptr];
|
|
5786
|
+
case "i8":
|
|
5787
|
+
return HEAP8[ptr];
|
|
5788
|
+
case "i16":
|
|
5789
|
+
return HEAP16[ptr >> 1];
|
|
5790
|
+
case "i32":
|
|
5791
|
+
return HEAP32[ptr >> 2];
|
|
5792
|
+
case "i64":
|
|
5793
|
+
return HEAP64[ptr >> 3];
|
|
5794
|
+
case "float":
|
|
5795
|
+
return HEAPF32[ptr >> 2];
|
|
5796
|
+
case "double":
|
|
5797
|
+
return HEAPF64[ptr >> 3];
|
|
5798
|
+
case "*":
|
|
5799
|
+
return HEAPU32[ptr >> 2];
|
|
5800
|
+
default:
|
|
5801
|
+
abort(`invalid type for getValue: ${type}`);
|
|
5779
5802
|
}
|
|
5780
5803
|
}
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
};
|
|
5811
|
-
var ComposedDecoder = class {
|
|
5812
|
-
decoders;
|
|
5813
|
-
constructor(decoders) {
|
|
5814
|
-
this.decoders = decoders;
|
|
5815
|
-
}
|
|
5816
|
-
or(decoder) {
|
|
5817
|
-
return or(this, decoder);
|
|
5818
|
-
}
|
|
5819
|
-
decode(input) {
|
|
5820
|
-
const prefix = input[0];
|
|
5821
|
-
const decoder = this.decoders[prefix];
|
|
5822
|
-
if (decoder != null) {
|
|
5823
|
-
return decoder.decode(input);
|
|
5824
|
-
} else {
|
|
5825
|
-
throw RangeError(`Unable to decode multibase string ${JSON.stringify(input)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`);
|
|
5826
|
-
}
|
|
5827
|
-
}
|
|
5828
|
-
};
|
|
5829
|
-
function or(left, right) {
|
|
5830
|
-
return new ComposedDecoder({
|
|
5831
|
-
...left.decoders ?? { [left.prefix]: left },
|
|
5832
|
-
...right.decoders ?? { [right.prefix]: right }
|
|
5833
|
-
});
|
|
5834
|
-
}
|
|
5835
|
-
var Codec = class {
|
|
5836
|
-
name;
|
|
5837
|
-
prefix;
|
|
5838
|
-
baseEncode;
|
|
5839
|
-
baseDecode;
|
|
5840
|
-
encoder;
|
|
5841
|
-
decoder;
|
|
5842
|
-
constructor(name, prefix, baseEncode, baseDecode) {
|
|
5843
|
-
this.name = name;
|
|
5844
|
-
this.prefix = prefix;
|
|
5845
|
-
this.baseEncode = baseEncode;
|
|
5846
|
-
this.baseDecode = baseDecode;
|
|
5847
|
-
this.encoder = new Encoder(name, prefix, baseEncode);
|
|
5848
|
-
this.decoder = new Decoder(name, prefix, baseDecode);
|
|
5849
|
-
}
|
|
5850
|
-
encode(input) {
|
|
5851
|
-
return this.encoder.encode(input);
|
|
5852
|
-
}
|
|
5853
|
-
decode(input) {
|
|
5854
|
-
return this.decoder.decode(input);
|
|
5855
|
-
}
|
|
5856
|
-
};
|
|
5857
|
-
function from({ name, prefix, encode, decode }) {
|
|
5858
|
-
return new Codec(name, prefix, encode, decode);
|
|
5859
|
-
}
|
|
5860
|
-
function baseX({ name, prefix, alphabet }) {
|
|
5861
|
-
const { encode, decode } = base_x_default(alphabet, name);
|
|
5862
|
-
return from({
|
|
5863
|
-
prefix,
|
|
5864
|
-
name,
|
|
5865
|
-
encode,
|
|
5866
|
-
decode: (text) => coerce(decode(text))
|
|
5867
|
-
});
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
|
-
// ../../../../node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bases/base58.js
|
|
5871
|
-
var base58btc = baseX({
|
|
5872
|
-
name: "base58btc",
|
|
5873
|
-
prefix: "z",
|
|
5874
|
-
alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
|
|
5875
|
-
});
|
|
5876
|
-
var base58flickr = baseX({
|
|
5877
|
-
name: "base58flickr",
|
|
5878
|
-
prefix: "Z",
|
|
5879
|
-
alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
|
|
5880
|
-
});
|
|
5881
|
-
|
|
5882
|
-
// ../../crypto/dist/src/utils.js
|
|
5883
|
-
var import_libsodium_wrappers = __toESM(require_libsodium_wrappers(), 1);
|
|
5884
|
-
var fromBase64 = (base64) => {
|
|
5885
|
-
return import_libsodium_wrappers.default.from_base64(base64, import_libsodium_wrappers.default.base64_variants.ORIGINAL);
|
|
5886
|
-
};
|
|
5887
|
-
|
|
5888
|
-
// src/sqlite3-messages.worker.ts
|
|
5889
|
-
var resolveValue = (value) => value.type === "simple" ? value.value : fromBase64(value.base64);
|
|
5890
|
-
|
|
5891
|
-
// ../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build1/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.mjs
|
|
5892
|
-
async function sqlite3InitModule(moduleArg = {}) {
|
|
5893
|
-
var moduleRtn;
|
|
5894
|
-
var Module = moduleArg;
|
|
5895
|
-
var ENVIRONMENT_IS_WEB = typeof window == "object";
|
|
5896
|
-
var ENVIRONMENT_IS_WORKER = typeof WorkerGlobalScope != "undefined";
|
|
5897
|
-
var ENVIRONMENT_IS_NODE = typeof process == "object" && process.versions?.node && process.type != "renderer";
|
|
5898
|
-
var ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
|
|
5899
|
-
(function(Module2) {
|
|
5900
|
-
const sIMS = globalThis.sqlite3InitModuleState || Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
5901
|
-
debugModule: () => {
|
|
5902
|
-
console.warn("globalThis.sqlite3InitModuleState is missing");
|
|
5903
|
-
}
|
|
5904
|
-
});
|
|
5905
|
-
delete globalThis.sqlite3InitModuleState;
|
|
5906
|
-
sIMS.debugModule("pre-js.js sqlite3InitModuleState =", sIMS);
|
|
5907
|
-
Module2["locateFile"] = function(path, prefix) {
|
|
5908
|
-
return new URL(path, import.meta.url).href;
|
|
5909
|
-
}.bind(sIMS);
|
|
5910
|
-
Module2["instantiateWasm"] = function callee3(imports, onSuccess) {
|
|
5911
|
-
const sims = this;
|
|
5912
|
-
const uri = Module2.locateFile(
|
|
5913
|
-
sims.wasmFilename,
|
|
5914
|
-
"undefined" === typeof scriptDirectory ? "" : scriptDirectory
|
|
5915
|
-
);
|
|
5916
|
-
sims.debugModule("instantiateWasm() uri =", uri, "sIMS =", this);
|
|
5917
|
-
const wfetch = () => fetch(uri, { credentials: "same-origin" });
|
|
5918
|
-
const finalThen = (arg) => {
|
|
5919
|
-
arg.imports = imports;
|
|
5920
|
-
sims.instantiateWasm = arg;
|
|
5921
|
-
onSuccess(arg.instance, arg.module);
|
|
5922
|
-
};
|
|
5923
|
-
const loadWasm = WebAssembly.instantiateStreaming ? async () => WebAssembly.instantiateStreaming(wfetch(), imports).then(finalThen) : async () => wfetch().then((response) => response.arrayBuffer()).then((bytes) => WebAssembly.instantiate(bytes, imports)).then(finalThen);
|
|
5924
|
-
return loadWasm();
|
|
5925
|
-
}.bind(sIMS);
|
|
5926
|
-
})(Module);
|
|
5927
|
-
var arguments_ = [];
|
|
5928
|
-
var thisProgram = "./this.program";
|
|
5929
|
-
var quit_ = (status, toThrow) => {
|
|
5930
|
-
throw toThrow;
|
|
5931
|
-
};
|
|
5932
|
-
var _scriptName = import.meta.url;
|
|
5933
|
-
var scriptDirectory = "";
|
|
5934
|
-
function locateFile(path) {
|
|
5935
|
-
if (Module["locateFile"]) {
|
|
5936
|
-
return Module["locateFile"](path, scriptDirectory);
|
|
5937
|
-
}
|
|
5938
|
-
return scriptDirectory + path;
|
|
5939
|
-
}
|
|
5940
|
-
var readAsync, readBinary;
|
|
5941
|
-
if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
|
|
5942
|
-
try {
|
|
5943
|
-
scriptDirectory = new URL(".", _scriptName).href;
|
|
5944
|
-
} catch {
|
|
5945
|
-
}
|
|
5946
|
-
{
|
|
5947
|
-
if (ENVIRONMENT_IS_WORKER) {
|
|
5948
|
-
readBinary = (url) => {
|
|
5949
|
-
var xhr = new XMLHttpRequest();
|
|
5950
|
-
xhr.open("GET", url, false);
|
|
5951
|
-
xhr.responseType = "arraybuffer";
|
|
5952
|
-
xhr.send(null);
|
|
5953
|
-
return new Uint8Array(xhr.response);
|
|
5954
|
-
};
|
|
5955
|
-
}
|
|
5956
|
-
readAsync = async (url) => {
|
|
5957
|
-
var response = await fetch(url, { credentials: "same-origin" });
|
|
5958
|
-
if (response.ok) {
|
|
5959
|
-
return response.arrayBuffer();
|
|
5960
|
-
}
|
|
5961
|
-
throw new Error(response.status + " : " + response.url);
|
|
5962
|
-
};
|
|
5963
|
-
}
|
|
5964
|
-
} else {
|
|
5965
|
-
}
|
|
5966
|
-
var out = console.log.bind(console);
|
|
5967
|
-
var err = console.error.bind(console);
|
|
5968
|
-
var wasmBinary;
|
|
5969
|
-
var ABORT = false;
|
|
5970
|
-
var EXITSTATUS;
|
|
5971
|
-
function assert(condition, text) {
|
|
5972
|
-
if (!condition) {
|
|
5973
|
-
abort(text);
|
|
5974
|
-
}
|
|
5975
|
-
}
|
|
5976
|
-
var isFileURI = (filename) => filename.startsWith("file://");
|
|
5977
|
-
var readyPromiseResolve, readyPromiseReject;
|
|
5978
|
-
var wasmMemory;
|
|
5979
|
-
var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
|
|
5980
|
-
var HEAP64, HEAPU64;
|
|
5981
|
-
var runtimeInitialized = false;
|
|
5982
|
-
function updateMemoryViews() {
|
|
5983
|
-
var b = wasmMemory.buffer;
|
|
5984
|
-
HEAP8 = new Int8Array(b);
|
|
5985
|
-
HEAP16 = new Int16Array(b);
|
|
5986
|
-
HEAPU8 = new Uint8Array(b);
|
|
5987
|
-
HEAPU16 = new Uint16Array(b);
|
|
5988
|
-
HEAP32 = new Int32Array(b);
|
|
5989
|
-
HEAPU32 = new Uint32Array(b);
|
|
5990
|
-
HEAPF32 = new Float32Array(b);
|
|
5991
|
-
HEAPF64 = new Float64Array(b);
|
|
5992
|
-
HEAP64 = new BigInt64Array(b);
|
|
5993
|
-
HEAPU64 = new BigUint64Array(b);
|
|
5994
|
-
}
|
|
5995
|
-
function initMemory() {
|
|
5996
|
-
if (Module["wasmMemory"]) {
|
|
5997
|
-
wasmMemory = Module["wasmMemory"];
|
|
5998
|
-
} else {
|
|
5999
|
-
var INITIAL_MEMORY = Module["INITIAL_MEMORY"] || 8388608;
|
|
6000
|
-
wasmMemory = new WebAssembly.Memory({
|
|
6001
|
-
initial: INITIAL_MEMORY / 65536,
|
|
6002
|
-
maximum: 32768
|
|
6003
|
-
});
|
|
6004
|
-
}
|
|
6005
|
-
updateMemoryViews();
|
|
6006
|
-
}
|
|
6007
|
-
function preRun() {
|
|
6008
|
-
if (Module["preRun"]) {
|
|
6009
|
-
if (typeof Module["preRun"] == "function")
|
|
6010
|
-
Module["preRun"] = [Module["preRun"]];
|
|
6011
|
-
while (Module["preRun"].length) {
|
|
6012
|
-
addOnPreRun(Module["preRun"].shift());
|
|
6013
|
-
}
|
|
6014
|
-
}
|
|
6015
|
-
callRuntimeCallbacks(onPreRuns);
|
|
6016
|
-
}
|
|
6017
|
-
function initRuntime() {
|
|
6018
|
-
runtimeInitialized = true;
|
|
6019
|
-
if (!Module["noFSInit"] && !FS.initialized) FS.init();
|
|
6020
|
-
TTY.init();
|
|
6021
|
-
wasmExports["__wasm_call_ctors"]();
|
|
6022
|
-
FS.ignorePermissions = false;
|
|
6023
|
-
}
|
|
6024
|
-
function postRun() {
|
|
6025
|
-
if (Module["postRun"]) {
|
|
6026
|
-
if (typeof Module["postRun"] == "function")
|
|
6027
|
-
Module["postRun"] = [Module["postRun"]];
|
|
6028
|
-
while (Module["postRun"].length) {
|
|
6029
|
-
addOnPostRun(Module["postRun"].shift());
|
|
6030
|
-
}
|
|
6031
|
-
}
|
|
6032
|
-
callRuntimeCallbacks(onPostRuns);
|
|
6033
|
-
}
|
|
6034
|
-
var runDependencies = 0;
|
|
6035
|
-
var dependenciesFulfilled = null;
|
|
6036
|
-
function addRunDependency(id) {
|
|
6037
|
-
runDependencies++;
|
|
6038
|
-
Module["monitorRunDependencies"]?.(runDependencies);
|
|
6039
|
-
}
|
|
6040
|
-
function removeRunDependency(id) {
|
|
6041
|
-
runDependencies--;
|
|
6042
|
-
Module["monitorRunDependencies"]?.(runDependencies);
|
|
6043
|
-
if (runDependencies == 0) {
|
|
6044
|
-
if (dependenciesFulfilled) {
|
|
6045
|
-
var callback = dependenciesFulfilled;
|
|
6046
|
-
dependenciesFulfilled = null;
|
|
6047
|
-
callback();
|
|
6048
|
-
}
|
|
6049
|
-
}
|
|
6050
|
-
}
|
|
6051
|
-
function abort(what) {
|
|
6052
|
-
Module["onAbort"]?.(what);
|
|
6053
|
-
what = "Aborted(" + what + ")";
|
|
6054
|
-
err(what);
|
|
6055
|
-
ABORT = true;
|
|
6056
|
-
what += ". Build with -sASSERTIONS for more info.";
|
|
6057
|
-
var e = new WebAssembly.RuntimeError(what);
|
|
6058
|
-
readyPromiseReject?.(e);
|
|
6059
|
-
throw e;
|
|
6060
|
-
}
|
|
6061
|
-
var wasmBinaryFile;
|
|
6062
|
-
function findWasmBinary() {
|
|
6063
|
-
if (Module["locateFile"]) {
|
|
6064
|
-
return locateFile("sqlite3.wasm");
|
|
6065
|
-
}
|
|
6066
|
-
return new URL("sqlite3.wasm", import.meta.url).href;
|
|
6067
|
-
}
|
|
6068
|
-
function getBinarySync(file) {
|
|
6069
|
-
if (file == wasmBinaryFile && wasmBinary) {
|
|
6070
|
-
return new Uint8Array(wasmBinary);
|
|
6071
|
-
}
|
|
6072
|
-
if (readBinary) {
|
|
6073
|
-
return readBinary(file);
|
|
6074
|
-
}
|
|
6075
|
-
throw "both async and sync fetching of the wasm failed";
|
|
6076
|
-
}
|
|
6077
|
-
async function getWasmBinary(binaryFile) {
|
|
6078
|
-
if (!wasmBinary) {
|
|
6079
|
-
try {
|
|
6080
|
-
var response = await readAsync(binaryFile);
|
|
6081
|
-
return new Uint8Array(response);
|
|
6082
|
-
} catch {
|
|
6083
|
-
}
|
|
6084
|
-
}
|
|
6085
|
-
return getBinarySync(binaryFile);
|
|
6086
|
-
}
|
|
6087
|
-
async function instantiateArrayBuffer(binaryFile, imports) {
|
|
6088
|
-
try {
|
|
6089
|
-
var binary = await getWasmBinary(binaryFile);
|
|
6090
|
-
var instance = await WebAssembly.instantiate(binary, imports);
|
|
6091
|
-
return instance;
|
|
6092
|
-
} catch (reason) {
|
|
6093
|
-
err(`failed to asynchronously prepare wasm: ${reason}`);
|
|
6094
|
-
abort(reason);
|
|
6095
|
-
}
|
|
6096
|
-
}
|
|
6097
|
-
async function instantiateAsync(binary, binaryFile, imports) {
|
|
6098
|
-
if (!binary) {
|
|
6099
|
-
try {
|
|
6100
|
-
var response = fetch(binaryFile, { credentials: "same-origin" });
|
|
6101
|
-
var instantiationResult = await WebAssembly.instantiateStreaming(
|
|
6102
|
-
response,
|
|
6103
|
-
imports
|
|
6104
|
-
);
|
|
6105
|
-
return instantiationResult;
|
|
6106
|
-
} catch (reason) {
|
|
6107
|
-
err(`wasm streaming compile failed: ${reason}`);
|
|
6108
|
-
err("falling back to ArrayBuffer instantiation");
|
|
6109
|
-
}
|
|
6110
|
-
}
|
|
6111
|
-
return instantiateArrayBuffer(binaryFile, imports);
|
|
6112
|
-
}
|
|
6113
|
-
function getWasmImports() {
|
|
6114
|
-
return {
|
|
6115
|
-
env: wasmImports,
|
|
6116
|
-
wasi_snapshot_preview1: wasmImports
|
|
6117
|
-
};
|
|
6118
|
-
}
|
|
6119
|
-
async function createWasm() {
|
|
6120
|
-
function receiveInstance(instance, module) {
|
|
6121
|
-
wasmExports = instance.exports;
|
|
6122
|
-
assignWasmExports(wasmExports);
|
|
6123
|
-
removeRunDependency("wasm-instantiate");
|
|
6124
|
-
return wasmExports;
|
|
6125
|
-
}
|
|
6126
|
-
addRunDependency("wasm-instantiate");
|
|
6127
|
-
function receiveInstantiationResult(result2) {
|
|
6128
|
-
return receiveInstance(result2["instance"]);
|
|
6129
|
-
}
|
|
6130
|
-
var info = getWasmImports();
|
|
6131
|
-
if (Module["instantiateWasm"]) {
|
|
6132
|
-
return new Promise((resolve, reject) => {
|
|
6133
|
-
Module["instantiateWasm"](info, (mod, inst) => {
|
|
6134
|
-
resolve(receiveInstance(mod, inst));
|
|
6135
|
-
});
|
|
6136
|
-
});
|
|
6137
|
-
}
|
|
6138
|
-
wasmBinaryFile ??= findWasmBinary();
|
|
6139
|
-
var result = await instantiateAsync(wasmBinary, wasmBinaryFile, info);
|
|
6140
|
-
var exports = receiveInstantiationResult(result);
|
|
6141
|
-
return exports;
|
|
6142
|
-
}
|
|
6143
|
-
class ExitStatus {
|
|
6144
|
-
name = "ExitStatus";
|
|
6145
|
-
constructor(status) {
|
|
6146
|
-
this.message = `Program terminated with exit(${status})`;
|
|
6147
|
-
this.status = status;
|
|
6148
|
-
}
|
|
6149
|
-
}
|
|
6150
|
-
var callRuntimeCallbacks = (callbacks) => {
|
|
6151
|
-
while (callbacks.length > 0) {
|
|
6152
|
-
callbacks.shift()(Module);
|
|
6153
|
-
}
|
|
6154
|
-
};
|
|
6155
|
-
var onPostRuns = [];
|
|
6156
|
-
var addOnPostRun = (cb) => onPostRuns.push(cb);
|
|
6157
|
-
var onPreRuns = [];
|
|
6158
|
-
var addOnPreRun = (cb) => onPreRuns.push(cb);
|
|
6159
|
-
function getValue(ptr, type = "i8") {
|
|
6160
|
-
if (type.endsWith("*")) type = "*";
|
|
6161
|
-
switch (type) {
|
|
6162
|
-
case "i1":
|
|
6163
|
-
return HEAP8[ptr];
|
|
6164
|
-
case "i8":
|
|
6165
|
-
return HEAP8[ptr];
|
|
6166
|
-
case "i16":
|
|
6167
|
-
return HEAP16[ptr >> 1];
|
|
6168
|
-
case "i32":
|
|
6169
|
-
return HEAP32[ptr >> 2];
|
|
6170
|
-
case "i64":
|
|
6171
|
-
return HEAP64[ptr >> 3];
|
|
6172
|
-
case "float":
|
|
6173
|
-
return HEAPF32[ptr >> 2];
|
|
6174
|
-
case "double":
|
|
6175
|
-
return HEAPF64[ptr >> 3];
|
|
6176
|
-
case "*":
|
|
6177
|
-
return HEAPU32[ptr >> 2];
|
|
6178
|
-
default:
|
|
6179
|
-
abort(`invalid type for getValue: ${type}`);
|
|
6180
|
-
}
|
|
6181
|
-
}
|
|
6182
|
-
var noExitRuntime = true;
|
|
6183
|
-
function setValue(ptr, value, type = "i8") {
|
|
6184
|
-
if (type.endsWith("*")) type = "*";
|
|
6185
|
-
switch (type) {
|
|
6186
|
-
case "i1":
|
|
6187
|
-
HEAP8[ptr] = value;
|
|
6188
|
-
break;
|
|
6189
|
-
case "i8":
|
|
6190
|
-
HEAP8[ptr] = value;
|
|
6191
|
-
break;
|
|
6192
|
-
case "i16":
|
|
6193
|
-
HEAP16[ptr >> 1] = value;
|
|
6194
|
-
break;
|
|
6195
|
-
case "i32":
|
|
6196
|
-
HEAP32[ptr >> 2] = value;
|
|
6197
|
-
break;
|
|
6198
|
-
case "i64":
|
|
6199
|
-
HEAP64[ptr >> 3] = BigInt(value);
|
|
6200
|
-
break;
|
|
6201
|
-
case "float":
|
|
6202
|
-
HEAPF32[ptr >> 2] = value;
|
|
6203
|
-
break;
|
|
6204
|
-
case "double":
|
|
6205
|
-
HEAPF64[ptr >> 3] = value;
|
|
6206
|
-
break;
|
|
6207
|
-
case "*":
|
|
6208
|
-
HEAPU32[ptr >> 2] = value;
|
|
6209
|
-
break;
|
|
6210
|
-
default:
|
|
6211
|
-
abort(`invalid type for setValue: ${type}`);
|
|
5804
|
+
var noExitRuntime = true;
|
|
5805
|
+
function setValue(ptr, value, type = "i8") {
|
|
5806
|
+
if (type.endsWith("*")) type = "*";
|
|
5807
|
+
switch (type) {
|
|
5808
|
+
case "i1":
|
|
5809
|
+
HEAP8[ptr] = value;
|
|
5810
|
+
break;
|
|
5811
|
+
case "i8":
|
|
5812
|
+
HEAP8[ptr] = value;
|
|
5813
|
+
break;
|
|
5814
|
+
case "i16":
|
|
5815
|
+
HEAP16[ptr >> 1] = value;
|
|
5816
|
+
break;
|
|
5817
|
+
case "i32":
|
|
5818
|
+
HEAP32[ptr >> 2] = value;
|
|
5819
|
+
break;
|
|
5820
|
+
case "i64":
|
|
5821
|
+
HEAP64[ptr >> 3] = BigInt(value);
|
|
5822
|
+
break;
|
|
5823
|
+
case "float":
|
|
5824
|
+
HEAPF32[ptr >> 2] = value;
|
|
5825
|
+
break;
|
|
5826
|
+
case "double":
|
|
5827
|
+
HEAPF64[ptr >> 3] = value;
|
|
5828
|
+
break;
|
|
5829
|
+
case "*":
|
|
5830
|
+
HEAPU32[ptr >> 2] = value;
|
|
5831
|
+
break;
|
|
5832
|
+
default:
|
|
5833
|
+
abort(`invalid type for setValue: ${type}`);
|
|
6212
5834
|
}
|
|
6213
5835
|
}
|
|
6214
5836
|
var stackRestore = (val) => __emscripten_stack_restore(val);
|
|
6215
5837
|
var stackSave = () => _emscripten_stack_get_current();
|
|
5838
|
+
var wasmMemory;
|
|
6216
5839
|
var PATH = {
|
|
6217
5840
|
isAbs: (path) => path.charAt(0) === "/",
|
|
6218
5841
|
splitPath: (filename) => {
|
|
@@ -6402,7 +6025,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
6402
6025
|
var FS_stdin_getChar = () => {
|
|
6403
6026
|
if (!FS_stdin_getChar_buffer.length) {
|
|
6404
6027
|
var result = null;
|
|
6405
|
-
if (
|
|
6028
|
+
if (globalThis.window?.prompt) {
|
|
6406
6029
|
result = window.prompt("Input: ");
|
|
6407
6030
|
if (result !== null) {
|
|
6408
6031
|
result += "\n";
|
|
@@ -6884,54 +6507,6 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
6884
6507
|
}
|
|
6885
6508
|
}
|
|
6886
6509
|
};
|
|
6887
|
-
var asyncLoad = async (url) => {
|
|
6888
|
-
var arrayBuffer = await readAsync(url);
|
|
6889
|
-
return new Uint8Array(arrayBuffer);
|
|
6890
|
-
};
|
|
6891
|
-
var FS_createDataFile = (...args) => FS.createDataFile(...args);
|
|
6892
|
-
var getUniqueRunDependency = (id) => {
|
|
6893
|
-
return id;
|
|
6894
|
-
};
|
|
6895
|
-
var preloadPlugins = [];
|
|
6896
|
-
var FS_handledByPreloadPlugin = (byteArray, fullname, finish, onerror) => {
|
|
6897
|
-
if (typeof Browser != "undefined") Browser.init();
|
|
6898
|
-
var handled = false;
|
|
6899
|
-
preloadPlugins.forEach((plugin) => {
|
|
6900
|
-
if (handled) return;
|
|
6901
|
-
if (plugin["canHandle"](fullname)) {
|
|
6902
|
-
plugin["handle"](byteArray, fullname, finish, onerror);
|
|
6903
|
-
handled = true;
|
|
6904
|
-
}
|
|
6905
|
-
});
|
|
6906
|
-
return handled;
|
|
6907
|
-
};
|
|
6908
|
-
var FS_createPreloadedFile = (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) => {
|
|
6909
|
-
var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent;
|
|
6910
|
-
var dep = getUniqueRunDependency(`cp ${fullname}`);
|
|
6911
|
-
function processData(byteArray) {
|
|
6912
|
-
function finish(byteArray2) {
|
|
6913
|
-
preFinish?.();
|
|
6914
|
-
if (!dontCreateFile) {
|
|
6915
|
-
FS_createDataFile(parent, name, byteArray2, canRead, canWrite, canOwn);
|
|
6916
|
-
}
|
|
6917
|
-
onload?.();
|
|
6918
|
-
removeRunDependency(dep);
|
|
6919
|
-
}
|
|
6920
|
-
if (FS_handledByPreloadPlugin(byteArray, fullname, finish, () => {
|
|
6921
|
-
onerror?.();
|
|
6922
|
-
removeRunDependency(dep);
|
|
6923
|
-
})) {
|
|
6924
|
-
return;
|
|
6925
|
-
}
|
|
6926
|
-
finish(byteArray);
|
|
6927
|
-
}
|
|
6928
|
-
addRunDependency(dep);
|
|
6929
|
-
if (typeof url == "string") {
|
|
6930
|
-
asyncLoad(url).then(processData, onerror);
|
|
6931
|
-
} else {
|
|
6932
|
-
processData(url);
|
|
6933
|
-
}
|
|
6934
|
-
};
|
|
6935
6510
|
var FS_modeStringToFlags = (str) => {
|
|
6936
6511
|
var flagModes = {
|
|
6937
6512
|
r: 0,
|
|
@@ -6953,6 +6528,71 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
6953
6528
|
if (canWrite) mode |= 146;
|
|
6954
6529
|
return mode;
|
|
6955
6530
|
};
|
|
6531
|
+
var asyncLoad = async (url) => {
|
|
6532
|
+
var arrayBuffer = await readAsync(url);
|
|
6533
|
+
return new Uint8Array(arrayBuffer);
|
|
6534
|
+
};
|
|
6535
|
+
var FS_createDataFile = (...args) => FS.createDataFile(...args);
|
|
6536
|
+
var getUniqueRunDependency = (id) => {
|
|
6537
|
+
return id;
|
|
6538
|
+
};
|
|
6539
|
+
var runDependencies = 0;
|
|
6540
|
+
var dependenciesFulfilled = null;
|
|
6541
|
+
var removeRunDependency = (id) => {
|
|
6542
|
+
runDependencies--;
|
|
6543
|
+
Module["monitorRunDependencies"]?.(runDependencies);
|
|
6544
|
+
if (runDependencies == 0) {
|
|
6545
|
+
if (dependenciesFulfilled) {
|
|
6546
|
+
var callback = dependenciesFulfilled;
|
|
6547
|
+
dependenciesFulfilled = null;
|
|
6548
|
+
callback();
|
|
6549
|
+
}
|
|
6550
|
+
}
|
|
6551
|
+
};
|
|
6552
|
+
var addRunDependency = (id) => {
|
|
6553
|
+
runDependencies++;
|
|
6554
|
+
Module["monitorRunDependencies"]?.(runDependencies);
|
|
6555
|
+
};
|
|
6556
|
+
var preloadPlugins = [];
|
|
6557
|
+
var FS_handledByPreloadPlugin = async (byteArray, fullname) => {
|
|
6558
|
+
if (typeof Browser != "undefined") Browser.init();
|
|
6559
|
+
for (var plugin of preloadPlugins) {
|
|
6560
|
+
if (plugin["canHandle"](fullname)) {
|
|
6561
|
+
return plugin["handle"](byteArray, fullname);
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
return byteArray;
|
|
6565
|
+
};
|
|
6566
|
+
var FS_preloadFile = async (parent, name, url, canRead, canWrite, dontCreateFile, canOwn, preFinish) => {
|
|
6567
|
+
var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent;
|
|
6568
|
+
var dep = getUniqueRunDependency(`cp ${fullname}`);
|
|
6569
|
+
addRunDependency(dep);
|
|
6570
|
+
try {
|
|
6571
|
+
var byteArray = url;
|
|
6572
|
+
if (typeof url == "string") {
|
|
6573
|
+
byteArray = await asyncLoad(url);
|
|
6574
|
+
}
|
|
6575
|
+
byteArray = await FS_handledByPreloadPlugin(byteArray, fullname);
|
|
6576
|
+
preFinish?.();
|
|
6577
|
+
if (!dontCreateFile) {
|
|
6578
|
+
FS_createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
|
|
6579
|
+
}
|
|
6580
|
+
} finally {
|
|
6581
|
+
removeRunDependency(dep);
|
|
6582
|
+
}
|
|
6583
|
+
};
|
|
6584
|
+
var FS_createPreloadedFile = (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) => {
|
|
6585
|
+
FS_preloadFile(
|
|
6586
|
+
parent,
|
|
6587
|
+
name,
|
|
6588
|
+
url,
|
|
6589
|
+
canRead,
|
|
6590
|
+
canWrite,
|
|
6591
|
+
dontCreateFile,
|
|
6592
|
+
canOwn,
|
|
6593
|
+
preFinish
|
|
6594
|
+
).then(onload).catch(onerror);
|
|
6595
|
+
};
|
|
6956
6596
|
var FS = {
|
|
6957
6597
|
root: null,
|
|
6958
6598
|
mounts: [],
|
|
@@ -7365,12 +7005,13 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
7365
7005
|
doCallback(null);
|
|
7366
7006
|
}
|
|
7367
7007
|
}
|
|
7368
|
-
|
|
7369
|
-
if (
|
|
7370
|
-
|
|
7008
|
+
for (var mount of mounts) {
|
|
7009
|
+
if (mount.type.syncfs) {
|
|
7010
|
+
mount.type.syncfs(mount, populate, done);
|
|
7011
|
+
} else {
|
|
7012
|
+
done(null);
|
|
7371
7013
|
}
|
|
7372
|
-
|
|
7373
|
-
});
|
|
7014
|
+
}
|
|
7374
7015
|
},
|
|
7375
7016
|
mount(type, opts, mountpoint) {
|
|
7376
7017
|
var root = mountpoint === "/";
|
|
@@ -7416,8 +7057,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
7416
7057
|
var node = lookup.node;
|
|
7417
7058
|
var mount = node.mounted;
|
|
7418
7059
|
var mounts = FS.getMounts(mount);
|
|
7419
|
-
Object.
|
|
7420
|
-
var current = FS.nameTable[hash];
|
|
7060
|
+
for (var [hash, current] of Object.entries(FS.nameTable)) {
|
|
7421
7061
|
while (current) {
|
|
7422
7062
|
var next = current.name_next;
|
|
7423
7063
|
if (mounts.includes(current.mount)) {
|
|
@@ -7425,7 +7065,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
7425
7065
|
}
|
|
7426
7066
|
current = next;
|
|
7427
7067
|
}
|
|
7428
|
-
}
|
|
7068
|
+
}
|
|
7429
7069
|
node.mounted = null;
|
|
7430
7070
|
var idx = node.mount.mounts.indexOf(mount);
|
|
7431
7071
|
node.mount.mounts.splice(idx, 1);
|
|
@@ -7965,7 +7605,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
7965
7605
|
opts.flags = opts.flags || 0;
|
|
7966
7606
|
opts.encoding = opts.encoding || "binary";
|
|
7967
7607
|
if (opts.encoding !== "utf8" && opts.encoding !== "binary") {
|
|
7968
|
-
|
|
7608
|
+
abort(`Invalid encoding type "${opts.encoding}"`);
|
|
7969
7609
|
}
|
|
7970
7610
|
var stream = FS.open(path, opts.flags);
|
|
7971
7611
|
var stat = FS.stat(path);
|
|
@@ -7987,7 +7627,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
7987
7627
|
if (ArrayBuffer.isView(data)) {
|
|
7988
7628
|
FS.write(stream, data, 0, data.byteLength, void 0, opts.canOwn);
|
|
7989
7629
|
} else {
|
|
7990
|
-
|
|
7630
|
+
abort("Unsupported data type");
|
|
7991
7631
|
}
|
|
7992
7632
|
FS.close(stream);
|
|
7993
7633
|
},
|
|
@@ -8259,14 +7899,13 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8259
7899
|
},
|
|
8260
7900
|
forceLoadFile(obj) {
|
|
8261
7901
|
if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
|
|
8262
|
-
if (
|
|
8263
|
-
|
|
7902
|
+
if (globalThis.XMLHttpRequest) {
|
|
7903
|
+
abort(
|
|
8264
7904
|
"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread."
|
|
8265
7905
|
);
|
|
8266
7906
|
} else {
|
|
8267
7907
|
try {
|
|
8268
7908
|
obj.contents = readBinary(obj.url);
|
|
8269
|
-
obj.usedBytes = obj.contents.length;
|
|
8270
7909
|
} catch (e) {
|
|
8271
7910
|
throw new FS.ErrnoError(29);
|
|
8272
7911
|
}
|
|
@@ -8292,7 +7931,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8292
7931
|
xhr.open("HEAD", url, false);
|
|
8293
7932
|
xhr.send(null);
|
|
8294
7933
|
if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304))
|
|
8295
|
-
|
|
7934
|
+
abort("Couldn't load " + url + ". Status: " + xhr.status);
|
|
8296
7935
|
var datalength = Number(xhr.getResponseHeader("Content-length"));
|
|
8297
7936
|
var header;
|
|
8298
7937
|
var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
|
|
@@ -8301,11 +7940,11 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8301
7940
|
if (!hasByteServing) chunkSize = datalength;
|
|
8302
7941
|
var doXHR = (from2, to) => {
|
|
8303
7942
|
if (from2 > to)
|
|
8304
|
-
|
|
7943
|
+
abort(
|
|
8305
7944
|
"invalid range (" + from2 + ", " + to + ") or no bytes requested!"
|
|
8306
7945
|
);
|
|
8307
7946
|
if (to > datalength - 1)
|
|
8308
|
-
|
|
7947
|
+
abort(
|
|
8309
7948
|
"only " + datalength + " bytes available! programmer error!"
|
|
8310
7949
|
);
|
|
8311
7950
|
var xhr2 = new XMLHttpRequest();
|
|
@@ -8318,9 +7957,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8318
7957
|
}
|
|
8319
7958
|
xhr2.send(null);
|
|
8320
7959
|
if (!(xhr2.status >= 200 && xhr2.status < 300 || xhr2.status === 304))
|
|
8321
|
-
|
|
8322
|
-
"Couldn't load " + url + ". Status: " + xhr2.status
|
|
8323
|
-
);
|
|
7960
|
+
abort("Couldn't load " + url + ". Status: " + xhr2.status);
|
|
8324
7961
|
if (xhr2.response !== void 0) {
|
|
8325
7962
|
return new Uint8Array(xhr2.response || []);
|
|
8326
7963
|
}
|
|
@@ -8335,7 +7972,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8335
7972
|
lazyArray2.chunks[chunkNum] = doXHR(start, end);
|
|
8336
7973
|
}
|
|
8337
7974
|
if (typeof lazyArray2.chunks[chunkNum] == "undefined")
|
|
8338
|
-
|
|
7975
|
+
abort("doXHR failed!");
|
|
8339
7976
|
return lazyArray2.chunks[chunkNum];
|
|
8340
7977
|
});
|
|
8341
7978
|
if (usesGzip || !datalength) {
|
|
@@ -8363,9 +8000,11 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8363
8000
|
return this._chunkSize;
|
|
8364
8001
|
}
|
|
8365
8002
|
}
|
|
8366
|
-
if (
|
|
8003
|
+
if (globalThis.XMLHttpRequest) {
|
|
8367
8004
|
if (!ENVIRONMENT_IS_WORKER)
|
|
8368
|
-
|
|
8005
|
+
abort(
|
|
8006
|
+
"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc"
|
|
8007
|
+
);
|
|
8369
8008
|
var lazyArray = new LazyUint8Array();
|
|
8370
8009
|
var properties = { isDevice: false, contents: lazyArray };
|
|
8371
8010
|
} else {
|
|
@@ -8386,14 +8025,12 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8386
8025
|
}
|
|
8387
8026
|
});
|
|
8388
8027
|
var stream_ops = {};
|
|
8389
|
-
|
|
8390
|
-
keys.forEach((key) => {
|
|
8391
|
-
var fn = node.stream_ops[key];
|
|
8028
|
+
for (const [key, fn] of Object.entries(node.stream_ops)) {
|
|
8392
8029
|
stream_ops[key] = (...args) => {
|
|
8393
8030
|
FS.forceLoadFile(node);
|
|
8394
8031
|
return fn(...args);
|
|
8395
8032
|
};
|
|
8396
|
-
}
|
|
8033
|
+
}
|
|
8397
8034
|
function writeChunks(stream, buffer, offset, length, position) {
|
|
8398
8035
|
var contents = stream.node.contents;
|
|
8399
8036
|
if (position >= contents.length) return 0;
|
|
@@ -8453,12 +8090,12 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8453
8090
|
return dir + "/" + path;
|
|
8454
8091
|
},
|
|
8455
8092
|
writeStat(buf, stat) {
|
|
8456
|
-
|
|
8457
|
-
|
|
8093
|
+
HEAPU32[buf >> 2] = stat.dev;
|
|
8094
|
+
HEAPU32[buf + 4 >> 2] = stat.mode;
|
|
8458
8095
|
HEAPU32[buf + 8 >> 2] = stat.nlink;
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8096
|
+
HEAPU32[buf + 12 >> 2] = stat.uid;
|
|
8097
|
+
HEAPU32[buf + 16 >> 2] = stat.gid;
|
|
8098
|
+
HEAPU32[buf + 20 >> 2] = stat.rdev;
|
|
8462
8099
|
HEAP64[buf + 24 >> 3] = BigInt(stat.size);
|
|
8463
8100
|
HEAP32[buf + 32 >> 2] = 4096;
|
|
8464
8101
|
HEAP32[buf + 36 >> 2] = stat.blocks;
|
|
@@ -8475,16 +8112,16 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
8475
8112
|
return 0;
|
|
8476
8113
|
},
|
|
8477
8114
|
writeStatFs(buf, stats) {
|
|
8478
|
-
|
|
8479
|
-
|
|
8115
|
+
HEAPU32[buf + 4 >> 2] = stats.bsize;
|
|
8116
|
+
HEAPU32[buf + 60 >> 2] = stats.bsize;
|
|
8480
8117
|
HEAP64[buf + 8 >> 3] = BigInt(stats.blocks);
|
|
8481
8118
|
HEAP64[buf + 16 >> 3] = BigInt(stats.bfree);
|
|
8482
8119
|
HEAP64[buf + 24 >> 3] = BigInt(stats.bavail);
|
|
8483
8120
|
HEAP64[buf + 32 >> 3] = BigInt(stats.files);
|
|
8484
8121
|
HEAP64[buf + 40 >> 3] = BigInt(stats.ffree);
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8122
|
+
HEAPU32[buf + 48 >> 2] = stats.fsid;
|
|
8123
|
+
HEAPU32[buf + 64 >> 2] = stats.flags;
|
|
8124
|
+
HEAPU32[buf + 56 >> 2] = stats.namelen;
|
|
8488
8125
|
},
|
|
8489
8126
|
doMsync(addr, stream, len, flags, offset) {
|
|
8490
8127
|
if (!FS.isFile(stream.node.mode)) {
|
|
@@ -9206,6 +8843,7 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
9206
8843
|
}
|
|
9207
8844
|
}
|
|
9208
8845
|
FS.createPreloadedFile = FS_createPreloadedFile;
|
|
8846
|
+
FS.preloadFile = FS_preloadFile;
|
|
9209
8847
|
FS.staticInit();
|
|
9210
8848
|
{
|
|
9211
8849
|
initMemory();
|
|
@@ -9216,266 +8854,274 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
9216
8854
|
if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
|
|
9217
8855
|
if (Module["arguments"]) arguments_ = Module["arguments"];
|
|
9218
8856
|
if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
|
|
8857
|
+
if (Module["preInit"]) {
|
|
8858
|
+
if (typeof Module["preInit"] == "function")
|
|
8859
|
+
Module["preInit"] = [Module["preInit"]];
|
|
8860
|
+
while (Module["preInit"].length > 0) {
|
|
8861
|
+
Module["preInit"].shift()();
|
|
8862
|
+
}
|
|
8863
|
+
}
|
|
9219
8864
|
}
|
|
9220
8865
|
Module["wasmMemory"] = wasmMemory;
|
|
9221
|
-
var _sqlite3_status64, _sqlite3_status, _sqlite3_db_status64, _sqlite3_msize, _sqlite3_db_status, _sqlite3_vfs_find, _sqlite3_initialize, _sqlite3_malloc, _sqlite3_free, _sqlite3_vfs_register, _sqlite3_vfs_unregister, _sqlite3_malloc64, _sqlite3_realloc, _sqlite3_realloc64, _sqlite3_value_text, _sqlite3_randomness, _sqlite3_stricmp, _sqlite3_strnicmp, _sqlite3_uri_parameter, _sqlite3_uri_boolean, _sqlite3_serialize, _sqlite3_prepare_v2, _sqlite3_step, _sqlite3_column_int64, _sqlite3_reset, _sqlite3_exec, _sqlite3_column_int, _sqlite3_finalize, _sqlite3_file_control, _sqlite3_column_name, _sqlite3_column_text, _sqlite3_column_type, _sqlite3_errmsg, _sqlite3_deserialize, _sqlite3_clear_bindings, _sqlite3_value_blob, _sqlite3_value_bytes, _sqlite3_value_double, _sqlite3_value_int, _sqlite3_value_int64, _sqlite3_value_subtype, _sqlite3_value_pointer, _sqlite3_value_type, _sqlite3_value_nochange, _sqlite3_value_frombind, _sqlite3_value_dup, _sqlite3_value_free, _sqlite3_result_blob, _sqlite3_result_error_toobig, _sqlite3_result_error_nomem, _sqlite3_result_double, _sqlite3_result_error, _sqlite3_result_int, _sqlite3_result_int64, _sqlite3_result_null, _sqlite3_result_pointer, _sqlite3_result_subtype, _sqlite3_result_text, _sqlite3_result_zeroblob, _sqlite3_result_zeroblob64, _sqlite3_result_error_code, _sqlite3_user_data, _sqlite3_context_db_handle, _sqlite3_vtab_nochange, _sqlite3_vtab_in_first, _sqlite3_vtab_in_next, _sqlite3_aggregate_context, _sqlite3_get_auxdata, _sqlite3_set_auxdata, _sqlite3_column_count, _sqlite3_data_count, _sqlite3_column_blob, _sqlite3_column_bytes, _sqlite3_column_double, _sqlite3_column_value, _sqlite3_column_decltype, _sqlite3_column_database_name, _sqlite3_column_table_name, _sqlite3_column_origin_name, _sqlite3_bind_blob, _sqlite3_bind_double, _sqlite3_bind_int, _sqlite3_bind_int64, _sqlite3_bind_null, _sqlite3_bind_pointer, _sqlite3_bind_text, _sqlite3_bind_parameter_count, _sqlite3_bind_parameter_name, _sqlite3_bind_parameter_index, _sqlite3_db_handle, _sqlite3_stmt_readonly, _sqlite3_stmt_isexplain, _sqlite3_stmt_explain, _sqlite3_stmt_busy, _sqlite3_stmt_status, _sqlite3_sql, _sqlite3_expanded_sql, _sqlite3_preupdate_old, _sqlite3_preupdate_count, _sqlite3_preupdate_depth, _sqlite3_preupdate_blobwrite, _sqlite3_preupdate_new, _sqlite3_value_numeric_type, _sqlite3_set_authorizer, _sqlite3_strglob, _sqlite3_strlike, _sqlite3_auto_extension, _sqlite3_cancel_auto_extension, _sqlite3_reset_auto_extension, _sqlite3_prepare_v3, _sqlite3_create_module, _sqlite3_create_module_v2, _sqlite3_drop_modules, _sqlite3_declare_vtab, _sqlite3_vtab_on_conflict, _sqlite3_vtab_collation, _sqlite3_vtab_in, _sqlite3_vtab_rhs_value, _sqlite3_vtab_distinct, _sqlite3_keyword_name, _sqlite3_keyword_count, _sqlite3_keyword_check, _sqlite3_complete, _sqlite3_libversion, _sqlite3_libversion_number, _sqlite3_shutdown, _sqlite3_last_insert_rowid, _sqlite3_set_last_insert_rowid, _sqlite3_changes64, _sqlite3_changes, _sqlite3_total_changes64, _sqlite3_total_changes, _sqlite3_txn_state, _sqlite3_close_v2, _sqlite3_busy_handler, _sqlite3_progress_handler, _sqlite3_busy_timeout, _sqlite3_interrupt, _sqlite3_is_interrupted, _sqlite3_create_function, _sqlite3_create_function_v2, _sqlite3_create_window_function, _sqlite3_overload_function, _sqlite3_trace_v2, _sqlite3_commit_hook, _sqlite3_update_hook, _sqlite3_rollback_hook, _sqlite3_preupdate_hook, _sqlite3_set_errmsg, _sqlite3_error_offset, _sqlite3_errcode, _sqlite3_extended_errcode, _sqlite3_errstr, _sqlite3_limit, _sqlite3_open, _sqlite3_open_v2, _sqlite3_create_collation, _sqlite3_create_collation_v2, _sqlite3_collation_needed, _sqlite3_get_autocommit, _sqlite3_table_column_metadata, _sqlite3_extended_result_codes, _sqlite3_uri_key, _sqlite3_uri_int64, _sqlite3_db_name, _sqlite3_db_filename, _sqlite3_db_readonly, _sqlite3_compileoption_used, _sqlite3_compileoption_get, _sqlite3session_diff, _sqlite3session_attach, _sqlite3session_create, _sqlite3session_delete, _sqlite3session_table_filter, _sqlite3session_changeset, _sqlite3session_changeset_strm, _sqlite3session_patchset_strm, _sqlite3session_patchset, _sqlite3session_enable, _sqlite3session_indirect, _sqlite3session_isempty, _sqlite3session_memory_used, _sqlite3session_object_config, _sqlite3session_changeset_size, _sqlite3changeset_start, _sqlite3changeset_start_v2, _sqlite3changeset_start_strm, _sqlite3changeset_start_v2_strm, _sqlite3changeset_next, _sqlite3changeset_op, _sqlite3changeset_pk, _sqlite3changeset_old, _sqlite3changeset_new, _sqlite3changeset_conflict, _sqlite3changeset_fk_conflicts, _sqlite3changeset_finalize, _sqlite3changeset_invert, _sqlite3changeset_invert_strm, _sqlite3changeset_apply_v2, _sqlite3changeset_apply_v3, _sqlite3changeset_apply, _sqlite3changeset_apply_v3_strm, _sqlite3changeset_apply_v2_strm, _sqlite3changeset_apply_strm, _sqlite3changegroup_new, _sqlite3changegroup_add, _sqlite3changegroup_output, _sqlite3changegroup_add_strm, _sqlite3changegroup_output_strm, _sqlite3changegroup_delete, _sqlite3changeset_concat, _sqlite3changeset_concat_strm, _sqlite3session_config, _sqlite3_sourceid, _sqlite3__wasm_pstack_ptr, _sqlite3__wasm_pstack_restore, _sqlite3__wasm_pstack_alloc, _sqlite3__wasm_pstack_remaining, _sqlite3__wasm_pstack_quota, _sqlite3__wasm_test_struct, _sqlite3__wasm_enum_json, _sqlite3__wasm_vfs_unlink, _sqlite3__wasm_db_vfs, _sqlite3__wasm_db_reset, _sqlite3__wasm_db_export_chunked, _sqlite3__wasm_db_serialize, _sqlite3__wasm_vfs_create_file, _sqlite3__wasm_posix_create_file, _sqlite3__wasm_kvvfsMakeKeyOnPstack, _sqlite3__wasm_kvvfs_methods, _sqlite3__wasm_vtab_config, _sqlite3__wasm_db_config_ip, _sqlite3__wasm_db_config_pii, _sqlite3__wasm_db_config_s, _sqlite3__wasm_config_i, _sqlite3__wasm_config_ii, _sqlite3__wasm_config_j, _sqlite3__wasm_qfmt_token, _sqlite3__wasm_init_wasmfs, _sqlite3__wasm_test_intptr, _sqlite3__wasm_test_voidptr, _sqlite3__wasm_test_int64_max, _sqlite3__wasm_test_int64_min, _sqlite3__wasm_test_int64_times2, _sqlite3__wasm_test_int64_minmax, _sqlite3__wasm_test_int64ptr, _sqlite3__wasm_test_stack_overflow, _sqlite3__wasm_test_str_hello, _sqlite3__wasm_SQLTester_strglob, _malloc, _free, _realloc, _emscripten_builtin_memalign, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current;
|
|
8866
|
+
var _sqlite3_status64, _sqlite3_status, _sqlite3_db_status64, _sqlite3_msize, _sqlite3_db_status, _sqlite3_vfs_find, _sqlite3_initialize, _sqlite3_malloc, _sqlite3_free, _sqlite3_vfs_register, _sqlite3_vfs_unregister, _sqlite3_malloc64, _sqlite3_realloc, _sqlite3_realloc64, _sqlite3_value_text, _sqlite3_randomness, _sqlite3_stricmp, _sqlite3_strnicmp, _sqlite3_uri_parameter, _sqlite3_uri_boolean, _sqlite3_serialize, _sqlite3_prepare_v2, _sqlite3_step, _sqlite3_column_int64, _sqlite3_reset, _sqlite3_exec, _sqlite3_column_int, _sqlite3_finalize, _sqlite3_file_control, _sqlite3_column_name, _sqlite3_column_text, _sqlite3_column_type, _sqlite3_errmsg, _sqlite3_deserialize, _sqlite3_clear_bindings, _sqlite3_value_blob, _sqlite3_value_bytes, _sqlite3_value_double, _sqlite3_value_int, _sqlite3_value_int64, _sqlite3_value_subtype, _sqlite3_value_pointer, _sqlite3_value_type, _sqlite3_value_nochange, _sqlite3_value_frombind, _sqlite3_value_dup, _sqlite3_value_free, _sqlite3_result_blob, _sqlite3_result_error_toobig, _sqlite3_result_error_nomem, _sqlite3_result_double, _sqlite3_result_error, _sqlite3_result_int, _sqlite3_result_int64, _sqlite3_result_null, _sqlite3_result_pointer, _sqlite3_result_subtype, _sqlite3_result_text, _sqlite3_result_zeroblob, _sqlite3_result_zeroblob64, _sqlite3_result_error_code, _sqlite3_user_data, _sqlite3_context_db_handle, _sqlite3_vtab_nochange, _sqlite3_vtab_in_first, _sqlite3_vtab_in_next, _sqlite3_aggregate_context, _sqlite3_get_auxdata, _sqlite3_set_auxdata, _sqlite3_column_count, _sqlite3_data_count, _sqlite3_column_blob, _sqlite3_column_bytes, _sqlite3_column_double, _sqlite3_column_value, _sqlite3_column_decltype, _sqlite3_column_database_name, _sqlite3_column_table_name, _sqlite3_column_origin_name, _sqlite3_bind_blob, _sqlite3_bind_double, _sqlite3_bind_int, _sqlite3_bind_int64, _sqlite3_bind_null, _sqlite3_bind_pointer, _sqlite3_bind_text, _sqlite3_bind_parameter_count, _sqlite3_bind_parameter_name, _sqlite3_bind_parameter_index, _sqlite3_db_handle, _sqlite3_stmt_readonly, _sqlite3_stmt_isexplain, _sqlite3_stmt_explain, _sqlite3_stmt_busy, _sqlite3_stmt_status, _sqlite3_sql, _sqlite3_expanded_sql, _sqlite3_preupdate_old, _sqlite3_preupdate_count, _sqlite3_preupdate_depth, _sqlite3_preupdate_blobwrite, _sqlite3_preupdate_new, _sqlite3_value_numeric_type, _sqlite3_set_authorizer, _sqlite3_strglob, _sqlite3_strlike, _sqlite3_auto_extension, _sqlite3_cancel_auto_extension, _sqlite3_reset_auto_extension, _sqlite3_prepare_v3, _sqlite3_create_module, _sqlite3_create_module_v2, _sqlite3_drop_modules, _sqlite3_declare_vtab, _sqlite3_vtab_on_conflict, _sqlite3_vtab_collation, _sqlite3_vtab_in, _sqlite3_vtab_rhs_value, _sqlite3_vtab_distinct, _sqlite3_keyword_name, _sqlite3_keyword_count, _sqlite3_keyword_check, _sqlite3_complete, _sqlite3_libversion, _sqlite3_libversion_number, _sqlite3_shutdown, _sqlite3_last_insert_rowid, _sqlite3_set_last_insert_rowid, _sqlite3_changes64, _sqlite3_changes, _sqlite3_total_changes64, _sqlite3_total_changes, _sqlite3_txn_state, _sqlite3_close_v2, _sqlite3_busy_handler, _sqlite3_progress_handler, _sqlite3_busy_timeout, _sqlite3_interrupt, _sqlite3_is_interrupted, _sqlite3_create_function, _sqlite3_create_function_v2, _sqlite3_create_window_function, _sqlite3_overload_function, _sqlite3_trace_v2, _sqlite3_commit_hook, _sqlite3_update_hook, _sqlite3_rollback_hook, _sqlite3_preupdate_hook, _sqlite3_set_errmsg, _sqlite3_error_offset, _sqlite3_errcode, _sqlite3_extended_errcode, _sqlite3_errstr, _sqlite3_limit, _sqlite3_open, _sqlite3_open_v2, _sqlite3_create_collation, _sqlite3_create_collation_v2, _sqlite3_collation_needed, _sqlite3_get_autocommit, _sqlite3_table_column_metadata, _sqlite3_extended_result_codes, _sqlite3_uri_key, _sqlite3_uri_int64, _sqlite3_db_name, _sqlite3_db_filename, _sqlite3_db_readonly, _sqlite3_compileoption_used, _sqlite3_compileoption_get, _sqlite3session_diff, _sqlite3session_attach, _sqlite3session_create, _sqlite3session_delete, _sqlite3session_table_filter, _sqlite3session_changeset, _sqlite3session_changeset_strm, _sqlite3session_patchset_strm, _sqlite3session_patchset, _sqlite3session_enable, _sqlite3session_indirect, _sqlite3session_isempty, _sqlite3session_memory_used, _sqlite3session_object_config, _sqlite3session_changeset_size, _sqlite3changeset_start, _sqlite3changeset_start_v2, _sqlite3changeset_start_strm, _sqlite3changeset_start_v2_strm, _sqlite3changeset_next, _sqlite3changeset_op, _sqlite3changeset_pk, _sqlite3changeset_old, _sqlite3changeset_new, _sqlite3changeset_conflict, _sqlite3changeset_fk_conflicts, _sqlite3changeset_finalize, _sqlite3changeset_invert, _sqlite3changeset_invert_strm, _sqlite3changeset_apply_v2, _sqlite3changeset_apply_v3, _sqlite3changeset_apply, _sqlite3changeset_apply_v3_strm, _sqlite3changeset_apply_v2_strm, _sqlite3changeset_apply_strm, _sqlite3changegroup_new, _sqlite3changegroup_add, _sqlite3changegroup_output, _sqlite3changegroup_add_strm, _sqlite3changegroup_output_strm, _sqlite3changegroup_delete, _sqlite3changeset_concat, _sqlite3changeset_concat_strm, _sqlite3session_config, _sqlite3_sourceid, _sqlite3__wasm_pstack_ptr, _sqlite3__wasm_pstack_restore, _sqlite3__wasm_pstack_alloc, _sqlite3__wasm_pstack_remaining, _sqlite3__wasm_pstack_quota, _sqlite3__wasm_test_struct, _sqlite3__wasm_enum_json, _sqlite3__wasm_vfs_unlink, _sqlite3__wasm_db_vfs, _sqlite3__wasm_db_reset, _sqlite3__wasm_db_export_chunked, _sqlite3__wasm_db_serialize, _sqlite3__wasm_vfs_create_file, _sqlite3__wasm_posix_create_file, _sqlite3__wasm_kvvfsMakeKeyOnPstack, _sqlite3__wasm_kvvfs_methods, _sqlite3__wasm_vtab_config, _sqlite3__wasm_db_config_ip, _sqlite3__wasm_db_config_pii, _sqlite3__wasm_db_config_s, _sqlite3__wasm_config_i, _sqlite3__wasm_config_ii, _sqlite3__wasm_config_j, _sqlite3__wasm_qfmt_token, _sqlite3__wasm_init_wasmfs, _sqlite3__wasm_test_intptr, _sqlite3__wasm_test_voidptr, _sqlite3__wasm_test_int64_max, _sqlite3__wasm_test_int64_min, _sqlite3__wasm_test_int64_times2, _sqlite3__wasm_test_int64_minmax, _sqlite3__wasm_test_int64ptr, _sqlite3__wasm_test_stack_overflow, _sqlite3__wasm_test_str_hello, _sqlite3__wasm_SQLTester_strglob, _malloc, _free, _realloc, _emscripten_builtin_memalign, __emscripten_stack_restore, __emscripten_stack_alloc, _emscripten_stack_get_current, __indirect_function_table;
|
|
9222
8867
|
function assignWasmExports(wasmExports2) {
|
|
9223
|
-
Module["_sqlite3_status64"] =
|
|
9224
|
-
Module["_sqlite3_status"] =
|
|
9225
|
-
Module["_sqlite3_db_status64"] =
|
|
9226
|
-
Module["_sqlite3_msize"] =
|
|
9227
|
-
Module["_sqlite3_db_status"] =
|
|
9228
|
-
Module["_sqlite3_vfs_find"] =
|
|
9229
|
-
Module["_sqlite3_initialize"] =
|
|
9230
|
-
Module["_sqlite3_malloc"] =
|
|
9231
|
-
Module["_sqlite3_free"] =
|
|
9232
|
-
Module["_sqlite3_vfs_register"] =
|
|
9233
|
-
Module["_sqlite3_vfs_unregister"] =
|
|
9234
|
-
Module["_sqlite3_malloc64"] =
|
|
9235
|
-
Module["_sqlite3_realloc"] =
|
|
9236
|
-
Module["_sqlite3_realloc64"] =
|
|
9237
|
-
Module["_sqlite3_value_text"] =
|
|
9238
|
-
Module["_sqlite3_randomness"] =
|
|
9239
|
-
Module["_sqlite3_stricmp"] =
|
|
9240
|
-
Module["_sqlite3_strnicmp"] =
|
|
9241
|
-
Module["_sqlite3_uri_parameter"] =
|
|
9242
|
-
Module["_sqlite3_uri_boolean"] =
|
|
9243
|
-
Module["_sqlite3_serialize"] =
|
|
9244
|
-
Module["_sqlite3_prepare_v2"] =
|
|
9245
|
-
Module["_sqlite3_step"] =
|
|
9246
|
-
Module["_sqlite3_column_int64"] =
|
|
9247
|
-
Module["_sqlite3_reset"] =
|
|
9248
|
-
Module["_sqlite3_exec"] =
|
|
9249
|
-
Module["_sqlite3_column_int"] =
|
|
9250
|
-
Module["_sqlite3_finalize"] =
|
|
9251
|
-
Module["_sqlite3_file_control"] =
|
|
9252
|
-
Module["_sqlite3_column_name"] =
|
|
9253
|
-
Module["_sqlite3_column_text"] =
|
|
9254
|
-
Module["_sqlite3_column_type"] =
|
|
9255
|
-
Module["_sqlite3_errmsg"] =
|
|
9256
|
-
Module["_sqlite3_deserialize"] =
|
|
9257
|
-
Module["_sqlite3_clear_bindings"] =
|
|
9258
|
-
Module["_sqlite3_value_blob"] =
|
|
9259
|
-
Module["_sqlite3_value_bytes"] =
|
|
9260
|
-
Module["_sqlite3_value_double"] =
|
|
9261
|
-
Module["_sqlite3_value_int"] =
|
|
9262
|
-
Module["_sqlite3_value_int64"] =
|
|
9263
|
-
Module["_sqlite3_value_subtype"] =
|
|
9264
|
-
Module["_sqlite3_value_pointer"] =
|
|
9265
|
-
Module["_sqlite3_value_type"] =
|
|
9266
|
-
Module["_sqlite3_value_nochange"] =
|
|
9267
|
-
Module["_sqlite3_value_frombind"] =
|
|
9268
|
-
Module["_sqlite3_value_dup"] =
|
|
9269
|
-
Module["_sqlite3_value_free"] =
|
|
9270
|
-
Module["_sqlite3_result_blob"] =
|
|
9271
|
-
Module["_sqlite3_result_error_toobig"] =
|
|
9272
|
-
Module["_sqlite3_result_error_nomem"] =
|
|
9273
|
-
Module["_sqlite3_result_double"] =
|
|
9274
|
-
Module["_sqlite3_result_error"] =
|
|
9275
|
-
Module["_sqlite3_result_int"] =
|
|
9276
|
-
Module["_sqlite3_result_int64"] =
|
|
9277
|
-
Module["_sqlite3_result_null"] =
|
|
9278
|
-
Module["_sqlite3_result_pointer"] =
|
|
9279
|
-
Module["_sqlite3_result_subtype"] =
|
|
9280
|
-
Module["_sqlite3_result_text"] =
|
|
9281
|
-
Module["_sqlite3_result_zeroblob"] =
|
|
9282
|
-
Module["_sqlite3_result_zeroblob64"] =
|
|
9283
|
-
Module["_sqlite3_result_error_code"] =
|
|
9284
|
-
Module["_sqlite3_user_data"] =
|
|
9285
|
-
Module["_sqlite3_context_db_handle"] =
|
|
9286
|
-
Module["_sqlite3_vtab_nochange"] =
|
|
9287
|
-
Module["_sqlite3_vtab_in_first"] =
|
|
9288
|
-
Module["_sqlite3_vtab_in_next"] =
|
|
9289
|
-
Module["_sqlite3_aggregate_context"] =
|
|
9290
|
-
Module["_sqlite3_get_auxdata"] =
|
|
9291
|
-
Module["_sqlite3_set_auxdata"] =
|
|
9292
|
-
Module["_sqlite3_column_count"] =
|
|
9293
|
-
Module["_sqlite3_data_count"] =
|
|
9294
|
-
Module["_sqlite3_column_blob"] =
|
|
9295
|
-
Module["_sqlite3_column_bytes"] =
|
|
9296
|
-
Module["_sqlite3_column_double"] =
|
|
9297
|
-
Module["_sqlite3_column_value"] =
|
|
9298
|
-
Module["_sqlite3_column_decltype"] =
|
|
9299
|
-
Module["_sqlite3_column_database_name"] =
|
|
9300
|
-
Module["_sqlite3_column_table_name"] =
|
|
9301
|
-
Module["_sqlite3_column_origin_name"] =
|
|
9302
|
-
Module["_sqlite3_bind_blob"] =
|
|
9303
|
-
Module["_sqlite3_bind_double"] =
|
|
9304
|
-
Module["_sqlite3_bind_int"] =
|
|
9305
|
-
Module["_sqlite3_bind_int64"] =
|
|
9306
|
-
Module["_sqlite3_bind_null"] =
|
|
9307
|
-
Module["_sqlite3_bind_pointer"] =
|
|
9308
|
-
Module["_sqlite3_bind_text"] =
|
|
9309
|
-
Module["_sqlite3_bind_parameter_count"] =
|
|
9310
|
-
Module["_sqlite3_bind_parameter_name"] =
|
|
9311
|
-
Module["_sqlite3_bind_parameter_index"] =
|
|
9312
|
-
Module["_sqlite3_db_handle"] =
|
|
9313
|
-
Module["_sqlite3_stmt_readonly"] =
|
|
9314
|
-
Module["_sqlite3_stmt_isexplain"] =
|
|
9315
|
-
Module["_sqlite3_stmt_explain"] =
|
|
9316
|
-
Module["_sqlite3_stmt_busy"] =
|
|
9317
|
-
Module["_sqlite3_stmt_status"] =
|
|
9318
|
-
Module["_sqlite3_sql"] =
|
|
9319
|
-
Module["_sqlite3_expanded_sql"] =
|
|
9320
|
-
Module["_sqlite3_preupdate_old"] =
|
|
9321
|
-
Module["_sqlite3_preupdate_count"] =
|
|
9322
|
-
Module["_sqlite3_preupdate_depth"] =
|
|
9323
|
-
Module["_sqlite3_preupdate_blobwrite"] =
|
|
9324
|
-
Module["_sqlite3_preupdate_new"] =
|
|
9325
|
-
Module["_sqlite3_value_numeric_type"] =
|
|
9326
|
-
Module["_sqlite3_set_authorizer"] =
|
|
9327
|
-
Module["_sqlite3_strglob"] =
|
|
9328
|
-
Module["_sqlite3_strlike"] =
|
|
9329
|
-
Module["_sqlite3_auto_extension"] =
|
|
9330
|
-
Module["_sqlite3_cancel_auto_extension"] =
|
|
9331
|
-
Module["_sqlite3_reset_auto_extension"] =
|
|
9332
|
-
Module["_sqlite3_prepare_v3"] =
|
|
9333
|
-
Module["_sqlite3_create_module"] =
|
|
9334
|
-
Module["_sqlite3_create_module_v2"] =
|
|
9335
|
-
Module["_sqlite3_drop_modules"] =
|
|
9336
|
-
Module["_sqlite3_declare_vtab"] =
|
|
9337
|
-
Module["_sqlite3_vtab_on_conflict"] =
|
|
9338
|
-
Module["_sqlite3_vtab_collation"] =
|
|
9339
|
-
Module["_sqlite3_vtab_in"] =
|
|
9340
|
-
Module["_sqlite3_vtab_rhs_value"] =
|
|
9341
|
-
Module["_sqlite3_vtab_distinct"] =
|
|
9342
|
-
Module["_sqlite3_keyword_name"] =
|
|
9343
|
-
Module["_sqlite3_keyword_count"] =
|
|
9344
|
-
Module["_sqlite3_keyword_check"] =
|
|
9345
|
-
Module["_sqlite3_complete"] =
|
|
9346
|
-
Module["_sqlite3_libversion"] =
|
|
9347
|
-
Module["_sqlite3_libversion_number"] =
|
|
9348
|
-
Module["_sqlite3_shutdown"] =
|
|
9349
|
-
Module["_sqlite3_last_insert_rowid"] =
|
|
9350
|
-
Module["_sqlite3_set_last_insert_rowid"] =
|
|
9351
|
-
Module["_sqlite3_changes64"] =
|
|
9352
|
-
Module["_sqlite3_changes"] =
|
|
9353
|
-
Module["_sqlite3_total_changes64"] =
|
|
9354
|
-
Module["_sqlite3_total_changes"] =
|
|
9355
|
-
Module["_sqlite3_txn_state"] =
|
|
9356
|
-
Module["_sqlite3_close_v2"] =
|
|
9357
|
-
Module["_sqlite3_busy_handler"] =
|
|
9358
|
-
Module["_sqlite3_progress_handler"] =
|
|
9359
|
-
Module["_sqlite3_busy_timeout"] =
|
|
9360
|
-
Module["_sqlite3_interrupt"] =
|
|
9361
|
-
Module["_sqlite3_is_interrupted"] =
|
|
9362
|
-
Module["_sqlite3_create_function"] =
|
|
9363
|
-
Module["_sqlite3_create_function_v2"] =
|
|
9364
|
-
Module["_sqlite3_create_window_function"] =
|
|
9365
|
-
Module["_sqlite3_overload_function"] =
|
|
9366
|
-
Module["_sqlite3_trace_v2"] =
|
|
9367
|
-
Module["_sqlite3_commit_hook"] =
|
|
9368
|
-
Module["_sqlite3_update_hook"] =
|
|
9369
|
-
Module["_sqlite3_rollback_hook"] =
|
|
9370
|
-
Module["_sqlite3_preupdate_hook"] =
|
|
9371
|
-
Module["_sqlite3_set_errmsg"] =
|
|
9372
|
-
Module["_sqlite3_error_offset"] =
|
|
9373
|
-
Module["_sqlite3_errcode"] =
|
|
9374
|
-
Module["_sqlite3_extended_errcode"] =
|
|
9375
|
-
Module["_sqlite3_errstr"] =
|
|
9376
|
-
Module["_sqlite3_limit"] =
|
|
9377
|
-
Module["_sqlite3_open"] =
|
|
9378
|
-
Module["_sqlite3_open_v2"] =
|
|
9379
|
-
Module["_sqlite3_create_collation"] =
|
|
9380
|
-
Module["_sqlite3_create_collation_v2"] =
|
|
9381
|
-
Module["_sqlite3_collation_needed"] =
|
|
9382
|
-
Module["_sqlite3_get_autocommit"] =
|
|
9383
|
-
Module["_sqlite3_table_column_metadata"] =
|
|
9384
|
-
Module["_sqlite3_extended_result_codes"] =
|
|
9385
|
-
Module["_sqlite3_uri_key"] =
|
|
9386
|
-
Module["_sqlite3_uri_int64"] =
|
|
9387
|
-
Module["_sqlite3_db_name"] =
|
|
9388
|
-
Module["_sqlite3_db_filename"] =
|
|
9389
|
-
Module["_sqlite3_db_readonly"] =
|
|
9390
|
-
Module["_sqlite3_compileoption_used"] =
|
|
9391
|
-
Module["_sqlite3_compileoption_get"] =
|
|
9392
|
-
Module["_sqlite3session_diff"] =
|
|
9393
|
-
Module["_sqlite3session_attach"] =
|
|
9394
|
-
Module["_sqlite3session_create"] =
|
|
9395
|
-
Module["_sqlite3session_delete"] =
|
|
9396
|
-
Module["_sqlite3session_table_filter"] =
|
|
9397
|
-
Module["_sqlite3session_changeset"] =
|
|
9398
|
-
Module["_sqlite3session_changeset_strm"] =
|
|
9399
|
-
Module["_sqlite3session_patchset_strm"] =
|
|
9400
|
-
Module["_sqlite3session_patchset"] =
|
|
9401
|
-
Module["_sqlite3session_enable"] =
|
|
9402
|
-
Module["_sqlite3session_indirect"] =
|
|
9403
|
-
Module["_sqlite3session_isempty"] =
|
|
9404
|
-
Module["_sqlite3session_memory_used"] =
|
|
9405
|
-
Module["_sqlite3session_object_config"] =
|
|
9406
|
-
Module["_sqlite3session_changeset_size"] =
|
|
9407
|
-
Module["_sqlite3changeset_start"] =
|
|
9408
|
-
Module["_sqlite3changeset_start_v2"] =
|
|
9409
|
-
Module["_sqlite3changeset_start_strm"] =
|
|
9410
|
-
Module["_sqlite3changeset_start_v2_strm"] =
|
|
9411
|
-
Module["_sqlite3changeset_next"] =
|
|
9412
|
-
Module["_sqlite3changeset_op"] =
|
|
9413
|
-
Module["_sqlite3changeset_pk"] =
|
|
9414
|
-
Module["_sqlite3changeset_old"] =
|
|
9415
|
-
Module["_sqlite3changeset_new"] =
|
|
9416
|
-
Module["_sqlite3changeset_conflict"] =
|
|
9417
|
-
Module["_sqlite3changeset_fk_conflicts"] =
|
|
9418
|
-
Module["_sqlite3changeset_finalize"] =
|
|
9419
|
-
Module["_sqlite3changeset_invert"] =
|
|
9420
|
-
Module["_sqlite3changeset_invert_strm"] =
|
|
9421
|
-
Module["_sqlite3changeset_apply_v2"] =
|
|
9422
|
-
Module["_sqlite3changeset_apply_v3"] =
|
|
9423
|
-
Module["_sqlite3changeset_apply"] =
|
|
9424
|
-
Module["_sqlite3changeset_apply_v3_strm"] =
|
|
9425
|
-
Module["_sqlite3changeset_apply_v2_strm"] =
|
|
9426
|
-
Module["_sqlite3changeset_apply_strm"] =
|
|
9427
|
-
Module["_sqlite3changegroup_new"] =
|
|
9428
|
-
Module["_sqlite3changegroup_add"] =
|
|
9429
|
-
Module["_sqlite3changegroup_output"] =
|
|
9430
|
-
Module["_sqlite3changegroup_add_strm"] =
|
|
9431
|
-
Module["_sqlite3changegroup_output_strm"] =
|
|
9432
|
-
Module["_sqlite3changegroup_delete"] =
|
|
9433
|
-
Module["_sqlite3changeset_concat"] =
|
|
9434
|
-
Module["_sqlite3changeset_concat_strm"] =
|
|
9435
|
-
Module["_sqlite3session_config"] =
|
|
9436
|
-
Module["_sqlite3_sourceid"] =
|
|
9437
|
-
Module["_sqlite3__wasm_pstack_ptr"] =
|
|
9438
|
-
Module["_sqlite3__wasm_pstack_restore"] =
|
|
9439
|
-
Module["_sqlite3__wasm_pstack_alloc"] =
|
|
9440
|
-
Module["_sqlite3__wasm_pstack_remaining"] =
|
|
9441
|
-
Module["_sqlite3__wasm_pstack_quota"] =
|
|
9442
|
-
Module["_sqlite3__wasm_test_struct"] =
|
|
9443
|
-
Module["_sqlite3__wasm_enum_json"] =
|
|
9444
|
-
Module["_sqlite3__wasm_vfs_unlink"] =
|
|
9445
|
-
Module["_sqlite3__wasm_db_vfs"] =
|
|
9446
|
-
Module["_sqlite3__wasm_db_reset"] =
|
|
9447
|
-
Module["_sqlite3__wasm_db_export_chunked"] =
|
|
9448
|
-
Module["_sqlite3__wasm_db_serialize"] =
|
|
9449
|
-
Module["_sqlite3__wasm_vfs_create_file"] =
|
|
9450
|
-
Module["_sqlite3__wasm_posix_create_file"] =
|
|
9451
|
-
Module["_sqlite3__wasm_kvvfsMakeKeyOnPstack"] =
|
|
9452
|
-
Module["_sqlite3__wasm_kvvfs_methods"] =
|
|
9453
|
-
Module["_sqlite3__wasm_vtab_config"] =
|
|
9454
|
-
Module["_sqlite3__wasm_db_config_ip"] =
|
|
9455
|
-
Module["_sqlite3__wasm_db_config_pii"] =
|
|
9456
|
-
Module["_sqlite3__wasm_db_config_s"] =
|
|
9457
|
-
Module["_sqlite3__wasm_config_i"] =
|
|
9458
|
-
Module["_sqlite3__wasm_config_ii"] =
|
|
9459
|
-
Module["_sqlite3__wasm_config_j"] =
|
|
9460
|
-
Module["_sqlite3__wasm_qfmt_token"] =
|
|
9461
|
-
Module["_sqlite3__wasm_init_wasmfs"] =
|
|
9462
|
-
Module["_sqlite3__wasm_test_intptr"] =
|
|
9463
|
-
Module["_sqlite3__wasm_test_voidptr"] =
|
|
9464
|
-
Module["_sqlite3__wasm_test_int64_max"] =
|
|
9465
|
-
Module["_sqlite3__wasm_test_int64_min"] =
|
|
9466
|
-
Module["_sqlite3__wasm_test_int64_times2"] =
|
|
9467
|
-
Module["_sqlite3__wasm_test_int64_minmax"] =
|
|
9468
|
-
Module["_sqlite3__wasm_test_int64ptr"] =
|
|
9469
|
-
Module["_sqlite3__wasm_test_stack_overflow"] =
|
|
9470
|
-
Module["_sqlite3__wasm_test_str_hello"] =
|
|
9471
|
-
Module["_sqlite3__wasm_SQLTester_strglob"] =
|
|
9472
|
-
Module["_malloc"] =
|
|
9473
|
-
Module["_free"] =
|
|
9474
|
-
Module["_realloc"] =
|
|
8868
|
+
_sqlite3_status64 = Module["_sqlite3_status64"] = wasmExports2["sqlite3_status64"];
|
|
8869
|
+
_sqlite3_status = Module["_sqlite3_status"] = wasmExports2["sqlite3_status"];
|
|
8870
|
+
_sqlite3_db_status64 = Module["_sqlite3_db_status64"] = wasmExports2["sqlite3_db_status64"];
|
|
8871
|
+
_sqlite3_msize = Module["_sqlite3_msize"] = wasmExports2["sqlite3_msize"];
|
|
8872
|
+
_sqlite3_db_status = Module["_sqlite3_db_status"] = wasmExports2["sqlite3_db_status"];
|
|
8873
|
+
_sqlite3_vfs_find = Module["_sqlite3_vfs_find"] = wasmExports2["sqlite3_vfs_find"];
|
|
8874
|
+
_sqlite3_initialize = Module["_sqlite3_initialize"] = wasmExports2["sqlite3_initialize"];
|
|
8875
|
+
_sqlite3_malloc = Module["_sqlite3_malloc"] = wasmExports2["sqlite3_malloc"];
|
|
8876
|
+
_sqlite3_free = Module["_sqlite3_free"] = wasmExports2["sqlite3_free"];
|
|
8877
|
+
_sqlite3_vfs_register = Module["_sqlite3_vfs_register"] = wasmExports2["sqlite3_vfs_register"];
|
|
8878
|
+
_sqlite3_vfs_unregister = Module["_sqlite3_vfs_unregister"] = wasmExports2["sqlite3_vfs_unregister"];
|
|
8879
|
+
_sqlite3_malloc64 = Module["_sqlite3_malloc64"] = wasmExports2["sqlite3_malloc64"];
|
|
8880
|
+
_sqlite3_realloc = Module["_sqlite3_realloc"] = wasmExports2["sqlite3_realloc"];
|
|
8881
|
+
_sqlite3_realloc64 = Module["_sqlite3_realloc64"] = wasmExports2["sqlite3_realloc64"];
|
|
8882
|
+
_sqlite3_value_text = Module["_sqlite3_value_text"] = wasmExports2["sqlite3_value_text"];
|
|
8883
|
+
_sqlite3_randomness = Module["_sqlite3_randomness"] = wasmExports2["sqlite3_randomness"];
|
|
8884
|
+
_sqlite3_stricmp = Module["_sqlite3_stricmp"] = wasmExports2["sqlite3_stricmp"];
|
|
8885
|
+
_sqlite3_strnicmp = Module["_sqlite3_strnicmp"] = wasmExports2["sqlite3_strnicmp"];
|
|
8886
|
+
_sqlite3_uri_parameter = Module["_sqlite3_uri_parameter"] = wasmExports2["sqlite3_uri_parameter"];
|
|
8887
|
+
_sqlite3_uri_boolean = Module["_sqlite3_uri_boolean"] = wasmExports2["sqlite3_uri_boolean"];
|
|
8888
|
+
_sqlite3_serialize = Module["_sqlite3_serialize"] = wasmExports2["sqlite3_serialize"];
|
|
8889
|
+
_sqlite3_prepare_v2 = Module["_sqlite3_prepare_v2"] = wasmExports2["sqlite3_prepare_v2"];
|
|
8890
|
+
_sqlite3_step = Module["_sqlite3_step"] = wasmExports2["sqlite3_step"];
|
|
8891
|
+
_sqlite3_column_int64 = Module["_sqlite3_column_int64"] = wasmExports2["sqlite3_column_int64"];
|
|
8892
|
+
_sqlite3_reset = Module["_sqlite3_reset"] = wasmExports2["sqlite3_reset"];
|
|
8893
|
+
_sqlite3_exec = Module["_sqlite3_exec"] = wasmExports2["sqlite3_exec"];
|
|
8894
|
+
_sqlite3_column_int = Module["_sqlite3_column_int"] = wasmExports2["sqlite3_column_int"];
|
|
8895
|
+
_sqlite3_finalize = Module["_sqlite3_finalize"] = wasmExports2["sqlite3_finalize"];
|
|
8896
|
+
_sqlite3_file_control = Module["_sqlite3_file_control"] = wasmExports2["sqlite3_file_control"];
|
|
8897
|
+
_sqlite3_column_name = Module["_sqlite3_column_name"] = wasmExports2["sqlite3_column_name"];
|
|
8898
|
+
_sqlite3_column_text = Module["_sqlite3_column_text"] = wasmExports2["sqlite3_column_text"];
|
|
8899
|
+
_sqlite3_column_type = Module["_sqlite3_column_type"] = wasmExports2["sqlite3_column_type"];
|
|
8900
|
+
_sqlite3_errmsg = Module["_sqlite3_errmsg"] = wasmExports2["sqlite3_errmsg"];
|
|
8901
|
+
_sqlite3_deserialize = Module["_sqlite3_deserialize"] = wasmExports2["sqlite3_deserialize"];
|
|
8902
|
+
_sqlite3_clear_bindings = Module["_sqlite3_clear_bindings"] = wasmExports2["sqlite3_clear_bindings"];
|
|
8903
|
+
_sqlite3_value_blob = Module["_sqlite3_value_blob"] = wasmExports2["sqlite3_value_blob"];
|
|
8904
|
+
_sqlite3_value_bytes = Module["_sqlite3_value_bytes"] = wasmExports2["sqlite3_value_bytes"];
|
|
8905
|
+
_sqlite3_value_double = Module["_sqlite3_value_double"] = wasmExports2["sqlite3_value_double"];
|
|
8906
|
+
_sqlite3_value_int = Module["_sqlite3_value_int"] = wasmExports2["sqlite3_value_int"];
|
|
8907
|
+
_sqlite3_value_int64 = Module["_sqlite3_value_int64"] = wasmExports2["sqlite3_value_int64"];
|
|
8908
|
+
_sqlite3_value_subtype = Module["_sqlite3_value_subtype"] = wasmExports2["sqlite3_value_subtype"];
|
|
8909
|
+
_sqlite3_value_pointer = Module["_sqlite3_value_pointer"] = wasmExports2["sqlite3_value_pointer"];
|
|
8910
|
+
_sqlite3_value_type = Module["_sqlite3_value_type"] = wasmExports2["sqlite3_value_type"];
|
|
8911
|
+
_sqlite3_value_nochange = Module["_sqlite3_value_nochange"] = wasmExports2["sqlite3_value_nochange"];
|
|
8912
|
+
_sqlite3_value_frombind = Module["_sqlite3_value_frombind"] = wasmExports2["sqlite3_value_frombind"];
|
|
8913
|
+
_sqlite3_value_dup = Module["_sqlite3_value_dup"] = wasmExports2["sqlite3_value_dup"];
|
|
8914
|
+
_sqlite3_value_free = Module["_sqlite3_value_free"] = wasmExports2["sqlite3_value_free"];
|
|
8915
|
+
_sqlite3_result_blob = Module["_sqlite3_result_blob"] = wasmExports2["sqlite3_result_blob"];
|
|
8916
|
+
_sqlite3_result_error_toobig = Module["_sqlite3_result_error_toobig"] = wasmExports2["sqlite3_result_error_toobig"];
|
|
8917
|
+
_sqlite3_result_error_nomem = Module["_sqlite3_result_error_nomem"] = wasmExports2["sqlite3_result_error_nomem"];
|
|
8918
|
+
_sqlite3_result_double = Module["_sqlite3_result_double"] = wasmExports2["sqlite3_result_double"];
|
|
8919
|
+
_sqlite3_result_error = Module["_sqlite3_result_error"] = wasmExports2["sqlite3_result_error"];
|
|
8920
|
+
_sqlite3_result_int = Module["_sqlite3_result_int"] = wasmExports2["sqlite3_result_int"];
|
|
8921
|
+
_sqlite3_result_int64 = Module["_sqlite3_result_int64"] = wasmExports2["sqlite3_result_int64"];
|
|
8922
|
+
_sqlite3_result_null = Module["_sqlite3_result_null"] = wasmExports2["sqlite3_result_null"];
|
|
8923
|
+
_sqlite3_result_pointer = Module["_sqlite3_result_pointer"] = wasmExports2["sqlite3_result_pointer"];
|
|
8924
|
+
_sqlite3_result_subtype = Module["_sqlite3_result_subtype"] = wasmExports2["sqlite3_result_subtype"];
|
|
8925
|
+
_sqlite3_result_text = Module["_sqlite3_result_text"] = wasmExports2["sqlite3_result_text"];
|
|
8926
|
+
_sqlite3_result_zeroblob = Module["_sqlite3_result_zeroblob"] = wasmExports2["sqlite3_result_zeroblob"];
|
|
8927
|
+
_sqlite3_result_zeroblob64 = Module["_sqlite3_result_zeroblob64"] = wasmExports2["sqlite3_result_zeroblob64"];
|
|
8928
|
+
_sqlite3_result_error_code = Module["_sqlite3_result_error_code"] = wasmExports2["sqlite3_result_error_code"];
|
|
8929
|
+
_sqlite3_user_data = Module["_sqlite3_user_data"] = wasmExports2["sqlite3_user_data"];
|
|
8930
|
+
_sqlite3_context_db_handle = Module["_sqlite3_context_db_handle"] = wasmExports2["sqlite3_context_db_handle"];
|
|
8931
|
+
_sqlite3_vtab_nochange = Module["_sqlite3_vtab_nochange"] = wasmExports2["sqlite3_vtab_nochange"];
|
|
8932
|
+
_sqlite3_vtab_in_first = Module["_sqlite3_vtab_in_first"] = wasmExports2["sqlite3_vtab_in_first"];
|
|
8933
|
+
_sqlite3_vtab_in_next = Module["_sqlite3_vtab_in_next"] = wasmExports2["sqlite3_vtab_in_next"];
|
|
8934
|
+
_sqlite3_aggregate_context = Module["_sqlite3_aggregate_context"] = wasmExports2["sqlite3_aggregate_context"];
|
|
8935
|
+
_sqlite3_get_auxdata = Module["_sqlite3_get_auxdata"] = wasmExports2["sqlite3_get_auxdata"];
|
|
8936
|
+
_sqlite3_set_auxdata = Module["_sqlite3_set_auxdata"] = wasmExports2["sqlite3_set_auxdata"];
|
|
8937
|
+
_sqlite3_column_count = Module["_sqlite3_column_count"] = wasmExports2["sqlite3_column_count"];
|
|
8938
|
+
_sqlite3_data_count = Module["_sqlite3_data_count"] = wasmExports2["sqlite3_data_count"];
|
|
8939
|
+
_sqlite3_column_blob = Module["_sqlite3_column_blob"] = wasmExports2["sqlite3_column_blob"];
|
|
8940
|
+
_sqlite3_column_bytes = Module["_sqlite3_column_bytes"] = wasmExports2["sqlite3_column_bytes"];
|
|
8941
|
+
_sqlite3_column_double = Module["_sqlite3_column_double"] = wasmExports2["sqlite3_column_double"];
|
|
8942
|
+
_sqlite3_column_value = Module["_sqlite3_column_value"] = wasmExports2["sqlite3_column_value"];
|
|
8943
|
+
_sqlite3_column_decltype = Module["_sqlite3_column_decltype"] = wasmExports2["sqlite3_column_decltype"];
|
|
8944
|
+
_sqlite3_column_database_name = Module["_sqlite3_column_database_name"] = wasmExports2["sqlite3_column_database_name"];
|
|
8945
|
+
_sqlite3_column_table_name = Module["_sqlite3_column_table_name"] = wasmExports2["sqlite3_column_table_name"];
|
|
8946
|
+
_sqlite3_column_origin_name = Module["_sqlite3_column_origin_name"] = wasmExports2["sqlite3_column_origin_name"];
|
|
8947
|
+
_sqlite3_bind_blob = Module["_sqlite3_bind_blob"] = wasmExports2["sqlite3_bind_blob"];
|
|
8948
|
+
_sqlite3_bind_double = Module["_sqlite3_bind_double"] = wasmExports2["sqlite3_bind_double"];
|
|
8949
|
+
_sqlite3_bind_int = Module["_sqlite3_bind_int"] = wasmExports2["sqlite3_bind_int"];
|
|
8950
|
+
_sqlite3_bind_int64 = Module["_sqlite3_bind_int64"] = wasmExports2["sqlite3_bind_int64"];
|
|
8951
|
+
_sqlite3_bind_null = Module["_sqlite3_bind_null"] = wasmExports2["sqlite3_bind_null"];
|
|
8952
|
+
_sqlite3_bind_pointer = Module["_sqlite3_bind_pointer"] = wasmExports2["sqlite3_bind_pointer"];
|
|
8953
|
+
_sqlite3_bind_text = Module["_sqlite3_bind_text"] = wasmExports2["sqlite3_bind_text"];
|
|
8954
|
+
_sqlite3_bind_parameter_count = Module["_sqlite3_bind_parameter_count"] = wasmExports2["sqlite3_bind_parameter_count"];
|
|
8955
|
+
_sqlite3_bind_parameter_name = Module["_sqlite3_bind_parameter_name"] = wasmExports2["sqlite3_bind_parameter_name"];
|
|
8956
|
+
_sqlite3_bind_parameter_index = Module["_sqlite3_bind_parameter_index"] = wasmExports2["sqlite3_bind_parameter_index"];
|
|
8957
|
+
_sqlite3_db_handle = Module["_sqlite3_db_handle"] = wasmExports2["sqlite3_db_handle"];
|
|
8958
|
+
_sqlite3_stmt_readonly = Module["_sqlite3_stmt_readonly"] = wasmExports2["sqlite3_stmt_readonly"];
|
|
8959
|
+
_sqlite3_stmt_isexplain = Module["_sqlite3_stmt_isexplain"] = wasmExports2["sqlite3_stmt_isexplain"];
|
|
8960
|
+
_sqlite3_stmt_explain = Module["_sqlite3_stmt_explain"] = wasmExports2["sqlite3_stmt_explain"];
|
|
8961
|
+
_sqlite3_stmt_busy = Module["_sqlite3_stmt_busy"] = wasmExports2["sqlite3_stmt_busy"];
|
|
8962
|
+
_sqlite3_stmt_status = Module["_sqlite3_stmt_status"] = wasmExports2["sqlite3_stmt_status"];
|
|
8963
|
+
_sqlite3_sql = Module["_sqlite3_sql"] = wasmExports2["sqlite3_sql"];
|
|
8964
|
+
_sqlite3_expanded_sql = Module["_sqlite3_expanded_sql"] = wasmExports2["sqlite3_expanded_sql"];
|
|
8965
|
+
_sqlite3_preupdate_old = Module["_sqlite3_preupdate_old"] = wasmExports2["sqlite3_preupdate_old"];
|
|
8966
|
+
_sqlite3_preupdate_count = Module["_sqlite3_preupdate_count"] = wasmExports2["sqlite3_preupdate_count"];
|
|
8967
|
+
_sqlite3_preupdate_depth = Module["_sqlite3_preupdate_depth"] = wasmExports2["sqlite3_preupdate_depth"];
|
|
8968
|
+
_sqlite3_preupdate_blobwrite = Module["_sqlite3_preupdate_blobwrite"] = wasmExports2["sqlite3_preupdate_blobwrite"];
|
|
8969
|
+
_sqlite3_preupdate_new = Module["_sqlite3_preupdate_new"] = wasmExports2["sqlite3_preupdate_new"];
|
|
8970
|
+
_sqlite3_value_numeric_type = Module["_sqlite3_value_numeric_type"] = wasmExports2["sqlite3_value_numeric_type"];
|
|
8971
|
+
_sqlite3_set_authorizer = Module["_sqlite3_set_authorizer"] = wasmExports2["sqlite3_set_authorizer"];
|
|
8972
|
+
_sqlite3_strglob = Module["_sqlite3_strglob"] = wasmExports2["sqlite3_strglob"];
|
|
8973
|
+
_sqlite3_strlike = Module["_sqlite3_strlike"] = wasmExports2["sqlite3_strlike"];
|
|
8974
|
+
_sqlite3_auto_extension = Module["_sqlite3_auto_extension"] = wasmExports2["sqlite3_auto_extension"];
|
|
8975
|
+
_sqlite3_cancel_auto_extension = Module["_sqlite3_cancel_auto_extension"] = wasmExports2["sqlite3_cancel_auto_extension"];
|
|
8976
|
+
_sqlite3_reset_auto_extension = Module["_sqlite3_reset_auto_extension"] = wasmExports2["sqlite3_reset_auto_extension"];
|
|
8977
|
+
_sqlite3_prepare_v3 = Module["_sqlite3_prepare_v3"] = wasmExports2["sqlite3_prepare_v3"];
|
|
8978
|
+
_sqlite3_create_module = Module["_sqlite3_create_module"] = wasmExports2["sqlite3_create_module"];
|
|
8979
|
+
_sqlite3_create_module_v2 = Module["_sqlite3_create_module_v2"] = wasmExports2["sqlite3_create_module_v2"];
|
|
8980
|
+
_sqlite3_drop_modules = Module["_sqlite3_drop_modules"] = wasmExports2["sqlite3_drop_modules"];
|
|
8981
|
+
_sqlite3_declare_vtab = Module["_sqlite3_declare_vtab"] = wasmExports2["sqlite3_declare_vtab"];
|
|
8982
|
+
_sqlite3_vtab_on_conflict = Module["_sqlite3_vtab_on_conflict"] = wasmExports2["sqlite3_vtab_on_conflict"];
|
|
8983
|
+
_sqlite3_vtab_collation = Module["_sqlite3_vtab_collation"] = wasmExports2["sqlite3_vtab_collation"];
|
|
8984
|
+
_sqlite3_vtab_in = Module["_sqlite3_vtab_in"] = wasmExports2["sqlite3_vtab_in"];
|
|
8985
|
+
_sqlite3_vtab_rhs_value = Module["_sqlite3_vtab_rhs_value"] = wasmExports2["sqlite3_vtab_rhs_value"];
|
|
8986
|
+
_sqlite3_vtab_distinct = Module["_sqlite3_vtab_distinct"] = wasmExports2["sqlite3_vtab_distinct"];
|
|
8987
|
+
_sqlite3_keyword_name = Module["_sqlite3_keyword_name"] = wasmExports2["sqlite3_keyword_name"];
|
|
8988
|
+
_sqlite3_keyword_count = Module["_sqlite3_keyword_count"] = wasmExports2["sqlite3_keyword_count"];
|
|
8989
|
+
_sqlite3_keyword_check = Module["_sqlite3_keyword_check"] = wasmExports2["sqlite3_keyword_check"];
|
|
8990
|
+
_sqlite3_complete = Module["_sqlite3_complete"] = wasmExports2["sqlite3_complete"];
|
|
8991
|
+
_sqlite3_libversion = Module["_sqlite3_libversion"] = wasmExports2["sqlite3_libversion"];
|
|
8992
|
+
_sqlite3_libversion_number = Module["_sqlite3_libversion_number"] = wasmExports2["sqlite3_libversion_number"];
|
|
8993
|
+
_sqlite3_shutdown = Module["_sqlite3_shutdown"] = wasmExports2["sqlite3_shutdown"];
|
|
8994
|
+
_sqlite3_last_insert_rowid = Module["_sqlite3_last_insert_rowid"] = wasmExports2["sqlite3_last_insert_rowid"];
|
|
8995
|
+
_sqlite3_set_last_insert_rowid = Module["_sqlite3_set_last_insert_rowid"] = wasmExports2["sqlite3_set_last_insert_rowid"];
|
|
8996
|
+
_sqlite3_changes64 = Module["_sqlite3_changes64"] = wasmExports2["sqlite3_changes64"];
|
|
8997
|
+
_sqlite3_changes = Module["_sqlite3_changes"] = wasmExports2["sqlite3_changes"];
|
|
8998
|
+
_sqlite3_total_changes64 = Module["_sqlite3_total_changes64"] = wasmExports2["sqlite3_total_changes64"];
|
|
8999
|
+
_sqlite3_total_changes = Module["_sqlite3_total_changes"] = wasmExports2["sqlite3_total_changes"];
|
|
9000
|
+
_sqlite3_txn_state = Module["_sqlite3_txn_state"] = wasmExports2["sqlite3_txn_state"];
|
|
9001
|
+
_sqlite3_close_v2 = Module["_sqlite3_close_v2"] = wasmExports2["sqlite3_close_v2"];
|
|
9002
|
+
_sqlite3_busy_handler = Module["_sqlite3_busy_handler"] = wasmExports2["sqlite3_busy_handler"];
|
|
9003
|
+
_sqlite3_progress_handler = Module["_sqlite3_progress_handler"] = wasmExports2["sqlite3_progress_handler"];
|
|
9004
|
+
_sqlite3_busy_timeout = Module["_sqlite3_busy_timeout"] = wasmExports2["sqlite3_busy_timeout"];
|
|
9005
|
+
_sqlite3_interrupt = Module["_sqlite3_interrupt"] = wasmExports2["sqlite3_interrupt"];
|
|
9006
|
+
_sqlite3_is_interrupted = Module["_sqlite3_is_interrupted"] = wasmExports2["sqlite3_is_interrupted"];
|
|
9007
|
+
_sqlite3_create_function = Module["_sqlite3_create_function"] = wasmExports2["sqlite3_create_function"];
|
|
9008
|
+
_sqlite3_create_function_v2 = Module["_sqlite3_create_function_v2"] = wasmExports2["sqlite3_create_function_v2"];
|
|
9009
|
+
_sqlite3_create_window_function = Module["_sqlite3_create_window_function"] = wasmExports2["sqlite3_create_window_function"];
|
|
9010
|
+
_sqlite3_overload_function = Module["_sqlite3_overload_function"] = wasmExports2["sqlite3_overload_function"];
|
|
9011
|
+
_sqlite3_trace_v2 = Module["_sqlite3_trace_v2"] = wasmExports2["sqlite3_trace_v2"];
|
|
9012
|
+
_sqlite3_commit_hook = Module["_sqlite3_commit_hook"] = wasmExports2["sqlite3_commit_hook"];
|
|
9013
|
+
_sqlite3_update_hook = Module["_sqlite3_update_hook"] = wasmExports2["sqlite3_update_hook"];
|
|
9014
|
+
_sqlite3_rollback_hook = Module["_sqlite3_rollback_hook"] = wasmExports2["sqlite3_rollback_hook"];
|
|
9015
|
+
_sqlite3_preupdate_hook = Module["_sqlite3_preupdate_hook"] = wasmExports2["sqlite3_preupdate_hook"];
|
|
9016
|
+
_sqlite3_set_errmsg = Module["_sqlite3_set_errmsg"] = wasmExports2["sqlite3_set_errmsg"];
|
|
9017
|
+
_sqlite3_error_offset = Module["_sqlite3_error_offset"] = wasmExports2["sqlite3_error_offset"];
|
|
9018
|
+
_sqlite3_errcode = Module["_sqlite3_errcode"] = wasmExports2["sqlite3_errcode"];
|
|
9019
|
+
_sqlite3_extended_errcode = Module["_sqlite3_extended_errcode"] = wasmExports2["sqlite3_extended_errcode"];
|
|
9020
|
+
_sqlite3_errstr = Module["_sqlite3_errstr"] = wasmExports2["sqlite3_errstr"];
|
|
9021
|
+
_sqlite3_limit = Module["_sqlite3_limit"] = wasmExports2["sqlite3_limit"];
|
|
9022
|
+
_sqlite3_open = Module["_sqlite3_open"] = wasmExports2["sqlite3_open"];
|
|
9023
|
+
_sqlite3_open_v2 = Module["_sqlite3_open_v2"] = wasmExports2["sqlite3_open_v2"];
|
|
9024
|
+
_sqlite3_create_collation = Module["_sqlite3_create_collation"] = wasmExports2["sqlite3_create_collation"];
|
|
9025
|
+
_sqlite3_create_collation_v2 = Module["_sqlite3_create_collation_v2"] = wasmExports2["sqlite3_create_collation_v2"];
|
|
9026
|
+
_sqlite3_collation_needed = Module["_sqlite3_collation_needed"] = wasmExports2["sqlite3_collation_needed"];
|
|
9027
|
+
_sqlite3_get_autocommit = Module["_sqlite3_get_autocommit"] = wasmExports2["sqlite3_get_autocommit"];
|
|
9028
|
+
_sqlite3_table_column_metadata = Module["_sqlite3_table_column_metadata"] = wasmExports2["sqlite3_table_column_metadata"];
|
|
9029
|
+
_sqlite3_extended_result_codes = Module["_sqlite3_extended_result_codes"] = wasmExports2["sqlite3_extended_result_codes"];
|
|
9030
|
+
_sqlite3_uri_key = Module["_sqlite3_uri_key"] = wasmExports2["sqlite3_uri_key"];
|
|
9031
|
+
_sqlite3_uri_int64 = Module["_sqlite3_uri_int64"] = wasmExports2["sqlite3_uri_int64"];
|
|
9032
|
+
_sqlite3_db_name = Module["_sqlite3_db_name"] = wasmExports2["sqlite3_db_name"];
|
|
9033
|
+
_sqlite3_db_filename = Module["_sqlite3_db_filename"] = wasmExports2["sqlite3_db_filename"];
|
|
9034
|
+
_sqlite3_db_readonly = Module["_sqlite3_db_readonly"] = wasmExports2["sqlite3_db_readonly"];
|
|
9035
|
+
_sqlite3_compileoption_used = Module["_sqlite3_compileoption_used"] = wasmExports2["sqlite3_compileoption_used"];
|
|
9036
|
+
_sqlite3_compileoption_get = Module["_sqlite3_compileoption_get"] = wasmExports2["sqlite3_compileoption_get"];
|
|
9037
|
+
_sqlite3session_diff = Module["_sqlite3session_diff"] = wasmExports2["sqlite3session_diff"];
|
|
9038
|
+
_sqlite3session_attach = Module["_sqlite3session_attach"] = wasmExports2["sqlite3session_attach"];
|
|
9039
|
+
_sqlite3session_create = Module["_sqlite3session_create"] = wasmExports2["sqlite3session_create"];
|
|
9040
|
+
_sqlite3session_delete = Module["_sqlite3session_delete"] = wasmExports2["sqlite3session_delete"];
|
|
9041
|
+
_sqlite3session_table_filter = Module["_sqlite3session_table_filter"] = wasmExports2["sqlite3session_table_filter"];
|
|
9042
|
+
_sqlite3session_changeset = Module["_sqlite3session_changeset"] = wasmExports2["sqlite3session_changeset"];
|
|
9043
|
+
_sqlite3session_changeset_strm = Module["_sqlite3session_changeset_strm"] = wasmExports2["sqlite3session_changeset_strm"];
|
|
9044
|
+
_sqlite3session_patchset_strm = Module["_sqlite3session_patchset_strm"] = wasmExports2["sqlite3session_patchset_strm"];
|
|
9045
|
+
_sqlite3session_patchset = Module["_sqlite3session_patchset"] = wasmExports2["sqlite3session_patchset"];
|
|
9046
|
+
_sqlite3session_enable = Module["_sqlite3session_enable"] = wasmExports2["sqlite3session_enable"];
|
|
9047
|
+
_sqlite3session_indirect = Module["_sqlite3session_indirect"] = wasmExports2["sqlite3session_indirect"];
|
|
9048
|
+
_sqlite3session_isempty = Module["_sqlite3session_isempty"] = wasmExports2["sqlite3session_isempty"];
|
|
9049
|
+
_sqlite3session_memory_used = Module["_sqlite3session_memory_used"] = wasmExports2["sqlite3session_memory_used"];
|
|
9050
|
+
_sqlite3session_object_config = Module["_sqlite3session_object_config"] = wasmExports2["sqlite3session_object_config"];
|
|
9051
|
+
_sqlite3session_changeset_size = Module["_sqlite3session_changeset_size"] = wasmExports2["sqlite3session_changeset_size"];
|
|
9052
|
+
_sqlite3changeset_start = Module["_sqlite3changeset_start"] = wasmExports2["sqlite3changeset_start"];
|
|
9053
|
+
_sqlite3changeset_start_v2 = Module["_sqlite3changeset_start_v2"] = wasmExports2["sqlite3changeset_start_v2"];
|
|
9054
|
+
_sqlite3changeset_start_strm = Module["_sqlite3changeset_start_strm"] = wasmExports2["sqlite3changeset_start_strm"];
|
|
9055
|
+
_sqlite3changeset_start_v2_strm = Module["_sqlite3changeset_start_v2_strm"] = wasmExports2["sqlite3changeset_start_v2_strm"];
|
|
9056
|
+
_sqlite3changeset_next = Module["_sqlite3changeset_next"] = wasmExports2["sqlite3changeset_next"];
|
|
9057
|
+
_sqlite3changeset_op = Module["_sqlite3changeset_op"] = wasmExports2["sqlite3changeset_op"];
|
|
9058
|
+
_sqlite3changeset_pk = Module["_sqlite3changeset_pk"] = wasmExports2["sqlite3changeset_pk"];
|
|
9059
|
+
_sqlite3changeset_old = Module["_sqlite3changeset_old"] = wasmExports2["sqlite3changeset_old"];
|
|
9060
|
+
_sqlite3changeset_new = Module["_sqlite3changeset_new"] = wasmExports2["sqlite3changeset_new"];
|
|
9061
|
+
_sqlite3changeset_conflict = Module["_sqlite3changeset_conflict"] = wasmExports2["sqlite3changeset_conflict"];
|
|
9062
|
+
_sqlite3changeset_fk_conflicts = Module["_sqlite3changeset_fk_conflicts"] = wasmExports2["sqlite3changeset_fk_conflicts"];
|
|
9063
|
+
_sqlite3changeset_finalize = Module["_sqlite3changeset_finalize"] = wasmExports2["sqlite3changeset_finalize"];
|
|
9064
|
+
_sqlite3changeset_invert = Module["_sqlite3changeset_invert"] = wasmExports2["sqlite3changeset_invert"];
|
|
9065
|
+
_sqlite3changeset_invert_strm = Module["_sqlite3changeset_invert_strm"] = wasmExports2["sqlite3changeset_invert_strm"];
|
|
9066
|
+
_sqlite3changeset_apply_v2 = Module["_sqlite3changeset_apply_v2"] = wasmExports2["sqlite3changeset_apply_v2"];
|
|
9067
|
+
_sqlite3changeset_apply_v3 = Module["_sqlite3changeset_apply_v3"] = wasmExports2["sqlite3changeset_apply_v3"];
|
|
9068
|
+
_sqlite3changeset_apply = Module["_sqlite3changeset_apply"] = wasmExports2["sqlite3changeset_apply"];
|
|
9069
|
+
_sqlite3changeset_apply_v3_strm = Module["_sqlite3changeset_apply_v3_strm"] = wasmExports2["sqlite3changeset_apply_v3_strm"];
|
|
9070
|
+
_sqlite3changeset_apply_v2_strm = Module["_sqlite3changeset_apply_v2_strm"] = wasmExports2["sqlite3changeset_apply_v2_strm"];
|
|
9071
|
+
_sqlite3changeset_apply_strm = Module["_sqlite3changeset_apply_strm"] = wasmExports2["sqlite3changeset_apply_strm"];
|
|
9072
|
+
_sqlite3changegroup_new = Module["_sqlite3changegroup_new"] = wasmExports2["sqlite3changegroup_new"];
|
|
9073
|
+
_sqlite3changegroup_add = Module["_sqlite3changegroup_add"] = wasmExports2["sqlite3changegroup_add"];
|
|
9074
|
+
_sqlite3changegroup_output = Module["_sqlite3changegroup_output"] = wasmExports2["sqlite3changegroup_output"];
|
|
9075
|
+
_sqlite3changegroup_add_strm = Module["_sqlite3changegroup_add_strm"] = wasmExports2["sqlite3changegroup_add_strm"];
|
|
9076
|
+
_sqlite3changegroup_output_strm = Module["_sqlite3changegroup_output_strm"] = wasmExports2["sqlite3changegroup_output_strm"];
|
|
9077
|
+
_sqlite3changegroup_delete = Module["_sqlite3changegroup_delete"] = wasmExports2["sqlite3changegroup_delete"];
|
|
9078
|
+
_sqlite3changeset_concat = Module["_sqlite3changeset_concat"] = wasmExports2["sqlite3changeset_concat"];
|
|
9079
|
+
_sqlite3changeset_concat_strm = Module["_sqlite3changeset_concat_strm"] = wasmExports2["sqlite3changeset_concat_strm"];
|
|
9080
|
+
_sqlite3session_config = Module["_sqlite3session_config"] = wasmExports2["sqlite3session_config"];
|
|
9081
|
+
_sqlite3_sourceid = Module["_sqlite3_sourceid"] = wasmExports2["sqlite3_sourceid"];
|
|
9082
|
+
_sqlite3__wasm_pstack_ptr = Module["_sqlite3__wasm_pstack_ptr"] = wasmExports2["sqlite3__wasm_pstack_ptr"];
|
|
9083
|
+
_sqlite3__wasm_pstack_restore = Module["_sqlite3__wasm_pstack_restore"] = wasmExports2["sqlite3__wasm_pstack_restore"];
|
|
9084
|
+
_sqlite3__wasm_pstack_alloc = Module["_sqlite3__wasm_pstack_alloc"] = wasmExports2["sqlite3__wasm_pstack_alloc"];
|
|
9085
|
+
_sqlite3__wasm_pstack_remaining = Module["_sqlite3__wasm_pstack_remaining"] = wasmExports2["sqlite3__wasm_pstack_remaining"];
|
|
9086
|
+
_sqlite3__wasm_pstack_quota = Module["_sqlite3__wasm_pstack_quota"] = wasmExports2["sqlite3__wasm_pstack_quota"];
|
|
9087
|
+
_sqlite3__wasm_test_struct = Module["_sqlite3__wasm_test_struct"] = wasmExports2["sqlite3__wasm_test_struct"];
|
|
9088
|
+
_sqlite3__wasm_enum_json = Module["_sqlite3__wasm_enum_json"] = wasmExports2["sqlite3__wasm_enum_json"];
|
|
9089
|
+
_sqlite3__wasm_vfs_unlink = Module["_sqlite3__wasm_vfs_unlink"] = wasmExports2["sqlite3__wasm_vfs_unlink"];
|
|
9090
|
+
_sqlite3__wasm_db_vfs = Module["_sqlite3__wasm_db_vfs"] = wasmExports2["sqlite3__wasm_db_vfs"];
|
|
9091
|
+
_sqlite3__wasm_db_reset = Module["_sqlite3__wasm_db_reset"] = wasmExports2["sqlite3__wasm_db_reset"];
|
|
9092
|
+
_sqlite3__wasm_db_export_chunked = Module["_sqlite3__wasm_db_export_chunked"] = wasmExports2["sqlite3__wasm_db_export_chunked"];
|
|
9093
|
+
_sqlite3__wasm_db_serialize = Module["_sqlite3__wasm_db_serialize"] = wasmExports2["sqlite3__wasm_db_serialize"];
|
|
9094
|
+
_sqlite3__wasm_vfs_create_file = Module["_sqlite3__wasm_vfs_create_file"] = wasmExports2["sqlite3__wasm_vfs_create_file"];
|
|
9095
|
+
_sqlite3__wasm_posix_create_file = Module["_sqlite3__wasm_posix_create_file"] = wasmExports2["sqlite3__wasm_posix_create_file"];
|
|
9096
|
+
_sqlite3__wasm_kvvfsMakeKeyOnPstack = Module["_sqlite3__wasm_kvvfsMakeKeyOnPstack"] = wasmExports2["sqlite3__wasm_kvvfsMakeKeyOnPstack"];
|
|
9097
|
+
_sqlite3__wasm_kvvfs_methods = Module["_sqlite3__wasm_kvvfs_methods"] = wasmExports2["sqlite3__wasm_kvvfs_methods"];
|
|
9098
|
+
_sqlite3__wasm_vtab_config = Module["_sqlite3__wasm_vtab_config"] = wasmExports2["sqlite3__wasm_vtab_config"];
|
|
9099
|
+
_sqlite3__wasm_db_config_ip = Module["_sqlite3__wasm_db_config_ip"] = wasmExports2["sqlite3__wasm_db_config_ip"];
|
|
9100
|
+
_sqlite3__wasm_db_config_pii = Module["_sqlite3__wasm_db_config_pii"] = wasmExports2["sqlite3__wasm_db_config_pii"];
|
|
9101
|
+
_sqlite3__wasm_db_config_s = Module["_sqlite3__wasm_db_config_s"] = wasmExports2["sqlite3__wasm_db_config_s"];
|
|
9102
|
+
_sqlite3__wasm_config_i = Module["_sqlite3__wasm_config_i"] = wasmExports2["sqlite3__wasm_config_i"];
|
|
9103
|
+
_sqlite3__wasm_config_ii = Module["_sqlite3__wasm_config_ii"] = wasmExports2["sqlite3__wasm_config_ii"];
|
|
9104
|
+
_sqlite3__wasm_config_j = Module["_sqlite3__wasm_config_j"] = wasmExports2["sqlite3__wasm_config_j"];
|
|
9105
|
+
_sqlite3__wasm_qfmt_token = Module["_sqlite3__wasm_qfmt_token"] = wasmExports2["sqlite3__wasm_qfmt_token"];
|
|
9106
|
+
_sqlite3__wasm_init_wasmfs = Module["_sqlite3__wasm_init_wasmfs"] = wasmExports2["sqlite3__wasm_init_wasmfs"];
|
|
9107
|
+
_sqlite3__wasm_test_intptr = Module["_sqlite3__wasm_test_intptr"] = wasmExports2["sqlite3__wasm_test_intptr"];
|
|
9108
|
+
_sqlite3__wasm_test_voidptr = Module["_sqlite3__wasm_test_voidptr"] = wasmExports2["sqlite3__wasm_test_voidptr"];
|
|
9109
|
+
_sqlite3__wasm_test_int64_max = Module["_sqlite3__wasm_test_int64_max"] = wasmExports2["sqlite3__wasm_test_int64_max"];
|
|
9110
|
+
_sqlite3__wasm_test_int64_min = Module["_sqlite3__wasm_test_int64_min"] = wasmExports2["sqlite3__wasm_test_int64_min"];
|
|
9111
|
+
_sqlite3__wasm_test_int64_times2 = Module["_sqlite3__wasm_test_int64_times2"] = wasmExports2["sqlite3__wasm_test_int64_times2"];
|
|
9112
|
+
_sqlite3__wasm_test_int64_minmax = Module["_sqlite3__wasm_test_int64_minmax"] = wasmExports2["sqlite3__wasm_test_int64_minmax"];
|
|
9113
|
+
_sqlite3__wasm_test_int64ptr = Module["_sqlite3__wasm_test_int64ptr"] = wasmExports2["sqlite3__wasm_test_int64ptr"];
|
|
9114
|
+
_sqlite3__wasm_test_stack_overflow = Module["_sqlite3__wasm_test_stack_overflow"] = wasmExports2["sqlite3__wasm_test_stack_overflow"];
|
|
9115
|
+
_sqlite3__wasm_test_str_hello = Module["_sqlite3__wasm_test_str_hello"] = wasmExports2["sqlite3__wasm_test_str_hello"];
|
|
9116
|
+
_sqlite3__wasm_SQLTester_strglob = Module["_sqlite3__wasm_SQLTester_strglob"] = wasmExports2["sqlite3__wasm_SQLTester_strglob"];
|
|
9117
|
+
_malloc = Module["_malloc"] = wasmExports2["malloc"];
|
|
9118
|
+
_free = Module["_free"] = wasmExports2["free"];
|
|
9119
|
+
_realloc = Module["_realloc"] = wasmExports2["realloc"];
|
|
9475
9120
|
_emscripten_builtin_memalign = wasmExports2["emscripten_builtin_memalign"];
|
|
9476
9121
|
__emscripten_stack_restore = wasmExports2["_emscripten_stack_restore"];
|
|
9477
9122
|
__emscripten_stack_alloc = wasmExports2["_emscripten_stack_alloc"];
|
|
9478
9123
|
_emscripten_stack_get_current = wasmExports2["emscripten_stack_get_current"];
|
|
9124
|
+
__indirect_function_table = wasmExports2["__indirect_function_table"];
|
|
9479
9125
|
}
|
|
9480
9126
|
var wasmImports = {
|
|
9481
9127
|
__syscall_chmod: ___syscall_chmod,
|
|
@@ -9515,7 +9161,6 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
9515
9161
|
fd_write: _fd_write,
|
|
9516
9162
|
memory: wasmMemory
|
|
9517
9163
|
};
|
|
9518
|
-
var wasmExports = await createWasm();
|
|
9519
9164
|
function run() {
|
|
9520
9165
|
if (runDependencies > 0) {
|
|
9521
9166
|
dependenciesFulfilled = run;
|
|
@@ -9544,16 +9189,8 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
9544
9189
|
doRun();
|
|
9545
9190
|
}
|
|
9546
9191
|
}
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
if (typeof Module["preInit"] == "function")
|
|
9550
|
-
Module["preInit"] = [Module["preInit"]];
|
|
9551
|
-
while (Module["preInit"].length > 0) {
|
|
9552
|
-
Module["preInit"].shift()();
|
|
9553
|
-
}
|
|
9554
|
-
}
|
|
9555
|
-
}
|
|
9556
|
-
preInit();
|
|
9192
|
+
var wasmExports;
|
|
9193
|
+
wasmExports = await createWasm();
|
|
9557
9194
|
run();
|
|
9558
9195
|
Module.runSQLite3PostLoadInit = function(sqlite3InitScriptInfo, EmscriptenModule, sqlite3IsUnderTest) {
|
|
9559
9196
|
"use strict";
|
|
@@ -9758,9 +9395,8 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
9758
9395
|
srcTypedArray = new Uint8Array(srcTypedArray);
|
|
9759
9396
|
}
|
|
9760
9397
|
affirmBindableTypedArray(srcTypedArray);
|
|
9761
|
-
const heap = wasm.heapForSize(srcTypedArray.constructor);
|
|
9762
9398
|
const pRet = wasm.alloc(srcTypedArray.byteLength || 1);
|
|
9763
|
-
|
|
9399
|
+
wasm.heapForSize(srcTypedArray.constructor).set(srcTypedArray.byteLength ? srcTypedArray : [0], Number(pRet));
|
|
9764
9400
|
return pRet;
|
|
9765
9401
|
};
|
|
9766
9402
|
{
|
|
@@ -13874,15 +13510,15 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
13874
13510
|
});
|
|
13875
13511
|
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite32) {
|
|
13876
13512
|
sqlite32.version = {
|
|
13877
|
-
libVersion: "3.51.
|
|
13878
|
-
libVersionNumber:
|
|
13879
|
-
sourceId: "2025-11-
|
|
13880
|
-
downloadVersion:
|
|
13513
|
+
libVersion: "3.51.1",
|
|
13514
|
+
libVersionNumber: 3051001,
|
|
13515
|
+
sourceId: "2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88",
|
|
13516
|
+
downloadVersion: 3510100,
|
|
13881
13517
|
scm: {
|
|
13882
|
-
"sha3-256": "
|
|
13883
|
-
branch: "
|
|
13884
|
-
tags: "release
|
|
13885
|
-
datetime: "2025-11-
|
|
13518
|
+
"sha3-256": "281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88",
|
|
13519
|
+
branch: "branch-3.51",
|
|
13520
|
+
tags: "release version-3.51.1",
|
|
13521
|
+
datetime: "2025-11-28T17:28:25.933Z"
|
|
13886
13522
|
}
|
|
13887
13523
|
};
|
|
13888
13524
|
});
|
|
@@ -17120,320 +16756,712 @@ async function sqlite3InitModule(moduleArg = {}) {
|
|
|
17120
16756
|
"it has an async FileSystemSyncAccessHandle.close() method."
|
|
17121
16757
|
);
|
|
17122
16758
|
}
|
|
17123
|
-
return true;
|
|
17124
|
-
};
|
|
17125
|
-
sqlite32.installOpfsSAHPoolVfs = async function(options = /* @__PURE__ */ Object.create(null)) {
|
|
17126
|
-
options = Object.assign(
|
|
17127
|
-
/* @__PURE__ */ Object.create(null),
|
|
17128
|
-
optionDefaults,
|
|
17129
|
-
options || {}
|
|
17130
|
-
);
|
|
17131
|
-
const vfsName = options.name;
|
|
17132
|
-
if (options.$testThrowPhase1) {
|
|
17133
|
-
throw options.$testThrowPhase1;
|
|
16759
|
+
return true;
|
|
16760
|
+
};
|
|
16761
|
+
sqlite32.installOpfsSAHPoolVfs = async function(options = /* @__PURE__ */ Object.create(null)) {
|
|
16762
|
+
options = Object.assign(
|
|
16763
|
+
/* @__PURE__ */ Object.create(null),
|
|
16764
|
+
optionDefaults,
|
|
16765
|
+
options || {}
|
|
16766
|
+
);
|
|
16767
|
+
const vfsName = options.name;
|
|
16768
|
+
if (options.$testThrowPhase1) {
|
|
16769
|
+
throw options.$testThrowPhase1;
|
|
16770
|
+
}
|
|
16771
|
+
if (initPromises[vfsName]) {
|
|
16772
|
+
try {
|
|
16773
|
+
const p = await initPromises[vfsName];
|
|
16774
|
+
return p;
|
|
16775
|
+
} catch (e) {
|
|
16776
|
+
if (options.forceReinitIfPreviouslyFailed) {
|
|
16777
|
+
delete initPromises[vfsName];
|
|
16778
|
+
} else {
|
|
16779
|
+
throw e;
|
|
16780
|
+
}
|
|
16781
|
+
}
|
|
16782
|
+
}
|
|
16783
|
+
if (!globalThis.FileSystemHandle || !globalThis.FileSystemDirectoryHandle || !globalThis.FileSystemFileHandle || !globalThis.FileSystemFileHandle.prototype.createSyncAccessHandle || !navigator?.storage?.getDirectory) {
|
|
16784
|
+
return initPromises[vfsName] = Promise.reject(
|
|
16785
|
+
new Error("Missing required OPFS APIs.")
|
|
16786
|
+
);
|
|
16787
|
+
}
|
|
16788
|
+
return initPromises[vfsName] = apiVersionCheck().then(async function() {
|
|
16789
|
+
if (options.$testThrowPhase2) {
|
|
16790
|
+
throw options.$testThrowPhase2;
|
|
16791
|
+
}
|
|
16792
|
+
const thePool = new OpfsSAHPool(options);
|
|
16793
|
+
return thePool.isReady.then(async () => {
|
|
16794
|
+
const poolUtil2 = new OpfsSAHPoolUtil(thePool);
|
|
16795
|
+
if (sqlite32.oo1) {
|
|
16796
|
+
const oo1 = sqlite32.oo1;
|
|
16797
|
+
const theVfs = thePool.getVfs();
|
|
16798
|
+
const OpfsSAHPoolDb = function(...args) {
|
|
16799
|
+
const opt = oo1.DB.dbCtorHelper.normalizeArgs(...args);
|
|
16800
|
+
opt.vfs = theVfs.$zName;
|
|
16801
|
+
oo1.DB.dbCtorHelper.call(this, opt);
|
|
16802
|
+
};
|
|
16803
|
+
OpfsSAHPoolDb.prototype = Object.create(oo1.DB.prototype);
|
|
16804
|
+
poolUtil2.OpfsSAHPoolDb = OpfsSAHPoolDb;
|
|
16805
|
+
}
|
|
16806
|
+
thePool.log("VFS initialized.");
|
|
16807
|
+
return poolUtil2;
|
|
16808
|
+
}).catch(async (e) => {
|
|
16809
|
+
await thePool.removeVfs().catch(() => {
|
|
16810
|
+
});
|
|
16811
|
+
throw e;
|
|
16812
|
+
});
|
|
16813
|
+
}).catch((err2) => {
|
|
16814
|
+
return initPromises[vfsName] = Promise.reject(err2);
|
|
16815
|
+
});
|
|
16816
|
+
};
|
|
16817
|
+
});
|
|
16818
|
+
"use strict";
|
|
16819
|
+
if ("undefined" === typeof EmscriptenModule) {
|
|
16820
|
+
console.warn(
|
|
16821
|
+
"This is not running in the context of Module.runSQLite3PostLoadInit()"
|
|
16822
|
+
);
|
|
16823
|
+
throw new Error(
|
|
16824
|
+
"sqlite3-api-cleanup.js expects to be running in the context of its Emscripten module loader."
|
|
16825
|
+
);
|
|
16826
|
+
}
|
|
16827
|
+
try {
|
|
16828
|
+
const bootstrapConfig = Object.assign(
|
|
16829
|
+
/* @__PURE__ */ Object.create(null),
|
|
16830
|
+
globalThis.sqlite3ApiBootstrap.defaultConfig,
|
|
16831
|
+
globalThis.sqlite3ApiConfig || {},
|
|
16832
|
+
{
|
|
16833
|
+
memory: "undefined" !== typeof wasmMemory ? wasmMemory : EmscriptenModule["wasmMemory"],
|
|
16834
|
+
exports: "undefined" !== typeof wasmExports ? wasmExports : Object.prototype.hasOwnProperty.call(
|
|
16835
|
+
EmscriptenModule,
|
|
16836
|
+
"wasmExports"
|
|
16837
|
+
) ? EmscriptenModule["wasmExports"] : EmscriptenModule["asm"]
|
|
16838
|
+
}
|
|
16839
|
+
);
|
|
16840
|
+
bootstrapConfig.wasmPtrIR = "number" === typeof bootstrapConfig.exports.sqlite3_libversion() ? "i32" : "i64";
|
|
16841
|
+
const sIMS = sqlite3InitScriptInfo;
|
|
16842
|
+
sIMS.debugModule("Bootstrapping lib config", sIMS);
|
|
16843
|
+
const p = globalThis.sqlite3ApiBootstrap(bootstrapConfig);
|
|
16844
|
+
delete globalThis.sqlite3ApiBootstrap;
|
|
16845
|
+
return p;
|
|
16846
|
+
} catch (e) {
|
|
16847
|
+
console.error("sqlite3ApiBootstrap() error:", e);
|
|
16848
|
+
throw e;
|
|
16849
|
+
}
|
|
16850
|
+
throw new Error("Maintenance required: this line should never be reached");
|
|
16851
|
+
};
|
|
16852
|
+
if (runtimeInitialized) {
|
|
16853
|
+
moduleRtn = Module;
|
|
16854
|
+
} else {
|
|
16855
|
+
moduleRtn = new Promise((resolve, reject) => {
|
|
16856
|
+
readyPromiseResolve = resolve;
|
|
16857
|
+
readyPromiseReject = reject;
|
|
16858
|
+
});
|
|
16859
|
+
}
|
|
16860
|
+
return moduleRtn;
|
|
16861
|
+
}
|
|
16862
|
+
var toExportForESM, sqlite3_default;
|
|
16863
|
+
var init_sqlite3 = __esm({
|
|
16864
|
+
"../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.mjs"() {
|
|
16865
|
+
toExportForESM = (function() {
|
|
16866
|
+
const originalInit = sqlite3InitModule;
|
|
16867
|
+
if (!originalInit) {
|
|
16868
|
+
throw new Error(
|
|
16869
|
+
"Expecting globalThis.sqlite3InitModule to be defined by the Emscripten build."
|
|
16870
|
+
);
|
|
16871
|
+
}
|
|
16872
|
+
const sIMS = globalThis.sqlite3InitModuleState = Object.assign(
|
|
16873
|
+
/* @__PURE__ */ Object.create(null),
|
|
16874
|
+
{
|
|
16875
|
+
moduleScript: globalThis?.document?.currentScript,
|
|
16876
|
+
isWorker: "undefined" !== typeof WorkerGlobalScope,
|
|
16877
|
+
location: globalThis.location,
|
|
16878
|
+
urlParams: globalThis?.location?.href ? new URL(globalThis.location.href).searchParams : new URLSearchParams(),
|
|
16879
|
+
wasmFilename: "sqlite3.wasm"
|
|
16880
|
+
}
|
|
16881
|
+
);
|
|
16882
|
+
sIMS.debugModule = sIMS.urlParams.has("sqlite3.debugModule") ? (...args) => console.warn("sqlite3.debugModule:", ...args) : () => {
|
|
16883
|
+
};
|
|
16884
|
+
if (sIMS.urlParams.has("sqlite3.dir")) {
|
|
16885
|
+
sIMS.sqlite3Dir = sIMS.urlParams.get("sqlite3.dir") + "/";
|
|
16886
|
+
} else if (sIMS.moduleScript) {
|
|
16887
|
+
const li = sIMS.moduleScript.src.split("/");
|
|
16888
|
+
li.pop();
|
|
16889
|
+
sIMS.sqlite3Dir = li.join("/") + "/";
|
|
16890
|
+
}
|
|
16891
|
+
const sIM = globalThis.sqlite3InitModule = function ff(...args) {
|
|
16892
|
+
return originalInit(...args).then((EmscriptenModule) => {
|
|
16893
|
+
sIMS.debugModule("sqlite3InitModule() sIMS =", sIMS);
|
|
16894
|
+
sIMS.debugModule(
|
|
16895
|
+
"sqlite3InitModule() EmscriptenModule =",
|
|
16896
|
+
EmscriptenModule
|
|
16897
|
+
);
|
|
16898
|
+
const s = EmscriptenModule.runSQLite3PostLoadInit(
|
|
16899
|
+
sIMS,
|
|
16900
|
+
EmscriptenModule,
|
|
16901
|
+
!!ff.__isUnderTest
|
|
16902
|
+
);
|
|
16903
|
+
sIMS.debugModule("sqlite3InitModule() sqlite3 =", s);
|
|
16904
|
+
return s;
|
|
16905
|
+
}).catch((e) => {
|
|
16906
|
+
console.error("Exception loading sqlite3 module:", e);
|
|
16907
|
+
throw e;
|
|
16908
|
+
});
|
|
16909
|
+
};
|
|
16910
|
+
sIM.ready = originalInit.ready;
|
|
16911
|
+
if (sIMS.moduleScript) {
|
|
16912
|
+
let src2 = sIMS.moduleScript.src.split("/");
|
|
16913
|
+
src2.pop();
|
|
16914
|
+
sIMS.scriptDir = src2.join("/") + "/";
|
|
16915
|
+
}
|
|
16916
|
+
sIMS.debugModule("extern-post-js.c-pp.js sqlite3InitModuleState =", sIMS);
|
|
16917
|
+
return sIM;
|
|
16918
|
+
})();
|
|
16919
|
+
sqlite3InitModule = toExportForESM;
|
|
16920
|
+
sqlite3_default = sqlite3InitModule;
|
|
16921
|
+
}
|
|
16922
|
+
});
|
|
16923
|
+
|
|
16924
|
+
// ../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3-worker1-promiser.mjs
|
|
16925
|
+
var sqlite3_worker1_promiser_default;
|
|
16926
|
+
var init_sqlite3_worker1_promiser = __esm({
|
|
16927
|
+
"../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3-worker1-promiser.mjs"() {
|
|
16928
|
+
"use strict";
|
|
16929
|
+
globalThis.sqlite3Worker1Promiser = function callee(config = callee.defaultConfig) {
|
|
16930
|
+
if (1 === arguments.length && "function" === typeof arguments[0]) {
|
|
16931
|
+
const f = config;
|
|
16932
|
+
config = Object.assign(/* @__PURE__ */ Object.create(null), callee.defaultConfig);
|
|
16933
|
+
config.onready = f;
|
|
16934
|
+
} else {
|
|
16935
|
+
config = Object.assign(/* @__PURE__ */ Object.create(null), callee.defaultConfig, config);
|
|
16936
|
+
}
|
|
16937
|
+
const handlerMap = /* @__PURE__ */ Object.create(null);
|
|
16938
|
+
const noop = function() {
|
|
16939
|
+
};
|
|
16940
|
+
const err = config.onerror || noop;
|
|
16941
|
+
const debug = config.debug || noop;
|
|
16942
|
+
const idTypeMap = config.generateMessageId ? void 0 : /* @__PURE__ */ Object.create(null);
|
|
16943
|
+
const genMsgId = config.generateMessageId || function(msg) {
|
|
16944
|
+
return msg.type + "#" + (idTypeMap[msg.type] = (idTypeMap[msg.type] || 0) + 1);
|
|
16945
|
+
};
|
|
16946
|
+
const toss = (...args) => {
|
|
16947
|
+
throw new Error(args.join(" "));
|
|
16948
|
+
};
|
|
16949
|
+
if (!config.worker) config.worker = callee.defaultConfig.worker;
|
|
16950
|
+
if ("function" === typeof config.worker) config.worker = config.worker();
|
|
16951
|
+
let dbId;
|
|
16952
|
+
let promiserFunc;
|
|
16953
|
+
config.worker.onmessage = function(ev) {
|
|
16954
|
+
ev = ev.data;
|
|
16955
|
+
debug("worker1.onmessage", ev);
|
|
16956
|
+
let msgHandler = handlerMap[ev.messageId];
|
|
16957
|
+
if (!msgHandler) {
|
|
16958
|
+
if (ev && "sqlite3-api" === ev.type && "worker1-ready" === ev.result) {
|
|
16959
|
+
if (config.onready) config.onready(promiserFunc);
|
|
16960
|
+
return;
|
|
16961
|
+
}
|
|
16962
|
+
msgHandler = handlerMap[ev.type];
|
|
16963
|
+
if (msgHandler && msgHandler.onrow) {
|
|
16964
|
+
msgHandler.onrow(ev);
|
|
16965
|
+
return;
|
|
16966
|
+
}
|
|
16967
|
+
if (config.onunhandled) config.onunhandled(arguments[0]);
|
|
16968
|
+
else err("sqlite3Worker1Promiser() unhandled worker message:", ev);
|
|
16969
|
+
return;
|
|
16970
|
+
}
|
|
16971
|
+
delete handlerMap[ev.messageId];
|
|
16972
|
+
switch (ev.type) {
|
|
16973
|
+
case "error":
|
|
16974
|
+
msgHandler.reject(ev);
|
|
16975
|
+
return;
|
|
16976
|
+
case "open":
|
|
16977
|
+
if (!dbId) dbId = ev.dbId;
|
|
16978
|
+
break;
|
|
16979
|
+
case "close":
|
|
16980
|
+
if (ev.dbId === dbId) dbId = void 0;
|
|
16981
|
+
break;
|
|
16982
|
+
default:
|
|
16983
|
+
break;
|
|
16984
|
+
}
|
|
16985
|
+
try {
|
|
16986
|
+
msgHandler.resolve(ev);
|
|
16987
|
+
} catch (e) {
|
|
16988
|
+
msgHandler.reject(e);
|
|
17134
16989
|
}
|
|
17135
|
-
|
|
17136
|
-
|
|
17137
|
-
|
|
17138
|
-
|
|
17139
|
-
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
|
|
17143
|
-
|
|
17144
|
-
|
|
16990
|
+
};
|
|
16991
|
+
return promiserFunc = function() {
|
|
16992
|
+
let msg;
|
|
16993
|
+
if (1 === arguments.length) {
|
|
16994
|
+
msg = arguments[0];
|
|
16995
|
+
} else if (2 === arguments.length) {
|
|
16996
|
+
msg = /* @__PURE__ */ Object.create(null);
|
|
16997
|
+
msg.type = arguments[0];
|
|
16998
|
+
msg.args = arguments[1];
|
|
16999
|
+
msg.dbId = msg.args.dbId;
|
|
17000
|
+
} else {
|
|
17001
|
+
toss("Invalid arguments for sqlite3Worker1Promiser()-created factory.");
|
|
17002
|
+
}
|
|
17003
|
+
if (!msg.dbId && msg.type !== "open") msg.dbId = dbId;
|
|
17004
|
+
msg.messageId = genMsgId(msg);
|
|
17005
|
+
msg.departureTime = performance.now();
|
|
17006
|
+
const proxy = /* @__PURE__ */ Object.create(null);
|
|
17007
|
+
proxy.message = msg;
|
|
17008
|
+
let rowCallbackId;
|
|
17009
|
+
if ("exec" === msg.type && msg.args) {
|
|
17010
|
+
if ("function" === typeof msg.args.callback) {
|
|
17011
|
+
rowCallbackId = msg.messageId + ":row";
|
|
17012
|
+
proxy.onrow = msg.args.callback;
|
|
17013
|
+
msg.args.callback = rowCallbackId;
|
|
17014
|
+
handlerMap[rowCallbackId] = proxy;
|
|
17015
|
+
} else if ("string" === typeof msg.args.callback) {
|
|
17016
|
+
toss(
|
|
17017
|
+
"exec callback may not be a string when using the Promise interface."
|
|
17018
|
+
);
|
|
17145
17019
|
}
|
|
17146
17020
|
}
|
|
17147
|
-
|
|
17148
|
-
|
|
17149
|
-
|
|
17021
|
+
let p = new Promise(function(resolve, reject) {
|
|
17022
|
+
proxy.resolve = resolve;
|
|
17023
|
+
proxy.reject = reject;
|
|
17024
|
+
handlerMap[msg.messageId] = proxy;
|
|
17025
|
+
debug(
|
|
17026
|
+
"Posting",
|
|
17027
|
+
msg.type,
|
|
17028
|
+
"message to Worker dbId=" + (dbId || "default") + ":",
|
|
17029
|
+
msg
|
|
17150
17030
|
);
|
|
17151
|
-
|
|
17152
|
-
return initPromises[vfsName] = apiVersionCheck().then(async function() {
|
|
17153
|
-
if (options.$testThrowPhase2) {
|
|
17154
|
-
throw options.$testThrowPhase2;
|
|
17155
|
-
}
|
|
17156
|
-
const thePool = new OpfsSAHPool(options);
|
|
17157
|
-
return thePool.isReady.then(async () => {
|
|
17158
|
-
const poolUtil2 = new OpfsSAHPoolUtil(thePool);
|
|
17159
|
-
if (sqlite32.oo1) {
|
|
17160
|
-
const oo1 = sqlite32.oo1;
|
|
17161
|
-
const theVfs = thePool.getVfs();
|
|
17162
|
-
const OpfsSAHPoolDb = function(...args) {
|
|
17163
|
-
const opt = oo1.DB.dbCtorHelper.normalizeArgs(...args);
|
|
17164
|
-
opt.vfs = theVfs.$zName;
|
|
17165
|
-
oo1.DB.dbCtorHelper.call(this, opt);
|
|
17166
|
-
};
|
|
17167
|
-
OpfsSAHPoolDb.prototype = Object.create(oo1.DB.prototype);
|
|
17168
|
-
poolUtil2.OpfsSAHPoolDb = OpfsSAHPoolDb;
|
|
17169
|
-
}
|
|
17170
|
-
thePool.log("VFS initialized.");
|
|
17171
|
-
return poolUtil2;
|
|
17172
|
-
}).catch(async (e) => {
|
|
17173
|
-
await thePool.removeVfs().catch(() => {
|
|
17174
|
-
});
|
|
17175
|
-
throw e;
|
|
17176
|
-
});
|
|
17177
|
-
}).catch((err2) => {
|
|
17178
|
-
return initPromises[vfsName] = Promise.reject(err2);
|
|
17031
|
+
config.worker.postMessage(msg);
|
|
17179
17032
|
});
|
|
17033
|
+
if (rowCallbackId) p = p.finally(() => delete handlerMap[rowCallbackId]);
|
|
17034
|
+
return p;
|
|
17180
17035
|
};
|
|
17036
|
+
};
|
|
17037
|
+
globalThis.sqlite3Worker1Promiser.defaultConfig = {
|
|
17038
|
+
worker: function() {
|
|
17039
|
+
return new Worker(new URL("sqlite3-worker1.js", import.meta.url));
|
|
17040
|
+
},
|
|
17041
|
+
onerror: (...args) => console.error("worker1 promiser error", ...args)
|
|
17042
|
+
};
|
|
17043
|
+
globalThis.sqlite3Worker1Promiser.v2 = function callee2(config = callee2.defaultConfig) {
|
|
17044
|
+
let oldFunc;
|
|
17045
|
+
if ("function" == typeof config) {
|
|
17046
|
+
oldFunc = config;
|
|
17047
|
+
config = {};
|
|
17048
|
+
} else if ("function" === typeof config?.onready) {
|
|
17049
|
+
oldFunc = config.onready;
|
|
17050
|
+
delete config.onready;
|
|
17051
|
+
}
|
|
17052
|
+
const promiseProxy = /* @__PURE__ */ Object.create(null);
|
|
17053
|
+
config = Object.assign(config || /* @__PURE__ */ Object.create(null), {
|
|
17054
|
+
onready: async function(func) {
|
|
17055
|
+
try {
|
|
17056
|
+
if (oldFunc) await oldFunc(func);
|
|
17057
|
+
promiseProxy.resolve(func);
|
|
17058
|
+
} catch (e) {
|
|
17059
|
+
promiseProxy.reject(e);
|
|
17060
|
+
}
|
|
17061
|
+
}
|
|
17062
|
+
});
|
|
17063
|
+
const p = new Promise(function(resolve, reject) {
|
|
17064
|
+
promiseProxy.resolve = resolve;
|
|
17065
|
+
promiseProxy.reject = reject;
|
|
17066
|
+
});
|
|
17067
|
+
try {
|
|
17068
|
+
this.original(config);
|
|
17069
|
+
} catch (e) {
|
|
17070
|
+
promiseProxy.reject(e);
|
|
17071
|
+
}
|
|
17072
|
+
return p;
|
|
17073
|
+
}.bind({
|
|
17074
|
+
original: sqlite3Worker1Promiser
|
|
17181
17075
|
});
|
|
17182
|
-
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17076
|
+
globalThis.sqlite3Worker1Promiser.v2.defaultConfig = globalThis.sqlite3Worker1Promiser.defaultConfig;
|
|
17077
|
+
sqlite3_worker1_promiser_default = sqlite3Worker1Promiser.v2;
|
|
17078
|
+
}
|
|
17079
|
+
});
|
|
17080
|
+
|
|
17081
|
+
// ../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/index.mjs
|
|
17082
|
+
var sqlite_wasm_exports = {};
|
|
17083
|
+
__export(sqlite_wasm_exports, {
|
|
17084
|
+
default: () => sqlite_wasm_default,
|
|
17085
|
+
sqlite3Worker1Promiser: () => sqlite3Worker1Promiser2
|
|
17086
|
+
});
|
|
17087
|
+
var sqlite3Worker1Promiser2, sqlite_wasm_default;
|
|
17088
|
+
var init_sqlite_wasm = __esm({
|
|
17089
|
+
"../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build2/node_modules/@sqlite.org/sqlite-wasm/index.mjs"() {
|
|
17090
|
+
init_sqlite3();
|
|
17091
|
+
init_sqlite3_worker1_promiser();
|
|
17092
|
+
sqlite3Worker1Promiser2 = globalThis.sqlite3Worker1Promiser;
|
|
17093
|
+
sqlite_wasm_default = sqlite3_default;
|
|
17094
|
+
}
|
|
17095
|
+
});
|
|
17096
|
+
|
|
17097
|
+
// ../../../../node_modules/.pnpm/@dao-xyz+borsh@6.0.0/node_modules/@dao-xyz/borsh/lib/esm/binary.js
|
|
17098
|
+
var import_float = __toESM(require_float(), 1);
|
|
17099
|
+
var import_utf8 = __toESM(require_utf8(), 1);
|
|
17100
|
+
var allocUnsafeFn = () => {
|
|
17101
|
+
if (globalThis.Buffer) {
|
|
17102
|
+
return globalThis.Buffer.allocUnsafe;
|
|
17103
|
+
}
|
|
17104
|
+
return (len) => new Uint8Array(len);
|
|
17105
|
+
};
|
|
17106
|
+
var allocUnsafe = allocUnsafeFn();
|
|
17107
|
+
var writeStringBufferFnFn = () => {
|
|
17108
|
+
if (globalThis.Buffer) {
|
|
17109
|
+
return (length) => {
|
|
17110
|
+
if (length < 48)
|
|
17111
|
+
return import_utf8.default.write;
|
|
17112
|
+
return (string, buf, offset) => buf.write(string, offset);
|
|
17113
|
+
};
|
|
17114
|
+
}
|
|
17115
|
+
return () => import_utf8.default.write;
|
|
17116
|
+
};
|
|
17117
|
+
var writeStringBufferFn = writeStringBufferFnFn();
|
|
17118
|
+
|
|
17119
|
+
// ../../../../node_modules/.pnpm/@dao-xyz+borsh@6.0.0/node_modules/@dao-xyz/borsh/lib/esm/index.js
|
|
17120
|
+
var _a;
|
|
17121
|
+
var symbolMetadataSymbol = Symbol.metadata ?? Symbol.for("Symbol.metadata");
|
|
17122
|
+
var STAGE3_FINALIZERS_SYMBOL = Symbol.for("@dao-xyz/stage3-finalizers");
|
|
17123
|
+
var metadataFinalizers = (_a = globalThis)[STAGE3_FINALIZERS_SYMBOL] ?? (_a[STAGE3_FINALIZERS_SYMBOL] = []);
|
|
17124
|
+
var metadataValueStore = /* @__PURE__ */ new WeakMap();
|
|
17125
|
+
var runMetadataFinalizers = (ctor, metadata) => {
|
|
17126
|
+
metadataValueStore.set(ctor, metadata);
|
|
17127
|
+
for (const finalizer of metadataFinalizers) {
|
|
17128
|
+
try {
|
|
17129
|
+
finalizer(ctor, metadata);
|
|
17130
|
+
} catch {
|
|
17131
|
+
}
|
|
17132
|
+
}
|
|
17133
|
+
};
|
|
17134
|
+
if (!Symbol.metadata) {
|
|
17135
|
+
Object.defineProperty(Symbol, "metadata", {
|
|
17136
|
+
configurable: true,
|
|
17137
|
+
enumerable: false,
|
|
17138
|
+
writable: true,
|
|
17139
|
+
value: symbolMetadataSymbol
|
|
17140
|
+
});
|
|
17141
|
+
}
|
|
17142
|
+
var REQUIRES_VARIANT_FLAG = Symbol.for("@dao-xyz/borsh:requires-variant");
|
|
17143
|
+
var VARIANT_ALREADY_READ = Symbol.for("@dao-xyz/borsh:variant-read");
|
|
17144
|
+
var STAGE3_GUARD_FLAG = "__borsh_ts_rpc_stage_3_initialized";
|
|
17145
|
+
if (!globalThis[STAGE3_GUARD_FLAG]) {
|
|
17146
|
+
const originalDefineProperty = Object.defineProperty;
|
|
17147
|
+
Object.defineProperty = function(target, propertyKey, attributes) {
|
|
17148
|
+
if (propertyKey === symbolMetadataSymbol && attributes && typeof target === "function" && attributes.value) {
|
|
17149
|
+
runMetadataFinalizers(target, attributes.value);
|
|
17150
|
+
}
|
|
17151
|
+
return originalDefineProperty(target, propertyKey, attributes);
|
|
17152
|
+
};
|
|
17153
|
+
Object.defineProperty(Function.prototype, symbolMetadataSymbol, {
|
|
17154
|
+
configurable: true,
|
|
17155
|
+
get() {
|
|
17156
|
+
return metadataValueStore.get(this);
|
|
17157
|
+
},
|
|
17158
|
+
set(value) {
|
|
17159
|
+
if (value) {
|
|
17160
|
+
runMetadataFinalizers(this, value);
|
|
17161
|
+
} else {
|
|
17162
|
+
metadataValueStore.delete(this);
|
|
17163
|
+
}
|
|
17164
|
+
}
|
|
17165
|
+
});
|
|
17166
|
+
globalThis[STAGE3_GUARD_FLAG] = true;
|
|
17167
|
+
}
|
|
17168
|
+
var BORSH_STAGE3_METADATA_KEY = Symbol.for("@dao-xyz/borsh:stage3-decorators");
|
|
17169
|
+
metadataFinalizers.push((ctor, metadata) => {
|
|
17170
|
+
const store = metadata[BORSH_STAGE3_METADATA_KEY];
|
|
17171
|
+
if (!store || store.applied)
|
|
17172
|
+
return;
|
|
17173
|
+
store.applied = true;
|
|
17174
|
+
for (const action of store.actions) {
|
|
17175
|
+
action(ctor);
|
|
17176
|
+
}
|
|
17177
|
+
store.actions.length = 0;
|
|
17178
|
+
});
|
|
17179
|
+
var PROTOTYPE_POLLUTION_CONTEXT_RANGE = 500;
|
|
17180
|
+
var PROTOTYPE_DESERIALIZATION_HANDLER_OFFSET = 500;
|
|
17181
|
+
var PROTOTYPE_DEPENDENCY_HANDLER_OFFSET = PROTOTYPE_DESERIALIZATION_HANDLER_OFFSET + PROTOTYPE_POLLUTION_CONTEXT_RANGE;
|
|
17182
|
+
var PROTOTYPE_SCHEMA_OFFSET = PROTOTYPE_DESERIALIZATION_HANDLER_OFFSET + PROTOTYPE_POLLUTION_CONTEXT_RANGE * 2;
|
|
17183
|
+
var MAX_ARRAY_SIZE_ALLOCATION = 1024 * 1024;
|
|
17184
|
+
|
|
17185
|
+
// ../../../../node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bytes.js
|
|
17186
|
+
var empty = new Uint8Array(0);
|
|
17187
|
+
function coerce(o) {
|
|
17188
|
+
if (o instanceof Uint8Array && o.constructor.name === "Uint8Array") {
|
|
17189
|
+
return o;
|
|
17190
|
+
}
|
|
17191
|
+
if (o instanceof ArrayBuffer) {
|
|
17192
|
+
return new Uint8Array(o);
|
|
17193
|
+
}
|
|
17194
|
+
if (ArrayBuffer.isView(o)) {
|
|
17195
|
+
return new Uint8Array(o.buffer, o.byteOffset, o.byteLength);
|
|
17196
|
+
}
|
|
17197
|
+
throw new Error("Unknown type, must be binary type");
|
|
17198
|
+
}
|
|
17199
|
+
|
|
17200
|
+
// ../../../../node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/vendor/base-x.js
|
|
17201
|
+
function base(ALPHABET, name) {
|
|
17202
|
+
if (ALPHABET.length >= 255) {
|
|
17203
|
+
throw new TypeError("Alphabet too long");
|
|
17204
|
+
}
|
|
17205
|
+
var BASE_MAP = new Uint8Array(256);
|
|
17206
|
+
for (var j = 0; j < BASE_MAP.length; j++) {
|
|
17207
|
+
BASE_MAP[j] = 255;
|
|
17208
|
+
}
|
|
17209
|
+
for (var i = 0; i < ALPHABET.length; i++) {
|
|
17210
|
+
var x = ALPHABET.charAt(i);
|
|
17211
|
+
var xc = x.charCodeAt(0);
|
|
17212
|
+
if (BASE_MAP[xc] !== 255) {
|
|
17213
|
+
throw new TypeError(x + " is ambiguous");
|
|
17214
|
+
}
|
|
17215
|
+
BASE_MAP[xc] = i;
|
|
17216
|
+
}
|
|
17217
|
+
var BASE = ALPHABET.length;
|
|
17218
|
+
var LEADER = ALPHABET.charAt(0);
|
|
17219
|
+
var FACTOR = Math.log(BASE) / Math.log(256);
|
|
17220
|
+
var iFACTOR = Math.log(256) / Math.log(BASE);
|
|
17221
|
+
function encode(source) {
|
|
17222
|
+
if (source instanceof Uint8Array)
|
|
17223
|
+
;
|
|
17224
|
+
else if (ArrayBuffer.isView(source)) {
|
|
17225
|
+
source = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
|
|
17226
|
+
} else if (Array.isArray(source)) {
|
|
17227
|
+
source = Uint8Array.from(source);
|
|
17228
|
+
}
|
|
17229
|
+
if (!(source instanceof Uint8Array)) {
|
|
17230
|
+
throw new TypeError("Expected Uint8Array");
|
|
17231
|
+
}
|
|
17232
|
+
if (source.length === 0) {
|
|
17233
|
+
return "";
|
|
17234
|
+
}
|
|
17235
|
+
var zeroes = 0;
|
|
17236
|
+
var length = 0;
|
|
17237
|
+
var pbegin = 0;
|
|
17238
|
+
var pend = source.length;
|
|
17239
|
+
while (pbegin !== pend && source[pbegin] === 0) {
|
|
17240
|
+
pbegin++;
|
|
17241
|
+
zeroes++;
|
|
17242
|
+
}
|
|
17243
|
+
var size = (pend - pbegin) * iFACTOR + 1 >>> 0;
|
|
17244
|
+
var b58 = new Uint8Array(size);
|
|
17245
|
+
while (pbegin !== pend) {
|
|
17246
|
+
var carry = source[pbegin];
|
|
17247
|
+
var i2 = 0;
|
|
17248
|
+
for (var it1 = size - 1; (carry !== 0 || i2 < length) && it1 !== -1; it1--, i2++) {
|
|
17249
|
+
carry += 256 * b58[it1] >>> 0;
|
|
17250
|
+
b58[it1] = carry % BASE >>> 0;
|
|
17251
|
+
carry = carry / BASE >>> 0;
|
|
17252
|
+
}
|
|
17253
|
+
if (carry !== 0) {
|
|
17254
|
+
throw new Error("Non-zero carry");
|
|
17255
|
+
}
|
|
17256
|
+
length = i2;
|
|
17257
|
+
pbegin++;
|
|
17258
|
+
}
|
|
17259
|
+
var it2 = size - length;
|
|
17260
|
+
while (it2 !== size && b58[it2] === 0) {
|
|
17261
|
+
it2++;
|
|
17190
17262
|
}
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
globalThis.sqlite3ApiBootstrap.defaultConfig,
|
|
17195
|
-
globalThis.sqlite3ApiConfig || {},
|
|
17196
|
-
{
|
|
17197
|
-
memory: "undefined" !== typeof wasmMemory ? wasmMemory : EmscriptenModule["wasmMemory"],
|
|
17198
|
-
exports: "undefined" !== typeof wasmExports ? wasmExports : Object.prototype.hasOwnProperty.call(
|
|
17199
|
-
EmscriptenModule,
|
|
17200
|
-
"wasmExports"
|
|
17201
|
-
) ? EmscriptenModule["wasmExports"] : EmscriptenModule["asm"]
|
|
17202
|
-
}
|
|
17203
|
-
);
|
|
17204
|
-
bootstrapConfig.wasmPtrIR = "number" === typeof bootstrapConfig.exports.sqlite3_libversion() ? "i32" : "i64";
|
|
17205
|
-
const sIMS = sqlite3InitScriptInfo;
|
|
17206
|
-
sIMS.debugModule("Bootstrapping lib config", sIMS);
|
|
17207
|
-
const p = globalThis.sqlite3ApiBootstrap(bootstrapConfig);
|
|
17208
|
-
delete globalThis.sqlite3ApiBootstrap;
|
|
17209
|
-
return p;
|
|
17210
|
-
} catch (e) {
|
|
17211
|
-
console.error("sqlite3ApiBootstrap() error:", e);
|
|
17212
|
-
throw e;
|
|
17263
|
+
var str = LEADER.repeat(zeroes);
|
|
17264
|
+
for (; it2 < size; ++it2) {
|
|
17265
|
+
str += ALPHABET.charAt(b58[it2]);
|
|
17213
17266
|
}
|
|
17214
|
-
|
|
17215
|
-
};
|
|
17216
|
-
if (runtimeInitialized) {
|
|
17217
|
-
moduleRtn = Module;
|
|
17218
|
-
} else {
|
|
17219
|
-
moduleRtn = new Promise((resolve, reject) => {
|
|
17220
|
-
readyPromiseResolve = resolve;
|
|
17221
|
-
readyPromiseReject = reject;
|
|
17222
|
-
});
|
|
17223
|
-
}
|
|
17224
|
-
return moduleRtn;
|
|
17225
|
-
}
|
|
17226
|
-
var toExportForESM = (function() {
|
|
17227
|
-
const originalInit = sqlite3InitModule;
|
|
17228
|
-
if (!originalInit) {
|
|
17229
|
-
throw new Error(
|
|
17230
|
-
"Expecting globalThis.sqlite3InitModule to be defined by the Emscripten build."
|
|
17231
|
-
);
|
|
17267
|
+
return str;
|
|
17232
17268
|
}
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
moduleScript: globalThis?.document?.currentScript,
|
|
17237
|
-
isWorker: "undefined" !== typeof WorkerGlobalScope,
|
|
17238
|
-
location: globalThis.location,
|
|
17239
|
-
urlParams: globalThis?.location?.href ? new URL(globalThis.location.href).searchParams : new URLSearchParams(),
|
|
17240
|
-
wasmFilename: "sqlite3.wasm"
|
|
17269
|
+
function decodeUnsafe(source) {
|
|
17270
|
+
if (typeof source !== "string") {
|
|
17271
|
+
throw new TypeError("Expected String");
|
|
17241
17272
|
}
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17245
|
-
|
|
17246
|
-
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
|
|
17251
|
-
|
|
17252
|
-
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
|
|
17257
|
-
|
|
17258
|
-
);
|
|
17259
|
-
|
|
17260
|
-
sIMS,
|
|
17261
|
-
EmscriptenModule,
|
|
17262
|
-
!!ff.__isUnderTest
|
|
17263
|
-
);
|
|
17264
|
-
sIMS.debugModule("sqlite3InitModule() sqlite3 =", s);
|
|
17265
|
-
return s;
|
|
17266
|
-
}).catch((e) => {
|
|
17267
|
-
console.error("Exception loading sqlite3 module:", e);
|
|
17268
|
-
throw e;
|
|
17269
|
-
});
|
|
17270
|
-
};
|
|
17271
|
-
sIM.ready = originalInit.ready;
|
|
17272
|
-
if (sIMS.moduleScript) {
|
|
17273
|
-
let src2 = sIMS.moduleScript.src.split("/");
|
|
17274
|
-
src2.pop();
|
|
17275
|
-
sIMS.scriptDir = src2.join("/") + "/";
|
|
17276
|
-
}
|
|
17277
|
-
sIMS.debugModule("extern-post-js.c-pp.js sqlite3InitModuleState =", sIMS);
|
|
17278
|
-
return sIM;
|
|
17279
|
-
})();
|
|
17280
|
-
sqlite3InitModule = toExportForESM;
|
|
17281
|
-
var sqlite3_default = sqlite3InitModule;
|
|
17282
|
-
|
|
17283
|
-
// ../../../../node_modules/.pnpm/@sqlite.org+sqlite-wasm@3.51.1-build1/node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3-worker1-promiser.mjs
|
|
17284
|
-
globalThis.sqlite3Worker1Promiser = function callee(config = callee.defaultConfig) {
|
|
17285
|
-
if (1 === arguments.length && "function" === typeof arguments[0]) {
|
|
17286
|
-
const f = config;
|
|
17287
|
-
config = Object.assign(/* @__PURE__ */ Object.create(null), callee.defaultConfig);
|
|
17288
|
-
config.onready = f;
|
|
17289
|
-
} else {
|
|
17290
|
-
config = Object.assign(/* @__PURE__ */ Object.create(null), callee.defaultConfig, config);
|
|
17291
|
-
}
|
|
17292
|
-
const handlerMap = /* @__PURE__ */ Object.create(null);
|
|
17293
|
-
const noop = function() {
|
|
17294
|
-
};
|
|
17295
|
-
const err = config.onerror || noop;
|
|
17296
|
-
const debug = config.debug || noop;
|
|
17297
|
-
const idTypeMap = config.generateMessageId ? void 0 : /* @__PURE__ */ Object.create(null);
|
|
17298
|
-
const genMsgId = config.generateMessageId || function(msg) {
|
|
17299
|
-
return msg.type + "#" + (idTypeMap[msg.type] = (idTypeMap[msg.type] || 0) + 1);
|
|
17300
|
-
};
|
|
17301
|
-
const toss = (...args) => {
|
|
17302
|
-
throw new Error(args.join(" "));
|
|
17303
|
-
};
|
|
17304
|
-
if (!config.worker) config.worker = callee.defaultConfig.worker;
|
|
17305
|
-
if ("function" === typeof config.worker) config.worker = config.worker();
|
|
17306
|
-
let dbId;
|
|
17307
|
-
let promiserFunc;
|
|
17308
|
-
config.worker.onmessage = function(ev) {
|
|
17309
|
-
ev = ev.data;
|
|
17310
|
-
debug("worker1.onmessage", ev);
|
|
17311
|
-
let msgHandler = handlerMap[ev.messageId];
|
|
17312
|
-
if (!msgHandler) {
|
|
17313
|
-
if (ev && "sqlite3-api" === ev.type && "worker1-ready" === ev.result) {
|
|
17314
|
-
if (config.onready) config.onready(promiserFunc);
|
|
17273
|
+
if (source.length === 0) {
|
|
17274
|
+
return new Uint8Array();
|
|
17275
|
+
}
|
|
17276
|
+
var psz = 0;
|
|
17277
|
+
if (source[psz] === " ") {
|
|
17278
|
+
return;
|
|
17279
|
+
}
|
|
17280
|
+
var zeroes = 0;
|
|
17281
|
+
var length = 0;
|
|
17282
|
+
while (source[psz] === LEADER) {
|
|
17283
|
+
zeroes++;
|
|
17284
|
+
psz++;
|
|
17285
|
+
}
|
|
17286
|
+
var size = (source.length - psz) * FACTOR + 1 >>> 0;
|
|
17287
|
+
var b256 = new Uint8Array(size);
|
|
17288
|
+
while (source[psz]) {
|
|
17289
|
+
var carry = BASE_MAP[source.charCodeAt(psz)];
|
|
17290
|
+
if (carry === 255) {
|
|
17315
17291
|
return;
|
|
17316
17292
|
}
|
|
17317
|
-
|
|
17318
|
-
|
|
17319
|
-
|
|
17320
|
-
|
|
17293
|
+
var i2 = 0;
|
|
17294
|
+
for (var it3 = size - 1; (carry !== 0 || i2 < length) && it3 !== -1; it3--, i2++) {
|
|
17295
|
+
carry += BASE * b256[it3] >>> 0;
|
|
17296
|
+
b256[it3] = carry % 256 >>> 0;
|
|
17297
|
+
carry = carry / 256 >>> 0;
|
|
17298
|
+
}
|
|
17299
|
+
if (carry !== 0) {
|
|
17300
|
+
throw new Error("Non-zero carry");
|
|
17321
17301
|
}
|
|
17322
|
-
|
|
17323
|
-
|
|
17302
|
+
length = i2;
|
|
17303
|
+
psz++;
|
|
17304
|
+
}
|
|
17305
|
+
if (source[psz] === " ") {
|
|
17324
17306
|
return;
|
|
17325
17307
|
}
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
msgHandler.reject(ev);
|
|
17330
|
-
return;
|
|
17331
|
-
case "open":
|
|
17332
|
-
if (!dbId) dbId = ev.dbId;
|
|
17333
|
-
break;
|
|
17334
|
-
case "close":
|
|
17335
|
-
if (ev.dbId === dbId) dbId = void 0;
|
|
17336
|
-
break;
|
|
17337
|
-
default:
|
|
17338
|
-
break;
|
|
17308
|
+
var it4 = size - length;
|
|
17309
|
+
while (it4 !== size && b256[it4] === 0) {
|
|
17310
|
+
it4++;
|
|
17339
17311
|
}
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
|
|
17312
|
+
var vch = new Uint8Array(zeroes + (size - it4));
|
|
17313
|
+
var j2 = zeroes;
|
|
17314
|
+
while (it4 !== size) {
|
|
17315
|
+
vch[j2++] = b256[it4++];
|
|
17316
|
+
}
|
|
17317
|
+
return vch;
|
|
17318
|
+
}
|
|
17319
|
+
function decode(string) {
|
|
17320
|
+
var buffer = decodeUnsafe(string);
|
|
17321
|
+
if (buffer) {
|
|
17322
|
+
return buffer;
|
|
17344
17323
|
}
|
|
17324
|
+
throw new Error(`Non-${name} character`);
|
|
17325
|
+
}
|
|
17326
|
+
return {
|
|
17327
|
+
encode,
|
|
17328
|
+
decodeUnsafe,
|
|
17329
|
+
decode
|
|
17345
17330
|
};
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17354
|
-
|
|
17331
|
+
}
|
|
17332
|
+
var src = base;
|
|
17333
|
+
var _brrp__multiformats_scope_baseX = src;
|
|
17334
|
+
var base_x_default = _brrp__multiformats_scope_baseX;
|
|
17335
|
+
|
|
17336
|
+
// ../../../../node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bases/base.js
|
|
17337
|
+
var Encoder = class {
|
|
17338
|
+
name;
|
|
17339
|
+
prefix;
|
|
17340
|
+
baseEncode;
|
|
17341
|
+
constructor(name, prefix, baseEncode) {
|
|
17342
|
+
this.name = name;
|
|
17343
|
+
this.prefix = prefix;
|
|
17344
|
+
this.baseEncode = baseEncode;
|
|
17345
|
+
}
|
|
17346
|
+
encode(bytes) {
|
|
17347
|
+
if (bytes instanceof Uint8Array) {
|
|
17348
|
+
return `${this.prefix}${this.baseEncode(bytes)}`;
|
|
17355
17349
|
} else {
|
|
17356
|
-
|
|
17350
|
+
throw Error("Unknown type, must be binary type");
|
|
17357
17351
|
}
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17352
|
+
}
|
|
17353
|
+
};
|
|
17354
|
+
var Decoder = class {
|
|
17355
|
+
name;
|
|
17356
|
+
prefix;
|
|
17357
|
+
baseDecode;
|
|
17358
|
+
prefixCodePoint;
|
|
17359
|
+
constructor(name, prefix, baseDecode) {
|
|
17360
|
+
this.name = name;
|
|
17361
|
+
this.prefix = prefix;
|
|
17362
|
+
const prefixCodePoint = prefix.codePointAt(0);
|
|
17363
|
+
if (prefixCodePoint === void 0) {
|
|
17364
|
+
throw new Error("Invalid prefix character");
|
|
17365
|
+
}
|
|
17366
|
+
this.prefixCodePoint = prefixCodePoint;
|
|
17367
|
+
this.baseDecode = baseDecode;
|
|
17368
|
+
}
|
|
17369
|
+
decode(text) {
|
|
17370
|
+
if (typeof text === "string") {
|
|
17371
|
+
if (text.codePointAt(0) !== this.prefixCodePoint) {
|
|
17372
|
+
throw Error(`Unable to decode multibase string ${JSON.stringify(text)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);
|
|
17374
17373
|
}
|
|
17374
|
+
return this.baseDecode(text.slice(this.prefix.length));
|
|
17375
|
+
} else {
|
|
17376
|
+
throw Error("Can only multibase decode strings");
|
|
17375
17377
|
}
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
debug(
|
|
17381
|
-
"Posting",
|
|
17382
|
-
msg.type,
|
|
17383
|
-
"message to Worker dbId=" + (dbId || "default") + ":",
|
|
17384
|
-
msg
|
|
17385
|
-
);
|
|
17386
|
-
config.worker.postMessage(msg);
|
|
17387
|
-
});
|
|
17388
|
-
if (rowCallbackId) p = p.finally(() => delete handlerMap[rowCallbackId]);
|
|
17389
|
-
return p;
|
|
17390
|
-
};
|
|
17391
|
-
};
|
|
17392
|
-
globalThis.sqlite3Worker1Promiser.defaultConfig = {
|
|
17393
|
-
worker: function() {
|
|
17394
|
-
return new Worker(new URL("sqlite3-worker1.js", import.meta.url));
|
|
17395
|
-
},
|
|
17396
|
-
onerror: (...args) => console.error("worker1 promiser error", ...args)
|
|
17378
|
+
}
|
|
17379
|
+
or(decoder) {
|
|
17380
|
+
return or(this, decoder);
|
|
17381
|
+
}
|
|
17397
17382
|
};
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
|
|
17401
|
-
|
|
17402
|
-
config = {};
|
|
17403
|
-
} else if ("function" === typeof config?.onready) {
|
|
17404
|
-
oldFunc = config.onready;
|
|
17405
|
-
delete config.onready;
|
|
17383
|
+
var ComposedDecoder = class {
|
|
17384
|
+
decoders;
|
|
17385
|
+
constructor(decoders) {
|
|
17386
|
+
this.decoders = decoders;
|
|
17406
17387
|
}
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17388
|
+
or(decoder) {
|
|
17389
|
+
return or(this, decoder);
|
|
17390
|
+
}
|
|
17391
|
+
decode(input) {
|
|
17392
|
+
const prefix = input[0];
|
|
17393
|
+
const decoder = this.decoders[prefix];
|
|
17394
|
+
if (decoder != null) {
|
|
17395
|
+
return decoder.decode(input);
|
|
17396
|
+
} else {
|
|
17397
|
+
throw RangeError(`Unable to decode multibase string ${JSON.stringify(input)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`);
|
|
17416
17398
|
}
|
|
17399
|
+
}
|
|
17400
|
+
};
|
|
17401
|
+
function or(left, right) {
|
|
17402
|
+
return new ComposedDecoder({
|
|
17403
|
+
...left.decoders ?? { [left.prefix]: left },
|
|
17404
|
+
...right.decoders ?? { [right.prefix]: right }
|
|
17417
17405
|
});
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17406
|
+
}
|
|
17407
|
+
var Codec = class {
|
|
17408
|
+
name;
|
|
17409
|
+
prefix;
|
|
17410
|
+
baseEncode;
|
|
17411
|
+
baseDecode;
|
|
17412
|
+
encoder;
|
|
17413
|
+
decoder;
|
|
17414
|
+
constructor(name, prefix, baseEncode, baseDecode) {
|
|
17415
|
+
this.name = name;
|
|
17416
|
+
this.prefix = prefix;
|
|
17417
|
+
this.baseEncode = baseEncode;
|
|
17418
|
+
this.baseDecode = baseDecode;
|
|
17419
|
+
this.encoder = new Encoder(name, prefix, baseEncode);
|
|
17420
|
+
this.decoder = new Decoder(name, prefix, baseDecode);
|
|
17421
|
+
}
|
|
17422
|
+
encode(input) {
|
|
17423
|
+
return this.encoder.encode(input);
|
|
17426
17424
|
}
|
|
17427
|
-
|
|
17428
|
-
|
|
17429
|
-
|
|
17425
|
+
decode(input) {
|
|
17426
|
+
return this.decoder.decode(input);
|
|
17427
|
+
}
|
|
17428
|
+
};
|
|
17429
|
+
function from({ name, prefix, encode, decode }) {
|
|
17430
|
+
return new Codec(name, prefix, encode, decode);
|
|
17431
|
+
}
|
|
17432
|
+
function baseX({ name, prefix, alphabet }) {
|
|
17433
|
+
const { encode, decode } = base_x_default(alphabet, name);
|
|
17434
|
+
return from({
|
|
17435
|
+
prefix,
|
|
17436
|
+
name,
|
|
17437
|
+
encode,
|
|
17438
|
+
decode: (text) => coerce(decode(text))
|
|
17439
|
+
});
|
|
17440
|
+
}
|
|
17441
|
+
|
|
17442
|
+
// ../../../../node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bases/base58.js
|
|
17443
|
+
var base58btc = baseX({
|
|
17444
|
+
name: "base58btc",
|
|
17445
|
+
prefix: "z",
|
|
17446
|
+
alphabet: "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
|
|
17447
|
+
});
|
|
17448
|
+
var base58flickr = baseX({
|
|
17449
|
+
name: "base58flickr",
|
|
17450
|
+
prefix: "Z",
|
|
17451
|
+
alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
|
|
17430
17452
|
});
|
|
17431
|
-
globalThis.sqlite3Worker1Promiser.v2.defaultConfig = globalThis.sqlite3Worker1Promiser.defaultConfig;
|
|
17432
|
-
var sqlite3_worker1_promiser_default = sqlite3Worker1Promiser.v2;
|
|
17433
17453
|
|
|
17434
|
-
//
|
|
17435
|
-
var
|
|
17436
|
-
var
|
|
17454
|
+
// ../../crypto/dist/src/utils.js
|
|
17455
|
+
var import_libsodium_wrappers = __toESM(require_libsodium_wrappers(), 1);
|
|
17456
|
+
var fromBase64 = (base64) => {
|
|
17457
|
+
return import_libsodium_wrappers.default.from_base64(base64, import_libsodium_wrappers.default.base64_variants.ORIGINAL);
|
|
17458
|
+
};
|
|
17459
|
+
|
|
17460
|
+
// src/sqlite3-messages.worker.ts
|
|
17461
|
+
var resolveValue = (value) => value.type === "simple" ? value.value : fromBase64(value.base64);
|
|
17462
|
+
|
|
17463
|
+
// src/sqlite3.wasm.ts
|
|
17464
|
+
init_sqlite_wasm();
|
|
17437
17465
|
|
|
17438
17466
|
// ../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.js
|
|
17439
17467
|
var byteToHex = [];
|
|
@@ -17550,11 +17578,40 @@ var Statement = class {
|
|
|
17550
17578
|
};
|
|
17551
17579
|
var log = (...args) => console.log(...args);
|
|
17552
17580
|
var error = (...args) => console.error(...args);
|
|
17581
|
+
var SQLITE3_ASSET_BASE = "/peerbit/sqlite3";
|
|
17582
|
+
var SQLITE3_ASSET_DIR = `${SQLITE3_ASSET_BASE}/`;
|
|
17583
|
+
var SQLITE3_WASM_PATH = `${SQLITE3_ASSET_BASE}/sqlite3.wasm`;
|
|
17584
|
+
var sqlite3InitModulePromise;
|
|
17585
|
+
var ensureSqlite3InitModuleState = () => {
|
|
17586
|
+
const globalWithSqlite = globalThis;
|
|
17587
|
+
const existing = globalWithSqlite.sqlite3InitModuleState ?? {};
|
|
17588
|
+
const debugModule = typeof existing.debugModule === "function" ? existing.debugModule : () => {
|
|
17589
|
+
};
|
|
17590
|
+
existing.debugModule = debugModule;
|
|
17591
|
+
existing.wasmFilename = SQLITE3_WASM_PATH;
|
|
17592
|
+
existing.sqlite3Dir = SQLITE3_ASSET_DIR;
|
|
17593
|
+
globalWithSqlite.sqlite3InitModuleState = existing;
|
|
17594
|
+
};
|
|
17595
|
+
var loadSqlite3InitModule = async () => {
|
|
17596
|
+
if (!sqlite3InitModulePromise) {
|
|
17597
|
+
sqlite3InitModulePromise = Promise.resolve().then(() => (init_sqlite_wasm(), sqlite_wasm_exports)).then(
|
|
17598
|
+
(mod) => mod.default
|
|
17599
|
+
);
|
|
17600
|
+
}
|
|
17601
|
+
const sqlite3InitModule2 = await sqlite3InitModulePromise;
|
|
17602
|
+
ensureSqlite3InitModuleState();
|
|
17603
|
+
return sqlite3InitModule2;
|
|
17604
|
+
};
|
|
17553
17605
|
var poolUtil = void 0;
|
|
17554
17606
|
var sqlite3 = void 0;
|
|
17555
17607
|
var create = async (directory) => {
|
|
17556
17608
|
let statements = /* @__PURE__ */ new Map();
|
|
17557
|
-
|
|
17609
|
+
const sqlite3InitModule2 = await loadSqlite3InitModule();
|
|
17610
|
+
sqlite3 = sqlite3 || await sqlite3InitModule2({
|
|
17611
|
+
print: log,
|
|
17612
|
+
printErr: error,
|
|
17613
|
+
locateFile: (file) => `${SQLITE3_ASSET_BASE}/${file}`
|
|
17614
|
+
});
|
|
17558
17615
|
let sqliteDb = void 0;
|
|
17559
17616
|
let closeInternal = async () => {
|
|
17560
17617
|
await Promise.all([...statements.values()].map((x) => x.finalize?.()));
|
|
@@ -17635,14 +17692,18 @@ var create = async (directory) => {
|
|
|
17635
17692
|
directory = directory.replace(/^\./, "");
|
|
17636
17693
|
dbFileName = `${directory}/db.sqlite`;
|
|
17637
17694
|
const poolDirectory = `${directory}/peerbit/sqlite-opfs-pool`;
|
|
17638
|
-
|
|
17695
|
+
const activePoolUtil = poolUtil || await sqlite3.installOpfsSAHPoolVfs({
|
|
17639
17696
|
directory: poolDirectory
|
|
17640
17697
|
});
|
|
17641
|
-
|
|
17642
|
-
|
|
17698
|
+
poolUtil = activePoolUtil;
|
|
17699
|
+
await activePoolUtil.reserveMinimumCapacity(100);
|
|
17700
|
+
sqliteDb = new activePoolUtil.OpfsSAHPoolDb(dbFileName);
|
|
17643
17701
|
} else {
|
|
17644
17702
|
sqliteDb = new sqlite3.oo1.DB(":memory:");
|
|
17645
17703
|
}
|
|
17704
|
+
if (!sqliteDb) {
|
|
17705
|
+
throw new Error("Failed to open sqlite database");
|
|
17706
|
+
}
|
|
17646
17707
|
sqliteDb.exec("PRAGMA journal_mode = WAL");
|
|
17647
17708
|
sqliteDb.exec("PRAGMA foreign_keys = on");
|
|
17648
17709
|
};
|