@prosopo/procaptcha-bundle 2.3.1 → 2.4.1

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.
Files changed (155) hide show
  1. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +5 -0
  2. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +1 -0
  3. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js +5 -0
  4. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +1 -0
  5. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -1
  6. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js +3 -2
  7. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -1
  8. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +4 -4
  9. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +1 -1
  10. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.d.ts.map +1 -1
  11. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.js +2 -2
  12. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/captchaType.js.map +1 -1
  13. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +1 -1
  14. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +1 -1
  15. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +2 -1
  16. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +1 -1
  17. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.d.ts +4 -8
  18. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +1 -1
  19. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js +1 -4
  20. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captcha.js.map +1 -1
  21. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +2 -2
  22. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +1 -1
  23. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/captchaRenderer.js.map +1 -1
  24. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts +2 -4
  25. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  26. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.js +10 -7
  27. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +1 -1
  28. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts +2 -4
  29. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +1 -1
  30. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.js +5 -7
  31. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.js.map +1 -1
  32. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts +2 -4
  33. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +1 -1
  34. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.js +5 -7
  35. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/components/powCaptcha.js.map +1 -1
  36. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +2 -2
  37. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +1 -1
  38. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.js +4 -4
  39. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/captcha/componentsList.js.map +1 -1
  40. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.d.ts.map +1 -1
  41. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js +6 -1
  42. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/webComponent.js.map +1 -1
  43. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts +3 -4
  44. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +1 -1
  45. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js +1 -1
  46. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic/widgetRenderer.js.map +1 -1
  47. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js +2 -2
  48. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/renderLogic.js.map +1 -1
  49. package/dist/bundle/ProcaptchaWidget-79FRw4Va.js +615 -0
  50. package/dist/bundle/ProcaptchaWidget-DOETad4N.js +159 -0
  51. package/dist/bundle/{asU8a-DDBcjges.js → asU8a-2GgUBNjQ.js} +3 -3
  52. package/dist/bundle/{bip39-CRbwrDSj.js → bip39-C01p7UHO.js} +28 -27
  53. package/dist/bundle/components.d.ts +5 -0
  54. package/dist/bundle/components.d.ts.map +1 -0
  55. package/dist/bundle/{hash-B8OCn-ev.js → hash-0yoKUuST.js} +460 -588
  56. package/dist/bundle/{index-B2mmLfsC.js → index-C8sSamyh.js} +44 -43
  57. package/dist/bundle/{index-Cks8mtaG.js → index-Ckreqz7Q.js} +17 -16
  58. package/dist/bundle/{index-43V4q4_w.js → index-DOFIggts.js} +6160 -6113
  59. package/dist/bundle/index.d.ts.map +1 -1
  60. package/dist/bundle/procaptcha.bundle.js +1 -1
  61. package/dist/bundle/{sha256-CxfeEiTA.js → sha256-Cxc9Hrlx.js} +1 -1
  62. package/dist/bundle/toU8a-BWKf-2UU.js +133 -0
  63. package/dist/bundle/useTranslation-CgamIJ5S.js +550 -0
  64. package/dist/bundle/util/captchaType.d.ts.map +1 -1
  65. package/dist/bundle/util/config.d.ts +1 -1
  66. package/dist/bundle/util/config.d.ts.map +1 -1
  67. package/dist/bundle/util/renderLogic/captcha/captcha.d.ts +4 -8
  68. package/dist/bundle/util/renderLogic/captcha/captcha.d.ts.map +1 -1
  69. package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts +2 -2
  70. package/dist/bundle/util/renderLogic/captcha/captchaRenderer.d.ts.map +1 -1
  71. package/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts +2 -4
  72. package/dist/bundle/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  73. package/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts +2 -4
  74. package/dist/bundle/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +1 -1
  75. package/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts +2 -4
  76. package/dist/bundle/util/renderLogic/captcha/components/powCaptcha.d.ts.map +1 -1
  77. package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts +2 -2
  78. package/dist/bundle/util/renderLogic/captcha/componentsList.d.ts.map +1 -1
  79. package/dist/bundle/util/renderLogic/webComponent.d.ts.map +1 -1
  80. package/dist/bundle/util/renderLogic/widgetRenderer.d.ts +3 -4
  81. package/dist/bundle/util/renderLogic/widgetRenderer.d.ts.map +1 -1
  82. package/dist/components.d.ts +5 -0
  83. package/dist/components.d.ts.map +1 -0
  84. package/dist/components.js +5 -0
  85. package/dist/components.js.map +1 -0
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +3 -2
  88. package/dist/index.js.map +1 -1
  89. package/dist/tests/util/captchaType.test.js +4 -4
  90. package/dist/tests/util/captchaType.test.js.map +1 -1
  91. package/dist/util/captchaType.d.ts +2 -2
  92. package/dist/util/captchaType.d.ts.map +1 -1
  93. package/dist/util/captchaType.js +2 -2
  94. package/dist/util/captchaType.js.map +1 -1
  95. package/dist/util/config.d.ts +1 -1
  96. package/dist/util/config.d.ts.map +1 -1
  97. package/dist/util/config.js +2 -1
  98. package/dist/util/config.js.map +1 -1
  99. package/dist/util/renderLogic/captcha/captcha.d.ts +4 -8
  100. package/dist/util/renderLogic/captcha/captcha.d.ts.map +1 -1
  101. package/dist/util/renderLogic/captcha/captcha.js +1 -4
  102. package/dist/util/renderLogic/captcha/captcha.js.map +1 -1
  103. package/dist/util/renderLogic/captcha/captchaRenderer.d.ts +2 -2
  104. package/dist/util/renderLogic/captcha/captchaRenderer.d.ts.map +1 -1
  105. package/dist/util/renderLogic/captcha/captchaRenderer.js.map +1 -1
  106. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts +2 -4
  107. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.d.ts.map +1 -1
  108. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.js +10 -7
  109. package/dist/util/renderLogic/captcha/components/frictionlessCaptcha.js.map +1 -1
  110. package/dist/util/renderLogic/captcha/components/imageCaptcha.d.ts +2 -4
  111. package/dist/util/renderLogic/captcha/components/imageCaptcha.d.ts.map +1 -1
  112. package/dist/util/renderLogic/captcha/components/imageCaptcha.js +5 -7
  113. package/dist/util/renderLogic/captcha/components/imageCaptcha.js.map +1 -1
  114. package/dist/util/renderLogic/captcha/components/powCaptcha.d.ts +2 -4
  115. package/dist/util/renderLogic/captcha/components/powCaptcha.d.ts.map +1 -1
  116. package/dist/util/renderLogic/captcha/components/powCaptcha.js +5 -7
  117. package/dist/util/renderLogic/captcha/components/powCaptcha.js.map +1 -1
  118. package/dist/util/renderLogic/captcha/componentsList.d.ts +2 -2
  119. package/dist/util/renderLogic/captcha/componentsList.d.ts.map +1 -1
  120. package/dist/util/renderLogic/captcha/componentsList.js +4 -4
  121. package/dist/util/renderLogic/captcha/componentsList.js.map +1 -1
  122. package/dist/util/renderLogic/webComponent.d.ts.map +1 -1
  123. package/dist/util/renderLogic/webComponent.js +6 -1
  124. package/dist/util/renderLogic/webComponent.js.map +1 -1
  125. package/dist/util/renderLogic/widgetRenderer.d.ts +3 -4
  126. package/dist/util/renderLogic/widgetRenderer.d.ts.map +1 -1
  127. package/dist/util/renderLogic/widgetRenderer.js +1 -1
  128. package/dist/util/renderLogic/widgetRenderer.js.map +1 -1
  129. package/dist/util/renderLogic.js +2 -2
  130. package/dist/util/renderLogic.js.map +1 -1
  131. package/package.json +13 -9
  132. package/stats.html +1 -1
  133. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/defaultCallbacks.d.ts +0 -15
  134. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/defaultCallbacks.d.ts.map +0 -1
  135. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/defaultCallbacks.js +0 -178
  136. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/defaultCallbacks.js.map +0 -1
  137. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/form.d.ts +0 -2
  138. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/form.d.ts.map +0 -1
  139. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/form.js +0 -2
  140. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/form.js.map +0 -1
  141. package/dist/bundle/Checkbox-1g4X-3Qk.js +0 -631
  142. package/dist/bundle/ProcaptchaWidget-Br0TzJXc.js +0 -631
  143. package/dist/bundle/ProcaptchaWidget-weuONHx4.js +0 -154
  144. package/dist/bundle/util/defaultCallbacks.d.ts +0 -15
  145. package/dist/bundle/util/defaultCallbacks.d.ts.map +0 -1
  146. package/dist/bundle/util/form.d.ts +0 -2
  147. package/dist/bundle/util/form.d.ts.map +0 -1
  148. package/dist/util/defaultCallbacks.d.ts +0 -15
  149. package/dist/util/defaultCallbacks.d.ts.map +0 -1
  150. package/dist/util/defaultCallbacks.js +0 -178
  151. package/dist/util/defaultCallbacks.js.map +0 -1
  152. package/dist/util/form.d.ts +0 -2
  153. package/dist/util/form.d.ts.map +0 -1
  154. package/dist/util/form.js +0 -2
  155. package/dist/util/form.js.map +0 -1
