@learncard/didkit-plugin 1.4.4 → 1.4.6

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.
@@ -1,8 +1,17 @@
1
1
  let wasm;
2
2
 
3
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
4
-
5
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
3
+ const cachedTextDecoder =
4
+ typeof TextDecoder !== 'undefined'
5
+ ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true })
6
+ : {
7
+ decode: () => {
8
+ throw Error('TextDecoder not available');
9
+ },
10
+ };
11
+
12
+ if (typeof TextDecoder !== 'undefined') {
13
+ cachedTextDecoder.decode();
14
+ }
6
15
 
7
16
  let cachedUint8Memory0 = null;
8
17
 
@@ -33,7 +42,9 @@ function addHeapObject(obj) {
33
42
  return idx;
34
43
  }
35
44
 
36
- function getObject(idx) { return heap[idx]; }
45
+ function getObject(idx) {
46
+ return heap[idx];
47
+ }
37
48
 
38
49
  function dropObject(idx) {
39
50
  if (idx < 132) return;
@@ -49,27 +60,36 @@ function takeObject(idx) {
49
60
 
50
61
  let WASM_VECTOR_LEN = 0;
51
62
 
52
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
53
-
54
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
55
- ? function (arg, view) {
56
- return cachedTextEncoder.encodeInto(arg, view);
57
- }
58
- : function (arg, view) {
59
- const buf = cachedTextEncoder.encode(arg);
60
- view.set(buf);
61
- return {
62
- read: arg.length,
63
- written: buf.length
64
- };
65
- });
63
+ const cachedTextEncoder =
64
+ typeof TextEncoder !== 'undefined'
65
+ ? new TextEncoder('utf-8')
66
+ : {
67
+ encode: () => {
68
+ throw Error('TextEncoder not available');
69
+ },
70
+ };
71
+
72
+ const encodeString =
73
+ typeof cachedTextEncoder.encodeInto === 'function'
74
+ ? function (arg, view) {
75
+ return cachedTextEncoder.encodeInto(arg, view);
76
+ }
77
+ : function (arg, view) {
78
+ const buf = cachedTextEncoder.encode(arg);
79
+ view.set(buf);
80
+ return {
81
+ read: arg.length,
82
+ written: buf.length,
83
+ };
84
+ };
66
85
 
67
86
  function passStringToWasm0(arg, malloc, realloc) {
68
-
69
87
  if (realloc === undefined) {
70
88
  const buf = cachedTextEncoder.encode(arg);
71
89
  const ptr = malloc(buf.length, 1) >>> 0;
72
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
90
+ getUint8Memory0()
91
+ .subarray(ptr, ptr + buf.length)
92
+ .set(buf);
73
93
  WASM_VECTOR_LEN = buf.length;
74
94
  return ptr;
75
95
  }
@@ -83,7 +103,7 @@ function passStringToWasm0(arg, malloc, realloc) {
83
103
 
84
104
  for (; offset < len; offset++) {
85
105
  const code = arg.charCodeAt(offset);
86
- if (code > 0x7F) break;
106
+ if (code > 0x7f) break;
87
107
  mem[ptr + offset] = code;
88
108
  }
89
109
 
@@ -91,7 +111,7 @@ function passStringToWasm0(arg, malloc, realloc) {
91
111
  if (offset !== 0) {
92
112
  arg = arg.slice(offset);
93
113
  }
94
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
114
+ ptr = realloc(ptr, len, (len = offset + arg.length * 3), 1) >>> 0;
95
115
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
96
116
  const ret = encodeString(arg, view);
97
117
 
@@ -119,7 +139,7 @@ function debugString(val) {
119
139
  // primitive types
120
140
  const type = typeof val;
121
141
  if (type == 'number' || type == 'boolean' || val == null) {
122
- return `${val}`;
142
+ return `${val}`;
123
143
  }
124
144
  if (type == 'string') {
125
145
  return `"${val}"`;
@@ -147,7 +167,7 @@ function debugString(val) {
147
167
  if (length > 0) {
148
168
  debug += debugString(val[0]);
149
169
  }
150
- for(let i = 1; i < length; i++) {
170
+ for (let i = 1; i < length; i++) {
151
171
  debug += ', ' + debugString(val[i]);
152
172
  }
153
173
  debug += ']';
@@ -194,7 +214,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
194
214
  } finally {
195
215
  if (--state.cnt === 0) {
196
216
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
197
-
198
217
  } else {
199
218
  state.a = a;
200
219
  }
@@ -205,12 +224,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
205
224
  return real;
206
225
  }
207
226
  function __wbg_adapter_26(arg0, arg1, arg2) {
208
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae32635367f5810e(arg0, arg1, addHeapObject(arg2));
227
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae32635367f5810e(
228
+ arg0,
229
+ arg1,
230
+ addHeapObject(arg2)
231
+ );
209
232
  }
210
233
 
211
234
  /**
212
- * @returns {string}
213
- */
235
+ * @returns {string}
236
+ */
214
237
  export function getVersion() {
215
238
  let deferred1_0;
216
239
  let deferred1_1;
@@ -229,10 +252,10 @@ export function getVersion() {
229
252
  }
230
253
 
231
254
  /**
232
- * @param {string} did
233
- * @param {string} input_metadata
234
- * @returns {Promise<any>}
235
- */
255
+ * @param {string} did
256
+ * @param {string} input_metadata
257
+ * @returns {Promise<any>}
258
+ */
236
259
  export function didResolver(did, input_metadata) {
237
260
  const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
261
  const len0 = WASM_VECTOR_LEN;
@@ -243,10 +266,10 @@ export function didResolver(did, input_metadata) {
243
266
  }
244
267
 
245
268
  /**
246
- * @param {string} did
247
- * @param {string} input_metadata
248
- * @returns {Promise<any>}
249
- */
269
+ * @param {string} did
270
+ * @param {string} input_metadata
271
+ * @returns {Promise<any>}
272
+ */
250
273
  export function resolveDID(did, input_metadata) {
251
274
  const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
252
275
  const len0 = WASM_VECTOR_LEN;
@@ -257,8 +280,8 @@ export function resolveDID(did, input_metadata) {
257
280
  }
258
281
 
259
282
  /**
260
- * @returns {string}
261
- */
283
+ * @returns {string}
284
+ */
262
285
  export function generateEd25519Key() {
263
286
  let deferred2_0;
264
287
  let deferred2_1;
@@ -272,7 +295,8 @@ export function generateEd25519Key() {
272
295
  var ptr1 = r0;
273
296
  var len1 = r1;
274
297
  if (r3) {
275
- ptr1 = 0; len1 = 0;
298
+ ptr1 = 0;
299
+ len1 = 0;
276
300
  throw takeObject(r2);
277
301
  }
278
302
  deferred2_0 = ptr1;
@@ -291,9 +315,9 @@ function passArray8ToWasm0(arg, malloc) {
291
315
  return ptr;
292
316
  }
293
317
  /**
294
- * @param {Uint8Array} bytes
295
- * @returns {string}
296
- */
318
+ * @param {Uint8Array} bytes
319
+ * @returns {string}
320
+ */
297
321
  export function generateEd25519KeyFromBytes(bytes) {
298
322
  let deferred3_0;
299
323
  let deferred3_1;
@@ -309,7 +333,8 @@ export function generateEd25519KeyFromBytes(bytes) {
309
333
  var ptr2 = r0;
310
334
  var len2 = r1;
311
335
  if (r3) {
312
- ptr2 = 0; len2 = 0;
336
+ ptr2 = 0;
337
+ len2 = 0;
313
338
  throw takeObject(r2);
314
339
  }
315
340
  deferred3_0 = ptr2;
@@ -322,8 +347,8 @@ export function generateEd25519KeyFromBytes(bytes) {
322
347
  }
323
348
 
324
349
  /**
325
- * @returns {string}
326
- */
350
+ * @returns {string}
351
+ */
327
352
  export function generateSecp256k1Key() {
328
353
  let deferred2_0;
329
354
  let deferred2_1;
@@ -337,7 +362,8 @@ export function generateSecp256k1Key() {
337
362
  var ptr1 = r0;
338
363
  var len1 = r1;
339
364
  if (r3) {
340
- ptr1 = 0; len1 = 0;
365
+ ptr1 = 0;
366
+ len1 = 0;
341
367
  throw takeObject(r2);
342
368
  }
343
369
  deferred2_0 = ptr1;
@@ -350,9 +376,9 @@ export function generateSecp256k1Key() {
350
376
  }
351
377
 
352
378
  /**
353
- * @param {Uint8Array} bytes
354
- * @returns {string}
355
- */
379
+ * @param {Uint8Array} bytes
380
+ * @returns {string}
381
+ */
356
382
  export function generateSecp256k1KeyFromBytes(bytes) {
357
383
  let deferred3_0;
358
384
  let deferred3_1;
@@ -368,7 +394,8 @@ export function generateSecp256k1KeyFromBytes(bytes) {
368
394
  var ptr2 = r0;
369
395
  var len2 = r1;
370
396
  if (r3) {
371
- ptr2 = 0; len2 = 0;
397
+ ptr2 = 0;
398
+ len2 = 0;
372
399
  throw takeObject(r2);
373
400
  }
374
401
  deferred3_0 = ptr2;
@@ -381,16 +408,20 @@ export function generateSecp256k1KeyFromBytes(bytes) {
381
408
  }
382
409
 
383
410
  /**
384
- * @param {string} method_pattern
385
- * @param {string} jwk
386
- * @returns {string}
387
- */
411
+ * @param {string} method_pattern
412
+ * @param {string} jwk
413
+ * @returns {string}
414
+ */
388
415
  export function keyToDID(method_pattern, jwk) {
389
416
  let deferred4_0;
390
417
  let deferred4_1;
391
418
  try {
392
419
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
393
- const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
420
+ const ptr0 = passStringToWasm0(
421
+ method_pattern,
422
+ wasm.__wbindgen_malloc,
423
+ wasm.__wbindgen_realloc
424
+ );
394
425
  const len0 = WASM_VECTOR_LEN;
395
426
  const ptr1 = passStringToWasm0(jwk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
427
  const len1 = WASM_VECTOR_LEN;
@@ -402,7 +433,8 @@ export function keyToDID(method_pattern, jwk) {
402
433
  var ptr3 = r0;
403
434
  var len3 = r1;
404
435
  if (r3) {
405
- ptr3 = 0; len3 = 0;
436
+ ptr3 = 0;
437
+ len3 = 0;
406
438
  throw takeObject(r2);
407
439
  }
408
440
  deferred4_0 = ptr3;
@@ -415,10 +447,10 @@ export function keyToDID(method_pattern, jwk) {
415
447
  }
416
448
 
417
449
  /**
418
- * @param {string} method_pattern
419
- * @param {string} jwk
420
- * @returns {Promise<any>}
421
- */
450
+ * @param {string} method_pattern
451
+ * @param {string} jwk
452
+ * @returns {Promise<any>}
453
+ */
422
454
  export function keyToVerificationMethod(method_pattern, jwk) {
423
455
  const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
424
456
  const len0 = WASM_VECTOR_LEN;
@@ -429,9 +461,9 @@ export function keyToVerificationMethod(method_pattern, jwk) {
429
461
  }
430
462
 
431
463
  /**
432
- * @param {string} did
433
- * @returns {Promise<any>}
434
- */
464
+ * @param {string} did
465
+ * @returns {Promise<any>}
466
+ */
435
467
  export function didToVerificationMethod(did) {
436
468
  const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
437
469
  const len0 = WASM_VECTOR_LEN;
@@ -440,12 +472,12 @@ export function didToVerificationMethod(did) {
440
472
  }
441
473
 
442
474
  /**
443
- * @param {string} credential
444
- * @param {string} proof_options
445
- * @param {string} key
446
- * @param {string} context_map
447
- * @returns {Promise<any>}
448
- */
475
+ * @param {string} credential
476
+ * @param {string} proof_options
477
+ * @param {string} key
478
+ * @param {string} context_map
479
+ * @returns {Promise<any>}
480
+ */
449
481
  export function issueCredential(credential, proof_options, key, context_map) {
450
482
  const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
483
  const len0 = WASM_VECTOR_LEN;
@@ -460,15 +492,19 @@ export function issueCredential(credential, proof_options, key, context_map) {
460
492
  }
461
493
 
462
494
  /**
463
- * @param {string} credential
464
- * @param {string} linked_data_proof_options
465
- * @param {string} public_key
466
- * @returns {Promise<any>}
467
- */
495
+ * @param {string} credential
496
+ * @param {string} linked_data_proof_options
497
+ * @param {string} public_key
498
+ * @returns {Promise<any>}
499
+ */
468
500
  export function prepareIssueCredential(credential, linked_data_proof_options, public_key) {
469
501
  const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
470
502
  const len0 = WASM_VECTOR_LEN;
471
- const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
503
+ const ptr1 = passStringToWasm0(
504
+ linked_data_proof_options,
505
+ wasm.__wbindgen_malloc,
506
+ wasm.__wbindgen_realloc
507
+ );
472
508
  const len1 = WASM_VECTOR_LEN;
473
509
  const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
474
510
  const len2 = WASM_VECTOR_LEN;
@@ -477,11 +513,11 @@ export function prepareIssueCredential(credential, linked_data_proof_options, pu
477
513
  }
478
514
 
479
515
  /**
480
- * @param {string} credential
481
- * @param {string} preparation
482
- * @param {string} signature
483
- * @returns {Promise<any>}
484
- */
516
+ * @param {string} credential
517
+ * @param {string} preparation
518
+ * @param {string} signature
519
+ * @returns {Promise<any>}
520
+ */
485
521
  export function completeIssueCredential(credential, preparation, signature) {
486
522
  const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
523
  const len0 = WASM_VECTOR_LEN;
@@ -494,11 +530,11 @@ export function completeIssueCredential(credential, preparation, signature) {
494
530
  }
495
531
 
496
532
  /**
497
- * @param {string} vc
498
- * @param {string} proof_options
499
- * @param {string} context_map
500
- * @returns {Promise<any>}
501
- */
533
+ * @param {string} vc
534
+ * @param {string} proof_options
535
+ * @param {string} context_map
536
+ * @returns {Promise<any>}
537
+ */
502
538
  export function verifyCredential(vc, proof_options, context_map) {
503
539
  const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
504
540
  const len0 = WASM_VECTOR_LEN;
@@ -511,12 +547,12 @@ export function verifyCredential(vc, proof_options, context_map) {
511
547
  }
512
548
 
513
549
  /**
514
- * @param {string} presentation
515
- * @param {string} proof_options
516
- * @param {string} key
517
- * @param {string} context_map
518
- * @returns {Promise<any>}
519
- */
550
+ * @param {string} presentation
551
+ * @param {string} proof_options
552
+ * @param {string} key
553
+ * @param {string} context_map
554
+ * @returns {Promise<any>}
555
+ */
520
556
  export function issuePresentation(presentation, proof_options, key, context_map) {
521
557
  const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
522
558
  const len0 = WASM_VECTOR_LEN;
@@ -531,15 +567,19 @@ export function issuePresentation(presentation, proof_options, key, context_map)
531
567
  }
532
568
 
533
569
  /**
534
- * @param {string} presentation
535
- * @param {string} linked_data_proof_options
536
- * @param {string} public_key
537
- * @returns {Promise<any>}
538
- */
570
+ * @param {string} presentation
571
+ * @param {string} linked_data_proof_options
572
+ * @param {string} public_key
573
+ * @returns {Promise<any>}
574
+ */
539
575
  export function prepareIssuePresentation(presentation, linked_data_proof_options, public_key) {
540
576
  const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
541
577
  const len0 = WASM_VECTOR_LEN;
542
- const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
578
+ const ptr1 = passStringToWasm0(
579
+ linked_data_proof_options,
580
+ wasm.__wbindgen_malloc,
581
+ wasm.__wbindgen_realloc
582
+ );
543
583
  const len1 = WASM_VECTOR_LEN;
544
584
  const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
545
585
  const len2 = WASM_VECTOR_LEN;
@@ -548,11 +588,11 @@ export function prepareIssuePresentation(presentation, linked_data_proof_options
548
588
  }
549
589
 
550
590
  /**
551
- * @param {string} presentation
552
- * @param {string} preparation
553
- * @param {string} signature
554
- * @returns {Promise<any>}
555
- */
591
+ * @param {string} presentation
592
+ * @param {string} preparation
593
+ * @param {string} signature
594
+ * @returns {Promise<any>}
595
+ */
556
596
  export function completeIssuePresentation(presentation, preparation, signature) {
557
597
  const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
558
598
  const len0 = WASM_VECTOR_LEN;
@@ -565,11 +605,11 @@ export function completeIssuePresentation(presentation, preparation, signature)
565
605
  }
566
606
 
567
607
  /**
568
- * @param {string} vp
569
- * @param {string} proof_options
570
- * @param {string} context_map
571
- * @returns {Promise<any>}
572
- */
608
+ * @param {string} vp
609
+ * @param {string} proof_options
610
+ * @param {string} context_map
611
+ * @returns {Promise<any>}
612
+ */
573
613
  export function verifyPresentation(vp, proof_options, context_map) {
574
614
  const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
575
615
  const len0 = WASM_VECTOR_LEN;
@@ -582,16 +622,20 @@ export function verifyPresentation(vp, proof_options, context_map) {
582
622
  }
583
623
 
584
624
  /**
585
- * @param {string} holder
586
- * @param {string} linked_data_proof_options
587
- * @param {string} key
588
- * @param {string} context_map
589
- * @returns {Promise<any>}
590
- */
625
+ * @param {string} holder
626
+ * @param {string} linked_data_proof_options
627
+ * @param {string} key
628
+ * @param {string} context_map
629
+ * @returns {Promise<any>}
630
+ */
591
631
  export function DIDAuth(holder, linked_data_proof_options, key, context_map) {
592
632
  const ptr0 = passStringToWasm0(holder, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
593
633
  const len0 = WASM_VECTOR_LEN;
594
- const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
634
+ const ptr1 = passStringToWasm0(
635
+ linked_data_proof_options,
636
+ wasm.__wbindgen_malloc,
637
+ wasm.__wbindgen_realloc
638
+ );
595
639
  const len1 = WASM_VECTOR_LEN;
596
640
  const ptr2 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
597
641
  const len2 = WASM_VECTOR_LEN;
@@ -602,9 +646,9 @@ export function DIDAuth(holder, linked_data_proof_options, key, context_map) {
602
646
  }
603
647
 
604
648
  /**
605
- * @param {string} tz
606
- * @returns {Promise<any>}
607
- */
649
+ * @param {string} tz
650
+ * @returns {Promise<any>}
651
+ */
608
652
  export function JWKFromTezos(tz) {
609
653
  const ptr0 = passStringToWasm0(tz, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
610
654
  const len0 = WASM_VECTOR_LEN;
@@ -613,16 +657,20 @@ export function JWKFromTezos(tz) {
613
657
  }
614
658
 
615
659
  /**
616
- * @param {string} capability
617
- * @param {string} linked_data_proof_options
618
- * @param {string} parents
619
- * @param {string} key
620
- * @returns {Promise<any>}
621
- */
660
+ * @param {string} capability
661
+ * @param {string} linked_data_proof_options
662
+ * @param {string} parents
663
+ * @param {string} key
664
+ * @returns {Promise<any>}
665
+ */
622
666
  export function delegateCapability(capability, linked_data_proof_options, parents, key) {
623
667
  const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
624
668
  const len0 = WASM_VECTOR_LEN;
625
- const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
669
+ const ptr1 = passStringToWasm0(
670
+ linked_data_proof_options,
671
+ wasm.__wbindgen_malloc,
672
+ wasm.__wbindgen_realloc
673
+ );
626
674
  const len1 = WASM_VECTOR_LEN;
627
675
  const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
628
676
  const len2 = WASM_VECTOR_LEN;
@@ -633,16 +681,25 @@ export function delegateCapability(capability, linked_data_proof_options, parent
633
681
  }
634
682
 
635
683
  /**
636
- * @param {string} capability
637
- * @param {string} linked_data_proof_options
638
- * @param {string} parents
639
- * @param {string} public_key
640
- * @returns {Promise<any>}
641
- */
642
- export function prepareDelegateCapability(capability, linked_data_proof_options, parents, public_key) {
684
+ * @param {string} capability
685
+ * @param {string} linked_data_proof_options
686
+ * @param {string} parents
687
+ * @param {string} public_key
688
+ * @returns {Promise<any>}
689
+ */
690
+ export function prepareDelegateCapability(
691
+ capability,
692
+ linked_data_proof_options,
693
+ parents,
694
+ public_key
695
+ ) {
643
696
  const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
644
697
  const len0 = WASM_VECTOR_LEN;
645
- const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
698
+ const ptr1 = passStringToWasm0(
699
+ linked_data_proof_options,
700
+ wasm.__wbindgen_malloc,
701
+ wasm.__wbindgen_realloc
702
+ );
646
703
  const len1 = WASM_VECTOR_LEN;
647
704
  const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
648
705
  const len2 = WASM_VECTOR_LEN;
@@ -653,11 +710,11 @@ export function prepareDelegateCapability(capability, linked_data_proof_options,
653
710
  }
654
711
 
655
712
  /**
656
- * @param {string} capability
657
- * @param {string} preparation
658
- * @param {string} signature
659
- * @returns {Promise<any>}
660
- */
713
+ * @param {string} capability
714
+ * @param {string} preparation
715
+ * @param {string} signature
716
+ * @returns {Promise<any>}
717
+ */
661
718
  export function completeDelegateCapability(capability, preparation, signature) {
662
719
  const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
663
720
  const len0 = WASM_VECTOR_LEN;
@@ -670,9 +727,9 @@ export function completeDelegateCapability(capability, preparation, signature) {
670
727
  }
671
728
 
672
729
  /**
673
- * @param {string} delegation
674
- * @returns {Promise<any>}
675
- */
730
+ * @param {string} delegation
731
+ * @returns {Promise<any>}
732
+ */
676
733
  export function verifyDelegation(delegation) {
677
734
  const ptr0 = passStringToWasm0(delegation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
678
735
  const len0 = WASM_VECTOR_LEN;
@@ -681,18 +738,22 @@ export function verifyDelegation(delegation) {
681
738
  }
682
739
 
683
740
  /**
684
- * @param {string} invocation
685
- * @param {string} target_id
686
- * @param {string} linked_data_proof_options
687
- * @param {string} key
688
- * @returns {Promise<any>}
689
- */
741
+ * @param {string} invocation
742
+ * @param {string} target_id
743
+ * @param {string} linked_data_proof_options
744
+ * @param {string} key
745
+ * @returns {Promise<any>}
746
+ */
690
747
  export function invokeCapability(invocation, target_id, linked_data_proof_options, key) {
691
748
  const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
692
749
  const len0 = WASM_VECTOR_LEN;
693
750
  const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
694
751
  const len1 = WASM_VECTOR_LEN;
695
- const ptr2 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
752
+ const ptr2 = passStringToWasm0(
753
+ linked_data_proof_options,
754
+ wasm.__wbindgen_malloc,
755
+ wasm.__wbindgen_realloc
756
+ );
696
757
  const len2 = WASM_VECTOR_LEN;
697
758
  const ptr3 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
698
759
  const len3 = WASM_VECTOR_LEN;
@@ -701,18 +762,27 @@ export function invokeCapability(invocation, target_id, linked_data_proof_option
701
762
  }
702
763
 
703
764
  /**
704
- * @param {string} invocation
705
- * @param {string} target_id
706
- * @param {string} linked_data_proof_options
707
- * @param {string} public_key
708
- * @returns {Promise<any>}
709
- */
710
- export function prepareInvokeCapability(invocation, target_id, linked_data_proof_options, public_key) {
765
+ * @param {string} invocation
766
+ * @param {string} target_id
767
+ * @param {string} linked_data_proof_options
768
+ * @param {string} public_key
769
+ * @returns {Promise<any>}
770
+ */
771
+ export function prepareInvokeCapability(
772
+ invocation,
773
+ target_id,
774
+ linked_data_proof_options,
775
+ public_key
776
+ ) {
711
777
  const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
712
778
  const len0 = WASM_VECTOR_LEN;
713
779
  const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
714
780
  const len1 = WASM_VECTOR_LEN;
715
- const ptr2 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
781
+ const ptr2 = passStringToWasm0(
782
+ linked_data_proof_options,
783
+ wasm.__wbindgen_malloc,
784
+ wasm.__wbindgen_realloc
785
+ );
716
786
  const len2 = WASM_VECTOR_LEN;
717
787
  const ptr3 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
718
788
  const len3 = WASM_VECTOR_LEN;
@@ -721,11 +791,11 @@ export function prepareInvokeCapability(invocation, target_id, linked_data_proof
721
791
  }
722
792
 
723
793
  /**
724
- * @param {string} invocation
725
- * @param {string} preparation
726
- * @param {string} signature
727
- * @returns {Promise<any>}
728
- */
794
+ * @param {string} invocation
795
+ * @param {string} preparation
796
+ * @param {string} signature
797
+ * @returns {Promise<any>}
798
+ */
729
799
  export function completeInvokeCapability(invocation, preparation, signature) {
730
800
  const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
731
801
  const len0 = WASM_VECTOR_LEN;
@@ -738,9 +808,9 @@ export function completeInvokeCapability(invocation, preparation, signature) {
738
808
  }
739
809
 
740
810
  /**
741
- * @param {string} invocation
742
- * @returns {Promise<any>}
743
- */
811
+ * @param {string} invocation
812
+ * @returns {Promise<any>}
813
+ */
744
814
  export function verifyInvocationSignature(invocation) {
745
815
  const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
746
816
  const len0 = WASM_VECTOR_LEN;
@@ -749,10 +819,10 @@ export function verifyInvocationSignature(invocation) {
749
819
  }
750
820
 
751
821
  /**
752
- * @param {string} invocation
753
- * @param {string} delegation
754
- * @returns {Promise<any>}
755
- */
822
+ * @param {string} invocation
823
+ * @param {string} delegation
824
+ * @returns {Promise<any>}
825
+ */
756
826
  export function verifyInvocation(invocation, delegation) {
757
827
  const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
758
828
  const len0 = WASM_VECTOR_LEN;
@@ -763,9 +833,9 @@ export function verifyInvocation(invocation, delegation) {
763
833
  }
764
834
 
765
835
  /**
766
- * @param {string} url
767
- * @returns {Promise<any>}
768
- */
836
+ * @param {string} url
837
+ * @returns {Promise<any>}
838
+ */
769
839
  export function contextLoader(url) {
770
840
  const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
771
841
  const len0 = WASM_VECTOR_LEN;
@@ -786,7 +856,12 @@ function getArrayU8FromWasm0(ptr, len) {
786
856
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
787
857
  }
788
858
  function __wbg_adapter_139(arg0, arg1, arg2, arg3) {
789
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e6bc1a8c3634b3b(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
859
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e6bc1a8c3634b3b(
860
+ arg0,
861
+ arg1,
862
+ addHeapObject(arg2),
863
+ addHeapObject(arg3)
864
+ );
790
865
  }
791
866
 
792
867
  async function __wbg_load(module, imports) {
@@ -794,11 +869,12 @@ async function __wbg_load(module, imports) {
794
869
  if (typeof WebAssembly.instantiateStreaming === 'function') {
795
870
  try {
796
871
  return await WebAssembly.instantiateStreaming(module, imports);
797
-
798
872
  } catch (e) {
799
873
  if (module.headers.get('Content-Type') != 'application/wasm') {
800
- 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);
801
-
874
+ console.warn(
875
+ '`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',
876
+ e
877
+ );
802
878
  } else {
803
879
  throw e;
804
880
  }
@@ -807,13 +883,11 @@ async function __wbg_load(module, imports) {
807
883
 
808
884
  const bytes = await module.arrayBuffer();
809
885
  return await WebAssembly.instantiate(bytes, imports);
810
-
811
886
  } else {
812
887
  const instance = await WebAssembly.instantiate(module, imports);
813
888
 
814
889
  if (instance instanceof WebAssembly.Instance) {
815
890
  return { instance, module };
816
-
817
891
  } else {
818
892
  return instance;
819
893
  }
@@ -823,14 +897,14 @@ async function __wbg_load(module, imports) {
823
897
  function __wbg_get_imports() {
824
898
  const imports = {};
825
899
  imports.wbg = {};
826
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
900
+ imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
827
901
  const ret = getStringFromWasm0(arg0, arg1);
828
902
  return addHeapObject(ret);
829
903
  };
830
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
904
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
831
905
  takeObject(arg0);
832
906
  };
833
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
907
+ imports.wbg.__wbindgen_cb_drop = function (arg0) {
834
908
  const obj = takeObject(arg0).original;
835
909
  if (obj.cnt-- == 1) {
836
910
  obj.a = 0;
@@ -839,19 +913,19 @@ function __wbg_get_imports() {
839
913
  const ret = false;
840
914
  return ret;
841
915
  };
842
- imports.wbg.__wbg_fetch_57429b87be3dcc33 = function(arg0) {
916
+ imports.wbg.__wbg_fetch_57429b87be3dcc33 = function (arg0) {
843
917
  const ret = fetch(getObject(arg0));
844
918
  return addHeapObject(ret);
845
919
  };
846
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
920
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
847
921
  const ret = getObject(arg0);
848
922
  return addHeapObject(ret);
849
923
  };
850
- imports.wbg.__wbg_fetch_8eaf01857a5bb21f = function(arg0, arg1) {
924
+ imports.wbg.__wbg_fetch_8eaf01857a5bb21f = function (arg0, arg1) {
851
925
  const ret = getObject(arg0).fetch(getObject(arg1));
852
926
  return addHeapObject(ret);
853
927
  };
854
- imports.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced = function(arg0) {
928
+ imports.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced = function (arg0) {
855
929
  let result;
856
930
  try {
857
931
  result = getObject(arg0) instanceof Response;
@@ -861,203 +935,239 @@ function __wbg_get_imports() {
861
935
  const ret = result;
862
936
  return ret;
863
937
  };
864
- imports.wbg.__wbg_url_8503de97f69da463 = function(arg0, arg1) {
938
+ imports.wbg.__wbg_url_8503de97f69da463 = function (arg0, arg1) {
865
939
  const ret = getObject(arg1).url;
866
940
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
867
941
  const len1 = WASM_VECTOR_LEN;
868
942
  getInt32Memory0()[arg0 / 4 + 1] = len1;
869
943
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
870
944
  };
871
- imports.wbg.__wbg_status_ac85a3142a84caa2 = function(arg0) {
945
+ imports.wbg.__wbg_status_ac85a3142a84caa2 = function (arg0) {
872
946
  const ret = getObject(arg0).status;
873
947
  return ret;
874
948
  };
875
- imports.wbg.__wbg_headers_b70de86b8e989bc0 = function(arg0) {
949
+ imports.wbg.__wbg_headers_b70de86b8e989bc0 = function (arg0) {
876
950
  const ret = getObject(arg0).headers;
877
951
  return addHeapObject(ret);
878
952
  };
879
- imports.wbg.__wbg_arrayBuffer_288fb3538806e85c = function() { return handleError(function (arg0) {
880
- const ret = getObject(arg0).arrayBuffer();
881
- return addHeapObject(ret);
882
- }, arguments) };
883
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
953
+ imports.wbg.__wbg_arrayBuffer_288fb3538806e85c = function () {
954
+ return handleError(function (arg0) {
955
+ const ret = getObject(arg0).arrayBuffer();
956
+ return addHeapObject(ret);
957
+ }, arguments);
958
+ };
959
+ imports.wbg.__wbg_now_0cfdc90c97d0c24b = function (arg0) {
884
960
  const ret = getObject(arg0).now();
885
961
  return ret;
886
962
  };
887
- imports.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function() { return handleError(function (arg0, arg1, arg2) {
888
- const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
889
- return addHeapObject(ret);
890
- }, arguments) };
891
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
963
+ imports.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function () {
964
+ return handleError(function (arg0, arg1, arg2) {
965
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
966
+ return addHeapObject(ret);
967
+ }, arguments);
968
+ };
969
+ imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
892
970
  const obj = getObject(arg1);
893
- const ret = typeof(obj) === 'string' ? obj : undefined;
894
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
971
+ const ret = typeof obj === 'string' ? obj : undefined;
972
+ var ptr1 = isLikeNone(ret)
973
+ ? 0
974
+ : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
895
975
  var len1 = WASM_VECTOR_LEN;
896
976
  getInt32Memory0()[arg0 / 4 + 1] = len1;
897
977
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
898
978
  };
899
- imports.wbg.__wbg_signal_4bd18fb489af2d4c = function(arg0) {
979
+ imports.wbg.__wbg_signal_4bd18fb489af2d4c = function (arg0) {
900
980
  const ret = getObject(arg0).signal;
901
981
  return addHeapObject(ret);
902
982
  };
903
- imports.wbg.__wbg_new_55c9955722952374 = function() { return handleError(function () {
904
- const ret = new AbortController();
905
- return addHeapObject(ret);
906
- }, arguments) };
907
- imports.wbg.__wbg_abort_654b796176d117aa = function(arg0) {
983
+ imports.wbg.__wbg_new_55c9955722952374 = function () {
984
+ return handleError(function () {
985
+ const ret = new AbortController();
986
+ return addHeapObject(ret);
987
+ }, arguments);
988
+ };
989
+ imports.wbg.__wbg_abort_654b796176d117aa = function (arg0) {
908
990
  getObject(arg0).abort();
909
991
  };
910
- imports.wbg.__wbg_new_1eead62f64ca15ce = function() { return handleError(function () {
911
- const ret = new Headers();
912
- return addHeapObject(ret);
913
- }, arguments) };
914
- imports.wbg.__wbg_append_fda9e3432e3e88da = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
915
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
916
- }, arguments) };
917
- imports.wbg.__wbg_self_7eede1f4488bf346 = function() { return handleError(function () {
918
- const ret = self.self;
919
- return addHeapObject(ret);
920
- }, arguments) };
921
- imports.wbg.__wbg_crypto_c909fb428dcbddb6 = function(arg0) {
992
+ imports.wbg.__wbg_new_1eead62f64ca15ce = function () {
993
+ return handleError(function () {
994
+ const ret = new Headers();
995
+ return addHeapObject(ret);
996
+ }, arguments);
997
+ };
998
+ imports.wbg.__wbg_append_fda9e3432e3e88da = function () {
999
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1000
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1001
+ }, arguments);
1002
+ };
1003
+ imports.wbg.__wbg_self_7eede1f4488bf346 = function () {
1004
+ return handleError(function () {
1005
+ const ret = self.self;
1006
+ return addHeapObject(ret);
1007
+ }, arguments);
1008
+ };
1009
+ imports.wbg.__wbg_crypto_c909fb428dcbddb6 = function (arg0) {
922
1010
  const ret = getObject(arg0).crypto;
923
1011
  return addHeapObject(ret);
924
1012
  };
925
- imports.wbg.__wbg_msCrypto_511eefefbfc70ae4 = function(arg0) {
1013
+ imports.wbg.__wbg_msCrypto_511eefefbfc70ae4 = function (arg0) {
926
1014
  const ret = getObject(arg0).msCrypto;
927
1015
  return addHeapObject(ret);
928
1016
  };
929
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1017
+ imports.wbg.__wbindgen_is_undefined = function (arg0) {
930
1018
  const ret = getObject(arg0) === undefined;
931
1019
  return ret;
932
1020
  };
933
- imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
1021
+ imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function () {
934
1022
  const ret = module;
935
1023
  return addHeapObject(ret);
936
1024
  };
937
- imports.wbg.__wbg_require_900d5c3984fe7703 = function(arg0, arg1, arg2) {
1025
+ imports.wbg.__wbg_require_900d5c3984fe7703 = function (arg0, arg1, arg2) {
938
1026
  const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
939
1027
  return addHeapObject(ret);
940
1028
  };
941
- imports.wbg.__wbg_getRandomValues_307049345d0bd88c = function(arg0) {
1029
+ imports.wbg.__wbg_getRandomValues_307049345d0bd88c = function (arg0) {
942
1030
  const ret = getObject(arg0).getRandomValues;
943
1031
  return addHeapObject(ret);
944
1032
  };
945
- imports.wbg.__wbg_getRandomValues_cd175915511f705e = function(arg0, arg1) {
1033
+ imports.wbg.__wbg_getRandomValues_cd175915511f705e = function (arg0, arg1) {
946
1034
  getObject(arg0).getRandomValues(getObject(arg1));
947
1035
  };
948
- imports.wbg.__wbg_randomFillSync_85b3f4c52c56c313 = function(arg0, arg1, arg2) {
1036
+ imports.wbg.__wbg_randomFillSync_85b3f4c52c56c313 = function (arg0, arg1, arg2) {
949
1037
  getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
950
1038
  };
951
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
1039
+ imports.wbg.__wbg_crypto_c48a774b022d20ac = function (arg0) {
952
1040
  const ret = getObject(arg0).crypto;
953
1041
  return addHeapObject(ret);
954
1042
  };
955
- imports.wbg.__wbindgen_is_object = function(arg0) {
1043
+ imports.wbg.__wbindgen_is_object = function (arg0) {
956
1044
  const val = getObject(arg0);
957
- const ret = typeof(val) === 'object' && val !== null;
1045
+ const ret = typeof val === 'object' && val !== null;
958
1046
  return ret;
959
1047
  };
960
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
1048
+ imports.wbg.__wbg_process_298734cf255a885d = function (arg0) {
961
1049
  const ret = getObject(arg0).process;
962
1050
  return addHeapObject(ret);
963
1051
  };
964
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
1052
+ imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function (arg0) {
965
1053
  const ret = getObject(arg0).versions;
966
1054
  return addHeapObject(ret);
967
1055
  };
968
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
1056
+ imports.wbg.__wbg_node_1cd7a5d853dbea79 = function (arg0) {
969
1057
  const ret = getObject(arg0).node;
970
1058
  return addHeapObject(ret);
971
1059
  };
972
- imports.wbg.__wbindgen_is_string = function(arg0) {
973
- const ret = typeof(getObject(arg0)) === 'string';
1060
+ imports.wbg.__wbindgen_is_string = function (arg0) {
1061
+ const ret = typeof getObject(arg0) === 'string';
974
1062
  return ret;
975
1063
  };
976
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
1064
+ imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function (arg0) {
977
1065
  const ret = getObject(arg0).msCrypto;
978
1066
  return addHeapObject(ret);
979
1067
  };
980
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
981
- const ret = module.require;
982
- return addHeapObject(ret);
983
- }, arguments) };
984
- imports.wbg.__wbindgen_is_function = function(arg0) {
985
- const ret = typeof(getObject(arg0)) === 'function';
1068
+ imports.wbg.__wbg_require_8f08ceecec0f4fee = function () {
1069
+ return handleError(function () {
1070
+ const ret = module.require;
1071
+ return addHeapObject(ret);
1072
+ }, arguments);
1073
+ };
1074
+ imports.wbg.__wbindgen_is_function = function (arg0) {
1075
+ const ret = typeof getObject(arg0) === 'function';
986
1076
  return ret;
987
1077
  };
988
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
989
- getObject(arg0).getRandomValues(getObject(arg1));
990
- }, arguments) };
991
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
992
- getObject(arg0).randomFillSync(takeObject(arg1));
993
- }, arguments) };
994
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
1078
+ imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function () {
1079
+ return handleError(function (arg0, arg1) {
1080
+ getObject(arg0).getRandomValues(getObject(arg1));
1081
+ }, arguments);
1082
+ };
1083
+ imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function () {
1084
+ return handleError(function (arg0, arg1) {
1085
+ getObject(arg0).randomFillSync(takeObject(arg1));
1086
+ }, arguments);
1087
+ };
1088
+ imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function (arg0, arg1) {
995
1089
  const ret = new Function(getStringFromWasm0(arg0, arg1));
996
1090
  return addHeapObject(ret);
997
1091
  };
998
- imports.wbg.__wbg_next_526fc47e980da008 = function(arg0) {
1092
+ imports.wbg.__wbg_next_526fc47e980da008 = function (arg0) {
999
1093
  const ret = getObject(arg0).next;
1000
1094
  return addHeapObject(ret);
1001
1095
  };
1002
- imports.wbg.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) {
1003
- const ret = getObject(arg0).next();
1004
- return addHeapObject(ret);
1005
- }, arguments) };
1006
- imports.wbg.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
1096
+ imports.wbg.__wbg_next_ddb3312ca1c4e32a = function () {
1097
+ return handleError(function (arg0) {
1098
+ const ret = getObject(arg0).next();
1099
+ return addHeapObject(ret);
1100
+ }, arguments);
1101
+ };
1102
+ imports.wbg.__wbg_done_5c1f01fb660d73b5 = function (arg0) {
1007
1103
  const ret = getObject(arg0).done;
1008
1104
  return ret;
1009
1105
  };
1010
- imports.wbg.__wbg_value_1695675138684bd5 = function(arg0) {
1106
+ imports.wbg.__wbg_value_1695675138684bd5 = function (arg0) {
1011
1107
  const ret = getObject(arg0).value;
1012
1108
  return addHeapObject(ret);
1013
1109
  };
1014
- imports.wbg.__wbg_iterator_97f0c81209c6c35a = function() {
1110
+ imports.wbg.__wbg_iterator_97f0c81209c6c35a = function () {
1015
1111
  const ret = Symbol.iterator;
1016
1112
  return addHeapObject(ret);
1017
1113
  };
1018
- imports.wbg.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
1019
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
1020
- return addHeapObject(ret);
1021
- }, arguments) };
1022
- imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
1023
- const ret = getObject(arg0).call(getObject(arg1));
1024
- return addHeapObject(ret);
1025
- }, arguments) };
1026
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
1114
+ imports.wbg.__wbg_get_97b561fb56f034b5 = function () {
1115
+ return handleError(function (arg0, arg1) {
1116
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
1117
+ return addHeapObject(ret);
1118
+ }, arguments);
1119
+ };
1120
+ imports.wbg.__wbg_call_cb65541d95d71282 = function () {
1121
+ return handleError(function (arg0, arg1) {
1122
+ const ret = getObject(arg0).call(getObject(arg1));
1123
+ return addHeapObject(ret);
1124
+ }, arguments);
1125
+ };
1126
+ imports.wbg.__wbg_new_b51585de1b234aff = function () {
1027
1127
  const ret = new Object();
1028
1128
  return addHeapObject(ret);
1029
1129
  };
1030
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
1031
- const ret = self.self;
1032
- return addHeapObject(ret);
1033
- }, arguments) };
1034
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
1035
- const ret = window.window;
1036
- return addHeapObject(ret);
1037
- }, arguments) };
1038
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
1039
- const ret = globalThis.globalThis;
1040
- return addHeapObject(ret);
1041
- }, arguments) };
1042
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
1043
- const ret = global.global;
1044
- return addHeapObject(ret);
1045
- }, arguments) };
1046
- imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
1047
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1048
- return addHeapObject(ret);
1049
- }, arguments) };
1050
- imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function(arg0) {
1130
+ imports.wbg.__wbg_self_1ff1d729e9aae938 = function () {
1131
+ return handleError(function () {
1132
+ const ret = self.self;
1133
+ return addHeapObject(ret);
1134
+ }, arguments);
1135
+ };
1136
+ imports.wbg.__wbg_window_5f4faef6c12b79ec = function () {
1137
+ return handleError(function () {
1138
+ const ret = window.window;
1139
+ return addHeapObject(ret);
1140
+ }, arguments);
1141
+ };
1142
+ imports.wbg.__wbg_globalThis_1d39714405582d3c = function () {
1143
+ return handleError(function () {
1144
+ const ret = globalThis.globalThis;
1145
+ return addHeapObject(ret);
1146
+ }, arguments);
1147
+ };
1148
+ imports.wbg.__wbg_global_651f05c6a0944d1c = function () {
1149
+ return handleError(function () {
1150
+ const ret = global.global;
1151
+ return addHeapObject(ret);
1152
+ }, arguments);
1153
+ };
1154
+ imports.wbg.__wbg_call_01734de55d61e11d = function () {
1155
+ return handleError(function (arg0, arg1, arg2) {
1156
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1157
+ return addHeapObject(ret);
1158
+ }, arguments);
1159
+ };
1160
+ imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function (arg0) {
1051
1161
  const ret = getObject(arg0).getTime();
1052
1162
  return ret;
1053
1163
  };
1054
- imports.wbg.__wbg_new0_c0be7df4b6bd481f = function() {
1164
+ imports.wbg.__wbg_new0_c0be7df4b6bd481f = function () {
1055
1165
  const ret = new Date();
1056
1166
  return addHeapObject(ret);
1057
1167
  };
1058
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
1168
+ imports.wbg.__wbg_new_43f1b47c28813cbd = function (arg0, arg1) {
1059
1169
  try {
1060
- var state0 = {a: arg0, b: arg1};
1170
+ var state0 = { a: arg0, b: arg1 };
1061
1171
  var cb0 = (arg0, arg1) => {
1062
1172
  const a = state0.a;
1063
1173
  state0.a = 0;
@@ -1073,72 +1183,78 @@ function __wbg_get_imports() {
1073
1183
  state0.a = state0.b = 0;
1074
1184
  }
1075
1185
  };
1076
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
1186
+ imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function (arg0) {
1077
1187
  const ret = Promise.resolve(getObject(arg0));
1078
1188
  return addHeapObject(ret);
1079
1189
  };
1080
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
1190
+ imports.wbg.__wbg_then_f7e06ee3c11698eb = function (arg0, arg1) {
1081
1191
  const ret = getObject(arg0).then(getObject(arg1));
1082
1192
  return addHeapObject(ret);
1083
1193
  };
1084
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
1194
+ imports.wbg.__wbg_then_b2267541e2a73865 = function (arg0, arg1, arg2) {
1085
1195
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1086
1196
  return addHeapObject(ret);
1087
1197
  };
1088
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
1198
+ imports.wbg.__wbg_buffer_085ec1f694018c4f = function (arg0) {
1089
1199
  const ret = getObject(arg0).buffer;
1090
1200
  return addHeapObject(ret);
1091
1201
  };
1092
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
1202
+ imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function (arg0, arg1, arg2) {
1093
1203
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1094
1204
  return addHeapObject(ret);
1095
1205
  };
1096
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
1206
+ imports.wbg.__wbg_new_8125e318e6245eed = function (arg0) {
1097
1207
  const ret = new Uint8Array(getObject(arg0));
1098
1208
  return addHeapObject(ret);
1099
1209
  };
1100
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
1210
+ imports.wbg.__wbg_set_5cf90238115182c3 = function (arg0, arg1, arg2) {
1101
1211
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1102
1212
  };
1103
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
1213
+ imports.wbg.__wbg_length_72e2208bbc0efc61 = function (arg0) {
1104
1214
  const ret = getObject(arg0).length;
1105
1215
  return ret;
1106
1216
  };
1107
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
1217
+ imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function (arg0) {
1108
1218
  const ret = new Uint8Array(arg0 >>> 0);
1109
1219
  return addHeapObject(ret);
1110
1220
  };
1111
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
1221
+ imports.wbg.__wbg_subarray_13db269f57aa838d = function (arg0, arg1, arg2) {
1112
1222
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1113
1223
  return addHeapObject(ret);
1114
1224
  };
1115
- imports.wbg.__wbg_stringify_e25465938f3f611f = function() { return handleError(function (arg0) {
1116
- const ret = JSON.stringify(getObject(arg0));
1117
- return addHeapObject(ret);
1118
- }, arguments) };
1119
- imports.wbg.__wbg_has_c5fcd020291e56b8 = function() { return handleError(function (arg0, arg1) {
1120
- const ret = Reflect.has(getObject(arg0), getObject(arg1));
1121
- return ret;
1122
- }, arguments) };
1123
- imports.wbg.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) {
1124
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1125
- return ret;
1126
- }, arguments) };
1127
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1225
+ imports.wbg.__wbg_stringify_e25465938f3f611f = function () {
1226
+ return handleError(function (arg0) {
1227
+ const ret = JSON.stringify(getObject(arg0));
1228
+ return addHeapObject(ret);
1229
+ }, arguments);
1230
+ };
1231
+ imports.wbg.__wbg_has_c5fcd020291e56b8 = function () {
1232
+ return handleError(function (arg0, arg1) {
1233
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
1234
+ return ret;
1235
+ }, arguments);
1236
+ };
1237
+ imports.wbg.__wbg_set_092e06b0f9d71865 = function () {
1238
+ return handleError(function (arg0, arg1, arg2) {
1239
+ const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1240
+ return ret;
1241
+ }, arguments);
1242
+ };
1243
+ imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
1128
1244
  const ret = debugString(getObject(arg1));
1129
1245
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1130
1246
  const len1 = WASM_VECTOR_LEN;
1131
1247
  getInt32Memory0()[arg0 / 4 + 1] = len1;
1132
1248
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1133
1249
  };
1134
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1250
+ imports.wbg.__wbindgen_throw = function (arg0, arg1) {
1135
1251
  throw new Error(getStringFromWasm0(arg0, arg1));
1136
1252
  };
1137
- imports.wbg.__wbindgen_memory = function() {
1253
+ imports.wbg.__wbindgen_memory = function () {
1138
1254
  const ret = wasm.memory;
1139
1255
  return addHeapObject(ret);
1140
1256
  };
1141
- imports.wbg.__wbindgen_closure_wrapper12805 = function(arg0, arg1, arg2) {
1257
+ imports.wbg.__wbindgen_closure_wrapper12805 = function (arg0, arg1, arg2) {
1142
1258
  const ret = makeMutClosure(arg0, arg1, 3862, __wbg_adapter_26);
1143
1259
  return addHeapObject(ret);
1144
1260
  };
@@ -1146,9 +1262,7 @@ function __wbg_get_imports() {
1146
1262
  return imports;
1147
1263
  }
1148
1264
 
1149
- function __wbg_init_memory(imports, maybe_memory) {
1150
-
1151
- }
1265
+ function __wbg_init_memory(imports, maybe_memory) { }
1152
1266
 
1153
1267
  function __wbg_finalize_init(instance, module) {
1154
1268
  wasm = instance.exports;
@@ -1156,7 +1270,6 @@ function __wbg_finalize_init(instance, module) {
1156
1270
  cachedInt32Memory0 = null;
1157
1271
  cachedUint8Memory0 = null;
1158
1272
 
1159
-
1160
1273
  return wasm;
1161
1274
  }
1162
1275
 
@@ -1179,12 +1292,13 @@ function initSync(module) {
1179
1292
  async function __wbg_init(input) {
1180
1293
  if (wasm !== undefined) return wasm;
1181
1294
 
1182
- if (typeof input === 'undefined') {
1183
- input = new URL('didkit_wasm_bg.wasm', import.meta.url);
1184
- }
1185
1295
  const imports = __wbg_get_imports();
1186
1296
 
1187
- if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
1297
+ if (
1298
+ typeof input === 'string' ||
1299
+ (typeof Request === 'function' && input instanceof Request) ||
1300
+ (typeof URL === 'function' && input instanceof URL)
1301
+ ) {
1188
1302
  input = fetch(input);
1189
1303
  }
1190
1304
 
@@ -1195,5 +1309,5 @@ async function __wbg_init(input) {
1195
1309
  return __wbg_finalize_init(instance, module);
1196
1310
  }
1197
1311
 
1198
- export { initSync }
1312
+ export { initSync };
1199
1313
  export default __wbg_init;