@inclavare-containers/tng 2.7.2 → 2.8.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/README.md +8 -169
- package/package.json +1 -1
- package/tng_wasm.d.ts +9 -11
- package/tng_wasm.js +232 -192
- package/tng_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
The TNG Client JavaScript SDK provides client functionality for use in browser environments, built with wasm-pack.
|
|
6
6
|
|
|
7
|
+
## Live Demo
|
|
8
|
+
|
|
9
|
+
A live demo of the TNG JavaScript SDK integrated into a web page is hosted on GitHub Pages: <https://inclavare-containers.github.io/TNG/>
|
|
10
|
+
|
|
7
11
|
## Getting the SDK
|
|
8
12
|
|
|
9
13
|
You can obtain the TNG SDK in two ways:
|
|
@@ -185,175 +189,10 @@ If you want to integrate in a Chrome extension, due to manifest v3 restrictions,
|
|
|
185
189
|
```
|
|
186
190
|
|
|
187
191
|
|
|
188
|
-
##
|
|
189
|
-
|
|
190
|
-
The pkg directory contains an example program that uses the TNG SDK to send encrypted requests. The example requires a confidential computing server instance and a local computer. The following describes how to run the example.
|
|
191
|
-
|
|
192
|
-
### 1. Prepare the Server-side Service
|
|
193
|
-
|
|
194
|
-
Use [dummyhttp](https://github.com/svenstaro/dummyhttp), a simple HTTP server program, to simulate our backend service. We need to install and run it.
|
|
195
|
-
|
|
196
|
-
Installation
|
|
197
|
-
|
|
198
|
-
```sh
|
|
199
|
-
cargo install dummyhttp --locked
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
Run this HTTP server and make it listen on port 30001. Now we have a backend HTTP service listening on port 30001.
|
|
203
|
-
|
|
204
|
-
```sh
|
|
205
|
-
dummyhttp -p 30001 -vvvv
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
> [!NOTE]
|
|
209
|
-
> You can use the curl command on the local computer to test direct access to this HTTP server to check network connectivity.
|
|
210
|
-
|
|
211
|
-
### 2. Compile and Install TNG on the Server Side
|
|
212
|
-
|
|
213
|
-
Build the RPM package
|
|
214
|
-
|
|
215
|
-
```sh
|
|
216
|
-
make create-tarball
|
|
217
|
-
make rpm-build
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
The artifacts will be placed in `~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm`, which you can install as follows:
|
|
221
|
-
|
|
222
|
-
```sh
|
|
223
|
-
yum install ~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm -y
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
If you want to build the container version of TNG:
|
|
227
|
-
|
|
228
|
-
```sh
|
|
229
|
-
# First install podman
|
|
230
|
-
yum install podman podman-docker -y
|
|
231
|
-
# Build the container image
|
|
232
|
-
docker build -t tng:test .
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
This will produce a container image named `tng:test`.
|
|
236
|
-
|
|
237
|
-
### 3. Run Attestation-Agent on the Server Side
|
|
238
|
-
|
|
239
|
-
You can choose to install attestation-agent from the yum repository or compile and deploy your own attestation-agent.
|
|
240
|
-
|
|
241
|
-
```sh
|
|
242
|
-
yum install -y attestation-agent
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
Run
|
|
246
|
-
|
|
247
|
-
```sh
|
|
248
|
-
RUST_LOG=debug attestation-agent --attestation_sock unix:///run/confidential-containers/attestation-agent/attestation-agent.sock
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### 4. Run TNG on the Server Side
|
|
252
|
-
|
|
253
|
-
```sh
|
|
254
|
-
tng launch --config-content='
|
|
255
|
-
{
|
|
256
|
-
"add_egress": [
|
|
257
|
-
{
|
|
258
|
-
"netfilter": {
|
|
259
|
-
"capture_dst": {
|
|
260
|
-
"port": 30001
|
|
261
|
-
},
|
|
262
|
-
"capture_local_traffic": true
|
|
263
|
-
},
|
|
264
|
-
"ohttp": {},
|
|
265
|
-
"attest": {
|
|
266
|
-
"aa_addr": "unix:///run/confidential-containers/attestation-agent/attestation-agent.sock"
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
}'
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
> [!NOTE]
|
|
274
|
-
>
|
|
275
|
-
> - Currently, the TNG SDK only supports server-side verification, so you must provide the `"attest"` option
|
|
276
|
-
> - As shown above, you need to add an `"ohttp": {}` entry in the TNG configuration to enable using OHTTP as the encryption protocol (instead of rats-tls) for bidirectional encrypted traffic transmission.
|
|
277
|
-
|
|
278
|
-
### 5. Run the Attestation Service Instance
|
|
279
|
-
|
|
280
|
-
You need to prepare an Attestation Service instance that exposes a RESTful HTTP interface. This can be achieved by installing the `trustee` package from the yum repository or compiling and deploying your own `restful-as`.
|
|
281
|
-
|
|
282
|
-
A reference run command is as follows:
|
|
283
|
-
|
|
284
|
-
```sh
|
|
285
|
-
cat <<EOF > /tmp/config_with_cert.json
|
|
286
|
-
{
|
|
287
|
-
"work_dir": "/var/lib/attestation-service/",
|
|
288
|
-
"rvps_config": {
|
|
289
|
-
"type": "BuiltIn",
|
|
290
|
-
"storage": {
|
|
291
|
-
"type": "LocalFs"
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"attestation_token_broker": {
|
|
295
|
-
"type": "Simple",
|
|
296
|
-
"duration_min": 5
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
EOF
|
|
300
|
-
|
|
301
|
-
RUST_LOG=debug restful-as --socket 0.0.0.0:9080 --config-file /tmp/config_with_cert.json
|
|
302
|
-
|
|
303
|
-
# Since restful-as natively does not support CORS configuration, here we run a CORS proxy service (https://github.com/bulletmark/corsproxy) that forwards requests from port 8080 to the real Attestation Service.
|
|
304
|
-
podman run -it --rm --net=host docker.io/bulletmark/corsproxy:latest 8080=http://127.0.0.1:9080
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
The above will expose an Attestation Service on port 8080.
|
|
308
|
-
|
|
309
|
-
> [!NOTE]
|
|
310
|
-
> Since the TNG SDK needs to initiate requests to the Attestation Service instance in the browser, please ensure you handle the CORS rules properly.
|
|
311
|
-
|
|
312
|
-
Here is an example:
|
|
313
|
-
|
|
314
|
-
### 6. Compile the TNG SDK
|
|
315
|
-
|
|
316
|
-
```sh
|
|
317
|
-
make wasm-build-debug
|
|
318
|
-
```
|
|
192
|
+
## Cross-Origin Requests (CORS)
|
|
319
193
|
|
|
320
|
-
|
|
194
|
+
When the browser needs to use the TNG SDK cross-origin to access encrypted backend services, some additional configuration is required — see [docs/cors.md](docs/cors.md).
|
|
321
195
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
Please modify the following content in [index.html](pkg/index.html) as needed:
|
|
325
|
-
|
|
326
|
-
URL of the backend service to access:
|
|
327
|
-
|
|
328
|
-
```js
|
|
329
|
-
const url = "http://127.0.0.1:30001/foo/bar?baz=qux";
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
Attestation Service URL and policy ID for verification:
|
|
333
|
-
|
|
334
|
-
```js
|
|
335
|
-
const asAddr = "http://127.0.0.1:8080/";
|
|
336
|
-
const policyIds = ["default"];
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
### 8. Run the Frontend Service on the Server Side
|
|
340
|
-
|
|
341
|
-
First install miniserve
|
|
342
|
-
|
|
343
|
-
```sh
|
|
344
|
-
cargo +nightly-2025-07-07 install miniserve --locked
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
Run miniserve
|
|
348
|
-
|
|
349
|
-
```sh
|
|
350
|
-
miniserve ./tng-wasm/pkg --index index.html --header "Cross-Origin-Opener-Policy:same-origin" --header "Cross-Origin-Embedder-Policy:require-corp" --port 8082
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
> [!NOTE]
|
|
354
|
-
>
|
|
355
|
-
> - [`miniserve`](https://github.com/svenstaro/miniserve) is a pure static resource server. It's no different from Nginx or Python's http.server, and you can use other components as alternatives.
|
|
356
|
-
|
|
357
|
-
### 9. Access in the Browser
|
|
196
|
+
## Running the Example Code
|
|
358
197
|
|
|
359
|
-
|
|
198
|
+
The `example/` directory contains an example page that uses the TNG SDK to send encrypted requests. See [example/README.md](example/README.md) for full end-to-end deployment steps.
|
package/package.json
CHANGED
package/tng_wasm.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
type ReadableStreamType = "bytes";
|
|
9
|
+
export type ReadableStreamType = "bytes";
|
|
10
10
|
|
|
11
11
|
export class IntoUnderlyingByteSource {
|
|
12
12
|
private constructor();
|
|
@@ -49,10 +49,10 @@ export function task_worker_entry_point(ptr: number): void;
|
|
|
49
49
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
50
50
|
|
|
51
51
|
export interface InitOutput {
|
|
52
|
-
readonly fetch: (a: number, b: number, c: any, d: any) => any;
|
|
53
52
|
readonly init_tng: () => void;
|
|
53
|
+
readonly fetch: (a: number, b: number, c: any, d: any) => any;
|
|
54
54
|
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
55
|
-
readonly
|
|
55
|
+
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
56
56
|
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
57
57
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
58
58
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
@@ -66,14 +66,11 @@ export interface InitOutput {
|
|
|
66
66
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
67
67
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
68
68
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e: (a: number, b: number, c: any) => void;
|
|
75
|
-
readonly wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84: (a: number, b: number, c: any) => void;
|
|
76
|
-
readonly wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167: (a: number, b: number) => void;
|
|
69
|
+
readonly wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70: (a: number, b: number, c: any) => [number, number];
|
|
70
|
+
readonly wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86: (a: number, b: number, c: any, d: any) => void;
|
|
71
|
+
readonly wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1: (a: number, b: number, c: any) => void;
|
|
72
|
+
readonly wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879: (a: number, b: number, c: any) => void;
|
|
73
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f: (a: number, b: number) => void;
|
|
77
74
|
readonly memory: WebAssembly.Memory;
|
|
78
75
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
79
76
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -81,6 +78,7 @@ export interface InitOutput {
|
|
|
81
78
|
readonly __externref_table_alloc: () => number;
|
|
82
79
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
83
80
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
81
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
84
82
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
85
83
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
86
84
|
readonly __wbindgen_start: (a: number) => void;
|
package/tng_wasm.js
CHANGED
|
@@ -87,7 +87,6 @@ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyin
|
|
|
87
87
|
|
|
88
88
|
export class IntoUnderlyingSource {
|
|
89
89
|
static __wrap(ptr) {
|
|
90
|
-
ptr = ptr >>> 0;
|
|
91
90
|
const obj = Object.create(IntoUnderlyingSource.prototype);
|
|
92
91
|
obj.__wbg_ptr = ptr;
|
|
93
92
|
IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -146,83 +145,82 @@ export function task_worker_entry_point(ptr) {
|
|
|
146
145
|
throw takeFromExternrefTable0(ret[0]);
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
|
-
|
|
150
148
|
function __wbg_get_imports(memory) {
|
|
151
149
|
const import0 = {
|
|
152
150
|
__proto__: null,
|
|
153
|
-
|
|
151
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
154
152
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
155
153
|
return ret;
|
|
156
154
|
},
|
|
157
|
-
|
|
155
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
158
156
|
const ret = Number(arg0);
|
|
159
157
|
return ret;
|
|
160
158
|
},
|
|
161
|
-
|
|
159
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
162
160
|
const v = arg1;
|
|
163
161
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
164
162
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
165
163
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
166
164
|
},
|
|
167
|
-
|
|
165
|
+
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
168
166
|
const v = arg0;
|
|
169
167
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
170
168
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
171
169
|
},
|
|
172
|
-
|
|
170
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
173
171
|
const ret = debugString(arg1);
|
|
174
172
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
175
173
|
const len1 = WASM_VECTOR_LEN;
|
|
176
174
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
177
175
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
178
176
|
},
|
|
179
|
-
|
|
177
|
+
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
180
178
|
const ret = arg0 in arg1;
|
|
181
179
|
return ret;
|
|
182
180
|
},
|
|
183
|
-
|
|
181
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
184
182
|
const ret = typeof(arg0) === 'bigint';
|
|
185
183
|
return ret;
|
|
186
184
|
},
|
|
187
|
-
|
|
185
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
188
186
|
const ret = typeof(arg0) === 'function';
|
|
189
187
|
return ret;
|
|
190
188
|
},
|
|
191
|
-
|
|
189
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
192
190
|
const val = arg0;
|
|
193
191
|
const ret = typeof(val) === 'object' && val !== null;
|
|
194
192
|
return ret;
|
|
195
193
|
},
|
|
196
|
-
|
|
194
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
197
195
|
const ret = typeof(arg0) === 'string';
|
|
198
196
|
return ret;
|
|
199
197
|
},
|
|
200
|
-
|
|
198
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
201
199
|
const ret = arg0 === undefined;
|
|
202
200
|
return ret;
|
|
203
201
|
},
|
|
204
|
-
|
|
202
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
205
203
|
const ret = arg0 === arg1;
|
|
206
204
|
return ret;
|
|
207
205
|
},
|
|
208
|
-
|
|
206
|
+
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
209
207
|
const ret = arg0 == arg1;
|
|
210
208
|
return ret;
|
|
211
209
|
},
|
|
212
|
-
|
|
210
|
+
__wbg___wbindgen_memory_de265df8aadd6273: function() {
|
|
213
211
|
const ret = wasm.memory;
|
|
214
212
|
return ret;
|
|
215
213
|
},
|
|
216
|
-
|
|
214
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
217
215
|
const obj = arg1;
|
|
218
216
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
219
217
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
220
218
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
221
219
|
},
|
|
222
|
-
|
|
220
|
+
__wbg___wbindgen_rethrow_4915403b40f010b4: function(arg0) {
|
|
223
221
|
throw arg0;
|
|
224
222
|
},
|
|
225
|
-
|
|
223
|
+
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
226
224
|
const obj = arg1;
|
|
227
225
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
228
226
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -230,70 +228,70 @@ function __wbg_get_imports(memory) {
|
|
|
230
228
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
231
229
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
232
230
|
},
|
|
233
|
-
|
|
231
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
234
232
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
235
233
|
},
|
|
236
|
-
|
|
234
|
+
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
237
235
|
arg0._wbg_cb_unref();
|
|
238
236
|
},
|
|
239
|
-
|
|
237
|
+
__wbg_abort_8bae0f33e7833997: function(arg0) {
|
|
240
238
|
arg0.abort();
|
|
241
239
|
},
|
|
242
|
-
|
|
240
|
+
__wbg_abort_eee9248a6d680839: function(arg0, arg1) {
|
|
243
241
|
arg0.abort(arg1);
|
|
244
242
|
},
|
|
245
|
-
|
|
243
|
+
__wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
246
244
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
247
245
|
}, arguments); },
|
|
248
|
-
|
|
246
|
+
__wbg_arrayBuffer_3b637f0fa65c5351: function() { return handleError(function (arg0) {
|
|
249
247
|
const ret = arg0.arrayBuffer();
|
|
250
248
|
return ret;
|
|
251
249
|
}, arguments); },
|
|
252
|
-
|
|
250
|
+
__wbg_async_37b7cd4cbabb646c: function(arg0) {
|
|
253
251
|
const ret = arg0.async;
|
|
254
252
|
return ret;
|
|
255
253
|
},
|
|
256
|
-
|
|
254
|
+
__wbg_body_18c9f2ac15ead4b2: function(arg0) {
|
|
257
255
|
const ret = arg0.body;
|
|
258
256
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
259
257
|
},
|
|
260
|
-
|
|
258
|
+
__wbg_body_2a9122b81e23d7e2: function(arg0) {
|
|
261
259
|
const ret = arg0.body;
|
|
262
260
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
263
261
|
},
|
|
264
|
-
|
|
262
|
+
__wbg_buffer_0f212447ac64c53b: function(arg0) {
|
|
265
263
|
const ret = arg0.buffer;
|
|
266
264
|
return ret;
|
|
267
265
|
},
|
|
268
|
-
|
|
266
|
+
__wbg_buffer_54b87055582c8a81: function(arg0) {
|
|
269
267
|
const ret = arg0.buffer;
|
|
270
268
|
return ret;
|
|
271
269
|
},
|
|
272
|
-
|
|
270
|
+
__wbg_byobRequest_06b654bb15590436: function(arg0) {
|
|
273
271
|
const ret = arg0.byobRequest;
|
|
274
272
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
275
273
|
},
|
|
276
|
-
|
|
274
|
+
__wbg_byteLength_41862ca4020b9c43: function(arg0) {
|
|
277
275
|
const ret = arg0.byteLength;
|
|
278
276
|
return ret;
|
|
279
277
|
},
|
|
280
|
-
|
|
278
|
+
__wbg_byteOffset_d42e18c4441f628b: function(arg0) {
|
|
281
279
|
const ret = arg0.byteOffset;
|
|
282
280
|
return ret;
|
|
283
281
|
},
|
|
284
|
-
|
|
285
|
-
const ret = arg0.call(arg1
|
|
282
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
283
|
+
const ret = arg0.call(arg1);
|
|
286
284
|
return ret;
|
|
287
285
|
}, arguments); },
|
|
288
|
-
|
|
289
|
-
const ret = arg0.call(arg1);
|
|
286
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
287
|
+
const ret = arg0.call(arg1, arg2);
|
|
290
288
|
return ret;
|
|
291
289
|
}, arguments); },
|
|
292
|
-
|
|
290
|
+
__wbg_cancel_3983a93e24cc66b3: function(arg0) {
|
|
293
291
|
const ret = arg0.cancel();
|
|
294
292
|
return ret;
|
|
295
293
|
},
|
|
296
|
-
|
|
294
|
+
__wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
|
|
297
295
|
const ret = arg0.catch(arg1);
|
|
298
296
|
return ret;
|
|
299
297
|
},
|
|
@@ -301,32 +299,32 @@ function __wbg_get_imports(memory) {
|
|
|
301
299
|
const ret = clearTimeout(arg0);
|
|
302
300
|
return ret;
|
|
303
301
|
},
|
|
304
|
-
|
|
302
|
+
__wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
|
|
305
303
|
arg0.close();
|
|
306
304
|
}, arguments); },
|
|
307
|
-
|
|
305
|
+
__wbg_close_72d318d9c16e83ef: function() { return handleError(function (arg0) {
|
|
308
306
|
arg0.close();
|
|
309
307
|
}, arguments); },
|
|
310
308
|
__wbg_crypto_0a92367f02a93895: function(arg0) {
|
|
311
309
|
const ret = arg0.crypto;
|
|
312
310
|
return ret;
|
|
313
311
|
},
|
|
314
|
-
|
|
312
|
+
__wbg_data_0965368f2b7f680a: function(arg0) {
|
|
315
313
|
const ret = arg0.data;
|
|
316
314
|
return ret;
|
|
317
315
|
},
|
|
318
|
-
|
|
316
|
+
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
319
317
|
const ret = arg0.done;
|
|
320
318
|
return ret;
|
|
321
319
|
},
|
|
322
|
-
|
|
320
|
+
__wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
|
|
323
321
|
arg0.enqueue(arg1);
|
|
324
322
|
}, arguments); },
|
|
325
|
-
|
|
323
|
+
__wbg_entries_00d7283394649868: function(arg0) {
|
|
326
324
|
const ret = arg0.entries();
|
|
327
325
|
return ret;
|
|
328
326
|
},
|
|
329
|
-
|
|
327
|
+
__wbg_entries_015dc610cd81ede0: function(arg0) {
|
|
330
328
|
const ret = Object.entries(arg0);
|
|
331
329
|
return ret;
|
|
332
330
|
},
|
|
@@ -348,7 +346,7 @@ function __wbg_get_imports(memory) {
|
|
|
348
346
|
const ret = fetch(arg0);
|
|
349
347
|
return ret;
|
|
350
348
|
},
|
|
351
|
-
|
|
349
|
+
__wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
|
|
352
350
|
const ret = arg0.fetch(arg1);
|
|
353
351
|
return ret;
|
|
354
352
|
},
|
|
@@ -356,7 +354,7 @@ function __wbg_get_imports(memory) {
|
|
|
356
354
|
const ret = fetch(arg0, arg1);
|
|
357
355
|
return ret;
|
|
358
356
|
},
|
|
359
|
-
|
|
357
|
+
__wbg_fetch_fadfd227089fdf80: function(arg0, arg1, arg2) {
|
|
360
358
|
const ret = arg0.fetch(arg1, arg2);
|
|
361
359
|
return ret;
|
|
362
360
|
},
|
|
@@ -370,27 +368,35 @@ function __wbg_get_imports(memory) {
|
|
|
370
368
|
const ret = arg0.getReader();
|
|
371
369
|
return ret;
|
|
372
370
|
}, arguments); },
|
|
373
|
-
|
|
371
|
+
__wbg_getTime_d6f070c088c9b5ed: function(arg0) {
|
|
374
372
|
const ret = arg0.getTime();
|
|
375
373
|
return ret;
|
|
376
374
|
},
|
|
377
|
-
|
|
378
|
-
const ret =
|
|
375
|
+
__wbg_getTimezoneOffset_dc9862c79e5a81a3: function(arg0) {
|
|
376
|
+
const ret = arg0.getTimezoneOffset();
|
|
379
377
|
return ret;
|
|
380
|
-
},
|
|
381
|
-
|
|
378
|
+
},
|
|
379
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
382
380
|
const ret = arg0[arg1 >>> 0];
|
|
383
381
|
return ret;
|
|
384
382
|
},
|
|
385
|
-
|
|
383
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
384
|
+
const ret = Reflect.get(arg0, arg1);
|
|
385
|
+
return ret;
|
|
386
|
+
}, arguments); },
|
|
387
|
+
__wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
|
|
388
|
+
const ret = Reflect.get(arg0, arg1);
|
|
389
|
+
return ret;
|
|
390
|
+
}, arguments); },
|
|
391
|
+
__wbg_get_done_670108eb06ecbe46: function(arg0) {
|
|
386
392
|
const ret = arg0.done;
|
|
387
393
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
388
394
|
},
|
|
389
|
-
|
|
395
|
+
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
390
396
|
const ret = arg0[arg1 >>> 0];
|
|
391
397
|
return ret;
|
|
392
398
|
},
|
|
393
|
-
|
|
399
|
+
__wbg_get_value_f465f5be30aa0963: function(arg0) {
|
|
394
400
|
const ret = arg0.value;
|
|
395
401
|
return ret;
|
|
396
402
|
},
|
|
@@ -398,19 +404,19 @@ function __wbg_get_imports(memory) {
|
|
|
398
404
|
const ret = arg0[arg1];
|
|
399
405
|
return ret;
|
|
400
406
|
},
|
|
401
|
-
|
|
407
|
+
__wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
|
|
402
408
|
const ret = Reflect.has(arg0, arg1);
|
|
403
409
|
return ret;
|
|
404
410
|
}, arguments); },
|
|
405
|
-
|
|
411
|
+
__wbg_headers_7b59c5203c8c475d: function(arg0) {
|
|
406
412
|
const ret = arg0.headers;
|
|
407
413
|
return ret;
|
|
408
414
|
},
|
|
409
|
-
|
|
415
|
+
__wbg_headers_cf9c80f30e2a4eff: function(arg0) {
|
|
410
416
|
const ret = arg0.headers;
|
|
411
417
|
return ret;
|
|
412
418
|
},
|
|
413
|
-
|
|
419
|
+
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
414
420
|
let result;
|
|
415
421
|
try {
|
|
416
422
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -420,7 +426,17 @@ function __wbg_get_imports(memory) {
|
|
|
420
426
|
const ret = result;
|
|
421
427
|
return ret;
|
|
422
428
|
},
|
|
423
|
-
|
|
429
|
+
__wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
|
|
430
|
+
let result;
|
|
431
|
+
try {
|
|
432
|
+
result = arg0 instanceof Error;
|
|
433
|
+
} catch (_) {
|
|
434
|
+
result = false;
|
|
435
|
+
}
|
|
436
|
+
const ret = result;
|
|
437
|
+
return ret;
|
|
438
|
+
},
|
|
439
|
+
__wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
|
|
424
440
|
let result;
|
|
425
441
|
try {
|
|
426
442
|
result = arg0 instanceof Map;
|
|
@@ -430,7 +446,7 @@ function __wbg_get_imports(memory) {
|
|
|
430
446
|
const ret = result;
|
|
431
447
|
return ret;
|
|
432
448
|
},
|
|
433
|
-
|
|
449
|
+
__wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
|
|
434
450
|
let result;
|
|
435
451
|
try {
|
|
436
452
|
result = arg0 instanceof Response;
|
|
@@ -440,7 +456,7 @@ function __wbg_get_imports(memory) {
|
|
|
440
456
|
const ret = result;
|
|
441
457
|
return ret;
|
|
442
458
|
},
|
|
443
|
-
|
|
459
|
+
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
444
460
|
let result;
|
|
445
461
|
try {
|
|
446
462
|
result = arg0 instanceof Uint8Array;
|
|
@@ -450,7 +466,7 @@ function __wbg_get_imports(memory) {
|
|
|
450
466
|
const ret = result;
|
|
451
467
|
return ret;
|
|
452
468
|
},
|
|
453
|
-
|
|
469
|
+
__wbg_instanceof_Window_05ba1ee4f6781663: function(arg0) {
|
|
454
470
|
let result;
|
|
455
471
|
try {
|
|
456
472
|
result = arg0 instanceof Window;
|
|
@@ -460,23 +476,23 @@ function __wbg_get_imports(memory) {
|
|
|
460
476
|
const ret = result;
|
|
461
477
|
return ret;
|
|
462
478
|
},
|
|
463
|
-
|
|
479
|
+
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
464
480
|
const ret = Array.isArray(arg0);
|
|
465
481
|
return ret;
|
|
466
482
|
},
|
|
467
|
-
|
|
483
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
468
484
|
const ret = Number.isSafeInteger(arg0);
|
|
469
485
|
return ret;
|
|
470
486
|
},
|
|
471
|
-
|
|
487
|
+
__wbg_iterator_6f722e4a93058b71: function() {
|
|
472
488
|
const ret = Symbol.iterator;
|
|
473
489
|
return ret;
|
|
474
490
|
},
|
|
475
|
-
|
|
491
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
476
492
|
const ret = arg0.length;
|
|
477
493
|
return ret;
|
|
478
494
|
},
|
|
479
|
-
|
|
495
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
480
496
|
const ret = arg0.length;
|
|
481
497
|
return ret;
|
|
482
498
|
},
|
|
@@ -521,7 +537,11 @@ function __wbg_get_imports(memory) {
|
|
|
521
537
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
522
538
|
}
|
|
523
539
|
}, arguments); },
|
|
524
|
-
|
|
540
|
+
__wbg_message_8326fb1d549bebc5: function(arg0) {
|
|
541
|
+
const ret = arg0.message;
|
|
542
|
+
return ret;
|
|
543
|
+
},
|
|
544
|
+
__wbg_method_b84982a2d750a05f: function(arg0, arg1) {
|
|
525
545
|
const ret = arg1.method;
|
|
526
546
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
527
547
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -532,46 +552,38 @@ function __wbg_get_imports(memory) {
|
|
|
532
552
|
const ret = arg0.msCrypto;
|
|
533
553
|
return ret;
|
|
534
554
|
},
|
|
535
|
-
|
|
536
|
-
const ret =
|
|
555
|
+
__wbg_name_b0b4809690944614: function(arg0) {
|
|
556
|
+
const ret = arg0.name;
|
|
537
557
|
return ret;
|
|
538
|
-
},
|
|
539
|
-
|
|
558
|
+
},
|
|
559
|
+
__wbg_new_0_3da9e97f24fc69be: function() {
|
|
540
560
|
const ret = new Date();
|
|
541
561
|
return ret;
|
|
542
562
|
},
|
|
563
|
+
__wbg_new_0d809930cd1354c6: function() { return handleError(function () {
|
|
564
|
+
const ret = new Headers();
|
|
565
|
+
return ret;
|
|
566
|
+
}, arguments); },
|
|
543
567
|
__wbg_new_227d7c05414eb861: function() {
|
|
544
568
|
const ret = new Error();
|
|
545
569
|
return ret;
|
|
546
570
|
},
|
|
547
|
-
|
|
548
|
-
const ret = new
|
|
571
|
+
__wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
|
|
572
|
+
const ret = new AbortController();
|
|
549
573
|
return ret;
|
|
550
574
|
}, arguments); },
|
|
551
|
-
|
|
552
|
-
const ret = new Uint8Array(arg0);
|
|
553
|
-
return ret;
|
|
554
|
-
},
|
|
555
|
-
__wbg_new_ab79df5bd7c26067: function() {
|
|
556
|
-
const ret = new Object();
|
|
557
|
-
return ret;
|
|
558
|
-
},
|
|
559
|
-
__wbg_new_af04f4c3ed7fd887: function(arg0) {
|
|
575
|
+
__wbg_new_70f79e80a78a1f78: function(arg0) {
|
|
560
576
|
const ret = new Int32Array(arg0);
|
|
561
577
|
return ret;
|
|
562
578
|
},
|
|
563
|
-
|
|
564
|
-
const ret = new AbortController();
|
|
565
|
-
return ret;
|
|
566
|
-
}, arguments); },
|
|
567
|
-
__wbg_new_d098e265629cd10f: function(arg0, arg1) {
|
|
579
|
+
__wbg_new_aec3e25493d729fe: function(arg0, arg1) {
|
|
568
580
|
try {
|
|
569
581
|
var state0 = {a: arg0, b: arg1};
|
|
570
582
|
var cb0 = (arg0, arg1) => {
|
|
571
583
|
const a = state0.a;
|
|
572
584
|
state0.a = 0;
|
|
573
585
|
try {
|
|
574
|
-
return
|
|
586
|
+
return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
|
|
575
587
|
} finally {
|
|
576
588
|
state0.a = a;
|
|
577
589
|
}
|
|
@@ -579,25 +591,37 @@ function __wbg_get_imports(memory) {
|
|
|
579
591
|
const ret = new Promise(cb0);
|
|
580
592
|
return ret;
|
|
581
593
|
} finally {
|
|
582
|
-
state0.a =
|
|
594
|
+
state0.a = 0;
|
|
583
595
|
}
|
|
584
596
|
},
|
|
585
|
-
|
|
597
|
+
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
586
598
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
587
599
|
return ret;
|
|
588
600
|
},
|
|
589
|
-
|
|
601
|
+
__wbg_new_cc984128914cfc6f: function(arg0) {
|
|
602
|
+
const ret = new Date(arg0);
|
|
603
|
+
return ret;
|
|
604
|
+
},
|
|
605
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
606
|
+
const ret = new Uint8Array(arg0);
|
|
607
|
+
return ret;
|
|
608
|
+
},
|
|
609
|
+
__wbg_new_da52cf8fe3429cb2: function() {
|
|
610
|
+
const ret = new Object();
|
|
611
|
+
return ret;
|
|
612
|
+
},
|
|
613
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
590
614
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
591
615
|
return ret;
|
|
592
616
|
},
|
|
593
|
-
|
|
617
|
+
__wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
|
|
594
618
|
try {
|
|
595
619
|
var state0 = {a: arg0, b: arg1};
|
|
596
620
|
var cb0 = (arg0, arg1) => {
|
|
597
621
|
const a = state0.a;
|
|
598
622
|
state0.a = 0;
|
|
599
623
|
try {
|
|
600
|
-
return
|
|
624
|
+
return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
|
|
601
625
|
} finally {
|
|
602
626
|
state0.a = a;
|
|
603
627
|
}
|
|
@@ -605,10 +629,10 @@ function __wbg_get_imports(memory) {
|
|
|
605
629
|
const ret = new Promise(cb0);
|
|
606
630
|
return ret;
|
|
607
631
|
} finally {
|
|
608
|
-
state0.a =
|
|
632
|
+
state0.a = 0;
|
|
609
633
|
}
|
|
610
634
|
},
|
|
611
|
-
|
|
635
|
+
__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
|
|
612
636
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
613
637
|
return ret;
|
|
614
638
|
},
|
|
@@ -616,81 +640,93 @@ function __wbg_get_imports(memory) {
|
|
|
616
640
|
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
|
|
617
641
|
return ret;
|
|
618
642
|
},
|
|
619
|
-
|
|
643
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
620
644
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
621
645
|
return ret;
|
|
622
646
|
},
|
|
623
|
-
|
|
647
|
+
__wbg_new_with_opt_readable_stream_and_init_bfd13e2b23ff2e0c: function() { return handleError(function (arg0, arg1) {
|
|
624
648
|
const ret = new Response(arg0, arg1);
|
|
625
649
|
return ret;
|
|
626
650
|
}, arguments); },
|
|
627
|
-
|
|
651
|
+
__wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
628
652
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
629
653
|
return ret;
|
|
630
654
|
}, arguments); },
|
|
631
|
-
|
|
632
|
-
const ret = arg0
|
|
655
|
+
__wbg_new_worker_a37b91c84b1f9aa5: function(arg0, arg1) {
|
|
656
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
633
657
|
return ret;
|
|
634
|
-
},
|
|
635
|
-
|
|
658
|
+
},
|
|
659
|
+
__wbg_next_6dbf2c0ac8cde20f: function(arg0) {
|
|
636
660
|
const ret = arg0.next;
|
|
637
661
|
return ret;
|
|
638
662
|
},
|
|
663
|
+
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
664
|
+
const ret = arg0.next();
|
|
665
|
+
return ret;
|
|
666
|
+
}, arguments); },
|
|
639
667
|
__wbg_node_8ae12470cbc10fa7: function(arg0) {
|
|
640
668
|
const ret = arg0.node;
|
|
641
669
|
return ret;
|
|
642
670
|
},
|
|
643
|
-
|
|
671
|
+
__wbg_now_86c0d4ba3fa605b8: function() {
|
|
644
672
|
const ret = Date.now();
|
|
645
673
|
return ret;
|
|
646
674
|
},
|
|
647
|
-
|
|
675
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
676
|
+
const ret = arg0.now();
|
|
677
|
+
return ret;
|
|
678
|
+
},
|
|
679
|
+
__wbg_of_b0cd2e09b31a9684: function(arg0, arg1, arg2) {
|
|
648
680
|
const ret = Array.of(arg0, arg1, arg2);
|
|
649
681
|
return ret;
|
|
650
682
|
},
|
|
651
|
-
|
|
683
|
+
__wbg_parse_1c0d8a8656d7e016: function() { return handleError(function (arg0, arg1) {
|
|
652
684
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
653
685
|
return ret;
|
|
654
686
|
}, arguments); },
|
|
655
|
-
|
|
687
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
688
|
+
const ret = arg0.performance;
|
|
689
|
+
return ret;
|
|
690
|
+
},
|
|
691
|
+
__wbg_postMessage_ea8632bb43026d6a: function() { return handleError(function (arg0, arg1) {
|
|
656
692
|
arg0.postMessage(arg1);
|
|
657
693
|
}, arguments); },
|
|
658
|
-
|
|
694
|
+
__wbg_postMessage_f48bc524bea113e2: function() { return handleError(function (arg0, arg1) {
|
|
659
695
|
arg0.postMessage(arg1);
|
|
660
696
|
}, arguments); },
|
|
661
697
|
__wbg_process_c9cfbc1e2919260e: function(arg0) {
|
|
662
698
|
const ret = arg0.process;
|
|
663
699
|
return ret;
|
|
664
700
|
},
|
|
665
|
-
|
|
701
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
666
702
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
667
703
|
},
|
|
668
|
-
|
|
704
|
+
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
669
705
|
const ret = arg0.queueMicrotask;
|
|
670
706
|
return ret;
|
|
671
707
|
},
|
|
672
|
-
|
|
708
|
+
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
673
709
|
queueMicrotask(arg0);
|
|
674
710
|
},
|
|
675
711
|
__wbg_randomFillSync_143a36904a882f2a: function() { return handleError(function (arg0, arg1) {
|
|
676
712
|
arg0.randomFillSync(arg1);
|
|
677
713
|
}, arguments); },
|
|
678
|
-
|
|
714
|
+
__wbg_read_8afa15f12a160ef8: function(arg0) {
|
|
679
715
|
const ret = arg0.read();
|
|
680
716
|
return ret;
|
|
681
717
|
},
|
|
682
|
-
|
|
718
|
+
__wbg_releaseLock_5b92874cad775644: function(arg0) {
|
|
683
719
|
arg0.releaseLock();
|
|
684
720
|
},
|
|
685
721
|
__wbg_require_def5a4782aa802ec: function() { return handleError(function () {
|
|
686
722
|
const ret = module.require;
|
|
687
723
|
return ret;
|
|
688
724
|
}, arguments); },
|
|
689
|
-
|
|
725
|
+
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
690
726
|
const ret = Promise.resolve(arg0);
|
|
691
727
|
return ret;
|
|
692
728
|
},
|
|
693
|
-
|
|
729
|
+
__wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
|
|
694
730
|
arg0.respond(arg1 >>> 0);
|
|
695
731
|
}, arguments); },
|
|
696
732
|
__wbg_setTimeout_3f4119f26240bd79: function(arg0, arg1) {
|
|
@@ -700,62 +736,62 @@ function __wbg_get_imports(memory) {
|
|
|
700
736
|
__wbg_setTimeout_52b7500e10b7731c: function(arg0, arg1) {
|
|
701
737
|
globalThis.setTimeout(arg0, arg1);
|
|
702
738
|
},
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
return ret;
|
|
739
|
+
__wbg_set_0de9c62c23d04ad5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
740
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
706
741
|
}, arguments); },
|
|
707
|
-
|
|
742
|
+
__wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
|
|
708
743
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
709
744
|
},
|
|
710
|
-
|
|
745
|
+
__wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
|
|
746
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
747
|
+
return ret;
|
|
748
|
+
}, arguments); },
|
|
749
|
+
__wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
|
|
711
750
|
arg0.body = arg1;
|
|
712
751
|
},
|
|
713
|
-
|
|
752
|
+
__wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
|
|
714
753
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
715
754
|
},
|
|
716
|
-
|
|
755
|
+
__wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
|
|
717
756
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
718
757
|
},
|
|
719
|
-
|
|
720
|
-
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
721
|
-
}, arguments); },
|
|
722
|
-
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
758
|
+
__wbg_set_headers_4be66d6f175ce615: function(arg0, arg1) {
|
|
723
759
|
arg0.headers = arg1;
|
|
724
760
|
},
|
|
725
|
-
|
|
761
|
+
__wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
|
|
726
762
|
arg0.headers = arg1;
|
|
727
763
|
},
|
|
728
|
-
|
|
764
|
+
__wbg_set_high_water_mark_44d043cd607dd13a: function(arg0, arg1) {
|
|
729
765
|
arg0.highWaterMark = arg1;
|
|
730
766
|
},
|
|
731
|
-
|
|
767
|
+
__wbg_set_integrity_13c390f33acee59c: function(arg0, arg1, arg2) {
|
|
732
768
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
733
769
|
},
|
|
734
|
-
|
|
770
|
+
__wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
|
|
735
771
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
736
772
|
},
|
|
737
|
-
|
|
773
|
+
__wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
|
|
738
774
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
739
775
|
},
|
|
740
|
-
|
|
776
|
+
__wbg_set_onmessage_e3a42c9af9f677a1: function(arg0, arg1) {
|
|
741
777
|
arg0.onmessage = arg1;
|
|
742
778
|
},
|
|
743
|
-
|
|
779
|
+
__wbg_set_redirect_badd73a0bcb765e3: function(arg0, arg1) {
|
|
744
780
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
745
781
|
},
|
|
746
|
-
|
|
782
|
+
__wbg_set_referrer_02890bb2de855af1: function(arg0, arg1, arg2) {
|
|
747
783
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
748
784
|
},
|
|
749
|
-
|
|
785
|
+
__wbg_set_referrer_policy_e49a6d0d7473fd16: function(arg0, arg1) {
|
|
750
786
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
751
787
|
},
|
|
752
|
-
|
|
788
|
+
__wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
|
|
753
789
|
arg0.signal = arg1;
|
|
754
790
|
},
|
|
755
|
-
|
|
791
|
+
__wbg_set_status_3593dfcb55e7ee3c: function(arg0, arg1) {
|
|
756
792
|
arg0.status = arg1;
|
|
757
793
|
},
|
|
758
|
-
|
|
794
|
+
__wbg_signal_dad7cb35193abd31: function(arg0) {
|
|
759
795
|
const ret = arg0.signal;
|
|
760
796
|
return ret;
|
|
761
797
|
},
|
|
@@ -766,73 +802,77 @@ function __wbg_get_imports(memory) {
|
|
|
766
802
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
767
803
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
768
804
|
},
|
|
769
|
-
|
|
805
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
770
806
|
const ret = typeof global === 'undefined' ? null : global;
|
|
771
807
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
772
808
|
},
|
|
773
|
-
|
|
809
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
774
810
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
775
811
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
776
812
|
},
|
|
777
|
-
|
|
813
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
778
814
|
const ret = typeof self === 'undefined' ? null : self;
|
|
779
815
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
780
816
|
},
|
|
781
|
-
|
|
817
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
782
818
|
const ret = typeof window === 'undefined' ? null : window;
|
|
783
819
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
784
820
|
},
|
|
785
|
-
|
|
821
|
+
__wbg_status_c45b3b9b3033184a: function(arg0) {
|
|
786
822
|
const ret = arg0.status;
|
|
787
823
|
return ret;
|
|
788
824
|
},
|
|
789
|
-
|
|
825
|
+
__wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
|
|
790
826
|
const ret = JSON.stringify(arg0);
|
|
791
827
|
return ret;
|
|
792
828
|
}, arguments); },
|
|
793
|
-
|
|
829
|
+
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
794
830
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
795
831
|
return ret;
|
|
796
832
|
},
|
|
797
|
-
|
|
833
|
+
__wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
|
|
798
834
|
const ret = arg0.text();
|
|
799
835
|
return ret;
|
|
800
836
|
}, arguments); },
|
|
801
|
-
|
|
837
|
+
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
838
|
+
const ret = arg0.then(arg1, arg2);
|
|
839
|
+
return ret;
|
|
840
|
+
},
|
|
841
|
+
__wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
|
|
802
842
|
const ret = arg0.then(arg1);
|
|
803
843
|
return ret;
|
|
804
844
|
},
|
|
805
|
-
|
|
845
|
+
__wbg_then_e0960b859f3ff223: function(arg0, arg1) {
|
|
806
846
|
const ret = arg0.then(arg1);
|
|
807
847
|
return ret;
|
|
808
848
|
},
|
|
809
|
-
|
|
810
|
-
const ret = arg0.
|
|
849
|
+
__wbg_timeOrigin_f3d5cb4f4a06c2b7: function(arg0) {
|
|
850
|
+
const ret = arg0.timeOrigin;
|
|
811
851
|
return ret;
|
|
812
852
|
},
|
|
813
|
-
|
|
853
|
+
__wbg_toString_b201c2690bbe445a: function(arg0) {
|
|
814
854
|
const ret = arg0.toString();
|
|
815
855
|
return ret;
|
|
816
856
|
},
|
|
817
|
-
|
|
857
|
+
__wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
|
|
818
858
|
const ret = arg1.url;
|
|
819
859
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
820
860
|
const len1 = WASM_VECTOR_LEN;
|
|
821
861
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
822
862
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
823
863
|
},
|
|
824
|
-
|
|
864
|
+
__wbg_url_f6cd241d61f89b82: function(arg0, arg1) {
|
|
825
865
|
const ret = arg1.url;
|
|
826
866
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
827
867
|
const len1 = WASM_VECTOR_LEN;
|
|
828
868
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
829
869
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
830
870
|
},
|
|
831
|
-
|
|
871
|
+
__wbg_value_99213de42db60201: function(arg0) {
|
|
832
872
|
const ret = arg0.value;
|
|
833
873
|
return ret;
|
|
834
874
|
},
|
|
835
|
-
|
|
875
|
+
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
836
876
|
const ret = arg0.value;
|
|
837
877
|
return ret;
|
|
838
878
|
},
|
|
@@ -840,36 +880,36 @@ function __wbg_get_imports(memory) {
|
|
|
840
880
|
const ret = arg0.versions;
|
|
841
881
|
return ret;
|
|
842
882
|
},
|
|
843
|
-
|
|
883
|
+
__wbg_view_21f1d4a4f175dfa9: function(arg0) {
|
|
844
884
|
const ret = arg0.view;
|
|
845
885
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
846
886
|
},
|
|
847
|
-
|
|
848
|
-
const ret = Atomics.waitAsync
|
|
887
|
+
__wbg_waitAsync_06c45f5361ba204a: function() {
|
|
888
|
+
const ret = Atomics.waitAsync;
|
|
849
889
|
return ret;
|
|
850
890
|
},
|
|
851
|
-
|
|
852
|
-
const ret = Atomics.waitAsync;
|
|
891
|
+
__wbg_waitAsync_919777b30820ea59: function(arg0, arg1, arg2) {
|
|
892
|
+
const ret = Atomics.waitAsync(arg0, arg1 >>> 0, arg2);
|
|
853
893
|
return ret;
|
|
854
894
|
},
|
|
855
895
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
856
|
-
// Cast intrinsic for `Closure(Closure {
|
|
857
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
896
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4929, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
897
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1);
|
|
858
898
|
return ret;
|
|
859
899
|
},
|
|
860
900
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
861
|
-
// Cast intrinsic for `Closure(Closure {
|
|
862
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
901
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5072, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
902
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70);
|
|
863
903
|
return ret;
|
|
864
904
|
},
|
|
865
905
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
866
|
-
// Cast intrinsic for `Closure(Closure {
|
|
867
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
906
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5092, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
907
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879);
|
|
868
908
|
return ret;
|
|
869
909
|
},
|
|
870
910
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
871
|
-
// Cast intrinsic for `Closure(Closure {
|
|
872
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
911
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2086, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
912
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f);
|
|
873
913
|
return ret;
|
|
874
914
|
},
|
|
875
915
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -913,7 +953,7 @@ function __wbg_get_imports(memory) {
|
|
|
913
953
|
table.set(offset + 2, true);
|
|
914
954
|
table.set(offset + 3, false);
|
|
915
955
|
},
|
|
916
|
-
|
|
956
|
+
__wbindgen_link_580560c8bba509f2: function(arg0) {
|
|
917
957
|
const val = `onmessage = function (ev) {
|
|
918
958
|
let [ia, index, value] = ev.data;
|
|
919
959
|
ia = new Int32Array(ia.buffer);
|
|
@@ -927,7 +967,7 @@ function __wbg_get_imports(memory) {
|
|
|
927
967
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
928
968
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
929
969
|
},
|
|
930
|
-
memory: memory || new WebAssembly.Memory({initial:
|
|
970
|
+
memory: memory || new WebAssembly.Memory({initial:48,maximum:16384,shared:true}),
|
|
931
971
|
};
|
|
932
972
|
return {
|
|
933
973
|
__proto__: null,
|
|
@@ -935,27 +975,27 @@ function __wbg_get_imports(memory) {
|
|
|
935
975
|
};
|
|
936
976
|
}
|
|
937
977
|
|
|
938
|
-
function
|
|
939
|
-
wasm.
|
|
978
|
+
function wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1) {
|
|
979
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1);
|
|
940
980
|
}
|
|
941
981
|
|
|
942
|
-
function
|
|
943
|
-
wasm.
|
|
982
|
+
function wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2) {
|
|
983
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2);
|
|
944
984
|
}
|
|
945
985
|
|
|
946
|
-
function
|
|
947
|
-
wasm.
|
|
986
|
+
function wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2) {
|
|
987
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2);
|
|
948
988
|
}
|
|
949
989
|
|
|
950
|
-
function
|
|
951
|
-
const ret = wasm.
|
|
990
|
+
function wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2) {
|
|
991
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2);
|
|
952
992
|
if (ret[1]) {
|
|
953
993
|
throw takeFromExternrefTable0(ret[0]);
|
|
954
994
|
}
|
|
955
995
|
}
|
|
956
996
|
|
|
957
|
-
function
|
|
958
|
-
wasm.
|
|
997
|
+
function wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3) {
|
|
998
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3);
|
|
959
999
|
}
|
|
960
1000
|
|
|
961
1001
|
|
|
@@ -977,13 +1017,13 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
977
1017
|
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
978
1018
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
979
1019
|
? { register: () => {}, unregister: () => {} }
|
|
980
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr
|
|
1020
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
981
1021
|
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
982
1022
|
? { register: () => {}, unregister: () => {} }
|
|
983
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr
|
|
1023
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
984
1024
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
985
1025
|
? { register: () => {}, unregister: () => {} }
|
|
986
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr
|
|
1026
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
987
1027
|
|
|
988
1028
|
function addToExternrefTable0(obj) {
|
|
989
1029
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -993,7 +1033,7 @@ function addToExternrefTable0(obj) {
|
|
|
993
1033
|
|
|
994
1034
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
995
1035
|
? { register: () => {}, unregister: () => {} }
|
|
996
|
-
: new FinalizationRegistry(state =>
|
|
1036
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
997
1037
|
|
|
998
1038
|
function debugString(val) {
|
|
999
1039
|
// primitive types
|
|
@@ -1074,8 +1114,7 @@ function getDataViewMemory0() {
|
|
|
1074
1114
|
}
|
|
1075
1115
|
|
|
1076
1116
|
function getStringFromWasm0(ptr, len) {
|
|
1077
|
-
|
|
1078
|
-
return decodeText(ptr, len);
|
|
1117
|
+
return decodeText(ptr >>> 0, len);
|
|
1079
1118
|
}
|
|
1080
1119
|
|
|
1081
1120
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1099,8 +1138,8 @@ function isLikeNone(x) {
|
|
|
1099
1138
|
return x === undefined || x === null;
|
|
1100
1139
|
}
|
|
1101
1140
|
|
|
1102
|
-
function makeMutClosure(arg0, arg1,
|
|
1103
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
1141
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1142
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1104
1143
|
const real = (...args) => {
|
|
1105
1144
|
|
|
1106
1145
|
// First up with a closure we increment the internal reference
|
|
@@ -1118,7 +1157,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1118
1157
|
};
|
|
1119
1158
|
real._wbg_cb_unref = () => {
|
|
1120
1159
|
if (--state.cnt === 0) {
|
|
1121
|
-
|
|
1160
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1122
1161
|
state.a = 0;
|
|
1123
1162
|
CLOSURE_DTORS.unregister(state);
|
|
1124
1163
|
}
|
|
@@ -1200,8 +1239,9 @@ if (cachedTextEncoder) {
|
|
|
1200
1239
|
|
|
1201
1240
|
let WASM_VECTOR_LEN = 0;
|
|
1202
1241
|
|
|
1203
|
-
let wasmModule, wasm;
|
|
1242
|
+
let wasmModule, wasmInstance, wasm;
|
|
1204
1243
|
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
1244
|
+
wasmInstance = instance;
|
|
1205
1245
|
wasm = instance.exports;
|
|
1206
1246
|
wasmModule = module;
|
|
1207
1247
|
cachedDataViewMemory0 = null;
|
package/tng_wasm_bg.wasm
CHANGED
|
Binary file
|