@oliphaunt/wasix-ts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +655 -0
- package/CHANGELOG.md +33 -0
- package/LICENSE +21 -0
- package/README.md +404 -0
- package/THIRD_PARTY_NOTICES.md +20 -0
- package/lib/archive.d.ts +21 -0
- package/lib/archive.js +336 -0
- package/lib/asset-source.d.ts +4 -0
- package/lib/asset-source.js +15 -0
- package/lib/byte-channel.d.ts +27 -0
- package/lib/byte-channel.js +170 -0
- package/lib/client-common.d.ts +6 -0
- package/lib/client-common.js +36 -0
- package/lib/client.d.ts +7 -0
- package/lib/client.js +24 -0
- package/lib/database-root.d.ts +19 -0
- package/lib/database-root.js +139 -0
- package/lib/database.d.ts +135 -0
- package/lib/database.js +1039 -0
- package/lib/descriptor-validation.d.ts +10 -0
- package/lib/descriptor-validation.js +75 -0
- package/lib/direct-client-common.d.ts +50 -0
- package/lib/direct-client-common.js +717 -0
- package/lib/direct-client.d.ts +4 -0
- package/lib/direct-client.js +13 -0
- package/lib/direct.node.d.ts +2 -0
- package/lib/direct.node.js +2 -0
- package/lib/errors.d.ts +25 -0
- package/lib/errors.js +34 -0
- package/lib/extension-descriptor.d.ts +14 -0
- package/lib/extension-descriptor.js +419 -0
- package/lib/extensions.d.ts +68 -0
- package/lib/extensions.js +769 -0
- package/lib/host/LICENSE +21 -0
- package/lib/host/index.d.mts +123 -0
- package/lib/host/index.mjs +11 -0
- package/lib/host/provenance.json +16 -0
- package/lib/host/wasmer_js_bg.wasm +0 -0
- package/lib/host/worker.mjs +11 -0
- package/lib/host-runtime.d.ts +5 -0
- package/lib/host-runtime.js +13 -0
- package/lib/icu-descriptor.d.ts +3 -0
- package/lib/icu-descriptor.js +92 -0
- package/lib/index.bun.d.ts +2 -0
- package/lib/index.bun.js +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.deno.d.ts +2 -0
- package/lib/index.deno.js +2 -0
- package/lib/index.js +2 -0
- package/lib/index.node.d.ts +2 -0
- package/lib/index.node.js +2 -0
- package/lib/internal-common.d.ts +12 -0
- package/lib/internal-common.js +274 -0
- package/lib/internal.d.ts +5 -0
- package/lib/internal.js +42 -0
- package/lib/internal.node.d.ts +5 -0
- package/lib/internal.node.js +8 -0
- package/lib/native-addon.d.ts +111 -0
- package/lib/native-addon.js +223 -0
- package/lib/native-server.d.ts +21 -0
- package/lib/native-server.js +109 -0
- package/lib/native-session.d.ts +60 -0
- package/lib/native-session.js +565 -0
- package/lib/node-actor.d.ts +7 -0
- package/lib/node-actor.js +10 -0
- package/lib/node-client-common.d.ts +9 -0
- package/lib/node-client-common.js +35 -0
- package/lib/node-client.d.ts +4 -0
- package/lib/node-client.js +13 -0
- package/lib/node-direct.d.ts +7 -0
- package/lib/node-direct.js +10 -0
- package/lib/node-worker-options.d.ts +5 -0
- package/lib/node-worker-options.js +65 -0
- package/lib/node-worker-port.d.ts +4 -0
- package/lib/node-worker-port.js +116 -0
- package/lib/node-worker.d.ts +1 -0
- package/lib/node-worker.js +38 -0
- package/lib/pgwire-connection.d.ts +60 -0
- package/lib/pgwire-connection.js +528 -0
- package/lib/pgwire.d.ts +3 -0
- package/lib/pgwire.js +105 -0
- package/lib/physical-archive.d.ts +29 -0
- package/lib/physical-archive.js +527 -0
- package/lib/protocol.d.ts +1 -0
- package/lib/protocol.js +1 -0
- package/lib/public.d.ts +4 -0
- package/lib/public.js +3 -0
- package/lib/query.d.ts +1 -0
- package/lib/query.js +1 -0
- package/lib/rpc.d.ts +203 -0
- package/lib/rpc.js +84 -0
- package/lib/runtime-descriptor.d.ts +3 -0
- package/lib/runtime-descriptor.js +79 -0
- package/lib/server.node.d.ts +1 -0
- package/lib/server.node.js +1 -0
- package/lib/startup-config.d.ts +2 -0
- package/lib/startup-config.js +19 -0
- package/lib/storage/bun.d.ts +6 -0
- package/lib/storage/bun.js +6 -0
- package/lib/storage/deno.d.ts +7 -0
- package/lib/storage/deno.js +7 -0
- package/lib/storage/incremental-storage.d.ts +25 -0
- package/lib/storage/incremental-storage.js +154 -0
- package/lib/storage/indexed-db-provider.d.ts +40 -0
- package/lib/storage/indexed-db-provider.js +259 -0
- package/lib/storage/indexed-db.d.ts +9 -0
- package/lib/storage/indexed-db.js +11 -0
- package/lib/storage/node.d.ts +10 -0
- package/lib/storage/node.js +13 -0
- package/lib/storage/opfs-pool.d.ts +31 -0
- package/lib/storage/opfs-pool.js +1271 -0
- package/lib/storage/opfs-provider.d.ts +4 -0
- package/lib/storage/opfs-provider.js +257 -0
- package/lib/storage/opfs.d.ts +8 -0
- package/lib/storage/opfs.js +10 -0
- package/lib/storage/restore-cleanup.d.ts +4 -0
- package/lib/storage/restore-cleanup.js +22 -0
- package/lib/storage/web-lock.d.ts +2 -0
- package/lib/storage/web-lock.js +64 -0
- package/lib/storage-provider.d.ts +47 -0
- package/lib/storage-provider.js +141 -0
- package/lib/storage-snapshot.d.ts +44 -0
- package/lib/storage-snapshot.js +274 -0
- package/lib/storage.d.ts +46 -0
- package/lib/storage.js +83 -0
- package/lib/tool-runtime.d.ts +43 -0
- package/lib/tool-runtime.js +93 -0
- package/lib/tool-worker-common.d.ts +48 -0
- package/lib/tool-worker-common.js +97 -0
- package/lib/tool-worker.d.ts +1 -0
- package/lib/tool-worker.js +10 -0
- package/lib/types.d.ts +230 -0
- package/lib/types.js +1 -0
- package/lib/wasix-runtime.d.ts +24 -0
- package/lib/wasix-runtime.js +186 -0
- package/lib/worker-client.d.ts +4 -0
- package/lib/worker-client.js +45 -0
- package/lib/worker-dispatch.d.ts +11 -0
- package/lib/worker-dispatch.js +174 -0
- package/lib/worker-entry.bun.d.ts +2 -0
- package/lib/worker-entry.bun.js +2 -0
- package/lib/worker-entry.d.ts +2 -0
- package/lib/worker-entry.deno.d.ts +2 -0
- package/lib/worker-entry.deno.js +2 -0
- package/lib/worker-entry.js +2 -0
- package/lib/worker-entry.node.d.ts +2 -0
- package/lib/worker-entry.node.js +2 -0
- package/lib/worker-node-client.d.ts +4 -0
- package/lib/worker-node-client.js +55 -0
- package/lib/worker-rpc.d.ts +36 -0
- package/lib/worker-rpc.js +422 -0
- package/lib/worker-transfer.d.ts +6 -0
- package/lib/worker-transfer.js +11 -0
- package/lib/worker.d.ts +1 -0
- package/lib/worker.js +21 -0
- package/lib/zstd.d.ts +4 -0
- package/lib/zstd.js +12 -0
- package/node_modules/@oliphaunt/js-core/README.md +7 -0
- package/node_modules/@oliphaunt/js-core/dist/commonjs/protocol.d.ts +1 -0
- package/node_modules/@oliphaunt/js-core/dist/commonjs/protocol.js +22 -0
- package/node_modules/@oliphaunt/js-core/dist/commonjs/query.d.ts +255 -0
- package/node_modules/@oliphaunt/js-core/dist/commonjs/query.js +2068 -0
- package/node_modules/@oliphaunt/js-core/dist/module/package.json +3 -0
- package/node_modules/@oliphaunt/js-core/dist/module/protocol.d.ts +1 -0
- package/node_modules/@oliphaunt/js-core/dist/module/protocol.js +19 -0
- package/node_modules/@oliphaunt/js-core/dist/module/query.d.ts +255 -0
- package/node_modules/@oliphaunt/js-core/dist/module/query.js +2039 -0
- package/node_modules/@oliphaunt/js-core/package.json +21 -0
- package/package.json +122 -0
package/lib/host/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019-present Wasmer, Inc. and its affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export type WasixOutput = Readonly<{
|
|
2
|
+
ok: boolean;
|
|
3
|
+
code: number;
|
|
4
|
+
stdoutBytes: Uint8Array;
|
|
5
|
+
stdout: string;
|
|
6
|
+
stderrBytes: Uint8Array;
|
|
7
|
+
stderr: string;
|
|
8
|
+
}>;
|
|
9
|
+
|
|
10
|
+
export type OliphauntToolOutput = Readonly<{
|
|
11
|
+
code: number;
|
|
12
|
+
stdoutBytes: Uint8Array;
|
|
13
|
+
stderrBytes: Uint8Array;
|
|
14
|
+
}>;
|
|
15
|
+
|
|
16
|
+
export type DirectoryEntry = Readonly<{
|
|
17
|
+
type: "dir" | "file" | "unknown";
|
|
18
|
+
name: string;
|
|
19
|
+
}>;
|
|
20
|
+
|
|
21
|
+
export type DirectoryInit = Record<string, string | Uint8Array>;
|
|
22
|
+
|
|
23
|
+
export class Directory {
|
|
24
|
+
constructor(files?: DirectoryInit | null);
|
|
25
|
+
/** Create a filesystem served synchronously by a caller-realm backend. */
|
|
26
|
+
static createSync(backend: object, capacity: number): Directory;
|
|
27
|
+
free(): void;
|
|
28
|
+
__getClassname(): string;
|
|
29
|
+
createDir(path: string): Promise<void>;
|
|
30
|
+
readDir(path: string): Promise<DirectoryEntry[]>;
|
|
31
|
+
readFile(path: string): Promise<Uint8Array>;
|
|
32
|
+
readTextFile(path: string): Promise<string>;
|
|
33
|
+
writeFile(path: string, contents: string | Uint8Array): Promise<void>;
|
|
34
|
+
removeDir(path: string): Promise<void>;
|
|
35
|
+
removeFile(path: string): Promise<void>;
|
|
36
|
+
/** List paths mutated since the last successful acknowledgement. */
|
|
37
|
+
changedPaths(): string[];
|
|
38
|
+
/** Discard the current mutation journal. */
|
|
39
|
+
clearChanges(): void;
|
|
40
|
+
/** Inspect a path without exception-based missing-entry detection. */
|
|
41
|
+
entryType(path: string): string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class Instance {
|
|
45
|
+
private constructor();
|
|
46
|
+
readonly stdin: WritableStream<Uint8Array> | undefined;
|
|
47
|
+
readonly stdout: ReadableStream<Uint8Array>;
|
|
48
|
+
readonly stderr: ReadableStream<Uint8Array>;
|
|
49
|
+
free(): void;
|
|
50
|
+
wait(): Promise<WasixOutput>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Caller-realm Oliphaunt driver. Methods run synchronously and never create a Worker. */
|
|
54
|
+
export class OliphauntDirectInstance {
|
|
55
|
+
private constructor();
|
|
56
|
+
startup(packet: Uint8Array): Uint8Array;
|
|
57
|
+
execProtocolRaw(input: Uint8Array): Uint8Array;
|
|
58
|
+
/** 0 after normal completion; 1 only after callback abort and confirmed recovery. */
|
|
59
|
+
execProtocolStream(input: Uint8Array, onChunk: (chunk: Uint8Array) => void): number;
|
|
60
|
+
execProtocolDuplex(
|
|
61
|
+
input: Uint8Array,
|
|
62
|
+
onRead: (maximumBytes: number) => Uint8Array,
|
|
63
|
+
onChunk: (chunk: Uint8Array) => void,
|
|
64
|
+
): void;
|
|
65
|
+
close(): void;
|
|
66
|
+
free(): void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Immutable caller-realm state reused across fresh frontend-tool processes. */
|
|
70
|
+
export class OliphauntPreparedTool {
|
|
71
|
+
private constructor();
|
|
72
|
+
free(): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type RunWasixOptions = Readonly<{
|
|
76
|
+
program?: string;
|
|
77
|
+
moduleBytes?: Uint8Array;
|
|
78
|
+
stdin?: string | Uint8Array;
|
|
79
|
+
args?: string[];
|
|
80
|
+
cwd?: string;
|
|
81
|
+
env?: Record<string, string>;
|
|
82
|
+
mount?: Record<string, DirectoryInit | Directory>;
|
|
83
|
+
}>;
|
|
84
|
+
|
|
85
|
+
export type WasmerInitOptions = Readonly<{
|
|
86
|
+
module?:
|
|
87
|
+
| RequestInfo
|
|
88
|
+
| URL
|
|
89
|
+
| Response
|
|
90
|
+
| BufferSource
|
|
91
|
+
| WebAssembly.Module
|
|
92
|
+
| Promise<RequestInfo | URL | Response | BufferSource | WebAssembly.Module>;
|
|
93
|
+
memory?: WebAssembly.Memory;
|
|
94
|
+
workerUrl?: string | URL;
|
|
95
|
+
sdkUrl?: string | URL;
|
|
96
|
+
log?: string;
|
|
97
|
+
registryUrl?: string;
|
|
98
|
+
token?: string;
|
|
99
|
+
}>;
|
|
100
|
+
|
|
101
|
+
export function init(options?: WasmerInitOptions): Promise<unknown>;
|
|
102
|
+
export function runWasix(
|
|
103
|
+
module: Uint8Array | WebAssembly.Module,
|
|
104
|
+
options: RunWasixOptions,
|
|
105
|
+
): Promise<Instance>;
|
|
106
|
+
/** Internal preparation for repeated caller-realm frontend-tool invocations. */
|
|
107
|
+
export function prepareOliphauntTool(
|
|
108
|
+
module: WebAssembly.Module,
|
|
109
|
+
moduleBytes: Uint8Array,
|
|
110
|
+
): OliphauntPreparedTool;
|
|
111
|
+
/** Internal caller-realm runner for a single PostgreSQL frontend tool invocation. */
|
|
112
|
+
export function runOliphauntToolDirect(
|
|
113
|
+
prepared: OliphauntPreparedTool,
|
|
114
|
+
options: RunWasixOptions,
|
|
115
|
+
protocolRead: (maximumBytes: number) => Uint8Array,
|
|
116
|
+
/** Borrowed bytes: synchronously copy; never mutate or retain this view. */
|
|
117
|
+
protocolWrite: (chunk: Uint8Array) => void,
|
|
118
|
+
): Promise<OliphauntToolOutput>;
|
|
119
|
+
export function instantiateOliphauntDirect(
|
|
120
|
+
module: WebAssembly.Module,
|
|
121
|
+
moduleBytes: Uint8Array,
|
|
122
|
+
options: RunWasixOptions,
|
|
123
|
+
): Promise<OliphauntDirectInstance>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @wasmer/sdk
|
|
3
|
+
* Wasmer Javascript SDK. It allows interacting with Wasmer Packages in Node.js and the Browser.
|
|
4
|
+
*
|
|
5
|
+
* @version v0.8.0
|
|
6
|
+
* @author Wasmer Engineering Team <engineering@wasmer.io>
|
|
7
|
+
* @homepage https://github.com/wasmerio/wasmer-js
|
|
8
|
+
* @repository git+https://github.com/wasmerio/wasmer-js.git
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
var e=Object.freeze({__proto__:null,oliphauntFastClockImport:function(e,t){let n;const _=new Map;let r=e.buffer,i=new DataView(r);function o(t){const n=t>>>0;return r!==e.buffer&&(r=e.buffer,i=new DataView(r)),n+8<=r.byteLength?n:void 0}function c(e,_,r){const i=t(e,_,r);if(0===i){const e=Date.now();Number.isFinite(e)&&e>=0&&(n=e)}return i}return function(e,t,r){let a,s;if(0===e){if(a=Date.now(),!Number.isFinite(a)||a<0)return c(e,t,r);s=1000000n*BigInt(Math.trunc(a))}else{if(1!==e)return c(e,t,r);{if(void 0===globalThis.performance)return c(e,t,r);if(a=globalThis.performance.now(),!Number.isFinite(a)||a<0)return c(e,t,r);const n=_.get(e);if(void 0===n||a<n.millis||a-n.millis>=16)return function(e,t,n,r){const a=c(e,t,n);if(0!==a||void 0===r)return a;const s=o(n);if(void 0===s)return a;const b=globalThis.performance.now();return!Number.isFinite(b)||b<r?(_.delete(e),a):(_.set(e,{millis:b,nanoseconds:i.getBigUint64(s,!0)}),a)}(e,t,r,a);s=n.nanoseconds+BigInt(Math.round(1e6*(a-n.millis)))}}const b=Date.now();if(!Number.isFinite(b)||b<0||void 0===n||b<n||b-n>=16)return c(e,t,r);const g=o(r);return void 0===g?c(e,t,r):(i.setBigUint64(g,s,!0),0)}}});let t,n=null;function _(){return null!==n&&n.buffer===t.memory.buffer||(n=new Uint8Array(t.memory.buffer)),n}let r="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&r.decode();const i=2146435072;let o=0;function c(e,t){return function(e,t){return o+=t,o>=i&&(r="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}},r.decode(),o=t),r.decode(_().slice(e,e+t))}(e>>>=0,t)}let a=0;const s="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},b=function(e,t){const n=s.encode(e);return t.set(n),{read:e.length,written:n.length}};function g(e,t,n){if(void 0===n){const n=s.encode(e),r=t(n.length,1)>>>0;return _().subarray(r,r+n.length).set(n),a=n.length,r}let r=e.length,i=t(r,1)>>>0;const o=_();let c=0;for(;c<r;c++){const t=e.charCodeAt(c);if(t>127)break;o[i+c]=t}if(c!==r){0!==c&&(e=e.slice(c)),i=n(i,r,r=c+3*e.length,1)>>>0;const t=_().subarray(i+c,i+r);c+=b(e,t).written,i=n(i,r,c,1)>>>0}return a=c,i}let w=null;function u(){return null!==w&&w.buffer===t.memory.buffer||(w=new DataView(t.memory.buffer)),w}function f(e){return null==e}function l(e){const n=t.__externref_table_alloc();return t.__wbindgen_export_5.set(n,e),n}function d(e,n){try{return e.apply(this,n)}catch(e){const n=l(e);t.__wbindgen_exn_store(n)}}function p(e,t){return e>>>=0,_().subarray(e/1,e/1+t)}const y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{t.__wbindgen_export_6.get(e.dtor)(e.a,e.b)}));function h(e,n,_,r){const i={a:e,b:n,cnt:1,dtor:_},o=(...e)=>{i.cnt++;const n=i.a;i.a=0;try{return r(n,i.b,...e)}finally{0==--i.cnt?(t.__wbindgen_export_6.get(i.dtor)(n,i.b),y.unregister(i)):i.a=n}};return o.original=i,y.register(o,i,i),o}function m(e,n,_,r){const i={a:e,b:n,cnt:1,dtor:_},o=(...e)=>{i.cnt++;try{return r(i.a,i.b,...e)}finally{0==--i.cnt&&(t.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,y.unregister(i))}};return o.original=i,y.register(o,i,i),o}function R(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=R(e[0]));for(let _=1;_<t;_++)n+=", "+R(e[_]);return n+="]",n}const n=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(!(n&&n.length>1))return toString.call(e);if(_=n[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function v(e){const n=t.__wbindgen_export_5.get(e);return t.__externref_table_dealloc(e),n}function A(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a,r=t.wat2wasm(n,_);if(r[2])throw v(r[1]);return v(r[0])}function k(){t.on_start()}function F(e){t.setSDKUrl(e)}function x(e){t.setWorkerUrl(e)}function z(e){var n=f(e)?0:g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;const r=t.initializeLogger(n,_);if(r[1])throw v(r[0])}function I(e,n){return t.runWasix(e,n)}function O(e,n,_){return t.instantiateOliphauntDirect(e,n,_)}function j(e,n){const _=t.prepareOliphauntTool(e,n);if(_[2])throw v(_[1]);return ce.__wrap(_[0])}function S(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function W(e,n,_,r){S(e,ce);return t.runOliphauntToolDirect(e.__wbg_ptr,n,_,r)}function M(e,n,_){t.closure501_externref_shim(e,n,_)}function T(e,n){return t.closure640_externref_shim(e,n)}function U(e,n,_){return t.closure642_externref_shim(e,n,_)}function D(e,n,_){const r=t.closure1390_externref_shim_multivalue_shim(e,n,_);if(r[2])throw v(r[1]);return v(r[0])}function B(e,n,_){const r=t.closure1389_externref_shim_multivalue_shim(e,n,_);if(r[1])throw v(r[0])}const L=["blob","arraybuffer"],E=["omit","same-origin","include"],C=["same-origin","no-cors","cors","navigate"],P=["classic","module"],q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_atom_free(e>>>0,1)));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_atom_free(e,0)}}const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_command_free(e>>>0,1)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,N.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_command_free(e,0)}get name(){return t.__wbg_get_command_name(this.__wbg_ptr)}set name(e){t.__wbg_set_command_name(this.__wbg_ptr,e)}run(e){return t.command_run(this.__wbg_ptr,f(e)?0:l(e))}binary(){return t.command_binary(this.__wbg_ptr)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_deployedapp_free(e>>>0,1)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_deployedapp_free(e,0)}get id(){let e,n;try{const _=t.__wbg_get_deployedapp_id(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set id(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_id(this.__wbg_ptr,n,_)}get created_at(){let e,n;try{const _=t.__wbg_get_deployedapp_created_at(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set created_at(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_created_at(this.__wbg_ptr,n,_)}get version(){let e,n;try{const _=t.__wbg_get_deployedapp_version(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set version(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_version(this.__wbg_ptr,n,_)}get description(){const e=t.__wbg_get_deployedapp_description(this.__wbg_ptr);let n;return 0!==e[0]&&(n=c(e[0],e[1]).slice(),t.canonical_abi_free(e[0],1*e[1],1)),n}set description(e){var n=f(e)?0:g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_description(this.__wbg_ptr,n,_)}get yaml_config(){let e,n;try{const _=t.__wbg_get_deployedapp_yaml_config(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set yaml_config(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_yaml_config(this.__wbg_ptr,n,_)}get user_yaml_config(){let e,n;try{const _=t.__wbg_get_deployedapp_user_yaml_config(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set user_yaml_config(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_user_yaml_config(this.__wbg_ptr,n,_)}get config(){let e,n;try{const _=t.__wbg_get_deployedapp_config(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set config(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_config(this.__wbg_ptr,n,_)}get json_config(){let e,n;try{const _=t.__wbg_get_deployedapp_json_config(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set json_config(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_json_config(this.__wbg_ptr,n,_)}get url(){let e,n;try{const _=t.__wbg_get_deployedapp_url(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set url(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_url(this.__wbg_ptr,n,_)}get app_id(){const e=t.__wbg_get_deployedapp_app_id(this.__wbg_ptr);let n;return 0!==e[0]&&(n=c(e[0],e[1]).slice(),t.canonical_abi_free(e[0],1*e[1],1)),n}set app_id(e){var n=f(e)?0:g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_app_id(this.__wbg_ptr,n,_)}}const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_directory_free(e>>>0,1)));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_directory_free(e,0)}__getClassname(){let e,n;try{const _=t.directory___getClassname(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}constructor(e){const n=t.directory_new(f(e)?0:l(e));if(n[2])throw v(n[1]);return this.__wbg_ptr=n[0]>>>0,H.register(this,this.__wbg_ptr,this),this}static createSync(e,n){const _=t.directory_createSync(e,n);if(_[2])throw v(_[1]);return J.__wrap(_[0])}readDir(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_readDir(this.__wbg_ptr,n,_)}writeFile(e,n){const _=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;return t.directory_writeFile(this.__wbg_ptr,_,r,n)}readFile(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_readFile(this.__wbg_ptr,n,_)}readTextFile(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_readTextFile(this.__wbg_ptr,n,_)}createDir(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_createDir(this.__wbg_ptr,n,_)}removeDir(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_removeDir(this.__wbg_ptr,n,_)}removeFile(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;return t.directory_removeFile(this.__wbg_ptr,n,_)}changedPaths(){const e=t.directory_changedPaths(this.__wbg_ptr);if(e[2])throw v(e[1]);return v(e[0])}clearChanges(){const e=t.directory_clearChanges(this.__wbg_ptr);if(e[1])throw v(e[0])}entryType(e){let n,_;try{const o=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),s=a,b=t.directory_entryType(this.__wbg_ptr,o,s);var r=b[0],i=b[1];if(b[3])throw r=0,i=0,v(b[2]);return n=r,_=i,c(r,i)}finally{t.canonical_abi_free(n,_,1)}}}const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_instance_free(e>>>0,1)));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,Y.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_instance_free(e,0)}get stdin(){return t.__wbg_get_instance_stdin(this.__wbg_ptr)}get stdout(){return t.__wbg_get_instance_stdout(this.__wbg_ptr)}get stderr(){return t.__wbg_get_instance_stderr(this.__wbg_ptr)}wait(){const e=this.__destroy_into_raw();return t.instance_wait(e)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_intounderlyingbytesource_free(e>>>0,1)));class Z{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_intounderlyingbytesource_free(e,0)}get type(){let e,n;try{const _=t.intounderlyingbytesource_type(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}get autoAllocateChunkSize(){return t.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}start(e){t.intounderlyingbytesource_start(this.__wbg_ptr,e)}pull(e){return t.intounderlyingbytesource_pull(this.__wbg_ptr,e)}cancel(){const e=this.__destroy_into_raw();t.intounderlyingbytesource_cancel(e)}}const ee="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_intounderlyingsink_free(e>>>0,1)));class te{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_intounderlyingsink_free(e,0)}write(e){return t.intounderlyingsink_write(this.__wbg_ptr,e)}close(){const e=this.__destroy_into_raw();return t.intounderlyingsink_close(e)}abort(e){const n=this.__destroy_into_raw();return t.intounderlyingsink_abort(n,e)}}const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_intounderlyingsource_free(e>>>0,1)));class _e{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_intounderlyingsource_free(e,0)}pull(e){return t.intounderlyingsource_pull(this.__wbg_ptr,e)}cancel(){const e=this.__destroy_into_raw();t.intounderlyingsource_cancel(e)}}const re="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_oliphauntdirectinstance_free(e>>>0,1)));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_oliphauntdirectinstance_free(e,0)}startup(e){const n=t.oliphauntdirectinstance_startup(this.__wbg_ptr,e);if(n[2])throw v(n[1]);return v(n[0])}execProtocolRaw(e){const n=t.oliphauntdirectinstance_execProtocolRaw(this.__wbg_ptr,e);if(n[2])throw v(n[1]);return v(n[0])}execProtocolStream(e,n){const _=t.oliphauntdirectinstance_execProtocolStream(this.__wbg_ptr,e,n);if(_[2])throw v(_[1]);return _[0]>>>0}execProtocolDuplex(e,n,_){const r=t.oliphauntdirectinstance_execProtocolDuplex(this.__wbg_ptr,e,n,_);if(r[1])throw v(r[0])}close(){const e=t.oliphauntdirectinstance_close(this.__wbg_ptr);if(e[1])throw v(e[0])}}const oe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_oliphauntpreparedtool_free(e>>>0,1)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_oliphauntpreparedtool_free(e,0)}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_publishpackageoutput_free(e>>>0,1)));class se{static __wrap(e){e>>>=0;const t=Object.create(se.prototype);return t.__wbg_ptr=e,ae.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_publishpackageoutput_free(e,0)}get manifest(){return t.__wbg_get_publishpackageoutput_manifest(this.__wbg_ptr)}set manifest(e){t.__wbg_set_publishpackageoutput_manifest(this.__wbg_ptr,e)}get hash(){let e,n;try{const _=t.__wbg_get_publishpackageoutput_hash(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set hash(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_deployedapp_id(this.__wbg_ptr,n,_)}}const be="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_readablestreamsource_free(e>>>0,1)));class ge{static __wrap(e){e>>>=0;const t=Object.create(ge.prototype);return t.__wbg_ptr=e,be.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,be.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_readablestreamsource_free(e,0)}pull(e){return t.readablestreamsource_pull(this.__wbg_ptr,e)}cancel(){t.readablestreamsource_cancel(this.__wbg_ptr)}get type(){return t.readablestreamsource_type(this.__wbg_ptr)}}const we="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_runtime_free(e>>>0,1)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,we.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,we.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_runtime_free(e,0)}__getClassname(){let e,n;try{const _=t.runtime___getClassname(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}constructor(e){const n=t.runtime_js_new(f(e)?0:l(e));if(n[2])throw v(n[1]);return this.__wbg_ptr=n[0]>>>0,we.register(this,this.__wbg_ptr,this),this}static global(e){const n=t.runtime_global(f(e)?16777215:e?1:0);if(n[2])throw v(n[1]);return 0===n[0]?void 0:ue.__wrap(n[0])}}const fe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_threadpoolworker_free(e>>>0,1)));class le{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fe.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_threadpoolworker_free(e,0)}constructor(e){const n=t.threadpoolworker_new(e);return this.__wbg_ptr=n>>>0,fe.register(this,this.__wbg_ptr,this),this}handle(e){return t.threadpoolworker_handle(this.__wbg_ptr,e)}}const de="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_trap_free(e>>>0,1)));class pe{static __wrap(e){e>>>=0;const t=Object.create(pe.prototype);return t.__wbg_ptr=e,de.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,de.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_trap_free(e,0)}static __wbg_wasmer_trap(){t.trap___wbg_wasmer_trap()}}const ye="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_user_free(e>>>0,1)));class he{static __wrap(e){e>>>=0;const t=Object.create(he.prototype);return t.__wbg_ptr=e,ye.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ye.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_user_free(e,0)}get id(){let e,n;try{const _=t.__wbg_get_user_id(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set id(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_user_id(this.__wbg_ptr,n,_)}get username(){let e,n;try{const _=t.__wbg_get_user_username(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set username(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_user_username(this.__wbg_ptr,n,_)}}const me="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_userpackagedefinition_free(e>>>0,1)));class Re{static __wrap(e){e>>>=0;const t=Object.create(Re.prototype);return t.__wbg_ptr=e,me.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Re?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,me.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_userpackagedefinition_free(e,0)}__getClassname(){let e,n;try{const _=t.userpackagedefinition___getClassname(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}get hash(){let e,n;try{const _=t.__wbg_get_userpackagedefinition_hash(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}set hash(e){const n=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),_=a;t.__wbg_set_userpackagedefinition_hash(this.__wbg_ptr,n,_)}}const ve="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_volume_free(e>>>0,1)));class Ae{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ve.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_volume_free(e,0)}}const ke="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_wasmer_free(e>>>0,1)));class Fe{static __wrap(e){e>>>=0;const t=Object.create(Fe.prototype);return t.__wbg_ptr=e,ke.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ke.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_wasmer_free(e,0)}static whoami(){return t.wasmer_whoami()}__getClassname(){let e,n;try{const _=t.wasmer___getClassname(this.__wbg_ptr);return e=_[0],n=_[1],c(_[0],_[1])}finally{t.canonical_abi_free(e,n,1)}}get entrypoint(){const e=t.__wbg_get_wasmer_entrypoint(this.__wbg_ptr);return 0===e?void 0:$.__wrap(e)}set entrypoint(e){let n=0;f(e)||(S(e,$),n=e.__destroy_into_raw()),t.__wbg_set_wasmer_entrypoint(this.__wbg_ptr,n)}get commands(){return t.__wbg_get_wasmer_commands(this.__wbg_ptr)}set commands(e){t.__wbg_set_wasmer_commands(this.__wbg_ptr,e)}get pkg(){const e=t.__wbg_get_wasmer_pkg(this.__wbg_ptr);return 0===e?void 0:Re.__wrap(e)}set pkg(e){let n=0;f(e)||(S(e,Re),n=e.__destroy_into_raw()),t.__wbg_set_wasmer_pkg(this.__wbg_ptr,n)}static fromRegistry(e,n){const _=g(e,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;return t.wasmer_fromRegistry(_,r,f(n)?0:l(n))}static fromFile(e,n){return t.wasmer_fromFile(e,f(n)?0:l(n))}static fromWasm(e,n){const _=t.wasmer_fromWasm(e,f(n)?0:l(n));if(_[2])throw v(_[1]);return Fe.__wrap(_[0])}static deployApp(e){return t.wasmer_deployApp(e)}static deleteApp(e){return t.wasmer_deleteApp(e)}static createPackage(e){return t.wasmer_createPackage(e)}static publishPackage(e){S(e,Fe);return t.wasmer_publishPackage(e.__wbg_ptr)}}const xe="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_wasmerpackage_free(e>>>0,1)));class ze{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xe.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_wasmerpackage_free(e,0)}get manifest(){return t.__wbg_get_wasmerpackage_manifest(this.__wbg_ptr)}set manifest(e){t.__wbg_set_wasmerpackage_manifest(this.__wbg_ptr,e)}get data(){const e=t.__wbg_get_wasmerpackage_data(this.__wbg_ptr);var n=p(e[0],e[1]).slice();return t.canonical_abi_free(e[0],1*e[1],1),n}set data(e){const n=function(e,t){const n=t(1*e.length,1)>>>0;return _().set(e,n/1),a=e.length,n}(e,t.__wbindgen_malloc),r=a;t.__wbg_set_deployedapp_id(this.__wbg_ptr,n,r)}}const Ie="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>t.__wbg_writablestreamsink_free(e>>>0,1)));class Oe{static __wrap(e){e>>>=0;const t=Object.create(Oe.prototype);return t.__wbg_ptr=e,Ie.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ie.unregister(this),e}free(){const e=this.__destroy_into_raw();t.__wbg_writablestreamsink_free(e,0)}close(){return t.writablestreamsink_close(this.__wbg_ptr)}abort(e){t.writablestreamsink_abort(this.__wbg_ptr,e)}write(e){return t.writablestreamsink_write(this.__wbg_ptr,e)}}const je=new Set(["basic","cors","default"]);function Se(){const n={wbg:{}};return n.wbg.__wbg_BigInt_6e3a01c3311ee796=function(e){return BigInt(e)},n.wbg.__wbg_Error_0497d5bdba9362e5=function(e,t){return Error(c(e,t))},n.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,n){const _=g(String(n),t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbg_abort_18ba44d46e13d7fe=function(e){e.abort()},n.wbg.__wbg_apiKey_136c64a1dd577ea4=function(e,n){const _=n.apiKey;var r=f(_)?0:g(_,t.__wbindgen_malloc,t.__wbindgen_realloc),i=a;u().setInt32(e+4,i,!0),u().setInt32(e+0,r,!0)},n.wbg.__wbg_append_0342728346e47425=function(){return d((function(e,t,n,_,r){e.append(c(t,n),c(_,r))}),arguments)},n.wbg.__wbg_apply_8745fdcf855d21f5=function(){return d((function(e,t,n){return e.apply(t,n)}),arguments)},n.wbg.__wbg_apply_d49e9c0472b015cc=function(){return d((function(e,t,n){return Reflect.apply(e,t,n)}),arguments)},n.wbg.__wbg_args_ce3906bca5fd2b6f=function(e){const t=e.args;return f(t)?0:l(t)},n.wbg.__wbg_arrayBuffer_d58b858456021d7f=function(){return d((function(e){return e.arrayBuffer()}),arguments)},n.wbg.__wbg_assert_83d6354717cc805b=function(e,t){console.assert(0!==e,t)},n.wbg.__wbg_async_89f8ca583cefeb81=function(e){return e.async},n.wbg.__wbg_bind_1e748fe02d440d48=function(e,t,n){return e.bind(t,n)},n.wbg.__wbg_bind_d075481af636a524=function(e,t,n,_){return e.bind(t,n,_)},n.wbg.__wbg_buffer_a1a27a0dfa70165d=function(e){return e.buffer},n.wbg.__wbg_buffer_e495ba54cee589cc=function(e){return e.buffer},n.wbg.__wbg_byobRequest_56aa768ee4dfed17=function(e){const t=e.byobRequest;return f(t)?0:l(t)},n.wbg.__wbg_byteLength_937f8a52f9697148=function(e){return e.byteLength},n.wbg.__wbg_byteLength_bf6d30ef92bae19b=function(e){return e.byteLength},n.wbg.__wbg_byteOffset_4d94b7170e641898=function(e){return e.byteOffset},n.wbg.__wbg_call_f2db6205e5c51dc8=function(){return d((function(e,t,n){return e.call(t,n)}),arguments)},n.wbg.__wbg_call_fbe8be8bf6436ce5=function(){return d((function(e,t){return e.call(t)}),arguments)},n.wbg.__wbg_close_290fb040af98d3ac=function(){return d((function(e){e.close()}),arguments)},n.wbg.__wbg_close_b2641ef0870e518c=function(){return d((function(e){e.close()}),arguments)},n.wbg.__wbg_close_f203332f9561bf29=function(e){return e.close()},n.wbg.__wbg_colno_1fbc9165b6cd1b26=function(e){return e.colno},n.wbg.__wbg_command_new=function(e){return $.__wrap(e)},n.wbg.__wbg_compile_b206843d6dde9918=function(e){return WebAssembly.compile(e)},n.wbg.__wbg_constructor_1a4f07ad72d5cac3=function(e){return e.constructor},n.wbg.__wbg_createObjectURL_1acd82bf8749f5a9=function(){return d((function(e,n){const _=g(URL.createObjectURL(n),t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)}),arguments)},n.wbg.__wbg_crypto_ed58b8e10a292839=function(e){return e.crypto},n.wbg.__wbg_customSections_3a8a19674e217d36=function(e,t,n){return WebAssembly.Module.customSections(e,c(t,n))},n.wbg.__wbg_cwd_13b069cde8a90c68=function(e,n){const _=n.cwd;var r=f(_)?0:g(_,t.__wbindgen_malloc,t.__wbindgen_realloc),i=a;u().setInt32(e+4,i,!0),u().setInt32(e+0,r,!0)},n.wbg.__wbg_data_fffd43bf0ca75fff=function(e){return e.data},n.wbg.__wbg_defineProperty_6a428a581612fed4=function(e,t,n){return Object.defineProperty(e,t,n)},n.wbg.__wbg_deleteProperty_ec71c2c829351683=function(){return d((function(e,t){return Reflect.deleteProperty(e,t)}),arguments)},n.wbg.__wbg_deployedapp_new=function(e){return K.__wrap(e)},n.wbg.__wbg_desiredSize_dd7689d8aa7da7dd=function(e,t){const n=t.desiredSize;u().setFloat64(e+8,f(n)?0:n,!0),u().setInt32(e+0,!f(n),!0)},n.wbg.__wbg_done_4d01f352bade43b7=function(e){return e.done},n.wbg.__wbg_enqueue_a62faa171c4fd287=function(){return d((function(e,t){e.enqueue(t)}),arguments)},n.wbg.__wbg_entries_41651c850143b957=function(e){return Object.entries(e)},n.wbg.__wbg_env_6b7462d491e7d2ae=function(e){return e.env},n.wbg.__wbg_error_1950bd19b566135e=function(e,t){e.error(t)},n.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let _,r;try{_=e,r=n,console.error(c(e,n))}finally{t.canonical_abi_free(_,r,1)}},n.wbg.__wbg_exports_5cb55953fb23c405=function(e){return e.exports},n.wbg.__wbg_exports_93f662ec1dd2b1e2=function(e){return WebAssembly.Module.exports(e)},n.wbg.__wbg_fetch_03b6c973bb6da9b8=function(e){return fetch(e)},n.wbg.__wbg_fetch_6e679fcfa9759479=function(e,t){return e.fetch(t)},n.wbg.__wbg_fetch_a8e43a4e138dfc93=function(e,t){return e.fetch(t)},n.wbg.__wbg_filename_5c8881452d91f4fd=function(e,n){const _=g(n.filename,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbg_for_555902b1a859c603=function(e,t){return Symbol.for(c(e,t))},n.wbg.__wbg_from_12ff8e47307bd4c7=function(e){return Array.from(e)},n.wbg.__wbg_getPrototypeOf_a1794d62c12daab4=function(){return d((function(e){return Reflect.getPrototypeOf(e)}),arguments)},n.wbg.__wbg_getRandomValues_bcb4912f16000dc4=function(){return d((function(e,t){e.getRandomValues(t)}),arguments)},n.wbg.__wbg_getTime_2afe67905d873e92=function(e){return e.getTime()},n.wbg.__wbg_get_92470be87867c2e5=function(){return d((function(e,t){return Reflect.get(e,t)}),arguments)},n.wbg.__wbg_get_a131a44bd1eb6979=function(e,t){return e[t>>>0]},n.wbg.__wbg_get_be8d302ec5bf8863=function(){return d((function(e,t){return e.get(t>>>0)}),arguments)},n.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,t){return e[t]},n.wbg.__wbg_grow_0a942972adfcde67=function(){return d((function(e,t){return e.grow(t>>>0)}),arguments)},n.wbg.__wbg_grow_ae9c73e837b2d936=function(e,t){return e.grow(t>>>0)},n.wbg.__wbg_grow_d034989fce14cc8e=function(){return d((function(e,t){return e.grow(t>>>0)}),arguments)},n.wbg.__wbg_hardwareConcurrency_10d7194b406e56d2=function(e){return e.hardwareConcurrency},n.wbg.__wbg_hardwareConcurrency_fd778a5fdf975150=function(e){return e.hardwareConcurrency},n.wbg.__wbg_has_809e438ee9d787a7=function(){return d((function(e,t){return Reflect.has(e,t)}),arguments)},n.wbg.__wbg_headers_0f0cbdc6290b6780=function(e){return e.headers},n.wbg.__wbg_headers_67fbc7839fe933b3=function(e){return e.headers},n.wbg.__wbg_imports_1f5c972c2e57dfb5=function(e){return WebAssembly.Module.imports(e)},n.wbg.__wbg_instance_new=function(e){return Q.__wrap(e)},n.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc=function(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Blob_2688511ca2a71508=function(e){let t;try{t=e instanceof Blob}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Date_ef7e3d6f544a9d16=function(e){let t;try{t=e instanceof Date}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Error_58a92d81483a4b16=function(e){let t;try{t=e instanceof Error}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Function_4de5a228b53c20c3=function(e){let t;try{t=e instanceof Function}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Global_d43eb3e1373e574d=function(e){let t;try{t=e instanceof WebAssembly.Global}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Map_80cc65041c96417a=function(e){let t;try{t=e instanceof Map}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Memory_613951003465ef5c=function(e){let t;try{t=e instanceof WebAssembly.Memory}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Module_ac6579472cc013d8=function(e){let t;try{t=e instanceof WebAssembly.Module}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Object_9a05796038b7a8f6=function(e){let t;try{t=e instanceof Object}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_RangeError_67b19cb7651a2151=function(e){let t;try{t=e instanceof RangeError}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2=function(e){let t;try{t=e instanceof Response}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Table_a5fae5b77c0e21e8=function(e){let t;try{t=e instanceof WebAssembly.Table}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Tag_ff306496211677da=function(e){let t;try{t=e instanceof WebAssembly.Tag}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_TypeError_16d245a01d4dd626=function(e){let t;try{t=e instanceof TypeError}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827=function(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_Window_68f3f67bad1729c1=function(e){let t;try{t=e instanceof Window}catch(e){t=!1}return t},n.wbg.__wbg_instanceof_WorkerGlobalScope_11f8a14c11024785=function(e){let t;try{t=e instanceof WorkerGlobalScope}catch(e){t=!1}return t},n.wbg.__wbg_instantiate_f487a4cdb9ad18ac=function(e,t){return WebAssembly.instantiate(e,t)},n.wbg.__wbg_isArray_2a07fd175d45c496=function(e){return Array.isArray(e)},n.wbg.__wbg_isArray_5f090bed72bd4f89=function(e){return Array.isArray(e)},n.wbg.__wbg_isSafeInteger_90d7c4674047d684=function(e){return Number.isSafeInteger(e)},n.wbg.__wbg_is_49ee71a294f7d2fe=function(e,t){return Object.is(e,t)},n.wbg.__wbg_iterator_4068add5b2aef7a6=function(){return Symbol.iterator},n.wbg.__wbg_keys_42062809bf87339e=function(e){return Object.keys(e)},n.wbg.__wbg_length_865e6e8de4a8c6cb=function(e){return e.length},n.wbg.__wbg_length_ab6d22b5ead75c72=function(e){return e.length},n.wbg.__wbg_length_f00ec12454a5d9fd=function(e){return e.length},n.wbg.__wbg_lineno_9fe2a23a82cebd53=function(e){return e.lineno},n.wbg.__wbg_locked_c5cc88823268db66=function(e){return e.locked},n.wbg.__wbg_log_ea240990d83e374e=function(e){console.log(e)},n.wbg.__wbg_message_4159c15dac08c5e9=function(e){return e.message},n.wbg.__wbg_message_44ef9b801b7d8bc3=function(e,n){const _=g(n.message,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbg_moduleBytes_32de83ad4e0b2ed1=function(e){const t=e.moduleBytes;return f(t)?0:l(t)},n.wbg.__wbg_mount_dfb06836b0f9b20b=function(e){return e.mount},n.wbg.__wbg_msCrypto_0a36e2ec3a343d26=function(e){return e.msCrypto},n.wbg.__wbg_navigator_6db993f5ffeb46be=function(e){return e.navigator},n.wbg.__wbg_navigator_fc64ba1417939b25=function(e){return e.navigator},n.wbg.__wbg_networkGateway_79e326cb5c82e7fd=function(e,n){const _=n.networkGateway;var r=f(_)?0:g(_,t.__wbindgen_malloc,t.__wbindgen_realloc),i=a;u().setInt32(e+4,i,!0),u().setInt32(e+0,r,!0)},n.wbg.__wbg_new_07b483f72211fd66=function(){return new Object},n.wbg.__wbg_new_104a6fcd57ac32c0=function(){return d((function(){return new FileReader}),arguments)},n.wbg.__wbg_new_181343b7eb238d99=function(e){return new Int32Array(e)},n.wbg.__wbg_new_186abcfdff244e42=function(){return d((function(){return new AbortController}),arguments)},n.wbg.__wbg_new_2debb2b422bd07bd=function(){return d((function(e,t){return new WebAssembly.Global(e,t)}),arguments)},n.wbg.__wbg_new_39fae4e38868373c=function(){return d((function(e,t){return new Worker(c(e,t))}),arguments)},n.wbg.__wbg_new_476169e6d59f23ae=function(e,t){return new Error(c(e,t))},n.wbg.__wbg_new_4796e1cd2eb9ea6d=function(){return d((function(){return new Headers}),arguments)},n.wbg.__wbg_new_58353953ad2097cc=function(){return new Array},n.wbg.__wbg_new_5dd74caa1b362828=function(){return d((function(e){return new WebAssembly.Module(e)}),arguments)},n.wbg.__wbg_new_7449da607adc249f=function(){return d((function(e,t){return new WebAssembly.Instance(e,t)}),arguments)},n.wbg.__wbg_new_75fba833e24e4ae9=function(){return d((function(e){return new WebAssembly.Memory(e)}),arguments)},n.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},n.wbg.__wbg_new_a4e7a0370d48e1b4=function(){return d((function(e){return new ReadableStreamDefaultReader(e)}),arguments)},n.wbg.__wbg_new_a979b4b45bd55c7f=function(){return new Map},n.wbg.__wbg_new_b60148568efca43b=function(e,t){return new TypeError(c(e,t))},n.wbg.__wbg_new_e30c39c06edaabf2=function(e,n){try{var _={a:e,b:n};const r=new Promise(((e,n)=>{const r=_.a;_.a=0;try{return function(e,n,_,r){t.closure263_externref_shim(e,n,_,r)}(r,_.b,e,n)}finally{_.a=r}}));return r}finally{_.a=_.b=0}},n.wbg.__wbg_new_e52b3efaaa774f96=function(e){return new Uint8Array(e)},n.wbg.__wbg_new_e769da3b652f0d9f=function(){return d((function(e){return new WebAssembly.Table(e)}),arguments)},n.wbg.__wbg_new_f42a001532528172=function(){return d((function(e,t){return new WebSocket(c(e,t))}),arguments)},n.wbg.__wbg_new_fd4b538754de98d6=function(){return d((function(e){return new WebAssembly.Tag(e)}),arguments)},n.wbg.__wbg_newfromslice_7c05ab1297cb2d88=function(e,t){return new Uint8Array(p(e,t))},n.wbg.__wbg_newnoargs_ff528e72d35de39a=function(e,t){return new Function(c(e,t))},n.wbg.__wbg_newwithargs_17a05078fc85d3aa=function(e,t,n,_){return new Function(c(e,t),c(n,_))},n.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},n.wbg.__wbg_newwithlength_08f872dc1e3ada2e=function(e){return new Uint8Array(e>>>0)},n.wbg.__wbg_newwithlength_6ee231411efd06b6=function(e){return new Array(e>>>0)},n.wbg.__wbg_newwithoptions_9931e161b714ebf9=function(){return d((function(e,t,n){return new Worker(c(e,t),n)}),arguments)},n.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37=function(){return d((function(e,t,n){return new Request(c(e,t),n)}),arguments)},n.wbg.__wbg_newwithu8arraysequenceandoptions_3b5b6ab7317ffd8f=function(){return d((function(e,t){return new Blob(e,t)}),arguments)},n.wbg.__wbg_newwithunderlyingsinkandstrategy_481c2b5a223a4560=function(){return d((function(e,t){return new WritableStream(e,t)}),arguments)},n.wbg.__wbg_newwithunderlyingsourceandstrategy_594ea2be3e0723ff=function(){return d((function(e,t){return new ReadableStream(e,t)}),arguments)},n.wbg.__wbg_next_8bb824d217961b5d=function(e){return e.next},n.wbg.__wbg_next_e2da48d8fff7439a=function(){return d((function(e){return e.next()}),arguments)},n.wbg.__wbg_node_02999533c4ea02e3=function(e){return e.node},n.wbg.__wbg_now_7ab37f05ab2d0b81=function(e){return e.now()},n.wbg.__wbg_now_eb0821f3bd9f6529=function(){return Date.now()},n.wbg.__wbg_of_995ab9c48c3965f1=function(e,t,n){return Array.of(e,t,n)},n.wbg.__wbg_oliphauntCopyFromGuest_8c2c6e2520c9fc95=function(){return d((function(e,t,n){var _,r;return _=t>>>0,r=n>>>0,new Uint8Array(e.buffer,_,r).slice()}),arguments)},n.wbg.__wbg_oliphauntCopyToGuest_a8e15be4fb526fed=function(){return d((function(e,t,n){var _,r;_=t>>>0,r=n,new Uint8Array(e.buffer,_,r.byteLength).set(r)}),arguments)},n.wbg.__wbg_oliphauntdirectinstance_new=function(e){return ie.__wrap(e)},n.wbg.__wbg_postMessage_54ce7f4b41ac732e=function(){return d((function(e,t){e.postMessage(t)}),arguments)},n.wbg.__wbg_postMessage_95ef4554c6b7ca0c=function(){return d((function(e,t){e.postMessage(t)}),arguments)},n.wbg.__wbg_process_5c1d670bc53614b8=function(e){return e.process},n.wbg.__wbg_program_0ccd177127e926dc=function(e){return e.program},n.wbg.__wbg_publishpackageoutput_new=function(e){return se.__wrap(e)},n.wbg.__wbg_push_73fd7b5550ebf707=function(e,t){return e.push(t)},n.wbg.__wbg_queueMicrotask_46c1df247678729f=function(e){queueMicrotask(e)},n.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11=function(e){return e.queueMicrotask},n.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740=function(){return d((function(e,t){e.randomFillSync(t)}),arguments)},n.wbg.__wbg_random_210bb7fbfa33591d=function(){return Math.random()},n.wbg.__wbg_readAsArrayBuffer_ec86f70be9ee80e9=function(){return d((function(e,t){e.readAsArrayBuffer(t)}),arguments)},n.wbg.__wbg_read_f4b89f69cc51efc7=function(e){return e.read()},n.wbg.__wbg_readablestreamsource_new=function(e){return ge.__wrap(e)},n.wbg.__wbg_redirected_380499cd18bc27c0=function(e){return e.redirected},n.wbg.__wbg_registry_0193688f92324c7c=function(e){const t=e.registry;return f(t)?0:l(t)},n.wbg.__wbg_releaseLock_c589dd51c0812aca=function(e){e.releaseLock()},n.wbg.__wbg_require_79b1e9274cde3c87=function(){return d((function(){return module.require}),arguments)},n.wbg.__wbg_resolve_0dac8c580ffd4678=function(e){return Promise.resolve(e)},n.wbg.__wbg_respond_b227f1c3be2bb879=function(){return d((function(e,t){e.respond(t>>>0)}),arguments)},n.wbg.__wbg_result_142fc4d88cbccb26=function(){return d((function(e){return e.result}),arguments)},n.wbg.__wbg_runtime_3a007260b7cad09f=function(e){return e.runtime},n.wbg.__wbg_send_05456d2bf190b017=function(){return d((function(e,t){e.send(t)}),arguments)},n.wbg.__wbg_setTimeout_84a114fc6c4403f8=function(){return d((function(e,t,n){return e.setTimeout(t,n)}),arguments)},n.wbg.__wbg_setTimeout_906fea9a7279f446=function(){return d((function(e,t,n){return e.setTimeout(t,n)}),arguments)},n.wbg.__wbg_set_3f1d0b984ed272ed=function(e,t,n){e[t]=n},n.wbg.__wbg_set_7422acbe992d64ab=function(e,t,n){e[t>>>0]=n},n.wbg.__wbg_set_b042eef31c50834d=function(){return d((function(e,t,n,_,r){e.set(c(t,n),c(_,r))}),arguments)},n.wbg.__wbg_set_c43293f93a35998a=function(){return d((function(e,t,n){return Reflect.set(e,t,n)}),arguments)},n.wbg.__wbg_set_d6bdfd275fb8a4ce=function(e,t,n){return e.set(t,n)},n.wbg.__wbg_set_eeace154fc5ce736=function(){return d((function(e,t,n){e.set(t>>>0,n)}),arguments)},n.wbg.__wbg_set_fe4e79d1ed3b0e9b=function(e,t,n){e.set(t,n>>>0)},n.wbg.__wbg_setbinaryType_52787d6025601cc5=function(e,t){e.binaryType=L[t]},n.wbg.__wbg_setbody_971ec015fc13d6b4=function(e,t){e.body=t},n.wbg.__wbg_setcredentials_920d91fb5984c94a=function(e,t){e.credentials=E[t]},n.wbg.__wbg_setheaders_65a4eb4c0443ae61=function(e,t){e.headers=t},n.wbg.__wbg_sethighwatermark_3017ad772d071dcb=function(e,t){e.highWaterMark=t},n.wbg.__wbg_setmethod_8ce1be0b4d701b7c=function(e,t,n){e.method=c(t,n)},n.wbg.__wbg_setmode_bd35f026f55b6247=function(e,t){e.mode=C[t]},n.wbg.__wbg_setname_9b01ac306adf8bfd=function(e,t,n){e.name=c(t,n)},n.wbg.__wbg_setonclose_c6db38f935250174=function(e,t){e.onclose=t},n.wbg.__wbg_setonerror_890bfd1ff86e9c78=function(e,t){e.onerror=t},n.wbg.__wbg_setonloadend_a6c211075855db45=function(e,t){e.onloadend=t},n.wbg.__wbg_setonmessage_49ca623a77cfb3e6=function(e,t){e.onmessage=t},n.wbg.__wbg_setonmessage_f6cf46183c427754=function(e,t){e.onmessage=t},n.wbg.__wbg_setonopen_1475cbeb761c101f=function(e,t){e.onopen=t},n.wbg.__wbg_setsignal_8e72abfe7ee03c97=function(e,t){e.signal=t},n.wbg.__wbg_setsize_13f2192310db9b34=function(e,t){e.size=t},n.wbg.__wbg_settype_acc38e64fddb9e3f=function(e,t,n){e.type=c(t,n)},n.wbg.__wbg_settype_ca83ae32b7117898=function(e,t){e.type=P[t]},n.wbg.__wbg_setvalue_bd9df7c968e4b416=function(e,t){e.value=t},n.wbg.__wbg_signal_b96223519a041faa=function(e){return e.signal},n.wbg.__wbg_slice_3d0e7815d7b9d2ee=function(e,t,n){return e.slice(t>>>0,n>>>0)},n.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const _=g(n.stack,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d=function(){const e="undefined"==typeof global?null:global;return f(e)?0:l(e)},n.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291=function(){const e="undefined"==typeof globalThis?null:globalThis;return f(e)?0:l(e)},n.wbg.__wbg_static_accessor_SELF_78c9e3071b912620=function(){const e="undefined"==typeof self?null:self;return f(e)?0:l(e)},n.wbg.__wbg_static_accessor_WINDOW_a093d21393777366=function(){const e="undefined"==typeof window?null:window;return f(e)?0:l(e)},n.wbg.__wbg_status_a54682bbe52f9058=function(e){return e.status},n.wbg.__wbg_stdin_4d05ba90fc2c39de=function(e){const t=e.stdin;return f(t)?0:l(t)},n.wbg.__wbg_stringify_c242842b97f054cc=function(){return d((function(e){return JSON.stringify(e)}),arguments)},n.wbg.__wbg_subarray_dd4ade7d53bd8e26=function(e,t,n){return e.subarray(t>>>0,n>>>0)},n.wbg.__wbg_terminate_af36b01db24a1745=function(e){e.terminate()},n.wbg.__wbg_text_ec0e22f60e30dd2f=function(){return d((function(e){return e.text()}),arguments)},n.wbg.__wbg_then_82ab9fb4080f1707=function(e,t,n){return e.then(t,n)},n.wbg.__wbg_then_db882932c0c714c6=function(e,t){return e.then(t)},n.wbg.__wbg_toString_2a748bb7135f7e4d=function(e,n,_){const r=g(n.toString(_),t.__wbindgen_malloc,t.__wbindgen_realloc),i=a;u().setInt32(e+4,i,!0),u().setInt32(e+0,r,!0)},n.wbg.__wbg_toString_bc7a05a172b5cf14=function(e){return e.toString()},n.wbg.__wbg_trap_new=function(e){return pe.__wrap(e)},n.wbg.__wbg_url_e6ed869ea05b7a71=function(e,n){const _=g(n.url,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbg_userAgent_470abfd84e4eedcb=function(){return d((function(e,n){const _=g(n.userAgent,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)}),arguments)},n.wbg.__wbg_userAgent_a24a493cd80cbd00=function(){return d((function(e,n){const _=g(n.userAgent,t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)}),arguments)},n.wbg.__wbg_user_new=function(e){return he.__wrap(e)},n.wbg.__wbg_userpackagedefinition_unwrap=function(e){return Re.__unwrap(e)},n.wbg.__wbg_uses_7494620cc35a86ad=function(e){const t=e.uses;return f(t)?0:l(t)},n.wbg.__wbg_value_17b896954e14f896=function(e){return e.value},n.wbg.__wbg_value_c22dc41e42f5d813=function(e){return e.value},n.wbg.__wbg_value_f8fe3ce05407a213=function(e){return e.value},n.wbg.__wbg_versions_c71aa1626a93e0a1=function(e){return e.versions},n.wbg.__wbg_view_a9ad80dcbad7cf1c=function(e){const t=e.view;return f(t)?0:l(t)},n.wbg.__wbg_waitAsync_c3398694eaa5aeab=function(e,t,n){return Atomics.waitAsync(e,t>>>0,n)},n.wbg.__wbg_waitAsync_e36f18e2e26c3b7d=function(){return Atomics.waitAsync},n.wbg.__wbg_wasmer_new=function(e){return Fe.__wrap(e)},n.wbg.__wbg_writablestreamsink_new=function(e){return Oe.__wrap(e)},n.wbg.__wbindgen_array_new=function(){return[]},n.wbg.__wbindgen_array_push=function(e,t){e.push(t)},n.wbg.__wbindgen_as_number=function(e){return+e},n.wbg.__wbindgen_bigint_from_i64=function(e){return e},n.wbg.__wbindgen_bigint_from_u128=function(e,t){return BigInt.asUintN(64,e)<<BigInt(64)|BigInt.asUintN(64,t)},n.wbg.__wbindgen_bigint_from_u64=function(e){return BigInt.asUintN(64,e)},n.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const n="bigint"==typeof t?t:void 0;u().setBigInt64(e+8,f(n)?BigInt(0):n,!0),u().setInt32(e+0,!f(n),!0)},n.wbg.__wbindgen_boolean_get=function(e){return"boolean"==typeof e?e?1:0:2},n.wbg.__wbindgen_cb_drop=function(e){const t=e.original;if(1==t.cnt--)return t.a=0,!0;return!1},n.wbg.__wbindgen_closure_wrapper1446=function(e,t,n){return h(e,t,500,M)},n.wbg.__wbindgen_closure_wrapper1447=function(e,t,n){return h(e,t,500,M)},n.wbg.__wbindgen_closure_wrapper5016=function(e,t,n){return h(e,t,500,M)},n.wbg.__wbindgen_closure_wrapper6282=function(e,t,n){return m(e,t,500,T)},n.wbg.__wbindgen_closure_wrapper6289=function(e,t,n){return m(e,t,500,U)},n.wbg.__wbindgen_closure_wrapper6301=function(e,t,n){return h(e,t,500,M)},n.wbg.__wbindgen_closure_wrapper6879=function(e,t,n){return h(e,t,500,D)},n.wbg.__wbindgen_closure_wrapper6880=function(e,t,n){return h(e,t,500,D)},n.wbg.__wbindgen_closure_wrapper6881=function(e,t,n){return h(e,t,500,B)},n.wbg.__wbindgen_debug_string=function(e,n){const _=g(R(n),t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbindgen_function_table=function(){return t.__wbindgen_export_6},n.wbg.__wbindgen_in=function(e,t){return e in t},n.wbg.__wbindgen_init_externref_table=function(){const e=t.__wbindgen_export_5,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},n.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof e},n.wbg.__wbindgen_is_falsy=function(e){return!e},n.wbg.__wbindgen_is_function=function(e){return"function"==typeof e},n.wbg.__wbindgen_is_null=function(e){return null===e},n.wbg.__wbindgen_is_object=function(e){return"object"==typeof e&&null!==e},n.wbg.__wbindgen_is_string=function(e){return"string"==typeof e},n.wbg.__wbindgen_is_undefined=function(e){return void 0===e},n.wbg.__wbindgen_jsval_eq=function(e,t){return e===t},n.wbg.__wbindgen_jsval_loose_eq=function(e,t){return e==t},n.wbg.__wbindgen_link_db87ac8434ca3f93=function(e){const n="onmessage = function (ev) {\n let [ia, index, value] = ev.data;\n ia = new Int32Array(ia.buffer);\n let result = Atomics.wait(ia, index, value);\n postMessage(result);\n };\n ",_=g(void 0===URL.createObjectURL?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),t.__wbindgen_malloc,t.__wbindgen_realloc),r=a;u().setInt32(e+4,r,!0),u().setInt32(e+0,_,!0)},n.wbg.__wbindgen_lt=function(e,t){return e<t},n.wbg.__wbindgen_memory=function(){return t.memory},n.wbg.__wbindgen_module=function(){return Ue.__wbindgen_wasm_module},n.wbg.__wbindgen_neg=function(e){return-e},n.wbg.__wbindgen_number_get=function(e,t){const n="number"==typeof t?t:void 0;u().setFloat64(e+8,f(n)?0:n,!0),u().setInt32(e+0,!f(n),!0)},n.wbg.__wbindgen_number_new=function(e){return e},n.wbg.__wbindgen_rethrow=function(e){throw e},n.wbg.__wbindgen_shr=function(e,t){return e>>t},n.wbg.__wbindgen_string_get=function(e,n){const _="string"==typeof n?n:void 0;var r=f(_)?0:g(_,t.__wbindgen_malloc,t.__wbindgen_realloc),i=a;u().setInt32(e+4,i,!0),u().setInt32(e+0,r,!0)},n.wbg.__wbindgen_string_new=function(e,t){return c(e,t)},n.wbg.__wbindgen_throw=function(e,t){throw new Error(c(e,t))},n["./snippets/wasmer-wasix-4747c544ebbe2187/inline0.js"]=e,n}function We(e,t){e.wbg.memory=t||new WebAssembly.Memory({initial:34,maximum:16384,shared:!0})}function Me(e,_,r){if(t=e.exports,Ue.__wbindgen_wasm_module=_,w=null,n=null,void 0!==r&&("number"!=typeof r||0===r||r%65536!=0))throw"invalid stack size";return t.__wbindgen_start(r),t}function Te(e,n){if(void 0!==t)return t;let _;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e,memory:n,thread_stack_size:_}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const r=Se();We(r,n),e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return Me(new WebAssembly.Instance(e,r),e,_)}async function Ue(e,n){if(void 0!==t)return t;let _;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e,memory:n,thread_stack_size:_}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL("wasmer_js_bg.wasm",import.meta.url));const r=Se();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e)),We(r,n);const{instance:i,module:o}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(!e.ok||!je.has(e.type)||"application/wasm"===e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await e,r);return Me(i,o,_)}const De=async(e,t)=>{e?(e instanceof WebAssembly.Module||e instanceof URL||e instanceof WebAssembly.Module)&&(t?(console.info("Passing the module and memory as first arguments to the init function is deprecated, please use: `init({module: WASM_MODULE, memory: WASM_MEMORY})`"),e={module:e,memory:t}):(console.info("Passing the module as first argument to the init function is deprecated, please use: `init({module: WASM_MODULE})`"),e={module:e})):e={},Be(e);let n=await Ue({module_or_path:e.module,memory:e.memory});return e.log&&z(e.log),e.workerUrl&&x(e.workerUrl.toString()),e.sdkUrl?F(e.sdkUrl.toString()):F(new URL("index.mjs",import.meta.url).toString()),n},Be=e=>{globalThis.__WASMER_REGISTRY__={registryUrl:e.registryUrl,token:e.token}};export{G as Atom,$ as Command,K as DeployedApp,J as Directory,Q as Instance,Z as IntoUnderlyingByteSource,te as IntoUnderlyingSink,_e as IntoUnderlyingSource,ie as OliphauntDirectInstance,ce as OliphauntPreparedTool,se as PublishPackageOutput,ge as ReadableStreamSource,ue as Runtime,le as ThreadPoolWorker,pe as Trap,he as User,Re as UserPackageDefinition,Ae as Volume,Fe as Wasmer,ze as WasmerPackage,Oe as WritableStreamSink,De as init,Te as initSync,z as initializeLogger,O as instantiateOliphauntDirect,k as on_start,j as prepareOliphauntTool,W as runOliphauntToolDirect,I as runWasix,Be as setRegistry,F as setSDKUrl,x as setWorkerUrl,A as wat2wasm};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"wasmerJsCommit": "93b8b738ebd3ee57e118da0f0eb795b97d5b999e",
|
|
3
|
+
"wasmerWasixVersion": "0.601.0",
|
|
4
|
+
"inputsSha256": "7117d233cebc22bad4c98a7d9b10e2d3363fc857a79e5334d1d5f6752349f6b5",
|
|
5
|
+
"guestConcurrency": "denied-for-oliphaunt-single-backend",
|
|
6
|
+
"optimization": {
|
|
7
|
+
"cargoProfile": "release",
|
|
8
|
+
"rustOptLevel": 3,
|
|
9
|
+
"lto": true,
|
|
10
|
+
"wasmOpt": [
|
|
11
|
+
"--enable-threads",
|
|
12
|
+
"--enable-bulk-memory",
|
|
13
|
+
"-O3"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @wasmer/sdk
|
|
3
|
+
* Wasmer Javascript SDK. It allows interacting with Wasmer Packages in Node.js and the Browser.
|
|
4
|
+
*
|
|
5
|
+
* @version v0.8.0
|
|
6
|
+
* @author Wasmer Engineering Team <engineering@wasmer.io>
|
|
7
|
+
* @homepage https://github.com/wasmerio/wasmer-js
|
|
8
|
+
* @repository git+https://github.com/wasmerio/wasmer-js.git
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
Error.stackTraceLimit=50,globalThis.onerror=console.error;let a,e=[];globalThis.onmessage=async o=>{if("init"==o.data.type){const{memory:r,module:t,id:i,sdkUrl:l}=o.data,{init:s,ThreadPoolWorker:n}=await import(l);await s({module:t,sdkUrl:l,memory:r}),a=new n(i);for(const o of e.splice(0,e.length))await a.handle(o)}else await(async o=>{a?await a.handle(o):e.push(o)})(o.data)};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type WasixHostRuntime = 'bun' | 'deno' | 'node';
|
|
2
|
+
/** @internal Identify the JavaScript host selected by package exports. */
|
|
3
|
+
export declare function hostRuntime(): WasixHostRuntime;
|
|
4
|
+
/** @internal Human-readable host name for diagnostics. */
|
|
5
|
+
export declare function hostRuntimeName(runtime?: WasixHostRuntime): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @internal Identify the JavaScript host selected by package exports. */
|
|
2
|
+
export function hostRuntime() {
|
|
3
|
+
const globals = globalThis;
|
|
4
|
+
if (globals.Bun !== undefined)
|
|
5
|
+
return 'bun';
|
|
6
|
+
if (globals.Deno !== undefined)
|
|
7
|
+
return 'deno';
|
|
8
|
+
return 'node';
|
|
9
|
+
}
|
|
10
|
+
/** @internal Human-readable host name for diagnostics. */
|
|
11
|
+
export function hostRuntimeName(runtime = hostRuntime()) {
|
|
12
|
+
return runtime === 'bun' ? 'Bun' : runtime === 'deno' ? 'Deno' : 'Node';
|
|
13
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { requireAssetSource, requireExactObject, requireSafeRelativeAssetPath, requireSha256, requireSize, requireVersion, serializeAssetSource, } from './descriptor-validation.js';
|
|
2
|
+
const DESCRIPTOR_FIELDS = [
|
|
3
|
+
'clusterSeedArchive',
|
|
4
|
+
'clusterSeedManifest',
|
|
5
|
+
'compatibility',
|
|
6
|
+
'dataArchive',
|
|
7
|
+
'product',
|
|
8
|
+
'runtime',
|
|
9
|
+
'schema',
|
|
10
|
+
'version',
|
|
11
|
+
];
|
|
12
|
+
const COMPATIBILITY_FIELDS = [
|
|
13
|
+
'compatibilityKey',
|
|
14
|
+
'dataForm',
|
|
15
|
+
'dataTreeSha256',
|
|
16
|
+
'dataVersion',
|
|
17
|
+
'physicalFormat',
|
|
18
|
+
'postgresMajor',
|
|
19
|
+
'runtimeProduct',
|
|
20
|
+
'runtimeVersion',
|
|
21
|
+
];
|
|
22
|
+
const ARCHIVE_FIELDS = ['archive', 'sha256', 'size', 'source'];
|
|
23
|
+
const MANIFEST_FIELDS = ['sha256', 'size', 'source'];
|
|
24
|
+
/** Validate an explicitly imported ICU carrier before bytes cross a worker boundary. */
|
|
25
|
+
export function serializeWasixIcuDescriptor(value) {
|
|
26
|
+
validateWasixIcuDescriptor(value, 'WASIX ICU descriptor');
|
|
27
|
+
return {
|
|
28
|
+
schema: value.schema,
|
|
29
|
+
runtime: value.runtime,
|
|
30
|
+
product: value.product,
|
|
31
|
+
version: value.version,
|
|
32
|
+
compatibility: { ...value.compatibility },
|
|
33
|
+
dataArchive: serializeArchive(value.dataArchive),
|
|
34
|
+
clusterSeedArchive: serializeArchive(value.clusterSeedArchive),
|
|
35
|
+
clusterSeedManifest: serializeManifest(value.clusterSeedManifest),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function validateWasixIcuDescriptor(value, label) {
|
|
39
|
+
const descriptor = requireExactObject(value, DESCRIPTOR_FIELDS, label);
|
|
40
|
+
if (descriptor.schema !== 'oliphaunt-wasix-icu-v1')
|
|
41
|
+
throw new Error(`${label} has unsupported schema`);
|
|
42
|
+
if (descriptor.runtime !== 'wasix')
|
|
43
|
+
throw new Error(`${label} must target runtime 'wasix'`);
|
|
44
|
+
if (descriptor.product !== 'oliphaunt-icu')
|
|
45
|
+
throw new Error(`${label} product must be 'oliphaunt-icu'`);
|
|
46
|
+
requireVersion(descriptor.version, `${label} version`);
|
|
47
|
+
const compatibility = requireExactObject(descriptor.compatibility, COMPATIBILITY_FIELDS, `${label} compatibility`);
|
|
48
|
+
if (compatibility.runtimeProduct !== 'liboliphaunt-wasix' ||
|
|
49
|
+
compatibility.postgresMajor !== '18' ||
|
|
50
|
+
compatibility.physicalFormat !== 'wasix-pg18-v1' ||
|
|
51
|
+
compatibility.compatibilityKey !== 'wasix-pg18-datum32-v1' ||
|
|
52
|
+
compatibility.dataVersion !== '76.1' ||
|
|
53
|
+
compatibility.dataForm !== 'files-le') {
|
|
54
|
+
throw new Error(`${label} has an incompatible WASIX/ICU identity`);
|
|
55
|
+
}
|
|
56
|
+
requireVersion(compatibility.runtimeVersion, `${label} compatible runtime version`);
|
|
57
|
+
requireSha256(compatibility.dataTreeSha256, `${label} ICU data tree SHA-256`);
|
|
58
|
+
validateArchive(descriptor.dataArchive, `${label} ICU data archive`);
|
|
59
|
+
validateArchive(descriptor.clusterSeedArchive, `${label} ICU cluster seed archive`);
|
|
60
|
+
validateManifest(descriptor.clusterSeedManifest, `${label} ICU cluster seed manifest`);
|
|
61
|
+
if (descriptor.dataArchive.archive === descriptor.clusterSeedArchive.archive) {
|
|
62
|
+
throw new Error(`${label} ICU data and cluster seed archives must have distinct paths`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function validateArchive(value, label) {
|
|
66
|
+
const archive = requireExactObject(value, ARCHIVE_FIELDS, label);
|
|
67
|
+
requireSafeRelativeAssetPath(archive.archive, `${label} path`);
|
|
68
|
+
requireSha256(archive.sha256, `${label} SHA-256`);
|
|
69
|
+
const size = requireSize(archive.size, `${label} size`);
|
|
70
|
+
requireAssetSource(archive.source, `${label} source`, size);
|
|
71
|
+
}
|
|
72
|
+
function validateManifest(value, label) {
|
|
73
|
+
const manifest = requireExactObject(value, MANIFEST_FIELDS, label);
|
|
74
|
+
requireSha256(manifest.sha256, `${label} SHA-256`);
|
|
75
|
+
const size = requireSize(manifest.size, `${label} size`);
|
|
76
|
+
requireAssetSource(manifest.source, `${label} source`, size);
|
|
77
|
+
}
|
|
78
|
+
function serializeArchive(archive) {
|
|
79
|
+
return {
|
|
80
|
+
archive: archive.archive,
|
|
81
|
+
sha256: archive.sha256,
|
|
82
|
+
size: archive.size,
|
|
83
|
+
source: serializeAssetSource(archive.source),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function serializeManifest(manifest) {
|
|
87
|
+
return {
|
|
88
|
+
sha256: manifest.sha256,
|
|
89
|
+
size: manifest.size,
|
|
90
|
+
source: serializeAssetSource(manifest.source),
|
|
91
|
+
};
|
|
92
|
+
}
|
package/lib/index.bun.js
ADDED
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { OliphauntDatabase } from './types.js';
|
|
2
|
+
import type { WasixToolWorkerRequest, WasixToolWorkerResponse } from './tool-worker-common.js';
|
|
3
|
+
import { type WasixToolProcessOptions, type WasixToolProcessResult } from './tool-runtime.js';
|
|
4
|
+
export type { WasixToolDescriptor, WasixToolProcessOptions, WasixToolProcessResult, } from './tool-runtime.js';
|
|
5
|
+
export type WasixToolWorkerPort = Readonly<{
|
|
6
|
+
postMessage(request: WasixToolWorkerRequest, transfer?: ArrayBuffer[]): void;
|
|
7
|
+
terminate(): void | Promise<void>;
|
|
8
|
+
onMessage(listener: (response: WasixToolWorkerResponse) => void): void;
|
|
9
|
+
onFatal(listener: (error: Error) => void): void;
|
|
10
|
+
}>;
|
|
11
|
+
/** @internal Shared browser/server tool orchestration; public API lives in the optional package. */
|
|
12
|
+
export declare function runWasixToolProcess(database: OliphauntDatabase, options: WasixToolProcessOptions, createWorker: () => WasixToolWorkerPort): Promise<WasixToolProcessResult>;
|