@unyt/datex 0.0.11 → 0.0.12
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 +383 -0
- package/esm/datex-web/datex_web.internal.d.ts.map +1 -0
- package/esm/{datex-core/datex_core_js.internal.js → datex-web/datex_web.internal.js} +737 -1121
- 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.map +1 -1
- package/esm/dif/dif-handler.d.ts +10 -1
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +14 -2
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +1 -3
- 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 +7 -14
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +11 -20
- 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.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
|
@@ -1,346 +1,7 @@
|
|
|
1
1
|
// @generated file from wasmbuild -- do not edit
|
|
2
|
-
import * as dntShim from "../_dnt.shims.js";
|
|
3
|
-
// @ts-nocheck: generated
|
|
4
2
|
// deno-lint-ignore-file
|
|
5
3
|
// deno-fmt-ignore-file
|
|
6
|
-
|
|
7
|
-
export function __wbg_set_wasm(val) {
|
|
8
|
-
wasm = val;
|
|
9
|
-
}
|
|
10
|
-
let cachedUint8ArrayMemory0 = null;
|
|
11
|
-
function getUint8ArrayMemory0() {
|
|
12
|
-
if (cachedUint8ArrayMemory0 === null ||
|
|
13
|
-
cachedUint8ArrayMemory0.byteLength === 0) {
|
|
14
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
|
-
}
|
|
16
|
-
return cachedUint8ArrayMemory0;
|
|
17
|
-
}
|
|
18
|
-
let cachedTextDecoder = new TextDecoder("utf-8", {
|
|
19
|
-
ignoreBOM: true,
|
|
20
|
-
fatal: true,
|
|
21
|
-
});
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
24
|
-
let numBytesDecoded = 0;
|
|
25
|
-
function decodeText(ptr, len) {
|
|
26
|
-
numBytesDecoded += len;
|
|
27
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
28
|
-
cachedTextDecoder = new TextDecoder("utf-8", {
|
|
29
|
-
ignoreBOM: true,
|
|
30
|
-
fatal: true,
|
|
31
|
-
});
|
|
32
|
-
cachedTextDecoder.decode();
|
|
33
|
-
numBytesDecoded = len;
|
|
34
|
-
}
|
|
35
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
36
|
-
}
|
|
37
|
-
function getStringFromWasm0(ptr, len) {
|
|
38
|
-
ptr = ptr >>> 0;
|
|
39
|
-
return decodeText(ptr, len);
|
|
40
|
-
}
|
|
41
|
-
let WASM_VECTOR_LEN = 0;
|
|
42
|
-
const cachedTextEncoder = new TextEncoder();
|
|
43
|
-
if (!("encodeInto" in cachedTextEncoder)) {
|
|
44
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
45
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
-
view.set(buf);
|
|
47
|
-
return {
|
|
48
|
-
read: arg.length,
|
|
49
|
-
written: buf.length,
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
54
|
-
if (realloc === undefined) {
|
|
55
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
56
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
57
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
58
|
-
WASM_VECTOR_LEN = buf.length;
|
|
59
|
-
return ptr;
|
|
60
|
-
}
|
|
61
|
-
let len = arg.length;
|
|
62
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
63
|
-
const mem = getUint8ArrayMemory0();
|
|
64
|
-
let offset = 0;
|
|
65
|
-
for (; offset < len; offset++) {
|
|
66
|
-
const code = arg.charCodeAt(offset);
|
|
67
|
-
if (code > 0x7F)
|
|
68
|
-
break;
|
|
69
|
-
mem[ptr + offset] = code;
|
|
70
|
-
}
|
|
71
|
-
if (offset !== len) {
|
|
72
|
-
if (offset !== 0) {
|
|
73
|
-
arg = arg.slice(offset);
|
|
74
|
-
}
|
|
75
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
76
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
77
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
78
|
-
offset += ret.written;
|
|
79
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
80
|
-
}
|
|
81
|
-
WASM_VECTOR_LEN = offset;
|
|
82
|
-
return ptr;
|
|
83
|
-
}
|
|
84
|
-
let cachedDataViewMemory0 = null;
|
|
85
|
-
function getDataViewMemory0() {
|
|
86
|
-
if (cachedDataViewMemory0 === null ||
|
|
87
|
-
cachedDataViewMemory0.buffer.detached === true ||
|
|
88
|
-
(cachedDataViewMemory0.buffer.detached === undefined &&
|
|
89
|
-
cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
90
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
91
|
-
}
|
|
92
|
-
return cachedDataViewMemory0;
|
|
93
|
-
}
|
|
94
|
-
function isLikeNone(x) {
|
|
95
|
-
return x === undefined || x === null;
|
|
96
|
-
}
|
|
97
|
-
function debugString(val) {
|
|
98
|
-
// primitive types
|
|
99
|
-
const type = typeof val;
|
|
100
|
-
if (type == "number" || type == "boolean" || val == null) {
|
|
101
|
-
return `${val}`;
|
|
102
|
-
}
|
|
103
|
-
if (type == "string") {
|
|
104
|
-
return `"${val}"`;
|
|
105
|
-
}
|
|
106
|
-
if (type == "symbol") {
|
|
107
|
-
const description = val.description;
|
|
108
|
-
if (description == null) {
|
|
109
|
-
return "Symbol";
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return `Symbol(${description})`;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (type == "function") {
|
|
116
|
-
const name = val.name;
|
|
117
|
-
if (typeof name == "string" && name.length > 0) {
|
|
118
|
-
return `Function(${name})`;
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return "Function";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
// objects
|
|
125
|
-
if (Array.isArray(val)) {
|
|
126
|
-
const length = val.length;
|
|
127
|
-
let debug = "[";
|
|
128
|
-
if (length > 0) {
|
|
129
|
-
debug += debugString(val[0]);
|
|
130
|
-
}
|
|
131
|
-
for (let i = 1; i < length; i++) {
|
|
132
|
-
debug += ", " + debugString(val[i]);
|
|
133
|
-
}
|
|
134
|
-
debug += "]";
|
|
135
|
-
return debug;
|
|
136
|
-
}
|
|
137
|
-
// Test for built-in
|
|
138
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
139
|
-
let className;
|
|
140
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
141
|
-
className = builtInMatches[1];
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
// Failed to match the standard '[object ClassName]'
|
|
145
|
-
return toString.call(val);
|
|
146
|
-
}
|
|
147
|
-
if (className == "Object") {
|
|
148
|
-
// we're a user defined class or Object
|
|
149
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
150
|
-
// easier than looping through ownProperties of `val`.
|
|
151
|
-
try {
|
|
152
|
-
return "Object(" + JSON.stringify(val) + ")";
|
|
153
|
-
}
|
|
154
|
-
catch (_) {
|
|
155
|
-
return "Object";
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
// errors
|
|
159
|
-
if (val instanceof Error) {
|
|
160
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
161
|
-
}
|
|
162
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
163
|
-
return className;
|
|
164
|
-
}
|
|
165
|
-
function addToExternrefTable0(obj) {
|
|
166
|
-
const idx = wasm.__externref_table_alloc();
|
|
167
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
168
|
-
return idx;
|
|
169
|
-
}
|
|
170
|
-
function handleError(f, args) {
|
|
171
|
-
try {
|
|
172
|
-
return f.apply(this, args);
|
|
173
|
-
}
|
|
174
|
-
catch (e) {
|
|
175
|
-
const idx = addToExternrefTable0(e);
|
|
176
|
-
wasm.__wbindgen_exn_store(idx);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
180
|
-
ptr = ptr >>> 0;
|
|
181
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
182
|
-
}
|
|
183
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
184
|
-
? { register: () => { }, unregister: () => { } }
|
|
185
|
-
: new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
186
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
187
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
188
|
-
const real = (...args) => {
|
|
189
|
-
// First up with a closure we increment the internal reference
|
|
190
|
-
// count. This ensures that the Rust closure environment won't
|
|
191
|
-
// be deallocated while we're invoking it.
|
|
192
|
-
state.cnt++;
|
|
193
|
-
const a = state.a;
|
|
194
|
-
state.a = 0;
|
|
195
|
-
try {
|
|
196
|
-
return f(a, state.b, ...args);
|
|
197
|
-
}
|
|
198
|
-
finally {
|
|
199
|
-
state.a = a;
|
|
200
|
-
real._wbg_cb_unref();
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
real._wbg_cb_unref = () => {
|
|
204
|
-
if (--state.cnt === 0) {
|
|
205
|
-
state.dtor(state.a, state.b);
|
|
206
|
-
state.a = 0;
|
|
207
|
-
CLOSURE_DTORS.unregister(state);
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
211
|
-
return real;
|
|
212
|
-
}
|
|
213
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
214
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
215
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
216
|
-
WASM_VECTOR_LEN = arg.length;
|
|
217
|
-
return ptr;
|
|
218
|
-
}
|
|
219
|
-
function takeFromExternrefTable0(idx) {
|
|
220
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
221
|
-
wasm.__externref_table_dealloc(idx);
|
|
222
|
-
return value;
|
|
223
|
-
}
|
|
224
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
225
|
-
ptr = ptr >>> 0;
|
|
226
|
-
const mem = getDataViewMemory0();
|
|
227
|
-
const result = [];
|
|
228
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
229
|
-
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
230
|
-
}
|
|
231
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
232
|
-
return result;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} config
|
|
236
|
-
* @param {any} debug_flags
|
|
237
|
-
* @returns {JSRuntime}
|
|
238
|
-
*/
|
|
239
|
-
export function create_runtime(config, debug_flags) {
|
|
240
|
-
const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
-
const len0 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
243
|
-
return JSRuntime.__wrap(ret);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Executes a Datex script and returns the result as a string.
|
|
247
|
-
* @param {string} datex_script
|
|
248
|
-
* @param {any} decompile_options
|
|
249
|
-
* @returns {string}
|
|
250
|
-
*/
|
|
251
|
-
export function execute(datex_script, decompile_options) {
|
|
252
|
-
let deferred2_0;
|
|
253
|
-
let deferred2_1;
|
|
254
|
-
try {
|
|
255
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
256
|
-
const len0 = WASM_VECTOR_LEN;
|
|
257
|
-
const ret = wasm.execute(ptr0, len0, decompile_options);
|
|
258
|
-
deferred2_0 = ret[0];
|
|
259
|
-
deferred2_1 = ret[1];
|
|
260
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
261
|
-
}
|
|
262
|
-
finally {
|
|
263
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Executes a Datex script and returns true when execution was successful.
|
|
268
|
-
* Does not return the result of the script, but only indicates success or failure.
|
|
269
|
-
* @param {string} datex_script
|
|
270
|
-
* @returns {boolean}
|
|
271
|
-
*/
|
|
272
|
-
export function execute_internal(datex_script) {
|
|
273
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
-
const len0 = WASM_VECTOR_LEN;
|
|
275
|
-
const ret = wasm.execute_internal(ptr0, len0);
|
|
276
|
-
return ret !== 0;
|
|
277
|
-
}
|
|
278
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
279
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
280
|
-
for (let i = 0; i < array.length; i++) {
|
|
281
|
-
const add = addToExternrefTable0(array[i]);
|
|
282
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
283
|
-
}
|
|
284
|
-
WASM_VECTOR_LEN = array.length;
|
|
285
|
-
return ptr;
|
|
286
|
-
}
|
|
287
|
-
function _assertClass(instance, klass) {
|
|
288
|
-
if (!(instance instanceof klass)) {
|
|
289
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____(arg0, arg1, arg2) {
|
|
293
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___js_sys_841a1ee50d21344a___Uint8Array_____(arg0, arg1, arg2);
|
|
294
|
-
}
|
|
295
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke______(arg0, arg1) {
|
|
296
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke______(arg0, arg1);
|
|
297
|
-
}
|
|
298
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2) {
|
|
299
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2);
|
|
300
|
-
}
|
|
301
|
-
function wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
302
|
-
wasm.wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(arg0, arg1, arg2, arg3);
|
|
303
|
-
}
|
|
304
|
-
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
305
|
-
const __wbindgen_enum_RtcIceConnectionState = [
|
|
306
|
-
"new",
|
|
307
|
-
"checking",
|
|
308
|
-
"connected",
|
|
309
|
-
"completed",
|
|
310
|
-
"failed",
|
|
311
|
-
"disconnected",
|
|
312
|
-
"closed",
|
|
313
|
-
];
|
|
314
|
-
const __wbindgen_enum_RtcSdpType = ["offer", "pranswer", "answer", "rollback"];
|
|
315
|
-
const __wbindgen_enum_RtcSignalingState = [
|
|
316
|
-
"stable",
|
|
317
|
-
"have-local-offer",
|
|
318
|
-
"have-remote-offer",
|
|
319
|
-
"have-local-pranswer",
|
|
320
|
-
"have-remote-pranswer",
|
|
321
|
-
"closed",
|
|
322
|
-
];
|
|
323
|
-
const BaseJSInterfaceFinalization = (typeof FinalizationRegistry === "undefined")
|
|
324
|
-
? { register: () => { }, unregister: () => { } }
|
|
325
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_basejsinterface_free(ptr >>> 0, 1));
|
|
326
|
-
export class BaseJSInterface {
|
|
327
|
-
__destroy_into_raw() {
|
|
328
|
-
const ptr = this.__wbg_ptr;
|
|
329
|
-
this.__wbg_ptr = 0;
|
|
330
|
-
BaseJSInterfaceFinalization.unregister(this);
|
|
331
|
-
return ptr;
|
|
332
|
-
}
|
|
333
|
-
free() {
|
|
334
|
-
const ptr = this.__destroy_into_raw();
|
|
335
|
-
wasm.__wbg_basejsinterface_free(ptr, 0);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
if (Symbol.dispose) {
|
|
339
|
-
BaseJSInterface.prototype[Symbol.dispose] = BaseJSInterface.prototype.free;
|
|
340
|
-
}
|
|
341
|
-
const JSComHubFinalization = (typeof FinalizationRegistry === "undefined")
|
|
342
|
-
? { register: () => { }, unregister: () => { } }
|
|
343
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
|
|
4
|
+
import * as dntShim from "../_dnt.shims.js";
|
|
344
5
|
export class JSComHub {
|
|
345
6
|
static __wrap(ptr) {
|
|
346
7
|
ptr = ptr >>> 0;
|
|
@@ -360,134 +21,22 @@ export class JSComHub {
|
|
|
360
21
|
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
361
22
|
}
|
|
362
23
|
/**
|
|
363
|
-
* @param {string}
|
|
364
|
-
* @param {
|
|
365
|
-
* @
|
|
366
|
-
|
|
367
|
-
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
368
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
|
-
const len0 = WASM_VECTOR_LEN;
|
|
370
|
-
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
371
|
-
const len1 = WASM_VECTOR_LEN;
|
|
372
|
-
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
373
|
-
return ret;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* @param {string} interface_uuid
|
|
377
|
-
* @returns {Promise<Uint8Array>}
|
|
378
|
-
*/
|
|
379
|
-
webrtc_interface_create_offer(interface_uuid) {
|
|
380
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
|
-
const len0 = WASM_VECTOR_LEN;
|
|
382
|
-
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
383
|
-
return ret;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* @param {string} interface_uuid
|
|
387
|
-
* @param {Uint8Array} offer
|
|
388
|
-
* @returns {Promise<Uint8Array>}
|
|
389
|
-
*/
|
|
390
|
-
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
391
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
|
-
const len0 = WASM_VECTOR_LEN;
|
|
393
|
-
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
394
|
-
const len1 = WASM_VECTOR_LEN;
|
|
395
|
-
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
396
|
-
return ret;
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* @param {string} interface_uuid
|
|
400
|
-
* @param {Uint8Array} candidate
|
|
401
|
-
* @returns {Promise<void>}
|
|
402
|
-
*/
|
|
403
|
-
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
404
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
405
|
-
const len0 = WASM_VECTOR_LEN;
|
|
406
|
-
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
407
|
-
const len1 = WASM_VECTOR_LEN;
|
|
408
|
-
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
409
|
-
return ret;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* @param {string} interface_uuid
|
|
413
|
-
* @returns {Promise<void>}
|
|
414
|
-
*/
|
|
415
|
-
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
416
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
417
|
-
const len0 = WASM_VECTOR_LEN;
|
|
418
|
-
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
419
|
-
return ret;
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Send a block to the given interface and socket
|
|
423
|
-
* This does not involve the routing on the ComHub level.
|
|
424
|
-
* The socket UUID is used to identify the socket to send the block over
|
|
425
|
-
* The interface UUID is used to identify the interface to send the block over
|
|
426
|
-
* @param {Uint8Array} block
|
|
427
|
-
* @param {string} interface_uuid
|
|
428
|
-
* @param {string} socket_uuid
|
|
429
|
-
* @returns {Promise<boolean>}
|
|
430
|
-
*/
|
|
431
|
-
send_block(block, interface_uuid, socket_uuid) {
|
|
432
|
-
const ptr0 = passArray8ToWasm0(block, wasm.__wbindgen_malloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ptr1 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
435
|
-
const len1 = WASM_VECTOR_LEN;
|
|
436
|
-
const ptr2 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
437
|
-
const len2 = WASM_VECTOR_LEN;
|
|
438
|
-
const ret = wasm.jscomhub_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
439
|
-
return ret;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* @param {string} endpoint
|
|
443
|
-
* @returns {Promise<string | undefined>}
|
|
444
|
-
*/
|
|
445
|
-
get_trace_string(endpoint) {
|
|
446
|
-
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
-
const len0 = WASM_VECTOR_LEN;
|
|
448
|
-
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
449
|
-
return ret;
|
|
450
|
-
}
|
|
451
|
-
/**
|
|
452
|
-
* @returns {Promise<void>}
|
|
453
|
-
*/
|
|
454
|
-
update() {
|
|
455
|
-
const ret = wasm.jscomhub_update(this.__wbg_ptr);
|
|
456
|
-
return ret;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* @param {string} interface_uuid
|
|
460
|
-
* @param {Function} on_ice_candidate
|
|
461
|
-
*/
|
|
462
|
-
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
463
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
464
|
-
const len0 = WASM_VECTOR_LEN;
|
|
465
|
-
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
466
|
-
if (ret[1]) {
|
|
467
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* @param {string} interface_uuid
|
|
472
|
-
* @returns {Promise<any>}
|
|
24
|
+
* @param {string} interface_type
|
|
25
|
+
* @param {any} setup_data
|
|
26
|
+
* @param {number | null} [priority]
|
|
27
|
+
* @returns {Promise<string>}
|
|
473
28
|
*/
|
|
474
|
-
|
|
475
|
-
const ptr0 = passStringToWasm0(
|
|
29
|
+
create_interface(interface_type, setup_data, priority) {
|
|
30
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
476
31
|
const len0 = WASM_VECTOR_LEN;
|
|
477
|
-
const ret = wasm.
|
|
32
|
+
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, setup_data, isLikeNone(priority) ? 0xFFFFFF : priority);
|
|
478
33
|
return ret;
|
|
479
34
|
}
|
|
480
35
|
/**
|
|
481
|
-
* @
|
|
482
|
-
* @param {string} properties
|
|
483
|
-
* @returns {Promise<any>}
|
|
36
|
+
* @returns {any}
|
|
484
37
|
*/
|
|
485
|
-
|
|
486
|
-
const
|
|
487
|
-
const len0 = WASM_VECTOR_LEN;
|
|
488
|
-
const ptr1 = passStringToWasm0(properties, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
|
-
const len1 = WASM_VECTOR_LEN;
|
|
490
|
-
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
38
|
+
get_metadata() {
|
|
39
|
+
const ret = wasm.jscomhub_get_metadata(this.__wbg_ptr);
|
|
491
40
|
return ret;
|
|
492
41
|
}
|
|
493
42
|
/**
|
|
@@ -507,151 +56,72 @@ export class JSComHub {
|
|
|
507
56
|
}
|
|
508
57
|
}
|
|
509
58
|
/**
|
|
510
|
-
* @
|
|
511
|
-
|
|
512
|
-
_drain_incoming_blocks() {
|
|
513
|
-
const ret = wasm.jscomhub__drain_incoming_blocks(this.__wbg_ptr);
|
|
514
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
515
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
516
|
-
return v1;
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* @param {Function} callback
|
|
520
|
-
*/
|
|
521
|
-
register_incoming_block_interceptor(callback) {
|
|
522
|
-
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* @param {Function} callback
|
|
526
|
-
*/
|
|
527
|
-
register_outgoing_block_interceptor(callback) {
|
|
528
|
-
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
529
|
-
}
|
|
530
|
-
register_default_interface_factories() {
|
|
531
|
-
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* @param {string} uuid
|
|
535
|
-
* @param {string} socket_uuid
|
|
536
|
-
* @param {Uint8Array} data
|
|
537
|
-
* @returns {Promise<boolean>}
|
|
59
|
+
* @param {string} endpoint
|
|
60
|
+
* @returns {Promise<any | undefined>}
|
|
538
61
|
*/
|
|
539
|
-
|
|
540
|
-
const ptr0 = passStringToWasm0(
|
|
62
|
+
get_trace(endpoint) {
|
|
63
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
541
64
|
const len0 = WASM_VECTOR_LEN;
|
|
542
|
-
const
|
|
543
|
-
const len1 = WASM_VECTOR_LEN;
|
|
544
|
-
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
545
|
-
const len2 = WASM_VECTOR_LEN;
|
|
546
|
-
const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
65
|
+
const ret = wasm.jscomhub_get_trace(this.__wbg_ptr, ptr0, len0);
|
|
547
66
|
return ret;
|
|
548
67
|
}
|
|
549
68
|
/**
|
|
550
|
-
* @param {string}
|
|
551
|
-
* @
|
|
69
|
+
* @param {string} endpoint
|
|
70
|
+
* @returns {Promise<string | undefined>}
|
|
552
71
|
*/
|
|
553
|
-
|
|
554
|
-
const ptr0 = passStringToWasm0(
|
|
72
|
+
get_trace_string(endpoint) {
|
|
73
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
74
|
const len0 = WASM_VECTOR_LEN;
|
|
556
|
-
const ret = wasm.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
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);
|
|
560
80
|
}
|
|
561
81
|
/**
|
|
562
|
-
* @param {
|
|
563
|
-
* @param {string} socket_uuid
|
|
564
|
-
* @param {Uint8Array} data
|
|
82
|
+
* @param {Function} callback
|
|
565
83
|
*/
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
const len0 = WASM_VECTOR_LEN;
|
|
569
|
-
const ptr1 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
|
-
const len1 = WASM_VECTOR_LEN;
|
|
571
|
-
const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
572
|
-
const len2 = WASM_VECTOR_LEN;
|
|
573
|
-
const ret = wasm.jscomhub_base_interface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
574
|
-
if (ret[1]) {
|
|
575
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
576
|
-
}
|
|
84
|
+
register_incoming_block_interceptor(callback) {
|
|
85
|
+
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
577
86
|
}
|
|
578
87
|
/**
|
|
579
|
-
* @param {string}
|
|
580
|
-
* @param {
|
|
88
|
+
* @param {string} interface_type
|
|
89
|
+
* @param {Function} factory
|
|
581
90
|
*/
|
|
582
|
-
|
|
583
|
-
const ptr0 = passStringToWasm0(
|
|
91
|
+
register_interface_factory(interface_type, factory) {
|
|
92
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
584
93
|
const len0 = WASM_VECTOR_LEN;
|
|
585
|
-
|
|
586
|
-
const len1 = WASM_VECTOR_LEN;
|
|
587
|
-
const ret = wasm.jscomhub_base_interface_destroy_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
588
|
-
if (ret[1]) {
|
|
589
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
590
|
-
}
|
|
94
|
+
wasm.jscomhub_register_interface_factory(this.__wbg_ptr, ptr0, len0, factory);
|
|
591
95
|
}
|
|
592
96
|
/**
|
|
593
|
-
* @param {
|
|
594
|
-
* @param {string} direction
|
|
595
|
-
* @returns {string}
|
|
97
|
+
* @param {Function} callback
|
|
596
98
|
*/
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
let deferred4_1;
|
|
600
|
-
try {
|
|
601
|
-
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
602
|
-
const len0 = WASM_VECTOR_LEN;
|
|
603
|
-
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
604
|
-
const len1 = WASM_VECTOR_LEN;
|
|
605
|
-
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
606
|
-
var ptr3 = ret[0];
|
|
607
|
-
var len3 = ret[1];
|
|
608
|
-
if (ret[3]) {
|
|
609
|
-
ptr3 = 0;
|
|
610
|
-
len3 = 0;
|
|
611
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
612
|
-
}
|
|
613
|
-
deferred4_0 = ptr3;
|
|
614
|
-
deferred4_1 = len3;
|
|
615
|
-
return getStringFromWasm0(ptr3, len3);
|
|
616
|
-
}
|
|
617
|
-
finally {
|
|
618
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
619
|
-
}
|
|
99
|
+
register_outgoing_block_interceptor(callback) {
|
|
100
|
+
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
620
101
|
}
|
|
621
102
|
/**
|
|
622
103
|
* @param {string} interface_uuid
|
|
623
|
-
* @
|
|
624
|
-
* @returns {string}
|
|
104
|
+
* @returns {Promise<void>}
|
|
625
105
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
deferred3_1 = len2;
|
|
642
|
-
return getStringFromWasm0(ptr2, len2);
|
|
643
|
-
}
|
|
644
|
-
finally {
|
|
645
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
646
|
-
}
|
|
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;
|
|
647
121
|
}
|
|
648
122
|
}
|
|
649
|
-
if (Symbol.dispose)
|
|
123
|
+
if (Symbol.dispose)
|
|
650
124
|
JSComHub.prototype[Symbol.dispose] = JSComHub.prototype.free;
|
|
651
|
-
}
|
|
652
|
-
const JSPointerFinalization = (typeof FinalizationRegistry === "undefined")
|
|
653
|
-
? { register: () => { }, unregister: () => { } }
|
|
654
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
655
125
|
export class JSPointer {
|
|
656
126
|
__destroy_into_raw() {
|
|
657
127
|
const ptr = this.__wbg_ptr;
|
|
@@ -664,12 +134,8 @@ export class JSPointer {
|
|
|
664
134
|
wasm.__wbg_jspointer_free(ptr, 0);
|
|
665
135
|
}
|
|
666
136
|
}
|
|
667
|
-
if (Symbol.dispose)
|
|
137
|
+
if (Symbol.dispose)
|
|
668
138
|
JSPointer.prototype[Symbol.dispose] = JSPointer.prototype.free;
|
|
669
|
-
}
|
|
670
|
-
const JSRuntimeFinalization = (typeof FinalizationRegistry === "undefined")
|
|
671
|
-
? { register: () => { }, unregister: () => { } }
|
|
672
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_jsruntime_free(ptr >>> 0, 1));
|
|
673
139
|
export class JSRuntime {
|
|
674
140
|
static __wrap(ptr) {
|
|
675
141
|
ptr = ptr >>> 0;
|
|
@@ -689,41 +155,57 @@ export class JSRuntime {
|
|
|
689
155
|
wasm.__wbg_jsruntime_free(ptr, 0);
|
|
690
156
|
}
|
|
691
157
|
/**
|
|
692
|
-
* @returns {
|
|
158
|
+
* @returns {JSComHub}
|
|
693
159
|
*/
|
|
694
|
-
|
|
695
|
-
const ret = wasm.
|
|
696
|
-
return ret;
|
|
160
|
+
get com_hub() {
|
|
161
|
+
const ret = wasm.__wbg_get_jsruntime_com_hub(this.__wbg_ptr);
|
|
162
|
+
return JSComHub.__wrap(ret);
|
|
697
163
|
}
|
|
698
164
|
/**
|
|
699
|
-
* @param {
|
|
700
|
-
* @param {
|
|
701
|
-
* @
|
|
702
|
-
* @returns {Promise<string>}
|
|
165
|
+
* @param {Uint8Array | null | undefined} body
|
|
166
|
+
* @param {string[]} receivers
|
|
167
|
+
* @returns {Uint8Array}
|
|
703
168
|
*/
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
var
|
|
711
|
-
|
|
712
|
-
return
|
|
169
|
+
_create_block(body, receivers) {
|
|
170
|
+
var ptr0 = isLikeNone(body) ? 0 : passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
171
|
+
var len0 = WASM_VECTOR_LEN;
|
|
172
|
+
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
173
|
+
const len1 = WASM_VECTOR_LEN;
|
|
174
|
+
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
175
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
176
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
177
|
+
return v3;
|
|
713
178
|
}
|
|
714
179
|
/**
|
|
715
|
-
* @returns {Promise<
|
|
180
|
+
* @returns {Promise<Promise<any>>}
|
|
716
181
|
*/
|
|
717
|
-
|
|
718
|
-
const ret = wasm.
|
|
182
|
+
crypto_test_tmp() {
|
|
183
|
+
const ret = wasm.jsruntime_crypto_test_tmp(this.__wbg_ptr);
|
|
719
184
|
return ret;
|
|
720
185
|
}
|
|
721
186
|
/**
|
|
722
|
-
*
|
|
187
|
+
* Get a handle to the DIF interface of the runtime
|
|
188
|
+
* @returns {RuntimeDIFHandle}
|
|
723
189
|
*/
|
|
724
|
-
|
|
725
|
-
const ret = wasm.
|
|
726
|
-
return ret;
|
|
190
|
+
dif() {
|
|
191
|
+
const ret = wasm.jsruntime_dif(this.__wbg_ptr);
|
|
192
|
+
return RuntimeDIFHandle.__wrap(ret);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @returns {string}
|
|
196
|
+
*/
|
|
197
|
+
get endpoint() {
|
|
198
|
+
let deferred1_0;
|
|
199
|
+
let deferred1_1;
|
|
200
|
+
try {
|
|
201
|
+
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
202
|
+
deferred1_0 = ret[0];
|
|
203
|
+
deferred1_1 = ret[1];
|
|
204
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
205
|
+
}
|
|
206
|
+
finally {
|
|
207
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
208
|
+
}
|
|
727
209
|
}
|
|
728
210
|
/**
|
|
729
211
|
* @param {string} script
|
|
@@ -733,28 +215,11 @@ export class JSRuntime {
|
|
|
733
215
|
execute(script, dif_values) {
|
|
734
216
|
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
735
217
|
const len0 = WASM_VECTOR_LEN;
|
|
736
|
-
var ptr1 = isLikeNone(dif_values)
|
|
737
|
-
? 0
|
|
738
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
218
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
739
219
|
var len1 = WASM_VECTOR_LEN;
|
|
740
220
|
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
741
221
|
return ret;
|
|
742
222
|
}
|
|
743
|
-
/**
|
|
744
|
-
* @returns {JSComHub}
|
|
745
|
-
*/
|
|
746
|
-
get com_hub() {
|
|
747
|
-
const ret = wasm.__wbg_get_jsruntime_com_hub(this.__wbg_ptr);
|
|
748
|
-
return JSComHub.__wrap(ret);
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* @param {JSComHub} arg0
|
|
752
|
-
*/
|
|
753
|
-
set com_hub(arg0) {
|
|
754
|
-
_assertClass(arg0, JSComHub);
|
|
755
|
-
var ptr0 = arg0.__destroy_into_raw();
|
|
756
|
-
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
757
|
-
}
|
|
758
223
|
/**
|
|
759
224
|
* @param {string} script
|
|
760
225
|
* @param {any[] | null} [dif_values]
|
|
@@ -763,9 +228,7 @@ export class JSRuntime {
|
|
|
763
228
|
execute_sync(script, dif_values) {
|
|
764
229
|
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
765
230
|
const len0 = WASM_VECTOR_LEN;
|
|
766
|
-
var ptr1 = isLikeNone(dif_values)
|
|
767
|
-
? 0
|
|
768
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
231
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
769
232
|
var len1 = WASM_VECTOR_LEN;
|
|
770
233
|
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
771
234
|
if (ret[2]) {
|
|
@@ -773,48 +236,6 @@ export class JSRuntime {
|
|
|
773
236
|
}
|
|
774
237
|
return takeFromExternrefTable0(ret[0]);
|
|
775
238
|
}
|
|
776
|
-
/**
|
|
777
|
-
* @param {Uint8Array | null | undefined} body
|
|
778
|
-
* @param {string[]} receivers
|
|
779
|
-
* @returns {Uint8Array}
|
|
780
|
-
*/
|
|
781
|
-
_create_block(body, receivers) {
|
|
782
|
-
var ptr0 = isLikeNone(body)
|
|
783
|
-
? 0
|
|
784
|
-
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
785
|
-
var len0 = WASM_VECTOR_LEN;
|
|
786
|
-
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
787
|
-
const len1 = WASM_VECTOR_LEN;
|
|
788
|
-
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
789
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
790
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
791
|
-
return v3;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @param {any} dif_value
|
|
795
|
-
* @param {any} decompile_options
|
|
796
|
-
* @returns {string}
|
|
797
|
-
*/
|
|
798
|
-
value_to_string(dif_value, decompile_options) {
|
|
799
|
-
let deferred2_0;
|
|
800
|
-
let deferred2_1;
|
|
801
|
-
try {
|
|
802
|
-
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
803
|
-
var ptr1 = ret[0];
|
|
804
|
-
var len1 = ret[1];
|
|
805
|
-
if (ret[3]) {
|
|
806
|
-
ptr1 = 0;
|
|
807
|
-
len1 = 0;
|
|
808
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
809
|
-
}
|
|
810
|
-
deferred2_0 = ptr1;
|
|
811
|
-
deferred2_1 = len1;
|
|
812
|
-
return getStringFromWasm0(ptr1, len1);
|
|
813
|
-
}
|
|
814
|
-
finally {
|
|
815
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
239
|
/**
|
|
819
240
|
* @param {string} script
|
|
820
241
|
* @param {any[] | null | undefined} dif_values
|
|
@@ -827,9 +248,7 @@ export class JSRuntime {
|
|
|
827
248
|
try {
|
|
828
249
|
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
829
250
|
const len0 = WASM_VECTOR_LEN;
|
|
830
|
-
var ptr1 = isLikeNone(dif_values)
|
|
831
|
-
? 0
|
|
832
|
-
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
251
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
833
252
|
var len1 = WASM_VECTOR_LEN;
|
|
834
253
|
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
835
254
|
var ptr3 = ret[0];
|
|
@@ -848,37 +267,61 @@ export class JSRuntime {
|
|
|
848
267
|
}
|
|
849
268
|
}
|
|
850
269
|
/**
|
|
851
|
-
*
|
|
852
|
-
* @
|
|
270
|
+
* @param {string} script
|
|
271
|
+
* @param {any[] | null | undefined} dif_values
|
|
272
|
+
* @param {any} decompile_options
|
|
273
|
+
* @returns {Promise<string>}
|
|
853
274
|
*/
|
|
854
|
-
|
|
855
|
-
const
|
|
856
|
-
|
|
275
|
+
execute_with_string_result(script, dif_values, decompile_options) {
|
|
276
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
277
|
+
const len0 = WASM_VECTOR_LEN;
|
|
278
|
+
var ptr1 = isLikeNone(dif_values) ? 0 : passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
279
|
+
var len1 = WASM_VECTOR_LEN;
|
|
280
|
+
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
281
|
+
return ret;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Start the LSP server, returning a JS function to send messages to Rust
|
|
285
|
+
* @param {Function} send_to_js
|
|
286
|
+
* @returns {Function}
|
|
287
|
+
*/
|
|
288
|
+
start_lsp(send_to_js) {
|
|
289
|
+
const ret = wasm.jsruntime_start_lsp(this.__wbg_ptr, send_to_js);
|
|
290
|
+
return ret;
|
|
857
291
|
}
|
|
858
292
|
/**
|
|
293
|
+
* @param {any} dif_value
|
|
294
|
+
* @param {any} decompile_options
|
|
859
295
|
* @returns {string}
|
|
860
296
|
*/
|
|
861
|
-
|
|
862
|
-
let
|
|
863
|
-
let
|
|
297
|
+
value_to_string(dif_value, decompile_options) {
|
|
298
|
+
let deferred2_0;
|
|
299
|
+
let deferred2_1;
|
|
864
300
|
try {
|
|
865
|
-
const ret = wasm.
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
301
|
+
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
302
|
+
var ptr1 = ret[0];
|
|
303
|
+
var len1 = ret[1];
|
|
304
|
+
if (ret[3]) {
|
|
305
|
+
ptr1 = 0;
|
|
306
|
+
len1 = 0;
|
|
307
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
308
|
+
}
|
|
309
|
+
deferred2_0 = ptr1;
|
|
310
|
+
deferred2_1 = len1;
|
|
311
|
+
return getStringFromWasm0(ptr1, len1);
|
|
869
312
|
}
|
|
870
313
|
finally {
|
|
871
|
-
wasm.__wbindgen_free(
|
|
314
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
872
315
|
}
|
|
873
316
|
}
|
|
874
317
|
/**
|
|
875
318
|
* @returns {string}
|
|
876
319
|
*/
|
|
877
|
-
get
|
|
320
|
+
get version() {
|
|
878
321
|
let deferred1_0;
|
|
879
322
|
let deferred1_1;
|
|
880
323
|
try {
|
|
881
|
-
const ret = wasm.
|
|
324
|
+
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
882
325
|
deferred1_0 = ret[0];
|
|
883
326
|
deferred1_1 = ret[1];
|
|
884
327
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -888,21 +331,16 @@ export class JSRuntime {
|
|
|
888
331
|
}
|
|
889
332
|
}
|
|
890
333
|
/**
|
|
891
|
-
*
|
|
892
|
-
* @param {Function} send_to_js
|
|
893
|
-
* @returns {Function}
|
|
334
|
+
* @param {JSComHub} arg0
|
|
894
335
|
*/
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
336
|
+
set com_hub(arg0) {
|
|
337
|
+
_assertClass(arg0, JSComHub);
|
|
338
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
339
|
+
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
898
340
|
}
|
|
899
341
|
}
|
|
900
|
-
if (Symbol.dispose)
|
|
342
|
+
if (Symbol.dispose)
|
|
901
343
|
JSRuntime.prototype[Symbol.dispose] = JSRuntime.prototype.free;
|
|
902
|
-
}
|
|
903
|
-
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === "undefined")
|
|
904
|
-
? { register: () => { }, unregister: () => { } }
|
|
905
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
906
344
|
export class RuntimeDIFHandle {
|
|
907
345
|
static __wrap(ptr) {
|
|
908
346
|
ptr = ptr >>> 0;
|
|
@@ -921,6 +359,18 @@ export class RuntimeDIFHandle {
|
|
|
921
359
|
const ptr = this.__destroy_into_raw();
|
|
922
360
|
wasm.__wbg_runtimedifhandle_free(ptr, 0);
|
|
923
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* @param {any} callee
|
|
364
|
+
* @param {any} value
|
|
365
|
+
* @returns {any}
|
|
366
|
+
*/
|
|
367
|
+
apply(callee, value) {
|
|
368
|
+
const ret = wasm.runtimedifhandle_apply(this.__wbg_ptr, callee, value);
|
|
369
|
+
if (ret[2]) {
|
|
370
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
371
|
+
}
|
|
372
|
+
return takeFromExternrefTable0(ret[0]);
|
|
373
|
+
}
|
|
924
374
|
/**
|
|
925
375
|
* @param {any} value
|
|
926
376
|
* @param {any} allowed_type
|
|
@@ -963,18 +413,6 @@ export class RuntimeDIFHandle {
|
|
|
963
413
|
}
|
|
964
414
|
return ret[0] >>> 0;
|
|
965
415
|
}
|
|
966
|
-
/**
|
|
967
|
-
* @param {string} address
|
|
968
|
-
* @param {number} observer_id
|
|
969
|
-
*/
|
|
970
|
-
unobserve_pointer(address, observer_id) {
|
|
971
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
972
|
-
const len0 = WASM_VECTOR_LEN;
|
|
973
|
-
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
974
|
-
if (ret[1]) {
|
|
975
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
416
|
/**
|
|
979
417
|
* Resolve a pointer address, returning a Promise
|
|
980
418
|
* If the pointer is in memory, the promise resolves immediately
|
|
@@ -991,19 +429,6 @@ export class RuntimeDIFHandle {
|
|
|
991
429
|
}
|
|
992
430
|
return takeFromExternrefTable0(ret[0]);
|
|
993
431
|
}
|
|
994
|
-
/**
|
|
995
|
-
* @param {string} address
|
|
996
|
-
* @param {number} observer_id
|
|
997
|
-
* @param {any} observe_options
|
|
998
|
-
*/
|
|
999
|
-
update_observer_options(address, observer_id, observe_options) {
|
|
1000
|
-
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1001
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1002
|
-
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
1003
|
-
if (ret[1]) {
|
|
1004
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
432
|
/**
|
|
1008
433
|
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
1009
434
|
* @param {string} address
|
|
@@ -1019,16 +444,16 @@ export class RuntimeDIFHandle {
|
|
|
1019
444
|
return takeFromExternrefTable0(ret[0]);
|
|
1020
445
|
}
|
|
1021
446
|
/**
|
|
1022
|
-
* @param {
|
|
1023
|
-
* @param {
|
|
1024
|
-
* @returns {any}
|
|
447
|
+
* @param {string} address
|
|
448
|
+
* @param {number} observer_id
|
|
1025
449
|
*/
|
|
1026
|
-
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1029
|
-
|
|
450
|
+
unobserve_pointer(address, observer_id) {
|
|
451
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
452
|
+
const len0 = WASM_VECTOR_LEN;
|
|
453
|
+
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
454
|
+
if (ret[1]) {
|
|
455
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1030
456
|
}
|
|
1031
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1032
457
|
}
|
|
1033
458
|
/**
|
|
1034
459
|
* @param {number} transceiver_id
|
|
@@ -1043,253 +468,248 @@ export class RuntimeDIFHandle {
|
|
|
1043
468
|
throw takeFromExternrefTable0(ret[0]);
|
|
1044
469
|
}
|
|
1045
470
|
}
|
|
1046
|
-
}
|
|
1047
|
-
if (Symbol.dispose) {
|
|
1048
|
-
RuntimeDIFHandle.prototype[Symbol.dispose] =
|
|
1049
|
-
RuntimeDIFHandle.prototype.free;
|
|
1050
|
-
}
|
|
1051
|
-
const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
1052
|
-
? { register: () => { }, unregister: () => { } }
|
|
1053
|
-
: new FinalizationRegistry((ptr) => wasm.__wbg_websocketserverregistry_free(ptr >>> 0, 1));
|
|
1054
|
-
export class WebSocketServerRegistry {
|
|
1055
|
-
__destroy_into_raw() {
|
|
1056
|
-
const ptr = this.__wbg_ptr;
|
|
1057
|
-
this.__wbg_ptr = 0;
|
|
1058
|
-
WebSocketServerRegistryFinalization.unregister(this);
|
|
1059
|
-
return ptr;
|
|
1060
|
-
}
|
|
1061
|
-
free() {
|
|
1062
|
-
const ptr = this.__destroy_into_raw();
|
|
1063
|
-
wasm.__wbg_websocketserverregistry_free(ptr, 0);
|
|
1064
|
-
}
|
|
1065
471
|
/**
|
|
1066
|
-
* @param {string}
|
|
1067
|
-
* @
|
|
472
|
+
* @param {string} address
|
|
473
|
+
* @param {number} observer_id
|
|
474
|
+
* @param {any} observe_options
|
|
1068
475
|
*/
|
|
1069
|
-
|
|
1070
|
-
const ptr0 = passStringToWasm0(
|
|
476
|
+
update_observer_options(address, observer_id, observe_options) {
|
|
477
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1071
478
|
const len0 = WASM_VECTOR_LEN;
|
|
1072
|
-
const ret = wasm.
|
|
1073
|
-
|
|
479
|
+
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
480
|
+
if (ret[1]) {
|
|
481
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
if (Symbol.dispose)
|
|
486
|
+
RuntimeDIFHandle.prototype[Symbol.dispose] = RuntimeDIFHandle.prototype.free;
|
|
487
|
+
/**
|
|
488
|
+
* @param {any} config
|
|
489
|
+
* @param {any} debug_config
|
|
490
|
+
* @returns {Promise<JSRuntime>}
|
|
491
|
+
*/
|
|
492
|
+
export function create_runtime(config, debug_config) {
|
|
493
|
+
const ret = wasm.create_runtime(config, debug_config);
|
|
494
|
+
return ret;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Executes a Datex script and returns the result as a string.
|
|
498
|
+
* @param {string} datex_script
|
|
499
|
+
* @param {any} decompile_options
|
|
500
|
+
* @returns {string}
|
|
501
|
+
*/
|
|
502
|
+
export function execute(datex_script, decompile_options) {
|
|
503
|
+
let deferred2_0;
|
|
504
|
+
let deferred2_1;
|
|
505
|
+
try {
|
|
506
|
+
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
507
|
+
const len0 = WASM_VECTOR_LEN;
|
|
508
|
+
const ret = wasm.execute(ptr0, len0, decompile_options);
|
|
509
|
+
deferred2_0 = ret[0];
|
|
510
|
+
deferred2_1 = ret[1];
|
|
511
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
512
|
+
}
|
|
513
|
+
finally {
|
|
514
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1074
515
|
}
|
|
1075
516
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
517
|
+
/**
|
|
518
|
+
* Executes a Datex script and returns true when execution was successful.
|
|
519
|
+
* Does not return the result of the script, but only indicates success or failure.
|
|
520
|
+
* @param {string} datex_script
|
|
521
|
+
* @returns {boolean}
|
|
522
|
+
*/
|
|
523
|
+
export function execute_internal(datex_script) {
|
|
524
|
+
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
525
|
+
const len0 = WASM_VECTOR_LEN;
|
|
526
|
+
const ret = wasm.execute_internal(ptr0, len0);
|
|
527
|
+
return ret !== 0;
|
|
1079
528
|
}
|
|
1080
|
-
export function
|
|
529
|
+
export function __wbg_Error_dbcd8782dbb273a2(arg0, arg1) {
|
|
1081
530
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1082
531
|
return ret;
|
|
1083
532
|
}
|
|
1084
|
-
export function
|
|
533
|
+
export function __wbg_Number_012552ac4683228d(arg0) {
|
|
1085
534
|
const ret = Number(arg0);
|
|
1086
535
|
return ret;
|
|
1087
536
|
}
|
|
1088
|
-
export function
|
|
537
|
+
export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
1089
538
|
const ret = String(arg1);
|
|
1090
539
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1091
540
|
const len1 = WASM_VECTOR_LEN;
|
|
1092
541
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1093
542
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1094
543
|
}
|
|
1095
|
-
export function
|
|
544
|
+
export function __wbg___wbindgen_bigint_get_as_i64_25c638f64ce0e2e0(arg0, arg1) {
|
|
1096
545
|
const v = arg1;
|
|
1097
|
-
const ret = typeof v ===
|
|
546
|
+
const ret = typeof (v) === 'bigint' ? v : undefined;
|
|
1098
547
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1099
548
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1100
549
|
}
|
|
1101
|
-
export function
|
|
550
|
+
export function __wbg___wbindgen_boolean_get_7f1c4dd217655ab6(arg0) {
|
|
1102
551
|
const v = arg0;
|
|
1103
|
-
const ret = typeof v ===
|
|
552
|
+
const ret = typeof (v) === 'boolean' ? v : undefined;
|
|
1104
553
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1105
554
|
}
|
|
1106
|
-
export function
|
|
555
|
+
export function __wbg___wbindgen_debug_string_6cf0badf0b90f6ef(arg0, arg1) {
|
|
1107
556
|
const ret = debugString(arg1);
|
|
1108
557
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1109
558
|
const len1 = WASM_VECTOR_LEN;
|
|
1110
559
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1111
560
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1112
561
|
}
|
|
1113
|
-
export function
|
|
562
|
+
export function __wbg___wbindgen_in_e32cbbbf71fdc915(arg0, arg1) {
|
|
1114
563
|
const ret = arg0 in arg1;
|
|
1115
564
|
return ret;
|
|
1116
565
|
}
|
|
1117
|
-
export function
|
|
1118
|
-
const ret = typeof arg0 ===
|
|
566
|
+
export function __wbg___wbindgen_is_bigint_95f22c948ca1bbe1(arg0) {
|
|
567
|
+
const ret = typeof (arg0) === 'bigint';
|
|
1119
568
|
return ret;
|
|
1120
569
|
}
|
|
1121
|
-
export function
|
|
1122
|
-
const ret = typeof arg0 ===
|
|
570
|
+
export function __wbg___wbindgen_is_function_4500d4795b15e70b(arg0) {
|
|
571
|
+
const ret = typeof (arg0) === 'function';
|
|
1123
572
|
return ret;
|
|
1124
573
|
}
|
|
1125
|
-
export function
|
|
574
|
+
export function __wbg___wbindgen_is_null_5467e07e008308e7(arg0) {
|
|
1126
575
|
const ret = arg0 === null;
|
|
1127
576
|
return ret;
|
|
1128
577
|
}
|
|
1129
|
-
export function
|
|
578
|
+
export function __wbg___wbindgen_is_object_f8b6723c60349a13(arg0) {
|
|
1130
579
|
const val = arg0;
|
|
1131
|
-
const ret = typeof val ===
|
|
580
|
+
const ret = typeof (val) === 'object' && val !== null;
|
|
1132
581
|
return ret;
|
|
1133
582
|
}
|
|
1134
|
-
export function
|
|
1135
|
-
const ret = typeof arg0 ===
|
|
583
|
+
export function __wbg___wbindgen_is_string_89134e23eba104e4(arg0) {
|
|
584
|
+
const ret = typeof (arg0) === 'string';
|
|
1136
585
|
return ret;
|
|
1137
586
|
}
|
|
1138
|
-
export function
|
|
587
|
+
export function __wbg___wbindgen_is_undefined_1296fcc83c2da07a(arg0) {
|
|
1139
588
|
const ret = arg0 === undefined;
|
|
1140
589
|
return ret;
|
|
1141
590
|
}
|
|
1142
|
-
export function
|
|
591
|
+
export function __wbg___wbindgen_jsval_eq_39cab0b49f8188e9(arg0, arg1) {
|
|
1143
592
|
const ret = arg0 === arg1;
|
|
1144
593
|
return ret;
|
|
1145
594
|
}
|
|
1146
|
-
export function
|
|
595
|
+
export function __wbg___wbindgen_jsval_loose_eq_3173dea557396a92(arg0, arg1) {
|
|
1147
596
|
const ret = arg0 == arg1;
|
|
1148
597
|
return ret;
|
|
1149
598
|
}
|
|
1150
|
-
export function
|
|
599
|
+
export function __wbg___wbindgen_number_get_3330675b4e5c3680(arg0, arg1) {
|
|
1151
600
|
const obj = arg1;
|
|
1152
|
-
const ret = typeof obj ===
|
|
601
|
+
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
1153
602
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1154
603
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1155
604
|
}
|
|
1156
|
-
export function
|
|
605
|
+
export function __wbg___wbindgen_string_get_7b8bc463f6cbeefe(arg0, arg1) {
|
|
1157
606
|
const obj = arg1;
|
|
1158
|
-
const ret = typeof obj ===
|
|
1159
|
-
var ptr1 = isLikeNone(ret)
|
|
1160
|
-
? 0
|
|
1161
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
607
|
+
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
608
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1162
609
|
var len1 = WASM_VECTOR_LEN;
|
|
1163
610
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1164
611
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1165
612
|
}
|
|
1166
|
-
export function
|
|
613
|
+
export function __wbg___wbindgen_throw_89ca9e2c67795ec1(arg0, arg1) {
|
|
1167
614
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1168
615
|
}
|
|
1169
|
-
export function
|
|
616
|
+
export function __wbg__wbg_cb_unref_f00ff3c6385bd6fa(arg0) {
|
|
1170
617
|
arg0._wbg_cb_unref();
|
|
1171
618
|
}
|
|
1172
|
-
export function
|
|
1173
|
-
const ret = arg0.addIceCandidate(arg1);
|
|
1174
|
-
return ret;
|
|
1175
|
-
}
|
|
1176
|
-
export function __wbg_buffer_ccc4520b36d3ccf4(arg0) {
|
|
619
|
+
export function __wbg_buffer_bfc0004d8d490b64(arg0) {
|
|
1177
620
|
const ret = arg0.buffer;
|
|
1178
621
|
return ret;
|
|
1179
622
|
}
|
|
1180
|
-
export function
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
return ret;
|
|
1184
|
-
}, arguments);
|
|
623
|
+
export function __wbg_byteLength_bf98fbeb47223e5a(arg0) {
|
|
624
|
+
const ret = arg0.byteLength;
|
|
625
|
+
return ret;
|
|
1185
626
|
}
|
|
1186
|
-
export function
|
|
627
|
+
export function __wbg_call_3eadb5cea0462653() {
|
|
1187
628
|
return handleError(function (arg0, arg1, arg2) {
|
|
1188
629
|
const ret = arg0.call(arg1, arg2);
|
|
1189
630
|
return ret;
|
|
1190
631
|
}, arguments);
|
|
1191
632
|
}
|
|
1192
|
-
export function
|
|
633
|
+
export function __wbg_call_9ff23202a8e4c398() {
|
|
1193
634
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1194
635
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1195
636
|
return ret;
|
|
1196
637
|
}, arguments);
|
|
1197
638
|
}
|
|
1198
|
-
export function
|
|
639
|
+
export function __wbg_call_dcf4c86f489d6628() {
|
|
640
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
641
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
642
|
+
return ret;
|
|
643
|
+
}, arguments);
|
|
644
|
+
}
|
|
645
|
+
export function __wbg_call_eb691bc2f5533064() {
|
|
1199
646
|
return handleError(function (arg0, arg1) {
|
|
1200
647
|
const ret = arg0.call(arg1);
|
|
1201
648
|
return ret;
|
|
1202
649
|
}, arguments);
|
|
1203
650
|
}
|
|
1204
|
-
export function
|
|
1205
|
-
const ret =
|
|
1206
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1207
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1208
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1209
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1210
|
-
}
|
|
1211
|
-
export function __wbg_candidate_5f937d1d65e47c01(arg0) {
|
|
1212
|
-
const ret = arg0.candidate;
|
|
1213
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1214
|
-
}
|
|
1215
|
-
export function __wbg_channel_592ae18783344afb(arg0) {
|
|
1216
|
-
const ret = arg0.channel;
|
|
651
|
+
export function __wbg_cancel_ab703655e38608f0(arg0) {
|
|
652
|
+
const ret = arg0.cancel();
|
|
1217
653
|
return ret;
|
|
1218
654
|
}
|
|
1219
|
-
export function
|
|
655
|
+
export function __wbg_clearTimeout_113b1cde814ec762(arg0) {
|
|
1220
656
|
const ret = clearTimeout(arg0);
|
|
1221
657
|
return ret;
|
|
1222
658
|
}
|
|
1223
|
-
export function
|
|
1224
|
-
const ret = arg0.close();
|
|
1225
|
-
return ret;
|
|
1226
|
-
}
|
|
1227
|
-
export function __wbg_close_885e277edf06b3fa() {
|
|
659
|
+
export function __wbg_close_ac58aa253ae5c164() {
|
|
1228
660
|
return handleError(function (arg0) {
|
|
1229
661
|
arg0.close();
|
|
1230
662
|
}, arguments);
|
|
1231
663
|
}
|
|
1232
|
-
export function
|
|
1233
|
-
arg0.close();
|
|
1234
|
-
}
|
|
1235
|
-
export function __wbg_createAnswer_572b7c1578f68a31(arg0) {
|
|
1236
|
-
const ret = arg0.createAnswer();
|
|
1237
|
-
return ret;
|
|
1238
|
-
}
|
|
1239
|
-
export function __wbg_createDataChannel_2c80fcae96c3f118(arg0, arg1, arg2) {
|
|
1240
|
-
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
1241
|
-
return ret;
|
|
1242
|
-
}
|
|
1243
|
-
export function __wbg_createOffer_f0003c393c14496b(arg0) {
|
|
1244
|
-
const ret = arg0.createOffer();
|
|
1245
|
-
return ret;
|
|
1246
|
-
}
|
|
1247
|
-
export function __wbg_crypto_f5dce82c355d159f() {
|
|
664
|
+
export function __wbg_crypto_15952a660f6c42f9() {
|
|
1248
665
|
return handleError(function (arg0) {
|
|
1249
666
|
const ret = arg0.crypto;
|
|
1250
667
|
return ret;
|
|
1251
668
|
}, arguments);
|
|
1252
669
|
}
|
|
1253
|
-
export function
|
|
670
|
+
export function __wbg_data_946ee98fc7c8524e(arg0) {
|
|
1254
671
|
const ret = arg0.data;
|
|
1255
672
|
return ret;
|
|
1256
673
|
}
|
|
1257
|
-
export function
|
|
1258
|
-
console.debug(arg0);
|
|
674
|
+
export function __wbg_debug_bc486fe1782a2e20(arg0, arg1, arg2, arg3) {
|
|
675
|
+
console.debug(arg0, arg1, arg2, arg3);
|
|
1259
676
|
}
|
|
1260
|
-
export function
|
|
677
|
+
export function __wbg_decrypt_fb3df4e7108c7af8() {
|
|
1261
678
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1262
679
|
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
1263
680
|
return ret;
|
|
1264
681
|
}, arguments);
|
|
1265
682
|
}
|
|
1266
|
-
export function
|
|
683
|
+
export function __wbg_deriveBits_babd864f24c26510() {
|
|
1267
684
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1268
685
|
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
1269
686
|
return ret;
|
|
1270
687
|
}, arguments);
|
|
1271
688
|
}
|
|
1272
|
-
export function
|
|
689
|
+
export function __wbg_digest_68cb89b17e4a5dc4() {
|
|
1273
690
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1274
691
|
const ret = arg0.digest(arg1, getArrayU8FromWasm0(arg2, arg3));
|
|
1275
692
|
return ret;
|
|
1276
693
|
}, arguments);
|
|
1277
694
|
}
|
|
1278
|
-
export function
|
|
695
|
+
export function __wbg_done_82b14aeb31e98db6(arg0) {
|
|
1279
696
|
const ret = arg0.done;
|
|
1280
697
|
return ret;
|
|
1281
698
|
}
|
|
1282
|
-
export function
|
|
699
|
+
export function __wbg_encrypt_2fe1a4fe781e4500() {
|
|
1283
700
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1284
701
|
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
1285
702
|
return ret;
|
|
1286
703
|
}, arguments);
|
|
1287
704
|
}
|
|
1288
|
-
export function
|
|
705
|
+
export function __wbg_entries_46c64fadfaa3b525(arg0) {
|
|
1289
706
|
const ret = Object.entries(arg0);
|
|
1290
707
|
return ret;
|
|
1291
708
|
}
|
|
1292
|
-
export function
|
|
709
|
+
export function __wbg_error_6df093442af96598(arg0, arg1, arg2, arg3) {
|
|
710
|
+
console.error(arg0, arg1, arg2, arg3);
|
|
711
|
+
}
|
|
712
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
1293
713
|
let deferred0_0;
|
|
1294
714
|
let deferred0_1;
|
|
1295
715
|
try {
|
|
@@ -1301,73 +721,87 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
1301
721
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1302
722
|
}
|
|
1303
723
|
}
|
|
1304
|
-
export function
|
|
724
|
+
export function __wbg_error_d0b9fd88b7a19297(arg0) {
|
|
1305
725
|
console.error(arg0);
|
|
1306
726
|
}
|
|
1307
|
-
export function
|
|
727
|
+
export function __wbg_exportKey_888238fed76b1d57() {
|
|
1308
728
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1309
729
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
1310
730
|
return ret;
|
|
1311
731
|
}, arguments);
|
|
1312
732
|
}
|
|
1313
|
-
export function
|
|
733
|
+
export function __wbg_generateKey_cacf6d919231a631() {
|
|
1314
734
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1315
735
|
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
1316
736
|
return ret;
|
|
1317
737
|
}, arguments);
|
|
1318
738
|
}
|
|
1319
|
-
export function
|
|
739
|
+
export function __wbg_getRandomValues_1fcaec8b7b47660c() {
|
|
1320
740
|
return handleError(function (arg0, arg1, arg2) {
|
|
1321
741
|
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
1322
742
|
return ret;
|
|
1323
743
|
}, arguments);
|
|
1324
744
|
}
|
|
1325
|
-
export function
|
|
745
|
+
export function __wbg_getReader_c1c7b71406750f3a(arg0) {
|
|
1326
746
|
const ret = arg0.getReader();
|
|
1327
747
|
return ret;
|
|
1328
748
|
}
|
|
1329
|
-
export function
|
|
749
|
+
export function __wbg_getWriter_b14ed7011222629c() {
|
|
1330
750
|
return handleError(function (arg0) {
|
|
1331
751
|
const ret = arg0.getWriter();
|
|
1332
752
|
return ret;
|
|
1333
753
|
}, arguments);
|
|
1334
754
|
}
|
|
1335
|
-
export function
|
|
755
|
+
export function __wbg_get_229657ec2da079cd(arg0, arg1) {
|
|
1336
756
|
const ret = arg0[arg1 >>> 0];
|
|
1337
757
|
return ret;
|
|
1338
758
|
}
|
|
1339
|
-
export function
|
|
759
|
+
export function __wbg_get_89f3a4c398b4872e() {
|
|
760
|
+
return handleError(function (arg0, arg1) {
|
|
761
|
+
const ret = Reflect.get(arg0, arg1);
|
|
762
|
+
return ret;
|
|
763
|
+
}, arguments);
|
|
764
|
+
}
|
|
765
|
+
export function __wbg_get_done_c355ff5cc3338368(arg0) {
|
|
766
|
+
const ret = arg0.done;
|
|
767
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
768
|
+
}
|
|
769
|
+
export function __wbg_get_ed44f5f876f22351() {
|
|
1340
770
|
return handleError(function (arg0, arg1) {
|
|
1341
771
|
const ret = Reflect.get(arg0, arg1);
|
|
1342
772
|
return ret;
|
|
1343
773
|
}, arguments);
|
|
1344
774
|
}
|
|
1345
|
-
export function
|
|
775
|
+
export function __wbg_get_private_key_86d9a3716e61a11a(arg0) {
|
|
1346
776
|
const ret = arg0.privateKey;
|
|
1347
777
|
return ret;
|
|
1348
778
|
}
|
|
1349
|
-
export function
|
|
779
|
+
export function __wbg_get_public_key_0e3517f984bc9ce7(arg0) {
|
|
1350
780
|
const ret = arg0.publicKey;
|
|
1351
781
|
return ret;
|
|
1352
782
|
}
|
|
1353
|
-
export function
|
|
1354
|
-
const ret = arg0[arg1];
|
|
783
|
+
export function __wbg_get_unchecked_ae4d1600970be7c3(arg0, arg1) {
|
|
784
|
+
const ret = arg0[arg1 >>> 0];
|
|
785
|
+
return ret;
|
|
786
|
+
}
|
|
787
|
+
export function __wbg_get_value_e7da3dda29ab004c(arg0) {
|
|
788
|
+
const ret = arg0.value;
|
|
1355
789
|
return ret;
|
|
1356
790
|
}
|
|
1357
|
-
export function
|
|
1358
|
-
const ret = arg0
|
|
1359
|
-
return
|
|
791
|
+
export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
792
|
+
const ret = arg0[arg1];
|
|
793
|
+
return ret;
|
|
1360
794
|
}
|
|
1361
|
-
export function
|
|
795
|
+
export function __wbg_importKey_d5d98bc5f7c574a9() {
|
|
1362
796
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1363
797
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
1364
798
|
return ret;
|
|
1365
799
|
}, arguments);
|
|
1366
800
|
}
|
|
1367
|
-
export function
|
|
1368
|
-
console.info(arg0);
|
|
801
|
+
export function __wbg_info_3fd9a89e2dc8aaf1(arg0, arg1, arg2, arg3) {
|
|
802
|
+
console.info(arg0, arg1, arg2, arg3);
|
|
1369
803
|
}
|
|
1370
|
-
export function
|
|
804
|
+
export function __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d(arg0) {
|
|
1371
805
|
let result;
|
|
1372
806
|
try {
|
|
1373
807
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1378,7 +812,7 @@ export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
|
|
|
1378
812
|
const ret = result;
|
|
1379
813
|
return ret;
|
|
1380
814
|
}
|
|
1381
|
-
export function
|
|
815
|
+
export function __wbg_instanceof_CryptoKey_f4419e1bcb5414ed(arg0) {
|
|
1382
816
|
let result;
|
|
1383
817
|
try {
|
|
1384
818
|
result = arg0 instanceof CryptoKey;
|
|
@@ -1389,7 +823,7 @@ export function __wbg_instanceof_CryptoKey_9fbbefded7590b8c(arg0) {
|
|
|
1389
823
|
const ret = result;
|
|
1390
824
|
return ret;
|
|
1391
825
|
}
|
|
1392
|
-
export function
|
|
826
|
+
export function __wbg_instanceof_Map_3ad422261e078a42(arg0) {
|
|
1393
827
|
let result;
|
|
1394
828
|
try {
|
|
1395
829
|
result = arg0 instanceof Map;
|
|
@@ -1400,7 +834,7 @@ export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
|
|
|
1400
834
|
const ret = result;
|
|
1401
835
|
return ret;
|
|
1402
836
|
}
|
|
1403
|
-
export function
|
|
837
|
+
export function __wbg_instanceof_Object_4ac1098d06a01a38(arg0) {
|
|
1404
838
|
let result;
|
|
1405
839
|
try {
|
|
1406
840
|
result = arg0 instanceof Object;
|
|
@@ -1411,7 +845,7 @@ export function __wbg_instanceof_Object_10bb762262230c68(arg0) {
|
|
|
1411
845
|
const ret = result;
|
|
1412
846
|
return ret;
|
|
1413
847
|
}
|
|
1414
|
-
export function
|
|
848
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_251c05d2f717b795(arg0) {
|
|
1415
849
|
let result;
|
|
1416
850
|
try {
|
|
1417
851
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -1422,7 +856,7 @@ export function __wbg_instanceof_ReadableStreamDefaultReader_33a4601dd218c69d(ar
|
|
|
1422
856
|
const ret = result;
|
|
1423
857
|
return ret;
|
|
1424
858
|
}
|
|
1425
|
-
export function
|
|
859
|
+
export function __wbg_instanceof_Uint8Array_6482c66fce35827d(arg0) {
|
|
1426
860
|
let result;
|
|
1427
861
|
try {
|
|
1428
862
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1433,7 +867,7 @@ export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
|
|
|
1433
867
|
const ret = result;
|
|
1434
868
|
return ret;
|
|
1435
869
|
}
|
|
1436
|
-
export function
|
|
870
|
+
export function __wbg_instanceof_Window_27a653e1b516dd65(arg0) {
|
|
1437
871
|
let result;
|
|
1438
872
|
try {
|
|
1439
873
|
result = arg0 instanceof Window;
|
|
@@ -1444,452 +878,363 @@ export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0) {
|
|
|
1444
878
|
const ret = result;
|
|
1445
879
|
return ret;
|
|
1446
880
|
}
|
|
1447
|
-
export function
|
|
881
|
+
export function __wbg_isArray_fe5201bfdab7e39d(arg0) {
|
|
1448
882
|
const ret = Array.isArray(arg0);
|
|
1449
883
|
return ret;
|
|
1450
884
|
}
|
|
1451
|
-
export function
|
|
885
|
+
export function __wbg_isSafeInteger_d6215c7562dbc4db(arg0) {
|
|
1452
886
|
const ret = Number.isSafeInteger(arg0);
|
|
1453
887
|
return ret;
|
|
1454
888
|
}
|
|
1455
|
-
export function
|
|
889
|
+
export function __wbg_iterator_63c3a1857203cf2f() {
|
|
1456
890
|
const ret = Symbol.iterator;
|
|
1457
891
|
return ret;
|
|
1458
892
|
}
|
|
1459
|
-
export function
|
|
1460
|
-
const ret =
|
|
1461
|
-
|
|
1462
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1463
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1464
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
893
|
+
export function __wbg_jsruntime_new(arg0) {
|
|
894
|
+
const ret = JSRuntime.__wrap(arg0);
|
|
895
|
+
return ret;
|
|
1465
896
|
}
|
|
1466
|
-
export function
|
|
897
|
+
export function __wbg_length_f875d3a041bab91a(arg0) {
|
|
1467
898
|
const ret = arg0.length;
|
|
1468
899
|
return ret;
|
|
1469
900
|
}
|
|
1470
|
-
export function
|
|
901
|
+
export function __wbg_length_feaf2a40e5f9755a(arg0) {
|
|
1471
902
|
const ret = arg0.length;
|
|
1472
903
|
return ret;
|
|
1473
904
|
}
|
|
1474
|
-
export function
|
|
1475
|
-
console.log(arg0);
|
|
905
|
+
export function __wbg_log_876289592910878f(arg0, arg1, arg2, arg3) {
|
|
906
|
+
console.log(arg0, arg1, arg2, arg3);
|
|
1476
907
|
}
|
|
1477
|
-
export function
|
|
1478
|
-
const ret = arg1.message;
|
|
1479
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1480
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1481
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1482
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1483
|
-
}
|
|
1484
|
-
export function __wbg_navigator_971384882e8ea23a(arg0) {
|
|
908
|
+
export function __wbg_navigator_373a54253e4475fb(arg0) {
|
|
1485
909
|
const ret = arg0.navigator;
|
|
1486
910
|
return ret;
|
|
1487
911
|
}
|
|
1488
|
-
export function
|
|
1489
|
-
const ret = new
|
|
912
|
+
export function __wbg_new_227d7c05414eb861() {
|
|
913
|
+
const ret = new Error();
|
|
1490
914
|
return ret;
|
|
1491
915
|
}
|
|
1492
|
-
export function
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
var cb0 = (arg0, arg1) => {
|
|
1496
|
-
const a = state0.a;
|
|
1497
|
-
state0.a = 0;
|
|
1498
|
-
try {
|
|
1499
|
-
return wasm_bindgen_540158e61e0ad4e1___convert__closures_____invoke___wasm_bindgen_540158e61e0ad4e1___JsValue__wasm_bindgen_540158e61e0ad4e1___JsValue_____(a, state0.b, arg0, arg1);
|
|
1500
|
-
}
|
|
1501
|
-
finally {
|
|
1502
|
-
state0.a = a;
|
|
1503
|
-
}
|
|
1504
|
-
};
|
|
1505
|
-
const ret = new Promise(cb0);
|
|
1506
|
-
return ret;
|
|
1507
|
-
}
|
|
1508
|
-
finally {
|
|
1509
|
-
state0.a = state0.b = 0;
|
|
1510
|
-
}
|
|
916
|
+
export function __wbg_new_5947ca72f3fee3e6() {
|
|
917
|
+
const ret = new Map();
|
|
918
|
+
return ret;
|
|
1511
919
|
}
|
|
1512
|
-
export function
|
|
920
|
+
export function __wbg_new_6e7681a5f6f98ceb(arg0) {
|
|
1513
921
|
const ret = new Uint8Array(arg0);
|
|
1514
922
|
return ret;
|
|
1515
923
|
}
|
|
1516
|
-
export function
|
|
1517
|
-
const ret = new
|
|
924
|
+
export function __wbg_new_6feff3e11e4d0799() {
|
|
925
|
+
const ret = new Object();
|
|
1518
926
|
return ret;
|
|
1519
927
|
}
|
|
1520
|
-
export function
|
|
928
|
+
export function __wbg_new_c6862560cccd12ba() {
|
|
1521
929
|
return handleError(function (arg0, arg1) {
|
|
1522
930
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1523
931
|
return ret;
|
|
1524
932
|
}, arguments);
|
|
1525
933
|
}
|
|
1526
|
-
export function
|
|
1527
|
-
const ret = new Error();
|
|
1528
|
-
return ret;
|
|
1529
|
-
}
|
|
1530
|
-
export function __wbg_new_e17d9f43105b08be() {
|
|
934
|
+
export function __wbg_new_ff7f9cc4c9a4a0cf() {
|
|
1531
935
|
const ret = new Array();
|
|
1532
936
|
return ret;
|
|
1533
937
|
}
|
|
1534
|
-
export function
|
|
938
|
+
export function __wbg_new_from_slice_a5be53238f31f9f7(arg0, arg1) {
|
|
1535
939
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1536
940
|
return ret;
|
|
1537
941
|
}
|
|
1538
|
-
export function
|
|
1539
|
-
const ret = new
|
|
942
|
+
export function __wbg_new_typed_094c40c0ef1c4dd9() {
|
|
943
|
+
const ret = new Array();
|
|
1540
944
|
return ret;
|
|
1541
945
|
}
|
|
1542
|
-
export function
|
|
1543
|
-
|
|
1544
|
-
|
|
946
|
+
export function __wbg_new_typed_f79896f0ea5f7de8(arg0, arg1) {
|
|
947
|
+
try {
|
|
948
|
+
var state0 = { a: arg0, b: arg1 };
|
|
949
|
+
var cb0 = (arg0, arg1) => {
|
|
950
|
+
const a = state0.a;
|
|
951
|
+
state0.a = 0;
|
|
952
|
+
try {
|
|
953
|
+
return wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined______(a, state0.b, arg0, arg1);
|
|
954
|
+
}
|
|
955
|
+
finally {
|
|
956
|
+
state0.a = a;
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
const ret = new Promise(cb0);
|
|
1545
960
|
return ret;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
return ret;
|
|
961
|
+
}
|
|
962
|
+
finally {
|
|
963
|
+
state0.a = state0.b = 0;
|
|
964
|
+
}
|
|
1551
965
|
}
|
|
1552
|
-
export function
|
|
966
|
+
export function __wbg_next_ae5b710aea83f41e() {
|
|
1553
967
|
return handleError(function (arg0) {
|
|
1554
968
|
const ret = arg0.next();
|
|
1555
969
|
return ret;
|
|
1556
970
|
}, arguments);
|
|
1557
971
|
}
|
|
1558
|
-
export function
|
|
972
|
+
export function __wbg_next_f577b3e02c9be709(arg0) {
|
|
1559
973
|
const ret = arg0.next;
|
|
1560
974
|
return ret;
|
|
1561
975
|
}
|
|
1562
|
-
export function
|
|
1563
|
-
const ret = arg0.now();
|
|
1564
|
-
return ret;
|
|
1565
|
-
}
|
|
1566
|
-
export function __wbg_now_793306c526e2e3b6() {
|
|
976
|
+
export function __wbg_now_054cfe5280165f10() {
|
|
1567
977
|
const ret = Date.now();
|
|
1568
978
|
return ret;
|
|
1569
979
|
}
|
|
1570
|
-
export function
|
|
1571
|
-
const ret =
|
|
980
|
+
export function __wbg_now_e7c6795a7f81e10f(arg0) {
|
|
981
|
+
const ret = arg0.now();
|
|
1572
982
|
return ret;
|
|
1573
983
|
}
|
|
1574
|
-
export function
|
|
984
|
+
export function __wbg_of_46d2833daab368cb(arg0, arg1) {
|
|
1575
985
|
const ret = Array.of(arg0, arg1);
|
|
1576
986
|
return ret;
|
|
1577
987
|
}
|
|
1578
|
-
export function
|
|
988
|
+
export function __wbg_of_fcc1c8c0899b3729(arg0) {
|
|
989
|
+
const ret = Array.of(arg0);
|
|
990
|
+
return ret;
|
|
991
|
+
}
|
|
992
|
+
export function __wbg_open_594aeba07b1a8345(arg0, arg1) {
|
|
1579
993
|
const ret = arg0.open(arg1);
|
|
1580
994
|
return ret;
|
|
1581
995
|
}
|
|
1582
|
-
export function
|
|
996
|
+
export function __wbg_performance_3fcf6e32a7e1ed0a(arg0) {
|
|
1583
997
|
const ret = arg0.performance;
|
|
1584
998
|
return ret;
|
|
1585
999
|
}
|
|
1586
|
-
export function
|
|
1000
|
+
export function __wbg_prototypesetcall_37f00e1be5c4015a(arg0, arg1, arg2) {
|
|
1587
1001
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1588
1002
|
}
|
|
1589
|
-
export function
|
|
1003
|
+
export function __wbg_push_3584053bd77475ee(arg0, arg1) {
|
|
1590
1004
|
const ret = arg0.push(arg1);
|
|
1591
1005
|
return ret;
|
|
1592
1006
|
}
|
|
1593
|
-
export function
|
|
1007
|
+
export function __wbg_queueMicrotask_5e387cf4d8e3f63e(arg0) {
|
|
1008
|
+
queueMicrotask(arg0);
|
|
1009
|
+
}
|
|
1010
|
+
export function __wbg_queueMicrotask_77bf5a3ad712168b(arg0) {
|
|
1594
1011
|
const ret = arg0.queueMicrotask;
|
|
1595
1012
|
return ret;
|
|
1596
1013
|
}
|
|
1597
|
-
export function
|
|
1598
|
-
queueMicrotask(arg0);
|
|
1599
|
-
}
|
|
1600
|
-
export function __wbg_randomUUID_f5597397f97d1e44(arg0, arg1) {
|
|
1014
|
+
export function __wbg_randomUUID_a5d67697fb5a6a89(arg0, arg1) {
|
|
1601
1015
|
const ret = arg1.randomUUID();
|
|
1602
1016
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1603
1017
|
const len1 = WASM_VECTOR_LEN;
|
|
1604
1018
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1605
1019
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1606
1020
|
}
|
|
1607
|
-
export function
|
|
1021
|
+
export function __wbg_read_4cfc9fe040a376a9(arg0) {
|
|
1608
1022
|
const ret = arg0.read();
|
|
1609
1023
|
return ret;
|
|
1610
1024
|
}
|
|
1611
|
-
export function
|
|
1025
|
+
export function __wbg_readable_3e679010e75a81aa(arg0) {
|
|
1612
1026
|
const ret = arg0.readable;
|
|
1613
1027
|
return ret;
|
|
1614
1028
|
}
|
|
1615
|
-
export function
|
|
1616
|
-
arg0.releaseLock();
|
|
1617
|
-
}
|
|
1618
|
-
export function __wbg_requestPort_bce3f3626a6900f7(arg0) {
|
|
1029
|
+
export function __wbg_requestPort_f20299b9686054c0(arg0) {
|
|
1619
1030
|
const ret = arg0.requestPort();
|
|
1620
1031
|
return ret;
|
|
1621
1032
|
}
|
|
1622
|
-
export function
|
|
1033
|
+
export function __wbg_resolve_2e8556632715b12f(arg0) {
|
|
1623
1034
|
const ret = Promise.resolve(arg0);
|
|
1624
1035
|
return ret;
|
|
1625
1036
|
}
|
|
1626
|
-
export function
|
|
1627
|
-
const ret = arg0.sdpMLineIndex;
|
|
1628
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
1629
|
-
}
|
|
1630
|
-
export function __wbg_sdpMid_524b91d9afabd2cc(arg0, arg1) {
|
|
1631
|
-
const ret = arg1.sdpMid;
|
|
1632
|
-
var ptr1 = isLikeNone(ret)
|
|
1633
|
-
? 0
|
|
1634
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1635
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1636
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1637
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1638
|
-
}
|
|
1639
|
-
export function __wbg_send_3d2cf376613294f0() {
|
|
1640
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1641
|
-
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1642
|
-
}, arguments);
|
|
1643
|
-
}
|
|
1644
|
-
export function __wbg_send_3d93963ba80250ff() {
|
|
1037
|
+
export function __wbg_send_62684b18190d0f4e() {
|
|
1645
1038
|
return handleError(function (arg0, arg1, arg2) {
|
|
1646
1039
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1647
1040
|
}, arguments);
|
|
1648
1041
|
}
|
|
1649
|
-
export function
|
|
1042
|
+
export function __wbg_serial_4363b4032ea3768b(arg0) {
|
|
1650
1043
|
const ret = arg0.serial;
|
|
1651
1044
|
return ret;
|
|
1652
1045
|
}
|
|
1653
|
-
export function
|
|
1654
|
-
const ret = arg0.setLocalDescription(arg1);
|
|
1655
|
-
return ret;
|
|
1656
|
-
}
|
|
1657
|
-
export function __wbg_setRemoteDescription_f77d823b45b689fb(arg0, arg1) {
|
|
1658
|
-
const ret = arg0.setRemoteDescription(arg1);
|
|
1659
|
-
return ret;
|
|
1660
|
-
}
|
|
1661
|
-
export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
1046
|
+
export function __wbg_setTimeout_ef24d2fc3ad97385() {
|
|
1662
1047
|
return handleError(function (arg0, arg1) {
|
|
1663
1048
|
const ret = setTimeout(arg0, arg1);
|
|
1664
1049
|
return ret;
|
|
1665
1050
|
}, arguments);
|
|
1666
1051
|
}
|
|
1667
|
-
export function
|
|
1052
|
+
export function __wbg_set_409333732b484ee7() {
|
|
1053
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1054
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1055
|
+
return ret;
|
|
1056
|
+
}, arguments);
|
|
1057
|
+
}
|
|
1058
|
+
export function __wbg_set_601f3e1d081df3ac(arg0, arg1, arg2) {
|
|
1059
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1060
|
+
}
|
|
1061
|
+
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
1668
1062
|
arg0[arg1] = arg2;
|
|
1669
1063
|
}
|
|
1670
|
-
export function
|
|
1064
|
+
export function __wbg_set_b1226382f10be917(arg0, arg1, arg2) {
|
|
1671
1065
|
const ret = arg0.set(arg1, arg2);
|
|
1672
1066
|
return ret;
|
|
1673
1067
|
}
|
|
1674
|
-
export function
|
|
1675
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1676
|
-
}
|
|
1677
|
-
export function __wbg_set_baud_rate_0d3d4098ad0007bd(arg0, arg1) {
|
|
1068
|
+
export function __wbg_set_baud_rate_fe6143d5d7676056(arg0, arg1) {
|
|
1678
1069
|
arg0.baudRate = arg1 >>> 0;
|
|
1679
1070
|
}
|
|
1680
|
-
export function
|
|
1071
|
+
export function __wbg_set_binaryType_cf0c7d4f696463c4(arg0, arg1) {
|
|
1681
1072
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1682
1073
|
}
|
|
1683
|
-
export function
|
|
1684
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1685
|
-
}
|
|
1686
|
-
export function __wbg_set_c2abbebe8b9ebee1() {
|
|
1687
|
-
return handleError(function (arg0, arg1, arg2) {
|
|
1688
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1689
|
-
return ret;
|
|
1690
|
-
}, arguments);
|
|
1691
|
-
}
|
|
1692
|
-
export function __wbg_set_candidate_c95c6639c1ddc40c(arg0, arg1, arg2) {
|
|
1693
|
-
arg0.candidate = getStringFromWasm0(arg1, arg2);
|
|
1694
|
-
}
|
|
1695
|
-
export function __wbg_set_counter_8cf891ddbb09c405(arg0, arg1) {
|
|
1074
|
+
export function __wbg_set_counter_70f1a54a0f915958(arg0, arg1) {
|
|
1696
1075
|
arg0.counter = arg1;
|
|
1697
1076
|
}
|
|
1698
|
-
export function
|
|
1699
|
-
arg0.credential = getStringFromWasm0(arg1, arg2);
|
|
1700
|
-
}
|
|
1701
|
-
export function __wbg_set_ice_servers_2fe64c1f7030a20f(arg0, arg1) {
|
|
1702
|
-
arg0.iceServers = arg1;
|
|
1703
|
-
}
|
|
1704
|
-
export function __wbg_set_length_9b3abd6e75f20e65(arg0, arg1) {
|
|
1077
|
+
export function __wbg_set_length_3eeb986747a2cafc(arg0, arg1) {
|
|
1705
1078
|
arg0.length = arg1;
|
|
1706
1079
|
}
|
|
1707
|
-
export function
|
|
1080
|
+
export function __wbg_set_name_ddf0b4aff0b39746(arg0, arg1, arg2) {
|
|
1708
1081
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1709
1082
|
}
|
|
1710
|
-
export function
|
|
1083
|
+
export function __wbg_set_onclose_f1dc4f34db0edb70(arg0, arg1) {
|
|
1711
1084
|
arg0.onclose = arg1;
|
|
1712
1085
|
}
|
|
1713
|
-
export function
|
|
1714
|
-
arg0.ondatachannel = arg1;
|
|
1715
|
-
}
|
|
1716
|
-
export function __wbg_set_onerror_337a3a2db9517378(arg0, arg1) {
|
|
1086
|
+
export function __wbg_set_onerror_c5cc940aaa32469f(arg0, arg1) {
|
|
1717
1087
|
arg0.onerror = arg1;
|
|
1718
1088
|
}
|
|
1719
|
-
export function
|
|
1720
|
-
arg0.onicecandidate = arg1;
|
|
1721
|
-
}
|
|
1722
|
-
export function __wbg_set_oniceconnectionstatechange_11dbe6c347a5d4d2(arg0, arg1) {
|
|
1723
|
-
arg0.oniceconnectionstatechange = arg1;
|
|
1724
|
-
}
|
|
1725
|
-
export function __wbg_set_onmessage_3a8d6c4b2e1962d7(arg0, arg1) {
|
|
1726
|
-
arg0.onmessage = arg1;
|
|
1727
|
-
}
|
|
1728
|
-
export function __wbg_set_onmessage_8661558551a89792(arg0, arg1) {
|
|
1089
|
+
export function __wbg_set_onmessage_4bc3bcd36a569c03(arg0, arg1) {
|
|
1729
1090
|
arg0.onmessage = arg1;
|
|
1730
1091
|
}
|
|
1731
|
-
export function
|
|
1732
|
-
arg0.onopen = arg1;
|
|
1733
|
-
}
|
|
1734
|
-
export function __wbg_set_onopen_efccb9305427b907(arg0, arg1) {
|
|
1092
|
+
export function __wbg_set_onopen_7c5a9bca5c4ae13d(arg0, arg1) {
|
|
1735
1093
|
arg0.onopen = arg1;
|
|
1736
1094
|
}
|
|
1737
|
-
export function
|
|
1738
|
-
arg0.sdp = getStringFromWasm0(arg1, arg2);
|
|
1739
|
-
}
|
|
1740
|
-
export function __wbg_set_sdp_m_line_index_8fc884801bfc6173(arg0, arg1) {
|
|
1741
|
-
arg0.sdpMLineIndex = arg1 === 0xFFFFFF ? undefined : arg1;
|
|
1742
|
-
}
|
|
1743
|
-
export function __wbg_set_sdp_mid_4a6d24c6bec77f74(arg0, arg1, arg2) {
|
|
1744
|
-
arg0.sdpMid = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1745
|
-
}
|
|
1746
|
-
export function __wbg_set_type_2e7e493a02f43e56(arg0, arg1) {
|
|
1747
|
-
arg0.type = __wbindgen_enum_RtcSdpType[arg1];
|
|
1748
|
-
}
|
|
1749
|
-
export function __wbg_set_urls_835196658d97779c(arg0, arg1) {
|
|
1750
|
-
arg0.urls = arg1;
|
|
1751
|
-
}
|
|
1752
|
-
export function __wbg_set_username_305ae082fdb063b0(arg0, arg1, arg2) {
|
|
1753
|
-
arg0.username = getStringFromWasm0(arg1, arg2);
|
|
1754
|
-
}
|
|
1755
|
-
export function __wbg_sign_0077f2aabd37825a() {
|
|
1095
|
+
export function __wbg_sign_ac2a693ae3c36d52() {
|
|
1756
1096
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1757
1097
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1758
1098
|
return ret;
|
|
1759
1099
|
}, arguments);
|
|
1760
1100
|
}
|
|
1761
|
-
export function
|
|
1762
|
-
const ret = arg0.signalingState;
|
|
1763
|
-
return (__wbindgen_enum_RtcSignalingState.indexOf(ret) + 1 || 7) - 1;
|
|
1764
|
-
}
|
|
1765
|
-
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1101
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
1766
1102
|
const ret = arg1.stack;
|
|
1767
1103
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1768
1104
|
const len1 = WASM_VECTOR_LEN;
|
|
1769
1105
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1770
1106
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1771
1107
|
}
|
|
1772
|
-
export function
|
|
1773
|
-
const ret = typeof global ===
|
|
1108
|
+
export function __wbg_static_accessor_GLOBAL_280fe6a619bbfbf6() {
|
|
1109
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1774
1110
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1775
1111
|
}
|
|
1776
|
-
export function
|
|
1777
|
-
const ret = typeof dntShim.dntGlobalThis ===
|
|
1112
|
+
export function __wbg_static_accessor_GLOBAL_THIS_12c1f4811ec605d1() {
|
|
1113
|
+
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1778
1114
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1779
1115
|
}
|
|
1780
|
-
export function
|
|
1781
|
-
const ret = typeof self ===
|
|
1116
|
+
export function __wbg_static_accessor_SELF_3a156961626f54d9() {
|
|
1117
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1782
1118
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1783
1119
|
}
|
|
1784
|
-
export function
|
|
1785
|
-
const ret = typeof dntShim.dntGlobalThis ===
|
|
1120
|
+
export function __wbg_static_accessor_WINDOW_210015b3eb6018a4() {
|
|
1121
|
+
const ret = typeof dntShim.dntGlobalThis === 'undefined' ? null : dntShim.dntGlobalThis;
|
|
1786
1122
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1787
1123
|
}
|
|
1788
|
-
export function
|
|
1124
|
+
export function __wbg_subtle_81be0a973c415a03(arg0) {
|
|
1789
1125
|
const ret = arg0.subtle;
|
|
1790
1126
|
return ret;
|
|
1791
1127
|
}
|
|
1792
|
-
export function
|
|
1128
|
+
export function __wbg_then_5ce48a9e69c0d3cd(arg0, arg1) {
|
|
1793
1129
|
const ret = arg0.then(arg1);
|
|
1794
1130
|
return ret;
|
|
1795
1131
|
}
|
|
1796
|
-
export function
|
|
1132
|
+
export function __wbg_then_f73127af3894d61c(arg0, arg1, arg2) {
|
|
1797
1133
|
const ret = arg0.then(arg1, arg2);
|
|
1798
1134
|
return ret;
|
|
1799
1135
|
}
|
|
1800
|
-
export function
|
|
1136
|
+
export function __wbg_toString_e3e5fe9e1dd78d7e(arg0) {
|
|
1137
|
+
const ret = arg0.toString();
|
|
1138
|
+
return ret;
|
|
1139
|
+
}
|
|
1140
|
+
export function __wbg_unwrapKey_a1ed6f93290ea7e6() {
|
|
1801
1141
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1802
1142
|
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1803
1143
|
return ret;
|
|
1804
1144
|
}, arguments);
|
|
1805
1145
|
}
|
|
1806
|
-
export function
|
|
1146
|
+
export function __wbg_value_3e1fdb73e1353fb3(arg0) {
|
|
1807
1147
|
const ret = arg0.value;
|
|
1808
1148
|
return ret;
|
|
1809
1149
|
}
|
|
1810
|
-
export function
|
|
1150
|
+
export function __wbg_verify_f1f7d4c6724422ed() {
|
|
1811
1151
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1812
1152
|
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1813
1153
|
return ret;
|
|
1814
1154
|
}, arguments);
|
|
1815
1155
|
}
|
|
1816
|
-
export function
|
|
1817
|
-
console.warn(arg0);
|
|
1156
|
+
export function __wbg_warn_1cdc9092c462f8ba(arg0, arg1, arg2, arg3) {
|
|
1157
|
+
console.warn(arg0, arg1, arg2, arg3);
|
|
1818
1158
|
}
|
|
1819
|
-
export function
|
|
1159
|
+
export function __wbg_wrapKey_86c5988ab8fc9c88() {
|
|
1820
1160
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1821
1161
|
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1822
1162
|
return ret;
|
|
1823
1163
|
}, arguments);
|
|
1824
1164
|
}
|
|
1825
|
-
export function
|
|
1165
|
+
export function __wbg_writable_895b2d01f223385e(arg0) {
|
|
1826
1166
|
const ret = arg0.writable;
|
|
1827
1167
|
return ret;
|
|
1828
1168
|
}
|
|
1829
|
-
export function
|
|
1169
|
+
export function __wbg_write_537b90f946efe5cf(arg0, arg1) {
|
|
1830
1170
|
const ret = arg0.write(arg1);
|
|
1831
1171
|
return ret;
|
|
1832
1172
|
}
|
|
1833
|
-
export function
|
|
1834
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1835
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1173
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1174
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 1186, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1175
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array_____);
|
|
1836
1176
|
return ret;
|
|
1837
1177
|
}
|
|
1838
|
-
export function
|
|
1839
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1840
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1178
|
+
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1179
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1186, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1180
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______1);
|
|
1841
1181
|
return ret;
|
|
1842
1182
|
}
|
|
1843
|
-
export function
|
|
1844
|
-
// Cast intrinsic for `
|
|
1845
|
-
const ret =
|
|
1183
|
+
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1184
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1186, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1185
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______2);
|
|
1846
1186
|
return ret;
|
|
1847
1187
|
}
|
|
1848
|
-
export function
|
|
1849
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1850
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1188
|
+
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1189
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("SerialPort")], shim_idx: 1188, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1190
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__);
|
|
1851
1191
|
return ret;
|
|
1852
1192
|
}
|
|
1853
|
-
export function
|
|
1854
|
-
// Cast intrinsic for `
|
|
1855
|
-
const ret =
|
|
1193
|
+
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1194
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("Uint8Array")], shim_idx: 1186, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1195
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______4);
|
|
1856
1196
|
return ret;
|
|
1857
1197
|
}
|
|
1858
|
-
export function
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1862
|
-
const ret = v0;
|
|
1198
|
+
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1199
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1185, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1188, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1200
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__js_sys_5e77039cd07495f8___Uint8Array____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError___5);
|
|
1863
1201
|
return ret;
|
|
1864
1202
|
}
|
|
1865
|
-
export function
|
|
1866
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1867
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1203
|
+
export function __wbindgen_cast_0000000000000007(arg0, arg1) {
|
|
1204
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2006, function: Function { arguments: [], shim_idx: 2007, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1205
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut_____Output_______, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke______);
|
|
1868
1206
|
return ret;
|
|
1869
1207
|
}
|
|
1870
|
-
export function
|
|
1871
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1872
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1208
|
+
export function __wbindgen_cast_0000000000000008(arg0, arg1) {
|
|
1209
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2044, function: Function { arguments: [Externref], shim_idx: 2045, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1210
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e47402b76c0750de___closure__destroy___dyn_core_d7ff8db7104fb838___ops__function__FnMut__wasm_bindgen_e47402b76c0750de___JsValue____Output___core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError___, wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___JsValue__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__);
|
|
1873
1211
|
return ret;
|
|
1874
1212
|
}
|
|
1875
|
-
export function
|
|
1213
|
+
export function __wbindgen_cast_0000000000000009(arg0) {
|
|
1214
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1215
|
+
const ret = arg0;
|
|
1216
|
+
return ret;
|
|
1217
|
+
}
|
|
1218
|
+
export function __wbindgen_cast_000000000000000a(arg0) {
|
|
1876
1219
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1877
1220
|
const ret = arg0;
|
|
1878
1221
|
return ret;
|
|
1879
1222
|
}
|
|
1880
|
-
export function
|
|
1881
|
-
// Cast intrinsic for `
|
|
1882
|
-
const ret =
|
|
1223
|
+
export function __wbindgen_cast_000000000000000b(arg0, arg1) {
|
|
1224
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1225
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1883
1226
|
return ret;
|
|
1884
1227
|
}
|
|
1885
|
-
export function
|
|
1886
|
-
// Cast intrinsic for `
|
|
1887
|
-
const ret = arg0;
|
|
1228
|
+
export function __wbindgen_cast_000000000000000c(arg0) {
|
|
1229
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1230
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1888
1231
|
return ret;
|
|
1889
1232
|
}
|
|
1890
|
-
export function
|
|
1891
|
-
|
|
1892
|
-
|
|
1233
|
+
export function __wbindgen_cast_000000000000000d(arg0, arg1) {
|
|
1234
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1235
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1236
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1237
|
+
const ret = v0;
|
|
1893
1238
|
return ret;
|
|
1894
1239
|
}
|
|
1895
1240
|
export function __wbindgen_init_externref_table() {
|
|
@@ -1901,3 +1246,274 @@ export function __wbindgen_init_externref_table() {
|
|
|
1901
1246
|
table.set(offset + 2, true);
|
|
1902
1247
|
table.set(offset + 3, false);
|
|
1903
1248
|
}
|
|
1249
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke______(arg0, arg1) {
|
|
1250
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke______(arg0, arg1);
|
|
1251
|
+
}
|
|
1252
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array_____(arg0, arg1, arg2) {
|
|
1253
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array_____(arg0, arg1, arg2);
|
|
1254
|
+
}
|
|
1255
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______1(arg0, arg1, arg2) {
|
|
1256
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______1(arg0, arg1, arg2);
|
|
1257
|
+
}
|
|
1258
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______2(arg0, arg1, arg2) {
|
|
1259
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______2(arg0, arg1, arg2);
|
|
1260
|
+
}
|
|
1261
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______4(arg0, arg1, arg2) {
|
|
1262
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Uint8Array______4(arg0, arg1, arg2);
|
|
1263
|
+
}
|
|
1264
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__(arg0, arg1, arg2) {
|
|
1265
|
+
const ret = wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__(arg0, arg1, arg2);
|
|
1266
|
+
if (ret[1]) {
|
|
1267
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError___5(arg0, arg1, arg2) {
|
|
1271
|
+
const ret = wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___sys__Undefined__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError___5(arg0, arg1, arg2);
|
|
1272
|
+
if (ret[1]) {
|
|
1273
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___JsValue__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__(arg0, arg1, arg2) {
|
|
1277
|
+
const ret = wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___wasm_bindgen_e47402b76c0750de___JsValue__core_d7ff8db7104fb838___result__Result_____wasm_bindgen_e47402b76c0750de___JsError__(arg0, arg1, arg2);
|
|
1278
|
+
if (ret[1]) {
|
|
1279
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
function wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined______(arg0, arg1, arg2, arg3) {
|
|
1283
|
+
wasm.wasm_bindgen_e47402b76c0750de___convert__closures_____invoke___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined___js_sys_5e77039cd07495f8___Function_fn_wasm_bindgen_e47402b76c0750de___JsValue_____wasm_bindgen_e47402b76c0750de___sys__Undefined______(arg0, arg1, arg2, arg3);
|
|
1284
|
+
}
|
|
1285
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
1286
|
+
const JSComHubFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1287
|
+
? { register: () => { }, unregister: () => { } }
|
|
1288
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
|
|
1289
|
+
const JSPointerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1290
|
+
? { register: () => { }, unregister: () => { } }
|
|
1291
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
1292
|
+
const JSRuntimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1293
|
+
? { register: () => { }, unregister: () => { } }
|
|
1294
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsruntime_free(ptr >>> 0, 1));
|
|
1295
|
+
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1296
|
+
? { register: () => { }, unregister: () => { } }
|
|
1297
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
1298
|
+
function addToExternrefTable0(obj) {
|
|
1299
|
+
const idx = wasm.__externref_table_alloc();
|
|
1300
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1301
|
+
return idx;
|
|
1302
|
+
}
|
|
1303
|
+
function _assertClass(instance, klass) {
|
|
1304
|
+
if (!(instance instanceof klass)) {
|
|
1305
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1309
|
+
? { register: () => { }, unregister: () => { } }
|
|
1310
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1311
|
+
function debugString(val) {
|
|
1312
|
+
// primitive types
|
|
1313
|
+
const type = typeof val;
|
|
1314
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1315
|
+
return `${val}`;
|
|
1316
|
+
}
|
|
1317
|
+
if (type == 'string') {
|
|
1318
|
+
return `"${val}"`;
|
|
1319
|
+
}
|
|
1320
|
+
if (type == 'symbol') {
|
|
1321
|
+
const description = val.description;
|
|
1322
|
+
if (description == null) {
|
|
1323
|
+
return 'Symbol';
|
|
1324
|
+
}
|
|
1325
|
+
else {
|
|
1326
|
+
return `Symbol(${description})`;
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
if (type == 'function') {
|
|
1330
|
+
const name = val.name;
|
|
1331
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1332
|
+
return `Function(${name})`;
|
|
1333
|
+
}
|
|
1334
|
+
else {
|
|
1335
|
+
return 'Function';
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
// objects
|
|
1339
|
+
if (Array.isArray(val)) {
|
|
1340
|
+
const length = val.length;
|
|
1341
|
+
let debug = '[';
|
|
1342
|
+
if (length > 0) {
|
|
1343
|
+
debug += debugString(val[0]);
|
|
1344
|
+
}
|
|
1345
|
+
for (let i = 1; i < length; i++) {
|
|
1346
|
+
debug += ', ' + debugString(val[i]);
|
|
1347
|
+
}
|
|
1348
|
+
debug += ']';
|
|
1349
|
+
return debug;
|
|
1350
|
+
}
|
|
1351
|
+
// Test for built-in
|
|
1352
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1353
|
+
let className;
|
|
1354
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1355
|
+
className = builtInMatches[1];
|
|
1356
|
+
}
|
|
1357
|
+
else {
|
|
1358
|
+
// Failed to match the standard '[object ClassName]'
|
|
1359
|
+
return toString.call(val);
|
|
1360
|
+
}
|
|
1361
|
+
if (className == 'Object') {
|
|
1362
|
+
// we're a user defined class or Object
|
|
1363
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1364
|
+
// easier than looping through ownProperties of `val`.
|
|
1365
|
+
try {
|
|
1366
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1367
|
+
}
|
|
1368
|
+
catch (_) {
|
|
1369
|
+
return 'Object';
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
// errors
|
|
1373
|
+
if (val instanceof Error) {
|
|
1374
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1375
|
+
}
|
|
1376
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1377
|
+
return className;
|
|
1378
|
+
}
|
|
1379
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1380
|
+
ptr = ptr >>> 0;
|
|
1381
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1382
|
+
}
|
|
1383
|
+
let cachedDataViewMemory0 = null;
|
|
1384
|
+
function getDataViewMemory0() {
|
|
1385
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1386
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1387
|
+
}
|
|
1388
|
+
return cachedDataViewMemory0;
|
|
1389
|
+
}
|
|
1390
|
+
function getStringFromWasm0(ptr, len) {
|
|
1391
|
+
ptr = ptr >>> 0;
|
|
1392
|
+
return decodeText(ptr, len);
|
|
1393
|
+
}
|
|
1394
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1395
|
+
function getUint8ArrayMemory0() {
|
|
1396
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1397
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1398
|
+
}
|
|
1399
|
+
return cachedUint8ArrayMemory0;
|
|
1400
|
+
}
|
|
1401
|
+
function handleError(f, args) {
|
|
1402
|
+
try {
|
|
1403
|
+
return f.apply(this, args);
|
|
1404
|
+
}
|
|
1405
|
+
catch (e) {
|
|
1406
|
+
const idx = addToExternrefTable0(e);
|
|
1407
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
function isLikeNone(x) {
|
|
1411
|
+
return x === undefined || x === null;
|
|
1412
|
+
}
|
|
1413
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1414
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1415
|
+
const real = (...args) => {
|
|
1416
|
+
// First up with a closure we increment the internal reference
|
|
1417
|
+
// count. This ensures that the Rust closure environment won't
|
|
1418
|
+
// be deallocated while we're invoking it.
|
|
1419
|
+
state.cnt++;
|
|
1420
|
+
const a = state.a;
|
|
1421
|
+
state.a = 0;
|
|
1422
|
+
try {
|
|
1423
|
+
return f(a, state.b, ...args);
|
|
1424
|
+
}
|
|
1425
|
+
finally {
|
|
1426
|
+
state.a = a;
|
|
1427
|
+
real._wbg_cb_unref();
|
|
1428
|
+
}
|
|
1429
|
+
};
|
|
1430
|
+
real._wbg_cb_unref = () => {
|
|
1431
|
+
if (--state.cnt === 0) {
|
|
1432
|
+
state.dtor(state.a, state.b);
|
|
1433
|
+
state.a = 0;
|
|
1434
|
+
CLOSURE_DTORS.unregister(state);
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1438
|
+
return real;
|
|
1439
|
+
}
|
|
1440
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
1441
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
1442
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
1443
|
+
WASM_VECTOR_LEN = arg.length;
|
|
1444
|
+
return ptr;
|
|
1445
|
+
}
|
|
1446
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
1447
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
1448
|
+
for (let i = 0; i < array.length; i++) {
|
|
1449
|
+
const add = addToExternrefTable0(array[i]);
|
|
1450
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
1451
|
+
}
|
|
1452
|
+
WASM_VECTOR_LEN = array.length;
|
|
1453
|
+
return ptr;
|
|
1454
|
+
}
|
|
1455
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1456
|
+
if (realloc === undefined) {
|
|
1457
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1458
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1459
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1460
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1461
|
+
return ptr;
|
|
1462
|
+
}
|
|
1463
|
+
let len = arg.length;
|
|
1464
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1465
|
+
const mem = getUint8ArrayMemory0();
|
|
1466
|
+
let offset = 0;
|
|
1467
|
+
for (; offset < len; offset++) {
|
|
1468
|
+
const code = arg.charCodeAt(offset);
|
|
1469
|
+
if (code > 0x7F)
|
|
1470
|
+
break;
|
|
1471
|
+
mem[ptr + offset] = code;
|
|
1472
|
+
}
|
|
1473
|
+
if (offset !== len) {
|
|
1474
|
+
if (offset !== 0) {
|
|
1475
|
+
arg = arg.slice(offset);
|
|
1476
|
+
}
|
|
1477
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1478
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1479
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1480
|
+
offset += ret.written;
|
|
1481
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1482
|
+
}
|
|
1483
|
+
WASM_VECTOR_LEN = offset;
|
|
1484
|
+
return ptr;
|
|
1485
|
+
}
|
|
1486
|
+
function takeFromExternrefTable0(idx) {
|
|
1487
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1488
|
+
wasm.__externref_table_dealloc(idx);
|
|
1489
|
+
return value;
|
|
1490
|
+
}
|
|
1491
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1492
|
+
cachedTextDecoder.decode();
|
|
1493
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1494
|
+
let numBytesDecoded = 0;
|
|
1495
|
+
function decodeText(ptr, len) {
|
|
1496
|
+
numBytesDecoded += len;
|
|
1497
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1498
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1499
|
+
cachedTextDecoder.decode();
|
|
1500
|
+
numBytesDecoded = len;
|
|
1501
|
+
}
|
|
1502
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1503
|
+
}
|
|
1504
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1505
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1506
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1507
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1508
|
+
view.set(buf);
|
|
1509
|
+
return {
|
|
1510
|
+
read: arg.length,
|
|
1511
|
+
written: buf.length
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
let WASM_VECTOR_LEN = 0;
|
|
1516
|
+
let wasm;
|
|
1517
|
+
export function __wbg_set_wasm(val) {
|
|
1518
|
+
wasm = val;
|
|
1519
|
+
}
|