@learncard/didkit-plugin 1.5.30 → 1.5.32

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.
@@ -28,7 +28,6 @@ module.exports = __toCommonJS(src_exports);
28
28
  // src/didkit/pkg/didkit_wasm.js
29
29
  var import_meta = {};
30
30
  var wasm;
31
- var WASM_VECTOR_LEN = 0;
32
31
  var cachedUint8ArrayMemory0 = null;
33
32
  function getUint8ArrayMemory0() {
34
33
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -37,6 +36,32 @@ function getUint8ArrayMemory0() {
37
36
  return cachedUint8ArrayMemory0;
38
37
  }
39
38
  __name(getUint8ArrayMemory0, "getUint8ArrayMemory0");
39
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
40
+ throw Error("TextDecoder not available");
41
+ } };
42
+ if (typeof TextDecoder !== "undefined") {
43
+ cachedTextDecoder.decode();
44
+ }
45
+ var MAX_SAFARI_DECODE_BYTES = 2146435072;
46
+ var numBytesDecoded = 0;
47
+ function decodeText(ptr, len) {
48
+ numBytesDecoded += len;
49
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
50
+ cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
51
+ throw Error("TextDecoder not available");
52
+ } };
53
+ cachedTextDecoder.decode();
54
+ numBytesDecoded = len;
55
+ }
56
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
57
+ }
58
+ __name(decodeText, "decodeText");
59
+ function getStringFromWasm0(ptr, len) {
60
+ ptr = ptr >>> 0;
61
+ return decodeText(ptr, len);
62
+ }
63
+ __name(getStringFromWasm0, "getStringFromWasm0");
64
+ var WASM_VECTOR_LEN = 0;
40
65
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
41
66
  throw Error("TextEncoder not available");
42
67
  } };
@@ -90,17 +115,6 @@ function getDataViewMemory0() {
90
115
  return cachedDataViewMemory0;
91
116
  }
92
117
  __name(getDataViewMemory0, "getDataViewMemory0");
