@siafoundation/sia-storage 0.0.13 → 0.1.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/README.md +39 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.node.cjs +9 -0
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.ts +169 -6
- package/package.json +8 -7
- package/wasm/sia_storage_wasm.d.ts +239 -36
- package/wasm/sia_storage_wasm.js +602 -237
- package/wasm/sia_storage_wasm_bg.wasm +0 -0
- package/wasm/sia_storage_wasm_bg.wasm.d.ts +36 -10
package/wasm/sia_storage_wasm.js
CHANGED
|
@@ -114,6 +114,22 @@ export class Builder {
|
|
|
114
114
|
const ptr = this.__destroy_into_raw();
|
|
115
115
|
wasm.__wbg_builder_free(ptr, 0);
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Connects using a pre-authorized key, bypassing the interactive approval
|
|
119
|
+
* flow, and returns a Sdk. `preAuthorizedKeySeed` is the 32-byte
|
|
120
|
+
* pre-authorized private key (Uint8Array); `mnemonic` derives the app key.
|
|
121
|
+
* @param {Uint8Array} pre_authorized_key_seed
|
|
122
|
+
* @param {string} mnemonic
|
|
123
|
+
* @returns {Promise<Sdk>}
|
|
124
|
+
*/
|
|
125
|
+
connectPreAuthorized(pre_authorized_key_seed, mnemonic) {
|
|
126
|
+
const ptr0 = passArray8ToWasm0(pre_authorized_key_seed, wasm.__wbindgen_malloc);
|
|
127
|
+
const len0 = WASM_VECTOR_LEN;
|
|
128
|
+
const ptr1 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
129
|
+
const len1 = WASM_VECTOR_LEN;
|
|
130
|
+
const ret = wasm.builder_connectPreAuthorized(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
131
|
+
return ret;
|
|
132
|
+
}
|
|
117
133
|
/**
|
|
118
134
|
* Attempts to connect using an existing AppKey.
|
|
119
135
|
* Returns a Sdk if the key is valid, or undefined if not registered.
|
|
@@ -125,6 +141,19 @@ export class Builder {
|
|
|
125
141
|
const ret = wasm.builder_connected(this.__wbg_ptr, app_key.__wbg_ptr);
|
|
126
142
|
return ret;
|
|
127
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Returns whether `mnemonic` derives an application key that is already
|
|
146
|
+
* registered with the indexer. Unlike `register`, the builder remains
|
|
147
|
+
* usable. Only valid after `waitForApproval` has resolved.
|
|
148
|
+
* @param {string} mnemonic
|
|
149
|
+
* @returns {Promise<boolean>}
|
|
150
|
+
*/
|
|
151
|
+
matchesExistingAppKey(mnemonic) {
|
|
152
|
+
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
153
|
+
const len0 = WASM_VECTOR_LEN;
|
|
154
|
+
const ret = wasm.builder_matchesExistingAppKey(this.__wbg_ptr, ptr0, len0);
|
|
155
|
+
return ret;
|
|
156
|
+
}
|
|
128
157
|
/**
|
|
129
158
|
* @param {string} indexer_url
|
|
130
159
|
* @param {AppMetadata} app
|
|
@@ -140,8 +169,27 @@ export class Builder {
|
|
|
140
169
|
BuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
141
170
|
return this;
|
|
142
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Returns whether the connect key the user approved with already has an
|
|
174
|
+
* account for this application. Only valid after `waitForApproval` has
|
|
175
|
+
* resolved.
|
|
176
|
+
*
|
|
177
|
+
* The connect key may have accounts under more than one recovery phrase.
|
|
178
|
+
* Use `matchesExistingAppKey` to check a particular phrase.
|
|
179
|
+
* @returns {boolean}
|
|
180
|
+
*/
|
|
181
|
+
reconnecting() {
|
|
182
|
+
const ret = wasm.builder_reconnecting(this.__wbg_ptr);
|
|
183
|
+
if (ret[2]) {
|
|
184
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
185
|
+
}
|
|
186
|
+
return ret[0] !== 0;
|
|
187
|
+
}
|
|
143
188
|
/**
|
|
144
189
|
* Completes registration and returns a Sdk instance.
|
|
190
|
+
*
|
|
191
|
+
* A different recovery phrase registers a new application key even when
|
|
192
|
+
* `reconnecting()` is true.
|
|
145
193
|
* @param {string} mnemonic
|
|
146
194
|
* @returns {Promise<Sdk>}
|
|
147
195
|
*/
|
|
@@ -309,6 +357,66 @@ export class IntoUnderlyingSource {
|
|
|
309
357
|
}
|
|
310
358
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
311
359
|
|
|
360
|
+
/**
|
|
361
|
+
* The indexer's record for a sharing key, including how many objects it grants
|
|
362
|
+
* access to and how much space they use. The counts are a snapshot, not a live
|
|
363
|
+
* view.
|
|
364
|
+
*/
|
|
365
|
+
export class KeyRecord {
|
|
366
|
+
static __wrap(ptr) {
|
|
367
|
+
const obj = Object.create(KeyRecord.prototype);
|
|
368
|
+
obj.__wbg_ptr = ptr;
|
|
369
|
+
KeyRecordFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
370
|
+
return obj;
|
|
371
|
+
}
|
|
372
|
+
__destroy_into_raw() {
|
|
373
|
+
const ptr = this.__wbg_ptr;
|
|
374
|
+
this.__wbg_ptr = 0;
|
|
375
|
+
KeyRecordFinalization.unregister(this);
|
|
376
|
+
return ptr;
|
|
377
|
+
}
|
|
378
|
+
free() {
|
|
379
|
+
const ptr = this.__destroy_into_raw();
|
|
380
|
+
wasm.__wbg_keyrecord_free(ptr, 0);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @returns {string}
|
|
384
|
+
*/
|
|
385
|
+
get description() {
|
|
386
|
+
let deferred1_0;
|
|
387
|
+
let deferred1_1;
|
|
388
|
+
try {
|
|
389
|
+
const ret = wasm.keyrecord_description(this.__wbg_ptr);
|
|
390
|
+
deferred1_0 = ret[0];
|
|
391
|
+
deferred1_1 = ret[1];
|
|
392
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
393
|
+
} finally {
|
|
394
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* The key this record describes.
|
|
399
|
+
* @returns {SharingKey}
|
|
400
|
+
*/
|
|
401
|
+
get key() {
|
|
402
|
+
const ret = wasm.keyrecord_key(this.__wbg_ptr);
|
|
403
|
+
return SharingKey.__wrap(ret);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* A snapshot of how many objects the key grants access to and how much
|
|
407
|
+
* space they use.
|
|
408
|
+
* @returns {KeyStats}
|
|
409
|
+
*/
|
|
410
|
+
get stats() {
|
|
411
|
+
const ret = wasm.keyrecord_stats(this.__wbg_ptr);
|
|
412
|
+
if (ret[2]) {
|
|
413
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
414
|
+
}
|
|
415
|
+
return takeFromExternrefTable0(ret[0]);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
if (Symbol.dispose) KeyRecord.prototype[Symbol.dispose] = KeyRecord.prototype.free;
|
|
419
|
+
|
|
312
420
|
/**
|
|
313
421
|
* An object event from the indexer.
|
|
314
422
|
*/
|
|
@@ -407,7 +515,9 @@ export class PackedUpload {
|
|
|
407
515
|
*
|
|
408
516
|
* If the reader errors part-way, it's safe to continue calling
|
|
409
517
|
* [add](Self::add); no object is registered for the failed call. Or call
|
|
410
|
-
* [finalize](Self::finalize) to collect the objects added so far.
|
|
518
|
+
* [finalize](Self::finalize) to collect the objects added so far. Bytes
|
|
519
|
+
* read before the error remain in the current slab as padding and stay
|
|
520
|
+
* counted in [length](Self::length) and [remaining](Self::remaining).
|
|
411
521
|
*
|
|
412
522
|
* ```js
|
|
413
523
|
* const packed = sdk.uploadPacked();
|
|
@@ -571,7 +681,10 @@ export class PinnedObject {
|
|
|
571
681
|
seal(app_key) {
|
|
572
682
|
_assertClass(app_key, AppKey);
|
|
573
683
|
const ret = wasm.pinnedobject_seal(this.__wbg_ptr, app_key.__wbg_ptr);
|
|
574
|
-
|
|
684
|
+
if (ret[2]) {
|
|
685
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
686
|
+
}
|
|
687
|
+
return takeFromExternrefTable0(ret[0]);
|
|
575
688
|
}
|
|
576
689
|
/**
|
|
577
690
|
* Returns the total size of the object in bytes.
|
|
@@ -592,6 +705,15 @@ export class PinnedObject {
|
|
|
592
705
|
}
|
|
593
706
|
return takeFromExternrefTable0(ret[0]);
|
|
594
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Returns a new object truncated to the requested length.
|
|
710
|
+
* @param {bigint} length
|
|
711
|
+
* @returns {PinnedObject}
|
|
712
|
+
*/
|
|
713
|
+
truncate(length) {
|
|
714
|
+
const ret = wasm.pinnedobject_truncate(this.__wbg_ptr, length);
|
|
715
|
+
return PinnedObject.__wrap(ret);
|
|
716
|
+
}
|
|
595
717
|
/**
|
|
596
718
|
* Updates the object's metadata.
|
|
597
719
|
* @param {Uint8Array} metadata
|
|
@@ -649,6 +771,18 @@ export class Sdk {
|
|
|
649
771
|
const ret = wasm.sdk_appKey(this.__wbg_ptr);
|
|
650
772
|
return AppKey.__wrap(ret);
|
|
651
773
|
}
|
|
774
|
+
/**
|
|
775
|
+
* Creates a sharing key. Attach objects to it with `Sdk.shareObject`.
|
|
776
|
+
* @param {string} description
|
|
777
|
+
* @param {Date | null} [expires_at]
|
|
778
|
+
* @returns {Promise<SharingKey>}
|
|
779
|
+
*/
|
|
780
|
+
createSharingKey(description, expires_at) {
|
|
781
|
+
const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
782
|
+
const len0 = WASM_VECTOR_LEN;
|
|
783
|
+
const ret = wasm.sdk_createSharingKey(this.__wbg_ptr, ptr0, len0, isLikeNone(expires_at) ? 0 : addToExternrefTable0(expires_at));
|
|
784
|
+
return ret;
|
|
785
|
+
}
|
|
652
786
|
/**
|
|
653
787
|
* Deletes an object from the indexer by its hex ID.
|
|
654
788
|
* @param {string} key_hex
|
|
@@ -717,21 +851,16 @@ export class Sdk {
|
|
|
717
851
|
return ret;
|
|
718
852
|
}
|
|
719
853
|
/**
|
|
720
|
-
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
_assertClass(object, PinnedObject);
|
|
726
|
-
const ret = wasm.sdk_pinObject(this.__wbg_ptr, object.__wbg_ptr);
|
|
727
|
-
return ret;
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* Prunes unused slabs from the indexer.
|
|
731
|
-
* @returns {Promise<void>}
|
|
854
|
+
* Resolves a share URL (sia://...) and returns the shared object.
|
|
855
|
+
* The encryption key is extracted from the URL fragment (never sent
|
|
856
|
+
* to the indexer).
|
|
857
|
+
* @param {string} share_url
|
|
858
|
+
* @returns {Promise<PinnedObject>}
|
|
732
859
|
*/
|
|
733
|
-
|
|
734
|
-
const
|
|
860
|
+
objectFromShareUrl(share_url) {
|
|
861
|
+
const ptr0 = passStringToWasm0(share_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
862
|
+
const len0 = WASM_VECTOR_LEN;
|
|
863
|
+
const ret = wasm.sdk_objectFromShareUrl(this.__wbg_ptr, ptr0, len0);
|
|
735
864
|
return ret;
|
|
736
865
|
}
|
|
737
866
|
/**
|
|
@@ -741,12 +870,12 @@ export class Sdk {
|
|
|
741
870
|
* @param {Date} valid_until
|
|
742
871
|
* @returns {string}
|
|
743
872
|
*/
|
|
744
|
-
|
|
873
|
+
objectShareUrl(object, valid_until) {
|
|
745
874
|
let deferred2_0;
|
|
746
875
|
let deferred2_1;
|
|
747
876
|
try {
|
|
748
877
|
_assertClass(object, PinnedObject);
|
|
749
|
-
const ret = wasm.
|
|
878
|
+
const ret = wasm.sdk_objectShareUrl(this.__wbg_ptr, object.__wbg_ptr, valid_until);
|
|
750
879
|
var ptr1 = ret[0];
|
|
751
880
|
var len1 = ret[1];
|
|
752
881
|
if (ret[3]) {
|
|
@@ -761,16 +890,79 @@ export class Sdk {
|
|
|
761
890
|
}
|
|
762
891
|
}
|
|
763
892
|
/**
|
|
764
|
-
*
|
|
765
|
-
*
|
|
766
|
-
*
|
|
767
|
-
* @param {string} share_url
|
|
768
|
-
* @returns {Promise<PinnedObject>}
|
|
893
|
+
* Pins an object to the indexer so it persists beyond temporary storage.
|
|
894
|
+
* @param {PinnedObject} object
|
|
895
|
+
* @returns {Promise<void>}
|
|
769
896
|
*/
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
const
|
|
773
|
-
|
|
897
|
+
pinObject(object) {
|
|
898
|
+
_assertClass(object, PinnedObject);
|
|
899
|
+
const ret = wasm.sdk_pinObject(this.__wbg_ptr, object.__wbg_ptr);
|
|
900
|
+
return ret;
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Prunes unused slabs from the indexer.
|
|
904
|
+
* @returns {Promise<void>}
|
|
905
|
+
*/
|
|
906
|
+
pruneSlabs() {
|
|
907
|
+
const ret = wasm.sdk_pruneSlabs(this.__wbg_ptr);
|
|
908
|
+
return ret;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Deletes a sharing key along with all of its attachments, revoking
|
|
912
|
+
* recipients' access. Account tokens already issued stay valid until they
|
|
913
|
+
* expire, so a download in flight can keep reading for up to five minutes.
|
|
914
|
+
* @param {SharingKey} key
|
|
915
|
+
* @returns {Promise<void>}
|
|
916
|
+
*/
|
|
917
|
+
revokeSharingKey(key) {
|
|
918
|
+
_assertClass(key, SharingKey);
|
|
919
|
+
const ret = wasm.sdk_revokeSharingKey(this.__wbg_ptr, key.__wbg_ptr);
|
|
920
|
+
return ret;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Attaches an object to a sharing key, re-sealing its encryption keys under
|
|
924
|
+
* the key so recipients can decrypt it. Attaching an already-attached
|
|
925
|
+
* object replaces its re-sealed keys, so a failed call can be retried.
|
|
926
|
+
* @param {SharingKey} key
|
|
927
|
+
* @param {PinnedObject} object
|
|
928
|
+
* @returns {Promise<void>}
|
|
929
|
+
*/
|
|
930
|
+
shareObject(key, object) {
|
|
931
|
+
_assertClass(key, SharingKey);
|
|
932
|
+
_assertClass(object, PinnedObject);
|
|
933
|
+
const ret = wasm.sdk_shareObject(this.__wbg_ptr, key.__wbg_ptr, object.__wbg_ptr);
|
|
934
|
+
return ret;
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Lists and decrypts a page of the objects a sharing key grants access to.
|
|
938
|
+
* @param {SharingKey} key
|
|
939
|
+
* @param {number} offset
|
|
940
|
+
* @param {number} limit
|
|
941
|
+
* @returns {Promise<PinnedObject[]>}
|
|
942
|
+
*/
|
|
943
|
+
sharedObjects(key, offset, limit) {
|
|
944
|
+
_assertClass(key, SharingKey);
|
|
945
|
+
const ret = wasm.sdk_sharedObjects(this.__wbg_ptr, key.__wbg_ptr, offset, limit);
|
|
946
|
+
return ret;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Fetches the indexer's record for a key, including its counts.
|
|
950
|
+
* @param {SharingKey} key
|
|
951
|
+
* @returns {Promise<KeyRecord>}
|
|
952
|
+
*/
|
|
953
|
+
sharingKey(key) {
|
|
954
|
+
_assertClass(key, SharingKey);
|
|
955
|
+
const ret = wasm.sdk_sharingKey(this.__wbg_ptr, key.__wbg_ptr);
|
|
956
|
+
return ret;
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Lists the account's sharing keys, most recently created first.
|
|
960
|
+
* @param {number} offset
|
|
961
|
+
* @param {number} limit
|
|
962
|
+
* @returns {Promise<KeyRecord[]>}
|
|
963
|
+
*/
|
|
964
|
+
sharingKeys(offset, limit) {
|
|
965
|
+
const ret = wasm.sdk_sharingKeys(this.__wbg_ptr, offset, limit);
|
|
774
966
|
return ret;
|
|
775
967
|
}
|
|
776
968
|
/**
|
|
@@ -784,6 +976,19 @@ export class Sdk {
|
|
|
784
976
|
const ret = wasm.sdk_slab(this.__wbg_ptr, ptr0, len0);
|
|
785
977
|
return ret;
|
|
786
978
|
}
|
|
979
|
+
/**
|
|
980
|
+
* Detaches an object from a sharing key, leaving the key and its other
|
|
981
|
+
* attachments in place.
|
|
982
|
+
* @param {SharingKey} key
|
|
983
|
+
* @param {PinnedObject} object
|
|
984
|
+
* @returns {Promise<void>}
|
|
985
|
+
*/
|
|
986
|
+
unshareObject(key, object) {
|
|
987
|
+
_assertClass(key, SharingKey);
|
|
988
|
+
_assertClass(object, PinnedObject);
|
|
989
|
+
const ret = wasm.sdk_unshareObject(this.__wbg_ptr, key.__wbg_ptr, object.__wbg_ptr);
|
|
990
|
+
return ret;
|
|
991
|
+
}
|
|
787
992
|
/**
|
|
788
993
|
* Updates an object's metadata on the indexer.
|
|
789
994
|
* @param {PinnedObject} object
|
|
@@ -834,6 +1039,177 @@ export class Sdk {
|
|
|
834
1039
|
}
|
|
835
1040
|
if (Symbol.dispose) Sdk.prototype[Symbol.dispose] = Sdk.prototype.free;
|
|
836
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* A read-only SDK for the objects a sharing key grants access to.
|
|
1044
|
+
*
|
|
1045
|
+
* Unlike `Sdk`, it authenticates with a sharing key rather than an app key and
|
|
1046
|
+
* cannot upload, pin, or delete. Downloads are paid for by the key's owner.
|
|
1047
|
+
*/
|
|
1048
|
+
export class SharedSdk {
|
|
1049
|
+
static __wrap(ptr) {
|
|
1050
|
+
const obj = Object.create(SharedSdk.prototype);
|
|
1051
|
+
obj.__wbg_ptr = ptr;
|
|
1052
|
+
SharedSdkFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1053
|
+
return obj;
|
|
1054
|
+
}
|
|
1055
|
+
__destroy_into_raw() {
|
|
1056
|
+
const ptr = this.__wbg_ptr;
|
|
1057
|
+
this.__wbg_ptr = 0;
|
|
1058
|
+
SharedSdkFinalization.unregister(this);
|
|
1059
|
+
return ptr;
|
|
1060
|
+
}
|
|
1061
|
+
free() {
|
|
1062
|
+
const ptr = this.__destroy_into_raw();
|
|
1063
|
+
wasm.__wbg_sharedsdk_free(ptr, 0);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Connects to `indexerUrl` as the recipient of the sharing key derived
|
|
1067
|
+
* from `seed`, which is the hex string the key's owner handed out.
|
|
1068
|
+
* @param {string} indexer_url
|
|
1069
|
+
* @param {string} seed
|
|
1070
|
+
* @returns {Promise<SharedSdk>}
|
|
1071
|
+
*/
|
|
1072
|
+
static connect(indexer_url, seed) {
|
|
1073
|
+
const ptr0 = passStringToWasm0(indexer_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1074
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1075
|
+
const ptr1 = passStringToWasm0(seed, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1076
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1077
|
+
const ret = wasm.sharedsdk_connect(ptr0, len0, ptr1, len1);
|
|
1078
|
+
return ret;
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Streams a shared object's data.
|
|
1082
|
+
* @param {PinnedObject} object
|
|
1083
|
+
* @param {any | null} [options]
|
|
1084
|
+
* @returns {ReadableStream}
|
|
1085
|
+
*/
|
|
1086
|
+
download(object, options) {
|
|
1087
|
+
_assertClass(object, PinnedObject);
|
|
1088
|
+
const ret = wasm.sharedsdk_download(this.__wbg_ptr, object.__wbg_ptr, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
1089
|
+
if (ret[2]) {
|
|
1090
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1091
|
+
}
|
|
1092
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Returns the hosts serving this key's objects, optionally filtered by a
|
|
1096
|
+
* HostQuery. Mirrors `Sdk.hosts()` but is scoped to the sharing key, so the
|
|
1097
|
+
* set is already limited to hosts holding its objects.
|
|
1098
|
+
* @param {HostQuery | null} [query]
|
|
1099
|
+
* @returns {Host[]}
|
|
1100
|
+
*/
|
|
1101
|
+
hosts(query) {
|
|
1102
|
+
const ret = wasm.sharedsdk_hosts(this.__wbg_ptr, isLikeNone(query) ? 0 : addToExternrefTable0(query));
|
|
1103
|
+
return ret;
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Fetches and decrypts one object the key grants access to.
|
|
1107
|
+
* @param {string} id
|
|
1108
|
+
* @returns {Promise<PinnedObject>}
|
|
1109
|
+
*/
|
|
1110
|
+
object(id) {
|
|
1111
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1112
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1113
|
+
const ret = wasm.sharedsdk_object(this.__wbg_ptr, ptr0, len0);
|
|
1114
|
+
return ret;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Lists and decrypts a page of the objects the key grants access to.
|
|
1118
|
+
* @param {number} offset
|
|
1119
|
+
* @param {number} limit
|
|
1120
|
+
* @returns {Promise<PinnedObject[]>}
|
|
1121
|
+
*/
|
|
1122
|
+
objects(offset, limit) {
|
|
1123
|
+
const ret = wasm.sharedsdk_objects(this.__wbg_ptr, offset, limit);
|
|
1124
|
+
return ret;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Fetches the sharing key's stats from the indexer.
|
|
1128
|
+
* @returns {Promise<KeyStats>}
|
|
1129
|
+
*/
|
|
1130
|
+
stats() {
|
|
1131
|
+
const ret = wasm.sharedsdk_stats(this.__wbg_ptr);
|
|
1132
|
+
return ret;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
if (Symbol.dispose) SharedSdk.prototype[Symbol.dispose] = SharedSdk.prototype.free;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* A sharing key, granting read-only access to the objects attached to it.
|
|
1139
|
+
*
|
|
1140
|
+
* It is just the credential; the operations that use it live on `Sdk`.
|
|
1141
|
+
*/
|
|
1142
|
+
export class SharingKey {
|
|
1143
|
+
static __wrap(ptr) {
|
|
1144
|
+
const obj = Object.create(SharingKey.prototype);
|
|
1145
|
+
obj.__wbg_ptr = ptr;
|
|
1146
|
+
SharingKeyFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1147
|
+
return obj;
|
|
1148
|
+
}
|
|
1149
|
+
__destroy_into_raw() {
|
|
1150
|
+
const ptr = this.__wbg_ptr;
|
|
1151
|
+
this.__wbg_ptr = 0;
|
|
1152
|
+
SharingKeyFinalization.unregister(this);
|
|
1153
|
+
return ptr;
|
|
1154
|
+
}
|
|
1155
|
+
free() {
|
|
1156
|
+
const ptr = this.__destroy_into_raw();
|
|
1157
|
+
wasm.__wbg_sharingkey_free(ptr, 0);
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* Imports a sharing key from the hex seed its owner handed out.
|
|
1161
|
+
*
|
|
1162
|
+
* Pass the string returned by [seed](Self::seed).
|
|
1163
|
+
* @param {string} seed
|
|
1164
|
+
* @returns {SharingKey}
|
|
1165
|
+
*/
|
|
1166
|
+
static fromSeed(seed) {
|
|
1167
|
+
const ptr0 = passStringToWasm0(seed, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1168
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1169
|
+
const ret = wasm.sharingkey_fromSeed(ptr0, len0);
|
|
1170
|
+
if (ret[2]) {
|
|
1171
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1172
|
+
}
|
|
1173
|
+
return SharingKey.__wrap(ret[0]);
|
|
1174
|
+
}
|
|
1175
|
+
/**
|
|
1176
|
+
* The key's public half, which identifies it.
|
|
1177
|
+
* @returns {string}
|
|
1178
|
+
*/
|
|
1179
|
+
get publicKey() {
|
|
1180
|
+
let deferred1_0;
|
|
1181
|
+
let deferred1_1;
|
|
1182
|
+
try {
|
|
1183
|
+
const ret = wasm.sharingkey_publicKey(this.__wbg_ptr);
|
|
1184
|
+
deferred1_0 = ret[0];
|
|
1185
|
+
deferred1_1 = ret[1];
|
|
1186
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1187
|
+
} finally {
|
|
1188
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Returns the seed a recipient needs to read the key's objects, as hex.
|
|
1193
|
+
*
|
|
1194
|
+
* It is the whole credential. Pair it with the indexer's url in
|
|
1195
|
+
* `SharedSdk.connect`.
|
|
1196
|
+
* @returns {string}
|
|
1197
|
+
*/
|
|
1198
|
+
seed() {
|
|
1199
|
+
let deferred1_0;
|
|
1200
|
+
let deferred1_1;
|
|
1201
|
+
try {
|
|
1202
|
+
const ret = wasm.sharingkey_seed(this.__wbg_ptr);
|
|
1203
|
+
deferred1_0 = ret[0];
|
|
1204
|
+
deferred1_1 = ret[1];
|
|
1205
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1206
|
+
} finally {
|
|
1207
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
if (Symbol.dispose) SharingKey.prototype[Symbol.dispose] = SharingKey.prototype.free;
|
|
1212
|
+
|
|
837
1213
|
/**
|
|
838
1214
|
* Calculates the encoded size of data after erasure coding.
|
|
839
1215
|
* @param {number} data_size
|
|
@@ -899,11 +1275,11 @@ export function validateRecoveryPhrase(phrase) {
|
|
|
899
1275
|
function __wbg_get_imports() {
|
|
900
1276
|
const import0 = {
|
|
901
1277
|
__proto__: null,
|
|
902
|
-
|
|
1278
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
903
1279
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
904
1280
|
return ret;
|
|
905
1281
|
},
|
|
906
|
-
|
|
1282
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
907
1283
|
const ret = Number(arg0);
|
|
908
1284
|
return ret;
|
|
909
1285
|
},
|
|
@@ -914,68 +1290,64 @@ function __wbg_get_imports() {
|
|
|
914
1290
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
915
1291
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
916
1292
|
},
|
|
917
|
-
|
|
1293
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
918
1294
|
const v = arg1;
|
|
919
1295
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
920
1296
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
921
1297
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
922
1298
|
},
|
|
923
|
-
|
|
1299
|
+
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
924
1300
|
const v = arg0;
|
|
925
1301
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
926
1302
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
927
1303
|
},
|
|
928
|
-
|
|
1304
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
929
1305
|
const ret = debugString(arg1);
|
|
930
1306
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
931
1307
|
const len1 = WASM_VECTOR_LEN;
|
|
932
1308
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
933
1309
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
934
1310
|
},
|
|
935
|
-
|
|
1311
|
+
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
936
1312
|
const ret = arg0 in arg1;
|
|
937
1313
|
return ret;
|
|
938
1314
|
},
|
|
939
|
-
|
|
1315
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
940
1316
|
const ret = typeof(arg0) === 'bigint';
|
|
941
1317
|
return ret;
|
|
942
1318
|
},
|
|
943
|
-
|
|
1319
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
944
1320
|
const ret = typeof(arg0) === 'function';
|
|
945
1321
|
return ret;
|
|
946
1322
|
},
|
|
947
|
-
|
|
1323
|
+
__wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
|
|
948
1324
|
const ret = arg0 === null;
|
|
949
1325
|
return ret;
|
|
950
1326
|
},
|
|
951
|
-
|
|
1327
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
952
1328
|
const val = arg0;
|
|
953
1329
|
const ret = typeof(val) === 'object' && val !== null;
|
|
954
1330
|
return ret;
|
|
955
1331
|
},
|
|
956
|
-
|
|
957
|
-
const ret = typeof(arg0) === 'string';
|
|
958
|
-
return ret;
|
|
959
|
-
},
|
|
960
|
-
__wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
|
|
1332
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
961
1333
|
const ret = arg0 === undefined;
|
|
962
1334
|
return ret;
|
|
963
1335
|
},
|
|
964
|
-
|
|
1336
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
965
1337
|
const ret = arg0 === arg1;
|
|
966
1338
|
return ret;
|
|
967
1339
|
},
|
|
968
|
-
|
|
1340
|
+
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
969
1341
|
const ret = arg0 == arg1;
|
|
970
1342
|
return ret;
|
|
971
1343
|
},
|
|
972
|
-
|
|
1344
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
973
1345
|
const obj = arg1;
|
|
974
1346
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
975
1347
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
976
1348
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
977
1349
|
},
|
|
978
|
-
|
|
1350
|
+
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
979
1351
|
const obj = arg1;
|
|
980
1352
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
981
1353
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -983,62 +1355,62 @@ function __wbg_get_imports() {
|
|
|
983
1355
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
984
1356
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
985
1357
|
},
|
|
986
|
-
|
|
1358
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
987
1359
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
988
1360
|
},
|
|
989
|
-
|
|
1361
|
+
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
990
1362
|
arg0._wbg_cb_unref();
|
|
991
1363
|
},
|
|
992
|
-
|
|
1364
|
+
__wbg_abort_8bae0f33e7833997: function(arg0) {
|
|
993
1365
|
arg0.abort();
|
|
994
1366
|
},
|
|
995
|
-
|
|
1367
|
+
__wbg_abort_eee9248a6d680839: function(arg0, arg1) {
|
|
996
1368
|
arg0.abort(arg1);
|
|
997
1369
|
},
|
|
998
|
-
|
|
1370
|
+
__wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
999
1371
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1000
1372
|
}, arguments); },
|
|
1001
|
-
|
|
1373
|
+
__wbg_arrayBuffer_3b637f0fa65c5351: function() { return handleError(function (arg0) {
|
|
1002
1374
|
const ret = arg0.arrayBuffer();
|
|
1003
1375
|
return ret;
|
|
1004
1376
|
}, arguments); },
|
|
1005
|
-
|
|
1377
|
+
__wbg_buffer_54b87055582c8a81: function(arg0) {
|
|
1006
1378
|
const ret = arg0.buffer;
|
|
1007
1379
|
return ret;
|
|
1008
1380
|
},
|
|
1009
|
-
|
|
1381
|
+
__wbg_byobRequest_06b654bb15590436: function(arg0) {
|
|
1010
1382
|
const ret = arg0.byobRequest;
|
|
1011
1383
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1012
1384
|
},
|
|
1013
|
-
|
|
1385
|
+
__wbg_byteLength_41862ca4020b9c43: function(arg0) {
|
|
1014
1386
|
const ret = arg0.byteLength;
|
|
1015
1387
|
return ret;
|
|
1016
1388
|
},
|
|
1017
|
-
|
|
1389
|
+
__wbg_byteOffset_d42e18c4441f628b: function(arg0) {
|
|
1018
1390
|
const ret = arg0.byteOffset;
|
|
1019
1391
|
return ret;
|
|
1020
1392
|
},
|
|
1021
|
-
|
|
1022
|
-
const ret = arg0.call(arg1
|
|
1393
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
1394
|
+
const ret = arg0.call(arg1);
|
|
1023
1395
|
return ret;
|
|
1024
1396
|
}, arguments); },
|
|
1025
|
-
|
|
1397
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1026
1398
|
const ret = arg0.call(arg1, arg2);
|
|
1027
1399
|
return ret;
|
|
1028
1400
|
}, arguments); },
|
|
1029
|
-
|
|
1030
|
-
const ret = arg0.call(arg1);
|
|
1401
|
+
__wbg_call_e3b662382210db98: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1402
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
1031
1403
|
return ret;
|
|
1032
1404
|
}, arguments); },
|
|
1033
|
-
|
|
1405
|
+
__wbg_cancel_3983a93e24cc66b3: function(arg0) {
|
|
1034
1406
|
const ret = arg0.cancel();
|
|
1035
1407
|
return ret;
|
|
1036
1408
|
},
|
|
1037
|
-
|
|
1409
|
+
__wbg_cancel_70eb325a477a4d18: function(arg0) {
|
|
1038
1410
|
const ret = arg0.cancel();
|
|
1039
1411
|
return ret;
|
|
1040
1412
|
},
|
|
1041
|
-
|
|
1413
|
+
__wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
|
|
1042
1414
|
const ret = arg0.catch(arg1);
|
|
1043
1415
|
return ret;
|
|
1044
1416
|
},
|
|
@@ -1046,40 +1418,36 @@ function __wbg_get_imports() {
|
|
|
1046
1418
|
const ret = clearTimeout(arg0);
|
|
1047
1419
|
return ret;
|
|
1048
1420
|
},
|
|
1049
|
-
|
|
1421
|
+
__wbg_close_1e6096d41f7ce5d0: function(arg0) {
|
|
1050
1422
|
const ret = arg0.close();
|
|
1051
1423
|
return ret;
|
|
1052
1424
|
},
|
|
1053
|
-
|
|
1425
|
+
__wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
|
|
1054
1426
|
arg0.close();
|
|
1055
1427
|
}, arguments); },
|
|
1056
|
-
|
|
1428
|
+
__wbg_close_72d318d9c16e83ef: function() { return handleError(function (arg0) {
|
|
1057
1429
|
arg0.close();
|
|
1058
1430
|
}, arguments); },
|
|
1059
|
-
|
|
1431
|
+
__wbg_close_9aa4d8117c23924b: function(arg0) {
|
|
1060
1432
|
arg0.close();
|
|
1061
1433
|
},
|
|
1062
|
-
|
|
1434
|
+
__wbg_closed_90dc91afa732ed57: function(arg0) {
|
|
1063
1435
|
const ret = arg0.closed;
|
|
1064
1436
|
return ret;
|
|
1065
1437
|
},
|
|
1066
|
-
|
|
1438
|
+
__wbg_createBidirectionalStream_f9081daa37bad3ee: function(arg0) {
|
|
1067
1439
|
const ret = arg0.createBidirectionalStream();
|
|
1068
1440
|
return ret;
|
|
1069
1441
|
},
|
|
1070
|
-
|
|
1071
|
-
const ret = arg0.crypto;
|
|
1072
|
-
return ret;
|
|
1073
|
-
},
|
|
1074
|
-
__wbg_done_b62d4a7d2286852a: function(arg0) {
|
|
1442
|
+
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
1075
1443
|
const ret = arg0.done;
|
|
1076
1444
|
return ret;
|
|
1077
1445
|
},
|
|
1078
|
-
|
|
1446
|
+
__wbg_done_c68bf4f8d2d475af: function(arg0) {
|
|
1079
1447
|
const ret = arg0.done;
|
|
1080
1448
|
return ret;
|
|
1081
1449
|
},
|
|
1082
|
-
|
|
1450
|
+
__wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
|
|
1083
1451
|
arg0.enqueue(arg1);
|
|
1084
1452
|
}, arguments); },
|
|
1085
1453
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
@@ -1097,13 +1465,10 @@ function __wbg_get_imports() {
|
|
|
1097
1465
|
const ret = fetch(arg0);
|
|
1098
1466
|
return ret;
|
|
1099
1467
|
},
|
|
1100
|
-
|
|
1468
|
+
__wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
|
|
1101
1469
|
const ret = arg0.fetch(arg1);
|
|
1102
1470
|
return ret;
|
|
1103
1471
|
},
|
|
1104
|
-
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1105
|
-
arg0.getRandomValues(arg1);
|
|
1106
|
-
}, arguments); },
|
|
1107
1472
|
__wbg_getRandomValues_cc7f052a444bb2ce: function() { return handleError(function (arg0, arg1) {
|
|
1108
1473
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1109
1474
|
}, arguments); },
|
|
@@ -1111,7 +1476,7 @@ function __wbg_get_imports() {
|
|
|
1111
1476
|
const ret = arg0.getReader(arg1);
|
|
1112
1477
|
return ret;
|
|
1113
1478
|
}, arguments); },
|
|
1114
|
-
|
|
1479
|
+
__wbg_getReader_7455d080fa48369b: function(arg0) {
|
|
1115
1480
|
const ret = arg0.getReader();
|
|
1116
1481
|
return ret;
|
|
1117
1482
|
},
|
|
@@ -1119,31 +1484,31 @@ function __wbg_get_imports() {
|
|
|
1119
1484
|
const ret = arg0.getReader();
|
|
1120
1485
|
return ret;
|
|
1121
1486
|
}, arguments); },
|
|
1122
|
-
|
|
1487
|
+
__wbg_getTime_d6f070c088c9b5ed: function(arg0) {
|
|
1123
1488
|
const ret = arg0.getTime();
|
|
1124
1489
|
return ret;
|
|
1125
1490
|
},
|
|
1126
|
-
|
|
1491
|
+
__wbg_getWriter_d71a99bcd847ccef: function() { return handleError(function (arg0) {
|
|
1127
1492
|
const ret = arg0.getWriter();
|
|
1128
1493
|
return ret;
|
|
1129
1494
|
}, arguments); },
|
|
1130
|
-
|
|
1495
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
1131
1496
|
const ret = Reflect.get(arg0, arg1);
|
|
1132
1497
|
return ret;
|
|
1133
1498
|
}, arguments); },
|
|
1134
|
-
|
|
1499
|
+
__wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
|
|
1135
1500
|
const ret = Reflect.get(arg0, arg1);
|
|
1136
1501
|
return ret;
|
|
1137
1502
|
}, arguments); },
|
|
1138
|
-
|
|
1503
|
+
__wbg_get_done_670108eb06ecbe46: function(arg0) {
|
|
1139
1504
|
const ret = arg0.done;
|
|
1140
1505
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1141
1506
|
},
|
|
1142
|
-
|
|
1507
|
+
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
1143
1508
|
const ret = arg0[arg1 >>> 0];
|
|
1144
1509
|
return ret;
|
|
1145
1510
|
},
|
|
1146
|
-
|
|
1511
|
+
__wbg_get_value_f465f5be30aa0963: function(arg0) {
|
|
1147
1512
|
const ret = arg0.value;
|
|
1148
1513
|
return ret;
|
|
1149
1514
|
},
|
|
@@ -1151,15 +1516,15 @@ function __wbg_get_imports() {
|
|
|
1151
1516
|
const ret = arg0[arg1];
|
|
1152
1517
|
return ret;
|
|
1153
1518
|
},
|
|
1154
|
-
|
|
1519
|
+
__wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
|
|
1155
1520
|
const ret = Reflect.has(arg0, arg1);
|
|
1156
1521
|
return ret;
|
|
1157
1522
|
}, arguments); },
|
|
1158
|
-
|
|
1523
|
+
__wbg_headers_cf9c80f30e2a4eff: function(arg0) {
|
|
1159
1524
|
const ret = arg0.headers;
|
|
1160
1525
|
return ret;
|
|
1161
1526
|
},
|
|
1162
|
-
|
|
1527
|
+
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
1163
1528
|
let result;
|
|
1164
1529
|
try {
|
|
1165
1530
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1169,7 +1534,7 @@ function __wbg_get_imports() {
|
|
|
1169
1534
|
const ret = result;
|
|
1170
1535
|
return ret;
|
|
1171
1536
|
},
|
|
1172
|
-
|
|
1537
|
+
__wbg_instanceof_Date_e54edffdcb007f5f: function(arg0) {
|
|
1173
1538
|
let result;
|
|
1174
1539
|
try {
|
|
1175
1540
|
result = arg0 instanceof Date;
|
|
@@ -1179,7 +1544,7 @@ function __wbg_get_imports() {
|
|
|
1179
1544
|
const ret = result;
|
|
1180
1545
|
return ret;
|
|
1181
1546
|
},
|
|
1182
|
-
|
|
1547
|
+
__wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
|
|
1183
1548
|
let result;
|
|
1184
1549
|
try {
|
|
1185
1550
|
result = arg0 instanceof Error;
|
|
@@ -1189,7 +1554,7 @@ function __wbg_get_imports() {
|
|
|
1189
1554
|
const ret = result;
|
|
1190
1555
|
return ret;
|
|
1191
1556
|
},
|
|
1192
|
-
|
|
1557
|
+
__wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
|
|
1193
1558
|
let result;
|
|
1194
1559
|
try {
|
|
1195
1560
|
result = arg0 instanceof Response;
|
|
@@ -1199,7 +1564,7 @@ function __wbg_get_imports() {
|
|
|
1199
1564
|
const ret = result;
|
|
1200
1565
|
return ret;
|
|
1201
1566
|
},
|
|
1202
|
-
|
|
1567
|
+
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
1203
1568
|
let result;
|
|
1204
1569
|
try {
|
|
1205
1570
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1209,39 +1574,39 @@ function __wbg_get_imports() {
|
|
|
1209
1574
|
const ret = result;
|
|
1210
1575
|
return ret;
|
|
1211
1576
|
},
|
|
1212
|
-
|
|
1577
|
+
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
1213
1578
|
const ret = Array.isArray(arg0);
|
|
1214
1579
|
return ret;
|
|
1215
1580
|
},
|
|
1216
|
-
|
|
1581
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
1217
1582
|
const ret = Number.isSafeInteger(arg0);
|
|
1218
1583
|
return ret;
|
|
1219
1584
|
},
|
|
1220
|
-
|
|
1585
|
+
__wbg_iterator_6f722e4a93058b71: function() {
|
|
1221
1586
|
const ret = Symbol.iterator;
|
|
1222
1587
|
return ret;
|
|
1223
1588
|
},
|
|
1224
|
-
|
|
1225
|
-
const ret = arg0
|
|
1589
|
+
__wbg_keyrecord_new: function(arg0) {
|
|
1590
|
+
const ret = KeyRecord.__wrap(arg0);
|
|
1226
1591
|
return ret;
|
|
1227
1592
|
},
|
|
1228
|
-
|
|
1593
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
1229
1594
|
const ret = arg0.length;
|
|
1230
1595
|
return ret;
|
|
1231
1596
|
},
|
|
1232
|
-
|
|
1233
|
-
const ret = arg0.
|
|
1597
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
1598
|
+
const ret = arg0.length;
|
|
1234
1599
|
return ret;
|
|
1235
1600
|
},
|
|
1236
|
-
|
|
1237
|
-
const ret = arg0.
|
|
1601
|
+
__wbg_message_8326fb1d549bebc5: function(arg0) {
|
|
1602
|
+
const ret = arg0.message;
|
|
1238
1603
|
return ret;
|
|
1239
1604
|
},
|
|
1240
|
-
|
|
1605
|
+
__wbg_new_0_3da9e97f24fc69be: function() {
|
|
1241
1606
|
const ret = new Date();
|
|
1242
1607
|
return ret;
|
|
1243
1608
|
},
|
|
1244
|
-
|
|
1609
|
+
__wbg_new_0d809930cd1354c6: function() { return handleError(function () {
|
|
1245
1610
|
const ret = new Headers();
|
|
1246
1611
|
return ret;
|
|
1247
1612
|
}, arguments); },
|
|
@@ -1249,38 +1614,22 @@ function __wbg_get_imports() {
|
|
|
1249
1614
|
const ret = new Error();
|
|
1250
1615
|
return ret;
|
|
1251
1616
|
},
|
|
1252
|
-
|
|
1253
|
-
const ret = new Object();
|
|
1254
|
-
return ret;
|
|
1255
|
-
},
|
|
1256
|
-
__wbg_new_36e147a8ced3c6e0: function() {
|
|
1617
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
1257
1618
|
const ret = new Array();
|
|
1258
1619
|
return ret;
|
|
1259
1620
|
},
|
|
1260
|
-
|
|
1261
|
-
const ret = new Date(arg0);
|
|
1262
|
-
return ret;
|
|
1263
|
-
},
|
|
1264
|
-
__wbg_new_51233fa2a760b272: function() { return handleError(function () {
|
|
1621
|
+
__wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
|
|
1265
1622
|
const ret = new AbortController();
|
|
1266
1623
|
return ret;
|
|
1267
1624
|
}, arguments); },
|
|
1268
|
-
|
|
1269
|
-
const ret = new Uint8Array(arg0);
|
|
1270
|
-
return ret;
|
|
1271
|
-
},
|
|
1272
|
-
__wbg_new_e66a4b7758dd2e5c: function(arg0, arg1) {
|
|
1273
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1274
|
-
return ret;
|
|
1275
|
-
},
|
|
1276
|
-
__wbg_new_f85beb941dc6d8aa: function(arg0, arg1) {
|
|
1625
|
+
__wbg_new_aec3e25493d729fe: function(arg0, arg1) {
|
|
1277
1626
|
try {
|
|
1278
1627
|
var state0 = {a: arg0, b: arg1};
|
|
1279
1628
|
var cb0 = (arg0, arg1) => {
|
|
1280
1629
|
const a = state0.a;
|
|
1281
1630
|
state0.a = 0;
|
|
1282
1631
|
try {
|
|
1283
|
-
return
|
|
1632
|
+
return wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1284
1633
|
} finally {
|
|
1285
1634
|
state0.a = a;
|
|
1286
1635
|
}
|
|
@@ -1291,18 +1640,34 @@ function __wbg_get_imports() {
|
|
|
1291
1640
|
state0.a = 0;
|
|
1292
1641
|
}
|
|
1293
1642
|
},
|
|
1294
|
-
|
|
1643
|
+
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
1644
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1645
|
+
return ret;
|
|
1646
|
+
},
|
|
1647
|
+
__wbg_new_cc984128914cfc6f: function(arg0) {
|
|
1648
|
+
const ret = new Date(arg0);
|
|
1649
|
+
return ret;
|
|
1650
|
+
},
|
|
1651
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
1652
|
+
const ret = new Uint8Array(arg0);
|
|
1653
|
+
return ret;
|
|
1654
|
+
},
|
|
1655
|
+
__wbg_new_da52cf8fe3429cb2: function() {
|
|
1656
|
+
const ret = new Object();
|
|
1657
|
+
return ret;
|
|
1658
|
+
},
|
|
1659
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
1295
1660
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1296
1661
|
return ret;
|
|
1297
1662
|
},
|
|
1298
|
-
|
|
1663
|
+
__wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
|
|
1299
1664
|
try {
|
|
1300
1665
|
var state0 = {a: arg0, b: arg1};
|
|
1301
1666
|
var cb0 = (arg0, arg1) => {
|
|
1302
1667
|
const a = state0.a;
|
|
1303
1668
|
state0.a = 0;
|
|
1304
1669
|
try {
|
|
1305
|
-
return
|
|
1670
|
+
return wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1306
1671
|
} finally {
|
|
1307
1672
|
state0.a = a;
|
|
1308
1673
|
}
|
|
@@ -1313,7 +1678,7 @@ function __wbg_get_imports() {
|
|
|
1313
1678
|
state0.a = 0;
|
|
1314
1679
|
}
|
|
1315
1680
|
},
|
|
1316
|
-
|
|
1681
|
+
__wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
|
|
1317
1682
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1318
1683
|
return ret;
|
|
1319
1684
|
},
|
|
@@ -1321,30 +1686,26 @@ function __wbg_get_imports() {
|
|
|
1321
1686
|
const ret = new ReadableStream(IntoUnderlyingByteSource.__wrap(arg0));
|
|
1322
1687
|
return ret;
|
|
1323
1688
|
}, arguments); },
|
|
1324
|
-
|
|
1689
|
+
__wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
|
|
1325
1690
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1326
1691
|
return ret;
|
|
1327
1692
|
},
|
|
1328
|
-
|
|
1693
|
+
__wbg_new_with_options_5b1cc213336d0b4c: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1329
1694
|
const ret = new WebTransport(getStringFromWasm0(arg0, arg1), arg2);
|
|
1330
1695
|
return ret;
|
|
1331
1696
|
}, arguments); },
|
|
1332
|
-
|
|
1697
|
+
__wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1333
1698
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1334
1699
|
return ret;
|
|
1335
1700
|
}, arguments); },
|
|
1336
|
-
|
|
1337
|
-
const ret = arg0.next();
|
|
1338
|
-
return ret;
|
|
1339
|
-
}, arguments); },
|
|
1340
|
-
__wbg_next_402fa10b59ab20c3: function(arg0) {
|
|
1701
|
+
__wbg_next_6dbf2c0ac8cde20f: function(arg0) {
|
|
1341
1702
|
const ret = arg0.next;
|
|
1342
1703
|
return ret;
|
|
1343
1704
|
},
|
|
1344
|
-
|
|
1345
|
-
const ret = arg0.
|
|
1705
|
+
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
1706
|
+
const ret = arg0.next();
|
|
1346
1707
|
return ret;
|
|
1347
|
-
},
|
|
1708
|
+
}, arguments); },
|
|
1348
1709
|
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1349
1710
|
const ret = arg0.now();
|
|
1350
1711
|
return ret;
|
|
@@ -1361,54 +1722,43 @@ function __wbg_get_imports() {
|
|
|
1361
1722
|
const ret = PinnedObject.__wrap(arg0);
|
|
1362
1723
|
return ret;
|
|
1363
1724
|
},
|
|
1364
|
-
|
|
1365
|
-
const ret = arg0.process;
|
|
1366
|
-
return ret;
|
|
1367
|
-
},
|
|
1368
|
-
__wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
|
|
1725
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
1369
1726
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1370
1727
|
},
|
|
1371
|
-
|
|
1728
|
+
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
1372
1729
|
const ret = arg0.queueMicrotask;
|
|
1373
1730
|
return ret;
|
|
1374
1731
|
},
|
|
1375
|
-
|
|
1732
|
+
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
1376
1733
|
queueMicrotask(arg0);
|
|
1377
1734
|
},
|
|
1378
|
-
|
|
1379
|
-
arg0.
|
|
1380
|
-
}, arguments); },
|
|
1381
|
-
__wbg_read_7752b1106a69b9c5: function(arg0, arg1) {
|
|
1382
|
-
const ret = arg0.read(arg1);
|
|
1735
|
+
__wbg_read_8afa15f12a160ef8: function(arg0) {
|
|
1736
|
+
const ret = arg0.read();
|
|
1383
1737
|
return ret;
|
|
1384
1738
|
},
|
|
1385
|
-
|
|
1386
|
-
const ret = arg0.read();
|
|
1739
|
+
__wbg_read_c962767feecc5390: function(arg0, arg1) {
|
|
1740
|
+
const ret = arg0.read(arg1);
|
|
1387
1741
|
return ret;
|
|
1388
1742
|
},
|
|
1389
|
-
|
|
1743
|
+
__wbg_readable_41ceb106ca6ebcbe: function(arg0) {
|
|
1390
1744
|
const ret = arg0.readable;
|
|
1391
1745
|
return ret;
|
|
1392
1746
|
},
|
|
1393
|
-
|
|
1747
|
+
__wbg_ready_e4dad560377c42e6: function(arg0) {
|
|
1394
1748
|
const ret = arg0.ready;
|
|
1395
1749
|
return ret;
|
|
1396
1750
|
},
|
|
1397
|
-
|
|
1751
|
+
__wbg_releaseLock_5b92874cad775644: function(arg0) {
|
|
1398
1752
|
arg0.releaseLock();
|
|
1399
1753
|
},
|
|
1400
|
-
|
|
1754
|
+
__wbg_releaseLock_d4ee71bd7fe2a3bc: function(arg0) {
|
|
1401
1755
|
arg0.releaseLock();
|
|
1402
1756
|
},
|
|
1403
|
-
|
|
1404
|
-
const ret = module.require;
|
|
1405
|
-
return ret;
|
|
1406
|
-
}, arguments); },
|
|
1407
|
-
__wbg_resolve_d82363d90af6928a: function(arg0) {
|
|
1757
|
+
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
1408
1758
|
const ret = Promise.resolve(arg0);
|
|
1409
1759
|
return ret;
|
|
1410
1760
|
},
|
|
1411
|
-
|
|
1761
|
+
__wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
|
|
1412
1762
|
arg0.respond(arg1 >>> 0);
|
|
1413
1763
|
}, arguments); },
|
|
1414
1764
|
__wbg_sdk_new: function(arg0) {
|
|
@@ -1419,40 +1769,48 @@ function __wbg_get_imports() {
|
|
|
1419
1769
|
const ret = setTimeout(arg0, arg1);
|
|
1420
1770
|
return ret;
|
|
1421
1771
|
},
|
|
1422
|
-
|
|
1772
|
+
__wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
|
|
1423
1773
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1424
1774
|
},
|
|
1425
1775
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1426
1776
|
arg0[arg1] = arg2;
|
|
1427
1777
|
},
|
|
1428
|
-
|
|
1778
|
+
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
1779
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1780
|
+
},
|
|
1781
|
+
__wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
|
|
1429
1782
|
arg0.body = arg1;
|
|
1430
1783
|
},
|
|
1431
|
-
|
|
1784
|
+
__wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
|
|
1432
1785
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1433
1786
|
},
|
|
1434
|
-
|
|
1787
|
+
__wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
|
|
1435
1788
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1436
1789
|
},
|
|
1437
|
-
|
|
1438
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1439
|
-
},
|
|
1440
|
-
__wbg_set_headers_6751c09a8e579ff7: function(arg0, arg1) {
|
|
1790
|
+
__wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
|
|
1441
1791
|
arg0.headers = arg1;
|
|
1442
1792
|
},
|
|
1443
|
-
|
|
1793
|
+
__wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
|
|
1444
1794
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1445
1795
|
},
|
|
1446
|
-
|
|
1447
|
-
arg0.mode = __wbindgen_enum_ReadableStreamReaderMode[arg1];
|
|
1448
|
-
},
|
|
1449
|
-
__wbg_set_mode_e41f820af904cdaa: function(arg0, arg1) {
|
|
1796
|
+
__wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
|
|
1450
1797
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1451
1798
|
},
|
|
1452
|
-
|
|
1799
|
+
__wbg_set_mode_f6bfb5131426e6b5: function(arg0, arg1) {
|
|
1800
|
+
arg0.mode = __wbindgen_enum_ReadableStreamReaderMode[arg1];
|
|
1801
|
+
},
|
|
1802
|
+
__wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
|
|
1453
1803
|
arg0.signal = arg1;
|
|
1454
1804
|
},
|
|
1455
|
-
|
|
1805
|
+
__wbg_sharedsdk_new: function(arg0) {
|
|
1806
|
+
const ret = SharedSdk.__wrap(arg0);
|
|
1807
|
+
return ret;
|
|
1808
|
+
},
|
|
1809
|
+
__wbg_sharingkey_new: function(arg0) {
|
|
1810
|
+
const ret = SharingKey.__wrap(arg0);
|
|
1811
|
+
return ret;
|
|
1812
|
+
},
|
|
1813
|
+
__wbg_signal_dad7cb35193abd31: function(arg0) {
|
|
1456
1814
|
const ret = arg0.signal;
|
|
1457
1815
|
return ret;
|
|
1458
1816
|
},
|
|
@@ -1463,109 +1821,105 @@ function __wbg_get_imports() {
|
|
|
1463
1821
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1464
1822
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1465
1823
|
},
|
|
1466
|
-
|
|
1467
|
-
const ret = typeof
|
|
1824
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
1825
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1468
1826
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1469
1827
|
},
|
|
1470
|
-
|
|
1471
|
-
const ret = typeof
|
|
1828
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
1829
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1472
1830
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1473
1831
|
},
|
|
1474
|
-
|
|
1832
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
1475
1833
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1476
1834
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1477
1835
|
},
|
|
1478
|
-
|
|
1836
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
1479
1837
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1480
1838
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1481
1839
|
},
|
|
1482
|
-
|
|
1840
|
+
__wbg_status_c45b3b9b3033184a: function(arg0) {
|
|
1483
1841
|
const ret = arg0.status;
|
|
1484
1842
|
return ret;
|
|
1485
1843
|
},
|
|
1486
|
-
|
|
1844
|
+
__wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
|
|
1487
1845
|
const ret = JSON.stringify(arg0);
|
|
1488
1846
|
return ret;
|
|
1489
1847
|
}, arguments); },
|
|
1490
|
-
|
|
1848
|
+
__wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
|
|
1491
1849
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1492
1850
|
return ret;
|
|
1493
1851
|
},
|
|
1494
|
-
|
|
1852
|
+
__wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
|
|
1495
1853
|
const ret = arg0.text();
|
|
1496
1854
|
return ret;
|
|
1497
1855
|
}, arguments); },
|
|
1498
|
-
|
|
1856
|
+
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
1499
1857
|
const ret = arg0.then(arg1, arg2);
|
|
1500
1858
|
return ret;
|
|
1501
1859
|
},
|
|
1502
|
-
|
|
1860
|
+
__wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
|
|
1503
1861
|
const ret = arg0.then(arg1);
|
|
1504
1862
|
return ret;
|
|
1505
1863
|
},
|
|
1506
|
-
|
|
1864
|
+
__wbg_toString_b201c2690bbe445a: function(arg0) {
|
|
1507
1865
|
const ret = arg0.toString();
|
|
1508
1866
|
return ret;
|
|
1509
1867
|
},
|
|
1510
|
-
|
|
1868
|
+
__wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
|
|
1511
1869
|
const ret = arg1.url;
|
|
1512
1870
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1513
1871
|
const len1 = WASM_VECTOR_LEN;
|
|
1514
1872
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1515
1873
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1516
1874
|
},
|
|
1517
|
-
|
|
1875
|
+
__wbg_value_707a9727a4e0b640: function(arg0) {
|
|
1518
1876
|
const ret = arg0.value;
|
|
1519
1877
|
return ret;
|
|
1520
1878
|
},
|
|
1521
|
-
|
|
1879
|
+
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
1522
1880
|
const ret = arg0.value;
|
|
1523
1881
|
return ret;
|
|
1524
1882
|
},
|
|
1525
|
-
|
|
1526
|
-
const ret = arg0.versions;
|
|
1527
|
-
return ret;
|
|
1528
|
-
},
|
|
1529
|
-
__wbg_view_b959961c99705680: function(arg0) {
|
|
1883
|
+
__wbg_view_21f1d4a4f175dfa9: function(arg0) {
|
|
1530
1884
|
const ret = arg0.view;
|
|
1531
1885
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1532
1886
|
},
|
|
1533
|
-
|
|
1887
|
+
__wbg_writable_c905da49f8095567: function(arg0) {
|
|
1534
1888
|
const ret = arg0.writable;
|
|
1535
1889
|
return ret;
|
|
1536
1890
|
},
|
|
1537
|
-
|
|
1891
|
+
__wbg_write_f6dc0059c3feedce: function(arg0, arg1) {
|
|
1538
1892
|
const ret = arg0.write(arg1);
|
|
1539
1893
|
return ret;
|
|
1540
1894
|
},
|
|
1541
1895
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1542
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1543
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1896
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1057, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1897
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_);
|
|
1544
1898
|
return ret;
|
|
1545
1899
|
},
|
|
1546
1900
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1547
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1548
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1901
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 524, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1902
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue______true_);
|
|
1549
1903
|
return ret;
|
|
1550
1904
|
},
|
|
1551
1905
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1552
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1553
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1906
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 580, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1907
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_);
|
|
1554
1908
|
return ret;
|
|
1555
1909
|
},
|
|
1556
1910
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1557
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WebTransportBidirectionalStream")], shim_idx:
|
|
1558
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1911
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WebTransportBidirectionalStream")], shim_idx: 580, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1912
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__3);
|
|
1559
1913
|
return ret;
|
|
1560
1914
|
},
|
|
1561
1915
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1562
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
1563
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1916
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 580, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1917
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__4);
|
|
1564
1918
|
return ret;
|
|
1565
1919
|
},
|
|
1566
1920
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1567
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1568
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1921
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 869, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1922
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke_______true_);
|
|
1569
1923
|
return ret;
|
|
1570
1924
|
},
|
|
1571
1925
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -1574,20 +1928,22 @@ function __wbg_get_imports() {
|
|
|
1574
1928
|
return ret;
|
|
1575
1929
|
},
|
|
1576
1930
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1577
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1578
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1579
|
-
return ret;
|
|
1580
|
-
},
|
|
1581
|
-
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
1582
1931
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1583
1932
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1584
1933
|
return ret;
|
|
1585
1934
|
},
|
|
1586
|
-
|
|
1935
|
+
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
1587
1936
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1588
1937
|
const ret = BigInt.asUintN(64, arg0);
|
|
1589
1938
|
return ret;
|
|
1590
1939
|
},
|
|
1940
|
+
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
1941
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1942
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
1943
|
+
// Cast intrinsic for `Vector(NamedExternref("KeyRecord")) -> Externref`.
|
|
1944
|
+
const ret = v0;
|
|
1945
|
+
return ret;
|
|
1946
|
+
},
|
|
1591
1947
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
1592
1948
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
1593
1949
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -1618,44 +1974,44 @@ function __wbg_get_imports() {
|
|
|
1618
1974
|
};
|
|
1619
1975
|
}
|
|
1620
1976
|
|
|
1621
|
-
function
|
|
1622
|
-
wasm.
|
|
1977
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1978
|
+
wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1623
1979
|
}
|
|
1624
1980
|
|
|
1625
|
-
function
|
|
1626
|
-
wasm.
|
|
1981
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue______true_(arg0, arg1, arg2) {
|
|
1982
|
+
wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue______true_(arg0, arg1, arg2);
|
|
1627
1983
|
}
|
|
1628
1984
|
|
|
1629
|
-
function
|
|
1630
|
-
const ret = wasm.
|
|
1985
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_(arg0, arg1, arg2) {
|
|
1986
|
+
const ret = wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_(arg0, arg1, arg2);
|
|
1631
1987
|
if (ret[1]) {
|
|
1632
1988
|
throw takeFromExternrefTable0(ret[0]);
|
|
1633
1989
|
}
|
|
1634
1990
|
}
|
|
1635
1991
|
|
|
1636
|
-
function
|
|
1637
|
-
const ret = wasm.
|
|
1992
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_(arg0, arg1, arg2) {
|
|
1993
|
+
const ret = wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true_(arg0, arg1, arg2);
|
|
1638
1994
|
if (ret[1]) {
|
|
1639
1995
|
throw takeFromExternrefTable0(ret[0]);
|
|
1640
1996
|
}
|
|
1641
1997
|
}
|
|
1642
1998
|
|
|
1643
|
-
function
|
|
1644
|
-
const ret = wasm.
|
|
1999
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__3(arg0, arg1, arg2) {
|
|
2000
|
+
const ret = wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__3(arg0, arg1, arg2);
|
|
1645
2001
|
if (ret[1]) {
|
|
1646
2002
|
throw takeFromExternrefTable0(ret[0]);
|
|
1647
2003
|
}
|
|
1648
2004
|
}
|
|
1649
2005
|
|
|
1650
|
-
function
|
|
1651
|
-
const ret = wasm.
|
|
2006
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__4(arg0, arg1, arg2) {
|
|
2007
|
+
const ret = wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_baa1b51bcdcd1a91___JsError___true__4(arg0, arg1, arg2);
|
|
1652
2008
|
if (ret[1]) {
|
|
1653
2009
|
throw takeFromExternrefTable0(ret[0]);
|
|
1654
2010
|
}
|
|
1655
2011
|
}
|
|
1656
2012
|
|
|
1657
|
-
function
|
|
1658
|
-
wasm.
|
|
2013
|
+
function wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
2014
|
+
wasm.wasm_bindgen_baa1b51bcdcd1a91___convert__closures_____invoke___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined___js_sys_bdd470c3fe1f6d69___Function_fn_wasm_bindgen_baa1b51bcdcd1a91___JsValue_____wasm_bindgen_baa1b51bcdcd1a91___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1659
2015
|
}
|
|
1660
2016
|
|
|
1661
2017
|
|
|
@@ -1687,6 +2043,9 @@ const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
1687
2043
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1688
2044
|
? { register: () => {}, unregister: () => {} }
|
|
1689
2045
|
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
2046
|
+
const KeyRecordFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2047
|
+
? { register: () => {}, unregister: () => {} }
|
|
2048
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keyrecord_free(ptr, 1));
|
|
1690
2049
|
const ObjectEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1691
2050
|
? { register: () => {}, unregister: () => {} }
|
|
1692
2051
|
: new FinalizationRegistry(ptr => wasm.__wbg_objectevent_free(ptr, 1));
|
|
@@ -1699,6 +2058,12 @@ const PinnedObjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
1699
2058
|
const SdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1700
2059
|
? { register: () => {}, unregister: () => {} }
|
|
1701
2060
|
: new FinalizationRegistry(ptr => wasm.__wbg_sdk_free(ptr, 1));
|
|
2061
|
+
const SharedSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2062
|
+
? { register: () => {}, unregister: () => {} }
|
|
2063
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sharedsdk_free(ptr, 1));
|
|
2064
|
+
const SharingKeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2065
|
+
? { register: () => {}, unregister: () => {} }
|
|
2066
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sharingkey_free(ptr, 1));
|
|
1702
2067
|
|
|
1703
2068
|
function addToExternrefTable0(obj) {
|
|
1704
2069
|
const idx = wasm.__externref_table_alloc();
|