@prosopo/procaptcha-bundle 2.5.5 → 2.6.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 (153) hide show
  1. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +5 -0
  2. package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts.map +1 -1
  3. package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js.map +1 -1
  4. package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +1 -0
  5. package/CHANGELOG.md +29 -0
  6. package/dist/bundle/{ProcaptchaWidget-CCSN3Dxj.js → ProcaptchaWidget-3gKvjeiH.js} +7 -7
  7. package/dist/bundle/ProcaptchaWidget-D6-M7iAv.js +360 -0
  8. package/dist/bundle/{asU8a-CAsEnbuP.js → asU8a-DCECA0Qe.js} +1 -1
  9. package/dist/bundle/bip39-BQoZog_M.js +365 -0
  10. package/dist/bundle/captchaComponentProvider-BW2eXmc3.js +1242 -0
  11. package/dist/bundle/{captchaRenderer-BBodRhQu.js → captchaRenderer-B_MgGzr9.js} +3 -3
  12. package/dist/bundle/{emotion-element-5486c51c.browser.esm-CQHFV-dS.js → emotion-element-5486c51c.browser.esm-CCAJ8JId.js} +192 -190
  13. package/dist/bundle/{hash-D-64Vz5z.js → hash-BR0YLxPF.js} +796 -483
  14. package/dist/bundle/{i18nFrontend-C_RgmvGh.js → i18nFrontend-CsPT71ro.js} +1 -1
  15. package/dist/bundle/{index-DxswvPTy.js → index-2or4-1WF.js} +170 -180
  16. package/dist/bundle/{index-9I1Aae33.js → index-BCjHZ8o6.js} +1 -1
  17. package/dist/bundle/{index-DkQ4njKa.js → index-BYUYvvuq.js} +7 -7
  18. package/dist/bundle/index-BjRdPnnE.js +1198 -0
  19. package/dist/bundle/index-WqEmiYQ_.js +4386 -0
  20. package/dist/bundle/locales/ar/translation.json +56 -0
  21. package/dist/bundle/locales/az/translation.json +56 -0
  22. package/dist/bundle/locales/cs/translation.json +56 -0
  23. package/dist/bundle/locales/el/translation.json +56 -0
  24. package/dist/bundle/locales/fi/translation.json +56 -0
  25. package/dist/bundle/locales/fr/translation.json +1 -1
  26. package/dist/bundle/locales/hi/translation.json +56 -0
  27. package/dist/bundle/locales/hu/translation.json +56 -0
  28. package/dist/bundle/locales/id/translation.json +56 -0
  29. package/dist/bundle/locales/ja/translation.json +56 -0
  30. package/dist/bundle/locales/jv/translation.json +56 -0
  31. package/dist/bundle/locales/ko/translation.json +56 -0
  32. package/dist/bundle/locales/ml/translation.json +56 -0
  33. package/dist/bundle/locales/ms/translation.json +56 -0
  34. package/dist/bundle/locales/nl/translation.json +56 -0
  35. package/dist/bundle/locales/no/translation.json +56 -0
  36. package/dist/bundle/locales/pl/translation.json +56 -0
  37. package/dist/bundle/locales/{pt-BR → pt-br}/translation.json +17 -17
  38. package/dist/bundle/locales/ro/translation.json +56 -0
  39. package/dist/bundle/locales/ru/translation.json +56 -0
  40. package/dist/bundle/locales/sr/translation.json +56 -0
  41. package/dist/bundle/locales/sv/translation.json +56 -0
  42. package/dist/bundle/locales/th/translation.json +56 -0
  43. package/dist/bundle/locales/tr/translation.json +56 -0
  44. package/dist/bundle/locales/uk/translation.json +56 -0
  45. package/dist/bundle/locales/vi/translation.json +56 -0
  46. package/dist/bundle/locales/zh-cn/translation.json +56 -0
  47. package/dist/bundle/procaptcha.bundle.js +1 -1
  48. package/dist/bundle/toU8a-C68WUzs_.js +24 -0
  49. package/dist/bundle/{translations-B0P9axY3.js → translations-DEL070wJ.js} +59 -26
  50. package/dist/bundle/{useTranslation-CEt2t9kE.js → useTranslation-BPbGzrhj.js} +3 -3
  51. package/dist/bundle/util/configCreator.d.ts +2 -2
  52. package/dist/bundle/util/configCreator.d.ts.map +1 -1
  53. package/dist/cjs/index.cjs +163 -0
  54. package/dist/cjs/util/captcha/captchaComponentProvider.cjs +19 -0
  55. package/dist/cjs/util/captcha/captchaComponentsList.cjs +12 -0
  56. package/dist/cjs/util/captcha/captchaRenderer.cjs +65 -0
  57. package/dist/cjs/util/captcha/captchaType.cjs +12 -0
  58. package/dist/cjs/util/captcha/components/frictionlessCaptcha.cjs +24 -0
  59. package/dist/cjs/util/captcha/components/imageCaptcha.cjs +17 -0
  60. package/dist/cjs/util/captcha/components/powCaptcha.cjs +17 -0
  61. package/dist/cjs/util/config.cjs +16 -0
  62. package/dist/cjs/util/configCreator.cjs +23 -0
  63. package/dist/cjs/util/language.cjs +18 -0
  64. package/dist/cjs/util/timeout.cjs +14 -0
  65. package/dist/cjs/util/widgetFactory.cjs +84 -0
  66. package/dist/cjs/util/widgetThemeResolver.cjs +16 -0
  67. package/dist/util/configCreator.d.ts +2 -2
  68. package/dist/util/configCreator.d.ts.map +1 -1
  69. package/dist/util/configCreator.js.map +1 -1
  70. package/dist/util/language.js.map +1 -1
  71. package/package.json +16 -13
  72. package/stats.html +1 -1
  73. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.d.ts +0 -5
  74. package/.rollup.cache/home/runner/work/captcha-private/captcha-private/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js.map +0 -1
  75. package/dist/bundle/ProcaptchaWidget-Dfex8hc8.js +0 -156
  76. package/dist/bundle/bip39-DCaMcFzo.js +0 -260
  77. package/dist/bundle/captchaComponentProvider-Dm44AMrY.js +0 -1018
  78. package/dist/bundle/index-DCHEbWAs.js +0 -1242
  79. package/dist/bundle/index-nNwZuute.js +0 -4373
  80. package/dist/bundle/sha256-Cxc9Hrlx.js +0 -171
  81. package/dist/bundle/toU8a-BWKf-2UU.js +0 -133
  82. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts +0 -0
  83. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.d.ts.map +0 -0
  84. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.js +0 -0
  85. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/components.js.map +0 -0
  86. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +0 -0
  87. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +0 -0
  88. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.js +0 -0
  89. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +0 -0
  90. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts +0 -0
  91. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.d.ts.map +0 -0
  92. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js +0 -0
  93. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/captchaType.test.js.map +0 -0
  94. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts +0 -0
  95. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.d.ts.map +0 -0
  96. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js +0 -0
  97. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/config.test.js.map +0 -0
  98. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts +0 -0
  99. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.d.ts.map +0 -0
  100. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js +0 -0
  101. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/tests/util/renderLogic.test.js.map +0 -0
  102. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts +0 -0
  103. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.d.ts.map +0 -0
  104. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js +0 -0
  105. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentProvider.js.map +0 -0
  106. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts +0 -0
  107. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.d.ts.map +0 -0
  108. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js +0 -0
  109. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaComponentsList.js.map +0 -0
  110. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts +0 -0
  111. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.d.ts.map +0 -0
  112. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js +0 -0
  113. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaProps.js.map +0 -0
  114. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts +0 -0
  115. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.d.ts.map +0 -0
  116. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js +0 -0
  117. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaRenderer.js.map +0 -0
  118. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts +0 -0
  119. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.d.ts.map +0 -0
  120. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js +0 -0
  121. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/captchaType.js.map +0 -0
  122. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts +0 -0
  123. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.d.ts.map +0 -0
  124. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js +0 -0
  125. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/frictionlessCaptcha.js.map +0 -0
  126. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts +0 -0
  127. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.d.ts.map +0 -0
  128. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js +0 -0
  129. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/imageCaptcha.js.map +0 -0
  130. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts +0 -0
  131. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.d.ts.map +0 -0
  132. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js +0 -0
  133. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/captcha/components/powCaptcha.js.map +0 -0
  134. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts +0 -0
  135. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.d.ts.map +0 -0
  136. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js +0 -0
  137. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/config.js.map +0 -0
  138. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/configCreator.js +0 -0
  139. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts +0 -0
  140. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.d.ts.map +0 -0
  141. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/language.js +0 -0
  142. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts +0 -0
  143. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.d.ts.map +0 -0
  144. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js +0 -0
  145. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/timeout.js.map +0 -0
  146. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts +0 -0
  147. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.d.ts.map +0 -0
  148. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js +0 -0
  149. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetFactory.js.map +0 -0
  150. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts +0 -0
  151. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.d.ts.map +0 -0
  152. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js +0 -0
  153. /package/.rollup.cache/home/runner/work/{captcha-private/captcha-private → captcha}/captcha/packages/procaptcha-bundle/dist/bundle/util/widgetThemeResolver.js.map +0 -0
