@unyt/datex 0.0.13 → 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/esm/datex-web/datex_web.d.ts +93 -2
- package/esm/datex-web/datex_web.internal.d.ts +221 -188
- package/esm/datex-web/datex_web.internal.d.ts.map +1 -1
- package/esm/datex-web/datex_web.internal.js +453 -385
- package/esm/datex-web/datex_web.wasm +0 -0
- package/esm/datex-web/types/decompiler/options.d.ts +17 -0
- package/esm/datex-web/types/decompiler/options.d.ts.map +1 -0
- package/esm/datex-web/types/decompiler/options.js +4 -0
- package/esm/datex-web/types/disassembler/options.d.ts +6 -0
- package/esm/datex-web/types/disassembler/options.d.ts.map +1 -0
- package/esm/datex-web/types/disassembler/options.js +4 -0
- package/esm/datex-web/types/network/com_hub/managers/socket_manager.d.ts +9 -0
- package/esm/datex-web/types/network/com_hub/managers/socket_manager.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_hub/managers/socket_manager.js +4 -0
- package/esm/datex-web/types/network/com_hub/metadata.d.ts +20 -0
- package/esm/datex-web/types/network/com_hub/metadata.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_hub/metadata.js +4 -0
- package/esm/datex-web/types/network/com_hub/mod.d.ts +6 -0
- package/esm/datex-web/types/network/com_hub/mod.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_hub/mod.js +4 -0
- package/esm/datex-web/types/network/com_hub/network_tracing.d.ts +23 -0
- package/esm/datex-web/types/network/com_hub/network_tracing.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_hub/network_tracing.js +4 -0
- package/esm/datex-web/types/network/com_hub.d.ts +8 -0
- package/esm/datex-web/types/network/com_hub.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_hub.js +4 -0
- package/esm/datex-web/types/network/com_interfaces/com_interface/properties.d.ts +27 -0
- package/esm/datex-web/types/network/com_interfaces/com_interface/properties.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_interfaces/com_interface/properties.js +4 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.d.ts +10 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/http_common.js +4 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.d.ts +6 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.d.ts.map +1 -0
- package/esm/datex-web/types/network/com_interfaces/default_setup_data/websocket/websocket_server.js +4 -0
- package/esm/datex-web/types/runtime/config.d.ts +16 -0
- package/esm/datex-web/types/runtime/config.d.ts.map +1 -0
- package/esm/datex-web/types/runtime/config.js +4 -0
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +2 -0
- package/esm/deno.json +73 -17
- package/esm/dif/core.d.ts +36 -39
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/core.js +33 -53
- package/esm/dif/dif-handler.d.ts +58 -101
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +417 -345
- package/esm/dif/display.d.ts +14 -5
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +89 -39
- package/esm/dif/helpers/mod.d.ts +6 -0
- package/esm/dif/helpers/mod.d.ts.map +1 -0
- package/esm/dif/helpers/mod.js +5 -0
- package/esm/dif/helpers/typed-integer.d.ts +14 -0
- package/esm/dif/helpers/typed-integer.d.ts.map +1 -0
- package/esm/dif/helpers/typed-integer.js +37 -0
- package/esm/dif/js-lib.d.ts +14 -1
- package/esm/dif/js-lib.d.ts.map +1 -1
- package/esm/dif/js-lib.js +19 -1
- package/esm/dif/mod.d.ts +2 -2
- package/esm/dif/mod.d.ts.map +1 -1
- package/esm/dif/mod.js +2 -2
- package/esm/dif/type-registry.d.ts +30 -21
- package/esm/dif/type-registry.d.ts.map +1 -1
- package/esm/dif/type-registry.js +45 -33
- package/esm/dif/types/mod.d.ts +9 -0
- package/esm/dif/types/mod.d.ts.map +1 -0
- package/esm/dif/types/mod.js +8 -0
- package/esm/dif/types/type.d.ts +91 -0
- package/esm/dif/types/type.d.ts.map +1 -0
- package/esm/dif/types/type.js +33 -0
- package/esm/dif/types/update.d.ts +63 -0
- package/esm/dif/types/update.d.ts.map +1 -0
- package/esm/dif/types/update.js +16 -0
- package/esm/dif/types/value.d.ts +62 -0
- package/esm/dif/types/value.d.ts.map +1 -0
- package/esm/dif/types/value.js +1 -0
- package/esm/dif/update.d.ts +20 -0
- package/esm/dif/update.d.ts.map +1 -0
- package/esm/dif/update.js +41 -0
- package/esm/dif/utils.d.ts +8 -0
- package/esm/dif/utils.d.ts.map +1 -0
- package/esm/dif/utils.js +67 -0
- package/esm/lib/js-core-types/array.d.ts +3 -0
- package/esm/lib/js-core-types/array.d.ts.map +1 -0
- package/esm/lib/js-core-types/array.js +175 -0
- package/esm/lib/js-core-types/map.d.ts +15 -0
- package/esm/lib/js-core-types/map.d.ts.map +1 -0
- package/esm/lib/js-core-types/map.js +88 -0
- package/esm/lib/js-core-types/mod.d.ts +8 -0
- package/esm/lib/js-core-types/mod.d.ts.map +1 -0
- package/esm/lib/js-core-types/mod.js +7 -0
- package/esm/lib/mod.d.ts +8 -0
- package/esm/lib/mod.d.ts.map +1 -0
- package/esm/lib/mod.js +7 -0
- package/esm/lib/special-core-types/endpoint.d.ts.map +1 -1
- package/esm/lib/special-core-types/mod.d.ts +9 -0
- package/esm/lib/special-core-types/mod.d.ts.map +1 -0
- package/esm/lib/special-core-types/mod.js +8 -0
- package/esm/lib/special-core-types/range.d.ts +26 -0
- package/esm/lib/special-core-types/range.d.ts.map +1 -0
- package/esm/lib/special-core-types/range.js +46 -0
- package/esm/lib/special-core-types/tagged.d.ts +17 -0
- package/esm/lib/special-core-types/tagged.d.ts.map +1 -0
- package/esm/lib/special-core-types/tagged.js +37 -0
- package/esm/lib/special-core-types/undefined.d.ts +7 -0
- package/esm/lib/special-core-types/undefined.d.ts.map +1 -0
- package/esm/lib/special-core-types/undefined.js +28 -0
- package/esm/mod.d.ts +3 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -1
- package/esm/network/com-hub.d.ts +28 -1
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +6 -2
- package/esm/network/interfaces/websocket-server-base.d.ts +1 -1
- package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -1
- package/esm/network/interfaces/websocket-server-base.js +8 -7
- package/esm/network/interfaces/websocket-server-deno.d.ts +1 -1
- package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -1
- package/esm/repl/mod.d.ts +8 -0
- package/esm/repl/mod.d.ts.map +1 -0
- package/esm/repl/mod.js +31 -0
- package/esm/runtime/runtime.d.ts +43 -18
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +55 -32
- package/esm/{refs/ref.d.ts → shared-container/base-shared-container.d.ts} +13 -5
- package/esm/shared-container/base-shared-container.d.ts.map +1 -0
- package/esm/shared-container/base-shared-container.js +95 -0
- package/esm/shared-container/mod.d.ts +36 -0
- package/esm/shared-container/mod.d.ts.map +1 -0
- package/esm/shared-container/mod.js +29 -0
- package/esm/shared-container/owned.d.ts +33 -0
- package/esm/shared-container/owned.d.ts.map +1 -0
- package/esm/shared-container/owned.js +60 -0
- package/esm/shared-container/reference.d.ts +31 -0
- package/esm/shared-container/reference.d.ts.map +1 -0
- package/esm/shared-container/reference.js +64 -0
- package/esm/utils/devtools-formatter.js +24 -2
- package/esm/utils/option.d.ts +17 -0
- package/esm/utils/option.d.ts.map +1 -0
- package/esm/utils/option.js +54 -0
- package/package.json +1 -1
- package/esm/dif/definitions.d.ts +0 -134
- package/esm/dif/definitions.d.ts.map +0 -1
- package/esm/dif/definitions.js +0 -38
- package/esm/refs/ref.d.ts.map +0 -1
- package/esm/refs/ref.js +0 -60
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import * as dntShim from "../_dnt.shims.js";
|
|
5
5
|
export class JSComHub {
|
|
6
6
|
static __wrap(ptr) {
|
|
7
|
-
ptr = ptr >>> 0;
|
|
8
7
|
const obj = Object.create(JSComHub.prototype);
|
|
9
8
|
obj.__wbg_ptr = ptr;
|
|
10
9
|
JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -27,7 +26,7 @@ export class JSComHub {
|
|
|
27
26
|
* @returns {Promise<string>}
|
|
28
27
|
*/
|
|
29
28
|
create_interface(interface_type, setup_data, priority) {
|
|
30
|
-
const ptr0 = passStringToWasm0(interface_type, wasm.
|
|
29
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
31
30
|
const len0 = WASM_VECTOR_LEN;
|
|
32
31
|
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, setup_data, isLikeNone(priority) ? 0xFFFFFF : priority);
|
|
33
32
|
return ret;
|
|
@@ -52,7 +51,7 @@ export class JSComHub {
|
|
|
52
51
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
53
52
|
}
|
|
54
53
|
finally {
|
|
55
|
-
wasm.
|
|
54
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
57
|
/**
|
|
@@ -60,7 +59,7 @@ export class JSComHub {
|
|
|
60
59
|
* @returns {Promise<any | undefined>}
|
|
61
60
|
*/
|
|
62
61
|
get_trace(endpoint) {
|
|
63
|
-
const ptr0 = passStringToWasm0(endpoint, wasm.
|
|
62
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
64
63
|
const len0 = WASM_VECTOR_LEN;
|
|
65
64
|
const ret = wasm.jscomhub_get_trace(this.__wbg_ptr, ptr0, len0);
|
|
66
65
|
return ret;
|
|
@@ -70,7 +69,7 @@ export class JSComHub {
|
|
|
70
69
|
* @returns {Promise<string | undefined>}
|
|
71
70
|
*/
|
|
72
71
|
get_trace_string(endpoint) {
|
|
73
|
-
const ptr0 = passStringToWasm0(endpoint, wasm.
|
|
72
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
74
73
|
const len0 = WASM_VECTOR_LEN;
|
|
75
74
|
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
76
75
|
return ret;
|
|
@@ -89,7 +88,7 @@ export class JSComHub {
|
|
|
89
88
|
* @param {Function} factory
|
|
90
89
|
*/
|
|
91
90
|
register_interface_factory(interface_type, factory) {
|
|
92
|
-
const ptr0 = passStringToWasm0(interface_type, wasm.
|
|
91
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
93
92
|
const len0 = WASM_VECTOR_LEN;
|
|
94
93
|
wasm.jscomhub_register_interface_factory(this.__wbg_ptr, ptr0, len0, factory);
|
|
95
94
|
}
|
|
@@ -104,7 +103,7 @@ export class JSComHub {
|
|
|
104
103
|
* @returns {Promise<void>}
|
|
105
104
|
*/
|
|
106
105
|
remove_interface(interface_uuid) {
|
|
107
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.
|
|
106
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
108
107
|
const len0 = WASM_VECTOR_LEN;
|
|
109
108
|
const ret = wasm.jscomhub_remove_interface(this.__wbg_ptr, ptr0, len0);
|
|
110
109
|
return ret;
|
|
@@ -114,7 +113,7 @@ export class JSComHub {
|
|
|
114
113
|
* @returns {Promise<void>}
|
|
115
114
|
*/
|
|
116
115
|
remove_socket(socket_uuid) {
|
|
117
|
-
const ptr0 = passStringToWasm0(socket_uuid, wasm.
|
|
116
|
+
const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
118
117
|
const len0 = WASM_VECTOR_LEN;
|
|
119
118
|
const ret = wasm.jscomhub_remove_socket(this.__wbg_ptr, ptr0, len0);
|
|
120
119
|
return ret;
|
|
@@ -122,9 +121,150 @@ export class JSComHub {
|
|
|
122
121
|
}
|
|
123
122
|
if (Symbol.dispose)
|
|
124
123
|
JSComHub.prototype[Symbol.dispose] = JSComHub.prototype.free;
|
|
124
|
+
export class JSDIFInterface {
|
|
125
|
+
static __wrap(ptr) {
|
|
126
|
+
const obj = Object.create(JSDIFInterface.prototype);
|
|
127
|
+
obj.__wbg_ptr = ptr;
|
|
128
|
+
JSDIFInterfaceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
129
|
+
return obj;
|
|
130
|
+
}
|
|
131
|
+
__destroy_into_raw() {
|
|
132
|
+
const ptr = this.__wbg_ptr;
|
|
133
|
+
this.__wbg_ptr = 0;
|
|
134
|
+
JSDIFInterfaceFinalization.unregister(this);
|
|
135
|
+
return ptr;
|
|
136
|
+
}
|
|
137
|
+
free() {
|
|
138
|
+
const ptr = this.__destroy_into_raw();
|
|
139
|
+
wasm.__wbg_jsdifinterface_free(ptr, 0);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @param {any} callee
|
|
143
|
+
* @param {any} value
|
|
144
|
+
* @returns {any | undefined}
|
|
145
|
+
*/
|
|
146
|
+
apply(callee, value) {
|
|
147
|
+
const ret = wasm.jsdifinterface_apply(this.__wbg_ptr, callee, value);
|
|
148
|
+
if (ret[2]) {
|
|
149
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
150
|
+
}
|
|
151
|
+
return takeFromExternrefTable0(ret[0]);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @param {any} value
|
|
155
|
+
* @returns {string}
|
|
156
|
+
*/
|
|
157
|
+
create_pointer(value) {
|
|
158
|
+
let deferred2_0;
|
|
159
|
+
let deferred2_1;
|
|
160
|
+
try {
|
|
161
|
+
const ret = wasm.jsdifinterface_create_pointer(this.__wbg_ptr, value);
|
|
162
|
+
var ptr1 = ret[0];
|
|
163
|
+
var len1 = ret[1];
|
|
164
|
+
if (ret[3]) {
|
|
165
|
+
ptr1 = 0;
|
|
166
|
+
len1 = 0;
|
|
167
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
168
|
+
}
|
|
169
|
+
deferred2_0 = ptr1;
|
|
170
|
+
deferred2_1 = len1;
|
|
171
|
+
return getStringFromWasm0(ptr1, len1);
|
|
172
|
+
}
|
|
173
|
+
finally {
|
|
174
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @param {string} address
|
|
179
|
+
* @param {number | null} [ownership]
|
|
180
|
+
* @returns {boolean}
|
|
181
|
+
*/
|
|
182
|
+
has_address_with_ownership(address, ownership) {
|
|
183
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
184
|
+
const len0 = WASM_VECTOR_LEN;
|
|
185
|
+
const ret = wasm.jsdifinterface_has_address_with_ownership(this.__wbg_ptr, ptr0, len0, isLikeNone(ownership) ? 0xFFFFFF : ownership);
|
|
186
|
+
if (ret[2]) {
|
|
187
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
188
|
+
}
|
|
189
|
+
return ret[0] !== 0;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @param {number} transceiver_id
|
|
193
|
+
* @param {string} address
|
|
194
|
+
* @param {any} observe_options
|
|
195
|
+
* @param {Function} callback
|
|
196
|
+
* @returns {number}
|
|
197
|
+
*/
|
|
198
|
+
observe_pointer(transceiver_id, address, observe_options, callback) {
|
|
199
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
200
|
+
const len0 = WASM_VECTOR_LEN;
|
|
201
|
+
const ret = wasm.jsdifinterface_observe_pointer(this.__wbg_ptr, transceiver_id, ptr0, len0, observe_options, callback);
|
|
202
|
+
if (ret[2]) {
|
|
203
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
204
|
+
}
|
|
205
|
+
return ret[0] >>> 0;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
209
|
+
* @param {string} address
|
|
210
|
+
* @returns {any}
|
|
211
|
+
*/
|
|
212
|
+
resolve_pointer_address(address) {
|
|
213
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
214
|
+
const len0 = WASM_VECTOR_LEN;
|
|
215
|
+
const ret = wasm.jsdifinterface_resolve_pointer_address(this.__wbg_ptr, ptr0, len0);
|
|
216
|
+
if (ret[2]) {
|
|
217
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
218
|
+
}
|
|
219
|
+
return takeFromExternrefTable0(ret[0]);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} address
|
|
223
|
+
* @param {number} observer_id
|
|
224
|
+
*/
|
|
225
|
+
unobserve_pointer(address, observer_id) {
|
|
226
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
227
|
+
const len0 = WASM_VECTOR_LEN;
|
|
228
|
+
const ret = wasm.jsdifinterface_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
229
|
+
if (ret[1]) {
|
|
230
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Applies a DIF update on a shared container at the given address, using the provided update data.
|
|
235
|
+
* TODO: Can we optimize this, by not returning the update result data back to JS, as it adds unnecessary overhead, as
|
|
236
|
+
* we can access the values in JS before update.
|
|
237
|
+
* @param {string} address
|
|
238
|
+
* @param {any} update
|
|
239
|
+
* @returns {any}
|
|
240
|
+
*/
|
|
241
|
+
update(address, update) {
|
|
242
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
244
|
+
const ret = wasm.jsdifinterface_update(this.__wbg_ptr, ptr0, len0, update);
|
|
245
|
+
if (ret[2]) {
|
|
246
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
247
|
+
}
|
|
248
|
+
return takeFromExternrefTable0(ret[0]);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @param {string} address
|
|
252
|
+
* @param {number} observer_id
|
|
253
|
+
* @param {any} observe_options
|
|
254
|
+
*/
|
|
255
|
+
update_observer_options(address, observer_id, observe_options) {
|
|
256
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
257
|
+
const len0 = WASM_VECTOR_LEN;
|
|
258
|
+
const ret = wasm.jsdifinterface_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
259
|
+
if (ret[1]) {
|
|
260
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
if (Symbol.dispose)
|
|
265
|
+
JSDIFInterface.prototype[Symbol.dispose] = JSDIFInterface.prototype.free;
|
|
125
266
|
export class JSRuntime {
|
|
126
267
|
static __wrap(ptr) {
|
|
127
|
-
ptr = ptr >>> 0;
|
|
128
268
|
const obj = Object.create(JSRuntime.prototype);
|
|
129
269
|
obj.__wbg_ptr = ptr;
|
|
130
270
|
JSRuntimeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -148,19 +288,18 @@ export class JSRuntime {
|
|
|
148
288
|
return JSComHub.__wrap(ret);
|
|
149
289
|
}
|
|
150
290
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @param {string
|
|
153
|
-
* @
|
|
291
|
+
* Compiles a DATEX script with optional inserted values to a DXB body
|
|
292
|
+
* @param {string} script
|
|
293
|
+
* @param {any[] | null} [inserted_values]
|
|
294
|
+
* @returns {Promise<Uint8Array>}
|
|
154
295
|
*/
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const ret = wasm.
|
|
161
|
-
|
|
162
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
163
|
-
return v3;
|
|
296
|
+
compile(script, inserted_values) {
|
|
297
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
298
|
+
const len0 = WASM_VECTOR_LEN;
|
|
299
|
+
var ptr1 = isLikeNone(inserted_values) ? 0 : passArrayJsValueToWasm0(inserted_values, wasm.__wbindgen_malloc_command_export);
|
|
300
|
+
var len1 = WASM_VECTOR_LEN;
|
|
301
|
+
const ret = wasm.jsruntime_compile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
302
|
+
return ret;
|
|
164
303
|
}
|
|
165
304
|
/**
|
|
166
305
|
* @returns {Promise<Promise<any>>}
|
|
@@ -171,11 +310,11 @@ export class JSRuntime {
|
|
|
171
310
|
}
|
|
172
311
|
/**
|
|
173
312
|
* Get a handle to the DIF interface of the runtime
|
|
174
|
-
* @returns {
|
|
313
|
+
* @returns {JSDIFInterface}
|
|
175
314
|
*/
|
|
176
|
-
|
|
177
|
-
const ret = wasm.
|
|
178
|
-
return
|
|
315
|
+
dif_interface() {
|
|
316
|
+
const ret = wasm.jsruntime_dif_interface(this.__wbg_ptr);
|
|
317
|
+
return JSDIFInterface.__wrap(ret);
|
|
179
318
|
}
|
|
180
319
|
/**
|
|
181
320
|
* @returns {string}
|
|
@@ -190,18 +329,19 @@ export class JSRuntime {
|
|
|
190
329
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
191
330
|
}
|
|
192
331
|
finally {
|
|
193
|
-
wasm.
|
|
332
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
194
333
|
}
|
|
195
334
|
}
|
|
196
335
|
/**
|
|
336
|
+
* Executes a DATEX script with inserted values, returning the result as DIFValue
|
|
197
337
|
* @param {string} script
|
|
198
|
-
* @param {any[] | null} [
|
|
338
|
+
* @param {any[] | null} [inserted_values]
|
|
199
339
|
* @returns {Promise<any>}
|
|
200
340
|
*/
|
|
201
|
-
execute(script,
|
|
202
|
-
const ptr0 = passStringToWasm0(script, wasm.
|
|
341
|
+
execute(script, inserted_values) {
|
|
342
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
203
343
|
const len0 = WASM_VECTOR_LEN;
|
|
204
|
-
var ptr1 = isLikeNone(
|
|
344
|
+
var ptr1 = isLikeNone(inserted_values) ? 0 : passArrayJsValueToWasm0(inserted_values, wasm.__wbindgen_malloc_command_export);
|
|
205
345
|
var len1 = WASM_VECTOR_LEN;
|
|
206
346
|
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
207
347
|
return ret;
|
|
@@ -212,9 +352,9 @@ export class JSRuntime {
|
|
|
212
352
|
* @returns {any}
|
|
213
353
|
*/
|
|
214
354
|
execute_sync(script, dif_values) {
|
|
215
|
-
const ptr0 = passStringToWasm0(script, wasm.
|
|
355
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
216
356
|
const len0 = WASM_VECTOR_LEN;
|
|
217
|
-
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.
|
|
357
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc_command_export);
|
|
218
358
|
var len1 = WASM_VECTOR_LEN;
|
|
219
359
|
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
220
360
|
if (ret[2]) {
|
|
@@ -232,9 +372,9 @@ export class JSRuntime {
|
|
|
232
372
|
let deferred4_0;
|
|
233
373
|
let deferred4_1;
|
|
234
374
|
try {
|
|
235
|
-
const ptr0 = passStringToWasm0(script, wasm.
|
|
375
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
236
376
|
const len0 = WASM_VECTOR_LEN;
|
|
237
|
-
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.
|
|
377
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc_command_export);
|
|
238
378
|
var len1 = WASM_VECTOR_LEN;
|
|
239
379
|
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
240
380
|
var ptr3 = ret[0];
|
|
@@ -249,19 +389,20 @@ export class JSRuntime {
|
|
|
249
389
|
return getStringFromWasm0(ptr3, len3);
|
|
250
390
|
}
|
|
251
391
|
finally {
|
|
252
|
-
wasm.
|
|
392
|
+
wasm.__wbindgen_free_command_export(deferred4_0, deferred4_1, 1);
|
|
253
393
|
}
|
|
254
394
|
}
|
|
255
395
|
/**
|
|
396
|
+
* Execute a DATEX script with optional inserted values, returning the result as a string
|
|
256
397
|
* @param {string} script
|
|
257
|
-
* @param {any[] | null | undefined}
|
|
398
|
+
* @param {any[] | null | undefined} inserted_values
|
|
258
399
|
* @param {any} decompile_options
|
|
259
400
|
* @returns {Promise<string>}
|
|
260
401
|
*/
|
|
261
|
-
execute_with_string_result(script,
|
|
262
|
-
const ptr0 = passStringToWasm0(script, wasm.
|
|
402
|
+
execute_with_string_result(script, inserted_values, decompile_options) {
|
|
403
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
263
404
|
const len0 = WASM_VECTOR_LEN;
|
|
264
|
-
var ptr1 = isLikeNone(
|
|
405
|
+
var ptr1 = isLikeNone(inserted_values) ? 0 : passArrayJsValueToWasm0(inserted_values, wasm.__wbindgen_malloc_command_export);
|
|
265
406
|
var len1 = WASM_VECTOR_LEN;
|
|
266
407
|
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
267
408
|
return ret;
|
|
@@ -297,7 +438,7 @@ export class JSRuntime {
|
|
|
297
438
|
return getStringFromWasm0(ptr1, len1);
|
|
298
439
|
}
|
|
299
440
|
finally {
|
|
300
|
-
wasm.
|
|
441
|
+
wasm.__wbindgen_free_command_export(deferred2_0, deferred2_1, 1);
|
|
301
442
|
}
|
|
302
443
|
}
|
|
303
444
|
/**
|
|
@@ -313,7 +454,7 @@ export class JSRuntime {
|
|
|
313
454
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
314
455
|
}
|
|
315
456
|
finally {
|
|
316
|
-
wasm.
|
|
457
|
+
wasm.__wbindgen_free_command_export(deferred1_0, deferred1_1, 1);
|
|
317
458
|
}
|
|
318
459
|
}
|
|
319
460
|
/**
|
|
@@ -327,149 +468,41 @@ export class JSRuntime {
|
|
|
327
468
|
}
|
|
328
469
|
if (Symbol.dispose)
|
|
329
470
|
JSRuntime.prototype[Symbol.dispose] = JSRuntime.prototype.free;
|
|
330
|
-
export class
|
|
331
|
-
static __wrap(ptr) {
|
|
332
|
-
ptr = ptr >>> 0;
|
|
333
|
-
const obj = Object.create(RuntimeDIFHandle.prototype);
|
|
334
|
-
obj.__wbg_ptr = ptr;
|
|
335
|
-
RuntimeDIFHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
336
|
-
return obj;
|
|
337
|
-
}
|
|
471
|
+
export class Repl {
|
|
338
472
|
__destroy_into_raw() {
|
|
339
473
|
const ptr = this.__wbg_ptr;
|
|
340
474
|
this.__wbg_ptr = 0;
|
|
341
|
-
|
|
475
|
+
ReplFinalization.unregister(this);
|
|
342
476
|
return ptr;
|
|
343
477
|
}
|
|
344
478
|
free() {
|
|
345
479
|
const ptr = this.__destroy_into_raw();
|
|
346
|
-
wasm.
|
|
480
|
+
wasm.__wbg_repl_free(ptr, 0);
|
|
347
481
|
}
|
|
348
482
|
/**
|
|
349
|
-
* @param {
|
|
350
|
-
* @
|
|
351
|
-
* @returns {any}
|
|
352
|
-
*/
|
|
353
|
-
apply(callee, value) {
|
|
354
|
-
const ret = wasm.runtimedifhandle_apply(this.__wbg_ptr, callee, value);
|
|
355
|
-
if (ret[2]) {
|
|
356
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
357
|
-
}
|
|
358
|
-
return takeFromExternrefTable0(ret[0]);
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* @param {any} value
|
|
362
|
-
* @param {any} allowed_type
|
|
363
|
-
* @param {number} mutability
|
|
364
|
-
* @returns {string}
|
|
365
|
-
*/
|
|
366
|
-
create_pointer(value, allowed_type, mutability) {
|
|
367
|
-
let deferred2_0;
|
|
368
|
-
let deferred2_1;
|
|
369
|
-
try {
|
|
370
|
-
const ret = wasm.runtimedifhandle_create_pointer(this.__wbg_ptr, value, allowed_type, mutability);
|
|
371
|
-
var ptr1 = ret[0];
|
|
372
|
-
var len1 = ret[1];
|
|
373
|
-
if (ret[3]) {
|
|
374
|
-
ptr1 = 0;
|
|
375
|
-
len1 = 0;
|
|
376
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
377
|
-
}
|
|
378
|
-
deferred2_0 = ptr1;
|
|
379
|
-
deferred2_1 = len1;
|
|
380
|
-
return getStringFromWasm0(ptr1, len1);
|
|
381
|
-
}
|
|
382
|
-
finally {
|
|
383
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* @param {number} transceiver_id
|
|
388
|
-
* @param {string} address
|
|
389
|
-
* @param {any} observe_options
|
|
390
|
-
* @param {Function} callback
|
|
391
|
-
* @returns {number}
|
|
392
|
-
*/
|
|
393
|
-
observe_pointer(transceiver_id, address, observe_options, callback) {
|
|
394
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
-
const len0 = WASM_VECTOR_LEN;
|
|
396
|
-
const ret = wasm.runtimedifhandle_observe_pointer(this.__wbg_ptr, transceiver_id, ptr0, len0, observe_options, callback);
|
|
397
|
-
if (ret[2]) {
|
|
398
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
399
|
-
}
|
|
400
|
-
return ret[0] >>> 0;
|
|
401
|
-
}
|
|
402
|
-
/**
|
|
403
|
-
* Resolve a pointer address, returning a Promise
|
|
404
|
-
* If the pointer is in memory, the promise resolves immediately
|
|
405
|
-
* If the pointer is not in memory, it will be loaded first
|
|
406
|
-
* @param {string} address
|
|
407
|
-
* @returns {any}
|
|
408
|
-
*/
|
|
409
|
-
resolve_pointer_address(address) {
|
|
410
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
-
const len0 = WASM_VECTOR_LEN;
|
|
412
|
-
const ret = wasm.runtimedifhandle_resolve_pointer_address(this.__wbg_ptr, ptr0, len0);
|
|
413
|
-
if (ret[2]) {
|
|
414
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
415
|
-
}
|
|
416
|
-
return takeFromExternrefTable0(ret[0]);
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
420
|
-
* @param {string} address
|
|
421
|
-
* @returns {any}
|
|
422
|
-
*/
|
|
423
|
-
resolve_pointer_address_sync(address) {
|
|
424
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
425
|
-
const len0 = WASM_VECTOR_LEN;
|
|
426
|
-
const ret = wasm.runtimedifhandle_resolve_pointer_address_sync(this.__wbg_ptr, ptr0, len0);
|
|
427
|
-
if (ret[2]) {
|
|
428
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
429
|
-
}
|
|
430
|
-
return takeFromExternrefTable0(ret[0]);
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* @param {string} address
|
|
434
|
-
* @param {number} observer_id
|
|
435
|
-
*/
|
|
436
|
-
unobserve_pointer(address, observer_id) {
|
|
437
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
438
|
-
const len0 = WASM_VECTOR_LEN;
|
|
439
|
-
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
440
|
-
if (ret[1]) {
|
|
441
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* @param {number} transceiver_id
|
|
446
|
-
* @param {string} address
|
|
447
|
-
* @param {any} update
|
|
483
|
+
* @param {string} script
|
|
484
|
+
* @returns {Promise<any | undefined>}
|
|
448
485
|
*/
|
|
449
|
-
|
|
450
|
-
const ptr0 = passStringToWasm0(
|
|
486
|
+
execute(script) {
|
|
487
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
451
488
|
const len0 = WASM_VECTOR_LEN;
|
|
452
|
-
const ret = wasm.
|
|
453
|
-
|
|
454
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
455
|
-
}
|
|
489
|
+
const ret = wasm.repl_execute(this.__wbg_ptr, ptr0, len0);
|
|
490
|
+
return ret;
|
|
456
491
|
}
|
|
457
492
|
/**
|
|
458
|
-
* @param {
|
|
459
|
-
* @param {
|
|
460
|
-
* @param {any} observe_options
|
|
493
|
+
* @param {JSRuntime} runtime
|
|
494
|
+
* @param {boolean} verbose
|
|
461
495
|
*/
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
}
|
|
496
|
+
constructor(runtime, verbose) {
|
|
497
|
+
_assertClass(runtime, JSRuntime);
|
|
498
|
+
const ret = wasm.repl_new(runtime.__wbg_ptr, verbose);
|
|
499
|
+
this.__wbg_ptr = ret;
|
|
500
|
+
ReplFinalization.register(this, this.__wbg_ptr, this);
|
|
501
|
+
return this;
|
|
469
502
|
}
|
|
470
503
|
}
|
|
471
504
|
if (Symbol.dispose)
|
|
472
|
-
|
|
505
|
+
Repl.prototype[Symbol.dispose] = Repl.prototype.free;
|
|
473
506
|
/**
|
|
474
507
|
* @param {any} config
|
|
475
508
|
* @param {any} debug_config
|
|
@@ -479,129 +512,156 @@ export function create_runtime(config, debug_config) {
|
|
|
479
512
|
const ret = wasm.create_runtime(config, debug_config);
|
|
480
513
|
return ret;
|
|
481
514
|
}
|
|
482
|
-
|
|
515
|
+
/**
|
|
516
|
+
* @param {Uint8Array} dxb
|
|
517
|
+
* @returns {any}
|
|
518
|
+
*/
|
|
519
|
+
export function disassemble_dxb_flat(dxb) {
|
|
520
|
+
const ptr0 = passArray8ToWasm0(dxb, wasm.__wbindgen_malloc_command_export);
|
|
521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
522
|
+
const ret = wasm.disassemble_dxb_flat(ptr0, len0);
|
|
523
|
+
return ret;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* @param {Uint8Array} dxb
|
|
527
|
+
* @param {any} options
|
|
528
|
+
* @returns {any}
|
|
529
|
+
*/
|
|
530
|
+
export function disassemble_dxb_to_string(dxb, options) {
|
|
531
|
+
const ptr0 = passArray8ToWasm0(dxb, wasm.__wbindgen_malloc_command_export);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.disassemble_dxb_to_string(ptr0, len0, options);
|
|
534
|
+
return ret;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* @param {Uint8Array} dxb
|
|
538
|
+
* @returns {any}
|
|
539
|
+
*/
|
|
540
|
+
export function disassemble_dxb_tree(dxb) {
|
|
541
|
+
const ptr0 = passArray8ToWasm0(dxb, wasm.__wbindgen_malloc_command_export);
|
|
542
|
+
const len0 = WASM_VECTOR_LEN;
|
|
543
|
+
const ret = wasm.disassemble_dxb_tree(ptr0, len0);
|
|
544
|
+
return ret;
|
|
545
|
+
}
|
|
546
|
+
export function __wbg_Error_9dc85fe1bc224456(arg0, arg1) {
|
|
483
547
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
484
548
|
return ret;
|
|
485
549
|
}
|
|
486
|
-
export function
|
|
550
|
+
export function __wbg_Number_4779d427bae39753(arg0) {
|
|
487
551
|
const ret = Number(arg0);
|
|
488
552
|
return ret;
|
|
489
553
|
}
|
|
490
554
|
export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
491
555
|
const ret = String(arg1);
|
|
492
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
556
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
493
557
|
const len1 = WASM_VECTOR_LEN;
|
|
494
558
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
495
559
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
496
560
|
}
|
|
497
|
-
export function
|
|
561
|
+
export function __wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6(arg0, arg1) {
|
|
498
562
|
const v = arg1;
|
|
499
563
|
const ret = typeof (v) === 'bigint' ? v : undefined;
|
|
500
564
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
501
565
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
502
566
|
}
|
|
503
|
-
export function
|
|
567
|
+
export function __wbg___wbindgen_boolean_get_b131b2f36d6b2f55(arg0) {
|
|
504
568
|
const v = arg0;
|
|
505
569
|
const ret = typeof (v) === 'boolean' ? v : undefined;
|
|
506
570
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
507
571
|
}
|
|
508
|
-
export function
|
|
572
|
+
export function __wbg___wbindgen_debug_string_56c147eb1a51f0c4(arg0, arg1) {
|
|
509
573
|
const ret = debugString(arg1);
|
|
510
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
574
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
511
575
|
const len1 = WASM_VECTOR_LEN;
|
|
512
576
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
513
577
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
514
578
|
}
|
|
515
|
-
export function
|
|
579
|
+
export function __wbg___wbindgen_in_ce8569b2fc6f5088(arg0, arg1) {
|
|
516
580
|
const ret = arg0 in arg1;
|
|
517
581
|
return ret;
|
|
518
582
|
}
|
|
519
|
-
export function
|
|
583
|
+
export function __wbg___wbindgen_is_bigint_df272c65456269c2(arg0) {
|
|
520
584
|
const ret = typeof (arg0) === 'bigint';
|
|
521
585
|
return ret;
|
|
522
586
|
}
|
|
523
|
-
export function
|
|
587
|
+
export function __wbg___wbindgen_is_function_147961669f068cd4(arg0) {
|
|
524
588
|
const ret = typeof (arg0) === 'function';
|
|
525
589
|
return ret;
|
|
526
590
|
}
|
|
527
|
-
export function
|
|
528
|
-
const ret = arg0 === null;
|
|
529
|
-
return ret;
|
|
530
|
-
}
|
|
531
|
-
export function __wbg___wbindgen_is_object_f8b6723c60349a13(arg0) {
|
|
591
|
+
export function __wbg___wbindgen_is_object_3a2c414391dbf751(arg0) {
|
|
532
592
|
const val = arg0;
|
|
533
593
|
const ret = typeof (val) === 'object' && val !== null;
|
|
534
594
|
return ret;
|
|
535
595
|
}
|
|
536
|
-
export function
|
|
596
|
+
export function __wbg___wbindgen_is_string_6541b0f6ecd4e8e5(arg0) {
|
|
537
597
|
const ret = typeof (arg0) === 'string';
|
|
538
598
|
return ret;
|
|
539
599
|
}
|
|
540
|
-
export function
|
|
600
|
+
export function __wbg___wbindgen_is_undefined_4410e3c20a99fa97(arg0) {
|
|
541
601
|
const ret = arg0 === undefined;
|
|
542
602
|
return ret;
|
|
543
603
|
}
|
|
544
|
-
export function
|
|
604
|
+
export function __wbg___wbindgen_jsval_eq_174c93ec61bab0c5(arg0, arg1) {
|
|
545
605
|
const ret = arg0 === arg1;
|
|
546
606
|
return ret;
|
|
547
607
|
}
|
|
548
|
-
export function
|
|
608
|
+
export function __wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c(arg0, arg1) {
|
|
549
609
|
const ret = arg0 == arg1;
|
|
550
610
|
return ret;
|
|
551
611
|
}
|
|
552
|
-
export function
|
|
612
|
+
export function __wbg___wbindgen_number_get_588ed6b97f0d7e14(arg0, arg1) {
|
|
553
613
|
const obj = arg1;
|
|
554
614
|
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
555
615
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
556
616
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
557
617
|
}
|
|
558
|
-
export function
|
|
618
|
+
export function __wbg___wbindgen_string_get_fa2687d531ed17a5(arg0, arg1) {
|
|
559
619
|
const obj = arg1;
|
|
560
620
|
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
561
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
621
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
562
622
|
var len1 = WASM_VECTOR_LEN;
|
|
563
623
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
564
624
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
565
625
|
}
|
|
566
|
-
export function
|
|
626
|
+
export function __wbg___wbindgen_throw_bbadd78c1bac3a77(arg0, arg1) {
|
|
567
627
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
568
628
|
}
|
|
569
|
-
export function
|
|
629
|
+
export function __wbg__wbg_cb_unref_c2301a3c9b78104b(arg0) {
|
|
570
630
|
arg0._wbg_cb_unref();
|
|
571
631
|
}
|
|
572
|
-
export function
|
|
632
|
+
export function __wbg_buffer_8524b3453cde4918(arg0) {
|
|
573
633
|
const ret = arg0.buffer;
|
|
574
634
|
return ret;
|
|
575
635
|
}
|
|
576
|
-
export function
|
|
636
|
+
export function __wbg_byteLength_96807b1d9ab24a4c(arg0) {
|
|
577
637
|
const ret = arg0.byteLength;
|
|
578
638
|
return ret;
|
|
579
639
|
}
|
|
580
|
-
export function
|
|
581
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
582
|
-
const ret = arg0.call(arg1, arg2);
|
|
640
|
+
export function __wbg_call_2ad4e88518737145() {
|
|
641
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
642
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
583
643
|
return ret;
|
|
584
644
|
}, arguments);
|
|
585
645
|
}
|
|
586
|
-
export function
|
|
587
|
-
return handleError(function (arg0, arg1
|
|
588
|
-
const ret = arg0.call(arg1
|
|
646
|
+
export function __wbg_call_91f00ddc43e01490() {
|
|
647
|
+
return handleError(function (arg0, arg1) {
|
|
648
|
+
const ret = arg0.call(arg1);
|
|
589
649
|
return ret;
|
|
590
650
|
}, arguments);
|
|
591
651
|
}
|
|
592
|
-
export function
|
|
593
|
-
return handleError(function (arg0, arg1, arg2, arg3
|
|
594
|
-
const ret = arg0.call(arg1, arg2, arg3
|
|
652
|
+
export function __wbg_call_c00e41735f66c175() {
|
|
653
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
654
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
595
655
|
return ret;
|
|
596
656
|
}, arguments);
|
|
597
657
|
}
|
|
598
|
-
export function
|
|
599
|
-
return handleError(function (arg0, arg1) {
|
|
600
|
-
const ret = arg0.call(arg1);
|
|
658
|
+
export function __wbg_call_ec09a4cf93377d3a() {
|
|
659
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
660
|
+
const ret = arg0.call(arg1, arg2);
|
|
601
661
|
return ret;
|
|
602
662
|
}, arguments);
|
|
603
663
|
}
|
|
604
|
-
export function
|
|
664
|
+
export function __wbg_cancel_f3a197b26dc88b39(arg0) {
|
|
605
665
|
const ret = arg0.cancel();
|
|
606
666
|
return ret;
|
|
607
667
|
}
|
|
@@ -609,59 +669,62 @@ export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
|
|
|
609
669
|
const ret = clearTimeout(arg0);
|
|
610
670
|
return ret;
|
|
611
671
|
}
|
|
612
|
-
export function
|
|
672
|
+
export function __wbg_close_296263cfe1bb2999() {
|
|
613
673
|
return handleError(function (arg0) {
|
|
614
674
|
arg0.close();
|
|
615
675
|
}, arguments);
|
|
616
676
|
}
|
|
617
|
-
export function
|
|
677
|
+
export function __wbg_crypto_43cf0aa0813e3fe3() {
|
|
618
678
|
return handleError(function (arg0) {
|
|
619
679
|
const ret = arg0.crypto;
|
|
620
680
|
return ret;
|
|
621
681
|
}, arguments);
|
|
622
682
|
}
|
|
623
|
-
export function
|
|
683
|
+
export function __wbg_data_8a04443c1e5a8cd3(arg0) {
|
|
624
684
|
const ret = arg0.data;
|
|
625
685
|
return ret;
|
|
626
686
|
}
|
|
627
|
-
export function
|
|
687
|
+
export function __wbg_debug_916d96e2f1e976c2(arg0, arg1, arg2, arg3) {
|
|
628
688
|
console.debug(arg0, arg1, arg2, arg3);
|
|
629
689
|
}
|
|
630
|
-
export function
|
|
690
|
+
export function __wbg_decrypt_434a0a20c1926b35() {
|
|
631
691
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
632
692
|
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
633
693
|
return ret;
|
|
634
694
|
}, arguments);
|
|
635
695
|
}
|
|
636
|
-
export function
|
|
696
|
+
export function __wbg_deriveBits_2ef28a1a5553afd1() {
|
|
637
697
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
638
698
|
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
639
699
|
return ret;
|
|
640
700
|
}, arguments);
|
|
641
701
|
}
|
|
642
|
-
export function
|
|
702
|
+
export function __wbg_digest_07cbf8c660cbb7ad() {
|
|
643
703
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
644
704
|
const ret = arg0.digest(arg1, getArrayU8FromWasm0(arg2, arg3));
|
|
645
705
|
return ret;
|
|
646
706
|
}, arguments);
|
|
647
707
|
}
|
|
648
|
-
export function
|
|
708
|
+
export function __wbg_done_6a8439e544ec6206(arg0) {
|
|
649
709
|
const ret = arg0.done;
|
|
650
710
|
return ret;
|
|
651
711
|
}
|
|
652
|
-
export function
|
|
712
|
+
export function __wbg_encrypt_c8d1f29c3903aa3a() {
|
|
653
713
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
654
714
|
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
655
715
|
return ret;
|
|
656
716
|
}, arguments);
|
|
657
717
|
}
|
|
658
|
-
export function
|
|
718
|
+
export function __wbg_entries_5a6a7e7e0df09fe5(arg0) {
|
|
659
719
|
const ret = Object.entries(arg0);
|
|
660
720
|
return ret;
|
|
661
721
|
}
|
|
662
|
-
export function
|
|
722
|
+
export function __wbg_error_4dee59d95d79feac(arg0, arg1, arg2, arg3) {
|
|
663
723
|
console.error(arg0, arg1, arg2, arg3);
|
|
664
724
|
}
|
|
725
|
+
export function __wbg_error_6651fee1c71e5da9(arg0) {
|
|
726
|
+
console.error(arg0);
|
|
727
|
+
}
|
|
665
728
|
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
666
729
|
let deferred0_0;
|
|
667
730
|
let deferred0_1;
|
|
@@ -671,73 +734,70 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
|
671
734
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
672
735
|
}
|
|
673
736
|
finally {
|
|
674
|
-
wasm.
|
|
737
|
+
wasm.__wbindgen_free_command_export(deferred0_0, deferred0_1, 1);
|
|
675
738
|
}
|
|
676
739
|
}
|
|
677
|
-
export function
|
|
678
|
-
console.error(arg0);
|
|
679
|
-
}
|
|
680
|
-
export function __wbg_exportKey_888238fed76b1d57() {
|
|
740
|
+
export function __wbg_exportKey_ce86487ed97172ea() {
|
|
681
741
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
682
742
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
683
743
|
return ret;
|
|
684
744
|
}, arguments);
|
|
685
745
|
}
|
|
686
|
-
export function
|
|
746
|
+
export function __wbg_generateKey_073b1d14947ffbdc() {
|
|
687
747
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
688
748
|
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
689
749
|
return ret;
|
|
690
750
|
}, arguments);
|
|
691
751
|
}
|
|
692
|
-
export function
|
|
752
|
+
export function __wbg_getRandomValues_d1f6a3c738b6cec2() {
|
|
693
753
|
return handleError(function (arg0, arg1, arg2) {
|
|
694
754
|
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
695
755
|
return ret;
|
|
696
756
|
}, arguments);
|
|
697
757
|
}
|
|
698
|
-
export function
|
|
758
|
+
export function __wbg_getReader_0cd37e95fbf00f7f(arg0) {
|
|
699
759
|
const ret = arg0.getReader();
|
|
700
760
|
return ret;
|
|
701
761
|
}
|
|
702
|
-
export function
|
|
762
|
+
export function __wbg_getWriter_a66f661ac532a709() {
|
|
703
763
|
return handleError(function (arg0) {
|
|
704
764
|
const ret = arg0.getWriter();
|
|
705
765
|
return ret;
|
|
706
766
|
}, arguments);
|
|
707
767
|
}
|
|
708
|
-
export function
|
|
709
|
-
const ret = arg0[arg1 >>> 0];
|
|
710
|
-
return ret;
|
|
711
|
-
}
|
|
712
|
-
export function __wbg_get_89f3a4c398b4872e() {
|
|
768
|
+
export function __wbg_get_44e98e27bda25b5b() {
|
|
713
769
|
return handleError(function (arg0, arg1) {
|
|
714
770
|
const ret = Reflect.get(arg0, arg1);
|
|
715
771
|
return ret;
|
|
716
772
|
}, arguments);
|
|
717
773
|
}
|
|
718
|
-
export function
|
|
719
|
-
const ret = arg0
|
|
720
|
-
return
|
|
774
|
+
export function __wbg_get_4b90d6d8c5deb5d5(arg0, arg1) {
|
|
775
|
+
const ret = arg0[arg1 >>> 0];
|
|
776
|
+
return ret;
|
|
721
777
|
}
|
|
722
|
-
export function
|
|
778
|
+
export function __wbg_get_52a8a619f7b88df6() {
|
|
723
779
|
return handleError(function (arg0, arg1) {
|
|
724
780
|
const ret = Reflect.get(arg0, arg1);
|
|
725
781
|
return ret;
|
|
726
782
|
}, arguments);
|
|
727
783
|
}
|
|
728
|
-
export function
|
|
784
|
+
export function __wbg_get_done_c21b9933fc9a9e9c(arg0) {
|
|
785
|
+
const ret = arg0.done;
|
|
786
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
787
|
+
}
|
|
788
|
+
export function __wbg_get_private_key_0d151957f982887e(arg0) {
|
|
729
789
|
const ret = arg0.privateKey;
|
|
730
790
|
return ret;
|
|
731
791
|
}
|
|
732
|
-
export function
|
|
792
|
+
export function __wbg_get_public_key_d7128338e1b299e0(arg0) {
|
|
733
793
|
const ret = arg0.publicKey;
|
|
734
794
|
return ret;
|
|
735
795
|
}
|
|
736
|
-
export function
|
|
796
|
+
export function __wbg_get_unchecked_46e778e3cec74b5e(arg0, arg1) {
|
|
737
797
|
const ret = arg0[arg1 >>> 0];
|
|
738
798
|
return ret;
|
|
739
799
|
}
|
|
740
|
-
export function
|
|
800
|
+
export function __wbg_get_value_ad568c7d3db9073f(arg0) {
|
|
741
801
|
const ret = arg0.value;
|
|
742
802
|
return ret;
|
|
743
803
|
}
|
|
@@ -745,16 +805,16 @@ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
|
745
805
|
const ret = arg0[arg1];
|
|
746
806
|
return ret;
|
|
747
807
|
}
|
|
748
|
-
export function
|
|
808
|
+
export function __wbg_importKey_871c11d416fb97ee() {
|
|
749
809
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
750
810
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
751
811
|
return ret;
|
|
752
812
|
}, arguments);
|
|
753
813
|
}
|
|
754
|
-
export function
|
|
814
|
+
export function __wbg_info_31621acdcc2e6cbc(arg0, arg1, arg2, arg3) {
|
|
755
815
|
console.info(arg0, arg1, arg2, arg3);
|
|
756
816
|
}
|
|
757
|
-
export function
|
|
817
|
+
export function __wbg_instanceof_ArrayBuffer_a581da923203f29f(arg0) {
|
|
758
818
|
let result;
|
|
759
819
|
try {
|
|
760
820
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -765,7 +825,7 @@ export function __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d(arg0) {
|
|
|
765
825
|
const ret = result;
|
|
766
826
|
return ret;
|
|
767
827
|
}
|
|
768
|
-
export function
|
|
828
|
+
export function __wbg_instanceof_CryptoKey_d5f90a816d96ad67(arg0) {
|
|
769
829
|
let result;
|
|
770
830
|
try {
|
|
771
831
|
result = arg0 instanceof CryptoKey;
|
|
@@ -776,7 +836,7 @@ export function __wbg_instanceof_CryptoKey_f4419e1bcb5414ed(arg0) {
|
|
|
776
836
|
const ret = result;
|
|
777
837
|
return ret;
|
|
778
838
|
}
|
|
779
|
-
export function
|
|
839
|
+
export function __wbg_instanceof_Error_cb5ebd65d798655e(arg0) {
|
|
780
840
|
let result;
|
|
781
841
|
try {
|
|
782
842
|
result = arg0 instanceof Error;
|
|
@@ -787,7 +847,7 @@ export function __wbg_instanceof_Error_e4c0d728e3dea73b(arg0) {
|
|
|
787
847
|
const ret = result;
|
|
788
848
|
return ret;
|
|
789
849
|
}
|
|
790
|
-
export function
|
|
850
|
+
export function __wbg_instanceof_Map_7f94c740225003e2(arg0) {
|
|
791
851
|
let result;
|
|
792
852
|
try {
|
|
793
853
|
result = arg0 instanceof Map;
|
|
@@ -798,7 +858,7 @@ export function __wbg_instanceof_Map_3ad422261e078a42(arg0) {
|
|
|
798
858
|
const ret = result;
|
|
799
859
|
return ret;
|
|
800
860
|
}
|
|
801
|
-
export function
|
|
861
|
+
export function __wbg_instanceof_Object_34d30ae022f04c89(arg0) {
|
|
802
862
|
let result;
|
|
803
863
|
try {
|
|
804
864
|
result = arg0 instanceof Object;
|
|
@@ -809,7 +869,7 @@ export function __wbg_instanceof_Object_4ac1098d06a01a38(arg0) {
|
|
|
809
869
|
const ret = result;
|
|
810
870
|
return ret;
|
|
811
871
|
}
|
|
812
|
-
export function
|
|
872
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_2ab4b6bb85f96463(arg0) {
|
|
813
873
|
let result;
|
|
814
874
|
try {
|
|
815
875
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -820,7 +880,7 @@ export function __wbg_instanceof_ReadableStreamDefaultReader_251c05d2f717b795(ar
|
|
|
820
880
|
const ret = result;
|
|
821
881
|
return ret;
|
|
822
882
|
}
|
|
823
|
-
export function
|
|
883
|
+
export function __wbg_instanceof_Uint8Array_b6fe1ac89eba107e(arg0) {
|
|
824
884
|
let result;
|
|
825
885
|
try {
|
|
826
886
|
result = arg0 instanceof Uint8Array;
|
|
@@ -831,7 +891,7 @@ export function __wbg_instanceof_Uint8Array_6482c66fce35827d(arg0) {
|
|
|
831
891
|
const ret = result;
|
|
832
892
|
return ret;
|
|
833
893
|
}
|
|
834
|
-
export function
|
|
894
|
+
export function __wbg_instanceof_Window_9e0fe7d3d1ff4342(arg0) {
|
|
835
895
|
let result;
|
|
836
896
|
try {
|
|
837
897
|
result = arg0 instanceof Window;
|
|
@@ -842,15 +902,15 @@ export function __wbg_instanceof_Window_27a653e1b516dd65(arg0) {
|
|
|
842
902
|
const ret = result;
|
|
843
903
|
return ret;
|
|
844
904
|
}
|
|
845
|
-
export function
|
|
905
|
+
export function __wbg_isArray_139f48e3c057ede8(arg0) {
|
|
846
906
|
const ret = Array.isArray(arg0);
|
|
847
907
|
return ret;
|
|
848
908
|
}
|
|
849
|
-
export function
|
|
909
|
+
export function __wbg_isSafeInteger_c22ccb4af2201fe9(arg0) {
|
|
850
910
|
const ret = Number.isSafeInteger(arg0);
|
|
851
911
|
return ret;
|
|
852
912
|
}
|
|
853
|
-
export function
|
|
913
|
+
export function __wbg_iterator_9b36cebf3be7b7cd() {
|
|
854
914
|
const ret = Symbol.iterator;
|
|
855
915
|
return ret;
|
|
856
916
|
}
|
|
@@ -858,67 +918,63 @@ export function __wbg_jsruntime_new(arg0) {
|
|
|
858
918
|
const ret = JSRuntime.__wrap(arg0);
|
|
859
919
|
return ret;
|
|
860
920
|
}
|
|
861
|
-
export function
|
|
921
|
+
export function __wbg_length_68a9d5278d084f4f(arg0) {
|
|
862
922
|
const ret = arg0.length;
|
|
863
923
|
return ret;
|
|
864
924
|
}
|
|
865
|
-
export function
|
|
925
|
+
export function __wbg_length_fb04d16d7bdf6d4c(arg0) {
|
|
866
926
|
const ret = arg0.length;
|
|
867
927
|
return ret;
|
|
868
928
|
}
|
|
869
|
-
export function
|
|
929
|
+
export function __wbg_log_534d68700f4f2519(arg0, arg1, arg2, arg3) {
|
|
870
930
|
console.log(arg0, arg1, arg2, arg3);
|
|
871
931
|
}
|
|
872
|
-
export function
|
|
932
|
+
export function __wbg_message_5c6ab4dd6c4b34e8(arg0) {
|
|
873
933
|
const ret = arg0.message;
|
|
874
934
|
return ret;
|
|
875
935
|
}
|
|
876
|
-
export function
|
|
936
|
+
export function __wbg_navigator_e8073f0771c8d619(arg0) {
|
|
877
937
|
const ret = arg0.navigator;
|
|
878
938
|
return ret;
|
|
879
939
|
}
|
|
880
|
-
export function
|
|
881
|
-
const ret = new
|
|
940
|
+
export function __wbg_new_0b303268aa395a38() {
|
|
941
|
+
const ret = new Array();
|
|
882
942
|
return ret;
|
|
883
943
|
}
|
|
884
|
-
export function
|
|
885
|
-
const ret = new
|
|
944
|
+
export function __wbg_new_20b778a4c5c691c3() {
|
|
945
|
+
const ret = new Object();
|
|
886
946
|
return ret;
|
|
887
947
|
}
|
|
888
|
-
export function
|
|
889
|
-
const ret = new
|
|
948
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
949
|
+
const ret = new Error();
|
|
890
950
|
return ret;
|
|
891
951
|
}
|
|
892
|
-
export function
|
|
893
|
-
const ret = new
|
|
952
|
+
export function __wbg_new_883c0db065f06efd() {
|
|
953
|
+
const ret = new Map();
|
|
894
954
|
return ret;
|
|
895
955
|
}
|
|
896
|
-
export function
|
|
956
|
+
export function __wbg_new_a3e5112401a82338() {
|
|
897
957
|
return handleError(function (arg0, arg1) {
|
|
898
958
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
899
959
|
return ret;
|
|
900
960
|
}, arguments);
|
|
901
961
|
}
|
|
902
|
-
export function
|
|
903
|
-
const ret = new
|
|
962
|
+
export function __wbg_new_b06772b280cc6e52(arg0) {
|
|
963
|
+
const ret = new Uint8Array(arg0);
|
|
904
964
|
return ret;
|
|
905
965
|
}
|
|
906
|
-
export function
|
|
966
|
+
export function __wbg_new_from_slice_bb2d1778c0b87eb1(arg0, arg1) {
|
|
907
967
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
908
968
|
return ret;
|
|
909
969
|
}
|
|
910
|
-
export function
|
|
911
|
-
const ret = new Array();
|
|
912
|
-
return ret;
|
|
913
|
-
}
|
|
914
|
-
export function __wbg_new_typed_f79896f0ea5f7de8(arg0, arg1) {
|
|
970
|
+
export function __wbg_new_typed_90c3f6c29ba36d19(arg0, arg1) {
|
|
915
971
|
try {
|
|
916
972
|
var state0 = { a: arg0, b: arg1 };
|
|
917
973
|
var cb0 = (arg0, arg1) => {
|
|
918
974
|
const a = state0.a;
|
|
919
975
|
state0.a = 0;
|
|
920
976
|
try {
|
|
921
|
-
return
|
|
977
|
+
return wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
922
978
|
}
|
|
923
979
|
finally {
|
|
924
980
|
state0.a = a;
|
|
@@ -928,20 +984,20 @@ export function __wbg_new_typed_f79896f0ea5f7de8(arg0, arg1) {
|
|
|
928
984
|
return ret;
|
|
929
985
|
}
|
|
930
986
|
finally {
|
|
931
|
-
state0.a =
|
|
987
|
+
state0.a = 0;
|
|
932
988
|
}
|
|
933
989
|
}
|
|
934
|
-
export function
|
|
990
|
+
export function __wbg_next_8cb028b6ba50743f() {
|
|
935
991
|
return handleError(function (arg0) {
|
|
936
992
|
const ret = arg0.next();
|
|
937
993
|
return ret;
|
|
938
994
|
}, arguments);
|
|
939
995
|
}
|
|
940
|
-
export function
|
|
996
|
+
export function __wbg_next_cfd0b146c9538df8(arg0) {
|
|
941
997
|
const ret = arg0.next;
|
|
942
998
|
return ret;
|
|
943
999
|
}
|
|
944
|
-
export function
|
|
1000
|
+
export function __wbg_now_bce4dc999095ea77() {
|
|
945
1001
|
const ret = Date.now();
|
|
946
1002
|
return ret;
|
|
947
1003
|
}
|
|
@@ -949,15 +1005,15 @@ export function __wbg_now_e7c6795a7f81e10f(arg0) {
|
|
|
949
1005
|
const ret = arg0.now();
|
|
950
1006
|
return ret;
|
|
951
1007
|
}
|
|
952
|
-
export function
|
|
1008
|
+
export function __wbg_of_472cbb5aebb61f18(arg0, arg1) {
|
|
953
1009
|
const ret = Array.of(arg0, arg1);
|
|
954
1010
|
return ret;
|
|
955
1011
|
}
|
|
956
|
-
export function
|
|
1012
|
+
export function __wbg_of_5188689822ff45d7(arg0) {
|
|
957
1013
|
const ret = Array.of(arg0);
|
|
958
1014
|
return ret;
|
|
959
1015
|
}
|
|
960
|
-
export function
|
|
1016
|
+
export function __wbg_open_d98d78c4b7a1c768(arg0, arg1) {
|
|
961
1017
|
const ret = arg0.open(arg1);
|
|
962
1018
|
return ret;
|
|
963
1019
|
}
|
|
@@ -965,49 +1021,49 @@ export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
|
|
|
965
1021
|
const ret = arg0.performance;
|
|
966
1022
|
return ret;
|
|
967
1023
|
}
|
|
968
|
-
export function
|
|
1024
|
+
export function __wbg_prototypesetcall_956c7493c68e29b4(arg0, arg1, arg2) {
|
|
969
1025
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
970
1026
|
}
|
|
971
|
-
export function
|
|
1027
|
+
export function __wbg_push_ceb8ef046afb2041(arg0, arg1) {
|
|
972
1028
|
const ret = arg0.push(arg1);
|
|
973
1029
|
return ret;
|
|
974
1030
|
}
|
|
975
|
-
export function
|
|
1031
|
+
export function __wbg_queueMicrotask_4698f900840e3286(arg0) {
|
|
976
1032
|
queueMicrotask(arg0);
|
|
977
1033
|
}
|
|
978
|
-
export function
|
|
1034
|
+
export function __wbg_queueMicrotask_477a5533c7100338(arg0) {
|
|
979
1035
|
const ret = arg0.queueMicrotask;
|
|
980
1036
|
return ret;
|
|
981
1037
|
}
|
|
982
|
-
export function
|
|
1038
|
+
export function __wbg_randomUUID_e5dd7dca4573cb5a(arg0, arg1) {
|
|
983
1039
|
const ret = arg1.randomUUID();
|
|
984
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1040
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
985
1041
|
const len1 = WASM_VECTOR_LEN;
|
|
986
1042
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
987
1043
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
988
1044
|
}
|
|
989
|
-
export function
|
|
1045
|
+
export function __wbg_read_8426c146431f2905(arg0) {
|
|
990
1046
|
const ret = arg0.read();
|
|
991
1047
|
return ret;
|
|
992
1048
|
}
|
|
993
|
-
export function
|
|
1049
|
+
export function __wbg_readable_66d8c77a99f46032(arg0) {
|
|
994
1050
|
const ret = arg0.readable;
|
|
995
1051
|
return ret;
|
|
996
1052
|
}
|
|
997
|
-
export function
|
|
1053
|
+
export function __wbg_requestPort_bb908206a009e1c9(arg0) {
|
|
998
1054
|
const ret = arg0.requestPort();
|
|
999
1055
|
return ret;
|
|
1000
1056
|
}
|
|
1001
|
-
export function
|
|
1057
|
+
export function __wbg_resolve_0183de2e8c6b1d54(arg0) {
|
|
1002
1058
|
const ret = Promise.resolve(arg0);
|
|
1003
1059
|
return ret;
|
|
1004
1060
|
}
|
|
1005
|
-
export function
|
|
1061
|
+
export function __wbg_send_99d049cae69c53cc() {
|
|
1006
1062
|
return handleError(function (arg0, arg1, arg2) {
|
|
1007
1063
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1008
1064
|
}, arguments);
|
|
1009
1065
|
}
|
|
1010
|
-
export function
|
|
1066
|
+
export function __wbg_serial_7f54fcd24ab16cc5(arg0) {
|
|
1011
1067
|
const ret = arg0.serial;
|
|
1012
1068
|
return ret;
|
|
1013
1069
|
}
|
|
@@ -1017,50 +1073,50 @@ export function __wbg_setTimeout_ef24d2fc3ad97385() {
|
|
|
1017
1073
|
return ret;
|
|
1018
1074
|
}, arguments);
|
|
1019
1075
|
}
|
|
1020
|
-
export function
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
return ret;
|
|
1024
|
-
}, arguments);
|
|
1025
|
-
}
|
|
1026
|
-
export function __wbg_set_601f3e1d081df3ac(arg0, arg1, arg2) {
|
|
1027
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1076
|
+
export function __wbg_set_5f806304fb633ab3(arg0, arg1, arg2) {
|
|
1077
|
+
const ret = arg0.set(arg1, arg2);
|
|
1078
|
+
return ret;
|
|
1028
1079
|
}
|
|
1029
1080
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
1030
1081
|
arg0[arg1] = arg2;
|
|
1031
1082
|
}
|
|
1032
|
-
export function
|
|
1033
|
-
|
|
1034
|
-
|
|
1083
|
+
export function __wbg_set_a6ba3ac0e634b822() {
|
|
1084
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1085
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1086
|
+
return ret;
|
|
1087
|
+
}, arguments);
|
|
1035
1088
|
}
|
|
1036
|
-
export function
|
|
1089
|
+
export function __wbg_set_baud_rate_9d8ddfbe1b7dbe69(arg0, arg1) {
|
|
1037
1090
|
arg0.baudRate = arg1 >>> 0;
|
|
1038
1091
|
}
|
|
1039
|
-
export function
|
|
1092
|
+
export function __wbg_set_binaryType_8c2dd2cf1cfc2e28(arg0, arg1) {
|
|
1040
1093
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1041
1094
|
}
|
|
1042
|
-
export function
|
|
1095
|
+
export function __wbg_set_counter_0347cbcd3540ef1f(arg0, arg1) {
|
|
1043
1096
|
arg0.counter = arg1;
|
|
1044
1097
|
}
|
|
1045
|
-
export function
|
|
1098
|
+
export function __wbg_set_da33c120a6584674(arg0, arg1, arg2) {
|
|
1099
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1100
|
+
}
|
|
1101
|
+
export function __wbg_set_length_89bd687854acccd5(arg0, arg1) {
|
|
1046
1102
|
arg0.length = arg1;
|
|
1047
1103
|
}
|
|
1048
|
-
export function
|
|
1104
|
+
export function __wbg_set_name_212a8e4fc124e29b(arg0, arg1, arg2) {
|
|
1049
1105
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1050
1106
|
}
|
|
1051
|
-
export function
|
|
1107
|
+
export function __wbg_set_onclose_9cb5c3372e16c192(arg0, arg1) {
|
|
1052
1108
|
arg0.onclose = arg1;
|
|
1053
1109
|
}
|
|
1054
|
-
export function
|
|
1110
|
+
export function __wbg_set_onerror_190fe67e911ebf28(arg0, arg1) {
|
|
1055
1111
|
arg0.onerror = arg1;
|
|
1056
1112
|
}
|
|
1057
|
-
export function
|
|
1113
|
+
export function __wbg_set_onmessage_96337495f0bfb796(arg0, arg1) {
|
|
1058
1114
|
arg0.onmessage = arg1;
|
|
1059
1115
|
}
|
|
1060
|
-
export function
|
|
1116
|
+
export function __wbg_set_onopen_3e2bf6b11d434c2d(arg0, arg1) {
|
|
1061
1117
|
arg0.onopen = arg1;
|
|
1062
1118
|
}
|
|
1063
|
-
export function
|
|
1119
|
+
export function __wbg_sign_0be635e70fca00c4() {
|
|
1064
1120
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1065
1121
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1066
1122
|
return ret;
|
|
@@ -1068,114 +1124,114 @@ export function __wbg_sign_ac2a693ae3c36d52() {
|
|
|
1068
1124
|
}
|
|
1069
1125
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
1070
1126
|
const ret = arg1.stack;
|
|
1071
|
-
const ptr1 = passStringToWasm0(ret, wasm.
|
|
1127
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc_command_export, wasm.__wbindgen_realloc_command_export);
|
|
1072
1128
|
const len1 = WASM_VECTOR_LEN;
|
|
1073
1129
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1074
1130
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1075
1131
|
}
|
|
1076
|
-
export function
|
|
1132
|
+
export function __wbg_static_accessor_GLOBAL_60a4124bab7dcc9a() {
|
|
1077
1133
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1078
1134
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1079
1135
|
}
|
|
1080
|
-
export function
|
|
1136
|
+
export function __wbg_static_accessor_GLOBAL_THIS_95ca6460658b5d13() {
|
|
1081
1137
|
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1082
1138
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1083
1139
|
}
|
|
1084
|
-
export function
|
|
1140
|
+
export function __wbg_static_accessor_SELF_4c95f759a91e9aae() {
|
|
1085
1141
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1086
1142
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1087
1143
|
}
|
|
1088
|
-
export function
|
|
1144
|
+
export function __wbg_static_accessor_WINDOW_44b435597f9e9ee7() {
|
|
1089
1145
|
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1090
1146
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1091
1147
|
}
|
|
1092
|
-
export function
|
|
1148
|
+
export function __wbg_subtle_8f1ee4c21d530fce(arg0) {
|
|
1093
1149
|
const ret = arg0.subtle;
|
|
1094
1150
|
return ret;
|
|
1095
1151
|
}
|
|
1096
|
-
export function
|
|
1097
|
-
const ret = arg0.then(arg1);
|
|
1152
|
+
export function __wbg_then_254bab9b266a77a5(arg0, arg1, arg2) {
|
|
1153
|
+
const ret = arg0.then(arg1, arg2);
|
|
1098
1154
|
return ret;
|
|
1099
1155
|
}
|
|
1100
|
-
export function
|
|
1101
|
-
const ret = arg0.then(arg1
|
|
1156
|
+
export function __wbg_then_3ea18602c6a5123b(arg0, arg1) {
|
|
1157
|
+
const ret = arg0.then(arg1);
|
|
1102
1158
|
return ret;
|
|
1103
1159
|
}
|
|
1104
|
-
export function
|
|
1160
|
+
export function __wbg_toString_b09619b263823abf(arg0) {
|
|
1105
1161
|
const ret = arg0.toString();
|
|
1106
1162
|
return ret;
|
|
1107
1163
|
}
|
|
1108
|
-
export function
|
|
1164
|
+
export function __wbg_unwrapKey_8c36ebd252475005() {
|
|
1109
1165
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1110
1166
|
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1111
1167
|
return ret;
|
|
1112
1168
|
}, arguments);
|
|
1113
1169
|
}
|
|
1114
|
-
export function
|
|
1170
|
+
export function __wbg_value_3d3defe09fb1ffca(arg0) {
|
|
1115
1171
|
const ret = arg0.value;
|
|
1116
1172
|
return ret;
|
|
1117
1173
|
}
|
|
1118
|
-
export function
|
|
1174
|
+
export function __wbg_verify_618a7b8d4b5707fc() {
|
|
1119
1175
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1120
1176
|
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1121
1177
|
return ret;
|
|
1122
1178
|
}, arguments);
|
|
1123
1179
|
}
|
|
1124
|
-
export function
|
|
1180
|
+
export function __wbg_warn_9a910409d920f84d(arg0, arg1, arg2, arg3) {
|
|
1125
1181
|
console.warn(arg0, arg1, arg2, arg3);
|
|
1126
1182
|
}
|
|
1127
|
-
export function
|
|
1183
|
+
export function __wbg_wrapKey_ad361de1031fac4b() {
|
|
1128
1184
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1129
1185
|
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1130
1186
|
return ret;
|
|
1131
1187
|
}, arguments);
|
|
1132
1188
|
}
|
|
1133
|
-
export function
|
|
1189
|
+
export function __wbg_writable_b89f747b2d1d8950(arg0) {
|
|
1134
1190
|
const ret = arg0.writable;
|
|
1135
1191
|
return ret;
|
|
1136
1192
|
}
|
|
1137
|
-
export function
|
|
1193
|
+
export function __wbg_write_20b6542ec273cec7(arg0, arg1) {
|
|
1138
1194
|
const ret = arg0.write(arg1);
|
|
1139
1195
|
return ret;
|
|
1140
1196
|
}
|
|
1141
1197
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1142
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1143
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1198
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3058, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1199
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___JsValue__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_);
|
|
1144
1200
|
return ret;
|
|
1145
1201
|
}
|
|
1146
1202
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1147
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1148
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1203
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 961, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1204
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true_);
|
|
1149
1205
|
return ret;
|
|
1150
1206
|
}
|
|
1151
1207
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1152
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1153
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1208
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 961, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1209
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__2);
|
|
1154
1210
|
return ret;
|
|
1155
1211
|
}
|
|
1156
1212
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1157
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1158
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1213
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 961, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1214
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__3);
|
|
1159
1215
|
return ret;
|
|
1160
1216
|
}
|
|
1161
1217
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1162
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1163
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1218
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("SerialPort")], shim_idx: 963, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1219
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_);
|
|
1164
1220
|
return ret;
|
|
1165
1221
|
}
|
|
1166
1222
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1167
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1168
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1223
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Uint8Array")], shim_idx: 961, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1224
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__5);
|
|
1169
1225
|
return ret;
|
|
1170
1226
|
}
|
|
1171
1227
|
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
1172
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1173
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1228
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 963, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1229
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true__6);
|
|
1174
1230
|
return ret;
|
|
1175
1231
|
}
|
|
1176
1232
|
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
1177
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1178
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1233
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2046, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1234
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_824b133563844b84___convert__closures_____invoke_______true_);
|
|
1179
1235
|
return ret;
|
|
1180
1236
|
}
|
|
1181
1237
|
export function __wbindgen_cast_0000000000000009(arg0) {
|
|
@@ -1183,24 +1239,34 @@ export function __wbindgen_cast_0000000000000009(arg0) {
|
|
|
1183
1239
|
const ret = arg0;
|
|
1184
1240
|
return ret;
|
|
1185
1241
|
}
|
|
1186
|
-
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
1242
|
+
export function __wbindgen_cast_000000000000000a(arg0, arg1) {
|
|
1243
|
+
// Cast intrinsic for `I128 -> Externref`.
|
|
1244
|
+
const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
|
|
1245
|
+
return ret;
|
|
1246
|
+
}
|
|
1247
|
+
export function __wbindgen_cast_000000000000000b(arg0) {
|
|
1187
1248
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1188
1249
|
const ret = arg0;
|
|
1189
1250
|
return ret;
|
|
1190
1251
|
}
|
|
1191
|
-
export function
|
|
1252
|
+
export function __wbindgen_cast_000000000000000c(arg0, arg1) {
|
|
1192
1253
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1193
1254
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1194
1255
|
return ret;
|
|
1195
1256
|
}
|
|
1196
|
-
export function
|
|
1257
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
1258
|
+
// Cast intrinsic for `U128 -> Externref`.
|
|
1259
|
+
const ret = (BigInt.asUintN(64, arg0) | (BigInt.asUintN(64, arg1) << BigInt(64)));
|
|
1260
|
+
return ret;
|
|
1261
|
+
}
|
|
1262
|
+
export function __wbindgen_cast_000000000000000e(arg0) {
|
|
1197
1263
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1198
1264
|
const ret = BigInt.asUintN(64, arg0);
|
|
1199
1265
|
return ret;
|
|
1200
1266
|
}
|
|
1201
|
-
export function
|
|
1267
|
+
export function __wbindgen_cast_000000000000000f(arg0, arg1) {
|
|
1202
1268
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1203
|
-
wasm.
|
|
1269
|
+
wasm.__wbindgen_free_command_export(arg0, arg1 * 1, 1);
|
|
1204
1270
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1205
1271
|
const ret = v0;
|
|
1206
1272
|
return ret;
|
|
@@ -1214,54 +1280,57 @@ export function __wbindgen_init_externref_table() {
|
|
|
1214
1280
|
table.set(offset + 2, true);
|
|
1215
1281
|
table.set(offset + 3, false);
|
|
1216
1282
|
}
|
|
1217
|
-
function
|
|
1218
|
-
wasm.
|
|
1283
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1284
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1219
1285
|
}
|
|
1220
|
-
function
|
|
1221
|
-
wasm.
|
|
1286
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true_(arg0, arg1, arg2) {
|
|
1287
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true_(arg0, arg1, arg2);
|
|
1222
1288
|
}
|
|
1223
|
-
function
|
|
1224
|
-
wasm.
|
|
1289
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__2(arg0, arg1, arg2) {
|
|
1290
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__2(arg0, arg1, arg2);
|
|
1225
1291
|
}
|
|
1226
|
-
function
|
|
1227
|
-
wasm.
|
|
1292
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__3(arg0, arg1, arg2) {
|
|
1293
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__3(arg0, arg1, arg2);
|
|
1228
1294
|
}
|
|
1229
|
-
function
|
|
1230
|
-
wasm.
|
|
1295
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__5(arg0, arg1, arg2) {
|
|
1296
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Uint8Array______true__5(arg0, arg1, arg2);
|
|
1231
1297
|
}
|
|
1232
|
-
function
|
|
1233
|
-
const ret = wasm.
|
|
1298
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___JsValue__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_(arg0, arg1, arg2) {
|
|
1299
|
+
const ret = wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___JsValue__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_(arg0, arg1, arg2);
|
|
1234
1300
|
if (ret[1]) {
|
|
1235
1301
|
throw takeFromExternrefTable0(ret[0]);
|
|
1236
1302
|
}
|
|
1237
1303
|
}
|
|
1238
|
-
function
|
|
1239
|
-
const ret = wasm.
|
|
1304
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_(arg0, arg1, arg2) {
|
|
1305
|
+
const ret = wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true_(arg0, arg1, arg2);
|
|
1240
1306
|
if (ret[1]) {
|
|
1241
1307
|
throw takeFromExternrefTable0(ret[0]);
|
|
1242
1308
|
}
|
|
1243
1309
|
}
|
|
1244
|
-
function
|
|
1245
|
-
const ret = wasm.
|
|
1310
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true__6(arg0, arg1, arg2) {
|
|
1311
|
+
const ret = wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___wasm_bindgen_824b133563844b84___sys__Undefined__core_205bd76b1c346ff2___result__Result_____wasm_bindgen_824b133563844b84___JsError___true__6(arg0, arg1, arg2);
|
|
1246
1312
|
if (ret[1]) {
|
|
1247
1313
|
throw takeFromExternrefTable0(ret[0]);
|
|
1248
1314
|
}
|
|
1249
1315
|
}
|
|
1250
|
-
function
|
|
1251
|
-
wasm.
|
|
1316
|
+
function wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1317
|
+
wasm.wasm_bindgen_824b133563844b84___convert__closures_____invoke___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined___js_sys_378a52c961f35aed___Function_fn_wasm_bindgen_824b133563844b84___JsValue_____wasm_bindgen_824b133563844b84___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1252
1318
|
}
|
|
1253
1319
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1254
1320
|
const JSComHubFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1255
1321
|
? { register: () => { }, unregister: () => { } }
|
|
1256
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jscomhub_free(ptr
|
|
1322
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jscomhub_free(ptr, 1));
|
|
1323
|
+
const JSDIFInterfaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1324
|
+
? { register: () => { }, unregister: () => { } }
|
|
1325
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsdifinterface_free(ptr, 1));
|
|
1257
1326
|
const JSRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1258
1327
|
? { register: () => { }, unregister: () => { } }
|
|
1259
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsruntime_free(ptr
|
|
1260
|
-
const
|
|
1328
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsruntime_free(ptr, 1));
|
|
1329
|
+
const ReplFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1261
1330
|
? { register: () => { }, unregister: () => { } }
|
|
1262
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
1331
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_repl_free(ptr, 1));
|
|
1263
1332
|
function addToExternrefTable0(obj) {
|
|
1264
|
-
const idx = wasm.
|
|
1333
|
+
const idx = wasm.__externref_table_alloc_command_export();
|
|
1265
1334
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1266
1335
|
return idx;
|
|
1267
1336
|
}
|
|
@@ -1272,7 +1341,7 @@ function _assertClass(instance, klass) {
|
|
|
1272
1341
|
}
|
|
1273
1342
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1274
1343
|
? { register: () => { }, unregister: () => { } }
|
|
1275
|
-
: new FinalizationRegistry(state =>
|
|
1344
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure_command_export(state.a, state.b));
|
|
1276
1345
|
function debugString(val) {
|
|
1277
1346
|
// primitive types
|
|
1278
1347
|
const type = typeof val;
|
|
@@ -1353,8 +1422,7 @@ function getDataViewMemory0() {
|
|
|
1353
1422
|
return cachedDataViewMemory0;
|
|
1354
1423
|
}
|
|
1355
1424
|
function getStringFromWasm0(ptr, len) {
|
|
1356
|
-
|
|
1357
|
-
return decodeText(ptr, len);
|
|
1425
|
+
return decodeText(ptr >>> 0, len);
|
|
1358
1426
|
}
|
|
1359
1427
|
let cachedUint8ArrayMemory0 = null;
|
|
1360
1428
|
function getUint8ArrayMemory0() {
|
|
@@ -1369,14 +1437,14 @@ function handleError(f, args) {
|
|
|
1369
1437
|
}
|
|
1370
1438
|
catch (e) {
|
|
1371
1439
|
const idx = addToExternrefTable0(e);
|
|
1372
|
-
wasm.
|
|
1440
|
+
wasm.__wbindgen_exn_store_command_export(idx);
|
|
1373
1441
|
}
|
|
1374
1442
|
}
|
|
1375
1443
|
function isLikeNone(x) {
|
|
1376
1444
|
return x === undefined || x === null;
|
|
1377
1445
|
}
|
|
1378
|
-
function makeMutClosure(arg0, arg1,
|
|
1379
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
1446
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1447
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1380
1448
|
const real = (...args) => {
|
|
1381
1449
|
// First up with a closure we increment the internal reference
|
|
1382
1450
|
// count. This ensures that the Rust closure environment won't
|
|
@@ -1394,7 +1462,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1394
1462
|
};
|
|
1395
1463
|
real._wbg_cb_unref = () => {
|
|
1396
1464
|
if (--state.cnt === 0) {
|
|
1397
|
-
|
|
1465
|
+
wasm.__wbindgen_destroy_closure_command_export(state.a, state.b);
|
|
1398
1466
|
state.a = 0;
|
|
1399
1467
|
CLOSURE_DTORS.unregister(state);
|
|
1400
1468
|
}
|
|
@@ -1450,7 +1518,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
1450
1518
|
}
|
|
1451
1519
|
function takeFromExternrefTable0(idx) {
|
|
1452
1520
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1453
|
-
wasm.
|
|
1521
|
+
wasm.__externref_table_dealloc_command_export(idx);
|
|
1454
1522
|
return value;
|
|
1455
1523
|
}
|
|
1456
1524
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|