@acedatacloud/nexior 3.160.0 → 3.162.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/assets/{Auth-DPz9i8G-.js → Auth-CWHfE0Bh.js} +1 -1
  2. package/dist/assets/{BotPlaceholder-DqX-Tduk.js → BotPlaceholder-CXwVfZf3.js} +1 -1
  3. package/dist/assets/{Callback-C9vlfYCO.js → Callback-Dw23ybg2.js} +1 -1
  4. package/dist/assets/{Console-9_BAbVSB.js → Console-Bg3a295D.js} +1 -1
  5. package/dist/assets/{Consumption-CQEsCZ4o.js → Consumption-B9gj7rI5.js} +1 -1
  6. package/dist/assets/{Conversation-CyGfIbHp.js → Conversation-DmfA3sxW.js} +1 -1
  7. package/dist/assets/{CopyToClipboard-CeQg5KoF.js → CopyToClipboard-DDFChBm_.js} +1 -1
  8. package/dist/assets/{Detail-87pCjjWj.js → Detail-T7f3rgnJ.js} +2 -2
  9. package/dist/assets/{EditArray-D4mBNbbO.js → EditArray-bLEJluIK.js} +1 -1
  10. package/dist/assets/{Extra-hfxnK46R.js → Extra-Ckc1_mtB.js} +1 -1
  11. package/dist/assets/{FilePreview-D9aLbzRD.js → FilePreview-DyYhukMl.js} +1 -1
  12. package/dist/assets/{History-CvRzstZC.js → History-CpZWNn_D.js} +1 -1
  13. package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-LwvaJHCL.js → IconPark.vue_vue_type_script_setup_true_lang-CcuE7020.js} +1 -1
  14. package/dist/assets/{ImagePreview-R1Rwi00s.js → ImagePreview-B4dl6UUl.js} +1 -1
  15. package/dist/assets/{ImageWrapper-C1pcplbH.js → ImageWrapper-C7KzvBjb.js} +1 -1
  16. package/dist/assets/{Index-Bq-hsmeH.js → Index-B-Rv66fr.js} +1 -1
  17. package/dist/assets/{Index-rrTcXJdO.js → Index-B1WMh0J2.js} +1 -1
  18. package/dist/assets/{Index-M1gk7PWw.js → Index-B6CaUc6p.js} +1 -1
  19. package/dist/assets/{Index-BhT154H9.css → Index-BJj4jSnf.css} +1 -1
  20. package/dist/assets/{Index-C-eZJC5L.js → Index-BKKy5L-L.js} +1 -1
  21. package/dist/assets/{Index-a_iakO-J.js → Index-BhyqSwgS.js} +1 -1
  22. package/dist/assets/{Index-dPr9KP1o.js → Index-Bm4QYO2z.js} +1 -1
  23. package/dist/assets/{Index-BVYeiMbb.js → Index-BnqYI8B1.js} +1 -1
  24. package/dist/assets/{Index-C7LCcUBP.js → Index-BrI905TY.js} +1 -1
  25. package/dist/assets/{Index-Do6vaQ7h.js → Index-C8m5rWSy.js} +1 -1
  26. package/dist/assets/{Index-BCCUb4_r.js → Index-CGu_vtvZ.js} +1 -1
  27. package/dist/assets/{Index-C9Yd9AGh.js → Index-CNz_7K-8.js} +1 -1
  28. package/dist/assets/{Index-29Va8fOR.js → Index-CbE8WDa2.js} +1 -1
  29. package/dist/assets/{Index-Bym4xtfE.js → Index-CnakrVzF.js} +1 -1
  30. package/dist/assets/{Index-BhSTdRkr.js → Index-D7kqYKA9.js} +1 -1
  31. package/dist/assets/{Index-BfiqDC2R.js → Index-D7qfY-Vs.js} +1 -1
  32. package/dist/assets/{Index-a-CQoZu9.js → Index-DCOvvWff.js} +1 -1
  33. package/dist/assets/{Index-DJXLIY1s.js → Index-DT0U1fYz.js} +1 -1
  34. package/dist/assets/{Index-BwG4brWE.js → Index-EiKae0LE.js} +1 -1
  35. package/dist/assets/{Index-p4zdKBty.css → Index-L6J0zIbC.css} +1 -1
  36. package/dist/assets/{Index-Jx9MkwET.js → Index-Y8KKS5YR.js} +1 -1
  37. package/dist/assets/Index-h7_qcwYp.js +4 -0
  38. package/dist/assets/{Index-hHtqYLZ_.js → Index-iAMtAGA1.js} +1 -1
  39. package/dist/assets/{Index-B-d0Fs5N.js → Index-lJMndMZ7.js} +1 -1
  40. package/dist/assets/{Index-DYETrX4i.js → Index-nAlGJ2aj.js} +1 -1
  41. package/dist/assets/{Index-5bdWddP1.js → Index-uP5bcZ9C.js} +1 -1
  42. package/dist/assets/{Invitees-0X9__GPl.js → Invitees-CXmMeXs_.js} +1 -1
  43. package/dist/assets/{List-CzazZQ8N.js → List-BCqzCUGp.js} +1 -1
  44. package/dist/assets/{List-CgHbhNhn.js → List-BqMcDV57.js} +1 -1
  45. package/dist/assets/{List-KnUGyMLQ.js → List-C5_DWyZb.js} +1 -1
  46. package/dist/assets/{Main-CJTcPSXN.js → Main-DUe8uFEY.js} +1 -1
  47. package/dist/assets/{Navigator-yQCx8NQq.js → Navigator-caj9NvyO.js} +1 -1
  48. package/dist/assets/{NoTasks-_vaBHg1H.js → NoTasks-C0_ki8Ur.js} +1 -1
  49. package/dist/assets/{NotFound-Dtn3ZhtH.js → NotFound-BZ0PjgkI.js} +1 -1
  50. package/dist/assets/{OAuthCallback-BkUUGNDe.js → OAuthCallback-rJGNyWEb.js} +1 -1
  51. package/dist/assets/{Pagination-PD-0LSGM.js → Pagination-3WwpcEG-.js} +1 -1
  52. package/dist/assets/{Status-C8nNkNRA.js → Status-B-3tIyiq.js} +1 -1
  53. package/dist/assets/{Subscribe-DqZd8Kps.js → Subscribe-BzCSim6_.js} +1 -1
  54. package/dist/assets/{VideoPlayer-ixKxA2sA.js → VideoPlayer-lbflQfYO.js} +1 -1
  55. package/dist/assets/{_Uint8Array-BiD1huBQ.js → _Uint8Array-rxEgK7pZ.js} +1 -1
  56. package/dist/assets/{_baseClone-BVYtQ7Gi.js → _baseClone-CoFSI4Xz.js} +1 -1
  57. package/dist/assets/{_baseIteratee-BR94s4X9.js → _baseIteratee-BP_fhl98.js} +1 -1
  58. package/dist/assets/{_initCloneObject-D4e0ff3N.js → _initCloneObject-CSU1ND3o.js} +1 -1
  59. package/dist/assets/{add-BFYrTZu5.js → add-C-CLMzx4.js} +1 -1
  60. package/dist/assets/{all-wallets--4DdL_Ms.js → all-wallets-Dh-3cIg_.js} +1 -1
  61. package/dist/assets/{app-store-HIKx1QWA.js → app-store-CdSIGe2k.js} +1 -1
  62. package/dist/assets/{apple-Bfge4VG-.js → apple-DoADcqi3.js} +1 -1
  63. package/dist/assets/{arrow-bottom-CyzT80xw.js → arrow-bottom-CyFvfalx.js} +1 -1
  64. package/dist/assets/{arrow-bottom-circle-CYhb3qei.js → arrow-bottom-circle-BR8RckwT.js} +1 -1
  65. package/dist/assets/{arrow-left-DjPX0TSV.js → arrow-left-BH_EVnIw.js} +1 -1
  66. package/dist/assets/{arrow-right-BkMpbtmh.js → arrow-right-DZJdpv__.js} +1 -1
  67. package/dist/assets/{arrow-top-Zg3pwjX2.js → arrow-top-Bl_NWuCO.js} +1 -1
  68. package/dist/assets/{avatar-lWNSWF7H.js → avatar-Cxest084.js} +1 -1
  69. package/dist/assets/{bank-nh5YbyRW.js → bank-CtFLQcXv.js} +1 -1
  70. package/dist/assets/{basic-BDDuvg6N.js → basic-CN6GoObg.js} +1 -1
  71. package/dist/assets/{browser-kDC9Kjyt.js → browser-DnMqFLoO.js} +1 -1
  72. package/dist/assets/{byokCredential-8zW0EWNu.js → byokCredential-BxxS0esT.js} +1 -1
  73. package/dist/assets/{card-DJgoMF04.js → card-B8cMPY-O.js} +1 -1
  74. package/dist/assets/{castArray-Bt09wi5n.js → castArray-B2H9FWSG.js} +1 -1
  75. package/dist/assets/{chat-DHtOjgBN.js → chat-BDzBUqAR.js} +1 -1
  76. package/dist/assets/{checkmark-3B8RfTuk.js → checkmark-BYdSr5Xt.js} +1 -1
  77. package/dist/assets/{checkmark-bold-DVpYmygi.js → checkmark-bold-AuGKAxQn.js} +1 -1
  78. package/dist/assets/{chevron-bottom-5lK3IAN7.js → chevron-bottom-BRHconub.js} +1 -1
  79. package/dist/assets/{chevron-left-CCosBn07.js → chevron-left-CNrelQQT.js} +1 -1
  80. package/dist/assets/{chevron-right-DQDioxeo.js → chevron-right-D8pwAoEL.js} +1 -1
  81. package/dist/assets/{chevron-top-C0gYZ8TQ.js → chevron-top-DLsAFSc5.js} +1 -1
  82. package/dist/assets/{chrome-store-C78-YCEQ.js → chrome-store-Cd-rdHtd.js} +1 -1
  83. package/dist/assets/{clock-eNi_OvI_.js → clock-CDKOVWN3.js} +1 -1
  84. package/dist/assets/{close-DQmxBB22.js → close-DA6-jRe4.js} +1 -1
  85. package/dist/assets/{coinPlaceholder-Cxf7ku-L.js → coinPlaceholder-CkJiixxL.js} +1 -1
  86. package/dist/assets/{compass-nW2igrSW.js → compass-B9Z1VADa.js} +1 -1
  87. package/dist/assets/{copy-Db4sTGeC.js → copy-C_pc6iuN.js} +1 -1
  88. package/dist/assets/{createTaskActions-DwYdXyhL.js → createTaskActions-Dl49i_JA.js} +1 -1
  89. package/dist/assets/{cursor-BizGxUUM.js → cursor-DHA3q7im.js} +1 -1
  90. package/dist/assets/{cursor-transparent-Bu1QA8ju.js → cursor-transparent-CAkIxYll.js} +1 -1
  91. package/dist/assets/{debounce-Dw54MtuH.js → debounce-BCcGKj6U.js} +1 -1
  92. package/dist/assets/{desktop-DkkT2alq.js → desktop-Oal_Kgcg.js} +1 -1
  93. package/dist/assets/{disconnect-IYjjJfDP.js → disconnect-BCyBuxxI.js} +1 -1
  94. package/dist/assets/{discord-DDBitFtP.js → discord-CR2jyXtu.js} +1 -1
  95. package/dist/assets/{distribution-C167pyXd.js → distribution-XQH4Lhk5.js} +1 -1
  96. package/dist/assets/{dropdown-JN-brDcT.js → dropdown-8Ina1NwG.js} +1 -1
  97. package/dist/assets/{etherscan-D82jx7IA.js → etherscan-CzaUnJ8A.js} +1 -1
  98. package/dist/assets/{exclamation-triangle-CqosRBaQ.js → exclamation-triangle-DDijLHzr.js} +1 -1
  99. package/dist/assets/{extension-Dw3uIljP.js → extension-CSnCETai.js} +1 -1
  100. package/dist/assets/{external-link-Dpb7HZLT.js → external-link-CyYDZYYR.js} +1 -1
  101. package/dist/assets/{facebook-DiDlgzSF.js → facebook-C6OPBKIT.js} +1 -1
  102. package/dist/assets/{farcaster-Dcn-Bkwt.js → farcaster-NItkH33M.js} +1 -1
  103. package/dist/assets/{filters-Ck_JeZrG.js → filters-D70SWWN6.js} +1 -1
  104. package/dist/assets/{github-BLgwC3En.js → github-BD6D60VA.js} +1 -1
  105. package/dist/assets/{google-CkjLZeKk.js → google-CL4CHBLv.js} +1 -1
  106. package/dist/assets/{help-circle-CjKm53pq.js → help-circle-Bb4YjXkd.js} +1 -1
  107. package/dist/assets/{id-BxNrvWIH.js → id-Bg7DotmK.js} +1 -1
  108. package/dist/assets/{image-DIUHMnkd.js → image-COisjBw3.js} +1 -1
  109. package/dist/assets/{index-sFCT3lpt.js → index-AyRUBxd4.js} +1 -1
  110. package/dist/assets/{index-DTrxZ8pJ.js → index-BEXNUoMv.js} +1 -1
  111. package/dist/assets/{index-Cit3WrI0.js → index-BIiWMqeL.js} +1 -1
  112. package/dist/assets/{index-Dar-I44F.js → index-BKDppBCe.js} +1 -1
  113. package/dist/assets/{index-D6SZLMnd.js → index-BKKI0C_o.js} +1 -1
  114. package/dist/assets/{index-odNj5SMW.js → index-BalKdl4I.js} +1 -1
  115. package/dist/assets/{index-CCh2NEAb.js → index-BcQ33bMX.js} +1 -1
  116. package/dist/assets/{index-BM3gqP0x.js → index-Bil93Tro.js} +1 -1
  117. package/dist/assets/{index-D0NIn9ib.js → index-Bn-yW66l.js} +1 -1
  118. package/dist/assets/{index-DEM5kF_a.js → index-Bn6bJIWW.js} +1 -1
  119. package/dist/assets/{index-CficNTM1.js → index-BqvdpzbI.js} +1 -1
  120. package/dist/assets/{index-jXtaXkqa.js → index-BrOvr1pb.js} +1 -1
  121. package/dist/assets/{index-BrwqKFsW.js → index-BtzJAibB.js} +1 -1
  122. package/dist/assets/{index-CmyCa4ed.js → index-Bwrk7Ay6.js} +1 -1
  123. package/dist/assets/{index-2ElQZk0x.js → index-BzQJoc4N.js} +1 -1
  124. package/dist/assets/{index-DFUAnOLM.js → index-C1nFLlUB.js} +1 -1
  125. package/dist/assets/{index-Dk44p_Hy.js → index-C5h9Q8MC.js} +1 -1
  126. package/dist/assets/{index-BKRVAesK.js → index-C7UOzYYd.js} +1 -1
  127. package/dist/assets/{index-h_HUunWR.js → index-CBWw2dqX.js} +1 -1
  128. package/dist/assets/{index-8m75osgt.js → index-CCYrnVY8.js} +1 -1
  129. package/dist/assets/{index-BLngCsAK.js → index-CF1ww37w.js} +1 -1
  130. package/dist/assets/{index-BTrTHAoq.js → index-CG04RGrn.js} +1 -1
  131. package/dist/assets/{index-DJRzdav3.js → index-CHYLT97t.js} +1 -1
  132. package/dist/assets/{index-Bp3ZoMcw.js → index-COuezDm-.js} +1 -1
  133. package/dist/assets/{index-seBwMy5Q.js → index-CQbxCkA3.js} +1 -1
  134. package/dist/assets/{index-Cw0Kpxy1.js → index-CRznp8jk.js} +1 -1
  135. package/dist/assets/{index-BRXeCz_l.js → index-CYDHERfE.js} +1 -1
  136. package/dist/assets/{index-DaHifHLp.js → index-CYL-RFc_.js} +1 -1
  137. package/dist/assets/{index-CFcl_KB_.js → index-Cm5OjimQ.js} +1 -1
  138. package/dist/assets/{index-dqjpFpry.js → index-CpzfV0pW.js} +1 -1
  139. package/dist/assets/{index-DqLw0pEQ.js → index-Cu2Po3TS.js} +1 -1
  140. package/dist/assets/{index-CL4NzhV9.js → index-CuDB9gdd.js} +1 -1
  141. package/dist/assets/{index-C6ivkAdC.js → index-Cyxq6Qua.js} +2 -2
  142. package/dist/assets/{index-eqsNs8dC.js → index-D5rOlNGq.js} +1 -1
  143. package/dist/assets/{index-DmApChLU.js → index-D7HrNCd6.js} +1 -1
  144. package/dist/assets/{index-DGDNg16L.js → index-DAqtSXwe.js} +1 -1
  145. package/dist/assets/{index-B4Soetav.js → index-DLqlJAfA.js} +1 -1
  146. package/dist/assets/{index-B_BQVuPj.js → index-DQ7BtYvz.js} +1 -1
  147. package/dist/assets/{index-BU1Y_t7H.js → index-DRXhgLGg.js} +1 -1
  148. package/dist/assets/{index-CiRMcvJR.js → index-DfBSnkgR.js} +1 -1
  149. package/dist/assets/{index-CiT01r6e.js → index-Dh-jNQrR.js} +1 -1
  150. package/dist/assets/{index-mYB6jErX.js → index-DnRc5FMB.js} +1 -1
  151. package/dist/assets/{index-Cx9kV9Nl.js → index-Do96V_OF.js} +3 -3
  152. package/dist/assets/{index-DFLjWOUG.js → index-DpZxJ0M6.js} +1 -1
  153. package/dist/assets/{index-wTZvP8MC.js → index-DtdH4elb.js} +1 -1
  154. package/dist/assets/{index-CfL92THg.js → index-DvFXOuuR.js} +1 -1
  155. package/dist/assets/{index-BQPMd-eH.js → index-FOpEkA01.js} +1 -1
  156. package/dist/assets/{index-CKwniBqR.js → index-JI-AWDGe.js} +1 -1
  157. package/dist/assets/{index-DampeItv.js → index-L20hlNKs.js} +1 -1
  158. package/dist/assets/{index-DV0V1BMI.js → index-RD-mMB30.js} +1 -1
  159. package/dist/assets/{index-CwJNXc0r.js → index-UzoKOEii.js} +1 -1
  160. package/dist/assets/{index-BXbNxM2e.js → index-XdDjb_qZ.js} +1 -1
  161. package/dist/assets/{index-BSMSJgJd.js → index-Xv72FIVH.js} +4 -4
  162. package/dist/assets/{index-u4HyK25X.js → index-ZTLaZITs.js} +1 -1
  163. package/dist/assets/{index-DVetkIh5.js → index-aZuO1MNl.js} +1 -1
  164. package/dist/assets/{index-CE_DqiEq.js → index-b2PBMUP6.js} +1 -1
  165. package/dist/assets/{index-V3RWoj_d.js → index-luTn-W_l.js} +1 -1
  166. package/dist/assets/{index-BfDRghUD.js → index-mHJfpS-g.js} +5 -5
  167. package/dist/assets/{index-B5VQ5imj.js → index-n8xs681c.js} +1 -1
  168. package/dist/assets/{index-4KaufjBh.js → index-oZSQuc3z.js} +1 -1
  169. package/dist/assets/{index.browser.esm-N9YK20qn.js → index.browser.esm-C0AjK3ok.js} +1 -1
  170. package/dist/assets/{index.es-CvbBZHsC.js → index.es-DD6X2EPt.js} +1 -1
  171. package/dist/assets/{info-BrCaTaHa.js → info-C4KMlAq1.js} +1 -1
  172. package/dist/assets/{info-circle-BFufUgRc.js → info-circle-DGSR70Sk.js} +1 -1
  173. package/dist/assets/{isEqual-BdyeiVRo.js → isEqual-CbZBrtf3.js} +1 -1
  174. package/dist/assets/{isPlainObject-BPDenVaW.js → isPlainObject-D2wVAlac.js} +1 -1
  175. package/dist/assets/{lightbulb-DfTiMUGe.js → lightbulb-DY3RCbyM.js} +1 -1
  176. package/dist/assets/{mail-B7OJJexf.js → mail-SdbEDESl.js} +1 -1
  177. package/dist/assets/{midjourney-Bokdgi5z.js → midjourney-CnPVNdk4.js} +1 -1
  178. package/dist/assets/{midjourney-C9mesFbi.js → midjourney-_lDhk07O.js} +1 -1
  179. package/dist/assets/{midjourney-C45UFOHr.js → midjourney-gdtajJ_M.js} +1 -1
  180. package/dist/assets/{mobile-469hH4j0.js → mobile-EgH74Rl2.js} +1 -1
  181. package/dist/assets/{more-kzl9Kt5G.js → more-C960U83D.js} +1 -1
  182. package/dist/assets/{network-placeholder-BiwpkveE.js → network-placeholder-ilnAmgqr.js} +1 -1
  183. package/dist/assets/{nftPlaceholder-CNz303A5.js → nftPlaceholder-Csn0_dzo.js} +1 -1
  184. package/dist/assets/{off-CXxvM3rl.js → off-DROmGaJg.js} +1 -1
  185. package/dist/assets/{order-C7AjFrQw.js → order-BiuGmqe-.js} +1 -1
  186. package/dist/assets/{pagination-BwZYUq4g.js → pagination-DI9u8VbS.js} +1 -1
  187. package/dist/assets/{play-store-3wDrYqAT.js → play-store-C8S-7L4p.js} +1 -1
  188. package/dist/assets/{plus-Bs1KEkXC.js → plus-B6Adqxdl.js} +1 -1
  189. package/dist/assets/{price-CX6bEnDf.js → price-DnUP-rdM.js} +1 -1
  190. package/dist/assets/{producer-Bp7VBJaC.js → producer-DYPve2Lw.js} +1 -1
  191. package/dist/assets/{qr-code-qEcib_Ot.js → qr-code-L3f67Lhc.js} +1 -1
  192. package/dist/assets/{recycle-horizontal-Bi9XRiNM.js → recycle-horizontal-BOptpUSq.js} +1 -1
  193. package/dist/assets/{refresh-CZ3CDeKA.js → refresh-Dg1bee-F.js} +1 -1
  194. package/dist/assets/{reown-logo-CbYMSdjq.js → reown-logo-OHOdgqET.js} +1 -1
  195. package/dist/assets/{search-dhqfvWsD.js → search-qTm4Fy3p.js} +1 -1
  196. package/dist/assets/{secp256k1-K7A9t9ux.js → secp256k1-CCOfCah1.js} +1 -1
  197. package/dist/assets/{secp256k1-CCeMjEuF.js → secp256k1-DyBLShZg.js} +1 -1
  198. package/dist/assets/{seedream-Dulv-BrF.js → seedream-B_e-kC75.js} +1 -1
  199. package/dist/assets/{send-C-Fx1toe.js → send-Cng2Agiv.js} +1 -1
  200. package/dist/assets/{service-Cof6KMvv.js → service-DCBP4w6C.js} +1 -1
  201. package/dist/assets/{solana-wallets-DlxJSZLM.js → solana-wallets-CHdd2Soi.js} +2 -2
  202. package/dist/assets/{solana-wallets-vue-CWXloWJP.js → solana-wallets-vue-DXdQA3wF.js} +1 -1
  203. package/dist/assets/{suno-DfNwyKU0.js → suno-Bk-Q7Yhc.js} +1 -1
  204. package/dist/assets/{suno-CpZzO8rh.js → suno-BrgQ_BvV.js} +1 -1
  205. package/dist/assets/{suno-Bkc3vDdx.js → suno-VHZnREr3.js} +1 -1
  206. package/dist/assets/{swapHorizontal-D9Qjy4Xd.js → swapHorizontal-ClcM19xY.js} +1 -1
  207. package/dist/assets/{swapHorizontalBold-BLa0l1qm.js → swapHorizontalBold-C2zOVAGI.js} +1 -1
  208. package/dist/assets/{swapHorizontalMedium-CBDFH1vY.js → swapHorizontalMedium-DfWzT06C.js} +1 -1
  209. package/dist/assets/{swapHorizontalRoundedBold-D23cBWfe.js → swapHorizontalRoundedBold-CzWrlugC.js} +1 -1
  210. package/dist/assets/{swapVertical-BG97uzZj.js → swapVertical-BEuzT43E.js} +1 -1
  211. package/dist/assets/{telegram-CutbLQ-b.js → telegram-Vz49BmbI.js} +1 -1
  212. package/dist/assets/{three-dots-ClB0124X.js → three-dots-DIxrWEUM.js} +1 -1
  213. package/dist/assets/{twitch-BjEXNrgi.js → twitch-NB_CnOrf.js} +1 -1
  214. package/dist/assets/{twitterIcon-CV3Osvnv.js → twitterIcon-CurNDEql.js} +1 -1
  215. package/dist/assets/{typescript-DSGQifcX.js → typescript-B81uJgVE.js} +1 -1
  216. package/dist/assets/{use-form-item-3ehMTkya.js → use-form-item-C7Jxi2ST.js} +1 -1
  217. package/dist/assets/validator-DtSW4gh2.js +1 -0
  218. package/dist/assets/{verify-xbtEddxg.js → verify-7dT2G6tU.js} +1 -1
  219. package/dist/assets/{verify-filled-Dx6xqjib.js → verify-filled-HokfQN4y.js} +1 -1
  220. package/dist/assets/{w3m-modal-C53zqb2R.js → w3m-modal-BX4u6n70.js} +1 -1
  221. package/dist/assets/{wallet-Dfx1vjIt.js → wallet-DxYDyUIW.js} +1 -1
  222. package/dist/assets/{wallet-placeholder-DSB2yusW.js → wallet-placeholder-gz3NJUtM.js} +1 -1
  223. package/dist/assets/{walletconnect-DnXs2XMP.js → walletconnect-2MoQnfGl.js} +1 -1
  224. package/dist/assets/{warning-circle-BDC354aD.js → warning-circle-BjICCYBI.js} +1 -1
  225. package/dist/assets/{web-DtpWcAsY.js → web-CaAeAsJT.js} +1 -1
  226. package/dist/assets/{web-CLozh9Vz.js → web-Dm4lgJzB.js} +1 -1
  227. package/dist/assets/{x-CjgDUXYq.js → x-BFi7xuLm.js} +1 -1
  228. package/dist/index.html +1 -1
  229. package/package.json +1 -1
  230. package/dist/assets/Index-BWrnuP2j.js +0 -4
  231. package/dist/assets/validator-CXvtvyBw.js +0 -1
