@unyt/datex 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -14
- package/esm/datex-web/datex_web.d.ts +2 -0
- package/esm/datex-web/datex_web.d.ts.map +1 -0
- package/esm/datex-web/datex_web.internal.d.ts +366 -0
- package/esm/datex-web/datex_web.internal.d.ts.map +1 -0
- package/esm/datex-web/datex_web.internal.js +1484 -0
- package/esm/datex-web/datex_web.js +18 -0
- package/esm/datex-web/datex_web.wasm +0 -0
- package/esm/datex-web/wasm_url.node.js +1 -0
- package/esm/{datex-core.d.ts → datex.d.ts} +3 -3
- package/esm/datex.d.ts.map +1 -0
- package/esm/{datex-core.js → datex.js} +3 -3
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +2 -3
- package/esm/deno.json +27 -21
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/definitions.d.ts +6 -6
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/definitions.js +1 -1
- package/esm/dif/dif-handler.d.ts +17 -8
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +21 -9
- package/esm/dif/display.d.ts +3 -3
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +4 -6
- package/esm/dif/js-lib.d.ts.map +1 -1
- package/esm/dif/type-registry.d.ts.map +1 -1
- package/esm/dif/type-registry.js +2 -2
- package/esm/lib/special-core-types/endpoint.d.ts +2 -0
- package/esm/lib/special-core-types/endpoint.d.ts.map +1 -1
- package/esm/lib/special-core-types/endpoint.js +6 -1
- 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 +20 -22
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +30 -49
- package/esm/network/interfaces/websocket-server-base.d.ts +8 -0
- package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-base.js +93 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts +4 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-deno.js +22 -0
- package/esm/network/mod.d.ts +0 -1
- package/esm/network/mod.d.ts.map +1 -1
- package/esm/network/mod.js +0 -1
- package/esm/runtime/runtime.d.ts +10 -18
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +11 -23
- package/esm/utils/devtools-formatter.d.ts +2 -0
- package/esm/utils/devtools-formatter.d.ts.map +1 -0
- package/esm/utils/devtools-formatter.js +40 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -1
- package/package.json +7 -7
- package/esm/datex-core/datex_core_js.d.ts +0 -2
- package/esm/datex-core/datex_core_js.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.internal.d.ts +0 -496
- package/esm/datex-core/datex_core_js.internal.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.internal.js +0 -1903
- package/esm/datex-core/datex_core_js.js +0 -21
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +0 -1
- package/esm/datex-core.d.ts.map +0 -1
- package/esm/network/com-interface.d.ts +0 -35
- package/esm/network/com-interface.d.ts.map +0 -1
- package/esm/network/com-interface.js +0 -75
- package/esm/network/interface-impls/base.d.ts +0 -46
- package/esm/network/interface-impls/base.d.ts.map +0 -1
- package/esm/network/interface-impls/base.js +0 -47
- package/esm/network/interface-impls/websocket-client.d.ts +0 -8
- package/esm/network/interface-impls/websocket-client.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-client.js +0 -8
|
@@ -0,0 +1,1484 @@
|
|
|
1
|
+
// @generated file from wasmbuild -- do not edit
|
|
2
|
+
// deno-lint-ignore-file
|
|
3
|
+
// deno-fmt-ignore-file
|
|
4
|
+
import * as dntShim from "../_dnt.shims.js";
|
|
5
|
+
export class JSComHub {
|
|
6
|
+
static __wrap(ptr) {
|
|
7
|
+
ptr = ptr >>> 0;
|
|
8
|
+
const obj = Object.create(JSComHub.prototype);
|
|
9
|
+
obj.__wbg_ptr = ptr;
|
|
10
|
+
JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
11
|
+
return obj;
|
|
12
|
+
}
|
|
13
|
+
__destroy_into_raw() {
|
|
14
|
+
const ptr = this.__wbg_ptr;
|
|
15
|
+
this.__wbg_ptr = 0;
|
|
16
|
+
JSComHubFinalization.unregister(this);
|
|
17
|
+
return ptr;
|
|
18
|
+
}
|
|
19
|
+
free() {
|
|
20
|
+
const ptr = this.__destroy_into_raw();
|
|
21
|
+
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param {string} interface_type
|
|
25
|
+
* @param {any} setup_data
|
|
26
|
+
* @param {number | null} [priority]
|
|
27
|
+
* @returns {Promise<string>}
|
|
28
|
+
*/
|
|
29
|
+
create_interface(interface_type, setup_data, priority) {
|
|
30
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
31
|
+
const len0 = WASM_VECTOR_LEN;
|
|
32
|
+
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, setup_data, isLikeNone(priority) ? 0xFFFFFF : priority);
|
|
33
|
+
return ret;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @returns {any}
|
|
37
|
+
*/
|
|
38
|
+
get_metadata() {
|
|
39
|
+
const ret = wasm.jscomhub_get_metadata(this.__wbg_ptr);
|
|
40
|
+
return ret;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @returns {string}
|
|
44
|
+
*/
|
|
45
|
+
get_metadata_string() {
|
|
46
|
+
let deferred1_0;
|
|
47
|
+
let deferred1_1;
|
|
48
|
+
try {
|
|
49
|
+
const ret = wasm.jscomhub_get_metadata_string(this.__wbg_ptr);
|
|
50
|
+
deferred1_0 = ret[0];
|
|
51
|
+
deferred1_1 = ret[1];
|
|
52
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {string} endpoint
|
|
60
|
+
* @returns {Promise<any | undefined>}
|
|
61
|
+
*/
|
|
62
|
+
get_trace(endpoint) {
|
|
63
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
64
|
+
const len0 = WASM_VECTOR_LEN;
|
|
65
|
+
const ret = wasm.jscomhub_get_trace(this.__wbg_ptr, ptr0, len0);
|
|
66
|
+
return ret;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @param {string} endpoint
|
|
70
|
+
* @returns {Promise<string | undefined>}
|
|
71
|
+
*/
|
|
72
|
+
get_trace_string(endpoint) {
|
|
73
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
74
|
+
const len0 = WASM_VECTOR_LEN;
|
|
75
|
+
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
76
|
+
return ret;
|
|
77
|
+
}
|
|
78
|
+
register_default_interface_factories() {
|
|
79
|
+
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @param {Function} callback
|
|
83
|
+
*/
|
|
84
|
+
register_incoming_block_interceptor(callback) {
|
|
85
|
+
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} interface_type
|
|
89
|
+
* @param {Function} factory
|
|
90
|
+
*/
|
|
91
|
+
register_interface_factory(interface_type, factory) {
|
|
92
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
93
|
+
const len0 = WASM_VECTOR_LEN;
|
|
94
|
+
wasm.jscomhub_register_interface_factory(this.__wbg_ptr, ptr0, len0, factory);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @param {Function} callback
|
|
98
|
+
*/
|
|
99
|
+
register_outgoing_block_interceptor(callback) {
|
|
100
|
+
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @param {string} interface_uuid
|
|
104
|
+
* @returns {Promise<void>}
|
|
105
|
+
*/
|
|
106
|
+
remove_interface(interface_uuid) {
|
|
107
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
108
|
+
const len0 = WASM_VECTOR_LEN;
|
|
109
|
+
const ret = wasm.jscomhub_remove_interface(this.__wbg_ptr, ptr0, len0);
|
|
110
|
+
return ret;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @param {string} socket_uuid
|
|
114
|
+
* @returns {Promise<void>}
|
|
115
|
+
*/
|
|
116
|
+
remove_socket(socket_uuid) {
|
|
117
|
+
const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
118
|
+
const len0 = WASM_VECTOR_LEN;
|
|
119
|
+
const ret = wasm.jscomhub_remove_socket(this.__wbg_ptr, ptr0, len0);
|
|
120
|
+
return ret;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if (Symbol.dispose)
|
|
124
|
+
JSComHub.prototype[Symbol.dispose] = JSComHub.prototype.free;
|
|
125
|
+
export class JSRuntime {
|
|
126
|
+
static __wrap(ptr) {
|
|
127
|
+
ptr = ptr >>> 0;
|
|
128
|
+
const obj = Object.create(JSRuntime.prototype);
|
|
129
|
+
obj.__wbg_ptr = ptr;
|
|
130
|
+
JSRuntimeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
133
|
+
__destroy_into_raw() {
|
|
134
|
+
const ptr = this.__wbg_ptr;
|
|
135
|
+
this.__wbg_ptr = 0;
|
|
136
|
+
JSRuntimeFinalization.unregister(this);
|
|
137
|
+
return ptr;
|
|
138
|
+
}
|
|
139
|
+
free() {
|
|
140
|
+
const ptr = this.__destroy_into_raw();
|
|
141
|
+
wasm.__wbg_jsruntime_free(ptr, 0);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @returns {JSComHub}
|
|
145
|
+
*/
|
|
146
|
+
get com_hub() {
|
|
147
|
+
const ret = wasm.__wbg_get_jsruntime_com_hub(this.__wbg_ptr);
|
|
148
|
+
return JSComHub.__wrap(ret);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* @param {Uint8Array | null | undefined} body
|
|
152
|
+
* @param {string[]} receivers
|
|
153
|
+
* @returns {Uint8Array}
|
|
154
|
+
*/
|
|
155
|
+
_create_block(body, receivers) {
|
|
156
|
+
var ptr0 = isLikeNone(body) ? 0 : passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
157
|
+
var len0 = WASM_VECTOR_LEN;
|
|
158
|
+
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
159
|
+
const len1 = WASM_VECTOR_LEN;
|
|
160
|
+
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
161
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
162
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
163
|
+
return v3;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @returns {Promise<Promise<any>>}
|
|
167
|
+
*/
|
|
168
|
+
crypto_test_tmp() {
|
|
169
|
+
const ret = wasm.jsruntime_crypto_test_tmp(this.__wbg_ptr);
|
|
170
|
+
return ret;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get a handle to the DIF interface of the runtime
|
|
174
|
+
* @returns {RuntimeDIFHandle}
|
|
175
|
+
*/
|
|
176
|
+
dif() {
|
|
177
|
+
const ret = wasm.jsruntime_dif(this.__wbg_ptr);
|
|
178
|
+
return RuntimeDIFHandle.__wrap(ret);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @returns {string}
|
|
182
|
+
*/
|
|
183
|
+
get endpoint() {
|
|
184
|
+
let deferred1_0;
|
|
185
|
+
let deferred1_1;
|
|
186
|
+
try {
|
|
187
|
+
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
188
|
+
deferred1_0 = ret[0];
|
|
189
|
+
deferred1_1 = ret[1];
|
|
190
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
191
|
+
}
|
|
192
|
+
finally {
|
|
193
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @param {string} script
|
|
198
|
+
* @param {any[] | null} [dif_values]
|
|
199
|
+
* @returns {Promise<any>}
|
|
200
|
+
*/
|
|
201
|
+
execute(script, dif_values) {
|
|
202
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
203
|
+
const len0 = WASM_VECTOR_LEN;
|
|
204
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
205
|
+
var len1 = WASM_VECTOR_LEN;
|
|
206
|
+
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
207
|
+
return ret;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @param {string} script
|
|
211
|
+
* @param {any[] | null} [dif_values]
|
|
212
|
+
* @returns {any}
|
|
213
|
+
*/
|
|
214
|
+
execute_sync(script, dif_values) {
|
|
215
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
217
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
218
|
+
var len1 = WASM_VECTOR_LEN;
|
|
219
|
+
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
220
|
+
if (ret[2]) {
|
|
221
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
222
|
+
}
|
|
223
|
+
return takeFromExternrefTable0(ret[0]);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @param {string} script
|
|
227
|
+
* @param {any[] | null | undefined} dif_values
|
|
228
|
+
* @param {any} decompile_options
|
|
229
|
+
* @returns {string}
|
|
230
|
+
*/
|
|
231
|
+
execute_sync_with_string_result(script, dif_values, decompile_options) {
|
|
232
|
+
let deferred4_0;
|
|
233
|
+
let deferred4_1;
|
|
234
|
+
try {
|
|
235
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
238
|
+
var len1 = WASM_VECTOR_LEN;
|
|
239
|
+
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
240
|
+
var ptr3 = ret[0];
|
|
241
|
+
var len3 = ret[1];
|
|
242
|
+
if (ret[3]) {
|
|
243
|
+
ptr3 = 0;
|
|
244
|
+
len3 = 0;
|
|
245
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
246
|
+
}
|
|
247
|
+
deferred4_0 = ptr3;
|
|
248
|
+
deferred4_1 = len3;
|
|
249
|
+
return getStringFromWasm0(ptr3, len3);
|
|
250
|
+
}
|
|
251
|
+
finally {
|
|
252
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @param {string} script
|
|
257
|
+
* @param {any[] | null | undefined} dif_values
|
|
258
|
+
* @param {any} decompile_options
|
|
259
|
+
* @returns {Promise<string>}
|
|
260
|
+
*/
|
|
261
|
+
execute_with_string_result(script, dif_values, decompile_options) {
|
|
262
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
263
|
+
const len0 = WASM_VECTOR_LEN;
|
|
264
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
265
|
+
var len1 = WASM_VECTOR_LEN;
|
|
266
|
+
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
267
|
+
return ret;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Start the LSP server, returning a JS function to send messages to Rust
|
|
271
|
+
* @param {Function} send_to_js
|
|
272
|
+
* @returns {Function}
|
|
273
|
+
*/
|
|
274
|
+
start_lsp(send_to_js) {
|
|
275
|
+
const ret = wasm.jsruntime_start_lsp(this.__wbg_ptr, send_to_js);
|
|
276
|
+
return ret;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* @param {any} dif_value
|
|
280
|
+
* @param {any} decompile_options
|
|
281
|
+
* @returns {string}
|
|
282
|
+
*/
|
|
283
|
+
value_to_string(dif_value, decompile_options) {
|
|
284
|
+
let deferred2_0;
|
|
285
|
+
let deferred2_1;
|
|
286
|
+
try {
|
|
287
|
+
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
288
|
+
var ptr1 = ret[0];
|
|
289
|
+
var len1 = ret[1];
|
|
290
|
+
if (ret[3]) {
|
|
291
|
+
ptr1 = 0;
|
|
292
|
+
len1 = 0;
|
|
293
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
294
|
+
}
|
|
295
|
+
deferred2_0 = ptr1;
|
|
296
|
+
deferred2_1 = len1;
|
|
297
|
+
return getStringFromWasm0(ptr1, len1);
|
|
298
|
+
}
|
|
299
|
+
finally {
|
|
300
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* @returns {string}
|
|
305
|
+
*/
|
|
306
|
+
get version() {
|
|
307
|
+
let deferred1_0;
|
|
308
|
+
let deferred1_1;
|
|
309
|
+
try {
|
|
310
|
+
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
311
|
+
deferred1_0 = ret[0];
|
|
312
|
+
deferred1_1 = ret[1];
|
|
313
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
314
|
+
}
|
|
315
|
+
finally {
|
|
316
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {JSComHub} arg0
|
|
321
|
+
*/
|
|
322
|
+
set com_hub(arg0) {
|
|
323
|
+
_assertClass(arg0, JSComHub);
|
|
324
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
325
|
+
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (Symbol.dispose)
|
|
329
|
+
JSRuntime.prototype[Symbol.dispose] = JSRuntime.prototype.free;
|
|
330
|
+
export class RuntimeDIFHandle {
|
|
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
|
+
}
|
|
338
|
+
__destroy_into_raw() {
|
|
339
|
+
const ptr = this.__wbg_ptr;
|
|
340
|
+
this.__wbg_ptr = 0;
|
|
341
|
+
RuntimeDIFHandleFinalization.unregister(this);
|
|
342
|
+
return ptr;
|
|
343
|
+
}
|
|
344
|
+
free() {
|
|
345
|
+
const ptr = this.__destroy_into_raw();
|
|
346
|
+
wasm.__wbg_runtimedifhandle_free(ptr, 0);
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @param {any} callee
|
|
350
|
+
* @param {any} value
|
|
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
|
|
448
|
+
*/
|
|
449
|
+
update(transceiver_id, address, update) {
|
|
450
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
451
|
+
const len0 = WASM_VECTOR_LEN;
|
|
452
|
+
const ret = wasm.runtimedifhandle_update(this.__wbg_ptr, transceiver_id, ptr0, len0, update);
|
|
453
|
+
if (ret[1]) {
|
|
454
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* @param {string} address
|
|
459
|
+
* @param {number} observer_id
|
|
460
|
+
* @param {any} observe_options
|
|
461
|
+
*/
|
|
462
|
+
update_observer_options(address, observer_id, observe_options) {
|
|
463
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
464
|
+
const len0 = WASM_VECTOR_LEN;
|
|
465
|
+
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
466
|
+
if (ret[1]) {
|
|
467
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (Symbol.dispose)
|
|
472
|
+
RuntimeDIFHandle.prototype[Symbol.dispose] = RuntimeDIFHandle.prototype.free;
|
|
473
|
+
/**
|
|
474
|
+
* @param {any} config
|
|
475
|
+
* @param {any} debug_config
|
|
476
|
+
* @returns {Promise<JSRuntime>}
|
|
477
|
+
*/
|
|
478
|
+
export function create_runtime(config, debug_config) {
|
|
479
|
+
const ret = wasm.create_runtime(config, debug_config);
|
|
480
|
+
return ret;
|
|
481
|
+
}
|
|
482
|
+
export function __wbg_Error_dbcd8782dbb273a2(arg0, arg1) {
|
|
483
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
484
|
+
return ret;
|
|
485
|
+
}
|
|
486
|
+
export function __wbg_Number_012552ac4683228d(arg0) {
|
|
487
|
+
const ret = Number(arg0);
|
|
488
|
+
return ret;
|
|
489
|
+
}
|
|
490
|
+
export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
491
|
+
const ret = String(arg1);
|
|
492
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
493
|
+
const len1 = WASM_VECTOR_LEN;
|
|
494
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
495
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
496
|
+
}
|
|
497
|
+
export function __wbg___wbindgen_bigint_get_as_i64_25c638f64ce0e2e0(arg0, arg1) {
|
|
498
|
+
const v = arg1;
|
|
499
|
+
const ret = typeof (v) === 'bigint' ? v : undefined;
|
|
500
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
501
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
502
|
+
}
|
|
503
|
+
export function __wbg___wbindgen_boolean_get_7f1c4dd217655ab6(arg0) {
|
|
504
|
+
const v = arg0;
|
|
505
|
+
const ret = typeof (v) === 'boolean' ? v : undefined;
|
|
506
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
507
|
+
}
|
|
508
|
+
export function __wbg___wbindgen_debug_string_6cf0badf0b90f6ef(arg0, arg1) {
|
|
509
|
+
const ret = debugString(arg1);
|
|
510
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
511
|
+
const len1 = WASM_VECTOR_LEN;
|
|
512
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
513
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
514
|
+
}
|
|
515
|
+
export function __wbg___wbindgen_in_e32cbbbf71fdc915(arg0, arg1) {
|
|
516
|
+
const ret = arg0 in arg1;
|
|
517
|
+
return ret;
|
|
518
|
+
}
|
|
519
|
+
export function __wbg___wbindgen_is_bigint_95f22c948ca1bbe1(arg0) {
|
|
520
|
+
const ret = typeof (arg0) === 'bigint';
|
|
521
|
+
return ret;
|
|
522
|
+
}
|
|
523
|
+
export function __wbg___wbindgen_is_function_4500d4795b15e70b(arg0) {
|
|
524
|
+
const ret = typeof (arg0) === 'function';
|
|
525
|
+
return ret;
|
|
526
|
+
}
|
|
527
|
+
export function __wbg___wbindgen_is_null_5467e07e008308e7(arg0) {
|
|
528
|
+
const ret = arg0 === null;
|
|
529
|
+
return ret;
|
|
530
|
+
}
|
|
531
|
+
export function __wbg___wbindgen_is_object_f8b6723c60349a13(arg0) {
|
|
532
|
+
const val = arg0;
|
|
533
|
+
const ret = typeof (val) === 'object' && val !== null;
|
|
534
|
+
return ret;
|
|
535
|
+
}
|
|
536
|
+
export function __wbg___wbindgen_is_string_89134e23eba104e4(arg0) {
|
|
537
|
+
const ret = typeof (arg0) === 'string';
|
|
538
|
+
return ret;
|
|
539
|
+
}
|
|
540
|
+
export function __wbg___wbindgen_is_undefined_1296fcc83c2da07a(arg0) {
|
|
541
|
+
const ret = arg0 === undefined;
|
|
542
|
+
return ret;
|
|
543
|
+
}
|
|
544
|
+
export function __wbg___wbindgen_jsval_eq_39cab0b49f8188e9(arg0, arg1) {
|
|
545
|
+
const ret = arg0 === arg1;
|
|
546
|
+
return ret;
|
|
547
|
+
}
|
|
548
|
+
export function __wbg___wbindgen_jsval_loose_eq_3173dea557396a92(arg0, arg1) {
|
|
549
|
+
const ret = arg0 == arg1;
|
|
550
|
+
return ret;
|
|
551
|
+
}
|
|
552
|
+
export function __wbg___wbindgen_number_get_3330675b4e5c3680(arg0, arg1) {
|
|
553
|
+
const obj = arg1;
|
|
554
|
+
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
555
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
556
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
557
|
+
}
|
|
558
|
+
export function __wbg___wbindgen_string_get_7b8bc463f6cbeefe(arg0, arg1) {
|
|
559
|
+
const obj = arg1;
|
|
560
|
+
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
561
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
562
|
+
var len1 = WASM_VECTOR_LEN;
|
|
563
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
564
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
565
|
+
}
|
|
566
|
+
export function __wbg___wbindgen_throw_89ca9e2c67795ec1(arg0, arg1) {
|
|
567
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
568
|
+
}
|
|
569
|
+
export function __wbg__wbg_cb_unref_f00ff3c6385bd6fa(arg0) {
|
|
570
|
+
arg0._wbg_cb_unref();
|
|
571
|
+
}
|
|
572
|
+
export function __wbg_buffer_bfc0004d8d490b64(arg0) {
|
|
573
|
+
const ret = arg0.buffer;
|
|
574
|
+
return ret;
|
|
575
|
+
}
|
|
576
|
+
export function __wbg_byteLength_bf98fbeb47223e5a(arg0) {
|
|
577
|
+
const ret = arg0.byteLength;
|
|
578
|
+
return ret;
|
|
579
|
+
}
|
|
580
|
+
export function __wbg_call_3eadb5cea0462653() {
|
|
581
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
582
|
+
const ret = arg0.call(arg1, arg2);
|
|
583
|
+
return ret;
|
|
584
|
+
}, arguments);
|
|
585
|
+
}
|
|
586
|
+
export function __wbg_call_9ff23202a8e4c398() {
|
|
587
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
588
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
589
|
+
return ret;
|
|
590
|
+
}, arguments);
|
|
591
|
+
}
|
|
592
|
+
export function __wbg_call_dcf4c86f489d6628() {
|
|
593
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
594
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
595
|
+
return ret;
|
|
596
|
+
}, arguments);
|
|
597
|
+
}
|
|
598
|
+
export function __wbg_call_eb691bc2f5533064() {
|
|
599
|
+
return handleError(function (arg0, arg1) {
|
|
600
|
+
const ret = arg0.call(arg1);
|
|
601
|
+
return ret;
|
|
602
|
+
}, arguments);
|
|
603
|
+
}
|
|
604
|
+
export function __wbg_cancel_ab703655e38608f0(arg0) {
|
|
605
|
+
const ret = arg0.cancel();
|
|
606
|
+
return ret;
|
|
607
|
+
}
|
|
608
|
+
export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
|
|
609
|
+
const ret = clearTimeout(arg0);
|
|
610
|
+
return ret;
|
|
611
|
+
}
|
|
612
|
+
export function __wbg_close_ac58aa253ae5c164() {
|
|
613
|
+
return handleError(function (arg0) {
|
|
614
|
+
arg0.close();
|
|
615
|
+
}, arguments);
|
|
616
|
+
}
|
|
617
|
+
export function __wbg_crypto_15952a660f6c42f9() {
|
|
618
|
+
return handleError(function (arg0) {
|
|
619
|
+
const ret = arg0.crypto;
|
|
620
|
+
return ret;
|
|
621
|
+
}, arguments);
|
|
622
|
+
}
|
|
623
|
+
export function __wbg_data_946ee98fc7c8524e(arg0) {
|
|
624
|
+
const ret = arg0.data;
|
|
625
|
+
return ret;
|
|
626
|
+
}
|
|
627
|
+
export function __wbg_debug_bc486fe1782a2e20(arg0, arg1, arg2, arg3) {
|
|
628
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
629
|
+
}
|
|
630
|
+
export function __wbg_decrypt_fb3df4e7108c7af8() {
|
|
631
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
632
|
+
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
633
|
+
return ret;
|
|
634
|
+
}, arguments);
|
|
635
|
+
}
|
|
636
|
+
export function __wbg_deriveBits_babd864f24c26510() {
|
|
637
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
638
|
+
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
639
|
+
return ret;
|
|
640
|
+
}, arguments);
|
|
641
|
+
}
|
|
642
|
+
export function __wbg_digest_68cb89b17e4a5dc4() {
|
|
643
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
644
|
+
const ret = arg0.digest(arg1, getArrayU8FromWasm0(arg2, arg3));
|
|
645
|
+
return ret;
|
|
646
|
+
}, arguments);
|
|
647
|
+
}
|
|
648
|
+
export function __wbg_done_82b14aeb31e98db6(arg0) {
|
|
649
|
+
const ret = arg0.done;
|
|
650
|
+
return ret;
|
|
651
|
+
}
|
|
652
|
+
export function __wbg_encrypt_2fe1a4fe781e4500() {
|
|
653
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
654
|
+
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
655
|
+
return ret;
|
|
656
|
+
}, arguments);
|
|
657
|
+
}
|
|
658
|
+
export function __wbg_entries_46c64fadfaa3b525(arg0) {
|
|
659
|
+
const ret = Object.entries(arg0);
|
|
660
|
+
return ret;
|
|
661
|
+
}
|
|
662
|
+
export function __wbg_error_6df093442af96598(arg0, arg1, arg2, arg3) {
|
|
663
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
664
|
+
}
|
|
665
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
666
|
+
let deferred0_0;
|
|
667
|
+
let deferred0_1;
|
|
668
|
+
try {
|
|
669
|
+
deferred0_0 = arg0;
|
|
670
|
+
deferred0_1 = arg1;
|
|
671
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
672
|
+
}
|
|
673
|
+
finally {
|
|
674
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
export function __wbg_error_d0b9fd88b7a19297(arg0) {
|
|
678
|
+
console.error(arg0);
|
|
679
|
+
}
|
|
680
|
+
export function __wbg_exportKey_888238fed76b1d57() {
|
|
681
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
682
|
+
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
683
|
+
return ret;
|
|
684
|
+
}, arguments);
|
|
685
|
+
}
|
|
686
|
+
export function __wbg_generateKey_cacf6d919231a631() {
|
|
687
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
688
|
+
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
689
|
+
return ret;
|
|
690
|
+
}, arguments);
|
|
691
|
+
}
|
|
692
|
+
export function __wbg_getRandomValues_1fcaec8b7b47660c() {
|
|
693
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
694
|
+
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
695
|
+
return ret;
|
|
696
|
+
}, arguments);
|
|
697
|
+
}
|
|
698
|
+
export function __wbg_getReader_c1c7b71406750f3a(arg0) {
|
|
699
|
+
const ret = arg0.getReader();
|
|
700
|
+
return ret;
|
|
701
|
+
}
|
|
702
|
+
export function __wbg_getWriter_b14ed7011222629c() {
|
|
703
|
+
return handleError(function (arg0) {
|
|
704
|
+
const ret = arg0.getWriter();
|
|
705
|
+
return ret;
|
|
706
|
+
}, arguments);
|
|
707
|
+
}
|
|
708
|
+
export function __wbg_get_229657ec2da079cd(arg0, arg1) {
|
|
709
|
+
const ret = arg0[arg1 >>> 0];
|
|
710
|
+
return ret;
|
|
711
|
+
}
|
|
712
|
+
export function __wbg_get_89f3a4c398b4872e() {
|
|
713
|
+
return handleError(function (arg0, arg1) {
|
|
714
|
+
const ret = Reflect.get(arg0, arg1);
|
|
715
|
+
return ret;
|
|
716
|
+
}, arguments);
|
|
717
|
+
}
|
|
718
|
+
export function __wbg_get_done_c355ff5cc3338368(arg0) {
|
|
719
|
+
const ret = arg0.done;
|
|
720
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
721
|
+
}
|
|
722
|
+
export function __wbg_get_ed44f5f876f22351() {
|
|
723
|
+
return handleError(function (arg0, arg1) {
|
|
724
|
+
const ret = Reflect.get(arg0, arg1);
|
|
725
|
+
return ret;
|
|
726
|
+
}, arguments);
|
|
727
|
+
}
|
|
728
|
+
export function __wbg_get_private_key_86d9a3716e61a11a(arg0) {
|
|
729
|
+
const ret = arg0.privateKey;
|
|
730
|
+
return ret;
|
|
731
|
+
}
|
|
732
|
+
export function __wbg_get_public_key_0e3517f984bc9ce7(arg0) {
|
|
733
|
+
const ret = arg0.publicKey;
|
|
734
|
+
return ret;
|
|
735
|
+
}
|
|
736
|
+
export function __wbg_get_unchecked_ae4d1600970be7c3(arg0, arg1) {
|
|
737
|
+
const ret = arg0[arg1 >>> 0];
|
|
738
|
+
return ret;
|
|
739
|
+
}
|
|
740
|
+
export function __wbg_get_value_e7da3dda29ab004c(arg0) {
|
|
741
|
+
const ret = arg0.value;
|
|
742
|
+
return ret;
|
|
743
|
+
}
|
|
744
|
+
export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
745
|
+
const ret = arg0[arg1];
|
|
746
|
+
return ret;
|
|
747
|
+
}
|
|
748
|
+
export function __wbg_importKey_d5d98bc5f7c574a9() {
|
|
749
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
750
|
+
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
751
|
+
return ret;
|
|
752
|
+
}, arguments);
|
|
753
|
+
}
|
|
754
|
+
export function __wbg_info_3fd9a89e2dc8aaf1(arg0, arg1, arg2, arg3) {
|
|
755
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
756
|
+
}
|
|
757
|
+
export function __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d(arg0) {
|
|
758
|
+
let result;
|
|
759
|
+
try {
|
|
760
|
+
result = arg0 instanceof ArrayBuffer;
|
|
761
|
+
}
|
|
762
|
+
catch (_) {
|
|
763
|
+
result = false;
|
|
764
|
+
}
|
|
765
|
+
const ret = result;
|
|
766
|
+
return ret;
|
|
767
|
+
}
|
|
768
|
+
export function __wbg_instanceof_CryptoKey_f4419e1bcb5414ed(arg0) {
|
|
769
|
+
let result;
|
|
770
|
+
try {
|
|
771
|
+
result = arg0 instanceof CryptoKey;
|
|
772
|
+
}
|
|
773
|
+
catch (_) {
|
|
774
|
+
result = false;
|
|
775
|
+
}
|
|
776
|
+
const ret = result;
|
|
777
|
+
return ret;
|
|
778
|
+
}
|
|
779
|
+
export function __wbg_instanceof_Error_e4c0d728e3dea73b(arg0) {
|
|
780
|
+
let result;
|
|
781
|
+
try {
|
|
782
|
+
result = arg0 instanceof Error;
|
|
783
|
+
}
|
|
784
|
+
catch (_) {
|
|
785
|
+
result = false;
|
|
786
|
+
}
|
|
787
|
+
const ret = result;
|
|
788
|
+
return ret;
|
|
789
|
+
}
|
|
790
|
+
export function __wbg_instanceof_Map_3ad422261e078a42(arg0) {
|
|
791
|
+
let result;
|
|
792
|
+
try {
|
|
793
|
+
result = arg0 instanceof Map;
|
|
794
|
+
}
|
|
795
|
+
catch (_) {
|
|
796
|
+
result = false;
|
|
797
|
+
}
|
|
798
|
+
const ret = result;
|
|
799
|
+
return ret;
|
|
800
|
+
}
|
|
801
|
+
export function __wbg_instanceof_Object_4ac1098d06a01a38(arg0) {
|
|
802
|
+
let result;
|
|
803
|
+
try {
|
|
804
|
+
result = arg0 instanceof Object;
|
|
805
|
+
}
|
|
806
|
+
catch (_) {
|
|
807
|
+
result = false;
|
|
808
|
+
}
|
|
809
|
+
const ret = result;
|
|
810
|
+
return ret;
|
|
811
|
+
}
|
|
812
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_251c05d2f717b795(arg0) {
|
|
813
|
+
let result;
|
|
814
|
+
try {
|
|
815
|
+
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
816
|
+
}
|
|
817
|
+
catch (_) {
|
|
818
|
+
result = false;
|
|
819
|
+
}
|
|
820
|
+
const ret = result;
|
|
821
|
+
return ret;
|
|
822
|
+
}
|
|
823
|
+
export function __wbg_instanceof_Uint8Array_6482c66fce35827d(arg0) {
|
|
824
|
+
let result;
|
|
825
|
+
try {
|
|
826
|
+
result = arg0 instanceof Uint8Array;
|
|
827
|
+
}
|
|
828
|
+
catch (_) {
|
|
829
|
+
result = false;
|
|
830
|
+
}
|
|
831
|
+
const ret = result;
|
|
832
|
+
return ret;
|
|
833
|
+
}
|
|
834
|
+
export function __wbg_instanceof_Window_27a653e1b516dd65(arg0) {
|
|
835
|
+
let result;
|
|
836
|
+
try {
|
|
837
|
+
result = arg0 instanceof Window;
|
|
838
|
+
}
|
|
839
|
+
catch (_) {
|
|
840
|
+
result = false;
|
|
841
|
+
}
|
|
842
|
+
const ret = result;
|
|
843
|
+
return ret;
|
|
844
|
+
}
|
|
845
|
+
export function __wbg_isArray_fe5201bfdab7e39d(arg0) {
|
|
846
|
+
const ret = Array.isArray(arg0);
|
|
847
|
+
return ret;
|
|
848
|
+
}
|
|
849
|
+
export function __wbg_isSafeInteger_d6215c7562dbc4db(arg0) {
|
|
850
|
+
const ret = Number.isSafeInteger(arg0);
|
|
851
|
+
return ret;
|
|
852
|
+
}
|
|
853
|
+
export function __wbg_iterator_63c3a1857203cf2f() {
|
|
854
|
+
const ret = Symbol.iterator;
|
|
855
|
+
return ret;
|
|
856
|
+
}
|
|
857
|
+
export function __wbg_jsruntime_new(arg0) {
|
|
858
|
+
const ret = JSRuntime.__wrap(arg0);
|
|
859
|
+
return ret;
|
|
860
|
+
}
|
|
861
|
+
export function __wbg_length_f875d3a041bab91a(arg0) {
|
|
862
|
+
const ret = arg0.length;
|
|
863
|
+
return ret;
|
|
864
|
+
}
|
|
865
|
+
export function __wbg_length_feaf2a40e5f9755a(arg0) {
|
|
866
|
+
const ret = arg0.length;
|
|
867
|
+
return ret;
|
|
868
|
+
}
|
|
869
|
+
export function __wbg_log_876289592910878f(arg0, arg1, arg2, arg3) {
|
|
870
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
871
|
+
}
|
|
872
|
+
export function __wbg_message_31a7950b57658baf(arg0) {
|
|
873
|
+
const ret = arg0.message;
|
|
874
|
+
return ret;
|
|
875
|
+
}
|
|
876
|
+
export function __wbg_navigator_373a54253e4475fb(arg0) {
|
|
877
|
+
const ret = arg0.navigator;
|
|
878
|
+
return ret;
|
|
879
|
+
}
|
|
880
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
881
|
+
const ret = new Error();
|
|
882
|
+
return ret;
|
|
883
|
+
}
|
|
884
|
+
export function __wbg_new_5947ca72f3fee3e6() {
|
|
885
|
+
const ret = new Map();
|
|
886
|
+
return ret;
|
|
887
|
+
}
|
|
888
|
+
export function __wbg_new_6e7681a5f6f98ceb(arg0) {
|
|
889
|
+
const ret = new Uint8Array(arg0);
|
|
890
|
+
return ret;
|
|
891
|
+
}
|
|
892
|
+
export function __wbg_new_6feff3e11e4d0799() {
|
|
893
|
+
const ret = new Object();
|
|
894
|
+
return ret;
|
|
895
|
+
}
|
|
896
|
+
export function __wbg_new_c6862560cccd12ba() {
|
|
897
|
+
return handleError(function (arg0, arg1) {
|
|
898
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
899
|
+
return ret;
|
|
900
|
+
}, arguments);
|
|
901
|
+
}
|
|
902
|
+
export function __wbg_new_ff7f9cc4c9a4a0cf() {
|
|
903
|
+
const ret = new Array();
|
|
904
|
+
return ret;
|
|
905
|
+
}
|
|
906
|
+
export function __wbg_new_from_slice_a5be53238f31f9f7(arg0, arg1) {
|
|
907
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
908
|
+
return ret;
|
|
909
|
+
}
|
|
910
|
+
export function __wbg_new_typed_094c40c0ef1c4dd9() {
|
|
911
|
+
const ret = new Array();
|
|
912
|
+
return ret;
|
|
913
|
+
}
|
|
914
|
+
export function __wbg_new_typed_f79896f0ea5f7de8(arg0, arg1) {
|
|
915
|
+
try {
|
|
916
|
+
var state0 = { a: arg0, b: arg1 };
|
|
917
|
+
var cb0 = (arg0, arg1) => {
|
|
918
|
+
const a = state0.a;
|
|
919
|
+
state0.a = 0;
|
|
920
|
+
try {
|
|
921
|
+
return wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined______(a, state0.b, arg0, arg1);
|
|
922
|
+
}
|
|
923
|
+
finally {
|
|
924
|
+
state0.a = a;
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
const ret = new Promise(cb0);
|
|
928
|
+
return ret;
|
|
929
|
+
}
|
|
930
|
+
finally {
|
|
931
|
+
state0.a = state0.b = 0;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
export function __wbg_next_ae5b710aea83f41e() {
|
|
935
|
+
return handleError(function (arg0) {
|
|
936
|
+
const ret = arg0.next();
|
|
937
|
+
return ret;
|
|
938
|
+
}, arguments);
|
|
939
|
+
}
|
|
940
|
+
export function __wbg_next_f577b3e02c9be709(arg0) {
|
|
941
|
+
const ret = arg0.next;
|
|
942
|
+
return ret;
|
|
943
|
+
}
|
|
944
|
+
export function __wbg_now_054cfe5280165f10() {
|
|
945
|
+
const ret = Date.now();
|
|
946
|
+
return ret;
|
|
947
|
+
}
|
|
948
|
+
export function __wbg_now_e7c6795a7f81e10f(arg0) {
|
|
949
|
+
const ret = arg0.now();
|
|
950
|
+
return ret;
|
|
951
|
+
}
|
|
952
|
+
export function __wbg_of_46d2833daab368cb(arg0, arg1) {
|
|
953
|
+
const ret = Array.of(arg0, arg1);
|
|
954
|
+
return ret;
|
|
955
|
+
}
|
|
956
|
+
export function __wbg_of_fcc1c8c0899b3729(arg0) {
|
|
957
|
+
const ret = Array.of(arg0);
|
|
958
|
+
return ret;
|
|
959
|
+
}
|
|
960
|
+
export function __wbg_open_594aeba07b1a8345(arg0, arg1) {
|
|
961
|
+
const ret = arg0.open(arg1);
|
|
962
|
+
return ret;
|
|
963
|
+
}
|
|
964
|
+
export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
|
|
965
|
+
const ret = arg0.performance;
|
|
966
|
+
return ret;
|
|
967
|
+
}
|
|
968
|
+
export function __wbg_prototypesetcall_37f00e1be5c4015a(arg0, arg1, arg2) {
|
|
969
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
970
|
+
}
|
|
971
|
+
export function __wbg_push_3584053bd77475ee(arg0, arg1) {
|
|
972
|
+
const ret = arg0.push(arg1);
|
|
973
|
+
return ret;
|
|
974
|
+
}
|
|
975
|
+
export function __wbg_queueMicrotask_5e387cf4d8e3f63e(arg0) {
|
|
976
|
+
queueMicrotask(arg0);
|
|
977
|
+
}
|
|
978
|
+
export function __wbg_queueMicrotask_77bf5a3ad712168b(arg0) {
|
|
979
|
+
const ret = arg0.queueMicrotask;
|
|
980
|
+
return ret;
|
|
981
|
+
}
|
|
982
|
+
export function __wbg_randomUUID_a5d67697fb5a6a89(arg0, arg1) {
|
|
983
|
+
const ret = arg1.randomUUID();
|
|
984
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
985
|
+
const len1 = WASM_VECTOR_LEN;
|
|
986
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
987
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
988
|
+
}
|
|
989
|
+
export function __wbg_read_4cfc9fe040a376a9(arg0) {
|
|
990
|
+
const ret = arg0.read();
|
|
991
|
+
return ret;
|
|
992
|
+
}
|
|
993
|
+
export function __wbg_readable_3e679010e75a81aa(arg0) {
|
|
994
|
+
const ret = arg0.readable;
|
|
995
|
+
return ret;
|
|
996
|
+
}
|
|
997
|
+
export function __wbg_requestPort_f20299b9686054c0(arg0) {
|
|
998
|
+
const ret = arg0.requestPort();
|
|
999
|
+
return ret;
|
|
1000
|
+
}
|
|
1001
|
+
export function __wbg_resolve_2e8556632715b12f(arg0) {
|
|
1002
|
+
const ret = Promise.resolve(arg0);
|
|
1003
|
+
return ret;
|
|
1004
|
+
}
|
|
1005
|
+
export function __wbg_send_62684b18190d0f4e() {
|
|
1006
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1007
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1008
|
+
}, arguments);
|
|
1009
|
+
}
|
|
1010
|
+
export function __wbg_serial_4363b4032ea3768b(arg0) {
|
|
1011
|
+
const ret = arg0.serial;
|
|
1012
|
+
return ret;
|
|
1013
|
+
}
|
|
1014
|
+
export function __wbg_setTimeout_ef24d2fc3ad97385() {
|
|
1015
|
+
return handleError(function (arg0, arg1) {
|
|
1016
|
+
const ret = setTimeout(arg0, arg1);
|
|
1017
|
+
return ret;
|
|
1018
|
+
}, arguments);
|
|
1019
|
+
}
|
|
1020
|
+
export function __wbg_set_409333732b484ee7() {
|
|
1021
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1022
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1023
|
+
return ret;
|
|
1024
|
+
}, arguments);
|
|
1025
|
+
}
|
|
1026
|
+
export function __wbg_set_601f3e1d081df3ac(arg0, arg1, arg2) {
|
|
1027
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1028
|
+
}
|
|
1029
|
+
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
1030
|
+
arg0[arg1] = arg2;
|
|
1031
|
+
}
|
|
1032
|
+
export function __wbg_set_b1226382f10be917(arg0, arg1, arg2) {
|
|
1033
|
+
const ret = arg0.set(arg1, arg2);
|
|
1034
|
+
return ret;
|
|
1035
|
+
}
|
|
1036
|
+
export function __wbg_set_baud_rate_fe6143d5d7676056(arg0, arg1) {
|
|
1037
|
+
arg0.baudRate = arg1 >>> 0;
|
|
1038
|
+
}
|
|
1039
|
+
export function __wbg_set_binaryType_cf0c7d4f696463c4(arg0, arg1) {
|
|
1040
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1041
|
+
}
|
|
1042
|
+
export function __wbg_set_counter_70f1a54a0f915958(arg0, arg1) {
|
|
1043
|
+
arg0.counter = arg1;
|
|
1044
|
+
}
|
|
1045
|
+
export function __wbg_set_length_3eeb986747a2cafc(arg0, arg1) {
|
|
1046
|
+
arg0.length = arg1;
|
|
1047
|
+
}
|
|
1048
|
+
export function __wbg_set_name_ddf0b4aff0b39746(arg0, arg1, arg2) {
|
|
1049
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1050
|
+
}
|
|
1051
|
+
export function __wbg_set_onclose_f1dc4f34db0edb70(arg0, arg1) {
|
|
1052
|
+
arg0.onclose = arg1;
|
|
1053
|
+
}
|
|
1054
|
+
export function __wbg_set_onerror_c5cc940aaa32469f(arg0, arg1) {
|
|
1055
|
+
arg0.onerror = arg1;
|
|
1056
|
+
}
|
|
1057
|
+
export function __wbg_set_onmessage_4bc3bcd36a569c03(arg0, arg1) {
|
|
1058
|
+
arg0.onmessage = arg1;
|
|
1059
|
+
}
|
|
1060
|
+
export function __wbg_set_onopen_7c5a9bca5c4ae13d(arg0, arg1) {
|
|
1061
|
+
arg0.onopen = arg1;
|
|
1062
|
+
}
|
|
1063
|
+
export function __wbg_sign_ac2a693ae3c36d52() {
|
|
1064
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1065
|
+
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1066
|
+
return ret;
|
|
1067
|
+
}, arguments);
|
|
1068
|
+
}
|
|
1069
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
1070
|
+
const ret = arg1.stack;
|
|
1071
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1072
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1073
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1074
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1075
|
+
}
|
|
1076
|
+
export function __wbg_static_accessor_GLOBAL_280fe6a619bbfbf6() {
|
|
1077
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1078
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1079
|
+
}
|
|
1080
|
+
export function __wbg_static_accessor_GLOBAL_THIS_12c1f4811ec605d1() {
|
|
1081
|
+
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1082
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1083
|
+
}
|
|
1084
|
+
export function __wbg_static_accessor_SELF_3a156961626f54d9() {
|
|
1085
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1086
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1087
|
+
}
|
|
1088
|
+
export function __wbg_static_accessor_WINDOW_210015b3eb6018a4() {
|
|
1089
|
+
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1090
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1091
|
+
}
|
|
1092
|
+
export function __wbg_subtle_81be0a973c415a03(arg0) {
|
|
1093
|
+
const ret = arg0.subtle;
|
|
1094
|
+
return ret;
|
|
1095
|
+
}
|
|
1096
|
+
export function __wbg_then_5ce48a9e69c0d3cd(arg0, arg1) {
|
|
1097
|
+
const ret = arg0.then(arg1);
|
|
1098
|
+
return ret;
|
|
1099
|
+
}
|
|
1100
|
+
export function __wbg_then_f73127af3894d61c(arg0, arg1, arg2) {
|
|
1101
|
+
const ret = arg0.then(arg1, arg2);
|
|
1102
|
+
return ret;
|
|
1103
|
+
}
|
|
1104
|
+
export function __wbg_toString_e3e5fe9e1dd78d7e(arg0) {
|
|
1105
|
+
const ret = arg0.toString();
|
|
1106
|
+
return ret;
|
|
1107
|
+
}
|
|
1108
|
+
export function __wbg_unwrapKey_a1ed6f93290ea7e6() {
|
|
1109
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1110
|
+
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1111
|
+
return ret;
|
|
1112
|
+
}, arguments);
|
|
1113
|
+
}
|
|
1114
|
+
export function __wbg_value_3e1fdb73e1353fb3(arg0) {
|
|
1115
|
+
const ret = arg0.value;
|
|
1116
|
+
return ret;
|
|
1117
|
+
}
|
|
1118
|
+
export function __wbg_verify_f1f7d4c6724422ed() {
|
|
1119
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1120
|
+
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1121
|
+
return ret;
|
|
1122
|
+
}, arguments);
|
|
1123
|
+
}
|
|
1124
|
+
export function __wbg_warn_1cdc9092c462f8ba(arg0, arg1, arg2, arg3) {
|
|
1125
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
1126
|
+
}
|
|
1127
|
+
export function __wbg_wrapKey_86c5988ab8fc9c88() {
|
|
1128
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1129
|
+
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1130
|
+
return ret;
|
|
1131
|
+
}, arguments);
|
|
1132
|
+
}
|
|
1133
|
+
export function __wbg_writable_895b2d01f223385e(arg0) {
|
|
1134
|
+
const ret = arg0.writable;
|
|
1135
|
+
return ret;
|
|
1136
|
+
}
|
|
1137
|
+
export function __wbg_write_537b90f946efe5cf(arg0, arg1) {
|
|
1138
|
+
const ret = arg0.write(arg1);
|
|
1139
|
+
return ret;
|
|
1140
|
+
}
|
|
1141
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1142
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1056, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1143
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array_____);
|
|
1144
|
+
return ret;
|
|
1145
|
+
}
|
|
1146
|
+
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1147
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1056, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1148
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______1);
|
|
1149
|
+
return ret;
|
|
1150
|
+
}
|
|
1151
|
+
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1152
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1056, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1153
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______2);
|
|
1154
|
+
return ret;
|
|
1155
|
+
}
|
|
1156
|
+
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1157
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("SerialPort")], shim_idx: 1058, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1158
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__);
|
|
1159
|
+
return ret;
|
|
1160
|
+
}
|
|
1161
|
+
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1162
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("Uint8Array")], shim_idx: 1056, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1163
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______4);
|
|
1164
|
+
return ret;
|
|
1165
|
+
}
|
|
1166
|
+
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1167
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1055, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1058, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1168
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__js_sys_1e0fa53b46a1aa00___Uint8Array____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError___5);
|
|
1169
|
+
return ret;
|
|
1170
|
+
}
|
|
1171
|
+
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
1172
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [], shim_idx: 1879, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1173
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut_____Output_______, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke______);
|
|
1174
|
+
return ret;
|
|
1175
|
+
}
|
|
1176
|
+
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
1177
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1912, function: Function { arguments: [Externref], shim_idx: 1913, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1178
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_972ade449c4e7d36___closure__destroy___dyn_core_5e306c6f7022a9a0___ops__function__FnMut__wasm_bindgen_972ade449c4e7d36___JsValue____Output___core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError___, wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___JsValue__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__);
|
|
1179
|
+
return ret;
|
|
1180
|
+
}
|
|
1181
|
+
export function __wbindgen_cast_0000000000000009(arg0) {
|
|
1182
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1183
|
+
const ret = arg0;
|
|
1184
|
+
return ret;
|
|
1185
|
+
}
|
|
1186
|
+
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
1187
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1188
|
+
const ret = arg0;
|
|
1189
|
+
return ret;
|
|
1190
|
+
}
|
|
1191
|
+
export function __wbindgen_cast_000000000000000b(arg0, arg1) {
|
|
1192
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1193
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1194
|
+
return ret;
|
|
1195
|
+
}
|
|
1196
|
+
export function __wbindgen_cast_000000000000000c(arg0) {
|
|
1197
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1198
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1199
|
+
return ret;
|
|
1200
|
+
}
|
|
1201
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
1202
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1203
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1204
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1205
|
+
const ret = v0;
|
|
1206
|
+
return ret;
|
|
1207
|
+
}
|
|
1208
|
+
export function __wbindgen_init_externref_table() {
|
|
1209
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1210
|
+
const offset = table.grow(4);
|
|
1211
|
+
table.set(0, undefined);
|
|
1212
|
+
table.set(offset + 0, undefined);
|
|
1213
|
+
table.set(offset + 1, null);
|
|
1214
|
+
table.set(offset + 2, true);
|
|
1215
|
+
table.set(offset + 3, false);
|
|
1216
|
+
}
|
|
1217
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke______(arg0, arg1) {
|
|
1218
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke______(arg0, arg1);
|
|
1219
|
+
}
|
|
1220
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array_____(arg0, arg1, arg2) {
|
|
1221
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array_____(arg0, arg1, arg2);
|
|
1222
|
+
}
|
|
1223
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______1(arg0, arg1, arg2) {
|
|
1224
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______1(arg0, arg1, arg2);
|
|
1225
|
+
}
|
|
1226
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______2(arg0, arg1, arg2) {
|
|
1227
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______2(arg0, arg1, arg2);
|
|
1228
|
+
}
|
|
1229
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______4(arg0, arg1, arg2) {
|
|
1230
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Uint8Array______4(arg0, arg1, arg2);
|
|
1231
|
+
}
|
|
1232
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__(arg0, arg1, arg2) {
|
|
1233
|
+
const ret = wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__(arg0, arg1, arg2);
|
|
1234
|
+
if (ret[1]) {
|
|
1235
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError___5(arg0, arg1, arg2) {
|
|
1239
|
+
const ret = wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___sys__Undefined__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError___5(arg0, arg1, arg2);
|
|
1240
|
+
if (ret[1]) {
|
|
1241
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___JsValue__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__(arg0, arg1, arg2) {
|
|
1245
|
+
const ret = wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___wasm_bindgen_972ade449c4e7d36___JsValue__core_5e306c6f7022a9a0___result__Result_____wasm_bindgen_972ade449c4e7d36___JsError__(arg0, arg1, arg2);
|
|
1246
|
+
if (ret[1]) {
|
|
1247
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
function wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined______(arg0, arg1, arg2, arg3) {
|
|
1251
|
+
wasm.wasm_bindgen_972ade449c4e7d36___convert__closures_____invoke___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined___js_sys_1e0fa53b46a1aa00___Function_fn_wasm_bindgen_972ade449c4e7d36___JsValue_____wasm_bindgen_972ade449c4e7d36___sys__Undefined______(arg0, arg1, arg2, arg3);
|
|
1252
|
+
}
|
|
1253
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1254
|
+
const JSComHubFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1255
|
+
? { register: () => { }, unregister: () => { } }
|
|
1256
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
|
|
1257
|
+
const JSRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1258
|
+
? { register: () => { }, unregister: () => { } }
|
|
1259
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsruntime_free(ptr >>> 0, 1));
|
|
1260
|
+
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1261
|
+
? { register: () => { }, unregister: () => { } }
|
|
1262
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
1263
|
+
function addToExternrefTable0(obj) {
|
|
1264
|
+
const idx = wasm.__externref_table_alloc();
|
|
1265
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1266
|
+
return idx;
|
|
1267
|
+
}
|
|
1268
|
+
function _assertClass(instance, klass) {
|
|
1269
|
+
if (!(instance instanceof klass)) {
|
|
1270
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1274
|
+
? { register: () => { }, unregister: () => { } }
|
|
1275
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1276
|
+
function debugString(val) {
|
|
1277
|
+
// primitive types
|
|
1278
|
+
const type = typeof val;
|
|
1279
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1280
|
+
return `${val}`;
|
|
1281
|
+
}
|
|
1282
|
+
if (type == 'string') {
|
|
1283
|
+
return `"${val}"`;
|
|
1284
|
+
}
|
|
1285
|
+
if (type == 'symbol') {
|
|
1286
|
+
const description = val.description;
|
|
1287
|
+
if (description == null) {
|
|
1288
|
+
return 'Symbol';
|
|
1289
|
+
}
|
|
1290
|
+
else {
|
|
1291
|
+
return `Symbol(${description})`;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
if (type == 'function') {
|
|
1295
|
+
const name = val.name;
|
|
1296
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1297
|
+
return `Function(${name})`;
|
|
1298
|
+
}
|
|
1299
|
+
else {
|
|
1300
|
+
return 'Function';
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
// objects
|
|
1304
|
+
if (Array.isArray(val)) {
|
|
1305
|
+
const length = val.length;
|
|
1306
|
+
let debug = '[';
|
|
1307
|
+
if (length > 0) {
|
|
1308
|
+
debug += debugString(val[0]);
|
|
1309
|
+
}
|
|
1310
|
+
for (let i = 1; i < length; i++) {
|
|
1311
|
+
debug += ', ' + debugString(val[i]);
|
|
1312
|
+
}
|
|
1313
|
+
debug += ']';
|
|
1314
|
+
return debug;
|
|
1315
|
+
}
|
|
1316
|
+
// Test for built-in
|
|
1317
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1318
|
+
let className;
|
|
1319
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1320
|
+
className = builtInMatches[1];
|
|
1321
|
+
}
|
|
1322
|
+
else {
|
|
1323
|
+
// Failed to match the standard '[object ClassName]'
|
|
1324
|
+
return toString.call(val);
|
|
1325
|
+
}
|
|
1326
|
+
if (className == 'Object') {
|
|
1327
|
+
// we're a user defined class or Object
|
|
1328
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1329
|
+
// easier than looping through ownProperties of `val`.
|
|
1330
|
+
try {
|
|
1331
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1332
|
+
}
|
|
1333
|
+
catch (_) {
|
|
1334
|
+
return 'Object';
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
// errors
|
|
1338
|
+
if (val instanceof Error) {
|
|
1339
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1340
|
+
}
|
|
1341
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1342
|
+
return className;
|
|
1343
|
+
}
|
|
1344
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1345
|
+
ptr = ptr >>> 0;
|
|
1346
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1347
|
+
}
|
|
1348
|
+
let cachedDataViewMemory0 = null;
|
|
1349
|
+
function getDataViewMemory0() {
|
|
1350
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1351
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1352
|
+
}
|
|
1353
|
+
return cachedDataViewMemory0;
|
|
1354
|
+
}
|
|
1355
|
+
function getStringFromWasm0(ptr, len) {
|
|
1356
|
+
ptr = ptr >>> 0;
|
|
1357
|
+
return decodeText(ptr, len);
|
|
1358
|
+
}
|
|
1359
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1360
|
+
function getUint8ArrayMemory0() {
|
|
1361
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1362
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1363
|
+
}
|
|
1364
|
+
return cachedUint8ArrayMemory0;
|
|
1365
|
+
}
|
|
1366
|
+
function handleError(f, args) {
|
|
1367
|
+
try {
|
|
1368
|
+
return f.apply(this, args);
|
|
1369
|
+
}
|
|
1370
|
+
catch (e) {
|
|
1371
|
+
const idx = addToExternrefTable0(e);
|
|
1372
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
function isLikeNone(x) {
|
|
1376
|
+
return x === undefined || x === null;
|
|
1377
|
+
}
|
|
1378
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1379
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1380
|
+
const real = (...args) => {
|
|
1381
|
+
// First up with a closure we increment the internal reference
|
|
1382
|
+
// count. This ensures that the Rust closure environment won't
|
|
1383
|
+
// be deallocated while we're invoking it.
|
|
1384
|
+
state.cnt++;
|
|
1385
|
+
const a = state.a;
|
|
1386
|
+
state.a = 0;
|
|
1387
|
+
try {
|
|
1388
|
+
return f(a, state.b, ...args);
|
|
1389
|
+
}
|
|
1390
|
+
finally {
|
|
1391
|
+
state.a = a;
|
|
1392
|
+
real._wbg_cb_unref();
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
real._wbg_cb_unref = () => {
|
|
1396
|
+
if (--state.cnt === 0) {
|
|
1397
|
+
state.dtor(state.a, state.b);
|
|
1398
|
+
state.a = 0;
|
|
1399
|
+
CLOSURE_DTORS.unregister(state);
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1403
|
+
return real;
|
|
1404
|
+
}
|
|
1405
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1406
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1407
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1408
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1409
|
+
return ptr;
|
|
1410
|
+
}
|
|
1411
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
1412
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
1413
|
+
for (let i = 0; i < array.length; i++) {
|
|
1414
|
+
const add = addToExternrefTable0(array[i]);
|
|
1415
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
1416
|
+
}
|
|
1417
|
+
WASM_VECTOR_LEN = array.length;
|
|
1418
|
+
return ptr;
|
|
1419
|
+
}
|
|
1420
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1421
|
+
if (realloc === undefined) {
|
|
1422
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1423
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1424
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1425
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1426
|
+
return ptr;
|
|
1427
|
+
}
|
|
1428
|
+
let len = arg.length;
|
|
1429
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1430
|
+
const mem = getUint8ArrayMemory0();
|
|
1431
|
+
let offset = 0;
|
|
1432
|
+
for (; offset < len; offset++) {
|
|
1433
|
+
const code = arg.charCodeAt(offset);
|
|
1434
|
+
if (code > 0x7F)
|
|
1435
|
+
break;
|
|
1436
|
+
mem[ptr + offset] = code;
|
|
1437
|
+
}
|
|
1438
|
+
if (offset !== len) {
|
|
1439
|
+
if (offset !== 0) {
|
|
1440
|
+
arg = arg.slice(offset);
|
|
1441
|
+
}
|
|
1442
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1443
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1444
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1445
|
+
offset += ret.written;
|
|
1446
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1447
|
+
}
|
|
1448
|
+
WASM_VECTOR_LEN = offset;
|
|
1449
|
+
return ptr;
|
|
1450
|
+
}
|
|
1451
|
+
function takeFromExternrefTable0(idx) {
|
|
1452
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1453
|
+
wasm.__externref_table_dealloc(idx);
|
|
1454
|
+
return value;
|
|
1455
|
+
}
|
|
1456
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1457
|
+
cachedTextDecoder.decode();
|
|
1458
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1459
|
+
let numBytesDecoded = 0;
|
|
1460
|
+
function decodeText(ptr, len) {
|
|
1461
|
+
numBytesDecoded += len;
|
|
1462
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1463
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1464
|
+
cachedTextDecoder.decode();
|
|
1465
|
+
numBytesDecoded = len;
|
|
1466
|
+
}
|
|
1467
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1468
|
+
}
|
|
1469
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1470
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1471
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1472
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1473
|
+
view.set(buf);
|
|
1474
|
+
return {
|
|
1475
|
+
read: arg.length,
|
|
1476
|
+
written: buf.length
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
}
|
|
1480
|
+
let WASM_VECTOR_LEN = 0;
|
|
1481
|
+
let wasm;
|
|
1482
|
+
export function __wbg_set_wasm(val) {
|
|
1483
|
+
wasm = val;
|
|
1484
|
+
}
|