@@ -0,0 +1,5 @@
1
+ import type { Languages } from "@prosopo/locale";
2
+ import { type ProcaptchaClientConfigOutput } from "@prosopo/types";
3
+ declare function createConfig(siteKey?: string, theme?: "light" | "dark", language?: (typeof Languages)[keyof typeof Languages], web2?: boolean, invisible?: boolean): ProcaptchaClientConfigOutput;
4
+ export { createConfig };
5
+ //# sourceMappingURL=configCreator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configCreator.d.ts","sourceRoot":"","sources":["../../../src/util/configCreator.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAEN,KAAK,4BAA4B,EAEjC,MAAM,gBAAgB,CAAC;AAExB,iBAAS,YAAY,CACpB,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,OAAO,GAAG,MAAgB,EACjC,QAAQ,CAAC,EAAE,OAAO,cAAc,EAChC,IAAI,UAAO,EACX,SAAS,UAAQ,GACf,4BAA4B,CAqB9B;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"configCreator.d.ts","sourceRoot":"","sources":["../../../src/util/configCreator.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAEN,KAAK,4BAA4B,EAEjC,MAAM,gBAAgB,CAAC;AAExB,iBAAS,YAAY,CACpB,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,GAAE,OAAO,GAAG,MAAgB,EACjC,QAAQ,CAAC,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,EACrD,IAAI,UAAO,EACX,SAAS,UAAQ,GACf,4BAA4B,CAqB9B;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"configCreator.js","sourceRoot":"","sources":["../../../src/util/configCreator.ts"],"names":[],"mappings":"AAeA,OAAO,EACN,sBAAsB,EAEtB,sBAAsB,GACtB,MAAM,gBAAgB,CAAC;AAExB,SAAS,YAAY,CACpB,OAAgB,EAChB,QAA0B,OAAO,EACjC,QAAgC,EAChC,IAAI,GAAG,IAAI,EACX,SAAS,GAAG,KAAK;IAEjB,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,OAAO,sBAAsB,CAAC,KAAK,CAAC;QACnC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;YAC1D,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACvE,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,WAAW;QAC1C,kBAAkB,EAAE,EAAE;QACtB,OAAO,EAAE;YACR,OAAO,EAAE,OAAO;SAChB;QACD,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,EAAE;QAC/C,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,EAAE;QACzD,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,MAAM,IAAI,KAAK;QAC1E,IAAI;QACJ,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QACzC,KAAK;QACL,QAAQ;KACR,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"configCreator.js","sourceRoot":"","sources":["../../../src/util/configCreator.ts"],"names":[],"mappings":"AAeA,OAAO,EACN,sBAAsB,EAEtB,sBAAsB,GACtB,MAAM,gBAAgB,CAAC;AAExB,SAAS,YAAY,CACpB,OAAgB,EAChB,QAA0B,OAAO,EACjC,QAAqD,EACrD,IAAI,GAAG,IAAI,EACX,SAAS,GAAG,KAAK;IAEjB,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;IAC9C,CAAC;IAED,OAAO,sBAAsB,CAAC,KAAK,CAAC;QACnC,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;YAC1D,CAAC,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YACvE,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,WAAW;QAC1C,kBAAkB,EAAE,EAAE;QACtB,OAAO,EAAE;YACR,OAAO,EAAE,OAAO;SAChB;QACD,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,EAAE;QAC/C,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,EAAE;QACzD,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,KAAK,MAAM,IAAI,KAAK;QAC1E,IAAI;QACJ,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QACzC,KAAK;QACL,QAAQ;KACR,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.js","sourceRoot":"","sources":["../../../src/util/language.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,cAAc,EAAkB,MAAM,iBAAiB,CAAC;AAkBjE,MAAM,CAAC,MAAM,WAAW,GAAG,CAC1B,aAAkD,EAClD,OAAgB,EAChB,MAAmC,EAClC,EAAE;IACH,MAAM,iBAAiB,GACtB,aAAa,EAAE,QAAQ,IAAI,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAElE,IAAI,iBAAiB,EAAE,CAAC;QACvB,MAAM,CAAC,QAAQ,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACvD,CAAC;AACF,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,iBAA4C,EAAE,EAAE;IACzE,IAAI,CAAC;QACJ,OAAO,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,+BAA+B,iBAAiB,EAAE,CAAC,CAAC;QAClE,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;AACF,CAAC,CAAC"}
package/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
1
+ # @prosopo/procaptcha-bundle
2
+
3
+ ## 2.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [52feffc]
8
+ - @prosopo/types@2.6.1
9
+ - @prosopo/procaptcha-frictionless@2.6.1
10
+ - @prosopo/procaptcha-pow@2.6.1
11
+ - @prosopo/procaptcha-react@2.6.1
12
+
13
+ ## 2.6.0
14
+
15
+ ### Minor Changes
16
+
17
+ - a0bfc8a: bump all pkg versions since independent versioning applied
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [a0bfc8a]
22
+ - @prosopo/dotenv@2.6.0
23
+ - @prosopo/locale@2.6.0
24
+ - @prosopo/procaptcha-frictionless@2.6.0
25
+ - @prosopo/procaptcha-pow@2.6.0
26
+ - @prosopo/procaptcha-react@2.6.0
27
+ - @prosopo/types@2.6.0
28
+ - @prosopo/util@2.6.0
29
+ - @prosopo/widget-skeleton@2.6.0
@@ -1,10 +1,10 @@
1
- import { j as c, a as H, P as _, b as T, c as N, g as ae, p as $, d as se, e as ie, E as ce, f as le, C as de } from "./captchaComponentProvider-Dm44AMrY.js";
2
- import { r as f, l as ue, P as X, R as he } from "./emotion-element-5486c51c.browser.esm-CQHFV-dS.js";
3
- import { b as M, d as D, a as w, A as C, l as pe } from "./index-DxswvPTy.js";
4
- import { u as q, b as ge, s as fe, a as me, c as xe } from "./useTranslation-CEt2t9kE.js";
5
- import { r as Ce } from "./index-9I1Aae33.js";
6
- import { h as U } from "./hash-D-64Vz5z.js";
7
- import { r as we } from "./asU8a-CAsEnbuP.js";
1
+ import { j as c, a as H, P as _, b as T, c as N, g as ae, p as $, d as se, e as ie, E as ce, f as le, C as de } from "./captchaComponentProvider-BW2eXmc3.js";
2
+ import { r as f, l as ue, P as X, R as he } from "./emotion-element-5486c51c.browser.esm-CCAJ8JId.js";
3
+ import { b as M, d as D, a as w, A as C, l as pe } from "./index-2or4-1WF.js";
4
+ import { u as q, b as ge, s as fe, a as me, c as xe } from "./useTranslation-BPbGzrhj.js";
5
+ import { r as Ce } from "./index-BCjHZ8o6.js";
6
+ import { h as U } from "./hash-BR0YLxPF.js";
7
+ import { r as we } from "./asU8a-DCECA0Qe.js";
8
8
  const be = (t) => Array.isArray(t) && t !== null, S = new Array(256), Y = new Array(256 * 256);
