@ozdao/prometheus-framework 0.1.66 → 0.1.68
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -3
- package/dist/_virtual/browser-ponyfill.cjs +1 -0
- package/dist/_virtual/browser-ponyfill.js +4 -0
- package/dist/_virtual/crc32.cjs +1 -0
- package/dist/_virtual/crc32.js +4 -0
- package/dist/_virtual/events.cjs +1 -0
- package/dist/_virtual/events.js +4 -0
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
- package/dist/node_modules/abitype/dist/index.cjs +2 -0
- package/dist/node_modules/abitype/dist/index.js +299 -0
- package/dist/node_modules/crc-32/crc32.cjs +1 -0
- package/dist/node_modules/crc-32/crc32.js +51 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
- package/dist/node_modules/events/events.cjs +1 -0
- package/dist/node_modules/events/events.js +229 -0
- package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
- package/dist/node_modules/isomorphic-ws/browser.js +6 -0
- package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
- package/dist/node_modules/setimmediate/setImmediate.js +99 -0
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/abi.js +24 -0
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/index.js +76 -0
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/version.js +4 -0
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/web3.js +89 -0
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
- package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
- package/dist/node_modules/zod/lib/index.cjs +1 -0
- package/dist/node_modules/zod/lib/index.js +2854 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
- package/dist/prometheus-framework.cjs.js +29 -30
- package/dist/prometheus-framework.es.js +3953 -3225
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/modules/auth/components/pages/SignIn.vue +2 -2
- package/src/modules/payments/components/pages/Payments.vue +32 -34
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
- package/src/modules/products/components/blocks/CardProduct.vue +1 -17
- package/src/modules/products/components/sections/EditProductInfo.vue +3 -5
@@ -0,0 +1,48 @@
|
|
1
|
+
function r(e) {
|
2
|
+
if (!Number.isSafeInteger(e) || e < 0)
|
3
|
+
throw new Error(`Wrong positive integer: ${e}`);
|
4
|
+
}
|
5
|
+
function i(e) {
|
6
|
+
if (typeof e != "boolean")
|
7
|
+
throw new Error(`Expected boolean, not ${e}`);
|
8
|
+
}
|
9
|
+
function n(e, ...t) {
|
10
|
+
if (!(e instanceof Uint8Array))
|
11
|
+
throw new Error("Expected Uint8Array");
|
12
|
+
if (t.length > 0 && !t.includes(e.length))
|
13
|
+
throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`);
|
14
|
+
}
|
15
|
+
function f(e) {
|
16
|
+
if (typeof e != "function" || typeof e.create != "function")
|
17
|
+
throw new Error("Hash should be wrapped by utils.wrapConstructor");
|
18
|
+
r(e.outputLen), r(e.blockLen);
|
19
|
+
}
|
20
|
+
function u(e, t = !0) {
|
21
|
+
if (e.destroyed)
|
22
|
+
throw new Error("Hash instance has been destroyed");
|
23
|
+
if (t && e.finished)
|
24
|
+
throw new Error("Hash#digest() has already been called");
|
25
|
+
}
|
26
|
+
function s(e, t) {
|
27
|
+
n(e);
|
28
|
+
const o = t.outputLen;
|
29
|
+
if (e.length < o)
|
30
|
+
throw new Error(`digestInto() expects output buffer of length at least ${o}`);
|
31
|
+
}
|
32
|
+
const a = {
|
33
|
+
number: r,
|
34
|
+
bool: i,
|
35
|
+
bytes: n,
|
36
|
+
hash: f,
|
37
|
+
exists: u,
|
38
|
+
output: s
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
i as bool,
|
42
|
+
n as bytes,
|
43
|
+
a as default,
|
44
|
+
u as exists,
|
45
|
+
f as hash,
|
46
|
+
r as number,
|
47
|
+
s as output
|
48
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./_assert.cjs"),c=require("./utils.cjs");function d(u,t,n,e){if(typeof u.setBigUint64=="function")return u.setBigUint64(t,n,e);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),r=Number(n&o),f=e?4:0,l=e?0:4;u.setUint32(t+f,s,e),u.setUint32(t+l,r,e)}class a extends c.Hash{constructor(t,n,e,i){super(),this.blockLen=t,this.outputLen=n,this.padOffset=e,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=c.createView(this.buffer)}update(t){p.default.exists(this);const{view:n,buffer:e,blockLen:i}=this;t=c.toBytes(t);const o=t.length;for(let s=0;s<o;){const r=Math.min(i-this.pos,o-s);if(r===i){const f=c.createView(t);for(;i<=o-s;s+=i)this.process(f,s);continue}e.set(t.subarray(s,s+r),this.pos),this.pos+=r,s+=r,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){p.default.exists(this),p.default.output(t,this),this.finished=!0;const{buffer:n,view:e,blockLen:i,isLE:o}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(e,0),s=0);for(let h=s;h<i;h++)n[h]=0;d(e,i-8,BigInt(this.length*8),o),this.process(e,0);const r=c.createView(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,g=this.get();if(l>g.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<l;h++)r.setUint32(4*h,g[h],o)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const e=t.slice(0,n);return this.destroy(),e}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:e,length:i,finished:o,destroyed:s,pos:r}=this;return t.length=i,t.pos=r,t.finished=o,t.destroyed=s,i%n&&t.buffer.set(e),t}}exports.SHA2=a;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import p from "./_assert.js";
|
2
|
+
import { Hash as b, createView as l, toBytes as d } from "./utils.js";
|
3
|
+
function a(u, t, n, e) {
|
4
|
+
if (typeof u.setBigUint64 == "function")
|
5
|
+
return u.setBigUint64(t, n, e);
|
6
|
+
const i = BigInt(32), o = BigInt(4294967295), s = Number(n >> i & o), h = Number(n & o), f = e ? 4 : 0, c = e ? 0 : 4;
|
7
|
+
u.setUint32(t + f, s, e), u.setUint32(t + c, h, e);
|
8
|
+
}
|
9
|
+
class y extends b {
|
10
|
+
constructor(t, n, e, i) {
|
11
|
+
super(), this.blockLen = t, this.outputLen = n, this.padOffset = e, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = l(this.buffer);
|
12
|
+
}
|
13
|
+
update(t) {
|
14
|
+
p.exists(this);
|
15
|
+
const { view: n, buffer: e, blockLen: i } = this;
|
16
|
+
t = d(t);
|
17
|
+
const o = t.length;
|
18
|
+
for (let s = 0; s < o; ) {
|
19
|
+
const h = Math.min(i - this.pos, o - s);
|
20
|
+
if (h === i) {
|
21
|
+
const f = l(t);
|
22
|
+
for (; i <= o - s; s += i)
|
23
|
+
this.process(f, s);
|
24
|
+
continue;
|
25
|
+
}
|
26
|
+
e.set(t.subarray(s, s + h), this.pos), this.pos += h, s += h, this.pos === i && (this.process(n, 0), this.pos = 0);
|
27
|
+
}
|
28
|
+
return this.length += t.length, this.roundClean(), this;
|
29
|
+
}
|
30
|
+
digestInto(t) {
|
31
|
+
p.exists(this), p.output(t, this), this.finished = !0;
|
32
|
+
const { buffer: n, view: e, blockLen: i, isLE: o } = this;
|
33
|
+
let { pos: s } = this;
|
34
|
+
n[s++] = 128, this.buffer.subarray(s).fill(0), this.padOffset > i - s && (this.process(e, 0), s = 0);
|
35
|
+
for (let r = s; r < i; r++)
|
36
|
+
n[r] = 0;
|
37
|
+
a(e, i - 8, BigInt(this.length * 8), o), this.process(e, 0);
|
38
|
+
const h = l(t), f = this.outputLen;
|
39
|
+
if (f % 4)
|
40
|
+
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
41
|
+
const c = f / 4, g = this.get();
|
42
|
+
if (c > g.length)
|
43
|
+
throw new Error("_sha2: outputLen bigger than state");
|
44
|
+
for (let r = 0; r < c; r++)
|
45
|
+
h.setUint32(4 * r, g[r], o);
|
46
|
+
}
|
47
|
+
digest() {
|
48
|
+
const { buffer: t, outputLen: n } = this;
|
49
|
+
this.digestInto(t);
|
50
|
+
const e = t.slice(0, n);
|
51
|
+
return this.destroy(), e;
|
52
|
+
}
|
53
|
+
_cloneInto(t) {
|
54
|
+
t || (t = new this.constructor()), t.set(...this.get());
|
55
|
+
const { blockLen: n, buffer: e, length: i, finished: o, destroyed: s, pos: h } = this;
|
56
|
+
return t.length = i, t.pos = h, t.finished = o, t.destroyed = s, i % n && t.buffer.set(e), t;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
export {
|
60
|
+
y as SHA2
|
61
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=BigInt(2**32-1),s=BigInt(32);function i(t,n=!1){return n?{h:Number(t&c),l:Number(t>>s&c)}:{h:Number(t>>s&c)|0,l:Number(t&c)|0}}function d(t,n=!1){let o=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let e=0;e<t.length;e++){const{h:l,l:g}=i(t[e],n);[o[e],r[e]]=[l,g]}return[o,r]}const u=(t,n)=>BigInt(t>>>0)<<s|BigInt(n>>>0),B=(t,n,o)=>t>>>o,f=(t,n,o)=>t<<32-o|n>>>o,h=(t,n,o)=>t>>>o|n<<32-o,H=(t,n,o)=>t<<32-o|n>>>o,L=(t,n,o)=>t<<64-o|n>>>o-32,S=(t,n,o)=>t>>>o-32|n<<64-o,m=(t,n)=>n,b=(t,n)=>t,A=(t,n,o)=>t<<o|n>>>32-o,I=(t,n,o)=>n<<o|t>>>32-o,N=(t,n,o)=>n<<o-32|t>>>64-o,_=(t,n,o)=>t<<o-32|n>>>64-o;function a(t,n,o,r){const e=(n>>>0)+(r>>>0);return{h:t+o+(e/2**32|0)|0,l:e|0}}const p=(t,n,o)=>(t>>>0)+(n>>>0)+(o>>>0),y=(t,n,o,r)=>n+o+r+(t/2**32|0)|0,M=(t,n,o,r)=>(t>>>0)+(n>>>0)+(o>>>0)+(r>>>0),U=(t,n,o,r,e)=>n+o+r+e+(t/2**32|0)|0,v=(t,n,o,r,e)=>(t>>>0)+(n>>>0)+(o>>>0)+(r>>>0)+(e>>>0),w=(t,n,o,r,e,l)=>n+o+r+e+l+(t/2**32|0)|0,j={fromBig:i,split:d,toBig:u,shrSH:B,shrSL:f,rotrSH:h,rotrSL:H,rotrBH:L,rotrBL:S,rotr32H:m,rotr32L:b,rotlSH:A,rotlSL:I,rotlBH:N,rotlBL:_,add:a,add3L:p,add3H:y,add4L:M,add4H:U,add5H:w,add5L:v};exports.add=a;exports.default=j;exports.fromBig=i;exports.split=d;exports.toBig=u;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
const e = BigInt(4294967295), s = BigInt(32);
|
2
|
+
function d(t, o = !1) {
|
3
|
+
return o ? { h: Number(t & e), l: Number(t >> s & e) } : { h: Number(t >> s & e) | 0, l: Number(t & e) | 0 };
|
4
|
+
}
|
5
|
+
function a(t, o = !1) {
|
6
|
+
let n = new Uint32Array(t.length), r = new Uint32Array(t.length);
|
7
|
+
for (let c = 0; c < t.length; c++) {
|
8
|
+
const { h: l, l: i } = d(t[c], o);
|
9
|
+
[n[c], r[c]] = [l, i];
|
10
|
+
}
|
11
|
+
return [n, r];
|
12
|
+
}
|
13
|
+
const u = (t, o) => BigInt(t >>> 0) << s | BigInt(o >>> 0), h = (t, o, n) => t >>> n, B = (t, o, n) => t << 32 - n | o >>> n, f = (t, o, n) => t >>> n | o << 32 - n, g = (t, o, n) => t << 32 - n | o >>> n, H = (t, o, n) => t << 64 - n | o >>> n - 32, L = (t, o, n) => t >>> n - 32 | o << 64 - n, S = (t, o) => o, m = (t, o) => t, A = (t, o, n) => t << n | o >>> 32 - n, b = (t, o, n) => o << n | t >>> 32 - n, I = (t, o, n) => o << n - 32 | t >>> 64 - n, N = (t, o, n) => t << n - 32 | o >>> 64 - n;
|
14
|
+
function U(t, o, n, r) {
|
15
|
+
const c = (o >>> 0) + (r >>> 0);
|
16
|
+
return { h: t + n + (c / 2 ** 32 | 0) | 0, l: c | 0 };
|
17
|
+
}
|
18
|
+
const p = (t, o, n) => (t >>> 0) + (o >>> 0) + (n >>> 0), w = (t, o, n, r) => o + n + r + (t / 2 ** 32 | 0) | 0, y = (t, o, n, r) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0), _ = (t, o, n, r, c) => o + n + r + c + (t / 2 ** 32 | 0) | 0, x = (t, o, n, r, c) => (t >>> 0) + (o >>> 0) + (n >>> 0) + (r >>> 0) + (c >>> 0), K = (t, o, n, r, c, l) => o + n + r + c + l + (t / 2 ** 32 | 0) | 0, M = {
|
19
|
+
fromBig: d,
|
20
|
+
split: a,
|
21
|
+
toBig: u,
|
22
|
+
shrSH: h,
|
23
|
+
shrSL: B,
|
24
|
+
rotrSH: f,
|
25
|
+
rotrSL: g,
|
26
|
+
rotrBH: H,
|
27
|
+
rotrBL: L,
|
28
|
+
rotr32H: S,
|
29
|
+
rotr32L: m,
|
30
|
+
rotlSH: A,
|
31
|
+
rotlSL: b,
|
32
|
+
rotlBH: I,
|
33
|
+
rotlBL: N,
|
34
|
+
add: U,
|
35
|
+
add3L: p,
|
36
|
+
add3H: w,
|
37
|
+
add4L: y,
|
38
|
+
add4H: _,
|
39
|
+
add5H: K,
|
40
|
+
add5L: x
|
41
|
+
};
|
42
|
+
export {
|
43
|
+
U as add,
|
44
|
+
M as default,
|
45
|
+
d as fromBig,
|
46
|
+
a as split,
|
47
|
+
u as toBig
|
48
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;exports.crypto=o;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./_assert.cjs"),d=require("./utils.cjs");class r extends d.Hash{constructor(t,i){super(),this.finished=!1,this.destroyed=!1,o.default.hash(t);const h=d.toBytes(i);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,e=new Uint8Array(a);e.set(h.length>a?t.create().update(h).digest():h);for(let s=0;s<e.length;s++)e[s]^=54;this.iHash.update(e),this.oHash=t.create();for(let s=0;s<e.length;s++)e[s]^=106;this.oHash.update(e),e.fill(0)}update(t){return o.default.exists(this),this.iHash.update(t),this}digestInto(t){o.default.exists(this),o.default.bytes(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:i,iHash:h,finished:a,destroyed:e,blockLen:s,outputLen:u}=this;return t=t,t.finished=a,t.destroyed=e,t.blockLen=s,t.outputLen=u,t.oHash=i._cloneInto(t.oHash),t.iHash=h._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const c=(n,t,i)=>new r(n,t).update(i).digest();c.create=(n,t)=>new r(n,t);exports.HMAC=r;exports.hmac=c;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import a from "./_assert.js";
|
2
|
+
import { Hash as c, toBytes as u } from "./utils.js";
|
3
|
+
class r extends c {
|
4
|
+
constructor(t, i) {
|
5
|
+
super(), this.finished = !1, this.destroyed = !1, a.hash(t);
|
6
|
+
const h = u(i);
|
7
|
+
if (this.iHash = t.create(), typeof this.iHash.update != "function")
|
8
|
+
throw new Error("Expected instance of class which extends utils.Hash");
|
9
|
+
this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
|
10
|
+
const o = this.blockLen, s = new Uint8Array(o);
|
11
|
+
s.set(h.length > o ? t.create().update(h).digest() : h);
|
12
|
+
for (let e = 0; e < s.length; e++)
|
13
|
+
s[e] ^= 54;
|
14
|
+
this.iHash.update(s), this.oHash = t.create();
|
15
|
+
for (let e = 0; e < s.length; e++)
|
16
|
+
s[e] ^= 106;
|
17
|
+
this.oHash.update(s), s.fill(0);
|
18
|
+
}
|
19
|
+
update(t) {
|
20
|
+
return a.exists(this), this.iHash.update(t), this;
|
21
|
+
}
|
22
|
+
digestInto(t) {
|
23
|
+
a.exists(this), a.bytes(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
24
|
+
}
|
25
|
+
digest() {
|
26
|
+
const t = new Uint8Array(this.oHash.outputLen);
|
27
|
+
return this.digestInto(t), t;
|
28
|
+
}
|
29
|
+
_cloneInto(t) {
|
30
|
+
t || (t = Object.create(Object.getPrototypeOf(this), {}));
|
31
|
+
const { oHash: i, iHash: h, finished: o, destroyed: s, blockLen: e, outputLen: d } = this;
|
32
|
+
return t = t, t.finished = o, t.destroyed = s, t.blockLen = e, t.outputLen = d, t.oHash = i._cloneInto(t.oHash), t.iHash = h._cloneInto(t.iHash), t;
|
33
|
+
}
|
34
|
+
destroy() {
|
35
|
+
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
36
|
+
}
|
37
|
+
}
|
38
|
+
const H = (n, t, i) => new r(n, t).update(i).digest();
|
39
|
+
H.create = (n, t) => new r(n, t);
|
40
|
+
export {
|
41
|
+
r as HMAC,
|
42
|
+
H as hmac
|
43
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./_assert.cjs"),g=require("./hmac.cjs"),w=require("./utils.cjs");function m(n,c,u,o){k.default.hash(n);const a=w.checkOpts({dkLen:32,asyncTick:10},o),{c:i,dkLen:r,asyncTick:t}=a;if(k.default.number(i),k.default.number(r),k.default.number(t),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=w.toBytes(c),s=w.toBytes(u),d=new Uint8Array(r),f=g.hmac.create(n,l),e=f._cloneInto().update(s);return{c:i,dkLen:r,asyncTick:t,DK:d,PRF:f,PRFSalt:e}}function L(n,c,u,o,a){return n.destroy(),c.destroy(),o&&o.destroy(),a.fill(0),u}function P(n,c,u,o){const{c:a,dkLen:i,DK:r,PRF:t,PRFSalt:l}=m(n,c,u,o);let s;const d=new Uint8Array(4),f=w.createView(d),e=new Uint8Array(t.outputLen);for(let h=1,p=0;p<i;h++,p+=t.outputLen){const y=r.subarray(p,p+t.outputLen);f.setInt32(0,h,!1),(s=l._cloneInto(s)).update(d).digestInto(e),y.set(e.subarray(0,y.length));for(let I=1;I<a;I++){t._cloneInto(s).update(e).digestInto(e);for(let b=0;b<y.length;b++)y[b]^=e[b]}}return L(t,l,r,s,e)}exports.pbkdf2=P;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import b from "./_assert.js";
|
2
|
+
import { hmac as h } from "./hmac.js";
|
3
|
+
import { createView as L, checkOpts as F, toBytes as I } from "./utils.js";
|
4
|
+
function P(e, c, i, o) {
|
5
|
+
b.hash(e);
|
6
|
+
const u = F({ dkLen: 32, asyncTick: 10 }, o), { c: a, dkLen: r, asyncTick: t } = u;
|
7
|
+
if (b.number(a), b.number(r), b.number(t), a < 1)
|
8
|
+
throw new Error("PBKDF2: iterations (c) should be >= 1");
|
9
|
+
const p = I(c), s = I(i), d = new Uint8Array(r), f = h.create(e, p), n = f._cloneInto().update(s);
|
10
|
+
return { c: a, dkLen: r, asyncTick: t, DK: d, PRF: f, PRFSalt: n };
|
11
|
+
}
|
12
|
+
function g(e, c, i, o, u) {
|
13
|
+
return e.destroy(), c.destroy(), o && o.destroy(), u.fill(0), i;
|
14
|
+
}
|
15
|
+
function K(e, c, i, o) {
|
16
|
+
const { c: u, dkLen: a, DK: r, PRF: t, PRFSalt: p } = P(e, c, i, o);
|
17
|
+
let s;
|
18
|
+
const d = new Uint8Array(4), f = L(d), n = new Uint8Array(t.outputLen);
|
19
|
+
for (let k = 1, l = 0; l < a; k++, l += t.outputLen) {
|
20
|
+
const y = r.subarray(l, l + t.outputLen);
|
21
|
+
f.setInt32(0, k, !1), (s = p._cloneInto(s)).update(d).digestInto(n), y.set(n.subarray(0, y.length));
|
22
|
+
for (let w = 1; w < u; w++) {
|
23
|
+
t._cloneInto(s).update(n).digestInto(n);
|
24
|
+
for (let m = 0; m < y.length; m++)
|
25
|
+
y[m] ^= n[m];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return g(t, p, r, s, n);
|
29
|
+
}
|
30
|
+
export {
|
31
|
+
K as pbkdf2
|
32
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./_assert.cjs"),J=require("./sha256.cjs"),K=require("./pbkdf2.cjs"),D=require("./utils.cjs"),t=(r,l)=>r<<l|r>>>32-l;function H(r,l,n,s,e,c){let a=r[l++]^n[s++],o=r[l++]^n[s++],x=r[l++]^n[s++],b=r[l++]^n[s++],d=r[l++]^n[s++],y=r[l++]^n[s++],S=r[l++]^n[s++],h=r[l++]^n[s++],m=r[l++]^n[s++],f=r[l++]^n[s++],w=r[l++]^n[s++],k=r[l++]^n[s++],X=r[l++]^n[s++],$=r[l++]^n[s++],_=r[l++]^n[s++],g=r[l++]^n[s++],M=a,q=o,u=x,B=b,E=d,L=y,C=S,N=h,P=m,z=f,A=w,O=k,T=X,U=$,j=_,V=g;for(let G=0;G<8;G+=2)E^=t(M+T|0,7),P^=t(E+M|0,9),T^=t(P+E|0,13),M^=t(T+P|0,18),z^=t(L+q|0,7),U^=t(z+L|0,9),q^=t(U+z|0,13),L^=t(q+U|0,18),j^=t(A+C|0,7),u^=t(j+A|0,9),C^=t(u+j|0,13),A^=t(C+u|0,18),B^=t(V+O|0,7),N^=t(B+V|0,9),O^=t(N+B|0,13),V^=t(O+N|0,18),q^=t(M+B|0,7),u^=t(q+M|0,9),B^=t(u+q|0,13),M^=t(B+u|0,18),C^=t(L+E|0,7),N^=t(C+L|0,9),E^=t(N+C|0,13),L^=t(E+N|0,18),O^=t(A+z|0,7),P^=t(O+A|0,9),z^=t(P+O|0,13),A^=t(z+P|0,18),T^=t(V+j|0,7),U^=t(T+V|0,9),j^=t(U+T|0,13),V^=t(j+U|0,18);e[c++]=a+M|0,e[c++]=o+q|0,e[c++]=x+u|0,e[c++]=b+B|0,e[c++]=d+E|0,e[c++]=y+L|0,e[c++]=S+C|0,e[c++]=h+N|0,e[c++]=m+P|0,e[c++]=f+z|0,e[c++]=w+A|0,e[c++]=k+O|0,e[c++]=X+T|0,e[c++]=$+U|0,e[c++]=_+j|0,e[c++]=g+V|0}function F(r,l,n,s,e){let c=s+0,a=s+16*e;for(let o=0;o<16;o++)n[a+o]=r[l+(2*e-1)*16+o];for(let o=0;o<e;o++,c+=16,l+=16)H(n,a,r,l,n,c),o>0&&(a+=16),H(n,c,r,l+=16,n,a)}function Q(r,l,n){const s=D.checkOpts({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:e,r:c,p:a,dkLen:o,asyncTick:x,maxmem:b,onProgress:d}=s;if(I.default.number(e),I.default.number(c),I.default.number(a),I.default.number(o),I.default.number(x),I.default.number(b),d!==void 0&&typeof d!="function")throw new Error("progressCb should be function");const y=128*c,S=y/4;if(e<=1||e&e-1||e>=2**(y/8)||e>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(a<0||a>(2**32-1)*32/y)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=y*(e+a);if(h>b)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${b} (maxmem)`);const m=K.pbkdf2(J.sha256,r,l,{c:1,dkLen:y*a}),f=D.u32(m),w=D.u32(new Uint8Array(y*e)),k=D.u32(new Uint8Array(y));let X=()=>{};if(d){const $=2*e*a,_=Math.max(Math.floor($/1e4),1);let g=0;X=()=>{g++,d&&(!(g%_)||g===$)&&d(g/$)}}return{N:e,r:c,p:a,dkLen:o,blockSize32:S,V:w,B32:f,B:m,tmp:k,blockMixCb:X,asyncTick:x}}function R(r,l,n,s,e){const c=K.pbkdf2(J.sha256,r,n,{c:1,dkLen:l});return n.fill(0),s.fill(0),e.fill(0),c}function W(r,l,n){const{N:s,r:e,p:c,dkLen:a,blockSize32:o,V:x,B32:b,B:d,tmp:y,blockMixCb:S}=Q(r,l,n);for(let h=0;h<c;h++){const m=o*h;for(let f=0;f<o;f++)x[f]=b[m+f];for(let f=0,w=0;f<s-1;f++)F(x,w,x,w+=o,e),S();F(x,(s-1)*o,b,m,e),S();for(let f=0;f<s;f++){const w=b[m+o-16]%s;for(let k=0;k<o;k++)y[k]=b[m+k]^x[w*o+k];F(y,0,b,m,e),S()}}return R(r,a,d,x,y)}exports.scrypt=W;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
import X from "./_assert.js";
|
2
|
+
import { sha256 as Q } from "./sha256.js";
|
3
|
+
import { pbkdf2 as R } from "./pbkdf2.js";
|
4
|
+
import { checkOpts as W, u32 as G } from "./utils.js";
|
5
|
+
const r = (t, l) => t << l | t >>> 32 - l;
|
6
|
+
function K(t, l, n, c, e, s) {
|
7
|
+
let f = t[l++] ^ n[c++], o = t[l++] ^ n[c++], y = t[l++] ^ n[c++], x = t[l++] ^ n[c++], k = t[l++] ^ n[c++], m = t[l++] ^ n[c++], S = t[l++] ^ n[c++], d = t[l++] ^ n[c++], b = t[l++] ^ n[c++], a = t[l++] ^ n[c++], w = t[l++] ^ n[c++], h = t[l++] ^ n[c++], D = t[l++] ^ n[c++], I = t[l++] ^ n[c++], F = t[l++] ^ n[c++], M = t[l++] ^ n[c++], g = f, B = o, E = y, L = x, C = k, N = m, z = S, A = d, P = b, U = a, q = w, O = h, T = D, V = I, $ = F, j = M;
|
8
|
+
for (let J = 0; J < 8; J += 2)
|
9
|
+
C ^= r(g + T | 0, 7), P ^= r(C + g | 0, 9), T ^= r(P + C | 0, 13), g ^= r(T + P | 0, 18), U ^= r(N + B | 0, 7), V ^= r(U + N | 0, 9), B ^= r(V + U | 0, 13), N ^= r(B + V | 0, 18), $ ^= r(q + z | 0, 7), E ^= r($ + q | 0, 9), z ^= r(E + $ | 0, 13), q ^= r(z + E | 0, 18), L ^= r(j + O | 0, 7), A ^= r(L + j | 0, 9), O ^= r(A + L | 0, 13), j ^= r(O + A | 0, 18), B ^= r(g + L | 0, 7), E ^= r(B + g | 0, 9), L ^= r(E + B | 0, 13), g ^= r(L + E | 0, 18), z ^= r(N + C | 0, 7), A ^= r(z + N | 0, 9), C ^= r(A + z | 0, 13), N ^= r(C + A | 0, 18), O ^= r(q + U | 0, 7), P ^= r(O + q | 0, 9), U ^= r(P + O | 0, 13), q ^= r(U + P | 0, 18), T ^= r(j + $ | 0, 7), V ^= r(T + j | 0, 9), $ ^= r(V + T | 0, 13), j ^= r($ + V | 0, 18);
|
10
|
+
e[s++] = f + g | 0, e[s++] = o + B | 0, e[s++] = y + E | 0, e[s++] = x + L | 0, e[s++] = k + C | 0, e[s++] = m + N | 0, e[s++] = S + z | 0, e[s++] = d + A | 0, e[s++] = b + P | 0, e[s++] = a + U | 0, e[s++] = w + q | 0, e[s++] = h + O | 0, e[s++] = D + T | 0, e[s++] = I + V | 0, e[s++] = F + $ | 0, e[s++] = M + j | 0;
|
11
|
+
}
|
12
|
+
function H(t, l, n, c, e) {
|
13
|
+
let s = c + 0, f = c + 16 * e;
|
14
|
+
for (let o = 0; o < 16; o++)
|
15
|
+
n[f + o] = t[l + (2 * e - 1) * 16 + o];
|
16
|
+
for (let o = 0; o < e; o++, s += 16, l += 16)
|
17
|
+
K(n, f, t, l, n, s), o > 0 && (f += 16), K(n, s, t, l += 16, n, f);
|
18
|
+
}
|
19
|
+
function Y(t, l, n) {
|
20
|
+
const c = W({
|
21
|
+
dkLen: 32,
|
22
|
+
asyncTick: 10,
|
23
|
+
maxmem: 1073742848
|
24
|
+
}, n), { N: e, r: s, p: f, dkLen: o, asyncTick: y, maxmem: x, onProgress: k } = c;
|
25
|
+
if (X.number(e), X.number(s), X.number(f), X.number(o), X.number(y), X.number(x), k !== void 0 && typeof k != "function")
|
26
|
+
throw new Error("progressCb should be function");
|
27
|
+
const m = 128 * s, S = m / 4;
|
28
|
+
if (e <= 1 || e & e - 1 || e >= 2 ** (m / 8) || e > 2 ** 32)
|
29
|
+
throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");
|
30
|
+
if (f < 0 || f > (2 ** 32 - 1) * 32 / m)
|
31
|
+
throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");
|
32
|
+
if (o < 0 || o > (2 ** 32 - 1) * 32)
|
33
|
+
throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");
|
34
|
+
const d = m * (e + f);
|
35
|
+
if (d > x)
|
36
|
+
throw new Error(`Scrypt: parameters too large, ${d} (128 * r * (N + p)) > ${x} (maxmem)`);
|
37
|
+
const b = R(Q, t, l, { c: 1, dkLen: m * f }), a = G(b), w = G(new Uint8Array(m * e)), h = G(new Uint8Array(m));
|
38
|
+
let D = () => {
|
39
|
+
};
|
40
|
+
if (k) {
|
41
|
+
const I = 2 * e * f, F = Math.max(Math.floor(I / 1e4), 1);
|
42
|
+
let M = 0;
|
43
|
+
D = () => {
|
44
|
+
M++, k && (!(M % F) || M === I) && k(M / I);
|
45
|
+
};
|
46
|
+
}
|
47
|
+
return { N: e, r: s, p: f, dkLen: o, blockSize32: S, V: w, B32: a, B: b, tmp: h, blockMixCb: D, asyncTick: y };
|
48
|
+
}
|
49
|
+
function Z(t, l, n, c, e) {
|
50
|
+
const s = R(Q, t, n, { c: 1, dkLen: l });
|
51
|
+
return n.fill(0), c.fill(0), e.fill(0), s;
|
52
|
+
}
|
53
|
+
function i(t, l, n) {
|
54
|
+
const { N: c, r: e, p: s, dkLen: f, blockSize32: o, V: y, B32: x, B: k, tmp: m, blockMixCb: S } = Y(t, l, n);
|
55
|
+
for (let d = 0; d < s; d++) {
|
56
|
+
const b = o * d;
|
57
|
+
for (let a = 0; a < o; a++)
|
58
|
+
y[a] = x[b + a];
|
59
|
+
for (let a = 0, w = 0; a < c - 1; a++)
|
60
|
+
H(y, w, y, w += o, e), S();
|
61
|
+
H(y, (c - 1) * o, x, b, e), S();
|
62
|
+
for (let a = 0; a < c; a++) {
|
63
|
+
const w = x[b + o - 16] % c;
|
64
|
+
for (let h = 0; h < o; h++)
|
65
|
+
m[h] = x[b + h] ^ y[w * o + h];
|
66
|
+
H(m, 0, x, b, e), S();
|
67
|
+
}
|
68
|
+
}
|
69
|
+
return Z(t, f, k, y, m);
|
70
|
+
}
|
71
|
+
export {
|
72
|
+
i as scrypt
|
73
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./_sha2.cjs"),c=require("./utils.cjs"),w=(n,a,e)=>n&a^~n&e,S=(n,a,e)=>n&a^n&e^a&e,y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),b=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64);class g extends p.SHA2{constructor(){super(64,32,8,!1),this.A=b[0]|0,this.B=b[1]|0,this.C=b[2]|0,this.D=b[3]|0,this.E=b[4]|0,this.F=b[5]|0,this.G=b[6]|0,this.H=b[7]|0}get(){const{A:a,B:e,C:s,D:i,E:r,F:o,G:x,H:f}=this;return[a,e,s,i,r,o,x,f]}set(a,e,s,i,r,o,x,f){this.A=a|0,this.B=e|0,this.C=s|0,this.D=i|0,this.E=r|0,this.F=o|0,this.G=x|0,this.H=f|0}process(a,e){for(let t=0;t<16;t++,e+=4)h[t]=a.getUint32(e,!1);for(let t=16;t<64;t++){const A=h[t-15],l=h[t-2],C=c.rotr(A,7)^c.rotr(A,18)^A>>>3,H=c.rotr(l,17)^c.rotr(l,19)^l>>>10;h[t]=H+h[t-7]+C+h[t-16]|0}let{A:s,B:i,C:r,D:o,E:x,F:f,G:d,H:u}=this;for(let t=0;t<64;t++){const A=c.rotr(x,6)^c.rotr(x,11)^c.rotr(x,25),l=u+A+w(x,f,d)+y[t]+h[t]|0,H=(c.rotr(s,2)^c.rotr(s,13)^c.rotr(s,22))+S(s,i,r)|0;u=d,d=f,f=x,x=o+l|0,o=r,r=i,i=s,s=l+H|0}s=s+this.A|0,i=i+this.B|0,r=r+this.C|0,o=o+this.D|0,x=x+this.E|0,f=f+this.F|0,d=d+this.G|0,u=u+this.H|0,this.set(s,i,r,o,x,f,d,u)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class B extends g{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const D=c.wrapConstructor(()=>new g);c.wrapConstructor(()=>new B);exports.sha256=D;
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { SHA2 as w } from "./_sha2.js";
|
2
|
+
import { wrapConstructor as p, rotr as b } from "./utils.js";
|
3
|
+
const B = (r, e, c) => r & e ^ ~r & c, D = (r, e, c) => r & e ^ r & c ^ e & c, E = new Uint32Array([
|
4
|
+
1116352408,
|
5
|
+
1899447441,
|
6
|
+
3049323471,
|
7
|
+
3921009573,
|
8
|
+
961987163,
|
9
|
+
1508970993,
|
10
|
+
2453635748,
|
11
|
+
2870763221,
|
12
|
+
3624381080,
|
13
|
+
310598401,
|
14
|
+
607225278,
|
15
|
+
1426881987,
|
16
|
+
1925078388,
|
17
|
+
2162078206,
|
18
|
+
2614888103,
|
19
|
+
3248222580,
|
20
|
+
3835390401,
|
21
|
+
4022224774,
|
22
|
+
264347078,
|
23
|
+
604807628,
|
24
|
+
770255983,
|
25
|
+
1249150122,
|
26
|
+
1555081692,
|
27
|
+
1996064986,
|
28
|
+
2554220882,
|
29
|
+
2821834349,
|
30
|
+
2952996808,
|
31
|
+
3210313671,
|
32
|
+
3336571891,
|
33
|
+
3584528711,
|
34
|
+
113926993,
|
35
|
+
338241895,
|
36
|
+
666307205,
|
37
|
+
773529912,
|
38
|
+
1294757372,
|
39
|
+
1396182291,
|
40
|
+
1695183700,
|
41
|
+
1986661051,
|
42
|
+
2177026350,
|
43
|
+
2456956037,
|
44
|
+
2730485921,
|
45
|
+
2820302411,
|
46
|
+
3259730800,
|
47
|
+
3345764771,
|
48
|
+
3516065817,
|
49
|
+
3600352804,
|
50
|
+
4094571909,
|
51
|
+
275423344,
|
52
|
+
430227734,
|
53
|
+
506948616,
|
54
|
+
659060556,
|
55
|
+
883997877,
|
56
|
+
958139571,
|
57
|
+
1322822218,
|
58
|
+
1537002063,
|
59
|
+
1747873779,
|
60
|
+
1955562222,
|
61
|
+
2024104815,
|
62
|
+
2227730452,
|
63
|
+
2361852424,
|
64
|
+
2428436474,
|
65
|
+
2756734187,
|
66
|
+
3204031479,
|
67
|
+
3329325298
|
68
|
+
]), n = new Uint32Array([
|
69
|
+
1779033703,
|
70
|
+
3144134277,
|
71
|
+
1013904242,
|
72
|
+
2773480762,
|
73
|
+
1359893119,
|
74
|
+
2600822924,
|
75
|
+
528734635,
|
76
|
+
1541459225
|
77
|
+
]), o = new Uint32Array(64);
|
78
|
+
class m extends w {
|
79
|
+
constructor() {
|
80
|
+
super(64, 32, 8, !1), this.A = n[0] | 0, this.B = n[1] | 0, this.C = n[2] | 0, this.D = n[3] | 0, this.E = n[4] | 0, this.F = n[5] | 0, this.G = n[6] | 0, this.H = n[7] | 0;
|
81
|
+
}
|
82
|
+
get() {
|
83
|
+
const { A: e, B: c, C: t, D: a, E: i, F: h, G: s, H: f } = this;
|
84
|
+
return [e, c, t, a, i, h, s, f];
|
85
|
+
}
|
86
|
+
// prettier-ignore
|
87
|
+
set(e, c, t, a, i, h, s, f) {
|
88
|
+
this.A = e | 0, this.B = c | 0, this.C = t | 0, this.D = a | 0, this.E = i | 0, this.F = h | 0, this.G = s | 0, this.H = f | 0;
|
89
|
+
}
|
90
|
+
process(e, c) {
|
91
|
+
for (let x = 0; x < 16; x++, c += 4)
|
92
|
+
o[x] = e.getUint32(c, !1);
|
93
|
+
for (let x = 16; x < 64; x++) {
|
94
|
+
const H = o[x - 15], A = o[x - 2], C = b(H, 7) ^ b(H, 18) ^ H >>> 3, u = b(A, 17) ^ b(A, 19) ^ A >>> 10;
|
95
|
+
o[x] = u + o[x - 7] + C + o[x - 16] | 0;
|
96
|
+
}
|
97
|
+
let { A: t, B: a, C: i, D: h, E: s, F: f, G: d, H: l } = this;
|
98
|
+
for (let x = 0; x < 64; x++) {
|
99
|
+
const H = b(s, 6) ^ b(s, 11) ^ b(s, 25), A = l + H + B(s, f, d) + E[x] + o[x] | 0, u = (b(t, 2) ^ b(t, 13) ^ b(t, 22)) + D(t, a, i) | 0;
|
100
|
+
l = d, d = f, f = s, s = h + A | 0, h = i, i = a, a = t, t = A + u | 0;
|
101
|
+
}
|
102
|
+
t = t + this.A | 0, a = a + this.B | 0, i = i + this.C | 0, h = h + this.D | 0, s = s + this.E | 0, f = f + this.F | 0, d = d + this.G | 0, l = l + this.H | 0, this.set(t, a, i, h, s, f, d, l);
|
103
|
+
}
|
104
|
+
roundClean() {
|
105
|
+
o.fill(0);
|
106
|
+
}
|
107
|
+
destroy() {
|
108
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
class F extends m {
|
112
|
+
constructor() {
|
113
|
+
super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
const S = p(() => new m());
|
117
|
+
p(() => new F());
|
118
|
+
export {
|
119
|
+
S as sha256
|
120
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./_assert.cjs"),d=require("./_u64.cjs"),a=require("./utils.cjs"),[y,b,L]=[[],[],[]],H=BigInt(0),l=BigInt(1),S=BigInt(2),T=BigInt(7),F=BigInt(256),X=BigInt(113);for(let n=0,t=l,s=1,i=0;n<24;n++){[s,i]=[i,(2*s+3*i)%5],y.push(2*(5*i+s)),b.push((n+1)*(n+2)/2%64);let o=H;for(let r=0;r<7;r++)t=(t<<l^(t>>T)*X)%F,t&S&&(o^=l<<(l<<BigInt(r))-l);L.push(o)}const[m,P]=d.default.split(L,!0),I=(n,t,s)=>s>32?d.default.rotlBH(n,t,s):d.default.rotlSH(n,t,s),w=(n,t,s)=>s>32?d.default.rotlBL(n,t,s):d.default.rotlSL(n,t,s);function _(n,t=24){const s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let e=0;e<10;e++)s[e]=n[e]^n[e+10]^n[e+20]^n[e+30]^n[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,k=(e+2)%10,x=s[k],u=s[k+1],B=I(x,u,1)^s[h],A=w(x,u,1)^s[h+1];for(let O=0;O<50;O+=10)n[e+O]^=B,n[e+O+1]^=A}let o=n[2],r=n[3];for(let e=0;e<24;e++){const h=b[e],k=I(o,r,h),x=w(o,r,h),u=y[e];o=n[u],r=n[u+1],n[u]=k,n[u+1]=x}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=n[e+h];for(let h=0;h<10;h++)n[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}n[0]^=m[i],n[1]^=P[i]}s.fill(0)}class p extends a.Hash{constructor(t,s,i,o=!1,r=24){if(super(),this.blockLen=t,this.suffix=s,this.outputLen=i,this.enableXOF=o,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,f.default.number(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=a.u32(this.state)}keccak(){_(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){f.default.exists(this);const{blockLen:s,state:i}=this;t=a.toBytes(t);const o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)i[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:i,blockLen:o}=this;t[i]^=s,s&128&&i===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){f.default.exists(this,!1),f.default.bytes(t),this.finish();const s=this.state,{blockLen:i}=this;for(let o=0,r=t.length;o<r;){this.posOut>=i&&this.keccak();const e=Math.min(i-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return f.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(f.default.output(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,this.state.fill(0)}_cloneInto(t){const{blockLen:s,suffix:i,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new p(s,i,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const c=(n,t,s)=>a.wrapConstructor(()=>new p(t,n,s));c(6,144,224/8);c(6,136,256/8);c(6,104,384/8);c(6,72,512/8);c(1,144,224/8);const U=c(1,136,256/8);c(1,104,384/8);c(1,72,512/8);const g=(n,t,s)=>a.wrapXOFConstructorWithOpts((i={})=>new p(t,n,i.dkLen===void 0?s:i.dkLen,!0));g(31,168,128/8);g(31,136,256/8);exports.Keccak=p;exports.keccakP=_;exports.keccak_256=U;
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import u from "./_assert.js";
|
2
|
+
import a from "./_u64.js";
|
3
|
+
import { wrapConstructor as B, wrapXOFConstructorWithOpts as A, Hash as H, u32 as m, toBytes as S } from "./utils.js";
|
4
|
+
const [w, L, y] = [[], [], []], T = BigInt(0), l = BigInt(1), F = BigInt(2), X = BigInt(7), U = BigInt(256), E = BigInt(113);
|
5
|
+
for (let n = 0, t = l, s = 1, i = 0; n < 24; n++) {
|
6
|
+
[s, i] = [i, (2 * s + 3 * i) % 5], w.push(2 * (5 * i + s)), L.push((n + 1) * (n + 2) / 2 % 64);
|
7
|
+
let o = T;
|
8
|
+
for (let r = 0; r < 7; r++)
|
9
|
+
t = (t << l ^ (t >> X) * E) % U, t & F && (o ^= l << (l << BigInt(r)) - l);
|
10
|
+
y.push(o);
|
11
|
+
}
|
12
|
+
const [P, C] = a.split(y, !0), O = (n, t, s) => s > 32 ? a.rotlBH(n, t, s) : a.rotlSH(n, t, s), I = (n, t, s) => s > 32 ? a.rotlBL(n, t, s) : a.rotlSL(n, t, s);
|
13
|
+
function M(n, t = 24) {
|
14
|
+
const s = new Uint32Array(10);
|
15
|
+
for (let i = 24 - t; i < 24; i++) {
|
16
|
+
for (let e = 0; e < 10; e++)
|
17
|
+
s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
|
18
|
+
for (let e = 0; e < 10; e += 2) {
|
19
|
+
const h = (e + 8) % 10, p = (e + 2) % 10, d = s[p], f = s[p + 1], g = O(d, f, 1) ^ s[h], _ = I(d, f, 1) ^ s[h + 1];
|
20
|
+
for (let x = 0; x < 50; x += 10)
|
21
|
+
n[e + x] ^= g, n[e + x + 1] ^= _;
|
22
|
+
}
|
23
|
+
let o = n[2], r = n[3];
|
24
|
+
for (let e = 0; e < 24; e++) {
|
25
|
+
const h = L[e], p = O(o, r, h), d = I(o, r, h), f = w[e];
|
26
|
+
o = n[f], r = n[f + 1], n[f] = p, n[f + 1] = d;
|
27
|
+
}
|
28
|
+
for (let e = 0; e < 50; e += 10) {
|
29
|
+
for (let h = 0; h < 10; h++)
|
30
|
+
s[h] = n[e + h];
|
31
|
+
for (let h = 0; h < 10; h++)
|
32
|
+
n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
33
|
+
}
|
34
|
+
n[0] ^= P[i], n[1] ^= C[i];
|
35
|
+
}
|
36
|
+
s.fill(0);
|
37
|
+
}
|
38
|
+
class k extends H {
|
39
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
40
|
+
constructor(t, s, i, o = !1, r = 24) {
|
41
|
+
if (super(), this.blockLen = t, this.suffix = s, this.outputLen = i, this.enableXOF = o, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, u.number(i), 0 >= this.blockLen || this.blockLen >= 200)
|
42
|
+
throw new Error("Sha3 supports only keccak-f1600 function");
|
43
|
+
this.state = new Uint8Array(200), this.state32 = m(this.state);
|
44
|
+
}
|
45
|
+
keccak() {
|
46
|
+
M(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
|
47
|
+
}
|
48
|
+
update(t) {
|
49
|
+
u.exists(this);
|
50
|
+
const { blockLen: s, state: i } = this;
|
51
|
+
t = S(t);
|
52
|
+
const o = t.length;
|
53
|
+
for (let r = 0; r < o; ) {
|
54
|
+
const e = Math.min(s - this.pos, o - r);
|
55
|
+
for (let h = 0; h < e; h++)
|
56
|
+
i[this.pos++] ^= t[r++];
|
57
|
+
this.pos === s && this.keccak();
|
58
|
+
}
|
59
|
+
return this;
|
60
|
+
}
|
61
|
+
finish() {
|
62
|
+
if (this.finished)
|
63
|
+
return;
|
64
|
+
this.finished = !0;
|
65
|
+
const { state: t, suffix: s, pos: i, blockLen: o } = this;
|
66
|
+
t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
67
|
+
}
|
68
|
+
writeInto(t) {
|
69
|
+
u.exists(this, !1), u.bytes(t), this.finish();
|
70
|
+
const s = this.state, { blockLen: i } = this;
|
71
|
+
for (let o = 0, r = t.length; o < r; ) {
|
72
|
+
this.posOut >= i && this.keccak();
|
73
|
+
const e = Math.min(i - this.posOut, r - o);
|
74
|
+
t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
|
75
|
+
}
|
76
|
+
return t;
|
77
|
+
}
|
78
|
+
xofInto(t) {
|
79
|
+
if (!this.enableXOF)
|
80
|
+
throw new Error("XOF is not possible for this instance");
|
81
|
+
return this.writeInto(t);
|
82
|
+
}
|
83
|
+
xof(t) {
|
84
|
+
return u.number(t), this.xofInto(new Uint8Array(t));
|
85
|
+
}
|
86
|
+
digestInto(t) {
|
87
|
+
if (u.output(t, this), this.finished)
|
88
|
+
throw new Error("digest() was already called");
|
89
|
+
return this.writeInto(t), this.destroy(), t;
|
90
|
+
}
|
91
|
+
digest() {
|
92
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
93
|
+
}
|
94
|
+
destroy() {
|
95
|
+
this.destroyed = !0, this.state.fill(0);
|
96
|
+
}
|
97
|
+
_cloneInto(t) {
|
98
|
+
const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
|
99
|
+
return t || (t = new k(s, i, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
const c = (n, t, s) => B(() => new k(t, n, s));
|
103
|
+
c(6, 144, 224 / 8);
|
104
|
+
c(6, 136, 256 / 8);
|
105
|
+
c(6, 104, 384 / 8);
|
106
|
+
c(6, 72, 512 / 8);
|
107
|
+
c(1, 144, 224 / 8);
|
108
|
+
const q = c(1, 136, 256 / 8);
|
109
|
+
c(1, 104, 384 / 8);
|
110
|
+
c(1, 72, 512 / 8);
|
111
|
+
const b = (n, t, s) => A((i = {}) => new k(t, n, i.dkLen === void 0 ? s : i.dkLen, !0));
|
112
|
+
b(31, 168, 128 / 8);
|
113
|
+
b(31, 136, 256 / 8);
|
114
|
+
export {
|
115
|
+
k as Keccak,
|
116
|
+
M as keccakP,
|
117
|
+
q as keccak_256
|
118
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./_sha2.cjs"),t=require("./_u64.cjs"),m=require("./utils.cjs"),[J,K]=t.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(F=>BigInt(F))),C=new Uint32Array(80),L=new Uint32Array(80);class g extends I.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:E,Al:D,Bh:h,Bl:a,Ch:c,Cl:f,Dh:l,Dl:x,Eh:u,El:n,Fh:s,Fl:d,Gh:b,Gl:i,Hh:r,Hl:o}=this;return[E,D,h,a,c,f,l,x,u,n,s,d,b,i,r,o]}set(E,D,h,a,c,f,l,x,u,n,s,d,b,i,r,o){this.Ah=E|0,this.Al=D|0,this.Bh=h|0,this.Bl=a|0,this.Ch=c|0,this.Cl=f|0,this.Dh=l|0,this.Dl=x|0,this.Eh=u|0,this.El=n|0,this.Fh=s|0,this.Fl=d|0,this.Gh=b|0,this.Gl=i|0,this.Hh=r|0,this.Hl=o|0}process(E,D){for(let e=0;e<16;e++,D+=4)C[e]=E.getUint32(D),L[e]=E.getUint32(D+=4);for(let e=16;e<80;e++){const S=C[e-15]|0,B=L[e-15]|0,U=t.default.rotrSH(S,B,1)^t.default.rotrSH(S,B,8)^t.default.shrSH(S,B,7),W=t.default.rotrSL(S,B,1)^t.default.rotrSL(S,B,8)^t.default.shrSL(S,B,7),H=C[e-2]|0,A=L[e-2]|0,_=t.default.rotrSH(H,A,19)^t.default.rotrBH(H,A,61)^t.default.shrSH(H,A,6),y=t.default.rotrSL(H,A,19)^t.default.rotrBL(H,A,61)^t.default.shrSL(H,A,6),w=t.default.add4L(W,y,L[e-7],L[e-16]),M=t.default.add4H(w,U,_,C[e-7],C[e-16]);C[e]=M|0,L[e]=w|0}let{Ah:h,Al:a,Bh:c,Bl:f,Ch:l,Cl:x,Dh:u,Dl:n,Eh:s,El:d,Fh:b,Fl:i,Gh:r,Gl:o,Hh:G,Hl:p}=this;for(let e=0;e<80;e++){const S=t.default.rotrSH(s,d,14)^t.default.rotrSH(s,d,18)^t.default.rotrBH(s,d,41),B=t.default.rotrSL(s,d,14)^t.default.rotrSL(s,d,18)^t.default.rotrBL(s,d,41),U=s&b^~s&r,W=d&i^~d&o,H=t.default.add5L(p,B,W,K[e],L[e]),A=t.default.add5H(H,G,S,U,J[e],C[e]),_=H|0,y=t.default.rotrSH(h,a,28)^t.default.rotrBH(h,a,34)^t.default.rotrBH(h,a,39),w=t.default.rotrSL(h,a,28)^t.default.rotrBL(h,a,34)^t.default.rotrBL(h,a,39),M=h&c^h&l^c&l,q=a&f^a&x^f&x;G=r|0,p=o|0,r=b|0,o=i|0,b=s|0,i=d|0,{h:s,l:d}=t.default.add(u|0,n|0,A|0,_|0),u=l|0,n=x|0,l=c|0,x=f|0,c=h|0,f=a|0;const T=t.default.add3L(_,w,q);h=t.default.add3H(T,A,y,M),a=T|0}({h,l:a}=t.default.add(this.Ah|0,this.Al|0,h|0,a|0)),{h:c,l:f}=t.default.add(this.Bh|0,this.Bl|0,c|0,f|0),{h:l,l:x}=t.default.add(this.Ch|0,this.Cl|0,l|0,x|0),{h:u,l:n}=t.default.add(this.Dh|0,this.Dl|0,u|0,n|0),{h:s,l:d}=t.default.add(this.Eh|0,this.El|0,s|0,d|0),{h:b,l:i}=t.default.add(this.Fh|0,this.Fl|0,b|0,i|0),{h:r,l:o}=t.default.add(this.Gh|0,this.Gl|0,r|0,o|0),{h:G,l:p}=t.default.add(this.Hh|0,this.Hl|0,G|0,p|0),this.set(h,a,c,f,l,x,u,n,s,d,b,i,r,o,G,p)}roundClean(){C.fill(0),L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class j extends g{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class O extends g{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class P extends g{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const k=m.wrapConstructor(()=>new g);m.wrapConstructor(()=>new j);m.wrapConstructor(()=>new O);m.wrapConstructor(()=>new P);exports.SHA512=g;exports.sha512=k;
|