@spikard/wasm 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +356 -524
- package/dist/chunk-DYTZ4RA2.mjs +2267 -0
- package/dist/chunk-DYTZ4RA2.mjs.map +1 -0
- package/dist/index.d.mts +365 -0
- package/dist/index.d.ts +365 -0
- package/dist/index.js +2269 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/node.d.mts +9 -0
- package/dist/node.d.ts +9 -0
- package/dist/node.js +2400 -0
- package/dist/node.js.map +1 -0
- package/dist/node.mjs +120 -0
- package/dist/node.mjs.map +1 -0
- package/{dist-node → dist}/package.json +1 -1
- package/{dist-node → dist}/spikard_wasm.js +11 -8
- package/{dist-node → dist}/spikard_wasm_bg.wasm +0 -0
- package/package.json +54 -46
- package/dist-bundler/package.json +0 -34
- package/dist-bundler/spikard_wasm.d.ts +0 -28
- package/dist-bundler/spikard_wasm.js +0 -5
- package/dist-bundler/spikard_wasm_bg.js +0 -914
- package/dist-bundler/spikard_wasm_bg.wasm +0 -0
- package/dist-bundler/spikard_wasm_bg.wasm.d.ts +0 -26
- package/dist-node/README.md +0 -739
- package/dist-node/spikard_wasm.d.ts +0 -28
- package/dist-node/spikard_wasm_bg.wasm.d.ts +0 -26
- package/dist-web/README.md +0 -739
- package/dist-web/package.json +0 -32
- package/dist-web/spikard_wasm.d.ts +0 -79
- package/dist-web/spikard_wasm.js +0 -921
- package/dist-web/spikard_wasm_bg.wasm +0 -0
- package/dist-web/spikard_wasm_bg.wasm.d.ts +0 -26
- /package/{dist-bundler → dist}/README.md +0 -0
|
@@ -1,914 +0,0 @@
|
|
|
1
|
-
let wasm;
|
|
2
|
-
export function __wbg_set_wasm(val) {
|
|
3
|
-
wasm = val;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
function addHeapObject(obj) {
|
|
7
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
8
|
-
const idx = heap_next;
|
|
9
|
-
heap_next = heap[idx];
|
|
10
|
-
|
|
11
|
-
heap[idx] = obj;
|
|
12
|
-
return idx;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
16
|
-
? { register: () => {}, unregister: () => {} }
|
|
17
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
18
|
-
|
|
19
|
-
function debugString(val) {
|
|
20
|
-
// primitive types
|
|
21
|
-
const type = typeof val;
|
|
22
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
23
|
-
return `${val}`;
|
|
24
|
-
}
|
|
25
|
-
if (type == 'string') {
|
|
26
|
-
return `"${val}"`;
|
|
27
|
-
}
|
|
28
|
-
if (type == 'symbol') {
|
|
29
|
-
const description = val.description;
|
|
30
|
-
if (description == null) {
|
|
31
|
-
return 'Symbol';
|
|
32
|
-
} else {
|
|
33
|
-
return `Symbol(${description})`;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (type == 'function') {
|
|
37
|
-
const name = val.name;
|
|
38
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
39
|
-
return `Function(${name})`;
|
|
40
|
-
} else {
|
|
41
|
-
return 'Function';
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
// objects
|
|
45
|
-
if (Array.isArray(val)) {
|
|
46
|
-
const length = val.length;
|
|
47
|
-
let debug = '[';
|
|
48
|
-
if (length > 0) {
|
|
49
|
-
debug += debugString(val[0]);
|
|
50
|
-
}
|
|
51
|
-
for(let i = 1; i < length; i++) {
|
|
52
|
-
debug += ', ' + debugString(val[i]);
|
|
53
|
-
}
|
|
54
|
-
debug += ']';
|
|
55
|
-
return debug;
|
|
56
|
-
}
|
|
57
|
-
// Test for built-in
|
|
58
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
59
|
-
let className;
|
|
60
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
61
|
-
className = builtInMatches[1];
|
|
62
|
-
} else {
|
|
63
|
-
// Failed to match the standard '[object ClassName]'
|
|
64
|
-
return toString.call(val);
|
|
65
|
-
}
|
|
66
|
-
if (className == 'Object') {
|
|
67
|
-
// we're a user defined class or Object
|
|
68
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
69
|
-
// easier than looping through ownProperties of `val`.
|
|
70
|
-
try {
|
|
71
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
72
|
-
} catch (_) {
|
|
73
|
-
return 'Object';
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
// errors
|
|
77
|
-
if (val instanceof Error) {
|
|
78
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
79
|
-
}
|
|
80
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
81
|
-
return className;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function dropObject(idx) {
|
|
85
|
-
if (idx < 132) return;
|
|
86
|
-
heap[idx] = heap_next;
|
|
87
|
-
heap_next = idx;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
91
|
-
ptr = ptr >>> 0;
|
|
92
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
let cachedDataViewMemory0 = null;
|
|
96
|
-
function getDataViewMemory0() {
|
|
97
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
98
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
99
|
-
}
|
|
100
|
-
return cachedDataViewMemory0;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function getStringFromWasm0(ptr, len) {
|
|
104
|
-
ptr = ptr >>> 0;
|
|
105
|
-
return decodeText(ptr, len);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
let cachedUint8ArrayMemory0 = null;
|
|
109
|
-
function getUint8ArrayMemory0() {
|
|
110
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
111
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
112
|
-
}
|
|
113
|
-
return cachedUint8ArrayMemory0;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function getObject(idx) { return heap[idx]; }
|
|
117
|
-
|
|
118
|
-
function handleError(f, args) {
|
|
119
|
-
try {
|
|
120
|
-
return f.apply(this, args);
|
|
121
|
-
} catch (e) {
|
|
122
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
let heap = new Array(128).fill(undefined);
|
|
127
|
-
heap.push(undefined, null, true, false);
|
|
128
|
-
|
|
129
|
-
let heap_next = heap.length;
|
|
130
|
-
|
|
131
|
-
function isLikeNone(x) {
|
|
132
|
-
return x === undefined || x === null;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
136
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
137
|
-
const real = (...args) => {
|
|
138
|
-
|
|
139
|
-
// First up with a closure we increment the internal reference
|
|
140
|
-
// count. This ensures that the Rust closure environment won't
|
|
141
|
-
// be deallocated while we're invoking it.
|
|
142
|
-
state.cnt++;
|
|
143
|
-
const a = state.a;
|
|
144
|
-
state.a = 0;
|
|
145
|
-
try {
|
|
146
|
-
return f(a, state.b, ...args);
|
|
147
|
-
} finally {
|
|
148
|
-
state.a = a;
|
|
149
|
-
real._wbg_cb_unref();
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
real._wbg_cb_unref = () => {
|
|
153
|
-
if (--state.cnt === 0) {
|
|
154
|
-
state.dtor(state.a, state.b);
|
|
155
|
-
state.a = 0;
|
|
156
|
-
CLOSURE_DTORS.unregister(state);
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
160
|
-
return real;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
164
|
-
if (realloc === undefined) {
|
|
165
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
166
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
167
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
168
|
-
WASM_VECTOR_LEN = buf.length;
|
|
169
|
-
return ptr;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
let len = arg.length;
|
|
173
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
174
|
-
|
|
175
|
-
const mem = getUint8ArrayMemory0();
|
|
176
|
-
|
|
177
|
-
let offset = 0;
|
|
178
|
-
|
|
179
|
-
for (; offset < len; offset++) {
|
|
180
|
-
const code = arg.charCodeAt(offset);
|
|
181
|
-
if (code > 0x7F) break;
|
|
182
|
-
mem[ptr + offset] = code;
|
|
183
|
-
}
|
|
184
|
-
if (offset !== len) {
|
|
185
|
-
if (offset !== 0) {
|
|
186
|
-
arg = arg.slice(offset);
|
|
187
|
-
}
|
|
188
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
189
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
190
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
191
|
-
|
|
192
|
-
offset += ret.written;
|
|
193
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
WASM_VECTOR_LEN = offset;
|
|
197
|
-
return ptr;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
function takeObject(idx) {
|
|
201
|
-
const ret = getObject(idx);
|
|
202
|
-
dropObject(idx);
|
|
203
|
-
return ret;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
207
|
-
cachedTextDecoder.decode();
|
|
208
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
209
|
-
let numBytesDecoded = 0;
|
|
210
|
-
function decodeText(ptr, len) {
|
|
211
|
-
numBytesDecoded += len;
|
|
212
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
213
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
214
|
-
cachedTextDecoder.decode();
|
|
215
|
-
numBytesDecoded = len;
|
|
216
|
-
}
|
|
217
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const cachedTextEncoder = new TextEncoder();
|
|
221
|
-
|
|
222
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
223
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
224
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
225
|
-
view.set(buf);
|
|
226
|
-
return {
|
|
227
|
-
read: arg.length,
|
|
228
|
-
written: buf.length
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
let WASM_VECTOR_LEN = 0;
|
|
234
|
-
|
|
235
|
-
function __wasm_bindgen_func_elem_405(arg0, arg1) {
|
|
236
|
-
wasm.__wasm_bindgen_func_elem_405(arg0, arg1);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function __wasm_bindgen_func_elem_641(arg0, arg1, arg2) {
|
|
240
|
-
wasm.__wasm_bindgen_func_elem_641(arg0, arg1, addHeapObject(arg2));
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
function __wasm_bindgen_func_elem_4297(arg0, arg1, arg2, arg3) {
|
|
244
|
-
wasm.__wasm_bindgen_func_elem_4297(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
const TestClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
248
|
-
? { register: () => {}, unregister: () => {} }
|
|
249
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_testclient_free(ptr >>> 0, 1));
|
|
250
|
-
|
|
251
|
-
export class TestClient {
|
|
252
|
-
__destroy_into_raw() {
|
|
253
|
-
const ptr = this.__wbg_ptr;
|
|
254
|
-
this.__wbg_ptr = 0;
|
|
255
|
-
TestClientFinalization.unregister(this);
|
|
256
|
-
return ptr;
|
|
257
|
-
}
|
|
258
|
-
free() {
|
|
259
|
-
const ptr = this.__destroy_into_raw();
|
|
260
|
-
wasm.__wbg_testclient_free(ptr, 0);
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Handle a generic HTTP request. Takes a JSON string with method, path, headers, and body.
|
|
264
|
-
* @param {string} request_json
|
|
265
|
-
* @returns {Promise<any>}
|
|
266
|
-
*/
|
|
267
|
-
handle_request(request_json) {
|
|
268
|
-
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
269
|
-
const len0 = WASM_VECTOR_LEN;
|
|
270
|
-
const ret = wasm.testclient_handle_request(this.__wbg_ptr, ptr0, len0);
|
|
271
|
-
return takeObject(ret);
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
|
-
* @param {string} path
|
|
275
|
-
* @param {any} headers
|
|
276
|
-
* @returns {Promise<any>}
|
|
277
|
-
*/
|
|
278
|
-
get(path, headers) {
|
|
279
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
280
|
-
const len0 = WASM_VECTOR_LEN;
|
|
281
|
-
const ret = wasm.testclient_get(this.__wbg_ptr, ptr0, len0, addHeapObject(headers));
|
|
282
|
-
return takeObject(ret);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Build a [`TestClient`] from serialized route metadata, handler map, server config, and lifecycle hooks.
|
|
286
|
-
* @param {string} routes_json
|
|
287
|
-
* @param {any} handlers
|
|
288
|
-
* @param {any} config
|
|
289
|
-
* @param {any | null} [lifecycle_hooks]
|
|
290
|
-
* @param {any | null} [dependencies]
|
|
291
|
-
*/
|
|
292
|
-
constructor(routes_json, handlers, config, lifecycle_hooks, dependencies) {
|
|
293
|
-
try {
|
|
294
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
295
|
-
const ptr0 = passStringToWasm0(routes_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
296
|
-
const len0 = WASM_VECTOR_LEN;
|
|
297
|
-
wasm.testclient_new(retptr, ptr0, len0, addHeapObject(handlers), addHeapObject(config), isLikeNone(lifecycle_hooks) ? 0 : addHeapObject(lifecycle_hooks), isLikeNone(dependencies) ? 0 : addHeapObject(dependencies));
|
|
298
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
299
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
300
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
301
|
-
if (r2) {
|
|
302
|
-
throw takeObject(r1);
|
|
303
|
-
}
|
|
304
|
-
this.__wbg_ptr = r0 >>> 0;
|
|
305
|
-
TestClientFinalization.register(this, this.__wbg_ptr, this);
|
|
306
|
-
return this;
|
|
307
|
-
} finally {
|
|
308
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* @param {string} path
|
|
313
|
-
* @param {any} options
|
|
314
|
-
* @returns {Promise<any>}
|
|
315
|
-
*/
|
|
316
|
-
put(path, options) {
|
|
317
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
318
|
-
const len0 = WASM_VECTOR_LEN;
|
|
319
|
-
const ret = wasm.testclient_put(this.__wbg_ptr, ptr0, len0, addHeapObject(options));
|
|
320
|
-
return takeObject(ret);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @param {string} path
|
|
324
|
-
* @param {any} headers
|
|
325
|
-
* @returns {Promise<any>}
|
|
326
|
-
*/
|
|
327
|
-
head(path, headers) {
|
|
328
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
329
|
-
const len0 = WASM_VECTOR_LEN;
|
|
330
|
-
const ret = wasm.testclient_head(this.__wbg_ptr, ptr0, len0, addHeapObject(headers));
|
|
331
|
-
return takeObject(ret);
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* @param {string} path
|
|
335
|
-
* @param {any} options
|
|
336
|
-
* @returns {Promise<any>}
|
|
337
|
-
*/
|
|
338
|
-
post(path, options) {
|
|
339
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
340
|
-
const len0 = WASM_VECTOR_LEN;
|
|
341
|
-
const ret = wasm.testclient_post(this.__wbg_ptr, ptr0, len0, addHeapObject(options));
|
|
342
|
-
return takeObject(ret);
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* @param {string} path
|
|
346
|
-
* @param {any} options
|
|
347
|
-
* @returns {Promise<any>}
|
|
348
|
-
*/
|
|
349
|
-
patch(path, options) {
|
|
350
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
351
|
-
const len0 = WASM_VECTOR_LEN;
|
|
352
|
-
const ret = wasm.testclient_patch(this.__wbg_ptr, ptr0, len0, addHeapObject(options));
|
|
353
|
-
return takeObject(ret);
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* @param {string} path
|
|
357
|
-
* @param {any} headers
|
|
358
|
-
* @returns {Promise<any>}
|
|
359
|
-
*/
|
|
360
|
-
trace(path, headers) {
|
|
361
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
362
|
-
const len0 = WASM_VECTOR_LEN;
|
|
363
|
-
const ret = wasm.testclient_trace(this.__wbg_ptr, ptr0, len0, addHeapObject(headers));
|
|
364
|
-
return takeObject(ret);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* @param {string} path
|
|
368
|
-
* @param {any} headers
|
|
369
|
-
* @returns {Promise<any>}
|
|
370
|
-
*/
|
|
371
|
-
delete(path, headers) {
|
|
372
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
373
|
-
const len0 = WASM_VECTOR_LEN;
|
|
374
|
-
const ret = wasm.testclient_delete(this.__wbg_ptr, ptr0, len0, addHeapObject(headers));
|
|
375
|
-
return takeObject(ret);
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* @param {string} path
|
|
379
|
-
* @param {any} headers
|
|
380
|
-
* @returns {Promise<any>}
|
|
381
|
-
*/
|
|
382
|
-
options(path, headers) {
|
|
383
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
384
|
-
const len0 = WASM_VECTOR_LEN;
|
|
385
|
-
const ret = wasm.testclient_options(this.__wbg_ptr, ptr0, len0, addHeapObject(headers));
|
|
386
|
-
return takeObject(ret);
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
if (Symbol.dispose) TestClient.prototype[Symbol.dispose] = TestClient.prototype.free;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Initialize the WASM module (sets panic hook).
|
|
393
|
-
*/
|
|
394
|
-
export function init() {
|
|
395
|
-
wasm.init();
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
|
|
399
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
400
|
-
return addHeapObject(ret);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export function __wbg_Number_2d1dcfcf4ec51736(arg0) {
|
|
404
|
-
const ret = Number(getObject(arg0));
|
|
405
|
-
return ret;
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
409
|
-
const ret = String(getObject(arg1));
|
|
410
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
411
|
-
const len1 = WASM_VECTOR_LEN;
|
|
412
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
413
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export function __wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d(arg0, arg1) {
|
|
417
|
-
const v = getObject(arg1);
|
|
418
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
419
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
420
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
|
|
424
|
-
const v = getObject(arg0);
|
|
425
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
426
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
|
|
430
|
-
const ret = debugString(getObject(arg1));
|
|
431
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
432
|
-
const len1 = WASM_VECTOR_LEN;
|
|
433
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
434
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
|
|
438
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
439
|
-
return ret;
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
export function __wbg___wbindgen_is_bigint_0e1a2e3f55cfae27(arg0) {
|
|
443
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
444
|
-
return ret;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
|
|
448
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
449
|
-
return ret;
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
export function __wbg___wbindgen_is_null_dfda7d66506c95b5(arg0) {
|
|
453
|
-
const ret = getObject(arg0) === null;
|
|
454
|
-
return ret;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
|
|
458
|
-
const val = getObject(arg0);
|
|
459
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
460
|
-
return ret;
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
|
|
464
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
465
|
-
return ret;
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
|
|
469
|
-
const ret = getObject(arg0) === undefined;
|
|
470
|
-
return ret;
|
|
471
|
-
};
|
|
472
|
-
|
|
473
|
-
export function __wbg___wbindgen_jsval_eq_b6101cc9cef1fe36(arg0, arg1) {
|
|
474
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
475
|
-
return ret;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
|
|
479
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
480
|
-
return ret;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
|
|
484
|
-
const obj = getObject(arg1);
|
|
485
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
486
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
487
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
488
|
-
};
|
|
489
|
-
|
|
490
|
-
export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
|
|
491
|
-
const obj = getObject(arg1);
|
|
492
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
493
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
494
|
-
var len1 = WASM_VECTOR_LEN;
|
|
495
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
496
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
|
|
500
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export function __wbg__wbg_cb_unref_87dfb5aaa0cbcea7(arg0) {
|
|
504
|
-
getObject(arg0)._wbg_cb_unref();
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
export function __wbg_call_3020136f7a2d6e44() { return handleError(function (arg0, arg1, arg2) {
|
|
508
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
509
|
-
return addHeapObject(ret);
|
|
510
|
-
}, arguments) };
|
|
511
|
-
|
|
512
|
-
export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
|
|
513
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
514
|
-
return addHeapObject(ret);
|
|
515
|
-
}, arguments) };
|
|
516
|
-
|
|
517
|
-
export function __wbg_call_c8baa5c5e72d274e() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
518
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
519
|
-
return addHeapObject(ret);
|
|
520
|
-
}, arguments) };
|
|
521
|
-
|
|
522
|
-
export function __wbg_construct_8d61a09a064d7a0e() { return handleError(function (arg0, arg1) {
|
|
523
|
-
const ret = Reflect.construct(getObject(arg0), getObject(arg1));
|
|
524
|
-
return addHeapObject(ret);
|
|
525
|
-
}, arguments) };
|
|
526
|
-
|
|
527
|
-
export function __wbg_done_62ea16af4ce34b24(arg0) {
|
|
528
|
-
const ret = getObject(arg0).done;
|
|
529
|
-
return ret;
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
export function __wbg_entries_83c79938054e065f(arg0) {
|
|
533
|
-
const ret = Object.entries(getObject(arg0));
|
|
534
|
-
return addHeapObject(ret);
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
538
|
-
let deferred0_0;
|
|
539
|
-
let deferred0_1;
|
|
540
|
-
try {
|
|
541
|
-
deferred0_0 = arg0;
|
|
542
|
-
deferred0_1 = arg1;
|
|
543
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
544
|
-
} finally {
|
|
545
|
-
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
export function __wbg_finally_9d2144c01c15bee7(arg0, arg1) {
|
|
550
|
-
const ret = getObject(arg0).finally(getObject(arg1));
|
|
551
|
-
return addHeapObject(ret);
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
export function __wbg_for_7246e2a062d6960c(arg0, arg1) {
|
|
555
|
-
const ret = Symbol.for(getStringFromWasm0(arg0, arg1));
|
|
556
|
-
return addHeapObject(ret);
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
export function __wbg_from_29a8414a7a7cd19d(arg0) {
|
|
560
|
-
const ret = Array.from(getObject(arg0));
|
|
561
|
-
return addHeapObject(ret);
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
export function __wbg_getRandomValues_1c61fac11405ffdc() { return handleError(function (arg0, arg1) {
|
|
565
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
566
|
-
}, arguments) };
|
|
567
|
-
|
|
568
|
-
export function __wbg_getRandomValues_9b655bdd369112f2() { return handleError(function (arg0, arg1) {
|
|
569
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
570
|
-
}, arguments) };
|
|
571
|
-
|
|
572
|
-
export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
|
|
573
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
574
|
-
return addHeapObject(ret);
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
|
|
578
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
579
|
-
return addHeapObject(ret);
|
|
580
|
-
}, arguments) };
|
|
581
|
-
|
|
582
|
-
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
583
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
584
|
-
return addHeapObject(ret);
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
export function __wbg_has_0e670569d65d3a45() { return handleError(function (arg0, arg1) {
|
|
588
|
-
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
589
|
-
return ret;
|
|
590
|
-
}, arguments) };
|
|
591
|
-
|
|
592
|
-
export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
593
|
-
let result;
|
|
594
|
-
try {
|
|
595
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
596
|
-
} catch (_) {
|
|
597
|
-
result = false;
|
|
598
|
-
}
|
|
599
|
-
const ret = result;
|
|
600
|
-
return ret;
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
export function __wbg_instanceof_Error_3443650560328fa9(arg0) {
|
|
604
|
-
let result;
|
|
605
|
-
try {
|
|
606
|
-
result = getObject(arg0) instanceof Error;
|
|
607
|
-
} catch (_) {
|
|
608
|
-
result = false;
|
|
609
|
-
}
|
|
610
|
-
const ret = result;
|
|
611
|
-
return ret;
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
export function __wbg_instanceof_Map_084be8da74364158(arg0) {
|
|
615
|
-
let result;
|
|
616
|
-
try {
|
|
617
|
-
result = getObject(arg0) instanceof Map;
|
|
618
|
-
} catch (_) {
|
|
619
|
-
result = false;
|
|
620
|
-
}
|
|
621
|
-
const ret = result;
|
|
622
|
-
return ret;
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
export function __wbg_instanceof_Object_577e21051f7bcb79(arg0) {
|
|
626
|
-
let result;
|
|
627
|
-
try {
|
|
628
|
-
result = getObject(arg0) instanceof Object;
|
|
629
|
-
} catch (_) {
|
|
630
|
-
result = false;
|
|
631
|
-
}
|
|
632
|
-
const ret = result;
|
|
633
|
-
return ret;
|
|
634
|
-
};
|
|
635
|
-
|
|
636
|
-
export function __wbg_instanceof_Promise_eca6c43a2610558d(arg0) {
|
|
637
|
-
let result;
|
|
638
|
-
try {
|
|
639
|
-
result = getObject(arg0) instanceof Promise;
|
|
640
|
-
} catch (_) {
|
|
641
|
-
result = false;
|
|
642
|
-
}
|
|
643
|
-
const ret = result;
|
|
644
|
-
return ret;
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
648
|
-
let result;
|
|
649
|
-
try {
|
|
650
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
651
|
-
} catch (_) {
|
|
652
|
-
result = false;
|
|
653
|
-
}
|
|
654
|
-
const ret = result;
|
|
655
|
-
return ret;
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
export function __wbg_isArray_51fd9e6422c0a395(arg0) {
|
|
659
|
-
const ret = Array.isArray(getObject(arg0));
|
|
660
|
-
return ret;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
export function __wbg_isSafeInteger_ae7d3f054d55fa16(arg0) {
|
|
664
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
665
|
-
return ret;
|
|
666
|
-
};
|
|
667
|
-
|
|
668
|
-
export function __wbg_iterator_27b7c8b35ab3e86b() {
|
|
669
|
-
const ret = Symbol.iterator;
|
|
670
|
-
return addHeapObject(ret);
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
export function __wbg_keys_f5c6002ff150fc6c(arg0) {
|
|
674
|
-
const ret = Object.keys(getObject(arg0));
|
|
675
|
-
return addHeapObject(ret);
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
export function __wbg_length_1f83b8e5895c84aa(arg0) {
|
|
679
|
-
const ret = getObject(arg0).length;
|
|
680
|
-
return ret;
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
export function __wbg_length_22ac23eaec9d8053(arg0) {
|
|
684
|
-
const ret = getObject(arg0).length;
|
|
685
|
-
return ret;
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
export function __wbg_length_d45040a40c570362(arg0) {
|
|
689
|
-
const ret = getObject(arg0).length;
|
|
690
|
-
return ret;
|
|
691
|
-
};
|
|
692
|
-
|
|
693
|
-
export function __wbg_message_0305fa7903f4b3d9(arg0) {
|
|
694
|
-
const ret = getObject(arg0).message;
|
|
695
|
-
return addHeapObject(ret);
|
|
696
|
-
};
|
|
697
|
-
|
|
698
|
-
export function __wbg_new_1ba21ce319a06297() {
|
|
699
|
-
const ret = new Object();
|
|
700
|
-
return addHeapObject(ret);
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
export function __wbg_new_25f239778d6112b9() {
|
|
704
|
-
const ret = new Array();
|
|
705
|
-
return addHeapObject(ret);
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
export function __wbg_new_6421f6084cc5bc5a(arg0) {
|
|
709
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
710
|
-
return addHeapObject(ret);
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
export function __wbg_new_8a6f238a6ece86ea() {
|
|
714
|
-
const ret = new Error();
|
|
715
|
-
return addHeapObject(ret);
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
export function __wbg_new_b546ae120718850e() {
|
|
719
|
-
const ret = new Map();
|
|
720
|
-
return addHeapObject(ret);
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
724
|
-
try {
|
|
725
|
-
var state0 = {a: arg0, b: arg1};
|
|
726
|
-
var cb0 = (arg0, arg1) => {
|
|
727
|
-
const a = state0.a;
|
|
728
|
-
state0.a = 0;
|
|
729
|
-
try {
|
|
730
|
-
return __wasm_bindgen_func_elem_4297(a, state0.b, arg0, arg1);
|
|
731
|
-
} finally {
|
|
732
|
-
state0.a = a;
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
const ret = new Promise(cb0);
|
|
736
|
-
return addHeapObject(ret);
|
|
737
|
-
} finally {
|
|
738
|
-
state0.a = state0.b = 0;
|
|
739
|
-
}
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
|
|
743
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
744
|
-
return addHeapObject(ret);
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
export function __wbg_next_138a17bbf04e926c(arg0) {
|
|
748
|
-
const ret = getObject(arg0).next;
|
|
749
|
-
return addHeapObject(ret);
|
|
750
|
-
};
|
|
751
|
-
|
|
752
|
-
export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg0) {
|
|
753
|
-
const ret = getObject(arg0).next();
|
|
754
|
-
return addHeapObject(ret);
|
|
755
|
-
}, arguments) };
|
|
756
|
-
|
|
757
|
-
export function __wbg_now_69d776cd24f5215b() {
|
|
758
|
-
const ret = Date.now();
|
|
759
|
-
return ret;
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
export function __wbg_of_b8cd42ebb79fb759(arg0, arg1) {
|
|
763
|
-
const ret = Array.of(getObject(arg0), getObject(arg1));
|
|
764
|
-
return addHeapObject(ret);
|
|
765
|
-
};
|
|
766
|
-
|
|
767
|
-
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
768
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
|
|
772
|
-
const ret = getObject(arg0).push(getObject(arg1));
|
|
773
|
-
return ret;
|
|
774
|
-
};
|
|
775
|
-
|
|
776
|
-
export function __wbg_queueMicrotask_9b549dfce8865860(arg0) {
|
|
777
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
778
|
-
return addHeapObject(ret);
|
|
779
|
-
};
|
|
780
|
-
|
|
781
|
-
export function __wbg_queueMicrotask_fca69f5bfad613a5(arg0) {
|
|
782
|
-
queueMicrotask(getObject(arg0));
|
|
783
|
-
};
|
|
784
|
-
|
|
785
|
-
export function __wbg_race_cf804f784a97f8db(arg0) {
|
|
786
|
-
const ret = Promise.race(getObject(arg0));
|
|
787
|
-
return addHeapObject(ret);
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
export function __wbg_resolve_fd5bfbaa4ce36e1e(arg0) {
|
|
791
|
-
const ret = Promise.resolve(getObject(arg0));
|
|
792
|
-
return addHeapObject(ret);
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
796
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
export function __wbg_set_781438a03c0c3c81() { return handleError(function (arg0, arg1, arg2) {
|
|
800
|
-
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
801
|
-
return ret;
|
|
802
|
-
}, arguments) };
|
|
803
|
-
|
|
804
|
-
export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
|
|
805
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
|
|
809
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
810
|
-
return addHeapObject(ret);
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
814
|
-
const ret = getObject(arg1).stack;
|
|
815
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
816
|
-
const len1 = WASM_VECTOR_LEN;
|
|
817
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
818
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
819
|
-
};
|
|
820
|
-
|
|
821
|
-
export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
|
|
822
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
823
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
|
|
827
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
828
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
export function __wbg_static_accessor_SELF_08f5a74c69739274() {
|
|
832
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
833
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
|
|
837
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
838
|
-
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
export function __wbg_stringify_655a6390e1f5eb6b() { return handleError(function (arg0) {
|
|
842
|
-
const ret = JSON.stringify(getObject(arg0));
|
|
843
|
-
return addHeapObject(ret);
|
|
844
|
-
}, arguments) };
|
|
845
|
-
|
|
846
|
-
export function __wbg_then_429f7caf1026411d(arg0, arg1, arg2) {
|
|
847
|
-
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
848
|
-
return addHeapObject(ret);
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
export function __wbg_then_4f95312d68691235(arg0, arg1) {
|
|
852
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
853
|
-
return addHeapObject(ret);
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
export function __wbg_toString_49326ce0cb2d58c4() { return handleError(function (arg0, arg1) {
|
|
857
|
-
const ret = getObject(arg0).toString(arg1);
|
|
858
|
-
return addHeapObject(ret);
|
|
859
|
-
}, arguments) };
|
|
860
|
-
|
|
861
|
-
export function __wbg_value_57b7b035e117f7ee(arg0) {
|
|
862
|
-
const ret = getObject(arg0).value;
|
|
863
|
-
return addHeapObject(ret);
|
|
864
|
-
};
|
|
865
|
-
|
|
866
|
-
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
867
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
868
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
869
|
-
return addHeapObject(ret);
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
export function __wbindgen_cast_35aab93a0b8c860f(arg0, arg1) {
|
|
873
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 14, function: Function { arguments: [], shim_idx: 15, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
874
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_404, __wasm_bindgen_func_elem_405);
|
|
875
|
-
return addHeapObject(ret);
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
879
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
880
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
881
|
-
return addHeapObject(ret);
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
export function __wbindgen_cast_75edd3f875320618(arg0, arg1) {
|
|
885
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 120, function: Function { arguments: [Externref], shim_idx: 121, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
886
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_640, __wasm_bindgen_func_elem_641);
|
|
887
|
-
return addHeapObject(ret);
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
891
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
892
|
-
const ret = arg0;
|
|
893
|
-
return addHeapObject(ret);
|
|
894
|
-
};
|
|
895
|
-
|
|
896
|
-
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
897
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
898
|
-
const ret = arg0;
|
|
899
|
-
return addHeapObject(ret);
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
903
|
-
const ret = getObject(arg0);
|
|
904
|
-
return addHeapObject(ret);
|
|
905
|
-
};
|
|
906
|
-
|
|
907
|
-
export function __wbindgen_object_drop_ref(arg0) {
|
|
908
|
-
takeObject(arg0);
|
|
909
|
-
};
|
|
910
|
-
|
|
911
|
-
export function __wbindgen_object_is_undefined(arg0) {
|
|
912
|
-
const ret = getObject(arg0) === undefined;
|
|
913
|
-
return ret;
|
|
914
|
-
};
|