9
9
  for (let t = 0; t < 256; t++)
10
10
  S[t] = t.toString(16).padStart(2, "0");
@@ -0,0 +1,360 @@
1
+ import { g as W, p as V, c as C, d as j, e as K, E as $, j as Y, C as X } from "./captchaComponentProvider-BW2eXmc3.js";
2
+ import { l as q, P as z, r as y, M as D } from "./emotion-element-5486c51c.browser.esm-CCAJ8JId.js";
3
+ import { b as S, a as J, s as Q, u as Z, c as ee } from "./useTranslation-BPbGzrhj.js";
4
+ import { A as p, l as te, b as ne, d as se } from "./index-2or4-1WF.js";
5
+ function oe(t) {
6
+ return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
7
+ }
8
+ function F(t, ...e) {
9
+ if (!oe(t))
10
+ throw new Error("Uint8Array expected");
11
+ if (e.length > 0 && !e.includes(t.length))
12
+ throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
13
+ }
14
+ function O(t, e = !0) {
15
+ if (t.destroyed)
16
+ throw new Error("Hash instance has been destroyed");
17
+ if (e && t.finished)
18
+ throw new Error("Hash#digest() has already been called");
19
+ }
20
+ function re(t, e) {
21
+ F(t);
22
+ const n = e.outputLen;
23
+ if (t.length < n)
24
+ throw new Error(`digestInto() expects output buffer of length at least ${n}`);
25
+ }
26
+ const N = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), m = (t, e) => t << 32 - e | t >>> e;
27
+ function ce(t) {
28
+ if (typeof t != "string")
29
+ throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
30
+ return new Uint8Array(new TextEncoder().encode(t));
31
+ }
32
+ function M(t) {
33
+ return typeof t == "string" && (t = ce(t)), F(t), t;
34
+ }
35
+ class ae {
36
+ // Safe version that clones internal state
37
+ clone() {
38
+ return this._cloneInto();
39
+ }
40
+ }
41
+ function ie(t) {
42
+ const e = (o) => t().update(M(o)).digest(), n = t();
43
+ return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = () => t(), e;
44
+ }
45
+ function ue(t, e, n, o) {
46
+ if (typeof t.setBigUint64 == "function")
47
+ return t.setBigUint64(e, n, o);
48
+ const s = BigInt(32), c = BigInt(4294967295), a = Number(n >> s & c), r = Number(n & c), f = o ? 4 : 0, h = o ? 0 : 4;
49
+ t.setUint32(e + f, a, o), t.setUint32(e + h, r, o);
50
+ }
51
+ const fe = (t, e, n) => t & e ^ ~t & n, he = (t, e, n) => t & e ^ t & n ^ e & n;
52
+ class de extends ae {
53
+ constructor(e, n, o, s) {
54
+ super(), this.blockLen = e, this.outputLen = n, this.padOffset = o, this.isLE = s, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(e), this.view = N(this.buffer);
55
+ }
56
+ update(e) {
57
+ O(this);
58
+ const { view: n, buffer: o, blockLen: s } = this;
59
+ e = M(e);
60
+ const c = e.length;
61
+ for (let a = 0; a < c; ) {
62
+ const r = Math.min(s - this.pos, c - a);
63
+ if (r === s) {
64
+ const f = N(e);
65
+ for (; s <= c - a; a += s)
66
+ this.process(f, a);
67
+ continue;
68
+ }
69
+ o.set(e.subarray(a, a + r), this.pos), this.pos += r, a += r, this.pos === s && (this.process(n, 0), this.pos = 0);
70
+ }
71
+ return this.length += e.length, this.roundClean(), this;
72
+ }
73
+ digestInto(e) {
74
+ O(this), re(e, this), this.finished = !0;
75
+ const { buffer: n, view: o, blockLen: s, isLE: c } = this;
76
+ let { pos: a } = this;
77
+ n[a++] = 128, this.buffer.subarray(a).fill(0), this.padOffset > s - a && (this.process(o, 0), a = 0);
78
+ for (let i = a; i < s; i++)
79
+ n[i] = 0;
80
+ ue(o, s - 8, BigInt(this.length * 8), c), this.process(o, 0);
81
+ const r = N(e), f = this.outputLen;
82
+ if (f % 4)
83
+ throw new Error("_sha2: outputLen should be aligned to 32bit");
84
+ const h = f / 4, d = this.get();
85
+ if (h > d.length)
86
+ throw new Error("_sha2: outputLen bigger than state");
87
+ for (let i = 0; i < h; i++)
88
+ r.setUint32(4 * i, d[i], c);
89
+ }
90
+ digest() {
91
+ const { buffer: e, outputLen: n } = this;
92
+ this.digestInto(e);
93
+ const o = e.slice(0, n);
94
+ return this.destroy(), o;
95
+ }
96
+ _cloneInto(e) {
97
+ e || (e = new this.constructor()), e.set(...this.get());
98
+ const { blockLen: n, buffer: o, length: s, finished: c, destroyed: a, pos: r } = this;
99
+ return e.length = s, e.pos = r, e.finished = c, e.destroyed = a, s % n && e.buffer.set(o), e;
100
+ }
101
+ }
102
+ const le = /* @__PURE__ */ new Uint32Array([
103
+ 1116352408,
104
+ 1899447441,
105
+ 3049323471,
106
+ 3921009573,
107
+ 961987163,
108
+ 1508970993,
109
+ 2453635748,
110
+ 2870763221,
111
+ 3624381080,
112
+ 310598401,
113
+ 607225278,
114
+ 1426881987,
115
+ 1925078388,
116
+ 2162078206,
117
+ 2614888103,
118
+ 3248222580,
119
+ 3835390401,
120
+ 4022224774,
121
+ 264347078,
122
+ 604807628,
123
+ 770255983,
124
+ 1249150122,
125
+ 1555081692,
126
+ 1996064986,
127
+ 2554220882,
128
+ 2821834349,
129
+ 2952996808,
130
+ 3210313671,
131
+ 3336571891,
132
+ 3584528711,
133
+ 113926993,
134
+ 338241895,
135
+ 666307205,
136
+ 773529912,
137
+ 1294757372,
138
+ 1396182291,
139
+ 1695183700,
140
+ 1986661051,
141
+ 2177026350,
142
+ 2456956037,
143
+ 2730485921,
144
+ 2820302411,
145
+ 3259730800,
146
+ 3345764771,
147
+ 3516065817,
148
+ 3600352804,
149
+ 4094571909,
150
+ 275423344,
151
+ 430227734,
152
+ 506948616,
153
+ 659060556,
154
+ 883997877,
155
+ 958139571,
156
+ 1322822218,
157
+ 1537002063,
158
+ 1747873779,
159
+ 1955562222,
160
+ 2024104815,
161
+ 2227730452,
162
+ 2361852424,
163
+ 2428436474,
164
+ 2756734187,
165
+ 3204031479,
166
+ 3329325298
167
+ ]), A = /* @__PURE__ */ new Uint32Array([
168
+ 1779033703,
169
+ 3144134277,
170
+ 1013904242,
171
+ 2773480762,
172
+ 1359893119,
173
+ 2600822924,
174
+ 528734635,
175
+ 1541459225
176
+ ]), E = /* @__PURE__ */ new Uint32Array(64);
177
+ class ge extends de {
178
+ constructor() {
179
+ super(64, 32, 8, !1), this.A = A[0] | 0, this.B = A[1] | 0, this.C = A[2] | 0, this.D = A[3] | 0, this.E = A[4] | 0, this.F = A[5] | 0, this.G = A[6] | 0, this.H = A[7] | 0;
180
+ }
181
+ get() {
182
+ const { A: e, B: n, C: o, D: s, E: c, F: a, G: r, H: f } = this;
183
+ return [e, n, o, s, c, a, r, f];
184
+ }
185
+ // prettier-ignore
186
+ set(e, n, o, s, c, a, r, f) {
187
+ this.A = e | 0, this.B = n | 0, this.C = o | 0, this.D = s | 0, this.E = c | 0, this.F = a | 0, this.G = r | 0, this.H = f | 0;
188
+ }
189
+ process(e, n) {
190
+ for (let i = 0; i < 16; i++, n += 4)
191
+ E[i] = e.getUint32(n, !1);
192
+ for (let i = 16; i < 64; i++) {
193
+ const x = E[i - 15], u = E[i - 2], l = m(x, 7) ^ m(x, 18) ^ x >>> 3, w = m(u, 17) ^ m(u, 19) ^ u >>> 10;
194
+ E[i] = w + E[i - 7] + l + E[i - 16] | 0;
195
+ }
196
+ let { A: o, B: s, C: c, D: a, E: r, F: f, G: h, H: d } = this;
197
+ for (let i = 0; i < 64; i++) {
198
+ const x = m(r, 6) ^ m(r, 11) ^ m(r, 25), u = d + x + fe(r, f, h) + le[i] + E[i] | 0, w = (m(o, 2) ^ m(o, 13) ^ m(o, 22)) + he(o, s, c) | 0;
199
+ d = h, h = f, f = r, r = a + u | 0, a = c, c = s, s = o, o = u + w | 0;
200
+ }
201
+ o = o + this.A | 0, s = s + this.B | 0, c = c + this.C | 0, a = a + this.D | 0, r = r + this.E | 0, f = f + this.F | 0, h = h + this.G | 0, d = d + this.H | 0, this.set(o, s, c, a, r, f, h, d);
202
+ }
203
+ roundClean() {
204
+ E.fill(0);
205
+ }
206
+ destroy() {
207
+ this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
208
+ }
209
+ }
210
+ const xe = /* @__PURE__ */ ie(() => new ge()), pe = (t, e) => {
211
+ let n = 0;
212
+ const o = "0".repeat(e);
213
+ for (; ; ) {
214
+ const s = new TextEncoder().encode(n + t);
215
+ if (be(xe(s)).startsWith(o))
216
+ return n;
217
+ n += 1;
218
+ }
219
+ }, be = (t) => Array.from(t).map((e) => e.toString(16).padStart(2, "0")).join(""), me = (t, e, n, o, s) => {
220
+ const c = W(o), a = () => ({
221
+ showModal: !1,
222
+ loading: !1,
223
+ index: 0,
224
+ challenge: void 0,
225
+ solutions: void 0,
226
+ isHuman: !1,
227
+ captchaApi: void 0,
228
+ account: void 0
229
+ }), r = () => {
230
+ window.clearTimeout(Number(e.timeout)), u({ timeout: void 0 });
231
+ }, f = () => {
232
+ u({
233
+ isHuman: !1,
234
+ loading: !1
235
+ }), c.onFailed(), l(s == null ? void 0 : s.restart);
236
+ }, h = () => {
237
+ window.clearTimeout(Number(e.successfullChallengeTimeout)), u({ successfullChallengeTimeout: void 0 });
238
+ }, d = () => {
239
+ const g = {
240
+ userAccountAddress: "",
241
+ ...t
242
+ };
243
+ return e.account && (g.userAccountAddress = e.account.account.address), z.parse(g);
244
+ }, i = () => {
245
+ if (!e.account)
246
+ throw new C("GENERAL.ACCOUNT_NOT_FOUND", {
247
+ context: { error: "Account not loaded" }
248
+ });
249
+ return { account: e.account };
250
+ }, x = () => {
251
+ if (!e.dappAccount)
252
+ throw new C("GENERAL.SITE_KEY_MISSING");
253
+ return e.dappAccount;
254
+ }, u = S(e, n), l = (g) => {
255
+ r(), h(), u(a()), c.onReset(), g && g();
256
+ }, w = () => {
257
+ const g = d().captchas.pow.solutionTimeout, L = setTimeout(() => {
258
+ u({ isHuman: !1 }), c.onExpired(), l(s == null ? void 0 : s.restart);
259
+ }, g);
260
+ u({ successfullChallengeTimeout: L });
261
+ }, T = async () => {
262
+ await V(async () => {
263
+ var B;
264
+ if (e.loading || e.isHuman)
265
+ return;
266
+ l(), u({
267
+ loading: !0
268
+ }), u({ attemptCount: e.attemptCount + 1 });
269
+ const g = d(), I = await (async () => s ? s.userAccount : new (await $(g.web2))().getAccount(g))(), v = I.account.address;
270
+ if (u({
271
+ account: { account: { address: v } }
272
+ }), u({ dappAccount: g.account.address }), await J(100), !g.web2 && !g.userAccountAddress)
273
+ throw new C("GENERAL.ACCOUNT_NOT_FOUND", {
274
+ context: {
275
+ error: "Account address has not been set for web3 mode"
276
+ }
277
+ });
278
+ let H;
279
+ s != null && s.provider ? H = s.provider : H = await j(d());
280
+ const P = H.provider.url, R = new K(P, x()), b = await R.getPowCaptchaChallenge(v, x(), s == null ? void 0 : s.sessionId);
281
+ if (b.error)
282
+ u({
283
+ loading: !1,
284
+ error: {
285
+ message: b.error.message,
286
+ key: b.error.key || "API.UNKNOWN_ERROR"
287
+ }
288
+ });
289
+ else {
290
+ const U = pe(b.challenge, b.difficulty), _ = (B = I.extension) == null ? void 0 : B.signer;
291
+ if (!_ || !_.signRaw)
292
+ throw new C("GENERAL.CANT_FIND_KEYRINGPAIR", {
293
+ context: {
294
+ error: "Signer is not defined, cannot sign message to prove account ownership"
295
+ }
296
+ });
297
+ const k = await _.signRaw({
298
+ address: v,
299
+ data: Q(b[p.timestamp].toString()),
300
+ type: "bytes"
301
+ });
302
+ (await R.submitPowCaptchaSolution(b, i().account.account.address, x(), U, k.signature.toString(), g.captchas.pow.verifiedTimeout))[p.verified] ? (u({
303
+ isHuman: !0,
304
+ loading: !1
305
+ }), c.onHuman(q({
306
+ [p.providerUrl]: P,
307
+ [p.user]: i().account.account.address,
308
+ [p.dapp]: x(),
309
+ [p.challenge]: b.challenge,
310
+ [p.nonce]: U,
311
+ [p.timestamp]: b.timestamp,
312
+ [p.signature]: {
313
+ [p.provider]: b.signature.provider,
314
+ [p.user]: {
315
+ [p.timestamp]: k.signature.toString()
316
+ }
317
+ }
318
+ })), w()) : f();
319
+ }
320
+ }, T, () => {
321
+ l();
322
+ }, e.attemptCount, 3);
323
+ };
324
+ return {
325
+ start: T,
326
+ resetState: l
327
+ };
328
+ }, G = "procaptcha:execute", Ce = (t) => {
329
+ var u;
330
+ const { t: e } = Z(), n = t.config, o = t.i18n, s = n.theme === "light" ? ne : se, c = t.frictionlessState, a = t.callbacks || {}, [r, f] = ee(y.useState, y.useRef), [h, d] = y.useState(!1), i = S(r, f), x = y.useRef(me(n, r, i, a, c));
331
+ return y.useEffect(() => {
332
+ n.language && (o ? o.language !== n.language && o.changeLanguage(n.language).then((l) => l) : te().then((l) => {
333
+ l.language !== n.language && l.changeLanguage(n.language).then((w) => w);
334
+ }));
335
+ }, [o, n.language]), y.useEffect(() => {
336
+ r.error && (d(!1), r.error.key === "CAPTCHA.NO_SESSION_FOUND" && c && setTimeout(() => {
337
+ c.restart();
338
+ }, 3e3));
339
+ }, [r.error, c]), y.useEffect(() => {
340
+ if (n.mode === D.invisible) {
341
+ const l = (w) => {
342
+ try {
343
+ x.current.start();
344
+ } catch (T) {
345
+ console.error("Error starting PoW verification:", T);
346
+ }
347
+ };
348
+ return document.addEventListener(G, l), () => {
349
+ document.removeEventListener(G, l);
350
+ };
351
+ }
352
+ return () => {
353
+ };
354
+ }, [n.mode]), n.mode === D.invisible ? null : Y(X, { checked: r.isHuman, onChange: async () => {
355
+ h || (d(!0), await x.current.start(), d(!1));
356
+ }, theme: s, labelText: e("WIDGET.I_AM_HUMAN"), error: (u = r.error) == null ? void 0 : u.message, "aria-label": "human checkbox", loading: h });
357
+ };
358
+ export {
359
+ Ce as default
360
+ };
@@ -1,4 +1,4 @@
1
- import { X as r, Y as e } from "./hash-D-64Vz5z.js";
1
+ import { ay as r, az as e } from "./hash-BR0YLxPF.js";
2
2
  function n(a = 32) {
3
3
  return e(new Uint8Array(a));
4
4
  }