basedpl 0.1.81 → 0.1.83
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 +11 -0
- package/basedpl_wasm.js +249 -234
- package/basedpl_wasm_bg.wasm +0 -0
- package/bpl.tmLanguage.json +6 -6
- package/browser/SAX2B.woff2 +0 -0
- package/browser/bpl-editor.js +32 -0
- package/{input.js → browser/input.js} +2 -2
- package/browser/language.js +3 -0
- package/{lb.js → browser/lb.js} +42 -41
- package/hpl.tmLanguage.json +3 -3
- package/package.json +10 -2
- package/SAX2B.woff2 +0 -0
- package/bpl-editor.js +0 -476
- /package/{layout.json → browser/layout.json} +0 -0
package/basedpl_wasm.js
CHANGED
|
@@ -85,10 +85,17 @@ export function configure(base, panic) {
|
|
|
85
85
|
* @returns {any}
|
|
86
86
|
*/
|
|
87
87
|
export function costs(files, cases, prefs) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
let ptr0, len0, ptr1, len1;
|
|
89
|
+
try {
|
|
90
|
+
ptr0 = isLikeNone(cases) ? 0 : passArrayJsValueToWasm0(cases, wasm.__wbindgen_malloc);
|
|
91
|
+
len0 = WASM_VECTOR_LEN;
|
|
92
|
+
ptr1 = isLikeNone(prefs) ? 0 : passStringToWasm0(prefs, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
93
|
+
len1 = WASM_VECTOR_LEN;
|
|
94
|
+
} catch (e) {
|
|
95
|
+
if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
|
|
96
|
+
if (ptr0) { wasm.__externref_drop_slice(ptr0, len0); wasm.__wbindgen_free(ptr0, len0 * 4, 4); }
|
|
97
|
+
throw e;
|
|
98
|
+
}
|
|
92
99
|
const ret = wasm.costs(files, ptr0, len0, ptr1, len1);
|
|
93
100
|
if (ret[2]) {
|
|
94
101
|
throw takeFromExternrefTable0(ret[1]);
|
|
@@ -133,166 +140,173 @@ export function symbols() {
|
|
|
133
140
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
134
141
|
}
|
|
135
142
|
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Keeps the calling thread busy for 0.1 s after a retry's pause: `rustymath::timing::warm`.
|
|
146
|
+
*/
|
|
147
|
+
export function warm() {
|
|
148
|
+
wasm.warm();
|
|
149
|
+
}
|
|
136
150
|
function __wbg_get_imports() {
|
|
137
151
|
const import0 = {
|
|
138
152
|
__proto__: null,
|
|
139
|
-
|
|
153
|
+
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
140
154
|
const v = arg1;
|
|
141
155
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
142
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
143
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
156
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
157
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
144
158
|
},
|
|
145
|
-
|
|
159
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
146
160
|
const v = arg0;
|
|
147
161
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
148
162
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
149
163
|
},
|
|
150
|
-
|
|
164
|
+
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
151
165
|
const ret = debugString(arg1);
|
|
152
166
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
153
167
|
const len1 = WASM_VECTOR_LEN;
|
|
154
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
155
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
168
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
169
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
156
170
|
},
|
|
157
|
-
|
|
171
|
+
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
158
172
|
const ret = typeof(arg0) === 'bigint';
|
|
159
173
|
return ret;
|
|
160
174
|
},
|
|
161
|
-
|
|
175
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
162
176
|
const ret = typeof(arg0) === 'function';
|
|
163
177
|
return ret;
|
|
164
178
|
},
|
|
165
|
-
|
|
179
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
166
180
|
const ret = arg0 === null;
|
|
167
181
|
return ret;
|
|
168
182
|
},
|
|
169
|
-
|
|
183
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
170
184
|
const val = arg0;
|
|
171
185
|
const ret = typeof(val) === 'object' && val !== null;
|
|
172
186
|
return ret;
|
|
173
187
|
},
|
|
174
|
-
|
|
188
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
175
189
|
const ret = arg0 === undefined;
|
|
176
190
|
return ret;
|
|
177
191
|
},
|
|
178
|
-
|
|
192
|
+
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
179
193
|
const ret = arg0 === arg1;
|
|
180
194
|
return ret;
|
|
181
195
|
},
|
|
182
|
-
|
|
196
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
183
197
|
const obj = arg1;
|
|
184
198
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
185
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
186
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
199
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
200
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
187
201
|
},
|
|
188
|
-
|
|
202
|
+
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
189
203
|
const obj = arg1;
|
|
190
204
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
191
205
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
192
206
|
var len1 = WASM_VECTOR_LEN;
|
|
193
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
194
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
207
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
208
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
195
209
|
},
|
|
196
|
-
|
|
210
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
197
211
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
198
212
|
},
|
|
199
|
-
|
|
200
|
-
const ret = arg0.call(arg1, arg2
|
|
213
|
+
__wbg_call_a410eb4b59ed5965: function() { return handleError(function (arg0, arg1, arg2) {
|
|
214
|
+
const ret = arg0.call(arg1, arg2);
|
|
201
215
|
return ret;
|
|
202
216
|
}, arguments); },
|
|
203
|
-
|
|
204
|
-
const ret = arg0.call(arg1, arg2);
|
|
217
|
+
__wbg_call_fc92fee6137d452d: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
218
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
205
219
|
return ret;
|
|
206
220
|
}, arguments); },
|
|
207
|
-
|
|
221
|
+
__wbg_construct_8670bb4c2b062969: function() { return handleError(function (arg0, arg1) {
|
|
208
222
|
const ret = Reflect.construct(arg0, arg1);
|
|
209
223
|
return ret;
|
|
210
224
|
}, arguments); },
|
|
211
|
-
|
|
225
|
+
__wbg_createElement_de4a31ed2fb252be: function() { return handleError(function (arg0, arg1, arg2) {
|
|
212
226
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
213
227
|
return ret;
|
|
214
228
|
}, arguments); },
|
|
215
|
-
|
|
229
|
+
__wbg_document_3b5c3071b43e97ee: function(arg0) {
|
|
216
230
|
const ret = arg0.document;
|
|
217
231
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
218
232
|
},
|
|
219
|
-
|
|
233
|
+
__wbg_done_57e08d0be6e30c02: function(arg0) {
|
|
220
234
|
const ret = arg0.done;
|
|
221
235
|
return ret;
|
|
222
236
|
},
|
|
223
|
-
|
|
237
|
+
__wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
|
|
224
238
|
const ret = Object.entries(arg0);
|
|
225
239
|
return ret;
|
|
226
240
|
},
|
|
227
|
-
|
|
241
|
+
__wbg_eval_4b86caa0c9fd0a9c: function() { return handleError(function (arg0, arg1) {
|
|
228
242
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
229
243
|
return ret;
|
|
230
244
|
}, arguments); },
|
|
231
|
-
|
|
245
|
+
__wbg_exec_8624344b5a890df8: function(arg0, arg1, arg2) {
|
|
232
246
|
const ret = arg0.exec(getStringFromWasm0(arg1, arg2));
|
|
233
247
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
234
248
|
},
|
|
235
|
-
|
|
249
|
+
__wbg_fontBoundingBoxAscent_61e48804fd37a11a: function(arg0) {
|
|
236
250
|
const ret = arg0.fontBoundingBoxAscent;
|
|
237
251
|
return ret;
|
|
238
252
|
},
|
|
239
|
-
|
|
253
|
+
__wbg_fontBoundingBoxDescent_59cc69f2bdea4644: function(arg0) {
|
|
240
254
|
const ret = arg0.fontBoundingBoxDescent;
|
|
241
255
|
return ret;
|
|
242
256
|
},
|
|
243
|
-
|
|
257
|
+
__wbg_from_eac91875c8a5ffa4: function(arg0) {
|
|
244
258
|
const ret = Array.from(arg0);
|
|
245
259
|
return ret;
|
|
246
260
|
},
|
|
247
|
-
|
|
261
|
+
__wbg_getAllResponseHeaders_7a4942e43031efbb: function() { return handleError(function (arg0, arg1) {
|
|
248
262
|
const ret = arg1.getAllResponseHeaders();
|
|
249
263
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
250
264
|
const len1 = WASM_VECTOR_LEN;
|
|
251
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
252
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
265
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
266
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
253
267
|
}, arguments); },
|
|
254
|
-
|
|
268
|
+
__wbg_getContext_1938edb9a972f63d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
255
269
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
256
270
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
257
271
|
}, arguments); },
|
|
258
|
-
|
|
272
|
+
__wbg_getContext_d93f904b714852ae: function() { return handleError(function (arg0, arg1, arg2) {
|
|
259
273
|
const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
|
|
260
274
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
261
275
|
}, arguments); },
|
|
262
|
-
|
|
276
|
+
__wbg_getRandomValues_66707e3bcfdab577: function() { return handleError(function (arg0, arg1) {
|
|
263
277
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
264
278
|
}, arguments); },
|
|
265
|
-
|
|
279
|
+
__wbg_getRandomValues_8b6f1f663e6f188d: function() { return handleError(function (arg0, arg1) {
|
|
266
280
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
267
281
|
}, arguments); },
|
|
268
|
-
|
|
282
|
+
__wbg_getTime_edc91481cbc4cd78: function(arg0) {
|
|
269
283
|
const ret = arg0.getTime();
|
|
270
284
|
return ret;
|
|
271
285
|
},
|
|
272
|
-
|
|
286
|
+
__wbg_getTimezoneOffset_87127d92c2c117e9: function(arg0) {
|
|
273
287
|
const ret = arg0.getTimezoneOffset();
|
|
274
288
|
return ret;
|
|
275
289
|
},
|
|
276
|
-
|
|
290
|
+
__wbg_get_2080c49015e35254: function() { return handleError(function (arg0, arg1) {
|
|
277
291
|
const ret = Reflect.get(arg0, arg1);
|
|
278
292
|
return ret;
|
|
279
293
|
}, arguments); },
|
|
280
|
-
|
|
294
|
+
__wbg_get_d7176cfb76d71114: function(arg0, arg1) {
|
|
281
295
|
const ret = arg0[arg1 >>> 0];
|
|
282
296
|
return ret;
|
|
283
297
|
},
|
|
284
|
-
|
|
298
|
+
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
285
299
|
const ret = arg0[arg1 >>> 0];
|
|
286
300
|
return ret;
|
|
287
301
|
},
|
|
288
|
-
|
|
302
|
+
__wbg_href_436d1661275da591: function(arg0, arg1) {
|
|
289
303
|
const ret = arg1.href;
|
|
290
304
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
291
305
|
const len1 = WASM_VECTOR_LEN;
|
|
292
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
293
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
306
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
307
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
294
308
|
},
|
|
295
|
-
|
|
309
|
+
__wbg_instanceof_BigInt64Array_731716723b8f61e9: function(arg0) {
|
|
296
310
|
let result;
|
|
297
311
|
try {
|
|
298
312
|
result = arg0 instanceof BigInt64Array;
|
|
@@ -302,7 +316,7 @@ function __wbg_get_imports() {
|
|
|
302
316
|
const ret = result;
|
|
303
317
|
return ret;
|
|
304
318
|
},
|
|
305
|
-
|
|
319
|
+
__wbg_instanceof_CanvasRenderingContext2d_72a60be8aaadecab: function(arg0) {
|
|
306
320
|
let result;
|
|
307
321
|
try {
|
|
308
322
|
result = arg0 instanceof CanvasRenderingContext2D;
|
|
@@ -312,7 +326,7 @@ function __wbg_get_imports() {
|
|
|
312
326
|
const ret = result;
|
|
313
327
|
return ret;
|
|
314
328
|
},
|
|
315
|
-
|
|
329
|
+
__wbg_instanceof_Error_74e3cca0c4a69161: function(arg0) {
|
|
316
330
|
let result;
|
|
317
331
|
try {
|
|
318
332
|
result = arg0 instanceof Error;
|
|
@@ -322,7 +336,7 @@ function __wbg_get_imports() {
|
|
|
322
336
|
const ret = result;
|
|
323
337
|
return ret;
|
|
324
338
|
},
|
|
325
|
-
|
|
339
|
+
__wbg_instanceof_Float32Array_94718abab7dc1d7f: function(arg0) {
|
|
326
340
|
let result;
|
|
327
341
|
try {
|
|
328
342
|
result = arg0 instanceof Float32Array;
|
|
@@ -332,7 +346,7 @@ function __wbg_get_imports() {
|
|
|
332
346
|
const ret = result;
|
|
333
347
|
return ret;
|
|
334
348
|
},
|
|
335
|
-
|
|
349
|
+
__wbg_instanceof_Float64Array_4acace5b49aaf791: function(arg0) {
|
|
336
350
|
let result;
|
|
337
351
|
try {
|
|
338
352
|
result = arg0 instanceof Float64Array;
|
|
@@ -342,7 +356,7 @@ function __wbg_get_imports() {
|
|
|
342
356
|
const ret = result;
|
|
343
357
|
return ret;
|
|
344
358
|
},
|
|
345
|
-
|
|
359
|
+
__wbg_instanceof_HtmlCanvasElement_89f280683e987b9e: function(arg0) {
|
|
346
360
|
let result;
|
|
347
361
|
try {
|
|
348
362
|
result = arg0 instanceof HTMLCanvasElement;
|
|
@@ -352,7 +366,7 @@ function __wbg_get_imports() {
|
|
|
352
366
|
const ret = result;
|
|
353
367
|
return ret;
|
|
354
368
|
},
|
|
355
|
-
|
|
369
|
+
__wbg_instanceof_Int16Array_9818b66c24287163: function(arg0) {
|
|
356
370
|
let result;
|
|
357
371
|
try {
|
|
358
372
|
result = arg0 instanceof Int16Array;
|
|
@@ -362,7 +376,7 @@ function __wbg_get_imports() {
|
|
|
362
376
|
const ret = result;
|
|
363
377
|
return ret;
|
|
364
378
|
},
|
|
365
|
-
|
|
379
|
+
__wbg_instanceof_Int32Array_6d09616361bcf0c6: function(arg0) {
|
|
366
380
|
let result;
|
|
367
381
|
try {
|
|
368
382
|
result = arg0 instanceof Int32Array;
|
|
@@ -372,7 +386,7 @@ function __wbg_get_imports() {
|
|
|
372
386
|
const ret = result;
|
|
373
387
|
return ret;
|
|
374
388
|
},
|
|
375
|
-
|
|
389
|
+
__wbg_instanceof_Int8Array_9a6816d808405cd6: function(arg0) {
|
|
376
390
|
let result;
|
|
377
391
|
try {
|
|
378
392
|
result = arg0 instanceof Int8Array;
|
|
@@ -382,7 +396,7 @@ function __wbg_get_imports() {
|
|
|
382
396
|
const ret = result;
|
|
383
397
|
return ret;
|
|
384
398
|
},
|
|
385
|
-
|
|
399
|
+
__wbg_instanceof_OffscreenCanvasRenderingContext2d_a3c87a6b00a4bf2f: function(arg0) {
|
|
386
400
|
let result;
|
|
387
401
|
try {
|
|
388
402
|
result = arg0 instanceof OffscreenCanvasRenderingContext2D;
|
|
@@ -392,7 +406,7 @@ function __wbg_get_imports() {
|
|
|
392
406
|
const ret = result;
|
|
393
407
|
return ret;
|
|
394
408
|
},
|
|
395
|
-
|
|
409
|
+
__wbg_instanceof_Uint16Array_31430a8f45878be7: function(arg0) {
|
|
396
410
|
let result;
|
|
397
411
|
try {
|
|
398
412
|
result = arg0 instanceof Uint16Array;
|
|
@@ -402,7 +416,7 @@ function __wbg_get_imports() {
|
|
|
402
416
|
const ret = result;
|
|
403
417
|
return ret;
|
|
404
418
|
},
|
|
405
|
-
|
|
419
|
+
__wbg_instanceof_Uint32Array_ba721c3060d01f9a: function(arg0) {
|
|
406
420
|
let result;
|
|
407
421
|
try {
|
|
408
422
|
result = arg0 instanceof Uint32Array;
|
|
@@ -412,7 +426,7 @@ function __wbg_get_imports() {
|
|
|
412
426
|
const ret = result;
|
|
413
427
|
return ret;
|
|
414
428
|
},
|
|
415
|
-
|
|
429
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
416
430
|
let result;
|
|
417
431
|
try {
|
|
418
432
|
result = arg0 instanceof Uint8Array;
|
|
@@ -422,7 +436,7 @@ function __wbg_get_imports() {
|
|
|
422
436
|
const ret = result;
|
|
423
437
|
return ret;
|
|
424
438
|
},
|
|
425
|
-
|
|
439
|
+
__wbg_instanceof_Uint8ClampedArray_9fe0171273992aa0: function(arg0) {
|
|
426
440
|
let result;
|
|
427
441
|
try {
|
|
428
442
|
result = arg0 instanceof Uint8ClampedArray;
|
|
@@ -432,7 +446,7 @@ function __wbg_get_imports() {
|
|
|
432
446
|
const ret = result;
|
|
433
447
|
return ret;
|
|
434
448
|
},
|
|
435
|
-
|
|
449
|
+
__wbg_instanceof_Window_5cf453f5639aa1a2: function(arg0) {
|
|
436
450
|
let result;
|
|
437
451
|
try {
|
|
438
452
|
result = arg0 instanceof Window;
|
|
@@ -442,147 +456,147 @@ function __wbg_get_imports() {
|
|
|
442
456
|
const ret = result;
|
|
443
457
|
return ret;
|
|
444
458
|
},
|
|
445
|
-
|
|
459
|
+
__wbg_isArray_bcf1376d0d732d08: function(arg0) {
|
|
446
460
|
const ret = Array.isArray(arg0);
|
|
447
461
|
return ret;
|
|
448
462
|
},
|
|
449
|
-
|
|
463
|
+
__wbg_length_03a2b32a9178fe11: function(arg0) {
|
|
450
464
|
const ret = arg0.length;
|
|
451
465
|
return ret;
|
|
452
466
|
},
|
|
453
|
-
|
|
467
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
454
468
|
const ret = arg0.length;
|
|
455
469
|
return ret;
|
|
456
470
|
},
|
|
457
|
-
|
|
471
|
+
__wbg_length_1e6e6766bd656de2: function(arg0) {
|
|
458
472
|
const ret = arg0.length;
|
|
459
473
|
return ret;
|
|
460
474
|
},
|
|
461
|
-
|
|
475
|
+
__wbg_length_2bed110acaa683b2: function(arg0) {
|
|
462
476
|
const ret = arg0.length;
|
|
463
477
|
return ret;
|
|
464
478
|
},
|
|
465
|
-
|
|
479
|
+
__wbg_length_5a8bb8abe1e54e15: function(arg0) {
|
|
466
480
|
const ret = arg0.length;
|
|
467
481
|
return ret;
|
|
468
482
|
},
|
|
469
|
-
|
|
483
|
+
__wbg_length_6e9d2869242cabf3: function(arg0) {
|
|
470
484
|
const ret = arg0.length;
|
|
471
485
|
return ret;
|
|
472
486
|
},
|
|
473
|
-
|
|
487
|
+
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
474
488
|
const ret = arg0.length;
|
|
475
489
|
return ret;
|
|
476
490
|
},
|
|
477
|
-
|
|
491
|
+
__wbg_length_b196760b827c9ae2: function(arg0) {
|
|
478
492
|
const ret = arg0.length;
|
|
479
493
|
return ret;
|
|
480
494
|
},
|
|
481
|
-
|
|
495
|
+
__wbg_length_bf440e957c4be5c5: function(arg0) {
|
|
482
496
|
const ret = arg0.length;
|
|
483
497
|
return ret;
|
|
484
498
|
},
|
|
485
|
-
|
|
499
|
+
__wbg_length_c702d06d28b96b72: function(arg0) {
|
|
486
500
|
const ret = arg0.length;
|
|
487
501
|
return ret;
|
|
488
502
|
},
|
|
489
|
-
|
|
503
|
+
__wbg_length_ff9bc46dfee04766: function(arg0) {
|
|
490
504
|
const ret = arg0.length;
|
|
491
505
|
return ret;
|
|
492
506
|
},
|
|
493
|
-
|
|
507
|
+
__wbg_matchAll_9ca01960e93bbd3a: function(arg0, arg1) {
|
|
494
508
|
const ret = arg0.matchAll(arg1);
|
|
495
509
|
return ret;
|
|
496
510
|
},
|
|
497
|
-
|
|
511
|
+
__wbg_measureText_13b482164af0fd80: function() { return handleError(function (arg0, arg1, arg2) {
|
|
498
512
|
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
499
513
|
return ret;
|
|
500
514
|
}, arguments); },
|
|
501
|
-
|
|
515
|
+
__wbg_measureText_d831259b682a3f7d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
502
516
|
const ret = arg0.measureText(getStringFromWasm0(arg1, arg2));
|
|
503
517
|
return ret;
|
|
504
518
|
}, arguments); },
|
|
505
|
-
|
|
519
|
+
__wbg_message_43d8c8f1d543a349: function(arg0) {
|
|
506
520
|
const ret = arg0.message;
|
|
507
521
|
return ret;
|
|
508
522
|
},
|
|
509
|
-
|
|
523
|
+
__wbg_new_0_36d738a0c8cfac43: function() {
|
|
510
524
|
const ret = new Date();
|
|
511
525
|
return ret;
|
|
512
526
|
},
|
|
513
|
-
|
|
527
|
+
__wbg_new_13de428334042d26: function(arg0) {
|
|
514
528
|
const ret = new Uint8Array(arg0);
|
|
515
529
|
return ret;
|
|
516
530
|
},
|
|
517
|
-
|
|
518
|
-
const ret = new
|
|
531
|
+
__wbg_new_2bfd0f45e60518b1: function() { return handleError(function (arg0, arg1) {
|
|
532
|
+
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
519
533
|
return ret;
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
const ret = new
|
|
534
|
+
}, arguments); },
|
|
535
|
+
__wbg_new_37eb45aaf5eeb820: function() {
|
|
536
|
+
const ret = new Array();
|
|
523
537
|
return ret;
|
|
524
538
|
},
|
|
525
|
-
|
|
526
|
-
const ret = new
|
|
539
|
+
__wbg_new_3e95cd7386bb9a6c: function(arg0) {
|
|
540
|
+
const ret = new Date(arg0);
|
|
527
541
|
return ret;
|
|
528
542
|
},
|
|
529
|
-
|
|
530
|
-
const ret = new OffscreenCanvas(arg0 >>> 0, arg1 >>> 0);
|
|
531
|
-
return ret;
|
|
532
|
-
}, arguments); },
|
|
533
|
-
__wbg_new_d1d1f48568532d74: function() { return handleError(function () {
|
|
543
|
+
__wbg_new_433d3f85043258e7: function() { return handleError(function () {
|
|
534
544
|
const ret = new XMLHttpRequest();
|
|
535
545
|
return ret;
|
|
536
546
|
}, arguments); },
|
|
537
|
-
|
|
538
|
-
const ret = new
|
|
547
|
+
__wbg_new_787b9fb330d55d78: function(arg0, arg1) {
|
|
548
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
539
549
|
return ret;
|
|
540
550
|
},
|
|
541
|
-
|
|
542
|
-
const ret = new
|
|
551
|
+
__wbg_new_cd4348290afae586: function() {
|
|
552
|
+
const ret = new Object();
|
|
543
553
|
return ret;
|
|
544
554
|
},
|
|
545
|
-
|
|
546
|
-
const ret = new
|
|
555
|
+
__wbg_new_from_slice_31fd9592d83f3fe6: function(arg0, arg1) {
|
|
556
|
+
const ret = new BigInt64Array(getArrayI64FromWasm0(arg0, arg1));
|
|
547
557
|
return ret;
|
|
548
558
|
},
|
|
549
|
-
|
|
550
|
-
const ret = new
|
|
559
|
+
__wbg_new_from_slice_355c10c5d8f2addb: function(arg0, arg1) {
|
|
560
|
+
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
551
561
|
return ret;
|
|
552
562
|
},
|
|
553
|
-
|
|
554
|
-
const ret = new
|
|
563
|
+
__wbg_new_from_slice_aaf85a9746711968: function(arg0, arg1) {
|
|
564
|
+
const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
|
|
555
565
|
return ret;
|
|
556
566
|
},
|
|
557
|
-
|
|
558
|
-
const ret = new
|
|
567
|
+
__wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) {
|
|
568
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
559
569
|
return ret;
|
|
560
570
|
},
|
|
561
|
-
|
|
562
|
-
const ret = new
|
|
571
|
+
__wbg_new_from_slice_c8184102bc38811b: function(arg0, arg1) {
|
|
572
|
+
const ret = new Int16Array(getArrayI16FromWasm0(arg0, arg1));
|
|
563
573
|
return ret;
|
|
564
574
|
},
|
|
565
|
-
|
|
575
|
+
__wbg_new_from_slice_e0c60a796e12bb7c: function(arg0, arg1) {
|
|
576
|
+
const ret = new Int32Array(getArrayI32FromWasm0(arg0, arg1));
|
|
577
|
+
return ret;
|
|
578
|
+
},
|
|
579
|
+
__wbg_new_no_args_7dba612d766302e4: function(arg0, arg1) {
|
|
566
580
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
567
581
|
return ret;
|
|
568
582
|
},
|
|
569
|
-
|
|
583
|
+
__wbg_new_with_base_44e88b67db0c589b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
570
584
|
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
571
585
|
return ret;
|
|
572
586
|
}, arguments); },
|
|
573
|
-
|
|
587
|
+
__wbg_new_with_year_month_day_hr_min_sec_a22891157876dabc: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
574
588
|
const ret = new Date(arg0 >>> 0, arg1, arg2, arg3, arg4, arg5);
|
|
575
589
|
return ret;
|
|
576
590
|
},
|
|
577
|
-
|
|
591
|
+
__wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
|
|
578
592
|
const ret = arg0.next();
|
|
579
593
|
return ret;
|
|
580
594
|
}, arguments); },
|
|
581
|
-
|
|
595
|
+
__wbg_normalize_2d352f86793b4b5f: function(arg0, arg1, arg2) {
|
|
582
596
|
const ret = arg0.normalize(getStringFromWasm0(arg1, arg2));
|
|
583
597
|
return ret;
|
|
584
598
|
},
|
|
585
|
-
|
|
599
|
+
__wbg_now_a96bc7f13b7f2a32: function() { return handleError(function () {
|
|
586
600
|
const ret = Date.now();
|
|
587
601
|
return ret;
|
|
588
602
|
}, arguments); },
|
|
@@ -590,122 +604,122 @@ function __wbg_get_imports() {
|
|
|
590
604
|
const ret = arg0.now();
|
|
591
605
|
return ret;
|
|
592
606
|
},
|
|
593
|
-
|
|
607
|
+
__wbg_of_e7ea0fcd535c1444: function(arg0, arg1) {
|
|
594
608
|
const ret = Array.of(arg0, arg1);
|
|
595
609
|
return ret;
|
|
596
610
|
},
|
|
597
|
-
|
|
611
|
+
__wbg_open_2053ae7791d71fe8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
598
612
|
arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
|
|
599
613
|
}, arguments); },
|
|
600
|
-
|
|
614
|
+
__wbg_parse_c3f72b5a24f83c01: function() { return handleError(function (arg0, arg1) {
|
|
601
615
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
602
616
|
return ret;
|
|
603
617
|
}, arguments); },
|
|
604
|
-
|
|
618
|
+
__wbg_performance_7e4e4494fdc9d07a: function(arg0) {
|
|
605
619
|
const ret = arg0.performance;
|
|
606
620
|
return ret;
|
|
607
621
|
},
|
|
608
|
-
|
|
609
|
-
|
|
622
|
+
__wbg_prototypesetcall_0a8cd47e2159469d: function(arg0, arg1, arg2) {
|
|
623
|
+
BigInt64Array.prototype.set.call(getArrayI64FromWasm0(arg0, arg1), arg2);
|
|
610
624
|
},
|
|
611
|
-
|
|
612
|
-
|
|
625
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
626
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
613
627
|
},
|
|
614
|
-
|
|
628
|
+
__wbg_prototypesetcall_153eecd0d28a42a5: function(arg0, arg1, arg2) {
|
|
615
629
|
Int32Array.prototype.set.call(getArrayI32FromWasm0(arg0, arg1), arg2);
|
|
616
630
|
},
|
|
617
|
-
|
|
631
|
+
__wbg_prototypesetcall_176a45d9d7816388: function(arg0, arg1, arg2) {
|
|
618
632
|
Uint16Array.prototype.set.call(getArrayU16FromWasm0(arg0, arg1), arg2);
|
|
619
633
|
},
|
|
620
|
-
|
|
621
|
-
Int8Array.prototype.set.call(getArrayI8FromWasm0(arg0, arg1), arg2);
|
|
622
|
-
},
|
|
623
|
-
__wbg_prototypesetcall_8b03c01e2c0f8066: function(arg0, arg1, arg2) {
|
|
634
|
+
__wbg_prototypesetcall_22b1bb88c4ec5c5a: function(arg0, arg1, arg2) {
|
|
624
635
|
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
625
636
|
},
|
|
626
|
-
|
|
627
|
-
|
|
637
|
+
__wbg_prototypesetcall_4aea6470234c8414: function(arg0, arg1, arg2) {
|
|
638
|
+
Uint32Array.prototype.set.call(getArrayU32FromWasm0(arg0, arg1), arg2);
|
|
628
639
|
},
|
|
629
|
-
|
|
630
|
-
|
|
640
|
+
__wbg_prototypesetcall_880e4f56af83a508: function(arg0, arg1, arg2) {
|
|
641
|
+
Int8Array.prototype.set.call(getArrayI8FromWasm0(arg0, arg1), arg2);
|
|
631
642
|
},
|
|
632
|
-
|
|
643
|
+
__wbg_prototypesetcall_a366c038a3918afa: function(arg0, arg1, arg2) {
|
|
633
644
|
Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
|
|
634
645
|
},
|
|
635
|
-
|
|
646
|
+
__wbg_prototypesetcall_e760fe902661189e: function(arg0, arg1, arg2) {
|
|
647
|
+
Uint8ClampedArray.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
648
|
+
},
|
|
649
|
+
__wbg_prototypesetcall_f1568f53664f98db: function(arg0, arg1, arg2) {
|
|
636
650
|
Int16Array.prototype.set.call(getArrayI16FromWasm0(arg0, arg1), arg2);
|
|
637
651
|
},
|
|
638
|
-
|
|
652
|
+
__wbg_push_c9f4893fc209f768: function(arg0, arg1) {
|
|
639
653
|
const ret = arg0.push(arg1);
|
|
640
654
|
return ret;
|
|
641
655
|
},
|
|
642
|
-
|
|
656
|
+
__wbg_replace_f86ae6313e989f97: function(arg0, arg1, arg2, arg3) {
|
|
643
657
|
const ret = arg0.replace(arg1, getStringFromWasm0(arg2, arg3));
|
|
644
658
|
return ret;
|
|
645
659
|
},
|
|
646
|
-
|
|
660
|
+
__wbg_response_909ec67532c29a2f: function() { return handleError(function (arg0) {
|
|
647
661
|
const ret = arg0.response;
|
|
648
662
|
return ret;
|
|
649
663
|
}, arguments); },
|
|
650
|
-
|
|
664
|
+
__wbg_search_8ee1049d049e449d: function(arg0, arg1) {
|
|
651
665
|
const ret = arg0.search(arg1);
|
|
652
666
|
return ret;
|
|
653
667
|
},
|
|
654
|
-
|
|
668
|
+
__wbg_send_124a18558542ae4f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
655
669
|
arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
|
|
656
670
|
}, arguments); },
|
|
657
|
-
|
|
671
|
+
__wbg_send_a5f53efbb0af4f46: function() { return handleError(function (arg0) {
|
|
658
672
|
arg0.send();
|
|
659
673
|
}, arguments); },
|
|
660
|
-
|
|
674
|
+
__wbg_setRequestHeader_a62c26acc62b07c7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
661
675
|
arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
662
676
|
}, arguments); },
|
|
663
|
-
|
|
677
|
+
__wbg_set_2793479888329cb6: function() { return handleError(function (arg0, arg1, arg2) {
|
|
664
678
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
665
679
|
return ret;
|
|
666
680
|
}, arguments); },
|
|
667
|
-
|
|
681
|
+
__wbg_set_font_79e6b8aaf8ab9ff1: function(arg0, arg1, arg2) {
|
|
668
682
|
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
669
683
|
},
|
|
670
|
-
|
|
684
|
+
__wbg_set_font_aa0c0c514c73a5fa: function(arg0, arg1, arg2) {
|
|
671
685
|
arg0.font = getStringFromWasm0(arg1, arg2);
|
|
672
686
|
},
|
|
673
|
-
|
|
687
|
+
__wbg_set_responseType_e08a4356df5bc72d: function(arg0, arg1) {
|
|
674
688
|
arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
675
689
|
},
|
|
676
|
-
|
|
677
|
-
const ret = typeof
|
|
690
|
+
__wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
|
|
691
|
+
const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
|
|
678
692
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
679
693
|
},
|
|
680
|
-
|
|
681
|
-
const ret = typeof
|
|
694
|
+
__wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
|
|
695
|
+
const ret = typeof global === 'undefined' ? undefined : global;
|
|
682
696
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
683
697
|
},
|
|
684
|
-
|
|
685
|
-
const ret = typeof self === 'undefined' ?
|
|
698
|
+
__wbg_static_accessor_SELF_53bb20457401453d: function() {
|
|
699
|
+
const ret = typeof self === 'undefined' ? undefined : self;
|
|
686
700
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
687
701
|
},
|
|
688
|
-
|
|
689
|
-
const ret = typeof window === 'undefined' ?
|
|
702
|
+
__wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
|
|
703
|
+
const ret = typeof window === 'undefined' ? undefined : window;
|
|
690
704
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
691
705
|
},
|
|
692
|
-
|
|
706
|
+
__wbg_status_5432a759e0b4975d: function() { return handleError(function (arg0) {
|
|
693
707
|
const ret = arg0.status;
|
|
694
708
|
return ret;
|
|
695
709
|
}, arguments); },
|
|
696
|
-
|
|
710
|
+
__wbg_stringify_0a0fbf2ef722380a: function() { return handleError(function (arg0) {
|
|
697
711
|
const ret = JSON.stringify(arg0);
|
|
698
712
|
return ret;
|
|
699
713
|
}, arguments); },
|
|
700
|
-
|
|
714
|
+
__wbg_substring_80b1fee53e95f541: function(arg0, arg1, arg2) {
|
|
701
715
|
const ret = arg0.substring(arg1 >>> 0, arg2 >>> 0);
|
|
702
716
|
return ret;
|
|
703
717
|
},
|
|
704
|
-
|
|
718
|
+
__wbg_value_e0f328965e184931: function(arg0) {
|
|
705
719
|
const ret = arg0.value;
|
|
706
720
|
return ret;
|
|
707
721
|
},
|
|
708
|
-
|
|
722
|
+
__wbg_width_28f5533f1b3b5abc: function(arg0) {
|
|
709
723
|
const ret = arg0.width;
|
|
710
724
|
return ret;
|
|
711
725
|
},
|
|
@@ -726,12 +740,11 @@ function __wbg_get_imports() {
|
|
|
726
740
|
},
|
|
727
741
|
__wbindgen_init_externref_table: function() {
|
|
728
742
|
const table = wasm.__wbindgen_externrefs;
|
|
729
|
-
const offset = table.grow(4);
|
|
730
743
|
table.set(0, undefined);
|
|
731
|
-
table.set(
|
|
732
|
-
table.set(
|
|
733
|
-
table.set(
|
|
734
|
-
table.set(
|
|
744
|
+
table.set(1024, undefined);
|
|
745
|
+
table.set(1025, null);
|
|
746
|
+
table.set(1026, true);
|
|
747
|
+
table.set(1027, false);
|
|
735
748
|
},
|
|
736
749
|
};
|
|
737
750
|
return {
|
|
@@ -752,68 +765,61 @@ function addToExternrefTable0(obj) {
|
|
|
752
765
|
}
|
|
753
766
|
|
|
754
767
|
function debugString(val) {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
807
|
-
} catch (_) {
|
|
808
|
-
return 'Object';
|
|
768
|
+
switch (typeof val) {
|
|
769
|
+
// primitive types
|
|
770
|
+
case 'number':
|
|
771
|
+
case 'boolean':
|
|
772
|
+
case 'undefined':
|
|
773
|
+
return `${val}`;
|
|
774
|
+
case 'string':
|
|
775
|
+
return JSON.stringify(val);
|
|
776
|
+
case 'bigint':
|
|
777
|
+
return `${val}n`;
|
|
778
|
+
case 'symbol':
|
|
779
|
+
return val.description !== undefined
|
|
780
|
+
? `Symbol(${val.description})`
|
|
781
|
+
: 'Symbol';
|
|
782
|
+
case 'function':
|
|
783
|
+
return typeof val.name === 'string' && val.name !== ''
|
|
784
|
+
? `Function(${val.name})`
|
|
785
|
+
: 'Function';
|
|
786
|
+
case 'object': {
|
|
787
|
+
if (val === null) {
|
|
788
|
+
return 'null';
|
|
789
|
+
}
|
|
790
|
+
// objects
|
|
791
|
+
if (Array.isArray(val)) {
|
|
792
|
+
return '[' + Array.from(val, debugString).join(', ') + ']';
|
|
793
|
+
}
|
|
794
|
+
// errors
|
|
795
|
+
if (val instanceof Error) {
|
|
796
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
const toStringOutput = toString.call(val);
|
|
800
|
+
// Test for built-in
|
|
801
|
+
const className = /\[object ([^\]]+)\]/.exec(toStringOutput)?.[1];
|
|
802
|
+
|
|
803
|
+
// Failed to match the standard '[object ClassName]'
|
|
804
|
+
if (className === undefined) {
|
|
805
|
+
return toStringOutput;
|
|
806
|
+
}
|
|
807
|
+
if (className === 'Object') {
|
|
808
|
+
// we're a user defined class or Object
|
|
809
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
810
|
+
// easier than looping through ownProperties of `val`.
|
|
811
|
+
try {
|
|
812
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
813
|
+
} catch (_) {
|
|
814
|
+
return 'Object';
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
818
|
+
return className;
|
|
809
819
|
}
|
|
820
|
+
// Per MDN: 'This list of values is exhaustive.'
|
|
821
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#description
|
|
810
822
|
}
|
|
811
|
-
// errors
|
|
812
|
-
if (val instanceof Error) {
|
|
813
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
814
|
-
}
|
|
815
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
816
|
-
return className;
|
|
817
823
|
}
|
|
818
824
|
|
|
819
825
|
function getArrayF32FromWasm0(ptr, len) {
|
|
@@ -918,7 +924,8 @@ function getInt8ArrayMemory0() {
|
|
|
918
924
|
}
|
|
919
925
|
|
|
920
926
|
function getStringFromWasm0(ptr, len) {
|
|
921
|
-
|
|
927
|
+
ptr = ptr >>> 0;
|
|
928
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
922
929
|
}
|
|
923
930
|
|
|
924
931
|
let cachedUint16ArrayMemory0 = null;
|
|
@@ -1011,18 +1018,18 @@ function takeFromExternrefTable0(idx) {
|
|
|
1011
1018
|
return value;
|
|
1012
1019
|
}
|
|
1013
1020
|
|
|
1014
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1021
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1015
1022
|
cachedTextDecoder.decode();
|
|
1016
1023
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1017
1024
|
let numBytesDecoded = 0;
|
|
1018
|
-
function decodeText(
|
|
1019
|
-
numBytesDecoded +=
|
|
1025
|
+
function decodeText(bytes) {
|
|
1026
|
+
numBytesDecoded += bytes.length;
|
|
1020
1027
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1021
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
1028
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
1022
1029
|
cachedTextDecoder.decode();
|
|
1023
|
-
numBytesDecoded =
|
|
1030
|
+
numBytesDecoded = bytes.length;
|
|
1024
1031
|
}
|
|
1025
|
-
return cachedTextDecoder.decode(
|
|
1032
|
+
return cachedTextDecoder.decode(bytes);
|
|
1026
1033
|
}
|
|
1027
1034
|
|
|
1028
1035
|
const cachedTextEncoder = new TextEncoder();
|
|
@@ -1118,9 +1125,17 @@ function initSync(module) {
|
|
|
1118
1125
|
return __wbg_finalize_init(instance, module);
|
|
1119
1126
|
}
|
|
1120
1127
|
|
|
1128
|
+
let __wbg_init_promise;
|
|
1121
1129
|
async function __wbg_init(module_or_path) {
|
|
1122
1130
|
if (wasm !== undefined) return wasm;
|
|
1131
|
+
if (__wbg_init_promise === undefined) {
|
|
1132
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
1133
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
1134
|
+
}
|
|
1135
|
+
return __wbg_init_promise;
|
|
1136
|
+
}
|
|
1123
1137
|
|
|
1138
|
+
async function __wbg_init_once(module_or_path) {
|
|
1124
1139
|
|
|
1125
1140
|
if (module_or_path !== undefined) {
|
|
1126
1141
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|