@@ -1,11 +1,12 @@
1
1
  var ws = Object.defineProperty;
2
2
  var ps = (t, e, r) => e in t ? ws(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Yt = (t, e, r) => ps(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { z as Kr, A as li, B as W, x as _e, C as te, f as z, R as ys, D as gs, q as ee, E as ce, F as se, G as bs, I as di, i as Ht, j as zt, J as xs, K as Tc, L as vs, M as Es, N as ks, O as Ms, P as As, Q as _s, S as Ns, T as Ss, U as Bs, V as Is, W as Rs, w as Ts, X as Os, H as Us, n as Qt, Y as ze, Z as Ge, _ as Xe, e as Bn, t as Ls, b as Ps, o as $s, $ as qs, a0 as Cs, a1 as Ds, a2 as Zs, l as Hs, a3 as zs, a4 as Vs, a5 as Ks, a6 as Gs, a7 as Xs, a8 as Ys, a9 as js, aa as Ws, ab as Js, ac as Fs, ad as Qs, ae as to, d as eo, af as j, ag as ro } from "./hash-B8OCn-ev.js";
5
- import { U as no, V as io, u as Ne } from "./index-43V4q4_w.js";
6
- import { s as rr } from "./sha256-CxfeEiTA.js";
7
- import { h as hi, s as ui, m as so, v as oo, a as In, p as ao, b as mi } from "./bip39-CRbwrDSj.js";
8
- import { r as wi } from "./asU8a-DDBcjges.js";
4
+ import { x as li, s as ee, d as ys, r as di, f as Tc, g as gs, h as bs, H as xs, n as Qt, u as ze, i as Ge, b as Xe, e as Bn, t as vs, j as Es, o as ks, k as Ms, l as j } from "./toU8a-BWKf-2UU.js";
5
+ import { b as Kr, B as W, c as _e, d as te, u as z, R as As, e as _s, f as ce, g as se, j as Ht, i as zt, s as Ns, k as Ss, l as Bs, m as Is, n as Rs, o as Ts, p as Os, q as Us, r as Ls, v as Ps, t as $s, x as qs, y as Cs, z as Ds, A as Zs, C as Hs, D as zs, E as Vs, F as Ks, G as Gs, H as Xs, I as Ys, J as js, K as Ws, L as Js, M as Fs, N as Qs, O as to, P as eo, Q as ro } from "./hash-0yoKUuST.js";
6
+ import { M as no, N as io, B as Ne } from "./index-DOFIggts.js";
7
+ import { s as rr } from "./sha256-Cxc9Hrlx.js";
8
+ import { h as hi, s as ui, m as so, v as oo, a as In, p as ao, b as mi } from "./bip39-C01p7UHO.js";
9
+ import { a as wi } from "./asU8a-2GgUBNjQ.js";
9
10
  import { o as sn } from "./spread-DEmVz7RJ.js";
10
11
  const fo = { name: "@polkadot/util", path: import.meta && import.meta.url ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf("/") + 1) : "auto", type: "esm", version: "12.6.2" }, co = "POLKADOTJS_DISABLE_ESM_CJS_WARNING";
11
12
  function lo(t) {
@@ -1351,9 +1352,9 @@ function Ao(t, { bitLength: e = -1, isLe: r = !0, isNegative: i = !1 } = {}) {
1351
1352
  function _o(t) {
1352
1353
  if (!t || t === "0x")
1353
1354
  return "";
1354
- if (ys.test(t))
1355
+ if (As.test(t))
1355
1356
  return t.substring(2);
1356
- if (gs.test(t))
1357
+ if (_s.test(t))
1357
1358
  return t;
1358
1359
  throw new Error(`Expected hex value to convert, found '${t}'`);
1359
1360
  }
@@ -4543,7 +4544,7 @@ const { bytesToNumberBE: $a, hexToBytes: qa } = Ma, Wt = {
4543
4544
  const { _tlv: e, _int: r } = Wt, i = `${e.encode(2, r.encode(t.r))}${e.encode(2, r.encode(t.s))}`;
4544
4545
  return e.encode(48, i);
4545
4546
  }
4546
- }, Jt = BigInt(0), $t = BigInt(1), Cc = BigInt(2), Kn = BigInt(3), Dc = BigInt(4);
4547
+ }, Jt = BigInt(0), $t = BigInt(1), Dc = BigInt(2), Kn = BigInt(3), Zc = BigInt(4);
4547
4548
  function Ca(t) {
4548
4549
  const e = Pa(t), { Fp: r } = e, i = ar(e.n, e.nBitLength), l = e.toBytes || ((B, M, _) => {
4549
4550
  const U = M.toAffine();
@@ -5054,7 +5055,7 @@ function Za(t) {
5054
5055
  function Ha(t) {
5055
5056
  return {
5056
5057
  hash: t,
5057
- hmac: (e, ...r) => hi(t, e, bs(...r)),
5058
+ hmac: (e, ...r) => hi(t, e, ys(...r)),
5058
5059
  randomBytes: di
5059
5060
  };
5060
5061
  }
@@ -5108,7 +5109,7 @@ function xe(t, e) {
5108
5109
  if (t.length !== 32)
5109
5110
  throw new Error("Expected valid 32-byte private key as a seed");
5110
5111
  if (!Ht || !e && zt()) {
5111
- const r = xs(t), i = r.slice(32);
5112
+ const r = Ns(t), i = r.slice(32);
5112
5113
  if (vi(i))
5113
5114
  throw new Error("Invalid publicKey generated from WASM interface");
5114
5115
  return {
@@ -5394,10 +5395,10 @@ function Ja(t) {
5394
5395
  }
5395
5396
  };
5396
5397
  }
5397
- const Zc = BigInt(0), Hc = BigInt(1);
5398
+ const Hc = BigInt(0), zc = BigInt(1);
5398
5399
  const un = BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"), jn = /* @__PURE__ */ BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");
5399
5400
  BigInt(0);
5400
- const Fa = BigInt(1), Wn = BigInt(2), zc = BigInt(3), Qa = BigInt(5), tf = BigInt(8);
5401
+ const Fa = BigInt(1), Wn = BigInt(2), Vc = BigInt(3), Qa = BigInt(5), tf = BigInt(8);
5401
5402
  function ef(t) {
5402
5403
  const e = BigInt(10), r = BigInt(20), i = BigInt(40), l = BigInt(80), s = un, u = t * t % s * t % s, g = ht(u, Wn, s) * u % s, v = ht(g, Fa, s) * t % s, b = ht(v, Qa, s) * v % s, E = ht(b, e, s) * b % s, k = ht(E, r, s) * E % s, I = ht(k, i, s) * k % s, C = ht(I, l, s) * I % s, B = ht(C, l, s) * I % s, M = ht(B, e, s) * b % s;
5403
5404
  return { pow_p_5_8: ht(M, Wn, s) * t % s, b2: u };
@@ -5438,7 +5439,7 @@ const sf = ar(un, void 0, !0), of = {
5438
5439
  }, mn = Ja(of);
5439
5440
  function wn(t, e) {
5440
5441
  if (!Ht || !e && zt()) {
5441
- const i = vs(t);
5442
+ const i = Ss(t);
5442
5443
  return {
5443
5444
  publicKey: i.slice(32),
5444
5445
  secretKey: i.slice(0, 64)
@@ -5456,7 +5457,7 @@ function af(t, { publicKey: e, secretKey: r }, i) {
5456
5457
  throw new Error("Expected a valid publicKey");
5457
5458
  } else throw new Error("Expected a valid secretKey");
5458
5459
  const l = z(t), s = r.subarray(0, 32);
5459
- return !Ht || !i && zt() ? Es(e, s, l) : mn.sign(l, s);
5460
+ return !Ht || !i && zt() ? Bs(e, s, l) : mn.sign(l, s);
5460
5461
  }
5461
5462
  function Ki(t, e, r, i) {
5462
5463
  const l = z(t), s = z(r), m = z(e);
@@ -5465,7 +5466,7 @@ function Ki(t, e, r, i) {
5465
5466
  if (m.length !== 64)
5466
5467
  throw new Error(`Invalid signature, received ${m.length} bytes, expected 64`);
5467
5468
  try {
5468
- return !Ht || !i && zt() ? ks(m, l, s) : mn.verify(m, l, s);
5469
+ return !Ht || !i && zt() ? Is(m, l, s) : mn.verify(m, l, s);
5469
5470
  } catch {
5470
5471
  return !1;
5471
5472
  }
@@ -5490,7 +5491,7 @@ function Xi(t) {
5490
5491
  return Gi(t(lf(e), r));
5491
5492
  };
5492
5493
  }
5493
- const df = /* @__PURE__ */ Xi(Ms), hf = /* @__PURE__ */ Xi(As);
5494
+ const df = /* @__PURE__ */ Xi(Rs), hf = /* @__PURE__ */ Xi(Ts);
5494
5495
  function uf(t, { chainCode: e, isSoft: r }) {
5495
5496
  return r ? hf(t, e) : df(t, e);
5496
5497
  }
@@ -5512,14 +5513,14 @@ function ji(t) {
5512
5513
  const e = z(t);
5513
5514
  if (e.length !== 32)
5514
5515
  throw new Error(`Expected a seed matching 32 bytes, found ${e.length}`);
5515
- return Gi(_s(e));
5516
+ return Gi(Os(e));
5516
5517
  }
5517
5518
  function wf(t, { publicKey: e, secretKey: r }) {
5518
5519
  if ((e == null ? void 0 : e.length) !== 32)
5519
5520
  throw new Error("Expected a valid publicKey, 32-bytes");
5520
5521
  if ((r == null ? void 0 : r.length) !== 64)
5521
5522
  throw new Error("Expected a valid secretKey, 64-bytes");
5522
- return Ns(e, r, z(t));
5523
+ return Us(e, r, z(t));
5523
5524
  }
5524
5525
  function Wi(t, e, r) {
5525
5526
  const i = z(r), l = z(e);
@@ -5527,13 +5528,13 @@ function Wi(t, e, r) {
5527
5528
  throw new Error(`Invalid publicKey, received ${i.length} bytes, expected 32`);
5528
5529
  if (l.length !== 64)
5529
5530
  throw new Error(`Invalid signature, received ${l.length} bytes, expected 64`);
5530
- return Ss(l, z(t), i);
5531
+ return Ls(l, z(t), i);
5531
5532
  }
5532
5533
  const Jn = new Uint8Array();
5533
5534
  function pf(t, { secretKey: e }, r = Jn, i = Jn) {
5534
5535
  if ((e == null ? void 0 : e.length) !== 64)
5535
5536
  throw new Error("Invalid secretKey, expected 64-bytes");
5536
- return Bs(e, z(r), z(t), z(i));
5537
+ return Ps(e, z(r), z(t), z(i));
5537
5538
  }
5538
5539
  const Fn = new Uint8Array();
5539
5540
  function yf(t, e, r, i = Fn, l = Fn) {
@@ -5542,7 +5543,7 @@ function yf(t, e, r, i = Fn, l = Fn) {
5542
5543
  throw new Error("Invalid publicKey, expected 32-bytes");
5543
5544
  if (m.length !== 96)
5544
5545
  throw new Error("Invalid vrfSign output, expected 96 bytes");
5545
- return Is(s, z(i), z(t), z(l), m);
5546
+ return $s(s, z(i), z(t), z(l), m);
5546
5547
  }
5547
5548
  function gf(t, e = Ve.prefix) {
5548
5549
  const r = we(t);
@@ -5564,7 +5565,7 @@ for (let t = 0, e = ke, r = 1, i = 0; t < 24; t++) {
5564
5565
  e = (e << ke ^ (e >> vf) * kf) % Ef, e & xf && (l ^= ke << (ke << /* @__PURE__ */ BigInt(s)) - ke);
5565
5566
  Qi.push(l);
5566
5567
  }
5567
- const [Mf, Af] = /* @__PURE__ */ Rs(Qi, !0), Qn = (t, e, r) => r > 32 ? qs(t, e, r) : Cs(t, e, r), ti = (t, e, r) => r > 32 ? Ds(t, e, r) : Zs(t, e, r);
5568
+ const [Mf, Af] = /* @__PURE__ */ qs(Qi, !0), Qn = (t, e, r) => r > 32 ? Cs(t, e, r) : Ds(t, e, r), ti = (t, e, r) => r > 32 ? Zs(t, e, r) : Hs(t, e, r);
5568
5569
  function _f(t, e = 24) {
5569
5570
  const r = new Uint32Array(10);
5570
5571
  for (let i = 24 - e; i < 24; i++) {
@@ -5590,7 +5591,7 @@ function _f(t, e = 24) {
5590
5591
  }
5591
5592
  r.fill(0);
5592
5593
  }
5593
- class fr extends Us {
5594
+ class fr extends xs {
5594
5595
  // NOTE: we accept arguments in bytes instead of bits here.
5595
5596
  constructor(e, r, i, l = !1, s = 24) {
5596
5597
  if (super(), this.blockLen = e, this.suffix = r, this.outputLen = i, this.enableXOF = l, this.rounds = s, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, Qt(i), 0 >= this.blockLen || this.blockLen >= 200)
@@ -5603,7 +5604,7 @@ class fr extends Us {
5603
5604
  update(e) {
5604
5605
  Bn(this);
5605
5606
  const { blockLen: r, state: i } = this;
5606
- e = Ls(e);
5607
+ e = vs(e);
5607
5608
  const l = e.length;
5608
5609
  for (let s = 0; s < l; ) {
5609
5610
  const m = Math.min(r - this.pos, l - s);
@@ -5621,7 +5622,7 @@ class fr extends Us {
5621
5622
  e[i] ^= r, r & 128 && i === l - 1 && this.keccak(), e[l - 1] ^= 128, this.keccak();
5622
5623
  }
5623
5624
  writeInto(e) {
5624
- Bn(this, !1), Ps(e), this.finish();
5625
+ Bn(this, !1), Es(e), this.finish();
5625
5626
  const r = this.state, { blockLen: i } = this;
5626
5627
  for (let l = 0, s = e.length; l < s; ) {
5627
5628
  this.posOut >= i && this.keccak();
@@ -5639,7 +5640,7 @@ class fr extends Us {
5639
5640
  return Qt(e), this.xofInto(new Uint8Array(e));
5640
5641
  }
5641
5642
  digestInto(e) {
5642
- if ($s(e, this), this.finished)
5643
+ if (ks(e, this), this.finished)
5643
5644
  throw new Error("digest() was already called");
5644
5645
  return this.writeInto(e), this.destroy(), e;
5645
5646
  }
@@ -5654,7 +5655,7 @@ class fr extends Us {
5654
5655
  return e || (e = new fr(r, i, l, m, s)), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = i, e.outputLen = l, e.enableXOF = m, e.destroyed = this.destroyed, e;
5655
5656
  }
5656
5657
  }
5657
- const re = (t, e, r) => Ts(() => new fr(e, t, r));
5658
+ const re = (t, e, r) => gs(() => new fr(e, t, r));
5658
5659
  224 / 8;
5659
5660
  256 / 8;
5660
5661
  384 / 8;
@@ -5662,10 +5663,10 @@ const re = (t, e, r) => Ts(() => new fr(e, t, r));
5662
5663
  224 / 8;
5663
5664
  const Nf = /* @__PURE__ */ re(1, 136, 256 / 8);
5664
5665
  384 / 8;
5665
- const Sf = /* @__PURE__ */ re(1, 72, 512 / 8), ts = (t, e, r) => Os((i = {}) => new fr(e, t, i.dkLen === void 0 ? r : i.dkLen, !0));
5666
+ const Sf = /* @__PURE__ */ re(1, 72, 512 / 8), ts = (t, e, r) => bs((i = {}) => new fr(e, t, i.dkLen === void 0 ? r : i.dkLen, !0));
5666
5667
  128 / 8;
5667
5668
  256 / 8;
5668
- const cr = /* @__PURE__ */ Hs({ 256: zs, 512: Vs }, { 256: Nf, 512: Sf });
5669
+ const cr = /* @__PURE__ */ zs({ 256: Vs, 512: Ks }, { 256: Nf, 512: Sf });
5669
5670
  function Fr(t, e, r) {
5670
5671
  return t === "keccak" ? cr(e, void 0, r) : ce(e, void 0, void 0, r);
5671
5672
  }
@@ -5678,7 +5679,7 @@ const pn = {
5678
5679
  function es(t, e) {
5679
5680
  if (![33, 65].includes(t.length))
5680
5681
  throw new Error(`Invalid publicKey provided, received ${t.length} bytes input`);
5681
- return t.length === 33 ? t : !Ht || zt() ? Ks(t) : Le.ProjectivePoint.fromHex(t).toRawBytes(!0);
5682
+ return t.length === 33 ? t : !Ht || zt() ? Gs(t) : Le.ProjectivePoint.fromHex(t).toRawBytes(!0);
5682
5683
  }
5683
5684
  function yn(t, e) {
5684
5685
  if (![33, 65].includes(t.length))
@@ -5686,12 +5687,12 @@ function yn(t, e) {
5686
5687
  if (t.length === 65)
5687
5688
  return t.subarray(1);
5688
5689
  if (!Ht || zt())
5689
- return Gs(t).subarray(1);
5690
+ return Xs(t).subarray(1);
5690
5691
  const { px: r, py: i } = Le.ProjectivePoint.fromHex(t);
5691
5692
  return Ct(Vt(r, ye), Vt(i, ye));
5692
5693
  }
5693
5694
  function Tf(t, e, r, i = "blake2", l) {
5694
- const s = z(e).subarray(0, 64), m = z(t), u = !Ht || zt() ? Xs(m, s, r) : Le.Signature.fromCompact(s).addRecoveryBit(r).recoverPublicKey(m).toRawBytes();
5695
+ const s = z(e).subarray(0, 64), m = z(t), u = !Ht || zt() ? Ys(m, s, r) : Le.Signature.fromCompact(s).addRecoveryBit(r).recoverPublicKey(m).toRawBytes();
5695
5696
  if (!u)
5696
5697
  throw new Error("Unable to recover publicKey from signature");
5697
5698
  return i === "keccak" ? yn(u) : es(u);
@@ -5701,7 +5702,7 @@ function ei(t, { secretKey: e }, r = "blake2", i) {
5701
5702
  throw new Error("Expected valid secp256k1 secretKey, 32-bytes");
5702
5703
  const l = Fr(r, t, i);
5703
5704
  if (!Ht || zt())
5704
- return Ys(l, e);
5705
+ return js(l, e);
5705
5706
  const s = Le.sign(l, e, { lowS: !0 });
5706
5707
  return Ct(Vt(s.r, ye), Vt(s.s, ye), new Uint8Array([s.recovery || 0]));
5707
5708
  }
@@ -5755,8 +5756,8 @@ const qf = {
5755
5756
  256: rr,
5756
5757
  512: ui
5757
5758
  }, Cf = {
5758
- 256: js,
5759
- 512: Ws
5759
+ 256: Ws,
5760
+ 512: Js
5760
5761
  };
5761
5762
  function is(t, e, r = 256, i) {
5762
5763
  const l = z(t);
@@ -5804,22 +5805,22 @@ function Hf(t, e = "") {
5804
5805
  return i;
5805
5806
  }
5806
5807
  function zf(t, e, r) {
5807
- return !Ht || zt() ? Js(t) : so(t, e);
5808
+ return !Ht || zt() ? Fs(t) : so(t, e);
5808
5809
  }
5809
5810
  function as(t, e, r) {
5810
- return !Ht || zt() ? Fs(t) : oo(t, e);
5811
+ return !Ht || zt() ? Qs(t) : oo(t, e);
5811
5812
  }
5812
5813
  function Vf(t, e = "", r, i = 32) {
5813
5814
  if (as(t)) {
5814
5815
  if (![32, 64].includes(i))
5815
5816
  throw new Error(`Invalid seed length ${i}, expected 32 or 64`);
5816
5817
  } else throw new Error("Invalid bip39 mnemonic specified");
5817
- return i === 32 ? !Ht || zt() ? Qs(t, e) : In(t, e).subarray(0, 32) : In(t, e);
5818
+ return i === 32 ? !Ht || zt() ? to(t, e) : In(t, e).subarray(0, 32) : In(t, e);
5818
5819
  }
5819
5820
  function Kf(t, e = "", r, i) {
5820
5821
  if (as(t, r)) {
5821
5822
  if (zt())
5822
- return to(t, e);
5823
+ return eo(t, e);
5823
5824
  } else throw new Error("Invalid bip39 mnemonic specified");
5824
5825
  const l = zf(t, r), s = ee(`mnemonic${e}`);
5825
5826
  return ao(l, s).password.slice(0, 32);
@@ -6006,7 +6007,7 @@ function zr(t, e, r, i, l) {
6006
6007
  ri(r, m, t, e, r, s), u > 0 && (m += 16), ri(r, s, t, e += 16, r, m);
6007
6008
  }
6008
6009
  function ic(t, e, r) {
6009
- const i = eo({
6010
+ const i = Ms({
6010
6011
  dkLen: 32,
6011
6012
  asyncTick: 10,
6012
6013
  maxmem: 1073742848
@@ -6316,7 +6317,7 @@ const Vr = {
6316
6317
  function Bc({ publicKey: t }) {
6317
6318
  return t;
6318
6319
  }
6319
- class Vc {
6320
+ class Kc {
6320
6321
  constructor(e = {}) {
6321
6322
  Yt(this, "__internal__pairs");
6322
6323
  Yt(this, "__internal__type");
@@ -6511,10 +6512,10 @@ class Vc {
6511
6512
  }
6512
6513
  export {
6513
6514
  Nc as DEV_PHRASE,
6514
- Vc as Keyring,
6515
+ Kc as Keyring,
6515
6516
  ue as createPair,
6516
6517
  we as decodeAddress,
6517
- Vc as default,
6518
+ Kc as default,
6518
6519
  gf as encodeAddress,
6519
6520
  bc as packageInfo
6520
6521
  };
@@ -1,17 +1,18 @@
1
- import { u as g, R as i } from "./index-43V4q4_w.js";
2
- import { ah as m, j as l, ai as E, q as f } from "./hash-B8OCn-ev.js";
3
- const h = "dev";
1
+ import { B as g, c as i } from "./index-DOFIggts.js";
2
+ import { w as m, i as f, a as l } from "./hash-0yoKUuST.js";
3
+ import { s as E } from "./toU8a-BWKf-2UU.js";
4
+ const x = "dev";
4
5
  class y {
5
6
  }
6
- function x() {
7
+ function b() {
7
8
  return m().then(() => {
8
- if (!l())
9
+ if (!f())
9
10
  throw new Error("Unable to initialize @polkadot/util-crypto");
10
11
  return !0;
11
12
  }).catch(() => !1);
12
13
  }
13
- const b = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await b()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-B2mmLfsC.js")).Keyring, A = async () => (await import("./bip39-CRbwrDSj.js").then((a) => a.c)).entropyToMnemonic;
14
- class D extends y {
14
+ const h = async () => (await import("./fp.esm-C0kLYOiJ.js")).default, N = async () => (await (await (await h()).load()).get()).visitorId, T = async () => (await import("./Signer-DP9drQ55.js")).default, O = async () => (await import("./index-C8sSamyh.js")).Keyring, A = async () => (await import("./bip39-C01p7UHO.js").then((a) => a.c)).entropyToMnemonic;
15
+ class I extends y {
15
16
  async getAccount(e) {
16
17
  const t = await this.createAccount(e), n = await this.createExtension(t);
17
18
  return {
@@ -35,24 +36,24 @@ class D extends y {
35
36
  }
36
37
  },
37
38
  name: "procaptcha-web2",
38
- version: h,
39
+ version: x,
39
40
  signer: n
40
41
  };
41
42
  }
42
43
  async createAccount(e) {
43
- await x();
44
- const t = await O(), n = await N(), r = E(n, 128).slice(2), o = f(r), u = (await A())(o), s = "sr25519", w = new t({
44
+ await b();
45
+ const t = await O(), n = await N(), r = l(n, 128).slice(2), o = E(r), u = (await A())(o), s = "sr25519", d = new t({
45
46
  type: s
46
- }).addFromMnemonic(u), p = w.address;
47
+ }).addFromMnemonic(u), p = d.address;
47
48
  return {
48
49
  address: p,
49
50
  name: p,
50
- keypair: w
51
+ keypair: d
51
52
  };
52
53
  }
53
54
  }
54
55
  const F = async () => (await import("./index-QVME9Prx.js")).web3Enable;
55
- class I extends y {
56
+ class W extends y {
56
57
  async getAccount(e) {
57
58
  const { dappName: t, userAccountAddress: n } = e;
58
59
  if (!n)
@@ -63,7 +64,7 @@ class I extends y {
63
64
  if (o.length === 0)
64
65
  throw new i("WIDGET.NO_EXTENSION_FOUND");
65
66
  for (const c of o) {
66
- const s = (await c.accounts.get()).find((d) => d.address === n);
67
+ const s = (await c.accounts.get()).find((w) => w.address === n);
67
68
  if (s)
68
69
  return { account: s, extension: c };
69
70
  }
@@ -74,6 +75,6 @@ class I extends y {
74
75
  }
75
76
  export {
76
77
  y as Extension,
77
- D as ExtensionWeb2,
78
- I as ExtensionWeb3
78
+ I as ExtensionWeb2,
79
+ W as ExtensionWeb3
79
80
  };