93
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
94
- throw Error("TextDecoder not available");
95
- } };
96
- if (typeof TextDecoder !== "undefined") {
97
- cachedTextDecoder.decode();
98
- }
99
- function getStringFromWasm0(ptr, len) {
100
- ptr = ptr >>> 0;
101
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
102
- }
103
- __name(getStringFromWasm0, "getStringFromWasm0");
104
118
  function addToExternrefTable0(obj) {
105
119
  const idx = wasm.__externref_table_alloc();
106
120
  wasm.__wbindgen_export_4.set(idx, obj);
@@ -125,33 +139,6 @@ function isLikeNone(x) {
125
139
  return x === void 0 || x === null;
126
140
  }
127
141
  __name(isLikeNone, "isLikeNone");
128
- var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
129
- }, unregister: () => {
130
- } } : new FinalizationRegistry((state) => {
131
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
132
- });
133
- function makeMutClosure(arg0, arg1, dtor, f) {
134
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
135
- const real = /* @__PURE__ */ __name((...args) => {
136
- state.cnt++;
137
- const a = state.a;
138
- state.a = 0;
139
- try {
140
- return f(a, state.b, ...args);
141
- } finally {
142
- if (--state.cnt === 0) {
143
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
144
- CLOSURE_DTORS.unregister(state);
145
- } else {
146
- state.a = a;
147
- }
148
- }
149
- }, "real");
150
- real.original = state;
151
- CLOSURE_DTORS.register(real, state, state);
152
- return real;
153
- }
154
- __name(makeMutClosure, "makeMutClosure");
155
142
  function debugString(val) {
156
143
  const type = typeof val;
157
144
  if (type == "number" || type == "boolean" || val == null) {
@@ -209,6 +196,35 @@ ${val.stack}`;
209
196
  return className;
210
197
  }
211
198
  __name(debugString, "debugString");
199
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
200
+ }, unregister: () => {
201
+ } } : new FinalizationRegistry(
202
+ (state) => {
203
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
204
+ }
205
+ );
206
+ function makeMutClosure(arg0, arg1, dtor, f) {
207
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
208
+ const real = /* @__PURE__ */ __name((...args) => {
209
+ state.cnt++;
210
+ const a = state.a;
211
+ state.a = 0;
212
+ try {
213
+ return f(a, state.b, ...args);
214
+ } finally {
215
+ if (--state.cnt === 0) {
216
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
217
+ CLOSURE_DTORS.unregister(state);
218
+ } else {
219
+ state.a = a;
220
+ }
221
+ }
222
+ }, "real");
223
+ real.original = state;
224
+ CLOSURE_DTORS.register(real, state, state);
225
+ return real;
226
+ }
227
+ __name(makeMutClosure, "makeMutClosure");
212
228
  function clearCache() {
213
229
  const ret = wasm.clearCache();
214
230
  return ret;
@@ -428,23 +444,25 @@ function contextLoader(url) {
428
444
  return ret;
429
445
  }
430
446
  __name(contextLoader, "contextLoader");
431
- function __wbg_adapter_54(arg0, arg1, arg2) {
432
- wasm.closure4040_externref_shim(arg0, arg1, arg2);
447
+ function __wbg_adapter_10(arg0, arg1, arg2) {
448
+ wasm.closure4202_externref_shim(arg0, arg1, arg2);
433
449
  }
434
- __name(__wbg_adapter_54, "__wbg_adapter_54");
435
- function __wbg_adapter_220(arg0, arg1, arg2, arg3) {
436
- wasm.closure4437_externref_shim(arg0, arg1, arg2, arg3);
450
+ __name(__wbg_adapter_10, "__wbg_adapter_10");
451
+ function __wbg_adapter_188(arg0, arg1, arg2, arg3) {
452
+ wasm.closure4602_externref_shim(arg0, arg1, arg2, arg3);
437
453
  }
438
- __name(__wbg_adapter_220, "__wbg_adapter_220");
454
+ __name(__wbg_adapter_188, "__wbg_adapter_188");
439
455
  var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
440
456
  var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
457
+ var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
441
458
  async function __wbg_load(module2, imports) {
442
459
  if (typeof Response === "function" && module2 instanceof Response) {
443
460
  if (typeof WebAssembly.instantiateStreaming === "function") {
444
461
  try {
445
462
  return await WebAssembly.instantiateStreaming(module2, imports);
446
463
  } catch (e) {
447
- if (module2.headers.get("Content-Type") != "application/wasm") {
464
+ const validResponse = module2.ok && EXPECTED_RESPONSE_TYPES.has(module2.type);
465
+ if (validResponse && module2.headers.get("Content-Type") !== "application/wasm") {
448
466
  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);
449
467
  } else {
450
468
  throw e;
@@ -466,6 +484,10 @@ __name(__wbg_load, "__wbg_load");
466
484
  function __wbg_get_imports() {
467
485
  const imports = {};
468
486
  imports.wbg = {};
487
+ imports.wbg.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
488
+ const ret = Error(getStringFromWasm0(arg0, arg1));
489
+ return ret;
490
+ };
469
491
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
470
492
  const ret = String(arg1);
471
493
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -473,31 +495,27 @@ function __wbg_get_imports() {
473
495
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
474
496
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
475
497
  };
476
- imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
498
+ imports.wbg.__wbg_abort_6665281623826052 = function(arg0) {
477
499
  arg0.abort();
478
500
  };
479
- imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() {
501
+ imports.wbg.__wbg_append_3e86b0cd6215edd8 = function() {
480
502
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
481
503
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
482
504
  }, arguments);
483
505
  };
484
- imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() {
506
+ imports.wbg.__wbg_arrayBuffer_55e4a430671abfd8 = function() {
485
507
  return handleError(function(arg0) {
486
508
  const ret = arg0.arrayBuffer();
487
509
  return ret;
488
510
  }, arguments);
489
511
  };
490
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
491
- const ret = arg0.buffer;
492
- return ret;
493
- };
494
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
512
+ imports.wbg.__wbg_call_2f8d426a20a307fe = function() {
495
513
  return handleError(function(arg0, arg1) {
496
514
  const ret = arg0.call(arg1);
497
515
  return ret;
498
516
  }, arguments);
499
517
  };
500
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
518
+ imports.wbg.__wbg_call_f53f0647ceb9c567 = function() {
501
519
  return handleError(function(arg0, arg1, arg2) {
502
520
  const ret = arg0.call(arg1, arg2);
503
521
  return ret;
@@ -507,19 +525,19 @@ function __wbg_get_imports() {
507
525
  const ret = arg0.crypto;
508
526
  return ret;
509
527
  };
510
- imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
528
+ imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
511
529
  const ret = arg0.crypto;
512
530
  return ret;
513
531
  };
514
- imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
532
+ imports.wbg.__wbg_done_4a7743b6f942c9f3 = function(arg0) {
515
533
  const ret = arg0.done;
516
534
  return ret;
517
535
  };
518
- imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
536
+ imports.wbg.__wbg_entries_17f7acbc2d691c0d = function(arg0) {
519
537
  const ret = Object.entries(arg0);
520
538
  return ret;
521
539
  };
522
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
540
+ imports.wbg.__wbg_fetch_9885d2e26ad251bb = function(arg0, arg1) {
523
541
  const ret = arg0.fetch(arg1);
524
542
  return ret;
525
543
  };
@@ -527,47 +545,52 @@ function __wbg_get_imports() {
527
545
  const ret = fetch(arg0);
528
546
  return ret;
529
547
  };
530
- imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
548
+ imports.wbg.__wbg_from_237b1ad767238d8b = function(arg0) {
531
549
  const ret = Array.from(arg0);
532
550
  return ret;
533
551
  };
534
552
  imports.wbg.__wbg_getRandomValues_371e7ade8bd92088 = function(arg0, arg1) {
535
553
  arg0.getRandomValues(arg1);
536
554
  };
555
+ imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() {
556
+ return handleError(function(arg0, arg1) {
557
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
558
+ }, arguments);
559
+ };
537
560
  imports.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1 = function(arg0) {
538
561
  const ret = arg0.getRandomValues;
539
562
  return ret;
540
563
  };
541
- imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() {
564
+ imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() {
542
565
  return handleError(function(arg0, arg1) {
543
566
  arg0.getRandomValues(arg1);
544
567
  }, arguments);
545
568
  };
546
- imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
569
+ imports.wbg.__wbg_getTime_5b1dd03bb6d4b784 = function(arg0) {
547
570
  const ret = arg0.getTime();
548
571
  return ret;
549
572
  };
550
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
573
+ imports.wbg.__wbg_get_27b4bcbec57323ca = function() {
551
574
  return handleError(function(arg0, arg1) {
552
575
  const ret = Reflect.get(arg0, arg1);
553
576
  return ret;
554
577
  }, arguments);
555
578
  };
556
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
579
+ imports.wbg.__wbg_get_59c6316d15f9f1d0 = function(arg0, arg1) {
557
580
  const ret = arg0[arg1 >>> 0];
558
581
  return ret;
559
582
  };
560
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function() {
583
+ imports.wbg.__wbg_has_85abdd8aeb8edebf = function() {
561
584
  return handleError(function(arg0, arg1) {
562
585
  const ret = Reflect.has(arg0, arg1);
563
586
  return ret;
564
587
  }, arguments);
565
588
  };
566
- imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
589
+ imports.wbg.__wbg_headers_177bc880a5823968 = function(arg0) {
567
590
  const ret = arg0.headers;
568
591
  return ret;
569
592
  };
570
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
593
+ imports.wbg.__wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea = function(arg0) {
571
594
  let result;
572
595
  try {
573
596
  result = arg0 instanceof ArrayBuffer;
@@ -577,7 +600,7 @@ function __wbg_get_imports() {
577
600
  const ret = result;
578
601
  return ret;
579
602
  };
580
- imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
603
+ imports.wbg.__wbg_instanceof_Map_dd89a82d76d1b25f = function(arg0) {
581
604
  let result;
582
605
  try {
583
606
  result = arg0 instanceof Map;
@@ -587,7 +610,7 @@ function __wbg_get_imports() {
587
610
  const ret = result;
588
611
  return ret;
589
612
  };
590
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
613
+ imports.wbg.__wbg_instanceof_Response_0ab386c6818f788a = function(arg0) {
591
614
  let result;
592
615
  try {
593
616
  result = arg0 instanceof Response;
@@ -597,7 +620,7 @@ function __wbg_get_imports() {
597
620
  const ret = result;
598
621
  return ret;
599
622
  };
600
- imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
623
+ imports.wbg.__wbg_instanceof_Uint8Array_91f3c5adee7e6672 = function(arg0) {
601
624
  let result;
602
625
  try {
603
626
  result = arg0 instanceof Uint8Array;
@@ -607,31 +630,31 @@ function __wbg_get_imports() {
607
630
  const ret = result;
608
631
  return ret;
609
632
  };
610
- imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
633
+ imports.wbg.__wbg_isArray_bc2498eba6fcb71f = function(arg0) {
611
634
  const ret = Array.isArray(arg0);
612
635
  return ret;
613
636
  };
614
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
637
+ imports.wbg.__wbg_isSafeInteger_6091d6e3ee1b65fd = function(arg0) {
615
638
  const ret = Number.isSafeInteger(arg0);
616
639
  return ret;
617
640
  };
618
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
641
+ imports.wbg.__wbg_iterator_96378c3c9a17347c = function() {
619
642
  const ret = Symbol.iterator;
620
643
  return ret;
621
644
  };
622
- imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
645
+ imports.wbg.__wbg_keys_7eff209f4f3c9f17 = function(arg0) {
623
646
  const ret = Object.keys(arg0);
624
647
  return ret;
625
648
  };
626
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
649
+ imports.wbg.__wbg_length_246fa1f85a0dea5b = function(arg0) {
627
650
  const ret = arg0.length;
628
651
  return ret;
629
652
  };
630
- imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
653
+ imports.wbg.__wbg_length_904c0910ed998bf3 = function(arg0) {
631
654
  const ret = arg0.length;
632
655
  return ret;
633
656
  };
634
- imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
657
+ imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
635
658
  const ret = arg0.msCrypto;
636
659
  return ret;
637
660
  };
@@ -639,24 +662,42 @@ function __wbg_get_imports() {
639
662
  const ret = arg0.msCrypto;
640
663
  return ret;
641
664
  };
642
- imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
665
+ imports.wbg.__wbg_new0_85cc856927102294 = function() {
643
666
  const ret = new Date();
644
667
  return ret;
645
668
  };
646
- imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() {
669
+ imports.wbg.__wbg_new_12588505388d0897 = function() {
647
670
  return handleError(function() {
648
671
  const ret = new Headers();
649
672
  return ret;
650
673
  }, arguments);
651
674
  };
652
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
675
+ imports.wbg.__wbg_new_1930cbb8d9ffc31b = function() {
676
+ const ret = new Object();
677
+ return ret;
678
+ };
679
+ imports.wbg.__wbg_new_56407f99198feff7 = function() {
680
+ const ret = /* @__PURE__ */ new Map();
681
+ return ret;
682
+ };
683
+ imports.wbg.__wbg_new_6a8b180049d9484e = function() {
684
+ return handleError(function() {
685
+ const ret = new AbortController();
686
+ return ret;
687
+ }, arguments);
688
+ };
689
+ imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
690
+ const ret = new Uint8Array(arg0);
691
+ return ret;
692
+ };
693
+ imports.wbg.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
653
694
  try {
654
695
  var state0 = { a: arg0, b: arg1 };
655
696
  var cb0 = /* @__PURE__ */ __name((arg02, arg12) => {
656
697
  const a = state0.a;
657
698
  state0.a = 0;
658
699
  try {
659
- return __wbg_adapter_220(a, state0.b, arg02, arg12);
700
+ return __wbg_adapter_188(a, state0.b, arg02, arg12);
660
701
  } finally {
661
702
  state0.a = a;
662
703
  }
@@ -667,83 +708,68 @@ function __wbg_get_imports() {
667
708
  state0.a = state0.b = 0;
668
709
  }
669
710
  };
670
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
671
- const ret = new Object();
672
- return ret;
673
- };
674
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
675
- const ret = /* @__PURE__ */ new Map();
676
- return ret;
677
- };
678
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
711
+ imports.wbg.__wbg_new_e969dc3f68d25093 = function() {
679
712
  const ret = new Array();
680
713
  return ret;
681
714
  };
682
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
683
- const ret = new Uint8Array(arg0);
715
+ imports.wbg.__wbg_newfromslice_d0d56929c6d9c842 = function(arg0, arg1) {
716
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
684
717
  return ret;
685
718
  };
686
- imports.wbg.__wbg_new_e25e5aab09ff45db = function() {
687
- return handleError(function() {
688
- const ret = new AbortController();
689
- return ret;
690
- }, arguments);
691
- };
692
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
719
+ imports.wbg.__wbg_newnoargs_a81330f6e05d8aca = function(arg0, arg1) {
693
720
  const ret = new Function(getStringFromWasm0(arg0, arg1));
694
721
  return ret;
695
722
  };
696
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
697
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
698
- return ret;
699
- };
700
- imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
723
+ imports.wbg.__wbg_newwithlength_ed0ee6c1edca86fc = function(arg0) {
701
724
  const ret = new Uint8Array(arg0 >>> 0);
702
725
  return ret;
703
726
  };
704
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() {
727
+ imports.wbg.__wbg_newwithstrandinit_e8e22e9851f3c2fe = function() {
705
728
  return handleError(function(arg0, arg1, arg2) {
706
729
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
707
730
  return ret;
708
731
  }, arguments);
709
732
  };
710
- imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
711
- const ret = arg0.next;
712
- return ret;
713
- };
714
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
733
+ imports.wbg.__wbg_next_2e6b37020ac5fe58 = function() {
715
734
  return handleError(function(arg0) {
716
735
  const ret = arg0.next();
717
736
  return ret;
718
737
  }, arguments);
719
738
  };
720
- imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
739
+ imports.wbg.__wbg_next_3de8f2669431a3ff = function(arg0) {
740
+ const ret = arg0.next;
741
+ return ret;
742
+ };
743
+ imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
721
744
  const ret = arg0.node;
722
745
  return ret;
723
746
  };
724
- imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
747
+ imports.wbg.__wbg_now_1f875e5cd673bc3c = function(arg0) {
725
748
  const ret = arg0.now();
726
749
  return ret;
727
750
  };
728
- imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
751
+ imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
729
752
  const ret = arg0.process;
730
753
  return ret;
731
754
  };
732
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
755
+ imports.wbg.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
756
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
757
+ };
758
+ imports.wbg.__wbg_push_cd3ac7d5b094565d = function(arg0, arg1) {
733
759
  const ret = arg0.push(arg1);
734
760
  return ret;
735
761
  };
736
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
737
- queueMicrotask(arg0);
738
- };
739
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
762
+ imports.wbg.__wbg_queueMicrotask_bcc6e26d899696db = function(arg0) {
740
763
  const ret = arg0.queueMicrotask;
741
764
  return ret;
742
765
  };
766
+ imports.wbg.__wbg_queueMicrotask_f24a794d09c42640 = function(arg0) {
767
+ queueMicrotask(arg0);
768
+ };
743
769
  imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
744
770
  arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
745
771
  };
746
- imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
772
+ imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() {
747
773
  return handleError(function(arg0, arg1) {
748
774
  arg0.randomFillSync(arg1);
749
775
  }, arguments);
@@ -752,13 +778,13 @@ function __wbg_get_imports() {
752
778
  const ret = arg0.require(getStringFromWasm0(arg1, arg2));
753
779
  return ret;
754
780
  };
755
- imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
781
+ imports.wbg.__wbg_require_60cc747a6bc5215a = function() {
756
782
  return handleError(function() {
757
783
  const ret = module.require;
758
784
  return ret;
759
785
  }, arguments);
760
786
  };
761
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
787
+ imports.wbg.__wbg_resolve_5775c0ef9222f556 = function(arg0) {
762
788
  const ret = Promise.resolve(arg0);
763
789
  return ret;
764
790
  };
@@ -768,52 +794,52 @@ function __wbg_get_imports() {
768
794
  return ret;
769
795
  }, arguments);
770
796
  };
771
- imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
772
- arg0[arg1 >>> 0] = arg2;
773
- };
774
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
775
- arg0[arg1] = arg2;
776
- };
777
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
778
- arg0.set(arg1, arg2 >>> 0);
797
+ imports.wbg.__wbg_set_1d5fe1e3f51a48d8 = function(arg0, arg1, arg2) {
798
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
779
799
  };
780
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
800
+ imports.wbg.__wbg_set_31197016f65a6a19 = function(arg0, arg1, arg2) {
781
801
  const ret = arg0.set(arg1, arg2);
782
802
  return ret;
783
803
  };
784
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
804
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
805
+ arg0[arg1] = arg2;
806
+ };
807
+ imports.wbg.__wbg_set_b33e7a98099eed58 = function() {
785
808
  return handleError(function(arg0, arg1, arg2) {
786
809
  const ret = Reflect.set(arg0, arg1, arg2);
787
810
  return ret;
788
811
  }, arguments);
789
812
  };
790
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
813
+ imports.wbg.__wbg_set_d636a0463acf1dbc = function(arg0, arg1, arg2) {
814
+ arg0[arg1 >>> 0] = arg2;
815
+ };
816
+ imports.wbg.__wbg_setbody_e324371c31597f2a = function(arg0, arg1) {
791
817
  arg0.body = arg1;
792
818
  };
793
- imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
819
+ imports.wbg.__wbg_setcredentials_55a9317ed2777533 = function(arg0, arg1) {
794
820
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
795
821
  };
796
- imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
822
+ imports.wbg.__wbg_setheaders_ac0b1e4890a949cd = function(arg0, arg1) {
797
823
  arg0.headers = arg1;
798
824
  };
799
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
825
+ imports.wbg.__wbg_setmethod_9ce6e95af1ae0eaf = function(arg0, arg1, arg2) {
800
826
  arg0.method = getStringFromWasm0(arg1, arg2);
801
827
  };
802
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
828
+ imports.wbg.__wbg_setmode_b89d1784e7e7f118 = function(arg0, arg1) {
803
829
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
804
830
  };
805
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
831
+ imports.wbg.__wbg_setsignal_e663c6d962763cd5 = function(arg0, arg1) {
806
832
  arg0.signal = arg1;
807
833
  };
808
- imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
834
+ imports.wbg.__wbg_signal_bdb003fe19e53a13 = function(arg0) {
809
835
  const ret = arg0.signal;
810
836
  return ret;
811
837
  };
812
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
838
+ imports.wbg.__wbg_static_accessor_GLOBAL_1f13249cc3acc96d = function() {
813
839
  const ret = typeof global === "undefined" ? null : global;
814
840
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
815
841
  };
816
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
842
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3 = function() {
817
843
  const ret = typeof globalThis === "undefined" ? null : globalThis;
818
844
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
819
845
  };
@@ -821,75 +847,63 @@ function __wbg_get_imports() {
821
847
  const ret = module;
822
848
  return ret;
823
849
  };
824
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
850
+ imports.wbg.__wbg_static_accessor_SELF_6265471db3b3c228 = function() {
825
851
  const ret = typeof self === "undefined" ? null : self;
826
852
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
827
853
  };
828
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
854
+ imports.wbg.__wbg_static_accessor_WINDOW_16fb482f8ec52863 = function() {
829
855
  const ret = typeof window === "undefined" ? null : window;
830
856
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
831
857
  };
832
- imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
858
+ imports.wbg.__wbg_status_31874648c8651949 = function(arg0) {
833
859
  const ret = arg0.status;
834
860
  return ret;
835
861
  };
836
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() {
862
+ imports.wbg.__wbg_stringify_1f41b6198e0932e0 = function() {
837
863
  return handleError(function(arg0) {
838
864
  const ret = JSON.stringify(arg0);
839
865
  return ret;
840
866
  }, arguments);
841
867
  };
842
- imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
868
+ imports.wbg.__wbg_subarray_a219824899e59712 = function(arg0, arg1, arg2) {
843
869
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
844
870
  return ret;
845
871
  };
846
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
847
- const ret = arg0.then(arg1);
872
+ imports.wbg.__wbg_then_8d2fcccde5380a03 = function(arg0, arg1, arg2) {
873
+ const ret = arg0.then(arg1, arg2);
848
874
  return ret;
849
875
  };
850
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
851
- const ret = arg0.then(arg1, arg2);
876
+ imports.wbg.__wbg_then_9cc266be2bf537b6 = function(arg0, arg1) {
877
+ const ret = arg0.then(arg1);
852
878
  return ret;
853
879
  };
854
- imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
880
+ imports.wbg.__wbg_url_d5273b9e10503471 = function(arg0, arg1) {
855
881
  const ret = arg1.url;
856
882
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
857
883
  const len1 = WASM_VECTOR_LEN;
858
884
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
859
885
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
860
886
  };
861
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
887
+ imports.wbg.__wbg_value_09d0b4eaab48b91d = function(arg0) {
862
888
  const ret = arg0.value;
863
889
  return ret;
864
890
  };
865
- imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
891
+ imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
866
892
  const ret = arg0.versions;
867
893
  return ret;
868
894
  };
869
- imports.wbg.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
870
- const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
871
- return ret;
872
- };
873
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
874
- const ret = arg0;
875
- return ret;
876
- };
877
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
878
- const ret = BigInt.asUintN(64, arg0);
879
- return ret;
880
- };
881
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
895
+ imports.wbg.__wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e = function(arg0, arg1) {
882
896
  const v = arg1;
883
897
  const ret = typeof v === "bigint" ? v : void 0;
884
898
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
885
899
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
886
900
  };
887
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
901
+ imports.wbg.__wbg_wbindgenbooleanget_59f830b1a70d2530 = function(arg0) {
888
902
  const v = arg0;
889
- const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
890
- return ret;
903
+ const ret = typeof v === "boolean" ? v : void 0;
904
+ return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
891
905
  };
892
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
906
+ imports.wbg.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
893
907
  const obj = arg0.original;
894
908
  if (obj.cnt-- == 1) {
895
909
  obj.a = 0;
@@ -898,83 +912,57 @@ function __wbg_get_imports() {
898
912
  const ret = false;
899
913
  return ret;
900
914
  };
901
- imports.wbg.__wbindgen_closure_wrapper12137 = function(arg0, arg1, arg2) {
902
- const ret = makeMutClosure(arg0, arg1, 4041, __wbg_adapter_54);
903
- return ret;
904
- };
905
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
915
+ imports.wbg.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
906
916
  const ret = debugString(arg1);
907
917
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
908
918
  const len1 = WASM_VECTOR_LEN;
909
919
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
910
920
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
911
921
  };
912
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
913
- const ret = new Error(getStringFromWasm0(arg0, arg1));
914
- return ret;
915
- };
916
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
922
+ imports.wbg.__wbg_wbindgenin_192b210aa1c401e9 = function(arg0, arg1) {
917
923
  const ret = arg0 in arg1;
918
924
  return ret;
919
925
  };
920
- imports.wbg.__wbindgen_init_externref_table = function() {
921
- const table = wasm.__wbindgen_export_4;
922
- const offset = table.grow(4);
923
- table.set(0, void 0);
924
- table.set(offset + 0, void 0);
925
- table.set(offset + 1, null);
926
- table.set(offset + 2, true);
927
- table.set(offset + 3, false);
928
- ;
929
- };
930
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
926
+ imports.wbg.__wbg_wbindgenisbigint_7d76a1ca6454e439 = function(arg0) {
931
927
  const ret = typeof arg0 === "bigint";
932
928
  return ret;
933
929
  };
934
- imports.wbg.__wbindgen_is_function = function(arg0) {
930
+ imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
935
931
  const ret = typeof arg0 === "function";
936
932
  return ret;
937
933
  };
938
- imports.wbg.__wbindgen_is_null = function(arg0) {
934
+ imports.wbg.__wbg_wbindgenisnull_e1388bbe88158c3f = function(arg0) {
939
935
  const ret = arg0 === null;
940
936
  return ret;
941
937
  };
942
- imports.wbg.__wbindgen_is_object = function(arg0) {
938
+ imports.wbg.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
943
939
  const val = arg0;
944
940
  const ret = typeof val === "object" && val !== null;
945
941
  return ret;
946
942
  };
947
- imports.wbg.__wbindgen_is_string = function(arg0) {
943
+ imports.wbg.__wbg_wbindgenisstring_4b74e4111ba029e6 = function(arg0) {
948
944
  const ret = typeof arg0 === "string";
949
945
  return ret;
950
946
  };
951
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
947
+ imports.wbg.__wbg_wbindgenisundefined_71f08a6ade4354e7 = function(arg0) {
952
948
  const ret = arg0 === void 0;
953
949
  return ret;
954
950
  };
955
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
951
+ imports.wbg.__wbg_wbindgenjsvaleq_f27272c0a890df7f = function(arg0, arg1) {
956
952
  const ret = arg0 === arg1;
957
953
  return ret;
958
954
  };
959
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
955
+ imports.wbg.__wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c = function(arg0, arg1) {
960
956
  const ret = arg0 == arg1;
961
957
  return ret;
962
958
  };
963
- imports.wbg.__wbindgen_memory = function() {
964
- const ret = wasm.memory;
965
- return ret;
966
- };
967
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
959
+ imports.wbg.__wbg_wbindgennumberget_d855f947247a3fbc = function(arg0, arg1) {
968
960
  const obj = arg1;
969
961
  const ret = typeof obj === "number" ? obj : void 0;
970
962
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
971
963
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
972
964
  };
973
- imports.wbg.__wbindgen_number_new = function(arg0) {
974
- const ret = arg0;
975
- return ret;
976
- };
977
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
965
+ imports.wbg.__wbg_wbindgenstringget_43fe05afe34b0cb1 = function(arg0, arg1) {
978
966
  const obj = arg1;
979
967
  const ret = typeof obj === "string" ? obj : void 0;
980
968
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -982,12 +970,46 @@ function __wbg_get_imports() {
982
970
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
983
971
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
984
972
  };
985
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
973
+ imports.wbg.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
974
+ throw new Error(getStringFromWasm0(arg0, arg1));
975
+ };
976
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
986
977
  const ret = getStringFromWasm0(arg0, arg1);
987
978
  return ret;
988
979
  };
989
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
990
- throw new Error(getStringFromWasm0(arg0, arg1));
980
+ imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
981
+ const ret = BigInt.asUintN(64, arg0) | arg1 << BigInt(64);
982
+ return ret;
983
+ };
984
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
985
+ const ret = BigInt.asUintN(64, arg0);
986
+ return ret;
987
+ };
988
+ imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
989
+ const ret = arg0;
990
+ return ret;
991
+ };
992
+ imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
993
+ const ret = getArrayU8FromWasm0(arg0, arg1);
994
+ return ret;
995
+ };
996
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
997
+ const ret = arg0;
998
+ return ret;
999
+ };
1000
+ imports.wbg.__wbindgen_cast_f7331b0818e1ba43 = function(arg0, arg1) {
1001
+ const ret = makeMutClosure(arg0, arg1, 4201, __wbg_adapter_10);
1002
+ return ret;
1003
+ };
1004
+ imports.wbg.__wbindgen_init_externref_table = function() {
1005
+ const table = wasm.__wbindgen_export_4;
1006
+ const offset = table.grow(4);
1007
+ table.set(0, void 0);
1008
+ table.set(offset + 0, void 0);
1009
+ table.set(offset + 1, null);
1010
+ table.set(offset + 2, true);
1011
+ table.set(offset + 3, false);
1012
+ ;
991
1013
  };
992
1014
  return imports;
993
1015
  }
@@ -1031,7 +1053,7 @@ var didkit_wasm_default = __wbg_init;
1031
1053
  // src/didkit/index.ts
1032
1054
  var initialized = false;
1033
1055
  var generating = false;
1034
- var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/5vjK4aqITcG1Z4HiGYCV") => {
1056
+ var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/HpIgP6KpQeWbTWaKs1ro") => {
1035
1057
  while (generating)
1036
1058
  await new Promise((res) => setTimeout(res, 250));
1037
1059
  if (initialized)