superstack-wallet-sdk 0.4.2

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 (623) hide show
  1. package/README.md +114 -0
  2. package/dist/esm/_virtual/_commonjsHelpers.js +2 -0
  3. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/esm/_virtual/_polyfill-node.buffer.js +2 -0
  5. package/dist/esm/_virtual/_polyfill-node.buffer.js.map +1 -0
  6. package/dist/esm/_virtual/index.js +2 -0
  7. package/dist/esm/_virtual/index.js.map +1 -0
  8. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
  9. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
  10. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
  11. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  12. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
  13. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  14. package/dist/esm/node_modules/@noble/hashes/esm/_md.js +2 -0
  15. package/dist/esm/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  16. package/dist/esm/node_modules/@noble/hashes/esm/_u64.js +2 -0
  17. package/dist/esm/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  18. package/dist/esm/node_modules/@noble/hashes/esm/crypto.js +2 -0
  19. package/dist/esm/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  20. package/dist/esm/node_modules/@noble/hashes/esm/hmac.js +2 -0
  21. package/dist/esm/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  22. package/dist/esm/node_modules/@noble/hashes/esm/sha2.js +2 -0
  23. package/dist/esm/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  24. package/dist/esm/node_modules/@noble/hashes/esm/sha256.js +2 -0
  25. package/dist/esm/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  26. package/dist/esm/node_modules/@noble/hashes/esm/sha3.js +2 -0
  27. package/dist/esm/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  28. package/dist/esm/node_modules/@noble/hashes/esm/utils.js +4 -0
  29. package/dist/esm/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  30. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js +2 -0
  31. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js.map +1 -0
  32. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js +2 -0
  33. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js.map +1 -0
  34. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js +2 -0
  35. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js.map +1 -0
  36. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js +2 -0
  37. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js.map +1 -0
  38. package/dist/esm/node_modules/abitype/dist/esm/errors.js +2 -0
  39. package/dist/esm/node_modules/abitype/dist/esm/errors.js.map +1 -0
  40. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js +2 -0
  41. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js.map +1 -0
  42. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js +2 -0
  43. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js.map +1 -0
  44. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/signature.js +2 -0
  45. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/signature.js.map +1 -0
  46. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js +2 -0
  47. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js.map +1 -0
  48. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/struct.js +2 -0
  49. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/struct.js.map +1 -0
  50. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js +2 -0
  51. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js.map +1 -0
  52. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js +2 -0
  53. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js.map +1 -0
  54. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js +2 -0
  55. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js.map +1 -0
  56. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbi.js +2 -0
  57. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbi.js.map +1 -0
  58. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js +2 -0
  59. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js.map +1 -0
  60. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js +2 -0
  61. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js.map +1 -0
  62. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/cache.js +2 -0
  63. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/cache.js.map +1 -0
  64. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js +2 -0
  65. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js.map +1 -0
  66. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/structs.js +2 -0
  67. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/structs.js.map +1 -0
  68. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/utils.js +2 -0
  69. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/utils.js.map +1 -0
  70. package/dist/esm/node_modules/abitype/dist/esm/regex.js +2 -0
  71. package/dist/esm/node_modules/abitype/dist/esm/regex.js.map +1 -0
  72. package/dist/esm/node_modules/abitype/dist/esm/version.js +2 -0
  73. package/dist/esm/node_modules/abitype/dist/esm/version.js.map +1 -0
  74. package/dist/esm/node_modules/ethers/lib.esm/_version.js +2 -0
  75. package/dist/esm/node_modules/ethers/lib.esm/_version.js.map +1 -0
  76. package/dist/esm/node_modules/ethers/lib.esm/utils/data.js +2 -0
  77. package/dist/esm/node_modules/ethers/lib.esm/utils/data.js.map +1 -0
  78. package/dist/esm/node_modules/ethers/lib.esm/utils/errors.js +2 -0
  79. package/dist/esm/node_modules/ethers/lib.esm/utils/errors.js.map +1 -0
  80. package/dist/esm/node_modules/ethers/lib.esm/utils/fixednumber.js +2 -0
  81. package/dist/esm/node_modules/ethers/lib.esm/utils/fixednumber.js.map +1 -0
  82. package/dist/esm/node_modules/ethers/lib.esm/utils/maths.js +2 -0
  83. package/dist/esm/node_modules/ethers/lib.esm/utils/maths.js.map +1 -0
  84. package/dist/esm/node_modules/ethers/lib.esm/utils/properties.js +2 -0
  85. package/dist/esm/node_modules/ethers/lib.esm/utils/properties.js.map +1 -0
  86. package/dist/esm/node_modules/ethers/lib.esm/utils/units.js +2 -0
  87. package/dist/esm/node_modules/ethers/lib.esm/utils/units.js.map +1 -0
  88. package/dist/esm/node_modules/eventemitter3/index.js +2 -0
  89. package/dist/esm/node_modules/eventemitter3/index.js.map +1 -0
  90. package/dist/esm/node_modules/eventemitter3/index2.js +2 -0
  91. package/dist/esm/node_modules/eventemitter3/index2.js.map +1 -0
  92. package/dist/esm/node_modules/ox/_esm/core/AbiConstructor.js +2 -0
  93. package/dist/esm/node_modules/ox/_esm/core/AbiConstructor.js.map +1 -0
  94. package/dist/esm/node_modules/ox/_esm/core/AbiFunction.js +2 -0
  95. package/dist/esm/node_modules/ox/_esm/core/AbiFunction.js.map +1 -0
  96. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js +2 -0
  97. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js.map +1 -0
  98. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js +2 -0
  99. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js.map +1 -0
  100. package/dist/esm/node_modules/ox/_esm/core/Address.js +2 -0
  101. package/dist/esm/node_modules/ox/_esm/core/Address.js.map +1 -0
  102. package/dist/esm/node_modules/ox/_esm/core/Authorization.js +2 -0
  103. package/dist/esm/node_modules/ox/_esm/core/Authorization.js.map +1 -0
  104. package/dist/esm/node_modules/ox/_esm/core/BlockOverrides.js +2 -0
  105. package/dist/esm/node_modules/ox/_esm/core/BlockOverrides.js.map +1 -0
  106. package/dist/esm/node_modules/ox/_esm/core/Bytes.js +2 -0
  107. package/dist/esm/node_modules/ox/_esm/core/Bytes.js.map +1 -0
  108. package/dist/esm/node_modules/ox/_esm/core/Caches.js +2 -0
  109. package/dist/esm/node_modules/ox/_esm/core/Caches.js.map +1 -0
  110. package/dist/esm/node_modules/ox/_esm/core/Errors.js +2 -0
  111. package/dist/esm/node_modules/ox/_esm/core/Errors.js.map +1 -0
  112. package/dist/esm/node_modules/ox/_esm/core/Hash.js +2 -0
  113. package/dist/esm/node_modules/ox/_esm/core/Hash.js.map +1 -0
  114. package/dist/esm/node_modules/ox/_esm/core/Hex.js +2 -0
  115. package/dist/esm/node_modules/ox/_esm/core/Hex.js.map +1 -0
  116. package/dist/esm/node_modules/ox/_esm/core/Json.js +2 -0
  117. package/dist/esm/node_modules/ox/_esm/core/Json.js.map +1 -0
  118. package/dist/esm/node_modules/ox/_esm/core/Signature.js +2 -0
  119. package/dist/esm/node_modules/ox/_esm/core/Signature.js.map +1 -0
  120. package/dist/esm/node_modules/ox/_esm/core/Solidity.js +2 -0
  121. package/dist/esm/node_modules/ox/_esm/core/Solidity.js.map +1 -0
  122. package/dist/esm/node_modules/ox/_esm/core/Withdrawal.js +2 -0
  123. package/dist/esm/node_modules/ox/_esm/core/Withdrawal.js.map +1 -0
  124. package/dist/esm/node_modules/ox/_esm/core/internal/abiItem.js +2 -0
  125. package/dist/esm/node_modules/ox/_esm/core/internal/abiItem.js.map +1 -0
  126. package/dist/esm/node_modules/ox/_esm/core/internal/abiParameters.js +2 -0
  127. package/dist/esm/node_modules/ox/_esm/core/internal/abiParameters.js.map +1 -0
  128. package/dist/esm/node_modules/ox/_esm/core/internal/bytes.js +2 -0
  129. package/dist/esm/node_modules/ox/_esm/core/internal/bytes.js.map +1 -0
  130. package/dist/esm/node_modules/ox/_esm/core/internal/cursor.js +2 -0
  131. package/dist/esm/node_modules/ox/_esm/core/internal/cursor.js.map +1 -0
  132. package/dist/esm/node_modules/ox/_esm/core/internal/errors.js +2 -0
  133. package/dist/esm/node_modules/ox/_esm/core/internal/errors.js.map +1 -0
  134. package/dist/esm/node_modules/ox/_esm/core/internal/hex.js +2 -0
  135. package/dist/esm/node_modules/ox/_esm/core/internal/hex.js.map +1 -0
  136. package/dist/esm/node_modules/ox/_esm/core/internal/lru.js +2 -0
  137. package/dist/esm/node_modules/ox/_esm/core/internal/lru.js.map +1 -0
  138. package/dist/esm/node_modules/ox/_esm/core/version.js +2 -0
  139. package/dist/esm/node_modules/ox/_esm/core/version.js.map +1 -0
  140. package/dist/esm/node_modules/ox/_esm/erc6492/SignatureErc6492.js +2 -0
  141. package/dist/esm/node_modules/ox/_esm/erc6492/SignatureErc6492.js.map +1 -0
  142. package/dist/esm/node_modules/ox/_esm/erc8010/SignatureErc8010.js +2 -0
  143. package/dist/esm/node_modules/ox/_esm/erc8010/SignatureErc8010.js.map +1 -0
  144. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js +2 -0
  145. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -0
  146. package/dist/esm/node_modules/stylis/src/Enum.js +2 -0
  147. package/dist/esm/node_modules/stylis/src/Enum.js.map +1 -0
  148. package/dist/esm/node_modules/stylis/src/Middleware.js +2 -0
  149. package/dist/esm/node_modules/stylis/src/Middleware.js.map +1 -0
  150. package/dist/esm/node_modules/stylis/src/Parser.js +2 -0
  151. package/dist/esm/node_modules/stylis/src/Parser.js.map +1 -0
  152. package/dist/esm/node_modules/stylis/src/Prefixer.js +2 -0
  153. package/dist/esm/node_modules/stylis/src/Prefixer.js.map +1 -0
  154. package/dist/esm/node_modules/stylis/src/Serializer.js +2 -0
  155. package/dist/esm/node_modules/stylis/src/Serializer.js.map +1 -0
  156. package/dist/esm/node_modules/stylis/src/Tokenizer.js +2 -0
  157. package/dist/esm/node_modules/stylis/src/Tokenizer.js.map +1 -0
  158. package/dist/esm/node_modules/stylis/src/Utility.js +2 -0
  159. package/dist/esm/node_modules/stylis/src/Utility.js.map +1 -0
  160. package/dist/esm/node_modules/tslib/tslib.es6.js +2 -0
  161. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
  162. package/dist/esm/node_modules/viem/_esm/accounts/utils/parseAccount.js +2 -0
  163. package/dist/esm/node_modules/viem/_esm/accounts/utils/parseAccount.js.map +1 -0
  164. package/dist/esm/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js +2 -0
  165. package/dist/esm/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js.map +1 -0
  166. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAddress.js +2 -0
  167. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAddress.js.map +1 -0
  168. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAvatar.js +2 -0
  169. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAvatar.js.map +1 -0
  170. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsName.js +2 -0
  171. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsName.js.map +1 -0
  172. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsResolver.js +2 -0
  173. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsResolver.js.map +1 -0
  174. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsText.js +2 -0
  175. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsText.js.map +1 -0
  176. package/dist/esm/node_modules/viem/_esm/actions/public/call.js +2 -0
  177. package/dist/esm/node_modules/viem/_esm/actions/public/call.js.map +1 -0
  178. package/dist/esm/node_modules/viem/_esm/actions/public/createAccessList.js +2 -0
  179. package/dist/esm/node_modules/viem/_esm/actions/public/createAccessList.js.map +1 -0
  180. package/dist/esm/node_modules/viem/_esm/actions/public/createBlockFilter.js +2 -0
  181. package/dist/esm/node_modules/viem/_esm/actions/public/createBlockFilter.js.map +1 -0
  182. package/dist/esm/node_modules/viem/_esm/actions/public/createContractEventFilter.js +2 -0
  183. package/dist/esm/node_modules/viem/_esm/actions/public/createContractEventFilter.js.map +1 -0
  184. package/dist/esm/node_modules/viem/_esm/actions/public/createEventFilter.js +2 -0
  185. package/dist/esm/node_modules/viem/_esm/actions/public/createEventFilter.js.map +1 -0
  186. package/dist/esm/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js +2 -0
  187. package/dist/esm/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js.map +1 -0
  188. package/dist/esm/node_modules/viem/_esm/actions/public/estimateContractGas.js +2 -0
  189. package/dist/esm/node_modules/viem/_esm/actions/public/estimateContractGas.js.map +1 -0
  190. package/dist/esm/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js +2 -0
  191. package/dist/esm/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js.map +1 -0
  192. package/dist/esm/node_modules/viem/_esm/actions/public/estimateGas.js +2 -0
  193. package/dist/esm/node_modules/viem/_esm/actions/public/estimateGas.js.map +1 -0
  194. package/dist/esm/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -0
  195. package/dist/esm/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
  196. package/dist/esm/node_modules/viem/_esm/actions/public/getBalance.js +2 -0
  197. package/dist/esm/node_modules/viem/_esm/actions/public/getBalance.js.map +1 -0
  198. package/dist/esm/node_modules/viem/_esm/actions/public/getBlobBaseFee.js +2 -0
  199. package/dist/esm/node_modules/viem/_esm/actions/public/getBlobBaseFee.js.map +1 -0
  200. package/dist/esm/node_modules/viem/_esm/actions/public/getBlock.js +2 -0
  201. package/dist/esm/node_modules/viem/_esm/actions/public/getBlock.js.map +1 -0
  202. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockNumber.js +2 -0
  203. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockNumber.js.map +1 -0
  204. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js +2 -0
  205. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js.map +1 -0
  206. package/dist/esm/node_modules/viem/_esm/actions/public/getChainId.js +2 -0
  207. package/dist/esm/node_modules/viem/_esm/actions/public/getChainId.js.map +1 -0
  208. package/dist/esm/node_modules/viem/_esm/actions/public/getCode.js +2 -0
  209. package/dist/esm/node_modules/viem/_esm/actions/public/getCode.js.map +1 -0
  210. package/dist/esm/node_modules/viem/_esm/actions/public/getContractEvents.js +2 -0
  211. package/dist/esm/node_modules/viem/_esm/actions/public/getContractEvents.js.map +1 -0
  212. package/dist/esm/node_modules/viem/_esm/actions/public/getEip712Domain.js +2 -0
  213. package/dist/esm/node_modules/viem/_esm/actions/public/getEip712Domain.js.map +1 -0
  214. package/dist/esm/node_modules/viem/_esm/actions/public/getFeeHistory.js +2 -0
  215. package/dist/esm/node_modules/viem/_esm/actions/public/getFeeHistory.js.map +1 -0
  216. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterChanges.js +2 -0
  217. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterChanges.js.map +1 -0
  218. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterLogs.js +2 -0
  219. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterLogs.js.map +1 -0
  220. package/dist/esm/node_modules/viem/_esm/actions/public/getGasPrice.js +2 -0
  221. package/dist/esm/node_modules/viem/_esm/actions/public/getGasPrice.js.map +1 -0
  222. package/dist/esm/node_modules/viem/_esm/actions/public/getLogs.js +2 -0
  223. package/dist/esm/node_modules/viem/_esm/actions/public/getLogs.js.map +1 -0
  224. package/dist/esm/node_modules/viem/_esm/actions/public/getProof.js +2 -0
  225. package/dist/esm/node_modules/viem/_esm/actions/public/getProof.js.map +1 -0
  226. package/dist/esm/node_modules/viem/_esm/actions/public/getStorageAt.js +2 -0
  227. package/dist/esm/node_modules/viem/_esm/actions/public/getStorageAt.js.map +1 -0
  228. package/dist/esm/node_modules/viem/_esm/actions/public/getTransaction.js +2 -0
  229. package/dist/esm/node_modules/viem/_esm/actions/public/getTransaction.js.map +1 -0
  230. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js +2 -0
  231. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js.map +1 -0
  232. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionCount.js +2 -0
  233. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionCount.js.map +1 -0
  234. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionReceipt.js +2 -0
  235. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionReceipt.js.map +1 -0
  236. package/dist/esm/node_modules/viem/_esm/actions/public/multicall.js +2 -0
  237. package/dist/esm/node_modules/viem/_esm/actions/public/multicall.js.map +1 -0
  238. package/dist/esm/node_modules/viem/_esm/actions/public/readContract.js +2 -0
  239. package/dist/esm/node_modules/viem/_esm/actions/public/readContract.js.map +1 -0
  240. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js +2 -0
  241. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js.map +1 -0
  242. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js +2 -0
  243. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js.map +1 -0
  244. package/dist/esm/node_modules/viem/_esm/actions/public/simulateContract.js +2 -0
  245. package/dist/esm/node_modules/viem/_esm/actions/public/simulateContract.js.map +1 -0
  246. package/dist/esm/node_modules/viem/_esm/actions/public/uninstallFilter.js +2 -0
  247. package/dist/esm/node_modules/viem/_esm/actions/public/uninstallFilter.js.map +1 -0
  248. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js +2 -0
  249. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js.map +1 -0
  250. package/dist/esm/node_modules/viem/_esm/actions/public/verifyMessage.js +2 -0
  251. package/dist/esm/node_modules/viem/_esm/actions/public/verifyMessage.js.map +1 -0
  252. package/dist/esm/node_modules/viem/_esm/actions/public/verifyTypedData.js +2 -0
  253. package/dist/esm/node_modules/viem/_esm/actions/public/verifyTypedData.js.map +1 -0
  254. package/dist/esm/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js +2 -0
  255. package/dist/esm/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js.map +1 -0
  256. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlockNumber.js +2 -0
  257. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlockNumber.js.map +1 -0
  258. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlocks.js +2 -0
  259. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlocks.js.map +1 -0
  260. package/dist/esm/node_modules/viem/_esm/actions/public/watchContractEvent.js +2 -0
  261. package/dist/esm/node_modules/viem/_esm/actions/public/watchContractEvent.js.map +1 -0
  262. package/dist/esm/node_modules/viem/_esm/actions/public/watchEvent.js +2 -0
  263. package/dist/esm/node_modules/viem/_esm/actions/public/watchEvent.js.map +1 -0
  264. package/dist/esm/node_modules/viem/_esm/actions/public/watchPendingTransactions.js +2 -0
  265. package/dist/esm/node_modules/viem/_esm/actions/public/watchPendingTransactions.js.map +1 -0
  266. package/dist/esm/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js +2 -0
  267. package/dist/esm/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js.map +1 -0
  268. package/dist/esm/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js +2 -0
  269. package/dist/esm/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -0
  270. package/dist/esm/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js +2 -0
  271. package/dist/esm/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js.map +1 -0
  272. package/dist/esm/node_modules/viem/_esm/clients/createClient.js +2 -0
  273. package/dist/esm/node_modules/viem/_esm/clients/createClient.js.map +1 -0
  274. package/dist/esm/node_modules/viem/_esm/clients/createPublicClient.js +2 -0
  275. package/dist/esm/node_modules/viem/_esm/clients/createPublicClient.js.map +1 -0
  276. package/dist/esm/node_modules/viem/_esm/clients/decorators/public.js +2 -0
  277. package/dist/esm/node_modules/viem/_esm/clients/decorators/public.js.map +1 -0
  278. package/dist/esm/node_modules/viem/_esm/clients/transports/createTransport.js +2 -0
  279. package/dist/esm/node_modules/viem/_esm/clients/transports/createTransport.js.map +1 -0
  280. package/dist/esm/node_modules/viem/_esm/clients/transports/http.js +2 -0
  281. package/dist/esm/node_modules/viem/_esm/clients/transports/http.js.map +1 -0
  282. package/dist/esm/node_modules/viem/_esm/constants/abis.js +2 -0
  283. package/dist/esm/node_modules/viem/_esm/constants/abis.js.map +1 -0
  284. package/dist/esm/node_modules/viem/_esm/constants/address.js +2 -0
  285. package/dist/esm/node_modules/viem/_esm/constants/address.js.map +1 -0
  286. package/dist/esm/node_modules/viem/_esm/constants/blob.js +2 -0
  287. package/dist/esm/node_modules/viem/_esm/constants/blob.js.map +1 -0
  288. package/dist/esm/node_modules/viem/_esm/constants/contract.js +2 -0
  289. package/dist/esm/node_modules/viem/_esm/constants/contract.js.map +1 -0
  290. package/dist/esm/node_modules/viem/_esm/constants/contracts.js +2 -0
  291. package/dist/esm/node_modules/viem/_esm/constants/contracts.js.map +1 -0
  292. package/dist/esm/node_modules/viem/_esm/constants/number.js +2 -0
  293. package/dist/esm/node_modules/viem/_esm/constants/number.js.map +1 -0
  294. package/dist/esm/node_modules/viem/_esm/constants/solidity.js +2 -0
  295. package/dist/esm/node_modules/viem/_esm/constants/solidity.js.map +1 -0
  296. package/dist/esm/node_modules/viem/_esm/constants/strings.js +2 -0
  297. package/dist/esm/node_modules/viem/_esm/constants/strings.js.map +1 -0
  298. package/dist/esm/node_modules/viem/_esm/constants/unit.js +2 -0
  299. package/dist/esm/node_modules/viem/_esm/constants/unit.js.map +1 -0
  300. package/dist/esm/node_modules/viem/_esm/errors/abi.js +2 -0
  301. package/dist/esm/node_modules/viem/_esm/errors/abi.js.map +1 -0
  302. package/dist/esm/node_modules/viem/_esm/errors/address.js +2 -0
  303. package/dist/esm/node_modules/viem/_esm/errors/address.js.map +1 -0
  304. package/dist/esm/node_modules/viem/_esm/errors/base.js +2 -0
  305. package/dist/esm/node_modules/viem/_esm/errors/base.js.map +1 -0
  306. package/dist/esm/node_modules/viem/_esm/errors/blob.js +2 -0
  307. package/dist/esm/node_modules/viem/_esm/errors/blob.js.map +1 -0
  308. package/dist/esm/node_modules/viem/_esm/errors/block.js +2 -0
  309. package/dist/esm/node_modules/viem/_esm/errors/block.js.map +1 -0
  310. package/dist/esm/node_modules/viem/_esm/errors/ccip.js +2 -0
  311. package/dist/esm/node_modules/viem/_esm/errors/ccip.js.map +1 -0
  312. package/dist/esm/node_modules/viem/_esm/errors/chain.js +2 -0
  313. package/dist/esm/node_modules/viem/_esm/errors/chain.js.map +1 -0
  314. package/dist/esm/node_modules/viem/_esm/errors/contract.js +2 -0
  315. package/dist/esm/node_modules/viem/_esm/errors/contract.js.map +1 -0
  316. package/dist/esm/node_modules/viem/_esm/errors/cursor.js +2 -0
  317. package/dist/esm/node_modules/viem/_esm/errors/cursor.js.map +1 -0
  318. package/dist/esm/node_modules/viem/_esm/errors/data.js +2 -0
  319. package/dist/esm/node_modules/viem/_esm/errors/data.js.map +1 -0
  320. package/dist/esm/node_modules/viem/_esm/errors/eip712.js +2 -0
  321. package/dist/esm/node_modules/viem/_esm/errors/eip712.js.map +1 -0
  322. package/dist/esm/node_modules/viem/_esm/errors/encoding.js +2 -0
  323. package/dist/esm/node_modules/viem/_esm/errors/encoding.js.map +1 -0
  324. package/dist/esm/node_modules/viem/_esm/errors/ens.js +2 -0
  325. package/dist/esm/node_modules/viem/_esm/errors/ens.js.map +1 -0
  326. package/dist/esm/node_modules/viem/_esm/errors/estimateGas.js +2 -0
  327. package/dist/esm/node_modules/viem/_esm/errors/estimateGas.js.map +1 -0
  328. package/dist/esm/node_modules/viem/_esm/errors/fee.js +2 -0
  329. package/dist/esm/node_modules/viem/_esm/errors/fee.js.map +1 -0
  330. package/dist/esm/node_modules/viem/_esm/errors/log.js +2 -0
  331. package/dist/esm/node_modules/viem/_esm/errors/log.js.map +1 -0
  332. package/dist/esm/node_modules/viem/_esm/errors/node.js +2 -0
  333. package/dist/esm/node_modules/viem/_esm/errors/node.js.map +1 -0
  334. package/dist/esm/node_modules/viem/_esm/errors/request.js +2 -0
  335. package/dist/esm/node_modules/viem/_esm/errors/request.js.map +1 -0
  336. package/dist/esm/node_modules/viem/_esm/errors/rpc.js +2 -0
  337. package/dist/esm/node_modules/viem/_esm/errors/rpc.js.map +1 -0
  338. package/dist/esm/node_modules/viem/_esm/errors/stateOverride.js +2 -0
  339. package/dist/esm/node_modules/viem/_esm/errors/stateOverride.js.map +1 -0
  340. package/dist/esm/node_modules/viem/_esm/errors/transaction.js +2 -0
  341. package/dist/esm/node_modules/viem/_esm/errors/transaction.js.map +1 -0
  342. package/dist/esm/node_modules/viem/_esm/errors/transport.js +2 -0
  343. package/dist/esm/node_modules/viem/_esm/errors/transport.js.map +1 -0
  344. package/dist/esm/node_modules/viem/_esm/errors/typedData.js +2 -0
  345. package/dist/esm/node_modules/viem/_esm/errors/typedData.js.map +1 -0
  346. package/dist/esm/node_modules/viem/_esm/errors/utils.js +2 -0
  347. package/dist/esm/node_modules/viem/_esm/errors/utils.js.map +1 -0
  348. package/dist/esm/node_modules/viem/_esm/errors/version.js +2 -0
  349. package/dist/esm/node_modules/viem/_esm/errors/version.js.map +1 -0
  350. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js +2 -0
  351. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js.map +1 -0
  352. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeErrorResult.js +2 -0
  353. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeErrorResult.js.map +1 -0
  354. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeEventLog.js +2 -0
  355. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeEventLog.js.map +1 -0
  356. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionData.js +2 -0
  357. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionData.js.map +1 -0
  358. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js +2 -0
  359. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js.map +1 -0
  360. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js +2 -0
  361. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js.map +1 -0
  362. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeDeployData.js +2 -0
  363. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeDeployData.js.map +1 -0
  364. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeErrorResult.js +2 -0
  365. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeErrorResult.js.map +1 -0
  366. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeEventTopics.js +2 -0
  367. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeEventTopics.js.map +1 -0
  368. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionData.js +2 -0
  369. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionData.js.map +1 -0
  370. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js +2 -0
  371. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js.map +1 -0
  372. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItem.js +2 -0
  373. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItem.js.map +1 -0
  374. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js +2 -0
  375. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -0
  376. package/dist/esm/node_modules/viem/_esm/utils/abi/getAbiItem.js +2 -0
  377. package/dist/esm/node_modules/viem/_esm/utils/abi/getAbiItem.js.map +1 -0
  378. package/dist/esm/node_modules/viem/_esm/utils/abi/parseEventLogs.js +2 -0
  379. package/dist/esm/node_modules/viem/_esm/utils/abi/parseEventLogs.js.map +1 -0
  380. package/dist/esm/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js +2 -0
  381. package/dist/esm/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js.map +1 -0
  382. package/dist/esm/node_modules/viem/_esm/utils/address/getAddress.js +2 -0
  383. package/dist/esm/node_modules/viem/_esm/utils/address/getAddress.js.map +1 -0
  384. package/dist/esm/node_modules/viem/_esm/utils/address/isAddress.js +2 -0
  385. package/dist/esm/node_modules/viem/_esm/utils/address/isAddress.js.map +1 -0
  386. package/dist/esm/node_modules/viem/_esm/utils/address/isAddressEqual.js +2 -0
  387. package/dist/esm/node_modules/viem/_esm/utils/address/isAddressEqual.js.map +1 -0
  388. package/dist/esm/node_modules/viem/_esm/utils/authorization/hashAuthorization.js +2 -0
  389. package/dist/esm/node_modules/viem/_esm/utils/authorization/hashAuthorization.js.map +1 -0
  390. package/dist/esm/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js +2 -0
  391. package/dist/esm/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js.map +1 -0
  392. package/dist/esm/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js +2 -0
  393. package/dist/esm/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js.map +1 -0
  394. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToCommitments.js +2 -0
  395. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToCommitments.js.map +1 -0
  396. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToProofs.js +2 -0
  397. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToProofs.js.map +1 -0
  398. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js +2 -0
  399. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js.map +1 -0
  400. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js +2 -0
  401. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js.map +1 -0
  402. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobSidecars.js +2 -0
  403. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobSidecars.js.map +1 -0
  404. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobs.js +2 -0
  405. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobs.js.map +1 -0
  406. package/dist/esm/node_modules/viem/_esm/utils/buildRequest.js +2 -0
  407. package/dist/esm/node_modules/viem/_esm/utils/buildRequest.js.map +1 -0
  408. package/dist/esm/node_modules/viem/_esm/utils/ccip.js +2 -0
  409. package/dist/esm/node_modules/viem/_esm/utils/ccip.js.map +1 -0
  410. package/dist/esm/node_modules/viem/_esm/utils/chain/getChainContractAddress.js +2 -0
  411. package/dist/esm/node_modules/viem/_esm/utils/chain/getChainContractAddress.js.map +1 -0
  412. package/dist/esm/node_modules/viem/_esm/utils/cursor.js +2 -0
  413. package/dist/esm/node_modules/viem/_esm/utils/cursor.js.map +1 -0
  414. package/dist/esm/node_modules/viem/_esm/utils/data/concat.js +2 -0
  415. package/dist/esm/node_modules/viem/_esm/utils/data/concat.js.map +1 -0
  416. package/dist/esm/node_modules/viem/_esm/utils/data/isHex.js +2 -0
  417. package/dist/esm/node_modules/viem/_esm/utils/data/isHex.js.map +1 -0
  418. package/dist/esm/node_modules/viem/_esm/utils/data/pad.js +2 -0
  419. package/dist/esm/node_modules/viem/_esm/utils/data/pad.js.map +1 -0
  420. package/dist/esm/node_modules/viem/_esm/utils/data/size.js +2 -0
  421. package/dist/esm/node_modules/viem/_esm/utils/data/size.js.map +1 -0
  422. package/dist/esm/node_modules/viem/_esm/utils/data/slice.js +2 -0
  423. package/dist/esm/node_modules/viem/_esm/utils/data/slice.js.map +1 -0
  424. package/dist/esm/node_modules/viem/_esm/utils/data/trim.js +2 -0
  425. package/dist/esm/node_modules/viem/_esm/utils/data/trim.js.map +1 -0
  426. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromBytes.js +2 -0
  427. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromBytes.js.map +1 -0
  428. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromHex.js +2 -0
  429. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromHex.js.map +1 -0
  430. package/dist/esm/node_modules/viem/_esm/utils/encoding/toBytes.js +2 -0
  431. package/dist/esm/node_modules/viem/_esm/utils/encoding/toBytes.js.map +1 -0
  432. package/dist/esm/node_modules/viem/_esm/utils/encoding/toHex.js +2 -0
  433. package/dist/esm/node_modules/viem/_esm/utils/encoding/toHex.js.map +1 -0
  434. package/dist/esm/node_modules/viem/_esm/utils/encoding/toRlp.js +2 -0
  435. package/dist/esm/node_modules/viem/_esm/utils/encoding/toRlp.js.map +1 -0
  436. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js +2 -0
  437. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -0
  438. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/utils.js +2 -0
  439. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/utils.js.map +1 -0
  440. package/dist/esm/node_modules/viem/_esm/utils/ens/encodeLabelhash.js +2 -0
  441. package/dist/esm/node_modules/viem/_esm/utils/ens/encodeLabelhash.js.map +1 -0
  442. package/dist/esm/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js +2 -0
  443. package/dist/esm/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -0
  444. package/dist/esm/node_modules/viem/_esm/utils/ens/errors.js +2 -0
  445. package/dist/esm/node_modules/viem/_esm/utils/ens/errors.js.map +1 -0
  446. package/dist/esm/node_modules/viem/_esm/utils/ens/labelhash.js +2 -0
  447. package/dist/esm/node_modules/viem/_esm/utils/ens/labelhash.js.map +1 -0
  448. package/dist/esm/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js +2 -0
  449. package/dist/esm/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js.map +1 -0
  450. package/dist/esm/node_modules/viem/_esm/utils/ens/namehash.js +2 -0
  451. package/dist/esm/node_modules/viem/_esm/utils/ens/namehash.js.map +1 -0
  452. package/dist/esm/node_modules/viem/_esm/utils/ens/packetToBytes.js +2 -0
  453. package/dist/esm/node_modules/viem/_esm/utils/ens/packetToBytes.js.map +1 -0
  454. package/dist/esm/node_modules/viem/_esm/utils/errors/getCallError.js +2 -0
  455. package/dist/esm/node_modules/viem/_esm/utils/errors/getCallError.js.map +1 -0
  456. package/dist/esm/node_modules/viem/_esm/utils/errors/getContractError.js +2 -0
  457. package/dist/esm/node_modules/viem/_esm/utils/errors/getContractError.js.map +1 -0
  458. package/dist/esm/node_modules/viem/_esm/utils/errors/getEstimateGasError.js +2 -0
  459. package/dist/esm/node_modules/viem/_esm/utils/errors/getEstimateGasError.js.map +1 -0
  460. package/dist/esm/node_modules/viem/_esm/utils/errors/getNodeError.js +2 -0
  461. package/dist/esm/node_modules/viem/_esm/utils/errors/getNodeError.js.map +1 -0
  462. package/dist/esm/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js +2 -0
  463. package/dist/esm/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js.map +1 -0
  464. package/dist/esm/node_modules/viem/_esm/utils/formatters/block.js +2 -0
  465. package/dist/esm/node_modules/viem/_esm/utils/formatters/block.js.map +1 -0
  466. package/dist/esm/node_modules/viem/_esm/utils/formatters/extract.js +2 -0
  467. package/dist/esm/node_modules/viem/_esm/utils/formatters/extract.js.map +1 -0
  468. package/dist/esm/node_modules/viem/_esm/utils/formatters/feeHistory.js +2 -0
  469. package/dist/esm/node_modules/viem/_esm/utils/formatters/feeHistory.js.map +1 -0
  470. package/dist/esm/node_modules/viem/_esm/utils/formatters/log.js +2 -0
  471. package/dist/esm/node_modules/viem/_esm/utils/formatters/log.js.map +1 -0
  472. package/dist/esm/node_modules/viem/_esm/utils/formatters/proof.js +2 -0
  473. package/dist/esm/node_modules/viem/_esm/utils/formatters/proof.js.map +1 -0
  474. package/dist/esm/node_modules/viem/_esm/utils/formatters/transaction.js +2 -0
  475. package/dist/esm/node_modules/viem/_esm/utils/formatters/transaction.js.map +1 -0
  476. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionReceipt.js +2 -0
  477. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionReceipt.js.map +1 -0
  478. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionRequest.js +2 -0
  479. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionRequest.js.map +1 -0
  480. package/dist/esm/node_modules/viem/_esm/utils/getAction.js +2 -0
  481. package/dist/esm/node_modules/viem/_esm/utils/getAction.js.map +1 -0
  482. package/dist/esm/node_modules/viem/_esm/utils/hash/hashSignature.js +2 -0
  483. package/dist/esm/node_modules/viem/_esm/utils/hash/hashSignature.js.map +1 -0
  484. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js +2 -0
  485. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js.map +1 -0
  486. package/dist/esm/node_modules/viem/_esm/utils/hash/normalizeSignature.js +2 -0
  487. package/dist/esm/node_modules/viem/_esm/utils/hash/normalizeSignature.js.map +1 -0
  488. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js +2 -0
  489. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js.map +1 -0
  490. package/dist/esm/node_modules/viem/_esm/utils/hash/toEventSelector.js +2 -0
  491. package/dist/esm/node_modules/viem/_esm/utils/hash/toEventSelector.js.map +1 -0
  492. package/dist/esm/node_modules/viem/_esm/utils/hash/toFunctionSelector.js +2 -0
  493. package/dist/esm/node_modules/viem/_esm/utils/hash/toFunctionSelector.js.map +1 -0
  494. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js +2 -0
  495. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js.map +1 -0
  496. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignatureHash.js +2 -0
  497. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignatureHash.js.map +1 -0
  498. package/dist/esm/node_modules/viem/_esm/utils/lru.js +2 -0
  499. package/dist/esm/node_modules/viem/_esm/utils/lru.js.map +1 -0
  500. package/dist/esm/node_modules/viem/_esm/utils/observe.js +2 -0
  501. package/dist/esm/node_modules/viem/_esm/utils/observe.js.map +1 -0
  502. package/dist/esm/node_modules/viem/_esm/utils/poll.js +2 -0
  503. package/dist/esm/node_modules/viem/_esm/utils/poll.js.map +1 -0
  504. package/dist/esm/node_modules/viem/_esm/utils/promise/createBatchScheduler.js +2 -0
  505. package/dist/esm/node_modules/viem/_esm/utils/promise/createBatchScheduler.js.map +1 -0
  506. package/dist/esm/node_modules/viem/_esm/utils/promise/withCache.js +2 -0
  507. package/dist/esm/node_modules/viem/_esm/utils/promise/withCache.js.map +1 -0
  508. package/dist/esm/node_modules/viem/_esm/utils/promise/withDedupe.js +2 -0
  509. package/dist/esm/node_modules/viem/_esm/utils/promise/withDedupe.js.map +1 -0
  510. package/dist/esm/node_modules/viem/_esm/utils/promise/withResolvers.js +2 -0
  511. package/dist/esm/node_modules/viem/_esm/utils/promise/withResolvers.js.map +1 -0
  512. package/dist/esm/node_modules/viem/_esm/utils/promise/withRetry.js +2 -0
  513. package/dist/esm/node_modules/viem/_esm/utils/promise/withRetry.js.map +1 -0
  514. package/dist/esm/node_modules/viem/_esm/utils/promise/withTimeout.js +2 -0
  515. package/dist/esm/node_modules/viem/_esm/utils/promise/withTimeout.js.map +1 -0
  516. package/dist/esm/node_modules/viem/_esm/utils/regex.js +2 -0
  517. package/dist/esm/node_modules/viem/_esm/utils/regex.js.map +1 -0
  518. package/dist/esm/node_modules/viem/_esm/utils/rpc/http.js +2 -0
  519. package/dist/esm/node_modules/viem/_esm/utils/rpc/http.js.map +1 -0
  520. package/dist/esm/node_modules/viem/_esm/utils/rpc/id.js +2 -0
  521. package/dist/esm/node_modules/viem/_esm/utils/rpc/id.js.map +1 -0
  522. package/dist/esm/node_modules/viem/_esm/utils/signature/hashMessage.js +2 -0
  523. package/dist/esm/node_modules/viem/_esm/utils/signature/hashMessage.js.map +1 -0
  524. package/dist/esm/node_modules/viem/_esm/utils/signature/hashTypedData.js +2 -0
  525. package/dist/esm/node_modules/viem/_esm/utils/signature/hashTypedData.js.map +1 -0
  526. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverAddress.js +2 -0
  527. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverAddress.js.map +1 -0
  528. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js +2 -0
  529. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js.map +1 -0
  530. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js +2 -0
  531. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js.map +1 -0
  532. package/dist/esm/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js +2 -0
  533. package/dist/esm/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js.map +1 -0
  534. package/dist/esm/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js +2 -0
  535. package/dist/esm/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js.map +1 -0
  536. package/dist/esm/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js +2 -0
  537. package/dist/esm/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js.map +1 -0
  538. package/dist/esm/node_modules/viem/_esm/utils/stateOverride.js +2 -0
  539. package/dist/esm/node_modules/viem/_esm/utils/stateOverride.js.map +1 -0
  540. package/dist/esm/node_modules/viem/_esm/utils/stringify.js +2 -0
  541. package/dist/esm/node_modules/viem/_esm/utils/stringify.js.map +1 -0
  542. package/dist/esm/node_modules/viem/_esm/utils/transaction/assertRequest.js +2 -0
  543. package/dist/esm/node_modules/viem/_esm/utils/transaction/assertRequest.js.map +1 -0
  544. package/dist/esm/node_modules/viem/_esm/utils/transaction/getTransactionType.js +2 -0
  545. package/dist/esm/node_modules/viem/_esm/utils/transaction/getTransactionType.js.map +1 -0
  546. package/dist/esm/node_modules/viem/_esm/utils/typedData.js +2 -0
  547. package/dist/esm/node_modules/viem/_esm/utils/typedData.js.map +1 -0
  548. package/dist/esm/node_modules/viem/_esm/utils/uid.js +2 -0
  549. package/dist/esm/node_modules/viem/_esm/utils/uid.js.map +1 -0
  550. package/dist/esm/node_modules/viem/_esm/utils/unit/formatEther.js +2 -0
  551. package/dist/esm/node_modules/viem/_esm/utils/unit/formatEther.js.map +1 -0
  552. package/dist/esm/node_modules/viem/_esm/utils/unit/formatGwei.js +2 -0
  553. package/dist/esm/node_modules/viem/_esm/utils/unit/formatGwei.js.map +1 -0
  554. package/dist/esm/node_modules/viem/_esm/utils/unit/formatUnits.js +2 -0
  555. package/dist/esm/node_modules/viem/_esm/utils/unit/formatUnits.js.map +1 -0
  556. package/dist/esm/node_modules/viem/_esm/utils/wait.js +2 -0
  557. package/dist/esm/node_modules/viem/_esm/utils/wait.js.map +1 -0
  558. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js +3 -0
  559. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
  560. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js +3 -0
  561. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
  562. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js +4 -0
  563. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
  564. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js +3 -0
  565. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
  566. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js +4 -0
  567. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
  568. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js +3 -0
  569. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
  570. package/dist/esm/src/LoginModal.js +2 -0
  571. package/dist/esm/src/LoginModal.js.map +1 -0
  572. package/dist/esm/src/LoginModal.styles.js +286 -0
  573. package/dist/esm/src/LoginModal.styles.js.map +1 -0
  574. package/dist/esm/src/adapters/phantom.js +2 -0
  575. package/dist/esm/src/adapters/phantom.js.map +1 -0
  576. package/dist/esm/src/client.js +2 -0
  577. package/dist/esm/src/client.js.map +1 -0
  578. package/dist/esm/src/coinbase.js +2 -0
  579. package/dist/esm/src/coinbase.js.map +1 -0
  580. package/dist/esm/src/context.js +2 -0
  581. package/dist/esm/src/context.js.map +1 -0
  582. package/dist/esm/src/hooks.js +2 -0
  583. package/dist/esm/src/hooks.js.map +1 -0
  584. package/dist/esm/src/index.js +2 -0
  585. package/dist/esm/src/index.js.map +1 -0
  586. package/dist/esm/src/modal.js +2 -0
  587. package/dist/esm/src/modal.js.map +1 -0
  588. package/dist/esm/src/polyfills.js +2 -0
  589. package/dist/esm/src/polyfills.js.map +1 -0
  590. package/dist/esm/src/storage.js +2 -0
  591. package/dist/esm/src/storage.js.map +1 -0
  592. package/dist/esm/src/styles/index.js +2 -0
  593. package/dist/esm/src/styles/index.js.map +1 -0
  594. package/dist/esm/src/styles/theme.js +2 -0
  595. package/dist/esm/src/styles/theme.js.map +1 -0
  596. package/dist/esm/src/types.js +2 -0
  597. package/dist/esm/src/types.js.map +1 -0
  598. package/dist/esm/src/utils/coinbaseUtils.js +2 -0
  599. package/dist/esm/src/utils/coinbaseUtils.js.map +1 -0
  600. package/dist/esm/src/utils/oauth.js +2 -0
  601. package/dist/esm/src/utils/oauth.js.map +1 -0
  602. package/dist/esm/types/LoginModal.d.ts +3 -0
  603. package/dist/esm/types/LoginModal.styles.d.ts +29 -0
  604. package/dist/esm/types/adapters/phantom.d.ts +30 -0
  605. package/dist/esm/types/client.d.ts +170 -0
  606. package/dist/esm/types/coinbase.d.ts +3 -0
  607. package/dist/esm/types/context.d.ts +28 -0
  608. package/dist/esm/types/hooks.d.ts +56 -0
  609. package/dist/esm/types/index.d.ts +8 -0
  610. package/dist/esm/types/modal.d.ts +20 -0
  611. package/dist/esm/types/polyfills.d.ts +1 -0
  612. package/dist/esm/types/storage.d.ts +9 -0
  613. package/dist/esm/types/styles/globalStyles.d.ts +2 -0
  614. package/dist/esm/types/styles/index.d.ts +2 -0
  615. package/dist/esm/types/styles/theme.d.ts +103 -0
  616. package/dist/esm/types/types.d.ts +132 -0
  617. package/dist/esm/types/utils/coinbaseUtils.d.ts +9 -0
  618. package/dist/esm/types/utils/oauth.d.ts +21 -0
  619. package/dist/esm/types/utils/twitter.d.ts +35 -0
  620. package/dist/index.cjs +296 -0
  621. package/dist/index.cjs.map +1 -0
  622. package/dist/index.d.ts +530 -0
  623. package/package.json +97 -0