@@ -1 +1 @@
1
- import{H as Xt,c as St,a as xt,t as Qt,b as de,d as he,r as P,e as ge,f as we,g as pe,h as be}from"./index-BfDRghUD.js";import"./index.browser.esm-N9YK20qn.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BSMSJgJd.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=St(this.buffer)}update(e){xt(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=St(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=St(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=P(l,7)^P(l,18)^l>>>3,b=P(m,17)^P(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=P(f,6)^P(f,11)^P(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(P(r,2)^P(r,13)^P(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);const zt=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function bt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){bt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function gt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Ct(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?zt:BigInt("0x"+n)}const D={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=D._0&&n<=D._9)return n-D._0;if(n>=D.A&&n<=D.F)return n-(D.A-10);if(n>=D.a&&n<=D.f)return n-(D.a-10)}function wt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Ct(ut(n))}function Zt(n){return bt(n),Ct(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return wt(n.toString(16).padStart(e*2,"0"))}function Rt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=wt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function pt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];bt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const At=n=>typeof n=="bigint"&&zt<=n;function Et(n,e,t){return At(n)&&At(e)&&At(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Et(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>zt;n>>=Jt,e+=1);return e}const Mt=n=>(Ae<<BigInt(n-1))-Jt,It=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=It(n),o=It(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=It())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return pt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function yt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function Ht(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:bt,bitLen:te,bitMask:Mt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Zt,concatBytes:pt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:wt,hexToNumber:Ct,inRange:Et,isBytes:it,memoized:Ht,numberToBytesBE:lt,numberToBytesLE:Rt,numberToHexUnpadded:gt,validateObject:yt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);const z=BigInt(0),_=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===_)return z;let r=_;for(;e>z;)e&_&&(r=r*n%t),n=n*n%t,e>>=_;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function _t(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=_;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==_)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-_)/nt;let t,r,o;for(t=n-_,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-_;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+_)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+_)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,_<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function Ue(n){if(n%Ut===Oe){const e=(n+_)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const _e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Te(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=_e.reduce((r,o)=>(r[o]="function",r),e);return yt(n,t)}function ke(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===_)return e;let r=n.ONE,o=e;for(;t>z;)t&_&&(r=n.mul(r,o)),o=n.sqr(o),t>>=_;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Mt(o),ZERO:z,ONE:_,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&_)===_,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>ke(f,i,u),div:(i,u)=>V(i*_t(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>_t(i,n),sqrt:r.sqrt||(i=>(c||(c=Ue(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Rt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Zt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Zt(n):rt(n),f=V(c,e-_)+_;return t?Rt(f,o):lt(f,o)}const Pt=BigInt(0),mt=BigInt(1);function Nt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function qt(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Ot=new WeakMap,ae=new WeakMap;function Lt(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:Nt,hasPrecomputes(t){return Lt(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Pt;)r&mt&&(o=o.add(s)),s=s.double(),r>>=mt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=qt(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=qt(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=mt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(Nt(g,r[b])):f=f.add(Nt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=qt(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Pt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=mt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Ot.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Ot.set(r,o(s))),s},wNAFCached(t,r,o){const s=Lt(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Lt(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Ot.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return Te(n.Fp),yt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}function Gt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);yt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=gt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?gt(o.length/2|128):"";return gt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=gt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;bt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),k=BigInt(1);BigInt(2);const Dt=BigInt(3);BigInt(4);function Pe(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return pt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Et(b,k,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,k,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=Ht((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=Ht(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Dt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),U=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,U),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),U=t.mul(a,U),H=t.sub(v,U),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,U),v=t.mul(v,H),B=t.add(B,v),U=t.mul(q,L),U=t.add(U,U),v=t.mul(U,H),I=t.sub(I,v),A=t.mul(U,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,U=t.mul(e.b,Dt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(U,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(U,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===k)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&k&&(A=A.add(C)),B&k&&(v=v.add(C)),C=C.double(),L>>=k,B>>=k;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,k,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:U,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),U=N.constTimeNegate(B,U),U=new l(t.mul(U.px,g.beta),U.py,U.pz),E=v.add(U),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===k||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===k)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===k?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Ge(n){const e=ue(n);return yt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function De(n){const e=Ge(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return _t(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=Pe({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),T=pt;return at("isCompressed",p),p?T(Uint8Array.from([w.hasEvenY()?2:3]),O):T(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Et(O,k,t.ORDER))throw new Error("Point is not on curve");const T=y(O);let R;try{R=t.sqrt(T)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&k)===k;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),T=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:T}}else{const O=o,T=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+T+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>k;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,k,r),ot("s",this.s,k,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,T=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",G=i.fromHex(Z+l(R)),F=f(R),M=c(-T*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(G,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return wt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return wt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Mt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:T,prehash:R,extraEntropy:Z}=p;T==null&&(T=!0),d=K("msgHash",d),Gt(p),R&&(d=K("prehashed msgHash",S(d)));const G=I(d),F=u(w),M=[A(F),A(G)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=pt(...M),X=G;function Bt(tt){const ct=L(tt);if(!h(ct))return;const vt=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(vt*c(X+et*F));if(ht===W)return;let ft=(dt.x===et?0:2)|Number(dt.y&k),Vt=ht;return T&&m(ht)&&(Vt=N(ht),ft^=1),new a(et,Vt,ft)}return{seed:st,k2sig:Bt}}const C={lowS:e.lowS,prehash:!1},U={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),T=e;return ee(T.hash.outputLen,T.nByteLength,T.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=U){const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:T,prehash:R,format:Z}=S;if(Gt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const G=typeof O=="string"||it(O),F=!G&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!G&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),G){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||T&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:Bt}=M,tt=I(w),ct=f(Bt),vt=c(tt*ct),dt=c(X*ct),et=i.BASE.multiplyAndAddUnsafe(st,vt,dt)?.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>De({...n,...$e(r)});return{...t(e),create:t}}const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),Tt=BigInt(2),Wt=(n,e)=>(n+e/Tt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,Tt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,Tt,e);if(!kt.eql(kt.sqr(I),n))throw new Error("Cannot find square root");return I}const kt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:kt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
1
+ import{H as Xt,c as St,a as xt,t as Qt,b as de,d as he,r as P,e as ge,f as we,g as pe,h as be}from"./index-mHJfpS-g.js";import"./index.browser.esm-C0AjK3ok.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-Xv72FIVH.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=St(this.buffer)}update(e){xt(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=St(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=St(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=P(l,7)^P(l,18)^l>>>3,b=P(m,17)^P(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=P(f,6)^P(f,11)^P(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(P(r,2)^P(r,13)^P(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);const zt=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function bt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){bt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function gt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Ct(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?zt:BigInt("0x"+n)}const D={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=D._0&&n<=D._9)return n-D._0;if(n>=D.A&&n<=D.F)return n-(D.A-10);if(n>=D.a&&n<=D.f)return n-(D.a-10)}function wt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Ct(ut(n))}function Zt(n){return bt(n),Ct(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return wt(n.toString(16).padStart(e*2,"0"))}function Rt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=wt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function pt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];bt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const At=n=>typeof n=="bigint"&&zt<=n;function Et(n,e,t){return At(n)&&At(e)&&At(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Et(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>zt;n>>=Jt,e+=1);return e}const Mt=n=>(Ae<<BigInt(n-1))-Jt,It=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=It(n),o=It(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=It())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return pt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function yt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function Ht(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:bt,bitLen:te,bitMask:Mt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Zt,concatBytes:pt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:wt,hexToNumber:Ct,inRange:Et,isBytes:it,memoized:Ht,numberToBytesBE:lt,numberToBytesLE:Rt,numberToHexUnpadded:gt,validateObject:yt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);const z=BigInt(0),_=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===_)return z;let r=_;for(;e>z;)e&_&&(r=r*n%t),n=n*n%t,e>>=_;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function _t(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=_;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==_)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-_)/nt;let t,r,o;for(t=n-_,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-_;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+_)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+_)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,_<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function Ue(n){if(n%Ut===Oe){const e=(n+_)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const _e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Te(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=_e.reduce((r,o)=>(r[o]="function",r),e);return yt(n,t)}function ke(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===_)return e;let r=n.ONE,o=e;for(;t>z;)t&_&&(r=n.mul(r,o)),o=n.sqr(o),t>>=_;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Mt(o),ZERO:z,ONE:_,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&_)===_,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>ke(f,i,u),div:(i,u)=>V(i*_t(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>_t(i,n),sqrt:r.sqrt||(i=>(c||(c=Ue(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Rt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Zt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Zt(n):rt(n),f=V(c,e-_)+_;return t?Rt(f,o):lt(f,o)}const Pt=BigInt(0),mt=BigInt(1);function Nt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function qt(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Ot=new WeakMap,ae=new WeakMap;function Lt(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:Nt,hasPrecomputes(t){return Lt(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Pt;)r&mt&&(o=o.add(s)),s=s.double(),r>>=mt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=qt(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=qt(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=mt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(Nt(g,r[b])):f=f.add(Nt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=qt(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Pt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=mt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Ot.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Ot.set(r,o(s))),s},wNAFCached(t,r,o){const s=Lt(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Lt(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Ot.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return Te(n.Fp),yt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}function Gt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);yt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=gt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?gt(o.length/2|128):"";return gt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=gt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;bt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),k=BigInt(1);BigInt(2);const Dt=BigInt(3);BigInt(4);function Pe(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return pt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Et(b,k,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,k,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=Ht((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=Ht(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Dt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),U=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,U),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),U=t.mul(a,U),H=t.sub(v,U),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,U),v=t.mul(v,H),B=t.add(B,v),U=t.mul(q,L),U=t.add(U,U),v=t.mul(U,H),I=t.sub(I,v),A=t.mul(U,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,U=t.mul(e.b,Dt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(U,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(U,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===k)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&k&&(A=A.add(C)),B&k&&(v=v.add(C)),C=C.double(),L>>=k,B>>=k;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,k,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:U,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),U=N.constTimeNegate(B,U),U=new l(t.mul(U.px,g.beta),U.py,U.pz),E=v.add(U),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===k||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===k)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===k?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Ge(n){const e=ue(n);return yt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function De(n){const e=Ge(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return _t(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=Pe({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),T=pt;return at("isCompressed",p),p?T(Uint8Array.from([w.hasEvenY()?2:3]),O):T(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Et(O,k,t.ORDER))throw new Error("Point is not on curve");const T=y(O);let R;try{R=t.sqrt(T)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&k)===k;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),T=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:T}}else{const O=o,T=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+T+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>k;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,k,r),ot("s",this.s,k,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,T=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",G=i.fromHex(Z+l(R)),F=f(R),M=c(-T*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(G,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return wt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return wt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Mt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:T,prehash:R,extraEntropy:Z}=p;T==null&&(T=!0),d=K("msgHash",d),Gt(p),R&&(d=K("prehashed msgHash",S(d)));const G=I(d),F=u(w),M=[A(F),A(G)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=pt(...M),X=G;function Bt(tt){const ct=L(tt);if(!h(ct))return;const vt=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(vt*c(X+et*F));if(ht===W)return;let ft=(dt.x===et?0:2)|Number(dt.y&k),Vt=ht;return T&&m(ht)&&(Vt=N(ht),ft^=1),new a(et,Vt,ft)}return{seed:st,k2sig:Bt}}const C={lowS:e.lowS,prehash:!1},U={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),T=e;return ee(T.hash.outputLen,T.nByteLength,T.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=U){const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:T,prehash:R,format:Z}=S;if(Gt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const G=typeof O=="string"||it(O),F=!G&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!G&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),G){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||T&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:Bt}=M,tt=I(w),ct=f(Bt),vt=c(tt*ct),dt=c(X*ct),et=i.BASE.multiplyAndAddUnsafe(st,vt,dt)?.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>De({...n,...$e(r)});return{...t(e),create:t}}const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),Tt=BigInt(2),Wt=(n,e)=>(n+e/Tt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,Tt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,Tt,e);if(!kt.eql(kt.sqr(I),n))throw new Error("Cannot find square root");return I}const kt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:kt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
@@ -1 +1 @@
1
- import{i as Xt,j as St,k as xt,l as Qt,m as de,n as he,o as P,p as ge,q as we,s as pe,u as be}from"./index-BfDRghUD.js";import"./index.browser.esm-N9YK20qn.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BSMSJgJd.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=St(this.buffer)}update(e){xt(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=St(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=St(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=P(l,7)^P(l,18)^l>>>3,b=P(m,17)^P(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=P(f,6)^P(f,11)^P(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(P(r,2)^P(r,13)^P(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);const zt=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function bt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){bt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function gt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Ct(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?zt:BigInt("0x"+n)}const D={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=D._0&&n<=D._9)return n-D._0;if(n>=D.A&&n<=D.F)return n-(D.A-10);if(n>=D.a&&n<=D.f)return n-(D.a-10)}function wt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Ct(ut(n))}function Zt(n){return bt(n),Ct(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return wt(n.toString(16).padStart(e*2,"0"))}function Rt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=wt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function pt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];bt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const At=n=>typeof n=="bigint"&&zt<=n;function Et(n,e,t){return At(n)&&At(e)&&At(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Et(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>zt;n>>=Jt,e+=1);return e}const Mt=n=>(Ae<<BigInt(n-1))-Jt,It=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=It(n),o=It(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=It())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return pt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function yt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function Ht(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:bt,bitLen:te,bitMask:Mt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Zt,concatBytes:pt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:wt,hexToNumber:Ct,inRange:Et,isBytes:it,memoized:Ht,numberToBytesBE:lt,numberToBytesLE:Rt,numberToHexUnpadded:gt,validateObject:yt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);const z=BigInt(0),_=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===_)return z;let r=_;for(;e>z;)e&_&&(r=r*n%t),n=n*n%t,e>>=_;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function _t(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=_;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==_)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-_)/nt;let t,r,o;for(t=n-_,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-_;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+_)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+_)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,_<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function Ue(n){if(n%Ut===Oe){const e=(n+_)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const _e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ke(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=_e.reduce((r,o)=>(r[o]="function",r),e);return yt(n,t)}function Te(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===_)return e;let r=n.ONE,o=e;for(;t>z;)t&_&&(r=n.mul(r,o)),o=n.sqr(o),t>>=_;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Mt(o),ZERO:z,ONE:_,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&_)===_,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>Te(f,i,u),div:(i,u)=>V(i*_t(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>_t(i,n),sqrt:r.sqrt||(i=>(c||(c=Ue(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Rt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Zt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Zt(n):rt(n),f=V(c,e-_)+_;return t?Rt(f,o):lt(f,o)}const Pt=BigInt(0),mt=BigInt(1);function Nt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function qt(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Ot=new WeakMap,ae=new WeakMap;function Lt(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:Nt,hasPrecomputes(t){return Lt(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Pt;)r&mt&&(o=o.add(s)),s=s.double(),r>>=mt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=qt(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=qt(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=mt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(Nt(g,r[b])):f=f.add(Nt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=qt(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Pt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=mt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Ot.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Ot.set(r,o(s))),s},wNAFCached(t,r,o){const s=Lt(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Lt(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Ot.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return ke(n.Fp),yt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}function Gt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);yt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=gt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?gt(o.length/2|128):"";return gt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=gt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;bt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),T=BigInt(1);BigInt(2);const Dt=BigInt(3);BigInt(4);function Pe(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return pt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Et(b,T,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,T,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=Ht((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=Ht(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Dt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),U=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,U),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),U=t.mul(a,U),H=t.sub(v,U),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,U),v=t.mul(v,H),B=t.add(B,v),U=t.mul(q,L),U=t.add(U,U),v=t.mul(U,H),I=t.sub(I,v),A=t.mul(U,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,U=t.mul(e.b,Dt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(U,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(U,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===T)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&T&&(A=A.add(C)),B&T&&(v=v.add(C)),C=C.double(),L>>=T,B>>=T;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,T,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:U,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),U=N.constTimeNegate(B,U),U=new l(t.mul(U.px,g.beta),U.py,U.pz),E=v.add(U),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===T||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===T)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===T?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Ge(n){const e=ue(n);return yt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function De(n){const e=Ge(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return _t(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=Pe({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),k=pt;return at("isCompressed",p),p?k(Uint8Array.from([w.hasEvenY()?2:3]),O):k(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Et(O,T,t.ORDER))throw new Error("Point is not on curve");const k=y(O);let R;try{R=t.sqrt(k)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&T)===T;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),k=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:k}}else{const O=o,k=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+k+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>T;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,T,r),ot("s",this.s,T,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,k=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",G=i.fromHex(Z+l(R)),F=f(R),M=c(-k*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(G,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return wt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return wt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Mt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:k,prehash:R,extraEntropy:Z}=p;k==null&&(k=!0),d=K("msgHash",d),Gt(p),R&&(d=K("prehashed msgHash",S(d)));const G=I(d),F=u(w),M=[A(F),A(G)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=pt(...M),X=G;function Bt(tt){const ct=L(tt);if(!h(ct))return;const vt=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(vt*c(X+et*F));if(ht===W)return;let ft=(dt.x===et?0:2)|Number(dt.y&T),Vt=ht;return k&&m(ht)&&(Vt=N(ht),ft^=1),new a(et,Vt,ft)}return{seed:st,k2sig:Bt}}const C={lowS:e.lowS,prehash:!1},U={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),k=e;return ee(k.hash.outputLen,k.nByteLength,k.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=U){const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:k,prehash:R,format:Z}=S;if(Gt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const G=typeof O=="string"||it(O),F=!G&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!G&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),G){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||k&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:Bt}=M,tt=I(w),ct=f(Bt),vt=c(tt*ct),dt=c(X*ct),et=i.BASE.multiplyAndAddUnsafe(st,vt,dt)?.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>De({...n,...$e(r)});return{...t(e),create:t}}const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),kt=BigInt(2),Wt=(n,e)=>(n+e/kt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,kt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,kt,e);if(!Tt.eql(Tt.sqr(I),n))throw new Error("Cannot find square root");return I}const Tt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:Tt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
1
+ import{i as Xt,j as St,k as xt,l as Qt,m as de,n as he,o as P,p as ge,q as we,s as pe,u as be}from"./index-mHJfpS-g.js";import"./index.browser.esm-C0AjK3ok.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-Xv72FIVH.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";function ye(n,e,t,r){if(typeof n.setBigUint64=="function")return n.setBigUint64(e,t,r);const o=BigInt(32),s=BigInt(4294967295),c=Number(t>>o&s),f=Number(t&s),i=r?4:0,u=r?0:4;n.setUint32(e+i,c,r),n.setUint32(e+u,f,r)}function me(n,e,t){return n&e^~n&t}function xe(n,e,t){return n&e^n&t^e&t}class Ee extends Xt{constructor(e,t,r,o){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=St(this.buffer)}update(e){xt(this);const{view:t,buffer:r,blockLen:o}=this;e=Qt(e);const s=e.length;for(let c=0;c<s;){const f=Math.min(o-this.pos,s-c);if(f===o){const i=St(e);for(;o<=s-c;c+=o)this.process(i,c);continue}r.set(e.subarray(c,c+f),this.pos),this.pos+=f,c+=f,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),de(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:s}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let h=c;h<o;h++)t[h]=0;ye(r,o-8,BigInt(this.length*8),s),this.process(r,0);const f=St(e),i=this.outputLen;if(i%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=i/4,y=this.get();if(u>y.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<u;h++)f.setUint32(4*h,y[h],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:o,finished:s,destroyed:c,pos:f}=this;return e.length=o,e.pos=f,e.finished=s,e.destroyed=c,o%t&&e.buffer.set(r),e}}const Be=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Q=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),J=new Uint32Array(64);class ve extends Ee{constructor(){super(64,32,8,!1),this.A=Q[0]|0,this.B=Q[1]|0,this.C=Q[2]|0,this.D=Q[3]|0,this.E=Q[4]|0,this.F=Q[5]|0,this.G=Q[6]|0,this.H=Q[7]|0}get(){const{A:e,B:t,C:r,D:o,E:s,F:c,G:f,H:i}=this;return[e,t,r,o,s,c,f,i]}set(e,t,r,o,s,c,f,i){this.A=e|0,this.B=t|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=c|0,this.G=f|0,this.H=i|0}process(e,t){for(let h=0;h<16;h++,t+=4)J[h]=e.getUint32(t,!1);for(let h=16;h<64;h++){const l=J[h-15],m=J[h-2],N=P(l,7)^P(l,18)^l>>>3,b=P(m,17)^P(m,19)^m>>>10;J[h]=b+J[h-7]+N+J[h-16]|0}let{A:r,B:o,C:s,D:c,E:f,F:i,G:u,H:y}=this;for(let h=0;h<64;h++){const l=P(f,6)^P(f,11)^P(f,25),m=y+l+me(f,i,u)+Be[h]+J[h]|0,b=(P(r,2)^P(r,13)^P(r,22))+xe(r,o,s)|0;y=u,u=i,i=f,f=c+m|0,c=s,s=o,o=r,r=m+b|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,i=i+this.F|0,u=u+this.G|0,y=y+this.H|0,this.set(r,o,s,c,f,i,u,y)}roundClean(){J.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Se=he(()=>new ve);const zt=BigInt(0),Jt=BigInt(1),Ae=BigInt(2);function it(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function bt(n){if(!it(n))throw new Error("Uint8Array expected")}function at(n,e){if(typeof e!="boolean")throw new Error(n+" boolean expected, got "+e)}const Ie=Array.from({length:256},(n,e)=>e.toString(16).padStart(2,"0"));function ut(n){bt(n);let e="";for(let t=0;t<n.length;t++)e+=Ie[n[t]];return e}function gt(n){const e=n.toString(16);return e.length&1?"0"+e:e}function Ct(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);return n===""?zt:BigInt("0x"+n)}const D={_0:48,_9:57,A:65,F:70,a:97,f:102};function jt(n){if(n>=D._0&&n<=D._9)return n-D._0;if(n>=D.A&&n<=D.F)return n-(D.A-10);if(n>=D.a&&n<=D.f)return n-(D.a-10)}function wt(n){if(typeof n!="string")throw new Error("hex string expected, got "+typeof n);const e=n.length,t=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(t);for(let o=0,s=0;o<t;o++,s+=2){const c=jt(n.charCodeAt(s)),f=jt(n.charCodeAt(s+1));if(c===void 0||f===void 0){const i=n[s]+n[s+1];throw new Error('hex string expected, got non-hex character "'+i+'" at index '+s)}r[o]=c*16+f}return r}function rt(n){return Ct(ut(n))}function Zt(n){return bt(n),Ct(ut(Uint8Array.from(n).reverse()))}function lt(n,e){return wt(n.toString(16).padStart(e*2,"0"))}function Rt(n,e){return lt(n,e).reverse()}function K(n,e,t){let r;if(typeof e=="string")try{r=wt(e)}catch(s){throw new Error(n+" must be hex string or Uint8Array, cause: "+s)}else if(it(e))r=Uint8Array.from(e);else throw new Error(n+" must be hex string or Uint8Array");const o=r.length;if(typeof t=="number"&&o!==t)throw new Error(n+" of length "+t+" expected, got "+o);return r}function pt(...n){let e=0;for(let r=0;r<n.length;r++){const o=n[r];bt(o),e+=o.length}const t=new Uint8Array(e);for(let r=0,o=0;r<n.length;r++){const s=n[r];t.set(s,o),o+=s.length}return t}const At=n=>typeof n=="bigint"&&zt<=n;function Et(n,e,t){return At(n)&&At(e)&&At(t)&&e<=n&&n<t}function ot(n,e,t,r){if(!Et(e,t,r))throw new Error("expected valid "+n+": "+t+" <= n < "+r+", got "+e)}function te(n){let e;for(e=0;n>zt;n>>=Jt,e+=1);return e}const Mt=n=>(Ae<<BigInt(n-1))-Jt,It=n=>new Uint8Array(n),Yt=n=>Uint8Array.from(n);function ee(n,e,t){if(typeof n!="number"||n<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let r=It(n),o=It(n),s=0;const c=()=>{r.fill(1),o.fill(0),s=0},f=(...h)=>t(o,r,...h),i=(h=It())=>{o=f(Yt([0]),h),r=f(),h.length!==0&&(o=f(Yt([1]),h),r=f())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let h=0;const l=[];for(;h<e;){r=f();const m=r.slice();l.push(m),h+=r.length}return pt(...l)};return(h,l)=>{c(),i(h);let m;for(;!(m=l(u()));)i();return c(),m}}const Ne={bigint:n=>typeof n=="bigint",function:n=>typeof n=="function",boolean:n=>typeof n=="boolean",string:n=>typeof n=="string",stringOrUint8Array:n=>typeof n=="string"||it(n),isSafeInteger:n=>Number.isSafeInteger(n),array:n=>Array.isArray(n),field:(n,e)=>e.Fp.isValid(n),hash:n=>typeof n=="function"&&Number.isSafeInteger(n.outputLen)};function yt(n,e,t={}){const r=(o,s,c)=>{const f=Ne[s];if(typeof f!="function")throw new Error("invalid validator function");const i=n[o];if(!(c&&i===void 0)&&!f(i,n))throw new Error("param "+String(o)+" is invalid. Expected "+s+", got "+i)};for(const[o,s]of Object.entries(e))r(o,s,!1);for(const[o,s]of Object.entries(t))r(o,s,!0);return n}function Ht(n){const e=new WeakMap;return(t,...r)=>{const o=e.get(t);if(o!==void 0)return o;const s=n(t,...r);return e.set(t,s),s}}const qe=Object.freeze(Object.defineProperty({__proto__:null,aInRange:ot,abool:at,abytes:bt,bitLen:te,bitMask:Mt,bytesToHex:ut,bytesToNumberBE:rt,bytesToNumberLE:Zt,concatBytes:pt,createHmacDrbg:ee,ensureBytes:K,hexToBytes:wt,hexToNumber:Ct,inRange:Et,isBytes:it,memoized:Ht,numberToBytesBE:lt,numberToBytesLE:Rt,numberToHexUnpadded:gt,validateObject:yt},Symbol.toStringTag,{value:"Module"}));class ne extends Xt{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ge(e);const r=Qt(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let c=0;c<s.length;c++)s[c]^=54;this.iHash.update(s),this.oHash=e.create();for(let c=0;c<s.length;c++)s[c]^=106;this.oHash.update(s),s.fill(0)}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),we(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:o,destroyed:s,blockLen:c,outputLen:f}=this;return e=e,e.finished=o,e.destroyed=s,e.blockLen=c,e.outputLen=f,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const re=(n,e,t)=>new ne(n,e).update(t).digest();re.create=(n,e)=>new ne(n,e);const z=BigInt(0),_=BigInt(1),nt=BigInt(2),Oe=BigInt(3),Ut=BigInt(4),Ft=BigInt(5),Kt=BigInt(8);function V(n,e){const t=n%e;return t>=z?t:e+t}function Le(n,e,t){if(e<z)throw new Error("invalid exponent, negatives unsupported");if(t<=z)throw new Error("invalid modulus");if(t===_)return z;let r=_;for(;e>z;)e&_&&(r=r*n%t),n=n*n%t,e>>=_;return r}function Y(n,e,t){let r=n;for(;e-- >z;)r*=r,r%=t;return r}function _t(n,e){if(n===z)throw new Error("invert: expected non-zero number");if(e<=z)throw new Error("invert: expected positive modulus, got "+e);let t=V(n,e),r=e,o=z,s=_;for(;t!==z;){const f=r/t,i=r%t,u=o-s*f;r=t,t=i,o=s,s=u}if(r!==_)throw new Error("invert: does not exist");return V(o,e)}function He(n){const e=(n-_)/nt;let t,r,o;for(t=n-_,r=0;t%nt===z;t/=nt,r++);for(o=nt;o<n&&Le(o,e,n)!==n-_;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(r===1){const c=(n+_)/Ut;return function(i,u){const y=i.pow(u,c);if(!i.eql(i.sqr(y),u))throw new Error("Cannot find square root");return y}}const s=(t+_)/nt;return function(f,i){if(f.pow(i,e)===f.neg(f.ONE))throw new Error("Cannot find square root");let u=r,y=f.pow(f.mul(f.ONE,o),t),h=f.pow(i,s),l=f.pow(i,t);for(;!f.eql(l,f.ONE);){if(f.eql(l,f.ZERO))return f.ZERO;let m=1;for(let b=f.sqr(l);m<u&&!f.eql(b,f.ONE);m++)b=f.sqr(b);const N=f.pow(y,_<<BigInt(u-m-1));y=f.sqr(N),h=f.mul(h,N),l=f.mul(l,y),u=m}return h}}function Ue(n){if(n%Ut===Oe){const e=(n+_)/Ut;return function(r,o){const s=r.pow(o,e);if(!r.eql(r.sqr(s),o))throw new Error("Cannot find square root");return s}}if(n%Kt===Ft){const e=(n-Ft)/Kt;return function(r,o){const s=r.mul(o,nt),c=r.pow(s,e),f=r.mul(o,c),i=r.mul(r.mul(f,nt),c),u=r.mul(f,r.sub(i,r.ONE));if(!r.eql(r.sqr(u),o))throw new Error("Cannot find square root");return u}}return He(n)}const _e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ke(n){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=_e.reduce((r,o)=>(r[o]="function",r),e);return yt(n,t)}function Te(n,e,t){if(t<z)throw new Error("invalid exponent, negatives unsupported");if(t===z)return n.ONE;if(t===_)return e;let r=n.ONE,o=e;for(;t>z;)t&_&&(r=n.mul(r,o)),o=n.sqr(o),t>>=_;return r}function ze(n,e){const t=new Array(e.length),r=e.reduce((s,c,f)=>n.is0(c)?s:(t[f]=s,n.mul(s,c)),n.ONE),o=n.inv(r);return e.reduceRight((s,c,f)=>n.is0(c)?s:(t[f]=n.mul(s,t[f]),n.mul(s,c)),o),t}function oe(n,e){const t=e!==void 0?e:n.toString(2).length,r=Math.ceil(t/8);return{nBitLength:t,nByteLength:r}}function ie(n,e,t=!1,r={}){if(n<=z)throw new Error("invalid field: expected ORDER > 0, got "+n);const{nBitLength:o,nByteLength:s}=oe(n,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const f=Object.freeze({ORDER:n,isLE:t,BITS:o,BYTES:s,MASK:Mt(o),ZERO:z,ONE:_,create:i=>V(i,n),isValid:i=>{if(typeof i!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof i);return z<=i&&i<n},is0:i=>i===z,isOdd:i=>(i&_)===_,neg:i=>V(-i,n),eql:(i,u)=>i===u,sqr:i=>V(i*i,n),add:(i,u)=>V(i+u,n),sub:(i,u)=>V(i-u,n),mul:(i,u)=>V(i*u,n),pow:(i,u)=>Te(f,i,u),div:(i,u)=>V(i*_t(u,n),n),sqrN:i=>i*i,addN:(i,u)=>i+u,subN:(i,u)=>i-u,mulN:(i,u)=>i*u,inv:i=>_t(i,n),sqrt:r.sqrt||(i=>(c||(c=Ue(n)),c(f,i))),invertBatch:i=>ze(f,i),cmov:(i,u,y)=>y?u:i,toBytes:i=>t?Rt(i,s):lt(i,s),fromBytes:i=>{if(i.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+i.length);return t?Zt(i):rt(i)}});return Object.freeze(f)}function se(n){if(typeof n!="bigint")throw new Error("field order must be bigint");const e=n.toString(2).length;return Math.ceil(e/8)}function ce(n){const e=se(n);return e+Math.ceil(e/2)}function Ce(n,e,t=!1){const r=n.length,o=se(e),s=ce(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const c=t?Zt(n):rt(n),f=V(c,e-_)+_;return t?Rt(f,o):lt(f,o)}const Pt=BigInt(0),mt=BigInt(1);function Nt(n,e){const t=e.negate();return n?t:e}function fe(n,e){if(!Number.isSafeInteger(n)||n<=0||n>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+n)}function qt(n,e){fe(n,e);const t=Math.ceil(e/n)+1,r=2**(n-1);return{windows:t,windowSize:r}}function Ze(n,e){if(!Array.isArray(n))throw new Error("array expected");n.forEach((t,r)=>{if(!(t instanceof e))throw new Error("invalid point at index "+r)})}function Re(n,e){if(!Array.isArray(n))throw new Error("array of scalars expected");n.forEach((t,r)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+r)})}const Ot=new WeakMap,ae=new WeakMap;function Lt(n){return ae.get(n)||1}function Me(n,e){return{constTimeNegate:Nt,hasPrecomputes(t){return Lt(t)!==1},unsafeLadder(t,r,o=n.ZERO){let s=t;for(;r>Pt;)r&mt&&(o=o.add(s)),s=s.double(),r>>=mt;return o},precomputeWindow(t,r){const{windows:o,windowSize:s}=qt(r,e),c=[];let f=t,i=f;for(let u=0;u<o;u++){i=f,c.push(i);for(let y=1;y<s;y++)i=i.add(f),c.push(i);f=i.double()}return c},wNAF(t,r,o){const{windows:s,windowSize:c}=qt(t,e);let f=n.ZERO,i=n.BASE;const u=BigInt(2**t-1),y=2**t,h=BigInt(t);for(let l=0;l<s;l++){const m=l*c;let N=Number(o&u);o>>=h,N>c&&(N-=y,o+=mt);const b=m,a=m+Math.abs(N)-1,g=l%2!==0,x=N<0;N===0?i=i.add(Nt(g,r[b])):f=f.add(Nt(x,r[a]))}return{p:f,f:i}},wNAFUnsafe(t,r,o,s=n.ZERO){const{windows:c,windowSize:f}=qt(t,e),i=BigInt(2**t-1),u=2**t,y=BigInt(t);for(let h=0;h<c;h++){const l=h*f;if(o===Pt)break;let m=Number(o&i);if(o>>=y,m>f&&(m-=u,o+=mt),m===0)continue;let N=r[l+Math.abs(m)-1];m<0&&(N=N.negate()),s=s.add(N)}return s},getPrecomputes(t,r,o){let s=Ot.get(r);return s||(s=this.precomputeWindow(r,t),t!==1&&Ot.set(r,o(s))),s},wNAFCached(t,r,o){const s=Lt(t);return this.wNAF(s,this.getPrecomputes(s,t,o),r)},wNAFCachedUnsafe(t,r,o,s){const c=Lt(t);return c===1?this.unsafeLadder(t,r,s):this.wNAFUnsafe(c,this.getPrecomputes(c,t,o),r,s)},setWindowSize(t,r){fe(r,e),ae.set(t,r),Ot.delete(t)}}}function Ve(n,e,t,r){if(Ze(t,n),Re(r,e),t.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=n.ZERO,s=te(BigInt(t.length)),c=s>12?s-3:s>4?s-2:s?2:1,f=(1<<c)-1,i=new Array(f+1).fill(o),u=Math.floor((e.BITS-1)/c)*c;let y=o;for(let h=u;h>=0;h-=c){i.fill(o);for(let m=0;m<r.length;m++){const N=r[m],b=Number(N>>BigInt(h)&BigInt(f));i[b]=i[b].add(t[m])}let l=o;for(let m=i.length-1,N=o;m>0;m--)N=N.add(i[m]),l=l.add(N);if(y=y.add(l),h!==0)for(let m=0;m<c;m++)y=y.double()}return y}function ue(n){return ke(n.Fp),yt(n,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oe(n.n,n.nBitLength),...n,p:n.Fp.ORDER})}function Gt(n){n.lowS!==void 0&&at("lowS",n.lowS),n.prehash!==void 0&&at("prehash",n.prehash)}function je(n){const e=ue(n);yt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:t,Fp:r,a:o}=e;if(t){if(!r.eql(o,r.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if(typeof t!="object"||typeof t.beta!="bigint"||typeof t.splitScalar!="function")throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Ye,hexToBytes:Fe}=qe;class Ke extends Error{constructor(e=""){super(e)}}const $={Err:Ke,_tlv:{encode:(n,e)=>{const{Err:t}=$;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length&1)throw new t("tlv.encode: unpadded data");const r=e.length/2,o=gt(r);if(o.length/2&128)throw new t("tlv.encode: long form length too big");const s=r>127?gt(o.length/2|128):"";return gt(n)+s+o+e},decode(n,e){const{Err:t}=$;let r=0;if(n<0||n>256)throw new t("tlv.encode: wrong tag");if(e.length<2||e[r++]!==n)throw new t("tlv.decode: wrong tlv");const o=e[r++],s=!!(o&128);let c=0;if(!s)c=o;else{const i=o&127;if(!i)throw new t("tlv.decode(long): indefinite length not supported");if(i>4)throw new t("tlv.decode(long): byte length is too big");const u=e.subarray(r,r+i);if(u.length!==i)throw new t("tlv.decode: length bytes not complete");if(u[0]===0)throw new t("tlv.decode(long): zero leftmost byte");for(const y of u)c=c<<8|y;if(r+=i,c<128)throw new t("tlv.decode(long): not minimal encoding")}const f=e.subarray(r,r+c);if(f.length!==c)throw new t("tlv.decode: wrong value length");return{v:f,l:e.subarray(r+c)}}},_int:{encode(n){const{Err:e}=$;if(n<W)throw new e("integer: negative integers are not allowed");let t=gt(n);if(Number.parseInt(t[0],16)&8&&(t="00"+t),t.length&1)throw new e("unexpected DER parsing assertion: unpadded hex");return t},decode(n){const{Err:e}=$;if(n[0]&128)throw new e("invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("invalid signature integer: unnecessary leading zero");return Ye(n)}},toSig(n){const{Err:e,_int:t,_tlv:r}=$,o=typeof n=="string"?Fe(n):n;bt(o);const{v:s,l:c}=r.decode(48,o);if(c.length)throw new e("invalid signature: left bytes after parsing");const{v:f,l:i}=r.decode(2,s),{v:u,l:y}=r.decode(2,i);if(y.length)throw new e("invalid signature: left bytes after parsing");return{r:t.decode(f),s:t.decode(u)}},hexFromSig(n){const{_tlv:e,_int:t}=$,r=e.encode(2,t.encode(n.r)),o=e.encode(2,t.encode(n.s)),s=r+o;return e.encode(48,s)}},W=BigInt(0),T=BigInt(1);BigInt(2);const Dt=BigInt(3);BigInt(4);function Pe(n){const e=je(n),{Fp:t}=e,r=ie(e.n,e.nBitLength),o=e.toBytes||((b,a,g)=>{const x=a.toAffine();return pt(Uint8Array.from([4]),t.toBytes(x.x),t.toBytes(x.y))}),s=e.fromBytes||(b=>{const a=b.subarray(1),g=t.fromBytes(a.subarray(0,t.BYTES)),x=t.fromBytes(a.subarray(t.BYTES,2*t.BYTES));return{x:g,y:x}});function c(b){const{a,b:g}=e,x=t.sqr(b),E=t.mul(x,b);return t.add(t.add(E,t.mul(b,a)),g)}if(!t.eql(t.sqr(e.Gy),c(e.Gx)))throw new Error("bad generator point: equation left != right");function f(b){return Et(b,T,e.n)}function i(b){const{allowedPrivateKeyLengths:a,nByteLength:g,wrapPrivateKey:x,n:E}=e;if(a&&typeof b!="bigint"){if(it(b)&&(b=ut(b)),typeof b!="string"||!a.includes(b.length))throw new Error("invalid private key");b=b.padStart(g*2,"0")}let q;try{q=typeof b=="bigint"?b:rt(K("private key",b,g))}catch{throw new Error("invalid private key, expected hex or "+g+" bytes, got "+typeof b)}return x&&(q=V(q,E)),ot("private key",q,T,E),q}function u(b){if(!(b instanceof l))throw new Error("ProjectivePoint expected")}const y=Ht((b,a)=>{const{px:g,py:x,pz:E}=b;if(t.eql(E,t.ONE))return{x:g,y:x};const q=b.is0();a==null&&(a=q?t.ONE:t.inv(E));const L=t.mul(g,a),I=t.mul(x,a),B=t.mul(E,a);if(q)return{x:t.ZERO,y:t.ZERO};if(!t.eql(B,t.ONE))throw new Error("invZ was invalid");return{x:L,y:I}}),h=Ht(b=>{if(b.is0()){if(e.allowInfinityPoint&&!t.is0(b.py))return;throw new Error("bad point: ZERO")}const{x:a,y:g}=b.toAffine();if(!t.isValid(a)||!t.isValid(g))throw new Error("bad point: x or y not FE");const x=t.sqr(g),E=c(a);if(!t.eql(x,E))throw new Error("bad point: equation left != right");if(!b.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class l{constructor(a,g,x){if(this.px=a,this.py=g,this.pz=x,a==null||!t.isValid(a))throw new Error("x required");if(g==null||!t.isValid(g))throw new Error("y required");if(x==null||!t.isValid(x))throw new Error("z required");Object.freeze(this)}static fromAffine(a){const{x:g,y:x}=a||{};if(!a||!t.isValid(g)||!t.isValid(x))throw new Error("invalid affine point");if(a instanceof l)throw new Error("projective point not allowed");const E=q=>t.eql(q,t.ZERO);return E(g)&&E(x)?l.ZERO:new l(g,x,t.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(a){const g=t.invertBatch(a.map(x=>x.pz));return a.map((x,E)=>x.toAffine(g[E])).map(l.fromAffine)}static fromHex(a){const g=l.fromAffine(s(K("pointHex",a)));return g.assertValidity(),g}static fromPrivateKey(a){return l.BASE.multiply(i(a))}static msm(a,g){return Ve(l,r,a,g)}_setWindowSize(a){N.setWindowSize(this,a)}assertValidity(){h(this)}hasEvenY(){const{y:a}=this.toAffine();if(t.isOdd)return!t.isOdd(a);throw new Error("Field doesn't support isOdd")}equals(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a,B=t.eql(t.mul(g,I),t.mul(q,E)),A=t.eql(t.mul(x,I),t.mul(L,E));return B&&A}negate(){return new l(this.px,t.neg(this.py),this.pz)}double(){const{a,b:g}=e,x=t.mul(g,Dt),{px:E,py:q,pz:L}=this;let I=t.ZERO,B=t.ZERO,A=t.ZERO,v=t.mul(E,E),C=t.mul(q,q),U=t.mul(L,L),H=t.mul(E,q);return H=t.add(H,H),A=t.mul(E,L),A=t.add(A,A),I=t.mul(a,A),B=t.mul(x,U),B=t.add(I,B),I=t.sub(C,B),B=t.add(C,B),B=t.mul(I,B),I=t.mul(H,I),A=t.mul(x,A),U=t.mul(a,U),H=t.sub(v,U),H=t.mul(a,H),H=t.add(H,A),A=t.add(v,v),v=t.add(A,v),v=t.add(v,U),v=t.mul(v,H),B=t.add(B,v),U=t.mul(q,L),U=t.add(U,U),v=t.mul(U,H),I=t.sub(I,v),A=t.mul(U,C),A=t.add(A,A),A=t.add(A,A),new l(I,B,A)}add(a){u(a);const{px:g,py:x,pz:E}=this,{px:q,py:L,pz:I}=a;let B=t.ZERO,A=t.ZERO,v=t.ZERO;const C=e.a,U=t.mul(e.b,Dt);let H=t.mul(g,q),j=t.mul(x,L),d=t.mul(E,I),w=t.add(g,x),p=t.add(q,L);w=t.mul(w,p),p=t.add(H,j),w=t.sub(w,p),p=t.add(g,E);let S=t.add(q,I);return p=t.mul(p,S),S=t.add(H,d),p=t.sub(p,S),S=t.add(x,E),B=t.add(L,I),S=t.mul(S,B),B=t.add(j,d),S=t.sub(S,B),v=t.mul(C,p),B=t.mul(U,d),v=t.add(B,v),B=t.sub(j,v),v=t.add(j,v),A=t.mul(B,v),j=t.add(H,H),j=t.add(j,H),d=t.mul(C,d),p=t.mul(U,p),j=t.add(j,d),d=t.sub(H,d),d=t.mul(C,d),p=t.add(p,d),H=t.mul(j,p),A=t.add(A,H),H=t.mul(S,p),B=t.mul(w,B),B=t.sub(B,H),H=t.mul(w,j),v=t.mul(S,v),v=t.add(v,H),new l(B,A,v)}subtract(a){return this.add(a.negate())}is0(){return this.equals(l.ZERO)}wNAF(a){return N.wNAFCached(this,a,l.normalizeZ)}multiplyUnsafe(a){const{endo:g,n:x}=e;ot("scalar",a,W,x);const E=l.ZERO;if(a===W)return E;if(this.is0()||a===T)return this;if(!g||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,a,l.normalizeZ);let{k1neg:q,k1:L,k2neg:I,k2:B}=g.splitScalar(a),A=E,v=E,C=this;for(;L>W||B>W;)L&T&&(A=A.add(C)),B&T&&(v=v.add(C)),C=C.double(),L>>=T,B>>=T;return q&&(A=A.negate()),I&&(v=v.negate()),v=new l(t.mul(v.px,g.beta),v.py,v.pz),A.add(v)}multiply(a){const{endo:g,n:x}=e;ot("scalar",a,T,x);let E,q;if(g){const{k1neg:L,k1:I,k2neg:B,k2:A}=g.splitScalar(a);let{p:v,f:C}=this.wNAF(I),{p:U,f:H}=this.wNAF(A);v=N.constTimeNegate(L,v),U=N.constTimeNegate(B,U),U=new l(t.mul(U.px,g.beta),U.py,U.pz),E=v.add(U),q=C.add(H)}else{const{p:L,f:I}=this.wNAF(a);E=L,q=I}return l.normalizeZ([E,q])[0]}multiplyAndAddUnsafe(a,g,x){const E=l.BASE,q=(I,B)=>B===W||B===T||!I.equals(E)?I.multiplyUnsafe(B):I.multiply(B),L=q(this,g).add(q(a,x));return L.is0()?void 0:L}toAffine(a){return y(this,a)}isTorsionFree(){const{h:a,isTorsionFree:g}=e;if(a===T)return!0;if(g)return g(l,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:a,clearCofactor:g}=e;return a===T?this:g?g(l,this):this.multiplyUnsafe(e.h)}toRawBytes(a=!0){return at("isCompressed",a),this.assertValidity(),o(l,this,a)}toHex(a=!0){return at("isCompressed",a),ut(this.toRawBytes(a))}}l.BASE=new l(e.Gx,e.Gy,t.ONE),l.ZERO=new l(t.ZERO,t.ONE,t.ZERO);const m=e.nBitLength,N=Me(l,e.endo?Math.ceil(m/2):m);return{CURVE:e,ProjectivePoint:l,normPrivateKeyToScalar:i,weierstrassEquation:c,isWithinCurveOrder:f}}function Ge(n){const e=ue(n);return yt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function De(n){const e=Ge(n),{Fp:t,n:r}=e,o=t.BYTES+1,s=2*t.BYTES+1;function c(d){return V(d,r)}function f(d){return _t(d,r)}const{ProjectivePoint:i,normPrivateKeyToScalar:u,weierstrassEquation:y,isWithinCurveOrder:h}=Pe({...e,toBytes(d,w,p){const S=w.toAffine(),O=t.toBytes(S.x),k=pt;return at("isCompressed",p),p?k(Uint8Array.from([w.hasEvenY()?2:3]),O):k(Uint8Array.from([4]),O,t.toBytes(S.y))},fromBytes(d){const w=d.length,p=d[0],S=d.subarray(1);if(w===o&&(p===2||p===3)){const O=rt(S);if(!Et(O,T,t.ORDER))throw new Error("Point is not on curve");const k=y(O);let R;try{R=t.sqrt(k)}catch(F){const M=F instanceof Error?": "+F.message:"";throw new Error("Point is not on curve"+M)}const Z=(R&T)===T;return(p&1)===1!==Z&&(R=t.neg(R)),{x:O,y:R}}else if(w===s&&p===4){const O=t.fromBytes(S.subarray(0,t.BYTES)),k=t.fromBytes(S.subarray(t.BYTES,2*t.BYTES));return{x:O,y:k}}else{const O=o,k=s;throw new Error("invalid Point, expected length of "+O+", or uncompressed "+k+", got "+w)}}}),l=d=>ut(lt(d,e.nByteLength));function m(d){const w=r>>T;return d>w}function N(d){return m(d)?c(-d):d}const b=(d,w,p)=>rt(d.slice(w,p));class a{constructor(w,p,S){this.r=w,this.s=p,this.recovery=S,this.assertValidity()}static fromCompact(w){const p=e.nByteLength;return w=K("compactSignature",w,p*2),new a(b(w,0,p),b(w,p,2*p))}static fromDER(w){const{r:p,s:S}=$.toSig(K("DER",w));return new a(p,S)}assertValidity(){ot("r",this.r,T,r),ot("s",this.s,T,r)}addRecoveryBit(w){return new a(this.r,this.s,w)}recoverPublicKey(w){const{r:p,s:S,recovery:O}=this,k=I(K("msgHash",w));if(O==null||![0,1,2,3].includes(O))throw new Error("recovery id invalid");const R=O===2||O===3?p+e.n:p;if(R>=t.ORDER)throw new Error("recovery id 2 or 3 invalid");const Z=(O&1)===0?"02":"03",G=i.fromHex(Z+l(R)),F=f(R),M=c(-k*F),st=c(S*F),X=i.BASE.multiplyAndAddUnsafe(G,M,st);if(!X)throw new Error("point at infinify");return X.assertValidity(),X}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new a(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return wt(this.toDERHex())}toDERHex(){return $.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return wt(this.toCompactHex())}toCompactHex(){return l(this.r)+l(this.s)}}const g={isValidPrivateKey(d){try{return u(d),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const d=ce(e.n);return Ce(e.randomBytes(d),e.n)},precompute(d=8,w=i.BASE){return w._setWindowSize(d),w.multiply(BigInt(3)),w}};function x(d,w=!0){return i.fromPrivateKey(d).toRawBytes(w)}function E(d){const w=it(d),p=typeof d=="string",S=(w||p)&&d.length;return w?S===o||S===s:p?S===2*o||S===2*s:d instanceof i}function q(d,w,p=!0){if(E(d))throw new Error("first arg must be private key");if(!E(w))throw new Error("second arg must be public key");return i.fromHex(w).multiply(u(d)).toRawBytes(p)}const L=e.bits2int||function(d){if(d.length>8192)throw new Error("input is too large");const w=rt(d),p=d.length*8-e.nBitLength;return p>0?w>>BigInt(p):w},I=e.bits2int_modN||function(d){return c(L(d))},B=Mt(e.nBitLength);function A(d){return ot("num < 2^"+e.nBitLength,d,W,B),lt(d,e.nByteLength)}function v(d,w,p=C){if(["recovered","canonical"].some(tt=>tt in p))throw new Error("sign() legacy options not supported");const{hash:S,randomBytes:O}=e;let{lowS:k,prehash:R,extraEntropy:Z}=p;k==null&&(k=!0),d=K("msgHash",d),Gt(p),R&&(d=K("prehashed msgHash",S(d)));const G=I(d),F=u(w),M=[A(F),A(G)];if(Z!=null&&Z!==!1){const tt=Z===!0?O(t.BYTES):Z;M.push(K("extraEntropy",tt))}const st=pt(...M),X=G;function Bt(tt){const ct=L(tt);if(!h(ct))return;const vt=f(ct),dt=i.BASE.multiply(ct).toAffine(),et=c(dt.x);if(et===W)return;const ht=c(vt*c(X+et*F));if(ht===W)return;let ft=(dt.x===et?0:2)|Number(dt.y&T),Vt=ht;return k&&m(ht)&&(Vt=N(ht),ft^=1),new a(et,Vt,ft)}return{seed:st,k2sig:Bt}}const C={lowS:e.lowS,prehash:!1},U={lowS:e.lowS,prehash:!1};function H(d,w,p=C){const{seed:S,k2sig:O}=v(d,w,p),k=e;return ee(k.hash.outputLen,k.nByteLength,k.hmac)(S,O)}i.BASE._setWindowSize(8);function j(d,w,p,S=U){const O=d;w=K("msgHash",w),p=K("publicKey",p);const{lowS:k,prehash:R,format:Z}=S;if(Gt(S),"strict"in S)throw new Error("options.strict was renamed to lowS");if(Z!==void 0&&Z!=="compact"&&Z!=="der")throw new Error("format must be compact or der");const G=typeof O=="string"||it(O),F=!G&&!Z&&typeof O=="object"&&O!==null&&typeof O.r=="bigint"&&typeof O.s=="bigint";if(!G&&!F)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let M,st;try{if(F&&(M=new a(O.r,O.s)),G){try{Z!=="compact"&&(M=a.fromDER(O))}catch(ft){if(!(ft instanceof $.Err))throw ft}!M&&Z!=="der"&&(M=a.fromCompact(O))}st=i.fromHex(p)}catch{return!1}if(!M||k&&M.hasHighS())return!1;R&&(w=e.hash(w));const{r:X,s:Bt}=M,tt=I(w),ct=f(Bt),vt=c(tt*ct),dt=c(X*ct),et=i.BASE.multiplyAndAddUnsafe(st,vt,dt)?.toAffine();return et?c(et.x)===X:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:q,sign:H,verify:j,ProjectivePoint:i,Signature:a,utils:g}}function $e(n){return{hash:n,hmac:(e,...t)=>re(n,e,be(...t)),randomBytes:pe}}function We(n,e){const t=r=>De({...n,...$e(r)});return{...t(e),create:t}}const le=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),$t=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Xe=BigInt(1),kt=BigInt(2),Wt=(n,e)=>(n+e/kt)/e;function Qe(n){const e=le,t=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),c=BigInt(23),f=BigInt(44),i=BigInt(88),u=n*n*n%e,y=u*u*n%e,h=Y(y,t,e)*y%e,l=Y(h,t,e)*y%e,m=Y(l,kt,e)*u%e,N=Y(m,o,e)*m%e,b=Y(N,s,e)*N%e,a=Y(b,f,e)*b%e,g=Y(a,i,e)*a%e,x=Y(g,f,e)*b%e,E=Y(x,t,e)*y%e,q=Y(E,c,e)*N%e,L=Y(q,r,e)*u%e,I=Y(L,kt,e);if(!Tt.eql(Tt.sqr(I),n))throw new Error("Cannot find square root");return I}const Tt=ie(le,void 0,void 0,{sqrt:Qe}),Je=We({a:BigInt(0),b:BigInt(7),Fp:Tt,n:$t,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:n=>{const e=$t,t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Xe*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=t,c=BigInt("0x100000000000000000000000000000000"),f=Wt(s*n,e),i=Wt(-r*n,e);let u=V(n-f*t-i*o,e),y=V(-f*r-i*s,e);const h=u>c,l=y>c;if(h&&(u=e-u),l&&(y=e-y),u>c||y>c)throw new Error("splitScalar: Endomorphism failed, k="+n);return{k1neg:h,k1:u,k2neg:l,k2:y}}}},Se);BigInt(0);Je.ProjectivePoint;export{Je as secp256k1};
@@ -1 +1 @@
1
- import{a as t}from"./vendor-axios-B8_nURbH.js";import{B as o}from"./index-BSMSJgJd.js";class s{async task(a,e){return await t.post("/seedream/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${e.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,e){return await t.post("/seedream/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${e.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,e){return await t.post("/seedream/images",a,{headers:{authorization:`Bearer ${e.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const r=new s;export{r as s};
1
+ import{a as t}from"./vendor-axios-B8_nURbH.js";import{B as o}from"./index-Xv72FIVH.js";class s{async task(a,e){return await t.post("/seedream/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${e.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,e){return await t.post("/seedream/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${e.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,e){return await t.post("/seedream/images",a,{headers:{authorization:`Bearer ${e.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const r=new s;export{r as s};
@@ -1,4 +1,4 @@
1
- import{w as C}from"./index-BfDRghUD.js";import"./index.browser.esm-N9YK20qn.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BSMSJgJd.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const g=C`<svg fill="none" viewBox="0 0 21 20">
1
+ import{w as C}from"./index-mHJfpS-g.js";import"./index.browser.esm-C0AjK3ok.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-Xv72FIVH.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const g=C`<svg fill="none" viewBox="0 0 21 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1 +1 @@
1
- import{l as t}from"./index-BSMSJgJd.js";class r{key="services";async getAll(e){return await t.get(`/${this.key}/`,{params:e})}async get(e){return await t.get(`/${this.key}/${e}`)}async create(e){return await t.post(`/${this.key}/`,e)}async update(e,a){return await t.put(`/${this.key}/${e}`,a)}async delete(e){return await t.delete(`/${this.key}/${e}`)}}const n=new r;export{n as s};
1
+ import{l as t}from"./index-Xv72FIVH.js";class r{key="services";async getAll(e){return await t.get(`/${this.key}/`,{params:e})}async get(e){return await t.get(`/${this.key}/${e}`)}async create(e){return await t.post(`/${this.key}/`,e)}async update(e,a){return await t.put(`/${this.key}/${e}`,a)}async delete(e){return await t.delete(`/${this.key}/${e}`)}}const n=new r;export{n as s};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/solana-wallets-vue-CWXloWJP.js","assets/vendor-vue-NSDaktjZ.js","assets/index.browser.esm-N9YK20qn.js","assets/vendor-dayjs-v0j1UNZp.js","assets/index-BSMSJgJd.js","assets/vendor-axios-B8_nURbH.js","assets/vendor-vue-router-Kg6s1a65.js","assets/index-CyoihLmI.css","assets/index-9HGDSJTR.js","assets/signer-VxQoXw0x.js","assets/standard-BSrJCQ5C.js","assets/index-60y9JL--.js","assets/types-Cvj5H4DH.js","assets/index-BM3gqP0x.js","assets/index-C6ivkAdC.js","assets/index-CiRMcvJR.js","assets/index-BfDRghUD.js","assets/styles-Bce9hoao.css"])))=>i.map(i=>d[i]);
2
- import{_ as t}from"./index-BSMSJgJd.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";async function E(e){const[{default:o},{WalletAdapterNetwork:a},{PhantomWalletAdapter:l},{SolflareWalletAdapter:_},{NightlyWalletAdapter:i},{WalletConnectWalletAdapter:r}]=await Promise.all([t(()=>import("./solana-wallets-vue-CWXloWJP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),t(()=>import("./index-60y9JL--.js"),__vite__mapDeps([11,9,8,3,10,12])),t(()=>import("./index-BM3gqP0x.js"),__vite__mapDeps([13,2,3,4,1,5,6,7,8,9])),t(()=>import("./index-C6ivkAdC.js"),__vite__mapDeps([14,4,1,5,3,6,7,2,8,9])),t(()=>import("./index-CiRMcvJR.js"),__vite__mapDeps([15,2,3,4,1,5,6,7,8,9])),t(()=>import("./index-BfDRghUD.js").then(p=>p.a5),__vite__mapDeps([16,2,3,4,1,5,6,7,8,9,12]))]);await t(()=>Promise.resolve({}),__vite__mapDeps([17]));const n="8442ba82a50e5d4a993fc9d82ba15c59",d={wallets:[new l,new _({network:a.Mainnet}),new i,new r({network:a.Mainnet,options:{projectId:n,metadata:{name:"AceData",description:"AceData WalletConnect",url:window.location.origin,icons:["https://cdn.acedata.cloud/acedata.jpg"]}}})]};e.use(o,d)}export{E as installSolanaWallets};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/solana-wallets-vue-DXdQA3wF.js","assets/vendor-vue-NSDaktjZ.js","assets/index.browser.esm-C0AjK3ok.js","assets/vendor-dayjs-v0j1UNZp.js","assets/index-Xv72FIVH.js","assets/vendor-axios-B8_nURbH.js","assets/vendor-vue-router-Kg6s1a65.js","assets/index-CyoihLmI.css","assets/index-9HGDSJTR.js","assets/signer-VxQoXw0x.js","assets/standard-BSrJCQ5C.js","assets/index-60y9JL--.js","assets/types-Cvj5H4DH.js","assets/index-Bil93Tro.js","assets/index-Cyxq6Qua.js","assets/index-DfBSnkgR.js","assets/index-mHJfpS-g.js","assets/styles-Bce9hoao.css"])))=>i.map(i=>d[i]);
2
+ import{_ as t}from"./index-Xv72FIVH.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";async function E(e){const[{default:o},{WalletAdapterNetwork:a},{PhantomWalletAdapter:l},{SolflareWalletAdapter:_},{NightlyWalletAdapter:i},{WalletConnectWalletAdapter:r}]=await Promise.all([t(()=>import("./solana-wallets-vue-DXdQA3wF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),t(()=>import("./index-60y9JL--.js"),__vite__mapDeps([11,9,8,3,10,12])),t(()=>import("./index-Bil93Tro.js"),__vite__mapDeps([13,2,3,4,1,5,6,7,8,9])),t(()=>import("./index-Cyxq6Qua.js"),__vite__mapDeps([14,4,1,5,3,6,7,2,8,9])),t(()=>import("./index-DfBSnkgR.js"),__vite__mapDeps([15,2,3,4,1,5,6,7,8,9])),t(()=>import("./index-mHJfpS-g.js").then(p=>p.a5),__vite__mapDeps([16,2,3,4,1,5,6,7,8,9,12]))]);await t(()=>Promise.resolve({}),__vite__mapDeps([17]));const n="8442ba82a50e5d4a993fc9d82ba15c59",d={wallets:[new l,new _({network:a.Mainnet}),new i,new r({network:a.Mainnet,options:{projectId:n,metadata:{name:"AceData",description:"AceData WalletConnect",url:window.location.origin,icons:["https://cdn.acedata.cloud/acedata.jpg"]}}})]};e.use(o,d)}export{E as installSolanaWallets};
@@ -1,4 +1,4 @@
1
- import{o as jr,n as On,_ as kn,w as Be,j as _i,$ as Si,b as re,k as Vr,a0 as Ci,a1 as Ii,a as fe,a2 as ie,c as j,u as Bi,t as Ri,a3 as Pe,q as ne,H as pe,J as Ie,d as ht,a4 as pt,D as Ve,z as le,E as V,x as ft,F as He,a5 as ce,a6 as de,Q as it,M as Ti,O as qn,N as Mi,C as $r,I as Hr,a7 as Ni,y as kt,R as Ui}from"./vendor-vue-NSDaktjZ.js";import{PublicKey as Gr,VersionedTransaction as Sn,Transaction as Cn,VersionedMessage as Li,SIGNATURE_LENGTH_IN_BYTES as Pi}from"./index.browser.esm-N9YK20qn.js";import{h as Mt,n as x,l as $e,c as Oi,f as Yr,g as ki,k as be,W as Ke,d as ot,o as In,w as st,e as at,m as xr,r as Bn,q as Jr,p as Kn,a as Wi}from"./signer-VxQoXw0x.js";import{i as Di}from"./standard-BSrJCQ5C.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BSMSJgJd.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";function Wn(e){return Ci()?(Ii(e),!0):!1}const Nt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zi=Object.prototype.toString,Fi=e=>zi.call(e)==="[object Object]",Re=()=>{},Rn=qi();function qi(){var e,t;return Nt&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ki(e,t){function i(...r){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(l)})}return i}const Qr=e=>e();function ji(e=Qr,t={}){const{initialState:i="active"}=t,r=Zr(i==="active");function a(){r.value=!1}function l(){r.value=!0}const c=(...s)=>{r.value&&e(...s)};return{isActive:kn(r),pause:a,resume:l,eventFilter:c}}function Vi(e){let t;function i(){return t||(t=e()),t}return i.reset=async()=>{const r=t;t=void 0,r&&await r},i}function $i(e){return Vr()}function Wt(e){return Array.isArray(e)?e:[e]}function Zr(...e){if(e.length!==1)return _i(...e);const t=e[0];return typeof t=="function"?kn(Si(()=>({get:t,set:Re}))):re(t)}function Hi(e,t,i={}){const{eventFilter:r=Qr,...a}=i;return Be(e,Ki(r,t),a)}function Gi(e,t,i={}){const{eventFilter:r,initialState:a="active",...l}=i,{eventFilter:c,pause:s,resume:d,isActive:h}=ji(r,{initialState:a});return{stop:Hi(e,t,{...l,eventFilter:c}),pause:s,resume:d,isActive:h}}function Yi(e,t=!0,i){$i()?jr(e,i):t?e():On(e)}function xi(e,t,i={}){const{immediate:r=!0,immediateCallback:a=!1}=i,l=fe(!1);let c=null;function s(){c&&(clearTimeout(c),c=null)}function d(){l.value=!1,s()}function h(...g){a&&e(),s(),l.value=!0,c=setTimeout(()=>{l.value=!1,c=null,e(...g)},ie(t))}return r&&(l.value=!0,Nt&&h()),Wn(d),{isPending:kn(l),start:h,stop:d}}function Ji(e,t,i){return Be(e,t,{...i,immediate:!0})}const Ge=Nt?window:void 0,Xr=Nt?window.navigator:void 0;function lt(e){var t;const i=ie(e);return(t=i?.$el)!=null?t:i}function ge(...e){const t=[],i=()=>{t.forEach(s=>s()),t.length=0},r=(s,d,h,g)=>(s.addEventListener(d,h,g),()=>s.removeEventListener(d,h,g)),a=j(()=>{const s=Wt(ie(e[0])).filter(d=>d!=null);return s.every(d=>typeof d!="string")?s:void 0}),l=Ji(()=>{var s,d;return[(d=(s=a.value)==null?void 0:s.map(h=>lt(h)))!=null?d:[Ge].filter(h=>h!=null),Wt(ie(a.value?e[1]:e[0])),Wt(Bi(a.value?e[2]:e[1])),ie(a.value?e[3]:e[2])]},([s,d,h,g])=>{if(i(),!s?.length||!d?.length||!h?.length)return;const m=Fi(g)?{...g}:g;t.push(...s.flatMap(_=>d.flatMap(y=>h.map(A=>r(_,y,A,m)))))},{flush:"post"}),c=()=>{l(),i()};return Wn(i),c}let jn=!1;function ei(e,t,i={}){const{window:r=Ge,ignore:a=[],capture:l=!0,detectIframe:c=!1,controls:s=!1}=i;if(!r)return s?{stop:Re,cancel:Re,trigger:Re}:Re;if(Rn&&!jn){jn=!0;const C={passive:!0};Array.from(r.document.body.children).forEach(E=>ge(E,"click",Re,C)),ge(r.document.documentElement,"click",Re,C)}let d=!0;const h=C=>ie(a).some(E=>{if(typeof E=="string")return Array.from(r.document.querySelectorAll(E)).some(v=>v===C.target||C.composedPath().includes(v));{const v=lt(E);return v&&(C.target===v||C.composedPath().includes(v))}});function g(C){const E=ie(C);return E&&E.$.subTree.shapeFlag===16}function m(C,E){const v=ie(C),S=v.$.subTree&&v.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(R=>R.el===E.target||E.composedPath().includes(R.el))}const _=C=>{const E=lt(e);if(C.target!=null&&!(!(E instanceof Element)&&g(e)&&m(e,C))&&!(!E||E===C.target||C.composedPath().includes(E))){if("detail"in C&&C.detail===0&&(d=!h(C)),!d){d=!0;return}t(C)}};let y=!1;const A=[ge(r,"click",C=>{y||(y=!0,setTimeout(()=>{y=!1},0),_(C))},{passive:!0,capture:l}),ge(r,"pointerdown",C=>{const E=lt(e);d=!h(C)&&!!(E&&!C.composedPath().includes(E))},{passive:!0}),c&&ge(r,"blur",C=>{setTimeout(()=>{var E;const v=lt(e);((E=r.document.activeElement)==null?void 0:E.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(C)},0)},{passive:!0})].filter(Boolean),b=()=>A.forEach(C=>C());return s?{stop:b,cancel:()=>{d=!1},trigger:C=>{d=!0,_(C),d=!1}}:b}function Qi(){const e=fe(!1),t=Vr();return t&&jr(()=>{e.value=!0},t),e}function ti(e){const t=Qi();return j(()=>(t.value,!!e()))}function Zi(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vn(...e){let t,i,r={};e.length===3?(t=e[0],i=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,i=e[0],r=e[1]):(t=e[0],i=e[1]):(t=!0,i=e[0]);const{target:a=Ge,eventName:l="keydown",passive:c=!1,dedupe:s=!1}=r,d=Zi(t);return ge(a,l,g=>{g.repeat&&ie(s)||d(g)&&i(g)},c)}function $n(e,t={}){const{controls:i=!1,navigator:r=Xr}=t,a=ti(()=>r&&"permissions"in r),l=fe(),c=typeof e=="string"?{name:e}:e,s=fe(),d=()=>{var g,m;s.value=(m=(g=l.value)==null?void 0:g.state)!=null?m:"prompt"};ge(l,"change",d,{passive:!0});const h=Vi(async()=>{if(a.value){if(!l.value)try{l.value=await r.permissions.query(c)}catch{l.value=void 0}finally{d()}if(i)return Ri(l.value)}});return h(),i?{state:s,isSupported:a,query:h}:s}function Xi(e={}){const{navigator:t=Xr,read:i=!1,source:r,copiedDuring:a=1500,legacy:l=!1}=e,c=ti(()=>t&&"clipboard"in t),s=$n("clipboard-read"),d=$n("clipboard-write"),h=j(()=>c.value||l),g=fe(""),m=fe(!1),_=xi(()=>m.value=!1,a,{immediate:!1});async function y(){let v=!(c.value&&E(s.value));if(!v)try{g.value=await t.clipboard.readText()}catch{v=!0}v&&(g.value=C())}h.value&&i&&ge(["copy","cut"],y,{passive:!0});async function A(v=ie(r)){if(h.value&&v!=null){let S=!(c.value&&E(d.value));if(!S)try{await t.clipboard.writeText(v)}catch{S=!0}S&&b(v),g.value=v,m.value=!0,_.start()}}function b(v){const S=document.createElement("textarea");S.value=v??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function C(){var v,S,R;return(R=(S=(v=document?.getSelection)==null?void 0:v.call(document))==null?void 0:S.toString())!=null?R:""}function E(v){return v==="granted"||v==="prompt"}return{isSupported:h,text:g,copied:m,copy:A}}const mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt="__vueuse_ssr_handlers__",eo=to();function to(){return vt in mt||(mt[vt]=mt[vt]||{}),mt[vt]}function no(e,t){return eo[e]||t}function ro(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const io={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Hn="vueuse-storage";function oo(e,t,i,r={}){var a;const{flush:l="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:d=!0,mergeDefaults:h=!1,shallow:g,window:m=Ge,eventFilter:_,onError:y=L=>{console.error(L)},initOnMounted:A}=r,b=(g?fe:re)(typeof t=="function"?t():t),C=j(()=>ie(e));if(!i)try{i=no("getDefaultStorage",()=>{var L;return(L=Ge)==null?void 0:L.localStorage})()}catch(L){y(L)}if(!i)return b;const E=ie(t),v=ro(E),S=(a=r.serializer)!=null?a:io[v],{pause:R,resume:U}=Gi(b,()=>T(b.value),{flush:l,deep:c,eventFilter:_});Be(C,()=>M(),{flush:l}),m&&s&&Yi(()=>{i instanceof Storage?ge(m,"storage",M,{passive:!0}):ge(m,Hn,k),A&&M()}),A||M();function B(L,P){if(m){const O={key:C.value,oldValue:L,newValue:P,storageArea:i};m.dispatchEvent(i instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Hn,{detail:O}))}}function T(L){try{const P=i.getItem(C.value);if(L==null)B(P,null),i.removeItem(C.value);else{const O=S.write(L);P!==O&&(i.setItem(C.value,O),B(P,O))}}catch(P){y(P)}}function N(L){const P=L?L.newValue:i.getItem(C.value);if(P==null)return d&&E!=null&&i.setItem(C.value,S.write(E)),E;if(!L&&h){const O=S.read(P);return typeof h=="function"?h(O,E):v==="object"&&!Array.isArray(O)?{...E,...O}:O}else return typeof P!="string"?P:S.read(P)}function M(L){if(!(L&&L.storageArea!==i)){if(L&&L.key==null){b.value=E;return}if(!(L&&L.key!==C.value)){R();try{L?.newValue!==S.write(b.value)&&(b.value=N(L))}catch(P){y(P)}finally{L?On(U):U()}}}}function k(L){M(L.detail)}return b}function Dt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function so(e,t,i={}){const{window:r=Ge}=i;return oo(e,t,r?.localStorage,i)}function ni(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const i=e.parentNode;return!i||i.tagName==="BODY"?!1:ni(i)}}function ao(e){const t=e||window.event,i=t.target;return ni(i)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function lo(e,t=!1){const i=fe(t);let r=null,a="";Be(Zr(e),s=>{const d=Dt(ie(s));if(d){const h=d;if(zt.get(h)||zt.set(h,h.style.overflow),h.style.overflow!=="hidden"&&(a=h.style.overflow),h.style.overflow==="hidden")return i.value=!0;if(i.value)return h.style.overflow="hidden"}},{immediate:!0});const l=()=>{const s=Dt(ie(e));!s||i.value||(Rn&&(r=ge(s,"touchmove",d=>{ao(d)},{passive:!1})),s.style.overflow="hidden",i.value=!0)},c=()=>{const s=Dt(ie(e));!s||!i.value||(Rn&&r?.(),s.style.overflow=a,zt.delete(s),i.value=!1)};return Wn(c),j({get(){return i.value},set(s){s?l():c()}})}var uo=Object.defineProperty,co=(e,t,i)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ri=(e,t,i)=>co(e,t+"",i);class ii extends Mt{constructor(){super(...arguments),ri(this,"name","WalletNotSelectedError")}}class fo extends Mt{constructor(){super(...arguments),ri(this,"name","WalletNotSelectedError")}}function Ft(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}const Gn="solana:mainnet",ho="solana:devnet",po="solana:testnet",go="solana:localnet",wo="https://api.mainnet-beta.solana.com";function yo(e){return e.includes(wo)?Gn:/\bdevnet\b/i.test(e)?ho:/\btestnet\b/i.test(e)?po:/\blocalhost\b/i.test(e)||/\b127\.0\.0\.1\b/.test(e)?go:Gn}function mo(e){let t=`${e.domain} wants you to sign in with your Solana account:
1
+ import{o as jr,n as On,_ as kn,w as Be,j as _i,$ as Si,b as re,k as Vr,a0 as Ci,a1 as Ii,a as fe,a2 as ie,c as j,u as Bi,t as Ri,a3 as Pe,q as ne,H as pe,J as Ie,d as ht,a4 as pt,D as Ve,z as le,E as V,x as ft,F as He,a5 as ce,a6 as de,Q as it,M as Ti,O as qn,N as Mi,C as $r,I as Hr,a7 as Ni,y as kt,R as Ui}from"./vendor-vue-NSDaktjZ.js";import{PublicKey as Gr,VersionedTransaction as Sn,Transaction as Cn,VersionedMessage as Li,SIGNATURE_LENGTH_IN_BYTES as Pi}from"./index.browser.esm-C0AjK3ok.js";import{h as Mt,n as x,l as $e,c as Oi,f as Yr,g as ki,k as be,W as Ke,d as ot,o as In,w as st,e as at,m as xr,r as Bn,q as Jr,p as Kn,a as Wi}from"./signer-VxQoXw0x.js";import{i as Di}from"./standard-BSrJCQ5C.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-Xv72FIVH.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";function Wn(e){return Ci()?(Ii(e),!0):!1}const Nt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zi=Object.prototype.toString,Fi=e=>zi.call(e)==="[object Object]",Re=()=>{},Rn=qi();function qi(){var e,t;return Nt&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Ki(e,t){function i(...r){return new Promise((a,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(l)})}return i}const Qr=e=>e();function ji(e=Qr,t={}){const{initialState:i="active"}=t,r=Zr(i==="active");function a(){r.value=!1}function l(){r.value=!0}const c=(...s)=>{r.value&&e(...s)};return{isActive:kn(r),pause:a,resume:l,eventFilter:c}}function Vi(e){let t;function i(){return t||(t=e()),t}return i.reset=async()=>{const r=t;t=void 0,r&&await r},i}function $i(e){return Vr()}function Wt(e){return Array.isArray(e)?e:[e]}function Zr(...e){if(e.length!==1)return _i(...e);const t=e[0];return typeof t=="function"?kn(Si(()=>({get:t,set:Re}))):re(t)}function Hi(e,t,i={}){const{eventFilter:r=Qr,...a}=i;return Be(e,Ki(r,t),a)}function Gi(e,t,i={}){const{eventFilter:r,initialState:a="active",...l}=i,{eventFilter:c,pause:s,resume:d,isActive:h}=ji(r,{initialState:a});return{stop:Hi(e,t,{...l,eventFilter:c}),pause:s,resume:d,isActive:h}}function Yi(e,t=!0,i){$i()?jr(e,i):t?e():On(e)}function xi(e,t,i={}){const{immediate:r=!0,immediateCallback:a=!1}=i,l=fe(!1);let c=null;function s(){c&&(clearTimeout(c),c=null)}function d(){l.value=!1,s()}function h(...g){a&&e(),s(),l.value=!0,c=setTimeout(()=>{l.value=!1,c=null,e(...g)},ie(t))}return r&&(l.value=!0,Nt&&h()),Wn(d),{isPending:kn(l),start:h,stop:d}}function Ji(e,t,i){return Be(e,t,{...i,immediate:!0})}const Ge=Nt?window:void 0,Xr=Nt?window.navigator:void 0;function lt(e){var t;const i=ie(e);return(t=i?.$el)!=null?t:i}function ge(...e){const t=[],i=()=>{t.forEach(s=>s()),t.length=0},r=(s,d,h,g)=>(s.addEventListener(d,h,g),()=>s.removeEventListener(d,h,g)),a=j(()=>{const s=Wt(ie(e[0])).filter(d=>d!=null);return s.every(d=>typeof d!="string")?s:void 0}),l=Ji(()=>{var s,d;return[(d=(s=a.value)==null?void 0:s.map(h=>lt(h)))!=null?d:[Ge].filter(h=>h!=null),Wt(ie(a.value?e[1]:e[0])),Wt(Bi(a.value?e[2]:e[1])),ie(a.value?e[3]:e[2])]},([s,d,h,g])=>{if(i(),!s?.length||!d?.length||!h?.length)return;const m=Fi(g)?{...g}:g;t.push(...s.flatMap(_=>d.flatMap(y=>h.map(A=>r(_,y,A,m)))))},{flush:"post"}),c=()=>{l(),i()};return Wn(i),c}let jn=!1;function ei(e,t,i={}){const{window:r=Ge,ignore:a=[],capture:l=!0,detectIframe:c=!1,controls:s=!1}=i;if(!r)return s?{stop:Re,cancel:Re,trigger:Re}:Re;if(Rn&&!jn){jn=!0;const C={passive:!0};Array.from(r.document.body.children).forEach(E=>ge(E,"click",Re,C)),ge(r.document.documentElement,"click",Re,C)}let d=!0;const h=C=>ie(a).some(E=>{if(typeof E=="string")return Array.from(r.document.querySelectorAll(E)).some(v=>v===C.target||C.composedPath().includes(v));{const v=lt(E);return v&&(C.target===v||C.composedPath().includes(v))}});function g(C){const E=ie(C);return E&&E.$.subTree.shapeFlag===16}function m(C,E){const v=ie(C),S=v.$.subTree&&v.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(R=>R.el===E.target||E.composedPath().includes(R.el))}const _=C=>{const E=lt(e);if(C.target!=null&&!(!(E instanceof Element)&&g(e)&&m(e,C))&&!(!E||E===C.target||C.composedPath().includes(E))){if("detail"in C&&C.detail===0&&(d=!h(C)),!d){d=!0;return}t(C)}};let y=!1;const A=[ge(r,"click",C=>{y||(y=!0,setTimeout(()=>{y=!1},0),_(C))},{passive:!0,capture:l}),ge(r,"pointerdown",C=>{const E=lt(e);d=!h(C)&&!!(E&&!C.composedPath().includes(E))},{passive:!0}),c&&ge(r,"blur",C=>{setTimeout(()=>{var E;const v=lt(e);((E=r.document.activeElement)==null?void 0:E.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(C)},0)},{passive:!0})].filter(Boolean),b=()=>A.forEach(C=>C());return s?{stop:b,cancel:()=>{d=!1},trigger:C=>{d=!0,_(C),d=!1}}:b}function Qi(){const e=fe(!1),t=Vr();return t&&jr(()=>{e.value=!0},t),e}function ti(e){const t=Qi();return j(()=>(t.value,!!e()))}function Zi(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Vn(...e){let t,i,r={};e.length===3?(t=e[0],i=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,i=e[0],r=e[1]):(t=e[0],i=e[1]):(t=!0,i=e[0]);const{target:a=Ge,eventName:l="keydown",passive:c=!1,dedupe:s=!1}=r,d=Zi(t);return ge(a,l,g=>{g.repeat&&ie(s)||d(g)&&i(g)},c)}function $n(e,t={}){const{controls:i=!1,navigator:r=Xr}=t,a=ti(()=>r&&"permissions"in r),l=fe(),c=typeof e=="string"?{name:e}:e,s=fe(),d=()=>{var g,m;s.value=(m=(g=l.value)==null?void 0:g.state)!=null?m:"prompt"};ge(l,"change",d,{passive:!0});const h=Vi(async()=>{if(a.value){if(!l.value)try{l.value=await r.permissions.query(c)}catch{l.value=void 0}finally{d()}if(i)return Ri(l.value)}});return h(),i?{state:s,isSupported:a,query:h}:s}function Xi(e={}){const{navigator:t=Xr,read:i=!1,source:r,copiedDuring:a=1500,legacy:l=!1}=e,c=ti(()=>t&&"clipboard"in t),s=$n("clipboard-read"),d=$n("clipboard-write"),h=j(()=>c.value||l),g=fe(""),m=fe(!1),_=xi(()=>m.value=!1,a,{immediate:!1});async function y(){let v=!(c.value&&E(s.value));if(!v)try{g.value=await t.clipboard.readText()}catch{v=!0}v&&(g.value=C())}h.value&&i&&ge(["copy","cut"],y,{passive:!0});async function A(v=ie(r)){if(h.value&&v!=null){let S=!(c.value&&E(d.value));if(!S)try{await t.clipboard.writeText(v)}catch{S=!0}S&&b(v),g.value=v,m.value=!0,_.start()}}function b(v){const S=document.createElement("textarea");S.value=v??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function C(){var v,S,R;return(R=(S=(v=document?.getSelection)==null?void 0:v.call(document))==null?void 0:S.toString())!=null?R:""}function E(v){return v==="granted"||v==="prompt"}return{isSupported:h,text:g,copied:m,copy:A}}const mt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vt="__vueuse_ssr_handlers__",eo=to();function to(){return vt in mt||(mt[vt]=mt[vt]||{}),mt[vt]}function no(e,t){return eo[e]||t}function ro(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const io={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Hn="vueuse-storage";function oo(e,t,i,r={}){var a;const{flush:l="pre",deep:c=!0,listenToStorageChanges:s=!0,writeDefaults:d=!0,mergeDefaults:h=!1,shallow:g,window:m=Ge,eventFilter:_,onError:y=L=>{console.error(L)},initOnMounted:A}=r,b=(g?fe:re)(typeof t=="function"?t():t),C=j(()=>ie(e));if(!i)try{i=no("getDefaultStorage",()=>{var L;return(L=Ge)==null?void 0:L.localStorage})()}catch(L){y(L)}if(!i)return b;const E=ie(t),v=ro(E),S=(a=r.serializer)!=null?a:io[v],{pause:R,resume:U}=Gi(b,()=>T(b.value),{flush:l,deep:c,eventFilter:_});Be(C,()=>M(),{flush:l}),m&&s&&Yi(()=>{i instanceof Storage?ge(m,"storage",M,{passive:!0}):ge(m,Hn,k),A&&M()}),A||M();function B(L,P){if(m){const O={key:C.value,oldValue:L,newValue:P,storageArea:i};m.dispatchEvent(i instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Hn,{detail:O}))}}function T(L){try{const P=i.getItem(C.value);if(L==null)B(P,null),i.removeItem(C.value);else{const O=S.write(L);P!==O&&(i.setItem(C.value,O),B(P,O))}}catch(P){y(P)}}function N(L){const P=L?L.newValue:i.getItem(C.value);if(P==null)return d&&E!=null&&i.setItem(C.value,S.write(E)),E;if(!L&&h){const O=S.read(P);return typeof h=="function"?h(O,E):v==="object"&&!Array.isArray(O)?{...E,...O}:O}else return typeof P!="string"?P:S.read(P)}function M(L){if(!(L&&L.storageArea!==i)){if(L&&L.key==null){b.value=E;return}if(!(L&&L.key!==C.value)){R();try{L?.newValue!==S.write(b.value)&&(b.value=N(L))}catch(P){y(P)}finally{L?On(U):U()}}}}function k(L){M(L.detail)}return b}function Dt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function so(e,t,i={}){const{window:r=Ge}=i;return oo(e,t,r?.localStorage,i)}function ni(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const i=e.parentNode;return!i||i.tagName==="BODY"?!1:ni(i)}}function ao(e){const t=e||window.event,i=t.target;return ni(i)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const zt=new WeakMap;function lo(e,t=!1){const i=fe(t);let r=null,a="";Be(Zr(e),s=>{const d=Dt(ie(s));if(d){const h=d;if(zt.get(h)||zt.set(h,h.style.overflow),h.style.overflow!=="hidden"&&(a=h.style.overflow),h.style.overflow==="hidden")return i.value=!0;if(i.value)return h.style.overflow="hidden"}},{immediate:!0});const l=()=>{const s=Dt(ie(e));!s||i.value||(Rn&&(r=ge(s,"touchmove",d=>{ao(d)},{passive:!1})),s.style.overflow="hidden",i.value=!0)},c=()=>{const s=Dt(ie(e));!s||!i.value||(Rn&&r?.(),s.style.overflow=a,zt.delete(s),i.value=!1)};return Wn(c),j({get(){return i.value},set(s){s?l():c()}})}var uo=Object.defineProperty,co=(e,t,i)=>t in e?uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ri=(e,t,i)=>co(e,t+"",i);class ii extends Mt{constructor(){super(...arguments),ri(this,"name","WalletNotSelectedError")}}class fo extends Mt{constructor(){super(...arguments),ri(this,"name","WalletNotSelectedError")}}function Ft(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}const Gn="solana:mainnet",ho="solana:devnet",po="solana:testnet",go="solana:localnet",wo="https://api.mainnet-beta.solana.com";function yo(e){return e.includes(wo)?Gn:/\bdevnet\b/i.test(e)?ho:/\btestnet\b/i.test(e)?po:/\blocalhost\b/i.test(e)||/\b127\.0\.0\.1\b/.test(e)?go:Gn}function mo(e){let t=`${e.domain} wants you to sign in with your Solana account:
2
2
  `;t+=`${e.address}`,e.statement&&(t+=`
3
3
 
4
4
  ${e.statement}`);const i=[];if(e.uri&&i.push(`URI: ${e.uri}`),e.version&&i.push(`Version: ${e.version}`),e.chainId&&i.push(`Chain ID: ${e.chainId}`),e.nonce&&i.push(`Nonce: ${e.nonce}`),e.issuedAt&&i.push(`Issued At: ${e.issuedAt}`),e.expirationTime&&i.push(`Expiration Time: ${e.expirationTime}`),e.notBefore&&i.push(`Not Before: ${e.notBefore}`),e.requestId&&i.push(`Request ID: ${e.requestId}`),e.resources){i.push("Resources:");for(const r of e.resources)i.push(`- ${r}`)}return i.length&&(t+=`
@@ -4,4 +4,4 @@ const e={"voice.title":{message:"声音管理",description:"声音管理面板
4
4
 
5
5
  [Chorus]
6
6
  让我们一起唱歌
7
- 直到天亮...`,description:"歌词输入的占位符"},"placeholder.extend.lyrics":{message:"请输入需要扩展的歌词...",description:"扩展歌词输入的占位符"},"placeholder.extend.continue_at":{message:"从第几秒开始扩展...",description:"扩展起始时间的占位符"},"placeholder.style":{message:"例如:acoustic pop, jazz, R&B, electronic...",description:"风格输入的占位符"},"placeholder.styleNegative":{message:"例如:heavy metal, screaming...",description:"排除风格输入的占位符"},"placeholder.title":{message:"输入歌曲名称...",description:"标题输入的占位符"},"placeholder.select":{message:"请选择模型...",description:"模型选择的占位符"},"placeholder.position":{message:"请选择...",description:"位置输入的占位符"},"placeholder.lyricPrompt":{message:"描述歌词主题,AI 将自动生成...",description:"歌词提示输入的占位符"},"placeholder.replaceSectionStart":{message:"开始时间 (秒)",description:"替换片段开始时间的占位符"},"placeholder.replaceSectionEnd":{message:"结束时间 (秒)",description:"替换片段结束时间的占位符"},"button.generate":{message:"生成",description:"生成按钮文本"},"gender.male":{message:"男声",description:"男性人声选项"},"gender.female":{message:"女声",description:"女性人声选项"},"gender.auto":{message:"自动",description:"自动选择人声性别"},"variation.high":{message:"高变体",description:"高多样性变体选项"},"variation.low":{message:"低变体",description:"低多样性变体选项"},"lyricsMode.manual":{message:"手动",description:"手动提供歌词"},"lyricsMode.auto":{message:"自动",description:"让AI自动生成歌词"},"message.startingTask":{message:"正在启动任务...",description:"音乐生成任务开始时的消息"},"message.startingUploadAudio":{message:"正在上传自定义音乐...",description:"音乐生成任务开始时的消息"},"message.uploadReferencesExceed":{message:"上传的音乐超过了最大数量",description:"上传的音乐超过了最大数量时的错误消息"},"message.uploadReferencesError":{message:"上传音乐失败",description:"上传音乐失败时的错误消息"},"message.startTaskSuccess":{message:"成功启动音乐生成任务",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioSuccess":{message:"成功上传自定义音乐",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioFailed":{message:"上传自定义音乐失败",description:"启动音乐生成任务失败时的错误消息"},"message.startTaskFailed":{message:"启动音乐生成任务失败",description:"启动音乐生成任务失败时的错误消息"},"message.getVideoUrlFailed":{message:"获取音乐视频失败,请稍后重试",description:"获取视频失败时的错误消息"},"message.generatingLyrics":{message:"正在生成歌词...",description:"生成歌词时的消息"},"message.generateLyricsSuccess":{message:"歌词生成成功",description:"歌词生成成功时的消息"},"message.generateLyricsFailed":{message:"歌词生成失败",description:"歌词生成失败时的消息"},"message.optimizingStyle":{message:"正在优化风格描述...",description:"优化风格时的消息"},"message.optimizeStyleSuccess":{message:"风格优化成功",description:"风格优化成功时的消息"},"message.optimizeStyleFailed":{message:"风格优化失败",description:"风格优化失败时的消息"},"message.fetchingWav":{message:"正在获取 WAV 文件...",description:"获取WAV文件时的消息"},"message.fetchWavFailed":{message:"获取 WAV 文件失败",description:"获取WAV文件失败时的消息"},"message.fetchingMidi":{message:"正在获取 MIDI 文件...",description:"获取MIDI文件时的消息"},"message.fetchMidiFailed":{message:"获取 MIDI 文件失败",description:"获取MIDI文件失败时的消息"},"message.generating":{message:"生成中...",description:"音乐正在生成时的消息"},"message.generateFailed":{message:"生成音乐失败",description:"音乐生成失败时的消息"},"message.noOperations":{message:"没有可用操作",description:"没有可用操作时的消息"},"message.noTasks":{message:"没有历史任务,请在左侧配置栏生成音乐",description:"没有任务时的消息"},"button.upload_cover":{message:"上传翻唱",description:"上传音频后翻唱按钮文本"},"button.artist_consistency":{message:"风格一致性",description:"基于歌手风格生成按钮文本"},"button.artist_consistency_vox":{message:"人声风格一致性",description:"基于歌手人声风格生成按钮文本"},"button.underpainting":{message:"添加伴奏",description:"为上传的歌曲添加伴奏按钮文本"},"button.overpainting":{message:"添加人声",description:"为上传的歌曲添加人声按钮文本"},"button.samples":{message:"添加采样",description:"为上传的歌曲添加采样按钮文本"},"button.extract_vocals":{message:"提取人声",description:"从歌曲中提取人声按钮文本"},"button.get_timing":{message:"获取节拍",description:"获取歌曲节拍数据按钮文本"},"button.create_persona":{message:"创建歌手风格",description:"创建歌手风格按钮文本"},"button.mashup_lyrics":{message:"混搭歌词",description:"混搭两段歌词按钮文本"},"name.persona":{message:"歌手风格",description:"歌手风格选择"},"name.overpaintingRange":{message:"人声范围",description:"添加人声的时间范围"},"name.underpaintingRange":{message:"伴奏范围",description:"添加伴奏的时间范围"},"name.samplesRange":{message:"采样范围",description:"添加采样的时间范围"},"placeholder.overpaintingStart":{message:"开始时间 (秒)",description:"人声开始时间的占位符"},"placeholder.overpaintingEnd":{message:"结束时间 (秒)",description:"人声结束时间的占位符"},"placeholder.underpaintingStart":{message:"开始时间 (秒)",description:"伴奏开始时间的占位符"},"placeholder.underpaintingEnd":{message:"结束时间 (秒)",description:"伴奏结束时间的占位符"},"placeholder.samplesStart":{message:"开始时间 (秒)",description:"采样开始时间的占位符"},"placeholder.samplesEnd":{message:"结束时间 (秒)",description:"采样结束时间的占位符"},"placeholder.personaId":{message:"输入歌手风格 ID...",description:"歌手风格 ID 输入的占位符"},"description.persona":{message:"使用已创建的歌手风格来生成一致风格的歌曲",description:"歌手风格功能的描述"},"description.overpainting":{message:"在指定时间范围内为上传的音乐添加人声",description:"添加人声功能的描述"},"description.underpainting":{message:"在指定时间范围内为上传的音乐添加伴奏",description:"添加伴奏功能的描述"},"description.samples":{message:"在指定时间范围内为上传的音乐添加采样",description:"添加采样功能的描述"},"message.fetchingTiming":{message:"正在获取节拍数据...",description:"获取节拍数据时的消息"},"message.fetchTimingFailed":{message:"获取节拍数据失败",description:"获取节拍数据失败时的消息"},"message.fetchTimingSuccess":{message:"节拍数据获取成功",description:"获取节拍数据成功时的消息"},"message.extractingVocals":{message:"正在提取人声...",description:"提取人声时的消息"},"message.extractVocalsFailed":{message:"提取人声失败",description:"提取人声失败时的消息"},"message.extractVocalsSuccess":{message:"人声提取成功",description:"提取人声成功时的消息"},"mode.simple":{message:"简单",description:"简单创作模式标签"},"mode.custom":{message:"定制",description:"定制创作模式标签"},"model.v55desc":{message:"声音人设 · 自定义模型",description:"v5.5 模型描述"},"model.v5desc":{message:"真实人声 · 高品质音频",description:"v5 模型描述"},"model.v45plusdesc":{message:"高级创作方法",description:"v4.5+ 模型描述"},"model.v45desc":{message:"智能提示词",description:"v4.5 模型描述"},"model.v4desc":{message:"改进音质",description:"v4 模型描述"},"model.v35desc":{message:"基础歌曲结构",description:"v3.5 模型描述"},"model.v3desc":{message:"经典",description:"v3 模型描述"},"button.undo":{message:"撤销",description:"撤销按钮提示"},"button.clear_lyrics":{message:"清空歌词",description:"清空歌词按钮提示"},"button.expand_lyrics":{message:"展开编辑",description:"展开歌词全屏编辑按钮提示"},"button.enhance_lyrics":{message:"增强",description:"增强歌词按钮"},"button.clear_all":{message:"清空所有",description:"一键清空所有表单"},"placeholder.enhanceLyrics":{message:"输入修改指令,例如:让歌词更欢快...",description:"歌词增强输入占位符"},"message.enhancingLyrics":{message:"正在增强歌词...",description:"增强歌词时的消息"},"message.enhanceLyricsSuccess":{message:"歌词增强成功",description:"增强歌词成功时的消息"},"message.enhanceLyricsFailed":{message:"歌词增强失败",description:"增强歌词失败时的消息"},"placeholder.searchSongs":{message:"搜索歌曲...",description:"歌曲搜索输入的占位符"},"sort.newest":{message:"最新",description:"按最新排序"},"sort.oldest":{message:"最旧",description:"按最旧排序"},"filter.title":{message:"筛选",description:"筛选按钮"},"filter.type":{message:"类型",description:"筛选分区:人声/纯音乐"},"filter.typeAll":{message:"全部",description:"类型:全部"},"filter.typeVocal":{message:"人声",description:"类型:含人声"},"filter.typeInstrumental":{message:"纯音乐",description:"类型:纯音乐"},"filter.duration":{message:"时长",description:"筛选分区:歌曲时长"},"filter.durationAll":{message:"全部",description:"时长:不限"},"filter.durationShort":{message:"< 1 分钟",description:"时长:小于 1 分钟"},"filter.durationMedium":{message:"1-3 分钟",description:"时长:1 到 3 分钟"},"filter.durationLong":{message:"> 3 分钟",description:"时长:大于 3 分钟"},"filter.video":{message:"视频",description:"筛选分区:是否含视频"},"filter.videoAll":{message:"全部",description:"视频:不限"},"filter.videoWith":{message:"含视频",description:"视频:仅含视频"},"filter.videoWithout":{message:"仅音频",description:"视频:仅音频"},"filter.model":{message:"模型",description:"筛选分区:AI 模型"},"filter.modelAll":{message:"全部模型",description:"模型:不限"},"filter.reset":{message:"重置",description:"重置所有筛选"},"button.delete":{message:"删除",description:"删除歌曲的按钮文本"},"button.editTitle":{message:"编辑标题",description:"编辑歌曲标题的按钮文本"},"message.noSearchResults":{message:"未找到歌曲",description:"搜索无结果时的消息"},"message.noFilterResults":{message:"没有符合筛选条件的歌曲",description:"筛选无结果时的消息"},"message.confirmDelete":{message:"确定要删除这首歌吗?此操作不可撤销。",description:"删除歌曲的确认消息"},"message.deleteSuccess":{message:"歌曲已删除",description:"歌曲删除成功时的消息"},"message.deleteFailed":{message:"删除歌曲失败",description:"歌曲删除失败时的消息"},"name.generating":{message:"生成中",description:"歌曲正在生成的状态标签"},"button.adjust_speed":{message:"调整速度",description:"调整歌曲播放速度的按钮文本"},"button.reuse_prompt":{message:"复用提示词",description:"复用已有任务提示词的按钮文本"},"name.adjustSpeed":{message:"速度",description:"速度选择器的标签"},"description.adjustSpeed":{message:"以不同的播放速度重新生成歌曲(0.5 倍到 2 倍)",description:"调整速度功能的描述"},"message.reusePromptSuccess":{message:"提示词已复用,可调整后再次生成",description:"复用提示词成功后的提示信息"},"message.reusePromptEmpty":{message:"没有可复用的提示词数据",description:"当任务没有提示词可复用时的提示"},"name.lyricsMode":{message:"歌词模式",description:"歌词模式选择器的标签(手动 / 自动)"}};export{e as default};
7
+ 直到天亮...`,description:"歌词输入的占位符"},"placeholder.extend.lyrics":{message:"请输入需要扩展的歌词...",description:"扩展歌词输入的占位符"},"placeholder.extend.continue_at":{message:"从第几秒开始扩展...",description:"扩展起始时间的占位符"},"placeholder.style":{message:"例如:acoustic pop, jazz, R&B, electronic...",description:"风格输入的占位符"},"placeholder.styleNegative":{message:"例如:heavy metal, screaming...",description:"排除风格输入的占位符"},"placeholder.title":{message:"输入歌曲名称...",description:"标题输入的占位符"},"placeholder.select":{message:"请选择模型...",description:"模型选择的占位符"},"placeholder.position":{message:"请选择...",description:"位置输入的占位符"},"placeholder.lyricPrompt":{message:"描述歌词主题,AI 将自动生成...",description:"歌词提示输入的占位符"},"placeholder.replaceSectionStart":{message:"开始时间 (秒)",description:"替换片段开始时间的占位符"},"placeholder.replaceSectionEnd":{message:"结束时间 (秒)",description:"替换片段结束时间的占位符"},"button.generate":{message:"生成",description:"生成按钮文本"},"gender.male":{message:"男声",description:"男性人声选项"},"gender.female":{message:"女声",description:"女性人声选项"},"gender.auto":{message:"自动",description:"自动选择人声性别"},"variation.high":{message:"高变体",description:"高多样性变体选项"},"variation.low":{message:"低变体",description:"低多样性变体选项"},"lyricsMode.manual":{message:"手动",description:"手动提供歌词"},"lyricsMode.auto":{message:"自动",description:"让AI自动生成歌词"},"message.startingTask":{message:"正在启动任务...",description:"音乐生成任务开始时的消息"},"message.startingUploadAudio":{message:"正在上传自定义音乐...",description:"音乐生成任务开始时的消息"},"message.uploadReferencesExceed":{message:"上传的音乐超过了最大数量",description:"上传的音乐超过了最大数量时的错误消息"},"message.uploadReferencesError":{message:"上传音乐失败",description:"上传音乐失败时的错误消息"},"message.startTaskSuccess":{message:"成功启动音乐生成任务",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioSuccess":{message:"成功上传自定义音乐",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioFailed":{message:"上传自定义音乐失败",description:"启动音乐生成任务失败时的错误消息"},"message.startTaskFailed":{message:"启动音乐生成任务失败",description:"启动音乐生成任务失败时的错误消息"},"message.getVideoUrlFailed":{message:"获取音乐视频失败,请稍后重试",description:"获取视频失败时的错误消息"},"message.generatingLyrics":{message:"正在生成歌词...",description:"生成歌词时的消息"},"message.generateLyricsSuccess":{message:"歌词生成成功",description:"歌词生成成功时的消息"},"message.generateLyricsFailed":{message:"歌词生成失败",description:"歌词生成失败时的消息"},"message.optimizingStyle":{message:"正在优化风格描述...",description:"优化风格时的消息"},"message.optimizeStyleSuccess":{message:"风格优化成功",description:"风格优化成功时的消息"},"message.optimizeStyleFailed":{message:"风格优化失败",description:"风格优化失败时的消息"},"message.fetchingWav":{message:"正在获取 WAV 文件...",description:"获取WAV文件时的消息"},"message.fetchWavFailed":{message:"获取 WAV 文件失败",description:"获取WAV文件失败时的消息"},"message.fetchingMidi":{message:"正在获取 MIDI 文件...",description:"获取MIDI文件时的消息"},"message.fetchMidiFailed":{message:"获取 MIDI 文件失败",description:"获取MIDI文件失败时的消息"},"message.generating":{message:"生成中...",description:"音乐正在生成时的消息"},"message.generateFailed":{message:"生成音乐失败",description:"音乐生成失败时的消息"},"message.noOperations":{message:"没有可用操作",description:"没有可用操作时的消息"},"message.noTasks":{message:"没有历史任务,请在左侧配置栏生成音乐",description:"没有任务时的消息"},"button.upload_cover":{message:"上传翻唱",description:"上传音频后翻唱按钮文本"},"button.artist_consistency":{message:"风格一致性",description:"基于歌手风格生成按钮文本"},"button.artist_consistency_vox":{message:"人声风格一致性",description:"基于歌手人声风格生成按钮文本"},"button.underpainting":{message:"添加伴奏",description:"为上传的歌曲添加伴奏按钮文本"},"button.overpainting":{message:"添加人声",description:"为上传的歌曲添加人声按钮文本"},"button.samples":{message:"添加采样",description:"为上传的歌曲添加采样按钮文本"},"button.extract_vocals":{message:"提取人声",description:"从歌曲中提取人声按钮文本"},"button.get_timing":{message:"获取节拍",description:"获取歌曲节拍数据按钮文本"},"button.create_persona":{message:"创建歌手风格",description:"创建歌手风格按钮文本"},"button.mashup_lyrics":{message:"混搭歌词",description:"混搭两段歌词按钮文本"},"name.persona":{message:"歌手风格",description:"歌手风格选择"},"name.overpaintingRange":{message:"人声范围",description:"添加人声的时间范围"},"name.underpaintingRange":{message:"伴奏范围",description:"添加伴奏的时间范围"},"name.samplesRange":{message:"采样范围",description:"添加采样的时间范围"},"placeholder.overpaintingStart":{message:"开始时间 (秒)",description:"人声开始时间的占位符"},"placeholder.overpaintingEnd":{message:"结束时间 (秒)",description:"人声结束时间的占位符"},"placeholder.underpaintingStart":{message:"开始时间 (秒)",description:"伴奏开始时间的占位符"},"placeholder.underpaintingEnd":{message:"结束时间 (秒)",description:"伴奏结束时间的占位符"},"placeholder.samplesStart":{message:"开始时间 (秒)",description:"采样开始时间的占位符"},"placeholder.samplesEnd":{message:"结束时间 (秒)",description:"采样结束时间的占位符"},"placeholder.personaId":{message:"输入歌手风格 ID...",description:"歌手风格 ID 输入的占位符"},"description.persona":{message:"使用已创建的歌手风格来生成一致风格的歌曲",description:"歌手风格功能的描述"},"description.overpainting":{message:"在指定时间范围内为上传的音乐添加人声",description:"添加人声功能的描述"},"description.underpainting":{message:"在指定时间范围内为上传的音乐添加伴奏",description:"添加伴奏功能的描述"},"description.samples":{message:"在指定时间范围内为上传的音乐添加采样",description:"添加采样功能的描述"},"message.fetchingTiming":{message:"正在获取节拍数据...",description:"获取节拍数据时的消息"},"message.fetchTimingFailed":{message:"获取节拍数据失败",description:"获取节拍数据失败时的消息"},"message.fetchTimingSuccess":{message:"节拍数据获取成功",description:"获取节拍数据成功时的消息"},"message.extractingVocals":{message:"正在提取人声...",description:"提取人声时的消息"},"message.extractVocalsFailed":{message:"提取人声失败",description:"提取人声失败时的消息"},"message.extractVocalsSuccess":{message:"人声提取成功",description:"提取人声成功时的消息"},"mode.simple":{message:"简单",description:"简单创作模式标签"},"mode.custom":{message:"定制",description:"定制创作模式标签"},"model.v55desc":{message:"声音人设 · 自定义模型",description:"v5.5 模型描述"},"model.v5desc":{message:"真实人声 · 高品质音频",description:"v5 模型描述"},"model.v45plusdesc":{message:"高级创作方法",description:"v4.5+ 模型描述"},"model.v45desc":{message:"智能提示词",description:"v4.5 模型描述"},"model.v4desc":{message:"改进音质",description:"v4 模型描述"},"model.v35desc":{message:"基础歌曲结构",description:"v3.5 模型描述"},"model.v3desc":{message:"经典",description:"v3 模型描述"},"button.undo":{message:"撤销",description:"撤销按钮提示"},"button.clear_lyrics":{message:"清空歌词",description:"清空歌词按钮提示"},"button.expand_lyrics":{message:"展开编辑",description:"展开歌词全屏编辑按钮提示"},"button.enhance_lyrics":{message:"增强",description:"增强歌词按钮"},"button.clear_all":{message:"清空所有",description:"一键清空所有表单"},"placeholder.enhanceLyrics":{message:"输入修改指令,例如:让歌词更欢快...",description:"歌词增强输入占位符"},"placeholder.lyricsTheme":{message:"例如:一首关于秋日思念的舒缓民谣",description:"AI 生成歌词主题输入占位符"},"message.lyricsThemePromptTitle":{message:"AI 生成歌词",description:"AI 生成歌词输入弹窗标题"},"message.lyricsThemePromptMessage":{message:"请描述这首歌想表达的主题或故事,AI 会据此生成歌词",description:"AI 生成歌词输入弹窗的说明文本"},"message.lyricsThemeRequired":{message:"请先描述一下歌曲主题",description:"主题输入为空时的校验提示"},"message.enhancingLyrics":{message:"正在增强歌词...",description:"增强歌词时的消息"},"message.enhanceLyricsSuccess":{message:"歌词增强成功",description:"增强歌词成功时的消息"},"message.enhanceLyricsFailed":{message:"歌词增强失败",description:"增强歌词失败时的消息"},"placeholder.searchSongs":{message:"搜索歌曲...",description:"歌曲搜索输入的占位符"},"sort.newest":{message:"最新",description:"按最新排序"},"sort.oldest":{message:"最旧",description:"按最旧排序"},"filter.title":{message:"筛选",description:"筛选按钮"},"filter.type":{message:"类型",description:"筛选分区:人声/纯音乐"},"filter.typeAll":{message:"全部",description:"类型:全部"},"filter.typeVocal":{message:"人声",description:"类型:含人声"},"filter.typeInstrumental":{message:"纯音乐",description:"类型:纯音乐"},"filter.duration":{message:"时长",description:"筛选分区:歌曲时长"},"filter.durationAll":{message:"全部",description:"时长:不限"},"filter.durationShort":{message:"< 1 分钟",description:"时长:小于 1 分钟"},"filter.durationMedium":{message:"1-3 分钟",description:"时长:1 到 3 分钟"},"filter.durationLong":{message:"> 3 分钟",description:"时长:大于 3 分钟"},"filter.video":{message:"视频",description:"筛选分区:是否含视频"},"filter.videoAll":{message:"全部",description:"视频:不限"},"filter.videoWith":{message:"含视频",description:"视频:仅含视频"},"filter.videoWithout":{message:"仅音频",description:"视频:仅音频"},"filter.model":{message:"模型",description:"筛选分区:AI 模型"},"filter.modelAll":{message:"全部模型",description:"模型:不限"},"filter.reset":{message:"重置",description:"重置所有筛选"},"button.delete":{message:"删除",description:"删除歌曲的按钮文本"},"button.editTitle":{message:"编辑标题",description:"编辑歌曲标题的按钮文本"},"message.noSearchResults":{message:"未找到歌曲",description:"搜索无结果时的消息"},"message.noFilterResults":{message:"没有符合筛选条件的歌曲",description:"筛选无结果时的消息"},"message.confirmDelete":{message:"确定要删除这首歌吗?此操作不可撤销。",description:"删除歌曲的确认消息"},"message.deleteSuccess":{message:"歌曲已删除",description:"歌曲删除成功时的消息"},"message.deleteFailed":{message:"删除歌曲失败",description:"歌曲删除失败时的消息"},"name.generating":{message:"生成中",description:"歌曲正在生成的状态标签"},"button.adjust_speed":{message:"调整速度",description:"调整歌曲播放速度的按钮文本"},"button.reuse_prompt":{message:"复用提示词",description:"复用已有任务提示词的按钮文本"},"name.adjustSpeed":{message:"速度",description:"速度选择器的标签"},"description.adjustSpeed":{message:"以不同的播放速度重新生成歌曲(0.5 倍到 2 倍)",description:"调整速度功能的描述"},"message.reusePromptSuccess":{message:"提示词已复用,可调整后再次生成",description:"复用提示词成功后的提示信息"},"message.reusePromptEmpty":{message:"没有可复用的提示词数据",description:"当任务没有提示词可复用时的提示"},"name.lyricsMode":{message:"歌词模式",description:"歌词模式选择器的标签(手动 / 自动)"}};export{e as default};