virtual-machine 0.0.10 → 0.0.15
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/build/{chunk-MELUIZWO.mjs → chunk-F2WF4S7X.mjs} +165 -125
- package/build/cli.js +160 -120
- package/build/index.d.ts +7 -5
- package/build/index.js +160 -120
- package/build/index.mjs +3 -3
- package/build/{riscv_vm-JTPPWIT3.mjs → riscv_vm-DKL3OVT4.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
// pkg/riscv_vm.js
|
|
2
2
|
var wasm;
|
|
3
|
-
function
|
|
4
|
-
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
5
7
|
}
|
|
8
|
+
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
9
|
+
}, unregister: () => {
|
|
10
|
+
} } : new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
6
11
|
function debugString(val) {
|
|
7
12
|
const type = typeof val;
|
|
8
13
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -59,7 +64,21 @@ ${val.stack}`;
|
|
|
59
64
|
}
|
|
60
65
|
return className;
|
|
61
66
|
}
|
|
62
|
-
|
|
67
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
68
|
+
ptr = ptr >>> 0;
|
|
69
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
70
|
+
}
|
|
71
|
+
var cachedDataViewMemory0 = null;
|
|
72
|
+
function getDataViewMemory0() {
|
|
73
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
74
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
75
|
+
}
|
|
76
|
+
return cachedDataViewMemory0;
|
|
77
|
+
}
|
|
78
|
+
function getStringFromWasm0(ptr, len) {
|
|
79
|
+
ptr = ptr >>> 0;
|
|
80
|
+
return decodeText(ptr, len);
|
|
81
|
+
}
|
|
63
82
|
var cachedUint8ArrayMemory0 = null;
|
|
64
83
|
function getUint8ArrayMemory0() {
|
|
65
84
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -67,16 +86,65 @@ function getUint8ArrayMemory0() {
|
|
|
67
86
|
}
|
|
68
87
|
return cachedUint8ArrayMemory0;
|
|
69
88
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
89
|
+
function handleError(f, args) {
|
|
90
|
+
try {
|
|
91
|
+
return f.apply(this, args);
|
|
92
|
+
} catch (e) {
|
|
93
|
+
const idx = addToExternrefTable0(e);
|
|
94
|
+
wasm.__wbindgen_exn_store(idx);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function isLikeNone(x) {
|
|
98
|
+
return x === void 0 || x === null;
|
|
99
|
+
}
|
|
100
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
101
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
102
|
+
const real = (...args) => {
|
|
103
|
+
state.cnt++;
|
|
104
|
+
try {
|
|
105
|
+
return f(state.a, state.b, ...args);
|
|
106
|
+
} finally {
|
|
107
|
+
real._wbg_cb_unref();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
real._wbg_cb_unref = () => {
|
|
111
|
+
if (--state.cnt === 0) {
|
|
112
|
+
state.dtor(state.a, state.b);
|
|
113
|
+
state.a = 0;
|
|
114
|
+
CLOSURE_DTORS.unregister(state);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
118
|
+
return real;
|
|
119
|
+
}
|
|
120
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
121
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
122
|
+
const real = (...args) => {
|
|
123
|
+
state.cnt++;
|
|
124
|
+
const a = state.a;
|
|
125
|
+
state.a = 0;
|
|
126
|
+
try {
|
|
127
|
+
return f(a, state.b, ...args);
|
|
128
|
+
} finally {
|
|
129
|
+
state.a = a;
|
|
130
|
+
real._wbg_cb_unref();
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
real._wbg_cb_unref = () => {
|
|
134
|
+
if (--state.cnt === 0) {
|
|
135
|
+
state.dtor(state.a, state.b);
|
|
136
|
+
state.a = 0;
|
|
137
|
+
CLOSURE_DTORS.unregister(state);
|
|
138
|
+
}
|
|
79
139
|
};
|
|
140
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
141
|
+
return real;
|
|
142
|
+
}
|
|
143
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
144
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
145
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
146
|
+
WASM_VECTOR_LEN = arg.length;
|
|
147
|
+
return ptr;
|
|
80
148
|
}
|
|
81
149
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
82
150
|
if (realloc === void 0) {
|
|
@@ -108,12 +176,10 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
108
176
|
WASM_VECTOR_LEN = offset;
|
|
109
177
|
return ptr;
|
|
110
178
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
return cachedDataViewMemory0;
|
|
179
|
+
function takeFromExternrefTable0(idx) {
|
|
180
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
181
|
+
wasm.__externref_table_dealloc(idx);
|
|
182
|
+
return value;
|
|
117
183
|
}
|
|
118
184
|
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
119
185
|
cachedTextDecoder.decode();
|
|
@@ -128,67 +194,27 @@ function decodeText(ptr, len) {
|
|
|
128
194
|
}
|
|
129
195
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
130
196
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
function handleError(f, args) {
|
|
141
|
-
try {
|
|
142
|
-
return f.apply(this, args);
|
|
143
|
-
} catch (e) {
|
|
144
|
-
const idx = addToExternrefTable0(e);
|
|
145
|
-
wasm.__wbindgen_exn_store(idx);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
149
|
-
ptr = ptr >>> 0;
|
|
150
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
151
|
-
}
|
|
152
|
-
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
153
|
-
}, unregister: () => {
|
|
154
|
-
} } : new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
155
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
156
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
157
|
-
const real = (...args) => {
|
|
158
|
-
state.cnt++;
|
|
159
|
-
const a = state.a;
|
|
160
|
-
state.a = 0;
|
|
161
|
-
try {
|
|
162
|
-
return f(a, state.b, ...args);
|
|
163
|
-
} finally {
|
|
164
|
-
state.a = a;
|
|
165
|
-
real._wbg_cb_unref();
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
real._wbg_cb_unref = () => {
|
|
169
|
-
if (--state.cnt === 0) {
|
|
170
|
-
state.dtor(state.a, state.b);
|
|
171
|
-
state.a = 0;
|
|
172
|
-
CLOSURE_DTORS.unregister(state);
|
|
173
|
-
}
|
|
197
|
+
var cachedTextEncoder = new TextEncoder();
|
|
198
|
+
if (!("encodeInto" in cachedTextEncoder)) {
|
|
199
|
+
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
200
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
201
|
+
view.set(buf);
|
|
202
|
+
return {
|
|
203
|
+
read: arg.length,
|
|
204
|
+
written: buf.length
|
|
205
|
+
};
|
|
174
206
|
};
|
|
175
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
176
|
-
return real;
|
|
177
|
-
}
|
|
178
|
-
function takeFromExternrefTable0(idx) {
|
|
179
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
180
|
-
wasm.__externref_table_dealloc(idx);
|
|
181
|
-
return value;
|
|
182
207
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
WASM_VECTOR_LEN = arg.length;
|
|
187
|
-
return ptr;
|
|
208
|
+
var WASM_VECTOR_LEN = 0;
|
|
209
|
+
function wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2) {
|
|
210
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919(arg0, arg1, arg2);
|
|
188
211
|
}
|
|
189
|
-
function
|
|
190
|
-
wasm.
|
|
212
|
+
function wasm_bindgen__convert__closures_____invoke__hdce74b4265fa20da(arg0, arg1) {
|
|
213
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hdce74b4265fa20da(arg0, arg1);
|
|
191
214
|
}
|
|
215
|
+
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
216
|
+
}, unregister: () => {
|
|
217
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmvm_free(ptr >>> 0, 1));
|
|
192
218
|
var NetworkStatus = Object.freeze({
|
|
193
219
|
Disconnected: 0,
|
|
194
220
|
"0": "Disconnected",
|
|
@@ -199,9 +225,6 @@ var NetworkStatus = Object.freeze({
|
|
|
199
225
|
Error: 3,
|
|
200
226
|
"3": "Error"
|
|
201
227
|
});
|
|
202
|
-
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
203
|
-
}, unregister: () => {
|
|
204
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmvm_free(ptr >>> 0, 1));
|
|
205
228
|
var WasmVm = class {
|
|
206
229
|
__destroy_into_raw() {
|
|
207
230
|
const ptr = this.__wbg_ptr;
|
|
@@ -327,39 +350,45 @@ async function __wbg_load(module, imports) {
|
|
|
327
350
|
function __wbg_get_imports() {
|
|
328
351
|
const imports = {};
|
|
329
352
|
imports.wbg = {};
|
|
330
|
-
imports.wbg.
|
|
353
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
331
354
|
const v = arg0;
|
|
332
355
|
const ret = typeof v === "boolean" ? v : void 0;
|
|
333
356
|
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
334
357
|
};
|
|
335
|
-
imports.wbg.
|
|
358
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
336
359
|
const ret = debugString(arg1);
|
|
337
360
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
338
361
|
const len1 = WASM_VECTOR_LEN;
|
|
339
362
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
340
363
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
341
364
|
};
|
|
342
|
-
imports.wbg.
|
|
365
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
343
366
|
const ret = typeof arg0 === "function";
|
|
344
367
|
return ret;
|
|
345
368
|
};
|
|
346
|
-
imports.wbg.
|
|
369
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
347
370
|
const ret = arg0 === void 0;
|
|
348
371
|
return ret;
|
|
349
372
|
};
|
|
350
|
-
imports.wbg.
|
|
373
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
351
374
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
352
375
|
};
|
|
353
|
-
imports.wbg.
|
|
376
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
354
377
|
arg0._wbg_cb_unref();
|
|
355
378
|
};
|
|
356
|
-
imports.wbg.
|
|
379
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() {
|
|
357
380
|
return handleError(function(arg0, arg1) {
|
|
358
381
|
const ret = arg0.call(arg1);
|
|
359
382
|
return ret;
|
|
360
383
|
}, arguments);
|
|
361
384
|
};
|
|
362
|
-
imports.wbg.
|
|
385
|
+
imports.wbg.__wbg_call_c8baa5c5e72d274e = function() {
|
|
386
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
|
387
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
388
|
+
return ret;
|
|
389
|
+
}, arguments);
|
|
390
|
+
};
|
|
391
|
+
imports.wbg.__wbg_datagrams_05d12f8029dbc662 = function(arg0) {
|
|
363
392
|
const ret = arg0.datagrams;
|
|
364
393
|
return ret;
|
|
365
394
|
};
|
|
@@ -374,31 +403,35 @@ function __wbg_get_imports() {
|
|
|
374
403
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
375
404
|
}
|
|
376
405
|
};
|
|
377
|
-
imports.wbg.
|
|
406
|
+
imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
|
|
378
407
|
const ret = arg0.getReader();
|
|
379
408
|
return ret;
|
|
380
409
|
};
|
|
381
|
-
imports.wbg.
|
|
410
|
+
imports.wbg.__wbg_getWriter_bbffb7cf601bec61 = function() {
|
|
382
411
|
return handleError(function(arg0) {
|
|
383
412
|
const ret = arg0.getWriter();
|
|
384
413
|
return ret;
|
|
385
414
|
}, arguments);
|
|
386
415
|
};
|
|
387
|
-
imports.wbg.
|
|
416
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() {
|
|
388
417
|
return handleError(function(arg0, arg1) {
|
|
389
418
|
const ret = Reflect.get(arg0, arg1);
|
|
390
419
|
return ret;
|
|
391
420
|
}, arguments);
|
|
392
421
|
};
|
|
393
|
-
imports.wbg.
|
|
422
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
394
423
|
const ret = arg0.length;
|
|
395
424
|
return ret;
|
|
396
425
|
};
|
|
397
|
-
imports.wbg.
|
|
426
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
398
427
|
const ret = new Object();
|
|
399
428
|
return ret;
|
|
400
429
|
};
|
|
401
|
-
imports.wbg.
|
|
430
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
431
|
+
const ret = new Array();
|
|
432
|
+
return ret;
|
|
433
|
+
};
|
|
434
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
402
435
|
const ret = new Uint8Array(arg0);
|
|
403
436
|
return ret;
|
|
404
437
|
};
|
|
@@ -406,61 +439,61 @@ function __wbg_get_imports() {
|
|
|
406
439
|
const ret = new Error();
|
|
407
440
|
return ret;
|
|
408
441
|
};
|
|
409
|
-
imports.wbg.
|
|
410
|
-
const ret = new Array();
|
|
411
|
-
return ret;
|
|
412
|
-
};
|
|
413
|
-
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
442
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
414
443
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
415
444
|
return ret;
|
|
416
445
|
};
|
|
417
|
-
imports.wbg.
|
|
446
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
418
447
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
419
448
|
return ret;
|
|
420
449
|
};
|
|
421
|
-
imports.wbg.
|
|
450
|
+
imports.wbg.__wbg_new_with_options_661ae023a99756d4 = function() {
|
|
422
451
|
return handleError(function(arg0, arg1, arg2) {
|
|
423
452
|
const ret = new WebTransport(getStringFromWasm0(arg0, arg1), arg2);
|
|
424
453
|
return ret;
|
|
425
454
|
}, arguments);
|
|
426
455
|
};
|
|
427
|
-
imports.wbg.
|
|
456
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
428
457
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
429
458
|
};
|
|
430
|
-
imports.wbg.
|
|
459
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
431
460
|
const ret = arg0.push(arg1);
|
|
432
461
|
return ret;
|
|
433
462
|
};
|
|
434
|
-
imports.wbg.
|
|
463
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
435
464
|
const ret = arg0.queueMicrotask;
|
|
436
465
|
return ret;
|
|
437
466
|
};
|
|
438
|
-
imports.wbg.
|
|
467
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
439
468
|
queueMicrotask(arg0);
|
|
440
469
|
};
|
|
441
|
-
imports.wbg.
|
|
470
|
+
imports.wbg.__wbg_random_cc1f9237d866d212 = function() {
|
|
471
|
+
const ret = Math.random();
|
|
472
|
+
return ret;
|
|
473
|
+
};
|
|
474
|
+
imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) {
|
|
442
475
|
const ret = arg0.read();
|
|
443
476
|
return ret;
|
|
444
477
|
};
|
|
445
|
-
imports.wbg.
|
|
478
|
+
imports.wbg.__wbg_readable_91b7193a7ae57e51 = function(arg0) {
|
|
446
479
|
const ret = arg0.readable;
|
|
447
480
|
return ret;
|
|
448
481
|
};
|
|
449
|
-
imports.wbg.
|
|
482
|
+
imports.wbg.__wbg_ready_a3e887a4174c582b = function(arg0) {
|
|
450
483
|
const ret = arg0.ready;
|
|
451
484
|
return ret;
|
|
452
485
|
};
|
|
453
|
-
imports.wbg.
|
|
486
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
454
487
|
const ret = Promise.resolve(arg0);
|
|
455
488
|
return ret;
|
|
456
489
|
};
|
|
457
|
-
imports.wbg.
|
|
490
|
+
imports.wbg.__wbg_set_algorithm_f5b9d6dae15e63e3 = function(arg0, arg1, arg2) {
|
|
458
491
|
arg0.algorithm = getStringFromWasm0(arg1, arg2);
|
|
459
492
|
};
|
|
460
|
-
imports.wbg.
|
|
493
|
+
imports.wbg.__wbg_set_server_certificate_hashes_d12c95e03a45bcd5 = function(arg0, arg1) {
|
|
461
494
|
arg0.serverCertificateHashes = arg1;
|
|
462
495
|
};
|
|
463
|
-
imports.wbg.
|
|
496
|
+
imports.wbg.__wbg_set_value_3371f9dc48a34104 = function(arg0, arg1) {
|
|
464
497
|
arg0.value = arg1;
|
|
465
498
|
};
|
|
466
499
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
@@ -470,46 +503,54 @@ function __wbg_get_imports() {
|
|
|
470
503
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
471
504
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
472
505
|
};
|
|
473
|
-
imports.wbg.
|
|
506
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
474
507
|
const ret = typeof global === "undefined" ? null : global;
|
|
475
508
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
476
509
|
};
|
|
477
|
-
imports.wbg.
|
|
510
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
478
511
|
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
479
512
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
480
513
|
};
|
|
481
|
-
imports.wbg.
|
|
514
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
482
515
|
const ret = typeof self === "undefined" ? null : self;
|
|
483
516
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
484
517
|
};
|
|
485
|
-
imports.wbg.
|
|
518
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
486
519
|
const ret = typeof window === "undefined" ? null : window;
|
|
487
520
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
488
521
|
};
|
|
489
|
-
imports.wbg.
|
|
490
|
-
const ret = arg0.then(arg1);
|
|
522
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
523
|
+
const ret = arg0.then(arg1, arg2);
|
|
491
524
|
return ret;
|
|
492
525
|
};
|
|
493
|
-
imports.wbg.
|
|
494
|
-
const ret = arg0.then(arg1
|
|
526
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
527
|
+
const ret = arg0.then(arg1);
|
|
495
528
|
return ret;
|
|
496
529
|
};
|
|
497
|
-
imports.wbg.
|
|
530
|
+
imports.wbg.__wbg_writable_523e68bd72433329 = function(arg0) {
|
|
498
531
|
const ret = arg0.writable;
|
|
499
532
|
return ret;
|
|
500
533
|
};
|
|
501
|
-
imports.wbg.
|
|
534
|
+
imports.wbg.__wbg_write_0823b42435137c02 = function(arg0, arg1) {
|
|
502
535
|
const ret = arg0.write(arg1);
|
|
503
536
|
return ret;
|
|
504
537
|
};
|
|
505
|
-
imports.wbg.__wbindgen_cast_19eead9c9e92d417 = function(arg0, arg1) {
|
|
506
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb58eefa6e6233209, wasm_bindgen__convert__closures_____invoke__hf80474e20f8b36e4);
|
|
507
|
-
return ret;
|
|
508
|
-
};
|
|
509
538
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
510
539
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
511
540
|
return ret;
|
|
512
541
|
};
|
|
542
|
+
imports.wbg.__wbindgen_cast_9f0223d8557fdf20 = function(arg0, arg1) {
|
|
543
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb099e2ae98169675, wasm_bindgen__convert__closures_____invoke__h6709295d3f31b919);
|
|
544
|
+
return ret;
|
|
545
|
+
};
|
|
546
|
+
imports.wbg.__wbindgen_cast_c47184c56ac918cb = function(arg0, arg1) {
|
|
547
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5a236a3e5f42ce16, wasm_bindgen__convert__closures_____invoke__hdce74b4265fa20da);
|
|
548
|
+
return ret;
|
|
549
|
+
};
|
|
550
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
551
|
+
const ret = arg0;
|
|
552
|
+
return ret;
|
|
553
|
+
};
|
|
513
554
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
514
555
|
const table = wasm.__wbindgen_externrefs;
|
|
515
556
|
const offset = table.grow(4);
|
|
@@ -518,7 +559,6 @@ function __wbg_get_imports() {
|
|
|
518
559
|
table.set(offset + 1, null);
|
|
519
560
|
table.set(offset + 2, true);
|
|
520
561
|
table.set(offset + 3, false);
|
|
521
|
-
;
|
|
522
562
|
};
|
|
523
563
|
return imports;
|
|
524
564
|
}
|