@microsoft/webui 0.0.28 → 0.0.29
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 +15 -0
- package/ai.md +1537 -0
- package/bin/webui +0 -0
- package/package.json +12 -10
- package/wasm/all/package.json +1 -1
- package/wasm/all/webui_wasm_all.js +47 -43
- package/wasm/all/webui_wasm_all_bg.wasm +0 -0
- package/wasm/handler/package.json +1 -1
- package/wasm/handler/webui_wasm_handler.js +41 -37
- package/wasm/handler/webui_wasm_handler_bg.wasm +0 -0
- package/wasm/parser/package.json +1 -1
- package/wasm/parser/webui_wasm_parser.js +36 -32
- package/wasm/parser/webui_wasm_parser_bg.wasm +0 -0
package/bin/webui
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microsoft/webui",
|
|
3
3
|
"description": "WebUI — high-performance server-side rendering framework. Build-time protocol compiler and streaming renderer.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.29",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"tag": "latest"
|
|
8
8
|
},
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"webui": "bin/webui"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
|
+
"ai.md",
|
|
18
19
|
"bin/",
|
|
19
20
|
"dist/index.*",
|
|
20
21
|
"dist/install.*",
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
"node": ">=18"
|
|
27
28
|
},
|
|
28
29
|
"exports": {
|
|
30
|
+
"./ai.md": "./ai.md",
|
|
29
31
|
".": {
|
|
30
32
|
"import": {
|
|
31
33
|
"types": "./dist/index.d.ts",
|
|
@@ -46,12 +48,12 @@
|
|
|
46
48
|
}
|
|
47
49
|
},
|
|
48
50
|
"optionalDependencies": {
|
|
49
|
-
"@microsoft/webui-darwin-arm64": "0.0.
|
|
50
|
-
"@microsoft/webui-
|
|
51
|
-
"@microsoft/webui-
|
|
52
|
-
"@microsoft/webui-linux-x64": "0.0.
|
|
53
|
-
"@microsoft/webui-win32-arm64": "0.0.
|
|
54
|
-
"@microsoft/webui-win32-x64": "0.0.
|
|
51
|
+
"@microsoft/webui-darwin-arm64": "0.0.29",
|
|
52
|
+
"@microsoft/webui-darwin-x64": "0.0.29",
|
|
53
|
+
"@microsoft/webui-linux-arm64": "0.0.29",
|
|
54
|
+
"@microsoft/webui-linux-x64": "0.0.29",
|
|
55
|
+
"@microsoft/webui-win32-arm64": "0.0.29",
|
|
56
|
+
"@microsoft/webui-win32-x64": "0.0.29"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|
|
57
59
|
"esbuild": "^0.28.1",
|
|
@@ -66,8 +68,8 @@
|
|
|
66
68
|
}
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
|
-
"@types/node": "^26.1
|
|
70
|
-
"esbuild": "^0.28.
|
|
71
|
+
"@types/node": "^26.5.1",
|
|
72
|
+
"esbuild": "^0.28.2",
|
|
71
73
|
"typescript": "7.0.2",
|
|
72
74
|
"typescript-6": "npm:typescript@6.0.3"
|
|
73
75
|
},
|
|
@@ -75,6 +77,6 @@
|
|
|
75
77
|
"build": "tsc",
|
|
76
78
|
"postbuild": "node dist/install.js",
|
|
77
79
|
"postinstall": "node --input-type=module -e \"try{await import('./dist/install.js')}catch{}\"",
|
|
78
|
-
"test": "tsc --project tsconfig.test.json && node --test dist/test/integration.test.js dist/test/native-addon-loading.test.js dist/test/projection-conformance.test.js dist/test/projection-compiler.test.js dist/test/projection-esbuild.test.js dist/test/projection-peers.test.js"
|
|
80
|
+
"test": "tsc --project tsconfig.test.json && node --test dist/test/ai-reference.test.js dist/test/integration.test.js dist/test/native-addon-loading.test.js dist/test/projection-conformance.test.js dist/test/projection-compiler.test.js dist/test/projection-esbuild.test.js dist/test/projection-peers.test.js"
|
|
79
81
|
}
|
|
80
82
|
}
|
package/wasm/all/package.json
CHANGED
|
@@ -398,7 +398,7 @@ export function build_protocol(files, entry, projection_manifests, dom) {
|
|
|
398
398
|
function __wbg_get_imports() {
|
|
399
399
|
const import0 = {
|
|
400
400
|
__proto__: null,
|
|
401
|
-
|
|
401
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
402
402
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
403
403
|
return addHeapObject(ret);
|
|
404
404
|
},
|
|
@@ -409,50 +409,50 @@ function __wbg_get_imports() {
|
|
|
409
409
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
410
410
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
411
411
|
},
|
|
412
|
-
|
|
412
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
413
413
|
const v = getObject(arg0);
|
|
414
414
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
415
415
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
416
416
|
},
|
|
417
|
-
|
|
417
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
418
418
|
const ret = debugString(getObject(arg1));
|
|
419
419
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
420
420
|
const len1 = WASM_VECTOR_LEN;
|
|
421
421
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
422
422
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
423
423
|
},
|
|
424
|
-
|
|
424
|
+
__wbg___wbindgen_in_ac983077f137f2e6: function(arg0, arg1) {
|
|
425
425
|
const ret = getObject(arg0) in getObject(arg1);
|
|
426
426
|
return ret;
|
|
427
427
|
},
|
|
428
|
-
|
|
428
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
429
429
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
430
430
|
return ret;
|
|
431
431
|
},
|
|
432
|
-
|
|
432
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
433
433
|
const ret = getObject(arg0) === null;
|
|
434
434
|
return ret;
|
|
435
435
|
},
|
|
436
|
-
|
|
436
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
437
437
|
const val = getObject(arg0);
|
|
438
438
|
const ret = typeof(val) === 'object' && val !== null;
|
|
439
439
|
return ret;
|
|
440
440
|
},
|
|
441
|
-
|
|
441
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
442
442
|
const ret = getObject(arg0) === undefined;
|
|
443
443
|
return ret;
|
|
444
444
|
},
|
|
445
|
-
|
|
445
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
446
446
|
const ret = getObject(arg0) == getObject(arg1);
|
|
447
447
|
return ret;
|
|
448
448
|
},
|
|
449
|
-
|
|
449
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
450
450
|
const obj = getObject(arg1);
|
|
451
451
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
452
452
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
453
453
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
454
454
|
},
|
|
455
|
-
|
|
455
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
456
456
|
const obj = getObject(arg1);
|
|
457
457
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
458
458
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -460,38 +460,38 @@ function __wbg_get_imports() {
|
|
|
460
460
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
461
461
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
462
462
|
},
|
|
463
|
-
|
|
463
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
464
464
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
465
465
|
},
|
|
466
|
-
|
|
466
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
467
467
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
468
468
|
return addHeapObject(ret);
|
|
469
469
|
}, arguments); },
|
|
470
|
-
|
|
470
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
471
471
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
472
472
|
return addHeapObject(ret);
|
|
473
473
|
}, arguments); },
|
|
474
|
-
|
|
474
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
475
475
|
const ret = getObject(arg0).done;
|
|
476
476
|
return ret;
|
|
477
477
|
},
|
|
478
|
-
|
|
478
|
+
__wbg_entries_7774d489e1da5f4f: function(arg0) {
|
|
479
479
|
const ret = Object.entries(getObject(arg0));
|
|
480
480
|
return addHeapObject(ret);
|
|
481
481
|
},
|
|
482
|
-
|
|
483
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
484
|
-
return addHeapObject(ret);
|
|
485
|
-
},
|
|
486
|
-
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
482
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
487
483
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
488
484
|
return addHeapObject(ret);
|
|
489
485
|
}, arguments); },
|
|
490
|
-
|
|
486
|
+
__wbg_get_c0c8f8d7da0c03dd: function(arg0, arg1) {
|
|
487
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
488
|
+
return addHeapObject(ret);
|
|
489
|
+
},
|
|
490
|
+
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
491
491
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
492
492
|
return addHeapObject(ret);
|
|
493
493
|
}, arguments); },
|
|
494
|
-
|
|
494
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
495
495
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
496
496
|
return addHeapObject(ret);
|
|
497
497
|
},
|
|
@@ -499,7 +499,7 @@ function __wbg_get_imports() {
|
|
|
499
499
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
500
500
|
return addHeapObject(ret);
|
|
501
501
|
},
|
|
502
|
-
|
|
502
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
503
503
|
let result;
|
|
504
504
|
try {
|
|
505
505
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -509,7 +509,7 @@ function __wbg_get_imports() {
|
|
|
509
509
|
const ret = result;
|
|
510
510
|
return ret;
|
|
511
511
|
},
|
|
512
|
-
|
|
512
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
513
513
|
let result;
|
|
514
514
|
try {
|
|
515
515
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -519,57 +519,57 @@ function __wbg_get_imports() {
|
|
|
519
519
|
const ret = result;
|
|
520
520
|
return ret;
|
|
521
521
|
},
|
|
522
|
-
|
|
522
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
523
523
|
const ret = Array.isArray(getObject(arg0));
|
|
524
524
|
return ret;
|
|
525
525
|
},
|
|
526
|
-
|
|
526
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
527
527
|
const ret = Symbol.iterator;
|
|
528
528
|
return addHeapObject(ret);
|
|
529
529
|
},
|
|
530
|
-
|
|
530
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
531
531
|
const ret = getObject(arg0).length;
|
|
532
532
|
return ret;
|
|
533
533
|
},
|
|
534
|
-
|
|
534
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
535
535
|
const ret = getObject(arg0).length;
|
|
536
536
|
return ret;
|
|
537
537
|
},
|
|
538
|
-
|
|
538
|
+
__wbg_new_116be93542d39019: function() {
|
|
539
539
|
const ret = new Array();
|
|
540
540
|
return addHeapObject(ret);
|
|
541
541
|
},
|
|
542
|
-
|
|
542
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
543
543
|
const ret = new Uint8Array(getObject(arg0));
|
|
544
544
|
return addHeapObject(ret);
|
|
545
545
|
},
|
|
546
|
-
|
|
546
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
547
547
|
const ret = new Object();
|
|
548
548
|
return addHeapObject(ret);
|
|
549
549
|
},
|
|
550
|
-
|
|
550
|
+
__wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
|
|
551
551
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
552
552
|
return addHeapObject(ret);
|
|
553
553
|
},
|
|
554
|
-
|
|
555
|
-
const ret = getObject(arg0).next;
|
|
556
|
-
return addHeapObject(ret);
|
|
557
|
-
},
|
|
558
|
-
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
554
|
+
__wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
|
|
559
555
|
const ret = getObject(arg0).next();
|
|
560
556
|
return addHeapObject(ret);
|
|
561
557
|
}, arguments); },
|
|
562
|
-
|
|
558
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
559
|
+
const ret = getObject(arg0).next;
|
|
560
|
+
return addHeapObject(ret);
|
|
561
|
+
},
|
|
562
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
563
563
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
564
564
|
},
|
|
565
|
-
|
|
565
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
566
566
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
567
567
|
return ret;
|
|
568
568
|
}, arguments); },
|
|
569
|
-
|
|
569
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
570
570
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
571
571
|
},
|
|
572
|
-
|
|
572
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
573
573
|
const ret = getObject(arg0).value;
|
|
574
574
|
return addHeapObject(ret);
|
|
575
575
|
},
|
|
@@ -827,11 +827,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
827
827
|
|
|
828
828
|
async function __wbg_load(module, imports) {
|
|
829
829
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
830
|
+
if (!module.ok) {
|
|
831
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
832
|
+
}
|
|
833
|
+
|
|
830
834
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
831
835
|
try {
|
|
832
836
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
833
837
|
} catch (e) {
|
|
834
|
-
const validResponse =
|
|
838
|
+
const validResponse = expectedResponseType(module.type);
|
|
835
839
|
|
|
836
840
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
837
841
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
Binary file
|
|
@@ -362,7 +362,7 @@ if (Symbol.dispose) StreamingSession.prototype[Symbol.dispose] = StreamingSessio
|
|
|
362
362
|
function __wbg_get_imports() {
|
|
363
363
|
const import0 = {
|
|
364
364
|
__proto__: null,
|
|
365
|
-
|
|
365
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
366
366
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
367
367
|
return addHeapObject(ret);
|
|
368
368
|
},
|
|
@@ -373,46 +373,46 @@ function __wbg_get_imports() {
|
|
|
373
373
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
374
374
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
375
375
|
},
|
|
376
|
-
|
|
376
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
377
377
|
const v = getObject(arg0);
|
|
378
378
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
379
379
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
380
380
|
},
|
|
381
|
-
|
|
381
|
+
__wbg___wbindgen_debug_string_a57024b9c6e4a48b: function(arg0, arg1) {
|
|
382
382
|
const ret = debugString(getObject(arg1));
|
|
383
383
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
384
384
|
const len1 = WASM_VECTOR_LEN;
|
|
385
385
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
386
386
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
387
387
|
},
|
|
388
|
-
|
|
388
|
+
__wbg___wbindgen_is_function_5e4570eb24ffa122: function(arg0) {
|
|
389
389
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
390
390
|
return ret;
|
|
391
391
|
},
|
|
392
|
-
|
|
392
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
393
393
|
const ret = getObject(arg0) === null;
|
|
394
394
|
return ret;
|
|
395
395
|
},
|
|
396
|
-
|
|
396
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
397
397
|
const val = getObject(arg0);
|
|
398
398
|
const ret = typeof(val) === 'object' && val !== null;
|
|
399
399
|
return ret;
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
402
402
|
const ret = getObject(arg0) === undefined;
|
|
403
403
|
return ret;
|
|
404
404
|
},
|
|
405
|
-
|
|
405
|
+
__wbg___wbindgen_jsval_loose_eq_acf2776254a8d832: function(arg0, arg1) {
|
|
406
406
|
const ret = getObject(arg0) == getObject(arg1);
|
|
407
407
|
return ret;
|
|
408
408
|
},
|
|
409
|
-
|
|
409
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
410
410
|
const obj = getObject(arg1);
|
|
411
411
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
412
412
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
413
413
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
414
414
|
},
|
|
415
|
-
|
|
415
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
416
416
|
const obj = getObject(arg1);
|
|
417
417
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
418
418
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -420,34 +420,34 @@ function __wbg_get_imports() {
|
|
|
420
420
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
421
421
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
422
422
|
},
|
|
423
|
-
|
|
423
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
424
424
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
425
425
|
},
|
|
426
|
-
|
|
426
|
+
__wbg_call_1c5886ab9c57d1c7: function() { return handleError(function (arg0, arg1) {
|
|
427
427
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
428
428
|
return addHeapObject(ret);
|
|
429
429
|
}, arguments); },
|
|
430
|
-
|
|
430
|
+
__wbg_call_35dba3c747ad7521: function() { return handleError(function (arg0, arg1, arg2) {
|
|
431
431
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
432
432
|
return addHeapObject(ret);
|
|
433
433
|
}, arguments); },
|
|
434
|
-
|
|
434
|
+
__wbg_done_669171204c3dcae2: function(arg0) {
|
|
435
435
|
const ret = getObject(arg0).done;
|
|
436
436
|
return ret;
|
|
437
437
|
},
|
|
438
|
-
|
|
438
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
439
439
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
440
440
|
return addHeapObject(ret);
|
|
441
441
|
}, arguments); },
|
|
442
|
-
|
|
442
|
+
__wbg_get_d173c0308df22d37: function() { return handleError(function (arg0, arg1) {
|
|
443
443
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
444
444
|
return addHeapObject(ret);
|
|
445
445
|
}, arguments); },
|
|
446
|
-
|
|
446
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
447
447
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
448
448
|
return addHeapObject(ret);
|
|
449
449
|
},
|
|
450
|
-
|
|
450
|
+
__wbg_instanceof_ArrayBuffer_993d02d2d254cad1: function(arg0) {
|
|
451
451
|
let result;
|
|
452
452
|
try {
|
|
453
453
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -457,7 +457,7 @@ function __wbg_get_imports() {
|
|
|
457
457
|
const ret = result;
|
|
458
458
|
return ret;
|
|
459
459
|
},
|
|
460
|
-
|
|
460
|
+
__wbg_instanceof_Uint8Array_f935dbb0aa7cdeed: function(arg0) {
|
|
461
461
|
let result;
|
|
462
462
|
try {
|
|
463
463
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -467,57 +467,57 @@ function __wbg_get_imports() {
|
|
|
467
467
|
const ret = result;
|
|
468
468
|
return ret;
|
|
469
469
|
},
|
|
470
|
-
|
|
470
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
471
471
|
const ret = Array.isArray(getObject(arg0));
|
|
472
472
|
return ret;
|
|
473
473
|
},
|
|
474
|
-
|
|
474
|
+
__wbg_iterator_5cebbb86e33c6dd6: function() {
|
|
475
475
|
const ret = Symbol.iterator;
|
|
476
476
|
return addHeapObject(ret);
|
|
477
477
|
},
|
|
478
|
-
|
|
478
|
+
__wbg_length_36bd29c6848c2144: function(arg0) {
|
|
479
479
|
const ret = getObject(arg0).length;
|
|
480
480
|
return ret;
|
|
481
481
|
},
|
|
482
|
-
|
|
482
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
483
483
|
const ret = getObject(arg0).length;
|
|
484
484
|
return ret;
|
|
485
485
|
},
|
|
486
|
-
|
|
486
|
+
__wbg_new_116be93542d39019: function() {
|
|
487
487
|
const ret = new Array();
|
|
488
488
|
return addHeapObject(ret);
|
|
489
489
|
},
|
|
490
|
-
|
|
490
|
+
__wbg_new_77cc4f4f472aeb81: function(arg0) {
|
|
491
491
|
const ret = new Uint8Array(getObject(arg0));
|
|
492
492
|
return addHeapObject(ret);
|
|
493
493
|
},
|
|
494
|
-
|
|
494
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
495
495
|
const ret = new Object();
|
|
496
496
|
return addHeapObject(ret);
|
|
497
497
|
},
|
|
498
|
-
|
|
498
|
+
__wbg_new_from_slice_3eea173078478cfe: function(arg0, arg1) {
|
|
499
499
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
500
500
|
return addHeapObject(ret);
|
|
501
501
|
},
|
|
502
|
-
|
|
503
|
-
const ret = getObject(arg0).next;
|
|
504
|
-
return addHeapObject(ret);
|
|
505
|
-
},
|
|
506
|
-
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
502
|
+
__wbg_next_42cf16ee0dafc9e2: function() { return handleError(function (arg0) {
|
|
507
503
|
const ret = getObject(arg0).next();
|
|
508
504
|
return addHeapObject(ret);
|
|
509
505
|
}, arguments); },
|
|
510
|
-
|
|
506
|
+
__wbg_next_8f26b64fa5e9f64b: function(arg0) {
|
|
507
|
+
const ret = getObject(arg0).next;
|
|
508
|
+
return addHeapObject(ret);
|
|
509
|
+
},
|
|
510
|
+
__wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
|
|
511
511
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
512
512
|
},
|
|
513
|
-
|
|
513
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
514
514
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
515
515
|
return ret;
|
|
516
516
|
}, arguments); },
|
|
517
|
-
|
|
517
|
+
__wbg_set_a80955eb93b145c6: function(arg0, arg1, arg2) {
|
|
518
518
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
519
519
|
},
|
|
520
|
-
|
|
520
|
+
__wbg_value_1e2369fab29b420e: function(arg0) {
|
|
521
521
|
const ret = getObject(arg0).value;
|
|
522
522
|
return addHeapObject(ret);
|
|
523
523
|
},
|
|
@@ -771,11 +771,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
771
771
|
|
|
772
772
|
async function __wbg_load(module, imports) {
|
|
773
773
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
774
|
+
if (!module.ok) {
|
|
775
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
776
|
+
}
|
|
777
|
+
|
|
774
778
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
775
779
|
try {
|
|
776
780
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
777
781
|
} catch (e) {
|
|
778
|
-
const validResponse =
|
|
782
|
+
const validResponse = expectedResponseType(module.type);
|
|
779
783
|
|
|
780
784
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
781
785
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
Binary file
|