@janssenproject/cedarling_wasm 0.0.343 → 0.0.344-nodejs
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 +22 -0
- package/cedarling_wasm.d.ts +68 -145
- package/cedarling_wasm.js +310 -294
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +2 -6
package/cedarling_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
5
5
|
* Represents the result of an authorization request.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -98,12 +98,13 @@ export class AuthorizeResult {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
101
|
+
exports.AuthorizeResult = AuthorizeResult;
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
104
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
104
105
|
* Represents the result of an authorization request.
|
|
105
106
|
*/
|
|
106
|
-
|
|
107
|
+
class AuthorizeResultResponse {
|
|
107
108
|
static __wrap(ptr) {
|
|
108
109
|
ptr = ptr >>> 0;
|
|
109
110
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -139,11 +140,12 @@ export class AuthorizeResultResponse {
|
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
142
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
143
|
+
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
142
144
|
|
|
143
145
|
/**
|
|
144
146
|
* The instance of the Cedarling application.
|
|
145
147
|
*/
|
|
146
|
-
|
|
148
|
+
class Cedarling {
|
|
147
149
|
static __wrap(ptr) {
|
|
148
150
|
ptr = ptr >>> 0;
|
|
149
151
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -197,6 +199,20 @@ export class Cedarling {
|
|
|
197
199
|
throw takeFromExternrefTable0(ret[0]);
|
|
198
200
|
}
|
|
199
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Get trusted issuer identifiers that failed to load.
|
|
204
|
+
*
|
|
205
|
+
* # Example
|
|
206
|
+
*
|
|
207
|
+
* ```javascript
|
|
208
|
+
* const ids = cedarling.failed_trusted_issuer_ids();
|
|
209
|
+
* ```
|
|
210
|
+
* @returns {Array<any>}
|
|
211
|
+
*/
|
|
212
|
+
failed_trusted_issuer_ids() {
|
|
213
|
+
const ret = wasm.cedarling_failed_trusted_issuer_ids(this.__wbg_ptr);
|
|
214
|
+
return ret;
|
|
215
|
+
}
|
|
200
216
|
/**
|
|
201
217
|
* Get a value from the data store by key.
|
|
202
218
|
* Returns null if the key doesn't exist or the entry has expired.
|
|
@@ -356,6 +372,48 @@ export class Cedarling {
|
|
|
356
372
|
}
|
|
357
373
|
return DataStoreStats.__wrap(ret[0]);
|
|
358
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Check whether a trusted issuer was loaded by `iss` claim.
|
|
377
|
+
*
|
|
378
|
+
* # Arguments
|
|
379
|
+
*
|
|
380
|
+
* * `iss_claim` - Issuer `iss` claim value to check.
|
|
381
|
+
*
|
|
382
|
+
* # Example
|
|
383
|
+
*
|
|
384
|
+
* ```javascript
|
|
385
|
+
* const ok = cedarling.is_trusted_issuer_loaded_by_iss("https://issuer.example.org");
|
|
386
|
+
* ```
|
|
387
|
+
* @param {string} iss_claim
|
|
388
|
+
* @returns {boolean}
|
|
389
|
+
*/
|
|
390
|
+
is_trusted_issuer_loaded_by_iss(iss_claim) {
|
|
391
|
+
const ptr0 = passStringToWasm0(iss_claim, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
|
+
const len0 = WASM_VECTOR_LEN;
|
|
393
|
+
const ret = wasm.cedarling_is_trusted_issuer_loaded_by_iss(this.__wbg_ptr, ptr0, len0);
|
|
394
|
+
return ret !== 0;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Check whether a trusted issuer was loaded by issuer identifier.
|
|
398
|
+
*
|
|
399
|
+
* # Arguments
|
|
400
|
+
*
|
|
401
|
+
* * `issuer_id` - Trusted issuer identifier to check.
|
|
402
|
+
*
|
|
403
|
+
* # Example
|
|
404
|
+
*
|
|
405
|
+
* ```javascript
|
|
406
|
+
* const ok = cedarling.is_trusted_issuer_loaded_by_name("issuer_id");
|
|
407
|
+
* ```
|
|
408
|
+
* @param {string} issuer_id
|
|
409
|
+
* @returns {boolean}
|
|
410
|
+
*/
|
|
411
|
+
is_trusted_issuer_loaded_by_name(issuer_id) {
|
|
412
|
+
const ptr0 = passStringToWasm0(issuer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
const len0 = WASM_VECTOR_LEN;
|
|
414
|
+
const ret = wasm.cedarling_is_trusted_issuer_loaded_by_name(this.__wbg_ptr, ptr0, len0);
|
|
415
|
+
return ret !== 0;
|
|
416
|
+
}
|
|
359
417
|
/**
|
|
360
418
|
* List all entries with their metadata.
|
|
361
419
|
* Returns an array of DataEntry objects.
|
|
@@ -377,6 +435,34 @@ export class Cedarling {
|
|
|
377
435
|
}
|
|
378
436
|
return takeFromExternrefTable0(ret[0]);
|
|
379
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Get trusted issuer identifiers loaded successfully.
|
|
440
|
+
*
|
|
441
|
+
* # Example
|
|
442
|
+
*
|
|
443
|
+
* ```javascript
|
|
444
|
+
* const ids = cedarling.loaded_trusted_issuer_ids();
|
|
445
|
+
* ```
|
|
446
|
+
* @returns {Array<any>}
|
|
447
|
+
*/
|
|
448
|
+
loaded_trusted_issuer_ids() {
|
|
449
|
+
const ret = wasm.cedarling_loaded_trusted_issuer_ids(this.__wbg_ptr);
|
|
450
|
+
return ret;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Get the number of trusted issuers loaded successfully.
|
|
454
|
+
*
|
|
455
|
+
* # Example
|
|
456
|
+
*
|
|
457
|
+
* ```javascript
|
|
458
|
+
* const loadedCount = cedarling.loaded_trusted_issuers_count();
|
|
459
|
+
* ```
|
|
460
|
+
* @returns {number}
|
|
461
|
+
*/
|
|
462
|
+
loaded_trusted_issuers_count() {
|
|
463
|
+
const ret = wasm.cedarling_loaded_trusted_issuers_count(this.__wbg_ptr);
|
|
464
|
+
return ret >>> 0;
|
|
465
|
+
}
|
|
380
466
|
/**
|
|
381
467
|
* Create a new instance of the Cedarling application.
|
|
382
468
|
* Assume that config is `Object`
|
|
@@ -474,14 +560,29 @@ export class Cedarling {
|
|
|
474
560
|
const ret = wasm.cedarling_shut_down(this.__wbg_ptr);
|
|
475
561
|
return ret;
|
|
476
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* Get the total number of trusted issuer entries discovered.
|
|
565
|
+
*
|
|
566
|
+
* # Example
|
|
567
|
+
*
|
|
568
|
+
* ```javascript
|
|
569
|
+
* const total = cedarling.total_issuers();
|
|
570
|
+
* ```
|
|
571
|
+
* @returns {number}
|
|
572
|
+
*/
|
|
573
|
+
total_issuers() {
|
|
574
|
+
const ret = wasm.cedarling_total_issuers(this.__wbg_ptr);
|
|
575
|
+
return ret >>> 0;
|
|
576
|
+
}
|
|
477
577
|
}
|
|
478
578
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
579
|
+
exports.Cedarling = Cedarling;
|
|
479
580
|
|
|
480
581
|
/**
|
|
481
582
|
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
482
583
|
* Represents a data entry in the DataStore with value and metadata.
|
|
483
584
|
*/
|
|
484
|
-
|
|
585
|
+
class DataEntry {
|
|
485
586
|
static __wrap(ptr) {
|
|
486
587
|
ptr = ptr >>> 0;
|
|
487
588
|
const obj = Object.create(DataEntry.prototype);
|
|
@@ -640,12 +741,13 @@ export class DataEntry {
|
|
|
640
741
|
}
|
|
641
742
|
}
|
|
642
743
|
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
744
|
+
exports.DataEntry = DataEntry;
|
|
643
745
|
|
|
644
746
|
/**
|
|
645
747
|
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
646
748
|
* Statistics about the DataStore.
|
|
647
749
|
*/
|
|
648
|
-
|
|
750
|
+
class DataStoreStats {
|
|
649
751
|
static __wrap(ptr) {
|
|
650
752
|
ptr = ptr >>> 0;
|
|
651
753
|
const obj = Object.create(DataStoreStats.prototype);
|
|
@@ -816,6 +918,7 @@ export class DataStoreStats {
|
|
|
816
918
|
}
|
|
817
919
|
}
|
|
818
920
|
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
921
|
+
exports.DataStoreStats = DataStoreStats;
|
|
819
922
|
|
|
820
923
|
/**
|
|
821
924
|
* Diagnostics
|
|
@@ -823,7 +926,7 @@ if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.pr
|
|
|
823
926
|
*
|
|
824
927
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
825
928
|
*/
|
|
826
|
-
|
|
929
|
+
class Diagnostics {
|
|
827
930
|
static __wrap(ptr) {
|
|
828
931
|
ptr = ptr >>> 0;
|
|
829
932
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -867,8 +970,9 @@ export class Diagnostics {
|
|
|
867
970
|
}
|
|
868
971
|
}
|
|
869
972
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
973
|
+
exports.Diagnostics = Diagnostics;
|
|
870
974
|
|
|
871
|
-
|
|
975
|
+
class IntoUnderlyingByteSource {
|
|
872
976
|
__destroy_into_raw() {
|
|
873
977
|
const ptr = this.__wbg_ptr;
|
|
874
978
|
this.__wbg_ptr = 0;
|
|
@@ -913,8 +1017,9 @@ export class IntoUnderlyingByteSource {
|
|
|
913
1017
|
}
|
|
914
1018
|
}
|
|
915
1019
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
1020
|
+
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
916
1021
|
|
|
917
|
-
|
|
1022
|
+
class IntoUnderlyingSink {
|
|
918
1023
|
__destroy_into_raw() {
|
|
919
1024
|
const ptr = this.__wbg_ptr;
|
|
920
1025
|
this.__wbg_ptr = 0;
|
|
@@ -952,8 +1057,9 @@ export class IntoUnderlyingSink {
|
|
|
952
1057
|
}
|
|
953
1058
|
}
|
|
954
1059
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
1060
|
+
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
955
1061
|
|
|
956
|
-
|
|
1062
|
+
class IntoUnderlyingSource {
|
|
957
1063
|
__destroy_into_raw() {
|
|
958
1064
|
const ptr = this.__wbg_ptr;
|
|
959
1065
|
this.__wbg_ptr = 0;
|
|
@@ -978,12 +1084,13 @@ export class IntoUnderlyingSource {
|
|
|
978
1084
|
}
|
|
979
1085
|
}
|
|
980
1086
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
1087
|
+
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
981
1088
|
|
|
982
1089
|
/**
|
|
983
1090
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
984
1091
|
* Represents the result of a multi-issuer authorization request.
|
|
985
1092
|
*/
|
|
986
|
-
|
|
1093
|
+
class MultiIssuerAuthorizeResult {
|
|
987
1094
|
static __wrap(ptr) {
|
|
988
1095
|
ptr = ptr >>> 0;
|
|
989
1096
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -1080,6 +1187,7 @@ export class MultiIssuerAuthorizeResult {
|
|
|
1080
1187
|
}
|
|
1081
1188
|
}
|
|
1082
1189
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
1190
|
+
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
1083
1191
|
|
|
1084
1192
|
/**
|
|
1085
1193
|
* PolicyEvaluationError
|
|
@@ -1087,7 +1195,7 @@ if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = Multi
|
|
|
1087
1195
|
*
|
|
1088
1196
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
1089
1197
|
*/
|
|
1090
|
-
|
|
1198
|
+
class PolicyEvaluationError {
|
|
1091
1199
|
static __wrap(ptr) {
|
|
1092
1200
|
ptr = ptr >>> 0;
|
|
1093
1201
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -1139,6 +1247,7 @@ export class PolicyEvaluationError {
|
|
|
1139
1247
|
}
|
|
1140
1248
|
}
|
|
1141
1249
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
1250
|
+
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
1142
1251
|
|
|
1143
1252
|
/**
|
|
1144
1253
|
* Create a new instance of the Cedarling application.
|
|
@@ -1146,10 +1255,11 @@ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEval
|
|
|
1146
1255
|
* @param {any} config
|
|
1147
1256
|
* @returns {Promise<Cedarling>}
|
|
1148
1257
|
*/
|
|
1149
|
-
|
|
1258
|
+
function init(config) {
|
|
1150
1259
|
const ret = wasm.init(config);
|
|
1151
1260
|
return ret;
|
|
1152
1261
|
}
|
|
1262
|
+
exports.init = init;
|
|
1153
1263
|
|
|
1154
1264
|
/**
|
|
1155
1265
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -1171,80 +1281,81 @@ export function init(config) {
|
|
|
1171
1281
|
* @param {Uint8Array} archive_bytes
|
|
1172
1282
|
* @returns {Promise<Cedarling>}
|
|
1173
1283
|
*/
|
|
1174
|
-
|
|
1284
|
+
function init_from_archive_bytes(config, archive_bytes) {
|
|
1175
1285
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1176
1286
|
return ret;
|
|
1177
1287
|
}
|
|
1288
|
+
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
1178
1289
|
|
|
1179
1290
|
function __wbg_get_imports() {
|
|
1180
1291
|
const import0 = {
|
|
1181
1292
|
__proto__: null,
|
|
1182
|
-
|
|
1293
|
+
__wbg_Error_55538483de6e3abe: function(arg0, arg1) {
|
|
1183
1294
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1184
1295
|
return ret;
|
|
1185
1296
|
},
|
|
1186
|
-
|
|
1297
|
+
__wbg_Number_f257194b7002d6f9: function(arg0) {
|
|
1187
1298
|
const ret = Number(arg0);
|
|
1188
1299
|
return ret;
|
|
1189
1300
|
},
|
|
1190
|
-
|
|
1301
|
+
__wbg___wbindgen_bigint_get_as_i64_a738e80c0fe6f6a7: function(arg0, arg1) {
|
|
1191
1302
|
const v = arg1;
|
|
1192
1303
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1193
1304
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1194
1305
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1195
1306
|
},
|
|
1196
|
-
|
|
1307
|
+
__wbg___wbindgen_boolean_get_fe2a24fdfdb4064f: function(arg0) {
|
|
1197
1308
|
const v = arg0;
|
|
1198
1309
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1199
1310
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1200
1311
|
},
|
|
1201
|
-
|
|
1312
|
+
__wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
|
|
1202
1313
|
const ret = debugString(arg1);
|
|
1203
1314
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1204
1315
|
const len1 = WASM_VECTOR_LEN;
|
|
1205
1316
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1206
1317
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1207
1318
|
},
|
|
1208
|
-
|
|
1319
|
+
__wbg___wbindgen_in_fe3eb6a509f75744: function(arg0, arg1) {
|
|
1209
1320
|
const ret = arg0 in arg1;
|
|
1210
1321
|
return ret;
|
|
1211
1322
|
},
|
|
1212
|
-
|
|
1323
|
+
__wbg___wbindgen_is_bigint_ca270ac12ef71091: function(arg0) {
|
|
1213
1324
|
const ret = typeof(arg0) === 'bigint';
|
|
1214
1325
|
return ret;
|
|
1215
1326
|
},
|
|
1216
|
-
|
|
1327
|
+
__wbg___wbindgen_is_function_2a95406423ea8626: function(arg0) {
|
|
1217
1328
|
const ret = typeof(arg0) === 'function';
|
|
1218
1329
|
return ret;
|
|
1219
1330
|
},
|
|
1220
|
-
|
|
1331
|
+
__wbg___wbindgen_is_object_59a002e76b059312: function(arg0) {
|
|
1221
1332
|
const val = arg0;
|
|
1222
1333
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1223
1334
|
return ret;
|
|
1224
1335
|
},
|
|
1225
|
-
|
|
1336
|
+
__wbg___wbindgen_is_string_624d5244bb2bc87c: function(arg0) {
|
|
1226
1337
|
const ret = typeof(arg0) === 'string';
|
|
1227
1338
|
return ret;
|
|
1228
1339
|
},
|
|
1229
|
-
|
|
1340
|
+
__wbg___wbindgen_is_undefined_87a3a837f331fef5: function(arg0) {
|
|
1230
1341
|
const ret = arg0 === undefined;
|
|
1231
1342
|
return ret;
|
|
1232
1343
|
},
|
|
1233
|
-
|
|
1344
|
+
__wbg___wbindgen_jsval_eq_eedd705f9f2a4f35: function(arg0, arg1) {
|
|
1234
1345
|
const ret = arg0 === arg1;
|
|
1235
1346
|
return ret;
|
|
1236
1347
|
},
|
|
1237
|
-
|
|
1348
|
+
__wbg___wbindgen_jsval_loose_eq_cf851f110c48f9ba: function(arg0, arg1) {
|
|
1238
1349
|
const ret = arg0 == arg1;
|
|
1239
1350
|
return ret;
|
|
1240
1351
|
},
|
|
1241
|
-
|
|
1352
|
+
__wbg___wbindgen_number_get_769f3676dc20c1d7: function(arg0, arg1) {
|
|
1242
1353
|
const obj = arg1;
|
|
1243
1354
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1244
1355
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1245
1356
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1246
1357
|
},
|
|
1247
|
-
|
|
1358
|
+
__wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
|
|
1248
1359
|
const obj = arg1;
|
|
1249
1360
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1250
1361
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1252,22 +1363,22 @@ function __wbg_get_imports() {
|
|
|
1252
1363
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1253
1364
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1254
1365
|
},
|
|
1255
|
-
|
|
1366
|
+
__wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
|
|
1256
1367
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1257
1368
|
},
|
|
1258
|
-
|
|
1369
|
+
__wbg__wbg_cb_unref_fbe69bb076c16bad: function(arg0) {
|
|
1259
1370
|
arg0._wbg_cb_unref();
|
|
1260
1371
|
},
|
|
1261
|
-
|
|
1262
|
-
arg0.abort();
|
|
1263
|
-
},
|
|
1264
|
-
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
1372
|
+
__wbg_abort_b007790bcfd9fff2: function(arg0, arg1) {
|
|
1265
1373
|
arg0.abort(arg1);
|
|
1266
1374
|
},
|
|
1267
|
-
|
|
1375
|
+
__wbg_abort_bdf419e9dcbdaeb3: function(arg0) {
|
|
1376
|
+
arg0.abort();
|
|
1377
|
+
},
|
|
1378
|
+
__wbg_append_7c8e49986ab5288d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1268
1379
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1269
1380
|
}, arguments); },
|
|
1270
|
-
|
|
1381
|
+
__wbg_arrayBuffer_9f258d017f7107c5: function() { return handleError(function (arg0) {
|
|
1271
1382
|
const ret = arg0.arrayBuffer();
|
|
1272
1383
|
return ret;
|
|
1273
1384
|
}, arguments); },
|
|
@@ -1275,39 +1386,39 @@ function __wbg_get_imports() {
|
|
|
1275
1386
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1276
1387
|
return ret;
|
|
1277
1388
|
},
|
|
1278
|
-
|
|
1389
|
+
__wbg_body_b8b0dbac0427b082: function(arg0) {
|
|
1279
1390
|
const ret = arg0.body;
|
|
1280
1391
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1281
1392
|
},
|
|
1282
|
-
|
|
1393
|
+
__wbg_buffer_0a57788cdfce21ba: function(arg0) {
|
|
1283
1394
|
const ret = arg0.buffer;
|
|
1284
1395
|
return ret;
|
|
1285
1396
|
},
|
|
1286
|
-
|
|
1397
|
+
__wbg_byobRequest_ab0e57f55bf774f2: function(arg0) {
|
|
1287
1398
|
const ret = arg0.byobRequest;
|
|
1288
1399
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1289
1400
|
},
|
|
1290
|
-
|
|
1401
|
+
__wbg_byteLength_9931db00e5861bf9: function(arg0) {
|
|
1291
1402
|
const ret = arg0.byteLength;
|
|
1292
1403
|
return ret;
|
|
1293
1404
|
},
|
|
1294
|
-
|
|
1405
|
+
__wbg_byteOffset_0a985a98f8ffb8d7: function(arg0) {
|
|
1295
1406
|
const ret = arg0.byteOffset;
|
|
1296
1407
|
return ret;
|
|
1297
1408
|
},
|
|
1298
|
-
|
|
1299
|
-
const ret = arg0.call(arg1
|
|
1409
|
+
__wbg_call_6ae20895a60069a2: function() { return handleError(function (arg0, arg1) {
|
|
1410
|
+
const ret = arg0.call(arg1);
|
|
1300
1411
|
return ret;
|
|
1301
1412
|
}, arguments); },
|
|
1302
|
-
|
|
1303
|
-
const ret = arg0.call(arg1);
|
|
1413
|
+
__wbg_call_8f5d7bb070283508: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1414
|
+
const ret = arg0.call(arg1, arg2);
|
|
1304
1415
|
return ret;
|
|
1305
1416
|
}, arguments); },
|
|
1306
|
-
|
|
1417
|
+
__wbg_cancel_17af7d30174e56fc: function(arg0) {
|
|
1307
1418
|
const ret = arg0.cancel();
|
|
1308
1419
|
return ret;
|
|
1309
1420
|
},
|
|
1310
|
-
|
|
1421
|
+
__wbg_catch_95f7e0f431da3bfc: function(arg0, arg1) {
|
|
1311
1422
|
const ret = arg0.catch(arg1);
|
|
1312
1423
|
return ret;
|
|
1313
1424
|
},
|
|
@@ -1323,10 +1434,10 @@ function __wbg_get_imports() {
|
|
|
1323
1434
|
const ret = clearTimeout(arg0);
|
|
1324
1435
|
return ret;
|
|
1325
1436
|
},
|
|
1326
|
-
|
|
1437
|
+
__wbg_close_62f6a4eadc94565f: function() { return handleError(function (arg0) {
|
|
1327
1438
|
arg0.close();
|
|
1328
1439
|
}, arguments); },
|
|
1329
|
-
|
|
1440
|
+
__wbg_close_f287058716088a50: function() { return handleError(function (arg0) {
|
|
1330
1441
|
arg0.close();
|
|
1331
1442
|
}, arguments); },
|
|
1332
1443
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1337,48 +1448,48 @@ function __wbg_get_imports() {
|
|
|
1337
1448
|
const ret = DataEntry.__wrap(arg0);
|
|
1338
1449
|
return ret;
|
|
1339
1450
|
},
|
|
1340
|
-
|
|
1451
|
+
__wbg_debug_423712c4250f1682: function(arg0) {
|
|
1341
1452
|
console.debug(...arg0);
|
|
1342
1453
|
},
|
|
1343
|
-
|
|
1454
|
+
__wbg_done_19f92cb1f8738aba: function(arg0) {
|
|
1344
1455
|
const ret = arg0.done;
|
|
1345
1456
|
return ret;
|
|
1346
1457
|
},
|
|
1347
|
-
|
|
1458
|
+
__wbg_enqueue_ee0593cea9be93bd: function() { return handleError(function (arg0, arg1) {
|
|
1348
1459
|
arg0.enqueue(arg1);
|
|
1349
1460
|
}, arguments); },
|
|
1350
|
-
|
|
1351
|
-
const ret =
|
|
1461
|
+
__wbg_entries_28ed7cb892e12eff: function(arg0) {
|
|
1462
|
+
const ret = Object.entries(arg0);
|
|
1352
1463
|
return ret;
|
|
1353
1464
|
},
|
|
1354
|
-
|
|
1465
|
+
__wbg_entries_31ac11e93c1f2197: function(arg0) {
|
|
1355
1466
|
const ret = arg0.entries();
|
|
1356
1467
|
return ret;
|
|
1357
1468
|
},
|
|
1358
|
-
|
|
1359
|
-
const ret =
|
|
1469
|
+
__wbg_entries_dc69bbf25538adc3: function(arg0) {
|
|
1470
|
+
const ret = arg0.entries();
|
|
1360
1471
|
return ret;
|
|
1361
1472
|
},
|
|
1362
|
-
|
|
1473
|
+
__wbg_error_333d6f7cc81c136f: function(arg0) {
|
|
1363
1474
|
console.error(...arg0);
|
|
1364
1475
|
},
|
|
1365
1476
|
__wbg_fetch_010aa16f24b763bc: function(arg0, arg1) {
|
|
1366
1477
|
const ret = fetch(arg0, arg1);
|
|
1367
1478
|
return ret;
|
|
1368
1479
|
},
|
|
1369
|
-
|
|
1370
|
-
const ret = fetch(
|
|
1480
|
+
__wbg_fetch_2f3387796d5f6a84: function(arg0, arg1, arg2) {
|
|
1481
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
1371
1482
|
return ret;
|
|
1372
1483
|
},
|
|
1373
|
-
|
|
1484
|
+
__wbg_fetch_3f39346b50886803: function(arg0, arg1) {
|
|
1374
1485
|
const ret = arg0.fetch(arg1);
|
|
1375
1486
|
return ret;
|
|
1376
1487
|
},
|
|
1377
|
-
|
|
1378
|
-
const ret =
|
|
1488
|
+
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1489
|
+
const ret = fetch(arg0);
|
|
1379
1490
|
return ret;
|
|
1380
1491
|
},
|
|
1381
|
-
|
|
1492
|
+
__wbg_fromEntries_0f0bc9cda6b6487d: function() { return handleError(function (arg0) {
|
|
1382
1493
|
const ret = Object.fromEntries(arg0);
|
|
1383
1494
|
return ret;
|
|
1384
1495
|
}, arguments); },
|
|
@@ -1392,35 +1503,35 @@ function __wbg_get_imports() {
|
|
|
1392
1503
|
const ret = arg0.getReader();
|
|
1393
1504
|
return ret;
|
|
1394
1505
|
}, arguments); },
|
|
1395
|
-
|
|
1506
|
+
__wbg_getTime_c3af35594e283356: function(arg0) {
|
|
1396
1507
|
const ret = arg0.getTime();
|
|
1397
1508
|
return ret;
|
|
1398
1509
|
},
|
|
1399
|
-
|
|
1510
|
+
__wbg_getTimezoneOffset_c60f1a836e59b3db: function(arg0) {
|
|
1400
1511
|
const ret = arg0.getTimezoneOffset();
|
|
1401
1512
|
return ret;
|
|
1402
1513
|
},
|
|
1403
|
-
|
|
1404
|
-
const ret =
|
|
1514
|
+
__wbg_get_94f5fc088edd3138: function(arg0, arg1) {
|
|
1515
|
+
const ret = arg0[arg1 >>> 0];
|
|
1405
1516
|
return ret;
|
|
1406
|
-
},
|
|
1407
|
-
|
|
1517
|
+
},
|
|
1518
|
+
__wbg_get_a50328e7325d7f9b: function() { return handleError(function (arg0, arg1) {
|
|
1408
1519
|
const ret = Reflect.get(arg0, arg1);
|
|
1409
1520
|
return ret;
|
|
1410
1521
|
}, arguments); },
|
|
1411
|
-
|
|
1412
|
-
const ret = arg0[arg1 >>> 0];
|
|
1413
|
-
return ret;
|
|
1414
|
-
},
|
|
1415
|
-
__wbg_get_done_d0ab690f8df5501f: function(arg0) {
|
|
1522
|
+
__wbg_get_done_cedda7fa9770abba: function(arg0) {
|
|
1416
1523
|
const ret = arg0.done;
|
|
1417
1524
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1418
1525
|
},
|
|
1419
|
-
|
|
1526
|
+
__wbg_get_ff5f1fb220233477: function() { return handleError(function (arg0, arg1) {
|
|
1527
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1528
|
+
return ret;
|
|
1529
|
+
}, arguments); },
|
|
1530
|
+
__wbg_get_unchecked_7c6bbabf5b0b1fbf: function(arg0, arg1) {
|
|
1420
1531
|
const ret = arg0[arg1 >>> 0];
|
|
1421
1532
|
return ret;
|
|
1422
1533
|
},
|
|
1423
|
-
|
|
1534
|
+
__wbg_get_value_69a0a45ef9f1a593: function(arg0) {
|
|
1424
1535
|
const ret = arg0.value;
|
|
1425
1536
|
return ret;
|
|
1426
1537
|
},
|
|
@@ -1428,18 +1539,18 @@ function __wbg_get_imports() {
|
|
|
1428
1539
|
const ret = arg0[arg1];
|
|
1429
1540
|
return ret;
|
|
1430
1541
|
},
|
|
1431
|
-
|
|
1542
|
+
__wbg_has_3f87d148146a0f4e: function() { return handleError(function (arg0, arg1) {
|
|
1432
1543
|
const ret = Reflect.has(arg0, arg1);
|
|
1433
1544
|
return ret;
|
|
1434
1545
|
}, arguments); },
|
|
1435
|
-
|
|
1546
|
+
__wbg_headers_6ccffabdaab0d021: function(arg0) {
|
|
1436
1547
|
const ret = arg0.headers;
|
|
1437
1548
|
return ret;
|
|
1438
1549
|
},
|
|
1439
|
-
|
|
1550
|
+
__wbg_info_62423f62777981a5: function(arg0) {
|
|
1440
1551
|
console.info(...arg0);
|
|
1441
1552
|
},
|
|
1442
|
-
|
|
1553
|
+
__wbg_instanceof_ArrayBuffer_8d855993947fc3a2: function(arg0) {
|
|
1443
1554
|
let result;
|
|
1444
1555
|
try {
|
|
1445
1556
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1449,7 +1560,7 @@ function __wbg_get_imports() {
|
|
|
1449
1560
|
const ret = result;
|
|
1450
1561
|
return ret;
|
|
1451
1562
|
},
|
|
1452
|
-
|
|
1563
|
+
__wbg_instanceof_Array_79c1b15ef3abcc53: function(arg0) {
|
|
1453
1564
|
let result;
|
|
1454
1565
|
try {
|
|
1455
1566
|
result = arg0 instanceof Array;
|
|
@@ -1459,7 +1570,7 @@ function __wbg_get_imports() {
|
|
|
1459
1570
|
const ret = result;
|
|
1460
1571
|
return ret;
|
|
1461
1572
|
},
|
|
1462
|
-
|
|
1573
|
+
__wbg_instanceof_Map_238410f1463c05ed: function(arg0) {
|
|
1463
1574
|
let result;
|
|
1464
1575
|
try {
|
|
1465
1576
|
result = arg0 instanceof Map;
|
|
@@ -1469,7 +1580,7 @@ function __wbg_get_imports() {
|
|
|
1469
1580
|
const ret = result;
|
|
1470
1581
|
return ret;
|
|
1471
1582
|
},
|
|
1472
|
-
|
|
1583
|
+
__wbg_instanceof_Response_fece7eabbcaca4c3: function(arg0) {
|
|
1473
1584
|
let result;
|
|
1474
1585
|
try {
|
|
1475
1586
|
result = arg0 instanceof Response;
|
|
@@ -1479,7 +1590,7 @@ function __wbg_get_imports() {
|
|
|
1479
1590
|
const ret = result;
|
|
1480
1591
|
return ret;
|
|
1481
1592
|
},
|
|
1482
|
-
|
|
1593
|
+
__wbg_instanceof_Uint8Array_ce24d58a5f4bdcc3: function(arg0) {
|
|
1483
1594
|
let result;
|
|
1484
1595
|
try {
|
|
1485
1596
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1489,31 +1600,31 @@ function __wbg_get_imports() {
|
|
|
1489
1600
|
const ret = result;
|
|
1490
1601
|
return ret;
|
|
1491
1602
|
},
|
|
1492
|
-
|
|
1603
|
+
__wbg_isArray_867202cf8f195ed8: function(arg0) {
|
|
1493
1604
|
const ret = Array.isArray(arg0);
|
|
1494
1605
|
return ret;
|
|
1495
1606
|
},
|
|
1496
|
-
|
|
1607
|
+
__wbg_isSafeInteger_1dfae065cbfe1915: function(arg0) {
|
|
1497
1608
|
const ret = Number.isSafeInteger(arg0);
|
|
1498
1609
|
return ret;
|
|
1499
1610
|
},
|
|
1500
|
-
|
|
1611
|
+
__wbg_iterator_54661826e186eb6a: function() {
|
|
1501
1612
|
const ret = Symbol.iterator;
|
|
1502
1613
|
return ret;
|
|
1503
1614
|
},
|
|
1504
|
-
|
|
1615
|
+
__wbg_keys_e84d806594765111: function(arg0) {
|
|
1505
1616
|
const ret = Object.keys(arg0);
|
|
1506
1617
|
return ret;
|
|
1507
1618
|
},
|
|
1508
|
-
|
|
1619
|
+
__wbg_length_e6e1633fbea6cfa9: function(arg0) {
|
|
1509
1620
|
const ret = arg0.length;
|
|
1510
1621
|
return ret;
|
|
1511
1622
|
},
|
|
1512
|
-
|
|
1623
|
+
__wbg_length_fae3e439140f48a4: function(arg0) {
|
|
1513
1624
|
const ret = arg0.length;
|
|
1514
1625
|
return ret;
|
|
1515
1626
|
},
|
|
1516
|
-
|
|
1627
|
+
__wbg_log_81714afdff806379: function(arg0) {
|
|
1517
1628
|
console.log(...arg0);
|
|
1518
1629
|
},
|
|
1519
1630
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -1524,54 +1635,54 @@ function __wbg_get_imports() {
|
|
|
1524
1635
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1525
1636
|
return ret;
|
|
1526
1637
|
},
|
|
1527
|
-
|
|
1528
|
-
const ret = new
|
|
1529
|
-
return ret;
|
|
1530
|
-
}, arguments); },
|
|
1531
|
-
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
1532
|
-
const ret = new Date();
|
|
1638
|
+
__wbg_new_0934b88171ef61b0: function() {
|
|
1639
|
+
const ret = new Map();
|
|
1533
1640
|
return ret;
|
|
1534
1641
|
},
|
|
1535
|
-
|
|
1536
|
-
const ret = new
|
|
1642
|
+
__wbg_new_0_e649c99e7382313f: function() {
|
|
1643
|
+
const ret = new Date();
|
|
1537
1644
|
return ret;
|
|
1538
1645
|
},
|
|
1539
|
-
|
|
1646
|
+
__wbg_new_1d96678aaacca32e: function(arg0) {
|
|
1540
1647
|
const ret = new Uint8Array(arg0);
|
|
1541
1648
|
return ret;
|
|
1542
1649
|
},
|
|
1543
|
-
|
|
1650
|
+
__wbg_new_210ef5849ab6cf48: function() { return handleError(function () {
|
|
1651
|
+
const ret = new Headers();
|
|
1652
|
+
return ret;
|
|
1653
|
+
}, arguments); },
|
|
1654
|
+
__wbg_new_4370be21fa2b2f80: function() {
|
|
1544
1655
|
const ret = new Array();
|
|
1545
1656
|
return ret;
|
|
1546
1657
|
},
|
|
1547
|
-
|
|
1658
|
+
__wbg_new_48e1d86cfd30c8e7: function() {
|
|
1548
1659
|
const ret = new Object();
|
|
1549
1660
|
return ret;
|
|
1550
1661
|
},
|
|
1551
|
-
|
|
1552
|
-
const ret = new AbortController();
|
|
1553
|
-
return ret;
|
|
1554
|
-
}, arguments); },
|
|
1555
|
-
__wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
|
|
1662
|
+
__wbg_new_4a843fe2ee4082a9: function(arg0, arg1) {
|
|
1556
1663
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1557
1664
|
return ret;
|
|
1558
1665
|
},
|
|
1559
|
-
|
|
1666
|
+
__wbg_new_ce17f0bcfcc7b8ef: function() { return handleError(function () {
|
|
1667
|
+
const ret = new AbortController();
|
|
1668
|
+
return ret;
|
|
1669
|
+
}, arguments); },
|
|
1670
|
+
__wbg_new_d51bf22e953dcfd1: function(arg0) {
|
|
1560
1671
|
const ret = new Date(arg0);
|
|
1561
1672
|
return ret;
|
|
1562
1673
|
},
|
|
1563
|
-
|
|
1674
|
+
__wbg_new_from_slice_0bc58e36f82a1b50: function(arg0, arg1) {
|
|
1564
1675
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1565
1676
|
return ret;
|
|
1566
1677
|
},
|
|
1567
|
-
|
|
1678
|
+
__wbg_new_typed_25dda2388d7e5e9f: function(arg0, arg1) {
|
|
1568
1679
|
try {
|
|
1569
1680
|
var state0 = {a: arg0, b: arg1};
|
|
1570
1681
|
var cb0 = (arg0, arg1) => {
|
|
1571
1682
|
const a = state0.a;
|
|
1572
1683
|
state0.a = 0;
|
|
1573
1684
|
try {
|
|
1574
|
-
return
|
|
1685
|
+
return wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(a, state0.b, arg0, arg1);
|
|
1575
1686
|
} finally {
|
|
1576
1687
|
state0.a = a;
|
|
1577
1688
|
}
|
|
@@ -1579,29 +1690,29 @@ function __wbg_get_imports() {
|
|
|
1579
1690
|
const ret = new Promise(cb0);
|
|
1580
1691
|
return ret;
|
|
1581
1692
|
} finally {
|
|
1582
|
-
state0.a =
|
|
1693
|
+
state0.a = 0;
|
|
1583
1694
|
}
|
|
1584
1695
|
},
|
|
1585
|
-
|
|
1696
|
+
__wbg_new_with_byte_offset_and_length_ab1e1002d7a694e4: function(arg0, arg1, arg2) {
|
|
1586
1697
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1587
1698
|
return ret;
|
|
1588
1699
|
},
|
|
1589
|
-
|
|
1700
|
+
__wbg_new_with_length_0f3108b57e05ed7c: function(arg0) {
|
|
1590
1701
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1591
1702
|
return ret;
|
|
1592
1703
|
},
|
|
1593
|
-
|
|
1704
|
+
__wbg_new_with_str_and_init_cb3df438bf62964e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1594
1705
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1595
1706
|
return ret;
|
|
1596
1707
|
}, arguments); },
|
|
1597
|
-
|
|
1598
|
-
const ret = arg0.next();
|
|
1599
|
-
return ret;
|
|
1600
|
-
}, arguments); },
|
|
1601
|
-
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1708
|
+
__wbg_next_55d835fe0ab5b3e7: function(arg0) {
|
|
1602
1709
|
const ret = arg0.next;
|
|
1603
1710
|
return ret;
|
|
1604
1711
|
},
|
|
1712
|
+
__wbg_next_e34cfb9df1518d7c: function() { return handleError(function (arg0) {
|
|
1713
|
+
const ret = arg0.next();
|
|
1714
|
+
return ret;
|
|
1715
|
+
}, arguments); },
|
|
1605
1716
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1606
1717
|
const ret = arg0.node;
|
|
1607
1718
|
return ret;
|
|
@@ -1614,39 +1725,39 @@ function __wbg_get_imports() {
|
|
|
1614
1725
|
const ret = arg0.process;
|
|
1615
1726
|
return ret;
|
|
1616
1727
|
},
|
|
1617
|
-
|
|
1728
|
+
__wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
|
|
1618
1729
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1619
1730
|
},
|
|
1620
|
-
|
|
1731
|
+
__wbg_push_d0006a37f9fcda6d: function(arg0, arg1) {
|
|
1621
1732
|
const ret = arg0.push(arg1);
|
|
1622
1733
|
return ret;
|
|
1623
1734
|
},
|
|
1624
|
-
|
|
1735
|
+
__wbg_queueMicrotask_8868365114fe23b5: function(arg0) {
|
|
1736
|
+
queueMicrotask(arg0);
|
|
1737
|
+
},
|
|
1738
|
+
__wbg_queueMicrotask_cfc5a0e62f9ebdbe: function(arg0) {
|
|
1625
1739
|
const ret = arg0.queueMicrotask;
|
|
1626
1740
|
return ret;
|
|
1627
1741
|
},
|
|
1628
|
-
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1629
|
-
queueMicrotask(arg0);
|
|
1630
|
-
},
|
|
1631
1742
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1632
1743
|
arg0.randomFillSync(arg1);
|
|
1633
1744
|
}, arguments); },
|
|
1634
|
-
|
|
1745
|
+
__wbg_read_a9540f69bce63522: function(arg0) {
|
|
1635
1746
|
const ret = arg0.read();
|
|
1636
1747
|
return ret;
|
|
1637
1748
|
},
|
|
1638
|
-
|
|
1749
|
+
__wbg_releaseLock_58c436bedc52c5b4: function(arg0) {
|
|
1639
1750
|
arg0.releaseLock();
|
|
1640
1751
|
},
|
|
1641
1752
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1642
1753
|
const ret = module.require;
|
|
1643
1754
|
return ret;
|
|
1644
1755
|
}, arguments); },
|
|
1645
|
-
|
|
1756
|
+
__wbg_resolve_d8059bc113e215bf: function(arg0) {
|
|
1646
1757
|
const ret = Promise.resolve(arg0);
|
|
1647
1758
|
return ret;
|
|
1648
1759
|
},
|
|
1649
|
-
|
|
1760
|
+
__wbg_respond_1ec29395edbe7fce: function() { return handleError(function (arg0, arg1) {
|
|
1650
1761
|
arg0.respond(arg1 >>> 0);
|
|
1651
1762
|
}, arguments); },
|
|
1652
1763
|
__wbg_setTimeout_a3127d9f29a851c3: function(arg0, arg1) {
|
|
@@ -1657,114 +1768,114 @@ function __wbg_get_imports() {
|
|
|
1657
1768
|
const ret = setTimeout(arg0, arg1);
|
|
1658
1769
|
return ret;
|
|
1659
1770
|
},
|
|
1660
|
-
|
|
1771
|
+
__wbg_set_0b4302959e9491f2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1772
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1773
|
+
}, arguments); },
|
|
1774
|
+
__wbg_set_295bad3b5ead4e99: function(arg0, arg1, arg2) {
|
|
1775
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1776
|
+
},
|
|
1777
|
+
__wbg_set_4702dfa37c77f492: function(arg0, arg1, arg2) {
|
|
1661
1778
|
arg0[arg1 >>> 0] = arg2;
|
|
1662
1779
|
},
|
|
1663
1780
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1664
1781
|
arg0[arg1] = arg2;
|
|
1665
1782
|
},
|
|
1666
|
-
|
|
1667
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1668
|
-
return ret;
|
|
1669
|
-
}, arguments); },
|
|
1670
|
-
__wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
|
|
1671
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1672
|
-
},
|
|
1673
|
-
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1783
|
+
__wbg_set_8c6629931852a4a5: function(arg0, arg1, arg2) {
|
|
1674
1784
|
const ret = arg0.set(arg1, arg2);
|
|
1675
1785
|
return ret;
|
|
1676
1786
|
},
|
|
1677
|
-
|
|
1787
|
+
__wbg_set_991082a7a49971cf: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1788
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1789
|
+
return ret;
|
|
1790
|
+
}, arguments); },
|
|
1791
|
+
__wbg_set_body_e2cf9537a2f3e0be: function(arg0, arg1) {
|
|
1678
1792
|
arg0.body = arg1;
|
|
1679
1793
|
},
|
|
1680
|
-
|
|
1794
|
+
__wbg_set_cache_542e710bfd7aa57a: function(arg0, arg1) {
|
|
1681
1795
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1682
1796
|
},
|
|
1683
|
-
|
|
1797
|
+
__wbg_set_credentials_5838a4909b379d8e: function(arg0, arg1) {
|
|
1684
1798
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1685
1799
|
},
|
|
1686
|
-
|
|
1687
|
-
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1688
|
-
}, arguments); },
|
|
1689
|
-
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
1800
|
+
__wbg_set_headers_22d4b01224273a83: function(arg0, arg1) {
|
|
1690
1801
|
arg0.headers = arg1;
|
|
1691
1802
|
},
|
|
1692
|
-
|
|
1803
|
+
__wbg_set_integrity_cddf7f2db42f804f: function(arg0, arg1, arg2) {
|
|
1693
1804
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1694
1805
|
},
|
|
1695
|
-
|
|
1806
|
+
__wbg_set_method_4a4ab3faba8a018c: function(arg0, arg1, arg2) {
|
|
1696
1807
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1697
1808
|
},
|
|
1698
|
-
|
|
1809
|
+
__wbg_set_mode_7b856ab49b64c0db: function(arg0, arg1) {
|
|
1699
1810
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1700
1811
|
},
|
|
1701
|
-
|
|
1812
|
+
__wbg_set_redirect_def7b707b961a056: function(arg0, arg1) {
|
|
1702
1813
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1703
1814
|
},
|
|
1704
|
-
|
|
1815
|
+
__wbg_set_referrer_137c75ffd4471b33: function(arg0, arg1, arg2) {
|
|
1705
1816
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1706
1817
|
},
|
|
1707
|
-
|
|
1818
|
+
__wbg_set_referrer_policy_cc894554d0688d32: function(arg0, arg1) {
|
|
1708
1819
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1709
1820
|
},
|
|
1710
|
-
|
|
1821
|
+
__wbg_set_signal_cd4528432ab8fe0b: function(arg0, arg1) {
|
|
1711
1822
|
arg0.signal = arg1;
|
|
1712
1823
|
},
|
|
1713
|
-
|
|
1824
|
+
__wbg_signal_6740ecf9bc372e29: function(arg0) {
|
|
1714
1825
|
const ret = arg0.signal;
|
|
1715
1826
|
return ret;
|
|
1716
1827
|
},
|
|
1717
|
-
|
|
1828
|
+
__wbg_static_accessor_GLOBAL_8dfb7f5e26ebe523: function() {
|
|
1718
1829
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1719
1830
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1720
1831
|
},
|
|
1721
|
-
|
|
1832
|
+
__wbg_static_accessor_GLOBAL_THIS_941154efc8395cdd: function() {
|
|
1722
1833
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1723
1834
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1724
1835
|
},
|
|
1725
|
-
|
|
1836
|
+
__wbg_static_accessor_SELF_58dac9af822f561f: function() {
|
|
1726
1837
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1727
1838
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1728
1839
|
},
|
|
1729
|
-
|
|
1840
|
+
__wbg_static_accessor_WINDOW_ee64f0b3d8354c0b: function() {
|
|
1730
1841
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1731
1842
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1732
1843
|
},
|
|
1733
|
-
|
|
1844
|
+
__wbg_status_1ae443dc56281de7: function(arg0) {
|
|
1734
1845
|
const ret = arg0.status;
|
|
1735
1846
|
return ret;
|
|
1736
1847
|
},
|
|
1737
|
-
|
|
1848
|
+
__wbg_subarray_035d32bb24a7d55d: function(arg0, arg1, arg2) {
|
|
1738
1849
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1739
1850
|
return ret;
|
|
1740
1851
|
},
|
|
1741
|
-
|
|
1852
|
+
__wbg_text_6d3a70da69d27961: function() { return handleError(function (arg0) {
|
|
1742
1853
|
const ret = arg0.text();
|
|
1743
1854
|
return ret;
|
|
1744
1855
|
}, arguments); },
|
|
1745
|
-
|
|
1746
|
-
const ret = arg0.then(arg1);
|
|
1856
|
+
__wbg_then_0150352e4ad20344: function(arg0, arg1, arg2) {
|
|
1857
|
+
const ret = arg0.then(arg1, arg2);
|
|
1747
1858
|
return ret;
|
|
1748
1859
|
},
|
|
1749
|
-
|
|
1750
|
-
const ret = arg0.then(arg1
|
|
1860
|
+
__wbg_then_5160486c67ddb98a: function(arg0, arg1) {
|
|
1861
|
+
const ret = arg0.then(arg1);
|
|
1751
1862
|
return ret;
|
|
1752
1863
|
},
|
|
1753
|
-
|
|
1864
|
+
__wbg_toString_9e7353a77cb415a2: function(arg0) {
|
|
1754
1865
|
const ret = arg0.toString();
|
|
1755
1866
|
return ret;
|
|
1756
1867
|
},
|
|
1757
|
-
|
|
1868
|
+
__wbg_trace_6bf63295328ed5f4: function(arg0) {
|
|
1758
1869
|
console.trace(...arg0);
|
|
1759
1870
|
},
|
|
1760
|
-
|
|
1871
|
+
__wbg_url_c6d54634d7005dd1: function(arg0, arg1) {
|
|
1761
1872
|
const ret = arg1.url;
|
|
1762
1873
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1763
1874
|
const len1 = WASM_VECTOR_LEN;
|
|
1764
1875
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1765
1876
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1766
1877
|
},
|
|
1767
|
-
|
|
1878
|
+
__wbg_value_d5b248ce8419bd1b: function(arg0) {
|
|
1768
1879
|
const ret = arg0.value;
|
|
1769
1880
|
return ret;
|
|
1770
1881
|
},
|
|
@@ -1772,31 +1883,31 @@ function __wbg_get_imports() {
|
|
|
1772
1883
|
const ret = arg0.versions;
|
|
1773
1884
|
return ret;
|
|
1774
1885
|
},
|
|
1775
|
-
|
|
1886
|
+
__wbg_view_38a930844c964103: function(arg0) {
|
|
1776
1887
|
const ret = arg0.view;
|
|
1777
1888
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1778
1889
|
},
|
|
1779
|
-
|
|
1890
|
+
__wbg_warn_eb29a0759e003ef2: function(arg0) {
|
|
1780
1891
|
console.warn(...arg0);
|
|
1781
1892
|
},
|
|
1782
1893
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1783
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1784
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1894
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2210, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1895
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162);
|
|
1785
1896
|
return ret;
|
|
1786
1897
|
},
|
|
1787
1898
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1788
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1789
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1899
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 639, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1900
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae);
|
|
1790
1901
|
return ret;
|
|
1791
1902
|
},
|
|
1792
1903
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1793
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1904
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 595, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1905
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99);
|
|
1795
1906
|
return ret;
|
|
1796
1907
|
},
|
|
1797
1908
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1798
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1799
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1909
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 753, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1910
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242);
|
|
1800
1911
|
return ret;
|
|
1801
1912
|
},
|
|
1802
1913
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1840,27 +1951,27 @@ function __wbg_get_imports() {
|
|
|
1840
1951
|
};
|
|
1841
1952
|
}
|
|
1842
1953
|
|
|
1843
|
-
function
|
|
1844
|
-
wasm.
|
|
1954
|
+
function wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99(arg0, arg1) {
|
|
1955
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99(arg0, arg1);
|
|
1845
1956
|
}
|
|
1846
1957
|
|
|
1847
|
-
function
|
|
1848
|
-
wasm.
|
|
1958
|
+
function wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242(arg0, arg1) {
|
|
1959
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242(arg0, arg1);
|
|
1849
1960
|
}
|
|
1850
1961
|
|
|
1851
|
-
function
|
|
1852
|
-
wasm.
|
|
1962
|
+
function wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae(arg0, arg1, arg2) {
|
|
1963
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae(arg0, arg1, arg2);
|
|
1853
1964
|
}
|
|
1854
1965
|
|
|
1855
|
-
function
|
|
1856
|
-
const ret = wasm.
|
|
1966
|
+
function wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162(arg0, arg1, arg2) {
|
|
1967
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162(arg0, arg1, arg2);
|
|
1857
1968
|
if (ret[1]) {
|
|
1858
1969
|
throw takeFromExternrefTable0(ret[0]);
|
|
1859
1970
|
}
|
|
1860
1971
|
}
|
|
1861
1972
|
|
|
1862
|
-
function
|
|
1863
|
-
wasm.
|
|
1973
|
+
function wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(arg0, arg1, arg2, arg3) {
|
|
1974
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(arg0, arg1, arg2, arg3);
|
|
1864
1975
|
}
|
|
1865
1976
|
|
|
1866
1977
|
|
|
@@ -1928,7 +2039,7 @@ function _assertClass(instance, klass) {
|
|
|
1928
2039
|
|
|
1929
2040
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1930
2041
|
? { register: () => {}, unregister: () => {} }
|
|
1931
|
-
: new FinalizationRegistry(state =>
|
|
2042
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1932
2043
|
|
|
1933
2044
|
function debugString(val) {
|
|
1934
2045
|
// primitive types
|
|
@@ -2045,8 +2156,8 @@ function isLikeNone(x) {
|
|
|
2045
2156
|
return x === undefined || x === null;
|
|
2046
2157
|
}
|
|
2047
2158
|
|
|
2048
|
-
function makeMutClosure(arg0, arg1,
|
|
2049
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
2159
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2160
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2050
2161
|
const real = (...args) => {
|
|
2051
2162
|
|
|
2052
2163
|
// First up with a closure we increment the internal reference
|
|
@@ -2064,7 +2175,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
2064
2175
|
};
|
|
2065
2176
|
real._wbg_cb_unref = () => {
|
|
2066
2177
|
if (--state.cnt === 0) {
|
|
2067
|
-
|
|
2178
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2068
2179
|
state.a = 0;
|
|
2069
2180
|
CLOSURE_DTORS.unregister(state);
|
|
2070
2181
|
}
|
|
@@ -2118,15 +2229,7 @@ function takeFromExternrefTable0(idx) {
|
|
|
2118
2229
|
|
|
2119
2230
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2120
2231
|
cachedTextDecoder.decode();
|
|
2121
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2122
|
-
let numBytesDecoded = 0;
|
|
2123
2232
|
function decodeText(ptr, len) {
|
|
2124
|
-
numBytesDecoded += len;
|
|
2125
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2126
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2127
|
-
cachedTextDecoder.decode();
|
|
2128
|
-
numBytesDecoded = len;
|
|
2129
|
-
}
|
|
2130
2233
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2131
2234
|
}
|
|
2132
2235
|
|
|
@@ -2145,95 +2248,8 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2145
2248
|
|
|
2146
2249
|
let WASM_VECTOR_LEN = 0;
|
|
2147
2250
|
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
cachedUint8ArrayMemory0 = null;
|
|
2154
|
-
wasm.__wbindgen_start();
|
|
2155
|
-
return wasm;
|
|
2156
|
-
}
|
|
2157
|
-
|
|
2158
|
-
async function __wbg_load(module, imports) {
|
|
2159
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
2160
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2161
|
-
try {
|
|
2162
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2163
|
-
} catch (e) {
|
|
2164
|
-
const validResponse = module.ok && expectedResponseType(module.type);
|
|
2165
|
-
|
|
2166
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2167
|
-
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);
|
|
2168
|
-
|
|
2169
|
-
} else { throw e; }
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
|
|
2173
|
-
const bytes = await module.arrayBuffer();
|
|
2174
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
2175
|
-
} else {
|
|
2176
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
2177
|
-
|
|
2178
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
2179
|
-
return { instance, module };
|
|
2180
|
-
} else {
|
|
2181
|
-
return instance;
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
function expectedResponseType(type) {
|
|
2186
|
-
switch (type) {
|
|
2187
|
-
case 'basic': case 'cors': case 'default': return true;
|
|
2188
|
-
}
|
|
2189
|
-
return false;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
function initSync(module) {
|
|
2194
|
-
if (wasm !== undefined) return wasm;
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
if (module !== undefined) {
|
|
2198
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2199
|
-
({module} = module)
|
|
2200
|
-
} else {
|
|
2201
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
const imports = __wbg_get_imports();
|
|
2206
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
2207
|
-
module = new WebAssembly.Module(module);
|
|
2208
|
-
}
|
|
2209
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
2210
|
-
return __wbg_finalize_init(instance, module);
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
async function __wbg_init(module_or_path) {
|
|
2214
|
-
if (wasm !== undefined) return wasm;
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
if (module_or_path !== undefined) {
|
|
2218
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2219
|
-
({module_or_path} = module_or_path)
|
|
2220
|
-
} else {
|
|
2221
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
if (module_or_path === undefined) {
|
|
2226
|
-
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2227
|
-
}
|
|
2228
|
-
const imports = __wbg_get_imports();
|
|
2229
|
-
|
|
2230
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2231
|
-
module_or_path = fetch(module_or_path);
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2235
|
-
|
|
2236
|
-
return __wbg_finalize_init(instance, module);
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
export { initSync, __wbg_init as default };
|
|
2251
|
+
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
2252
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
2253
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
2254
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
2255
|
+
wasm.__wbindgen_start();
|