@synonymdev/pubky 0.7.0 → 0.9.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/index.cjs +235 -178
- package/index.js +236 -179
- package/package.json +1 -1
- package/pubky.d.ts +42 -1
- package/pubky_bg.wasm +0 -0
package/index.cjs
CHANGED
|
@@ -34,10 +34,14 @@ class AuthFlow {
|
|
|
34
34
|
/**
|
|
35
35
|
* Return the authorization deep link (URL) to show as QR or open on the signer device.
|
|
36
36
|
*
|
|
37
|
+
* **Security:** This URL contains the `client_secret` in plaintext.
|
|
38
|
+
* Treat it as a short-lived secret and delete it after the flow completes.
|
|
39
|
+
* See `Pubky.startAuthFlow()` docs for storage guidance.
|
|
40
|
+
*
|
|
37
41
|
* @returns {string} A `pubkyauth://…` or `https://…` URL with channel info.
|
|
38
42
|
*
|
|
39
43
|
* @example
|
|
40
|
-
* renderQr(flow.authorizationUrl
|
|
44
|
+
* renderQr(flow.authorizationUrl);
|
|
41
45
|
* @returns {string}
|
|
42
46
|
*/
|
|
43
47
|
get authorizationUrl() {
|
|
@@ -81,6 +85,32 @@ class AuthFlow {
|
|
|
81
85
|
const ret = wasm.authflow_awaitToken(this.__wbg_ptr);
|
|
82
86
|
return ret;
|
|
83
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Resume a previously started auth flow from its saved `authorizationUrl` (standalone).
|
|
90
|
+
* Prefer `pubky.resumeAuthFlow()` to reuse a facade client; this creates a default (mainnet) client.
|
|
91
|
+
*
|
|
92
|
+
* Relay messages expire after ~5 minutes; resume is only viable in that window.
|
|
93
|
+
* See `Pubky.resumeAuthFlow()` / `Pubky.startAuthFlow()` for full guidance.
|
|
94
|
+
*
|
|
95
|
+
* **Security:** `authorizationUrl` contains the `client_secret`.
|
|
96
|
+
* Delete it from storage as soon as resume completes or is abandoned.
|
|
97
|
+
*
|
|
98
|
+
* @param {string} authorizationUrl The `pubkyauth://…` URL from a previous flow.
|
|
99
|
+
* @returns {AuthFlow} A flow reconnected to the original relay channel.
|
|
100
|
+
* @throws {PubkyError}
|
|
101
|
+
* - `{ name: "AuthenticationError" }` if the URL is invalid or not a signin/signup link
|
|
102
|
+
* @param {string} authorization_url
|
|
103
|
+
* @returns {AuthFlow}
|
|
104
|
+
*/
|
|
105
|
+
static resume(authorization_url) {
|
|
106
|
+
const ptr0 = passStringToWasm0(authorization_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
107
|
+
const len0 = WASM_VECTOR_LEN;
|
|
108
|
+
const ret = wasm.authflow_resume(ptr0, len0);
|
|
109
|
+
if (ret[2]) {
|
|
110
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
111
|
+
}
|
|
112
|
+
return AuthFlow.__wrap(ret[0]);
|
|
113
|
+
}
|
|
84
114
|
/**
|
|
85
115
|
* Start a flow (standalone).
|
|
86
116
|
* Prefer `pubky.startAuthFlow()` to reuse a facade client.
|
|
@@ -1244,6 +1274,33 @@ class Pubky {
|
|
|
1244
1274
|
const ret = wasm.pubky_restoreSession(this.__wbg_ptr, ptr0, len0);
|
|
1245
1275
|
return ret;
|
|
1246
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
* Resume a previously started **pubkyauth** flow from its saved `authorizationUrl`.
|
|
1279
|
+
*
|
|
1280
|
+
* The relay inbox retains messages for **~5 minutes**. Resume is only
|
|
1281
|
+
* viable within that window; afterwards start a fresh flow.
|
|
1282
|
+
*
|
|
1283
|
+
* **Security:** The URL contains the `client_secret` in plaintext.
|
|
1284
|
+
* Delete it from storage as soon as the resumed flow completes.
|
|
1285
|
+
* See `startAuthFlow()` docs for full storage guidance.
|
|
1286
|
+
*
|
|
1287
|
+
* @param {string} authorizationUrl The `pubkyauth://…` URL from a previous flow.
|
|
1288
|
+
* @returns {AuthFlow} A flow reconnected to the original relay channel.
|
|
1289
|
+
* @throws {PubkyError}
|
|
1290
|
+
* - `{ name: "AuthenticationError" }` if the URL is invalid or not a signin/signup link
|
|
1291
|
+
* - `{ name: "RequestError" }` on network/relay failure
|
|
1292
|
+
* @param {string} authorization_url
|
|
1293
|
+
* @returns {AuthFlow}
|
|
1294
|
+
*/
|
|
1295
|
+
resumeAuthFlow(authorization_url) {
|
|
1296
|
+
const ptr0 = passStringToWasm0(authorization_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1297
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1298
|
+
const ret = wasm.pubky_resumeAuthFlow(this.__wbg_ptr, ptr0, len0);
|
|
1299
|
+
if (ret[2]) {
|
|
1300
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1301
|
+
}
|
|
1302
|
+
return AuthFlow.__wrap(ret[0]);
|
|
1303
|
+
}
|
|
1247
1304
|
/**
|
|
1248
1305
|
* Create a `Signer` from an existing `Keypair`.
|
|
1249
1306
|
*
|
|
@@ -1271,6 +1328,10 @@ class Pubky {
|
|
|
1271
1328
|
* - `actions` is any combo of `r` and/or `w` (order normalized; `wr` -> `rw`).
|
|
1272
1329
|
* Pass `""` for no scopes (read-only public session).
|
|
1273
1330
|
*
|
|
1331
|
+
* **Security:** `authorizationUrl` contains the `client_secret` in plaintext.
|
|
1332
|
+
* If you need resume after refresh/app switch, save it in `sessionStorage`
|
|
1333
|
+
* (not `localStorage`), then delete it once approval arrives or is abandoned.
|
|
1334
|
+
*
|
|
1274
1335
|
* @param {string} capabilities Comma-separated caps, e.g. `"/pub/app/:rw,/pub/foo/file:r"`.
|
|
1275
1336
|
* @param {AuthFlowKind} kind The kind of authentication flow to perform.
|
|
1276
1337
|
* Examples:
|
|
@@ -2520,11 +2581,10 @@ function validateCapabilities(input) {
|
|
|
2520
2581
|
}
|
|
2521
2582
|
}
|
|
2522
2583
|
exports.validateCapabilities = validateCapabilities;
|
|
2523
|
-
|
|
2524
2584
|
function __wbg_get_imports() {
|
|
2525
2585
|
const import0 = {
|
|
2526
2586
|
__proto__: null,
|
|
2527
|
-
|
|
2587
|
+
__wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
|
|
2528
2588
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2529
2589
|
return ret;
|
|
2530
2590
|
},
|
|
@@ -2535,68 +2595,68 @@ function __wbg_get_imports() {
|
|
|
2535
2595
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2536
2596
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2537
2597
|
},
|
|
2538
|
-
|
|
2598
|
+
__wbg___wbindgen_bigint_get_as_i64_3d3aba5d616c6a51: function(arg0, arg1) {
|
|
2539
2599
|
const v = arg1;
|
|
2540
2600
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2541
2601
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2542
2602
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2543
2603
|
},
|
|
2544
|
-
|
|
2604
|
+
__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff: function(arg0) {
|
|
2545
2605
|
const v = arg0;
|
|
2546
2606
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
2547
2607
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2548
2608
|
},
|
|
2549
|
-
|
|
2609
|
+
__wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
|
|
2550
2610
|
const ret = debugString(arg1);
|
|
2551
2611
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2552
2612
|
const len1 = WASM_VECTOR_LEN;
|
|
2553
2613
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2554
2614
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2555
2615
|
},
|
|
2556
|
-
|
|
2616
|
+
__wbg___wbindgen_in_a5d8b22e52b24dd1: function(arg0, arg1) {
|
|
2557
2617
|
const ret = arg0 in arg1;
|
|
2558
2618
|
return ret;
|
|
2559
2619
|
},
|
|
2560
|
-
|
|
2620
|
+
__wbg___wbindgen_is_bigint_ec25c7f91b4d9e93: function(arg0) {
|
|
2561
2621
|
const ret = typeof(arg0) === 'bigint';
|
|
2562
2622
|
return ret;
|
|
2563
2623
|
},
|
|
2564
|
-
|
|
2624
|
+
__wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
|
|
2565
2625
|
const ret = typeof(arg0) === 'function';
|
|
2566
2626
|
return ret;
|
|
2567
2627
|
},
|
|
2568
|
-
|
|
2628
|
+
__wbg___wbindgen_is_null_52ff4ec04186736f: function(arg0) {
|
|
2569
2629
|
const ret = arg0 === null;
|
|
2570
2630
|
return ret;
|
|
2571
2631
|
},
|
|
2572
|
-
|
|
2632
|
+
__wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
|
|
2573
2633
|
const val = arg0;
|
|
2574
2634
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2575
2635
|
return ret;
|
|
2576
2636
|
},
|
|
2577
|
-
|
|
2637
|
+
__wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
|
|
2578
2638
|
const ret = typeof(arg0) === 'string';
|
|
2579
2639
|
return ret;
|
|
2580
2640
|
},
|
|
2581
|
-
|
|
2641
|
+
__wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
|
|
2582
2642
|
const ret = arg0 === undefined;
|
|
2583
2643
|
return ret;
|
|
2584
2644
|
},
|
|
2585
|
-
|
|
2645
|
+
__wbg___wbindgen_jsval_eq_d3465d8a07697228: function(arg0, arg1) {
|
|
2586
2646
|
const ret = arg0 === arg1;
|
|
2587
2647
|
return ret;
|
|
2588
2648
|
},
|
|
2589
|
-
|
|
2649
|
+
__wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c: function(arg0, arg1) {
|
|
2590
2650
|
const ret = arg0 == arg1;
|
|
2591
2651
|
return ret;
|
|
2592
2652
|
},
|
|
2593
|
-
|
|
2653
|
+
__wbg___wbindgen_number_get_c7f42aed0525c451: function(arg0, arg1) {
|
|
2594
2654
|
const obj = arg1;
|
|
2595
2655
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2596
2656
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2597
2657
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2598
2658
|
},
|
|
2599
|
-
|
|
2659
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
2600
2660
|
const obj = arg1;
|
|
2601
2661
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2602
2662
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2604,22 +2664,22 @@ function __wbg_get_imports() {
|
|
|
2604
2664
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2605
2665
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2606
2666
|
},
|
|
2607
|
-
|
|
2667
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
2608
2668
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2609
2669
|
},
|
|
2610
|
-
|
|
2670
|
+
__wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
|
|
2611
2671
|
arg0._wbg_cb_unref();
|
|
2612
2672
|
},
|
|
2613
|
-
|
|
2614
|
-
arg0.abort(arg1);
|
|
2615
|
-
},
|
|
2616
|
-
__wbg_abort_bf4dbbb6563f9ad6: function(arg0) {
|
|
2673
|
+
__wbg_abort_4ce5b484434ef6fd: function(arg0) {
|
|
2617
2674
|
arg0.abort();
|
|
2618
2675
|
},
|
|
2619
|
-
|
|
2676
|
+
__wbg_abort_d53712380a54cc81: function(arg0, arg1) {
|
|
2677
|
+
arg0.abort(arg1);
|
|
2678
|
+
},
|
|
2679
|
+
__wbg_append_e8fc56ce7c00e874: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2620
2680
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2621
2681
|
}, arguments); },
|
|
2622
|
-
|
|
2682
|
+
__wbg_arrayBuffer_848c392b70c67d3d: function() { return handleError(function (arg0) {
|
|
2623
2683
|
const ret = arg0.arrayBuffer();
|
|
2624
2684
|
return ret;
|
|
2625
2685
|
}, arguments); },
|
|
@@ -2627,39 +2687,39 @@ function __wbg_get_imports() {
|
|
|
2627
2687
|
const ret = AuthToken.__wrap(arg0);
|
|
2628
2688
|
return ret;
|
|
2629
2689
|
},
|
|
2630
|
-
|
|
2690
|
+
__wbg_body_0c3a51aec038a31a: function(arg0) {
|
|
2631
2691
|
const ret = arg0.body;
|
|
2632
2692
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2633
2693
|
},
|
|
2634
|
-
|
|
2694
|
+
__wbg_buffer_d0f5ea0926a691fd: function(arg0) {
|
|
2635
2695
|
const ret = arg0.buffer;
|
|
2636
2696
|
return ret;
|
|
2637
2697
|
},
|
|
2638
|
-
|
|
2698
|
+
__wbg_byobRequest_dc6aed9db01b12c6: function(arg0) {
|
|
2639
2699
|
const ret = arg0.byobRequest;
|
|
2640
2700
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2641
2701
|
},
|
|
2642
|
-
|
|
2702
|
+
__wbg_byteLength_3e660e5661f3327e: function(arg0) {
|
|
2643
2703
|
const ret = arg0.byteLength;
|
|
2644
2704
|
return ret;
|
|
2645
2705
|
},
|
|
2646
|
-
|
|
2706
|
+
__wbg_byteOffset_ecd62abe44dd28d4: function(arg0) {
|
|
2647
2707
|
const ret = arg0.byteOffset;
|
|
2648
2708
|
return ret;
|
|
2649
2709
|
},
|
|
2650
|
-
|
|
2651
|
-
const ret = arg0.call(arg1
|
|
2710
|
+
__wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
|
|
2711
|
+
const ret = arg0.call(arg1);
|
|
2652
2712
|
return ret;
|
|
2653
2713
|
}, arguments); },
|
|
2654
|
-
|
|
2655
|
-
const ret = arg0.call(arg1);
|
|
2714
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2715
|
+
const ret = arg0.call(arg1, arg2);
|
|
2656
2716
|
return ret;
|
|
2657
2717
|
}, arguments); },
|
|
2658
|
-
|
|
2718
|
+
__wbg_cancel_ceb1bda02e29f0a9: function(arg0) {
|
|
2659
2719
|
const ret = arg0.cancel();
|
|
2660
2720
|
return ret;
|
|
2661
2721
|
},
|
|
2662
|
-
|
|
2722
|
+
__wbg_catch_e9362815fd0b24cf: function(arg0, arg1) {
|
|
2663
2723
|
const ret = arg0.catch(arg1);
|
|
2664
2724
|
return ret;
|
|
2665
2725
|
},
|
|
@@ -2667,61 +2727,58 @@ function __wbg_get_imports() {
|
|
|
2667
2727
|
const ret = clearTimeout(arg0);
|
|
2668
2728
|
return ret;
|
|
2669
2729
|
},
|
|
2670
|
-
|
|
2730
|
+
__wbg_close_e6c8977a002e9e13: function() { return handleError(function (arg0) {
|
|
2671
2731
|
arg0.close();
|
|
2672
2732
|
}, arguments); },
|
|
2673
|
-
|
|
2733
|
+
__wbg_close_fb954dfaf67b5732: function() { return handleError(function (arg0) {
|
|
2674
2734
|
arg0.close();
|
|
2675
2735
|
}, arguments); },
|
|
2676
2736
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
2677
2737
|
const ret = arg0.crypto;
|
|
2678
2738
|
return ret;
|
|
2679
2739
|
},
|
|
2680
|
-
|
|
2740
|
+
__wbg_debug_4e190d233ee2e0d8: function(arg0, arg1, arg2, arg3) {
|
|
2681
2741
|
console.debug(arg0, arg1, arg2, arg3);
|
|
2682
2742
|
},
|
|
2683
|
-
|
|
2743
|
+
__wbg_done_9158f7cc8751ba32: function(arg0) {
|
|
2684
2744
|
const ret = arg0.done;
|
|
2685
2745
|
return ret;
|
|
2686
2746
|
},
|
|
2687
|
-
|
|
2747
|
+
__wbg_enqueue_4767ce322820c94d: function() { return handleError(function (arg0, arg1) {
|
|
2688
2748
|
arg0.enqueue(arg1);
|
|
2689
2749
|
}, arguments); },
|
|
2690
|
-
|
|
2750
|
+
__wbg_entries_bf727fcd7bf35a41: function(arg0) {
|
|
2691
2751
|
const ret = arg0.entries();
|
|
2692
2752
|
return ret;
|
|
2693
2753
|
},
|
|
2694
|
-
|
|
2754
|
+
__wbg_entries_e0b73aa8571ddb56: function(arg0) {
|
|
2695
2755
|
const ret = Object.entries(arg0);
|
|
2696
2756
|
return ret;
|
|
2697
2757
|
},
|
|
2698
|
-
|
|
2758
|
+
__wbg_error_a6a4bb2525a88971: function(arg0, arg1, arg2, arg3) {
|
|
2699
2759
|
console.error(arg0, arg1, arg2, arg3);
|
|
2700
2760
|
},
|
|
2701
2761
|
__wbg_event_new: function(arg0) {
|
|
2702
2762
|
const ret = Event.__wrap(arg0);
|
|
2703
2763
|
return ret;
|
|
2704
2764
|
},
|
|
2705
|
-
|
|
2706
|
-
const ret = fetch(
|
|
2765
|
+
__wbg_fetch_0d322c0aed196b8b: function(arg0, arg1) {
|
|
2766
|
+
const ret = arg0.fetch(arg1);
|
|
2707
2767
|
return ret;
|
|
2708
2768
|
},
|
|
2709
|
-
|
|
2769
|
+
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
2710
2770
|
const ret = fetch(arg0);
|
|
2711
2771
|
return ret;
|
|
2712
2772
|
},
|
|
2713
|
-
|
|
2714
|
-
const ret =
|
|
2773
|
+
__wbg_fetch_950b0a68b49e477c: function(arg0) {
|
|
2774
|
+
const ret = fetch(arg0);
|
|
2715
2775
|
return ret;
|
|
2716
2776
|
},
|
|
2717
|
-
|
|
2777
|
+
__wbg_from_0dbf29f09e7fb200: function(arg0) {
|
|
2718
2778
|
const ret = Array.from(arg0);
|
|
2719
2779
|
return ret;
|
|
2720
2780
|
},
|
|
2721
|
-
|
|
2722
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2723
|
-
}, arguments); },
|
|
2724
|
-
__wbg_getRandomValues_ab1935b403569652: function() { return handleError(function (arg0, arg1) {
|
|
2781
|
+
__wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
|
|
2725
2782
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2726
2783
|
}, arguments); },
|
|
2727
2784
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
@@ -2731,42 +2788,42 @@ function __wbg_get_imports() {
|
|
|
2731
2788
|
const ret = arg0.getReader();
|
|
2732
2789
|
return ret;
|
|
2733
2790
|
}, arguments); },
|
|
2734
|
-
|
|
2791
|
+
__wbg_get_1affdbdd5573b16a: function() { return handleError(function (arg0, arg1) {
|
|
2735
2792
|
const ret = Reflect.get(arg0, arg1);
|
|
2736
2793
|
return ret;
|
|
2737
2794
|
}, arguments); },
|
|
2738
|
-
|
|
2739
|
-
const ret = arg0[arg1 >>> 0];
|
|
2740
|
-
return ret;
|
|
2741
|
-
},
|
|
2742
|
-
__wbg_get_d0e1306db90b68d9: function() { return handleError(function (arg0, arg1) {
|
|
2795
|
+
__wbg_get_6011fa3a58f61074: function() { return handleError(function (arg0, arg1) {
|
|
2743
2796
|
const ret = Reflect.get(arg0, arg1);
|
|
2744
2797
|
return ret;
|
|
2745
2798
|
}, arguments); },
|
|
2746
|
-
|
|
2799
|
+
__wbg_get_8360291721e2339f: function(arg0, arg1) {
|
|
2800
|
+
const ret = arg0[arg1 >>> 0];
|
|
2801
|
+
return ret;
|
|
2802
|
+
},
|
|
2803
|
+
__wbg_get_done_282bca5d3f90e0a8: function(arg0) {
|
|
2747
2804
|
const ret = arg0.done;
|
|
2748
2805
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2749
2806
|
},
|
|
2750
|
-
|
|
2807
|
+
__wbg_get_unchecked_17f53dad852b9588: function(arg0, arg1) {
|
|
2751
2808
|
const ret = arg0[arg1 >>> 0];
|
|
2752
2809
|
return ret;
|
|
2753
2810
|
},
|
|
2754
|
-
|
|
2811
|
+
__wbg_get_value_65a7a2c60b42fd75: function(arg0) {
|
|
2755
2812
|
const ret = arg0.value;
|
|
2756
2813
|
return ret;
|
|
2757
2814
|
},
|
|
2758
|
-
|
|
2815
|
+
__wbg_has_880f1d472f7cecba: function() { return handleError(function (arg0, arg1) {
|
|
2759
2816
|
const ret = Reflect.has(arg0, arg1);
|
|
2760
2817
|
return ret;
|
|
2761
2818
|
}, arguments); },
|
|
2762
|
-
|
|
2819
|
+
__wbg_headers_6022deb4e576fb8e: function(arg0) {
|
|
2763
2820
|
const ret = arg0.headers;
|
|
2764
2821
|
return ret;
|
|
2765
2822
|
},
|
|
2766
|
-
|
|
2823
|
+
__wbg_info_e1c3400f7bf783dc: function(arg0, arg1, arg2, arg3) {
|
|
2767
2824
|
console.info(arg0, arg1, arg2, arg3);
|
|
2768
2825
|
},
|
|
2769
|
-
|
|
2826
|
+
__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
|
|
2770
2827
|
let result;
|
|
2771
2828
|
try {
|
|
2772
2829
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -2776,7 +2833,7 @@ function __wbg_get_imports() {
|
|
|
2776
2833
|
const ret = result;
|
|
2777
2834
|
return ret;
|
|
2778
2835
|
},
|
|
2779
|
-
|
|
2836
|
+
__wbg_instanceof_Error_6872d63ba7922898: function(arg0) {
|
|
2780
2837
|
let result;
|
|
2781
2838
|
try {
|
|
2782
2839
|
result = arg0 instanceof Error;
|
|
@@ -2786,7 +2843,7 @@ function __wbg_get_imports() {
|
|
|
2786
2843
|
const ret = result;
|
|
2787
2844
|
return ret;
|
|
2788
2845
|
},
|
|
2789
|
-
|
|
2846
|
+
__wbg_instanceof_Headers_6026d655161c2300: function(arg0) {
|
|
2790
2847
|
let result;
|
|
2791
2848
|
try {
|
|
2792
2849
|
result = arg0 instanceof Headers;
|
|
@@ -2796,7 +2853,7 @@ function __wbg_get_imports() {
|
|
|
2796
2853
|
const ret = result;
|
|
2797
2854
|
return ret;
|
|
2798
2855
|
},
|
|
2799
|
-
|
|
2856
|
+
__wbg_instanceof_Map_1b76fd4635be43eb: function(arg0) {
|
|
2800
2857
|
let result;
|
|
2801
2858
|
try {
|
|
2802
2859
|
result = arg0 instanceof Map;
|
|
@@ -2806,7 +2863,7 @@ function __wbg_get_imports() {
|
|
|
2806
2863
|
const ret = result;
|
|
2807
2864
|
return ret;
|
|
2808
2865
|
},
|
|
2809
|
-
|
|
2866
|
+
__wbg_instanceof_Response_9b2d111407865ff2: function(arg0) {
|
|
2810
2867
|
let result;
|
|
2811
2868
|
try {
|
|
2812
2869
|
result = arg0 instanceof Response;
|
|
@@ -2816,7 +2873,7 @@ function __wbg_get_imports() {
|
|
|
2816
2873
|
const ret = result;
|
|
2817
2874
|
return ret;
|
|
2818
2875
|
},
|
|
2819
|
-
|
|
2876
|
+
__wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
|
|
2820
2877
|
let result;
|
|
2821
2878
|
try {
|
|
2822
2879
|
result = arg0 instanceof Uint8Array;
|
|
@@ -2826,73 +2883,73 @@ function __wbg_get_imports() {
|
|
|
2826
2883
|
const ret = result;
|
|
2827
2884
|
return ret;
|
|
2828
2885
|
},
|
|
2829
|
-
|
|
2886
|
+
__wbg_isArray_c3109d14ffc06469: function(arg0) {
|
|
2830
2887
|
const ret = Array.isArray(arg0);
|
|
2831
2888
|
return ret;
|
|
2832
2889
|
},
|
|
2833
|
-
|
|
2890
|
+
__wbg_isSafeInteger_4fc213d1989d6d2a: function(arg0) {
|
|
2834
2891
|
const ret = Number.isSafeInteger(arg0);
|
|
2835
2892
|
return ret;
|
|
2836
2893
|
},
|
|
2837
|
-
|
|
2894
|
+
__wbg_iterator_013bc09ec998c2a7: function() {
|
|
2838
2895
|
const ret = Symbol.iterator;
|
|
2839
2896
|
return ret;
|
|
2840
2897
|
},
|
|
2841
|
-
|
|
2898
|
+
__wbg_length_3d4ecd04bd8d22f1: function(arg0) {
|
|
2842
2899
|
const ret = arg0.length;
|
|
2843
2900
|
return ret;
|
|
2844
2901
|
},
|
|
2845
|
-
|
|
2902
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
2846
2903
|
const ret = arg0.length;
|
|
2847
2904
|
return ret;
|
|
2848
2905
|
},
|
|
2849
|
-
|
|
2906
|
+
__wbg_log_465fe3993e4051bf: function(arg0, arg1, arg2, arg3) {
|
|
2850
2907
|
console.log(arg0, arg1, arg2, arg3);
|
|
2851
2908
|
},
|
|
2852
2909
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
2853
2910
|
const ret = arg0.msCrypto;
|
|
2854
2911
|
return ret;
|
|
2855
2912
|
},
|
|
2856
|
-
|
|
2857
|
-
const ret = new
|
|
2858
|
-
return ret;
|
|
2859
|
-
},
|
|
2860
|
-
__wbg_new_62f131e968c83d75: function() {
|
|
2861
|
-
const ret = new Object();
|
|
2913
|
+
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
2914
|
+
const ret = new Uint8Array(arg0);
|
|
2862
2915
|
return ret;
|
|
2863
2916
|
},
|
|
2864
|
-
|
|
2865
|
-
const ret = new
|
|
2917
|
+
__wbg_new_15a4889b4b90734d: function() { return handleError(function () {
|
|
2918
|
+
const ret = new Headers();
|
|
2866
2919
|
return ret;
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2920
|
+
}, arguments); },
|
|
2921
|
+
__wbg_new_34d45cc8e36aaead: function() {
|
|
2869
2922
|
const ret = new Map();
|
|
2870
2923
|
return ret;
|
|
2871
2924
|
},
|
|
2872
|
-
|
|
2873
|
-
const ret = new
|
|
2925
|
+
__wbg_new_5e360d2ff7b9e1c3: function(arg0, arg1) {
|
|
2926
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2874
2927
|
return ret;
|
|
2875
2928
|
},
|
|
2876
|
-
|
|
2877
|
-
const ret = new
|
|
2929
|
+
__wbg_new_682678e2f47e32bc: function() {
|
|
2930
|
+
const ret = new Array();
|
|
2878
2931
|
return ret;
|
|
2879
|
-
},
|
|
2880
|
-
|
|
2932
|
+
},
|
|
2933
|
+
__wbg_new_98c22165a42231aa: function() { return handleError(function () {
|
|
2881
2934
|
const ret = new AbortController();
|
|
2882
2935
|
return ret;
|
|
2883
2936
|
}, arguments); },
|
|
2884
|
-
|
|
2937
|
+
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
2938
|
+
const ret = new Object();
|
|
2939
|
+
return ret;
|
|
2940
|
+
},
|
|
2941
|
+
__wbg_new_from_slice_b5ea43e23f6008c0: function(arg0, arg1) {
|
|
2885
2942
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2886
2943
|
return ret;
|
|
2887
2944
|
},
|
|
2888
|
-
|
|
2945
|
+
__wbg_new_typed_323f37fd55ab048d: function(arg0, arg1) {
|
|
2889
2946
|
try {
|
|
2890
2947
|
var state0 = {a: arg0, b: arg1};
|
|
2891
2948
|
var cb0 = (arg0, arg1) => {
|
|
2892
2949
|
const a = state0.a;
|
|
2893
2950
|
state0.a = 0;
|
|
2894
2951
|
try {
|
|
2895
|
-
return
|
|
2952
|
+
return wasm_bindgen__convert__closures_____invoke__h07f7e50dd0721b9d(a, state0.b, arg0, arg1);
|
|
2896
2953
|
} finally {
|
|
2897
2954
|
state0.a = a;
|
|
2898
2955
|
}
|
|
@@ -2900,10 +2957,10 @@ function __wbg_get_imports() {
|
|
|
2900
2957
|
const ret = new Promise(cb0);
|
|
2901
2958
|
return ret;
|
|
2902
2959
|
} finally {
|
|
2903
|
-
state0.a =
|
|
2960
|
+
state0.a = 0;
|
|
2904
2961
|
}
|
|
2905
2962
|
},
|
|
2906
|
-
|
|
2963
|
+
__wbg_new_with_byte_offset_and_length_01848e8d6a3d49ad: function(arg0, arg1, arg2) {
|
|
2907
2964
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
2908
2965
|
return ret;
|
|
2909
2966
|
},
|
|
@@ -2911,23 +2968,23 @@ function __wbg_get_imports() {
|
|
|
2911
2968
|
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
|
|
2912
2969
|
return ret;
|
|
2913
2970
|
},
|
|
2914
|
-
|
|
2971
|
+
__wbg_new_with_length_8c854e41ea4dae9b: function(arg0) {
|
|
2915
2972
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
2916
2973
|
return ret;
|
|
2917
2974
|
},
|
|
2918
|
-
|
|
2975
|
+
__wbg_new_with_opt_readable_stream_and_init_38c96167c370948a: function() { return handleError(function (arg0, arg1) {
|
|
2919
2976
|
const ret = new Response(arg0, arg1);
|
|
2920
2977
|
return ret;
|
|
2921
2978
|
}, arguments); },
|
|
2922
|
-
|
|
2979
|
+
__wbg_new_with_str_and_init_897be1708e42f39d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2923
2980
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
2924
2981
|
return ret;
|
|
2925
2982
|
}, arguments); },
|
|
2926
|
-
|
|
2983
|
+
__wbg_next_0340c4ae324393c3: function() { return handleError(function (arg0) {
|
|
2927
2984
|
const ret = arg0.next();
|
|
2928
2985
|
return ret;
|
|
2929
2986
|
}, arguments); },
|
|
2930
|
-
|
|
2987
|
+
__wbg_next_7646edaa39458ef7: function(arg0) {
|
|
2931
2988
|
const ret = arg0.next;
|
|
2932
2989
|
return ret;
|
|
2933
2990
|
},
|
|
@@ -2935,7 +2992,7 @@ function __wbg_get_imports() {
|
|
|
2935
2992
|
const ret = arg0.node;
|
|
2936
2993
|
return ret;
|
|
2937
2994
|
},
|
|
2938
|
-
|
|
2995
|
+
__wbg_now_a9b7df1cbee90986: function() {
|
|
2939
2996
|
const ret = Date.now();
|
|
2940
2997
|
return ret;
|
|
2941
2998
|
},
|
|
@@ -2943,7 +3000,7 @@ function __wbg_get_imports() {
|
|
|
2943
3000
|
const ret = arg0.now();
|
|
2944
3001
|
return ret;
|
|
2945
3002
|
},
|
|
2946
|
-
|
|
3003
|
+
__wbg_parse_1bbc9c053611d0a7: function() { return handleError(function (arg0, arg1) {
|
|
2947
3004
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
2948
3005
|
return ret;
|
|
2949
3006
|
}, arguments); },
|
|
@@ -2955,39 +3012,39 @@ function __wbg_get_imports() {
|
|
|
2955
3012
|
const ret = arg0.process;
|
|
2956
3013
|
return ret;
|
|
2957
3014
|
},
|
|
2958
|
-
|
|
3015
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
2959
3016
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2960
3017
|
},
|
|
2961
3018
|
__wbg_publickey_new: function(arg0) {
|
|
2962
3019
|
const ret = PublicKey.__wrap(arg0);
|
|
2963
3020
|
return ret;
|
|
2964
3021
|
},
|
|
2965
|
-
|
|
3022
|
+
__wbg_queueMicrotask_5d15a957e6aa920e: function(arg0) {
|
|
3023
|
+
queueMicrotask(arg0);
|
|
3024
|
+
},
|
|
3025
|
+
__wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
|
|
2966
3026
|
const ret = arg0.queueMicrotask;
|
|
2967
3027
|
return ret;
|
|
2968
3028
|
},
|
|
2969
|
-
__wbg_queueMicrotask_d0528786d26e067c: function(arg0) {
|
|
2970
|
-
queueMicrotask(arg0);
|
|
2971
|
-
},
|
|
2972
3029
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
2973
3030
|
arg0.randomFillSync(arg1);
|
|
2974
3031
|
}, arguments); },
|
|
2975
|
-
|
|
3032
|
+
__wbg_read_ddc2d178d2e57272: function(arg0) {
|
|
2976
3033
|
const ret = arg0.read();
|
|
2977
3034
|
return ret;
|
|
2978
3035
|
},
|
|
2979
|
-
|
|
3036
|
+
__wbg_releaseLock_9baaf3ccc5cfad69: function(arg0) {
|
|
2980
3037
|
arg0.releaseLock();
|
|
2981
3038
|
},
|
|
2982
3039
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
2983
3040
|
const ret = module.require;
|
|
2984
3041
|
return ret;
|
|
2985
3042
|
}, arguments); },
|
|
2986
|
-
|
|
3043
|
+
__wbg_resolve_e6c466bc1052f16c: function(arg0) {
|
|
2987
3044
|
const ret = Promise.resolve(arg0);
|
|
2988
3045
|
return ret;
|
|
2989
3046
|
},
|
|
2990
|
-
|
|
3047
|
+
__wbg_respond_008ca9525ae22847: function() { return handleError(function (arg0, arg1) {
|
|
2991
3048
|
arg0.respond(arg1 >>> 0);
|
|
2992
3049
|
}, arguments); },
|
|
2993
3050
|
__wbg_session_new: function(arg0) {
|
|
@@ -2998,118 +3055,118 @@ function __wbg_get_imports() {
|
|
|
2998
3055
|
const ret = setTimeout(arg0, arg1);
|
|
2999
3056
|
return ret;
|
|
3000
3057
|
},
|
|
3001
|
-
|
|
3002
|
-
const ret = arg0.set(arg1, arg2);
|
|
3003
|
-
return ret;
|
|
3004
|
-
},
|
|
3005
|
-
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
3006
|
-
arg0[arg1] = arg2;
|
|
3007
|
-
},
|
|
3008
|
-
__wbg_set_7bf9e2df46e7632c: function(arg0, arg1, arg2) {
|
|
3009
|
-
arg0[arg1 >>> 0] = arg2;
|
|
3010
|
-
},
|
|
3011
|
-
__wbg_set_8326741805409e83: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3058
|
+
__wbg_set_022bee52d0b05b19: function() { return handleError(function (arg0, arg1, arg2) {
|
|
3012
3059
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3013
3060
|
return ret;
|
|
3014
3061
|
}, arguments); },
|
|
3015
|
-
|
|
3062
|
+
__wbg_set_1ffc463d4c541483: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3063
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
3064
|
+
}, arguments); },
|
|
3065
|
+
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
3066
|
+
arg0[arg1 >>> 0] = arg2;
|
|
3067
|
+
},
|
|
3068
|
+
__wbg_set_3d484eb794afec82: function(arg0, arg1, arg2) {
|
|
3016
3069
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
3017
3070
|
},
|
|
3018
|
-
|
|
3071
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
3072
|
+
arg0[arg1] = arg2;
|
|
3073
|
+
},
|
|
3074
|
+
__wbg_set_body_be11680f34217f75: function(arg0, arg1) {
|
|
3019
3075
|
arg0.body = arg1;
|
|
3020
3076
|
},
|
|
3021
|
-
|
|
3077
|
+
__wbg_set_cache_968edea422613d1b: function(arg0, arg1) {
|
|
3022
3078
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
3023
3079
|
},
|
|
3024
|
-
|
|
3080
|
+
__wbg_set_credentials_6577be90e0e85eb6: function(arg0, arg1) {
|
|
3025
3081
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
3026
3082
|
},
|
|
3027
|
-
|
|
3028
|
-
arg0.set(
|
|
3029
|
-
|
|
3030
|
-
|
|
3083
|
+
__wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
|
|
3084
|
+
const ret = arg0.set(arg1, arg2);
|
|
3085
|
+
return ret;
|
|
3086
|
+
},
|
|
3087
|
+
__wbg_set_headers_50fc01786240a440: function(arg0, arg1) {
|
|
3031
3088
|
arg0.headers = arg1;
|
|
3032
3089
|
},
|
|
3033
|
-
|
|
3090
|
+
__wbg_set_headers_d567a640ab3a7735: function(arg0, arg1) {
|
|
3034
3091
|
arg0.headers = arg1;
|
|
3035
3092
|
},
|
|
3036
|
-
|
|
3093
|
+
__wbg_set_high_water_mark_0ac7cc8f39856bad: function(arg0, arg1) {
|
|
3037
3094
|
arg0.highWaterMark = arg1;
|
|
3038
3095
|
},
|
|
3039
|
-
|
|
3096
|
+
__wbg_set_method_c9f1f985f6b6c427: function(arg0, arg1, arg2) {
|
|
3040
3097
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
3041
3098
|
},
|
|
3042
|
-
|
|
3099
|
+
__wbg_set_mode_5e08d503428c06b9: function(arg0, arg1) {
|
|
3043
3100
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
3044
3101
|
},
|
|
3045
|
-
|
|
3102
|
+
__wbg_set_name_f49c6e6bbfc8a63b: function(arg0, arg1, arg2) {
|
|
3046
3103
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3047
3104
|
},
|
|
3048
|
-
|
|
3105
|
+
__wbg_set_signal_1d4e73c2305a0e7c: function(arg0, arg1) {
|
|
3049
3106
|
arg0.signal = arg1;
|
|
3050
3107
|
},
|
|
3051
|
-
|
|
3108
|
+
__wbg_set_status_384b9a831b2c0723: function(arg0, arg1) {
|
|
3052
3109
|
arg0.status = arg1;
|
|
3053
3110
|
},
|
|
3054
|
-
|
|
3111
|
+
__wbg_set_status_text_6e9fbc237df0665f: function(arg0, arg1, arg2) {
|
|
3055
3112
|
arg0.statusText = getStringFromWasm0(arg1, arg2);
|
|
3056
3113
|
},
|
|
3057
|
-
|
|
3114
|
+
__wbg_signal_fdc54643b47bf85b: function(arg0) {
|
|
3058
3115
|
const ret = arg0.signal;
|
|
3059
3116
|
return ret;
|
|
3060
3117
|
},
|
|
3061
|
-
|
|
3062
|
-
const ret = typeof
|
|
3118
|
+
__wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
|
|
3119
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
3063
3120
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3064
3121
|
},
|
|
3065
|
-
|
|
3066
|
-
const ret = typeof
|
|
3122
|
+
__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
|
|
3123
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3067
3124
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3068
3125
|
},
|
|
3069
|
-
|
|
3126
|
+
__wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
|
|
3070
3127
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3071
3128
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3072
3129
|
},
|
|
3073
|
-
|
|
3130
|
+
__wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
|
|
3074
3131
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3075
3132
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3076
3133
|
},
|
|
3077
|
-
|
|
3134
|
+
__wbg_status_43e0d2f15b22d69f: function(arg0) {
|
|
3078
3135
|
const ret = arg0.status;
|
|
3079
3136
|
return ret;
|
|
3080
3137
|
},
|
|
3081
|
-
|
|
3138
|
+
__wbg_stringify_91082ed7a5a5769e: function() { return handleError(function (arg0) {
|
|
3082
3139
|
const ret = JSON.stringify(arg0);
|
|
3083
3140
|
return ret;
|
|
3084
3141
|
}, arguments); },
|
|
3085
|
-
|
|
3142
|
+
__wbg_subarray_f8ca46a25b1f5e0d: function(arg0, arg1, arg2) {
|
|
3086
3143
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3087
3144
|
return ret;
|
|
3088
3145
|
},
|
|
3089
|
-
|
|
3146
|
+
__wbg_text_595ef75535aa25c1: function() { return handleError(function (arg0) {
|
|
3090
3147
|
const ret = arg0.text();
|
|
3091
3148
|
return ret;
|
|
3092
3149
|
}, arguments); },
|
|
3093
|
-
|
|
3150
|
+
__wbg_then_792e0c862b060889: function(arg0, arg1, arg2) {
|
|
3094
3151
|
const ret = arg0.then(arg1, arg2);
|
|
3095
3152
|
return ret;
|
|
3096
3153
|
},
|
|
3097
|
-
|
|
3154
|
+
__wbg_then_8e16ee11f05e4827: function(arg0, arg1) {
|
|
3098
3155
|
const ret = arg0.then(arg1);
|
|
3099
3156
|
return ret;
|
|
3100
3157
|
},
|
|
3101
|
-
|
|
3158
|
+
__wbg_toString_6dc1a94e0bdba378: function(arg0) {
|
|
3102
3159
|
const ret = arg0.toString();
|
|
3103
3160
|
return ret;
|
|
3104
3161
|
},
|
|
3105
|
-
|
|
3162
|
+
__wbg_url_2bf741820e6563a0: function(arg0, arg1) {
|
|
3106
3163
|
const ret = arg1.url;
|
|
3107
3164
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3108
3165
|
const len1 = WASM_VECTOR_LEN;
|
|
3109
3166
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3110
3167
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3111
3168
|
},
|
|
3112
|
-
|
|
3169
|
+
__wbg_value_ee3a06f4579184fa: function(arg0) {
|
|
3113
3170
|
const ret = arg0.value;
|
|
3114
3171
|
return ret;
|
|
3115
3172
|
},
|
|
@@ -3117,26 +3174,26 @@ function __wbg_get_imports() {
|
|
|
3117
3174
|
const ret = arg0.versions;
|
|
3118
3175
|
return ret;
|
|
3119
3176
|
},
|
|
3120
|
-
|
|
3177
|
+
__wbg_view_701664ffb3b1ce67: function(arg0) {
|
|
3121
3178
|
const ret = arg0.view;
|
|
3122
3179
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3123
3180
|
},
|
|
3124
|
-
|
|
3181
|
+
__wbg_warn_ad997e36628bd23a: function(arg0, arg1, arg2, arg3) {
|
|
3125
3182
|
console.warn(arg0, arg1, arg2, arg3);
|
|
3126
3183
|
},
|
|
3127
3184
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3128
|
-
// Cast intrinsic for `Closure(Closure {
|
|
3129
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3185
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 210, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3186
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h133626e41e58f4a6);
|
|
3130
3187
|
return ret;
|
|
3131
3188
|
},
|
|
3132
3189
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3133
|
-
// Cast intrinsic for `Closure(Closure {
|
|
3134
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3190
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 99, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3191
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4bb717da3454dff6);
|
|
3135
3192
|
return ret;
|
|
3136
3193
|
},
|
|
3137
3194
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3138
|
-
// Cast intrinsic for `Closure(Closure {
|
|
3139
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3195
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 207, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3196
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h23d08164a6e45171);
|
|
3140
3197
|
return ret;
|
|
3141
3198
|
},
|
|
3142
3199
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -3187,23 +3244,23 @@ function __wbg_get_imports() {
|
|
|
3187
3244
|
};
|
|
3188
3245
|
}
|
|
3189
3246
|
|
|
3190
|
-
function
|
|
3191
|
-
wasm.
|
|
3247
|
+
function wasm_bindgen__convert__closures_____invoke__h23d08164a6e45171(arg0, arg1) {
|
|
3248
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h23d08164a6e45171(arg0, arg1);
|
|
3192
3249
|
}
|
|
3193
3250
|
|
|
3194
|
-
function
|
|
3195
|
-
wasm.
|
|
3251
|
+
function wasm_bindgen__convert__closures_____invoke__h133626e41e58f4a6(arg0, arg1, arg2) {
|
|
3252
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h133626e41e58f4a6(arg0, arg1, arg2);
|
|
3196
3253
|
}
|
|
3197
3254
|
|
|
3198
|
-
function
|
|
3199
|
-
const ret = wasm.
|
|
3255
|
+
function wasm_bindgen__convert__closures_____invoke__h4bb717da3454dff6(arg0, arg1, arg2) {
|
|
3256
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h4bb717da3454dff6(arg0, arg1, arg2);
|
|
3200
3257
|
if (ret[1]) {
|
|
3201
3258
|
throw takeFromExternrefTable0(ret[0]);
|
|
3202
3259
|
}
|
|
3203
3260
|
}
|
|
3204
3261
|
|
|
3205
|
-
function
|
|
3206
|
-
wasm.
|
|
3262
|
+
function wasm_bindgen__convert__closures_____invoke__h07f7e50dd0721b9d(arg0, arg1, arg2, arg3) {
|
|
3263
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h07f7e50dd0721b9d(arg0, arg1, arg2, arg3);
|
|
3207
3264
|
}
|
|
3208
3265
|
|
|
3209
3266
|
|
|
@@ -3301,7 +3358,7 @@ function _assertClass(instance, klass) {
|
|
|
3301
3358
|
|
|
3302
3359
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
3303
3360
|
? { register: () => {}, unregister: () => {} }
|
|
3304
|
-
: new FinalizationRegistry(state =>
|
|
3361
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
3305
3362
|
|
|
3306
3363
|
function debugString(val) {
|
|
3307
3364
|
// primitive types
|
|
@@ -3418,8 +3475,8 @@ function isLikeNone(x) {
|
|
|
3418
3475
|
return x === undefined || x === null;
|
|
3419
3476
|
}
|
|
3420
3477
|
|
|
3421
|
-
function makeMutClosure(arg0, arg1,
|
|
3422
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
3478
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
3479
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
3423
3480
|
const real = (...args) => {
|
|
3424
3481
|
|
|
3425
3482
|
// First up with a closure we increment the internal reference
|
|
@@ -3437,7 +3494,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
3437
3494
|
};
|
|
3438
3495
|
real._wbg_cb_unref = () => {
|
|
3439
3496
|
if (--state.cnt === 0) {
|
|
3440
|
-
|
|
3497
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
3441
3498
|
state.a = 0;
|
|
3442
3499
|
CLOSURE_DTORS.unregister(state);
|
|
3443
3500
|
}
|