package/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # superstack Wallet SDK
2
+
3
+ A Solana wallet SDK for superstack, providing React components and utilities for wallet integration.
4
+
5
+ ## Example
6
+
7
+ ```bash
8
+ cd example
9
+ npm install
10
+ npm run dev
11
+
12
+ publish
13
+ npm login
14
+ npm publish
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### 1. Login
20
+
21
+ 1. Add context to the root
22
+
23
+ ```
24
+ import { WalletProvider, Network } from "superstack-wallet-sdk";
25
+ const BASE_URL =
26
+ process.env.NEXT_PUBLIC_WALLET_BASE_URL ||
27
+ "https://wallet.sit.superstack-test.tech";
28
+ const SOLANA_RPC_URL =
29
+ process.env.NEXT_PUBLIC_SOLANA_RPC_URL;
30
+
31
+ ...
32
+ <html>
33
+ <body>
34
+ <WalletProvider
35
+ config={{
36
+ baseURL: BASE_URL,
37
+ solanaCluster: {
38
+ name: "mainnet-beta",
39
+ rpcUrl: SOLANA_RPC_URL,
40
+ },
41
+ defaultNetwork: Network.Solana,
42
+ }}
43
+ >
44
+ {children}
45
+ </WalletProvider>
46
+ </body>
47
+ </html>
48
+ ```
49
+
50
+ 2. Connect wallet
51
+
52
+ ```
53
+ import { useActiveWallet, useConnect } from "superstack-wallet-sdk";
54
+
55
+ ...
56
+
57
+ const { wallet } = useActiveWallet();
58
+ const { disconnect, connect } = useConnect();
59
+ const walletAddress = wallet?.solanaAddress ?? ""; // get address
60
+
61
+ const handleLogout = () => {
62
+ disconnect()
63
+ };
64
+ const handleLogin = () => {
65
+ connect()
66
+ }
67
+ ```
68
+
69
+
70
+ ### 2. Sign transaction and send transaction
71
+
72
+ ```
73
+ import { useActiveWallet, useConnect } from "superstack-wallet-sdk";
74
+
75
+ const { wallet: activeWallet } = useActiveWallet();
76
+ ...
77
+ // construct the transaction
78
+ const transaction = new Transaction()
79
+
80
+ // sign and send transaction
81
+ const signed = await activeWallet.signSolanaTransaction(transaction);
82
+ const signature = await activeWallet.sendSolanaTransaction(
83
+ signed.serialize()
84
+ );
85
+ const latestBlockHash = await connection.getLatestBlockhash();
86
+ // wait for transaction to be confirmed
87
+ await confirmTransaction(
88
+ {
89
+ signature,
90
+ lastValidBlockHeight: latestBlockHash.lastValidBlockHeight,
91
+ },
92
+ "confirmed"
93
+ );
94
+
95
+ ```
96
+
97
+
98
+ ### 3. Use coinbase onramp to buy crypto token
99
+
100
+ ```
101
+
102
+ import { useCoinbaseOnramp } from 'superstack-wallet-sdk'
103
+
104
+ ...
105
+ const {getCoinbaseOnrampUrl} = useCoinbaseOnramp()
106
+
107
+ const handleCoinbaseOnramp = async() => {
108
+ const url = async getCoinbaseOnrampUrl()
109
+ if(url) {
110
+ window.open(url,'_blank'); //go to Coinbase onramp flow
111
+ }
112
+ }
113
+
114
+ ```
@@ -0,0 +1,2 @@
1
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as getDefaultExportFromCjs};
2
+ //# sourceMappingURL=_commonjsHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var t=[],r=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n=!1;function i(){n=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)t[i]=e[i],r[e.charCodeAt(i)]=i;r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63}function o(r){return t[r>>18&63]+t[r>>12&63]+t[r>>6&63]+t[63&r]}function u(t,r,e){for(var n,i=[],u=r;u<e;u+=3)n=(t[u]<<16)+(t[u+1]<<8)+t[u+2],i.push(o(n));return i.join("")}function f(r){var e;n||i();for(var o=r.length,f=o%3,s="",h=[],a=16383,c=0,l=o-f;c<l;c+=a)h.push(u(r,c,c+a>l?l:c+a));return 1===f?(e=r[o-1],s+=t[e>>2],s+=t[e<<4&63],s+="=="):2===f&&(e=(r[o-2]<<8)+r[o-1],s+=t[e>>10],s+=t[e>>4&63],s+=t[e<<2&63],s+="="),h.push(s),h.join("")}function s(t,r,e,n,i){var o,u,f=8*i-n-1,s=(1<<f)-1,h=s>>1,a=-7,c=e?i-1:0,l=e?-1:1,p=t[r+c];for(c+=l,o=p&(1<<-a)-1,p>>=-a,a+=f;a>0;o=256*o+t[r+c],c+=l,a-=8);for(u=o&(1<<-a)-1,o>>=-a,a+=n;a>0;u=256*u+t[r+c],c+=l,a-=8);if(0===o)o=1-h;else{if(o===s)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),o-=h}return(p?-1:1)*u*Math.pow(2,o-n)}function h(t,r,e,n,i,o){var u,f,s,h=8*o-i-1,a=(1<<h)-1,c=a>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,y=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=a):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),(r+=u+c>=1?l/s:l*Math.pow(2,1-c))*s>=2&&(u++,s/=2),u+c>=a?(f=0,u=a):u+c>=1?(f=(r*s-1)*Math.pow(2,i),u+=c):(f=r*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;t[e+p]=255&f,p+=g,f/=256,i-=8);for(u=u<<i|f,h+=i;h>0;t[e+p]=255&u,p+=g,u/=256,h-=8);t[e+p-g]|=128*y}var a={}.toString,c=Array.isArray||function(t){return"[object Array]"==a.call(t)},l=50;function p(){return y.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function g(t,r){if(p()<r)throw new RangeError("Invalid typed array length");return y.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=y.prototype:(null===t&&(t=new y(r)),t.length=r),t}function y(t,r,e){if(!(y.TYPED_ARRAY_SUPPORT||this instanceof y))return new y(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return v(this,t)}return w(this,t,r,e)}function w(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);y.TYPED_ARRAY_SUPPORT?(t=r).__proto__=y.prototype:t=E(t,r);return t}(t,r,e,n):"string"==typeof r?function(t,r,e){"string"==typeof e&&""!==e||(e="utf8");if(!y.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|b(r,e);t=g(t,n);var i=t.write(r,e);i!==n&&(t=t.slice(0,i));return t}(t,r,e):function(t,r){if(R(r)){var e=0|A(r.length);return 0===(t=g(t,e)).length||r.copy(t,0,0,e),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?g(t,0):E(t,r);if("Buffer"===r.type&&c(r.data))return E(t,r.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function v(t,r){if(d(r),t=g(t,r<0?0:0|A(r)),!y.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function E(t,r){var e=r.length<0?0:0|A(r.length);t=g(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function A(t){if(t>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return 0|t}function R(t){return!(null==t||!t._isBuffer)}function b(t,r){if(R(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return Q(t).length;default:if(n)return K(t).length;r=(""+r).toLowerCase(),n=!0}}function m(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,r,e);case"utf8":case"utf-8":return L(this,r,e);case"ascii":return D(this,r,e);case"latin1":case"binary":return x(this,r,e);case"base64":return O(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function _(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function P(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=y.from(r,n)),R(r))return 0===r.length?-1:T(t,r,e,n,i);if("number"==typeof r)return r&=255,y.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):T(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function T(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function U(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function B(t,r,e,n){return W(K(r,t.length-e),t,e,n)}function S(t,r,e,n){return W(function(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}(r),t,e,n)}function Y(t,r,e,n){return S(t,r,e,n)}function I(t,r,e,n){return W(Q(r),t,e,n)}function C(t,r,e,n){return W(function(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}(r,t.length-e),t,e,n)}function O(t,r,e){return 0===r&&e===t.length?f(t):f(t.slice(r,e))}function L(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,h=t[i],a=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return function(t){var r=t.length;if(r<=M)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=M));return e}(n)}y.TYPED_ARRAY_SUPPORT=void 0===globalThis.TYPED_ARRAY_SUPPORT||globalThis.TYPED_ARRAY_SUPPORT,p(),y.poolSize=8192,y._augment=function(t){return t.__proto__=y.prototype,t},y.from=function(t,r,e){return w(null,t,r,e)},y.TYPED_ARRAY_SUPPORT&&(y.prototype.__proto__=Uint8Array.prototype,y.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&y[Symbol.species]),y.alloc=function(t,r,e){return function(t,r,e,n){return d(r),r<=0?g(t,r):void 0!==e?"string"==typeof n?g(t,r).fill(e,n):g(t,r).fill(e):g(t,r)}(null,t,r,e)},y.allocUnsafe=function(t){return v(null,t)},y.allocUnsafeSlow=function(t){return v(null,t)},y.isBuffer=X,y.compare=function(t,r){if(!R(t)||!R(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},y.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(t,r){if(!c(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return y.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=y.allocUnsafe(r),i=0;for(e=0;e<t.length;++e){var o=t[e];if(!R(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},y.byteLength=b,y.prototype._isBuffer=!0,y.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)_(this,r,r+1);return this},y.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)_(this,r,r+3),_(this,r+1,r+2);return this},y.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)_(this,r,r+7),_(this,r+1,r+6),_(this,r+2,r+5),_(this,r+3,r+4);return this},y.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):m.apply(this,arguments)},y.prototype.equals=function(t){if(!R(t))throw new TypeError("Argument must be a Buffer");return this===t||0===y.compare(this,t)},y.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},y.prototype.compare=function(t,r,e,n,i){if(!R(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),f=Math.min(o,u),s=this.slice(n,i),h=t.slice(r,e),a=0;a<f;++a)if(s[a]!==h[a]){o=s[a],u=h[a];break}return o<u?-1:u<o?1:0},y.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},y.prototype.indexOf=function(t,r,e){return P(this,t,r,e,!0)},y.prototype.lastIndexOf=function(t,r,e){return P(this,t,r,e,!1)},y.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return U(this,t,r,e);case"utf8":case"utf-8":return B(this,t,r,e);case"ascii":return S(this,t,r,e);case"latin1":case"binary":return Y(this,t,r,e);case"base64":return I(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function D(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function x(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function k(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=H(t[o]);return i}function N(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function z(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function F(t,r,e,n,i,o){if(!R(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function j(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function q(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function J(t,r,e,n,i){return i||q(t,0,e,4),h(t,r,e,n,23,4),e+4}function Z(t,r,e,n,i){return i||q(t,0,e,8),h(t,r,e,n,52,8),e+8}y.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),y.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=y.prototype;else{var i=r-t;e=new y(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},y.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||z(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},y.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||z(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},y.prototype.readUInt8=function(t,r){return r||z(t,1,this.length),this[t]},y.prototype.readUInt16LE=function(t,r){return r||z(t,2,this.length),this[t]|this[t+1]<<8},y.prototype.readUInt16BE=function(t,r){return r||z(t,2,this.length),this[t]<<8|this[t+1]},y.prototype.readUInt32LE=function(t,r){return r||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},y.prototype.readUInt32BE=function(t,r){return r||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},y.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||z(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},y.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||z(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},y.prototype.readInt8=function(t,r){return r||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},y.prototype.readInt16LE=function(t,r){r||z(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},y.prototype.readInt16BE=function(t,r){r||z(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},y.prototype.readInt32LE=function(t,r){return r||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},y.prototype.readInt32BE=function(t,r){return r||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},y.prototype.readFloatLE=function(t,r){return r||z(t,4,this.length),s(this,t,!0,23,4)},y.prototype.readFloatBE=function(t,r){return r||z(t,4,this.length),s(this,t,!1,23,4)},y.prototype.readDoubleLE=function(t,r){return r||z(t,8,this.length),s(this,t,!0,52,8)},y.prototype.readDoubleBE=function(t,r){return r||z(t,8,this.length),s(this,t,!1,52,8)},y.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||F(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},y.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||F(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},y.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,1,255,0),y.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},y.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},y.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,2,65535,0),y.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},y.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):V(this,t,r,!0),r+4},y.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,4,4294967295,0),y.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):V(this,t,r,!1),r+4},y.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);F(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u|0)-f&255;return r+e},y.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);F(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u|0)-f&255;return r+e},y.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,1,127,-128),y.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},y.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},y.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,2,32767,-32768),y.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},y.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,4,2147483647,-2147483648),y.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):V(this,t,r,!0),r+4},y.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||F(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),y.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):V(this,t,r,!1),r+4},y.prototype.writeFloatLE=function(t,r,e){return J(this,t,r,!0,e)},y.prototype.writeFloatBE=function(t,r,e){return J(this,t,r,!1,e)},y.prototype.writeDoubleLE=function(t,r,e){return Z(this,t,r,!0,e)},y.prototype.writeDoubleBE=function(t,r,e){return Z(this,t,r,!1,e)},y.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!y.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},y.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!y.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=R(t)?t:K(new y(t,n).toString()),f=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%f]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function Q(t){return function(t){var o,u,f,s,h,a;n||i();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");h="="===t[c-2]?2:"="===t[c-1]?1:0,a=new e(3*c/4-h),f=h>0?c-4:c;var l=0;for(o=0,u=0;o<f;o+=4,u+=3)s=r[t.charCodeAt(o)]<<18|r[t.charCodeAt(o+1)]<<12|r[t.charCodeAt(o+2)]<<6|r[t.charCodeAt(o+3)],a[l++]=s>>16&255,a[l++]=s>>8&255,a[l++]=255&s;return 2===h?(s=r[t.charCodeAt(o)]<<2|r[t.charCodeAt(o+1)]>>4,a[l++]=255&s):1===h&&(s=r[t.charCodeAt(o)]<<10|r[t.charCodeAt(o+1)]<<4|r[t.charCodeAt(o+2)]>>2,a[l++]=s>>8&255,a[l++]=255&s),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function X(t){return null!=t&&(!!t._isBuffer||$(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&$(t.slice(0,0))}(t))}function $(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}export{y as Buffer,l as INSPECT_MAX_BYTES,X as isBuffer};
2
+ //# sourceMappingURL=_polyfill-node.buffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_polyfill-node.buffer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e={exports:{}};export{e as __module};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import e from"../../memoize/dist/emotion-memoize.esm.js";var t=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=e(function(e){return t.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});export{i as default};
2
+ //# sourceMappingURL=emotion-is-prop-valid.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emotion-is-prop-valid.esm.js","sources":["../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"],"sourcesContent":["import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar isPropValid = /* #__PURE__ */memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport { isPropValid as default };\n"],"names":["reactPropsRegex","isPropValid","memoize","prop","test","charCodeAt"],"mappings":"yDAEA,IAAIA,EAAkB,0+HAElBC,EAA6BC,EAAQ,SAAUC,GACjD,OAAOH,EAAgBI,KAAKD,IAAgC,MAAvBA,EAAKE,WAAW,IAE3B,MAAvBF,EAAKE,WAAW,IAEhBF,EAAKE,WAAW,GAAK,EAC1B","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ function t(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}export{t as default};
2
+ //# sourceMappingURL=emotion-memoize.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emotion-memoize.esm.js","sources":["../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"],"sourcesContent":["function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n"],"names":["memoize","fn","cache","Object","create","arg","undefined"],"mappings":"AAAA,SAASA,EAAQC,GACf,IAAIC,EAAQC,OAAOC,OAAO,MAC1B,OAAO,SAAUC,GAEf,YADmBC,IAAfJ,EAAMG,KAAoBH,EAAMG,GAAOJ,EAAGI,IACvCH,EAAMG,EACf,CACF","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ var o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};export{o as default};
2
+ //# sourceMappingURL=emotion-unitless.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emotion-unitless.esm.js","sources":["../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"],"sourcesContent":["var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n"],"names":["unitlessKeys","animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","msGridRow","msGridRowSpan","msGridColumn","msGridColumnSpan","fontWeight","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","WebkitLineClamp","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"],"mappings":"AAAG,IAACA,EAAe,CACjBC,wBAAyB,EACzBC,YAAa,EACbC,kBAAmB,EACnBC,iBAAkB,EAClBC,iBAAkB,EAClBC,QAAS,EACTC,aAAc,EACdC,gBAAiB,EACjBC,YAAa,EACbC,QAAS,EACTC,KAAM,EACNC,SAAU,EACVC,aAAc,EACdC,WAAY,EACZC,aAAc,EACdC,UAAW,EACXC,QAAS,EACTC,WAAY,EACZC,YAAa,EACbC,aAAc,EACdC,WAAY,EACZC,cAAe,EACfC,eAAgB,EAChBC,gBAAiB,EACjBC,UAAW,EACXC,cAAe,EACfC,aAAc,EACdC,iBAAkB,EAClBC,WAAY,EACZC,WAAY,EACZC,QAAS,EACTC,MAAO,EACPC,QAAS,EACTC,QAAS,EACTC,OAAQ,EACRC,OAAQ,EACRC,KAAM,EACNC,gBAAiB,EAEjBC,YAAa,EACbC,aAAc,EACdC,YAAa,EACbC,gBAAiB,EACjBC,iBAAkB,EAClBC,iBAAkB,EAClBC,cAAe,EACfC,YAAa","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Hash as t,createView as s,aexists as e,toBytes as i,abytes as n,aoutput as o,clean as r}from"./utils.js";function h(t,s,e,i){if("function"==typeof t.setBigUint64)return t.setBigUint64(s,e,i);const n=BigInt(32),o=BigInt(4294967295),r=Number(e>>n&o),h=Number(e&o),u=i?4:0,f=i?0:4;t.setUint32(s+u,r,i),t.setUint32(s+f,h,i)}function u(t,s,e){return t&s^~t&e}function f(t,s,e){return t&s^t&e^s&e}class c extends t{constructor(t,e,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=s(this.buffer)}update(t){e(this),t=i(t),n(t);const{view:o,buffer:r,blockLen:h}=this,u=t.length;for(let e=0;e<u;){const i=Math.min(h-this.pos,u-e);if(i===h){const i=s(t);for(;h<=u-e;e+=h)this.process(i,e);continue}r.set(t.subarray(e,e+i),this.pos),this.pos+=i,e+=i,this.pos===h&&(this.process(o,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){e(this),o(t,this),this.finished=!0;const{buffer:i,view:n,blockLen:u,isLE:f}=this;let{pos:c}=this;i[c++]=128,r(this.buffer.subarray(c)),this.padOffset>u-c&&(this.process(n,0),c=0);for(let t=c;t<u;t++)i[t]=0;h(n,u-8,BigInt(8*this.length),f),this.process(n,0);const l=s(t),p=this.outputLen;if(p%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=p/4,g=this.get();if(d>g.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<d;t++)l.setUint32(4*t,g[t],f)}digest(){const{buffer:t,outputLen:s}=this;this.digestInto(t);const e=t.slice(0,s);return this.destroy(),e}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:s,buffer:e,length:i,finished:n,destroyed:o,pos:r}=this;return t.destroyed=o,t.finished=n,t.length=i,t.pos=r,i%s&&t.buffer.set(e),t}clone(){return this._cloneInto()}}const l=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);export{u as Chi,c as HashMD,f as Maj,l as SHA256_IV,h as setBigUint64};
2
+ //# sourceMappingURL=_md.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_md.js","sources":["../../../../../../node_modules/@noble/hashes/esm/_md.js"],"sourcesContent":["/**\n * Internal Merkle-Damgard hash utils.\n * @module\n */\nimport { Hash, abytes, aexists, aoutput, clean, createView, toBytes } from \"./utils.js\";\n/** Polyfill for Safari 14. https://caniuse.com/mdn-javascript_builtins_dataview_setbiguint64 */\nexport function setBigUint64(view, byteOffset, value, isLE) {\n if (typeof view.setBigUint64 === 'function')\n return view.setBigUint64(byteOffset, value, isLE);\n const _32n = BigInt(32);\n const _u32_max = BigInt(0xffffffff);\n const wh = Number((value >> _32n) & _u32_max);\n const wl = Number(value & _u32_max);\n const h = isLE ? 4 : 0;\n const l = isLE ? 0 : 4;\n view.setUint32(byteOffset + h, wh, isLE);\n view.setUint32(byteOffset + l, wl, isLE);\n}\n/** Choice: a ? b : c */\nexport function Chi(a, b, c) {\n return (a & b) ^ (~a & c);\n}\n/** Majority function, true if any two inputs is true. */\nexport function Maj(a, b, c) {\n return (a & b) ^ (a & c) ^ (b & c);\n}\n/**\n * Merkle-Damgard hash construction base class.\n * Could be used to create MD5, RIPEMD, SHA1, SHA2.\n */\nexport class HashMD extends Hash {\n constructor(blockLen, outputLen, padOffset, isLE) {\n super();\n this.finished = false;\n this.length = 0;\n this.pos = 0;\n this.destroyed = false;\n this.blockLen = blockLen;\n this.outputLen = outputLen;\n this.padOffset = padOffset;\n this.isLE = isLE;\n this.buffer = new Uint8Array(blockLen);\n this.view = createView(this.buffer);\n }\n update(data) {\n aexists(this);\n data = toBytes(data);\n abytes(data);\n const { view, buffer, blockLen } = this;\n const len = data.length;\n for (let pos = 0; pos < len;) {\n const take = Math.min(blockLen - this.pos, len - pos);\n // Fast path: we have at least one block in input, cast it to view and process\n if (take === blockLen) {\n const dataView = createView(data);\n for (; blockLen <= len - pos; pos += blockLen)\n this.process(dataView, pos);\n continue;\n }\n buffer.set(data.subarray(pos, pos + take), this.pos);\n this.pos += take;\n pos += take;\n if (this.pos === blockLen) {\n this.process(view, 0);\n this.pos = 0;\n }\n }\n this.length += data.length;\n this.roundClean();\n return this;\n }\n digestInto(out) {\n aexists(this);\n aoutput(out, this);\n this.finished = true;\n // Padding\n // We can avoid allocation of buffer for padding completely if it\n // was previously not allocated here. But it won't change performance.\n const { buffer, view, blockLen, isLE } = this;\n let { pos } = this;\n // append the bit '1' to the message\n buffer[pos++] = 0b10000000;\n clean(this.buffer.subarray(pos));\n // we have less than padOffset left in buffer, so we cannot put length in\n // current block, need process it and pad again\n if (this.padOffset > blockLen - pos) {\n this.process(view, 0);\n pos = 0;\n }\n // Pad until full block byte with zeros\n for (let i = pos; i < blockLen; i++)\n buffer[i] = 0;\n // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that\n // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen.\n // So we just write lowest 64 bits of that value.\n setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE);\n this.process(view, 0);\n const oview = createView(out);\n const len = this.outputLen;\n // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT\n if (len % 4)\n throw new Error('_sha2: outputLen should be aligned to 32bit');\n const outLen = len / 4;\n const state = this.get();\n if (outLen > state.length)\n throw new Error('_sha2: outputLen bigger than state');\n for (let i = 0; i < outLen; i++)\n oview.setUint32(4 * i, state[i], isLE);\n }\n digest() {\n const { buffer, outputLen } = this;\n this.digestInto(buffer);\n const res = buffer.slice(0, outputLen);\n this.destroy();\n return res;\n }\n _cloneInto(to) {\n to || (to = new this.constructor());\n to.set(...this.get());\n const { blockLen, buffer, length, finished, destroyed, pos } = this;\n to.destroyed = destroyed;\n to.finished = finished;\n to.length = length;\n to.pos = pos;\n if (length % blockLen)\n to.buffer.set(buffer);\n return to;\n }\n clone() {\n return this._cloneInto();\n }\n}\n/**\n * Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.\n * Check out `test/misc/sha2-gen-iv.js` for recomputation guide.\n */\n/** Initial SHA256 state. Bits 0..32 of frac part of sqrt of primes 2..19 */\nexport const SHA256_IV = /* @__PURE__ */ Uint32Array.from([\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,\n]);\n/** Initial SHA224 state. Bits 32..64 of frac part of sqrt of primes 23..53 */\nexport const SHA224_IV = /* @__PURE__ */ Uint32Array.from([\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4,\n]);\n/** Initial SHA384 state. Bits 0..64 of frac part of sqrt of primes 23..53 */\nexport const SHA384_IV = /* @__PURE__ */ Uint32Array.from([\n 0xcbbb9d5d, 0xc1059ed8, 0x629a292a, 0x367cd507, 0x9159015a, 0x3070dd17, 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31, 0x8eb44a87, 0x68581511, 0xdb0c2e0d, 0x64f98fa7, 0x47b5481d, 0xbefa4fa4,\n]);\n/** Initial SHA512 state. Bits 0..64 of frac part of sqrt of primes 2..19 */\nexport const SHA512_IV = /* @__PURE__ */ Uint32Array.from([\n 0x6a09e667, 0xf3bcc908, 0xbb67ae85, 0x84caa73b, 0x3c6ef372, 0xfe94f82b, 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1, 0x9b05688c, 0x2b3e6c1f, 0x1f83d9ab, 0xfb41bd6b, 0x5be0cd19, 0x137e2179,\n]);\n//# sourceMappingURL=_md.js.map"],"names":["setBigUint64","view","byteOffset","value","isLE","_32n","BigInt","_u32_max","wh","Number","wl","h","l","setUint32","Chi","a","b","c","Maj","HashMD","Hash","constructor","blockLen","outputLen","padOffset","super","this","finished","length","pos","destroyed","buffer","Uint8Array","createView","update","data","aexists","toBytes","abytes","len","take","Math","min","dataView","process","set","subarray","roundClean","digestInto","out","aoutput","clean","i","oview","Error","outLen","state","get","digest","res","slice","destroy","_cloneInto","to","clone","SHA256_IV","Uint32Array","from"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const n=BigInt(2**32-1),t=BigInt(32);function r(r,e=!1){return e?{h:Number(r&n),l:Number(r>>t&n)}:{h:0|Number(r>>t&n),l:0|Number(r&n)}}function e(n,t=!1){const e=n.length;let o=new Uint32Array(e),u=new Uint32Array(e);for(let c=0;c<e;c++){const{h:e,l:i}=r(n[c],t);[o[c],u[c]]=[e,i]}return[o,u]}const o=(n,t,r)=>n<<r|t>>>32-r,u=(n,t,r)=>t<<r|n>>>32-r,c=(n,t,r)=>t<<r-32|n>>>64-r,i=(n,t,r)=>n<<r-32|t>>>64-r;export{r as fromBig,c as rotlBH,i as rotlBL,o as rotlSH,u as rotlSL,e as split};
2
+ //# sourceMappingURL=_u64.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_u64.js","sources":["../../../../../../node_modules/@noble/hashes/esm/_u64.js"],"sourcesContent":["/**\n * Internal helpers for u64. BigUint64Array is too slow as per 2025, so we implement it using Uint32Array.\n * @todo re-check https://issues.chromium.org/issues/42212588\n * @module\n */\nconst U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);\nconst _32n = /* @__PURE__ */ BigInt(32);\nfunction fromBig(n, le = false) {\n if (le)\n return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\nfunction split(lst, le = false) {\n const len = lst.length;\n let Ah = new Uint32Array(len);\n let Al = new Uint32Array(len);\n for (let i = 0; i < len; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\nconst toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h, _l, s) => h >>> s;\nconst shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (_h, l) => l;\nconst rotr32L = (h, _l) => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\nfunction add(Ah, Al, Bh, Bl) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n// prettier-ignore\nexport { add, add3H, add3L, add4H, add4L, add5H, add5L, fromBig, rotlBH, rotlBL, rotlSH, rotlSL, rotr32H, rotr32L, rotrBH, rotrBL, rotrSH, rotrSL, shrSH, shrSL, split, toBig };\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n//# sourceMappingURL=_u64.js.map"],"names":["U32_MASK64","BigInt","_32n","fromBig","n","le","h","Number","l","split","lst","len","length","Ah","Uint32Array","Al","i","rotlSH","s","rotlSL","rotlBH","rotlBL"],"mappings":"AAKA,MAAMA,EAA6BC,OAAO,GAAK,GAAK,GAC9CC,EAAuBD,OAAO,IACpC,SAASE,EAAQC,EAAGC,GAAK,GACrB,OAAIA,EACO,CAAEC,EAAGC,OAAOH,EAAIJ,GAAaQ,EAAGD,OAAQH,GAAKF,EAAQF,IACzD,CAAEM,EAAsC,EAAnCC,OAAQH,GAAKF,EAAQF,GAAiBQ,EAA4B,EAAzBD,OAAOH,EAAIJ,GACpE,CACA,SAASS,EAAMC,EAAKL,GAAK,GACrB,MAAMM,EAAMD,EAAIE,OAChB,IAAIC,EAAK,IAAIC,YAAYH,GACrBI,EAAK,IAAID,YAAYH,GACzB,IAAK,IAAIK,EAAI,EAAGA,EAAIL,EAAKK,IAAK,CAC1B,MAAMV,EAAEA,EAACE,EAAEA,GAAML,EAAQO,EAAIM,GAAIX,IAChCQ,EAAGG,GAAID,EAAGC,IAAM,CAACV,EAAGE,EACzB,CACA,MAAO,CAACK,EAAIE,EAChB,CAeK,MAACE,EAAS,CAACX,EAAGE,EAAGU,IAAOZ,GAAKY,EAAMV,IAAO,GAAKU,EAC9CC,EAAS,CAACb,EAAGE,EAAGU,IAAOV,GAAKU,EAAMZ,IAAO,GAAKY,EAE9CE,EAAS,CAACd,EAAGE,EAAGU,IAAOV,GAAMU,EAAI,GAAQZ,IAAO,GAAKY,EACrDG,EAAS,CAACf,EAAGE,EAAGU,IAAOZ,GAAMY,EAAI,GAAQV,IAAO,GAAKU","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const o="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;export{o as crypto};
2
+ //# sourceMappingURL=crypto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.js","sources":["../../../../../../node_modules/@noble/hashes/esm/crypto.js"],"sourcesContent":["export const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;\n//# sourceMappingURL=crypto.js.map"],"names":["crypto","globalThis","undefined"],"mappings":"AAAY,MAACA,EAA+B,iBAAfC,YAA2B,WAAYA,WAAaA,WAAWD,YAASE","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Hash as t,ahash as s,toBytes as e,clean as i,aexists as h,abytes as o}from"./utils.js";class n extends t{constructor(t,h){super(),this.finished=!1,this.destroyed=!1,s(t);const o=e(h);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,a=new Uint8Array(n);a.set(o.length>n?t.create().update(o).digest():o);for(let t=0;t<a.length;t++)a[t]^=54;this.iHash.update(a),this.oHash=t.create();for(let t=0;t<a.length;t++)a[t]^=106;this.oHash.update(a),i(a)}update(t){return h(this),this.iHash.update(t),this}digestInto(t){h(this),o(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:s,iHash:e,finished:i,destroyed:h,blockLen:o,outputLen:n}=this;return t.finished=i,t.destroyed=h,t.blockLen=o,t.outputLen=n,t.oHash=s._cloneInto(t.oHash),t.iHash=e._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const a=(t,s,e)=>new n(t,s).update(e).digest();a.create=(t,s)=>new n(t,s);export{n as HMAC,a as hmac};
2
+ //# sourceMappingURL=hmac.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hmac.js","sources":["../../../../../../node_modules/@noble/hashes/esm/hmac.js"],"sourcesContent":["/**\n * HMAC: RFC2104 message authentication code.\n * @module\n */\nimport { abytes, aexists, ahash, clean, Hash, toBytes } from \"./utils.js\";\nexport class HMAC extends Hash {\n constructor(hash, _key) {\n super();\n this.finished = false;\n this.destroyed = false;\n ahash(hash);\n const key = toBytes(_key);\n this.iHash = hash.create();\n if (typeof this.iHash.update !== 'function')\n throw new Error('Expected instance of class which extends utils.Hash');\n this.blockLen = this.iHash.blockLen;\n this.outputLen = this.iHash.outputLen;\n const blockLen = this.blockLen;\n const pad = new Uint8Array(blockLen);\n // blockLen can be bigger than outputLen\n pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);\n for (let i = 0; i < pad.length; i++)\n pad[i] ^= 0x36;\n this.iHash.update(pad);\n // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone\n this.oHash = hash.create();\n // Undo internal XOR && apply outer XOR\n for (let i = 0; i < pad.length; i++)\n pad[i] ^= 0x36 ^ 0x5c;\n this.oHash.update(pad);\n clean(pad);\n }\n update(buf) {\n aexists(this);\n this.iHash.update(buf);\n return this;\n }\n digestInto(out) {\n aexists(this);\n abytes(out, this.outputLen);\n this.finished = true;\n this.iHash.digestInto(out);\n this.oHash.update(out);\n this.oHash.digestInto(out);\n this.destroy();\n }\n digest() {\n const out = new Uint8Array(this.oHash.outputLen);\n this.digestInto(out);\n return out;\n }\n _cloneInto(to) {\n // Create new instance without calling constructor since key already in state and we don't know it.\n to || (to = Object.create(Object.getPrototypeOf(this), {}));\n const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;\n to = to;\n to.finished = finished;\n to.destroyed = destroyed;\n to.blockLen = blockLen;\n to.outputLen = outputLen;\n to.oHash = oHash._cloneInto(to.oHash);\n to.iHash = iHash._cloneInto(to.iHash);\n return to;\n }\n clone() {\n return this._cloneInto();\n }\n destroy() {\n this.destroyed = true;\n this.oHash.destroy();\n this.iHash.destroy();\n }\n}\n/**\n * HMAC: RFC2104 message authentication code.\n * @param hash - function that would be used e.g. sha256\n * @param key - message key\n * @param message - message data\n * @example\n * import { hmac } from '@noble/hashes/hmac';\n * import { sha256 } from '@noble/hashes/sha2';\n * const mac1 = hmac(sha256, 'key', 'message');\n */\nexport const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();\nhmac.create = (hash, key) => new HMAC(hash, key);\n//# sourceMappingURL=hmac.js.map"],"names":["HMAC","Hash","constructor","hash","_key","super","this","finished","destroyed","ahash","key","toBytes","iHash","create","update","Error","blockLen","outputLen","pad","Uint8Array","set","length","digest","i","oHash","clean","buf","aexists","digestInto","out","abytes","destroy","_cloneInto","to","Object","getPrototypeOf","clone","hmac","message"],"mappings":"8FAKO,MAAMA,UAAaC,EACtB,WAAAC,CAAYC,EAAMC,GACdC,QACAC,KAAKC,UAAW,EAChBD,KAAKE,WAAY,EACjBC,EAAMN,GACN,MAAMO,EAAMC,EAAQP,GAEpB,GADAE,KAAKM,MAAQT,EAAKU,SACe,mBAAtBP,KAAKM,MAAME,OAClB,MAAM,IAAIC,MAAM,uDACpBT,KAAKU,SAAWV,KAAKM,MAAMI,SAC3BV,KAAKW,UAAYX,KAAKM,MAAMK,UAC5B,MAAMD,EAAWV,KAAKU,SAChBE,EAAM,IAAIC,WAAWH,GAE3BE,EAAIE,IAAIV,EAAIW,OAASL,EAAWb,EAAKU,SAASC,OAAOJ,GAAKY,SAAWZ,GACrE,IAAK,IAAIa,EAAI,EAAGA,EAAIL,EAAIG,OAAQE,IAC5BL,EAAIK,IAAM,GACdjB,KAAKM,MAAME,OAAOI,GAElBZ,KAAKkB,MAAQrB,EAAKU,SAElB,IAAK,IAAIU,EAAI,EAAGA,EAAIL,EAAIG,OAAQE,IAC5BL,EAAIK,IAAM,IACdjB,KAAKkB,MAAMV,OAAOI,GAClBO,EAAMP,EACV,CACA,MAAAJ,CAAOY,GAGH,OAFAC,EAAQrB,MACRA,KAAKM,MAAME,OAAOY,GACXpB,IACX,CACA,UAAAsB,CAAWC,GACPF,EAAQrB,MACRwB,EAAOD,EAAKvB,KAAKW,WACjBX,KAAKC,UAAW,EAChBD,KAAKM,MAAMgB,WAAWC,GACtBvB,KAAKkB,MAAMV,OAAOe,GAClBvB,KAAKkB,MAAMI,WAAWC,GACtBvB,KAAKyB,SACT,CACA,MAAAT,GACI,MAAMO,EAAM,IAAIV,WAAWb,KAAKkB,MAAMP,WAEtC,OADAX,KAAKsB,WAAWC,GACTA,CACX,CACA,UAAAG,CAAWC,GAEPA,IAAOA,EAAKC,OAAOrB,OAAOqB,OAAOC,eAAe7B,MAAO,CAAA,IACvD,MAAMkB,MAAEA,EAAKZ,MAAEA,EAAKL,SAAEA,EAAQC,UAAEA,EAASQ,SAAEA,EAAQC,UAAEA,GAAcX,KAQnE,OANA2B,EAAG1B,SAAWA,EACd0B,EAAGzB,UAAYA,EACfyB,EAAGjB,SAAWA,EACdiB,EAAGhB,UAAYA,EACfgB,EAAGT,MAAQA,EAAMQ,WAAWC,EAAGT,OAC/BS,EAAGrB,MAAQA,EAAMoB,WAAWC,EAAGrB,OACxBqB,CACX,CACA,KAAAG,GACI,OAAO9B,KAAK0B,YAChB,CACA,OAAAD,GACIzB,KAAKE,WAAY,EACjBF,KAAKkB,MAAMO,UACXzB,KAAKM,MAAMmB,SACf,EAYQ,MAACM,EAAO,CAAClC,EAAMO,EAAK4B,IAAY,IAAItC,EAAKG,EAAMO,GAAKI,OAAOwB,GAAShB,SAChFe,EAAKxB,OAAS,CAACV,EAAMO,IAAQ,IAAIV,EAAKG,EAAMO","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{HashMD as t,SHA256_IV as s,Chi as i,Maj as h}from"./_md.js";import{createHasher as r,clean as e,rotr as o}from"./utils.js";const n=Uint32Array.from([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]),c=new Uint32Array(64);class f extends t{constructor(t=32){super(64,t,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:t,B:s,C:i,D:h,E:r,F:e,G:o,H:n}=this;return[t,s,i,h,r,e,o,n]}set(t,s,i,h,r,e,o,n){this.A=0|t,this.B=0|s,this.C=0|i,this.D=0|h,this.E=0|r,this.F=0|e,this.G=0|o,this.H=0|n}process(t,s){for(let i=0;i<16;i++,s+=4)c[i]=t.getUint32(s,!1);for(let t=16;t<64;t++){const s=c[t-15],i=c[t-2],h=o(s,7)^o(s,18)^s>>>3,r=o(i,17)^o(i,19)^i>>>10;c[t]=r+c[t-7]+h+c[t-16]|0}let{A:r,B:e,C:f,D:l,E:A,F:m,G:u,H:C}=this;for(let t=0;t<64;t++){const s=C+(o(A,6)^o(A,11)^o(A,25))+i(A,m,u)+n[t]+c[t]|0,p=(o(r,2)^o(r,13)^o(r,22))+h(r,e,f)|0;C=u,u=m,m=A,A=l+s|0,l=f,f=e,e=r,r=s+p|0}r=r+this.A|0,e=e+this.B|0,f=f+this.C|0,l=l+this.D|0,A=A+this.E|0,m=m+this.F|0,u=u+this.G|0,C=C+this.H|0,this.set(r,e,f,l,A,m,u,C)}roundClean(){e(c)}destroy(){this.set(0,0,0,0,0,0,0,0),e(this.buffer)}}const l=r(()=>new f);export{f as SHA256,l as sha256};
2
+ //# sourceMappingURL=sha2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sha2.js","sources":["../../../../../../node_modules/@noble/hashes/esm/sha2.js"],"sourcesContent":["/**\n * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.\n * SHA256 is the fastest hash implementable in JS, even faster than Blake3.\n * Check out [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and\n * [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).\n * @module\n */\nimport { Chi, HashMD, Maj, SHA224_IV, SHA256_IV, SHA384_IV, SHA512_IV } from \"./_md.js\";\nimport * as u64 from \"./_u64.js\";\nimport { clean, createHasher, rotr } from \"./utils.js\";\n/**\n * Round constants:\n * First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)\n */\n// prettier-ignore\nconst SHA256_K = /* @__PURE__ */ Uint32Array.from([\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n]);\n/** Reusable temporary buffer. \"W\" comes straight from spec. */\nconst SHA256_W = /* @__PURE__ */ new Uint32Array(64);\nexport class SHA256 extends HashMD {\n constructor(outputLen = 32) {\n super(64, outputLen, 8, false);\n // We cannot use array here since array allows indexing by variable\n // which means optimizer/compiler cannot use registers.\n this.A = SHA256_IV[0] | 0;\n this.B = SHA256_IV[1] | 0;\n this.C = SHA256_IV[2] | 0;\n this.D = SHA256_IV[3] | 0;\n this.E = SHA256_IV[4] | 0;\n this.F = SHA256_IV[5] | 0;\n this.G = SHA256_IV[6] | 0;\n this.H = SHA256_IV[7] | 0;\n }\n get() {\n const { A, B, C, D, E, F, G, H } = this;\n return [A, B, C, D, E, F, G, H];\n }\n // prettier-ignore\n set(A, B, C, D, E, F, G, H) {\n this.A = A | 0;\n this.B = B | 0;\n this.C = C | 0;\n this.D = D | 0;\n this.E = E | 0;\n this.F = F | 0;\n this.G = G | 0;\n this.H = H | 0;\n }\n process(view, offset) {\n // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4)\n SHA256_W[i] = view.getUint32(offset, false);\n for (let i = 16; i < 64; i++) {\n const W15 = SHA256_W[i - 15];\n const W2 = SHA256_W[i - 2];\n const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3);\n const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10);\n SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0;\n }\n // Compression function main loop, 64 rounds\n let { A, B, C, D, E, F, G, H } = this;\n for (let i = 0; i < 64; i++) {\n const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);\n const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);\n const T2 = (sigma0 + Maj(A, B, C)) | 0;\n H = G;\n G = F;\n F = E;\n E = (D + T1) | 0;\n D = C;\n C = B;\n B = A;\n A = (T1 + T2) | 0;\n }\n // Add the compressed chunk to the current hash value\n A = (A + this.A) | 0;\n B = (B + this.B) | 0;\n C = (C + this.C) | 0;\n D = (D + this.D) | 0;\n E = (E + this.E) | 0;\n F = (F + this.F) | 0;\n G = (G + this.G) | 0;\n H = (H + this.H) | 0;\n this.set(A, B, C, D, E, F, G, H);\n }\n roundClean() {\n clean(SHA256_W);\n }\n destroy() {\n this.set(0, 0, 0, 0, 0, 0, 0, 0);\n clean(this.buffer);\n }\n}\nexport class SHA224 extends SHA256 {\n constructor() {\n super(28);\n this.A = SHA224_IV[0] | 0;\n this.B = SHA224_IV[1] | 0;\n this.C = SHA224_IV[2] | 0;\n this.D = SHA224_IV[3] | 0;\n this.E = SHA224_IV[4] | 0;\n this.F = SHA224_IV[5] | 0;\n this.G = SHA224_IV[6] | 0;\n this.H = SHA224_IV[7] | 0;\n }\n}\n// SHA2-512 is slower than sha256 in js because u64 operations are slow.\n// Round contants\n// First 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409\n// prettier-ignore\nconst K512 = /* @__PURE__ */ (() => u64.split([\n '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc',\n '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118',\n '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2',\n '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694',\n '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65',\n '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5',\n '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4',\n '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70',\n '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df',\n '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b',\n '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30',\n '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8',\n '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8',\n '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3',\n '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec',\n '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b',\n '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178',\n '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b',\n '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c',\n '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817'\n].map(n => BigInt(n))))();\nconst SHA512_Kh = /* @__PURE__ */ (() => K512[0])();\nconst SHA512_Kl = /* @__PURE__ */ (() => K512[1])();\n// Reusable temporary buffers\nconst SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);\nconst SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);\nexport class SHA512 extends HashMD {\n constructor(outputLen = 64) {\n super(128, outputLen, 16, false);\n // We cannot use array here since array allows indexing by variable\n // which means optimizer/compiler cannot use registers.\n // h -- high 32 bits, l -- low 32 bits\n this.Ah = SHA512_IV[0] | 0;\n this.Al = SHA512_IV[1] | 0;\n this.Bh = SHA512_IV[2] | 0;\n this.Bl = SHA512_IV[3] | 0;\n this.Ch = SHA512_IV[4] | 0;\n this.Cl = SHA512_IV[5] | 0;\n this.Dh = SHA512_IV[6] | 0;\n this.Dl = SHA512_IV[7] | 0;\n this.Eh = SHA512_IV[8] | 0;\n this.El = SHA512_IV[9] | 0;\n this.Fh = SHA512_IV[10] | 0;\n this.Fl = SHA512_IV[11] | 0;\n this.Gh = SHA512_IV[12] | 0;\n this.Gl = SHA512_IV[13] | 0;\n this.Hh = SHA512_IV[14] | 0;\n this.Hl = SHA512_IV[15] | 0;\n }\n // prettier-ignore\n get() {\n const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];\n }\n // prettier-ignore\n set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {\n this.Ah = Ah | 0;\n this.Al = Al | 0;\n this.Bh = Bh | 0;\n this.Bl = Bl | 0;\n this.Ch = Ch | 0;\n this.Cl = Cl | 0;\n this.Dh = Dh | 0;\n this.Dl = Dl | 0;\n this.Eh = Eh | 0;\n this.El = El | 0;\n this.Fh = Fh | 0;\n this.Fl = Fl | 0;\n this.Gh = Gh | 0;\n this.Gl = Gl | 0;\n this.Hh = Hh | 0;\n this.Hl = Hl | 0;\n }\n process(view, offset) {\n // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) {\n SHA512_W_H[i] = view.getUint32(offset);\n SHA512_W_L[i] = view.getUint32((offset += 4));\n }\n for (let i = 16; i < 80; i++) {\n // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7)\n const W15h = SHA512_W_H[i - 15] | 0;\n const W15l = SHA512_W_L[i - 15] | 0;\n const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7);\n const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7);\n // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6)\n const W2h = SHA512_W_H[i - 2] | 0;\n const W2l = SHA512_W_L[i - 2] | 0;\n const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6);\n const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6);\n // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16];\n const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);\n const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);\n SHA512_W_H[i] = SUMh | 0;\n SHA512_W_L[i] = SUMl | 0;\n }\n let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n // Compression function main loop, 80 rounds\n for (let i = 0; i < 80; i++) {\n // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41)\n const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41);\n const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41);\n //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const CHIh = (Eh & Fh) ^ (~Eh & Gh);\n const CHIl = (El & Fl) ^ (~El & Gl);\n // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]\n // prettier-ignore\n const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);\n const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);\n const T1l = T1ll | 0;\n // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39)\n const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39);\n const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39);\n const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch);\n const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl);\n Hh = Gh | 0;\n Hl = Gl | 0;\n Gh = Fh | 0;\n Gl = Fl | 0;\n Fh = Eh | 0;\n Fl = El | 0;\n ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));\n Dh = Ch | 0;\n Dl = Cl | 0;\n Ch = Bh | 0;\n Cl = Bl | 0;\n Bh = Ah | 0;\n Bl = Al | 0;\n const All = u64.add3L(T1l, sigma0l, MAJl);\n Ah = u64.add3H(All, T1h, sigma0h, MAJh);\n Al = All | 0;\n }\n // Add the compressed chunk to the current hash value\n ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));\n ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));\n ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));\n ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));\n ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));\n ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));\n ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));\n ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));\n this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);\n }\n roundClean() {\n clean(SHA512_W_H, SHA512_W_L);\n }\n destroy() {\n clean(this.buffer);\n this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n }\n}\nexport class SHA384 extends SHA512 {\n constructor() {\n super(48);\n this.Ah = SHA384_IV[0] | 0;\n this.Al = SHA384_IV[1] | 0;\n this.Bh = SHA384_IV[2] | 0;\n this.Bl = SHA384_IV[3] | 0;\n this.Ch = SHA384_IV[4] | 0;\n this.Cl = SHA384_IV[5] | 0;\n this.Dh = SHA384_IV[6] | 0;\n this.Dl = SHA384_IV[7] | 0;\n this.Eh = SHA384_IV[8] | 0;\n this.El = SHA384_IV[9] | 0;\n this.Fh = SHA384_IV[10] | 0;\n this.Fl = SHA384_IV[11] | 0;\n this.Gh = SHA384_IV[12] | 0;\n this.Gl = SHA384_IV[13] | 0;\n this.Hh = SHA384_IV[14] | 0;\n this.Hl = SHA384_IV[15] | 0;\n }\n}\n/**\n * Truncated SHA512/256 and SHA512/224.\n * SHA512_IV is XORed with 0xa5a5a5a5a5a5a5a5, then used as \"intermediary\" IV of SHA512/t.\n * Then t hashes string to produce result IV.\n * See `test/misc/sha2-gen-iv.js`.\n */\n/** SHA512/224 IV */\nconst T224_IV = /* @__PURE__ */ Uint32Array.from([\n 0x8c3d37c8, 0x19544da2, 0x73e19966, 0x89dcd4d6, 0x1dfab7ae, 0x32ff9c82, 0x679dd514, 0x582f9fcf,\n 0x0f6d2b69, 0x7bd44da8, 0x77e36f73, 0x04c48942, 0x3f9d85a8, 0x6a1d36c8, 0x1112e6ad, 0x91d692a1,\n]);\n/** SHA512/256 IV */\nconst T256_IV = /* @__PURE__ */ Uint32Array.from([\n 0x22312194, 0xfc2bf72c, 0x9f555fa3, 0xc84c64c2, 0x2393b86b, 0x6f53b151, 0x96387719, 0x5940eabd,\n 0x96283ee2, 0xa88effe3, 0xbe5e1e25, 0x53863992, 0x2b0199fc, 0x2c85b8aa, 0x0eb72ddc, 0x81c52ca2,\n]);\nexport class SHA512_224 extends SHA512 {\n constructor() {\n super(28);\n this.Ah = T224_IV[0] | 0;\n this.Al = T224_IV[1] | 0;\n this.Bh = T224_IV[2] | 0;\n this.Bl = T224_IV[3] | 0;\n this.Ch = T224_IV[4] | 0;\n this.Cl = T224_IV[5] | 0;\n this.Dh = T224_IV[6] | 0;\n this.Dl = T224_IV[7] | 0;\n this.Eh = T224_IV[8] | 0;\n this.El = T224_IV[9] | 0;\n this.Fh = T224_IV[10] | 0;\n this.Fl = T224_IV[11] | 0;\n this.Gh = T224_IV[12] | 0;\n this.Gl = T224_IV[13] | 0;\n this.Hh = T224_IV[14] | 0;\n this.Hl = T224_IV[15] | 0;\n }\n}\nexport class SHA512_256 extends SHA512 {\n constructor() {\n super(32);\n this.Ah = T256_IV[0] | 0;\n this.Al = T256_IV[1] | 0;\n this.Bh = T256_IV[2] | 0;\n this.Bl = T256_IV[3] | 0;\n this.Ch = T256_IV[4] | 0;\n this.Cl = T256_IV[5] | 0;\n this.Dh = T256_IV[6] | 0;\n this.Dl = T256_IV[7] | 0;\n this.Eh = T256_IV[8] | 0;\n this.El = T256_IV[9] | 0;\n this.Fh = T256_IV[10] | 0;\n this.Fl = T256_IV[11] | 0;\n this.Gh = T256_IV[12] | 0;\n this.Gl = T256_IV[13] | 0;\n this.Hh = T256_IV[14] | 0;\n this.Hl = T256_IV[15] | 0;\n }\n}\n/**\n * SHA2-256 hash function from RFC 4634.\n *\n * It is the fastest JS hash, even faster than Blake3.\n * To break sha256 using birthday attack, attackers need to try 2^128 hashes.\n * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.\n */\nexport const sha256 = /* @__PURE__ */ createHasher(() => new SHA256());\n/** SHA2-224 hash function from RFC 4634 */\nexport const sha224 = /* @__PURE__ */ createHasher(() => new SHA224());\n/** SHA2-512 hash function from RFC 4634. */\nexport const sha512 = /* @__PURE__ */ createHasher(() => new SHA512());\n/** SHA2-384 hash function from RFC 4634. */\nexport const sha384 = /* @__PURE__ */ createHasher(() => new SHA384());\n/**\n * SHA2-512/256 \"truncated\" hash function, with improved resistance to length extension attacks.\n * See the paper on [truncated SHA512](https://eprint.iacr.org/2010/548.pdf).\n */\nexport const sha512_256 = /* @__PURE__ */ createHasher(() => new SHA512_256());\n/**\n * SHA2-512/224 \"truncated\" hash function, with improved resistance to length extension attacks.\n * See the paper on [truncated SHA512](https://eprint.iacr.org/2010/548.pdf).\n */\nexport const sha512_224 = /* @__PURE__ */ createHasher(() => new SHA512_224());\n//# sourceMappingURL=sha2.js.map"],"names":["SHA256_K","Uint32Array","from","SHA256_W","SHA256","HashMD","constructor","outputLen","super","this","A","SHA256_IV","B","C","D","E","F","G","H","get","set","process","view","offset","i","getUint32","W15","W2","s0","rotr","s1","T1","Chi","T2","Maj","roundClean","clean","destroy","buffer","sha256","createHasher"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{sha256 as s}from"./sha2.js";const o=s;export{o as sha256};
2
+ //# sourceMappingURL=sha256.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sha256.js","sources":["../../../../../../node_modules/@noble/hashes/esm/sha256.js"],"sourcesContent":["/**\n * SHA2-256 a.k.a. sha256. In JS, it is the fastest hash, even faster than Blake3.\n *\n * To break sha256 using birthday attack, attackers need to try 2^128 hashes.\n * BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.\n *\n * Check out [FIPS 180-4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf).\n * @module\n * @deprecated\n */\nimport { SHA224 as SHA224n, sha224 as sha224n, SHA256 as SHA256n, sha256 as sha256n, } from \"./sha2.js\";\n/** @deprecated Use import from `noble/hashes/sha2` module */\nexport const SHA256 = SHA256n;\n/** @deprecated Use import from `noble/hashes/sha2` module */\nexport const sha256 = sha256n;\n/** @deprecated Use import from `noble/hashes/sha2` module */\nexport const SHA224 = SHA224n;\n/** @deprecated Use import from `noble/hashes/sha2` module */\nexport const sha224 = sha224n;\n//# sourceMappingURL=sha256.js.map"],"names":["sha256","sha256n"],"mappings":"mCAcY,MAACA,EAASC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{split as t,rotlSH as s,rotlSL as i,rotlBH as e,rotlBL as o}from"./_u64.js";import{createHasher as n,Hash as r,anumber as h,u32 as u,swap32IfBE as f,aexists as a,toBytes as c,abytes as l,aoutput as p,clean as d}from"./utils.js";const k=BigInt(0),w=BigInt(1),I=BigInt(2),O=BigInt(7),g=BigInt(256),y=BigInt(113),b=[],x=[],L=[];for(let t=0,s=w,i=1,e=0;t<24;t++){[i,e]=[e,(2*i+3*e)%5],b.push(2*(5*e+i)),x.push((t+1)*(t+2)/2%64);let o=k;for(let t=0;t<7;t++)s=(s<<w^(s>>O)*y)%g,s&I&&(o^=w<<(w<<BigInt(t))-w);L.push(o)}const B=t(L,!0),m=B[0],F=B[1],X=(t,i,o)=>o>32?e(t,i,o):s(t,i,o),A=(t,s,e)=>e>32?o(t,s,e):i(t,s,e);function U(t,s=24){const i=new Uint32Array(10);for(let e=24-s;e<24;e++){for(let s=0;s<10;s++)i[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const e=(s+8)%10,o=(s+2)%10,n=i[o],r=i[o+1],h=X(n,r,1)^i[e],u=A(n,r,1)^i[e+1];for(let i=0;i<50;i+=10)t[s+i]^=h,t[s+i+1]^=u}let s=t[2],o=t[3];for(let i=0;i<24;i++){const e=x[i],n=X(s,o,e),r=A(s,o,e),h=b[i];s=t[h],o=t[h+1],t[h]=n,t[h+1]=r}for(let s=0;s<50;s+=10){for(let e=0;e<10;e++)i[e]=t[s+e];for(let e=0;e<10;e++)t[s+e]^=~i[(e+2)%10]&i[(e+4)%10]}t[0]^=m[e],t[1]^=F[e]}d(i)}class E extends r{constructor(t,s,i,e=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=s,this.outputLen=i,this.enableXOF=e,this.rounds=o,h(i),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=u(this.state)}clone(){return this._cloneInto()}keccak(){f(this.state32),U(this.state32,this.rounds),f(this.state32),this.posOut=0,this.pos=0}update(t){a(this),t=c(t),l(t);const{blockLen:s,state:i}=this,e=t.length;for(let o=0;o<e;){const n=Math.min(s-this.pos,e-o);for(let s=0;s<n;s++)i[this.pos++]^=t[o++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:i,blockLen:e}=this;t[i]^=s,128&s&&i===e-1&&this.keccak(),t[e-1]^=128,this.keccak()}writeInto(t){a(this,!1),l(t),this.finish();const s=this.state,{blockLen:i}=this;for(let e=0,o=t.length;e<o;){this.posOut>=i&&this.keccak();const n=Math.min(i-this.posOut,o-e);t.set(s.subarray(this.posOut,this.posOut+n),e),this.posOut+=n,e+=n}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return h(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(p(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,d(this.state)}_cloneInto(t){const{blockLen:s,suffix:i,outputLen:e,rounds:o,enableXOF:n}=this;return t||(t=new E(s,i,e,n,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=i,t.outputLen=e,t.enableXOF=n,t.destroyed=this.destroyed,t}}const _=(()=>{return t=1,s=136,i=32,n(()=>new E(s,t,i));var t,s,i})();export{E as Keccak,U as keccakP,_ as keccak_256};
2
+ //# sourceMappingURL=sha3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sha3.js","sources":["../../../../../../node_modules/@noble/hashes/esm/sha3.js"],"sourcesContent":["/**\n * SHA3 (keccak) hash function, based on a new \"Sponge function\" design.\n * Different from older hashes, the internal state is bigger than output size.\n *\n * Check out [FIPS-202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf),\n * [Website](https://keccak.team/keccak.html),\n * [the differences between SHA-3 and Keccak](https://crypto.stackexchange.com/questions/15727/what-are-the-key-differences-between-the-draft-sha-3-standard-and-the-keccak-sub).\n *\n * Check out `sha3-addons` module for cSHAKE, k12, and others.\n * @module\n */\nimport { rotlBH, rotlBL, rotlSH, rotlSL, split } from \"./_u64.js\";\n// prettier-ignore\nimport { abytes, aexists, anumber, aoutput, clean, createHasher, createXOFer, Hash, swap32IfBE, toBytes, u32 } from \"./utils.js\";\n// No __PURE__ annotations in sha3 header:\n// EVERYTHING is in fact used on every export.\n// Various per round constants calculations\nconst _0n = BigInt(0);\nconst _1n = BigInt(1);\nconst _2n = BigInt(2);\nconst _7n = BigInt(7);\nconst _256n = BigInt(256);\nconst _0x71n = BigInt(0x71);\nconst SHA3_PI = [];\nconst SHA3_ROTL = [];\nconst _SHA3_IOTA = [];\nfor (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {\n // Pi\n [x, y] = [y, (2 * x + 3 * y) % 5];\n SHA3_PI.push(2 * (5 * y + x));\n // Rotational\n SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64);\n // Iota\n let t = _0n;\n for (let j = 0; j < 7; j++) {\n R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n;\n if (R & _2n)\n t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n);\n }\n _SHA3_IOTA.push(t);\n}\nconst IOTAS = split(_SHA3_IOTA, true);\nconst SHA3_IOTA_H = IOTAS[0];\nconst SHA3_IOTA_L = IOTAS[1];\n// Left rotation (without 0, 32, 64)\nconst rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));\nconst rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));\n/** `keccakf1600` internal function, additionally allows to adjust round count. */\nexport function keccakP(s, rounds = 24) {\n const B = new Uint32Array(5 * 2);\n // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js)\n for (let round = 24 - rounds; round < 24; round++) {\n // Theta θ\n for (let x = 0; x < 10; x++)\n B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];\n for (let x = 0; x < 10; x += 2) {\n const idx1 = (x + 8) % 10;\n const idx0 = (x + 2) % 10;\n const B0 = B[idx0];\n const B1 = B[idx0 + 1];\n const Th = rotlH(B0, B1, 1) ^ B[idx1];\n const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];\n for (let y = 0; y < 50; y += 10) {\n s[x + y] ^= Th;\n s[x + y + 1] ^= Tl;\n }\n }\n // Rho (ρ) and Pi (π)\n let curH = s[2];\n let curL = s[3];\n for (let t = 0; t < 24; t++) {\n const shift = SHA3_ROTL[t];\n const Th = rotlH(curH, curL, shift);\n const Tl = rotlL(curH, curL, shift);\n const PI = SHA3_PI[t];\n curH = s[PI];\n curL = s[PI + 1];\n s[PI] = Th;\n s[PI + 1] = Tl;\n }\n // Chi (χ)\n for (let y = 0; y < 50; y += 10) {\n for (let x = 0; x < 10; x++)\n B[x] = s[y + x];\n for (let x = 0; x < 10; x++)\n s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];\n }\n // Iota (ι)\n s[0] ^= SHA3_IOTA_H[round];\n s[1] ^= SHA3_IOTA_L[round];\n }\n clean(B);\n}\n/** Keccak sponge function. */\nexport class Keccak extends Hash {\n // NOTE: we accept arguments in bytes instead of bits here.\n constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {\n super();\n this.pos = 0;\n this.posOut = 0;\n this.finished = false;\n this.destroyed = false;\n this.enableXOF = false;\n this.blockLen = blockLen;\n this.suffix = suffix;\n this.outputLen = outputLen;\n this.enableXOF = enableXOF;\n this.rounds = rounds;\n // Can be passed from user as dkLen\n anumber(outputLen);\n // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes\n // 0 < blockLen < 200\n if (!(0 < blockLen && blockLen < 200))\n throw new Error('only keccak-f1600 function is supported');\n this.state = new Uint8Array(200);\n this.state32 = u32(this.state);\n }\n clone() {\n return this._cloneInto();\n }\n keccak() {\n swap32IfBE(this.state32);\n keccakP(this.state32, this.rounds);\n swap32IfBE(this.state32);\n this.posOut = 0;\n this.pos = 0;\n }\n update(data) {\n aexists(this);\n data = toBytes(data);\n abytes(data);\n const { blockLen, state } = this;\n const len = data.length;\n for (let pos = 0; pos < len;) {\n const take = Math.min(blockLen - this.pos, len - pos);\n for (let i = 0; i < take; i++)\n state[this.pos++] ^= data[pos++];\n if (this.pos === blockLen)\n this.keccak();\n }\n return this;\n }\n finish() {\n if (this.finished)\n return;\n this.finished = true;\n const { state, suffix, pos, blockLen } = this;\n // Do the padding\n state[pos] ^= suffix;\n if ((suffix & 0x80) !== 0 && pos === blockLen - 1)\n this.keccak();\n state[blockLen - 1] ^= 0x80;\n this.keccak();\n }\n writeInto(out) {\n aexists(this, false);\n abytes(out);\n this.finish();\n const bufferOut = this.state;\n const { blockLen } = this;\n for (let pos = 0, len = out.length; pos < len;) {\n if (this.posOut >= blockLen)\n this.keccak();\n const take = Math.min(blockLen - this.posOut, len - pos);\n out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);\n this.posOut += take;\n pos += take;\n }\n return out;\n }\n xofInto(out) {\n // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF\n if (!this.enableXOF)\n throw new Error('XOF is not possible for this instance');\n return this.writeInto(out);\n }\n xof(bytes) {\n anumber(bytes);\n return this.xofInto(new Uint8Array(bytes));\n }\n digestInto(out) {\n aoutput(out, this);\n if (this.finished)\n throw new Error('digest() was already called');\n this.writeInto(out);\n this.destroy();\n return out;\n }\n digest() {\n return this.digestInto(new Uint8Array(this.outputLen));\n }\n destroy() {\n this.destroyed = true;\n clean(this.state);\n }\n _cloneInto(to) {\n const { blockLen, suffix, outputLen, rounds, enableXOF } = this;\n to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));\n to.state32.set(this.state32);\n to.pos = this.pos;\n to.posOut = this.posOut;\n to.finished = this.finished;\n to.rounds = rounds;\n // Suffix can change in cSHAKE\n to.suffix = suffix;\n to.outputLen = outputLen;\n to.enableXOF = enableXOF;\n to.destroyed = this.destroyed;\n return to;\n }\n}\nconst gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));\n/** SHA3-224 hash function. */\nexport const sha3_224 = /* @__PURE__ */ (() => gen(0x06, 144, 224 / 8))();\n/** SHA3-256 hash function. Different from keccak-256. */\nexport const sha3_256 = /* @__PURE__ */ (() => gen(0x06, 136, 256 / 8))();\n/** SHA3-384 hash function. */\nexport const sha3_384 = /* @__PURE__ */ (() => gen(0x06, 104, 384 / 8))();\n/** SHA3-512 hash function. */\nexport const sha3_512 = /* @__PURE__ */ (() => gen(0x06, 72, 512 / 8))();\n/** keccak-224 hash function. */\nexport const keccak_224 = /* @__PURE__ */ (() => gen(0x01, 144, 224 / 8))();\n/** keccak-256 hash function. Different from SHA3-256. */\nexport const keccak_256 = /* @__PURE__ */ (() => gen(0x01, 136, 256 / 8))();\n/** keccak-384 hash function. */\nexport const keccak_384 = /* @__PURE__ */ (() => gen(0x01, 104, 384 / 8))();\n/** keccak-512 hash function. */\nexport const keccak_512 = /* @__PURE__ */ (() => gen(0x01, 72, 512 / 8))();\nconst genShake = (suffix, blockLen, outputLen) => createXOFer((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));\n/** SHAKE128 XOF with 128-bit security. */\nexport const shake128 = /* @__PURE__ */ (() => genShake(0x1f, 168, 128 / 8))();\n/** SHAKE256 XOF with 256-bit security. */\nexport const shake256 = /* @__PURE__ */ (() => genShake(0x1f, 136, 256 / 8))();\n//# sourceMappingURL=sha3.js.map"],"names":["_0n","BigInt","_1n","_2n","_7n","_256n","_0x71n","SHA3_PI","SHA3_ROTL","_SHA3_IOTA","round","R","x","y","push","t","j","IOTAS","split","SHA3_IOTA_H","SHA3_IOTA_L","rotlH","h","l","s","rotlBH","rotlSH","rotlL","rotlBL","rotlSL","keccakP","rounds","B","Uint32Array","idx1","idx0","B0","B1","Th","Tl","curH","curL","shift","PI","clean","Keccak","Hash","constructor","blockLen","suffix","outputLen","enableXOF","super","this","pos","posOut","finished","destroyed","anumber","Error","state","Uint8Array","state32","u32","clone","_cloneInto","keccak","swap32IfBE","update","data","aexists","toBytes","abytes","len","length","take","Math","min","i","finish","writeInto","out","bufferOut","set","subarray","xofInto","xof","bytes","digestInto","aoutput","destroy","digest","to","keccak_256","gen","createHasher"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,4 @@
1
+ import{crypto as t}from"./crypto.js";
2
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
+ function e(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function n(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function r(t,...n){if(!e(t))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function o(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");n(t.outputLen),n(t.blockLen)}function f(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function i(t,e){r(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function u(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function c(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function a(t,e){return t<<32-e|t>>>e}const l=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])();function h(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function y(t){for(let e=0;e<t.length;e++)t[e]=h(t[e]);return t}const w=l?t=>t:y;function g(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function d(t){return"string"==typeof t&&(t=g(t)),r(t),t}function p(...t){let e=0;for(let n=0;n<t.length;n++){const o=t[n];r(o),e+=o.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const o=t[e];n.set(o,r),r+=o.length}return n}class b{}function A(t){const e=e=>t().update(d(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function m(e=32){if(t&&"function"==typeof t.getRandomValues)return t.getRandomValues(new Uint8Array(e));if(t&&"function"==typeof t.randomBytes)return Uint8Array.from(t.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}export{b as Hash,r as abytes,f as aexists,o as ahash,n as anumber,i as aoutput,h as byteSwap,y as byteSwap32,c as clean,p as concatBytes,A as createHasher,s as createView,e as isBytes,l as isLE,m as randomBytes,a as rotr,w as swap32IfBE,d as toBytes,u as u32,g as utf8ToBytes};
4
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../node_modules/@noble/hashes/esm/utils.js"],"sourcesContent":["/**\n * Utilities for hex, bytes, CSPRNG.\n * @module\n */\n/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.\n// node.js versions earlier than v19 don't declare it in global scope.\n// For node.js, package.json#exports field mapping rewrites import\n// from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated (2025-04-30), we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\n/** Checks if something is Uint8Array. Be careful: nodejs Buffer will return true. */\nexport function isBytes(a) {\n return a instanceof Uint8Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint8Array');\n}\n/** Asserts something is positive integer. */\nexport function anumber(n) {\n if (!Number.isSafeInteger(n) || n < 0)\n throw new Error('positive integer expected, got ' + n);\n}\n/** Asserts something is Uint8Array. */\nexport function abytes(b, ...lengths) {\n if (!isBytes(b))\n throw new Error('Uint8Array expected');\n if (lengths.length > 0 && !lengths.includes(b.length))\n throw new Error('Uint8Array expected of length ' + lengths + ', got length=' + b.length);\n}\n/** Asserts something is hash */\nexport function ahash(h) {\n if (typeof h !== 'function' || typeof h.create !== 'function')\n throw new Error('Hash should be wrapped by utils.createHasher');\n anumber(h.outputLen);\n anumber(h.blockLen);\n}\n/** Asserts a hash instance has not been destroyed / finished */\nexport function aexists(instance, checkFinished = true) {\n if (instance.destroyed)\n throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished)\n throw new Error('Hash#digest() has already been called');\n}\n/** Asserts output is properly-sized byte array */\nexport function aoutput(out, instance) {\n abytes(out);\n const min = instance.outputLen;\n if (out.length < min) {\n throw new Error('digestInto() expects output buffer of length at least ' + min);\n }\n}\n/** Cast u8 / u16 / u32 to u8. */\nexport function u8(arr) {\n return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n/** Cast u8 / u16 / u32 to u32. */\nexport function u32(arr) {\n return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n}\n/** Zeroize a byte array. Warning: JS provides no guarantees. */\nexport function clean(...arrays) {\n for (let i = 0; i < arrays.length; i++) {\n arrays[i].fill(0);\n }\n}\n/** Create DataView of an array for easy byte-level manipulation. */\nexport function createView(arr) {\n return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n/** The rotate right (circular right shift) operation for uint32 */\nexport function rotr(word, shift) {\n return (word << (32 - shift)) | (word >>> shift);\n}\n/** The rotate left (circular left shift) operation for uint32 */\nexport function rotl(word, shift) {\n return (word << shift) | ((word >>> (32 - shift)) >>> 0);\n}\n/** Is current platform little-endian? Most are. Big-Endian platform: IBM */\nexport const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();\n/** The byte swap operation for uint32 */\nexport function byteSwap(word) {\n return (((word << 24) & 0xff000000) |\n ((word << 8) & 0xff0000) |\n ((word >>> 8) & 0xff00) |\n ((word >>> 24) & 0xff));\n}\n/** Conditionally byte swap if on a big-endian platform */\nexport const swap8IfBE = isLE\n ? (n) => n\n : (n) => byteSwap(n);\n/** @deprecated */\nexport const byteSwapIfBE = swap8IfBE;\n/** In place byte swap for Uint32Array */\nexport function byteSwap32(arr) {\n for (let i = 0; i < arr.length; i++) {\n arr[i] = byteSwap(arr[i]);\n }\n return arr;\n}\nexport const swap32IfBE = isLE\n ? (u) => u\n : byteSwap32;\n// Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex\nconst hasHexBuiltin = /* @__PURE__ */ (() => \n// @ts-ignore\ntypeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function')();\n// Array where index 0xf0 (240) is mapped to string 'f0'\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));\n/**\n * Convert byte array to hex string. Uses built-in function, when available.\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes) {\n abytes(bytes);\n // @ts-ignore\n if (hasHexBuiltin)\n return bytes.toHex();\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n// We use optimized technique to convert hex string to byte array\nconst asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };\nfunction asciiToBase16(ch) {\n if (ch >= asciis._0 && ch <= asciis._9)\n return ch - asciis._0; // '2' => 50-48\n if (ch >= asciis.A && ch <= asciis.F)\n return ch - (asciis.A - 10); // 'B' => 66-(65-10)\n if (ch >= asciis.a && ch <= asciis.f)\n return ch - (asciis.a - 10); // 'b' => 98-(97-10)\n return;\n}\n/**\n * Convert hex string to byte array. Uses built-in function, when available.\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex) {\n if (typeof hex !== 'string')\n throw new Error('hex string expected, got ' + typeof hex);\n // @ts-ignore\n if (hasHexBuiltin)\n return Uint8Array.fromHex(hex);\n const hl = hex.length;\n const al = hl / 2;\n if (hl % 2)\n throw new Error('hex string expected, got unpadded hex of length ' + hl);\n const array = new Uint8Array(al);\n for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {\n const n1 = asciiToBase16(hex.charCodeAt(hi));\n const n2 = asciiToBase16(hex.charCodeAt(hi + 1));\n if (n1 === undefined || n2 === undefined) {\n const char = hex[hi] + hex[hi + 1];\n throw new Error('hex string expected, got non-hex character \"' + char + '\" at index ' + hi);\n }\n array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163\n }\n return array;\n}\n/**\n * There is no setImmediate in browser and setTimeout is slow.\n * Call of async fn will return Promise, which will be fullfiled only on\n * next scheduler queue processing step and this is exactly what we need.\n */\nexport const nextTick = async () => { };\n/** Returns control to thread each 'tick' ms to avoid blocking. */\nexport async function asyncLoop(iters, tick, cb) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick)\n continue;\n await nextTick();\n ts += diff;\n }\n}\n/**\n * Converts string to bytes using UTF8 encoding.\n * @example utf8ToBytes('abc') // Uint8Array.from([97, 98, 99])\n */\nexport function utf8ToBytes(str) {\n if (typeof str !== 'string')\n throw new Error('string expected');\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n/**\n * Converts bytes to string using UTF8 encoding.\n * @example bytesToUtf8(Uint8Array.from([97, 98, 99])) // 'abc'\n */\nexport function bytesToUtf8(bytes) {\n return new TextDecoder().decode(bytes);\n}\n/**\n * Normalizes (non-hex) string or Uint8Array to Uint8Array.\n * Warning: when Uint8Array is passed, it would NOT get copied.\n * Keep in mind for future mutable operations.\n */\nexport function toBytes(data) {\n if (typeof data === 'string')\n data = utf8ToBytes(data);\n abytes(data);\n return data;\n}\n/**\n * Helper for KDFs: consumes uint8array or string.\n * When string is passed, does utf8 decoding, using TextDecoder.\n */\nexport function kdfInputToBytes(data) {\n if (typeof data === 'string')\n data = utf8ToBytes(data);\n abytes(data);\n return data;\n}\n/** Copies several Uint8Arrays into one. */\nexport function concatBytes(...arrays) {\n let sum = 0;\n for (let i = 0; i < arrays.length; i++) {\n const a = arrays[i];\n abytes(a);\n sum += a.length;\n }\n const res = new Uint8Array(sum);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const a = arrays[i];\n res.set(a, pad);\n pad += a.length;\n }\n return res;\n}\nexport function checkOpts(defaults, opts) {\n if (opts !== undefined && {}.toString.call(opts) !== '[object Object]')\n throw new Error('options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged;\n}\n/** For runtime check if class implements interface */\nexport class Hash {\n}\n/** Wraps hash function, creating an interface on top of it */\nexport function createHasher(hashCons) {\n const hashC = (msg) => hashCons().update(toBytes(msg)).digest();\n const tmp = hashCons();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashCons();\n return hashC;\n}\nexport function createOptHasher(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\nexport function createXOFer(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\nexport const wrapConstructor = createHasher;\nexport const wrapConstructorWithOpts = createOptHasher;\nexport const wrapXOFConstructorWithOpts = createXOFer;\n/** Cryptographically secure PRNG. Uses internal OS-level `crypto.getRandomValues`. */\nexport function randomBytes(bytesLength = 32) {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n // Legacy Node.js compatibility\n if (crypto && typeof crypto.randomBytes === 'function') {\n return Uint8Array.from(crypto.randomBytes(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n//# sourceMappingURL=utils.js.map"],"names":["isBytes","a","Uint8Array","ArrayBuffer","isView","constructor","name","anumber","n","Number","isSafeInteger","Error","abytes","b","lengths","length","includes","ahash","h","create","outputLen","blockLen","aexists","instance","checkFinished","destroyed","finished","aoutput","out","min","u32","arr","Uint32Array","buffer","byteOffset","Math","floor","byteLength","clean","arrays","i","fill","createView","DataView","rotr","word","shift","isLE","byteSwap","byteSwap32","swap32IfBE","u","utf8ToBytes","str","TextEncoder","encode","toBytes","data","concatBytes","sum","res","pad","set","Hash","createHasher","hashCons","hashC","msg","update","digest","tmp","randomBytes","bytesLength","crypto","getRandomValues","from"],"mappings":"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","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import e from"../../../../eventemitter3/index.js";import{WalletNotConnectedError as t}from"./errors.js";var n;!function(e){e.Installed="Installed",e.NotDetected="NotDetected",e.Loadable="Loadable",e.Unsupported="Unsupported"}(n||(n={}));class o extends e{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,n,o={}){const r=this.publicKey;if(!r)throw new t;return e.feePayer=e.feePayer||r,e.recentBlockhash=e.recentBlockhash||(await n.getLatestBlockhash({commitment:o.preflightCommitment,minContextSlot:o.minContextSlot})).blockhash,e}}function r(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=[];function n(){if(e())for(const e of t)e()}const o=setInterval(n,1e3);t.push(()=>clearInterval(o)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",n,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",n))),"complete"!==document.readyState&&(window.addEventListener("load",n,{once:!0}),t.push(()=>window.removeEventListener("load",n))),n()}function a(){if(!navigator)return!1;const e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),n=e.includes("safari");return t&&n}export{o as BaseWalletAdapter,e as EventEmitter,n as WalletReadyState,a as isIosAndRedirectable,r as scopePollingDetectionStrategy};
2
+ //# sourceMappingURL=adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.js","sources":["../../../../../../../node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js"],"sourcesContent":["import EventEmitter from 'eventemitter3';\nimport { WalletNotConnectedError } from './errors.js';\nexport { EventEmitter };\n/**\n * A wallet's readiness describes a series of states that the wallet can be in,\n * depending on what kind of wallet it is. An installable wallet (eg. a browser\n * extension like Phantom) might be `Installed` if we've found the Phantom API\n * in the global scope, or `NotDetected` otherwise. A loadable, zero-install\n * runtime (eg. Torus Wallet) might simply signal that it's `Loadable`. Use this\n * metadata to personalize the wallet list for each user (eg. to show their\n * installed wallets first).\n */\nexport var WalletReadyState;\n(function (WalletReadyState) {\n /**\n * User-installable wallets can typically be detected by scanning for an API\n * that they've injected into the global context. If such an API is present,\n * we consider the wallet to have been installed.\n */\n WalletReadyState[\"Installed\"] = \"Installed\";\n WalletReadyState[\"NotDetected\"] = \"NotDetected\";\n /**\n * Loadable wallets are always available to you. Since you can load them at\n * any time, it's meaningless to say that they have been detected.\n */\n WalletReadyState[\"Loadable\"] = \"Loadable\";\n /**\n * If a wallet is not supported on a given platform (eg. server-rendering, or\n * mobile) then it will stay in the `Unsupported` state.\n */\n WalletReadyState[\"Unsupported\"] = \"Unsupported\";\n})(WalletReadyState || (WalletReadyState = {}));\nexport class BaseWalletAdapter extends EventEmitter {\n get connected() {\n return !!this.publicKey;\n }\n async autoConnect() {\n await this.connect();\n }\n async prepareTransaction(transaction, connection, options = {}) {\n const publicKey = this.publicKey;\n if (!publicKey)\n throw new WalletNotConnectedError();\n transaction.feePayer = transaction.feePayer || publicKey;\n transaction.recentBlockhash =\n transaction.recentBlockhash ||\n (await connection.getLatestBlockhash({\n commitment: options.preflightCommitment,\n minContextSlot: options.minContextSlot,\n })).blockhash;\n return transaction;\n }\n}\nexport function scopePollingDetectionStrategy(detect) {\n // Early return when server-side rendering\n if (typeof window === 'undefined' || typeof document === 'undefined')\n return;\n const disposers = [];\n function detectAndDispose() {\n const detected = detect();\n if (detected) {\n for (const dispose of disposers) {\n dispose();\n }\n }\n }\n // Strategy #1: Try detecting every second.\n const interval = \n // TODO: #334 Replace with idle callback strategy.\n setInterval(detectAndDispose, 1000);\n disposers.push(() => clearInterval(interval));\n // Strategy #2: Detect as soon as the DOM becomes 'ready'/'interactive'.\n if (\n // Implies that `DOMContentLoaded` has not yet fired.\n document.readyState === 'loading') {\n document.addEventListener('DOMContentLoaded', detectAndDispose, { once: true });\n disposers.push(() => document.removeEventListener('DOMContentLoaded', detectAndDispose));\n }\n // Strategy #3: Detect after the `window` has fully loaded.\n if (\n // If the `complete` state has been reached, we're too late.\n document.readyState !== 'complete') {\n window.addEventListener('load', detectAndDispose, { once: true });\n disposers.push(() => window.removeEventListener('load', detectAndDispose));\n }\n // Strategy #4: Detect synchronously, now.\n detectAndDispose();\n}\n/**\n * Users on iOS can be redirected into a wallet's in-app browser automatically,\n * if that wallet has a universal link configured to do so\n * But should not be redirected from within a webview, eg. if they're already\n * inside a wallet's browser\n * This function can be used to identify users who are on iOS and can be redirected\n *\n * @returns true if the user can be redirected\n */\nexport function isIosAndRedirectable() {\n // SSR: return false\n if (!navigator)\n return false;\n const userAgent = navigator.userAgent.toLowerCase();\n // if on iOS the user agent will contain either iPhone or iPad\n // caveat: if requesting desktop site then this won't work\n const isIos = userAgent.includes('iphone') || userAgent.includes('ipad');\n // if in a webview then it will not include Safari\n // note that other iOS browsers also include Safari\n // so we will redirect only if Safari is also included\n const isSafari = userAgent.includes('safari');\n return isIos && isSafari;\n}\n//# sourceMappingURL=adapter.js.map"],"names":["WalletReadyState","BaseWalletAdapter","EventEmitter","connected","this","publicKey","autoConnect","connect","prepareTransaction","transaction","connection","options","WalletNotConnectedError","feePayer","recentBlockhash","getLatestBlockhash","commitment","preflightCommitment","minContextSlot","blockhash","scopePollingDetectionStrategy","detect","window","document","disposers","detectAndDispose","dispose","interval","setInterval","push","clearInterval","readyState","addEventListener","once","removeEventListener","isIosAndRedirectable","navigator","userAgent","toLowerCase","isIos","includes","isSafari"],"mappings":"wGAYU,IAACA,GACX,SAAWA,GAMPA,EAA4B,UAAI,YAChCA,EAA8B,YAAI,cAKlCA,EAA2B,SAAI,WAK/BA,EAA8B,YAAI,aACrC,CAlBD,CAkBGA,IAAqBA,EAAmB,CAAA,IACpC,MAAMC,UAA0BC,EACnC,aAAIC,GACA,QAASC,KAAKC,SAClB,CACA,iBAAMC,SACIF,KAAKG,SACf,CACA,wBAAMC,CAAmBC,EAAaC,EAAYC,EAAU,CAAA,GACxD,MAAMN,EAAYD,KAAKC,UACvB,IAAKA,EACD,MAAM,IAAIO,EAQd,OAPAH,EAAYI,SAAWJ,EAAYI,UAAYR,EAC/CI,EAAYK,gBACRL,EAAYK,wBACDJ,EAAWK,mBAAmB,CACjCC,WAAYL,EAAQM,oBACpBC,eAAgBP,EAAQO,kBACxBC,UACLV,CACX,EAEG,SAASW,EAA8BC,GAE1C,GAAsB,oBAAXC,QAA8C,oBAAbC,SACxC,OACJ,MAAMC,EAAY,GAClB,SAASC,IAEL,GADiBJ,IAEb,IAAK,MAAMK,KAAWF,EAClBE,GAGZ,CAEA,MAAMC,EAENC,YAAYH,EAAkB,KAC9BD,EAAUK,KAAK,IAAMC,cAAcH,IAIX,YAAxBJ,SAASQ,aACLR,SAASS,iBAAiB,mBAAoBP,EAAkB,CAAEQ,MAAM,IACxET,EAAUK,KAAK,IAAMN,SAASW,oBAAoB,mBAAoBT,KAKlD,aAAxBF,SAASQ,aACLT,OAAOU,iBAAiB,OAAQP,EAAkB,CAAEQ,MAAM,IAC1DT,EAAUK,KAAK,IAAMP,OAAOY,oBAAoB,OAAQT,KAG5DA,GACJ,CAUO,SAASU,IAEZ,IAAKC,UACD,OAAO,EACX,MAAMC,EAAYD,UAAUC,UAAUC,cAGhCC,EAAQF,EAAUG,SAAS,WAAaH,EAAUG,SAAS,QAI3DC,EAAWJ,EAAUG,SAAS,UACpC,OAAOD,GAASE,CACpB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ class r extends Error{constructor(r,s){super(r),this.error=s}}class s extends r{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class e extends r{constructor(){super(...arguments),this.name="WalletConnectionError"}}class t extends r{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class n extends r{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class o extends r{constructor(){super(...arguments),this.name="WalletAccountError"}}class c extends r{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class a extends r{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class l extends r{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class u extends r{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}class i extends r{constructor(){super(...arguments),this.name="WalletSignMessageError"}}export{o as WalletAccountError,e as WalletConnectionError,t as WalletDisconnectedError,n as WalletDisconnectionError,r as WalletError,a as WalletNotConnectedError,s as WalletNotReadyError,c as WalletPublicKeyError,l as WalletSendTransactionError,i as WalletSignMessageError,u as WalletSignTransactionError};
2
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sources":["../../../../../../../node_modules/@solana/wallet-adapter-base/lib/esm/errors.js"],"sourcesContent":["export class WalletError extends Error {\n // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\n constructor(message, error) {\n super(message);\n this.error = error;\n }\n}\nexport class WalletNotReadyError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletNotReadyError';\n }\n}\nexport class WalletLoadError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletLoadError';\n }\n}\nexport class WalletConfigError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletConfigError';\n }\n}\nexport class WalletConnectionError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletConnectionError';\n }\n}\nexport class WalletDisconnectedError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletDisconnectedError';\n }\n}\nexport class WalletDisconnectionError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletDisconnectionError';\n }\n}\nexport class WalletAccountError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletAccountError';\n }\n}\nexport class WalletPublicKeyError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletPublicKeyError';\n }\n}\nexport class WalletKeypairError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletKeypairError';\n }\n}\nexport class WalletNotConnectedError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletNotConnectedError';\n }\n}\nexport class WalletSendTransactionError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletSendTransactionError';\n }\n}\nexport class WalletSignTransactionError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletSignTransactionError';\n }\n}\nexport class WalletSignMessageError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletSignMessageError';\n }\n}\nexport class WalletSignInError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletSignInError';\n }\n}\nexport class WalletTimeoutError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletTimeoutError';\n }\n}\nexport class WalletWindowBlockedError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletWindowBlockedError';\n }\n}\nexport class WalletWindowClosedError extends WalletError {\n constructor() {\n super(...arguments);\n this.name = 'WalletWindowClosedError';\n }\n}\n//# sourceMappingURL=errors.js.map"],"names":["WalletError","Error","constructor","message","error","super","this","WalletNotReadyError","arguments","name","WalletConnectionError","WalletDisconnectedError","WalletDisconnectionError","WalletAccountError","WalletPublicKeyError","WalletNotConnectedError","WalletSendTransactionError","WalletSignTransactionError","WalletSignMessageError"],"mappings":"AAAO,MAAMA,UAAoBC,MAE7B,WAAAC,CAAYC,EAASC,GACjBC,MAAMF,GACNG,KAAKF,MAAQA,CACjB,EAEG,MAAMG,UAA4BP,EACrC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,qBAChB,EAcG,MAAMC,UAA8BV,EACvC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,uBAChB,EAEG,MAAME,UAAgCX,EACzC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,yBAChB,EAEG,MAAMG,UAAiCZ,EAC1C,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,0BAChB,EAEG,MAAMI,UAA2Bb,EACpC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,oBAChB,EAEG,MAAMK,UAA6Bd,EACtC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,sBAChB,EAQG,MAAMM,UAAgCf,EACzC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,yBAChB,EAEG,MAAMO,UAAmChB,EAC5C,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,4BAChB,EAEG,MAAMQ,UAAmCjB,EAC5C,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,4BAChB,EAEG,MAAMS,UAA+BlB,EACxC,WAAAE,GACIG,SAASG,WACTF,KAAKG,KAAO,wBAChB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseWalletAdapter as s}from"./adapter.js";import{WalletSendTransactionError as t,WalletSignTransactionError as n}from"./errors.js";import{isVersionedTransaction as i}from"./transaction.js";class r extends s{async sendTransaction(s,r,a={}){let o=!0;try{if(i(s)){if(!this.supportedTransactionVersions)throw new t("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(s.version))throw new t(`Sending transaction version ${s.version} isn't supported by this wallet`);try{const t=(s=await this.signTransaction(s)).serialize();return await r.sendRawTransaction(t,a)}catch(s){if(s instanceof n)throw o=!1,s;throw new t(s?.message,s)}}else try{const{signers:t,...n}=a;s=await this.prepareTransaction(s,r,n),t?.length&&s.partialSign(...t);const i=(s=await this.signTransaction(s)).serialize();return await r.sendRawTransaction(i,n)}catch(s){if(s instanceof n)throw o=!1,s;throw new t(s?.message,s)}}catch(s){throw o&&this.emit("error",s),s}}async signAllTransactions(s){for(const t of s)if(i(t)){if(!this.supportedTransactionVersions)throw new n("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new n(`Signing transaction version ${t.version} isn't supported by this wallet`)}const t=[];for(const n of s)t.push(await this.signTransaction(n));return t}}class a extends r{}export{a as BaseMessageSignerWalletAdapter,r as BaseSignerWalletAdapter};
2
+ //# sourceMappingURL=signer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signer.js","sources":["../../../../../../../node_modules/@solana/wallet-adapter-base/lib/esm/signer.js"],"sourcesContent":["import { BaseWalletAdapter, } from './adapter.js';\nimport { WalletSendTransactionError, WalletSignTransactionError } from './errors.js';\nimport { isVersionedTransaction } from './transaction.js';\nexport class BaseSignerWalletAdapter extends BaseWalletAdapter {\n async sendTransaction(transaction, connection, options = {}) {\n let emit = true;\n try {\n if (isVersionedTransaction(transaction)) {\n if (!this.supportedTransactionVersions)\n throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`);\n if (!this.supportedTransactionVersions.has(transaction.version))\n throw new WalletSendTransactionError(`Sending transaction version ${transaction.version} isn't supported by this wallet`);\n try {\n transaction = await this.signTransaction(transaction);\n const rawTransaction = transaction.serialize();\n return await connection.sendRawTransaction(rawTransaction, options);\n }\n catch (error) {\n // If the error was thrown by `signTransaction`, rethrow it and don't emit a duplicate event\n if (error instanceof WalletSignTransactionError) {\n emit = false;\n throw error;\n }\n throw new WalletSendTransactionError(error?.message, error);\n }\n }\n else {\n try {\n const { signers, ...sendOptions } = options;\n transaction = await this.prepareTransaction(transaction, connection, sendOptions);\n signers?.length && transaction.partialSign(...signers);\n transaction = await this.signTransaction(transaction);\n const rawTransaction = transaction.serialize();\n return await connection.sendRawTransaction(rawTransaction, sendOptions);\n }\n catch (error) {\n // If the error was thrown by `signTransaction`, rethrow it and don't emit a duplicate event\n if (error instanceof WalletSignTransactionError) {\n emit = false;\n throw error;\n }\n throw new WalletSendTransactionError(error?.message, error);\n }\n }\n }\n catch (error) {\n if (emit) {\n this.emit('error', error);\n }\n throw error;\n }\n }\n async signAllTransactions(transactions) {\n for (const transaction of transactions) {\n if (isVersionedTransaction(transaction)) {\n if (!this.supportedTransactionVersions)\n throw new WalletSignTransactionError(`Signing versioned transactions isn't supported by this wallet`);\n if (!this.supportedTransactionVersions.has(transaction.version))\n throw new WalletSignTransactionError(`Signing transaction version ${transaction.version} isn't supported by this wallet`);\n }\n }\n const signedTransactions = [];\n for (const transaction of transactions) {\n signedTransactions.push(await this.signTransaction(transaction));\n }\n return signedTransactions;\n }\n}\nexport class BaseMessageSignerWalletAdapter extends BaseSignerWalletAdapter {\n}\nexport class BaseSignInMessageSignerWalletAdapter extends BaseMessageSignerWalletAdapter {\n}\n//# sourceMappingURL=signer.js.map"],"names":["BaseSignerWalletAdapter","BaseWalletAdapter","sendTransaction","transaction","connection","options","emit","isVersionedTransaction","this","supportedTransactionVersions","WalletSendTransactionError","has","version","rawTransaction","signTransaction","serialize","sendRawTransaction","error","WalletSignTransactionError","message","signers","sendOptions","prepareTransaction","length","partialSign","signAllTransactions","transactions","signedTransactions","push","BaseMessageSignerWalletAdapter"],"mappings":"oMAGO,MAAMA,UAAgCC,EACzC,qBAAMC,CAAgBC,EAAaC,EAAYC,EAAU,CAAA,GACrD,IAAIC,GAAO,EACX,IACI,GAAIC,EAAuBJ,GAAc,CACrC,IAAKK,KAAKC,6BACN,MAAM,IAAIC,EAA2B,iEACzC,IAAKF,KAAKC,6BAA6BE,IAAIR,EAAYS,SACnD,MAAM,IAAIF,EAA2B,+BAA+BP,EAAYS,0CACpF,IAEI,MAAMC,GADNV,QAAoBK,KAAKM,gBAAgBX,IACNY,YACnC,aAAaX,EAAWY,mBAAmBH,EAAgBR,EAC/D,CACA,MAAOY,GAEH,GAAIA,aAAiBC,EAEjB,MADAZ,GAAO,EACDW,EAEV,MAAM,IAAIP,EAA2BO,GAAOE,QAASF,EACzD,CACJ,MAEI,IACI,MAAMG,QAAEA,KAAYC,GAAgBhB,EACpCF,QAAoBK,KAAKc,mBAAmBnB,EAAaC,EAAYiB,GACrED,GAASG,QAAUpB,EAAYqB,eAAeJ,GAE9C,MAAMP,GADNV,QAAoBK,KAAKM,gBAAgBX,IACNY,YACnC,aAAaX,EAAWY,mBAAmBH,EAAgBQ,EAC/D,CACA,MAAOJ,GAEH,GAAIA,aAAiBC,EAEjB,MADAZ,GAAO,EACDW,EAEV,MAAM,IAAIP,EAA2BO,GAAOE,QAASF,EACzD,CAER,CACA,MAAOA,GAIH,MAHIX,GACAE,KAAKF,KAAK,QAASW,GAEjBA,CACV,CACJ,CACA,yBAAMQ,CAAoBC,GACtB,IAAK,MAAMvB,KAAeuB,EACtB,GAAInB,EAAuBJ,GAAc,CACrC,IAAKK,KAAKC,6BACN,MAAM,IAAIS,EAA2B,iEACzC,IAAKV,KAAKC,6BAA6BE,IAAIR,EAAYS,SACnD,MAAM,IAAIM,EAA2B,+BAA+Bf,EAAYS,yCACxF,CAEJ,MAAMe,EAAqB,GAC3B,IAAK,MAAMxB,KAAeuB,EACtBC,EAAmBC,WAAWpB,KAAKM,gBAAgBX,IAEvD,OAAOwB,CACX,EAEG,MAAME,UAAuC7B","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ function n(n){return"version"in n}export{n as isVersionedTransaction};
2
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.js","sources":["../../../../../../../node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js"],"sourcesContent":["export function isVersionedTransaction(transaction) {\n return 'version' in transaction;\n}\n//# sourceMappingURL=transaction.js.map"],"names":["isVersionedTransaction","transaction"],"mappings":"AAAO,SAASA,EAAuBC,GACnC,MAAO,YAAaA,CACxB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{version as e}from"./version.js";class s extends Error{constructor(a,t={}){const r=t.cause instanceof s?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof s&&t.cause.docsPath||t.docsPath;super([a||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${e}`].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=a}}export{s as BaseError};
2
+ //# sourceMappingURL=errors.js.map