@cartridge/controller-wasm 0.3.5 → 0.3.7
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/package.json +1 -1
- package/pkg-controller/account_wasm.d.ts +23 -11
- package/pkg-controller/account_wasm_bg.js +341 -374
- package/pkg-controller/account_wasm_bg.wasm +0 -0
- package/pkg-session/session_wasm.d.ts +12 -1
- package/pkg-session/session_wasm_bg.js +216 -196
- package/pkg-session/session_wasm_bg.wasm +0 -0
|
@@ -15,9 +15,7 @@ function getUint8ArrayMemory0() {
|
|
|
15
15
|
return cachedUint8ArrayMemory0;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
18
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
21
19
|
|
|
22
20
|
cachedTextDecoder.decode();
|
|
23
21
|
|
|
@@ -26,7 +24,7 @@ let numBytesDecoded = 0;
|
|
|
26
24
|
function decodeText(ptr, len) {
|
|
27
25
|
numBytesDecoded += len;
|
|
28
26
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
29
|
-
cachedTextDecoder = new
|
|
27
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
30
28
|
cachedTextDecoder.decode();
|
|
31
29
|
numBytesDecoded = len;
|
|
32
30
|
}
|
|
@@ -38,7 +36,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
38
36
|
return decodeText(ptr, len);
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
let heap = new Array(128).fill(undefined);
|
|
42
40
|
|
|
43
41
|
heap.push(undefined, null, true, false);
|
|
44
42
|
|
|
@@ -57,22 +55,18 @@ function getObject(idx) { return heap[idx]; }
|
|
|
57
55
|
|
|
58
56
|
let WASM_VECTOR_LEN = 0;
|
|
59
57
|
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
const cachedTextEncoder = new lTextEncoder('utf-8');
|
|
58
|
+
const cachedTextEncoder = new TextEncoder();
|
|
63
59
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
61
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
62
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
63
|
+
view.set(buf);
|
|
64
|
+
return {
|
|
65
|
+
read: arg.length,
|
|
66
|
+
written: buf.length
|
|
67
|
+
};
|
|
68
|
+
}
|
|
67
69
|
}
|
|
68
|
-
: function (arg, view) {
|
|
69
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
70
|
-
view.set(buf);
|
|
71
|
-
return {
|
|
72
|
-
read: arg.length,
|
|
73
|
-
written: buf.length
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
70
|
|
|
77
71
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
78
72
|
|
|
@@ -103,7 +97,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
103
97
|
}
|
|
104
98
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
105
99
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
106
|
-
const ret =
|
|
100
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
107
101
|
|
|
108
102
|
offset += ret.written;
|
|
109
103
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -151,37 +145,6 @@ function isLikeNone(x) {
|
|
|
151
145
|
return x === undefined || x === null;
|
|
152
146
|
}
|
|
153
147
|
|
|
154
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
155
|
-
? { register: () => {}, unregister: () => {} }
|
|
156
|
-
: new FinalizationRegistry(state => {
|
|
157
|
-
wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b)
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
161
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
162
|
-
const real = (...args) => {
|
|
163
|
-
// First up with a closure we increment the internal reference
|
|
164
|
-
// count. This ensures that the Rust closure environment won't
|
|
165
|
-
// be deallocated while we're invoking it.
|
|
166
|
-
state.cnt++;
|
|
167
|
-
const a = state.a;
|
|
168
|
-
state.a = 0;
|
|
169
|
-
try {
|
|
170
|
-
return f(a, state.b, ...args);
|
|
171
|
-
} finally {
|
|
172
|
-
if (--state.cnt === 0) {
|
|
173
|
-
wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
|
|
174
|
-
CLOSURE_DTORS.unregister(state);
|
|
175
|
-
} else {
|
|
176
|
-
state.a = a;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
real.original = state;
|
|
181
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
182
|
-
return real;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
148
|
function debugString(val) {
|
|
186
149
|
// primitive types
|
|
187
150
|
const type = typeof val;
|
|
@@ -247,6 +210,40 @@ function debugString(val) {
|
|
|
247
210
|
return className;
|
|
248
211
|
}
|
|
249
212
|
|
|
213
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
214
|
+
? { register: () => {}, unregister: () => {} }
|
|
215
|
+
: new FinalizationRegistry(
|
|
216
|
+
state => {
|
|
217
|
+
wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
222
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
223
|
+
const real = (...args) => {
|
|
224
|
+
|
|
225
|
+
// First up with a closure we increment the internal reference
|
|
226
|
+
// count. This ensures that the Rust closure environment won't
|
|
227
|
+
// be deallocated while we're invoking it.
|
|
228
|
+
state.cnt++;
|
|
229
|
+
const a = state.a;
|
|
230
|
+
state.a = 0;
|
|
231
|
+
try {
|
|
232
|
+
return f(a, state.b, ...args);
|
|
233
|
+
} finally {
|
|
234
|
+
if (--state.cnt === 0) {
|
|
235
|
+
wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
|
|
236
|
+
CLOSURE_DTORS.unregister(state);
|
|
237
|
+
} else {
|
|
238
|
+
state.a = a;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
real.original = state;
|
|
243
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
244
|
+
return real;
|
|
245
|
+
}
|
|
246
|
+
|
|
250
247
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
251
248
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
252
249
|
const mem = getDataViewMemory0();
|
|
@@ -256,20 +253,44 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
256
253
|
WASM_VECTOR_LEN = array.length;
|
|
257
254
|
return ptr;
|
|
258
255
|
}
|
|
259
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Subscribes to the creation of a session for a given controller, session_key_guid and cartridge api url.
|
|
258
|
+
* The goal of this function is to know from any place when the register session flow has been completed, and to
|
|
259
|
+
* get the authorization.
|
|
260
|
+
* @param {JsFelt} session_key_guid
|
|
261
|
+
* @param {string} cartridge_api_url
|
|
262
|
+
* @returns {Promise<JsSubscribeSessionResult>}
|
|
263
|
+
*/
|
|
264
|
+
export function subscribeCreateSession(session_key_guid, cartridge_api_url) {
|
|
265
|
+
const ptr0 = passStringToWasm0(cartridge_api_url, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
267
|
+
const ret = wasm.subscribeCreateSession(addHeapObject(session_key_guid), ptr0, len0);
|
|
268
|
+
return takeObject(ret);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* @param {Signer} signer
|
|
273
|
+
* @returns {JsFelt}
|
|
274
|
+
*/
|
|
275
|
+
export function signerToGuid(signer) {
|
|
276
|
+
const ret = wasm.signerToGuid(addHeapObject(signer));
|
|
277
|
+
return takeObject(ret);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function __wbg_adapter_6(arg0, arg1) {
|
|
260
281
|
wasm.__wbindgen_export_5(arg0, arg1);
|
|
261
282
|
}
|
|
262
283
|
|
|
263
|
-
function
|
|
284
|
+
function __wbg_adapter_13(arg0, arg1, arg2) {
|
|
264
285
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
|
|
265
286
|
}
|
|
266
287
|
|
|
267
|
-
function
|
|
288
|
+
function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
|
|
268
289
|
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
269
290
|
}
|
|
270
291
|
|
|
271
292
|
/**
|
|
272
|
-
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141}
|
|
293
|
+
* @enum {1 | 20 | 24 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 40 | 41 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 10 | 64 | 65 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143}
|
|
273
294
|
*/
|
|
274
295
|
export const ErrorCode = Object.freeze({
|
|
275
296
|
StarknetFailedToReceiveTransaction: 1, "1": "StarknetFailedToReceiveTransaction",
|
|
@@ -340,6 +361,8 @@ export const ErrorCode = Object.freeze({
|
|
|
340
361
|
TransactionTimeout: 139, "139": "TransactionTimeout",
|
|
341
362
|
ConversionError: 140, "140": "ConversionError",
|
|
342
363
|
InvalidChainId: 141, "141": "InvalidChainId",
|
|
364
|
+
SessionRefreshRequired: 142, "142": "SessionRefreshRequired",
|
|
365
|
+
ManualExecutionRequired: 143, "143": "ManualExecutionRequired",
|
|
343
366
|
});
|
|
344
367
|
|
|
345
368
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -459,6 +482,7 @@ export class CartridgeSessionAccount {
|
|
|
459
482
|
return takeObject(ret);
|
|
460
483
|
}
|
|
461
484
|
}
|
|
485
|
+
if (Symbol.dispose) CartridgeSessionAccount.prototype[Symbol.dispose] = CartridgeSessionAccount.prototype.free;
|
|
462
486
|
|
|
463
487
|
const JsControllerErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
464
488
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -553,8 +577,9 @@ export class JsControllerError {
|
|
|
553
577
|
wasm.__wbg_set_jscontrollererror_data(this.__wbg_ptr, ptr0, len0);
|
|
554
578
|
}
|
|
555
579
|
}
|
|
580
|
+
if (Symbol.dispose) JsControllerError.prototype[Symbol.dispose] = JsControllerError.prototype.free;
|
|
556
581
|
|
|
557
|
-
export function
|
|
582
|
+
export function __wbg_Error_e17e777aac105295(arg0, arg1) {
|
|
558
583
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
559
584
|
return addHeapObject(ret);
|
|
560
585
|
};
|
|
@@ -567,35 +592,30 @@ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
|
567
592
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
568
593
|
};
|
|
569
594
|
|
|
570
|
-
export function
|
|
595
|
+
export function __wbg_abort_67e1b49bf6614565(arg0) {
|
|
571
596
|
getObject(arg0).abort();
|
|
572
597
|
};
|
|
573
598
|
|
|
574
|
-
export function
|
|
599
|
+
export function __wbg_abort_d830bf2e9aa6ec5b(arg0, arg1) {
|
|
575
600
|
getObject(arg0).abort(getObject(arg1));
|
|
576
601
|
};
|
|
577
602
|
|
|
578
|
-
export function
|
|
603
|
+
export function __wbg_append_72a3c0addd2bce38() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
579
604
|
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
580
605
|
}, arguments) };
|
|
581
606
|
|
|
582
|
-
export function
|
|
607
|
+
export function __wbg_arrayBuffer_9c99b8e2809e8cbb() { return handleError(function (arg0) {
|
|
583
608
|
const ret = getObject(arg0).arrayBuffer();
|
|
584
609
|
return addHeapObject(ret);
|
|
585
610
|
}, arguments) };
|
|
586
611
|
|
|
587
|
-
export function
|
|
588
|
-
const ret = getObject(arg0).
|
|
589
|
-
return addHeapObject(ret);
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
export function __wbg_call_f2db6205e5c51dc8() { return handleError(function (arg0, arg1, arg2) {
|
|
593
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
612
|
+
export function __wbg_call_13410aac570ffff7() { return handleError(function (arg0, arg1) {
|
|
613
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
594
614
|
return addHeapObject(ret);
|
|
595
615
|
}, arguments) };
|
|
596
616
|
|
|
597
|
-
export function
|
|
598
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
617
|
+
export function __wbg_call_a5400b25a865cfd8() { return handleError(function (arg0, arg1, arg2) {
|
|
618
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
599
619
|
return addHeapObject(ret);
|
|
600
620
|
}, arguments) };
|
|
601
621
|
|
|
@@ -604,7 +624,7 @@ export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
|
|
|
604
624
|
return addHeapObject(ret);
|
|
605
625
|
};
|
|
606
626
|
|
|
607
|
-
export function
|
|
627
|
+
export function __wbg_credentials_f1f893c6da3e9ee4(arg0) {
|
|
608
628
|
const ret = getObject(arg0).credentials;
|
|
609
629
|
return addHeapObject(ret);
|
|
610
630
|
};
|
|
@@ -614,12 +634,12 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
|
614
634
|
return addHeapObject(ret);
|
|
615
635
|
};
|
|
616
636
|
|
|
617
|
-
export function
|
|
637
|
+
export function __wbg_done_75ed0ee6dd243d9d(arg0) {
|
|
618
638
|
const ret = getObject(arg0).done;
|
|
619
639
|
return ret;
|
|
620
640
|
};
|
|
621
641
|
|
|
622
|
-
export function
|
|
642
|
+
export function __wbg_fetch_87aed7f306ec6d63(arg0, arg1) {
|
|
623
643
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
624
644
|
return addHeapObject(ret);
|
|
625
645
|
};
|
|
@@ -634,7 +654,7 @@ export function __wbg_fetch_f1856afdb49415d1(arg0) {
|
|
|
634
654
|
return addHeapObject(ret);
|
|
635
655
|
};
|
|
636
656
|
|
|
637
|
-
export function
|
|
657
|
+
export function __wbg_getClientExtensionResults_b9c10fd2534468bc(arg0) {
|
|
638
658
|
const ret = getObject(arg0).getClientExtensionResults();
|
|
639
659
|
return addHeapObject(ret);
|
|
640
660
|
};
|
|
@@ -643,17 +663,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
|
|
|
643
663
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
644
664
|
}, arguments) };
|
|
645
665
|
|
|
646
|
-
export function
|
|
666
|
+
export function __wbg_getTime_6bb3f64e0f18f817(arg0) {
|
|
647
667
|
const ret = getObject(arg0).getTime();
|
|
648
668
|
return ret;
|
|
649
669
|
};
|
|
650
670
|
|
|
651
|
-
export function
|
|
671
|
+
export function __wbg_get_1cbe414461579d6e() { return handleError(function (arg0, arg1) {
|
|
652
672
|
const ret = getObject(arg0).get(getObject(arg1));
|
|
653
673
|
return addHeapObject(ret);
|
|
654
674
|
}, arguments) };
|
|
655
675
|
|
|
656
|
-
export function
|
|
676
|
+
export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
|
|
657
677
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
658
678
|
return addHeapObject(ret);
|
|
659
679
|
}, arguments) };
|
|
@@ -663,17 +683,17 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
|
663
683
|
return addHeapObject(ret);
|
|
664
684
|
};
|
|
665
685
|
|
|
666
|
-
export function
|
|
686
|
+
export function __wbg_has_b89e451f638123e3() { return handleError(function (arg0, arg1) {
|
|
667
687
|
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
668
688
|
return ret;
|
|
669
689
|
}, arguments) };
|
|
670
690
|
|
|
671
|
-
export function
|
|
691
|
+
export function __wbg_headers_29fec3c72865cd75(arg0) {
|
|
672
692
|
const ret = getObject(arg0).headers;
|
|
673
693
|
return addHeapObject(ret);
|
|
674
694
|
};
|
|
675
695
|
|
|
676
|
-
export function
|
|
696
|
+
export function __wbg_instanceof_ArrayBuffer_67f3012529f6a2dd(arg0) {
|
|
677
697
|
let result;
|
|
678
698
|
try {
|
|
679
699
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -684,7 +704,7 @@ export function __wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc(arg0) {
|
|
|
684
704
|
return ret;
|
|
685
705
|
};
|
|
686
706
|
|
|
687
|
-
export function
|
|
707
|
+
export function __wbg_instanceof_Object_fbf5fef4952ff29b(arg0) {
|
|
688
708
|
let result;
|
|
689
709
|
try {
|
|
690
710
|
result = getObject(arg0) instanceof Object;
|
|
@@ -695,7 +715,7 @@ export function __wbg_instanceof_Object_9a05796038b7a8f6(arg0) {
|
|
|
695
715
|
return ret;
|
|
696
716
|
};
|
|
697
717
|
|
|
698
|
-
export function
|
|
718
|
+
export function __wbg_instanceof_Response_50fde2cd696850bf(arg0) {
|
|
699
719
|
let result;
|
|
700
720
|
try {
|
|
701
721
|
result = getObject(arg0) instanceof Response;
|
|
@@ -706,7 +726,7 @@ export function __wbg_instanceof_Response_e80ce8b7a2b968d2(arg0) {
|
|
|
706
726
|
return ret;
|
|
707
727
|
};
|
|
708
728
|
|
|
709
|
-
export function
|
|
729
|
+
export function __wbg_instanceof_Uint8Array_9a8378d955933db7(arg0) {
|
|
710
730
|
let result;
|
|
711
731
|
try {
|
|
712
732
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -717,7 +737,7 @@ export function __wbg_instanceof_Uint8Array_ca460677bc155827(arg0) {
|
|
|
717
737
|
return ret;
|
|
718
738
|
};
|
|
719
739
|
|
|
720
|
-
export function
|
|
740
|
+
export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
|
|
721
741
|
let result;
|
|
722
742
|
try {
|
|
723
743
|
result = getObject(arg0) instanceof Window;
|
|
@@ -728,7 +748,7 @@ export function __wbg_instanceof_Window_68f3f67bad1729c1(arg0) {
|
|
|
728
748
|
return ret;
|
|
729
749
|
};
|
|
730
750
|
|
|
731
|
-
export function
|
|
751
|
+
export function __wbg_iterator_f370b34483c71a1c() {
|
|
732
752
|
const ret = Symbol.iterator;
|
|
733
753
|
return addHeapObject(ret);
|
|
734
754
|
};
|
|
@@ -738,17 +758,17 @@ export function __wbg_jscontrollererror_new(arg0) {
|
|
|
738
758
|
return addHeapObject(ret);
|
|
739
759
|
};
|
|
740
760
|
|
|
741
|
-
export function
|
|
761
|
+
export function __wbg_length_6bb7e81f9d7713e4(arg0) {
|
|
742
762
|
const ret = getObject(arg0).length;
|
|
743
763
|
return ret;
|
|
744
764
|
};
|
|
745
765
|
|
|
746
|
-
export function
|
|
766
|
+
export function __wbg_location_92d89c32ae076cab(arg0) {
|
|
747
767
|
const ret = getObject(arg0).location;
|
|
748
768
|
return addHeapObject(ret);
|
|
749
769
|
};
|
|
750
770
|
|
|
751
|
-
export function
|
|
771
|
+
export function __wbg_log_6c7b5f4f00b8ce3f(arg0) {
|
|
752
772
|
console.log(getObject(arg0));
|
|
753
773
|
};
|
|
754
774
|
|
|
@@ -757,49 +777,39 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
|
757
777
|
return addHeapObject(ret);
|
|
758
778
|
};
|
|
759
779
|
|
|
760
|
-
export function
|
|
780
|
+
export function __wbg_navigator_65d5ad763926b868(arg0) {
|
|
761
781
|
const ret = getObject(arg0).navigator;
|
|
762
782
|
return addHeapObject(ret);
|
|
763
783
|
};
|
|
764
784
|
|
|
765
|
-
export function
|
|
785
|
+
export function __wbg_new0_b0a0a38c201e6df5() {
|
|
766
786
|
const ret = new Date();
|
|
767
787
|
return addHeapObject(ret);
|
|
768
788
|
};
|
|
769
789
|
|
|
770
|
-
export function
|
|
790
|
+
export function __wbg_new_19c25a3f2fa63a02() {
|
|
771
791
|
const ret = new Object();
|
|
772
792
|
return addHeapObject(ret);
|
|
773
793
|
};
|
|
774
794
|
|
|
775
|
-
export function
|
|
776
|
-
const ret = new
|
|
795
|
+
export function __wbg_new_1f3a344cf3123716() {
|
|
796
|
+
const ret = new Array();
|
|
777
797
|
return addHeapObject(ret);
|
|
778
|
-
}
|
|
798
|
+
};
|
|
779
799
|
|
|
780
800
|
export function __wbg_new_2658d63118834d8e() {
|
|
781
801
|
const ret = new Mutex();
|
|
782
802
|
return addHeapObject(ret);
|
|
783
803
|
};
|
|
784
804
|
|
|
785
|
-
export function
|
|
786
|
-
const ret = new Headers();
|
|
787
|
-
return addHeapObject(ret);
|
|
788
|
-
}, arguments) };
|
|
789
|
-
|
|
790
|
-
export function __wbg_new_58353953ad2097cc() {
|
|
791
|
-
const ret = new Array();
|
|
792
|
-
return addHeapObject(ret);
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
|
|
805
|
+
export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
|
|
796
806
|
try {
|
|
797
807
|
var state0 = {a: arg0, b: arg1};
|
|
798
808
|
var cb0 = (arg0, arg1) => {
|
|
799
809
|
const a = state0.a;
|
|
800
810
|
state0.a = 0;
|
|
801
811
|
try {
|
|
802
|
-
return
|
|
812
|
+
return __wbg_adapter_171(a, state0.b, arg0, arg1);
|
|
803
813
|
} finally {
|
|
804
814
|
state0.a = a;
|
|
805
815
|
}
|
|
@@ -811,42 +821,47 @@ export function __wbg_new_e30c39c06edaabf2(arg0, arg1) {
|
|
|
811
821
|
}
|
|
812
822
|
};
|
|
813
823
|
|
|
814
|
-
export function
|
|
824
|
+
export function __wbg_new_638ebfaedbf32a5e(arg0) {
|
|
815
825
|
const ret = new Uint8Array(getObject(arg0));
|
|
816
826
|
return addHeapObject(ret);
|
|
817
827
|
};
|
|
818
828
|
|
|
819
|
-
export function
|
|
820
|
-
const ret = new
|
|
829
|
+
export function __wbg_new_66b9434b4e59b63e() { return handleError(function () {
|
|
830
|
+
const ret = new AbortController();
|
|
821
831
|
return addHeapObject(ret);
|
|
822
|
-
};
|
|
832
|
+
}, arguments) };
|
|
823
833
|
|
|
824
|
-
export function
|
|
825
|
-
const ret = new
|
|
834
|
+
export function __wbg_new_f6e53210afea8e45() { return handleError(function () {
|
|
835
|
+
const ret = new Headers();
|
|
836
|
+
return addHeapObject(ret);
|
|
837
|
+
}, arguments) };
|
|
838
|
+
|
|
839
|
+
export function __wbg_newfromslice_074c56947bd43469(arg0, arg1) {
|
|
840
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
826
841
|
return addHeapObject(ret);
|
|
827
842
|
};
|
|
828
843
|
|
|
829
|
-
export function
|
|
830
|
-
const ret = new
|
|
844
|
+
export function __wbg_newnoargs_254190557c45b4ec(arg0, arg1) {
|
|
845
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
831
846
|
return addHeapObject(ret);
|
|
832
847
|
};
|
|
833
848
|
|
|
834
|
-
export function
|
|
849
|
+
export function __wbg_newwithlength_a167dcc7aaa3ba77(arg0) {
|
|
835
850
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
836
851
|
return addHeapObject(ret);
|
|
837
852
|
};
|
|
838
853
|
|
|
839
|
-
export function
|
|
854
|
+
export function __wbg_newwithstrandinit_b5d168a29a3fd85f() { return handleError(function (arg0, arg1, arg2) {
|
|
840
855
|
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
841
856
|
return addHeapObject(ret);
|
|
842
857
|
}, arguments) };
|
|
843
858
|
|
|
844
|
-
export function
|
|
859
|
+
export function __wbg_next_5b3530e612fde77d(arg0) {
|
|
845
860
|
const ret = getObject(arg0).next;
|
|
846
861
|
return addHeapObject(ret);
|
|
847
862
|
};
|
|
848
863
|
|
|
849
|
-
export function
|
|
864
|
+
export function __wbg_next_692e82279131b03c() { return handleError(function (arg0) {
|
|
850
865
|
const ret = getObject(arg0).next();
|
|
851
866
|
return addHeapObject(ret);
|
|
852
867
|
}, arguments) };
|
|
@@ -861,7 +876,7 @@ export function __wbg_obtain_a9626b3b96e6dc2c(arg0) {
|
|
|
861
876
|
return addHeapObject(ret);
|
|
862
877
|
};
|
|
863
878
|
|
|
864
|
-
export function
|
|
879
|
+
export function __wbg_origin_00892013881c6e2b() { return handleError(function (arg0, arg1) {
|
|
865
880
|
const ret = getObject(arg1).origin;
|
|
866
881
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
867
882
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -869,7 +884,7 @@ export function __wbg_origin_5c460f727a4fbf19() { return handleError(function (a
|
|
|
869
884
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
870
885
|
}, arguments) };
|
|
871
886
|
|
|
872
|
-
export function
|
|
887
|
+
export function __wbg_parse_037c33ab58f9eabf(arg0, arg1) {
|
|
873
888
|
let deferred0_0;
|
|
874
889
|
let deferred0_1;
|
|
875
890
|
try {
|
|
@@ -887,16 +902,20 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
|
887
902
|
return addHeapObject(ret);
|
|
888
903
|
};
|
|
889
904
|
|
|
890
|
-
export function
|
|
905
|
+
export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
|
|
906
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
export function __wbg_push_330b2eb93e4e1212(arg0, arg1) {
|
|
891
910
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
892
911
|
return ret;
|
|
893
912
|
};
|
|
894
913
|
|
|
895
|
-
export function
|
|
914
|
+
export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
|
|
896
915
|
queueMicrotask(getObject(arg0));
|
|
897
916
|
};
|
|
898
917
|
|
|
899
|
-
export function
|
|
918
|
+
export function __wbg_queueMicrotask_4488407636f5bf24(arg0) {
|
|
900
919
|
const ret = getObject(arg0).queueMicrotask;
|
|
901
920
|
return addHeapObject(ret);
|
|
902
921
|
};
|
|
@@ -910,7 +929,7 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
|
|
|
910
929
|
return addHeapObject(ret);
|
|
911
930
|
}, arguments) };
|
|
912
931
|
|
|
913
|
-
export function
|
|
932
|
+
export function __wbg_resolve_4055c623acdd6a1b(arg0) {
|
|
914
933
|
const ret = Promise.resolve(getObject(arg0));
|
|
915
934
|
return addHeapObject(ret);
|
|
916
935
|
};
|
|
@@ -928,44 +947,40 @@ export function __wbg_set_3fda3bac07393de4(arg0, arg1, arg2) {
|
|
|
928
947
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
929
948
|
};
|
|
930
949
|
|
|
931
|
-
export function
|
|
932
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
export function __wbg_set_c43293f93a35998a() { return handleError(function (arg0, arg1, arg2) {
|
|
950
|
+
export function __wbg_set_453345bcda80b89a() { return handleError(function (arg0, arg1, arg2) {
|
|
936
951
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
937
952
|
return ret;
|
|
938
953
|
}, arguments) };
|
|
939
954
|
|
|
940
|
-
export function
|
|
941
|
-
getObject(arg0)
|
|
955
|
+
export function __wbg_set_90f6c0f7bd8c0415(arg0, arg1, arg2) {
|
|
956
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
942
957
|
};
|
|
943
958
|
|
|
944
|
-
export function
|
|
959
|
+
export function __wbg_setbody_c8460bdf44147df8(arg0, arg1) {
|
|
945
960
|
getObject(arg0).body = getObject(arg1);
|
|
946
961
|
};
|
|
947
962
|
|
|
948
|
-
export function
|
|
963
|
+
export function __wbg_setcache_90ca4ad8a8ad40d3(arg0, arg1) {
|
|
949
964
|
getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
|
|
950
965
|
};
|
|
951
966
|
|
|
952
|
-
export function
|
|
967
|
+
export function __wbg_setcredentials_9cd60d632c9d5dfc(arg0, arg1) {
|
|
953
968
|
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
954
969
|
};
|
|
955
970
|
|
|
956
|
-
export function
|
|
971
|
+
export function __wbg_setheaders_0052283e2f3503d1(arg0, arg1) {
|
|
957
972
|
getObject(arg0).headers = getObject(arg1);
|
|
958
973
|
};
|
|
959
974
|
|
|
960
|
-
export function
|
|
975
|
+
export function __wbg_setmethod_9b504d5b855b329c(arg0, arg1, arg2) {
|
|
961
976
|
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
962
977
|
};
|
|
963
978
|
|
|
964
|
-
export function
|
|
979
|
+
export function __wbg_setmode_a23e1a2ad8b512f8(arg0, arg1) {
|
|
965
980
|
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
|
966
981
|
};
|
|
967
982
|
|
|
968
|
-
export function
|
|
983
|
+
export function __wbg_setsignal_8c45ad1247a74809(arg0, arg1) {
|
|
969
984
|
getObject(arg0).signal = getObject(arg1);
|
|
970
985
|
};
|
|
971
986
|
|
|
@@ -987,37 +1002,37 @@ export function __wbg_signMessage_c732ea9d998cac79() { return handleError(functi
|
|
|
987
1002
|
}
|
|
988
1003
|
}, arguments) };
|
|
989
1004
|
|
|
990
|
-
export function
|
|
1005
|
+
export function __wbg_signal_da4d466ce86118b5(arg0) {
|
|
991
1006
|
const ret = getObject(arg0).signal;
|
|
992
1007
|
return addHeapObject(ret);
|
|
993
1008
|
};
|
|
994
1009
|
|
|
995
|
-
export function
|
|
1010
|
+
export function __wbg_static_accessor_GLOBAL_8921f820c2ce3f12() {
|
|
996
1011
|
const ret = typeof global === 'undefined' ? null : global;
|
|
997
1012
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
998
1013
|
};
|
|
999
1014
|
|
|
1000
|
-
export function
|
|
1015
|
+
export function __wbg_static_accessor_GLOBAL_THIS_f0a4409105898184() {
|
|
1001
1016
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1002
1017
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1003
1018
|
};
|
|
1004
1019
|
|
|
1005
|
-
export function
|
|
1020
|
+
export function __wbg_static_accessor_SELF_995b214ae681ff99() {
|
|
1006
1021
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1007
1022
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1008
1023
|
};
|
|
1009
1024
|
|
|
1010
|
-
export function
|
|
1025
|
+
export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
|
|
1011
1026
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1012
1027
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1013
1028
|
};
|
|
1014
1029
|
|
|
1015
|
-
export function
|
|
1030
|
+
export function __wbg_status_3fea3036088621d6(arg0) {
|
|
1016
1031
|
const ret = getObject(arg0).status;
|
|
1017
1032
|
return ret;
|
|
1018
1033
|
};
|
|
1019
1034
|
|
|
1020
|
-
export function
|
|
1035
|
+
export function __wbg_stringify_4a34a65f0d4e236f(arg0, arg1) {
|
|
1021
1036
|
const ret = JSON.stringify(getObject(arg1));
|
|
1022
1037
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1023
1038
|
var len1 = WASM_VECTOR_LEN;
|
|
@@ -1025,32 +1040,32 @@ export function __wbg_stringify_7f942ad6a97a2d11(arg0, arg1) {
|
|
|
1025
1040
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1026
1041
|
};
|
|
1027
1042
|
|
|
1028
|
-
export function
|
|
1043
|
+
export function __wbg_stringify_b98c93d0a190446a() { return handleError(function (arg0) {
|
|
1029
1044
|
const ret = JSON.stringify(getObject(arg0));
|
|
1030
1045
|
return addHeapObject(ret);
|
|
1031
1046
|
}, arguments) };
|
|
1032
1047
|
|
|
1033
|
-
export function
|
|
1048
|
+
export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
|
|
1034
1049
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1035
1050
|
return addHeapObject(ret);
|
|
1036
1051
|
};
|
|
1037
1052
|
|
|
1038
|
-
export function
|
|
1053
|
+
export function __wbg_text_0f69a215637b9b34() { return handleError(function (arg0) {
|
|
1039
1054
|
const ret = getObject(arg0).text();
|
|
1040
1055
|
return addHeapObject(ret);
|
|
1041
1056
|
}, arguments) };
|
|
1042
1057
|
|
|
1043
|
-
export function
|
|
1058
|
+
export function __wbg_then_b33a773d723afa3e(arg0, arg1, arg2) {
|
|
1044
1059
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1045
1060
|
return addHeapObject(ret);
|
|
1046
1061
|
};
|
|
1047
1062
|
|
|
1048
|
-
export function
|
|
1063
|
+
export function __wbg_then_e22500defe16819f(arg0, arg1) {
|
|
1049
1064
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1050
1065
|
return addHeapObject(ret);
|
|
1051
1066
|
};
|
|
1052
1067
|
|
|
1053
|
-
export function
|
|
1068
|
+
export function __wbg_url_e5720dfacf77b05e(arg0, arg1) {
|
|
1054
1069
|
const ret = getObject(arg1).url;
|
|
1055
1070
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1056
1071
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1058,7 +1073,7 @@ export function __wbg_url_e6ed869ea05b7a71(arg0, arg1) {
|
|
|
1058
1073
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1059
1074
|
};
|
|
1060
1075
|
|
|
1061
|
-
export function
|
|
1076
|
+
export function __wbg_value_dd9372230531eade(arg0) {
|
|
1062
1077
|
const ret = getObject(arg0).value;
|
|
1063
1078
|
return addHeapObject(ret);
|
|
1064
1079
|
};
|
|
@@ -1068,14 +1083,14 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
|
1068
1083
|
return addHeapObject(ret);
|
|
1069
1084
|
};
|
|
1070
1085
|
|
|
1071
|
-
export function
|
|
1086
|
+
export function __wbg_wbindgenbooleanget_3fe6f642c7d97746(arg0) {
|
|
1072
1087
|
const v = getObject(arg0);
|
|
1073
|
-
const ret = typeof(v) === 'boolean' ?
|
|
1074
|
-
return ret;
|
|
1088
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1089
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1075
1090
|
};
|
|
1076
1091
|
|
|
1077
|
-
export function
|
|
1078
|
-
const obj =
|
|
1092
|
+
export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
|
|
1093
|
+
const obj = getObject(arg0).original;
|
|
1079
1094
|
if (obj.cnt-- == 1) {
|
|
1080
1095
|
obj.a = 0;
|
|
1081
1096
|
return true;
|
|
@@ -1084,17 +1099,7 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1084
1099
|
return ret;
|
|
1085
1100
|
};
|
|
1086
1101
|
|
|
1087
|
-
export function
|
|
1088
|
-
const ret = makeMutClosure(arg0, arg1, 404, __wbg_adapter_36);
|
|
1089
|
-
return addHeapObject(ret);
|
|
1090
|
-
};
|
|
1091
|
-
|
|
1092
|
-
export function __wbindgen_closure_wrapper3532(arg0, arg1, arg2) {
|
|
1093
|
-
const ret = makeMutClosure(arg0, arg1, 437, __wbg_adapter_39);
|
|
1094
|
-
return addHeapObject(ret);
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1102
|
+
export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
|
|
1098
1103
|
const ret = debugString(getObject(arg1));
|
|
1099
1104
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1100
1105
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1102,78 +1107,93 @@ export function __wbindgen_debug_string(arg0, arg1) {
|
|
|
1102
1107
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1103
1108
|
};
|
|
1104
1109
|
|
|
1105
|
-
export function
|
|
1110
|
+
export function __wbg_wbindgenin_d7a1ee10933d2d55(arg0, arg1) {
|
|
1106
1111
|
const ret = getObject(arg0) in getObject(arg1);
|
|
1107
1112
|
return ret;
|
|
1108
1113
|
};
|
|
1109
1114
|
|
|
1110
|
-
export function
|
|
1115
|
+
export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
|
|
1111
1116
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
1112
1117
|
return ret;
|
|
1113
1118
|
};
|
|
1114
1119
|
|
|
1115
|
-
export function
|
|
1120
|
+
export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
|
|
1116
1121
|
const val = getObject(arg0);
|
|
1117
1122
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1118
1123
|
return ret;
|
|
1119
1124
|
};
|
|
1120
1125
|
|
|
1121
|
-
export function
|
|
1126
|
+
export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
|
|
1122
1127
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
1123
1128
|
return ret;
|
|
1124
1129
|
};
|
|
1125
1130
|
|
|
1126
|
-
export function
|
|
1131
|
+
export function __wbg_wbindgenisundefined_c4b71d073b92f3c5(arg0) {
|
|
1127
1132
|
const ret = getObject(arg0) === undefined;
|
|
1128
1133
|
return ret;
|
|
1129
1134
|
};
|
|
1130
1135
|
|
|
1131
|
-
export function
|
|
1136
|
+
export function __wbg_wbindgenjsvallooseeq_9bec8c9be826bed1(arg0, arg1) {
|
|
1132
1137
|
const ret = getObject(arg0) == getObject(arg1);
|
|
1133
1138
|
return ret;
|
|
1134
1139
|
};
|
|
1135
1140
|
|
|
1136
|
-
export function
|
|
1137
|
-
const ret = wasm.memory;
|
|
1138
|
-
return addHeapObject(ret);
|
|
1139
|
-
};
|
|
1140
|
-
|
|
1141
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
|
1141
|
+
export function __wbg_wbindgennumberget_f74b4c7525ac05cb(arg0, arg1) {
|
|
1142
1142
|
const obj = getObject(arg1);
|
|
1143
1143
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1144
1144
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1145
1145
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
export function
|
|
1149
|
-
const
|
|
1148
|
+
export function __wbg_wbindgenstringget_0f16a6ddddef376f(arg0, arg1) {
|
|
1149
|
+
const obj = getObject(arg1);
|
|
1150
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1151
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
1152
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1153
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1154
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
|
|
1158
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1162
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1163
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1150
1164
|
return addHeapObject(ret);
|
|
1151
1165
|
};
|
|
1152
1166
|
|
|
1153
|
-
export function
|
|
1154
|
-
|
|
1167
|
+
export function __wbindgen_cast_86daa9f8bfebbfee(arg0, arg1) {
|
|
1168
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 497, function: Function { arguments: [Externref], shim_idx: 498, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1169
|
+
const ret = makeMutClosure(arg0, arg1, 497, __wbg_adapter_13);
|
|
1155
1170
|
return addHeapObject(ret);
|
|
1156
1171
|
};
|
|
1157
1172
|
|
|
1158
|
-
export function
|
|
1159
|
-
|
|
1173
|
+
export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
|
|
1174
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1175
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1176
|
+
return addHeapObject(ret);
|
|
1160
1177
|
};
|
|
1161
1178
|
|
|
1162
|
-
export function
|
|
1163
|
-
|
|
1164
|
-
const ret =
|
|
1165
|
-
|
|
1166
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1167
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1168
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1179
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1180
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1181
|
+
const ret = arg0;
|
|
1182
|
+
return addHeapObject(ret);
|
|
1169
1183
|
};
|
|
1170
1184
|
|
|
1171
|
-
export function
|
|
1172
|
-
|
|
1185
|
+
export function __wbindgen_cast_fbea7bc6c61dcc97(arg0, arg1) {
|
|
1186
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1187
|
+
const ret = makeMutClosure(arg0, arg1, 464, __wbg_adapter_6);
|
|
1173
1188
|
return addHeapObject(ret);
|
|
1174
1189
|
};
|
|
1175
1190
|
|
|
1176
|
-
export function
|
|
1177
|
-
|
|
1191
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
|
1192
|
+
const ret = getObject(arg0);
|
|
1193
|
+
return addHeapObject(ret);
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
export function __wbindgen_object_drop_ref(arg0) {
|
|
1197
|
+
takeObject(arg0);
|
|
1178
1198
|
};
|
|
1179
1199
|
|